:root{--ink:#253f3b;--teal:#21695b;--muted:#77837a;--line:#e0e5dd;--paper:#f5f5ef;--gold:#c39347;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft Yahei",sans-serif;color:var(--ink);background:var(--paper);font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);padding:11px 16px;border-radius:9px;transition:.16s}button:hover{border-color:var(--teal);background:#eff5ef}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #c39347;outline-offset:3px}.primary{background:var(--teal);color:white;border-color:var(--teal)}.primary:hover{background:#174f44;color:white}.danger{color:#a34b3e}.small{padding:7px 10px;font-size:13px}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:1px;margin-bottom:12px;font-weight:600}h2{font-size:19px}h3{font-size:16px}p{line-height:1.7}.muted{color:var(--muted);font-size:13px}.shell{display:grid;grid-template-columns:224px 1fr;min-height:100vh}.sidebar{background:#e9eee5;border-right:1px solid #dae2d7;padding:36px 22px;display:flex;flex-direction:column;gap:30px}.brand{display:flex;gap:12px;align-items:center;font-size:21px;font-weight:650}.brandmark{background:var(--teal);color:#eff5d9;width:40px;height:40px;border-radius:13px;display:grid;place-items:center;font-size:25px}.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:2px;margin-top:7px}.sidebar nav{display:grid;gap:10px}.sidebar nav button{text-align:left;background:transparent;border-color:transparent;padding:14px}.sidebar nav .active{background:#fff;box-shadow:0 4px 15px #294c3210;color:var(--teal);font-weight:600}.sidefoot{margin-top:auto;border-top:1px solid #cdd9cb;padding-top:22px;font-size:12px;line-height:1.9;color:#677960}.main{padding:32px 42px 60px;max-width:1500px;width:100%;margin:auto}.topline{display:flex;justify-content:space-between;margin-bottom:38px;font-size:12px;letter-spacing:1px;color:var(--muted)}.tag{display:inline-block;background:#e7eee0;color:#59704e;border-radius:20px;padding:5px 12px;font-size:12px;letter-spacing:0}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.intro p{margin:0;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:28px}.stat,.card{background:#fff;border:1px solid var(--line);border-radius:14px}.stat{padding:22px}.stat strong{display:block;font-size:32px;font-weight:500;margin:12px 0 6px}.stat label{color:var(--muted);font-size:13px}.grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:22px}.card{padding:25px;margin-bottom:22px}.cardhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.cardhead h2{margin:0}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.row.spread{justify-content:space-between}.stack{display:grid;gap:12px}label.field{display:grid;gap:7px;color:#65746c;font-size:13px}input,select{background:#fafbf7;border:1px solid #dce2d8;padding:11px 12px;border-radius:8px;color:var(--ink);width:100%;min-width:0}.formrow{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end}.person{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid #eff1eb}.person:last-child{border:0}.avatar{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#edf1e6;color:#526c51;font-weight:600;flex-shrink:0}.personinfo{flex:1;min-width:0}.personinfo strong{display:block;margin-bottom:5px}.personinfo small{color:var(--muted)}.empty{border:1px dashed #d7dfd2;padding:26px 20px;border-radius:10px;text-align:center;color:var(--muted);line-height:1.9}.notice{background:#f6f5e9;border:1px solid #e9e5ca;border-radius:10px;padding:17px;margin-bottom:12px}.notice strong{display:block;margin-bottom:8px}.log{padding:15px 0;border-bottom:1px solid var(--line)}.terminalbar{display:flex;gap:16px;align-items:center;margin-bottom:24px;padding:17px 20px;background:#fff;border:1px solid var(--line);border-radius:12px}.terminalbar select{max-width:280px}.previewgrid{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:start}.devicewrap{display:flex;justify-content:center;padding:10px 0 30px}.necklace{width:310px;background:linear-gradient(145deg,#e8ddc8,#f5eddf 40%,#ded0b5);border:2px solid #d0c1a7;border-radius:95px 95px 115px 115px;padding:45px 27px 42px;box-shadow:0 22px 44px #554b3520,inset 0 2px 2px white;text-align:center;position:relative}.loop{height:38px;width:48px;border:9px solid #c8baa2;border-radius:20px;position:absolute;top:-25px;left:calc(50% - 24px)}.led{width:8px;height:8px;background:#5a936a;border-radius:50%;margin:auto auto 15px;box-shadow:0 0 0 5px #a6b89320}.speaker{width:100px;height:40px;margin:20px auto;background:radial-gradient(#857b675c 1.5px,transparent 2px);background-size:8px 8px}.devicebuttons{display:grid;grid-template-columns:1fr 1fr;gap:12px}.devicebuttons button{border-radius:22px;background:#faf6ed;border-color:#cbbda6;padding:19px 8px;box-shadow:0 3px 0 #cdbfa7;font-weight:550}.devicebuttons .round{grid-column:1/-1;border-radius:40px;background:var(--teal);color:white;border-color:#1d5c50;font-size:18px}.devicebuttons button span{display:block;font-size:23px;margin-bottom:7px}.devicehint{font-size:12px;color:#7a715e;margin:22px 0 0}.phone{width:min(100%,390px);min-height:590px;margin:auto;border:8px solid #334a43;border-radius:40px;background:#f7f8f2;padding:25px 17px;box-shadow:0 20px 40px #233d3515}.phonebar{text-align:center;font-size:12px;color:#78847a;margin-bottom:25px}.tabs{display:flex;gap:5px;margin-bottom:20px}.tabs button{flex:1;padding:10px 2px;font-size:13px}.tabs .active{background:var(--teal);color:white}.voicecard{background:white;border:1px solid var(--line);border-radius:12px;padding:17px;margin-bottom:12px}.voicecard p{font-size:13px;color:var(--muted)}.bubble{background:#edf2e8;margin:9px 0;padding:10px;border-radius:12px;font-size:13px}.bubble.mine{background:#dceae3;margin-left:35px}.pill{display:inline-block;padding:5px 8px;font-size:11px;background:#f1f3ed;border-radius:6px}.explain{border-left:3px solid #adc59f;padding:0 0 0 17px;margin:25px 0;color:#6b7b6d;font-size:14px;line-height:1.9}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#253f3b;color:white;border-radius:10px;padding:14px 22px;box-shadow:0 8px 30px #0002;max-width:90%;z-index:20;display:none}dialog{border:1px solid var(--line);border-radius:20px;padding:30px;width:460px;max-width:94vw;color:var(--ink)}dialog::backdrop{background:#173c3555;backdrop-filter:blur(3px)}.recordclock{font-size:45px;font-variant-numeric:tabular-nums;text-align:center;margin:25px}.recordactions{display:flex;gap:10px;justify-content:center;margin-top:20px}audio{width:100%;margin:12px 0}.bars{height:45px;display:flex;gap:3px;align-items:center;justify-content:center}.bars i{display:block;width:4px;background:#81a28a;border-radius:3px}.banner{background:#eaf0e4;border-radius:10px;padding:13px 16px;margin-bottom:18px;font-size:13px}.sectiongap{margin-top:30px}@media(max-width:1050px){.main{padding:25px}.shell{grid-template-columns:190px 1fr}.grid,.previewgrid{grid-template-columns:1fr}.stats{grid-template-columns:1fr 1fr}.previewgrid .card{max-width:600px;margin:auto;width:100%}}@media(max-width:650px){.shell{display:block}.sidebar{padding:15px;gap:14px}.sidebar nav{display:flex}.sidebar nav button{flex:1;padding:10px 4px;font-size:13px}.brand{font-size:18px}.sidefoot{display:none}.main{padding:20px 15px}.topline{margin-bottom:24px}.intro{align-items:start}.intro h1{font-size:25px}.intro .tag{display:none}.formrow{grid-template-columns:1fr}.stat{padding:16px}.card{padding:18px}.terminalbar{flex-wrap:wrap}.person{flex-wrap:wrap}.personinfo{min-width:120px}}
.mobile-work-tabs{max-width:400px}.chat-workspace{display:grid;grid-template-columns:260px minmax(0,1fr);height:650px;min-height:500px;background:#f1f1f1;border:1px solid #d9dfd8;border-radius:14px;overflow:hidden}.contact-pane{background:#e9eae7;border-right:1px solid #d6dbd4;overflow-y:auto}.contact-title{font-size:20px;font-weight:600;padding:23px 20px 8px}.contact-title span{font-size:12px;color:#829082}.contact-note{font-size:12px;color:#7a857a;padding:0 20px 14px;margin:0}.contact{display:flex;align-items:center;width:100%;border:0;border-radius:0;background:transparent;padding:18px 14px;gap:11px;text-align:left;position:relative}.contact.selected{background:#d5ded3}.contact:hover{background:#dde4d9}.chat-avatar{width:39px;height:39px;border-radius:7px;background:#d3dfc9;display:grid;place-items:center;flex-shrink:0;color:#4c6550;font-weight:600}.chat-avatar.self{background:#d7e7df}.contact-copy{display:grid;gap:7px;min-width:0;flex:1}.contact-copy strong{font-size:15px}.contact-copy small{font-size:12px;color:#7d857c}.contact time{font-size:10px;color:#8a9388;position:absolute;right:12px;top:10px}.dialogue-pane{display:flex;flex-direction:column;min-width:0;min-height:0}.dialogue-header{padding:20px 25px;background:#f7f7f4;border-bottom:1px solid #e0e3dc;display:flex;align-items:center;gap:14px;min-height:67px}.dialogue-header strong{font-size:18px}.dialogue-header span{font-size:12px;color:#879082}.chat-timeline{flex:1;overflow:auto;padding:16px 25px;scroll-behavior:smooth}.chat-time{text-align:center;color:#92978d;font-size:11px;margin:10px 0 20px}.chat-origin{text-align:center;color:#899081;font-size:12px;margin:10px 0 20px}.origin-play{padding:3px 7px;background:transparent;font-size:12px;border:0;text-decoration:underline;color:#60745c}.message-row{display:flex;gap:10px;align-items:flex-start;margin:0 0 22px}.message-row.outgoing{flex-direction:row-reverse}.message-content{max-width:78%;position:relative}.message-name{font-size:11px;color:#879080;margin-bottom:6px}.outgoing .message-name{text-align:right}.voice-bubble{display:flex;align-items:center;gap:14px;padding:13px 15px;min-width:150px;border-radius:7px;border:1px solid #dedfd9;background:white;position:relative;min-height:51px}.voice-bubble.sent{background:#a9df78;border-color:#a0d46e;flex-direction:row-reverse}.voice-bubble:before{content:'';position:absolute;width:8px;height:8px;background:inherit;transform:rotate(45deg);left:-5px;top:18px;border-left:1px solid #dedfd9;border-bottom:1px solid #dedfd9}.voice-bubble.sent:before{left:auto;right:-5px;border:0;border-top:1px solid #a0d46e;border-right:1px solid #a0d46e}.voice-symbol{font-size:16px;font-weight:bold}.voice-state{font-size:11px;color:#6a7d5a}.voice-bubble.is-playing{outline:2px solid #488647;outline-offset:2px}.is-playing .voice-symbol{animation:voicepulse .65s infinite alternate}@keyframes voicepulse{to{opacity:.3}}.message-report{display:block;font-size:10px;padding:3px 0;background:none;border:0;color:#9a9d94;margin-top:4px}.chat-composer{padding:14px 25px;background:#f7f7f4;border-top:1px solid #dde1d8;text-align:center}.hold-hint{font-size:12px;color:#7b8674;margin-bottom:9px}#hold-talk{width:100%;padding:16px;background:white;border:1px solid #cdd5c6;font-weight:600;font-size:17px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}#hold-talk.recording{background:#d5e6cc}#hold-talk.canceling{background:#f0d7d2;color:#9c493c}.chat-composer small{display:block;font-size:11px;color:#949b8e;margin-top:9px}.chat-welcome{margin:auto;text-align:center;color:#81907a;padding:30px}.chat-welcome>span{font-size:44px;display:block;margin-bottom:20px}@media(max-width:900px){.chat-workspace{grid-template-columns:190px minmax(0,1fr)}.chat-timeline{padding:15px}.dialogue-header{padding:18px 15px}.dialogue-header span{display:none}.contact time{display:none}.voice-state{display:none}.voice-bubble{min-width:110px}}@media(max-width:600px){.chat-workspace{grid-template-columns:105px minmax(0,1fr);height:650px}.contact-title{padding:18px 12px 10px;font-size:17px}.contact-note{padding:0 12px 12px;font-size:11px}.contact{padding:13px 8px;gap:6px;flex-wrap:wrap}.contact .chat-avatar{width:28px;height:28px;font-size:12px}.contact-copy strong{font-size:12px}.contact-copy small{font-size:10px}.chat-timeline{padding:12px 9px}.message-row{gap:6px}.message-row>.chat-avatar{width:25px;height:25px;font-size:11px}.voice-bubble{min-width:90px;gap:10px;padding:11px}.chat-composer{padding:12px 9px}.chat-composer small{font-size:10px}.message-content{max-width:calc(100% - 31px)}.chat-origin{font-size:10px}.chat-time{font-size:10px}}

/* Visual polish only: keep existing controls and flows. */
:root{--ink:#263e36;--teal:#346b56;--muted:#6d7c70;--line:#e4e8df;--paper:#f5f6f1;font-size:16px;letter-spacing:.15px}
body{background:radial-gradient(ellipse at 85% 0,#e8eee0 0,transparent 44%),#f6f7f2}
button{transition:background .18s,border-color .18s,box-shadow .18s,transform .18s;border-radius:12px}
button:hover:not(:disabled){box-shadow:0 3px 10px #2743310a}
button:active:not(:disabled){transform:translateY(1px)}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b5caa0;outline-offset:3px}
button:disabled{opacity:.48}
.primary{background:#346b56;border-color:#346b56;box-shadow:0 4px 12px #346b5618}
.primary:hover{background:#285743}
.shell{grid-template-columns:232px minmax(0,1fr)}
.sidebar{background:#244c3e;color:#f0f5e8;border:0;padding:38px 21px;gap:45px;position:sticky;top:0;height:100vh}
.brand{gap:11px;font-size:23px;letter-spacing:1px;padding:0 3px}
.brandmark{background:#c7d8ab;color:#244c3e;width:44px;height:44px;border-radius:15px;box-shadow:inset 0 1px 0 #fff7;font-size:30px}
.brand small{font-size:9px;color:#b0c6b5;letter-spacing:1.6px;margin-top:9px}
.sidebar nav{gap:12px}.sidebar nav button{font-size:15px;color:#c6d7cb;padding:17px 13px;border-radius:13px;transition:background .18s}
.sidebar nav button:hover{background:#ffffff0c;color:white;box-shadow:none}
.sidebar nav .active{background:#eff4e6;color:#28533f;box-shadow:0 6px 20px #112f2420;font-weight:650}
.sidefoot{border-color:#ffffff20;color:#b5cbbd;font-size:12px;line-height:2.1;padding:22px 7px 0}
.main{padding:33px 42px 46px;max-width:1540px}
.topline{margin-bottom:30px;color:#758571;font-size:11px;letter-spacing:1.6px}
.topline>span:last-child{font-size:10px;border:1px solid #dce4d4;border-radius:20px;padding:5px 10px;letter-spacing:1.1px}
h1{font-size:31px;letter-spacing:1.2px;font-weight:650;margin-bottom:10px;line-height:1.4}
h2{font-size:19px;font-weight:620;letter-spacing:.4px}.intro{margin-bottom:29px}.intro p{font-size:15px;color:#71816d}
.tag{color:#526c42;background:#e6eedb;border:1px solid #dce6cf;padding:7px 13px;letter-spacing:.2px}
.card{border:1px solid #e2e7dc;border-radius:19px;padding:27px;background:#fff;box-shadow:0 6px 24px #28443404}
.cardhead{margin-bottom:24px}.grid{gap:24px}.stats{gap:18px;margin-bottom:26px}
.stat{border-radius:17px;padding:24px;background:#fff;border-color:#e1e6da;box-shadow:0 4px 15px #2d4a3004;position:relative;overflow:hidden}
.stat:after{content:'';position:absolute;width:62px;height:62px;background:#eaf0df;border-radius:50%;right:-22px;top:-21px;opacity:.8}
.stat strong{font-size:34px;letter-spacing:-1px;color:#315d46;font-weight:550;margin:16px 0 7px}.stat label{font-size:14px;color:#5d705d}
.stat:nth-child(2):after{background:#f1e7d3}.stat:nth-child(3):after{background:#e1eae9}.stat:nth-child(4):after{background:#eee3da}
input,select{background:#f9faf6;border:1px solid #dce3d6;border-radius:11px;padding:12px;color:#304b3a;min-height:45px}
input::placeholder{color:#8e9b88}.field{font-size:13px}.formrow{gap:13px}.formrow .primary{min-height:45px}
.person{padding:18px 0;border-color:#edf0e8;gap:14px}.personinfo strong{font-size:15px}.personinfo small{font-size:12px;line-height:1.7}
.avatar{width:45px;height:45px;background:#e8efde;border-radius:15px;font-size:17px}.person:nth-child(3n+2) .avatar{background:#f2e9d8;color:#8b714a}.person:nth-child(3n) .avatar{background:#e3eeea;color:#4d7367}
.small{padding:8px 12px;border-radius:9px;font-size:12px}.muted{color:#73816d;font-size:13px;line-height:1.8}
.empty{border-radius:14px;background:#fafbf7;border-color:#dde5d4;padding:30px 20px;font-size:14px;color:#7c8a73}
.explain{border-left:3px solid #b6c99c;padding:0 0 0 18px;color:#667960;line-height:2;font-size:14px}
.banner{background:#edf3e4;border:1px solid #e0e9d5;border-radius:12px;color:#547045;padding:15px 17px}
.terminalbar{background:#ffffffb8;border-color:#e1e8d9;border-radius:16px;padding:18px 22px;box-shadow:0 4px 18px #2b4d2e04;gap:18px;margin-bottom:25px}
.terminalbar>strong{font-size:13px;color:#57724d}.terminalbar select{max-width:300px;background:white;font-size:14px}.terminalbar .muted{font-size:12px}
.tabs{gap:7px}.mobile-work-tabs{max-width:350px;background:#e8eddf;padding:5px;border-radius:13px;margin-bottom:20px}
.mobile-work-tabs button{background:transparent;border:0;border-radius:9px;font-size:14px;padding:11px 6px;color:#667b59}
.mobile-work-tabs .active{background:#fff;color:#2d6046;box-shadow:0 2px 8px #25462c0d;font-weight:650}
.chat-workspace{grid-template-columns:254px minmax(0,1fr);height:660px;border:1px solid #dce4d4;border-radius:20px;box-shadow:0 12px 40px #2b432508;background:#f8faf5}
.contact-pane{background:#f0f3e9;border-color:#e0e7d8;padding-top:6px}
.contact-title{padding:23px 23px 9px;font-size:19px;color:#355439;letter-spacing:.7px}.contact-title span{background:#e0e9d4;display:inline-grid;place-items:center;min-width:23px;height:23px;border-radius:8px;margin-left:4px;color:#5a754b}
.contact-note{padding:0 23px 24px;font-size:12px;color:#7a8a6c}
.contact{width:calc(100% - 20px);margin:0 10px 7px;padding:18px 13px;border-radius:13px;gap:11px;min-height:81px}
.contact.selected{background:#dfe9d4;box-shadow:inset 3px 0 #668a4d}.contact:hover{background:#e6eddd}
.contact-copy{gap:9px}.contact-copy strong{font-size:15px;color:#37523a;font-weight:600}.contact-copy small{font-size:12px;color:#7b8b70}.contact time{font-size:9px;top:8px;right:11px;color:#7c8a73;letter-spacing:-.2px}
.chat-avatar{width:42px;height:42px;border-radius:13px;background:#e7d9bf;color:#816a41;font-size:16px;box-shadow:inset 0 1px 0 #fff8}
.contact:nth-child(even) .chat-avatar{background:#d3e0d7;color:#567161}.chat-avatar.self{background:#345e49;color:#f1f6e9}
.dialogue-header{min-height:77px;background:#fffdf7;padding:20px 29px;border-color:#e8ecdf;gap:15px}
.dialogue-header strong{font-size:19px;font-weight:600}.dialogue-header span{font-size:11px;color:#819173;border:1px solid #e5ebdc;border-radius:20px;padding:5px 9px}
.chat-timeline{padding:19px 29px 25px;background:#f8faf5;scrollbar-width:thin;scrollbar-color:#d7e1ce transparent}
.chat-time{font-size:11px;color:#8c9980;margin:9px 0 19px;letter-spacing:.6px}
.chat-origin{font-size:12px;margin:10px auto 25px;color:#839375;background:#edf2e5;border-radius:20px;padding:5px 12px;width:fit-content}
.origin-play{color:#5a7848;font-size:12px;font-weight:500;padding:3px 6px;text-underline-offset:3px}
.message-row{gap:12px;margin-bottom:26px}.message-name{font-size:12px;color:#7c8d6e;margin-bottom:8px}
.voice-bubble{min-width:171px;min-height:57px;border-radius:0 14px 14px 14px;padding:14px 18px;gap:16px;background:#fff;border-color:#e0e6d9;box-shadow:0 3px 10px #2c472406}
.voice-bubble:before{display:none}.voice-bubble.sent{background:#dbe9c9;border-color:#cdddba;border-radius:14px 0 14px 14px;color:#375731}
.voice-bubble:hover{background:#f3f7ec;border-color:#bdcfaa}.voice-bubble.sent:hover{background:#d2e3bd}
.voice-bubble strong{font-size:18px;letter-spacing:.5px}.voice-symbol{font-size:18px;color:#5f7d4c}.voice-state{font-size:11px;color:#7a8e68}.voice-bubble.is-playing{outline:2px solid #80a361;outline-offset:3px;background:#edf4e2}
.message-report{font-size:10px;color:#8e9985;padding:5px 2px}.message-report:hover{color:#a95e4e;background:none;box-shadow:none}
.chat-composer{padding:17px 29px 18px;background:#fffdf8;border-color:#e3e9db}.hold-hint{font-size:12px;color:#7e8b70;margin-bottom:12px}
#hold-talk{background:#365f49;color:#f6f9f0;border:1px solid #365f49;border-radius:13px;padding:16px;font-size:17px;letter-spacing:1.5px;min-height:57px;box-shadow:0 4px 10px #244b3410}
#hold-talk:hover:not(:disabled){background:#2d533e;border-color:#2d533e}#hold-talk.recording{background:#cdddba;color:#35572c;border-color:#aac18b}#hold-talk.canceling{background:#f2ded4;color:#9b5145;border-color:#dbb8a7}.chat-composer small{font-size:11px;color:#87957a;margin-top:11px;line-height:1.7}
.chat-welcome{color:#7b8d6d}.chat-welcome>span{background:#edf3e4;border-radius:50%;width:86px;height:86px;display:grid;place-items:center;margin:0 auto 25px;color:#7b9860}.chat-welcome h2{font-size:20px;color:#49633c}
.phone{border-color:#345344;box-shadow:0 18px 40px #30472a12;background:#f5f8ef;border-radius:43px}.phonebar{color:#7a896c}.phone .tabs button{border-radius:10px}.phone .tabs .active{background:#3e684f}
.voicecard{border-color:#e1e8d8;border-radius:15px;padding:20px;box-shadow:0 3px 12px #294a2704}.voicecard strong{font-size:17px}
.necklace{background:linear-gradient(145deg,#eee4cd,#faf3e5 40%,#dfd0ae);border-color:#d5c5a7;box-shadow:0 22px 48px #564c2c18,inset 0 2px 3px #fff9}.devicebuttons button{border-radius:24px;color:#536049}.devicebuttons .round{background:#466c52;border-color:#37543f;box-shadow:0 3px 0 #324b39;color:#f9faf3}.devicebuttons button:hover{background:#fffaf0}.devicebuttons .round:hover{background:#3b6046}
dialog{border-radius:23px;border-color:#e0e7d7;box-shadow:0 25px 90px #133a3026;padding:32px}dialog::backdrop{background:#203e314a}.recordclock{color:#4b704e;font-size:49px}.recordactions button{min-height:45px}
#toast{background:#294c3d;border:1px solid #ffffff18;border-radius:14px;box-shadow:0 8px 28px #173b2625;font-size:14px;padding:15px 23px}
@media(min-width:1600px){.chat-workspace{height:700px}}
@media(max-width:1100px){.main{padding:28px}.shell{grid-template-columns:200px minmax(0,1fr)}.sidebar{padding:30px 15px}.brand{font-size:20px}.chat-workspace{grid-template-columns:210px minmax(0,1fr)}.contact time{display:none}.dialogue-header{padding:20px}.chat-timeline{padding:18px 20px}.chat-composer{padding:16px 20px}.voice-bubble{min-width:140px;gap:12px}.voice-state{display:none}}
@media(max-width:800px){.shell{grid-template-columns:175px minmax(0,1fr)}.sidebar{padding:25px 12px}.brand{font-size:18px;gap:8px}.brandmark{width:35px;height:35px;font-size:25px}.brand small{font-size:7px}.sidebar nav button{padding:15px 9px;font-size:13px}.main{padding:24px 20px}.chat-workspace{grid-template-columns:150px minmax(0,1fr)}.contact{padding:14px 8px;gap:8px}.contact .chat-avatar{width:32px;height:32px;border-radius:10px;font-size:13px}.contact-copy strong{font-size:13px}.contact-title{padding:18px 16px 9px}.contact-note{padding:0 16px 20px}.message-row{gap:8px}.message-row>.chat-avatar{width:31px;height:31px;border-radius:10px;font-size:12px}.voice-bubble{min-width:108px;padding:13px}.dialogue-header span{display:none}}
@media(max-width:650px){.shell{display:block}.sidebar{position:static;height:auto;padding:18px 16px;gap:20px;border-radius:0 0 20px 20px}.brand{font-size:21px}.brand small{font-size:8px}.sidebar nav{gap:7px}.sidebar nav button{font-size:13px;padding:12px 5px;border-radius:11px}.main{padding:23px 14px 30px}.topline{margin-bottom:22px}.topline>span:last-child{font-size:8px}.intro{margin-bottom:22px}.intro h1{font-size:26px}.intro p{font-size:14px}.stats{gap:12px}.stat{padding:18px;border-radius:15px}.stat strong{font-size:29px}.stat label{font-size:12px}.card{padding:20px;border-radius:17px}.terminalbar{padding:15px;gap:11px}.terminalbar select{font-size:13px}.chat-workspace{grid-template-columns:105px minmax(0,1fr);height:640px;border-radius:16px}.contact-title{font-size:16px;padding:16px 12px 9px}.contact-title span{min-width:18px;height:18px;font-size:10px}.contact-note{font-size:10px;padding:0 12px 17px}.contact{width:calc(100% - 10px);margin:0 5px 5px;padding:12px 7px;gap:7px;border-radius:10px}.contact-copy strong{font-size:12px}.contact-copy small{font-size:10px}.contact .chat-avatar{width:29px;height:29px}.dialogue-header{padding:17px 13px;min-height:63px}.dialogue-header strong{font-size:16px}.chat-timeline{padding:15px 9px}.chat-origin{font-size:10px;padding:5px 6px}.origin-play{font-size:10px}.message-row{gap:6px}.message-row>.chat-avatar{width:24px;height:24px;border-radius:8px;font-size:11px}.message-name{font-size:10px}.voice-bubble{min-width:90px;gap:10px;padding:11px;min-height:49px}.voice-bubble strong{font-size:16px}.voice-symbol{font-size:15px}.chat-composer{padding:14px 10px}.hold-hint{font-size:10px;line-height:1.7}#hold-talk{font-size:15px;min-height:51px;padding:13px;letter-spacing:.5px}.chat-composer small{font-size:10px}.contact-copy{gap:6px}.message-content{max-width:calc(100% - 30px)}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}.is-playing .voice-symbol{animation:none}}
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:440px;max-width:100%;padding:36px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 15px 60px #244c3e10}.login-card .brandmark{margin-bottom:22px}.login-card h1{margin:0 0 10px}.login-card>p{color:var(--muted);font-size:14px}.login-card .stack{margin-top:26px}.resident-main{max-width:1140px;margin:auto;padding:25px}.resident-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.resident-header strong{display:block;font-size:24px}.resident-header small{display:block;color:var(--muted);margin-top:8px}.hosted-resident .previewgrid{display:block}.hosted-resident .previewgrid>.card{display:none}.hosted-resident .phone{width:100%;border:0;background:transparent;box-shadow:none;border-radius:0;padding:0;min-height:0}.hosted-resident .phonebar{display:none}.hosted-resident .phone .tabs{max-width:350px}.search-row{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.search-row input{flex:1;min-width:120px}.search-row button{flex-shrink:0}.hosted-resident .chat-workspace{height:calc(100dvh - 210px);min-height:430px}@media(max-width:650px){.resident-main{padding:18px 10px}.resident-header{padding:0 4px}.resident-header strong{font-size:21px}.login-card{padding:25px}.hosted-resident .chat-workspace{height:calc(100dvh - 200px)} }

/* Login grid must shrink to the viewport rather than its card's intrinsic width. */
.login-wrap{width:100%;min-width:0;grid-template-columns:minmax(0,1fr);min-height:100svh}
.login-card{width:100%;max-width:440px;min-width:0;overflow-wrap:anywhere}
.login-card .stack,.login-card .field{min-width:0}
.login-card input{min-width:0;max-width:100%;font-size:16px}
@media(max-width:480px){.login-wrap{padding:20px 16px}.login-card{padding:28px 22px}}
.install-login{width:100%;margin-top:5px;background:#edf3e4;color:#45633a;border-color:#dce7d0}.install-icon{width:68px;height:68px;border-radius:16px;margin-bottom:19px}.resident-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.app-installed .install-app{display:none}.resident-main{padding-bottom:max(25px,env(safe-area-inset-bottom))}@media(max-width:480px){.resident-header{gap:10px}.resident-actions{max-width:150px}.resident-actions button{font-size:11px;padding:8px}.login-wrap{padding-bottom:max(20px,env(safe-area-inset-bottom))}}

/* Readable resident typography in both browser and installed app. */
.hosted-resident,.login-wrap{font-size:18px;line-height:1.6}
.login-card>p,.login-card .muted,.login-card .field{font-size:17px;color:#526453}
.login-card input,.login-card button{font-size:18px;min-height:48px}
.resident-header small{font-size:16px;color:#526453}
.resident-actions button{font-size:16px;min-height:44px}
.hosted-resident .tabs button{font-size:18px;min-height:48px}
.hosted-resident h3{font-size:20px}
.hosted-resident .voicecard strong{font-size:20px}
.hosted-resident .small{font-size:17px;min-height:44px}
.hosted-resident .contact-title{font-size:20px}
.hosted-resident .contact-title span,.hosted-resident .contact-note,.hosted-resident .contact-copy small{font-size:14px;color:#526453}
.hosted-resident .contact-copy strong{font-size:16px;white-space:normal;overflow-wrap:anywhere}
.hosted-resident .contact-copy{min-width:0;max-width:100%}
.hosted-resident .contact-copy small{white-space:normal}
.hosted-resident .dialogue-header strong{font-size:20px}
.hosted-resident .chat-time,.hosted-resident .chat-origin,.hosted-resident .origin-play{font-size:14px;color:#526453}
.hosted-resident .message-name{font-size:16px;color:#526453}
.hosted-resident .message-report{font-size:14px;min-height:36px;color:#526453}
.hosted-resident .voice-bubble strong,.hosted-resident .voice-symbol{font-size:20px}
.hosted-resident .hold-hint,.hosted-resident .chat-composer small{font-size:15px;color:#526453;line-height:1.6}
.hosted-resident #hold-talk{font-size:20px;min-height:58px;letter-spacing:0}
.hosted-resident dialog{font-size:18px;max-width:calc(100vw - 24px)}
.hosted-resident dialog h2{font-size:24px}
.hosted-resident dialog .muted{font-size:16px;color:#526453}
.hosted-resident #toast{font-size:17px}
@media(max-width:650px){
 .resident-header{align-items:flex-start;flex-wrap:wrap;gap:12px}
 .resident-header strong{font-size:24px}
 .resident-actions{max-width:none;justify-content:flex-start}
 .resident-actions button{font-size:16px;padding:8px 12px}
 .hosted-resident .chat-workspace{grid-template-columns:108px minmax(0,1fr);min-height:560px;height:calc(100dvh - 220px)}
 .hosted-resident .contact-title{padding:16px 8px 9px;font-size:18px}
 .hosted-resident .contact-note{padding:0 8px 12px}
 .hosted-resident .contact{display:block;padding:12px 7px}
 .hosted-resident .contact .chat-avatar{margin-bottom:8px;font-size:16px}
 .hosted-resident .contact-copy{display:grid}
 .hosted-resident .chat-timeline{padding:14px 6px}
 .hosted-resident .message-row{gap:4px}
 .hosted-resident .voice-bubble{min-width:0;max-width:100%;gap:8px;padding:10px}
 .hosted-resident .message-content{max-width:calc(100% - 28px)}
 .hosted-resident .dialogue-header{padding:14px 10px}
 .hosted-resident .chat-composer{padding:12px 8px}
 .hosted-resident .chat-origin{overflow-wrap:anywhere}
 .hosted-resident dialog{padding:24px}
}

/* Resident app scale: large controls, readable detail, restrained page width. */
.hosted-resident{font-size:22px;line-height:1.6}
.resident-main{max-width:760px;padding:24px 20px 36px}
.resident-header{align-items:center;gap:16px;margin-bottom:24px}
.resident-header strong{font-size:28px}
.resident-header small{font-size:20px}
.resident-actions{gap:8px}
.resident-actions button{font-size:16px;padding:10px 12px}
.hosted-resident .phone .tabs,.hosted-resident .mobile-work-tabs{max-width:none;width:100%}
.hosted-resident .tabs{gap:10px;margin-bottom:24px}
.hosted-resident .tabs button{font-size:22px;min-height:60px;padding:12px 8px;font-weight:600}
.hosted-resident h3{font-size:24px;margin-bottom:14px}
.hosted-resident .voicecard{padding:24px;margin-top:18px;border-radius:20px}
.hosted-resident .voicecard strong{font-size:26px}
.hosted-resident .voicecard p{font-size:20px;color:#526453;margin:10px 0 20px}
.hosted-resident .voicecard .row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hosted-resident .voicecard button{font-size:22px;min-height:60px;padding:12px}
.hosted-resident .voicecard button[data-action=report-voice]{grid-column:1/-1;justify-self:start;min-height:44px;font-size:18px;border:0;background:transparent;padding:4px 0}
.hosted-resident button[data-action=publish]{font-size:22px;min-height:60px;padding:12px 20px}
.hosted-resident .empty,.hosted-resident .chat-welcome p{font-size:20px}
.hosted-resident .contact-copy strong,.hosted-resident .message-name{font-size:20px}
.hosted-resident .contact-copy small,.hosted-resident .contact-note,.hosted-resident .chat-time{font-size:16px}
.hosted-resident .dialogue-header strong{font-size:24px}
.hosted-resident .hold-hint,.hosted-resident .chat-composer small{font-size:18px}
.hosted-resident #hold-talk{font-size:24px;min-height:64px}
.login-wrap{font-size:18px;line-height:1.5;padding:28px 24px}
.login-card{max-width:420px;padding:30px 28px;border-radius:24px}
.login-card h1{font-size:30px;line-height:1.3}
.login-card .brandmark{margin-bottom:16px}
.login-card .field,.login-card>p,.login-card .muted{font-size:18px}
.login-card input{font-size:20px;min-height:54px;width:100%}
.login-card button{font-size:20px;min-height:56px}
.login-card .stack{margin-top:22px}
@media(max-width:650px){
 .resident-main{padding:20px 16px 32px}
 .resident-header{display:block}
 .resident-actions{margin-top:14px;justify-content:flex-start}
 .hosted-resident .chat-workspace{grid-template-columns:108px minmax(0,1fr);min-height:640px}
 .hosted-resident .voicecard{padding:20px}
 .hosted-resident .voicecard button{font-size:20px}
 .hosted-resident .chat-composer small{font-size:16px}
 .login-wrap{padding:24px 20px}
 .login-card{padding:28px 24px}
}
.resident-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:none}
.received-replies{margin:20px 0;padding:18px;border:1px solid #d9e3d0;border-radius:18px;background:#edf3e4}
.received-replies summary{font-size:22px;font-weight:600;cursor:pointer;min-height:44px}
.received-replies>p{font-size:18px;color:#526453;margin-top:12px}
.resident-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
.library-help{font-size:20px;color:#526453}
.library-categories{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 26px}
.library-categories button{flex:1 1 110px;font-size:20px;min-height:70px;padding:10px;color:#244c3e}
.library-categories button.active{background:#365f49;color:white;border-color:#365f49}
.library-categories small{display:block;font-size:16px;margin-top:4px}
.library-list{display:grid;gap:14px}
.library-track{display:flex;flex-direction:column;align-items:flex-start;gap:12px;text-align:left;padding:20px;min-height:100px;border-radius:18px}
.library-track-title{font-size:24px;font-weight:600;overflow-wrap:anywhere}
.library-track-info{font-size:18px;color:#526453}
.library-track.is-playing{background:#dbe9c9;border:2px solid #365f49}
.library-footnote{display:block;margin:22px 0;font-size:16px;color:#526453}
@media(max-width:380px){.hosted-resident .resident-tabs{gap:6px}.hosted-resident .resident-tabs button{font-size:18px;padding:10px 4px}.library-track{padding:18px}}
.library-track .voice-state{display:inline;font-size:18px;color:#526453}

/* External joke previews remain distinct from the local audio library. */
.joke-sources{margin:24px 0}.joke-source-link{display:flex;flex-direction:column;gap:10px;padding:20px;margin:12px 0;border:1px solid #d6dfcf;border-radius:20px;background:#fff;color:#264f42;text-decoration:none;overflow-wrap:anywhere}.joke-source-link strong{font-size:22px}.joke-source-link span{font-size:18px;color:#526453}.joke-source-link b{font-size:20px}.joke-source-link:focus-visible{outline:3px solid #356b55;outline-offset:3px}
