/* HookSign night theme: dark glass over the animated road (bg.js). */
:root {
  --ink: #eef2f8; --ink-2: #cbd5e1; --muted: #98a4b8; --line: rgba(148, 163, 184, .16); --line-2: rgba(148, 163, 184, .28);
  --bg: #05070d; --card: rgba(10, 14, 24, .86); --card-2: rgba(22, 29, 46, .92); --card-solid: #0c111d;
  --r: 6px; --r-sm: 4px; --r-xs: 2px;   /* square-ish corners: reads as a tool, not a toy */
  --gold: #ffb020; --gold-2: #ffd166; --green: #34d399; --blue: #60a5fa; --red: #f87171; --amber: #fbbf24;
  --edge: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03));
  --shadow: 0 12px 40px rgba(0, 0, 0, .38);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --tab-h: 68px; color-scheme: dark;
  --fs-2xs: 0.75rem; --fs-xs: 0.8125rem; --fs-sm: 0.875rem; --fs-md: 0.9375rem; --fs-base: 1rem; --fs-lg: 1.0625rem; --fs-xl: 1.125rem; --fs-2xl: 1.25rem; --fs-3xl: 1.5rem; --fs-4xl: 2rem;
  --r-lg: 12px; --r-pill: 999px; --shadow-sm: 0 2px 8px rgba(0, 0, 0, .25); --ease: cubic-bezier(.2, .7, .2, 1); --dur: .18s;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: transparent; color: var(--ink); font: 16px/1.5 var(--font); }   /* transparent so the road (z-index -1) shows through */
.lr-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
.card, .panel, .jobs a, .stat, .setup-card, .tabs button, .payopt, .dlg, .sum button, .tabbar, .flow { backdrop-filter: blur(12px) saturate(1.25); -webkit-backdrop-filter: blur(12px) saturate(1.25); }
a { color: var(--blue); }
h1 { font-size: 1.6rem; margin: 0 0 6px; line-height: 1.15; letter-spacing: -.015em; font-weight: 800; }
h2 { font-size: var(--fs-lg); margin: 18px 0 10px; letter-spacing: -.005em; font-weight: 750; } h3 { font-size: var(--fs-base); margin: 14px 0 6px; }
.muted { color: var(--muted); } .small { font-size: var(--fs-sm); } .fine { font-size: var(--fs-xs); color: var(--muted); margin-top: 16px; } .boot { padding: 24px; color: var(--muted); }
.eyebrow { margin: 0 0 2px; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); }

/* ---------- shell ---------- */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(5, 7, 13, .66); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line); color: #fff; }
.top .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: var(--fs-lg); letter-spacing: -.01em; }
.top .brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 209, 102, .25), 0 4px 16px color-mix(in srgb, var(--gold) 25%, transparent); }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: var(--r); font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.topnav a svg { width: 19px; height: 19px; opacity: .85; }
.topnav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.topnav a[aria-current] { color: #1b1203; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.topnav .btn { margin-left: 8px; }
.tabbar { display: none; }
.banner { padding: 10px 18px; background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold-2); font-size: var(--fs-md); border-bottom: 1px solid color-mix(in srgb, var(--gold) 20%, transparent); } .banner a { color: #fff; font-weight: 700; }
.banner.warn { background: rgba(248, 113, 113, .14); color: #fecaca; }
main { max-width: 860px; margin: 0 auto; padding: 18px 18px 60px; }
.page-in { animation: lr-in .16s ease-out both; }
@keyframes lr-in { from { opacity: .55; } to { opacity: 1; } }   /* a quick fade, no movement: the page never slides or bounces, and is never invisible if animations are paused */
@media (prefers-reduced-motion: reduce) { .page-in { animation: none; } }
main > p:first-child > a[href="#/jobs"] { color: var(--muted); text-decoration: none; font-weight: 650; display: inline-flex; padding: 4px 0; } main > p:first-child > a[href="#/jobs"]:hover { color: var(--gold-2); }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

/* phones: app-style bottom tab bar with a center "+" */
@media (max-width: 720px) {
  .topnav { display: none; }
  main { padding: 14px 14px calc(var(--tab-h) + 34px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center; position: fixed; z-index: 6; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); height: var(--tab-h); padding: 0 6px; border-radius: 22px; background: rgba(12, 17, 30, .82); border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 0; color: var(--muted); text-decoration: none; font-size: var(--fs-2xs); font-weight: 700; border-radius: var(--r); }
  .tabbar a[aria-current] { color: var(--gold-2); }
  .tabbar a[aria-current] svg { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--gold) 55%, transparent)); }
  .fab { justify-self: center; width: 58px; height: 58px; margin-top: -26px; border-radius: 19px; border: 0; display: grid; place-items: center; color: #1b1203; background: linear-gradient(160deg, var(--gold-2), var(--gold) 60%, #f08c00); box-shadow: 0 10px 26px color-mix(in srgb, var(--gold) 45%, transparent), 0 0 0 5px rgba(5, 7, 13, .85); cursor: pointer; transition: transform .15s; }
  .fab svg { width: 28px; height: 28px; stroke-width: 2.4; } .fab:active { transform: scale(.94); }
  body .toast { bottom: calc(var(--tab-h) + 22px + env(safe-area-inset-bottom)); }
}

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 10px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink); font: 650 .97rem var(--font); text-decoration: none; cursor: pointer; transition: transform .12s ease, filter .15s, box-shadow .15s, background .15s; }
.btn:hover { background: rgba(40, 52, 84, .75); } .btn:active { transform: scale(.98); }
.btn svg { width: 19px; height: 19px; }
.btn.primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: transparent; color: #1b1203; box-shadow: 0 6px 22px color-mix(in srgb, var(--gold) 26%, transparent), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn.primary:hover { filter: brightness(1.05); box-shadow: 0 8px 30px color-mix(in srgb, var(--gold) 40%, transparent), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn.big { min-height: 54px; font-size: var(--fs-lg); border-radius: 15px; } .btn.small { min-height: 38px; padding: 6px 12px; font-size: var(--fs-sm); border-radius: var(--r); }
.btn.ghost { background: transparent; border-color: transparent; } .btn.danger { color: var(--red); } .btn.ghost.danger { margin-top: 10px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .sum button:focus-visible, .tabs button:focus-visible, a:focus-visible { outline: 3px solid rgba(96, 165, 250, .8); outline-offset: 2px; }
.icon { background: none; border: 0; color: var(--muted); font-size: var(--fs-xl); min-width: 40px; min-height: 40px; cursor: pointer; border-radius: var(--r); } .icon:hover { background: rgba(255, 255, 255, .06); color: #fff; }
input, select, textarea { font: 400 1rem var(--font); padding: 12px 13px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(4, 8, 17, .62); color: var(--ink); width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #66748b; }
input:focus, select:focus, textarea:focus { border-color: rgba(255, 209, 102, .7); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 14%, transparent); outline: none; }
textarea { resize: vertical; }
select option { background: var(--card-solid); color: var(--ink); }
input[type=checkbox], input[type=radio] { accent-color: var(--gold); }

/* ---------- jobs home ---------- */
.hello { margin: 6px 0 14px; } .hello h1 { font-size: 1.75rem; }
.sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.sum button { text-align: left; padding: 14px; border-radius: 16px; border: 1px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box; color: var(--ink); cursor: pointer; font: inherit; position: relative; overflow: hidden; transition: transform .15s; }
.sum button::after { content: ''; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; border-radius: 50%; opacity: .22; filter: blur(6px); }
.sum .s-go::after { background: var(--blue); } .sum .s-wait::after { background: var(--amber); } .sum .s-ok::after { background: var(--green); }
.sum button:hover { transform: translateY(-2px); }
.sum b { display: block; font-size: var(--fs-3xl); line-height: 1.1; letter-spacing: -.02em; } .sum span { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); padding: 7px 12px; border-radius: 999px; font: 650 .88rem var(--font); white-space: nowrap; cursor: pointer; }
.tabs button i { font-style: normal; display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: rgba(148, 163, 184, .18); font-size: var(--fs-2xs); text-align: center; }
.tabs button[aria-pressed] { background: #eef2f8; color: #0b1120; border-color: transparent; } .tabs button[aria-pressed] i { background: rgba(11, 17, 32, .12); }
.jobs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; } .jobs li { min-width: 0; }
.jobs a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 18px; border: 1px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box; color: var(--ink); text-decoration: none; position: relative; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.jobs a::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--muted); opacity: .6; }
.jobs a.s-wait::before { background: var(--amber); opacity: 1; } .jobs a.s-go::before { background: var(--blue); opacity: 1; box-shadow: 0 0 12px var(--blue); } .jobs a.s-ok::before { background: var(--green); opacity: 1; } .jobs a.s-bad::before { background: var(--red); opacity: 1; }
.jobs a:hover, .jobs a:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .4), 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent); }
.av { flex: none; width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center; font-weight: 800; font-size: var(--fs-md); color: #fff; background: linear-gradient(140deg, hsl(var(--h) 70% 52%), hsl(calc(var(--h) + 40) 70% 38%)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.jc-main { flex: 1; min-width: 0; } .jc-main b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-base); }
.jobs small { display: block; color: var(--ink-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-sm); } .jobs .jc-meta { color: var(--muted); font-size: var(--fs-2xs); }
.jc-side { display: grid; justify-items: end; gap: 5px; } .amt { font-weight: 800; font-size: var(--fs-lg); white-space: nowrap; letter-spacing: -.01em; }
.st { display: inline-block; font-size: var(--fs-2xs); font-weight: 750; padding: 3px 9px; border-radius: 999px; background: rgba(148, 163, 184, .16); color: var(--ink-2); vertical-align: middle; white-space: nowrap; }
.st-wait { background: rgba(251, 191, 36, .15); color: var(--amber); } .st-go { background: rgba(96, 165, 250, .17); color: #93c5fd; } .st-ok { background: rgba(52, 211, 153, .15); color: var(--green); } .st-bad { background: rgba(248, 113, 113, .15); color: var(--red); }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.empty > img { display: block; margin: 0 auto 12px; border-radius: 22px; }
.empty.card { padding: 30px 20px; } .empty.card img { border-radius: 20px; box-shadow: 0 10px 40px color-mix(in srgb, var(--gold) 30%, transparent); } .empty.card h2 { color: var(--ink); font-size: var(--fs-2xl); margin: 16px 0 6px; }
.howto { list-style: none; counter-reset: s; padding: 0; margin: 18px auto 22px; display: grid; gap: 10px; max-width: 420px; text-align: left; }
.howto li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; }
.howto li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: var(--r); display: grid; place-items: center; font-weight: 800; color: #1b1203; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.howto b { color: var(--ink); } .howto span { font-size: var(--fs-sm); }

/* ---------- cards & forms ---------- */
.card { border-radius: 18px; padding: 18px; margin: 12px 0; border: 1px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box; box-shadow: var(--shadow); }
.card > h2:first-child { margin-top: 0; }
form.card h2 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .09em; color: var(--gold-2); margin-top: 22px; }
form.card h2::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 209, 102, .35), transparent); }
form.card > h2:first-child { margin-top: 2px; }
.fld { display: grid; gap: 5px; font-weight: 650; font-size: var(--fs-sm); margin-bottom: 13px; border: 0; padding: 0; min-width: 0; color: var(--ink-2); }
.fld small { font-weight: 400; color: var(--muted); } .fld legend { padding: 0; margin-bottom: 7px; } .lbl { font-weight: 650; font-size: var(--fs-sm); color: var(--ink-2); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; } .three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 650; font-size: var(--fs-sm); cursor: pointer; background: rgba(255, 255, 255, .02); transition: border-color .15s, background .15s; color: var(--ink); }
.chip:has(input:checked) { border-color: rgba(255, 209, 102, .65); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.chip input { width: 18px; height: 18px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .seg label { cursor: pointer; position: relative; } .seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 11px 6px; border: 1.5px solid var(--line-2); border-radius: var(--r); font-weight: 650; color: var(--ink); transition: all .15s; }
.seg input:checked + span { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold-2); } .seg input:focus-visible + span { outline: 3px solid rgba(96, 165, 250, .8); outline-offset: 2px; }
.items { display: grid; gap: 8px; margin-bottom: 8px; }
.item { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) 70px 96px auto; gap: 6px; align-items: center; padding: 8px; border-radius: var(--r); background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.item select[name=cond] { grid-column: 1 / 3; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.totals { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: flex-end; padding: 14px 4px 4px; border-top: 1px dashed var(--line-2); margin-top: 12px; color: var(--ink-2); }
.totals b { font-size: var(--fs-3xl); color: #fff; letter-spacing: -.02em; } .warn { color: var(--amber); }
.planbox { padding: 12px; border: 1px dashed var(--line-2); border-radius: var(--r); margin-bottom: 12px; background: rgba(255, 255, 255, .02); }
.note { font-size: var(--fs-sm); color: var(--ink-2); background: rgba(96, 165, 250, .08); border: 1px solid rgba(96, 165, 250, .18); border-radius: var(--r); padding: 9px 12px; }
.lockid { padding: 12px; border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); border-radius: var(--r); margin-bottom: 12px; background: color-mix(in srgb, var(--gold) 4%, transparent); } .lockid > b { display: block; margin-bottom: 8px; font-size: var(--fs-sm); color: var(--gold-2); }
.err { color: var(--red); font-weight: 650; min-height: 1.2em; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .actions .big { flex: 1; }

/* ---------- instant pricing ---------- */
.smart { padding: 14px; margin-bottom: 14px; border-radius: 16px; border: 1px solid transparent; background: linear-gradient(color-mix(in srgb, var(--gold) 7%, transparent), color-mix(in srgb, var(--gold) 2%, transparent)) padding-box, linear-gradient(135deg, rgba(255, 209, 102, .6), rgba(96, 165, 250, .35)) border-box; }
.smart .fld { margin-bottom: 8px; color: var(--gold-2); font-size: var(--fs-md); }
.smart textarea { font-size: var(--fs-lg); min-height: 64px; }
.smart-hint { margin: 8px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.smart-lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.smart-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: var(--r); background: rgba(5, 9, 18, .55); border: 1px solid var(--line); animation: lr-in .2s ease-out; }
.smart-lines li span:first-child { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .smart-lines .q { color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; } .smart-lines b { white-space: nowrap; }
.smart-miss { margin: 8px 0 0; font-size: var(--fs-sm); color: var(--amber); }
.smart-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; } .smart-foot b { font-size: var(--fs-xl); color: #fff; }
.milesrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; } .milesrow .btn { margin-bottom: 13px; }
details.more { margin: 18px 0 6px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
details.more > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 14px; cursor: pointer; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary small { display: block; color: var(--muted); font-size: var(--fs-xs); margin-top: 2px; } details.more > summary i { font-style: normal; color: var(--gold-2); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; }
details.more[open] > summary { border-bottom: 1px solid var(--line); } details.more[open] > summary i { visibility: hidden; }
details.more > :not(summary) { margin-left: 14px; margin-right: 14px; } details.more > :last-child { margin-bottom: 14px; } details.more > .two { margin-top: 14px; }
.ratecard { display: grid; gap: 8px; margin: 10px 0; }
.rc { display: grid; grid-template-columns: minmax(0, 2fr) 110px 130px 40px; gap: 6px; padding: 8px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.rc [name=rc_alias] { grid-column: 1 / -1; font-size: var(--fs-sm); padding: 8px 11px; }
.money-in { position: relative; } .money-in i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); pointer-events: none; } .money-in input { padding-left: 24px; }
@media (max-width: 620px) { .rc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; } .rc [name=rc_name] { grid-column: 1 / -1; font-weight: 600; } }

/* ---------- job status ---------- */
.flow { list-style: none; margin: 4px 0 12px; padding: 14px 10px 10px; display: grid; grid-template-columns: repeat(5, 1fr); border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.flow li { position: relative; display: grid; justify-items: center; gap: 6px; font-size: var(--fs-2xs); font-weight: 700; color: var(--muted); text-align: center; }
.flow li::before { content: ''; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: var(--line-2); z-index: 0; }
.flow li:first-child::before { display: none; }
.flow i { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: #1b2438; border: 2px solid var(--line-2); }
.flow li.done { color: var(--ink-2); } .flow li.done::before, .flow li.now::before { background: linear-gradient(90deg, var(--green), var(--green)); }
.flow li.done i { background: var(--green); border-color: var(--green); }
.flow li.now { color: var(--gold-2); } .flow li.now i { background: var(--gold); border-color: var(--gold-2); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 18%, transparent), 0 0 16px color-mix(in srgb, var(--gold) 60%, transparent); animation: lr-dot 1.8s ease-in-out infinite; }
@keyframes lr-dot { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--gold) 8%, transparent), 0 0 22px color-mix(in srgb, var(--gold) 70%, transparent); } }
.panel { border-radius: 18px; padding: 16px; margin: 12px 0; border: 1px solid var(--line-2); background: var(--card); position: relative; overflow: hidden; }
.panel::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--muted); }
.panel b { font-size: var(--fs-xl); } .panel p { margin: 6px 0 0; color: var(--ink-2); } .panel p b { font-size: inherit; color: var(--ink); }
.panel.wait::before { background: linear-gradient(90deg, var(--amber), transparent); } .panel.wait { border-color: rgba(251, 191, 36, .4); }
.panel.go::before { background: linear-gradient(90deg, var(--blue), var(--gold)); } .panel.go { border-color: rgba(96, 165, 250, .5); background: linear-gradient(160deg, rgba(37, 99, 235, .14), var(--card) 60%); animation: lr-pulse 2.6s ease-in-out infinite; }
.panel.ok::before { background: linear-gradient(90deg, var(--green), transparent); } .panel.ok { border-color: rgba(52, 211, 153, .45); background: linear-gradient(160deg, rgba(16, 185, 129, .12), var(--card) 60%); }
.panel.bad::before { background: linear-gradient(90deg, var(--red), transparent); } .panel.bad { border-color: rgba(248, 113, 113, .4); }
@keyframes lr-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); } 50% { box-shadow: 0 0 0 6px rgba(96, 165, 250, .14); } }
.lines { width: 100%; border-collapse: collapse; } .lines th { text-align: left; font-size: var(--fs-2xs); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding: 6px 4px; }
.lines td { border-bottom: 1px solid var(--line); padding: 9px 4px; vertical-align: top; } .lines .r { text-align: right; white-space: nowrap; } .lines tr.t td { font-weight: 800; border-top: 1px solid var(--line-2); font-size: var(--fs-lg); }
.plain { margin: 4px 0; padding-left: 18px; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl li { position: relative; padding: 0 0 14px 24px; } .tl li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px color-mix(in srgb, var(--gold) 50%, transparent); }
.tl li::after { content: ''; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--line-2); } .tl li:last-child::after { display: none; }
.tl li:not(:first-child)::before { background: #2a3550; box-shadow: none; } .tl small { display: block; color: var(--muted); }

/* ---------- money ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { border-radius: 16px; padding: 16px; border: 1px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box; }
.stat b { display: block; font-size: var(--fs-3xl); letter-spacing: -.02em; } .stat:first-child b { color: var(--green); } .stat span { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }

/* ---------- sign-in & setup ---------- */
.setup { min-height: 100vh; display: grid; place-items: center; padding: 18px; }
.setup-card { width: min(640px, 100%); border-radius: 26px; padding: 26px; border: 1px solid transparent; background: linear-gradient(rgba(12, 18, 33, .8), rgba(12, 18, 33, .8)) padding-box, linear-gradient(160deg, rgba(255, 209, 102, .45), rgba(255, 255, 255, .06) 40%, rgba(96, 165, 250, .25)) border-box; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); animation: lr-in .4s ease-out both; }
.signin { max-width: 520px; }
.signin h1 { font-size: 2.1rem; background: linear-gradient(90deg, #fff 20%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 8px 0 10px; }
.brandrow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: var(--fs-2xl); letter-spacing: -.01em; }
.brandrow img { width: 46px; height: 46px; border-radius: var(--r); box-shadow: 0 8px 28px color-mix(in srgb, var(--gold) 35%, transparent); }
.perks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.perks li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); background: rgba(255, 255, 255, .035); border: 1px solid var(--line); font-weight: 600; font-size: var(--fs-md); }
.perks b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r); background: color-mix(in srgb, var(--gold) 12%, transparent); font-size: var(--fs-base); flex: none; }
.g_id_signin { margin: 18px 0; }
.bar { height: 5px; border-radius: 99px; background: rgba(148, 163, 184, .16); margin: 0 0 14px; overflow: hidden; } .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-2)); box-shadow: 0 0 12px color-mix(in srgb, var(--gold) 60%, transparent); transition: width .4s ease; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 18px; } .steps li { font-size: var(--fs-xs); font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(148, 163, 184, .14); color: var(--muted); }
.steps li.on { background: var(--gold); color: #1b1203; } .steps li.done { background: rgba(52, 211, 153, .15); color: var(--green); }
.setup .nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.paylist { display: grid; gap: 10px; }
.payopt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid var(--line-2); border-radius: 16px; cursor: pointer; background: rgba(255, 255, 255, .02); transition: border-color .15s, background .15s; }
.payopt:has(> input:checked) { border-color: rgba(255, 209, 102, .6); background: color-mix(in srgb, var(--gold) 7%, transparent); }
.payopt > input { width: 22px; height: 22px; margin-top: 2px; } .payopt small { display: block; color: var(--muted); margin: 3px 0 8px; } .payopt b { color: var(--ink); }

/* ---------- dialog & toast ---------- */
.dlg { border: 1px solid var(--line-2); border-radius: 22px; padding: 0; width: min(640px, calc(100vw - 20px)); max-height: 90vh; background: rgba(14, 21, 38, .96); color: var(--ink); box-shadow: 0 30px 90px rgba(0, 0, 0, .7); }
.dlg[open] { animation: lr-pop .22s ease-out; }
@keyframes lr-pop { from { transform: translateY(10px) scale(.98); } to { transform: none; } }
.dlg::backdrop { background: rgba(2, 6, 23, .72); backdrop-filter: blur(4px); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); } .dlg-head h2 { margin: 0; }
.dlg-body { padding: 18px; overflow: auto; }
@media (max-width: 620px) {
  .dlg { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom); }
  .dlg[open] { animation: lr-sheet .26s ease-out; }
  .dlg-head::before { content: ''; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); }
}
@keyframes lr-sheet { from { transform: translateY(40px); } to { transform: none; } }
details.co { border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 12px; margin: 10px 0; } details.co summary { font-weight: 700; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(14, 21, 38, .96); color: #fff; padding: 12px 16px 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2); border-left: 4px solid var(--gold); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); z-index: 50; max-width: calc(100vw - 32px); font-weight: 600; animation: lr-toast .25s ease-out; }
@keyframes lr-toast { from { transform: translate(-50%, 10px); } to { transform: translate(-50%, 0); } }

@media (max-width: 620px) {
  h1 { font-size: var(--fs-3xl); } .hello h1 { font-size: var(--fs-3xl); }
  .two, .three, .stats { grid-template-columns: minmax(0, 1fr); }
  .sum { gap: 8px; } .sum button { padding: 12px 10px; } .sum b { font-size: var(--fs-2xl); } .sum span { font-size: var(--fs-2xs); }
  .item { grid-template-columns: minmax(0, 1fr) 62px 86px 40px; }
  .item [name=desc] { grid-column: 1 / -1; grid-row: 1; font-weight: 600; }
  .item select[name=kind] { grid-column: 1; grid-row: 2; } .item [name=qty] { grid-column: 2; grid-row: 2; } .item [name=price] { grid-column: 3; grid-row: 2; } .item .icon { grid-column: 4; grid-row: 2; }
  .item select[name=cond] { grid-column: 1 / -1; grid-row: 3; }
  .card { padding: 16px; } .setup-card { padding: 20px; border-radius: 22px; } .signin h1 { font-size: 1.8rem; }
  .flow li { font-size: .66rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .lr-bg, .top, .tabbar, .toast, .flow { display: none !important; } body { color: #000; } }

/* ---------- work photos ---------- */
.photos .ph-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.photos .ph-head h2 { margin: 0; }
.ph-steps { display: grid; gap: 10px; margin-top: 10px; }
.ph-step { border: 1px solid var(--line); border-radius: 16px; padding: 10px; background: rgba(255, 255, 255, .02); }
.ph-step.has { border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .035); }
.ph-label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ph-n { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: var(--fs-xs); font-weight: 800; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold-2); }
.ph-step.has .ph-n { background: rgba(52, 211, 153, .18); color: var(--green); }
.ph-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.ph-th, .ph-add { flex: none; width: 92px; height: 92px; border-radius: var(--r); position: relative; overflow: hidden; border: 1px solid var(--line-2); background: #0b1120; padding: 0; cursor: pointer; color: var(--ink); }
.ph-th img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; } .ph-th:hover img { transform: scale(1.05); }
.ph-th small { position: absolute; left: 0; right: 0; bottom: 0; font-size: .66rem; padding: 2px 5px; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent); color: #fff; text-align: left; }
.ph-add { display: grid; place-items: center; align-content: center; gap: 2px; border-style: dashed; border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: color-mix(in srgb, var(--gold) 6%, transparent); transition: background .2s, transform .2s; }
.ph-add:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); transform: translateY(-1px); }
.ph-add span { font-size: 1.6rem; line-height: 1; } .ph-add small { font-size: var(--fs-2xs); color: var(--gold-2); font-weight: 700; }
.ph-add:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.ph-big { margin: 0 0 12px; } .ph-big img { width: 100%; max-height: 60vh; object-fit: contain; border-radius: var(--r); background: #000; display: block; }
@media print { .photos .ph-add { display: none; } }

/* ---------- header gift pill + jobs nudge ---------- */
.top .gift { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 6px 12px; border-radius: 999px; color: var(--gold-2); text-decoration: none; font-weight: 700; font-size: var(--fs-sm); background: color-mix(in srgb, var(--gold) 10%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); white-space: nowrap; }
.top .gift svg { width: 18px; height: 18px; } .top .gift[aria-current] { background: color-mix(in srgb, var(--gold) 22%, transparent); }
@media (min-width: 721px) { .top .gift { margin-left: 0; order: 3; } .topnav { margin-left: auto; } }
.nudge { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 14px; margin-bottom: 14px; border-radius: 16px; text-decoration: none; color: var(--ink); background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 16%, transparent), rgba(96, 165, 250, .08)); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.nudge svg { flex: none; color: var(--gold-2); } .nudge span { flex: 1; font-size: var(--fs-md); } .nudge b { color: var(--gold-2); }
.badge { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 800 .68rem/18px var(--font); text-align: center; font-style: normal; box-shadow: 0 0 0 2px var(--bg); }
.topnav a, .tabbar a { position: relative; } .topnav .badge { top: -2px; right: -2px; }

/* ---------- team board ---------- */
.team-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 14px; } .team-head h1 { margin: 0; }
.kinds { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.kind { cursor: pointer; } .kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 700; font-size: var(--fs-sm); color: var(--ink-2); transition: all .15s; }
.kind input:checked + span { color: #1b1203; background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: transparent; }
.kind.k-alert input:checked + span { background: linear-gradient(180deg, #fca5a5, var(--red)); color: #2a0606; }
.kind input:focus-visible + span { outline: 3px solid rgba(96, 165, 250, .8); outline-offset: 2px; }
.composer textarea { resize: vertical; }
.composer-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; } .composer-bar .btn.primary { margin-left: auto; }
.pend { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; } .pend span { position: relative; } .pend img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r); display: block; }
.pend .icon { position: absolute; top: -8px; right: -8px; min-width: 26px; min-height: 26px; font-size: var(--fs-xs); background: var(--card-solid); border: 1px solid var(--line-2); border-radius: 50%; }
.feed { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.post { padding: 14px 16px; border-radius: 18px; border: 1px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: rise .35s ease-out; }
.post.k-alert { background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, rgba(248, 113, 113, .8), rgba(248, 113, 113, .15)) border-box; }
.post.pinned { box-shadow: 0 0 0 1px rgba(255, 209, 102, .35), 0 10px 30px color-mix(in srgb, var(--gold) 12%, transparent); }
.post-top { display: flex; align-items: center; gap: 10px; } .post-top small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.av.sm { width: 36px; height: 36px; border-radius: var(--r); font-size: var(--fs-xs); }
.post-text { margin: 10px 0 0; font-size: var(--fs-base); white-space: normal; overflow-wrap: anywhere; }
.post-job { margin-top: 10px; padding: 8px 11px; border-radius: var(--r); background: rgba(96, 165, 250, .08); border: 1px solid rgba(96, 165, 250, .2); font-weight: 650; font-size: var(--fs-sm); } .post-job small { color: var(--ink-2); font-weight: 500; }
.post-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-top: 10px; }
.post-pics .tp { padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; aspect-ratio: 1; background: rgba(255, 255, 255, .04); } .post-pics img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.seen { color: var(--green); font-size: var(--fs-xs); font-weight: 650; } .got { color: var(--green); font-weight: 700; font-size: var(--fs-sm); }
.post-acts { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.team-foot { text-align: center; margin-top: 20px; }
.join h1 { margin-top: 4px; }
@keyframes rise { from { transform: translateY(8px); } to { transform: none; } }

/* ---------- refer ---------- */
.refer-hero { text-align: center; padding: 18px 8px 6px; } .refer-hero h1 { font-size: clamp(1.7rem, 6vw, 2.3rem); margin: 4px 0 8px; } .refer-hero p:not(.eyebrow) { color: var(--ink-2); max-width: 520px; margin: 0 auto; } .refer-hero b { color: var(--gold-2); }
.gift-badge { width: 74px; height: 74px; margin: 0 auto 10px; border-radius: 24px; display: grid; place-items: center; color: #1b1203; background: linear-gradient(160deg, var(--gold-2), var(--gold)); box-shadow: 0 12px 40px color-mix(in srgb, var(--gold) 40%, transparent); animation: bob 2.6s ease-in-out infinite; }
.gift-badge svg { width: 38px; height: 38px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-5px) rotate(3deg); } }
.ref-sum { margin-top: 18px; } .ref-sum > div { padding: 14px; border-radius: 16px; border: 1px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box; text-align: center; position: relative; overflow: hidden; }
.reflink { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: var(--r); background: rgba(4, 8, 17, .62); border: 1px dashed rgba(255, 209, 102, .5); margin-bottom: 14px; }
.reflink code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gold-2); font-weight: 700; font-size: var(--fs-base); }
#ref-msg { margin-bottom: 12px; }
.sharegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
@media (prefers-reduced-motion: reduce) { .gift-badge, .post { animation: none; } }
@media print { .nudge, .top .gift { display: none; } }

/* ---------- plans ---------- */
.plans-app { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.plan-c { padding: 16px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.plan-c h3 { margin: 0 0 4px; } .team-c { border-color: rgba(255, 209, 102, .45); background: color-mix(in srgb, var(--gold) 6%, transparent); }
.tq-total { margin: 6px 0 2px; } .tq-total b { font-size: 1.6rem; letter-spacing: -.02em; } .tq-total s { margin-left: 6px; }
.seatrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; } .seatrow input[type=number] { width: 84px; }
.team-c > .btn { width: 100%; margin-top: 10px; }

/* ---------- trades, look & feel, QR ---------- */
.trade-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 16%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); color: var(--gold-2); font-weight: 750; font-size: var(--fs-2xs); letter-spacing: .01em; text-transform: none; margin-right: 6px; }
.signin .trade-tag { margin: 6px 0 0; }
.quick { margin: 14px 0 4px; } .quick .eyebrow { margin: 0 0 6px; }
.quick-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .quick-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qbtn { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 16px; cursor: pointer; color: var(--ink); font: inherit; border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line-2)); background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 14%, transparent), rgba(255, 255, 255, .02)); transition: transform .12s ease, border-color .12s ease; }
.qbtn:hover { border-color: var(--gold); } .qbtn:active { transform: scale(.97); }
.qbtn b { font-size: var(--fs-md); line-height: 1.25; } .qbtn span { color: var(--gold-2); font-weight: 750; font-size: var(--fs-sm); }
.tip { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 4px; padding: 10px 12px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.tip p { margin: 0; flex: 1; color: var(--ink-2); font-size: var(--fs-md); } .tip .icon { margin: -4px -4px 0 0; }
.look .swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw i { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 3px solid transparent; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25); }
.sw input:checked + i { border-color: #fff; box-shadow: 0 0 0 2px var(--c); } .sw input:focus-visible + i { outline: 2px solid #fff; outline-offset: 3px; }
.sw.auto span { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); }
.toggles { display: grid; gap: 6px; } .tog { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); cursor: pointer; }
.tog input { width: 20px; height: 20px; accent-color: var(--gold); }
.look .chips { margin: 4px 0 10px; }
html.big-text { font-size: 18px; } html.big-text body { font-size: 18px; }
html.calm .lr-bg { filter: saturate(.6) brightness(.85); }
.qrbox { background: #fff; padding: 10px; border-radius: 18px; width: min(340px, 100%); margin: 4px auto 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
.qrbox svg { display: block; width: 100%; height: auto; } .qrbox.dense { width: min(460px, 100%); padding: 6px; }
.center { text-align: center; }
.tstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; } .tstat h3 { margin: 0 0 8px; font-size: var(--fs-base); }
.tbar { display: grid; grid-template-columns: 130px 1fr 34px; align-items: center; gap: 8px; font-size: var(--fs-sm); margin: 4px 0; }
.tbar i { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); min-width: 4px; } .tbar b { text-align: right; }

/* ---------- reviews ---------- */
.stars-s { color: var(--gold); letter-spacing: 1px; } .stars-s i { color: rgba(148, 163, 184, .4); font-style: normal; }
.rv-line { margin-top: 6px; } .rv-line p { margin: 4px 0; color: var(--ink); } .rv-line .stars-s { font-size: var(--fs-xl); }
.rv-chip { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; padding: 9px 14px; border-radius: var(--r); text-decoration: none; color: var(--ink); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.rv-chip span:last-child { margin-left: auto; color: var(--gold-2); font-weight: 700; font-size: var(--fs-sm); } .rv-chip:hover { border-color: var(--gold); }
.rv-sum { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.rv-big { display: grid; justify-items: center; gap: 2px; padding: 0 8px; } .rv-big b { font-size: 2.6rem; line-height: 1; } .rv-big .stars-s { font-size: var(--fs-2xl); }
.rv-item { padding: 10px 0; border-bottom: 1px solid var(--line); } .rv-item:last-child { border-bottom: 0; } .rv-item a { color: inherit; text-decoration: none; display: block; }
.rv-ask { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; }
@media (max-width: 520px) { .rv-sum { grid-template-columns: 1fr; } }

/* =====================================================================
   Finish layer (2026-11-21): one quiet, professional system over the road.
   Square corners, solid panels with hairline borders, one flat accent,
   no glows, no gradient text, no bouncing. Numbers line up (tabular).
   ===================================================================== */
body { font-size: 15.5px; letter-spacing: -.003em; font-feature-settings: "cv11", "ss01"; }
h1 { font-weight: 700; letter-spacing: -.022em; } h2 { font-weight: 650; letter-spacing: -.01em; }
.amt, .sum b, .stat b, .totals b, .tq-total b, .rv-big b, .lines .r, .smart-foot b, .qbtn span { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: var(--fs-2xs); letter-spacing: .12em; font-weight: 650; color: var(--muted); }
.card, .panel, .jobs a, .stat, .setup-card, .tabs button, .payopt, .dlg, .sum button, .flow, .post { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* surfaces */
.card, .stat, .sum button, .jobs a, .post, .ref-sum > div, .setup-card { border-radius: var(--r); border: 1px solid var(--line); background: var(--card); box-shadow: none; }
.panel, .flow, details.more, details.co, .item, .rc, .ph-step, .payopt, .tip, .nudge, .rv-chip, .qbtn, .tog, .perks li, .smart, .lockid, .planbox, .plan-c, .note, .reflink, .smart-lines li { border-radius: var(--r); }
.setup-card { background: rgba(10, 14, 24, .9); border-color: var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.card { box-shadow: none; }
form.card h2 { font-size: var(--fs-2xs); letter-spacing: .12em; font-weight: 650; color: var(--muted); }
form.card h2::after { background: var(--line); }

/* header + nav */
.top { background: rgba(5, 7, 13, .9); }
.top .brand img { border-radius: var(--r); box-shadow: none; }
.top .brand b { font-weight: 700; }
.topnav a { border-radius: var(--r-sm); padding: 8px 12px; }
.topnav a[aria-current] { color: #fff; background: rgba(255, 255, 255, .07); box-shadow: inset 0 -2px 0 var(--gold); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.top .gift { border-radius: var(--r-sm); background: transparent; border-color: var(--line-2); color: var(--ink-2); font-weight: 600; }
.top .gift:hover, .top .gift[aria-current] { color: #fff; border-color: var(--gold); background: transparent; }
.banner { background: color-mix(in srgb, var(--gold) 8%, transparent); }
@media (max-width: 720px) {
  main { padding-bottom: calc(var(--tab-h) + 28px + env(safe-area-inset-bottom)); }
  .tabbar { left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom); border-radius: 0; border: 0; border-top: 1px solid var(--line-2); background: rgba(6, 9, 16, .96); box-shadow: none; }
  .tabbar a { border-radius: 0; font-weight: 600; letter-spacing: .01em; position: relative; }
  .tabbar a[aria-current] { color: #fff; } .tabbar a[aria-current] svg { filter: none; color: var(--gold); }
  .tabbar a[aria-current]::before { content: ''; position: absolute; top: -1px; left: 28%; right: 28%; height: 2px; background: var(--gold); }
  .fab { width: 52px; height: 44px; margin-top: 0; border-radius: var(--r); background: var(--gold); box-shadow: none; }
  .fab svg { width: 24px; height: 24px; stroke-width: 2.2; }
  body .toast { bottom: calc(var(--tab-h) + 14px + env(safe-area-inset-bottom)); }
}

/* buttons + inputs */
.btn { border-radius: var(--r-sm); font-weight: 600; min-height: 44px; background: rgba(255, 255, 255, .04); border-color: var(--line-2); }
.btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(148, 163, 184, .45); }
.btn.primary { background: var(--gold); color: #12100a; box-shadow: none; border-color: var(--gold); }
.btn.primary:hover { filter: none; background: var(--gold-2); border-color: var(--gold-2); box-shadow: none; }
.btn.big { border-radius: var(--r-sm); min-height: 52px; } .btn.small { border-radius: var(--r-sm); min-height: 36px; }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover { background: rgba(255, 255, 255, .06); }
.btn:active { transform: none; filter: brightness(.95); }
.icon { border-radius: var(--r-sm); } .icon svg { width: 18px; height: 18px; }
input, select, textarea { border-radius: var(--r-sm); background: rgba(3, 6, 12, .7); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .sum button:focus-visible, .tabs button:focus-visible, a:focus-visible, .qbtn:focus-visible, .icon:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.chip { border-radius: var(--r-sm); } .chip:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.seg span { border-radius: var(--r-sm); border-width: 1px; } .seg input:checked + span { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); color: #fff; }
.kind span { border-radius: var(--r-sm); } .kind input:checked + span { background: var(--gold); color: #12100a; } .kind.k-alert input:checked + span { background: var(--red); color: #1a0505; }
.tabs button { border-radius: var(--r-sm); background: transparent; } .tabs button i { border-radius: var(--r-xs); }
.tabs button[aria-pressed] { background: var(--ink); color: #0b1120; }
.steps li { border-radius: var(--r-xs); } .steps li.on { background: var(--gold); }
.bar { border-radius: 0; height: 3px; } .bar i { border-radius: 0; box-shadow: none; background: var(--gold); }
.st, .trade-tag { border-radius: var(--r-xs); letter-spacing: .02em; }
.st { font-weight: 600; font-size: var(--fs-2xs); letter-spacing: .01em; padding: 2px 7px; }
.trade-tag { background: transparent; border-color: var(--line-2); color: var(--ink-2); font-weight: 600; text-transform: uppercase; font-size: .66rem; letter-spacing: .1em; padding: 3px 8px; }
.trade-tag::before { content: ''; width: 6px; height: 6px; background: var(--gold); }

/* home */
.sum button::after { display: none; }
.sum button { padding: 14px 14px 12px; border-top: 2px solid var(--line-2); }
.sum .s-go { border-top-color: var(--blue); } .sum .s-wait { border-top-color: var(--amber); } .sum .s-ok { border-top-color: var(--green); }
.sum button:hover { transform: none; background: rgba(16, 22, 36, .92); }
.sum b { font-weight: 700; } .sum span { font-weight: 500; }
.jobs a { padding: 14px 14px 14px 18px; }
.jobs a::before { top: 0; bottom: 0; width: 3px; border-radius: 0; opacity: 1; background: var(--line-2); }
.jobs a.s-go::before { box-shadow: none; }
.jobs a:hover, .jobs a:focus-visible { transform: none; box-shadow: none; border-color: var(--line-2); background: rgba(16, 22, 36, .92); }
.av { border-radius: var(--r-sm); width: 40px; height: 40px; font-weight: 650; font-size: var(--fs-sm); letter-spacing: .02em; color: hsl(var(--h) 70% 82%); background: hsl(var(--h) 28% 20%); box-shadow: inset 0 0 0 1px hsl(var(--h) 35% 32%); }
.av.sm { border-radius: var(--r-sm); width: 34px; height: 34px; }
.amt { font-weight: 700; }
.jc-main b { font-weight: 650; }
.qbtn { border: 1px solid var(--line-2); background: var(--card); padding: 11px 13px; }
.qbtn:hover { border-color: var(--gold); background: rgba(16, 22, 36, .92); } .qbtn:active { transform: none; }
.qbtn b { font-weight: 600; } .qbtn span { color: var(--gold); font-weight: 650; }
.tip { background: var(--card); align-items: center; } .tip-k { flex: none; font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: #12100a; background: var(--gold); padding: 3px 6px; border-radius: var(--r-xs); }
.nudge { background: var(--card); border-color: var(--line-2); border-left: 3px solid var(--gold); } .nudge b { color: #fff; }
.rv-chip { background: var(--card); }
.empty.card img { border-radius: var(--r); box-shadow: none; }
.howto li::before { border-radius: var(--r-sm); background: var(--gold); font-weight: 700; }

/* job page */
.flow { background: var(--card); padding: 14px 8px 10px; }
.flow i { width: 12px; height: 12px; border-radius: 0; transform: rotate(45deg); margin-top: 2px; background: var(--card-solid); }
.flow li::before { top: 7px; height: 1px; }
.flow li.now i { box-shadow: none; animation: none; background: var(--gold); border-color: var(--gold); }
.panel { background: var(--card); border-color: var(--line-2); border-left-width: 3px; }
.panel::before { display: none; }
.panel.wait { border-color: var(--line-2); border-left-color: var(--amber); }
.panel.go { border-color: var(--line-2); border-left-color: var(--blue); background: var(--card); animation: none; }
.panel.ok { border-color: var(--line-2); border-left-color: var(--green); background: var(--card); }
.panel.bad { border-color: var(--line-2); border-left-color: var(--red); }
.smart { background: color-mix(in srgb, var(--gold) 4%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.smart .fld { color: #fff; }
.tl li::before { border-radius: 0; transform: rotate(45deg); width: 8px; height: 8px; left: 5px; top: 8px; box-shadow: none; }
.totals { border-top-style: solid; border-top-color: var(--line); }
.ph-th, .ph-add, .pend img, .post-pics .tp { border-radius: var(--r-sm); }
.ph-add { border-color: var(--line-2); background: transparent; color: var(--ink-2); } .ph-add:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 5%, transparent); transform: none; }
.ph-add span svg { width: 22px; height: 22px; } .ph-add small { color: var(--ink-2); font-weight: 600; }
.ph-n { border-radius: var(--r-xs); }
.ph-big img { border-radius: var(--r-sm); }

/* sign-in + setup */
.signin h1 { background: none; color: #fff; -webkit-text-fill-color: currentColor; font-weight: 700; letter-spacing: -.03em; }
.brandrow img { border-radius: var(--r); box-shadow: none; }
.brandhero { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 2px 0 18px; text-align: center; font-size: 1.35rem; letter-spacing: -.01em; }
.brandhero img { width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 0 0 1px rgba(255, 209, 102, .22), 0 14px 44px color-mix(in srgb, var(--gold) 28%, transparent); }
.signin .trade-tag, .signin > h1 { text-align: center; }
.signin .g_id_signin { display: flex; justify-content: center; }
@media (max-width: 520px) { .brandhero img { width: 88px; height: 88px; border-radius: 22px; } }
.perks li { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 11px 2px; font-weight: 500; }
.perks li:last-child { border-bottom: 0; }
.perks b { background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--gold); }
.perks b svg { width: 18px; height: 18px; }
.payopt:has(> input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 5%, transparent); }

/* dialogs, toast, misc */
.dlg { border-radius: var(--r); background: #0b101c; }
@media (max-width: 620px) { .dlg { border-radius: 10px 10px 0 0; } }
.toast { border-radius: var(--r-sm); background: #0b101c; border-left-width: 3px; font-weight: 500; }
.gift-badge { border-radius: var(--r); animation: none; box-shadow: none; background: var(--gold); }
.post.pinned { box-shadow: none; border-left: 3px solid var(--gold); }
.post.k-alert { background: var(--card); border-left: 3px solid var(--red); }
.post-job { border-radius: var(--r-sm); }
.qrbox { border-radius: var(--r); box-shadow: none; }
.sw i { border-radius: var(--r-sm); } .sw input:checked + i { border-color: #fff; box-shadow: none; }
.tbar i { border-radius: 0; background: var(--gold); }
.team-c { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 4%, transparent); }

/* install on the home screen */
.install-card { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 12px 10px 12px 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-2); border-left: 3px solid var(--gold); }
.install-card .ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line-2); color: var(--gold); }
.install-card > div { flex: 1; min-width: 0; } .install-card b { display: block; font-size: var(--fs-md); font-weight: 650; } .install-card small { display: block; color: var(--muted); font-size: var(--fs-xs); margin-top: 1px; }
.install-card .btn { flex: none; }
.setup-card .install-card { margin: 0 0 16px; }
.how-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 0; counter-reset: hs; }
.how-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.how-steps li:last-child { border-bottom: 0; }
.how-steps li > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line-2); color: var(--gold); }
.how-steps b { display: block; font-weight: 650; } .how-steps small { display: block; color: var(--muted); font-size: var(--fs-sm); }
.setup-card details.more { margin-top: 6px; }
.setup-card details.more > summary span { font-weight: 600; }
@media (max-width: 420px) { .install-card { flex-wrap: wrap; } .install-card > div { flex-basis: calc(100% - 60px); } .install-card .btn.primary { margin-left: 48px; } }

/* ---------------- schedule ---------------- */
.weekbar { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 4px; margin: 10px 0 6px; }
.weekbar .icon { font-size: var(--fs-3xl); line-height: 1; color: var(--ink-2); height: 56px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dayb { display: grid; justify-items: center; gap: 1px; padding: 7px 0 5px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; font: inherit; }
.dayb small { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.dayb b { font-size: var(--fs-lg); } .dayb i { font-style: normal; font-size: var(--fs-2xs); font-weight: 800; color: var(--gold); min-height: .9em; }
.dayb.today b { color: var(--gold-2); } .dayb.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); color: #fff; }
.sched-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 10px; } .sched-sub p { margin: 0; flex: 1 1 auto; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 6px 12px; font: inherit; font-size: var(--fs-sm); font-weight: 650; cursor: pointer; }
.seg button[aria-pressed=true] { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold-2); }
.aps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ap { display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; padding: 12px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--r); background: var(--card); }
.ap.st-onway { border-left-color: var(--green); } .ap.st-done { border-left-color: var(--line-2); opacity: .7; } .ap.st-cancelled { border-left-color: var(--red); opacity: .6; } .ap.st-cancelled .ap-main > b { text-decoration: line-through; }
.ap-time b { display: block; font-size: var(--fs-2xl); font-variant-numeric: tabular-nums; } .ap-time small { color: var(--muted); font-size: var(--fs-2xs); }
.ap-main { min-width: 0; } .ap-main > b { display: block; } .ap-main small { display: block; color: var(--muted); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.ap-main .who { color: var(--ink-2); } .ap-main .who.open { color: var(--gold-2); font-weight: 650; } .ap-notes { font-style: italic; }
.ap-main .clash { color: var(--amber); font-weight: 650; }
.ap-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ap-more { position: relative; } .ap-more > summary { list-style: none; cursor: pointer; } .ap-more > summary::-webkit-details-marker { display: none; }
.ap-more-in { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ap-more[open] { flex-basis: 100%; }
.aps.mini li { list-style: none; } .upc { width: 100%; text-align: left; display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.upc span { color: var(--muted); font-size: var(--fs-sm); }
h2.sec { font-size: var(--fs-base); margin: 18px 0 8px; color: var(--ink-2); }
.alert-cta { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; margin: 6px 0 4px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); background: color-mix(in srgb, var(--gold) 8%, transparent); color: var(--ink); font: inherit; cursor: pointer; }
.alert-cta svg { color: var(--gold); flex: none; } .alert-cta b { display: block; } .alert-cta small { color: var(--muted); }
.nextup { margin: 10px 0 14px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); border-left: 3px solid var(--gold); border-radius: var(--r); background: color-mix(in srgb, var(--gold) 7%, transparent); }
.nextup > a { display: grid; gap: 1px; color: var(--ink); text-decoration: none; } .nextup small { color: var(--gold-2); font-weight: 700; font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .05em; }
.nextup span { color: var(--muted); font-size: var(--fs-sm); } .nextup .actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.eta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
ol.steps { padding-left: 20px; } ol.steps li { margin: 6px 0; }
@media (max-width: 420px) { .ap { grid-template-columns: 54px 1fr; padding: 10px; } .dayb { padding: 6px 0 4px; } .weekbar { grid-template-columns: 28px 1fr 28px; } }

/* ---------- making more per job: reminders, profit, booking, add-ons, report ---------- */
.todo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 8px 0; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); background: color-mix(in srgb, var(--gold) 8%, transparent); color: var(--ink); text-decoration: none; }
.todo svg { color: var(--gold); flex: none; } .todo span { flex: 1; min-width: 0; } .todo b { display: block; } .todo small { color: var(--muted); } .todo i { font-style: normal; color: var(--gold-2); font-size: var(--fs-2xl); }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--gold); color: #1b1203; font-size: var(--fs-2xs); font-weight: 800; vertical-align: middle; }
.stats + .stats { margin-top: 10px; } .stats .neg, .pl .neg { color: var(--red) !important; } .pl .pos { color: var(--green); }
.chase-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); } .chase-row:first-child { border-top: 0; }
.chase-row a { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; } .chase-row a small { display: block; color: var(--muted); font-size: var(--fs-xs); } .chase-row .amt { font-weight: 750; }
.costs h2 small { font-size: var(--fs-xs); font-weight: 600; margin-left: 6px; }
.cost-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); } .cost-list li span { flex: 1; }
.cost-add { display: grid; grid-template-columns: minmax(0, 1fr) 120px auto; gap: 8px; margin: 10px 0 14px; align-items: center; }
.pl > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.pl > div.t { color: var(--ink); font-weight: 700; } .pl > div.t b { font-size: var(--fs-xl); }
.pl .mins { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; } .pl .mins input { width: 90px; padding: 7px 9px; text-align: right; }
.addons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; } .addons small { width: 100%; }
.addon { min-height: 40px; padding: 7px 12px; border-radius: var(--r-sm); border: 1px dashed rgba(255, 209, 102, .55); background: color-mix(in srgb, var(--gold) 6%, transparent); color: var(--ink); font: 650 .9rem var(--font); cursor: pointer; } .addon b { color: var(--gold-2); margin-left: 4px; }
.addon:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.ah-chip { margin-left: auto; }
.ahbox .three { margin-top: 10px; } .ahbox .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.breq { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); } .breq:first-child { border-top: 0; }
.breq > div:first-child { flex: 1 1 220px; min-width: 0; } .breq small { display: block; color: var(--ink-2); font-size: var(--fs-sm); } .breq .actions { margin: 0; }
.breqs { border-left: 3px solid var(--gold); }
.route-row { margin: 8px 0; }
.fld.inline { display: flex; align-items: center; gap: 10px; } .fld.inline select { width: auto; }
.tablewrap { overflow-x: auto; } table.rep { width: 100%; min-width: 420px; } table.rep th { text-align: left; font-size: var(--fs-2xs); color: var(--muted); font-weight: 700; padding: 6px 4px; } table.rep th.r { text-align: right; } table.rep td { padding: 7px 4px; }
@media (max-width: 520px) { .cost-add { grid-template-columns: 1fr 110px; } .cost-add .btn { grid-column: 1 / -1; } .ah-chip { margin-left: 0; } }

/* offline strip + waiting team posts */
.banner.net { background: rgba(96, 165, 250, .10); color: #cfe0ff; border-bottom-color: rgba(96, 165, 250, .25); }
.banner.net.off { background: rgba(148, 163, 184, .14); color: #e2e8f0; }
.post .waiting { color: var(--gold-2); font-weight: 600; }

/* invoice branding card */
.brandcard .logo-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
/* the logo always stays inside its box (a tall/large image used to spill over the buttons); checkered = see-through */
.brandcard .logo-box { box-sizing: border-box; width: 192px; height: 84px; flex: none; overflow: hidden; display: block; position: relative; border: 1px solid var(--line, #2a3242); border-radius: 8px; padding: 6px;
  background: #fff repeating-conic-gradient(#e8ecf2 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.brandcard .logo-box img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.brandcard .logo-box span { display: grid; place-items: center; height: 100%; }
.brandcard .logo-row .actions { flex-wrap: wrap; }
/* logo editor */
.lx { display: grid; gap: 10px; }
.lx-stage { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line, #2a3242); background: #fff repeating-conic-gradient(#e8ecf2 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.lx-stage canvas { display: block; width: 100%; height: auto; cursor: grab; touch-action: none; }
.lx-stage canvas:active { cursor: grabbing; }
.lx-stage canvas:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.lx input[type=range] { width: 100%; accent-color: var(--gold); }
.lx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; }
.lx-l { display: block; font-size: var(--fs-xs); margin-bottom: 4px; color: var(--muted, #94a3b8); font-weight: 600; }
.lx-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.lx-seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line, #2a3242); background: transparent; color: inherit; font: inherit; font-size: var(--fs-sm); cursor: pointer; transition: border-color .15s, background .15s; }
.lx-seg button i { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(148, 163, 184, .6); }
.lx-seg button[data-lx-bg=none] i { background: repeating-conic-gradient(#cbd5e1 0 25%, #fff 0 50%) 0 0 / 6px 6px; }
.lx-seg button[aria-checked=true] { border-color: var(--gold); background: rgba(250, 204, 21, .12); box-shadow: inset 0 0 0 1px var(--gold); }
.lx-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-tools { margin: 0; }
.lx-prev { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.lx-p { margin: 0; text-align: center; }
.lx-p img { display: block; width: 100%; height: 56px; object-fit: contain; }
.lx-p.dark img { background: #0f172a; padding: 6px; border-radius: 8px; box-sizing: border-box; }
.lx-p.light img { background: #fff; padding: 6px; border-radius: 8px; box-sizing: border-box; border: 1px solid #e2e8f0; }
.lx-p.round span { display: block; width: 56px; height: 56px; border-radius: 50%; background: #fff; padding: 5px; box-sizing: border-box; overflow: hidden; margin: 0 auto; }
.lx-p.round img { height: 100%; }
.lx-p figcaption { font-size: var(--fs-2xs); color: var(--muted, #94a3b8); margin-top: 4px; }
@media (max-width: 420px) { .lx-grid { grid-template-columns: minmax(0, 1fr); } }
.brandcard .logo-box span { color: #64748b; font-size: var(--fs-sm); }
.brandcard .colrow { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.brandcard input[type=color] { width: 54px; height: 40px; padding: 2px; border-radius: 4px; background: transparent; }
.brandcard .styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.brandcard .style-opt { display: block; cursor: pointer; }
.brandcard .style-opt input { position: absolute; opacity: 0; }
.brandcard .style-opt span { display: block; padding: 10px; border: 1px solid var(--line, #2a3242); border-radius: 4px; height: 100%; }
.brandcard .style-opt small { display: block; color: var(--muted, #94a3b8); font-size: var(--fs-2xs); margin-top: 2px; }
.brandcard .style-opt input:checked + span { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.brandcard .style-opt input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) { .brandcard .styles { grid-template-columns: minmax(0, 1fr); } }

/* header icons (Settings / Admin) when the phone tab bar is full */
.hdr-ic { display: none; }
@media (max-width: 720px) {
  .hdr-ic { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-left: 6px; border-radius: var(--r); color: var(--muted); border: 1px solid var(--line-2); }
  .hdr-ic svg { width: 20px; height: 20px; } .hdr-ic[aria-current] { color: var(--gold); border-color: var(--gold); }
  .top .gift + .hdr-ic, .top .gift ~ .hdr-ic { margin-left: 6px; }
  .top .brand + .hdr-ic { margin-left: auto; }
}

/* Customers (CRM) */
.crm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.crm-stats div { background: var(--card, rgba(255,255,255,.03)); border: 1px solid var(--line); border-radius: var(--r-sm, 12px); padding: 10px 8px; text-align: center; min-width: 0; }
.crm-stats b { display: block; font-size: var(--fs-xl); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .crm-stats small { color: var(--muted); font-size: var(--fs-2xs); }
@media (max-width: 420px) { .crm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.crm-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px; }
.crm-tools input[type=search] { flex: 1 1 100%; min-width: 0; padding: 11px 12px; border-radius: var(--r-sm, 12px); border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: inherit; }
.crm-tags { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 6px; }
.crm-tags .chip { flex: none; border: 1px solid var(--line-2); background: transparent; color: var(--muted); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: var(--fs-xs); font-weight: 650; cursor: pointer; }
.crm-tags .chip.on { border-color: var(--gold); color: var(--gold-2); }
.crm-list { list-style: none; margin: 0; padding: 0; }
.crm-row { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); padding: 8px 0; } .crm-row:first-child { border-top: 0; }
.crm-row .crm-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: 0; color: var(--ink); font: inherit; padding: 2px 0; cursor: pointer; }
.crm-row .crm-who > span:last-child { min-width: 0; } .crm-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .crm-row small { display: block; color: var(--muted); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-row .av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: rgba(245, 130, 31, .16); color: var(--gold-2); }
.crm-row .icon { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); color: var(--ink-2, var(--ink)); border: 1px solid var(--line-2); }
.crm-row .icon svg { width: 19px; height: 19px; }
.tag { font-style: normal; font-size: var(--fs-2xs); font-weight: 700; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); vertical-align: 2px; } .tag.off { color: #f87171; border-color: rgba(248, 113, 113, .5); }
.crm-preview { border: 1px dashed var(--line-2); border-radius: var(--r-sm, 12px); padding: 10px 12px; margin: 10px 0; } .crm-preview small { color: var(--muted); } .crm-preview p { margin: 4px 0 0; white-space: pre-wrap; }
.crm-picklist { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm, 12px); padding: 6px 10px; margin-bottom: 10px; }
.crm-q .done b, .crm-q .skipped b { color: var(--muted); text-decoration: line-through; } .crm-q .chase-row > span { flex: 1; min-width: 0; } .crm-q small { display: block; color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; font-weight: 600; cursor: pointer; } .check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); flex: none; }
.badge[hidden] { display: none; }   /* unread count 0: the inline-grid rule above must not override [hidden] */
/* live customer updates */
.upd .upd-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; } .upd h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; } .upd h2 svg { width: 20px; height: 20px; }
.upd-row { display: flex; flex-wrap: wrap; gap: 8px; } .upd-row .btn { flex: 1 1 140px; }
/* Sign in with Apple: Apple's black button style, same height and shape as Google's large pill */
.signin-btns { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 14px 0 6px; }
.apple-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 240px; height: 44px; padding: 0 22px; border-radius: 999px; background: #000; color: #fff; font: 600 15px -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif; text-decoration: none; border: 1px solid #000; }
.apple-btn:hover { background: #1a1a1a; } .apple-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .apple-btn { background: #fff; color: #000; border-color: #fff; } .apple-btn:hover { background: #ececec; } }
/* compliance help */
.comp-card h2 { display: flex; align-items: center; gap: 8px; } .comp-card h2 svg { width: 20px; height: 20px; }
.comp-scope { list-style: none; padding: 0; margin: 8px 0 12px; display: flex; flex-wrap: wrap; gap: 6px; } .comp-scope li { font-size: var(--fs-xs); font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.comp-prog { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 10px; } .comp-prog i { display: block; height: 100%; background: var(--gold); }
details.comp summary { cursor: pointer; list-style: none; } details.comp summary::-webkit-details-marker { display: none; } details.comp summary b { display: block; } details.comp summary small { color: var(--muted); }
details.comp summary::after { content: '+'; float: right; font-weight: 800; color: var(--muted); margin-top: -1.6em; } details.comp[open] summary::after { content: '–'; }
.comp-check { list-style: none; padding: 0; margin: 8px 0; } .comp-check .fld.inline { margin: -4px 0 6px 30px; max-width: 220px; } .comp-check small.soon { color: var(--gold-2); font-weight: 700; margin-left: 30px; } .comp-check small.warn { margin-left: 30px; }
.comp-links { display: flex; flex-direction: column; gap: 6px; } .comp-links a { color: var(--gold-2); font-weight: 600; }
.partner { border: 1px solid var(--line-2); border-radius: var(--r-sm, 12px); padding: 12px 14px; margin-top: 10px; } .partner b { display: block; font-size: var(--fs-lg); } .partner small { color: var(--muted); } .partner ul { margin: 8px 0; padding-left: 18px; } .partner .actions { margin-top: 8px; }
/* one-tap contact bar on every job */
.qc { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin: 4px 0 14px; }
.qc-b { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 58px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--card, transparent); color: var(--ink); font: 700 .8rem var(--font, inherit); text-decoration: none; cursor: pointer; }
.qc-b svg { width: 22px; height: 22px; } .qc-b.on { background: var(--gold); border-color: transparent; color: #1b1203; }
/* help us improve + admin triage */
.fb-card h2, .card h2 svg { vertical-align: -3px; } .fb-card h2 svg, section.card > h2 > svg { width: 20px; height: 20px; }
.fb-card .seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.fb-mine { list-style: none; padding: 0; } .fb-mine li { border-top: 1px solid var(--line); padding: 8px 0; } .fb-mine p { margin: 2px 0; }
.fb-reply { border-left: 3px solid var(--gold); padding-left: 8px; font-weight: 600; }
.fbs-done { color: #34d399; } .fbs-planned { color: var(--gold-2); } .fbs-wontfix { color: var(--muted); }
.fb-list { list-style: none; padding: 0; margin: 0; } .fb { border-top: 1px solid var(--line); padding: 10px 0; } .fb.st-done, .fb.st-wontfix { opacity: .6; }
.fb-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .fb p { margin: 4px 0 8px; white-space: pre-wrap; }
.fb-t { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; } @media (max-width: 520px) { .fb-t { grid-template-columns: 1fr; } }

/* distributors (admin) + team plan pill */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .grid2 label { display: block; font-weight: 600; font-size: var(--fs-sm); } .grid2 input { width: 100%; margin-top: 4px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.tablewrap { overflow-x: auto; } .dist-t td { vertical-align: top; } .dist-t tr.off { opacity: .55; } .dist-btns { display: flex; flex-wrap: wrap; gap: 6px; } .dist-rows ul { margin: 6px 0 0; padding-left: 18px; font-size: var(--fs-sm); }
.pill { display: inline-block; font-size: var(--fs-2xs); font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--accent, #f5821f); color: #fff; vertical-align: middle; }
.roster-l { list-style: none; padding: 0; margin: 8px 0 0; } .roster-l li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line, #2a3446); } .roster-l small { display: block; color: var(--muted, #a3adbd); }
.promo-d { margin-top: 12px; } .promo-d summary { cursor: pointer; font-weight: 600; } .promo-f { display: flex; gap: 8px; margin-top: 8px; } .promo-f input { flex: 1; }

/* setup guide */
.guide { border: 1px solid var(--accent, #f5821f); } .guide-top { display: flex; justify-content: space-between; gap: 10px; } .guide h2 { margin: 2px 0; }
.guide-bar { height: 6px; border-radius: 6px; background: var(--line, #2a3446); margin: 10px 0; overflow: hidden; } .guide-bar i { display: block; height: 100%; background: var(--accent, #f5821f); border-radius: 6px; }
.guide details { margin-top: 8px; } .guide summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.guide-l { list-style: none; padding: 0; margin: 4px 0 0; } .gs { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line, #2a3446); }
.gs small { display: block; color: var(--muted, #a3adbd); } .gs-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line, #3a4456); display: grid; place-items: center; font-size: var(--fs-2xs); font-weight: 800; }
.gs-done .gs-dot { background: var(--green, #34d399); border-color: transparent; color: #05210f; } .gs-done b { text-decoration: line-through; opacity: .7; } .gs-skipped { opacity: .6; }
.gs-acts { display: flex; gap: 8px; align-items: center; } .card.flash { outline: 3px solid var(--accent, #f5821f); outline-offset: 2px; transition: outline-color .4s; }
.guide .linkbtn { background: none; border: 0; padding: 0; min-height: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }

/* ---- web-26: one-tap job pins, settings blocks, side panel, pay links, reminders ---- */
.rc { grid-template-columns: minmax(0, 2fr) 110px 130px 44px 40px; }
@media (max-width: 620px) { .rc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px 40px; } }
.rc-q { display: grid; place-items: center; cursor: pointer; border-radius: var(--r); border: 1px solid var(--line-2); min-height: 44px; }
.rc-q input { position: absolute; opacity: 0; pointer-events: none; }
.rc-q span { font-size: var(--fs-xl); filter: grayscale(1) opacity(.45); transition: filter .15s; }
.rc-q:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.rc-q:has(input:checked) span { filter: none; }
.quick-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.quick-hd .btn { min-height: 34px; padding: 4px 10px; font-size: var(--fs-xs); }
.milesrow { grid-template-columns: minmax(0, 1fr) auto auto; }
.sblocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 24px; }
.sblock { display: grid; gap: 3px; align-content: start; padding: 16px 14px; min-height: 112px; border-radius: 18px; text-decoration: none; color: var(--ink); border: 1px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box; box-shadow: var(--shadow); transition: transform .12s; }
.sblock:active { transform: scale(.97); }
.sblock .sb-ic { font-size: 1.7rem; line-height: 1; margin-bottom: 6px; }
.sblock b { font-size: var(--fs-base); }
.sblock small { color: var(--muted); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.back { color: var(--muted); text-decoration: none; font-weight: 650; }
.hdr-ic.pk { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink); cursor: pointer; }
.hdr-ic.pk .pk-dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hdr-ic.pk .badge { position: absolute; top: -4px; right: -4px; }
.sidepanel { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .5); }
.sidepanel[hidden] { display: none; }
.sp-in { position: absolute; top: 0; right: 0; bottom: 0; width: min(300px, 84vw); padding: max(14px, env(safe-area-inset-top)) 12px 20px; background: var(--card-solid); border-left: 1px solid var(--line-2); overflow-y: auto; animation: spslide .18s ease-out; }
@keyframes spslide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sp-hd { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; }
.sp-a { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 650; font-size: var(--fs-base); }
.sp-a:hover, .sp-a[aria-current] { background: color-mix(in srgb, var(--gold) 10%, transparent); color: var(--gold-2); }
.sp-ic { display: grid; place-items: center; width: 28px; font-size: var(--fs-2xl); }
.sp-ic svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .tabbar.n2 { left: 18%; right: 18%; } }
.payopt.procs { display: block; }
.proclist { display: grid; gap: 8px; margin: 10px 0; }
/* one pay link = a stacked card: processor + remove, how-to guide, full-width link, live check, name / saves a card / Test link */
.proc { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(255, 255, 255, .02); min-width: 0; }
.proc-top { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 8px; align-items: center; }
.proc-top select, .proc [name=pr_u], .proc [name=pr_n] { width: 100%; min-width: 0; }
.proc [name=pr_u] { font-size: 16px; }
.proc-guide { font-size: 14px; } .proc-guide summary { cursor: pointer; color: var(--gold); font-weight: 600; }
.proc-guide ol { margin: 6px 0; padding-left: 20px; } .proc-guide li { margin: 3px 0; }
.proc-better { margin: 6px 0; padding: 8px 10px; border-radius: var(--r); background: rgba(80, 200, 120, .1); }
.proc-st { margin: 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.proc-st.ok { color: #6fdc8c; } .proc-st.todo { color: var(--gold); } .proc-st.warn { color: var(--amber); } .proc-st.bad { color: #ff6b6b; }
.proc-row2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.proc-row2 [name=pr_n] { flex: 1 1 160px; }
.proc .chip { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; font-size: 14px; }
.proc .chip.off { opacity: .5; } .proc .chip.warn { color: var(--amber); } .proc [hidden] { display: none !important; }
.paysec { display: block; border-color: rgba(80, 200, 120, .45); cursor: default; }
.secrows { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.secrows li { position: relative; padding-left: 22px; font-size: 14px; }
.secrows li::before { content: '•'; position: absolute; left: 6px; color: var(--muted); }
.secrows li.ok::before { content: '✓'; color: #6fdc8c; left: 2px; } .secrows li.warn::before { content: '!'; color: var(--amber); left: 6px; font-weight: 700; }
.seclog summary { cursor: pointer; color: var(--gold); font-size: 14px; } .seclog ul { margin: 6px 0; padding-left: 18px; font-size: 13px; }
.sectips { display: block; margin-top: 8px; }
.checklist { padding-left: 20px; } .checklist li { margin: 4px 0; }
.todo.rem { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; }
.rem-ic { font-size: 1.4rem; }

/* ==== web-27 design: flat charcoal, big rounded cards, pill buttons, light display type (replaces the glass/road look) ==== */
:root {
  --bg: #0b0b0d; --card: #161619; --card-2: #1f1f23; --card-solid: #161619; --ink: #f5f5f7; --ink-2: #c9c9cf; --muted: #8c8c96;
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .12); --edge: linear-gradient(var(--line), var(--line));
  --r: 22px; --r-sm: 16px; --r-xs: 999px; --shadow: none;
  --font: "Inter", "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --tab-h: 70px;
}
html, body { background: var(--bg); }
.lr-bg { display: none !important; }
.card, .panel, .jobs a, .stat, .setup-card, .tabs button, .payopt, .dlg, .sum button, .tabbar, .flow, .top { backdrop-filter: none; -webkit-backdrop-filter: none; }
h1 { font-size: 2.15rem; font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
h2 { font-weight: 600; letter-spacing: -.02em; }
.eyebrow { color: var(--muted); letter-spacing: .02em; text-transform: none; font-weight: 500; font-size: var(--fs-sm); }

/* header: brand left, round icon buttons right */
.top { background: var(--bg); border-bottom: 0; padding: 14px 18px 8px; padding-top: max(14px, env(safe-area-inset-top)); }
.top .brand { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.03em; }
.top .brand img { width: 34px; height: 34px; border-radius: 50%; box-shadow: none; }
.hdr-ic, .hdr-ic.pk { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--card-2); color: var(--ink); }
.hdr-ic.pk .pk-dot { top: 9px; right: 9px; }
.topnav a { border-radius: 999px; }
.topnav a[aria-current] { background: var(--ink); color: #0b0b0d; }

/* buttons: pills */
.btn { border-radius: 999px; border: 0; background: var(--card-2); min-height: 48px; padding: 10px 20px; font-weight: 600; }
.btn:hover { background: #2a2a2f; }
.btn.primary { background: var(--gold); color: #0b0b0d; box-shadow: none; }
.btn.primary:hover { filter: brightness(1.08); box-shadow: none; }
.btn.big { min-height: 58px; border-radius: 999px; font-size: var(--fs-lg); }
.btn.small { border-radius: 999px; min-height: 38px; }
.btn.ghost { background: transparent; }
.icon { border-radius: 50%; }
input, select, textarea { border-radius: 16px; border: 1px solid transparent; background: #111114; padding: 14px 16px; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); }
.chip, .seg span { border-radius: 999px; border-color: var(--line-2); }
.seg input:checked + span, .chip:has(input:checked) { background: var(--ink); color: #0b0b0d; border-color: var(--ink); }

/* cards */
.card, .stat, .sblock, .panel, .flow, details.more, details.co, .payopt, .planbox, .plan-c, .note, .reflink, .lockid, .smart, .tip, .nudge, .rv-chip, .todo, .nextup, .perks li, .item, .ph-step, .tog, .qbtn {
  border-radius: var(--r); }
.card, .stat, .sblock { background: var(--card); border: 0; box-shadow: none; }
.card { padding: 20px; }
form.card h2 { text-transform: none; letter-spacing: -.01em; font-size: var(--fs-base); color: var(--ink); font-weight: 600; }
form.card h2::after { background: var(--line); }
.tip, .nudge, .rv-chip, .todo, .nextup { background: var(--card); border: 0; }
.nextup, .todo { border-left: 0; position: relative; }
.todo svg, .todo i { color: var(--gold); }
.st, .trade-tag { border-radius: 999px; }
.trade-tag { border: 0; background: var(--card-2); color: var(--ink-2); text-transform: none; letter-spacing: 0; font-size: var(--fs-2xs); padding: 4px 10px; }
.trade-tag::before { border-radius: 50%; }

/* home */
.hello { margin: 10px 0 18px; } .hello h1, main h1 { font-size: 2.6rem; font-weight: 500; }
.sum { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sum button { background: var(--card); border: 0; border-radius: 26px; padding: 18px; min-height: 112px; display: flex; flex-direction: column-reverse; justify-content: flex-start; gap: 4px; }
.sum button::after { content: '\2197'; filter: none; opacity: 1; right: 14px; top: 14px; width: 40px; height: 40px; display: grid; place-items: center; font-size: var(--fs-xl); background: var(--card-2) !important; color: var(--ink); }
.sum b { font-size: 1.9rem; font-weight: 600; letter-spacing: -.03em; margin-top: auto; }
.sum span { font-size: var(--fs-sm); font-weight: 500; padding-right: 44px; }
.sum .s-ok { grid-column: 1 / -1; order: -1; background: var(--gold); color: #0b0b0d; min-height: 150px; }
.sum .s-ok span { color: rgba(0, 0, 0, .62); font-size: var(--fs-base); } .sum .s-ok b { font-size: 2.6rem; }
.sum .s-ok::after { background: #0b0b0d !important; color: var(--gold); }
.tabs button { border-radius: 999px; border: 0; background: var(--card); padding: 10px 16px; font-weight: 600; }
.tabs button[aria-pressed] { background: var(--ink); color: #0b0b0d; }
.jobs { gap: 12px; }
.jobs a { background: var(--card); border: 0; border-radius: 24px; padding: 16px; }
.jobs a::before { display: none; }
.jobs a:hover, .jobs a:focus-visible { transform: none; box-shadow: 0 0 0 1px var(--line-2); }
.av { border-radius: 50%; width: 48px; height: 48px; }
.amt { font-size: var(--fs-xl); font-weight: 650; }
.quick-row .btn, .qbtn { border-radius: 20px; }

/* settings blocks + side panel */
.sblocks { gap: 12px; }
.sblock { border-radius: 26px; min-height: 124px; padding: 18px 16px; }
.sblock .sb-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; font-size: var(--fs-2xl); }
.sp-in { background: var(--card); border-left: 0; border-radius: 28px 0 0 28px; }
.sp-a { border-radius: 999px; }
.sp-a:hover, .sp-a[aria-current] { background: var(--card-2); color: var(--ink); }
.sp-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--card-2); }

/* dialog: sheet */
.dlg { border: 0; border-radius: 30px; background: var(--card); }
.dlg::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: none; }

/* phone tab bar: floating pill, round center button */
@media (max-width: 720px) {
  .tabbar { background: #1b1b1f; border: 0; border-radius: 999px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); left: 14px; right: 14px; }
  .tabbar a { border-radius: 999px; }
  .tabbar a[aria-current] { color: var(--ink); }
  .tabbar a[aria-current] svg { filter: none; color: var(--gold); }
  .fab { width: 60px; height: 60px; margin-top: 0; border-radius: 50%; background: var(--gold); color: #0b0b0d; box-shadow: none; }
  .hello h1 { font-size: 2.3rem; }
}
@media (max-width: 760px) { .tabbar.n2 { left: 16%; right: 16%; } }

/* sign-in */
.setup { padding: 16px; }
.setup-card { background: var(--card); border: 0; border-radius: 34px; box-shadow: none; padding: 14px 14px 22px; }
.setup-card:not(.signin) { padding: 24px; }
.si-hero { position: relative; display: grid; justify-items: center; gap: 8px; padding: 34px 18px 30px; border-radius: 26px; text-align: center; color: #0b0b0d;
  background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, #fff 35%, var(--gold)) 0%, var(--gold) 45%, color-mix(in srgb, #000 30%, var(--gold)) 100%); overflow: hidden; }
.si-hero::after { content: ''; position: absolute; inset: auto -20% -60% -20%; height: 80%; border-radius: 50%; background: rgba(0, 0, 0, .12); }
.si-hero img { width: 84px; height: 84px; border-radius: 50%; background: #0b0b0d; padding: 6px; position: relative; z-index: 1; }
.si-hero b { font-size: var(--fs-3xl); letter-spacing: -.03em; position: relative; z-index: 1; }
.si-hero span { font-size: var(--fs-md); opacity: .75; position: relative; z-index: 1; }
.signin .si-body { padding: 18px 8px 0; }
.signin h1 { background: none; color: var(--ink); -webkit-background-clip: initial; background-clip: initial; font-size: 2.2rem; font-weight: 500; text-align: left; margin: 4px 0 8px; }
.signin .trade-tag { margin: 0 0 6px; }
.perks { gap: 8px; }
.perks li { background: #111114; border: 0; border-radius: 18px; font-weight: 500; }
.perks b { border-radius: 50%; background: var(--card-2); width: 36px; height: 36px; }
.si-or { text-align: center; color: var(--muted); font-size: var(--fs-sm); margin: 20px 0 10px; }
.si-tiles { display: flex; justify-content: center; gap: 14px; }
.si-tile { display: grid; justify-items: center; gap: 8px; text-decoration: none; color: var(--ink-2); font-size: var(--fs-xs); font-weight: 600; }
.si-sq { width: 88px; height: 88px; border-radius: 26px; background: #111114; border: 1px solid var(--line-2); display: grid; place-items: center; transition: border-color .15s, transform .12s; }
.si-tile:hover .si-sq { border-color: var(--gold); } .si-tile:active .si-sq { transform: scale(.96); }
.si-ring { width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .28); display: grid; place-items: center; overflow: hidden; }
.si-ring .g_id_signin { margin: 0; }
.si-a .si-ring { background: #fff; color: #000; border-color: #fff; }
.si-a .si-ring svg { width: 20px; height: 24px; }
.si-ph { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 700 1.2rem Arial, sans-serif; color: #4285f4; }
.signin .fine { text-align: center; }
.brandhero img { border-radius: 50%; box-shadow: none; }

/* web-27 icon style A: white line icons in a thin outline ring (Stripe header look) */
.perks b, .sblock .sb-ic, .sp-ic, .hdr-ic, .hdr-ic.pk, .sum button::after, .todo > svg, .rem-ic {
  background: transparent !important; border: 1px solid rgba(255, 255, 255, .28) !important; border-radius: 50% !important; color: var(--ink) !important; }
.perks b { width: 40px; height: 40px; }
.perks b svg, .sp-ic svg { width: 19px; height: 19px; }
.sblock .sb-ic { width: 46px; height: 46px; }
.sblock .sb-ic svg { width: 21px; height: 21px; }
.sp-ic { width: 40px; height: 40px; flex: none; }
.todo > svg { width: 40px; height: 40px; padding: 9px; flex: none; }
.rem-ic { width: 40px; height: 40px; display: grid; place-items: center; font-size: var(--fs-xl); }
.sum .s-ok::after { border-color: rgba(0, 0, 0, .35) !important; color: #0b0b0d !important; }
.sp-a[aria-current] .sp-ic { border-color: var(--ink) !important; }
.sblock:hover .sb-ic, .si-tile:hover .si-ring { border-color: var(--ink) !important; }
.hi { width: 1.25em; height: 1.25em; vertical-align: -.25em; flex: none; display: inline-block; }

/* web-29 background: user picks it (Settings > Look). Default "glass": road animation behind see-through cards, higher text contrast. */
:root { --ink: #ffffff; --ink-2: #e4e4ea; --muted: #b0b0bb; }
html[data-bg] .lr-bg { display: none !important; }
html[data-bg=glass] .lr-bg, html:not([data-bg]) .lr-bg { display: block !important; }
html[data-bg=glass], html:not([data-bg]) { background: #05060a; }
html[data-bg=glass] body, html:not([data-bg]) body { background: transparent; }
html[data-bg=midnight], html[data-bg=midnight] body { background: radial-gradient(120% 70% at 85% -10%, #1d3a8a 0%, transparent 55%), radial-gradient(90% 60% at -10% 110%, #3b1d6e 0%, transparent 55%), #070b18; background-attachment: fixed; }
html[data-bg=accent], html[data-bg=accent] body { background: radial-gradient(110% 65% at 90% -12%, color-mix(in srgb, var(--gold) 55%, transparent) 0%, transparent 58%), radial-gradient(80% 50% at -10% 105%, color-mix(in srgb, var(--gold) 22%, transparent) 0%, transparent 60%), #08080a; background-attachment: fixed; }
html[data-bg=custom], html[data-bg=custom] body { background: radial-gradient(120% 70% at 85% -10%, color-mix(in srgb, var(--bgc, #1e293b) 70%, #fff 10%) 0%, transparent 60%), color-mix(in srgb, var(--bgc, #1e293b) 45%, #000); background-attachment: fixed; }
html[data-bg=solid], html[data-bg=solid] body { background: #0b0b0d; }

/* see-through cards on every background except Solid */
html:not([data-bg=solid]) { --card: rgba(18, 18, 24, .58); --card-2: rgba(255, 255, 255, .09); --line: rgba(255, 255, 255, .12); --line-2: rgba(255, 255, 255, .18); }
html:not([data-bg=solid]) :is(.card, .stat, .sblock, .jobs a, .sum button:not(.s-ok), .tabs button:not([aria-pressed]), .tip, .nudge, .rv-chip, .todo, .nextup, .perks li, .setup-card, .dlg, .sp-in, .tabbar, .hdr-ic, .btn:not(.primary):not(.ghost)) {
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 0 0 1px var(--line); }
html:not([data-bg=solid]) .top { background: rgba(5, 6, 10, .55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
html:not([data-bg=solid]) .dlg { background: rgba(20, 20, 26, .88); }
html:not([data-bg=solid]) .sp-in { background: rgba(16, 16, 22, .86); }
html:not([data-bg=solid]) input, html:not([data-bg=solid]) select, html:not([data-bg=solid]) textarea { background: rgba(0, 0, 0, .45); border-color: var(--line); }
html:not([data-bg=solid]) .sum .s-ok { box-shadow: 0 18px 50px color-mix(in srgb, var(--gold) 30%, transparent); }
.jobs small, .muted { color: var(--muted); }

/* background picker */
.bgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.bgo { position: relative; display: grid; gap: 2px; cursor: pointer; padding: 8px; border-radius: 20px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.bgo input { position: absolute; opacity: 0; }
.bgo i { display: block; height: 62px; border-radius: var(--r); margin-bottom: 6px; }
.bgo b { font-size: var(--fs-sm); } .bgo small { color: var(--muted); font-size: var(--fs-2xs); }
.bgo:has(input:checked) { box-shadow: inset 0 0 0 2px var(--gold); }
.bgo:has(input:focus-visible) { outline: 3px solid rgba(96, 165, 250, .8); outline-offset: 2px; }
.bgo-glass i { background: linear-gradient(180deg, #0b1020 0%, #111827 55%, #1f2937 56%, #111827 100%); position: relative; overflow: hidden; }
.bgo-glass i::after { content: ''; position: absolute; left: 18%; right: 18%; top: 20%; bottom: 20%; border-radius: var(--r); background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.bgo-midnight i { background: radial-gradient(120% 90% at 85% 0%, #1d3a8a, transparent 60%), radial-gradient(90% 80% at 0% 100%, #3b1d6e, transparent 60%), #070b18; }
.bgo-accent i { background: radial-gradient(120% 90% at 90% 0%, color-mix(in srgb, var(--gold) 60%, transparent), transparent 62%), #08080a; }
.bgo-solid i { background: #0b0b0d; box-shadow: inset 0 0 0 1px var(--line-2); }
.bgo-custom i { background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--bgc) 75%, #fff 10%), transparent 62%), color-mix(in srgb, var(--bgc) 45%, #000); }
.bgc-row { margin-top: 10px; grid-template-columns: 1fr 64px; align-items: center; }
.bgc-row input { padding: 4px; height: 44px; border-radius: var(--r); }
.hi-c { width: 1.4em; height: 1.4em; }
.tile .ti .hi, .rem-ic .hi { width: 26px; height: 26px; }
.milesrow { grid-template-columns: minmax(72px, 1fr) auto auto; }
@media (max-width: 440px) { .milesrow { grid-template-columns: minmax(0, 1fr) auto; } .milesrow [data-act=miles] { grid-column: 1 / -1; } }

/* daily rhythm: Today card, Daily log, crew check-ins, replies */
.daycard { padding: 14px 16px; }
.dc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; } .dc-head h2 { margin: 0; font-size: var(--fs-lg); }
.dc-link, .dc-crew { color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; } .dc-link:hover, .dc-crew:hover { color: var(--ink); }
.dc-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dc-step { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: inherit; text-align: left; cursor: pointer; min-height: 56px; }
.dc-step b { font-size: var(--fs-md); color: var(--ink); } .dc-step small { color: var(--muted); font-size: var(--fs-2xs); }
.dc-step.now { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); } .dc-step.done { border-color: rgba(52, 211, 153, .45); } .dc-step.done b { color: var(--green); }
.dc-notes { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--card-2); font-size: var(--fs-md); overflow-wrap: anywhere; }
.dc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.dl-today { display: grid; gap: 10px; }
.dl-missing { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px dashed var(--line-2); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.dl-missing span { display: flex; flex-direction: column; gap: 2px; } .dl-missing small { color: var(--muted); } .dl-missing i { font-style: normal; color: var(--gold); font-weight: 650; white-space: nowrap; }
.dl-e { padding: 12px 14px; border-radius: var(--r-sm); background: var(--card-2); }
.dl-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .dl-h small { color: var(--muted); }
.dl-h .linkbtn { margin-left: auto; background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; font: inherit; cursor: pointer; }
.dl-e p { margin: 8px 0 0; overflow-wrap: anywhere; } .dl-notes, .post-notes { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--gold); background: color-mix(in srgb, var(--gold) 6%, transparent); border-radius: var(--r-xs); }
.dl-day { border-top: 1px solid var(--line); padding: 10px 0; } .dl-day summary { cursor: pointer; font-weight: 650; } .dl-day summary small { color: var(--muted); font-weight: 500; margin-left: 6px; } .dl-day .dl-e { margin-top: 8px; }
.crew-l { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.crew-l li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .crew-l li > b { flex: 1; min-width: 90px; } .crew-l small { color: var(--muted); font-weight: 500; }
.crew-s { display: flex; gap: 6px; flex-wrap: wrap; }
.cs { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); font-size: var(--fs-2xs); color: var(--muted); }
.cs.on { color: var(--green); border-color: rgba(52, 211, 153, .45); } .cs.due { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.post.checkin { border-left: 3px solid var(--green); }
.replies { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.replies li { display: flex; gap: 8px; align-items: flex-start; } .replies p { margin: 2px 0 0; overflow-wrap: anywhere; } .replies small { color: var(--muted); }
.av.xs { width: 26px; height: 26px; font-size: .68rem; flex: none; }
.reply { display: flex; gap: 8px; margin-top: 10px; } .reply input { flex: 1; min-width: 0; }
@media (max-width: 440px) { .dc-step { padding: 9px 10px; } .dc-step b { font-size: var(--fs-sm); } }

/* ---------- Books (round 17) ---------- */
.bk-period { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; }
.bk-segs { display: flex; flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.bk-seg { flex: 1; border: 0; background: transparent; color: var(--muted); padding: 8px 4px; font: inherit; font-size: var(--fs-sm); font-weight: 650; cursor: pointer; min-width: 0; }
.bk-seg.on { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold-2); }
.bk-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.bk-quick .btn svg { width: 18px; height: 18px; vertical-align: -3px; }
.rc-read { display: flex; align-items: center; gap: 14px; padding: 18px 4px; }
.rc-read .spin { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--gold); animation: rc-spin .8s linear infinite; }
@keyframes rc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rc-read .spin { animation-duration: 2.4s; } }
.rc-done { text-align: center; padding: 6px 0 4px; }
.rc-done .rc-amt { display: block; font-size: 2.2rem; line-height: 1.1; margin-bottom: 6px; color: var(--gold-2); }
.bk-tax .bk-big { font-size: var(--fs-3xl); color: var(--gold-2); }
.bk-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bk-bars li { display: grid; grid-template-columns: minmax(0, 11rem) 1fr auto; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.bk-bars li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-bars li i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); width: var(--w); }
.bk-list li { border-top: 1px solid var(--line); }
.bk-list li:first-child { border-top: 0; }
.bk-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 2px; background: none; border: 0; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.bk-row span { min-width: 0; } .bk-row span b, .bk-row span small { display: block; } .bk-row small { color: var(--muted); }
.bk-row svg { width: 14px; height: 14px; vertical-align: -2px; }
.bk-det summary { cursor: pointer; color: var(--muted); font-weight: 650; margin: 10px 0 4px; }
.todo.clock.on { border-color: rgba(96, 165, 250, .45); background: rgba(96, 165, 250, .10); }
.todo.bk-promo svg { width: 26px; height: 26px; }
@media (max-width: 480px) { .bk-bars li { grid-template-columns: minmax(0, 7.5rem) 1fr auto; } .bk-quick .btn { flex: 1 1 calc(50% - 8px); } }
@media print { html.print-books .nav, html.print-books .bk-quick, html.print-books .bk-period button.icon, html.print-books form, html.print-books .actions { display: none !important; } }
/* Register (POS) */
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.pos-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(255, 255, 255, .03); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.pos-item b { font-size: var(--fs-md); line-height: 1.2; overflow-wrap: anywhere; } .pos-item small { color: var(--muted); }
.pos-item:active { transform: scale(.98); } .pos-item.pos-custom { border-style: dashed; border-color: var(--gold); }
.pos-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pos-lines li:first-child { border-top: 0; }
.pos-ln b, .pos-ln small { display: block; overflow-wrap: anywhere; } .pos-ln small { color: var(--muted); }
.pos-qty { display: inline-flex; align-items: center; gap: 6px; } .pos-qty b { min-width: 1.6em; text-align: center; }
.pos-amt { min-width: 5.2em; text-align: right; }
.pos-tot { width: 100%; border-collapse: collapse; margin: 10px 0; } .pos-tot td { padding: 5px 0; } .pos-tot td.r { text-align: right; white-space: nowrap; }
.pos-tot tr.pos-sum td { border-top: 1px solid var(--line-2); padding-top: 9px; font-size: var(--fs-lg); }
.pos-total { font-size: 1.35rem; color: var(--gold-2); }
.pos-tips { margin: 4px 0 10px; }
.pos-charge { width: 100%; font-size: var(--fs-xl); }
.pos-due { font-size: var(--fs-xl); } .pos-due b { font-size: 1.6rem; color: var(--gold-2); }
.pos-tenders { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0 12px; }
.pos-cashq { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 8px 0 12px; }
.pos-change { text-align: center; font-size: var(--fs-2xl); } .pos-change b { display: block; font-size: 2.2rem; color: var(--green); }
.pos-wait { font-weight: 650; color: var(--gold-2); }
#pos-print { display: none; }
@media print { html.print-pos body > :not(#pos-print) { display: none !important; } html.print-pos #pos-print { display: block !important; color: #000; background: #fff; font: 12pt/1.4 system-ui, sans-serif; max-width: 80mm; } html.print-pos #pos-print .muted { color: #333; } }
/* Zelle QR in Settings (2026-11-24) */
.zqr .zqr-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.zqr .zqr-row img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; }

/* Getting paid, grouped (round 29) */
.payhub { display: grid; gap: 18px; }
.paytop { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(52, 211, 153, .06); }
.paytop small { display: block; color: var(--muted); margin-top: 2px; }
.paygrp h3 { margin: 0 0 4px; font-size: var(--fs-base); letter-spacing: .01em; }
.paygrp > p { margin: 0 0 10px; }
.pc-more { border: 1px dashed var(--line-2); border-radius: 16px; padding: 10px 14px; }
.pc-more > summary { cursor: pointer; list-style: none; }
.pc-more > summary::-webkit-details-marker { display: none; }
.pc-more > summary small { display: block; color: var(--muted); }
.pc-more[open] > summary { margin-bottom: 10px; }
.payopt input[disabled] { opacity: .45; }
.hold-line { margin: 6px 0 0; font-size: var(--fs-md); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--gold); text-decoration: underline; cursor: pointer; font: inherit; }

/* ==== Pearl (default background): warm pearl white, soft sheen, white cards, dark ink. Every dark-only color above is
   re-pointed here so the whole app reads as a light theme. Other backgrounds are unchanged. ==== */
html[data-bg=pearl] { color-scheme: light;
  --bg: #f6f4ef; --card: rgba(255, 255, 255, .86); --card-2: rgba(28, 25, 23, .05); --card-solid: #ffffff;
  --ink: #18181b; --ink-2: #3f3f46; --muted: #6b6a72; --line: rgba(28, 25, 23, .09); --line-2: rgba(28, 25, 23, .16); }
html[data-bg=pearl], html[data-bg=pearl] body { background: radial-gradient(120% 60% at 88% -12%, #ffffff 0%, transparent 58%), radial-gradient(70% 45% at -8% 18%, rgba(236, 228, 246, .75) 0%, transparent 60%), radial-gradient(80% 55% at 105% 70%, rgba(226, 240, 244, .8) 0%, transparent 60%), radial-gradient(90% 60% at -10% 112%, rgba(246, 236, 222, .9) 0%, transparent 62%), linear-gradient(180deg, #faf9f6 0%, #f3f1ec 100%); background-attachment: fixed; color: var(--ink); }
html[data-bg=pearl] :is(.card, .stat, .sblock, .jobs a, .sum button:not(.s-ok), .tabs button:not([aria-pressed]), .tip, .nudge, .rv-chip, .todo, .nextup, .perks li, .setup-card, .payopt, .panel, .flow) {
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(28, 25, 23, .04), 0 8px 24px rgba(28, 25, 23, .05); }
html[data-bg=pearl] .btn:not(.primary):not(.ghost), html[data-bg=pearl] .hdr-ic { background: #ffffff; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
html[data-bg=pearl] .btn:not(.primary):hover { background: #f1eee8; }
html[data-bg=pearl] .btn.primary, html[data-bg=pearl] .fab, html[data-bg=pearl] .sum .s-ok { color: #0b0b0d; }
html[data-bg=pearl] .top { background: rgba(250, 249, 246, .82); }
html[data-bg=pearl] .dlg, html[data-bg=pearl] .sp-in { background: #ffffff; color: var(--ink); box-shadow: 0 24px 70px rgba(28, 25, 23, .18); }
html[data-bg=pearl] .dlg::backdrop { background: rgba(28, 25, 23, .35); }
html[data-bg=pearl] :is(input, select, textarea) { background: #ffffff; color: var(--ink); border-color: var(--line-2); }
html[data-bg=pearl] :is(input, textarea)::placeholder { color: #9a98a0; }
html[data-bg=pearl] select option { background: #ffffff; color: var(--ink); }
html[data-bg=pearl] :is(.topnav a[aria-current], .tabs button[aria-pressed], .seg input:checked + span, .chip:has(input:checked)) { background: var(--ink); color: #ffffff; border-color: var(--ink); }
html[data-bg=pearl] .chip, html[data-bg=pearl] .seg span { background: #ffffff; color: var(--ink-2); }
html[data-bg=pearl] :is(.perks li, .si-sq) { background: #ffffff; border-color: var(--line-2); }
html[data-bg=pearl] .si-ring { border-color: rgba(28, 25, 23, .2); }
html[data-bg=pearl] :is(.perks b, .sblock .sb-ic, .sp-ic, .hdr-ic, .hdr-ic.pk, .sum button::after, .todo > svg, .rem-ic) { border-color: rgba(28, 25, 23, .2) !important; color: var(--ink) !important; }
html[data-bg=pearl] .sum button:not(.s-ok)::after { background: #ffffff !important; }
html[data-bg=pearl] .si-hero img { background: #ffffff; }
html[data-bg=pearl] .bgo { background: #ffffff; }
@media (max-width: 720px) {
  html[data-bg=pearl] .tabbar { background: rgba(255, 255, 255, .92); box-shadow: inset 0 0 0 1px var(--line), 0 14px 36px rgba(28, 25, 23, .16); }
  html[data-bg=pearl] .tabbar a { color: var(--muted); }
  html[data-bg=pearl] .tabbar a[aria-current] { color: var(--ink); }
}
.bgo-pearl i { background: radial-gradient(120% 90% at 85% 0%, #ffffff, transparent 60%), radial-gradient(80% 70% at 0% 30%, #ece4f6, transparent 60%), radial-gradient(80% 70% at 100% 90%, #e2f0f4, transparent 60%), #f3f1ec; box-shadow: inset 0 0 0 1px rgba(28, 25, 23, .12); }
html[data-bg=pearl] { --amber: #b45309; --green: #047857; --red: #b91c1c; --blue-t: #1d4ed8; --gold-ink: color-mix(in srgb, var(--gold) 62%, #1c1917); }
html[data-bg=pearl] .top .brand, html[data-bg=pearl] .nudge b { color: var(--ink); }
html[data-bg=pearl] :is(.nudge svg, .rv-chip span:last-child) { color: var(--gold-ink); }
html[data-bg=pearl] .st-go { color: var(--blue-t); }/* pearl: accent-colored TEXT uses a deeper shade of the pro's color (the light tint is for dark backgrounds) */
html[data-bg=pearl] :is(.eyebrow, .banner, main > p:first-child > a[href="#/jobs"]:hover, form.card h2, .lockid > b, .smart .fld, details.more > summary i, .flow li.now, .ph-n, .ph-add small,
  .top .gift, .refer-hero b, .reflink code, .trade-tag, .qbtn span, .stars-s, .perks b, .install-card .ic, .how-steps li > span, .dayb i, .dayb.today b, .seg button[aria-pressed=true],
  .ap-main .who.open, .alert-cta svg, .nextup small, .todo svg, .todo i, .addon b, .post .waiting, .hdr-ic[aria-current], .crm-tags .chip.on, .crm-row .av, .comp-check small.soon, .comp-links a,
  .fbs-planned, .sp-a:hover, .sp-a[aria-current], .proc-guide summary, .proc-st.todo, .seclog summary, .dl-missing i, .cs.due, .bk-seg.on, .rc-done .rc-amt, .bk-tax .bk-big, .pos-total,
  .pos-due b, .pos-wait, .linkbtn, .tabbar a[aria-current] svg) { color: var(--gold-ink) !important; }
html[data-bg=pearl] :is(.top, .topnav a:hover, .icon:hover, .totals b, .smart-foot b, .signin h1, .banner a, .tabbar a[aria-current], .top .gift:hover, .top .gift[aria-current]) { color: var(--ink); }
html[data-bg=pearl] .smart .fld { color: var(--ink) !important; }
html[data-bg=pearl] .dayb.on { color: #ffffff; background: var(--ink); }
html[data-bg=pearl] :is(.proc-st.ok, .secrows li.ok::before) { color: var(--green); }
html[data-bg=pearl] .banner.net.off { color: var(--ink-2); }
html[data-bg=pearl] .gs-done .gs-dot { color: #ffffff; }html[data-bg=pearl] .dayb.on b, html[data-bg=pearl] .dayb.on i { color: #ffffff !important; }
html[data-bg=pearl] .reflink code, html[data-bg=pearl] .reflink { background: #ffffff; }
/* job form: Save / Ask for details / Send for approval pinned at the bottom while the form is on screen */
form[data-form=job] .job-acts { position: sticky; bottom: 12px; z-index: 6; padding: 10px; margin: 14px -6px 0; border-radius: 22px; background: var(--card-solid, #161619); box-shadow: 0 0 0 1px var(--line-2), 0 12px 30px rgba(0, 0, 0, .25); flex-wrap: wrap; }
form[data-form=job] .job-acts { flex-wrap: nowrap; gap: 8px; padding: 8px; align-items: center; }
form[data-form=job] .job-acts .btn { min-height: 46px; padding: 8px 14px; margin: 0; }
form[data-form=job] .job-acts [data-act=send-approval] { flex: 1 1 auto; order: 3; font-size: var(--fs-base); }
@media (max-width: 520px) { form[data-form=job] .job-acts .ja-t { display: none; } }
@media (max-width: 720px) { form[data-form=job] .job-acts { bottom: calc(var(--tab-h) + 26px); } }
html[data-bg=pearl] form[data-form=job] .job-acts { background: #ffffff; box-shadow: 0 0 0 1px var(--line-2), 0 12px 30px rgba(28, 25, 23, .12); }
/* pearl v2: translucent glass cards with a sheen, iridescent pearl background */
html[data-bg=pearl] { --card: rgba(255, 255, 255, .52); --card-2: rgba(255, 255, 255, .5); --card-solid: rgba(255, 255, 255, .9); --line: rgba(255, 255, 255, .75); --line-2: rgba(28, 25, 23, .12); }
html[data-bg=pearl], html[data-bg=pearl] body { background:
  radial-gradient(60% 40% at 82% 6%, rgba(255, 255, 255, .95) 0%, transparent 62%),
  radial-gradient(55% 38% at 8% 22%, rgba(232, 222, 250, .85) 0%, transparent 64%),
  radial-gradient(60% 42% at 100% 58%, rgba(214, 238, 246, .9) 0%, transparent 64%),
  radial-gradient(55% 40% at 18% 82%, rgba(250, 230, 236, .85) 0%, transparent 64%),
  radial-gradient(70% 45% at 88% 104%, rgba(246, 236, 214, .9) 0%, transparent 66%),
  linear-gradient(160deg, #fbfaf7 0%, #f1eef6 45%, #eef4f6 70%, #f7f2ea 100%); background-attachment: fixed; }
html[data-bg=pearl] body::before { content: ''; position: fixed; inset: -20%; z-index: -1; pointer-events: none; opacity: .55;
  background: conic-gradient(from 210deg at 70% 30%, rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, .7) 40deg, rgba(220, 210, 245, .35) 90deg, rgba(255, 255, 255, 0) 140deg, rgba(205, 235, 245, .35) 220deg, rgba(255, 255, 255, .6) 290deg, rgba(255, 255, 255, 0) 360deg);
  filter: blur(40px); animation: pearl-sheen 18s ease-in-out infinite alternate; }
@keyframes pearl-sheen { from { transform: rotate(0deg) scale(1); } to { transform: rotate(18deg) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { html[data-bg=pearl] body::before { animation: none; } }
html.calm[data-bg=pearl] body::before { animation: none; }
html[data-bg=pearl] :is(.card, .stat, .sblock, .jobs a, .sum button:not(.s-ok), .tabs button:not([aria-pressed]), .tip, .nudge, .rv-chip, .todo, .nextup, .perks li, .setup-card, .payopt, .panel, .flow) {
  background-color: rgba(255, 255, 255, .5);
  background-image: linear-gradient(145deg, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .35) 48%, rgba(255, 255, 255, .55) 100%);
  backdrop-filter: blur(22px) saturate(1.7); -webkit-backdrop-filter: blur(22px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .7), 0 1px 2px rgba(28, 25, 23, .05), 0 12px 32px rgba(70, 60, 90, .08); }
html[data-bg=pearl] .btn:not(.primary):not(.ghost), html[data-bg=pearl] .hdr-ic { background: rgba(255, 255, 255, .62); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(28, 25, 23, .1); }
html[data-bg=pearl] .btn.primary, html[data-bg=pearl] .fab { background-image: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 22px color-mix(in srgb, var(--gold) 30%, transparent); }
html[data-bg=pearl] .top { background: rgba(255, 255, 255, .45); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); }
html[data-bg=pearl] :is(input, select, textarea) { background: rgba(255, 255, 255, .72); border-color: rgba(28, 25, 23, .12); }
@media (max-width: 720px) { html[data-bg=pearl] .tabbar { background: rgba(255, 255, 255, .6); backdrop-filter: blur(22px) saturate(1.7); -webkit-backdrop-filter: blur(22px) saturate(1.7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 14px 36px rgba(70, 60, 90, .16); } }
html[data-bg=pearl] form[data-form=job] .job-acts { background: rgba(255, 255, 255, .7); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); }html[data-bg=pearl] body { background: transparent; }
/* pearl v2b: stronger mother-of-pearl tints so the glass cards read as translucent */
html[data-bg=pearl] { background:
  radial-gradient(48% 30% at 86% 4%, rgba(255, 255, 255, 1) 0%, transparent 70%),
  radial-gradient(60% 34% at 0% 18%, rgba(214, 200, 250, .95) 0%, transparent 70%),
  radial-gradient(62% 36% at 104% 46%, rgba(190, 232, 244, .95) 0%, transparent 70%),
  radial-gradient(60% 34% at 6% 74%, rgba(252, 214, 228, .9) 0%, transparent 70%),
  radial-gradient(70% 38% at 92% 100%, rgba(246, 226, 190, .95) 0%, transparent 72%),
  linear-gradient(165deg, #faf8f5 0%, #efe9f8 38%, #e8f3f7 64%, #f8efe4 100%); background-attachment: fixed; }
html[data-bg=pearl] body::before { opacity: .9; }
/* ===== round 33: speed + polish ===== */
/* tactile buttons */
.btn, .jc-go, .pblk, .sum button, .quick-row > * { transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease; }
.btn:active, .jc-go:active, .pblk:active, .sum button:active, .quick-row > *:active { transform: scale(.97); }
@media (hover: hover) { .btn:hover, .pblk:hover { filter: brightness(1.04); } }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent, #f59e0b) 70%, transparent); outline-offset: 2px; }
/* job rows: the next step is a full-width bar under the row */
ul.jobs li.jcw { display: block; }
ul.jobs li.jcw.has-go .jc { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
.jc-go { display: flex; width: 100%; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 14px; border: 0; border-radius: 0 0 14px 14px; background: var(--accent, #f59e0b); color: #1a1200; font: 700 .95rem var(--font, inherit); cursor: pointer; letter-spacing: .01em; }
.jc-go.money { background: #15803d; color: #fff; }
.jc-go.bad { background: #dc2626; color: #fff; }
ul.jobs li.jcw.has-go { margin-bottom: 10px; }
/* coaching cards sit under the list */
.home-tail { margin-top: 18px; display: grid; gap: 12px; opacity: .96; }
/* Getting paid: one-tap processor blocks + brand chips */
.pq { margin: 0 0 14px; padding: 14px; border-radius: var(--r); background: var(--card, #fff); box-shadow: inset 0 0 0 1px var(--line, rgba(0,0,0,.08)); }
.pq-h { margin: 0 0 10px; display: grid; gap: 2px; } .pq-h small { color: var(--muted, #667085); }
.pq-row { display: grid; gap: 10px; }
.pblk { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 2px 10px; width: 100%; min-height: 64px; padding: 12px 16px; border: 0; border-radius: var(--r); background: var(--pc); color: #fff; text-align: left; cursor: pointer; box-shadow: 0 6px 18px -8px var(--pc); }
.pblk b { font-size: var(--fs-xl); font-weight: 800; } .pblk small { grid-column: 1; opacity: .85; font-size: var(--fs-xs); }
.pblk i { grid-row: 1 / 3; grid-column: 2; font-style: normal; font-weight: 700; padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,.16); }
.pchips { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.pchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 6px; background: var(--pc); color: #fff; font-weight: 800; font-size: var(--fs-sm); }
.pchip i { font-style: normal; font-weight: 700; font-size: var(--fs-2xs); text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,.2); }
/* celebration */
.cele { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; pointer-events: none; animation: cele-bg .3s ease both; }
.cele-in { display: grid; justify-items: center; gap: 10px; padding: 22px 28px; border-radius: 20px; background: rgba(17, 24, 39, .88); color: #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); animation: cele-pop .45s cubic-bezier(.2, 1.4, .4, 1) both; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cele-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font: 900 2rem/1 var(--font, inherit); background: #22c55e; color: #fff; box-shadow: 0 0 0 8px rgba(34,197,94,.25); }
.cele.ok .cele-ic { background: var(--accent, #f59e0b); color: #1a1200; box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent, #f59e0b) 30%, transparent); }
.cele-in b { font-size: var(--fs-lg); max-width: 260px; text-align: center; }
.cele i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 3px; background: #22c55e; transform: rotate(var(--a)) translateY(0); animation: cele-burst .8s cubic-bezier(.1, .7, .3, 1) .1s both; }
.cele i:nth-child(3n) { background: #fbbf24; } .cele i:nth-child(3n+1) { background: #60a5fa; }
.cele.ok i:nth-child(2n) { background: var(--accent, #f59e0b); }
.cele.out { animation: cele-out .35s ease both; }
@keyframes cele-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cele-burst { from { transform: rotate(var(--a)) translateY(0) scale(1); opacity: 1; } to { transform: rotate(var(--a)) translateY(calc(-1 * var(--d) - 60px)) scale(.4); opacity: 0; } }
@keyframes cele-out { to { opacity: 0; transform: scale(.96); } }
@keyframes cele-bg { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cele, .cele-in, .cele.out { animation: none; } .btn:active, .jc-go:active, .pblk:active { transform: none; } }
/* view transitions between screens */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
html[data-bg=pearl] .sum .s-ok::after { color: #fff; }

/* round 34: repeat customer note, one-tap chip total */
.rep { margin: -4px 0 10px; padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--accent, #1d4f91) 10%, transparent); color: var(--ink, inherit); font-size: var(--fs-sm); font-weight: 600; }
.qbtn small { display: block; font-size: var(--fs-2xs); opacity: .75; font-weight: 500; }

/* accessibility pass (WCAG 2.2): every tap target at least 44px tall on a phone; text links in rows get padding, not size */
.btn.small, .btn.ghost.small, .filters button, .tabs button, .seg button, button.icon, .icon { min-height: 44px; }
button.icon, .icon { min-width: 44px; }
.dc-link, .linkbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
p .linkbtn, small .linkbtn { min-height: 0; padding: 12px 4px; margin: -12px 0; }   /* inline: bigger hit area, same line height */
summary { min-height: 44px; display: flex; align-items: center; }
/* guide and day-log text buttons: same 44px hit area as other text links */
.guide .linkbtn, .dl-h .linkbtn, .guide p .linkbtn { padding: 12px 4px; margin: -12px 0; }

/* ===== round 36: "Daylight" (default) — graphite ink + signal amber on opaque white. Built for a phone in full sun:
   no see-through glass or tinted sheen, body text 7:1+, field borders 3:1+, accent TEXT is a deep amber, a blue focus
   ring that shows on white. It rides on the pearl light theme (html.day[data-bg=pearl]); Pearl and the dark looks stay
   in Settings › Look. ===== */
html.day[data-bg=pearl] { --bg: #f4f5f7; --card: #ffffff; --card-2: #f3f4f6; --card-solid: #ffffff; --ink: #111827; --ink-2: #374151; --muted: #4b5563;
  --line: rgba(17, 24, 39, .10); --line-2: rgba(17, 24, 39, .18); --field: #7c8492; --gold-ink: color-mix(in srgb, var(--gold) 42%, #111827);
  --green: #047857; --red: #b91c1c; --amber: #92400e; --blue-t: #1d4ed8; --focus: #1d4ed8; }
html.day[data-bg=pearl] { background: linear-gradient(180deg, #ffffff 0, #f4f5f7 260px) fixed, #f4f5f7; }
html.day[data-bg=pearl] body { background: transparent; }
html.day[data-bg=pearl] body::before { display: none; }
html.day[data-bg=pearl] :is(.card, .stat, .sblock, .jobs a, .sum button:not(.s-ok), .tabs button:not([aria-pressed]), .tip, .nudge, .rv-chip, .todo, .nextup, .perks li, .setup-card, .payopt, .panel, .flow) {
  background-color: #ffffff; background-image: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(17, 24, 39, .05), 0 6px 18px rgba(17, 24, 39, .05); }
html.day[data-bg=pearl] :is(.btn:not(.primary):not(.ghost), .hdr-ic) { background: #ffffff; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: inset 0 0 0 1px var(--line-2); }
html.day[data-bg=pearl] .btn:not(.primary):not(.ghost):hover { background: #f3f4f6; }
html.day[data-bg=pearl] :is(.btn.primary, .fab) { background-image: none; color: #111827; box-shadow: 0 1px 2px rgba(17, 24, 39, .14), 0 6px 16px color-mix(in srgb, var(--gold) 26%, transparent); }
html.day[data-bg=pearl] .top { background: rgba(255, 255, 255, .96); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 0 var(--line); }
html.day[data-bg=pearl] :is(input, select, textarea) { background: #ffffff; border-color: var(--field); }
html.day[data-bg=pearl] :is(input, textarea)::placeholder { color: #6b7280; }
html.day[data-bg=pearl] form[data-form=job] .job-acts { background: #ffffff; backdrop-filter: none; -webkit-backdrop-filter: none; }
html.day[data-bg=pearl] .dlg { box-shadow: 0 24px 70px rgba(17, 24, 39, .22); }
@media (max-width: 720px) { html.day[data-bg=pearl] .tabbar { background: #ffffff; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 0 0 1px var(--line), 0 12px 30px rgba(17, 24, 39, .14); } }
html.day[data-bg=pearl] :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.bgo-daylight i { background: linear-gradient(180deg, #ffffff 0 58%, #f4f5f7 58%); box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .14), inset 0 -10px 0 var(--gold); }

/* WCAG 2.4.11 focus not obscured: the header, phone tab bar and pinned job buttons never cover the focused field */
html { scroll-padding-top: 80px; }
@media (max-width: 720px) { html { scroll-padding-bottom: calc(var(--tab-h) + 110px); } }

/* Windows High Contrast / forced colors: keep every control outlined and the selected one marked */
@media (forced-colors: active) {
  .btn, .chip, .seg span, .tabs button, .hdr-ic, .icon, .fab, .jobs a, .card, .tabbar { border: 1px solid CanvasText; }
  :focus-visible { outline: 3px solid Highlight !important; outline-offset: 2px; }
  :is(.tabs button[aria-pressed=true], .seg input:checked + span, .chip:has(input:checked), .topnav a[aria-current], .tabbar a[aria-current]) { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .lr-bg, body::before { display: none !important; }
}
html[data-bg=pearl] .sum .s-ok::after { color: #ffffff !important; }   /* the Owed card's arrow was ink on an ink circle */

/* round 37: Daylight's own color. Signal blue (#2563eb) replaces the amber trade tint unless the pro picks a color.
   Text on the accent uses --on-gold (white on deep colors, ink on light ones; set in applyLook); accent-colored text
   uses --gold-ink-d (a deeper shade, 4.5:1+ on white). */
html.day[data-bg=pearl] { --gold: #2563eb; --gold-2: #6b93f1; --on-gold: #ffffff; --gold-ink: var(--gold-ink-d, #1e40af); }   /* before the app loads: no amber flash */
html.day[data-bg=pearl] :is(.btn.primary, .fab, .sum .s-ok, .kind input:checked + span, .steps li.on, .badge, .qc-b.on, .tip-k, .gift-badge, .howto li::before) { color: var(--on-gold, #111827); }
html.day[data-bg=pearl] .sum .s-ok span { color: var(--on-gold, #111827); opacity: .86; }
.more-btn { display: flex; width: 100%; justify-content: center; gap: 6px; margin: 10px 0 4px; } .more-btn small { color: var(--muted); font-weight: 500; }
html.day[data-bg=pearl] .sum .s-ok { box-shadow: 0 1px 2px rgba(17, 24, 39, .12), 0 14px 34px color-mix(in srgb, var(--gold) 28%, transparent); }
[hidden] { display: none !important; }
