/* Ranger: Djeonail workspace. Tokens are djeonail.com's (globals.css); the product is dark only. */
@property --dj-angle { syntax: "<angle>"; initial-value: -75deg; inherits: false; }
:root {
  color-scheme: dark;
  --basalt-0: #000000; --basalt-1: #0a0b0c; --basalt-2: #121316; --basalt-3: #1a1c1f; --basalt-4: #24272b;
  --veil-1: rgba(214,235,253,.05); --veil-2: rgba(214,235,253,.09); --veil-3: rgba(214,235,253,.14);
  --veil-4: rgba(214,235,253,.19); --veil-5: rgba(214,235,253,.32);
  --steam-0: #ffffff; --steam-1: #f0f0f0; --steam-2: #a0a0a0; --steam-3: #7a7a7a; --steam-4: #464a4d;
  --spring: #a5f3fc; --iris: #c4b5fd; --sulfur: #fcd9a8;
  --mist: linear-gradient(104deg, var(--spring) 0%, var(--iris) 52%, var(--sulfur) 100%);
  --ok: #6ee7a8; --warn: #f5a524; --danger: #ff6b6b; --info: #7cc4ff;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--basalt-0); color: var(--steam-1); font-family: var(--sans); font-size: 14px; line-height: 1.5;
  letter-spacing: -.003em; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(70% 55% at 85% 0, rgba(165,243,252,.06) 0, rgba(196,181,253,.025) 38%, transparent 76%),
                    radial-gradient(60% 50% at 0 100%, rgba(252,217,168,.04) 0, transparent 68%); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--spring); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4, h5, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.i { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--steam-3); }
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--steam-3); position: relative; z-index: 1; }
.boot svg { width: 40px; height: 40px; }

/* ---------- shell ---------- */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; padding: 18px 12px 14px;
  background: rgba(0,0,0,.55); border-right: 1px solid var(--veil-2); }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; }
.brand img { width: 24px; height: 24px; }
.brand span { font-size: 11.5px; font-weight: 500; letter-spacing: .18em; color: var(--steam-1); }
.nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--steam-2); font-size: 13.5px; }
.nav:hover { color: var(--steam-0); background: var(--veil-1); }
.nav.on { background: var(--veil-2); color: var(--steam-0); box-shadow: inset 0 1px 0 var(--veil-2); }
.nav .n { margin-left: auto; font-size: 11px; color: var(--steam-3); }
.nav .ext { margin-left: auto; width: 12px; height: 12px; opacity: .5; }
.sep { height: 1px; margin: 10px 8px; background: var(--veil-2); }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 2px; border-top: 1px solid var(--veil-2); }
.me b { display: block; font-size: 12.5px; font-weight: 600; color: var(--steam-0); line-height: 1.3; }
.me button { background: none; border: 0; padding: 0; color: var(--steam-3); font-size: 11.5px; cursor: pointer; }
.me button:hover { color: var(--steam-1); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding: 14px 28px;
  min-height: 62px; border-bottom: 1px solid var(--veil-2); background: rgba(0,0,0,.74); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.top h1 { font-size: 16px; font-weight: 600; letter-spacing: -.012em; color: var(--steam-0); }
.top .sp { flex: 1; }
.sync { font-size: 11.5px; color: var(--steam-3); white-space: nowrap; }
.content { padding: 24px 28px 96px; display: grid; gap: 16px; align-content: start; width: 100%; max-width: 1440px; }
.tabbar { display: none; }

/* ---------- controls ---------- */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--veil-3); background: var(--veil-1); color: var(--steam-1); font-size: 12.5px; font-weight: 500; white-space: nowrap;
  cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.b:hover { border-color: var(--veil-5); background: var(--veil-2); }
.b:disabled { opacity: .5; cursor: default; }
.b.sm { height: 28px; padding: 0 11px; font-size: 12px; }
.b.ghost { border-color: transparent; background: none; }
.b.danger { color: var(--danger); }
.b-pri { position: relative; isolation: isolate; border: 0; color: var(--steam-0); font-weight: 600;
  background: linear-gradient(-75deg, var(--basalt-3), var(--basalt-2) 46%, var(--basalt-1)); box-shadow: inset 0 1px 0 var(--veil-3), 0 6px 16px rgba(0,0,0,.45); }
.b-pri::after { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1.2px; pointer-events: none;
  background: conic-gradient(from var(--dj-angle) at 50% 50%, var(--spring) 0, transparent 6% 38%, var(--iris) 50%, transparent 62% 94%, var(--sulfur) 100%), linear-gradient(180deg, var(--veil-3), var(--veil-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.b-pri:hover { background: linear-gradient(-75deg, var(--basalt-4), var(--basalt-3) 46%, var(--basalt-2)); }
@keyframes dj-rim { to { --dj-angle: 285deg; } }
@media (prefers-reduced-motion: no-preference) { .b-pri:hover::after { animation: dj-rim 1.6s linear infinite; } }
.c { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--veil-3);
  background: var(--veil-1); color: var(--steam-2); font-size: 11px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.c .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.c-ok { color: var(--ok); border-color: rgba(110,231,168,.28); background: rgba(110,231,168,.08); }
.c-warn { color: var(--warn); border-color: rgba(245,165,36,.3); background: rgba(245,165,36,.08); }
.c-danger { color: var(--danger); border-color: rgba(255,107,107,.3); background: rgba(255,107,107,.08); }
.c-info { color: var(--info); border-color: rgba(124,196,255,.3); background: rgba(124,196,255,.08); }
.av { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--veil-3); color: var(--steam-1);
  font-size: 9.5px; font-weight: 600; flex-shrink: 0; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.lg { width: 42px; height: 42px; font-size: 13px; background: linear-gradient(160deg, var(--veil-4), var(--veil-2)); }
.tabs { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--veil-2); overflow-x: auto; scrollbar-width: none; margin-top: -8px; }
.tabs button { background: none; border: 0; padding: 10px 12px; font-size: 13px; color: var(--steam-3); white-space: nowrap; cursor: pointer; }
.tabs button:hover { color: var(--steam-1); }
.tabs button.on { color: var(--steam-0); background-image: var(--mist); background-size: 100% 1.5px; background-position: 0 100%; background-repeat: no-repeat; }
.tabs .r { margin-left: auto; color: var(--steam-3); font-size: 12px; white-space: nowrap; padding-left: 12px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--veil-2); border-radius: 999px; background: var(--veil-1); }
.seg button { border: 0; background: none; padding: 5px 11px; border-radius: 999px; font-size: 12px; color: var(--steam-3); cursor: pointer; }
.seg button.on { background: var(--veil-3); color: var(--steam-0); }
select.sel, input.sel { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--veil-3); background: var(--basalt-1);
  color: var(--steam-1); font: inherit; font-size: 12.5px; }

/* ---------- panels ---------- */
.pn { min-width: 0; padding: 18px; border: 1px solid var(--veil-3); border-radius: 14px; background: linear-gradient(160deg, var(--veil-2), var(--veil-1));
  box-shadow: inset 0 1px 0 var(--veil-2); }
.pn-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.pn-h h3, .pn > h3 { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--steam-3); }
.pn > h3 { margin-bottom: 12px; }
.ks { font-size: 11.5px; color: var(--steam-3); }
.lnk { font-size: 12px; color: var(--steam-2); white-space: nowrap; background: none; border: 0; padding: 0; cursor: pointer; }
.lnk:hover { color: var(--steam-0); }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.g3 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; align-content: start; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.greet p { font-size: 12px; color: var(--steam-3); }
.greet h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--steam-0); line-height: 1.25; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { display: grid; gap: 6px; align-content: start; }
.kl { font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--steam-3); }
.v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--steam-0); font-variant-numeric: tabular-nums; line-height: 1.25; overflow-wrap: anywhere; }
.v small { font-size: 12px; font-weight: 500; margin-right: 4px; color: var(--steam-3); -webkit-text-fill-color: var(--steam-3); }
.mist-text { background: var(--mist); -webkit-background-clip: text; background-clip: text; color: var(--spring); -webkit-text-fill-color: transparent; }
.split { position: relative; height: 10px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.split i { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #101113; }
.split-l { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.split-l b { display: block; font-size: 12px; font-weight: 600; color: var(--steam-0); }
.split-l span { font-size: 12px; color: var(--steam-2); font-variant-numeric: tabular-nums; }
.progress { position: relative; height: 8px; border-radius: 999px; background: var(--veil-2); overflow: hidden; }
.progress i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--mist); }

/* ---------- lists ---------- */
.ls { display: grid; }
.ls > li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--veil-1); }
.ls > li:first-child { border-top: 0; padding-top: 2px; }
.ls > li.click { cursor: pointer; }
.ls > li.click:hover > div b { color: var(--spring); }
.ls li > div { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ls li > div b { font-weight: 500; color: var(--steam-0); font-size: 13px; overflow-wrap: anywhere; }
.ls li > div span { font-size: 11.5px; color: var(--steam-3); overflow-wrap: anywhere; }
.ls em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--steam-1); white-space: nowrap; }
.ls em.in { color: var(--ok); }
.ls em.out { color: var(--steam-2); }
.ls time { display: grid; width: 44px; flex-shrink: 0; font-size: 11.5px; color: var(--steam-3); line-height: 1.3; }
.ls time b { color: var(--steam-0); font-weight: 600; font-size: 12px; }
.ls .lead { width: 118px; flex-shrink: 0; }
.u { width: 62px; flex-shrink: 0; font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--steam-2); }
.kv { display: grid; gap: 10px; }
.kv > div { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.kv dt { font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--steam-3); }
.kv dd { margin: 0; font-size: 13px; color: var(--steam-1); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kv dd small { color: var(--steam-3); font-size: 11.5px; margin-left: 4px; }
.kv .sum { padding-top: 10px; border-top: 1px solid var(--veil-2); }
.kv .sum dd { font-size: 19px; font-weight: 700; color: var(--steam-0); letter-spacing: -.01em; }
.empty { padding: 26px 12px; text-align: center; color: var(--steam-3); font-size: 13px; display: grid; gap: 10px; justify-items: center; }
.note { font-size: 12.5px; line-height: 1.55; color: var(--steam-2); border-left: 2px solid var(--sulfur); padding: 2px 0 2px 12px; }
.note.ok { border-left-color: var(--ok); }

/* ---------- tables ---------- */
.tbw { overflow-x: auto; }
.tb { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.tb th { padding: 0 10px 8px; text-align: right; font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--steam-3); white-space: nowrap; }
.tb td { padding: 9px 10px; text-align: right; border-top: 1px solid var(--veil-1); color: var(--steam-1); white-space: nowrap; }
.tb th:first-child, .tb td:first-child { text-align: left; padding-left: 0; }
.tb th:last-child, .tb td:last-child { padding-right: 0; }
.tb td:first-child span { display: block; font-size: 11px; color: var(--steam-3); white-space: normal; }
.tb tr.sub td { color: var(--steam-0); font-weight: 600; }
.tb tr.tot td { border-top: 1px solid var(--veil-3); color: var(--steam-0); font-weight: 700; font-size: 13.5px; }
.tb tr.click { cursor: pointer; }
.tb tr.click:hover td { background: var(--veil-1); }
.tb.l th, .tb.l td { text-align: left; }
.tb.l .r { text-align: right; }
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 150px; padding-top: 8px; }
.bars .col { display: grid; gap: 6px; justify-items: center; align-content: end; height: 100%; }
.bars .stk { width: 100%; max-width: 34px; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 2px 2px; overflow: hidden; background: var(--veil-1); }
.bars .stk i { display: block; width: 100%; }
.bars .col span { font-size: 10.5px; color: var(--steam-3); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11.5px; color: var(--steam-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- kanban ---------- */
.kb { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kc { display: grid; gap: 8px; align-content: start; min-width: 0; min-height: 140px; padding: 8px; border-radius: 14px; background: rgba(214,235,253,.025);
  border: 1px solid transparent; transition: border-color .15s, background .15s; }
.kc.over { border-color: var(--veil-5); background: var(--veil-1); }
.kc-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 2px 4px 8px; border-bottom: 1px solid var(--veil-2); margin-bottom: 2px; }
.kc-h b { font-size: 12.5px; font-weight: 600; color: var(--steam-0); }
.kc-h b span { color: var(--steam-3); font-weight: 500; margin-left: 5px; }
.kc-h em { font-style: normal; font-size: 11px; color: var(--steam-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kd { display: grid; gap: 6px; padding: 11px 12px; border: 1px solid var(--veil-2); border-radius: 12px; background: var(--basalt-2); cursor: pointer;
  transition: border-color .15s, transform .15s; text-align: left; width: 100%; color: inherit; }
.kd:hover { border-color: var(--veil-4); }
.kd.drag { opacity: .45; }
.kd b { font-size: 13px; font-weight: 600; color: var(--steam-0); line-height: 1.35; }
.kd p { font-size: 12px; color: var(--steam-2); line-height: 1.4; }
.kd .m { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--steam-3); font-variant-numeric: tabular-nums; }
.kd .m .val { color: var(--steam-1); font-weight: 500; }
.kd .ty { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--steam-3); }
.kd .ty .i { width: 13px; height: 13px; }
.kadd { border: 1px dashed var(--veil-3); background: none; border-radius: 12px; padding: 9px; color: var(--steam-3); font-size: 12px; cursor: pointer; }
.kadd:hover { color: var(--steam-1); border-color: var(--veil-5); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--veil-3); background: var(--veil-1); color: var(--steam-2); border-radius: 999px; padding: 4px 10px; font-size: 11.5px; cursor: pointer; }
.chips button.on { color: var(--steam-0); border-color: var(--veil-5); background: var(--veil-3); }

/* ---------- drawer + modal ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(560px, 100%); overflow-y: auto; padding: 22px 22px 40px;
  background: var(--basalt-1); border-left: 1px solid var(--veil-3); box-shadow: -30px 0 80px rgba(0,0,0,.6); display: grid; gap: 18px; align-content: start; }
.modal { position: fixed; z-index: 61; left: 50%; top: 6vh; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); max-height: 88vh; overflow-y: auto;
  padding: 22px; border-radius: 18px; background: var(--basalt-1); border: 1px solid var(--veil-3); box-shadow: 0 30px 90px rgba(0,0,0,.7); display: grid; gap: 16px; }
.dh { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dh h2 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; color: var(--steam-0); line-height: 1.3; }
.dh p { font-size: 12px; color: var(--steam-3); margin-top: 2px; }
.x { background: none; border: 0; color: var(--steam-3); cursor: pointer; padding: 4px; border-radius: 8px; }
.x:hover { color: var(--steam-0); background: var(--veil-2); }
.form { display: grid; gap: 14px; }
.f2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--steam-3); }
.field input, .field select, .field textarea { width: 100%; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--veil-3);
  background: var(--basalt-0); color: var(--steam-0); font: inherit; font-size: 13.5px; }
.field textarea { resize: vertical; min-height: 80px; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(165,243,252,.6); box-shadow: 0 0 0 3px rgba(165,243,252,.12); }
.field small { font-size: 11.5px; color: var(--steam-3); }
.checkrow { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--steam-1); cursor: pointer; }
.checkrow input { width: 16px; height: 16px; accent-color: #a5f3fc; }
.foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.tl li { position: relative; display: grid; gap: 1px; padding: 0 0 12px 18px; }
.tl li::before { content: ""; position: absolute; left: 0; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--veil-5); }
.tl li::after { content: ""; position: absolute; left: 3px; top: 16px; bottom: 0; width: 1px; background: var(--veil-2); }
.tl li:last-child::after { display: none; }
.tl b { font-size: 12.5px; font-weight: 500; color: var(--steam-0); overflow-wrap: anywhere; }
.tl span { font-size: 11px; color: var(--steam-3); }
.toasts { position: fixed; z-index: 90; right: 18px; bottom: 18px; display: grid; gap: 8px; max-width: min(420px, calc(100% - 36px)); }
.toast { padding: 11px 14px; border-radius: 12px; background: var(--basalt-3); border: 1px solid var(--veil-4); color: var(--steam-0); font-size: 13px;
  box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.toast.err { border-color: rgba(255,107,107,.5); }

/* ---------- editor ---------- */
.ed { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.ed-title { width: 100%; border: 0; background: none; color: var(--steam-0); font: inherit; font-size: 26px; font-weight: 700; letter-spacing: -.02em; padding: 0; }
.ed-title:focus { outline: none; }
.ed-body { width: 100%; min-height: 60vh; border: 1px solid var(--veil-2); border-radius: 12px; background: var(--basalt-0); color: var(--steam-1);
  font: 14px/1.75 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; padding: 16px; resize: vertical; tab-size: 2; }
.ed-body:focus { outline: none; border-color: rgba(165,243,252,.45); }
.ruler { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(2px, 1fr); gap: 2px; margin: 6px 0 2px; }
.ruler i { height: 14px; border-radius: 2px; background: var(--veil-2); }
.ruler i.f { background: var(--veil-5); }
.ruler i.g { background: var(--steam-0); }
.blocks { display: grid; gap: 6px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.blocks div { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; font-size: 12px; color: var(--steam-2); }
.blocks div b { font-weight: 500; color: var(--steam-4); font-variant-numeric: tabular-nums; }
.blocks div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blocks .gate { display: block; text-align: center; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--sulfur); padding: 4px 0;
  background: linear-gradient(90deg, transparent, rgba(252,217,168,.25), transparent) center / 100% 1px no-repeat; }
.blocks .locked { opacity: .55; }

/* ---------- apps launcher ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.app-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px; border: 1px solid var(--veil-3);
  border-radius: 14px; background: linear-gradient(160deg, var(--veil-2), var(--veil-1)); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.app-card:hover { border-color: var(--veil-5); transform: translateY(-2px); }
.app-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--basalt-1); border: 1px solid var(--veil-3); color: var(--steam-0); }
.app-ic .i { width: 18px; height: 18px; }
.app-card b { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--steam-0); }
.app-card b .ext { width: 12px; height: 12px; opacity: .5; }
.app-card span > span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--steam-2); }
.app-card code { display: block; margin-top: 8px; font: 500 11px ui-monospace, Menlo, Consolas, monospace; color: var(--steam-3); overflow-wrap: anywhere; }

/* ---------- team + AI agents ---------- */
.row .sp { flex: 1; }
.grow { flex: 1; min-width: 0; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team-tb .who .av { display: inline-grid; place-items: center; width: 30px; height: 30px; font-size: 10.5px; color: var(--steam-1); white-space: nowrap; }
.who b { display: block; font-size: 13px; font-weight: 500; color: var(--steam-0); }
.who span:not(.av) { display: block; font-size: 11.5px; color: var(--steam-3); }
.team-tb td { vertical-align: middle; }
.team-tb .acc-cell { white-space: normal; min-width: 260px; }
.acc { display: grid; gap: 8px; }
.acc-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-bottom: 2px; }
.acc-h h4 { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--steam-3); }
.acc-h span { font-size: 11.5px; color: var(--steam-4); }
.acc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 10px 0 0; border-top: 1px solid var(--veil-1); }
.acc-row b { font-size: 13px; font-weight: 500; color: var(--steam-0); }
.acc-row p { font-size: 11.5px; color: var(--steam-3); line-height: 1.4; }
.acc-row small, .acc-row .quota { grid-column: 1 / -1; font-size: 11px; color: var(--steam-3); }
.acc-row .quota { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-row .quota input { width: 110px; height: 30px; }
.acc-row.warn b { color: var(--warn); }
.seg button:disabled { cursor: not-allowed; opacity: .55; }
.c .cx { display: inline-grid; place-items: center; margin: 0 -4px 0 0; padding: 0; width: 16px; height: 16px; border: 0; border-radius: 50%; background: none; color: var(--steam-3); cursor: pointer; }
.c .cx:hover { color: var(--steam-0); background: var(--veil-3); }
.c .cx .i { width: 11px; height: 11px; }
.checkrow small { font-size: 11.5px; }
.sticky-foot { position: sticky; bottom: -40px; z-index: 2; margin: 0 -22px; padding: 12px 22px; background: linear-gradient(180deg, rgba(10,11,12,.6), var(--basalt-1) 35%); border-top: 1px solid var(--veil-2); }
.agent-hero { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; }
.agent-hero h2 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; color: var(--steam-0); line-height: 1.3; }
.agent-hero p { font-size: 13px; line-height: 1.6; color: var(--steam-2); max-width: 760px; }
.keybox { display: grid; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid rgba(165,243,252,.35); background: rgba(165,243,252,.06); }
.keybox b { font-size: 12.5px; font-weight: 600; color: var(--spring); }
.keybox code { font: 500 13px/1.5 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--steam-0); overflow-wrap: anywhere; user-select: all; }
.tools-g { gap: 18px; }
.tools-l li { display: grid; gap: 1px; padding: 8px 0; border-top: 1px solid var(--veil-1); }
.tools-l li.kl { border-top: 0; padding-top: 0; }
.tools-l li b { font-size: 13px; font-weight: 500; color: var(--steam-0); }
.tools-l li span { font-size: 11.5px; color: var(--steam-3); }
.tools-l li.off { opacity: .45; }
.code { border: 1px solid var(--veil-3); border-radius: 12px; background: var(--basalt-0); overflow: hidden; min-width: 0; }
.code-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--veil-2);
  font: 500 11px ui-monospace, Menlo, Consolas, monospace; color: var(--steam-3); }
.code pre { margin: 0; padding: 14px; overflow-x: auto; font: 12px/1.65 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--steam-1); white-space: pre; }
code.inl { font: 500 12px ui-monospace, Menlo, Consolas, monospace; color: var(--steam-1); background: var(--veil-2); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .team-tb thead { display: none; }
  .team-tb, .team-tb tbody { display: block; }
  .team-tb tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 0; border-top: 1px solid var(--veil-1); }
  .team-tb tr:first-child { border-top: 0; padding-top: 0; }
  .team-tb td { display: block; border: 0; padding: 0 !important; text-align: left; white-space: normal; font-size: 12px; }
  .team-tb td:first-child, .team-tb .acc-cell { flex: 1 0 100%; min-width: 0; }
  .team-tb td.nil { display: none; }
  .team-tb td[data-label]::before { content: attr(data-label); margin-right: 6px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--steam-3); }
  .acc-row { grid-template-columns: 1fr; }
  .acc-row .seg { justify-self: start; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3, .ed { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .top { padding: 12px 16px; }
  .content { padding: 16px 16px 110px; }
  .g2, .f2 { grid-template-columns: 1fr; }
  .split-l { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around;
    padding: 8px 6px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--veil-2); background: rgba(0,0,0,.9);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .tabbar a { display: grid; justify-items: center; gap: 3px; font-size: 10px; color: var(--steam-3); min-width: 56px; }
  .tabbar a.on { color: var(--steam-0); }
  .tabbar .i { width: 19px; height: 19px; }
  .kv > div { grid-template-columns: 104px minmax(0, 1fr); }
  .bars { gap: 4px; }
}
@media (max-width: 480px) {
  .kpis { grid-template-columns: 1fr; }
  .ls > li { flex-wrap: wrap; }
  .ls .lead { width: auto; }
}
