:root {
  --bg: #f4f6fa; --card: #fff; --ink: #0f172a; --muted: #64748b; --line: #e2e8f0;
  --brand: #f97316; --brand-ink: #c2410c; --navy: #0f172a; --blue: #2563eb; --green: #15803d;
  --radius: 14px; --shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 14px rgba(15,23,42,.06);
  --nav-h: 62px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif; color: var(--ink); background: var(--bg); padding-bottom: env(safe-area-inset-bottom); }
a { color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 14px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* header */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand); font-size: 15px; }
body:not(.route-jobs) .jobs-only { display: none; }
.search-row { padding-bottom: 8px; }
.search { position: relative; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: #94a3b8; }
.search input { width: 100%; height: 44px; border-radius: 12px; border: 0; padding: 0 12px 0 38px; font-size: 16px; background: #fff; color: var(--ink); outline: none; }
.search input:focus { box-shadow: 0 0 0 3px rgba(249,115,22,.45); }

/* the three primary menus */
.menus, .more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-bottom: 8px; }
.menu { position: relative; display: block; }
.menu span { position: absolute; left: 10px; top: 5px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #94a3b8; pointer-events: none; }
.menu select { width: 100%; height: 46px; border-radius: 10px; border: 1px solid #334155; background: #1e293b; color: #fff; font-size: 14px; font-weight: 600; padding: 16px 22px 2px 9px; appearance: none; -webkit-appearance: none; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%); background-position: right 11px top 21px, right 6px top 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.menu select.set { border-color: var(--brand); background-color: #3b2412; }
.subrow { display: flex; gap: 8px; align-items: center; padding-bottom: 10px; flex-wrap: wrap; }
.more-toggle, .tick-toggle { border: 1px solid #334155; background: transparent; color: #cbd5e1; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; font-weight: 600; }
.tick-toggle[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.tick-toggle #ticketCount { opacity: .8; font-weight: 500; }
.more { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; }
.more .link { grid-column: 1 / -1; justify-self: start; color: #93c5fd; }
.pill { background: var(--brand); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 700; }

/* nav */
.nav a { text-decoration: none; }
.nav-top { display: none; gap: 4px; }
.nav-top a { padding: 7px 12px; border-radius: 9px; color: #cbd5e1; font-weight: 600; font-size: 14px; }
.nav-top a.on { background: #1e293b; color: #fff; }
.nav-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-rows: var(--nav-h); align-items: stretch; background: #fff; border-top: 1px solid var(--line); height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
.nav-bottom a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: clamp(9.5px, 2.75vw, 11.5px); letter-spacing: -.2px; font-weight: 600; color: var(--muted); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.nav-bottom a span { font-size: clamp(17px, 5vw, 20px); line-height: 1; filter: grayscale(1); opacity: .7; }
/* one row, every visible tab the same width (Local is behind a flag); the safe area sits below the row, never on it */
.nav-bottom a.on { color: var(--brand-ink); }
.nav-bottom a.on span { filter: none; opacity: 1; }

/* results */
.page { padding-top: 12px; padding-bottom: 24px; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 2px 10px; }
.count { margin: 0; font-weight: 700; font-size: 15px; }
.count small { font-weight: 500; color: var(--muted); }
.adz-attr { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; font-size: 13px; color: #334155; min-width: 116px; min-height: 23px; white-space: nowrap; }
.adz-attr img { height: 21px; width: auto; display: block; }
.adz-attr.small { font-size: 12px; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.active-filters:empty { display: none; }
.tag-x { border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 12.5px; padding: 4px 10px; cursor: pointer; color: var(--ink); }
.tag-x::after { content: " ✕"; color: var(--muted); }
.hint { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 10px; padding: 8px 12px; font-size: 13px; margin: 0 0 10px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 14px 12px; border: 1px solid #edf0f5; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.title { margin: 0; font-size: 16.5px; line-height: 1.3; font-weight: 700; }
.age { flex: none; font-size: 12px; color: var(--muted); padding-top: 2px; }
.company { margin: 3px 0 0; font-weight: 600; color: #334155; font-size: 14px; }
.loc { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 4px; }
.loc svg { width: 14px; height: 14px; fill: #94a3b8; flex: none; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.badge.roster { background: #ffedd5; color: var(--brand-ink); }
.badge.fly { background: #dbeafe; color: #1d4ed8; }
.badge.off { background: #ccfbf1; color: #0f766e; }
.badge.wt { background: #ede9fe; color: #6d28d9; }
.badge.match { background: #dcfce7; color: var(--green); }
.salary { margin: 9px 0 0; font-weight: 700; color: var(--green); font-size: 14px; }
.tickets { margin: 8px 0 0; font-size: 12.5px; color: #475569; }
.tickets b { color: var(--ink); }
.tickets .have { color: var(--green); font-weight: 600; }
.tickets .need { color: #b45309; font-weight: 600; }
.snippet { margin: 8px 0 0; color: #475569; font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; }
.btn-apply { display: inline-flex; align-items: center; gap: 6px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 11px; font-size: 15px; }
.btn-more { display: block; margin: 16px auto 0; padding: 12px 22px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.foot { color: var(--muted); font-size: 12.5px; padding-top: 18px; }

/* licences + resume */
.page-head h1 { font-size: 22px; margin: 6px 0 6px; }
.page-head p { margin: 0 0 10px; }
.sel-count { font-size: 14px; }
.lic-groups { display: grid; gap: 12px; }
.lic-group, .panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #edf0f5; padding: 12px 14px; }
.lic-group h2, .panel h2 { font-size: 15px; margin: 2px 0 8px; }
.lic-items { display: flex; flex-wrap: wrap; gap: 8px; }
.lic { position: relative; }
.lic input { position: absolute; opacity: 0; inset: 0; }
.lic span { display: inline-block; border: 1px solid var(--line); background: #f8fafc; border-radius: 999px; padding: 8px 12px; font-size: 13.5px; cursor: pointer; user-select: none; }
.lic input:checked + span { background: #dcfce7; border-color: #86efac; color: #14532d; font-weight: 600; }
.lic input:checked + span::before { content: "✓ "; }
.lic input:focus-visible + span { outline: 2px solid var(--blue); }
.note { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.panel { margin-bottom: 12px; display: grid; gap: 10px; }
.panel label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.panel input, .panel textarea { font: inherit; font-size: 16px; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #f8fafc; font-weight: 400; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.file-info { font-size: 14px; }
.btn-secondary { display: inline-flex; align-items: center; height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink); }
.btn-primary { height: 46px; border: 0; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.link { background: none; border: 0; color: var(--blue); font-weight: 600; font-size: 14px; cursor: pointer; padding: 4px; }
.link.danger { color: #b91c1c; }
.print-resume { display: none; }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .nav-bottom { display: none; }
  .nav-top { display: flex; }
  .menus { grid-template-columns: repeat(3, 220px); }
  .more { grid-template-columns: repeat(3, 220px) auto; }
  .more .link { grid-column: auto; }
  .list { grid-template-columns: 1fr 1fr; }
  #page-licences, #page-resume { max-width: 760px; }
}

/* print: only the generated resume */
@media print {
  body { background: #fff; padding: 0; }
  body > *:not(.print-resume) { display: none !important; }
  .print-resume { display: block !important; color: #000; font: 11pt/1.45 Georgia, "Times New Roman", serif; padding: 0 6mm; }
  .print-resume h1 { font: 700 22pt/1.1 Arial, sans-serif; margin: 0; }
  .print-resume .sub { font: 600 12pt Arial, sans-serif; margin: 4px 0 2px; }
  .print-resume .contact { font: 10pt Arial, sans-serif; color: #333; margin: 0 0 12px; }
  .print-resume h2 { font: 700 11pt Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid #999; padding-bottom: 2px; margin: 14px 0 6px; }
  .print-resume ul { margin: 0; padding-left: 18px; columns: 2; }
}
.panel label.file-btn { display: inline-flex; color: var(--ink); font-size: 14px; gap: 0; }

/* ===== roster ===== */
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.sum { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #edf0f5; padding: 10px 12px; }
.sum .k { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.sum .v { font-size: 16px; font-weight: 700; margin-top: 2px; }
.sum .d { font-size: 13px; color: var(--brand-ink); font-weight: 600; }
.sum.wide { grid-column: 1 / -1; }
.cal-panel { gap: 8px; touch-action: pan-y; padding-left: 10px; padding-right: 10px; scroll-margin-top: 72px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; scroll-margin-top: 72px; }
.cal-head strong { font-size: 18px; font-weight: 800; }
.cal-nav { width: 42px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(44px, 1fr)); gap: 4px; }
.cal-dow span { text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); padding: 2px 0 4px; }
.day { position: relative; aspect-ratio: 1 / 1; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; background: #f8fafc; color: #334155; }
.day.blank { background: transparent; }
.day.work { background: #fed7aa; color: #7c2d12; }
.day.travel { background: repeating-linear-gradient(135deg, #bfdbfe 0 6px, #93c5fd 6px 12px); color: #1e3a8a; }
.day.off { background: #bbf7d0; color: #14532d; }
.day.today { outline: 2px solid var(--navy); outline-offset: -2px; }
.day .mk { font-size: 10px; line-height: 1; height: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.lg::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.lg.work::before { background: #fed7aa; } .lg.travel::before { background: #93c5fd; } .lg.off::before { background: #bbf7d0; } .lg.mk::before { display: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.panel select { font: inherit; font-size: 16px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; padding: 0 10px; color: var(--ink); font-weight: 400; }
.panel label.check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; font-size: 14px; }
.panel label.check input { width: 20px; height: 20px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--ink); background: #f8fafc; cursor: pointer; }
.seg input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.upcoming { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.upcoming li { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.upcoming .when { flex: none; width: 64px; font-size: 12px; font-weight: 700; color: var(--brand-ink); }
.upcoming .what { flex: 1; font-size: 14px; }
.upcoming .what small { display: block; color: var(--muted); }
.upcoming button { border: 0; background: none; color: #b91c1c; font-size: 18px; cursor: pointer; padding: 0 4px; }
@media (min-width: 900px) { #page-roster { max-width: 760px; } .summary { grid-template-columns: repeat(4, 1fr); } .sum.wide { grid-column: auto; } }
/* keep forms inside narrow screens (date/time inputs have a wide intrinsic size) */
.panel, .panel > *, .row2 > *, .panel label { min-width: 0; }
.panel input:not([type=checkbox]):not([type=radio]), .panel select, .panel textarea { width: 100%; min-width: 0; max-width: 100%; }
.panel label.check input { width: 20px; flex: none; }

/* ===== diary calendar (interactive day tiles, voice notes, receipts, alerts) ===== */
#page-roster .day { all: unset; box-sizing: border-box; position: relative; min-height: 64px; min-width: 44px; width: 100%; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 6px 2px 8px; font: inherit; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; background: #f1f5f9; color: #0f172a; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#page-roster .day.blank { background: transparent; cursor: default; pointer-events: none; min-height: 64px; }
#page-roster .day.work { background: #fdba74; color: #7c2d12; }
#page-roster .day.work.night, #page-roster.night-shift .day.work, .cal-panel.night-shift .day.work { background: #a5b4fc; color: #1e1b4b; }
#page-roster .day.travel { background: repeating-linear-gradient(135deg, #93c5fd 0 8px, #60a5fa 8px 16px); color: #1e3a8a; }
#page-roster .day.off { background: #86efac; color: #14532d; }
#page-roster .day.today { box-shadow: inset 0 0 0 3px var(--navy); }
#page-roster .day.selected { outline: 3px solid var(--navy); outline-offset: 1px; z-index: 1; }
#page-roster .day:not(.blank):active { transform: scale(.97); }
#page-roster .day .dn { line-height: 1.15; font-size: 20px; font-weight: 800; }
#page-roster .day .mk { font-size: 13px; line-height: 1.1; height: auto; min-height: 14px; font-weight: 600; margin-top: 2px; }
#page-roster .day .rk { position: absolute; top: 3px; left: 3px; font-size: 11px; line-height: 1; }
#page-roster .day.has-note::after { content: ""; position: absolute; bottom: 5px; width: 6px; height: 6px; border-radius: 50%; background: #0f172a; }
#page-roster .day.has-bill { box-shadow: inset 0 0 0 3px #7c3aed; }
#page-roster .day.today.has-bill { box-shadow: inset 0 0 0 3px var(--navy), 0 0 0 3px #7c3aed; }
#page-roster .day.selected.has-bill { box-shadow: inset 0 0 0 3px #7c3aed; }
.lg.work.night::before { background: #a5b4fc; }
.cal-panel .btn-small { margin-top: 6px; align-self: flex-start; min-height: 40px; }
.shift-seg { border: 0; margin: 0; padding: 0; }
.shift-seg legend, .rc-cats legend { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.seg-3 { grid-template-columns: 1fr 1fr 1fr; }
.diary-alerts { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 14px; padding: 10px 12px; margin: 0 0 12px; }
.diary-alerts.late { background: #fef2f2; border-color: #fca5a5; }
.diary-alerts h2 { margin: 0 0 6px; font-size: 15px; }
.diary-alerts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.diary-alerts li { margin: 0; }
.diary-alerts button { all: unset; cursor: pointer; display: block; width: 100%; font: inherit; font-weight: 600; color: var(--ink); padding: 6px 0; }
.diary-alerts .muted { font-weight: 500; }
.day-status { margin: 0; font-weight: 700; color: var(--brand-ink); }
.day-item-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.day-item { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: #fff; }
.day-item-main { all: unset; cursor: pointer; flex: 1; min-width: 0; display: grid; gap: 2px; }
.day-item-main strong { font-size: 15px; }
.day-item-del { border: 0; background: none; color: #b91c1c; font-weight: 700; cursor: pointer; padding: 6px 4px; }
.day-add-row { display: flex; flex-wrap: wrap; gap: 8px; }
.day-add-row .btn-small { min-height: 40px; }
.notes-wrap { position: relative; display: block; }
.notes-wrap textarea { width: 100%; padding-right: 52px; min-height: 96px; }
.mic-btn { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 18px; cursor: pointer; line-height: 1; }
.mic-btn.listening { background: #7c3aed; color: #fff; border-color: #7c3aed; animation: mic-pulse 1s ease-in-out infinite; }
@keyframes mic-pulse { 50% { transform: scale(1.08); } }
.day-notes-label { display: grid; gap: 4px; }
#diaryNotifyBtn { display: inline-flex; margin-top: 8px; }

/* ===== wallet ===== */
.wallet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wallet-head h1 { margin-bottom: 2px; }
.wallet-head p { margin: 0; }
.add-btn { padding: 0 18px; font-size: 16px; flex: none; }
.install-hint { display: flex; align-items: center; gap: 8px; background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; border-radius: 12px; padding: 9px 10px; font-size: 13px; margin: 10px 0; }
.install-hint span { flex: 1; }
.install-hint .x { border: 0; background: none; font-size: 20px; color: #9a3412; cursor: pointer; padding: 0 4px; }
.btn-small { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: 9px; border: 0; background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.btn-small.light { background: #e2e8f0; color: var(--ink); }
.expiry-banner { border-radius: 12px; padding: 10px 12px; margin: 10px 0; font-size: 13.5px; }
.expiry-banner.amber { background: #fffbeb; border: 1px solid #fcd34d; color: #78350f; }
.expiry-banner.red { background: #fef2f2; border: 1px solid #fca5a5; color: #7f1d1d; }
.expiry-banner ul { margin: 4px 0 0; padding-left: 18px; }
.wallet-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.wcard { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid #edf0f5; padding: 10px; cursor: pointer; border-left: 6px solid #cbd5e1; }
.wcard.green { border-left-color: #22c55e; } .wcard.amber { border-left-color: #f59e0b; } .wcard.red { border-left-color: #ef4444; }
.wcard:active { transform: scale(.99); }
.thumb { width: 74px; height: 50px; flex: none; border-radius: 8px; background: #f1f5f9; display: grid; place-items: center; font-size: 24px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.wbody { flex: 1; min-width: 0; }
.wname { font-weight: 700; font-size: 15px; line-height: 1.25; }
.wnum { font-size: 12px; color: var(--muted); }
.wstatus { font-size: 12.5px; font-weight: 700; }
.wstatus.green { color: #15803d; } .wstatus.amber { color: #b45309; } .wstatus.red { color: #b91c1c; } .wstatus.grey { color: var(--muted); }
.pill-green, .pill-amber, .pill-red, .pill-grey { display: inline-block; padding: 4px 10px; border-radius: 999px; }
.pill-green { background: #dcfce7; color: #166534; } .pill-amber { background: #fef3c7; color: #92400e; } .pill-red { background: #fee2e2; color: #991b1b; } .pill-grey { background: #f1f5f9; color: #475569; }
.chev { color: #94a3b8; font-size: 22px; }
.wallet-empty { text-align: center; padding: 24px 10px 8px; }
.wallet-empty .big { font-size: 44px; margin: 0; }
.wallet-actions { margin: 14px 0; display: grid; }
.tools { margin-top: 4px; }
.tools summary { font-weight: 700; cursor: pointer; padding: 4px 0; }
.tools[open] summary { margin-bottom: 6px; }
.tools .btn-secondary { justify-content: center; width: 100%; }
.tools hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.warn { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; border-radius: 10px; padding: 8px 10px; margin: 0; }

/* dialogs as full-height sheets on phones */
dialog.sheet { border: 0; padding: 0; width: 100%; max-width: 560px; height: 100%; max-height: 100%; margin: 0 auto; background: var(--bg); color: var(--ink); }
dialog.sheet::backdrop { background: rgba(15,23,42,.55); }
.sheet-bar { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: #fff; border-bottom: 1px solid var(--line); padding: calc(8px + env(safe-area-inset-top)) 10px 8px; }
.sheet-bar > :first-child { justify-self: start; } .sheet-bar > :last-child { justify-self: end; }
.sheet-bar .strong { font-weight: 800; font-size: 16px; }
.sheet-body { padding: 14px; display: grid; gap: 12px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.sheet-body label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); min-width: 0; }
.sheet-body input:not([type=checkbox]):not([type=file]), .sheet-body select, .sheet-body textarea { font: inherit; font-size: 16px; width: 100%; min-width: 0; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; font-weight: 400; }
.sheet-body select { height: 46px; }
.sheet-body label.check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); font-weight: 500; }
.sheet-body label.check input { width: 22px; height: 22px; flex: none; }
.sheet-body label.check small { margin-left: auto; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-slot { display: grid; gap: 6px; min-width: 0; }
.ph { position: relative; aspect-ratio: 1.58 / 1; border-radius: 12px; border: 2px dashed #cbd5e1; background: #fff; display: grid; place-items: center; color: var(--muted); font-weight: 700; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(15,23,42,.7); color: #fff; font-size: 18px; cursor: pointer; }
.ph-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ph-btns .btn-small { padding: 0 6px; font-size: 12px; color: #fff; }
.ph-btns .btn-small.light { color: var(--ink); }
.more-fields summary { font-weight: 700; color: var(--blue); cursor: pointer; font-size: 14px; padding: 4px 0; }
.more-fields[open] { display: grid; gap: 12px; }
.view-imgs { display: grid; gap: 10px; }
.view-imgs img { width: 100%; border-radius: 12px; display: block; box-shadow: var(--shadow); background: #fff; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.meta dt { color: var(--muted); font-weight: 700; }
.meta dd { margin: 0; }
.pack-list { display: grid; gap: 4px; background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 6px 12px; }
.pack-list label.check { padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.pack-list label.check:last-child { border-bottom: 0; }
@media (min-width: 900px) { #page-wallet { max-width: 760px; } dialog.sheet { height: auto; max-height: 92vh; margin-top: 4vh; border-radius: 16px; } }

/* Careerjet attribution */
.cj-attr { font-size: 12px; font-weight: 600; color: #0b5cad; text-decoration: none; white-space: nowrap; margin-left: 6px; }
.card .cj-attr { margin-left: 0; font-size: 13px; }

/* ---------- photo backgrounds (Matt's own site photos, public/img/bg) ----------
   Only the visible tab's image is fetched (hidden sections are display:none). Phones get the
   800 px versions, wider screens 1600 px; WebP with JPEG fallback. A dark gradient keeps text legible. */
:root {
  --ov: linear-gradient(180deg, rgba(15,23,42,.62) 0%, rgba(15,23,42,.80) 60%, rgba(15,23,42,.92) 100%);
  --ov-side: linear-gradient(90deg, rgba(15,23,42,.90) 0%, rgba(15,23,42,.62) 50%, rgba(15,23,42,.12) 100%);
  --ov-jobs: linear-gradient(180deg, rgba(15,23,42,.42) 0%, rgba(15,23,42,.70) 55%, rgba(15,23,42,.88) 100%);
}
.hero {
  position: relative; color: #fff; margin: -12px -14px 14px; padding: 22px 16px 18px; min-height: 132px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background-color: var(--navy); background-size: cover; background-repeat: no-repeat;
  border-radius: 0 0 18px 18px; box-shadow: 0 6px 18px rgba(15,23,42,.18);
}
.hero h1 { color: #fff; font-size: 26px; margin: 0 0 4px; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.hero p { color: rgba(255,255,255,.92); text-shadow: 0 1px 6px rgba(0,0,0,.5); margin: 0; }
.hero .note { background: rgba(15,23,42,.55); border: 1px solid rgba(255,255,255,.18); color: #f1f5f9; border-radius: 10px; padding: 8px 10px; font-size: 13px; margin-top: 6px; }
.wallet-head.hero { flex-direction: row; align-items: flex-end; justify-content: space-between; }
.hero .add-btn { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(249,115,22,.45); }
@media (min-width: 760px) { .hero { margin: 0 0 16px; border-radius: 18px; min-height: 170px; padding: 28px 24px 22px; } }

/* --hero is set by backgrounds.js when a rotated photo is chosen; otherwise the default below shows */
.hero-wallet { background-image: var(--ov-side), url(/img/bg/conveyor-walkway-800.jpg);
  background-image: var(--ov-side), var(--hero, image-set(url(/img/bg/conveyor-walkway-800.webp) type("image/webp"), url(/img/bg/conveyor-walkway-800.jpg) type("image/jpeg")));
  background-position: center, 85% 75%; }
.hero-resume { background-image: var(--ov), url(/img/bg/headframe-800.jpg);
  background-image: var(--ov), var(--hero, image-set(url(/img/bg/headframe-800.webp) type("image/webp"), url(/img/bg/headframe-800.jpg) type("image/jpeg")));
  background-position: center, 50% 35%; }
.hero-roster { background-image: var(--ov), url(/img/bg/tunnel-800.jpg);
  background-image: var(--ov), var(--hero, image-set(url(/img/bg/tunnel-800.webp) type("image/webp"), url(/img/bg/tunnel-800.jpg) type("image/jpeg")));
  background-position: center, 50% 45%; }
body.route-jobs .top { background-color: var(--navy); background-size: cover; background-repeat: no-repeat; background-position: center, 25% 40%;
  background-image: var(--ov-jobs), url(/img/bg/sunrise-crane-800.jpg);
  background-image: var(--ov-jobs), var(--hero, image-set(url(/img/bg/sunrise-crane-800.webp) type("image/webp"), url(/img/bg/sunrise-crane-800.jpg) type("image/jpeg"))); }
@media (min-width: 761px) {
  .hero-wallet { background-image: var(--ov-side), var(--hero, image-set(url(/img/bg/conveyor-walkway-1600.webp) type("image/webp"), url(/img/bg/conveyor-walkway-1600.jpg) type("image/jpeg"))); }
  .hero-resume { background-image: var(--ov), var(--hero, image-set(url(/img/bg/headframe-1600.webp) type("image/webp"), url(/img/bg/headframe-1600.jpg) type("image/jpeg"))); }
  .hero-roster { background-image: var(--ov), var(--hero, image-set(url(/img/bg/tunnel-1600.webp) type("image/webp"), url(/img/bg/tunnel-1600.jpg) type("image/jpeg"))); }
  body.route-jobs .top { background-image: var(--ov-jobs), var(--hero, image-set(url(/img/bg/sunrise-crane-1600.webp) type("image/webp"), url(/img/bg/sunrise-crane-1600.jpg) type("image/jpeg"))); }
}
/* wallet default photo: conveyor walkway (flare removed at Matt's request, 17 Oct 2026) */
.hero-wallet:not([data-photo]) { --ov-side: linear-gradient(90deg, rgba(12,6,2,.92) 0%, rgba(12,6,2,.7) 35%, rgba(12,6,2,.08) 62%, rgba(12,6,2,0) 100%); background-color: #1a0d05; }
/* first-run welcome (empty wallet) */
.wallet-empty.welcome { text-align: left; color: #fff; border-radius: 18px; padding: 120px 18px 18px; margin: 4px 0 14px;
  background-color: var(--navy); background-size: cover; background-position: center, 50% 40%;
  background-image: linear-gradient(180deg, rgba(15,23,42,.15) 0%, rgba(15,23,42,.75) 45%, rgba(15,23,42,.95) 100%), url(/img/bg/stockpile-800.jpg);
  background-image: linear-gradient(180deg, rgba(15,23,42,.15) 0%, rgba(15,23,42,.75) 45%, rgba(15,23,42,.95) 100%), var(--hero, image-set(url(/img/bg/stockpile-800.webp) type("image/webp"), url(/img/bg/stockpile-800.jpg) type("image/jpeg")));
  box-shadow: var(--shadow); }
.welcome p { margin: 0 0 8px; color: rgba(255,255,255,.92); }
.welcome .welcome-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; color: #fdba74; }
.welcome .welcome-title { font-size: 21px; line-height: 1.25; font-weight: 800; color: #fff; }
.btn-welcome { margin-top: 6px; width: 100%; height: 48px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; }
@media (prefers-reduced-data: reduce) { .hero, body.route-jobs .top, .wallet-empty.welcome { background-image: none !important; } }

/* ---------- account / cloud backup ---------- */
.acct-btn { margin-left: auto; position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.12); text-decoration: none; font-size: 18px; }
.acct-btn.on { background: var(--brand); }
.acct-dot { position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--navy); background: #94a3b8; display: none; }
.acct-dot.on { display: block; background: #22c55e; }
.acct-dot.on.syncing { background: #f59e0b; } .acct-dot.on.error, .acct-dot.on.offline { background: #94a3b8; }
@media (min-width: 760px) { .acct-btn { order: 3; margin-left: 10px; } }
.acct-form { display: grid; gap: 10px; margin: 8px 0; }
.acct-form label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.acct-form input { height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 16px; }
.acct-form .link { justify-self: start; }
.acct-msg.bad { color: #b91c1c; }
.acct-who { margin: 0 0 8px; }
.acct-status { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: 14px; }
.acct-status dt { color: var(--muted); } .acct-status dd { margin: 0; font-weight: 600; }
.sync-ok { color: var(--green); } .sync-error { color: #b91c1c; } .sync-offline { color: var(--muted); }
.danger-zone { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.danger-zone summary { color: #b91c1c; font-weight: 700; cursor: pointer; }
.btn-danger { height: 44px; border: 0; border-radius: 12px; background: #b91c1c; color: #fff; font-weight: 700; padding: 0 16px; cursor: pointer; margin-top: 8px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.oauth-row { display: grid; gap: 8px; margin-top: 8px; }
.privacy-note { margin-top: 12px; }
.cloud-line a { font-weight: 700; }
#page-account .panel { margin-bottom: 12px; }

/* ---------- login / welcome screen (account.js) ---------- */
html.login-open, html.login-open body { overflow: hidden; }
.login { position: fixed; inset: 0; z-index: 1000; overflow-y: auto; -webkit-overflow-scrolling: touch; color: #fff;
  background-color: #120a05;
  background-image: linear-gradient(180deg, rgba(10,6,3,.72) 0%, rgba(10,6,3,.5) 28%, rgba(10,6,3,.62) 48%, rgba(10,6,3,.9) 68%, rgba(10,6,3,.97) 100%),
    url(/img/bg/conveyor-walkway-1600.jpg), url(/img/bg/conveyor-walkway-800.jpg);
  background-image: linear-gradient(180deg, rgba(10,6,3,.72) 0%, rgba(10,6,3,.5) 28%, rgba(10,6,3,.62) 48%, rgba(10,6,3,.9) 68%, rgba(10,6,3,.97) 100%),
    image-set(url(/img/bg/conveyor-walkway-1600.webp) type("image/webp"), url(/img/bg/conveyor-walkway-1600.jpg) type("image/jpeg")),
    image-set(url(/img/bg/conveyor-walkway-800.webp) type("image/webp"), url(/img/bg/conveyor-walkway-800.jpg) type("image/jpeg"));
  background-size: cover; background-position: 58% 30%; }
.login-inner { min-height: 100%; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 18px; padding: calc(env(safe-area-inset-top, 0px) + 40px) 22px calc(env(safe-area-inset-bottom, 0px) + 26px); box-sizing: border-box; }
.login-brand { margin-bottom: auto; padding-top: 6vh; }
.login-icon { width: 72px; height: 72px; display: block; border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.12); margin-bottom: 16px; }
.login h1 { font-size: 34px; line-height: 1.1; margin: 0 0 8px; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.login-tag { font-size: 17px; line-height: 1.4; margin: 0; color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(0,0,0,.6); max-width: 22em; }
.login-card { background: rgba(15,10,6,.55); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 16px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.login-form { display: grid; gap: 10px; }
.login-form input { height: 52px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.96);
  color: #0f172a; font-size: 17px; padding: 0 14px; width: 100%; box-sizing: border-box; }
.login-form input:focus { outline: 3px solid rgba(249,115,22,.6); outline-offset: 1px; }
.btn-login { height: 52px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; font-size: 16px;
  cursor: pointer; box-shadow: 0 6px 18px rgba(249,115,22,.4); width: 100%; }
.btn-login:disabled { opacity: .7; }
.btn-login.alt { background: #fff; color: #0f172a; box-shadow: none; }
.login-h2 { margin: 0; font-size: 20px; }
.login-p { margin: 0; font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.92); }
.login-p b { color: #fff; }
.login-code { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.login-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.login-link { background: none; border: 0; color: #fdba74; font-weight: 700; font-size: 14px; padding: 8px 0; cursor: pointer; }
.login-link:disabled { color: rgba(255,255,255,.55); cursor: default; }
.login-fine { margin: 0; font-size: 13px; color: rgba(255,255,255,.65); }
.login-msg { margin: 10px 0 0; font-size: 14px; min-height: 0; color: rgba(255,255,255,.9); }
.login-msg:empty { display: none; }
.login-msg.bad { color: #fecaca; }
.login-busy { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; padding: 8px 2px; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.login-skip { text-align: center; }
.login-skip-btn { background: none; border: 0; color: #fff; font-size: 16px; font-weight: 600; padding: 10px 14px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.5); }
.login-note { margin: 2px 0 0; font-size: 13px; color: rgba(255,255,255,.72); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (min-width: 761px) { .login-inner { justify-content: center; } .login-brand { margin-bottom: 8px; padding-top: 0; } }

/* ---------- PIN lock (lock.js) ---------- */
html.lock-open, html.lock-open body { overflow: hidden; }
.lock { position: fixed; inset: 0; z-index: 1100; overflow-y: auto; color: #fff; background-color: #120a05;
  background-image: linear-gradient(180deg, rgba(10,6,3,.82) 0%, rgba(10,6,3,.7) 40%, rgba(10,6,3,.9) 75%, rgba(10,6,3,.97) 100%),
    url(/img/bg/conveyor-walkway-800.jpg);
  background-image: linear-gradient(180deg, rgba(10,6,3,.82) 0%, rgba(10,6,3,.7) 40%, rgba(10,6,3,.9) 75%, rgba(10,6,3,.97) 100%),
    image-set(url(/img/bg/conveyor-walkway-800.webp) type("image/webp"), url(/img/bg/conveyor-walkway-800.jpg) type("image/jpeg"));
  background-size: cover; background-position: 58% 30%; -webkit-user-select: none; user-select: none; }
.lock-inner { min-height: 100%; max-width: 380px; margin: 0 auto; box-sizing: border-box; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; padding: calc(env(safe-area-inset-top, 0px) + 28px) 24px calc(env(safe-area-inset-bottom, 0px) + 20px); text-align: center; }
.lock-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 6px 24px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.12); }
.lock h1 { font-size: 24px; margin: 12px 0 4px; }
.lock-sub { margin: 0; font-size: 15px; color: rgba(255,255,255,.8); min-height: 1.2em; max-width: 20em; }
.lock-dots { display: flex; gap: 16px; justify-content: center; min-height: 18px; margin-top: 6px; }
.lock-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); box-sizing: border-box; transition: background .1s; }
.lock-dots span.on { background: #fff; }
.lock-dots.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.lock-msg { margin: 0; min-height: 2.6em; font-size: 14px; color: rgba(255,255,255,.85); max-width: 22em; }
.lock-msg.bad { color: #fecaca; }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 16px 26px; justify-content: center; }
.keypad button { width: 76px; height: 76px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 30px;
  font-weight: 500; cursor: pointer; -webkit-tap-highlight-color: transparent; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.keypad button:active { background: rgba(255,255,255,.32); }
.keypad button:disabled { opacity: .35; cursor: default; }
.keypad .key-fn { background: transparent; font-size: 26px; }
.keypad .key-fn:empty { visibility: hidden; }
.keypad .key-fn.ok { background: var(--brand); font-size: 28px; }
.keypad .key-fn.ok:disabled { background: rgba(249,115,22,.35); opacity: 1; }
.keypad.waiting button[data-k]:not(.key-fn) { opacity: .3; }
.lock-links { display: flex; gap: 22px; justify-content: center; min-height: 40px; }
.lock-link { background: none; border: 0; color: #fdba74; font-weight: 700; font-size: 15px; padding: 10px 6px; cursor: pointer; }
.lock-bio { display: grid; gap: 12px; justify-items: center; max-width: 300px; }
.lock-bio-ico { font-size: 54px; margin: 0; }
.lock-bio-text { margin: 0; font-size: 16px; line-height: 1.45; }
@media (max-height: 700px) { .keypad { grid-template-columns: repeat(3, 66px); gap: 12px 22px; } .keypad button { width: 66px; height: 66px; font-size: 26px; } .lock-icon { width: 52px; height: 52px; } }
/* settings + nudge */
.pin-badge { margin-left: 6px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e2e8f0; color: #475569; vertical-align: middle; }
.pin-badge.on { background: #dcfce7; color: var(--green); }
.pin-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; margin: 4px 0 8px; }
.pin-field select { height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font-size: 15px; background: #fff; }
#pinPanel .row { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.pin-nudge { display: flex; align-items: center; gap: 10px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 14px; padding: 10px 12px; margin: 0 0 12px; font-size: 14px; }
.pin-nudge-ico { font-size: 22px; }
.pin-nudge-text { flex: 1; line-height: 1.35; }
.pin-nudge .x { background: none; border: 0; font-size: 22px; color: #9a3412; cursor: pointer; padding: 0 4px; }
/* home screen (lock + login share the look) */
.lock-brand { margin: 12px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.lock h1 { font-size: 19px; font-weight: 600; margin: 4px 0 2px; color: rgba(255,255,255,.95); }
.lock-welcome { display: grid; gap: 12px; width: 100%; max-width: 320px; margin-top: 18px; }
.lock-link.muted { color: rgba(255,255,255,.7); font-weight: 600; }
.login-offline { display: grid; gap: 12px; }
.sheet-body .bad, .bad.small { color: #b91c1c; font-weight: 600; min-height: 1em; margin: 0; }

/* ---------- receipts ---------- */
.hero-receipts { background-image: var(--ov), url(/img/bg/headframe-800.jpg); }
@media (min-width: 700px) { .hero-receipts { background-image: var(--ov), var(--hero, image-set(url(/img/bg/headframe-1600.webp) type("image/webp"), url(/img/bg/headframe-1600.jpg) type("image/jpeg"))); } }
.rc-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin: 4px 0 8px; }
.rc-fy { display: grid; gap: 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
.rc-fy select { font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px; background: #fff; }
.rc-bar .btn-small { background: #fff; color: var(--ink); border: 1px solid var(--line); height: 38px; }
.rc-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.rc-chips button { flex: none; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rc-chips button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.rc-totals { gap: 4px; }
.rc-totals .rc-trow { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.rc-totals .rc-trow.on { font-weight: 700; }
.rc-totals .rc-trow small { color: var(--muted); font-weight: 500; }
.rc-totals .rc-grand { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; font-weight: 800; font-size: 16px; }
.rc-group h2 { font-size: 15px; margin: 14px 2px 6px; display: flex; justify-content: space-between; }
.rc-group h2 span { color: var(--muted); font-weight: 600; }
.rc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rcard { border-left-color: #94a3b8; }
.rcard .thumb { width: 50px; height: 50px; }
.rcard .ramt { font-weight: 800; font-size: 15px; white-space: nowrap; }
.rc-photo { display: grid; gap: 6px; }
.rc-ph { aspect-ratio: 3 / 2; }
.rc-ph .pdf { font-size: 14px; color: var(--ink); text-align: center; padding: 8px; }
.rc-cats { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rc-cats legend { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 4px; padding: 0; }
.rc-cats label { display: inline-flex !important; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; font-size: 14px !important; color: var(--ink) !important; font-weight: 600 !important; cursor: pointer; background: #fff; }
.rc-cats input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rc-cats label:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff !important; }
.rc-cats label:has(input:focus-visible) { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.rc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rc-ex-btns { display: grid; gap: 8px; }
.rc-note ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
#rcMsg:empty { display: none; }

/* ---------- Wallet → Certificates ---------- */
.wallet-seg { margin: 12px 0 0; }
.wallet-seg span { font-weight: 700; padding: 9px 6px; }
.wallet-seg small { font-weight: 600; opacity: .8; }
.wcard.navy { border-left-color: #1e3a8a; }
.cert-pages { display: grid; gap: 8px; }
.cert-page { display: grid; grid-template-columns: 64px 1fr 36px 36px; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.cert-page.empty { display: block; text-align: center; color: var(--muted); border-style: dashed; border-width: 2px; padding: 18px 10px; font-weight: 600; }
.cert-pv { width: 64px; height: 64px; border-radius: 8px; background: #f1f5f9; overflow: hidden; display: grid; place-items: center; }
.cert-pv img { width: 100%; height: 100%; object-fit: cover; }
.cert-pv .pdf { font-size: 12px; font-weight: 800; color: #b91c1c; }
.cert-pmeta { display: grid; min-width: 0; }
.cert-pmeta small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cert-pbtn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #f8fafc; font-size: 17px; cursor: pointer; color: var(--ink); }
.cert-pbtn:disabled { opacity: .35; }
.cert-add-btns { display: flex; gap: 8px; }
.cert-add-btns .btn-small { flex: 1; justify-content: center; text-align: center; }
.cert-pdf-link { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-weight: 700; color: var(--ink); text-decoration: none; }
.pack-sub { font-size: 14px; margin: 10px 0 0; }

/* ---------- Wallet → Personal (cards & ID) ---------- */
.wallet-seg { grid-template-columns: repeat(2, 1fr); }
.wallet-seg span { font-size: 13px; line-height: 1.2; padding: 9px 4px; }
.wallet-seg small { display: inline-block; }
.ph .pdf { font-size: 13px; font-weight: 800; color: #b91c1c; }
#pcKinds { margin-bottom: 4px; }
#pcMsg:empty { display: none; }

/* ---------- Roster → Bills ---------- */
.bills-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bills-head h2 { margin: 0; }
.bill-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.bill { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-left: 5px solid #16a34a; border-radius: 12px; padding: 8px 8px 8px 10px; }
.bill.amber { border-left-color: #d97706; } .bill.red { border-left-color: #dc2626; } .bill.grey { border-left-color: #94a3b8; }
.bill.paid { opacity: .65; }
.bill-main { all: unset; cursor: pointer; display: grid; gap: 2px; min-width: 0; }
.bill-top { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
.bill-top b { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bill-top .amt { font-weight: 700; color: var(--ink); white-space: nowrap; }
.bill-when { font-size: 13px; font-weight: 600; }
.bill-pay { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 0; background: #7c3aed; color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; }
.bill-pay.undo { background: #e2e8f0; color: var(--ink); }
.bill-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 4px; }
.bill-suggest .chip { border: 1px solid var(--line); background: #f8fafc; border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
#billErr:empty, #billMsg:empty { display: none; }
.ok-msg { color: #15803d; font-weight: 700; margin: 8px 0 0; }
.day { position: relative; }
.day .bk, .legend .bk { display: inline-block; background: #7c3aed; color: #fff; font-size: 10px; font-weight: 800; line-height: 1; padding: 2px 4px; border-radius: 6px; }
.day .bk { position: absolute; top: 2px; right: 2px; }
.day.has-bill { box-shadow: inset 0 0 0 2px #7c3aed; }

/* ---------- Local ---------- */
.hero-local { background-image: linear-gradient(160deg, #0f172a 0%, #1e3a5f 60%, #155e75 100%); }
.local-where { gap: 8px; }
.loc-btn { height: 44px; font-size: 15px; background: var(--brand); }
.local-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.local-form input { height: 44px; font-size: 16px; }
.local-form .btn-small { height: 44px; }
.local-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.local-near { font-weight: 600; margin: 0; }
.local-h { font-size: 15px; margin: 2px 0 0; }
.local-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.local-cat { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: #f8fafc; color: var(--ink); font-weight: 600; font-size: 13.5px; text-align: left; cursor: pointer; }
.local-cat .ico { font-size: 18px; }
.local-cat:disabled { opacity: .5; cursor: default; }
.local-cat.on { border-color: var(--brand); background: #fff7ed; }
.local-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.place { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; }
.place p { margin: 0; }
.place-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.place-name { display: grid; gap: 1px; min-width: 0; }
.place-name b { font-size: 15px; }
.place .star { flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: #f1f5f9; font-size: 22px; line-height: 1; color: #94a3b8; cursor: pointer; }
.place .star.on { color: #f59e0b; background: #fffbeb; }
/* job favourites star (main jobs list) */
.card-top { display: flex; align-items: flex-start; gap: 8px; }
.card-top .title { flex: 1; min-width: 0; }
.card-top .age { flex: none; margin-left: auto; }
.job-star { flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: #f1f5f9; font-size: 22px; line-height: 1; color: #94a3b8; cursor: pointer; }
.job-star.on { color: #f59e0b; background: #fffbeb; }
.tick-toggle.saved-toggle[aria-pressed="true"], .tick-toggle.saved-toggle.on { background: #f59e0b; border-color: #f59e0b; color: #111; }
.badge.closed { background: #fee2e2; color: #991b1b; }
.badge.match-prof { background: #ecfdf5; color: #065f46; }

.place-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.place-acts .btn-small { text-decoration: none; height: 38px; }
.place-acts .call { background: var(--green); }
.osm-attr { text-align: center; margin: 4px 0 18px; }

/* ---------- Contacts (calm, high contrast, big tap targets) ---------- */
.hero-contacts { background-image: linear-gradient(160deg, #0f172a 0%, #1e293b 55%, #334155 100%); }
.sos { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 14px 16px; border-radius: var(--radius); background: #b91c1c; color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.sos-num { flex: none; font-size: 34px; font-weight: 900; letter-spacing: 1px; line-height: 1; background: #fff; color: #b91c1c; border-radius: 12px; padding: 10px 12px; }
.sos-txt { display: grid; gap: 3px; font-size: 14px; line-height: 1.35; }
.sos-txt b { font-size: 17px; }
.contact-me h2, .help-list h2 { font-size: 17px; margin: 0; }
.contact-me p { margin: 0; font-size: 15px; }
.mail-btn { height: 46px; font-size: 15px; text-decoration: none; justify-self: start; word-break: break-all; }
.helplines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.helplines li { display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.helplines li b { font-size: 16.5px; }
.hl-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.hl-acts .btn-small { height: 44px; font-size: 15px; text-decoration: none; }
.hl-acts .call { background: var(--green); }
.hl-site { font-size: 14px; color: var(--blue); }
/* Contacts needs no login or PIN: the lock/sign-in overlays step aside on this page only (they stay open underneath,
   so any other tab shows them again; nothing private is on this page) */
body.route-contacts #lock, body.route-contacts #login { display: none !important; }
html:has(body.route-contacts), body.route-contacts { overflow: auto !important; }
.help-link { display: block; text-align: center; margin: 10px auto 0; color: rgba(255,255,255,.85); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 8px; }

/* ---------- Help (FAQ + men's health: readable without login like Contacts) ---------- */
body.route-help #lock, body.route-help #login { display: none !important; }
html:has(body.route-help), body.route-help { overflow: auto !important; }
#page-help .sos { margin: 10px 0 12px; }

/* ---------- Privacy (static, readable without login like Contacts) ---------- */
body.route-privacy #lock, body.route-privacy #login { display: none !important; }
html:has(body.route-privacy), body.route-privacy { overflow: auto !important; }
.privacy h2 { font-size: 17px; margin: 0; }
.privacy p, .privacy li { font-size: 15px; line-height: 1.5; margin: 0; color: var(--ink); }
.privacy ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.privacy a, .privacy-back a { color: var(--blue); }
.privacy-back { text-align: center; margin: 4px 0 18px; }
.privacy-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none; color: var(--ink); }
.privacy-link > span:first-child { display: grid; gap: 2px; }
.privacy-link > span:last-child { font-size: 24px; color: var(--muted, #64748b); }

/* ---------- Share or save (single item) + separate files ---------- */
.share-btn { width: 100%; }
.export-item { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink); }
.export-opt { width: 100%; justify-content: center; gap: 6px; height: 50px; font-size: 15.5px; }
.export-note, .pack-sep-note { margin: -6px 0 2px; }
.pack-sep { width: 100%; justify-content: center; height: 46px; }

/* ---------- Home reminders (Wallet): bills due + expiring items; calm colours ---------- */
.home-rem { margin: 10px 0; gap: 8px; }
.rem-head { display: flex; align-items: center; gap: 8px; }
.rem-head h2 { font-size: 16px; margin: 0; }
.rem-count { font-size: 12px; font-weight: 800; color: #92400e; background: #fef3c7; border-radius: 999px; padding: 1px 8px; }
.rem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rem-item { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; font: inherit; color: var(--ink); background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 9px 10px; cursor: pointer; min-height: 48px; }
.rem-item.late { background: #fdf2f2; border-color: #f5c2c0; }
.rem-ico { font-size: 20px; flex: none; }
.rem-txt { display: grid; gap: 1px; min-width: 0; flex: 1; }
.rem-txt b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rem-sub { font-size: 13px; color: #92400e; }
.rem-item.late .rem-sub { color: #9b2c2c; font-weight: 600; }
.rem-item .chev { color: var(--muted); font-size: 20px; }
.rem-more { justify-self: start; font-weight: 700; }
#billList li.flash { animation: billflash 2.2s ease-out; }
@keyframes billflash { 0%, 40% { box-shadow: 0 0 0 3px #93c5fd; background: #eff6ff; } 100% { box-shadow: none; } }

/* ===== v39: Home tiles (Windows-style colour blocks, 2 columns) ===== */
.home-head { min-height: 0; padding: 14px 16px 12px; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.home-head h1 { font-size: 22px; margin: 0 0 2px; }
.home-head p { font-size: 13px; }
.home-rem-chip { flex: none; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(15,23,42,.55); color: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.home-rem-chip .small { font-weight: 500; color: #e2e8f0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; margin: 0 0 12px; padding-top: 4px; }
.tile { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff; text-decoration: none; border-radius: 14px;
  height: clamp(50px, calc((100vh - 292px) / 6), 88px); height: clamp(50px, calc((100svh - 292px) / 6), 88px);
  padding: 6px 10px 6px 12px; box-shadow: 0 2px 6px rgba(15,23,42,.18); -webkit-tap-highlight-color: transparent; }
.tile:active { transform: scale(.98); filter: brightness(.95); }
.tile:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.tile-ico { flex: none; font-size: 24px; line-height: 1; }
.tile-lbl { font-weight: 700; font-size: 15px; line-height: 1.25; min-width: 0; overflow-wrap: normal; word-break: normal; hyphens: none; }
.tile-badge { position: absolute; z-index: 1; top: -7px; right: -3px; max-width: calc(100% - 8px); box-shadow: 0 1px 4px rgba(15,23,42,.3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11px; font-weight: 800; line-height: 1; padding: 3px 7px; border-radius: 999px; background: #fff; color: #b91c1c; }
.tile-badge.soon { background: #fef3c7; color: #92400e; }
.tile-badge.late { background: #fff; color: #b91c1c; }
.t-orange { background: #ea580c; } .t-amber { background: #b45309; } .t-purple { background: #7c3aed; } .t-blue { background: #1d4ed8; }
.t-green { background: #15803d; } .t-teal { background: #0e7490; } .t-navy { background: #0f172a; } .t-slate { background: #475569; } .t-gold { background: #a16207; }
@media (max-width: 340px) { .tile { gap: 8px; } .tile-ico { font-size: 21px; } .tile-lbl { font-size: 14px; } .tile-badge { font-size: 10.5px; padding: 2px 6px; } }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); } .tile { height: 96px; } }
#page-home .home-rem { margin-top: 0; }
@media (max-height: 600px) { .home-head { padding: 8px 14px; margin-bottom: 8px; } .home-head h1 { font-size: 19px; } .tiles { gap: 8px 6px; } }
@media (max-width: 360px) { .home-rem-chip .small { display: none; } }

/* ===== v39: Newbie tips ===== */
.tips-head h1 { margin-top: 10px; }
.tips-note { font-size: 13px; color: #78350f; background: #fef3c7; border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; }
.tips-list { display: grid; gap: 8px; margin-bottom: 12px; }
.tips-sec { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.tips-sec summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.tips-sec summary::-webkit-details-marker { display: none; }
.tips-sec summary::after { content: "›"; margin-left: auto; font-size: 22px; transition: transform .2s; }
.tips-sec[open] summary::after { transform: rotate(90deg); }
.tips-ico { font-size: 22px; line-height: 1; }
.tips-sec.c-blue summary { background: #1d4ed8; } .tips-sec.c-orange summary { background: #ea580c; } .tips-sec.c-green summary { background: #15803d; }
.tips-sec.c-teal summary { background: #0e7490; } .tips-sec.c-purple summary { background: #7c3aed; } .tips-sec.c-navy summary { background: #0f172a; }
.tips-sec.c-slate summary { background: #475569; } .tips-sec.c-gold summary { background: #a16207; }
.tip { padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.tip h3 { margin: 0 0 4px; font-size: 15px; }
.tip p { margin: 0; font-size: 14px; line-height: 1.45; color: #334155; }
.tip mark { background: #fde68a; color: #78350f; border-radius: 4px; padding: 0 5px; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.tips-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tips-links a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ===== v39: small-phone tap targets (density review) ===== */
.x { min-width: 44px; min-height: 44px; }
#calPrev, #calNext { min-width: 44px; min-height: 44px; }

/* ===== v40: no bottom nav on the Home tile screen (tiles cover every section; inner pages keep the bar to get back Home) ===== */
body.route-home { padding-bottom: env(safe-area-inset-bottom); }
body.route-home .nav-bottom { display: none; }
body.route-home .tile { height: clamp(50px, calc((100vh - 265px) / 7), 96px); height: clamp(50px, calc((100svh - 265px) / 7), 96px); }
@media (min-width: 760px) { body.route-home .tile { height: 96px; } }

/* ===== v41 languages: self-hosted Noto Sans Khmer (SIL OFL, public/fonts) only downloads when Khmer text is shown;
   Hindi and Chinese use the phone's built-in fonts (every iPhone/Android has them). ===== */
@font-face { font-family: "FJH Khmer"; src: url(/fonts/NotoSansKhmer-Regular.ttf) format("truetype"); font-weight: 100 500; font-display: swap; unicode-range: U+1780-17FF, U+19E0-19FF; }
@font-face { font-family: "FJH Khmer"; src: url(/fonts/NotoSansKhmer-Bold.ttf) format("truetype"); font-weight: 600 900; font-display: swap; unicode-range: U+1780-17FF, U+19E0-19FF; }
html[data-lang="km"] :is(body, button, input, select, textarea) { font-family: "FJH Khmer", "Khmer Sangam MN", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Khmer", Arial, sans-serif; }
html[data-lang="hi"] :is(body, button, input, select, textarea) { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", Arial, sans-serif; }
html[data-lang="zh"] :is(body, button, input, select, textarea) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif; }
html[data-lang="km"] body { line-height: 1.6; }
html[data-lang="hi"] body { line-height: 1.55; }
html:not([data-lang="en"]) .tile-lbl { overflow-wrap: anywhere; hyphens: auto; }
html[data-lang="km"] .tile-lbl, html[data-lang="hi"] .tile-lbl { line-height: 1.3; }
.lang-menu { display: block; margin: 6px 0 8px; }
.lang-menu select { width: 100%; min-height: 44px; font-size: 16px; }

/* ===== v42: every Home tile its own colour (all >=4.9:1 with white text, WCAG AA) ===== */
.tc-tickets { background: #1d4ed8; }
/* ===== home regroup: My Wallet + Pay checker + FiFo-Fit ===== */
.tc-wallet { background: #1d4ed8; }
.tc-paycheck { background: #047857; }
.tc-gym { background: #c2410c; }
#homeTiles .tile-sub, #proFreeTiles .tile-sub {
  display: block; font-size: 11px; font-weight: 600; opacity: 0.9; line-height: 1.2; margin-top: 2px;
}
/* ===== tile text layout: title top, sub bottom ===== */
#homeTiles .tile,
#proFreeTiles .tile {
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  padding: 4px 10px 5px 12px;
}
#homeTiles .tile-ico,
#proFreeTiles .tile-ico {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  right: auto;
  font-size: 28px; /* ~27% bigger than prior 22px */
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}
#homeTiles .tile-lbl,
#proFreeTiles .tile-lbl {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  padding-right: 0;
  margin: 0;
  align-self: flex-start;
  font-size: 14.5px;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  white-space: normal;
  text-align: left;
}
#homeTiles .tile-sub,
#proFreeTiles .tile-sub {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  padding-right: 0;
  align-self: flex-end;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
  line-height: 1.15;
  text-align: left;
}
@media (max-width: 360px) {
  #homeTiles .tile-lbl,
  #proFreeTiles .tile-lbl { font-size: 14px; line-height: 1.25; }
  #homeTiles .tile-sub,
  #proFreeTiles .tile-sub { font-size: 10.5px; }
  #homeTiles .tile-ico,
  #proFreeTiles .tile-ico { font-size: 26px; } /* ~18% up from prior 22; still in 20–30% band vs original */
}

.resume-ai-tile-wrap { margin: 0 0 14px; }
.resume-ai-tile {
  width: 100%; border: 0; cursor: pointer; font: inherit; text-align: left;
  height: auto; min-height: 72px; padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.22);
}
.resume-ai-tile .tile-lbl { font-size: 16px; font-weight: 700; }
.resume-ai-tile .tile-sub { opacity: .92; font-size: 12.5px; font-weight: 500; line-height: 1.3; }
.resume-ai-tile-note { margin: 8px 2px 0; }
#walletHubNote { margin: 0 0 10px; }

.tc-certs { background: #7e22ce; }
.tc-personal { background: #a21caf; }
.tc-jobs { background: #15803d; }
.tc-resume { background: #0e7490; }
.tc-roster { background: #b45309; }
.tc-bills { background: #4338ca; }
.tc-rosterbills { background: linear-gradient(135deg, #b45309 0%, #4338ca 100%); }
.tc-dealai { background: #be185d; }
.tc-receipts { background: #0f766e; }
.tc-pack { background: #c2410c; }
.tc-contacts { background: #4d7c0f; }
.tc-tips { background: #be123c; }
.tc-account { background: #1e293b; }

/* v43: no bottom/top nav anywhere; Home tiles are the menu. Inner pages get a Home button in the header. */
.home-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border-radius: 10px; background: #334155; border: 1px solid #94a3b8; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; flex: none; }
.home-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
body.route-home .home-btn { display: none; }
.top-inner .brand { margin-right: auto; }
/* bottom banner slot: hidden when empty; Matt's rule: never on jobs pages */
.ad-slot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.ad-slot[hidden], .ad-slot:empty, body.route-jobs .ad-slot { display: none !important; }
body.has-ad:not(.route-jobs) { padding-bottom: calc(var(--ad-h, 60px) + env(safe-area-inset-bottom)); }

/* v43 Thai: self-hosted Noto Sans Thai (SIL OFL, public/fonts); the box/Android fallback can lack Thai glyphs */
@font-face { font-family: "FJH Thai"; src: url(/fonts/NotoSansThai-Regular.ttf) format("truetype"); font-weight: 100 500; font-display: swap; unicode-range: U+0E00-0E7F; }
@font-face { font-family: "FJH Thai"; src: url(/fonts/NotoSansThai-Bold.ttf) format("truetype"); font-weight: 600 900; font-display: swap; unicode-range: U+0E00-0E7F; }
html[data-lang="th"] :is(body, button, input, select, textarea) { font-family: "FJH Thai", "Thonburi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Thai", Arial, sans-serif; }
html[data-lang="th"] body { line-height: 1.6; }
html[data-lang="th"] .tile-lbl { line-height: 1.3; }
/* v43 Affiliates tile + page */
.tc-affiliates { background: #854d0e; }
.tc-admin { background: #1e3a5f; }
.tc-jobscout { background: #0f766e; }
.tc-pro-jobscout { background: #0f766e; }
.aff-disclosure { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 8px 0 12px; }
.aff-filters { margin-bottom: 12px; grid-template-columns: repeat(3, 1fr); }
.aff-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aff-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.aff-logo { width: 48px; height: 48px; border-radius: 10px; background: #f1f5f9; display: grid; place-items: center; font-size: 22px; overflow: hidden; }
.aff-logo img { width: 100%; height: 100%; object-fit: contain; }
.aff-card h2 { font-size: 16px; margin: 0 0 2px; }
.aff-meta { font-size: 13px; color: var(--muted, #475569); margin: 0 0 6px; }
.aff-card p.aff-blurb { margin: 0 0 8px; font-size: 14px; }
.aff-tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: #fde68a; color: #713f12; margin-left: 6px; vertical-align: middle; }
.aff-tag.ex { background: #e2e8f0; color: #1e293b; }

/* Affiliates: full-width photo banner ("banner": true in affiliates.json) */
.aff-card.aff-has-banner { grid-template-columns: 1fr; }
.aff-banner { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #0f172a; }
.aff-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; }

/* Logo-style affiliate hero (transparent mark on a dark field; not a cropped photo) */
.aff-banner.aff-banner-logo { aspect-ratio: 2 / 1; box-sizing: border-box; padding: 20px 22px; background: #1d1d1f; display: grid; place-items: center; }
.aff-banner.aff-banner-logo img { object-fit: contain; object-position: center; width: 100%; height: 100%; }
.aff-card.aff-has-banner .aff-wordmark { width: auto; max-width: 220px; height: 36px; background: transparent; border-radius: 0; margin: 0 0 8px; overflow: visible; display: block; }
.aff-card.aff-has-banner .aff-wordmark img { width: auto; max-width: 220px; height: 100%; object-fit: contain; object-position: left center; }

/* first-run welcome note (welcome.js) — multi-step */
dialog.welcome-note { border: 0; padding: 0; border-radius: 18px; width: calc(100% - 32px); max-width: 420px; background: #fff; color: var(--ink); box-shadow: 0 20px 50px rgba(15,23,42,.35); }
dialog.welcome-note::backdrop { background: rgba(15,23,42,.6); }
.welcome-card { padding: 22px 20px 18px; text-align: center; }
.welcome-card.welcome-steps { padding-bottom: 16px; }
.welcome-icon { display: block; margin: 0 auto 8px; border-radius: 14px; }
.welcome-kicker-line { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6b21a8; }
.welcome-card h2 { margin: 0 0 12px; font-size: 20px; font-weight: 800; color: var(--navy); overflow-wrap: anywhere; }
.welcome-body { text-align: left; min-height: 140px; }
.welcome-card p { margin: 0 0 10px; font-size: 15px; line-height: 1.5; text-align: left; }
.welcome-sec { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--line); }
.welcome-sec:last-child { margin-bottom: 0; }
.welcome-sec-h { margin: 0 0 4px; font-size: 15px; font-weight: 800; color: var(--navy); }
.welcome-sec p { margin: 0; font-size: 14px; }
.welcome-footnote { margin: 10px 0 0 !important; font-size: 12px !important; color: var(--muted) !important; text-align: center !important; }
.welcome-mail { display: inline-block; margin: 4px 0 8px; font-weight: 700; color: var(--blue); word-break: break-all; }
.welcome-check { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px; font-size: 14px; }
.welcome-ok { width: 100%; }
.welcome-dots { display: flex; justify-content: center; gap: 8px; margin: 14px 0 12px; }
.welcome-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #cbd5e1; cursor: pointer; }
.welcome-dot.on { background: var(--brand); width: 18px; }
.welcome-nav { display: flex; gap: 10px; align-items: center; }
.welcome-nav .welcome-back { flex: 0 0 auto; min-width: 88px; }
.welcome-nav .welcome-next { flex: 1; }
.welcome-finals { display: grid; gap: 8px; }
.welcome-finals .welcome-trial,
.welcome-finals .welcome-later { width: 100%; }
dialog.welcome-note p { color: var(--ink); }

/* multi-source: small "via Adzuna/Careerjet/Jooble" tag on each job card */
.badge.src { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; font-weight: 600; font-size: 11px; }
.badge.src-careerjet { background: #eff6ff; color: #0b5cad; border-color: #bfdbfe; }
.badge.src-jooble { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }

/* install hint on Home (moved off Wallet) */
.home-install { margin: 0 0 12px; }
.home-install .install-ico { flex: none; font-size: 20px; line-height: 1; }
body.route-home .home-install { box-shadow: 0 1px 0 rgba(15,23,42,.04); }

/* ===== AI Pro / Premium preview (staging mock-up) ===== */
.tc-premium { background: #5b21b6; }
.pro-badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: #f3e8ff; color: #6b21a8; vertical-align: middle; }
.pro-banner { background: linear-gradient(135deg, #faf5ff, #eff6ff); border-color: #ddd6fe; }
.pro-banner-top { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.pro-kicker { margin: 0; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #6b21a8; }
.pro-price { margin: 2px 0 4px; font-size: 18px; color: var(--ink); }
.pro-pitch { margin: 8px 0 0; }
.pro-trial-btn { flex: none; opacity: .55; cursor: not-allowed; }
.pro-sec-title { font-size: 15px; margin: 16px 0 4px; color: var(--navy); }
.pro-sec-note { margin: 0 0 8px; }
.pro-tiles .tile { flex-direction: column; align-items: flex-start; height: auto; min-height: 88px; padding: 12px; gap: 4px; }
.pro-tiles .tile-sub { font-size: 12px; font-weight: 500; opacity: .92; line-height: 1.25; }
.tc-pro-jobs { background: #166534; }
.tc-pro-holiday { background: #0369a1; }
.tc-pro-payslip { background: #6d28d9; }
.tc-pro-gym { background: #b45309; }
.tc-pro-resume { background: #0f766e; }
.tc-pro-roster { background: #9f1239; }
body.route-premium .tile { height: auto; min-height: 56px; }
.pro-widget-host { margin-top: 4px; }
.pro-w-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; }
.pro-w-head h2 { margin: 0; font-size: 20px; flex: 1 1 auto; }
.pro-h3 { margin: 0 0 8px; font-size: 15px; }
.demo-tag { display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 6px; border-radius: 5px; background: #fef3c7; color: #92400e; vertical-align: middle; }
.pro-disclaimer { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin: 0 0 12px; }
.pro-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pro-chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.pro-chip.on { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.pro-chip.warn { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.pro-chip.muted { opacity: .7; }
.pro-job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.pro-job-tags .badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.badge.ug { background: #ffedd5; color: #9a3412; }
.badge.surface { background: #ecfdf5; color: #047857; }
.badge.uncat { background: #f1f5f9; color: #64748b; }
.pro-cat-row { display: grid; gap: 6px; margin: 8px 0; }
.pro-cat-row > .small { font-weight: 700; }
.pro-cat-filter { cursor: pointer; border: 1px solid #cbd5e1; background: #fff; }
.pro-cat-filter.on { background: #dcfce7; color: #166534; border-color: #86efac; }

.pro-job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pro-job-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.pro-reason { margin: 8px 0; font-size: 14px; line-height: 1.45; background: #f8fafc; border-left: 3px solid #7c3aed; padding: 8px 10px; border-radius: 0 8px 8px 0; }
.pro-job-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pro-job-actions .btn-primary, .pro-apply { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 14px; border-radius: 10px; text-decoration: none; }
.pro-trip { margin-bottom: 10px; }
.pro-bullets { margin: 6px 0 12px; padding-left: 18px; font-size: 14px; line-height: 1.45; }
.pro-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pro-table th, .pro-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.pro-table .ok { color: #15803d; font-weight: 700; }
.pro-table .warn { color: #b45309; font-weight: 700; }
.pro-progress { height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin: 8px 0; }
.pro-progress > span { display: block; height: 100%; background: #b45309; border-radius: 999px; }
.warn-line { color: #b45309; font-weight: 600; }
.pro-cal { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.pro-cal span { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; color: #fff; }
.pro-cal .on { background: #b45309; }
.pro-cal .travel { background: #0369a1; }
.pro-cal .rr { background: #15803d; }
.pro-cal .leave { background: #64748b; }
#proTiles button.tile { border: 0; width: 100%; text-align: left; cursor: pointer; font: inherit; color: #fff; }

/* AI Pro profile / Work AI / Deal Finder */
.pro-profile-card { margin: 12px 0 8px; }
.pro-profile-top { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.pro-strength { margin-top: 10px; }
.pro-strength-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 4px; }
.pro-strength-bar > span { background: #7c3aed; }
.tc-pro-workadmin { background: #6d28d9; }
.tc-pro-deals { background: #0f766e; }
.tc-pro-dealfinder { background: #0f766e; }
.tc-pro-holiday { background: #0369a1; } /* kept for legacy */

.pro-price-line { margin: 4px 0 2px; font-size: 17px; color: var(--ink); }
.pro-what { margin: 4px 0 8px; }
.pro-what-title { margin-top: 14px; }
.pro-what-grid { display: grid; gap: 10px; }
.pro-what-card {
  display: block; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 14px 12px;
  box-shadow: 0 1px 0 rgba(15,23,42,.04); transition: border-color .15s, box-shadow .15s;
}
.pro-what-card:hover, .pro-what-card:focus-visible {
  border-color: #c4b5fd; box-shadow: 0 0 0 3px rgba(124,58,237,.12); outline: none;
}
.pro-what-card-top { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.pro-what-ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 20px; background: linear-gradient(135deg, #f3e8ff, #dbeafe);
}
.pro-what-h { margin: 0; font-size: 15.5px; line-height: 1.25; color: var(--navy); }
.pro-what-tagline { margin: 3px 0 0; font-size: 12.5px; font-weight: 700; color: #6b21a8; }
.pro-what-badge {
  display: inline-block; margin-top: 4px; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 6px;
}
.pro-what-badge.soon { background: #fef3c7; color: #92400e; }
.pro-what-badge.preview { background: #e0e7ff; color: #3730a3; }
.pro-what-points { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.4; color: #334155; }
.pro-what-points li { margin: 0 0 5px; }
.pro-what-points li:last-child { margin-bottom: 0; }
.pro-what-disclaimer {
  margin: 10px 0 0; font-size: 12px; line-height: 1.35; color: #7c2d12;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 8px 10px;
}
@media (min-width: 720px) {
  .pro-what-grid { grid-template-columns: 1fr 1fr; }
  .pro-what-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.tc-pro-profile { background: #334155; }
.pro-form label { display: block; margin: 10px 0; font-size: 13px; font-weight: 600; }
.pro-form input[type=text], .pro-form input[type=number], .pro-form textarea, .pro-form select {
  display: block; width: 100%; margin-top: 4px; font: inherit; font-weight: 500; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); box-sizing: border-box;
}
.pro-fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 10px; margin: 10px 0; }
.pro-fieldset legend { font-size: 12px; font-weight: 800; padding: 0 4px; }
.pro-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 10px; font-weight: 500; }
.pro-check-grid label { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 500; margin: 0; }
.pro-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pro-learned-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pro-learned-item { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.pro-learned-actions { display: flex; gap: 6px; }
.pro-match { margin: 6px 0 0; }
.pro-match-score { display: inline-block; font-size: 13px; font-weight: 800; padding: 4px 8px; border-radius: 8px; background: #ede9fe; color: #5b21b6; }
.pro-wa-tabs { display: flex; gap: 6px; margin: 0 0 12px; }
.pro-wa-tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.pro-wa-tab.on { background: #5b21b6; color: #fff; border-color: #5b21b6; }

/* Gym — daily calorie balance */
.pro-cal-balance { margin-top: 10px; }
.pro-cal-today {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 12px;
}
.pro-cal-stat {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 72px;
}
.pro-cal-stat.pro-cal-net { grid-column: 1 / -1; }
.pro-cal-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #64748b; }
.pro-cal-stat strong { font-size: 20px; line-height: 1.2; color: var(--ink); }
.pro-cal-badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
}
.pro-cal-badge.surplus, .pro-cal-net.surplus .pro-cal-badge { background: #dcfce7; color: #166534; }
.pro-cal-badge.deficit, .pro-cal-net.deficit .pro-cal-badge { background: #ffedd5; color: #9a3412; }
.pro-cal-badge.even, .pro-cal-net.even .pro-cal-badge { background: #e2e8f0; color: #475569; }
.pro-cal-net.surplus { border-color: #bbf7d0; background: #f0fdf4; }
.pro-cal-net.deficit { border-color: #fed7aa; background: #fff7ed; }
.pro-cal-net.even { border-color: #e2e8f0; }
.pro-cal-forms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 480px) {
  .pro-cal-forms { grid-template-columns: 1fr 1fr; }
}
.pro-cal-form {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  display: grid;
  gap: 8px;
}
.pro-cal-form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.pro-cal-form-label input {
  display: block;
  width: 100%;
  margin-top: 4px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  font: inherit;
  box-sizing: border-box;
}
.pro-cal-chart-wrap { margin: 8px 0 4px; }
.pro-cal-svg { width: 100%; height: auto; display: block; max-width: 100%; }
.pro-cal-axis { stroke: #cbd5e1; stroke-width: 1; }
.pro-cal-avg { stroke: #7c3aed; stroke-width: 1.5; stroke-dasharray: 4 3; }
.pro-cal-bar.surplus { fill: #16a34a; }
.pro-cal-bar.deficit { fill: #ea580c; }
.pro-cal-bar.even { fill: #94a3b8; }
.pro-cal-x { font-size: 10px; fill: #64748b; font-weight: 700; }
.pro-cal-trend { margin: 6px 0 0; font-size: 13px; color: #334155; }
.pro-cal-legend {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  color: #475569;
}
.pro-cal-legend li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pro-cal-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none;
  background: #94a3b8;
}
.pro-cal-dot.surplus { background: #16a34a; }
.pro-cal-dot.deficit { background: #ea580c; }
.pro-cal-net-inline.surplus { color: #166534; font-weight: 700; }
.pro-cal-net-inline.deficit { color: #9a3412; font-weight: 700; }
.pro-cal-net-inline.even { color: #475569; font-weight: 700; }
#proCalMsg { margin: 8px 0 0; color: #334155; }


/* Holiday planner — Domestic / Overseas SAMPLE packages */
.pro-hol-tabs { display: flex; gap: 6px; margin: 0 0 12px; }
.pro-hol-tab {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}
.pro-hol-tab.on {
  background: #0369a1;
  color: #fff;
  border-color: #0369a1;
}
.pro-hol-filters { margin-bottom: 10px; }
.pro-hol-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 10px;
}
@media (min-width: 420px) {
  .pro-hol-grid { grid-template-columns: 1fr 1fr; }
}
.pro-hol-filters label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.pro-hol-filters select,
.pro-hol-filters input[type=number] {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  box-sizing: border-box;
}
.pro-hol-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.pro-hol-check input { width: 18px; height: 18px; }
.pro-hol-note { margin: 0 0 10px; }
.pro-hol-list { display: flex; flex-direction: column; gap: 10px; }
.pro-hol-card { margin: 0; }
.pro-hol-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.pro-hol-rank {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #0369a1;
}
.pro-hol-title { margin: 0 0 4px; font-size: 17px; line-height: 1.25; }
.pro-hol-price {
  text-align: right;
  min-width: 96px;
  flex-shrink: 0;
}
.pro-hol-price-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
}
.pro-hol-price strong {
  display: block;
  font-size: 20px;
  color: var(--ink);
  line-height: 1.1;
}
.pro-hol-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 6px;
  align-items: center;
}
.pro-hol-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
}
.pro-hol-pill.ok {
  background: #dcfce7;
  color: #166534;
}
.pro-hol-inc { margin: 6px 0 10px; }
a.pro-hol-view.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Holiday — Today's Top 5 SAMPLE feed */
.pro-hol-top5 { margin-bottom: 10px; border-left: 4px solid #0369a1; }
.pro-hol-top5 .pro-h3 { margin-bottom: 2px; }
.pro-hol-top5-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pro-hol-top5-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pro-hol-top5-item:first-child { border-top: 0; }
.pro-hol-top5-rank { flex: 0 0 26px; height: 26px; border-radius: 50%; background: #0369a1; color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.pro-hol-top5-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pro-hol-top5-body strong { font-size: 14px; line-height: 1.25; }
.pro-hol-top5-price { text-align: right; display: flex; flex-direction: column; flex-shrink: 0; }
.pro-hol-top5-price strong { font-size: 15px; }

/* ===== Fitness / Gym — athletic dark cards ===== */
.fit-shell { display: grid; gap: 12px; }
.fit-panel { background: #0b1220; border-color: #1e293b; color: #e2e8f0; }
.fit-panel .pro-h3, .fit-panel .fit-col-title, .fit-panel strong { color: #f8fafc; }
.fit-panel .small, .fit-panel .muted, .fit-panel .small.muted { color: #94a3b8; }
.fit-panel .pro-form label { color: #cbd5e1; }
.fit-panel .pro-form input, .fit-panel .pro-form select, .fit-panel .pro-form textarea,
.fit-prog-controls select {
  background: #111827; color: #f1f5f9; border-color: #334155;
}
.fit-panel .btn-secondary { background: #1e293b; color: #e2e8f0; border-color: #334155; }
.fit-panel .pro-progress { background: #1e293b; }
.fit-panel .pro-learned-item { background: #111827; border-color: #334155; color: #e2e8f0; }
.fit-panel .pro-table th, .fit-panel .pro-table td { border-color: #334155; color: #e2e8f0; }
.fit-panel .pro-table th { color: #94a3b8; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }

.fit-hero {
  background: radial-gradient(120% 80% at 10% 0%, #1d4ed8 0%, transparent 45%),
              radial-gradient(90% 70% at 100% 10%, #7c3aed 0%, transparent 40%),
              linear-gradient(160deg, #0f172a 0%, #020617 100%);
  border: 1px solid #334155;
  color: #f8fafc;
  overflow: hidden;
}
.fit-hero-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 10px; }
.fit-kicker { margin: 0 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #93c5fd; }
.fit-hero-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.fit-phase-pill {
  flex: none; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  padding: 6px 10px; border-radius: 999px; background: #1e3a5f; color: #bfdbfe; border: 1px solid #1d4ed8;
}
.fit-phase-pill.rr { background: #14532d; color: #bbf7d0; border-color: #16a34a; }

.fit-body-row { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
@media (min-width: 520px) {
  .fit-body-row { grid-template-columns: minmax(160px, 200px) 1fr; }
}
.fit-body-wrap {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 8px;
  display: flex; justify-content: center; align-items: center;
  min-height: 280px;
}
.fit-body-svg { width: 100%; max-width: 200px; height: auto; display: block; }
.fit-body-head { fill: #334155; stroke: #64748b; stroke-width: 1; }
.fit-body-neck { fill: #1e293b; }
.fit-body-caption { fill: #64748b; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.fit-m {
  fill: #1e293b; stroke: #475569; stroke-width: 1.2;
  transition: fill .2s ease, stroke .2s ease, filter .2s ease;
}
.fit-m.on {
  fill: #f97316; stroke: #fdba74; filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.65));
}
.fit-body-side { display: grid; gap: 10px; align-content: start; }
.fit-seg { display: flex; gap: 6px; }
.fit-seg-btn {
  flex: 1; border: 1px solid #334155; background: #0f172a; color: #cbd5e1;
  border-radius: 999px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer;
}
.fit-seg-btn.on { background: #ea580c; color: #fff; border-color: #ea580c; }
.fit-body-legend { margin: 0; color: #94a3b8; }
.fit-muscle-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fit-muscle-chip {
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px;
  background: #1e293b; color: #94a3b8; border: 1px solid #334155;
}
.fit-muscle-chip.on { background: #7c2d12; color: #ffedd5; border-color: #ea580c; }
.fit-start-btn { width: 100%; opacity: .55; cursor: not-allowed; }

.fit-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fit-strength-pct { font-size: 18px; color: #fdba74; }
.fit-strength-bar > span { background: linear-gradient(90deg, #ea580c, #f59e0b); }
.fit-cols { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 12px; }
@media (min-width: 640px) { .fit-cols { grid-template-columns: 1fr 1fr; } }
.fit-col-title {
  margin: 0 0 8px; font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: #fdba74;
}
.fit-gaps { display: grid; gap: 10px; margin: 14px 0 4px; }
.fit-gap-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.fit-gap-bar > span { background: linear-gradient(90deg, #22c55e, #a3e635); }

.fit-daily-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fit-stat-card {
  background: #111827; border: 1px solid #334155; border-radius: 14px; padding: 12px;
  display: flex; flex-direction: column; gap: 4px; min-height: 96px;
}
.fit-stat-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; }
.fit-stat-card strong { font-size: 22px; color: #f8fafc; line-height: 1.1; }
.fit-stat-sub { font-size: 12px; color: #94a3b8; }
.fit-mini-bar { height: 8px; background: #1e293b; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.fit-mini-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #38bdf8, #818cf8); border-radius: 999px; }
.fit-water-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.fit-water-bar { flex: 1; margin-top: 0; }
.fit-water-bar > span { background: linear-gradient(90deg, #0ea5e9, #22d3ee); }
.fit-water-btn {
  width: 36px; height: 36px; padding: 0; border-radius: 10px; font-size: 18px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

.fit-workout-list, .fit-meal-recs, .fit-meal-log { display: grid; gap: 8px; }
.fit-wo-row, .fit-meal-log-row, .fit-meal-rec {
  display: flex; justify-content: space-between; gap: 10px; align-items: flex-start;
  background: #111827; border: 1px solid #334155; border-radius: 12px; padding: 10px 12px;
}
.fit-wo-min, .fit-meal-log-row b { color: #fdba74; font-weight: 800; white-space: nowrap; }
.fit-kcal-target { margin: 0 0 6px; font-size: 13px; color: #cbd5e1; }

.fit-prog-controls {
  display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 10px;
}
@media (min-width: 480px) { .fit-prog-controls { grid-template-columns: 1fr 1fr 1fr; } }
.fit-prog-controls label { display: block; font-size: 12px; font-weight: 700; color: #94a3b8; }
.fit-prog-controls select {
  display: block; width: 100%; margin-top: 4px; height: 40px; border-radius: 10px;
  border: 1px solid #334155; padding: 0 10px; font: inherit; box-sizing: border-box;
}
.fit-split-label { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #cbd5e1; }
.fit-week {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px;
}
@media (min-width: 520px) { .fit-week { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) { .fit-week { grid-template-columns: repeat(7, 1fr); } }
.fit-day {
  text-align: left; border: 1px solid #334155; background: #111827; color: #e2e8f0;
  border-radius: 12px; padding: 10px; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; gap: 2px; min-height: 78px;
}
.fit-day.on { border-color: #ea580c; background: #7c2d12; box-shadow: 0 0 0 1px #ea580c inset; }
.fit-day.today:not(.on) { border-color: #3b82f6; }
.fit-day-name { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.fit-day.on .fit-day-name { color: #fed7aa; }
.fit-day-title { font-size: 12px; font-weight: 700; line-height: 1.25; }
.fit-day-min { font-size: 11px; color: #94a3b8; }
.fit-session {
  background: #0f172a; border: 1px solid #334155; color: #e2e8f0; margin-bottom: 10px;
}
.fit-ex-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0; max-width: 100%; }
.fit-ex-table-wrap { display: none; }
.fit-ex-table { min-width: 520px; }
.fit-ex-cards { display: grid; gap: 8px; margin: 8px 0; }
.fit-ex-card {
  background: #111827; border: 1px solid #334155; border-radius: 12px; padding: 12px;
}
.fit-ex-card h5 { margin: 0 0 4px; font-size: 14px; color: #f8fafc; }
.fit-ex-dl {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 8px 0 0;
}
.fit-ex-dl dt { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #94a3b8; }
.fit-ex-dl dd { margin: 0; font-size: 13px; font-weight: 700; color: #e2e8f0; }
@media (min-width: 640px) {
  .fit-ex-table-wrap { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fit-ex-cards { display: none; }
}
.fit-prog-rules { margin-top: 8px; }
.fit-session-loc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; color: #cbd5e1; font-size: 13px; }
.fit-swap-btn { font-size: 12px !important; padding: 6px 10px !important; height: auto !important; }
.fit-safety {
  background: #422006; border: 1px solid #a16207; color: #fde68a;
  border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 0 0 10px;
}
.fit-loc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.fit-loc-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 999px;
  background: #1e293b; border: 1px solid #334155; color: #e2e8f0;
}

/* Gym home dashboard */
.fit-home-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.fit-home-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px;
}
@media (min-width: 720px) { .fit-home-stats { grid-template-columns: repeat(3, 1fr); } }
.fit-home-stats .fit-stat-wide { grid-column: 1 / -1; }
.fit-home-row2 { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 10px; }
@media (min-width: 520px) { .fit-home-row2 { grid-template-columns: 1fr 1fr; } }
.fit-stat-unit { font-size: 13px; font-weight: 700; color: #94a3b8; }
.fit-more-stats {
  background: #111827; border: 1px solid #334155; border-radius: 14px; padding: 8px 12px; margin-bottom: 12px;
}
.fit-more-stats > summary {
  cursor: pointer; font-weight: 800; color: #fdba74; list-style: none; padding: 6px 0;
}
.fit-more-stats > summary::-webkit-details-marker { display: none; }
.fit-more-stats[open] > summary { margin-bottom: 8px; }
.fit-home-stats-more { margin-top: 4px; }
.fit-set-wrap, .fit-pb-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fit-set-chip {
  background: #0f172a; border: 1px solid #334155; border-radius: 999px;
  padding: 4px 10px; font-size: 12px; color: #e2e8f0;
}
.fit-set-chip b { color: #fdba74; margin-right: 4px; }
.fit-pb-row {
  display: flex; gap: 10px; align-items: baseline; width: 100%;
  background: #0f172a; border: 1px solid #334155; border-radius: 10px; padding: 8px 10px; font-size: 13px;
}
.fit-pb-row b { margin-left: auto; color: #fdba74; }
.fit-home-nav { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 520px) { .fit-home-nav { grid-template-columns: 1fr 1fr; } }
.fit-nav-card {
  display: flex; gap: 10px; align-items: flex-start; text-align: left;
  background: #111827; border: 1px solid #334155; border-radius: 14px; padding: 12px;
  color: #e2e8f0; font: inherit; cursor: pointer;
}
.fit-nav-card:hover, .fit-nav-card:focus-visible { border-color: #ea580c; outline: none; }
.fit-nav-card b { display: block; color: #f8fafc; margin-bottom: 2px; }
.fit-nav-card .small { display: block; }
.fit-nav-ico { font-size: 22px; line-height: 1; }
.fit-subnav {
  display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 5;
  background: rgba(2, 6, 23, 0.92); backdrop-filter: blur(8px);
  border: 1px solid #334155; border-radius: 12px; padding: 8px 10px; margin-bottom: 4px;
}
.fit-subnav strong { color: #f8fafc; font-size: 14px; }

/* Track + location pickers */
.fit-track-grid, .fit-loc-grid, .fit-sex-grid, .fit-age-grid {
  display: grid; gap: 8px; margin: 8px 0 4px;
}
.fit-sex-grid { grid-template-columns: 1fr 1fr; }
.fit-age-grid { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) {
  .fit-track-grid { grid-template-columns: 1fr 1fr; }
  .fit-age-grid { grid-template-columns: repeat(3, 1fr); }
  .fit-loc-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 480px) {
  .fit-sex-grid { grid-template-columns: 1fr 1fr; }
  .fit-loc-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 390px) {
  .fit-sex-grid { grid-template-columns: 1fr; }
  .fit-age-grid { grid-template-columns: 1fr; }
}
.fit-track-card, .fit-loc-card {
  text-align: left; background: #111827; border: 1px solid #334155; color: #e2e8f0;
  border-radius: 14px; padding: 12px; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; gap: 4px;
}
.fit-track-card.on, .fit-loc-card.on {
  border-color: #ea580c; background: #7c2d12; box-shadow: 0 0 0 1px #ea580c inset;
}
.fit-track-card b, .fit-loc-card b { color: #f8fafc; }
.fit-loc-ico { font-size: 20px; }

/* Prog controls 3 cols already; ensure 4th not needed */
.fit-prog-controls { grid-template-columns: 1fr; }
@media (min-width: 480px) { .fit-prog-controls { grid-template-columns: 1fr 1fr 1fr; } }

/* Home water +250 button can be wider */
#fitHomeWaterPlus { width: auto; min-width: 72px; padding: 0 10px; font-size: 12px; }

.fit-connect-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fit-connect-item {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center;
  background: #111827; border: 1px solid #334155; border-radius: 12px; padding: 12px;
}
.fit-connect-ico { font-size: 20px; text-align: center; }
.fit-connect-item strong { display: block; color: #f8fafc; }
.fit-connect-item .small { display: block; }
.fit-connect-badge {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 5px 8px; border-radius: 999px; background: #1e293b; color: #93c5fd; border: 1px solid #334155;
  text-align: center; max-width: 110px; line-height: 1.25;
}

/* Calorie block inside dark fitness shell keeps readable contrast */
.fit-shell .pro-cal-balance { background: #0b1220; border-color: #1e293b; color: #e2e8f0; }
.fit-shell .pro-cal-stat { background: #111827; border-color: #334155; }
.fit-shell .pro-cal-stat strong { color: #f8fafc; }
.fit-shell .pro-cal-label { color: #94a3b8; }
.fit-shell .pro-cal-form { background: #111827; border-color: #334155; }
.fit-shell .pro-cal-form-label { color: #cbd5e1; }
.fit-shell .pro-cal-form-label input { background: #0f172a; color: #f1f5f9; border-color: #334155; }
.fit-shell .pro-cal-net.surplus { background: #052e16; border-color: #166534; }
.fit-shell .pro-cal-net.deficit { background: #431407; border-color: #9a3412; }
.fit-shell .pro-cal-trend, .fit-shell .pro-cal-legend, .fit-shell #proCalMsg { color: #cbd5e1; }
.fit-shell .pro-cal-x { fill: #94a3b8; }

/* Gym tile stays amber athletic */
.tc-pro-gym { background: linear-gradient(145deg, #c2410c, #9a3412); }


/* AI Pro operational (staging) */
.pro-ops-banner { margin: 0.75rem 0; border-left: 4px solid #888; }
.pro-ops-banner.on { border-left-color: #1a7f37; background: rgba(26,127,55,0.08); }
#proCloudStatus.ok { color: #1a7f37; }
#proCloudStatus.warn { color: #9a6700; }
.pro-badge.live { background: #1a7f37; color: #fff; }
.pro-pay-form { display: grid; gap: 0.5rem; margin-top: 0.5rem; }
.pro-pay-form label { display: grid; gap: 0.2rem; font-size: 0.9rem; }
.pro-wa-list { margin: 0.5rem 0; padding-left: 1.1rem; }
.pro-wa-list li { margin: 0.25rem 0; }
.pro-table td.bad { color: #cf222e; font-weight: 600; }


/* Work AI payslip PDF v2 */
.pro-pay-upload-grid { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
@media (min-width: 640px) {
  .pro-pay-upload-grid { grid-template-columns: 1fr 1fr; }
}
.pro-pay-upload-card {
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #fafafa;
}
.pro-h4 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.pro-pay-file { display: block; width: 100%; margin: 0.5rem 0; font-size: 0.85rem; }
.pro-pay-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.pro-pay-progress {
  margin: 0.5rem 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 0.9rem;
}
.pro-pay-progress.warn { background: #fef3c7; color: #92400e; }
.pro-pay-progress.ok { background: #dcfce7; color: #166534; }
.pro-pay-manual { margin-top: 1rem; }
.pro-pay-manual summary { cursor: pointer; font-weight: 700; }
.pro-pay-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pro-pay-result-table td.ok, .psr-status-ok { color: #15803d; font-weight: 700; }
.pro-pay-result-table td.bad, .psr-status-bad { color: #b91c1c; font-weight: 700; }
.pro-pay-result-table td.warn, .pro-pay-result-table td.neutral, .psr-status-neutral { color: #475569; font-weight: 700; }
.pro-pay-row-ok, .psr-row-ok { background: #f0fdf4; }
.pro-pay-row-bad, .psr-row-bad { background: #fef2f2; }
.pro-pay-row-warn, .pro-pay-row-neutral, .psr-row-neutral { background: #f8fafc; }

/* Deal AI combined Holidays + Shopping */
.pro-df-tabs { display: flex; gap: 6px; margin: 0 0 12px; }
.pro-df-tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.pro-df-tab.on { background: #0f766e; color: #fff; border-color: #0f766e; }
.pro-df-pane { margin-top: 2px; }

.pro-what-inline-soon { font-size: 11px; font-weight: 800; color: #92400e; text-transform: uppercase; letter-spacing: .03em; }
.pro-wa-tabs { flex-wrap: wrap; }

/* FiFo-Fit — collapsed safety disclaimer (text kept, not deleted) */
.fit-safety-info {
  margin: 0 0 10px;
  border: none;
  background: transparent;
  padding: 0;
}
.fit-safety-info > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  padding: 2px 0;
}
.fit-safety-info > summary::-webkit-details-marker { display: none; }
.fit-safety-info > summary::before {
  content: '';
  width: 0; height: 0;
  border-left: 5px solid #94a3b8;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform .15s ease;
}
.fit-safety-info[open] > summary::before { transform: rotate(90deg); }
.fit-safety-info[open] > summary { color: #475569; margin-bottom: 6px; }
.fit-safety-info .pro-disclaimer { margin-bottom: 0; }

/* Compact body figure above Gym shortcuts */
.fit-home-body { margin: 0; }
.fit-home-body-wrap {
  min-height: 220px;
  max-width: 180px;
  margin: 0 auto;
}
.fit-home-body .fit-body-svg { max-width: 160px; }
.fit-home-body-row { margin-top: 4px; }

/* FiFo-Fit v2 — scroll layout */
.fit-jump {
  display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 2px 0 4px; margin: 0 0 4px;
}
.fit-jump button {
  flex: 0 0 auto; border: 1px solid #334155; background: #111827; color: #e2e8f0;
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.fit-jump button:hover, .fit-jump button:focus-visible { border-color: #ea580c; outline: none; }
.fit-mode-seg {
  display: flex; gap: 6px; margin: 8px 0 12px; flex-wrap: wrap;
}
.fit-mode-seg .fit-seg-btn { flex: 1 1 140px; }
.fit-act-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 12px;
}
@media (min-width: 520px) {
  .fit-act-grid { grid-template-columns: repeat(3, 1fr); }
}
.fit-act-chip {
  display: flex; align-items: center; gap: 8px; text-align: left;
  background: #111827; border: 1px solid #334155; color: #e2e8f0;
  border-radius: 12px; padding: 10px; font: inherit; cursor: pointer;
}
.fit-act-chip b { font-size: 13px; color: #f8fafc; }
.fit-act-chip.on {
  border-color: #ea580c; background: #7c2d12; box-shadow: 0 0 0 1px #ea580c inset;
}
.fit-log-form { margin-top: 4px; }
.fit-kcal-est {
  margin: 8px 0 10px; font-size: 13px; color: #cbd5e1;
  background: #0f172a; border: 1px solid #334155; border-radius: 10px; padding: 8px 10px;
}
.fit-kcal-est b { color: #fdba74; }
.fit-log-list { display: grid; gap: 8px; margin-top: 12px; }
.fit-log-row {
  display: flex; align-items: center; gap: 10px;
  background: #111827; border: 1px solid #334155; border-radius: 12px; padding: 10px 12px;
}
.fit-log-row .fit-log-del { margin-left: auto; padding: 4px 8px; min-width: 36px; }
.fit-meal-planner {
  margin-top: 14px; background: #111827; border: 1px solid #334155; border-radius: 14px; padding: 8px 12px;
}
.fit-meal-planner > summary {
  cursor: pointer; font-weight: 800; color: #fdba74; list-style: none; padding: 6px 0;
}
.fit-meal-planner > summary::-webkit-details-marker { display: none; }
.fit-meal-ideas { display: grid; gap: 8px; margin-top: 10px; }
.fit-meal-idea {
  background: #0f172a; border: 1px solid #334155; border-radius: 12px; padding: 10px 12px;
}
.fit-meal-idea .btn-secondary { margin-top: 8px; }
.fit-more-tools {
  margin-top: 4px;
}
.fit-more-tools > summary {
  cursor: pointer; font-weight: 800; color: #93c5fd; list-style: none; padding: 4px 0 8px;
}
.fit-more-tools > summary::-webkit-details-marker { display: none; }


/* Health & Fitness Dashboard */
.fit-dash-range { margin: 8px 0 12px; }
.fit-dash-range .fit-seg-btn.on,
.fit-dash-range .fit-seg-btn[aria-pressed="true"] {
  border-color: #ea580c; background: #7c2d12; color: #fff7ed;
}
.fit-dash-empty {
  background: #0f172a; border: 1px dashed #334155; border-radius: 14px;
  padding: 16px 14px; margin: 8px 0 12px; color: #cbd5e1;
}
.fit-dash-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.fit-dash-tile {
  background: #111827; border: 1px solid #334155; border-radius: 12px;
  padding: 10px 12px; display: grid; gap: 2px;
}
.fit-dash-tile strong { font-size: 20px; color: #f8fafc; }
.fit-dash-chart-wrap {
  background: #0f172a; border: 1px solid #334155; border-radius: 12px;
  padding: 8px 6px 4px; margin-top: 6px;
}
.fit-dash-chart { display: block; }
.fit-dash-split-bar {
  display: flex; height: 12px; border-radius: 999px; overflow: hidden;
  background: #1e293b; margin: 6px 0 10px;
}
.fit-dash-split-bar span { display: block; min-width: 0; }
.fit-dash-split-legend {
  display: grid; gap: 6px; font-size: 12px; color: #cbd5e1;
}
.fit-dash-split-legend span { display: flex; align-items: center; gap: 8px; }
.fit-dash-split-legend i {
  width: 10px; height: 10px; border-radius: 3px; display: inline-block;
}
@media (max-width: 390px) {
  .fit-dash-tile strong { font-size: 18px; }
}

/* Work AI Pay Dashboard */
.pay-dash-nav { margin: 8px 0 12px; flex-wrap: wrap; }
.pay-dash-nav .fit-seg-btn { flex: 1 1 auto; font-size: 12px; padding: 6px 10px; }
.pay-dash-nav .fit-seg-btn.on,
.pay-dash-nav .fit-seg-btn[aria-pressed="true"] {
  border-color: #7c3aed; background: #5b21b6; color: #fff;
}
.pay-dash-empty {
  background: #0f172a; border: 1px dashed #334155; border-radius: 14px;
  padding: 16px 14px; margin: 8px 0 12px; color: #cbd5e1;
}
.pay-dash-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.pay-dash-tile {
  background: #111827; border: 1px solid #334155; border-radius: 12px;
  padding: 10px 12px; display: grid; gap: 2px;
}
.pay-dash-tile strong { font-size: 18px; color: #f8fafc; }
.pay-dash-chart-wrap {
  background: #0f172a; border: 1px solid #334155; border-radius: 12px;
  padding: 8px 6px 4px; margin-top: 6px;
}
.pay-dash-hrs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 12px;
}
.pay-dash-hrs label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: #cbd5e1; }
.pay-dash-hrs input, .pay-dash-hrs select,
.pay-dash-allow-row input, .pay-dash-allow-row select,
.pay-dash-period-pick select {
  width: 100%; border: 1px solid #334155; background: #0f172a; color: #e2e8f0;
  border-radius: 10px; padding: 8px 10px; font: inherit;
}
.pay-dash-allow-row {
  display: grid; grid-template-columns: 1.4fr 0.8fr 0.7fr 0.8fr auto; gap: 6px;
  margin-bottom: 8px; align-items: center;
}
.pay-dash-period { margin: 10px 0; background: #111827; border: 1px solid #334155; border-radius: 12px; padding: 8px 10px; }

/* Work AI — collapsed advice note */
.wa-info {
  margin: 0 0 10px;
  border: none;
  background: transparent;
  padding: 0;
}
.wa-info > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  padding: 2px 0;
}
.wa-info > summary::-webkit-details-marker { display: none; }
.wa-info > summary::before {
  content: '';
  width: 0; height: 0;
  border-left: 5px solid #94a3b8;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform .15s ease;
}
.wa-info[open] > summary::before { transform: rotate(90deg); }
.wa-info[open] > summary { color: #475569; margin-bottom: 6px; }
.wa-info .pro-disclaimer { margin-bottom: 0; }

/* Pay dashboard v2 — tight top chrome */
.pay-dash-topbar {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px;
  margin: 0 0 8px;
}
.pay-dash-oneliner {
  margin: 0; font-size: 12px; font-weight: 600; color: #7c2d12;
}
.pay-dash-info { margin: 0; }
.pay-dash-info > summary {
  cursor: pointer; list-style: none;
  font-size: 12px; font-weight: 700; color: #64748b;
}
.pay-dash-info > summary::-webkit-details-marker { display: none; }
.pay-dash-info[open] > summary { margin-bottom: 6px; }
.pay-dash-info .pro-disclaimer { margin: 0; }
.pay-dash-period-line { margin: 0 0 10px; font-size: 13px; color: #334155; }
.pay-dash-flags {
  background: #fff7ed; border: 1px solid #fdba74; color: #9a3412;
  border-radius: 10px; padding: 8px 10px; font-size: 13px; margin: 0 0 10px;
}
.pay-dash > .pro-h3:first-child { display: none; } /* safety if old title sneaks back */
.pay-dash { padding-top: 10px; }

.pay-dash-period summary { cursor: pointer; font-weight: 800; color: #e9d5ff; }
.pay-dash-period-body { margin-top: 10px; }
.pay-dash-period-pick { display: grid; gap: 4px; margin-bottom: 10px; font-weight: 700; font-size: 13px; }
@media (max-width: 390px) {
  .pay-dash-allow-row { grid-template-columns: 1fr 1fr; }
  .pay-dash-tile strong { font-size: 16px; }
}
/* Light-theme fallback when premium page uses light cards */
.pro-widget .pay-dash-empty { background: #f8fafc; border-color: #cbd5e1; color: #334155; }
.pro-widget .pay-dash-tile { background: #fff; border-color: #e2e8f0; }
.pro-widget .pay-dash-tile strong { color: #0f172a; }
.pro-widget .pay-dash-chart-wrap { background: #f8fafc; border-color: #e2e8f0; }
.pro-widget .pay-dash-hrs input, .pro-widget .pay-dash-hrs select,
.pro-widget .pay-dash-allow-row input, .pro-widget .pay-dash-allow-row select,
.pro-widget .pay-dash-period-pick select {
  background: #fff; color: #0f172a; border-color: #cbd5e1;
}
.pro-widget .pay-dash-period { background: #fff; border-color: #e2e8f0; }
.pro-widget .pay-dash-period summary { color: #5b21b6; }

/* Location mode chips (All / FIFO & remote / Local) */
.mode-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 4px; }
.mode-chip {
  border: 1px solid var(--line, #d0d5dd); background: #fff; color: var(--ink, #1a1a1a);
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.mode-chip.on, .mode-chip[aria-pressed="true"] {
  background: var(--brand, #0b3d2e); color: #fff; border-color: transparent;
}
.badge.mode-fifo { background: #e6f4ef; color: #0b3d2e; }
.badge.mode-remote { background: #eef2ff; color: #3730a3; }
.badge.mode-local { background: #f4f4f5; color: #3f3f46; }

/* Location + company filters */
.loc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 4px 0 8px; }
.loc-row .menu.grow { flex: 1 1 140px; min-width: 120px; }
.loc-row input[type="search"] {
  width: 100%; border: 1px solid var(--line, #d0d5dd); border-radius: 10px;
  padding: 8px 10px; font: inherit; background: #fff;
}
.company-menu { flex: 1 1 160px; display: flex; flex-direction: column; gap: 4px; }
.company-box { position: relative; }
.company-suggest {
  position: absolute; z-index: 30; left: 0; right: 0; top: 100%;
  background: #fff; border: 1px solid var(--line, #d0d5dd); border-radius: 10px;
  max-height: 220px; overflow: auto; box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.company-opt {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 8px 10px; font: inherit; cursor: pointer;
}
.company-opt:hover, .company-opt:focus { background: #f4f4f5; }
.company-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.company-tag { font-size: 12px; }

/* Collapsible profile folders (AI Pro baseline) */
.pro-folder { padding: 0; overflow: hidden; }
.pro-folder > .pro-folder-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  width: 100%; margin: 0; padding: 12px 14px; border: 0; background: transparent;
  text-align: left; cursor: pointer; color: inherit; font: inherit;
}
.pro-folder > .pro-folder-head:focus-visible { outline: 2px solid #f59e0b; outline-offset: -2px; }
.pro-folder-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pro-folder-title { font-weight: 800; font-size: 15px; line-height: 1.25; }
.pro-folder-summary {
  font-size: 12.5px; font-weight: 600; color: #64748b; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.pro-folder[data-open="true"] .pro-folder-summary { color: #94a3b8; }
.pro-folder-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-top: 2px; }
.pro-folder-pct, .pro-folder .fit-strength-pct { font-size: 13px; font-weight: 800; color: #0f766e; }
.pro-folder-chevron {
  display: inline-block; width: 1.1em; height: 1.1em; flex-shrink: 0;
  transition: transform .18s ease; color: #64748b;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center / contain no-repeat;
}
.pro-folder[data-open="true"] .pro-folder-chevron { transform: rotate(180deg); }
.pro-folder-body { padding: 0 14px 14px; }
.pro-folder[data-open="false"] > .pro-folder-body,
.pro-folder:not([data-open="true"]) > .pro-folder-body[hidden] { display: none !important; }
.pro-folder[data-open="true"] > .pro-folder-body { display: block; }
.fit-panel.pro-folder > .pro-folder-head { color: #f8fafc; }
.fit-panel.pro-folder .pro-folder-summary { color: #94a3b8; }
.fit-panel.pro-folder .pro-folder-chevron { color: #94a3b8; }
.fit-panel.pro-folder .fit-strength-pct { color: #5eead4; }


/* Pay dashboard v2 sketch layout */
.pay-dash-block { margin-bottom: 12px; }
.pay-dash-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pay-dash-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pay-dash-table th, .pay-dash-table td { padding: 6px 8px; text-align: right; border-bottom: 1px solid #e2e8f0; }
.pay-dash-table th[scope="row"], .pay-dash-table thead th:first-child { text-align: left; }
.pay-dash-table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .02em; color: #64748b; }
.pay-dash-table tr.under td, .pay-dash-table tr.under th { background: #fff7ed; }
.pay-dash-table tr.over td, .pay-dash-table tr.over th { background: #f0fdf4; }
.pay-dash-table tr.ok .pay-dash-flag { color: #15803d; font-weight: 700; }
.pay-dash-table tr.under .pay-dash-flag { color: #c2410c; font-weight: 700; }
.pay-dash-bottom { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .pay-dash-bottom { grid-template-columns: 1fr 1fr; } }
.pay-dash-super { margin: 0; }
.pay-dash-super > div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #e2e8f0; }
.pay-dash-super dt { font-weight: 700; }
.pay-dash-super dd { margin: 0; text-align: right; }
.pay-dash-setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pay-dash-setup-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.pay-dash-setup-grid input, #pdPayslipText { font: inherit; font-weight: 500; padding: 8px; border-radius: 8px; border: 1px solid #cbd5e1; }
#pdPayslipText { width: 100%; box-sizing: border-box; }


/* Job Scout / talent pool */
.tp-form .tp-check { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; font-weight: 600; color: #334155; }
.tp-form .tp-check input { margin-top: 3px; }
.tp-consent-note { margin-top: 8px; line-height: 1.4; }
.tp-consent-meta { color: #0f766e; font-weight: 600; }

/* Profile trades / tickets pickers (talent pool) */
.tp-picker { border: 1px solid var(--line, #e2e8f0); border-radius: 10px; padding: 0; margin: 10px 0; background: #fff; }
.tp-picker > summary.tp-picker-sum,
.tp-picker-sum { list-style: none; cursor: pointer; font-weight: 800; font-size: 13px; padding: 10px 12px; display: flex; align-items: center; gap: 6px; }
.tp-picker > summary::-webkit-details-marker { display: none; }
.tp-picker-sum::before { content: '▸'; color: #64748b; font-size: 12px; }
.tp-picker[open] > .tp-picker-sum::before { content: '▾'; }
.tp-picker-count { color: #0f766e; font-weight: 700; }
.tp-picker-body { padding: 0 10px 12px; }
.tp-search-wrap { display: block; margin: 0 0 8px; }
.tp-search { width: 100%; box-sizing: border-box; border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.tp-tick-grid { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 4px 0 8px; }
.tp-tick { display: flex; align-items: flex-start; gap: 6px; flex: 1 1 calc(50% - 8px); min-width: 140px; max-width: 100%; box-sizing: border-box; font-size: 12.5px; font-weight: 600; color: #334155; line-height: 1.25; padding: 6px 8px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.tp-tick input { margin-top: 2px; flex: none; }
.tp-tick span { overflow-wrap: anywhere; word-break: normal; }
.tp-ticket-group { border: 0; margin: 6px 0; padding: 0; }
.tp-ticket-group > summary { cursor: pointer; font-size: 12px; font-weight: 800; color: #0f172a; padding: 4px 0; }
.tp-other { display: block; margin: 8px 0; font-size: 12.5px; font-weight: 700; }
.tp-other input { width: 100%; box-sizing: border-box; margin-top: 4px; }
.tp-ambig { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin-left: 4px; border-radius: 50%; background: #f59e0b; color: #111; font-size: 10px; font-weight: 900; }
.tp-blue-note { margin: 6px 0 10px; padding: 8px; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; line-height: 1.35; }

/* Talent profile dropdowns / compact tickets / swing */
.tp-block { margin: 10px 0; }
.tp-block-title { margin: 0 0 6px; font-size: 13px; font-weight: 800; color: #0f172a; }
.tp-field { display: block; margin: 6px 0; font-size: 12.5px; font-weight: 700; color: #334155; }
.tp-select, .tp-form select.tp-select { width: 100%; box-sizing: border-box; margin-top: 4px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 10px; font-size: 14px; background: #fff; }
.tp-add-trade, .tp-remove-trade { margin: 6px 0; font-size: 12px; padding: 6px 10px; }
.tp-picker-compact > .tp-picker-body { padding-top: 4px; }
.tp-picker-compact .tp-tick { padding: 5px 7px; font-size: 12px; }
.tp-picker-compact .tp-ticket-group > summary { font-size: 11.5px; }
.tp-swing-grid .tp-tick { flex: 1 1 calc(33.33% - 8px); min-width: 96px; }
@media (max-width: 420px) {
  .tp-swing-grid .tp-tick { flex: 1 1 calc(50% - 8px); }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 420px) {
  .tp-tick { flex: 1 1 100%; min-width: 0; }
}

.tp-scout-ref { margin: 8px 0; }
.tp-pill { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #e2e8f0; color: #475569; }
.tp-pill.on { background: #ccfbf1; color: #0f766e; }
.tp-results { display: grid; gap: 10px; margin-top: 10px; }
.tp-job-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.tp-score { flex: none; min-width: 28px; height: 28px; border-radius: 50%; background: #0f766e; color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.tp-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tp-reason { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #ecfdf5; color: #065f46; border: 1px solid #99f6e4; }
.tp-wallet-link { font-weight: 700; }


/* My Resume Wizard hub */
.resume-hub-grid { display: grid; gap: 10px; margin: 10px 0 14px; }
.resume-hub-card {
  text-align: left; cursor: pointer; border: 1px solid var(--line); background: #fff;
  padding: 14px 14px 12px; border-radius: 14px; display: grid; gap: 4px;
  font: inherit; color: inherit; width: 100%;
}
.resume-hub-card:hover, .resume-hub-card:focus-visible { border-color: #0f766e; box-shadow: 0 0 0 2px rgba(15,118,110,.15); outline: none; }
.resume-hub-ico { font-size: 22px; line-height: 1; }
.resume-hub-title { font-weight: 800; font-size: 15.5px; }
.resume-tpl-grid { display: grid; gap: 10px; }
.resume-tpl-card { text-align: left; cursor: pointer; width: 100%; font: inherit; color: inherit; }
.resume-tpl-card:hover, .resume-tpl-card:focus-visible { border-color: #0f766e; outline: none; }
.resume-desk-preview {
  white-space: pre-wrap; background: #f8fafc; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; font-size: 13px; line-height: 1.45; max-height: 280px; overflow: auto;
}
.resume-hub-disclaimer { margin-top: 14px; }
.wa-info-bottom { margin-top: 14px; }
.pay-dash-bottombar { margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.pay-dash-bottombar .pay-dash-oneliner { margin: 0 0 6px; }

.tc-help { background: #334155; }
.tc-help .tile-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.35em; height: 1.35em; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.92); font-weight: 800; font-size: 0.95em; line-height: 1;
}

.help-faq { margin: 0; padding-left: 1.1rem; }
.help-faq li { margin: 0.55rem 0; line-height: 1.4; }
.help-faq a { font-weight: 700; }

.tc-airesume { background: #0f766e; }

/* Roster & Bills tabs */
.rb-tabs { display: flex; gap: 8px; margin: 0 0 12px; }
.rb-tab { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 12px; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.rb-tab.on { background: #b45309; color: #fff; border-color: #b45309; }
.rb-tab[data-rb="bills"].on { background: #4338ca; border-color: #4338ca; }
.jobs-ai-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.jobs-ai-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.jobs-ai-actions .btn-secondary { text-decoration: none; display: inline-flex; align-items: center; }


/* ---- Onboarding gate + billing + admin (2026-11-01) ---- */
html.onboard-open { overflow: hidden; }
.onboard-gate {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15, 23, 42, .55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 12px; overflow: auto;
}
.onboard-gate[hidden] { display: none !important; }
.onboard-inner {
  width: min(520px, 100%);
  margin: 12px auto 40px;
  max-height: none;
}
.onboard-form label { display: block; margin: 10px 0; font-weight: 600; font-size: .92rem; }
.onboard-form input, .onboard-form textarea, .onboard-form select {
  display: block; width: 100%; margin-top: 4px; font-weight: 400;
}
.onboard-form .req { color: #b91c1c; font-weight: 500; font-size: .78rem; }
.onboard-form .opt { color: #64748b; font-weight: 500; font-size: .78rem; }
.onboard-err { color: #b91c1c; margin: 8px 0; }
.billing-gate, .billing-mock { margin-top: 12px; }
.billing-mock { padding: 10px; border: 1px dashed #94a3b8; border-radius: 10px; }
.admin-table-wrap { overflow: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); font-weight: 600; }
.admin-export { white-space: pre-wrap; background: #0f172a; color: #e2e8f0; padding: 10px; border-radius: 10px; max-height: 240px; overflow: auto; }
.admin-filters label { font-size: .85rem; }

.tp-why { margin: 6px 0; color: #334155; }
.tp-missing-wrap { margin: 6px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tp-missing { background: #fff7ed; color: #9a3412; border: 1px solid #fdba74; border-radius: 999px; padding: 2px 8px; font-size: .75rem; }
.tp-alert-frame { width: 100%; min-height: 220px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; background: #fff; }
.tc-jobscout { background: linear-gradient(135deg, #1d4ed8 0%, #0f766e 100%); }

/* Payslip check full report — one-page A4 template (v3) */
.pro-pay-report-toolbar { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 10px; }
.pro-pay-report-header {
  background:#f1f5f9; border-radius:10px; padding:10px 12px; margin:0 0 12px;
  font-size:12.5px; color:#475569; line-height:1.45;
}
.pro-pay-report-header b { color:#0f172a; }
.pro-pay-report .pro-h4, .psr-h { margin:14px 0 6px; font-size:13px; }
.pro-pay-roster, .psr-roster { margin:10px 0; }
.pro-pay-sources, .psr-sources { margin:10px 0; }
.pro-pay-sources summary, .psr-sources summary { cursor:pointer; font-weight:600; }

.psr-brand { display:flex; align-items:center; gap:10px; margin:0 0 10px; }
.psr-logo { width:36px; height:36px; border-radius:10px; flex:0 0 auto; }
.psr-brand-name { font-weight:800; font-size:16px; line-height:1.15; }
.psr-brand-sub { font-size:12px; color:#64748b; font-weight:600; }
.psr-header {
  display:grid; grid-template-columns:1fr; gap:3px;
  background:#f8fafc; border:1px solid #e2e8f0; border-radius:10px;
  padding:10px 12px; margin:0 0 10px; font-size:12.5px; color:#334155; line-height:1.4;
}
.psr-header b { color:#0f172a; margin-right:6px; }
.psr-summary { margin:0 0 10px; font-size:12.5px; color:#475569; }
.psr-totals {
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px; margin:0 0 12px;
}
@media (min-width: 520px) {
  .psr-totals { grid-template-columns:repeat(3, minmax(0,1fr)); }
  .psr-header { grid-template-columns:1fr 1fr; gap:4px 12px; }
}
.psr-total {
  border-radius:10px; padding:8px 8px 7px; border:1px solid #e2e8f0;
  background:#f8fafc; text-align:center; min-width:0;
}
.psr-total-ok { background:#dcfce7; border-color:#86efac; }
.psr-total-bad { background:#fee2e2; border-color:#fca5a5; }
.psr-total-neutral { background:#f1f5f9; border-color:#cbd5e1; }
.psr-total-label {
  font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; color:#475569;
}
.psr-total-ok .psr-total-label { color:#166534; }
.psr-total-bad .psr-total-label { color:#991b1b; }
.psr-total-value { font-size:14px; font-weight:800; margin-top:2px; color:#0f172a; word-break:break-word; }
.psr-total-status { font-size:11px; font-weight:800; margin-top:3px; }
.psr-total-ok .psr-total-status { color:#15803d; }
.psr-total-bad .psr-total-status { color:#b91c1c; }
.psr-total-neutral .psr-total-status { color:#64748b; }
.psr-table { width:100%; border-collapse:collapse; font-size:12.5px; }
.psr-table th, .psr-table td { text-align:left; padding:8px 5px; border-bottom:1px solid var(--line, #e2e8f0); vertical-align:top; }
.psr-table th { font-size:10px; text-transform:uppercase; letter-spacing:.04em; color:#64748b; }
.psr-badge {
  display:inline-block; font-size:11px; font-weight:800; border-radius:5px; padding:2px 6px;
}
.psr-badge-ok { background:#bbf7d0; color:#166534; }
.psr-badge-bad { background:#fecaca; color:#991b1b; }
.psr-badge-neutral { background:#e2e8f0; color:#475569; }
.psr-muted, .psr-why { color:#64748b; font-size:11px; margin-top:2px; }
.psr-delta { font-size:11px; font-weight:700; }
.psr-disclaimer { margin-top:12px; }

@media print {
  @page { size: A4; margin: 8mm; }
  .pro-pay-report-toolbar, #proPayProgress, #proPayAiStatus, .pro-pay-upload-grid,
  #proPayDeleteDocs, .pro-pay-manual, #proPayHistory { display:none !important; }
  .pro-pay-report, .psr-page { break-inside: avoid; font-size: 9.5px; }
  .psr-totals { grid-template-columns: repeat(6, 1fr); gap: 4px; }
  .psr-header { grid-template-columns: 1fr 1fr; font-size: 9px; padding: 6px 8px; }
  .psr-total-value { font-size: 10px; }
  .psr-total-label, .psr-total-status { font-size: 7.5px; }
  .psr-table { font-size: 8.5px; }
  .psr-table th, .psr-table td { padding: 3px 4px; }
  .psr-brand-name { font-size: 13px; }
  .psr-logo { width: 32px; height: 32px; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* FiFo-Fit home tiles (full breakdown) */
.gym-group { margin:14px 0 8px; font-size:13px; text-transform:uppercase; letter-spacing:.06em; opacity:.7; }
.gym-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.gym-tile { position:relative; display:flex; flex-direction:column; align-items:center; text-align:center; gap:3px; padding:14px 6px 10px; min-height:108px; border-radius:16px; border:1px solid rgba(148,163,184,.35); background:var(--panel, rgba(255,255,255,.04)); color:inherit; cursor:pointer; font:inherit; }
.gym-tile:hover, .gym-tile:focus-visible { border-color:#ea580c; outline:none; }
.gym-tile-ico { font-size:30px; line-height:1; margin-top:6px; }
.gym-tile-lbl { font-weight:700; font-size:13px; line-height:1.2; margin-top:4px; }
.gym-tile-sub { font-size:10.5px; opacity:.65; line-height:1.2; }
.gym-badge { position:absolute; top:5px; right:5px; font-size:9px; font-weight:700; text-transform:uppercase; padding:2px 5px; border-radius:6px; background:rgba(124,58,237,.14); color:#7c3aed; }
.gym-backbar { display:none; align-items:center; gap:10px; margin:6px 0 12px; }
#fitShell[data-gym-view="home"] > :not(.gym-home) { display:none !important; }
#fitShell:not([data-gym-view="home"]) > .gym-home { display:none !important; }
#fitShell:not([data-gym-view="home"]) > .gym-backbar { display:flex !important; }
#fitShell .gym-off { display:none !important; }
#fitShell .gym-on:not(.gym-backbar):not(.fit-home-row2):not(.fit-home-head) { display:block !important; }
#fitShell .gym-on.fit-home-head { display:flex !important; }
#fitShell .gym-on.fit-home-row2 { display:grid !important; }
#fitShell[data-gym-view] { display:flex; flex-direction:column; } #fitShell[data-gym-view] > .gym-backbar { order:-1; }

/* Area tile homes (Wallet, Roster) — reuse .gym-* tile styles */
.area-off { display:none !important; }
.area-backbar { display:none; align-items:center; gap:10px; margin:6px 0 12px; }
[data-area-home]:not([data-area-view="home"]) > .area-home { display:none; }
[data-area-home]:not([data-area-view="home"]) > .area-backbar { display:flex; }
[data-area-home] > .rb-tabs, [data-area-home] > .wallet-seg { display:none !important; }

/* AI Pro hub tile home */
#page-premium #proWhatYouGet { display:none !important; }
#proTiles.pro-tile-home { display:block; }

/* Pay checker extras: tile home, Hours worked, Salary sacrifice, EA library (pay-extras.js) */
#proWaPayslipLive .pxt-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
#proWaPayslipLive > .area-home { margin-bottom:12px; }
.pxh-opt { font-weight:400; opacity:.75; }
.pxh-setup { display:grid; grid-template-columns:1fr 1fr; gap:8px; align-items:end; }
.pxh-hint { margin:0; }
.pxh-days { display:grid; gap:8px; }
.pxh-day { border:1px solid var(--line, #e2e8f0); border-radius:12px; padding:8px 10px; background:#fff; display:grid; gap:6px; }
.pxh-day-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.pxh-day-lbl { font-size:14px; }
.panel .pxh-hrs { display:flex; align-items:center; gap:6px; font-size:12px; }
.panel .pxh-hrs input { width:78px !important; padding:6px 8px; text-align:right; }
.pxh-day-row { display:grid; grid-template-columns:1fr 1fr; gap:6px; align-items:end; }
.pxh-day-row .pxh-tags { grid-column:1 / -1; }
.panel .pxh-day-row input[type=time] { padding:7px 6px; font-size:15px; }
.pxh-tags { position:relative; }
.pxh-tags > summary { list-style:none; cursor:pointer; min-height:40px; border:1px solid var(--line, #cbd5e1); border-radius:10px; background:#f8fafc; padding:4px 22px 4px 6px; display:flex; flex-wrap:wrap; gap:3px; align-items:center; font-size:12px; position:relative; }
.pxh-tags > summary::-webkit-details-marker { display:none; }
.pxh-caret { position:absolute; right:7px; top:50%; transform:translateY(-50%); opacity:.6; }
.pxh-tags[open] > summary { border-color:#7c3aed; box-shadow:0 0 0 2px rgba(124,58,237,.15); }
.pxh-tag-menu { position:absolute; left:0; z-index:20; margin-top:4px; width:230px; background:#fff; border:1px solid #cbd5e1; border-radius:12px; box-shadow:0 10px 25px rgba(15,23,42,.18); padding:8px; display:grid; gap:2px; }
.panel .pxh-tag-opt { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:600; color:var(--ink, #0f172a); padding:8px 6px; border-radius:8px; }
.panel .pxh-tag-opt input { width:20px !important; height:20px; flex:none; }
.pxh-tag-opt:hover { background:#f5f3ff; }
.pxh-tag-help { margin:4px 2px 0; font-size:11.5px; }
.pxh-tag-none { color:#475569; font-weight:600; padding:2px 4px; }
.pxh-chip { display:inline-block; padding:2px 6px; border-radius:999px; font-weight:700; font-size:11px; line-height:1.4; white-space:nowrap; }
.pxh-chip-night { background:#e0e7ff; color:#3730a3; }
.pxh-chip-ph { background:#fce7f3; color:#9d174d; }
.pxh-chip-lunch { background:#dcfce7; color:#166534; }
.pxh-totals { display:flex; flex-wrap:wrap; gap:6px 12px; font-size:13px; background:#f1f5f9; border-radius:10px; padding:8px 10px; }
.pxh-pay { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.pxh-pay label:last-child { grid-column:1 / -1; }
.pxh-result:empty { display:none; }
.pxh-res-head { font-weight:800; border-radius:10px; padding:10px 12px; font-size:14px; }
.pxh-res-head.pxh-bad { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }
.pxh-res-head.pxh-warn { background:#fffbeb; color:#92400e; border:1px solid #fde68a; }
.pxh-res-head.pxh-ok { background:#f0fdf4; color:#166534; border:1px solid #bbf7d0; }
.pxh-res-list { list-style:none; padding:0; margin:8px 0 0; display:grid; gap:6px; }
.pxh-res { border-radius:10px; padding:8px 10px; border-left:5px solid #94a3b8; background:#f8fafc; font-size:13px; }
.pxh-res.pxh-bad { border-left-color:#dc2626; background:#fef2f2; }
.pxh-res.pxh-warn { border-left-color:#d97706; background:#fffbeb; }
.pxh-res.pxh-ok { border-left-color:#16a34a; background:#f0fdf4; }
.pxh-res-top { display:flex; justify-content:space-between; gap:8px; }
.pxh-res-nums { font-variant-numeric:tabular-nums; white-space:nowrap; font-weight:700; }
.pxh-res-msg { margin-top:2px; }
.pxh-notes { padding-left:18px; margin:8px 0 0; }
.pxs-form { display:grid; gap:8px; }
.pxs-more summary { cursor:pointer; font-size:13px; font-weight:700; color:#475569; margin:2px 0 6px; }
.pxs-big { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:10px 0 8px; }
.pxs-big > div { background:#f1f5f9; border-radius:12px; padding:8px; text-align:center; display:grid; gap:1px; }
.pxs-big span { font-size:11px; color:#475569; font-weight:700; }
.pxs-big b { font-size:16px; font-variant-numeric:tabular-nums; }
.pxs-big small { font-size:10.5px; color:#64748b; }
.pxs-big .pxs-good { background:#dcfce7; }
.pxs-table td:not(:first-child), .pxs-table th:not(:first-child) { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.pxs-table td { padding:5px 4px; border-bottom:1px solid #e2e8f0; }
.pxs-warn { border-radius:10px; padding:8px 10px; font-size:13px; margin-top:6px; }
.pxs-warn.bad { background:#fef2f2; border:1px solid #fecaca; color:#7f1d1d; }
.pxs-warn.ok { background:#f0fdf4; border:1px solid #bbf7d0; color:#14532d; }
.pxs-warn.warn { background:#fffbeb; border:1px solid #fde68a; color:#78350f; }
.pxs-foot { font-size:11px; line-height:1.45; border-top:1px dashed #cbd5e1; padding-top:8px; }
.pxs-foot a { color:inherit; }
.pxl-list { display:grid; gap:8px; }
.pxl-item { display:flex; align-items:center; gap:10px; width:100%; text-align:left; border:1px solid var(--line, #e2e8f0); border-radius:12px; background:#fff; padding:10px; font:inherit; color:inherit; cursor:pointer; }
.pxl-item:hover { border-color:#7c3aed; }
.pxl-ico { font-size:26px; }
.pxl-txt { display:grid; gap:2px; flex:1; min-width:0; font-size:13px; }
.pxl-txt small { color:#64748b; }
.pxl-go { font-size:22px; opacity:.5; }
.pxl-h5 { margin:10px 0 4px; font-size:13px; }
.pxl-detail .pro-wa-list { font-size:13px; }

/* Deal Finder tile home (deal-home.js) — reuses FiFo-Fit tile look */
.pro-widget[data-widget="dealfinder"] .pro-df-tabs { display:none !important; }
.deal-pane { display:none; }
.deal-home-note { margin:4px 0 0; }
.pro-widget[data-deal-view="home"] .pro-df-pane,
.pro-widget[data-deal-view="home"] .deal-backbar { display:none !important; }
.pro-widget[data-deal-view]:not([data-deal-view="home"]) .deal-home { display:none !important; }
.pro-widget[data-deal-view]:not([data-deal-view="home"]) .deal-backbar { display:flex !important; }
.pro-widget[data-deal-view]:not([data-deal-view="holidays"]) .pro-df-pane[data-df-pane="holidays"] { display:none !important; }
.pro-widget[data-deal-view]:not([data-deal-view="appliances"]) .pro-df-pane[data-df-pane="shopping"] { display:none !important; }
.pro-widget[data-deal-view="dental"] .deal-pane[data-deal-pane="dental"],
.pro-widget[data-deal-view="appliances"] .deal-pane[data-deal-pane="appliances"],
.pro-widget[data-deal-view="cars-new"] .deal-pane[data-deal-pane="cars-new"],
.pro-widget[data-deal-view="cars-used"] .deal-pane[data-deal-pane="cars-used"],
.pro-widget[data-deal-view="holidays"] .deal-pane[data-deal-pane="holidays"],
.pro-widget[data-deal-view="festivals"] .deal-pane[data-deal-pane="festivals"],
.pro-widget[data-deal-view="snow"] .deal-pane[data-deal-pane="snow"],
.pro-widget[data-deal-view="adventure"] .deal-pane[data-deal-pane="adventure"],
.pro-widget[data-deal-view="parking"] .deal-pane[data-deal-pane="parking"],
.pro-widget[data-deal-view="fishing"] .deal-pane[data-deal-pane="fishing"] { display:block; }
.deal-home-group { margin: 16px 0 0; }
.deal-home-group-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink, #0f172a);
}
.deal-home-group-note { margin: 0 0 8px; }

.deal-pane .pro-hol-grid { margin-bottom:10px; }
.deal-health-note { margin:10px 0; }
.pro-hol-pill.example {
  background: #fef3c7;
  color: #92400e;
}
.deal-ex-card .pro-hol-price strong { letter-spacing: .04em; }
.deal-airport-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.deal-airport-pick select {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  background: #fff;
  color: var(--ink);
}

/* My agreements (personal, on this device only) */
.pxm-privacy { margin:10px 0; padding:10px 12px; border:1px solid #86efac; background:#f0fdf4; border-radius:12px; font-size:.86rem; line-height:1.45; color:#14532d; }
.pxm-privacy a { color:#166534; text-decoration:underline; }
.pxm-list { display:flex; flex-direction:column; gap:8px; margin:10px 0; }
.pxm-item { border:1px solid var(--line, #e2e8f0); border-radius:12px; background:#fff; padding:10px; }
.pxm-item-top { display:flex; gap:10px; align-items:flex-start; }
.pxm-item-top .pxl-txt { display:flex; flex-direction:column; gap:2px; min-width:0; }
.pxm-item-top .pxl-txt span, .pxm-item-top .pxl-txt small { color:#64748b; font-size:.82rem; overflow-wrap:anywhere; }
.pxm-item-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.pxm-item-actions button { font-size:.82rem; padding:6px 10px; }
.pxm-danger { color:#b91c1c !important; border-color:#fecaca !important; }
.pxm-edit { margin-top:12px; border-top:1px dashed #cbd5e1; padding-top:10px; }
.pxm-form label { display:flex; flex-direction:column; gap:4px; font-size:.85rem; margin:6px 0; }
.pxm-form input, .pxm-form select, .pxm-form textarea { font:inherit; padding:8px; border:1px solid #cbd5e1; border-radius:8px; width:100%; box-sizing:border-box; }
.pxm-fs { border:1px solid #e2e8f0; border-radius:12px; padding:8px 10px; margin:10px 0; min-width:0; }
.pxm-fs legend { font-weight:600; font-size:.9rem; padding:0 4px; }
.pxm-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 10px; }
.pxm-form label.pxm-inline { flex-direction:row; align-items:center; gap:6px; }
.pxm-form label.pxm-inline input { width:auto; }
.pxm-chk { grid-column:1 / -1; }
.pxm-allow { display:grid; grid-template-columns:2fr 1fr 1.1fr; gap:6px; margin:4px 0; }
.pxh-agr { margin:10px 0; padding:8px 10px; border:1px solid #e2e8f0; border-radius:12px; background:#f8fafc; }
.pxh-agr label { display:flex; flex-direction:column; gap:4px; font-size:.85rem; }
.pxh-agr select { font:inherit; padding:8px; border:1px solid #cbd5e1; border-radius:8px; }
.pxl-src { background:#eff6ff; border:1px solid #bfdbfe; border-radius:10px; padding:8px 10px; line-height:1.45; }
.pxl-fwc { display:inline-block; font-size:.7rem; font-weight:600; color:#1d4ed8; background:#dbeafe; border-radius:999px; padding:1px 7px; margin-left:4px; vertical-align:middle; }

/* ===== FiFo-Fit graphs (ffg) — sample data until real data exists ===== */
/* FiFo-Fit progress graphs — drop into styles.css or link from the gym widget.
   Uses the app tokens. No paid libraries. */
:root {
  --bg: #f4f6fa; --card: #fff; --ink: #0f172a; --muted: #64748b; --line: #e2e8f0;
  --brand: #f97316; --brand-ink: #c2410c; --navy: #0f172a; --blue: #2563eb; --green: #15803d;
  --radius: 14px; --shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 14px rgba(15,23,42,.06);
  --ffg-run: #f97316; --ffg-bike: #2563eb; --ffg-row: #0d9488;
  --ffg-on: #fed7aa; --ffg-on-ink: #7c2d12; --ffg-off: #bbf7d0; --ffg-off-ink: #14532d;
  --ffg-z1: #86efac; --ffg-z2: #38bdf8; --ffg-z3: #fbbf24; --ffg-z4: #f97316; --ffg-z5: #e11d48;
}

.ffg-page { padding: 10px 0 28px; }
.ffg-disclaimer { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 0 0 12px; }
.ffg-disclaimer b { font-weight: 800; }

.gym-group { margin: 14px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.gym-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gym-tile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 14px 6px 10px; min-height: 108px; border-radius: 16px; border: 1px solid rgba(148,163,184,.35); background: var(--card); color: inherit; cursor: pointer; font: inherit; }
.gym-tile:hover, .gym-tile:focus-visible { border-color: #ea580c; outline: none; }
.gym-tile-ico { font-size: 30px; line-height: 1; margin-top: 6px; }
.gym-tile-lbl { font-weight: 700; font-size: 13px; line-height: 1.2; margin-top: 4px; }
.gym-tile-sub { font-size: 10.5px; opacity: .65; line-height: 1.2; }
.gym-badge { position: absolute; top: 5px; right: 5px; font-size: 9px; font-weight: 700; text-transform: uppercase; padding: 2px 5px; border-radius: 6px; background: rgba(124,58,237,.14); color: #7c3aed; }
.gym-backbar, .ffg-backbar { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.gym-backbar strong, .ffg-backbar strong { font-size: 16px; }

.demo-tag { display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 6px; border-radius: 5px; background: #fef3c7; color: #92400e; vertical-align: middle; }
.pro-badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: #f3e8ff; color: #6b21a8; vertical-align: middle; }
.pro-w-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; }
.pro-w-head h2 { margin: 0; font-size: 20px; flex: 1 1 auto; }

/* Graph card */
.ffg-card { background: var(--card); border: 1px solid #edf0f5; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 12px 14px; margin: 0 0 12px; }
.ffg-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.ffg-card-head h3 { margin: 0; font-size: 16px; letter-spacing: -.01em; color: var(--ink, #0f172a); }
.ffg-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; background: #f1f5f9; border: 1px solid var(--line); border-radius: 12px; padding: 3px; margin: 0 0 8px; }
.ffg-seg button { appearance: none; border: 0; background: transparent; border-radius: 9px; font: inherit; font-weight: 700; font-size: 11.5px; line-height: 1.15; padding: 8px 2px; color: #475569; cursor: pointer; min-height: 36px; }
.ffg-seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15,23,42,.12); }
.ffg-seg button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.ffg-range { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ffg-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; }
.ffg-kpi { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px 7px; text-align: center; }
.ffg-kpi .k { display: block; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ffg-kpi .v { display: block; margin-top: 2px; font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ffg-kpi .u { font-size: 10px; font-weight: 700; color: var(--muted); }
.ffg-block { margin: 0 0 12px; }
.ffg-block:last-child { margin-bottom: 0; }
.ffg-block h4 { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ffg-svg { display: block; width: 100%; height: auto; }
.ffg-legend { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 6px 0 0; font-size: 11.5px; color: #334155; font-weight: 600; }
.ffg-swatch { display: inline-block; width: 8px; height: 8px; border-radius: 999px; margin-right: 5px; vertical-align: middle; }
.ffg-note { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.ffg-swing-key { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 0; font-size: 11px; font-weight: 700; color: #475569; }
.ffg-swing-key span { display: inline-flex; align-items: center; gap: 5px; }
.ffg-swing-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ffg-swing-key .on { background: var(--ffg-on); border: 1px solid #fdba74; }
.ffg-swing-key .off { background: var(--ffg-off); border: 1px solid #86efac; }

/* Donut + ring row */
.ffg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
.ffg-split.stack { grid-template-columns: 1fr; }
.ffg-center-label { text-anchor: middle; }
.ffg-ring-wrap { position: relative; }
.ffg-badges { display: grid; gap: 6px; margin-top: 2px; }
.ffg-pb { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 9px; background: #fff; }
.ffg-pb.new { background: #fff7ed; border-color: #fdba74; }
.ffg-pb .ico { font-size: 18px; line-height: 1; }
.ffg-pb .who { font-weight: 800; font-size: 13px; }
.ffg-pb .meta { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ffg-pb .tag { margin-left: auto; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.ffg-pb.new .tag { background: #ffedd5; color: var(--brand-ink); }

/* Milestone / highway */
.ffg-trip { margin: 0 0 10px; padding: 10px; background: #0f172a; border-radius: 12px; color: #e2e8f0; }
.ffg-trip h4 { color: #93c5fd; margin-bottom: 8px; }
.ffg-trip .ffg-note { color: #94a3b8; }
.ffg-trip-row { margin: 0 0 8px; }
.ffg-trip-lab { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: #cbd5e1; margin: 0 0 3px; }
.ffg-trip-lab .ok { color: #86efac; }
.ffg-track { position: relative; height: 12px; border-radius: 999px; background: #1e293b; overflow: hidden; }
.ffg-track > b { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f97316, #fdba74); }
.ffg-track.done > b { background: linear-gradient(90deg, #15803d, #86efac); width: 100% !important; }
.ffg-ends { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; color: #94a3b8; margin-top: 3px; }
.ffg-you { margin: 8px 0 0; font-size: 12.5px; font-weight: 700; color: #fdba74; }

/* Sleep stages */
.ffg-stages { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: #1e293b; }
.ffg-stages span { display: block; height: 100%; }
.ffg-moon { background: #0f172a; border-radius: 12px; padding: 10px; color: #e2e8f0; }

.ffg-hidden { display: none !important; }
/* FiFo-Fit graphs: keep card text dark inside the dark gym widget */
.ffg-card { color: #0f172a; }
.ffg-card .ffg-card-head h3, .ffg-card .ffg-pb .who { color: #0f172a; }

/* ===== AI Jobs profile sheet: trade, qualifications, years (device only) ===== */
.tp-years-input { max-width: 9rem; font-variant-numeric: tabular-nums; }
.tp-preview { display: grid; gap: 10px; margin: 10px 0 4px; }
.tp-preview-see, .tp-preview-hide { border: 1px solid var(--line, #e2e8f0); border-radius: 12px; padding: 10px 12px; background: #fff; color: #0f172a; }
.tp-preview-hide { background: #f8fafc; }
.tp-preview-hide ul { margin: 4px 0 0; padding-left: 1.1rem; }
.tp-kicker { margin: 0 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.tp-one-liner { margin: 0 0 4px; font-weight: 800; font-size: 15px; color: #0f172a; }
.tp-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tp-pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }

/* Simple Payroll Checker input */
.pxc-head { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin:0 0 8px; }
.pxc-title { margin:0; font-size:1.25rem; }
.pxc-status { margin:0 0 8px; }
.pxc-upload, .pxc-current, .pxc-agr-pickers {
  border:1px solid var(--line, #e2e8f0);
  border-radius:14px;
  padding:12px 14px;
  background:#fff;
}
.pxc-upload { margin:0 0 10px; }
.pxc-file { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; clip:rect(0,0,0,0); }
.pxc-file-label {
  display:block; border:2px dashed #cbd5e1; border-radius:12px; background:#f8fafc;
  padding:18px 12px; text-align:center; font-weight:700; color:#334155; cursor:pointer; margin:6px 0 10px;
}
.pxc-file-label:hover, .pxc-upload:focus-within .pxc-file-label { border-color:#f97316; background:#fff7ed; }
.pxc-agr-row { display:grid; gap:10px; margin:0 0 12px; }
@media (min-width: 640px) {
  .pxc-agr-row { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); align-items:stretch; }
}
.pxc-current { background:#0f172a; color:#e2e8f0; border-color:#0f172a; }
.pxc-current .pro-h4 { color:#fff; margin-bottom:6px; }
.pxc-current-txt { margin:0; font-size:13px; line-height:1.4; color:#cbd5e1; }
.pxc-current-txt b { color:#fff; }
.pxc-agr-pickers { display:grid; gap:8px; align-content:center; }
.pxc-agr-pickers label { display:grid; gap:4px; font-size:12px; font-weight:700; color:#475569; margin:0; }
.pxc-agr-pickers .pro-agr-select { margin:0; }
.pxc-cycle { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; margin:0 0 8px; }
.pxc-cycle-lbl { font-weight:800; font-size:14px; }
.pxc-cycle-seg { display:flex; gap:6px; background:#f1f5f9; padding:4px; border-radius:999px; }
.pxc-cycle-btn {
  border:0; background:transparent; font:inherit; font-weight:800; font-size:13px;
  padding:7px 12px; border-radius:999px; cursor:pointer; color:#334155;
}
.pxc-cycle-btn.on { background:#f97316; color:#fff; }
.pxc-saved-link { margin:0 0 12px; font-weight:700; }
.pxc-saved-link a { color:#0f172a; }
.pxc-days { margin:0 0 4px; }
.pxc-weeks { display:flex; gap:6px; margin:0 0 8px; flex-wrap:wrap; }
.pxc-week-btn {
  border:1px solid var(--line, #e2e8f0); background:#fff; border-radius:999px;
  font:inherit; font-weight:700; font-size:12px; padding:6px 12px; cursor:pointer;
}
.pxc-week-btn.on { background:#0f172a; color:#fff; border-color:#0f172a; }
.pxc-chip-row { display:grid; grid-template-columns:repeat(7, minmax(0,1fr)); gap:4px; }
.pxc-chip {
  border:1px solid #cbd5e1; background:#fff; border-radius:12px; padding:8px 2px 6px;
  display:grid; gap:1px; justify-items:center; cursor:pointer; font:inherit; min-height:58px;
}
.pxc-chip-dow { font-size:11px; font-weight:800; letter-spacing:.02em; color:#0f172a; }
.pxc-chip-date { font-size:10px; color:#64748b; font-weight:600; }
.pxc-chip-dots { display:flex; gap:2px; min-height:7px; }
.pxc-dot { width:6px; height:6px; border-radius:50%; display:inline-block; }
.pxc-dot.lunch { background:#16a34a; }
.pxc-dot.night { background:#4338ca; }
.pxc-dot.ph { background:#db2777; }
.pxc-chip.open, .pxc-chip[aria-pressed="true"].open { border-color:#f97316; box-shadow:0 0 0 2px rgba(249,115,22,.25); background:#fff7ed; }
.pxc-chip.flagged { border-color:#0f172a; }
.pxc-ticks {
  margin-top:8px; border:1px solid #fed7aa; background:#fff7ed; border-radius:12px;
  padding:10px 12px; display:grid; gap:6px;
}
.pxc-ticks-lbl { margin:0; font-weight:800; font-size:13px; }
.pxc-hours { display:flex; align-items:center; justify-content:space-between; gap:10px; font-weight:800; font-size:14px; margin:2px 0 6px; }
.pxc-hours input { width:92px; height:40px; text-align:center; font-size:16px; font-weight:800; border:1px solid #cbd5e1; border-radius:10px; background:#fff; }
.pxc-ticks-hint { margin:4px 0 0; }
.pxc-chip-hrs { font-size:10px; font-weight:800; color:#0f172a; line-height:1; }
.pxc-tick { display:flex; align-items:center; gap:8px; font-weight:700; font-size:14px; }
.pxc-tick input { width:20px; height:20px; flex:none; }
.pxc-days-hint { margin:8px 0 12px; }
.pxc-more { margin:4px 0 12px; border:1px solid var(--line, #e2e8f0); border-radius:12px; padding:8px 12px; background:#f8fafc; }
.pxc-more > summary { cursor:pointer; font-weight:800; }
.pxc-more[open] > summary { margin-bottom:10px; }
.pxc-hours-note { margin:10px 0; }
@media print {
  .pxc-head, .pxc-upload, .pxc-agr-row, .pxc-cycle, .pxc-saved-link, .pxc-days, .pxc-days-hint, .pxc-more, .pxc-status { display:none !important; }
}

.pxc-agr-pickers .pro-agr-search, .pxc-agr-pickers .pro-agr-select { width:100%; margin:0; }
.pro-agr-search {
  display:block; width:100%; font:inherit; font-size:15px; font-weight:400;
  height:40px; border:1px solid var(--line, #e2e8f0); border-radius:10px;
  background:#f8fafc; padding:0 10px; color:var(--ink, #0f172a);
}


/* ===== Pay Checker home ===== */
.pxc-home { margin: 0 0 16px; }
.pxc-lib-bar {
  display: block; width: 100%; box-sizing: border-box;
  min-height: 56px; padding: 14px 16px; margin: 0 0 14px;
  border: 0; border-radius: 14px; background: #0f172a; color: #fff;
  font: inherit; font-size: 18px; font-weight: 800; letter-spacing: .02em;
  text-align: center; cursor: pointer;
}
.pxc-lib-bar:focus-visible, .pxc-home-tile:focus-visible { outline: 3px solid #f97316; outline-offset: 2px; }
.pxc-home-tiles { display: grid; gap: 12px; }
.pxc-home-tile {
  display: flex; align-items: center; justify-content: center;
  width: 100%; box-sizing: border-box; min-height: 72px;
  padding: 16px 14px; border: 2px solid #0f172a; border-radius: 14px;
  background: #fff; color: #0f172a; font: inherit; font-size: 17px; font-weight: 800;
  text-align: center; cursor: pointer; line-height: 1.25;
}
.pxc-home-tile:active { background: #fff7ed; }
.pxc-view-back { margin: 0 0 12px; }
.pxc-dash-block { margin: 16px 0; }
@media print {
  .pxc-home, .pxc-view-back, .pxc-lib-bar { display: none !important; }
}
/* ===== Job Scout portal ===== */
.js-home { margin: 0 0 12px; }
.js-hint { margin: 8px 0 12px; padding: 8px 10px; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; }
.js-backbar { margin: 0 0 12px; }
.js-profile .js-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.js-chip { border: 1px solid #99f6e4; background: #ccfbf1; color: #0f766e; font-weight: 700; font-size: 12px; border-radius: 999px; padding: 4px 10px; }
.js-card-main { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.js-card .pro-h3 { font-size: 16px; }
.js-checklist { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.js-check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.js-check.on { border-color: #99f6e4; background: #f0fdfa; }
.js-check-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #e2e8f0; color: #334155; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.js-check.on .js-check-mark { background: #0f766e; color: #fff; }
.js-check p { margin: 2px 0 0; }
.js-cover-edit, .js-cover-pre, .js-cover-preview pre { width: 100%; box-sizing: border-box; white-space: pre-wrap; font-family: inherit; font-size: 13px; line-height: 1.45; border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px; background: #fff; }
.js-cover-preview { margin: 8px 0 12px; }
.js-consent { margin: 14px 0; }
.js-tab { appearance: none; border: 1px solid #cbd5e1; background: #fff; font-weight: 700; padding: 8px 12px; border-radius: 8px; margin-right: 6px; }
.js-tab.on { background: #0f766e; color: #fff; border-color: #0f766e; }

/* My Resume Wizard */
.rw-tpl-grid { display: grid; gap: 10px; margin-top: 8px; }
.rw-tpl-sub { margin: 0; font-weight: 600; color: #0f766e; }
.rw-form label { display: block; margin: 0 0 10px; }
.rw-actions { flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rw-preview { background: #e2e8f0; padding: 12px; border-radius: 12px; margin: 12px 0; overflow: auto; }
.rw-paper { background: #fff; color: #111; padding: 22px 24px; max-width: 720px; margin: 0 auto; box-shadow: 0 1px 4px rgba(15,23,42,.18); font: 11pt/1.45 "Calibri", "Segoe UI", Arial, sans-serif; }
.rw-paper .rw-name, .print-resume.rw-print .rw-name { font: 700 22pt/1.15 Arial, sans-serif; margin: 0; }
.rw-paper .rw-role, .print-resume.rw-print .rw-role { font: 600 12pt Arial, sans-serif; margin: 4px 0 2px; }
.rw-paper .rw-contact, .print-resume.rw-print .rw-contact { font: 10pt Arial, sans-serif; color: #333; margin: 0 0 12px; }
.rw-paper h2, .print-resume.rw-print h2 { font: 700 11pt Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid #999; padding-bottom: 2px; margin: 14px 0 6px; }
.rw-paper p, .print-resume.rw-print p { margin: 0 0 6px; }
.rw-paper .rw-bullet { margin-left: 0; }
#rwEditNote { background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 10px; padding: 8px 10px; color: #134e4a; }
@media print {
  .print-resume.rw-print ul { columns: 1; }
  .print-resume.rw-print .rw-paper { box-shadow: none; padding: 0; }
}

.rw-sketch { margin-top: 4px; }
.rw-import-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 16px; }
.rw-import-btn { margin: 0; }
.rw-filename { font-weight: 700; color: #0f766e; word-break: break-all; }
.rw-tpl-list { display: grid; gap: 8px; margin: 0 0 16px; }
.rw-tpl-item { display: flex; align-items: flex-start; gap: 10px; background: #fff; border: 1px solid var(--line, #dbe3ee); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.rw-tpl-item:has(input:checked) { border-color: #0f766e; box-shadow: 0 0 0 2px rgba(15,118,110,.16); }
.rw-tpl-item input { margin-top: 3px; width: 20px; height: 20px; flex: none; }
.rw-tpl-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rw-tpl-name { font-weight: 700; }
.rw-makeover-row { margin: 4px 0 14px; }
.rw-makeover-row .btn-primary { min-height: 44px; }
.rw-status-row { display: flex; flex-wrap: wrap; gap: 10px 18px; font-weight: 700; margin: 0 0 14px; }
.rw-tick { color: #047857; }
.rw-preview-wrap { margin-top: 16px; }
.rw-edit-wrap { margin-top: 16px; }
.rw-downloads { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rw-delete { color: #b91c1c; }


.rw-split { border: 0; border-top: 1px solid var(--line, #dbe3ee); margin: 28px 0 20px; }
.rw-cl-block { margin-top: 4px; }
.rw-cover-paper p { margin: 0 0 10px; line-height: 1.45; }

/* ---------- Administrator page (#/admin) ---------- */
.adm-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 10px 0 4px; position: sticky; top: 0; z-index: 3; background: var(--bg, #fff); padding: 6px 0; }
.adm-tabs button { font: inherit; font-size: .78rem; padding: 9px 4px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: inherit; line-height: 1.2; }
.adm-tabs button.on { background: #0f172a; color: #fff; border-color: #0f172a; font-weight: 600; }
.adm-card h2 { margin: 0 0 8px; font-size: 1.1rem; } .adm-card h3 { margin: 0 0 8px; font-size: 1rem; }
.adm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 6px 0 8px; }
.adm-stats div { background: #f1f5f9; border-radius: 10px; padding: 8px 4px; text-align: center; }
.adm-stats b { display: block; font-size: 1.25rem; } .adm-stats span { font-size: .72rem; color: var(--muted); }
.adm-pill { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: #e2e8f0; color: #0f172a; margin-right: 4px; vertical-align: middle; }
.adm-pill.ok { background: #dcfce7; color: #166534; } .adm-pill.warn { background: #fef3c7; color: #92400e; }
.adm-pill.r-admin, .adm-pill.r-owner { background: #0f172a; color: #fff; } .adm-pill.r-pro { background: #ede9fe; color: #5b21b6; } .adm-pill.r-test { background: #fee2e2; color: #991b1b; }
.adm-example { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; background: #fde68a; color: #78350f; border: 1px dashed #b45309; vertical-align: middle; }
.adm-user-top { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; } .adm-user-mail { font-size: .85rem; color: var(--muted); margin: 4px 0; }
.adm-dl { display: grid; grid-template-columns: 96px 1fr; gap: 3px 8px; margin: 6px 0; font-size: .84rem; } .adm-dl dt { color: var(--muted); } .adm-dl dd { margin: 0; overflow-wrap: anywhere; }
.adm-role select, .adm-limits input { font: inherit; padding: 8px; border-radius: 8px; border: 1px solid var(--line); width: 100%; box-sizing: border-box; }
.adm-role { display: block; font-size: .84rem; margin-top: 6px; }
.adm-limits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; } .adm-limits label { font-size: .8rem; }
.adm-feat.off { opacity: .6; } .adm-feat-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.adm-switch { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; white-space: nowrap; } .adm-switch input { width: 22px; height: 22px; }
.adm-steps, .adm-sugg { padding-left: 20px; margin: 6px 0; font-size: .88rem; } .adm-steps li, .adm-sugg li { margin: 5px 0; }
.adm-agr-row { border-top: 1px solid var(--line); padding: 8px 0; font-size: .88rem; }
.adm-demo { border-top: 1px solid var(--line); padding: 8px 0; } .adm-demo summary { cursor: pointer; font-size: .92rem; } .adm-demo h4 { margin: 8px 0 4px; font-size: .8rem; color: var(--muted); }
.adm-bar { display: grid; grid-template-columns: 120px 1fr 36px; gap: 6px; align-items: center; font-size: .78rem; margin: 2px 0; }
.adm-bar-t { background: #f1f5f9; border-radius: 4px; height: 10px; overflow: hidden; } .adm-bar-t i { display: block; height: 100%; background: #0ea5e9; }
.adm-bar-n { text-align: right; } .adm-bad { color: #b91c1c; }
.route-admin .adm-card .btn-primary, .route-admin .adm-card .btn-secondary { margin-top: 6px; }
.adm-search { display: flex; gap: 6px; margin: 6px 0; } .adm-search input { flex: 1; font: inherit; padding: 8px; border-radius: 8px; border: 1px solid var(--line); min-width: 0; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .adm-danger { background: #fee2e2 !important; color: #991b1b !important; border-color: #fecaca !important; }
.adm-user.blocked { border-left: 4px solid #b91c1c; } .adm-pill.r-blocked { background: #b91c1c; color: #fff; }
.adm-profile { margin-top: 8px; padding: 8px; background: #f8fafc; border-radius: 10px; } .adm-profile h4 { margin: 0 0 6px; font-size: .88rem; }
.adm-table-wrap { overflow-x: auto; margin-top: 8px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.adm-table th, .adm-table td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--line, #e2e8f0); }
.adm-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #64748b); }

.privacy-draft-legal { border: 2px dashed #b45309; }

.rc-email-addr { display: flex; gap: 8px; align-items: center; }
.rc-email-addr input { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
.rc-email-addr .btn-small { flex: none; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.rc-gmail { margin-top: 8px; }
.rc-gmail summary { cursor: pointer; font-weight: 700; }

.cal-agenda { margin-top: 10px; padding: 12px; border-radius: 14px; background: #f8fafc; border: 1px solid var(--line, #e2e8f0); }
.cal-agenda-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.cal-agenda-head strong { font-size: 16px; }
.cal-agenda-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cal-agenda-list li { font-size: 15px; font-weight: 600; line-height: 1.35; }
.cal-agenda-list .muted { font-weight: 500; }
.speak-btn { min-height: 44px; min-width: 44px; padding: 0 12px; font-weight: 700; }
.speak-btn.speaking, #dayStopBtn:not([hidden]) { background: #0f172a; color: #fff; border-color: #0f172a; }
.sheet-speak { display: flex; gap: 6px; align-items: center; justify-self: end; }
.sheet-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }

/* ===== t502u/t503u home: FiFo-Fit emoji on white rounded cards, frosted dock (default).
   Reminders stay in the DOM but are hidden. #proFreeTiles / AI Pro tiles are unchanged.
   Default is data-icons=cards and data-dock=bar (no query param needed).
   Harmless optional overrides: ?icons=emoji (icon+label only), ?dock=plain. */
#page-home.home-icons-mock .home-rem-chip,
#page-home.home-icons-mock #homeReminders,
#page-home.home-icons-mock .tile-badge {
  display: none !important;
}
#page-home.home-icons-mock {
  padding-bottom: calc(108px + env(safe-area-inset-bottom));
}
#page-home.home-icons-mock #homeTiles.home-app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 8px;
  margin: 8px 0 20px;
  padding: 8px 2px 0;
}
#page-home.home-icons-mock #homeTiles .tile,
#page-home.home-icons-mock .home-dock .tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 6px;
  height: auto !important;
  min-width: 0;
  color: var(--ink, #0f172a);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  font: inherit;
}
#page-home.home-icons-mock #homeTiles .tile:active,
#page-home.home-icons-mock .home-dock .tile:active {
  transform: scale(.96);
  filter: none;
}
#page-home.home-icons-mock #homeTiles .tile:focus-visible,
#page-home.home-icons-mock .home-dock .tile:focus-visible {
  outline: 3px solid var(--blue, #2563eb);
  outline-offset: 3px;
  border-radius: 16px;
}
/* Big colourful emoji — same role as .gym-tile-ico, slightly larger on the home screen */
#page-home.home-icons-mock #homeTiles .tile-ico,
#page-home.home-icons-mock .home-dock .tile-ico,
#page-home.home-icons-mock #homeTiles .home-app-ico,
#page-home.home-icons-mock .home-dock .home-app-ico,
#page-home.home-icons-mock #homeTiles .gym-tile-ico,
#page-home.home-icons-mock .home-dock .gym-tile-ico {
  position: static !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  transform: none !important;
  pointer-events: none;
  z-index: 0;
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  font-size: 36px;
  line-height: 1;
  color: inherit;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  border-radius: 0;
}
#page-home.home-icons-mock .home-svg { display: none !important; }
#page-home.home-icons-mock #homeTiles .tile-lbl,
#page-home.home-icons-mock .home-dock .tile-lbl,
#page-home.home-icons-mock #homeTiles .gym-tile-lbl,
#page-home.home-icons-mock .home-dock .gym-tile-lbl {
  position: static;
  z-index: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 1px;
  align-self: stretch;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--ink, #0f172a);
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Default: icon + label only, no tile cards */
#page-home.home-icons-mock[data-icons="emoji"] .tile-sub {
  display: none !important;
}
#page-home.home-icons-mock[data-icons="emoji"] #homeTiles .tile,
#page-home.home-icons-mock[data-icons="emoji"] .home-dock .tile {
  min-height: 0;
  padding: 4px 2px 0;
  background: transparent !important;
  background-image: none !important;
  border: 0;
  box-shadow: none !important;
  border-radius: 0;
}

/* Variant: FiFo-Fit white rounded cards (?icons=cards) — reuse .gym-tile look */
#page-home.home-icons-mock:not([data-icons="emoji"]) #homeTiles .tile,
#page-home.home-icons-mock:not([data-icons="emoji"]) .home-dock .tile {
  gap: 3px;
  min-height: 108px;
  padding: 14px 6px 10px;
  background: var(--card, #fff) !important;
  background-image: none !important;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 16px;
  box-shadow: none !important;
  color: var(--ink, #0f172a);
}
#page-home.home-icons-mock:not([data-icons="emoji"]) #homeTiles .tile:hover,
#page-home.home-icons-mock:not([data-icons="emoji"]) #homeTiles .tile:focus-visible,
#page-home.home-icons-mock:not([data-icons="emoji"]) .home-dock .tile:hover,
#page-home.home-icons-mock:not([data-icons="emoji"]) .home-dock .tile:focus-visible {
  border-color: #ea580c;
}
#page-home.home-icons-mock:not([data-icons="emoji"]) .gym-tile-ico,
#page-home.home-icons-mock:not([data-icons="emoji"]) .tile-ico {
  font-size: 30px;
  margin-top: 6px;
}
#page-home.home-icons-mock:not([data-icons="emoji"]) .tile-lbl,
#page-home.home-icons-mock:not([data-icons="emoji"]) .gym-tile-lbl {
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
  -webkit-line-clamp: 2;
}
#page-home.home-icons-mock:not([data-icons="emoji"]) .tile-sub,
#page-home.home-icons-mock:not([data-icons="emoji"]) .gym-tile-sub {
  display: block !important;
  position: static;
  width: 100%;
  margin: 0;
  padding: 0 2px;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
  opacity: .65;
  color: var(--ink, #0f172a);
  text-align: center;
  overflow-wrap: anywhere;
}
#page-home.home-icons-mock:not([data-icons="emoji"]) .home-dock .tile {
  min-height: 96px;
  padding: 10px 4px 8px;
}

/* Dock */
#page-home.home-icons-mock .home-dock {
  display: flex;
  justify-content: space-evenly;
  align-items: stretch;
  gap: 8px;
  z-index: 20;
}
#page-home.home-icons-mock .home-dock .tile { flex: 1 1 0; min-width: 0; }
#page-home.home-icons-mock .home-dock .tile[hidden] { display: none !important; }
#page-home.home-icons-mock .home-dock .tile-ico,
#page-home.home-icons-mock .home-dock .gym-tile-ico { font-size: 30px; }
#page-home.home-icons-mock .home-dock .tile-lbl { font-size: 11px; }
#page-home.home-icons-mock[data-dock="bar"] .home-dock {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  padding: 12px 8px 8px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
}
#page-home.home-icons-mock[data-dock="plain"] {
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
#page-home.home-icons-mock[data-dock="plain"] .home-dock {
  position: static;
  margin: 10px 0 8px;
  padding: 16px 0 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--line, #e2e8f0);
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
@media (min-width: 760px) {
  #page-home.home-icons-mock #homeTiles.home-app-grid { max-width: 420px; }
  #page-home.home-icons-mock[data-dock="bar"] .home-dock { max-width: 420px; left: 50%; right: auto; transform: translateX(-50%); width: calc(100% - 28px); }
}


/* Payroll QA (fjh-v139): layout, 390px overflow, checkbox row, sample banner, photo hint */
.psr-sample-banner {
  background:#7c2d12; color:#fff7ed; font-weight:800; font-size:12px;
  letter-spacing:.04em; text-transform:uppercase; text-align:center;
  padding:8px 10px; border-radius:10px; margin:0 0 10px;
}
.pxc-agr-row { display:grid; gap:10px; margin:0 0 12px; grid-template-columns:minmax(0,1fr); max-width:100%; min-width:0; }
.pxc-current.is-empty { padding:8px 12px; }
.pxc-agr-hint { margin:0; }
.pxc-agr-pickers .pro-agr-select, .pxc-agr-pickers .pro-agr-search { width:100%; max-width:100%; min-width:0; margin:0; box-sizing:border-box; }
.pxc-cycle { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; margin:0 0 8px; max-width:100%; }
.pxc-cycle-seg { display:flex; flex-wrap:wrap; gap:6px; background:#f1f5f9; padding:4px; border-radius:999px; max-width:100%; }
#proPayMainPanel, .pxc-upload, .pxc-days { max-width:100%; min-width:0; box-sizing:border-box; overflow-x:hidden; }
.panel label.pxc-tick, .pxc-tick {
  display:flex; flex-direction:row; align-items:center; gap:8px;
  font-weight:700; font-size:14px; margin:0;
}
.panel label.pxc-tick input, .pxc-tick input[type="checkbox"] {
  width:20px; height:20px; flex:none; margin:0;
}
/* pxc-pay-overflow-fix: stop 390px horizontal scroll on the payroll checker */
#page-premium,
#proPayMainPanel,
.pxc-agr-row,
.pxc-cycle,
.pxc-days,
.pxc-chip-row,
.pxc-cycle-seg,
.pxc-file-hint {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
#page-premium,
#proPayMainPanel {
  overflow-x: hidden;
}
.pxc-file-hint { margin: 6px 0 10px; }
@media (max-width: 430px) {
  .pxc-cycle-btn { padding: 6px 8px; font-size: 12px; }
  .pxc-chip { font-size: 12px; }
}

.roster-simple { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: end; }
.roster-simple label { margin: 0; }
.roster-simple .roster-start { max-width: 11.5rem; }
.roster-simple .roster-start input[type=date] { width: 100%; max-width: 11.5rem; min-width: 0; font-size: 14px; padding: 8px 8px; min-height: 44px; }
.roster-more { margin-top: 8px; border-top: 1px solid var(--line, #e2e8f0); padding-top: 4px; }
.roster-more summary { cursor: pointer; font-weight: 700; font-size: 15px; min-height: 44px; display: flex; align-items: center; list-style: none; }
.roster-more summary::-webkit-details-marker { display: none; }
.roster-more summary::after { content: "›"; margin-left: 8px; font-size: 20px; font-weight: 700; color: var(--muted, #64748b); transform: rotate(90deg); display: inline-block; }
.roster-more[open] summary::after { transform: rotate(-90deg); }
.roster-more .shift-seg, .roster-more .row2, .roster-more .check { margin-top: 8px; }
#rosterForm { scroll-margin-top: 72px; }
.roster-more label.check { align-items: flex-start; }
.roster-more label.check > span { display: block; }

#page-admin .adm-note { background: #fff7e6; border: 1px solid #f3c26b; border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; font-size: .92rem; }
