:root{--canvas:#F7F7F4;--surface:#fff;--ink:#18352a;--muted:#54655d;--faint:#7a8a82;--line:#d6dfd8;--accent:#0F6A4E;--deep:#0A5138;--tint:#E9F2ED;--success:#27704e;--danger:#a43731;--amber-bg:#f8f1de;--amber-ink:#6d5310;--on-accent:#fff;--veil:#10241c66;--shade:#163a2e22;--red:var(--danger);--notice-bg:var(--surface);--notice-ink:var(--ink);--disabled-bg:#f0f1ef;--disabled-ink:#747a76;--r-control:10px;--r-panel:14px;--r-sheet:18px;--r-pill:999px;--r-circle:50%;--shadow-primary:0 2px 6px var(--shade);--u:3px;--touch:44px;--header-h:max(var(--touch),calc(var(--u)*13.5));--paint-h:calc(var(--u)*9.4);--motion:.14s;--control-radius:var(--r-control);--panel-radius:var(--r-panel);font:15px/1.55 -apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif;color:var(--ink);background:var(--canvas);color-scheme:light}:root[data-theme=obsidian]{--disabled-bg:#292e2b;--disabled-ink:#87928b;color-scheme:dark;--canvas:#141918;--surface:#202825;--ink:#edf4ef;--muted:#b0c0b6;--faint:#92a59b;--line:#39463f;--accent:#8dd9b2;--deep:#a3e9c5;--tint:#2a3d33;--success:#a3d7aa;--danger:#ffaaa0;--amber-bg:#40371e;--amber-ink:#f4d991;--on-accent:#102c1f;--veil:#050807aa;--shade:#0006}:root[data-theme=white]{--canvas:#fff;--surface:#fff;--ink:#202223;--muted:#53595b;--faint:#72797a;--line:#dadcdd;--accent:#343a3d;--deep:#161a1d;--tint:#f0f1f2}:root[data-theme=navy]{--canvas:#f0f4f9;--surface:#fff;--ink:#172d46;--muted:#4e6074;--faint:#6a7b8b;--line:#ced9e6;--accent:#204f83;--deep:#173b66;--tint:#e6effa}@media(max-height:760px){:root{--u:3.4px}}@media(max-height:610px){:root{--u:3px}}:root[data-density=comfortable]{--u:4px}:root[data-density=compact]{--u:3.4px}:root[data-density=dense]{--u:3px}@media(prefers-reduced-motion:reduce){:root{--motion:0s}}*{box-sizing:border-box}body{margin:0;height:100dvh;display:flex;flex-direction:column;overflow:hidden}button,input,textarea,select{font:inherit;color:inherit}button{min-height:var(--touch);padding:6px 12px;border:1px solid var(--line);border-radius:var(--r-control);background:var(--surface);cursor:pointer}button:hover:enabled{background:var(--tint);border-color:var(--accent)}button:disabled{cursor:default;opacity:1}.primary,nav [aria-current=page]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.primary:hover:enabled,nav [aria-current=page]:hover{background:var(--deep)}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.app-header{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 16px;min-height:calc(var(--u)*16);flex:none;border-bottom:1px solid var(--line)}.app-header strong{font-size:18px;font-weight:650}.app-header small{display:block;font-size:11px;color:var(--muted)}.capsule{display:flex;align-items:center;gap:6px;min-height:calc(var(--u)*9);border-radius:var(--r-pill);font-size:12px;padding:7px 12px;white-space:nowrap}.dot{width:7px;height:calc(var(--u)*1.75);border-radius:var(--r-circle);background:var(--faint)}.text-button{background:transparent;border-color:transparent;padding:6px 10px;color:var(--accent);font-size:13px}.danger,.error{color:var(--red)}main{flex:1;min-height:0;width:100%;max-width:1000px;margin:auto;padding:10px 16px}.page{height:100%;min-height:0}.report-page{display:flex;flex-direction:column;gap:8px}.editor-card{flex:1;min-height:calc(var(--u)*35);border:1px solid var(--line);border-radius:var(--r-sheet);background:var(--surface);display:flex;flex-direction:column;overflow:hidden}.editor-tabs{display:flex;border-bottom:1px solid var(--line);padding:4px;gap:4px;flex:none}.editor-tabs button{flex:1;background:transparent;font-size:17px;font-weight:600}.editor-tabs [aria-selected=true]{background:var(--tint);color:var(--accent)}.editor-pane{flex:1;min-height:0}.editor-pane textarea{border:0;background:transparent;resize:none;width:100%;height:100%;padding:14px;font-size:15px;line-height:1.65;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable}.editor-pane textarea:focus-visible{outline-offset:-3px}.editor-meta{display:flex;align-items:center;padding:0 5px;min-height:calc(var(--u)*10.5);gap:4px}.editor-meta #baseChip{max-width:60%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}.editor-meta #count{margin-left:auto;padding:0 9px;color:var(--muted);font-size:12px;white-space:nowrap}#status{font-size:12px;color:var(--muted);margin:0;padding:0 13px 7px;max-height:calc(var(--u)*12);overflow:auto}#status:empty{display:none}.actions{display:flex;gap:8px;align-items:center}.actions>button{flex:1}.report-actions{flex:none;min-height:calc(var(--u)*11.5)}.quick-broadcast{flex:none;min-width:0}.section-heading{display:flex;align-items:center;justify-content:space-between;height:calc(var(--u)*8)}.section-heading h2{font-size:13px;margin:0;font-weight:600}.section-heading button{min-height:calc(var(--u)*8)}.phrase-track{height:calc(var(--u)*37);overflow-y:auto;overflow-x:hidden;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:var(--touch);gap:6px;align-content:start;scrollbar-gutter:stable;padding:2px 3px 2px 0}.phrase-track button{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px 10px;text-align:left;font-size:13px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-control)}.phrase-track button[aria-pressed=true]{background:var(--accent);color:var(--on-accent)}nav{display:flex;gap:8px;flex:none;padding:8px 16px max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface);justify-content:center}nav button{flex:1;max-width:300px;background:transparent;border-radius:var(--r-control)}.scroll-page{overflow-y:auto;padding:8px 0 24px;scrollbar-gutter:stable}.page h1{font-size:22px;margin:6px 0 20px}.page-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px}.page-heading h1{margin:0}.settings-list{border-top:1px solid var(--line)}.settings-row{display:flex;width:100%;border-bottom:1px solid var(--line);border-radius:0;background:transparent;justify-content:space-between;align-items:center;min-height:calc(var(--u)*19);text-align:left;padding:14px 4px}.settings-row small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.settings-row>span:last-child{font-size:22px;color:var(--muted)}.subtle,small{color:var(--muted);font-size:12px}.subtle{line-height:1.7;margin:16px 0}.scroll-page>label{display:block;margin:12px 0 8px}input,select,textarea{max-width:100%;border:1px solid var(--line);border-radius:var(--r-control);background:var(--surface);padding:10px}input:not([type=checkbox]):not([type=radio]),select,.scroll-page>textarea{width:100%}input[type=checkbox],input[type=radio]{accent-color:var(--accent);width:20px;height:calc(var(--u)*5);flex:none}textarea{resize:vertical}textarea::placeholder,input::placeholder{color:var(--muted);opacity:1}.scroll-page>.actions{margin-top:12px}.history-row,.phrase-row{padding:14px 0;border-bottom:1px solid var(--line)}.history-row h2{font-size:15px;margin:0}.history-row p{font-size:13px;max-height:calc(var(--u)*22.5);overflow:auto;white-space:pre-wrap}.history-row .actions{justify-content:flex-end}.history-row .actions button{flex:none}.phrase-row{display:flex;justify-content:space-between;gap:12px}.phrase-row span{overflow-wrap:anywhere}.phrase-row button{flex:none}dialog{padding:18px;width:min(540px,calc(100% - 24px));max-height:85dvh;border:0;border-radius:var(--r-sheet);box-shadow:0 16px 60px var(--shade);background:var(--surface);color:var(--ink);overflow:hidden}dialog[open]{display:flex;flex-direction:column}.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;flex:none}.sheet-heading h2{font-size:21px;margin:0}.sheet-body{overflow:auto;min-height:0;padding:2px 3px;overscroll-behavior:contain}.sheet-actions{flex:none;display:flex;gap:8px;padding-top:12px;flex-wrap:wrap}.sheet-actions button{flex:1}.sheet-actions .full{flex-basis:100%}.sheet-body label.field{display:block;margin:14px 0 7px;font-size:13px;font-weight:600}.sheet-body textarea{width:100%;min-height:calc(var(--u)*37.5)}.sheet-body .row{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:10px 0;min-height:calc(var(--u)*16)}.row .grow{flex:1;min-width:0}.row small{display:block;white-space:normal;overflow-wrap:anywhere}.row label{flex:1;display:flex;align-items:center;gap:10px;min-height:var(--touch);cursor:pointer}.row button{flex:none}#sheetError{flex:none;font-size:12px;margin:0;max-height:calc(var(--u)*15);overflow:auto}.sheet-body .caption{font-size:12px;color:var(--muted);margin:8px 0}.sr-only{position:absolute;width:1px;height:calc(var(--u)*.25);overflow:hidden;clip-path:inset(50%)}.skip{position:absolute;left:12px;top:-100px;z-index:2}.skip:focus{top:12px;background:var(--surface);padding:8px}::selection{background:var(--tint);color:var(--ink)}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-thumb{background:var(--line);border-radius:var(--r-control)}[hidden]{display:none!important}@media(min-width:900px){main{padding-top:18px;padding-bottom:16px}.phrase-track{grid-template-columns:repeat(3,minmax(0,1fr))}.app-header{padding-left:max(24px,calc((100% - 968px)/2));padding-right:max(24px,calc((100% - 968px)/2))}.scroll-page{max-width:720px;margin:auto}}@media(max-width:400px){main{padding:8px 10px}.app-header{padding:8px 12px}.app-header strong{font-size:17px}nav{padding-left:10px;padding-right:10px}dialog{padding:16px;width:calc(100% - 16px)}}@media (max-height: calc(var(--u)*150)){body{overflow:hidden;min-height:0}.report-page{min-height:calc(var(--u)*105)}main{min-height:0;overflow-y:auto;overscroll-behavior-y:contain}.app-header{min-height:calc(var(--u)*13.5)}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}.voice-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;min-height:var(--touch);padding:7px 10px;font-size:12px;color:var(--accent)}.voice-button svg{flex:none}.editor-meta #baseChip{flex:1;min-width:0;max-width:none}.editor-meta #count{flex:none;margin-left:0}#sourceActions{gap:6px;align-items:stretch}#sourceActions>button{flex:1 1 0;min-width:0;height:calc(var(--u)*12);min-height:calc(var(--u)*12);padding:4px;font-size:14px;line-height:1.3;display:flex;align-items:center;justify-content:center;text-align:center;overflow-wrap:anywhere}#sourceActions .voice-button:disabled{opacity:1;color:var(--muted);background:var(--tint)}.voice-status-line{height:auto;min-height:calc(var(--u)*5.5);flex:none;display:flex;align-items:center;justify-content:flex-end;color:var(--muted);font-size:14px;line-height:1.5;padding:0 4px;margin:0;white-space:normal;overflow-wrap:anywhere}.voice-status-line>span{min-width:0;max-width:100%}main{overflow-y:auto;overscroll-behavior-y:contain}.generation-status{height:calc(var(--u)*5.5);flex:none;display:flex;align-items:center;justify-content:flex-end;margin:0;padding:0 4px;color:var(--accent);font-size:12px;font-variant-numeric:tabular-nums;line-height:1.3;white-space:nowrap}#sourceActions>button:disabled:not(.voice-button){opacity:1;background:var(--canvas);color:var(--muted)}#sourceActions>button:focus-visible{outline-offset:2px}.editor-pane textarea{caret-color:var(--accent);overscroll-behavior-y:contain}.voice-button{position:relative}#sourceActions .voice-button[data-voice-phase=listening]{background:var(--accent);color:var(--on-accent);opacity:1}.voice-button[data-voice-phase=listening]:after{content:"";position:absolute;bottom:3px;left:50%;margin-left:-15px;width:30px;height:4px;border-radius:0;background:repeating-linear-gradient(90deg,currentColor 0 3px,transparent 3px 6px);opacity:.85;transform:scaleX(calc(.12 + var(--voice-level, 0) * .88));transform-origin:left center;pointer-events:none}.voice-button[data-voice-phase=listening][data-voice-motion=on]:after{transition:transform .1s ease-out}@media(prefers-reduced-motion:reduce){.voice-button[data-voice-phase=listening]:after,.voice-button[data-voice-phase=listening][data-voice-motion=on]:after{animation:none!important;transition:none;transform:scaleX(.35);opacity:calc(.35 + var(--voice-level, 0) * .65)}}.speech-editor{border-bottom:1px solid var(--line);padding:0 0 18px;margin-bottom:8px}.speech-editor>label{display:block;margin:10px 0 5px}.speech-editor>input,.speech-editor>textarea{width:100%;border:1px solid var(--line);border-radius:var(--r-panel);background:var(--surface);padding:10px;resize:vertical}.speech-editor .actions{flex-wrap:wrap}.speech-editor .actions>button{flex:1 1 auto}.speech-source{border:0;padding:0;margin:14px 0;display:flex;gap:18px}.speech-source legend{font-size:13px;color:var(--muted);margin-bottom:6px}.speech-source label{display:flex;align-items:center;gap:6px;min-height:var(--touch)}.speech-source input{accent-color:var(--accent)}.recording-line{display:flex;justify-content:space-between;gap:10px;align-items:center;min-height:calc(var(--u)*9.5);color:var(--accent)}#recordingTime{font-variant-numeric:tabular-nums;white-space:nowrap}.speech-row{display:flex;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}.speech-label{flex:1;min-width:0;overflow-wrap:anywhere}.speech-label strong{display:block;font-weight:550}.speech-label small{display:block;color:var(--muted);font-size:12px}.speech-row button{flex:none;font-size:13px;padding:8px 10px}.speech-row [aria-pressed=true]{background:var(--accent);color:var(--on-accent)}#speechState:empty{display:none}#speechState{color:var(--muted);font-size:13px}#phrases .page-heading{justify-content:space-between}#phrases .page-heading h1{margin:0}#phrases .page-heading{margin-bottom:14px}#phrases:has(#phraseEditor:not([hidden]))>.page-heading,#phrases:has(#phraseEditor:not([hidden]))>#speechLibraryNote{display:none}.speech-editor>textarea{min-height:calc(var(--u)*18)}.speech-editor .subtle,.speech-editor .speech-source{margin:8px 0}.template-search{display:flex;align-items:center;gap:8px;margin-top:12px}.template-search input{min-width:0;flex:1;width:0}.template-search button{flex:none;min-height:var(--touch);font-size:13px;padding:8px}.template-search-empty{padding:16px 0}#templateSearchResults .row label{min-width:0}#templateSearchResults .row label span{overflow-wrap:anywhere;min-width:0}.voice-model-actions{flex-wrap:wrap}.voice-model-actions button{min-width:120px}.voice-pause-option{display:flex;align-items:center;gap:10px;margin:20px 0 8px;font-size:14px}.voice-pause-option input{flex:none}#voiceModelProgress{width:100%;height:calc(var(--u)*2);accent-color:var(--accent);margin:4px 0 16px}#voiceModelStatus{font-size:13px;overflow-wrap:anywhere;line-height:1.5}.voice-status-line{font-variant-numeric:tabular-nums}.handoff-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}.handoff-actions button{min-width:0}#draftActions>button{min-width:0;padding-inline:8px;white-space:nowrap}#draftActions>button{font-size:13px;padding-inline:6px}.device-actions{flex-wrap:wrap;margin:14px 0}.device-actions>button{flex:1 1 100px}.device-facts{margin:18px 0}.device-facts>div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.device-facts dt{color:var(--muted)}.device-facts dd{margin:0;text-align:right;overflow-wrap:anywhere}#deviceAdvanced{margin-top:24px}#deviceAdvanced summary{cursor:pointer;min-height:var(--touch);padding:12px 0}#bleDevices{display:grid;gap:8px;margin:8px 0}#bleDevices button{text-align:left;overflow-wrap:anywhere}.capsule[data-state=ready] .dot{background:var(--accent)}.capsule[data-state=connected] .dot{background:var(--amber-ink)}.app-header .title-version{font-size:12px;font-weight:500;color:var(--muted);white-space:nowrap}.app-header .app-brand{display:flex;align-items:center;gap:6px;flex:1;min-width:0;white-space:nowrap}.app-header .app-name{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-header .title-version,.app-header #platform,.app-header .capsule{flex:none}.app-header #platform{font-size:12px;white-space:nowrap}.review-reason{margin:8px 0;color:var(--amber-ink);font-size:14px;line-height:1.5;overflow-wrap:anywhere}.delivery-receipt{margin:8px 0;padding:8px 0;border-block:1px solid var(--line);font-size:14px;line-height:1.5}.delivery-receipt p{margin:4px 0}.delivery-receipt label{display:flex;align-items:center;gap:10px;min-height:var(--touch);cursor:pointer}.delivery-receipt input{flex:none;width:20px;height:calc(var(--u)*5);accent-color:var(--accent)}.delivery-receipt .subtle{font-size:14px}.review-reason{flex:none;white-space:normal;overflow:visible;overflow-wrap:anywhere;text-overflow:clip}.editor-heading{display:flex;align-items:center;gap:4px;flex:none}.editor-heading .editor-tabs{flex:1;min-width:0}.editor-heading .editor-tabs button{padding-inline:8px;white-space:nowrap}.editor-heading #newRecord{flex:none;min-height:var(--touch);font-size:12px;padding:6px 10px;white-space:nowrap}.quick-broadcast .section-heading h2{flex:1}.quick-broadcast .section-heading{gap:8px}.quick-broadcast .section-heading button{font-size:12px;padding-inline:8px;min-height:var(--touch)}.editor-meta #notes{flex:none;white-space:nowrap;font-size:12px;padding-inline:6px}.voice-status-line:has(+.quick-broadcast){justify-content:flex-start;color:var(--accent);font-weight:550}.editor-heading #newRecord:disabled{color:var(--muted);opacity:.65}.network-section{padding:20px 0;border-bottom:1px solid var(--line, var(--line))}.network-section h2{margin:0 0 14px;font-size:1.1rem}.network-section>label:not(.network-toggle){display:block;margin:16px 0 6px}.network-section input:not([type=checkbox]){width:100%}.network-section .network-toggle{display:flex;align-items:center;gap:8px;min-height:var(--touch);margin:8px 0}.network-wrap,.network-section dd,#networkDeviceName{overflow-wrap:anywhere}.network-list{display:grid;gap:8px;margin:12px 0}.network-list button{min-height:var(--touch);text-align:left;white-space:normal;overflow-wrap:anywhere}.phrase-track button{padding:5px 10px}.phrase-track button strong{display:block;font-weight:500;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.phrase-track button small{display:block;font-size:11px;line-height:1.3;color:var(--muted)}.phrase-track button[aria-pressed=true] small{color:inherit}.clipboard-ai-link{display:block;padding:12px 8px;color:var(--accent);text-underline-offset:4px}#templateWorkspace .row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}#templateWorkspace .row label{display:flex;align-items:center;gap:10px;flex:1;min-width:0;min-height:var(--touch)}#templateWorkspace .row small{display:block;color:var(--muted);overflow-wrap:anywhere}#templateWorkspace input[type=search]{width:100%;margin-top:12px}.speech-playing small{color:var(--ink)}#draftActions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}#draftActions>button{white-space:normal;min-height:var(--touch);line-height:1.3}#draftActions #stopDelivery{grid-column:1/-1}#draftActions #send,#draftActions #stopSuggestion{grid-column:4;grid-row:1}#draftActions{height:calc(var(--u)*12);min-height:calc(var(--u)*12)}#draftActions>button{height:calc(var(--u)*12)}#draftActions #stopSuggestion{font-variant-numeric:tabular-nums}#status,#status:empty{display:block;flex:none;height:calc(var(--u)*9.5);min-height:calc(var(--u)*9.5);max-height:calc(var(--u)*9.5);overflow-y:auto;line-height:calc(var(--u)*4);padding-top:2px;padding-bottom:4px}#reportGateReason{height:calc(var(--u)*9.5);min-height:calc(var(--u)*9.5);max-height:calc(var(--u)*9.5);overflow-y:auto;margin:0;font-size:12px;line-height:calc(var(--u)*4.5);padding:1px 4px}.template-top-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.template-top-actions>button{width:100%;min-width:0}#templates{overflow:hidden;display:flex;flex-direction:column;gap:8px}#templates>h1{flex:none;margin:0 0 4px}#templateWorkspace{display:flex;flex-direction:column;flex:1;min-height:0}.template-fixed{flex:none}.template-default-card{padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-panel);background:var(--surface);margin-bottom:8px}.template-default-card .actions{justify-content:space-between}.template-default-card .actions>strong{font-size:14px}.template-default-card .actions>button{flex:none}.template-default-preview{margin:2px 0 0;font-size:12px;line-height:1.5;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.template-fixed>.caption{margin:8px 0;font-size:12px;color:var(--muted)}.template-list-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.template-list-scroll>button{width:100%;margin-top:8px}#clipboardOutputFormat,#workspaceOutputFormat,#defaultOutputFormat{min-height:calc(var(--u)*18);height:calc(var(--u)*18)}.material-inspector{margin-top:12px}.app-header .capsule,.quick-broadcast .section-heading{min-height:var(--touch)}.quick-broadcast .section-heading button{min-width:44px;min-height:var(--touch)}.app-header{padding-block:9px}@media (max-height: calc(var(--u)*150)){.app-header{padding-block:calc(var(--u)*1)}}@media(max-width:480px){#sourceActions{gap:4px}#sourceActions>button{padding-inline:2px;font-size:clamp(12px,3.3vw,14px);white-space:nowrap;overflow-wrap:normal;word-break:keep-all}.editor-heading .editor-tabs button{font-size:15px;padding-inline:4px}.editor-heading #newRecord{padding-inline:6px}}#sourceActions>#stop{white-space:normal;overflow-wrap:anywhere}.template-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.template-heading h1{margin:0}.template-heading button{min-height:var(--touch)}.template-top-actions>button{flex:1 1 0}.app-header #sceneSwitcher{flex:none;width:72px;min-width:72px;min-height:var(--touch);margin:0;padding:6px;font-size:14px;color:var(--text);background:var(--tint);border:1px solid var(--line);border-radius:var(--r-control)}.app-header #sceneSwitcher:disabled{opacity:1;color:var(--muted)}@media(max-width:480px){.app-header .app-brand{gap:4px}.app-header .app-name{font-size:17px}.app-header #sceneSwitcher{width:60px;min-width:60px;padding-inline:3px}.app-header .capsule{padding-inline:8px;font-size:12px}}@media(max-width:480px){.app-header{padding-inline:10px;gap:8px}.app-header .app-brand{gap:4px}.app-header .app-name{min-width:40px}.app-header .title-version,.app-header #platform{display:inline;font-size:10px}.app-header .capsule{max-width:76px;min-width:0;overflow:hidden}.app-header #deviceLabel{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}.notice-title-slot{position:relative;flex:1;min-width:0;height:var(--touch);overflow:hidden;display:flex;align-items:center;gap:4px}.app-header .app-brand{gap:6px}.app-header #headerTitleSlot{display:flex;flex-wrap:wrap;align-content:center;gap:0 4px}.app-header .app-name{flex:0 0 100%;min-width:0;max-width:100%;font-size:16px;line-height:calc(var(--u)*5.5)}.app-header .title-version,.app-header #platform{font-size:10px;line-height:calc(var(--u)*3.5)}.sheet-heading{height:var(--touch);min-height:var(--touch);gap:6px}.sheet-heading h2{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sheet-heading #closeSheet{flex:none}@media(max-width:480px){.app-header{gap:6px}.app-header .app-name{min-width:0;font-size:15px}.app-header #sceneSwitcher{width:56px;min-width:56px}.app-header .capsule{max-width:70px;padding-inline:6px}}#sourceActions,#draftActions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;align-items:stretch;height:calc(var(--u)*12);min-height:calc(var(--u)*12);flex:none}#sourceActions>button,#draftActions>button{min-width:0;height:calc(var(--u)*12);min-height:calc(var(--u)*12);margin:0;padding:4px;font-size:13px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}#sourceActions #organize,#sourceActions #stop{grid-column:4;grid-row:1}.app-header #headerTitleSlot{flex-wrap:nowrap;align-content:normal;white-space:nowrap;gap:4px}.app-header .app-name{flex:1 1 auto;flex-basis:auto;min-width:0;max-width:none}.app-header .title-version,.app-header #platform{flex:none;white-space:nowrap}#providerProbeStatus{color:var(--danger);white-space:pre-wrap;overflow-wrap:anywhere}.app-header #headerTitleSlot{display:grid;grid-template-columns:minmax(0,max-content) auto auto;justify-content:start;grid-template-rows:var(--touch);align-items:center;gap:4px}#headerTitleSlot>.app-name{grid-column:1;grid-row:1}#headerTitleSlot>.title-version{grid-column:2;grid-row:1}#headerTitleSlot>#platform{grid-column:3;grid-row:1}.feedback-line{height:calc(var(--u)*6);min-height:calc(var(--u)*6);flex:none;display:flex;justify-content:center;align-items:center;padding:0 16px;overflow:hidden;font-size:12px;color:var(--accent);line-height:calc(var(--u)*5)}.feedback-text{display:block;max-width:min(100%,1000px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;opacity:1;transition:opacity .18s ease}.feedback-text[hidden]{display:none}.feedback-text.is-fading{opacity:0}@media(prefers-reduced-motion:reduce){.feedback-text{transition:none}}.feedback-line{height:var(--touch);min-height:var(--touch)}.recording-bar{display:flex;align-items:center;gap:8px;width:100%;max-width:1000px;height:var(--touch);min-width:0}.recording-bar .feedback-text{flex:1;min-width:0;text-align:center}.recording-status{flex:none;font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}.recording-bar>button{flex:none;margin-left:auto;min-width:52px;height:var(--touch);min-height:var(--touch);font-size:13px;padding:4px 8px}.recording-status[hidden],.recording-bar>button[hidden]{display:none}.source-clipboard-feedback{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex:1;min-width:90px;height:calc(var(--u)*7);opacity:1;transition:opacity .18s ease;color:var(--amber-ink);font-size:11px}.source-clipboard-feedback[hidden]{display:none}.source-clipboard-feedback.is-fading{opacity:0;pointer-events:none}.source-clipboard-text{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.source-clipboard-compact{display:none;white-space:nowrap}.source-clipboard-feedback>button{flex:none;min-width:44px;height:calc(var(--u)*7);min-height:calc(var(--u)*7);padding:2px 6px;font-size:12px;line-height:calc(var(--u)*5)}.source-clipboard-feedback>button:focus-visible{outline-offset:-2px}.editor-meta:has(.source-clipboard-feedback[data-active=true]) #baseChip{max-width:25%;min-width:44px}.editor-meta:has(.source-clipboard-feedback[data-active=true]) #notes{min-width:0;max-width:20%;overflow:hidden;text-overflow:ellipsis}.editor-card:has(#original-pane[hidden]) .source-clipboard-feedback{display:none}@media(max-width:480px){.source-clipboard-text{position:absolute;width:1px;height:calc(var(--u)*.25);overflow:hidden;clip-path:inset(50%)}.source-clipboard-compact{display:inline}.source-clipboard-feedback{justify-content:center;gap:2px}.recording-status{font-size:11px}.recording-bar{gap:4px}}@media(prefers-reduced-motion:reduce){.source-clipboard-feedback{transition:none}}dialog:has(.compact-template-picker){height:min(calc(var(--u)*170),85dvh)}dialog:has(.compact-template-picker) .sheet-body{display:flex;flex:1;min-height:0;overflow:hidden;padding:0}dialog:has(.compact-template-picker) .sheet-actions{display:none}.compact-template-picker{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;width:100%;overflow:hidden}.compact-template-fixed{flex:none;padding:2px 3px 6px}.compact-template-fixed input{width:100%;margin:0}.compact-template-fixed .caption{margin:4px 0 0;font-size:11px}.compact-template-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 3px}.compact-template-scroll .row{min-height:calc(var(--u)*12);padding:4px 0}.compact-template-scroll .row label{min-width:0;gap:8px}.compact-template-scroll .row label span,.compact-template-scroll .grow{min-width:0;overflow-wrap:anywhere;font-size:14px}.compact-template-scroll small{font-size:11px}.compact-template-scroll #clipTemplateMore,.compact-template-scroll #pickerMore{width:100%;min-height:calc(var(--u)*9);font-size:12px}.structured-suggestion{height:100%;overflow-y:auto;overflow-x:hidden;padding:12px 14px;scrollbar-gutter:stable}.structured-suggestion-field+.structured-suggestion-field{margin-top:14px}.structured-suggestion-field label{display:block;font-size:13px;font-weight:600;color:var(--accent);overflow-wrap:anywhere}.editor-pane .structured-suggestion-field textarea{overscroll-behavior-y:auto;display:block;height:auto;min-height:calc(var(--u)*20);padding:6px 0;overflow:hidden;line-height:1.65;white-space:pre-wrap}.voice-pending-host{position:relative}.voice-pending-mirror{position:absolute;overflow:hidden;pointer-events:none;user-select:none;color:var(--ink)}.voice-pending-mirror>div{box-sizing:border-box;white-space:pre-wrap;overflow-wrap:break-word;transform-origin:top left}.voice-pending-segment{color:var(--muted);text-decoration-line:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-skip-ink:auto}.editor-pane textarea.voice-pending-active{position:relative;background:transparent;color:transparent;-webkit-text-fill-color:transparent;caret-color:var(--ink)}.editor-pane textarea.voice-pending-active::selection{background:var(--tint);color:var(--ink);-webkit-text-fill-color:var(--ink)}.speech-meta-feedback{flex:1;min-width:0;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:12px;opacity:1;transition:opacity .18s ease}.speech-meta-feedback[hidden]{display:none}.speech-meta-feedback.is-fading{opacity:0}.editor-meta:has(.source-clipboard-feedback[data-active=true]) .speech-meta-feedback{display:none}.editor-meta #count{flex:none;white-space:nowrap}.general-meta-feedback{display:flex;flex:1;min-width:0;align-items:center;justify-content:center;gap:4px;font-size:12px;color:var(--muted)}.general-meta-feedback .feedback-text{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.general-meta-feedback #statusActions{display:flex;flex:none}.general-meta-feedback button{padding:2px 4px;min-height:calc(var(--u)*7);font-size:12px}.editor-meta:has(.source-clipboard-feedback[data-active=true]) .general-meta-feedback .feedback-text{display:none}#reportGateReason,#status{display:none!important}#feedbackLine:not(:has(#globalRecordingStatus:not([hidden]))){display:none}.app-header{height:calc(var(--u)*14);min-height:calc(var(--u)*14);padding-block:5px}.app-header #headerTitleSlot{grid-template-rows:var(--touch)}.app-header #sceneSwitcher,.app-header .capsule{box-sizing:border-box;height:var(--touch);min-height:var(--touch);padding-block:0;border-top:6px solid transparent;border-bottom:6px solid transparent;background-clip:padding-box}.editor-card{display:grid;grid-template-rows:auto minmax(0,1fr) var(--touch)}.editor-card>.editor-heading{grid-row:1}.editor-card>.editor-pane{grid-row:2;min-height:0;overflow:hidden}.editor-card>.editor-meta{grid-row:3;height:var(--touch);min-height:var(--touch);align-self:end}.structured-field-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.structured-field-heading label{min-width:0;margin:0}.structured-field-send{flex:none;min-height:var(--touch);padding:4px 8px;font-size:12px}.phrase-track{height:calc(var(--u)*39);grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:calc(var(--u)*18);gap:8px}.phrase-track button{min-width:0;padding:8px 10px;white-space:normal;display:flex;flex-direction:column;justify-content:space-between}.phrase-track button strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;white-space:normal;overflow-wrap:anywhere;line-height:1.35;max-height:2.7em}.phrase-track button small{white-space:nowrap;flex:none;font-variant-numeric:tabular-nums}.report-page{position:relative}.speech-toggle{flex:none;width:44px;height:var(--touch);padding:10px!important;display:grid;place-items:center}.speech-toggle svg{width:22px;height:calc(var(--u)*5.5);fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.speech-toggle[aria-expanded=true]{background:var(--tint);color:var(--accent)}.report-page>.quick-broadcast{position:absolute;z-index:10;right:0;top:58px;width:min(320px,100%);padding:12px;background:var(--surface);border-radius:var(--r-panel);box-shadow:0 8px 28px var(--shade)}.quick-broadcast:has(#quickPhrases[hidden]){display:none}.quick-broadcast .phrase-track{height:auto;max-height:min(calc(var(--u)*75),45dvh);overscroll-behavior:contain}.quick-broadcast .phrase-track button{background:var(--tint)}:root{--control-radius: var(--r-control);--panel-radius: var(--r-panel);--control-height: var(--touch)}button{border-radius:var(--control-radius);min-height:var(--control-height);font-weight:500}input,select,textarea{border-radius:var(--control-radius)}main{padding:14px 16px}.report-page{gap:12px}.editor-card{border-radius:var(--panel-radius)}.editor-heading{padding:0 8px 0 16px;gap:6px;border-bottom:1px solid var(--line);height:calc(var(--u)*14)}.editor-heading .editor-tabs{padding:0;gap:24px;border:0;align-self:stretch;align-items:stretch;flex:1}.editor-heading .editor-tabs button{flex:none;border-radius:0;border-bottom:2px solid transparent;background:transparent;padding:0;font-size:15px;font-weight:500;min-width:0}.editor-heading .editor-tabs [aria-selected=true]{border-bottom-color:var(--accent);background:transparent;color:var(--accent);font-weight:650}.editor-heading #newRecord{font-size:12px;padding:0 4px}.speech-toggle{border-radius:var(--r-control);background:transparent}.editor-pane textarea{padding:18px 16px;font-size:15px;line-height:1.8}.editor-meta{padding:0 16px;border-top:1px solid var(--canvas);gap:8px}.editor-meta #baseChip{padding:0;max-width:45%;font-size:12px}.editor-meta #count{padding:0;font-size:12px}.report-actions{gap:8px}.report-actions>button{padding:8px 5px;min-height:var(--touch);font-size:13px;border:1px solid var(--line);background:var(--surface)}.report-actions>.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.structured-field-send{background:transparent;color:var(--accent);border-radius:var(--r-control)}.structured-field-heading{min-height:var(--touch)}.structured-field-heading label{font-size:15px;font-weight:600}.page-heading{min-height:var(--touch);margin-bottom:16px}.page-heading h1,.sheet-heading h2{font-size:20px;font-weight:650;line-height:1.4}.page-heading>button{font-size:13px}.settings-row{min-height:calc(var(--u)*16);padding:12px 0}.settings-row small{margin-top:2px}.sheet-body .row{padding:10px 0}.speech-row{padding:12px 0}.speech-row button{border-radius:var(--r-control)}dialog{border-radius:var(--r-panel);padding:20px}.sheet-actions{gap:8px}.sheet-actions button{border-radius:var(--r-control);font-size:14px}.sheet-body input,.sheet-body textarea,.sheet-body select{border-radius:var(--r-control)}nav{gap:8px;padding:8px 16px max(8px,env(safe-area-inset-bottom))}nav button{font-size:14px;border-radius:var(--r-control);min-height:var(--touch)}.quick-broadcast .phrase-track button{border-radius:var(--r-control);background:var(--tint)}.quick-broadcast .section-heading{margin-bottom:8px}.quick-broadcast .section-heading h2{font-size:13px}@media(max-width:420px){.editor-heading{padding-left:12px;gap:3px}.editor-heading .editor-tabs{gap:16px}.editor-heading .editor-tabs button{font-size:14px}.editor-heading #newRecord{font-size:11px}.editor-meta{padding-inline:12px}.report-actions>button{font-size:12px}}@media(min-width:900px){main{padding:20px 24px}.scroll-page{padding-top:0}.editor-heading{padding-left:20px}.editor-pane textarea{padding:20px}.editor-meta{padding-inline:20px}.report-actions>button{font-size:14px}.report-page>.quick-broadcast{top:62px}}#sourceActions>button:not(.primary):not(:disabled){background:var(--surface);color:var(--ink)}#sourceActions>.voice-button[data-voice-phase=listening]:not(:disabled){background:var(--accent);color:var(--on-accent);border-color:var(--accent)}.recording-meta{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0}.recording-meta .recording-status{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.recording-meta button{flex:none;white-space:nowrap}.general-meta-feedback:has(.recording-meta:not([hidden]))>.feedback-text:not([hidden]){max-width:45%}#sheetBody fieldset[id$=Select]{border:1px solid var(--line);border-radius:var(--control-radius);padding:12px;margin:12px 0;min-width:0}#sheetBody fieldset[id$=Select] legend{padding:0 6px;font-size:13px;font-weight:600}#clipTemplateMore{min-height:var(--touch)}#sheetBody .row small{text-wrap:pretty}@media(min-width:900px){nav{padding-inline:max(24px,calc((100vw - 952px)/2))}}#sheet:has(.output-format-editor:not([hidden]))>#sheetActions{display:none}.output-format-editor>label{display:block;margin:12px 0 6px}.output-format-option{display:flex;align-items:center;gap:10px;min-height:var(--touch);overflow-wrap:anywhere}.output-format-option>.output-format-choice-control{width:20px;min-width:20px;margin:0}.output-format-legacy-text{white-space:pre-wrap;overflow-wrap:anywhere}.output-format-editor .output-format-field-name{min-width:0;flex:1}.app-header{padding-inline:16px}@media(min-width:900px){.app-header{padding-inline:max(24px,calc((100% - 952px)/2))}}.structured-field-actions{display:flex;align-items:center;gap:8px;flex:none}.structured-field-count{font-size:12px;white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}.structured-field-send{position:relative;box-sizing:border-box;min-height:calc(var(--u)*7);height:calc(var(--u)*7);min-width:44px;padding:0 8px;font-size:12px;line-height:calc(var(--u)*6.5);border:1px solid var(--accent)}.structured-field-heading label{overflow-wrap:anywhere}.pane-heading{display:none}.layout-setting{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0}.layout-setting label{margin:0}.layout-setting select{width:auto;min-width:140px}body[data-layout=desktop] main{max-width:1440px}body[data-layout=desktop] .app-header,body[data-layout=desktop]>nav{padding-inline:max(24px,calc((100% - 1392px)/2))}body[data-layout=desktop] .report-page{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:10px 16px}body[data-layout=desktop] .editor-card{position:relative;grid-column:1 / -1;grid-row:1;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) var(--touch)}body[data-layout=desktop] .editor-heading{position:absolute;top:0;right:0;z-index:2;height:var(--touch);min-height:0;justify-content:flex-end;padding-inline:12px;border:0}body[data-layout=desktop] .editor-tabs{display:none}body[data-layout=desktop] #newRecord{margin-left:auto}body[data-layout=desktop] #original-pane{grid-column:1}body[data-layout=desktop] #suggestion-pane{grid-column:2;border-left:1px solid var(--line)}body[data-layout=desktop] .editor-pane{grid-row:1;display:flex;flex-direction:column;min-width:0}body[data-layout=desktop] .pane-heading{display:block;flex:none;height:var(--touch);box-sizing:border-box;font-size:15px;line-height:calc(var(--u)*6);margin:0;padding:10px 20px 9px;font-weight:600;border-bottom:1px solid var(--line)}body[data-layout=desktop] #desktop-suggestion-title{padding-right:180px;white-space:nowrap}body[data-layout=desktop] .editor-pane>textarea{flex:1;min-height:0;height:0;padding-top:8px;resize:none}body[data-layout=desktop] .editor-pane>.structured-suggestion{flex:1;min-height:0;height:0}body[data-layout=desktop] .editor-meta{grid-column:1 / -1;grid-row:2}body[data-layout=desktop] #sourceActions{grid-column:1;grid-row:2}body[data-layout=desktop] #draftActions{grid-column:2;grid-row:2}body[data-layout=desktop] .report-actions>button{min-width:0}body[data-layout=mobile] main{max-width:760px}body[data-layout=mobile] .app-header,body[data-layout=mobile]>nav{padding-inline:max(16px,calc((100% - 728px)/2))}@media(max-width:749px){body[data-layout=desktop] main:has(.report-page:not([hidden])){overflow-x:auto}body[data-layout=desktop] .report-page{min-width:720px}}#deviceDialog{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - calc(var(--u)*8));padding:20px;overflow:auto}#deviceDialog .page{height:auto;min-height:0;overflow:visible;padding:0}#deviceDialog .page-heading{padding-right:60px}.device-dialog-close{display:block;align-self:flex-end;margin-left:auto;min-width:44px;position:sticky;top:0;z-index:1}#sourceActions,#draftActions{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}#sourceActions>button,#draftActions>button{width:100%;min-width:0;padding-inline:4px;white-space:nowrap}#sourceActions #organize,#sourceActions #stop,#draftActions #send,#draftActions #stopSuggestion,#draftActions #stopDelivery{grid-column:auto;grid-row:auto}#organizeElapsed{white-space:nowrap;font-variant-numeric:tabular-nums}#deviceDialog .network-section{margin-block:12px;padding-block:12px;border-top:0}#deviceDialog .network-section h2{font-size:16px;margin:0 0 12px}#deviceDialog .device-more>summary{cursor:pointer;min-height:var(--touch);line-height:var(--touch);font-weight:600}#deviceDialog .network-section input{max-width:100%;box-sizing:border-box}.app-header{min-height:var(--header-h);height:var(--header-h);padding-block:0}.app-header .app-brand{min-width:0;flex:1}.app-header #headerTitleSlot{display:flex;align-items:center;min-width:0;gap:var(--u);flex-wrap:nowrap}.app-header #headerTitleSlot .app-name{flex:0 1 auto;font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-header #headerTitleSlot .title-version,.app-header #headerTitleSlot #platform{flex:none;white-space:nowrap}.app-header .scene-badge,.app-header .capsule{flex:none;min-height:var(--touch);height:var(--touch);border:0;border-block:solid transparent;border-block-width:calc((var(--touch) - var(--paint-h))/2);border-radius:var(--r-pill);background:var(--tint) padding-box;color:var(--accent);padding-inline:calc(var(--u)*2);display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}@media(max-width:360px){.app-header #headerTitleSlot #platform{display:none}}#report .editor-pane textarea,.structured-field textarea{line-height:1.9}.editor-meta #count{font-variant-numeric:tabular-nums;white-space:nowrap}.editor-meta #openWorkbenchHistory{padding-inline:var(--u);white-space:nowrap;color:var(--accent)}.editor-tabs [aria-selected=true],.library-tabs [aria-pressed=true],body>nav [aria-current=page]{color:var(--accent);background:var(--tint);box-shadow:inset 0 -2.5px var(--accent)}.primary{box-shadow:none}#sourceActions,#draftActions{height:var(--touch);min-height:var(--touch);align-items:center;gap:var(--u)}#sourceActions>button,#draftActions>button{box-sizing:border-box;height:var(--touch);min-height:var(--touch);white-space:nowrap;overflow-wrap:normal;font-size:clamp(11.5px,3.2vw,14px);padding:0 var(--u);border-block:solid transparent;border-block-width:max(0px,calc((var(--touch) - var(--paint-h))/2));background-clip:padding-box}.settings-group{border:0;margin:calc(var(--u)*3) 0;padding:0;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:var(--u) calc(var(--u)*3)}.settings-group legend{font-size:1rem;font-weight:650;margin-bottom:var(--u)}#sceneSettings select{grid-column:1/-1}.settings-row+.settings-row{border-top:1px solid var(--line)}.library-heading,.library-tabs,.library-section .page-heading,.library-section .template-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--u)}.library-tabs button{min-height:var(--touch);border-radius:var(--r-control);background:transparent}#library:not([hidden]){display:flex;flex-direction:column;gap:calc(var(--u)*2)}#library>.library-section:not([hidden]){min-height:0;flex:1;overflow:auto}#library #templates:not([hidden]){display:flex;flex-direction:column}.library-filter{display:flex;align-items:center;flex-wrap:wrap;gap:calc(var(--u)*2)}.library-filter label{display:flex;align-items:center;gap:var(--u);margin:0;min-height:var(--touch)}.library-filter select{width:auto}dialog,.sheet{border-radius:var(--r-sheet);border-color:var(--line);background:var(--surface);color:var(--ink)}dialog::backdrop{background:var(--veil)}#broadcastSheet{box-sizing:border-box;position:fixed;inset:auto 0 0;width:min(100%,42rem);max-width:100%;height:auto;max-height:85dvh;margin:0 auto;padding:calc(var(--u)*3);padding-bottom:max(calc(var(--u)*3),env(safe-area-inset-bottom));border:0;border-radius:var(--r-sheet) var(--r-sheet) 0 0;box-shadow:var(--shadow-primary)}#broadcastSheet[open]{display:flex;flex-direction:column;gap:var(--u)}#broadcastSheet:not([open]){display:none}.sheet-grip{width:calc(var(--u)*10);height:var(--u);margin:0 auto;background:var(--faint);border-radius:var(--r-pill)}#broadcastSheet .section-heading{display:flex;align-items:center;gap:var(--u);margin:0}#broadcastSheet .section-heading h2{flex:1;font-size:1.1rem}#broadcastSheet #quickPhrases:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto;height:auto;max-height:min(55dvh,calc(var(--u)*88));overflow:auto;gap:calc(var(--u)*2)}#broadcastSheet #quickPhrases button{justify-content:center;align-items:flex-start;min-height:max(var(--touch),calc(var(--u)*19));height:auto;gap:var(--u);background:var(--canvas);border:1px solid var(--line);border-radius:var(--r-control);padding:calc(var(--u)*2);text-align:start;overflow:hidden}#broadcastSheet #quickPhrases button[aria-pressed=true]{background:linear-gradient(to right,var(--tint) var(--speech-progress,0%),var(--surface) 0);border-color:var(--accent)}#broadcastSheet #quickPhrases button strong{display:block;max-width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#broadcastSheet #quickPhrases button small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;white-space:normal;overflow:hidden;color:var(--muted);font-size:.8rem;line-height:1.4}#broadcastSheet #manageBroadcast{color:var(--accent);align-self:flex-end}button,input,select,textarea{transition:background-color var(--motion),border-color var(--motion),color var(--motion)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}*{scrollbar-width:thin;scrollbar-color:var(--faint) transparent}.scene-options{display:flex;align-items:center;gap:calc(var(--u)*2);grid-column:1/-1}.scene-options label{display:inline-flex;align-items:center;min-height:var(--touch);gap:var(--u);padding-inline:calc(var(--u)*2);margin:0}#reportGateReason.review-reason:not([hidden]){display:block!important;background:var(--amber-bg);color:var(--amber-ink);border-radius:var(--r-control);padding:var(--u) calc(var(--u)*2);margin:0;position:absolute;right:calc(var(--u)*2);bottom:calc(var(--touch) + var(--u)*32);z-index:8;max-width:min(420px,calc(100% - var(--u)*4));max-height:72px;overflow:auto;box-sizing:border-box}#reportGateReason.review-reason[data-confirmed=true]{background:var(--tint);color:var(--accent)}body[data-layout=desktop] #reportGateReason{grid-column:1/-1}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:0s!important;transition-duration:0s!important;scroll-behavior:auto!important}}#broadcastSheet #quickPhrases button[aria-pressed=true]{color:var(--ink)}body>nav button{position:relative;isolation:isolate}body>nav [aria-current=page]{background:transparent;box-shadow:none}body>nav [aria-current=page]:before{content:"";position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:calc(3em + var(--u)*3);height:var(--paint-h);border-radius:var(--r-control);background:var(--tint);box-shadow:inset 0 -2.5px var(--accent);z-index:-1}.library-heading{align-items:stretch;flex-direction:column;gap:calc(var(--u)*2)}.library-heading h1{font-size:20px;margin:0}.library-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));background:var(--tint);padding:var(--u);border-radius:var(--r-control)}.library-tabs button{width:100%;min-width:0;margin:0;color:var(--muted);white-space:nowrap}.library-tabs [aria-selected=true]{background:var(--surface);color:var(--accent);box-shadow:none;font-weight:650}.speech-template-body{font-size:13px;line-height:1.55;color:var(--ink);margin:var(--u) 0;white-space:pre-wrap;overflow-wrap:anywhere}.speech-label small{color:var(--muted)}.library-section .speech-editor{border:0;border-radius:0;background:transparent;padding:0;margin-top:calc(var(--u)*2)}.library-section .speech-source{border:0;padding:0;display:flex;gap:calc(var(--u)*2);flex-wrap:wrap}.library-section .speech-source legend{font-size:13px;font-weight:600}#workbenchDevUpdate{position:fixed;inset:auto 12px calc(72px + env(safe-area-inset-bottom));z-index:1000;max-width:560px;margin-inline:auto;display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--line);border-radius:var(--r-control);background:var(--notice-bg);color:var(--notice-ink);box-shadow:var(--shadow-primary);font-size:12px;line-height:1.5}#workbenchDevUpdate[hidden]{display:none}#workbenchDevUpdate>[role=status]{flex:1;min-width:0}#workbenchDevUpdate>button{flex:none;min-width:44px;min-height:44px;padding:4px 8px;background:transparent;color:inherit}body>nav [aria-current=page]:before{content:none}body>nav [aria-current=page]{background:var(--tint);color:var(--accent);box-shadow:inset 0 -2px var(--accent)}:root button{background:var(--surface);color:var(--ink)}:root button:hover:enabled{background:var(--tint)}:root .primary{background:var(--accent);color:var(--on-accent)}:root .primary:hover:enabled{background:var(--deep);color:var(--on-accent)}:root .text-button,:root .settings-row{background:transparent;color:var(--ink)}:root .text-button{color:var(--accent)}:root input,:root textarea,:root select{background:var(--surface);color:var(--ink);border-color:var(--line)}:root textarea::placeholder,:root input::placeholder{color:var(--muted)}#library .library-tabs button{background:transparent;color:var(--muted)}#library .library-tabs [aria-selected=true]{background:var(--surface);color:var(--accent)}:root body>nav button{background:transparent;color:var(--ink)}:root body>nav [aria-current=page]{background:var(--tint);color:var(--accent)}.broadcast-settings-page .page-heading{display:flex;align-items:center;gap:8px;margin-bottom:12px}.broadcast-settings-page .page-heading h2{flex:1;margin:0;font-size:20px}.broadcast-settings-page .speech-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;align-items:center}.broadcast-settings-page .speech-order{grid-column:1/-1;display:flex;gap:6px;justify-content:flex-end}.speech-order button{font-size:12px;min-height:44px;padding:4px 8px}.broadcast-settings-page .speech-editor{border:0;padding:0;background:transparent}#report .editor-meta{position:relative}#report .general-meta-feedback{position:absolute;right:calc(var(--u)*2);bottom:calc(100% + var(--u)*2);width:max-content;max-width:calc(100% - var(--u)*4);min-height:0;max-height:64px;overflow:auto;z-index:9;background:var(--notice-bg);color:var(--notice-ink);border-radius:var(--r-control);padding:0 calc(var(--u)*2);box-shadow:var(--shadow-primary)}#report .general-meta-feedback:not(:has(.feedback-text:not([hidden]),#statusActions:not(:empty),#organizeElapsed:not([hidden]),.recording-meta:not([hidden]))){display:none}#report #generationStatus,#report #voiceBar{position:absolute;right:calc(var(--u)*2);left:auto;bottom:calc(var(--touch) + var(--u)*10);z-index:8;min-height:0;height:auto;max-width:calc(100% - var(--u)*4);max-height:48px;overflow:auto;margin:0;padding:var(--u) calc(var(--u)*2);border-radius:var(--r-control);background:var(--notice-bg);color:var(--notice-ink)}#report #generationStatus:not([hidden])~#voiceBar:not([hidden]){bottom:calc(var(--touch) + var(--u)*22)}#workbenchStatusFloats{position:absolute;right:calc(var(--u)*2);bottom:calc(100% + var(--touch) + var(--u)*2);display:flex;flex-direction:column;gap:var(--u);align-items:flex-end;max-width:calc(100% - var(--u)*4);max-height:min(40dvh,240px);overflow:auto;z-index:9;pointer-events:none}#report #workbenchStatusFloats>.general-meta-feedback,#report #workbenchStatusFloats>#reportGateReason,#report #workbenchStatusFloats>#generationStatus,#report #workbenchStatusFloats>#voiceBar{position:static;flex:none;max-width:100%;width:auto;box-sizing:border-box;pointer-events:auto}#broadcastSheet .broadcast-settings-page{min-height:100px;overflow:auto;flex:0 1 auto;max-height:60dvh;width:100%}#broadcastSheet[data-view=manage]>.section-heading>#stopSpeech{display:none}#broadcastSheet[data-view=manage] #broadcastHeading{font-size:18px}#broadcastSheet[data-view=manage][open]{display:flex}#broadcastSheet .page-heading{margin:8px 0}#report #openWorkbenchHistory{display:none}.quick-panel,.detail-panel{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:var(--r-sheet);padding:12px}.quick-panel .quick-panel-heading,.quick-panel>.section-heading,.detail-panel>.sheet-heading{display:flex;align-items:center;gap:8px;min-height:44px;margin:0 0 8px;padding-bottom:8px;border-bottom:1px solid var(--line)}.quick-panel :is(.quick-panel-heading,.section-heading)>:is(strong,h2),.detail-panel>.sheet-heading>h2{flex:1;min-width:0;font-size:18px;margin:0}.quick-detail-link,.settings-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:var(--r-control);background:var(--surface);color:var(--accent);font-size:14px;font-weight:600;white-space:nowrap}.quick-detail-link{width:100%;margin-top:8px}.quick-detail-link:hover,.settings-action:hover{background:var(--tint);border-color:var(--accent)}#sheet[data-panel=quick] .sheet-actions{display:flex;flex:none;padding-top:8px}#sheet[data-panel=quick] .sheet-actions .quick-detail-link{margin:0}#broadcastSettingsDialog{width:min(680px,calc(100% - 24px));max-height:85dvh;overflow:hidden}#broadcastSettingsDialog[open]{display:flex;flex-direction:column}#broadcastSettingsDialog .detail-body{flex:1;min-height:0;overflow:auto}#deviceDialog>.sheet-heading{flex:none;flex-wrap:nowrap}#deviceDialog>.sheet-heading .device-dialog-close{position:static;inset:auto;margin:0;width:auto;flex:none;align-self:center}#deviceDialog>:is(#device,#deviceSettings){width:100%;max-width:none;margin:0;padding:0;min-height:0;overflow:auto}#deviceDialog>:is(#device,#deviceSettings)>.page-heading{display:none}.sheet-heading>h2{min-width:0;flex:1;margin:0;font-size:18px;line-height:1.4}.sheet-heading>button{flex:none;white-space:nowrap}.detail-panel>.sheet-heading,.sheet-heading{flex-wrap:nowrap}#appearanceSettingsDialog>.sheet-heading{flex-direction:row}#sheet[data-panel=detail]>.sheet-heading>button,.detail-panel>.sheet-heading>button,#sceneSettingsDialog>.sheet-heading>button,#appearanceSettingsDialog>.sheet-heading>button{order:1;margin-left:auto}#sheet[data-panel=quick]>.sheet-heading>button{order:1}#appearanceSettingsDialog>.sheet-heading h2{flex:1}#phrases:has(#phraseEditor:not([hidden]))>:is(#phraseList,#speechSynthesisSummary,#speechLibraryNote,#recordingStorageNote){display:none}#phraseEditor>.section-heading{display:none}.speech-editor-footer{border-top:1px solid var(--line);padding-top:8px;margin-top:8px}.speech-editor-footer[hidden]{display:none}#sheetActions{border-top:1px solid var(--line);margin-top:8px;padding-top:8px}#sheetActions:empty{display:none}#broadcastSettingsDialog .page-heading h2{display:none}#phrases .speech-toolbar{display:flex;gap:8px;margin:0 0 4px;align-items:center}#phrases .speech-toolbar>button:not([hidden]){flex:1;min-width:0;white-space:nowrap;margin:0}#speechSynthesisSummary{display:block;font-size:12px;margin:0 0 8px;color:var(--muted)}#phrases #speechLibraryNote{font-size:12px;margin:4px 0 8px}#phrases #phraseList h3{font-size:14px;margin:10px 0 2px}#phrases .speech-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:6px;align-items:center;padding:8px 0}#phrases .speech-row .speech-order{grid-column:auto;display:flex;gap:4px}#phrases .speech-label strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}#phrases .speech-template-body{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:2px 0;font-size:13px;line-height:1.4}#phrases .speech-label:has(strong[hidden]) .speech-template-body{font-size:14px;font-weight:550}#phrases .speech-row button{min-height:44px;padding:6px 8px;font-size:12px;white-space:nowrap}#phrases .speech-row .speech-label{min-width:0}#phrases #recordingStorageNote{font-size:12px;margin:8px 0 0}@media(max-width:520px){#phrases .speech-row{grid-template-columns:1fr 1fr 1fr 1fr;gap:4px;padding:8px 0}#phrases .speech-label{grid-column:1/-1}#phrases .speech-row .speech-order{grid-column:3/5;display:grid;grid-template-columns:1fr 1fr}}.detail-panel .speech-source{border:0;padding:0;display:flex;gap:8px;flex-wrap:wrap}:root body>nav{background:var(--surface);border-top:1px solid var(--line);gap:8px}:root body>nav button{border-radius:var(--r-control);font-weight:500;color:var(--muted)}:root body>nav [aria-current=page]{background:var(--tint);color:var(--accent);font-weight:700;box-shadow:none}#report [data-status-muted][data-status-muted],#report #workbenchStatusFloats>[data-status-muted]{display:none!important}:root button.primary{border-color:var(--accent);box-shadow:none}:root button.danger{color:var(--danger);background:transparent}:root button:is(.text-button,.settings-row){border-color:transparent;box-shadow:none}:root button.quick-detail-link{border:1px solid var(--line);background:var(--surface);color:var(--accent)}:root button.settings-action{background:var(--surface);border-color:var(--line);color:var(--accent)}:root button.scene-selected,.editor-tabs button[aria-selected=true],.library-tabs button[aria-selected=true]{background:var(--tint);color:var(--accent);border:1px solid var(--accent);box-shadow:none}:root body>nav button{border-color:transparent}:root button:disabled{background:var(--disabled-bg);color:var(--disabled-ink);border-color:var(--line);box-shadow:none;opacity:1}:root button.text-button:disabled{background:transparent;border-color:transparent}:root[data-density=dense] :is(.quick-panel,.detail-panel){padding:10px}:root[data-density=dense] .sheet-heading{margin-bottom:6px}:root[data-density=dense] .settings-row{padding-block:6px;min-height:44px}:root[data-density=dense] .sheet-body label.field{margin:8px 0 4px}#sourceActions>button,#draftActions>button{border:1px solid var(--line);background-clip:border-box}#sourceActions>button.primary,#draftActions>button.primary{border-color:var(--accent)}#sourceActions>button.text-button,#draftActions>button.text-button{border-color:transparent}#phrases .speech-row button[data-speech-id]:not([aria-pressed=true]){background:var(--tint);border-color:var(--line)}:root[data-button-style=outline] button.primary:enabled{background:var(--surface);color:var(--accent);border-color:var(--accent);font-weight:700}:root[data-button-style=outline] button.primary:hover:enabled{background:var(--tint)}:root[data-button-style=soft] button.primary:enabled{background:var(--tint);color:var(--accent);border-color:var(--accent);font-weight:700}:root[data-button-style=soft] button.primary:hover:enabled{background:var(--surface)}:root{--button-secondary-bg:var(--surface);--button-secondary-border:var(--line);--tab-idle-bg:var(--canvas);--tab-idle-border:var(--line)}:root[data-button-style=outline]{--tab-idle-bg:var(--surface)}:root[data-button-style=soft]{--button-secondary-bg:var(--tint);--button-secondary-border:transparent;--tab-idle-bg:var(--tint);--tab-idle-border:transparent}:root[data-button-style] button:where(:not(.primary,.text-button,.settings-row,.capsule,.scene-badge)):enabled{background:var(--button-secondary-bg);border-color:var(--button-secondary-border)}:root[data-button-style] button:where(.quick-detail-link,.settings-action):enabled{background:var(--button-secondary-bg);border-color:var(--button-secondary-border)}:root[data-button-style] :is(body>nav,.editor-tabs,.library-tabs) button,:root[data-button-style] #library .library-tabs button{background:var(--tab-idle-bg);border:1px solid var(--tab-idle-border);color:var(--muted);box-shadow:none}:root[data-button-style] :is(body>nav,.editor-tabs,.library-tabs) button:is([aria-current=page],[aria-selected=true],[aria-pressed=true]),:root[data-button-style] #library .library-tabs button:is([aria-selected=true],[aria-pressed=true]){background:var(--tint);border-color:var(--accent);color:var(--accent);font-weight:700;box-shadow:none}:root[data-button-style] #broadcastSheet #quickPhrases button:not([aria-pressed=true]),:root[data-button-style] #phrases .speech-row button:enabled:not([aria-pressed=true]){background:var(--button-secondary-bg);border-color:var(--button-secondary-border)}:root[data-button-style] button.scene-selected{background:var(--tint);border-color:var(--accent);color:var(--accent)}:root[data-button-style] button:not(.capsule,.scene-badge):enabled:hover{border-color:var(--accent)}:root[data-button-style] button.text-button:not(.quick-detail-link):enabled{background:transparent;border-color:transparent}:root[data-button-style] button.danger:enabled{color:var(--danger)}.ui-version-settings{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px 10px;border-top:1px solid var(--line);padding-top:10px;margin-top:10px}.ui-version-settings h3,.ui-version-settings p{grid-column:1/-1;margin:0}.ui-version-settings h3{font-size:14px}.ui-version-settings select{min-width:0;width:100%}.app-header #sceneBadge,.app-header #deviceStatus{background:var(--tint) padding-box;border-color:transparent;box-shadow:none;color:var(--accent)}#report .editor-meta{display:grid;grid-template-columns:minmax(44px,96px) minmax(0,1fr) max-content;align-items:center;gap:6px;padding-inline:10px;min-height:44px}#report .editor-meta #baseChip{grid-column:1;grid-row:1;display:inline-flex;align-items:center;justify-content:flex-start;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 4px;margin:0;font-size:12px}#report .editor-meta-middle{grid-column:2;grid-row:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:4px;overflow:hidden}#report .source-changed-hint{min-width:0;color:var(--amber-ink);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#report .editor-meta #count{grid-column:3;grid-row:1;justify-self:end;margin:0;font-size:12px}#report .editor-meta #notes{flex:none;padding:0 4px;font-size:12px}#report .editor-meta .source-clipboard-feedback[data-active=true]{position:absolute;bottom:100%;left:8px;right:8px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-control);z-index:10}body[data-layout=mobile] #report .editor-heading{height:auto;min-height:50px;padding:2px 8px;gap:6px}#report .editor-heading .editor-tabs{flex:1 1 0;min-width:0;max-width:360px;gap:0;padding:0;border:1px solid var(--line);border-radius:var(--r-control);background:var(--canvas);align-self:center;overflow:hidden}:root[data-button-style] #report .editor-heading .editor-tabs button{flex:1 1 0;width:0;min-width:0;min-height:44px;padding:4px 6px;margin:0;border:0;border-radius:0;background:transparent;color:var(--muted);font-size:14px;line-height:1.3;white-space:nowrap;box-shadow:none}:root[data-button-style] #report .editor-heading .editor-tabs button[aria-selected=true]{background:var(--tint);color:var(--accent);font-weight:700;box-shadow:inset 0 -2px var(--accent)}:root[data-button-style] #report .editor-heading .editor-tabs button:hover:enabled{background:var(--tint)}#report .editor-heading .editor-tabs button:focus-visible{outline-offset:-3px}#sourceActions>button:disabled:not(.text-button),#draftActions>button:disabled:not(.text-button){background:var(--disabled-bg);color:var(--disabled-ink);border-color:var(--line);box-shadow:none;opacity:1}:root[data-button-style] #broadcastSheet #quickPhrases button.speech-playing,:root[data-button-style] #phrases .speech-row button.speech-playing,:root[data-button-style] #previewPhrase.speech-playing{background:linear-gradient(to right,var(--accent) 0 var(--speech-progress,0%),var(--line) var(--speech-progress,0%) 100%) left bottom / 100% 3px no-repeat,var(--tint);color:var(--ink);border-color:var(--accent)}:root[data-button-style] #broadcastSheet #quickPhrases button.speech-playing{background:linear-gradient(to right,var(--accent) 0 var(--speech-progress,0%),var(--line) var(--speech-progress,0%) 100%) left bottom / 100% 3px no-repeat,linear-gradient(to right,var(--tint) 0 var(--speech-progress,0%),var(--surface) var(--speech-progress,0%) 100%)}:root[data-button-style] #broadcastSheet #quickPhrases button.speech-playing small{color:var(--ink)}#broadcastSheet{inset:0;width:min(42rem,calc(100% - 24px));max-width:calc(100% - 24px);max-height:80dvh;margin:auto;padding:12px;border-radius:var(--r-sheet)}#broadcastSheet>.sheet-grip{display:none}#broadcastSheet #quickPhrases:not([hidden]){max-height:60dvh;overflow-x:hidden;overflow-y:auto}#broadcastSheet #quickPhrases button{display:flex;flex-direction:column;justify-content:flex-start;min-height:76px;gap:6px}#broadcastSheet .quick-phrase-heading{display:flex;align-items:center;gap:8px;width:100%;min-width:0}#broadcastSheet #quickPhrases .quick-phrase-heading strong{flex:1;min-width:0;font-size:.9rem}#broadcastSheet #quickPhrases .quick-phrase-heading small{display:block;flex:none;white-space:nowrap;font-size:.72rem;font-variant-numeric:tabular-nums}#broadcastSheet .quick-phrase-body{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;white-space:normal;overflow-wrap:anywhere;font-size:.85rem;line-height:1.45;color:var(--ink);text-align:start}@media(max-width:520px){#broadcastSheet #quickPhrases:not([hidden]){grid-template-columns:1fr}}#broadcastSheet{height:fit-content}#deviceDialog[data-panel=quick]{width:min(420px,calc(100vw - 24px));max-height:85dvh;padding:12px}.connection-cards:not([hidden]){display:flex;flex-direction:column;gap:8px;border:0;padding:0;min-width:0}.connection-cards>.quick-panel-item{display:flex;align-items:center;width:100%;min-height:44px;box-sizing:border-box;text-align:start;white-space:normal;overflow-wrap:anywhere;padding:10px;border:1px solid var(--line);border-radius:var(--r-control);background:var(--canvas);color:var(--ink)}.connection-cards>.quick-panel-actions{position:sticky;bottom:-12px;display:flex;gap:8px;padding:12px 0;background:var(--surface)}.connection-cards>.quick-panel-actions>button{flex:1;min-height:44px}#report .editor-meta-middle>.general-meta-feedback{position:static;flex:1 1 auto;min-width:0;width:auto;max-width:100%;min-height:0;max-height:none;overflow:hidden;padding:0;background:transparent;box-shadow:none;display:flex;align-items:center;justify-content:center;gap:4px}#report .editor-meta-middle>.general-meta-feedback:not(:has(.feedback-text:not([hidden]),#statusActions:not(:empty),#organizeElapsed:not([hidden]))){display:none}#report .editor-meta-middle .feedback-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#commandGateStatus{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--accent);font-size:.82em}#commandGateStatus[data-paused=true]{color:var(--muted)}#report .editor-meta-middle #statusActions{flex:none;display:flex;align-items:center;gap:4px}body[data-layout=mobile] #report,body[data-layout=mobile] #report .editor-card,body[data-layout=mobile] #report .editor-pane{min-width:0;max-width:100%}body[data-layout=mobile] #report .editor-card{grid-template-columns:minmax(0,1fr)}#report .editor-pane>textarea{box-sizing:border-box;width:100%;min-width:0;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}#report .voice-pending-mirror,#report .voice-pending-mirror>div{min-width:0;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}#report .editor-meta-middle>#reportGateReason.review-reason:not([hidden]),#report .editor-meta-middle>#generationStatus,#report .editor-meta-middle>#voiceBar,#report .editor-meta-middle>.source-clipboard-feedback[data-active=true]{position:static;flex:1 1 auto;min-width:0;width:auto;max-width:100%;max-height:none;margin:0;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;background:transparent;box-shadow:none;color:var(--muted);font-size:12px;line-height:1.5}#sheet[data-size=settings]{--settings-page-width:54rem;--settings-page-height:94dvh;width:min(calc(100% - 16px),var(--settings-page-width));max-width:var(--settings-page-width);max-height:var(--settings-page-height);padding:16px}#sheet[data-size=picker]{width:min(calc(100% - 16px),42rem);height:85dvh;max-height:85dvh;overflow:hidden}#sheet[data-size=picker]>.sheet-heading,#sheet[data-size=picker]>#sheetError,#sheet[data-size=picker]>#sheetActions{flex:none}#sheet[data-size=picker]>#sheetBody{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding:0}#sheet[data-size=picker]>#sheetActions{display:flex;flex-wrap:wrap}#sheet[data-size=picker] .picker-cap-frame{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}#sheet[data-size=picker] .picker-cap-fixed{flex:none}#sheet[data-size=picker] .picker-cap-list{flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}#sheet[data-size=picker] .picker-cap-list>button{display:block;width:100%;min-height:44px;text-align:left;white-space:normal;overflow-wrap:anywhere;margin-block:0 6px}#currentUiVersion{overflow-wrap:anywhere}main>#history:not([hidden]){display:flex;flex-direction:column;min-height:0;overflow:hidden}#history>.page-heading,#history>#historySearch,#history>#clearHistory{flex:none}#history>#historyList{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior-y:contain}#settings>h1{margin-block:0 12px}#settings>.settings-list{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;border-top:0}#settings .settings-home-group{min-width:0}#settings .settings-group-title{font-size:14px;line-height:20px;margin:0;padding:0 4px 4px;color:var(--muted);border-bottom:1px solid var(--line)}#settings .settings-row{min-height:44px;padding:6px 4px}#settings .settings-row small{margin-top:2px}@media(min-width:750px){#settings>.settings-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px 24px}}#sheet.voice-command-settings #sheetBody{display:block;overflow:auto;min-height:0}.voice-command-settings #sheetBody>label{display:flex;align-items:center;min-height:44px;gap:8px;margin:0}.voice-command-settings .caption{margin:4px 0 8px;line-height:1.4}.voice-word-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}.voice-word-group{min-width:0;padding:0;border:0}.voice-word-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px}.voice-command-settings button,.voice-command-settings .voice-word-add input{min-height:44px;box-sizing:border-box}.voice-word-heading button{padding:0 8px;font-size:14px}.voice-word-list{display:flex;flex-wrap:wrap;gap:4px;max-height:96px;overflow:auto}.voice-word-list button{flex:0 0 auto;max-width:100%;padding:0 10px;white-space:normal;overflow-wrap:anywhere;border-radius:var(--r-pill);font-size:14px}.voice-word-add{display:flex;align-items:center;gap:4px;margin-top:4px}.voice-word-add input{min-width:0;width:100%;padding:6px 10px;font-size:16px}.voice-word-add button{flex:none;padding:0 12px}@media(max-width:599px){.voice-word-grid{grid-template-columns:minmax(0,1fr);gap:4px}.voice-command-settings .voice-word-group{position:relative;padding-top:44px}.voice-word-heading{position:absolute;top:0;left:0;right:0}.voice-command-settings .voice-word-add{margin-top:4px}.voice-word-list{max-height:44px}}#sheet.settings-family #sheetBody{min-height:0;overflow:auto;display:block}#sheet.settings-family :is(button,input:not([type=checkbox],[type=radio],[type=hidden]),select,summary){min-height:44px;box-sizing:border-box}#sheet.settings-family label:has(>input:is([type=checkbox],[type=radio])){display:flex;align-items:center;gap:8px;min-height:44px;margin:0}#sheet.settings-family .caption{margin:4px 0;line-height:1.4}#sheet.settings-family :is(.actions,.row){display:flex;gap:8px;flex-wrap:wrap;margin-block:8px}#sheet.settings-family .field{margin:8px 0 4px}#sheet.settings-family textarea{min-height:112px;max-height:38dvh;overflow:auto;resize:vertical}#sheet.settings-family:has(.compact-template-picker){height:94dvh}#sheet.settings-family:has(.compact-template-picker) #sheetBody{display:flex;flex:1;overflow:hidden}#sheet.settings-family .compact-template-picker{display:flex;flex:1;flex-direction:column;min-height:0}#sheet.settings-family .compact-template-fixed{flex:none}#sheet.settings-family .compact-template-scroll{flex:1;min-height:0;overflow:auto;max-height:none}#sheet.settings-family .output-format-choices fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px}@media(min-width:700px){#sheet.settings-family #accountPanel{max-width:44rem}#sheet.settings-family .output-format-choices fieldset{grid-template-columns:repeat(3,minmax(0,1fr))}}#report .editor-meta.editor-meta-unified{display:flex;align-items:center;flex-wrap:nowrap;height:44px;min-height:44px;max-height:44px;box-sizing:border-box}#report .editor-meta-unified #baseChip{flex:0 0 88px;display:block}#report .editor-meta-unified #count{flex:0 0 58px;overflow:hidden;text-overflow:ellipsis;text-align:end}#report .editor-meta-unified #feedbackText{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px;line-height:18px}#report .editor-meta-unified #feedbackText[data-tone=progress]{color:var(--accent)}#report .editor-meta-unified #feedbackText[data-tone=warning]{color:var(--danger)}#report .editor-meta-unified #feedbackText[tabindex="0"]{cursor:pointer;text-decoration:underline}#recordDeliveryFeedback:not(:has(#sourceClipboardCopy:not([hidden]),#statusActions:not(:empty))){display:none}:root .settings-row:has(>span>small){gap:8px;min-height:44px;padding-block:6px}:root .settings-row>span:has(>small){display:flex;align-items:center;gap:12px;flex:1;min-width:0;white-space:nowrap}:root .settings-row>span>small{flex:1;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;text-align:right;white-space:nowrap}:root .settings-row:has(>span>small)>span:last-child{flex:none}.settings-row-name{flex:0 1 auto;min-width:0;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:is(#sheetBody,#clipTemplateResults,#fullTemplateResults,#builtinResults,#pickerResults,#templateSearchResults) :is(label>span,.grow):has(>small){display:flex;align-items:center;gap:12px;min-width:0;flex:1;white-space:nowrap}:is(#clipTemplateResults,#fullTemplateResults,#builtinResults,#pickerResults,#templateSearchResults) label,#sheetBody .row:has(label>span>small)>label{min-width:0;flex:1;min-height:44px}:is(#clipTemplateResults,#fullTemplateResults,#builtinResults,#pickerResults,#templateSearchResults) small,#sheetBody .row label>span>small{min-width:0;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:right;margin:0}:is(#clipTemplateResults,#fullTemplateResults,#builtinResults) .grow>strong{min-width:0;max-width:65%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.device-facts>div{min-height:44px;align-items:center;padding-block:6px}.device-facts dt{flex:none;white-space:nowrap}.device-facts dd{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media(width<750px){#settings.scroll-page{padding-block-end:8px}}.voice-input-settings{display:grid;gap:20px}.voice-input-settings section{min-width:0}.voice-input-settings h3{margin:0 0 8px;font-size:14px;color:var(--sub)}.voice-input-settings .settings-row{width:100%;min-height:44px}.voice-input-settings .caption{margin:6px 0 12px;line-height:1.5}.voice-setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;margin:8px 0 0}.voice-setting-row[hidden]{display:none}.voice-setting-row>label{margin:0}.voice-setting-row select{width:auto;max-width:55%;min-height:44px;margin:0}.voice-setting-row input[type=checkbox]{flex:none}.voice-input-settings .voice-settings-note{margin:0;padding-top:12px;border-top:1px solid var(--line);grid-column:1 / -1}@media(min-width:700px){.voice-input-settings{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 28px}}.model-options{display:grid;gap:12px}.model-option{min-width:0;padding:12px 16px;border:1px solid var(--line);border-radius:var(--r-panel);background:var(--surface)}.model-option[data-current=true]{border-color:var(--accent);background:var(--tint)}.model-option-heading{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;min-height:44px}.model-option-name{display:flex;align-items:center;gap:10px;min-height:44px;margin:0}.model-option-name input{flex:none}.model-option-name strong{font-size:16px}.model-badge{display:inline-flex;align-items:center;padding:2px 7px;border-radius:6px;background:var(--canvas);color:var(--muted);font-size:12px;line-height:1.6;white-space:nowrap}.model-badge[hidden],.model-extra[hidden]{display:none}.model-badge-current{background:var(--accent);color:var(--on-accent);font-weight:600}.model-badge[data-cached=true]{color:var(--deep);background:var(--tint);border:1px solid var(--line)}.model-option .caption{margin:4px 0 10px}.model-option .actions{display:flex;gap:8px}.model-option .actions button{flex:1;min-height:44px}@media(max-width:480px){.model-option{padding:8px 12px}.model-option-heading{gap:4px 6px}.model-option-name{gap:8px}}#sheet:has(.model-options) .model-option-name{min-height:44px}#sheet:has(.model-options) #sheetBody{min-width:0}#sheet:has(.model-options) #sheetActions{flex-wrap:nowrap}#sheet:has(.model-options) #sheetActions button{min-height:44px;min-width:0;padding-inline:10px}.model-options{gap:8px}.model-option{padding:8px 12px}.model-option-heading{flex-wrap:nowrap;justify-content:space-between;gap:8px}.model-option-name{min-width:0;flex:1;gap:8px}.model-option-name strong{font-size:15px}.model-badges{display:flex;flex-direction:column;align-items:flex-end;gap:2px;flex:none}.model-badge{padding:1px 5px;line-height:1.4}.model-option .caption{margin:2px 0 6px;font-size:12px;line-height:1.4}.model-option .actions{margin:0;gap:6px;flex-wrap:nowrap}.model-option .actions button{min-width:0;padding:0 6px;font-size:13px;white-space:nowrap}.model-feedback{height:28px;margin-top:4px}.model-feedback p{margin:0;height:20px;line-height:20px;font-size:12px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.model-feedback progress{display:block;width:100%;height:4px;margin:2px 0 0;accent-color:var(--accent)}.model-feedback progress[hidden],.model-alert[hidden]{display:none}.model-alert{position:absolute;z-index:2;inset:64px 16px auto;padding:12px;border:1px solid var(--line);border-radius:var(--r-panel);background:var(--surface);color:var(--ink)}.model-alert p{max-height:35dvh;overflow:auto;overflow-wrap:anywhere;margin:0 0 8px}.model-alert button{min-height:44px}@media(max-width:480px){.model-option{padding:6px 8px}.model-option-heading{gap:6px}}.structured-suggestion.field-pool{position:relative;box-sizing:border-box;height:100%;min-height:0;overflow:hidden;padding:0;scrollbar-gutter:auto;touch-action:none;overscroll-behavior:contain}.field-pool .structured-suggestion-field{display:contents}.field-pool .structured-field-heading{position:absolute;left:0;right:0;box-sizing:border-box;height:calc(var(--u)*9.4);min-height:0;margin:0;padding:0 calc(var(--u)*3);display:flex;align-items:center;gap:var(--u);background:var(--surface);border-bottom:1px solid var(--line);z-index:2;color:var(--ink)}.field-pool .structured-field-heading label{flex:1;min-width:0;margin:0;font-weight:500;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:text}.field-pool .structured-field-heading.is-current label{font-weight:700;color:var(--accent)}.field-pool .structured-field-actions{gap:calc(var(--u)*2)}.field-pool .structured-field-send{height:calc(var(--u)*7);min-height:0;min-width:44px;padding:0 calc(var(--u)*2);line-height:1;border:1px solid var(--accent)}.field-pool .structured-field-window{position:absolute;left:0;right:0;overflow:hidden;z-index:1}#report .field-pool .structured-field-window textarea{display:block;box-sizing:border-box;width:100%;min-height:0;max-height:none;margin:0;padding:6px calc(var(--u)*3);border:0;border-radius:0;resize:none;overflow:hidden;line-height:1.9;background:var(--surface);touch-action:none}.field-pool:focus-visible,.field-pool textarea:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}#sheet[open][data-size=template-panel]{inset:0;display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:var(--surface);color:var(--ink);overflow:hidden}#sheet[data-size=template-panel]>:is(.sheet-heading,#sheetBody,#sheetError,#sheetActions){box-sizing:border-box;width:min(100%,60rem);max-width:none;margin-inline:auto}#sheet[data-size=template-panel]>.sheet-heading{flex:none}#sheet[data-size=template-panel]>#sheetBody{display:flex;flex:1 1 0;min-height:0;overflow:hidden;padding:0}#sheet[data-size=template-panel] #sheetError{flex:none;margin-block:2px}#sheet[data-size=template-panel] #sheetError:empty{display:none}#sheet[data-size=template-panel]>#sheetActions{flex:none;display:flex;gap:8px;margin-top:6px;padding-block:6px 0;border-top:1px solid var(--line)}#sheet[data-size=template-panel] #sheetActions button{flex:1 1 0;min-width:0;min-height:44px;margin:0;padding:6px}.tp-page,.tp-detail{flex:1;min-width:0;min-height:0}.tp-page{display:flex;flex-direction:column;gap:6px}.tp-card{border:1px solid var(--line);border-radius:12px;padding:2px 5px 3px;background:var(--surface)}.tp-card-head,.tp-follow,.tp-row{display:flex;align-items:center;justify-content:space-between}.tp-card-head h3{margin:0;font-size:.8125rem;line-height:1.2}.tp-follow,.tp-filters select{min-height:44px}#sheet[data-size=template-panel] .tp-card-head button{min-height:24px;margin:0;padding:0 5px;font-size:.75rem;line-height:1.2;color:var(--accent)}.tp-modes{display:flex;gap:2px}#sheet[data-size=template-panel] .tp-modes button[aria-pressed=true]{background-color:var(--accent);border-color:var(--accent);color:var(--on-accent)}#panelChips{display:flex;flex-wrap:wrap;align-content:start;gap:2px 3px;max-height:min(7rem,16dvh);overflow:auto}#panelChips span{max-width:100%;overflow-wrap:anywhere;border-radius:4px;padding:0 0 0 4px;background:var(--tint);font-size:.75rem;line-height:1.25}.tp-page #pickerSearch{box-sizing:border-box;width:100%;min-height:44px;margin:0}.tp-filters{display:flex;gap:8px}.tp-filters label{display:flex;flex:1 1 0;min-width:0;align-items:center;gap:4px}.tp-filters span{flex:none;color:var(--muted);font-size:.8125rem}.tp-filters select{width:0;min-width:0;flex:1;margin:0;padding-inline:4px}.tp-filters [hidden],.tp-page [hidden]{display:none}.tp-page #pickerCount{margin:0}.tp-follow{margin:0;padding-inline:10px 14px;font-weight:600;border-bottom:1px solid var(--line);cursor:pointer}.tp-page #pickerScroll{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;scrollbar-gutter:stable}#pickerResults section+section{margin-block-start:10px}#pickerResults section>h3{margin:0;padding:6px 10px;font-size:.875rem;line-height:1.4;color:var(--muted);border-bottom:1px solid var(--line)}#pickerResults :is(.tp-branch-toggle,.tp-detail-link,.tp-check):focus-visible,#pickerResults .tp-check:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:-2px}#pickerResults .tp-branch-toggle{display:flex;align-items:center;gap:.65rem;box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:0;padding:6px 12px;background:var(--surface);color:var(--ink);border:0;border-radius:0;border-bottom:1px solid var(--line);text-align:start;font-weight:600;overflow-wrap:anywhere}.tp-branch-toggle:before{content:"";flex:0 0 auto;width:.44rem;height:.44rem;box-sizing:border-box;border:solid var(--muted);border-width:0 1.5px 1.5px 0;transform:rotate(-45deg)}.tp-branch-toggle[aria-expanded=true]:before{transform:rotate(45deg)}.tp-children{margin-inline-start:12px;border-inline-start:1px solid var(--line)}#pickerResults .tp-children .tp-branch-toggle{font-weight:500}#pickerResults .caption{margin:6px 10px}.tp-row{min-height:44px;border-bottom:1px solid var(--line)}.tp-row .tp-detail-link{display:flex;align-items:center;justify-content:space-between;gap:8px;align-self:stretch;flex:1;min-width:0;min-height:44px;margin:0;border:0;border-radius:4px;padding:6px 10px;text-align:start;color:var(--ink);background:transparent}.tp-detail-link span,.tp-detail-link small{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#panelTemplateSources{font-size:.75rem;overflow-wrap:anywhere;max-height:3.5em;overflow:auto}#panelTemplateSources:empty{display:none}#sheet [data-template-source]{padding:0 .25em;border-radius:.3em;background:var(--tint);color:var(--accent);white-space:nowrap;font-size:.75rem}#pickerResults .tp-detail-link[data-panel-origin=search]:has([data-template-source]){display:grid;grid-template-columns:minmax(0,auto) auto;justify-content:start;align-items:center}#pickerResults .tp-detail-link[data-panel-origin=search]:has([data-template-source]) small:last-child:not([data-template-source]){grid-column:1 / -1}#pickerResults .tp-detail-link small{flex:0 1 auto;max-width:66%;color:var(--muted);font-size:.8125rem;font-weight:400;text-align:end}#pickerResults [data-panel-origin=search].tp-detail-link{flex-direction:column;align-items:stretch;justify-content:center;gap:2px}#pickerResults [data-panel-origin=search] :is(span,small){display:block;max-width:100%;text-align:start}#pickerResults .tp-check{display:grid;place-items:center;flex:0 0 48px;min-width:48px;min-height:44px;margin:0;cursor:pointer}.tp-row input,.tp-follow input{width:20px;height:20px;margin:0;accent-color:var(--accent)}.tp-row input{cursor:pointer}.tp-page #pickerMore{width:100%;min-height:44px}.tp-detail{overflow:auto;overscroll-behavior:contain}.tp-detail dl{margin:0}.tp-detail dl>div{display:grid;grid-template-columns:minmax(4rem,24%) minmax(0,1fr);gap:12px;padding:12px 4px;border-bottom:1px solid var(--line)}.tp-detail dt{color:var(--muted)}.tp-detail dd,.tp-detail dt{margin:0;overflow-wrap:anywhere}.tp-detail dd{white-space:pre-wrap}@media(max-width:420px){.tp-filters label{flex-direction:column;align-items:stretch;gap:0}.tp-filters select{width:100%;flex:auto}}@media(max-height:460px){.tp-page{overflow-y:auto}.tp-page #pickerScroll{min-height:100px}}#panelChips>span{display:inline-flex;align-items:center;padding-inline-end:0}#panelChips [data-remove-field]{flex:none;width:20px;height:20px;min-width:20px;min-height:20px;padding:0;border:0;color:inherit;background:transparent;font:inherit;cursor:pointer}#panelChips [data-remove-field]:before{content:"\d7";font-size:.875rem}#sheet[open][data-size=template-editor]{display:flex;flex-direction:column;overflow:hidden;width:min(calc(100% - 16px),48rem);max-height:96dvh}#sheet[data-size=template-editor] #sheetBody{display:flex;min-height:0;overflow:hidden;padding:0}#templateFieldEditor{display:flex;flex-direction:column;width:100%;min-height:0}#templateFieldEditor .tf-scroll{overflow:auto;padding:2px 4px;overscroll-behavior:contain}#templateFieldEditor label{display:block;min-width:0;font-size:.875rem;font-weight:600}#templateFieldEditor :is(input:not([type=checkbox]),textarea,select){box-sizing:border-box;display:block;width:100%;min-width:0;margin:4px 0 8px}#templateFieldEditor [hidden]{display:none}#templateFieldEditor :is(button,select,input:not([type=checkbox])),#templateSave{min-height:44px}#templateFieldEditor .tf-start{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:14px}#templateFieldEditor .tf-start button{display:block;height:auto;padding:9px 12px;text-align:start;white-space:normal}#templateFieldEditor .tf-start span,#templateFieldEditor .tf-options span{display:block;color:var(--muted);font-size:.8rem;line-height:1.45;font-weight:400}#templateFieldEditor .tf-start strong{display:block;margin-bottom:3px}#seedPicker{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:4px 12px;margin-bottom:14px}#templateFieldEditor [data-field-row]{margin:6px 0;border:1px solid var(--line);border-radius:10px;padding:4px 8px}#templateFieldEditor .tf-header{display:flex;align-items:center;gap:6px}#templateFieldEditor .tf-header input{flex:1;min-width:4ch;margin:0;font-weight:600}#templateFieldEditor [data-field-badges]{font-size:.8rem;color:var(--muted);white-space:nowrap}#templateFieldEditor [data-field-badges]:empty{display:none}#templateFieldEditor .tf-body{margin-top:8px;padding-block:8px;border-top:1px solid var(--line)}#templateFieldEditor .tf-options{display:flex;flex-wrap:wrap;gap:4px 18px;margin-bottom:6px}#templateFieldEditor .tf-options label{display:grid;grid-template-columns:auto 1fr;column-gap:6px;align-content:center;align-items:center;min-height:44px;margin:0}#templateFieldEditor .tf-options input{margin:0}#templateFieldEditor .tf-options span{grid-column:2}#fieldAdd{width:100%}#fieldOrderPreview{flex:none;margin:8px 0 0;padding:8px 4px;border-top:1px solid var(--line);white-space:nowrap;overflow-x:auto}@media(max-width:32rem){#seedPicker{grid-template-columns:minmax(0,1fr)}#templateFieldEditor .tf-start button{padding:8px}}#diseaseGeneratorForm{flex:1;min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;padding:4px;width:100%}#diseaseGeneratorForm label{display:block;margin:12px 0 4px;font-weight:600}#diseaseGeneratorForm label:first-child{margin-top:0}#diseaseGeneratorForm :is(input,select){display:block;box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:4px 0}#diseaseGeneratorForm #diseaseFields{height:auto}#diseaseGeneratorForm .tf-options{display:flex;flex-wrap:wrap;gap:8px}#diseaseGeneratorForm button{flex:none;width:auto;min-height:44px;margin:0;padding-inline:12px}#sheet[data-size=template-panel] #sheetBody:has(>#importText){display:block;overflow-y:auto;padding-inline:4px}.patient-list{display:grid;align-content:start;gap:calc(1.5 * var(--u))}.patient-card,.patient-entry{display:grid;gap:var(--u);min-width:0;padding:calc(2 * var(--u)) calc(3 * var(--u));border:thin solid var(--line);border-radius:var(--r-control);color:var(--ink);background:var(--surface);text-align:start;overflow-wrap:anywhere}.patient-card small,.patient-entry small{color:var(--muted)}.patient-summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.patient-entry p{margin:0;white-space:pre-wrap}.patient-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:calc(2 * var(--u))}.patient-toolbar h2{margin:0;flex:1}.patient-entry>summary{cursor:pointer}.patient-entry>summary small,.patient-summary{display:block}.materials-controls{display:flex;align-items:center;gap:8px;margin:8px 0 12px;flex-wrap:wrap}.materials-controls>select{width:auto;min-width:124px;min-height:44px;font-size:13px;padding:6px 8px;flex:1;max-width:200px}.materials-controls>button{min-height:44px;font-size:13px;padding:6px 10px;white-space:nowrap;flex:none}.materials-controls>button:first-child{background:var(--accent);color:var(--on-accent);font-weight:600}.materials-controls>strong{flex:1;min-width:0;overflow-wrap:anywhere}.materials-folders{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;margin-bottom:12px}.material-folder{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;min-height:52px;background:var(--tint);color:var(--ink);text-align:left;overflow-wrap:anywhere}.material-folder small{flex:none;color:var(--muted);font-size:11px}.materials-folders .material-folder{flex-direction:column;align-items:flex-start;justify-content:center;min-width:0}.materials-folders .material-folder small{white-space:normal;overflow-wrap:anywhere}.materials-controls [aria-pressed=true]{background:var(--tint);color:var(--accent)}#patientDocument,#projectSummary{width:100%;box-sizing:border-box;min-height:240px;line-height:1.7}#history .page-heading{margin:0 0 12px;min-height:32px}#history .page-heading h1{font-size:20px;margin:0}#history #historySearch{width:100%;min-height:44px;font-size:14px;padding:8px 12px}#history .patient-entry{display:block;margin-bottom:8px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-control)}#history .patient-entry>summary{position:relative;list-style:none;min-height:44px;padding-right:36px}#history .patient-entry>summary::-webkit-details-marker{display:none}#history .patient-entry>summary:after{content:"\5c55\5f00";position:absolute;right:0;top:50%;transform:translateY(-50%);font-size:11px;color:var(--accent)}#history .patient-entry[open]>summary:after{content:"\6536\8d77"}#history .patient-entry>summary small{font-size:11px;line-height:1.5;overflow-wrap:anywhere;color:var(--muted);margin-bottom:4px}#history .patient-summary{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;font-weight:600;line-height:1.55;color:var(--ink)}#history .patient-entry p{font-size:14px;line-height:1.7;margin:10px 0;max-height:min(32dvh,260px);overflow:auto;overscroll-behavior:contain}#history .patient-entry[open]>summary{border-bottom:1px solid var(--line);padding-bottom:8px}#history .patient-entry .patient-toolbar{gap:4px;border-top:1px solid var(--line);padding-top:8px}#history .patient-entry .patient-toolbar>button{font-size:12px;min-width:44px;min-height:44px;padding:6px 8px;background:transparent;color:var(--muted);white-space:nowrap}#history .patient-entry .patient-toolbar>button:first-child{background:var(--tint);color:var(--accent)}#history .patient-entry .patient-toolbar>button:last-child{color:var(--danger)}.material-sync-status{display:inline-flex;align-items:center;justify-content:center;flex:none;width:20px;height:20px;color:var(--muted);vertical-align:middle}.material-sync-status svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.material-sync-status[data-state=synced]{color:var(--success)}.materials-capacity{font-size:11px;line-height:1.5;color:var(--muted);margin:4px 0 8px;font-variant-numeric:tabular-nums}#sheetBody:has(#materialTitle)>label,#sheetBody:has(#materialFolderName)>label{display:block;font-size:13px;font-weight:600;margin:12px 0 6px}#sheetBody :is(#materialTitle,#materialBody,#materialFolder,#materialFolderName){width:100%;box-sizing:border-box;font-size:14px}#sheetBody #materialBody{min-height:160px;max-height:42dvh;line-height:1.7;resize:vertical}@media(min-width:900px){#history #historySearch{max-width:640px}#history .patient-entry{padding:12px 16px}#history .patient-entry>summary{padding-right:44px}#history .patient-summary{font-size:15px}.materials-controls{margin-block:10px 14px}.materials-folders{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}.material-select-row{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:4px}.material-check{display:grid;place-items:center;width:44px;min-height:48px;cursor:pointer}.material-check input{width:20px;height:20px;margin:0;accent-color:var(--accent)}.material-batch,.material-suggestions{padding:8px;margin-bottom:8px;background:var(--tint);border-radius:var(--r-control)}.material-batch button,.material-suggestions button,.material-refs button{min-height:44px}.material-batch small:empty{display:none}.material-original{color:var(--muted);border-inline-start:2px solid var(--line);padding-inline-start:12px;margin:8px 0}.material-original>summary{min-height:44px;align-content:center;cursor:pointer}.material-refs{display:flex;flex-wrap:wrap;align-items:center;gap:4px}#sheetBody :is(#materialSplitText,#materialKeywords,#materialFolderCode,#materialGenerationTemplate){width:100%;box-sizing:border-box}#sheetBody #materialSplitText{line-height:1.7}#sheetBody label[for=materialGenerationTemplate]{display:block;margin-bottom:6px}.material-suggestions{display:grid}.material-suggestion-group{display:flex;align-items:start;justify-content:space-between;flex-wrap:wrap;gap:8px}.material-suggestion-group summary{min-height:44px;align-content:center;cursor:pointer;overflow-wrap:anywhere}.material-suggestion-group ul{padding-inline-start:1.5em}
