:root {
  --ink: #07111f;
  --ink-2: #0c1a2b;
  --panel: rgba(15, 31, 50, .84);
  --panel-solid: #10243a;
  --line: rgba(168, 211, 255, .15);
  --muted: #93aac1;
  --text: #f5f9ff;
  --blue: #48a9ff;
  --blue-2: #126ff7;
  --orange: #ff8b38;
  --yellow: #ffd45d;
  --green: #56df9c;
  --red: #ff6577;
  --purple: #b98cff;
  --sidebar: 248px;
  --topbar: 72px;
  --radius: 24px;
  --shadow: 0 22px 70px rgba(0, 0, 0, .26);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--ink);
}

* { box-sizing: border-box; }
html { min-width: 0; background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; min-width: 0; min-height: 100vh; overflow-x: hidden; background:
  radial-gradient(circle at 76% -10%, rgba(18, 111, 247, .18), transparent 32rem),
  radial-gradient(circle at 36% 104%, rgba(255, 139, 56, .12), transparent 34rem),
  #07111f; color: var(--text); }
button, input, textarea, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
::selection { color: #06101b; background: var(--yellow); }

.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; border-radius: 12px; color: var(--ink); background: var(--yellow); font-weight: 800; }
.skip-link:focus { transform: translateY(0); }
.app-shell { min-height: 100vh; }

.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; width: var(--sidebar); flex-direction: column; gap: 22px; padding: 22px 16px; border-right: 1px solid var(--line); background: rgba(5, 15, 27, .9); backdrop-filter: blur(24px); }
.brand { display: flex; min-height: 48px; align-items: center; gap: 12px; padding: 2px 8px; }
.brand-orbit { position: relative; display: grid; width: 45px; height: 45px; flex: 0 0 45px; place-items: center; border: 2px solid rgba(72,169,255,.5); border-radius: 50%; transform: rotate(-16deg); }
.brand-orbit::before, .brand-orbit::after { content: ""; position: absolute; border-radius: 50%; }
.brand-orbit::before { width: 28px; height: 28px; background: linear-gradient(145deg, var(--blue), var(--blue-2)); box-shadow: 0 0 24px rgba(72,169,255,.45); }
.brand-orbit::after { width: 9px; height: 9px; top: -3px; right: 2px; background: var(--orange); box-shadow: 0 0 14px var(--orange); }
.brand-orbit i { position: absolute; width: 59px; height: 18px; border: 2px solid rgba(255,139,56,.54); border-width: 2px 0; border-radius: 50%; }
.brand strong { display: block; font-size: 24px; line-height: .95; letter-spacing: -.055em; }
.brand strong span { color: var(--orange); }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

.primary-nav { display: grid; gap: 3px; min-height: 0; overflow: auto; scrollbar-width: thin; }
.nav-group { margin: 14px 10px 7px; color: #607b96; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 9px 11px; border: 1px solid transparent; border-radius: 13px; color: #a9bed0; font-size: 13px; font-weight: 700; transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease; }
.nav-link:hover { color: #fff; background: rgba(72,169,255,.07); transform: translateX(2px); }
.nav-link.active { color: #fff; border-color: rgba(72,169,255,.2); background: linear-gradient(90deg, rgba(18,111,247,.25), rgba(18,111,247,.05)); box-shadow: inset 3px 0 var(--blue); }
.nav-link .nav-icon { display: grid; width: 23px; height: 23px; place-items: center; color: var(--blue); font-size: 17px; }
.nav-link .nav-count { margin-left: auto; min-width: 23px; padding: 3px 6px; border-radius: 99px; color: var(--ink); background: var(--yellow); font-size: 10px; text-align: center; }
.sidebar-guard { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; padding: 13px; border: 1px solid rgba(86,223,156,.16); border-radius: 15px; background: rgba(86,223,156,.07); }
.sidebar-guard strong, .sidebar-guard small { display: block; }
.sidebar-guard strong { color: var(--green); font-size: 12px; }
.sidebar-guard small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.pulse-dot { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 4px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(86,223,156,.1), 0 0 16px var(--green); }

.topbar { position: fixed; z-index: 25; top: 0; right: 0; left: var(--sidebar); display: flex; height: var(--topbar); align-items: center; justify-content: space-between; gap: 18px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(7,17,31,.79); backdrop-filter: blur(22px); }
.crumbs { min-width: 0; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs strong { color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.search-trigger { display: flex; width: 230px; height: 38px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(255,255,255,.035); cursor: pointer; }
.search-trigger span:first-child { color: var(--blue); font-size: 22px; }
.search-trigger kbd { margin-left: auto; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; color: #6f87a0; background: var(--ink); font-size: 9px; }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(255,255,255,.035); cursor: pointer; }
.icon-button:hover { color: #fff; border-color: rgba(72,169,255,.35); }
.mobile-menu { display: none; }
.profile-chip { display: flex; align-items: center; gap: 9px; padding: 4px 7px 4px 4px; border: 1px solid transparent; border-radius: 14px; }
.profile-chip:hover { border-color: var(--line); background: rgba(255,255,255,.03); }
.profile-chip .avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: var(--ink); background: linear-gradient(145deg, var(--yellow), var(--orange)); font-weight: 900; }
.profile-chip strong, .profile-chip small { display: block; line-height: 1.15; }
.profile-chip strong { font-size: 12px; }
.profile-chip small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.workspace { min-height: 100vh; margin-left: var(--sidebar); padding: calc(var(--topbar) + 28px) clamp(18px, 3vw, 46px) 60px; }
.loading-state { display: grid; min-height: 60vh; place-content: center; justify-items: center; gap: 11px; color: var(--muted); text-align: center; }
.loading-state strong { color: var(--text); }
.loader { width: 54px; height: 54px; border: 2px solid rgba(72,169,255,.2); border-top-color: var(--blue); border-right-color: var(--orange); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.page { width: min(1460px, 100%); margin: 0 auto; animation: rise .38s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; max-width: 850px; font-size: clamp(30px, 5vw, 58px); line-height: .96; letter-spacing: -.055em; text-wrap: balance; }
h2 { margin: 0; font-size: clamp(22px, 3vw, 32px); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
h3 { margin: 0; font-size: 17px; line-height: 1.18; letter-spacing: -.018em; }
.lead { max-width: 780px; margin: 13px 0 0; color: #a9bed0; font-size: clamp(14px, 1.6vw, 17px); line-height: 1.55; }
.head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid rgba(72,169,255,.28); border-radius: 13px; color: #eaf5ff; background: rgba(72,169,255,.08); font-weight: 800; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); border-color: rgba(72,169,255,.55); background: rgba(72,169,255,.14); }
.button.primary { color: #06101b; border-color: transparent; background: linear-gradient(135deg, var(--yellow), var(--orange)); box-shadow: 0 12px 30px rgba(255,139,56,.2); }
.button.green { color: #051710; border-color: transparent; background: linear-gradient(135deg, #7af0b8, var(--green)); }
.button.danger { color: #ffdbe0; border-color: rgba(255,101,119,.32); background: rgba(255,101,119,.09); }
.button:disabled { color: #61788f; border-color: var(--line); background: rgba(255,255,255,.025); box-shadow: none; cursor: not-allowed; transform: none; }
.text-link { color: var(--blue); font-weight: 800; }

.surface { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(17,38,60,.88), rgba(11,26,43,.8)); box-shadow: var(--shadow); }
.panel { padding: clamp(17px, 2.4vw, 27px); }
.section { margin-top: 28px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.section-title p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }

.hero { position: relative; display: grid; min-height: 350px; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 28px; overflow: hidden; padding: clamp(24px, 4vw, 48px); border-color: rgba(72,169,255,.23); background:
  radial-gradient(circle at 85% 12%, rgba(72,169,255,.22), transparent 18rem),
  radial-gradient(circle at 73% 86%, rgba(255,139,56,.15), transparent 18rem),
  linear-gradient(135deg, rgba(16,41,68,.96), rgba(8,22,38,.94)); }
.hero::after { content: ""; position: absolute; right: -90px; bottom: -120px; width: 360px; height: 360px; border: 1px solid rgba(72,169,255,.14); border-radius: 50%; box-shadow: 0 0 0 34px rgba(72,169,255,.028), 0 0 0 78px rgba(255,139,56,.02); }
.hero-copy { position: relative; z-index: 1; align-self: center; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 25px; }
.hero-visual { position: relative; z-index: 1; display: grid; min-height: 250px; place-items: center; }
.world-orbit { position: relative; display: grid; width: min(270px, 72vw); aspect-ratio: 1; place-items: center; border: 1px solid rgba(72,169,255,.22); border-radius: 50%; }
.world-orbit::before, .world-orbit::after { content: ""; position: absolute; border-radius: 50%; }
.world-orbit::before { inset: 13%; border: 1px dashed rgba(255,212,93,.25); animation: spin 18s linear infinite reverse; }
.world-orbit::after { inset: 30%; background: radial-gradient(circle at 38% 32%, #6bc2ff, var(--blue-2) 48%, #082c69 72%); box-shadow: 0 0 52px rgba(72,169,255,.35); }
.orbit-node { position: absolute; z-index: 2; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; color: var(--ink); background: var(--yellow); box-shadow: 0 12px 24px rgba(0,0,0,.26); font-weight: 900; }
.orbit-node:nth-child(1) { top: 0; left: 35%; }
.orbit-node:nth-child(2) { right: -4px; top: 39%; background: var(--green); }
.orbit-node:nth-child(3) { bottom: 3px; left: 23%; background: var(--orange); }
.orbit-caption { position: relative; z-index: 3; width: 102px; color: #fff; font-size: 13px; font-weight: 900; text-align: center; text-shadow: 0 2px 12px #052456; }

.chip { display: inline-flex; min-height: 27px; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: #b8ccde; background: rgba(255,255,255,.035); font-size: 10px; font-weight: 900; letter-spacing: .02em; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.blue { color: #82c7ff; border-color: rgba(72,169,255,.25); background: rgba(72,169,255,.08); }
.chip.green, .chip.pass, .chip.verified_live, .chip.owner_approved { color: var(--green); border-color: rgba(86,223,156,.22); background: rgba(86,223,156,.07); }
.chip.orange, .chip.stop_gate, .chip.needs_decision { color: var(--orange); border-color: rgba(255,139,56,.24); background: rgba(255,139,56,.08); }
.chip.yellow, .chip.local_prototype, .chip.release_candidate { color: var(--yellow); border-color: rgba(255,212,93,.22); background: rgba(255,212,93,.07); }
.chip.red, .chip.fail, .chip.legacy_conflict { color: var(--red); border-color: rgba(255,101,119,.22); background: rgba(255,101,119,.07); }
.chip.purple, .chip.external_hypothesis { color: var(--purple); border-color: rgba(185,140,255,.24); background: rgba(185,140,255,.07); }
.chip.unknown_needs_check, .chip.code_disabled, .chip.superseded, .chip.planned { color: #9db0c1; }

.kpi-card { position: relative; min-height: 148px; overflow: hidden; padding: 20px; }
.kpi-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -30px; bottom: -35px; border: 18px solid currentColor; border-radius: 50%; opacity: .035; }
.kpi-card .kpi-label { color: var(--muted); font-size: 11px; font-weight: 800; }
.kpi-card strong { display: block; margin: 15px 0 6px; font-size: 36px; line-height: 1; letter-spacing: -.05em; }
.kpi-card small { color: var(--muted); line-height: 1.4; }
.kpi-card.blue { color: var(--blue); }
.kpi-card.orange { color: var(--orange); }
.kpi-card.green { color: var(--green); }
.kpi-card.yellow { color: var(--yellow); }
.kpi-card .kpi-label, .kpi-card small { color: var(--muted); }

.product-chain { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; counter-reset: chain; }
.chain-step { position: relative; min-height: 115px; padding: 16px 13px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); counter-increment: chain; }
.chain-step::before { content: counter(chain); display: grid; width: 28px; height: 28px; margin-bottom: 13px; place-items: center; border-radius: 10px; color: var(--ink); background: var(--blue); font-size: 11px; font-weight: 950; }
.chain-step:nth-child(2)::before, .chain-step:nth-child(5)::before { background: var(--yellow); }
.chain-step:nth-child(3)::before, .chain-step:nth-child(6)::before { background: var(--orange); }
.chain-step:nth-child(4)::before { background: var(--green); }
.chain-step:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; top: 45%; right: -15px; color: var(--blue); font-weight: 900; }
.chain-step strong { font-size: 12px; line-height: 1.35; }

.focus-card { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 22px; align-items: center; }
.focus-card p { color: var(--muted); line-height: 1.55; }
.gate-meter { position: relative; display: grid; width: 135px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) 0 75%, rgba(255,255,255,.06) 75%); }
.gate-meter::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--panel-solid); }
.gate-meter span { position: relative; z-index: 1; text-align: center; }
.gate-meter strong { display: block; font-size: 29px; }
.gate-meter small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.plain-box { padding: 14px 16px; border-left: 3px solid var(--blue); border-radius: 0 14px 14px 0; color: #bfd0df; background: rgba(72,169,255,.06); font-size: 12px; line-height: 1.55; }
.plain-box strong { color: var(--blue); }
.warning-box { border-left-color: var(--orange); background: rgba(255,139,56,.07); }
.warning-box strong { color: var(--orange); }

.compact-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.compact-item { display: flex; align-items: flex-start; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); }
.compact-item .item-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 10px; color: var(--ink); background: var(--yellow); font-size: 11px; font-weight: 950; }
.compact-item strong, .compact-item small { display: block; }
.compact-item strong { font-size: 12px; }
.compact-item small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.compact-item .chip { margin-left: auto; }

.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); }
.field, .filter-input { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: rgba(4,13,24,.58); outline: none; }
.filter-input { width: min(320px, 100%); }
.field:focus, .filter-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(72,169,255,.1); }
select.field, select.filter-input { color-scheme: dark; }
textarea.field { min-height: 115px; resize: vertical; line-height: 1.5; }
.field-label { display: grid; gap: 7px; color: #cbd9e5; font-size: 11px; font-weight: 850; }
.field-label small { color: var(--muted); font-weight: 500; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }

.mechanics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mechanic-card { position: relative; display: flex; min-height: 225px; flex-direction: column; padding: 19px; overflow: hidden; }
.mechanic-card::after { content: attr(data-index); position: absolute; right: 10px; bottom: -18px; color: rgba(255,255,255,.025); font-size: 82px; font-weight: 950; letter-spacing: -.08em; }
.mechanic-card:hover { border-color: rgba(72,169,255,.32); transform: translateY(-2px); }
.mechanic-card h3 { margin: 15px 0 8px; }
.mechanic-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.48; }
.mechanic-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; color: var(--blue); font-size: 11px; font-weight: 850; }
.card-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.id-label { color: #6f88a0; font-family: ui-monospace, "Cascadia Code", monospace; font-size: 10px; font-weight: 800; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; }
.detail-stack { display: grid; gap: 14px; }
.info-block { padding: 19px; }
.info-block h3 { margin-bottom: 10px; color: #dceafb; }
.info-block p, .info-block li { color: #a9bed0; font-size: 13px; line-height: 1.58; }
.info-block ul { margin: 0; padding-left: 20px; }
.meta-list { display: grid; gap: 9px; margin: 0; }
.meta-row { display: grid; grid-template-columns: 115px minmax(0,1fr); gap: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.meta-row dt { color: var(--muted); font-size: 10px; font-weight: 800; }
.meta-row dd { margin: 0; color: #d7e5f2; font-size: 11px; line-height: 1.45; }

.slice-card { display: flex; min-height: 230px; flex-direction: column; padding: 21px; }
.slice-card.active { border-color: rgba(86,223,156,.34); background: linear-gradient(145deg, rgba(21,57,63,.76), rgba(12,31,45,.85)); }
.slice-card p { color: var(--muted); font-size: 13px; line-height: 1.52; }
.slice-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.gate-list { display: grid; gap: 10px; }
.gate-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); }
.gate-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: var(--ink); background: var(--green); font-weight: 950; }
.gate-row.blocked .gate-icon { background: var(--orange); }
.gate-row strong { font-size: 12px; }

.graph-shell { overflow: hidden; }
.graph-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; border-bottom: 1px solid var(--line); }
.graph-stage { position: relative; min-height: 580px; overflow: auto; background:
  linear-gradient(rgba(72,169,255,.04) 1px, transparent 1px),
  linear-gradient(90deg, rgba(72,169,255,.04) 1px, transparent 1px); background-size: 32px 32px; }
.graph-stage svg { display: block; width: 1200px; height: 680px; }
.graph-edge { stroke: rgba(116,159,198,.24); stroke-width: 1.2; }
.graph-node { cursor: pointer; }
.graph-node rect { stroke: rgba(255,255,255,.14); stroke-width: 1; fill: #132d47; rx: 12; }
.graph-node[data-type="actor"] rect { fill: #18486e; }
.graph-node[data-type="character"] rect { fill: #603b22; }
.graph-node[data-type="economy"] rect { fill: #4a3e16; }
.graph-node[data-type="evidence"] rect { fill: #18513a; }
.graph-node[data-status="STOP_GATE"] rect { stroke: var(--orange); stroke-width: 2; }
.graph-node text { fill: #eff7ff; font-size: 11px; font-weight: 750; pointer-events: none; }
.graph-node .node-type { fill: #8eabc4; font-size: 8px; text-transform: uppercase; }
.graph-node:focus rect, .graph-node:hover rect { stroke: var(--yellow); stroke-width: 3; }
.graph-inspector { min-height: 115px; padding: 17px; border-top: 1px solid var(--line); }
.graph-inspector p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.accessible-graph { max-height: 370px; overflow: auto; }

.character-card { position: relative; min-height: 380px; overflow: hidden; }
.character-card img { width: 100%; height: 245px; object-fit: cover; object-position: center 22%; filter: saturate(.92) contrast(1.04); }
.character-card::after { content: ""; position: absolute; inset: 140px 0 auto; height: 110px; background: linear-gradient(transparent, #10243a); pointer-events: none; }
.character-copy { position: relative; z-index: 1; margin-top: -24px; padding: 0 20px 21px; }
.character-copy p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.character-hero { position: relative; display: grid; min-height: 470px; grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr); overflow: hidden; }
.character-hero img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; }
.character-hero-copy { display: grid; align-content: center; padding: clamp(24px,4vw,48px); background: radial-gradient(circle at 0 50%, rgba(72,169,255,.15), transparent 55%); }

.ledger-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ledger-card { position: relative; overflow: hidden; padding: 20px; }
.ledger-card::before { content: "OFF"; position: absolute; top: 16px; right: 16px; color: var(--green); font-size: 10px; font-weight: 950; letter-spacing: .15em; }
.ledger-card strong { display: block; margin: 18px 0 4px; font-size: 25px; }
.ledger-card p { color: var(--muted); font-size: 11px; line-height: 1.45; }
.sim-result { display: grid; min-height: 210px; place-items: center; text-align: center; }
.sim-result strong { display: block; color: var(--yellow); font-size: clamp(38px, 7vw, 72px); letter-spacing: -.06em; }
.sim-result small { color: var(--muted); }
input[type="range"] { width: 100%; accent-color: var(--orange); }

.metric-chart { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 130px minmax(0,1fr) 52px; align-items: center; gap: 12px; }
.bar-row label, .bar-row span { color: #b7cadb; font-size: 11px; }
.bar-track { height: 11px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.055); }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--green)); transform-origin: left; animation: grow .7s ease both; }
@keyframes grow { from { transform: scaleX(0); } }
.formula { padding: 20px; overflow: auto; border: 1px solid rgba(72,169,255,.18); border-radius: 17px; color: #a8d6ff; background: #081727; font-family: ui-monospace, "Cascadia Code", monospace; font-size: 12px; line-height: 1.65; }

.decision-card { padding: 22px; }
.decision-card .question { margin: 12px 0; color: #d8e6f3; font-size: 14px; line-height: 1.48; }
.recommendation { margin: 14px 0; padding: 13px; border: 1px solid rgba(86,223,156,.18); border-radius: 14px; color: #bdebd4; background: rgba(86,223,156,.055); font-size: 12px; line-height: 1.5; }
.recommendation strong { color: var(--green); }
.no-action { margin: 10px 0 16px; color: #e9b5bd; font-size: 11px; line-height: 1.5; }
.no-action strong { color: var(--red); }
.decision-form { display: grid; gap: 10px; margin-top: 15px; }

.qa-board { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.qa-item { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.018); }
.qa-state { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; color: var(--ink); background: var(--green); font-weight: 950; }
.qa-item.fail .qa-state { color: #fff; background: var(--red); }
.qa-item strong { display: block; font-size: 11px; }
.qa-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }

.audit-list { position: relative; display: grid; gap: 0; }
.audit-event { position: relative; display: grid; grid-template-columns: 124px 24px minmax(0,1fr); gap: 12px; min-height: 86px; }
.audit-event time { padding-top: 3px; color: var(--muted); font-size: 10px; text-align: right; }
.audit-line { position: relative; display: flex; justify-content: center; }
.audit-line::before { content: ""; position: absolute; inset: 14px auto -14px; width: 1px; background: var(--line); }
.audit-line::after { content: ""; position: relative; width: 10px; height: 10px; margin-top: 5px; border: 3px solid var(--panel-solid); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.audit-event:last-child .audit-line::before { display: none; }
.audit-copy { padding-bottom: 20px; }
.audit-copy strong { font-size: 12px; }
.audit-copy p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

.permission-table, .data-table { width: 100%; border-collapse: collapse; }
.permission-table th, .permission-table td, .data-table th, .data-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 11px; text-align: left; vertical-align: top; }
.permission-table th, .data-table th { color: var(--muted); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.allow { color: var(--green); font-weight: 900; }
.deny { color: var(--red); font-weight: 900; }
.table-wrap { width: 100%; overflow: auto; }

.prototype-callout { display: grid; min-height: 92px; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 16px 20px; border-color: rgba(255,212,93,.22); background: linear-gradient(105deg,rgba(255,212,93,.1),rgba(72,169,255,.08)); transition: transform .18s ease,border-color .18s ease; }
.prototype-callout:hover { transform: translateY(-2px); border-color: rgba(255,212,93,.42); }
.prototype-callout-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 16px; color: var(--ink); background: linear-gradient(145deg,var(--yellow),var(--orange)); font-size: 24px; font-weight: 950; }
.prototype-callout small,.prototype-callout strong,.prototype-callout em { display: block; }
.prototype-callout small { color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.prototype-callout strong { margin-top: 4px; font-size: 17px; }
.prototype-callout em { margin-top: 4px; color: var(--muted); font-size: 10px; font-style: normal; }
.prototype-callout b { color: var(--yellow); font-size: 11px; }

.prototype-hero { position: relative; display: grid; grid-template-columns: minmax(300px,.72fr) minmax(0,1.28fr); gap: clamp(24px,5vw,70px); align-items: center; overflow: hidden; padding: clamp(22px,4vw,48px); border-color: rgba(255,139,56,.24); background: radial-gradient(circle at 13% 16%, rgba(255,212,93,.13), transparent 34%), radial-gradient(circle at 90% 14%, rgba(72,169,255,.14), transparent 35%), linear-gradient(145deg, rgba(17,38,60,.95), rgba(8,22,38,.92)); }
.prototype-hero::after { content: "ПРОВЕРЕНО / ДЕМО"; position: absolute; right: -44px; bottom: 20px; padding: 8px 54px; transform: rotate(-36deg); color: rgba(86,223,156,.4); border: 1px solid rgba(86,223,156,.15); font-size: 10px; font-weight: 950; letter-spacing: .2em; }

.workspace-link { color: var(--muted); font-size: 12px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.workspace-link:hover, .workspace-link:focus-visible { color: var(--cyan); }
.prototype-phone { position: relative; width: min(330px,100%); min-height: 580px; justify-self: center; overflow: hidden; border: 7px solid #050a0f; border-radius: 42px; background: #08131e; box-shadow: 0 34px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.12); }
.prototype-phone::before { content: ""; position: absolute; z-index: 3; top: 8px; left: 50%; width: 84px; height: 20px; transform: translateX(-50%); border-radius: 99px; background: #030609; }
.prototype-status { display: flex; min-height: 42px; align-items: center; justify-content: space-between; padding: 10px 16px 4px; color: #b9c9d6; background: rgba(3,9,14,.8); font-size: 9px; }
.prototype-status strong { color: #fff; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.prototype-hud { padding: 13px 14px 11px; border-bottom: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(12,25,36,.96), rgba(7,18,27,.88)); }
.prototype-hud > div:first-child { display: flex; align-items: center; gap: 8px; font-size: 10px; }
.prototype-hud > div:first-child > span:last-child { margin-left: auto; color: var(--yellow); }
.prototype-meters { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 10px; }
.prototype-meters i { position: relative; height: 5px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.09); }
.prototype-meters i::before { content: ""; display: block; width: var(--fill); height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--blue),var(--green)); }
.prototype-map { position: relative; min-height: 388px; overflow: hidden; background: linear-gradient(28deg, transparent 23%, rgba(42,72,84,.55) 24% 28%, transparent 29%), linear-gradient(145deg,#183b33,#0d2828 56%,#153439); }
.prototype-map::before { content: ""; position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px); background-size: 34px 34px; }
.map-road { position: absolute; z-index: 1; height: 48px; border: 1px solid rgba(255,255,255,.1); background: #28343d; box-shadow: inset 0 0 0 11px #303e48, inset 0 0 0 12px rgba(255,255,255,.08); }
.road-one { top: 128px; right: -28px; left: -28px; transform: rotate(-8deg); }
.road-two { top: 70px; bottom: -30px; left: 134px; width: 48px; height: auto; transform: rotate(11deg); }
.map-place { position: absolute; z-index: 2; display: grid; min-width: 70px; min-height: 52px; place-items: center; padding: 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; color: #07111f; box-shadow: 0 12px 25px rgba(0,0,0,.28); font-size: 9px; }
.map-place.plot { top: 58px; left: 28px; background: var(--yellow); }
.map-place.bus { right: 23px; bottom: 70px; background: var(--blue); }
.map-player { position: absolute; z-index: 3; top: 220px; left: 116px; display: grid; width: 34px; height: 34px; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #06101b; background: var(--orange); box-shadow: 0 0 0 8px rgba(255,139,56,.16),0 10px 20px rgba(0,0,0,.35); font-weight: 950; }
.prototype-map small { position: absolute; z-index: 2; right: 10px; bottom: 8px; color: rgba(255,255,255,.48); font-size: 8px; }
.prototype-radio { display: flex; min-height: 54px; align-items: center; gap: 9px; padding: 9px 13px; border-top: 1px solid rgba(72,169,255,.18); background: #0b1b28; }
.prototype-radio > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #07111f; background: var(--yellow); font-size: 10px; }
.prototype-radio div { min-width: 0; margin-right: auto; }
.prototype-radio strong,.prototype-radio small { display: block; }
.prototype-radio strong { font-size: 10px; }
.prototype-radio small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.prototype-radio i { width: 3px; height: 12px; border-radius: 99px; background: var(--blue); animation: radio-wave .9s ease-in-out infinite alternate; }
.prototype-radio i:nth-last-child(2) { height: 20px; animation-delay: -.3s; }
.prototype-radio i:last-child { height: 8px; animation-delay: -.55s; }
@keyframes radio-wave { to { transform: scaleY(.45); opacity: .55; } }
.prototype-quest { display: flex; min-height: 44px; align-items: center; justify-content: space-between; padding: 8px 13px; color: #cbd9e5; background: #07131d; font-size: 9px; font-weight: 850; }
.prototype-quest strong { padding: 7px 10px; border-radius: 9px; color: #07111f; background: var(--green); }
.prototype-summary { position: relative; z-index: 1; }
.prototype-summary h2 { max-width: 640px; margin-top: 12px; font-size: clamp(30px,4.4vw,55px); }
.prototype-summary > p:not(.eyebrow) { max-width: 680px; color: #b9ccdd; font-size: 16px; line-height: 1.6; }
.prototype-kpis { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 24px 0; }
.prototype-kpis > div { padding: 14px; border: 1px solid rgba(86,223,156,.18); border-radius: 15px; background: rgba(86,223,156,.06); }
.prototype-kpis > div.danger { border-color: rgba(255,101,119,.22); background: rgba(255,101,119,.07); }
.prototype-kpis strong,.prototype-kpis span { display: block; }
.prototype-kpis strong { color: var(--green); font-size: 29px; }
.prototype-kpis .danger strong { color: var(--red); }
.prototype-kpis span { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.loop-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: loop; }
.loop-list li { display: grid; min-height: 50px; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 11px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.02); }
.loop-list span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: var(--ink); background: var(--yellow); font-size: 9px; font-weight: 950; }
.loop-list strong { font-size: 12px; }
.workflow-rail { display: grid; gap: 0; }
.workflow-rail > div { position: relative; display: grid; min-height: 68px; grid-template-columns: 40px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 11px; padding: 7px 0 12px; }
.workflow-rail > div:not(:last-child)::after { content: ""; position: absolute; top: 39px; bottom: -6px; left: 16px; width: 1px; background: linear-gradient(var(--blue),rgba(72,169,255,.1)); }
.workflow-rail span { grid-row: 1 / span 2; display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid rgba(72,169,255,.25); border-radius: 11px; color: var(--blue); background: rgba(72,169,255,.08); font-size: 9px; font-weight: 950; }
.workflow-rail strong { font-size: 12px; }
.workflow-rail small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.evidence-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.evidence-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.018); }
.evidence-card.confirmed { border-color: rgba(86,223,156,.2); }
.evidence-card.inferred { border-color: rgba(255,212,93,.2); }
.evidence-card.unknown { border-color: rgba(255,139,56,.2); }
.evidence-card h3 { margin: 14px 0 10px; }
.evidence-card p { color: #b7c9d9; font-size: 11px; line-height: 1.55; }
.evidence-card ul { display: grid; gap: 7px; margin: 0; padding-left: 17px; color: #b7c9d9; font-size: 11px; line-height: 1.5; }
.findings-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.prototype-proof { min-width: 0; margin: 0; overflow: hidden; border: 1px solid rgba(72,169,255,.22); border-radius: 18px; background: #050d16; }
.prototype-proof img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.prototype-proof figcaption { padding: 10px 12px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.package-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.package-list li { display: grid; grid-template-columns: 27px minmax(0,1fr); gap: 9px; align-items: start; color: #c7d5e2; font-size: 11px; line-height: 1.45; }
.package-list span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; color: var(--ink); background: var(--blue); font-size: 8px; font-weight: 950; }
.missing-files { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 17px; color: var(--red); font-size: 10px; }
.missing-files code,.source-proof code { max-width: 100%; padding: 5px 7px; overflow-wrap: anywhere; border: 1px solid rgba(255,101,119,.2); border-radius: 7px; color: #ffd7dd; background: rgba(255,101,119,.07); }
.source-proof { margin-top: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.018); }
.source-proof summary { color: var(--blue); cursor: pointer; font-size: 11px; font-weight: 850; }
.source-proof .meta-list { margin-top: 13px; }
.form-boundary { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.identity-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; }
.identity-strip > div { display: flex; min-width: 0; align-items: center; gap: 12px; }
.avatar-large { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 14px; color: var(--ink); background: linear-gradient(145deg,var(--yellow),var(--orange)); font-weight: 950; }
.identity-strip strong,.identity-strip small { display: block; }
.identity-strip small { margin-top: 4px; color: var(--muted); font-size: 10px; }

.empty-state { display: grid; min-height: 240px; place-content: center; justify-items: center; gap: 8px; padding: 25px; color: var(--muted); text-align: center; }
.empty-state .empty-icon { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(72,169,255,.2); border-radius: 19px; color: var(--blue); background: rgba(72,169,255,.06); font-size: 25px; }
.empty-state strong { color: var(--text); }
.empty-state p { max-width: 420px; margin: 0; font-size: 12px; line-height: 1.5; }

.command-palette { width: min(680px, calc(100vw - 28px)); max-height: min(620px, 80vh); padding: 0; overflow: hidden; border: 1px solid rgba(72,169,255,.25); border-radius: 22px; color: var(--text); background: #0c1d30; box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.command-palette::backdrop { background: rgba(2,8,16,.72); backdrop-filter: blur(7px); }
.palette-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.palette-head label { font-size: 12px; font-weight: 900; }
.palette-head button { width: 32px; height: 32px; border: 0; color: var(--muted); background: transparent; font-size: 22px; cursor: pointer; }
#palette-input { width: calc(100% - 28px); height: 49px; margin: 14px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; color: #fff; background: #071421; outline: none; }
.palette-results { max-height: 430px; overflow: auto; padding: 0 14px 14px; }
.palette-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border-radius: 12px; }
.palette-item:hover, .palette-item:focus { background: rgba(72,169,255,.09); }
.palette-item strong { display: block; font-size: 12px; }
.palette-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; width: min(360px, calc(100vw - 32px)); gap: 9px; }
.toast { padding: 14px 16px; border: 1px solid rgba(86,223,156,.25); border-radius: 14px; color: #dffff0; background: #123728; box-shadow: var(--shadow); animation: toast-in .24s ease both; font-size: 12px; line-height: 1.4; }
.toast.error { border-color: rgba(255,101,119,.3); color: #ffe2e6; background: #3d1820; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.playtest-shell { padding: 10px; overflow: hidden; }
.playtest-note { display: flex; min-width: 0; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 9px; }
.playtest-back { display: inline-flex; min-height: 44px; align-items: center; color: var(--yellow); font-size: 13px; font-weight: 800; white-space: nowrap; }
.playtest-current { display: grid; min-width: 150px; max-width: min(440px, 36vw); gap: 2px; }
.playtest-current small { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.playtest-current strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playtest-changes { position: relative; }
.playtest-changes summary { min-height: 44px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 11px; font-weight: 850; list-style-position: inside; }
.playtest-changes[open] p { position: absolute; z-index: 12; top: calc(100% + 7px); right: 0; width: min(480px, calc(100vw - 20px)); max-height: min(45vh, 360px); overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: 13px; color: #dcecff; white-space: pre-line; background: #0b1928; box-shadow: var(--shadow); }
.playtest-feedback { margin-left: auto; }
.playtest-frame { display: block; width: 100%; height: 100%; min-height: 0; border: 1px solid var(--line); border-radius: 12px; background: #030508; }
.build-progress { white-space: pre-line; }
.release-list, .poll-grid, .poll-options { display: grid; gap: 14px; }
.release-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.release-row > div { min-width: 0; }
.release-row h3 { margin: 8px 0 5px; }
.release-row p { color: var(--muted); }
.release-row small { display: block; margin-top: 6px; color: var(--muted); overflow-wrap: anywhere; }
.file-field { min-height: 48px; padding: 10px; }
.poll-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.poll-card { padding: 22px; }
.poll-card h2 { margin: 14px 0 8px; }
.poll-card > p { color: var(--muted); }
.poll-card form { margin-top: 18px; }
.poll-option { position: relative; display: grid; gap: 9px; padding: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; background: rgba(255,255,255,.025); }
.poll-option > span { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.poll-option input { width: 19px; height: 19px; margin-right: 9px; accent-color: var(--blue); }
.poll-option i { position: absolute; inset: auto 0 0; width: var(--poll-width); height: 4px; background: linear-gradient(90deg,var(--blue),var(--purple)); }
.poll-option.selected { border-color: rgba(65,141,255,.62); background: rgba(65,141,255,.11); }
.poll-score { color: var(--muted); white-space: nowrap; }
.poll-card form > .button, .poll-card > .button { margin-top: 14px; }
.grana-invite { display: flex; align-items: center; gap: 18px; }
.grana-mark { display: grid; flex: 0 0 auto; width: 64px; height: 64px; place-items: center; border-radius: 22px; background: linear-gradient(135deg, var(--blue), var(--purple)); box-shadow: 0 14px 35px rgba(65,141,255,.25); font: 800 28px var(--display); }
.feedback-compose { padding: 22px; }
.grana-feedback-guide { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.grana-feedback-guide img { width: 92px; height: 92px; border: 1px solid var(--line); border-radius: 28px; object-fit: cover; }
.feedback-details { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.feedback-details summary { cursor: pointer; font-weight: 800; }
.feedback-details .form-grid { margin-top: 14px; }
.feedback-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.feedback-submit-row span, .feedback-author { color: var(--muted); }
.feedback-grid, .feedback-thread { display: grid; gap: 16px; }
.feedback-card { padding: 20px; }
.feedback-card h3 { margin: 14px 0 8px; }
.feedback-thread { gap: 10px; margin-top: 15px; }
.feedback-reply { padding: 12px 14px; border: 1px solid rgba(65,141,255,.18); border-radius: 13px; background: rgba(65,141,255,.09); }
.feedback-reply small { margin-left: 8px; color: var(--muted); }
.feedback-reply p { margin-top: 6px; }
.feedback-status-form, .feedback-reply-form { display: flex; align-items: end; gap: 10px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.feedback-status-form .field-label, .feedback-reply-form .field-label { flex: 1; }
.tester-boundary { margin-top: 12px; }
.knowledge-sha { font: 850 26px ui-monospace,SFMono-Regular,Consolas,monospace !important; letter-spacing: -.04em !important; }
.creator-hub-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; color: inherit; transition: transform .18s ease,border-color .18s ease; }
.creator-hub-card:hover { border-color: rgba(65,141,255,.4); transform: translateY(-2px); }
.creator-hub-card h2 { margin: 0 0 7px; }
.creator-hub-card p { margin: 0; color: var(--muted); }
.boundary-panel { border-color: rgba(255,183,77,.28); background: linear-gradient(135deg,rgba(255,183,77,.08),rgba(65,141,255,.05)); }
.canon-feature { display: grid; grid-template-columns: minmax(260px,.82fr) minmax(0,1.18fr); align-items: center; gap: clamp(22px,4vw,54px); overflow: hidden; padding: 0; border-color: rgba(255,183,77,.28); background: radial-gradient(circle at 70% 30%,rgba(255,183,77,.11),transparent 40%),#07111d; }
.canon-feature img { width: 100%; min-height: 300px; height: 100%; object-fit: cover; }
.canon-feature > div { padding: 28px 34px 28px 0; }
.canon-feature h2 { margin: 18px 0 10px; font-size: clamp(27px,3vw,43px); }
.canon-feature p { max-width: 760px; color: #e8f4ff; font-size: 17px; line-height: 1.7; }
.canon-feature small { display: block; margin-top: 18px; color: var(--muted); line-height: 1.6; }
.concert-callout { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(320px,1.2fr) auto; align-items: center; gap: 22px; border-color: rgba(255,183,77,.25); background: linear-gradient(120deg,rgba(255,117,54,.08),rgba(65,141,255,.06)); }
.concert-callout h2 { margin: 12px 0 7px; }
.concert-callout p { color: var(--muted); line-height: 1.55; }
.concert-flow { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 9px; }
.concert-flow span { padding: 10px 12px; border: 1px solid rgba(255,183,77,.2); border-radius: 12px; background: rgba(255,183,77,.07); text-align: center; font-size: 12px; font-weight: 850; }
.concert-flow b { color: var(--yellow); }
.creator-layout { display: grid; grid-template-columns: minmax(240px,.66fr) minmax(0,1.7fr); gap: 16px; align-items: start; }
.scenario-starters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.scenario-starter { display: grid; gap: 10px; padding: 18px; color: inherit; text-align: left; cursor: pointer; }
.scenario-starter:hover { border-color: rgba(255,183,77,.42); transform: translateY(-2px); }
.scenario-starter .chip { justify-self: start; }
.scenario-starter small { color: var(--muted); line-height: 1.5; }
.scenario-starter b { color: var(--yellow); font-size: 12px; }
.creator-list { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; }
.creator-list-items { display: grid; gap: 9px; margin-top: 16px; }
.creator-list-item { display: grid; gap: 7px; width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 13px; color: inherit; text-align: left; background: rgba(255,255,255,.025); cursor: pointer; }
.creator-list-item:hover,.creator-list-item.active { border-color: rgba(65,141,255,.5); background: rgba(65,141,255,.1); }
.creator-list-item small { color: var(--muted); }
.tall-field { min-height: 330px; }
.muted-note { color: var(--muted); font-size: 11px; }
.action-stack { display: grid; gap: 10px; margin-top: 18px; }
.research-card h2 { margin: 18px 0 10px; }
.research-card p { color: var(--muted); line-height: 1.65; }
.concert-research-hero { display: grid; gap: 24px; padding: clamp(22px,4vw,38px); border-color: rgba(255,183,77,.26); background: radial-gradient(circle at 85% 15%,rgba(255,105,48,.14),transparent 42%),linear-gradient(135deg,rgba(65,141,255,.09),rgba(255,183,77,.05)); }
.concert-research-hero h2 { margin: 18px 0 10px; font-size: clamp(27px,4vw,46px); }
.concert-research-hero p { max-width: 900px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.concert-flow.large { flex-wrap: wrap; justify-content: flex-start; }
.concert-flow.large span { min-width: 120px; padding: 14px 18px; font-size: 14px; }
.brief-card h2 { margin: 16px 0 10px; }
.brief-card h3 { margin: 22px 0 9px; color: var(--yellow); font-size: 13px; }
.brief-card > p { color: var(--muted); line-height: 1.65; }
.uncertainty-panel { display: grid; grid-template-columns: minmax(240px,.7fr) minmax(0,1.3fr); gap: 28px; border-color: rgba(255,101,119,.27); background: linear-gradient(135deg,rgba(255,101,119,.075),rgba(255,183,77,.035)); }
.uncertainty-panel h2 { margin: 14px 0 8px; }
.uncertainty-panel p { color: var(--muted); line-height: 1.6; }
.grana-workbench { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 16px; align-items: start; }
.grana-modes { display: grid; gap: 9px; margin: 17px 0; }
.grana-modes label { display: flex; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; background: rgba(255,255,255,.025); }
.grana-modes label:has(input:checked) { border-color: rgba(65,141,255,.55); background: rgba(65,141,255,.12); }
.grana-modes input { margin-top: 3px; accent-color: var(--blue); }
.grana-modes span { display: grid; gap: 4px; }
.grana-modes small { color: var(--muted); }
.grana-query { min-height: 200px; }
.grana-result { min-height: 520px; }
.grana-result h2 { margin: 18px 0; }
.grana-answer-copy { overflow: visible; margin: 0; color: #dcecff; white-space: pre-wrap; word-break: normal; font: 400 13px/1.75 var(--body); }
.citation-grid { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; }
.citation-chip { display: grid; max-width: 240px; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); font-size: 10px; }
.citation-chip strong { color: var(--blue); }
.working { animation: pulse 1s infinite alternate; }
@keyframes pulse { to { transform: scale(1.12); filter: drop-shadow(0 0 12px var(--blue)); } }
.boundary-strip { margin-bottom: 16px; padding: 14px 17px; border: 1px solid rgba(255,183,77,.28); border-radius: 14px; color: #ffe4bc; background: rgba(255,183,77,.08); line-height: 1.6; }
.overlay-layout { display: grid; grid-template-columns: minmax(230px,.6fr) minmax(0,1.8fr); gap: 16px; align-items: start; }
.overlay-main { display: grid; gap: 16px; }
.overlay-stage { position: relative; min-height: 380px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(circle at 50% 100%,rgba(31,102,165,.25),transparent 50%),#06111e; }
.overlay-stage iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; background: transparent; }
.fake-player { position: absolute; right: 5%; bottom: 6%; left: 5%; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 5px 16px; padding: 17px 20px; border: 1px solid rgba(255,255,255,.15); border-radius: 17px; background: rgba(2,9,17,.9); box-shadow: 0 15px 50px rgba(0,0,0,.45); }
.fake-player span { color: var(--muted); font-size: 11px; }
.fake-player button { grid-column: 2; grid-row: 1 / 3; width: 48px; border: 0; border-radius: 50%; color: #07111d; background: var(--yellow); }
.code-field { min-height: 170px; tab-size: 2; white-space: pre; font: 12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace; }
.overlay-assets form,.release-request { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.overlay-assets .field { flex: 1; min-width: 220px; }
.asset-token-list { display: grid; gap: 9px; width: 100%; margin-top: 14px; }
.asset-token { display: grid; grid-template-columns: 1fr auto; gap: 5px 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-align: left; background: rgba(255,255,255,.025); cursor: pointer; }
.asset-token code { grid-column: 1 / -1; color: var(--blue); overflow-wrap: anywhere; }
.asset-token small { color: var(--muted); }
.release-request textarea { flex: 1 1 100%; min-height: 90px; }
.mobile-nav { display: none; }

.guest-entry-mode .sidebar,
.guest-entry-mode .topbar,
.guest-entry-mode .mobile-nav { display: none !important; }
.playtest-fullscreen .sidebar,
.playtest-fullscreen .topbar,
.playtest-fullscreen .mobile-nav { display: none !important; }
.playtest-fullscreen {
  overflow: hidden;
  padding: 0;
}
.playtest-fullscreen .workspace {
  height: 100dvh;
  min-height: 0;
  margin-left: 0;
  padding: 0;
  overflow: hidden;
}
.playtest-fullscreen .playtest-page {
  height: 100dvh;
  min-height: 0;
}
.playtest-fullscreen .playtest-page > :not(.playtest-shell) { display: none; }
.playtest-fullscreen .playtest-shell {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100dvh;
  grid-template-rows: auto minmax(0,1fr);
  padding: max(7px, env(safe-area-inset-top)) max(7px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left));
  border-radius: 0;
}
.playtest-fullscreen .playtest-frame { width: 100%; height: 100%; min-height: 0; }
.guest-entry-mode .workspace {
  min-height: 100dvh;
  margin-left: 0;
  padding: clamp(18px,4vw,54px);
}
.guest-entry-page {
  display: grid;
  min-height: calc(100dvh - clamp(36px,8vw,108px));
  place-items: center;
}
.guest-entry-card {
  position: relative;
  width: min(680px,100%);
  padding: clamp(24px,5vw,54px);
  overflow: hidden;
  border-color: rgba(93,219,255,.28);
  background:
    radial-gradient(circle at 88% 10%,rgba(135,89,255,.18),transparent 34%),
    linear-gradient(145deg,rgba(10,31,51,.98),rgba(7,19,33,.98));
  box-shadow: 0 28px 90px rgba(0,0,0,.42);
}
.guest-entry-card::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(93,219,255,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(93,219,255,.025),0 0 0 92px rgba(135,89,255,.018);
  pointer-events: none;
}
.guest-entry-card > * { position: relative; z-index: 1; }
.guest-entry-mark {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 20px;
  color: #06111e;
  background: linear-gradient(135deg,var(--yellow),var(--orange));
  box-shadow: 0 14px 32px rgba(255,139,56,.24);
  font: 950 30px var(--display);
}
.guest-entry-card h1 { max-width: 560px; }
.guest-entry-card .lead { max-width: 590px; }
.guest-entry-form {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  gap: 16px;
  margin-top: 24px;
}
.guest-entry-form .button { align-self: end; min-height: 48px; }
.guest-entry-message {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.guest-entry-message.error { color: #ffb7c0; }
.guest-code-input {
  letter-spacing: .055em;
  text-transform: uppercase;
  font-family: ui-monospace,SFMono-Regular,Consolas,monospace;
}
.guest-entry-footnote {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  :root { --sidebar: 216px; }
  .mechanics-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-chain { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .chain-step:nth-child(3)::after { display: none; }
  .grid.four { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .prototype-hero { grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr); gap: 32px; }
  .evidence-columns { grid-template-columns: 1fr; }
  .findings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --sidebar: 248px; --topbar: 64px; }
  .sidebar { transform: translateX(-105%); transition: transform .24s ease; box-shadow: 24px 0 70px rgba(0,0,0,.35); }
  body.menu-open .sidebar { transform: translateX(0); }
  .topbar { left: 0; padding: 0 16px; }
  .mobile-menu { display: grid; }
  .workspace { margin-left: 0; padding-top: calc(var(--topbar) + 20px); }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 220px; }
  .detail-layout { grid-template-columns: 1fr; }
  .character-hero { grid-template-columns: 1fr; }
  .character-hero img { height: 360px; min-height: 0; }
  .search-trigger { width: 42px; justify-content: center; }
  .search-trigger span:nth-child(2), .search-trigger kbd { display: none; }
  .prototype-hero { grid-template-columns: 1fr; }
  .prototype-phone { width: min(360px,100%); }
  .creator-layout,.grana-workbench,.overlay-layout { grid-template-columns: 1fr; }
  .canon-feature,.concert-callout,.uncertainty-panel { grid-template-columns: 1fr; }
  .canon-feature > div { padding: 0 24px 28px; }
  .canon-feature img { min-height: 250px; max-height: 390px; }
  .concert-callout .button { justify-self: start; }
  .creator-list { position: static; max-height: none; }
}

@media (max-width: 680px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .playtest-fullscreen { padding-bottom: 0; overflow: hidden; }
  .playtest-fullscreen .workspace { min-height: 0; }
  .workspace { padding-right: 13px; padding-bottom: 24px; padding-left: 13px; }
  .topbar { gap: 8px; }
  .crumbs { display: none; }
  .profile-chip span:last-child { display: none; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .head-actions { width: 100%; justify-content: stretch; }
  .head-actions .button { flex: 1; }
  .hero { min-height: 0; padding: 22px 18px; border-radius: 21px; }
  .hero-visual { display: none; }
  .grid.two, .grid.three, .grid.four, .mechanics-grid, .ledger-strip, .qa-board { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .product-chain { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .chain-step:nth-child(2n)::after { display: none; }
  .chain-step:nth-child(3)::after { display: block; }
  .focus-card { grid-template-columns: 1fr; }
  .gate-meter { width: 112px; justify-self: start; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .filter-input { width: 100%; }
  .mechanic-card { min-height: 205px; }
  .creator-hub-card { grid-template-columns: auto 1fr; }
  .creator-hub-card > span:last-child { grid-column: 2; }
  .scenario-starters { grid-template-columns: 1fr; }
  .concert-flow { flex-wrap: wrap; justify-content: flex-start; }
  .concert-flow b { transform: rotate(90deg); }
  .overlay-stage { min-height: 330px; }
  .bar-row { grid-template-columns: 92px minmax(0,1fr) 42px; gap: 7px; }
  .audit-event { grid-template-columns: 20px minmax(0,1fr); }
  .audit-event time { grid-column: 2; text-align: left; }
  .audit-line { grid-column: 1; grid-row: 1 / span 2; }
  .audit-copy { grid-column: 2; }
  .meta-row { grid-template-columns: 1fr; gap: 4px; }
  .gate-row { grid-template-columns: 32px minmax(0,1fr); }
  .gate-row .chip { grid-column: 2; justify-self: start; }
  .character-hero img { height: 310px; }
  .mobile-nav { position: fixed; z-index: 28; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); left: 8px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px; border: 1px solid rgba(168,211,255,.16); border-radius: 19px; background: rgba(8,21,36,.94); box-shadow: 0 18px 50px rgba(0,0,0,.4); backdrop-filter: blur(22px); }
  .mobile-nav a { display: grid; min-width: 0; min-height: 48px; place-items: center; gap: 2px; border-radius: 13px; color: var(--muted); font-size: 9px; font-weight: 800; }
  .mobile-nav a span { font-size: 17px; line-height: 1; }
  .mobile-nav a.active { color: var(--yellow); background: rgba(255,212,93,.08); }
  .toast-region { right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); }
  .prototype-hero { padding: 17px 13px; border-radius: 21px; }
  .prototype-phone { min-height: 540px; border-width: 5px; border-radius: 34px; }
  .prototype-map { min-height: 350px; }
  .prototype-summary h2 { font-size: 32px; }
  .prototype-kpis { grid-template-columns: 1fr; }
  .prototype-kpis > div { display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 8px; }
  .prototype-kpis span { margin-top: 0; }
  .identity-strip { align-items: flex-start; flex-direction: column; }
  .prototype-callout { grid-template-columns: 45px minmax(0,1fr); padding: 14px; }
  .prototype-callout-icon { width: 44px; height: 44px; border-radius: 13px; }
  .prototype-callout b { grid-column: 2; }
  .playtest-note { gap: 6px; margin-bottom: 6px; }
  .playtest-current { order: 3; width: 100%; max-width: none; }
  .playtest-changes { margin-left: auto; }
  .playtest-changes[open] p { position: fixed; top: 106px; right: 7px; left: 7px; width: auto; }
  .playtest-feedback { display: none; }
  .playtest-frame { border-radius: 0; }
  .poll-grid { grid-template-columns: 1fr; }
  .release-row { align-items: stretch; flex-direction: column; }
  .release-row .button { width: 100%; }
  .grana-feedback-guide { align-items: flex-start; }
  .grana-feedback-guide img { width: 68px; height: 68px; border-radius: 20px; }
  .feedback-compose { padding: 16px; }
  .feedback-status-form, .feedback-reply-form { align-items: stretch; flex-direction: column; }
  .feedback-top-link { display: none; }
  #character-lab-link { display: none; }
  .guest-entry-mode { padding-bottom: 0; }
  .guest-entry-mode .workspace { padding: 12px; }
  .guest-entry-page { min-height: calc(100dvh - 24px); }
  .guest-entry-card { padding: 24px 18px; border-radius: 22px; }
  .guest-entry-form { grid-template-columns: 1fr; }
  .guest-entry-message { grid-column: auto; }
  .guest-entry-form .button { width: 100%; }
}

@media (max-width: 360px) {
  .workspace { padding-right: 9px; padding-left: 9px; }
  .topbar { padding: 0 9px; }
  h1 { font-size: 30px; }
  .hero-tags .chip:nth-child(n+4) { display: none; }
  .product-chain { gap: 7px; }
  .chain-step { min-height: 108px; padding: 13px 10px; }
  .panel { padding: 15px; }
  .mobile-nav a { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }

/* Shared game-strategy workshop */
.strategy-page { max-width: 1480px; }
.strategy-guard { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 24px; padding: 24px; background: linear-gradient(135deg,rgba(65,141,255,.11),rgba(58,210,159,.06)); }
.strategy-guard > span { color: var(--yellow); font-size: 30px; }
.strategy-guard h2 { margin: 12px 0 7px; font-size: 22px; }
.strategy-guard p, .muted-note { color: var(--muted); }
.strategy-topics, .strategy-proposals, .strategy-knowledge, .strategy-batches { display: grid; gap: 18px; }
.strategy-topic { display: grid; grid-template-columns: minmax(280px,.82fr) minmax(360px,1.18fr); overflow: hidden; }
.strategy-topic-copy { padding: 24px; border-right: 1px solid var(--line); background: linear-gradient(160deg,rgba(255,212,93,.06),transparent 55%); }
.strategy-topic-copy h2 { margin: 16px 0 10px; font-size: 25px; }
.strategy-recommendation { color: var(--text); font-size: 17px; line-height: 1.55; }
.strategy-topic details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 15px; }
.strategy-topic summary { cursor: pointer; color: var(--blue); font-weight: 800; }
.strategy-topic-details { display: grid; gap: 9px; margin-top: 13px; color: var(--muted); }
.strategy-topic-details ul { margin: 0; padding-left: 21px; }
.strategy-draft-form { padding: 24px; }
.strategy-draft-form textarea { min-height: 92px; }
.strategy-draft-form label:nth-child(2) textarea { min-height: 130px; }
.strategy-autosave { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; margin-bottom: 18px; padding: 12px 14px; border: 1px solid rgba(58,210,159,.2); border-radius: 14px; background: rgba(58,210,159,.06); }
.strategy-autosave .pulse-dot { grid-row: 1 / span 2; }
.strategy-autosave small { color: var(--muted); }
.strategy-save-row, .strategy-approve-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 17px; }
.strategy-package-form { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.strategy-package-form input[type="file"] { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
.strategy-save-status { color: var(--muted); font-size: 13px; }
.strategy-proposals { grid-template-columns: repeat(2,minmax(0,1fr)); }
.strategy-proposal { padding: 22px; }
.strategy-proposal.approved { border-color: rgba(58,210,159,.28); }
.strategy-proposal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 14px; }
.strategy-proposal-heading h3 { font-size: 22px; }
.strategy-select { display: flex; align-items: center; gap: 8px; order: 2; padding: 9px 11px; border: 1px solid rgba(255,212,93,.25); border-radius: 12px; color: var(--yellow); cursor: pointer; font-size: 12px; font-weight: 800; white-space: nowrap; }
.strategy-select input { width: 18px; height: 18px; accent-color: var(--yellow); }
.strategy-position { margin-top: 13px; color: var(--text); font-size: 16px; line-height: 1.58; white-space: pre-line; }
.strategy-meta { display: grid; gap: 10px; margin-top: 17px; }
.strategy-meta div { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.strategy-meta dt { color: var(--muted); font-size: 12px; font-weight: 800; }
.strategy-meta dd { margin: 0; white-space: pre-line; }
.strategy-comments { display: grid; gap: 9px; margin-top: 18px; }
.strategy-comment { padding: 11px 13px; border: 1px solid rgba(65,141,255,.18); border-radius: 12px; background: rgba(65,141,255,.07); }
.strategy-comment small { margin-left: 8px; color: var(--muted); }
.strategy-comment p { margin-top: 6px; white-space: pre-line; }
.strategy-comment-form { display: flex; align-items: flex-end; gap: 10px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.strategy-comment-form .field-label { flex: 1; }
.strategy-comment-form textarea { min-height: 72px; }
.strategy-approval { padding: 25px; border-color: rgba(255,212,93,.3); background: linear-gradient(150deg,rgba(255,212,93,.07),rgba(255,138,76,.025)); }
.strategy-approval-boundary { align-self: end; padding: 15px; border: 1px solid rgba(255,212,93,.18); border-radius: 14px; background: rgba(0,0,0,.12); }
.strategy-approval-boundary p { margin: 4px 0 10px; color: var(--muted); }
.strategy-knowledge { grid-template-columns: repeat(3,minmax(0,1fr)); }
.strategy-knowledge-card { padding: 20px; border-color: rgba(58,210,159,.23); }
.strategy-knowledge-card h3 { margin: 14px 0 8px; }
.strategy-knowledge-card p { white-space: pre-line; }
.strategy-knowledge-card > small { display: block; margin-top: 13px; color: var(--muted); overflow-wrap: anywhere; }
.strategy-batch { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; }
.strategy-batch p { margin: 6px 0; color: var(--muted); }
.strategy-batch > div:last-child { display: grid; justify-items: end; gap: 10px; }

@media (max-width: 1050px) {
  .strategy-topic { grid-template-columns: 1fr; }
  .strategy-topic-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .strategy-proposals, .strategy-knowledge { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .strategy-guard { grid-template-columns: 1fr; gap: 13px; padding: 18px; }
  .strategy-guard > span { transform: rotate(90deg); justify-self: center; }
  .strategy-topic-copy, .strategy-draft-form, .strategy-approval { padding: 17px; }
  .strategy-topic-copy h2 { font-size: 22px; }
  .strategy-save-row, .strategy-approve-row, .strategy-comment-form, .strategy-batch { align-items: stretch; flex-direction: column; }
  .strategy-save-row .button, .strategy-approve-row .button, .strategy-comment-form .button, .strategy-batch .button { width: 100%; }
  .strategy-proposal { padding: 17px; }
  .strategy-proposal-heading { align-items: stretch; flex-direction: column; }
  .strategy-select { order: 0; justify-content: center; white-space: normal; }
  .strategy-meta div { grid-template-columns: 1fr; gap: 4px; }
  .strategy-batch > div:last-child { justify-items: stretch; width: 100%; }
}
