@font-face{font-family:Noto Sans SC;src:url('./assets/NotoSansCJKsc-Regular.otf') format('opentype');font-weight:400;font-display:swap}
:root{--paper:#fff;--canvas:#fafafa;--ink:#171717;--muted:#737373;--line:#e6e6e6;--soft:#f3f3f2;--accent:#ff501a;--accent-soft:#fff0e9;--danger:#bd3434;--green:#357556;--body:16px;--radius:14px;--bar:76px;font-family:'Noto Sans SC','PingFang SC',sans-serif;color:var(--ink);background:var(--canvas);font-synthesis:weight;font-size:16px;line-height:1.75;-webkit-tap-highlight-color:transparent}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button{color:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #1b6eff;outline-offset:3px}button{border:0;background:none}a{color:inherit}svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin:0}h1{font-size:24px;line-height:34px;font-weight:600;letter-spacing:-.5px}h2{font-size:18px;line-height:28px;font-weight:600}h3{font-size:16px;line-height:26px;font-weight:600}small,.caption{font-size:12px;line-height:20px}.muted{color:var(--muted)}.mono{font-family:'IBM Plex Mono','SFMono-Regular',Consolas,monospace;letter-spacing:.02em}.eyebrow{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}.accent{color:var(--accent)}.nowrap{white-space:nowrap}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip-link{position:fixed;top:-90px;z-index:100;background:var(--ink);color:white;padding:12px}.skip-link:focus{top:8px}.boot{padding:30vh 24px;text-align:center}.boot p{margin-top:24px;color:var(--muted)}
.shell{min-height:100dvh;background:var(--paper)}.desktop-side{display:none}.mobile-shell{min-width:0;position:relative}.topbar{height:68px;padding:12px 16px;display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.96);position:sticky;top:0;z-index:10;border-bottom:1px solid transparent}.topbar-title{font-size:14px;font-weight:500;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar .wordmark{flex:1}.wordmark{font-family:Arial,sans-serif;letter-spacing:-1.5px;font-size:24px;font-weight:800;line-height:1}.wordmark span{font-size:9px;vertical-align:super;margin-left:3px;letter-spacing:0}.icon-button{width:48px;height:48px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;flex:none}.icon-button:hover{background:var(--soft)}.topbar .icon-button:first-child{margin-left:-8px}.avatar{border-radius:50%;background:var(--ink);color:#fff;font-family:Arial;font-weight:600;width:32px;height:32px;display:grid;place-items:center;font-size:12px}.page{padding:22px 20px 122px;max-width:740px;margin:0 auto;min-height:calc(100dvh - 68px)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.page-heading p{margin-top:7px;color:var(--muted);font-size:13px}.page-heading h1{overflow-wrap:anywhere}.page.section-page{padding-top:12px}.context-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:10px}.dot{width:3px;height:3px;border-radius:50%;background:#aaa}.online-dot{width:6px;height:6px;border-radius:50%;background:var(--green);display:inline-block;margin-right:4px}.tag{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:5px;padding:1px 6px;font-size:11px;line-height:20px;vertical-align:middle;font-weight:400}.tag.orange{color:#a3310c;background:var(--accent-soft);border-color:#ffd5c5}.tag.gray{background:var(--soft);color:var(--muted);border-color:transparent}.tag.green{color:var(--green);background:#edf5ef;border-color:#dce9df}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-radius:10px;padding:11px 18px;font-size:14px;line-height:24px;font-weight:500;background:var(--ink);color:white;border:1px solid var(--ink);text-decoration:none}.button.primary{background:var(--accent);border-color:var(--accent);color:var(--ink)}.button.secondary{background:white;border-color:#d8d8d8;color:var(--ink)}.button.quiet{background:transparent;border-color:transparent;color:var(--ink)}.button.danger{background:#fff;border-color:#eacccc;color:var(--danger)}.button.full{width:100%}.button.compact{padding-inline:14px}.button:hover:not(:disabled){filter:brightness(.96)}.button-row{display:flex;gap:8px;align-items:center}.button-row>*{flex:1;min-width:0}.button-row.wrap{flex-wrap:wrap}.link-button{min-height:48px;padding:10px 0;font-size:14px;text-align:left;font-weight:500;display:inline-flex;align-items:center;gap:8px}.link-button.orange{color:#c84410}.link-button.danger{color:var(--danger)}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:20;padding:8px 16px max(10px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(3,1fr);background:rgba(255,255,255,.97);border-top:1px solid var(--line);height:calc(76px + env(safe-area-inset-bottom))}.bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:11px;color:#777;min-height:54px}.bottom-nav button.active{color:var(--ink)}.bottom-nav button.active svg{stroke-width:2.2}.bottom-nav button.active:after{content:'';width:3px;height:3px;border-radius:50%;background:var(--accent);position:absolute;bottom:7px}.bottom-actions{position:fixed;bottom:0;left:0;right:0;background:rgba(255,255,255,.97);border-top:1px solid var(--line);padding:12px 16px max(12px,env(safe-area-inset-bottom));z-index:20;display:flex;gap:8px}.bottom-actions .button{flex:1}.bottom-actions.selection-active{padding:10px 16px}.bottom-actions .icon-button{border:1px solid var(--line)}.keyboard-open .bottom-nav{display:none}.keyboard-open .bottom-actions{position:sticky;bottom:0}.keyboard-open .page{padding-bottom:30px}
.filters{display:flex;gap:8px;overflow:auto;margin:4px -20px 24px;padding:0 20px;scrollbar-width:none}.filters::-webkit-scrollbar{display:none}.chip{min-height:48px;padding:10px 15px;border:1px solid var(--line);border-radius:24px;white-space:nowrap;font-size:13px;display:inline-flex;align-items:center;gap:6px;background:white}.chip.selected{color:white;background:var(--ink);border-color:var(--ink)}.chip svg{width:16px;height:16px}.list-heading{display:flex;justify-content:space-between;align-items:center;margin:4px 0 10px;gap:8px}.list-heading .link-button{font-size:12px;color:var(--muted);min-height:44px}.record-list{list-style:none;padding:0;margin:0}.record-row{display:flex;gap:14px;padding:20px 0;border-bottom:1px solid var(--line);position:relative;align-items:flex-start}.record-row:first-child{border-top:1px solid var(--line)}.record-open{flex:1;min-width:0;text-align:left;padding:0}.record-title{font-weight:500;line-height:26px;margin-bottom:7px;overflow-wrap:anywhere}.record-preview{font-size:13px;line-height:22px;color:var(--muted);margin-bottom:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.record-meta{display:flex;align-items:center;gap:7px;font-size:11px;color:#777;flex-wrap:wrap}.record-row .icon-button{width:40px;margin-right:-8px;min-height:48px}.record-symbol{width:38px;height:44px;border:1px solid var(--line);border-radius:9px;display:flex;align-items:center;justify-content:center;flex:none;margin-top:3px;background:#fcfcfc}.record-symbol svg{width:18px}.record-symbol.demo{color:#cb522d;background:#fff5f0;border-color:#ffe1d3}.row-chevron{color:#aaa;width:17px;height:17px}.square-check{width:22px;height:22px;accent-color:var(--accent);flex:none;margin:12px 0 0}.empty{padding:56px 8px;text-align:center}.empty-icon{height:80px;width:80px;border:1px solid var(--line);background:linear-gradient(145deg,#fff,#f6f6f4);border-radius:24px;display:grid;place-items:center;margin:0 auto 28px;box-shadow:0 8px 26px #00000004}.empty-icon svg{width:32px;height:32px;color:#555}.empty h2{margin-bottom:12px}.empty p{font-size:14px;line-height:24px;color:var(--muted);max-width:330px;margin:0 auto 24px}.empty .button{min-width:190px}.empty .link-button{display:flex;margin:12px auto 0;justify-content:center}.notice{display:flex;gap:10px;padding:14px 15px;border:1px solid var(--line);border-radius:10px;background:var(--soft);font-size:13px;line-height:23px;margin:16px 0;color:#565656}.notice svg{width:18px;height:18px;margin-top:3px}.notice>div{flex:1;min-width:0}.notice strong{font-size:13px;font-weight:500;color:var(--ink);display:block;margin-bottom:3px}.notice.warning{background:#fff7ef;border-color:#f2dbc5;color:#855021}.notice.error{background:#fff2f2;border-color:#f1d1d1;color:#963737}.notice.success{background:#f1f7f2;border-color:#dae9dd;color:#376144}.notice .link-button{padding:6px 0 0;min-height:38px;font-size:12px}.section{margin:28px 0}.section-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.section-header .link-button{font-size:12px;color:var(--muted);min-height:40px}.settings-list{border-top:1px solid var(--line)}.settings-row{padding:17px 0;min-height:74px;border-bottom:1px solid var(--line);width:100%;display:flex;align-items:center;gap:14px;text-align:left}.settings-row>svg:first-child{color:#555;width:21px}.settings-row .row-copy{flex:1;min-width:0}.settings-row .row-copy span{display:block;font-size:15px;font-weight:500;line-height:25px}.settings-row .row-copy small{display:block;color:var(--muted);margin-top:4px;line-height:20px;overflow-wrap:anywhere}.settings-row .trailing{color:var(--muted);font-size:12px}.settings-row .row-chevron{color:#aaa}.switch{position:relative;display:inline-block;width:43px;height:27px;flex:none}.switch input{opacity:0;width:0;height:0}.switch span{position:absolute;inset:0;background:#ddd;border-radius:20px;cursor:pointer}.switch span:after{content:'';position:absolute;width:21px;height:21px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .15s}.switch input:checked+span{background:var(--ink)}.switch input:checked+span:after{transform:translateX(16px)}.switch input:focus-visible+span{outline:3px solid #1b6eff;outline-offset:3px}
.segmented{display:flex;gap:24px;border-bottom:1px solid var(--line);margin:20px 0 24px}.segmented button{min-height:50px;font-size:14px;position:relative;padding:8px 3px;color:var(--muted)}.segmented button.active{color:var(--ink);font-weight:600}.segmented button.active:after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--ink)}.article{font-size:var(--body);line-height:1.875;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text;-webkit-user-select:text;min-height:90px}.article::selection,.article *::selection{background:#ffd9c5}.article h2{white-space:normal}.article-wrap{padding-bottom:26px}.read-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:12px 0 26px;color:var(--muted);font-size:12px}.article-title{margin-bottom:10px}.source-segment{padding:10px 0 24px}.source-segment .segment-meta{display:flex;gap:14px;margin-bottom:12px;color:#777;font-size:12px;align-items:center}.segment-time{font-family:monospace;min-height:36px;color:var(--muted);padding:0}.player{background:#f7f7f6;border:1px solid var(--line);border-radius:12px;margin:22px 0;padding:14px}.player audio{width:100%;height:38px}.player-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;gap:10px;font-size:12px;color:var(--muted)}.player-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px}.player-tools button{font-size:12px;min-height:40px;display:flex;align-items:center;gap:6px}.player-tools svg{width:17px;height:17px}.audio-unavailable{border:1px dashed #d7d7d7;border-radius:10px;padding:15px;display:flex;gap:10px;font-size:12px;color:#777;margin:22px 0}.note-card{border:1px solid var(--line);border-radius:12px;padding:18px;margin:12px 0;background:#fff;text-align:left;width:100%;display:block}.note-card.selected{border-color:#ffab89;background:#fffaf7}.note-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}.note-card-top h3{flex:1}.note-card p{font-size:13px;line-height:22px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.note-card .card-meta{font-size:11px;color:#888;margin-top:14px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.template-icon{width:36px;height:36px;border:1px solid var(--line);border-radius:8px;display:grid;place-items:center;margin-bottom:20px;color:#555;background:#fafafa}.template-icon svg{width:19px;height:19px}.template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.template-tile{min-height:174px;border:1px solid var(--line);padding:16px 14px;border-radius:12px;text-align:left;background:#fff}.template-tile h3{font-size:14px}.template-tile p{font-size:11px;line-height:20px;color:#777;margin-top:7px}.template-tile .tag{margin-top:12px}.version-item{padding:20px 0;border-bottom:1px solid var(--line)}.version-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.version-item p{margin-top:8px;font-size:13px;color:var(--muted);white-space:pre-wrap}.version-item .link-button{font-size:12px}.compare-block{margin:16px 0;border:1px solid var(--line);border-radius:10px;overflow:hidden}.compare-label{padding:10px 14px;font-size:12px;border-bottom:1px solid var(--line);background:var(--soft);display:flex;justify-content:space-between}.compare-content{white-space:pre-wrap;padding:16px;font-size:15px;line-height:28px;overflow-wrap:anywhere}.compare-block.after{border-color:#ffc7b0}.compare-block.after .compare-label{background:var(--accent-soft);border-color:#ffc7b0;color:#b13c15}.selection-info{white-space:pre-wrap;max-height:150px;overflow:auto;border-left:2px solid var(--accent);padding:4px 14px;margin:18px 0 24px;font-size:14px;color:#555}.citation{padding:14px;border-left:2px solid #ddd;margin:16px 0;background:#fafafa}.citation p{font-size:13px;white-space:pre-wrap}.citation .link-button{font-size:12px;color:#666}.welcome{min-height:calc(100dvh - 68px);display:flex;flex-direction:column;padding:52px 24px 24px;max-width:540px;margin:auto}.welcome .intro{margin:auto 0 36px}.welcome h1{font-size:32px;line-height:46px;letter-spacing:-1px}.welcome p{color:var(--muted);font-size:14px;line-height:26px;margin-top:18px}.welcome .welcome-mark{width:72px;height:88px;position:relative;border:1.5px solid #1b1b1b;border-radius:12px;margin-bottom:46px;display:grid;place-items:center}.welcome-mark:before{content:'';position:absolute;width:21px;height:5px;background:#1b1b1b;top:10px;border-radius:4px}.welcome-mark svg{width:30px;height:30px;color:var(--accent)}.welcome footer{padding-top:28px;color:#888;font-size:11px;line-height:19px}.badge-device{width:112px;height:147px;border:1px solid #bbb;border-radius:17px;background:linear-gradient(145deg,#fcfcfc,#eee);box-shadow:0 16px 30px #00000008;position:relative;margin:22px auto 34px;display:flex;align-items:center;justify-content:center}.badge-device:before{content:'';position:absolute;top:12px;width:33px;height:6px;background:#303030;border-radius:3px}.badge-device .wordmark{font-size:14px;letter-spacing:-1px}.badge-device:after{content:'';width:4px;height:4px;position:absolute;left:22px;bottom:20px;background:#bbb;border-radius:50%}
.field{display:block;margin:20px 0}.field-label{display:block;font-size:13px;font-weight:500;margin-bottom:8px}.field-hint{font-size:12px;color:#777;margin:7px 0 0;line-height:21px}.field input,.field textarea,.field select,.search-input{display:block;width:100%;border:1px solid #d9d9d9;border-radius:10px;background:white;padding:12px 14px;font-size:16px;min-height:48px;line-height:26px;color:var(--ink);appearance:none}.field input:focus,.field textarea:focus,.field select:focus,.search-input:focus{border-color:#777;outline:2px solid #eee;outline-offset:0}.field textarea{resize:vertical;min-height:150px;line-height:28px;scroll-margin-bottom:100px}.field textarea.large{min-height:300px}.field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23777' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:38px}.field input[type=file]{font-size:13px;padding:16px}.field input[type=file]::file-selector-button{font:inherit;border:1px solid #ddd;border-radius:6px;padding:7px 9px;margin-right:10px;background:#f5f5f5}.field.inline{margin:0;flex:1}.field .error{color:var(--danger);font-size:12px}.check-row{display:flex;gap:10px;align-items:flex-start;padding:12px 0;font-size:14px;min-height:48px}.check-row input{accent-color:var(--ink);margin-top:7px;width:18px;height:18px;flex:none}.search-wrap{position:relative;margin:0 0 20px}.search-wrap svg{position:absolute;top:14px;left:14px;width:20px;height:20px;color:#777}.search-input{padding-left:44px;background:#f7f7f6;border-color:transparent}.form-divider{border:0;border-top:1px solid var(--line);margin:28px 0}.disclosure{border:1px solid var(--line);padding:0 14px;border-radius:10px;margin:18px 0}.disclosure summary{min-height:48px;cursor:pointer;font-size:13px;display:flex;align-items:center;justify-content:space-between;list-style:none}.disclosure summary:after{content:'＋';color:#888}.disclosure[open] summary:after{content:'−'}.disclosure p{font-size:13px;color:#777;margin-bottom:16px}.disclosure .field{margin:12px 0}.help-text{font-size:13px;color:#777;line-height:25px}.help-text p{margin:16px 0}.help-text strong{color:#444;font-weight:500}.help-list{padding-left:22px;font-size:14px;line-height:28px}.storage-meter{height:4px;background:#eee;border-radius:4px;margin:20px 0 12px;overflow:hidden}.storage-meter span{height:100%;background:var(--ink);display:block}.stats-line{display:flex;justify-content:space-between;gap:15px;font-size:12px;color:#777}.workflow-stage{display:flex;gap:15px;padding:16px 0;border-bottom:1px solid var(--line)}.workflow-stage .stage-number{display:grid;place-items:center;width:28px;height:28px;background:var(--soft);font-size:11px;border-radius:50%;flex:none;margin-top:3px}.workflow-stage p{font-size:12px;color:#777;margin-top:5px}.workflow-stage h3{font-size:14px}.run-status{font-size:12px;display:flex;gap:7px;align-items:center}.run-status.failed{color:var(--danger)}.run-status.success{color:var(--green)}
.overlay{position:fixed;inset:0;background:#0005;z-index:60;display:flex;align-items:flex-end;justify-content:center;padding:0;overscroll-behavior:contain}.dialog{background:white;width:100%;max-width:560px;border-radius:20px 20px 0 0;max-height:calc(100dvh - 36px);overflow:auto;padding:8px 20px max(24px,env(safe-area-inset-bottom));box-shadow:0 -10px 60px #0002}.dialog:before{content:'';display:block;width:30px;height:4px;background:#ddd;border-radius:10px;margin:4px auto 14px}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.dialog-head h2{font-size:18px}.dialog-head .icon-button{margin-right:-10px}.dialog p{font-size:14px;color:#666;line-height:25px;white-space:pre-wrap}.dialog .button-row{margin-top:22px}.menu-item{display:flex;align-items:center;gap:13px;width:100%;min-height:56px;border-bottom:1px solid var(--line);text-align:left;font-size:14px;padding:12px 0}.menu-item:last-child{border:0}.menu-item.danger{color:var(--danger)}.menu-item small{margin-left:auto;color:#888}.toast{position:fixed;left:50%;bottom:calc(95px + env(safe-area-inset-bottom));transform:translate(-50%,16px);background:#262626;color:white;border-radius:10px;padding:11px 18px;z-index:100;font-size:13px;line-height:23px;box-shadow:0 4px 15px #0002;max-width:calc(100% - 40px);width:max-content;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.toast.visible{opacity:1;transform:translate(-50%,0)}.error-page{padding:15vh 24px;max-width:560px;margin:auto}.error-page h1{margin-bottom:15px}.error-page p{color:#777;margin-bottom:25px}.spinner{width:15px;height:15px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:spin .7s linear infinite;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:760px){:root{--bar:76px}body{background:#f4f4f3}.shell{max-width:1180px;margin:auto;min-height:100dvh;display:grid;grid-template-columns:216px minmax(0,1fr);border-inline:1px solid var(--line);box-shadow:0 0 50px #00000003}.desktop-side{display:flex;flex-direction:column;padding:32px 20px 20px;background:#fafafa;border-right:1px solid var(--line);position:sticky;top:0;height:100dvh;z-index:30}.desktop-side .wordmark{padding:10px 12px;margin-bottom:54px}.desktop-side nav{display:grid;gap:8px}.desktop-side nav button{display:flex;align-items:center;gap:13px;text-align:left;padding:13px 15px;min-height:50px;border-radius:10px;font-size:14px;color:#777}.desktop-side nav button.active{background:#eee;color:#111}.desktop-side footer{margin-top:auto;padding:20px 12px 0;font-size:11px;color:#888}.desktop-side .side-bottom{margin-top:auto}.desktop-side .side-bottom button{width:100%}.mobile-shell{min-height:100dvh}.topbar{height:82px;padding-inline:32px;border-bottom:1px solid var(--line)}.topbar .wordmark{font-size:17px;letter-spacing:-.7px;color:#666}.topbar .wordmark span{font-size:7px}.page{padding:36px 36px 130px;min-height:calc(100dvh - 82px)}.page.section-page{padding-top:28px}.bottom-nav{display:none}.bottom-actions{left:max(calc((100vw - 1180px)/2 + 216px),216px);right:max(calc((100vw - 1180px)/2),0px);padding:16px 36px;justify-content:flex-end}.bottom-actions .button{flex:initial;min-width:180px}.bottom-actions .button.quiet{min-width:120px}.filters{margin-inline:-36px;padding-inline:36px}.record-row{padding:24px 0}.empty{padding:90px 20px}.empty-icon{margin-bottom:32px}.template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.template-tile{min-height:180px}.welcome{min-height:calc(100dvh - 82px);padding-top:70px}.welcome .intro{margin-top:60px}.dialog{border-radius:18px;max-height:calc(100dvh - 70px);padding:24px}.dialog:before{display:none}.overlay{align-items:center;padding:30px}.toast{bottom:100px}.article{font-size:var(--body);line-height:1.9}.page-heading{margin-bottom:30px}.source-segment{padding-bottom:30px}}
@media(max-width:359px){.page{padding-inline:16px}.button{padding-inline:12px}.template-grid{gap:8px}.topbar{padding-inline:12px}.filters{margin-inline:-16px;padding-inline:16px}.page-heading h1{font-size:23px}.record-row{gap:9px}.bottom-actions{padding-inline:10px}.bottom-actions .button{font-size:13px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Every text action keeps a full mobile touch target, including inline notices. */
button:not([hidden]),a.button,a.link-button,.notice-action{min-inline-size:48px}
.link-button,.notice .link-button,.section-header .link-button,.list-heading .link-button,.version-item .link-button,.citation .link-button{min-height:48px;min-inline-size:48px;padding-block:12px}.notice .link-button{display:flex;width:100%;margin-top:6px;padding-block:12px}.segment-time{min-height:48px}.player-tools button{min-height:48px}

.switch{width:48px;height:48px}.switch span{inset:auto;left:2px;top:11px;width:43px;height:27px}.record-row .icon-button{width:48px}.selection-touch{display:grid;place-items:center;width:48px;min-height:48px;flex:none}.selection-touch .square-check{margin:0}.record-open{min-height:48px}
h1,h2,h3,.row-copy>span{overflow-wrap:anywhere}.note-card-top h3{min-width:0}.template-tile{min-width:0}.menu-item>span{min-width:0;overflow-wrap:anywhere}

/* Keep the reading surface stationary while inspecting a citation or choice. */
body.modal-open{overflow:hidden}
.dialog{overscroll-behavior:contain}
.workflow-stage>div{min-width:0}
.workflow-stage p,.record-meta,.context-line{overflow-wrap:anywhere}
.field textarea.large{font-size:var(--body);line-height:1.8}
.playback-error{margin-top:14px}
/* V07.8 — read first, then work on one passage. */
.adjustment-intro{font-size:13px;line-height:22px;color:var(--muted);margin:6px 0 18px}
.selection-context{margin:18px 0 22px;border-left:3px solid var(--accent);padding:0 0 0 13px}
.selection-context summary{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:48px;cursor:pointer;font-size:12px;list-style:none}
.selection-context summary span:first-child{font-weight:600}.selection-context summary span:last-child{color:var(--muted)}
.selection-context blockquote{margin:0;padding:4px 0 10px;max-height:128px;overflow:auto;white-space:pre-wrap;font-size:14px;line-height:25px;color:#505050;overflow-wrap:anywhere}
.adjust-mode{display:flex;padding:4px;border-radius:12px;background:var(--soft);gap:4px;margin:0 0 22px}
.adjust-mode button{flex:1;min-width:0;min-height:48px;border-radius:9px;font-size:14px;color:var(--muted)}
.adjust-mode button.active{background:var(--ink);color:white}
.adjustment-page textarea.large{min-height:190px;height:230px;font-size:var(--body);line-height:1.85}
.adjustment-page .field{margin-top:0;margin-bottom:12px}.adjustment-page .field-label{font-size:13px}
.prompt-presets{display:flex;gap:4px;flex-wrap:wrap;margin:-4px 0 6px}.prompt-presets .button{font-size:12px;min-height:48px;padding:8px 10px;background:#f7f7f6;border:1px solid var(--line);border-radius:24px}
.ai-inline{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;margin:8px 0 12px;font-size:12px;color:var(--muted)}
.ai-inline>span{display:flex;align-items:center;gap:6px}.ai-inline svg{width:16px;height:16px}.ai-inline .link-button{font-size:12px;flex:none}
.adjust-tools{margin-top:14px;border-top:1px solid var(--line)}.adjust-tools summary{min-height:48px;padding:12px 0;font-size:13px;cursor:pointer}.adjust-tools>div{display:flex;flex-direction:column}
.draft-status{margin-top:8px}.selection-actions{display:block}.selection-actions .button-row{display:flex}.selection-summary{font-size:13px;font-weight:600;margin:0 0 8px}.selection-summary span{font-size:11px;font-weight:400;color:var(--muted);margin-left:8px}
.comparison-page mark{color:inherit;border-radius:3px;padding:2px 0}.comparison-page mark.removed{background:#f7e3e3;text-decoration:line-through;text-decoration-color:#b45c5c}.comparison-page mark.added{background:#ffd5bf}
.compare-help{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:22px;color:var(--muted);margin:18px 0}.compare-help svg{width:18px;height:22px}
.answer-preview{border-top:1px solid var(--line);padding-top:22px}.answer-preview h2{font-size:18px;line-height:28px;margin:7px 0 20px}.answer-preview .article{padding-bottom:20px}
@media(min-width:760px){.selection-actions .button-row{justify-content:flex-end}.selection-actions .button-row .button{flex:initial}.adjustment-page textarea.large{height:270px}.adjustment-page,.comparison-page{max-width:740px}}
.connection-card{margin:24px 0;padding:22px 20px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}
.connection-card h2{font-size:18px;line-height:1.6}.connection-card p{font-size:13px;line-height:1.85;margin:12px 0;color:var(--muted)}
.pair-code{font:500 clamp(18px,5vw,26px)/1.5 ui-monospace,monospace;letter-spacing:1px;padding:20px 8px;text-align:center;border-block:1px solid var(--line);margin:22px 0;white-space:nowrap}
.stack-actions{display:grid;gap:10px;margin-top:20px}.connect-page{max-width:700px}.connect-page>.button{margin:14px 0}
.device-grant{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}.device-grant>div{min-width:0}.device-grant strong{font-size:14px}.device-grant p{margin:6px 0}.device-grant .button{flex:none}
