@import url("/editor-fonts.css");
/* Only the design step expands into a visual workspace. */
#creator-shell[data-editor-active=true]{display:block;width:min(1480px,calc(100% - 40px))}
#creator-shell[data-editor-active=true] .creator-intro{position:static;display:block;padding:0 0 20px}
#creator-shell[data-editor-active=true] .creator-intro>h1,#creator-shell[data-editor-active=true] .creator-intro>p{display:none}
#creator-shell[data-editor-active=true] .creator-rail{display:flex;gap:8px;margin:0;max-width:none}
#creator-shell[data-editor-active=true] .creator-rail button{flex:1;min-height:58px;background:#fff;border-radius:12px;padding:10px}
#creator-shell[data-editor-active=true] .creator-rail button.current{background:#e9efff}
#creator-shell[data-editor-active=true] .creator-rail button:after{display:none}
#creator-shell[data-editor-active=true] .creator-rail small{display:none}
#creator-shell[data-editor-active=true] .creator-intro-actions{margin-top:10px}
#creator-shell[data-editor-active=true] .studio-layout{display:block;padding:28px}
#creator-shell[data-editor-active=true] .preview-side,#creator-shell[data-editor-active=true] .mobile-live-preview{display:none}
#creator-shell[data-editor-active=true] .studio-panel{padding:0;max-width:none;width:100%}
#creator-shell[data-editor-active=true] .design-mode{max-width:520px}
.label-editor{--ed-blue:#2041e5;color:#17213a;font-family:Nimbus,Arial,sans-serif;margin-top:24px}
.label-editor *{box-sizing:border-box}
.label-editor button{font-size:13px;line-height:1.2;min-height:42px;padding:10px 13px;border:1px solid #dce3f2;border-radius:10px;background:#fff;color:#233554;gap:6px;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;text-align:center}
.label-editor button:hover{border-color:#2041e5;background:#eef3ff}
.label-editor button:disabled{opacity:.4;cursor:default}
.label-editor button[aria-pressed=true]{background:#e9efff;border-color:#2041e5;color:#2041e5}
.label-editor :focus-visible{outline:3px solid #2041e5;outline-offset:3px}
.label-editor p{font-size:13px!important;line-height:1.5!important;margin:7px 0 12px!important;color:#5c6980}
.label-editor h3{font-size:16px!important;margin:0 0 12px!important;letter-spacing:-.02em}
.label-editor small{font-size:11px;line-height:1.5;color:#65728a;display:block}
.ed-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.ed-topline strong{font-size:18px}.ed-history{display:flex;gap:7px;flex:none}
.label-editor details{border:1px solid #dce3f2;border-radius:14px;background:#fff;margin:12px 0;padding:14px}
.label-editor summary{font-size:14px;font-weight:700;cursor:pointer;padding:5px 0;min-height:30px;color:#1c2b47;list-style-position:inside}
.label-editor summary>span{font-weight:400;color:#6a7790;margin-left:12px;font-size:12px}
.ed-template-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:15px}
.label-editor .ed-template-grid>button{display:flex;flex-direction:column;align-items:stretch!important;text-align:left!important;padding:12px;gap:8px;min-width:0}
.ed-template-preview{display:block;height:190px;padding:8px 20px;background:#f1f3f7;border-radius:8px;overflow:hidden}
.ed-template-preview>svg{max-width:132px;margin:auto;box-shadow:0 2px 8px #17213a15}
.ed-template-grid b,.ed-template-grid small{width:100%;text-align:left}
.ed-template-confirm{padding-top:14px}.ed-template-confirm button{margin-right:8px}
.ed-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.label-editor .ed-toolbar button{background:#eef3ff;color:#2041e5;border-color:#cfdbff;font-weight:700}
.ed-workspace{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start}
.ed-canvas-column{min-width:0}.ed-canvas-meta{display:flex;justify-content:space-between;gap:15px;font-size:11px;color:#64718a;margin:0 0 9px}
.ed-canvas-meta>span:first-child{font-weight:700;color:#203454;white-space:nowrap}
.ed-stage{min-height:520px;display:grid;place-items:center;border:1px solid #dfe5ef;border-radius:16px;padding:34px;background:#eef1f6;background-image:radial-gradient(#ccd4e3 .7px,transparent .7px);background-size:14px 14px}
.ed-canvas{position:relative;aspect-ratio:var(--canvas-ratio);width:min(100%,calc(560px * var(--canvas-ratio)));box-shadow:0 12px 32px #24305226;background:white;touch-action:none;max-width:100%}
.ed-canvas>svg{position:absolute;inset:0;user-select:none}
.ed-canvas [data-element]{cursor:move;outline:none}
.ed-canvas [data-element]:focus-visible>rect:last-child{stroke:#2041e5;stroke-width:3}
.ed-canvas [data-resize]{cursor:nwse-resize}
.label-editor .ed-tip{font-size:11px!important;margin:10px 0 16px!important}
.ed-inspector{border:1px solid #dfe5ef;border-radius:14px;background:#fff;padding:18px;max-height:850px;overflow-y:auto}
.ed-selected-title>span{color:#2041e5;font-size:9px;letter-spacing:.06em;font-weight:700;display:block;margin-bottom:5px}
.label-editor label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;margin:0 0 13px;min-width:0;color:#334361}
.label-editor input:not([type=range]):not([type=color]):not([type=file]),.label-editor textarea,.label-editor select{font:400 14px Nimbus,Arial,sans-serif;width:100%;min-width:0;min-height:42px;border:1px solid #cfd8e8;border-radius:8px;padding:9px 10px;background:#fff;color:#17213a}
.label-editor textarea{resize:vertical;line-height:1.45}
.label-editor input[type=range]{width:100%;min-height:30px;accent-color:#2041e5;cursor:pointer}
.label-editor output{float:right;font-size:12px;font-weight:400;color:#2041e5}
.label-editor input[type=color]{width:48px;height:42px;border:1px solid #dce3f2;border-radius:8px;padding:3px;background:white;cursor:pointer}
.ed-field-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ed-align{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-bottom:15px}
.label-editor .ed-align button{padding:8px 4px;font-size:11px}
.label-editor .ed-align button:last-child{grid-column:1/-1;font-style:italic}
.label-editor .ed-color-row{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;margin-top:16px}
.ed-color-row>input[type=color]{grid-column:1}.ed-color-row>input[data-ed-hex]{grid-column:2}
.ed-swatches{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}
.label-editor .ed-swatches>button,.label-editor #ed-brand-colors>span>button:first-child{background:var(--swatch);border:2px solid #fff;outline:1px solid #d4dbe8;width:32px;min-height:32px;height:32px;padding:0;border-radius:50%}
.ed-small-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}
.label-editor .ed-small-actions button{font-size:11px;padding:9px 6px}
.label-editor .ed-delete{color:#9b283e;background:#fff4f5;border-color:#eacdd3}
.label-editor .ed-position{padding:12px;margin-top:18px;border-radius:10px}
.label-editor .ed-position summary{margin-bottom:10px}
.ed-image-tools{padding-top:7px}.ed-image-tools button{margin-bottom:9px;width:100%}
.ed-layers{margin-top:10px}#ed-layer-list{display:flex;gap:7px;flex-wrap:wrap}
.label-editor #ed-layer-list>button{max-width:180px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block;min-height:36px;padding:8px 10px;font-size:11px}
#ed-layer-list>button>span{display:inline-block;margin-right:8px;color:#2041e5;font-weight:700}
#ed-assets{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:12px;margin:14px 0}
.ed-asset{border:1px solid #dce3f2;border-radius:12px;padding:7px;min-width:0}
.label-editor .ed-asset>button:first-child{display:flex;flex-direction:column;gap:6px;width:100%;border:0;padding:6px}
.ed-asset img{width:100%;height:75px;object-fit:contain;background:repeating-conic-gradient(#e8ebf1 0% 25%,#fff 0% 50%) 50%/14px 14px;border-radius:6px}
.ed-asset span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.label-editor .ed-asset>button:last-child{min-height:32px;padding:5px;width:100%;font-size:11px}
.ed-brand-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ed-brand-tools label{flex-direction:row;align-items:center;margin:0}
#ed-brand-colors{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}#ed-brand-colors>span{display:flex;align-items:center;gap:2px}.label-editor #ed-brand-colors>span>button:last-child{padding:0;border:0;width:24px;min-height:32px}
.label-editor .ed-status{color:#2041e5;font-weight:700;min-height:20px}.ed-processing{opacity:.7;pointer-events:none}
.label-art .editor-artwork{position:absolute;inset:0}
@media(max-width:1000px){.ed-workspace{grid-template-columns:minmax(0,1fr) 280px;gap:12px}.ed-stage{padding:20px;min-height:430px}.ed-template-preview{height:150px;padding:8px}.ed-inspector{padding:13px}}
@media(max-width:700px){#creator-shell[data-editor-active=true]{width:calc(100% - 24px)}#creator-shell[data-editor-active=true] .studio-layout{padding:17px 12px}#creator-shell[data-editor-active=true] .creator-rail{gap:4px}#creator-shell[data-editor-active=true] .creator-rail button{padding:6px 3px;flex-direction:column;gap:5px;font-size:11px}#creator-shell[data-editor-active=true] .creator-rail .step-name{font-size:10px}.ed-topline{display:block}.ed-history{margin:12px 0}.ed-workspace{grid-template-columns:1fr}.ed-stage{min-height:320px;padding:22px}.ed-canvas{width:min(100%,calc(420px * var(--canvas-ratio)))}.ed-inspector{max-height:none;overflow:visible}.ed-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ed-template-preview{height:170px}.ed-canvas-meta{flex-wrap:wrap;gap:4px}.ed-toolbar{display:grid;grid-template-columns:1fr 1fr}.label-editor summary>span{display:block;margin:4px 0 0 16px}.label-editor .ed-toolbar button{font-size:12px;padding:10px 6px}.ed-align{grid-template-columns:repeat(4,1fr)}.label-editor .ed-align button:last-child{grid-column:auto}}
@media(max-width:700px){
 #creator-shell[data-editor-active=true] .mobile-live-preview{display:flex}
 .label-editor input:not([type=range]):not([type=color]):not([type=file]),.label-editor textarea,.label-editor select{font-size:16px}
}

/* Clear type hierarchy and directly accessible element actions. */
.ed-selected-title{position:relative;padding-right:40px}.label-editor .ed-inspector-delete{position:absolute;right:0;top:0;width:34px;min-height:34px;padding:0;font-size:23px;color:#92364a}
#ed-layer-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ed-layer-card{display:flex;border:1px solid #dce3f2;border-radius:12px;background:white;min-width:0;align-items:flex-start;padding:4px}.ed-layer-card[data-active=true]{border-color:#2041e5;background:#f1f5ff}
.label-editor .ed-layer-card>button:first-child{border:0;background:none;flex:1;min-width:0;justify-content:flex-start;text-align:left;padding:10px;gap:10px}.ed-layer-card strong{display:block;font-family:Nimbus,Arial,sans-serif;font-size:13px;font-weight:700}.ed-layer-card small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px;font-family:Nimbus,Arial,sans-serif;font-weight:400;margin-top:4px}.ed-layer-card button>span:last-child{min-width:0}.ed-layer-icon{background:#e9efff;border-radius:7px;padding:8px;font-weight:700;color:#2041e5}.label-editor .ed-layer-delete{flex:none;border:0;background:none;min-height:36px;width:32px;padding:0;font-size:22px;color:#92364a}
.label-editor .ed-font-picker{padding:12px;margin-bottom:16px}.ed-font-picker summary b{display:block;font-size:21px;line-height:1.4;margin-top:6px}.ed-font-tabs{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}.label-editor .ed-font-tabs button{font-size:11px;padding:7px 9px;min-height:32px}.ed-font-options{display:grid;gap:8px;max-height:310px;overflow-y:auto;padding:3px}.label-editor .ed-font-options button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-width:0;padding:11px;width:100%;overflow:hidden;gap:8px}.ed-font-options button>span{font-size:23px;line-height:1.35;width:100%;overflow-wrap:anywhere}.ed-font-options small{font:400 11px Nimbus,Arial,sans-serif;color:#65728a}.ed-font-picker p{font-size:11px!important}
@media(max-width:700px){#ed-layer-list{grid-template-columns:1fr}.ed-layer-card small{max-width:220px}.ed-font-options{max-height:330px}}

/* Selection controls stay outside the printable artwork. */
.label-editor .ed-canvas-delete{position:absolute;z-index:3;width:36px;height:36px;min-height:36px;padding:0;border:2px solid #fff;border-radius:50%;background:#2041e5;color:#fff;font:400 25px/1 Arial,sans-serif;box-shadow:0 2px 8px #17213a33;cursor:pointer;touch-action:manipulation}
.label-editor .ed-canvas-delete:hover{background:#1634bd;border-color:#fff}
.label-editor .ed-delete-dialog{width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 40px);margin:auto;padding:26px;border:1px solid #dce3f2;border-radius:18px;background:#fff;color:#17213a;box-shadow:0 20px 70px #17213a40}
.ed-delete-dialog::backdrop{background:#17213a70}
.label-editor .ed-delete-dialog h3{font-size:21px!important;line-height:1.2}
.ed-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.label-editor .ed-confirm-delete{background:#2041e5;border-color:#2041e5;color:white;font-weight:700}
.label-editor .ed-confirm-delete:hover{background:#1634bd;color:white}

.ed-outline-controls{padding:12px;border:1px solid #dce3f2;border-radius:10px;margin:0 0 16px}.label-editor .ed-outline-controls>button{width:100%;font-weight:700;margin-bottom:8px}.ed-outline-controls .ed-field-pair{margin-top:10px}.ed-outline-controls label{margin-bottom:7px}

.ed-selection-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 16px}.ed-selection-tools>span{font-size:12px;color:#5c6980}.label-editor .ed-selection-tools button{font-size:12px}.ed-outline-controls>strong{display:block;font-size:13px;margin-bottom:10px}

.ed-color-row>span{grid-column:1/-1}
