/* Studio only: shared MIRTS accents and softly rounded work surfaces. */
html[data-theme="dark"] .ai-design-page .ai-design-hero { background:linear-gradient(125deg,#21182f,#302044)!important; border-color:#594169; }
html[data-theme="dark"] .ai-design-page .ai-design-hero h1 { color:#f4ecfc; }
html[data-theme="dark"] .ai-design-page .ai-design-hero h1 span { color:#cba7ff; }
html[data-theme="dark"] .ai-design-page .ai-design-hero > div > p:not(.kicker) { color:#d3c5df; }
html[data-theme="dark"] .ai-design-page .ai-scenario-options button:not([aria-pressed="true"]) { background:#291e3b!important; color:#e7d5ff!important; border-color:#624978; }
html[data-theme="dark"] .ai-design-page :is(.ai-reference-field,.ai-service-agreement,.ai-generated-disclosure,#aiDraftPreview) { background:#21182f!important; color:#f4ecfc; border-color:#594169; }
html[data-theme="dark"] .ai-design-page :is(.ai-service-agreement p,.ai-service-agreement label) { color:#d3c5df; }
html[data-theme="dark"] .ai-design-page #aiGenerationStatus { background:#332541; color:#f4ecfc; border-color:#594169; }
.ai-design-page .ai-trial-tools,
.ai-design-page #aiSessionStartHint,
.ai-design-page .ai-panel-heading p,
.ai-design-page .ai-size-field > small,
.ai-design-page .ai-production-fields label > small,
.ai-design-page .ai-reference-field > small,
.ai-design-page #aiLog > .is-daria:first-child { display:none; }
.ai-design-page #aiLog:not(:has(p:nth-child(2))) { display:none; }
.ai-design-page #aiScenarioStatus:empty,
.ai-design-page #aiStudioConnection:empty,
.ai-design-page #aiVoiceStatus:empty { display:none; }
.ai-design-page .ai-preview .ai-preview-composer { margin-top:24px; padding:20px 0 0; border:0; border-top:1px solid #e5ddeb; border-radius:0; box-shadow:none; background:transparent; }
.ai-draft-preview { margin-top:20px; padding:24px; border-radius:22px; background:#faf5ff; color:#5422a7; }
.ai-draft-preview[hidden],.ai-draft-preview img[hidden] { display:none; }
.ai-draft-preview img { display:block; max-width:100%; width:360px; max-height:360px; object-fit:contain; margin:0 auto 20px; }
.ai-draft-preview p { white-space:pre-line; font-size:16px; line-height:1.7; }
.ai-draft-preview small { display:block; font-size:14px; line-height:1.5; }
.ai-scenario-picker { padding:16px 24px 0; }
.ai-scenario-picker h3 { margin:0 0 10px; color:var(--purple); font-size:16px; }
.ai-scenario-options { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; overflow-x:auto; padding:3px; }
.ai-scenario-options button { display:block; min-width:0; min-height:70px; text-align:center; padding:10px 6px; border:1px solid #d6c4ed; border-radius:12px; background:#fff; color:#5422a7; font:inherit; font-size:12px; cursor:pointer; }
.ai-scenario-options button > span { display:block; font-weight:600; white-space:nowrap; }
.ai-scenario-options button b { font-size:12px; white-space:nowrap; }
.ai-scenario-options button > small { display:block; margin-top:6px; min-width:0; white-space:normal; overflow-wrap:anywhere; }
.ai-scenario-options button small { font-size:13px; line-height:1.4; font-weight:400; }
.ai-scenario-options button[aria-pressed="true"] { background:#5422a7; border-color:#ff6b23; color:#fff; box-shadow:0 0 0 2px #ff6b23; }
.ai-scenario-options button[aria-pressed="true"] b { color:#ffbd89; }
.ai-scenario-options button:focus-visible { outline:3px solid #ff6b23; outline-offset:3px; }
.ai-scenario-picker > p { color:var(--muted); font-size:14px; line-height:1.5; margin:14px 0 0; }
@media(max-width:850px) { .ai-scenario-options { grid-template-columns:repeat(4,minmax(190px,1fr)); } }
.ai-design-page .ai-design-process { padding:24px; margin-bottom:24px; }
.ai-design-page .ai-design-process h2 { margin:0 0 16px; font-size:28px; }
.ai-design-page .ai-design-process > div { width:100%; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.ai-design-page .ai-design-process article { min-width:0; padding:18px; border-radius:18px; }
.ai-design-page .ai-design-process article h3 { margin:0 0 8px; font-size:17px; color:#ffad72; text-align:center; }
.ai-design-page .ai-design-process article p { font-size:14px; line-height:1.5; }
@media(max-width:600px) { .ai-design-page .ai-design-process { padding:20px; } .ai-design-page .ai-design-process > div { grid-template-columns:1fr; gap:10px; } .ai-design-page .ai-design-process article { padding:16px; } }
.ai-design-page .ai-workspace { border:1px solid #e9e1f2; border-radius:32px; background:#faf8fd; box-shadow:0 16px 56px rgb(50 18 88 / 7%); }
.ai-design-page .ai-workspace > header { padding:28px 32px; background:linear-gradient(110deg,#321258,#5422a7); }
.ai-design-page .ai-workspace > header h2 { font-size:28px; letter-spacing:-.6px; }
.ai-design-page .ai-timer { padding:14px 20px; border:1px solid rgb(255 255 255 / 22%); border-radius:20px; background:rgb(255 255 255 / 9%); }
.ai-design-page .ai-timer b { color:#ffb17e; font-variant-numeric:tabular-nums; }
.ai-design-page #aiStudioConnection { margin:20px 24px 12px; padding:16px 20px; border:1px solid #f4d9c4; border-radius:18px; background:#fff5ec; color:#743b17; }
.ai-design-page .ai-trial-tools { padding:0 24px 20px; color:#72677d; font-size:14px; }
.ai-design-page .ai-trial-tools button { border-radius:14px; font-size:14px; }
.ai-design-page .ai-workspace-grid { grid-template-columns:minmax(0,1fr); align-items:start; gap:20px; padding:0 24px 24px; }
.ai-design-page .ai-dialog,.ai-design-page .ai-preview { min-width:0; min-height:0; padding:28px; border:1px solid #d6c4ed; border-radius:26px; background:#fff; box-shadow:0 8px 28px rgb(84 34 167 / 6%); }
.ai-design-page .ai-preview { position:static; }
.ai-session-start { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:10px 24px 16px; }
.ai-session-start span { color:var(--muted); font-size:14px; }
.ai-session-start button[hidden] { display:none; }
.ai-session-start button:disabled { opacity:.55; cursor:not-allowed; }
.ai-panel-heading { display:flex; align-items:center; gap:14px; margin-bottom:20px; padding:20px; border-radius:20px; background:linear-gradient(110deg,#321258,#5422a7); }
.ai-panel-heading h3 { margin:0; color:#fff; font-size:22px; letter-spacing:-.4px; }
.ai-panel-heading p { margin:5px 0 0; color:#eadcfc; font-size:14px; line-height:1.5; }
.ai-step { display:grid; place-items:center; width:42px; height:42px; flex:0 0 42px; border-radius:14px; background:#ff6b23; color:#291137; font-size:14px; font-weight:800; box-shadow:0 4px 12px rgb(20 6 35 / 15%); }
.ai-design-page .ai-log { margin:0 0 24px; padding:0; }
.ai-design-page .ai-log p { max-width:100%; padding:18px 20px; border-radius:20px 20px 20px 6px; font-size:15px; line-height:1.65; }
.ai-design-page .ai-log p b { font-size:14px; margin-bottom:6px; }
.ai-design-page .ai-log .is-daria { background:#5422a7; color:#fff; border-left:4px solid #ff6b23; }
.ai-design-page .ai-log .is-daria b { color:#ffc395; }
.ai-design-page .ai-log .is-user { background:#fff0e4; border-radius:20px 20px 6px 20px; }
.ai-design-page .ai-production-fields { gap:18px 16px; }
.ai-design-page .ai-slipper-fields { grid-column:1/-1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; padding:16px; border:1px solid #edc8a9; border-radius:18px; background:#fffaf5; }
.ai-design-page .ai-slipper-fields[hidden] { display:none; }
.ai-design-page .ai-slipper-fields small { display:block; margin-top:8px; color:#7c6e85; font-size:13px; font-weight:400; line-height:1.45; }
.ai-design-page .ai-dialog label { min-width:0; margin-top:0; gap:9px; color:#5422a7; font-size:14px; font-weight:650; line-height:1.5; }
.ai-design-page .ai-dialog > label { margin-top:22px; }
.ai-design-page .ai-dialog input:not([type="hidden"]),.ai-design-page .ai-dialog select,.ai-design-page .ai-dialog textarea,.ai-design-page #aiSelectedResult { box-sizing:border-box; min-width:0; width:100%; min-height:50px; padding:13px 14px; border:1px solid #e5ddeb; border-radius:14px; background:#fcfbfe; color:#2f2140; font-size:16px; font-weight:400; font-family:inherit; line-height:1.4; }
.ai-design-page .ai-dialog select { padding-right:28px; }
.ai-design-page .ai-dialog input::placeholder,.ai-design-page .ai-dialog textarea::placeholder { color:#8a8094; opacity:1; font-weight:400; }
.ai-design-page .ai-dialog :is(input,select,textarea):focus-visible,.ai-design-page #aiSelectedResult:focus-visible { outline:3px solid #ffbc85; outline-offset:2px; border-color:#dc741f; }
.ai-size-field { grid-column:1/-1; }
.ai-size-field small { display:block; margin-top:8px; color:#7c6e85; font-size:14px; line-height:1.5; font-weight:400; }
.ai-custom-size { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:end; gap:12px; margin-top:14px; }
.ai-custom-size > span { padding-bottom:15px; color:#8f6aab; }
.ai-custom-size[hidden] { display:none; }
.ai-design-page .ai-production-note { margin:20px 0 0; padding:16px 18px; border-radius:16px; background:#faf7fd; color:#786782; font-size:14px; }
.ai-design-page .ai-dialog textarea { min-height:148px; }
.ai-design-page .ai-reference-field { padding:18px; border-radius:18px; background:#fffaf5; border-color:#edc8a9; }
.ai-design-page .ai-reference-field small,.ai-design-page .ai-dialog > small { font-size:14px; line-height:1.6; }
.ai-design-page .ai-reference-field input::file-selector-button { margin-right:12px; padding:9px 12px; border:0; border-radius:10px; background:#ffe2ca; color:#81380d; cursor:pointer; }
.ai-design-page .ai-dialog-actions { grid-template-columns:1fr; gap:12px; margin-top:20px; }
.ai-design-page .ai-dialog-actions > button { min-height:54px; border-radius:16px; white-space:normal; font-size:16px; }
.ai-design-page .ai-dialog-actions #aiSend { background:#ff6b23; color:#291137; border:1px solid #ff6b23; box-shadow:0 6px 18px rgb(218 112 34 / 14%); }
.ai-design-page .ai-dialog-actions #aiSend:not(:disabled):hover { background:#ff853e; }
.ai-design-page .ai-dialog-actions > button:first-child { background:#f5efff; border:1px solid #b99cde; color:#5422a7; }
.ai-design-page .ai-dialog-actions #aiSend:disabled { background:#ffe0c5; border-color:#f4c7a3; color:#755444; opacity:1; cursor:not-allowed; box-shadow:none; }
.ai-design-page #aiAllowance { padding:12px 14px; margin:0 0 18px; border-radius:14px; background:#fff0e4; color:#823b12; font-size:14px; line-height:1.65; }
.ai-design-page .ai-preview > label { display:grid; gap:9px; color:#665374; font-size:14px; }
.ai-design-page .ai-preview-empty { min-height:330px; margin-top:20px; padding:28px; border:1px solid #eee5f3; border-radius:22px; background:linear-gradient(145deg,#fcfaff,#fff5eb); }
.ai-design-page .ai-preview-empty b { font-size:22px; }
.ai-design-page .ai-preview-empty span { font-size:15px; }
.ai-design-page .ai-preview-result { min-height:0; margin-top:20px; }
.ai-design-page .ai-generated-disclosure { margin-top:18px; border:1px solid #dbcaff; border-radius:14px; padding:12px 16px; }
.ai-design-page .ai-generated-disclosure[hidden] { display:none; }
.ai-design-page .ai-generated-disclosure > summary { color:#4d2199; font-weight:700; cursor:pointer; }
html[data-theme="dark"] .ai-design-page .ai-workspace { background:#20182c; border-color:#493455; }
html[data-theme="dark"] .ai-design-page :is(.ai-dialog,.ai-preview) { background:#2a2038; border-color:#493455; }
html[data-theme="dark"] .ai-design-page :is(.ai-panel-heading h3,.ai-dialog label,.ai-preview > label) { color:#f1e8fa; }
html[data-theme="dark"] .ai-design-page :is(.ai-panel-heading p,.ai-size-field small) { color:#c9b9d6; }
html[data-theme="dark"] .ai-design-page .ai-dialog :is(input:not([type="hidden"]),select,textarea),html[data-theme="dark"] .ai-design-page #aiSelectedResult { background:#241a31; color:#f4ecfc; border-color:#594169; }
html[data-theme="dark"] .ai-design-page :is(.ai-production-note,.ai-preview-empty) { background:#332541; color:#daccdf; border-color:#594169; }
html[data-theme="dark"] .ai-design-page .ai-log .is-daria { background:#5422a7; color:#fff; border-color:#ff6b23; }
html[data-theme="dark"] .ai-design-page .ai-preview-empty b { color:#f6eafb; }
@media(max-width:1100px) { .ai-design-page .ai-workspace-grid { grid-template-columns:minmax(0,1fr); } .ai-design-page .ai-preview { position:static; } }
@media(max-width:600px) { .ai-design-page .ai-workspace { border-radius:24px; } .ai-design-page .ai-workspace > header { padding:24px 20px; } .ai-design-page .ai-workspace-grid { padding:0 12px 12px; gap:14px; } .ai-design-page :is(.ai-dialog,.ai-preview) { padding:20px 16px; border-radius:20px; } .ai-design-page #aiStudioConnection { margin:14px 12px; } .ai-design-page .ai-production-fields { grid-template-columns:1fr; } .ai-design-page .ai-trial-tools { padding:0 16px 16px; } }
.ai-design-page .ai-revision-help { margin:12px 0 20px; padding:4px 0 4px 14px; border-left:3px solid #ff6b23; color:#5422a7; font-size:14px; line-height:1.6; }
.ai-design-page .ai-revision-help p { margin:0; }
.ai-design-page .ai-revision-help p + p { margin-top:6px; }
html[data-theme="dark"] .ai-design-page .ai-revision-help { color:#f1e8fa; }
.ai-design-page .ai-session-start[hidden] { display:none; }
.ai-design-page .ai-imprint-row { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:16px; align-items:start; }
.ai-design-page .ai-imprint-row.has-colors { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1.2fr); }
.ai-design-page .ai-imprint-row .ai-size-field { grid-column:auto; min-width:0; }
.ai-design-page .ai-imprint-row > label { min-width:0; }
.ai-design-page #aiEmbroideryColors[hidden] { display:none; }
@media(max-width:600px) { .ai-design-page .ai-imprint-row,.ai-design-page .ai-imprint-row.has-colors { grid-template-columns:minmax(0,1fr); gap:12px; } }
@media(max-width:760px) { .ai-design-page .ai-slipper-fields { grid-template-columns:1fr; gap:12px; } }
.ai-design-page .ai-design-hero .kicker { color:#d94e08; }
html[data-theme="dark"] .ai-design-page .ai-design-hero .kicker { color:#ff9b60; }
.ai-design-page .ai-design-hero aside b { font-size:30px; line-height:1.2; color:#ffc08f; }
.ai-package-rules { margin:16px 0; font-size:14px; line-height:1.6; }
.ai-package-rules summary { cursor:pointer; color:#5422a7; font-weight:700; }
.ai-design-page .ai-scenario-options { grid-template-columns:repeat(5,minmax(0,1fr)); }
.ai-design-page .ai-scenario-options button > span { white-space:normal; }
@media(max-width:850px) { .ai-design-page .ai-scenario-options { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .ai-design-page .ai-scenario-options { grid-template-columns:1fr; } }
.ai-design-page .ai-scenario-options button .ai-plan-price-time { white-space:nowrap; margin-top:4px; }
.ai-design-page .ai-scenario-options button .ai-plan-name { white-space:nowrap; }
.ai-design-page .ai-design-process { padding:0; background:transparent; }
.ai-design-page .ai-design-process > h2 { color:#5422a7; margin:0 0 16px; }
.ai-design-page .ai-design-process > div { padding:24px; border-radius:28px; background:#321258; box-sizing:border-box; }
html[data-theme="dark"] .ai-design-page .ai-design-process > h2 { color:#c9a8ff; }
@media(max-width:600px) { .ai-design-page .ai-design-process > div { padding:16px; } }
.ai-design-page .ai-design-hero h1, .ai-design-page .ai-design-hero h1 span { font-weight:500; }
.ai-design-page .ai-design-hero .kicker { font-weight:500; }
.ai-design-page .ai-design-hero aside b { font-weight:500; }
.ai-design-page .ai-design-hero aside > span { font-weight:500; }
.ai-design-page .ai-product-stage { position:relative; width:min(100%,460px); margin:0 auto 16px; }
.ai-design-page .ai-product-stage img { display:block; width:100%; max-height:none; margin:0; border-radius:16px; }
.ai-design-page .ai-imprint-zone { position:absolute; transform:translate(-50%,-50%); padding:6px; border:2px dashed #d46c13; background:#fff5dfdd; color:#5422a7; font-size:12px; line-height:1.3; text-align:center; white-space:pre-line; border-radius:6px; }
.ai-design-page .ai-product-stage[hidden],.ai-design-page .ai-imprint-zone[hidden],.ai-design-page #aiPreviewEmpty[hidden] { display:none; }
.ai-design-page #aiDraftPreview { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px 24px; align-items:center; padding:20px; }
.ai-design-page #aiDraftPreview[hidden] { display:none; }
.ai-design-page #aiDraftPreview .ai-product-stage { width:100%; max-width:340px; margin:0; }
.ai-design-page #aiDraftSummary { margin:0; font-size:14px; line-height:1.6; white-space:pre-line; }
.ai-design-page #aiDraftPreview > small { grid-column:1/-1; }
.ai-design-page .ai-imprint-zone { box-sizing:border-box; padding:0; overflow:visible; display:flex; align-items:center; justify-content:center; font-size:10px; }
@media(max-width:600px) { .ai-design-page #aiDraftPreview { grid-template-columns:1fr; } }
.ai-design-page #aiDraftPreview .ai-product-stage.is-shirt { overflow:hidden; border-radius:16px; }
.ai-design-page #aiDraftPreview .ai-product-stage.is-shirt img { transform:translateY(2.5%) scale(1.45); transform-origin:center; }
.ai-design-page #aiDraftPreview #aiDraftSummary { font-size:16px; line-height:1.65; }
.ai-design-page .ai-preview-composer > [hidden] { display:none; }
.ai-design-page .ai-preview-composer { margin-top:12px; padding-top:12px; }
.ai-design-page .ai-preview-composer #aiPrompt { min-height:76px; height:76px; padding:10px 14px; resize:vertical; }
.ai-design-page .is-shirt .ai-imprint-zone { cursor:grab; touch-action:none; user-select:none; }
.ai-design-page .is-shirt .ai-imprint-zone:active { cursor:grabbing; }
.ai-design-page .ai-imprint-zone:focus-visible { outline:2px solid #5422a7; outline-offset:4px; }
.ai-design-page .ai-preview > label[hidden] { display:none; }
.ai-design-page .ai-preview > label:last-child { margin-top:16px; }
.ai-design-page .ai-panel-heading #aiAllowance { display:block; margin:5px 0 0; padding:0; background:none; border:0; color:#ffbd89; font-size:14px; line-height:1.4; }
.ai-design-page .ai-preview > .ai-panel-heading > div { display:flex; align-items:center; flex-wrap:wrap; gap:6px 14px; min-width:0; }
.ai-design-page .ai-preview > .ai-panel-heading #aiAllowance { margin:0; }
.ai-design-page .ai-preview > .ai-panel-heading { justify-content:flex-start; }
.ai-design-page .ai-preview > .ai-panel-heading > div { justify-content:flex-start; align-items:baseline; text-align:left; }
.ai-design-page .ai-preview > .ai-panel-heading h3 { margin:0; }
.ai-design-page .ai-imprint-zone { font-size:14px; font-weight:600; white-space:nowrap; color:#321258; background:#fff8eced; border:2px solid #ff6b23; }
.ai-design-page #aiDraftPreview > small { display:none; }
.ai-design-page .ai-placement-picker { min-width:0; display:flex; flex-direction:column; gap:9px; font-size:14px; font-weight:650; line-height:1.5; color:#5422a7; }
.ai-design-page .ai-placement-picker details { margin-top:0; padding:0; border:1px solid #ddd0ef; border-radius:16px; background:#fcfaff; }
.ai-design-page .ai-placement-picker summary { position:relative; box-sizing:border-box; min-height:48px; padding:12px 40px 12px 14px; cursor:pointer; font-size:16px; font-weight:400; line-height:24px; color:#301e48; list-style:none; }
.ai-design-page .ai-placement-picker summary::-webkit-details-marker { display:none; }
.ai-design-page .ai-placement-picker summary::after { content:'⌄'; position:absolute; right:15px; color:#40205e; }
.ai-design-page .ai-placement-picker details[open="open"] { padding-bottom:12px; }
.ai-design-page .ai-placement-picker details label { padding-inline:14px; }
.ai-design-page .ai-imprint-row :is(select,input:not([type="checkbox"]):not([type="hidden"])) { box-sizing:border-box; height:50px; min-height:50px; font-size:16px; line-height:24px; }
.ai-design-page .ai-placement-picker details label { display:flex; align-items:center; gap:8px; margin-top:8px; }
.ai-design-page .ai-placement-picker input[type="checkbox"] { width:16px; min-height:16px; height:16px; }
.ai-design-page #aiDraftSummary[hidden],.ai-design-page .ai-shirt-views[hidden] { display:none; }
.ai-design-page #aiDraftProductImage[hidden] { display:none; }
.ai-shirt-views { grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.ai-shirt-views figure { margin:0; min-width:0; }
.ai-shirt-views figure:only-child { width:100%; max-width:520px; grid-column:1/-1; justify-self:center; }
/* Each selected angle keeps the same 520px square instead of shrinking when a second angle is chosen. */
.ai-dtf-studio-page .ai-shirt-views { display:flex; flex-wrap:wrap; justify-content:center; }
.ai-dtf-studio-page .ai-shirt-views figure { width:min(100%,520px); max-width:520px; }
.ai-shirt-view-stage { position:relative; aspect-ratio:1; overflow:hidden; border-radius:16px; }
.ai-shirt-view-stage > img { display:block; width:100%; height:100%; max-height:none; margin:0; object-fit:contain; transform:scale(var(--mirts-shirt-preview-scale,1.4)); }
.ai-shirt-view-stage img[hidden] { display:none; }
.ai-shirt-view-stage > img[data-mirror="true"] { transform:scale(calc(-1 * var(--mirts-shirt-preview-scale,1.4)),var(--mirts-shirt-preview-scale,1.4)); }
.ai-shirt-zone-artwork { position:absolute; top:50%; left:50%; width:85%!important; height:85%!important; transform:translate(-50%,-50%); object-fit:contain; pointer-events:none; }
.ai-shirt-zone-artwork[hidden] { display:none!important; }
.ai-shirt-view-unavailable { position:absolute; inset:0; display:grid; place-items:center; padding:20px; color:#644591; text-align:center; background:#f6f1ff; }
.ai-shirt-view-unavailable[hidden] { display:none; }
.ai-shirt-views figcaption { text-align:center; margin-top:8px; font-size:14px; }
.ai-design-page .ai-shirt-view-zone { position:absolute; transform:translate(-50%,-50%); min-width:0; min-height:0; box-sizing:border-box; padding:0; border:2px solid #ff792d; border-radius:3px; background:rgb(255 255 255 / 12%); color:#301047; font-size:14px; font-weight:700; line-height:1; white-space:nowrap; cursor:grab; touch-action:none; user-select:none; }
.ai-design-page .ai-shirt-view-zone[hidden] { display:none; }
.ai-design-page .ai-shirt-view-zone { overflow:visible; }
.ai-design-page .ai-shirt-zone-resize { position:absolute; width:22px; height:22px; display:grid; place-items:center; border:2px solid #ff792d; border-radius:50%; background:#fff; color:#5422a7; font-size:12px; box-shadow:0 1px 5px #31114c44; touch-action:none; }
.ai-design-page .ai-shirt-zone-resize::after { content:'↔'; }
.ai-design-page .ai-shirt-zone-resize-width { right:-13px; top:50%; transform:translateY(-50%); cursor:ew-resize; }
.ai-design-page .ai-shirt-zone-resize-height { bottom:-13px; left:50%; transform:translateX(-50%); cursor:ns-resize; }
.ai-design-page .ai-shirt-zone-resize-height::after { content:'↕'; }
.ai-design-page .ai-shirt-zone-resize:focus-visible { outline:2px solid #5422a7; outline-offset:2px; }
.ai-design-page .ai-shirt-zone-size {
  position:absolute;
  left:50%;
  top:calc(100% + 4px);
  transform:translateX(-50%);
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#301047;
  font-size:11px;
  font-weight:600;
  line-height:1.2;
  white-space:nowrap;
  pointer-events:none;
}
.ai-design-page .ai-shirt-zone-text { position:absolute; inset:50% auto auto 50%; width:88%; max-height:88%; transform:translate(-50%,-50%); overflow:hidden; color:#35105e; font-size:clamp(10px,1.8vw,18px); font-weight:800; line-height:1.12; text-align:center; overflow-wrap:anywhere; text-wrap:balance; white-space:pre-line; pointer-events:none; }
.ai-design-page .ai-shirt-zone-text[hidden] { display:none; }
.dtf-product-info { display:block; margin-top:7px; color:#7c6e85; font-size:13px; font-weight:500; }
.dtf-text-controls { display:grid; grid-template-columns:minmax(0,1fr) minmax(150px,.55fr); gap:12px; }
.dtf-text-controls > small { grid-column:1/-1; color:#7c6e85; font-size:13px; }
.dtf-color-field { gap:4px!important; }
.dtf-color-control { position:relative; margin-top:0; }
.dtf-color-summary { display:flex; align-items:center; gap:9px; box-sizing:border-box; min-height:50px; padding:12px 40px 12px 18px; border:1px solid #e5ddeb; border-radius:14px; background:#fcfbfe; color:#2f2140; font-family:inherit; font-size:16px; font-weight:400; line-height:1.4; cursor:pointer; list-style:none; }
.dtf-color-summary::-webkit-details-marker { display:none; }
.dtf-color-summary::after { content:'⌄'; position:absolute; right:15px; color:#40205e; }
.dtf-color-swatches { position:absolute; z-index:20; top:calc(100% + 6px); left:0; right:0; display:grid; gap:4px; padding:7px; border:1px solid #dfd4ec; border-radius:12px; background:#fff; box-shadow:0 12px 28px rgb(38 18 58 / 16%); }
.dtf-color-control:not([open]) .dtf-color-swatches { display:none; }
.dtf-color-swatches button { display:flex; align-items:center; gap:9px; width:100%; min-height:38px; padding:6px 8px; border:0; border-radius:8px; background:#fff; color:#3c2552; font:600 14px/1 var(--font,inherit); cursor:pointer; }
.dtf-color-swatches button:hover,.dtf-color-swatches button[aria-pressed="true"] { background:#f5effc; }
.dtf-color-swatches i { display:block; width:20px; height:20px; border:1px solid #bdb4c7; border-radius:50%; background:var(--swatch); }
.dtf-color-summary i { display:block; width:22px; height:22px; border:1px solid #bdb4c7; border-radius:50%; background:var(--swatch); }
.ai-dtf-studio-page #aiSizePreset { display:none; }
.ai-dtf-studio-page .ai-production-fields > .ai-size-field { grid-column:auto; }
.ai-dtf-studio-page .ai-imprint-row { grid-template-columns:1fr; }
.ai-dtf-studio-page .is-fixed-technology { display:none!important; }
.ai-dtf-studio-page .ai-preview > label:has(#aiSelectedResult) { display:none!important; }
.ai-dtf-studio-page #aiVoice,.ai-dtf-studio-page #aiVoiceStatus { display:none!important; }
.ai-dtf-studio-page .ai-preview-empty { display:none!important; }
.ai-dtf-studio-page .ai-custom-size { align-items:start; margin-top:30px; }
.ai-dtf-studio-page .ai-custom-size > label { display:flex; flex-direction:column-reverse; gap:6px; }
.ai-dtf-studio-page .ai-custom-size > span { padding:15px 0 0; }
.ai-dtf-studio-page .ai-custom-size[hidden] { display:grid; }
.ai-dtf-studio-page .dtf-a3-limit { display:block; margin-top:8px; color:#7c6e85; font-size:13px; }
.ai-shirt-view-zone:focus-visible { outline:3px solid #ff792d; outline-offset:3px; }
@media(max-width:480px) { .ai-shirt-views { gap:10px; } .ai-design-page .ai-shirt-view-zone { font-size:12px; } }

/* Keep the brief and its primary action close to the first viewport. */
.ai-design-page:not(.ai-dtf-studio-page) { gap:12px; padding-top:16px; padding-bottom:20px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-design-hero { grid-template-columns:minmax(0,1fr); align-items:center; gap:18px; padding:20px 26px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-design-hero h1 { margin:5px 0 8px; font-size:clamp(31px,3.6vw,44px); line-height:1.07; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-design-hero > div > p:last-child { margin:0; font-size:15px; line-height:1.4; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-design-hero aside { padding:17px 19px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-design-hero aside b { font-size:23px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-design-hero aside span { margin-top:5px; font-size:13px; line-height:1.4; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-plan-section { margin:0; text-align:center; line-height:1.4; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-studio,
.ai-design-page:not(.ai-dtf-studio-page) .ai-workspace { margin-top:0; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-workspace > header { padding:15px 22px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-workspace > header h2 { margin-top:2px; font-size:23px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-timer { padding:9px 14px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-scenario-picker { padding:10px 20px 0; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-scenario-picker h3 { margin-bottom:6px; font-size:14px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-scenario-options { gap:6px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-scenario-options button { min-height:62px; padding:7px 5px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-scenario-options button small { font-size:12px; line-height:1.3; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-scenario-picker > p { margin-top:7px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-session-start { padding:12px 20px 0; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-workspace-grid { gap:14px; padding:12px 20px 20px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-workspace:has(.ai-session-start:not([hidden])) .ai-workspace-grid { padding-top:16px; }
.ai-design-page:not(.ai-dtf-studio-page) :is(.ai-dialog,.ai-preview) { padding:20px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-panel-heading { margin-bottom:14px; padding:14px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-panel-heading h3 { font-size:20px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-production-fields { gap:12px 14px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-dialog label { gap:6px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-preview .ai-preview-composer { margin-top:12px; padding:12px 0 0; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-preview-composer > label:not([hidden]) { margin-top:0; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-preview-composer .ai-reference-field { margin-top:14px; padding:14px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-preview-composer .ai-dialog-actions { margin-top:12px; gap:8px; }
.ai-design-page #aiGenerationStatus { margin:8px 0 0; padding:9px 12px; border:1px solid #d8c7ee; border-radius:10px; background:#f5efff; color:#402064; font-size:14px; font-weight:650; line-height:1.35; }
.ai-design-page #aiGenerationStatus:empty { display:none; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-preview-empty { min-height:190px; margin-top:12px; }
.ai-design-page:not(.ai-dtf-studio-page) #aiDraftPreview { padding:14px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-shirt-views figure { width:100%; max-width:340px; justify-self:center; }
.ai-design-page .ai-package-rules[hidden] { display:none; }
@media(max-width:700px) {
  .ai-design-page:not(.ai-dtf-studio-page) .ai-design-hero { grid-template-columns:1fr; padding:20px; }
  .ai-design-page:not(.ai-dtf-studio-page) .ai-design-hero aside { padding:14px 16px; }
  .ai-design-page:not(.ai-dtf-studio-page) .ai-workspace-grid { padding:12px 12px 16px; }
}

/* DTF uses the same step-and-workbench geometry as embroidery. The studio
   controls and preview keep their existing behavior inside these panels. */
.ai-dtf-studio-page { gap:12px; }
.ai-dtf-studio-page > .mirts-route-trail.breadcrumbs:first-child { margin:0; }
.ai-dtf-studio-page .constructor-configure-head { margin:0; }
.ai-dtf-studio-page .constructor-configure-head h1 { margin-bottom:0; }
.ai-dtf-studio-page .constructor-progress { margin-bottom:8px; }
.ai-dtf-studio-page .ai-workspace { overflow:visible; border:0; border-radius:0; background:transparent; }
.ai-dtf-studio-page .ai-workspace-grid { grid-template-columns:320px minmax(0,1fr); gap:18px; padding:0; }
.ai-dtf-studio-page .ai-workspace-grid > :is(.ai-dialog,.ai-preview) { min-width:0; padding:22px; border:1px solid #ddd3ee; border-radius:18px; background:#fff; }
.ai-dtf-studio-page .ai-workspace-grid > .ai-dialog { position:relative; }
.ai-dtf-studio-page.is-dtf-selection-pending .ai-workspace-grid > .ai-dialog > :not(.ai-production-fields):not(.ai-panel-heading) { display:none!important; }
.ai-dtf-studio-page.is-dtf-selection-pending .ai-production-fields { display:block; }
.ai-dtf-studio-page.is-dtf-selection-pending .ai-production-fields > :not(.ai-product-source) { display:none!important; }
.ai-dtf-studio-page.is-dtf-selection-pending .ai-product-source { margin:0; }
.ai-dtf-studio-page.is-dtf-selection-pending .ai-product-source h3 { margin:0 0 14px; }
.ai-dtf-studio-page.is-dtf-selection-pending .ai-product-source :is(a.button,button.button) { display:flex; width:100%; min-height:52px; margin:10px 0 0; justify-content:center; align-items:center; box-sizing:border-box; border-radius:12px; text-align:center; }
.ai-dtf-studio-page .dtf-controls-toggle { display:block; width:max-content; min-height:32px; margin:0 0 10px auto; padding:5px 10px; border:1px solid #d9caee; border-radius:9px; background:#f4eeff; color:#5422a7; font-size:0; line-height:1.2; cursor:pointer; }
.ai-dtf-studio-page .dtf-controls-toggle::after { content:'Свернуть настройки'; font-size:12px; font-weight:700; }
.ai-dtf-studio-page .dtf-controls-toggle:hover,.ai-dtf-studio-page .dtf-controls-toggle:focus-visible { background:#e9dcff; outline:2px solid #ffb987; }
.ai-dtf-studio-page.is-dtf-controls-collapsed .ai-workspace-grid { grid-template-columns:56px minmax(0,1fr); }
.ai-dtf-studio-page.is-dtf-controls-collapsed .ai-workspace-grid > .ai-dialog { padding:6px; }
.ai-dtf-studio-page.is-dtf-controls-collapsed .ai-workspace-grid > .ai-dialog > :not(.dtf-controls-toggle) { display:none!important; }
.ai-dtf-studio-page.is-dtf-controls-collapsed .dtf-controls-toggle { width:42px; height:42px; min-height:42px; margin:0; padding:0; }
.ai-dtf-studio-page.is-dtf-controls-collapsed .dtf-controls-toggle::after { content:'›'; font-size:28px; }
.ai-dtf-studio-page .ai-production-fields,.ai-dtf-studio-page .dtf-text-controls { grid-template-columns:minmax(0,1fr); gap:12px; }
.ai-dtf-studio-page .ai-imprint-row { grid-template-columns:minmax(0,1fr); }
.ai-dtf-studio-page .ai-panel-heading { margin-bottom:16px; padding:14px; }
.ai-dtf-studio-page .ai-panel-heading h3 { font-size:18px; }
.ai-dtf-studio-page .ai-dialog label { gap:6px; font-size:12px; }
.ai-dtf-studio-page .ai-dialog input:not([type="hidden"]),
.ai-dtf-studio-page .ai-dialog select { min-height:42px; padding:9px 11px; font-size:14px; }
.ai-dtf-studio-page .ai-custom-size { gap:6px; margin-top:8px; }
.ai-dtf-studio-page .ai-custom-size > span { padding-top:10px; }
.ai-dtf-studio-page .ai-preview .ai-preview-composer { margin:0 0 14px; padding:0 0 14px; border:0; border-bottom:1px solid #e5ddeb; }
.ai-dtf-studio-page .ai-preview-composer .dtf-content-mode { margin:0 0 10px; }
.ai-dtf-studio-page .ai-preview-composer .dtf-text-controls[hidden] { display:none; }
.ai-dtf-studio-page .ai-preview-composer .ai-reference-field { margin:10px 0; }
.ai-dtf-studio-page .ai-preview-composer .ai-dialog-actions { margin-top:10px; }
.ai-dtf-studio-page .ai-generated-disclosure { margin-top:14px; }
@media(max-width:820px) {
  .ai-dtf-studio-page .ai-workspace-grid { grid-template-columns:minmax(0,1fr); }
  .ai-dtf-studio-page.is-dtf-controls-collapsed .ai-workspace-grid { grid-template-columns:minmax(0,1fr); }
}

/* Darya landing/workspace: calm neutral surfaces, restrained brand accents.
   Scoped away from the separate DTF constructor. */
.ai-design-page:not(.ai-dtf-studio-page) {
  --studio-paper:#ffffff;
  --studio-soft:#f6f3fc;
  --studio-line:#ded3f1;
  --studio-ink:#25183b;
  --studio-muted:#635875;
  --studio-accent:#642cc5;
  --studio-selected:#eee5ff;
  --studio-warm:#fff2e8;
  --studio-warm-ink:#a6400c;
  color:var(--studio-ink);
  background:var(--studio-soft);
}
html[data-theme="dark"] .ai-design-page:not(.ai-dtf-studio-page) {
  --studio-paper:#24252a;
  --studio-soft:#1d1e22;
  --studio-line:#424349;
  --studio-ink:#f0efed;
  --studio-muted:#bebfc5;
  --studio-accent:#c4afd8;
  --studio-selected:#343039;
  --studio-warm:#39312b;
  --studio-warm-ink:#e3bd9b;
}
.ai-design-page:not(.ai-dtf-studio-page) :is(.ai-design-hero,.ai-workspace,.ai-dialog,.ai-preview,.ai-design-process,.ai-product-source) {
  background:var(--studio-paper)!important;
  border-color:var(--studio-line);
  box-shadow:none;
  color:var(--studio-ink);
}
.ai-design-page:not(.ai-dtf-studio-page) :is(.ai-design-hero h1,.ai-workspace h2,.ai-panel-heading h3,.ai-product-source h3,.ai-scenario-picker h3,.ai-dialog label,.ai-preview > label) { color:var(--studio-ink); }
.ai-design-page:not(.ai-dtf-studio-page) .ai-design-hero h1 span { color:var(--studio-accent); }
.ai-design-page:not(.ai-dtf-studio-page) :is(.kicker,.ai-workspace > header .kicker) { color:var(--studio-accent); }
.ai-design-page:not(.ai-dtf-studio-page) .ai-design-hero > div > p:not(.kicker) { color:var(--studio-muted); }
.ai-design-page:not(.ai-dtf-studio-page) .ai-design-hero aside { background:var(--studio-soft); border:1px solid var(--studio-line); color:var(--studio-ink); }
.ai-design-page:not(.ai-dtf-studio-page) .ai-design-hero aside :is(b,span,small) { color:var(--studio-ink); }
.ai-design-page:not(.ai-dtf-studio-page) .ai-design-hero aside span { font-weight:500; }
.ai-design-page:not(.ai-dtf-studio-page) :is(.ai-workspace > header,.ai-panel-heading) { background:var(--studio-soft); color:var(--studio-ink); border-bottom:1px solid var(--studio-line); }
.ai-design-page:not(.ai-dtf-studio-page) .ai-step { background:var(--studio-warm); color:var(--studio-warm-ink); box-shadow:none; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-timer { background:var(--studio-paper); border-color:var(--studio-line); color:var(--studio-muted); }
.ai-design-page:not(.ai-dtf-studio-page) .ai-timer b { color:var(--studio-accent); }
.ai-design-page:not(.ai-dtf-studio-page) .ai-scenario-options button { background:var(--studio-paper)!important; border-color:var(--studio-line); color:var(--studio-ink)!important; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-scenario-options button[aria-pressed="true"] { background:var(--studio-selected)!important; border-color:var(--studio-accent); box-shadow:0 0 0 1px var(--studio-accent); }
.ai-design-page:not(.ai-dtf-studio-page) .ai-scenario-options button b { color:var(--studio-accent); }
.ai-design-page:not(.ai-dtf-studio-page) :is(.ai-product-source .button,.ai-dialog-actions > button:first-child) { background:var(--studio-selected); border:1px solid var(--studio-line); color:var(--studio-accent); box-shadow:none; }
.ai-design-page:not(.ai-dtf-studio-page) :is(.ai-reference-field,.ai-service-agreement,.ai-generated-disclosure,#aiDraftPreview,.ai-preview-empty,.ai-production-note,.ai-log .is-daria,#aiGenerationStatus) { background:var(--studio-soft)!important; border-color:var(--studio-line); color:var(--studio-ink); }
.ai-design-page:not(.ai-dtf-studio-page) :is(.ai-dialog input:not([type="hidden"]),.ai-dialog select,.ai-dialog textarea,#aiSelectedResult) { background:var(--studio-paper); border-color:var(--studio-line); color:var(--studio-ink); }
.ai-design-page:not(.ai-dtf-studio-page) :is(.ai-generated-disclosure > summary,.ai-log .is-daria b,.ai-panel-heading #aiAllowance) { color:var(--studio-accent); }
.ai-design-page:not(.ai-dtf-studio-page) :is(.ai-service-agreement p,.ai-service-agreement label,.ai-reference-field small) { color:var(--studio-muted); }
.ai-design-page:not(.ai-dtf-studio-page) .ai-dialog-actions #aiSend { background:#642cc5; border-color:#642cc5; color:#fff; box-shadow:none; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-dialog-actions #aiSend:not(:disabled):hover { background:#4c209a; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-dialog-actions #aiSend:disabled { background:var(--studio-selected); border-color:var(--studio-line); color:var(--studio-muted); }
.ai-design-page:not(.ai-dtf-studio-page) :is(button,a,input,select,textarea):focus-visible { outline:3px solid #bca9cd; outline-offset:3px; }
html[data-theme="dark"] .ai-design-page:not(.ai-dtf-studio-page) :is(.ai-design-hero,.ai-workspace,.ai-dialog,.ai-preview,.ai-design-process,.ai-product-source) { background:var(--studio-paper)!important; }
html[data-theme="dark"] .ai-design-page:not(.ai-dtf-studio-page) :is(.ai-reference-field,.ai-service-agreement,.ai-generated-disclosure,#aiDraftPreview,.ai-preview-empty,.ai-production-note,.ai-log .is-daria,#aiGenerationStatus) { background:var(--studio-soft)!important; color:var(--studio-ink); }
html[data-theme="dark"] .ai-design-page:not(.ai-dtf-studio-page) .ai-scenario-options button:not([aria-pressed="true"]) { background:var(--studio-paper)!important; color:var(--studio-ink)!important; border-color:var(--studio-line); }
.ai-design-page:not(.ai-dtf-studio-page) .ai-timer span { color:var(--studio-muted); }
html[data-theme="dark"] .ai-design-page:not(.ai-dtf-studio-page) .ai-dialog :is(input:not([type="hidden"]),select,textarea) { background:var(--studio-paper); color:var(--studio-ink); border-color:var(--studio-line); }
body:has(.ai-design-page:not(.ai-dtf-studio-page)) #siteFooter { background:#f2f2ef; color:#34353a; border-top:1px solid #dededb; }
body:has(.ai-design-page:not(.ai-dtf-studio-page)) #siteFooter::before { display:none; }
body:has(.ai-design-page:not(.ai-dtf-studio-page)) #siteFooter :is(a,p,span,b,strong,small) { color:#52545c; }
body:has(.ai-design-page:not(.ai-dtf-studio-page)) #siteFooter .site-brand { filter:none; }
html[data-theme="dark"] body:has(.ai-design-page:not(.ai-dtf-studio-page)) #siteFooter { background:#24252a; color:#f0efed; border-color:#424349; }
html[data-theme="dark"] body:has(.ai-design-page:not(.ai-dtf-studio-page)) #siteFooter :is(a,p,span,b,strong,small) { color:#bebfc5; }
html[data-theme="dark"] body:has(.ai-design-page:not(.ai-dtf-studio-page)) #siteFooter .site-brand { filter:brightness(0) invert(1); }
body:has(.ai-design-page:not(.ai-dtf-studio-page)) #siteFooter .footer-bottom { border-color:#dededb; }
html[data-theme="dark"] body:has(.ai-design-page:not(.ai-dtf-studio-page)) #siteFooter .footer-bottom { border-color:#424349; }

/* Brand hierarchy: one strong studio header, clean work surfaces, warm actions. */
.ai-design-page:not(.ai-dtf-studio-page) .ai-design-hero { border-radius:20px; border-top:4px solid #642cc5; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-design-hero aside { background:#eee5ff; border-color:#d8c5f5; color:#432078; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-design-hero aside :is(b,span,small) { color:#432078; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-workspace { border-radius:20px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-workspace > header { background:linear-gradient(110deg,#35165e,#642cc5); border:0; color:#fff; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-workspace > header h2 { color:#fff; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-workspace > header .kicker { color:#ffbe8f; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-timer { background:rgb(255 255 255 / 12%); border-color:rgb(255 255 255 / 25%); }
.ai-design-page:not(.ai-dtf-studio-page) .ai-timer span { color:#eee4ff; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-timer b { color:#ffbe8f; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-scenario-options button[aria-pressed="true"] { background:#642cc5!important; color:#fff!important; border-color:#642cc5; box-shadow:inset 0 -3px #ff762b; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-scenario-options button[aria-pressed="true"] b { color:#fff; }
.ai-design-page:not(.ai-dtf-studio-page) :is(.ai-dialog,.ai-preview) { border:0; border-radius:14px; padding:16px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-panel-heading.ai-panel-heading { background:var(--studio-selected); border:0; border-radius:12px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-step { background:#ff762b; color:#25183b; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-product-source { border-radius:12px; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-product-source .button { background:#642cc5; color:#fff; border-color:#642cc5; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-product-source .button.is-disabled { opacity:.45; filter:grayscale(.35); cursor:not-allowed; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-product-source .button.is-selected,
.ai-design-page:not(.ai-dtf-studio-page) .ai-product-source .button.is-selected:hover,
.ai-design-page:not(.ai-dtf-studio-page) .ai-product-source .button.is-selected:focus-visible { background:#ff762b; border-color:#ff762b; box-shadow:0 0 0 3px rgb(255 118 43 / 28%); color:#fff!important; text-shadow:0 1px 0 rgb(96 35 8 / 26%); }
.ai-own-product-preview { display:grid; grid-template-columns:156px minmax(0,1fr); gap:8px 20px; align-items:center; margin:18px 0 18px; padding:18px; border:1px solid var(--studio-line,#ded3f1); border-radius:14px; background:var(--studio-soft,#f6f3fc); }
.ai-own-product-preview[hidden] { display:none; }
.ai-own-product-preview > b { grid-column:1 / -1; color:var(--studio-ink,#25183b); }
.ai-own-product-shape { grid-row:2 / span 3; width:156px; aspect-ratio:4 / 3; border:1px solid color-mix(in srgb,var(--own-product-color,#9a82bc) 66%,#1d1930); border-radius:12px; background:linear-gradient(145deg,rgb(255 255 255 / 38%),transparent 45%),var(--own-product-color,#9a82bc); box-shadow:inset 0 0 0 10px rgb(255 255 255 / 16%),0 7px 18px rgb(37 24 59 / 14%); }
.ai-own-product-preview strong { color:var(--studio-ink,#25183b); text-transform:capitalize; }
.ai-own-product-preview span,.ai-own-product-preview small { color:var(--studio-muted,#635875); }
.ai-draft-preview:has(#aiDraftProductImage:not([hidden])) #aiDraftProductImage { display:block; width:min(100%,360px); max-height:320px; margin:0 auto 14px; object-fit:contain; }
.ai-design-page #aiDraftPreview.is-own-product-preview { display:flex; align-items:center; justify-content:center; min-height:390px; padding:30px; }
.ai-design-page #aiDraftPreview.is-own-product-preview .ai-product-stage { width:min(100%,460px); max-width:460px; margin:0; }
.ai-design-page #aiDraftPreview.is-own-product-preview .ai-product-stage img { width:100%; max-height:390px; margin:0; }
.ai-design-page #aiProductPreviewStatus { max-width:460px; margin:14px auto 0; color:#635875; font-size:14px; text-align:center; }
.ai-design-page #aiDraftPreview.is-own-product-preview:has(#aiDraftProductImage[hidden]) #aiProductPreviewStatus:not([hidden]):not(:empty) { display:grid; place-items:center; min-height:180px; margin:0 auto; font-size:16px; font-weight:650; }
.ai-design-page #aiDraftPreview.is-own-product-preview:has(#aiDraftProductImage[hidden]) #aiProductPreviewStatus:not([hidden]):not(:empty)::before { content:''; width:42px; height:42px; margin-bottom:14px; border:4px solid #dacdf0; border-top-color:#ff762b; border-radius:50%; animation:mirts-preview-spin .8s linear infinite; }
@keyframes mirts-preview-spin { to { transform:rotate(360deg); } }
.ai-design-page .ai-regenerate-product-preview { display:block; width:max-content; margin:12px auto 20px; padding:10px 16px; border:1px solid #d4c3ee; border-radius:10px; background:#f1e9ff; color:#5422a7; font:inherit; font-weight:700; cursor:pointer; }
.ai-design-page .ai-regenerate-product-preview:hover,.ai-design-page .ai-regenerate-product-preview:focus-visible { background:#e6d8ff; outline:3px solid rgb(255 118 43 / 34%); outline-offset:2px; }
.ai-design-page #aiDraftPreview.is-own-product-preview > small { display:none; }
html[data-theme="dark"] .ai-design-page:not(.ai-dtf-studio-page) .ai-design-hero aside { background:#392452; border-color:#67458c; }
html[data-theme="dark"] .ai-design-page:not(.ai-dtf-studio-page) .ai-design-hero aside :is(b,span,small) { color:#eadcff; }

.ai-design-page .ai-generate-product-preview { grid-column:auto; align-self:end; width:100%; min-height:50px; margin:0 0 4px; }
.ai-design-page .ai-generate-product-preview[disabled] { cursor:not-allowed; opacity:.5; filter:saturate(.45); }
.ai-design-page .ai-generate-product-preview[hidden] { display:none; }

.ai-design-page .ai-draft-preview.is-slipper-template ~ .ai-regenerate-product-preview { display:none!important; }

/* Catalog cutouts stay large inside one clear preview card. */
.ai-design-page #aiDraftPreview.is-own-product-preview { min-height:400px; padding:22px 30px; gap:36px; }
.ai-design-page #aiDraftPreview.is-own-product-preview:has(#aiDraftProductImage:not([hidden])) #aiDraftProductImage { width:min(100%,540px); max-height:380px; margin:0; object-fit:contain; }
.ai-design-page #aiDraftPreview.is-own-product-preview .ai-product-preview-side { width:min(100%,300px); }
.ai-design-page #aiDraftPreview.is-own-product-preview .ai-product-preview-side #aiProductPreviewStatus { margin:0 0 14px; text-align:left; }
.ai-design-page #aiDraftPreview.is-own-product-preview #aiProductPreviewControls[hidden] { display:none; }
.ai-design-page #aiDraftPreview.is-own-product-preview #aiProductPreviewControls .ai-placement-picker { width:100%; }
.ai-design-page #aiDraftPreview.is-own-product-preview #aiProductPreviewControls .ai-placement-picker > span { display:block; margin-bottom:6px; font-weight:700; }
.ai-design-page #aiDraftPreview.is-own-product-preview #aiProductPreviewControls .ai-placement-picker details { margin:0; }
@media (max-width:700px) { .ai-design-page #aiDraftPreview.is-own-product-preview { align-items:stretch; flex-direction:column; gap:14px; } .ai-design-page #aiDraftPreview.is-own-product-preview:has(#aiDraftProductImage:not([hidden])) #aiDraftProductImage { width:min(100%,240px); margin:0 auto; } .ai-design-page #aiDraftPreview.is-own-product-preview .ai-product-preview-side { width:100%; } }


/* The card supplies the single pale studio surface; cutout files carry no photo background. */
.ai-design-page #aiDraftPreview.is-own-product-preview { background:var(--studio-soft); border-color:var(--studio-line); }
.ai-design-page #aiDraftPreview.is-own-product-preview .ai-product-preview-side { display:flex; flex-direction:column; justify-content:center; }
.ai-design-page #aiDraftPreview.is-own-product-preview .ai-product-preview-side #aiProductPreviewStatus:empty { display:none; }
.ai-design-page #aiDraftPreview.is-own-product-preview #aiProductPreviewControls { margin:0; }
.ai-design-page #aiDraftPreview.is-own-product-preview #aiDraftProductImage.is-mirrored-view { transform:scaleX(-1); }

/* Application controls follow the same labelled-field system as the main brief. */
.ai-design-page .ai-application-settings { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:end; }
.ai-design-page .ai-application-settings > label,.ai-design-page .ai-application-settings .ai-size-field > label { display:grid; gap:8px; min-width:0; color:var(--studio-ink,#25183b); font-weight:700; }
.ai-design-page .ai-application-settings:has(.ai-imprint-row > .ai-size-field):not(:has(.ai-imprint-row .ai-placement-picker)) .ai-imprint-row { display:contents; }
.ai-design-page .ai-application-settings :is(#aiTechnology,#aiSizePreset) { width:100%; height:50px; min-height:50px; padding:12px 42px 12px 16px; border:1px solid #ded2f0; border-radius:14px; background:#fff; color:#25183b; font:inherit; font-weight:400; }
.ai-design-page .ai-regenerate-product-preview[hidden] { display:none!important; }
@media(max-width:600px) { .ai-design-page .ai-application-settings { grid-template-columns:1fr; } }

/* Connection diagnostics stay in local logs, not in the customer-facing studio. */
.ai-design-page #aiStudioConnection { display:none!important; }


.ai-design-page .ai-production-fields > label:has(#aiProduct),
.ai-design-page .ai-production-fields > label:has(#aiProductDimensions) { align-self:start; display:grid; grid-template-rows:auto 50px; gap:6px; }
.ai-design-page .ai-production-fields > label:has(#aiProduct) > #aiProduct,
.ai-design-page .ai-production-fields > label:has(#aiProductDimensions) > #aiProductDimensions { height:50px; min-height:50px; margin:0; }
.ai-design-page .ai-scenario-testing { margin:0 0 8px; color:var(--studio-muted,#635875); font-size:13px; line-height:1.4; }

/* Test period: retain the future price but make the current free access unmistakable. */
.ai-design-page .ai-plan-original-price { color:var(--studio-ink,#25183b); text-decoration-line:line-through; text-decoration-color:#ff762b; text-decoration-thickness:2px; text-decoration-skip-ink:none; }
.ai-design-page .ai-plan-free { display:inline-block; margin-left:4px; padding:1px 5px; border-radius:5px; background:#fff0e5; color:#b84910; font-weight:800; }
.ai-design-page .ai-scenario-options button[aria-pressed="true"] .ai-plan-original-price { color:#fff; text-decoration-color:#ffbd89; }
.ai-design-page .ai-scenario-options button[aria-pressed="true"] .ai-plan-free { background:#ff762b; color:#2b163d; }

.ai-dtf-studio-page .ai-workspace-grid { align-items:start; }
.ai-dtf-studio-page .dtf-selection-preview { display:none; }
.ai-dtf-studio-page.is-dtf-selection-pending .ai-preview > :not(.ai-panel-heading):not(.dtf-selection-preview) { display:none!important; }
.ai-dtf-studio-page.is-dtf-selection-pending .dtf-selection-preview {
  display:grid;
  place-items:center;
  min-height:360px;
  border:1px dashed #d9caee;
  border-radius:18px;
  background:var(--paper);
  color:var(--muted);
  font-size:12px;
}

/* Four studio packages use one readable price stack and an 8/16/24 spacing rhythm. */
.ai-design-page .ai-scenario-options { grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; overflow:visible; }
.ai-design-page .ai-scenario-options button { display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:8px; min-width:0; padding:16px 8px; line-height:1.4; }
.ai-design-page .ai-scenario-options button > span { white-space:normal; }
.ai-design-page .ai-scenario-options .ai-plan-price-time { display:flex; flex-direction:column; align-items:center; gap:4px; width:100%; }
.ai-design-page .ai-scenario-options .ai-plan-price-duration { display:block; font-size:12px; line-height:1.5; }
.ai-design-page .ai-scenario-options .ai-plan-free { display:block; margin:0; padding:2px 8px; background:#f4e7d9; color:#78360e; }
.ai-design-page:not(.ai-dtf-studio-page) .ai-scenario-options button[aria-pressed="true"] .ai-plan-free { background:#fff1dd; color:#642b09!important; }
.ai-design-page .ai-scenario-options button > small { margin:0; font-size:13px; }
.ai-design-page .ai-preview .ai-preview-composer { display:grid; gap:16px; margin-top:24px; padding:16px; border:1px solid var(--studio-line,#ded3f1); border-radius:16px; background:var(--studio-soft,#f6f3fc); }
.ai-design-page .ai-preview-composer > label,.ai-design-page .ai-preview-composer .ai-reference-field { display:grid; gap:8px; min-width:0; margin:0; }
.ai-design-page .ai-preview-composer :is(input,select,textarea) { box-sizing:border-box; width:100%; margin:0; }
.ai-design-page .ai-preview-composer > :is(button,.button) { margin:0; }
html[data-theme="dark"] .ai-design-page .ai-scenario-options .ai-plan-free { background:#f4e7d9; color:#642b09; }
@media(max-width:700px) { .ai-design-page .ai-scenario-options { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:380px) { .ai-design-page .ai-scenario-options { grid-template-columns:1fr; } }

.ai-design-page .ai-plan-free { margin-left:0; }
html[data-theme="dark"] .ai-design-page .ai-scenario-options button:not([aria-pressed="true"]) .ai-plan-free { background:#54362d; color:#ffd8bd; }
html[data-theme="dark"] .ai-design-page .ai-scenario-options button:not([aria-pressed="true"]) .ai-plan-original-price { color:#f2e7f8; }
.ai-design-page .ai-preview .ai-preview-composer .ai-reference-field { margin-block:0; }
.ai-design-page .ai-preview .ai-preview-composer { row-gap:12px; }
