@font-face{font-family:Lato;src:url('./assets/lato-regular.ttf') format('truetype');font-weight:400;font-display:swap}@font-face{font-family:Lato;src:url('./assets/lato-bold.ttf') format('truetype');font-weight:700;font-display:swap}
:root{--ink:#20372d;--muted:#536257;--paper:#fff;--ground:#eff0eb;--stage:#dce0d5;--line:#c6cec2;--accent:#e9b95d;--accent-ink:#3e3017;--error:#9a2c24;--focus:#b46518;--shadow:0 10px 28px #20372d26;font-family:Lato,sans-serif;color:var(--ink);background:var(--ground);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{min-height:40px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);padding:9px 13px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}button:hover:not(:disabled){background:#e9ede5;border-color:#96a48f}button:disabled{opacity:.45;cursor:not-allowed}button:active:not(:disabled){transform:translateY(1px)}button svg, .memory-note svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}a{color:inherit;text-underline-offset:4px}a:hover{text-decoration-thickness:2px}::selection{background:#e9b95d;color:#20372d}:focus-visible{outline:3px solid var(--focus);outline-offset:3px}input,select{caret-color:var(--ink);accent-color:var(--ink)}*{scrollbar-color:#899b87 transparent;scrollbar-width:thin}[hidden]{display:none!important}.skip-link{position:absolute;left:16px;top:-90px;z-index:20;padding:12px;background:var(--accent);border-radius:6px}.skip-link:focus{top:12px}
.app-header{display:flex;align-items:center;justify-content:space-between;gap:24px;background:var(--ink);color:#fff;padding:22px max(28px,calc((100vw - 1450px)/2));border-bottom:1px solid #3e5648}.identity{display:flex;align-items:center;gap:14px;min-width:0}.identity>svg{fill:var(--accent);width:32px;height:32px;flex:none}.identity h1{font-size:25px;line-height:1.1;letter-spacing:-.025em;margin:0 0 5px;font-weight:700}.identity p{font-size:13px;line-height:1.4;color:#c5d1c7;margin:0}.file-actions{display:flex;gap:8px;align-items:center}.header-quiet,.header-outline{color:#fff;background:transparent;border-color:transparent}.header-outline{border-color:#738778}.header-quiet:hover:not(:disabled),.header-outline:hover:not(:disabled){background:#365344;color:#fff;border-color:#738778}.button-accent{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.button-accent:hover:not(:disabled){background:#f0c978;border-color:#f0c978}.button-dark{color:#fff;background:var(--ink);border-color:var(--ink)}.button-dark:hover:not(:disabled){background:#345442;color:#fff;border-color:#345442}main{max-width:1450px;margin:auto;padding:0 28px}.workspace-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 0 18px}.workspace-bar h2{font-size:21px;letter-spacing:-.02em;margin:0 0 5px}.workspace-bar p{margin:0;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}.export-actions{display:flex;gap:8px}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 304px;grid-template-areas:'preview inspector' 'sequence sequence';gap:18px;align-items:start}.preview-region{grid-area:preview;min-width:0}.preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;min-height:32px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.sample-badge{background:#e5dcc8;color:#69542d;padding:5px 8px;border-radius:4px;font-size:11px;font-weight:700}.sample-badge.custom{background:transparent;padding-left:0;color:var(--muted)}.pagination{display:flex;align-items:center;gap:12px}.pagination button{min-height:29px;padding:3px;width:29px;background:transparent;border-color:#bcc8b8;border-radius:5px}.pagination button svg{width:16px;height:16px}.pagination span{min-width:75px;text-align:center}.canvas-stage{height:clamp(420px,calc(42vw - 30px),680px);background:var(--stage);border-radius:9px;display:flex;align-items:center;justify-content:center;padding:22px;position:relative;overflow:hidden}.paper-wrap{position:relative;height:100%;max-width:100%;max-height:100%;flex:none;box-shadow:var(--shadow);background:#fff;animation:paper-arrives .38s cubic-bezier(.16,1,.3,1) both}.paper-wrap img{display:block;width:100%;height:100%;object-fit:contain}.selection-frame{position:absolute;outline:2px solid #bb7323;outline-offset:2px;pointer-events:none;border-radius:1px}.preview-caption{font-size:11px;color:var(--muted);margin:9px 0 0}.inspector{grid-area:inspector;background:var(--paper);border-radius:10px;overflow:hidden;max-height:calc(clamp(420px,calc(42vw - 30px),680px) + 64px);overflow-y:auto}.inspector-tabs{display:flex;background:#f7f8f4;border-bottom:1px solid #e0e4db;padding:0 15px;position:sticky;top:0;z-index:2}.inspector-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;padding:14px 16px;font-size:13px;color:var(--muted);flex:1}.inspector-tabs button[aria-selected=true]{border-bottom-color:var(--ink);color:var(--ink)}.inspector>section{padding:0 20px 18px}.panel-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:20px 0 18px}.panel-heading h3{font-size:16px;line-height:1.3;margin:0;min-width:0}.panel-heading span{font-size:11px;color:var(--muted);white-space:nowrap}.muted{font-size:14px;line-height:1.6;color:var(--muted)}fieldset{border:0;padding:0;margin:0;min-width:0}label{font-size:12px;font-weight:700;display:block;margin:17px 0 7px;color:#34493b}fieldset>label:first-child{margin-top:0}label>span{font-weight:400;color:var(--muted);font-size:11px;float:right}input:not([type=checkbox]),select{width:100%;border:1px solid #c9d0c4;border-radius:5px;padding:10px 11px;color:var(--ink);background:#fff;min-height:40px;min-width:0;font-size:13px}input:disabled,select:disabled{background:#eef1eb}input[aria-invalid=true]{border-color:var(--error)}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-row>div{min-width:0}.check-label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:400;min-height:26px;margin:12px 0}.check-label input{width:16px;height:16px;margin:0}.price-input{display:flex;align-items:center;border:1px solid #c9d0c4;border-radius:5px;padding:0 11px;font-size:13px;color:var(--muted)}.price-input input{border:0!important;padding-left:9px!important}.price-input:focus-within{outline:2px solid var(--focus);outline-offset:2px}.price-input input:focus-visible{outline:none}.field-help{font-size:11px;line-height:1.5;color:var(--muted);margin:7px 0 0}.item-tools{display:flex;justify-content:space-between;gap:10px;margin-top:18px}.item-tools>button{font-size:12px;padding:7px 10px;min-height:35px}.move-controls{display:flex;gap:5px}.move-controls button{padding:7px;min-height:35px}.file-note{border-top:1px solid #e3e7de;margin-top:19px;padding-top:14px;font-size:11px;color:var(--muted)}.file-note>span{font-weight:700}.file-note p{line-height:1.4;overflow-wrap:anywhere;margin:7px 0}.file-note small{font-size:10px}.danger-button{font-size:11px;color:var(--error);background:transparent;border-color:transparent;min-height:32px;padding:4px 0;margin-top:11px}.danger-button:hover:not(:disabled){color:#842019;background:#fff1ed;border-color:transparent}.memory-note{display:flex;align-items:center;gap:9px;padding:14px 19px;background:#f3f5ee;color:#53614c}.memory-note p{font-size:10px;line-height:1.7;margin:0}.memory-note strong{font-weight:700}.sequence{grid-area:sequence;min-width:0;padding:2px 0 0}.sequence-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:12px}.sequence-heading h3{font-size:14px;margin:0}.sequence-heading span{font-size:11px;color:var(--muted)}.sequence ol{display:flex;gap:10px;overflow-x:auto;list-style:none;margin:0;padding:3px 3px 12px;scroll-snap-type:x proximity}.sequence li{flex:0 0 138px;min-width:0;scroll-snap-align:start}.product-card{width:100%;border:0;padding:0;display:block;position:relative;white-space:normal;text-align:left;background:transparent;border-radius:6px;overflow:hidden}.product-card:hover:not(:disabled){background:#e2e8dc}.product-card[aria-pressed=true]{outline:2px solid var(--ink);outline-offset:1px}.product-card img{display:block;width:100%;height:88px;object-fit:cover;background:#d7ddcf}.product-card .card-caption{display:block;padding:8px 8px 9px;min-height:47px}.card-caption strong{font-size:11px;font-weight:700;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-caption small{font-size:9px;color:var(--muted);margin-top:4px;display:block}.product-card .position{position:absolute;left:6px;top:6px;background:#fff;color:var(--ink);font-size:10px;font-variant-numeric:tabular-nums;min-width:21px;text-align:center;padding:3px 5px;border-radius:3px}.sequence .empty-sequence{font-size:12px;color:var(--muted);flex:1;padding:8px 0}.status{font-size:12px;line-height:1.5;min-height:35px;padding:9px 0 8px;color:var(--muted)}.status.error{color:var(--error);font-weight:700}.status.busy{color:#72521e}.usage-note{display:flex;justify-content:space-between;align-items:baseline;gap:20px;border-top:1px solid #d4dbce;padding:10px 0}.usage-note p{font-size:10px;line-height:1.7;margin:0;color:var(--muted)}.text-button{background:transparent;border:0;padding:0;min-height:27px;font-size:inherit;color:var(--ink);text-decoration:underline;text-underline-offset:4px}.text-button:hover:not(:disabled){background:transparent;text-decoration-thickness:2px}footer{max-width:1450px;margin:auto;padding:13px 28px 23px;display:flex;justify-content:space-between;gap:16px;align-items:center;color:var(--muted);font-size:10px}footer>a:first-child{font-size:10px;letter-spacing:.07em;font-weight:700;text-decoration:none;color:var(--ink)}.empty-state{max-width:320px;text-align:center}.empty-state>svg{width:70px;height:70px;stroke:#84967f;stroke-width:2;fill:none}.empty-state h3{font-size:22px;line-height:1.3;letter-spacing:-.02em;margin:13px 0}.empty-state p{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 18px}.empty-state>button{margin:auto;display:flex}.empty-state>.text-button{font-size:11px;margin-top:11px}dialog{border:0;padding:26px;max-width:min(440px,calc(100vw - 36px));border-radius:12px;color:var(--ink);box-shadow:0 20px 65px #172a2540}dialog::backdrop{background:#14251d73}dialog h2{font-size:23px;margin:0 0 13px;letter-spacing:-.025em}dialog p{font-size:14px;line-height:1.65;margin:0 0 23px;color:var(--muted)}.dialog-actions{display:flex;gap:9px;justify-content:flex-end}noscript{display:block;padding:20px;background:#fff1db;color:var(--ink)}@keyframes paper-arrives{from{filter:brightness(.94);box-shadow:0 2px 8px #20372d18}to{filter:brightness(1);box-shadow:var(--shadow)}}
@media(min-width:1450px){.editor-layout{grid-template-columns:minmax(0,1fr) 330px}.canvas-stage{padding:26px}.inspector>section{padding-left:24px;padding-right:24px}}
@media(max-width:1000px){.app-header{padding:20px;gap:16px}.identity h1{font-size:22px}.identity p{font-size:11px}.file-actions{gap:5px}.file-actions button{padding:8px 10px;font-size:11px}.editor-layout{grid-template-columns:minmax(0,1fr) 280px;gap:15px}main{padding:0 20px}.preview-toolbar{gap:6px;font-size:10px}.pagination{gap:6px}.sample-badge{font-size:10px}footer{padding-left:20px;padding-right:20px}.paper-wrap{max-width:100%}.canvas-stage{padding:18px}}
@media(max-width:760px){.app-header{flex-direction:column;align-items:stretch;padding:18px 18px 14px;gap:17px}.identity h1{font-size:25px}.identity p{font-size:12px}.identity>svg{width:30px}.file-actions{display:grid;grid-template-columns:auto 1fr 1fr auto;gap:5px}.file-actions button{font-size:11px;min-height:39px;padding:8px}.file-actions .button-accent svg{display:none}.workspace-bar{padding:21px 0 16px;gap:10px}.workspace-bar h2{font-size:20px}.export-actions{gap:5px}.export-actions button{font-size:11px;padding:8px;min-height:36px}.export-actions svg{display:none}.workspace-bar p{font-size:11px}.editor-layout{grid-template-columns:1fr;grid-template-areas:'preview' 'sequence' 'inspector';gap:22px}main{padding:0 18px}.preview-toolbar{font-size:10px;margin-bottom:10px}.canvas-stage{height:min(115vw,560px);min-height:350px;padding:18px}.preview-caption{font-size:10px}.inspector{max-height:none;border-radius:9px}.inspector>section{padding:0 20px 23px}.panel-heading{margin:20px 0}.inspector-tabs button{font-size:14px}.memory-note{padding:15px 20px}.memory-note p{font-size:11px}.sequence-heading{gap:8px;margin-bottom:10px}.sequence-heading h3{font-size:13px}.sequence-heading span{font-size:10px;text-align:right;max-width:150px}.sequence li{flex-basis:126px}.product-card img{height:87px}.card-caption strong{font-size:11px}.usage-note{display:block;padding:14px 0}.usage-note p{font-size:10px}.usage-note p+p{margin-top:4px}footer{padding:13px 18px 22px;flex-wrap:wrap;gap:12px}footer span{order:3;width:100%}.form-row{gap:14px}label{font-size:13px}input:not([type=checkbox]),select{font-size:16px;min-height:45px}.check-label{font-size:13px;margin:15px 0}.item-tools{margin-top:22px}.item-tools>button,.move-controls button{min-height:42px}.danger-button{font-size:12px;min-height:39px}.file-note{font-size:12px}.field-help{font-size:11px}.status{font-size:11px}.preview-toolbar>#paper-label{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}button:active:not(:disabled){transform:none}}

.product-card .thumb{display:block;height:88px;overflow:hidden}.product-card .thumb img{height:100%}
@media(max-width:760px){.product-card .thumb{height:87px}}

@media(max-width:380px){.file-actions{grid-template-columns:1fr 1fr}}

.preview-caption{display:flex;justify-content:space-between;gap:12px}.preview-caption a{white-space:nowrap;font-weight:700}
@media(min-width:761px){
 .app-header{padding-top:12px;padding-bottom:12px}
 .workspace-bar{padding-top:14px;padding-bottom:12px}
 .preview-toolbar{min-height:30px;margin-bottom:8px}
 .canvas-stage{height:clamp(300px,calc(28vw - 18px),460px)}
 .inspector{max-height:calc(clamp(300px,calc(28vw - 18px),460px) + 56px)}
 .editor-layout{row-gap:14px}
 .panel-heading{margin-top:16px;margin-bottom:14px}
 fieldset>label{margin-top:12px}
 .item-tools{margin-top:14px}
 .sequence-heading{margin-bottom:8px}
 .product-card .thumb{height:64px}
 .product-card .card-caption{padding:6px 8px;min-height:40px}
 .card-caption small{margin-top:3px}
}
