/* Creative Lab view */
#view-creative-lab{--creative-green:#73a700;--creative-orange:#f3a51b;--creative-red:#ff563f}
.creative-lab-shell{display:grid;gap:18px}
.creative-lab-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:-6px}
.creative-lab-hero-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,.65fr);gap:18px;align-items:stretch}
.creative-panel{background:rgba(255,255,255,.88);border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 50px rgba(44,52,24,.09);padding:18px}
.creative-panel h2{font-size:18px;margin:0;letter-spacing:-.02em}
.creative-upload-grid{display:grid;grid-template-columns:minmax(210px,260px) minmax(0,1fr);gap:18px;align-items:start;overflow:hidden}
.creative-upload-grid>*{min-width:0}
.creative-preview{position:relative;width:100%;height:auto;min-height:260px;max-height:520px;border-radius:16px;border:1px solid var(--line);background:#f6f7ec;overflow:hidden;display:grid;place-items:center;align-self:start}
.creative-preview img,.creative-preview video{width:100%;height:100%;max-height:520px;object-fit:contain;display:block;background:#f6f7ec}
.creative-preview-empty{display:grid;gap:8px;text-align:center;padding:20px;color:#667085}
.creative-preview-empty strong{color:#1f2937}
.creative-duration-pill{position:absolute;left:12px;bottom:12px;padding:6px 10px;border-radius:999px;background:rgba(18,24,39,.82);color:white;font-size:12px;font-weight:850}
.creative-form{min-width:0;display:grid;gap:0}
.creative-form label{margin-top:8px}
.creative-form input,.creative-form select,.creative-form textarea{border-radius:12px;padding:10px 12px}
.creative-form input[type="file"]{max-width:100%;font-size:12px;padding:8px;overflow:hidden}
.creative-form textarea{min-height:70px}
.creative-form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.creative-score-panel{display:grid;align-content:center}
.creative-score-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.creative-score-wrap{display:grid;grid-template-columns:156px 1fr;gap:22px;align-items:center}
.creative-ring{--score:0;width:150px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at center,#fff 58%,transparent 59%),conic-gradient(var(--creative-green) calc(var(--score)*1%),#e8ecd4 0);box-shadow:inset 0 0 0 1px #dbe3ba}
.creative-ring strong{font-size:42px;line-height:1;color:#5f8c00}
.creative-ring span{margin-top:-28px;font-size:13px;color:#667085}
.creative-score-wrap h3{font-size:17px;margin-bottom:8px}
.creative-score-wrap p{font-size:13px;margin-bottom:14px}
.creative-score-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.creative-domain-warning{grid-column:1 / -1;display:grid;gap:4px;border:1px solid #ffc7c2;background:#fff2f0;color:#9f1f18;border-radius:14px;padding:12px 14px}
.creative-domain-warning strong{font-size:13px}
.creative-domain-warning span{font-size:12px;line-height:1.45;color:#7a271a}
.creative-score-card{background:white;border:1px solid var(--line);border-radius:16px;padding:14px;min-height:142px}
.creative-score-card-head{display:flex;justify-content:space-between;gap:10px;font-size:13px}
.creative-score-card-head span{font-weight:950}
.creative-mini-bar,.creative-fit-bar{height:7px;border-radius:999px;background:#edf0dd;overflow:hidden}
.creative-mini-bar{margin:16px 0 12px}
.creative-mini-bar i,.creative-fit-bar i{display:block;height:100%;border-radius:999px}
.creative-score-card p{font-size:12px}
.creative-lab-lower{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}
.creative-recommendations-list{display:grid;gap:8px}
.creative-rec-row{display:grid;grid-template-columns:34px 1fr auto;gap:12px;align-items:center;padding:10px;border-radius:13px;background:#fafbf2;border:1px solid #e7ebd2}
.creative-rec-row>span{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#e9edd5;color:#596600;font-weight:950}
.creative-rec-row strong{display:block;font-size:13px;color:#1f2937}
.creative-rec-row p{font-size:12px}
.creative-rec-row em{font-style:normal;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:850;white-space:nowrap}
#view-creative-lab .impact-mare{background:#ffe2df;color:#9f1f18}
#view-creative-lab .impact-mediu{background:#fff1c2;color:#7a4a00}
#view-creative-lab .impact-mic{background:#e9edd5;color:#596600}
.creative-platform-fit{display:grid;gap:12px}
.creative-platform-row{display:grid;grid-template-columns:170px 1fr 58px;gap:12px;align-items:center}
.creative-platform-row strong{display:block;font-size:13px}
.creative-platform-row small{display:block;color:#667085;font-size:11px;line-height:1.25}
.creative-platform-row span{text-align:right;font-size:12px;color:#667085;font-weight:850}
.creative-insight-strip{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:16px 18px;border-radius:18px;border:1px solid #dcd7ff;background:#f7f4ff}
.creative-insight-strip strong{display:block;margin-bottom:5px;color:#4b3bb0}
.creative-benchmark{display:flex;gap:18px;flex-wrap:wrap;justify-content:flex-end}
.creative-benchmark span{min-width:120px;font-size:12px;color:#667085}
.creative-benchmark strong{display:inline;color:#73a700;margin-left:6px}
.creative-history-panel{display:none}
.creative-history-panel.open{display:block}
.creative-history-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.creative-history-item{display:grid;grid-template-columns:58px 1fr;grid-template-rows:auto auto;gap:4px 10px;text-align:left;background:white;color:#1f2937;border:1px solid var(--line);border-radius:14px;box-shadow:none;padding:10px}
.creative-history-item:hover{transform:none;border-color:#a7bf00}
.creative-history-item span{grid-row:1 / span 2;width:58px;height:58px;border-radius:12px;background:#e9edd5;display:grid;place-items:center;overflow:hidden}
.creative-history-item img{width:100%;height:100%;object-fit:cover}
.creative-history-item strong{font-size:13px;align-self:end}
.creative-history-item small{font-size:11px;color:#667085;align-self:start}

@media(max-width:1280px){
  .creative-lab-hero-grid,.creative-lab-lower{grid-template-columns:1fr}
  .creative-score-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .creative-history-list{grid-template-columns:1fr 1fr}
}

@media(max-width:760px){
  .creative-upload-grid,.creative-score-wrap,.creative-form-row,.creative-platform-row{grid-template-columns:1fr}
  .creative-score-cards,.creative-history-list{grid-template-columns:1fr}
  .creative-insight-strip{display:grid}
}
