/* Jarvis desk: 332px conversation + 1px rule + remaining result width.
   Independent scroll panes; the single composer owns the bottom row. */
.jarvis-home-desk{height:calc(100dvh - 108px);min-height:460px;display:flex;flex-direction:column;gap:0}
.jarvis-home-desk>.marc-home-kopf{display:none}
.jarvis-home-desk .marc-home-flaeche,.aura-os-workspace,.aura-os-workspace>.vo-eingebettet{height:100%;min-height:0;min-width:0;display:block;padding:0;margin:0;border:0;background:none;box-shadow:none}
.has-jarvis-desk.aura-console.vo-drawer{display:block!important;position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;max-height:none!important;padding:0!important;margin:0!important;overflow:visible!important;border:0!important;background:var(--bg,#10110f)!important;box-shadow:none!important}
.has-jarvis-desk:before,.has-jarvis-desk:after{display:none!important}
.jarvis-desk{--jd-text:var(--ink,#f2f3ee);--jd-muted:var(--muted,#b5b8b1);--jd-ground:var(--bg,#10110f);--jd-surface:var(--bg-2,#181a17);--jd-line:var(--line,#363a32);height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;color:var(--jd-text);background:var(--jd-ground);border:1px solid var(--jd-line);border-radius:12px;overflow:hidden;font-family:var(--body,Inter,system-ui,sans-serif);font-size:14px;line-height:1.5}
.jarvis-desk *{box-sizing:border-box;min-width:0}
.jarvis-desk [hidden],.jarvis-result-window [hidden]{display:none!important}
.jarvis-desk button,.jarvis-result-window button{font:inherit;line-height:1.25;cursor:pointer;border:1px solid var(--jd-line);border-radius:7px;background:transparent;color:var(--jd-text);min-height:36px;padding:8px 12px;transition:background .16s,transform .12s;white-space:normal}
.jarvis-desk button:hover,.jarvis-result-window button:hover{background:var(--jd-surface)}
.jarvis-desk button:active{transform:translateY(1px)}
.jarvis-desk button:focus-visible,.jarvis-desk summary:focus-visible,.jarvis-desk textarea:focus-visible{outline:2px solid var(--accent,#cedd79);outline-offset:3px}
.jarvis-desk button:disabled{cursor:not-allowed;opacity:.55}
.jd-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;border-bottom:1px solid var(--jd-line)}
.jd-identity{display:flex;align-items:center;gap:12px;flex:none}
.jd-identity h1{font:600 22px/1.2 var(--body,Inter,system-ui,sans-serif);letter-spacing:-.04em;margin:0;color:var(--jd-text)}
.jd-identity p{margin:3px 0 0;font-size:12px;color:var(--jd-muted)}
.jd-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.jd-header-actions button{font-size:12px;min-height:36px}
.jd-workspace{position:relative;display:grid;grid-template-columns:minmax(280px,332px) minmax(0,1fr);min-height:0;overflow:hidden}
.jd-conversation{min-height:0;display:flex;flex-direction:column;border-right:1px solid var(--jd-line);background:var(--jd-surface)}
.jd-pane-heading{min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--jd-line)}
.jd-pane-heading h2{font:600 15px/1.4 var(--body,Inter,system-ui,sans-serif);margin:0;color:var(--jd-text);overflow-wrap:anywhere}
.jd-pane-heading>span,.jd-result-label{display:block;font-size:12px;line-height:1.4;color:var(--jd-muted)}
.jd-result-label{margin-bottom:3px}
.jd-results{display:flex;flex-direction:column;min-height:0;overflow:hidden;background:var(--jd-ground)}
.jd-result-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:24px;scrollbar-gutter:stable;flex:1}
.jd-result-scroll p,.jd-result-scroll li{overflow-wrap:anywhere}
.jd-result-scroll img{max-width:100%;height:auto}
.jd-result-scroll>.vw{container-type:inline-size;width:100%;min-height:0}
.jd-result-scroll .vw-befund{font-size:clamp(26px,3.8vw,46px);line-height:1.15;letter-spacing:-.04em}
.jd-result-scroll .vw{padding:0;display:block;border:0;background:none}
.jd-result-scroll .vw-tabelle{width:100%;table-layout:auto;font-variant-numeric:tabular-nums}
.jd-result-scroll .vw-beleg{margin-top:28px;overflow-x:auto}
.jd-result-scroll .aura-result-stage{display:block!important;position:static!important;inset:auto!important;transform:none!important;opacity:1!important;width:100%!important;min-height:0!important;padding:0!important;margin:0!important;max-height:none!important;border:0!important;background:none!important;overflow:visible!important}
.jd-result-scroll .aura-result-stage>*{max-width:100%}
.jd-result-scroll .aura-stage-answer{font-size:clamp(20px,2vw,30px)!important;line-height:1.45!important;max-width:62ch!important;color:var(--jd-text)!important}
.jd-result-scroll .aura-result-stage .aura-stage-orb,.jd-result-scroll .aura-scene-ambient{display:none}
.jd-result-scroll .aura-stage-result{position:relative!important;transform:none!important;opacity:1!important}
.jd-result-scroll .aura-stage-result.is-leaving{display:none!important}
.jd-result-scroll .jarvis-task,.jd-result-scroll .jarvis-workflow,.jd-result-scroll .wcs{margin:0;width:100%;max-width:none;box-shadow:none}
.jd-result-scroll .jt-layout{grid-template-columns:minmax(0,1fr)}
.jd-result-scroll .jt-trail{margin-top:20px;border-left:0;border-top:1px solid var(--jd-line);padding:16px 0}
.jd-result-scroll .jt-original{max-height:56dvh;object-fit:contain;object-position:top;background:var(--jd-surface)}
.jd-empty{max-width:650px;padding:clamp(24px,6vh,70px) 12px;margin:0 auto}
.jd-empty-mark{display:grid;place-items:center;width:44px;height:44px;background:var(--jd-surface);color:var(--jd-text);font-size:24px;font-weight:500;border-radius:10px;margin-bottom:28px}
.jd-empty h2{font:500 clamp(26px,3vw,38px)/1.2 var(--body,Inter,system-ui,sans-serif);letter-spacing:-.045em;margin:0 0 16px;color:var(--jd-text)}
.jd-empty p{font-size:16px;max-width:45ch;color:var(--jd-muted);margin:0 0 28px}
.jd-empty-starts{display:flex;flex-wrap:wrap;gap:8px}
.jd-empty-starts button{font-size:13px;text-align:left}
.jd-conversation .vo-verlauf{display:block!important;position:relative!important;inset:auto!important;flex:1!important;overflow:auto!important;overscroll-behavior:contain;min-height:0!important;max-height:none!important;width:100%!important;padding:4px 16px 20px!important;margin:0!important;border:0!important;background:none!important;opacity:1!important;transform:none!important;scrollbar-gutter:stable}
.jd-conversation .vo-work-heading{display:none}
.jd-conversation-empty{padding:20px 0;color:var(--jd-muted);font-size:14px;line-height:1.65}
.jd-footer .vo-send:before,.jd-footer .vo-send:after{display:none!important}
.jd-footer .vo-send{filter:none!important;transform:none!important;overflow:hidden}
.jd-result-scroll .wcs-device-controls{display:flex;gap:8px;grid-column:1/-1;margin-bottom:12px}
.jd-result-scroll .wcs-device-controls [aria-pressed=true]{background:var(--jd-text);color:var(--jd-ground)}
.jd-result-scroll .wcs-view.is-mobile{max-width:390px;margin:auto}
.jd-result-scroll .wcs-view.is-mobile img{width:100%;max-height:none;object-fit:contain}
.jd-conversation .vo-zeile{padding:16px 0!important;margin:0!important;border-bottom:1px solid var(--jd-line);display:block!important}
.jd-conversation .vo-wer{display:block;font-size:12px!important;line-height:1.5;color:var(--jd-muted)!important;text-transform:none;letter-spacing:0;font-weight:500;margin-bottom:5px}
.jd-conversation .vo-text,.jd-conversation .vo-held-satz{font-size:14px!important;line-height:1.65!important;color:var(--jd-text)!important;overflow-wrap:anywhere}
.jd-conversation .vo-held-zahl{font-size:22px!important;color:var(--jd-text)!important}
.jd-conversation .vo-belege,.jd-conversation .vo-plan{font-size:12px}
.jd-conversation .vo-leer{padding:20px 0!important;max-width:none}
.jd-conversation .vo-vorschlag-index,.jd-conversation .vo-vorschlag>span:last-child{display:none}
.jd-conversation .vo-vorschlaege{display:grid;gap:8px;list-style:none;margin:12px 0;padding:0}
.jd-conversation .vo-vorschlag{width:100%;text-align:left}
.jd-footer{padding:12px 20px;border-top:1px solid var(--jd-line);background:var(--jd-ground);z-index:2}
.jd-footer .vo-fuss{position:static!important;inset:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;width:100%!important;padding:0!important;margin:0!important;border:0!important;background:none!important;box-shadow:none!important;transform:none!important}
.jd-footer .aura-dock-state{grid-column:1/-1;margin:0 0 7px!important;min-height:18px;font-size:12px;color:var(--jd-muted)}
.jd-footer .vo-form{position:static!important;display:flex!important;align-items:center!important;gap:8px!important;padding:8px!important;border:1px solid var(--jd-line)!important;border-radius:10px!important;background:var(--jd-surface)!important;box-shadow:none!important;width:100%!important;transform:none!important;min-height:58px}
.jd-footer .vo-feld{resize:none;min-height:36px!important;max-height:100px;width:100%;font:400 15px/1.5 var(--body,Inter,system-ui,sans-serif)!important;padding:7px 6px!important;margin:0!important;background:none!important;border:0!important;color:var(--jd-text)!important;box-shadow:none!important}
.jd-footer .vo-form button{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;margin:0!important;flex:none;padding:8px!important;border-radius:7px!important}
.jd-footer .aura-voice-core{position:relative!important;inset:auto!important;transform:none!important;background:var(--jd-text)!important;color:var(--jd-ground)!important;box-shadow:none!important;border:0!important}
.jd-footer .aura-voice-core-rings{display:none!important}
.jd-footer .vo-send{background:transparent!important;color:var(--jd-text)!important}
.jd-footer .aura-session-dismiss{align-self:end;height:58px!important;min-height:58px!important}
.jd-notice,.jd-footer .vo-hinweis,.jd-footer .jarvis-save-warning{font-size:13px;margin:0 0 10px;color:var(--jd-muted);max-width:75ch}
.jd-tools{position:absolute;right:0;top:0;bottom:0;width:min(480px,100%);z-index:4;background:var(--jd-surface);border-left:1px solid var(--jd-line);display:flex;flex-direction:column;box-shadow:-12px 0 32px #0002}
.jd-tools-scroll{overflow:auto;min-height:0;padding:16px 20px}
.jd-tools .vo-kopf{padding:0 0 16px;border:0;display:block}
.jd-tools .vo-kopf-links{display:none}
.jd-tools .vo-context{display:block!important;position:static!important;width:100%!important;padding:16px 0!important;background:none!important;border:0!important;max-height:none!important}
.jd-tools .vo-panel-heading,.jd-tools .vo-context-note,.jd-tools .vo-context-projects,.jd-tools .vo-presence{display:none}
.jd-tools details{margin:16px 0;padding:16px 0;border:0;border-top:1px solid var(--jd-line);border-radius:0;background:none}
.jd-tools summary{font-weight:500;cursor:pointer;min-height:36px}
.jd-tools .jarvis-workspace-body{padding:12px 0}
.jd-tools .vo-scope{display:flex!important;flex-wrap:wrap;margin:16px 0!important}
.jd-tools .vo-info{display:block!important;font-size:12px;line-height:1.7;color:var(--jd-muted)!important}
.jd-tools button{min-height:40px;margin:3px 0}
.jd-tools .jd-saved-task{text-align:left;width:100%;margin:12px 0}
.jd-tools input{max-width:100%}
.jd-tools li{overflow-wrap:anywhere;font-size:13px}
.jd-identity .vo-presence{position:relative!important;inset:auto!important;display:block!important;flex:none!important;width:48px!important;height:48px!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;background:none!important;transform:none!important;opacity:1!important}
.jd-identity .vo-presence-title,.jd-identity .aura-telemetry,.jd-identity .vo-presence-grid,.jd-identity .vo-presence-copy,.jd-identity .vo-signal-bars{display:none!important}
.jd-identity .aura-face{position:relative!important;inset:auto!important;width:48px!important;height:48px!important;min-height:0!important;margin:0!important;padding:0!important;transform:none!important;filter:none!important}
.jd-identity .aura-face-frame{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;transform:none!important}
.jd-identity .aura-face-live,.jd-identity .aura-face-halo,.jd-identity .aura-face-orbit-system,.jd-identity .aura-presence-reticle{display:none!important}
.jd-identity .aura-orb-leinwand{width:100%!important;height:100%!important;transform:none!important}
.jd-identity .aura-motion-toggle{position:absolute!important;inset:0!important;width:48px;height:48px;border:0!important;opacity:0;background:var(--jd-ground)!important}
.jd-identity .aura-motion-toggle:hover,.jd-identity .aura-motion-toggle:focus-visible{opacity:1}
.jd-mobile-tabs{display:none}
.jarvis-desk.is-wide .jd-workspace,.jarvis-desk.is-chat-collapsed .jd-workspace{grid-template-columns:minmax(0,1fr)}
.jarvis-desk.is-wide .jd-conversation{display:none}
.jd-crm-context{position:absolute;right:20px;bottom:128px;z-index:5;max-width:420px;border:1px solid var(--line,#34392e);background:var(--bg-2,#181a17);border-radius:8px}
.jd-crm-context>summary{padding:8px 12px;cursor:pointer;font-size:12px}
.jd-crm-context[open]{top:100px;bottom:128px;overflow:auto;padding:8px 16px}
.jd-crm-context .aura-os-field{display:block!important;position:static!important;width:auto!important;max-width:none!important;border:0!important}
.jarvis-result-window{margin:0;min-height:100dvh;background:var(--bg,#10110f);color:var(--ink,#f2f3ee);font:400 16px/1.6 var(--body,Inter,system-ui,sans-serif)}
.jarvis-result-window>header{display:flex;gap:24px;align-items:center;padding:16px 28px;border-bottom:1px solid var(--line,#34392e)}
.jarvis-result-window>header span{flex:1;color:var(--muted,#b5b8b1);font-size:13px}
.jarvis-result-window #jarvis-result-mirror{padding:28px;max-width:2200px;margin:auto}
.jarvis-result-window .jd-result-scroll{padding:0;overflow:visible}
.jarvis-result-window img{max-width:100%;height:auto}
@media(min-width:2400px){.jd-workspace{grid-template-columns:360px minmax(0,1fr)}.jd-result-scroll{padding:36px 48px}.jd-empty{margin-top:5vh}.jd-result-scroll>.vw{max-width:2000px;margin:auto}}
@media(max-width:1180px){.jd-header{padding:12px}.jd-header-actions{gap:5px}.jd-header-actions button{padding:7px 8px;font-size:11px}.jd-workspace{grid-template-columns:280px minmax(0,1fr)}.jd-result-scroll{padding:20px}.jd-crm-context{right:12px;bottom:122px}}
@media(max-width:800px){.jarvis-home-desk{height:calc(var(--vo-visible-height,100dvh) - 138px);min-height:300px}.jarvis-desk{grid-template-rows:auto auto minmax(0,1fr) auto;border-radius:8px}.jd-header{gap:8px;padding:10px 12px}.jd-identity{gap:5px}.jd-identity h1{font-size:19px}.jd-identity p{font-size:11px}.jd-header-actions{max-width:55%}.jd-header-actions button{min-height:38px;font-size:11px;padding:6px 8px}.jd-header-actions button:first-child{display:none}.jd-header-actions button:nth-child(2){display:none}.jd-mobile-tabs{display:flex;gap:20px;padding:0 16px;border-bottom:1px solid var(--jd-line)}.jd-mobile-tabs button{border:0;border-radius:0;border-bottom:2px solid transparent;font-size:13px;min-height:44px;padding:8px 0}.jd-mobile-tabs button[aria-pressed=true]{border-color:var(--jd-text)}.jd-workspace{display:block}.jd-conversation,.jd-results{height:100%;border:0}.jarvis-desk[data-mobile-pane=result] .jd-conversation,.jarvis-desk[data-mobile-pane=conversation] .jd-results{display:none}.jd-pane-heading{padding:12px 16px;min-height:58px}.jd-result-scroll{padding:16px}.jd-empty{padding:24px 0}.jd-empty h2{font-size:27px}.jd-empty p{font-size:14px}.jd-empty-starts{display:grid}.jd-empty-starts button{min-height:44px}.jd-footer{padding:10px 12px}.jd-footer .vo-form{padding:5px!important;gap:3px!important}.jd-footer .vo-form button{width:40px!important;min-width:40px!important;min-height:44px!important;height:44px!important}.jd-footer .vo-feld{font-size:16px!important}.jd-footer .aura-session-dismiss{min-height:58px!important;padding:8px!important}.jd-footer .jd-attach{font-size:23px}.jd-tools button{min-height:44px}.jd-crm-context{position:static;margin:8px 0 0;max-width:none}.jd-crm-context[open]{position:fixed;top:100px;right:16px;left:16px;bottom:160px}.jd-result-scroll .vw-befund{font-size:28px}.jd-result-scroll .jt-head{flex-wrap:wrap}.jd-result-scroll .jt-input-row{flex-wrap:wrap}}
@media(max-height:600px) and (min-width:801px){.jarvis-home-desk{min-height:300px;height:calc(100dvh - 88px)}.jd-header{padding:6px 16px}.jd-pane-heading{min-height:48px;padding:8px 16px}.jd-footer{padding:6px 12px}}
@media(prefers-reduced-motion:reduce){.jarvis-desk *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.jd-orb{position:relative;width:48px;height:48px;flex:none;overflow:hidden}
.jd-orb-canvas{display:block;width:48px;height:48px;filter:none;transform:none}
.jd-orb>button{position:absolute;inset:0;min-height:48px;width:48px;border:0;opacity:0;background:var(--jd-ground)}
.jd-orb>button:hover,.jd-orb>button:focus-visible{opacity:1}
.jd-footer .vo-send:disabled{display:none!important}

/* The compact presence is the only decorative field in this workspace. */
.jarvis-desk .btn-primary::before,.jd-result-scroll .aura-spatial-field,.jd-result-scroll .aura-stage-current,.jd-result-scroll .aura-stage-answer::before{display:none!important}
.jarvis-desk :is(.vo-panel-heading,.vo-work-status,.vo-kopf-links,.vo-kopf-links span,.vo-kicker,.vo-context-note,.vo-scope,.vo-info,.aura-cockpit-context summary),.jd-crm-context summary{font-size:12px!important;letter-spacing:normal!important;text-transform:none!important}
/* Structured results already carry their own finding and source. */
.jd-result-scroll .aura-stage-result:has(.vw)>.aura-stage-answer{display:none!important}
.jd-result-scroll .aura-stage-heading{font-size:12px;letter-spacing:normal;text-transform:none}

.aura-os-workspace>.vo-eingebettet:has(.jarvis-desk){height:min(100%,var(--jd-available-height,100%))}

.jarvis-result-window .aura-stage-card{cursor:default}
/* The original website inspector is a light document surface. Preserve its
   control contrast instead of inheriting the surrounding dark desk chrome. */
.jarvis-desk .wcs button{background:#fff;color:#263d35;border-color:#c7d2c8;min-height:44px;font-size:13px}
.jarvis-desk .wcs button:hover{background:#e5ebe4;color:#263d35}
.jarvis-desk .wcs button[aria-pressed=true],.jarvis-desk .wcs button[aria-pressed=true]:hover{background:#234c47;color:#fff;border-color:#234c47}
.jarvis-desk .wcs button:focus-visible{outline:3px solid #216255;outline-offset:3px}
/* Spatial workspace: same voice owner and real result renderers, composed as
   one bounded room. No second audio runtime or decorative fake status. */
.jarvis-spatial-shell{height:100%;min-height:0!important;grid-template-rows:minmax(0,1fr)!important;padding:0!important;gap:0!important}
.jarvis-spatial-shell>.aura-os-bar{display:none!important}
.jarvis-spatial-shell>.aura-os-core{height:100%;min-height:0!important}
.jarvis-spatial-shell .vo-eingebettet{height:100%;min-height:0!important}
.jarvis-room{position:relative;isolation:auto;display:block;border:0;border-radius:0;min-height:420px;background:var(--bg,#10110f);overflow:hidden}
.jarvis-room .jr-header{position:absolute;z-index:4;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 28px;pointer-events:none}
.jarvis-room .jr-header button{pointer-events:auto;min-height:44px;border-color:transparent;font-size:12px}
.jarvis-room .jr-header h1{font:500 18px/1.2 var(--body,Inter,sans-serif);letter-spacing:.12em;text-transform:uppercase;margin:0}
.jarvis-room .jr-header p{font-size:11px;color:var(--jd-muted);margin:5px 0}
.jarvis-room .jr-presence{position:absolute;inset:70px 0 112px;pointer-events:none}
.jarvis-room .jr-presence>.vo-presence{position:absolute!important;inset:0!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important;background:none!important;border:0!important}
.jarvis-room .jr-presence .aura-face{position:absolute!important;top:46%!important;left:50%!important;width:clamp(180px,25vw,360px)!important;height:auto!important;aspect-ratio:1;transform:translate(-50%,-50%)!important;pointer-events:auto}
.jarvis-room .jr-presence .vo-presence-title,.jarvis-room .jr-presence .aura-telemetry,.jarvis-room .jr-presence .vo-presence-grid,.jarvis-room .jr-presence .vo-signal-bars,.jarvis-room .jr-presence .vo-presence-copy{display:none!important}
.jarvis-room .jr-footer{position:absolute;z-index:5;bottom:0;left:50%;transform:translateX(-50%);width:min(740px,calc(100% - 48px));border:0;padding:12px 0 20px;background:none}
.jarvis-room .jr-footer .vo-form{border-radius:20px!important;box-shadow:0 8px 32px #0002!important}
.jarvis-room .jr-portal{position:absolute;z-index:3;right:24px;top:88px;bottom:135px;width:min(58%,900px);display:flex;flex-direction:column;min-height:0;border:1px solid var(--jd-line);border-radius:16px;background:var(--jd-ground);box-shadow:0 20px 60px #0002;overflow:hidden}
.jarvis-room .jr-portal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 20px;border-bottom:1px solid var(--jd-line)}
.jarvis-room .jr-portal-head h2{font:500 13px/1.4 var(--body,Inter,sans-serif);margin:0}
.jarvis-room.jr-has-result .jr-presence .aura-face{left:21%!important;width:clamp(160px,18vw,290px)!important}
.jarvis-room.is-wide .jr-portal{left:24px;width:auto}
.jarvis-room .jr-conversation{position:absolute;z-index:6;left:24px;top:88px;bottom:135px;width:min(420px,calc(100% - 48px));display:flex;flex-direction:column;background:var(--jd-ground);border:1px solid var(--jd-line);border-radius:16px;overflow:hidden;box-shadow:0 16px 48px #0003}
.jarvis-room .jr-conversation>.vo-verlauf{overflow:auto;min-height:0;display:block!important;padding:16px!important}
.jarvis-room .aura-result-stage{display:block!important;max-height:none!important;background:none!important;border:0!important}
.jarvis-preview-desk:has(.jarvis-room){height:100dvh;overflow:hidden}
.jarvis-preview-desk:has(.jarvis-room) #root{height:100dvh}
@media(max-width:800px){.jarvis-room{min-height:360px}.jarvis-room .jr-header{padding:12px 16px}.jarvis-room .jr-header p{max-width:180px}.jarvis-room .jr-header-actions{gap:0}.jarvis-room .jr-header button{font-size:11px;padding:6px}.jarvis-room .jr-header .jd-header-actions button:nth-child(2){display:none}.jarvis-room .jr-presence .aura-face{width:220px!important}.jarvis-room .jr-portal{top:150px;left:12px;right:12px;bottom:145px;width:auto}.jarvis-room.jr-has-result .jr-presence .aura-face{top:0!important;left:50%!important;width:90px!important}.jarvis-room .jr-footer{width:calc(100% - 24px);bottom:0}.jarvis-room .jr-conversation{left:12px;top:90px;bottom:145px;width:calc(100% - 24px)}}
@media(prefers-reduced-motion:reduce){.jarvis-room *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.jarvis-spatial-shell>.aura-os-core{grid-row:1!important;grid-column:1/-1!important}
.jarvis-preview-desk:has(.jarvis-room) #root{height:calc(100dvh - 100px)}

/* Only the focused portal owns its result; ordinary answers stay in the room. */
body:not(.aura-cinematic) .aura-os .jarvis-room .jr-portal .aura-result-stage{display:block!important}
.jarvis-spatial-shell:has(.jr-has-result) .aura-sx{visibility:hidden;pointer-events:none}
.jarvis-spatial-shell:has(.jr-has-result) .aura-sx *{pointer-events:none}

.jarvis-spatial-shell .has-jarvis-desk{height:100%!important}
.jarvis-room .jd-tools{z-index:7}
.jarvis-room .jr-header .jd-header-actions{flex-wrap:nowrap}
@media(max-width:800px){.jarvis-room .jr-header{gap:8px}.jarvis-room .jr-header p{display:none}.jarvis-room .jr-header .jd-header-actions{gap:2px}.jarvis-room .jr-header .jd-header-actions button{max-width:110px}.jarvis-room .jr-portal{top:138px;bottom:132px}.jarvis-room .jr-presence{inset:65px 0 112px}.jarvis-room.jr-has-result .jr-presence .aura-face{top:12px!important;width:64px!important}}

.jarvis-room{height:min(100%,var(--jr-available-height,100%));min-height:min(360px,var(--jr-available-height,360px))}

/* fadeUp retains translateY(0) after the CRM view transition. While this
   existing room expands, remove that containing block without moving or
   remounting its voice/session subtree. Ordinary view transitions stay intact. */
.view-fade:has(.jarvis-room.is-wide){animation:none!important;transform:none!important;position:relative;z-index:1200}
.jarvis-spatial-shell:has(.jarvis-room.is-wide){position:fixed!important;inset:0!important;z-index:1200;height:100dvh!important;width:100vw;background:var(--bg,#10110f)}
.jarvis-spatial-shell .jarvis-room.is-wide{height:100%!important;min-height:0}
@media(max-width:800px){.jarvis-room .jr-portal .aura-stage-answer{font-size:18px;line-height:1.5}.jarvis-room .jr-portal .jd-result-scroll{padding:12px}.jarvis-room .jr-portal{bottom:158px}.jarvis-room .jr-header .jd-header-actions{flex-wrap:wrap;justify-content:flex-end}.jarvis-room .jr-header .jd-header-actions button{min-height:32px}.jarvis-room .jr-footer{padding-bottom:12px}}

/* A short window cannot contain header, speech and a growing composer in
   absolute lanes. Keep the same room/answer/voice owner in scrollable flow. */
@media(max-height:650px){
 .jarvis-room:not(.jr-has-result){display:flex;flex-direction:column;overflow-y:auto}
 .jarvis-room:not(.jr-has-result) .jr-header{position:relative;flex:none}
 .jarvis-room:not(.jr-has-result) .jr-presence{position:relative;inset:auto;flex:0 0 320px;width:100%}
 .jarvis-room:not(.jr-has-result) .jr-footer{position:relative;inset:auto;left:auto;transform:none;flex:none;margin:0 auto}
}

/* The measured composer and answer reserve real space before composing the
   sphere and its objects; a notice never pushes speech through the sphere. */
.jarvis-room:not(.jr-has-result) .jr-presence{bottom:max(112px,calc(var(--jr-footer-height,100px) + 12px));container-type:size}
.jarvis-room:not(.jr-has-result) .jr-presence .aura-face{width:min(clamp(180px,25vw,360px),max(100px,calc(100cqh - var(--jr-answer-height,0px) - 24px)))!important;top:calc((100cqh - var(--jr-answer-height,0px) - 24px)/2)!important}
@media(max-height:650px){.jarvis-room:not(.jr-has-result) .jr-presence{bottom:auto}}
