:root{--brand:#2f5bea;--brand-hover:#2549c4;--brand-contrast:#fff;--brand-soft:#e7edff;--bg:#f3f4f6;--surface:#fff;--surface-2:#eceef2;--surface-3:#e1e4ea;--overlay:#11141c73;--border:#dde1e7;--border-strong:#7d8594;--text:#1a1d23;--text-dim:#5a6270;--success:#1b7f4b;--warning:#946000;--danger:#c0362c;--danger-soft:#fdecea;--focus:#2f5bea;--page:#fff;--page-ink:#4a5568;--page-mark:#2f5bea;--page-mark-soft:#d6e0ff;--page-shadow:0 1px 2px #0000001a, 0 2px 8px #00000014;--shadow-1:0 1px 2px #0000000f;--shadow-2:0 8px 24px #00000024;--shadow-3:0 24px 60px #0000003d;--font:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--text-xs:12px;--text-sm:13px;--text-md:14px;--text-lg:16px;--text-xl:20px;--text-2xl:30px;--weight-regular:400;--weight-medium:500;--weight-bold:600;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--space-7:48px;--radius-sm:6px;--radius-md:10px;--radius-lg:14px;--radius-full:999px;--control:36px;--control-lg:44px;--appbar-height:52px;--tabs-height:44px;--toolbar-height:52px;--panel-width:288px;--fast:.12s;--slow:.2s;--z-viewer:5;--z-modal:50;--z-toast:60;--z-menu:70;--z-tooltip:80;--z-busy:40}:root.theme-dark{--brand:#8aa6ff;--brand-hover:#a3b9ff;--brand-contrast:#0c1530;--brand-soft:#1f2b52;--bg:#121418;--surface:#1b1e24;--surface-2:#252931;--surface-3:#30353f;--overlay:#0009;--border:#2e333d;--border-strong:#6b7383;--text:#eceef1;--text-dim:#9ea6b3;--success:#4cc38a;--warning:#e2b341;--danger:#f2796e;--danger-soft:#3a1f1d;--focus:#8aa6ff;--page-shadow:0 1px 2px #00000080, 0 2px 10px #0006;--shadow-2:0 8px 24px #00000080;--shadow-3:0 24px 60px #0009}*,:before,:after{box-sizing:border-box}html,body{height:100%}body{background:var(--bg);color:var(--text);font:var(--weight-regular) var(--text-md) / 1.45 var(--font);-webkit-font-smoothing:antialiased;margin:0;overflow:hidden}#app{flex-direction:column;height:100dvh;display:flex}[hidden]{display:none!important}.app-next{z-index:-1;visibility:hidden;pointer-events:none;flex-direction:column;height:100dvh;display:flex;position:fixed;inset:0}h1,h2,h3,p,ul{margin:0}ul{padding:0;list-style:none}button,input{font:inherit;color:inherit}a,.link{color:var(--brand);text-underline-offset:2px;text-decoration:underline}.link{cursor:pointer;background:0 0;border:0;padding:0}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.icon{fill:none;stroke:currentColor;stroke-width:1.75px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:18px;height:18px}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.clamp{overflow-wrap:anywhere;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.clamp-1{-webkit-line-clamp:1}.clamp-2{-webkit-line-clamp:2}.btn{justify-content:center;align-items:center;gap:var(--space-2);height:var(--control);padding:0 var(--space-3);border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font-size:var(--text-md);font-weight:var(--weight-medium);white-space:nowrap;cursor:pointer;transition:background var(--fast), border-color var(--fast), color var(--fast);display:inline-flex}.btn:hover:not(:disabled){background:var(--surface-2)}.btn:active:not(:disabled){background:var(--surface-3)}.btn:disabled{opacity:.4;cursor:not-allowed}.btn[aria-pressed=true],.btn[aria-expanded=true]{background:var(--surface-3)}.btn[aria-pressed=true]{color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}.btn-icon{width:var(--control);flex:none;padding:0}.btn-large{height:var(--control-lg);padding:0 var(--space-5);font-size:var(--text-lg)}.btn-ghost{background:0 0;border-color:#0000}.btn-primary{border-color:var(--brand);background:var(--brand);color:var(--brand-contrast)}.btn-primary:hover:not(:disabled),.btn-primary[aria-expanded=true]{border-color:var(--brand-hover);background:var(--brand-hover)}.btn-primary:active:not(:disabled){background:var(--brand-hover)}.btn-danger{border-color:var(--danger);background:var(--danger);color:var(--surface)}.btn-danger:hover:not(:disabled),.btn-danger:active:not(:disabled){background:var(--danger);filter:brightness(.92)}.btn.is-danger{color:var(--danger)}.split{flex:none;display:inline-flex}.split-main{border-top-right-radius:0;border-bottom-right-radius:0}.split-more{border-left-color:var(--brand-contrast);border-top-left-radius:0;border-bottom-left-radius:0}.segmented{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);flex:none;gap:2px;padding:2px;display:inline-flex}.segment{border-radius:var(--radius-sm);width:32px;height:28px;color:var(--text-dim);cursor:pointer;background:0 0;border:0;place-items:center;display:grid}.segment:hover{color:var(--text)}.segment[aria-pressed=true]{background:var(--brand-soft);color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}.switch{border-radius:var(--radius-full);background:var(--border-strong);cursor:pointer;width:46px;height:26px;transition:background var(--fast);border:0;flex:none;padding:3px}.switch-thumb{border-radius:var(--radius-full);background:var(--surface);width:20px;height:20px;box-shadow:var(--shadow-1);transition:transform var(--fast);display:block}.switch[aria-checked=true]{background:var(--brand)}.switch[aria-checked=true] .switch-thumb{background:var(--brand-contrast);transform:translate(20px)}.field{gap:var(--space-1);flex-direction:column;display:flex}.field-label{font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--text-dim)}.field-input{height:var(--control);padding:0 var(--space-3);border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface)}.field-input::placeholder{color:var(--text-dim)}.field-textarea{height:auto;min-height:calc(var(--control) * 3);padding:var(--space-2) var(--space-3);font:inherit;resize:vertical;line-height:1.45}.field-error{min-height:1.45em;color:var(--danger);font-size:var(--text-sm)}.thumb{aspect-ratio:3/4;position:relative}.thumb:before{content:"";background:var(--surface-3);border-radius:2px;position:absolute;inset:4% 12%}.thumb.is-loaded:before,.thumb.is-empty:before{display:none}.thumb-img{background:var(--page);max-width:100%;max-height:100%;box-shadow:var(--page-shadow);opacity:0;transition:opacity var(--slow);-webkit-user-drag:none;margin:auto;position:absolute;inset:0}.thumb.is-loaded .thumb-img{opacity:1}.thumb-overlay{pointer-events:none;max-width:100%;max-height:100%;margin:auto;position:absolute;inset:0}.thumb.is-empty{color:var(--text-dim);place-items:center;display:grid}.modal-backdrop{z-index:var(--z-modal);padding:var(--space-4);background:var(--overlay);animation:fade-in var(--fast);grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;display:grid;position:fixed;inset:0}.modal{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);width:100%;max-height:100%;box-shadow:var(--shadow-3);animation:rise-in var(--slow);flex-direction:column;display:flex}.modal-sm{max-width:440px}.modal-md{max-width:560px;height:min(540px,100%)}.modal-lg{max-width:760px;height:min(660px,100%)}.modal-header{justify-content:space-between;align-items:center;gap:var(--space-3);padding:var(--space-3) var(--space-3) var(--space-3) var(--space-5);border-bottom:1px solid var(--border);display:flex}.modal-title{font-size:var(--text-lg);font-weight:var(--weight-bold)}.modal-body{min-height:0;padding:var(--space-5);scrollbar-gutter:stable;flex:1;overflow-y:auto}.modal-text{color:var(--text-dim);overflow-wrap:anywhere}.modal-form{gap:var(--space-4);flex-direction:column;display:flex}.modal-actions{justify-content:flex-end;gap:var(--space-2);padding:var(--space-3) var(--space-5);border-top:1px solid var(--border);flex-wrap:wrap;display:flex}.prose{gap:var(--space-5);flex-direction:column;display:flex}.prose-section{gap:var(--space-2);flex-direction:column;display:flex}.dialog-switch{justify-content:space-between;align-items:center;gap:var(--space-3);font-weight:var(--weight-bold);display:flex}.licence-key-row{gap:var(--space-2);align-items:center;display:flex}.licence-key-row .licence-key{flex:1;min-width:0;font-family:ui-monospace,Menlo,Consolas,monospace}.licence-key{font-family:ui-monospace,Menlo,Consolas,monospace}.device-section{gap:var(--space-2);flex-direction:column;display:flex}.device-count{color:var(--text-dim)}.device-list{border:1px solid var(--border);border-radius:var(--radius-md);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.device-row{align-items:center;gap:var(--space-1) var(--space-3);padding:var(--space-2) var(--space-3);flex-wrap:wrap;display:flex}.device-row+.device-row{border-top:1px solid var(--border)}.device-text{flex-direction:column;flex:10rem;min-width:0;display:flex}.device-name{font-weight:var(--weight-bold);overflow-wrap:anywhere}.device-detail{color:var(--text-dim);font-size:var(--text-sm)}.device-actions{gap:var(--space-2);margin-inline-start:auto;display:flex}.prose h3{font-size:var(--text-md);font-weight:var(--weight-bold)}.prose p,.prose li{color:var(--text-dim)}.prose-list{gap:var(--space-2);padding-left:var(--space-5);flex-direction:column;list-style:outside;display:flex}.menu{z-index:var(--z-menu);min-width:230px;max-width:calc(100vw - var(--space-4));padding:var(--space-1);border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-2);outline:none;position:fixed;top:0;left:0}.menu-item{align-items:center;gap:var(--space-3);width:100%;height:var(--control);padding:0 var(--space-3);border-radius:var(--radius-sm);text-align:left;cursor:pointer;background:0 0;border:0;display:flex}.menu-item:hover:not(:disabled,[aria-disabled=true]),.menu-item:focus-visible{background:var(--surface-2);outline:none}.menu-item:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}.btn:has(>.tool-pro-badge){position:relative}.appbar-plan.is-pro{color:var(--brand)}.tool-pro-badge{border-radius:var(--radius-full);background:var(--brand);color:var(--brand-contrast);font-size:9px;font-weight:var(--weight-bold);pointer-events:none;padding:0 3px;line-height:1.4;position:absolute;bottom:-2px;right:-2px}.menu-badge,.pro-badge{padding:0 var(--space-2);border-radius:var(--radius-full);background:var(--brand-soft);color:var(--brand);font-size:var(--text-xs);font-weight:var(--weight-bold);flex:none}.menu-item:disabled,.menu-item[aria-disabled=true]{opacity:.4;cursor:not-allowed}.menu-item.is-danger{color:var(--danger)}.menu-label{white-space:nowrap;flex:1}.menu-hint{color:var(--text-dim);font-size:var(--text-xs)}.menu-separator{height:1px;margin:var(--space-1) 0;background:var(--border)}.toast-root{left:var(--space-4);bottom:var(--space-4);z-index:var(--z-toast);gap:var(--space-2);width:min(400px, calc(100vw - var(--space-6)));pointer-events:none;flex-direction:column;display:flex;position:fixed}.toast{align-items:center;gap:var(--space-3);padding:var(--space-2) var(--space-2) var(--space-2) var(--space-4);border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-2);pointer-events:auto;animation:rise-in var(--slow);display:flex}.toast-text{overflow-wrap:anywhere;flex:1}.toast-link{color:var(--brand);white-space:nowrap;flex:none;font-weight:600}.toast-actions{align-items:flex-start;gap:var(--space-1);flex-direction:column;flex:none;display:flex}.toast-success>.icon{color:var(--success)}.toast-error>.icon{color:var(--danger)}.toast-info>.icon{color:var(--brand)}.tooltip{z-index:var(--z-tooltip);max-width:280px;padding:var(--space-1) var(--space-2);border-radius:var(--radius-sm);background:var(--text);color:var(--bg);font-size:var(--text-xs);font-weight:var(--weight-medium);opacity:0;pointer-events:none;transition:opacity var(--fast);position:fixed;top:0;left:0}.tooltip.is-visible{opacity:1}.busy-cover{z-index:var(--z-busy);padding:var(--space-4);background:var(--overlay);place-items:center;display:grid;position:fixed;inset:0}.busy-card{align-items:center;gap:var(--space-3);width:min(380px,100%);min-height:232px;padding:var(--space-5);border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-3);text-align:center;flex-direction:column;display:flex}.busy-text{height:2.9em;font-weight:var(--weight-medium)}.busy-note{color:var(--text-dim);font-size:var(--text-sm);flex:1}.spinner{border:3px solid var(--surface-3);border-top-color:var(--brand);border-radius:var(--radius-full);flex:none;width:32px;height:32px;animation:.8s linear infinite spin}.print-frame{border:0;width:0;height:0;position:fixed;bottom:0;right:0}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fade-in{0%{opacity:0}}@keyframes rise-in{0%{opacity:0;transform:translateY(6px)}}.tool-guide{align-items:flex-start;gap:var(--space-3);padding:var(--space-3) var(--space-4);border-bottom:1px solid var(--border);background:var(--brand-soft);flex:none;display:flex}.tool-guide-text{gap:var(--space-1);flex-direction:column;flex:1;min-width:0;display:flex}.tool-guide-heading{align-items:center;gap:var(--space-2);font-size:var(--text-md);font-weight:var(--weight-bold);display:flex}.tool-guide-heading .icon{color:var(--brand)}.tool-guide-steps{gap:var(--space-1) var(--space-5);padding-left:var(--space-5);color:var(--text);font-size:var(--text-sm);flex-wrap:wrap;margin:0;list-style:decimal;display:flex}.tool-guide-steps li{max-width:60ch}:lang(ja) :is(h1,h2,h3){word-break:auto-phrase}.appbar{align-items:center;gap:var(--space-4);height:var(--appbar-height);padding:0 var(--space-4);border-bottom:1px solid var(--border);background:var(--surface);flex:none;display:flex}.brand{align-items:center;gap:var(--space-2);padding:var(--space-1);border-radius:var(--radius-sm);cursor:pointer;background:0 0;border:0;display:inline-flex}.brand-mark{flex:none;width:28px;height:28px;display:block}.brand-mark svg{width:100%;height:100%;display:block}.brand-name{font-size:var(--text-xl);white-space:nowrap;gap:.3em;line-height:1;display:inline-flex}.brand-strong{font-weight:700}.brand-light{font-weight:300}.promise{align-items:center;gap:var(--space-2);min-width:0;padding:var(--space-1) var(--space-3);border-radius:var(--radius-full);background:var(--surface-2);color:var(--text-dim);font-size:var(--text-sm);cursor:pointer;border:0;margin-right:auto;display:inline-flex}.promise:hover{color:var(--text)}.promise .icon{color:var(--success)}.promise-text{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.btn.appbar-theme{display:none}.main{flex:1;min-height:0;position:relative}.footer{align-items:center;gap:var(--space-2);padding:var(--space-5) var(--space-4);color:var(--text-dim);font-size:var(--text-sm);flex-direction:column;display:flex}.footer-links .footer-withdraw{box-shadow:0 0 0 1px var(--brand);border-radius:var(--radius-sm);padding:0 var(--space-2);font-weight:var(--weight-bold);text-decoration:none}.offline-use{align-items:flex-start;gap:var(--space-3);flex-direction:column;display:flex}.offline-use>*{margin:0}.offline-use .meter{align-self:stretch}.footer-links{justify-content:center;gap:var(--space-4);flex-wrap:wrap;display:flex}.footer-slim{justify-content:center;column-gap:var(--space-4);padding:var(--space-1) var(--space-4);border-top:1px solid var(--border);background:var(--surface);font-size:var(--text-xs);flex-flow:wrap;flex:none;row-gap:0}.footer-slim .footer-links{gap:var(--space-3)}.home{scrollbar-gutter:stable;flex-direction:column;height:100%;display:flex;overflow-y:auto}.home-inner{gap:var(--space-7);width:100%;max-width:1040px;padding:var(--space-7) var(--space-5) var(--space-5);flex-direction:column;flex:1 0 auto;margin:0 auto;display:flex}.hero{gap:var(--space-4);text-align:center;flex-direction:column;display:flex}.hero h1{font-size:clamp(24px, 4vw, var(--text-2xl));font-weight:var(--weight-bold);text-wrap:balance;line-height:1.2}.hero-sub{max-width:620px;color:var(--text-dim);font-size:var(--text-lg);text-wrap:balance;margin:0 auto}.hero-free{justify-content:center;align-items:center;gap:var(--space-2);padding:var(--space-1) var(--space-3);border-radius:var(--radius-full);background:var(--surface);color:var(--success);font-size:var(--text-sm);font-weight:var(--weight-medium);margin:0 auto;display:inline-flex}.privacy-check{gap:var(--space-2);padding:var(--space-4);border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-2);flex-direction:column;display:flex}.privacy-check-line{align-items:center;gap:var(--space-2);display:flex;color:var(--text)!important}.privacy-check-line .icon{color:var(--success)}.privacy-check-hint{font-size:var(--text-xs)}.dropzone{align-items:center;gap:var(--space-2);margin-top:var(--space-4);padding:var(--space-7) var(--space-5);border:2px dashed var(--border-strong);border-radius:var(--radius-lg);background:var(--surface);transition:border-color var(--fast), background var(--fast);flex-direction:column;display:flex}.dropzone.is-over{border-color:var(--brand);background:var(--brand-soft)}.dropzone-icon{border-radius:var(--radius-full);background:var(--brand-soft);width:56px;height:56px;color:var(--brand);place-items:center;display:grid}.dropzone-icon .icon{width:26px;height:26px}.dropzone-title{font-size:var(--text-xl);font-weight:var(--weight-bold)}.dropzone-hint{color:var(--text-dim)}.dropzone-actions{justify-content:center;gap:var(--space-3);margin-top:var(--space-4);flex-wrap:wrap;display:flex}.points{gap:var(--space-5);text-align:left;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));display:grid}.point{gap:var(--space-3);display:flex}.point-icon{border-radius:var(--radius-md);background:var(--surface-2);width:36px;height:36px;color:var(--brand);flex:none;place-items:center;display:grid}.point h2{font-size:var(--text-md);font-weight:var(--weight-bold)}.point p{color:var(--text-dim);font-size:var(--text-sm)}.library{gap:var(--space-6);flex-direction:column;display:flex}.keep{align-items:center;gap:var(--space-4);padding:var(--space-4) var(--space-5);border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);display:flex}.keep-text{flex:1;min-width:0}.keep-text h2,.keep h3{font-size:var(--text-md);font-weight:var(--weight-bold)}.keep-note,.keep-usage{color:var(--text-dim);font-size:var(--text-sm)}.keep-usage{min-height:1.45em}.shelf{gap:var(--space-3);flex-direction:column;display:flex}.shelf h2{font-size:var(--text-lg);font-weight:var(--weight-bold)}.cards{gap:var(--space-4);grid-template-columns:repeat(auto-fill,minmax(150px,1fr));display:grid}.card{position:relative}.card-open{gap:var(--space-2);width:100%;padding:var(--space-3);border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);text-align:left;cursor:pointer;transition:border-color var(--fast), box-shadow var(--fast);flex-direction:column;display:flex}.card-open:hover{border-color:var(--border-strong);box-shadow:var(--shadow-1)}.card-thumb{border-radius:var(--radius-sm);background:var(--surface-2);width:100%}.card-text{flex-direction:column;gap:2px;display:flex}.card-name{height:2.6em;font-size:var(--text-sm);font-weight:var(--weight-medium);line-height:1.3}.card-detail{color:var(--text-dim);font-size:var(--text-xs);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.card-more{top:var(--space-2);right:var(--space-2);background:var(--surface);border-color:var(--border);width:30px;height:30px;position:absolute}.workspace{flex-direction:column;height:100%;display:flex}.workspace-main{flex-direction:column;flex:1;min-height:0;display:flex}.tabs{align-items:flex-end;gap:var(--space-1);height:var(--tabs-height);padding:0 var(--space-2);border-bottom:1px solid var(--border);flex:none;display:flex}.tabs>.btn{align-self:center}.tabs-list{scrollbar-width:none;align-items:flex-end;gap:2px;min-width:0;height:100%;margin:0;padding:0;list-style:none;display:flex;overflow:auto hidden}.tab{width:220px;min-width:72px;min-height:36px;padding-right:var(--space-1);border-radius:var(--radius-md) var(--radius-md) 0 0;color:var(--text-dim);border:1px solid #0000;border-bottom:0;flex:0 220px;align-items:center;display:flex}.tab:hover{background:var(--surface-2)}.tab.is-active{border-color:var(--border);background:var(--surface);color:var(--text);min-height:37px;box-shadow:inset 0 2px 0 var(--brand);margin-bottom:-1px}.tab-main{align-items:center;gap:var(--space-2);min-width:0;height:100%;padding:0 var(--space-1) 0 var(--space-3);color:inherit;font-weight:var(--weight-medium);text-align:left;cursor:pointer;background:0 0;border:0;flex:1;display:flex}.tab-name{flex:1;min-width:0}.tab-close{width:26px;height:26px}.toolbar{align-items:center;gap:var(--space-2) var(--space-3);min-height:var(--toolbar-height);padding:var(--space-2) var(--space-3);border-bottom:1px solid var(--border);background:var(--surface);flex-wrap:wrap;flex:none;display:flex}.tool-group{align-items:center;gap:var(--space-1);display:flex}.tool-group+.tool-group{padding-left:var(--space-3);border-left:1px solid var(--border)}.tool-spacer{flex:1}.workspace-body{flex:1;min-height:0;display:flex;position:relative}.lib-panel{width:var(--panel-width);border-right:1px solid var(--border);background:var(--surface);flex-direction:column;flex:none;display:flex}.is-panel-closed>.lib-panel{display:none}.lib-panel.is-over{box-shadow:inset 0 0 0 2px var(--brand)}.lib-header{padding:var(--space-2) var(--space-2) var(--space-2) var(--space-4);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;display:flex}.lib-header h2{font-size:var(--text-md);font-weight:var(--weight-bold)}.lib-scroll{scrollbar-gutter:stable;min-height:0;padding:var(--space-2);flex:1;overflow-y:auto}.lib-empty{padding:var(--space-4) var(--space-3);color:var(--text-dim);font-size:var(--text-sm)}.lib-list{gap:var(--space-1);flex-direction:column;display:flex}.lib-item{border-radius:var(--radius-md)}.lib-item.is-expanded{background:var(--surface-2)}.lib-head{align-items:center;gap:var(--space-1);padding:var(--space-1);display:flex}.lib-row{align-items:center;gap:var(--space-2);cursor:grab;flex:1;min-width:0;display:flex}.lib-thumb{flex:none;width:36px}.lib-text{flex-direction:column;min-width:0;display:flex}.lib-name{font-size:var(--text-sm);font-weight:var(--weight-medium);line-height:1.3}.lib-detail{color:var(--text-dim);font-size:var(--text-xs)}.lib-actions{flex:none;display:flex}.lib-head .btn-icon{width:28px;height:28px}.lib-chevron .icon{transition:transform var(--fast)}.lib-chevron[aria-expanded=true] .icon{transform:rotate(90deg)}.lib-pages{gap:var(--space-2);padding:var(--space-2);grid-template-columns:repeat(auto-fill,minmax(54px,1fr));display:none}.is-expanded>.lib-pages{display:grid}.lib-page{padding:var(--space-1);border-radius:var(--radius-sm);cursor:grab;background:0 0;border:0;flex-direction:column;gap:2px;display:flex}.lib-page:hover{background:var(--surface-3)}.lib-page-number{color:var(--text-dim);font-size:var(--text-xs);text-align:center}.canvas{flex:1;min-width:0;position:relative}.grid-scroller{scrollbar-gutter:stable;scroll-padding-bottom:96px;position:absolute;inset:0;overflow-y:auto}.grid{--cell:170px;grid-template-columns:repeat(auto-fill, minmax(min(var(--cell), 45%), 1fr));gap:var(--space-4);min-height:100%;padding:var(--space-5) var(--space-5) 104px;align-content:start;display:grid}.page{gap:var(--space-2);padding:var(--space-2);border-radius:var(--radius-md);cursor:pointer;-webkit-user-select:none;user-select:none;flex-direction:column;display:flex}.page:hover{background:var(--surface-2)}.page.is-selected{background:var(--brand-soft);box-shadow:0 0 0 2px var(--brand)}.page.is-dragging{opacity:.35}.page{-webkit-touch-callout:none}.page-button{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);width:28px;height:28px;color:var(--text);box-shadow:var(--shadow-1);cursor:pointer;opacity:0;transition:opacity var(--fast), background var(--fast);place-items:center;padding:0;display:grid;position:absolute}.page-button:hover{background:var(--surface-2)}.page-button .icon{width:16px;height:16px}.page:hover .page-button,.page:focus-visible .page-button,.page:focus-within .page-button,.page.is-selected .page-check{opacity:1}.page-check{top:var(--space-1);left:var(--space-1);color:#0000}.page-check .icon{stroke-width:2.5px}.page-check[aria-checked=true]{border-color:var(--brand);background:var(--brand);color:var(--brand-contrast)}.page-more{top:var(--space-1);right:var(--space-1)}.page-open{right:var(--space-1);bottom:var(--space-1)}.page-caption{align-items:baseline;gap:var(--space-2);min-width:0;font-size:var(--text-xs);display:flex}.page-number{min-width:1.5em;font-weight:var(--weight-bold);font-variant-numeric:tabular-nums;flex:none}.page-name{color:var(--text-dim)}.drop-marker{border-radius:var(--radius-full);background:var(--brand);opacity:0;pointer-events:none;width:4px;margin-left:-2px;position:absolute;top:0;left:0}.drop-marker.is-visible{opacity:1}.grid-empty{justify-content:center;align-items:center;gap:var(--space-2);min-height:100%;padding:var(--space-6);text-align:center;flex-direction:column;display:flex}.grid-empty .btn{margin-top:var(--space-3)}.selection-bar{left:0;right:0;bottom:var(--space-5);justify-content:center;align-items:center;gap:var(--space-1);width:-moz-fit-content;width:fit-content;max-width:calc(100% - var(--space-4));padding:var(--space-2);border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-2);opacity:0;pointer-events:none;transition:opacity var(--fast), transform var(--fast);flex-wrap:wrap;margin:0 auto;display:flex;position:absolute;transform:translateY(8px)}.selection-bar.is-visible{opacity:1;pointer-events:auto;transform:none}.selection-count{padding:0 var(--space-3);font-weight:var(--weight-bold);white-space:nowrap;font-variant-numeric:tabular-nums}.selection-divider{background:var(--border);width:1px;height:20px}.viewer{z-index:var(--z-viewer);background:var(--bg);flex-direction:column;display:flex;position:absolute;inset:0;overflow:hidden}.viewer-bar{align-items:center;gap:var(--space-2) var(--space-3);padding:var(--space-2) var(--space-3);border-bottom:1px solid var(--border);background:var(--surface);flex-wrap:wrap;flex:none;display:flex}.viewer-position{text-align:center;font-variant-numeric:tabular-nums;min-width:116px}.viewer-zoom{text-align:center;font-variant-numeric:tabular-nums;min-width:48px}.viewer-stage{min-height:0;padding:var(--space-4);flex:1;display:flex;overflow:auto}.viewer-page{background:var(--page);box-shadow:var(--page-shadow);flex:none;margin:auto}.viewer-canvas{display:block}.form-grid{gap:var(--space-2) var(--space-4);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.format-list{gap:var(--space-2);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.format-card{align-items:center;gap:var(--space-3);padding:var(--space-3);border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);text-align:left;cursor:pointer;transition:border-color var(--fast), background var(--fast);display:flex}.format-card:hover{border-color:var(--brand);background:var(--brand-soft)}.format-text{flex-direction:column;flex:1;min-width:0;display:flex}.format-name{font-weight:var(--weight-bold)}.format-detail{color:var(--text-dim);font-size:var(--text-xs)}.format-extension{color:var(--text-dim);font-size:var(--text-xs);font-variant-numeric:tabular-nums}.slide-choices{grid-template-columns:minmax(0,1fr)}.slide-sketch{flex:none;width:96px;height:66px}.sketch-slide{fill:var(--page);stroke:var(--border-strong)}.sketch-line{fill:var(--page-ink);opacity:.45}.sketch-copy{fill:var(--page-mark-soft);stroke:var(--page-mark)}.sketch-copy-hill{fill:var(--page-mark);opacity:.45}.sketch-gap{fill:none;stroke:var(--page-ink);stroke-dasharray:2 2}.sketch-picture{fill:var(--page-mark)}.sketch-hill{fill:var(--page);opacity:.8}.sketch-arrow{fill:none;stroke:var(--page-ink);stroke-width:1.2px;stroke-linecap:round;stroke-linejoin:round}.signature{gap:var(--space-4);flex-direction:column;display:flex}.signature-section{gap:var(--space-2);flex-direction:column;display:flex}.signature-section h3{font-size:var(--text-sm);font-weight:var(--weight-bold)}.signature-frame{border:1px dashed var(--border-strong);border-radius:var(--radius-md);background:var(--page);position:relative}.signature-pad{aspect-ratio:600/220;touch-action:none;cursor:crosshair;width:100%;display:block}.signature-hint{inset:auto 0 var(--space-3);color:#5a6270;font-size:var(--text-sm);text-align:center;pointer-events:none;position:absolute}.signature-panels{display:grid}.signature-panels>*{grid-area:1/1}.signature-panel{gap:var(--space-3);flex-direction:column;min-width:0;display:flex}.signature-panel.is-hidden{visibility:hidden}.signature-hands{gap:var(--space-2);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.signature-hand{align-items:flex-start;gap:var(--space-1);min-width:0;padding:var(--space-2) var(--space-3);border:1px solid var(--border);border-radius:var(--radius-md);background:var(--page);color:#6b7280;cursor:pointer;flex-direction:column;display:flex}.signature-hand:hover{border-color:var(--brand)}.signature-hand[aria-pressed=true]{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}.signature-hand-text{max-width:100%;color:var(--ink,#111);white-space:nowrap;text-overflow:ellipsis;font-size:30px;line-height:1.3;overflow:hidden}.signature-hand-label{font-size:var(--text-xs)}.signature-picture-frame{aspect-ratio:600/220;border:1px dashed var(--border-strong);border-radius:var(--radius-md);background:var(--page);place-items:center;display:grid;position:relative}.signature-picture{max-width:90%;max-height:80%}.signature-picture-frame:not(.has-picture) .signature-picture,.signature-picture-frame.has-picture .signature-hint{display:none}.signature-tools{justify-content:space-between;align-items:center;gap:var(--space-3);display:flex}.signature-saved{gap:var(--space-2);flex-wrap:wrap;display:flex}.signature-item{position:relative}.signature-use{width:150px;height:64px;padding:var(--space-2);border:1px solid var(--border);border-radius:var(--radius-md);background:var(--page);cursor:pointer;place-items:center;display:grid}.signature-use:hover{border-color:var(--brand)}.signature-use img{max-width:100%;max-height:100%}.signature-remove{background:var(--surface);width:24px;height:24px;position:absolute;top:-6px;right:-6px}.annotation-handle{fill:var(--surface);stroke-dasharray:none}.bin{gap:var(--space-4);flex-direction:column;display:flex}.bin-bar{justify-content:space-between;align-items:center;gap:var(--space-4);flex-wrap:wrap;display:flex}.bin-bar-actions{gap:var(--space-2);flex-wrap:wrap;display:flex}.bin-list{gap:var(--space-2);flex-direction:column;display:flex}.bin-entry{align-items:center;gap:var(--space-4);padding:var(--space-3);border:1px solid var(--border);border-radius:var(--radius-md);display:flex}.bin-pages{align-items:center;gap:var(--space-1);flex:none;display:flex}.bin-thumb{width:34px}.bin-more{color:var(--text-dim);font-size:var(--text-xs);white-space:nowrap}.bin-text{flex-direction:column;flex:1;min-width:0;display:flex}.bin-what{font-weight:var(--weight-medium)}.bin-when{color:var(--text-dim);font-size:var(--text-xs)}.bin-actions{gap:var(--space-1);flex:none;display:flex}.bin-empty{padding:var(--space-7) 0;color:var(--text-dim);text-align:center}.bin-button{position:relative}.badge{border-radius:var(--radius-full);background:var(--brand);min-width:16px;height:16px;color:var(--brand-contrast);font-size:10px;font-weight:var(--weight-bold);text-align:center;padding:0 4px;line-height:16px;position:absolute;top:0;right:0}.drop-target{display:inline-flex;position:relative}.is-dragging-pages .drop-target button{pointer-events:none}.is-drop{outline:2px dashed var(--brand);outline-offset:-2px;background:var(--brand-soft)}.drag-badge{padding:var(--space-1) var(--space-3);border-radius:var(--radius-full);background:var(--brand);color:var(--brand-contrast);font-size:var(--text-sm);font-weight:var(--weight-bold);position:fixed;top:-100px;left:0}.drop-marker.is-copy{background:repeating-linear-gradient(var(--brand) 0 6px, transparent 6px 10px)}.field-note{min-height:1.45em;color:var(--text-dim);font-size:var(--text-xs)}.field-note.is-error{color:var(--danger)}.signature-list{gap:var(--space-3);margin:0;padding:0;list-style:none;display:grid}.signature-entry{padding:var(--space-3) var(--space-4);border:1px solid var(--border);border-radius:var(--radius-md)}.signature-name{margin:0 0 var(--space-1);font-weight:var(--weight-bold)}.signature-state{align-items:center;gap:var(--space-2);margin:0 0 var(--space-2);font-weight:var(--weight-medium);display:flex}.signature-state.is-good{color:var(--success)}.signature-state.is-warning{color:var(--warning)}.signature-state.is-bad{color:var(--danger)}.signature-line{color:var(--text-dim);font-size:var(--text-sm);margin:0}.field-input[aria-invalid=true]{border-color:var(--danger)}.select{justify-content:space-between;align-items:center;gap:var(--space-2);text-align:left;cursor:pointer;width:100%;display:flex}.select-value{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.segmented-text{flex-wrap:wrap;align-self:flex-start;max-width:100%}.segmented-text .segment{width:auto;height:30px;padding:0 var(--space-3);font-size:var(--text-sm);font-weight:var(--weight-medium);white-space:nowrap}.field-switch{justify-content:space-between;align-items:center;gap:var(--space-4);flex-direction:row}.field-switch-text{flex-direction:column;min-width:0;display:flex}.chips{align-items:center;gap:var(--space-1);height:auto;min-height:var(--control);padding:var(--space-1);cursor:text;flex-wrap:wrap;display:flex}.chips:focus-within{outline:2px solid var(--focus);outline-offset:2px}.chips-input{min-width:120px;height:26px;padding:0 var(--space-2);background:0 0;border:0;outline:none;flex:1}.chip{max-width:100%;height:26px;padding-left:var(--space-2);border-radius:var(--radius-full);background:var(--brand-soft);color:var(--brand);font-size:var(--text-sm);font-weight:var(--weight-medium);align-items:center;gap:2px;display:inline-flex}.chip-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chip-remove{border-radius:var(--radius-full);width:22px;height:22px;color:inherit;cursor:pointer;background:0 0;border:0;place-items:center;padding:0;display:grid}.chip-remove:hover{background:var(--surface)}.chip-remove .icon{stroke-width:2.5px;width:12px;height:12px}.properties{gap:var(--space-4);flex-direction:column;display:flex}.summary{align-items:center;gap:var(--space-4);padding:var(--space-4);border:1px solid var(--border);border-radius:var(--radius-md);background:linear-gradient(120deg, var(--brand-soft), var(--surface) 70%);display:flex}.summary-thumb{flex:none;width:64px}.summary-text{gap:var(--space-1);flex-direction:column;flex:1;min-width:0;display:flex}.summary-name{font-size:var(--text-lg);font-weight:var(--weight-bold)}.summary-detail,.summary-count{color:var(--text-dim);font-size:var(--text-sm)}.summary-actions{gap:var(--space-2);flex-direction:column;flex:none;display:flex}.meter{border-radius:var(--radius-full);background:var(--surface-3);height:6px;overflow:hidden}.meter-fill{border-radius:var(--radius-full);background:var(--brand);height:100%;transition:width var(--slow)}.disclosure{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface)}.disclosure-header{align-items:center;gap:var(--space-3);width:100%;min-height:52px;padding:0 var(--space-4);border-radius:var(--radius-md);text-align:left;cursor:pointer;background:0 0;border:0;display:flex}.disclosure-header:hover{background:var(--surface-2)}.disclosure-icon{border-radius:var(--radius-sm);background:var(--brand-soft);width:30px;height:30px;color:var(--brand);flex:none;place-items:center;display:grid}.disclosure-title{font-weight:var(--weight-bold);flex:1}.disclosure-summary{color:var(--text-dim);font-size:var(--text-xs);white-space:nowrap}.disclosure-chevron{color:var(--text-dim);transition:transform var(--fast);display:grid}.is-open>.disclosure-header .disclosure-chevron{transform:rotate(180deg)}.disclosure-body{gap:var(--space-2) var(--space-4);padding:var(--space-2) var(--space-4) var(--space-4);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.field-wide{grid-column:1/-1}.keys-sheet{columns:2 280px;column-gap:var(--space-6)}.keys-section{gap:var(--space-1);margin-bottom:var(--space-5);break-inside:avoid;flex-direction:column;display:flex}.keys-section h3{margin-bottom:var(--space-1);font-size:var(--text-xs);font-weight:var(--weight-bold);letter-spacing:.04em;text-transform:uppercase;color:var(--text-dim)}.keys-row{justify-content:space-between;align-items:center;gap:var(--space-3);min-height:30px;display:flex}.keys-label{min-width:0}.keys{align-items:center;gap:var(--space-1);flex:none;display:inline-flex}.keys-plus{color:var(--text-dim);font-size:var(--text-xs)}.keys-how{color:var(--text-dim);font-size:var(--text-sm)}kbd{min-width:24px;height:24px;padding:0 var(--space-2);border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface-2);font:var(--weight-medium) var(--text-xs) / 1 var(--font);white-space:nowrap;border-bottom-width:2px;place-items:center;display:inline-grid}.annotate-bar{align-items:center;gap:var(--space-2) var(--space-3);padding:var(--space-2) var(--space-3);border-bottom:1px solid var(--border);background:var(--surface);flex-wrap:wrap;flex:none;display:flex}.swatches{gap:var(--space-2)}.swatch{border:1px solid var(--text-dim);border-radius:var(--radius-full);background:var(--swatch);cursor:pointer;width:22px;height:22px;padding:0}.swatch[aria-pressed=true]{outline:2px solid var(--brand);outline-offset:2px}.size-dot{border-radius:var(--radius-full);background:currentColor;display:block}.size-dot-0{width:4px;height:4px}.size-dot-1{width:8px;height:8px}.size-dot-2{width:13px;height:13px}.viewer-page{position:relative}.annotation-surface{cursor:crosshair;touch-action:none;width:100%;height:100%;position:absolute;inset:0}.annotation-surface[data-tool=select]{cursor:default;touch-action:auto}.annotation-surface:is([data-tool=text],[data-tool=date],[data-tool=editText]){cursor:text}.annotation-surface[data-tool=note]{cursor:copy}.annotation-selection{fill:none;stroke:var(--brand);stroke-width:1.5px;stroke-dasharray:5 4;vector-effect:non-scaling-stroke;pointer-events:none}.annotation-editor{outline:1.5px dashed var(--brand);outline-offset:3px;white-space:pre;resize:none;transform-origin:0 0;background:0 0;border:0;margin:0;padding:0;line-height:1.25;position:absolute;overflow:hidden}.textLayer{text-align:initial;letter-spacing:normal;word-spacing:normal;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;--min-font-size:1;--text-scale-factor:calc(var(--total-scale-factor) * var(--min-font-size));--min-font-size-inv:calc(1 / var(--min-font-size));line-height:1;position:absolute;inset:0;overflow:clip}.textLayer :is(span,br){color:#0000;white-space:pre;cursor:text;transform-origin:0 0;-webkit-user-select:text;user-select:text;position:absolute}.textLayer>:not(.markedContent),.textLayer .markedContent span:not(.markedContent){--font-height:0;--scale-x:1;--rotate:0deg;font-size:calc(var(--text-scale-factor) * var(--font-height));transform:rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv))}.textLayer .markedContent{display:contents}.textLayer ::selection{color:#0000;background:#2f5bea4d}.textLayer .endOfContent{z-index:0;cursor:default;-webkit-user-select:none;user-select:none;display:block;position:absolute;inset:100% 0 0}::highlight(pdfstitch-find){color:#0000;background-color:#fde0478c}.textLayer .find-match{background:#fde0478c}.link-layer{pointer-events:none;position:absolute;inset:0}.page-link{cursor:pointer;pointer-events:auto;background:0 0;border:0;border-radius:2px;padding:0;display:block;position:absolute}.page-link:hover{background:#2f5bea1f;outline:1px solid #2f5bea80}.page-link:focus-visible{background:#2f5bea1f}.annotation-surface[data-tool=select]{pointer-events:none}.viewer-page:has(.annotation-surface:not([data-tool=select])) :is(.textLayer,.link-layer){pointer-events:none}.mark-bar{z-index:3;padding:var(--space-1);border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-2);gap:2px;display:flex;position:absolute;top:0;left:0}.find-bar{align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);border-bottom:1px solid var(--border);background:var(--surface-2);color:var(--text-dim);flex-wrap:wrap;flex:none;display:flex}.find-input{width:min(320px,50vw);height:32px}.find-status{min-width:180px;font-size:var(--text-sm);font-variant-numeric:tabular-nums}.form-layer{pointer-events:none;position:absolute;inset:0}.form-field{border:1px solid var(--brand);color:#111;font-family:var(--font);pointer-events:auto;background:#eef3ff;border-radius:2px;margin:0;padding:0 .3em;position:absolute}.form-field:focus-visible{outline:2px solid var(--brand);outline-offset:1px;background:#fff}textarea.form-text{resize:none;padding:.2em .3em;line-height:1.25}.form-check{accent-color:var(--brand);cursor:pointer;padding:0}.form-choice{text-align:left;cursor:pointer;align-items:center;display:flex}@media (max-width:900px){.btn-collapsible{width:var(--control);padding:0}.btn-collapsible .btn-label,.promise-text{display:none}.promise{padding:var(--space-2)}}@media (max-width:720px){.home-inner{padding:var(--space-5) var(--space-4);gap:var(--space-6)}.dropzone{padding:var(--space-6) var(--space-4)}.toolbar .hide-narrow{display:none}.tool-group+.tool-group{padding-left:var(--space-2)}.toolbar{gap:var(--space-2);padding:var(--space-2)}.disclosure-body,.form-grid,.format-list{grid-template-columns:minmax(0,1fr)}.bin-entry,.summary{flex-wrap:wrap}.summary-actions{flex-flow:wrap;flex-shrink:1;min-width:0}.lib-panel{z-index:2;width:min(var(--panel-width), 86%);box-shadow:var(--shadow-2);position:absolute;inset:0 auto 0 0}.grid{gap:var(--space-2);padding:var(--space-3) var(--space-3) 132px}.selection-bar{bottom:var(--space-3)}.viewer-position{min-width:96px}.find-status{flex-basis:100%;min-width:0}.grid-scroller{flex-direction:column;display:flex}.grid{min-height:0;padding-bottom:var(--space-5)}.grid-empty{flex:1 0 auto;min-height:0}.grid-scroller>.footer-slim{padding:var(--space-3) var(--space-4);margin-top:auto}.canvas:has(.selection-bar.is-visible) .grid-scroller>.footer-slim{padding-bottom:132px}}@media (max-width:720px),(max-height:500px){.viewer{z-index:var(--z-busy);position:fixed}.annotate-bar{flex-wrap:nowrap;overflow-x:auto}.crop-bar{flex-wrap:wrap;overflow-x:visible}.crop-bar .tool-group{flex-wrap:wrap}}@media (max-width:480px){.brand-name{display:none}.appbar{gap:var(--space-2);padding:0 var(--space-3)}.appbar>*{flex:none}.appbar>.segmented{display:none}.btn.appbar-theme{display:inline-flex}}@media (max-width:359px){.appbar{padding:0 var(--space-2)}}@media (hover:none){.page-button{opacity:1}}@media (pointer:coarse){.link,.footer-links>a,.copyright a{min-height:var(--control);align-items:center;display:inline-flex}.swatch{width:32px;height:32px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.viewer-page{overflow:hidden}.viewer-sheet{transform-origin:0 0;position:absolute;top:0;left:0}.crop-bar .crop-title{align-items:center;gap:var(--space-2);font-weight:var(--weight-bold);display:inline-flex}.crop-readout,.crop-scope-label{color:var(--text-dim);font-size:var(--text-sm);font-variant-numeric:tabular-nums;white-space:nowrap}.crop-scope{justify-content:space-between;min-width:15em}.crop-margin{text-align:right;font-variant-numeric:tabular-nums;width:4.5em;height:32px}.crop-note{color:var(--text-dim);font-size:var(--text-xs);flex-basis:100%;margin:0}.crop-overlay{cursor:crosshair;touch-action:none;position:absolute;inset:0}.viewer-page.is-cropping{overflow:visible}.crop-shade-clip{pointer-events:none;position:absolute;inset:0;overflow:hidden}.crop-shade,.crop-frame{position:absolute;top:0;left:0}.crop-shade{box-shadow:0 0 0 100vmax #0f172a8c}.crop-frame{outline:2px solid var(--brand);cursor:move}.crop-frame:focus-visible{outline:3px solid var(--brand);outline-offset:2px}.crop-handle{border:2px solid var(--brand);background:var(--surface);border-radius:3px;width:14px;height:14px;margin:-7px;position:absolute}.crop-handle:after{content:"";position:absolute;inset:-10px}.crop-handle-n,.crop-handle-s{cursor:ns-resize;left:50%}.crop-handle-e,.crop-handle-w{cursor:ew-resize;top:50%}.crop-handle-n,.crop-handle-ne,.crop-handle-nw{top:0}.crop-handle-s,.crop-handle-se,.crop-handle-sw{top:100%}.crop-handle-w,.crop-handle-nw,.crop-handle-sw{left:0}.crop-handle-e,.crop-handle-ne,.crop-handle-se{left:100%}.crop-handle-ne,.crop-handle-sw{cursor:nesw-resize}.crop-handle-nw,.crop-handle-se{cursor:nwse-resize}.chip-toggles{gap:var(--space-2);flex-wrap:wrap;display:flex}.chip-toggle{align-items:center;gap:var(--space-1);padding:var(--space-1) var(--space-3);border:1px solid var(--border-strong);border-radius:var(--radius-full);background:var(--surface);color:var(--text);font:inherit;font-size:var(--text-sm);cursor:pointer;display:inline-flex}.chip-toggle .icon{opacity:0;width:14px;height:14px}.chip-toggle[aria-pressed=true]{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}.chip-toggle[aria-pressed=true] .icon{opacity:1}.redact-found{gap:var(--space-2);flex-direction:column;display:flex}.redact-found-head{justify-content:space-between;align-items:center;gap:var(--space-3);min-height:36px;display:flex}.redact-status{color:var(--text-dim);font-size:var(--text-sm);margin:0}.redact-unsearched,.redact-elsewhere{color:var(--warning);font-size:var(--text-sm);margin:0}.redact-elsewhere p{margin:0}.redact-elsewhere-list{gap:var(--space-1);margin:var(--space-1) 0 0;padding:0;list-style:none;display:grid}.redact-elsewhere-list li{justify-content:space-between;align-items:center;gap:var(--space-2);color:var(--text);display:flex}.redact-results{border:1px solid var(--border);border-radius:var(--radius-md);height:200px;margin:0;padding:0;list-style:none;overflow-y:auto}.redact-result{align-items:center;gap:var(--space-3);width:100%;padding:var(--space-2) var(--space-3);border:0;border-bottom:1px solid var(--border);color:var(--text);font:inherit;font-size:var(--text-sm);text-align:left;cursor:pointer;background:0 0;grid-template-columns:auto auto minmax(0,1fr);display:grid}.redact-result:hover{background:var(--surface-2)}.redact-check{border:1.5px solid var(--border-strong);border-radius:4px;place-items:center;width:18px;height:18px;display:grid}.redact-check .icon{opacity:0;width:12px;height:12px}.redact-result[aria-checked=true] .redact-check{border-color:var(--danger);background:var(--danger);color:var(--surface)}.redact-result[aria-checked=true] .redact-check .icon{opacity:1}.redact-page{color:var(--text-dim);white-space:nowrap}.redact-context{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.redact-context mark{color:#fff;background:#111;border-radius:2px;padding:0 2px}.slot-grid{gap:var(--space-2) var(--space-3);grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.form-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.token-chip{border:1px dashed var(--border-strong);border-radius:var(--radius-full)}@media (max-width:600px){.slot-grid,.form-grid-3{grid-template-columns:minmax(0,1fr)}}.viewer-body{flex:1;min-height:0;display:flex}.viewer-body>.viewer-stage{flex:1;min-width:0}.outline-panel{border-right:1px solid var(--border);background:var(--surface);flex-direction:column;flex:none;width:260px;min-height:0;display:flex}.outline-panel[hidden]{display:none}.outline-head{align-items:center;gap:var(--space-1);padding:var(--space-2) var(--space-2) var(--space-2) var(--space-3);display:flex}.outline-title{font-size:var(--text-sm);font-weight:var(--weight-bold);flex:1;margin:0}.outline-note{padding:0 var(--space-3) var(--space-2);color:var(--text-dim);font-size:var(--text-xs);margin:0}.outline-list{min-height:0;padding:0 var(--space-1) var(--space-3);flex:1;margin:0;list-style:none;overflow-y:auto}.outline-entry,.outline-children{margin:0;padding:0;list-style:none}.outline-item{border-radius:var(--radius-md);align-items:center;display:flex}.outline-item:hover{background:var(--surface-2)}.outline-open{align-items:baseline;gap:var(--space-2);min-width:0;padding:var(--space-2);border-radius:var(--radius-md);color:var(--text);font:inherit;font-size:var(--text-sm);text-align:left;cursor:pointer;background:0 0;border:0;flex:1;display:flex}.outline-open[aria-current=true]{background:var(--brand-soft);color:var(--brand);font-weight:var(--weight-medium)}.outline-name{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.outline-page{color:var(--text-dim);font-size:var(--text-xs);font-variant-numeric:tabular-nums;flex:none}.outline-menu{opacity:0;flex:none}.outline-item:hover .outline-menu,.outline-menu:focus-visible,.outline-menu[aria-expanded=true]{opacity:1}@media (max-width:700px){.viewer-body{position:relative}.outline-panel{z-index:2;width:min(85vw,320px);box-shadow:var(--shadow-lg,0 8px 24px #0003);position:absolute;inset:0 auto 0 0}}@media (hover:none){.outline-menu{opacity:1}}@media (hover:hover) and (pointer:fine){.only-touch{display:none}}.is-invisible{visibility:hidden}.compare-legend{gap:var(--space-3);font-size:var(--text-sm);display:flex}.compare-results{height:320px;padding:var(--space-2) var(--space-3);border:1px solid var(--border);border-radius:var(--radius-md);overflow-y:auto}.compare-page{padding:var(--space-2) 0;border-bottom:1px solid var(--border)}.compare-page:last-child{border-bottom:0}.compare-page h3{margin:0 0 var(--space-1);font-size:var(--text-sm);font-weight:var(--weight-bold)}.compare-text{font-size:var(--text-sm);overflow-wrap:anywhere;margin:0;line-height:1.6}.compare-note{color:var(--text-dim);font-size:var(--text-sm);margin:0}:is(.compare-text,.compare-legend) del{background:color-mix(in srgb, var(--danger) 16%, transparent);color:var(--text);-webkit-text-decoration-color:var(--danger);text-decoration-color:var(--danger);border-radius:2px;padding:0 2px}:is(.compare-text,.compare-legend) ins{color:var(--text);background:#16a34a2e;border-radius:2px;padding:0 2px;text-decoration-color:#16a34a}.annotation-cursor{fill:none;stroke:var(--brand);stroke-width:2px;vector-effect:non-scaling-stroke;pointer-events:none}.annotation-surface:not(:focus-visible) .annotation-cursor{display:none}.annotation-surface:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.nudge-pad{gap:var(--space-2);grid-template-columns:repeat(4,minmax(0,1fr));display:grid}@media (max-width:420px){.nudge-pad{grid-template-columns:repeat(2,minmax(0,1fr))}}
