/* Healthcare Command Center demo: app shell and screens, on the GTech tokens in base.css */

.gap8 { gap: 8px; }
.crit-t { color: var(--crit) !important; } .warn-t { color: var(--warn) !important; } .ok-t { color: var(--ok) !important; }
.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--surface-3); padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.vbig { font-size: 22px; }
.xl { font-size: 34px; font-weight: 600; }
.ok-ic { color: var(--ok); }
.ico.back { transform: scaleX(-1); }
[dir="rtl"] .ico.back { transform: none; }
.boot { display: grid; place-items: center; height: 100vh; font-weight: 600; letter-spacing: .2em; color: var(--ink-3); }

/* ---------- Shell */
.app { min-height: 100vh; }
.hdr {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px; height: 62px; padding: 0 18px;
  background: var(--header-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--heading); text-decoration: none !important; flex: none; }
.brand-t { display: flex; flex-direction: column; line-height: 1.15; }
.brand-t b { font-size: 13.5px; letter-spacing: -.01em; max-width: 122px; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border-radius: 999px; color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none !important; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.on { background: var(--accent-soft); color: var(--accent); }
[data-theme="light"] .nav a.on { color: var(--plum); }
.hdr-r { display: flex; align-items: center; gap: 8px; flex: none; }
.search { position: relative; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); }
.search-in { border: 0; background: transparent; outline: none; width: 170px; font-size: 12.5px; color: var(--ink); }
.search-r { position: absolute; top: 40px; inset-inline-end: 0; width: 360px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; }
.search-i { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; border: 0; background: none; border-radius: 10px; text-align: start; font-size: 13px; }
.search-i:hover { background: var(--surface-2); }
.clock { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; padding: 0 6px; }
.clock-t { font-size: 17px; font-weight: 600; color: var(--heading); letter-spacing: .01em; grid-row: span 2; }
.clock-d { color: var(--ink-2); white-space: nowrap; }
.clock-s { justify-self: start; height: 18px; font-size: 10px; }
.me { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); max-width: 210px; }
[dir="rtl"] .me { padding: 0 4px 0 10px; }
.me-t { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; min-width: 0; }
.demo-badge { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); box-shadow: var(--shadow-sm); pointer-events: none; }
.guide { display: flex; align-items: center; gap: 10px; max-width: 1480px; margin: 12px auto 0; padding: 8px 10px 8px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); border: 1px solid var(--line); width: calc(100% - 40px); }
.guide > .ico { color: var(--mark); }

main { padding-bottom: 88px; }
.page { max-width: 1480px; margin: 0 auto; padding: 18px 20px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-h h1 { font-size: 24px; max-width: 820px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tscroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.table.tickets td { padding: 9px 8px; }
.table tr.row-crit td:first-child { box-shadow: inset 3px 0 0 var(--crit); }
[dir="rtl"] .table tr.row-crit td:first-child { box-shadow: inset -3px 0 0 var(--crit); }
.table .c, .table th.c { text-align: center; }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; }
.mini { margin: 0; padding-inline-start: 18px; }
.mini li { margin: 2px 0; }

/* ---------- Sign in */
.signin { max-width: 1240px; margin: 0 auto; padding: 32px 20px 40px; }
.hero h1 { font-size: 30px; max-width: 820px; margin-top: 4px; }
.loop { display: flex; flex-wrap: wrap; gap: 8px; }
.loop-s { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
[dir="rtl"] .loop-s { padding: 0 6px 0 14px; }
.loop-s b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 11px; }
.sgroup { padding-top: 6px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pcard { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-align: start; transition: border-color .15s, transform .12s, box-shadow .15s; min-width: 0; }
.pcard:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.pcard.on { border-color: var(--accent); background: var(--accent-soft); }
.pcard.big { padding: 14px 16px; }

/* ---------- Cockpit */
.master { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.master.m-crit { border-color: var(--crit); box-shadow: 0 0 0 1px var(--crit), var(--shadow); }
.master.m-warn { border-color: var(--warn); }
.master-l { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.vsep { width: 1px; height: 36px; background: var(--line); }
.mstat { font-size: 13px; color: var(--ink-3); }
.mstat b { font-size: 18px; color: var(--ink-2); margin-inline-end: 2px; }
.mstat.crit b, .mstat.crit { color: var(--crit); }
.mstat.warn b, .mstat.warn { color: var(--warn); }

.vitals { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.dial { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 12px 10px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: start; box-shadow: var(--shadow-sm); min-width: 0; transition: border-color .2s, box-shadow .2s; }
.dial:hover { border-color: var(--line-2); }
.dial-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 24px; }
.dial-t { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.dial-svg { width: 100%; height: auto; max-height: 110px; }
.dial .arc-bg { fill: none; stroke: var(--muted-arc); stroke-width: 10; stroke-linecap: round; }
.dial .arc { fill: none; stroke-width: 10; opacity: .22; }
.dial .arc.ok { stroke: var(--ok); } .dial .arc.warn { stroke: var(--warn); } .dial .arc.crit { stroke: var(--crit); }
.dial .arc2 { fill: none; stroke: var(--info); stroke-width: 5; stroke-linecap: round; opacity: .7; }
.dial .needle { stroke: var(--ink-3); stroke-width: 3; stroke-linecap: round; transition: all .6s var(--ease); }
.dial .hub { fill: var(--ink-3); }
.dial-v { margin-top: -6px; font-size: 24px; font-weight: 600; color: var(--ink-2); letter-spacing: -.02em; line-height: 1.1; }
.dial-v small { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-inline-start: 4px; }
.dial-s { font-size: 11.5px; color: var(--ink-3); line-height: 1.35; min-height: 31px; }
.dial-d { color: var(--ink-3); margin-top: 2px; }
/* Dark when normal: only exceptions light up. */
.dial.st-ok .arc { opacity: .12; }
.dial.st-warn { border-color: var(--warn); }
.dial.st-warn .needle, .dial.st-warn .hub { stroke: var(--warn); fill: var(--warn); }
.dial.st-warn .dial-v { color: var(--warn-ink); }
.dial.st-crit { border-color: var(--crit); box-shadow: 0 0 0 1px var(--crit), 0 10px 30px -14px var(--crit); }
.dial.st-crit .needle, .dial.st-crit .hub { stroke: var(--crit); fill: var(--crit); }
.dial.st-crit .dial-v { color: var(--crit); }
.dial.st-crit .arc { opacity: .35; }
.dial.st-watch .dial-v { color: var(--ink); }
.dial.flagged { border-style: dashed; border-color: var(--crit); }
.dial.front .dial-t { color: var(--heading); }

.cgrid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.propose { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); border: 1px dashed var(--warn); background: var(--warn-bg); margin-top: 12px; }
.course { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.course .v { font-size: 19px; }
.hz { display: flex; flex-direction: column; gap: 2px; }
.hz-i { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; }
.hz-i:hover { background: var(--surface-2); }
.hz-i.crit .hz-t { color: var(--crit); font-weight: 600; }
.hz-i.advice { opacity: .8; }

/* Cash strip (cockpit course) and the CFO station */
:root { --seq-1: #BFE7E3; --seq-2: #7FD0C9; --seq-3: #2AB7AE; --seq-4: #1A7F78; }
[data-theme="dark"] { --seq-1: #1F5E5A; --seq-2: #24918A; --seq-3: #4CC7BE; --seq-4: #A9E6E1; }
.ico.fwd { transform: none; }
[dir="rtl"] .ico.fwd { transform: scaleX(-1); }
.cashstrip { display: flex; align-items: center; gap: 16px; width: 100%; margin-top: 14px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); color: inherit; text-align: start; flex-wrap: wrap; }
.cashstrip:hover { border-color: var(--line-2); }
.cashstrip.st-warn { border-color: var(--warn); }
.cashstrip.st-crit, .cashstrip.st-flag { border-color: var(--crit); }
.cashstrip .cs-i { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 110px; }
.cashstrip .ico { flex: none; }
.kpis .kc-warn { border-color: var(--warn); } .kpis .kc-warn .v { color: var(--warn-ink); }
.kpis .kc-crit { border-color: var(--crit); } .kpis .kc-crit .v { color: var(--crit); }
.stagebar { display: flex; gap: 2px; height: 22px; border-radius: 6px; overflow: hidden; background: var(--surface); }
.stagebar .sg { min-width: 3px; }
.sg-1 { background: var(--seq-1); } .sg-2 { background: var(--seq-2); } .sg-3 { background: var(--seq-3); } .sg-4 { background: var(--seq-4); }
.sg-ok { background: var(--ok); } .sg-warn { background: var(--warn); } .sg-crit { background: var(--crit); }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; }
.lg-bar { width: 10px; height: 10px; border-radius: 2px; background: var(--mark); }
.lg-bar.fut { opacity: .45; }
.lg-tick { width: 14px; height: 2px; background: var(--ink); }
.lg-plan { width: 16px; border-top: 2px dashed var(--ink-3); }
.fc { width: 100%; height: auto; display: block; margin-top: 8px; direction: ltr; }
.fc-base { stroke: var(--line-2); stroke-width: 1; }
.fc-plan { stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 5 4; }
.fc-now { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 3; }
.fc-l, .fc-x, .fc-v { font-size: 10.5px; fill: var(--ink-2); font-family: var(--font); }
.fc-x { text-anchor: middle; fill: var(--ink-3); }
.fc-v { text-anchor: middle; fill: var(--ink); font-weight: 600; }
.fc-hit { fill: transparent; }
.fc-bar { fill: var(--mark); }
.fc-c.fut .fc-bar { fill: var(--mark); opacity: .45; }
.fc-pull { fill: var(--mark); }
.fc-rng { stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
.fc-tick { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.fc-c:hover .fc-hit { fill: var(--surface-3); opacity: .6; }
.table.score td { padding: 9px 8px; }
.critstrip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; }
.critstrip .eyebrow { margin-inline-end: 4px; }
.critchip { display: flex; align-items: center; gap: 10px; min-width: 260px; flex: 1 1 260px; padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: inherit; text-align: start; }
.critchip > span { display: flex; flex-direction: column; gap: 1px; }
.critchip.calm .ico { color: var(--ok); }
.critchip.lit { border-color: var(--crit); background: var(--crit-bg); box-shadow: 0 0 0 1px var(--crit); }
.critchip.lit .ico { color: var(--crit); }
.critchip:disabled { cursor: default; }
.tc-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tc-filters .input { flex: 1 1 220px; min-width: 0; }
.tc-filters .select { width: auto; }
.tc-bulk { margin: 12px 0; padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-2); }
.table.tc tr.sub td { background: var(--surface-2); }
.table.tc td.click { cursor: pointer; }
.tc-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tc-bulk .select { width: auto; min-width: 200px; }
.list .li { text-align: start; }
@media (max-width: 1080px) { .tc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hz-t { width: 104px; flex: none; color: var(--ink-3); }
.apgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ap { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }
.ap-v { font-size: 19px; font-weight: 600; color: var(--heading); }
.sitelv { display: flex; flex-wrap: wrap; gap: 6px; }
.sitelv-i { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); max-width: 200px; }
[dir="rtl"] .sitelv-i { padding: 0 4px 0 10px; }
.sitelv-i .lvl { padding: 0 2px; }

/* Decision card */
.decision { padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--warn); background: linear-gradient(180deg, var(--warn-bg), transparent 120px), var(--surface); }
.decision + .decision { margin-top: 12px; }
.decision.compact { padding: 12px; }
.plan { display: flex; flex-direction: column; gap: 6px; }
.plan-r { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.plan-r.off { opacity: .5; }
.nosar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--ok-bg); color: var(--ok-ink); }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.key { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r-sm); border: 1px dashed var(--line-2); color: var(--ink-2); }
.key.on { border-style: solid; border-color: var(--ok); background: var(--ok-bg); color: var(--ok-ink); }

/* Feed / brief */
.feed { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; }
.feed-i { display: flex; align-items: flex-start; gap: 10px; padding: 7px 4px; border: 0; background: none; text-align: start; border-bottom: 1px solid var(--line); width: 100%; }
button.feed-i:hover { background: var(--surface-2); }
.feed-i:last-child { border-bottom: 0; }
.feed-i .num { width: 40px; flex: none; padding-top: 2px; }
.feed-k { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.feed-k.open, .feed-k.reopen { background: var(--warn); }
.feed-k.close, .feed-k.approve, .feed-k.outcome { background: var(--ok); }
.feed-k.escalate, .feed-k.severity { background: var(--crit); }
.feed-k.key, .feed-k.decision, .feed-k.level { background: var(--info); }
.feed-k.step, .feed-k.ack, .feed-k.verify { background: var(--mark); }

/* Huddle */
.huddle { padding: 14px 16px; margin-bottom: 16px; border-radius: var(--r-lg); background: var(--info-bg); border: 1px solid var(--info); color: var(--ink); }
.huddle > .row-b > .row > .ico { color: var(--info); }

/* ---------- Network map */
.netmap { position: relative; }
.netmap svg { width: 100%; height: auto; display: block; max-height: 380px; }
.netmap.compact svg { max-height: 300px; }
.ksa { fill: var(--surface-3); stroke: var(--line-2); stroke-width: 1.2; }
.city { font-size: 11px; fill: var(--ink-3); }
.node circle { fill: var(--ok); stroke: var(--surface); stroke-width: 2; cursor: pointer; }
.node.l2 circle { fill: var(--warn); } .node.l3 circle, .node.l4 circle { fill: var(--crit); }
.node .halo { fill: none !important; stroke: currentColor; stroke-width: 2; opacity: .5; animation: glow 2s ease-in-out infinite; }
.node.l2 .halo { stroke: var(--warn); } .node.l3 .halo, .node.l4 .halo { stroke: var(--crit); }
.node.k-dc circle, .node.k-plant circle, .node.k-virtual circle, .node.k-home circle { fill: var(--info); }
.node .blind { fill: none !important; stroke: var(--crit) !important; stroke-dasharray: 3 3; }
.maptip { position: absolute; top: 8px; inset-inline-start: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.maplegend { display: flex; flex-wrap: wrap; gap: 10px; color: var(--ink-3); margin: 4px 0 10px; }
.lgd { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 5px; vertical-align: -1px; }
.lgd.l1 { background: var(--ok); } .lgd.l2 { background: var(--warn); } .lgd.l3 { background: var(--crit); } .lgd.dc { background: var(--info); }
.lgd.rec { background: var(--info); border-radius: 3px; } .lgd.ready { background: var(--warn); border-radius: 3px; } .lgd.moving { background: var(--ok); border-radius: 3px; }

/* ---------- Hub */
.hubgrid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.6fr); gap: 16px; align-items: start; }
.minivitals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mv { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.mv .num { font-size: 16px; }
.mv.st-warn { border-color: var(--warn); } .mv.st-warn .num { color: var(--warn); }
.mv.st-crit { border-color: var(--crit); } .mv.st-crit .num { color: var(--crit); }

/* Wall: two rows of six */
.app-wall { background: #12040B; }
.wall { min-height: 100vh; padding: 14px; display: flex; flex-direction: column; gap: 12px; color: #F4EAF0; }
[data-theme="light"] .wall { color: var(--ink); background: var(--bg); }
.wall-h { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.wall-clock { font-size: 24px; font-weight: 600; }
.wall-h .btn { margin-inline-start: auto; }
.wall-g { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.wt .dial { border: 0; box-shadow: none; padding: 0; height: 100%; background: transparent; }
.wt .dial-v { font-size: 34px; }
.w2 { grid-column: span 2; }
.wt-h { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.wlist { display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.wl { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.wl.critical { box-shadow: inset 3px 0 0 var(--crit); }
.wready { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.wr { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 8px; font-size: 13px; background: var(--surface-2); }
.wr.ok { color: var(--ok); } .wr.pend { color: var(--ink-2); } .wr.no { color: var(--warn); background: var(--warn-bg); } .wr.def { color: var(--ink-3); }
.wbig { font-size: 52px; font-weight: 600; line-height: 1; color: var(--heading); margin: 12px 0 6px; }
.wbig small { font-size: 20px; color: var(--ink-3); }
.wfeeds { display: flex; flex-wrap: wrap; gap: 6px; }
.wf { width: 18px; height: 18px; border-radius: 5px; }
.wf.up { background: var(--ok); opacity: .7; } .wf.down { background: var(--crit); animation: glow 1.2s infinite; }
.wall-badge { position: static; align-self: flex-start; pointer-events: none; }

/* ---------- Site and frontline */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpis .card { box-shadow: var(--shadow-sm); }
.accentk { border-color: var(--mark) !important; background: linear-gradient(180deg, var(--teal-mist), var(--surface) 70%) !important; }
[data-theme="dark"] .accentk { background: linear-gradient(180deg, rgba(42, 183, 174, .12), var(--surface) 70%) !important; }
.beds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.ward .bar { margin-top: 4px; }
.orb tr.def td { opacity: .5; }
.orb tr.focus td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.ri { display: inline-grid; place-items: center; min-width: 26px; height: 22px; border-radius: 6px; font-size: 10.5px; padding: 0 4px; }
.ri.ok { background: var(--ok-bg); color: var(--ok-ink); }
.ri.no { background: var(--warn-bg); color: var(--warn-ink); font-weight: 600; }
.ri.pend { background: var(--surface-3); color: var(--ink-2); }
.bays { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.bay { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 48px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-3); }
.bay.rec { background: var(--info-bg); color: var(--info-ink); border-color: transparent; }
.bay.ready { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn); }
.bay.moving { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; }
.fcard { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); text-align: start; box-shadow: var(--shadow); }
.fcard.critical { border-color: var(--crit); box-shadow: 0 0 0 1px var(--crit), var(--shadow); }
.fcard-t { font-size: 19px; font-weight: 600; color: var(--heading); }

/* ---------- Ticket workspace */
.crumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.tk-h { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tk-h h1 { font-size: 22px; }
.tk-own { min-width: 280px; padding-inline-start: 18px; border-inline-start: 1px solid var(--line); }
.ladder { display: flex; flex-wrap: wrap; gap: 4px; }
.rung { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-3); white-space: nowrap; }
.rung.on { background: var(--accent); color: var(--accent-ink); }
.rung.past { text-decoration: line-through; }
.watch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding: 10px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px dashed var(--line-2); color: var(--ink-2); }
.tk-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.ackbar { padding: 10px 12px; margin-bottom: 10px; border-radius: var(--r-sm); background: var(--warn-bg); color: var(--warn-ink); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.step { display: flex; gap: 12px; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); }
.step.done { background: var(--ok-bg); border-color: transparent; }
.step.declined { background: var(--surface-3); }
.step.opt:not(.done) { border-style: dashed; }
.step-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--surface); border: 1px solid var(--line-2); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.step.done .step-n { background: var(--ok); color: #fff; border-color: var(--ok); }
.verifybar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.closedbar { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px; border-radius: var(--r-sm); background: var(--surface-2); }
.closedbar.closed { background: var(--ok-bg); color: var(--ok-ink); }
.ready { display: flex; flex-direction: column; gap: 4px; }
.ready-i { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; }
.ready-i.ok { background: var(--ok-bg); color: var(--ok-ink); }
.ready-i.no { background: var(--warn-bg); color: var(--warn-ink); }
.srcs { display: flex; flex-direction: column; gap: 6px; }
.src { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.src.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.src.warn.on { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn); }
.opt { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.opt.dis { opacity: .6; cursor: not-allowed; }
.opt input, .src input { accent-color: var(--accent); }
.drag { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pool { display: flex; flex-direction: column; gap: 6px; }
.nurse { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); cursor: grab; }
.nurse.used { opacity: .45; }
.slots { padding: 12px; border-radius: var(--r-sm); border: 2px dashed var(--line-2); background: var(--surface); min-height: 120px; }
.slots.over { border-color: var(--accent); background: var(--accent-soft); }
.whatif { padding: 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }

/* ---------- Mobile */
.mob-wrap { display: flex; gap: 28px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.phone { position: relative; width: 390px; max-width: 100%; height: 800px; border-radius: 48px; padding: 14px; background: #0C0307; box-shadow: var(--shadow-lg), inset 0 0 0 2px #3a1a2a; display: flex; flex-direction: column; overflow: hidden; }
.phone > * { background: var(--bg); }
.phone-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 22px 6px; border-radius: 36px 36px 0 0; font-size: 13px; font-weight: 600; }
.phone-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 18px 10px; }
.phone-tabs { display: flex; gap: 4px; padding: 0 12px 8px; }
.phone-tabs button { flex: 1; height: 32px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.phone-tabs button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.phone-b { flex: 1; overflow-y: auto; padding: 4px 12px 16px; border-radius: 0 0 36px 36px; }
.phone .decision .keys { grid-template-columns: 1fr; }
.phone .decision .btn.lg { width: 100%; }
.phone-push { position: absolute; top: 58px; inset-inline: 22px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface) !important; box-shadow: var(--shadow-lg); text-align: start; animation: fade-up .35s var(--ease) both; }
.mb { display: flex; flex-direction: column; gap: 8px; }
.mb-hero { padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.mb-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.inbox { display: flex; flex-direction: column; gap: 8px; }
.msg { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); text-align: start; }
.previews { width: 380px; max-width: 100%; }
.teams-m { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.teams-m:last-child { border-bottom: 0; }
.sms-m { padding: 10px 12px; margin: 6px 0; border-radius: 16px 16px 16px 4px; background: var(--surface-3); max-width: 90%; }

/* ---------- Ledger, horizon, engine room */
.engrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.engrow:last-child { border-bottom: 0; }
.gate { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .6; }
.hzline { position: relative; height: 130px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.hzday { position: absolute; top: 0; bottom: 0; border-inline-start: 1px dashed var(--line-2); padding: 4px 6px; }
.hznow { position: absolute; top: 0; bottom: 0; border-inline-start: 2px solid var(--accent); padding: 4px 6px; color: var(--accent); font-weight: 600; }
.hzdot { position: absolute; width: 14px; height: 14px; margin-inline-start: -7px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 3px var(--surface-2); }
.hzdot.crit { background: var(--crit); }
.hzdot.advice { background: transparent; border: 2px dashed var(--warn); }
.audit td { vertical-align: top; }

/* ---------- Overlays */
.scrim { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: var(--scrim); }
.modal { width: 560px; max-width: 100%; max-height: calc(100vh - 40px); display: flex; flex-direction: column; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.modal.wide { width: 980px; }
.modal-h { padding: 18px 20px 10px; }
.modal-b { padding: 0 20px 20px; overflow-y: auto; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 70; width: 380px; max-width: 100%; overflow-y: auto; padding: 18px; background: var(--surface); border-inline-start: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.dsec { padding: 14px 0; border-bottom: 1px solid var(--line); }
.dsec:last-child { border-bottom: 0; }
.toasts { position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 10px 14px; border-radius: var(--r-sm); background: var(--charcoal); color: #fff; font-size: 13px; box-shadow: var(--shadow-lg); max-width: 360px; }
.toast.ok { background: var(--ok); }
.spark path { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark.ok path { stroke: var(--ok); } .spark.warn path { stroke: var(--warn); }


/* ---------- Ask your data */
.askgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.askhero h2 { font-size: 18px; }
.spark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--mark); flex: none; }
.turn { display: flex; flex-direction: column; gap: 8px; }
.qbub { align-self: flex-end; display: flex; gap: 10px; align-items: baseline; max-width: 80%; padding: 10px 14px; border-radius: 18px 18px 4px 18px; background: var(--accent); color: var(--accent-ink); }
[dir="rtl"] .qbub { border-radius: 18px 18px 18px 4px; }
[data-theme="light"] .qbub { background: var(--plum-deep); color: #fff; }
.qbub .faint { color: inherit; opacity: .7; }
.abub { padding: 16px 18px; }
.ans-s { font-size: 15px; font-weight: 500; color: var(--heading); line-height: 1.45; }
.askbar { position: sticky; bottom: 12px; display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.askbar .input { border: 0; box-shadow: none !important; background: transparent; border-radius: 999px; }
.askmini { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--mark); }
.askmini input { border: 0; outline: none; background: transparent; width: 190px; font-size: 12.5px; color: var(--ink); }
.cat { position: sticky; top: 78px; max-height: calc(100vh - 100px); overflow-y: auto; }
.catq { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 10px; border-radius: 10px; border: 1px solid transparent; background: none; text-align: start; width: 100%; }
.catq:hover { background: var(--surface-2); border-color: var(--line); }
.gov { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.how summary { cursor: pointer; color: var(--ink-2); }
.sql { margin: 10px 0 0; padding: 12px; border-radius: var(--r-sm); background: var(--surface-3); color: var(--ink); font: 12px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; overflow-x: auto; }
.kbig { font-size: 44px; font-weight: 600; color: var(--heading); letter-spacing: -.02em; line-height: 1.1; }
.kbig.sm { font-size: 32px; }
.hbars { display: flex; flex-direction: column; gap: 6px; }
.hb { display: grid; grid-template-columns: minmax(90px, 200px) 1fr auto; align-items: center; gap: 10px; }
.hbars.compact .hb { grid-template-columns: minmax(70px, 120px) 1fr auto; }
.hb-l { font-size: 12.5px; color: var(--ink-2); }
.hb-t { height: 14px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
[data-theme="light"] .hb-t i { background: var(--plum); }
.hb-v { font-size: 12.5px; font-weight: 600; min-width: 56px; text-align: end; }
.lchart { width: 100%; height: auto; display: block; }
.lchart .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
[data-theme="light"] .lchart .ln { stroke: var(--plum); }
.lchart .area { fill: var(--accent-soft); }
.lchart .dot { fill: var(--accent); }
.lchart .ax { font-size: 11px; fill: var(--ink-3); }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.dtile { min-height: 200px; }
@media (max-width: 1080px) { .askgrid { grid-template-columns: minmax(0, 1fr); } .cat { position: static; max-height: none; } .askmini input { width: 120px; } }
@media (max-width: 760px) { .hb { grid-template-columns: minmax(70px, 110px) 1fr auto; } .qbub { max-width: 95%; } }

/* ---------- Responsive */
@media (max-width: 1680px) {
  .nav a:not(.on) span { display: none; }
  .nav a:not(.on) { padding: 0 10px; }
  .search-in { width: 130px; }
}
@media (max-width: 1280px) {
  .vitals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-in { width: 100px; }
}
@media (max-width: 1080px) {
  .cgrid, .hubgrid, .tk-grid { grid-template-columns: minmax(0, 1fr); }
  .c-dec { grid-row: auto; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clock-d { display: none; }
  .wall-g { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; }
}
@media (max-width: 760px) {
  .hdr .demo-badge { order: 2; }
  .hdr { gap: 8px; padding: 0 12px; height: auto; min-height: 58px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .nav { order: 3; flex-basis: 100%; }
  .brand-t, .search, .me-t, .clock-s { display: none; }
  .page { padding: 14px 16px; }
  .page-h h1 { font-size: 20px; }
  .vitals, .g2, .g3, .course, .apgrid, .keys, .drag, .beds { grid-template-columns: minmax(0, 1fr); }
  .vitals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-own { border: 0; padding: 0; min-width: 0; }
  .guide { border-radius: var(--r); width: calc(100% - 32px); }
  .phone { height: 720px; }
  .wall-g { grid-template-columns: minmax(0, 1fr); }
  .w2 { grid-column: auto; }
  .bays { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero h1 { font-size: 24px; }
}

/* Ticket Center, end to end: lifecycle pipeline, per-ticket tracker, preview drawer */
.tc-pipe { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.tc-st { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); text-align: start; cursor: pointer; position: relative; }
.tc-st .v { font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.tc-st:hover { border-color: var(--line-2); }
.tc-st.on { border-color: var(--mark); box-shadow: inset 0 0 0 1px var(--mark); }
.tc-st.hot .v { color: var(--warn); }
.lc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.lc-n { display: flex; flex-direction: column; gap: 6px; position: relative; min-width: 0; }
.lc-n > i { display: block; height: 6px; border-radius: 3px; background: var(--line-2); }
.lc-n.done > i { background: var(--ok); }
.lc-n.cur > i { background: var(--mark); }
.lc-n.miss > i { background: var(--warn); }
.lc-n.todo .lc-l { color: var(--ink-3); }
.lc-f { margin-top: 8px; }
.lc-wrap.v .lc { grid-template-columns: 1fr; gap: 0; }
.lc-wrap.v .lc-n { flex-direction: row; gap: 10px; padding-bottom: 10px; }
.lc-wrap.v .lc-n > i { width: 6px; height: auto; min-height: 34px; flex: none; }
.tc-scrim { position: fixed; inset: 0; z-index: 69; background: var(--scrim); }
.tc-drawer { width: 420px; }
.linkrow { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: start; padding-inline: 0; cursor: pointer; }
.feed-k.nudge { background: var(--info); }
@media (max-width: 1080px) { .tc-pipe, .lc { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tc-pipe, .lc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tk-lc { margin-top: 16px; }

/* Corporate workflows by domain */
.cw-pattern { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.cw-pattern li { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border-radius: var(--r-sm); background: var(--surface-2); }
.cw-pattern b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--mark); color: var(--surface); }
.cw-doms { display: flex; flex-wrap: wrap; gap: 6px; }
.cw-doms .chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; }
.cw-doms .chip.on { background: var(--mark); border-color: var(--mark); color: var(--surface); }
.cw-dh { font-size: 15px; margin: 4px 0 10px; }
.cw h3 { font-size: 15px; margin: 0; }
.cw-flow { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.cw-flow li { display: grid; grid-template-columns: 130px minmax(0, 1fr); column-gap: 12px; padding-inline-start: 10px; border-inline-start: 2px solid var(--line-2); }
.cw-flow li > .tiny.faint { grid-row: span 2; padding-top: 2px; }
.cw-steps { margin: 8px 0 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.cw-today { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.cw-run { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); color: inherit; font: inherit; padding: 4px 8px; cursor: pointer; text-align: start; }
.cw-run:hover { border-color: var(--line-2); }
@media (max-width: 1080px) { .cw-pattern { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cw-pattern { grid-template-columns: minmax(0, 1fr); } .cw-flow li { grid-template-columns: minmax(0, 1fr); } .cw-flow li > .tiny.faint { grid-row: auto; } }

/* ---------- Speak to your data: the chat box */
.chat-fab { position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); cursor: pointer; }
[data-theme="light"] .chat-fab { background: var(--plum); color: #fff; }
.chat-fab b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 11px; display: grid; place-items: center; }
.chat { display: flex; flex-direction: column; min-height: 0; }
.chat-float { position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 65; width: 410px; height: min(660px, calc(100vh - 96px)); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); overflow: hidden; }
.chat-page { padding: 0; height: calc(100vh - 200px); min-height: 540px; overflow: hidden; }
.chat-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat-h .btn.on { color: var(--mark); background: var(--accent-soft); }
.chat-av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--mark); }
.chat-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.cmsg { display: flex; flex-direction: column; gap: 6px; }
.msg-me { align-self: flex-end; max-width: 85%; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 16px 16px 4px 16px; background: var(--accent); color: var(--accent-ink); font-size: 14px; overflow-wrap: anywhere; }
[dir="rtl"] .msg-me { border-radius: 16px 16px 16px 4px; }
[data-theme="light"] .msg-me { background: var(--plum-deep); color: #fff; }
.msg-me .meta { opacity: .75; display: inline-flex; align-items: center; gap: 3px; align-self: flex-end; }
.msg-ai { align-self: flex-start; max-width: 94%; padding: 10px 12px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); font-size: 14px; line-height: 1.45; color: var(--ink); }
[dir="rtl"] .msg-ai { border-radius: 16px 16px 4px 16px; }
.msg-ai p { margin: 0; } .msg-ai p + p { margin-top: 6px; }
.msg-ai.full { max-width: 100%; width: 100%; padding: 14px 16px; }
.msg-viz { margin-top: 10px; }
.msg-acts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; }
.msg-acts .linkbtn { display: inline-flex; align-items: center; gap: 4px; }
.msg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chat-in { padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-row { display: flex; align-items: flex-end; gap: 6px; padding: 5px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); }
.chat-in.live .chat-row { border-color: var(--crit); }
.chat-ta { flex: 1; min-width: 0; resize: none; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.4; padding: 8px 8px; max-height: 120px; }
.chat-in.big .chat-ta { font-size: 15px; }
.chat-lang, .chat-mic, .chat-send { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; background: transparent; color: var(--ink-2); }
.chat-lang { border: 1px solid var(--line-2); width: 32px; height: 32px; margin-bottom: 2px; }
.chat-mic:hover, .chat-lang:hover { background: var(--surface-3); }
.chat-mic.on { background: var(--crit); color: #fff; animation: pulse-ring 1.4s infinite; }
.chat-send { background: var(--accent); color: var(--accent-ink); }
[data-theme="light"] .chat-send { background: var(--plum); color: #fff; }
.chat-send:disabled { opacity: .35; cursor: default; }
.chat-listen { display: flex; align-items: center; gap: 8px; margin: 0 4px 6px; color: var(--crit); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .15s; } .eq i:nth-child(3) { animation-delay: .3s; } .eq i:nth-child(4) { animation-delay: .45s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.chat-f { padding: 0 14px 10px; }
@media (prefers-reduced-motion: reduce) { .eq i, .chat-mic.on { animation: none; } }
@media (max-width: 760px) {
  .chat-float { inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; }
  .chat-fab { width: 52px; height: 52px; padding: 0; justify-content: center; inset-block-end: 16px; inset-inline-end: 16px; }
  .chat-fab span, .chat-fab b { display: none; }
  .chat-page { height: calc(100vh - 170px); }
}
.msg-src { margin-top: 8px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.msg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--ink-3); }
.msg-steps li { display: flex; align-items: center; gap: 8px; }
.msg-steps i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.msg-steps li.done { color: var(--ink-2); } .msg-steps li.done i { background: var(--ok); }
.msg-steps li.on { color: var(--ink); } .msg-steps li.on i { background: var(--mark); animation: glow 1s infinite; }
.msg-next { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.msg-next .chip { border-style: dashed; }
.msg-drv { display: grid; gap: 6px; margin-top: 10px; }
.drv { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; text-align: start; cursor: pointer; }
.drv .grow { display: flex; flex-direction: column; min-width: 0; }
.drv .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--warn); } .drv .dot.ok { background: var(--ok); }
