/* Internal app, client portal and onboarding. Built for clarity: plum shell, cream canvas, clear states. */
:root { --bg: var(--cream); --surface: #fff; --surface-2: var(--sand); --text: var(--ink); --sub: var(--muted); --border: var(--line); --heat-1: #d9a34a; --heat-2: #c99bb3; --heat-3: #8a4f6e; --heat-4: #4a2139; --heat-none: #e9dfd2; --side: 232px; }
[data-theme="dark"] { --bg: #170b13; --surface: #24141e; --surface-2: #2e1b27; --text: #f3e8ee; --sub: #c4adb9; --border: #3e2734; --heat-none: #3a2531; --plum-100: #3a2230; --ok-bg: #173323; --ok: #8fd3a8; --warn-bg: #3a2c12; --warn: #f0c878; --bad-bg: #3d1717; --bad: #f1a3a3; --info-bg: #182b3a; --info: #a6cbe8; --block-bg: #3b2217; --block: #f3b393; }
body { background: var(--bg); color: var(--text); font-size: 14.5px; line-height: 1.5; }
.boot { padding: 40vh 0; text-align: center; color: var(--sub); }
h1 { font-size: 28px; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 14px; } h2 { font-size: 17px; margin: 0 0 12px; letter-spacing: -.01em; } h3 { font-size: 14.5px; margin: 16px 0 8px; }
a { color: var(--plum-600); } [data-theme="dark"] a { color: var(--gold-300); }
code, .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; }
.muted { color: var(--sub); } .small { font-size: 13px; } .center { text-align: center; } .grow { flex: 1; } .ok { color: var(--ok); font-weight: 700; } .err { color: var(--bad); font-weight: 700; } .num { text-align: right; font-variant-numeric: tabular-nums; } .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; font-weight: 800; color: var(--gold-text); margin: 0 0 6px; } [data-theme="dark"] .eyebrow { color: var(--gold-300); }
.row { display: flex; gap: 10px; align-items: center; } .row.wrap { flex-wrap: wrap; } .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* shell */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: var(--plum-900); color: #fff; }
.top .kb-logo { color: #fff; text-decoration: none; } .top .kb-logo svg { width: 30px; height: 30px; }
.top .biz { font-weight: 700; opacity: .85; border-left: 1px solid rgba(255,255,255,.2); padding-left: 14px; }
.env { font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: rgba(217,163,74,.2); color: var(--gold-300); } .env.live { background: #1d6539; color: #fff; }
.who { font-size: 13px; opacity: .85; } .bell { position: relative; background: none; border: 0; font-size: 18px; cursor: pointer; padding: 4px 8px; } .bell b { position: absolute; top: -2px; right: -2px; background: var(--gold-400); color: var(--plum-950); font-size: 10px; border-radius: 999px; padding: 1px 5px; }
.body { flex: 1; display: grid; grid-template-columns: var(--side) 1fr; min-height: 0; }
.side { background: var(--surface); border-right: 1px solid var(--border); padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 52px; height: calc(100vh - 52px); overflow: auto; }
.side-link { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--text) !important; font-weight: 600; font-size: 14px; transition: background .15s; }
.side-link:hover { background: var(--surface-2); } .side-link.on { background: var(--plum-100); color: var(--plum-800) !important; font-weight: 800; box-shadow: inset 3px 0 0 var(--gold-400); } [data-theme="dark"] .side-link.on { color: #fff !important; }
.side-head { margin: 14px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } .side-head:first-child { margin-top: 2px; }
.count { background: var(--gold-400); color: var(--plum-950); font-size: 11px; padding: 1px 7px; border-radius: 999px; margin-left: 6px; }
.content { padding: 24px clamp(14px, 3vw, 36px) 80px; max-width: 1400px; width: 100%; outline: none; min-width: 0; }
.page-head { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; } .page-head h1 { margin: 0; }
.pulse { font-size: 13px; font-weight: 700; color: var(--sub); display: inline-flex; align-items: center; gap: 8px; } .pulse::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); } .pulse.on::before { background: var(--gold-400); animation: ping 1.8s infinite; } @keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(217,163,74,.6) } 80% { box-shadow: 0 0 0 10px rgba(217,163,74,0) } }

/* primitives */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; min-width: 0; }
.card.sim { background: repeating-linear-gradient(-45deg, var(--surface), var(--surface) 12px, var(--surface-2) 12px, var(--surface-2) 24px); }
.btn { font: inherit; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; transition: transform .15s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--plum-300); } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: .55; cursor: wait; }
.btn.primary { background: var(--plum-700); border-color: var(--plum-700); color: #fff; } .btn.primary:hover { background: var(--plum-800); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; } .btn.ghost { background: transparent; } .btn.small { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; } .btn.wide { width: 100%; justify-content: center; padding: 12px; }
.btn.on-dark { color: #fff; border-color: rgba(255,255,255,.25); } .btn.busy { position: relative; color: transparent !important; } .btn.busy::after { content: ''; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; border: 2px solid var(--sub); border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; } @keyframes spin { to { transform: rotate(360deg) } }
.link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--plum-600); cursor: pointer; text-align: left; } [data-theme="dark"] .link { color: var(--gold-300); } .link:hover { text-decoration: underline; }
.in { font: inherit; padding: 9px 11px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); width: 100%; } .in:focus { outline: none; border-color: var(--plum-500); box-shadow: 0 0 0 3px var(--plum-100); } .in[aria-invalid="true"] { border-color: var(--bad); } textarea.in { resize: vertical; }
.field { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: 13px; } .field small { font-weight: 500; } .field small.req { color: var(--gold-text); font-weight: 800; } .field.wide { grid-column: 1 / -1; } .hint { color: var(--sub); }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 600; margin: 8px 0; cursor: pointer; } .check input { width: 18px; height: 18px; accent-color: var(--plum-700); margin-top: 1px; } .check.wide { grid-column: 1 / -1; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 800; background: var(--surface-2); color: var(--sub); white-space: nowrap; margin-right: 4px; vertical-align: middle; }
.s-completed, .s-approved, .s-verified, .s-active, .s-done, .s-accepted { background: var(--ok-bg) !important; color: var(--ok) !important; }
.s-awaiting_internal_approval, .s-pending, .s-changes_requested, .s-ready, .s-partially_approved, .s-invited, .s-offered { background: var(--warn-bg) !important; color: var(--warn) !important; }
.s-failed, .s-rejected, .s-revoked { background: var(--bad-bg) !important; color: var(--bad) !important; }
.s-blocked, .s-awaiting_access, .s-awaiting_client_info, .s-awaiting_client_approval, .s-retrying, .s-paused, .s-stale, .s-setup_needed, .s-not_requested, .s-onboarding { background: var(--block-bg) !important; color: var(--block) !important; }
.s-running, .s-implementing, .s-verifying, .s-approved-run { background: var(--info-bg) !important; color: var(--info) !important; }
.s-not_applicable, .s-superseded, .s-not_needed { opacity: .6; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; } .tile span { display: block; font-size: 12px; font-weight: 700; color: var(--sub); } .tile b { display: block; font-size: 26px; letter-spacing: -.03em; margin: 2px 0; } .tile small { color: var(--sub); }
.tile.warn { box-shadow: inset 0 3px 0 var(--gold-400); } .tile.bad { box-shadow: inset 0 3px 0 var(--bad); } .tile.info { box-shadow: inset 0 3px 0 var(--info); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; } .tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--sub); padding: 8px; border-bottom: 1px solid var(--border); } .tbl td { padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; } .tbl.hover tr:not(:first-child) { cursor: pointer; } .tbl.hover tr:not(:first-child):hover td { background: var(--surface-2); } .tbl tr.off { opacity: .5; }
.plain { list-style: none; padding: 0; margin: 0; } .plain li { padding: 7px 0; border-bottom: 1px dashed var(--border); } .plain li:last-child { border: 0; }
.empty { color: var(--sub); font-style: italic; margin: 6px 0; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 14px; margin: 12px 0; font-size: 13.5px; } .kv dt { font-weight: 700; color: var(--sub); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; word-break: break-word; background: var(--surface-2); border-radius: 10px; padding: 12px; font: 12px/1.5 'JetBrains Mono', monospace; max-height: 420px; overflow: auto; margin: 6px 0; }
.note { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 13.5px; } .note.bad { background: var(--bad-bg); color: var(--bad); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; align-items: center; } .tabs button { font: inherit; font-weight: 700; padding: 10px 14px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--sub); cursor: pointer; text-transform: capitalize; white-space: nowrap; } .tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--gold-400); } .tabs .check { margin-left: auto; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; } .filters .in { width: auto; min-width: 150px; }
.back { font-weight: 700; text-decoration: none; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--plum-900); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; z-index: 100; box-shadow: 0 12px 40px rgba(0,0,0,.25); animation: up .3s var(--ease); max-width: 90vw; } .toast.bad { background: var(--bad); } .toast.out { opacity: 0; transition: opacity .4s; } @keyframes up { from { transform: translate(-50%, 12px); opacity: 0 } }
.scrim { position: fixed; inset: 0; background: rgba(26,11,21,.45); z-index: 40; animation: fade .2s; } @keyframes fade { from { opacity: 0 } }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 96vw); background: var(--bg); z-index: 41; overflow-y: auto; padding: 14px 22px 60px; box-shadow: -20px 0 60px rgba(0,0,0,.25); animation: slide .28s var(--ease); outline: none; } .panel.wide { width: min(900px, 98vw); } @keyframes slide { from { transform: translateX(40px); opacity: 0 } }
.panel-bar { display: flex; position: sticky; top: -14px; padding: 10px 0; background: var(--bg); z-index: 2; } .panel-warn { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 12px; display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.doc { line-height: 1.65; } .doc h2 { font-size: 22px; } .doc h3 { font-size: 16px; margin-top: 20px; } .doc pre { white-space: pre-wrap; background: var(--surface-2); padding: 12px; border-radius: 10px; font-size: 12.5px; }

/* account */
.acct-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; } .acct-head h1 { margin: 0 0 8px; }
.levels3 { display: grid; grid-template-columns: repeat(4, auto); gap: 8px; } .levels3 div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; } .levels3 span { display: block; font-size: 11px; color: var(--sub); font-weight: 700; } .levels3 b { font-size: 15px; }
.score { display: flex; align-items: baseline; gap: 10px; } .score b { font-size: 44px; letter-spacing: -.04em; } .score span { color: var(--sub); font-weight: 600; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 80px; } .spark i { flex: 1; background: var(--plum-300); border-radius: 3px 3px 0 0; min-width: 4px; }
.issues { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.log { list-style: none; padding: 0; margin: 0; font-size: 12.5px; } .log li { padding: 4px 0; border-bottom: 1px dashed var(--border); } .note-li { color: var(--gold-text); }

/* timeline */
.tl-wrap { overflow-x: auto; } .tl { border-collapse: separate; border-spacing: 0; font-size: 12px; } .tl th, .tl td { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 5px; vertical-align: top; min-width: 132px; }
.tl thead th { position: sticky; top: 0; background: var(--surface); font-size: 11.5px; text-align: left; z-index: 1; } .tl tbody th { position: sticky; left: 0; background: var(--surface-2); text-align: left; min-width: 120px; z-index: 1; font-size: 12px; } .tl .now { background: rgba(217,163,74,.1); } .tl thead th.now { color: var(--gold-text); }
.tl-chip { display: block; width: 100%; text-align: left; font: inherit; font-size: 11.5px; font-weight: 600; line-height: 1.3; padding: 5px 7px; margin-bottom: 4px; border-radius: 6px; border: 0; border-left: 4px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; transition: transform .12s; }
.tl-chip:hover { transform: translateX(2px); } .tl-chip.m-gate, .tl-chip.m-report, .tl-chip.m-message { box-shadow: inset 0 0 0 1px var(--gold-300); }
.tl-chip.s-completed { border-left-color: var(--ok); } .tl-chip.s-running, .tl-chip.s-implementing, .tl-chip.s-verifying { border-left-color: var(--info); animation: glow 1.6s infinite; } @keyframes glow { 50% { filter: brightness(1.08) } }
.tl-chip.s-awaiting_internal_approval, .tl-chip.s-ready, .tl-chip.s-changes_requested { border-left-color: var(--gold-400); } .tl-chip.s-failed { border-left-color: var(--bad); } .tl-chip.s-blocked, .tl-chip.s-awaiting_access, .tl-chip.s-awaiting_client_info, .tl-chip.s-awaiting_client_approval, .tl-chip.s-retrying { border-left-color: var(--block); } .tl-chip.s-not_applicable, .tl-chip.s-superseded { text-decoration: line-through; opacity: .5; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; } .tl-legend .tl-chip { width: auto; display: inline-block; margin: 0; cursor: default; }

/* heatmaps */
.heats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; } .heat-fig { margin: 0; } .heat { width: 100%; height: auto; border-radius: 12px; background: var(--surface-2); } .heat-fig figcaption { display: flex; flex-direction: column; font-size: 12.5px; margin-top: 6px; } .heat-fig figcaption span { color: var(--sub); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--sub); } .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; }

/* tickets */
.ticket h2 { font-size: 22px; margin: 4px 0 10px; } .change { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin: 10px 0; }
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; } .diff > div { background: var(--surface-2); border-radius: 10px; padding: 10px; min-width: 0; } .diff .lbl { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--sub); margin-bottom: 4px; }
.diff p { margin: 0; white-space: pre-wrap; line-height: 1.55; } del { background: var(--bad-bg); color: var(--bad); text-decoration: line-through; border-radius: 3px; } ins { background: var(--ok-bg); color: var(--ok); text-decoration: none; border-radius: 3px; }

/* portal */
.portal .content { max-width: 1120px; } .hello h1 { font-size: 30px; margin-bottom: 4px; } .hello { margin-bottom: 18px; }
.banner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 18px; border-radius: 14px; background: var(--plum-100); margin-bottom: 14px; } .banner.gold { background: var(--warn-bg); color: var(--warn); } .banner span { flex: 1; color: var(--sub); }
.ticks { padding: 0; list-style: none; margin: 0; } .ticks li { padding: 6px 0 6px 26px; position: relative; } .ticks li::before { content: '✓'; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 5px; background: var(--ok-bg); color: var(--ok); font-weight: 800; font-size: 11px; display: grid; place-items: center; } .ticks.soft li::before { content: '→'; background: var(--surface-2); color: var(--sub); }
.done-list { list-style: none; padding: 0; margin: 0; } .done-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); } .done-list small { color: var(--sub); white-space: nowrap; }
.more { display: inline-block; margin-top: 10px; font-weight: 700; }
.doc-row { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; font: inherit; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; margin-bottom: 8px; align-items: center; } .doc-row:hover { border-color: var(--plum-300); } .doc-row small { color: var(--sub); } .doc-row.static { cursor: default; }
.decision { border: 2px solid var(--gold-400); } .choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 14px 0; } .choice { border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; } .choice.rec { border-color: var(--plum-500); background: var(--plum-100); } .choice p { margin: 0; } .price { font-weight: 800; font-size: 16px; }
.journey { list-style: none; padding: 0; margin: 0; position: relative; } .journey::before { content: ''; position: absolute; left: 70px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.journey li { display: grid; grid-template-columns: 60px 1fr auto; gap: 26px; align-items: center; padding: 10px 0; position: relative; } .journey li::before { content: ''; position: absolute; left: 65px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); } .journey .wk { font-size: 12px; font-weight: 800; color: var(--sub); }
.journey li.done::before { background: var(--ok); border-color: var(--ok); } .journey li.done .jt { color: var(--sub); } .journey li.current::before { background: var(--gold-400); border-color: var(--gold-400); box-shadow: 0 0 0 5px rgba(217,163,74,.25); } .journey li.current .jt { font-weight: 800; } .journey .now { background: var(--gold-400); color: var(--plum-950); font-size: 11px; padding: 2px 8px; border-radius: 999px; } .journey .tick { color: var(--ok); font-weight: 800; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; } .svc { border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; } .svc small { color: var(--sub); }
.kvp { margin: 10px 0; } .kvp b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--sub); } .kvp p, .kvp ul { margin: 4px 0 0; }
.notes { list-style: none; padding: 0; margin: 10px 0 0; } .notes li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--border); } .notes li.unread span { font-weight: 800; } .notes li.unread::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); margin-top: 7px; } .notes small { color: var(--sub); width: 100%; }
.seg { display: inline-flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 12px; } .seg button { font: inherit; font-weight: 700; border: 0; background: none; padding: 8px 14px; border-radius: 9px; cursor: pointer; color: var(--sub); } .seg button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* onboarding */
.ob { max-width: 860px; margin: 0 auto; padding: 24px 16px 100px; outline: none; }
.ob-head { margin-bottom: 18px; } .ob-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--sub); font-weight: 600; } .ob-save { margin-left: auto; color: var(--ok); }
.ob-progress { height: 6px; border-radius: 3px; background: var(--border); margin: 12px 0; overflow: hidden; } .ob-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--plum-600), var(--gold-400)); border-radius: 3px; transition: width .5s var(--ease); }
.ob-dots { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; overflow-x: auto; } .ob-dots button { font: inherit; font-size: 12px; font-weight: 700; border: 1px solid var(--border); background: var(--surface); color: var(--sub); padding: 5px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap; } .ob-dots .on button { background: var(--plum-700); color: #fff; border-color: var(--plum-700); } .ob-dots .done button::before { content: '✓ '; color: var(--ok); }
.ob-card { padding: 26px; animation: up2 .35s var(--ease); } @keyframes up2 { from { transform: translateY(8px); opacity: 0 } } .ob-card h1 { font-size: 26px; margin-bottom: 4px; }
.ob-nav { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.ob-list { display: grid; gap: 8px; margin: 14px 0; } .ob-item { display: grid; grid-template-columns: 1fr auto auto auto auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); } .ob-item.off { opacity: .6; } .ob-item .note { grid-column: 1 / -1; background: var(--surface); color: var(--text); font-weight: 500; } .ob-item .zip { width: 90px; }
.mini { display: flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 700; white-space: nowrap; } .ob-move { display: flex; gap: 4px; } .icon { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 800; color: var(--text); } .icon:disabled { opacity: .35; }
.access { margin-top: 20px; border: 1px solid var(--gold-300); background: linear-gradient(180deg, rgba(217,163,74,.08), transparent); border-radius: 14px; padding: 16px 18px; } .access-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .access-head h2 { margin: 0; }
.steps { padding-left: 20px; line-height: 1.7; } .copy { font: 700 13px 'JetBrains Mono', monospace; padding: 3px 8px; border-radius: 7px; border: 1px dashed var(--plum-300); background: var(--surface); color: var(--text); cursor: pointer; }
.ob-cred { margin-top: 12px; } .ob-cred summary { cursor: pointer; font-weight: 700; color: var(--plum-600); } .ob-cred .grid3 { margin: 10px 0; }
.visual { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } .vis { font: inherit; font-weight: 700; font-size: 13px; border: 2px solid var(--border); border-radius: 12px; padding: 0 0 10px; background: var(--surface); cursor: pointer; overflow: hidden; color: var(--text); } .vis i { display: block; height: 70px; margin-bottom: 8px; } .vis[aria-checked="true"] { border-color: var(--plum-700); }
.v0 i { background: linear-gradient(135deg, #fff 50%, #e3c6d6 50%); } .v1 i { background: linear-gradient(135deg, #1a0b15 45%, #d9a34a 45%); } .v2 i { background: linear-gradient(135deg, #f6efe4 50%, #b5653f 50%); } .v3 i { background: linear-gradient(135deg, #faf7f2 60%, #3b1830 60%); }
.files { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; } .files li::before { content: '📎 '; }
.rev { padding: 12px 0; border-bottom: 1px dashed var(--border); } .rev-h { display: flex; justify-content: space-between; }
.err-box { background: var(--bad-bg); color: var(--bad); border-radius: 12px; padding: 14px 18px; margin: 12px 0; } .err-box ul { margin: 6px 0 0; padding-left: 18px; } .err-box .link { color: var(--bad); }
.ob-done, .center-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; } .card.center { max-width: 520px; text-align: center; }
.login { width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 30px; } .kb-logo.big { color: var(--plum-900); justify-content: center; text-decoration: none; font-size: 22px; } [data-theme="dark"] .kb-logo.big { color: #fff; } .kb-logo.big svg { width: 44px; height: 44px; } .login h1 { text-align: center; font-size: 24px; }
.demo { background: var(--surface-2); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }

@media (max-width: 980px) {
  .body { grid-template-columns: 1fr; } .side { position: static; height: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 8px; } .side-link { white-space: nowrap; }
  .two, .three, .grid2, .grid3 { grid-template-columns: 1fr; } .levels3 { grid-template-columns: 1fr 1fr; } .kv { grid-template-columns: 1fr; } .diff { grid-template-columns: 1fr; } .visual { grid-template-columns: 1fr 1fr; }
  .ob-item { grid-template-columns: 1fr 1fr; } .who, .top .biz { display: none; }
}

/* live data: weekly bars */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; padding: 6px 0; border-bottom: 1px solid var(--border); } .bars i { flex: 1; min-width: 4px; background: var(--gold-400); border-radius: 3px 3px 0 0; min-height: 2px; }

.ob-more { margin-top: 14px; } .ob-more > summary { cursor: pointer; color: var(--muted, #6b5d55); font-weight: 600; } .ob-more[hidden] { display: none; }
.ok-note { margin-bottom: 14px; }

/* Post and reply studio */
.prompt { width: 100%; font: inherit; line-height: 1.5; min-height: 90px; resize: vertical; }
.stack { display: grid; gap: 10px; margin: 8px 0; }
.ex-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.thumb { margin: 0; display: grid; gap: 4px; width: 120px; }
.thumb img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border, #e9dfd2); }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }
.pc { border: 1px solid var(--border, #e9dfd2); border-radius: 14px; overflow: hidden; background: #fff; display: grid; grid-template-rows: auto 1fr; }
.pc-img { aspect-ratio: 4 / 3; background: var(--sand, #f6f1ea); display: grid; place-items: center; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-body { padding: 12px 14px; display: grid; gap: 8px; align-content: start; }
.pc-body p { margin: 0; font-size: .92rem; white-space: pre-line; }
.rv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--border, #e9dfd2); }
.rv p { margin: 4px 0; }
.rv .reply { background: var(--sand, #f6f1ea); border-radius: 10px; padding: 10px 12px; white-space: pre-line; }
@media (max-width: 720px) { .rv { grid-template-columns: 1fr; } }
