:root {
  color-scheme:light;
  font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  color:#1d251d;
  background:#f3f4ed;
  font-synthesis:none;
  --paper:#fbfcf7;
  --line:#dce1d5;
  --muted:#5c6758;
  --ink:#192018;
  --accent:#d6fa76;
  --dark:#161b16;
}
* {box-sizing:border-box}
body {margin:0}
button,input,select,textarea {font:inherit}
button,summary,select {cursor:pointer}
button[disabled],fieldset[disabled] button,fieldset[disabled] select {cursor:not-allowed;opacity:.5}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {outline:2px solid #56772b;outline-offset:3px}
[hidden]{display:none!important}
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.topbar {border-bottom:1px solid var(--line);background:#f8f9f2}
.topbar-inner,.shell {width:min(1270px,calc(100% - 80px));margin-inline:auto}
.topbar-inner {height:69px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand,.top-status {display:flex;align-items:center;gap:12px}
.brand strong {font-size:1.36rem;letter-spacing:-.06em;font-weight:850}
.brand>span:nth-of-type(1),.top-separator {width:1px;height:18px;background:var(--line)}
.brand .lab,.top-status {font-size:.875rem;font-weight:570;color:#4a5947}
.signal {height:8px;width:8px;border-radius:50%;background:#739247;margin-right:-5px}
.top-status .top-separator {height:14px}
.shell {padding:35px 0 22px}
.page-heading {display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:26px}
h1,h2,p,dl {margin:0}
h1 {font-size:clamp(2.65rem,5.5vw,4.05rem);letter-spacing:-.095em;line-height:1.1;font-weight:860}
h1 span {color:#628337;margin-left:.06em}
.page-heading p {color:var(--muted);margin-top:10px;font-size:1rem;letter-spacing:.035em}
.heading-link {margin-bottom:3px}
.text-link,.link-button {font-size:.83rem;color:#3a5728;text-underline-offset:3px;font-weight:650}
.link-button {padding:0;border:0;background:none;text-decoration:underline}
.workspace {display:grid;grid-template-columns:292px minmax(0,1fr);gap:18px;align-items:start}
.experience {display:grid;grid-template-columns:minmax(0,1.28fr) minmax(260px,.92fr);gap:18px;min-width:0}
.panel {background:var(--paper);border:1px solid var(--line);border-radius:21px;min-width:0}
.setup,.transcript,.meter {padding:20px}
.panel-head {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}
h2 {font-size:1.055rem;letter-spacing:.015em;line-height:1.3}
.muted,.model-id {color:var(--muted);font-size:.76rem}
fieldset {padding:0;border:0;margin:0;min-width:0}
.field-label {display:block;font-size:.835rem;font-weight:700;margin-bottom:7px}
.field-group {margin-top:16px}
.select {position:relative}
.select:after {position:absolute;content:"";right:15px;top:calc(50% - 5px);width:7px;height:7px;border-right:1.5px solid #435441;border-bottom:1.5px solid #435441;transform:rotate(45deg);pointer-events:none}
select,input,textarea {background:#f5f7f0;width:100%;border:1px solid #dce3d6;border-radius:10px;color:var(--ink);padding:10px 11px;font-size:.89rem;line-height:1.35}
select {appearance:none;padding-right:29px}
textarea {resize:vertical;margin-top:8px}
.model-id {font-family:ui-monospace,monospace;font-size:.70rem;margin-top:7px;overflow-wrap:anywhere}
.chips {display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.chips button,.suggestions button,.quiet-button {border:1px solid #d8e0d2;background:#f4f6ee;border-radius:10px;color:#42503e;font-size:.78rem;padding:7px 10px}
.chips button[aria-pressed="true"] {color:#294016;background:#e9f3d4;border-color:#adbf96;font-weight:750}
.location-row {display:flex;gap:7px}
.quiet-button {white-space:nowrap}
.location-row .quiet-button {font-size:.83rem}
.deck {min-height:480px;position:relative;overflow:hidden;isolation:isolate;border-radius:21px;background:radial-gradient(ellipse at 50% 49%,#303c23 0,#20271d 38%,#171d18 71%);color:#f1f6e7;padding:20px;display:flex;flex-direction:column}
.deck-grid {position:absolute;z-index:-1;inset:0;opacity:.46;background:linear-gradient(transparent 95%,#ffffff12 95%),linear-gradient(90deg,transparent 95%,#ffffff12 95%);background-size:28px 28px;mask-image:linear-gradient(#000,#0008 74%,transparent)}
.deck-head {display:flex;justify-content:space-between;align-items:center;gap:8px;z-index:1}
.deck-tag {font-family:ui-monospace,monospace;font-size:.74rem;padding:6px 8px;border-radius:7px;background:#212b1f;border:1px solid #48523a;color:#d5e3bf;white-space:nowrap}
.visual {min-height:237px;display:grid;place-items:center;flex:1;position:relative;margin-top:0}
.orbit-field {position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.orbit {position:absolute;border-radius:50%;border:1px solid #a0be5b25}
.orbit-outer {width:min(260px,90%);aspect-ratio:1;border-style:dashed}
.orbit-inner {width:min(218px,78%);aspect-ratio:1;box-shadow:0 0 60px #b5db4d12}
.voice-orb {width:145px;height:145px;border-radius:50%;background:radial-gradient(at 38% 24%,#f0ffb5 0,#ddf983 40%,#accf54 80%,#8fb63e 100%);border:1px solid #f9ffb9;box-shadow:0 0 62px #d1f67558,inset 0 0 18px #f5ffbd5e;display:grid;place-items:center;z-index:1}
.wave {height:60px;display:flex;gap:4px;align-items:center}
.wave i {width:4.5px;height:18px;background:#29391b;border-radius:8px;transform-origin:center}
.wave i:nth-child(2n) {height:29px;animation-delay:-.34s}
.wave i:nth-child(3n) {height:40px;animation-delay:-.17s}
.wave i:nth-child(5) {height:50px}
.wave i:nth-child(1),.wave i:nth-child(9) {height:11px}
.deck:is([data-mode=listening],[data-mode=speaking]) .wave i {animation:wave .79s ease-in-out infinite alternate}
.deck[data-mode=listening] .wave i {animation-duration:1.35s}
.deck[data-mode=thinking] .voice-orb,.deck[data-mode=connecting] .voice-orb {animation:glow 1.2s ease-in-out infinite alternate}
@keyframes wave {from {transform:scaleY(.5)} to {transform:scaleY(1.12)}}
@keyframes glow {to {box-shadow:0 0 80px #d1f67588,inset 0 0 18px #f5ffbd5e}}
.deck-copy {display:grid;gap:6px;text-align:center;min-height:72px}
.deck-copy strong {font-size:1.32rem;line-height:1.2}
.deck-copy span {font-size:.82rem;color:#c0ccaf;line-height:1.5}
.deck-actions {display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;position:relative}
.start-button,.composer button,#unlock {border:1px solid #d6fa76;background:var(--accent);color:#202c12;border-radius:11px;font-size:.94rem;font-weight:780;padding:11px 15px;white-space:nowrap}
.deck-button {border:1px solid #59604e;background:#2b3227;color:#e7eddf;border-radius:11px;padding:10px 11px;font-size:.80rem;white-space:nowrap}
.deck-button[aria-pressed=true] {border-color:#c4dd90;color:#e3fea7}
.deck-button.interrupt {border-color:#8b7857}
.deck #start[data-running=true] {background:#f4e4c3;border-color:#f4e4c3}
.session-time {color:#a9b39c;text-align:center;font-family:ui-monospace,monospace;font-size:.74rem;letter-spacing:.065em;margin-top:13px;font-variant-numeric:tabular-nums}
.camera-frame {position:absolute;z-index:2;right:13px;top:65px;width:min(116px,30%);border:1px solid #c7d4b5;border-radius:11px;overflow:hidden;background:#111;aspect-ratio:4/3}
.camera-frame video {width:100%;height:100%;object-fit:cover;display:block}
.camera-frame span {position:absolute;left:4px;bottom:4px;background:#161b16dd;border-radius:4px;padding:2px 5px;font-size:.67rem}
.transcript {height:480px;display:flex;flex-direction:column}
.chat {min-height:80px;overflow:auto;flex:1;display:flex;flex-direction:column;gap:9px;overscroll-behavior:contain;scrollbar-color:#b9c6af transparent;padding-right:4px}
.empty {color:var(--muted);font-size:.875rem;line-height:1.5;padding:9px 0}
.entry {border:1px solid #e1e7d9;background:#f1f4e9;padding:9px 10px;border-radius:11px;width:fit-content;max-width:100%;word-break:break-word;font-size:.87rem;line-height:1.45}
.entry[data-role=user] {align-self:flex-end;background:#edf5d9;border-color:#e1eacb}
.entry[data-role=tool] {width:100%;background:#f0f5f3;border-color:#d7e8df}
.entry-label {display:block;color:#546550;font-size:.73rem;margin-bottom:2px;font-weight:680}
.entry a {display:block;color:#3d6029;text-underline-offset:3px;font-size:.81rem}
.entry[data-interrupted=true]:after {content:"已打断";display:block;color:#687361;font-size:.72rem;margin-top:4px}
.prompts {padding-top:10px;margin-top:9px;border-top:1px solid var(--line)}
summary {font-size:.85rem;font-weight:670;color:#455942}
.suggestions {display:flex;flex-wrap:wrap;gap:5px;margin-top:8px;max-height:100px;overflow:auto}
.suggestions button {padding:5px 8px}
.composer {display:flex;gap:7px;margin-top:11px}
.composer input {min-width:0}
.composer button,#unlock {padding:8px 11px;font-size:.84rem}
.meter {margin-top:18px;scroll-margin-top:20px}
.stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#f1f4ea;border:1px solid #e1e7d9;border-radius:12px}
.stats div {padding:12px 15px;min-width:0}
.stats div+div {border-left:1px solid #dce2d4}
dt {font-size:.82rem;color:#51624a}
dd {margin:3px 0 0;font-family:ui-monospace,monospace;font-size:clamp(.91rem,2vw,1.32rem);font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.meter-note {font-size:.79rem;color:var(--muted);line-height:1.6;margin-top:9px}
.meter-details {margin-top:13px}
.table-wrap {overflow:auto}
table {border-collapse:collapse;width:100%;margin-top:7px;text-align:left;font-size:.84rem}
th,td {padding:8px 8px;border-bottom:1px solid var(--line)}
th:first-child,td:first-child {padding-left:0}
td:nth-child(n+2) {font-family:ui-monospace,monospace;font-variant-numeric:tabular-nums}
th {font-weight:650;color:#52614b}
footer {text-align:center;color:#586555;font-size:.75rem;margin-top:20px}
.callout {margin-bottom:12px;background:#f7efd8;border:1px solid #e5d6ac;color:#6d4c15;padding:10px 14px;border-radius:10px;font-size:.88rem}
dialog {width:min(405px,calc(100% - 25px));border:1px solid var(--line);border-radius:19px;background:#fafcf5;color:var(--ink);padding:23px}
dialog::backdrop {background:#151d15a0}
dialog p {margin:9px 0 12px;color:#4d5e49;font-size:.87rem}
dialog .form-error {color:#963e23;min-height:1em}
.dialog-actions {display:flex;justify-content:flex-end;gap:8px}
@media (hover:hover) {
  .quiet-button:hover,.chips button:hover,.suggestions button:hover {background:#e5efdb}
  .deck-button:hover:not([disabled]) {background:#404a37}
  .start-button:hover,.composer button:hover:not([disabled]),#unlock:hover {filter:brightness(1.07)}
}
@media(max-width:1190px) {
  .topbar-inner,.shell {width:calc(100% - 48px)}
  .workspace {grid-template-columns:248px minmax(0,1fr);gap:12px}
  .experience {gap:12px;grid-template-columns:minmax(0,1.2fr) minmax(230px,1fr)}
  .setup,.transcript,.meter,.deck {padding:16px}
}
@media(max-width:980px) {
  .experience {grid-template-columns:minmax(0,1fr)}
  .deck {min-height:420px}
  .transcript {height:325px}
}
@media(max-width:620px) {
  .topbar-inner,.shell {width:calc(100% - 26px)}
  .topbar-inner {height:57px}
  .brand,.top-status {gap:6px}
  .brand .lab,.top-status {font-size:.72rem}
  .top-separator,#top-state {display:none}
  .shell {padding-top:24px}
  .page-heading {margin-bottom:17px;gap:7px}
  .page-heading p {font-size:.87rem}
  .heading-link {white-space:nowrap;font-size:.72rem}
  .workspace {display:flex;flex-direction:column;align-items:stretch}
  .setup {order:1}
  .deck {min-height:390px}
  .visual {min-height:177px}
  .orbit-outer {width:195px}
  .orbit-inner {width:172px}
  .voice-orb {width:118px;height:118px}
  .stats {grid-template-columns:repeat(2,minmax(0,1fr))}
  .stats div:nth-child(3){border-left:0}
  .stats div:nth-child(n+3){border-top:1px solid var(--line)}
  table {table-layout:fixed;font-size:.77rem}
  th,td {padding:8px 5px;overflow-wrap:anywhere}
  th:first-child {width:36%}
}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {animation:none!important}}
