:root{--app-width: 100vw;--app-height: 100dvh;--safe-top: env(safe-area-inset-top, 0px);--safe-right: env(safe-area-inset-right, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--safe-left: env(safe-area-inset-left, 0px);--ink: #17212b;--muted: #667085;--page: #f4f6f8;--surface: #ffffff;--surface-soft: #f8fafc;--line: #d9e0e8;--accent: #1f5eff;--accent-dark: #1748c7;--green: #157a4f;--warning: #a15c07;--danger: #b42318;--recording: #d92d20;--recording-dark: #b42318;font-family:Avenir Next,Helvetica Neue,Helvetica,Arial,sans-serif;-webkit-text-size-adjust:100%;text-size-adjust:100%;color:var(--ink);background:var(--page)}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden;touch-action:pan-x pan-y}body{min-width:320px;background:var(--page)}#app{width:var(--app-width);height:var(--app-height)}html.mobile-landscape-locked{--safe-top: env(safe-area-inset-right, 0px);--safe-right: env(safe-area-inset-bottom, 0px);--safe-bottom: env(safe-area-inset-left, 0px);--safe-left: env(safe-area-inset-top, 0px)}html.mobile-landscape-locked[data-orientation-rotation=counterclockwise]{--safe-top: env(safe-area-inset-left, 0px);--safe-right: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-right, 0px);--safe-left: env(safe-area-inset-bottom, 0px)}html.mobile-landscape-locked #app{position:fixed;top:0;left:0;transform:rotate(90deg) translateY(-100%);transform-origin:top left}html.mobile-landscape-locked[data-orientation-rotation=counterclockwise] #app{transform:rotate(-90deg) translate(-100%)}button,input,select{font:inherit}button{-webkit-tap-highlight-color:transparent}.setup-shell,.conversation-shell{height:var(--app-height);overflow:hidden;padding:max(16px,var(--safe-top)) max(16px,var(--safe-right)) max(16px,var(--safe-bottom)) max(16px,var(--safe-left))}.setup-shell{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:12px;align-items:center;justify-items:center}.setup-card{position:relative;width:100%;max-width:460px;min-width:0;max-height:100%;padding:clamp(18px,4vh,34px);border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:0 14px 38px #10182814;overflow:auto}.settings-button{position:absolute;top:14px;right:14px;display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid var(--line);border-radius:999px;background:var(--surface-soft);color:var(--ink);cursor:pointer}.settings-dots{display:flex;align-items:center;justify-content:center;gap:3px}.settings-dots span{width:5px;height:5px;border-radius:50%;background:currentColor}.settings-panel{position:absolute;top:62px;right:14px;z-index:10;width:min(340px,calc(100% - 28px));padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:0 18px 46px #10182829}.settings-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.brand-block{margin-bottom:22px}.eyebrow{color:var(--accent-dark);font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}h1{margin:8px 0;font-size:clamp(28px,7vw,40px);line-height:1.05;letter-spacing:-.035em}p{margin:0}.brand-block p{color:var(--muted);line-height:1.45}.setup-form{display:grid;gap:14px}label{display:grid;gap:7px;color:var(--muted);font-size:13px;font-weight:700}input,select{width:100%;min-height:48px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);color:var(--ink);font-size:16px;outline:none}input:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 4px #1f5eff1f}.primary-button,.ghost-button,.hold-button{border:0;cursor:pointer}.primary-button{min-height:54px;border-radius:12px;background:var(--accent);color:#fff;font-weight:900;letter-spacing:.02em}.setup-form>.primary-button{margin-top:10px}.primary-button:disabled{background:#98a2b3;cursor:not-allowed}.billing-status-panel{display:grid;gap:9px;margin:0 0 18px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}.billing-status-panel div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.billing-status-panel span,.billing-status-panel p,.billing-status-panel a{font-size:12px;font-weight:700}.billing-status-panel strong{font-size:20px}.billing-status-panel p{line-height:1.5}.billing-status-panel a{color:var(--accent-dark)}.billing-status-panel.ok{border-color:#86efac;background:#f0fdf4}.billing-status-panel.warning{border-color:#fbbf24;background:#fffbeb;color:#92400e}.billing-status-panel.blocked{border-color:#fca5a5;background:#fef2f2;color:var(--danger)}.primary-button.compact,.secondary-button{min-height:42px;border-radius:12px;font-weight:900}.secondary-button{border:1px solid var(--line);background:var(--surface-soft);color:var(--ink);cursor:pointer}.config-footnote{margin-top:12px;color:var(--muted);font-size:12px;font-weight:700}.staff-session-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;color:var(--muted);font-size:12px}.staff-session-row strong{color:var(--ink)}.text-button{padding:6px 0;border:0;background:transparent;color:var(--accent-dark);cursor:pointer;font-size:12px;font-weight:800}.setup-footer{max-width:100%;color:var(--muted);font-size:10px;letter-spacing:.08em;line-height:1.4;text-align:center;white-space:nowrap}.setup-footer strong{color:var(--ink);font-weight:800}.conversation-shell{display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:10px;max-width:900px;margin:0 auto}.top-bar,.status-strip,.speak-bar,.warning-line,.notice{border:1px solid var(--line);background:var(--surface)}.hidden{display:none!important}.top-bar{display:grid;align-items:center;column-gap:10px;min-height:56px;padding:8px 10px;border-radius:16px}.top-bar--staff{grid-template-columns:max-content max-content minmax(0,1fr) max-content;column-gap:6px}.top-bar--guest{grid-template-columns:max-content minmax(0,1fr) max-content}.conversation-heading{display:contents}.share-room-button{display:grid;place-items:center;width:36px;min-width:36px;min-height:36px;padding:0;border:0;border-radius:999px;background:var(--accent);color:#fff;cursor:pointer;box-shadow:0 8px 18px #1f5eff33}.share-room-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}.channel-title{font-size:19px;font-weight:900;white-space:nowrap}.subline{display:flex;align-items:center;gap:6px;min-width:0;color:var(--muted);font-size:12px}#conversation-participant-label{max-width:min(24vw,150px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.peer-language-line{display:flex;align-items:center;gap:4px;min-height:30px;padding:4px 9px;border-radius:999px;background:var(--surface-soft);color:var(--muted);font-size:12px;white-space:nowrap}.peer-language-line strong{color:var(--ink);font-weight:900}.top-bar--staff .peer-language-line{justify-self:end;padding-right:clamp(6px,2vw,9px);padding-left:clamp(6px,2vw,9px);font-size:clamp(11px,3vw,12px)}.conversation-language-control{display:inline-flex;min-width:0}.conversation-language-control select{width:auto;min-width:92px;max-width:min(44vw,160px);min-height:30px;padding:2px 24px 2px 9px;border-radius:999px;background:#eef4ff;color:var(--accent-dark);font-size:12px;font-weight:900}.top-bar--staff .conversation-language-control select{min-width:74px;padding-right:20px;padding-left:7px}.conversation-language-control select:disabled{opacity:.58;cursor:wait}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.ghost-button{display:grid;place-items:center;width:36px;min-width:36px;min-height:36px;padding:0;border-radius:999px;background:#eef2f7;color:var(--ink)}.power-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}html.mobile-landscape-locked .top-bar--staff{column-gap:6px}@media (max-width: 350px){.top-bar{column-gap:6px;padding-right:8px;padding-left:8px}.top-bar--staff .peer-language-line{padding-right:6px;padding-left:6px;font-size:11px}}.status-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:5px;border-radius:14px}.status-pill{min-width:0;padding:5px 7px;border-radius:10px;background:var(--surface-soft)}.status-pill span,.message-meta{color:var(--muted);font-weight:800;text-transform:uppercase}.status-pill span{font-size:9px;line-height:1}.message-meta{font-size:11px}.status-pill strong{display:block;margin-top:2px;overflow:hidden;color:var(--warning);font-size:12px;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.status-pill.ok strong{color:var(--green)}.warning-line,.notice{padding:9px 12px;border-radius:12px;color:var(--warning);font-size:12px;font-weight:700}.notice.error{color:var(--danger)}.notice.info{color:var(--green)}.conversation-alerts{display:grid;gap:8px}.conversation-alerts:empty{display:none}.message-list{min-height:0;overflow-y:auto;padding:2px 2px 8px;scroll-behavior:smooth;overflow-anchor:none;-webkit-overflow-scrolling:touch}.message-list-bottom{width:100%;height:1px}.empty-state{display:grid;min-height:100%;place-items:center;padding:20px;color:var(--muted);text-align:center;line-height:1.5}.message-row{display:flex;margin-bottom:10px}.message-row.remote{justify-content:flex-start}.message-row.local{justify-content:flex-end}.message-card{width:min(86%,620px);margin-bottom:10px;padding:13px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 8px 24px #1018280f}.message-card.with-audio{border-left:5px solid var(--green)}.message-card.fallback{border-left:5px solid var(--warning)}.message-card.local{border-left:1px solid #bad0ff;border-right:5px solid var(--accent);background:#eef4ff}.message-card.local.fallback,.message-card.local.with-audio{border-left:1px solid #bad0ff}.message-card.remote{background:var(--surface)}.message-meta{display:flex;justify-content:space-between;gap:8px;margin-bottom:8px}.source-text{color:var(--muted);font-size:13px;line-height:1.4}.translated-text{margin-top:8px;font-size:18px;font-weight:850;line-height:1.3}.audio-badge{display:inline-flex;margin-top:10px;padding:4px 8px;border-radius:999px;background:#eef2f7;color:var(--muted);font-size:11px;font-weight:800}.message-card.local .audio-badge{background:#dce8ff;color:var(--accent-dark)}.speak-bar{position:sticky;bottom:0;padding:12px;padding-bottom:max(12px,env(safe-area-inset-bottom));border-radius:18px}.hold-guide{display:flex;align-items:center;gap:12px;margin:0 4px 12px;padding:10px 12px;border:1px solid #b9cdfc;border-radius:14px;background:#eef4ff;color:var(--accent-dark);animation:guide-arrive .36s ease-out both}.hold-guide-gesture{position:relative;flex:0 0 auto;width:34px;height:34px;border:1px solid #aac1fa;border-radius:50%;background:var(--surface)}.hold-guide-gesture:before,.hold-guide-gesture:after,.hold-guide-gesture span{position:absolute;left:50%;border-radius:999px;content:"";transform:translate(-50%)}.hold-guide-gesture:before{top:6px;width:10px;height:14px;background:var(--accent);animation:guide-press 1.45s ease-in-out infinite}.hold-guide-gesture:after{bottom:6px;width:18px;height:5px;background:#1f5eff24}.hold-guide-gesture span{bottom:7px;width:8px;height:3px;background:#1f5eff52}.hold-guide-copy{display:grid;gap:2px;min-width:0}.hold-guide-copy strong{font-size:14px;line-height:1.2}.hold-guide-copy>span{color:#36578f;font-size:12px;font-weight:700;line-height:1.35}.level-track{height:5px;margin:0 8px 10px;overflow:hidden;border-radius:999px;background:#e6ebf1}.level-track span{display:block;width:100%;height:100%;transform-origin:left center;border-radius:inherit;background:var(--accent);transition:background .18s ease,transform 70ms linear}.speak-bar.recording .level-track span{background:var(--recording)}.speak-bar.stopping .level-track span{background:var(--muted)}.hold-button{position:relative;isolation:isolate;width:100%;min-height:68px;padding:10px 18px;border-radius:16px;background:var(--accent);color:#fff;letter-spacing:.01em;touch-action:none;user-select:none;-webkit-touch-callout:none;-webkit-user-select:none;box-shadow:0 14px 28px #1f5eff38;transition:background .16s ease,box-shadow .16s ease,transform 90ms ease}.hold-button:before{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;border:2px solid transparent;border-radius:inherit;content:"";pointer-events:none}.hold-button.held{transform:scale(.985)}.hold-button.starting{background:var(--accent-dark);box-shadow:0 10px 22px #1748c738}.hold-button.recording{background:var(--recording);box-shadow:0 15px 30px #d92d204d}.hold-button.recording:before{border-color:#d92d2057;animation:recording-pulse 1.35s ease-out infinite}.hold-button.stopping{background:#475467;box-shadow:0 10px 22px #47546733}.hold-button.warning{background:var(--warning);box-shadow:0 14px 28px #a15c0738}.hold-button-label,.hold-button-detail{display:block;pointer-events:none}.hold-button-label{font-size:20px;font-weight:950;line-height:1.15}.hold-button-detail{margin-top:3px;color:#ffffffd1;font-size:11px;font-weight:800;letter-spacing:.08em;line-height:1.2;text-transform:uppercase}.speak-hint{margin-top:8px;color:var(--muted);font-size:12px;font-weight:800;text-align:center}.hold-button:disabled{cursor:not-allowed;opacity:.62}.hold-button:focus-visible{outline:3px solid rgba(31,94,255,.28);outline-offset:3px}@keyframes guide-arrive{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes guide-press{0%,to{transform:translate(-50%,-1px)}45%,65%{transform:translate(-50%,5px) scaleY(.82)}}@keyframes recording-pulse{0%{opacity:.72;transform:scale(1)}to{opacity:0;transform:scale(1.035,1.18)}}@media (prefers-reduced-motion: reduce){.hold-guide,.hold-guide-gesture:before,.hold-button.recording:before{animation:none}.hold-button{transition:none}}@media (max-height: 680px){html:not(.mobile-landscape-locked) .conversation-shell{gap:7px;grid-template-rows:auto auto auto minmax(0,1fr) auto}html:not(.mobile-landscape-locked) .top-bar{min-height:52px;padding:8px 10px}html:not(.mobile-landscape-locked) .status-strip{padding:4px}html:not(.mobile-landscape-locked) .warning-line,html:not(.mobile-landscape-locked) .notice{padding:7px 10px}html:not(.mobile-landscape-locked) .hold-button{min-height:60px}}@media (min-width: 720px){html:not(.mobile-landscape-locked) .conversation-shell{padding-left:24px;padding-right:24px}html:not(.mobile-landscape-locked) .message-card{max-width:78%}}
