:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #f0f7f0;
  background: #101b18;
  --soft: #a9bdb3;
  --mint: #c7ffc9;
  --quiet: #22352e;
  --edge: #34483e;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
body::before { content: ""; position: fixed; z-index: -1; inset: 0; background: radial-gradient(ellipse at 50% 32%, #233a30 0%, #162621 38%, #101b18 74%); }
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .54; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.shell { min-height: 100vh; min-height: 100dvh; max-width: 1060px; margin: 0 auto; display: grid; grid-template-rows: auto minmax(0, 1fr); padding: max(18px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); }
.head { min-height: 44px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; }
.brand { grid-column: 1; grid-row: 1; justify-self: start; display: flex; align-items: center; gap: 10px; font-size: 1.13rem; font-weight: 680; white-space: nowrap; }
.brand-mark { width: 29px; height: 29px; display: flex; align-items: center; justify-content: center; gap: 2.5px; background: #203a2f; border: 1px solid #345a48; border-radius: 9px; }
.brand-mark i { display: block; width: 2px; height: 7px; border-radius: 6px; background: var(--mint); }
.brand-mark i:nth-child(2) { height: 12px; }
.utility { justify-self: end; grid-column: 3; display: grid; place-content: center; width: 44px; height: 44px; background: #1b2c26; border: 1px solid var(--edge); border-radius: 14px; color: #d9e6de; }
.head .utility { grid-row: 1; }
.timer { grid-column: 2; grid-row: 1; justify-self: center; color: var(--soft); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.call { width: min(100%, 536px); margin: 0 auto; padding: 2.5vh 0 0; align-self: center; text-align: center; display: grid; justify-items: center; }
.stage { position: relative; width: min(76vw, 320px); aspect-ratio: 1; display: grid; place-items: center; isolation: isolate; }
.orbit { position: absolute; aspect-ratio: 1; border: 1px solid #c1ffdb19; border-radius: 50%; }
.orbit-outer { width: 98%; background: radial-gradient(circle, transparent 38%, #69bc9608 64%, transparent 68%); }
.orbit-middle { width: 84%; border-color: #b3ffce26; }
.orb { position: relative; isolation: isolate; width: 67%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; display: grid; place-items: center; border: 1px solid #a0ecc452; background: radial-gradient(ellipse at 33% 18%, #a9edb5 0%, #60ad8a 23%, #3a7a62 44%, #285344 64%, #162e27 93%); box-shadow: inset 0 -12px 32px #0b1b16aa, inset 0 1px 2px #cbffdcaa, 0 0 54px #65c49a31, 0 19px 35px #0b181571; }
.orb::before { position: absolute; z-index: -1; content: ""; inset: -16%; opacity: .55; background: conic-gradient(from 175deg at 55% 48%, transparent 0deg 39deg, #77dbaa64 108deg, #ddffd646 146deg, transparent 209deg 258deg, #3dd09f55 296deg, transparent 360deg); filter: blur(12px); transform: rotate(-30deg); }
.wave { height: 42%; display: flex; align-items: center; justify-content: center; gap: clamp(3px, 1vw, 7px); }
.wave i { width: clamp(3px, 1.1vw, 6px); height: 14%; background: linear-gradient(0deg, #b3ecc4, #eefff0); border-radius: 8px; box-shadow: 0 0 13px #d5ffb08b; transform-origin: center; }
.wave i:nth-child(2n) { height: 25%; }
.wave i:nth-child(3n) { height: 48%; }
.wave i:nth-child(4) { height: 42%; }
.wave i:nth-child(5) { height: 69%; }
.wave i:nth-child(7) { height: 35%; }
.wave i:nth-child(8) { height: 19%; }
.wave i:nth-child(9) { height: 12%; }
[data-state="thinking"] .wave i, [data-state="speaking"] .wave i, [data-state="listening"].talking .wave i { animation: wave .9s ease-in-out infinite alternate; }
[data-state="thinking"] .wave i { animation-duration: 1.25s; }
.wave i:nth-child(2n) { animation-delay: -.35s !important; }
.wave i:nth-child(3n) { animation-delay: -.6s !important; }
[data-state="speaking"] .orb { filter: brightness(1.13); }
[data-state="muted"] .orb { filter: saturate(.34) brightness(.76); }
@keyframes wave { from { transform: scaleY(.42); } to { transform: scaleY(1.25); } }
.status { position: relative; width: 100%; margin-top: 8px; min-height: 151px; }
.kind { margin: 0 0 8px; font-size: .875rem; color: #a7cfba; letter-spacing: .12em; }
h1 { margin: 0; font-weight: 710; font-size: clamp(2rem, 7vw, 2.875rem); letter-spacing: .015em; line-height: 1.2; text-wrap: balance; }
.caption { color: #c4d6cb; font-size: .98rem; line-height: 1.55; margin: 12px auto 0; max-width: 405px; min-height: 1.6em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.caption:empty { margin: 0; min-height: 0; }
.talk-hint { margin: 10px 0 0; color: var(--soft); font-size: .875rem; }
.controls { width: 100%; }
.idle-controls { display: grid; justify-items: center; }
.start { border: 0; border-radius: 1000px; padding: 0 27px; display: inline-flex; justify-content: center; align-items: center; gap: 13px; height: 60px; min-width: 200px; background: var(--mint); color: #13251a; font-weight: 730; font-size: 1.0625rem; box-shadow: 0 9px 34px #96e4a527, inset 0 1px 0 #f3ffef; }
.start:hover:enabled { background: #ddffda; }
.privacy { max-width: 275px; margin: 15px 0 0; color: var(--soft); font-size: .8125rem; line-height: 1.55; text-wrap: balance; }
.active-controls { display: flex; gap: clamp(22px, 9vw, 45px); justify-content: center; align-items: flex-start; margin-top: 13px; }
.round-control { min-width: 64px; border: 0; background: none; color: #dce8de; display: grid; justify-items: center; gap: 7px; padding: 0 0 4px; font-size: .875rem; }
.round-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--edge); background: #22342c; }
.hangup .round-icon { width: 63px; height: 63px; margin-top: -3px; background: #fb9f98; color: #351b19; border-color: #ffe2dd74; }
.hangup .phone { transform: rotate(135deg); }
.round-control[aria-pressed="true"] .round-icon, .round-control[aria-expanded="true"] .round-icon { border-color: #a3d8ba; background: #314d3d; }
.cut { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #5b7869; border-radius: 100px; min-height: 44px; margin-top: 10px; padding: 2px 18px; background: #1b2c26; color: #e5f4e9; }
.square { display: block; width: 9px; height: 9px; border-radius: 2px; background: var(--mint); }
.notice { width: min(100%, 420px); background: #27372f; border: 1px solid #475d50; border-radius: 12px; padding: 9px 13px; font-size: .875rem; line-height: 1.55; color: #f0e4ce; margin: 14px 0 0; }
.text-button { color: #ddf4df; background: transparent; border: 0; padding: 12px; text-decoration: underline; text-underline-offset: 4px; }
.transcript-edit { padding: 10px 2px 1px; font-size: .875rem; }
.ico { width: 22px; height: 22px; display: inline-block; background: currentColor; mask: var(--symbol) center / contain no-repeat; }
.phone { --symbol: url("/icon-phone.png"); }
.sliders { --symbol: url("/icon-settings.png"); }
.microphone { --symbol: url("/icon-mic.png"); }
[aria-pressed="true"] .microphone { --symbol: url("/icon-muted.png"); }
.subtitle { --symbol: url("/icon-caption.png"); }
.sheet { width: min(100% - 24px, 490px); border: 1px solid #465e51; background: #1b2c25; color: #f0f7ef; border-radius: 20px; padding: 16px 22px max(20px, env(safe-area-inset-bottom)); max-height: min(84dvh, 650px); overflow: auto; box-shadow: 0 20px 90px #090f0d9c; }
.sheet::backdrop { background: #0a1410b8; backdrop-filter: blur(5px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 9px; }
.sheet-head h2 { margin: 0; font-size: 1.25rem; font-weight: 680; }
.close { font-size: 26px; line-height: 1; }
.setting-row { min-height: 70px; border-bottom: 1px solid #34483e; display: flex; align-items: center; justify-content: space-between; gap: 17px; padding: 11px 0; }
.setting-row:last-child { border-bottom: 0; }
.setting-row input { accent-color: #bcf2c6; width: 22px; height: 22px; flex-shrink: 0; }
.setting-row small { display: block; margin-top: 4px; color: var(--soft); line-height: 1.55; overflow-wrap: anywhere; font-size: .875rem; }
.phone-link strong { display: block; }
.turns { min-height: 9rem; max-height: 44dvh; overflow: auto; overscroll-behavior: contain; text-align: left; padding: 3px 3px 10px; }
.turns article { padding: 10px 0; border-bottom: 1px solid var(--edge); }
.turns small { color: #a7cfba; font-size: .8125rem; }
.turns p, .pair p { margin: 5px 0 0; color: #e4f0e7; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.turns .empty { color: var(--soft); }
.compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-top: 12px; }
.compose input { min-width: 0; height: 44px; padding: 0 10px; color: #eef8ef; background: #13231c; border: 1px solid #516d5c; border-radius: 10px; }
.compose button { padding: 0 15px; border: 0; border-radius: 10px; background: var(--mint); color: #192c21; font-weight: 680; min-width: 58px; }
.pair .pair-error { color: #ffb6a8; margin-top: 11px; font-size: .875rem; }
.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; }
@media (min-width: 700px) { .shell { padding-left: 48px; padding-right: 48px; } }
@media (max-height: 730px) { .stage { width: min(65vw, 33dvh, 280px); } .call { padding-top: 8px; } .status { min-height: 131px; } }
@media (max-width: 560px) { .sheet { margin: auto auto max(7px, env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none !important; } }
