.manuscript-viewer{position:relative;display:flex;min-height:0;height:100%;flex-direction:column;color:#1f2937;background:#f8fafc}.manuscript-viewer__tools{display:flex;align-items:center;gap:.4rem;min-height:2.8rem;padding:.45rem .65rem;border-bottom:1px solid #d8dee9;background:#fff}.manuscript-viewer--selection-adjusting .manuscript-viewer__tools>:not(.manuscript-selection-adjustment){display:none}.manuscript-selection-adjustment{display:grid;width:100%;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.25rem .65rem}.manuscript-selection-adjustment__status{grid-column:1;color:#1e3a8a;font-size:.82rem;font-weight:800}.manuscript-selection-adjustment__excerpt{min-width:0;grid-column:1;overflow:hidden;color:#334155;font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}.manuscript-selection-adjustment__hint{grid-column:1;color:#475569;font-size:.72rem}.manuscript-selection-adjustment__actions{display:flex;grid-column:2;grid-row:1 / span 3;gap:.4rem}.manuscript-selection-adjustment__actions button{min-height:44px;padding:.4rem .65rem;white-space:nowrap}.manuscript-selection-adjustment__confirm{border-color:#1d4ed8!important;color:#fff!important;background:#1d4ed8!important;font-weight:750}.manuscript-selection-adjustment__confirm:hover{background:#1e40af!important}.manuscript-viewer__tools button,.selection-menu button,.manuscript-overlap-menu button{min-height:2rem;border:1px solid #cbd5e1;border-radius:.4rem;color:#172033;background:#fff;cursor:pointer}.manuscript-viewer__tools button:hover:not(:disabled),.selection-menu button:hover,.manuscript-overlap-menu button:hover{border-color:#64748b;background:#f1f5f9}.manuscript-viewer__tools button:disabled{cursor:not-allowed;opacity:.45}.manuscript-search{display:flex;align-items:center;gap:.35rem;min-width:13rem;flex:1 1 18rem}.manuscript-search>span{font-size:.8rem;font-weight:700;white-space:nowrap}.manuscript-search input{min-width:5rem;min-height:2rem;flex:1;border:1px solid #94a3b8;border-radius:.4rem;padding:.25rem .55rem;color:inherit;background:#fff}.manuscript-search kbd,.selection-menu kbd,.manuscript-overlap-menu kbd{border:1px solid #cbd5e1;border-bottom-width:2px;border-radius:.25rem;padding:.05rem .3rem;color:#475569;background:#f8fafc;font:inherit;font-size:.72rem;white-space:nowrap}.manuscript-search__status{min-width:4.5rem;color:#475569;font-size:.78rem;white-space:nowrap}.manuscript-font-tools{display:flex;align-items:center;gap:.3rem;margin-left:auto}.manuscript-font-tools span{min-width:3rem;color:#475569;font-variant-numeric:tabular-nums;text-align:center}.manuscript-viewer__scroll{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain}.manuscript-content{min-height:100%;box-sizing:border-box;padding:clamp(1rem,3vw,2.5rem);outline:none;color:#1f2937;background:#fffefb;font-family:Yu Mincho,Hiragino Mincho ProN,serif;line-height:1.9;overflow-wrap:anywhere;tab-size:4;white-space:pre-wrap;-webkit-user-select:text;user-select:text}.manuscript-content:focus-visible{box-shadow:inset 0 0 0 3px #2563eb}.manuscript-segment{position:relative;border-radius:.12em;box-decoration-break:clone;-webkit-box-decoration-break:clone}.manuscript-segment--interactive{cursor:pointer;text-decoration-line:underline;text-decoration-thickness:.12em;text-underline-offset:.18em}.manuscript-segment--interactive:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}.manuscript-segment--draft{outline:2px dashed #334155;outline-offset:1px}.manuscript-segment--type-replacement{text-decoration-style:double}.manuscript-segment--type-rewrite{text-decoration-style:dashed}.manuscript-segment--type-expression{text-decoration-style:dotted}.manuscript-segment--type-proofreading{text-decoration-style:solid}.manuscript-segment--overlap{text-decoration-style:double}.manuscript-segment--overlap[data-overlap-badge]:after{content:attr(data-overlap-badge);display:inline-block;margin:0 .12rem 0 .08rem;border:1px solid #334155;border-radius:999px;padding:0 .28rem;color:#fff;background:#334155;font-family:system-ui,sans-serif;font-size:.62em;font-weight:800;line-height:1.45;text-decoration:none;vertical-align:super;-webkit-user-select:none;user-select:none}.manuscript-segment--search-match{box-shadow:inset 0 -.42em #fb923c85}.manuscript-segment--active-search-match{outline:3px solid #c2410c;outline-offset:1px}.manuscript-segment--selected{outline:3px solid #1d4ed8;outline-offset:2px}.selection-menu,.manuscript-overlap-menu{position:fixed;z-index:50;width:max-content;max-width:min(42rem,calc(100vw - 2rem));box-sizing:border-box;border:1px solid #94a3b8;border-radius:.7rem;padding:.6rem;box-shadow:0 12px 36px #0f172a42;color:#172033;background:#fff;font-family:system-ui,sans-serif}.selection-menu__excerpt,.selection-menu__prompt,.manuscript-overlap-menu__title,.manuscript-overlap-menu__warning{margin:0 0 .45rem}.selection-menu__excerpt{max-width:34rem;overflow:hidden;color:#475569;font-size:.8rem;text-overflow:ellipsis;white-space:nowrap}.selection-menu__prompt,.manuscript-overlap-menu__title{font-weight:750}.selection-menu__choices{display:grid;grid-template-columns:repeat(4,minmax(7.2rem,1fr));gap:.4rem}.selection-menu__choice{display:grid;min-height:3rem!important;grid-template-columns:auto 1fr auto;align-items:center;gap:.35rem;padding:.35rem .5rem;font-weight:700;text-align:left}.selection-menu__all-occurrences{display:grid;grid-column:1 / -1;min-height:3.2rem!important;grid-template-columns:auto 1fr;align-items:center;gap:.5rem;padding:.45rem .6rem;color:#23564d;font-weight:700;text-align:left;background:#edf6f2;border-color:#83ada0!important}.selection-menu__all-occurrences>span:last-child{display:grid;gap:.1rem}.selection-menu__all-occurrences small{color:#526a63;font-size:.72rem;font-weight:500}.selection-menu__choice--replacement{border-bottom:4px double #dc2626!important}.selection-menu__choice--rewrite{border-bottom:4px dashed #ca8a04!important}.selection-menu__choice--expression{border-bottom:4px dotted #16a34a!important}.selection-menu__choice--proofreading{border-bottom:4px solid #2563eb!important}.selection-menu__icon{font-size:1.2rem}.selection-menu__dismiss,.manuscript-overlap-menu__close{margin-top:.5rem;padding:.25rem .55rem}.selection-menu button:focus-visible,.manuscript-overlap-menu button:focus-visible,.manuscript-viewer__tools button:focus-visible,.manuscript-search input:focus-visible{outline:3px solid #2563eb;outline-offset:2px}.manuscript-overlap-menu{min-width:min(26rem,calc(100vw - 2rem));max-height:min(30rem,calc(100vh - 2rem));overflow:auto;transform:translate(-50%)}.manuscript-overlap-menu__warning{border-left:4px solid #dc2626;padding:.35rem .55rem;color:#7f1d1d;background:#fef2f2;font-size:.82rem}.manuscript-overlap-menu__item{display:grid;width:100%;grid-template-columns:1.5rem 1fr;align-items:start;gap:.35rem;margin-top:.3rem;padding:.45rem .55rem;text-align:left}.manuscript-overlap-menu__item span:last-child{display:grid;gap:.15rem}.manuscript-overlap-menu__item small{overflow:hidden;color:#475569;text-overflow:ellipsis;white-space:nowrap}@media(max-width:760px){.manuscript-viewer__tools{flex-wrap:wrap}.manuscript-search{flex-basis:calc(100% - 5rem)}.selection-menu__choices{grid-template-columns:repeat(2,minmax(8rem,1fr))}}@media(max-width:900px){.manuscript-viewer{width:100%;border:1px solid #d8dee9;border-radius:10px;overflow:hidden}.manuscript-viewer__tools{flex-wrap:wrap;padding:.45rem max(.5rem,env(safe-area-inset-right)) .45rem max(.5rem,env(safe-area-inset-left))}.manuscript-search{min-width:0;flex-basis:100%}.manuscript-search>span{font-size:.75rem}.manuscript-search__status{min-width:3.5rem;flex:1}.manuscript-font-tools{margin-left:auto}.manuscript-content{padding:1rem max(.9rem,env(safe-area-inset-right)) max(2rem,env(safe-area-inset-bottom)) max(.9rem,env(safe-area-inset-left));line-height:2}.selection-menu,.manuscript-overlap-menu{right:max(.5rem,env(safe-area-inset-right));bottom:calc(4.7rem + env(safe-area-inset-bottom));left:max(.5rem,env(safe-area-inset-left))!important;top:auto!important;width:auto;min-width:0;max-width:none;max-height:min(62dvh,34rem);padding-bottom:max(.6rem,env(safe-area-inset-bottom));overflow:auto;transform:none!important}.selection-menu__excerpt{max-width:none}.selection-menu__choices{grid-template-columns:repeat(2,minmax(0,1fr))}.selection-menu__choice,.selection-menu__all-occurrences,.selection-menu__dismiss,.manuscript-overlap-menu__item,.manuscript-overlap-menu__close{min-height:48px!important}}@media(pointer:coarse){.manuscript-viewer__tools button{min-width:44px;min-height:44px}.manuscript-search input{min-height:44px;font-size:16px}.selection-menu kbd,.manuscript-overlap-menu kbd,.manuscript-search kbd{display:none}}@media(max-width:420px){.manuscript-selection-adjustment{grid-template-columns:minmax(0,1fr)}.manuscript-selection-adjustment__hint{grid-column:1}.manuscript-selection-adjustment__actions{grid-column:1;grid-row:auto;justify-content:stretch}.manuscript-selection-adjustment__actions button{flex:1}.selection-menu__choices{grid-template-columns:1fr}}:root{color:#25241f;background:#eee9df;font-family:Yu Gothic UI,Hiragino Kaku Gothic ProN,Noto Sans JP,system-ui,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;--ink: #25241f;--muted: #716d63;--paper: #fffdf7;--paper-deep: #f7f2e8;--line: #d8d0c2;--line-strong: #b9ae9c;--accent: #276158;--accent-dark: #194840;--accent-soft: #dcece7;--danger: #a33832;--warning: #94600f;--shadow: 0 14px 42px rgb(58 48 32 / 14%)}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0}body{min-width:980px;overflow:hidden}button,input,select,textarea{font:inherit}button{min-height:34px;padding:.42rem .72rem;color:var(--ink);background:#fff;border:1px solid var(--line-strong);border-radius:7px;cursor:pointer;transition:.12s ease}button:hover:not(:disabled){color:var(--accent-dark);background:#f6fbf9;border-color:var(--accent)}button:active:not(:disabled){transform:translateY(1px)}button:disabled{color:#9c988f;background:#efede8;border-color:#d9d5cd;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #168579;outline-offset:2px}input,select,textarea{color:var(--ink);background:#fff;border:1px solid var(--line-strong);border-radius:6px}input,select{min-height:35px;padding:.38rem .55rem}textarea{width:100%;padding:.65rem;line-height:1.65;resize:vertical}kbd{display:inline-block;min-width:1.4em;padding:.05em .3em;color:#5e594f;font:.78em/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;text-align:center;background:#f2efe8;border:1px solid #cbc3b6;border-bottom-width:2px;border-radius:4px}.sr-only,.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.app-shell{display:grid;grid-template-rows:auto minmax(0,1fr);height:100%;background:#eee9df}.app-shell[aria-busy=true]:after{position:fixed;z-index:1000;inset:0;display:grid;place-items:center;padding:2rem;color:#fff;font-weight:700;text-align:center;content:"安全に更新しています…";background:#1c322ed1;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.toolbar{position:relative;z-index:30;display:grid;grid-template-columns:auto minmax(540px,1fr) minmax(210px,280px);gap:.9rem;align-items:center;min-height:76px;padding:.7rem 1rem;background:#fffdf7f7;border-bottom:1px solid var(--line);box-shadow:0 2px 12px #3c322314}.brand{display:flex;gap:.65rem;align-items:center;min-width:max-content}.brand-mark{display:grid;place-items:center;width:40px;height:40px;color:#fff;font-family:serif;font-size:1.35rem;background:var(--accent);border-radius:8px 8px 8px 2px;box-shadow:inset 0 -4px #0000001f}.brand-copy{display:grid;gap:.05rem}.brand-copy strong{letter-spacing:.04em}.brand-copy small{color:var(--muted);font-size:.72rem}.toolbar-actions{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}.toolbar-actions>button,.toolbar-button-group>button{white-space:nowrap}.toolbar-button-group{display:inline-flex}.toolbar-button-group>button{border-radius:0}.toolbar-button-group>button:first-child{border-radius:7px 0 0 7px}.toolbar-button-group>button:last-child{margin-left:-1px;border-radius:0 7px 7px 0}.toolbar-actions .icon-button{padding-inline:.5rem;font-size:.78rem}.toolbar-project{display:grid;gap:.3rem;justify-items:stretch}.toolbar-project input{width:100%;font-weight:650}.save-state{display:flex;gap:.4rem;align-items:center;justify-content:flex-end;color:var(--muted);font-size:.78rem}.save-dot{width:8px;height:8px;background:#aaa69c;border-radius:50%}.save-state-unsaved .save-dot,.save-state-autosave-error .save-dot{background:#d17a18}.save-state-saved .save-dot,.save-state-clean .save-dot{background:#26866d}.save-state-saving .save-dot{background:#3a79bd;animation:pulse .9s infinite alternate}@keyframes pulse{to{opacity:.25}}.workspace{position:relative;display:flex;min-height:0}.mobile-workspace-nav{display:none}.workspace-pane{min-width:0;min-height:0}.workspace-pane-left{flex:0 0 var(--left-pane-width, 58%);padding:1rem .6rem 1rem 1rem}.workspace-pane-right{flex:1 1 auto;padding:1rem 1rem 1rem .6rem;overflow:auto}.pane-divider{position:relative;z-index:5;flex:0 0 10px;padding:0;background:transparent;border:0;border-radius:0;cursor:col-resize;touch-action:none}.pane-divider:after{position:absolute;inset-block:1.25rem;left:4px;width:2px;content:"";background:#c8c0b3;border-radius:2px}.pane-divider:hover:after,.pane-divider:focus-visible:after{width:4px;background:var(--accent)}.welcome-state{display:grid;grid-column:1 / -1;place-items:center;width:100%;min-height:0;padding:2rem}.welcome-card{width:min(780px,90vw);padding:clamp(2rem,4vw,4rem);text-align:center;background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.welcome-icon{display:grid;place-items:center;width:72px;height:72px;margin:0 auto 1rem;color:var(--accent);font:2.2rem serif;background:var(--accent-soft);border-radius:50%}.welcome-card h1{margin:0 0 .7rem;font:700 clamp(1.6rem,3vw,2.2rem)/1.3 serif}.welcome-card>p{max-width:42rem;margin:.5rem auto;color:var(--muted);line-height:1.8}.welcome-actions{display:flex;gap:.7rem;justify-content:center;margin-top:1.5rem}.welcome-actions button{min-height:44px;padding-inline:1.2rem}.privacy-note{display:inline-flex;gap:.4rem;align-items:center;margin-top:1.5rem;padding:.45rem .75rem;color:#315c52;font-size:.82rem;background:#e6f1ed;border-radius:999px}.pwa-guide{color:#315c52;line-height:1.65;background:#edf6f2;border-color:#bfd8cf!important}.pwa-guide p,.pwa-guide ol{margin:.45rem 0}.pwa-guide ol{padding-left:1.35rem}.pwa-guide--compact{max-width:42rem;margin:1rem auto 0;padding:.7rem .85rem;text-align:left;border:1px solid #bfd8cf;border-radius:10px}.pwa-guide--compact p{color:#42685f;font-size:.8rem}.pwa-guide__status,.pwa-guide__persistence{display:flex;flex-wrap:wrap;gap:.5rem .8rem;align-items:center;justify-content:space-between}.instruction-panel{display:grid;gap:.8rem;min-height:100%;padding:.9rem;background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px #3d322114}.instruction-panel h2,.instruction-panel h3,.instruction-panel h4,.instruction-panel p{margin-top:0}.instruction-panel__header{display:flex;gap:.7rem;align-items:start;justify-content:space-between;padding-bottom:.65rem;border-bottom:1px solid var(--line)}.instruction-panel__header h2{margin-bottom:.15rem;font:700 1.3rem serif}.instruction-panel__header p{margin-bottom:0;color:var(--muted);font-size:.82rem}.instruction-filters,.instruction-panel__create,.instruction-panel__bulk-actions,.instruction-panel__output-actions{padding:.7rem;background:var(--paper-deep);border:1px solid #e2dbcf;border-radius:8px}.instruction-filters__heading{display:flex;justify-content:space-between}.instruction-filters__heading h3,.instruction-panel__create h3,.instruction-panel__bulk-actions h3,.instruction-panel__output-actions h3{margin-bottom:.55rem;font-size:.9rem}.instruction-panel__create{display:grid;gap:.55rem;background:#eef6f3;border-color:#b8d4ca}.instruction-panel__create h3,.instruction-panel__create p{margin-bottom:0}.instruction-panel__create>div:first-child p,.instruction-panel__create-note{color:var(--muted);font-size:.75rem;line-height:1.5}.instruction-panel__create-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}.instruction-panel__create-actions button{min-height:42px;padding:.45rem .55rem;color:#23564d;font-weight:700;background:#fff;border-color:#83ada0}.instruction-filters__heading output{color:var(--muted);font-size:.78rem}.instruction-filters__controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}.instruction-filters__controls label,.instruction-form label,.paste-form label,.settings-grid label{display:grid;gap:.25rem;color:#4d493f;font-size:.8rem;font-weight:650}.instruction-filters__controls select{width:100%}.instruction-panel__bulk-actions>div,.instruction-panel__output-actions>div{display:flex;flex-wrap:wrap;gap:.4rem}.instruction-panel__bulk-actions button{min-height:30px;padding:.28rem .5rem;font-size:.76rem}.instruction-panel__ordering-note{display:grid;gap:.15rem;padding:.55rem .65rem;color:#5d574c;font-size:.75rem;line-height:1.5;background:#f4efe3;border-left:4px solid #a58c5a}.instruction-list ol{display:grid;gap:.65rem;padding:0;margin:0;list-style:none}.instruction-list__empty{padding:2rem 1rem;color:var(--muted);text-align:center;border:1px dashed var(--line-strong);border-radius:8px}.instruction-item{padding:.7rem;background:#fff;border:1px solid var(--line);border-left:5px solid #999;border-radius:8px;box-shadow:0 2px 7px #362d1f12}.instruction-item--replacement{border-left-color:#c95750}.instruction-item--rewrite{border-left-color:#d4a31c}.instruction-item--expression{border-left-color:#4d9870}.instruction-item--proofreading{border-left-color:#4b83bd}.instruction-item--selected{border-color:var(--accent);box-shadow:0 0 0 2px #2761582e}.instruction-item__header{display:flex;flex-wrap:wrap;gap:.35rem .55rem;align-items:center}.instruction-item__drag-handle{color:#928b80;font-size:1.2rem;cursor:grab}.instruction-item__include{display:inline-flex;gap:.25rem;align-items:center;font-size:.77rem}.instruction-item__include input{min-height:auto}.instruction-item__order,.instruction-item__type,.instruction-item__scope,.instruction-item__priority{padding:.16rem .4rem;font-size:.72rem;background:#f3f0ea;border-radius:4px}.instruction-item__scope{color:#315c52;background:#e4f0ec}.instruction-item--target-allOccurrences .instruction-item__excerpt{font-family:ui-monospace,Cascadia Mono,monospace}.instruction-item--target-document .instruction-item__excerpt{padding-left:.6rem;border-left:3px solid #d4a31c}.priority--required{color:#8d2925;background:#f8e1df}.priority--preferred{color:#79530c;background:#f7edcf}.priority--suggestion{color:#325d52;background:#dfede8}.instruction-item__excerpt{margin:.55rem 0 .3rem;overflow:hidden;font-family:serif;line-height:1.55;text-overflow:ellipsis}.instruction-item__meta{display:flex;flex-wrap:wrap;gap:.3rem .8rem;color:var(--muted);font-size:.72rem}.instruction-item__order-controls,.instruction-item__actions{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;margin-top:.55rem}.instruction-item__order-controls button,.instruction-item__actions button{min-height:29px;padding:.25rem .5rem;font-size:.72rem}.instruction-item__order-controls label{display:inline-flex;gap:.3rem;align-items:center;color:var(--muted);font-size:.72rem}.instruction-item__order-controls input{width:4.3rem;min-height:29px}.instruction-item__actions{padding-top:.5rem;border-top:1px solid #ece7de}button.danger,.button-danger-quiet{color:var(--danger)}.instruction-panel__output-actions p{margin-bottom:.55rem;color:var(--muted);font-size:.78rem;line-height:1.5}.instruction-panel__output-warning{margin-top:.55rem!important;color:var(--warning)!important}.instruction-form{display:grid;gap:.8rem;padding:.85rem;background:#fffefa;border:2px solid var(--accent);border-radius:10px;box-shadow:0 8px 24px #1f4e461f}.instruction-form header h3{margin-bottom:.2rem;font:700 1.08rem serif}.instruction-form header p{margin-bottom:0;color:var(--muted);font-size:.76rem}.instruction-form__target,.instruction-form__global-target,.instruction-form__document-target,.instruction-form__fixed-type,.instruction-form__non-destructive-note{padding:.6rem;background:var(--paper-deep);border:1px solid var(--line);border-radius:7px}.instruction-form__global-target{display:grid;gap:.45rem}.instruction-form__scope-summary{display:flex;flex-wrap:wrap;gap:.35rem .8rem;color:#315c52;font-size:.78rem}.instruction-form__global-target>p,.instruction-form__document-target p,.instruction-form__non-destructive-note{margin-bottom:0}.instruction-form__document-target,.instruction-form__fixed-type{display:grid;gap:.2rem}.instruction-form__document-target p,.instruction-form__fixed-type span:last-child{color:var(--muted);font-size:.72rem}.instruction-form__non-destructive-note{color:#315c52;font-size:.75rem;line-height:1.5;background:#edf6f2;border-color:#bfd8cf}.instruction-form__target blockquote{max-height:9rem;padding-left:.7rem;margin:.35rem 0;overflow:auto;white-space:pre-wrap;border-left:3px solid var(--accent)}.instruction-form__target p{margin-bottom:0;color:var(--muted);font-size:.72rem}.instruction-form textarea,.instruction-form select{width:100%}.field-help{color:var(--muted);font-size:.72rem;font-weight:400}.input-error,.field-error,.counter-error{color:#9d2f2a!important}.instruction-form__warnings{padding:.6rem;color:#6b4b0a;background:#fff4d6;border:1px solid #e0bd69;border-radius:7px}.instruction-form__warnings h4,.instruction-form__warnings p{margin-bottom:.3rem}.instruction-form__warnings ul{padding-left:1.2rem;margin:.3rem 0;font-size:.78rem;line-height:1.55}.instruction-form__actions{display:flex;gap:.5rem;justify-content:flex-end}.instruction-form__actions button:first-child,.button-primary{color:#fff;background:var(--accent);border-color:var(--accent)}.instruction-form__actions button:first-child:hover:not(:disabled),.button-primary:hover:not(:disabled){color:#fff;background:var(--accent-dark)}@media(max-width:560px){.instruction-panel__create-actions{grid-template-columns:1fr}}.modal-backdrop{position:fixed;z-index:1000;inset:0;display:grid;place-items:center;padding:1.5rem;background:#1f1c178f;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal{width:min(620px,92vw);max-height:90vh;overflow:hidden;background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:0 28px 90px #00000059}.modal-heading{display:flex;gap:1rem;align-items:start;justify-content:space-between;padding:1rem 1.1rem .8rem;border-bottom:1px solid var(--line)}.modal-heading h2{margin:0;font:700 1.35rem serif}.modal-heading p{margin:.25rem 0 0;color:var(--muted);font-size:.82rem;line-height:1.5}.close-button{width:34px;min-width:34px;padding:0;font-size:1.4rem;border:0}.modal-body{max-height:calc(90vh - 150px);padding:1rem 1.1rem;overflow:auto}.modal-footer{display:flex;gap:.55rem;align-items:center;justify-content:flex-end;min-height:58px;padding:.7rem 1.1rem;border-top:1px solid var(--line)}.dialog-note,.muted,.empty-message{color:var(--muted)}.restore-summary{display:grid;gap:.65rem;margin:0}.restore-summary>div{display:grid;grid-template-columns:9rem minmax(0,1fr);gap:.8rem;align-items:baseline;padding:.65rem .75rem;background:var(--paper-deep);border:1px solid var(--line);border-radius:8px}.restore-summary dt{color:var(--muted);font-size:.78rem;font-weight:700}.restore-summary dd{min-width:0;margin:0;overflow-wrap:anywhere;font-weight:650}.restore-summary+.dialog-note{margin:.9rem 0 0}.output-modal{width:min(1000px,94vw)}.output-preview-text{height:min(62vh,680px);resize:none;font:.88rem/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre}.copy-result{flex:1;color:var(--muted);font-size:.76rem}.copy-result-success{color:#26715f}.copy-result-failure{color:var(--danger)}.paste-modal{width:min(900px,94vw)}.paste-form{display:grid;gap:.8rem}.form-row-split{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:.7rem}.inline-footer{padding-inline:0;border:0}.inline-footer>:first-child{margin-right:auto}.settings-grid{display:grid;gap:1rem}.settings-grid fieldset{display:grid;gap:.8rem;padding:.85rem;border:1px solid var(--line);border-radius:8px}.settings-grid legend{padding-inline:.35rem;font-weight:700}.settings-grid input[type=range]{width:100%;padding:0}.settings-grid .checkbox-label{display:flex;gap:.5rem;align-items:center;font-weight:500}.settings-grid input[type=checkbox]{min-height:auto}.notice-center{position:fixed;z-index:1200;right:1rem;bottom:1rem;display:grid;gap:.5rem;width:min(390px,calc(100vw - 2rem))}.notice{display:flex;gap:.8rem;align-items:start;justify-content:space-between;padding:.75rem .8rem;background:#fff;border:1px solid var(--line);border-left:5px solid #777;border-radius:8px;box-shadow:var(--shadow)}.notice p{margin:.15rem 0 0;color:var(--muted);font-size:.78rem;line-height:1.45}.notice button{min-width:28px;min-height:28px;padding:0;border:0}.notice-success{border-left-color:#35896e}.notice-warning{border-left-color:#ca8a20}.notice-error{border-left-color:#bd4b44}.notice-info{border-left-color:#477fad}.recovery-banner{position:fixed;z-index:40;right:1rem;bottom:1rem;display:flex;gap:.7rem;align-items:center;max-width:680px;padding:.8rem .9rem;background:#fff8e4;border:1px solid #d4ad53;border-radius:9px;box-shadow:var(--shadow)}.pwa-update-banner{position:fixed;z-index:45;right:1rem;bottom:1rem;display:flex;gap:.7rem;align-items:center;max-width:680px;padding:.8rem .9rem;background:#e9f4ff;border:1px solid #6d9ec8;border-radius:9px;box-shadow:var(--shadow)}.pwa-update-banner p{margin:0;color:#254b6b;font-size:.82rem}.recovery-banner p{margin:0;color:#604b1d;font-size:.82rem}@media(max-width:1280px){.toolbar{grid-template-columns:auto 1fr}.toolbar-project{grid-column:1 / -1;grid-template-columns:1fr auto;align-items:center}.instruction-filters__controls{grid-template-columns:1fr}}@media(max-width:900px){body{min-width:0}.app-shell{height:100dvh}.toolbar{grid-template-columns:auto minmax(0,1fr);gap:.45rem .65rem;min-height:0;padding:max(.5rem,env(safe-area-inset-top)) max(.55rem,env(safe-area-inset-right)) .45rem max(.55rem,env(safe-area-inset-left))}.brand{min-width:0}.brand-mark{width:36px;height:36px}.brand-copy strong{font-size:.9rem;white-space:nowrap}.brand-copy small{display:none}.toolbar-project{min-width:0;grid-column:auto;grid-template-columns:minmax(0,1fr);gap:.15rem}.toolbar-project input{min-width:0}.save-state{justify-content:flex-start}.toolbar-actions{grid-column:1 / -1;flex-wrap:nowrap;max-width:100%;padding:.1rem 0 .2rem;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;-webkit-overflow-scrolling:touch}.toolbar-actions>button,.toolbar-button-group>button{min-height:42px}.workspace{flex-direction:column;overflow:hidden}.workspace-pane,.workspace-pane-left,.workspace-pane-right{display:none;width:100%;min-height:0;flex:1 1 auto;padding:.45rem max(.45rem,env(safe-area-inset-right)) .45rem max(.45rem,env(safe-area-inset-left))}.workspace--mobile-manuscript .workspace-pane-left{display:flex}.workspace--mobile-instructions .workspace-pane-right{display:block;padding-bottom:1rem}.pane-divider{display:none}.mobile-workspace-nav{z-index:35;display:grid;flex:0 0 auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;order:10;padding:.4rem max(.55rem,env(safe-area-inset-right)) max(.4rem,env(safe-area-inset-bottom)) max(.55rem,env(safe-area-inset-left));background:#fffdf7fa;border-top:1px solid var(--line);box-shadow:0 -4px 16px #3a30201a}.mobile-workspace-nav button{position:relative;display:grid;min-height:50px;grid-template-columns:auto auto auto;gap:.35rem;place-content:center;color:var(--muted);background:transparent;border-color:transparent}.mobile-workspace-nav button[aria-current=page]{color:#fff;background:var(--accent);border-color:var(--accent)}.mobile-workspace-nav button>span{display:grid;width:1.7rem;height:1.7rem;place-items:center;font-family:serif;background:#ffffff2e;border-radius:50%}.mobile-workspace-nav small{min-width:1.35rem;padding:.05rem .3rem;color:inherit;background:#ffffff2e;border-radius:999px}.welcome-state{padding:1rem max(.7rem,env(safe-area-inset-right)) max(1rem,env(safe-area-inset-bottom)) max(.7rem,env(safe-area-inset-left));overflow:auto}.welcome-card{width:100%;padding:1.35rem 1rem;border-radius:14px}.welcome-icon{width:56px;height:56px;margin-bottom:.7rem}.welcome-card h1{font-size:1.45rem}.welcome-actions{display:grid;grid-template-columns:1fr}.instruction-panel{min-height:auto;padding:.65rem;border-radius:10px}.desktop-only-setting{display:none!important}.instruction-panel--editing>:not(.instruction-panel__header):not(.instruction-form){display:none}.instruction-panel--editing .instruction-form{order:2}.instruction-form__actions{position:sticky;z-index:3;bottom:-.65rem;display:grid;grid-template-columns:minmax(0,1fr) auto;padding:.65rem 0 max(.65rem,env(safe-area-inset-bottom));background:#fffefa;border-top:1px solid var(--line)}.instruction-form__actions button:first-child{min-height:48px}.modal-backdrop{align-items:end;padding:max(.4rem,env(safe-area-inset-top)) max(.4rem,env(safe-area-inset-right)) max(.4rem,env(safe-area-inset-bottom)) max(.4rem,env(safe-area-inset-left))}.modal{display:flex;width:100%;max-height:calc(100dvh - max(.8rem,env(safe-area-inset-top)));flex-direction:column;border-radius:14px 14px 8px 8px}.modal-heading{flex:0 0 auto;padding:.8rem .85rem .65rem}.modal-body{min-height:0;max-height:none;flex:1 1 auto;padding:.8rem .85rem}.modal-footer{flex:0 0 auto;flex-wrap:wrap;padding:.65rem .85rem max(.65rem,env(safe-area-inset-bottom))}.modal-footer>button{flex:1 1 8rem}.output-modal .copy-result{flex-basis:100%}.output-modal .button-primary{order:-1;flex-basis:100%}.output-preview-text{height:min(52dvh,34rem);font-size:.78rem;white-space:pre-wrap;overflow-wrap:anywhere}.form-row-split,.restore-summary>div{grid-template-columns:1fr}.paste-form textarea{height:min(38dvh,18rem)}.notice-center{right:max(.55rem,env(safe-area-inset-right));bottom:calc(4.4rem + env(safe-area-inset-bottom));width:auto;left:max(.55rem,env(safe-area-inset-left))}.recovery-banner{right:max(.55rem,env(safe-area-inset-right));bottom:max(.55rem,env(safe-area-inset-bottom));left:max(.55rem,env(safe-area-inset-left));flex-wrap:wrap}.pwa-update-banner{right:max(.55rem,env(safe-area-inset-right));bottom:calc(4.4rem + env(safe-area-inset-bottom));left:max(.55rem,env(safe-area-inset-left));flex-wrap:wrap}.pwa-update-banner p,.recovery-banner p{flex-basis:100%}input,select,textarea{font-size:16px}}@media(pointer:coarse){button,.instruction-item__order-controls button,.instruction-item__actions button,.instruction-panel__bulk-actions button,.close-button{min-height:44px}.close-button{width:44px;min-width:44px}.notice button{min-width:44px}.instruction-item__include{min-height:44px;padding-inline:.3rem}.instruction-item__include input,.settings-grid input[type=checkbox]{width:22px;height:22px}.instruction-item__drag-handle,kbd{display:none}}@media(max-width:900px)and (orientation:landscape)and (max-height:500px){.toolbar-project{display:none}.toolbar{grid-template-columns:auto minmax(0,1fr);padding-top:max(.25rem,env(safe-area-inset-top))}.toolbar-actions{grid-column:2;grid-row:1}.mobile-workspace-nav button{min-height:44px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
