/* Production extension of the approved Mist White design. */
.production .poster-layer{border-radius:var(--frame-radius,0);background:var(--layer-fill,transparent)}
.production .edit-layer,.production .edit-layer.active{overflow:visible;background:transparent!important;border-radius:0;display:block}
.production .layer-visual{position:absolute;inset:0;border-radius:var(--frame-radius,0);overflow:hidden;display:flex;align-items:center;justify-content:center;pointer-events:none}
.production .edit-layer.media .layer-visual{background:#253532}
.production .edit-layer.text .layer-visual{padding:calc(var(--text-padding,0px) + var(--frame-border,0px))}
.production .layer-text{display:block!important;font:inherit!important;color:inherit;line-height:1.5;white-space:pre-wrap;word-break:break-word;text-align:center;-webkit-text-stroke:var(--text-outline,0px) var(--text-outline-color,#000);paint-order:stroke fill}
.production .layer-border{position:absolute;inset:0;border:var(--frame-border,0px) solid var(--frame-color,#fff);border-radius:var(--frame-radius,0);pointer-events:none}
.production .edit-layer.media .layer-visual img,.production .edit-layer.media .layer-visual video{display:block;width:100%;height:100%;object-fit:var(--media-fit,cover);border-radius:0}
.production .prop-section{font-size:12px;font-weight:600;margin:22px 0 15px;border-top:1px solid var(--line);padding-top:18px}
.production .editor-props input[type=color]{width:100%;height:36px;padding:4px;cursor:pointer}
.production #layer-scale{width:100%;padding:0;accent-color:var(--accent)}.production #layer-scale-value{font-size:11px;color:var(--accent);display:block;text-align:right;margin-top:5px}
.production .layer-chooser{margin-top:22px}.preview-progress{width:100%;height:12px;accent-color:#287d6d;margin:24px 0}.production #preview-whole{color:#1c7568;border-color:#9dc6bc;background:#eff8f4}
.production #design-review{display:none}.production.white .side-nav{top:0}.production .product-head{position:sticky;top:0;z-index:15;background:#fffefbf5;backdrop-filter:blur(12px)}.service-status{font-size:11px;color:#43816e}.production .main-inner{padding-top:32px}.production .nav-item{font-size:13px}.production .editor-container{max-width:1700px}.production .editor-grid{grid-template-columns:245px minmax(260px,1fr) 240px}.production .editor-form,.production .editor-props{padding:20px}.production .editor-props{display:block}.production .editor-actions{display:flex;gap:8px;flex-wrap:wrap}.production .editor-form textarea{font-size:12px;line-height:1.65}.production .field label{font-size:11px}.production .field input,.production .field select,.production .field textarea{font-size:12px}.production .editor-form .upload-mini{font-size:11px}.upload-mini img{width:35px;height:45px;object-fit:cover;border-radius:4px}.production .edit-layer.active{overflow:hidden}.production .edit-layer video{pointer-events:none}.production .edit-layer.media{border:0}.production .edit-layer.media img,.production .edit-layer.media video{object-fit:var(--media-fit,cover)}.production .stage-panel{position:sticky;top:96px;min-height:650px}.production .edit-canvas{isolation:isolate}.production .size-handle{z-index:4}.helper-text{font-size:11px;color:var(--muted);line-height:1.8;margin-top:12px}.audio-settings{margin-top:24px;border-top:1px solid var(--line);padding-top:22px}.audio-settings h3{margin-bottom:20px}.audio-settings audio{width:100%;height:34px;margin-bottom:10px}.audio-settings input[type=range]{padding:0;accent-color:var(--accent);width:100%}.audio-settings .button-quiet{padding:5px 0 18px;font-size:11px}.production .mini-timeline span{font-size:9px;height:auto;line-height:1.5}.production .stage-bottom{font-size:11px}.production .stage-panel .helper-text{max-width:350px;text-align:center}.dialog-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:20px 0}.production dialog{max-height:90vh;overflow:auto;width:min(880px,94vw)}.asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:18px}.asset-card{min-width:0;text-align:left;background:white;border:1px solid var(--line);border-radius:8px;padding:10px;display:flex;flex-direction:column;gap:8px}.asset-card img{width:100%;height:150px;object-fit:cover;border-radius:5px;background:#eef1ec}.asset-card span{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.asset-card small{font-size:10px}.picker-grid{max-height:58vh;overflow:auto}.jobs-summary{display:flex;gap:25px;align-items:center;padding:20px 0;border-top:1px solid var(--line);margin-top:35px}.jobs-summary span{font-size:13px}.jobs-summary small{margin-left:auto}.job-list{display:flex;flex-direction:column;gap:14px}.job-card{display:flex;align-items:center;gap:22px;background:white;border:1px solid var(--line);border-radius:10px;padding:20px}.job-art{width:66px;height:90px;flex:none;background:#edf3ef;border-radius:5px;display:grid;place-items:center;overflow:hidden;color:var(--accent)}.job-art img{width:100%;height:100%;object-fit:cover}.job-info{flex:1;min-width:0}.job-heading{display:flex;align-items:center;gap:14px;margin-bottom:12px}.job-heading h3{font-size:14px}.status-badge{font-size:10px;padding:4px 8px;border-radius:4px;background:#f0f2ef;color:#657367;white-space:nowrap}.status-badge.done{background:#e4f3e9;color:#277353}.status-badge.running{background:#e7edf7;color:#396288}.status-badge.failed{background:#faece7;color:#b64436}.job-info progress{width:100%;height:7px;display:block;margin:13px 0 8px;accent-color:var(--accent)}.job-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:255px}.job-actions button{display:flex;gap:6px;align-items:center;font-size:11px}.job-actions a{font-size:11px;padding:11px 13px;border-radius:5px}.job-actions a:last-child:not(.button-main){color:var(--accent)}.job-error{margin-top:12px;font-size:11px;color:#a14435}.job-error pre{white-space:pre-wrap;word-break:break-word;max-height:150px;overflow:auto}.result-video{display:block;max-width:100%;width:auto;max-height:65vh;margin:20px auto;background:#111}.batch-rows{max-height:55vh;overflow:auto;padding-right:8px}.batch-row{padding:20px;margin-bottom:15px;border:1px solid var(--line);border-radius:6px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.batch-row-head{grid-column:1/-1;display:flex;align-items:center;gap:12px;margin-bottom:10px}.batch-row-head input{flex:1;min-width:0}.batch-row-head b{white-space:nowrap}.batch-row .field{margin:0}.batch-row textarea{height:65px}.batch-row .field select{width:100%}.batch-controls{border-top:1px solid var(--line);padding-top:20px;margin-top:15px}.resource-heading{font-size:19px;margin:30px 0 20px}.draft-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:15px}.draft-grid button{display:flex;flex-direction:column;text-align:left;gap:12px;padding:22px}.draft-grid b{font-size:13px}.library-note{background:#edf3ef;padding:17px 20px;font-size:12px;color:#4d6b5f;line-height:1.9;border-radius:6px;margin:20px 0}.audio-library{display:flex;flex-direction:column;gap:12px}.audio-library article{display:flex;align-items:center;gap:20px;padding:20px;background:white;border-radius:8px;border:1px solid var(--line)}.audio-library h3{margin-bottom:9px}.audio-symbol{width:48px;height:48px;display:grid;place-items:center;background:#edf3ef;color:var(--accent);border-radius:6px}.audio-library audio{margin-left:auto;max-width:40%;height:36px}.text-library{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:30px}.text-library article{padding:35px;background:white;border-radius:8px;border:1px solid var(--line)}.text-library p{font-size:12px;color:var(--muted);margin-top:20px}.engine-badge{font-size:11px;background:#eef2ec;color:#637259;padding:9px 12px;border-radius:5px}.production .ai-layout{align-items:start}.production .ai-panel h2{font-size:19px}.production .upload-zone{width:100%}.ai-assets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:220px;overflow:auto;margin-bottom:22px}.ai-asset{position:relative;border:1px solid var(--line);border-radius:5px;padding:6px;min-width:0;cursor:pointer;background:var(--bg)}.ai-asset.checked{border-color:var(--accent);background:var(--soft)}.ai-asset img{width:100%;height:70px;object-fit:cover;border-radius:3px}.ai-asset input{position:absolute;top:8px;left:8px;accent-color:var(--accent)}.ai-asset span{display:block;font-size:9px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:5px}.plan-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:15px 0}.plan-tabs button{font-size:11px;padding:8px 13px}.plan-tabs .active{background:var(--accent);color:white}.scene-editor{display:grid;grid-template-columns:1fr 1fr;gap:14px}.scene-card{border:1px solid var(--line);padding:12px;border-radius:6px;min-width:0}.scene-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;margin-bottom:10px}.scene-label span{color:var(--muted)}.scene-card>img{width:100%;height:110px;object-fit:cover;border-radius:4px;margin-bottom:12px}.scene-card .field{margin-bottom:10px}.scene-card .field label{font-size:10px}.scene-card select,.scene-card textarea,.scene-card input{padding:8px;font-size:11px}.scene-card textarea{height:65px}.plan-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.plan-actions button{font-size:11px}.story-empty{padding:90px 20px;text-align:center;color:var(--muted);line-height:1.9}.story-empty>.svg-icon{width:44px;height:44px;color:#9aafa4;margin-bottom:20px}.story-empty h3{font-size:13px}.story-empty p{font-size:12px;margin-top:17px}.production .ai-panel>.audio-settings{margin-bottom:25px}.production .ai-panel .audio-settings{display:grid;grid-template-columns:1fr 1fr;column-gap:18px}.production .ai-panel .audio-settings h3,.production .ai-panel .audio-preview{grid-column:1/-1}.production #notice{max-width:90vw;white-space:pre-wrap}.production .editor-props .rule{margin:20px 0}.production .stage-panel .edit-layer.text{line-height:1.5}.production .service-status{white-space:nowrap}
@media(max-width:1280px){.production .editor-grid{grid-template-columns:210px minmax(230px,1fr) 205px;gap:12px}.production .editor-form,.production .editor-props{padding:15px}.production .main-inner{padding-left:24px;padding-right:24px}.production .scene-editor{grid-template-columns:1fr}.production .job-card{gap:15px}.production .job-actions{max-width:180px}}
@media(max-width:980px){.production .editor-grid{grid-template-columns:210px minmax(220px,1fr)}.production .editor-props{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:20px}.production .editor-props h3{grid-column:1/-1}.production .audio-settings{grid-column:1/-1}.production .stage-panel{position:static}.production .editor-page-head{flex-wrap:wrap}.production .job-card{flex-wrap:wrap}.production .job-actions{max-width:100%;margin-left:80px}.production .service-status{display:none}}
@media(max-width:680px){.production.white .side-nav{top:0}.production .main-inner{padding:24px 15px}.production .editor-grid{display:flex}.production .editor-props{display:block}.production .stage-panel{min-height:550px}.production .editor-actions button{font-size:10px;padding:10px}.production .audio-library article{flex-wrap:wrap}.production .audio-library audio{max-width:100%;width:100%;margin-left:0}.production .text-library{grid-template-columns:1fr}.production .batch-row{grid-template-columns:1fr}.production .batch-row-head{flex-wrap:wrap}.production .job-art{width:45px;height:65px}.production .job-info{min-width:140px}.production .job-actions{margin-left:0}.production .jobs-summary{gap:12px;font-size:10px;flex-wrap:wrap}.production .jobs-summary small{margin-left:0}.production .job-heading{align-items:start;flex-direction:column;gap:7px}.production .ai-panel>.audio-settings{display:block}.production .scene-editor{grid-template-columns:1fr}.production .page-head{display:block}.production .engine-badge{display:inline-block;margin-top:16px}.production .ai-assets{grid-template-columns:1fr 1fr}.production .draft-grid{grid-template-columns:1fr}.production .asset-grid{grid-template-columns:1fr 1fr}.production .asset-card img{height:105px}}

/* Black & White Studio — application chrome only; video artwork keeps its own styles. */
.production.white {
  --bg:#f6f6f7; --surface:#fff; --surface-2:#ededf0; --ink:#171719;
  --muted:#68686f; --line:#dedee3; --accent:#2858e8; --on-accent:#fff;
  --soft:#edf1ff; --radius:10px; --ai:#7240d6;
  font-family:"Microsoft YaHei","Segoe UI",sans-serif; font-size:16px;
}
.production button,.production input,.production select,.production textarea {font-size:15px}
.production button {min-height:44px;padding:11px 16px}
.production input,.production select {min-height:46px}
.production input[type=checkbox] {min-height:0}
.production input[type=range] {min-height:24px}
.production :is(input,select,textarea):focus-visible {outline:3px solid #2858e82b;outline-offset:1px}
.production .svg-icon {width:22px;height:22px;stroke-width:1.8}
.production small {font-size:13px}
.production h3 {font-size:17px}
.production .subtext {font-size:16px;line-height:1.8}
.production.white .side-nav {width:232px;padding:32px 18px 24px;background:#161618;border:0;color:#fff;overflow-y:auto}
.production.white .wordmark {margin:0 12px 35px;color:#fff;font-size:26px;gap:12px}
.production .brand-symbol {width:40px;height:40px;flex:none;background:transparent;color:#fff;font-size:30px;border-radius:0}
.production .brand-symbol img {display:block;width:100%;height:100%;object-fit:contain}
.production .wordmark small {font-size:8px;letter-spacing:1.5px;white-space:nowrap;color:#bcbcc3;margin-top:7px}
.production .side-nav .nav-item {font-size:16px;min-height:50px;padding:13px 14px;color:#c4c4ca;gap:13px;border-radius:9px;margin-bottom:6px}
.production .side-nav .nav-item:hover {background:#29292e;color:#fff}
.production .side-nav .nav-item.active {background:#fff;color:#171719;font-weight:700}
.production .side-nav .nav-item small {font-size:13px;opacity:.7}
.production .nav-caption {font-size:12px;letter-spacing:1px;color:#8e8e98;margin:22px 14px 14px}
.production .side-note {font-size:13px;color:#9797a0;line-height:1.9}
.production .side-bottom {padding:28px 12px 0}
.production .side-bottom .profile {border-color:#36363d}
.production .profile div:last-child {font-size:14px}
.production .side-nav .profile small {font-size:11px;color:#a4a4ae}
.production .avatar {width:36px;height:36px;background:#ededf0;color:#242428;font-size:12px}
.production .side-nav .avatar {background:#323239;color:white}
.production.white .main-shell {margin-left:232px}
.production .product-head {height:78px;padding:0 36px;background:#ffffffed;font-size:14px}
.production .crumb svg {width:18px;height:18px}
.production .service-status {font-size:13px;color:#58585f}
.production.white .main-inner {padding:36px;max-width:1800px}
.production.white .page-head h1 {font-size:clamp(30px,2.5vw,42px);font-weight:750;letter-spacing:-1.4px;line-height:1.35}
.production .eyebrow {font-size:11px;letter-spacing:2px;color:#75757e;margin-bottom:14px}
.production .page-head {margin-bottom:32px;align-items:center}
.production .button-main {padding:13px 20px;border:1px solid var(--accent);background:var(--accent);color:white;font-size:15px;border-radius:10px;min-height:48px}
.production .button-main[data-page=ai],.production #ai-generate,.production #render-all-plans {background:var(--ai);border-color:var(--ai);color:#fff}
.production .button-quiet {font-size:14px}
.production .btn-icon {width:44px;height:44px;padding:10px}
.production .collection-strip {gap:16px}
.production .collection,.production .collection.travel,.production .collection.medical {height:160px;background:#fff;color:#171719;border:1px solid var(--line);padding:23px;border-radius:12px}
.production .collection h3 {font-size:24px;font-weight:650;margin:10px 0}
.production .collection .collection-copy small {font-size:11px;opacity:1;color:#74747c}
.production .collection p {font-size:13px;opacity:1;color:#68686f}
.production .collection .collection-arrow {font-size:13px;color:var(--accent);font-weight:600;margin-top:14px}
.production .collection .collection-arrow svg {width:18px;height:18px}
.production .collection-visual {right:20px;opacity:.8}
.production .collection-visual.back {right:55px;opacity:.35}
.production .collection .collection-copy {max-width:72%}
.production.white .library-label {margin-top:38px}
.production.white .library-label h2 {font-size:23px;font-weight:650}
.production .category-tabs {gap:26px;flex-wrap:wrap}
.production .category-tabs button {font-size:16px;padding:12px 0;min-height:46px}
.production .category-tabs button.active:after {background:#171719;height:3px}
.production .category-tabs small {font-size:12px}
.production .filters {flex-wrap:wrap;gap:16px}
.production .searchbox {padding:0 14px;min-height:46px}
.production .searchbox input {font-size:14px;width:220px}
.production .searchbox svg {width:20px;height:20px}
.production.white .library-grid {grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:30px 22px}
.production .tile-label {font-size:16px;margin-top:13px;line-height:1.5;align-items:start}
.production .tile-label button {min-height:32px;min-width:32px;justify-content:center;align-items:center;padding:4px;margin-top:-4px}
.production .tile-label svg {width:21px;height:21px}
.production .tile-meta,.production .tile-meta .mono {font-size:12px;line-height:1.7}
.production .poster .format {font-size:11px}
.production .poster .play {width:34px;height:34px}
.production .poster .play svg {width:14px;height:14px}
.production .poster-hit {min-height:0;padding:0}
.production .footer-note {font-size:12px;padding-top:35px}
.production .editor-page-head {flex-wrap:wrap;gap:20px}
.production .editor-page-head h1 {font-size:30px;font-weight:700}
.production .editor-actions {gap:10px}
.production .editor-actions button {font-size:15px;padding:12px 16px}
.production #preview-whole {background:#eaf6ef;color:#187443;border-color:#b3d9c2}
.production #preview-whole:hover {background:#dceddf}
.production .editor-grid {grid-template-columns:260px minmax(280px,1fr) 280px;gap:20px}
.production .editor-form,.production .editor-props {padding:22px;border-color:var(--line)}
.production .field label {font-size:14px;line-height:1.6;color:#62626a;margin-bottom:9px}
.production .field input,.production .field select,.production .field textarea,.production .editor-form textarea {font-size:15px;line-height:1.65;padding:11px 12px}
.production .editor-form textarea {height:92px}
.production .editor-form .upload-mini {font-size:14px;min-height:90px;padding:13px;gap:12px;text-align:left}
.production .upload-mini small {font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.production .upload-mini img {width:44px;height:58px}
.production .editor-props .form-grid {gap:12px}
.production .editor-props .field {min-width:0}
.production .prop-section {font-size:16px;margin:26px 0 18px;padding-top:23px}
.production .selected-label {font-size:14px;background:#eeeef1;color:#303036;padding:12px;line-height:1.6}
.production .editor-props input[type=color] {height:46px;padding:5px}
.production #layer-scale-value {font-size:13px}
.production .stage-panel {background:#ededf0;min-height:670px;top:100px;padding:20px}
.production .stage-top {font-size:13px;gap:12px}
.production .stage-top button {font-size:12px;min-height:36px;padding:6px 10px;background:white}
.production .stage-bottom,.production .helper-text {font-size:13px;line-height:1.85}
.production .mini-timeline span {font-size:11px;background:#fff;color:#4f4f57;border-color:#888891;padding:7px}
.production .audio-settings h3 {font-size:17px}
.production .audio-settings .button-quiet {font-size:14px;padding:8px 0 16px}
.production .ai-panel {padding:26px;border-radius:12px}
.production .ai-panel h2 {font-size:24px}
.production .ai-mode b {font-size:16px;font-weight:600}
.production .ai-mode small {font-size:12px}
.production .ai-mode.selected {background:#f1ecfc;border-color:var(--ai);color:#6432c3}
.production .ai-panel .button-main {font-size:16px}
.production .engine-badge,.production .library-note {font-size:13px;background:#eeeef1;color:#5e5e66;line-height:1.7}
.production .ai-asset span {font-size:12px}
.production .scene-label,.production .scene-card .field label {font-size:13px}
.production .plan-tabs button,.production .plan-actions button {font-size:14px}
.production .story-empty h3 {font-size:17px}
.production .story-empty p {font-size:14px}
.production .story-empty>.svg-icon {color:#8d8d96}
.production .resource-heading {font-size:24px}
.production .draft-grid b {font-size:16px}
.production .asset-card span {font-size:14px}
.production .asset-card small {font-size:12px}
.production .text-library p {font-size:14px}
.production .audio-symbol,.production .job-art {background:#eeeef1;color:#515159}
.production .jobs-summary span {font-size:15px}
.production .job-heading h3 {font-size:17px}
.production .status-badge {font-size:12px;padding:6px 10px}
.production .job-actions button,.production .job-actions a {font-size:14px}
.production .job-error {font-size:13px}
.production dialog {padding:32px;border-radius:14px}
.production dialog h2 {font-size:26px;padding-right:30px}
.production dialog p,.production dialog .compare-row p {font-size:15px}
.production .close-dialog {font-size:30px;width:44px;height:44px;padding:0}
.production dialog::backdrop {background:#10101480;backdrop-filter:blur(4px)}
.production .batch-row .field textarea {height:90px}
.production #notice {font-size:15px;background:#171719;color:#fff;line-height:1.6;padding:14px 22px}
@media(max-width:1350px) {
 .production.white .side-nav {width:208px;padding-left:12px;padding-right:12px}
 .production.white .main-shell {margin-left:208px}
 .production.white .main-inner {padding:28px}
 .production .editor-grid {grid-template-columns:240px minmax(260px,1fr)}
 .production .editor-props {grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
 .production .editor-props>h3 {grid-column:1/-1;margin:0}
 .production .editor-props>.field {grid-column:1}
 .production .editor-props>#edit-properties {grid-column:2;grid-row:2/span 4;min-width:0}
 .production .editor-props>.audio-settings {grid-column:1/-1}
 .production .collection-visual {display:none}
 .production .collection .collection-copy {max-width:100%}
 .production .ai-layout {grid-template-columns:1fr}
}
@media(max-width:1050px) {
 .production.white .side-nav {width:86px;padding:26px 12px}
 .production.white .main-shell {margin-left:86px}
 .production.white .wordmark {margin:0 auto 32px;width:40px}
 .production .side-nav .brand-word,.production .side-nav .nav-caption,.production .side-bottom {display:none}
 .production .side-nav .nav-item {font-size:0;justify-content:center;padding:13px;gap:0;min-height:52px}
 .production .side-nav .nav-item small {display:none}
 .production .head-actions .service-status {display:none}
 .production .collection h3 {font-size:21px}
 .production .page-head {align-items:start;flex-wrap:wrap}
 .production .product-head {padding:0 28px}
}
@media(max-width:680px) {
 .production.white .side-nav {width:auto;position:relative;top:auto;bottom:auto;left:auto;height:auto;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:6px;padding:12px}
 .production.white .wordmark {margin:0 12px 0 0;width:36px;flex:none}
 .production .brand-symbol {width:36px;height:36px}
 .production .side-nav .nav-item {width:auto;min-height:44px;margin:0;padding:8px 4px;flex:1;font-size:12px;flex-direction:column;gap:5px}
 .production .side-nav [data-resource] {display:flex;flex:1 1 28%;font-size:12px;flex-direction:row;gap:6px;padding:9px 4px}
 .production .side-nav [data-resource] .svg-icon {width:18px;height:18px}
 .production.white .main-shell {margin-left:0}
 .production .product-head {height:62px;padding:0 18px}
 .production .head-actions {gap:8px}
 .production .head-actions .avatar {display:none}
 .production .head-actions .button-quiet {font-size:13px;padding:8px}
 .production.white .main-inner {padding:25px 18px}
 .production.white .page-head h1 {font-size:29px;letter-spacing:-1px}
 .production .subtext {font-size:15px}
 .production .eyebrow {font-size:10px}
 .production .collection-strip {display:flex;overflow-x:auto;gap:12px;padding-bottom:5px}
 .production .collection {min-width:210px;flex:1;height:153px}
 .production.white .library-label {align-items:start;gap:12px;flex-direction:column}
 .production.white .library-label h2 {font-size:21px}
 .production .category-tabs {gap:22px}
 .production .filters-right {width:100%}
 .production .searchbox {flex:1;min-width:0}
 .production .searchbox input {width:100%}
 .production.white .library-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}
 .production .tile-label {font-size:15px}
 .production .tile-meta {flex-direction:column;gap:2px}
 .production .footer-note {align-items:start;flex-direction:column}
 .production .editor-grid {display:flex;flex-direction:column}
 .production .editor-props {display:block;width:100%}
 .production .editor-props>h3 {margin-bottom:22px}
 .production .editor-page-head h1 {font-size:25px}
 .production .editor-actions {display:grid;grid-template-columns:1fr 1fr;width:100%;gap:9px}
 .production .editor-actions button {font-size:14px;padding:11px;min-height:46px}
 .production .editor-actions .button-main {margin-left:0;width:100%}
 .production .stage-panel {position:static;min-height:570px;padding:15px}
 .production .editor-form,.production .editor-props {padding:20px}
 .production .ai-modes {grid-template-columns:1fr}
 .production .ai-mode {display:grid;grid-template-columns:26px 1fr;column-gap:12px;align-items:center}
 .production .ai-mode .svg-icon {grid-row:span 2}
 .production .ai-mode b {margin:0 0 4px}
 .production .ai-panel {padding:20px}
 .production .form-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
 .production .jobs-summary {gap:14px}
 .production .batch-row {padding:14px}
 .production dialog {padding:24px 18px}
 .production .dialog-actions {gap:10px}
}

/* Contextual template inspector: edit next to the selected material or text. */
.production .editor-grid {grid-template-columns:330px minmax(280px,1fr) 260px}
.production .editor-form {min-width:0;max-height:calc(100vh - 235px);min-height:430px;overflow:auto;position:sticky;top:95px;scrollbar-width:thin;scroll-padding:20px}
.production .editor-form .slot-entry {margin-bottom:18px;border-radius:9px}
.production .editor-form .slot-entry.selected>.upload-mini {border-color:#3159ee;background:#f3f5ff}
.production .editor-form .slot-entry.selected>label {color:#2854dd;font-weight:600}
.production .slot-actions {display:flex;gap:8px;margin:8px 0 12px}
.production .slot-actions button {font-size:12px;padding:7px 9px;flex:1;background:#f2f3f7;color:#454b60;border:1px solid #e0e3ec;border-radius:6px}
.production .slot-actions button:first-child {color:#3159ee;background:#eef2ff}
.production .text-style-trigger {display:flex;align-items:center;justify-content:space-between;width:100%;font-size:13px;padding:9px 11px;margin-top:7px;color:#3159ee;background:#f1f4ff;border-radius:6px}
.production .text-style-trigger svg {width:16px;height:16px}
.production #edit-properties {padding:16px 0 5px;min-width:0;border-top:1px solid #e4e6ee;margin-top:12px}
.production .inspector-title {display:flex;flex-direction:column;gap:6px;margin-bottom:15px;font-size:15px}
.production .inspector-title span {font-size:11px;color:#767c8d}
.production .inspector-tabs {display:flex;border-bottom:1px solid #dfe2eb;margin-bottom:18px;gap:14px}
.production .inspector-tabs button {font-size:13px;padding:8px 0;border:0;border-radius:0;background:none;color:#767c8d;border-bottom:2px solid transparent}
.production .inspector-tabs button.active {color:#3159ee;border-bottom-color:#3159ee;font-weight:bold}
.production #edit-properties .field {margin-bottom:15px;min-width:0}
.production #edit-properties .field label {font-size:12px;margin-bottom:6px;display:flex;justify-content:space-between}
.production #edit-properties .field input,.production #edit-properties .field select {font-size:13px;padding:7px 8px;height:36px;min-width:0;width:100%;border-radius:6px}
.production #edit-properties .field input[type=range] {padding:0;accent-color:#3159ee;cursor:pointer;height:20px}
.production #edit-properties .field input[type=color] {padding:3px;cursor:pointer}
.production #edit-properties .form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.production #edit-properties output {color:#3159ee;font-size:12px}
.production .style-toggles {display:flex;flex-wrap:wrap;gap:6px;margin:5px 0 15px}
.production .style-toggles button {padding:7px 8px;font-size:12px;min-height:32px;border:1px solid #dde0e9;border-radius:5px;background:white;color:#505563}
.production .style-toggles button.active {color:#3159ee;background:#eef2ff;border-color:#acbaf9}
.production .inspector-subtitle {font-size:12px;margin:20px 0 10px;font-weight:600}
.production .text-preset-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px 7px;margin-bottom:18px}
.production .text-preset-grid button {border:0;padding:0;background:transparent;min-width:0}
.production .text-preset-grid button span {height:39px;width:100%;display:grid;place-items:center;border-radius:6px;font-size:22px;font-weight:800;font-family:Arial,sans-serif}
.production .text-preset-grid button small {display:block;font-size:10px;margin-top:5px;color:#737888}
.production .text-preset-grid button:hover span {outline:2px solid #3159ee;outline-offset:2px}
.production .style-details {border-top:1px solid #e4e6ee;padding:12px 0}
.production .style-details summary {cursor:pointer;font-size:13px;color:#373c49;font-weight:600}
.production .style-details[open] summary {margin-bottom:16px}
.production .position-actions {display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:12px 0}
.production .position-actions button {padding:8px 4px;font-size:11px;background:#f2f3f7;border-radius:5px}
.production #edit-properties .helper-text {font-size:11px;line-height:1.7;color:#7a7f8d}
.production [data-inspector-pane][hidden] {display:none}
.production .edit-layer.media .layer-visual {background:#000}
.production .layer-visual,.production .layer-border {opacity:var(--layer-opacity,1)}
.production .layer-text {text-align:var(--text-align,center);line-height:var(--text-leading,1.5);letter-spacing:var(--text-tracking,0)}
.production .edit-layer .layer-visual.rasterized {padding:0!important;background:transparent!important;border-radius:0!important;overflow:visible}
.production .edit-layer .text-raster {width:100%;height:100%;max-width:none;object-fit:fill;display:block}
.production .edit-layer.has-raster .layer-border {display:none}
.production .edit-layer,.production .edit-layer.active {overflow:visible;touch-action:none}
.production .edit-layer.active {outline:2px solid #3159ee;outline-offset:1px}
.production .size-handle {background:#3159ee;border:2px solid white;width:12px;height:12px;right:-6px;bottom:-6px;cursor:nwse-resize}
@media(max-width:1500px){
 .production .editor-grid {grid-template-columns:320px minmax(260px,1fr)}
 .production .editor-props {grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
 .production .editor-props>h3 {grid-column:1/-1;margin:0}
 .production .editor-props>.audio-settings {grid-column:2;grid-row:2;margin:0;padding:0;border:0}
}
@media(max-width:800px){
 .production .editor-grid {display:flex;flex-direction:column}
 .production .editor-form {width:100%;position:static;max-height:65vh;min-height:300px;order:1}
 .production .stage-panel {width:100%;order:0;position:static;min-height:0}
 .production .editor-props {width:100%;order:2;display:block}
 .production .editor-props>.audio-settings {margin-top:20px}
}

/* Collapsed-by-default detail controls and compact content fields. */
.production #edit-properties[hidden] {display:none!important}
.production .editor-form textarea[data-text] {height:56px;min-height:56px;resize:vertical}
.production .inspector-title {position:relative;padding-right:84px}
.production .collapse-inspector {position:absolute;right:0;top:0;padding:4px 0;font-size:12px;color:#6b7280;background:transparent;border:0}
.production .add-background {width:100%;padding:13px 8px;font-size:13px;color:#3159ee;background:#f5f7ff;border:1px dashed #adb9f4;border-radius:8px}
.production .background-note {font-size:12px;line-height:1.7;color:#737888;margin:10px 0}
.production .slot-actions [data-remove-background] {flex:0 0 auto;color:#8c4b4b;background:#fff7f7}
