:root {
  --ink: #12212b;
  --muted: #657682;
  --faint: #8b99a2;
  --line: #dce4e8;
  --line-strong: #c7d2d8;
  --surface: #ffffff;
  --surface-soft: #f5f8f9;
  --surface-tint: #edf5f4;
  --navy: #0b2535;
  --navy-2: #12384b;
  --teal: #178e83;
  --teal-dark: #0f7068;
  --lime: #b7d52b;
  --danger: #b84444;
  --danger-soft: #fff0f0;
  --warning: #a96b00;
  --warning-soft: #fff7df;
  --success: #187a59;
  --success-soft: #eaf8f2;
  --shadow-sm: 0 1px 2px rgba(7, 28, 39, .06), 0 4px 14px rgba(7, 28, 39, .05);
  --shadow-lg: 0 18px 50px rgba(7, 28, 39, .16);
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 22px;
  --topbar-height: 76px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface-soft);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--surface-soft); }
body { min-height: 100%; margin: 0; background: var(--surface-soft); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
input, select, textarea { color: var(--ink); }
textarea { resize: vertical; }
svg { fill: currentColor; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 620px) 1fr; background: var(--surface); }
.login-card { display: flex; flex-direction: column; justify-content: center; width: min(100%, 540px); padding: clamp(32px, 7vw, 88px); margin: auto; }
.brand-lockup { display: flex; align-items: center; gap: 12px; min-width: 148px; }
.brand-lockup--login { margin-bottom: 70px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: var(--lime); font-weight: 900; letter-spacing: -.04em; box-shadow: inset 0 -2px 0 rgba(255,255,255,.08); }
.brand-name { font-size: 17px; line-height: 1.05; font-weight: 850; letter-spacing: -.02em; color: var(--navy); }
.brand-product { margin-top: 3px; font-size: 11px; color: var(--muted); letter-spacing: .13em; text-transform: uppercase; font-weight: 750; }
.login-copy { margin-bottom: 34px; }
.login-copy h1 { margin: 8px 0 16px; color: var(--navy); font-size: clamp(40px, 5vw, 64px); line-height: .98; letter-spacing: -.055em; }
.login-copy p:last-child { max-width: 465px; margin: 0; color: var(--muted); line-height: 1.65; }
.eyebrow { margin: 0 0 6px; color: var(--teal-dark); font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.login-aside { position: relative; overflow: hidden; min-height: 100vh; background: var(--navy); }
.aside-grid { position: absolute; inset: -20%; opacity: .33; transform: rotate(-8deg); background-image: linear-gradient(rgba(183,213,43,.23) 1px, transparent 1px), linear-gradient(90deg, rgba(183,213,43,.23) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(circle at 50% 50%, black, transparent 70%); }
.login-aside::before, .login-aside::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(183,213,43,.28); }
.login-aside::before { width: 720px; height: 720px; right: -240px; top: -150px; }
.login-aside::after { width: 430px; height: 430px; left: -100px; bottom: -140px; }
.aside-copy { position: absolute; left: clamp(40px, 7vw, 100px); bottom: clamp(50px, 10vh, 120px); color: white; }
.aside-kicker { display: block; margin-bottom: 18px; color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.aside-copy strong { display: block; max-width: 680px; font-size: clamp(46px, 6vw, 90px); line-height: .95; letter-spacing: -.06em; }
.demo-details { margin-top: 26px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); font-size: 12px; background: var(--surface-soft); }
.demo-details summary { color: var(--ink); font-weight: 750; cursor: pointer; }
.demo-details p { margin: 8px 0 0; }

.stack-lg { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { color: #42545f; font-size: 12px; font-weight: 760; }
.field small { color: var(--faint); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); outline: none; background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.field textarea { min-height: 76px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23,142,131,.13); }
.field--compact { min-width: 165px; }
.field--compact input, .field--compact select { min-height: 40px; padding: 8px 10px; }
.field--full { grid-column: 1 / -1; }
.check-field { display: flex; align-items: center; gap: 9px; min-height: 42px; color: #42545f; font-size: 13px; font-weight: 700; }
.check-field input { width: 18px; height: 18px; accent-color: var(--teal); }
.money-input { position: relative; }
.money-input > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 750; }
.money-input input { padding-left: 27px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 790; font-size: 13px; transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease; }
.button:not(:disabled):active { transform: translateY(1px); }
.button--primary { background: var(--teal); color: white; box-shadow: 0 5px 14px rgba(23,142,131,.20); }
.button--primary:hover { background: var(--teal-dark); }
.button--secondary { background: var(--navy); color: white; }
.button--secondary:hover { background: var(--navy-2); }
.button--ghost { color: var(--ink); background: transparent; border-color: var(--line-strong); }
.button--ghost:hover { background: var(--surface-soft); }
.button--danger { color: var(--danger); background: var(--danger-soft); border-color: #f0caca; }
.button--danger:hover { background: #ffe3e3; }
.button--wide { width: 100%; }
.button--large { min-height: 51px; padding-inline: 24px; font-size: 14px; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--navy); font-weight: 900; }
.icon-button:hover { background: var(--surface-soft); }

.app-shell { min-height: 100vh; }
.topbar { position: sticky; z-index: 50; top: 0; height: var(--topbar-height); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 clamp(20px, 4vw, 56px); border-bottom: 1px solid rgba(220,228,232,.9); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.main-nav { display: flex; align-items: center; gap: 5px; padding: 5px; border-radius: 12px; background: var(--surface-soft); }
.nav-button { display: flex; align-items: center; gap: 7px; min-height: 39px; padding: 8px 13px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 760; }
.nav-button svg { width: 16px; height: 16px; }
.nav-button.is-active { color: var(--navy); background: white; box-shadow: var(--shadow-sm); }
.user-menu { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.user-copy { display: grid; gap: 2px; text-align: right; }
.user-copy strong { color: var(--navy); font-size: 13px; }
.user-copy span { color: var(--muted); font-size: 11px; text-transform: capitalize; }
.avatar-button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--navy); color: var(--lime); font-size: 12px; font-weight: 900; }
.app-main { width: min(1480px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 80px; }
.page { display: none; animation: pageIn .2s ease; }
.page--active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.page-heading h1 { margin: 0; color: var(--navy); font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -.045em; }
.page-heading .muted { margin-top: 9px; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.muted { color: var(--muted); }

.status-pill { display: inline-flex; align-items: center; gap: 7px; width: fit-content; min-height: 31px; padding: 6px 11px; border-radius: 999px; font-size: 11px; font-weight: 820; white-space: nowrap; }
.status-pill span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill--off { color: var(--muted); background: #edf1f3; }
.status-pill--on, .status-pill--approved { color: var(--success); background: var(--success-soft); }
.status-pill--draft { color: #586a76; background: #edf1f3; }
.status-pill--submitted { color: var(--warning); background: var(--warning-soft); }
.status-pill--rejected { color: var(--danger); background: var(--danger-soft); }

.clock-layout { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(430px, 1.15fr); gap: 22px; margin-bottom: 22px; }
.current-card { position: relative; overflow: hidden; min-height: 430px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 4vw, 42px); border-radius: var(--radius-lg); background: var(--navy); color: white; box-shadow: var(--shadow-lg); }
.current-card::before { content: ""; position: absolute; width: 470px; height: 470px; right: -260px; bottom: -280px; border: 1px solid rgba(183,213,43,.2); border-radius: 50%; box-shadow: 0 0 0 55px rgba(183,213,43,.035), 0 0 0 110px rgba(183,213,43,.025); }
.current-card--on { background: linear-gradient(145deg, var(--navy), #0e3b45); }
.current-card--on::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--lime); }
.current-card__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.current-label { color: rgba(255,255,255,.64); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.rate-badge { padding: 6px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.07); font-size: 11px; font-weight: 760; }
.timer-display { position: relative; z-index: 1; font-variant-numeric: tabular-nums; font-size: clamp(50px, 7vw, 84px); font-weight: 820; letter-spacing: -.06em; line-height: 1; }
.current-assignment { position: relative; z-index: 1; display: grid; gap: 6px; }
.current-assignment strong { font-size: 21px; letter-spacing: -.02em; }
.current-assignment span { color: rgba(255,255,255,.62); line-height: 1.45; }
.current-description { position: relative; z-index: 1; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.5; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.clock-panel { padding: clamp(24px, 4vw, 36px); }
.panel-heading { margin-bottom: 22px; }
.panel-heading h2 { margin: 0; color: var(--navy); font-size: 21px; letter-spacing: -.025em; }
.panel-heading--row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-total { color: var(--navy); font-size: 20px; font-variant-numeric: tabular-nums; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.rate-preview { display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; align-items: end; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-soft); }
.rate-preview span { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.rate-preview strong { color: var(--navy); font-size: 17px; }
.rate-preview small { grid-column: 1 / -1; color: var(--faint); }
.clock-actions, .form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.recent-panel { padding: 26px 30px; }
.timeline { display: grid; }
.timeline-item { display: grid; grid-template-columns: 100px minmax(150px, .9fr) minmax(160px, 1fr) auto; gap: 16px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.timeline-item:first-child { border-top: 0; }
.timeline-time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.timeline-primary, .timeline-secondary { display: grid; gap: 3px; min-width: 0; }
.timeline-primary strong, .timeline-secondary strong { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.timeline-primary span, .timeline-secondary span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.timeline-hours { color: var(--navy); font-weight: 820; font-variant-numeric: tabular-nums; }
.empty-state { padding: 38px 18px; color: var(--muted); text-align: center; font-size: 13px; }

.toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding: 18px 20px; }
.week-picker { display: flex; align-items: flex-end; gap: 8px; }
.metric-grid { display: grid; gap: 14px; margin-bottom: 18px; }
.metric-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric-card { position: relative; overflow: hidden; display: grid; gap: 6px; min-height: 132px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.metric-card > span { color: var(--muted); font-size: 11px; font-weight: 770; letter-spacing: .06em; text-transform: uppercase; }
.metric-card strong { color: var(--navy); font-size: 30px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric-card small { align-self: end; color: var(--faint); }
.metric-card--accent { border-color: transparent; background: var(--navy); }
.metric-card--accent > span, .metric-card--accent small { color: rgba(255,255,255,.62); }
.metric-card--accent strong { color: var(--lime); }
.table-panel { overflow: hidden; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--muted); background: #fbfcfc; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafcfc; }
.data-table .number { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .actions-column { width: 96px; }
.cell-primary { display: grid; gap: 3px; min-width: 130px; }
.cell-primary strong { color: var(--ink); }
.cell-primary span { color: var(--muted); font-size: 11px; }
.table-actions { display: flex; justify-content: flex-end; gap: 5px; }
.table-action { min-height: 30px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: white; font-size: 10px; font-weight: 790; }
.table-action:hover { border-color: var(--line-strong); color: var(--ink); }
.table-action--danger:hover { border-color: #efc2c2; color: var(--danger); background: var(--danger-soft); }
.panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 14px 18px; border-top: 1px solid var(--line); background: #fbfcfc; }
.panel-footer p { margin: 0; font-size: 12px; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: 999px; color: #52636e; background: #edf1f3; font-size: 10px; font-weight: 800; white-space: nowrap; }
.badge--success { color: var(--success); background: var(--success-soft); }
.badge--warning { color: var(--warning); background: var(--warning-soft); }
.badge--danger { color: var(--danger); background: var(--danger-soft); }
.badge--navy { color: white; background: var(--navy); }

.admin-tabs { display: flex; gap: 5px; overflow-x: auto; margin-bottom: 20px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab { flex: 0 0 auto; min-height: 37px; padding: 8px 13px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 760; }
.admin-tab.is-active { color: white; background: var(--navy); }
.admin-section { display: none; }
.admin-section--active { display: block; animation: pageIn .18s ease; }
.active-team-list { display: grid; padding: 0 24px 10px; }
.active-team-item { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(240px, 1.2fr) minmax(140px, .6fr) auto; gap: 18px; align-items: center; padding: 17px 0; border-top: 1px solid var(--line); }
.active-team-item:first-child { border-top: 0; }
.active-person { display: flex; align-items: center; gap: 11px; }
.active-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; color: var(--lime); background: var(--navy); font-size: 10px; font-weight: 900; }
.active-person strong, .active-assignment strong { display: block; color: var(--ink); font-size: 13px; }
.active-person span, .active-assignment span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.active-duration { color: var(--navy); font-size: 18px; font-weight: 850; font-variant-numeric: tabular-nums; text-align: right; }
.management-grid { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(520px, 1.28fr); gap: 18px; align-items: start; }
.editor-panel { padding: 24px; }
.helper-copy { margin: -8px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.report-controls { display: flex; align-items: flex-end; gap: 8px; }
.billing-stack { display: grid; gap: 18px; }
.billing-stack > .metric-grid { margin-bottom: 0; }
.billing-controls { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(190px, 1.35fr) repeat(2, minmax(135px, .75fr)) minmax(145px, .85fr) auto; gap: 12px; align-items: end; }
.billing-detail-table { min-width: 1320px; }
.billing-status-check { display: inline-grid; place-items: center; width: 22px; height: 22px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.billing-status-check:disabled { cursor: wait; opacity: .55; }
.billing-entry--billed { background: #f7faf8; }
.billing-entry--billed:hover { background: #f1f7f3 !important; }
.report-metrics { margin-top: 4px; }

.modal { width: min(620px, calc(100% - 24px)); max-height: calc(100vh - 30px); padding: 0; border: 0; border-radius: var(--radius-lg); background: transparent; overflow: visible; }
.modal::backdrop { background: rgba(5,22,31,.62); backdrop-filter: blur(3px); }
.modal-card { max-height: calc(100vh - 30px); overflow-y: auto; padding: clamp(22px, 5vw, 34px); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.modal-card--small { width: min(460px, 100%); margin: auto; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.modal-heading h2 { margin: 0; color: var(--navy); font-size: 25px; letter-spacing: -.035em; }
.modal-close { display: grid; place-items: center; width: 35px; height: 35px; border: 0; border-radius: 50%; color: var(--muted); background: var(--surface-soft); font-size: 24px; line-height: 1; }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 12px; line-height: 1.5; }
.notice--warning { color: #77500b; background: var(--warning-soft); border: 1px solid #f2ddad; }
.toast-region { position: fixed; z-index: 1000; right: 18px; top: 18px; display: grid; gap: 10px; width: min(380px, calc(100% - 36px)); pointer-events: none; }
.toast { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 12px; color: white; background: var(--navy); box-shadow: var(--shadow-lg); font-size: 13px; animation: toastIn .2s ease; pointer-events: auto; }
.toast--error { background: #8f3232; }
.toast--success { background: #126b50; }
.toast button { border: 0; color: inherit; background: transparent; font-weight: 900; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mobile-nav { display: none; }

@media (max-width: 1100px) {
  .login-shell { grid-template-columns: minmax(420px, 55%) 1fr; }
  .metric-grid--five { grid-template-columns: repeat(3, 1fr); }
  .management-grid { grid-template-columns: 1fr; }
  .editor-panel { max-width: none; }
  .billing-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .billing-controls .button { min-height: 44px; }
}

@media (max-width: 850px) {
  :root { --topbar-height: 66px; }
  .login-shell { display: block; background: var(--surface); }
  .login-aside { display: none; }
  .login-card { min-height: 100vh; padding: 32px 24px; }
  .brand-lockup--login { margin-bottom: 48px; }
  .topbar { grid-template-columns: 1fr auto; padding: 0 18px; }
  .topbar .main-nav, .user-copy { display: none; }
  .app-main { width: min(100% - 24px, 760px); padding: 28px 0 100px; }
  .clock-layout { grid-template-columns: 1fr; }
  .current-card { min-height: 330px; }
  .metric-grid--four, .metric-grid--five { grid-template-columns: repeat(2, 1fr); }
  .page-heading--responsive { align-items: flex-start; }
  .toolbar { align-items: stretch; flex-wrap: wrap; }
  .week-picker { flex: 1 1 100%; }
  .week-picker .field { flex: 1; }
  .active-team-item { grid-template-columns: 1fr auto; }
  .active-assignment { grid-column: 1 / -1; grid-row: 2; }
  .active-rate { display: none; }
  .panel-heading--responsive { align-items: flex-start; flex-direction: column; }
  .panel-heading--responsive .button { align-self: stretch; }
  .billing-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-nav { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 4px; padding: 5px; border: 1px solid rgba(220,228,232,.9); border-radius: 14px; background: rgba(255,255,255,.95); box-shadow: 0 12px 36px rgba(7,28,39,.2); backdrop-filter: blur(16px); }
  .mobile-nav-button { flex: 1; min-height: 43px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; }
  .mobile-nav-button.is-active { color: white; background: var(--navy); }
}

@media (max-width: 580px) {
  .page-heading { gap: 14px; }
  .page-heading--responsive { display: grid; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .rate-preview { grid-template-columns: 1fr; }
  .rate-preview strong { margin-top: 4px; }
  .metric-grid--four, .metric-grid--five { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 118px; padding: 17px; }
  .metric-card strong { font-size: 25px; }
  .clock-panel, .recent-panel { padding: 21px; }
  .current-card { min-height: 315px; padding: 25px; }
  .timer-display { font-size: clamp(48px, 17vw, 68px); }
  .timeline-item { grid-template-columns: 76px 1fr auto; gap: 10px; }
  .timeline-secondary { grid-column: 2 / -1; }
  .toolbar { padding: 14px; }
  .panel-footer { align-items: stretch; flex-direction: column; }
  .panel-footer .button { width: 100%; }
  .admin-tabs { margin-left: -2px; margin-right: -2px; }
  .report-controls { align-items: stretch; flex-wrap: wrap; }
  .report-controls .field { flex: 1 1 130px; }
  .report-controls .button { flex: 1 1 100%; }
  .billing-controls { grid-template-columns: 1fr; }
  .billing-controls .button { width: 100%; }
  .modal { width: calc(100% - 14px); }
  .modal-card { padding: 22px 18px; }
  .clock-actions .button, .form-actions .button { flex: 1; }
}
