:root{color-scheme:light;--paper:#faf7f3;--ink:#3c302e;--soft:#786966;--line:#e8dfd8;--accent:#845a59;font:16px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible{outline:2px solid #925e68;outline-offset:2px}button{border:0;background:#efe8e3;border-radius:13px;padding:9px 15px}button:disabled{opacity:.56}button:active{filter:brightness(.94)}[hidden],.symbols,#speaker{display:none!important}
main{width:100%;max-width:780px;height:100vh;height:var(--screen,100dvh);margin:0 auto;display:flex;flex-direction:column;padding:env(safe-area-inset-top,0px) clamp(16px,5vw,46px) max(10px,env(safe-area-inset-bottom,0px));position:relative}header,.sheethead,.brand,.presence,.callrow,.actions{display:flex;align-items:center}header,.sheethead{justify-content:space-between}header{min-height:84px;flex:none;border-bottom:1px solid var(--line)}.brand{gap:13px}.seal{width:45px;height:45px;border-radius:17px;display:grid;place-items:center;background:#f1e0dd;color:#a36970}.seal svg{width:32px;height:32px}.brand h1,.sheet h2{margin:0;font-weight:600;letter-spacing:.08em}.brand h1{font-size:22px;line-height:1.35}.presence{gap:6px;color:var(--soft);font-size:12px;letter-spacing:.06em}.presence i{width:6px;height:6px;border-radius:50%;background:#a79892}body[data-phase="listen"] .presence i{background:#668675}body[data-phase="speak"] .presence i{background:#ab6875}body[data-phase="think"] .presence i{background:#b28c61}.round{border:1px solid var(--line);border-radius:50%;width:44px;height:44px;display:grid;place-items:center;background:transparent;padding:10px}.round svg,.lineicon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#gate{margin:auto;max-width:360px;width:100%}#gate label{font-weight:580;display:block;margin-bottom:12px}#room{min-height:0;flex:1;display:flex;flex-direction:column}#history{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:22px 0;scrollbar-width:thin;overflow-anchor:none}.exchange{display:flow-root}.bubble{width:fit-content;max-width:min(86%,39em);margin:0 0 14px;padding:9px 15px;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.64}.mine{background:#eddcda;margin-left:auto;border-radius:18px 18px 5px 18px}.hers{background:#f0ebe4;border-radius:18px 18px 18px 5px}.dock{border-top:1px solid var(--line);padding-top:12px}.callrow{gap:8px;margin:0 0 10px;flex-wrap:wrap}.callrow button{font-size:14px;min-height:42px}.call{display:inline-flex;align-items:center;gap:7px;color:#fff;background:#81595a}.call .lineicon{width:17px}.field{display:flex;gap:8px;background:#fffdfb;border:1px solid #e3d8d3;padding:5px;border-radius:20px}.field input{min-width:0;flex:1;width:100%;background:none;border:0;padding:6px 11px;outline:none;font-size:16px}.field button{display:grid;place-items:center;min-height:40px;background:#795659;color:white;border-radius:15px}.field input::placeholder{color:#928782}.wave{display:none;gap:3px;align-items:center;padding:0 4px}.wave i{width:3px;height:12px;border-radius:4px;background:#ab797a;animation:pulse .8s ease-in-out infinite alternate}.wave i:nth-child(2n){animation-delay:-.4s}.wave i:nth-child(3){height:19px}.wave i:nth-child(4){animation-delay:-.2s}body:is([data-phase="listen"],[data-phase="speak"],[data-phase="think"],[data-phase="cut"]) .wave{display:flex}body[data-phase="think"] .wave i{animation-duration:1.6s}body[data-phase="cut"] .wave i{animation:none;height:4px}@keyframes pulse{from{transform:scaleY(.35)}to{transform:scaleY(1)}}@media(prefers-reduced-motion:reduce){.wave i{animation:none}}
#error,#settingError{color:#8a403e;font-size:14px;margin:5px 0}dialog{border:1px solid var(--line);border-radius:24px;background:var(--paper);color:var(--ink);width:min(94%,540px);max-height:88dvh;max-height:min(88dvh,var(--screen,100dvh));padding:0;overflow:auto}dialog::backdrop{background:#382e2d45}.sheet{padding:22px}.sheethead{margin-bottom:12px}.sheethead h2{font-size:22px}details{border-bottom:1px solid var(--line);padding:14px 0}summary{cursor:pointer;font-weight:580;line-height:1.8}details p,.sheet #status{font-size:14px;color:var(--soft);line-height:1.65}details label{display:block;margin:12px 0 5px}details select{display:block;max-width:100%;width:100%;border:1px solid var(--line);background:white;padding:9px;border-radius:10px;margin-top:6px}details .check{font-size:14px}.nested{border:0;padding:8px 0}.nested summary{font-weight:400;font-size:14px}.nested audio{display:block;width:100%;margin:5px 0 12px}.actions{flex-wrap:wrap;gap:7px}.sheet button{font-size:14px}.sheet #mem button{margin:4px}#samples{font-size:13px}#log p{overflow-wrap:anywhere}#recover,#retry{background:#f3dedb}#status:empty,#settingError:empty{display:none}@media(min-width:800px){main{padding-top:18px;padding-bottom:24px}}@media(max-height:550px){header{min-height:56px}.seal{width:36px;height:36px}.dock{padding-top:4px}.callrow{margin-bottom:4px}}

textarea[readonly]{display:block;width:100%;min-height:8em;font-size:13px;}textarea[hidden]{display:none}
