*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a; --surface: #161616; --surface-2: #1f1f1f; --surface-3: #262626;
  --border: rgba(213,213,213,0.10); --border-strong: rgba(213,213,213,0.20);
  --text: #D5D5D5; --text-2: #9a9a9a; --text-3: #5f5f5f;
  --gold: #BE8C32; --gold-bright: #D9A94A; --gold-bg: #241a08;
  --bronze: #775117; --bronze-bg: #211808;
  --tan: #D9A94A; --charcoal: #535353;
  --red: #E8837A; --red-bg: #2c1310;
  --amber: #E0922E; --amber-bg: #2e1f06; --amber-text: #F0B45C;
  --on-gold: #0f0d08;
  --radius: 14px; --radius-sm: 8px; --radius-lg: 18px;
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
  --sidebar-w: 240px;
  --green: #5aad7e; --green-bg: #0d2018;
}
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

/* ===== Toast ===== */
#toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--surface-3); border: 0.5px solid var(--border-strong); border-radius: var(--radius); padding: 11px 20px; font-size: 13.5px; font-weight: 500; box-shadow: 0 8px 30px rgba(0,0,0,0.5); transition: transform 0.28s cubic-bezier(0.34,1.4,0.64,1), opacity 0.2s; opacity: 0; z-index: 2000; max-width: 88vw; text-align: center; }
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
#toast.success { color: var(--gold-bright); border-color: var(--gold); }
#toast.warn { color: var(--amber-text); border-color: var(--amber); }
#toast.error { color: var(--red); border-color: var(--red); }

/* ===== Auth ===== */
#auth-screen { display: none; min-height: 100vh; align-items: center; justify-content: center; padding: 1.5rem; position: relative; overflow: hidden; flex-direction: column; gap: 1.5rem; }
.auth-bg-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); width: 720px; height: 720px; background: radial-gradient(ellipse at center, rgba(190,140,50,0.2) 0%, rgba(190,140,50,0.07) 45%, transparent 70%); border-radius: 50%; pointer-events: none; }
.auth-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(190,140,50,0.09); pointer-events: none; }
.auth-ring-1 { width: 520px; height: 520px; }
.auth-ring-2 { width: 760px; height: 760px; border-color: rgba(190,140,50,0.055); }
.auth-ring-3 { width: 1040px; height: 1040px; border-color: rgba(190,140,50,0.03); }
/* Desktop card — larger and more presence */
.auth-card { background: rgba(22,22,22,0.88); backdrop-filter: blur(14px); border: 0.5px solid rgba(190,140,50,0.2); border-radius: 20px; padding: 3rem 2.75rem; width: 100%; max-width: 500px; box-shadow: 0 32px 100px rgba(0,0,0,0.65), 0 0 0 0.5px rgba(190,140,50,0.08) inset; position: relative; z-index: 1; }
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo .mark { width: 80px; height: 80px; border-radius: 22px; background: linear-gradient(145deg, var(--gold-bright), var(--bronze)); color: var(--on-gold); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; box-shadow: 0 10px 36px rgba(190,140,50,0.45); }
.auth-logo .mark svg { width: 42px; height: 42px; fill: var(--on-gold); stroke: none; }
.auth-logo h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.8px; line-height: 1.1; }
.auth-logo p { font-size: 15px; color: var(--text-2); margin-top: 8px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 8px; }
.field-wrap { position: relative; display: flex; align-items: center; }
.field-icon { position: absolute; left: 14px; display: flex; align-items: center; pointer-events: none; }
.field-icon svg { width: 16px; height: 16px; stroke: var(--text-3, #555); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.field-wrap input { width: 100%; font-family: var(--font); font-size: 15px; padding: 13px 14px 13px 42px; border-radius: var(--radius-sm); border: 0.5px solid var(--border-strong); background: rgba(10,10,10,0.7); color: var(--text); outline: none; transition: border-color 0.15s; box-sizing: border-box; }
.field-wrap input:focus { border-color: var(--gold); }
.pw-toggle { position: absolute; right: 12px; background: none; border: none; cursor: pointer; padding: 4px; display: flex; align-items: center; color: var(--text-3, #555); }
.pw-toggle svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.auth-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; margin-top: 2px; }
.remember-me { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.remember-me input[type=checkbox] { accent-color: var(--gold); width: 15px; height: 15px; cursor: pointer; }
.forgot-link { font-size: 14px; color: var(--gold-bright); cursor: pointer; font-weight: 500; text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }
.auth-btn { width: 100%; font-family: var(--font); font-size: 16px; font-weight: 700; padding: 14px; border-radius: var(--radius-sm); border: none; background: var(--gold); color: var(--on-gold); cursor: pointer; transition: filter 0.15s; }
.auth-btn:hover { filter: brightness(1.08); }
.auth-btn:disabled { opacity: 0.55; cursor: default; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--text-3, #444); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 0.5px; background: var(--border); }
.google-btn { width: 100%; font-family: var(--font); font-size: 15px; font-weight: 500; padding: 13px; border-radius: var(--radius-sm); border: 0.5px solid var(--border-strong); background: var(--surface2, #1f1f1f); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: background 0.15s; }
.google-btn:hover { background: var(--surface3, #262626); }
.auth-toggle { text-align: center; font-size: 14px; color: var(--text-2); margin-top: 1.25rem; }
.auth-toggle a { color: var(--gold-bright); cursor: pointer; font-weight: 600; }
.auth-msg { font-size: 13px; border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 14px; display: none; }
.auth-msg.error { display: block; background: var(--red-bg); color: var(--red); }
.auth-msg.info { display: block; background: var(--bronze-bg); color: var(--gold-bright); }
.auth-secure { position: relative; z-index: 1; font-size: 13px; color: var(--text-3, #444); display: flex; align-items: center; gap: 6px; }
.auth-secure svg { stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
#config-notice { display: none; background: var(--amber-bg); color: var(--amber-text); border-radius: var(--radius-sm); padding: 14px; font-size: 13px; line-height: 1.6; }
#config-notice code { font-family: var(--font-mono); background: rgba(0,0,0,0.3); padding: 1px 5px; border-radius: 3px; }
/* Auth mobile — scale back down gracefully */
@media (max-width: 520px) {
  .auth-card { padding: 2rem 1.5rem; max-width: 100%; border-radius: 16px; }
  .auth-logo .mark { width: 60px; height: 60px; border-radius: 16px; }
  .auth-logo .mark svg { width: 30px; height: 30px; }
  .auth-logo h1 { font-size: 26px; }
  .auth-logo p { font-size: 14px; }
  .auth-bg-glow { width: 400px; height: 400px; }
  .auth-ring-1 { width: 320px; height: 320px; }
  .auth-ring-2 { width: 480px; height: 480px; }
  .auth-ring-3 { width: 660px; height: 660px; }
}

/* ===== App shell ===== */
#app-screen { display: none; }
.main { max-width: 760px; margin: 0 auto; padding: 0 1rem calc(5.5rem + env(safe-area-inset-bottom)); }

/* top bar (mobile) */
.topbar { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1rem; background: rgba(10,10,10,0.82); backdrop-filter: blur(12px); border-bottom: 0.5px solid var(--border); }
.topbar .tb-title { font-size: 15px; font-weight: 600; letter-spacing: -0.2px; display: flex; align-items: center; gap: 8px; }
.topbar .tb-title .logo-dot { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(145deg, var(--gold-bright), var(--bronze)); display: inline-flex; align-items: center; justify-content: center; }
.topbar .tb-title .logo-dot svg { width: 13px; height: 13px; stroke: var(--on-gold); stroke-width: 2.4; fill: none; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: none; background: transparent; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s, color 0.15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* sidebar (desktop) */
.sidebar { display: none; }

/* ===== Greeting ===== */
.greeting { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 1.5rem 0.25rem 1.25rem; }
.greeting h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.greeting p { font-size: 13.5px; color: var(--text-2); margin-top: 5px; max-width: 34ch; line-height: 1.55; }
.greeting .illo { flex-shrink: 0; width: 96px; height: 64px; }
.greeting .illo svg { width: 100%; height: 100%; }

/* ===== Cards ===== */
.card { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 1.15rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.card-head h3 { font-size: 14px; font-weight: 600; }
.section-label { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; margin: 1.8rem 0.25rem 0.9rem; }

.sample-tag { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); border: 0.5px solid var(--border-strong); border-radius: 20px; padding: 2px 8px; }
.is-sample { position: relative; }
.is-sample .sample-dim { opacity: 0.5; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }

/* WFH deduction card (LIVE) */
.ded-card { background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 0.5px solid var(--border-strong); }
.ded-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ded-left .ded-fylabel { font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.ded-amount { font-size: 32px; font-weight: 700; letter-spacing: -1px; color: var(--text); font-variant-numeric: tabular-nums; }
.ded-hours { font-size: 12px; color: var(--gold-bright); margin-top: 4px; font-weight: 500; }
.ded-foot { font-size: 11.5px; color: var(--text-3); margin-top: 0.9rem; border-top: 0.5px solid var(--border); padding-top: 0.7rem; line-height: 1.5; }

/* donut */
.donut { position: relative; width: 116px; height: 116px; flex-shrink: 0; }
.donut svg { width: 116px; height: 116px; transform: rotate(-90deg); }
.donut .track { fill: none; stroke: var(--surface-3); stroke-width: 11; }
.donut .arc { fill: none; stroke: url(#goldgrad); stroke-width: 11; stroke-linecap: round; transition: stroke-dasharray 0.9s cubic-bezier(0.34,1.05,0.64,1); }
.donut .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.donut .center .pct { font-size: 22px; font-weight: 700; color: var(--text); }
.donut .center .cap { font-size: 8.5px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 1px; line-height: 1.2; max-width: 70px; }

/* Work Hours card (LIVE) */
.wh-card .wh-label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.wh-today { font-size: 11px; color: var(--text-3); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; }
.wh-timer { font-family: var(--font-mono); font-size: 42px; font-weight: 600; letter-spacing: -1px; line-height: 1.1; margin: 6px 0 4px; color: var(--text); transition: color 0.3s; }
.wh-timer.running { color: var(--gold-bright); }
.wh-units { font-size: 10.5px; color: var(--text-3); letter-spacing: 0.22em; margin-bottom: 0.65rem; }
.wh-sub { font-size: 13px; color: var(--text-2); margin-bottom: 1rem; }
.clock-cta { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; font-family: var(--font); font-size: 14.5px; font-weight: 700; cursor: pointer; border-radius: var(--radius-sm); border: none; background: var(--gold); color: var(--on-gold); transition: filter 0.15s, transform 0.1s; }
.clock-cta:hover { filter: brightness(1.08); }
.clock-cta:active { transform: scale(0.98); }
.clock-cta.on { background: var(--surface-3); color: var(--gold-bright); border: 1px solid var(--gold); }
.clock-cta:disabled { opacity: 0.6; cursor: default; }
.clock-cta svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.timesheet-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--gold-bright); font-weight: 600; margin-top: 0.8rem; cursor: pointer; }
.timesheet-link svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.2; fill: none; }

/* Quick actions */
.qa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.qa-tile { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 1.3rem 0.5rem 1.2rem; text-align: center; cursor: pointer; transition: background 0.15s, transform 0.1s; position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; }
.qa-tile:hover { background: var(--surface2, #1f1f1f); }
.qa-tile:active { transform: scale(0.97); }
.qa-tile.locked { opacity: 0.55; }
.qa-tile .qa-ico { width: 50px; height: 50px; margin: 0 auto 12px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(190,140,50,0.1); color: var(--gold-bright); }
.qa-tile .qa-ico svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.qa-tile span { font-size: 13px; color: var(--text); font-weight: 600; display: block; line-height: 1.25; }
.qa-tile--clock { background: var(--gold); border-color: var(--gold); }
.qa-tile--clock:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.qa-tile--clock .qa-ico { background: rgba(0,0,0,0.18); color: var(--on-gold); }
.qa-tile--clock span { color: var(--on-gold); }
.qa-tile--clock .qa-sub { color: rgba(10,10,10,0.65) !important; }
.qa-tile--clockoff { background: var(--surface2, #1f1f1f); border-color: var(--red, #e05252); }
.qa-tile--clockoff .qa-ico { background: rgba(224,82,82,0.12); color: var(--red, #e05252); }
.qa-tile--clockoff span { color: var(--text); }
.qa-tile--clockoff .qa-sub { color: var(--red, #e05252) !important; }
.qa-lock { position: absolute; top: 7px; right: 7px; width: 13px; height: 13px; color: var(--text-3); }
.qa-lock svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 2; fill: none; }

/* line chart placeholder */
.spark { width: 100%; height: 78px; margin-top: 0.4rem; }
.spark svg { width: 100%; height: 100%; }
.exp-amount { font-size: 28px; font-weight: 700; letter-spacing: -0.8px; }
.exp-delta { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* category bars */
.cat-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0; border-bottom: 0.5px solid var(--border); }
.cat-row:last-child { border-bottom: none; }
.cat-ico { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cat-ico svg { width: 17px; height: 17px; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cat-meta { flex: 1; min-width: 0; }
.cat-meta .cn { font-size: 13px; font-weight: 600; }
.cat-meta .cv { font-size: 11.5px; color: var(--text-3); }
.cat-bar-wrap { flex: 1.2; }
.cat-bar-bg { background: var(--surface-3); border-radius: 4px; height: 6px; overflow: hidden; }
.cat-bar-fill { height: 6px; border-radius: 4px; }
.cat-pct { font-size: 12px; color: var(--text-2); font-weight: 600; width: 34px; text-align: right; flex-shrink: 0; }

/* banner + export */
.banner { display: flex; align-items: center; gap: 0.9rem; background: var(--bronze-bg); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1rem; }
.banner .bico { width: 34px; height: 34px; flex-shrink: 0; color: var(--gold-bright); }
.banner .bico svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.8; fill: none; }
.banner .btxt { flex: 1; }
.banner .btxt strong { font-size: 13px; display: block; }
.banner .btxt span { font-size: 11.5px; color: var(--text-2); }
.banner .blink { font-size: 12px; color: var(--gold-bright); font-weight: 600; cursor: pointer; white-space: nowrap; }
.export-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.export-card .ex-txt strong { font-size: 13.5px; display: block; }
.export-card .ex-txt span { font-size: 11.5px; color: var(--text-2); }
.ex-btn { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font); font-size: 12.5px; font-weight: 600; padding: 8px 13px; border-radius: var(--radius-sm); border: 0.5px solid var(--border-strong); background: var(--surface-2); color: var(--text-2); cursor: pointer; white-space: nowrap; }
.ex-btn:hover { color: var(--text); }
.ex-btn svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Bottom nav (mobile) ===== */
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: space-around; background: rgba(18,18,18,0.92); backdrop-filter: blur(14px); border-top: 0.5px solid var(--border); padding: 8px 4px calc(14px + env(safe-area-inset-bottom)); overflow: visible; }
.nav-item { flex: 1; background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; color: var(--text-3); transition: color 0.15s; }
.nav-item svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nav-item span { font-size: 9.5px; font-weight: 500; }
.nav-item.active { color: var(--gold-bright); }
.nav-item.locked { opacity: 0.6; }
.nav-spacer { flex: 1; }
.fab { position: relative; flex-shrink: 0; width: 58px; height: 58px; margin: 0 4px; transform: translateY(-14px); border-radius: 50%; border: none; background: var(--gold); color: var(--on-gold); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 22px rgba(190,140,50,0.45); transition: filter 0.15s, transform 0.1s; }
.fab:active { transform: translateY(-14px) scale(0.94); }
.fab.running { background: var(--surface-3); color: var(--gold-bright); border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(190,140,50,0.15); }
.fab svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fab-label { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); font-size: 9px; font-weight: 700; color: var(--text-3); white-space: nowrap; }

/* ===== WFH timesheet screen ===== */
#screen-wfh { display: none; }
.wfh-head { display: flex; align-items: center; gap: 10px; padding: 1.1rem 0.25rem 0.5rem; }
.wfh-head h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.4px; }
.wfh-head p { font-size: 12px; color: var(--text-2); }
.back-btn { width: 36px; height: 36px; border-radius: 10px; border: 0.5px solid var(--border-strong); background: var(--surface); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.back-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.clock-card { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 1.8rem 1.25rem 1.4rem; text-align: center; margin: 0.5rem 0 0.9rem; }
.big-time { font-family: var(--font-mono); font-size: 56px; font-weight: 600; letter-spacing: -2px; line-height: 1; margin-bottom: 10px; transition: color 0.3s; }
.big-time.running { color: var(--gold-bright); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); background: var(--surface-2); border-radius: 20px; padding: 5px 13px; margin-bottom: 1.1rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); transition: background 0.3s; }
.dot.active { background: var(--gold-bright); box-shadow: 0 0 0 3px rgba(190,140,50,0.25); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(190,140,50,0.25); } 50% { box-shadow: 0 0 0 7px rgba(190,140,50,0.05); } }
.note-row { display: flex; gap: 8px; margin-bottom: 1.1rem; max-width: 460px; margin-left: auto; margin-right: auto; }
.note-input { flex: 1; font-family: var(--font); font-size: 14px; padding: 9px 13px; border-radius: var(--radius-sm); border: 0.5px solid var(--border-strong); background: var(--bg); color: var(--text); outline: none; transition: border-color 0.15s; }
.note-input:focus { border-color: var(--gold); }
.clock-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 44px; font-family: var(--font); font-size: 16px; font-weight: 700; cursor: pointer; border-radius: var(--radius-sm); border: none; background: var(--gold); color: var(--on-gold); transition: filter 0.15s, transform 0.1s; min-width: 190px; }
.clock-btn:hover { filter: brightness(1.08); }
.clock-btn:active { transform: scale(0.97); }
.clock-btn:disabled { opacity: 0.6; cursor: default; }
.clock-btn.on { background: var(--surface-3); color: var(--gold-bright); border: 1.5px solid var(--gold); }
.clock-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rate-note { margin-top: 11px; font-size: 12px; color: var(--text-3); }

.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-bottom: 1.1rem; }
.metric { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1rem; }
.metric-label { font-size: 10.5px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 5px; }
.metric-value { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }
.metric-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.metric-sub.gold { color: var(--gold-bright); font-weight: 500; }

.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.1rem; }
.tab-btn { font-family: var(--font); font-size: 13px; font-weight: 500; padding: 10px 15px; border: none; background: none; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.15s; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--gold-bright); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.log-controls { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.log-controls h3 { font-size: 14px; font-weight: 600; }
.ctrl-group { display: flex; gap: 8px; align-items: center; }
select, .btn-sm { font-family: var(--font); font-size: 12px; padding: 6px 10px; border-radius: var(--radius-sm); border: 0.5px solid var(--border-strong); background: var(--surface); color: var(--text-2); cursor: pointer; outline: none; }
select:hover, .btn-sm:hover { color: var(--text); }
.btn-sm { display: inline-flex; align-items: center; gap: 5px; }
.btn-sm svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { text-align: left; padding: 9px 10px; font-weight: 600; font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); }
tbody td { padding: 11px 10px; border-bottom: 0.5px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
.deduction-cell { color: var(--gold-bright); font-weight: 600; }
.note-cell { color: var(--text-2); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.del-btn { background: none; border: none; cursor: pointer; color: var(--text-3); padding: 4px 5px; border-radius: 4px; display: flex; align-items: center; transition: color 0.15s, background 0.15s; }
.del-btn:hover { color: var(--red); background: var(--red-bg); }
.del-btn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.manual-badge { font-size: 10px; background: var(--bronze-bg); color: var(--gold-bright); padding: 1px 6px; border-radius: 10px; margin-left: 5px; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-3); font-size: 13px; }
.empty-state svg { width: 34px; height: 34px; stroke: var(--text-3); stroke-width: 1.5; fill: none; margin-bottom: 10px; opacity: 0.5; }

.manual-form { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.manual-form p { font-size: 13px; color: var(--text-2); margin-bottom: 1rem; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); }
.form-group input { font-family: var(--font); font-size: 14px; padding: 8px 10px; border-radius: var(--radius-sm); border: 0.5px solid var(--border-strong); background: var(--bg); color: var(--text); outline: none; }
.form-group input:focus { border-color: var(--gold); }
.form-group.grow { flex: 1; min-width: 140px; }
.add-btn { font-family: var(--font); font-size: 14px; font-weight: 700; padding: 9px 18px; border-radius: var(--radius-sm); border: none; background: var(--gold); color: var(--on-gold); cursor: pointer; white-space: nowrap; transition: filter 0.15s; display: flex; align-items: center; gap: 6px; }
.add-btn:hover { filter: brightness(1.08); }
.add-btn:disabled { opacity: 0.6; cursor: default; }
.add-btn svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.6; fill: none; }

.summary-hero { background: linear-gradient(150deg, var(--gold-bg), var(--surface)); border: 0.5px solid var(--border-strong); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-bottom: 1.1rem; }
.summary-hero-label { font-size: 12px; color: var(--gold-bright); opacity: 0.85; margin-bottom: 5px; }
.summary-hero-amount { font-size: 34px; font-weight: 700; color: var(--text); letter-spacing: -1px; }
.summary-hero-sub { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.month-row { margin-bottom: 14px; }
.month-row-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.month-name { font-weight: 500; }
.month-stat { color: var(--gold-bright); font-weight: 600; }
.bar-bg { background: var(--surface-3); border-radius: 4px; height: 7px; overflow: hidden; }
.bar-fill { background: linear-gradient(90deg, var(--bronze), var(--gold-bright)); border-radius: 4px; height: 7px; transition: width 0.6s cubic-bezier(0.34,1.1,0.64,1); }
.ato-note { background: var(--surface-2); border-left: 3px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 11px 14px; font-size: 12px; color: var(--text-2); margin-top: 1.5rem; line-height: 1.7; }

/* import banner */
#import-banner { display: none; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--bronze-bg); color: var(--gold-bright); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 1rem; font-size: 13px; }
#import-banner .imp-actions { display: flex; gap: 8px; }
#import-banner button { font-family: var(--font); font-size: 12px; font-weight: 600; padding: 7px 13px; border-radius: var(--radius-sm); cursor: pointer; border: 0.5px solid var(--gold); background: transparent; color: var(--gold-bright); }
#import-banner button.primary { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }

#loading { display: none; text-align: center; padding: 3rem 1rem; color: var(--text-3); font-size: 13px; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

.fade-in { animation: fadeUp 0.4s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

/* ===== Desktop ===== */
@media (min-width: 900px) {
  .topbar { display: none; }
  .bottomnav { display: none; }
  .sidebar { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); background: var(--surface); border-right: 0.5px solid var(--border); padding: 1.4rem 1rem 1.2rem; z-index: 150; }
  .sidebar .sb-logo { display: flex; align-items: center; gap: 11px; padding: 0 0.4rem 1.6rem; }
  .sidebar .sb-logo .logo-dot { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(145deg, var(--gold-bright), var(--bronze)); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .sidebar .sb-logo .logo-dot svg { width: 22px; height: 22px; fill: var(--on-gold); stroke: none; }
  .sb-logo-text { display: flex; flex-direction: column; gap: 1px; }
  .sb-logo-name { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; line-height: 1.2; }
  .sb-logo-sub { font-size: 11px; color: var(--text-3); font-weight: 400; }
  .sb-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
  .sb-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); border: none; background: none; color: var(--text-2); font-family: var(--font); font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; width: 100%; transition: background 0.15s, color 0.15s; }
  .sb-item svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
  .sb-item:hover { background: var(--surface2, #1f1f1f); color: var(--text); }
  .sb-item.active { background: rgba(190,140,50,0.15); color: var(--gold-bright); font-weight: 600; }
  .sb-item.active svg { stroke: var(--gold-bright); }
  .sb-item.locked { opacity: 0.45; cursor: default; }
  .sb-bottom { border-top: 0.5px solid var(--border); padding-top: 0.9rem; margin-top: 0.5rem; display: flex; flex-direction: column; gap: 6px; }
  .sb-profile-card, .sb-plan-card { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: var(--radius-sm); cursor: pointer; transition: background 0.15s; border: 0.5px solid var(--border); background: var(--bg); }
  .sb-profile-card:hover, .sb-plan-card:hover { background: var(--surface2, #1f1f1f); }
  .sb-av-wrap { position: relative; width: 36px; height: 36px; flex-shrink: 0; }
  .sb-av-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
  .sb-av-initials { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--bronze), var(--gold-bright)); color: var(--on-gold); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
  .sb-pf-text, .sb-plan-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
  .sb-pf-name, .sb-plan-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sb-pf-sub, .sb-plan-sub { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sb-pf-chevron { width: 14px; height: 14px; stroke: var(--text-3); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
  .sb-plan-ico { width: 36px; height: 36px; border-radius: 50%; background: rgba(190,140,50,0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .sb-plan-ico svg { width: 18px; height: 18px; stroke: var(--gold-bright); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .sb-plan-name { color: var(--gold-bright); }

  .main { max-width: none; margin: 0 0 0 var(--sidebar-w); padding: 1.75rem 2.25rem 3rem; width: calc(100% - var(--sidebar-w)); box-sizing: border-box; }
  .greeting { padding-top: 0.5rem; }
  .greeting h2 { font-size: 26px; }
  .greeting .illo { width: 130px; height: 80px; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .qa-grid { gap: 1rem; }
  .dash-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; align-items: start; }
  .big-time { font-size: 64px; }
  .metrics { grid-template-columns: repeat(4, 1fr); }
  #screen-wfh .wfh-inner, #screen-dashboard .dash-inner { max-width: 100%; }
}

@media (max-width: 380px) {
  .qa-grid { grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
  .qa-tile span { font-size: 10px; }
  .big-time { font-size: 48px; }
}

/* ===== Break tracking ===== */

/* Coloured button states — clock-cta (dashboard) */
.clock-cta.break-btn  { background: var(--red-bg);   color: var(--red);   border: 1px solid var(--red); }
.clock-cta.resume-btn { background: var(--green-bg);  color: var(--green); border: 1px solid var(--green); }
.clock-cta.clockoff-btn { background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border-strong); }
.clock-cta.break-btn:hover, .clock-cta.resume-btn:hover { filter: brightness(1.1); }
.clock-cta.clockoff-btn:hover { color: var(--text); }

/* Same states for large clock-btn (WFH screen) */
.clock-btn.break-btn  { background: var(--red-bg);   color: var(--red);   border: 1.5px solid var(--red); }
.clock-btn.resume-btn { background: var(--green-bg);  color: var(--green); border: 1.5px solid var(--green); }
.clock-btn.clockoff-btn { background: var(--surface-3); color: var(--text-2); border: 1.5px solid var(--border-strong); }

/* Side-by-side break / clock-off row */
.clock-controls-row { display: flex; gap: 8px; width: 100%; }
.clock-controls-row .clock-cta { flex: 1; width: auto; }
.clock-controls-row .clock-btn  { flex: 1; min-width: 0; padding-left: 12px; padding-right: 12px; }

/* FAB coloured states */
.fab.working  { background: var(--red);   color: #fff; border: none; box-shadow: 0 6px 22px rgba(232,131,122,0.45); }
.fab.on-break { background: var(--green); color: #fff; border: none; box-shadow: 0 6px 22px rgba(90,173,126,0.45); }
.fab.working:active  { transform: translateY(-14px) scale(0.94); }
.fab.on-break:active { transform: translateY(-14px) scale(0.94); }

/* Timer colour when paused on break */
.wh-timer.on-break { color: var(--amber-text); }
.big-time.on-break  { color: var(--amber-text); }

/* Status dot on break */
.dot.on-break { background: var(--amber); box-shadow: 0 0 0 3px rgba(224,146,46,0.25); animation: pulse-amber 2s infinite; }
@keyframes pulse-amber { 0%,100% { box-shadow: 0 0 0 3px rgba(224,146,46,0.25); } 50% { box-shadow: 0 0 0 7px rgba(224,146,46,0.05); } }

/* Break summary card */
.break-summary { background: var(--surface-2); border-radius: var(--radius-sm); padding: 9px 12px; margin-bottom: 10px; }
.break-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 2px 0; }
.break-row .br-label { color: var(--text-2); }
.break-row .br-val { font-weight: 600; font-variant-numeric: tabular-nums; }
.break-row .br-val.gold { color: var(--gold-bright); }
.break-row.claimable { border-top: 0.5px solid var(--border); margin-top: 5px; padding-top: 7px; }

/* Weekly total row under the clock controls */
.wh-week-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 0.5px solid var(--border); font-size: 12px; }
.wh-week-row .wh-week-label { color: var(--text-2); }
.wh-week-row .wh-week-val   { font-weight: 600; color: var(--gold-bright); font-variant-numeric: tabular-nums; }

/* ===== Redesigned dashboard ===== */

/* 4-column stat cards */
.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-bottom: 1rem; }
.stat-card { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.3rem; }
.stat-card--primary { background: linear-gradient(160deg, var(--surface-2), var(--surface)); border-color: var(--border-strong); }
.stat-card[onclick] { transition: background 0.15s; cursor: pointer; }
.stat-card[onclick]:hover { background: var(--surface-2); }
.sc-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 0.85rem; }
.sc-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); line-height: 1.4; }
.sc-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--surface-3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sc-ico svg { width: 16px; height: 16px; stroke: var(--gold-bright); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sc-amount { font-size: 26px; font-weight: 700; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.sc-unit { font-size: 15px; font-weight: 600; color: var(--text-2); }
.sc-badge { font-size: 13px; font-weight: 500; margin-top: 6px; color: var(--text-2); }
.sc-badge.gold { color: var(--gold-bright); }
.sc-desc { font-size: 11px; color: var(--text-3); margin-top: 5px; line-height: 1.4; }

/* Mid row: Work Hours + This Week Overview */
.dash-mid-row { display: grid; grid-template-columns: 1fr; gap: 0.85rem; margin-bottom: 1rem; }
.week-chip { font-size: 12px; color: var(--text-2); background: var(--surface-2); border-radius: 20px; padding: 4px 12px; border: 0.5px solid var(--border-strong); white-space: nowrap; }
.week-cols { display: flex; border-top: 0.5px solid var(--border); margin-top: 0.85rem; }
.week-col { flex: 1; text-align: center; padding: 1.1rem 0.4rem; border-right: 0.5px solid var(--border); }
.week-col:last-child { border-right: none; }
.week-col[onclick]:hover { background: var(--surface-2); border-radius: var(--radius-sm); }
.week-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.week-ico svg { width: 20px; height: 20px; stroke: var(--gold-bright); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.week-col.is-sample .week-ico svg { stroke: var(--text-3); }
.week-val { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.week-lbl { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.week-avg { font-size: 11px; color: var(--text-3); margin-top: 7px; line-height: 1.5; }
.week-avg span { color: var(--text-2); font-weight: 500; }

/* 6-tile quick actions */
.qa-grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 1.2rem; }
.qa-tile .qa-sub { font-size: 12px; color: var(--text-3); display: block; margin-top: 4px; line-height: 1.3; }

/* Vehicle usage + At a Glance row */
.dash-vehicle-row { display: grid; grid-template-columns: 1fr; gap: 0.85rem; margin-bottom: 0.85rem; }
.vehicle-card-body { display: flex; align-items: center; gap: 1.25rem; padding-top: 0.5rem; flex-wrap: wrap; }
.vehicle-stats { flex: 1; min-width: 130px; }
.vs-item { margin-bottom: 0.65rem; }
.vs-val { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; display: block; font-variant-numeric: tabular-nums; }
.vs-val.gold { color: var(--gold-bright); }
.vs-lbl { font-size: 11px; color: var(--text-3); }
.view-lb-btn { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font); font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: var(--radius-sm); border: 0.5px solid var(--gold); background: var(--gold-bg); color: var(--gold-bright); cursor: pointer; transition: filter 0.15s; margin-top: 0.2rem; }
.view-lb-btn:hover { filter: brightness(1.1); }

/* At a Glance */
.glance-list { margin-top: 0.25rem; }
.glance-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 0.5px solid var(--border); font-size: 13px; }
.glance-row:last-child { border-bottom: none; }
.glance-label { color: var(--text-2); }
.glance-val { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Session log — break + claimable columns */
.break-cell    { color: var(--amber-text); font-size: 13px; }
.claimable-cell { font-weight: 600; }

/* Desktop overrides for new dashboard */
@media (min-width: 900px) {
  .stat-cards      { grid-template-columns: repeat(4, 1fr); }
  .sc-amount       { font-size: 32px; }
  .sc-label        { font-size: 11px; }
  .sc-badge        { font-size: 13.5px; }
  .sc-desc         { font-size: 11.5px; }
  .sc-ico          { width: 38px; height: 38px; }
  .sc-ico svg      { width: 18px; height: 18px; }
  .dash-mid-row    { grid-template-columns: 1fr 1.15fr; }
  .qa-grid-6       { grid-template-columns: repeat(6, 1fr); }
  .dash-vehicle-row{ grid-template-columns: 1.1fr 1fr; }
  .wh-timer        { font-size: 52px; }
  .wh-units        { font-size: 11px; letter-spacing: 0.25em; }
  .wh-sub          { font-size: 13.5px; }
  .wh-card .wh-label { font-size: 14px; }
  .wh-week-row     { font-size: 13px; margin-top: 14px; padding-top: 14px; }
  .week-val        { font-size: 28px; }
  .week-lbl        { font-size: 12.5px; }
  .week-ico        { width: 52px; height: 52px; }
  .week-ico svg    { width: 22px; height: 22px; }
  .greeting h2     { font-size: 32px; }
  .greeting p      { font-size: 14.5px; }
  .greeting .illo  { width: 140px; height: 86px; }
  .section-label   { font-size: 17px; margin-top: 2rem; margin-bottom: 1rem; }
  .card            { padding: 1.5rem; }
  .card-head h3    { font-size: 15px; }
  .stat-card       { padding: 1.5rem 1.4rem; }
}

/* ===== Forgot password link ===== */
.forgot-link { text-align: right; margin-top: 6px; font-size: 12px; }
.forgot-link a { color: var(--text-3); cursor: pointer; }
.forgot-link a:hover { color: var(--text-2); }

/* ===== Return trip toggle ===== */
.return-trip-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 13px; font-weight: 500; margin-top: 10px; }
.return-trip-toggle input { display: none; }
.rt-track { width: 38px; height: 22px; border-radius: 11px; background: var(--surface-3); border: 0.5px solid var(--border-strong); position: relative; transition: background 0.2s; flex-shrink: 0; }
.rt-thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-3); transition: transform 0.2s, background 0.2s; }
.return-trip-toggle input:checked ~ .rt-track { background: var(--gold-bg); border-color: var(--gold); }
.return-trip-toggle input:checked ~ .rt-track .rt-thumb { transform: translateX(16px); background: var(--gold-bright); }
.rt-label { color: var(--text-2); }
.km-return-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--gold-bg); color: var(--gold-bright); border: 0.5px solid var(--gold); border-radius: 4px; padding: 2px 6px; }

/* ===== Floating Clock Widget ===== */
.float-clock {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  width: 340px;
  background: var(--surface);
  border: 0.5px solid rgba(190,140,50,0.35);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 0.5px rgba(190,140,50,0.1) inset;
  overflow: hidden;
  animation: floatIn 0.3s cubic-bezier(0.34,1.4,0.64,1);
  backdrop-filter: blur(12px);
}
@keyframes floatIn {
  from { opacity:0; transform: translateY(24px) scale(0.95); }
  to   { opacity:1; transform: translateY(0)   scale(1); }
}
.float-clock.minimised { width: 280px; }
.float-clock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 14px;
  background: rgba(190,140,50,0.08);
  border-bottom: 0.5px solid rgba(190,140,50,0.15);
  cursor: default;
}
.float-clock-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
}
.float-clock-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
.float-clock-dot.on-break {
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold-bright);
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
.float-clock-minimize {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.float-clock-minimize:hover { color: var(--text); }
.float-clock-minimize svg {
  width: 18px; height: 18px;
  stroke: currentColor; stroke-width: 2.2;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s ease;
}
.float-clock.minimised .float-clock-minimize svg { transform: rotate(180deg); }
.float-clock-body {
  padding: 22px 22px 18px;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
  max-height: 300px;
  overflow: hidden;
}
.float-clock.minimised .float-clock-body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}
.float-clock-time {
  font-family: var(--font-mono);
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 6px;
}
.float-clock-time.on-break { color: var(--text-3); }
.float-clock-label {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.float-clock-actions {
  display: flex;
  gap: 10px;
}
.float-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 10px;
  border-radius: 11px;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s, background 0.15s;
}
.float-btn svg {
  width: 16px; height: 16px;
  stroke: currentColor; stroke-width: 2.2;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.float-btn--break {
  background: var(--surface2, #1f1f1f);
  color: var(--text-2);
  border: 0.5px solid var(--border-strong);
}
.float-btn--break:hover { background: var(--surface3, #262626); color: var(--text); }
.float-btn--break.resuming {
  background: rgba(190,140,50,0.12);
  color: var(--gold-bright);
  border-color: rgba(190,140,50,0.3);
}
.float-btn--stop {
  background: rgba(224,82,82,0.12);
  color: #e05252;
  border: 0.5px solid rgba(224,82,82,0.25);
}
.float-btn--stop:hover { background: rgba(224,82,82,0.2); }
/* On mobile sit above the bottom nav */
@media (max-width: 767px) {
  .float-clock {
    bottom: calc(5rem + env(safe-area-inset-bottom));
    right: 1rem;
    width: 260px;
  }
  .float-clock-time { font-size: 42px; }
}

/* ===== Insights screen ===== */
#screen-insights { display: none; }
.ins-row-2 { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
@media (min-width: 820px) { .ins-row-2 { grid-template-columns: 1fr 1fr; } }

/* Shared */
.ins-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: 0.03em; }
.ins-badge--good { background: rgba(74,222,128,0.12); color: #4ade80; }
.ins-badge--warn { background: rgba(190,140,50,0.15); color: var(--gold-bright); }
.ins-badge--poor { background: rgba(224,82,82,0.12); color: #e05252; }
.ins-see-all { font-size: 12px; color: var(--gold-bright); cursor: pointer; margin-left: auto; }
.ins-see-all:hover { text-decoration: underline; }
.ins-fy-label { font-size: 12px; color: var(--text-3); margin-left: 6px; }

/* ── Tax Return Ready (merged hero) ── */
.ins-ready-merged-body { display: grid; grid-template-columns: auto 1fr; gap: 1.75rem; align-items: start; margin-top: 0.75rem; }
@media (max-width: 600px) { .ins-ready-merged-body { grid-template-columns: 1fr; } }
.ins-ready-donut-col { display: flex; justify-content: center; }
.ins-ready-donut { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.ins-ready-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ins-ready-track { fill: none; stroke: #1f1f1f; stroke-width: 10; }
.ins-ready-arc   { fill: none; stroke: #4ade80; stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray 0.7s ease; }
.ins-ready-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ins-ready-pct { font-size: 30px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.ins-ready-cap { font-size: 11px; color: var(--text-3); margin-top: 3px; text-align: center; }
.ins-ready-checks-col { display: flex; flex-direction: column; gap: 0.75rem; }
.ins-ready-gain-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-top: 0.75rem; border-top: 0.5px solid var(--border); flex-wrap: wrap; }
.ins-hero-gain { font-size: 26px; font-weight: 700; color: #4ade80; letter-spacing: -1px; line-height: 1; }
.ins-improve-btn { padding: 9px 18px; background: var(--gold); color: var(--on-gold); border: none; border-radius: var(--radius); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ins-improve-btn:hover { background: var(--gold-bright); }

/* ── Health Score ── */
.ins-score-body2 { display: flex; gap: 1.25rem; align-items: center; margin: 0.5rem 0 0.75rem; }
.ins-score-donut2 { position: relative; width: 100px; height: 100px; flex-shrink: 0; }
.ins-score-donut2 svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ins-track { fill: none; stroke: #1f1f1f; stroke-width: 10; }
.ins-arc   { fill: none; stroke: #4ade80; stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray 0.6s ease; }
.ins-score-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ins-score-num { font-size: 26px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.ins-score-cap { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.ins-score-footer2 { flex: 1; }
.ins-score-footer { padding-top: 0.5rem; border-top: 0.5px solid var(--border); font-size: 13px; color: var(--text-2); }
.ins-checks2 { display: flex; flex-direction: column; gap: 8px; }
.ins-check2-row { display: grid; grid-template-columns: 18px 1fr 90px 36px; align-items: center; gap: 8px; font-size: 12.5px; }
.ins-check2-ico { display: flex; align-items: center; justify-content: center; }
.ins-check2-label { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-check2-bar-wrap { height: 5px; background: #1f1f1f; border-radius: 3px; overflow: hidden; }
.ins-check2-bar { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.ins-check2-pct { font-size: 11.5px; font-weight: 700; text-align: right; }

/* ── Missed Deductions ── */
.ins-missed-list2 { display: flex; flex-direction: column; gap: 0; }
.ins-missed2-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 0.5px solid var(--border); }
.ins-missed2-row:last-child { border-bottom: none; }
.ins-missed2-ico { font-size: 18px; flex-shrink: 0; }
.ins-missed2-text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; min-width: 0; }
.ins-missed2-sub { font-size: 11.5px; color: var(--text-3); }
.ins-missed2-gain { font-size: 13px; font-weight: 700; color: #4ade80; flex-shrink: 0; }
.ins-missed2-btn { flex-shrink: 0; padding: 5px 10px; background: transparent; border: 0.5px solid var(--gold); color: var(--gold-bright); border-radius: 6px; font-size: 11.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ins-missed2-btn:hover { background: rgba(190,140,50,0.12); }
.ins-missed-total { font-size: 13px; color: var(--text-2); padding-top: 0.65rem; border-top: 0.5px solid var(--border); margin-top: 0.25rem; }

/* ── Recommendations grid ── */
.ins-recs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 0.75rem; }
@media (min-width: 900px) { .ins-recs-grid { grid-template-columns: repeat(4, 1fr); } }
.ins-rec2-card { background: var(--surface2, #1f1f1f); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; gap: 6px; }
.ins-rec2-icon { font-size: 22px; margin-bottom: 2px; }
.ins-rec2-title { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.3; }
.ins-rec2-desc { font-size: 12px; color: var(--text-3); line-height: 1.5; flex: 1; }
.ins-rec2-ded { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.ins-rec2-ded strong { color: var(--gold-bright); }
.ins-rec2-btn { margin-top: auto; padding: 7px 0; background: var(--gold); color: var(--on-gold); border: none; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; }
.ins-rec2-btn:hover { background: var(--gold-bright); }
.ins-recs-total { font-size: 13px; color: var(--text-2); padding-top: 0.65rem; border-top: 0.5px solid var(--border); }

/* ── Projected FY ── */
.ins-forecast-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.5rem; margin-bottom: 0.75rem; }
.ins-fc3-col { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ins-fc3-label { font-size: 12px; color: var(--text-3); font-weight: 600; }
.ins-fc3-val { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.1; }
.ins-fc3-val.gold { color: var(--gold-bright); }
.ins-fc3-sub { font-size: 10.5px; color: var(--text-3); text-align: center; line-height: 1.3; }
.ins-fc3-bar-wrap { width: 100%; height: 80px; display: flex; align-items: flex-end; margin-top: 6px; }
.ins-fc3-bar { width: 100%; border-radius: 4px 4px 0 0; min-height: 4px; transition: height 0.6s ease; }
.ins-fc3-bar--cur  { background: #775117; }
.ins-fc3-bar--proj { background: linear-gradient(180deg, var(--gold-bright), var(--bronze)); }
.ins-fc3-bar--pot  { background: linear-gradient(180deg, #D9A94A, #775117); opacity: 0.6; }
.ins-forecast-gain { font-size: 13px; color: var(--text-2); padding-top: 0.65rem; border-top: 0.5px solid var(--border); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

/* ── Deduction Breakdown donut ── */
.ins-breakdown-body { display: flex; align-items: center; gap: 1.5rem; margin: 0.75rem 0; flex-wrap: wrap; }
.ins-breakdown-donut { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.ins-breakdown-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ins-bd-track { fill: none; stroke: #1f1f1f; stroke-width: 12; }
.ins-bd-veh   { fill: none; stroke: #D9A94A; stroke-width: 12; transition: stroke-dasharray 0.6s; }
.ins-bd-wfh   { fill: none; stroke: #60a5fa; stroke-width: 12; transition: stroke-dasharray 0.6s; }
.ins-bd-exp   { fill: none; stroke: #a78bfa; stroke-width: 12; transition: stroke-dasharray 0.6s; }
.ins-breakdown-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ins-bd-total { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; line-height: 1; }
.ins-bd-cap { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.ins-bd-legend { display: flex; flex-direction: column; gap: 8px; }
.ins-bd-leg-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.ins-bd-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ins-bd-leg-val { margin-left: auto; font-size: 12px; color: var(--text-3); }
.ins-bd-note { font-size: 12px; color: var(--text-3); padding-top: 0.5rem; }

/* ── Year Progress & Milestones ── */
.ins-milestones-body { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 700px) { .ins-milestones-body { grid-template-columns: 1fr 1.4fr; } }
.ins-fy-big-pct { font-size: 36px; font-weight: 700; letter-spacing: -1px; line-height: 1; margin-bottom: 4px; }
.ins-fy-bar-bg { height: 8px; background: #1f1f1f; border-radius: 4px; overflow: hidden; }
.ins-fy-bar-fill { height: 100%; background: linear-gradient(90deg, #4ade80, #22c55e); border-radius: 4px; transition: width 0.6s ease; }
.ins-milestone-row { display: grid; grid-template-columns: 18px 1fr 100px 38px; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 0.5px solid var(--border); font-size: 13px; }
.ins-milestone-row:last-child { border-bottom: none; }
.ins-milestone-chk { font-size: 12px; color: var(--text-3); }
.ins-milestone-chk.done { color: #4ade80; font-weight: 700; }
.ins-milestone-label { color: var(--text-2); }
.ins-milestone-bar-wrap { height: 6px; background: #1f1f1f; border-radius: 3px; overflow: hidden; }
.ins-milestone-bar { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.ins-milestone-pct { font-size: 12px; color: var(--text-3); text-align: right; }
.ins-view-all-btn { margin-top: 0.75rem; background: transparent; border: 0.5px solid var(--gold); color: var(--gold-bright); padding: 7px 14px; border-radius: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.ins-view-all-btn:hover { background: rgba(190,140,50,0.1); }

/* ── Pro Tip banner ── */
.ins-protip { display: flex; align-items: center; gap: 0.85rem; background: rgba(190,140,50,0.08); border: 0.5px solid rgba(190,140,50,0.25); border-radius: var(--radius); padding: 0.9rem 1rem; margin-bottom: 0.5rem; }
.ins-protip-icon { color: var(--gold-bright); flex-shrink: 0; }
.ins-protip-text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.ins-protip-text strong { color: var(--gold-bright); font-size: 13.5px; }
.ins-protip-text span { color: var(--text-2); }
.ins-protip-link { font-size: 12.5px; color: var(--gold-bright); cursor: pointer; white-space: nowrap; flex-shrink: 0; font-weight: 600; }
.ins-protip-link:hover { text-decoration: underline; }

/* ===== Tax Bracket Estimator ===== */
.tax-est-bracket { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; background: rgba(190,140,50,0.12); color: var(--gold-bright); border: 0.5px solid rgba(190,140,50,0.25); border-radius: 20px; padding: 5px 14px; margin-bottom: 1.25rem; }
.tax-est-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tax-est-col { padding: 1.1rem 1.1rem 1rem; }
.tax-est-col--before { background: var(--bg); }
.tax-est-col--after  { background: rgba(190,140,50,0.04); }
.tax-est-col-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 0.85rem; }
.tax-est-col--after .tax-est-col-head { color: var(--gold-bright); }
.tax-est-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-2); padding: 6px 0; border-bottom: 0.5px solid var(--border); }
.tax-est-row:last-child { border-bottom: none; }
.tax-est-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--text); }
.tax-est-row--total { margin-top: 4px; }
.tax-est-row--total span { font-weight: 700; color: var(--text) !important; font-size: 14px; }
.tax-est-row.gold span:last-child { color: var(--gold-bright) !important; }
.tax-est-divider { display: flex; align-items: center; justify-content: center; background: var(--surface); border-left: 0.5px solid var(--border); border-right: 0.5px solid var(--border); padding: 1rem 0.75rem; }
.tax-est-saving-badge { text-align: center; background: linear-gradient(160deg, rgba(190,140,50,0.18), rgba(119,81,23,0.12)); border: 0.5px solid rgba(190,140,50,0.3); border-radius: var(--radius-sm); padding: 1rem 0.85rem; min-width: 110px; }
.tax-est-saving-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 6px; }
.tax-est-saving-amount { font-size: 26px; font-weight: 700; letter-spacing: -1px; color: #4ade80; line-height: 1.1; }
.tax-est-saving-sub { font-size: 10.5px; color: var(--text-3); margin-top: 5px; line-height: 1.4; }
.tax-est-disclaimer { font-size: 11px; color: var(--text-3); margin-top: 1rem; line-height: 1.6; border-top: 0.5px solid var(--border); padding-top: 0.75rem; }
.tax-health-toggle { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; user-select: none; }
.tax-health-toggle input { display: none; }
.tax-health-box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border-strong); background: var(--bg); flex-shrink: 0; margin-top: 2px; transition: background 0.15s, border-color 0.15s; display: flex; align-items: center; justify-content: center; }
.tax-health-toggle input:checked ~ .tax-health-box { background: var(--gold); border-color: var(--gold); }
.tax-health-box::after { content: ''; display: none; width: 5px; height: 9px; border: 2px solid var(--on-gold); border-top: none; border-left: none; transform: rotate(45deg) translateY(-1px); }
.tax-health-toggle input:checked ~ .tax-health-box::after { display: block; }
.tax-health-label { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; color: var(--text); font-weight: 500; }
.tax-health-hint { font-size: 11.5px; color: var(--text-3); font-weight: 400; }
@media (max-width: 600px) {
  .tax-est-grid { grid-template-columns: 1fr; }
  .tax-est-divider { border-left: none; border-right: none; border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border); padding: 1rem; }
}

/* ===== Settings screen ===== */
#screen-settings { display: none; }
.settings-row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.settings-label { color: var(--text-2); }
.settings-val { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

/* ===== Expenses screen ===== */
#screen-expenses { display: none; }
.exp-select { font-family: var(--font); font-size: 14px; padding: 8px 10px; border-radius: var(--radius-sm); border: 0.5px solid var(--border-strong); background: var(--bg); color: var(--text); outline: none; cursor: pointer; }
.exp-select:focus { border-color: var(--gold); }
.exp-cat-pill { font-size: 12px; font-weight: 600; }

/* ===== Reports screen ===== */
#screen-reports { display: none; }

/* Hero pills */
.rep-pills { display: flex; gap: 0.75rem; margin-top: 1rem; }
.rep-pill { flex: 1; background: rgba(0,0,0,0.25); border-radius: var(--radius-sm); padding: 0.75rem; border: 0.5px solid rgba(213,213,213,0.12); }
.rep-pill--vehicle { border-color: rgba(83,83,83,0.4); }
.rep-pill-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-bright); opacity: 0.75; margin-bottom: 4px; }
.rep-pill--vehicle .rep-pill-label { color: var(--text-2); }
.rep-pill-val { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }
.rep-pill-sub { font-size: 11px; color: var(--text-3); margin-top: 3px; }

/* Combined monthly bars */
.rep-month-block { margin-bottom: 1.1rem; }
.rep-month-block:last-child { margin-bottom: 0; }
.rep-bar-row { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.rep-bar-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); width: 52px; flex-shrink: 0; }
.rep-bar-bg { flex: 1; background: var(--surface-3); border-radius: 4px; height: 7px; overflow: hidden; }
.rep-bar-fill-wfh { height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--bronze), var(--gold-bright)); transition: width 0.6s cubic-bezier(0.34,1.1,0.64,1); }
.rep-bar-fill-vehicle { height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--charcoal), var(--text-2)); transition: width 0.6s cubic-bezier(0.34,1.1,0.64,1); }
.rep-bar-fill-exp { height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--bronze-bg), var(--gold)); transition: width 0.6s cubic-bezier(0.34,1.1,0.64,1); }
.rep-bar-val { font-size: 11.5px; color: var(--text-2); font-weight: 600; width: 54px; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* Export grid */
.rep-export-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.rep-export-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.75rem; background: var(--surface-2); border-radius: var(--radius-sm); border: 0.5px solid var(--border); }
.rep-export-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold-bright); }
.rep-export-ico svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rep-export-text { flex: 1; min-width: 0; }
.rep-export-text strong { font-size: 13px; display: block; }
.rep-export-text span { font-size: 11.5px; color: var(--text-2); }

/* ===== Vehicle logbook ===== */
#screen-logbook { display: none; }

/* Live km preview strip */
.km-preview { display: flex; align-items: center; gap: 12px; background: var(--gold-bg); border: 0.5px solid var(--gold); border-radius: var(--radius-sm); padding: 8px 12px; margin-top: 8px; }
.km-badge { font-size: 16px; font-weight: 700; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.km-ded   { font-size: 12px; color: var(--text-2); }

/* Rego pill in the trip table */
.rego-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; background: var(--surface-3); border: 0.5px solid var(--border-strong); border-radius: 5px; padding: 2px 7px; font-family: var(--font-mono); color: var(--text); }

/* Odometer cell — smaller muted text */
.odo-cell { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Scrollable table wrapper (for wide logbook table on mobile) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ===== Mobile slide-down menu ===== */
#mobile-menu { position: fixed; top: calc(56px + env(safe-area-inset-top)); left: 0; right: 0; z-index: 190; background: rgba(22,22,22,0.97); backdrop-filter: blur(16px); border-bottom: 0.5px solid var(--border-strong); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.18s, transform 0.18s, visibility 0.18s; pointer-events: none; }
#mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.mm-item { width: 100%; background: none; border: none; border-bottom: 0.5px solid var(--border); display: flex; align-items: center; gap: 14px; padding: 16px 20px; font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--text-2); cursor: pointer; text-align: left; }
.mm-item:active { background: var(--surface-2); }
.mm-item svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.mm-item.active { color: var(--gold-bright); }
.mm-signout { color: var(--red); border-bottom: none; }
@media (min-width: 768px) { #mobile-menu { display: none !important; } }

/* ===== Activity feed ===== */
.activity-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 0.5px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold-bright); }
.activity-ico svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.activity-text { flex: 1; font-size: 13px; color: var(--text-2); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-time { font-size: 11px; color: var(--text-3); flex-shrink: 0; }
.activity-empty { font-size: 13px; color: var(--text-3); padding: 0.5rem 0; }

/* ===== FY selector (Reports) ===== */
.fy-select { font-family: var(--font); font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: var(--radius-sm); border: 0.5px solid var(--border-strong); background: var(--surface-2); color: var(--gold-bright); outline: none; cursor: pointer; }
.fy-select:focus { border-color: var(--gold); }

/* ===== Saved locations list (Settings) ===== */
.loc-item { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 0.5px solid var(--border); font-size: 13px; color: var(--text-2); }
.loc-item:last-child { border-bottom: none; }

