.production-view { --production-inset-top:clamp(20px,3vw,42px); --production-inset-inline:clamp(20px,3vw,42px); position:relative; box-sizing:border-box; width:100%; height:100%; min-height:0; overflow:hidden; background-color:var(--bg-main); background-image:var(--app-canvas-background); background-size:var(--app-canvas-size); background-attachment:fixed; color:var(--text-main); font-family:var(--font-family); }
.production-view :is(button,select,input,textarea) { font-family:var(--font-family); }
.production-scroll { box-sizing:border-box; width:100%; height:100%; min-height:0; overflow-x:hidden; overflow-y:auto; padding:var(--production-inset-top) var(--production-inset-inline); }
body.app-mode-production .main-container { --app-left-rail-width:0px; }
body.app-mode-production :is(.controls-panel,#left-panel-toggle) { display:none !important; }
.production-icon { display:inline-block; width:20px; height:20px; flex:none; background:currentColor; -webkit-mask:var(--production-icon) center/contain no-repeat; mask:var(--production-icon) center/contain no-repeat; }
.production-icon--user { --production-icon:url('../../../img/production-icons/user.svg'); }
.production-icon--car { --production-icon:url('../../../img/production-icons/car.svg'); }
.production-icon--package { --production-icon:url('../../../img/production-icons/package.svg'); }
.production-icon--map-pin { --production-icon:url('../../../img/production-icons/map-pin.svg'); }
.production-icon--template { --production-icon:url('../../../img/production-icons/template.svg'); }
.production-icon--face-id { --production-icon:url('../../../img/production-icons/face-id.svg'); }
.production-icon--shirt { --production-icon:url('../../../img/production-icons/shirt.svg'); }
.production-icon--cube { --production-icon:url('../../../img/production-icons/cube.svg'); }
.production-icon--camera { --production-icon:url('../../../img/production-icons/camera.svg'); }
.production-icon--folder { --production-icon:url('../../../img/production-icons/folder.svg'); }
.production-icon--upload { --production-icon:url('../../../img/production-icons/upload.svg'); }
.production-icon--pencil { --production-icon:url('../../../img/production-icons/pencil.svg'); }
.production-icon--x { --production-icon:url('../../../img/production-icons/x.svg'); }
.production-icon--plus { --production-icon:url('../../../img/production-icons/plus.svg'); }
.production-icon--check { --production-icon:url('../../../img/production-icons/check.svg'); }
.production-icon--photo { --production-icon:url('../../../img/production-icons/photo.svg'); }
.production-icon--chevron-down { --production-icon:url('../../../img/production-icons/chevron-down.svg'); }
.production-icon--alert-circle { --production-icon:url('../../../img/production-icons/alert-circle.svg'); }
.production-icon--search { --production-icon:url('../../../img/production-icons/search.svg'); }
.production-toolbar p { margin:0; color:var(--text-secondary); font-size:13px; line-height:1.5; }
.production-toolbar__actions > button { width:auto; min-height:44px; margin:0; padding-inline:16px; white-space:nowrap; }
.production-layout { width:100%; max-width:1360px; margin:auto; }
.production-main { min-width:0; min-height:400px; padding:clamp(16px,2vw,24px); }
.production-hero { position:relative; display:flex; align-items:center; min-height:170px; margin-bottom:24px; overflow:hidden; border-bottom:1px solid var(--border-color); background:transparent; }
.production-hero__copy { position:relative; z-index:1; max-width:570px; padding:20px 0; }
.production-hero__title { margin:10px 0 8px; font-family:'Bowler',sans-serif; font-size:clamp(22px,2.5vw,32px); line-height:1.12; }
.production-hero__description { max-width:470px; margin:0; color:var(--text-secondary); font-size:13px; line-height:1.5; }
.production-hero__art { position:absolute; top:50%; right:0; width:min(48%,540px); height:auto; max-height:210px; object-fit:contain; transform:translateY(-50%); pointer-events:none; }
#production-projects-drawer .creative-project-create .production-icon { width:17px; height:17px; }
#production-projects-drawer .creative-project-search .production-icon { width:17px; height:17px; }
#production-projects-drawer .creative-drawer-close .production-icon { width:16px; height:16px; }
.production-folders { flex:1; max-height:none; min-height:0; overscroll-behavior:contain; touch-action:pan-y; -webkit-overflow-scrolling:touch; }
.production-project-heading { min-width:0; max-width:55%; margin-left:auto; text-align:right; }
.production-project-heading h1 { margin:0; overflow-wrap:anywhere; color:var(--primary); font-family:'Bowler',sans-serif; font-size:20px; font-weight:500; line-height:1.2; text-shadow:0 0 20px rgba(var(--primary-rgb),.18); }
.production-section-label { color:var(--primary); font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.production-generator { display:grid; gap:16px; padding-bottom:28px; border-bottom:1px solid var(--border-color); }
.production-collection { padding-top:28px; }
.production-generator__heading { display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap:6px 16px; }
.production-generator__heading h2 { margin:4px 0 0; font-family:'Bowler',sans-serif; font-size:20px; font-weight:500; }
.production-presets { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.production-presets button { display:flex; align-items:center; justify-content:center; gap:9px; min-width:0; min-height:60px; padding:10px; border:1px solid var(--border-color); border-radius:var(--radius-control); background:var(--surface-control); color:var(--text-main); cursor:pointer; font:inherit; font-size:13px; }
.production-presets button .production-icon { color:var(--text-secondary); }
.production-presets button[aria-pressed="true"] { border-color:var(--primary); background:color-mix(in srgb,var(--primary) 10%,var(--surface-control)); color:var(--primary); }
.production-presets button[aria-pressed="true"] .production-icon,.production-presets button:hover .production-icon { color:var(--primary); }
.production-presets button:hover { border-color:var(--primary); }
.production-template-intro { display:flex; align-items:center; justify-content:space-between; gap:18px; min-width:0; padding:16px 18px; border:1px solid color-mix(in srgb,var(--primary) 24%,var(--border-color)); border-radius:var(--radius-control); background:color-mix(in srgb,var(--primary) 5%,var(--surface-control)); }
.production-template-intro[hidden] { display:none; }
.production-template-intro__copy { display:grid; gap:5px; min-width:0; }
.production-template-intro__eyebrow { display:inline-flex; align-items:center; gap:7px; color:var(--primary); font-size:11px; font-weight:700; }
.production-template-intro__eyebrow .production-icon { width:16px; height:16px; }
.production-template-intro__copy strong { color:var(--text-main); font-size:17px; line-height:1.3; }
.production-template-intro__copy > span:last-child { color:var(--text-secondary); font-size:12px; line-height:1.4; }
.production-template-intro__views { display:flex; flex:none; gap:6px; }
.production-template-intro__views > span { display:grid; place-items:center; gap:5px; min-width:70px; min-height:60px; padding:7px; border:1px solid var(--border-color); border-radius:var(--radius-control); background:var(--surface-panel); color:var(--text-secondary); font-size:11px; white-space:nowrap; }
.production-template-intro__views .production-icon { width:26px; height:26px; background:var(--primary); }
.production-generator__work { --production-input-height:64px; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); align-items:start; gap:12px; }
.production-generator__model,.production-generator__references,.production-generator__setting { display:grid; min-width:0; gap:7px; color:var(--text-secondary); font-size:12px; line-height:18px; }
.production-generator__references { grid-column:span 2; }
.production-generator__reference-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; min-width:0; }
.production-generator__references:has(.production-clothing-reference[hidden]) .production-generator__reference-actions { grid-template-columns:1fr; }
.production-generator__reference,.production-clothing-reference { display:grid; min-width:0; gap:7px; }
.production-model-picker,.production-option-picker { min-width:0; }
.production-model-picker .dropdown-header,.production-option-picker .dropdown-header { box-sizing:border-box; width:100%; height:var(--production-input-height); gap:9px; padding:0 12px; border:1px solid var(--border-color); border-radius:var(--radius-control); background:var(--surface-control); color:var(--text-main); font:inherit; font-size:13px; font-weight:700; }
.production-model-picker .dropdown-header > img,.production-model-picker .dropdown-item > img { width:20px; height:20px; flex:none; object-fit:contain; }
.production-model-picker .dropdown-header > span:nth-child(2),.production-option-picker .dropdown-header > span:first-child { flex:1; min-width:0; overflow:hidden; text-align:left; text-overflow:ellipsis; white-space:nowrap; }
.production-model-picker .dropdown-header .production-icon,.production-option-picker .dropdown-header .production-icon { width:16px; height:16px; }
.production-model-picker .dropdown-list,.production-option-picker .dropdown-list { max-height:220px; }
:is(#production-model-picker,#production-ratio-picker,#production-resolution-picker).open .dropdown-list { max-height:min(220px,var(--production-menu-space,220px)); }
:is(#production-model-picker,#production-ratio-picker,#production-resolution-picker).open.open-up .dropdown-list { top:auto; bottom:calc(100% + 8px); }
.production-model-picker .dropdown-item,.production-option-picker .dropdown-item { width:100%; gap:10px; border:0; border-bottom:1px solid var(--border-color); background:transparent; font:inherit; font-size:13px; text-align:left; }
.production-model-picker .dropdown-item:last-child,.production-option-picker .dropdown-item:last-child { border-bottom:0; }
.production-model-picker .dropdown-item:hover,.production-option-picker .dropdown-item:hover { background:color-mix(in srgb,var(--primary) 6%,var(--surface-control)); }
.production-model-picker .dropdown-item.active,.production-option-picker .dropdown-item.active { background:color-mix(in srgb,var(--primary) 10%,var(--surface-control)); color:var(--primary); }
.production-model-picker .dropdown-item:disabled,.production-option-picker .dropdown-item:disabled { opacity:.5; cursor:default; }
.production-description { display:grid; gap:7px; color:var(--text-secondary); font-size:12px; }
.production-description textarea { box-sizing:border-box; width:100%; min-height:100px; padding:8px 0; resize:vertical; border:0; border-radius:0; background:transparent; color:var(--text-main); font:inherit; font-size:16px; line-height:1.45; }
.production-view .production-description textarea:focus-visible { box-shadow:none; }
.production-description-details { min-width:0; }
.production-description-details summary { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 12px; border:1px solid color-mix(in srgb,var(--primary) 36%,var(--border-color)); border-radius:var(--radius-control); background:color-mix(in srgb,var(--primary) 7%,var(--surface-control)); color:var(--text-main); cursor:pointer; font-size:13px; font-weight:700; list-style:none; }
.production-description-details summary:is(:hover,:focus-visible),.production-description-details[open] summary { border-color:var(--primary); background:color-mix(in srgb,var(--primary) 11%,var(--surface-control)); }
.production-description-details summary::-webkit-details-marker { display:none; }
.production-description-details summary .production-icon:first-child { color:var(--primary); }
.production-description-details summary .production-icon:last-child { width:16px; height:16px; transition:transform var(--motion-fast); }
.production-description-details[open] summary .production-icon:last-child { transform:rotate(180deg); }
.production-description-details__body { margin-top:10px; padding:14px; border:1px solid color-mix(in srgb,var(--border-color) 88%,transparent); border-radius:var(--radius-dialog); background:var(--surface-panel); box-shadow:var(--shadow-panel); backdrop-filter:blur(22px); }
.production-description-details__body:focus-within { border-color:var(--primary); box-shadow:var(--focus-ring); }
.production-clothing-reference[hidden] { display:none; }
.production-reference-pick { box-sizing:border-box; display:grid; grid-template-columns:20px minmax(0,1fr); grid-template-rows:auto auto; align-content:center; column-gap:8px; width:100%; height:var(--production-input-height); padding:7px 10px; border:1px solid var(--border-color); border-radius:var(--radius-control); background:var(--surface-control); color:var(--text-main); cursor:pointer; font:inherit; text-align:left; }
.production-reference-pick .production-icon { grid-row:1/3; align-self:center; color:var(--primary); }
.production-reference-pick span:not(.production-icon) { min-width:0; font-size:13px; font-weight:700; line-height:17px; }
.production-reference-pick small { min-width:0; color:var(--text-secondary); font-size:11px; line-height:14px; }
.production-reference-pick:hover,.production-model-picker .dropdown-header:hover,.production-option-picker .dropdown-header:hover { border-color:var(--primary); background:color-mix(in srgb,var(--primary) 9%,var(--surface-control)); }
.production-generator__setting select { box-sizing:border-box; width:100%; min-width:0; height:var(--production-input-height); }
#production-reference-list,#production-clothing-list { display:flex; flex-wrap:wrap; gap:8px; }
.production-reference-thumb { position:relative; width:72px; height:72px; flex:none; overflow:hidden; border:1px solid var(--border-color); border-radius:var(--radius-control); background:var(--bg-input); }
.production-reference-thumb img { display:block; width:100%; height:100%; object-fit:cover; }
.production-reference-thumb__fallback { display:none; position:absolute; inset:0; place-items:center; color:var(--text-secondary); font-size:22px; }
.production-reference-thumb__fallback .production-icon { width:24px; height:24px; }
.production-reference-thumb.is-unavailable img { display:none; }
.production-reference-thumb.is-unavailable .production-reference-thumb__fallback { display:grid; }
.production-reference-thumb button { position:absolute; top:3px; right:3px; display:grid; place-items:center; width:30px; height:30px; min-height:30px; padding:0; border:1px solid rgba(255,255,255,.25); border-radius:7px; background:rgba(0,0,0,.72); color:#fff; cursor:pointer; }
.production-reference-thumb button:hover { background:var(--primary); color:var(--bg-main); }
.production-reference-thumb button .production-icon { width:16px; height:16px; }
.production-generator__footer { display:flex; align-items:center; justify-content:flex-end; gap:14px; }
.production-generator__footer p { margin:0 auto 0 0; color:var(--text-secondary); font-size:12px; line-height:1.5; }
#production-price { display:inline-flex; align-items:center; gap:6px; color:var(--primary); font-size:13px; font-weight:700; white-space:nowrap; }
#production-price .creative-credit-hex { width:18px; height:18px; flex:none; }
#production-price .creative-credit-hex[hidden] { display:none; }
.production-generator__footer > button { width:auto; min-height:44px; margin:0; padding-inline:20px; }
.production-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:18px; }
.production-toolbar h2 { margin:0 0 4px; font-family:'Bowler',sans-serif; font-size:20px; font-weight:500; }
.production-toolbar .production-section-label { display:block; margin-bottom:5px; }
.production-toolbar__actions { display:flex; align-items:flex-end; gap:10px; }
.production-import { display:flex; align-items:center; gap:16px; min-width:0; margin-bottom:22px; padding:16px; border:1px solid color-mix(in srgb,var(--primary) 25%,var(--border-color)); border-radius:var(--radius-control); background:color-mix(in srgb,var(--primary) 5%,var(--surface-control)); }
.production-import > .production-icon { width:30px; height:30px; color:var(--primary); }
.production-import__copy { display:grid; gap:4px; min-width:0; margin-right:auto; }
.production-import__copy strong { font-size:14px; }
.production-import__copy p { margin:0; color:var(--text-secondary); font-size:12px; line-height:1.4; }
.production-import .production-kind-label,.production-import .production-toolbar__actions > button { width:170px; flex:0 1 170px; }
.production-kind-label,.production-filters label:not(.creative-project-search) { display:grid; gap:5px; color:var(--text-secondary); font-size:12px; }
.production-kind-label select { width:100%; }
.production-view select { box-sizing:border-box; min-height:44px; padding:0 10px; border:1px solid var(--border-color); border-radius:var(--radius-control); background:var(--surface-control); color:var(--text-main); font-size:13px; font-weight:700; }
.production-import .production-toolbar__actions :is(select,button) { box-sizing:border-box; height:44px; min-height:44px; }
.production-tabs.studio-references-tabs { width:max-content; max-width:100%; margin:0 0 14px; overflow-x:auto; }
.production-tabs button { display:inline-flex; flex:none; align-items:center; justify-content:center; gap:8px; padding-inline:16px; cursor:pointer; white-space:nowrap; }
.production-tabs button .production-icon { width:17px; height:17px; }
.production-tab-hint { margin:0 0 14px; color:var(--text-secondary); font-size:12px; line-height:1.5; }
.production-filters { display:flex; justify-content:space-between; align-items:end; gap:12px; margin-bottom:18px; }
.production-filters[hidden] { display:none; }
.production-filters .creative-project-search { width:min(300px,100%); margin:0; }
.production-filters .creative-project-search .production-icon { width:16px; height:16px; flex:none; }
.production-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); align-content:start; gap:14px; }
.production-card.creative-gallery-card { aspect-ratio:1; }
.production-card .creative-asset-open { position:absolute; inset:0; width:100%; height:100%; }
.production-card .creative-gallery-card__model .production-icon { width:20px; height:20px; color:var(--primary); }
.production-card__name { position:absolute; z-index:3; right:8px; bottom:60px; left:8px; display:block; width:max-content; max-width:calc(100% - 16px); overflow:hidden; padding:6px 9px; border:1px solid rgba(255,255,255,.14); border-radius:8px; background:rgba(20,20,22,.84); color:#fff; font-size:12px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; pointer-events:none; backdrop-filter:blur(8px); }
.production-view .production-card figcaption { width:max-content; max-width:calc(100% - 16px); min-height:46px; justify-content:flex-end; padding:5px; }
.production-card figcaption .creative-gallery-actions,.production-card figcaption .creative-asset-action-list { display:flex; align-items:center; gap:3px; }
.production-card figcaption :is(button,a) { min-height:36px; cursor:pointer; }
.production-card figcaption :is(button,a):is(:hover,:focus-visible) { background:rgba(var(--primary-rgb),.13); color:var(--primary); }
.production-card figcaption button:disabled { opacity:.65; cursor:default; }
.production-card figcaption .production-icon { width:17px; height:17px; }
.production-card--pending .creative-generation-placeholder { position:absolute; inset:0; width:100%; height:100%; max-height:none; border:0; border-radius:0; }
.production-card--pending .creative-generation-placeholder__logo { display:block; }
.production-card__failed { display:grid; height:100%; place-content:center; justify-items:center; gap:10px; color:var(--text-secondary); font-size:12px; }
.production-card__failed .production-icon { width:26px; height:26px; color:var(--primary); }
.production-empty { grid-column:1/-1; padding:32px 12px; color:var(--text-secondary); text-align:center; font-size:13px; line-height:1.5; }
.production-more { display:block; min-height:44px; margin:20px auto; padding:0 18px; border:1px solid var(--border-color); border-radius:var(--radius-control); background:var(--surface-control); color:var(--text-main); cursor:pointer; font-size:13px; font-weight:700; }
.production-more[hidden] { display:none; }
.production-view :is(button,select,input,textarea,summary):focus-visible { outline:0; box-shadow:var(--focus-ring); }
@media(max-width:1200px) { .production-generator__work { grid-template-columns:repeat(3,minmax(0,1fr)); } .production-generator__references { grid-column:1/-1; } }
@media(max-width:1100px) { .production-presets { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:900px) { .production-template-intro { align-items:flex-start; flex-direction:column; } .production-template-intro__views { max-width:100%; flex-wrap:wrap; } .production-import { flex-wrap:wrap; } .production-import__copy { flex:1 1 240px; } .production-import .production-toolbar__actions { width:100%; justify-content:flex-end; } }
@media(max-width:900px) { .production-hero__copy { max-width:53%; } .production-hero__art { width:55%; } }
@media(max-width:600px) { .production-view { --production-inset-top:16px; --production-inset-inline:12px; } .production-scroll { padding:var(--production-inset-top) var(--production-inset-inline) max(24px,env(safe-area-inset-bottom)); } .production-project-heading { max-width:100%; margin-left:0; text-align:left; } .production-toolbar { align-items:stretch; flex-direction:column; } .production-import { align-items:flex-start; } .production-import .production-toolbar__actions { flex-wrap:wrap; justify-content:stretch; } .production-import .production-kind-label,.production-import .production-toolbar__actions > button { flex:1 1 160px; } .production-generator__work { grid-template-columns:repeat(2,minmax(0,1fr)); } .production-generator__references,.production-generator__model { grid-column:1/-1; } .production-generator__reference-actions { grid-template-columns:1fr; } .production-generator__footer { flex-wrap:wrap; } .production-generator__footer p { flex-basis:100%; } .production-filters { align-items:stretch; flex-direction:column; } .production-filters .creative-project-search { width:100%; } .production-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; } }
@media(max-width:600px) { .production-hero { min-height:175px; margin-bottom:20px; } .production-hero__copy { max-width:100%; padding:20px 0; } .production-hero__title,.production-hero__description { max-width:78%; } .production-hero__description { font-size:12px; } .production-hero__art { right:-18%; width:78%; opacity:.3; } }
@media(max-width:600px) { .production-view .production-card figcaption { right:5px; bottom:5px; min-height:0; padding:3px; } .production-view .production-card figcaption :is(button,a) { width:30px; height:32px; min-height:32px; font-size:13px; } }
@media(max-width:380px) { .production-grid { grid-template-columns:1fr; } .production-toolbar__actions > button { width:100%; } }
@media(max-width:991px) {
    body.app-mode-production #production-view { flex:1 1 0; height:auto; min-height:0; }
    .production-scroll { -webkit-overflow-scrolling:touch; overscroll-behavior:contain; }
    .production-view select { font-size:16px; }
}
