.ai-detail-page{max-width:1280px;margin:0 auto}.ai-detail-workspace{padding:30px;border:1px solid var(--border-default);border-radius:16px;background:var(--bg-surface)}.ai-detail-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;border-bottom:1px solid var(--border-default);padding-bottom:26px;margin-bottom:26px}.ai-detail-heading h1{margin:0 0 8px}.ai-detail-heading p{margin:0;color:var(--text-secondary)}.ai-detail-eyebrow{font-size:11px;font-weight:700;letter-spacing:.16em;color:var(--accent)!important;margin-bottom:10px!important}.ai-detail-step{white-space:nowrap;color:var(--text-secondary);font-size:13px}.ai-detail-step span{color:var(--accent);padding:0 5px}.ai-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,300px);gap:24px;align-items:start}.ai-detail-content{display:grid;gap:20px}.ai-detail-card{border:1px solid var(--border-default);border-radius:14px;padding:24px;background:var(--bg-surface)}.ai-detail-card-head{display:flex;align-items:flex-start;gap:12px}.ai-detail-card-head h2{margin:0;font-size:18px}.ai-detail-card-head p{margin:6px 0 0;color:var(--text-secondary);font-size:13px}.ai-detail-number{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:8px;background:var(--accent-soft);color:var(--accent);font-weight:700}.ai-detail-fields{margin-top:18px}.ai-detail-fields .draft-field{margin:13px 0;font-size:13px;font-weight:600}.ai-detail-fields .draft-field span{color:var(--accent);font-size:11px}.ai-detail-fields input,.ai-detail-fields textarea{font-size:14px;font-weight:400}.ai-detail-fields textarea{min-height:84px}.ai-detail-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.ai-detail-upload{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:20px}.ai-detail-upload input{position:absolute;width:1px;height:1px;opacity:0}.ai-detail-upload-button{display:inline-flex;padding:10px 16px;border:1px dashed var(--accent);border-radius:8px;color:var(--accent);font-size:13px;font-weight:700;cursor:pointer}.ai-detail-upload span,.ai-detail-muted{color:var(--text-secondary);font-size:12px;line-height:1.7}.ai-detail-references{display:flex;flex-wrap:wrap;gap:12px;margin:10px 0}.ai-detail-references figure{position:relative;width:105px;margin:0}.ai-detail-references img{width:105px;height:105px;object-fit:cover;border:1px solid var(--border-default);border-radius:8px}.ai-detail-references figcaption{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai-detail-references button{position:absolute;top:4px;right:4px;padding:0;width:25px;height:25px;border-radius:50%;background:var(--bg-surface);font-size:14px}.ai-detail-point{position:sticky;top:24px}.ai-detail-balance{display:flex;align-items:center;justify-content:space-between;margin:24px 0 16px;padding:16px;background:var(--bg-subtle);border-radius:10px;font-size:13px}.ai-detail-balance strong{font-size:22px}.ai-detail-availability{font-size:13px;color:var(--status-danger)}.ai-detail-primary{width:100%;margin-top:16px}.ai-detail-job{max-width:640px;margin:40px auto;text-align:center;padding:46px 30px}.ai-detail-job-icon{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 20px;border-radius:18px;background:var(--accent-soft);color:var(--accent);font-size:30px}.ai-detail-job h2{margin:0 0 12px}.ai-detail-job p{color:var(--text-secondary)}.ai-detail-progress{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:26px 0;padding:20px;background:var(--bg-subtle);border-radius:10px;text-align:left}.ai-detail-progress strong{white-space:nowrap}.ai-detail-job-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:26px}.ai-detail-job-actions a{color:var(--text-inverse)}.ai-detail-job-actions [hidden],.ai-detail-page [hidden]{display:none!important}@media(max-width:900px){.ai-detail-grid{grid-template-columns:1fr}.ai-detail-point{position:static}.ai-detail-heading{align-items:flex-start;flex-direction:column}}@media(max-width:640px){.ai-detail-workspace{padding:22px 18px}.ai-detail-row{grid-template-columns:1fr}.ai-detail-card{padding:18px}}
.ai-detail-page .draft-field{display:flex;flex-direction:column;gap:8px}.ai-detail-page .draft-field input,.ai-detail-page .draft-field textarea{padding:12px;width:100%;border:1px solid var(--border-default);border-radius:8px;background:var(--bg-surface);color:inherit}.ai-detail-page .draft-field textarea{resize:vertical}.ai-detail-fields .draft-field .ai-detail-label{color:var(--text-primary);font-size:13px}.ai-detail-page #pageError{padding:14px;background:var(--status-danger-soft);color:var(--status-danger);border-radius:8px}.ai-detail-page button:disabled{cursor:not-allowed;opacity:.55}.ai-detail-heading h1{font-size:28px}.ai-detail-step span{color:var(--text-secondary);padding:0}@media(min-width:881px) and (max-width:1350px){.ai-detail-workspace{padding:24px}.ai-detail-card{padding:20px}.ai-detail-grid{gap:18px}.ai-detail-heading{align-items:flex-start;flex-direction:column}}

.ai-detail-page input,.ai-detail-page textarea,.ai-detail-page select,.ai-detail-page button{font-family:inherit}

/* L1: 기존 우측 workspace 안에서만 적용하는 생성 진행 카드. */
.ai-detail-job{max-width:none;margin:24px 0 0;padding:0;text-align:left}
.ai-detail-job-icon{width:42px;height:42px;margin:0 0 16px;border-radius:12px;font-size:22px}
.ai-detail-job>h2{font-size:26px;line-height:1.4}.ai-detail-job>p{line-height:1.7}
.generation-studio{margin-top:28px;text-align:left}
.generation-product{display:flex;align-items:center;gap:12px;margin-bottom:20px;min-width:0}
.generation-product strong{overflow-wrap:anywhere;font-size:15px}
.generation-product-photo,.generation-product-placeholder{width:48px;height:48px;border-radius:12px;flex:0 0 48px;object-fit:cover;background:var(--bg-subtle)}
.generation-product-placeholder{display:grid;place-items:center;color:var(--accent);font-size:22px}
.generation-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(240px,1fr);gap:20px;align-items:start}
.generation-card{padding:26px;border:1px solid var(--border-default);border-radius:14px;background:var(--bg-surface);min-width:0}
.generation-topline{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px;color:var(--text-secondary)}
.generation-topline{flex-wrap:wrap}.generation-elapsed{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--text-primary)}
.generation-live-candidates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.generation-live-candidates figure{min-width:0;margin:0}.generation-live-candidates a{display:block;border:1px solid var(--border-default);border-radius:8px;overflow:hidden;background:var(--bg-subtle)}
.generation-live-candidates img{display:block;width:100%;height:160px;object-fit:contain}.generation-live-candidates figcaption{font-size:12px;line-height:1.6;overflow-wrap:anywhere;margin-top:6px;color:var(--text-secondary)}
.generation-live-candidates a:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.generation-percent{font-size:36px;font-weight:700;letter-spacing:-.03em;color:var(--text-primary);font-variant-numeric:tabular-nums}
.generation-track{height:9px;border-radius:20px;background:var(--bg-subtle);overflow:hidden;margin:17px 0 30px}
.generation-fill{height:100%;background:var(--accent);border-radius:20px}
.generation-current{font-size:21px;line-height:1.5;margin:0 0 8px}
.ai-detail-job .generation-description{margin:0 0 20px;font-size:14px;line-height:1.8}
.ai-detail-job .generation-count{color:var(--text-primary);font-weight:600;margin:0 0 10px}
.ai-detail-job .generation-estimate{font-size:12px;margin:0;line-height:1.7}
.ai-detail-job .generation-warning{border:1px solid var(--status-warning);border-radius:10px;padding:14px;color:var(--text-primary);font-size:13px;line-height:1.8}
.generation-assets-heading{font-size:13px;margin:28px 0 12px}
.generation-assets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.generation-asset{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--border-default);border-radius:10px;min-width:0}
.generation-asset img,.generation-asset-icon{width:40px;height:40px;border-radius:8px;object-fit:cover;flex:0 0 40px;background:var(--bg-subtle)}
.generation-asset-icon{display:grid;place-items:center;color:var(--text-secondary)}
.generation-asset strong,.generation-asset span:not(.generation-asset-icon){display:block;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.generation-asset span:not(.generation-asset-icon){color:var(--text-secondary)}
.generation-asset[data-asset-state=RUNNING]{border-color:var(--accent)}
.generation-asset[data-asset-state=RUNNING] .generation-asset-icon{color:var(--accent);animation:generation-pulse 1.8s ease-in-out infinite}
.generation-asset[data-asset-state=FAILED]{border-color:var(--status-warning)}
.generation-footer{margin-top:28px;padding-top:20px;border-top:1px solid var(--border-default)}
.ai-detail-job .generation-footer p{font-size:13px;line-height:1.7;margin:0 0 14px;color:var(--text-primary)}
.generation-footer .btn{white-space:normal;text-align:center;font-size:13px}
.generation-timeline-card>h3{margin:0 0 24px;font-size:15px}
.generation-timeline{list-style:none;padding:0;margin:0;display:grid;gap:0}
.generation-step{display:flex;align-items:flex-start;gap:13px;position:relative;padding-bottom:26px;min-width:0}
.generation-step:last-child{padding-bottom:0}
.generation-step:not(:last-child)::before{content:'';position:absolute;left:14px;top:30px;bottom:0;width:1px;background:var(--border-default)}
.generation-step-symbol{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;flex:0 0 29px;background:var(--bg-subtle);color:var(--text-secondary);font-size:13px}
.generation-step strong{display:block;font-size:14px;line-height:1.6}
.generation-step-state,.generation-copy-note{display:block;margin-top:3px;font-size:12px;line-height:1.7;color:var(--text-secondary)}
.generation-step[data-state=ACTIVE] .generation-step-symbol,.generation-step[data-state=COMPLETED] .generation-step-symbol{background:var(--accent-soft);color:var(--accent)}
.generation-step[data-state=ACTIVE] strong{color:var(--accent)}
.generation-step[data-state=WARNING] .generation-step-symbol{color:var(--status-warning)}
.generation-step[data-state=FAILED] .generation-step-symbol{color:var(--status-danger)}
.generation-studio[data-generation-state=RECONCILIATION] .generation-asset-icon{animation:none}
@keyframes generation-pulse{50%{opacity:.45}}
@media(max-width:1200px){.generation-grid{grid-template-columns:1fr}.generation-timeline{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}.generation-step:not(:last-child)::before{display:none}}
@media(max-width:640px){.generation-card{padding:20px}.generation-timeline,.generation-assets{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.generation-asset[data-asset-state=RUNNING] .generation-asset-icon{animation:none}}

/* Q1: 기존 생성 입력 카드 안의 서버 견적/분량 선택. */
.section-quantity h2{font-size:18px;margin:0 0 10px}.section-quantity p{font-size:12px;line-height:1.8;white-space:pre-line}
.section-choices{display:grid;gap:9px;margin:20px 0}.section-choices label{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:9px;border:1px solid var(--border-default);padding:12px;border-radius:10px;font-size:12px;cursor:pointer}
.section-choices label:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}.section-choices input{width:16px;margin:0}.section-choices strong{white-space:nowrap}.section-quantity>label{display:flex;justify-content:space-between;align-items:center;font-size:13px;gap:10px}.section-quantity>label input{width:80px;padding:8px;border:1px solid var(--border-default);border-radius:8px;background:var(--bg-surface);color:inherit}.point-confirmation p{white-space:pre-line}
.generation-result-summary{margin:24px 0}.generation-result-summary h3{font-size:19px;margin:0 0 14px}.generation-result-summary p{font-size:14px;line-height:1.8}.generation-result-summary ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 26px;padding-left:24px}.generation-result-summary li{padding:8px 0;line-height:1.7}.generation-result-summary li strong,.generation-result-summary li span{display:block;font-size:13px}.generation-result-summary li span{color:var(--text-secondary);margin-top:4px}@media(max-width:1100px){.generation-result-summary ol{grid-template-columns:1fr}}

.commerce-channel{grid-column:1 / -1;min-width:0}
.commerce-channel label{display:block;font-weight:600;margin-bottom:8px}
.commerce-channel select{width:100%;max-width:100%;padding:10px 12px;border:1px solid var(--border-color);border-radius:8px;background:var(--card-bg);color:inherit;font:inherit}
.commerce-channel p{margin:8px 0 0;line-height:1.6}

.commerce-channel #requestedCanvasWidth{display:block;width:100%;max-width:240px;box-sizing:border-box;padding:10px 12px;border:1px solid var(--border-default);border-radius:8px;background:var(--bg-surface);color:inherit;font:inherit}
.commerce-channel label[for="requestedCanvasWidth"]{margin-top:20px}

/* 자유형 설정도 기존 폼 토큰·터치 크기·키보드 포커스를 사용한다. */
#freeformControls{min-width:0;display:grid;gap:18px;color:var(--text-primary)}
#freeformControls>label{display:grid;gap:8px;font-size:14px;font-weight:600;min-width:0;color:var(--text-primary)}
#freeformControls select{width:100%;min-width:0;min-height:44px;box-sizing:border-box;padding:10px 12px;font:inherit;color:var(--text-primary);background:var(--bg-surface);border:1px solid var(--border-default);border-radius:8px}
#freeformControls select:focus-visible,#freeformControls input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#freeformControls p{margin:0;font-size:13px;line-height:1.8;color:var(--text-secondary);overflow-wrap:anywhere}
#freeformControls fieldset{min-width:0;margin:0;padding:12px 16px;border:1px solid var(--border-default);border-radius:10px}
#freeformControls legend{font-size:13px;font-weight:600;padding:0 6px;color:var(--text-primary)}
#freeformControls fieldset label{display:flex;align-items:center;gap:10px;min-height:44px;overflow-wrap:anywhere;font-size:13px;cursor:pointer;color:var(--text-primary)}
#freeformControls fieldset input{flex:0 0 18px;width:18px;height:18px;accent-color:var(--accent)}
#freeformControls #freeformFaceWarning{padding:14px 16px;border:1px solid var(--border-default);border-radius:10px;background:var(--bg-subtle)}
#freeformControls #freeformFixedPrice{color:var(--text-primary);font-weight:700}

/* 채널과 독립적인 단일 스타일 선택. 4×3 그리드 + 간략 타이틀 + (?) 설명 토글. */
.creative-style-selector{min-width:0;margin:0}
.creative-style-selector legend{font-size:15px;font-weight:700;padding:0 8px}
.creative-style-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:start}
.creative-style-choice{display:flex;flex-direction:column;gap:0;padding:12px 13px;border:1px solid var(--border-default);border-radius:10px;cursor:pointer;min-width:0;background:var(--bg-surface);transition:border-color .15s ease,background-color .15s ease}
.creative-style-choice__head{display:flex;align-items:center;gap:8px;width:100%;min-width:0}
.creative-style-choice:hover{border-color:var(--accent)}
.creative-style-choice:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
.creative-style-choice:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.creative-style-choice input{flex:0 0 16px;width:16px;height:16px;margin:0;accent-color:var(--accent)}
.creative-style-choice strong,.creative-style-choice small{display:block;overflow-wrap:anywhere}
.creative-style-choice strong{flex:1 1 auto;min-width:0;font-size:13px;line-height:1.35;color:var(--text-primary);word-break:keep-all}
.creative-style-help-toggle{flex:0 0 22px;width:22px;height:22px;padding:0;border:1px solid var(--border-default);border-radius:50%;background:var(--bg-subtle);color:var(--text-secondary);font-size:12px;font-weight:700;line-height:1;display:inline-grid;place-items:center;cursor:pointer;transition:all .15s ease}
.creative-style-help-toggle:hover,.creative-style-help-toggle[aria-expanded="true"]{border-color:var(--accent);background:var(--accent);color:var(--text-inverse,#fff)}
.creative-style-choice small{font-size:12px;line-height:1.55;color:var(--text-secondary);margin-top:8px;padding-top:8px;border-top:1px dashed var(--border-default)}
.creative-style-choice:has(input:disabled){cursor:default;opacity:.7}
@media(max-width:960px){.creative-style-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.creative-style-choices{grid-template-columns:1fr}}

.ai-creator-notice{padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--surface-soft);margin:16px 0;color:var(--ink);font-size:13px;line-height:1.65}.ai-creator-notice h3{font-size:14px;margin:0 0 8px}.ai-creator-notice p{margin:6px 0}.ai-quote-notice{font-size:13px;color:var(--ink-soft)}

.reference-url-input p { color:var(--text-secondary); line-height:1.6; }
.reference-url-row { display:flex; gap:8px; margin:10px 0; }
.reference-url-row input { min-width:0; flex:1; padding:10px; border:1px solid var(--border-default); border-radius:8px; }
.reference-url-input button { padding:8px 12px; border:1px solid var(--border-default); border-radius:8px; background:var(--bg-surface);color:var(--text-primary); cursor:pointer; }
@media(max-width:600px){.reference-url-row{flex-wrap:wrap}.reference-url-row input{flex-basis:100%}}

/* 카테고리와 참고 안내는 좁은 화면에서도 동일한 입력 흐름을 유지한다. */
.canonical-category-selector select{width:100%;max-width:100%;min-height:44px}
.reference-creative-notice{white-space:pre-line;font-size:.875rem;line-height:1.7;color:var(--text-muted);overflow-wrap:anywhere}

/* 단계 비율과 처리 중 애니메이션을 구분한다. 애니메이션으로 완료율을 올리지 않는다. */
.generation-activity{display:flex;align-items:center;gap:10px;margin:0 0 8px;color:var(--accent);font-size:14px}
.generation-spinner{display:inline-block;width:20px;height:20px;flex:0 0 20px;box-sizing:border-box;border:2px solid var(--border-default);border-top-color:var(--accent);border-radius:50%;animation:generation-spin .85s linear infinite}
.generation-spinner[hidden]{display:none}
.generation-timing{font-size:12px;color:var(--text-secondary);font-variant-numeric:tabular-nums;margin:0 0 20px;line-height:1.8}
.generation-track{position:relative}
.generation-track[data-active=true]::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,var(--accent-soft),transparent);animation:generation-sweep 2s ease-in-out infinite}
.generation-image-track{height:5px;overflow:hidden;border-radius:4px;background:var(--bg-subtle);margin:14px 0}
.generation-image-track[hidden]{display:none}
.generation-image-fill{height:100%;background:var(--accent);border-radius:4px}
.generation-image-track[data-indeterminate=true] .generation-image-fill{width:30%;animation:generation-sweep 2s ease-in-out infinite}
.generation-assets-pending{display:flex;align-items:center;gap:12px;padding:18px;border:1px dashed var(--border-default);border-radius:10px;font-size:13px;color:var(--text-secondary);grid-column:1/-1}
@keyframes generation-spin{to{transform:rotate(360deg)}}
@keyframes generation-sweep{from{transform:translateX(-100%)}to{transform:translateX(350%)}}
@media(prefers-reduced-motion:reduce){.generation-spinner,.generation-image-fill,.generation-track::after{animation:none!important}}

/* C4.5 guided creator */
.c45-progress{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:0 0 24px}
.c45-progress button{min-width:0;padding:10px 5px;border:1px solid var(--border-default);border-radius:9px;background:var(--bg-surface);color:var(--text-secondary);font-size:12px;cursor:pointer}
.c45-progress button.is-current{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);font-weight:700}
.c45-progress button:focus-visible,.c45-category:focus-visible,.c45-warning button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.c45-content{max-width:820px;margin:auto}.c45-step{display:grid;gap:16px}.c45-step>h2{margin:0;font-size:25px}.c45-step-help,.c45-hint{margin:0;color:var(--text-secondary);font-size:14px;line-height:1.7}
.c45-step>.ai-detail-card{width:100%;min-width:0}.c45-step .ai-detail-point{position:static}.c45-step .ai-detail-fields{display:grid;gap:10px}.c45-step .draft-field{display:flex;flex-direction:column;gap:8px;margin:0}
.c45-step .ai-detail-number{display:none}
.c45-step .draft-field input,.c45-step .draft-field textarea,.c45-question input,.c45-question textarea,.c45-question select{width:100%;padding:11px;border:1px solid var(--border-default);border-radius:8px;background:var(--bg-surface);color:var(--text-primary);font:inherit;box-sizing:border-box}
.c45-step .ai-detail-row{display:contents}.c45-step .canonical-category-selector>label{display:none}.c45-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.c45-category{padding:12px;border:1px solid var(--border-default);border-radius:9px;background:var(--bg-surface);color:var(--text-primary);text-align:left;cursor:pointer}.c45-category[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft);font-weight:700}
.c45-question{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:8px;position:relative;padding:14px 0;border-bottom:1px solid var(--border-default)}.c45-question label{display:grid;gap:6px}.c45-question label strong{font-size:14px}.c45-question label small{color:var(--text-secondary);font-size:12px}.c45-question .c45-importance{grid-column:2;grid-row:1;align-self:start;justify-self:end;color:var(--text-secondary);font-size:11px}.c45-question>select{grid-column:2;grid-row:1;align-self:end;margin-top:25px}
.c45-navigation{max-width:820px;margin:22px auto 0;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.c45-navigation .c45-error{flex-basis:100%;color:var(--status-danger);font-size:13px;margin:0}.c45-navigation button:nth-child(2){margin-right:auto}
.c45-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:0}.c45-summary dt{font-size:12px;color:var(--text-secondary)}.c45-summary dd{margin:3px 0 0;font-weight:700;overflow-wrap:anywhere}.c45-warning{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px;margin-top:10px;border:1px solid var(--status-warning);border-radius:9px;font-size:13px}.c45-warning span{flex:1 1 220px}.c45-warning button{padding:8px;border:1px solid var(--border-default);border-radius:7px;background:var(--bg-surface);cursor:pointer}.c45-quote{font-size:18px;font-weight:700;margin:18px 0 0}
.ai-detail-references figure{width:130px}.ai-detail-references .c45-primary-image{position:static;width:100%;height:auto;padding:5px;margin-top:5px;border:1px solid var(--border-default);border-radius:6px;background:var(--bg-surface);font-size:11px;color:var(--text-primary)}.ai-detail-references .c45-primary-image:disabled{border-color:var(--accent);color:var(--accent);opacity:1}.ai-detail-references .c45-primary-image:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:680px){.c45-progress{display:flex;overflow-x:auto}.c45-progress button{flex:0 0 110px}.c45-categories,.c45-summary{grid-template-columns:1fr}.c45-step>h2{font-size:21px}.c45-navigation button{flex:1}.c45-question{grid-template-columns:1fr}.c45-question .c45-importance,.c45-question>select{grid-column:1;grid-row:auto;margin:0;justify-self:stretch}}

/* 자유형 생성 전체 흐름: 기존 Picre 색상·글꼴을 유지하고 자료/설정을 나눠 배치한다. */
.ai-detail-page{color:var(--text-primary)}
.ai-detail-heading h1{font-size:30px;line-height:1.45;letter-spacing:-.035em;color:var(--text-primary)}
.ai-detail-heading>div:first-child{max-width:660px}.ai-detail-heading p{line-height:1.8}
.c45-progress{gap:0;border-bottom:1px solid var(--border-default);margin-bottom:34px}
.c45-progress button{min-height:56px;padding:12px 6px;border:0;border-bottom:3px solid transparent;border-radius:0;font-size:13px;background:transparent;white-space:normal}
.c45-progress button.is-current{background:transparent;border-bottom-color:var(--accent)}
.c45-progress button.is-complete{color:var(--text-primary);border-bottom-color:var(--border-default)}
.c45-content{max-width:1000px}.c45-step{gap:22px;min-width:0}
.c45-step-heading{grid-column:1/-1;max-width:720px;margin:0 0 2px}
.c45-step-heading h2{margin:6px 0 12px;font-size:27px;line-height:1.5;letter-spacing:-.025em;color:var(--text-primary)}
.c45-step-heading h2:focus{outline:none}.c45-step-position{font-size:12px;font-weight:600;color:var(--text-secondary);margin:0}
.c45-step-help{font-size:14px;line-height:1.9}.c45-step .ai-detail-card{box-sizing:border-box;min-width:0;padding:24px;border-radius:12px}
.c45-step h2,.c45-step h3,.c45-question strong{color:var(--text-primary)}
.c45-step .ai-detail-upload{padding:22px 16px;border:1px dashed var(--border-default);background:var(--bg-subtle);border-radius:8px;justify-content:center;text-align:center}
.c45-step .ai-detail-upload-button{border-style:solid;background:var(--bg-surface);min-height:44px;box-sizing:border-box;align-items:center}
.c45-step .ai-detail-upload:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.c45-step .ai-detail-upload>span{width:100%}.c45-step .ai-detail-references{gap:14px;margin-top:20px}
.c45-step .ai-detail-references figure{width:calc(50% - 7px);max-width:180px}
.c45-step .ai-detail-references img{width:100%;height:150px;box-sizing:border-box;object-fit:contain;background:var(--bg-subtle)}
.c45-step .ai-detail-references figcaption{padding:6px 0;font-size:12px}
.c45-step .ai-detail-references figure>button:not(.c45-primary-image){min-width:44px;min-height:44px;border:1px solid var(--border-default)}
.c45-step .ai-detail-references .c45-primary-image{min-height:44px;margin-top:0;border-radius:6px;font-size:12px}
#freeformControls{grid-column:1/-1;gap:16px}
#freeformControls>fieldset{padding:0;border:0}
#freeformControls legend{padding:0;margin-bottom:14px;font-size:16px}
.freeform-mode-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#freeformControls .freeform-mode-choice{display:flex;align-items:flex-start;gap:12px;padding:18px;border:1px solid var(--border-default);border-radius:8px;min-width:0;background:var(--bg-surface)}
#freeformControls .freeform-mode-choice:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
#freeformControls .freeform-mode-choice:focus-within{outline:2px solid var(--accent);outline-offset:3px}
#freeformControls .freeform-mode-choice input{margin:3px 0 0;flex:0 0 18px}
.freeform-mode-choice strong,.freeform-mode-choice small{display:block;overflow-wrap:anywhere}
.freeform-mode-choice strong{font-size:15px;line-height:1.6}.freeform-mode-choice small{font-size:13px;line-height:1.8;font-weight:400;margin-top:6px;color:var(--text-secondary)}
#freeformFaceControls{display:grid;gap:18px;align-content:start;color:var(--text-primary)}
#freeformFaceControls h3,#freeformSectionControls h3{font-size:18px;line-height:1.7;margin:0}
#freeformFaceControls>label{display:grid;gap:8px;font-size:13px;font-weight:600}
#freeformFaceControls select{width:100%;min-width:0;min-height:44px;padding:10px 12px;box-sizing:border-box;font:inherit;background:var(--bg-surface);color:var(--text-primary);border:1px solid var(--border-default);border-radius:8px}
#freeformFaceControls fieldset{min-width:0;padding:0;margin:0;border:0}
#freeformFaceControls legend{font-size:13px;font-weight:600;margin-bottom:8px}
#freeformFaceControls p,#freeformSectionControls>p{font-size:13px;line-height:1.85;color:var(--text-secondary);margin:0}
.freeform-photo-list{display:grid;gap:8px;margin-top:14px}
.freeform-photo-list label{display:grid;grid-template-columns:18px 64px minmax(0,1fr);align-items:center;gap:12px;padding:9px;border:1px solid var(--border-default);border-radius:8px;cursor:pointer;min-width:0}
.freeform-photo-list label:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
.freeform-photo-list label:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.freeform-photo-list img{width:64px;height:72px;object-fit:contain;background:var(--bg-subtle);border-radius:4px}
.freeform-photo-list span{font-size:12px;overflow-wrap:anywhere}.freeform-photo-list input{width:18px;height:18px;margin:0;accent-color:var(--accent)}
#freeformFaceWarning,.c45-review-note{padding:14px 16px;border-left:3px solid var(--border-default);background:var(--bg-subtle);font-size:13px;line-height:1.85;color:var(--text-secondary);margin:0}
#freeformSectionControls{display:grid;gap:16px;border-top:3px solid var(--accent)}
.freeform-section-details{display:grid;grid-template-columns:150px minmax(0,1fr);margin:0;border-top:1px solid var(--border-default)}
.freeform-section-details dt,.freeform-section-details dd{font-size:14px;line-height:1.8;padding:14px 0;margin:0;border-bottom:1px solid var(--border-default)}
.freeform-section-details dt{font-weight:600}.freeform-section-details dd{color:var(--text-secondary)}
#freeformFixedPrice{font-weight:700;color:var(--text-primary)!important;font-size:15px!important}
.c45-change-mode{justify-self:start;color:var(--accent);padding:10px 0;min-height:44px;border:0;background:transparent;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.c45-step select,.c45-step button{font:inherit}.c45-step select{background:var(--bg-surface);color:var(--text-primary);border-color:var(--border-default)}
.c45-step input:focus-visible,.c45-step textarea:focus-visible,.c45-step select:focus-visible,.c45-step button:focus-visible,.c45-review-inputs summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.c45-step .commerce-channel p{font-size:13px;line-height:1.8}
.c45-step .c45-category{min-height:52px;font-size:14px}.c45-question>select{font-size:13px}
.c45-step .reference-url-input button{min-height:44px;background:var(--bg-surface);color:var(--text-primary);border-color:var(--border-default)}
.c45-step .reference-url-row input{background:var(--bg-surface);color:var(--text-primary);border-color:var(--border-default)}
.c45-step .reference-creative-notice{color:var(--text-secondary)}
.c45-review-photos{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}
.c45-review-photos img{width:80px;height:92px;object-fit:contain;background:var(--bg-subtle);border:1px solid var(--border-default);border-radius:6px}
.c45-summary{gap:8px 24px}.c45-summary dt{border-top:1px solid var(--border-default);padding-top:12px;font-size:13px}.c45-summary dd{font-size:14px;line-height:1.8;margin:0 0 10px}
.c45-review-edits{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
.c45-review-edits button{min-height:44px;border:1px solid var(--border-default);border-radius:6px;background:var(--bg-surface);color:var(--text-primary);padding:8px 12px;font-size:12px}
.c45-review-inputs{border-block:1px solid var(--border-default);padding:16px 0;margin:18px 0;font-size:13px}
.c45-review-inputs summary{cursor:pointer;min-height:26px}.c45-review-inputs p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;color:var(--text-secondary)}
.c45-navigation{max-width:1000px;border-top:1px solid var(--border-default);padding-top:22px;margin-top:30px}
.c45-navigation button{min-height:44px}.ai-detail-page .ai-creator-notice{background:var(--bg-subtle);color:var(--text-primary);border-color:var(--border-default)}
@media(min-width:1000px){.c45-step[data-wizard-step="1"].is-freeform{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.c45-step[data-wizard-step="4"]{grid-template-columns:1fr 1fr}.c45-step[data-wizard-step="4"]>#freeformSectionControls,.c45-step[data-wizard-step="4"]>.section-quantity,.c45-step[data-wizard-step="4"]>.creative-style-selector{grid-column:1/-1}.c45-step[data-wizard-step="4"]>.commerce-channel{grid-column:1/-1}}
@media(max-width:680px){.c45-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;overflow:visible;margin-bottom:24px}.c45-progress button{font-size:11px;padding:8px 3px;min-height:48px}.freeform-mode-choices{grid-template-columns:1fr}.c45-step-heading h2{font-size:22px}.c45-step .ai-detail-card{padding:18px}.freeform-section-details{grid-template-columns:1fr}.freeform-section-details dt{border-bottom:0;padding-bottom:0}.freeform-section-details dd{padding-top:5px}.c45-review-edits button{flex:1 1 130px}.c45-step .ai-detail-references figure{max-width:none}}
.c45-navigation>.btn{width:auto;flex:0 0 auto}.c45-summary{grid-template-columns:minmax(140px,180px) minmax(0,1fr)}
.c45-summary dd{padding-top:12px;border-top:1px solid var(--border-default)}
@media(max-width:680px){.c45-navigation>.btn{flex:1 1 auto}.c45-summary{grid-template-columns:1fr}.c45-summary dd{padding-top:0;border-top:0}}

/* 진행 안내와 작업 소유 원본을 나란히 보여준다. */
.generation-job-intro{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:center;margin-bottom:24px}
.generation-job-intro[data-has-original=true]{grid-template-columns:minmax(0,1fr) 200px}
.generation-job-intro__copy{min-width:0}
.generation-job-intro .ai-detail-job-icon{margin-left:0}
.generation-original{margin:0;min-width:0;text-align:center}
.generation-original img{display:block;width:100%;height:200px;object-fit:contain;background:#fff;border:1px solid var(--border-default);border-radius:8px}
.generation-original figcaption{margin-top:8px;font-size:13px;line-height:1.5;color:var(--text-secondary)}
.generation-original__thumbs{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:8px}
.generation-original__thumb{width:42px;height:42px;padding:2px;border-radius:6px;border:1px solid var(--border-default);background:var(--surface);cursor:pointer;overflow:hidden}
.generation-original__thumb.is-active{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.generation-original__thumbs .generation-original__thumb img{width:100%;height:36px;object-fit:cover;border:0;border-radius:4px}
@media(max-width:600px){.generation-job-intro[data-has-original=true]{grid-template-columns:minmax(0,1fr)}.generation-original{width:160px;justify-self:start}.generation-original img{height:160px}}

/* 완료 후 화면 상단에서 새 작업을 시작한다. */
.ai-detail-heading .ai-detail-heading-new{width:auto;min-height:44px;flex:none;align-self:flex-start}
.ai-detail-heading-new:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* 페이지 출력 언어는 화면 언어와 별도로 선택한다. */
.detail-output-language label{display:flex;flex-direction:column;gap:8px;font-weight:600}
.detail-output-language select{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--border-default);border-radius:8px;background:var(--bg-surface);color:var(--text-primary);font:inherit}
.detail-output-language p{margin:8px 0 0;color:var(--text-secondary);font-size:13px;line-height:1.5}

/* 생성 중에는 공식 Picre 로고를 표시한다. 완료·오류 기호는 유지한다. */
#jobPanel:has(#jobProgress[data-generation-state="RUNNING"]) #jobIcon{font-size:0;background:transparent url("/assets/logo/header-icon-96.png") center/42px 42px no-repeat}

/* 백그라운드 연속 생성: 상단 진행 중 · 확인 대기 작업 탭 바 */
.picre-next-queue-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;margin:-10px 0 24px;border:1px solid var(--border-default);border-radius:12px;background:var(--bg-subtle)}
.picre-next-queue-bar__title{font-size:12px;font-weight:700;color:var(--text-secondary);white-space:nowrap}
.picre-next-queue-bar__tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:1;min-width:0}
.picre-next-queue-item{display:inline-flex;align-items:center;border:1px solid var(--border-default);border-radius:999px;background:var(--bg-surface);overflow:hidden;max-width:280px}
.picre-next-queue-item.is-active{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 1px var(--accent)}
.picre-next-queue-tab{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border:0;background:transparent;color:var(--text-primary);font:inherit;font-size:13px;font-weight:600;cursor:pointer;min-width:0;max-width:250px}
.picre-next-queue-tab--new{border:1px dashed var(--accent);border-radius:999px;background:var(--bg-surface);color:var(--accent);padding:7px 14px}
.picre-next-queue-tab--new.is-active{border-style:solid;background:var(--accent-soft);font-weight:700}
.picre-next-queue-badge{display:inline-flex;align-items:center;padding:2px 7px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap;background:var(--bg-subtle);color:var(--text-secondary)}
.picre-next-queue-badge.is-running{background:var(--accent-soft);color:var(--accent);animation:generation-pulse 1.8s ease-in-out infinite}
.picre-next-queue-badge.is-ready{background:#dcfce7;color:#15803d}
.picre-next-queue-badge.is-failed{background:var(--status-danger-soft,#fee2e2);color:var(--status-danger,#b91c1c)}
.picre-next-queue-badge.is-reconciling{background:#fef3c7;color:#b45309}
.picre-next-queue-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.picre-next-queue-dismiss{display:grid;place-items:center;width:24px;height:24px;margin-right:4px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--text-secondary);font-size:14px;cursor:pointer}
.picre-next-queue-dismiss:hover{background:var(--bg-subtle);color:var(--text-primary)}
.picre-next-queue-tab:focus-visible,.picre-next-queue-dismiss:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
