:root{--font-ui:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, monospace;--color-bg:#f6f7f9;--color-surface:#fff;--color-surface-soft:#f3f4f7;--color-surface-sunk:#ecedf1;--color-control:#fff;--color-border:#e4e6eb;--color-border-strong:#cfd2da;--color-border-soft:#eef0f4;--color-text:#232428;--color-text-strong:#424348;--color-text-label:#55565c;--color-text-muted:#696a71;--color-text-subtle:#8a8b93;--color-accent:#ff4a0e;--color-accent-strong:#c43504;--color-accent-soft:#ffede5;--color-accent-hover:#fd5d04;--color-danger:#b91c1c;--color-danger-strong:#991b1b;--color-danger-soft:#fef2f2;--color-danger-border:#fecaca;--color-success:#047857;--color-success-soft:#ecfdf5;--color-success-border:#a7f3d0;--color-warn:#92400e;--color-warn-soft:#fef3c7;--color-warn-border:#fde68a;--color-info-soft:#e0f2fe;--color-info:#075985;--color-info-border:#7dd3fc;--color-on-accent:#1d1d20;--color-on-danger:#fff;--color-sheet-guide:#64748b;--color-sheet-alert:#b91c1c;--color-sheet-ink:#fff;--color-sheet-ink-dark:#1d1d20;--color-sheet-shade:#0000008c;--color-sheet-hatch:#80808052;--sheet-ghost-opacity:.4;--color-sheet-checker:#e6e7eb;--color-sheet-checker-dark:#2c2d32;--radius-xs:4px;--radius-sm:6px;--radius-md:8px;--radius-lg:12px;--radius-pill:999px;--shadow-card:0 1px 2px #0f172a0a;--shadow-popup:0 8px 24px #0f172a26;--focus-ring:2px solid var(--color-accent-strong);--focus-ring-offset:2px;--select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23696a71' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark]{--color-bg:#151515;--color-surface:#1d1d20;--color-surface-soft:#25262a;--color-surface-sunk:#1a1c21;--color-control:#25262a;--color-border:#565656;--color-border-strong:#7d7c74;--color-border-soft:#2e2e2e;--color-text:#f3f3f1;--color-text-strong:#e4e4e2;--color-text-label:#b3b9bf;--color-text-muted:#8f8e85;--color-text-subtle:#6b707a;--color-accent:#ff4a0e;--color-accent-strong:#fd5d04;--color-accent-soft:#2b1c00;--color-accent-hover:#fd5d04;--color-danger:#d77570;--color-danger-strong:#d77570;--color-danger-soft:#4a1411;--color-danger-border:#7f2a2a;--color-success:#38d283;--color-success-soft:#314e16;--color-success-border:#1f6a4e;--color-warn:#e4b669;--color-warn-soft:#4a3100;--color-warn-border:#6c5518;--color-info-soft:#16293b;--color-info:#7dd3fc;--color-info-border:#24557a;--color-on-accent:#1d1d20;--color-on-danger:#fff;--shadow-card:0 1px 2px #00000080;--shadow-popup:0 8px 24px #0009;--select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238f8e85' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-theme=dark] .ui-btn--danger{background:#c8433c;border-color:#c8433c}:root[data-theme=dark] .ui-btn--danger:hover:not(:disabled){background:#b33832;border-color:#b33832}*{box-sizing:border-box}input[type=checkbox]{accent-color:#1a9957}.visually-hidden{clip:rect(0, 0, 0, 0);clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}html,body{font-family:var(--font-ui);background:var(--color-bg);color:var(--color-text);margin:0;padding:0}main{max-width:1200px;margin:0 auto;padding:32px 20px 64px}h1{margin:0 0 8px;font-size:28px}.subtitle{color:var(--color-text-subtle);margin:0 0 24px}.card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);margin-bottom:20px;padding:20px 24px 24px}.card h2{margin:0 0 16px;font-size:18px}.upload-zone{border:2px dashed var(--color-border-strong);text-align:center;background:var(--color-surface-soft);cursor:pointer;border-radius:10px;padding:32px;transition:border-color .15s,background .15s}.upload-zone:hover,.upload-zone.dragover{border-color:var(--color-accent);background:var(--color-accent-soft)}.upload-zone input{display:none}.upload-zone__files{overflow-wrap:anywhere;max-width:100%}.upload-pick-btn{border:1px solid var(--color-border-strong);background:var(--color-surface);color:var(--color-text-strong);font:inherit;border-radius:12px;padding:10px 16px;font-weight:600}.drop-target.dragover{outline:2px dashed var(--color-accent);outline-offset:2px;background:var(--color-accent-soft);border-radius:8px}.upload-drop-btn{border:2px dashed var(--color-border-strong);border-radius:var(--radius-md);background:var(--color-control);width:100%;color:var(--color-text-strong);font:inherit;text-align:center;cursor:pointer;justify-content:center;align-items:center;gap:8px;padding:14px 16px;font-size:14px;line-height:1.3;transition:border-color .15s;display:flex}.upload-drop-btn:hover{border-color:var(--color-accent)}.upload-drop-btn:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.upload-drop-btn[aria-busy=true]{color:var(--color-text-label);cursor:progress}.upload-drop-btn svg{flex:none}.sheet-list{gap:8px;display:grid}.sheet-item{border-radius:var(--radius-md);background:var(--color-surface-soft);align-items:center;gap:10px;padding:8px 10px;display:flex}.sheet-pick{flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none;display:flex}.sheet-pick__item{border:1px dashed var(--color-border-strong);border-radius:var(--radius-pill);background:0 0;align-items:center;gap:6px;min-width:0;max-width:100%;padding:0 2px 0 12px;display:flex}.sheet-pick__item[data-in-menu]{background:var(--color-control);border-style:solid}.sheet-pick__item[data-open]{border-color:var(--color-accent);background:var(--color-accent-soft)}.sheet-pick__item[data-open][data-in-menu]{box-shadow:inset 0 0 0 1px var(--color-accent)}.sheet-pick__check{cursor:pointer;flex:none;width:16px;height:16px;margin:0}.sheet-pick__name{border-radius:var(--radius-pill);min-width:0;min-height:32px;color:var(--color-text-muted);font:inherit;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;background:0 0;border:none;padding:0 10px 0 2px;font-size:13px;line-height:1.3;overflow:hidden}.sheet-pick__item[data-in-menu] .sheet-pick__name{color:var(--color-text)}.sheet-pick__item[data-open] .sheet-pick__name{color:var(--color-text);font-weight:700}.sheet-pick__name:hover{text-underline-offset:3px;text-decoration:underline}.sheet-pick__check:focus-visible,.sheet-pick__name:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.sheet-pick__status{color:var(--color-text-label);overflow-wrap:anywhere;margin:10px 0 0;font-size:13px;line-height:1.45}.sheet-pick__status[data-empty]{color:var(--color-warn);font-weight:600}@media (pointer:coarse){.sheet-pick__check{width:20px;height:20px}.sheet-pick__name{min-height:40px}}.table-wrap{border:1px solid var(--color-border);border-radius:var(--radius-md);max-height:420px;overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}td{border-bottom:1px solid var(--color-border-soft);border-right:1px solid var(--color-border-soft);white-space:nowrap;text-overflow:ellipsis;max-width:220px;padding:6px 8px;overflow:hidden}tr:focus-visible,tr.row-highlight{outline:var(--focus-ring);outline-offset:-4px}tr.row-highlight{background:var(--color-warn-soft)}tr.category-row td{background:var(--color-warn-soft);font-weight:600}:root[data-theme=dark] tr.category-row td{color:#1d1d20;background:#c8a600}tr.note-row td{background:var(--color-info-soft);font-style:italic}tr.note-row td:first-child{border-left:4px solid var(--color-info)}tr.note-row:is(:focus-visible,.row-highlight){outline:2px solid var(--color-info);outline-offset:-2px}.note-mark{color:var(--color-info);white-space:normal;margin-top:2px;font-size:12px;font-style:normal;font-weight:400;display:block}.note-mark[data-note-state=lost]{color:var(--color-warn);font-weight:600}.note-side{gap:0;display:inline-flex}.note-side>button{text-overflow:ellipsis;white-space:nowrap;max-width:18ch;overflow:hidden}.note-side>button+button{margin-left:-1px}.note-side>button[aria-pressed=true]{background:var(--color-info);color:var(--color-surface);border-color:var(--color-info)}.structure-note{border:1px dashed var(--color-info-border);border-left:4px solid var(--color-info);background:var(--color-info-soft);color:var(--color-text);border-radius:10px;align-items:baseline;gap:8px;margin:4px 0;padding:6px 10px;font-size:13px;font-style:italic;list-style:none;display:flex}.structure-note__tag{color:var(--color-info);flex:none;font-size:11px;font-style:normal;font-weight:600}.structure-note__text{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.structure-note[data-dragging]{opacity:.45;outline:1px dashed var(--color-border-strong);outline-offset:-1px}.note-side>button[data-note-choice=hidden]{color:var(--color-text-muted);text-decoration:line-through;text-decoration-thickness:1px}.note-side>button[data-note-choice=hidden]:after{content:" (скрыта)";text-decoration:none;display:inline-block}.note-side>button[data-note-choice=empty]{opacity:.5;cursor:not-allowed}@media (forced-colors:active){.note-side>button[data-note-choice=hidden]{color:graytext;border-style:dashed}}tr.note-row button,.note-side>button{box-sizing:border-box;min-width:24px;min-height:24px}[data-category-drop][data-note-drop=before]{box-shadow:0 -3px 0 0 var(--color-info)}[data-category-drop][data-note-drop=after]{box-shadow:0 3px 0 0 var(--color-info)}@media (forced-colors:active){tr.note-row td:first-child,.structure-note{border-left-color:canvastext}.note-side>button[aria-pressed=true]{forced-color-adjust:none;color:highlighttext;background:highlight;border-color:highlight}[data-category-drop][data-note-drop]{outline-offset:2px;outline:3px solid highlight}}.structure-break{box-sizing:border-box;border:1px solid var(--color-border-strong);background:var(--color-surface);min-width:24px;min-height:24px;color:var(--color-text);font:inherit;cursor:pointer;border-radius:6px;flex:none;padding:0 8px;font-size:12px}.structure-break[aria-pressed=true]{background:var(--color-info);border-color:var(--color-info);color:var(--color-surface)}.structure-break[data-break-state=inactive]{color:var(--color-text-muted);background:0 0;border-style:dashed}.structure-break[data-break-state=inactive][aria-pressed=true]{border-color:var(--color-info);color:var(--color-info)}.structure-break:focus-visible{outline:2px solid var(--color-focus,var(--color-info));outline-offset:2px}.break-mark{color:#1d1d20;white-space:normal;margin-top:2px;font-size:12px;font-style:normal;font-weight:600;display:block}.break-mark[data-break-state=inactive]{color:#5a5a60;font-style:italic;font-weight:400}:root[data-theme=dark] .break-mark,:root[data-theme=dark] .break-mark[data-break-state=inactive]{color:#1d1d20}@media (forced-colors:active){.structure-break[aria-pressed=true]{forced-color-adjust:none;color:highlighttext;background:highlight;border-color:highlight}.structure-break[data-break-state=inactive],.structure-break[data-break-state=inactive][aria-pressed=true]{forced-color-adjust:none;color:graytext;background:0 0;border-color:graytext}.break-mark[data-break-state=inactive]{color:graytext}}:root[data-theme=dark] tr.category-row:is(:focus-visible,.row-highlight){outline-color:#1d1d20}tr.header-row td{background:var(--color-info-soft);font-weight:600}tr[data-removed-row] td,:root[data-theme=dark] tr.category-row[data-removed-row] td{background:var(--color-surface-sunk);color:var(--color-text-label)}:root[data-theme=dark] tr.category-row[data-removed-row]:is(:focus-visible,.row-highlight){outline-color:var(--color-accent-strong)}tr[data-removed-row] td>:is(button,span,input):not([data-row-buttons]){text-decoration:line-through}tr[data-removed-row]:is(.assign-target,.assign-remove):hover td{color:var(--color-text)}:root tr td[data-edited],:root[data-theme=dark] tr.category-row td[data-edited]{background:var(--color-success-soft);color:var(--color-text)}.cell-editor{border:1px solid var(--color-accent-soft);border-radius:var(--radius-sm);background:var(--color-control);width:100%;color:var(--color-text);font:inherit;resize:vertical;padding:4px}.category-name-input{border:1px solid var(--color-border-strong);border-radius:var(--radius-sm);background:var(--color-control);color:var(--color-text);font:inherit;padding:1px 5px;font-size:12px}[data-inserted-row]{color:inherit;white-space:nowrap;font-size:11px;font-weight:400}[data-row-buttons]{flex-wrap:wrap;row-gap:4px;max-width:calc(100% - 8px)}[data-row-buttons]>*+:is([data-remove-row],.row-actions--end){margin-left:8px}[data-row-buttons] button:disabled{opacity:.5;cursor:not-allowed}.row-actions{opacity:0;align-items:center;gap:4px;transition:opacity .1s;display:inline-flex}tr:hover .row-actions,.row-actions:focus-within{opacity:1}tr:has([data-inserted-row]) .row-actions{opacity:1}@media (hover:none),(pointer:coarse){.row-actions{opacity:1;transition:none}}@media (pointer:coarse){[data-row-buttons] button,[data-row-buttons] input{min-width:24px;min-height:24px}[data-row-buttons] :is([data-remove-structure-row],[data-remove-row],[data-restore-structure-row]){min-width:40px;min-height:40px}}.row-tools{grid-template-columns:repeat(2,1fr);grid-auto-rows:1fr;gap:6px 8px;margin-left:auto;display:inline-grid}.row-tools>button{white-space:nowrap;text-align:center;line-height:1.25}.row-tools>button:after{content:attr(data-label);content:attr(data-label) / "";visibility:hidden;height:0;display:block;overflow:hidden}@media (max-width:480px){.row-tools{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;margin-left:0}.row-tools>button{white-space:normal}}@media (pointer:coarse){.row-tools>button{min-height:40px}}tr[data-removed-row].assign-target:hover td{cursor:default}tr.assign-target:hover td{background:var(--color-warn-border);cursor:pointer}tr.assign-remove:hover td{background:var(--color-danger-border);cursor:pointer}:root tr td.search-match{background:var(--color-warn-soft)}td.search-match--current{outline:var(--focus-ring);outline-offset:-4px}:root tr.category-row td.search-match{background:var(--color-warn-border)}:root[data-theme=dark] tr.category-row td.search-match{background:var(--color-warn-soft);color:var(--color-text)}.controls{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;display:grid}label.field,.field-group{color:var(--color-text-label);flex-direction:column;gap:6px;font-size:13px;display:flex}select{border:1px solid var(--color-border-strong);border-radius:var(--radius-md);background:var(--color-control);color:var(--color-text);padding:8px 10px;font-size:14px}select:not([multiple],[size]){appearance:none;background-image:var(--select-chevron)!important;background-position:right 10px center!important;background-repeat:no-repeat!important;background-size:10px 6px!important;padding-right:28px!important}select:disabled{opacity:.55;cursor:not-allowed}.select-chevron{width:10px;height:6px;color:var(--color-text-muted);flex:none}@media (forced-colors:active){select:not([multiple],[size]){appearance:auto;background-image:none!important}}.tags{flex-wrap:wrap;gap:8px;display:flex}.tag{background:var(--color-success-soft);color:var(--color-success);border:1px solid var(--color-success-border);border-radius:var(--radius-pill);padding:4px 10px;font-size:12px}.tag.muted{background:var(--color-surface-sunk);color:var(--color-text-muted);border-color:var(--color-border)}.empty{color:var(--color-text-muted);font-size:14px}.hint{color:var(--color-text-muted);margin-top:8px;font-size:13px}.problem-item .hint{color:var(--color-text-label)}.footer-section{flex-direction:column;gap:12px;display:flex}.footer-field{flex-direction:column;gap:6px;display:flex}.footer-field__meta{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 12px;display:flex}.footer-field__meta .ui-field__hint{color:var(--color-text-label)}textarea.footer-text{resize:vertical;min-height:80px;max-height:320px;padding:8px 10px;font-size:14px;line-height:1.4}.footer-count{color:var(--color-text-label);font-variant-numeric:tabular-nums;white-space:nowrap;margin-left:auto;font-size:12px}.footer-count[data-level=near]{color:var(--color-warn)}.footer-count[data-level=full]{color:var(--color-danger);font-weight:600}.cover-section{flex-direction:column;gap:12px;display:flex}.cover-section .ui-checkbox{margin-bottom:0}.cover-check[data-disabled]{color:var(--color-text-muted);cursor:default}.cover-check__hint{color:var(--color-text-label);margin-top:2px;font-size:12px;display:block}.cover-empty{border:1px dashed var(--color-border-strong);border-radius:var(--radius-md);color:var(--color-text-label);margin:0;padding:12px;font-size:13px;line-height:1.45}.cover-fields{border-top:1px solid var(--color-border);flex-direction:column;gap:12px;padding-top:12px;display:flex}.cover-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.cover-row__label{color:var(--color-text-strong);font-size:13px}.cover-logo__media{align-items:flex-start;gap:12px;min-width:0;display:flex}.cover-logo__thumb{box-sizing:border-box;object-fit:contain;border:1px solid var(--color-border);border-radius:var(--radius-sm);background-color:var(--color-sheet-ink);background-image:repeating-conic-gradient(var(--color-sheet-checker) 0 25%, transparent 0 50%);background-size:8px 8px;flex:none;width:72px;height:48px;padding:3px}.cover-logo__thumb[data-empty]{border:1px dashed var(--color-border-strong);background:var(--color-control)}.cover-logo__meta{flex-direction:column;flex:1 1 0;align-items:flex-start;gap:4px;min-width:0;display:flex}.cover-logo__source{max-width:100%;color:var(--color-text-strong);overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;font-weight:500;line-height:1.4;display:-webkit-box;overflow:hidden}.cover-logo__source[data-tone=muted]{color:var(--color-text-label);font-weight:400}.cover-logo__source[data-tone=error]{color:var(--color-danger)}.cover-logo__kind{color:var(--color-text-label);font-size:12px;line-height:1.4}.cover-logo__kind[data-kind=vector]{color:var(--color-success)}.cover-logo__kind[data-kind=raster]{color:var(--color-warn)}.cover-logo__meta .ui-btn{text-align:left;max-width:100%}.cover-logo__drop-hint{color:var(--color-text-label);margin:-4px 0 0;font-size:12px;line-height:1.4}.cover-logo__size{flex-direction:column;gap:6px;display:flex}.cover-logo__size-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 12px;display:flex}.cover-logo__range{width:100%;min-width:0;margin:0}.cover-logo__range:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.cover-field{flex-direction:column;gap:6px;display:flex}.cover-card{border:1px solid var(--color-border);border-radius:var(--radius-md);flex-direction:column;gap:8px;padding:10px;display:flex}.cover-card__head,.cover-card__tools,.cover-add,.cover-plate{flex-wrap:wrap;align-items:center;gap:6px 8px;display:flex}.cover-card__head{justify-content:space-between}.cover-plate__opacity{color:var(--color-text-label);align-items:center;gap:6px;font-size:13px;display:flex}textarea.cover-text{resize:vertical;min-height:60px;max-height:240px;padding:8px 10px;font-size:14px;line-height:1.4}.cover-card[data-selected]{border-color:var(--color-accent);box-shadow:0 0 0 3px var(--color-accent-soft)}.cover-pos{flex-wrap:wrap;align-items:center;gap:8px 12px;display:flex}.cover-pos__field{display:contents}.cover-qr__link{flex-wrap:wrap;align-items:center;gap:6px 8px;display:flex}.cover-qr__link>input{flex:12rem}.cover-qr__link>.ui-btn{flex:none}.cover-card[data-draft]{border-style:dashed;border-color:var(--color-border-strong)}.cover-qr__color{color:var(--color-text-strong);align-items:center;gap:6px;font-size:13px;display:inline-flex}.cover-contacts__lines{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex;container:cover-contacts/inline-size}.cover-contact{grid-template-columns:20px minmax(0,9em) minmax(0,1fr) auto;grid-template-areas:"glyph icon text remove";align-items:center;gap:6px;display:grid}.cover-contact__glyph{width:20px;height:20px;color:var(--color-text-strong);grid-area:glyph;justify-content:center;align-items:center;display:flex}.cover-contact__glyph svg{width:20px;height:20px;display:block}.cover-contact__icon{border-radius:var(--radius-xs);grid-area:icon;width:100%;min-width:0;padding:6px 8px;font-size:14px}.cover-contact__icon:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.cover-contact .cover-contact__text{grid-area:text;min-width:0;padding:6px 10px;font-size:14px}.cover-contact .cover-contact__remove{grid-area:remove;justify-content:center;min-width:32px;min-height:32px;padding:0;font-size:16px}@media (pointer:coarse){.cover-contact .cover-contact__remove{min-width:44px;min-height:44px}}@container cover-contacts (max-width:339px){.cover-contact{grid-template-columns:20px minmax(0,1fr) auto;grid-template-areas:"glyph icon remove""text text text"}}.cover-pages{flex-direction:column;gap:6px;display:flex}.cover-pages__list{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.cover-page{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);flex-wrap:wrap;align-items:center;gap:2px 8px;padding-right:4px;display:flex}.cover-page[data-active]{border-color:var(--color-accent);background:var(--color-accent-soft);box-shadow:inset 3px 0 0 var(--color-accent)}.cover-page__name{border-radius:var(--radius-md);min-width:0;min-height:36px;color:var(--color-text-strong);font:inherit;text-align:left;overflow-wrap:anywhere;cursor:pointer;background:0 0;border:0;flex:8rem;padding:6px 10px 6px 12px;font-size:14px;line-height:1.3}.cover-page__name:hover{background:var(--color-surface-soft)}.cover-page__name:focus-visible{outline:var(--focus-ring);outline-offset:-2px}.cover-page[data-active] .cover-page__name{color:var(--color-text);cursor:default;font-weight:600}.cover-page[data-active] .cover-page__name:hover{background:0 0}.cover-page[data-active] .ui-btn--ghost:hover:not(:disabled){background:var(--color-surface)}.cover-page__tools{margin-left:auto}.cover-pages__menu{color:var(--color-text-label);align-items:center;gap:8px;margin:2px 0;font-size:12px;line-height:1.3;display:flex}.cover-pages__menu:before,.cover-pages__menu:after{content:"";border-top:1px dashed var(--color-border-strong);flex:1 1 0}.cover-fields__title{border-left:3px solid var(--color-accent);color:var(--color-text);margin:0;padding-left:9px;font-size:14px;font-weight:600;line-height:1.3}@media (pointer:coarse){.cover-page__name{min-height:44px}.cover-page .ui-btn{min-width:44px;min-height:44px}}.sheet-caption{color:var(--color-text-muted);flex-wrap:wrap;align-items:baseline;gap:2px 8px;margin-bottom:4px;font-size:12px;line-height:1.4;display:flex}.sheet-caption__mark{color:var(--color-accent-strong);font-weight:600}.sheet-caption__edit{border-radius:var(--radius-sm);color:var(--color-accent-strong);font:inherit;text-underline-offset:2px;cursor:pointer;background:0 0;border:0;padding:2px 6px;text-decoration:underline}.sheet-caption__edit:hover{background:var(--color-accent-soft)}.sheet-caption__edit:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}[data-sheet-item][data-editing] .sheet-caption{color:var(--color-text-strong);font-weight:600}[data-sheet-item][data-editing] [data-sheet-frame]{box-shadow:0 0 0 2px var(--color-accent)}@media (forced-colors:active){.cover-page[data-active]{border:2px solid highlight}[data-sheet-item][data-editing] [data-sheet-frame]{outline-offset:2px;outline:2px solid highlight}}.cover-el{outline:none}.cover-el__hit{fill:#0000;stroke:none;pointer-events:all;cursor:move}.cover-el[data-draft] .cover-el__hit{fill:var(--color-accent);fill-opacity:.08}.cover-el[data-selected] .cover-el__hit,.cover-handle__hit{touch-action:none}.cover-el__halo,.cover-el__frame,.cover-el__ring{fill:none;vector-effect:non-scaling-stroke;pointer-events:none;visibility:hidden}.cover-el__halo{stroke:var(--color-sheet-ink);stroke-opacity:.85;stroke-width:4px}.cover-el__frame{stroke:var(--color-accent);stroke-width:2px}.cover-el[data-selected] .cover-el__halo,.cover-el[data-selected] .cover-el__frame,.cover-el:focus-visible .cover-el__halo,.cover-el:focus-visible .cover-el__frame{visibility:visible}@media (hover:hover) and (pointer:fine){.cover-overlay:not([data-dragging]) .cover-el:hover .cover-el__halo,.cover-overlay:not([data-dragging]) .cover-el:hover .cover-el__frame{visibility:visible}.cover-el:hover:not([data-selected],:focus-visible) .cover-el__halo{stroke-opacity:.7;stroke-width:3px}.cover-el:hover:not([data-selected],:focus-visible) .cover-el__frame{stroke-width:1px}}.cover-el:focus-visible .cover-el__ring{visibility:visible;stroke:var(--color-accent-strong);stroke-width:2px;filter:drop-shadow(0 0 1px var(--color-sheet-ink))}.cover-handle{pointer-events:auto}.cover-handle__hit{fill:#0000;stroke:none;pointer-events:all}.cover-handle[data-cover-handle=nw] .cover-handle__hit,.cover-handle[data-cover-handle=se] .cover-handle__hit{cursor:nwse-resize}.cover-handle[data-cover-handle=ne] .cover-handle__hit,.cover-handle[data-cover-handle=sw] .cover-handle__hit{cursor:nesw-resize}.cover-handle[data-cover-handle=e] .cover-handle__hit,.cover-handle[data-cover-handle=w] .cover-handle__hit{cursor:ew-resize}.cover-handle__mark{fill:var(--color-sheet-ink);stroke:var(--color-accent);stroke-width:1.5px;vector-effect:non-scaling-stroke;pointer-events:none;filter:drop-shadow(0 0 1px var(--color-sheet-shade))}@media (hover:hover) and (pointer:fine){.cover-overlay:not([data-dragging]) .cover-handle:hover .cover-handle__mark{fill:var(--color-accent);stroke:var(--color-sheet-ink)}}.cover-handle[data-active] .cover-handle__mark{fill:var(--color-accent);stroke:var(--color-sheet-ink)}.cover-overlay[data-dragging=move] .cover-handles{visibility:hidden}.cover-overlay[data-dragging]:not([data-dragging=move]) .cover-handle:not([data-active]){opacity:.35}.cover-guide{pointer-events:none}.cover-guide__halo,.cover-guide__line{fill:none;vector-effect:non-scaling-stroke}.cover-guide__halo{stroke:var(--color-sheet-ink);stroke-opacity:.85;stroke-width:3px}.cover-guide__line{stroke:var(--color-accent);stroke-width:1px}body.is-cover-dragging{-webkit-user-select:none;user-select:none}body.is-cover-dragging:has(.cover-overlay[data-dragging=move]){--cover-drag-cursor:move}body.is-cover-dragging:has(.cover-overlay[data-dragging=nwse]){--cover-drag-cursor:nwse-resize}body.is-cover-dragging:has(.cover-overlay[data-dragging=nesw]){--cover-drag-cursor:nesw-resize}body.is-cover-dragging:has(.cover-overlay[data-dragging=ew]){--cover-drag-cursor:ew-resize}body.is-cover-dragging,body.is-cover-dragging *{cursor:var(--cover-drag-cursor,default)}.cover-overlay[data-dragging] :is(.cover-el__hit,.cover-handle__hit){cursor:inherit}.cover-el-bar{z-index:3;box-sizing:border-box;border:1px solid var(--color-sheet-shade);border-radius:var(--radius-pill);background:var(--color-sheet-ink);width:104px;height:28px;box-shadow:0 1px 3px var(--color-sheet-shade);color:var(--color-sheet-ink-dark);font:inherit;white-space:nowrap;-webkit-user-select:none;user-select:none;touch-action:manipulation;align-items:center;padding:0 1px;font-size:12px;line-height:1;animation:.12s ease-out photo-zoom-in;display:inline-flex;position:absolute;overflow:hidden}.cover-el-bar[data-compact]{width:28px}.cover-el-bar__button{box-sizing:border-box;border-radius:var(--radius-pill);min-width:0;height:24px;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;flex:auto;justify-content:center;align-items:center;gap:4px;margin:0;padding:0 8px 0 6px;display:inline-flex}.cover-el-bar[data-compact] .cover-el-bar__button{padding:0}.cover-el-bar[data-compact] .cover-el-bar__text{display:none}@media (hover:hover) and (pointer:fine){.cover-el-bar__button:hover{background:var(--color-sheet-ink-dark);color:var(--color-sheet-ink)}}.cover-el-bar__button:active{background:var(--color-sheet-ink-dark);color:var(--color-sheet-ink)}.cover-el-bar__button:focus-visible{outline:var(--focus-ring);outline-offset:1px}.cover-el-bar__icon{fill:none;stroke:currentColor;stroke-width:1.75px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:14px;height:14px}body.is-cover-dragging .cover-el-bar{visibility:hidden}@media (pointer:coarse){.cover-el-bar{width:124px;height:44px;font-size:13px}.cover-el-bar[data-compact]{width:44px}.cover-el-bar__button{height:40px;padding:0 12px 0 10px}}@media (prefers-reduced-motion:reduce){.cover-el-bar{animation:none}}@media (forced-colors:active){.cover-el__frame,.cover-el__ring,.cover-guide__line,.cover-handle__mark{stroke:highlight}.cover-el__halo,.cover-guide__halo{stroke:canvas}.cover-handle__mark{fill:canvas;filter:none}}.sheet-art__head{flex-wrap:wrap;align-items:center;gap:6px 8px;display:flex}.sheet-art__head>h4{margin:0}.sheet-art__count{font-variant-numeric:tabular-nums;color:var(--color-text-label);font-size:12px}.sheet-art__edit{margin-left:auto}.sheet-art__edit[aria-pressed=true],.sheet-art-bar__toggle[aria-pressed=true],.header-pos__edit[aria-pressed=true]{border-color:var(--color-accent-strong);background:var(--color-accent-soft);box-shadow:inset 0 0 0 1px var(--color-accent-strong);color:var(--color-text-strong)}.sheet-art__lead,.sheet-art__hint{color:var(--color-text-label);margin:0;font-size:12px;line-height:1.4}.sheet-art__list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.sheet-art__top{align-items:flex-start;gap:12px;min-width:0;display:flex}.sheet-art__thumb{box-sizing:border-box;border:1px solid var(--color-border-strong);border-radius:var(--radius-sm);background:var(--sheet-art-paper,var(--color-sheet-ink));cursor:pointer;flex:none;justify-content:center;align-items:center;width:72px;height:48px;margin:0;padding:3px;display:flex;overflow:hidden}.sheet-art__thumb>svg{width:100%;height:100%;display:block}@media (hover:hover) and (pointer:fine){.sheet-art__thumb:hover{border-color:var(--color-accent)}}.sheet-art__thumb:focus-visible,.sheet-art__chip:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.sheet-art__meta{flex-direction:column;flex:1 1 0;gap:2px;min-width:0;display:flex}.sheet-art__name{max-width:100%;color:var(--color-text-strong);overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;font-weight:500;line-height:1.4;display:-webkit-box;overflow:hidden}.sheet-art__size{font-variant-numeric:tabular-nums;color:var(--color-text-label);font-size:12px;line-height:1.4}.sheet-art__remove{flex:none}.sheet-art__row{flex-wrap:wrap;align-items:center;gap:6px 8px;min-height:28px;display:flex}.sheet-art__label{color:var(--color-text-label);font-size:12px}.sheet-art__range{flex:96px;min-width:0;max-width:160px;margin:0}.sheet-art__range:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.sheet-art__output{font-variant-numeric:tabular-nums;min-width:4ch;color:var(--color-text);font-size:12px}.sheet-art__pages{flex-wrap:wrap;align-items:center;gap:4px 8px;display:flex}.sheet-art__chips{flex-wrap:wrap;flex:auto;align-items:center;gap:4px;min-width:0;display:flex}.sheet-art__chip{box-sizing:border-box;border:1px solid var(--color-border-strong);border-radius:var(--radius-md);background:var(--color-control);min-width:32px;min-height:28px;color:var(--color-text);font:inherit;font-variant-numeric:tabular-nums;cursor:pointer;justify-content:center;align-items:center;margin:0;padding:0 8px;font-size:12px;line-height:1;display:inline-flex}@media (hover:hover) and (pointer:fine){.sheet-art__chip:hover:not(:disabled){border-color:var(--color-accent)}}.sheet-art__chip[aria-pressed=true]{border-color:var(--color-accent-strong);background:var(--color-accent-soft);box-shadow:inset 0 0 0 1px var(--color-accent-strong);font-weight:600}.sheet-art__chip[data-ghost]{border-style:dashed;border-color:var(--color-border-strong);box-shadow:none;color:var(--color-text-label);background:0 0;font-weight:400;text-decoration:line-through}.sheet-art__chip:disabled{opacity:.45;cursor:not-allowed}.sheet-art__pages-input{font-variant-numeric:tabular-nums;flex:10rem;min-width:0;max-width:16rem}.sheet-art__upload{flex-direction:column;gap:4px;display:flex}.upload-drop-btn[aria-disabled=true]{opacity:.55;cursor:not-allowed}.upload-drop-btn[aria-disabled=true]:hover{border-color:var(--color-border-strong)}.sheet-art-bar{flex-wrap:wrap;align-items:center;gap:4px 12px;margin-bottom:6px;display:flex}.sheet-art-bar__hint{color:var(--color-text-label);flex:14rem;margin:0;font-size:12px;line-height:1.4}[data-sheet-anchor][data-art-expanded]{z-index:1000;box-sizing:border-box;background:var(--color-surface-sunk);overscroll-behavior:contain;flex-direction:column;display:flex;inset:0;position:fixed!important}[data-sheet-anchor][data-art-expanded] .sheet-art-bar{padding:8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));padding-top:max(8px, env(safe-area-inset-top));border-bottom:1px solid var(--color-border);background:var(--color-surface);flex:none;margin:0}[data-sheet-anchor][data-art-expanded] .sheet-art-bar__hint{order:1}.sheet-art-bar__done{order:2;margin-inline-start:auto}.sheet-art-stage{display:contents}[data-sheet-anchor][data-art-expanded] .sheet-art-stage{min-height:0;padding:12px max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));flex:1 1 0;justify-content:safe center;align-items:safe center;display:flex;overflow:auto}@media (max-width:480px){[data-sheet-anchor][data-art-expanded] .sheet-art-bar{padding-inline:12px}[data-sheet-anchor][data-art-expanded] .sheet-art-bar__hint{flex-basis:100%;order:3}.sheet-art-bar__done{min-height:44px}[data-sheet-anchor][data-art-expanded] .sheet-art-stage{padding:8px}}body.is-art-expanded{overflow:hidden}.logo-auto{border:0;flex-wrap:wrap;align-items:center;gap:6px;min-width:0;margin:0;padding:0;display:inline-flex}.logo-auto:disabled{opacity:.5}.logo-auto:disabled :is(button,input){cursor:not-allowed!important}.header-wrap{pointer-events:none}.header-wrap__band{fill:var(--color-accent);fill-opacity:.12}.header-wrap__halo,.header-wrap__line{fill:none;vector-effect:non-scaling-stroke}.header-wrap__halo{stroke:var(--color-sheet-ink);stroke-opacity:.85;stroke-width:3px}.header-wrap__line{stroke:var(--color-accent);stroke-width:1.5px;stroke-dasharray:6 4}@media (forced-colors:active){.header-wrap__band{fill:highlight;fill-opacity:.2}.header-wrap__halo{stroke:canvas}.header-wrap__line{stroke:highlight}}.cover-overlay[data-cover-target=art] .cover-el__halo,.cover-overlay[data-cover-target=art] .cover-el__frame{visibility:visible}.cover-overlay[data-cover-target=art] .cover-el:not([data-selected],:focus-visible) .cover-el__halo{stroke-opacity:.7;stroke-width:3px}.cover-overlay[data-cover-target=art] .cover-el:not([data-selected],:focus-visible) .cover-el__frame{stroke-width:1px}.cover-el[data-art-hidden] .cover-el__frame{stroke-dasharray:6 4}.cover-el[data-art-hidden] .cover-el__hit{cursor:pointer}.cover-el[data-art-hidden][data-selected] .cover-el__hit{fill:var(--color-accent);fill-opacity:.06}.cover-trim{pointer-events:none}.cover-trim__halo,.cover-trim__line{fill:none;vector-effect:non-scaling-stroke}.cover-trim__halo{stroke:var(--color-sheet-ink);stroke-opacity:.85;stroke-width:3px}.cover-trim__line{stroke:var(--color-sheet-ink-dark);stroke-dasharray:4 3;stroke-width:1px}.cover-el-bar[data-wide]{width:184px}.cover-el-bar[data-wide][data-compact]{width:28px}@media (pointer:coarse){.sheet-art__chip,.sheet-art__thumb,.sheet-art__remove,.sheet-art__edit,.sheet-art-bar__toggle,.sheet-art-bar__done,.sheet-art__rotate,.sheet-art .badge-side__opt{min-height:44px}.sheet-art__chip{min-width:44px}.sheet-art__range{min-height:44px}.cover-el-bar[data-wide]{width:212px}.cover-el-bar[data-wide][data-compact]{width:44px}}@media (forced-colors:active){.sheet-art__chip[aria-pressed=true],.sheet-art__edit[aria-pressed=true],.sheet-art-bar__toggle[aria-pressed=true],.header-pos__edit[aria-pressed=true]{border:2px solid highlight}.sheet-art__thumb{forced-color-adjust:none}.cover-trim__line{stroke:highlight}.cover-trim__halo{stroke:canvas}}.bg-vector{align-items:center;gap:12px;min-width:0;display:flex}.bg-vector__thumb{box-sizing:border-box;width:48px;aspect-ratio:var(--bg-vector-ratio,210 / 297);border:1px solid var(--color-border-strong);border-radius:var(--radius-sm);background:var(--bg-vector-paper,var(--color-sheet-ink));flex:none;overflow:hidden}.bg-vector__thumb>svg{width:100%;height:100%;display:block}.bg-vector__meta{min-width:0;color:var(--color-text-strong);flex-direction:column;flex:1 1 0;gap:2px;font-size:13px;line-height:1.4;display:flex}@media (forced-colors:active){.bg-vector__thumb{forced-color-adjust:none}}.sheet-stage[data-pasteboard]{box-sizing:border-box;width:fit-content;padding:var(--sheet-pasteboard,40px);border-radius:var(--radius-md);background-color:var(--sheet-paper,var(--color-sheet-ink));background-image:repeating-linear-gradient(-45deg, var(--color-sheet-hatch) 0 1px, transparent 1px 8px);outline:1px dashed var(--color-border-strong);outline-offset:-1px}[data-sheet-item][data-editing] .sheet-stage[data-pasteboard]{box-shadow:0 0 0 2px var(--color-accent);outline:none}[data-sheet-item][data-editing] .sheet-stage[data-pasteboard] [data-sheet-frame]{box-shadow:none}.sheet-ghost{opacity:var(--sheet-ghost-opacity);pointer-events:none}.sheet-edge{pointer-events:none}.sheet-edge__halo,.sheet-edge__line{fill:none;vector-effect:non-scaling-stroke}.sheet-edge__halo{stroke:var(--color-sheet-ink);stroke-opacity:.85;stroke-width:3px}.sheet-edge__line{stroke:var(--color-sheet-ink-dark);stroke-width:1px}.cover-handle[data-off-stage] .cover-handle__mark{transform-box:fill-box;transform-origin:50%;transform:rotate(45deg)}.cover-el__lift{fill:#0000;stroke:none;pointer-events:all;cursor:move;touch-action:none}.cover-overlay[data-dragging] .cover-el__lift{cursor:inherit}.cover-overlay[data-cover-page] .cover-el[data-cover-el-kind=art]:not([data-cover-bg]) .cover-el__halo,.cover-overlay[data-cover-page] .cover-el[data-cover-el-kind=art]:not([data-cover-bg]) .cover-el__frame{visibility:visible}.cover-overlay[data-cover-page] .cover-el[data-cover-el-kind=art]:not([data-cover-bg],[data-selected],:focus-visible) .cover-el__halo{stroke-opacity:.7;stroke-width:3px}.cover-overlay[data-cover-page] .cover-el[data-cover-el-kind=art]:not([data-cover-bg],[data-selected],:focus-visible) .cover-el__frame{stroke-width:1px}@media (forced-colors:active){.sheet-stage[data-pasteboard]{outline:1px dashed canvastext}[data-sheet-item][data-editing] .sheet-stage[data-pasteboard]{outline-offset:2px;outline:2px solid highlight}[data-sheet-item][data-editing] .sheet-stage[data-pasteboard] [data-sheet-frame]{outline:none}.sheet-edge__line{stroke:canvastext}.sheet-edge__halo{stroke:canvas}}.footer-row{flex-wrap:wrap;align-items:center;gap:8px 12px;display:flex}.footer-group-label{color:var(--color-text-strong);font-size:13px;font-weight:500}.footer-note{color:var(--color-text-label);margin:0;font-size:12px;line-height:1.4}.footer-note[data-tone=warn]{color:var(--color-warn)}.footer-note[data-tone=error]{color:var(--color-danger)}.footer-qr-block{border-top:1px solid var(--color-border);flex-direction:column;gap:8px;padding-top:12px;display:flex}.footer-qr-block__title{color:var(--color-text-strong);margin:0;font-size:14px;font-weight:600}.footer-qr-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.footer-qr{border:1px solid var(--color-border);border-radius:var(--radius-md);padding:10px}.footer-qr__body{flex-direction:column;gap:8px;display:flex}.footer-qr[data-footer-qr-draft]{border-style:dashed;border-color:var(--color-border-strong)}.footer-qr__head{justify-content:space-between;align-items:center;gap:8px;display:flex}.footer-qr__title{color:var(--color-text-label);font-size:13px;font-weight:500}input.footer-qr__input{min-width:0;padding:8px 10px;font-size:14px}textarea.footer-qr__caption{resize:vertical;field-sizing:content;min-width:0;min-height:38px;max-height:80px;padding:8px 10px;font-size:14px;line-height:1.4}.footer-qr__controls,.footer-actions{flex-wrap:wrap;align-items:center;gap:8px 12px;display:flex}.footer-plate{align-items:center;gap:6px;display:inline-flex}.footer-plate>:last-child{flex:none}[data-footer-caption-style]{border-bottom:1px dashed var(--color-border);padding-bottom:8px}.footer-check{min-height:32px;color:var(--color-text-strong);cursor:pointer;align-items:center;gap:6px;font-size:13px;display:inline-flex}.footer-check input{cursor:pointer;flex:none;width:16px;height:16px;margin:0}.footer-check input:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.editor-notices{flex-direction:column;gap:6px;min-width:0;margin-bottom:12px;display:flex}.editor-notice{border-radius:var(--radius-sm);border:1px solid var(--color-border);background:var(--color-surface-soft);justify-content:space-between;align-items:flex-start;gap:12px;min-width:0;padding:8px 12px;font-size:13px;line-height:1.4;display:flex}.editor-notice>:not(.editor-notice__close){overflow-wrap:anywhere;min-width:0}.editor-notice--error{border-color:var(--color-danger-border);background:var(--color-danger-soft);color:var(--color-danger-strong)}.editor-notice--warn{border-color:var(--color-warn-border);background:var(--color-warn-soft);color:var(--color-warn)}.editor-notice--info{color:var(--color-text-strong)}.editor-notice__close{color:inherit;cursor:pointer;background:0 0;border:none;flex:none;padding:0 2px;font-size:18px;line-height:1}.editor-notice__close:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset);border-radius:var(--radius-xs)}.editor-notice__action{color:inherit;text-underline-offset:2px;white-space:nowrap;font-weight:600;text-decoration:underline}.editor-notice__action:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset);border-radius:var(--radius-xs)}:root[data-theme=dark] .editor-notice--error{color:var(--color-text-strong)}.split-words{cursor:pointer;-webkit-user-select:none;user-select:none;margin:8px 0;line-height:1.9}.word{border-radius:var(--radius-xs);font:inherit;color:inherit;cursor:pointer;border:none;margin-right:4px;padding:2px 4px;transition:background .15s}.word--name{background:0 0}.word--desc{background:var(--color-warn-soft);color:var(--color-warn)}.word:hover{background:var(--color-surface-sunk)}.split-presets{flex-wrap:wrap;gap:6px;margin:6px 0;display:flex}.preset{border:1px solid var(--color-border-strong);border-radius:var(--radius-lg);background:var(--color-surface-soft);color:var(--color-text-strong);cursor:pointer;padding:2px 8px;font-size:12px}.split-preview{background:var(--color-surface-soft);border-radius:var(--radius-sm);margin:8px 0;padding:8px;font-size:14px}@font-face{font-family:Montserrat;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/montserrat-regular.woff2)format("woff2")}@font-face{font-family:Montserrat;font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/montserrat-italic.woff2)format("woff2")}@font-face{font-family:Montserrat;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/montserrat-700.woff2)format("woff2")}@font-face{font-family:Montserrat;font-style:italic;font-weight:700;font-display:swap;src:url(/fonts/montserrat-700italic.woff2)format("woff2")}@font-face{font-family:Montserrat;font-style:normal;font-weight:900;font-display:swap;src:url(/fonts/montserrat-900.woff2)format("woff2")}@font-face{font-family:Montserrat;font-style:italic;font-weight:900;font-display:swap;src:url(/fonts/montserrat-900italic.woff2)format("woff2")}@font-face{font-family:Jost;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/jost-regular.woff2)format("woff2")}@font-face{font-family:Jost;font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/jost-italic.woff2)format("woff2")}@font-face{font-family:Jost;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/jost-700.woff2)format("woff2")}@font-face{font-family:Jost;font-style:italic;font-weight:700;font-display:swap;src:url(/fonts/jost-700italic.woff2)format("woff2")}@font-face{font-family:Jost;font-style:normal;font-weight:900;font-display:swap;src:url(/fonts/jost-900.woff2)format("woff2")}@font-face{font-family:Jost;font-style:italic;font-weight:900;font-display:swap;src:url(/fonts/jost-900italic.woff2)format("woff2")}@font-face{font-family:Oswald;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/oswald-regular.woff2)format("woff2")}@font-face{font-family:Oswald;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/oswald-700.woff2)format("woff2")}@font-face{font-family:Oswald;font-style:normal;font-weight:200;font-display:swap;src:url(/fonts/oswald-200.woff2)format("woff2")}@font-face{font-family:Oswald;font-style:normal;font-weight:300;font-display:swap;src:url(/fonts/oswald-300.woff2)format("woff2")}@font-face{font-family:Oswald;font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/oswald-500.woff2)format("woff2")}@font-face{font-family:Oswald;font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/oswald-600.woff2)format("woff2")}@font-face{font-family:Oswald;font-style:italic;font-weight:200;font-display:swap;src:url(/fonts/oswald-200italic.woff2)format("woff2")}@font-face{font-family:Oswald;font-style:italic;font-weight:300;font-display:swap;src:url(/fonts/oswald-300italic.woff2)format("woff2")}@font-face{font-family:Oswald;font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/oswald-italic.woff2)format("woff2")}@font-face{font-family:Oswald;font-style:italic;font-weight:500;font-display:swap;src:url(/fonts/oswald-500italic.woff2)format("woff2")}@font-face{font-family:Oswald;font-style:italic;font-weight:600;font-display:swap;src:url(/fonts/oswald-600italic.woff2)format("woff2")}@font-face{font-family:Oswald;font-style:italic;font-weight:700;font-display:swap;src:url(/fonts/oswald-700italic.woff2)format("woff2")}@font-face{font-family:Sofia Sans Extra Condensed;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/sofiasansxc-700.woff2)format("woff2")}@font-face{font-family:Sofia Sans Extra Condensed;font-style:italic;font-weight:700;font-display:swap;src:url(/fonts/sofiasansxc-700italic.woff2)format("woff2")}@font-face{font-family:Sofia Sans Extra Condensed;font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/sofiasansxc-italic.woff2)format("woff2")}@font-face{font-family:Sofia Sans Extra Condensed;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/sofiasansxc-regular.woff2)format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/inter-regular.woff2)format("woff2")}@font-face{font-family:Inter;font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/inter-italic.woff2)format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/inter-700.woff2)format("woff2")}@font-face{font-family:Inter;font-style:italic;font-weight:700;font-display:swap;src:url(/fonts/inter-700italic.woff2)format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(/fonts/inter-900.woff2)format("woff2")}@font-face{font-family:Inter;font-style:italic;font-weight:900;font-display:swap;src:url(/fonts/inter-900italic.woff2)format("woff2")}@font-face{font-family:EB Garamond;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/garamond-regular.woff2)format("woff2")}@font-face{font-family:EB Garamond;font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/garamond-italic.woff2)format("woff2")}@font-face{font-family:EB Garamond;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/garamond-700.woff2)format("woff2")}@font-face{font-family:EB Garamond;font-style:italic;font-weight:700;font-display:swap;src:url(/fonts/garamond-700italic.woff2)format("woff2")}@font-face{font-family:EB Garamond;font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/garamond-800.woff2)format("woff2")}@font-face{font-family:EB Garamond;font-style:italic;font-weight:800;font-display:swap;src:url(/fonts/garamond-800italic.woff2)format("woff2")}@font-face{font-family:Great Vibes;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/greatvibes-regular.woff2)format("woff2")}@font-face{font-family:Marck Script;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/marckscript-regular.woff2)format("woff2")}@font-face{font-family:Comforter;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/comforter-regular.woff2)format("woff2")}@font-face{font-family:Comforter Brush;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/comforterbrush-regular.woff2)format("woff2")}@font-face{font-family:Pacifico;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/pacifico-regular.woff2)format("woff2")}@font-face{font-family:Caveat;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/caveat-regular.woff2)format("woff2")}@font-face{font-family:Caveat;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/caveat-700.woff2)format("woff2")}@font-face{font-family:Bad Script;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/badscript-regular.woff2)format("woff2")}@font-face{font-family:Amatic SC;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/amaticsc-regular.woff2)format("woff2")}@font-face{font-family:Amatic SC;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/amaticsc-700.woff2)format("woff2")}.sync-badge{color:var(--color-text-muted);align-items:center;gap:6px;font-size:13px;display:inline-flex}.sync-badge__dot{background:currentColor;border-radius:50%;width:7px;height:7px}.sync-badge--saved{color:var(--color-success)}.sync-badge--failed{color:var(--color-danger);background:var(--color-danger-soft);border:1px solid var(--color-danger-border);border-radius:var(--radius-xs);padding:4px 8px}.structure-cols{flex-wrap:wrap;align-items:flex-start;gap:16px;display:flex}.structure-col{flex-direction:column;gap:8px;min-width:0;display:flex;container-type:inline-size}.structure-col--sorted{flex:2 460px}.structure-col--unsorted{flex:280px}@media (min-width:720px){.structure-col--sorted{min-width:320px}.structure-col--unsorted{min-width:260px}}.structure-handle{border-radius:var(--radius-sm);width:20px;height:20px;color:var(--color-text-muted);font:inherit;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;background:0 0;border:1px solid #0000;flex:none;justify-content:center;align-items:center;padding:0;font-size:14px;line-height:1;display:inline-flex}.structure-handle:hover{color:var(--color-text);background:var(--color-surface-soft)}.structure-handle:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset);border-color:var(--color-accent);color:var(--color-text)}.structure-handle:active,[data-structure-item][data-dragging] .structure-handle{cursor:grabbing}@media (pointer:coarse){.structure-handle{border-color:var(--color-border);background:var(--color-surface-soft);width:28px;height:28px;font-size:16px}[data-structure-item] button,[data-removed-item] button{min-width:28px;min-height:28px}[data-structure-item] .structure-move-select{min-height:28px}}[data-structure-item][data-dragging]{opacity:.45;outline:1px dashed var(--color-border-strong);outline-offset:-1px}[data-category-drop][data-drop-active],[data-structure-item][data-drop-active]{box-shadow:0 0 0 3px var(--color-accent-soft)}[data-subcategory-drop][data-drop-active]{background:var(--color-accent-soft)}[data-trash-zone][data-drop-active]{box-shadow:0 0 0 3px var(--color-danger-soft)}.structure-gap{align-items:center;height:8px;margin:0;list-style:none;display:flex}.structure-gap__line{background:0 0;border-radius:1px;width:100%;height:2px}.structure-gap[data-drop-active] .structure-gap__line{background:var(--color-accent)}@media (pointer:coarse){.structure-gap{height:12px}.structure-gap[data-drop-active] .structure-gap__line{height:3px}}.structure-ghost{z-index:1100;pointer-events:none;border:1px solid var(--color-accent);border-radius:var(--radius-md);background:var(--color-surface);max-width:min(260px,100vw - 32px);box-shadow:var(--shadow-popup);color:var(--color-text);white-space:nowrap;align-items:center;gap:6px;padding:6px 10px;font-size:13px;line-height:1.2;display:flex;position:fixed;transform:translate(12px,16px)}.structure-ghost[data-pointer=touch]{transform:translate(-50%,calc(-100% - 16px))}.structure-ghost__name{text-overflow:ellipsis;overflow:hidden}.structure-ghost__icon{color:var(--color-text-muted);flex:none}.structure-ghost[data-drag-target=none]{border-color:var(--color-border-strong);color:var(--color-text-label)}.structure-ghost[data-drag-target=trash]{border-color:var(--color-danger);background:var(--color-danger-soft)}.structure-ghost[data-drag-target=blocked]{border-color:var(--color-warn-border);background:var(--color-warn-soft)}body.is-structure-dragging{-webkit-user-select:none;user-select:none;cursor:grabbing}.structure-hint{color:var(--color-text-muted);margin:0 0 12px;font-size:12px;line-height:1.45}.structure-live{min-height:18px;color:var(--color-text-strong);margin:0 0 12px;font-size:13px;line-height:1.4}.structure-sheet-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 12px;margin:0 0 4px;display:flex}.structure-sheet-head__title{flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0;max-width:100%;display:flex}.structure-sheet-tag{border:1px solid var(--color-border-strong);border-radius:var(--radius-pill);background:var(--color-control);min-width:0;max-width:100%;color:var(--color-text);white-space:nowrap;text-overflow:ellipsis;padding:2px 10px;font-size:13px;font-weight:600;line-height:1.4;overflow:hidden}.structure-sheet-head__count{color:var(--color-text-muted);white-space:nowrap;font-variant-numeric:tabular-nums;font-size:13px}.structure-sheet-tag--muted{border-color:var(--color-border);background:var(--color-surface);color:var(--color-text-muted);font-weight:500}.sheet-tabs{border-bottom:1px solid var(--color-border);scrollbar-width:thin;gap:4px;max-width:100%;margin:0 0 12px;padding:2px 2px 0;display:flex;overflow-x:auto}.sheet-tabs__tab{border-radius:var(--radius-xs) var(--radius-xs) 0 0;max-width:240px;color:var(--color-text-muted);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;flex:none;align-items:center;gap:6px;margin-bottom:-1px;padding:8px 12px;font-size:14px;font-weight:500;line-height:20px;display:inline-flex}.sheet-tabs__tab:hover{color:var(--color-text)}.sheet-tabs__tab[aria-selected=true]{border-bottom-color:var(--color-accent);color:var(--color-text-strong);font-weight:600}.sheet-tabs__tab:focus-visible{outline:var(--focus-ring);outline-offset:-2px}.sheet-tabs__name{text-overflow:ellipsis;min-width:0;overflow:hidden}.sheet-tabs__off{border:1px solid var(--color-border);border-radius:var(--radius-pill);background:var(--color-surface);color:var(--color-text-label);flex:none;padding:0 8px;font-size:12px;font-weight:500}.structure-move-select{text-overflow:ellipsis;min-width:0;max-width:120px}[data-structure-item]{flex-wrap:wrap}[data-structure-item] [data-item-name]{min-width:min(100%,100px)}[data-structure-item] [data-item-meta]{overflow-wrap:break-word;flex:none;max-width:100%}@container (max-width:480px){[data-structure-editor]:not([data-photo-mode]) [data-structure-item]{flex-wrap:wrap}[data-structure-editor]:not([data-photo-mode]) [data-structure-item]:after{content:"";flex:0 0 100%;order:1;height:0}[data-structure-editor]:not([data-photo-mode]) [data-structure-item] [data-item-meta]{flex:1 0 auto;order:2}[data-structure-editor]:not([data-photo-mode]) [data-structure-item] .structure-move-select{flex:none;order:3;max-width:120px}[data-structure-editor]:not([data-photo-mode]) [data-structure-item] :is([data-item-meta],.structure-move-select){margin-top:-8px}}@media (max-width:480px){[data-removed-item]{flex-wrap:wrap}}.photo-frame{fill:var(--color-sheet-guide);fill-opacity:.06;stroke:var(--color-sheet-guide)}.photo-frame__icon{fill:none;stroke:var(--color-sheet-guide);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.photo-frame__icon>*{vector-effect:non-scaling-stroke}.photo-cell-hint{fill:none;stroke:var(--color-sheet-guide);stroke-linecap:round}.structure-photo-cell,.structure-photo-spacer{flex:0 0 96px;width:96px}.structure-photo-cell{flex-direction:column;gap:4px;display:flex}[data-structure-item]{--photo-ai-run-h:20px}@media (pointer:coarse){[data-structure-item]{--photo-ai-run-h:28px}}.structure-photo-cell:has(>.structure-photo-ai__run){margin-bottom:calc(-4px - var(--photo-ai-run-h,20px))}[data-photo-mode] [data-structure-item]:has(>.structure-photo-cell>.structure-photo-ai__run):before{content:"";height:calc(var(--photo-ai-run-h) - 4px);pointer-events:none;flex:0 0 100%;order:5}.structure-photo,.structure-photo-spacer{height:64px}.structure-photo{flex:none;position:relative}.structure-photo__pick{border:1px dashed var(--color-border-strong);border-radius:var(--radius-md);background:var(--color-surface-soft);width:100%;height:100%;color:var(--color-text-label);font:inherit;text-align:center;cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:4px;font-size:11px;line-height:1.2;transition:border-color .15s,background .15s;display:flex;overflow:hidden}.structure-photo__pick:hover{border-color:var(--color-accent);color:var(--color-text)}.structure-photo__pick:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.structure-photo__icon{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:20px;height:20px}.structure-photo[data-photo-state=ready] .structure-photo__pick{border-style:solid;border-color:var(--color-border);padding:0}.structure-photo[data-photo-state=ready] .structure-photo__pick:hover{border-color:var(--color-accent)}.structure-photo__img{object-fit:cover;object-position:center;pointer-events:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;width:100%;height:100%;display:block}.structure-photo[data-photo-state=loading] .structure-photo__pick{cursor:progress;border-style:solid;animation:1.2s ease-in-out infinite alternate structure-photo-pulse}@keyframes structure-photo-pulse{0%{background:var(--color-surface-soft)}to{background:var(--color-border)}}@media (prefers-reduced-motion:reduce){.structure-photo[data-photo-state=loading] .structure-photo__pick{animation:none}}.structure-photo[data-photo-state=error] .structure-photo__pick{border-style:solid;border-color:var(--color-danger);background:var(--color-danger-soft);color:var(--color-danger)}.structure-photo[data-drop-active] .structure-photo__pick{border-style:solid;border-color:var(--color-accent);background:var(--color-accent-soft);color:var(--color-accent-strong);box-shadow:0 0 0 3px var(--color-accent-soft);padding:4px}.structure-photo__remove{border:1px solid var(--color-border-strong);background:var(--color-surface);width:20px;height:20px;color:var(--color-text);font:inherit;cursor:pointer;border-radius:50%;justify-content:center;align-items:center;padding:0;font-size:12px;line-height:1;display:inline-flex;position:absolute;top:3px;right:3px}.structure-photo__remove:hover{border-color:var(--color-danger);color:var(--color-danger)}.structure-photo__remove:focus-visible{outline:var(--focus-ring);outline-offset:1px}.structure-photo-error{color:var(--color-danger);flex:0 0 100%;order:9;margin:0;padding-left:28px;font-size:12px;line-height:1.4}.structure-photo-ai{flex:0 0 100%;order:10;padding-left:28px;font-size:12px;line-height:1.4}.structure-photo-ai__run{width:100%;height:var(--photo-ai-run-h,20px);border:1px solid var(--color-border-strong);border-radius:var(--radius-sm);background:var(--color-surface-soft);color:var(--color-text-strong);font:inherit;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;flex:none;padding:0 4px;font-size:11px;line-height:1.2;overflow:hidden}.structure-photo-ai__run:hover:not(:disabled){border-color:var(--color-accent)}.structure-photo-ai__run:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.structure-photo-ai__run:disabled{color:var(--color-text-subtle);cursor:not-allowed}.structure-photo-ai__error{color:var(--color-danger);margin:4px 0 0}.structure-photo-ai__card{border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface-soft);color:var(--color-text);margin-top:6px;padding:8px 10px}.structure-photo-ai__card[data-verdict=warn]{border-color:var(--color-warn-border)}.structure-photo-ai__card[data-verdict=replace]{border-color:var(--color-danger-border)}.structure-photo-ai__card p{margin:4px 0 0}.structure-photo-ai__card .structure-photo-ai__title{margin:0;font-weight:600}.structure-photo-ai__card .structure-photo-ai__replace,.image-batch__replace{color:var(--color-warn);font-weight:600}.structure-photo-ai__rows,.structure-photo-ai__tips{margin:4px 0 0;padding:0;list-style:none}.structure-photo-ai__tips{padding-left:16px;list-style:outside}.structure-photo-ai__rows [data-mark=ok] span{color:var(--color-success)}.structure-photo-ai__rows [data-mark=warn] span{color:var(--color-warn)}.structure-photo-ai__rows [data-mark=bad] span{color:var(--color-danger)}.structure-photo-ai__dpi{color:var(--color-text-muted)}.image-batch{min-width:0;color:var(--color-text);flex-direction:column;gap:8px;font-size:13px;line-height:1.4;display:flex}.image-batch__actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.image-batch__run,.image-batch__stop{border:1px solid var(--color-border-strong);border-radius:var(--radius-xs);background:var(--color-surface);color:var(--color-text-strong);font:inherit;cursor:pointer;padding:6px 10px}.image-batch__run:hover:not(:disabled),.image-batch__stop:hover:not(:disabled){border-color:var(--color-accent)}.image-batch__run:focus-visible,.image-batch__stop:focus-visible,.image-batch__summary-toggle:focus-visible,.image-batch__list:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.image-batch__run:disabled{color:var(--color-text-subtle);cursor:not-allowed;opacity:.6}.image-batch__hint,.image-batch__note{color:var(--color-text-muted);margin:0;font-size:12px}.image-batch__error{color:var(--color-danger);margin:0;font-size:12px}.image-batch__progress{flex-direction:column;gap:4px;display:flex}.image-batch__progress-text{color:var(--color-text-muted);margin:0;font-size:12px}.image-batch__bar{background:var(--color-surface-soft);border:1px solid var(--color-border);border-radius:3px;height:6px;overflow:hidden}.image-batch__bar-fill{height:100%;width:calc(var(--batch-done,0) / var(--batch-total,1) * 100%);background:var(--color-accent);transition:width .2s;display:block}.image-batch__summary{flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;display:flex}.image-batch__summary>li{border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface-soft);white-space:nowrap;padding:2px 8px;font-size:12px}.image-batch__summary>[data-mark=ok]{border-color:var(--color-success-border);background:var(--color-success-soft);color:var(--color-success)}.image-batch__summary>[data-mark=warn]{border-color:var(--color-warn-border);background:var(--color-warn-soft);color:var(--color-warn)}.image-batch__summary>[data-mark=bad]{border-color:var(--color-danger-border);background:var(--color-danger-soft);color:var(--color-danger)}.image-batch__summary-toggle{color:var(--color-accent-strong);font:inherit;cursor:pointer;background:0 0;border:0;align-self:flex-start;padding:2px 0;text-decoration:underline}.image-batch__list{overscroll-behavior:contain;border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface);max-height:min(60vh,420px);margin:0;padding:0;list-style:none;overflow-y:auto}.image-batch__item{border-top:1px solid var(--color-border);grid-template-columns:20px minmax(0,1fr);column-gap:8px;padding:6px 10px;font-size:12px;display:grid}.image-batch__item:first-child{border-top:0}.image-batch__mark{text-align:center;grid-row:1/span 3}.image-batch__item[data-mark=ok] .image-batch__mark{color:var(--color-success)}.image-batch__item[data-mark=warn] .image-batch__mark{color:var(--color-warn)}.image-batch__item[data-mark=bad] .image-batch__mark{color:var(--color-danger)}.image-batch__item[data-mark=skipped]{color:var(--color-text-muted)}.image-batch__name{min-width:0;color:var(--color-text-strong);text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.image-batch__dpi{color:var(--color-text-muted)}.image-batch__replace{grid-column:2;margin:2px 0 0}.image-batch__tips{overflow-wrap:anywhere;grid-column:2;margin:2px 0 0;padding-left:14px;list-style:outside}@media (max-width:480px){.image-batch__actions>button{flex:100%}}@media (prefers-reduced-motion:reduce){.image-batch__bar-fill{transition:none}}.structure-photo-ttl{border:1px solid var(--color-warn-border);border-radius:var(--radius-sm);background:var(--color-warn-soft);color:var(--color-warn);margin:0 0 12px;padding:6px 10px;font-size:12px;line-height:1.45}[data-photo-mode] [data-structure-item] .structure-move-select{text-overflow:ellipsis;max-width:120px}@container (max-width:550px){[data-photo-mode] [data-structure-item]{flex-wrap:wrap}[data-photo-mode] [data-structure-item]:after{content:"";flex:0 0 100%;order:1;height:0}[data-photo-mode] [data-structure-item] [data-item-meta]{flex:1 0 auto;order:2}[data-photo-mode] [data-structure-item] .structure-move-select{flex:none;order:3;max-width:120px}[data-photo-mode] [data-structure-item] .structure-photo-cell{order:4;margin-left:auto}[data-photo-mode] [data-structure-item] :is([data-item-meta],.structure-move-select,.structure-photo-cell){margin-top:-8px}[data-photo-mode] [data-structure-item] .structure-photo-spacer{display:none}}.photo-quality-mark{pointer-events:auto;cursor:help;touch-action:manipulation;outline:none}.photo-quality-mark__ring{fill:#0000;stroke:none;pointer-events:all}.photo-quality-mark[data-pinned] .photo-quality-mark__ring{stroke:var(--color-sheet-ink);stroke-width:2px;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 1px var(--color-sheet-shade))}.photo-quality-mark:focus-visible .photo-quality-mark__ring{stroke:var(--color-accent-strong);stroke-width:3px;vector-effect:non-scaling-stroke;filter:none}.photo-quality-mark__dot{fill:var(--color-sheet-alert);stroke:var(--color-sheet-ink);stroke-width:2px;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 1px var(--color-sheet-shade))}.photo-quality-mark__ink{fill:var(--color-sheet-ink);text-anchor:middle;pointer-events:none;-webkit-user-select:none;user-select:none;font-weight:700}.photo-quality-tip{z-index:4;box-sizing:border-box;border:1px solid var(--color-sheet-ink);border-radius:var(--radius-sm);background:var(--color-sheet-ink-dark);width:240px;max-width:calc(100% - 8px);box-shadow:0 2px 8px var(--color-sheet-shade);color:var(--color-sheet-ink);text-align:left;text-wrap:pretty;white-space:normal;cursor:default;padding:6px 10px;font-size:12px;font-weight:400;line-height:16px;position:absolute}.photo-quality-tip[data-placement=above]{transform:translateY(-100%)}.structure-photo__quality{z-index:1;box-sizing:border-box;border:2px solid var(--color-sheet-ink);background:var(--color-sheet-alert);width:18px;height:18px;box-shadow:0 0 0 1px var(--color-sheet-shade);color:var(--color-sheet-ink);cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:50%;justify-content:center;align-items:center;font-size:12px;font-weight:700;line-height:1;display:inline-flex;position:absolute;top:4px;left:4px}.structure-photo__quality:before{content:"";position:absolute;inset:-4px}@media (pointer:coarse){.structure-photo__quality:before{inset:-10px}}.structure-photo__quality[data-pinned]{outline:2px solid var(--color-sheet-ink);outline-offset:1px}.structure-photo .photo-quality-tip{top:calc(100% + 6px + var(--slot-tip-offset,0px));width:min(240px,100vw - 16px);max-width:none;left:0}.structure-photo .photo-quality-tip[data-align=right]{left:auto;right:0}.structure-photo .photo-quality-tip[data-placement=above]{top:auto;bottom:calc(100% + 6px);transform:none}.structure-photo[data-photo-state=ready] .structure-photo__pick{cursor:grab;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.structure-photo[data-photo-armed] .structure-photo__pick{border-color:var(--color-accent);box-shadow:0 0 0 3px var(--color-accent-soft);transition:transform .12s ease-out;transform:scale(.94)}@media (prefers-reduced-motion:reduce){.structure-photo[data-photo-armed] .structure-photo__pick{transition:none;transform:none}}.structure-photo[data-photo-dragging]{--photo-drag-opacity:.45}.structure-photo[data-photo-dragging] .structure-photo__quality{opacity:var(--photo-drag-opacity)}.structure-photo[data-photo-dragging] .structure-photo__pick{cursor:grabbing;opacity:var(--photo-drag-opacity);outline:1px dashed var(--color-border-strong);outline-offset:-1px}.structure-photo[data-photo-drop-target] .structure-photo__pick{border-style:solid;border-color:var(--color-accent);box-shadow:0 0 0 3px var(--color-accent-soft)}.structure-photo[data-photo-drop-target=move] .structure-photo__pick{background:var(--color-accent-soft);color:var(--color-accent-strong)}.structure-photo[data-photo-drop-target=swap]:after{content:"⇄";box-sizing:border-box;border:2px solid var(--color-sheet-ink);background:var(--color-sheet-ink-dark);width:28px;height:28px;box-shadow:0 0 0 1px var(--color-sheet-shade);color:var(--color-sheet-ink);pointer-events:none;border-radius:50%;justify-content:center;align-items:center;font-size:15px;font-weight:700;line-height:1;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.structure-photo-ghost{z-index:1100;pointer-events:none;border:1px solid var(--color-accent);border-radius:var(--radius-md);background:var(--color-surface);max-width:min(260px,100vw - 32px);box-shadow:var(--shadow-popup);color:var(--color-text);white-space:nowrap;align-items:center;gap:8px;padding:4px 10px 4px 4px;font-size:13px;line-height:1.2;display:flex;position:fixed;transform:translate(12px,16px)}.structure-photo-ghost[data-pointer=touch]{transform:translate(-50%,calc(-100% - 24px))}.structure-photo-ghost__img{border-radius:var(--radius-xs);object-fit:cover;flex:none;width:48px;height:32px;display:block}.structure-photo-ghost__text{flex-direction:column;gap:2px;min-width:0;display:flex}.structure-photo-ghost__name{text-overflow:ellipsis;overflow:hidden}.structure-photo-ghost__action{color:var(--color-text-label);font-size:12px}.structure-photo-ghost[data-photo-drop=none]{border-color:var(--color-border-strong)}.category-drop-label{z-index:1100;pointer-events:none;border:1px solid var(--color-accent);border-radius:var(--radius-md);background:var(--color-surface);max-width:min(260px,100vw - 32px);box-shadow:var(--shadow-popup);color:var(--color-text);white-space:nowrap;text-overflow:ellipsis;padding:6px 10px;font-size:13px;line-height:1.2;position:fixed;overflow:hidden;transform:translate(12px,16px)}.category-drop-label[data-pointer=touch]{transform:translate(-50%,calc(-100% - 24px))}.photo-focus-handle{pointer-events:auto;cursor:grab;outline:none}.photo-focus-handle[data-dragging]{cursor:grabbing}.photo-focus-handle[data-dragging=x]{cursor:ew-resize}body.is-photo-focus-dragging:has(.photo-focus-handle[data-dragging=x]){cursor:ew-resize}.photo-focus-handle[data-dragging=y]{cursor:ns-resize}body.is-photo-focus-dragging:has(.photo-focus-handle[data-dragging=y]){cursor:ns-resize}.photo-focus-handle[data-static]{cursor:default}.photo-focus-handle__area{fill:#0000;stroke:none;pointer-events:all}.photo-focus-handle:hover .photo-focus-handle__area,.photo-focus-handle[data-active] .photo-focus-handle__area,.photo-focus-handle[data-dragging] .photo-focus-handle__area{stroke:var(--color-sheet-ink);stroke-width:2px;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 1px var(--color-sheet-shade))}.photo-focus-handle:focus-visible .photo-focus-handle__area{stroke:var(--color-accent-strong);stroke-width:3px;vector-effect:non-scaling-stroke}.photo-focus-handle__grip{opacity:0;pointer-events:none;touch-action:none;transition:opacity .15s,transform .2s ease-out}.photo-focus-handle:hover .photo-focus-handle__grip,.photo-focus-handle:focus-visible .photo-focus-handle__grip,.photo-focus-handle[data-active] .photo-focus-handle__grip,.photo-focus-handle[data-dragging] .photo-focus-handle__grip{opacity:1;pointer-events:all}@media (pointer:coarse){.photo-focus-handle__grip{opacity:1;pointer-events:all}}.photo-focus-handle__grip[data-photo-focus-grip=x]{cursor:ew-resize}.photo-focus-handle__grip[data-photo-focus-grip=y]{cursor:ns-resize}.photo-focus-handle[data-dragging] .photo-focus-handle__grip{cursor:inherit}.photo-focus-handle[data-dragging=x] .photo-focus-handle__grip:not([data-photo-focus-grip=x]),.photo-focus-handle[data-dragging=y] .photo-focus-handle__grip:not([data-photo-focus-grip=y]){opacity:.35}.photo-focus-handle__grip-dot{fill:var(--color-sheet-ink);fill-opacity:.92;stroke:var(--color-sheet-shade);stroke-width:1px;vector-effect:non-scaling-stroke;transform-box:fill-box;transform-origin:50%;animation:.24s ease-out photo-grip-axes}.photo-focus-handle__grip-icon{fill:none;stroke:var(--color-sheet-ink-dark);stroke-width:1.75px;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;transform-box:fill-box;transform-origin:50%;animation:.24s ease-out photo-grip-axes}@keyframes photo-grip-axes{0%{opacity:0;transform:scale(.5)}}@media (hover:hover){.photo-focus-handle:not([data-dragging]) .photo-focus-handle__grip:hover .photo-focus-handle__grip-dot{fill-opacity:1;stroke:var(--color-sheet-ink-dark);stroke-width:2px}.photo-focus-handle:not([data-dragging]) .photo-focus-handle__grip:hover .photo-focus-handle__grip-icon{stroke-width:2.25px}}.photo-focus-handle__grip:active .photo-focus-handle__grip-dot,.photo-focus-handle[data-dragging=x] [data-photo-focus-grip=x] .photo-focus-handle__grip-dot,.photo-focus-handle[data-dragging=y] [data-photo-focus-grip=y] .photo-focus-handle__grip-dot,.photo-focus-handle[data-dragging=xy] [data-photo-focus-grip=xy] .photo-focus-handle__grip-dot{fill-opacity:1;stroke:var(--color-sheet-ink-dark);stroke-width:2px}.photo-focus-handle__grip:active .photo-focus-handle__grip-icon,.photo-focus-handle[data-dragging=x] [data-photo-focus-grip=x] .photo-focus-handle__grip-icon,.photo-focus-handle[data-dragging=y] [data-photo-focus-grip=y] .photo-focus-handle__grip-icon,.photo-focus-handle[data-dragging=xy] [data-photo-focus-grip=xy] .photo-focus-handle__grip-icon{stroke-width:2.25px}@media (prefers-reduced-motion:reduce){.photo-focus-handle__grip{transition:none}.photo-focus-handle__grip-dot,.photo-focus-handle__grip-icon{animation:none}}.photo-focus-reset{z-index:2;box-sizing:border-box;border:1px solid var(--color-sheet-shade);border-radius:var(--radius-pill);background:var(--color-sheet-ink);height:24px;box-shadow:0 1px 3px var(--color-sheet-shade);color:var(--color-sheet-ink-dark);font:inherit;white-space:nowrap;cursor:pointer;justify-content:center;align-items:center;gap:4px;padding:0 8px 0 6px;font-size:12px;line-height:1;display:inline-flex;position:absolute}.photo-focus-reset:hover{border-color:var(--color-sheet-ink-dark)}.photo-focus-reset:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.photo-focus-reset__icon{fill:none;stroke:currentColor;stroke-width:1.75px;stroke-linecap:round;flex:none;width:14px;height:14px}.photo-focus-reset[data-compact]{width:24px;padding:0}.photo-focus-reset[data-compact] .photo-focus-reset__text{display:none}@media (pointer:coarse){.photo-focus-reset{height:32px}.photo-focus-reset[data-compact]{width:32px}}.photo-zoom{z-index:3;box-sizing:border-box;border:1px solid var(--color-sheet-shade);border-radius:var(--radius-pill);background:var(--color-sheet-ink);width:90px;height:26px;box-shadow:0 1px 3px var(--color-sheet-shade);color:var(--color-sheet-ink-dark);font:inherit;white-space:nowrap;cursor:default;-webkit-user-select:none;user-select:none;touch-action:manipulation;align-items:center;font-size:12px;line-height:1;animation:.12s ease-out photo-zoom-in;display:inline-flex;position:absolute}@keyframes photo-zoom-in{0%{opacity:0}}.photo-zoom__button{box-sizing:border-box;width:24px;height:24px;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:50%;flex:none;justify-content:center;align-items:center;margin:0;padding:0;display:inline-flex}@media (hover:hover) and (pointer:fine){.photo-zoom__button:hover{background:var(--color-sheet-ink-dark);color:var(--color-sheet-ink)}}.photo-zoom__button:active{background:var(--color-sheet-ink-dark);color:var(--color-sheet-ink)}.photo-zoom__button:focus-visible{outline:var(--focus-ring);outline-offset:1px}.photo-zoom__button:disabled{cursor:default;pointer-events:none}.photo-zoom__button:disabled .photo-zoom__icon{opacity:.35}.photo-zoom__icon{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;flex:none;width:14px;height:14px}.photo-zoom__value{font-variant-numeric:tabular-nums;text-align:center;flex:none;width:40px}.photo-zoom[data-photo-zoom-fit] .photo-zoom__value{text-underline-offset:3px;text-decoration:underline;text-decoration-thickness:2px}@media (pointer:coarse){.photo-zoom{width:118px;height:38px}.photo-zoom__button{width:36px;height:36px}.photo-zoom__icon{width:18px;height:18px}.photo-zoom__value{width:44px}}body.is-photo-focus-dragging .photo-zoom{pointer-events:none}@media (prefers-reduced-motion:reduce){.photo-zoom{animation:none}}.photo-focus-live{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}body.is-photo-focus-dragging{cursor:grabbing;-webkit-user-select:none;user-select:none}.spacing-group{margin-top:12px}.spacing-group-title{color:var(--color-text-muted);margin:0 0 6px;font-size:12px;font-weight:600}.spacing-fields{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.spacing-group .spacing-fields>.spacing-field{max-width:calc(50% - 6px)}.spacing-field>div{flex-wrap:wrap;row-gap:4px}.spacing-field{flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0;display:flex}.spacing-field label{white-space:normal;overflow-wrap:anywhere}.spacing-reset{color:var(--color-text-muted);cursor:pointer;background:0 0;border:none;padding:0;font-size:12px;text-decoration:underline}.spacing-note{color:var(--color-text-muted);margin:6px 0 0;font-size:12px}.badge-bar{flex-wrap:wrap;align-items:center;gap:8px 10px;margin:0 0 12px;display:flex}.badge-bar__title{color:var(--color-text-label);font-size:13px;font-weight:600}.badge-bar__modes{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.badge-bar__icons{flex-wrap:wrap;flex:1 0 100%;align-items:center;gap:8px 10px;display:flex}.badge-mode__icon-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:16em;overflow:hidden}.badge-mode__btn{border:1px solid var(--color-border-strong);border-radius:var(--radius-md);background:var(--color-control);min-height:32px;color:var(--color-text);font:inherit;cursor:pointer;align-items:center;gap:6px;padding:6px 12px;font-size:13px;display:inline-flex}.badge-mode__btn:hover{background:var(--color-surface-soft)}.badge-mode__btn[aria-pressed=true]{border-color:var(--color-accent-strong);background:var(--color-accent-soft);color:var(--color-text);font-weight:600}.badge-mode__swatch{border:1px solid var(--color-border-strong);background:var(--badge-plate,#1a1a1a);border-radius:2px;flex:none;width:10px;height:10px}.badge-mode__custom-text:not([data-empty]){text-transform:uppercase;letter-spacing:.02em}.badge-mode__btn--add{background:0 0;border-style:dashed}.badge-mode__icon-pair{align-items:stretch;gap:2px;min-width:0;display:inline-flex}.badge-mode__remove{border:1px solid var(--color-border-strong);border-radius:var(--radius-md);background:var(--color-control);min-width:32px;min-height:32px;color:var(--color-text-label);font:inherit;cursor:pointer;flex:none;justify-content:center;align-items:center;padding:0;font-size:16px;line-height:1;display:inline-flex}.badge-mode__remove:hover{border-color:var(--color-danger-border);background:var(--color-danger-soft);color:var(--color-danger)}.badge-icon__confirm--bar{flex:100%}.badge-mode__btn:focus-visible,.badge-mode__remove:focus-visible,.badge-step__btn:focus-visible,.badge-check:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.badge-level__opt:has(input:focus-visible){outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.badge-side__opt:has(input:focus-visible){outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.badge-level{align-items:center;gap:8px;display:inline-flex}.badge-level__legend{color:var(--color-text);font-size:13px;font-weight:600}.badge-level__opt,.badge-side__opt{border:1px solid var(--color-border-strong);background:var(--color-control);cursor:pointer;justify-content:center;align-items:center;min-width:44px;min-height:32px;padding:0 8px;display:inline-flex;position:relative}.badge-level__opt:first-of-type,.badge-side__opt:first-of-type{border-radius:var(--radius-md) 0 0 var(--radius-md)}.badge-level__opt+.badge-level__opt,.badge-side__opt+.badge-side__opt{margin-left:-1px}.badge-level__opt:last-of-type,.badge-side__opt:last-of-type{border-radius:0 var(--radius-md) var(--radius-md) 0}.badge-level__opt input,.badge-side__opt input{opacity:0;pointer-events:none;position:absolute}:is(.badge-level__opt:has(input:checked),.badge-side__opt:has(input:checked)){z-index:1;border-color:var(--color-accent-strong);background:var(--color-accent-soft);box-shadow:inset 0 0 0 1px var(--color-accent-strong)}.badge-mode-note{border:1px solid var(--color-accent-strong);border-radius:var(--radius-md);background:var(--color-accent-soft);color:var(--color-text);flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 12px;padding:8px 12px;font-size:13px;display:flex}.badge-mode-note__text{overflow-wrap:anywhere;flex:200px;min-width:0}.badge-custom{flex-wrap:wrap;align-items:center;gap:6px 8px;display:flex}.badge-custom__field{align-items:center;gap:6px;min-width:0;display:inline-flex}.badge-custom__label{color:var(--color-text-label);font-size:13px}.badge-custom__input{border:1px solid var(--color-border-strong);border-radius:var(--radius-md);background:var(--color-control);width:11em;min-width:0;min-height:32px;color:var(--color-text);font:inherit;text-transform:uppercase;padding:4px 8px;font-size:14px}.badge-custom__input:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset);border-color:var(--color-accent)}.badge-custom__count{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--color-text-label);font-size:12px}.badge-custom__count[data-full]{color:var(--color-warn);font-weight:600}.badge-custom__hint{color:var(--color-text-label);flex:1 0 100%;margin:0;font-size:12px}.badge-custom--panel .badge-custom__field{flex:auto}.badge-custom--panel .badge-custom__input{flex:auto;width:auto}.badge-check{width:20px;height:20px;accent-color:var(--color-accent-strong);cursor:pointer;flex:none;margin:0}.badge-check:disabled{opacity:.45;cursor:not-allowed}[data-structure-item][data-badge-mode]{cursor:pointer}[data-structure-item][data-badge-mode]:hover{background:var(--color-surface-soft)}[data-structure-item][data-badge-mode][data-badge-blocked]{cursor:default}[data-structure-item][data-badge-mode][data-badge-blocked]:hover{background:0 0}[data-structure-item][data-badge-mode] .structure-handle,[data-structure-item][data-badge-mode] .structure-move-select{opacity:.4;pointer-events:none}.badge-minis{flex-wrap:wrap;flex:0 auto;justify-content:flex-end;align-items:flex-end;gap:2px 3px;max-width:50%;margin-left:4px;display:inline-flex}.badge-minis__run{flex:none;align-items:flex-end;display:inline-flex}.badge-mini{vertical-align:.3em;flex:none;height:12px;display:inline-block}.badge-mini--new{width:50px}.badge-mini--hit{width:21px}.badge-mini--vegan{width:15px;height:14px}.badge-mini--spicy{width:14px;height:14px}.badge-mini--spicy+.badge-mini--spicy{margin-left:-5px}.badge-mini--custom{isolation:isolate;box-sizing:border-box;height:12px;color:var(--badge-letter,#fff);text-transform:uppercase;white-space:nowrap;align-items:center;padding:.6px 3.3px 0 2.5px;font-family:Sofia Sans Extra Condensed,sans-serif;font-size:13.8px;font-style:italic;font-weight:700;line-height:12px;display:inline-flex;position:relative}.badge-mini--custom:before{content:"";z-index:-1;background:var(--badge-plate,#1a1a1a);transform-origin:0 100%;position:absolute;inset:0 2.48px 0 0;transform:skew(-11.68deg)}.badge-mini--custom[data-badge-font=fallback]{padding:0 3.6px 1.2px 1.9px;font-family:Oswald,sans-serif;font-size:11.2px}:root[data-theme=dark] .badge-mini--custom:before{box-shadow:0 0 0 1px var(--color-border-strong)}.flag-mini{--flag-mini-h:10px;box-sizing:content-box;width:calc(var(--flag-mini-h) * 1.5);height:var(--flag-mini-h);border:1px solid var(--color-text-subtle);vertical-align:.3em;flex:none;display:inline-block;overflow:hidden}.flag-mini>svg{width:100%;height:100%;display:block}.flag-mini[data-loading]{background:var(--color-surface-sunk)}.flag-mini[data-empty]{background:0 0;border-style:dashed}.flag-mini--list{--flag-mini-h:14px}.flag-picker{flex-wrap:wrap;flex:280px;align-items:center;gap:6px 8px;min-width:0;display:flex}.flag-picker__label{color:var(--color-text);font-size:13px;font-weight:600}.flag-picker__field{flex:14rem;min-width:0;max-width:22rem;position:relative}.flag-picker__control{border:1px solid var(--color-border-strong);border-radius:var(--radius-md);background:var(--color-control);align-items:center;gap:6px;min-height:32px;padding-left:8px;display:flex}.flag-picker__input{min-width:0;color:var(--color-text);font:inherit;background:0 0;border:0;flex:auto;padding:4px 0;font-size:14px}.flag-picker__input::placeholder{color:var(--color-text-muted);opacity:1}@supports selector(:has(*)){.flag-picker__control:has(.flag-picker__input:focus-visible){border-color:var(--color-accent);outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.flag-picker__input:focus-visible{outline:none}}.flag-picker__toggle{border:0;border-left:1px solid var(--color-border);border-radius:0 var(--radius-md) var(--radius-md) 0;background:var(--select-chevron) center / 10px 6px no-repeat;cursor:pointer;flex:none;align-self:stretch;width:32px;padding:0}.flag-picker__toggle:hover{background-color:var(--color-surface-soft)}.flag-picker__toggle:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.flag-picker__popup{z-index:20;border:1px solid var(--color-border-strong);border-radius:var(--radius-md);background:var(--color-surface);box-shadow:var(--shadow-popup);position:absolute;top:calc(100% + 4px);left:0;right:0;overflow:hidden}.flag-picker__list{overscroll-behavior:contain;max-height:min(320px,50vh);margin:0;padding:4px 0;list-style:none;overflow-y:auto}.flag-picker__option{min-height:32px;color:var(--color-text);cursor:pointer;align-items:center;gap:8px;padding:4px 10px 4px 12px;font-size:14px;line-height:1.3;display:flex}.flag-picker__option:hover{background:var(--color-surface-soft)}.flag-picker__option[aria-selected=true]{background:var(--color-accent-soft);box-shadow:inset 3px 0 0 var(--color-accent-strong)}.flag-picker__name{overflow-wrap:anywhere;flex:auto;min-width:0}.flag-picker__option[data-chosen] .flag-picker__name{font-weight:600}.flag-picker__option[data-chosen]:after{content:"✓";content:"✓" / "";color:var(--color-accent-strong);flex:none;font-weight:700}.flag-picker__empty{color:var(--color-text-label);margin:0;padding:10px 12px;font-size:13px}.flag-picker__empty strong{color:var(--color-text);margin-bottom:2px;font-weight:600;display:block}.flag-picker__hint{color:var(--color-text-label);flex:1 0 100%;margin:0;font-size:12px}@media (forced-colors:active){.flag-picker__option[aria-selected=true]{outline-offset:-2px;outline:2px solid highlight}.flag-mini>svg{forced-color-adjust:none}}.badge-step{align-items:center;gap:6px;display:inline-flex}.badge-step__btn{border:1px solid var(--color-border-strong);border-radius:var(--radius-md);background:var(--color-control);width:32px;height:32px;color:var(--color-text);font:inherit;cursor:pointer;padding:0;font-size:16px;line-height:1}.badge-step__btn:hover:not(:disabled){background:var(--color-surface-soft)}.badge-step__btn:disabled{opacity:.45;cursor:not-allowed}.badge-step__value{text-align:center;font-variant-numeric:tabular-nums;min-width:56px;color:var(--color-text)}.badge-limit{color:var(--color-text-label);margin:4px 0 0;font-size:12px}.badge-panel__block{border-radius:var(--radius-md);border:1px solid #0000;flex-direction:column;gap:6px;margin:0 -6px;padding:6px;display:flex}.badge-panel__block[data-current]{border-color:var(--color-accent-strong);background:var(--color-accent-soft)}.badge-panel__head{align-items:center;gap:6px;min-height:32px;display:flex}.badge-panel__name{min-width:0;color:var(--color-text);text-overflow:ellipsis;white-space:nowrap;flex:0 auto;font-size:12px;font-weight:600;overflow:hidden}.badge-panel__color{margin-left:auto}.badge-panel__head>.badge-mini,.badge-panel__head>.flag-mini{flex:none}.badge-panel__name+.badge-side{margin-left:auto}.badge-side{flex:none;align-items:center;display:inline-flex}.badge-side__opt{min-width:0;min-height:28px;color:var(--color-text);white-space:nowrap;padding:0 7px;font-size:12px}.badge-side__opt:has(input:disabled){opacity:.45;cursor:not-allowed}.badge-panel__head{flex-wrap:wrap;row-gap:4px}.badge-panel__head>.badge-side{flex:1 0 100%;order:1;margin-left:0}.badge-panel__head>.badge-side .badge-side__opt{flex:1 1 0;min-width:0}.badge-panel__head>.badge-side .badge-side__opt:has(input:checked){font-weight:600}.badge-panel__section{border-top:1px solid var(--color-border);flex-direction:column;gap:6px;padding-top:10px;display:flex}.badge-panel__section-head{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.badge-panel__title{color:var(--color-text);font-size:12px;font-weight:600}.badge-panel__count{font-variant-numeric:tabular-nums;color:var(--color-text-label);font-size:12px}.badge-panel__check{min-height:28px;color:var(--color-text);cursor:pointer;align-items:center;gap:8px;font-size:12px;display:flex}.badge-panel__check:has(input:disabled){cursor:not-allowed}.badge-panel__hint{color:var(--color-text-label);margin:0;font-size:12px;line-height:1.4}.badge-icon__row{flex-wrap:wrap;align-items:center;gap:6px;min-height:28px;display:flex}.badge-icon__label{color:var(--color-text-label);font-size:12px}.badge-icon__remove{margin-left:auto}.badge-icon__confirm{border:1px solid var(--color-danger-border);border-radius:var(--radius-md);background:var(--color-danger-soft);color:var(--color-text);flex-wrap:wrap;align-items:center;gap:6px 8px;padding:6px 8px;font-size:12px;line-height:1.4;display:flex}.badge-icon__confirm-text{overflow-wrap:anywhere;flex:100%;min-width:0;margin:0}.badge-icon-upload{flex-wrap:wrap;align-items:center;gap:4px 8px;display:flex}.badge-icon-upload__btn{border-style:dashed}.badge-icon-upload__btn[aria-disabled=true]{opacity:.55;cursor:not-allowed}.badge-icon-upload__btn[aria-disabled=true]:hover{background:var(--color-surface)}.badge-icon-upload__btn[aria-busy=true]{cursor:progress}.badge-icon-upload__hint{color:var(--color-text-label);flex:100%;margin:0;font-size:12px;line-height:1.4}.badge-icon-error{border:1px solid var(--color-danger-border);border-radius:var(--radius-md);background:var(--color-danger-soft);color:var(--color-danger-strong);margin:0;padding:6px 8px;font-size:12px;line-height:1.4}.badge-icon-error--bar{margin:-4px 0 12px;font-size:13px}.badge-mini--icon{box-sizing:content-box;width:var(--icon-mini-w,12px);border-radius:2px;height:12px;margin-block:-1px;padding:1px}.badge-mini--icon>svg{width:100%;height:100%;display:block}:root[data-theme=dark] .badge-mini--icon{background:#fff}@media (forced-colors:active){.badge-mini--icon,.badge-mini--icon>svg{forced-color-adjust:none}}[data-run-element=badge]{cursor:pointer}[data-run-element=badge]:focus-visible{outline:var(--focus-ring);outline-offset:1px}@media (pointer:coarse){.badge-mode__btn,.badge-level__opt,.badge-side__opt,.badge-panel__check,.badge-icon-upload__btn,.badge-icon__remove,.badge-step__btn,.badge-custom__input{min-height:40px}.badge-step__btn{width:40px}.badge-mode__remove{min-width:44px;min-height:44px}.badge-check{width:24px;height:24px}.flag-picker__control{min-height:40px}.flag-picker__input{font-size:16px}.flag-picker__toggle{width:40px}.flag-picker__option{min-height:44px}.flag-picker__list{max-height:min(352px,50vh)}}@media (max-width:480px){.badge-bar,.badge-bar__icons{flex-direction:column;align-items:stretch}.badge-bar__icons{flex:none}.badge-bar__modes{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.badge-bar__modes .badge-mode__btn{justify-content:center;min-width:0}.badge-mode__icon-pair .badge-mode__btn{flex:auto}.badge-icon__confirm--bar{grid-column:1/-1}.badge-mode__custom-text{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.badge-mode__btn--add{grid-column:1/-1}.badge-custom__field{flex:100%}.badge-custom__input{flex:auto;width:auto}.flag-picker{flex:100%}.flag-picker__field{flex:auto;max-width:none}}.auto-layout-trigger{white-space:nowrap;padding:8px 16px}.auto-layout-trigger[aria-busy=true]{cursor:progress}.auto-layout-reset{white-space:nowrap}.auto-layout-reset[aria-disabled=true]{opacity:.55;cursor:default}.ui-btn.auto-layout-reset[aria-disabled=true]:hover{background:0 0}.auto-layout-live{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.layout-variants{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);min-width:0;max-width:100%;box-shadow:var(--shadow-card);color:var(--color-text);gap:12px;margin-bottom:16px;padding:12px 14px;font-size:13px;line-height:1.4;display:grid}.layout-variants__head{gap:4px;min-width:0;display:grid}.layout-variants__title{color:var(--color-text);margin:0;font-size:15px;font-weight:600}.layout-variants__note,.layout-variants__baseline{color:var(--color-text-label);overflow-wrap:anywhere;margin:0;font-size:12px}.layout-variants__baseline{font-variant-numeric:tabular-nums}.layout-variants__note--warn,.layout-variants__note--error{border-radius:var(--radius-sm);border:1px solid;padding:6px 10px}.layout-variants__note--warn{border-color:var(--color-warn-border);background:var(--color-warn-soft);color:var(--color-warn)}.layout-variants__note--error{border-color:var(--color-danger-border);background:var(--color-danger-soft);color:var(--color-danger-strong)}:root[data-theme=dark] .layout-variants__note--error{color:var(--color-text-strong)}.layout-variants__list{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.layout-variants[aria-busy=true] .layout-variants__list{opacity:.55}.layout-variant{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface-soft);flex-direction:column;gap:8px;min-width:0;padding:10px 12px;display:flex}.layout-variant[data-applied=true]{border-color:var(--color-success);box-shadow:inset 0 0 0 1px var(--color-success)}.layout-variant__head{flex-wrap:wrap;align-items:center;gap:4px 6px;min-width:0;display:flex}.layout-variant__name{color:var(--color-text);margin:0;font-size:14px;font-weight:600}.layout-variant__chip{border:1px solid var(--color-border-strong);border-radius:var(--radius-pill);background:var(--color-surface);color:var(--color-text-strong);white-space:nowrap;align-items:center;padding:1px 8px;font-size:12px;line-height:1.4;display:inline-flex}.layout-variant__chip--format{border-color:var(--color-accent);background:var(--color-accent-soft);color:var(--color-accent-strong)}.layout-variant__chip--below{border-color:var(--color-warn-border);background:var(--color-warn-soft);color:var(--color-warn)}.layout-variant__chip--narrow{border-style:dashed;border-color:var(--color-warn);color:var(--color-warn)}.layout-variant__chip--issues{border-color:var(--color-danger-border);background:var(--color-danger-soft);color:var(--color-danger-strong)}.layout-variant__chip--applied{border-color:var(--color-success-border);background:var(--color-success-soft);color:var(--color-success)}.layout-variant__body{align-items:flex-start;gap:10px;min-width:0;display:flex}.layout-variant__thumb{flex:none;width:64px;height:64px}.layout-variant__sheet{fill:var(--color-surface);stroke:var(--color-border-strong);stroke-width:1px;vector-effect:non-scaling-stroke}.layout-variant__sheet--back{fill:var(--color-surface-sunk)}.layout-variant__column{fill:var(--color-text-subtle);opacity:.45}.layout-variant__metrics{font-variant-numeric:tabular-nums;gap:1px;min-width:0;margin:0;padding:0;list-style:none;display:grid}.layout-variant__metric--changed{color:var(--color-accent-strong);font-weight:600}.layout-variant__recs-label{color:var(--color-text-strong);margin:0;font-size:12px;font-weight:600}.layout-variant__recs{color:var(--color-text-label);overflow-wrap:anywhere;gap:2px;margin:0;padding-left:16px;font-size:12px;display:grid}.layout-variant__actions{gap:8px;margin-top:auto;display:flex}.layout-variant__apply[aria-disabled=true]{opacity:.55;cursor:default}.layout-variant__apply[aria-disabled=true]:hover{background:var(--color-surface)}.layout-variants__foot{flex-wrap:wrap;align-items:center;gap:8px 12px;display:flex}.layout-variants__foot>.layout-variants__note{flex:220px}@media (prefers-reduced-motion:no-preference){.layout-variants__list{transition:opacity .15s}}@media (max-width:480px){.layout-variants{padding:10px}.layout-variant__thumb{width:48px;height:48px}.layout-variants__foot>.ui-btn{flex:100%}}.ai-layout-status,.ai-layout-intent{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);min-width:0;max-width:100%;color:var(--color-text);gap:8px;margin-bottom:12px;padding:10px 14px;font-size:13px;line-height:1.4;display:grid}.ai-layout-status{grid-template-columns:auto 1fr auto;align-items:center}.ai-layout-status__badge{border:1px solid var(--color-accent);border-radius:var(--radius-pill);background:var(--color-accent-soft);color:var(--color-accent-strong);padding:1px 8px;font-size:12px}.ai-layout-status[data-stage=locked] .ai-layout-status__badge{border-style:dashed;border-color:var(--color-border-strong);background:var(--color-surface);color:var(--color-text-label)}.ai-layout-status[data-stage=locked] .ai-layout-status__text{color:var(--color-text-label)}.ai-layout-status[data-stage=failed]{border-color:var(--color-warn-border);background:var(--color-warn-soft)}.ai-layout-status[data-stage=failed] .ai-layout-status__text{color:var(--color-warn)}.ai-layout-status__text{overflow-wrap:anywhere;margin:0}.ai-layout-status__actions{flex-wrap:wrap;gap:8px;display:flex}.ai-layout-status__bar{background:var(--color-border);border-radius:2px;grid-column:1/-1;height:3px;overflow:hidden}.ai-layout-status__bar>span{background:var(--color-accent);height:100%;display:block}@media (prefers-reduced-motion:no-preference){.ai-layout-status__bar>span{transition:width .3s}}.ai-layout-intent__title{margin:0;font-size:15px;font-weight:600}.ai-layout-intent__hint{color:var(--color-text-label);margin:0;font-size:12px}.ai-layout-intent__q{border:0;gap:6px;min-width:0;margin:0;padding:0;display:grid}.ai-layout-intent__q>legend{padding:0;font-weight:600}.ai-layout-intent__q-hint{color:var(--color-text-label);overflow-wrap:anywhere;margin:0;font-size:12px}.ai-layout-intent__options{flex-wrap:wrap;gap:6px;display:flex}.ai-layout-intent__option{align-items:center;min-height:36px;display:inline-flex;position:relative}.ai-layout-intent__option input{opacity:0;cursor:pointer;margin:0;position:absolute;inset:0}.ai-layout-intent__option span{border:1px solid var(--color-border-strong);border-radius:var(--radius-pill);background:var(--color-surface);color:var(--color-text-strong);padding:6px 12px}.ai-layout-intent__option input:checked+span{border-color:var(--color-accent);background:var(--color-accent-soft);color:var(--color-accent-strong)}.ai-layout-intent__option input:focus-visible+span{outline:2px solid var(--color-accent);outline-offset:2px}.ai-layout-intent__actions{flex-wrap:wrap;gap:8px;display:flex}.layout-variant--ai{grid-column:1/-1}.layout-variant__chip--ai{border-color:var(--color-accent);background:var(--color-accent-soft);color:var(--color-accent-strong)}.layout-variant__ai-note{color:var(--color-text-label);overflow-wrap:anywhere;margin:0;font-size:12px}.layout-variants__more>summary{cursor:pointer;color:var(--color-text-label);padding:4px 0;font-size:12px}.layout-variants__more>summary:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.layout-variants__more[open]>summary{margin-bottom:8px}@media (max-width:480px){.ai-layout-status{grid-template-columns:1fr auto}.ai-layout-status__badge{display:none}.ai-layout-intent__actions>.ui-btn{flex:100%}.ai-layout-intent__actions>.ui-btn,.ai-layout-status .ui-btn,.auto-layout-reset{min-height:36px}}.preflight{--preflight-ink:var(--color-text-strong);--preflight-soft:var(--color-surface-soft);--preflight-line:var(--color-border);border:1px solid var(--preflight-line);border-radius:var(--radius-md);background:var(--preflight-soft);min-width:0;max-width:36rem;color:var(--color-text);font-size:13px;line-height:1.45}.preflight[data-preflight-status=ready]{--preflight-ink:var(--color-success);--preflight-soft:var(--color-success-soft);--preflight-line:var(--color-success-border)}.preflight[data-preflight-status=warnings]{--preflight-ink:var(--color-warn);--preflight-soft:var(--color-warn-soft);--preflight-line:var(--color-warn-border)}.preflight[data-preflight-status=blocked]{--preflight-ink:var(--color-danger);--preflight-soft:var(--color-danger-soft);--preflight-line:var(--color-danger-border)}.preflight[aria-busy=true]{opacity:.6}.preflight__head{flex-wrap:wrap;align-items:flex-start;gap:6px 10px;padding:10px 12px;display:flex}.preflight__icon{width:20px;height:20px;color:var(--preflight-ink);flex:none;margin-top:1px}.preflight__icon svg,.preflight__item-icon svg,.preflight__chevron{width:100%;height:100%;display:block}.preflight__summary{flex:14rem;min-width:0}.preflight__title{color:var(--preflight-ink);overflow-wrap:anywhere;margin:0;font-size:14px;font-weight:600}.preflight__lead{color:var(--color-text-strong);margin:2px 0 0}.preflight__toggle{border-radius:var(--radius-sm);min-height:28px;color:var(--color-text-strong);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:1px solid #0000;align-items:center;gap:4px;margin-left:auto;padding:3px 8px;font-weight:500;display:inline-flex}.preflight__toggle:hover{border-color:var(--preflight-line);background:var(--color-surface)}.preflight__toggle:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}.preflight__chevron{flex:none;width:16px;height:16px}.preflight__toggle[aria-expanded=true] .preflight__chevron{transform:rotate(180deg)}.preflight__list{border-top:1px solid var(--preflight-line);border-radius:0 0 calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px);background:var(--color-surface);flex-direction:column;gap:8px;margin:0;padding:10px 12px 12px;list-style:none;display:flex}.preflight__list[hidden]{display:none}.preflight__item{grid-template-columns:16px minmax(0,1fr);align-items:start;column-gap:8px;display:grid}.preflight__item-icon{width:16px;height:16px;color:var(--color-text-label);margin-top:1px}.preflight__item[data-level=ok] .preflight__item-icon{color:var(--color-success)}.preflight__item[data-level=warn] .preflight__item-icon{color:var(--color-warn)}.preflight__item[data-level=fail] .preflight__item-icon{color:var(--color-danger)}.preflight__item[data-level=info] .preflight__item-icon{color:var(--color-info)}.preflight__item-text{color:var(--color-text);overflow-wrap:anywhere;font-weight:500;display:block}.preflight__item[data-level=fail] .preflight__item-text{color:var(--color-danger)}.preflight__item-hint{color:var(--color-text-label);overflow-wrap:anywhere;margin-top:1px;font-size:12px;display:block}.preflight__foot{border-top:1px dashed var(--color-border);color:var(--color-text-label);flex-wrap:wrap;align-items:center;gap:4px 10px;margin:2px 0 0;padding-top:8px;font-size:12px;display:flex}.preflight__goto{color:var(--color-accent-strong);font:inherit;text-underline-offset:2px;cursor:pointer;background:0 0;border:0;padding:0;font-weight:600;text-decoration:underline}.preflight__goto:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset);border-radius:2px}.preflight__sr{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (prefers-reduced-motion:no-preference){.preflight{transition:opacity .12s linear}.preflight__chevron{transition:transform .15s}}@media (max-width:480px){.preflight__head{padding:10px}.preflight__toggle{margin-left:22px}.preflight__list{padding:10px}}@media (forced-colors:active){.preflight,.preflight__list{border-color:canvastext}.preflight__icon,.preflight__item-icon{color:canvastext}}.font-picker__panel{overscroll-behavior:contain;max-height:min(400px,50vh);scroll-padding-top:36px;overflow-y:auto}.note-plate-group{border-top:1px solid var(--color-border);flex-direction:column;gap:8px;margin-top:4px;padding-top:8px;display:flex}.note-plate-group__hint{color:var(--color-text-muted);overflow-wrap:anywhere;margin:0;font-size:12px;line-height:1.35}[data-element-menu] .font-picker__panel{margin-top:6px;width:auto!important;min-width:0!important;max-width:none!important;box-shadow:none!important;position:static!important}.font-picker__group{flex-direction:column;gap:6px;display:flex}.font-picker__group+.font-picker__group{margin-top:10px}.font-picker__group-head{z-index:1;background:var(--color-surface);color:var(--color-text-label);margin:0 -12px;padding:8px 12px 4px;font-size:12px;font-weight:600;line-height:16px;position:sticky;top:0}.font-picker__family{border:1px solid var(--color-border);border-radius:var(--radius-sm);content-visibility:auto;contain-intrinsic-size:auto 72px;flex-direction:column;gap:6px;padding:6px 8px 8px;display:flex}.font-picker__family-name{font-size:16px;line-height:1.3}.font-picker__chips{flex-wrap:wrap;gap:4px;display:flex}.font-picker__option{border:1px solid var(--color-sheet-guide);border-radius:var(--radius-xs);white-space:nowrap;text-align:left;cursor:pointer;align-items:center;min-height:28px;padding:2px 8px;font-size:13px;line-height:1.3;display:inline-flex}.font-picker__option--family{border-color:var(--color-border);border-radius:var(--radius-sm);white-space:normal;width:100%;min-height:36px;padding:6px 8px;font-size:16px;display:block}.font-picker__family[data-font-class=script] .font-picker__family-name,.font-picker__option--family[data-font-class=script]{font-size:20px;line-height:1.45}.font-picker__family[data-font-class=script] .font-picker__chips .font-picker__option{font-size:16px}.font-picker__option:hover{border-color:var(--color-sheet-guide);box-shadow:inset 0 0 0 1px var(--color-sheet-guide)}.font-picker__option[aria-pressed=true]{border-color:var(--color-accent);box-shadow:inset 0 0 0 1px var(--color-accent)}.font-picker__option:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset)}[data-font-current],[data-font-sample],.font-picker__family-name{font-synthesis:none}@media (forced-colors:active){.font-picker__option[aria-pressed=true]{outline-offset:1px;outline:2px solid highlight}}.leader-color{align-items:center;gap:8px;min-width:0;display:inline-flex}.leader-color__label{color:var(--color-text-strong);font-size:13px;font-weight:500}.leader-color__state{color:var(--color-text-label);font-size:12px;line-height:1.3}.leader-color__reset{white-space:nowrap}.readable-note{color:var(--color-text-label);margin:0;font-size:12px;line-height:1.4}.readable-note:empty{display:none}.readable-hint{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.readable-hint__text{color:var(--color-warn);margin:0;font-size:12px;line-height:1.4}.readable-hint__fix{white-space:nowrap}
