:root{font-family:"Instrument Sans","PingFang SC","Microsoft YaHei",sans-serif;color-scheme:light;--paper:#f4f5ee;--surface:#fcfcf6;--ink:#162e29;--muted:#50645b;--rule:#c9d1c5;--dark:#073d39;--gold:#f4d687;--green:#a4d6bf;--radius:11px;color:var(--ink);background:var(--paper);font-size:16px;-webkit-text-size-adjust:100%}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;min-height:100dvh;overflow-wrap:anywhere}button,input,select,textarea{font:inherit;color:inherit}button,a,summary,input,select,textarea{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:disabled{cursor:default;opacity:.55}a{color:var(--dark)}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.transcript:focus-visible{outline:3px solid #a67415;outline-offset:2px}button,.outline,.solid,select,input:not([type=checkbox]),summary{min-height:44px}button{border-radius:7px}h1,h2,h3,p{margin:0}h1{font-size:1.75rem;line-height:1.2;letter-spacing:-.045em;font-weight:720}h2{font-size:1.08rem;letter-spacing:-.025em;font-weight:680}h3{font-size:1rem}
.mast{border-bottom:1px solid var(--rule);padding:env(safe-area-inset-top) max(18px,env(safe-area-inset-left)) 0;background:var(--surface)}.mast-inner{max-width:780px;margin:auto;display:flex;align-items:center;justify-content:space-between;min-height:54px}.brand{display:inline-flex;align-items:center;gap:9px;font-size:1.2rem;font-weight:700;letter-spacing:-.04em;text-decoration:none}.brand-icon{width:28px;height:28px;border-radius:8px;background:var(--dark);display:flex;align-items:center;justify-content:center;gap:2px}.brand-icon i{width:2.5px;background:var(--gold);border-radius:2px;height:9px}.brand-icon i:nth-child(2){height:17px}.brand-icon i:nth-child(3){height:12px}.brand-icon i:nth-child(4){height:6px}.net{font-size:.78rem;color:var(--muted);display:flex;gap:6px;align-items:center}.net:before{content:'';width:6px;height:6px;background:#427f62;border-radius:100%}
main{max-width:816px;margin:auto;padding:14px max(16px,env(safe-area-inset-right)) calc(87px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.page-heading,.section-head,.console-head,.clock-meta,.filters,.actions,.transport,.pair,.exports{display:flex;align-items:center;justify-content:space-between;gap:10px}.page-heading{min-height:46px;margin-bottom:10px}.small,.empty,.model-strip p,.console-foot,.clock-meta,.level-line,.settings-group p{font-size:.84rem;line-height:1.58}.small,.empty,.model-strip p,.settings-group p{color:var(--muted)}.model-strip{display:flex;align-items:center;justify-content:space-between;background:#e7eee2;border:1px solid #c8d7c6;border-radius:var(--radius);padding:7px 10px 7px 13px;margin-bottom:10px;gap:10px}.model-strip strong{font-size:.93rem}.model-strip p{font-size:.78rem;margin-top:2px}.model-strip button{flex:none;font-size:.87rem;min-width:82px}.model-progress{width:100%;height:7px;display:block;margin:-6px 0 9px;accent-color:var(--dark)}.outline,.exports button,.settings-group button,#session-enhance button,#gateway-controls button,#notes-content button{background:var(--surface);border:1px solid var(--rule);padding:7px 12px;font-weight:600}.model-strip .outline{background:transparent;border-color:#9fb7a5}.solid{background:var(--dark);color:white;padding:9px 14px}.text-btn{background:transparent;color:#206653;padding:4px 7px;font-size:.88rem;font-weight:650}.console{background:var(--dark);color:#fff;border-radius:16px;padding:17px 17px 11px;box-shadow:inset 0 0 0 1px #0b4944}.console-head{font-size:.79rem;color:#d2e4da}.rec-state{display:flex;gap:7px;align-items:center;color:white;font-weight:600}.rec-state:before{content:'';border-radius:100%;width:8px;height:8px;background:var(--green)}.console[data-phase="recording"] .rec-state:before{background:#ff8d6e}.console[data-phase="paused"] .rec-state:before{background:var(--gold)}.clock{font-family:"IBM Plex Mono","SFMono-Regular",Menlo,monospace;font-variant-numeric:tabular-nums;letter-spacing:-.085em;font-size:clamp(3.1rem,14vw,5.2rem);line-height:1.12;margin:12px 0 2px;color:#f4f8e9}.clock-meta{color:#c1d7cc;justify-content:flex-start;gap:18px;font-size:.79rem}.clock-meta b{font-variant-numeric:tabular-nums;font-weight:550}.level-line{display:grid;grid-template-columns:auto 1fr 42px;align-items:center;gap:9px;margin:13px 0;color:#c6dbd0;font-size:.72rem}.level-line span:last-child{text-align:right;font-variant-numeric:tabular-nums}.level-line meter{appearance:none;-webkit-appearance:none;height:7px;width:100%;background:#41635a;border:0;border-radius:3px}.level-line meter::-webkit-meter-bar{background:#41635a;border:0;border-radius:3px;height:7px}.level-line meter::-webkit-meter-optimum-value{background:#b6db8f;border-radius:3px}.level-line meter::-moz-meter-bar{background:#b6db8f;border-radius:3px}.transport>*{min-height:49px;flex:1;font-weight:700}.start,.pause{background:var(--gold);color:#203c31;display:flex;justify-content:center;align-items:center;gap:10px}.rec-dot{width:12px;height:12px;border:3px solid #87341e;background:#b4472e;border-radius:50%}.stop{color:#fff;background:transparent;border:1px solid #9eb8ab}.console-foot{font-size:.73rem;color:#c1d9cd;text-align:center;margin-top:8px}.section-head{margin:16px 0 5px;min-height:35px}.empty{padding:14px 1px}.live-lines{background:var(--surface);border-block:1px solid var(--rule);padding:0 12px}.preview-row{padding:10px 0;font-size:.94rem;line-height:1.6;border-bottom:1px solid var(--rule)}.preview-row:last-child{border:0}.preview-row small{color:#31674e;margin-right:7px;font-variant-numeric:tabular-nums}.preview-row.partial,.segment.partial .segment-text{color:#536e5e;font-style:italic}
.notice{border-left:3px solid #ad7617;background:#fff2cc;border-radius:0 7px 7px 0;color:#59420f;padding:10px 12px;margin:7px 0 12px;font-size:.87rem;line-height:1.6}.gap{margin-top:11px}.notice strong{display:block;font-size:.9rem}.notice ul{margin:3px 0 0;padding-left:18px}.detail-title{font-weight:650;margin-bottom:3px;font-size:1.09rem}.playback{border-block:1px solid var(--rule);padding:9px 0;margin:14px 0;display:flex;align-items:center;flex-wrap:wrap;gap:8px}.playback audio{width:100%;min-width:0;flex:1 1 165px}.playback button{font-size:.82rem}.filters{align-items:flex-end;margin:10px 0}.filters label,.pair label{flex:1}.filters .check{flex:none;align-self:center}.check{display:flex;align-items:center;gap:6px;min-height:44px;font-weight:550;font-size:.86rem}.check input{accent-color:var(--dark);min-width:17px;min-height:17px;margin:0}.panel label:not(.check),dialog label{display:grid;gap:4px;font-size:.86rem;font-weight:620}.panel input:not([type=checkbox]),dialog input,select,textarea,#notes-content textarea,#gateway-controls input{width:100%;min-width:0;border:1px solid #aebbad;border-radius:7px;background:var(--surface);padding:8px 10px;font-size:1rem;line-height:1.4}textarea{resize:vertical}.transcript{overflow:auto;max-height:min(55dvh,460px);min-height:60px;overscroll-behavior:contain;padding:3px 8px 4px 0;border-bottom:1px solid var(--rule);scrollbar-gutter:stable}.segment{border-bottom:1px solid var(--rule);padding:5px 0 8px}.segment:last-child{border:0}.segment-head{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.segment-head .stamp{color:#12644f;background:transparent;border-radius:0;font-weight:700;font-variant-numeric:tabular-nums;font-family:"IBM Plex Mono",monospace;padding:2px 4px 2px 0}.segment-head .speaker,.seg-state{font-size:.76rem;color:var(--muted)}.segment-head .text-btn{margin-left:auto}.segment-text{display:block;width:100%;text-align:left;background:transparent;white-space:pre-wrap;line-height:1.7;padding:3px 4px 3px 0;min-height:44px}.pair{align-items:flex-start}.exports{justify-content:flex-start;flex-wrap:wrap}.exports button{flex:1 1 auto;font-size:.86rem}.settings-group,details,#notes-content>section,#session-enhance:not(:empty),#gateway-controls:not(:empty){border-block-start:1px solid var(--rule);padding-block:13px;margin-top:12px}.settings-group h2{margin-bottom:7px}.settings-group p,.settings-group button{margin-bottom:7px}summary{display:list-item;align-content:center;cursor:pointer;font-size:.9rem;font-weight:650}#speaker-form{display:grid;gap:8px;margin:8px 0}#speaker-form button{justify-self:start}.history{margin-top:15px}.history-item{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--rule);background:transparent;padding:15px 6px 15px 0;border-radius:0}.history-item strong,.history-item span{display:block}.history-item .small{font-size:.79rem;margin-top:4px}
.tabs{position:fixed;bottom:0;left:0;right:0;background:var(--surface);border-top:1px solid var(--rule);z-index:3;padding-bottom:env(safe-area-inset-bottom)}.tabs>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));max-width:720px;margin:auto}.tabs a{min-height:57px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;text-decoration:none;font-size:.73rem;color:var(--muted);font-weight:600}.tabs a[aria-current]{color:#0d604b;background:#e7eee2}.navico{width:18px;height:15px;display:block;position:relative;color:inherit}.i-mic:before{content:'';position:absolute;left:6px;top:0;width:5px;height:9px;border:1.5px solid currentColor;border-radius:4px}.i-mic:after{content:'';position:absolute;left:3px;bottom:1px;width:11px;height:6px;border:1.5px solid currentColor;border-top:none;border-radius:0 0 8px 8px}.i-text,.i-notes{border:1.5px solid currentColor;border-radius:3px}.i-text:after,.i-notes:after{content:'';width:9px;height:2px;background:currentColor;position:absolute;left:3px;top:3px;box-shadow:0 4px currentColor}.i-notes{width:13px;transform:rotate(-6deg)}.i-notes:after{width:6px}.i-history{border:1.5px solid currentColor;border-radius:100%;width:16px;height:16px}.i-history:after{content:'';width:4px;height:5px;border-left:1.5px solid currentColor;border-bottom:1.5px solid currentColor;position:absolute;left:6px;top:2px}.i-settings:before,.i-settings:after{content:'';background:currentColor;position:absolute;height:1.5px;left:0;right:0;top:4px;box-shadow:0 7px currentColor}.i-settings:after{height:5px;width:4px;top:2px;left:3px;box-shadow:7px 7px currentColor}
dialog{width:min(92vw,480px);max-height:85dvh;overflow:auto;padding:20px;color:var(--ink);background:var(--surface);border:1px solid var(--rule);border-radius:13px}dialog::backdrop{background:#10352e78}dialog form{display:grid;gap:10px}.form-error{font-size:.86rem;color:#94331c}.actions{justify-content:flex-end}#edit-history p{padding-block:3px}#notes-content,#gateway-controls,#session-enhance{line-height:1.65}#notes-content button,#session-enhance button,#gateway-controls button{margin:3px;font-size:.86rem}#notes-content li{margin:5px 0}
@media(min-width:680px){main{padding-top:24px}.console{padding:23px 27px 15px}.clock{margin:16px 0 1px}.model-strip{padding:10px 15px}.tabs a{min-height:64px}.history-item:hover,.segment-text:hover{background:#e9eee4}}
@media(max-width:350px){main{padding-inline:10px}.mast{padding-inline:12px}.model-strip{padding-left:9px}.console{padding-inline:12px}.filters{gap:5px}.tabs a{font-size:.69rem}}
@media(max-height:480px) and (orientation:landscape){.tabs a{min-height:44px;flex-direction:row}.mast-inner{min-height:42px}main{padding-top:4px;padding-bottom:52px}.transcript{max-height:68dvh}}
