/* The booth and the conversation share one table, with a stable character view. */
body{background:radial-gradient(ellipse at top,#302436,#0f1017 70%);}
.app{max-width:1120px;border:0;background:transparent;box-shadow:none;padding:0 24px;margin:auto;border-radius:0}
header{height:76px}.table-layout{display:grid;grid-template-columns:minmax(280px,.95fr) minmax(340px,1fr);gap:32px;align-items:start}
.wizard-panel{position:sticky;top:16px;min-width:0}.workspace{min-width:0;background:#191820cc;border:1px solid #514139;border-radius:24px;padding:24px}
.booth-stage{position:relative;top:auto;border:1px solid #81643f;border-radius:22px;overflow:hidden;background:#16121b;box-shadow:0 20px 60px #0005}
.booth-stage .portrait{width:100%;aspect-ratio:9/10;max-height:none;margin:0;border-radius:0;background:none}
.booth-stage #avatar{inset:0;max-width:none;width:100%;height:100%;aspect-ratio:9/10}
.booth-stage .edit-badge{right:14px;bottom:14px;z-index:4;background:#17121ee8}
.booth-caption{height:auto;min-height:38px;display:grid;place-items:center;border-top:1px solid #5e4832}
.connection{padding:8px;font-size:12px}.composer-wrap{background:none;padding-bottom:0}
#welcome h1{font:normal 28px/1.2 Georgia,serif;margin:4px 0 14px}.voice-preview{margin:8px 0 18px}
.suggestions{margin:14px 0}.suggestions button{border:1px solid #504348;border-radius:12px;padding:12px;margin:8px 0;background:#24212b}
.voice-console{border:1px solid #65523e;border-radius:20px;background:radial-gradient(ellipse at top,#3c2b42,#201d29);padding:18px 12px;margin:14px 0 0}
.voice-controls{gap:26px}.crystal{width:64px;height:64px}.voice-note{max-width:310px;margin:8px auto;font-size:11px}.console-side{min-width:64px;min-height:56px}
.transcript-label{font-size:10px;letter-spacing:1px;color:var(--accent);display:flex;justify-content:space-between;gap:8px}.transcript-label span{color:var(--muted);letter-spacing:0}
.composer{background:#13171c;border:1px solid #68705f}.send{min-width:44px;min-height:44px}
.history{margin:14px 0;border-block:1px solid #504348;padding:10px 0}.history summary{min-height:32px;cursor:pointer}.history summary span{float:right;color:var(--accent)}
#ruling-history button{display:block;width:100%;text-align:left;background:#29232e;border-radius:8px;margin:6px 0;padding:10px;min-height:44px;overflow-wrap:anywhere}
.follow-ups{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.follow-ups button,.stack-input button{background:#343c31;color:var(--accent);border:1px solid #66705b;border-radius:10px;padding:10px;min-height:44px}
#messages article{scroll-margin-top:20px;overflow-wrap:anywhere}.question-bubble{border-radius:16px 16px 4px 16px;background:#332b3b}.answer{background:transparent}.answer .short-answer{font-size:18px;line-height:1.6}
.stack-heading{display:flex;justify-content:space-between;align-items:center}.stack-heading span{font-size:11px;font-weight:400;color:var(--muted)}
#stack-list{list-style:none;padding:0;margin:12px 0}#stack-list li{display:flex;align-items:center;gap:3px;padding:8px;border:1px solid #554758;border-radius:10px;margin:7px 0;background:#292230}#stack-list li:first-child{border-color:#a68a5e}#stack-list span{flex:1;font-size:12px;overflow-wrap:anywhere}#stack-list button{min-width:44px;min-height:44px;background:transparent;border-radius:8px}#stack-list button:disabled{opacity:.25}
.stack-input{display:flex;gap:8px;align-items:center}.stack-input input{min-width:0;flex:1}.stack-raw{margin:14px 0}.stack-raw summary{min-height:44px;cursor:pointer}
.device-settings{border:1px solid #615347;border-radius:14px;margin:20px 0;padding:16px}.device-settings legend{color:var(--accent);padding:0 6px}.device-settings label{display:block;margin:10px 0 6px}.device-settings select{width:100%;min-height:44px;font:inherit;color:var(--text);background:#171b20;border:1px solid #62685e;border-radius:8px;padding:8px}.device-settings .toggle{display:flex;gap:10px;align-items:center;min-height:44px}.toggle input{width:20px;height:20px;flex-shrink:0}
[hidden]{display:none!important}
@media(max-width:799px){.app{padding:0 12px;margin:auto;max-width:520px}header{height:56px}.table-layout{display:block}.wizard-panel{position:sticky;top:0;z-index:3;background:#14121a;border-radius:16px}.booth-stage{border-radius:16px}.booth-stage .portrait{height:36dvh;max-height:350px;aspect-ratio:auto}.booth-stage #avatar{max-width:calc(36dvh * .9);max-height:350px;margin:auto}.booth-caption{min-height:30px}.booth-caption p{font-size:10px}.connection{padding:3px;font-size:10px}.workspace{border:0;padding:12px 4px;background:transparent}#welcome h1{font-size:23px;margin:2px 0 10px}.voice-preview{margin:4px 0 10px}.suggestions{margin:10px 0}.suggestions button{padding:10px;font-size:12px}.voice-console{margin-top:8px;padding:12px}#messages article{scroll-margin-top:calc(36dvh + 70px)}}
@media(max-height:600px) and (max-width:799px){.wizard-panel{position:relative}.booth-stage .portrait{height:44dvh}.booth-stage #avatar{max-width:calc(44dvh * .9)}}
