/* Opt-in web shell only: overlay and voice-only surfaces retain their layout. */
.xr-mic-label{display:none}
body.xray-command-deck{--deck-line:#51365f;--deck-accent:#d3acff;--deck-muted:#bdb0ce;display:block;padding:0 0 max(24px,env(safe-area-inset-bottom));background:radial-gradient(ellipse at 80% 10%,#59265288,transparent 60%),radial-gradient(ellipse at 20% 65%,#3d2a6455,transparent 60%),#100c19;color:#f2eafa}
body.xray-command-deck::before,body.xray-command-deck::after{display:none}
.xray-command-deck [hidden]{display:none!important}
#xr-deck-header[hidden],#xr-deck-rail[hidden],#xr-voice-dock[hidden],body:not(.xray-command-deck) #xr-deck-layout{display:none!important}
#xr-deck-header{position:relative;z-index:2;display:flex;align-items:center;flex-wrap:wrap;gap:20px;padding:18px 28px;border-bottom:1px solid var(--deck-line);background:#100c19dd}
.xr-deck-brand{font:600 17px/1.4 system-ui;letter-spacing:.16em}.xr-deck-brand span{color:var(--deck-muted);font-weight:400}
.xr-look-label{display:flex;align-items:center;gap:8px;margin-left:auto;font-size:12px;color:var(--deck-muted)}
.xray-command-deck #prime-corner{position:static;display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0}
.xray-command-deck #prime-corner>button{min-height:44px}
.xray-command-deck #xr-deck-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:32px;max-width:1600px;margin:auto;padding:32px}
body.xray-command-deck .prime-stage{max-width:none;width:100%;padding:0;min-width:0;animation:none}
body.xray-command-deck .prime-hero{gap:18px;align-items:stretch;text-align:left}
body.xray-command-deck .prime-hero::before{display:none}
body.xray-command-deck #prime-avatar{display:none!important}
.xr-neutral-presence{height:106px;width:106px;display:grid;place-items:center;align-self:flex-start;font-size:64px;color:#e0c5ff;border:1px solid #8f5ec6;border-radius:50%;background:radial-gradient(circle,#69469788,#24133355);box-shadow:0 0 65px #b25dff33;line-height:1}
body.xray-command-deck .prime-greeting{max-width:none;align-items:flex-start;padding:0;text-align:left}
body.xray-command-deck .prime-greeting-text{font:400 clamp(30px,4vw,52px)/1.15 Georgia,serif;letter-spacing:-.04em;text-align:left;color:#f3e9ff}
body.xray-command-deck[data-prime-history-has] .prime-greeting-text{font:400 16px/1.6 system-ui;letter-spacing:0}
body.xray-command-deck .prime-operational-kicker{color:var(--deck-muted);font-size:10px;letter-spacing:.2em}
body.xray-command-deck .prime-operational-note{text-align:left;max-width:580px;color:var(--deck-muted)}
body.xray-command-deck .prime-interact,body.xray-command-deck .prime-history{max-width:none;width:100%}
body.xray-command-deck .prime-history{border:0;background:none}
body.xray-command-deck .prime-history-list{background:#17102099;border:1px solid var(--deck-line);border-radius:16px;max-height:min(520px,55vh);padding:20px}
body.xray-command-deck .prime-input-row{border:1px solid #7d549b;border-radius:16px;background:linear-gradient(120deg,#25172f,#14101e);box-shadow:0 15px 45px #06040b55}
body.xray-command-deck .prime-input-row::before{display:none}
body.xray-command-deck .prime-input{color:#f3eafa}
body.xray-command-deck .prime-send{background:#7641a9;border-radius:10px;color:white;border-color:#ba88ec}
.xray-command-deck #xr-deck-rail{display:flex;flex-direction:column;gap:16px;min-width:0}
.xr-deck-card{padding:22px;border:1px solid var(--deck-line);border-radius:16px;background:linear-gradient(130deg,#32203cbb,#171421cc);box-shadow:0 15px 40px #09060e44}
.xr-card-kicker{font-size:10px;letter-spacing:.16em;color:var(--deck-accent)}
.xr-deck-card p{font-size:14px;line-height:1.6;color:var(--deck-muted);margin:14px 0}
.xray-command-deck #prime-skip,.xray-command-deck #prime-dock-handle,.xray-command-deck #prime-reminders-open{position:static;inset:auto;transform:none;display:flex;align-items:center;width:100%;min-height:44px;text-align:left;font:600 13px/1.5 system-ui;padding:10px 0;border:0;border-radius:0;background:none;color:#f4eaff;box-shadow:none;white-space:normal}
.xray-command-deck #prime-skip::before{display:none}
.xray-command-deck #prime-dock-handle{writing-mode:horizontal-tb;letter-spacing:normal;height:auto}
.xray-command-deck #xr-voice-dock{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;padding:16px;border:1px solid var(--deck-line);border-radius:14px;background:#100d1be8;text-align:left}
#xr-voice-dock label{display:flex;flex:1 1 150px;min-width:0;flex-direction:column;gap:7px;font-size:11px;color:var(--deck-muted)}
#xr-voice-dock label:nth-child(2){flex-grow:2}
#xr-deck-look,#xr-voice-dock select{min-height:44px;max-width:100%;width:100%;padding:8px 12px;border:1px solid var(--deck-line);background:#23172f;color:#f1e5ff;border-radius:9px;font:inherit}
#xr-deck-look{width:auto}
#xr-voice-dock button{min-height:44px;padding:10px 14px;border:1px solid var(--deck-line);background:#342044;color:#f3e6ff;border-radius:9px;cursor:pointer;font:inherit;font-size:13px}
#xr-voice-dock button:disabled,#xr-voice-dock select:disabled{opacity:.6;cursor:default}
#xr-voice-status{flex:1 0 100%;font-size:12px;line-height:1.6;color:var(--deck-muted);overflow-wrap:anywhere}
#xr-voice-status.is-fallback{color:#f1c18d}
.xr-voice-more{width:100%;text-align:left}.xr-voice-more summary{min-height:44px;padding:12px;cursor:pointer;color:var(--deck-muted);font-size:13px}
.xray-command-deck .prime-voice-hint{flex-wrap:wrap;max-width:none}
.xray-command-deck .prime-everyday-state{position:static;display:flex;flex-wrap:wrap;gap:8px;padding:8px 0;line-height:1.6}
.xray-command-deck :is(button,select,a,summary):focus-visible{outline:2px solid var(--deck-accent);outline-offset:4px}
body.xray-command-deck[data-deck-look="command"]{--deck-line:#33586c;--deck-accent:#97e1f7;--deck-muted:#aabfcd;background:radial-gradient(ellipse at 85% 5%,#19566b66,transparent 60%),#0b141f}
[data-deck-look="command"] .xr-deck-card{border-radius:5px;background:linear-gradient(125deg,#173442,#111a24)}
body.xray-command-deck[data-deck-look="command"] .prime-greeting-text{font-family:system-ui;font-weight:600}
body.xray-command-deck[data-deck-look="wildcard"]{--deck-line:#725680;--deck-accent:#f1c4ff;background:linear-gradient(115deg,#30183c 0 26%,#130d20 26% 80%,#3d234b 80%)}
[data-deck-look="wildcard"] .xr-deck-card{border-radius:0;border-left:4px solid #eac8ff}
body.xray-command-deck[data-deck-look="wildcard"] .prime-greeting-text{font-family:system-ui;font-weight:900;font-style:italic;text-transform:uppercase}
/* No milestones are mounted on this page. Any existing badge must stay in
   document flow; this stylesheet never introduces a floating celebration. */
.xray-command-deck .osok-usmc-root{position:static;inset:auto;z-index:auto;margin:16px 32px}
@media(max-width:900px){.xray-command-deck #xr-deck-layout{grid-template-columns:minmax(0,1fr);padding:20px;gap:24px}.xray-command-deck #xr-deck-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.xr-deck-card{padding:16px}}
@media(max-width:560px){#xr-deck-header{padding:14px;gap:12px}.xr-deck-brand{font-size:14px}.xray-command-deck #prime-corner{width:100%}.xray-command-deck #xr-deck-layout{padding:16px}.xray-command-deck #xr-deck-rail{grid-template-columns:1fr}.xr-neutral-presence{height:80px;width:80px;font-size:48px}#xr-voice-dock label{flex-basis:100%}}

/* Cinematic composition: the artwork is scenery, never a flattened UI. */
body.xray-command-deck{background:#080811;padding-bottom:0;--deck-line:#a779d44d;--deck-muted:#c3b5d2}
#xr-deck-header{padding:10px 28px;min-height:74px;background:#0b0913f5;border-bottom:1px solid #a878d04d;gap:18px}
.xr-deck-brand{font-family:Georgia,serif;font-size:24px;font-weight:400;letter-spacing:.18em}
.xray-command-deck #prime-begin{min-height:44px;width:auto;padding:10px 18px;margin:0;border:1px solid #c99aff66;border-radius:24px;background:#271c39;box-shadow:none;font-size:12px;color:#f3eaff}
.xray-command-deck #xr-deck-layout{max-width:1800px;min-height:calc(100dvh - 74px);padding:24px;gap:18px;grid-template-columns:minmax(0,1fr) 290px;align-content:start;background:linear-gradient(90deg,#08081288,transparent 60%),url('/assets/ux/after-hours-city.png') center top/cover}
body.xray-command-deck .prime-stage{min-height:490px;position:relative;padding:30px 28px;background:linear-gradient(90deg,#080812ed 0%,#0c0918aa 52%,transparent 95%);border-top:1px solid #b487d74d;border-left:1px solid #b487d74d;border-radius:20px 0 0 0}
body.xray-command-deck .prime-hero{gap:20px;position:relative;align-items:stretch}
.xr-neutral-presence{position:absolute;right:22px;top:8px;width:46px;height:46px;font-size:27px;background:#25183588;box-shadow:0 0 28px #aa64ff55;opacity:.85}
.xr-deck-intro{padding:12px 0 18px;max-width:80%}
.xr-scene-label{font:500 10px/1.6 system-ui;letter-spacing:.28em;color:#d0a9ef;margin-bottom:16px}
.xr-deck-intro h1{font:400 clamp(38px,5vw,76px)/1.05 Georgia,serif;letter-spacing:-.055em;color:#f9edff;text-shadow:0 8px 35px #040209}
body.xray-command-deck[data-deck-look="after-hours"] .xr-deck-intro h1{font-family:Georgia,serif}
body.xray-command-deck .prime-history{max-width:650px;width:72%}
body.xray-command-deck .prime-history-list{background:transparent;border:0;padding:0;max-height:310px;gap:14px}
body.xray-command-deck .prime-msg{border:1px solid #a881c54d;background:#171124c9;border-radius:14px;padding:16px 18px;backdrop-filter:blur(12px);font-size:15px;line-height:1.7}
body.xray-command-deck .prime-msg.xray{background:#0d0a16bb;border-left:2px solid #c391ec;border-radius:0 12px 12px 0}
body.xray-command-deck .prime-greeting{max-width:580px;width:75%;padding:0;align-items:flex-start}
body.xray-command-deck .prime-greeting-text{font:400 23px/1.5 Georgia,serif;letter-spacing:0;text-align:left}
body.xray-command-deck .prime-operational-kicker,body.xray-command-deck .prime-operational-note{display:none}
body.xray-command-deck[data-prime-history-has] .prime-greeting-text{font:400 14px/1.7 system-ui;color:#d4c4e2}
.xray-command-deck #xr-deck-rail{gap:14px;align-self:stretch;justify-content:space-between}
.xr-deck-card{position:relative;overflow:hidden;isolation:isolate;min-height:148px;display:flex;flex-direction:column;justify-content:flex-end;border:1px solid #d1a4ef66;border-left:2px solid #bf71f0;border-radius:10px;padding:22px;background:linear-gradient(0deg,#090713fa 0%,#160e24cc 60%,#1a133444),url('/assets/ux/after-hours-city.png') 75% 45%/800px auto;box-shadow:0 14px 40px #05040c77}
.xr-deck-card:nth-child(2){border-left-color:#7bcced;background-position:0 0,90% 90%}
.xr-deck-card:nth-child(3){border-left-color:#d7a770;background-position:0 0,45% 85%}
.xr-card-kicker{font-size:10px;letter-spacing:.2em;color:#cfb3e9}
.xr-deck-card p{font:400 14px/1.5 system-ui;color:#d6c9df;margin:9px 0}
.xray-command-deck #prime-dock-handle,.xray-command-deck #prime-skip,.xray-command-deck #prime-reminders-open{font:400 20px/1.25 Georgia,serif;text-transform:none;justify-content:space-between;min-height:44px}
.xr-deck-card :is(a,button)::after{content:'↗';font:20px system-ui;color:#cda5e6;margin-left:12px}
body.xray-command-deck #prime-interact{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr);gap:0;max-width:none;padding:14px 20px 8px;border:1px solid #ad78d4aa;border-radius:20px;background:linear-gradient(120deg,#151020f5,#080a15f7);box-shadow:0 -5px 45px #a15dff18,0 15px 45px #0008;backdrop-filter:blur(20px)}
body.xray-command-deck .prime-input-row{min-height:62px;padding:0 0 10px;background:transparent;border:0;border-bottom:1px solid #b080dc33;border-radius:0;box-shadow:none;gap:12px}
body.xray-command-deck .prime-input{font:16px/1.5 system-ui;background:transparent;min-height:52px;max-height:140px;padding:12px 4px}
body.xray-command-deck #prime-mic{border:1px solid #a578d388;border-radius:50%;width:50px;height:50px;background:radial-gradient(circle,#392153,#100d1d);box-shadow:0 0 18px #9854cc22}
body.xray-command-deck .prime-send{border-radius:50%;width:48px;height:48px;background:linear-gradient(135deg,#bc74ff,#6c33bb);box-shadow:0 0 20px #ac63f744}
.xray-command-deck #xr-voice-dock{border:0;background:transparent;border-radius:0;padding:10px 0 0;gap:8px;align-items:center}
#xr-voice-dock label{flex-direction:row;align-items:center;flex:0 1 230px;gap:10px;font-size:11px}
#xr-voice-dock label:nth-child(2){flex:1 1 280px}
#xr-voice-dock select{background:#171120;border-color:#72518e88;font-size:12px;min-width:0}
#xr-voice-dock button{background:transparent;border-color:#79579688}
#xr-voice-status{font-size:11px;line-height:1.5}
.xray-command-deck .prime-everyday-state{justify-content:flex-start;margin:0;padding:8px 0;font-size:11px}
.xray-command-deck .prime-voice-hint{background:transparent;border:0;padding:0;gap:8px;text-align:left;align-items:flex-start;justify-content:flex-start}
.xray-command-deck .prime-voice-toggle{padding:5px 10px;min-height:44px;background:transparent;box-shadow:none;font-size:11px;border:0;width:auto}
.xr-voice-more{width:auto;flex:1}.xr-voice-more summary{font-size:11px;padding:12px 8px}
.xr-voice-more[open]{flex-basis:100%}
/* Command: instrument console, left mission rail and a radar-like workspace. */
body.xray-command-deck[data-deck-look="command"] #xr-deck-layout{grid-template-columns:250px minmax(0,1fr);background:linear-gradient(#081420ed,#081420ed),repeating-linear-gradient(0deg,transparent 0 39px,#41718c55 40px);gap:12px}
[data-deck-look="command"] #xr-deck-rail{grid-column:1;grid-row:1}
body.xray-command-deck[data-deck-look="command"] .prime-stage{grid-column:2;grid-row:1;background:radial-gradient(circle at 85% 40%,transparent 0 110px,#5395ad44 111px 112px,transparent 113px 160px,#5395ad33 161px 162px,transparent 163px),linear-gradient(90deg,#0b1928,#0c2332);border:1px solid #426d82;border-radius:3px}
[data-deck-look="command"] .xr-deck-intro h1{font:600 clamp(35px,4vw,64px)/1.06 system-ui;letter-spacing:-.05em;text-transform:uppercase;max-width:500px}
[data-deck-look="command"] .xr-scene-label{color:#85def1}
[data-deck-look="command"] .xr-deck-card{background:linear-gradient(140deg,#163446,#0b1724);border:1px solid #45697b;border-radius:3px;box-shadow:none}
body.xray-command-deck[data-deck-look="command"] #xr-deck-rail :is(a,button){font-family:system-ui;font-size:17px;font-weight:600}
[data-deck-look="command"] .xr-neutral-presence{border-radius:0;transform:rotate(45deg);background:#193a4b;border-color:#8ddbf0;color:#b5f0ff}
/* Wildcard: editorial poster composition, oversized type and a horizontal rail. */
body.xray-command-deck[data-deck-look="wildcard"] #xr-deck-layout{grid-template-columns:minmax(0,1fr);background:linear-gradient(118deg,#e9ddca 0 17%,#30203c 17% 19%,#12101b 19% 82%,#d3b1ee 82%);padding:28px 7%;gap:20px}
body.xray-command-deck[data-deck-look="wildcard"] .prime-stage{min-height:420px;border:0;border-radius:0;background:linear-gradient(105deg,#17111df5,#21132cef);border-left:8px solid #d5b0ef;transform:skewY(-1deg)}
[data-deck-look="wildcard"] .prime-hero{transform:skewY(1deg)}
[data-deck-look="wildcard"] .xr-deck-intro h1{font:900 italic clamp(48px,7vw,100px)/.9 system-ui;text-transform:uppercase;max-width:700px;color:#f6ecda;letter-spacing:-.07em}
[data-deck-look="wildcard"] .xr-scene-label{color:#f5d1ff}
.xray-command-deck[data-deck-look="wildcard"] #xr-deck-rail{grid-row:3;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
[data-deck-look="wildcard"] .xr-deck-card{min-height:150px;background:#eadfcb;color:#17101d;border:0;border-bottom:7px solid #9f72be;border-radius:0;box-shadow:8px 8px 0 #090610}
[data-deck-look="wildcard"] .xr-deck-card p,[data-deck-look="wildcard"] .xr-card-kicker{color:#48364f}
body.xray-command-deck[data-deck-look="wildcard"] #xr-deck-rail :is(a,button){color:#21132b;font:bold italic 19px system-ui}
body.xray-command-deck[data-deck-look="wildcard"] #xr-deck-rail :is(a,button)::after{color:#674079}
body.xray-command-deck[data-deck-look="wildcard"] #prime-interact{border-radius:0;border:2px solid #e6c4ff;grid-row:2}
@media(max-width:900px){
 .xray-command-deck #xr-deck-layout,body.xray-command-deck[data-deck-look="command"] #xr-deck-layout{grid-template-columns:minmax(0,1fr);padding:16px}
 body.xray-command-deck .prime-stage,body.xray-command-deck[data-deck-look="command"] .prime-stage{grid-column:1;grid-row:1;min-height:420px;padding:24px 20px}
 .xray-command-deck #xr-deck-rail,[data-deck-look="command"] #xr-deck-rail{grid-column:1;grid-row:3;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 body.xray-command-deck #prime-interact{grid-row:2;grid-column:1;padding:12px}
 .xr-deck-card{padding:16px;min-height:160px}
 body.xray-command-deck .prime-history,body.xray-command-deck .prime-greeting{width:90%}
 #xr-deck-header{padding:12px 18px}.xr-deck-brand{font-size:20px}
}
@media(max-width:560px){
 #xr-deck-header{gap:10px}.xr-deck-brand{font-size:18px}.xr-look-label{margin-left:0}.xray-command-deck #prime-corner{width:auto;margin-left:auto}
 .xray-command-deck #xr-deck-layout,body.xray-command-deck[data-deck-look="wildcard"] #xr-deck-layout{padding:10px;gap:12px}
 body.xray-command-deck .prime-stage{min-height:340px;padding:20px 16px}
 .xr-deck-intro{max-width:88%;padding-top:10px}.xr-deck-intro h1{font-size:43px}.xr-neutral-presence{right:0;top:0;width:32px;height:32px;font-size:21px}
 body.xray-command-deck .prime-history,body.xray-command-deck .prime-greeting{width:100%}
 body.xray-command-deck .prime-greeting-text{font-size:20px}
 .xray-command-deck #xr-deck-rail,.xray-command-deck[data-deck-look="wildcard"] #xr-deck-rail{grid-template-columns:1fr;gap:10px}.xr-deck-card{min-height:130px}
 #xr-voice-dock label,#xr-voice-dock label:nth-child(2){flex:1 1 100%}
 body.xray-command-deck .prime-input-row{gap:6px;grid-template-columns:1fr repeat(3,50px)}
}
/* Calm looks keep existing actions and state, with readable opaque surfaces. */
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]){--calm-bg:#f7f8fa;--calm-panel:#fff;--calm-ink:#152940;--calm-muted:#465b70;--calm-line:#b6c4d2;--calm-accent:#075cb8;--deck-muted:var(--calm-muted);--deck-accent:var(--calm-accent);--deck-line:var(--calm-line);background:var(--calm-bg);color:var(--calm-ink)}
body.xray-command-deck[data-deck-look="hearth"]{--calm-bg:#17130f;--calm-panel:#211c17;--calm-ink:#f7efdf;--calm-muted:#d3c3ac;--calm-line:#7f6e55;--calm-accent:#f0bd74}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) #xr-deck-header{background:var(--calm-panel);color:var(--calm-ink);border-color:var(--calm-line)}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) :is(#xr-deck-look,#prime-begin,#prime-corner>button){background:var(--calm-panel);color:var(--calm-ink);border:1px solid var(--calm-line);box-shadow:none;font:600 15px system-ui}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) #xr-deck-layout{background:var(--calm-bg);grid-template-columns:280px minmax(0,1fr);gap:24px;padding:30px}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) .prime-stage{grid-column:2;grid-row:1;background:var(--calm-panel);border:1px solid var(--calm-line);border-radius:12px;min-height:410px;padding:28px}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) #xr-deck-rail{grid-column:1;grid-row:1;justify-content:flex-start}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) .xr-deck-card{background:var(--calm-panel);border:1px solid var(--calm-line);box-shadow:none;border-radius:10px;min-height:125px;padding:20px}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) #xr-deck-rail :is(a,button){color:var(--calm-ink);font:600 19px/1.4 system-ui}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) :is(.xr-card-kicker,.xr-deck-card p,.xr-scene-label,.prime-greeting-text,.prime-voice-toggle,.prime-voice-hint,.prime-everyday-state,.prime-history-clear){color:var(--calm-muted)}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) .xr-deck-card :is(a,button)::after{color:var(--calm-accent)}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) .xr-deck-intro{max-width:100%;padding:0}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) .xr-deck-intro h1{color:var(--calm-ink);font:600 clamp(30px,3.3vw,48px)/1.16 system-ui;letter-spacing:-.035em;text-shadow:none}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) .xr-neutral-presence{display:none}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) :is(.prime-greeting,.prime-history){width:100%;max-width:850px}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) .prime-msg{background:var(--calm-panel);color:var(--calm-ink);border-color:var(--calm-line);font-size:17px}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) #prime-interact{background:var(--calm-panel);color:var(--calm-ink);border:1px solid var(--calm-line);box-shadow:none;border-radius:12px;padding:18px 22px}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) .prime-input-row{grid-template-columns:minmax(0,1fr) auto 48px 48px;border-color:var(--calm-line)}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) .prime-input{color:var(--calm-ink);font-size:18px}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) .prime-input::placeholder{color:var(--calm-muted);opacity:1}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) #prime-mic{width:auto;max-width:250px;min-height:50px;height:auto;padding:12px;display:flex;gap:8px;border-radius:8px;background:var(--calm-panel);color:var(--calm-ink);border-color:var(--calm-line);box-shadow:none}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) .xr-mic-label{display:inline;font:600 15px/1.3 system-ui;white-space:normal}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) #prime-mic.recording{background:#8c2121;color:#fff;border-color:#c74343}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) #xr-voice-dock{padding-top:18px;gap:12px}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) #xr-voice-dock :is(label,select,button){font-size:15px;color:var(--calm-ink)}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) #xr-voice-dock :is(select,button){background:var(--calm-panel);border-color:var(--calm-line);min-height:48px}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) #xr-voice-status{font-size:14px;color:var(--calm-muted)}
body.xray-command-deck[data-deck-look="open-sky"] #xr-voice-status.is-fallback{color:#864410}
body.xray-command-deck[data-deck-look="open-sky"] :is(.prime-voice-toggle,.prime-voice-toggle *,.prime-everyday-state,.prime-history-clear){color:#344b63}
body.xray-command-deck[data-deck-look="open-sky"] :is(.prime-send,#xr-voice-preview){background:#075cb8;color:#fff;border-color:#075cb8;box-shadow:none}
body.xray-command-deck[data-deck-look="hearth"] #xr-deck-layout{grid-template-columns:minmax(0,1fr) 280px;background:linear-gradient(90deg,#17130f 15%,#17130f88 70%,#17130f22),url('/assets/ux/hearth-room.png') right center/cover}
body.xray-command-deck[data-deck-look="hearth"] .prime-stage{grid-column:1;background:#1b1713f5}
body.xray-command-deck[data-deck-look="hearth"] #xr-deck-rail{grid-column:2;align-self:end}
body.xray-command-deck[data-deck-look="hearth"] .xr-deck-intro h1{font-family:Georgia,serif;font-weight:400}
body.xray-command-deck[data-deck-look="hearth"] :is(.prime-send,#xr-voice-preview){background:#e7b56e;color:#22170c;border-color:#e7b56e;box-shadow:none}
@media(max-width:900px){
 body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) #xr-deck-layout{grid-template-columns:minmax(0,1fr);padding:16px}
 body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) .prime-stage{grid-column:1;grid-row:1;min-height:320px;padding:22px}
 body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) #xr-deck-rail{grid-column:1;grid-row:3}
 body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) #xr-voice-dock label{flex-direction:column;align-items:stretch;flex:1 1 220px}
}
@media(max-width:560px){
 body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) #prime-interact{padding:12px}
 body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) .prime-input-row{grid-template-columns:minmax(0,1fr) 48px 48px;gap:8px}
 body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) .prime-input{grid-column:1/-1;grid-row:1}
 body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) #prime-mic{grid-column:1;grid-row:2}
 body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) #prime-upload{grid-column:2;grid-row:2}
 body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) .prime-send{grid-column:3;grid-row:2}
}
/* Calm surfaces retain readable secondary actions and leave room for Hearth's scene. */
body.xray-command-deck[data-deck-look="hearth"] .prime-stage{border:0;border-radius:0;background:linear-gradient(90deg,#17130ff5,#17130fe8)}
body.xray-command-deck[data-deck-look="hearth"] #xr-deck-rail{align-self:end;gap:10px}
body.xray-command-deck[data-deck-look="hearth"] .xr-deck-card{min-height:70px;padding:14px 18px}
body.xray-command-deck[data-deck-look="hearth"] .xr-deck-card p{display:none}
body.xray-command-deck[data-deck-look="hearth"] .prime-stage{min-height:480px}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) :is(.prime-msg button,.prime-everyday-state *,.prime-voice-toggle *){color:var(--calm-ink);border-color:var(--calm-line)}
body.xray-command-deck[data-deck-look="open-sky"] #xr-voice-dock #xr-voice-preview{background:#075cb8;color:white}
body.xray-command-deck[data-deck-look="hearth"] #xr-voice-dock #xr-voice-preview{background:#e7b56e;color:#22170c}
body.xray-command-deck[data-deck-look="open-sky"] .prime-status{color:#216149}
/* Guided start is an optional presentation over the same conversation controls. */
#xr-guide-toggle{min-height:44px;padding:10px 16px;border:1px solid var(--calm-line);border-radius:8px;background:var(--calm-panel);color:var(--calm-ink);font:600 15px system-ui;cursor:pointer}
#xr-guide{width:100%;color:var(--calm-ink);text-align:left}
#xr-guide button{min-height:48px;padding:14px 18px;border:1px solid var(--calm-line);border-radius:8px;background:var(--calm-panel);color:var(--calm-ink);font:600 18px/1.4 system-ui;cursor:pointer;white-space:normal}
#xr-guide button:disabled{opacity:.55;cursor:default}
.xr-guide-choices{display:grid;gap:12px;max-width:850px}
.xr-guide-choices button{display:flex;justify-content:space-between;text-align:left}
.xr-guide-actions{display:flex;flex-wrap:wrap;gap:12px}
#xr-guide p{font:17px/1.6 system-ui;color:var(--calm-muted);margin:18px 0}
#xr-guide h2{font:500 clamp(26px,3vw,40px)/1.2 Georgia,serif;color:var(--calm-ink);margin:24px 0 16px}
#xr-guide label{display:block;font:600 17px system-ui;margin:20px 0 10px}
#xr-guide textarea{box-sizing:border-box;width:100%;min-height:140px;resize:vertical;border:1px solid var(--calm-line);border-radius:8px;padding:16px;background:var(--calm-panel);color:var(--calm-ink);font:18px/1.6 system-ui}
#xr-guide #xr-guide-continue{background:var(--calm-accent);color:var(--calm-bg)}
body.xr-guided #xr-deck-layout{grid-template-columns:minmax(0,1fr)}
body.xr-guided .prime-stage{grid-column:1;max-width:1100px;min-height:0}
body.xr-guided[data-deck-look="hearth"] .prime-stage{max-width:1000px;background:#17130ff2}
body.xr-guided #xr-deck-rail,body.xr-guided .prime-hero>:not(.xr-deck-intro):not(#xr-guide){display:none}
body.xr-guided #prime-corner{display:none}
body.xr-guided .prime-input-row .prime-input,body.xr-guided .prime-input-row #prime-upload,body.xr-guided .prime-input-row .prime-send{display:none}
body.xr-guided #prime-interact .prime-input-row{display:flex;min-height:0;padding-bottom:12px}
body.xr-guided #prime-interact #prime-mic{display:flex;max-width:none}
body.xr-guided #xr-voice-dock>label:first-child,body.xr-guided #xr-voice-refresh{display:none}
body.xr-guided #xr-voice-dock label:nth-child(2){flex:1 1 300px;flex-direction:column;align-items:stretch}
body.xr-guided .xr-deck-intro{padding-bottom:0}
.xr-send-label{display:none}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) .prime-send{width:auto;min-width:76px;padding:0 14px;border-radius:10px}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) .prime-send svg{display:none}
body.xray-command-deck:is([data-deck-look="open-sky"],[data-deck-look="hearth"]) .xr-send-label{display:inline;font:600 16px system-ui}
#xr-guide-review:empty{display:none}
#xr-guide-review{font:16px/1.5 system-ui;color:var(--calm-ink);padding:12px;border:1px solid var(--calm-line);border-radius:8px}
body.xr-guided #xr-guide-review{display:none}
@media(max-width:560px){#xr-guide button{font-size:17px}.xr-guide-actions{flex-direction:column}body.xr-guided .prime-stage{padding:18px}#xr-guide-toggle{margin-left:0}}
body.xray-command-deck.xr-guided[data-deck-look] #xr-deck-layout{grid-template-columns:minmax(0,1fr)}
body.xray-command-deck.xr-guided[data-deck-look] .prime-stage{grid-column:1;grid-row:1}
body.xr-guided-step .xr-deck-intro{display:none}
body.xray-command-deck.xr-guided[data-deck-look] #prime-interact{grid-column:1;max-width:1100px}
body.xray-command-deck.xr-guided[data-deck-look="hearth"] #prime-interact{max-width:1000px}
/* Lighting is independent of the calm look and defaults to dark. */
.xr-lighting-label{display:flex;align-items:center;gap:8px;font:14px system-ui;color:var(--calm-ink)}
#xr-deck-lighting{min-height:44px;padding:8px 12px;border:1px solid var(--calm-line);border-radius:8px;background:var(--calm-panel);color:var(--calm-ink);font:inherit}
body.xray-command-deck[data-deck-look="open-sky"][data-deck-lighting="dark"]{--calm-bg:#0e1825;--calm-panel:#172638;--calm-ink:#edf4fc;--calm-muted:#bacbde;--calm-line:#536c88;--calm-accent:#91c7ff;color-scheme:dark}
body.xray-command-deck[data-deck-look="hearth"][data-deck-lighting="light"]{--calm-bg:#f6efe3;--calm-panel:#fff9ef;--calm-ink:#302719;--calm-muted:#665239;--calm-line:#ac9678;--calm-accent:#80501b;color-scheme:light}
body.xray-command-deck[data-deck-look="open-sky"][data-deck-lighting="light"]{color-scheme:light}
body.xray-command-deck[data-deck-look="hearth"][data-deck-lighting="dark"]{color-scheme:dark}
body.xray-command-deck[data-deck-look="open-sky"][data-deck-lighting="dark"] :is(.prime-voice-toggle,.prime-voice-toggle *,.prime-everyday-state,.prime-history-clear){color:var(--calm-ink)}
body.xray-command-deck[data-deck-look="open-sky"][data-deck-lighting="dark"] #xr-voice-status.is-fallback{color:#ffd298}
body.xray-command-deck[data-deck-look="open-sky"][data-deck-lighting="dark"] .prime-status{color:#9edbbd}
body.xray-command-deck[data-deck-look="hearth"][data-deck-lighting="light"] #xr-deck-layout{background:linear-gradient(90deg,#f6efe3 15%,#f6efe3bb 65%,#f6efe333),url('/assets/ux/hearth-room.png') right center/cover}
body.xray-command-deck[data-deck-look="hearth"][data-deck-lighting="light"] .prime-stage{background:#fff9eff5}
body.xray-command-deck[data-deck-look="hearth"][data-deck-lighting="light"] :is(.prime-status,#xr-voice-status.is-fallback){color:#68441b}
body.xray-command-deck[data-deck-look="hearth"][data-deck-lighting="light"] #xr-voice-dock #xr-voice-preview{background:#80501b;color:#fff9ef}
/* Guided polish: quieter chrome, a clearer primary path and inline file review. */
body.xray-command-deck.xr-guided[data-deck-look] .prime-stage{padding:32px;box-shadow:0 18px 55px #00000018;border-radius:16px}
body.xray-command-deck.xr-guided[data-deck-look="open-sky"][data-deck-lighting="dark"] #xr-deck-layout{background:radial-gradient(ellipse at 80% 5%,#25435b66,transparent 60%),#0e1825}
body.xray-command-deck.xr-guided[data-deck-lighting="dark"] .xr-guide-choices button{background:linear-gradient(120deg,var(--calm-panel),transparent);border-color:var(--calm-line);transition:background .15s,border-color .15s}
body.xr-guided #xr-guide .xr-guide-choices button:hover{border-color:var(--calm-accent);background:var(--calm-bg)}
body.xr-guided #xr-guide .xr-guide-choices button{padding:18px 22px;font-size:20px;border-radius:12px}
body.xr-guided #xr-guide-saved{border-color:transparent;background:transparent;text-decoration:underline;font-size:16px}
body.xr-guided #xr-guide p.xr-guide-help{font-size:15px;line-height:1.6}
#xr-guide-file-list{list-style:none;padding:0;margin:12px 0}
#xr-guide-file-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 14px;border:1px solid var(--calm-line);border-radius:10px;margin:8px 0;background:var(--calm-panel)}
#xr-guide-file-list span{overflow-wrap:anywhere;min-width:0}
#xr-guide #xr-guide-file-list button{font-size:15px;flex-shrink:0;min-height:44px;padding:8px 12px}
#xr-guide #xr-guide-ready{font-size:15px;margin-top:10px}
#xr-guide #xr-guide-notice:not(:empty){padding:14px;border:1px solid var(--calm-accent);border-radius:10px}
body.xr-guided #xr-guide textarea:focus-visible{outline:2px solid var(--calm-accent);outline-offset:3px}
@media(max-width:560px){body.xray-command-deck.xr-guided[data-deck-look] .prime-stage{padding:20px}body.xr-guided #xr-guide .xr-guide-choices button{padding:16px;font-size:18px}}
@media(prefers-reduced-motion:reduce){body.xr-guided #xr-guide button{transition:none}}
