:root{
  --bg:#f4f7f7;--panel:#fff;--ink:#102326;--muted:#647579;--line:#dce6e5;
  --teal:#087d79;--teal-dark:#075b58;--teal-soft:#e8f5f3;--gold:#d8aa45;
  --red:#b42318;--red-soft:#fff0ee;--amber:#9a6700;--amber-soft:#fff7db;--blue:#175cd3;--blue-soft:#eff4ff;
  --shadow:0 10px 28px rgba(16,35,38,.06)
}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.topbar{height:72px;background:#102c30;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:5}.brand-wrap{display:flex;align-items:center;gap:12px}.brand-mark{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:var(--teal);font-weight:900}.brand-name{font-weight:800}.brand-subtitle{font-size:.78rem;color:#bad2d0}.topbar-status{font-size:.82rem;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.1)}.shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 72px)}.sidebar{background:#fff;border-right:1px solid var(--line);padding:22px 14px;display:flex;flex-direction:column;gap:7px}.nav-item{border:0;background:transparent;text-align:left;padding:11px 13px;border-radius:11px;font:inherit;color:var(--muted);cursor:pointer}.nav-item:hover,.nav-item.active{background:var(--teal-soft);color:var(--teal-dark);font-weight:750}.nav-divider{height:1px;background:var(--line);margin:12px 5px}.nav-note{font-size:.75rem;color:var(--muted);padding:0 12px}.main{padding:34px;min-width:0}.page{display:none}.page.active{display:block}.page-heading{display:flex;gap:20px;align-items:flex-start;justify-content:space-between;margin-bottom:24px}.eyebrow{text-transform:uppercase;letter-spacing:.1em;font-size:.72rem;font-weight:850;color:var(--teal)}h1{font-size:2rem;margin:5px 0 7px}h2{font-size:1.05rem;margin:0 0 4px}.page-heading p,.panel-heading p{margin:0;color:var(--muted)}.secondary-button{border:1px solid var(--line);background:#fff;color:var(--ink);padding:10px 14px;border-radius:10px;font-weight:700;cursor:pointer}.secondary-button:hover{border-color:#9abbb8}.metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px;margin-bottom:22px}.metric{background:#fff;border:1px solid var(--line);border-radius:16px;padding:17px;box-shadow:var(--shadow)}.metric-label{font-size:.75rem;color:var(--muted);margin-bottom:8px}.metric-value{font-size:1.75rem;font-weight:850}.panel{background:var(--panel);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}.panel-heading{padding:18px 20px;border-bottom:1px solid var(--line)}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:780px}.data-table th{font-size:.73rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);text-align:left;padding:12px 14px;background:#f9fbfb;border-bottom:1px solid var(--line)}.data-table td{padding:13px 14px;border-bottom:1px solid #edf2f1;vertical-align:top}.data-table tr:last-child td{border-bottom:0}.title-cell{font-weight:750}.subtle{font-size:.8rem;color:var(--muted);margin-top:3px}.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;background:#eef3f2;font-size:.75rem;font-weight:800;white-space:nowrap}.badge.published{background:#e8f7ef;color:#067647}.badge.failed{background:var(--red-soft);color:var(--red)}.badge.attention,.badge.retry-pending,.badge.manual-action-required{background:var(--amber-soft);color:var(--amber)}.badge.rendering,.badge.uploading,.badge.platform-processing{background:var(--blue-soft);color:var(--blue)}.badge.ready-for-review,.badge.approved,.badge.draft-delivered{background:var(--teal-soft);color:var(--teal-dark)}.empty,.error{padding:28px;color:var(--muted);text-align:center}.error{color:var(--red)}.music-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:18px}.music-card{border:1px solid var(--line);border-radius:14px;padding:15px;background:#fbfdfd}.music-card h3{font-size:.95rem;margin:0 0 6px}.music-meta{font-size:.78rem;color:var(--muted);margin-bottom:10px}.music-actions{display:flex;gap:8px}.link-button{display:inline-block;border:1px solid var(--line);padding:7px 9px;border-radius:9px;color:var(--teal-dark);text-decoration:none;font-size:.78rem;font-weight:750}.progress{height:8px;border-radius:999px;background:#e8eeee;overflow:hidden;margin-top:5px}.progress>span{display:block;height:100%;background:var(--teal)}@media(max-width:1100px){.metrics{grid-template-columns:repeat(3,1fr)}.music-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.shell{grid-template-columns:1fr}.sidebar{position:sticky;top:72px;z-index:4;flex-direction:row;overflow:auto;border-right:0;border-bottom:1px solid var(--line);padding:10px}.nav-divider,.nav-note{display:none}.nav-item{white-space:nowrap}.main{padding:22px 16px}.metrics{grid-template-columns:repeat(2,1fr)}.music-grid{grid-template-columns:1fr}.page-heading{align-items:stretch;flex-direction:column}.secondary-button{align-self:flex-start}}

.raw-filename{font-size:.7rem;color:#839295;margin:-2px 0 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.music-preview{display:block;width:100%;margin:12px 0 10px;height:36px}.table-link{display:inline-block;margin-top:5px;color:var(--teal-dark);font-size:.76rem;font-weight:750;text-decoration:none}.table-link:hover{text-decoration:underline}.empty strong{color:var(--ink);font-size:.95rem}

.heading-actions{display:flex;gap:9px;align-items:center}.primary-button{border:1px solid var(--teal);background:var(--teal);color:#fff;padding:10px 14px;border-radius:10px;font-weight:800;cursor:pointer}.primary-button:hover{background:var(--teal-dark);border-color:var(--teal-dark)}.primary-button:disabled{opacity:.6;cursor:not-allowed}.primary-button[data-busy="true"]{cursor:progress}.idea-create-panel{margin-bottom:18px}.idea-form{padding:20px;display:grid;gap:16px}.form-field{display:grid;gap:7px;font-size:.82rem;font-weight:800}.form-field em{font-style:normal;font-weight:500;color:var(--muted)}.form-field input,.form-field textarea{width:100%;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);padding:11px 12px;font:inherit;outline:none}.form-field input:focus,.form-field textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px var(--teal-soft)}.form-actions{display:flex;justify-content:flex-end;gap:9px}.form-message{min-height:18px;font-size:.8rem;color:var(--muted)}.form-message.success{color:#067647;font-weight:700}.form-message.error-text{color:var(--red);font-weight:700}.idea-create-panel[hidden]{display:none}@media(max-width:760px){.heading-actions{align-items:stretch}.heading-actions .secondary-button,.heading-actions .primary-button{flex:1}.form-actions{justify-content:stretch}.form-actions button{flex:1}}


/* Phase 2A Idea Management */
.manage-button{border:1px solid var(--line);background:#fff;color:var(--teal-dark);padding:7px 10px;border-radius:9px;font-weight:800;cursor:pointer;white-space:nowrap}.manage-button:hover{border-color:var(--teal);background:var(--teal-soft)}.idea-row-held td{background:#fffdf4}.badge.on-hold{background:var(--amber-soft);color:var(--amber)}
.drawer-backdrop{position:fixed;inset:0;background:rgba(16,35,38,.32);z-index:20}.drawer-backdrop[hidden]{display:none}.idea-drawer{position:fixed;top:0;right:0;width:min(560px,94vw);height:100vh;background:#fff;z-index:21;box-shadow:-20px 0 45px rgba(16,35,38,.18);transform:translateX(105%);transition:transform .2s ease;display:flex;flex-direction:column}.idea-drawer.open{transform:translateX(0)}body.drawer-open{overflow:hidden}.drawer-header{display:flex;align-items:flex-start;justify-content:space-between;padding:22px 24px;border-bottom:1px solid var(--line);background:#fbfdfd}.drawer-header h2{font-size:1.35rem;margin:5px 0 0}.icon-button{width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--muted);font-size:1.55rem;line-height:1;cursor:pointer}.icon-button:hover{color:var(--ink);border-color:#a9bfbd}.drawer-body{padding:22px 24px 28px;overflow:auto}.idea-detail-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:4px}.idea-detail-meta>div,.detail-grid>div{border:1px solid var(--line);background:#f9fbfb;border-radius:11px;padding:11px 12px;display:grid;gap:4px}.idea-detail-meta span,.detail-grid span{font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:800}.idea-detail-meta strong,.detail-grid strong{font-size:.84rem}.drawer-form{padding:18px 0 0}.detail-section{border-top:1px solid var(--line);padding-top:16px}.detail-section h3{font-size:.85rem;margin:0 0 10px}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.drawer-actions{display:flex;gap:9px;flex-wrap:wrap}.danger-zone{margin-top:8px;border:1px solid #f1b5af;background:var(--red-soft);border-radius:12px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:16px}.danger-zone>div{display:grid;gap:3px}.danger-zone strong{font-size:.84rem;color:var(--red)}.danger-zone span{font-size:.74rem;color:#8a3d37}.danger-button{border:1px solid var(--red);background:#fff;color:var(--red);padding:9px 12px;border-radius:9px;font-weight:800;cursor:pointer}.danger-button:hover{background:var(--red);color:#fff}.danger-button:disabled,.secondary-button:disabled{opacity:.5;cursor:not-allowed}.idea-table th:last-child,.idea-table td:last-child{text-align:right}
@media(max-width:760px){.idea-drawer{width:100vw}.drawer-body{padding:18px}.drawer-actions{display:grid;grid-template-columns:1fr 1fr}.drawer-actions .primary-button{grid-column:1/-1}.detail-grid{grid-template-columns:1fr}.danger-zone{align-items:stretch;flex-direction:column}.danger-button{width:100%}}


/* Phase 2A branding: official full ChicagoShining logo */
.brand-logo-frame{
  height:50px;
  min-width:92px;
  max-width:205px;
  padding:5px 10px;
  border-radius:12px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 1px 0 rgba(255,255,255,.14),0 5px 14px rgba(0,0,0,.12);
  overflow:hidden;
}
.brand-logo{
  display:block;
  width:auto;
  max-width:185px;
  height:auto;
  max-height:40px;
  object-fit:contain;
}
.brand-studio-copy{display:grid;gap:1px}
.brand-studio-copy .brand-name{font-size:.93rem}
@media(max-width:760px){
  .topbar{padding:0 14px}
  .brand-wrap{gap:8px}
  .brand-logo-frame{max-width:150px;padding:5px 8px}
  .brand-logo{max-width:134px;max-height:38px}
  .brand-studio-copy{display:none}
}


/* Phase 2A branding hotfix: keep full logo in the exact former CS badge footprint */
.brand-logo-frame{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  max-width:42px !important;
  min-height:42px !important;
  max-height:42px !important;
  padding:0 !important;
  margin:0 !important;
  border-radius:14px !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:hidden !important;
  flex:0 0 42px !important;
}
.brand-logo{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  min-height:42px !important;
  max-width:42px !important;
  max-height:42px !important;
  object-fit:contain !important;
  object-position:center !important;
  display:block !important;
}
.brand-studio-copy{display:grid !important;gap:1px !important}
.brand-studio-copy .brand-name{font-size:1rem !important}
@media(max-width:760px){
  .brand-logo-frame{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    max-width:42px !important;
  }
  .brand-logo{
    width:42px !important;
    height:42px !important;
    max-width:42px !important;
    max-height:42px !important;
  }
  .brand-studio-copy{display:grid !important}
}


/* Phase 2A approve/promote checkpoint */
.promotion-zone{border:1px solid #a8d5ca;background:#f3fbf8;border-radius:14px;padding:15px;display:grid;gap:13px}.promotion-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.promotion-heading>div{display:grid;gap:3px}.promotion-heading strong{font-size:.9rem;color:var(--teal-dark)}.promotion-heading span{font-size:.75rem;color:var(--muted);line-height:1.35}.promotion-zone .form-field{gap:6px}.promotion-zone select{width:100%;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);padding:10px 11px;font:inherit;outline:none}.promotion-zone select:focus{border-color:var(--teal);box-shadow:0 0 0 3px var(--teal-soft)}.platform-fieldset{border:0;padding:0;margin:0}.platform-fieldset legend{font-size:.82rem;font-weight:800;margin-bottom:7px}.platform-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.platform-checks label{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:9px 10px;font-size:.8rem;font-weight:650}.promotion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.promotion-subpanel{border-top:1px solid #d6ebe6;padding-top:12px}.promotion-subpanel[hidden]{display:none}.promote-button{width:100%;border:1px solid #087a65;background:#087a65;color:#fff;padding:11px 14px;border-radius:10px;font-weight:850;cursor:pointer}.promote-button:hover{background:#065f50;border-color:#065f50}.promote-button:disabled{opacity:.5;cursor:not-allowed}.promotion-zone.promotion-disabled{background:#f7f9f9;border-color:var(--line)}.promotion-zone.promotion-disabled .promotion-heading strong{color:var(--muted)}
@media(max-width:760px){.promotion-grid,.platform-checks{grid-template-columns:1fr}}


/* Phase 2B — Production Requests */
.production-request-launch{border:1px solid #b9d8d3;background:#f4fbf9;border-radius:14px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.production-request-launch>div{display:grid;gap:3px}.production-request-launch strong{font-size:.9rem;color:var(--teal-dark)}.production-request-launch span{font-size:.75rem;color:var(--muted)}
.production-request-shell{margin-bottom:18px}.production-request-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.production-request-form{padding:20px;display:grid;gap:22px}.request-section{border:1px solid var(--line);border-radius:15px;padding:17px;background:#fbfdfd;display:grid;gap:15px}
.request-section-heading{display:grid;gap:4px}.request-section-heading h3{margin:0;font-size:.98rem}.request-section-heading p{margin:0;font-size:.78rem;color:var(--muted)}
.request-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.request-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.request-grid select,.request-grid input,.request-section select,.request-section input,.request-section textarea{width:100%;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);padding:10px 11px;font:inherit;outline:none}
.request-grid select:focus,.request-grid input:focus,.request-section select:focus,.request-section input:focus,.request-section textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px var(--teal-soft)}
.request-platforms{align-self:end}.request-platforms .platform-checks{grid-template-columns:repeat(3,minmax(0,1fr))}
.structure-card{border:1px solid var(--line);border-radius:12px;background:#fff;padding:14px;display:grid;gap:11px}.structure-card>strong{font-size:.85rem}.count-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.count-inputs .exact-count{grid-column:1/-1}.count-inputs [hidden]{display:none!important}
.text-control{display:grid;grid-template-columns:180px minmax(0,1fr);gap:12px;align-items:start}.text-control .grow{min-width:0}.request-actions{display:flex;justify-content:flex-end;gap:10px}
.request-list-panel{margin-bottom:18px}.badge.draft{background:#eef3f2;color:var(--teal-dark)}.badge.ready{background:var(--blue-soft);color:var(--blue)}
@media(max-width:980px){.request-grid,.request-grid.three{grid-template-columns:1fr 1fr}.request-platforms .platform-checks{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.production-request-launch{align-items:stretch;flex-direction:column}.request-grid,.request-grid.three,.text-control{grid-template-columns:1fr}.request-platforms .platform-checks{grid-template-columns:1fr}.request-actions{justify-content:stretch}.request-actions button{flex:1}}


/* Phase 2B 0.4.0 — requested platform/output matrix */
.output-matrix{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.output-platform-card{border:1px solid var(--line);border-radius:13px;background:#fff;padding:12px;display:grid;gap:8px;min-width:0}
.output-platform-card legend{padding:0 5px;font-size:.9rem;font-weight:850;color:var(--teal-dark)}
.output-platform-card label{display:flex;align-items:center;gap:8px;padding:8px 9px;border:1px solid #e4ecea;border-radius:9px;background:#fbfdfd;font-size:.8rem;font-weight:700;cursor:pointer}
.output-platform-card label:has(input:checked){border-color:#8ecfc0;background:#eefaf6;color:var(--teal-dark)}
.output-platform-card input{width:auto!important;margin:0;box-shadow:none!important}
.output-matrix-summary{font-size:.78rem;color:var(--muted);border-top:1px solid var(--line);padding-top:11px;line-height:1.45}
@media(max-width:1100px){.output-matrix{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.output-matrix{grid-template-columns:1fr}}


/* Phase 2B 0.4.1 — output matrix alignment + derived platform cleanup */
.derived-platform-note{
  border:1px solid var(--line);
  border-radius:11px;
  background:#f9fbfb;
  padding:12px 14px;
  display:grid;
  align-content:center;
  gap:3px;
  min-height:68px;
}
.derived-platform-note strong{
  font-size:.82rem;
  font-weight:850;
  color:var(--ink);
}
.derived-platform-note span{
  font-size:.76rem;
  color:var(--muted);
  line-height:1.35;
}
.legacy-target-platforms[hidden]{display:none!important}

.output-platform-card{
  align-content:start;
}
.output-platform-card label{
  display:grid!important;
  grid-template-columns:18px minmax(0,1fr)!important;
  align-items:center!important;
  justify-content:start!important;
  justify-items:start!important;
  column-gap:10px!important;
  min-height:38px;
  width:100%;
  text-align:left!important;
}
.output-platform-card label input[type="checkbox"]{
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  margin:0!important;
  padding:0!important;
  justify-self:start!important;
  align-self:center!important;
}


/* Phase 2B 0.4.2 — per-output overrides */
.requested-output-cards{display:grid;gap:8px;margin-top:12px}
.requested-output-card{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);border-radius:11px;padding:11px 12px;background:#fff}
.requested-output-title{font-size:.82rem;font-weight:850;color:var(--ink)}
.requested-output-detail{font-size:.74rem;color:var(--muted);margin-top:2px}
.requested-output-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.inherit-pill,.override-count{font-size:.7rem;font-weight:800;border-radius:999px;padding:5px 8px;background:#edf4f2;color:#49645f}
.override-count{background:#fff3d8;color:#7c5b12}
.compact-empty{padding:10px 12px!important;font-size:.76rem!important}

.output-override-editor{margin-top:14px;border:1px solid #b9d9d2;border-radius:14px;background:#fbfefd;padding:15px}
.override-editor-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.override-editor-header h4{margin:2px 0 2px;font-size:1rem}
.override-editor-header p{margin:0;color:var(--muted);font-size:.76rem}
.override-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.override-grid label,.override-text-row label,.full-width-label{display:grid;gap:5px;font-size:.73rem;font-weight:800;color:var(--ink)}
.override-subsection{border-top:1px solid var(--line);padding-top:13px;margin-top:13px}
.override-subsection h5{margin:0 0 10px;font-size:.82rem}
.override-text-row{display:grid;grid-template-columns:180px minmax(0,1fr);gap:10px;margin-bottom:10px}
.override-text-row .grow{min-width:0}
.full-width-label{margin-top:10px}
.effective-preview{margin-top:14px;border:1px dashed #b7cbc6;background:#f6faf9;border-radius:11px;padding:11px;font-size:.74rem}
.effective-preview-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-top:8px}
.effective-preview-grid div{display:grid;gap:2px;background:#fff;border:1px solid #e4ecea;border-radius:8px;padding:7px}
.effective-preview-grid span{font-size:.65rem;color:var(--muted);text-transform:uppercase;letter-spacing:.03em}
.effective-preview-grid b{font-size:.73rem}
.override-editor-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
@media(max-width:1100px){
  .override-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .effective-preview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .requested-output-card{align-items:flex-start;flex-direction:column}
  .requested-output-actions{justify-content:flex-start}
  .override-grid,.override-text-row,.effective-preview-grid{grid-template-columns:1fr}
}

/* Phase 6 0.5.0 — Creative review editor */
.creative-editor-shell{margin-bottom:18px;overflow:visible}.creative-editor-shell[hidden]{display:none!important}.creative-editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.creative-heading-actions{display:flex;align-items:center;gap:9px}.creative-safety-banner{padding:11px 18px;background:#fff9df;border-bottom:1px solid #ead997;color:#715719;font-size:.8rem;line-height:1.45}.creative-safety-banner strong{color:#5d470e}.creative-editor-body{padding:18px;display:grid;gap:16px}.creative-top-grid{display:grid;grid-template-columns:minmax(330px,.85fr) minmax(520px,1.15fr);gap:16px}.creative-preview-card,.creative-global-card,.creative-audio-card,.creative-ratio-card,.creative-slides-section{border:1px solid var(--line);border-radius:14px;background:#fbfdfd;padding:14px}.creative-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.creative-section-heading h3{font-size:.9rem;margin:0 0 3px}.creative-section-heading p{font-size:.76rem;color:var(--muted);margin:0;line-height:1.42}.render-preview-frame{position:relative;min-height:260px;background:#102326;border-radius:12px;overflow:hidden;display:grid;place-items:center}.render-preview-frame video{display:block;width:100%;max-height:520px;background:#000}.render-preview-frame .render-preview-drive{display:block;width:100%;height:520px;max-height:70vh;border:0;background:#000}.render-preview-frame .render-preview-drive[hidden]{display:none!important}.render-preview-frame video:not([src]),.render-preview-frame video[src=""]{display:none}.render-preview-empty{color:#c8d6d5;font-size:.82rem;padding:28px;text-align:center}.creative-output-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.creative-output-meta>div{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 9px;display:grid;gap:2px}.creative-output-meta span{font-size:.64rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:850}.creative-output-meta b{font-size:.78rem;overflow-wrap:anywhere}.creative-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.creative-form-grid select,.creative-form-grid input,.creative-slide-card select,.creative-slide-card input,.creative-slide-card textarea,.creative-audio-card input,.creative-review-notes textarea{width:100%;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);padding:9px 10px;font:inherit;outline:none}.creative-form-grid select:focus,.creative-form-grid input:focus,.creative-slide-card select:focus,.creative-slide-card input:focus,.creative-slide-card textarea:focus,.creative-audio-card input:focus,.creative-review-notes textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px var(--teal-soft)}.audio-mix-summary{font-size:.75rem;font-weight:850;color:var(--teal-dark);background:var(--teal-soft);padding:6px 9px;border-radius:999px;white-space:nowrap}.audio-control-grid{display:grid;grid-template-columns:1.1fr 1.1fr 1.1fr .9fr .65fr;gap:12px;align-items:end}.audio-control{display:grid;grid-template-columns:minmax(0,1fr) 68px 18px;gap:7px;align-items:center;font-size:.75rem;font-weight:800}.audio-control>span{grid-column:1/-1}.audio-control input[type="range"]{padding:0;border:0;box-shadow:none}.audio-control input[type="number"]{padding:8px 7px;text-align:right}.audio-control b{font-size:.75rem;color:var(--muted)}.toggle-control{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:9px 10px;font-size:.75rem;font-weight:800;min-height:40px}.toggle-control input{width:auto!important;margin:0}.form-field.compact input{padding:8px 9px}.audio-help{font-size:.72rem;color:var(--muted);margin-top:10px;line-height:1.45}.creative-ratio-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.ratio-summary-item{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px;display:grid;gap:3px}.ratio-summary-item.active{border-color:#8bc9bd;background:#effaf7}.ratio-summary-item span{font-size:.66rem;color:var(--muted);text-transform:uppercase;font-weight:850;letter-spacing:.05em}.ratio-summary-item b{font-size:.84rem}.ratio-summary-item small{font-size:.68rem;color:var(--muted)}.slides-heading{align-items:center}.creative-slides-list{display:grid;gap:12px}.creative-slide-card{border:1px solid var(--line);border-radius:13px;background:#fff;overflow:hidden}.creative-slide-card.dragging{opacity:.48}.creative-slide-card.drag-over{outline:2px solid var(--teal);outline-offset:2px}.creative-slide-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid var(--line);background:#f8fbfa}.creative-slide-title-wrap{display:flex;align-items:center;gap:9px;min-width:0}.slide-drag-handle{cursor:grab;color:#82928f;font-size:1.05rem;letter-spacing:-2px;user-select:none}.slide-drag-handle:active{cursor:grabbing}.creative-slide-title{font-size:.82rem;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.creative-slide-subtitle{font-size:.69rem;color:var(--muted);margin-top:2px}.slide-include-control{display:flex;align-items:center;gap:7px;font-size:.72rem;font-weight:800;white-space:nowrap}.slide-include-control input{width:auto!important;margin:0}.creative-slide-body{display:grid;grid-template-columns:220px minmax(0,1fr);gap:14px;padding:12px}.creative-slide-visual{display:grid;gap:9px;align-content:start}.slide-preview-canvas{position:relative;width:100%;aspect-ratio:4/5;border-radius:10px;background:#e8eeee;overflow:hidden;display:grid;place-items:center}.slide-preview-canvas.ratio-9x16{aspect-ratio:9/16}.slide-preview-canvas.ratio-1x1{aspect-ratio:1/1}.slide-preview-canvas.ratio-16x9{aspect-ratio:16/9}.slide-preview-canvas img{width:100%;height:100%;object-fit:cover;display:block}.slide-preview-placeholder{padding:18px;text-align:center;color:var(--muted);font-size:.72rem}.safe-zone-overlay{position:absolute;inset:0;pointer-events:none;display:none}.safe-zone-overlay.on{display:block}.safe-zone-overlay:after{content:"SAFE AREA";position:absolute;border:2px dashed rgba(255,255,255,.86);box-shadow:0 0 0 999px rgba(0,0,0,.12);left:5%;right:5%;top:14.84%;bottom:14.84%;display:flex;align-items:flex-start;justify-content:flex-end;padding:4px;color:#fff;font-size:.57rem;font-weight:900;letter-spacing:.07em;text-shadow:0 1px 2px #000}.variant-chips{display:flex;gap:5px;flex-wrap:wrap}.variant-chip{font-size:.62rem;font-weight:850;padding:4px 6px;border-radius:999px;background:#f0f3f3;color:#758481}.variant-chip.ready{background:#e7f7ef;color:#067647}.variant-chip.target{outline:1px solid var(--teal)}.creative-slide-controls{display:grid;gap:10px}.slide-control-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.slide-control-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}.slide-control-row.two{grid-template-columns:repeat(2,minmax(0,1fr))}.slide-control-row .form-field{font-size:.69rem;gap:4px}.slide-control-row .form-field span{line-height:1.25}.slide-control-section{border-top:1px solid #e9efee;padding-top:9px}.slide-control-section:first-child{border-top:0;padding-top:0}.slide-control-section-title{font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:var(--teal-dark);margin-bottom:7px}.slide-overlay-text{min-height:66px;resize:vertical}.voiceover-text{min-height:76px;resize:vertical}.creative-editor-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:14px}.creative-editor-action-group{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.review-approve-button{background:#08715a;border-color:#08715a}.review-approve-button:hover{background:#065a48;border-color:#065a48}.creative-review-notes{margin-top:0}.creative-review-notes textarea{resize:vertical}.creative-editor-message-spacer{min-height:18px}.creative-output-action-cell{white-space:nowrap}.creative-button{border:1px solid #9fcfc5;background:#effaf7;color:var(--teal-dark);padding:7px 10px;border-radius:9px;font-size:.73rem;font-weight:850;cursor:pointer}.creative-button:hover{background:#dcf3ed;border-color:var(--teal)}.creative-button:disabled{opacity:.45;cursor:not-allowed}.creative-no-slides{border:1px dashed #bdcecb;border-radius:11px;padding:20px;text-align:center;color:var(--muted);font-size:.78rem}.creative-slide-card.excluded{opacity:.67}.creative-slide-card.excluded .creative-slide-body{filter:saturate(.7)}
@media(max-width:1180px){.creative-top-grid{grid-template-columns:1fr}.audio-control-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.creative-ratio-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.creative-slide-body{grid-template-columns:180px minmax(0,1fr)}.slide-control-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.creative-editor-heading,.creative-editor-actions{align-items:stretch;flex-direction:column}.creative-heading-actions,.creative-editor-action-group{width:100%;display:grid;grid-template-columns:1fr}.creative-form-grid,.audio-control-grid,.creative-ratio-summary,.creative-slide-body,.slide-control-row,.slide-control-row.three,.slide-control-row.two{grid-template-columns:1fr}.creative-slide-visual{max-width:320px;margin:0 auto;width:100%}.creative-output-meta{grid-template-columns:1fr 1fr}.audio-mix-summary{white-space:normal}.creative-editor-action-group button,.creative-editor-actions>button{width:100%}}
/* Phase 6 safe-area visualization: 9:16 uses the validated centered 4:5 safe zone; other ratios show a general 5% content-safe inset. */
.slide-preview-canvas:not(.ratio-9x16) .safe-zone-overlay:after{left:5%;right:5%;top:5%;bottom:5%}


/* Phase 6 0.5.4 — contextual help tooltips for Pipeline creative controls */
.control-label-with-help{display:inline-flex;align-items:center;gap:5px;min-width:0}
.control-help-dot{display:inline-grid;place-items:center;width:15px;height:15px;min-width:15px;border:1px solid #9bb0ac;border-radius:50%;color:#637773;background:#fff;font-size:10px;font-weight:900;line-height:1;cursor:help;user-select:none;vertical-align:middle}
.control-help-dot:hover,.control-help-dot:focus{border-color:var(--teal);color:var(--teal-dark);background:var(--teal-soft);outline:none;box-shadow:0 0 0 2px rgba(11,125,105,.12)}
.phase6-tooltip-popover{position:fixed;z-index:20000;max-width:min(330px,calc(100vw - 24px));padding:9px 11px;border-radius:9px;background:#102f32;color:#fff;font-size:.72rem;font-weight:600;line-height:1.45;box-shadow:0 8px 26px rgba(0,0,0,.24);pointer-events:none;opacity:0;transform:translateY(3px);transition:opacity .08s ease,transform .08s ease}
.phase6-tooltip-popover.visible{opacity:1;transform:translateY(0)}
.phase6-tooltip-popover:after{content:"";position:absolute;width:8px;height:8px;background:#102f32;transform:rotate(45deg);left:var(--tip-arrow-left,18px);top:-4px}
.phase6-tooltip-popover.above:after{top:auto;bottom:-4px}
.phase6-tooltip-target{cursor:help}
.ratio-summary-item.phase6-tooltip-target,.variant-chip.phase6-tooltip-target{cursor:help}
.creative-editor-actions button.phase6-tooltip-target,.creative-heading-actions button.phase6-tooltip-target{cursor:help}
@media(max-width:760px){.phase6-tooltip-popover{font-size:.76rem;max-width:calc(100vw - 20px)}}


/* Phase 6 0.5.5 — live ElevenLabs voice catalog + audition controls */
.voice-select-wrap { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:end; }
.voice-select-wrap .form-field { min-width:0; }
.voice-preview-button { min-height:38px; padding:0 11px; border:1px solid var(--line, #d5d9e0); border-radius:8px; background:var(--surface, #fff); color:inherit; cursor:pointer; white-space:nowrap; font-weight:600; }
.voice-preview-button:hover { border-color:currentColor; }
.voice-preview-button:disabled { opacity:.45; cursor:not-allowed; }
.voice-catalog-note { grid-column:1/-1; font-size:12px; opacity:.72; margin-top:-2px; }
.voice-option-meta { font-size:12px; opacity:.7; }
