.sheet-tool{--sheet-border:#d8cbb8;--sheet-ink:#24433d;--sheet-accent:#0f766e}
@font-face{font-family:SheetCaption;src:url('/assets/tools/strip-caption.ttf') format('truetype');font-display:block}
.sheet-tool #sheet-mode{display:block;margin-top:8px;width:min(100%,440px)}.sheet-tool #strip-options{margin-top:20px;align-items:start}.sheet-tool #strip-options .hint{margin:0}.sheet-tool #font-error{margin:16px 0;padding:16px;border:1px solid #98452e;border-radius:10px}.sheet-tool #sheet-mode:disabled{opacity:.6}
.sheet-tool #strip-preview{margin:24px auto;text-align:center}.sheet-tool #strip-preview canvas{width:min(100%,220px);margin:auto}.sheet-tool #strip-preview figcaption{margin:12px 0 24px}
.sheet-tool>main,.sheet-tool>header,.sheet-tool>footer{max-width:1100px;margin:auto;padding:24px}.sheet-tool .panel{background:var(--surface);border:1px solid var(--line);border-radius:16px;margin:32px 0;padding:28px}.sheet-tool .service-next{background:#e8eddf;border:1px solid #cdd7c5;border-radius:16px;padding:28px;margin:32px 0}.sheet-tool .actions{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.sheet-tool .field input[type=file]{display:block;margin-top:10px;width:100%}.sheet-tool details{border-top:1px solid var(--line);padding:16px 0}.sheet-tool summary{cursor:pointer;font-weight:600;min-height:32px}.sheet-tool .consent{grid-template-columns:24px 1fr}.sheet-tool .sheet-stage:has(.sheet-pages:empty){display:none}
.sheet-tool h1,.sheet-tool h2{text-wrap:balance}.sheet-tool .sheet-hero{display:grid;grid-template-columns:1.1fr 1fr;gap:32px;align-items:center}.sheet-tool .sheet-hero img{display:block;width:100%;height:auto;border-radius:16px}
.sheet-tool .sheet-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.sheet-tool .sheet-options label{display:grid;gap:6px}.sheet-tool input,.sheet-tool select{font:inherit;font-size:16px;min-height:44px;max-width:100%;padding:10px;border:1px solid #81786a;border-radius:8px;background:#fff}.sheet-tool input[type=checkbox]{min-height:24px;width:24px}.sheet-tool .sheet-check{display:flex;align-items:center;gap:10px;min-height:44px}
.sheet-tool .sheet-items{list-style:none;margin:20px 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.sheet-tool .sheet-item{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;padding:16px;border:1px solid var(--sheet-border);border-radius:12px;background:#fffaf3}.sheet-tool .sheet-item img{width:90px;height:112px;object-fit:contain;background:#f1eadf}.sheet-tool .sheet-name{margin:0;overflow-wrap:anywhere}.sheet-tool .sheet-actions{display:flex;flex-wrap:wrap;gap:8px}.sheet-tool .sheet-actions button{min-height:44px;padding:8px 10px;border:1px solid #81786a;border-radius:8px;background:#fff;cursor:pointer;font:inherit}.sheet-tool .sheet-item label{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0}.sheet-tool .sheet-item select{padding:5px 10px}.sheet-tool .sheet-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.sheet-tool figure{margin:0}.sheet-tool canvas{display:block;width:100%;height:auto;box-shadow:0 2px 10px #0002;background:white}.sheet-tool figcaption{font-size:14px;color:#555049;margin-top:8px}.sheet-tool .sheet-stage{padding:24px;background:#e8e1d6;border-radius:14px}.sheet-tool .sheet-empty{text-align:center;padding:24px;border:1px dashed #81786a;border-radius:12px}.sheet-tool .sheet-details{display:grid;gap:8px;padding-left:20px}.sheet-tool .sheet-summary{font-variant-numeric:tabular-nums;font-weight:600}.sheet-tool .sheet-actions button:disabled{opacity:.45;cursor:default}.sheet-tool button:focus-visible,.sheet-tool a:focus-visible,.sheet-tool input:focus-visible,.sheet-tool select:focus-visible{outline:3px solid var(--sheet-accent);outline-offset:3px}.sheet-tool .sheet-actions button:active{transform:scale(.97)}.sheet-tool .sheet-links{display:flex;gap:18px;flex-wrap:wrap}.sheet-tool [hidden]{display:none!important}
@media(max-width:700px){.sheet-tool .sheet-hero,.sheet-tool .sheet-items{grid-template-columns:1fr}.sheet-tool .sheet-options{grid-template-columns:repeat(2,minmax(0,1fr))}.sheet-tool .sheet-pages{grid-template-columns:1fr}.sheet-tool .sheet-stage{padding:16px}.sheet-tool .sheet-hero{gap:20px}.sheet-tool .sheet-hero img{max-height:280px;object-fit:contain}.sheet-tool .sheet-item{grid-template-columns:72px minmax(0,1fr);padding:12px}.sheet-tool .sheet-item img{width:72px;height:96px}}
@media(max-width:500px){.sheet-tool>main,.sheet-tool>header,.sheet-tool>footer{padding:18px}.sheet-tool .panel,.sheet-tool .service-next{padding:18px 14px}.sheet-tool>header{align-items:flex-start;flex-wrap:wrap}.sheet-tool .sheet-options{gap:12px}.sheet-tool input,.sheet-tool select{font-size:16px;min-width:0}.sheet-tool .actions .btn{width:100%}.sheet-tool .sheet-name{font-size:14px}}
@media(prefers-reduced-motion:reduce){.sheet-tool .sheet-actions button:active{transform:none}}
