:root{color-scheme:light;--ink:#20352d;--muted:#77867e;--green:#22634e;--line:#e1e8e2;--paper:#f8faf8;--composer-height:170px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:16px;line-height:1.65;-webkit-text-size-adjust:100%}button,input,textarea,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default;opacity:.45}[hidden]{display:none!important}.shell{max-width:780px;margin:auto;min-height:100dvh}.top{position:sticky;top:0;z-index:5;padding:calc(14px + env(safe-area-inset-top)) 20px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f8faf8f5;backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.identity{display:flex;align-items:center;gap:10px}.logo{display:grid;place-items:center;background:#244f3f;color:#f6fbf7;border-radius:13px;width:40px;height:40px;font-weight:650;font-size:22px}h1{font-size:17px;letter-spacing:.025em;margin:0;font-weight:650}.identity p{font-size:10px;color:var(--muted);margin:1px 0 0}.quiet{background:transparent;border:1px solid var(--line);border-radius:12px;min-height:40px;padding:7px 11px;white-space:nowrap;color:var(--ink);font-size:12px}.quiet>span{font-size:17px}.scopebar{display:flex;align-items:center;gap:10px;padding:7px 20px;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}select{min-width:0;flex:1;border:0;background:transparent;color:var(--ink);font-size:13px;padding:9px 0;text-overflow:ellipsis}select:focus-visible,button:focus-visible{outline:2px solid #8db4a3;outline-offset:3px}.scopebar label{white-space:nowrap}.scopebar .quiet{border:0;color:var(--muted);font-size:11px}.welcome{padding:43px 25px 12px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:.09em;color:var(--green)}.live-dot,.pulse-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#5f9679;margin-right:6px;vertical-align:middle}.welcome h2{font-size:31px;font-weight:550;letter-spacing:-.055em;line-height:1.4;margin:20px 0 13px}.welcome>p{color:var(--muted);font-size:14px;line-height:1.8}.examples{display:grid;gap:10px;margin:26px 0 18px}.examples button{position:relative;text-align:left;background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px 40px 16px 53px;color:var(--ink);font-size:14px;box-shadow:0 4px 18px #304b3a03}.examples strong{display:block;font-size:14px;font-weight:550}.examples button>span:not(.example-icon):not(.example-arrow){display:block;font-size:11px;color:var(--muted);margin-top:3px}.example-icon{position:absolute;left:16px;top:19px;font-size:21px;color:var(--green)}.example-arrow{position:absolute;right:18px;top:21px;color:#809588;font-size:18px}.welcome-tip{font-size:11px!important;color:#95a097!important;line-height:1.9!important}.small{font-size:11px;color:var(--muted)}.messages{padding:22px 20px calc(var(--composer-height) + 24px)}.turn{margin-bottom:30px}.message.user{width:fit-content;margin-left:auto;max-width:90%;background:#e9f0e9;color:#244333;padding:11px 15px;border:1px solid #e2ebe2;border-radius:17px 17px 4px 17px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px}.message.assistant{margin-top:22px;min-width:0}.assistant-head{display:flex;align-items:center;gap:8px;margin-bottom:11px}.assistant-mark{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#e6eee7;color:var(--green);font-size:13px;font-weight:600}.assistant-label{font-size:12px;font-weight:600;color:var(--green)}.answer-mode{font-size:10px;color:var(--muted);background:#edf1ed;border-radius:5px;padding:1px 6px;margin-left:2px}.answer{font-size:15px;line-height:1.8;overflow-wrap:anywhere}.answer p{margin:0 0 12px}.answer p:last-child{margin-bottom:0}.answer h3{font-size:13px;font-weight:650;margin:18px 0 7px;color:#315442}.answer strong{font-weight:650}.answer ul,.answer ol{padding-left:21px;margin:8px 0 14px}.answer li{padding-left:3px;margin:0 0 9px}.answer li::marker{color:#729581}.citation{display:inline;border:0;color:#49765e;background:#eaf0e9;font-size:10px;font-weight:600;line-height:1.4;padding:3px 5px;border-radius:5px;margin:0 2px;vertical-align:super;white-space:nowrap}.answer-meta{font-size:10px;color:#89968d;margin:16px 0 7px;overflow-wrap:anywhere}.answer-details{font-size:11px;color:var(--muted);margin-top:8px}.answer-details summary{cursor:pointer;list-style-position:inside;min-height:29px;display:flex;gap:6px;align-items:center}.answer-details summary:before{content:'›';font-size:17px;display:inline-block;width:9px}.answer-details[open] summary:before{transform:rotate(90deg)}.answer-details>div{background:#f0f4ef;border:1px solid var(--line);border-radius:11px;padding:10px 12px;margin:4px 0 10px;line-height:1.8}.source-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.source-chips button{background:white;border:1px solid var(--line);border-radius:8px;padding:6px 9px;font-size:11px;color:var(--green);min-height:32px}.coverage{font-size:11px;color:#896b33;line-height:1.7;margin-top:9px}.followups{display:flex;flex-wrap:wrap;gap:7px;margin-top:15px}.followups button{font-size:11px;background:transparent;border:1px solid #dbe5dc;border-radius:20px;padding:7px 11px;color:#56735e;min-height:33px}.gallery-label{font-size:11px;color:var(--muted);margin:20px 0 8px}.image-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.photo-card{display:flex;flex-direction:column;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#edf2ed;text-align:left;color:var(--muted)}.photo-card img{width:100%;height:104px;object-fit:cover;display:block;background:#e9efea}.photo-card span{font-size:10px;padding:6px 8px;white-space:nowrap}.photo-card.image-missing img{display:none}.photo-card.image-missing span{white-space:normal;min-height:60px}.state{color:var(--muted);font-size:12px}.error{color:#9c3936;font-size:12px;overflow-wrap:anywhere}.banner{margin:0 20px calc(var(--composer-height) + 18px);padding:11px 13px;background:#fff0ed;border-radius:10px}.composer{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(780px,100%);z-index:4;background:linear-gradient(#f8faf800,#f8faf8 15%);padding:16px 14px calc(8px + env(safe-area-inset-bottom))}.compose-card{border:1px solid #d6e2d7;border-radius:21px;background:#fff;box-shadow:0 5px 24px #24472f09;overflow:hidden}.compose-tools{display:flex;align-items:center;justify-content:space-between;padding:10px 14px 0;gap:8px}.style-picker{display:flex;gap:3px;background:#f1f5f0;border-radius:8px;padding:3px}.style-picker button{border:0;background:none;color:#7d8c80;font-size:11px;border-radius:6px;padding:4px 11px;min-height:27px}.style-picker button[aria-pressed=true]{background:white;color:var(--green);box-shadow:0 1px 4px #22402b12;font-weight:600}.local-badge{font-size:10px;color:#99a498}.composer form{display:flex;align-items:flex-end;gap:10px;padding:10px 11px 11px 16px}.composer textarea{flex:1;min-width:0;resize:none;border:0;background:none;outline:none;max-height:130px;min-height:38px;line-height:1.6;padding:6px 0;font-size:16px;color:var(--ink)}.send{background:var(--green);border:0;border-radius:13px;color:white;width:39px;min-height:39px;flex-shrink:0;font-size:24px;line-height:1}.composer>p{color:#9aa59b;font-size:9px;text-align:center;line-height:1.5;margin:7px 0 0}.busy{display:flex;align-items:center;font-size:11px;color:var(--muted);padding:0 6px 9px;gap:5px}.busy>span:nth-child(2){flex:1}.busy .quiet{min-height:28px;padding:2px 9px}.pulse-dot{animation:pulse 1.4s ease-in-out infinite}@keyframes pulse{50%{opacity:.35}}.pair-card{margin:42px 20px;padding:27px 24px;background:white;border:1px solid var(--line);border-radius:22px;box-shadow:0 8px 40px #23452e04}.pair-card h2{font-size:27px;font-weight:550;letter-spacing:-.04em}.pair-card p{color:var(--muted);font-size:13px}.pair-card label{display:block;font-size:11px;color:var(--muted);margin-top:24px}#pairCode{display:block;width:100%;text-align:center;letter-spacing:.35em;font-size:28px;padding:12px;border:1px solid var(--line);border-radius:12px;margin:7px 0 16px}.primary{background:var(--green);color:white;border:0;border-radius:12px;width:100%;padding:12px;font-size:14px}.primary span{float:right}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#sourceDialog{width:min(620px,calc(100% - 20px));max-height:88dvh;border:1px solid var(--line);border-radius:22px;padding:20px;color:var(--ink);background:#fafcf9}#sourceDialog::backdrop{background:#18372b80;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:-20px;background:#fafcf9;padding:0 0 15px;gap:10px;z-index:1}.dialog-head h2{font-size:20px;font-weight:550;margin:4px 0 0}.source-item{border:1px solid var(--line);border-radius:13px;background:white;padding:14px;margin-bottom:12px}.source-item .source-meta{font-size:11px;color:var(--muted);margin:0 0 10px}.source-item pre{font:inherit;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.8}.source-item .image-grid{grid-template-columns:1fr;margin:12px 0}.source-item .photo-card img{height:190px;object-fit:contain}.source-item .small{margin-bottom:0}#sourceBody>details{font-size:12px;color:var(--muted)}#sourceBody>details>summary{padding:10px 0;cursor:pointer}.legacy-note{border-left:2px solid #c9d8cb;padding-left:12px;color:var(--muted);font-size:12px;margin-bottom:15px}@media(min-width:640px){.welcome{padding:58px 64px 30px}.welcome h2{font-size:36px}.messages{padding-left:45px;padding-right:45px}.examples{grid-template-columns:1fr 1fr}.examples button{padding-left:45px}.example-icon{left:13px}.composer{padding-left:35px;padding-right:35px}.scopebar,.top{padding-left:35px;padding-right:35px}.photo-card img{height:145px}.answer{font-size:16px}}@media(prefers-reduced-motion:reduce){.pulse-dot{animation:none}*{scroll-behavior:auto!important}}
/* Conversation, local speech and diagnostics */
.top-actions{display:flex;align-items:center;gap:2px}.top-actions .quiet{font-size:13px;padding:10px 7px}.favorite-list{display:flex;gap:8px;overflow:auto;padding:4px 0 6px}.favorite-list:empty{display:none}.favorite-list button,.answer-actions button{border:1px solid var(--line,#dce5de);background:#fff;border-radius:18px;padding:8px 13px;color:#2c6251;font:inherit;font-size:13px;white-space:nowrap}.favorite-list button:disabled{opacity:.55}.sync-freshness{font-size:11px;line-height:1.6;color:#839087;margin:6px 0 20px}.answer-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.review-note{font-size:11px;line-height:1.6;color:#839087;margin-top:16px}.update-notice{margin:14px 0;padding:14px 18px;background:#eaf2ec;border-radius:16px;font-size:14px;line-height:1.6}.update-notice p{margin:0 0 6px}.record-button{flex:none;border:0;border-radius:14px;background:#eaf1eb;color:#2c6251;min-height:44px;padding:8px;font-size:13px;margin-right:7px}.record-button.recording{background:#fff1e7;color:#a54826}.speech-panel{position:relative;background:#edf3ee;border:1px solid #dce5de;border-radius:18px;padding:12px 15px;margin-bottom:8px;max-height:42vh;overflow:auto}.speech-panel p{font-size:13px;line-height:1.6;padding-right:42px;margin:2px 0 8px}.speech-panel #stopSpeech{position:absolute;right:8px;top:5px}.speech-panel audio{width:100%;height:38px}.speech-panel label{font-size:12px}.speech-panel textarea{width:100%;box-sizing:border-box;font:inherit;font-size:16px;padding:8px;border:1px solid #cadacf;border-radius:10px;background:#fff;resize:vertical}.history-item{display:block;width:100%;text-align:left;padding:16px 4px;border:0;border-bottom:1px solid #e1e8e3;background:transparent;color:#233d32;font:inherit}.history-item strong{display:block;line-height:1.6;font-size:15px}.history-item span{display:block;color:#829087;font-size:11px;line-height:1.6;margin-top:6px}.search-row{display:flex;gap:8px}.search-row input,#groupAlias{box-sizing:border-box;min-width:0;flex:1;width:100%;padding:12px;border:1px solid #dce5de;border-radius:12px;font-size:16px;background:white}#historySearch label,#groupForm label{font-size:13px;display:block;margin:12px 0 7px}.health-row,.media-row{border-bottom:1px solid #e1e8e3;padding:15px 0;line-height:1.6;font-size:14px}.health-row p,.media-row p{margin:6px 0}.health-badge{float:right;border-radius:8px;background:#edf3ee;padding:2px 8px;font-size:12px;color:#456c57}.health-badge.error{background:#fff0e5;color:#9c532b}.health-badge.busy{background:#f3f1e6;color:#827343}.check-row input{width:18px;height:18px;vertical-align:middle;margin-right:8px}.check-row{padding:8px 0}#healthDialog .primary{margin-top:20px;width:100%}dialog{max-height:82dvh;overflow:auto}dialog .small{line-height:1.6}.scopebar .quiet{padding-left:7px;padding-right:7px;font-size:12px}.identity h1{white-space:nowrap}@media(max-width:380px){.top{gap:4px}.top-actions .quiet{font-size:12px;padding:8px 5px}.identity .logo{display:none}.scopebar{gap:6px}.local-badge{font-size:10px}.style-picker button{padding-left:10px;padding-right:10px}}
#historyDialog,#healthDialog,#mediaDialog,#groupDialog{width:min(620px,calc(100% - 24px));border:1px solid var(--line);border-radius:22px;padding:20px;color:var(--ink);background:#fafcf9}dialog::backdrop{background:#18372b80;backdrop-filter:blur(3px)}.favorite-list,.sync-freshness{margin-left:20px;margin-right:20px}.favorite-list{margin-top:4px}.update-notice{margin-left:20px;margin-right:20px}.favorite-list button,.answer-actions button,dialog button{min-height:40px}#historyQuery{font-size:16px}#historyList{margin-top:8px}.scopebar select{min-width:0}.speech-panel #voiceReview{padding-top:4px}.speech-panel #voiceReview button{margin-top:6px}#voiceTranscript{max-height:150px}
#personaDialog{width:min(620px,calc(100% - 24px));border:1px solid var(--line);border-radius:22px;padding:20px;color:var(--ink);background:#fafcf9}#personaForm label{display:block;font-size:13px;margin:14px 0 6px}#personaForm input:not([type=checkbox]):not([type=range]),#personaForm select{width:100%;padding:11px 12px;border:1px solid #dce5de;border-radius:12px;font-size:16px;background:white;color:var(--ink)}#personaRate{width:100%;accent-color:var(--green)}#rateLabel{float:right;color:var(--muted);font-size:12px}.range-ends{display:flex;justify-content:space-between;color:var(--muted);font-size:11px}.persona-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.voice-settings{font-size:12px;padding:8px 4px;white-space:nowrap}#personaDialog .small{color:var(--muted)}

.device-code{display:block;font:600 clamp(30px,8vw,44px)/1.5 ui-monospace,monospace;letter-spacing:.12em;color:#145f4c;padding:16px 8px;background:#e8f0ea;border-radius:18px;text-align:center}#deviceCodeBox{margin-top:20px}#deviceStatus{font-size:15px;line-height:1.6}#devicePanel .primary{width:100%}
.source-excerpt{margin:16px 0;padding:12px 16px;border-left:3px solid #bbccc1;background:#eef3ef;border-radius:0 12px 12px 0}.source-excerpt blockquote{margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.7}.source-excerpt .answer-meta{margin:0;font-size:12px}

.compose-card .scopebar{padding:4px 14px;gap:8px;font-size:11px}.compose-card .scopebar select{font-size:13px;max-width:100%;min-height:40px}.scope-hint{font-size:10px;color:var(--muted);line-height:1.5;margin:4px 14px 0;overflow-wrap:anywhere}.compose-card .compose-tools{padding-top:6px}

.performance-details{margin:16px 0;font-size:13px;color:#52685b;overflow-wrap:anywhere}.performance-details>summary{cursor:pointer;min-height:40px;padding:9px 0}.performance-body{padding:12px;border:1px solid #dbe5dc;border-radius:12px;background:#f0f4ef}.performance-body p{margin:0 0 10px;line-height:1.7}.performance-body button{font:inherit;white-space:normal;max-width:100%;min-height:44px;background:#fff;color:#22634e;border:1px solid #cbdacf;border-radius:10px;padding:8px 12px}.performance-body textarea{display:block;width:100%;box-sizing:border-box;font:inherit;line-height:1.6;margin-top:12px;padding:10px;border:1px solid #cbdacf;border-radius:8px;resize:vertical}
