:root {
  --bg: #0B0D13; --bg2: #10131C;
  --surface: #171A24; --surface2: #1F2333; --surface3: #272C40;
  --border: #2C3149; --border2: #383E5C;
  --accent: #5B95F9; --accent2: #8A6CFF; --accent-soft: rgba(91,149,249,0.14);
  --pro: #8A6CFF; --pro-soft: rgba(138,108,255,0.13); --pro-ink: #CBBEFF;
  --green: #2ECC8A; --red: #FF5C5C; --orange: #F5A623;
  --text: #F2F4FF; --text2: #9398B2; --text3: #5E6485;
  --radius: 18px; --radius-sm: 12px; --radius-xs: 9px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  --shadow: 0 2px 8px rgba(0,0,0,0.28), 0 1px 2px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.45);
  --glow-green: 0 6px 22px rgba(46,204,138,0.35);
  --glow-red: 0 6px 22px rgba(255,92,92,0.32);
}
/* ---- Themes (applied via body[data-theme]; default/dark = :root above) ---- */
body[data-theme="light"]{
  --bg:#EEF1F6; --bg2:#FFFFFF;
  --surface:#FFFFFF; --surface2:#F4F6FA; --surface3:#E9EDF4;
  --border:#DCE1EA; --border2:#C5CCD9;
  --accent:#2F6FE0; --accent2:#7A5CF0; --accent-soft:rgba(47,111,224,0.12);
  --green:#1E9E6A; --red:#E23B3B; --orange:#C77800;
  --text:#14181F; --text2:#5A6273; --text3:#8A93A6;
  --shadow:0 2px 8px rgba(20,24,31,0.08),0 1px 2px rgba(20,24,31,0.06);
  --shadow-lg:0 12px 32px rgba(20,24,31,0.18);
  background:radial-gradient(900px 500px at 50% -10%, rgba(47,111,224,0.06), transparent 60%), var(--bg);
}
body[data-theme="warm"]{
  --bg:#EFE6D6; --bg2:#FBF5EA;
  --surface:#FBF5EA; --surface2:#F2E8D6; --surface3:#E8DAC2;
  --border:#DECCAE; --border2:#CDB991;
  --accent:#B5651D; --accent2:#9A7B3A; --accent-soft:rgba(181,101,29,0.14);
  --green:#5E8C3A; --red:#B23A2E; --orange:#B9760F;
  --text:#3A2E1D; --text2:#6E5E45; --text3:#9A8767;
  --shadow:0 2px 8px rgba(58,46,29,0.08),0 1px 2px rgba(58,46,29,0.06);
  --shadow-lg:0 12px 32px rgba(58,46,29,0.18);
  background:radial-gradient(900px 500px at 50% -10%, rgba(181,101,29,0.07), transparent 60%), var(--bg);
}
body[data-theme="contrast"]{
  --bg:#FFFFFF; --bg2:#FFFFFF;
  --surface:#FFFFFF; --surface2:#F2F2F2; --surface3:#E4E4E4;
  --border:#000000; --border2:#000000;
  --accent:#0A47C2; --accent2:#6A1B9A; --accent-soft:rgba(10,71,194,0.15);
  --green:#0B7A3B; --red:#C40000; --orange:#8A4B00;
  --text:#000000; --text2:#1C1C1C; --text3:#3A3A3A;
  --shadow:none; --shadow-lg:0 8px 24px rgba(0,0,0,0.25);
  background:var(--bg);
}
body[data-theme="ocean"]{
  --bg:#08131A; --bg2:#0C1B24;
  --surface:#102530; --surface2:#16313E; --surface3:#1E4351;
  --border:#21424F; --border2:#2C5566;
  --accent:#22B8C7; --accent2:#3A8FD0; --accent-soft:rgba(34,184,199,0.16);
  --green:#2ECC8A; --red:#FF6B6B; --orange:#F5A623;
  --text:#EAF6F8; --text2:#8FB0B8; --text3:#5E8088;
  background:radial-gradient(900px 500px at 50% -10%, rgba(34,184,199,0.12), transparent 60%), radial-gradient(700px 500px at 100% 0%, rgba(58,143,208,0.08), transparent 55%), var(--bg);
}
/* PRO (paid-pack) accent stays a readable violet on the light themes */
body[data-theme="light"], body[data-theme="warm"], body[data-theme="contrast"]{ --pro:#7A5CF0; --pro-soft:rgba(122,92,240,0.08); --pro-ink:#4A36A6; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font); color: var(--text);
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(91,149,249,0.10), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(138,108,255,0.08), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh; max-width: 440px; margin: 0 auto; padding-bottom: 96px;
  position: relative; padding-top: env(safe-area-inset-top);
  -webkit-font-smoothing: antialiased;
}

/* HEADER */
.header { padding: 20px 18px 8px; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.header-title { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; }

/* ACTIVE PROFILE BAR — which profile/employer you're punching into (UI-7/UI-8) */
.ap-bar {
  display: flex; align-items: center; gap: 11px; width: 100%;
  background: var(--accent-soft); border: none; border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0; padding: 9px 12px; margin-top: 11px;
  cursor: pointer; text-align: left; font-family: inherit;
  -webkit-tap-highlight-color: transparent; transition: transform 0.12s;
}
.ap-bar:active { transform: scale(0.99); }
.ap-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
}
.ap-text { flex: 1; min-width: 0; }
.ap-employer { display: block; font-size: 16.5px; font-weight: 700; color: var(--text); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-name { display: block; font-size: 12px; color: var(--text2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-chev { color: var(--text3); font-size: 24px; font-weight: 400; flex-shrink: 0; line-height: 1; }
/* tint the bar with the active profile's colour so the wrong profile stands out */
.ap-bar.av-blue   { background: rgba(91,149,249,0.13);  border-left-color: #5B95F9; }
.ap-bar.av-green  { background: rgba(46,204,138,0.14);  border-left-color: #2ECC8A; }
.ap-bar.av-orange { background: rgba(245,166,35,0.15);  border-left-color: #F5A623; }
.ap-bar.av-pink   { background: rgba(244,114,182,0.15); border-left-color: #F472B6; }

/* SYNC PILL — top-right backup/cloud status; prominent on purpose (drives cloud renewal later) */
.sync-pill {
  cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
  color: var(--text2); background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 12px;
}
.sync-pill.synced { color: var(--green); background: rgba(46,204,138,0.12); border-color: rgba(46,204,138,0.30); }
.sync-pill.syncing { color: var(--accent); }
.sync-pill.offline { color: var(--orange); background: rgba(245,166,35,0.10); border-color: rgba(245,166,35,0.30); }
.sync-pill.error { color: var(--red); background: rgba(255,92,92,0.10); border-color: rgba(255,92,92,0.32); }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text3); }
.sync-dot.synced { background: var(--green); box-shadow: 0 0 0 3px rgba(46,204,138,0.18); }
.sync-dot.syncing { background: var(--accent); animation: pulse 1s infinite; }
.sync-dot.offline { background: var(--orange); }
.sync-dot.error { background: var(--red); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* NAV */
.nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 440px;
  background: rgba(20,23,32,0.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border); display: flex;
  padding: 9px 0 calc(9px + env(safe-area-inset-bottom)); z-index: 100;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; padding: 5px 0; color: var(--text3); font-size: 10px; font-weight: 600;
  border: none; background: none; transition: color 0.2s; position: relative;
}
.nav-item.active { color: var(--accent); }
.nav-item.active::before {
  content: ''; position: absolute; top: -9px; width: 26px; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.nav-icon { font-size: 21px; line-height: 1; transition: transform 0.2s; }
.nav-item.active .nav-icon { transform: translateY(-1px) scale(1.08); }

/* SCREENS / CARDS */
.screen { display: none; padding: 0 20px; animation: fadeIn 0.25s ease; }
.screen.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 15px; box-shadow: var(--shadow);
}
.card-label {
  font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 13px; display: flex; justify-content: space-between; align-items: center;
}
/* PUNCH CLOCK */
.clock-display { text-align: center; padding: 22px 0 18px; }
.clock-time {
  font-size: 54px; font-weight: 800; letter-spacing: -2px; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #8FB6FF, var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.clock-date { font-size: 13.5px; color: var(--text2); margin-top: 6px; }
.clock-elapsed { font-size: 13px; color: var(--green); margin-top: 8px; font-weight: 700; min-height: 20px; font-variant-numeric: tabular-nums; }
.punch-btn {
  width: 100%; padding: 19px; border-radius: var(--radius); border: none;
  font-size: 17px; font-weight: 800; cursor: pointer; transition: transform 0.12s, box-shadow 0.2s;
  letter-spacing: 0.3px; margin-top: 6px; color: white;
}
.punch-btn.in { background: linear-gradient(135deg, #38E29C, #1FA068); box-shadow: var(--glow-green); }
.punch-btn.out { background: linear-gradient(135deg, #FF6B6B, #D83A3A); box-shadow: var(--glow-red); }
.punch-btn:active { transform: scale(0.97); }
.status-pill {
  display: flex; align-items: center; gap: 7px; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 15px; font-size: 13px; font-weight: 600; margin: 14px auto; width: fit-content;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text3); }
.status-dot.active { background: var(--green); box-shadow: 0 0 0 3px rgba(46,204,138,0.25); }
.today-hours { display: flex; justify-content: space-around; padding: 16px 0 4px; }
.today-stat { text-align: center; flex: 1; }
.today-stat + .today-stat { border-left: 1px solid var(--border); }
.today-stat-val { font-size: 23px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }
.today-stat-lbl { font-size: 10.5px; color: var(--text2); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.6px; }
.today-earn { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border); }
.today-earn-lbl { font-size: 11px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.6px; }
.today-earn-est { color: var(--text3); letter-spacing: 0; }
.today-earn-val { font-size: 22px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }

/* TIMESHEET */
.week-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.week-nav-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; width: 38px; height: 38px; color: var(--text); cursor: pointer; font-size: 18px; transition: background 0.15s; }
.week-nav-btn:active { background: var(--surface3); }
.week-label { font-size: 14px; font-weight: 700; text-align: center; flex: 1; min-width: 0; line-height: 1.3; }
.week-label-jump { background: none; border: none; cursor: pointer; color: var(--text); padding: 4px 10px; border-radius: 8px; transition: background 0.15s; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.week-label-jump:active { background: var(--surface2); }
.wheel-trigger { cursor: pointer; }
/* week — compact spreadsheet */
.ts-tbl { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ts-tbl th { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text3); padding: 6px 2px; text-align: center; border-bottom: 1px solid var(--border); }
.ts-tbl th:first-child { text-align: left; padding-left: 4px; }
.ts-tbl td { padding: 5px 2px; text-align: center; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ts-row.is-today td { background: rgba(91,149,249,0.06); }
.ts-row.ts-flash td { animation: tsFlash 1.6s ease; }
@keyframes tsFlash { 0%,100% { background: transparent; } 20% { background: var(--accent-soft); } }
.ts-day { text-align: left; padding-left: 4px; vertical-align: top; }
.ts-day-h { display: flex; align-items: center; gap: 4px; }
.ts-day-name { font-size: 13px; font-weight: 700; }
.ts-row.is-today .ts-day-name { color: var(--accent); }
.ts-day-date { display: block; color: var(--text3); font-weight: 400; font-size: 11px; margin-top: 1px; }
.ts-dayadd { color: var(--accent); font-size: 13px; font-weight: 700; cursor: pointer; padding: 0 2px; }
.ts-day-tot { font-size: 11px; color: var(--accent); font-weight: 700; margin-top: 1px; font-variant-numeric: tabular-nums; }
.ts-day-tot .ot { color: var(--orange); font-weight: 600; }
.ts-cell { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 8px 1px; color: var(--text); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; font-family: var(--font); }
.ts-cell.is-empty { color: var(--text3); font-weight: 500; }
.ts-cell.ts-addin { width: auto; display: inline-block; padding: 5px 18px; font-size: 12px; }
.ts-cell.live { border-color: var(--green); color: var(--green); }
.ts-cell:active { border-color: var(--accent); }
.ts-hrs { font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.ts-hrs.zero { color: var(--text3); font-weight: 500; }
.ts-act { background: none; border: none; cursor: pointer; font-size: 15px; padding: 4px 2px; color: var(--text3); }
.ts-act.ts-del:active { color: var(--red); }
.ts-chip-row td { padding: 0 4px 8px; border-top: none; text-align: left; }
.ts-chip { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin-right: 6px; font-variant-numeric: tabular-nums; letter-spacing: 0.2px; }
.ts-chip.ot { background: rgba(245,166,35,0.16); color: var(--orange); }
.ts-chip.sat { background: rgba(245,166,35,0.22); color: var(--orange); }
.ts-chip.sun { background: rgba(255,92,92,0.16); color: var(--red); }
.ts-chip.hol { background: rgba(46,204,138,0.16); color: var(--green); }
.ts-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ts-meta-chips { display: flex; flex-wrap: wrap; align-items: center; }
.ts-meta-acts { display: flex; gap: 6px; flex-shrink: 0; padding-right: 4px; margin-left: auto; }
.ts-act { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 9px; border-radius: 7px; cursor: pointer; border: 1px solid transparent; font-variant-numeric: tabular-nums; }
.ts-act.empty { background: var(--surface2); border-color: var(--border2); }
.ts-act.meal-on { background: rgba(127,119,221,0.18); color: var(--accent2); }
.ts-act.note-on { background: rgba(46,204,138,0.16); color: var(--green); }
.ts-act.tip-on { background: rgba(30,158,106,0.14); color: var(--green); }
.ts-act:active { filter: brightness(0.95); }
/* month — calendar grid with weekly total column */
.ts-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin: 0 -12px; }
.cwd { text-align: center; font-size: 11px; color: var(--text3); padding-bottom: 4px; font-weight: 700; }
.cal-cell { position: relative; min-height: 68px; border: 1px solid var(--border); border-radius: 10px; background: none; cursor: pointer; font-family: var(--font); padding: 0; }
.cal-cell.has { background: var(--surface2); }
.cal-cell.today { border-color: var(--accent); border-width: 1.5px; }
.cal-cell.out { opacity: 0.3; }
.cal-num { position: absolute; top: 5px; left: 7px; font-size: 11px; color: var(--text2); font-weight: 400; }
.cal-cell.today .cal-num { color: var(--accent); font-weight: 700; }
.cal-h { position: absolute; top: 25px; left: 0; right: 0; text-align: center; font-size: 14px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.cal-tags { position: absolute; bottom: 5px; left: 0; right: 0; display: flex; gap: 2px; justify-content: center; }
.cal-tag { font-size: 7px; font-weight: 700; color: #fff; border-radius: 3px; padding: 1px 2px; line-height: 1; }
.cal-tag.lunch { background: var(--accent2); }
.cal-tag.dinner { background: var(--orange); }
.cal-tag.note { background: var(--green); }
.cal-tag.tip { background: none; padding: 0; font-size: 10px; line-height: 1; }
#monthTotals { background: var(--surface); border-color: var(--border); }
.week-summary {
  background: linear-gradient(135deg, rgba(91,149,249,0.16), rgba(138,108,255,0.14));
  border: 1px solid rgba(91,149,249,0.28); border-radius: var(--radius); padding: 20px; margin-top: 6px; box-shadow: var(--shadow);
}
.week-summary-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; text-align: center; }
.wsumm-val { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }
.wsumm-lbl { font-size: 10.5px; color: var(--text2); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.6px; }
.wsumm-val.green { color: var(--green); } .wsumm-val.orange { color: var(--orange); } .wsumm-val.accent { color: var(--accent); }

/* PERIOD TABS (reports) */
.period-tabs { display: flex; gap: 6px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 14px; }
.period-tab { flex: 1; text-align: center; padding: 9px 4px; border-radius: var(--radius-xs); border: none; background: none; color: var(--text2); font-size: 12.5px; font-weight: 700; cursor: pointer; transition: all 0.18s; font-family: var(--font); }
.period-tab.active { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: white; box-shadow: 0 3px 10px rgba(91,149,249,0.35); }
/* PAY */
.pay-rate-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pay-label { font-size: 14px; color: var(--text2); flex: 1; }
.pay-input {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 10px 12px;
  color: var(--text); font-size: 16px; font-weight: 700; width: 116px; outline: none; font-family: var(--font); text-align: right; transition: border-color 0.15s, box-shadow 0.15s;
}
.pay-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pay-breakdown { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.pay-line { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.pay-line:last-child { border-bottom: none; }
.pay-line-lbl { color: var(--text2); } .pay-line-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.pay-line-tothrs { border-top: 1px solid var(--border2); margin-top: 4px; padding-top: 11px; }
.pay-line-tothrs .pay-line-lbl, .pay-line-tothrs .pay-line-val { color: var(--text); font-weight: 800; }
.pay-total-line { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 4px; font-size: 18px; font-weight: 800; }
.pay-total-val { color: var(--green); font-size: 24px; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.ot-note { background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.25); border-radius: var(--radius-xs); padding: 10px 14px; font-size: 12px; color: var(--orange); margin-top: 12px; line-height: 1.5; }
.disclaimer { font-size: 11px; color: var(--text3); line-height: 1.5; margin-top: 12px; }

/* ── DAY VIEW ── */
.dv-section { padding: 14px 0 6px; border-top: 1px solid var(--border); }
.dv-section:first-child { border-top: none; padding-top: 4px; }
.dv-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); margin-bottom: 10px; }
.dv-shift-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dv-arrow { color: var(--text3); font-size: 14px; flex-shrink: 0; }
.dv-shift-hrs { flex: 1; text-align: right; font-size: 15px; font-weight: 600; color: var(--text); }
.dv-add-btn { display: block; width: 100%; padding: 10px; background: transparent; border: 1px dashed var(--border); border-radius: 10px; color: var(--accent); font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; text-align: center; margin-top: 4px; }
.dv-add-secondary { color: var(--text3); font-size: 13px; }
.dv-breakdown { background: var(--surface2); border-radius: 10px; overflow: hidden; }
.dv-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); gap: 12px; }
.dv-row:last-child { border-bottom: none; }
.dv-lbl { font-size: 14px; color: var(--text2); font-weight: 500; }
.dv-lbl.reg { color: var(--green); }
.dv-lbl.ot { color: var(--orange); }
.dv-lbl.dt { color: var(--red); }
.dv-lbl.hol { color: var(--green); }
.dv-lbl.sat { color: var(--orange); }
.dv-lbl.sun { color: var(--red); }
.dv-lbl.diff { color: var(--accent); }
.dv-lbl.meal { color: var(--purple, #bf5af2); }
.dv-lbl.total { font-weight: 700; color: var(--text); }
.dv-val { font-size: 15px; font-weight: 700; color: var(--text); flex-shrink: 0; }
.dv-total { background: var(--surface); }
.dv-gross { color: var(--green); font-size: 17px; }
.dv-meal-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--surface2); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.dv-meal-row:active { opacity: 0.8; }
.dv-meal-on { background: rgba(52,199,89,0.08); border: 1px solid var(--green); }
.dv-meal-ico { font-size: 18px; flex-shrink: 0; }
.dv-meal-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--text); }
.dv-meal-hrs { font-size: 13px; font-weight: 600; flex-shrink: 0; }
.dv-badge-on { background: var(--green); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.dv-badge-off { background: var(--surface); border: 1px solid var(--border); color: var(--text3); font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 20px; }
.dv-note-box { background: var(--surface2); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.dv-note-box::after { content: ''; display: block; clear: both; }
.dv-note-box:active { opacity: 0.8; }
.dv-note-text { font-size: 14px; color: var(--text2); line-height: 1.55; }
.dv-note-edit { float: right; margin-left: 12px; font-size: 13px; color: var(--accent); font-weight: 600; }
.ts-day-link { background: none; border: none; padding: 0; font-family: inherit; font-size: inherit; font-weight: 700; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* SETTINGS */
.setting-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.setting-row:first-of-type { padding-top: 2px; }
.setting-row:last-of-type { border-bottom: none; }
.setting-label { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 3px; }
.setting-hint { font-size: 11px; color: var(--text3); font-weight: 400; line-height: 1.35; }
.setting-select, .setting-input {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-xs);
  padding: 10px 12px; color: var(--text); font-size: 14px; font-weight: 600; outline: none;
  font-family: var(--font); flex-shrink: 0; transition: border-color 0.15s, box-shadow 0.15s;
}
.setting-select { max-width: 52%; }
/* Custom-range row: stack the label over the two full-width month pickers so the
   hint never gets crushed by the pickers (RPT — squashed Range text on phone). */
#reportRangeRow { flex-direction: column; align-items: stretch; gap: 10px; }
.range-selects { display: flex; gap: 8px; width: 100%; }
.range-selects .setting-select { flex: 1; max-width: none; }
.setting-input { width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
.setting-select:focus, .setting-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.setting-note { font-size: 11.5px; color: var(--text3); line-height: 1.5; margin-top: 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 10px 12px; }
.setting-input.wide { width: 150px; text-align: left; }
/* indented sub-settings revealed when a switch is on */
.setting-sub { display: none; padding-left: 12px; border-left: 2px solid var(--border2); margin: 2px 0 4px; }
.setting-sub.show { display: block; }
.setting-sub .setting-row:first-of-type { padding-top: 12px; }
.setting-sub .setting-row:last-of-type { border-bottom: none; }

/* iOS-style toggle switch */
.switch { position: relative; display: inline-block; width: 50px; height: 30px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; cursor: pointer; inset: 0; background: var(--surface3); border: 1px solid var(--border2); border-radius: 30px; transition: background 0.2s; }
.switch-slider::before { content: ''; position: absolute; height: 24px; width: 24px; left: 3px; top: 2px; background: #fff; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.switch input:checked + .switch-slider { background: var(--green); border-color: var(--green); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); }

/* tappable checkbox rows (Clock tab meal premium) */
.chk-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; cursor: pointer; font-size: 15px; font-weight: 600; }
.chk-row + .chk-row { border-top: 1px solid var(--border); }
.chk-row input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; border: 2px solid var(--border2); border-radius: 7px; background: var(--bg); cursor: pointer; flex-shrink: 0; position: relative; transition: background 0.15s, border-color 0.15s; }
.chk-row input:checked { background: var(--green); border-color: var(--green); }
.chk-row input:checked::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 800; }
.chk-row .chk-prem { margin-left: auto; font-size: 12.5px; color: var(--text3); font-weight: 600; }

/* daily notes textarea (Clock tab) */
.notes-input { width: 100%; box-sizing: border-box; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 10px 12px; color: var(--text); font-size: 14px; font-family: var(--font); line-height: 1.45; resize: vertical; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.notes-input::placeholder { color: var(--text3); }
.notes-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
/* daily note shown under a day in the week timesheet */
.ts-note-row td { padding: 4px 8px 9px; font-size: 12px; color: var(--text2); line-height: 1.4; cursor: pointer; border-top: none; }
.ts-note-ico { margin-right: 5px; opacity: 0.85; }

/* Reports & Export */
.report-btns { display: flex; gap: 10px; margin-top: 14px; }
.report-note { font-size: 11.5px; color: var(--text3); margin-top: 10px; line-height: 1.4; }

/* Report: full-screen on-screen view (black on white); also the print target */
#printArea { display: none; }
#printArea.open { display: block; position: fixed; inset: 0; z-index: 300; background: #fff; color: #000; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 40px; }
.print-bar { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-bottom: 1px solid #ddd; padding: max(12px, calc(env(safe-area-inset-top) + 8px)) 16px 12px; }
.print-bar span { color: #333; font-weight: 700; font-size: 15px; }
.print-bar .btn-cancel, .print-bar .btn-save { flex: none; width: auto; padding: 9px 16px; font-size: 14px; box-shadow: none; }
#printDoc { padding: 12px 16px; }
@media print {
  /* Print ONLY the report. Using display:none (not visibility:hidden) frees the layout
     space so the report flows from the top of the page and paginates across ALL pages. */
  body > *:not(#printArea) { display: none !important; }
  /* The on-screen overlay is position:fixed via #printArea.open (id+class specificity).
     These !important rules must beat it so the report becomes normal-flow and paginates.
     THE BUG (RPT-2): the fixed, scroll-clipped overlay printed only the visible screen,
     repeated on each page, with the totals (below the fold) never showing. */
  #printArea, #printArea.open {
    display: block !important; position: static !important; inset: auto !important;
    width: 100% !important; height: auto !important; max-height: none !important;
    margin: 0 !important; padding: 0 !important; overflow: visible !important;
    background: #fff; color: #000; z-index: auto;
  }
  .print-bar { display: none !important; }
  .pr-tbl thead { display: table-header-group; }
  .pr-tbl tr, .pr-tot tr { page-break-inside: avoid; break-inside: avoid; }
  .pr-tot { page-break-inside: avoid; break-inside: avoid; }
}
.pr-doc { font-family: var(--font); color: #000; padding: 8px 4px; }
.pr-h1 { font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.pr-sub { font-size: 12px; color: #444; margin-bottom: 12px; }
.pr-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.pr-tbl th, .pr-tbl td { border: 1px solid #bbb; padding: 5px 7px; text-align: left; }
.pr-tbl th { background: #eee; }
.pr-tot { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 12px; }
.pr-tot td { padding: 4px 7px; }
.pr-tot td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.pr-tot .pr-strong td { font-weight: 800; border-top: 2px solid #000; }
.pr-note td { color: #555; font-style: italic; }
.pr-disc { font-size: 10px; color: #666; margin-top: 14px; }

/* PROFILES */
.profile-list { display: flex; flex-direction: column; gap: 10px; }
.profile-card { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 15px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: border-color 0.2s, transform 0.12s; }
.profile-card:active { transform: scale(0.99); }
.profile-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft); }
.profile-avatar { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; flex-shrink: 0; color: white; }
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 15px; font-weight: 700; }
.profile-rate { font-size: 12px; color: var(--text2); margin-top: 2px; }
.profile-check { color: var(--accent); font-size: 19px; }
.profile-edit-btn { background: none; border: none; color: var(--text2); font-size: 17px; cursor: pointer; padding: 4px; }
.add-profile-btn { width: 100%; padding: 15px; border-radius: var(--radius-sm); border: 1.5px dashed var(--border2); background: none; color: var(--text2); font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s; margin-top: 4px; }
.add-profile-btn:active { border-color: var(--accent); color: var(--accent); }
.account-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text2); }
.signout-btn { background: none; border: 1px solid var(--border); color: var(--text2); border-radius: var(--radius-xs); padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.78); display: none; align-items: flex-end; justify-content: center; z-index: 200; backdrop-filter: blur(6px); }
.modal-overlay.open { display: flex; }
.modal { background: linear-gradient(180deg, var(--surface), var(--bg2)); border: 1px solid var(--border); border-bottom: none; border-radius: 26px 26px 0 0; width: 100%; max-width: 440px; padding: 14px 24px 48px; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: slideUp 0.28s cubic-bezier(0.2,0.9,0.3,1); }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.modal::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--border2); margin: 0 auto 18px; }
.modal-title { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.modal-field { margin-bottom: 15px; }
.modal-field label { display: block; font-size: 12px; color: var(--text2); margin-bottom: 6px; font-weight: 600; }
.modal-field input, .modal-field select { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 12px 14px; color: var(--text); font-size: 16px; outline: none; font-family: var(--font); transition: border-color 0.15s, box-shadow 0.15s; }
.modal-field input:focus, .modal-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.modal-row { display: flex; gap: 10px; }
.modal-row .modal-field { flex: 1; }
.custom-rules { display: none; } .custom-rules.show { display: block; }
.modal-btns { display: flex; gap: 10px; margin-top: 20px; }
.btn-cancel { flex: 1; padding: 14px; border-radius: var(--radius-sm); background: var(--surface2); border: 1px solid var(--border); color: var(--text); font-size: 15px; font-weight: 700; cursor: pointer; }
.btn-save { flex: 2; padding: 14px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--accent), var(--accent2)); border: none; color: white; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(91,149,249,0.35); }
.btn-save.btn-danger { background: linear-gradient(135deg, #e5484d, #c0392b); box-shadow: 0 4px 14px rgba(229,72,77,0.35); }
.modal-msg { font-size: 16px; font-weight: 600; line-height: 1.45; margin: 6px 2px 20px; color: var(--text); }
.meal-empty { font-size: 13.5px; color: var(--text2); line-height: 1.5; padding: 6px 2px 14px; }
.holiday-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.holiday-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--surface2); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--text); }
.holiday-del { flex: none; width: 26px; height: 26px; border-radius: 7px; background: none; border: 1px solid rgba(255,92,92,0.4); color: var(--red); font-size: 13px; font-weight: 700; cursor: pointer; line-height: 1; }
.btn-secondary { width: 100%; padding: 11px; border-radius: var(--radius-sm); background: none; border: 1px dashed var(--border2); color: var(--accent); font-size: 14px; font-weight: 700; cursor: pointer; }
.holiday-picker { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.hp-year { font-size: 12px; font-weight: 800; letter-spacing: 0.4px; color: var(--text3); margin: 6px 2px 2px; }
.hp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--surface2); border: 1px solid var(--border); cursor: pointer; }
.hp-row.on { border-color: var(--green); background: rgba(46,204,138,0.10); }
.hp-name { font-size: 14px; font-weight: 600; color: var(--text); display: flex; flex-direction: column; gap: 1px; }
.hp-date { font-size: 12px; font-weight: 600; color: var(--text2); }
.hp-check { flex: none; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 7px; font-size: 14px; font-weight: 800; color: var(--text3); }
.hp-row.on .hp-check { color: var(--green); }
/* Settings — iOS-style category list + sub-panels */
.set-cat-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.set-cat-group + .set-cat-group { margin-top: 12px; }
.set-cat { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; background: none; border: none; border-bottom: 1px solid var(--border); text-align: left; cursor: pointer; font-family: inherit; }
.set-cat:last-child { border-bottom: none; }
.set-cat:active { background: var(--surface2); }
.set-cat-ico { flex: none; width: 24px; text-align: center; font-size: 18px; }
.set-cat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.set-cat-name { color: var(--text); font-size: 15px; font-weight: 600; }
.set-cat-sub { color: var(--text3); font-size: 12px; }
.set-cat-chev { flex: none; color: var(--text3); font-size: 20px; line-height: 1; }
.set-panel { display: none; }
.set-panel.open { display: block; }
.set-panel-head { display: flex; align-items: center; gap: 10px; margin: 2px 2px 14px; }
.set-back { background: none; border: none; color: var(--accent); font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; padding: 4px 2px; display: flex; align-items: center; gap: 4px; }
.set-back span { font-size: 20px; line-height: 1; }
.set-panel-title { color: var(--text); font-size: 17px; font-weight: 700; margin-left: auto; margin-right: auto; padding-right: 56px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(12px); background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 12px 18px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 400; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; max-width: 86%; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.btn-delete { width: 100%; margin-top: 12px; padding: 12px; border-radius: var(--radius-sm); background: none; border: 1px solid rgba(255,92,92,0.4); color: var(--red); font-size: 14px; font-weight: 700; cursor: pointer; }

/* privacy panel + first-run notice */
.privacy-promise { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; }
.privacy-promise-ico { font-size: 20px; line-height: 1.2; flex: none; }
.privacy-promise-title { color: var(--accent); font-size: 14px; font-weight: 700; }
.privacy-promise-sub { color: var(--text2); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.privacy-warn { display: flex; gap: 9px; align-items: flex-start; color: var(--text2); font-size: 12.5px; line-height: 1.45; }
.privacy-warn-ico { flex: none; font-size: 15px; }
.notes-hint { color: var(--text3); font-size: 11.5px; margin-top: 6px; }
.firstrun-ico { font-size: 30px; text-align: center; margin-bottom: 6px; }
.firstrun-manage { display: block; width: 100%; margin-top: 10px; background: none; border: none; color: var(--accent); font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit; }

/* PUNCH GRID (Sun–Sat In/Out) */
.punch-log { margin-top: 6px; }
.punch-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 0.9fr; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.pg-head { background: var(--surface2); color: var(--text3); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; padding: 9px 6px; text-align: center; }
.pg-head:first-child { text-align: left; }
.pg-day, .pg-cell { padding: 12px 6px; font-size: 14px; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; min-height: 44px; display: flex; align-items: center; }
.pg-day { font-weight: 700; color: var(--text2); }
.pg-cell { justify-content: center; font-weight: 600; }
.pg-hrs { color: var(--accent); font-weight: 700; }
.pg-today { background: var(--accent-soft); }
.pg-today.pg-day { color: var(--accent); }

/* WEEKLY REPORT */
.report-tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.report-tbl th, .report-tbl td { padding: 8px 4px; text-align: center; border: 1px solid var(--border); white-space: nowrap; }
.report-tbl thead th { background: var(--surface2); color: var(--text3); font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 0.3px; }
.report-tbl td { color: var(--text2); }
.report-tbl .rpt-day { text-align: left; color: var(--text2); font-weight: 700; padding-left: 8px; }
.report-tbl thead .rpt-day { color: var(--text3); }
.report-tbl .rpt-strong { color: var(--text); font-weight: 700; }
.report-tbl .rpt-total td { background: var(--surface2); color: var(--text); font-weight: 700; border-top: 2px solid var(--border2); }
.wt-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); margin: 18px 0 10px; }
.wt-list { border: 1px solid var(--border); border-radius: var(--radius-xs); overflow: hidden; }
.wt-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; background: var(--surface); border-top: 1px solid var(--border); }
.wt-item:first-child { border-top: none; }
.wt-k { font-size: 12px; color: var(--text2); font-weight: 600; }
.wt-v { font-size: 15px; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; display: flex; flex-direction: column; white-space: nowrap; }
.wt-sub { font-size: 10.5px; color: var(--text3); font-weight: 500; margin-top: 2px; }
.wt-gross { background: var(--surface2); }
.wt-gross .wt-v { color: var(--green); font-size: 18px; }

.av-blue { background: linear-gradient(135deg, #5B95F9, #8A6CFF); }
.av-green { background: linear-gradient(135deg, #2ECC8A, #16A05C); }
.av-orange { background: linear-gradient(135deg, #F5A623, #E07C00); }
.av-pink { background: linear-gradient(135deg, #F472B6, #9333EA); }

/* AUTH SCREEN */
.auth-screen { position: fixed; inset: 0; background:
    radial-gradient(800px 500px at 50% -10%, rgba(91,149,249,0.16), transparent 60%), var(--bg);
  z-index: 300; display: none; flex-direction: column; justify-content: center; padding: 32px 28px; max-width: 440px; margin: 0 auto; }
.auth-screen.show { display: flex; }
.auth-logo { font-size: 36px; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; background: linear-gradient(135deg, #8FB6FF, var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.auth-tag { color: var(--text2); font-size: 14px; margin-bottom: 32px; line-height: 1.5; }
.auth-field { margin-bottom: 13px; }
.auth-field input { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 15px 16px; color: var(--text); font-size: 16px; outline: none; font-family: var(--font); transition: border-color 0.15s, box-shadow 0.15s; }
.auth-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-primary { width: 100%; padding: 16px; border-radius: var(--radius-sm); border: none; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: white; font-size: 16px; font-weight: 800; cursor: pointer; margin-top: 6px; box-shadow: 0 6px 18px rgba(91,149,249,0.4); }
.auth-oauth { width: 100%; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.auth-divider { text-align: center; color: var(--text3); font-size: 12px; margin: 18px 0; }
.auth-toggle { text-align: center; color: var(--accent); font-size: 14px; margin-top: 22px; cursor: pointer; font-weight: 600; }
.auth-help { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.auth-link { color: var(--accent); font-size: 13px; cursor: pointer; }
.auth-error { color: var(--red); font-size: 13px; min-height: 18px; margin-top: 10px; text-align: center; }

/* WHEEL PICKER */
.wheel-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.78); display: none; align-items: flex-end; justify-content: center; z-index: 400; backdrop-filter: blur(6px); }
.wheel-overlay.open { display: flex; }
.wheel-sheet { background: linear-gradient(180deg, var(--surface), var(--bg2)); border: 1px solid var(--border); border-bottom: none; border-radius: 26px 26px 0 0; width: 100%; max-width: 440px; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: slideUp 0.28s cubic-bezier(0.2,0.9,0.3,1); }
.wheel-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 4px 6px; }
.wheel-title { font-size: 15px; font-weight: 700; }
.wheel-cancel, .wheel-done { background: none; border: none; font-size: 16px; font-weight: 700; cursor: pointer; padding: 8px 6px; font-family: var(--font); }
.wheel-cancel { color: var(--text2); }
.wheel-done { color: var(--accent); }
.wheel-body { position: relative; height: 220px; display: flex; justify-content: center; gap: 4px; overflow: hidden; }
/* centered selection highlight */
.wheel-body::before { content: ''; position: absolute; left: 8px; right: 8px; top: 88px; height: 44px; border-radius: 12px; background: var(--surface3); pointer-events: none; z-index: 0; }
.wheel-col {
  position: relative; z-index: 1; height: 220px; overflow-y: scroll; scroll-snap-type: none;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  min-width: 54px; text-align: center;
}
.wheel-col::-webkit-scrollbar { display: none; }
.wheel-pad { height: 88px; }
.wheel-item { height: 44px; line-height: 44px; scroll-snap-align: center; font-size: 23px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; padding: 0 8px; }

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

/* ===== EXPANSION PACKS (Packs tab) ===== */
.packs-intro { font-size: 12.5px; color: var(--text2); line-height: 1.5; margin: 2px 2px 14px; }
.pack-card { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 2px; background: none; border: none; border-bottom: 1px solid var(--border); text-align: left; cursor: pointer; font-family: inherit; }
.pack-card:last-child { border-bottom: none; }
.pack-card:active { opacity: 0.6; }
.pack-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pack-name { color: var(--text); font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.pack-for { color: var(--text3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pack-star { color: var(--orange); font-size: 13px; }
.pack-chev { color: var(--text3); font-size: 20px; line-height: 1; flex: none; }
.pack-badge { flex: none; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.pack-badge.b-available { color: var(--accent); background: var(--accent-soft); }
.pack-badge.b-building { color: var(--orange); background: rgba(245,166,35,0.14); }
.pack-badge.b-soon { color: var(--text3); background: var(--surface2); }
.pack-badge.b-owned { color: var(--green); background: rgba(46,204,138,0.14); }
.packs-restore { display: block; width: 100%; margin: 2px 0 14px; padding: 12px; background: none; border: none; color: var(--accent); font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
.packs-testnote { font-size: 11.5px; color: var(--orange); background: rgba(245,166,35,0.10); border: 1px solid rgba(245,166,35,0.28); border-radius: var(--radius-sm); padding: 10px 12px; line-height: 1.45; }

/* pack detail */
.pack-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.pack-tag { font-size: 11.5px; font-weight: 600; color: var(--text2); background: var(--surface2); border: 1px solid var(--border); border-radius: 20px; padding: 4px 11px; }
.pack-blurb { font-size: 14px; color: var(--text2); line-height: 1.55; margin-bottom: 16px; }
.pack-feat-label { font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.pack-feat { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--text); line-height: 1.45; margin-bottom: 9px; }
.pack-feat:last-child { margin-bottom: 0; }
.pack-feat-ck { flex: none; color: var(--accent); font-weight: 800; font-size: 14px; line-height: 1.45; }
.pack-testbanner { font-size: 12px; color: var(--orange); background: rgba(245,166,35,0.10); border: 1px solid rgba(245,166,35,0.28); border-radius: var(--radius-sm); padding: 10px 12px; line-height: 1.45; margin-bottom: 14px; }
.pack-unlock { width: 100%; padding: 15px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--accent), var(--accent2)); border: none; color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(91,149,249,0.35); }
.pack-unlock:active { transform: scale(0.99); }
.pack-owned { display: flex; align-items: center; gap: 11px; }
.pack-owned-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(46,204,138,0.16); color: var(--green); font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.pack-owned-t { color: var(--green); font-size: 15px; font-weight: 800; }
.pack-owned-s { color: var(--text3); font-size: 12px; }
.pack-where { font-size: 13px; color: var(--text2); line-height: 1.5; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--border); }
.pack-where b { color: var(--text); font-weight: 700; }
.pack-relock { width: 100%; margin-top: 14px; padding: 12px; border-radius: var(--radius-sm); background: none; border: 1px solid var(--border2); color: var(--text2); font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.pack-soonnote { font-size: 14px; color: var(--text2); text-align: center; padding: 6px 0; font-weight: 600; }
.pack-open { margin-bottom: 4px; }

/* ===== Universal PRO (paid-pack) cue — reused wherever a paid pack surfaces outside the Packs tab ===== */
.pro-card { background: var(--pro-soft); border: 1.5px solid var(--pro); border-radius: var(--radius); padding: 14px 14px 12px; margin-bottom: 14px; }
.pro-head { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.pro-gem { color: var(--pro); font-size: 15px; line-height: 1; flex: none; }
.pro-name { font-size: 13px; font-weight: 800; letter-spacing: 0.2px; color: var(--pro-ink); }
.pro-pill { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: 0.6px; color: #fff; background: var(--pro); padding: 3px 9px; border-radius: 20px; flex: none; }
.pro-sep { height: 1px; background: var(--border); margin: 13px -2px; }

/* ===== Hospitality pack — net-kept hero ===== */
.card.hosp-hero { text-align: center; border: 1.5px solid var(--green); }
.hosp-hero-lbl { font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; }
.hosp-hero-amt { font-size: 34px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; margin: 5px 0 2px; }
.hosp-hero-sub { font-size: 12px; color: var(--text2); font-variant-numeric: tabular-nums; }

/* ===== Pack feature screens ===== */
.pf-lbl { font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; margin: 4px 0 9px; }.pf-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: var(--text); padding: 9px 0; border-bottom: 1px solid var(--border); }
.pf-row:last-child { border-bottom: none; }
.pf-row > span:first-child { color: var(--text2); }
.pf-row.pf-tot { font-weight: 800; } .pf-row.pf-tot > span { color: var(--text); }
.pf-neg { color: var(--red); font-weight: 700; } .pf-pos { color: var(--green); font-weight: 800; }
.pf-seg { display: flex; gap: 6px; background: var(--surface2); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 12px; }
.pf-seg button { flex: 1; padding: 9px; border: none; background: none; color: var(--text2); font-size: 14px; font-weight: 700; border-radius: var(--radius-xs); cursor: pointer; font-family: inherit; }
.pf-seg button.on { background: var(--accent); color: #fff; }
.pf-step { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.pf-step span { font-size: 14px; font-weight: 700; color: var(--text); flex: 1; text-align: center; line-height: 1.3; }
.pf-step .pf-jump { text-decoration: underline; text-decoration-color: var(--border2); text-underline-offset: 3px; cursor: pointer; }
.set-build { text-align: center; color: var(--text3); font-size: 11px; padding: 16px 0 2px; }
.pf-step button { width: 38px; height: 34px; border-radius: var(--radius-xs); border: 1px solid var(--border); background: var(--surface2); color: var(--accent); font-size: 18px; font-weight: 700; cursor: pointer; }
.pf-input { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 13px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface2); color: var(--text2); font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.pf-input-row { display: flex; gap: 8px; } .pf-input-row .pf-input { flex: 1; }
.pf-val { color: var(--accent); font-weight: 800; font-size: 15px; }
.pf-cta { width: 100%; margin-top: 6px; padding: 15px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--accent), var(--accent2)); border: none; color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(91,149,249,0.35); }
/* Paid-entry boxes — clearly tappable inputs (vertical, accent border) so they don't read as stats */
.pf-paid-lbl { font-size: 13px; font-weight: 700; color: var(--text); margin: 8px 2px 2px; }
.pf-paid-hint { font-size: 11.5px; color: var(--text3); line-height: 1.4; margin: 0 2px 9px; }
/* Paid-entry rows: one full-width row each (label left, value right) so every number lines up */
.pf-paid1 { border: 1.5px solid var(--accent); background: var(--bg2); }
.pf-paid1 > span:first-child { color: var(--text2); font-weight: 700; }
.pf-save { width: 100%; margin-top: 10px; padding: 13px; border-radius: var(--radius-sm); background: var(--surface3); border: 1px solid var(--border2); color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
.pf-mini { background: var(--accent-soft); border: none; color: var(--accent); font-size: 13px; font-weight: 700; border-radius: 20px; padding: 5px 12px; cursor: pointer; font-family: inherit; }
.pf-hint { font-size: 11.5px; color: var(--text3); line-height: 1.5; margin-top: 12px; }
.pf-verdict { margin-top: 14px; }
.pf-found { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.pf-found > span:first-child { color: var(--text2); } .pf-found > span:last-child { font-weight: 800; color: var(--green); }
.pf-bad { background: rgba(255,92,92,0.10); border: 1px solid rgba(255,92,92,0.32); border-radius: var(--radius-sm); padding: 13px; }
.pf-bad-amt { font-size: 18px; font-weight: 800; color: var(--red); }
.pf-why { margin: 6px 0 0; padding-left: 18px; }
.pf-why li { font-size: 12.5px; color: var(--text2); line-height: 1.5; margin-bottom: 3px; }
.pf-good { background: rgba(46,204,138,0.10); border: 1px solid rgba(46,204,138,0.32); border-radius: var(--radius-sm); padding: 13px; font-size: 15px; font-weight: 800; color: var(--green); }
.pf-prog { height: 12px; background: var(--surface2); border-radius: 20px; overflow: hidden; margin: 14px 0 12px; }
.pf-prog-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 20px; min-width: 2%; transition: width 0.3s; }
.pf-empty { font-size: 13px; color: var(--text3); text-align: center; padding: 14px 0; }
.pf-del { background: none; border: none; color: var(--text3); font-size: 14px; cursor: pointer; padding: 0 0 0 8px; }
.pf-note { padding: 10px 0; border-bottom: 1px solid var(--border); position: relative; }
.pf-note:last-child { border-bottom: none; }
.pf-note-ts { font-size: 11px; color: var(--text3); margin-bottom: 3px; }
.pf-note-tx { font-size: 14px; color: var(--text); padding-right: 22px; }
.pf-note .pf-del { position: absolute; top: 10px; right: 0; }
.pf-tag2 { font-size: 11px; font-weight: 700; color: var(--text2); background: var(--surface2); border-radius: 12px; padding: 2px 8px; margin-left: 6px; }

/* Paycheck Checker tweak */
.pf-scope { display: flex; gap: 4px; background: var(--surface2); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 12px; }
.pf-scope button { flex: 1; padding: 8px 2px; border: none; background: none; color: var(--text2); font-size: 11.5px; font-weight: 700; border-radius: var(--radius-xs); cursor: pointer; font-family: inherit; white-space: nowrap; }
.pf-scope button.on { background: var(--accent); color: #fff; }
.pf-scope-wrap { flex-wrap: wrap; }
.pf-scope-wrap button { flex: 0 0 auto; min-width: 42px; padding: 7px 11px; }
.pf-sub2 { font-size: 11px; color: var(--text3); font-weight: 600; margin-left: 6px; }
.pf-blurb { font-size: 14px; color: var(--text2); line-height: 1.5; }

/* Day-notes list (Notes Pro — Clock card + Timesheet day modal) */
.dn-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.dn-item:last-of-type { border-bottom: none; }
.dn-meta { font-size: 11px; color: var(--text3); flex: none; min-width: 60px; padding-top: 2px; }
.dn-text { flex: 1; font-size: 14px; color: var(--text); line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.dn-del { background: none; border: none; color: var(--text3); font-size: 14px; cursor: pointer; padding: 0 2px; flex: none; }
.dn-empty { font-size: 13px; color: var(--text3); padding: 8px 0; }
.dn-add { width: 100%; margin-top: 10px; padding: 11px; border-radius: var(--radius-sm); background: var(--accent-soft); border: none; color: var(--accent); font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
.pf-cmp { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin: 14px 0 12px; }
.pf-cmp-head, .pf-cmp-row { display: grid; grid-template-columns: 1fr 72px 72px; gap: 8px; padding: 9px 12px; font-size: 13px; align-items: center; }
.pf-cmp-head { background: var(--surface2); font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; }
.pf-cmp-head span:nth-child(2), .pf-cmp-head span:nth-child(3), .pf-cmp-row span:nth-child(2), .pf-cmp-row span:nth-child(3) { text-align: right; }
.pf-cmp-row { border-top: 1px solid var(--border); color: var(--text); }
.pf-cmp-row span:first-child { color: var(--text2); }
.pf-cmp-row.tot { font-weight: 800; background: var(--surface2); }
.pf-cmp-row.tot span:first-child { color: var(--text); }
.pf-cmp-row .lo { color: var(--red); font-weight: 800; }
.pf-cmp-note { font-size: 11px; color: var(--text3); line-height: 1.4; margin: -2px 2px 12px; }
.pf-found-hero { background: var(--green); border-radius: var(--radius-sm); padding: 16px; color: #fff; box-shadow: var(--glow-green); }
.pf-found-hero .l { font-size: 12.5px; font-weight: 700; opacity: 0.92; }
.pf-found-hero .v { font-size: 26px; font-weight: 800; margin: 2px 0; letter-spacing: -0.5px; }
.pf-found-hero .s { font-size: 12px; opacity: 0.9; }
.pf-check-row { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 12px 2px; border: none; border-bottom: 1px solid var(--border); background: none; color: var(--text); font-size: 14px; cursor: pointer; font-family: inherit; }
.pf-check-row:last-child { border-bottom: none; }
.pf-check-row span:first-child { color: var(--text2); }
.pf-chev { color: var(--text3); font-size: 18px; margin-left: 6px; }
.pf-detail { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin: 14px 0 4px; background: var(--surface2); }
.pf-detail-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 14px; color: var(--text); }
.pf-x { background: none; border: none; color: var(--text3); font-size: 16px; cursor: pointer; padding: 0 4px; }
.pf-delcheck { width: 100%; margin-top: 12px; padding: 12px; border-radius: var(--radius-sm); background: none; border: 1px solid rgba(255,92,92,0.4); color: var(--red); font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
/* Pay-view shortcut into Paycheck Checker */
/* Dispute Kit buttons (paycheck shortfall → payroll) use the PRO violet to reinforce it's a paid feature */
.pf-dispute { margin: 10px 0 4px; }
.pf-dispute-lbl { font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.pf-dispute-row { display: flex; gap: 8px; }
.pf-dispute-row button { flex: 1; padding: 11px; border-radius: var(--radius-xs); border: 1px solid var(--pro); background: var(--pro-soft); color: var(--pro-ink); font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; }
.pf-dispute-row button:active { opacity: 0.7; }
