:root {
  --bg: #07111e;
  --panel: rgba(11, 27, 43, .82);
  --panel-strong: rgba(12, 30, 48, .96);
  --line: rgba(174, 206, 226, .15);
  --line-bright: rgba(184, 226, 227, .32);
  --text: #ecf2ef;
  --muted: #7e95a2;
  --cyan: #8ce1d6;
  --lime: #d7f36f;
  --coral: #ff856e;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; color: var(--text); background: radial-gradient(circle at 76% 10%, rgba(26, 77, 83, .25), transparent 32rem), radial-gradient(circle at 4% 55%, rgba(21, 53, 95, .21), transparent 36rem), var(--bg); font-family: var(--sans); }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
.noise { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .055; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E"); }
.shell { width: min(1420px, calc(100% - 56px)); margin: 0 auto; }
.topbar { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 12px; align-items: center; color: var(--text); text-decoration: none; font: 500 12px var(--mono); letter-spacing: .12em; }
.brand em { color: var(--cyan); font-style: normal; padding: 0 3px; }
.brand-mark { display: flex; align-items: end; gap: 2px; width: 22px; height: 22px; padding: 3px; border: 1px solid var(--cyan); border-radius: 50%; }
.brand-mark i { display: block; width: 3px; border-radius: 2px; background: var(--cyan); animation: markPulse 1.4s ease-in-out infinite alternate; }
.brand-mark i:nth-child(1) { height: 6px; animation-delay: -.5s; }.brand-mark i:nth-child(2) { height: 12px; }.brand-mark i:nth-child(3) { height: 8px; animation-delay: -.2s; }.brand-mark i:nth-child(4) { height: 4px; animation-delay: -.7s; }
.topbar-meta, .session-id, .stage-footer, .meter-label, .meter-value, .state-tag, .eyebrow, .section-index { color: var(--muted); font: 500 10px var(--mono); letter-spacing: .1em; }
.topbar-meta { display: flex; align-items: center; gap: 9px; }.live-dot, .status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px var(--lime); }.divider { display: inline-block; width: 1px; height: 13px; margin: 0 6px; background: var(--line-bright); }
.hero { display: flex; justify-content: space-between; align-items: end; min-height: 265px; padding: 65px 0 52px; }.eyebrow { margin: 0 0 17px; color: var(--cyan); }.eyebrow span { margin-left: 16px; color: var(--muted); }.hero h1 { max-width: 620px; margin: 0; font-size: clamp(48px, 6vw, 85px); line-height: .95; font-weight: 700; letter-spacing: -.07em; }.hero h1 span { color: var(--cyan); }.hero-copy { max-width: 460px; margin: 26px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }.hero-note { display: flex; gap: 13px; align-items: start; padding-bottom: 8px; color: var(--muted); font: 11px/1.7 var(--mono); }.hero-note strong { color: var(--lime); font-weight: 500; }.note-line { display: block; width: 28px; height: 1px; margin-top: 9px; background: var(--coral); box-shadow: 0 0 10px var(--coral); }
.workspace-grid { display: grid; grid-template-columns: 310px minmax(370px, 1fr) 355px; gap: 16px; align-items: stretch; }.panel { border: 1px solid var(--line); background: linear-gradient(140deg, rgba(19, 43, 61, .76), rgba(9, 22, 37, .83)); border-radius: 5px; box-shadow: 0 24px 80px rgba(0,0,0,.12); }.control-panel { padding: 24px 22px 20px; }.panel-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 21px; border-bottom: 1px solid var(--line); }.panel-heading > div { display: flex; align-items: center; gap: 12px; }.panel-heading h2 { margin: 0; font-size: 15px; letter-spacing: -.02em; }.section-index { color: var(--coral); letter-spacing: .03em; }.state-tag { padding: 4px 7px; color: var(--lime); border: 1px solid rgba(215, 243, 111, .23); border-radius: 2px; font-size: 9px; }.field-group { margin-top: 18px; }.field-group label { display: flex; justify-content: space-between; margin-bottom: 8px; color: #b3c4c7; font-size: 11px; }.field-group label span { color: #5c7982; font: 9px var(--mono); letter-spacing: .08em; }.input-wrap { position: relative; }.field-group input, .field-group select, .field-group textarea { width: 100%; border: 1px solid rgba(175, 205, 215, .15); border-radius: 3px; outline: none; color: var(--text); background: rgba(2, 12, 23, .42); transition: border-color .2s, background .2s; }.field-group input, .field-group select { height: 37px; padding: 0 11px; font-size: 11px; }.field-group textarea { min-height: 68px; padding: 10px 11px; resize: vertical; font-size: 11px; line-height: 1.5; }.field-group input:focus, .field-group select:focus, .field-group textarea:focus { border-color: var(--cyan); background: rgba(8, 30, 42, .8); }.field-group select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 16px, calc(100% - 11px) 16px; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; }.field-group option { color: var(--text); background: #0d2335; }.secret-wrap input { padding-right: 38px; }.icon-button { position: absolute; right: 6px; top: 5px; width: 27px; height: 27px; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 13px; }.field-hint { margin: 7px 0 0; color: #5f7b86; font-size: 10px; line-height: 1.45; }.two-col { display: grid; grid-template-columns: 1fr 1.12fr; gap: 9px; }.segmented { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 3px; border: 1px solid rgba(175, 205, 215, .13); background: rgba(1, 10, 19, .34); border-radius: 3px; }.mode-option { padding: 7px 2px; border: 0; border-radius: 2px; color: var(--muted); background: transparent; font-size: 10px; }.mode-option.is-active { color: var(--bg); background: var(--cyan); font-weight: 700; }.connect-button { display: flex; align-items: center; width: 100%; height: 46px; margin-top: 24px; padding: 0 13px; border: 1px solid var(--lime); border-radius: 3px; color: var(--bg); background: var(--lime); font-weight: 700; font-size: 12px; transition: transform .2s, box-shadow .2s, background .2s; }.connect-button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(215,243,111,.17); }.connect-button.is-stop { color: var(--text); border-color: var(--coral); background: rgba(255,133,110,.1); }.button-orb { width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: currentColor; }.button-arrow { margin-left: auto; font-size: 17px; font-weight: 400; }.privacy-note { margin: 14px 0 0; color: #5e7880; font: 9px var(--mono); }.privacy-note span { color: var(--cyan); font-size: 13px; vertical-align: -1px; }
.stage-panel { position: relative; display: flex; min-height: 650px; flex-direction: column; overflow: hidden; }.stage-topline { display: flex; justify-content: space-between; align-items: center; padding: 23px 25px 0; }.status-badge { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 10px var(--mono); text-transform: uppercase; }.status-dot { width: 7px; height: 7px; background: #60747d; box-shadow: none; }.status-badge.is-live .status-dot { background: var(--lime); box-shadow: 0 0 12px var(--lime); }.status-badge.is-speaking .status-dot { background: var(--coral); box-shadow: 0 0 12px var(--coral); }.orb-stage { position: relative; flex: 1; min-height: 430px; display: grid; place-items: center; overflow: hidden; }.orb-grid { position: absolute; inset: 14% -18%; opacity: .25; background-image: linear-gradient(rgba(140,225,214,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(140,225,214,.12) 1px, transparent 1px); background-size: 38px 38px; transform: perspective(440px) rotateX(62deg) translateY(60px) scale(1.1); mask-image: radial-gradient(ellipse, #000, transparent 68%); }.orb-ring { position: absolute; border: 1px solid rgba(140,225,214,.14); border-radius: 50%; transform: rotateX(62deg) rotateZ(-13deg); transition: border-color .5s, box-shadow .5s; }.ring-one { width: 290px; height: 130px; }.ring-two { width: 400px; height: 190px; opacity: .62; transform: rotateX(62deg) rotateZ(32deg); }.ring-three { width: 520px; height: 250px; opacity: .34; transform: rotateX(62deg) rotateZ(-42deg); }.voice-orb { position: relative; z-index: 2; display: grid; place-items: center; width: 168px; height: 168px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, rgba(216,255,237,.9), rgba(140,225,214,.72) 14%, rgba(25, 107, 111, .88) 44%, rgba(8, 27, 43, .3) 69%); box-shadow: 0 0 0 1px rgba(140,225,214,.7), 0 0 35px rgba(140,225,214,.42), 0 0 110px rgba(51,189,174,.18), inset -19px -22px 25px rgba(0, 10, 20, .5); transition: transform .3s, box-shadow .3s; }.orb-core { width: 78px; height: 78px; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #f7fff0, var(--cyan) 22%, #3c9998 68%, #153d4c); box-shadow: inset -10px -10px 14px rgba(1, 20, 29, .46); }.orb-shine { position: absolute; top: 22px; left: 35px; width: 28px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.54); filter: blur(7px); transform: rotate(-33deg); }.orb-stage.is-listening .voice-orb { animation: breathe 1.4s ease-in-out infinite; }.orb-stage.is-speaking .voice-orb { animation: speaking .7s ease-in-out infinite alternate; box-shadow: 0 0 0 1px var(--coral), 0 0 42px rgba(255,133,110,.6), 0 0 110px rgba(255,133,110,.2), inset -19px -22px 25px rgba(0, 10, 20, .5); }.orb-stage.is-speaking .orb-ring { border-color: rgba(255,133,110,.3); }.stage-caption { position: absolute; bottom: 40px; display: flex; align-items: center; gap: 10px; color: #b4c8c7; font-size: 11px; }.stage-caption i { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); }.mic-actions { padding-bottom: 25px; text-align: center; }.mic-button { width: 55px; height: 55px; padding: 0; border: 1px solid var(--cyan); border-radius: 50%; color: var(--bg); background: var(--cyan); box-shadow: 0 0 0 7px rgba(140,225,214,.08); transition: transform .2s, background .2s, color .2s; }.mic-button:disabled { cursor: not-allowed; opacity: .35; }.mic-button:not(:disabled):hover { transform: scale(1.06); }.mic-button.is-recording { color: var(--text); background: var(--coral); border-color: var(--coral); box-shadow: 0 0 0 7px rgba(255,133,110,.1), 0 0 25px rgba(255,133,110,.3); }.mic-icon { font-size: 22px; line-height: 1; }.mic-actions p { margin: 14px 0 0; color: var(--muted); font-size: 10px; }.meter { display: flex; align-items: center; gap: 11px; padding: 15px 25px; border-top: 1px solid var(--line); }.meter-bars { display: flex; align-items: center; gap: 3px; flex: 1; height: 20px; }.meter-bars i { width: 4px; height: 4px; border-radius: 1px; background: #315c66; transition: height .08s, background .08s; }.meter-bars i:nth-child(3n) { background: #477f80; }.meter-value { width: 42px; text-align: right; font-size: 9px; }.stage-footer { display: flex; justify-content: space-between; padding: 0 25px 20px; font-size: 9px; }.transcript-panel { display: flex; min-height: 650px; flex-direction: column; padding: 24px 22px 0; }.transcript-heading { flex: 0 0 auto; }.text-button { padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 10px; }.text-button:hover { color: var(--cyan); }.transcript { flex: 1; overflow: auto; padding: 22px 1px 20px; }.transcript.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; text-align: center; }.empty-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 13px; border: 1px solid rgba(140,225,214,.25); border-radius: 50%; color: var(--cyan); }.empty-state p { margin: 0 0 7px; color: #a6b8ba; font-size: 12px; }.empty-state span { color: #58727d; font-size: 10px; }.message { margin: 0 0 18px; animation: rise .3s ease-out; }.message-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--muted); font: 9px var(--mono); text-transform: uppercase; }.message-meta i { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); }.message.assistant .message-meta i { background: var(--lime); }.message-body { padding: 11px 13px; border: 1px solid var(--line); border-radius: 2px 10px 10px 10px; color: #c4d2d1; background: rgba(17, 42, 54, .55); font-size: 12px; line-height: 1.7; white-space: pre-wrap; }.message.assistant .message-body { border-color: rgba(215,243,111,.14); border-radius: 10px 2px 10px 10px; background: rgba(38, 54, 36, .24); }.event-drawer { flex: 0 0 auto; margin: 0 -22px; border-top: 1px solid var(--line); }.event-toggle { display: flex; align-items: center; gap: 12px; width: 100%; height: 42px; padding: 0 22px; border: 0; color: var(--muted); background: transparent; font: 9px var(--mono); letter-spacing: .08em; text-align: left; }.event-toggle span:nth-child(2) { margin-left: auto; color: #55727b; letter-spacing: 0; }.event-toggle b { margin-left: 5px; font-size: 14px; font-weight: 400; transition: transform .2s; }.event-toggle.is-open b { transform: rotate(180deg); }.event-log { max-height: 180px; overflow: auto; padding: 0 22px 16px; color: #6c8992; font: 9px/1.7 var(--mono); }.event-row { padding: 4px 0; border-bottom: 1px solid rgba(174,206,226,.07); }.event-row strong { color: var(--cyan); font-weight: 400; }.event-row.error strong { color: var(--coral); }
.how-it-works { display: grid; grid-template-columns: 250px 1fr; gap: 52px; align-items: center; padding: 67px 0 65px; }.how-title h2 { margin: 0; font-size: 24px; letter-spacing: -.05em; }.flow-steps { display: flex; align-items: center; gap: 22px; }.flow-step { display: flex; align-items: start; gap: 13px; min-width: 145px; }.flow-step > span { color: var(--coral); font: 10px var(--mono); }.flow-step strong { display: block; color: #d9e6e1; font: 600 12px var(--mono); }.flow-step p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }.flow-connector { flex: 1; min-width: 28px; height: 1px; background: linear-gradient(90deg, rgba(140,225,214,.5), rgba(140,225,214,.05)); }.footer { display: flex; justify-content: space-between; padding: 20px 0 25px; border-top: 1px solid var(--line); color: #5d7780; font: 9px var(--mono); letter-spacing: .06em; }.footer a { color: var(--cyan); text-decoration: none; }.footer a:hover { text-decoration: underline; }
.error-dialog { width: min(430px, calc(100% - 32px)); padding: 25px; border: 1px solid rgba(255,133,110,.45); border-radius: 6px; color: var(--text); background: linear-gradient(145deg, #132d3d, #091827); box-shadow: 0 28px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,133,110,.08); }.error-dialog::backdrop { background: rgba(1, 8, 15, .72); backdrop-filter: blur(4px); }.dialog-kicker { display: flex; align-items: center; gap: 8px; color: var(--coral); font: 9px var(--mono); letter-spacing: .13em; }.dialog-alert-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 12px var(--coral); }.dialog-header { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }.dialog-header h2 { margin: 0; font-size: 23px; letter-spacing: -.05em; }.dialog-close { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: transparent; font-size: 21px; line-height: 1; }.dialog-close:hover { color: var(--text); border-color: var(--line-bright); }.dialog-message { margin: 13px 0 17px; color: #b5c8c8; font-size: 13px; line-height: 1.7; }.dialog-code { padding: 10px 12px; border-left: 2px solid var(--coral); color: #73919a; background: rgba(1, 12, 21, .4); font: 10px var(--mono); line-height: 1.5; }.dialog-actions { display: flex; align-items: center; gap: 18px; margin-top: 22px; }.dialog-primary { min-width: 92px; height: 36px; padding: 0 16px; border: 1px solid var(--cyan); border-radius: 3px; color: var(--bg); background: var(--cyan); font-size: 11px; font-weight: 700; }.dialog-link { color: var(--cyan); font: 10px var(--mono); text-decoration: none; }.dialog-link:hover { text-decoration: underline; }
@keyframes breathe { 0%,100% { transform: scale(.97); } 50% { transform: scale(1.04); } }.orb-stage.is-speaking .voice-orb { animation-name: speaking; } @keyframes speaking { from { transform: scale(.96); } to { transform: scale(1.07); } } @keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } } @keyframes markPulse { from { opacity: .45; } to { opacity: 1; } }
@media (max-width: 1120px) { .workspace-grid { grid-template-columns: 280px minmax(330px, 1fr); }.transcript-panel { grid-column: 1 / -1; min-height: 400px; }.transcript { min-height: 200px; }.how-it-works { grid-template-columns: 190px 1fr; gap: 25px; } }
@media (max-width: 760px) { .shell { width: min(100% - 28px, 560px); }.topbar { height: 68px; }.topbar-meta { display: none; }.hero { min-height: auto; padding: 48px 0 38px; }.hero h1 { font-size: 56px; }.hero-copy { font-size: 13px; }.hero-note { display: none; }.workspace-grid { display: flex; flex-direction: column; }.control-panel { order: 1; }.stage-panel { order: 0; min-height: 570px; }.transcript-panel { order: 2; min-height: 440px; }.how-it-works { display: block; padding: 45px 0; }.how-title { margin-bottom: 30px; }.flow-steps { display: block; }.flow-step { margin-bottom: 17px; }.flow-connector { display: none; }.footer { display: block; line-height: 2; }.footer span { display: block; }.error-dialog { padding: 21px; }.dialog-actions { align-items: flex-start; flex-direction: column; gap: 15px; } }
@media (max-width: 430px) { .two-col { grid-template-columns: 1fr; gap: 0; }.segmented { font-size: 9px; }.orb-ring.ring-one { width: 230px; }.orb-ring.ring-two { width: 310px; }.orb-ring.ring-three { width: 410px; } }
