#consultationUniverse,#spaceHud{position:fixed;inset:var(--space-view-top,0px) 0 auto;height:var(--space-view-height,100dvh)}
#consultationUniverse{z-index:0;background:#080d0a}
#consultationUniverse canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}
#consultationUniverse canvas:focus-visible{outline:1px solid #d7c9a6;outline-offset:-3px}
#consultationUniverse::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#050b08ed,transparent 42%),radial-gradient(ellipse at 50% 40%,transparent 32%,#03080588 100%)}
.space-ready .sky{display:none}
.space-ready .topbar,.space-ready .customer-layout,.space-ready .footer{position:relative;z-index:1}
.space-ready .panel{background:#101914e8;backdrop-filter:blur(20px)}
.space-toggle{font:12px var(--sans);background:#101a14a8;border:1px solid #b6b89a38;color:#d1d3c0;padding:12px;border-radius:24px;min-height:48px;cursor:pointer}
.space-ready .welcome .orb{opacity:.3}
.space-session{overflow:hidden;--mint:#d4c6a3}
.space-session .topbar,.space-session .welcome,.space-session .footer{display:none}
.space-session .customer-layout,.space-session .flow{display:contents}
body.space-session[data-role=customer] #roomPanel{display:none}
.space-session #connectionNotice,.space-session #error,.space-session #reconnect{position:fixed;top:108px;left:50%;transform:translateX(-50%);z-index:10;width:min(420px,calc(100% - 40px));background:#182119f5}
.space-session #confirmDialog{z-index:30}
#spaceHud{display:flex;flex-direction:column;z-index:2;pointer-events:none;color:#ece5d5;--chat-edge:max(16px,env(safe-area-inset-left,0px),env(safe-area-inset-right,0px));--room-header-top:max(10px,env(safe-area-inset-top,0px));--room-header-height:48px}
#spaceHud button{pointer-events:auto}
.space-icon{display:block;width:24px;height:24px;flex:none}
.space-button{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;min-width:48px;min-height:48px;padding:12px;border:0;background:none;color:inherit;font:13px var(--sans);border-radius:14px;-webkit-tap-highlight-color:transparent;transition:background .18s,color .18s,transform .18s}
.space-button:hover:not(:disabled){background:#e6dcc412}
.space-button:active:not(:disabled){transform:scale(.95)}
.space-button:focus-visible,.space-room-header a:focus-visible{outline:2px solid #e1c998;outline-offset:-2px}
.space-button.icon-only>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.space-room-header{position:absolute;inset:var(--room-header-top) var(--chat-edge) auto;display:grid;grid-template-columns:auto minmax(0,1fr) auto;min-height:var(--room-header-height);gap:10px;align-items:center;z-index:1}
.space-room-actions{display:flex;align-items:center}
.space-room-actions .space-button{min-width:44px;min-height:44px;padding:10px}
.space-room-actions .space-icon{pointer-events:none}
.space-tilt:not([aria-pressed=true]) .space-tilt-on,.space-tilt[aria-pressed=true] .space-tilt-off{display:none}
.space-tilt[aria-pressed=true]{color:#f1ddb1}
.space-tilt-notice{position:absolute;inset:calc(100% + 6px) 0 auto auto;max-width:100%;padding:8px 12px;border-radius:12px;background:#182119ed;color:#ece5d5;font:12px/1.5 var(--sans)}
.space-room-header .coma-wordmark{width:44px;min-height:44px;justify-content:center;padding:0;pointer-events:auto}
.space-room-header .omaju-seal{width:36px}
.space-session-label{display:flex;align-items:center;gap:6px;min-width:0;font-size:11px;color:#e0e1d4;text-shadow:0 2px 8px #000}
.space-session-dot{width:4px;height:4px;border-radius:50%;background:#c8cfb5;flex:none}
.space-clock { font-variant-numeric: tabular-nums; white-space: nowrap; overflow:hidden; text-overflow:ellipsis; max-width:58%; flex-shrink:0; }
.space-clock:not(:empty)::before { content: '·'; margin-right: 7px; }
.space-oracle-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 860px) and (min-height: 540px) {
  dialog.space-sheet { inset: 14px 16px 14px auto; width: min(388px,38vw); max-height: calc(100dvh - 28px); height: fit-content; margin: auto 0; border: 1px solid #d1c6a330; border-radius: 22px; }
}
.space-dismiss-keyboard{display:none}
.space-stage{position:relative;flex:1;min-height:0}
.space-bottom{flex:none;width:min(440px,calc(100% - 2 * var(--chat-edge)));margin:0 auto;padding-bottom:max(8px,env(safe-area-inset-bottom));text-shadow:0 2px 16px #000}
.space-card-caption{position:absolute;bottom:0;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:7px;max-width:calc(100% - 2 * var(--chat-edge));text-shadow:0 2px 12px #000}
.space-card-index{font:10px var(--sans);color:#bebaa8;letter-spacing:.13em}
.space-card-name{font:14px/1.5 var(--serif);color:#f1e8d4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.space-card-caption .space-focus{min-width:44px;min-height:44px;flex:none;color:#c3bca8}
.space-card-caption .space-focus .space-icon{width:19px;height:19px}
.space-voice-status{text-align:center;font-size:11px;line-height:1.5;color:#c7c9bb;margin:3px 0;text-wrap:balance;white-space:pre-line}
.space-voice-status:empty{display:none}
.space-voice-error{font-size:12px;line-height:1.65;color:#f0c5ac;text-align:center;margin:4px 0;max-height:40px;overflow:auto;pointer-events:auto}
.space-dock{display:grid;grid-template-columns:1fr 1.45fr 1fr;gap:10px;align-items:center;width:min(255px,100%);margin:6px auto 0}
.space-dock .space-button{min-height:48px;padding:6px;color:#d4d3c2;font-size:11px}
.space-dock .space-voice-primary{background:linear-gradient(150deg,#e7ddc3,#b8bda2);color:#1e2b22;border:1px solid #f1e7c677;border-radius:27px;box-shadow:0 4px 22px #0005;text-shadow:none;gap:5px;word-break:keep-all;line-height:1.25}
.space-dock .space-voice-primary .space-icon{width:19px;height:19px}
.space-dock .space-voice-primary[data-guide]{width:48px;border-radius:50%;justify-self:center}
.space-dock .space-voice-primary[data-guide] .space-icon{width:23px;height:23px}
#experienceSoundToggle{display:grid;place-items:center;width:48px;height:48px;padding:0;border-radius:50%}
.space-talk[aria-expanded=true]{background:#e6dcc419}
.space-dock .space-voice-primary:hover:not(:disabled){background:#ebe2c9}
.space-dock .space-voice-primary[data-live=true]{background:#d2e6c5;box-shadow:0 0 0 5px #c9e5b41a,0 0 32px #c9e5b41a}
.space-button[data-pending=true] .space-icon{animation:space-spin 1.2s linear infinite}
.space-badge{position:absolute;top:2px;right:10px;min-width:18px;height:18px;padding:0 4px;border-radius:10px;background:#cfceb3;color:#1c281f;font:10px/18px var(--sans);text-shadow:none}
.space-chat{
 --chat-top:calc(var(--room-header-top) + var(--room-header-height) + 13px);
 position:absolute;inset:var(--chat-top) var(--chat-edge) 46px;
 width:min(640px,calc(100% - 2 * var(--chat-edge)));margin-inline:auto;text-shadow:none;
}
.space-chat #messages{
 height:auto;max-height:100%;justify-content:flex-end;gap:7px;margin:0;padding:4px 5px 6px;overflow:hidden;overflow:clip;
}
.space-chat #messages:empty{display:none}
.space-chat .message{position:relative;flex:none;min-width:0;max-width:74%;margin-inline:3px}
.space-chat .message small{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.space-chat .bubble{position:relative;--bubble:#e8dfc9de;background:var(--bubble);color:#181a15;font:13.5px/1.52 var(--sans);border:0;border-radius:15px 15px 15px 4px;padding:7px 11px;word-break:normal;overflow-wrap:anywhere}
.space-chat .mine .bubble{--bubble:#234d70db;color:#fff;border-radius:15px 15px 4px 15px}
.space-chat .bubble::after{content:"";position:absolute;bottom:0;left:-4px;width:7px;height:8px;background:var(--bubble);clip-path:polygon(0 100%,100% 0,100% 100%)}
.space-chat .mine .bubble::after{left:auto;right:-4px;transform:scaleX(-1)}
.space-chat .message-arrived{--bubble-offset:-7px;animation:space-bubble-in .22s ease-out}
.space-chat .mine.message-arrived{--bubble-offset:7px}
@keyframes space-bubble-in{from{opacity:0;transform:translate(var(--bubble-offset),4px)}to{opacity:1;transform:none}}
.space-bottom .composer{align-items:flex-end;gap:7px;margin:0;pointer-events:auto}
.space-bottom .composer textarea{min-width:0;min-height:44px;max-height:90px;padding:9px 13px;margin:0;background:#141e1be6;border:1px solid #bdc5aa43;border-radius:22px;color:#f0ede3;font:16px/1.5 var(--sans)}
.space-bottom .composer textarea::placeholder{color:#cccbbd}
.space-bottom .composer #sendButton{width:44px;height:44px;min-height:44px;padding:10px;border-radius:50%;display:grid;place-items:center;background:#e5dac0;color:#1f2b22}
.space-session:not(.space-composing) .space-bottom .composer textarea{max-height:44px;background:#141e1b9e}
.space-session:not(.space-composing) .space-bottom #sendButton{display:none}
.space-composing .space-chat{bottom:auto;height:clamp(52px,calc(var(--space-view-height,100dvh) * .30),145px);max-height:calc(100% - var(--chat-top))}
.space-keyboard .space-room-header{grid-template-columns:minmax(0,1fr) auto}
.space-keyboard .space-room-header .coma-wordmark,.space-keyboard .space-options,.space-keyboard .space-card-caption,.space-keyboard .space-dock,.space-keyboard .space-voice-status,.space-keyboard [data-archive-state]{display:none}
.space-keyboard .space-dismiss-keyboard{display:flex}
.space-keyboard .space-bottom{padding-bottom:6px}
.space-sheet{position:fixed;inset:auto 0 var(--space-keyboard-offset,0px);margin:0 auto;width:min(520px,100%);max-width:none;max-height:calc(var(--space-visible-height,100dvh) - 20px);padding:0;border:1px solid #d1c6a330;border-bottom:0;border-radius:26px 26px 0 0;background:#111b16f7;color:#e6e3d6;box-shadow:0 -16px 80px #0005;overflow:hidden;--muted:#adb8a9;--mint:#d4c6a3}
.space-sheet[open]{display:flex;flex-direction:column;animation:space-sheet-enter .24s cubic-bezier(.2,.8,.2,1)}
.space-sheet::backdrop{background:#02070350;backdrop-filter:blur(4px)}
.space-sheet-handle{width:28px;height:3px;flex:none;border-radius:2px;background:#d7d3bc40;margin:12px auto 2px}
.space-sheet-header{display:flex;align-items:center;gap:2px;padding:9px 14px 14px 22px;flex:none;border-bottom:1px solid #bdc5aa14}
.space-sheet-header>div{flex:1;min-width:0;padding-right:8px}
.space-sheet h2{font:20px/1.5 var(--serif);letter-spacing:.02em}
.space-action-error{flex:none;margin:12px 22px 0;font-size:12px;color:#f0c5ac;max-height:80px;overflow:auto}
.space-sheet-voice{color:#d2c5a1;background:#d2c5a10a}
.space-sheet-voice[data-live=true]{color:#d2e6c5;background:#d2e6c519}
.space-sheet-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 22px max(18px,env(safe-area-inset-bottom));scrollbar-width:thin}
body[data-role=customer] #sendButton .space-icon{width:22px;height:22px}
#spaceCardTray .card-table{background:none;border:0;box-shadow:none;padding:18px 0 0;margin:0}
#spaceCardTray .card-table-heading,#spaceCardTray .card-stage{display:none}
#spaceCardTray .empty-deck .card-stage { display: block; }
#spaceCardTray .empty-deck .card-empty { min-height: 120px; border: 0; }
#spaceCardTray .empty-deck .card-empty-symbol { display: none; }
body[data-role=customer] .voice-actions button:has(.space-icon) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
body[data-role=customer] .voice-actions .space-icon { width: 19px; height: 19px; }
#spaceCardTray .card-arrival{font:13px/1.7 var(--sans);color:#c1c8b6;margin:0 0 18px}
#spaceCardTray .card-history{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 10px;margin:0;padding:2px;max-height:none;overflow:visible}
#spaceCardTray .history-card{width:100%;min-width:0;padding:7px;border-radius:10px;border:1px solid transparent;background:#c5cbae06;display:flex;flex-direction:column;align-items:center}
#spaceCardTray .history-card[aria-pressed=true]{border-color:#d2c19b99;background:#c5cbae12}
#spaceCardTray .history-card>img,#spaceCardTray .card-back-small{width:100%;height:auto;aspect-ratio:960/1646;object-fit:contain;border-radius:4px;max-height:180px}
#spaceCardTray .history-card span{font:11px/1.6 var(--sans);margin-top:9px;white-space:normal;color:#dedfca;overflow:visible}
#spaceCardTray .history-hidden{font-size:10px;color:#c4bea9}
#spaceCardTray .latest-card{display:block;min-height:48px;margin:15px auto 0;color:#dbd2b8}
.space-settings{padding:12px 0 0}
.space-settings .space-button{width:100%;justify-content:flex-start;text-align:left;gap:16px;min-height:56px;border-radius:10px}
.space-settings .space-button[aria-pressed=true]{background:#d4c6a312;color:#e7d4a5}
.space-settings .space-motion::after{content:"끔";margin-left:auto;color:#a6b19f;font-size:11px}
.space-settings .space-motion[aria-pressed=true]::after{content:"켬"}
.space-settings p{font:11px/1.8 var(--sans);color:#a6b19f;padding:18px 12px}
.space-settings .space-end{color:#ddba9f;border-top:1px solid #bdc5aa1c;border-radius:0}
@media(max-width:420px){
 .space-room-header{column-gap:6px}
 .space-session-label{display:grid;grid-template-columns:4px minmax(0,1fr);gap:2px 6px}
 .space-clock{grid-column:2;max-width:none}
 .space-clock:not(:empty)::before{content:none}
}
@keyframes space-sheet-enter{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@keyframes space-spin{to{transform:rotate(360deg)}}
@media(min-width:700px){
 .space-room-header{inset-inline:38px}
 .space-sheet{bottom:max(18px,var(--space-keyboard-offset,0px));border-bottom:1px solid #d1c6a330;border-radius:24px}
}
@media(prefers-reduced-motion:reduce){.space-sheet[open],.space-button[data-pending=true] .space-icon,.space-chat .message-arrived{animation:none}.space-button{transition:none}}
