:root{font-family:'Segoe UI',sans-serif;color:#20232a;background:#f3f4f5}*{box-sizing:border-box}body{margin:0}header{background:#15171b;color:white;padding:24px 36px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:13px}.brand{font-size:19px;font-weight:800}.brand small{display:block;font-size:10px;letter-spacing:2px;color:#b8bec8;margin-top:5px}main{display:grid;grid-template-columns:380px minmax(0,1fr);max-width:1600px;margin:auto}.editor{background:white;padding:30px;border-right:1px solid #ddd}.eyebrow{font-size:10px;letter-spacing:2px;color:#7c818b;font-weight:700}h1{font-size:27px;letter-spacing:-1px;margin:12px 0}h2{font-size:25px;margin:12px 0 0}.intro,.note{color:#707680;font-size:13px;line-height:1.6}.field{margin-top:20px}label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}input,textarea,button{font:inherit}textarea,input[type=number]{width:100%;border:1px solid #cdd1d7;border-radius:8px;padding:10px;resize:vertical}textarea:focus,input:focus{outline:2px solid #69778c;outline-offset:2px}.adjust{display:flex;justify-content:space-between;margin:10px 0 4px;font-size:12px}.adjust output{font-weight:400;color:#69717c}input[type=range]{width:100%;accent-color:#20232a;margin:8px 0 10px}.spacing{padding:14px;background:#f3f4f6;border-radius:8px;margin:22px 0}button{width:100%;padding:13px;border:1px solid #20232a;background:#20232a;color:white;border-radius:8px;cursor:pointer;font-weight:700}.secondary{background:white;color:#20232a}button:disabled{opacity:.45;cursor:not-allowed}#storage-status,#quantity-summary{font-size:12px;color:#69717c;margin:12px 0 20px}.preview-area{padding:32px;min-width:0}.preview-heading,.toolbar{display:flex;justify-content:space-between;align-items:end;gap:16px}.preview-heading>span,.toolbar{font-size:12px;color:#747b86}.toolbar{margin:24px 0 12px}.stage{display:flex;align-items:center;justify-content:center;min-height:400px;padding:32px 16px;border:1px solid #dfe2e6;border-radius:14px;overflow:auto;background-color:#e9ebee;background-image:radial-gradient(#c9cdd3 1px,transparent 1px);background-size:18px 18px}.sheet{display:flex;justify-content:flex-start;padding-left:3mm;padding-right:2mm;gap:2mm;width:107mm;height:30mm;flex:none}.sticker{width:50mm;height:30mm;background:white;flex:none;padding:2mm;overflow:hidden;color:black;font-family:Arial,sans-serif;display:flex;align-items:center;justify-content:center}.content{width:100%;text-align:center;flex:none}.text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.15;margin:0}.stage .sticker{box-shadow:0 8px 20px #0002}.error,#layout-status{font-size:13px;color:#ae2435;line-height:1.5}#print-pages{display:none}@media(min-width:1250px){.stage .sheet{zoom:1.5}}@media(max-width:850px){main{grid-template-columns:1fr}.preview-area{grid-row:1}.editor,.preview-area{padding:24px}.stage{min-height:240px;justify-content:flex-start}.sheet{margin:auto}header{padding:20px;align-items:start}header>span:last-child{max-width:140px;text-align:right}}@page{size:107mm 30mm;margin:0}@media print{html,body{margin:0!important;padding:0!important;width:107mm;background:white}header,main{display:none!important}#print-pages{display:block}.sheet{break-after:page;page-break-after:always;overflow:hidden}.sheet:last-child{break-after:auto;page-break-after:auto}.sticker{box-shadow:none!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}}
input[type=search],select,input[readonly]{width:100%;border:1px solid #cdd1d7;border-radius:8px;padding:10px;margin-bottom:16px;font:inherit;background:white}input[readonly]{background:#f3f4f6;color:#707680}input[type=file]{width:100%;font-size:12px}label>span{font-size:11px;font-weight:400;color:#707680}.logo{display:block;object-fit:contain;margin:auto;max-width:100%}.logo-placeholder{font-size:11px;color:#a0a5ae;border:1px dashed #ddd;padding:5mm 0;margin:auto;width:25mm}.product-name{font-weight:600}.size-text{font-weight:700}#quantity-summary ul{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:6px}#quantity-summary li{background:#f3f4f6;padding:8px;border-radius:5px}dialog{border:0;border-radius:14px;padding:28px;width:min(650px,calc(100vw - 32px));max-height:85vh;overflow:auto}dialog::backdrop{background:#0007}#size-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px 10px;margin:20px 0}#size-grid label{text-align:center}#size-grid input{text-align:center;padding:8px}#quantity-error{font-size:13px;color:#ae2435}.dialog-actions{display:flex;gap:12px}.dialog-actions button{width:auto;flex:1}@media(max-width:550px){#size-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media print{dialog{display:none!important}}
@media screen and (min-width:851px){main{height:calc(100dvh - 93px)}.editor{overflow-y:auto;scrollbar-gutter:stable}.preview-area{overflow:auto}.stage{min-height:320px;height:calc(100dvh - 290px)}}
/* Three panels: print settings, preview, and label editor. */
.information-panel{background:white;padding:30px;border-left:1px solid #ddd;min-width:0}.information-panel h2{margin-top:12px}.information-panel .field:first-child{margin-top:0}.information-actions{border-top:1px solid #e2e5e9;padding-top:18px}.information-actions #storage-status{margin-bottom:0}#editor-form{margin-top:24px}#editor-form #quantity-button{margin-bottom:6px}
@media screen and (min-width:1100px){main{grid-template-columns:300px minmax(0,1fr) 340px;max-width:1900px}.editor,.preview-area,.information-panel{padding:28px 24px}.information-panel{height:100%;display:flex;flex-direction:column;overflow:hidden}#information-form{flex:1;min-height:0;display:flex;flex-direction:column}.information-fields{overflow-y:auto;flex:1;min-height:0;padding:3px 8px 8px 3px;scrollbar-gutter:stable}.information-actions{flex:none}.stage .sheet{zoom:1}.stage{justify-content:center}}@media screen and (min-width:1450px){.stage .sheet{zoom:1.3}}@media screen and (min-width:851px) and (max-width:1099px){main{grid-template-columns:300px minmax(0,1fr);height:auto}.information-panel{grid-column:1/-1;border-top:1px solid #ddd}.information-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.information-fields .field{margin-top:0}.stage .sheet{zoom:1}}
@media screen and (max-width:850px){main{display:flex;flex-direction:column;height:auto}.editor{order:0}.preview-area{order:1}.information-panel{order:2;border-left:0;border-top:1px solid #ddd;padding:24px}.stage .sheet{zoom:1}}
