.label-page main {padding:0}
.label-page .workbench {margin-inline:auto;background:transparent;border:0;border-radius:0}
.label-page .label-preview {padding:16px}
.label-page .label-preview h2 {margin:0}
.label-page .stage-head {margin-bottom:12px;color:var(--ink)}
.label-page .label-canvas {position:relative}
.label-page #items {display:grid;place-items:center;min-width:0;min-height:clamp(240px,27vw,420px);background:#f6f5f1;border-radius:9px;padding:clamp(18px,3vw,44px)}
.label-page #items svg {width:100%;height:clamp(190px,21vw,320px);display:block}
.label-page #edit-preview {position:absolute;inset:0;width:100%;border:0;background:transparent;cursor:text}
.label-page #edit-preview:disabled {cursor:default}
.label-page #inline-editor:not(:empty) {position:relative;margin-top:8px;padding:10px 14px;background:white;border:1px solid var(--ink);border-radius:10px;box-shadow:0 3px 14px #12382d12}
.label-page #preview-caption {display:block;margin-top:8px;color:#465c54}
.label-page .label-sizes {grid-template-columns:1fr 1fr}
.label-page .controls label,.label-page #inline-editor label {display:block;margin-bottom:8px}
.label-page .controls :is(input,select),.label-page #inline-editor input {display:block;width:100%;font:inherit;min-height:44px;border:1px solid #ced6d2;border-radius:8px;padding:8px}
.label-page .controls summary {cursor:pointer;min-height:44px;padding:10px 0;font-weight:600}
.label-page .fonts {grid-template-columns:repeat(2,minmax(0,1fr))}
.label-page #summary svg,.label-page #layout svg {width:100%;height:auto}
.label-page .bar .assessment strong {font-size:14px}
.label-page #error:empty {display:none}
@media(max-width:760px){
 .label-page #items {min-height:142px;padding:12px 18px}
 .label-page #items svg {height:116px}
 .label-page .label-preview {padding:10px}
 .label-page .stage-head {margin-bottom:6px}
 .label-page .center,.label-page .controls {margin:0}
 .label-page .controls {order:3}
 .label-page .product {order:5}
 .label-page .bar {order:4}
}
.label-page .workbench:has([data-panel="0"]:not([hidden])) .center {display:block}

.label-page .label-font-sample {
    display:block; width:100%; min-width:0; overflow:hidden; text-overflow:ellipsis;
    white-space:pre; font-size:clamp(19px,1.8vw,26px); line-height:1.2;
    font-weight:400; font-synthesis:none; visibility:hidden;
}
.label-page [data-font="Inter"] .label-font-sample {font-family:LockerInter}
.label-page [data-font="Montserrat"] .label-font-sample {font-family:LockerRegular}
.label-page .label-font-sample.font-loaded {visibility:visible}
.label-page .fonts button {min-height:78px;grid-template-rows:32px 17px 14px}
.label-page .fonts button small,.label-page .fonts .font-weight-label {margin:0}
.label-page .fonts button:focus-visible {outline:3px solid #073930;outline-offset:2px}
@media(min-width:1051px){
    .label-page .controls>div>h2:first-child {margin-top:0}
    .label-page .label-preview {padding:18px}
    .label-page #items {min-height:clamp(320px,30vw,458px)}
}
@media(max-width:760px){
    .label-page .fonts button {min-height:56px;padding:5px 8px;grid-template-rows:24px 15px 13px;align-content:center}
    .label-page .label-font-sample {font-size:19px}
    .label-page .fonts button small {font-size:12px}
    .label-page .fonts .font-weight-label {font-size:10px}
}

/* Extra fonts: six cards first, the selected card always visible. */
.label-page .fonts button[data-extra]:not([aria-pressed=true]) {display:none}
.label-page .fonts.all-fonts button[data-extra] {display:grid}
.label-page #appearance h2 small {font-size:12px;font-weight:500;color:#465c54;margin-left:6px}
.label-page .more-fonts {display:block;margin:8px 0 4px;min-height:44px;padding:0;border:0;background:none;color:#0d4a3b;font-weight:600;text-decoration:underline;cursor:pointer}
.label-page #font-advice {margin:4px 0 8px;padding:8px 10px;border-radius:8px;background:#fff4e5;color:#6b3d00;font-size:13px}
@media(min-width:1051px){.label-page .fonts {grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Size by total width */
.label-page .fit-width {display:flex;gap:8px;align-items:end;margin-top:10px}
.label-page .fit-width label {flex:1;margin:0}
.label-page #fit-apply {min-height:44px;padding:0 16px;border:1px solid #0d4a3b;border-radius:8px;background:white;color:#0d4a3b;font:inherit;font-weight:600;cursor:pointer}
.label-page #fit-status {display:block;margin:4px 0 10px;color:#465c54}

/* Mirror */
.label-page .mirror-option {display:flex!important;gap:10px;align-items:flex-start;margin:14px 0 4px;padding:10px 12px;border:1px solid #ced6d2;border-radius:8px;cursor:pointer}
.label-page .mirror-option input {width:22px!important;min-height:22px!important;margin:2px 0 0;flex:none;accent-color:#0d4a3b}
.label-page .mirror-option small {display:block;color:#465c54;font-size:12px}

/* Scenes */
.scene-box {margin-top:12px}
.scene-box>summary {cursor:pointer;min-height:44px;padding:10px 0;font-weight:600}
.scene-picks {display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}
.scene-picks button {min-height:40px;padding:0 14px;border:1px solid #c4cfca;border-radius:999px;background:white;font:inherit;font-size:14px;cursor:pointer}
.scene-picks button[aria-pressed=true] {background:#0d4a3b;border-color:#0d4a3b;color:white}
.scene-photo {display:grid;gap:8px;margin-bottom:10px}
.scene-photo input {display:block;width:100%}
.scene-svg {display:block;width:100%;max-height:420px;border-radius:9px;background:#eee;touch-action:none}
.scene-sticker {cursor:grab;pointer-events:bounding-box}
.scene-fields {display:flex;gap:12px;flex-wrap:wrap}.scene-fields label {flex:1;min-width:110px}
.scene-custom summary {min-height:40px!important;font-weight:500!important;font-size:14px}

/* Mobile: keep the exact preview in view while editing text, size and colour. */
@media(max-width:760px){
 .label-page .workbench:has([data-panel="1"]:not([hidden])) .center {position:sticky;top:0;z-index:4;background:#f6f5f1;padding-bottom:6px}
 .label-page .workbench:has([data-panel="1"]:not([hidden])) .center>:is(.headline,p) {display:none}
 .label-page .workbench:has([data-panel="1"]:not([hidden])) .label-preview {box-shadow:0 6px 14px #12382d1f}
 .label-page .workbench:has([data-panel="1"]:not([hidden])) .label-preview .stage-head,
 .label-page .workbench:has([data-panel="1"]:not([hidden])) .label-preview .scene-box,
 .label-page .workbench:has([data-panel="1"]:not([hidden])) .mobile-preview-link {display:none}
 .label-page .workbench:has([data-panel="1"]:not([hidden])) #items {min-height:110px}
 .label-page .workbench:has([data-panel="1"]:not([hidden])) #items svg {height:90px}
 .label-page .workbench:has([data-panel="1"]:not([hidden])) #preview-caption {font-size:12px;line-height:1.35;margin-top:4px}
}
