:root{color-scheme:light dark;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;--surface: #ffffff;--surface-strong: #f1f5f9;--surface-muted: #e2e8f0;--text: #0f172a;--text-muted: #475569;--border: #d0d8e2;--accent: #2563eb;--accent-strong: #1d4ed8;--danger: #dc2626;--shadow: 0 12px 32px rgba(15, 23, 42, .12);background-color:var(--surface-strong);color:var(--text)}[data-theme=light]{color-scheme:light}[data-theme=dark]{color-scheme:dark;--surface: #111827;--surface-strong: #0f172a;--surface-muted: #1f2937;--text: #f8fafc;--text-muted: #cbd5f5;--border: #1f2937;--accent: #60a5fa;--accent-strong: #3b82f6;--danger: #f87171;--shadow: 0 12px 32px rgba(2, 6, 23, .45);background-color:var(--surface-strong);color:var(--text)}*,*:before,*:after{box-sizing:border-box}body{margin:0;background:var(--surface-strong);color:var(--text)}.app-loading{min-height:100vh;display:grid;place-items:center;color:var(--text-muted);font-size:1.1rem}a.button,button,.button{font:inherit}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 20px;border-radius:999px;border:1px solid transparent;cursor:pointer;text-decoration:none;transition:background .2s ease,border-color .2s ease,color .2s ease}.button--primary{background:var(--accent);color:#fff}.button--primary:hover,.button--primary:focus-visible{background:var(--accent-strong);outline:none}.button--ghost{border-color:var(--border);background:transparent;color:inherit}.button--ghost:hover,.button--ghost:focus-visible{border-color:var(--accent);outline:none}.bookmark{position:relative}.bookmark__icon{width:32px;height:32px;border-radius:50%;border:1px solid var(--border);background:var(--surface);display:grid;place-items:center;font-size:.9rem;cursor:pointer;transition:border-color .2s ease,background .2s ease}.bookmark__icon:hover,.bookmark__icon:focus-visible{border-color:var(--accent);background:var(--surface-muted);outline:none}.bookmark__tooltip{position:absolute;top:calc(100% + 8px);right:0;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:8px 12px;font-size:.85rem;color:var(--text);box-shadow:var(--shadow);width:max(220px,100%);z-index:10}h1,h2,h3,h4,h5,h6{margin:0;font-weight:600}p{margin:0}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer;border:none;background:none;color:inherit}.button--accent,button.button--accent{background:#f97316;color:#fff;border:none}.button--accent:hover,.button--accent:focus-visible,button.button--accent:hover,button.button--accent:focus-visible{background:#ea580c;outline:none}.content-layout{padding:clamp(32px,8vw,64px) clamp(16px,6vw,48px);display:flex;justify-content:center}.content-layout__article{max-width:860px;width:100%;line-height:1.7;display:flex;flex-direction:column;gap:20px}.content-layout__article h1{font-size:clamp(2rem,4.2vw,2.8rem)}.content-layout__article h2{margin-top:24px;font-size:clamp(1.5rem,3vw,2rem)}.content-layout__article h3{margin-top:20px;font-size:clamp(1.25rem,2.4vw,1.6rem)}.content-layout__article p,.content-layout__article li{color:var(--text)}.content-layout__article ul,.content-layout__article ol{padding-left:24px}.debug-lang__header{display:flex;flex-direction:column;gap:12px}.debug-lang__meta{display:flex;gap:24px;flex-wrap:wrap}.debug-lang__meta-label{text-transform:uppercase;letter-spacing:.08em;font-size:.75rem;color:var(--text-muted);display:block}.debug-lang__meta-value{font-weight:600;font-size:1rem}.debug-lang__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;width:100%}.debug-lang__card{border:1px solid var(--border);border-radius:16px;padding:16px;background:var(--surface);box-shadow:0 18px 36px #0f172a1f}.debug-lang__card header{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--border);padding-bottom:12px;margin-bottom:12px}.debug-lang__flag{font-size:1.8rem}.debug-lang__locale{margin-left:auto;font-size:.85rem;color:var(--text-muted);font-family:JetBrains Mono,SFMono-Regular,monospace}.debug-lang__body{display:flex;flex-direction:column;gap:10px}.debug-lang__title{margin:0;font-size:1rem;font-weight:600}.debug-lang__subtitle{margin:0;color:var(--text-muted)}.debug-lang__chips{list-style:none;display:flex;gap:6px;flex-wrap:wrap;padding:0;margin:0;font-size:.85rem;color:var(--text-muted)}.debug-lang__chips li{background:var(--surface-muted);border-radius:999px;padding:4px 12px}.debug-lang__buttons{display:flex;gap:8px;flex-wrap:wrap}#root,.app{min-height:100vh;display:flex;flex-direction:column}.site-header{background:var(--surface);border-bottom:1px solid var(--border)}.site-header__inner{max-width:1200px;margin:0 auto;padding:12px clamp(16px,6vw,32px);display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px}.site-header__brand{display:flex;align-items:center;gap:12px}.site-header__nav{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}.site-header__nav-link{font-size:.95rem;color:var(--text-muted);font-weight:500}.site-header__nav-link:hover,.site-header__nav-link:focus-visible{color:var(--text);outline:none}.site-header__actions{display:inline-flex;align-items:center;justify-content:flex-end;gap:12px}.site-header__switcher{justify-self:center}.site-header__bookmark{justify-self:end}.site-logo{font-size:1.2rem;font-weight:600;color:var(--text);text-decoration:none}.button--small{padding:8px 18px;font-size:.95rem}.tool-switcher{display:inline-flex;align-items:center;gap:6px;background:var(--surface-muted);border-radius:999px;padding:4px}.tool-switcher__link{padding:6px 16px;border-radius:999px;border:1px solid transparent;font-size:.9rem;color:var(--text-muted)}.tool-switcher__link--active{background:var(--accent);color:#fff;border-color:transparent}.lang-switcher{position:relative}.lang-switcher__trigger{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;border:1px solid var(--border);background:var(--surface-muted);font-size:.9rem;transition:border-color .2s ease,background .2s ease}.lang-switcher__trigger:hover,.lang-switcher__trigger:focus-visible{border-color:var(--accent);background:var(--surface);outline:none}.lang-switcher__icon{font-size:1.05rem}.lang-switcher__label{color:var(--text-muted);font-size:.8rem}.lang-switcher__value{font-weight:600}.lang-switcher__menu{position:absolute;top:calc(100% + 8px);right:0;background:var(--surface);border-radius:14px;border:1px solid var(--border);box-shadow:var(--shadow);padding:12px;width:min(360px,80vw);display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:4px;z-index:40}.lang-switcher__option{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:10px;border:1px solid transparent;cursor:pointer;background:transparent;transition:background .2s ease,border-color .2s ease;text-align:left}.lang-switcher__option:hover,.lang-switcher__option:focus-visible{background:var(--surface-muted);outline:none}.lang-switcher__option.is-active{border-color:var(--accent);background:#2563eb1f}.lang-switcher__flag{font-size:1.5rem}.lang-switcher__text{display:flex;flex-direction:column;line-height:1.2}.lang-switcher__native{font-weight:600}.lang-switcher__english{font-size:.8rem;color:var(--text-muted)}.site-footer{padding:24px clamp(16px,6vw,32px);background:var(--surface);border-top:1px solid var(--border);color:var(--text-muted)}.site-footer__inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.site-footer__link{color:var(--text);font-weight:500}.site-footer__links{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:.95rem}.site-footer__links a{color:var(--accent);text-decoration:none;font-weight:500}.hero{display:flex;justify-content:space-between;align-items:center;padding:20px clamp(16px,5vw,48px);background:var(--surface);box-shadow:var(--shadow);gap:16px}.hero--compact{padding-block:16px}.hero__summary h1{font-size:clamp(1.5rem,3vw,2.2rem)}.hero__summary p{margin-top:4px;color:var(--text-muted);font-size:.95rem}.hero__quick-actions{display:flex;align-items:center;gap:12px}.hero__switcher{display:inline-flex;background:var(--surface-muted);border-radius:999px;padding:4px;gap:6px}.hero__switcher-link{padding:6px 14px;border-radius:999px;font-size:.9rem;border:1px solid transparent;color:var(--text-muted)}.hero__switcher-link--active{background:var(--accent);color:#fff;border-color:transparent}.hero__notice{margin:0;padding:12px clamp(16px,5vw,48px);background:var(--surface);border-radius:12px;color:var(--text-muted)}.hero__settings{padding:10px 18px;border-radius:999px;background:var(--surface-muted);border:1px solid var(--border);transition:background .2s ease}.hero__settings:hover,.hero__settings:focus-visible{background:var(--surface-strong);outline:none}.main{flex:1;padding:clamp(24px,6vw,64px);display:flex;flex-direction:column;gap:32px}.app-main{position:relative}.app-settings-fab{position:absolute;top:0;right:clamp(16px,6vw,64px);display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:inherit;cursor:pointer;box-shadow:var(--shadow);transition:transform .2s ease,box-shadow .2s ease;z-index:5}.app-settings-fab:hover,.app-settings-fab:focus-visible{transform:translateY(-2px);box-shadow:0 12px 32px #0f172a33;outline:none}.app-settings-fab__label{display:inline-flex;align-items:center;opacity:0;width:0;overflow:hidden;transition:opacity .2s ease,width .2s ease;white-space:nowrap}.app-settings-fab:hover .app-settings-fab__label,.app-settings-fab:focus-visible .app-settings-fab__label{opacity:1;width:auto}.app-settings-fab__icon{font-size:1rem}.app-description{margin-top:24px;background:var(--surface);border-radius:16px;border:1px solid var(--border);padding:24px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:12px;color:var(--text-muted)}.app-description h2{margin:0;color:var(--text)}.tool-intro{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:24px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:12px}.tool-intro h2{font-size:1.4rem}.dropzone{border:2px dashed var(--border);border-radius:16px;background:var(--surface);padding:48px 24px;text-align:center;transition:border-color .2s ease,background .2s ease}.dropzone[data-drag-active=true]{border-color:var(--accent);background:#2563eb14}.dropzone__interactive{outline:none}.dropzone__inner{display:flex;flex-direction:column;gap:12px;align-items:center}.dropzone__icon{font-size:36px}.dropzone__title{font-size:1.05rem;font-weight:500}.dropzone__note{margin:0;color:var(--text-muted);font-size:.9rem}.dropzone__note a{color:var(--accent);font-weight:600}.dropzone__button{padding:10px 18px;border-radius:999px;background:var(--accent);color:#fff;border:none}.dropzone__button:disabled{opacity:.6}.dropzone__hint{color:var(--text-muted);font-size:.9rem}.file-list{background:var(--surface);border-radius:16px;padding:24px;box-shadow:var(--shadow)}.file-list__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.file-list__heading{display:flex;align-items:center;gap:8px}.file-list__view-toggle{display:inline-flex;gap:8px;padding:4px;border-radius:999px;background:var(--surface-muted)}.file-list__view-option{border:none;background:transparent;padding:6px 14px;border-radius:999px;cursor:pointer;font-size:.9rem;color:var(--text-muted)}.file-list__view-option--active{background:var(--accent);color:#fff;box-shadow:0 8px 18px #2563eb40}.file-list__grid{display:grid;gap:16px}.compact-file-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.file-row{display:flex;align-items:center;gap:16px;padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:var(--shadow)}.file-row--dragging{box-shadow:0 16px 32px #0f172a33}.file-row__drag{border:1px solid var(--border);background:var(--surface-muted);border-radius:12px;padding:8px;cursor:grab}.file-row__info{flex:1;display:flex;flex-direction:column;gap:4px}.file-row__info span{color:var(--text-muted);font-size:.9rem}.file-row__actions{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap}.file-row__actions button,.file-row__replace{padding:6px 10px;border-radius:8px;border:1px solid var(--border);background:var(--surface-muted);cursor:pointer;font-size:.85rem}.file-row__actions button:hover,.file-row__actions button:focus-visible,.file-row__replace:hover,.file-row__replace:focus-within{border-color:var(--accent);outline:none}.file-row__replace input{display:none}.file-card{border:1px solid var(--border);border-radius:14px;padding:16px;background:var(--surface);display:flex;flex-direction:column;gap:12px;transition:box-shadow .2s ease,transform .2s ease}.file-card--dragging{box-shadow:var(--shadow);transform:scale(1.01)}.file-card__header{display:flex;justify-content:space-between;align-items:center;gap:16px}.file-card__leading{display:flex;gap:12px;align-items:center}.file-card__order{width:28px;height:28px;display:grid;place-items:center;border-radius:999px;background:var(--surface-muted)}.file-card__meta{display:flex;gap:8px;color:var(--text-muted);font-size:.85rem}.file-card__action-group{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.file-card__action-group button,.file-card__action-group label{background:var(--surface-muted);border-radius:8px;padding:6px 10px;display:inline-flex;align-items:center;gap:6px;border:1px solid transparent}.file-card__action-group button:hover,.file-card__action-group label:hover,.file-card__action-group button:focus-visible,.file-card__action-group label:focus-within{border-color:var(--accent);outline:none}.file-card__upload input{display:none}.file-card__preview{border-radius:12px;overflow:hidden;background:var(--surface-muted);min-height:120px;display:grid;place-items:center}.file-card__preview img{width:100%;height:auto;display:block}.file-card__placeholder{color:var(--text-muted)}.file-card__error{color:var(--danger);font-size:.85rem}.file-card__pages{display:flex;flex-direction:column;gap:12px}.file-card__toggle{align-self:flex-start;padding:6px 12px;border-radius:8px;border:1px solid var(--border);background:var(--surface-muted)}.file-card__page-preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px}.file-card__page-thumb{border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--surface-muted);min-height:72px;display:grid;place-items:center}.file-card__page-thumb img{width:100%;display:block}.page-board{background:var(--surface);border-radius:16px;padding:24px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:20px}.page-board__header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}.page-board__count{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 10px;border-radius:999px;background:var(--surface-muted);font-weight:600}.page-board__actions{display:flex;gap:8px;flex-wrap:wrap}.page-board__actions button{padding:8px 16px;border-radius:999px;border:1px solid var(--border);background:var(--surface-muted);cursor:pointer}.page-board__actions button:disabled{opacity:.6;cursor:not-allowed}.page-board__actions button:hover,.page-board__actions button:focus-visible{border-color:var(--accent);outline:none}.history-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:12px 24px;border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}.history-controls button{padding:8px 16px;border-radius:999px;border:1px solid var(--border);background:var(--surface-muted)}.history-controls button:disabled{opacity:.5;cursor:not-allowed}.page-board__empty{text-align:center;color:var(--text-muted);padding:40px 16px}.page-board__row{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px;padding-bottom:12px}.page-tile{background:var(--surface-muted);border-radius:12px;border:2px solid transparent;overflow:hidden;display:flex;flex-direction:column;min-height:200px;cursor:grab;transition:transform .2s ease,border-color .2s ease}.page-tile--selected{border-color:var(--accent)}.page-tile--dragging{transform:scale(1.03)}.page-tile__preview{width:100%;flex:1;object-fit:cover;display:block}.page-tile__fallback{flex:1;display:grid;place-items:center;color:var(--text-muted)}.page-tile__meta{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:var(--surface)}.page-tile__meta-actions button{padding:6px;border-radius:6px;border:1px solid transparent;background:var(--surface-muted);margin-left:6px}.page-tile__meta-actions button:hover,.page-tile__meta-actions button:focus-visible{border-color:var(--accent);outline:none}.export-bar{position:sticky;bottom:0;margin-top:auto;background:var(--surface);border-top:1px solid var(--border);padding:16px clamp(16px,5vw,64px);display:flex;flex-direction:column;gap:12px;box-shadow:0 -12px 28px #0f172a0f;z-index:15}.export-bar[data-collapsed=true] .export-bar__inner{display:none}.export-bar__toggle{align-self:center;padding:6px 12px;border-radius:999px;border:1px solid var(--border);background:var(--surface-muted);font-size:.85rem}.export-bar__inner{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between}.export-bar__summary{display:flex;flex-direction:column;gap:6px}.export-bar__summary-details{display:inline-flex;gap:12px;flex-wrap:wrap;font-size:.9rem;color:var(--text-muted)}.export-bar__meta{color:var(--text-muted);margin-top:4px}.export-bar__controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.export-bar__controls button{padding:12px 24px;border-radius:999px;background:var(--accent);color:#fff;border:none}.export-bar__controls button:disabled{opacity:.6;cursor:not-allowed}.export-bar__settings{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;border-radius:999px;background:var(--surface-muted);color:inherit;border:1px solid var(--border);cursor:pointer;transition:background .2s ease,border-color .2s ease;font-size:1rem}.export-bar__settings:hover,.export-bar__settings:focus-visible{background:var(--surface-strong);border-color:var(--accent);outline:none}.export-bar__settings-icon{font-size:1rem}.export-bar__cancel{background:var(--surface-muted);color:inherit;border:1px solid var(--border)}.export-bar__cancel:hover,.export-bar__cancel:focus-visible{border-color:var(--accent);outline:none}.export-bar__progress{display:flex;flex-direction:column;gap:6px}.landing{max-width:1040px;margin:0 auto;padding:clamp(24px,6vw,48px) clamp(16px,5vw,32px) 64px;display:flex;flex-direction:column;gap:56px}.landing--simple{max-width:880px;gap:40px}.landing__header{text-align:left}.landing__cta-button{margin-top:24px}.landing__hero{display:flex;flex-direction:column;gap:32px}.landing__hero--stack{gap:40px}.landing__intro{display:flex;flex-direction:column;gap:16px}.landing__cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}.landing__hero h1{font-size:clamp(1.8rem,4vw,2.6rem);margin:0}.landing__intro p{color:var(--text-muted);margin:0}.landing__eyebrow{text-transform:uppercase;font-size:.85rem;letter-spacing:.08em;color:var(--accent);font-weight:600}.landing__highlights{list-style:none;display:flex;gap:12px;flex-wrap:wrap;padding:0;margin:0;color:var(--text-muted)}.landing__highlights--compact{font-size:.95rem;gap:8px}.landing__tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px}.landing__tool-card{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:28px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:16px;text-decoration:none;color:inherit;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}.landing__tool-card:hover,.landing__tool-card:focus-visible{border-color:var(--accent);box-shadow:0 24px 48px #2563eb2e;transform:translateY(-4px);outline:none}.landing__tool-card ul{margin:0;padding-left:20px;color:var(--text-muted)}.landing__tool-cta{align-self:flex-start}.landing__tool-card--merge{border-color:#2563eb59;background:linear-gradient(135deg,rgba(37,99,235,.08),transparent)}.landing__tool-card--extract{border-color:#0ea5e94d;background:linear-gradient(135deg,rgba(14,165,233,.08),transparent)}.landing__tool-head{display:flex;flex-direction:column;gap:4px}.landing__tool-head h3{margin:0;font-size:1.4rem}.landing__tool-meta{font-size:.9rem;color:var(--text-muted)}.landing__section{display:flex;flex-direction:column;gap:12px}.landing__section ul,.landing__section ol{padding-left:20px}.landing__section--seo p{color:var(--text-muted)}.landing__ad-placeholder{border:1px dashed var(--border);background:var(--surface-muted);padding:16px;border-radius:12px;color:var(--text-muted)}.landing__footer{font-size:.9rem;opacity:.75;display:flex;flex-direction:column;gap:8px}.landing__footer-links{display:inline-flex;gap:8px;align-items:center;margin-left:8px}.landing__footer-links a{color:var(--accent);text-decoration:none;font-weight:500}.page-content{max-width:800px;margin:64px auto;padding:0 clamp(16px,6vw,32px);line-height:1.7}.page-content ul{padding-left:20px}.contact-form{margin:24px 0;display:flex;flex-direction:column;gap:16px}.contact-form label{display:flex;flex-direction:column;gap:6px;font-weight:600}.contact-form input,.contact-form textarea{border-radius:8px;border:1px solid var(--border);padding:10px 12px;font:inherit}.contact-form button{align-self:flex-start;padding:10px 20px;border-radius:999px;background:var(--accent);color:#fff;border:none;cursor:pointer}.page-content a{color:var(--accent)}.export-bar__progress{display:flex;flex-direction:column;gap:6px;width:220px}.progress{display:flex;align-items:center;gap:8px}.progress__track{flex:1;height:6px;border-radius:999px;background:var(--surface-muted);overflow:hidden}.progress__indicator{height:100%;background:var(--accent);transition:width .2s ease}.progress__indicator[data-indeterminate=true]{width:40%;animation:progressPulse 1s infinite ease-in-out}@keyframes progressPulse{0%{transform:translate(-100%)}50%{transform:translate(0)}to{transform:translate(100%)}}.privacy-card{padding:clamp(24px,5vw,48px);text-align:center;color:var(--text-muted)}.settings-drawer{position:fixed;inset:0;display:grid;justify-content:end;pointer-events:none;z-index:20}.settings-drawer[data-open=true]{pointer-events:auto}.settings-drawer__backdrop{position:absolute;inset:0;background:#0f172a73;backdrop-filter:blur(2px)}.settings-drawer__panel{width:min(360px,90vw);background:var(--surface);height:100%;transform:translate(100%);transition:transform .3s ease;box-shadow:var(--shadow);position:relative;display:flex;flex-direction:column}.settings-drawer[data-open=true] .settings-drawer__panel{transform:translate(0)}.settings-drawer__header{padding:24px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.settings-drawer__content{padding:24px;overflow-y:auto;display:flex;flex-direction:column;gap:24px;flex:1}.settings-drawer__options{display:grid;gap:8px}.settings-drawer__options label,.settings-drawer__toggle{display:flex;align-items:center;gap:10px}.settings-drawer__value{color:var(--text-muted);font-size:.9rem}.dev-reset-cache{padding:10px 16px;border-radius:12px;border:1px solid var(--border);background:var(--surface-muted);cursor:pointer;width:100%;text-align:center}.dev-reset-cache:hover,.dev-reset-cache:focus-visible{border-color:var(--accent);outline:none}.theme-toggle{border:1px solid var(--border);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px}.theme-toggle__options{display:flex;gap:12px}.toast-stack{position:fixed;bottom:24px;right:24px;display:grid;gap:12px;z-index:30}.toast{background:var(--surface);border-radius:12px;padding:12px 16px;box-shadow:var(--shadow);display:flex;align-items:center;gap:12px}.toast--success{border-left:4px solid #16a34a}.toast--error{border-left:4px solid var(--danger)}.toast button{background:none;border:none;cursor:pointer}.pwa-update-banner{position:fixed;bottom:24px;left:50%;transform:translate(-50%);background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:10px 18px;display:flex;align-items:center;gap:12px;box-shadow:var(--shadow);z-index:40;font-size:.95rem}.pwa-update-banner__actions{display:inline-flex;gap:8px}.pwa-update-banner__actions button{padding:6px 14px;border-radius:999px;border:1px solid var(--border);background:var(--surface-muted);cursor:pointer}.pwa-update-banner__actions button:first-child{background:var(--accent);color:#fff;border-color:transparent}.pwa-update-banner__actions button:hover,.pwa-update-banner__actions button:focus-visible{border-color:var(--accent);outline:none}.extractor{display:flex;flex-direction:column;min-height:100vh}.extractor__hero{margin-bottom:24px}.extractor__main{flex:1;padding:clamp(24px,6vw,64px);display:flex;flex-direction:column;gap:32px}.extractor__heading{font-size:clamp(1.75rem,4vw,2.4rem);margin:0}.extractor__dropzone{border-style:dashed;transition:padding .25s ease,background .25s ease,border-color .25s ease}.extractor__dropzone--compact{padding:16px 20px;border-style:solid}.extractor__dropzone--compact .dropzone__inner{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;text-align:left;gap:16px}.extractor__dropzone--compact .dropzone__icon{font-size:28px}.extractor__dropzone--compact .dropzone__title{flex:1 1 220px;font-size:1rem;margin:0}.extractor__dropzone--compact .dropzone__button{flex-shrink:0}.extractor__dropzone--compact .dropzone__hint{display:none}.extractor__alert{border-radius:12px;padding:12px 16px;font-size:.95rem}.extractor__alert--error{background:#dc26261a;color:#b91c1c;border:1px solid rgba(220,38,38,.4)}.extractor__alert--warning{background:#eab30826;color:#92400e;border:1px solid rgba(234,179,8,.4)}.extractor__status{display:flex;align-items:center;gap:12px;font-size:.95rem}.extractor__workspace{display:flex;gap:24px}.extractor__sidebar{width:min(360px,100%);display:flex;flex-direction:column;gap:12px;position:sticky;top:8px}.extractor__toolbar{display:flex;flex-direction:column;gap:16px;padding:20px;border-radius:16px;background:var(--surface);box-shadow:var(--shadow)}.extractor__settings-toggle{align-self:flex-start;padding:8px 14px;border-radius:999px;border:1px solid var(--border);background:var(--surface-muted);cursor:pointer}.extractor__setting{display:flex;flex-direction:column;gap:8px}.extractor__setting-label{font-weight:600;font-size:.95rem}.extractor__setting-group{display:inline-flex;gap:12px;flex-wrap:wrap}.extractor__setting-group label{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;border:1px solid var(--border);background:var(--surface-muted);cursor:pointer;white-space:nowrap}.extractor__actions,.extractor__selection{display:flex;flex-direction:column;gap:8px}.extractor__actions button,.extractor__selection button{padding:10px 14px;border-radius:12px;border:1px solid var(--border);background:var(--surface-muted);cursor:pointer}.extractor__actions button:hover,.extractor__selection button:hover,.extractor__actions button:focus-visible,.extractor__selection button:focus-visible{border-color:var(--accent);outline:none}.extractor__job{display:flex;flex-direction:column;gap:6px;font-size:.9rem}.extractor__job-meta{color:var(--text-muted)}.extractor__content{flex:1;display:flex;flex-direction:column;gap:16px}.extractor__bar{background:var(--surface);border-radius:16px;padding:16px;display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center;box-shadow:var(--shadow)}.extractor__bar-group{display:inline-flex;gap:8px;flex-wrap:wrap;align-items:center}.extractor__bar-group button{padding:8px 16px;border-radius:999px;border:1px solid var(--border);background:var(--surface-muted);cursor:pointer}.extractor__bar-group button:disabled{opacity:.5;cursor:not-allowed}.extractor__bar-group button:hover:not(:disabled),.extractor__bar-group button:focus-visible{border-color:var(--accent);outline:none}.extractor__download-group{display:flex;gap:16px;flex-wrap:wrap;align-items:center}.extractor__download-subgroup{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.extractor__download-label{font-weight:600;font-size:.9rem;color:var(--text-muted);padding:0 4px;white-space:nowrap}.extractor__download-subgroup button{padding:8px 14px;border-radius:999px;border:1px solid var(--border);background:var(--surface-muted);cursor:pointer;font-size:.9rem;white-space:nowrap}.extractor__download-subgroup button:disabled{opacity:.5;cursor:not-allowed}.extractor__download-subgroup button:hover:not(:disabled),.extractor__download-subgroup button:focus-visible{border-color:var(--accent);outline:none;background:var(--surface)}.extractor__gallery{display:grid;gap:16px}.extractor__gallery--grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}.extractor__gallery--list{grid-template-columns:1fr}.extractor-card{background:var(--surface);border-radius:16px;border:1px solid var(--border);box-shadow:var(--shadow);overflow:hidden;cursor:pointer;display:flex;flex-direction:column}.extractor-card--selected{border-color:var(--accent);box-shadow:0 16px 32px #2563eb2e}.extractor-card__header,.extractor-card__footer{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;font-size:.9rem}.extractor-card__checkbox{display:inline-flex;align-items:center;gap:6px;font-size:.85rem}.extractor-card__preview{display:flex;align-items:center;justify-content:center;padding:12px;background:var(--surface-muted);min-height:160px}.extractor-card__preview img{width:100%;height:auto;display:block;border-radius:12px}.extractor-card__preview span{color:var(--text-muted);font-size:.85rem}.extractor-card__footer button{padding:6px 12px;border-radius:999px;border:1px solid var(--border);background:var(--surface-muted);cursor:pointer}.extractor-card__footer button:hover,.extractor-card__footer button:focus-visible{border-color:var(--accent);outline:none}.extractor-card--dragging{opacity:.85;box-shadow:0 18px 40px #0f172a33}@media (max-width: 960px){.site-header__inner{grid-template-columns:1fr;justify-items:stretch;gap:12px}.site-header__nav{justify-content:flex-start}.site-header__actions{width:100%;justify-content:space-between}.site-header__switcher,.site-header__bookmark{justify-self:flex-start}.tool-switcher{width:100%;justify-content:space-between}.tool-switcher__link{flex:1 1 auto;text-align:center}.hero{flex-direction:column;align-items:flex-start}.file-list,.page-board{padding:20px}.page-board__grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.extractor__workspace{flex-direction:column}.extractor__setting-group label{white-space:normal}.extractor__sidebar{position:static}.extractor__gallery--grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}}@media (max-width: 640px){.site-header__actions{flex-wrap:wrap;gap:8px}.lang-switcher__menu{width:min(320px,90vw);grid-template-columns:1fr}.lang-switcher__label{display:none}.debug-lang__meta{flex-direction:column;gap:12px}}@media (max-width: 600px){.dropzone{padding:32px 16px}.export-bar{padding:12px 16px}.export-bar__inner{align-items:stretch}.export-bar__controls{width:100%}.export-bar__controls button{flex:1 1 auto;justify-content:center}.toast-stack{inset:auto 16px 16px}}
