/* // Customisation increment for Sam: one task panel, a persistent preview, and one icon language. */
.studio-steps { display: flex; align-items: center; gap: 28px; list-style: none; padding: 0; margin: 0 0 24px; }
.studio-steps li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #64705e; }
.studio-steps svg { display: block; flex: 0 0 18px; width: 18px; height: 18px; }
.shop-base-picker-close { display: grid; place-items: center; padding: 0; }
.shop-base-picker-close svg { display: block; width: 20px; height: 20px; }
.shop-design-workspace { container: studio-workspace / inline-size; }
.studio-editor {
    --studio-text: #303b2a;
    --studio-muted: #64705e;
    --studio-line: #d8ddd0;
    --studio-accent: #414b32;
    --studio-surface: #fbfcf7;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-rows: auto 560px;
    min-width: 0;
    border: 1px solid var(--studio-line);
    border-radius: 0 0 16px 16px;
    background: var(--studio-surface);
    color: var(--studio-text);
    isolation: isolate;
}
.studio-editor *, .studio-editor *::before, .studio-editor *::after { box-sizing: border-box; }
.studio-editor :is(button, input, select, textarea) { font: inherit; font-size: 14px; color: inherit; }
.studio-editor button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--studio-line); border-radius: 10px; background: var(--studio-surface); line-height: 1.35; cursor: pointer; }
.studio-editor button:disabled { opacity: .4; cursor: default; }
.studio-editor button:not(:disabled):hover { background: #eef2e7; border-color: #aebaa0; }
.studio-editor :is(button, summary, input, select, textarea, canvas):focus-visible { outline: 2px solid var(--studio-accent); outline-offset: 3px; }
.studio-editor svg { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.studio-editor [hidden] { display: none !important; }
.studio-editor .studio-icon-button { width: 44px; height: 44px; padding: 0; border-color: transparent; background: transparent; }
.studio-toolbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--studio-line); }
.studio-editor .studio-product-button { padding-inline: 12px; font-weight: 500; }
.studio-product-button svg:last-child { width: 16px; height: 16px; flex-basis: 16px; }
.studio-toolbar-title { font-size: 13px; color: var(--studio-muted); }
.studio-history { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.studio-editor .shop-editor-canvas-area { min-height: 0; background: radial-gradient(ellipse at 50% 35%, #f4f5ed, #e6e9df); border-radius: 0 0 0 15px; }
.studio-editor .shop-editor-views { top: 16px; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 4px; border: 1px solid #ccd4c2; border-radius: 12px; background: #fbfcf7f2; white-space: nowrap; }
.studio-editor .shop-editor-views button { min-height: 44px; padding: 8px 14px; border: 0; border-radius: 8px; font-size: 13px; background: transparent; }
.studio-editor .shop-editor-views button[aria-pressed='true'] { background: var(--studio-accent); color: #fff; }
.studio-editor .shop-editor-views button svg { width: 18px; height: 18px; flex-basis: 18px; }
.studio-editor .shop-editor-flat { position: absolute; inset: 92px 36px 70px; display: grid; place-items: center; }
.studio-editor .shop-editor-flat canvas { display: block; max-width: 100%; max-height: 100%; box-shadow: 0 6px 24px #303b2a17; touch-action: none; }
.studio-editor:not(.is-flat) .shop-editor-flat { display: none; }
.studio-editor .shop-editor-webgl { inset: 74px 0 62px; }
.studio-editor .studio-view-tools { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 4px; border: 1px solid var(--studio-line); background: #fbfcf7e6; border-radius: 12px; padding: 3px; }
.studio-editor.is-flat .studio-view-tools { display: none; }
.studio-editor .shop-editor-stage-hint { bottom: 22px; left: 16px; right: 16px; font-size: 12px; line-height: 1.5; color: var(--studio-muted); }
.studio-editor:not(.is-flat) .shop-editor-stage-hint { left: 122px; text-align: right; }
.studio-editor .shop-editor-loading { font-size: 14px; }
.studio-editor.is-flat .shop-editor-loading { display: none; }
.studio-editor .studio-empty-add { flex-direction: column; gap: 8px; padding: 18px; border: 0; background: #fbfcf7ee; box-shadow: 0 4px 24px #303b2a0d; }
.studio-empty-add strong { font-size: 14px; font-weight: 500; white-space: nowrap; }
.studio-empty-add small { font-size: 12px; color: var(--studio-muted); }
.studio-empty-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #d1dbc5; border-radius: 50%; background: #eaf0e0; }
.studio-inspector { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; border-left: 1px solid var(--studio-line); }
.studio-dock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 8px; border-bottom: 1px solid var(--studio-line); }
.studio-editor .studio-dock button { flex-direction: column; gap: 5px; min-width: 0; min-height: 64px; padding: 8px 2px; border: 0; border-radius: 10px; background: transparent; color: var(--studio-muted); font-size: 11px; }
.studio-editor .studio-dock button[aria-pressed='true'] { background: #e9efdf; color: #303e23; }
.studio-dock button > span { display: inline-flex; align-items: center; gap: 4px; }
.studio-dock small { display: grid; place-items: center; min-width: 16px; height: 16px; padding-inline: 3px; border-radius: 5px; background: #e0e6d5; font-size: 9px; font-variant-numeric: tabular-nums; }
.studio-panel-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c3cbb6 transparent; padding: 20px; }
.studio-panel { min-width: 0; }
.studio-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.studio-panel-heading h3 { font: 600 16px/1.5 'DM Sans', sans-serif; margin: 0; letter-spacing: -.015em; }
.studio-panel-heading > :is(span, small) { color: var(--studio-muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.studio-help { font-size: 13px; line-height: 1.6; color: var(--studio-muted); margin: 0 0 16px; }
.studio-selection { font-size: 13px; line-height: 1.5; color: var(--studio-muted); overflow-wrap: anywhere; margin: 0 0 20px; }
.studio-selection-empty { padding-block: 20px; text-align: center; }
.studio-selection-empty > svg { margin: 0 auto 16px; width: 28px; height: 28px; }
.studio-selection-empty p { font-size: 14px; line-height: 1.6; color: var(--studio-muted); }
.studio-editor .studio-text-button { min-height: 44px; justify-content: flex-start; background: transparent; border-color: transparent; padding: 10px 0; font-size: 13px; text-align: left; }
.studio-editor .studio-text-button:hover:not(:disabled) { background: transparent; border-color: transparent; color: #243514; text-decoration: underline; text-underline-offset: 3px; }
.studio-editor .studio-danger { color: #9b493b; margin-top: 12px; }
.studio-add-options { display: grid; gap: 8px; }
.studio-editor .studio-add-options button { width: 100%; justify-content: flex-start; gap: 12px; padding: 14px; text-align: left; background: #fff; }
.studio-add-options button > svg:first-child { color: #596a47; }
.studio-add-options button > svg:last-child { width: 16px; height: 16px; flex-basis: 16px; margin-left: auto; }
.studio-add-options button > span { display: grid; gap: 3px; }
.studio-add-options strong { font-size: 14px; font-weight: 500; }
.studio-add-options small { font-size: 12px; color: var(--studio-muted); }
.studio-editor :is(.studio-control-section, .studio-library) { border-top: 1px solid var(--studio-line); margin-top: 16px; }
.studio-editor summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 0; list-style: none; font-size: 13px; font-weight: 500; cursor: pointer; }
.studio-editor summary::-webkit-details-marker { display: none; }
.studio-editor .studio-panel details > summary::before { display: none !important; }
.studio-editor summary > span { flex: 1; }
.studio-editor summary svg:last-child { width: 16px; height: 16px; flex-basis: 16px; transition: transform .15s; }
.studio-editor details[open] > summary svg:last-child { transform: rotate(180deg); }
.studio-editor :is(fieldset.shop-editor-transform, fieldset.shop-editor-text-panel, fieldset.shop-editor-wand-panel) { display: block; min-width: 0; padding: 0; margin: 0; background: transparent; border: 0; }
.studio-editor .shop-editor-text-panel { padding-bottom: 16px; }
.studio-editor .shop-editor-wand-panel { padding-top: 16px; }
.studio-editor .studio-panel label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; margin: 18px 0 8px; color: var(--studio-text); }
.studio-editor .studio-panel output { color: var(--studio-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.studio-editor .studio-panel :is(select, textarea, input[type='search']) { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #cbd4c0; border-radius: 10px; background: #fff; padding: 10px 12px; font-size: 16px; line-height: 1.5; }
.studio-editor .studio-panel textarea { display: block; resize: vertical; min-height: 92px; margin-bottom: 16px; }
.studio-editor .studio-panel select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23414b32' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; }
.studio-editor .studio-panel input[type='range'] { display: block; width: 100%; min-height: 44px; margin: 0; accent-color: var(--studio-accent); cursor: pointer; touch-action: pan-y; }
.studio-editor .studio-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-block: 10px; }
.studio-editor .studio-checks label { justify-content: flex-start; gap: 7px; min-height: 44px; font-size: 12px; margin: 0; }
.studio-editor .studio-checks input { width: 18px; height: 18px; accent-color: var(--studio-accent); }
.studio-fit > div, .studio-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.studio-editor .studio-fit button, .studio-editor .studio-tool-grid button { flex-direction: column; min-width: 0; min-height: 64px; padding: 10px 6px; font-size: 12px; }
.studio-editor .studio-tool-grid button[aria-pressed='true'], .studio-editor .studio-fit button[aria-pressed='true'] { background: #e9efdf; border-color: #aab899; }
.studio-position-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: 228px; margin-inline: auto; }
.studio-editor .studio-position-grid button { min-height: 44px; padding: 10px; }
.studio-editor .shop-editor-layers { display: grid; grid-template-columns: 1fr; max-height: none; overflow: visible; gap: 8px; }
.studio-editor .shop-editor-layers button { display: flex; justify-content: flex-start; gap: 10px; min-height: 60px; min-width: 0; padding: 8px; text-align: left; font-size: 13px; }
.studio-editor .shop-editor-layers button[aria-pressed='true'] { background: #e9efdf; border-color: #aab899; }
.studio-editor .shop-editor-layers :is(img, .shop-editor-text-thumb) { flex: 0 0 36px; width: 36px; height: 40px; object-fit: cover; border-radius: 6px; }
.studio-editor .shop-editor-layers .shop-editor-text-thumb { display: grid; place-items: center; background: #e3e9d9; font: 600 20px/1 'DM Sans', sans-serif; }
.studio-editor .shop-editor-layers button > span:not(.shop-editor-text-thumb) { flex: 1; min-width: 0; }
.studio-editor .shop-editor-layers p { font-size: 13px; line-height: 1.6; color: var(--studio-muted); margin: 10px 0 20px; }
.studio-layer-actions { margin-top: 16px; }
.studio-base-layer { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--studio-line); padding-top: 16px; margin: 20px 0 0; }
.studio-base-layer > span { display: grid; gap: 4px; }
.studio-base-layer strong { font-size: 13px; font-weight: 500; }
.studio-base-layer small { font-size: 12px; color: var(--studio-muted); }
.studio-editor .shop-editor-palette { display: grid; grid-template-columns: repeat(5, 44px); max-width: none; gap: 10px; padding: 4px; }
.studio-editor .shop-editor-palette button { position: relative; width: 100%; height: 44px; min-height: 44px; aspect-ratio: auto; padding: 0; border: 1px solid #303b2a30; border-radius: 50%; background: var(--swatch); }
.studio-editor .shop-editor-palette button:hover { background: var(--swatch); border-color: #6a7c59; }
.studio-editor .shop-editor-palette button[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--studio-surface), 0 0 0 4px var(--studio-accent); }
.studio-editor .shop-editor-palette button::after { display: none; }
.studio-editor .shop-editor-palette svg { display: none; width: 18px; height: 18px; color: #fff; background: #303b2a; border-radius: 50%; padding: 2px; }
.studio-editor .shop-editor-palette button[aria-pressed='true'] svg { display: block; }
.studio-editor .studio-colour-field { min-height: 60px; padding: 12px; border: 1px solid var(--studio-line); border-radius: 10px; }
.studio-colour-field > span { display: grid; gap: 4px; }
.studio-editor .studio-colour-field input { flex-shrink: 0; width: 44px; height: 44px; padding: 4px; border: 1px solid var(--studio-line); border-radius: 8px; background: #fff; cursor: pointer; }
.studio-library-heading h4 { font-size: 14px; font-weight: 500; margin: 4px 0 12px; }
.studio-editor .studio-library-heading label { position: relative; margin: 0 0 16px; }
.studio-library-heading label > svg { position: absolute; left: 12px; pointer-events: none; color: var(--studio-muted); }
.studio-editor .studio-library-heading input { padding-left: 40px; }
.studio-editor .shop-editor-artworks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; max-height: none; padding: 3px; overflow: visible; }
.studio-editor .shop-editor-artwork { display: block; min-width: 0; min-height: 0; padding: 0; border: 0; background: transparent; border-radius: 8px; }
.studio-editor .shop-editor-artwork:hover:not(:disabled) { background: transparent; }
.studio-editor .shop-editor-artwork-image { height: auto; aspect-ratio: 1; border-radius: 8px; }
.studio-editor .shop-editor-artwork-image > span { width: 28px; height: 28px; }
.studio-editor .shop-editor-artwork-image svg { width: 16px; height: 16px; flex-basis: 16px; }
.studio-editor .shop-editor-artwork strong { font-size: 12px; font-weight: 500; line-height: 1.4; margin: 8px 0 4px; }
.studio-editor .shop-editor-artwork small { font-size: 11px; line-height: 1.5; color: var(--studio-muted); }
.studio-editor .shop-editor-artwork .shop-artwork-print-status { font-size: 10px; color: #546c3b; margin-top: 5px; }
.studio-library > .studio-help { margin-top: 16px; }
.studio-editor .shop-editor-message { font-size: 13px; color: #806032; margin: 16px 0 0; line-height: 1.6; }
.studio-editor .shop-editor-message:empty { display: none; }
.studio-editor .shop-editor-gesture-feedback { font-size: 12px; border-radius: 8px; }
/* // These are hit areas around the existing resize handles, independent of icon sizing. */
.studio-editor .shop-editor-selection-box :is(.shop-editor-resize-handle, .shop-editor-rotate-handle) { display: block; width: 36px; height: 36px; min-height: 0; border: 0; border-radius: 0; padding: 0; background: transparent; }
.studio-editor .shop-editor-selection-box button:hover:not(:disabled) { border: 0; background: transparent; }
@container studio-workspace (max-width: 760px) {
    .studio-editor { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto clamp(280px, 42svh, 440px) auto; border-radius: 0 0 16px 16px; }
    .studio-editor .shop-editor-canvas-area { border-radius: 0; }
    .studio-inspector { border-left: 0; border-top: 1px solid var(--studio-line); }
    .studio-editor .studio-dock { gap: 8px; padding: 8px 12px; }
    .studio-editor .studio-dock button { min-height: 60px; font-size: 12px; }
    .studio-panel-scroll { max-height: min(46svh, 420px); padding: 20px; }
    .studio-editor .shop-editor-flat { inset: 88px 30px 52px; }
    .studio-editor .shop-editor-artworks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .studio-editor .shop-editor-palette { grid-template-columns: repeat(5, 44px); justify-content: start; }
    .studio-editor .shop-editor-palette button { width: 44px; }
    .studio-editor .shop-editor-stage-hint { bottom: 16px; }
}
@container studio-workspace (max-width: 400px) {
    .studio-toolbar { padding: 8px 12px; gap: 8px; }
    .studio-toolbar-title { display: none; }
    .studio-editor .shop-editor-views { top: 12px; }
    .studio-panel-scroll { padding: 16px; }
    .studio-editor .shop-editor-artworks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .studio-editor summary svg:last-child { transition: none; } }
@media (max-width: 540px) {
    .studio-steps { justify-content: space-between; gap: 12px; margin-bottom: 20px; }
    .studio-steps li { flex-direction: column; gap: 6px; font-size: 11px; text-align: center; }
}
