:root{font-family:Inter,Arial,Helvetica,sans-serif;color:#1d2425;background:#edf0ee;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}
.app-header{height:76px;display:flex;align-items:center;gap:24px;padding:0 28px;background:#17231f;color:#fff;border-bottom:1px solid #263d32}.brand{display:flex;align-items:center;gap:12px;min-width:249px}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:#b2ce20;color:#17231f;font-size:25px;font-weight:900;letter-spacing:-5px;padding-right:5px;transform:skew(-9deg)}.brand div{display:flex;flex-direction:column;gap:2px}.brand strong{font-size:17px;letter-spacing:.14em;line-height:1}.brand span:last-child{font-size:9px;letter-spacing:.19em;color:#a9b8af}.header-actions{margin-left:auto;display:flex;gap:9px}.button{height:38px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:7px;border:1px solid transparent;padding:0 14px;font-size:12px;font-weight:750;white-space:nowrap;transition:background .15s,transform .15s}.button:hover{transform:translateY(-1px)}.button svg{width:16px;height:16px}.button-subtle{color:#e4eee5;background:#283932;border-color:#405047}.button-subtle:hover{background:#354a40}.button-dark{background:#b2ce20;color:#17221e}.button-dark:hover,.button-primary:hover{background:#c1da3c}.button-primary{background:#b2ce20;color:#17221e;min-width:130px}.button-danger{background:#fff;color:#ae3434;border-color:#eacaca}.button-danger:hover{background:#fff1f1}
.workspace{display:grid;grid-template-columns:242px 382px minmax(550px,1fr);min-height:calc(100vh - 76px)}.section-eyebrow{font-size:10px;letter-spacing:.16em;color:#76877d;font-weight:800}.library{background:#f8faf8;border-right:1px solid #dbe1db;padding:27px 14px 18px;display:flex;flex-direction:column}.library>.section-eyebrow{padding-left:10px}.library-title{display:flex;align-items:center;gap:9px;padding:0 10px;margin-top:7px}.library-title h2{font-size:20px;letter-spacing:-.04em;margin:0}.library-title span{background:#e8ede9;color:#657469;border-radius:99px;padding:2px 7px;font-size:11px;font-weight:700}.record-list{display:grid;gap:7px;align-content:start}.record-card{width:100%;text-align:left;border:1px solid transparent;border-radius:9px;background:transparent;padding:10px;display:flex;align-items:center;gap:10px}.record-card:hover{background:#eef2ec}.record-card.active{background:#e8efd4;border-color:#bdd07f}.record-thumb{height:45px;width:54px;flex:none;border-radius:5px;background:#dde3da;object-fit:contain}.record-copy{min-width:0;display:grid;gap:5px}.record-copy strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-copy small{font-size:11px;color:#6f7d72}.empty-library{margin:0 6px;padding:20px 12px;border:1px dashed #cfd8ce;border-radius:9px;color:#77877d;font-size:12px;line-height:1.5;text-align:center}
.editor{background:#fff;border-right:1px solid #dce2dc;overflow:auto;max-height:calc(100vh - 76px)}.editor-top{padding:27px 26px 20px;border-bottom:1px solid #edf0eb}.editor-top h1{font-size:24px;letter-spacing:-.045em;margin:6px 0 5px}.editor form{padding:23px 26px 32px}.form-section-title{display:flex;align-items:center;gap:9px;margin-bottom:15px}.form-section-title span{font-size:10px;font-weight:800;color:#53692a;background:#eaf2c8;width:23px;height:23px;border-radius:5px;display:grid;place-items:center}.form-section-title h2{font-size:14px;letter-spacing:-.02em;margin:0}.form-section-title.spaced{margin-top:30px}.field-grid{display:grid;gap:11px}.field-grid.two{grid-template-columns:1fr 1fr}.editor label:not(.upload-area){display:grid;gap:6px;font-size:11px;font-weight:700;color:#4f6055;margin-bottom:12px}.editor input:not([type=file]):not([type=checkbox]),.editor textarea{min-width:0;width:100%;border:1px solid #d9e1d9;background:#fbfcfb;color:#253029;border-radius:6px;padding:9px 10px;font-size:12px;outline:none}.editor input:focus,.editor textarea:focus{border-color:#99bc37;box-shadow:0 0 0 3px #b2ce2030}.editor textarea{resize:vertical;line-height:1.45;min-height:80px}.editor input::placeholder,.editor textarea::placeholder{color:#a5b0a6}.upload-area{border:1.5px dashed #b9c9b3;background:#f8fbf3;border-radius:9px;min-height:126px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;color:#637b43}.upload-area:hover,.upload-area.drag-over{background:#f0f7e5;border-color:#91b63f}.upload-area input{position:absolute;opacity:0;width:1px;height:1px}.upload-area svg{width:22px;height:22px}.upload-area strong{font-size:12px;color:#344535}.upload-area small{font-size:10px;color:#91a090}.field-hint{font-size:10px;line-height:1.5;color:#8b9a8e;margin:7px 0 0}.spec-fields{display:grid;gap:9px}.spec-field{display:grid;grid-template-columns:21px 1fr 1.1fr;align-items:center;gap:9px}.spec-field svg{width:20px;height:20px;color:#6a7d65}.spec-field label{font-size:11px;color:#4b5c50;line-height:1.2}.spec-field input{margin:0!important}.form-actions{display:flex;gap:8px;margin-top:26px}
.preview-area{min-width:0;padding:27px clamp(18px,2.5vw,42px);background:radial-gradient(circle at 45% 30%,#f8faf8,#e9eeea 75%)}.preview-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:18px}.preview-heading h2{font-size:22px;margin:5px 0 0;letter-spacing:-.04em}.catalog-shell{background:#fff;padding:10px;box-shadow:0 17px 35px #22372c1b;border:1px solid #dfe5df;border-radius:4px}.catalog-page{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;background:#f5f5f2;container-type:inline-size}.catalog-scene{position:absolute;inset:0;background:url('./assets/garage.png') center/cover no-repeat;clip-path:polygon(0 0,55% 0,24% 100%,0 100%)}.catalog-stripe{position:absolute;inset:0;background:#b1cf1f;clip-path:polygon(45% 0,55% 0,24% 100%,23% 100%)}.catalog-paper{position:absolute;inset:0;background:#f4f4f3;clip-path:polygon(55% 0,100% 0,100% 100%,24% 100%)}.catalog-photo{position:absolute;z-index:2;left:-1%;bottom:7%;width:54%;height:82%;object-fit:contain;object-position:left bottom;filter:drop-shadow(1.1cqw 1.2cqw .9cqw #1117)}.catalog-content{position:absolute;z-index:3;top:0;left:53%;right:2%;height:100%;font-family:Arial,Helvetica,sans-serif;color:#080b08}.catalog-category{position:absolute;top:10.2%;left:0;font-size:2.05cqw}.catalog-model{position:absolute;top:15.4%;left:0;max-width:57%;font-size:5.6cqw;line-height:1;letter-spacing:-.055em;color:#a9ca20;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.catalog-price{position:absolute;top:10%;right:0;background:#aecd36;border-radius:2.4cqw 3.8cqw 3.8cqw .7cqw;padding:1.25cqw 2.1cqw 1.35cqw;font-size:3.15cqw;line-height:1;white-space:nowrap}.catalog-price:after{content:"";position:absolute;left:0;bottom:-2.2cqw;border-top:2.3cqw solid #aecd36;border-left:2.5cqw solid transparent}.catalog-description{position:absolute;left:0;right:0;top:26.7%;margin:0;font-size:1.72cqw;line-height:1.43;max-height:21%;overflow:hidden}.catalog-spec-heading{position:absolute;top:44.2%;left:0;margin:0;font-size:1.96cqw;font-weight:400}.catalog-specs{position:absolute;top:52.5%;left:-1%;right:0;height:37.5%;border:.25cqw solid #aace25;border-radius:1.8cqw;overflow:hidden;display:grid;grid-template-columns:repeat(var(--spec-cols,5),1fr);grid-template-rows:repeat(var(--spec-rows,3),1fr)}.catalog-spec{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.8cqw;text-align:center;padding:.4cqw .2cqw;min-width:0}.catalog-spec:nth-child(n+6){border-top:.1cqw solid #b4cf43}.catalog-spec.cols-3:nth-child(n+4){border-top:.1cqw solid #b4cf43}.catalog-spec.cols-3:nth-child(4),.catalog-spec.cols-3:nth-child(5){border-top:.1cqw solid #b4cf43}.catalog-spec svg{width:4.3cqw;height:4.3cqw;stroke-width:1.55;flex:none}.catalog-spec span{font-size:.76cqw;line-height:1.2;max-width:100%;overflow-wrap:anywhere}.catalog-spec strong{display:block;font-weight:400;margin-top:.25cqw}.catalog-specs.empty{display:flex;justify-content:center;align-items:center;color:#82907d;font-size:1.1cqw}.status{font-size:12px;color:#405d2c;min-height:18px}.status.error{color:#b34242}
@media(max-width:1390px){.workspace{grid-template-columns:210px 346px minmax(500px,1fr)}.brand{min-width:210px}.editor-top{padding-left:20px;padding-right:20px}.editor form{padding-left:20px;padding-right:20px}}
@media(max-width:1080px){.workspace{grid-template-columns:220px minmax(330px,1fr)}.preview-area{grid-column:1/-1;grid-row:2}.editor{max-height:none}.library{grid-row:1}.catalog-shell{max-width:1000px;margin:auto}.preview-heading,.status{max-width:1000px;margin-left:auto;margin-right:auto}}
@media(max-width:620px){.app-header{height:auto;min-height:66px;padding:12px 16px;flex-wrap:wrap;gap:10px}.brand{min-width:0;margin-right:auto}.header-actions{margin-left:0;width:100%}.header-actions .button{flex:1}.workspace{display:flex;flex-direction:column}.library{order:2;padding:16px}.record-list{display:flex;overflow-x:auto}.record-card{min-width:155px}.editor{order:3;overflow:visible}.preview-area{order:1;padding:20px 12px}.preview-heading h2{font-size:19px}.catalog-shell{padding:4px}.editor-top{padding:22px 18px 15px}.editor form{padding:20px 18px}.catalog-content{left:53%}}
@media print{@page{size:320mm 240mm;margin:0}html,body{margin:0!important;padding:0!important;background:#fff!important}.app-header,.workspace,.correction-dialog,.icon-defs{display:none!important}#print-pages{display:block!important}.print-page{width:320mm;height:240mm;overflow:hidden;break-after:page;page-break-after:always}.print-page:last-child{break-after:auto;page-break-after:auto}.print-page .catalog-page{width:320mm!important;height:240mm!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.catalog-scene,.catalog-stripe,.catalog-paper,.catalog-price{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
.correction-button{margin-top:12px;background:#eef3e9;color:#314b35;border-color:#cbd9c5}.correction-button[hidden]{display:none}.correction-dialog{width:min(920px,94vw);max-height:94vh;border:0;border-radius:12px;padding:20px;background:#fff;box-shadow:0 24px 80px #0005}.correction-dialog::backdrop{background:#142019bb}.correction-dialog h2{margin:0 0 5px;font-size:20px}.correction-dialog p{margin:0 0 14px;color:#617066;font-size:13px}.correction-stage{display:flex;align-items:center;justify-content:center;overflow:auto;max-height:72vh;background-color:#c8c8c8;background-image:linear-gradient(45deg,#eee 25%,transparent 25%),linear-gradient(-45deg,#eee 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eee 75%),linear-gradient(-45deg,transparent 75%,#eee 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;padding:8px}.correction-stage canvas{display:block;max-width:100%;max-height:68vh;touch-action:none;cursor:crosshair}.correction-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:15px}.correction-actions button:disabled{opacity:.45;cursor:default}.correction-actions button:disabled:hover{transform:none}
@media print{.correction-dialog{display:none!important}}
.preview-controls{display:flex;align-items:center;gap:8px}.preview-controls .button{height:32px;padding:0 10px;border-color:#cbd8ca;background:#fff;color:#314535}.preview-controls .button[hidden]{display:none}.preview-controls .button[aria-pressed=true]{background:#b2ce20;border-color:#b2ce20}.catalog-photo{left:calc(-1% + var(--photo-x,0%));bottom:calc(7% - var(--photo-y,0%))}.catalog-page.positioning{cursor:grab;touch-action:none;outline:3px solid #a8c62b;outline-offset:-3px}.catalog-page.positioning:active{cursor:grabbing}
@media(max-width:620px){.preview-heading{align-items:start;gap:8px}.preview-controls{justify-content:flex-end;flex-wrap:wrap}.preview-controls .button{font-size:10px;padding:0 8px}}
@media print{.catalog-page.positioning{outline:0}}
.background-actions{display:flex;gap:7px;flex-wrap:wrap}.editor .background-upload{display:inline-flex!important;width:auto!important;margin:0!important;color:#314535;border-color:#cbd8ca;background:#f4f7ef}.background-upload input{position:absolute;width:1px;height:1px;opacity:0}.background-actions .button[hidden]{display:none}.position-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:-7px 0 13px;font-size:11px;color:#647466}.position-tools[hidden]{display:none}.position-tools label{display:flex;align-items:center;gap:7px;font-weight:700}.position-tools select{border:1px solid #cbd8ca;border-radius:6px;background:#fff;padding:6px 8px;color:#314535;font:inherit}.catalog-page.custom-background{background-position:center;background-size:cover}.catalog-page.custom-background .catalog-scene,.catalog-page.custom-background .catalog-stripe,.catalog-page.custom-background .catalog-paper{display:none}.catalog-page.positioning .active-position{outline:2px dashed #60851c;outline-offset:2px}
@media print{.position-tools{display:none!important}.catalog-page.positioning .active-position{outline:0}}
.editor-section{margin-top:22px;padding-top:18px;border-top:1px solid #e8eee7}.editor-section>.form-section-title{cursor:pointer;list-style:none;margin:0}.editor-section>.form-section-title::-webkit-details-marker{display:none}.editor-section>.form-section-title::after{content:'⌄';margin-left:auto;color:#71836e;font-size:19px;line-height:1;transform:rotate(-90deg)}.editor-section[open]>.form-section-title{margin-bottom:15px}.editor-section[open]>.form-section-title::after{transform:none}.editor-section>.form-section-title:focus-visible{outline:2px solid #99bc37;outline-offset:4px;border-radius:3px}
.correction-toolbar{margin-bottom:14px}.correction-toolbar span{font-size:11px;line-height:1.4;color:#6a796c}.correction-actions #auto-remove{margin-right:auto;height:44px;font-size:13px;box-shadow:0 3px 9px #778d242a}.correction-finish{background:#263b2f;color:#fff}.correction-finish:hover{background:#355441}
.record-row{position:relative;display:flex;align-items:center;min-width:0;border:1px solid transparent;border-radius:9px}.record-row.active{background:#e8efd4;border-color:#bdd07f}.record-row .record-card{flex:1;min-width:0;padding-right:34px}.record-row.active .record-card{background:transparent;border-color:transparent}.record-clone{position:absolute;top:5px;right:5px;display:grid;place-items:center;width:25px;height:25px;border:0;border-radius:5px;background:transparent;color:#38523b;padding:3px;opacity:0;pointer-events:none}.record-clone svg{width:18px;height:18px}.record-row:hover .record-clone,.record-row:focus-within .record-clone{opacity:1;pointer-events:auto}.record-clone:hover{background:#d4e6a8}.record-clone:focus-visible{outline:2px solid #86aa29;outline-offset:2px}
.library{height:calc(100vh - 76px);min-height:0}.record-list{flex:1;min-height:0;margin-top:14px;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable}.library-menu{position:relative;margin-left:auto}.library-menu summary{display:grid;place-items:center;width:28px;height:28px;list-style:none;border-radius:6px;color:#526652;font-size:24px;line-height:1;cursor:pointer}.library-menu summary::-webkit-details-marker{display:none}.library-menu summary:hover,.library-menu[open] summary{background:#e8ede9}.library-menu summary:focus-visible{outline:2px solid #86aa29;outline-offset:2px}.library-menu-options{position:absolute;z-index:10;top:calc(100% + 4px);right:0;width:204px;padding:5px;background:#fff;border:1px solid #dbe1db;border-radius:8px;box-shadow:0 10px 24px #17231f26}.library-menu-options button{width:100%;padding:9px;border:0;border-radius:5px;background:transparent;color:#29452c;text-align:left;font-size:12px;cursor:pointer}.library-menu-options button:hover{background:#eaf2d7}.library-menu-options button:disabled{opacity:.55;cursor:wait}
.catalog-page{aspect-ratio:3508/2480}
@media print{@page{size:A4 landscape;margin:0}.print-page{width:297mm;height:210mm}.print-page .catalog-page{width:297mm!important;height:210mm!important}}
@media(max-width:620px){.record-row{min-width:205px}.record-row .record-card{min-width:0}}
@media(hover:none){.record-clone{opacity:1;pointer-events:auto}}
.record-grip{flex:none;width:10px;color:#a8b2a8;font-size:12px;letter-spacing:-4px;opacity:.4;cursor:grab;user-select:none}.record-row:hover .record-grip,.record-row:focus-within .record-grip{opacity:.8}.record-page{font-size:9px;letter-spacing:.06em;font-weight:700;color:#839183}.record-copy{gap:3px}.record-row.dragging{opacity:.5}.record-row.drop-before{border-top:3px solid #85aa22}.record-row.drop-after{border-bottom:3px solid #85aa22}.record-row .record-card{padding-left:4px}
.mode-switch{display:flex;border:1px solid #cbd8ca;border-radius:7px;overflow:hidden;background:#fff}.mode-switch button{border:0;background:transparent;color:#405445;padding:7px 10px;font-size:12px;font-weight:700}.mode-switch button[aria-pressed=true]{background:#b2ce20;color:#17221e}.mode-switch button:focus-visible{outline:2px solid #658d1d;outline-offset:-2px}body:not(.editing) .workspace{grid-template-columns:242px minmax(0,1fr)}body:not(.editing) .editor,body:not(.editing) #position-button,body:not(.editing) #reset-position,body:not(.editing) #position-tools{display:none!important}body:not(.editing) .preview-area{grid-column:2;grid-row:1}#print-pages{display:none}
.confirmation-dialog{width:min(480px,94vw)}.confirmation-dialog p{font-size:14px;line-height:1.5}.confirmation-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:22px}.confirmation-actions .button-danger{background:#ae3434;border-color:#ae3434;color:#fff}.confirmation-actions .button-danger:hover{background:#912a2a}
@media(max-width:1390px){body:not(.editing) .workspace{grid-template-columns:210px minmax(0,1fr)}}
@media(max-width:1080px){body:not(.editing) .workspace{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:620px){body:not(.editing) .workspace{display:flex}.mode-switch button{font-size:11px;padding:7px 8px}}
@media(max-width:620px){.library{height:auto}.record-list{flex:none;overflow-x:auto;overflow-y:hidden;scrollbar-gutter:auto}}
@media(min-width:621px) and (max-width:1390px){.library-title{padding:0 4px;gap:6px}.library-title h2{font-size:18px}.library-menu-options{width:178px}}
