.address-workbench { display:grid; grid-template-columns:minmax(18rem,.9fr) minmax(20rem,1.1fr); gap:1rem; align-items:start; }
.address-workbench .panel { min-width:0; }
#address-label-app [hidden] { display:none !important; }
.address-fields { display:grid; gap:.75rem; }
.address-fields .grid-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
.address-mapping { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; margin:.75rem 0; }
.address-mapping label { display:grid; gap:.3rem; font-size:.85rem; }
.address-sheet-preview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; aspect-ratio:210 / 297; width:100%; margin:1rem auto 0; padding:3.6% 2.2%; background:#fff; color:#14161a; border:1px solid #bac0c8; box-shadow:0 4px 20px #0002; overflow:hidden; }
.address-sheet-preview[data-layout="a4-3474"] { grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:repeat(8,minmax(0,1fr)); }
.address-sheet-preview[data-layout="a4-3652"] { grid-template-rows:repeat(7,minmax(0,1fr)); }
.address-sheet-preview[data-layout="a4-l7163"] { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(7,minmax(0,1fr)); padding:5.1% 2.2%; }
.address-sheet-preview[data-layout="a4-l7651"] { grid-template-columns:repeat(4,minmax(0,1fr)); grid-template-rows:repeat(10,minmax(0,1fr)); padding:7.2% 3.8%; }
.address-sheet-preview[data-layout="letter-5160"] { aspect-ratio:215.9 / 279.4; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:repeat(10,minmax(0,1fr)); padding:4.55% 2.2%; }
.address-sheet-preview[data-layout="letter-5161"] { aspect-ratio:215.9 / 279.4; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(10,minmax(0,1fr)); padding:4.55% 1.85%; }
.address-sheet-preview.address-thermal-preview { aspect-ratio:89 / 36; grid-template-columns:1fr; grid-template-rows:1fr; max-width:42rem; padding:3%; }
.address-sheet-preview.address-thermal-preview[data-layout="thermal-62x29"] { aspect-ratio:62 / 29; }
.address-sheet-preview.address-thermal-preview[data-layout="zebra-4x6"] { aspect-ratio:102 / 152; max-width:18rem; }
.address-label-cell { min-width:0; min-height:0; padding:6% 7%; display:flex; flex-direction:column; justify-content:center; overflow:hidden; font:clamp(4px,1.15vw,9px)/1.25 Arial,sans-serif; overflow-wrap:anywhere; }
.address-test-border .address-label-cell { border:1px dashed #9aa1a9; }
.address-sheet-preview.address-test-border .address-label-cell { outline:1px dashed #b7bdc5; outline-offset:-1px; }
.address-label-cell > span { display:block; max-width:100%; }
.address-label-cell .address-first-line { font-weight:700; }
.address-return-preview { font-size:.72em; color:#606873; overflow:hidden; white-space:nowrap; }
.address-align-center .address-label-cell { text-align:center; align-items:center; }
.address-code-preview { width:30%; max-height:30%; object-fit:contain; align-self:flex-end; margin-top:.15rem; }
.privacy-note { color:var(--text-muted); margin-block:1rem 2rem; }
@media (max-width:850px) { .address-workbench { grid-template-columns:1fr; } .address-sheet-preview { max-width:36rem; } .address-label-cell { font-size:clamp(5px,2vw,9px); } }
@media (max-width:480px) { .address-fields .grid-2,.address-mapping { grid-template-columns:1fr; } .address-sheet-preview.address-thermal-preview[data-layout="zebra-4x6"] { max-width:12rem; } }
