:root{color-scheme:light;--bg:#f6f7f3;--paper:#fff;--ink:#1d302e;--muted:#73817b;--green:#176b58;--mint:#e4eee8;--line:#e3e8e1;--red:#b84440;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.48;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #78ac91;outline-offset:3px}button{border:0}h1,h2,h3,p{margin:0}.app{max-width:720px;margin:auto;padding:max(24px,env(safe-area-inset-top)) 22px max(10px,env(safe-area-inset-bottom));min-height:100svh;display:flex;flex-direction:column}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.eyebrow{font-size:11px;letter-spacing:1.7px;color:var(--muted);margin-bottom:7px}h1{font-size:27px;letter-spacing:-.9px;display:flex;align-items:center;gap:12px}.badge{font-size:10px;font-weight:500;letter-spacing:.5px;color:var(--green);border:1px solid #bad4c4;border-radius:20px;padding:5px 8px;white-space:nowrap}.icon-button{background:transparent;color:var(--ink);border-radius:50%;min-width:40px;height:40px;font-size:19px}.topbar>.icon-button{font-size:13px;background:#e6eae3;border:1px solid var(--line)}.language-card{display:flex;align-items:center;background:var(--paper);border:1px solid var(--line);border-radius:23px;padding:17px 18px;box-shadow:0 4px 15px #16342d03}.language-card label{flex:1;min-width:0;color:var(--muted);font-size:11px}.language-card select{display:block;width:100%;border:0;background:transparent;color:var(--ink);font-size:19px;font-weight:600;margin-top:7px;padding:0;outline-offset:6px}.language-card>button{font-size:26px;border:1px solid var(--line);background:var(--bg);border-radius:50%;width:40px;height:40px;margin:0 21px;color:var(--green)}.audio-bar{display:flex;align-items:center;justify-content:space-between;padding:15px 2px 20px;gap:7px}.quiet-button{background:transparent;font-size:12px;color:var(--muted);padding:6px 0}.toggle{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--ink)}.toggle input{accent-color:var(--green);width:17px;height:17px}.section-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:0 0 8px}.section-heading h2{font-size:14px;font-weight:600}.section-heading>div{display:flex;align-items:center;color:var(--muted);font-size:11px;gap:5px}.captions{flex:1;display:flex;flex-direction:column;min-height:230px}#transcript{max-height:48svh;overflow-y:auto;scroll-behavior:smooth;scrollbar-width:thin;padding-bottom:12px;flex:1}.empty-state{text-align:center;padding:36px 0 30px}.orbit{border:1px solid #d7e2d5;width:87px;height:87px;border-radius:50%;margin:0 auto 21px;display:grid;place-items:center;transform:rotate(-13deg)}.orbit span{display:grid;place-items:center;width:61px;height:61px;border-radius:20px;background:#e3ecdf;color:#4c725c;font-size:25px;transform:rotate(13deg)}.empty-state h3{font-size:17px;font-weight:500}.empty-state p{color:var(--muted);font-size:12px;line-height:1.9;margin-top:10px}.caption{padding:20px 1px;border-bottom:1px solid var(--line);animation:arrive .25s ease}.caption .original{color:var(--muted);font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.caption .translation{font-size:19px;line-height:1.6;margin-top:7px;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}.caption .pending{font-size:12px;color:var(--green)}.caption .failed{color:var(--red);font-size:13px}.controls{padding-top:15px}.status-row{display:flex;align-items:center;gap:7px;font-size:11px;margin:0 4px 13px;min-height:16px;color:var(--muted)}.dot{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:#a6b0a4}.dot.live{background:#3f9a74;box-shadow:0 0 0 4px #3f9a7410}#meter{margin-left:auto;font-size:17px;letter-spacing:2px;color:#c8d3c5}.primary{background:var(--green);color:white;width:100%;min-height:53px;border-radius:17px;font-weight:600;font-size:15px;padding:14px 20px;box-shadow:0 5px 15px #176b5814}.listen{display:flex;align-items:center;justify-content:center;gap:11px}.listen.active{background:#dce9df;color:var(--green)}.mic-icon{font-size:23px}.text-entry{display:block;width:100%;color:var(--green);background:transparent;padding:15px;font-size:13px}.footnote{color:#9aa298;font-size:10px;text-align:center;letter-spacing:.2px;margin-bottom:6px}dialog{padding:0;border:0;color:var(--ink);background:var(--paper);width:min(100% - 20px,510px);max-height:88svh;border-radius:28px;box-shadow:0 20px 90px #162c2530;overflow:auto}dialog::backdrop{background:#233a3245;backdrop-filter:blur(6px)}.sheet{padding:12px 25px 25px}.sheet-handle{height:4px;width:32px;background:var(--line);border-radius:4px;margin:0 auto 20px}.sheet h2{font-size:23px;margin-bottom:12px;letter-spacing:-.6px}.sheet-title{display:flex;align-items:center;justify-content:space-between}.sheet-title h2{margin:0}.muted{color:var(--muted);font-size:13px;line-height:1.85;margin:12px 0 20px;white-space:pre-line}.small{font-size:11px}.sheet label:not([hidden]){display:block;font-size:12px;color:var(--muted);margin:18px 0 12px}.sheet input,.sheet textarea{display:block;width:100%;border:1px solid var(--line);background:#f8faf6;padding:14px;border-radius:13px;margin-top:8px;color:var(--ink);font-size:16px}.sheet textarea{resize:vertical;line-height:1.8;min-height:155px;margin-top:18px}.input-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin:9px 0 23px}.error{color:var(--red);font-size:12px;min-height:14px;margin-bottom:14px}.close-sheet{background:transparent;color:var(--muted);display:block;margin:0 auto;font-size:12px;padding:8px 15px}.menu-item{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:left;font-size:15px;color:var(--ink);background:#f4f7f1;border-radius:15px;padding:19px 17px;margin-top:12px}.menu-item span{color:var(--muted)}.danger{color:var(--red)}.install-tip{display:flex;background:#e6eee1;border:1px solid #d7e4d1;border-radius:17px;padding:14px 9px 14px 15px;margin:-7px 0 19px;justify-content:space-between;align-items:center}.install-tip strong{font-size:12px;font-weight:600}.install-tip p{font-size:11px;color:#60745e;line-height:1.65;margin-top:5px}#toast{position:fixed;bottom:max(30px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#25483e;color:white;padding:13px 20px;border-radius:15px;max-width:90%;font-size:12px;box-shadow:0 10px 30px #172e2830;z-index:50;line-height:1.7}[hidden]{display:none!important}@keyframes arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media(max-width:560px){dialog{margin:auto auto 10px;max-width:100%}.app{padding-left:20px;padding-right:20px}.topbar{margin-bottom:22px}.captions{min-height:210px}}@media(min-width:820px){.app{padding:42px 40px 20px;border-left:1px solid var(--line);border-right:1px solid var(--line)}#transcript{max-height:49svh}.empty-state{padding:60px 0}.topbar{margin-bottom:32px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}

.recognition-preview{background:#eef3ec;border:1px solid #e0e8dc;border-radius:15px;padding:12px 14px;margin-bottom:13px}.recognition-label{font-size:10px;color:var(--green);margin-bottom:6px}.partial,.interim{font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;max-height:70px;overflow:auto;color:var(--muted)}.partial.confirmed{color:var(--ink);font-size:14px}.partial.confirmed+.interim:not([hidden]){border-top:1px solid var(--line);padding-top:7px;margin-top:7px}.interim{color:#7a857e}
