:root {
  --bg: #050a12;
  --bg-2: #081423;
  --panel: rgba(8, 20, 36, 0.78);
  --panel-2: rgba(10, 26, 46, 0.9);
  --line: rgba(0, 229, 255, 0.16);
  --line-strong: rgba(0, 229, 255, 0.5);
  --cyan: #00e5ff;
  --cyan-dim: #38b6cc;
  --amber: #ffb547;
  --green: #4ef2a0;
  --red: #ff5370;
  --magenta: #d77bff;
  --text: #cfeaf4;
  --bright: #e8fbff;
  --muted: #6f93a3;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --glow: 0 0 12px rgba(0, 229, 255, 0.4);
  --radius: 6px;
  --sidebar: 240px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: radial-gradient(1200px 800px at 30% 20%, var(--bg-2), var(--bg) 70%);
  color: var(--text); font-family: var(--sans); font-size: 14px; letter-spacing: 0.01em; overflow: hidden;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
a { color: var(--cyan-dim); text-decoration: none; }
a:hover { color: var(--cyan); }
code { font-family: var(--mono); font-size: 12px; color: var(--cyan-dim); }

#bg { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: .55; }

/* ---------- reactor ---------- */
.reactor { position: relative; display: inline-block; }
.reactor-lg { width: 160px; height: 160px; }
.reactor-sm { width: 36px; height: 36px; }
.reactor .ring, .reactor .core { position: absolute; border-radius: 50%; }
.reactor .ring {
  inset: 0; border: 2px solid transparent;
  border-top-color: var(--cyan); border-bottom-color: rgba(0,229,255,0.35);
  animation: spin 6s linear infinite; box-shadow: inset 0 0 18px rgba(0,229,255,0.12);
}
.reactor .r2 { inset: 14%; animation-duration: 4s; animation-direction: reverse; border-style: dashed; }
.reactor .r3 { inset: 28%; animation-duration: 9s; border-color: rgba(255,181,71,0.5) transparent; }
.reactor-sm .r2 { inset: 22%; }
.reactor .core {
  inset: 38%; background: radial-gradient(circle, #e9fdff 0%, var(--cyan) 35%, rgba(0,229,255,0.1) 75%);
  box-shadow: 0 0 24px var(--cyan), 0 0 60px rgba(0,229,255,0.5); animation: pulse 2.4s ease-in-out infinite;
}
.reactor-sm .core { inset: 32%; box-shadow: 0 0 10px var(--cyan); }
.reactor.busy .ring { animation-duration: 1.2s; }
.reactor.busy .r2, .reactor.busy .core { animation-duration: 0.8s; }
.reactor.alert .core { background: radial-gradient(circle, #fff 0%, var(--red) 40%, transparent 75%); box-shadow: 0 0 24px var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(0.92); opacity: .85; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes blink { 50% { opacity: 0 } }

/* ---------- gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 10; display: grid; place-items: center;
  background: radial-gradient(900px 600px at 50% 45%, rgba(0,229,255,0.07), transparent 70%); transition: opacity .8s ease;
}
.gate.fade { opacity: 0; pointer-events: none; }
.gate-core { text-align: center; width: min(560px, 92vw); }
.gate-title { font-weight: 300; letter-spacing: .6em; margin: 22px 0 10px; color: var(--cyan); text-shadow: var(--glow); }
.boot-log {
  font-family: var(--mono); font-size: 12px; color: var(--cyan-dim); text-align: left;
  margin: 0 auto 16px; min-height: 120px; max-height: 180px; overflow: hidden; white-space: pre-wrap;
}
.auth-form { display: grid; gap: 10px; text-align: left; }
.auth-form label { font-size: 11px; letter-spacing: .25em; color: var(--muted); }
.auth-error { color: var(--red); font-family: var(--mono); font-size: 12px; min-height: 1em; margin: 0; }

/* ---------- controls ---------- */
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea {
  background: rgba(0, 16, 32, 0.7); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 10px; width: 100%; outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: var(--glow); }
select option { background: #081423; }
textarea { resize: vertical; font-family: var(--mono); }
.btn {
  border: 1px solid var(--line-strong); background: rgba(0,229,255,0.06); color: var(--cyan);
  padding: 8px 14px; border-radius: var(--radius); cursor: pointer; letter-spacing: .14em; font-size: 11px; white-space: nowrap;
  transition: background .2s, box-shadow .2s, transform .05s;
}
.btn:hover { background: rgba(0,229,255,0.16); box-shadow: var(--glow); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn-ghost { border-color: var(--line); color: var(--muted); }
.btn-primary { background: rgba(0,229,255,0.14); }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .15em; color: var(--muted); cursor: pointer; white-space: nowrap; }
.toggle input { width: auto; accent-color: var(--cyan); }
.tools { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tools select { width: auto; padding: 6px 8px; font-size: 12px; }

/* ---------- app shell ---------- */
.app { position: relative; z-index: 2; height: 100vh; height: 100dvh; display: grid; grid-template-columns: var(--sidebar) 1fr; }
.sidebar {
  display: flex; flex-direction: column; gap: 18px; padding: 14px 12px; border-right: 1px solid var(--line);
  background: var(--panel-2); backdrop-filter: blur(8px); overflow: auto; scrollbar-width: thin;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px; color: inherit; }
.brand-name { font-weight: 300; letter-spacing: .5em; color: var(--cyan); font-size: 18px; text-shadow: var(--glow); }
.brand-sub { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.nav-group { display: grid; gap: 2px; }
.nav-label { font-size: 10px; letter-spacing: .3em; color: var(--muted); padding: 0 8px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius); color: var(--text);
  font-size: 13px; border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.nav-item i { font-style: normal; color: var(--cyan-dim); width: 14px; text-align: center; font-size: 12px; }
.nav-item:hover { background: rgba(0,229,255,0.06); color: var(--bright); }
.nav-item.active { background: rgba(0,229,255,0.1); border-color: var(--line); color: var(--bright); box-shadow: inset 3px 0 0 var(--cyan); }
.nav-badge { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--cyan); min-width: 1em; text-align: right; }
.nav-badge:empty { display: none; }
.sidebar-foot { margin-top: auto; display: grid; gap: 8px; padding: 10px 8px 0; border-top: 1px solid var(--line); }
.foot-row { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.foot-row .btn { flex: 1; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang button { border: 0; background: transparent; color: var(--muted); padding: 7px 10px; font-size: 11px; letter-spacing: .1em; cursor: pointer; font-family: var(--mono); }
.lang button + button { border-left: 1px solid var(--line); }
.lang button:hover { color: var(--text); }
.lang button.active { background: rgba(0,229,255,0.12); color: var(--cyan); }
.gate .lang { margin-top: 18px; }
.metric { display: flex; justify-content: space-between; align-items: baseline; }
.metric .k { font-size: 10px; letter-spacing: .25em; color: var(--muted); }
.metric .v { font-family: var(--mono); font-size: 12px; color: var(--cyan); }

.content { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.topbar {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "crumb voice" "heard heard"; align-items: center; gap: 2px 24px;
  padding: 10px 22px; border-bottom: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(8px);
}
.crumb { grid-area: crumb; display: flex; align-items: baseline; gap: 10px; }
#page-title { font-size: 18px; font-weight: 500; color: var(--bright); letter-spacing: .04em; }
#page-sub { font-family: var(--mono); font-size: 11px; }
.voicebar { grid-area: voice; display: flex; align-items: center; gap: 12px; min-width: 0; }
.wave { display: flex; gap: 3px; align-items: center; height: 24px; flex: 0 0 auto; }
.wave i { width: 3px; height: 6px; background: var(--cyan); border-radius: 2px; opacity: .6; transition: height .2s; }
.wave.talk i { animation: wave 1s ease-in-out infinite; }
.wave.talk i:nth-child(2) { animation-delay: .1s } .wave.talk i:nth-child(3) { animation-delay: .2s }
.wave.talk i:nth-child(4) { animation-delay: .3s } .wave.talk i:nth-child(5) { animation-delay: .4s }
.wave.talk i:nth-child(6) { animation-delay: .5s } .wave.talk i:nth-child(7) { animation-delay: .6s }
@keyframes wave { 0%,100% { height: 6px } 50% { height: 22px } }
.speech { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 300; color: var(--bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.speech::after { content: "▍"; color: var(--cyan); animation: blink 1s steps(1) infinite; }
.say { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.say input { width: 260px; padding: 6px 10px; }
.btn-mic { display: inline-flex; align-items: center; justify-content: center; padding: 8px 10px; }
.mic-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 6px currentColor; }
.btn-mic.listening { border-color: var(--red); background: rgba(255,83,112,0.1); }
.btn-mic.listening .mic-dot { background: var(--red); color: var(--red); animation: pulse 1s ease-in-out infinite; }
.btn-mic:disabled { opacity: .4; cursor: not-allowed; }
.heard { grid-area: heard; margin: 0; font-family: var(--mono); font-size: 11px; color: var(--muted); min-height: 1em; }
.heard:empty { display: none; }
.heard.live::before { content: "● "; color: var(--red); }

/* ---------- views ---------- */
/* Views and the workbench are grids so panels keep their natural height and never shrink or overlap. */
.view { display: none; flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; padding: 18px 22px; grid-auto-rows: max-content; align-content: start; gap: 14px; }
.view.active { display: grid; }
.grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.grid-split > .panel { max-height: 70vh; }
.grid-2 > *, .grid-3 > *, .grid-split > * { min-width: 0; }
.scroll-x { overflow-x: auto; scrollbar-width: thin; }
.panel {
  position: relative; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius);
  backdrop-filter: blur(6px); padding: 14px 16px; min-height: 0; display: flex; flex-direction: column;
}
.panel h2 {
  margin: 0 0 12px; font-size: 11px; font-weight: 500; letter-spacing: .3em; color: var(--cyan);
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.panel-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; color: var(--muted); text-transform: none; }
.filters { display: flex; gap: 6px; }
.filters select { width: auto; padding: 3px 6px; font-size: 11px; letter-spacing: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.kv b { color: var(--text); font-weight: 400; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  border: 1px solid currentColor; border-radius: 3px; padding: 1px 6px; text-transform: uppercase;
}
.chip.kind { color: var(--cyan-dim); text-transform: none; }
.chip.ws { color: var(--text); border-color: var(--line); text-transform: none; }
.table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11px; }
.table td, .table th { padding: 5px 6px; border-bottom: 1px solid rgba(0,229,255,0.08); text-align: left; }
.table th { color: var(--muted); font-weight: 400; letter-spacing: .1em; }
.table .num { text-align: right; }

/* ---------- overview ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: inherit; }
a.kpi:hover { border-color: var(--line-strong); }
.kpi .v { font-family: var(--mono); font-size: 26px; color: var(--bright); line-height: 1; }
.kpi .k { font-size: 10px; letter-spacing: .25em; color: var(--muted); text-transform: uppercase; }
.kpi.hot .v { color: var(--cyan); text-shadow: var(--glow); }
.kpi.warn .v { color: var(--amber); }
.project-cards { display: grid; gap: 10px; }
.pcard {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0, 10, 25, 0.4); color: inherit; transition: border-color .15s;
}
.pcard:hover { border-color: var(--cyan); }
.pbody { min-width: 0; }
.pname { font-size: 14px; color: var(--bright); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pdesc { font-size: 12px; color: var(--text); margin: 3px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pnum { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.feed.compact { max-height: 60vh; }

/* ---------- project ---------- */
.project-head h1 { margin: 0; font-size: 22px; font-weight: 400; color: var(--bright); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.project-head p { margin: 4px 0 0; }
.budget { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.work-slot { display: contents; }
.work { display: grid; gap: 14px; }

/* ---------- gauge ---------- */
.gauge { width: 64px; height: 64px; transform: rotate(-90deg); }
.gauge .track { fill: none; stroke: rgba(0,229,255,0.12); stroke-width: 6; }
.gauge .bar { fill: none; stroke: var(--cyan); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .8s ease; filter: drop-shadow(0 0 4px var(--cyan)); }
.gauge .bar.warn { stroke: var(--amber); filter: drop-shadow(0 0 4px var(--amber)); }
.gauge .bar.over { stroke: var(--red); filter: drop-shadow(0 0 4px var(--red)); }
.gauge-wrap { position: relative; width: 64px; height: 64px; }
.gauge-pct { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--bright); }

/* ---------- agents ---------- */
.agent-grid { display: grid; gap: 10px; }
.agent-grid.cols { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.agent-grid.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.agent {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: grid; gap: 5px; position: relative;
  background: rgba(0, 10, 25, 0.4); transition: border-color .2s, box-shadow .2s;
}
.agent.active { border-color: var(--cyan); box-shadow: var(--glow); }
.agent.active::after {
  content: "ÇALIŞIYOR"; position: absolute; top: 8px; right: 10px; font-family: var(--mono); font-size: 9px;
  color: var(--cyan); animation: blink 1.2s steps(1) infinite;
}
.agent.disabled { opacity: .45; border-style: dashed; }
.agent .name { font-size: 13px; color: var(--bright); }
.agent .role { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.agent .flags { display: flex; gap: 4px; flex-wrap: wrap; }
.agent-projects { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.flag { font-family: var(--mono); font-size: 9px; padding: 1px 5px; border-radius: 2px; background: rgba(0,229,255,0.08); color: var(--cyan-dim); }
.flag.on { background: rgba(255,181,71,0.12); color: var(--amber); }
.flag.off { opacity: .5; text-decoration: line-through; }
.mc-cheap { color: var(--muted) } .mc-balanced { color: var(--cyan) } .mc-strong { color: var(--amber) }

/* ---------- console ---------- */
.cmd { display: grid; gap: 8px; }
.cmd-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cmd-row label { display: grid; gap: 4px; font-size: 10px; letter-spacing: .25em; color: var(--muted); flex: 1 1 140px; }
.cmd-row label.grow { flex: 1 1 100%; }
.cmd-row small { letter-spacing: 0; text-transform: none; }
.cmd-input { display: flex; gap: 8px; align-items: stretch; }
.cmd-input .prompt { color: var(--cyan); font-size: 22px; line-height: 1.5; text-shadow: var(--glow); }
.cmd-input textarea { flex: 1; }
.cmd-error { color: var(--red); font-family: var(--mono); font-size: 12px; margin: 0; min-height: 1em; white-space: pre-wrap; }
.cmd-error:empty { display: none; }

/* ---------- feed ---------- */
.feed { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; scrollbar-width: thin; min-height: 0; }
.feed-panel .feed { max-height: 55vh; }
.feed li {
  display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: start;
  padding: 9px 8px; border-bottom: 1px solid rgba(0,229,255,0.08); cursor: pointer; transition: background .15s; border-radius: 4px;
}
.feed li:hover, .feed li.selected { background: rgba(0,229,255,0.07); }
.feed li.selected { box-shadow: inset 3px 0 0 var(--cyan); }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--muted); box-shadow: 0 0 8px currentColor; }
.feed .title { font-size: 13px; color: var(--bright); }
.feed .meta { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px; }
.feed .when { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.feed .empty { padding: 20px; color: var(--muted); text-align: center; cursor: default; display: block; }

.st-completed, .st-published, .st-approved { color: var(--green); }
.st-partial, .st-pending_approval { color: var(--amber); }
.st-blocked { color: #ff9f43; }
.st-needs_approval { color: var(--magenta); }
.st-failed { color: var(--red); }
.st-discarded { color: var(--muted); }
.dot.st-partial { animation: pulse 1.2s ease-in-out infinite; }

/* ---------- detail ---------- */
.detail { overflow: auto; flex: 1; scrollbar-width: thin; font-size: 13px; max-height: 55vh; }
.detail .desc { color: var(--bright); margin: 0 0 8px; }
.detail .kv { margin-bottom: 12px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--line); }
.stage { position: relative; padding: 0 0 12px 14px; }
.stage::before { content: ""; position: absolute; left: -19px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.stage-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.stage-head .who { color: var(--bright); font-size: 13px; }
.stage .sum { color: var(--text); margin: 4px 0; }
.stage .meta, .meta { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.stage details { margin-top: 4px; }
.stage summary { cursor: pointer; font-family: var(--mono); font-size: 11px; color: var(--cyan-dim); }
.stage pre { font-size: 11px; white-space: pre-wrap; margin: 4px 0; color: var(--text); max-height: 240px; overflow: auto; }
.finding { font-size: 12px; margin: 2px 0; }
.sev-critical, .sev-high { color: var(--red) } .sev-medium { color: var(--amber) } .sev-low, .sev-info { color: var(--muted) }
.decision { font-family: var(--mono); font-size: 11px; }
.dec-allow { color: var(--green) } .dec-deny { color: var(--red) } .dec-require_approval { color: var(--magenta) }

/* ---------- mail ---------- */
.mail-list { list-style: none; margin: 0; padding: 0; overflow: auto; scrollbar-width: thin; flex: 1; display: grid; gap: 6px; align-content: start; min-height: 0; }
.mail-item {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; padding: 8px 10px; cursor: pointer; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(0, 10, 25, 0.4); transition: border-color .2s;
}
.mail-item:hover, .mail-item.selected { border-color: var(--cyan); }
.mail-item.handled { opacity: .5; }
.mail-item .imp { grid-row: span 2; align-self: start; }
.mail-item .from { font-size: 12px; color: var(--bright); display: flex; justify-content: space-between; gap: 8px; }
.mail-item .from time { font-family: var(--mono); font-size: 10px; color: var(--muted); white-space: nowrap; }
.mail-item .sum { font-size: 12px; color: var(--text); }
.imp-urgent { color: var(--red); } .imp-important { color: var(--amber); } .imp-normal { color: var(--cyan-dim); } .imp-low { color: var(--muted); }
.mail-detail { font-size: 13px; display: grid; gap: 8px; overflow: auto; scrollbar-width: thin; align-content: start; }
.mail-detail .subj { color: var(--bright); font-size: 15px; }
.mail-detail pre { white-space: pre-wrap; font-size: 11px; max-height: 220px; overflow: auto; margin: 0; color: var(--text); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.actions input { flex: 1 1 160px; min-width: 0; }
.draft { border: 1px dashed var(--line); border-radius: var(--radius); padding: 8px 10px; display: grid; gap: 6px; }
.draft.sent { border-color: var(--green); } .draft.discarded { opacity: .5; }
.draft .body { white-space: pre-wrap; font-size: 12px; }

/* ---------- instagram ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.ig-post { display: grid; grid-template-columns: 120px 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0, 10, 25, 0.4); overflow: hidden; }
.ig-post.st-discarded, .ig-post.st-failed { opacity: .7; }
.ig-post img, .ig-noimg { width: 120px; height: 100%; min-height: 160px; object-fit: cover; background: rgba(0,229,255,0.05); }
.ig-noimg { display: grid; place-items: center; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.ig-body { display: grid; gap: 6px; padding: 10px 12px; align-content: start; min-width: 0; }
.ig-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.ig-title { font-size: 13px; color: var(--bright); }
.ig-caption { font-family: var(--sans); font-size: 12px; }
.ig-caption-ro { font-size: 12px; white-space: pre-wrap; max-height: 120px; overflow: auto; color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-2, .grid-3, .grid-split { grid-template-columns: 1fr; }
  .grid-split > .panel { max-height: none; }
  .topbar { grid-template-columns: 1fr; grid-template-areas: "crumb" "voice" "heard"; }
}
@media (max-width: 760px) {
  body { overflow: auto; }
  .app { grid-template-columns: 1fr; height: auto; min-height: 100dvh; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .view { overflow: visible; padding: 12px; }
  .say input { width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .reactor .ring, .reactor .core, .wave i, .dot { animation: none !important; }
}
