/* Vector — graphite glass with electric-blue accents (matching the Vector figure), cool white. Green only for real healthy states. */
:root {
  --bg: #07080b;
  --bg-2: #0d0f14;
  --panel: rgba(22, 25, 33, .78);
  --panel-solid: #161921;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #eef1f6;
  --muted: #9aa3b2;
  --accent: #2e8cff;
  --accent-hi: #6fb6ff;
  --accent-dim: rgba(46, 140, 255, .16);
  --ice: #b9d6ff;
  --ok: #3ccf8e;
  --warn: #f2b84b;
  --bad: #ff5d6c;
  --radius: 14px;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--text); font: 15px/1.5 var(--font);
  background: radial-gradient(1200px 600px at 70% -10%, rgba(46, 140, 255, .14), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(120, 150, 210, .08), transparent 60%), var(--bg);
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel-solid); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.glass {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(14px); box-shadow: 0 10px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
}

/* Buttons and fields */
button { cursor: pointer; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg-2); padding: 9px 14px; }
button:hover { border-color: rgba(255, 255, 255, .3); }
button:disabled { opacity: .5; cursor: not-allowed; }
.primary { background: linear-gradient(180deg, var(--accent-hi), var(--accent)); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 0 22px rgba(46, 140, 255, .4); }
.primary:hover { filter: brightness(1.08); }
.secondary { background: var(--panel-solid); }
.ghost { background: transparent; border-color: var(--line); }
.wide { width: 100%; }
.icon-only { padding: 6px 10px; }
input, select, textarea { background: rgba(0, 0, 0, .35); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; width: 100%; }
textarea { resize: vertical; }
label { display: block; color: var(--muted); font-size: 13px; margin: 12px 0 6px; }
label.row { display: flex; gap: 10px; align-items: center; color: var(--text); font-size: 15px; }
label.row input, .consent input { width: auto; accent-color: var(--accent); }
.error { color: var(--bad); min-height: 1.4em; }
.badge, .chip { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.badge.local { color: var(--ice); border-color: rgba(185, 214, 255, .35); }
.badge.cloud { color: var(--accent-hi); border-color: rgba(111, 182, 255, .5); }

/* Wordmark */
.wordmark { font-weight: 300; letter-spacing: .42em; margin: 8px 0 0; font-size: 34px; }
.wordmark.small { font-size: 16px; letter-spacing: .35em; margin: 0; }
.tagline { color: var(--muted); letter-spacing: .3em; font-size: 11px; text-transform: uppercase; margin: 6px 0 22px; }

/* V core */
.core { display: inline-block; flex: none; }
.core svg { width: 100%; height: 100%; display: block; overflow: visible; }
.core-large { width: 150px; height: 150px; }
.core-strip { width: 64px; height: 64px; }
.core-mark { width: 34px; height: 34px; }
.core .ring { fill: none; stroke: var(--accent); transform-origin: 100px 100px; }
.core .ring-a { stroke-width: 2; stroke-dasharray: 70 22 10 22; opacity: .9; }
.core .ring-b { stroke-width: 1.2; stroke: var(--ice); stroke-dasharray: 4 10; opacity: .55; }
.core .ring-c { stroke-width: 6; stroke-dasharray: 2 14; opacity: .35; }
.core .glow { fill: url(#core-glow); }
.core .v { fill: url(#core-v); stroke: rgba(255, 255, 255, .6); stroke-width: 1; }
.core[data-state="idle"] .ring-a { animation: spin 18s linear infinite; }
.core[data-state="idle"] .ring-b { animation: spin 30s linear infinite reverse; }
.core[data-state="thinking"] .ring-a { animation: spin 2.2s linear infinite; }
.core[data-state="thinking"] .ring-b { animation: spin 3.4s linear infinite reverse; }
.core[data-state="thinking"] .ring-c { animation: pulse 1.2s ease-in-out infinite; }
.core[data-state="thinking"] .glow { animation: pulse 1.2s ease-in-out infinite; }
.core[data-state="error"] .ring { stroke: var(--warn); }
.core[data-state="error"] .ring-a { stroke-dasharray: 8 8; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) {
  .core * { animation: none !important; }
  .core[data-state="thinking"] .ring-c { opacity: .8; }
}

/* Login */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(380px, 100%); padding: 32px 28px; text-align: center; }
.login-card form { text-align: left; margin-top: 8px; }
.login-card .primary { width: 100%; margin-top: 18px; padding: 12px; }

/* Shell */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100%; }
.sidebar { border-right: 1px solid var(--line); background: rgba(8, 9, 12, .7); padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; }
.section-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 14px 6px 4px; font-weight: 600; }
.project-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.project-list button { width: 100%; text-align: left; border: 1px solid transparent; background: transparent; padding: 8px 10px; }
.project-list button[aria-current="true"] { background: var(--accent-dim); border-color: rgba(46, 140, 255, .45); }
.project-list button:hover { background: rgba(255, 255, 255, .04); }
.sidebar-foot { margin-top: auto; display: grid; gap: 8px; }
.who { font-size: 13px; color: var(--muted); padding: 0 6px; }
.main-col { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--line); }
#menu-toggle { display: none; }
.tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tab { background: transparent; border-color: transparent; color: var(--muted); padding: 8px 14px; white-space: nowrap; }
.tab[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .05); border-color: var(--line-strong); box-shadow: inset 0 -2px 0 var(--accent); }

/* Command strip */
.command-strip { display: flex; align-items: center; gap: 16px; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.strip-cards { display: flex; gap: 10px; overflow-x: auto; flex: 1; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.strip-card { min-width: 150px; max-width: 240px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.strip-card > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-card .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.strip-card .v { font-weight: 600; font-size: 16px; }
.strip-card .d { font-size: 12px; color: var(--muted); }

/* Views */
main { flex: 1; overflow: auto; padding: 18px 22px 22px; outline: none; }
.view { max-width: 980px; margin: 0 auto; }
#view-chat { display: flex; flex-direction: column; min-height: 100%; }
#view-chat[hidden] { display: none; }
.view-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.view-head h1 { font-size: 24px; margin: 0; font-weight: 600; }

/* Messages */
.messages { list-style: none; margin: 0; padding: 6px 0 16px; flex: 1; display: grid; gap: 14px; align-content: start; }
.msg { max-width: 80ch; }
.msg .who { padding: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.msg .body { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { justify-self: end; background: rgba(185, 214, 255, .08); border: 1px solid rgba(185, 214, 255, .16); padding: 10px 14px; border-radius: 14px 14px 4px 14px; }
.msg.user .who { color: var(--ice); }
.msg.assistant .who { color: var(--accent-hi); }
.msg.system { color: var(--muted); font-size: 13px; border-left: 2px solid var(--line-strong); padding-left: 10px; }
.msg .body h3 { font-size: 16px; margin: 10px 0 4px; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* Composer */
.composer { padding: 12px; position: sticky; bottom: 0; }
.composer textarea { border: none; background: transparent; padding: 6px 4px; min-height: 64px; }
.composer textarea:focus-visible { outline: none; }
.composer-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.composer-row select { width: auto; }
.consent { display: flex; gap: 8px; align-items: center; margin: 0; flex: 1; min-width: 220px; color: var(--text); }
#count { margin-left: auto; font-size: 12px; }
.stage { margin: 8px 4px 0; color: var(--ice); min-height: 1.2em; font-size: 13px; }

/* Mission Control */
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.cards li { padding: 12px 14px; }
.cards .role { color: var(--muted); font-size: 13px; }
.runs { list-style: none; padding: 0; display: grid; gap: 10px; }
.runs details { padding: 12px 14px; }
.runs summary { cursor: pointer; display: flex; gap: 10px; align-items: center; }
.status-pill { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-strong); }
.status-pill.complete, .status-pill.completed { color: var(--ok); border-color: rgba(60, 207, 142, .4); }
.status-pill.failed, .status-pill.cancelled, .status-pill.interrupted { color: var(--warn); border-color: rgba(242, 184, 75, .4); }
.stage-block { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.stage-block .meta { font-size: 12px; color: var(--muted); }
.stage-block pre { white-space: pre-wrap; font: 13px/1.5 var(--font); margin: 6px 0 0; }

/* Mission Control: approvals, jobs, activity */
.spacer { flex: 1; }
.danger { background: rgba(255, 93, 108, .12); border-color: rgba(255, 93, 108, .55); color: #ffb3bb; font-weight: 600; }
.danger:hover { background: rgba(255, 93, 108, .22); }
.chip.paused { color: var(--warn); border-color: rgba(242, 184, 75, .5); }
.chip.running { color: var(--ok); border-color: rgba(60, 207, 142, .45); }
.banner { border: 1px solid rgba(242, 184, 75, .45); background: rgba(242, 184, 75, .08); color: #ffe2a8; border-radius: 12px; padding: 10px 14px; }
.approvals { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.approvals li { padding: 12px 14px; display: grid; gap: 6px; border-color: rgba(242, 184, 75, .35); }
.approvals .what { font-weight: 600; }
.approvals .meta { font-size: 12px; color: var(--muted); }
.approvals .actions { display: flex; gap: 8px; }
.job-form { display: flex; gap: 10px; padding: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.job-form input { flex: 1; min-width: 200px; border: none; background: transparent; }
.job-form select { width: auto; }
.status-pill.queued, .status-pill.running { color: var(--accent-hi); border-color: rgba(111, 182, 255, .45); }
.status-pill.waiting_approval { color: var(--warn); border-color: rgba(242, 184, 75, .45); }
.runs .when { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.timeline { list-style: none; margin: 10px 0 0; padding: 0 0 0 14px; border-left: 1px solid var(--line-strong); display: grid; gap: 4px; font-size: 13px; }
.timeline time { color: var(--muted); margin-right: 8px; font-size: 12px; }
.audit { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 2px; font-size: 13px; }
.audit li { display: grid; grid-template-columns: 70px 80px 1fr 110px; gap: 10px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.audit .allow { color: var(--ok); } .audit .deny { color: var(--bad); } .audit .needs_approval { color: var(--warn); }
.audit .target { color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 820px) { .audit li { grid-template-columns: 60px 1fr; } .audit .target { grid-column: 1 / -1; } }

/* Proactive Mode and delegations */
.proactive { padding: 14px 16px; margin: 6px 0 14px; border-color: rgba(46, 140, 255, .35); }
.proactive-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.proactive-head h2 { margin: 0; flex: 1; font-size: 16px; }
.proactive-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.proactive-controls label { margin: 0; }
.proactive-controls select { width: auto; }
.delegation-form { max-width: 520px; }
.delegation-form .cap-row > div { flex: 1; }
.cards li .spark-pause { margin-top: 6px; padding: 4px 10px; font-size: 12px; }

/* Family and accounts */
.family-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.family-list li { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.family-list .meta { font-size: 12px; color: var(--muted); }
.family-list select { width: auto; }
.family-list .off { opacity: .6; }
.member-form .cap-row > div { flex: 1; }
.member-form .cap-row { flex-wrap: wrap; }
.msg.user.other { justify-self: start; background: rgba(255, 255, 255, .04); border-color: var(--line-strong); border-radius: 14px 14px 14px 4px; }
.msg.user.other .who { color: #d5def0; }
@media (max-width: 820px) { .family-list li { grid-template-columns: 1fr 1fr; } }

/* Skill Registry */
.registry-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.registry-head h2 { margin: 0; flex: 1; }
.registry-head input { width: 220px; }
.registry-head select { width: auto; }
.registry { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.registry details { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.registry summary { display: flex; gap: 8px; align-items: center; cursor: pointer; flex-wrap: wrap; }
.registry .name { font-weight: 600; margin-right: auto; }
.badge.risk-low { color: var(--ok); border-color: rgba(60, 207, 142, .4); }
.badge.risk-high { color: var(--warn); border-color: rgba(242, 184, 75, .5); }
.badge.life-quarantined { color: var(--bad); border-color: rgba(255, 93, 108, .5); }
.badge.life-active { color: var(--accent-hi); border-color: rgba(111, 182, 255, .45); }
.switch { min-width: 64px; }
.switch[aria-pressed="true"] { background: var(--accent-dim); border-color: rgba(111, 182, 255, .6); }
.skill-body { display: grid; gap: 8px; margin-top: 10px; font-size: 13px; }
.skill-body pre { white-space: pre-wrap; font: 13px/1.5 var(--font); margin: 0; color: var(--text); }
.skill-body .needs { color: var(--warn); }
.assign { display: flex; gap: 12px; flex-wrap: wrap; }
.assign label { display: flex; gap: 6px; align-items: center; margin: 0; color: var(--text); }
.assign input { width: auto; accent-color: var(--accent); }
.skill-history { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 1px solid var(--line-strong); display: grid; gap: 3px; color: var(--muted); }
.add-skill { margin-top: 12px; }
.add-skill summary { cursor: pointer; color: var(--accent-hi); }

/* Settings */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.panel { padding: 16px 18px; }
.panel h2 { margin: 0 0 8px; font-size: 16px; }
.wide-panel { grid-column: 1 / -1; }
.cap-row { display: flex; gap: 10px; }
.cap-row input { max-width: 140px; }
.skills, .family, .health { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.skills li, .family li { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.skills .name { font-weight: 600; }
.skills .meta, .family .meta { font-size: 12px; color: var(--muted); }
.health li { display: grid; grid-template-columns: 56px 170px 1fr; gap: 8px; font-size: 13px; }
.health .PASS { color: var(--ok); } .health .WARN { color: var(--warn); } .health .FAIL { color: var(--bad); }
.health .detail { color: var(--muted); overflow-wrap: anywhere; }

/* Home: laid out like the Vector identity poster */
.poster { max-width: 1320px; margin: 0 auto; display: grid; gap: 16px; }
.poster-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.poster-brand { display: flex; align-items: center; gap: 14px; }
.poster-v { width: 62px; height: 52px; color: var(--accent-hi); filter: drop-shadow(0 0 10px rgba(46, 140, 255, .6)); }
.poster-v svg { width: 100%; height: 100%; }
.poster-word { margin: 0; font-weight: 300; font-size: 52px; letter-spacing: .22em; line-height: 1; }
.poster-tag { margin: 8px 0 0; font-size: 12px; letter-spacing: .5em; text-transform: uppercase; color: var(--muted); }
.poster-always { margin: 0; text-align: left; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); line-height: 1.9; }
.poster-always .rule { display: block; width: 46px; height: 2px; margin: 6px 0 0 auto; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.poster-stage { display: grid; grid-template-columns: minmax(230px, .9fr) minmax(320px, 1.25fr) minmax(260px, 1fr); gap: 20px; align-items: center; }
.capabilities { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.capabilities button { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; background: transparent; border: 1px solid transparent; padding: 6px 8px; }
.capabilities button:hover { border-color: var(--line); background: rgba(46, 140, 255, .05); }
.capabilities b, .feature-strip b { display: block; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: 15px; }
.capabilities small, .feature-strip small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.cap-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); background: rgba(255, 255, 255, .02); }
.cap-icon svg { width: 24px; height: 24px; }
.soon { display: inline-block; margin-top: 3px; font-style: normal; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--warn); border: 1px solid rgba(242, 184, 75, .35); border-radius: 999px; padding: 1px 7px; }

.poster-hero { margin: 0; position: relative; justify-self: center; width: 100%; max-width: 470px; }
.poster-hero::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 16%; background: radial-gradient(closest-side, rgba(46, 140, 255, .45), transparent); filter: blur(12px); }
.poster-hero img {
  position: relative; display: block; width: 100%; height: auto; max-height: 64vh; object-fit: contain;
  /* Melt the photo's edges into the page so Vector stands in the room, not in a frame. */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 46%, #000 62%, rgba(0, 0, 0, .55) 80%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 46%, #000 62%, rgba(0, 0, 0, .55) 80%, transparent 100%);
}

.poster-right { display: grid; gap: 14px; }
.poster-quote { margin: 0; font-weight: 300; font-size: 22px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.35; }
.poster-quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 12px; letter-spacing: .3em; color: var(--muted); }
.holo-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.holo-city { width: 100%; height: auto; border-radius: 6px; opacity: .92;
  -webkit-mask-image: radial-gradient(ellipse 52% 52% at 50% 50%, #000 70%, transparent 100%);
          mask-image: radial-gradient(ellipse 52% 52% at 50% 50%, #000 70%, transparent 100%); }
.verbs { list-style: none; margin: 0; padding: 0; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; line-height: 1.75; color: #d5def0; }
.script { margin: 0; text-align: right; font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive; font-size: 30px; line-height: 1.1; color: #e8eef9; text-shadow: 0 0 18px rgba(46, 140, 255, .35); }

.home-ask { display: flex; gap: 10px; padding: 10px; max-width: 760px; width: 100%; justify-self: center; border-color: rgba(46, 140, 255, .35); }
.home-ask input { border: none; background: transparent; }
.home-ask input:focus-visible { outline: none; }
.home-ask:focus-within { box-shadow: 0 0 0 1px rgba(111, 182, 255, .6), 0 10px 40px rgba(0, 0, 0, .35); }
.home-note { text-align: center; margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.home-status { color: var(--accent-hi); }

.modes { border-top: 1px solid var(--line); padding-top: 12px; }
.modes-label { margin: 0 0 12px; font-weight: 400; font-size: 24px; letter-spacing: .12em; text-transform: uppercase; }
.mode-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 2.1fr); gap: 14px; align-items: stretch; }
.mode-card { display: grid; gap: 6px; padding: 0 0 10px; text-align: center; background: transparent; border: 1px solid transparent; border-radius: 12px; }
.mode-card img { width: 100%; height: auto; aspect-ratio: 19 / 17; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-strong); }
.mode-card:hover img { border-color: rgba(111, 182, 255, .6); box-shadow: 0 0 18px rgba(46, 140, 255, .35); }
.mode-card b { font-weight: 400; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.mode-card small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.holo-card { position: relative; border: 1px solid rgba(185, 214, 255, .4); border-radius: 6px; padding: 8px; display: grid; gap: 6px; align-content: start; }
.holo-card img { width: 100%; height: auto; border-radius: 4px; opacity: .8; }
.holo-title { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.holo-card .soon { position: absolute; right: 14px; bottom: 14px; background: rgba(7, 8, 11, .8); }

.feature-strip { list-style: none; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.feature-strip li { display: flex; gap: 12px; align-items: center; }
.feature-strip b { font-size: 13px; letter-spacing: .08em; }
.feature-strip small { font-size: 10px; }
.feature-strip .cap-icon { width: 40px; height: 40px; }
.poster-foot { margin: 0 0 8px; text-align: center; font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--text); }
.poster-foot span { color: var(--muted); margin: 0 12px; }

/* Medium windows: stack the right column under the figure; modes in two rows */
@media (max-width: 1280px) {
  .poster-stage { grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.3fr); }
  .poster-right { grid-column: 1 / -1; grid-template-columns: 1fr 1.4fr auto; align-items: center; }
  .holo-row { grid-template-columns: 1fr auto; }
  .mode-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .holo-card { grid-column: 1 / -1; max-width: 520px; justify-self: center; }
  .feature-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Phone and small windows */
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 5; transform: translateX(-102%); transition: transform .2s ease; background: var(--bg-2); }
  .sidebar.open { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .6); }
  #menu-toggle { display: inline-block; }
  .topbar, .command-strip { padding: 10px 16px; }
  main { padding: 14px 16px 16px; }
  .tab { padding: 8px 10px; font-size: 14px; }
  #route-badge { display: none; }
  .core-strip { width: 44px; height: 44px; }
  .strip-card { min-width: 130px; }
  .msg { max-width: 100%; }
  .composer-row select { flex: 1; min-width: 0; }
  #count { display: none; }
  .health li { grid-template-columns: 48px 1fr; }
  .health .detail { grid-column: 1 / -1; }
  .poster-word { font-size: 34px; }
  .poster-tag { letter-spacing: .3em; font-size: 10px; }
  .poster-always { display: none; }
  .poster-stage { grid-template-columns: 1fr; }
  .poster-hero { order: -1; max-width: 340px; }
  .poster-hero img { max-height: 46vh; }
  .poster-right { grid-column: auto; grid-template-columns: 1fr; text-align: center; }
  .script { text-align: center; }
  .mode-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .holo-card { grid-column: 1 / -1; }
  .feature-strip { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }
