/* =====================================================================
   Novi client portal — same identity as novidigital.com.au (styles.css):
   near-black surfaces, warm off-white ink, gold used sparingly as signal.
   ===================================================================== */
:root {
  --black: #0a0a09;
  --bg: #0b0b0a;
  --panel: #121210;
  --panel-2: #181815;
  --panel-3: #201f1b;
  --off: #f4f1ea;
  --tint: 244, 241, 234;               /* ink colour as r,g,b for see-through lines and tints */
  --on-gold: #0a0a09;                  /* text on gold buttons and badges */
  --top-bg: rgba(11, 11, 10, .86);
  --tabbar-bg: rgba(10, 10, 9, .94);
  --hero-top: #15140f;
  --out-day: #0e0e0c;
  --alert-ink: #f1b3a8;
  --ink-2: rgba(var(--tint), .74);   /* raised for readability */
  --ink-3: rgba(var(--tint), .54);
  --line: rgba(var(--tint), .09);
  --line-2: rgba(var(--tint), .16);
  --gold: #c8a86b;
  --gold-hi: #e8d3a2;
  --gold-lo: #9c7b43;
  --gold-soft: rgba(200, 168, 107, .12);
  --gold-grad: linear-gradient(120deg, var(--gold-lo) 0%, var(--gold-hi) 45%, var(--gold) 70%, var(--gold-lo) 100%);
  --good: #86c79c;
  --warn: #e3c26f;
  --bad: #e6897a;
  --neutral-series: #8d887c;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --side: 256px;
  color-scheme: dark;
}

/* ---------- Light mode (html[data-theme="light"], set by app.js from the toggle or the device setting) ---------- */
:root[data-theme="light"] {
  --black: #fbf9f4;
  --bg: #f5f2eb;
  --panel: #ffffff;
  --panel-2: #f4f0e7;
  --panel-3: #ece6d9;
  --off: #1c1a15;
  --tint: 28, 26, 21;
  --ink-2: rgba(var(--tint), .74);
  --ink-3: rgba(var(--tint), .56);
  --line: rgba(var(--tint), .1);
  --line-2: rgba(var(--tint), .18);
  --gold: #a07d3f;
  --gold-hi: #7f5f26;
  --gold-lo: #b99556;
  --gold-soft: rgba(160, 125, 63, .12);
  --gold-grad: linear-gradient(120deg, #b08a4c 0%, #e8d3a2 45%, #c8a86b 70%, #b08a4c 100%);
  --good: #2e7a4c;
  --warn: #946500;
  --bad: #b3452f;
  --neutral-series: #8a8476;
  --top-bg: rgba(245, 242, 235, .86);
  --tabbar-bg: rgba(251, 249, 244, .95);
  --hero-top: #fbf6ea;
  --out-day: #f1ede4;
  --alert-ink: #9a3a27;
  color-scheme: light;
}
:root[data-theme="light"] .dlg, :root[data-theme="light"] .pal { box-shadow: 0 30px 80px rgba(60, 45, 20, .22); }
:root[data-theme="light"] .dlg::backdrop, :root[data-theme="light"] .pal::backdrop { background: rgba(40, 32, 18, .28); }
:root[data-theme="light"] a.tile:hover, :root[data-theme="light"] .qa:hover, :root[data-theme="light"] .ccard:hover, :root[data-theme="light"] .fcard:hover { box-shadow: 0 16px 40px rgba(60, 45, 20, .12); }
:root[data-theme="light"] .scrim { background: rgba(40, 32, 18, .3); }
:root[data-theme="light"] .side { background: var(--black); }
/* A short cross-fade when the theme is switched */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease, stroke .35s ease !important; }
[data-theme-toggle] svg { transition: transform .45s var(--ease); }
[data-theme-toggle]:hover svg { transform: rotate(25deg); }
.login-theme { position: absolute; top: 18px; right: 18px; z-index: 2; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--off); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-weight: 500; margin: 0; letter-spacing: -.02em; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold-hi); }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 13px; }
.pre { white-space: pre-wrap; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; font-weight: 500; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; text-decoration: none;
  font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  transition: background-position .8s var(--ease), border-color .2s, color .2s, opacity .2s;
}
.btn svg { width: 15px; height: 15px; }
.btn:disabled { opacity: .45; cursor: progress; }
.btn-gold { background: var(--gold-grad); background-size: 220% 100%; color: var(--on-gold); }
.btn-gold:hover { background-position: 100% 0; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--off); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-sm { padding: 9px 14px; font-size: 11px; }
.btn-danger { border-color: rgba(230, 137, 122, .4); color: var(--bad); background: none; }
.btn-danger:hover { border-color: var(--bad); }
.linkish { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.linkish:hover { color: var(--gold-hi); }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid transparent; background: none; color: var(--ink-2); position: relative; text-decoration: none; }
.icon-btn:hover { color: var(--off); border-color: var(--line-2); }
.more { color: var(--gold); font-size: 13px; text-decoration: none; white-space: nowrap; }
.more:hover { color: var(--gold-hi); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; background: url("/assets/n-mark.png") center / contain no-repeat; }
.brand-word { font-family: var(--serif); font-size: 20px; letter-spacing: .32em; line-height: 1; display: flex; flex-direction: column; }
.brand-word small { font-family: var(--sans); font-size: 7.5px; letter-spacing: .42em; margin-top: 5px; color: var(--gold); }
.pulse { animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.94); } }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot .brand-mark { width: 44px; height: 44px; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; position: relative; overflow: hidden; }
.login-art { position: absolute; inset: 0; pointer-events: none; }
.login-glow { position: absolute; width: 900px; height: 900px; right: -300px; top: -380px; background: radial-gradient(closest-side, rgba(200, 168, 107, .16), transparent); }
.login-art::after { content: ""; position: absolute; inset: 0; background: url("/assets/n-mark.png") right -120px bottom -160px / 560px no-repeat; opacity: .05; }
.login-card { position: relative; width: min(460px, 100%); display: flex; flex-direction: column; gap: 14px; }
.login-card .brand { margin-bottom: 36px; }
.login-card h1 { font-size: clamp(38px, 7vw, 56px); line-height: 1; letter-spacing: -.04em; margin-bottom: 10px; }
.login-card .h-sm { font-size: 30px; }
.login-msg { color: var(--ink-2); font-size: 13.5px; margin: 12px 0 0; }
.login-msg.bad { color: var(--bad); }
.login-lead { margin: 0 0 14px; max-width: 40ch; }
.login-card .form .btn { width: 100%; padding: 15px 20px; }
.login-sent { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid rgba(134, 199, 156, .3); border-radius: var(--r); background: rgba(134, 199, 156, .06); animation: toastIn .3s var(--ease); }
.login-sent b { font-weight: 500; font-size: 16px; }
.login-sent p { margin: 4px 0 10px; color: var(--ink-2); font-size: 14px; }
.login-sent strong { color: var(--off); font-weight: 500; }
.login-help { font-size: 13px; color: var(--ink-3); margin: 8px 0 0; }
.login-help a { color: var(--ink-2); }
.login-help a:hover { color: var(--gold-hi); }
.login-legal { font-size: 12px; color: var(--ink-3); margin: 6px 0 0; }
.login-legal a, .side-legal a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.login-legal a:hover, .side-legal a:hover { color: var(--gold-hi); }
.side-legal { font-size: 11.5px; color: var(--ink-3); margin: 0; }
.login-demo { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.login-back { color: var(--ink-3); font-size: 13px; text-decoration: none; margin-top: 24px; }
.login-back:hover { color: var(--off); }
.demo-accounts { display: flex; flex-direction: column; gap: 8px; }
.demo-acc { display: grid; grid-template-columns: 1fr auto; text-align: left; gap: 2px 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; transition: border-color .2s, background .2s; }
.demo-acc:hover { border-color: var(--gold); background: var(--panel-2); }
.demo-acc b { font-weight: 500; }
.demo-acc small { color: var(--ink-2); font-size: 13px; grid-column: 1; }
.demo-acc svg { grid-row: 1 / 3; grid-column: 2; color: var(--gold); }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; padding: 24px 14px 18px; border-right: 1px solid var(--line); background: var(--black); scrollbar-width: thin; }
.side > .brand { padding: 0 8px; }
.biz { position: relative; display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(160deg, rgba(200, 168, 107, .08), transparent 60%), var(--panel); }
.biz-mark { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-hi); font-size: 13px; font-weight: 600; flex: none; }
.biz-text { min-width: 0; }
.biz-text b { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-text small { display: block; color: var(--gold); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-switch { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: 14px; transition: background .2s, color .2s; position: relative; }
.side-nav a svg { flex: none; opacity: .8; }
.side-nav a:hover { color: var(--off); background: var(--panel); }
.side-nav a.on { color: var(--off); background: var(--panel-2); }
.side-nav a.on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--gold); }
.side-nav a.on svg { color: var(--gold); opacity: 1; }
.side-nav a.locked { color: var(--ink-3); }
.side-nav .lock { margin-left: auto; display: grid; }
.side-nav .lock svg { width: 13px; height: 13px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding: 16px 6px 0; border-top: 1px solid var(--line); }
.side-foot .linkish { align-self: flex-start; font-size: 12px; }
.who { display: flex; align-items: center; gap: 10px; }
.who > div { min-width: 0; flex: 1; }
.who b { display: block; font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { color: var(--ink-3); font-size: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; flex: none; }
.avatar.lg { width: 48px; height: 48px; font-size: 15px; }
.avatar.gold { background: var(--gold-soft); color: var(--gold-hi); border-color: rgba(200, 168, 107, .3); }

.main { min-width: 0; display: flex; flex-direction: column; overflow-x: clip; }
.top { display: flex; align-items: center; gap: 12px; padding: 12px clamp(16px, 3.5vw, 44px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; background: var(--top-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); min-height: 62px; }
.top-title { flex: 1; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn { display: none; }
.bell .badge { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--gold); color: var(--on-gold); font-size: 10px; font-weight: 600; display: grid; place-items: center; }
.support-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px clamp(16px, 3.5vw, 44px); background: var(--gold-soft); border-bottom: 1px solid rgba(200, 168, 107, .25); color: var(--gold-hi); font-size: 13px; }
.support-bar svg { width: 16px; height: 16px; }
.support-bar span { flex: 1; min-width: 200px; }
.support-bar .linkish { color: var(--gold-hi); }
.view { width: 100%; max-width: 1360px; padding: clamp(24px, 3.5vw, 44px) clamp(16px, 3.5vw, 44px) 96px; }
.skeleton { height: 60vh; border-radius: var(--r); background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: sheen 1.4s linear infinite; opacity: .6; }
@keyframes sheen { to { background-position: -200% 0; } }
.scrim, .tabbar { display: none; }

/* ---------- Page structure ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.04; letter-spacing: -.035em; }
.page-head .sub { color: var(--ink-2); margin: 10px 0 0; max-width: 62ch; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sec { margin-top: 36px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-size: 19px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.card-head h3 { font-size: 15.5px; }
.card-head .sub { font-size: 12.5px; color: var(--ink-3); }
.card.flush .card-head { padding: 20px 22px 0; }
.empty { color: var(--ink-2); text-align: center; padding: 40px 20px; }
.empty-t { color: var(--off); font-size: 16px; margin: 0 0 6px; }
.empty p { margin: 0 0 14px; }

/* ---------- Pills / chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; line-height: 1.5; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill.good { color: var(--good); border-color: rgba(134, 199, 156, .3); }
.pill.warn { color: var(--warn); border-color: rgba(227, 194, 111, .3); }
.pill.bad { color: var(--bad); border-color: rgba(230, 137, 122, .35); }
.pill.mute { color: var(--ink-3); }
.pill.gold { color: var(--gold-hi); border-color: rgba(200, 168, 107, .4); }
.pill.gold::before, .pill.plain::before { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; font-size: 13px; color: var(--ink-2); transition: border-color .2s, color .2s; }
.chip:hover { color: var(--off); }
.chip.on { border-color: var(--gold); color: var(--off); background: var(--gold-soft); }
.chip small { color: var(--ink-3); margin-left: 4px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.seg button { background: none; border: 0; padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.seg button.on { background: var(--panel-3); color: var(--off); }
.tag { display: inline-block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }

/* ---------- Stat tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 14px; display: flex; flex-direction: column; min-width: 0; text-decoration: none; transition: border-color .2s; }
a.tile:hover { border-color: rgba(200, 168, 107, .4); }
.tile-name { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); margin: 0 0 10px; }
.tile-name svg { width: 15px; height: 15px; color: var(--gold); }
.tile-val { font-size: 30px; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.tile-sub { font-size: 12px; color: var(--ink-3); margin: 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tile .spark { margin-top: auto; padding-top: 12px; }
.spark { width: 100%; height: 30px; display: block; overflow: visible; }
.spark polyline { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linejoin: round; }
.delta { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }
.delta.flat { color: var(--ink-3); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(134, 199, 156, .6); animation: live 1.8s infinite; display: inline-block; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(134, 199, 156, 0); } 100% { box-shadow: 0 0 0 0 rgba(134, 199, 156, 0); } }

/* ---------- ROI hero ---------- */
.hero { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid rgba(200, 168, 107, .28); padding: clamp(22px, 3vw, 34px); background: radial-gradient(ellipse at 100% 0%, rgba(200, 168, 107, .2), transparent 55%), linear-gradient(180deg, var(--hero-top), var(--panel)); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: end; }
.hero::after { content: ""; position: absolute; right: -60px; bottom: -110px; width: 320px; height: 320px; background: url("/assets/n-mark.png") center / contain no-repeat; opacity: .05; pointer-events: none; }
.hero-val { font-size: clamp(44px, 6vw, 76px); line-height: .95; letter-spacing: -.045em; margin: 4px 0 12px; font-variant-numeric: tabular-nums; }
.hero-val .gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0; color: var(--ink-2); }
.hero-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; position: relative; z-index: 1; }
.hero-split div { border-left: 1px solid var(--line-2); padding-left: 14px; }
.hero-split b { display: block; font-size: 21px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-split small { color: var(--ink-2); font-size: 12px; }
.roi-x { font-family: var(--serif); font-style: italic; color: var(--gold-hi); font-size: 1.2em; }

/* ---------- Lists / feeds ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.list > li:first-child { border-top: 0; padding-top: 2px; }
.list .grow { flex: 1; min-width: 0; }
.list b { font-weight: 500; font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list small { color: var(--ink-3); font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list time, .list .meta { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.list a.row-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; }
.ico { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--panel-3); color: var(--gold); }
.ico svg { width: 16px; height: 16px; }
.ico.bad { color: var(--bad); background: rgba(230, 137, 122, .1); }
.ico.good { color: var(--good); background: rgba(134, 199, 156, .1); }
.check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); background: none; flex: none; display: grid; place-items: center; color: transparent; transition: all .2s; }
.check:hover { border-color: var(--gold); color: var(--gold); }
.check svg { width: 13px; height: 13px; }
.overdue { color: var(--bad) !important; }
.when { text-align: center; width: 46px; flex: none; }
.when b { font-size: 18px; line-height: 1; }
.when small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.click { cursor: pointer; transition: background .15s; }
.tbl tr.click:hover td { background: var(--panel-2); }
.tbl .strong { font-weight: 500; }
.tbl .clip { max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.tbl small { display: block; color: var(--ink-3); font-size: 12px; }

/* ---------- Toolbar & forms ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 16px; height: 16px; }
.search input { padding-left: 38px; border-radius: 999px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fgrid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12px; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-3); }
input, select, textarea { width: 100%; background: var(--black); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14.5px; outline: none; transition: border-color .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
input:disabled, select:disabled, textarea:disabled { opacity: .55; }
textarea { resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c8a86b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--gold); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.form-actions .left { margin-right: auto; }
.readonly-note { font-size: 13px; color: var(--ink-3); }
.is-readonly [data-write] { display: none !important; }

/* ---------- Dialog / side panel ---------- */
.dlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); background: var(--panel); color: var(--off); border: 1px solid var(--line-2); border-radius: 20px; padding: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.dlg.wide { width: min(820px, calc(100vw - 24px)); }
.dlg.panel { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(640px, 100vw); border-radius: 0; border-width: 0 0 0 1px; animation: slide .35s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.dlg::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
.dlg-body { padding: 28px; }
.dlg h2 { font-size: 24px; letter-spacing: -.03em; margin: 0 44px 6px 0; }
.dlg .dlg-sub { color: var(--ink-2); margin: 0 0 22px; font-size: 14px; }
.dlg-x { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); display: grid; place-items: center; z-index: 2; }
.dlg-x:hover { color: var(--off); border-color: var(--gold); }
.dlg-section { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.dlg-section h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 20px; }
.kv div small { display: block; color: var(--ink-3); font-size: 11.5px; margin-bottom: 2px; }
.kv div b { font-weight: 500; font-size: 14px; word-break: break-word; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200; background: var(--off); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-size: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); max-width: calc(100vw - 32px); animation: toastIn .3s var(--ease); transition: opacity .35s, transform .35s; }
.toast.bad { background: var(--bad); }
.toast.out { opacity: 0; transform: translate(-50%, 8px); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- Charts ---------- */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ytick { fill: var(--ink-3); font-size: 10.5px; text-anchor: end; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.chart .xtick { fill: var(--ink-3); font-size: 10.5px; text-anchor: middle; font-family: var(--sans); }
.chart .ln { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .ln2 { stroke: var(--neutral-series); stroke-dasharray: 5 4; }
.chart .xhair { stroke: var(--line-2); stroke-width: 1; }
.chart .bar path { fill: rgba(200, 168, 107, .38); transition: fill .15s; }
.chart .bar.cur path, .chart .bar.hover path { fill: var(--gold); }
.chart .bar .hit { fill: transparent; }
.chart .tip { position: absolute; top: 0; transform: translate(-50%, -8px); background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; pointer-events: none; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); z-index: 3; }
.chart .tip b { display: block; font-weight: 500; color: var(--ink-2); font-size: 11.5px; margin-bottom: 2px; }
.chart .tip span { display: flex; align-items: center; gap: 6px; }
.chart .tip strong { font-weight: 500; color: var(--off); }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; }
.legend span, .chart .tip span { display: inline-flex; align-items: center; gap: 6px; }
.legend i, .chart .tip i { width: 14px; height: 0; border-top: 2px solid var(--gold); display: inline-block; }
.legend i.k2, .chart .tip i.k2 { border-top: 2px dashed var(--neutral-series); }

/* ---------- CRM board ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(236px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }
.col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; min-height: 320px; display: flex; flex-direction: column; transition: border-color .2s, background .2s; }
.col.over { border-color: var(--gold); background: var(--panel-2); }
.col-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 6px 6px 12px; }
.col-head b { font-weight: 500; font-size: 13.5px; }
.col-head span { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.col-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.deal { text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, transform .2s, opacity .2s; }
.deal[draggable=true] { cursor: grab; }
.deal:hover { border-color: rgba(200, 168, 107, .45); }
.deal.dragging { opacity: .35; }
.deal b { font-weight: 500; font-size: 14px; }
.deal small { color: var(--ink-2); font-size: 12.5px; }
.deal-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.deal-meta .val { color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.deal .avatar { width: 22px; height: 22px; font-size: 9px; }

/* ---------- Timeline / conversation ---------- */
.timeline { display: flex; flex-direction: column; gap: 10px; }
.day-sep { text-align: center; font-size: 11.5px; color: var(--ink-3); margin: 10px 0 2px; letter-spacing: .06em; }
.msg { max-width: 78%; display: flex; flex-direction: column; gap: 4px; }
.msg .bubble { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.msg.in { align-self: flex-start; }
.msg.in .bubble { background: var(--panel-3); border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; align-items: flex-end; }
.msg.out .bubble { background: rgba(200, 168, 107, .16); border: 1px solid rgba(200, 168, 107, .22); border-bottom-right-radius: 4px; }
.msg.system { align-self: stretch; max-width: none; }
.msg.system .bubble { background: none; border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 13px; }
.msg-meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); }
.msg-meta svg { width: 12px; height: 12px; }
.msg-meta .by-ai { color: var(--gold); }

/* ---------- Inbox ---------- */
.inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100dvh - 62px - 120px); min-height: 520px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.inbox-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.inbox-list .toolbar { padding: 14px; margin: 0; border-bottom: 1px solid var(--line); }
.inbox-list .search { max-width: none; }
.threads { overflow-y: auto; flex: 1; }
.thread { display: flex; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .15s; }
.thread:hover { background: var(--panel-2); }
.thread.on { background: var(--panel-3); box-shadow: inset 2px 0 0 var(--gold); }
.thread .grow { flex: 1; min-width: 0; }
.thread b { font-weight: 500; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.thread b time { font-weight: 400; color: var(--ink-3); font-size: 11.5px; flex: none; }
.thread p { margin: 3px 0 0; color: var(--ink-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread .chs { display: flex; gap: 4px; margin-top: 6px; color: var(--ink-3); }
.thread .chs svg { width: 13px; height: 13px; }
.thread.unread b::after { content: ""; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; margin-top: 6px; }
.inbox-pane { display: flex; flex-direction: column; min-height: 0; }
.inbox-pane header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.inbox-pane header .grow { flex: 1; min-width: 0; }
.inbox-pane header small { color: var(--ink-3); font-size: 12.5px; }
.inbox-scroll { flex: 1; overflow-y: auto; padding: 18px; }
.composer { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 8px; align-items: flex-end; }
.composer select { width: auto; flex: none; }
.composer textarea { min-height: 42px; max-height: 140px; }
.composer-note { font-size: 12px; color: var(--ink-3); padding: 0 14px 12px; }
.back-link { display: none; }

/* ---------- Bookings calendar ---------- */
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.cal-bar h2 { font-size: 20px; min-width: 200px; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); gap: 1px; }
.month .dow { background: var(--panel); padding: 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.mday { background: var(--panel); min-height: 118px; padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; cursor: pointer; }
.mday:hover { background: var(--panel-2); }
.mday.out { background: var(--out-day); }
.mday.out .d { color: var(--ink-3); }
.mday .d { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mday.today .d { color: var(--on-gold); background: var(--gold); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; font-weight: 600; }
.ev { display: block; width: 100%; text-align: left; font-size: 11.5px; padding: 3px 7px; border-radius: 6px; background: var(--gold-soft); color: var(--gold-hi); border: 0; border-left: 2px solid var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.pending { background: rgba(227, 194, 111, .08); border-left-style: dashed; color: var(--warn); }
.ev.completed { background: rgba(var(--tint), .05); border-left-color: var(--ink-3); color: var(--ink-2); }
.ev.cancelled, .ev.no_show { background: none; border-left-color: var(--line-2); color: var(--ink-3); text-decoration: line-through; }
.mday .more-n { font-size: 11.5px; color: var(--ink-3); padding-left: 4px; }
.week { display: grid; grid-template-columns: 52px repeat(var(--days, 7), minmax(118px, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: auto; max-height: 72vh; background: var(--panel); }
.week .wh { position: sticky; top: 0; z-index: 2; background: var(--panel); border-bottom: 1px solid var(--line); padding: 10px 8px; font-size: 12px; color: var(--ink-2); text-align: center; }
.week .wh b { display: block; font-size: 18px; color: var(--off); font-weight: 500; }
.week .wh.today b { color: var(--gold); }
.week .hours { position: relative; }
.week .hr { height: 56px; font-size: 10.5px; color: var(--ink-3); text-align: right; padding-right: 8px; transform: translateY(-7px); }
.week .dcol { position: relative; border-left: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0 55px, var(--line) 55px 56px); }
.week .dcol.today { background-color: rgba(200, 168, 107, .03); }
.week .ev { position: absolute; left: 3px; right: 3px; white-space: normal; padding: 5px 7px; line-height: 1.3; }
.week .ev b { display: block; font-weight: 500; font-size: 12px; }
.now-line { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px solid var(--bad); z-index: 1; }
.now-line::before { content: ""; position: absolute; left: -4px; top: -4.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); }

/* ---------- Automations ---------- */
.autos { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.auto { display: flex; flex-direction: column; gap: 14px; }
.auto header { display: flex; gap: 12px; align-items: flex-start; }
.auto header .grow { flex: 1; min-width: 0; }
.auto h3 { font-size: 16px; margin-bottom: 4px; }
.auto p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.auto-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.auto-stats b { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.auto-stats small { color: var(--ink-3); font-size: 11.5px; }
.auto-result { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gold-hi); }
.auto-result svg { width: 15px; height: 15px; }
.auto footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); margin-top: auto; }
.auto.error { border-color: rgba(230, 137, 122, .35); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; background: rgba(230, 137, 122, .08); border: 1px solid rgba(230, 137, 122, .28); color: var(--alert-ink); }
.alert svg { flex: none; margin-top: 1px; }
.alert.info { background: var(--gold-soft); border-color: rgba(200, 168, 107, .28); color: var(--gold-hi); }

/* ---------- Call detail ---------- */
.transcript { display: flex; flex-direction: column; gap: 10px; }
.recording { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--ink-3); font-size: 13px; }
.recording audio { width: 100%; }

/* ---------- Upgrade ---------- */
.upgrade { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid rgba(200, 168, 107, .3); padding: clamp(28px, 5vw, 56px); background: radial-gradient(ellipse at 100% 0%, rgba(200, 168, 107, .18), transparent 60%), var(--panel); max-width: 880px; }
.upgrade h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1; letter-spacing: -.04em; margin: 12px 0 14px; }
.upgrade .lead { color: var(--ink-2); font-size: 17px; max-width: 52ch; margin: 0 0 24px; }
.upgrade ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.upgrade li { display: flex; gap: 10px; align-items: center; }
.upgrade li svg { color: var(--gold); flex: none; }
.upgrade .price { color: var(--ink-2); font-size: 14px; margin: 0 0 18px; }
.lock-badge { display: inline-flex; gap: 8px; align-items: center; color: var(--gold); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.lock-badge svg { width: 15px; height: 15px; }

/* ---------- Billing ---------- */
.plan { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; background: radial-gradient(ellipse at 100% 0%, rgba(200, 168, 107, .16), transparent 60%), var(--panel); border-color: rgba(200, 168, 107, .3); }
.plan h2 { font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: 0; }
.plan .price { font-size: 22px; font-variant-numeric: tabular-nums; }
.plan .price small { color: var(--ink-2); font-size: 14px; }
.cardmark { display: inline-grid; place-items: center; width: 46px; height: 30px; border-radius: 6px; background: var(--panel-3); border: 1px solid var(--line-2); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-hi); }

/* ---------- Admin ---------- */
.problems .list > li { align-items: flex-start; }
.prod-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.prod-chips span { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--panel-3); color: var(--ink-2); white-space: nowrap; }
.health { display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.checks label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; cursor: pointer; }
.checks label:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.keybox { font-family: ui-monospace, Consolas, monospace; font-size: 13px; padding: 12px; background: var(--black); border: 1px solid var(--gold); border-radius: 10px; word-break: break-all; user-select: all; }

/* ---------- Readability ---------- */
html.text-lg .main, html.text-lg .dlg { zoom: 1.14; }
html.text-lg .side, html.text-lg .tabbar { zoom: 1.08; }
#textSize[aria-pressed="true"] { color: var(--gold); border-color: rgba(200, 168, 107, .4); }
.summary { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.summary a { color: var(--gold-hi); text-decoration: none; border-bottom: 1px solid rgba(200, 168, 107, .4); }
.summary a:hover { border-color: var(--gold-hi); }
.summary b { font-weight: 500; }
.info { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 10.5px; font-weight: 600; color: var(--ink-3); cursor: help; position: relative; flex: none; margin-left: 2px; }
.info:hover, .info:focus { color: var(--gold-hi); border-color: var(--gold); outline: none; }
.info::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); width: max-content; max-width: 240px; padding: 10px 12px; border-radius: 10px; background: var(--panel-3); border: 1px solid var(--line-2); color: var(--off); font-size: 12.5px; font-weight: 400; line-height: 1.45; text-align: left; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); pointer-events: none; z-index: 20; white-space: normal; display: none; }
.info:hover::after, .info:focus::after { display: block; transform: translate(-50%, 0); animation: toastIn .15s var(--ease); }
.tile .info::after { left: 0; transform: none; }
.tile .info:hover::after, .tile .info:focus::after { transform: none; }
.today-txt { color: var(--gold-hi); }
.queued { color: var(--warn); }
.sec-first .sec-head h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.sec-first .sec-head h2 svg { color: var(--gold); }
.count-badge, .nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: var(--on-gold); font-size: 11px; font-weight: 600; letter-spacing: 0; }
.nav-badge { margin-left: auto; min-width: 18px; height: 18px; font-size: 10.5px; }
.nav-badge[hidden] { display: none; }
.tabbar a { position: relative; }
.tabbar .nav-badge { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; }
.seg-n { color: var(--ink-3); margin-left: 4px; font-variant-numeric: tabular-nums; }
.seg .on .seg-n { color: var(--gold); }
.tiles.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile-alert { border-color: rgba(200, 168, 107, .45); background: linear-gradient(160deg, var(--gold-soft), transparent 60%), var(--panel); }

/* ---------- Job requests ---------- */
.jobs { display: flex; flex-direction: column; gap: 14px; }
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.job { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, box-shadow .4s; }
.job.pending { border-color: rgba(200, 168, 107, .32); }
.job.urgent { border-color: rgba(230, 137, 122, .55); box-shadow: inset 3px 0 0 var(--bad); }
.job.declined, .job.expired { opacity: .78; }
.job.flash { box-shadow: 0 0 0 2px var(--gold); }
.job-top { display: flex; gap: 12px; align-items: center; }
.job-top .grow { flex: 1; min-width: 0; }
.job-name { display: block; font-weight: 500; font-size: 15.5px; }
.job-top small { color: var(--ink-3); font-size: 12.5px; }
.job-service { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.job-quote { margin: 0; padding: 2px 0 2px 14px; border-left: 2px solid var(--gold); color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.job-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px 18px; margin: 4px 0 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.job-facts dt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); margin-bottom: 3px; }
.job-facts dt svg { width: 14px; height: 14px; color: var(--gold); }
.job-facts dd { margin: 0; font-size: 15px; font-weight: 500; }
.job-facts dd a { text-decoration: none; }
.job-wait { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--warn); }
.job-wait svg { width: 15px; height: 15px; }
.job-wait.late { color: var(--bad); }
.job-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.job-actions .btn { padding: 13px 22px; font-size: 12px; }
.job-actions .btn-gold { flex: 1 1 160px; }
.job-outcome { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; font-size: 14px; color: var(--ink-2); }
.job-outcome.good { color: var(--good); }
.job-outcome svg { width: 16px; height: 16px; }
.job-outcome a { color: inherit; }
.job.compact { padding: 18px; }
.job.compact .job-service { font-size: 19px; }
.job.compact .job-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.job.compact .job-facts > div:first-child { grid-column: 1 / -1; }
.job.compact .job-quote { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
fieldset.plain { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
fieldset.plain legend { padding: 0; margin-bottom: 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.checkline { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
.reason-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.reason { cursor: pointer; }
.reason input { position: absolute; opacity: 0; pointer-events: none; }
.reason span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); transition: all .15s; }
.reason input:checked + span { border-color: var(--gold); color: var(--off); background: var(--gold-soft); }
.reason input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
/* ---------- AI suggestions & time picking ---------- */
.ai-pick { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px dashed rgba(200, 168, 107, .55); background: var(--gold-soft); }
.ai-pick b { font-weight: 500; font-size: 15.5px; }
.ai-pick small { color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.ai-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ai-tag svg { width: 14px; height: 14px; }
.dlg .ai-pick { margin-bottom: 18px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.slot { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--black); transition: border-color .15s, background .15s; }
.slot b { font-weight: 500; font-size: 14.5px; }
.slot small { color: var(--ink-3); font-size: 12px; }
.slot:hover { border-color: rgba(200, 168, 107, .5); }
.slot.on { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.slot.is-ai small { color: var(--gold); }
.slots-empty { grid-column: 1 / -1; margin: 0; padding: 14px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--ink-2); font-size: 14px; }
.manual { border-top: 1px solid var(--line); padding-top: 12px; }
.manual summary { cursor: pointer; color: var(--ink-2); font-size: 14px; }
.manual summary:hover { color: var(--gold-hi); }
.check-line { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 13.5px; }
.check-line:empty { display: none; }
.check-line svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.check-line.ok { color: var(--good); }
.check-line.warn { color: var(--warn); }

/* ---------- Roster ---------- */
.proposals { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.proposal { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--r); border: 1px dashed rgba(200, 168, 107, .5); background: linear-gradient(160deg, var(--gold-soft), transparent 55%), var(--panel); }
.proposal-main { display: flex; gap: 12px; align-items: flex-start; }
.proposal-main .grow { flex: 1; min-width: 0; }
.proposal-main b { font-weight: 500; font-size: 16px; }
.proposal-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 14.5px; color: var(--off); }
.proposal-when svg { width: 15px; height: 15px; color: var(--gold); }
.proposal-why { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.roster-legend { margin: 0; flex-wrap: wrap; }
.roster-legend i { width: 14px; height: 10px; border-radius: 3px; border: 0; }
.lg-confirmed { background: rgba(var(--tint), .16); }
.lg-ai { background: var(--gold-soft); outline: 1px dashed var(--gold); }
.lg-off { background: repeating-linear-gradient(135deg, rgba(var(--tint), .08) 0 3px, transparent 3px 6px); }
.roster-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.roster { width: 100%; border-collapse: collapse; min-width: 980px; table-layout: fixed; }
.roster th, .roster td { border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); vertical-align: top; }
.roster thead th { padding: 10px 8px; font-weight: 400; font-size: 12px; color: var(--ink-2); text-align: center; position: sticky; top: 0; background: var(--panel); }
.roster thead th b { display: block; font-size: 18px; font-weight: 500; color: var(--off); }
.roster thead th.today b { color: var(--gold); }
.roster .who-col { width: 190px; text-align: left; padding: 12px; position: sticky; left: 0; background: var(--panel); z-index: 1; border-left: 0; }
.roster tbody .who-col { display: table-cell; }
.roster tbody .who-col > * { vertical-align: middle; }
.roster tbody .who-col .avatar { float: left; margin-right: 10px; }
.roster tbody .who-col b { display: block; font-weight: 500; font-size: 14px; }
.roster tbody .who-col small { display: block; color: var(--ink-3); font-size: 11.5px; line-height: 1.35; font-weight: 400; }
.roster tr:last-child td, .roster tr:last-child th { border-bottom: 0; }
.cell { padding: 6px; height: 120px; position: relative; transition: background .15s; }
.cell.today { background: rgba(200, 168, 107, .03); }
.cell.off, .cell.leave { background: repeating-linear-gradient(135deg, rgba(var(--tint), .035) 0 6px, transparent 6px 12px); }
.cell.past { opacity: .55; }
.cell.over { background: var(--gold-soft); box-shadow: inset 0 0 0 2px var(--gold); }
.cell-hours, .cell-note { display: block; font-size: 11px; color: var(--ink-3); margin: 0 2px 6px; }
.cell.leave .cell-note { color: var(--warn); }
.rchip { display: flex; flex-direction: column; width: 100%; text-align: left; gap: 1px; padding: 6px 8px; margin-bottom: 5px; border-radius: 8px; border: 1px solid transparent; background: rgba(var(--tint), .08); font-size: 12px; line-height: 1.3; transition: border-color .15s, transform .15s; }
.rchip b { font-weight: 600; font-size: 11.5px; }
.rchip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rchip small { color: var(--ink-3); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rchip:hover { border-color: rgba(200, 168, 107, .5); }
.rchip[draggable=true] { cursor: grab; }
.rchip.dragging { opacity: .35; }
.rchip.proposed { background: var(--gold-soft); border: 1px dashed var(--gold); }
.rchip.proposed small { color: var(--gold-hi); }
.rchip.pending { border-left: 2px solid var(--warn); }
.rchip.completed { opacity: .6; }
.load { position: absolute; left: 8px; right: 8px; bottom: 6px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.load i { display: block; height: 100%; background: var(--gold-lo); }
.ev.proposed { background: none; border: 1px dashed var(--gold); border-left-width: 2px; color: var(--gold-hi); }

/* ---------- Hours editor ---------- */
.hours-grid { display: flex; flex-direction: column; gap: 6px; }
.hrow { display: grid; grid-template-columns: 140px 1fr auto 1fr; gap: 10px; align-items: center; }
.hrow input[type=time] { padding: 8px 10px; }
.hrow:has(input[type=checkbox]:not(:checked)) input[type=time] { opacity: .35; }
.muted-grid { opacity: .5; }
.shift { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.shift summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.shift summary::-webkit-details-marker { display: none; }
.shift summary .grow { flex: 1; min-width: 0; }
.shift summary b { display: block; font-weight: 500; font-size: 14px; }
.shift summary small { display: block; color: var(--ink-3); font-size: 12px; }
.shift[open] summary { margin-bottom: 4px; }
.leave-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; align-items: end; }
.leave-form .btn { grid-column: 1 / -1; justify-self: start; }
/* =====================================================================
   Dashboard refresh (Oct 2026): motion, search palette, client list, forms inbox.
   Every animation only sets a starting state ("from"), so with reduced motion
   (animations off) everything simply shows in its final position.
   ===================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgba(200, 168, 107, .14); } }

/* Page entrance: each block rises in, one after the other */
.view.enter > * { animation: rise .55s var(--ease) both; }
.view.enter > *:nth-child(2) { animation-delay: .05s; }
.view.enter > *:nth-child(3) { animation-delay: .1s; }
.view.enter > *:nth-child(4) { animation-delay: .15s; }
.view.enter > *:nth-child(5) { animation-delay: .2s; }
.view.enter > *:nth-child(6) { animation-delay: .25s; }
.view.enter > *:nth-child(n+7) { animation-delay: .3s; }
.stagger > * { animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.tiles > .tile { animation: rise .5s var(--ease) both; }
.tiles > .tile:nth-child(2) { animation-delay: .06s; }
.tiles > .tile:nth-child(3) { animation-delay: .12s; }
.tiles > .tile:nth-child(4) { animation-delay: .18s; }
.tiles > .tile:nth-child(n+5) { animation-delay: .24s; }

/* Lines draw themselves; bars grow */
.spark polyline, .chart .ln1 { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1.3s var(--ease) .15s both; }
.bar-track { height: 5px; border-radius: 3px; background: var(--line); margin-top: 9px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; background: var(--gold-grad); background-size: 200% 100%; transform-origin: left; animation: grow 1s var(--ease) .2s both; }

/* Hover lift on anything clickable */
.tile, .card, .qa, .ccard, .fcard { transition: transform .28s var(--ease), border-color .2s, box-shadow .28s var(--ease), background .2s; }
a.tile:hover, .qa:hover, .ccard:hover, .fcard:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, .38); }
a.tile:active, .qa:active, .ccard:active { transform: translateY(-1px); }
.btn { transition: background-position .8s var(--ease), border-color .2s, color .2s, opacity .2s, transform .15s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.list a.row-link, .list button.row-link { border-radius: 10px; margin: -6px -8px; padding: 6px 8px; transition: background .15s; }
.list a.row-link:hover, .list button.row-link:hover { background: var(--panel-2); }
.list a.row-link > svg:last-child, .list button.row-link > svg:last-child { color: var(--ink-3); transition: transform .2s var(--ease), color .2s; }
.list a.row-link:hover > svg:last-child { transform: translateX(3px); color: var(--gold); }
button.row-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; width: 100%; background: none; border: 0; text-align: left; color: inherit; }
.tile-alert { animation: rise .5s var(--ease) both, glow 2.4s ease-in-out 1s 2; }
kbd { font: 500 10.5px/1 var(--sans); padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink-3); letter-spacing: .02em; white-space: nowrap; }
.btn kbd { margin-left: 2px; text-transform: none; letter-spacing: 0; }

/* Dialogs open with a soft pop */
.dlg[open] { animation: pop .28s var(--ease); }
.dlg.panel[open] { animation: slide .35s var(--ease); }
.dlg[open]::backdrop { animation: fadeIn .25s ease; }

/* ---------- Sidebar: search, clients list ---------- */
.side-search { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-3); font-size: 13.5px; transition: border-color .2s, color .2s; }
.side-search:hover { border-color: rgba(200, 168, 107, .5); color: var(--off); }
.side-search svg { width: 16px; height: 16px; }
.side-search span { flex: 1; text-align: left; }
.side-label { display: flex; align-items: center; gap: 8px; margin: 0 0 -12px; padding: 0 12px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.side-toggle { width: 100%; margin: 0; background: none; border: 0; padding: 6px 12px; border-radius: 8px; }
.side-toggle:hover { color: var(--off); }
.side-toggle svg { width: 14px; height: 14px; margin-left: auto; transition: transform .3s var(--ease); }
.side-clients:not(.open) .side-toggle svg { transform: rotate(-90deg); }
.side-n { font-size: 10.5px; letter-spacing: 0; padding: 1px 7px; border-radius: 9px; background: var(--panel-2); color: var(--ink-2); }
.side-clients { margin-top: -10px; }
.side-clients-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.side-clients.open .side-clients-body { grid-template-rows: 1fr; }
.side-clients-body > div { overflow: hidden; min-height: 0; }
.side-filter { margin: 8px 0 6px; padding: 7px 10px; font-size: 13px; border-radius: 8px; }
.side-clients-list { display: flex; flex-direction: column; gap: 1px; max-height: 280px; overflow-y: auto; padding: 4px 0 2px; scrollbar-width: thin; }
.side-clients-list a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-size: 13.5px; transition: background .15s, color .15s, transform .2s var(--ease); }
.side-clients-list a:hover { background: var(--panel); color: var(--off); transform: translateX(2px); }
.side-clients-list a.on { background: var(--panel-2); color: var(--off); box-shadow: inset 2px 0 0 var(--gold); }
.cmark { width: 24px; height: 24px; flex: none; border-radius: 7px; display: grid; place-items: center; background: var(--panel-3); color: var(--gold-hi); font-size: 9.5px; font-weight: 600; letter-spacing: .02em; }
.side-clients-list a.on .cmark { background: var(--gold-soft); }
.cname { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sdot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--ink-3); }
.sdot.active { background: var(--good); }
.sdot.onboarding { background: var(--warn); }
.sdot.cancelled { background: transparent; border: 1px solid var(--ink-3); }
.side-none { margin: 4px 10px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- Top bar: breadcrumbs and search ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; }
.crumbs a { color: var(--ink-3); text-decoration: none; white-space: nowrap; transition: color .15s; }
.crumbs a:hover { color: var(--gold-hi); }
.crumbs i { font-style: normal; color: var(--ink-3); opacity: .6; }
.crumbs span { color: var(--off); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-search { display: inline-flex; align-items: center; gap: 10px; width: min(340px, 34vw); padding: 8px 10px 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-3); font-size: 13px; transition: border-color .2s, color .2s, width .3s var(--ease); }
.top-search:hover { border-color: rgba(200, 168, 107, .5); color: var(--off); }
.top-search svg { width: 16px; height: 16px; flex: none; }
.top-search span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Search palette ---------- */
.pal { width: min(620px, calc(100vw - 24px)); margin: 12vh auto auto; padding: 0; border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); color: var(--off); box-shadow: 0 40px 100px rgba(0, 0, 0, .7); overflow: hidden; }
.pal[open] { animation: pop .22s var(--ease); }
.pal::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); animation: fadeIn .2s ease; }
.pal-search { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--gold); }
.pal-search input { border: 0; background: none; padding: 0; font-size: 17px; }
.pal-search input:focus { border: 0; }
.pal-list { max-height: min(56vh, 460px); overflow-y: auto; padding: 8px; scrollbar-width: thin; }
.pal-g { margin: 10px 10px 6px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.pal-g:first-child { margin-top: 4px; }
.pal-it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; text-align: left; color: var(--ink-2); }
.pal-it .ico { width: 30px; height: 30px; }
.pal-it .grow { flex: 1; min-width: 0; }
.pal-it b { display: block; font-weight: 500; font-size: 14px; color: var(--off); }
.pal-it small { display: block; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-it > svg { color: var(--ink-3); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.pal-it.on { background: var(--panel-3); }
.pal-it.on > svg { opacity: 1; transform: none; color: var(--gold); }
.pal-empty { margin: 0; padding: 28px 14px; text-align: center; color: var(--ink-3); }
.pal-foot { display: flex; gap: 16px; margin: 0; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.pal-foot span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Admin dashboard ---------- */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.qa { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: inherit; text-align: left; font: inherit; }
.qa .grow { flex: 1; min-width: 0; }
.qa b { display: block; font-weight: 500; font-size: 14.5px; }
.qa small { display: block; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa > svg { color: var(--ink-3); transition: transform .2s var(--ease), color .2s; }
.qa:hover { border-color: rgba(200, 168, 107, .45); }
.qa:hover > svg { transform: translateX(3px); color: var(--gold); }
.qa .ico { transition: background .2s, color .2s; }
.qa:hover .ico { background: var(--gold-soft); color: var(--gold-hi); }
.qa.hot { border-color: rgba(200, 168, 107, .4); background: linear-gradient(160deg, var(--gold-soft), transparent 60%), var(--panel); }
.quick > .qa { animation: rise .5s var(--ease) both; }
.quick > .qa:nth-child(2) { animation-delay: .05s; }
.quick > .qa:nth-child(3) { animation-delay: .1s; }
.quick > .qa:nth-child(4) { animation-delay: .15s; }

.ccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ccard { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.ccard:hover, .ccard:focus-visible { border-color: rgba(200, 168, 107, .45); }
.ccard.warn { border-color: rgba(230, 137, 122, .3); }
.ccard header { display: flex; align-items: center; gap: 12px; }
.ccard header .grow { flex: 1; min-width: 0; }
.ccard header b { display: block; font-weight: 500; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard header small { display: block; color: var(--ink-3); font-size: 12.5px; }
.ccard .biz-mark { transition: transform .3s var(--ease); }
.ccard:hover .biz-mark { transform: rotate(-6deg) scale(1.06); }
.ccard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ccard-stats dt { font-size: 11px; color: var(--ink-3); margin-bottom: 2px; }
.ccard-stats dd { margin: 0; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ccard footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ccard footer .linkish { margin-left: auto; }
.seg button svg { width: 16px; height: 16px; display: block; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; margin: -8px 0 24px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; color: var(--ink-2); text-decoration: none; font-size: 14px; white-space: nowrap; transition: color .2s; }
.tabs a svg { width: 16px; height: 16px; opacity: .8; }
.tabs a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.tabs a:hover { color: var(--off); }
.tabs a.on { color: var(--off); }
.tabs a.on svg { color: var(--gold); opacity: 1; }
.tabs a.on::after { transform: scaleX(1); }
.form-chips { margin: -6px 0 16px; }

/* ---------- Forms inbox ---------- */
.flist { display: flex; flex-direction: column; gap: 8px; }
.frow { display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); text-align: left; color: inherit; font: inherit; transition: border-color .2s, background .2s, transform .25s var(--ease); }
.frow:hover { border-color: rgba(200, 168, 107, .45); background: var(--panel-2); transform: translateX(3px); }
.frow.is-new { border-color: rgba(134, 199, 156, .3); box-shadow: inset 3px 0 0 var(--good); }
.frow b { display: block; font-weight: 500; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow small { display: block; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow-form b { font-size: 13.5px; color: var(--ink-2); }
.frow-when { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.frow > svg:last-child { color: var(--ink-3); transition: transform .2s var(--ease), color .2s; }
.frow:hover > svg:last-child { transform: translateX(3px); color: var(--gold); }
.answers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
.answers > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.answers > div:first-child { border-top: 0; padding-top: 0; }
.answers dt { color: var(--ink-3); font-size: 13px; }
.answers dd { margin: 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.dlg .eyebrow { display: flex; align-items: center; gap: 10px; }
.dlg-foot { position: sticky; bottom: -28px; margin: 26px -28px -28px; padding: 14px 28px; background: var(--panel); border-top: 1px solid var(--line); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.sig-img { background: #fff; border-radius: 10px; max-width: 320px; width: 100%; border: 1px solid var(--line-2); }

.flib { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.fcard { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.fcard b { font-weight: 500; font-size: 15px; margin-top: 6px; }
.fcard small { color: var(--ink-3); font-size: 12.5px; line-height: 1.45; flex: 1; }
.fcard footer { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.fcard.on { border-color: var(--gold); background: linear-gradient(160deg, var(--gold-soft), transparent 60%), var(--panel); }
.link-out { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); background: var(--black); }
.link-out code { flex: 1; min-width: 0; font: 13px/1.45 ui-monospace, Consolas, monospace; color: var(--gold-hi); word-break: break-all; }
.ct-out { display: flex; flex-direction: column; gap: 12px; animation: rise .4s var(--ease) both; }
.sig-pad { width: 100%; max-width: 420px; height: 130px; background: #fff; border: 1px dashed var(--line-2); border-radius: 10px; touch-action: none; cursor: crosshair; }
.steps { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; padding: 0; }
.steps li { counter-increment: st; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 48px; position: relative; border-radius: 12px; background: var(--panel-2); }
.steps li::before { content: counter(st); position: absolute; left: 14px; top: 13px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-hi); font-size: 12px; font-weight: 600; }
.steps b { font-weight: 500; font-size: 14px; }
.steps small { color: var(--ink-3); font-size: 12.5px; }

@media (max-width: 1180px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 920px) {
  .top-search { width: auto; padding: 8px; border-color: transparent; background: none; }
  .top-search span, .top-search kbd { display: none; }
  .frow { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 4px; }
  .frow-form { grid-column: 2; grid-row: 2; }
  .frow-when { grid-column: 3; grid-row: 1; }
  .frow .pill { grid-column: 3; grid-row: 2; justify-self: end; }
  .frow > svg:last-child { display: none; }
  .frow .ico { grid-row: 1 / 3; }
}
@media (max-width: 600px) {
  .quick { grid-template-columns: minmax(0, 1fr); }
  .ccards { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .answers > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .crumbs a:not(:last-of-type), .crumbs i:first-of-type { display: none; }
  .pal { margin-top: 8vh; }
  .pal-foot { display: none; }
  .dlg-foot { margin: 22px -18px -22px; padding: 12px 18px; bottom: -22px; flex-wrap: wrap; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .g-main, .g3 { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 60; transform: translateX(-102%); transition: transform .35s var(--ease); }
  .nav-open .side { transform: none; box-shadow: 30px 0 80px rgba(0, 0, 0, .6); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-open .scrim { opacity: 1; pointer-events: auto; }
  .menu-btn { display: inline-grid; margin-left: -8px; }
  .side-nav a.on::before { left: -14px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--tabbar-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: var(--ink-3); text-decoration: none; background: none; border: 0; padding: 6px 2px; }
  .tabbar .on { color: var(--gold); }
  .view { padding-bottom: 110px; }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .inbox { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 62px - 190px); }
  .inbox.has-thread .inbox-list { display: none; }
  .inbox:not(.has-thread) .inbox-pane { display: none; }
  .back-link { display: inline-grid; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .proposals { grid-template-columns: minmax(0, 1fr); }
  .hrow { grid-template-columns: 110px 1fr auto 1fr; gap: 6px; }
  .leave-form { grid-template-columns: minmax(0, 1fr); }
  .roster .who-col { width: 140px; }
  .tiles.tiles-3 { grid-template-columns: minmax(0, 1fr); }
  .jobs-grid { grid-template-columns: minmax(0, 1fr); }
  .job { padding: 18px; }
  .job-actions .btn { flex: 1 1 auto; }
  .tiles { gap: 10px; }
  .tile { padding: 14px 14px 10px; }
  .tile-val { font-size: 24px; }
  .hero-split { grid-template-columns: 1fr 1fr; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 18px; }
  .dlg-body { padding: 22px 18px; }
  .month .dow { padding: 8px 4px; font-size: 9.5px; letter-spacing: .06em; }
  .mday { min-height: 64px; padding: 4px; }
  .mday .ev { font-size: 0; padding: 0; height: 5px; border-left-width: 0; background: var(--gold); }
  .mday .ev.pending { background: var(--warn); }
  .mday .ev.completed, .mday .ev.cancelled, .mday .ev.no_show { background: var(--ink-3); }
  .auto-stats b { font-size: 17px; }
  .msg { max-width: 90%; }
  .page-head { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
