:root { color-scheme: dark; --ink:#101e25; --panel:#162831; --edge:#344952; --text:#eee9dd; --muted:#b5c3c6; --gold:#e2b86f; --paper:#f2ead8; --paper-ink:#243237; --ally:#96d1c7; --danger:#ed9e85; }
* { box-sizing:border-box; }
html { min-height:100%; background:var(--ink); }
body { margin:0; min-height:100vh; min-height:100svh; background:radial-gradient(ellipse at 40% 0%,#233944 0%,var(--ink) 65%) 0 0 / 100% 100vh no-repeat var(--ink); color:var(--text); font-family:system-ui,-apple-system,sans-serif; line-height:1.5; }
button,input,select,textarea { font:inherit; }
button { min-height:44px; border:1px solid var(--gold); border-radius:7px; background:var(--gold); color:#182830; padding:8px 14px; cursor:pointer; font-weight:650; }
button:hover:not(:disabled) { filter:brightness(1.13); }
button:disabled { opacity:.55; cursor:not-allowed; }
button.quiet { background:transparent; color:var(--text); border-color:var(--edge); }
:focus-visible { outline:3px solid #10212a; outline-offset:3px; box-shadow:0 0 0 6px #f2ead8; }
button[aria-pressed=true]::before { content:'✓ '; }
input,select,textarea { color:var(--text); background:#10212a; border:1px solid #63757c; border-radius:6px; min-height:44px; padding:8px; max-width:100%; }
textarea { resize:vertical; width:100%; }
label { font-size:.8rem; color:var(--muted); display:block; }
h1,h2,h3,p { margin:0; }
h1,h2,h3,.brand strong { font-family:Georgia,'Times New Roman',serif; font-weight:500; }
h1 { font-size:clamp(1.15rem,1.8vw,1.6rem); line-height:1.25; }
h2 { font-size:1.4rem; }
h3 { font-size:1.2rem; }
.topbar { min-height:76px; display:flex; flex-wrap:wrap; align-items:center; gap:14px; padding:12px 22px; border-bottom:1px solid var(--edge); background:#101e25d9; }
.brand { display:flex; align-items:center; gap:8px; min-width:155px; }
.brand strong { font-size:1.45rem; color:var(--gold); display:block; }
.brand span:not(.sigil) { font-size:.65rem; letter-spacing:.12em; color:var(--muted); }
.sigil { color:var(--gold); font-size:2.6rem; line-height:1; }
.campaign { flex:1 0 16rem; min-width:0; }
.eyebrow { display:block; font-size:.64rem; font-weight:650; text-transform:uppercase; letter-spacing:.17em; color:var(--gold); margin-bottom:4px; }
.connection { display:flex; align-items:center; gap:10px; font-size:.75rem; }
.stop { background:#61322e; border-color:#c77b68; color:#ffebe5; white-space:nowrap; }
.notice { padding:10px 24px; background:#553a2d; border-bottom:1px solid var(--gold); }
.table { display:grid; grid-template-columns:240px minmax(0,1fr); gap:16px; padding:18px 22px; align-items:start; max-width:1920px; margin:auto; }
.panel { border:1px solid var(--edge); border-radius:10px; background:var(--panel); box-shadow:0 6px 22px #0002; min-width:0; overflow:hidden; }
.party { grid-row:1 / span 2; padding:14px 10px; }.party h2 {font-size:1.2rem;}.party .section-head {margin:0 4px 12px;}
.section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.tag { border:1px solid #52646c; border-radius:4px; padding:3px 6px; font-size:.68rem; white-space:nowrap; color:var(--muted); }
.muted { color:var(--muted); }
.small { font-size:.75rem; }
.party>.small { margin:8px 0 15px; }
.character { padding:10px; border:1px solid transparent; border-radius:8px; margin-bottom:10px; background:#1c303a; }
.character.active { border-color:var(--gold); box-shadow:inset 3px 0 var(--gold); }
.character-head { display:flex; align-items:center; gap:9px; margin-bottom:10px; }
.avatar { display:grid; place-items:center; width:36px; height:36px; border:1px solid var(--ally); border-radius:50%; background:#29444c; color:var(--ally); font-family:Georgia,serif; font-size:1.2rem; flex-shrink:0; }
.character .choose { display:flex; align-items:center; gap:9px; text-align:left; width:100%; padding:0; min-height:44px; margin:0 0 8px; border:0; font-size:.85rem; }.character-name {overflow-wrap:anywhere;}.character .stats {font-variant-numeric:tabular-nums;}.character .condition-badges {font-size:.72rem;color:var(--danger);}.character details {font-size:.75rem;}.character details summary {color:var(--muted);min-height:36px;}.character details p {margin:6px 0;}
.stats { display:flex; justify-content:space-between; gap:5px; font-size:.8rem; }
.hp { height:5px; border-radius:4px; background:#40545b; margin:7px 0 9px; overflow:hidden; }
.hp span { display:block; height:100%; background:var(--ally); }
.resources { display:grid; grid-template-columns:1fr auto; gap:4px 8px; font-size:.75rem; color:var(--muted); margin:8px 0; }.resources dd {margin:0;text-align:right;font-variant-numeric:tabular-nums;}
.source,.receipt { border-top:1px solid var(--edge); margin-top:12px; padding-top:12px; font-size:.75rem; }
summary { cursor:pointer; min-height:44px; display:flex; align-items:center; }
summary::before { content:'＋'; margin-right:8px; }
details[open]>summary::before { content:'−'; }
details p { margin-bottom:8px; }
.voice { display:block; border-top:1px solid var(--edge); padding-top:8px; margin-top:10px; font-size:.8rem; }
.voice>span { font-size:1.6rem; color:var(--gold); }
.voice p { color:var(--muted); font-size:.7rem; margin:8px 0; }
.voice button { padding:7px 10px; font-size:.8rem; }
.voice-buttons { display:flex; flex-wrap:wrap; align-items:start; gap:8px; margin:8px 0; }.voice-buttons>.ui-details {flex-basis:auto;}.voice-buttons>.ui-details[open] {display:flex;flex-wrap:wrap;gap:8px;}.voice-buttons>.ui-details>summary {width:auto;}.voice .ui-details {font-size:.75rem;color:var(--muted);}
.voice button[aria-pressed=true] { border-color:var(--gold); color:var(--gold); }
.scene {display:grid;grid-template-columns:minmax(0,1fr) 276px;}.scene>* {grid-column:1;min-width:0;}.scene>.scene-stage {grid-column:1;grid-row:2;}.scene>.section-head {grid-column:1/-1;padding:14px 18px;}.scene>.section-head h2 {font-size:1.3rem;}
.map-toolbar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; padding:0 12px 10px; }.map-toolbar label {margin-right:auto;}
.map-toolbar label { display:flex; align-items:center; gap:8px; }
.map-toolbar select { max-width:180px; font-size:.75rem; }
.map-toolbar button { font-size:.7rem; }
.map-toolbar #map-size[aria-pressed=true] { background:var(--gold); border-color:var(--gold); color:var(--ink); }
.map-motion-options {font-size:.75rem;}.map-motion-options label {margin:8px 0 0;}.map-motion-options select {min-height:44px;}.map-motion-options summary {min-height:44px;display:flex;align-items:center;}
.map-movement-notice {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:0 12px 10px;font-size:.75rem;}.map-movement-notice button {min-height:44px;}
#map .movement-casing {fill:none;stroke:#10212a;stroke-width:6;pointer-events:none;}
#map .movement-trail {fill:none;stroke:#f2ead8;stroke-width:2;stroke-dasharray:3 4;pointer-events:none;}
#map .movement-destination {fill:none;stroke:#f2ead8;stroke-width:2;stroke-dasharray:4 3;pointer-events:none;}
@media(forced-colors:active){#map .movement-casing{stroke:Canvas;}#map .movement-trail,#map .movement-destination{stroke:CanvasText;}}
.map-wrap { position:relative; margin:0 12px; background:#2b4146; border:1px solid #567074; border-radius:6px; max-height:clamp(340px,46vh,580px); overflow:auto; }
#map { display:block; width:100%; height:clamp(340px,46vh,580px); min-height:250px; touch-action:manipulation; }
#map .cell { fill:#374b4d; stroke:#556969; stroke-width:.6; cursor:crosshair; }
#map .cell:nth-child(3n) { fill:#35494b; }
#map.image-backed .cell { fill:transparent; stroke:#d6e0df; stroke-opacity:.65; }
#map.image-backed .wall { fill:url(#map-wall-hatch); stroke:#e2b86f; stroke-width:2; }
#map .cell:hover { fill:#516969; }
#map .wall { fill:url(#map-wall-hatch); stroke:#93a4a5; stroke-width:1.5; }
#map:focus-visible {outline:3px solid #f2ead8;outline-offset:-4px;box-shadow:inset 0 0 0 7px #10212a;}
.map-wrap:focus-within {outline:3px solid #f2ead8;outline-offset:2px;box-shadow:0 0 0 7px #10212a;}
#map .map-label { fill:#eae7d9; font:10px system-ui,sans-serif; paint-order:stroke; stroke:#14242c; stroke-width:2px; pointer-events:none; }
#map .map-cluster {fill:#14242c;stroke:#f2ead8;stroke-width:1.5;pointer-events:none;}
#map .map-cluster-count {fill:#f2ead8;font:bold 17px system-ui,sans-serif;text-anchor:middle;pointer-events:none;}
#map .map-cluster-count-with-life {font-size:14px;}
#map .map-cluster-roles {fill:#f2ead8;font:7px system-ui,sans-serif;text-anchor:middle;pointer-events:none;}
#map .map-cluster-current {fill:#14242c;stroke:#f2ead8;stroke-width:1;pointer-events:none;}
.map-occupants {position:fixed;inset:auto;margin:0;width:min(320px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:12px;border:1px solid var(--gold);border-radius:8px;background:var(--panel);color:var(--text);box-shadow:0 6px 22px #0008;z-index:20;}
.map-occupants-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.map-occupants-heading button {width:44px;flex-shrink:0;padding:4px;font-size:1.3rem;}
.map-occupant-options {display:grid;gap:6px;margin-top:10px;}
.map-occupant-option {display:grid;grid-template-columns:24px minmax(0,1fr) 20px;align-items:center;gap:8px;width:100%;text-align:left;min-height:48px;}
.map-occupant-option[aria-pressed=true] {border-color:var(--gold);}
.map-occupant-option[aria-pressed=true]::before {content:none;}
.map-occupant-symbol {font-size:1.2rem;text-align:center;}
.map-occupant-name {display:grid;overflow-wrap:anywhere;}
.map-occupant-name small {font-size:.72rem;font-weight:400;color:var(--muted);}
.map-occupant-check {text-align:center;}
#map .token { fill:#21484c; stroke:var(--ally); stroke-width:2; }
#map .token-contrast { fill:none;stroke:#0b161b;stroke-width:6;pointer-events:none; }
#map .token-current { fill:none;stroke:#f2ead8;stroke-width:1.5;pointer-events:none; }
#map .token-current-casing { stroke-width:4; }
#map .token.other { fill:#583b32; stroke:var(--danger); }
#map .token.active { stroke:var(--gold); stroke-width:3; }
#map .token.dead { fill:#303a3c; stroke:#9aa6a8; stroke-dasharray:3 2; }
#map .initial { fill:#fff6df; font:600 13px Georgia,serif; text-anchor:middle; pointer-events:none; }
#map .feature { fill:#7d6744; stroke:#e2c490; stroke-width:1.5; }
#map .portal { fill:#244550; stroke:#8cc6df; stroke-width:1.5; }
#map .entity { cursor:pointer; }
#map .entity:focus-visible { outline:none;box-shadow:none; }
#map .entity-focus-frame { display:none;fill:none;stroke:#f2ead8;stroke-width:2;pointer-events:none; }
#map .entity-focus-casing { stroke:#0b161b;stroke-width:6; }
#map .entity:focus-visible .entity-focus-frame { display:block; }
#map .cursor { fill:#edcc8226; stroke:#f2cd7d; stroke-width:2; pointer-events:none; }
#map .cursor-casing,#map .selection-casing { fill:none;stroke:#0b161b;stroke-width:6;pointer-events:none; }
#map .selection-mark { fill:none;stroke:#f2ead8;stroke-width:2;pointer-events:none; }
#map .route { fill:none; stroke:#f2cd7d; stroke-width:3; stroke-dasharray:5 3; pointer-events:none; }
#map .route-casing { fill:none;stroke:#0b161b;stroke-width:7;pointer-events:none; }
#map .spell-area-casing { fill:none;stroke:#0b161b;stroke-width:5;pointer-events:none; }
#map .spell-area { fill:url(#map-spell-hatch);stroke:#f2ead8;stroke-width:2;pointer-events:none; }
#map .spell-target-casing {fill:none;stroke:#0b161b;stroke-width:7;stroke-dasharray:5 3;}
#map .spell-target {fill:none;stroke:#f2ead8;stroke-width:3;stroke-dasharray:5 3;}
#map .protected-badge,#map .map-life-badge { fill:#10212a;stroke:#f2ead8;stroke-width:1;pointer-events:none; }
#map .protected-letter,#map .map-life-word { fill:#f2ead8;font:700 9px system-ui,sans-serif;text-anchor:middle;pointer-events:none; }
.map-empty { position:absolute; inset:30% 10% auto; text-align:center; color:#e9e7d7; }
.map-caption { display:flex;flex-wrap:wrap; justify-content:space-between; gap:8px; padding:10px 14px; font-size:.72rem; color:var(--muted); }
.map-key {display:flex;flex-wrap:wrap;gap:10px;align-items:center;}
.map-key-item {display:inline-flex;gap:5px;align-items:center;white-space:nowrap;}
.legend { display:inline-block; flex:none;width:10px; height:10px; border:1px solid currentColor; border-radius:50%; }
.legend.ally { color:var(--ally); }.legend.other { color:var(--danger);border-radius:0;transform:rotate(45deg); }.legend.object { color:var(--gold); border-radius:1px; }
.legend.current { color:var(--text);box-shadow:0 0 0 2px var(--panel),0 0 0 3px currentColor; }
.legend.blocked { width:10px;height:10px;border-radius:0;background:repeating-linear-gradient(45deg,transparent 0 2px,currentColor 2px 3px),repeating-linear-gradient(-45deg,transparent 0 2px,currentColor 2px 3px); }
.legend.affected { width:10px;height:10px;border-radius:0;background:repeating-linear-gradient(-45deg,transparent 0 2px,currentColor 2px 3px); }
#journal-controls-open.quiet { color:var(--paper-ink);border-color:#526065; }
.scene>.action-panel {grid-column:2;grid-row:2;border-left:1px solid var(--edge);}.action-panel {padding:0 14px 16px;}.action-panel>.small {margin:8px 0;}.action-panel .action-header {flex-wrap:wrap;gap:8px;}.action-panel .action-header label,.action-panel .action-header select {width:100%;}.action-panel .action-fields {flex-wrap:wrap;gap:8px;}.action-panel .action-fields label {flex-basis:100%;}.action-panel .ui-details {font-size:.8rem;color:var(--muted);}.action-panel .ui-details[open]>button {display:block;margin:6px 0;max-width:100%;}
.action-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.action-header strong { display:block; font-family:Georgia,serif; font-size:1.2rem; }
.action-header label { display:flex; gap:8px; align-items:center; }
.action-fields { display:flex; gap:12px; margin:12px 0 8px; }
.action-fields label { flex:1; min-width:0; }.action-fields select { display:block; width:100%; font-size:.75rem; }
#equip-field { align-self:center; }#shield-enabled { min-height:initial; }
.preview { margin-top:8px; padding:10px; border:1px solid #4e6167; border-radius:7px; background:#0e2028; }.preview .button-row>.ui-details {flex-basis:100%;}
.preview p { font-size:.8rem; margin-bottom:10px; }
.ruling-review { border-left:3px solid var(--gold); padding:10px 12px; margin-top:12px; font-size:.8rem; overflow-wrap:anywhere; }.ruling-review p { margin-top:8px; }
.button-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.button-row button { font-size:.75rem; }.button-row .small { flex:1; }
.story { grid-column:2; display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr);background:var(--paper); color:var(--paper-ink);position:relative; }.story>.tabs {grid-column:1;grid-row:1;min-width:0;padding-right:110px;}.story>.story-body {grid-column:1;grid-row:2;}.story>#chat-form {grid-column:2;grid-row:1/span 2;border-left:1px solid var(--edge);}.story>#chat-recovery,.story>#receipt {grid-column:1/-1;}.story.history-hidden>.story-body {display:none;}.history-toggle {position:absolute;right:calc(45.45% + 8px);top:0;z-index:1;color:var(--muted);font-size:.7rem;border:0!important;}.story .history-toggle.quiet {color:var(--muted);}
.tabs { display:flex; background:#162831; }
.tabs button { flex:1; border:0; border-bottom:3px solid transparent; border-radius:0; padding:12px 7px; font-size:.75rem; color:var(--muted); background:transparent; }
.tabs button[aria-selected=true] { color:var(--gold); border-bottom-color:var(--gold); }
.story-body { padding:18px 20px; height:280px; overflow:auto; min-height:0; overscroll-behavior:contain; }
.story-body button.quiet { color:var(--paper-ink);border-color:#526065; }
.scene-illustration { margin-bottom:18px; border-bottom:1px solid #b9b19f; padding-bottom:12px; }
.scene-illustration-heading { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; }
.scene-illustration-heading h3 { flex:1 0 130px; font-size:1.05rem; }
.scene-illustration-heading button { font-size:.72rem; padding:6px 10px; }
.scene-illustration figure { margin:8px 0 0; }
.scene-illustration figure>img { display:block; width:100%; height:auto; max-height:350px; object-fit:contain; background:var(--ink); border:1px solid #526065; border-radius:6px; }
.scene-illustration figcaption { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 12px; margin-top:8px; font-size:.75rem; overflow-wrap:anywhere; }
.scene-illustration figcaption>strong { font-weight:650; }
.scene-illustration figure>p { margin-top:6px; color:#526065; }
.story-body:has(>.scene-illustration:not([hidden])>figure:not([hidden])) { height:min(75vh,700px); }
.map-reference-preview { margin:12px 0; }
.map-reference-preview svg { display:block; width:100%; height:auto; max-height:220px; border:1px solid #526065; border-radius:6px; background:var(--ink); }
.map-reference-preview figcaption { margin-top:6px; font-size:.75rem; line-height:1.5; }
.notes-image-preview { display:block; width:auto; max-width:100%; max-height:240px; object-fit:contain; margin:10px 0; border:1px solid var(--edge); border-radius:6px; }
.notes-image-options>summary { min-height:44px; padding:10px 0; cursor:pointer; }
@media(forced-colors:active) { .scene-illustration,.scene-illustration figure>img,.notes-image-preview { border-color:CanvasText; }.scene-illustration figure>p { color:CanvasText; } }
.story .eyebrow { color:#755522; }.story .muted { color:#526065; }
.message { margin-bottom:18px; }.message strong { display:block; font-family:Georgia,serif; color:#355759; margin-bottom:5px; }.message p { white-space:pre-wrap; font-size:.85rem; overflow-wrap:anywhere; }
.journal-entry,.scene-entry { border-bottom:1px solid #cec6b5; padding:12px 0; font-size:.83rem; }
.journal-entry small { display:block; color:#526065; margin-top:5px; }
.dm-status { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; color:var(--paper-ink); border-top:1px solid #c9c0ac; padding:8px 16px; font-size:.72rem; background:#e5dbc6; }
.dm-status #model-speed-open { color:var(--paper-ink); border-color:#526065; }
.source-card a { color:#1d535d; text-decoration:underline; }
.dm-status #model-speed-open:is(:hover,:focus-visible):not(:disabled) { background:var(--paper); border-color:var(--paper-ink); filter:none; }
.dm-status.waiting { border-left:4px solid #755522; font-size:.9rem; font-weight:700; }
.composer { background:#162831; color:var(--text); padding:14px;min-width:0; }.composer label { margin-bottom:6px; }.composer textarea { min-height:76px; margin-bottom:8px; }.composer-tools {display:flex;align-items:start;gap:8px;margin-bottom:8px;flex-wrap:wrap;}.composer-tools select {font-size:.8rem;}.composer-tools .ui-details {font-size:.8rem;}.composer-tools .ui-details[open] {flex-basis:100%;}.composer-tools .ui-details[open]>label {display:flex;align-items:center;gap:8px;}.composer-tools input[type=checkbox] {min-height:20px;width:20px;flex-shrink:0;}.composer-tools .ui-details[open]>.button-row {margin:6px 0;}.composer>#chat-purpose-notice {font-size:.8rem;}
.story .composer .muted { color:var(--muted); }
.composer-recipient { display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:0 0 8px;padding:8px 10px;border:1px solid var(--ally);border-radius:7px;background:var(--ink);font-size:.85rem; }.composer-recipient>div {flex:1 1 12rem;min-width:0;overflow-wrap:anywhere;}.composer-recipient>div>span {font-weight:650;color:var(--ally);}.composer-recipient p {margin:2px 0 0;}.composer-recipient>button {min-height:44px;flex-shrink:0;}.composer-recipient-portrait {flex:none;position:relative;}.composer-recipient-portrait:empty {display:none;}.composer-recipient .composer-recipient-portrait img {width:3.5rem;height:3.5rem;}.composer-recipient.stale {border-style:dashed;border-color:var(--gold);}.composer-recipient.stale>div>span {color:var(--gold);}
.composer-attachment { margin:8px 0; }.composer-attachment p { margin:6px 0; }.composer-attachment>button { margin-top:8px; }
.receipt { background:#162831; color:var(--text); margin:0; padding:0 14px 4px; }.receipt pre { white-space:pre-wrap; overflow-wrap:anywhere; font: .7rem/1.5 system-ui,sans-serif; padding-bottom:12px; }
footer { padding:0 24px 18px; display:flex; justify-content:space-between; font-size:.66rem; color:var(--muted); }
.rules-credits { margin:0 24px 24px; max-width:80ch; color:var(--muted); font-size:.8rem; }
.rules-credits p { line-height:1.5; }
.rules-credits a { color:var(--gold); }
.join { margin:28px auto; padding:24px; max-width:460px; border:1px solid var(--edge); background:var(--panel); border-radius:10px; }.join p { margin:12px 0; }.join input { width:100%; margin:8px 0 16px; }
.join fieldset { border:0; padding:0; min-width:0; }.join legend { font-weight:600; margin-bottom:16px; }.join .route-check input { width:20px; min-width:20px; margin:0; }.join fieldset button { margin:8px 8px 0 0; }#native-table-status { overflow-wrap:anywhere; }
.skip { position:absolute; left:12px; top:-80px; padding:12px; background:var(--gold); color:var(--ink); z-index:10; }.skip:focus { top:12px; }
[hidden] { display:none!important; }
@media(max-width:1250px) { .scene {grid-template-columns:minmax(0,1fr) 248px;}.table {grid-template-columns:clamp(200px,22vw,230px) minmax(0,1fr);gap:12px;padding:14px;}.story {grid-template-columns:1fr 1fr;}.history-toggle {right:calc(50% + 4px);} }
@media(max-width:1000px) { .scene {display:block;}.scene>.action-panel {border-left:0;border-top:1px solid var(--edge);padding:12px 16px;}.action-panel .action-header {flex-wrap:nowrap;}.action-panel .action-header label {width:auto;}.action-panel .action-header select {max-width:230px;}.action-panel .action-fields label {flex-basis:160px;}.preview>.button-row>.ui-details {flex-basis:auto;}.story {display:block;}.story>.tabs {padding-right:110px;}.history-toggle {right:8px;}.story-body {height:260px;}.story>#chat-form {border-left:0;border-top:1px solid var(--edge);}.voice-buttons>.ui-details {flex-basis:auto;}.voice-buttons>.ui-details>summary {width:auto;} }
@media(max-width:650px) { .topbar {gap:8px;padding:10px 12px;}.brand {min-width:0;flex:1;}.brand strong {font-size:1.3rem;}.sigil {font-size:2rem;}.campaign {order:2;flex-basis:100%;}.campaign h1 {font-size:1.1rem;}.connection {font-size:.7rem;}.connection button {padding:6px;}.topbar #mic-indicator {font-size:.65rem;}.stop {padding:8px;}.table {display:flex;flex-direction:column;padding:10px;gap:12px;}.panel {width:100%;}.party {order:0;padding:10px;}.party>.section-head {margin-bottom:8px;}.scene {order:1;}.story {order:2;}#party-cards {display:flex;overflow:auto;gap:8px;align-items:start;scroll-snap-type:x proximity;}.character {margin:0;min-width:142px;flex:1 0 142px;scroll-snap-align:start;}.party>.source {margin-top:8px;padding-top:0;}.scene>.section-head {padding:12px;}.map-toolbar {padding:0 10px 8px;gap:6px;}.map-toolbar label {flex-basis:100%;}.map-toolbar select {max-width:100%;}.map-toolbar button {flex:1;}.map-wrap {max-height:300px;}#map {height:300px;min-height:180px;}.map-caption {font-size:.7rem;flex-wrap:wrap;}.action-panel .action-header {flex-wrap:wrap;}.action-panel .action-header label,.action-panel .action-header select {width:100%;max-width:100%;}.story-body {height:300px;}.composer {padding:12px;}.voice-buttons {gap:6px;}.voice-buttons>.ui-details {flex-basis:auto;}footer {padding:0 12px 12px;gap:8px;} }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }
@media(max-width:650px) { #approach-field,#ruling-field { flex-basis:100%; } }

#profile-open { font-size:.75rem; white-space:nowrap; }
.profile-drawer { color:var(--text); background:var(--panel); border:1px solid var(--edge); width:min(620px,100%); height:100%; max-height:100%; max-width:100%; padding:0; margin:0 0 0 auto; box-shadow:-12px 0 40px #0005; }
.profile-drawer[open] { display:flex; flex-direction:column; }.profile-drawer::backdrop { background:#07131ac9; }
.profile-heading,.profile-footer { display:flex; align-items:center; gap:12px; padding:16px 20px; flex-shrink:0; }.profile-heading { justify-content:space-between; border-bottom:1px solid var(--edge); }.profile-footer { flex-wrap:wrap; border-top:1px solid var(--edge); }
.profile-body { padding:18px 20px; overflow:auto; min-height:0; }.profile-body>p { margin-bottom:12px; }.profile-body h3 { margin-bottom:8px; }
.profile-preview { background:var(--paper); color:var(--paper-ink); border-radius:7px; padding:16px; margin:16px 0; }.profile-preview p,.profile-saved p { font-size:.8rem; margin:7px 0; overflow-wrap:anywhere; white-space:pre-wrap; }.profile-preview small { color:#526065; }
.profile-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:12px 0; }.profile-fields label:has(textarea),.profile-fields label:first-child { grid-column:1/-1; }.profile-fields input,.profile-fields select,.profile-fields textarea,.profile-notes textarea { display:block; width:100%; margin-top:5px; }
.profile-locks,.profile-saved,.profile-auditions { border-top:1px solid var(--edge); padding-top:12px; margin:16px 0; }#profile-locks { display:grid; grid-template-columns:1fr 1fr; gap:4px 12px; }#profile-locks label { display:flex; align-items:center; min-height:44px; gap:8px; }#profile-locks input { min-height:0; width:18px; height:18px; }.profile-notes { margin-top:12px; }
.profile-auditions label { margin:12px 0; }.profile-auditions select { margin-left:8px; max-width:100%; }#profile-audition article { padding:10px 12px; border-left:3px solid var(--gold); margin:12px 0; }#profile-audition h4 { margin:0 0 6px; font-size:.8rem; }#profile-audition p { font-size:.8rem; white-space:pre-wrap; overflow-wrap:anywhere; }#profile-status { padding:10px 12px; border:1px solid var(--edge); border-radius:6px; font-size:.8rem; }
@media(max-width:650px) { .profile-heading,.profile-footer { padding:12px; }.profile-body { padding:14px; }.profile-fields { grid-template-columns:1fr; }#profile-locks { grid-template-columns:1fr; }.profile-heading h2 { font-size:1.3rem; } }

.story-body:has(>.dm-presentation:not([hidden])) { height:min(70vh,660px); }
.dm-presentation label { color:var(--paper-ink); }
.dm-presentation input,.dm-presentation textarea { background:#fffdf7;color:var(--paper-ink);border-color:#526065; }
.dm-presentation { border-top:1px solid #c5beae; margin-top:16px; padding-top:16px; }.dm-presentation>p { font-size:.78rem; margin:6px 0 12px; }.source-card { border:1px solid #c5beae; border-radius:6px; padding:12px; margin:10px 0; background:#f7f0e2; }.source-card h4 { font:500 1.05rem Georgia,serif; margin:0 0 6px; }.source-card p { font-size:.8rem; margin:7px 0; white-space:pre-wrap; overflow-wrap:anywhere; }.source-card small { display:block; font-size:.7rem; color:#526065; overflow-wrap:anywhere; }.source-card button { margin-top:8px; font-size:.75rem; background:#1d4248; color:#fff5df; border-color:#355759; width:100%; }.source-card button.quiet { background:transparent; color:var(--paper-ink); border-color:#526065; } .source-card .suggestion { font-weight:650; color:#76551c; }.source-evidence { border-left:2px solid #9e9683; padding-left:8px; margin:8px 0; }
@media(max-width:650px) { .topbar .brand { min-width:190px; } }

.map-notes { border-top:1px solid var(--edge); border-bottom:1px solid var(--edge); padding:12px 16px; margin-bottom:12px; }
.map-notes p { margin:8px 0; }.notes-row { display:flex; flex-wrap:wrap; gap:10px; align-items:end; }.notes-row label { flex:1; min-width:110px; }.notes-row select,.notes-row input:not([type=checkbox]) { width:100%; }.notes-row .notes-check { display:flex; align-items:center; gap:8px; min-height:44px; flex:0 1 auto; }.notes-check input { width:20px; min-height:20px; }.notes-save { border-top:1px solid var(--edge); padding-top:12px; margin-top:12px; }.notes-coordinates { margin:10px 0; }.notes-coordinates summary { padding:8px 0; min-height:44px; cursor:pointer; }.notes-coordinates label { min-width:70px; flex-basis:70px; }#notes-status { border-left:3px solid var(--gold); padding-left:10px; }#notes-provenance { overflow-wrap:anywhere; }#map.notes-drawing { touch-action:none; cursor:crosshair; }#map.notes-drawing .entity,#map.notes-drawing .cursor { pointer-events:none; }#map .map-note-label { font:600 12px system-ui,sans-serif; paint-order:stroke; stroke:#101e25; stroke-width:3px; }.map-notes .notes-save label:first-child { flex:2; }@media(max-width:650px){.map-notes {padding:12px;} .notes-save label {flex-basis:100%;}.notes-row button {flex-grow:1;}}
.map-notes>.notes-row+.notes-row {margin-top:10px;}#notes-text-field {margin-top:8px;}.notes-options {margin:0;border-bottom:0;}

#map .presentation-focus { fill:none;stroke:#9ae9ef;stroke-width:3;stroke-dasharray:6 3;pointer-events:none; }

#return-brief { margin:12px 0 20px; }
#return-brief > summary { min-height:44px;cursor:pointer; }
#return-brief .quiet { background:#1b4247;color:#fff;border-color:#1b4247; }
#return-brief > p { font-size:.8rem;margin:8px 0; }
#return-content > h3 { margin:14px 0 8px; }

.mage-effects { margin:12px 0; padding:12px; border:1px solid var(--edge); border-radius:7px; }
.mage-effects p { margin-top:6px; overflow-wrap:anywhere; }
#mage-dismiss-field select { width:100%; }
.creature-space{fill:rgba(166,126,80,.12);stroke:var(--muted,#b8a98f);stroke-width:2;stroke-dasharray:5 3}
.squeezed-space{stroke:var(--gold);stroke-dasharray:2 2}.route-check{display:flex;align-items:center;gap:8px;min-height:44px}.route-check input{width:20px;min-height:20px}.route-check[hidden]{display:none}
/* Current identity stays visible; invitations use one inline disclosure. */
.client-seats {grid-column:1/-1;width:100%;min-width:0;order:-1;padding:10px 14px;border:1px solid var(--edge);border-left:3px solid var(--gold);border-radius:8px;background:var(--panel);font-size:.85rem;}
.table:has(>#client-seats:not([hidden]))>.party {grid-row:2/span 2;}
.client-seats.solo-identity {padding:4px 12px;}.client-seats.solo-identity>.seat-bar {gap:0 12px;align-items:center;}.client-seats.solo-identity .seat-identity {min-height:44px;flex:1 1 180px;}
.client-seats.solo-identity #seat-add-person {min-width:0;max-width:100%;}.client-seats.solo-identity #seat-add-person[open] {flex-basis:100%;}
.seat-bar,.seat-identity,.seat-choice,.seat-invitation {display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap;}
.seat-identity {flex:1;gap:4px 10px;overflow-wrap:anywhere;}.seat-identity h2 {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}.seat-identity strong {font-size:1rem;color:var(--gold);}
.seat-choice label {white-space:nowrap;}.client-seats select,.client-seats input {min-width:0;min-height:44px;max-width:100%;}.seat-choice select {width:220px;}.client-seats button,.client-seats summary {min-height:44px;}.client-seats summary {display:flex;align-items:center;width:fit-content;cursor:pointer;}.client-seats summary:hover {color:var(--gold);}.client-seats p {margin:6px 0 0;overflow-wrap:anywhere;}
.seat-manager {max-width:620px;border-top:1px solid var(--edge);padding-top:8px;}.seat-manager>button {margin:8px 0;}.seat-manager form>label {display:block;margin-bottom:6px;}.seat-invitation input {flex:1;}.client-seats:has(#seat-enable:not([hidden]))>.seat-bar {min-height:44px;}
#seat-status {color:var(--gold);}.client-seats:not(.table>*) {max-width:680px;margin:18px auto;padding:14px;}
@media(max-width:650px){.seat-bar {align-items:flex-start;}.seat-identity {flex-basis:calc(100% - 120px);min-height:44px;align-content:center;}.seat-identity .muted {font-size:.8rem;}.seat-choice {flex-basis:100%;}.seat-choice select {flex:1;width:0;}.seat-invitation input {flex-basis:100%;}.seat-invitation button {width:100%;}.client-seats:not(.table>*) {width:calc(100% - 20px);}}
.voice-speaker-review{width:100%;margin:.7rem 0;padding:.7rem;border:1px solid var(--edge);border-radius:6px}
.voice-speaker-review p{white-space:normal;overflow-wrap:anywhere}
.voice-speaker-review textarea{display:block;width:100%;min-width:0;margin:.4rem 0 .6rem}
.voice-speaker-review button{min-height:44px;max-width:100%;overflow-wrap:anywhere}

/* Task menus share one native disclosure pattern; commands retain their owners. */
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;}
.command-menu {position:relative;font-size:.85rem;}.command-menu>summary {padding:8px 12px;border:1px solid var(--edge);border-radius:7px;min-height:44px;}.command-menu>summary::before {content:none;}.command-menu>summary::after {content:'⌄';margin-left:10px;color:var(--muted);}.command-menu[open]>summary {border-color:var(--gold);color:var(--gold);}.command-list {position:absolute;top:calc(100% + 8px);right:0;z-index:20;width:230px;padding:8px;background:#162831;box-shadow:0 12px 36px #0007;border:1px solid #52646c;border-radius:8px;}.command-group+.command-group {border-top:1px solid var(--edge);margin-top:8px;padding-top:8px;}.command-list button {display:block;width:100%;text-align:left;border:0;font-size:.85rem;}.command-label {display:block;font-size:.7rem;color:var(--muted);padding:4px 12px;}.ui-details>summary {min-height:44px;}.ui-details>summary:hover {color:var(--gold);}.ui-ready .party>.ui-details {border-top:1px solid var(--edge);margin-top:10px;font-size:.8rem;}
@media(max-width:650px) {.command-menu {position:static;}.command-list {top:auto;left:12px;right:12px;width:auto;}.topbar .brand {min-width:0;}}

.brand-mark {display:block;flex-shrink:0;border-radius:6px;border:1px solid #f2ead8;background:#fff;}
.composer-speaker {display:block;font-size:.8rem;color:var(--gold);margin:0 0 8px;}
@media(max-width:650px){.topbar .command-menu>summary {font-size:.8rem;padding:8px;}.brand-mark {width:44px;height:44px;}}

.turn-resources {font-size:.72rem;color:var(--muted);margin:6px 0;font-variant-numeric:tabular-nums;}.party .character .hp {margin-bottom:6px;}
@media(max-width:650px){.topbar .brand {flex:1 0 200px;min-width:174px;}.topbar .connection {flex:0 0 auto;}}

.voice-buttons>.ui-details[open] {flex-basis:100%;}.voice-buttons .ui-details p {flex-basis:100%;}.voice p {margin:4px 0;}.voice-buttons {margin:6px 0 0;}.story>.tabs {min-height:44px;}
.turn-resources {display:flex;flex-wrap:wrap;gap:2px 8px;}.turn-resources>span {white-space:nowrap;}
@media(min-width:651px) and (max-width:1100px){.topbar .brand {flex:1;}.topbar .campaign {order:2;flex-basis:100%;}.topbar {gap:10px;}}

.voice-choice {display:flex;align-items:center;gap:8px;font-size:.8rem;}
.voice-choice select {width:auto;min-height:44px;}
#voice-hold {min-width:44px;min-height:44px;touch-action:none;}#voice-hold[aria-pressed=true] {color:var(--ink);}
.voice-speakers {margin-top:8px;min-width:0;}.voice-speakers>.button-row {margin-top:6px;flex-wrap:wrap;}.voice-speakers button {min-width:44px;min-height:44px;overflow-wrap:anywhere;touch-action:none;}.voice-speakers button[aria-pressed=true] {border-color:var(--gold);}.voice-speakers button[aria-pressed=true]::before {content:"✓ ";}.voice-speakers p {margin:6px 0 0;}
@media (forced-colors:active) {
  :focus-visible {outline-color:Highlight;box-shadow:none;}
  #map:focus-visible,.map-wrap:focus-within {outline-color:Highlight;box-shadow:none;}
  #map .token,#map .feature,#map .portal,#map .protected-badge,#map .map-life-badge {fill:Canvas;stroke:CanvasText;}
  #map .token-contrast,#map .cursor-casing,#map .selection-casing,#map .route-casing,#map .spell-area-casing,#map .spell-target-casing,#map .entity-focus-casing {stroke:Canvas;}
  #map .token-current,#map .cursor,#map .selection-mark,#map .route,#map .spell-area,#map .spell-target,#map .entity-focus-frame {stroke:CanvasText;}
  #map .entity-focus-casing {stroke:Canvas;}
  #map .initial,#map .map-label {fill:CanvasText;stroke:Canvas;paint-order:stroke;stroke-width:2;}
  #map .protected-letter,#map .map-life-word {fill:CanvasText;}
  #map .map-cluster,#map .map-cluster-current {fill:Canvas;stroke:CanvasText;}
  #map .map-cluster-count,#map .map-cluster-roles {fill:CanvasText;}
  .map-occupants {background:Canvas;color:CanvasText;border-color:CanvasText;}
  .map-occupant-name small {color:CanvasText;}
  #map .wall-hatch-ground,#map .spell-hatch-ground {fill:Canvas;}
  #map .wall-hatch-lines,#map .hatch-light {stroke:CanvasText;}
  #map .hatch-dark {stroke:Canvas;}
  .legend {color:CanvasText!important;}
  .legend.current {outline:1px solid CanvasText;outline-offset:2px;}
  .legend.blocked::before {content:'×';}.legend.affected::before {content:'/';}
}
#notes-drawing-tools {margin:0;}

#preview-text:empty {display:none;}

/* Campaign brief tasks retain the same native editor and separate save owners. */
.profile-task-tabs{margin:.8rem 0;gap:.2rem}.profile-task-tabs button{flex:1;min-width:0;white-space:normal;padding-inline:.4rem}
#profile-drawer .profile-task-panel{min-width:0}#profile-drawer .ui-details{margin:1rem 0}
#profile-drawer summary{min-height:44px;align-content:center}#profile-drawer .profile-fields>label{min-width:0}
#profile-drawer #profile-speech{margin:.8rem 0}#profile-speech>.button-row{display:flex;flex-wrap:wrap;gap:.6rem;align-items:end}#profile-speech label{flex:1 1 10rem}
#profile-speech label{display:flex;flex-direction:column;gap:.35rem}#profile-speech select{width:100%}
#profile-speech .ui-details{margin:0}#profile-speech .ui-details>.button-row{padding-top:.5rem}
#profile-voice-status:empty{display:none}#model-recovery{border:1px solid var(--edge);padding:.7rem;margin:.6rem 0;border-radius:7px}
#model-recovery p{font-size:.8rem;overflow-wrap:anywhere}#model-choices .profile-footer{padding:.7rem 0}
#model-fields>.profile-fields{padding-bottom:.6rem}#model-fields>.model-operation{border-top:1px solid var(--edge);margin:.4rem 0}
#model-fields .profile-fields>label:first-child{grid-column:auto}#model-fields summary{overflow-wrap:anywhere}
#profile-drawer .profile-auditions{margin-top:1rem}#profile-private-notes label{display:grid;gap:.35rem}

#scene-inspection{margin:8px 0;overflow-wrap:anywhere}#scene-inspection>p{margin:6px 0}#selected-info-details>summary{min-height:44px;align-content:center}#selected-info-details>p{margin:6px 0}#action-review-controls{display:flex}#action-editor #selection:empty{display:none}

.builder-sheet-pixels { display:block; max-width:100%; max-height:32rem; object-fit:contain; background:#fff; border-radius:var(--radius, .5rem); }
.builder-sheet-preview { display:grid; gap:.6rem; }
#character-panel-start .builder-sheet-pixels { max-height:14rem; }
.builder-sheet-image input[type=file] { max-width:100%; }
.builder-sheet-file, .builder-sheet-pages li { min-width:0; overflow-wrap:anywhere; }
.builder-sheet-file .button-row { align-items:end; }
.builder-sheet-file label { display:grid; gap:.3rem; }
.builder-sheet-file input[type=number] { width:6rem; max-width:100%; }
.builder-sheet-pages { display:grid; gap:1rem; margin:0; padding:0; list-style:none; }
.builder-sheet-pages .button-row { margin-top:.5rem; }
.builder-reconciliation { margin-bottom:1rem; padding-bottom:1rem; border-bottom:1px solid var(--edge); min-width:0; overflow-wrap:anywhere; }
.builder-reconciliation>label { display:grid; gap:.3rem; margin:.6rem 0; }
.builder-reconciliation-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:1rem; align-items:start; }
.builder-reconciliation-layout>div { min-width:0; }
.builder-source-editor { min-width:0; padding:0; border:0; margin:.6rem 0; }
.builder-resolution-values { display:grid; grid-template-columns:auto minmax(0,1fr); gap:.3rem .7rem; font-size:.85rem; }
.builder-resolution-values dt { color:var(--muted); }
.builder-resolution-values dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.builder-reconciliation-context .button-row { margin:.6rem 0; }
@media(max-width:700px) { .builder-reconciliation-layout { grid-template-columns:minmax(0,1fr); } }
.builder-reconciliation select { width:100%; min-width:0; max-width:100%; }

.entry-brand { display:none; text-align:center; margin-bottom:24px; }
.entry-brand img { display:block; width:min(224px,100%); height:auto; margin:0 auto 12px; border-radius:8px; }
.entry-brand h1 { color:var(--gold); font-size:2rem; }
body[data-table-role="disconnected"] .entry-brand { display:block; }
body[data-table-role="disconnected"] .topbar { min-height:48px; justify-content:flex-end; }
body[data-table-role="disconnected"] .topbar .brand,
body[data-table-role="disconnected"] .topbar .campaign { display:none; }
@media(max-width:500px) { .join { margin:20px 12px; padding:20px; } }

/* Keep campaign-only controls out of the initial entry screen. */
.entry-actions { display:flex; flex-wrap:wrap; gap:12px; }
.entry-actions button { flex:1 1 auto; }
#entry-join-fields { margin-top:20px; }
#entry-launch-help { margin-top:16px; }
#entry-launch-help code { overflow-wrap:anywhere; }
body[data-table-role="disconnected"] .topbar .command-menu,
body[data-table-role="disconnected"] .topbar #stop,
body[data-table-role="disconnected"] .topbar #voice-start,
body[data-table-role="disconnected"] .topbar #mic-indicator,
body[data-table-role="disconnected"] > footer { display:none; }

#map .barrier-mark {fill:#f2ead8;font:8px system-ui,sans-serif;paint-order:stroke;stroke:#14242c;stroke-width:2px;}
@media (forced-colors:active) {#map .barrier-mark {fill:CanvasText;stroke:Canvas;}}

.table-setup { grid-column: 1 / -1; width: min(100%, 58rem); margin: 0 auto; padding: clamp(1rem, 3vw, 2rem); }
.table:has(>#table-setup-intro:not([hidden]))>.party { grid-row: auto / span 2; }
#table-setup-intro { width:100%; display:grid; gap:12px; padding:12px; order:-1; }
#table-setup-intro.has-illustration:not(.intro-art-collapsed) { grid-template-columns:minmax(18rem,.85fr) minmax(0,1.15fr); }
.intro-media,.intro-readout-panel { min-width:0; }
.intro-readout-panel,.intro-media>.scene-illustration { color:var(--paper-ink); background:var(--paper); border:1px solid #b9b19f; border-radius:8px; padding:16px; }
.intro-readout-panel>h2 { font-size:1.35rem; margin:0 0 12px; }
.intro-readout-panel .muted,.intro-readout-panel #table-setup-voice-status { color:#526065; }
.intro-readout-panel button.quiet,.intro-media button.quiet { color:var(--paper-ink); border-color:#526065; }
.intro-media>.scene-illustration { margin:0; }
.intro-media .scene-illustration figure>img { max-height:240px; }
.intro-readout-controls { margin-top:16px; padding-top:12px; border-top:1px solid #b9b19f; }
.intro-next-actions { margin-top:16px; }
@media (max-width:800px) { #table-setup-intro.has-illustration:not(.intro-art-collapsed) { grid-template-columns:minmax(0,1fr); } }
@media (forced-colors:active) { .intro-readout-panel,.intro-media>.scene-illustration { color:CanvasText; background:Canvas; border-color:CanvasText; }.intro-readout-panel .muted,.intro-readout-panel #table-setup-voice-status,.intro-readout-panel button.quiet,.intro-media button.quiet { color:CanvasText; }.intro-readout-controls { border-color:CanvasText; } }
.table-setup-pending .table > .party,
.table-setup-pending .table > .scene,
.table-setup-pending .table > .story { display: none; }
.table-setup-pending :is(#appearance-open, #gear-controls-open, #journey-controls-open, #growth-controls-open) { display: none; }
.table-setup-pending .skip { display: none; }
.setup-steps { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.25rem 0; }
.setup-steps [aria-current="step"] { border-color: var(--brass, #c7a86b); box-shadow: inset 0 -3px var(--brass, #c7a86b); font-weight: 700; }
.setup-body > h3 { margin-top: 1.5rem; }
.setup-roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; margin: 1rem 0; }
.setup-person { border-top: 1px solid var(--line, #617778); padding: .85rem 0; }
.setup-person h4, .setup-person p { margin: .35rem 0; }
.setup-editor { margin: 1rem 0; }
.setup-editor fieldset { display: grid; gap: .9rem; min-width: 0; padding: 1rem; }
.setup-editor label { display: grid; gap: .35rem; }
.setup-editor :is(input:not([type="checkbox"]), select, textarea) { width: 100%; min-width: 0; }
.setup-checks { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.setup-checks label { display: flex; align-items: center; gap: .5rem; min-height: 44px; }
.setup-checks input { width: 1.25rem; height: 1.25rem; }
.setup-navigation { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line, #617778); }
.setup-recovery { border: 1px solid var(--brass, #c7a86b); padding: 1rem; overflow-wrap: anywhere; }
.setup-status { min-height: 1.5em; }
.setup-blockers { padding-left: 1.25rem; }
.setup-blockers li { margin: .6rem 0; }
.table-setup :is(button, select) { min-height: 44px; }
@media (max-width: 600px) { .table-setup .section-head { align-items: flex-start; flex-wrap: wrap; gap: .75rem; } .setup-steps { display: grid; } .setup-navigation { justify-content: stretch; } .setup-navigation button { flex: 1; } }
@media (forced-colors: active) { .setup-steps [aria-current="step"] { outline: 2px solid Highlight; } }

.table-setup-workspace { width:min(100%,80rem); background:radial-gradient(ellipse at 95% 0%,color-mix(in srgb,var(--ally) 8%,transparent),transparent 55%),var(--ink); border-color:color-mix(in srgb,var(--gold) 35%,var(--edge)); }
.table-setup-workspace :is(button,input,select,textarea,summary):focus-visible { outline:3px solid var(--gold); outline-offset:3px; box-shadow:none; }
.table-setup-workspace button.quiet { border-color:#788b90; }
.table-setup-workspace .setup-header { padding-bottom:1rem; border-bottom:1px solid var(--edge); background:radial-gradient(ellipse at 90% 30%,color-mix(in srgb,var(--gold) 7%,transparent),transparent 50%); }
.table-setup-workspace .setup-title-group { display:flex; align-items:center; gap:1rem; min-width:0; }
.table-setup-workspace .setup-title-group h2 { font-size:clamp(1.75rem,3vw,2.4rem); line-height:1.2; }
.table-setup-workspace .setup-emblem { display:grid; place-items:center; flex:0 0 2.75rem; width:2.75rem; aspect-ratio:1; border:1px solid var(--gold); border-radius:50%; color:var(--gold); font:1.9rem/1 Georgia,serif; }
.table-setup-workspace>.setup-status { margin:.75rem 0; color:var(--muted); font-size:.9rem; line-height:1.55; }
.table-setup-workspace .setup-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; margin:1.25rem 0 1.5rem; }
.table-setup-workspace .setup-steps button { text-align:left; padding:.85rem 1rem; font-size:.95rem; background:transparent; color:var(--muted); border-color:#788b90; }
.table-setup-workspace .setup-steps [aria-current="step"] { color:var(--gold); border-color:var(--gold); background:color-mix(in srgb,var(--gold) 7%,transparent); box-shadow:inset 0 -3px var(--gold); }
.table-setup-workspace .setup-workspace { display:grid; grid-template-columns:minmax(0,1fr) clamp(20rem,30vw,25rem); gap:1.5rem; align-items:start; }
.table-setup-workspace .setup-workspace>.setup-body { grid-column:1; grid-row:1; }
.table-setup-workspace .setup-conversation { grid-column:2; grid-row:1; }
.table-setup-workspace .setup-workspace>:is(.setup-body,.setup-conversation) { min-width:0; padding:1.5rem; border:1px solid var(--edge); border-radius:12px; background:color-mix(in srgb,var(--panel) 72%,transparent); overflow-wrap:anywhere; }
.table-setup-workspace .setup-body>h3:first-child { margin-top:0; font-size:1.55rem; }
.table-setup-workspace .setup-body>h3:not(:first-child) { margin-top:1.5rem; }
.table-setup-workspace .setup-body>p { margin:.6rem 0 1rem; font-size:.95rem; line-height:1.6; }
.table-setup-workspace .button-row { gap:.6rem; margin:.75rem 0; }
.table-setup-workspace .button-row button { font-size:.875rem; }
.table-setup-workspace .setup-roster { grid-template-columns:1fr; gap:.85rem; margin:1.25rem 0; }
.table-setup-workspace .setup-person { padding:1rem; border:1px solid var(--edge); border-radius:9px; background:color-mix(in srgb,var(--ink) 55%,transparent); }
.table-setup-workspace .setup-person h4 { font-size:1.05rem; }
.table-setup-workspace .setup-person p { font-size:.875rem; line-height:1.55; }
.table-setup-workspace .setup-slot-editor>fieldset { grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem 1.25rem; padding:1.25rem; border:1px solid color-mix(in srgb,var(--gold) 60%,var(--edge)); border-radius:10px; }
.table-setup-workspace .setup-slot-editor label { min-width:0; font-size:.875rem; }
.table-setup-workspace .setup-slot-editor>fieldset>:is(.setup-field-wide,.setup-choice-hint,.setup-editor-actions,p) { grid-column:1/-1; }
.table-setup-workspace .setup-editor-actions { justify-content:flex-end; padding-top:.75rem; border-top:1px solid var(--edge); margin-bottom:0; }
.table-setup-workspace .setup-choice-hint { margin:0; padding:.75rem; border-left:3px solid var(--gold); background:color-mix(in srgb,var(--gold) 6%,transparent); font-size:.85rem; line-height:1.55; }
.table-setup-workspace .setup-slot-editor label[data-voice-current="true"] { padding:.65rem; border-inline-start:4px solid var(--gold); border-radius:0 7px 7px 0; background:color-mix(in srgb,var(--ally) 8%,transparent); }
.table-setup-workspace .setup-voice-selected { outline:2px solid var(--gold); outline-offset:2px; }
.table-setup-workspace .setup-conversation-head { display:flex; align-items:center; gap:.85rem; margin-bottom:1rem; }
.table-setup-workspace .setup-conversation-head h3 { margin:0; font-size:1.3rem; line-height:1.3; }
.table-setup-workspace .setup-conversation-head .setup-emblem { flex-basis:2.4rem; width:2.4rem; font-size:1.5rem; }
.table-setup-workspace .setup-voice-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem; margin:.75rem 0; }
.table-setup-workspace .setup-voice-actions button { max-width:100%; font-size:.875rem; }
.table-setup-workspace .setup-speaking { display:flex; flex:1 1 100%; flex-wrap:wrap; align-items:center; gap:.5rem .75rem; min-width:0; }
.table-setup-workspace .setup-speaking>p { flex:1 1 10rem; margin:0; font-size:.8rem; line-height:1.5; color:var(--muted); }
.table-setup-workspace .setup-voice-target { margin:.75rem 0; padding:.7rem .85rem; border-inline-start:3px solid var(--ally); border-radius:0 6px 6px 0; background:color-mix(in srgb,var(--ally) 7%,transparent); font-size:.85rem; line-height:1.55; }
.table-setup-workspace .setup-voice-help { margin:.6rem 0; color:var(--muted); font-size:.85rem; line-height:1.55; }
.table-setup-workspace .setup-voice-options { flex-basis:100%; margin:.5rem 0 0; padding-top:.35rem; border-top:1px solid var(--edge); font-size:.85rem; }
.table-setup-workspace .setup-voice-options>summary { min-height:44px; color:var(--muted); }
.table-setup-workspace .setup-voice-options>label { display:grid; gap:.35rem; margin:.75rem 0; }
.table-setup-workspace .setup-voice-options select { width:100%; min-width:0; }
.table-setup-workspace .setup-guide-actions { display:flex; flex-wrap:wrap; gap:.6rem; margin:.75rem 0; }
.table-setup-workspace .setup-conversation-copy { font-size:.95rem; line-height:1.65; }
.table-setup-workspace .setup-conversation-copy p { margin:.65rem 0; }
.table-setup-workspace .setup-speech-history { margin:1rem 0; padding:.4rem 0; border-block:1px solid var(--edge); font-size:.875rem; }
.table-setup-workspace .setup-speech-history>summary { min-height:44px; color:var(--muted); }
.table-setup-workspace .setup-speech-history p { margin:.65rem 0; line-height:1.6; }
.table-setup-workspace .setup-composer { margin-top:1rem; padding-top:1rem; border-top:1px solid var(--edge); }
.table-setup-workspace label.setup-composer { display:grid; gap:.5rem; font-size:.875rem; }
.table-setup-workspace .setup-composer textarea { min-width:0; width:100%; line-height:1.55; }
.table-setup-workspace .setup-composer>.button-row { justify-content:flex-end; margin-bottom:0; }
.table-setup-workspace .setup-recovery { margin:1rem 0; border-radius:8px; line-height:1.55; }
@media (max-width:1000px) {
  .table-setup-workspace .setup-workspace { grid-template-columns:minmax(0,1fr); }
  .table-setup-workspace .setup-conversation { grid-column:1; grid-row:1; }
  .table-setup-workspace .setup-workspace>.setup-body { grid-column:1; grid-row:2; }
}
@media (max-width:650px) {
  .table-setup-workspace { padding:1rem; }
  .table-setup-workspace .setup-title-group { gap:.75rem; }
  .table-setup-workspace .setup-emblem { flex-basis:2.25rem; width:2.25rem; font-size:1.5rem; }
  .table-setup-workspace .setup-steps { grid-template-columns:minmax(0,1fr); gap:.5rem; margin:1rem 0; }
  .table-setup-workspace .setup-steps button { padding:.65rem .85rem; }
  .table-setup-workspace .setup-workspace { gap:1rem; }
  .table-setup-workspace .setup-workspace>:is(.setup-body,.setup-conversation) { padding:1rem; }
  .table-setup-workspace .setup-slot-editor>fieldset { grid-template-columns:minmax(0,1fr); padding:1rem; }
  .table-setup-workspace .setup-editor-actions>button { flex:1; }
  .table-setup-workspace .setup-person { padding:.85rem; }
}
@media (forced-colors:active) {
  .table-setup-workspace .setup-slot-editor label[data-voice-current="true"] { border-color:Highlight; }
  .table-setup-workspace .setup-voice-selected { outline-color:Highlight; }
  .table-setup-workspace :is(button,input,select,textarea,summary):focus-visible { outline-color:Highlight; }
}
