/* Acensium Studio styles: the prototype's stylesheet (src/part1.html), verbatim.
   Additions for the server-rendered app are at the end. */
/* Layout: Asana-style work shell — quiet left rail, frosted utility bar, one content column; details slide in from the right like a Finder inspector */
:root{
  /* Studio by Acensium palette (landing, 2026-10-07): graphite neutrals, signal red action, signal blue info/focus */
  --bg:#F2F4F6; --side:#F8F9FA; --surface:#FFFFFF; --surface-2:#ECEFF2; --surface-3:#E1E5EA;
  --line:#E1E5EA; --line-2:#C9D0D8;
  --fg:#0F1216; --fg-2:#4B5461; --fg-3:#6C7683;
  --accent:#C8202A; --accent-hover:#A3171F; --accent-soft:#FCE9E8; --accent-fg:#FFFFFF;
  --info:#0A7FB8; --info-soft:#E0F2FB; --focus:#0A7FB8;
  --brand-red:#E3262E; --brand-tile:#0F1216;
  --ok:#1C7F47; --ok-soft:#E3F3E9; --warn:#A95800; --warn-soft:#FCF0DF; --bad:#C0332A; --bad-soft:#FBE9E7; --violet:#6546CE; --violet-soft:#EEEAFB;
  --on-color:#FFFFFF;
  /* ⭐ Kyle 2026-10-07: karma factors in a muted graphite + brick palette (was bright primaries) */
  --k1:#27313C; --k2:#56636F; --k3:#8C98A4; --k4:#A8483F; --k5:#CDB2A6;
  --av1:#3767D0; --av2:#C9642A; --av3:#2A8C5D; --av4:#8452C2; --av5:#BD3E68; --av6:#1C879D;
  --shadow-1:0 1px 2px rgba(20,24,32,.06),0 1px 1px rgba(20,24,32,.04);
  --shadow-2:0 16px 40px rgba(20,24,32,.16),0 2px 8px rgba(20,24,32,.08);
  --scrim:rgba(14,17,23,.38);
  --font-ui:"IBM Plex Sans","Segoe UI",system-ui,-apple-system,sans-serif;
  --font-display:"Archivo","Arial Narrow",system-ui,sans-serif;
  --font-mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --r-sm:6px; --r:10px; --r-lg:14px;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0A0C0F; --side:#0F1216; --surface:#14181D; --surface-2:#1A1F25; --surface-3:#242A32;
    --line:#232930; --line-2:#353D47;
    --fg:#E8ECF0; --fg-2:#A9B1BC; --fg-3:#7D8794;
    --accent:#FF6A5F; --accent-hover:#FF877E; --accent-soft:#3A1614; --accent-fg:#1A0606;
    --info:#45BDF0; --info-soft:#0B2533; --focus:#45BDF0;
    --ok:#4CC282; --ok-soft:#12291D; --warn:#F0A544; --warn-soft:#302311; --bad:#FF6F63; --bad-soft:#381816; --violet:#A48EFF; --violet-soft:#221C3B;
    --shadow-1:0 1px 2px rgba(0,0,0,.4); --shadow-2:0 18px 44px rgba(0,0,0,.55),0 2px 8px rgba(0,0,0,.4);
    --scrim:rgba(0,0,0,.55); color-scheme:dark;
    --k1:#D5DCE3; --k2:#99A5B1; --k3:#66727F; --k4:#E0786D; --k5:#8E6A60;
  }
}
:root[data-theme="dark"]{
  --bg:#0A0C0F; --side:#0F1216; --surface:#14181D; --surface-2:#1A1F25; --surface-3:#242A32;
  --line:#232930; --line-2:#353D47;
  --fg:#E8ECF0; --fg-2:#A9B1BC; --fg-3:#7D8794;
  --accent:#FF6A5F; --accent-hover:#FF877E; --accent-soft:#3A1614; --accent-fg:#1A0606;
  --info:#45BDF0; --info-soft:#0B2533; --focus:#45BDF0;
  --ok:#4CC282; --ok-soft:#12291D; --warn:#F0A544; --warn-soft:#302311; --bad:#FF6F63; --bad-soft:#381816; --violet:#A48EFF; --violet-soft:#221C3B;
  --shadow-1:0 1px 2px rgba(0,0,0,.4); --shadow-2:0 18px 44px rgba(0,0,0,.55),0 2px 8px rgba(0,0,0,.4);
  --scrim:rgba(0,0,0,.55); color-scheme:dark;
    --k1:#D5DCE3; --k2:#99A5B1; --k3:#66727F; --k4:#E0786D; --k5:#8E6A60;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--fg);font:14px/1.45 var(--font-ui);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
h1,h2,h3,p{margin:0}
h1,h2,h3{text-wrap:balance;letter-spacing:-.012em}
h1{font-size:26px;font-weight:800;line-height:1.15;font-family:var(--font-display);letter-spacing:-.022em}
h2{font-size:16px;font-weight:700;font-family:var(--font-display);letter-spacing:-.008em}
h3{font-size:14px;font-weight:600}
.mono{font-family:var(--font-mono);font-size:12px}
.num{font-variant-numeric:tabular-nums}
.muted{color:var(--fg-2)}
.faint{color:var(--fg-3)}
.small{font-size:12px}
.eyebrow{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.07em;color:var(--fg-3)}
.inline > svg{width:16px;height:16px;flex:none}
.ellip{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inline{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.stack{display:flex;flex-direction:column;gap:14px}
.stack-s{display:flex;flex-direction:column;gap:6px}
.spacer{flex:1}

/* ---------- shell ---------- */
.app{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100%}
.side{position:sticky;top:0;height:100vh;height:100dvh;display:flex;flex-direction:column;padding:16px 12px;background:var(--side);border-right:1px solid var(--line);overflow-y:auto}
.brand{display:flex;align-items:center;gap:10px;padding:2px 8px 16px}
.brand-mark{width:32px;height:32px;border-radius:9px;background:var(--fg);color:var(--bg);display:grid;place-items:center;flex:none}
.brand-mark svg{width:20px;height:20px}
.brand-name{font-weight:700;font-size:16px;letter-spacing:-.015em;line-height:1.1}
.brand-sub{font-size:11px;color:var(--fg-3);font-family:var(--font-mono)}
.nav-label{padding:16px 10px 6px}
.nav{display:flex;flex-direction:column;gap:1px}
.nav button{display:flex;align-items:center;gap:10px;width:100%;padding:7px 10px;border:0;background:none;border-radius:8px;color:var(--fg-2);font-weight:500;cursor:pointer;text-align:left}
.nav button:hover{background:var(--surface-2);color:var(--fg)}
.nav button[aria-current="page"]{background:var(--accent-soft);color:var(--accent);font-weight:600}
.nav svg{width:18px;height:18px;flex:none}
.nav .count{margin-left:auto;font-size:11px;font-weight:600;min-width:20px;padding:1px 6px;border-radius:10px;background:var(--surface-3);color:var(--fg-2);text-align:center}
.nav button[aria-current="page"] .count{background:var(--accent);color:var(--accent-fg)}
.side-foot{margin-top:auto;display:flex;flex-direction:column;gap:6px;padding-top:16px}
.vendor-card{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}
.vendor-card .grow{min-width:0}
.linkbtn{display:flex;align-items:center;gap:8px;border:0;background:none;color:var(--fg-2);cursor:pointer;padding:6px 10px;text-align:left;font-weight:500;border-radius:8px;font-size:13px}
.linkbtn:hover{background:var(--surface-2);color:var(--fg)}
.linkbtn svg{width:16px;height:16px}
.side-scrim{display:none}

.mainwrap{min-width:0;display:flex;flex-direction:column}
.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;display:flex;align-items:center;gap:12px;padding:10px 28px;background:color-mix(in srgb,var(--bg) 86%,transparent);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--line)}
.search{position:relative;flex:1;max-width:460px;min-width:0}
.search input{width:100%;height:36px;padding:0 12px 0 36px;border:1px solid var(--line);border-radius:10px;background:var(--surface);outline:none}
.search input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.search > svg{position:absolute;left:11px;top:9px;width:18px;height:18px;color:var(--fg-3);pointer-events:none}
.pop{position:absolute;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-2);padding:6px;z-index:40}
.search .pop{top:42px;left:0;right:0}
.pop-item{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;background:none;border-radius:8px;cursor:pointer;text-align:left}
.pop-item:hover,.pop-item:focus-visible{background:var(--surface-2)}
.pop-item .grow{min-width:0;flex:1}
.clock{display:flex;gap:12px;font-size:12px;color:var(--fg-2);white-space:nowrap}
.clock b{color:var(--fg);font-weight:600;font-variant-numeric:tabular-nums}
.iconbtn{position:relative;width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:10px;background:none;cursor:pointer;color:var(--fg-2);flex:none}
.iconbtn:hover{background:var(--surface-2);color:var(--fg)}
.iconbtn svg{width:19px;height:19px}
.badge-dot{position:absolute;top:7px;right:8px;width:8px;height:8px;border-radius:50%;background:var(--bad);box-shadow:0 0 0 2px var(--bg)}
.menu-btn{display:none}
.notif-wrap{position:relative}
.notif{right:0;top:44px;width:380px;max-width:calc(100vw - 32px);padding:0;overflow:hidden}
.notif-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--line)}
.notif .pop-item{border-radius:0;padding:11px 14px;border-bottom:1px solid var(--line);align-items:flex-start}
.notif .pop-item:last-child{border-bottom:0}
.ndot{width:8px;height:8px;border-radius:50%;background:var(--accent);margin-top:6px;flex:none}
.ndot.read{background:transparent}

main{padding:28px 32px 72px;max-width:1320px;width:100%;margin:0 auto}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.page-head p{margin-top:6px;color:var(--fg-2);max-width:68ch}
.crumb{display:inline-flex;align-items:center;gap:6px;border:0;background:none;color:var(--fg-2);cursor:pointer;padding:0;margin-bottom:10px;font-weight:500;font-size:13px}
.crumb:hover{color:var(--accent)}
.crumb svg{width:16px;height:16px}

/* ---------- surfaces ---------- */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow-1);min-width:0}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line)}
.panel-head .sub{font-size:12px;color:var(--fg-3);margin-top:2px}
.panel-body{padding:16px 18px}
.grid-2{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:20px;align-items:start}
.grid-2e{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.col-stack{display:flex;flex-direction:column;gap:20px;min-width:0}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}
.kpi{padding:14px 16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);min-width:0}
.kpi .v{font-size:24px;font-weight:700;letter-spacing:-.02em;margin-top:4px;font-variant-numeric:tabular-nums}
.kpi .s{font-size:12px;color:var(--fg-2);margin-top:2px}
.callout{display:flex;gap:10px;padding:12px 14px;border-radius:var(--r);font-size:13px;line-height:1.45}
.callout svg{width:18px;height:18px;flex:none;margin-top:1px}
.callout.violet{background:var(--violet-soft);color:var(--fg)} .callout.violet svg{color:var(--violet)}
.callout.bad{background:var(--bad-soft);color:var(--fg)} .callout.bad svg{color:var(--bad)}
.callout.warn{background:var(--warn-soft);color:var(--fg)} .callout.warn svg{color:var(--warn)}
.callout.info{background:var(--accent-soft);color:var(--fg)} .callout.info svg{color:var(--accent)}
.callout .grow{flex:1;min-width:0}
.empty{padding:28px 18px;text-align:center;color:var(--fg-2);display:flex;flex-direction:column;align-items:center;gap:10px}

/* ---------- controls ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:34px;padding:0 14px;border-radius:9px;border:1px solid var(--line-2);background:var(--surface);color:var(--fg);font-weight:600;font-size:13px;cursor:pointer;white-space:nowrap;text-decoration:none}
.btn:hover{background:var(--surface-2);text-decoration:none}
.btn svg{width:16px;height:16px}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}
.btn.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.btn.ghost{border-color:transparent;background:none;color:var(--fg-2)}
.btn.ghost:hover{background:var(--surface-2);color:var(--fg)}
.btn.danger{color:var(--bad)}
.btn[disabled]{opacity:.45;cursor:not-allowed;pointer-events:none}
.btn.sm{height:28px;padding:0 10px;font-size:12px;border-radius:7px}
.btn-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.pill{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px;border-radius:20px;font-size:12px;font-weight:600;background:var(--surface-3);color:var(--fg-2);white-space:nowrap}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.pill.nodot::before{display:none}
.pill.accent{background:var(--accent-soft);color:var(--accent)}
.pill.ok{background:var(--ok-soft);color:var(--ok)}
.pill.warn{background:var(--warn-soft);color:var(--warn)}
.pill.bad{background:var(--bad-soft);color:var(--bad)}
.pill.violet{background:var(--violet-soft);color:var(--violet)}
.tag{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 8px;border-radius:6px;font-size:12px;font-weight:500;background:var(--surface-2);color:var(--fg-2);border:1px solid var(--line);white-space:nowrap}
.tag svg{width:12px;height:12px}
.tag.have{color:var(--fg)}
.tag.have svg{color:var(--ok)}
.tag.miss{background:var(--bad-soft);color:var(--bad);border-color:transparent}
.tags{display:flex;flex-wrap:wrap;gap:6px}
.input{height:36px;padding:0 11px;border:1px solid var(--line-2);border-radius:9px;background:var(--surface);width:100%;outline:none;min-width:0}
.input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
textarea.input{height:auto;min-height:88px;padding:9px 11px;resize:vertical;line-height:1.45}
select.input{padding-right:28px}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field > label,.field > .lbl{font-size:12px;font-weight:600;color:var(--fg-2)}
.field .hint{font-size:12px;color:var(--fg-3)}
.field.err .input{border-color:var(--bad)}
.errtxt{font-size:12px;color:var(--bad);font-weight:500}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.form-grid .full{grid-column:1/-1}
.money-in{position:relative}
.money-in span{position:absolute;left:11px;top:8px;color:var(--fg-3)}
.money-in .input{padding-left:24px}
.cbx{display:flex;gap:10px;align-items:flex-start;cursor:pointer;font-size:13px;line-height:1.45}
.cbx input{width:16px;height:16px;margin:2px 0 0;accent-color:var(--accent);flex:none}
.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:16px}
.toolbar .search{max-width:300px}
.toolbar .input{width:auto}
.seg{display:inline-flex;padding:3px;background:var(--surface-3);border-radius:10px;gap:2px;max-width:100%;overflow-x:auto}
.seg button{border:0;background:none;padding:5px 12px;border-radius:8px;font-weight:600;font-size:13px;color:var(--fg-2);cursor:pointer;white-space:nowrap}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--fg);box-shadow:var(--shadow-1)}
.seg .c{font-weight:500;color:var(--fg-3);margin-left:4px}
.chipf{height:30px;padding:0 12px;border-radius:20px;border:1px solid var(--line-2);background:var(--surface);font-size:13px;font-weight:500;cursor:pointer;color:var(--fg-2);white-space:nowrap}
.chipf:hover{color:var(--fg)}
.chipf[aria-pressed="true"]{background:var(--fg);color:var(--bg);border-color:var(--fg)}
.chip-scroll{display:flex;gap:6px;overflow-x:auto;max-width:100%;padding-bottom:2px}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:20px;overflow-x:auto}
.tabs button{border:0;background:none;padding:10px 12px;font-weight:600;color:var(--fg-2);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;display:inline-flex;gap:6px;align-items:center}
.tabs button:hover{color:var(--fg)}
.tabs button[aria-selected="true"]{color:var(--fg);border-bottom-color:var(--fg)}
.tabs .c{font-size:11px;padding:0 6px;border-radius:9px;background:var(--surface-3);color:var(--fg-2);font-weight:600}

/* ---------- lists & tables ---------- */
.list{display:flex;flex-direction:column}
.row{display:flex;align-items:center;gap:12px;padding:11px 18px;border-bottom:1px solid var(--line);min-width:0}
.row:last-child{border-bottom:0}
.row.click{cursor:pointer}
.row.click:hover{background:var(--surface-2)}
.row .grow{flex:1;min-width:0}
.row .end{text-align:right;flex:none}
.group-label{padding:10px 18px 6px;background:var(--surface-2);border-bottom:1px solid var(--line)}
.check{width:20px;height:20px;border-radius:50%;border:1.5px solid var(--line-2);display:grid;place-items:center;background:none;cursor:pointer;flex:none;color:transparent;padding:0}
.check:hover{border-color:var(--ok);color:var(--ok)}
.check.on{background:var(--ok);border-color:var(--ok);color:var(--on-color)}
.check svg{width:12px;height:12px}
.done-text{text-decoration:line-through;color:var(--fg-3)}
.datebox{width:46px;flex:none;text-align:center;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--surface)}
.datebox .m{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;background:var(--surface-2);color:var(--fg-2);padding:2px 0}
.datebox .d{font-size:17px;font-weight:700;padding:1px 0 3px;font-variant-numeric:tabular-nums}
.due{font-size:12px;font-weight:600;color:var(--fg-2);white-space:nowrap}
.due.warn{color:var(--warn)} .due.bad{color:var(--bad)}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:13px}
th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--fg-3);font-weight:600;padding:10px 16px;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:12px 16px;border-bottom:1px solid var(--line);vertical-align:middle}
tbody tr:last-child td{border-bottom:0}
tr.click{cursor:pointer}
tr.click:hover td{background:var(--surface-2)}
.r{text-align:right}
.av{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700;color:var(--on-color);flex:none;letter-spacing:.02em}
.av.lg{width:40px;height:40px;font-size:14px}
.av.sm{width:22px;height:22px;font-size:9px}
.av1{background:var(--av1)} .av2{background:var(--av2)} .av3{background:var(--av3)} .av4{background:var(--av4)} .av5{background:var(--av5)} .av6{background:var(--av6)}
.bar{height:6px;border-radius:6px;background:var(--surface-3);overflow:hidden;min-width:60px}
.bar i{display:block;height:100%;background:var(--accent);border-radius:6px}
.stars{display:inline-flex;gap:1px;color:var(--warn)}
.stars svg{width:14px;height:14px}
.stars .off{color:var(--line-2)}
.kv{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 18px}
.k{font-size:12px;color:var(--fg-3);font-weight:500}
.v{font-weight:600;margin-top:2px;font-variant-numeric:tabular-nums}
.v2{font-size:12px;color:var(--fg-2);margin-top:1px}
.filerow{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.filerow:last-child{border-bottom:0}
.fileic{width:34px;height:34px;border-radius:9px;background:var(--surface-2);display:grid;place-items:center;color:var(--fg-2);flex:none}
.fileic svg{width:17px;height:17px}
.filerow .grow{flex:1;min-width:0}
.bullets{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.bullets li{display:flex;gap:10px;align-items:flex-start}
.bullets svg{width:16px;height:16px;color:var(--ok);flex:none;margin-top:2px}
.section-t{margin-bottom:10px}
.prose{line-height:1.55;max-width:70ch;color:var(--fg)}

/* ---------- job board ---------- */
.jobs{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(360px,100%),1fr));gap:14px}
.job{display:flex;flex-direction:column;gap:12px;padding:16px 16px 14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s;min-width:0}
.job:hover{border-color:var(--line-2);box-shadow:var(--shadow-1)}
.job.gated{background:var(--surface-2)}
.job-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.job h3{font-size:15px;margin-bottom:3px}
.facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding-top:12px;border-top:1px solid var(--line)}
.fact .k{font-size:11px;color:var(--fg-3);font-weight:500}
.fact .v{font-weight:600;font-variant-numeric:tabular-nums;margin-top:1px;white-space:nowrap}
.job-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.match{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;color:var(--ok)}
.match svg{width:14px;height:14px}
.match.partial{color:var(--bad)}

/* ---------- board ---------- */
.board-wrap{overflow-x:auto;padding-bottom:6px}
.board{display:grid;grid-template-columns:repeat(5,minmax(208px,1fr));gap:12px;min-width:min-content}
.col{background:var(--surface-2);border-radius:var(--r-lg);padding:10px;display:flex;flex-direction:column;gap:8px;min-height:140px}
.col-head{display:flex;align-items:center;gap:8px;padding:4px 6px 6px;font-weight:600;font-size:13px}
.col-head .c{color:var(--fg-3);font-weight:500}
.pcard{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:12px;display:flex;flex-direction:column;gap:10px;cursor:pointer}
.pcard:hover{box-shadow:var(--shadow-1);border-color:var(--line-2)}
.pcard-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}
.col-empty{font-size:12px;color:var(--fg-3);padding:10px 6px}
.stages{display:flex;margin:4px 0 24px;overflow-x:auto;gap:4px}
.stage{flex:1;min-width:104px;display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:600;color:var(--fg-3)}
.stage .ln{height:4px;border-radius:4px;background:var(--surface-3)}
.stage.done{color:var(--fg-2)} .stage.done .ln{background:var(--ok)}
.stage.cur{color:var(--fg)} .stage.cur .ln{background:var(--accent)}
.stage.cur.hold .ln{background:var(--warn)}
.proj-head{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:flex-start;margin-bottom:18px}
.proj-head .t{display:flex;flex-direction:column;gap:6px;min-width:0}
.facts-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-bottom:20px}
.facts-bar > div{padding:14px 18px;border-right:1px solid var(--line);min-width:0}
.facts-bar > div:last-child{border-right:0}
.sub-card{border:1px solid var(--line);border-radius:var(--r);padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.sub-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center}
.fb{background:var(--surface-2);border-radius:8px;padding:10px 12px;font-size:13px;display:flex;gap:10px}
.add-row{display:flex;gap:8px;padding:12px 18px;border-top:1px solid var(--line)}

/* ---------- chat ---------- */
.inbox{display:grid;grid-template-columns:320px minmax(0,1fr);height:min(760px,calc(100dvh - 190px));min-height:460px;overflow:hidden}
.threads{border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}
.threads-top{padding:12px;border-bottom:1px solid var(--line)}
.threads-list{overflow-y:auto;flex:1}
.thread{display:flex;gap:10px;padding:12px 14px;border:0;border-bottom:1px solid var(--line);cursor:pointer;background:none;width:100%;text-align:left}
.thread:hover{background:var(--surface-2)}
.thread[aria-current="true"]{background:var(--accent-soft)}
.thread .grow{flex:1;min-width:0}
.unread{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--accent);color:var(--accent-fg);font-size:11px;font-weight:700;display:grid;place-items:center}
.conv{display:flex;flex-direction:column;min-height:0;min-width:0}
.conv-head{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line)}
.conv-head .grow{flex:1;min-width:0}
.conv-back{display:none}
.msgs{flex:1;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:14px;min-height:0}
.msg{display:flex;gap:10px;max-width:min(620px,92%)}
.msg.mine{margin-left:auto;flex-direction:row-reverse}
.bubble{padding:9px 13px;border-radius:14px;background:var(--surface-2);line-height:1.45;overflow-wrap:anywhere}
.msg.mine .bubble{background:var(--accent);color:var(--accent-fg)}
.msg-meta{font-size:11px;color:var(--fg-3);margin-bottom:4px}
.msg.mine .msg-meta{text-align:right}
.att{display:inline-flex;align-items:center;gap:6px;margin-top:6px;padding:4px 8px;border-radius:7px;background:color-mix(in srgb,currentColor 12%,transparent);font-size:12px}
.att svg{width:13px;height:13px}
.day-sep{text-align:center;font-size:11px;color:var(--fg-3);font-weight:600}
.composer{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line);align-items:flex-end}
.composer textarea{flex:1;min-height:40px;height:40px;max-height:140px;resize:none;padding-top:9px}
.pending-att{display:flex;gap:6px;flex-wrap:wrap;padding:0 12px 10px}
.chat-panel{display:flex;flex-direction:column;height:520px}

/* ---------- earnings ---------- */
.chart{width:100%;height:auto;display:block}
.ch-grid{stroke:var(--line);stroke-width:1}
.ch-bar{fill:var(--accent)}
.ch-bar.mtd{fill:var(--accent);fill-opacity:.42}
.ch-t{fill:var(--fg-3);font-size:11px;font-family:var(--font-ui)}
.ch-v{fill:var(--fg);font-size:11px;font-weight:600;font-family:var(--font-ui)}

/* ---------- profile ---------- */
.cap-group{display:flex;flex-direction:column;gap:10px;padding:16px 18px;border-bottom:1px solid var(--line)}
.cap-group:last-child{border-bottom:0}
.capchip{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 12px;border-radius:9px;border:1px solid var(--line-2);background:var(--surface);font-size:13px;font-weight:500;cursor:pointer;color:var(--fg-2)}
.capchip:hover{color:var(--fg);border-color:var(--fg-3)}
.capchip .lvl{font-size:10px;font-weight:700;padding:2px 6px;border-radius:5px;letter-spacing:.03em;text-transform:uppercase}
.capchip.Proficient{border-color:var(--accent);color:var(--fg);background:var(--accent-soft)}
.capchip.Proficient .lvl{background:var(--accent);color:var(--accent-fg)}
.capchip.Expert{border-color:var(--ok);background:var(--ok-soft);color:var(--fg)}
.capchip.Expert .lvl{background:var(--ok);color:var(--on-color)}
.capchip.sel{border-color:var(--accent);background:var(--accent-soft);color:var(--fg)}
.capchip.sel svg{width:14px;height:14px;color:var(--accent)}
.ints{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:14px}
.int{padding:16px;display:flex;flex-direction:column;gap:12px}
.int-top{display:flex;gap:12px;align-items:center}
.int-logo{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;font-weight:700;font-size:13px;color:var(--on-color);flex:none}
.int-meta{font-size:12px;color:var(--fg-2);background:var(--surface-2);border-radius:8px;padding:8px 10px}

/* ---------- overlays ---------- */
.layer{position:fixed;inset:0;z-index:60;display:flex}
.scrim-l{position:absolute;inset:0;background:var(--scrim);animation:fade .16s ease-out}
.drawer{position:relative;margin-left:auto;width:min(640px,100%);height:100%;background:var(--surface);box-shadow:var(--shadow-2);display:flex;flex-direction:column;animation:slide .22s cubic-bezier(.2,.8,.2,1)}
.still .drawer,.still .scrim-l{animation:none}
.drawer-head{padding:18px 22px calc(16px);padding-top:calc(18px + env(safe-area-inset-top,0px));border-bottom:1px solid var(--line);display:flex;gap:12px;align-items:flex-start}
.drawer-head .grow{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.drawer-body{flex:1;overflow-y:auto;padding:20px 22px 28px;display:flex;flex-direction:column;gap:24px}
.drawer-foot{padding:14px 22px calc(14px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);display:flex;gap:8px;flex-wrap:wrap;background:var(--surface)}
.modal-l{align-items:center;justify-content:center;padding:16px;z-index:70}
.modal{position:relative;width:min(560px,100%);max-height:calc(100% - 16px);display:flex;flex-direction:column;background:var(--surface);border-radius:16px;box-shadow:var(--shadow-2);animation:pop .18s ease-out;overflow:hidden}
.modal-head{padding:18px 20px 4px;display:flex;gap:12px;align-items:flex-start}
.modal-head .grow{flex:1;min-width:0}
.modal-head p{color:var(--fg-2);margin-top:4px;font-size:13px}
.modal-body{padding:14px 20px 18px;display:flex;flex-direction:column;gap:14px;overflow-y:auto}
.modal-foot{padding:14px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;background:var(--surface-2)}
.summary{border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.summary .srow{display:flex;justify-content:space-between;gap:12px;padding:9px 12px;border-bottom:1px solid var(--line);font-size:13px}
.summary .srow:last-child{border-bottom:0}
.summary .srow span:first-child{color:var(--fg-2)}
.summary .srow span:last-child{font-weight:600;text-align:right}
#toasts{position:fixed;left:50%;bottom:calc(22px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:90;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none;width:max-content;max-width:calc(100vw - 32px)}
.toast{background:var(--fg);color:var(--bg);padding:10px 16px;border-radius:12px;font-weight:500;box-shadow:var(--shadow-2);display:flex;gap:8px;align-items:center;animation:pop .18s ease-out}
.toast svg{width:16px;height:16px;color:var(--bg)}
@keyframes slide{from{transform:translateX(28px);opacity:.3}}
@keyframes pop{from{transform:translateY(6px) scale(.98);opacity:.2}}
@keyframes fade{from{opacity:0}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---------- onboarding ---------- */
.ob{min-height:100%;display:grid;grid-template-columns:320px minmax(0,1fr);background:var(--bg)}
.ob-side{background:var(--side);border-right:1px solid var(--line);padding:28px 22px;display:flex;flex-direction:column;gap:28px}
.ob-steps{display:flex;flex-direction:column;gap:2px}
.ob-step{display:flex;gap:12px;align-items:center;padding:9px 10px;border-radius:9px;color:var(--fg-3);font-weight:500;border:0;background:none;text-align:left;cursor:default;width:100%}
.ob-step.done{cursor:pointer;color:var(--fg-2)}
.ob-step.done:hover{background:var(--surface-2)}
.ob-step .n{width:24px;height:24px;border-radius:50%;border:1.5px solid var(--line-2);display:grid;place-items:center;font-size:12px;font-weight:700;flex:none}
.ob-step .n svg{width:12px;height:12px}
.ob-step.cur{color:var(--fg);background:var(--surface);box-shadow:var(--shadow-1)}
.ob-step.cur .n{border-color:var(--accent);color:var(--accent)}
.ob-step.done .n{background:var(--ok);border-color:var(--ok);color:var(--on-color)}
.ob-note{margin-top:auto;font-size:12px;color:var(--fg-3);line-height:1.5}
.ob-main{padding:48px 24px 64px;display:flex;justify-content:center;min-width:0}
.ob-card{width:min(920px,100%);display:flex;flex-direction:column;gap:22px}
.ob-card .panel{padding:22px 24px}
.ob-foot{display:flex;justify-content:space-between;gap:10px;align-items:center}
.ob-mprog{display:none}
.choice{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--line-2);border-radius:var(--r);cursor:pointer;background:var(--surface);text-align:left;width:100%}
.choice[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 1px var(--accent) inset}
.choice .radio{width:18px;height:18px;border-radius:50%;border:1.5px solid var(--line-2);flex:none;margin-top:1px;display:grid;place-items:center}
.choice[aria-pressed="true"] .radio{border-color:var(--accent)}
.choice[aria-pressed="true"] .radio::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent)}
.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.team-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1.4fr) 130px 36px;gap:8px;align-items:center}
.review-sec{display:flex;flex-direction:column;gap:8px;padding:16px 0;border-bottom:1px solid var(--line)}
.review-sec:first-child{padding-top:0}
.review-sec:last-child{border-bottom:0;padding-bottom:0}
.review-sec .hd{display:flex;justify-content:space-between;align-items:center}
.dl{display:grid;grid-template-columns:160px minmax(0,1fr);gap:6px 12px;font-size:13px}
.dl dt{color:var(--fg-3)} .dl dd{margin:0;font-weight:500}
.welcome{min-height:100%;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:48px;max-width:1120px;margin:0 auto;padding:48px 32px}
.w-h{font-size:40px;line-height:1.08;letter-spacing:-.03em;font-weight:700;margin:22px 0 14px}
.w-lede{font-size:16px;color:var(--fg-2);max-width:48ch;line-height:1.55}
.w-points{display:flex;flex-direction:column;gap:16px;margin-top:30px}
.w-point{display:flex;gap:14px;align-items:flex-start}
.w-ic{width:36px;height:36px;border-radius:10px;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;flex:none;color:var(--accent)}
.w-ic svg{width:18px;height:18px}
.w-card{padding:28px;display:flex;flex-direction:column;gap:16px}
.or{display:flex;align-items:center;gap:12px;color:var(--fg-3);font-size:12px}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.w-foot{font-size:12px;color:var(--fg-3)}
.timeline{display:flex;flex-direction:column;gap:0}
.tl{display:flex;gap:14px;padding-bottom:18px;position:relative}
.tl:not(:last-child)::before{content:"";position:absolute;left:11px;top:26px;bottom:2px;width:2px;background:var(--line)}
.tl .n{width:24px;height:24px;border-radius:50%;border:1.5px solid var(--line-2);display:grid;place-items:center;font-size:12px;font-weight:700;flex:none;background:var(--surface);color:var(--fg-3)}
.tl.done .n{background:var(--ok);border-color:var(--ok);color:var(--on-color)}
.tl .n svg{width:12px;height:12px}
.success-ic{width:52px;height:52px;border-radius:50%;background:var(--ok-soft);color:var(--ok);display:grid;place-items:center}
.success-ic svg{width:26px;height:26px}


/* ---------- admin + mode switch ---------- */
.mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:2px;padding:3px;background:var(--surface-3);border-radius:10px;margin:0 0 14px}
.mode-switch button{border:0;background:none;padding:6px 8px;border-radius:8px;font-weight:600;font-size:12px;color:var(--fg-2);cursor:pointer;white-space:nowrap}
.mode-switch button[aria-pressed="true"]{background:var(--surface);color:var(--fg);box-shadow:var(--shadow-1)}
.brand-mark.admin{background:var(--accent);color:var(--accent-fg)}
.brand-tag{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--accent);background:var(--accent-soft);padding:2px 6px;border-radius:5px;vertical-align:2px;margin-left:4px}
.linkish{border:0;background:none;padding:0;color:var(--accent);font-weight:600;cursor:pointer;text-align:left;font-size:inherit}
.linkish:hover{text-decoration:underline}
.compare td{white-space:nowrap}
.compare .best{color:var(--ok);font-weight:700}
.compare tr.note-row td{padding-top:0;white-space:normal;border-bottom:1px solid var(--line)}
.compare tr:has(+ .note-row) td{border-bottom:0}
.fileic.bad{background:var(--bad-soft);color:var(--bad)}
.sticky{position:sticky;top:calc(72px + env(safe-area-inset-top,0px))}
.setting{display:flex;gap:14px;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line);cursor:pointer}
.setting:last-child{border-bottom:0}
.switch{appearance:none;-webkit-appearance:none;width:38px;height:22px;border-radius:11px;background:var(--line-2);position:relative;cursor:pointer;flex:none;margin:0;transition:background .15s}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--surface);box-shadow:var(--shadow-1);transition:transform .15s}
.switch:checked{background:var(--accent)}
.switch:checked::after{transform:translateX(16px)}
.switch:disabled{opacity:.5;cursor:not-allowed}
.notif-list{max-height:min(460px,70vh);overflow-y:auto}
button[disabled][title]{pointer-events:auto;cursor:not-allowed}
.btn[disabled]{pointer-events:auto}

/* ---------- landing ---------- */
:root{--cad-bg:#0C1624;--cad-bar:#131F31;--cad-grid:#172538;--cad-line:#9CC3EE;--cad-thin:#5D83AE;--cad-dim:#4E6E93;--cad-acc:#FFB547;--cad-pipe:#56CFC0;--cad-text:#B9CCE3;--cad-pt:#7FA6D3}
.lp{min-height:100%;background:var(--bg)}
.lp-wrap{max-width:1180px;margin:0 auto;padding-inline:24px}
.lp-nav{position:sticky;top:env(safe-area-inset-top,0px);z-index:30;background:color-mix(in srgb,var(--bg) 86%,transparent);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--line)}
.lp-nav-in{display:flex;align-items:center;gap:20px;padding-block:12px}
.lp-nav .brand{padding:0}
.lp-links{display:flex;gap:4px;margin-left:auto}
.lp-link{border:0;background:none;padding:8px 12px;border-radius:8px;font-weight:500;color:var(--fg-2);cursor:pointer}
.lp-link:hover{background:var(--surface-2);color:var(--fg)}
.btn.lg{height:44px;padding:0 20px;font-size:14px;border-radius:11px}
.lp-hero{position:relative;padding-block:56px 40px;overflow:hidden}
.lp-hero::before{content:"";position:absolute;inset:0;background-image:linear-gradient(color-mix(in srgb,var(--line) 70%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--line) 70%,transparent) 1px,transparent 1px);background-size:28px 28px;-webkit-mask-image:radial-gradient(ellipse 80% 70% at 70% 40%,#000 20%,transparent 75%);mask-image:radial-gradient(ellipse 80% 70% at 70% 40%,#000 20%,transparent 75%);pointer-events:none}
.lp-hero-in{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:48px;align-items:center}
.lp-copy{display:flex;flex-direction:column;gap:18px;min-width:0}
.lp-eyebrow{font-family:var(--font-mono);font-size:12px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.lp-h1{font-size:clamp(34px,5vw,54px);line-height:1.04;letter-spacing:-.035em;font-weight:700}
.lp-lede{font-size:17px;line-height:1.6;color:var(--fg-2);max-width:56ch}
.lp-ctas{margin-top:4px}
.lp-sw{position:relative;display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:40px;padding-top:22px;border-top:1px solid var(--line)}
.cad{background:var(--cad-bg);border-radius:16px;overflow:hidden;box-shadow:var(--shadow-2);border:1px solid color-mix(in srgb,var(--cad-line) 18%,transparent);min-width:0}
.cad-bar{display:flex;align-items:center;gap:12px;padding:9px 14px;background:var(--cad-bar);color:var(--cad-text);font-family:var(--font-mono);font-size:11px}
.cad-dots{display:inline-flex;gap:6px}
.cad-dots i{width:10px;height:10px;border-radius:50%;background:#3A4B63}
.cad-file{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cad-tab{padding:2px 8px;border-radius:5px;background:#1E2E46}
.cad-status{display:flex;gap:14px;flex-wrap:wrap;padding:8px 14px;background:var(--cad-bar);color:var(--cad-thin);font-family:var(--font-mono);font-size:11px}
.cad-status span:first-child{flex:1;color:var(--cad-text)}
.cad-on{color:var(--cad-pipe)}
.cad-svg{display:block;width:100%;height:auto;background:var(--cad-bg)}
.c-grid{fill:none;stroke:var(--cad-grid);stroke-width:1}
.c-line{fill:none;stroke:var(--cad-line);stroke-width:1.6;stroke-linecap:round}
.c-thin{fill:none;stroke:var(--cad-thin);stroke-width:1}
.c-dim{fill:none;stroke:var(--cad-dim);stroke-width:1}
.c-wall{fill:none;stroke:var(--cad-line);stroke-width:3.5}
.c-center{fill:none;stroke:var(--cad-dim);stroke-width:1;stroke-dasharray:10 3 2 3}
.c-pipe{fill:none;stroke:var(--cad-pipe);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;opacity:.9}
.c-pipe.c-big{stroke-width:6}
.c-sel,.c-acc{stroke:var(--cad-acc)}
.c-acc{fill:none;stroke-width:2}
.c-accf{fill:var(--cad-acc)}
.c-ax{stroke:var(--cad-text);stroke-width:1.4}
.c-pt{fill:var(--cad-pt);opacity:.7}
.c-txt{fill:var(--cad-text);font-family:var(--font-mono);font-size:10px}
.c-tag{fill:#1A2638;stroke:var(--cad-acc);stroke-width:1}
.c-tagt{fill:var(--cad-acc);font-family:var(--font-mono);font-size:10.5px;font-weight:500}
.c-tagt2{fill:var(--cad-text);font-family:var(--font-mono);font-size:9.5px}
.lp-sec{padding-block:72px;border-top:1px solid var(--line)}
.lp-sec-head{display:flex;flex-direction:column;gap:10px;margin-bottom:32px;max-width:760px}
.lp-h2{font-size:clamp(26px,3.3vw,36px);line-height:1.12;letter-spacing:-.025em;font-weight:700}
.lp-sub{font-size:16px;color:var(--fg-2);line-height:1.6;max-width:62ch}
.work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.wcard{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column;min-width:0}
.wart{border-bottom:1px solid var(--line)}
.wbody{padding:16px 18px 18px;display:flex;flex-direction:column;gap:8px}
.wbody h3{font-size:15px}
.feat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 32px}
.feat{display:flex;flex-direction:column;gap:8px}
.feat h3{font-size:15px;margin-top:6px}
.lp-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;counter-reset:none}
.lp-step{position:relative;display:flex;flex-direction:column;gap:8px;padding-top:4px}
.lp-step:not(:last-child)::after{content:"";position:absolute;top:19px;left:48px;right:-10px;height:2px;background:var(--line)}
.lp-num{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-family:var(--font-mono);font-weight:500;background:var(--accent-soft);color:var(--accent);border:1px solid color-mix(in srgb,var(--accent) 30%,transparent)}
.lp-step h3{font-size:15px;margin-top:6px}
.lp-about{background:var(--side)}
.lp-quote{margin:6px 0 0;padding:4px 0 4px 16px;border-left:3px solid var(--accent);font-size:18px;font-weight:600;color:var(--fg);max-width:60ch}
.about-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.about-card{padding:22px;display:flex;flex-direction:column;gap:14px}
.about-card p{line-height:1.6;color:var(--fg-2)}
.about-card .btn{align-self:flex-start}
.about-top{display:flex;gap:14px;align-items:center}
.about-mark{width:44px;height:44px;border-radius:11px;display:grid;place-items:center;font-weight:700;color:var(--on-color);flex:none;letter-spacing:.02em}
.about-mark.ab{background:var(--av1)} .about-mark.ac{background:var(--av2)}
.lp-cta{padding-block:56px;background:var(--accent-soft);border-top:1px solid var(--line)}
.lp-cta-in{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.lp-foot{padding-block:28px;border-top:1px solid var(--line)}
.lp-foot-in{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.lp-foot .brand{padding:0}
@media (max-width:1000px){
  .lp-hero-in{grid-template-columns:minmax(0,1fr)}
  .work-grid,.feat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lp-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lp-step::after{display:none}
  .lp-links{display:none}
  .lp-nav-in .btn-row{margin-left:auto}
}
@media (max-width:620px){
  .lp-wrap{padding-inline:16px}
  .work-grid,.feat-grid,.lp-steps,.about-grid{grid-template-columns:minmax(0,1fr)}
  .lp-hero{padding-block:32px 24px}
  .lp-sec{padding-block:48px}
  .lp-nav-in .btn.ghost{display:none}
  .lp-lede{font-size:16px}
}

/* ---------- karma ---------- */
.ks1{background:var(--k1)} .ks2{background:var(--k2)} .ks3{background:var(--k3)} .ks4{background:var(--k4)} .ks5{background:var(--k5)}
.ksw{width:10px;height:10px;border-radius:3px;flex:none;display:inline-block}
.kswline{width:16px;height:2px;background:var(--fg);display:inline-block;border-radius:2px}
.kb{stroke:var(--surface);stroke-width:2;stroke-linejoin:round}
.kb1{fill:var(--k1)} .kb2{fill:var(--k2)} .kb3{fill:var(--k3)} .kb4{fill:var(--k4)} .kb5{fill:var(--k5)}
.kline{fill:none;stroke:var(--fg);stroke-width:2;stroke-linejoin:round}
.kdot{fill:var(--surface);stroke:var(--fg);stroke-width:2}
.klabel{fill:var(--fg);font-size:14px;font-weight:700;font-family:var(--font-ui)}
.kx{stroke:var(--fg-3);stroke-width:1;stroke-dasharray:3 3}
.khit{fill:transparent;cursor:crosshair}
.kwrap{position:relative}
.ktip{position:absolute;top:8px;min-width:210px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow-2);padding:10px 12px;font-size:12px;pointer-events:none;z-index:5}
.ktip-h{display:flex;justify-content:space-between;gap:12px;padding-bottom:6px;margin-bottom:6px;border-bottom:1px solid var(--line)}
.ktip-r{display:flex;align-items:center;gap:8px;padding:2px 0}
.ktip-r .grow{flex:1;color:var(--fg-2)}
.klegend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:var(--fg-2)}
.khead{display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr);gap:24px;padding:18px}
.khero{display:flex;flex-direction:column;gap:10px;justify-content:center}
.knum-lg{font-size:56px;font-weight:700;letter-spacing:-.04em;line-height:1;font-variant-numeric:tabular-nums}
.knum-lg span{font-size:16px;font-weight:500;color:var(--fg-3);letter-spacing:0;margin-left:4px}
.knum{font-size:20px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums;min-width:30px}
.knum-sm{font-weight:700;font-variant-numeric:tabular-nums}
.knum-sm.best{color:var(--ok)}
.kcell{display:flex;align-items:center;gap:10px}
.kdelta{font-weight:600;color:var(--fg-3)} .kdelta.up{color:var(--ok)} .kdelta.down{color:var(--bad)}
.kfactors{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(200px,100%),1fr));gap:14px}
.kf{display:flex;flex-direction:column;gap:6px;min-width:0}
.kf-top,.kf-foot{display:flex;justify-content:space-between;gap:8px;align-items:center}
.kf-top .inline{flex-wrap:nowrap;align-items:center}
.kf-top > .small,.kf-foot > .num{white-space:nowrap;flex:none}
.kf-bar{height:6px;border-radius:6px;background:var(--surface-3);overflow:hidden}
.kf-bar i{display:block;height:100%;border-radius:6px}
.ktable{margin-top:10px}
.ktable summary{cursor:pointer;color:var(--accent);font-weight:600;padding:4px 0}
.kl{padding:16px;display:flex;flex-direction:column;gap:8px}
.kw-row{display:flex;gap:12px;align-items:flex-start;padding:12px 18px;border-bottom:1px solid var(--line)}
.kw-row .ksw{margin-top:5px}
.kw-row input[type=range]{width:100%;accent-color:var(--accent);margin:6px 0 2px}
.kw-prev{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 20px;font-size:13px}
@media (max-width:700px){.khead{grid-template-columns:minmax(0,1fr)}.knum-lg{font-size:44px}.kw-prev{grid-template-columns:minmax(0,1fr)}}
/* ---------- responsive ---------- */
@media (max-width:1180px){
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-2,.grid-2e{grid-template-columns:minmax(0,1fr)}
  .clock{display:none}
}
@media (max-width:880px){
  .app{grid-template-columns:minmax(0,1fr)}
  .side{position:fixed;left:0;top:0;bottom:0;width:276px;z-index:56;transform:translateX(-102%);transition:transform .22s ease;height:100%;padding-top:calc(16px + env(safe-area-inset-top,0px))}
  .side.open{transform:none;box-shadow:var(--shadow-2)}
  .side-scrim.open{display:block;position:fixed;inset:0;background:var(--scrim);z-index:55}
  .menu-btn{display:grid}
  .top{padding:10px 16px}
  main{padding:20px 16px 64px}
  h1{font-size:21px}
  .form-grid{grid-template-columns:minmax(0,1fr)}
  .facts-bar{grid-template-columns:repeat(2,minmax(0,1fr))}
  .facts-bar > div:nth-child(2){border-right:0}
  .facts-bar > div:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .kv{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inbox{grid-template-columns:minmax(0,1fr)}
  .inbox .conv{display:none}
  .inbox.show-conv .threads{display:none}
  .inbox.show-conv .conv{display:flex}
  .threads{border-right:0}
  .conv-back{display:grid}
  .ob{grid-template-columns:minmax(0,1fr)}
  .ob-side{display:none}
  .ob-main{padding:24px 16px 56px}
  .ob-mprog{display:flex;flex-direction:column;gap:8px}
  .welcome{grid-template-columns:minmax(0,1fr);padding:32px 16px;gap:28px}
  .w-h{font-size:32px}
  .choices{grid-template-columns:minmax(0,1fr)}
  .team-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px}
  .team-row .role{grid-column:1/3}
  .dl{grid-template-columns:120px minmax(0,1fr)}
}
@media (max-width:560px){
  .hide-sm{display:none}
  .kpis{gap:10px}
  .kpi .v{font-size:20px}
  .facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kv{grid-template-columns:minmax(0,1fr)}
  .toolbar .search{max-width:none;flex-basis:100%}
  .drawer-head,.drawer-body{padding-left:16px;padding-right:16px}
  .drawer-foot{padding-left:16px;padding-right:16px}
  .drawer-foot .btn{flex:1}
  .ob-card .panel{padding:16px}
  .ob-card{gap:16px}
  .ob-foot .btn{flex:1;justify-content:center}
}


/* ---------- type-ahead, write-ins, process flow ---------- */
.tpick{position:relative}
.tpick-box{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-height:42px;padding:5px 8px;border:1px solid var(--line-2);border-radius:9px;background:var(--surface);cursor:text}
.tpick-box:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.tpick-in{flex:1;min-width:140px;border:0;outline:none;background:none;height:30px;padding:0 4px}
.tchip{gap:4px;padding-right:3px;background:var(--accent-soft);color:var(--fg);border-color:transparent}
.tchip.other{background:var(--violet-soft)}
.tx{display:grid;place-items:center;width:18px;height:18px;border:0;border-radius:4px;background:none;color:var(--fg-2);cursor:pointer;padding:0}
.tx:hover{background:var(--surface-3);color:var(--fg)}
.tx svg{width:12px;height:12px}
.tpick-sug{top:calc(100% + 4px);left:0;right:0;max-height:260px;overflow-y:auto}
.pop-item.hl{background:var(--accent-soft)}
.tag.other{background:var(--violet-soft);color:var(--violet);border-color:transparent}
.flow-track{margin-top:28px}
.flow-track:first-of-type{margin-top:8px}
.flow-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.flow-head h3{font-size:16px}
.flow{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:18px}
.fnode{position:relative;display:flex;flex-direction:column;gap:12px;min-width:0}
.fnode:not(:last-child)::after{content:"";position:absolute;top:21px;left:52px;right:-12px;height:2px;background:linear-gradient(90deg,var(--line-2),var(--line))}
.fdot{position:relative;width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line-2);color:var(--accent);box-shadow:var(--shadow-1);flex:none}
.fdot svg{width:20px;height:20px}
.fnum{position:absolute;top:-7px;right:-7px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:var(--fg);color:var(--bg);font-size:10px;font-weight:700;display:grid;place-items:center;font-family:var(--font-mono)}
.fbody{display:flex;flex-direction:column;gap:6px}
.fbody h4{margin:0;font-size:14px;font-weight:600}
.fsys{font-family:var(--font-mono);font-size:10px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;padding:2px 6px;border-radius:5px;background:var(--surface-3);color:var(--fg-2)}
.fsys.quickbooks{background:var(--ok-soft);color:var(--ok)}
.fsys.studio{background:var(--accent-soft);color:var(--accent)}
.fsys.vendorops{background:var(--violet-soft);color:var(--violet)}
@media (max-width:900px){
  .flow{grid-template-columns:minmax(0,1fr);gap:0}
  .fnode{flex-direction:row;gap:14px;padding-bottom:20px}
  .fnode:not(:last-child)::after{top:50px;bottom:4px;left:21px;right:auto;width:2px;height:auto;background:var(--line)}
}

/* ---------- file links ---------- */
.files-link{border:1px solid var(--line);border-radius:var(--r);padding:14px 16px;background:var(--surface)}
.files-link-top{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.files-link-top .grow{flex:1;min-width:200px}
.files-link .filerow{padding:8px 0}
/* ---------- adaptive layout: large screens, tablets, phones, touch ---------- */
@media (max-width:1180px){.sticky{position:static}}
@media (min-width:1600px){main{max-width:1520px}.lp-wrap{max-width:1320px}}
@media (min-width:2200px){body{font-size:15px}main{max-width:1760px}.lp-wrap{max-width:1480px}}
@media (min-width:881px) and (max-width:1180px){
  .app{grid-template-columns:216px minmax(0,1fr)}
  main{padding:24px 24px 64px}
  .top{padding:10px 24px}
}
@media (max-width:880px){
  .table-wrap th:first-child,.table-wrap td:first-child{position:sticky;left:0;z-index:1;background:var(--surface);box-shadow:1px 0 0 var(--line)}
  .table-wrap tr.click:hover td:first-child{background:var(--surface-2)}
  .compare tr.note-row td:first-child{position:static;box-shadow:none}
  .board-wrap{scroll-snap-type:x mandatory}
  .col{scroll-snap-align:start}
  .proj-head .btn-row{width:100%}
}
@media (max-width:560px){
  .top .spacer{display:none}
  .top{gap:8px}
  .modal-l{align-items:flex-end;padding:0}
  .modal{width:100%;max-height:92dvh;border-radius:18px 18px 0 0}
  .modal-foot{padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
  .modal-foot .btn{flex:1 1 auto}
  .proj-head .btn-row .btn{flex:1 1 auto}
  .page-head{margin-bottom:16px}
  .seg button{padding:6px 10px}
  .panel-head{padding:12px 14px}
  .panel-body{padding:14px}
  .row{padding:11px 14px}
  .facts-bar > div{padding:12px 14px}
}
@media (max-height:520px) and (orientation:landscape){
  .inbox{height:auto;min-height:0}
  .inbox .threads-list,.inbox .msgs{max-height:60dvh}
  .chat-panel{height:80dvh}
  .drawer-head{padding-top:12px;padding-bottom:12px}
}
@media (pointer:coarse){
  .btn{min-height:40px}
  .btn.sm{min-height:34px}
  .nav button{padding:10px 12px}
  .iconbtn{width:42px;height:42px}
  .check{width:24px;height:24px}
  .chipf{height:36px}
  .tabs button{padding:12px 14px}
  .input,select.input,textarea.input,.search input{font-size:16px}
  .input,.search input{height:42px}
  .khit{cursor:default}
}
.qa{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2,var(--bg))}
.qa-row{display:flex;gap:10px;align-items:flex-start;min-width:0}
.qa-row .grow{min-width:0;overflow-wrap:anywhere}
.nt{border-top:1px solid var(--line)}
.nt-row{display:grid;grid-template-columns:minmax(0,1fr) 52px 52px;gap:12px;align-items:center;padding:12px 18px;border-top:1px solid var(--line)}
.nt-row:first-child{border-top:0}
.nt-row.nt-h{padding-top:14px;padding-bottom:6px}
.nt-row > :nth-child(2),.nt-row > :nth-child(3){justify-self:center}
@media (max-width:560px){.setting.wrap{flex-wrap:wrap}.setting.wrap select{width:100%!important;min-width:0!important}.nt-row{grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px;padding:12px 14px}}

/* ================= server-rendered app additions ================= */
/* Side nav entries are links (the prototype used buttons). */
.nav a{display:flex;align-items:center;gap:10px;width:100%;padding:7px 10px;border-radius:8px;color:var(--fg-2);font-weight:500;text-decoration:none}
.nav a:hover{background:var(--surface-2);color:var(--fg);text-decoration:none}
.nav a[aria-current="page"]{background:var(--accent-soft);color:var(--accent);font-weight:600}
.nav a[aria-current="page"] .count{background:var(--accent);color:var(--accent-fg)}
@media (pointer:coarse){.nav a{padding:10px 12px}}
a.linkbtn,a.pop-item,a.crumb,a.row,a.thread,a.iconbtn{color:inherit;text-decoration:none}
a.linkbtn:hover,a.pop-item:hover,a.crumb:hover,a.thread:hover{text-decoration:none}
a.btn{color:var(--fg)} a.btn.primary{color:var(--accent-fg)}
.toast.err{background:var(--bad);color:#fff}
.toast.err svg{color:#fff}
[hidden]{display:none!important}
/* Filter chips / segmented buttons / capability chips as labels around inputs. */
label.chipf,label.capchip{display:inline-flex;align-items:center;gap:6px}
label.chipf input,label.capchip input,.seg label input{position:absolute;opacity:0;pointer-events:none;width:0;height:0}
label.chipf:has(input:checked){background:var(--fg);color:var(--bg);border-color:var(--fg)}
label.capchip:has(input:checked){border-color:var(--accent);background:var(--accent-soft);color:var(--fg)}
label.capchip .on{display:none} label.capchip:has(input:checked) .on{display:inline-flex}
label.capchip .on svg{width:14px;height:14px;color:var(--accent)}
.seg label{border:0;background:none;padding:5px 12px;border-radius:8px;font-weight:600;font-size:13px;color:var(--fg-2);cursor:pointer;white-space:nowrap;position:relative}
.seg label:has(input:checked){background:var(--surface);color:var(--fg);box-shadow:var(--shadow-1)}
.seg a{padding:5px 12px;border-radius:8px;font-weight:600;font-size:13px;color:var(--fg-2);white-space:nowrap;text-decoration:none}
.seg a[aria-pressed="true"]{background:var(--surface);color:var(--fg);box-shadow:var(--shadow-1)}
.tabs a{padding:10px 12px;font-weight:600;color:var(--fg-2);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;display:inline-flex;gap:6px;align-items:center;text-decoration:none}
.tabs a:hover{color:var(--fg);text-decoration:none}
.tabs a[aria-selected="true"]{color:var(--fg);border-bottom-color:var(--fg)}
a.chipf{display:inline-flex;align-items:center;text-decoration:none}
a.chipf[aria-pressed="true"]{background:var(--fg);color:var(--bg);border-color:var(--fg)}
.choice:has(input:checked){border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 1px var(--accent) inset}
.choice:has(input:checked) .radio{border-color:var(--accent)}
.choice:has(input:checked) .radio::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent)}
.choice input{position:absolute;opacity:0;pointer-events:none}
.choice{position:relative}
[data-href]{cursor:pointer}
form.inline{display:inline}

/* Scan partners (Kyle 2026-10-06) */
.scn-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:6px}
.scn-item{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid var(--line,#e3e6ec);border-radius:8px;font-size:13px}
.scn-item .grow{flex:1;min-width:0}
.scn-qty{width:58px;padding:4px 6px}
.scn-areas{display:grid;gap:6px}
.scn-ah,.scn-arow{display:grid;grid-template-columns:1.3fr 1fr 1fr .8fr .6fr;gap:6px}
@media (max-width:640px){.scn-ah{display:none}.scn-arow{grid-template-columns:1fr 1fr}}
.scn-list{margin:8px 0 0;padding-left:18px;font-size:13px}
.scn-edit{margin-top:10px}
.scn-edit>summary{list-style:none;cursor:pointer;display:inline-flex}
.scn-edit>summary::-webkit-details-marker{display:none}

/* ================= Studio by Acensium design (Kyle 2026-10-07) =================
   Same logo, type and palette as the public landing: the SA cube mark on a
   graphite tile + STUDIO wordmark, Archivo headings, IBM Plex Sans / Mono body,
   signal red for actions and signal blue for info / focus. */
.brand{gap:12px;padding:2px 6px 18px;color:inherit;text-decoration:none}
a.brand:hover{text-decoration:none}
.brand-mark{width:44px;height:44px;border-radius:12px;background:var(--brand-tile);border:1px solid rgba(255,255,255,.08);color:#fff;box-shadow:0 1px 2px rgba(0,0,0,.18)}
.brand-mark img{display:block;width:30px;height:34px}
.brand-mark svg{width:24px;height:24px}
.brand-mark.admin{background:var(--brand-tile);box-shadow:0 0 0 2px var(--side),0 0 0 4px var(--brand-red)}
.brand-text{min-width:0}
.brand-name{font-family:var(--font-display);font-weight:500;font-stretch:125%;font-size:17px;letter-spacing:.34em;text-transform:uppercase;line-height:1}
.brand-name{white-space:nowrap}
.brand-meta{display:flex;align-items:center;gap:8px;height:13px;margin:3px 0 2px}
.brand-tag{margin:0;vertical-align:0;font-size:9.5px;line-height:1;padding:2px 5px}
.brand-rule{display:block;width:30px;height:2px;background:var(--brand-red);flex:none}
.brand-sub{font-size:10.5px;letter-spacing:.02em}
.brand.lg .brand-mark{width:52px;height:52px;border-radius:14px}
.brand.lg .brand-mark img{width:36px;height:41px}
.brand.lg .brand-name{font-size:20px}
.brand.lg .brand-rule{width:36px}
/* ⭐ Kyle 2026-10-07: the rule spans the STUDIO wordmark (brand-word shrinks to the
   word; the negative margin drops the trailing letter-spacing), Admin tag beside the word. */
.brand-top{display:flex;align-items:flex-start;gap:8px}
.brand-word{display:inline-flex;flex-direction:column;align-items:stretch;max-width:100%}
.brand-word .brand-name{margin-right:-.34em}
.brand-word .brand-rule,.brand.lg .brand-word .brand-rule{width:auto;margin:5px 0 4px}
.brand-top .brand-tag{margin-top:2px}

/* Statuses that mean "in progress / FYI" use signal blue so they never read as errors. */
.pill.accent{background:var(--info-soft);color:var(--info)}
.callout.info{background:var(--info-soft)} .callout.info svg{color:var(--info)}
.kpi .v,.knum,.w-h{font-family:var(--font-display)}
.eyebrow{font-family:var(--font-mono);font-weight:500;letter-spacing:.08em}
.modal-head h2,.drawer h2{font-size:18px}
.btn.primary{box-shadow:0 6px 16px -8px color-mix(in srgb,var(--accent) 70%,transparent)}
.nav a[aria-current="page"]{box-shadow:inset 3px 0 0 var(--accent)}

/* Public pages (sign in, invite, application, status): the landing's graphite
   backdrop with a faint red glow and a large, very faint cube mark. */
body.pub{background:radial-gradient(60% 50% at 100% 0%,color-mix(in srgb,var(--brand-red) 14%,transparent),transparent 70%),radial-gradient(50% 50% at 0% 100%,color-mix(in srgb,var(--info) 10%,transparent),transparent 70%),var(--bg);background-attachment:fixed;min-height:100%}
body.pub::before{content:"";position:fixed;z-index:-1;pointer-events:none;right:-14vw;top:-8vh;width:min(900px,95vw);aspect-ratio:30/34;background:url(studio-mark.svg) no-repeat center/contain;opacity:.04}
body.pub .ob{background:transparent}
body.pub .ob-side{background:color-mix(in srgb,var(--side) 88%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
body.pub .w-card{box-shadow:var(--shadow-2)}
.pub-h{font-size:28px}

/* ================= ⭐ Kyle 2026-10-07: partner side round (charts, capabilities, scanning, Slack) ================= */
/* Charts: graphite ink, red only for "you / now". */
.ch-bar{fill:var(--fg-3);fill-opacity:.55}
.ch-bar.mtd{fill:var(--accent);fill-opacity:.85}
.ch-v{fill:var(--fg-2);font-weight:600}
.kb{stroke:var(--surface);stroke-width:1.5;fill-opacity:.92}
.kline{stroke:var(--fg);stroke-width:1.75}
.kdot{stroke:var(--fg);stroke-width:1.75}
.kf-bar{height:5px;background:var(--surface-2)}
.kspread .ks-range{fill:var(--fg-3);fill-opacity:.08}
.kspread .ks-bar{fill:var(--fg-3);fill-opacity:.5}
.kspread .ks-bar.me{fill:var(--accent);fill-opacity:1}
.kspread .ks-me{fill:var(--accent);font:600 11.5px var(--font-ui)}
.kspread .ks-med{stroke:var(--fg-2);stroke-width:1;stroke-dasharray:4 4}
.kspread .ks-note{fill:var(--fg-3);font:500 11px var(--font-ui);text-transform:uppercase;letter-spacing:.06em}
.kspread .ks-note-v{fill:var(--fg);font:600 12px var(--font-mono);letter-spacing:0}
.ks-legend{display:flex;gap:14px;flex-wrap:wrap}
.ks-sw{display:inline-block;width:10px;height:10px;border-radius:2px;background:var(--fg-3);opacity:.6}
.ks-sw.me{background:var(--accent);opacity:1}
.ks-sw.range{background:var(--fg-3);opacity:.15}
.ks-sw.med{height:0;border-top:1px dashed var(--fg-2);border-radius:0;opacity:1;width:14px}
.donut-wrap{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.donut{width:170px;max-width:46%;flex:none}
.dn-track{fill:none;stroke:var(--surface-2);stroke-width:16}
.dn-seg{fill:none;stroke-width:16}
.dn-seg.paid,.dn-sw.paid{stroke:var(--fg-2);background:var(--fg-2)}
.dn-seg.sched,.dn-sw.sched{stroke:var(--info);background:var(--info)}
.dn-seg.wait,.dn-sw.wait{stroke:var(--accent);background:var(--accent)}
.dn-v{fill:var(--fg);font:700 17px var(--font-display)}
.dn-k{fill:var(--fg-3);font:500 10px var(--font-ui);text-transform:uppercase;letter-spacing:.06em}
.dn-legend{list-style:none;margin:0;padding:0;flex:1;min-width:200px}
.dn-legend li{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}
.dn-sw{width:10px;height:10px;border-radius:2px;flex:none}
/* Capabilities + software checklists */
.cap-groups{padding:0}
fieldset.cap-group{border:0;margin:0;min-width:0}
fieldset.cap-group legend{float:left;width:100%;margin:0 0 10px;padding:0}
fieldset.cap-group legend + *{clear:both}
/* Field scanning: compact offer toggles, sections that hide with the toggle, coverage map */
.offer-fs{border:0;margin:0;padding:0;min-width:0}
.offer-togs{display:flex;flex-wrap:wrap;gap:8px}
.offer-tog{display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid var(--line-2);border-radius:10px;background:var(--surface);cursor:pointer;max-width:100%}
.offer-tog:has(input:checked){border-color:var(--fg-3);background:var(--surface-2)}
.offer-tog .offer-t{display:block;font-weight:600;font-size:13px;line-height:1.2}
.offer-tog .small{display:block;line-height:1.3}
.scn-wrap:not(:has(input[name="offers"][value="scanning"]:checked)) .scn-only{display:none}
.scn-sec{display:flex;flex-direction:column;gap:10px;padding-top:14px;border-top:1px solid var(--line)}
.scn-sec-h{display:flex;flex-direction:column;gap:2px}
.scn-tags{gap:8px}
.scn-edit{margin-top:0}
.scn-edit[open]>summary{margin-bottom:14px}
.scn-edit-body{padding:16px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface-2)}
.scn-edit-body .input{background:var(--surface)}
.cov{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:20px;align-items:start}
.cov-map{min-width:0}
.usmap{width:100%;height:auto;display:block}
.usmap .ust rect{fill:var(--surface-2);stroke:var(--line);stroke-width:1}
.usmap .ust text{fill:var(--fg-3);font:600 11px var(--font-mono)}
.usmap .ust.part rect{fill:color-mix(in srgb,var(--accent) 22%,var(--surface));stroke:color-mix(in srgb,var(--accent) 45%,transparent)}
.usmap .ust.part text{fill:var(--fg)}
.usmap .ust.full rect{fill:var(--accent);stroke:var(--accent)}
.usmap .ust.full text{fill:var(--accent-fg)}
.cov-legend{display:flex;gap:14px;margin-top:8px}
.cov-sw{display:inline-block;width:10px;height:10px;border-radius:2px}
.cov-sw.full{background:var(--accent)}
.cov-sw.part{background:color-mix(in srgb,var(--accent) 22%,var(--surface));border:1px solid color-mix(in srgb,var(--accent) 45%,transparent)}
.cov-big{font:700 20px var(--font-display);margin:2px 0 8px}
.cov-list{list-style:none;margin:0;padding:0;font-size:13px}
.cov-list li{display:flex;gap:8px;align-items:flex-start;padding:5px 0;border-bottom:1px solid var(--line)}
.cov-list li:last-child{border-bottom:0}
.cov-list svg{width:14px;height:14px;flex:none;margin-top:2px;color:var(--fg-3)}
@media (max-width:760px){.cov{grid-template-columns:minmax(0,1fr)}}
/* Partner Slack */
.slack-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:24px;align-items:start}
.slack-steps{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:8px;color:var(--fg-2)}
@media (max-width:860px){.slack-grid{grid-template-columns:minmax(0,1fr)}}
/* Admin: add-a-partner panel and the partner profile editor */
.ap-panel{margin-top:20px}
.ap-panel .form-grid{gap:14px 18px}
.pe-edit{margin-top:4px}
.pe-edit>summary{list-style:none;cursor:pointer;display:inline-flex}
.pe-edit>summary::-webkit-details-marker{display:none}
.pe-edit[open]>summary{margin-bottom:12px}

/* ================= ⭐ Kyle 2026-10-07: consistency pass (partner + admin) =================
   Shared fixes instead of one-off inline styles. */
/* Buttons line up with inputs and the search box (36px; 28px small). */
.btn{height:36px}
@media (pointer:coarse){.btn{min-height:42px}}
/* Empty states: one look everywhere -- a faint icon, muted text, a next step. */
.empty>svg{width:22px;height:22px;color:var(--fg-3)}
.empty.small{padding:16px 18px;gap:6px;font-size:13px}
.empty.small>svg{width:16px;height:16px}
.panel-body .empty.small{padding:12px 0}
td.empty-cell{text-align:center;padding:28px 16px;color:var(--fg-2)}
/* Drawer titles (job, history, application) share one size. */
.drawer-head h2{font-size:20px}
/* Panel heads: the title and its actions sit on one baseline. */
.panel-head h2{margin:0}
.panel-head .btn-row{flex-wrap:wrap;justify-content:flex-end}

/* One Studio logo for every role (⭐ Kyle 2026-10-08): STUDIO / red line / BY ACENSIUM */
.brand-by{font-family:var(--font-display);font-weight:400;font-stretch:112%;font-size:9.5px;letter-spacing:.42em;text-transform:uppercase;color:var(--fg-3);line-height:1;white-space:nowrap;margin-right:-.42em}
.brand.lg .brand-by{font-size:10.5px}
