/* Creative team: desktop-first, quiet surfaces and independent scrolling. */
#creativeModal{z-index:2500}
#creativeModal .creative-modal{width:min(1190px,96vw);max-width:1190px;max-height:92dvh;height:min(850px,92dvh);padding:0;display:flex;flex-direction:column;overflow:hidden;background:#1a2228}
.creative-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 28px 19px;border-bottom:1px solid #34434a;flex:none}
.creative-head h2{margin:5px 0 6px;font-size:23px;font-weight:650;letter-spacing:-.03em;color:#e8f4f1}
.creative-head p{color:#a8b9ba;margin:0;font-size:13px;line-height:1.6}
.creative-shell{display:grid;grid-template-columns:214px minmax(0,1fr);min-height:0;flex:1}
.creative-sidebar{background:#171e23;border-right:1px solid #34434a;padding:21px 13px;display:flex;flex-direction:column;min-width:0;gap:17px}
.creative-side-title{font-size:11px;letter-spacing:.1em;color:#889ca0;padding:0 9px;font-weight:700}
.creative-steps{display:flex;flex-direction:column;gap:4px}
.creative-step{display:grid;grid-template-columns:25px 1fr;gap:0 5px;align-items:center;padding:11px 8px;border-radius:9px;position:relative;color:#b6c6c5}
.creative-step.state-running{background:#263c36;color:#d8f8ed}
.creative-step-dot{grid-row:span 2;width:20px;height:20px;display:grid;place-items:center;border:1px solid #4b5a5c;border-radius:50%;font-size:12px;line-height:1;color:#95a8a7}
.creative-step.state-done .creative-step-dot{background:#21493c;border-color:#366c57;color:#6ce1b4}
.creative-step.state-failed .creative-step-dot{background:#4e2e2b;border-color:#78423c;color:#ffaaa1}
.creative-step.state-running .creative-step-dot{border-color:#5bbc99;color:#8becbf}
.creative-step-name{font-size:12px;font-weight:600}
.creative-step-state{grid-column:2;font-size:10px;color:#829597}
.creative-side-foot{margin-top:auto;color:#7d9295;font-size:11px;line-height:1.7;padding:14px 9px;border-top:1px solid #303c40}
.creative-main{padding:24px 30px 34px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#3f5654 transparent}
.creative-section{padding-bottom:26px;margin-bottom:25px;border-bottom:1px solid #344348}
.creative-section:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.creative-section-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.creative-section h3{font-size:17px;line-height:1.3;font-weight:650;color:#eaf6f2;margin:5px 0}
.creative-section p{font-size:12px;line-height:1.7;color:#a8b7ba;margin:0;max-width:75ch}
.creative-kicker{letter-spacing:.15em;font-size:10px;font-weight:700;color:#79d5b2}
.creative-upload{display:inline-flex;align-items:center;gap:7px;flex:none;cursor:pointer;min-height:38px}
.creative-doc-info{padding:13px 15px;border:1px solid #35494a;border-radius:9px;background:#222c30;color:#c7d7d4;font-size:12px}
.creative-doc-images,.creative-ref-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.creative-doc-picture{margin:0;border:1px solid #3b4d50;border-radius:10px;background:#222b30;padding:7px;width:112px}
.creative-doc-picture img{width:96px;height:120px;object-fit:contain;display:block;border-radius:6px;background:#11181d}
.creative-doc-picture figcaption{margin-top:6px;text-align:center;font-size:11px;color:#afc2c1}
.creative-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:12px 0}
.creative-form-grid label{display:flex;flex-direction:column;gap:8px;color:#bacccc;font-size:12px;min-width:0}
.creative-form-grid .field{max-width:100%;width:100%;font-size:12px;margin:0;min-height:37px}
.creative-form-grid textarea.field{resize:vertical;line-height:1.5;min-height:75px}
.creative-form-grid input.field{margin-top:2px}
.creative-field-title{font-size:12px;color:#cbdcd8;font-weight:600;margin:18px 0 6px}
.creative-ref-item{width:144px;min-height:112px;display:flex;gap:7px;align-items:center;flex-direction:column;justify-content:flex-start;border:1px solid #38494b;border-radius:10px;padding:9px;cursor:pointer;background:#222b30;position:relative;color:#b5c9c5}
.creative-ref-item:has(input:checked){border-color:#38b789;background:#243b35;box-shadow:inset 0 0 0 1px #2b6551}
.creative-ref-item input{position:absolute;top:9px;left:9px;accent-color:#10cc91}
.creative-ref-item img{width:100%;height:75px;object-fit:contain;border-radius:5px;background:#161e21}
.creative-ref-item span{display:block;width:100%;font-size:11px;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.creative-placeholder{font-size:12px;color:#9eb1b0;padding:14px;background:#222b30;border-radius:8px;width:100%}
.creative-actions{display:flex;gap:11px;flex-wrap:wrap;align-items:center;margin-top:17px}
.creative-actions button{min-height:39px;display:inline-flex;align-items:center;gap:6px}
.creative-actions select.field{flex:1;min-width:190px;max-width:340px}
.creative-notice{font-size:12px;color:#a6c5bc;flex:1;line-height:1.6}
.creative-result{border:1px solid #35484c;background:#20292e;border-radius:9px;margin:8px 0;overflow:hidden}
.creative-result summary{cursor:pointer;list-style-position:inside;padding:13px 15px;font-weight:600;font-size:12px;color:#d7ebe5}
.creative-result[open] summary{border-bottom:1px solid #334447}
.creative-result pre,.creative-quality-result{font-family:inherit;white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.8;color:#b9ceca;padding:13px 16px;margin:0;max-height:360px;overflow:auto}
.creative-quality-result{border:1px solid #35484c;background:#20292e;border-radius:9px;margin-top:12px;min-height:70px}
@media(max-width:800px){
 #creativeModal .creative-modal{width:calc(100vw - 12px);height:94dvh;max-height:94dvh}
 .creative-head{padding:16px}.creative-head h2{font-size:19px}
 .creative-shell{grid-template-columns:1fr}
 .creative-sidebar{padding:10px 15px;border-right:0;border-bottom:1px solid #34434a;gap:6px}
 .creative-steps{display:flex;flex-direction:row;gap:4px;overflow-x:auto}
 .creative-step{min-width:112px;grid-template-columns:19px 1fr;padding:7px 4px}
 .creative-step-name{font-size:10px}.creative-step-state{font-size:9px}
 .creative-side-title,.creative-side-foot{display:none}
 .creative-main{padding:18px}
 .creative-form-grid{grid-template-columns:1fr}
 .creative-ref-item{width:110px}
}

/* V2: stable multi-document explorer and page-task board */
.creative-document-list{display:flex;flex-direction:column;gap:7px;margin:11px 0 4px;max-height:176px;overflow-y:auto}
.creative-document-row{display:grid;grid-template-columns:25px minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:10px 13px;border:1px solid #334448;border-radius:9px;background:#1f2a2e;color:#d5e6e1}
.creative-document-row strong{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.creative-doc-index{font-size:11px;color:#65cfa9}
.creative-doc-stat{font-size:10px;color:#9baeb0;white-space:nowrap}
.creative-doc-remove{border:1px solid #485454;border-radius:7px;color:#b6c4c1;background:transparent;padding:6px 9px;font-size:11px;cursor:pointer}
.creative-doc-remove:hover{color:#ffa69b;border-color:#95584e;background:#402d2d}
.creative-page-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:13px 0 17px}
.creative-page-card{appearance:none;display:flex;align-items:center;text-align:left;min-height:67px;gap:10px;padding:11px 12px;border:1px solid #33474b;border-radius:11px;background:#222d32;color:#e6f3ef;cursor:pointer;transition:background .18s ease,border-color .18s ease}
.creative-page-card:hover{background:#2a383c;border-color:#5d7974}
.creative-page-card.is-active{background:#234036;border-color:#4ab98b;box-shadow:inset 0 0 0 1px #377f64}
.creative-page-no{display:grid;place-items:center;width:30px;height:30px;border-radius:7px;background:#172629;flex:none;color:#77cdaa;font-size:11px;font-variant-numeric:tabular-nums}
.creative-page-body{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}
.creative-page-body strong{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.creative-page-body small{font-size:10px;color:#9aafb0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.creative-page-tag{font-size:10px;color:#9bd4bb;white-space:nowrap}
.creative-page-editor{padding:14px 16px;border-radius:11px;background:#1b262a;border:1px solid #35474a}
.creative-page-editor .creative-field-title{margin:0 0 5px;font-size:14px}
.creative-page-editor p{margin-bottom:11px}
.creative-editor-label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#b5c9c4}
.creative-editor-label textarea{resize:vertical;min-height:100px;line-height:1.65;width:100%}
.creative-page-editor>.soft-btn{margin-top:11px;min-height:35px}
.creative-style-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 10px}
.creative-style-head button{flex:none;min-height:34px}
@media(max-width:820px){.creative-page-list{grid-template-columns:1fr}.creative-document-row{grid-template-columns:18px 1fr auto}.creative-doc-stat{grid-column:2}.creative-style-head{align-items:stretch;flex-direction:column}}

@media(prefers-reduced-motion:reduce){#creativeModal *,#creativeModal *::before,#creativeModal *::after{animation:none!important;transition:none!important}}
