/* Uga Escapes IT Helpdesk
   Layout: portal = canopy header band + centred working column; console = forest sidebar + scrolling workspace (Planner-like board).
   Palette: canopy olive, forest floor, thatch gold, mist neutrals biased to green. */
:root {
  --bg: #EDEFE6;
  --surface: #FFFFFF;
  --surface-2: #F6F7F1;
  --surface-3: #E6E9DD;
  --ink: #1C2116;
  --ink-2: #464E3C;
  --muted: #747C69;
  --line: #D9DDCD;
  --line-2: #C9CFBA;
  --brand: #4E5D24;
  --brand-2: #3D4A1B;
  --brand-ink: #FFFFFF;
  --brand-soft: #E2E8CC;
  --forest: #1B2719;
  --forest-2: #253423;
  --forest-ink: #DCE3CC;
  --forest-muted: #93A086;
  --thatch: #B9822F;
  --thatch-soft: #F5E7CC;
  --st-new: #5A6782;
  --st-new-soft: #E4E8F0;
  --st-prog: #B26F07;
  --st-prog-soft: #FBEBCB;
  --st-done: #2E7A4C;
  --st-done-soft: #D9EEDF;
  --danger: #B0352E;
  --danger-soft: #F7DEDB;
  --c-recv: #C27A1E;
  --c-done: #1F6E9A;
  --shadow: 0 1px 2px rgba(28, 33, 22, .06), 0 4px 14px rgba(28, 33, 22, .06);
  --shadow-lg: 0 10px 40px rgba(20, 26, 14, .18);
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 10px;
  --r-sm: 7px;
  --side: 236px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10150E; --surface: #182016; --surface-2: #1E271B; --surface-3: #263122; --ink: #E8ECDE; --ink-2: #BAC2AB; --muted: #8C957E;
    --line: #2D3828; --line-2: #3A4733; --brand: #A9BE68; --brand-2: #BED37A; --brand-ink: #141A0D; --brand-soft: #2B361E;
    --forest: #0B100A; --forest-2: #162014; --forest-ink: #DCE3CC; --forest-muted: #8A977C; --thatch: #D9A75B; --thatch-soft: #3A2E18;
    --st-new: #A2B0CC; --st-new-soft: #252C3A; --st-prog: #E8AE4A; --st-prog-soft: #3B2E14; --st-done: #6FC48F; --st-done-soft: #183022;
    --danger: #F08077; --danger-soft: #3D1E1B; --c-recv: #C27A1E; --c-done: #3E95D0; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25); --shadow-lg: 0 10px 40px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10150E; --surface: #182016; --surface-2: #1E271B; --surface-3: #263122; --ink: #E8ECDE; --ink-2: #BAC2AB; --muted: #8C957E;
  --line: #2D3828; --line-2: #3A4733; --brand: #A9BE68; --brand-2: #BED37A; --brand-ink: #141A0D; --brand-soft: #2B361E;
  --forest: #0B100A; --forest-2: #162014; --forest-ink: #DCE3CC; --forest-muted: #8A977C; --thatch: #D9A75B; --thatch-soft: #3A2E18;
  --st-new: #A2B0CC; --st-new-soft: #252C3A; --st-prog: #E8AE4A; --st-prog-soft: #3B2E14; --st-done: #6FC48F; --st-done-soft: #183022;
  --danger: #F08077; --danger-soft: #3D1E1B; --c-recv: #C27A1E; --c-done: #3E95D0; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25); --shadow-lg: 0 10px 40px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14.5px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; line-height: 1.15; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h2 { font-size: 1.35rem; font-weight: 650; }
h3 { font-size: 1.05rem; font-weight: 650; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--thatch); outline-offset: 2px; }
.mono { font-family: var(--f-mono); font-size: .86em; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack { display: grid; gap: 14px; }
.hide { display: none !important; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  padding: 8px 14px; border-radius: var(--r-sm); cursor: pointer; font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-2); }
.btn.gold { background: var(--thatch); color: #fff; border-color: var(--thatch); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.danger { color: var(--danger); border-color: var(--danger-soft); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.sm { padding: 5px 10px; font-size: .84rem; }
.btn.lg { padding: 12px 22px; font-size: 1rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.icon-btn { width: 34px; height: 34px; padding: 0; border-radius: 50%; }
.btn svg, .icon-btn svg { width: 17px; height: 17px; flex: none; }

.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > label, .lbl { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.field .hint { font-size: .8rem; color: var(--muted); }
.req::after { content: " *"; color: var(--danger); }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r-sm); padding: 9px 11px; min-height: 40px; }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.input.bad { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 720px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; line-height: 1.6; }
.chip svg { width: 13px; height: 13px; }
.st-0 { background: var(--st-new-soft); color: var(--st-new); }
.st-1 { background: var(--st-prog-soft); color: var(--st-prog); }
.st-2 { background: var(--st-done-soft); color: var(--st-done); }
.chip.due { background: var(--surface-3); color: var(--ink-2); }
.chip.late { background: var(--danger); color: #fff; }
.chip.label { color: #fff; }
.chip.soft { background: var(--surface-3); color: var(--ink-2); }
.pri { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 600; }
.pri i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.pri-0 { color: var(--danger); } .pri-0 i { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.pri-1 { color: var(--st-prog); } .pri-1 i { background: var(--st-prog); }
.pri-2 { color: var(--brand); } .pri-2 i { background: var(--brand); }
.pri-3 { color: var(--muted); } .pri-3 i { background: transparent; border: 2px solid var(--muted); width: 8px; height: 8px; }

.av { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: .72rem; font-weight: 700; flex: none; border: 2px solid var(--surface); letter-spacing: .02em; }
.av.lg { width: 44px; height: 44px; font-size: .95rem; }
.av.xl { width: 58px; height: 58px; font-size: 1.15rem; }
.avs { display: inline-flex; }
.avs .av + .av { margin-left: -8px; }
.av.more { background: var(--surface-3); color: var(--ink-2); }

/* ---------- toast / modal ---------- */
#toasts { position: fixed; z-index: 90; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); right: calc(18px + env(safe-area-inset-right, 0px)); display: grid; gap: 8px; }
.toast { background: var(--forest); color: var(--forest-ink); padding: 11px 16px; border-radius: 9px; box-shadow: var(--shadow-lg); font-weight: 500; max-width: 360px; animation: pop .2s ease; }
.toast.err { background: var(--danger); color: #fff; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.overlay { position: fixed; inset: 0; background: rgba(12, 16, 9, .5); z-index: 60; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: calc(100% - 20px); overflow: auto; }
.modal.wide { width: min(1080px, 100%); }
.modal-h { padding: 18px 22px 0; display: flex; align-items: center; gap: 10px; }
.modal-b { padding: 18px 22px 22px; display: grid; gap: 14px; }
.modal-f { padding: 0 22px 20px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ================= PORTAL ================= */
.p-nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--forest) 92%, transparent); backdrop-filter: blur(8px); color: var(--forest-ink); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--forest); }
.p-nav-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand b { font-family: var(--f-display); font-size: 1.08rem; letter-spacing: -.01em; display: block; line-height: 1.1; }
.brand small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--forest-muted); }
.p-nav a.nl, .p-nav button.nl { color: var(--forest-ink); text-decoration: none; padding: 7px 11px; border-radius: 7px; font-weight: 600; font-size: .9rem; background: none; border: 0; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.p-nav .nl:hover, .p-nav .nl.on { background: rgba(255,255,255,.1); }
.p-nav .nl svg { width: 16px; height: 16px; }
@media (max-width: 600px) { .p-nav .nl span { display: none; } .p-nav .nl { padding: 8px; } .p-nav-in { flex-wrap: nowrap; } .brand small { display: none; } }

.hero { position: relative; overflow: hidden; color: #F2F4EA; background:
  radial-gradient(120% 140% at 85% -20%, rgba(185,130,47,.45), transparent 55%),
  radial-gradient(90% 120% at 0% 120%, rgba(110,140,60,.55), transparent 60%),
  linear-gradient(160deg, #2C3D22 0%, #1B2719 60%, #141D12 100%); }
.hero.has-photo { background-size: cover; background-position: center; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.hero-in { position: relative; max-width: 1120px; margin: 0 auto; padding-block: 44px 76px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { color: #D7DEC8; max-width: 56ch; font-size: 1.04rem; margin: 10px 0 0; }
.hero .eyebrow { color: #E2C48D; }
.p-main { max-width: 1120px; margin: -48px auto 40px; position: relative; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 20px; }
.p-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .p-cols { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.card-b { padding: 22px; }
.form-sec { padding: 22px 24px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.form-sec:first-child { border-top: 0; }
.sec-h { display: flex; gap: 12px; align-items: baseline; }
.sec-h .n { font-family: var(--f-display); font-weight: 700; color: var(--thatch); font-size: 1.05rem; }
.who-card { display: flex; gap: 14px; align-items: center; background: var(--brand-soft); border-radius: 12px; padding: 14px 16px; flex-wrap: wrap; }
.who-card .meta { flex: 1; min-width: 200px; }
.who-card .meta b { display: block; font-size: 1.02rem; }
.cat-groups { display: grid; gap: 14px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.cat { display: flex; gap: 9px; align-items: center; text-align: left; border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; padding: 9px 11px; cursor: pointer; font-size: .86rem; font-weight: 600; line-height: 1.25; color: var(--ink-2); transition: all .12s; min-height: 50px; }
.cat svg { width: 22px; height: 22px; flex: none; color: var(--brand); }
.cat:hover { border-color: var(--brand); background: var(--surface-2); }
.cat.on { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.cat.on svg { color: var(--brand-ink); }
.drop { border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 16px; text-align: center; color: var(--muted); cursor: pointer; }
.drop.on { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }
.side-card { padding: 20px; display: grid; gap: 12px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.steps li span:first-child { width: 26px; height: 26px; border-radius: 50%; background: var(--thatch-soft); color: var(--thatch); display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.success { text-align: center; padding: 40px 22px; display: grid; gap: 14px; justify-items: center; }
.success .big { font-family: var(--f-mono); font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 8px 18px; border-radius: 12px; letter-spacing: -.02em; }
.tick-ill { width: 76px; height: 76px; }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 6px 0; }
.stepper div { text-align: center; position: relative; font-size: .82rem; font-weight: 600; color: var(--muted); padding-top: 30px; }
.stepper div::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--surface-3); border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--line-2); z-index: 1; }
.stepper div::after { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: var(--line-2); }
.stepper div:first-child::after { display: none; }
.stepper div.on { color: var(--ink); }
.stepper div.on::before { background: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.stepper div.on::after { background: var(--brand); }
.thread { display: grid; gap: 12px; }
.msg { display: grid; grid-template-columns: 32px 1fr; gap: 10px; }
.msg .bubble { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; padding: 10px 13px; min-width: 0; overflow-wrap: anywhere; }
.msg.mine .bubble { background: var(--brand-soft); border-color: transparent; }
.msg.internal .bubble { background: var(--thatch-soft); border-color: transparent; }
.msg .who { font-size: .8rem; color: var(--muted); margin-bottom: 3px; }
.msg .who b { color: var(--ink); }
.list-t { display: grid; gap: 10px; }
.tcard { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; text-decoration: none; color: inherit; }
.tcard:hover { border-color: var(--brand); }
.tcard .t { font-weight: 650; }
.p-foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 10px 16px 30px; }
.auth-wrap { max-width: 440px; margin: 0 auto; width: 100%; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 650; color: var(--muted); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--brand); }

/* ================= CONSOLE ================= */
.c-shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); height: 100%; }
.c-side { background: var(--forest); color: var(--forest-ink); display: flex; flex-direction: column; padding: 16px 12px; gap: 4px; overflow-y: auto; padding-left: max(12px, env(safe-area-inset-left, 0px)); }
.c-side .brand { margin: 2px 6px 18px; }
.c-side a.nav { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 8px; color: var(--forest-ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.c-side a.nav svg { width: 18px; height: 18px; color: var(--forest-muted); }
.c-side a.nav:hover { background: var(--forest-2); }
.c-side a.nav.on { background: var(--forest-2); color: #fff; box-shadow: inset 3px 0 0 var(--thatch); }
.c-side a.nav.on svg { color: var(--thatch); }
.c-side .count { margin-left: auto; font-size: .75rem; background: rgba(255,255,255,.1); padding: 0 8px; border-radius: 99px; }
.c-side .sep { height: 1px; background: rgba(255,255,255,.08); margin: 10px 6px; }
.c-side .me { margin-top: auto; display: flex; gap: 6px; align-items: center; padding: 10px 4px; border-radius: 10px; }
.c-side .me b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-side .me .icon-btn { width: 30px; height: 30px; flex: none; }
.c-side .me .av { border-color: var(--forest); }
.c-side .me small { display: block; color: var(--forest-muted); font-size: .75rem; }
.c-main { display: flex; flex-direction: column; min-width: 0; height: 100%; overflow: hidden; }
.c-top { display: flex; align-items: center; gap: 12px; padding-block: 12px; padding-left: 22px; padding-right: max(22px, env(safe-area-inset-right, 0px)); border-bottom: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.c-top h2 { font-size: 1.25rem; }
.c-search { position: relative; flex: 0 1 340px; min-width: 180px; }
.c-search input { padding-left: 34px; min-height: 38px; background: var(--surface-2); }
.c-search svg { position: absolute; left: 10px; top: 10px; width: 17px; height: 17px; color: var(--muted); }
.c-body { flex: 1; overflow: auto; padding-block: 20px 40px; padding-left: 22px; padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.c-body.board-body { padding-bottom: 12px; display: flex; flex-direction: column; overflow: hidden; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .c-shell { grid-template-columns: 1fr; }
  .c-side { position: fixed; z-index: 70; inset: 0 auto 0 0; width: 260px; transform: translateX(-105%); transition: transform .2s; padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
  .c-side.open { transform: none; box-shadow: var(--shadow-lg); }
  .menu-btn { display: inline-flex; }
  .c-body, .c-top { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar select.input, .toolbar input.input { min-height: 36px; padding: 6px 10px; width: auto; max-width: 220px; font-size: .88rem; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; cursor: default; position: relative; overflow: hidden; }
.kpi[data-go] { cursor: pointer; }
.kpi[data-go]:hover { border-color: var(--brand); }
.kpi .v { font-family: var(--f-display); font-size: 2rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .k { font-size: .82rem; color: var(--muted); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.kpi .k i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.kpi .s { font-size: .78rem; color: var(--muted); }
.kpi.alert .v { color: var(--danger); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-width: 0; }
.panel-h { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; } .span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }
@media (max-width: 1100px) { .span-8, .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; } }

/* team workload */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tw { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 10px; background: var(--surface); cursor: pointer; transition: border-color .15s, transform .15s; }
.tw:hover { border-color: var(--brand); transform: translateY(-1px); }
.tw-h { display: flex; gap: 10px; align-items: center; min-width: 0; }
.tw-h div { min-width: 0; }
.tw-h b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-h small { color: var(--muted); font-size: .78rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-n { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.tw-n div { background: var(--surface-2); border-radius: 8px; padding: 6px 2px; }
.tw-n b { font-family: var(--f-display); font-size: 1.25rem; display: block; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tw-n small { font-size: .7rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.tw-n .late b { color: var(--danger); }
.bar { height: 8px; border-radius: 99px; background: var(--surface-3); display: flex; overflow: hidden; gap: 2px; }
.bar span { display: block; height: 100%; border-radius: 99px; }

/* horizontal bar lists */
.hbars { display: grid; gap: 9px; }
.hb { display: grid; grid-template-columns: minmax(90px, 38%) 1fr 54px; gap: 10px; align-items: center; font-size: .86rem; cursor: default; }
.hb[data-go] { cursor: pointer; }
.hb .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.hb .t { height: 14px; background: var(--surface-2); border-radius: 0 4px 4px 0; position: relative; }
.hb .t span { position: absolute; inset: 0 auto 0 0; background: var(--brand); border-radius: 0 4px 4px 0; min-width: 2px; }
.hb .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.hb:hover .t span { background: var(--thatch); }

/* svg chart */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--f-body); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart-wrap { position: relative; }
.tip { position: absolute; pointer-events: none; background: var(--forest); color: var(--forest-ink); padding: 7px 10px; border-radius: 8px; font-size: .8rem; box-shadow: var(--shadow-lg); white-space: nowrap; z-index: 5; transform: translate(-50%, -110%); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-2); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }

/* lists */
.mini { display: grid; }
.mini-r { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--line); cursor: pointer; }
.mini-r:first-child { border-top: 0; }
.mini-r:hover { background: var(--surface-2); }
.mini-r .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.mini-r small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* board */
.board { display: flex; gap: 14px; overflow-x: auto; flex: 1; padding-bottom: 10px; align-items: flex-start; min-height: 0; }
.col { flex: 0 0 300px; background: var(--surface-3); border-radius: 12px; display: flex; flex-direction: column; max-height: 100%; min-height: 0; }
.col-h { display: flex; gap: 9px; align-items: center; padding: 12px 12px 8px; }
.col-h b { font-family: var(--f-display); font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.col-h .cnt { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--surface); border-radius: 99px; padding: 1px 9px; }
.col-add { margin: 0 10px 8px; border: 1px dashed var(--line-2); background: transparent; border-radius: 8px; padding: 7px; color: var(--muted); font-weight: 600; cursor: pointer; display: flex; gap: 6px; align-items: center; justify-content: center; }
.col-add:hover { color: var(--ink); border-color: var(--brand); background: var(--surface); }
.col-b { overflow-y: auto; padding: 0 10px 12px; display: grid; gap: 8px; align-content: start; min-height: 60px; flex: 1; }
.col.drag-over { box-shadow: inset 0 0 0 2px var(--brand); }
.kcard { background: var(--surface); border-radius: 10px; padding: 11px 12px; display: grid; gap: 8px; cursor: pointer; box-shadow: var(--shadow); border: 1px solid transparent; }
.kcard:hover { border-color: var(--line-2); }
.kcard.dragging { opacity: .4; }
.kcard .k-t { font-weight: 600; line-height: 1.35; font-size: .9rem; overflow-wrap: anywhere; }
.kcard .k-t .done { text-decoration: line-through; color: var(--muted); }
.kcard .k-s { font-size: .78rem; color: var(--muted); }
.kcard .k-f { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.kcard .labels { display: flex; gap: 4px; flex-wrap: wrap; }
.kcard .labels .chip { font-size: .7rem; padding: 0 7px; }
.kmeta { display: inline-flex; gap: 3px; align-items: center; font-size: .76rem; color: var(--muted); }
.kmeta svg { width: 13px; height: 13px; }
.round-check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--muted); display: inline-grid; place-items: center; flex: none; background: none; padding: 0; cursor: pointer; }
.round-check:hover { border-color: var(--st-done); background: var(--st-done-soft); }
.round-check.on { background: var(--st-done); border-color: var(--st-done); color: #fff; }
.round-check svg { width: 11px; height: 11px; }
.col-more { text-align: center; font-size: .8rem; color: var(--muted); padding: 4px; }

/* table */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table.tbl { border-collapse: collapse; width: 100%; font-size: .87rem; }
.tbl th { text-align: left; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; cursor: pointer; user-select: none; }
.tbl th.sorted { color: var(--ink); }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl td.r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .ell { max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); gap: 1px; }
.cal .dow { background: var(--surface-2); padding: 8px; font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cal .day { background: var(--surface); min-height: 112px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal .day.out { background: var(--surface-2); }
.cal .day.today { box-shadow: inset 0 0 0 2px var(--thatch); }
.cal .dn { font-size: .78rem; font-weight: 700; color: var(--muted); }
.cal .ev { font-size: .74rem; padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; border-left: 3px solid; }
.cal .ev.s0 { background: var(--st-new-soft); border-color: var(--st-new); }
.cal .ev.s1 { background: var(--st-prog-soft); border-color: var(--st-prog); }
.cal .ev.s2 { background: var(--st-done-soft); border-color: var(--st-done); opacity: .75; }
.cal .ev.late { background: var(--danger-soft); border-color: var(--danger); }
.cal .more { font-size: .72rem; color: var(--muted); padding-left: 4px; cursor: pointer; }
@media (max-width: 700px) { .cal .day { min-height: 70px; } .cal .ev { font-size: 0; height: 6px; padding: 0; } }

/* ticket detail */
.td { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 860px) { .td { grid-template-columns: 1fr; } }
.td-main { padding: 20px 24px 24px; display: grid; gap: 16px; align-content: start; border-right: 1px solid var(--line); min-width: 0; }
.td-side { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); min-width: 0; }
.td-title { font-family: var(--f-display); font-size: 1.3rem; font-weight: 650; border: 1px solid transparent; border-radius: 8px; padding: 4px 6px; margin-left: -7px; width: calc(100% + 7px); background: transparent; resize: none; line-height: 1.3; }
.td-title:hover { border-color: var(--line); }
.td-title:focus { border-color: var(--brand); outline: none; background: var(--surface); }
.meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
@media (max-width: 520px) { .meta-grid { grid-template-columns: 1fr; } }
.meta-grid .field > label { font-size: .78rem; color: var(--muted); }
.req-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .88rem; background: var(--surface-2); }
.req-card dt { color: var(--muted); }
.req-card dd { margin: 0; overflow-wrap: anywhere; }
.cl-item { display: flex; gap: 10px; align-items: center; padding: 6px 4px; border-radius: 6px; }
.cl-item:hover { background: var(--surface-2); }
.cl-item span { flex: 1; }
.cl-item.done span { text-decoration: line-through; color: var(--muted); }
.cl-item .x { opacity: 0; }
.cl-item:hover .x { opacity: 1; }
.files { display: grid; gap: 6px; }
.file { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .86rem; min-width: 0; }
.file a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file > svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.file .icon-btn { flex: none; }
.file .muted { flex: none; white-space: nowrap; }
.picker { position: absolute; z-index: 80; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); width: 290px; max-height: 360px; overflow: auto; padding: 6px; }
.picker input.input { margin-bottom: 6px; min-height: 34px; }
.pick { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.pick:hover { background: var(--surface-2); }
.pick .ck { margin-left: auto; color: var(--brand); width: 16px; height: 16px; }
.activity { font-size: .8rem; color: var(--muted); display: grid; gap: 6px; }
.activity b { color: var(--ink-2); font-weight: 600; }

/* team page */
.ucard { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); }
.ucard:first-child { border-top: 0; }
.ucard .m { min-width: 0; }
.ucard .m b { display: block; }
.ucard .m small { color: var(--muted); }
.role { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); }
.role.admin { background: var(--thatch-soft); color: var(--thatch); }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatches button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.swatches button.on { box-shadow: 0 0 0 2px var(--ink); }
.prop-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.lk-row { display: flex; gap: 10px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--line); }
.lk-row:first-child { border-top: 0; }
.lk-row .nm { flex: 1; min-width: 0; }
.lk-row.off .nm { color: var(--muted); text-decoration: line-through; }
.dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; flex: none; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); display: grid; gap: 8px; justify-items: center; }
.empty svg { width: 44px; height: 44px; color: var(--line-2); }
.loading { display: grid; place-items: center; height: 100%; min-height: 50vh; color: var(--muted); gap: 12px; }
.spin { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-bar { background: var(--thatch); color: #fff; font-size: .82rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-block: 6px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.demo-bar select { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 6px; padding: 3px 6px; }
.demo-bar select option { color: #000; }
.app-root { height: 100%; display: flex; flex-direction: column; }
.app-root > .view { flex: 1; min-height: 0; overflow: auto; }
.app-root > .view.console { overflow: hidden; }

@media print {
  .c-side, .c-top, .toolbar, .no-print, .demo-bar, #toasts { display: none !important; }
  .c-shell { display: block; } .c-main, .c-body, .app-root > .view { overflow: visible !important; height: auto; }
  .panel { break-inside: avoid; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ================= v2: navigation, Uga photos, colour ================= */
:root { --plum: #6E2A4A; --plum-soft: #F3E3EA; --teal: #1F6E6A; --teal-soft: #DCEFEC; --sky: #2E6AA0; --sky-soft: #DEE9F4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --plum: #D98AAE; --plum-soft: #3A2030; --teal: #6CC5BC; --teal-soft: #173230; --sky: #8DB8E6; --sky-soft: #1B2838; } }
:root[data-theme="dark"] { --plum: #D98AAE; --plum-soft: #3A2030; --teal: #6CC5BC; --teal-soft: #173230; --sky: #8DB8E6; --sky-soft: #1B2838; }

/* photos */
.ph { position: relative; display: block; overflow: hidden; background: linear-gradient(135deg, var(--tone, #3F5A2A), color-mix(in srgb, var(--tone, #3F5A2A) 55%, #000)); }
.ph::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 0%, rgba(255,255,255,.18), transparent 60%); pointer-events: none; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.ph-sm { width: 32px; height: 32px; border-radius: 8px; flex: none; display: inline-block; vertical-align: middle; }
.ph-xs { width: 22px; height: 22px; border-radius: 6px; flex: none; display: inline-block; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; opacity: .55; }
.hero.has-photo { background: linear-gradient(160deg, #1B2719 0%, #141D12 100%); }
.hero.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,22,13,.88) 0%, rgba(16,22,13,.55) 55%, rgba(16,22,13,.25) 100%); }
.hero canvas { z-index: 1; } .hero-in { z-index: 2; }

/* portal nav extras */
.p-nav .nl-gold { background: var(--thatch); color: #fff; }
.p-nav .nl-gold:hover { background: #a3711f; }
.it-strip { background: var(--thatch-soft); color: var(--ink); display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); font-size: .88rem; border-bottom: 1px solid var(--line); }
.it-strip span { display: inline-flex; gap: 6px; align-items: center; }
.it-strip svg { width: 16px; height: 16px; }
.p-foot { background: var(--forest); color: var(--forest-ink); margin-top: 20px; padding: 0; text-align: left; }
.p-foot-in { max-width: 1120px; margin: 0 auto; display: flex; gap: 18px 28px; align-items: center; flex-wrap: wrap; padding-block: 22px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.p-foot .brand { margin-right: 0; }
.p-foot .muted { color: var(--forest-muted); margin-left: auto; font-size: .8rem; }
.foot-links { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.foot-links a { color: var(--forest-ink); text-decoration: none; font-size: .88rem; font-weight: 600; }
.foot-links a:hover { color: #fff; text-decoration: underline; }

/* property picker */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; border-radius: 12px; }
.prop-grid.bad { box-shadow: 0 0 0 3px var(--danger-soft); outline: 1.5px solid var(--danger); outline-offset: 3px; }
.prop-tile { position: relative; border: 2px solid transparent; border-radius: 12px; padding: 0; overflow: hidden; cursor: pointer; height: 84px; background: var(--surface-3); text-align: left; }
.prop-tile .ph { position: absolute; inset: 0; }
.prop-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10,14,8,.78)); }
.prop-tile span:last-child { position: absolute; z-index: 2; left: 9px; right: 8px; bottom: 7px; color: #fff; font-weight: 700; font-size: .84rem; line-height: 1.2; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.prop-tile:hover { border-color: var(--thatch); }
.prop-tile.on { border-color: var(--thatch); box-shadow: 0 0 0 3px var(--thatch-soft); }
.prop-tile.on::before { content: "✓"; position: absolute; z-index: 3; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--thatch); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.who-card.photo-bg { position: relative; overflow: hidden; color: #fff; background: #1B2719; }
.who-card.photo-bg > .ph { position: absolute; inset: 0; opacity: .55; }
.who-card.photo-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,22,13,.85), rgba(16,22,13,.35)); }
.who-card.photo-bg > *:not(.ph) { position: relative; z-index: 2; }
.who-card.photo-bg .muted { color: #E1E6D4; }

/* login split */
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 900px; margin: 0 auto; width: 100%; overflow: hidden; }
.auth-photo { position: relative; min-height: 420px; }
.auth-photo .ph { position: absolute; inset: 0; }
.auth-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(12,16,9,.85)); }
.auth-photo-txt { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 22px; color: #fff; display: grid; gap: 4px; }
.auth-photo-txt b { font-family: var(--f-display); font-size: 1.4rem; }
.auth-photo-txt span { color: #E1E6D4; font-size: .92rem; }
@media (max-width: 760px) { .auth-split { grid-template-columns: 1fr; } .auth-photo { min-height: 170px; } }

/* console header */
.c-head { display: grid; gap: 0; min-width: 0; }
.crumb { display: flex; gap: 6px; align-items: center; font-size: .78rem; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; display: inline-flex; gap: 4px; align-items: center; font-weight: 600; }
.crumb a:hover { color: var(--brand); }
.crumb svg { width: 13px; height: 13px; }
.back-btn { gap: 4px; }
.td-head { flex-wrap: wrap; }

/* dashboard hero */
.d-hero { position: relative; overflow: hidden; border-radius: 18px; color: #fff; background:
  radial-gradient(120% 140% at 85% -20%, rgba(185,130,47,.5), transparent 55%), linear-gradient(160deg, #2C3D22 0%, #1B2719 60%, #141D12 100%); }
.d-hero .hero-photo { opacity: .6; }
.d-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,22,13,.9) 0%, rgba(16,22,13,.6) 50%, rgba(16,22,13,.2) 100%); }
.d-hero-in { position: relative; z-index: 2; padding: 26px 26px 22px; display: grid; gap: 6px; }
.d-hero h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.d-hero p { margin: 0; color: #DCE3CC; }
.d-hero p b { color: #F2C97A; }
.d-hero .eyebrow { color: #E2C48D; }
.quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
@media (max-width: 1100px) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qa { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: #fff; text-decoration: none; backdrop-filter: blur(6px); transition: background .15s, transform .15s; min-width: 0; }
.qa:hover { background: rgba(255,255,255,.2); transform: translateY(-1px); }
.qa b { display: block; font-size: .9rem; } .qa small { display: block; color: #CFD7BF; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa span:last-child { min-width: 0; }
.qa-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; }
.qa-ic svg { width: 18px; height: 18px; }
.q1 .qa-ic { background: #B9822F; } .q2 .qa-ic { background: #5B6B2E; } .q3 .qa-ic { background: #2E6AA0; } .q4 .qa-ic { background: #1F6E6A; } .q5 .qa-ic { background: #6E2A4A; } .q6 .qa-ic { background: #7A4A2A; }

/* KPI colours */
.kpi { border-top: 3px solid var(--kc, var(--line)); }
.kpi .k-ic { width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center; background: var(--kcs, var(--surface-3)); color: var(--kc, var(--ink-2)); }
.kpi .k-ic svg { width: 14px; height: 14px; }
.k-new { --kc: var(--st-new); --kcs: var(--st-new-soft); } .k-prog { --kc: var(--st-prog); --kcs: var(--st-prog-soft); } .k-late { --kc: var(--danger); --kcs: var(--danger-soft); }
.k-una { --kc: var(--plum); --kcs: var(--plum-soft); } .k-recv { --kc: var(--sky); --kcs: var(--sky-soft); } .k-done { --kc: var(--st-done); --kcs: var(--st-done-soft); }

/* property cards */
.prop-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.pcard { position: relative; display: grid; grid-template-rows: 110px auto auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--thatch); }
.pcard .ph { height: 110px; }
.pcard-name { font-family: var(--f-display); font-weight: 650; padding: 10px 12px 2px; }
.pcard-n { display: flex; gap: 10px; padding: 0 12px 12px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.pcard-n b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pcard-n .late, .pcard-n .late b { color: var(--danger); }

/* mobile bottom tabs */
.m-tabs { display: none; }
@media (max-width: 900px) {
  .m-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 65; left: 0; right: 0; bottom: 0; background: var(--forest); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); border-top: 1px solid rgba(255,255,255,.08); }
  .m-tabs a, .m-tabs button { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 7px; color: var(--forest-muted); text-decoration: none; font-size: .7rem; font-weight: 600; background: none; border: 0; cursor: pointer; }
  .m-tabs svg { width: 20px; height: 20px; }
  .m-tabs .on { color: #fff; } .m-tabs .on svg { color: var(--thatch); }
  .c-body { padding-bottom: 90px; }
  .c-top .crumb { display: none; }
  .c-top #c-new span, .back-btn span { display: none; }
  .c-search { order: 9; flex-basis: 100%; }
}

/* ================= v3: Uga Operations, wizard, analytics ================= */
:root { --yr1: #C3D0AE; --yr2: #7E9A4A; --yr3: #3D4F1C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --yr1: #4A5A35; --yr2: #8FAE5A; --yr3: #CFE59A; } }
:root[data-theme="dark"] { --yr1: #4A5A35; --yr2: #8FAE5A; --yr3: #CFE59A; }
.sm { font-size: .82rem; }
.brand-mark { border-radius: 11px; }
.p-links { display: flex; gap: 2px; flex-wrap: wrap; }
.hide-sm { }
@media (max-width: 700px) { .hide-sm { display: none; } .p-links .nl span { display: none; } }
.tiny-link { font-size: .78rem; color: var(--muted); text-align: center; }
.local-box { border: 1px dashed var(--line-2); border-radius: 10px; padding: 14px; }
.signin-nudge { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--thatch-soft); border-radius: 12px; padding: 12px 14px; }
.signin-nudge svg { width: 20px; height: 20px; color: var(--thatch); flex: none; }
.signin-nudge span { flex: 1; min-width: 200px; }
.warn-line { display: flex; gap: 8px; align-items: center; color: var(--st-prog); font-weight: 600; font-size: .88rem; margin: 6px 0 0; }
.warn-line svg { width: 16px; height: 16px; flex: none; }
.err-msg { color: var(--danger); font-size: .8rem; font-weight: 600; }
.field.wide { grid-column: 1 / -1; }

/* hero quick actions */
.hero-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; max-width: 760px; }
@media (max-width: 720px) { .hero-quick { grid-template-columns: 1fr; } }
.hq { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: background .15s, transform .15s; }
.hq:hover { background: rgba(255,255,255,.2); transform: translateY(-1px); }
.hq b { display: block; font-size: .95rem; } .hq small { color: #D7DEC8; font-size: .78rem; }
.hq-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--thatch); flex: none; }
.hq:nth-child(2) .hq-ic { background: #6E8B3D; } .hq:nth-child(3) .hq-ic { background: #2E6AA0; }
.hq-ic svg { width: 20px; height: 20px; }

/* wizard */
.wiz { display: flex; flex-direction: column; }
.wiz-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 14px 18px; gap: 6px; border-bottom: 1px solid var(--line); background: var(--surface-2); border-radius: 14px 14px 0 0; }
.wiz-steps button { width: 100%; display: flex; gap: 8px; align-items: center; background: none; border: 0; padding: 6px 4px; color: var(--muted); font-weight: 650; font-size: .88rem; cursor: pointer; position: relative; }
.wiz-steps button[disabled] { cursor: default; }
.ws-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); font-size: .8rem; flex: none; }
.ws-n svg { width: 14px; height: 14px; }
.wiz-steps li.on button { color: var(--ink); } .wiz-steps li.on .ws-n { background: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 4px var(--brand-soft); }
.wiz-steps li.done .ws-n { background: var(--st-done); color: #fff; } .wiz-steps li.done button { color: var(--ink-2); }
@media (max-width: 560px) { .wiz-steps button span:last-child { display: none; } .wiz-steps { padding: 10px; } .wiz-steps button { justify-content: center; } }
.wiz-body { padding: 22px 24px; display: grid; gap: 18px; }
.wiz-h { display: grid; gap: 6px; } .wiz-h p { margin: 0; } .wiz-h .chip { justify-self: start; }
.wiz-nav { display: flex; justify-content: space-between; gap: 10px; padding: 16px 24px 22px; border-top: 1px solid var(--line); }
.cat.has-flow::after { content: "More questions"; font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--thatch); margin-left: auto; }
.cat.on.has-flow::after { color: var(--brand-ink); }
.flow-sec { border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px 16px; margin: 0; background: var(--surface-2); }
.flow-sec legend { font-family: var(--f-display); font-weight: 650; font-size: 1rem; padding: 0 8px; color: var(--brand); }
.flow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .flow-grid { grid-template-columns: 1fr; } }
.field.missing > label { color: var(--danger); } .field.missing .input { border-color: var(--danger); } .field.missing .choice { box-shadow: 0 0 0 2px var(--danger-soft); border-radius: 10px; }
#flow { display: grid; gap: 14px; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.ch { display: flex; gap: 8px; align-items: center; border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 10px; padding: 8px 14px; cursor: pointer; font: inherit; color: var(--ink-2); text-align: left; }
.ch b { font-weight: 650; font-size: .9rem; } .ch small { display: block; color: var(--muted); font-size: .76rem; }
.ch svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.ch:hover { border-color: var(--brand); }
.ch.on { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--brand); }
.choice-big { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.choice-big .ch { padding: 12px 14px; }
.choice-compact .ch { padding: 6px 12px; }
.review { display: grid; gap: 12px; }
.rv { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.rv-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.extra { display: grid; gap: 4px; }
.extra-h { font-weight: 700; color: var(--brand); font-size: .84rem; margin-top: 6px; text-transform: uppercase; letter-spacing: .05em; }
.extra-dl { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 3px 14px; margin: 0; font-size: .9rem; }
.extra-dl dt { color: var(--muted); } .extra-dl dd { margin: 0; overflow-wrap: anywhere; }

/* console hub link */
.hub-btn span { } .c-side .nav-hub { flex-wrap: wrap; } .c-side .nav-hub small { width: 100%; padding-left: 29px; color: var(--forest-muted); font-size: .72rem; margin-top: -4px; }
.central-note { display: flex; gap: 12px; align-items: flex-start; background: var(--sky-soft); border-radius: 12px; padding: 14px 16px; margin-top: 14px; font-size: .9rem; line-height: 1.5; }
.central-note > svg { width: 20px; height: 20px; color: var(--sky); flex: none; margin-top: 2px; }
.central-note > div { flex: 1; }
.role.central { background: var(--sky-soft); color: var(--sky); }

/* analytics */
.rep-head { background: linear-gradient(120deg, #1B2719, #2C3D22 60%, #3D4F1C); border-radius: 14px; padding: 14px 18px; color: #fff; margin-bottom: 12px; }
.rep-title { display: flex; gap: 12px; align-items: center; }
.rep-title .brand-mark { width: 40px; height: 40px; }
.rep-title h2 { color: #fff; font-size: 1.25rem; } .rep-title h2 span { color: #E2B35C; font-weight: 400; margin: 0 4px; }
.rep-title small { color: #CFD7BF; }
.rep-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; }
.rep-tabs button { display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 7px 14px; font-weight: 650; font-size: .86rem; color: var(--ink-2); cursor: pointer; }
.rep-tabs button svg { width: 15px; height: 15px; }
.rep-tabs button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.rep-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 10px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.rep-filters .field > label { font-size: .74rem; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }
.rep-filters .input { min-height: 36px; padding: 6px 10px; }
@media (max-width: 900px) { .rep-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rep-banner { text-align: center; background: var(--brand-soft); color: var(--ink); border-radius: 10px; padding: 9px 14px; font-weight: 600; margin-bottom: 12px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.rep-banner span { color: var(--muted); } .rep-banner b { color: var(--brand); }
.rk-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.rk { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; text-align: center; display: grid; gap: 2px; }
.rk b { font-family: var(--f-display); font-size: 1.75rem; line-height: 1.1; color: var(--sky); font-variant-numeric: tabular-nums; }
.rk span { font-size: .8rem; color: var(--muted); font-weight: 600; } .rk small { font-size: .72rem; color: var(--muted); }
.rk.good b { color: var(--st-done); } .rk.warn b { color: var(--st-prog); } .rk.bad b { color: var(--danger); }
.pairs { display: grid; gap: 7px; max-height: 330px; overflow: auto; }
.pr { display: grid; grid-template-columns: minmax(90px, 36%) 26px 1fr 52px; gap: 8px; align-items: center; font-size: .85rem; }
.pr[data-go] { cursor: pointer; } .pr:hover .tb { background: var(--line-2); }
.pr .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.pr .pa { color: var(--danger); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.pr .t { position: relative; height: 14px; } .pr .tb, .pr .ta { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; }
.pr .tb { background: var(--surface-3); } .pr .ta { background: var(--danger); min-width: 0; }
.pr .v { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.heat { display: inline-block; min-width: 30px; padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--brand) calc(var(--a, 0) * 55%), transparent); font-weight: 600; text-align: center; }
.tbl.score td.sla.good, .tbl td.good { color: var(--st-done); font-weight: 600; } .tbl.score td.sla.warn, .tbl td.warn { color: var(--st-prog); font-weight: 600; } .tbl.score td.sla.bad, .tbl td.bad { color: var(--danger); font-weight: 700; }
.tbl tr.tot td { background: var(--surface-2); border-top: 2px solid var(--line-2); }
.tbl.score tbody tr[data-go], .tbl.matrix tbody tr[data-go] { cursor: pointer; }
.tbl tr.grp { cursor: pointer; } .tbl tr.sub td { font-size: .84rem; background: var(--surface-2); }
.tw-tog { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--line-2); border-radius: 4px; font-weight: 700; margin-right: 4px; }
.hb.sel .t span { background: var(--thatch); }
.status-stack { display: grid; gap: 8px; }
.ss-row { display: flex; gap: 10px; align-items: center; } .ss-row b { margin-left: auto; font-variant-numeric: tabular-nums; }
.dash-banner { margin: 14px 0 0; text-decoration: none; }
.dash-banner .go { margin-left: 10px; color: var(--brand); }
.dash-banner:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.drop svg { width: 20px; height: 20px; vertical-align: -5px; }
.c-top { flex-wrap: nowrap; }
.c-search { flex: 1 1 200px; min-width: 140px; }
.c-head { flex: none; }
@media (max-width: 1500px) { .back-btn span { display: none; } }
@media (max-width: 1150px) { .hub-btn span { display: none; } }
@media (max-width: 1180px) { .c-top #c-new span { display: none; } .c-top { gap: 8px; } }
@media (max-width: 900px) { .c-top { flex-wrap: wrap; } }
.tbl.matrix td:first-child { white-space: nowrap; }

.prop-tile { height: 96px; }
.prop-tile span:last-child { font-size: .8rem; }

/* =====================================================================
   v4 THEME — "Lagoon": calm blues, airy surfaces, soft shadows.
   Layout stays; colour, type and the heavy dark bands are replaced.
   ===================================================================== */
:root {
  --bg: #F3F7FC; --surface: #FFFFFF; --surface-2: #F7FAFE; --surface-3: #EAF1F9;
  --ink: #1A2B42; --ink-2: #44566F; --muted: #6E7F96; --line: #E1E9F3; --line-2: #CFDBEA;
  --brand: #2C63A6; --brand-2: #234F86; --brand-ink: #FFFFFF; --brand-soft: #E5EEF9;
  --forest: #FFFFFF; --forest-2: #EEF4FB; --forest-ink: #1A2B42; --forest-muted: #7A8BA2;
  --thatch: #3A9AD9; --thatch-soft: #E3F2FC;
  --st-new: #5C6F8C; --st-new-soft: #EAEFF6; --st-prog: #C27D12; --st-prog-soft: #FDF1DC; --st-done: #1F8F76; --st-done-soft: #DDF3EC;
  --danger: #C2413A; --danger-soft: #FBE5E3;
  --plum: #7A5AB8; --plum-soft: #EEE8F8; --teal: #1F8F86; --teal-soft: #DDF2F0; --sky: #2C78C4; --sky-soft: #E2EEFA;
  --c-recv: #3A78C9; --c-done: #2FA88F; --yr1: #C9DBF1; --yr2: #7CA6DA; --yr3: #2C5A96;
  --shadow: 0 1px 2px rgba(26, 43, 66, .04), 0 6px 20px rgba(44, 99, 166, .06);
  --shadow-lg: 0 18px 50px rgba(26, 43, 66, .16);
  --f-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --r: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1624; --surface: #142033; --surface-2: #18263B; --surface-3: #1E2F47; --ink: #E6EEF8; --ink-2: #B5C3D6; --muted: #8597AF; --line: #233650; --line-2: #2E4462;
    --brand: #6EA6EE; --brand-2: #8DBBF4; --brand-ink: #0D1830; --brand-soft: #1D3150;
    --forest: #142033; --forest-2: #1D3150; --forest-ink: #E6EEF8; --forest-muted: #8597AF; --thatch: #5FB4EA; --thatch-soft: #173149;
    --st-new: #A3B4CE; --st-new-soft: #1F2D44; --st-prog: #E8B04F; --st-prog-soft: #3A2E16; --st-done: #5CCDB0; --st-done-soft: #15322B; --danger: #F08A82; --danger-soft: #3D1F1E;
    --plum: #B9A1E8; --plum-soft: #2B2442; --teal: #63CFC5; --teal-soft: #153230; --sky: #7FB4EE; --sky-soft: #1B2D47;
    --c-recv: #4A86D8; --c-done: #2A9A82; --yr1: #2B3F5E; --yr2: #4F7DBD; --yr3: #9CC3F2;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1624; --surface: #142033; --surface-2: #18263B; --surface-3: #1E2F47; --ink: #E6EEF8; --ink-2: #B5C3D6; --muted: #8597AF; --line: #233650; --line-2: #2E4462;
  --brand: #6EA6EE; --brand-2: #8DBBF4; --brand-ink: #0D1830; --brand-soft: #1D3150;
  --forest: #142033; --forest-2: #1D3150; --forest-ink: #E6EEF8; --forest-muted: #8597AF; --thatch: #5FB4EA; --thatch-soft: #173149;
  --st-new: #A3B4CE; --st-new-soft: #1F2D44; --st-prog: #E8B04F; --st-prog-soft: #3A2E16; --st-done: #5CCDB0; --st-done-soft: #15322B; --danger: #F08A82; --danger-soft: #3D1F1E;
  --plum: #B9A1E8; --plum-soft: #2B2442; --teal: #63CFC5; --teal-soft: #153230; --sky: #7FB4EE; --sky-soft: #1B2D47;
  --c-recv: #4A86D8; --c-done: #2A9A82; --yr1: #2B3F5E; --yr2: #4F7DBD; --yr3: #9CC3F2;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); color-scheme: dark;
}
body { background: var(--bg); }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.015em; }
h1 { font-weight: 600; }

/* buttons: softer, rounder */
.btn { border-radius: 10px; border-color: var(--line-2); font-weight: 600; }
.btn.primary { background: var(--brand); border-color: var(--brand); box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 25%, transparent); }
.btn.gold { background: var(--thatch); border-color: var(--thatch); color: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--thatch) 25%, transparent); }
.btn.gold:hover { background: color-mix(in srgb, var(--thatch) 88%, #000); }
.input, select.input, textarea.input { border-radius: 10px; border-color: var(--line-2); background: var(--surface); }
.input:focus { box-shadow: 0 0 0 4px var(--brand-soft); }
.card, .panel, .kpi, .rk, .tw, .pcard, .tbl-wrap { border-color: var(--line); box-shadow: var(--shadow); }
.panel { border-radius: 16px; }

/* top bar (portal): white glass */
.p-nav { background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
body::before { background: var(--surface); }
.p-nav a.nl, .p-nav button.nl { color: var(--ink-2); }
.p-nav .nl:hover, .p-nav .nl.on { background: var(--brand-soft); color: var(--brand); }
.p-nav .nl-gold { background: var(--brand); color: #fff; }
.p-nav .nl-gold:hover { background: var(--brand-2); color: #fff; }
.brand small { color: var(--muted); }
.it-strip { background: var(--sky-soft); border-bottom-color: var(--line); }

/* hero: light, airy, photo as a rounded card on the right */
.hero, .hero.has-photo { background: radial-gradient(90% 120% at 100% 0%, #DCEBFA 0%, transparent 55%), linear-gradient(180deg, #EEF5FC 0%, var(--bg) 100%); color: var(--ink); }
:root[data-theme="dark"] .hero, :root[data-theme="dark"] .hero.has-photo { background: linear-gradient(180deg, #13223A 0%, var(--bg) 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero, :root:not([data-theme="light"]) .hero.has-photo { background: linear-gradient(180deg, #13223A 0%, var(--bg) 100%); } }
.hero.has-photo::after { display: none; }
.hero canvas { display: none; }
.hero .hero-photo { position: absolute; inset: 28px max(16px, calc((100% - 1120px) / 2)) 64px auto; width: min(38%, 440px); height: auto; opacity: 1; border-radius: 22px; object-fit: cover; box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .hero .hero-photo { display: none; } }
.hero-in { padding-block: 40px 70px; }
.hero h1 { color: var(--ink); max-width: 20ch; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.hero p { color: var(--ink-2); max-width: 54ch; }
.hero .eyebrow { color: var(--brand); }
.hq { background: var(--surface); border: 1px solid var(--line); color: var(--ink); backdrop-filter: none; box-shadow: var(--shadow); }
.hq:hover { background: var(--surface); border-color: var(--brand); }
.hq small { color: var(--muted); }
.hq-ic, .hq:nth-child(2) .hq-ic, .hq:nth-child(3) .hq-ic { color: #fff; }
.hq:nth-child(1) .hq-ic { background: #3A78C9; } .hq:nth-child(2) .hq-ic { background: #2FA88F; } .hq:nth-child(3) .hq-ic { background: #7A5AB8; }
.hero-quick { max-width: 640px; }
@media (min-width: 901px) { .hero-in > p, .hero-in > h1, .hero-quick { max-width: min(58%, 640px); } }

/* wizard and form */
.wiz-steps { background: var(--surface); }
.wiz-steps li.on .ws-n { background: var(--brand); }
.sec-h .n { color: var(--brand); }
.cat { border-color: var(--line); border-radius: 12px; }
.cat svg { color: var(--brand); }
.cat.on { background: var(--brand); border-color: var(--brand); }
.cat.has-flow::after { color: var(--thatch); }
.ch.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.flow-sec { background: var(--surface-2); border-color: var(--line); }
.flow-sec legend { color: var(--brand); }
.signin-nudge { background: var(--sky-soft); }
.signin-nudge svg { color: var(--sky); }
.steps li span:first-child { background: var(--brand-soft); color: var(--brand); }
.prop-tile.on { border-color: var(--thatch); box-shadow: 0 0 0 3px var(--thatch-soft); }
.prop-tile.on::before { background: var(--thatch); }
.success .big { color: var(--brand); background: var(--brand-soft); }
.drop.on { border-color: var(--brand); background: var(--brand-soft); }

/* portal footer: quiet */
.p-foot { background: var(--surface); color: var(--ink-2); border-top: 1px solid var(--line); }
.foot-links a { color: var(--ink-2); } .foot-links a:hover { color: var(--brand); }
.p-foot .muted { color: var(--muted); }

/* console: white sidebar, light active pill */
.c-side { border-right: 1px solid var(--line); }
.c-side a.nav { color: var(--ink-2); font-weight: 600; }
.c-side a.nav svg { color: var(--muted); }
.c-side a.nav:hover { background: var(--surface-3); }
.c-side a.nav.on { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.c-side a.nav.on svg { color: var(--brand); }
.c-side .count { background: var(--surface-3); color: var(--ink-2); }
.c-side .sep { background: var(--line); }
.c-side .me .av { border-color: var(--surface); }
.c-side .me .icon-btn { color: var(--ink-2) !important; }
.c-top { background: color-mix(in srgb, var(--surface) 92%, transparent); }
.c-search input { background: var(--surface-2); }

/* dashboard hero: light card with photo strip */
.d-hero, .d-hero { background: linear-gradient(120deg, #FFFFFF 0%, #EEF5FC 100%); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
:root[data-theme="dark"] .d-hero { background: linear-gradient(120deg, #142033, #1A2C46); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .d-hero { background: linear-gradient(120deg, #142033, #1A2C46); } }
.d-hero::after { display: none; }
.d-hero .hero-photo { position: absolute; inset: 0 0 0 auto; width: 34%; height: 100%; opacity: 1; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); max-width: none; }
@media (max-width: 1100px) { .d-hero .hero-photo { display: none; } }
.d-hero h1 { color: var(--ink); }
.d-hero p { color: var(--ink-2); } .d-hero p b { color: var(--danger); }
.d-hero .eyebrow { color: var(--brand); }
.quick { max-width: 72%; }
@media (max-width: 1100px) { .quick { max-width: none; } }
.qa { background: var(--surface); border: 1px solid var(--line); color: var(--ink); backdrop-filter: none; box-shadow: 0 1px 2px rgba(26,43,66,.04); }
.qa:hover { background: var(--surface); border-color: var(--brand); }
.qa small { color: var(--muted); }
.q1 .qa-ic { background: #3A78C9; } .q2 .qa-ic { background: #2FA88F; } .q3 .qa-ic { background: #5A8FD8; } .q4 .qa-ic { background: #1F8F86; } .q5 .qa-ic { background: #7A5AB8; } .q6 .qa-ic { background: #5C6F8C; }
@media (min-width: 1101px) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* KPIs and cards */
.kpi { border-top-width: 0; border-left: 0; position: relative; }
.kpi::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--kc, var(--line)); }
.kpi .v { font-weight: 600; }
.tw { border-radius: 14px; }
.tw-n div { background: var(--surface-2); }
.bar { background: var(--surface-3); }
.pcard { border-radius: 14px; }
.pcard:hover { border-color: var(--brand); }

/* reports header: light */
.rep-head { background: linear-gradient(120deg, #FFFFFF, #EAF2FB); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
:root[data-theme="dark"] .rep-head { background: linear-gradient(120deg, #142033, #1A2C46); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rep-head { background: linear-gradient(120deg, #142033, #1A2C46); } }
.rep-title h2 { color: var(--ink); } .rep-title h2 span { color: var(--brand); }
.rep-title small { color: var(--muted); }
.rep-tabs button.on { background: var(--brand); border-color: var(--brand); }
.rep-filters .field > label { color: var(--brand); }
.rep-banner { background: var(--brand-soft); }
.rk b { font-weight: 600; color: var(--brand); }
.heat { background: color-mix(in srgb, var(--brand) calc(var(--a, 0) * 45%), transparent); }
.tbl th { background: var(--surface-2); }
.dash-banner .go { color: var(--brand); }

/* toasts and tooltips stay dark for contrast */
.toast, .tip { background: #1A2B42; color: #F3F7FC; }
.central-note { background: var(--sky-soft); }

/* ============================================================ v5 "Breathe" – more air, calmer pages (Oct 2026) */
.c-body { padding-block: 28px 56px; padding-left: clamp(18px, 3vw, 40px); padding-right: max(clamp(18px, 3vw, 40px), env(safe-area-inset-right, 0px)); }
.panel { padding: 22px; border-radius: 16px; }
.dash-grid { gap: 20px; }
.tabs button { padding: 12px 16px; }
.hint-line { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .86rem; line-height: 1.6; margin: 14px 2px 0; }
.hint-line svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--brand); }
.d-block { display: block; }
.nowrap { white-space: nowrap; }
.small { font-size: .82rem; }
svg.ci { width: 17px; height: 17px; color: var(--brand); vertical-align: -3px; margin-right: 8px; }

/* property codes */
.pcode { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font: 700 .68rem/1 var(--f-mono); letter-spacing: .04em; margin-right: 6px; vertical-align: 1px; }
.pcode.lg { height: 26px; padding: 0 10px; font-size: .8rem; border-radius: 8px; }
.pcode.none { background: var(--surface-2); color: var(--muted); font-family: var(--f-body); font-weight: 600; letter-spacing: 0; }
.prop-tile span em { display: block; font: 700 .66rem/1 var(--f-mono); letter-spacing: .08em; opacity: .85; font-style: normal; margin-bottom: 3px; }
.sla-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--teal-soft, #E2F6EF); color: var(--teal, #1B7A5A); font-size: .7rem; font-weight: 700; margin-left: 6px; text-transform: none; letter-spacing: 0; }
.chip.xs { height: 20px; font-size: .7rem; padding: 0 7px; margin-left: 4px; }
.chip.xs svg { width: 12px; height: 12px; }

/* settings: menu + one calm page */
.set-wrap { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1180px; }
.set-nav { position: sticky; top: 0; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.set-nav button { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: none; border: 0; border-radius: 12px; padding: 11px 12px; cursor: pointer; color: var(--ink); font: inherit; }
.set-nav button svg { width: 19px; height: 19px; flex: none; color: var(--muted); margin-top: 1px; }
.set-nav button b { display: block; font-weight: 600; font-size: .92rem; }
.set-nav button small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.35; margin-top: 2px; }
.set-nav button:hover { background: var(--surface-2); }
.set-nav button.on { background: var(--brand-soft); }
.set-nav button.on svg, .set-nav button.on b { color: var(--brand); }
.set-h { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.set-h h2 { margin: 0; font-size: 1.35rem; font-family: var(--f-display); font-weight: 600; }
.set-h p { margin: 2px 0 0; color: var(--muted); }
.set-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.set-ic svg { width: 22px; height: 22px; }
.set-add { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: var(--surface); border: 1px dashed var(--line-2, var(--line)); border-radius: 14px; padding: 12px; margin-bottom: 20px; }
.set-add .input { flex: 1; min-width: 200px; }
.set-form { max-width: 760px; gap: 16px; margin-bottom: 20px; }
.set-form h3 { margin: 10px 0 0; font-size: 1rem; }
.set-form h3:first-child { margin-top: 0; }
.check.big { align-items: flex-start; gap: 12px; padding: 4px 0; }
.check.big small { display: block; color: var(--muted); font-weight: 400; font-size: .84rem; margin-top: 2px; }
.color-in { width: 46px; height: 42px; border: 0; background: none; padding: 0; }
.lk-list { padding: 6px 8px; }
.lk-list .lk-row { padding: 12px 10px; }
@media (max-width: 900px) {
  .set-wrap { grid-template-columns: 1fr; gap: 16px; }
  .set-nav { position: static; flex-direction: row; overflow-x: auto; padding: 6px; }
  .set-nav button { flex: none; padding: 9px 12px; align-items: center; }
  .set-nav button small { display: none; }
}

/* property cards */
.prop-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.pcard2 { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pcard2.off { opacity: .6; }
.pcard2 .ph-card { display: block; height: 120px; border-radius: 0; }
.pcard2 .pc-body { padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard2 .pc-top { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pcard2 h3 { margin: 0; font-size: 1.02rem; font-weight: 600; }
.pcard2 dl { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 0; font-size: .86rem; }
.pcard2 dt { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.pcard2 dd { margin: 0; word-break: break-word; }
.pcard2 .row { margin-top: auto; }
.warn-line { color: #9A6200; }

/* categories & SLA */
.sla-tbl td { vertical-align: middle; padding-block: 10px; }
.sla-tbl tr.off td { opacity: .55; }
.sla-in { width: 84px; text-align: right; min-height: 36px; padding: 4px 10px; display: inline-block; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--surface-3); border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* email routing map */
.route-map { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(120deg, var(--surface), var(--brand-soft)); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.rm-node { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; min-width: 0; }
.rm-node svg { width: 18px; height: 18px; color: var(--brand); grid-row: span 2; }
.rm-node b { font-size: .88rem; font-weight: 600; }
.rm-node small { color: var(--muted); font-size: .76rem; word-break: break-word; }
.rm-node.from { border-color: var(--brand); }
.rm-arrow svg { width: 22px; height: 22px; color: var(--brand); }
.rm-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; flex: 1; min-width: 280px; }
@media (max-width: 700px) { .rm-list { grid-template-columns: 1fr; } .rm-arrow { transform: rotate(90deg); } }

/* email log + ticket emails tab */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--surface-2); color: var(--muted); text-transform: capitalize; }
.pill.ok { background: var(--st-done-soft); color: var(--st-done); }
.pill.bad { background: var(--danger-soft); color: var(--danger); }
.pill.warn { background: var(--st-prog-soft); color: var(--st-prog); }
.mail-tbl td { vertical-align: top; padding-block: 11px; }
.mail-list { display: flex; flex-direction: column; gap: 10px; }
.mail-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: .84rem; }
.mail-row b { display: block; font-weight: 600; word-break: break-word; }
.mail-row small { display: block; color: var(--muted); word-break: break-word; }
.mail-row .mr-ic svg { width: 17px; height: 17px; color: var(--brand); }
.mail-row.st-failed, .mail-row.st-bounce { border-color: var(--danger); }
.mail-row.st-failed .ms, .mail-row.st-bounce .ms { color: var(--danger); font-weight: 700; }

/* team */
.team-h { display: flex; gap: 8px; align-items: baseline; margin: 26px 0 12px; font-size: 1rem; font-weight: 600; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; }
.team-grid .ucard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.team-grid .ucard:first-child { border-top: 1px solid var(--line); }
.u-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: .78rem; color: var(--muted); }
.u-meta span { display: inline-flex; align-items: center; gap: 5px; }
.u-meta svg { width: 14px; height: 14px; color: var(--brand); }
.u-scope { color: var(--ink); font-weight: 600; }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } .team-grid .ucard { grid-template-columns: auto 1fr; } .team-grid .ucard > .row { grid-column: 1 / -1; } }
/* email templates */
.tpl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.tpl-tabs button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: .86rem; cursor: pointer; color: var(--ink); }
.tpl-tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.dot-ed { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #E0A33A; margin-left: 4px; vertical-align: 1px; }
.tpl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.tpl-prev { padding: 0; overflow: hidden; min-height: 200px; }
.tpl-prev > p { padding: 22px; }
.tpl-prev iframe { width: 100%; height: 640px; border: 0; display: block; background: #EEF3F9; }
.pv-subj { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pv-subj small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
code { font-family: var(--f-mono); font-size: .82em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
@media (max-width: 1100px) { .tpl-grid { grid-template-columns: 1fr; } }

/* Insights */
.ins { display: flex; flex-direction: column; gap: 22px; max-width: 1240px; }
.ins-hero { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(120deg, var(--surface), var(--brand-soft)); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; }
.ins-hero h2 { margin: 6px 0 8px; font-family: var(--f-display); font-weight: 500; font-size: 1.45rem; line-height: 1.3; max-width: 760px; }
.ins-hero h2 b { color: var(--brand); }
.ins-hero p { margin: 0; color: var(--muted); max-width: 720px; }
.ins-h { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 1.05rem; font-weight: 600; }
.ins-h svg { width: 18px; height: 18px; color: var(--brand); }
.ins-h small { font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: 4px; }
.ins-h.sm { margin: 0 0 12px; font-size: .98rem; flex-wrap: wrap; }
.ins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.ins-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.ins-card.top { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ins-card header { display: flex; gap: 12px; align-items: flex-start; }
.ins-card header b { display: block; font-weight: 600; }
.ins-card header small { color: var(--muted); font-size: .8rem; }
.ins-rank { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.ins-card.top .ins-rank { background: var(--brand); color: #fff; }
.ins-bar { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.ins-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.ins-props { display: flex; flex-wrap: wrap; gap: 4px; }
.ins-act { display: flex; gap: 8px; margin: 0; padding: 10px 12px; background: var(--st-done-soft); border-radius: 10px; font-size: .86rem; line-height: 1.5; }
.ins-act svg { width: 16px; height: 16px; flex: none; color: var(--st-done); margin-top: 2px; }
.ins-tks { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-link { border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 2px 8px; font: 600 .72rem var(--f-mono); color: var(--brand); cursor: pointer; }
.tk-link:hover { border-color: var(--brand); }
.ins-chg { font-weight: 700; font-size: .78rem; }
.ins-chg.up { color: var(--danger); } .ins-chg.down { color: var(--st-done); }
.ins-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ins-em { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.ins-em:first-of-type { border-top: 0; }
.ins-em small { color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font: inherit; font-size: .82rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--brand); color: #fff; }
@media (max-width: 900px) { .ins-two { grid-template-columns: 1fr; } }

/* ---------- SLA position (Nov 2026) ---------- */
.chip.sla i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.chip.sla small { font-weight: 400; opacity: .85; }
.chip.sla-before { background: var(--st-done-soft); color: var(--st-done); }
.chip.sla-on { background: var(--st-prog-soft); color: var(--st-prog); }
.chip.sla-passed { background: var(--danger-soft); color: var(--danger); }
.sla-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.sla-strip .lbl { margin-right: 4px; }
.sla-box { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; flex: 1 1 160px; transition: transform .12s ease, box-shadow .12s ease; }
.sla-box:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.sla-box i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.sla-box b { font-size: 1.5rem; line-height: 1; }
.sla-box span { display: flex; flex-direction: column; font-weight: 600; font-size: .9rem; }
.sla-box small { font-weight: 400; opacity: .8; font-size: .75rem; }
.sla-box.sla-before { background: var(--st-done-soft); color: var(--st-done); }
.sla-box.sla-on { background: var(--st-prog-soft); color: var(--st-prog); }
.sla-box.sla-passed { background: var(--danger-soft); color: var(--danger); }
/* ---------- who is emailed / copied ---------- */
.rc { display: inline-block; padding: 1px 8px; margin: 2px 4px 2px 0; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); font-size: .78rem; }
.mail-rcpt { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 2px 0 6px; font-size: .78rem; }
.mail-rcpt em, .rb-row em { font-style: normal; font-weight: 600; color: var(--ink-2); margin-right: 6px; font-size: .78rem; }
.rcpt-box { border: 1px solid var(--line, rgba(0,0,0,.08)); border-radius: 12px; padding: 10px 12px; background: var(--surface-2, transparent); }
.rcpt-box .rb-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: .88rem; }
.rcpt-box .rb-h svg { width: 16px; height: 16px; }
.rcpt-box .rb-row { display: flex; align-items: baseline; gap: 4px; padding: 2px 0; }
.rcpt-box .rb-row em { min-width: 26px; }
/* ---------- call IT ---------- */
.call-card h3 { margin-bottom: 8px; }
.call-card .cc-list { display: flex; flex-direction: column; gap: 6px; }
.call-card .cc-line { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-3); color: inherit; text-decoration: none; }
.call-card .cc-line:hover { filter: brightness(.97); }
.call-card .cc-line svg { width: 18px; height: 18px; flex: none; color: var(--st-done); }
.call-card .cc-line span { display: flex; flex-direction: column; min-width: 0; }
.call-card .cc-line small { color: var(--ink-2); font-size: .75rem; }
.call-card .cc-line.hot { background: var(--st-done-soft); }
.call-card .cc-note { margin: 8px 0 0; font-size: .78rem; }
.call-card.call-bar { margin-top: 16px; }
.call-card.call-bar .cc-list { flex-direction: row; flex-wrap: wrap; }
.call-card.call-bar .cc-line { flex: 1 1 220px; }

/* ---------- Analytics dashboards (Uga Bay theme, Nov 2026) ---------- */
.ana { --a-navy: #12355F; --a-blue: #2C63A6; --a-teal: #2FA88F; --a-sand: #E0A030; --a-red: #D0473D; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ana-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 22px 26px; border-radius: var(--r); color: #fff; min-height: 104px;
  background: linear-gradient(90deg, rgba(14,42,80,.96) 0%, rgba(22,64,118,.86) 45%, rgba(30,90,150,.35) 100%), url('../img/UUB.jpg') center 62% / cover; box-shadow: var(--shadow); }
.ana-hero small { color: #F2C14E; letter-spacing: 1.6px; text-transform: uppercase; font-size: .72rem; font-weight: 700; }
.ana-hero h2 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.85rem; font-weight: 700; color: #fff; }
.ana-asof { text-align: right; font-size: .85rem; font-weight: 600; }
.ana-asof span { font-weight: 400; opacity: .8; font-size: .78rem; }
.ana-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ana-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 600 .86rem var(--f-body); cursor: pointer; }
.ana-tabs button svg { width: 16px; height: 16px; }
.ana-tabs button:hover { border-color: var(--brand); color: var(--brand); }
.ana-tabs button.on { background: var(--a-navy); border-color: var(--a-navy); color: #fff; }
.slicers { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; align-items: end; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.slicers .sl { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.slicers .sl span { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.slicers .sl .input { height: 36px; padding: 0 10px; font-size: .86rem; }
.slicers .sl-note { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.slicers .sl-note small { color: var(--muted); font-size: .78rem; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--brand-soft); background: var(--brand-soft); color: var(--brand-2); font: .8rem var(--f-body); cursor: pointer; }
.fchip svg { width: 13px; height: 13px; }
.fchip:hover { border-color: var(--brand); }
.banner { text-align: center; padding: 10px 16px; border-radius: var(--r); background: color-mix(in srgb, var(--a-teal) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--a-teal) 30%, transparent); color: var(--ink); font-size: .98rem; }
.banner b { color: var(--a-navy); }
.banner span { margin: 0 10px; opacity: .35; }
[data-theme="dark"] .banner b { color: #8DB8E2; }
.ak-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 10px; }
.ak { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 12px 12px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.ak.hit { cursor: pointer; }
.ak.hit:hover { border-color: var(--brand); }
.ak-l { font-size: .78rem; color: var(--muted); font-weight: 600; order: 2; }
.ak-v { font-family: var(--f-display); font-size: 1.9rem; line-height: 1.1; color: var(--a-navy); font-weight: 600; order: 1; }
[data-theme="dark"] .ak-v { color: #CFE0F5; }
.ak-s { font-size: .72rem; color: var(--muted); order: 3; }
.ak.k-good .ak-v { color: var(--a-teal); } .ak.k-mid .ak-v { color: var(--a-sand); } .ak.k-bad .ak-v { color: var(--a-red); }
.ag { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.ap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px 16px; min-width: 0; display: flex; flex-direction: column; }
.ap.s4 { grid-column: span 4; } .ap.s5 { grid-column: span 5; } .ap.s6 { grid-column: span 6; } .ap.s7 { grid-column: span 7; } .ap.s8 { grid-column: span 8; } .ap.s12 { grid-column: span 12; }
.ap-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.ap-h h3 { margin: 0; font-size: 1rem; color: var(--a-navy); font-weight: 700; }
[data-theme="dark"] .ap-h h3 { color: #CFE0F5; }
.ap-h p { margin: 2px 0 0; font-size: .78rem; color: var(--muted); }
.ap-b { flex: 1; min-width: 0; }
.a-ch { width: 100%; height: auto; display: block; overflow: visible; }
.a-ch .ax { fill: var(--muted); font: 11px var(--f-body); }
.a-ch .vl { fill: var(--ink-2); font: 600 11px var(--f-body); }
.a-ch .gl { stroke: var(--line); stroke-width: 1; }
.a-ch .tg { stroke: var(--a-red); stroke-dasharray: 5 4; stroke-width: 1.4; opacity: .7; }
.a-ch .ln { fill: none; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.a-ch .hz { fill: transparent; }
.a-ch .hit { cursor: pointer; }
.a-ch .hit:hover .hz { fill: var(--brand-soft); opacity: .55; }
.a-ch .hit:hover rect:not(.hz), .a-ch path.hit:hover, .a-ch circle.hit:hover { filter: brightness(1.1); }
.a-ch .dn-v { fill: var(--ink); font: 700 26px var(--f-display); }
.lgd { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--ink-2); margin-bottom: 4px; }
.lgd i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.a-hb { display: flex; flex-direction: column; gap: 5px; max-height: 300px; overflow-y: auto; padding-right: 4px; }
.hb-r { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; align-items: center; gap: 10px; padding: 3px 4px; border-radius: 6px; cursor: pointer; }
.hb-r:hover { background: var(--surface-3); }
.hb-l { font-size: .82rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-t { height: 12px; background: var(--surface-3); border-radius: 99px; overflow: hidden; display: flex; }
.hb-t i { display: block; height: 100%; border-radius: 99px; min-width: 2px; }
.hb-t.a-stack i { border-radius: 0; }
.hb-t.a-stack i:first-child { border-radius: 99px 0 0 99px; } .hb-t.a-stack i:last-child { border-radius: 0 99px 99px 0; }
.hb-v { font-size: .84rem; min-width: 34px; text-align: right; }
.hb-v small { font-weight: 400; color: var(--muted); font-size: .72rem; }
.a-dn { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.dn-svg { width: 170px; flex: none; }
.dn-l { display: flex; flex-direction: column; gap: 8px; font-size: .84rem; min-width: 150px; }
.dn-l div { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; cursor: pointer; }
.dn-l i { width: 12px; height: 12px; border-radius: 3px; }
.dn-l small { color: var(--muted); min-width: 42px; text-align: right; }
.statbar { display: flex; height: 22px; border-radius: 99px; overflow: hidden; gap: 2px; margin: 6px 0 10px; }
.statbar i { display: block; min-width: 3px; }
.a-tw { overflow-x: auto; max-width: 100%; }
.at { width: 100%; border-collapse: collapse; font-size: .84rem; }
.at th { position: sticky; top: 0; background: var(--a-navy); color: #fff; font-weight: 600; text-align: left; padding: 8px 10px; white-space: nowrap; font-size: .78rem; }
.at th:first-child { border-radius: 8px 0 0 0; } .at th:last-child { border-radius: 0 8px 0 0; }
.at td { padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.at .a-r { text-align: right; }
.at tbody tr.hit { cursor: pointer; }
.at tbody tr.hit:hover td { background: var(--brand-soft); }
.at tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-3) 45%, transparent); }
.at tbody tr.hit:hover td { background: var(--brand-soft); }
.at tfoot td, .at tr.a-tot td { font-weight: 700; border-top: 2px solid var(--a-navy); border-bottom: 0; }
.at td.hm { font-weight: 600; }
.at td.neg { color: var(--a-red); font-weight: 600; }
.at td.hot { background: color-mix(in srgb, var(--a-teal) 22%, transparent) !important; font-weight: 700; }
.at td.ell { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.at.list td { font-size: .82rem; }
.at tr.a-grp td:first-child { font-weight: 600; }
.at .a-sub { padding-left: 30px; color: var(--ink-2); }
.at .exp { width: 20px; height: 20px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); margin-right: 8px; cursor: pointer; line-height: 1; font-weight: 700; }
.tone { font-weight: 700; } .tone.good { color: var(--a-teal); } .tone.mid { color: var(--a-sand); } .tone.bad { color: var(--a-red); }
.bc { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 70px; position: relative; }
.bc i { position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 16px; background: color-mix(in srgb, var(--a-teal) 35%, transparent); border-radius: 4px; }
.bc em { position: relative; font-style: normal; font-weight: 700; }
.a-who { display: inline-flex; align-items: center; gap: 8px; }
.a-who span { display: flex; flex-direction: column; } .a-who small { color: var(--muted); font-size: .72rem; }
.ana-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 10px; color: var(--muted); font-size: .9rem; }
.ana-empty svg { width: 26px; height: 26px; }
.ana-tip { position: fixed; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .1s; background: #12355F; color: #fff; padding: 6px 10px; border-radius: 8px; font: 600 .78rem var(--f-body); box-shadow: 0 6px 20px rgba(0,0,0,.25); max-width: 340px; }
@media (max-width: 1100px) { .ap.s4, .ap.s5, .ap.s6, .ap.s7, .ap.s8 { grid-column: span 12; } }
@media (max-width: 640px) { .ana-hero { flex-direction: column; align-items: flex-start; padding: 18px; } .ana-asof { text-align: left; } .ana-tabs button span { display: none; } .ak-v { font-size: 1.5rem; } }
.at td:first-child { white-space: normal; min-width: 170px; }
.at tr.a-tot .bc i { display: none; }
@media (max-width: 1400px) { .at td, .at th { padding: 6px 7px; } }
/* missing grid widths (Reports: Ticket status panel was collapsing) */
.span-3 { grid-column: span 3; } .span-9 { grid-column: span 9; }
@media (max-width: 1100px) { .span-3, .span-9 { grid-column: span 12; } }

/* ---------- Help & guide (Nov 2026) ---------- */
.guide { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.g-toc { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); max-height: calc(100vh - 96px); overflow-y: auto; }
.console .g-toc { top: 12px; }
.g-search { margin-bottom: 8px; } .g-search .input { width: 100%; }
.g-toc-h { font-size: .7rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin: 10px 8px 4px; }
.g-toc a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .87rem; }
.g-toc a svg { width: 16px; height: 16px; flex: none; color: var(--brand); }
.g-toc a:hover { background: var(--brand-soft); color: var(--brand-2); }
.g-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.g-intro { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: linear-gradient(120deg, var(--brand-soft), var(--surface)); }
.g-intro > svg { width: 26px; height: 26px; color: #E0A030; flex: none; }
.g-intro > div > b { display: block; font-size: 1.02rem; margin-bottom: 3px; } .g-intro > div > span { color: var(--ink-2); font-size: .9rem; }
.g-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow); scroll-margin-top: 80px; transition: box-shadow .3s; line-height: 1.6; }
.g-sec.g-flash { box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.g-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1.2rem; color: #12355F; }
[data-theme="dark"] .g-sec h2 { color: #CFE0F5; }
.g-sec h2 > svg { width: 22px; height: 22px; color: var(--brand); }
.g-aud { margin-left: auto; font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-2); letter-spacing: .3px; }
.g-sec h4 { margin: 14px 0 4px; font-size: .95rem; }
.g-sec p, .g-sec ul, .g-sec ol { margin: 6px 0; } .g-sec ul, .g-sec ol { padding-left: 22px; } .g-sec li { margin: 3px 0; }
.g-steps { counter-reset: gs; list-style: none; padding-left: 0 !important; }
.g-steps li { counter-increment: gs; position: relative; padding-left: 38px; margin: 8px 0; }
.g-steps li::before { content: counter(gs); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: #12355F; color: #fff; font-weight: 700; font-size: .8rem; display: grid; place-items: center; }
.g-tip { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 4px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, #E0A030 14%, var(--surface)); border: 1px solid color-mix(in srgb, #E0A030 35%, transparent); font-size: .9rem; }
.g-tip svg { width: 18px; height: 18px; flex: none; color: #B97E14; margin-top: 2px; }
.g-tip.warn { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); } .g-tip.warn svg { color: var(--danger); }
.g-tw { overflow-x: auto; margin: 10px 0; }
.g-tbl { width: 100%; border-collapse: collapse; font-size: .87rem; }
.g-tbl th { background: #12355F; color: #fff; text-align: left; padding: 7px 10px; font-weight: 600; }
.g-tbl td { padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.g-tbl .r { text-align: right; } .g-tbl a { font-weight: 600; }
.g-call { margin: 10px 0; }
.g-hot { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 12px; background: var(--st-done-soft); color: inherit; text-decoration: none; }
.g-hot svg { width: 22px; height: 22px; color: var(--st-done); } .g-hot span { display: flex; flex-direction: column; } .g-hot b { font-size: 1.1rem; } .g-hot small { color: var(--ink-2); }
.g-sec details { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; margin: 8px 0; }
.g-sec details[open] { background: var(--surface-2); }
.g-sec summary { cursor: pointer; padding: 10px 0; font-weight: 600; }
.g-none { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 30px; color: var(--muted); }
.g-none svg { width: 20px; height: 20px; }
.g-foot { text-align: center; font-size: .8rem; }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr; } .g-toc { position: static; max-height: none; } }
@media print { .p-nav, .p-foot, .c-side, .c-top, .g-toc, .it-strip, #uga-help-root, .hero { display: none !important; } .guide { display: block; } .g-sec { break-inside: avoid; box-shadow: none; } }
/* nav: keep on one line now that Help & guide is added */
.p-nav-in { flex-wrap: nowrap; }
.p-nav-in .p-links { min-width: 0; flex-wrap: nowrap; }
@media (max-width: 1300px) { .p-nav .nl { padding: 7px 8px; } .p-nav .nl-gold span { display: none; } }
@media (max-width: 1080px) { .p-nav .p-links .nl span { display: none; } }
