/* ============================================================================
   main.css — Telkomsel SIAGA · Agentic Network Audit
   ----------------------------------------------------------------------------
   Design tokens on :root, then the component system. Ported and extended from
   the original single-file mockup so every screen's markup drops in unchanged.
   Light is the default; a dark variant flips only colour tokens. The app shell
   (sidebar + top bar) is injected by components.js — pages carry only .content.
   ========================================================================== */

:root{
  --brand:#ED0226;          /* Telkomsel primary red */
  --brand-dark:#C40025;
  --tint:#fdeaec;           /* light red wash — active nav / info */
  --navy:#001A41;           /* Telkomsel primary dark blue */
  --navy-2:#0E336C;
  --blue2:#0050AE;          /* Telkomsel secondary blue */
  --gold:#FDA22B;           /* gradient stop */
  --grad:linear-gradient(79deg,#ED0226 40%,#FDA22B 120%);
  --grad-navy:linear-gradient(75deg,#001A41 15%,#0E336C 110%);

  --ink:#181C21;
  --ink-soft:#3f4753;
  --muted:#8a919c;
  --line:#e7e9ed;
  --panel:#eef0f3;
  --bg:linear-gradient(45deg,#f2f3f6 1%,#dcdfe4 100%);
  --surface:#fff;
  --surface-2:#fafbfc;
  --sidebar:#fff;
  --topbar:#fff;

  --green:#0e7a4d;--green-bg:#e5f6ee;
  --amber:#b45309;--amber-bg:#fef3d9;
  --redc:#b91c1c;--red-bg:#fdecec;
  --bluec:#1d4ed8;--blue-bg:#e7eefc;
  --grayc:#4b5563;--gray-bg:#eef0f3;
  --purplec:#6d28d9;--purple-bg:#f0e9fd;

  --radius:12px;
  --shadow:0 20px 60px rgba(20,20,40,.20);
  --font:"Poppins","Nunito Sans",ui-rounded,"SF Pro Rounded",-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
}

/* dark theme — flip colour tokens only; type / spacing / shape stay shared */
:root[data-theme="dark"]{
  --ink:#e8ebf0;
  --ink-soft:#b7bfcc;
  --muted:#8a93a3;
  --line:#242a35;
  --panel:#0d1017;
  --bg:linear-gradient(45deg,#0a0d13 1%,#12161f 100%);
  --surface:#161b24;
  --surface-2:#1b212c;
  --sidebar:#12161f;
  --topbar:#141922;
  --tint:#2a1114;

  --green-bg:#0f2a1e;--amber-bg:#2c2110;--red-bg:#2c1315;
  --blue-bg:#111e33;--gray-bg:#1c222c;--purple-bg:#1e1630;
  --green:#4ade80;--amber:#fbbf24;--redc:#f87171;
  --bluec:#7da3f7;--grayc:#aab3c0;--purplec:#c4a6f5;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--font);
  color:var(--ink);
  background:var(--bg);
  background-attachment:fixed;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}
a{color:inherit;text-decoration:none}
button{font-family:inherit}

/* ---------------------------------------------------------------------------
   APP SHELL (injected by components.js)
   --------------------------------------------------------------------------- */
.app{display:flex;min-height:100vh;background:var(--panel);position:relative}

.sb{width:236px;background:var(--sidebar);border-right:1px solid var(--line);
  display:flex;flex-direction:column;padding:12px 0 10px;flex-shrink:0;
  position:sticky;top:0;height:100vh;overflow-y:auto}
.sb .brand{display:flex;align-items:center;gap:9px;padding:2px 16px 12px;border-bottom:1px solid var(--line);margin-bottom:6px}
.logo{width:30px;height:30px;border-radius:9px;flex-shrink:0;display:block}
.sb .brand .bw{font-size:16px;font-weight:800;letter-spacing:.2px;line-height:1}
.sb .brand .bw .p{color:var(--brand)}
.sb .brand .bs{font-size:8.5px;color:var(--muted);letter-spacing:.6px;font-weight:600;margin-top:2px}
.sb .prof{display:flex;gap:10px;align-items:center;padding:8px 16px 12px;border-bottom:1px solid var(--line);margin-bottom:6px;cursor:pointer;position:relative}
.sb .prof:hover{background:var(--surface-2)}
.sb .av{width:34px;height:34px;border-radius:50%;background:var(--grad);color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.sb .prof .nm{font-size:13px;font-weight:700}
.sb .prof .org{font-size:10.5px;color:var(--muted);line-height:1.3}
.sb .prof .caret{margin-left:auto;color:var(--muted)}
.sb .sec{font-size:9.5px;font-weight:800;letter-spacing:.9px;color:var(--muted);padding:11px 16px 4px;opacity:.85}
.sb .it{display:flex;align-items:center;gap:10px;font-size:12.5px;color:var(--ink-soft);padding:8px 16px;cursor:pointer;border:0;background:none;width:100%;text-align:left}
.sb .it:hover{background:var(--surface-2)}
.sb .it .ic{width:16px;height:16px;stroke:var(--muted);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.sb .it.act{background:var(--tint);color:var(--brand);font-weight:700;border-right:3px solid var(--brand)}
.sb .it.act .ic{stroke:var(--brand)}
.sb .badge{margin-left:auto;background:var(--tint);color:var(--brand);font-size:10px;font-weight:800;padding:1px 7px;border-radius:9px}
.sb .it.act .badge{background:var(--surface)}
.sb .badge.live{background:var(--green-bg);color:var(--green)}
.sb .out{margin-top:auto;padding:12px 16px 4px;border-top:1px solid var(--line);font-size:12.5px;color:#c0392b;cursor:pointer;background:none;border-left:0;border-right:0;border-bottom:0;text-align:left;width:100%}

.main{flex:1;display:flex;flex-direction:column;min-width:0}
.bar{height:52px;background:var(--topbar);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 20px;gap:12px;position:sticky;top:0;z-index:40}
.bar .dlogo{display:flex;align-items:center;gap:9px}
.bar .dlogo .lw{font-size:15px;font-weight:800;color:var(--brand);letter-spacing:.2px}
.bar .env{margin-left:6px;font-size:10px;font-weight:700;color:var(--navy);background:#eaf0fb;border:1px solid #d6e2f6;padding:2px 8px;border-radius:20px}
:root[data-theme="dark"] .bar .env{color:#9bc0ff;background:#111e33;border-color:#1e3a5f}
.bar .rt{margin-left:auto;display:flex;gap:10px;align-items:center}
.bar .cir{width:32px;height:32px;border-radius:50%;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:13px;color:var(--brand);position:relative;cursor:pointer;background:var(--surface)}
.bar .cir:hover{background:var(--surface-2)}
.bar .cir .nd{position:absolute;top:1px;right:1px;width:7px;height:7px;border-radius:50%;background:var(--brand);border:2px solid var(--surface)}
.crumb{height:34px;background:var(--surface-2);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 20px;font-size:12.5px;color:var(--ink-soft);gap:8px}
.content{flex:1;padding:20px 24px 80px;max-width:1300px;width:100%}
.ph{display:flex;align-items:flex-start;margin-bottom:16px;gap:12px}
.ph h2{font-size:20px;color:var(--ink);margin:0;font-weight:800}
.ph .sub{font-size:12.5px;color:var(--muted);margin-top:3px;max-width:680px;line-height:1.5}
.ph .right{margin-left:auto;display:flex;gap:8px;align-items:center;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end}

.fab{position:fixed;right:22px;bottom:22px;width:50px;height:50px;border-radius:50%;background:var(--grad);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;box-shadow:0 6px 18px rgba(237,2,38,.42);cursor:pointer;z-index:60}
.fab:hover{transform:translateY(-2px)}

/* ---- persona menu + notification panel (chrome popovers) ------------------ */
.popover{position:absolute;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);z-index:80;overflow:hidden;min-width:230px}
.popover .po-item{display:flex;gap:10px;align-items:center;padding:10px 14px;cursor:pointer;font-size:12.5px}
.popover .po-item:hover{background:var(--surface-2)}
.popover .po-item.on{background:var(--tint)}
.popover .po-item .av{width:30px;height:30px;border-radius:50%;background:var(--grad);color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:none}
.popover .po-item .nm{font-weight:700}
.popover .po-item .role{font-size:10.5px;color:var(--muted)}
.popover .po-head{padding:10px 14px;font-size:11px;font-weight:800;letter-spacing:.5px;color:var(--muted);text-transform:uppercase;border-bottom:1px solid var(--line)}
.notif-item{display:flex;gap:10px;padding:11px 14px;border-bottom:1px solid var(--line);font-size:12px;line-height:1.4}
.notif-item:last-child{border-bottom:0}
.notif-item.unread{background:var(--tint)}
.notif-item .nt-ico{width:26px;height:26px;border-radius:8px;background:var(--surface-2);display:flex;align-items:center;justify-content:center;flex:none}
.notif-item b{font-weight:700}
.notif-item small{display:block;color:var(--muted);font-size:10.5px;margin-top:2px}

/* ---------------------------------------------------------------------------
   COMPONENTS (ported verbatim from the mockup, tokenised for theming)
   --------------------------------------------------------------------------- */
.card{background:var(--surface);border:1px solid var(--line);border-radius:12px}
.ch{padding:12px 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}
.ch h3{font-size:13.5px;margin:0;font-weight:800}
.ch a{font-size:11.5px;color:var(--brand);font-weight:700;cursor:pointer}
.cb{padding:12px 16px}
.kpis{display:flex;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.kpi{flex:1;min-width:150px;background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--brand);border-radius:11px;padding:12px 14px}
.kpi.hero{background:var(--grad-navy);border:0;color:#fff}
.kpi.hero .l{color:#b9c6dd}
.kpi .v{font-size:23px;font-weight:800}
.kpi .v small{font-size:12px;font-weight:700;color:var(--green)}
.kpi.hero .v small{color:var(--gold)}
.kpi .l{font-size:9.5px;color:var(--muted);margin-top:2px;letter-spacing:.4px;font-weight:700;text-transform:uppercase}
.kpi .mini{display:flex;gap:5px;margin-top:6px;flex-wrap:wrap}
.kpi .mini span{font-size:9.5px;font-weight:700;padding:1px 5px;border-radius:5px;color:#fff}

table.t{width:100%;border-collapse:collapse;background:var(--surface)}
.t th{text-align:left;font-size:10px;color:var(--muted);font-weight:700;padding:9px 12px;border-bottom:1.5px solid var(--line);background:var(--surface-2);letter-spacing:.3px;text-transform:uppercase;white-space:nowrap}
.t td{font-size:12.5px;padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:middle}
.t tr:last-child td{border-bottom:none}
.t tbody tr:hover td,.t tr.rowlink:hover td{background:var(--surface-2);cursor:pointer}
.t tr.hl td{background:var(--tint)}
.t td small{color:var(--muted);font-size:11px}
.t td.mono,.mono{font-family:var(--mono)}

.b{display:inline-block;font-size:10.5px;font-weight:700;padding:2.5px 10px;border-radius:11px;white-space:nowrap}
.b.red{color:var(--redc);background:var(--red-bg)}
.b.amber{color:var(--amber);background:var(--amber-bg)}
.b.green{color:var(--green);background:var(--green-bg)}
.b.blue{color:var(--bluec);background:var(--blue-bg)}
.b.gray{color:var(--grayc);background:var(--gray-bg)}
.b.purple{color:var(--purplec);background:var(--purple-bg)}
.b.brand{color:var(--brand);background:var(--tint)}
.b.navy{color:#fff;background:var(--navy)}
.tag{display:inline-block;font-size:10px;font-weight:700;padding:2px 8px;border-radius:6px;background:var(--gray-bg);color:var(--ink-soft);border:1px solid var(--line);white-space:nowrap}
.tag.std{background:var(--blue-bg);color:var(--blue2);border-color:#dbe6f7}
:root[data-theme="dark"] .tag.std{border-color:#22406b;color:#8fb6f7}

.btn{display:inline-block;background:var(--brand);color:#fff;font-size:12.5px;font-weight:700;padding:8px 16px;border-radius:9px;border:0;cursor:pointer;font-family:inherit;line-height:1.3}
.btn:hover{background:var(--brand-dark)}
.btn.grad{background:var(--grad)}
.btn.sm{padding:5px 12px;font-size:11.5px}
.btn-o{display:inline-block;border:1px solid var(--line);color:var(--ink-soft);font-size:12.5px;font-weight:600;padding:7px 15px;border-radius:9px;background:var(--surface);cursor:pointer;font-family:inherit;line-height:1.3}
.btn-o:hover{border-color:var(--muted)}
.btn-o.sm{padding:4px 12px;font-size:11.5px}
.link{color:var(--brand);font-weight:700;font-size:12px;cursor:pointer}
.cols{display:flex;gap:16px}
.grow{flex:1;min-width:0}
.mut{color:var(--muted)}.sm{font-size:12px}.xs{font-size:11px}

.filters{display:flex;gap:8px;margin:0 0 14px;flex-wrap:wrap}
.filters button{border:1px solid var(--line);background:var(--surface);font-family:inherit;font-weight:600;font-size:12px;color:var(--ink-soft);padding:6px 14px;border-radius:16px;cursor:pointer}
.filters button.active{background:var(--brand);color:#fff;border-color:var(--brand)}
.filters button .n{opacity:.7;font-weight:800}

.tabs{display:flex;gap:2px;margin-bottom:14px;border-bottom:1.5px solid var(--line);flex-wrap:wrap}
.tabs button{border:0;background:transparent;font-family:inherit;font-weight:600;font-size:12.5px;color:var(--muted);padding:7px 14px;cursor:pointer;border-bottom:2px solid transparent}
.tabs button.active{color:var(--brand);border-bottom-color:var(--brand);font-weight:700}

.note{border:1px solid var(--line);border-radius:10px;padding:11px 14px;font-size:12.5px;line-height:1.6;margin:10px 0;background:var(--surface)}
.note.warn{background:var(--amber-bg);border-color:#f0dcc4}.note.warn b{color:var(--amber)}
.note.err{background:var(--red-bg);border-color:#f6caca}.note.err b{color:var(--redc)}
.note.ok{background:var(--green-bg);border-color:#cdeeda}.note.ok b{color:var(--green)}
.note.ai{background:var(--purple-bg);border-color:#e4d9f7}.note.ai b{color:var(--purplec)}
.note.info{background:var(--tint);border-color:#f4cdd2}.note.info b{color:var(--brand)}
:root[data-theme="dark"] .note.warn,:root[data-theme="dark"] .note.err,:root[data-theme="dark"] .note.ok,:root[data-theme="dark"] .note.ai,:root[data-theme="dark"] .note.info{border-color:var(--line)}

.activity{display:flex;gap:11px;padding:10px 0;border-bottom:1px solid var(--line)}
.activity:last-child{border-bottom:0}
.activity .ai2{width:32px;height:32px;border-radius:9px;background:var(--tint);color:var(--brand);display:flex;align-items:center;justify-content:center;flex:none;font-size:15px}
.activity .ai2.nv{background:var(--blue-bg);color:var(--navy)}
:root[data-theme="dark"] .activity .ai2.nv{color:#9bc0ff}
.activity .ai2.gr{background:var(--green-bg);color:var(--green)}
.activity .at{font-size:12.5px;line-height:1.45}
.activity .at b{font-weight:700}
.activity .at small{display:block;color:var(--muted);font-size:10.5px;margin-top:2px}

.prog{height:8px;background:var(--panel);border-radius:6px;overflow:hidden}
.prog i{display:block;height:100%;background:var(--brand);border-radius:6px}
.prog i.g{background:#0e7a4d}.prog i.a{background:#d97706}.prog i.o{background:#6b7c3a}
.fbar{margin-bottom:12px}
.fbar .fl{display:flex;justify-content:space-between;align-items:baseline;font-size:12.5px;margin-bottom:5px}
.fbar .fl b{font-weight:700}.fbar .fl span{color:var(--muted);font-size:11.5px}

.riskdot{display:inline-flex;width:22px;height:22px;border-radius:7px;color:#fff;font-size:10.5px;font-weight:800;align-items:center;justify-content:center}
.riskdot.C{background:#8b0f18}.riskdot.H{background:#b3252f}.riskdot.M{background:#d97706}.riskdot.L{background:#2769c7}

.conf{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700}
.conf .track{width:46px;height:6px;border-radius:4px;background:var(--panel);overflow:hidden}
.conf .track i{display:block;height:100%;border-radius:4px}
.conf.hi i{background:var(--green)}.conf.md i{background:var(--amber)}.conf.lo i{background:var(--redc)}
.conf.hi{color:var(--green)}.conf.md{color:var(--amber)}.conf.lo{color:var(--redc)}

.diff{font-family:var(--mono);font-size:12px;line-height:1.7;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.diff .dl{display:flex;padding:1px 12px;white-space:pre-wrap;word-break:break-word}
.diff .dl .gut{width:18px;flex:none;color:var(--muted);user-select:none}
.diff .dl.add{background:var(--green-bg)}.diff .dl.add .gut{color:#0e7a4d}
.diff .dl.del{background:var(--red-bg)}.diff .dl.del .gut{color:#b91c1c}
.diff .dl.ctx{color:var(--ink-soft)}
.diff .hdr{background:var(--surface-2);padding:6px 12px;font-size:11px;color:var(--muted);border-bottom:1px solid var(--line);font-family:var(--font);font-weight:700}

.heat{border-collapse:separate;border-spacing:4px;width:100%}
.heat th{font-size:10px;color:var(--muted);font-weight:700;text-transform:uppercase;padding:2px 4px;text-align:center}
.heat td.rl{font-size:11.5px;font-weight:600;color:var(--ink-soft);text-align:left;white-space:nowrap;padding-right:8px}
.heat .cell{height:30px;border-radius:7px;text-align:center;font-size:11px;font-weight:800;color:#fff;vertical-align:middle}
.heat .c-ok{background:#1a9e63}.heat .c-hi{background:#5fbf8c;color:#0b4a30}
.heat .c-mid{background:#f0b64d;color:#5a3d08}.heat .c-lo{background:#e6763f}.heat .c-crit{background:#b3252f}
.heat .c-na{background:var(--panel);color:var(--muted)}

.donut{width:132px;height:132px;flex:none}
.legend{display:flex;flex-direction:column;gap:7px;font-size:12px}
.legend .li{display:flex;align-items:center;gap:8px}
.legend .sw{width:11px;height:11px;border-radius:3px;flex:none}
.legend b{margin-left:auto;font-weight:800}

.agent{border:1px solid var(--line);border-radius:12px;padding:13px 14px;background:var(--surface);display:flex;flex-direction:column;gap:9px}
.agent .top{display:flex;align-items:center;gap:10px}
.agent .ic2{width:38px;height:38px;border-radius:10px;background:var(--grad-navy);color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px;flex:none}
.agent .nm{font-size:13px;font-weight:800}
.agent .ro{font-size:10.5px;color:var(--muted)}
.agent .st{margin-left:auto;font-size:10px;font-weight:800;padding:2px 8px;border-radius:20px;display:flex;align-items:center;gap:5px}
.agent .st.run{background:var(--green-bg);color:var(--green)}
.agent .st.idle{background:var(--panel);color:var(--muted)}
.agent .st.wait{background:var(--amber-bg);color:var(--amber)}
.dotpulse{width:6px;height:6px;border-radius:50%;background:currentColor;display:inline-block;animation:pulse 1.4s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}
.agent .meta{display:flex;justify-content:space-between;font-size:10.5px;color:var(--muted);border-top:1px solid var(--line);padding-top:7px;gap:6px;flex-wrap:wrap}
.agent .meta b{color:var(--ink-soft)}

.trace{list-style:none;margin:0;padding:0;position:relative}
.trace li{position:relative;padding:0 0 12px 22px;font-size:12px;line-height:1.5}
.trace li:before{content:"";position:absolute;left:5px;top:3px;width:9px;height:9px;border-radius:50%;background:var(--brand);border:2px solid var(--surface);box-shadow:0 0 0 1.5px var(--brand)}
.trace li:after{content:"";position:absolute;left:9px;top:12px;bottom:-2px;width:1.5px;background:var(--line)}
.trace li:last-child:after{display:none}
.trace li b{font-weight:700}
.trace li small{color:var(--muted);font-size:10.5px}
.trace li .tool{font-family:var(--mono);font-size:10.5px;background:var(--surface-2);padding:1px 6px;border-radius:5px;color:var(--ink-soft)}

.auto{display:flex;gap:4px;align-items:center}
.auto .lv{width:26px;height:24px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;background:var(--panel);color:var(--muted);cursor:pointer}
.auto .lv.on{background:var(--navy);color:#fff}
.auto .lv.cur{background:var(--brand);color:#fff;box-shadow:0 0 0 3px var(--tint)}

.canvas{position:relative;background:var(--surface-2);height:380px;border-radius:12px;border:1px solid var(--line);overflow:hidden}
.canvas .cgrid{position:absolute;inset:0;background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);background-size:34px 34px;opacity:.6}
.node{position:absolute;width:118px;text-align:center;z-index:2;cursor:pointer}
.node .nbox{width:60px;height:60px;margin:0 auto 6px;background:var(--surface);border:2px solid var(--line);border-radius:15px;display:flex;align-items:center;justify-content:center;font-size:24px;position:relative;box-shadow:0 2px 6px rgba(20,20,40,.07)}
.node.sel .nbox{border-color:var(--brand);box-shadow:0 0 0 4px var(--tint)}
.node .nlabel{font-size:11.5px;font-weight:700}
.node .nip{font-size:10px;color:var(--muted)}
.node .stdot{position:absolute;top:-4px;right:-4px;width:13px;height:13px;border-radius:50%;border:2px solid var(--surface)}
.stdot.up{background:#0e7a4d}.stdot.warn{background:#e0a800}.stdot.down{background:#b3252f}
.wires{position:absolute;inset:0;width:100%;height:100%;z-index:1;overflow:visible}
.zonelbl{position:absolute;font-size:9.5px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--muted);background:var(--surface);padding:3px 9px;border-radius:10px;border:1px solid var(--line);z-index:2}

.chatwrap{display:flex;flex-direction:column;gap:12px;padding:4px 2px}
.bub{max-width:82%;padding:12px 15px;border-radius:14px;font-size:12.5px;line-height:1.6}
.bub.user{align-self:flex-end;background:var(--grad);color:#fff;border-bottom-right-radius:5px}
.bub.bot{align-self:flex-start;background:var(--surface);border:1px solid var(--line);border-bottom-left-radius:5px;width:82%}
.bub.bot b{color:var(--brand)}
.cite{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;font-weight:700;color:var(--blue2);background:var(--blue-bg);border:1px solid #dbe6f7;border-radius:6px;padding:1px 6px;margin:0 2px;cursor:pointer}
:root[data-theme="dark"] .cite{border-color:#22406b}
.cite.f{color:var(--brand);background:var(--tint);border-color:#f4cdd2}
.cite.k{color:var(--purplec);background:var(--purple-bg);border-color:#e4d9f7}
.srcline{font-size:10.5px;color:var(--muted);margin-top:9px;border-top:1px dashed var(--line);padding-top:7px}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.chips span{border:1px solid var(--line);border-radius:16px;padding:6px 13px;font-size:11.5px;color:var(--ink-soft);background:var(--surface);cursor:pointer}
.chips span:hover{border-color:var(--brand);color:var(--brand)}
.chatin{display:flex;gap:10px;margin-top:12px}
.chatin .in{flex:1;border:1.5px solid var(--brand);border-radius:11px;padding:11px 14px;font-size:12.5px;color:var(--ink);background:var(--surface);font-family:inherit}
.chatin .in::placeholder{color:var(--muted)}

.intgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.intile{border:1px solid var(--line);border-radius:11px;padding:12px 13px;background:var(--surface)}
.intile b{font-size:12.5px;display:flex;align-items:center;gap:8px}
.intile small{color:var(--muted);font-size:11px;display:block;margin-top:4px;line-height:1.5}

.grid2{display:grid;grid-template-columns:1.6fr 1fr;gap:16px;margin-top:16px}
.grid2.even{grid-template-columns:1fr 1fr}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.mt{margin-top:16px}

/* ---------------------------------------------------------------------------
   FORMS (new — for the modal forms this app adds)
   --------------------------------------------------------------------------- */
.field{margin-bottom:13px}
.field label{display:block;font-size:11px;font-weight:700;color:var(--ink-soft);margin-bottom:5px;letter-spacing:.2px}
.field .hint{font-size:10.5px;color:var(--muted);margin-top:4px}
.input,.select,.textarea{width:100%;border:1px solid var(--line);border-radius:9px;padding:9px 12px;font-size:12.5px;font-family:inherit;color:var(--ink);background:var(--surface)}
.input:focus,.select:focus,.textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--tint)}
.textarea{resize:vertical;min-height:74px}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.seg-radio{display:flex;gap:6px;flex-wrap:wrap}
.seg-radio label{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:8px;padding:7px 12px;font-size:12px;font-weight:600;cursor:pointer;background:var(--surface);margin:0}
.seg-radio input{accent-color:var(--brand)}
.seg-radio label:has(input:checked){border-color:var(--brand);background:var(--tint);color:var(--brand)}

/* ---------------------------------------------------------------------------
   MODAL + TOAST (new — injected by components.js)
   --------------------------------------------------------------------------- */
.modal-scrim{position:fixed;inset:0;background:rgba(10,14,25,.5);backdrop-filter:blur(2px);z-index:200;display:flex;align-items:flex-start;justify-content:center;padding:60px 16px;overflow-y:auto;opacity:0;transition:opacity .18s}
.modal-scrim.show{opacity:1}
.modal{background:var(--surface);border-radius:16px;box-shadow:var(--shadow);width:100%;max-width:560px;border:1px solid var(--line);transform:translateY(10px);transition:transform .18s}
.modal.lg{max-width:760px}
.modal-scrim.show .modal{transform:none}
.modal-head{display:flex;align-items:flex-start;gap:12px;padding:18px 20px 12px}
.modal-head .mh-ic{width:38px;height:38px;border-radius:10px;background:var(--tint);color:var(--brand);display:flex;align-items:center;justify-content:center;flex:none;font-size:18px}
.modal-head h3{margin:0;font-size:16px;font-weight:800}
.modal-head .mh-sub{font-size:12px;color:var(--muted);margin-top:2px;line-height:1.45}
.modal-head .mh-x{margin-left:auto;background:none;border:0;font-size:20px;color:var(--muted);cursor:pointer;line-height:1;padding:2px 6px}
.modal-body{padding:4px 20px 8px;font-size:12.5px;line-height:1.55}
.modal-foot{display:flex;gap:10px;justify-content:flex-end;padding:14px 20px 18px;border-top:1px solid var(--line);margin-top:10px}

.toast-stack{position:fixed;right:20px;bottom:84px;display:flex;flex-direction:column;gap:10px;z-index:300;max-width:340px}
.toast{background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--brand);border-radius:11px;padding:11px 14px;font-size:12.5px;box-shadow:var(--shadow);cursor:pointer;animation:toast-in .25s}
.toast.ok{border-left-color:var(--green)}.toast.warn{border-left-color:var(--amber)}.toast.err{border-left-color:var(--redc)}.toast.info{border-left-color:var(--brand)}
.toast strong{font-weight:800}
.toast.leaving{opacity:0;transform:translateX(20px);transition:.3s}
@keyframes toast-in{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:none}}

.proto-badge{position:fixed;left:14px;bottom:14px;z-index:120;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:5px 12px;font-size:10.5px;font-weight:700;color:var(--muted);display:flex;align-items:center;gap:7px;box-shadow:0 4px 14px rgba(20,20,40,.12)}
.proto-badge .dot{width:7px;height:7px;border-radius:50%;background:var(--gold)}

/* reveal animation (ai-engine.revealList) */
.reveal-item{opacity:0;transform:translateY(6px)}
.reveal-item.shown{opacity:1;transform:none;transition:opacity .3s,transform .3s}
.ai-thinking{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}
.ai-dots{display:inline-flex;gap:3px}
.ai-dots i{width:5px;height:5px;border-radius:50%;background:var(--brand);animation:pulse 1s infinite}
.ai-dots i:nth-child(2){animation-delay:.15s}.ai-dots i:nth-child(3){animation-delay:.3s}
.ai-caret{display:inline-block;width:2px;height:1em;background:var(--brand);margin-left:1px;vertical-align:text-bottom;animation:pulse .8s infinite}

/* ---------------------------------------------------------------------------
   PUBLIC LANDING
   --------------------------------------------------------------------------- */
.pub-nav{position:sticky;top:0;z-index:50;background:var(--navy);color:#fff;display:flex;align-items:center;gap:14px;padding:0 26px;height:60px}
.pub-nav .brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:17px}
.pub-nav .brand .p{color:var(--gold)}
.pub-nav .sp{flex:1}
.pub-nav a.lk{font-size:13px;color:#c6cbd4;font-weight:600}
.pub-nav a.lk:hover{color:#fff}
.pub-hero{background:var(--grad-navy);color:#fff;padding:70px 26px 90px;position:relative;overflow:hidden}
.pub-hero .wrap{max-width:1080px;margin:0 auto;position:relative;z-index:2}
.pub-hero .eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.4px;color:var(--gold);background:rgba(253,162,43,.12);border:1px solid rgba(253,162,43,.3);border-radius:20px;padding:5px 13px;margin-bottom:20px}
.pub-hero h1{font-size:44px;line-height:1.1;margin:0 0 18px;font-weight:800;max-width:16ch}
.pub-hero p.lead{font-size:16px;color:#c8d2e4;max-width:60ch;line-height:1.6;margin:0 0 28px}
.pub-hero .cta-row{display:flex;gap:12px;flex-wrap:wrap}
.pub-hero .btn-lg{padding:13px 24px;font-size:14px;border-radius:11px}
.pub-hero .glow{position:absolute;border-radius:50%;filter:blur(90px);opacity:.4}
.pub-hero .glow.a{width:420px;height:420px;background:var(--brand);top:-120px;right:-80px}
.pub-hero .glow.b{width:340px;height:340px;background:var(--gold);bottom:-160px;left:-60px;opacity:.22}
.pub-wrap{max-width:1080px;margin:0 auto;padding:0 26px}
.pub-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:-56px auto 0;position:relative;z-index:3}
.pub-stat{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px 20px;box-shadow:var(--shadow)}
.pub-stat .v{font-size:30px;font-weight:800;color:var(--brand)}
.pub-stat .l{font-size:11px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.3px;margin-top:4px}
.pub-sec{padding:64px 0 20px}
.pub-sec h2{font-size:28px;font-weight:800;margin:0 0 8px}
.pub-sec .sub{color:var(--muted);font-size:14px;max-width:60ch;line-height:1.6;margin:0 0 30px}
.feat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.feat{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:22px}
.feat .fi{width:44px;height:44px;border-radius:12px;background:var(--tint);color:var(--brand);display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.feat h3{margin:0 0 7px;font-size:15px;font-weight:800}
.feat p{margin:0;font-size:12.5px;color:var(--muted);line-height:1.6}
.pub-foot{background:var(--navy);color:#a8b3c6;padding:34px 26px;margin-top:60px;font-size:12px;text-align:center}
.card.interactive{cursor:pointer;transition:transform .15s,box-shadow .15s;display:flex;flex-direction:column;gap:8px}
.card.interactive:hover{transform:translateY(-3px);box-shadow:var(--shadow)}

/* ---------------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------------- */
@media(max-width:1000px){
  .kpis{flex-wrap:wrap}.grid2,.grid2.even{grid-template-columns:1fr}.grid3{grid-template-columns:1fr}
  .sb{display:none}.intgrid{grid-template-columns:1fr}.cols{flex-direction:column}
  .pub-stats,.feat-grid{grid-template-columns:1fr 1fr}.pub-hero h1{font-size:32px}
  .row2{grid-template-columns:1fr}
}
@media(max-width:600px){
  .pub-stats,.feat-grid{grid-template-columns:1fr}.content{padding:16px 14px 80px}
}
