:root{font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:#243838;background:#f7f8f4;font-synthesis:none}*{box-sizing:border-box}body{margin:0;display:flex;height:100vh}aside{width:255px;flex-shrink:0;background:#edf1eb;padding:34px 22px;display:flex;flex-direction:column;border-right:1px solid #dfe5dc}.brand{font-size:30px;letter-spacing:5px;font-weight:650;margin-bottom:40px}.brand span{display:block;font-size:10px;letter-spacing:4px;color:#638075;margin-top:8px}button,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:12px;background:#dfe8dc;color:#264638;padding:12px 16px}button:hover{filter:brightness(.97)}button:disabled{cursor:wait;opacity:.55}nav{overflow-y:auto;margin-top:22px;flex:1}nav button{display:block;text-align:left;width:100%;background:transparent;font-size:13px;margin:6px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}nav button.active{background:#d9e3d5}footer{color:#7d8a80;font-size:11px;line-height:1.8}main{flex:1;min-width:0;max-width:1180px;margin:auto;height:100vh;padding:30px 6%;display:flex;flex-direction:column}header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:24px;border-bottom:1px solid #e3e8df}.eyebrow{font-size:11px;letter-spacing:2px;color:#6c8679}h1{font-size:24px;font-weight:500;margin:7px 0}#connection{font-size:11px;color:#678873;background:#e8eee4;padding:8px 12px;border-radius:20px}#messages{flex:1;overflow-y:auto;padding:28px 2px;scroll-behavior:smooth}.welcome{margin:10vh auto;text-align:center;color:#698075}.welcome h2{font-size:23px;font-weight:500;color:#2c4940}.welcome p{font-size:13px;line-height:2}.orb{display:inline-grid;place-items:center;width:72px;height:72px;border-radius:24px;background:#dfe9d8;color:#506e58;font-size:30px;box-shadow:0 12px 40px #d9e0d655}.message{margin-bottom:25px;max-width:94%;line-height:1.8;font-size:15px}.message.user{margin-left:auto;background:#e6ede1;padding:13px 18px;border-radius:18px 18px 4px 18px;width:fit-content}.message.assistant{padding:0 12px}.label{font-size:10px;letter-spacing:2px;color:#789080;margin-bottom:8px}.text{white-space:pre-wrap;overflow-wrap:anywhere}.metrics{font-size:11px;color:#7f8f82;margin-top:12px}details{font-size:12px;color:#7a857e;margin:9px 0}summary{cursor:pointer}.thought{white-space:pre-wrap;max-height:220px;overflow:auto;font-size:12px;line-height:1.7;padding:12px;background:#f0f3ed;border-radius:10px}#notice{font-size:12px;color:#86603a;min-height:25px;line-height:1.6}form{border:1px solid #d9e2d4;border-radius:18px;background:#fff;padding:15px 18px;box-shadow:0 8px 28px #30402707}textarea{display:block;width:100%;resize:vertical;max-height:180px;border:0;background:transparent;outline:none;color:#233a30;line-height:1.6;font-size:15px}.controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.controls label{font-size:11px;color:#748173}select{border:0;background:#edf2e9;border-radius:8px;padding:7px;color:#3e604a;font-size:12px}.hint{font-size:10px;color:#8e998e}#send{background:#315d47;color:white;min-width:82px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

#tasks{max-height:180px;overflow:auto;border-top:1px solid #dfe5dc;padding:5px 0}#tasks details{margin:7px 0}#tasks .text{max-height:250px;overflow:auto;margin:8px 0}#tasks button{padding:6px 12px;font-size:12px}

.voiceControls {display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 22px;border-top:1px solid #e7e2db;font-size:13px}
.voiceControls label {display:flex;gap:6px;align-items:center;white-space:nowrap}
.voiceControls input {width:auto}.voiceControls button,.readAloud {padding:6px 10px;font-size:12px;border:1px solid #d9d0c7;border-radius:9px;background:#faf7f2;color:#625044;cursor:pointer}
#voiceStatus {color:#766c62;font-size:12px}.readAloud {margin-top:8px}
.liveControls{display:flex;align-items:center;gap:12px;padding:10px 0;flex-wrap:wrap}.liveControls button{background:#345f52;color:#fff;border:0;border-radius:12px;padding:10px 16px;cursor:pointer}.liveControls button[aria-pressed="true"]{background:#994e49}.liveControls span{font-size:13px;color:#56655f}
.liveCall{flex-basis:100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}.liveCall[hidden]{display:none}.liveCall .liveCallChip{min-width:0;max-width:100%;padding:2px 10px;border-radius:999px;background:#e6ede4;color:#405c50;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.liveCallCaption{flex-basis:100%;margin:0;font-size:13px;line-height:1.6;overflow-wrap:anywhere}#liveCallUser{color:#56655f}

body{height:100dvh}aside{overflow:auto;width:280px;padding:24px 18px}.brand{margin-bottom:24px}aside details{color:#405c50;font-size:13px;padding:10px 0;border-bottom:1px solid #dce4d8}aside summary{font-size:14px;font-weight:600}aside nav{max-height:220px;margin-top:8px}.lifePanel form{padding:12px;margin:12px 0;border-radius:12px}.lifePanel label{display:block;margin-bottom:10px;font-size:12px}.lifePanel input{width:100%;font:inherit;border:1px solid #d5dfd1;border-radius:6px;padding:6px;margin-top:5px}.lifePanel textarea{font-size:13px;min-height:48px;margin-top:5px}.lifePanel button{font-size:12px;padding:8px 10px}.lifePanel small{line-height:1.7}.lifeEvent{padding:9px 0;border-bottom:1px solid #e2e7de;overflow-wrap:anywhere}.lifeEvent p{margin:5px 0;white-space:pre-wrap}.lifeEvent button{margin-left:6px}.lifeEvent small{color:#748176}#pairCode{font-family:monospace;overflow-wrap:anywhere}#devices>div{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:10px 0}#syncState{margin-top:18px}main{height:100dvh;padding:24px 4%}dialog{border:1px solid #d5dfcf;border-radius:18px;max-width:720px;width:90%;max-height:85dvh;padding:24px;color:#243838;background:#f7f8f4}dialog::backdrop{background:#183c3966}#historyContent article{padding:12px 0;border-bottom:1px solid #dfe5dc}#historyContent p{white-space:pre-wrap;overflow-wrap:anywhere}#closeHistory{float:right}.pairPage{display:grid;place-items:center;padding:24px;min-height:100dvh}.pairPage main{height:auto;max-width:480px;width:100%;padding:0}.pairPage form{padding:24px}.pairPage label{display:block;margin:16px 0}.pairPage input{display:block;width:100%;font:inherit;padding:12px;border:1px solid #d5dfd1;border-radius:8px;margin-top:6px}.pairPage .brand{margin-bottom:24px}#pairError{color:#915436;line-height:1.7}
/* The pairing page at phone width, as it was while the chat page's old phone rules still reached it. */
@media(max-width:760px){.pairPage{height:auto}.pairPage h1{font-size:20px}.pairPage main>p{margin:7px 0;font-size:12px}}
#approvals{margin:0 0 12px}.approval{border:1px solid #c9a35b;background:#fff8e8;border-radius:12px;padding:12px 14px;margin:8px 0}.approval pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;font-size:12px;background:#fffdf6;border-radius:8px;padding:8px;margin:8px 0}.approval button{margin-right:8px}
.approval.admin{border-color:#b5544c;background:#fdf1ee}.adminNote{margin:8px 0 0;font-size:13px;color:#7a2f29}.adminBadge{display:inline-block;margin-right:8px;padding:2px 8px;border-radius:999px;background:#b5544c;color:#fff;font-size:12px;font-weight:600}.approval button{margin-top:6px;overflow-wrap:anywhere;text-align:left}
.policyPicker{display:block;margin:6px 0 0;font-size:13px;color:#243838}.policyPicker>summary,button.policyPicker{display:inline-block;cursor:pointer;list-style:none;border:1px solid #d5dfd1;border-radius:999px;padding:5px 12px;background:#fff;font-size:12px}.policyPicker>summary::-webkit-details-marker{display:none}.policyPicker>summary::after{content:' ▾';color:#748176}.policyPicker[open]>summary{border-color:#7f9a86}.policyPicker>summary:focus-visible,.policyOption:focus-visible{outline:2px solid #7f9a86;outline-offset:1px}.lifeEvent button.policyPicker{margin-left:0;cursor:default;color:#748176}.policyMenu{display:grid;gap:4px;margin-top:6px;border:1px solid #d5dfd1;border-radius:10px;padding:4px;background:#fff}.lifeEvent .policyOption{display:block;width:100%;margin:0;padding:7px 9px;text-align:left;background:transparent;border:0;border-radius:7px;color:inherit}.lifeEvent .policyOption:hover,.policyOption[aria-checked=true]{background:#f3f6f0}.policyOption b{display:block;font-weight:600;font-size:13px}.policyOption small{display:block;color:#748176;line-height:1.5}.computer small{display:block}.nodeNote.warn{color:#86603a}.grant{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:6px;font-size:12px;color:#4c5f55}.grant span{min-width:0;overflow-wrap:anywhere}.grant button{flex-shrink:0;padding:5px 10px}
.lifePanel select{width:100%;font-size:13px;border:1px solid #d5dfd1;border-radius:6px;padding:6px;margin-top:5px;background:#fff;color:#243838}.lifePanel form.panelSearch{display:flex;gap:6px;padding:0;margin:10px 0}.panelSearch input{margin-top:0;min-width:0}.panelSearch button{flex-shrink:0}.memoryItem textarea{border:1px solid #d5dfd1;border-radius:6px;padding:6px;background:#fff}.itemActions{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.lifeEvent .itemActions button{margin-left:0;padding:6px 12px}.panelState{margin:6px 0;color:#5d7266;font-size:12px}.panelState:empty{display:none}.lifePanel .empty{color:#748176}.todoToggle{margin:4px 0;background:transparent;border:1px solid #d5dfd1}.todoItem.closed strong{color:#748176;text-decoration:line-through}.lifeEvent small.overdue{color:#994e49}.lifeEvent p.lifeSummary{color:#4c5f55;font-size:12px;background:#f3f6f0;border-radius:8px;padding:6px 8px}
aside [hidden]{display:none!important}.sproutCard{background:#f6f3e4;border:1px solid #e0d9b8;border-radius:12px;padding:12px;margin:12px 0 0;font-size:13px;color:#3d4a37}.sproutCard>strong{font-size:14px}.sproutSummary{margin:6px 0;line-height:1.7;white-space:pre-wrap}.sproutItem textarea,.seedItem textarea,.desireItem textarea{border:1px solid #d5dfd1;border-radius:6px;padding:6px;background:#fff}.sproutItem label,.seedItem label,.desireItem label{margin:6px 0}.groupTitle{display:block;margin-top:10px;font-weight:600;color:#5d7266}.lifeEvent p.quote{color:#4c5f55;border-left:3px solid #cfdcc8;padding-left:8px}.sproutItem small,.seedItem small,.desireItem small,.unkeptItem small,.candidateItem small{display:block}.seedItem.closed .quote{color:#748176}.desireItem b{font-weight:600}.candidates{background:#f6f3e4;border-radius:10px;padding:4px 10px;margin:10px 0}
.quietControl{padding:12px 0 10px;border-bottom:1px solid #dce4d8;font-size:13px;color:#405c50}.quietControl small{display:block;margin-top:6px;color:#748176}.quietControl label.switch{display:flex;align-items:center;gap:6px;margin:8px 0 0}.quietControl input{width:auto;margin:0}.voiceNote{margin:6px 0 0;font-size:12px;color:#86603a}.voiceNote a{color:inherit}.focusTrace{background:#f3f6f0;border-radius:8px;padding:8px 10px;margin:8px 0}.focusTrace small{display:block;color:#748176}.focusTrace ol{margin:6px 0 0;padding-left:20px;line-height:1.7;overflow-wrap:anywhere}.lifePanel form small{display:block;color:#748176}
.threadItem small,.scheduleItem small,.journalItem small{display:block}.lifePanel small.panelHint{display:block;margin-top:8px;color:#748176}.lifeEvent p.reachDecision{font-size:12px;color:#4c5f55}
.message.daySep{max-width:none;margin:6px 0 18px;padding:0;text-align:center;font-size:11px;letter-spacing:1px;color:#8e998e}.message.assistant.follow{margin-top:-13px}.turnNote{font-size:11px;color:#86603a;margin-bottom:4px}.metrics.stamp{margin-top:4px;width:fit-content;user-select:none}.metrics.stamp[role=button]{cursor:pointer}.metrics.stamp[role=button]:hover,.metrics.stamp:focus-visible{color:#3e604a}.message.user .stamp{margin-left:auto}.stamp+.metrics{margin-top:2px}.metrics[hidden]{display:none}

/* ---- chat: her Markdown (markdown.css draws it; this page only names the colours), message actions, sources, tool
   timeline, thinking, the "回到最新" pill. The colours of these new parts are named once here. ---- */
:root{--ink:#243838;--ink-soft:#5d7266;--ink-faint:#8e998e;--card:#fff;--soft:#eef2ea;--line:#dfe5dc;--accent:#315d47;--on-accent:#fff;--link:#2a6b8c;--chip:#dfe9d8;--ok-bg:#cfe6d4;--ok:#256b3f;--bad-bg:#f3d6d0;--bad:#9a3a2c;--wait-bg:#fff3d6;--wait:#7a5a1c;--shadow:#30402724;
  --md-surface:var(--soft);--md-line:var(--line);--md-link:var(--link);--md-chip:var(--chip);--md-radius:10px;--md-radius-small:4px;--md-code-font:Consolas,"Cascadia Mono",monospace;
  --md-tok-comment:#7d8a80;--md-tok-keyword:#8a3d7a;--md-tok-string:#2f7048;--md-tok-number:#9a5b1e;--md-tok-function:#2a6b8c;--md-tok-tag:#8a3d7a;--md-tok-operator:#5d7266}
.message.assistant{max-width:100%}.msgHead:empty,.msgTail:empty{display:none}
.msgFoot{display:flex;align-items:center;flex-wrap:wrap;gap:2px 8px;margin-top:4px}.msgFoot .metrics.stamp{margin-top:0}.message.user .msgFoot{justify-content:flex-end}.message.user .msgFoot .stamp{margin-left:0}.msgFoot+.metrics{margin-top:2px}
.msgActions{display:flex;align-items:center;flex-wrap:wrap;gap:2px}.msgActions:empty,.msgFoot[hidden],.text[hidden]{display:none}
.msgAct,.msgActions .readAloud{margin:0;border:0;border-radius:8px;background:transparent;color:var(--ink-faint);font-size:12px;line-height:1.4;padding:5px 8px;min-height:28px;cursor:pointer}
.msgAct:hover,.msgActions .readAloud:hover{background:var(--soft);color:var(--accent);filter:none}.msgAct:focus-visible,.msgActions .readAloud:focus-visible,.sourcesToggle:focus-visible,.actionsToggle:focus-visible,.sourceItem:focus-visible,.citeLink:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.msgAct.copied{color:var(--accent)}.msgAct:disabled{opacity:.4;cursor:default}
.versions{display:inline-flex;align-items:center;color:var(--ink-faint);font-size:12px}.versions .msgAct{min-width:28px;font-size:15px;padding:2px 6px}.versionLabel{min-width:36px;text-align:center;font-variant-numeric:tabular-nums}
/* With a mouse the actions wait for the pointer (or the keyboard) and stay on the last turn; a finger has no hover, so
   there they are always shown, quietly. */
@media(hover:hover) and (pointer:fine){.message .msgActions{opacity:0;transition:opacity .15s}.message:hover .msgActions,.message:focus-within .msgActions,.message.last .msgActions{opacity:1}}
@media(pointer:coarse){.msgAct,.msgActions .readAloud{min-height:34px;padding:6px 10px}}
.message.user.editing{width:min(100%,560px);max-width:100%}.editField{display:block;width:100%;min-height:44px;max-height:200px;resize:none;border:1px solid var(--line);border-radius:10px;background:var(--card);padding:8px 10px;font-size:15px;line-height:1.6;color:var(--ink)}.editField:focus{border-color:var(--accent)}
.editRow{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.editRow button{padding:7px 16px;font-size:13px;min-height:34px}.editSend{background:var(--accent);color:var(--on-accent)}
.sources{margin-top:8px}.sourcesToggle{display:inline-flex;align-items:center;gap:8px;max-width:100%;border:0;border-radius:8px;background:transparent;padding:4px 2px;font-size:12px;color:var(--ink-soft);cursor:pointer}.sourcesToggle:hover{filter:none;color:var(--accent)}
.sourcesCount{flex:none}.sourcesCount::before{content:"▸ "}.sources.open .sourcesCount::before{content:"▾ "}.sourcesSites{min-width:0;color:var(--ink-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sourceList{display:grid;gap:6px;margin-top:6px}.sourceList[hidden]{display:none}
.sourceItem{display:grid;grid-template-columns:auto minmax(0,1fr);gap:1px 9px;padding:8px 11px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:inherit;text-decoration:none;font-size:13px;line-height:1.5}
.sourceRef{grid-row:1/span 3;align-self:start;min-width:20px;height:20px;padding:0 4px;border-radius:6px;background:var(--chip);color:var(--accent);font-size:11px;line-height:20px;text-align:center}.sourceMeta{font-size:11px;color:var(--ink-faint)}.sourceTitle{font-weight:600;color:var(--link);overflow-wrap:anywhere}
.sourceSnippet,.cardSnippet{font-size:12px;color:var(--ink-soft);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.sourceSnippet{grid-column:2}
#sourceCard{position:fixed;z-index:20;left:8px;top:8px;width:min(320px,calc(100vw - 16px));padding:10px 13px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);box-shadow:0 10px 30px var(--shadow);font-size:13px;line-height:1.5}#sourceCard[hidden]{display:none}
.cardMeta{font-size:11px;color:var(--ink-faint)}.cardTitle{display:block;margin:2px 0;font-weight:600;color:var(--link);text-decoration:none;overflow-wrap:anywhere}.cardSnippet{-webkit-line-clamp:4}
.actions{margin:0 0 8px}.actionList{display:flex;flex-wrap:wrap;gap:6px}.actions.collapsed .actionList{display:none}
.actionsToggle{border:0;border-radius:8px;background:transparent;padding:3px 2px;font-size:12px;color:var(--ink-soft);cursor:pointer}.actionsToggle:hover{filter:none;color:var(--accent)}.actionsToggle::before{content:"▸ "}.actions:not(.collapsed) .actionsToggle::before{content:"▾ "}.actions:not(.collapsed) .actionsToggle{margin-bottom:4px}
.action{position:relative;overflow:hidden;display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:4px 11px 4px 6px;border-radius:999px;background:var(--soft);color:var(--ink-soft);font-size:12px;line-height:1.5}.action .name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.action .mark{flex:none;display:grid;place-items:center;width:16px;height:16px;border-radius:50%;font-size:10px}.action.running .mark::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent);animation:actPulse 1.1s ease-in-out infinite}
.action.done .mark{background:var(--ok-bg);color:var(--ok)}.action.done .mark::before{content:"✓"}.action.failed .mark{background:var(--bad-bg);color:var(--bad)}.action.failed .mark::before{content:"✕"}
.action.waiting{background:var(--wait-bg);color:var(--wait)}.action.waiting .mark::before{content:"⏳"}.action .wait{font-weight:600}
.action.running::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,#ffffff8c 50%,transparent 70%);transform:translateX(-100%);animation:actShimmer 1.6s ease-in-out infinite;pointer-events:none}
.action .view{border:0;background:transparent;padding:0 0 0 4px;font-size:12px;color:var(--link);cursor:pointer}
.think{margin:0 0 8px;font-size:12px;color:var(--ink-soft)}.thinkSummary{width:fit-content}.think.active .thinkSummary{animation:actPulse 1.6s ease-in-out infinite}.thinkText{max-height:200px;overflow:auto;margin-top:6px;padding:2px 0 2px 10px;border-left:2px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
/* at the right: her text and its controls start at the left, so the pill covers as little of them as it can */
.latestWrap{position:relative;height:0;z-index:3}#latestPill{position:absolute;right:6px;bottom:10px;padding:7px 14px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--accent);font-size:12px;white-space:nowrap;box-shadow:0 6px 18px var(--shadow)}#latestPill.fresh{border-color:transparent;background:var(--accent);color:var(--on-accent)}#latestPill[hidden]{display:none}
#imageView{padding:0;max-width:min(96vw,960px)}.imageBar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;font-size:13px}.imageBar button{padding:6px 12px}#imageContent{max-height:72dvh;overflow:auto;padding:0 16px 16px}.toolImage{display:block;max-width:100%;height:auto;border-radius:8px;margin-bottom:8px}
#recordVoice[data-state=recording]{border-color:transparent;background:#994e49;color:#fff;font-variant-numeric:tabular-nums;animation:actPulse 1.6s ease-in-out infinite}#recordVoice[data-state=transcribing]{border-color:var(--accent);color:var(--accent)}#recordVoice[aria-disabled=true]{opacity:.55}
#historyContent .text{margin:8px 0}
@keyframes actPulse{50%{opacity:.45}}@keyframes actShimmer{to{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){.action::after,.action .mark::before,.think.active .thinkSummary,#recordVoice[data-state=recording]{animation:none}#messages{scroll-behavior:auto}}

/* ---- chat, batch 2: long history (the mark on a turn that was jumped to), the tools (search, days, export), quotes
   and feedback. chat-extras.js builds these parts. ---- */
header #chatToolsOpen{flex:none;margin-left:auto;width:38px;height:38px;padding:0;border-radius:12px;background:#e8eee4;font-size:16px;line-height:1}#chatToolsOpen[aria-pressed=true]{background:var(--chip)}
.message.jumpTarget{animation:jumpMark 2.6s ease-out}@keyframes jumpMark{0%,55%{background-color:#fff3d6;box-shadow:0 0 0 6px #fff3d6}}
#historyContent article.historyTarget{border-radius:6px;background:#fff3d6;box-shadow:0 0 0 8px #fff3d6}
.quoteRef{display:flex;align-items:flex-start;gap:6px;margin:0 0 6px;padding:1px 0 1px 9px;border-left:3px solid #b9c9b3;font-size:13px;line-height:1.6;color:var(--ink-soft)}
.quoteBody{flex:1;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
button.quoteBody{cursor:pointer}button.quoteBody:hover{filter:none;color:var(--accent)}.quoteRef.open .quoteBody{display:block}
.quoteWho{margin-right:6px;font-size:11px;color:var(--ink-faint)}.quoteMore{flex:none;padding:0 2px;border-radius:6px;background:transparent;color:var(--link);font-size:11px;line-height:1.9}
#quoteBar{margin:0 0 8px}#quoteBar:empty{display:none}
.quoteChip{display:flex;align-items:center;gap:6px;padding:4px 4px 4px 10px;border-left:3px solid var(--accent);border-radius:4px 10px 10px 4px;background:var(--soft);font-size:12px;color:var(--ink-soft)}
.quoteChip .text{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quoteChip .remove{flex:none;min-height:30px;padding:4px 10px;border-radius:8px;background:transparent;color:var(--ink-faint);font-size:12px}
#quotePop{position:fixed;z-index:21;left:8px;top:8px;padding:5px 13px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--accent);font-size:12px;box-shadow:0 6px 18px var(--shadow)}#quotePop[hidden]{display:none}
.msgAct.thumb{min-width:30px;padding-left:6px;padding-right:6px}.msgAct.thumb:not(.on){filter:grayscale(1);opacity:.7}.msgAct.thumb.on{background:var(--chip)}
.chatTools{width:min(94vw,560px);height:min(86dvh,720px);padding:12px 16px 16px;flex-direction:column;gap:10px}.chatTools[open]{display:flex}
.toolsBar{display:flex;align-items:center;gap:8px}.toolsTabs{display:flex;gap:4px;flex:1;min-width:0}
.toolsTab{padding:8px 14px;border-radius:10px;background:transparent;color:var(--ink-soft);font-size:14px}.toolsTab.on{background:var(--chip);color:var(--accent);font-weight:600}.toolsClose{padding:8px 12px;background:transparent;color:var(--ink-faint)}
.toolsPane{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px;overflow:auto}.toolsPane[hidden]{display:none}
.searchForm{display:flex;gap:8px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.searchInput{flex:1;min-width:0;border:1px solid var(--line);border-radius:10px;background:var(--card);padding:9px 12px;font:inherit;font-size:15px;color:var(--ink)}.searchInput:focus,.dateField input:focus{outline:2px solid var(--accent);outline-offset:-1px}
.searchGo,.exportGo,.fbSave{background:var(--accent);color:var(--on-accent)}.searchGo{flex:none;padding:9px 16px}
.rangeRow{display:flex;flex-wrap:wrap;gap:8px 14px}.dateField{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--ink-soft)}.dateField input{border:1px solid var(--line);border-radius:8px;background:var(--card);padding:6px 8px;font:inherit;font-size:13px;color:var(--ink)}
.toolsState{margin:0;font-size:12px;line-height:1.7;color:var(--ink-soft)}.toolsState:empty{display:none}
.searchResults,.recBody{display:grid;gap:8px;align-content:start}
.hit{display:block;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);font-size:13px;line-height:1.65;text-align:left}div.hit{background:var(--soft)}
.hitMeta{display:flex;flex-wrap:wrap;gap:4px 8px;margin-bottom:2px;font-size:11px;color:var(--ink-faint)}.hitBadge{padding:0 6px;border-radius:6px;background:var(--chip);color:var(--accent)}
.hitLine{overflow-wrap:anywhere}.hitWho{margin-right:6px;font-size:11px;color:var(--ink-faint)}.hitMark{border-radius:3px;padding:0 1px;background:#ffe9a8;color:inherit}
.searchMore,.recMore{justify-self:center;align-self:center;padding:8px 18px;background:var(--soft);font-size:13px}.recBack{align-self:flex-start;padding:8px 14px;background:var(--soft);font-size:13px}
.recTurn{padding:8px 0;border-bottom:1px solid var(--line);font-size:13px}.recTurn strong{display:block;font-size:11px;color:var(--ink-faint)}.recTarget{border-radius:6px;background:#fff3d6;box-shadow:0 0 0 6px #fff3d6}
.calHead{display:flex;align-items:center;justify-content:space-between;gap:8px}.calTitle{font-size:15px;color:var(--ink)}.calStep{padding:6px 16px;background:var(--soft);font-size:18px;line-height:1.2}
.calGrid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.calWeekday{padding:2px 0;text-align:center;font-size:11px;color:var(--ink-faint)}
.calDay{height:40px;padding:0;border-radius:10px;background:transparent;color:var(--ink-faint);font-size:14px}.calDay.has{background:var(--chip);color:var(--accent);font-weight:600}.calDay.today{outline:1.5px solid var(--accent);outline-offset:-2px}
.calStep:disabled,.calJump:disabled,.calDay:disabled{opacity:.3;cursor:default}.calQuick{display:flex;gap:8px}.calJump{padding:8px 14px;background:var(--soft);font-size:13px}
.exportPresets,.fbTags{display:flex;flex-wrap:wrap;gap:8px}.exportPreset,.fbTag{padding:7px 14px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--ink-soft);font-size:13px}
.exportPreset.on,.fbTag.on,.fbRate.on{border-color:var(--accent);background:var(--chip);color:var(--accent);font-weight:600}.exportButtons{display:flex;gap:10px}.exportGo,.exportCopy{padding:10px 24px}
.fbDialog{width:min(92vw,440px);padding:18px 18px 16px}.fbTitle{margin:0 0 6px;font-size:16px;font-weight:600}
.fbExcerpt{margin:0 0 12px;padding-left:9px;border-left:3px solid var(--line);font-size:12px;line-height:1.6;color:var(--ink-soft);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.fbRating{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}.fbRate{padding:10px 8px;border:1px solid var(--line);background:var(--card);color:var(--ink-soft);font-size:14px}.fbTags{margin-bottom:10px;gap:6px}
.fbNote{min-height:76px;max-height:36dvh;border:1px solid var(--line);border-radius:10px;background:var(--card);padding:9px 11px}.fbNote:focus{border-color:var(--accent)}
.fbCount{display:block;margin-top:2px;text-align:right;font-size:11px;color:var(--ink-faint)}.fbCount:empty,.fbError:empty{display:none}
.fbHint{margin:8px 0 0;font-size:11px;line-height:1.6;color:var(--ink-faint)}.fbError{margin:8px 0 0;font-size:12px;line-height:1.6;color:var(--bad)}
.fbButtons{display:flex;align-items:center;gap:8px;margin-top:12px}.fbSpace{flex:1}.fbButtons button{padding:9px 18px;font-size:14px}.fbWithdraw{padding-left:4px;background:transparent;color:var(--bad)}.fbCancel{background:var(--soft)}
.fbDialog button:disabled,.exportButtons button:disabled,.searchMore:disabled{cursor:default}
@media(prefers-reduced-motion:reduce){.message.jumpTarget{animation:none;background-color:#fff3d6;box-shadow:0 0 0 6px #fff3d6}}
/* With a mouse, 引用 comes up next to the selection; the button in the row is for fingers (it quotes the selection, or
   the whole message). Fields a finger types into are 16px, or the phone zooms the page when they take the focus. */
.quoteAct{display:none}@media(any-pointer:coarse){.quoteAct{display:inline-block}.searchInput,.fbNote,.dateField input{font-size:16px}}

/* ---- the page shown in place of one that could not be fetched (service-worker.js, offline.js) ---- */
.offlinePage{display:grid;place-items:center;height:auto;min-height:100dvh;padding:calc(24px + env(safe-area-inset-top)) calc(24px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(24px + env(safe-area-inset-left))}
.offlinePage main{display:block;height:auto;width:100%;max-width:420px;margin:0;padding:0;text-align:center}
.offlinePage h1{margin:22px 0 10px}.offlinePage p{margin:6px 0;font-size:14px;line-height:1.8;color:#5d7266}.offlinePage #offlineState{color:#86603a}
.offlinePage button{min-width:168px;min-height:48px;margin-top:18px;background:#315d47;color:#fff;font-size:16px}

/* ---- the phone app shell (shell.js): at 760px and narrower the chat page is one screen: top bar, messages, composer.
   The sidebar is a sheet over the chat; the lesser voice controls are a sheet behind 「⋯」. Every rule is under
   body.app (the chat page), so the other pages that use this file are left alone. On a wide screen the new parts
   are not drawn at all and `.pending` is no box. ---- */
.pending{display:contents}
#sideOpen,#sideClose,#moreOpen,.barName,.barState,.statusLine,.sheetShade,.moreSheet,.installHint{display:none}
@media(max-width:760px){
/* one screen: the page itself neither scrolls nor bounces, the list does. shell.js keeps --app-height and --app-top at
   what the on-screen keyboard leaves visible. */
html:has(>.app){height:100%;overflow:hidden;overscroll-behavior:none;-webkit-text-size-adjust:100%}
.app{position:fixed;inset:0;display:block;height:auto;overflow:hidden;overscroll-behavior:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.app main{position:absolute;left:0;right:0;top:var(--app-top,0px);height:var(--app-height,100dvh);max-width:none;margin:0;padding:0 0 calc(8px + env(safe-area-inset-bottom));display:flex;flex-direction:column}
.keyboard .app main{padding-bottom:6px}
/* a field under 16px makes iOS zoom the page when it takes the focus; a finger needs 44px */
.app :is(input:not([type=checkbox],[type=radio]),select,textarea){font-size:16px!important}
.app :is(button,select,summary,input:not([type=checkbox],[type=radio])){min-height:44px}
.app button{min-width:44px}
.app label:has(>input:is([type=checkbox],[type=radio])){display:flex;align-items:center;gap:8px;min-height:44px}
/* small controls inside a message keep their size; the place a finger can hit them is 44px all the same
   (the time stamp stands apart in these lists: inside :is() its three classes would outweigh the lines below) */
.app :is(.msgAct,.msgActions .readAloud,.quoteMore,.action .view,.sourcesToggle,.actionsToggle,.quoteChip .remove,.thinkSummary),.app .metrics.stamp[role=button]{position:relative;min-height:34px;min-width:34px}
.app :is(.msgAct,.msgActions .readAloud,.quoteMore,.action .view,.sourcesToggle,.actionsToggle,.quoteChip .remove,.thinkSummary)::after,.app .metrics.stamp[role=button]::after{content:"";position:absolute;left:50%;top:50%;width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%)}
.app .quoteMore,.app .action .view{min-height:0;min-width:0}.app .action{overflow:visible}.app .action.running::after{border-radius:999px}.app .actions:not(.collapsed) .actionsToggle{margin-bottom:6px}
.app .msgActions{gap:10px 2px}.app .msgFoot{gap:10px 8px}.app .message :is(.msgAct,.readAloud){min-width:44px;padding:6px 7px}.app .md .mdCodeHead .mdCopy{min-width:44px;min-height:44px}
.app .metrics.stamp[role=button]:not([hidden]){display:flex;align-items:center}

/* top bar: the sidebar's button, her name with the state of the connection, the tools */
.app header{flex:none;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:4px;padding:calc(4px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) 4px calc(8px + env(safe-area-inset-left));border-bottom:1px solid #e3e8df}
.app header>div{min-width:0;text-align:center}
.app header :is(.eyebrow,h1),.app :is(#connection,#notice,#liveStatus,#voiceStatus){position:absolute;width:1px;height:1px;min-height:0;margin:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.app .barName{display:block;padding-left:4px;font-size:17px;font-weight:650;letter-spacing:4px;line-height:23px;color:#243838}
.app .barState{display:block;font-size:11px;line-height:15px;color:#8e998e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app .barState::before{content:"";display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:currentColor;vertical-align:1px}
.app header[data-link=ok] .barState{color:#4f8a66}.app header[data-link=down] .barState{color:#994e49}
.app #sideOpen{display:block;position:relative;width:44px;height:44px;padding:0;background:transparent}
.app #sideOpen::before{content:"";position:absolute;left:13px;top:15px;width:18px;height:2px;border-radius:1px;background:#3e604a;box-shadow:0 6px 0 #3e604a,0 12px 0 #3e604a}
.app header #chatToolsOpen{width:44px;height:44px;margin:0;background:transparent;font-size:18px}.app #chatToolsOpen[aria-pressed=true]{background:var(--chip)}
.app .installHint:not([hidden]){flex:none;display:flex;align-items:center;gap:8px;margin:8px 12px 0;padding:10px 6px 10px 14px;border:1px solid #e0d9b8;border-radius:14px;background:#f6f3e4;color:#3d4a37;font-size:14px;line-height:1.5}
.app .installHint p{margin:2px 0 0;font-size:12px;line-height:1.6;color:#5d6652}.app .installHint button{flex:none;padding:0 10px;background:transparent;color:#315d47;font-size:14px;font-weight:600}

/* messages: all the height the rest leaves, never under 30% of the screen */
.app #messages{flex:1 1 0;min-height:calc(var(--app-height,100dvh)*.31);padding:14px 14px 8px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.app .welcome{margin:12vh auto 0}.app .message{max-width:92%;margin-bottom:22px}.app .message.assistant{max-width:100%;padding:0 4px}
/* a conversation with nothing in it yet: app.js leaves the list bare, a phone says the page's welcome instead */
.app #messages:empty{display:grid;place-content:center;justify-items:center;text-align:center}
.app #messages:empty::before{content:"今天过得怎么样？";font-size:21px;color:#2c4940}.app #messages:empty::after{content:"聊聊心情，整理一个想法，或者一起解决眼前的问题。";max-width:250px;margin-top:10px;font-size:13px;line-height:1.9;color:#698075}
.app .message.user{padding:10px 15px}.app .editRow button{min-height:44px}
/* approvals and background tasks: above the composer, scrolling inside what the list can spare. Tasks that are over
   are not here: shell.js keeps them in a sheet (below), and #tasks ends with one line while an answer among them
   has not been looked at. */
.app .pending{display:block;flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 12px}.app .pending:has(>:not([hidden],:empty)){border-top:1px solid #e3e8df}
.app #approvals{margin:0}.app .approval{margin:6px 0;padding:10px 12px}.app .approval pre{max-height:120px}
.app #tasks{max-height:none;overflow:visible;padding:2px 0}.app #tasks:empty{display:none}.app #tasks summary{padding:11px 0;font-size:14px}
.app #tasksNews{display:flex;align-items:center;gap:8px;width:100%;height:44px;padding:0 2px;border-radius:0;background:transparent;color:#243838;font-size:14px;text-align:left}
.app #tasksNews::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:#c58a3a}.app #tasksNews::after{content:"查看 ›";content:"查看 ›" / "";margin-left:auto;font-size:13px;color:#6f7d72}
/* messages kept on this device because they could not be sent (app.js draws them after #notice) */
.app #typedOutbox{flex:0 1 auto;min-height:0;overflow-y:auto;margin:2px 12px 0;padding:6px 6px 6px 12px;border-radius:12px;background:#eef2ea;font-size:12px}
.app #typedOutbox p{margin:2px 0}.app #typedOutbox>div{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:2px 8px;padding-top:4px}
.app #typedOutbox>div>span{flex:1 1 100%;overflow-wrap:anywhere}.app #typedOutbox button{padding:0 14px;font-size:13px}
/* one line for what the page has to say; shell.js fills it from #notice, #liveStatus and #voiceStatus */
.app .statusLine:not([hidden]){flex:none;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;padding:3px 16px 1px;font-size:12px;line-height:18px;color:#86603a;text-align:center;overflow-wrap:anywhere}
.app .statusLine:is([data-from=live],[data-from=voice]){color:#56655f}

/* the voice row: 录音 and the three calls under short names (shell.js writes data-short), then 「⋯」 */
.app .liveControls{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:0 6px;padding:2px calc(10px + env(safe-area-inset-right)) 0 calc(10px + env(safe-area-inset-left))}
.app .liveControls>button{position:relative;z-index:0;flex:0 1 auto;height:44px;margin:0;padding:0 11px;border:0;border-radius:0;background:transparent;color:#3e604a;font-size:0;white-space:nowrap;animation:none}
.app .liveControls>button::before{content:"";position:absolute;z-index:-1;inset:6px 0;border-radius:999px;background:#e8eee4}
.app .liveControls>button::after{content:attr(data-short);content:attr(data-short) / "";font-size:13px;line-height:32px;font-variant-numeric:tabular-nums}
.app .liveControls>button[data-on]{color:#fff}.app .liveControls>button[data-on]::before{background:#994e49}
.app .liveControls>button:disabled,.app .liveControls>button[aria-disabled=true]{opacity:.45}
@media(max-width:350px){.app .liveControls{gap:0 3px;padding-left:6px;padding-right:6px}.app .liveControls>button{padding:0 8px;overflow:hidden}.app .liveControls>button::after{font-size:12px}.app #moreOpen{padding:0}}
.app #recordVoice[data-state]{border:0;background:transparent;animation:none}.app #recordVoice[data-state=recording]::before{animation:actPulse 1.6s ease-in-out infinite}
.app #moreOpen{display:block;width:44px;margin-left:auto;padding:0}.app #moreOpen::before{background:transparent}.app #moreOpen::after{content:"⋯";content:"⋯" / "";font-size:22px}
.app .liveCall:not([hidden]){order:-1;padding:2px 4px 4px}   /* the Live call's captions: above the buttons */
.app .voiceControls{display:contents}

/* composer: a field from one line to five, and send */
.app #composer{flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:0 6px;margin:2px calc(10px + env(safe-area-inset-right)) 0 calc(10px + env(safe-area-inset-left));padding:4px 4px 4px 16px;border-radius:26px;box-shadow:0 4px 18px #30402712}
.app #composer:focus-within{border-color:#b9c9b3}
.app #quoteBar{grid-column:1/-1;margin:4px 2px 2px -8px}
.app #input{grid-column:1;height:44px;min-height:44px;max-height:140px;padding:10px 0;line-height:24px;resize:none;overflow-y:auto}
.app .controls{grid-column:2;display:block;margin:0}.app .hint{display:none}
.app #send{display:block;width:44px;min-width:44px;height:44px;padding:0;border-radius:50%;font-size:0}.app #send::after{content:"↑";content:"↑" / "";font-size:21px;font-weight:600;line-height:44px}

/* sheets: the sidebar from the left, the 「⋯」 controls from below; shell.js opens and closes them */
.app .sheetShade{position:fixed;inset:0;z-index:30;display:block;background:#183c3966;opacity:0;transition:opacity .2s}.app .sheetShade[hidden]{display:none}.app .sheetShade.on{opacity:1}
.app aside{position:fixed;z-index:31;top:0;bottom:0;left:0;width:min(88vw,380px);padding:calc(12px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left));border-right:0;box-shadow:8px 0 30px #30402724;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;transform:translateX(-104%);visibility:hidden;transition:transform .26s cubic-bezier(.22,.8,.24,1),visibility 0s .26s}
.app .moreSheet{display:block;position:fixed;z-index:31;left:0;right:0;bottom:0;max-height:86dvh;overflow-y:auto;overscroll-behavior:contain;padding:10px calc(16px + env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));border-radius:22px 22px 0 0;background:#fbfcf9;box-shadow:0 -10px 40px #30402730;transform:translateY(104%);visibility:hidden;transition:transform .26s cubic-bezier(.22,.8,.24,1),visibility 0s .26s}
.app aside.open,.app .moreSheet.open{transform:none;visibility:visible;transition:transform .26s cubic-bezier(.22,.8,.24,1)}
.app .sheetClose{display:block;flex:none;width:44px;height:44px;padding:0;border-radius:50%;background:#e2e9de;color:#3e604a;font-size:15px}
.app #sideClose{display:block;position:sticky;z-index:2;top:0;align-self:flex-end;margin-bottom:-44px}
.app .brand{margin-bottom:20px;font-size:26px}.app aside details{font-size:14px;padding:2px 0}.app aside summary{padding:12px 0;font-size:15px}
.app aside nav{max-height:40dvh}.app nav button{font-size:14px}.app .lifePanel button,.app .lifeEvent .itemActions button{padding:8px 14px;font-size:14px}.app .lifePanel label{font-size:13px}
.app .lifePanel :is(input,select,textarea){padding:9px 10px;border-radius:10px}.app #devices>div{min-height:44px}.app #syncState{font-size:12px}
.app .sheetBar{display:flex;align-items:center;justify-content:space-between;padding:0 0 8px 4px;font-size:16px}
.app .moreRow{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:6px 4px;border-top:1px solid #e6ebe2;font-size:15px;color:#243838}
.app .moreRow>label{flex:1;justify-content:space-between;gap:12px;font-size:15px;color:inherit}.app .moreRow[data-slot=autoVoice]>label{flex-direction:row-reverse}
.app #autoVoice{-webkit-appearance:none;appearance:none;flex:none;position:relative;width:50px;height:30px;margin:0;border-radius:15px;background:#d3dccd;transition:background .15s}
.app #autoVoice::after{content:"";position:absolute;left:3px;top:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .15s}
.app #autoVoice:checked{background:#315d47}.app #autoVoice:checked::after{transform:translateX(20px)}.app #autoVoice:disabled{opacity:.5}
.app .moreRow select{max-width:64%;padding:8px 10px;border-radius:10px}.app .moreRow label:has(#mode){display:flex;align-items:center}
.app #voiceName{flex:1;min-width:0;font-size:12px;color:#8e998e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app #stopVoice{flex:1;border:1px solid #d9d0c7;border-radius:12px;background:#faf7f2;color:#625044;font-size:15px}
.app #listeningLink{flex:1;margin:0}.app #listeningLink a{display:flex;align-items:center;justify-content:space-between;min-height:44px;color:inherit;text-decoration:none}.app #listeningLink a::after{content:"›";font-size:22px;color:#8e998e}
/* background tasks that are over: a row of 「⋯」 with their number, and the sheet it leads to (shell.js builds both
   and moves app.js's rows into the sheet) */
.app .moreRow[hidden]{display:none}
.app #tasksOpen{flex:1;display:flex;align-items:center;gap:10px;padding:0;border-radius:0;background:transparent;color:inherit;font-size:15px;text-align:left}
.app #tasksOpen span{margin-left:auto;font-size:13px;color:#8e998e}.app #tasksOpen::after{content:"›";content:"›" / "";font-size:22px;color:#8e998e}
.app .tasksSheet .sheetBar{position:sticky;z-index:1;top:-10px;margin-top:-10px;padding-top:10px;border-bottom:1px solid #e6ebe2;background:#fbfcf9}
.app .tasksOver details{margin:0;border-top:1px solid #e6ebe2;font-size:14px;color:#243838}.app .tasksOver details:first-child{border-top:0}
.app .tasksOver summary{padding:13px 4px;font-size:15px;line-height:22px}
.app .tasksOver .text{margin:0 4px 14px;line-height:1.75;overflow-x:auto}
.app .tasksOver details>button{margin:0 4px 14px;padding:0 18px;font-size:14px}

/* dialogs stay inside what the keyboard leaves visible */
.app dialog{top:var(--app-top,0px);bottom:calc(100% - var(--app-top,0px) - var(--app-height,100%));max-height:calc(var(--app-height,100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
.app .chatTools{width:96vw;height:calc(var(--app-height,100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:10px 12px 14px}.app .toolsTab{padding:8px 11px}.app .calDay{height:44px}
.app #historyDialog{padding:18px}.app .fbNote{max-height:24dvh}
}
@media(max-width:760px) and (prefers-reduced-motion:reduce){.app aside,.app .moreSheet,.app .sheetShade,.app #autoVoice,.app #autoVoice::after{transition:none}}
