/* Advertising launch listing and wizard. Palette comes from the workspace. */
.launch-history-metrics { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px }
.launch-history-metric { display:grid;gap:7px;padding:14px 17px;min-width:0 }
.launch-history-metric strong { font-size:25px;font-weight:500;line-height:1.2;font-variant-numeric:tabular-nums }
.launch-history-metric.launch-in-progress strong { color:var(--cyan) }
.launch-history-metric.launch-success strong { color:var(--green) }
.launch-history-metric.launch-review strong { color:var(--amber) }
.launch-history-filters .field:first-child { flex:1;min-width:225px }
.launch-history-filters .field { min-width:135px }
.launch-jobs-table td { vertical-align:middle }
.launch-jobs-table td:nth-child(2) { white-space:normal;min-width:100px }
.launch-jobs-table .actions-cell { width:auto;min-width:110px;white-space:normal }
.launch-jobs-table .actions-cell .btn { margin:2px }
.launch-status-bad { color:#f4a0a3;border-color:rgba(240,120,123,.3);background:rgba(240,120,123,.08) }
.launch-job-step { display:block;line-height:1.4;margin-top:5px;max-width:200px;white-space:normal }
.launch-progress-cell { display:grid;gap:4px;min-width:115px }
.launch-progress-cell b { font-weight:500 }
.launch-progress-cell progress { width:100%;height:5px;background:var(--surface-3);border:0;border-radius:7px;overflow:hidden;accent-color:var(--cyan) }
.launch-progress-cell progress::-webkit-progress-bar { background:var(--surface-3) }
.launch-progress-cell progress::-webkit-progress-value { background:var(--cyan) }
.launch-dialog { padding:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);width:min(960px,calc(100vw - 36px));max-width:none;max-height:calc(100dvh - 36px);overflow:auto;box-shadow:0 24px 80px #0009 }
.launch-dialog-wide { width:min(1860px,calc(100vw - 28px)) }
.launch-dialog::backdrop { background:rgba(9,11,13,.7);backdrop-filter:blur(3px) }
.launch-dialog [hidden] { display:none!important }
.launch-dialog-header { position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:17px 22px;border-bottom:1px solid var(--line);background:var(--surface) }
.launch-dialog-header h2 { font-size:20px;line-height:1.25;font-weight:500;margin:0 }
.launch-loading { padding:30px 22px;color:var(--muted) }
.launch-wizard-form { padding:0;margin:0 }
.launch-wizard-grid { display:grid;grid-template-columns:minmax(0,.84fr) minmax(0,1.1fr) minmax(0,1fr) minmax(0,1.08fr);align-items:stretch;gap:10px;padding:13px }
.launch-column { display:grid;align-content:start;gap:10px;min-width:0;border:1px solid var(--line);border-radius:10px;padding:13px;background:var(--surface-2) }
.launch-column h3 { font-size:14px;font-weight:500;margin:0 0 3px;color:var(--text) }
.launch-column .field>span { font-size:12px }
.launch-column .field input,.launch-column .field select { height:36px;font-size:12px }
.launch-label-row { display:flex;justify-content:space-between;align-items:center;gap:8px;min-width:0 }
.launch-label-row .text-button { white-space:nowrap;font-size:12px }
.launch-checklist { display:grid;gap:4px;max-height:290px;overflow:auto;padding:4px;border:1px solid #3d4146;border-radius:7px;background:#1c1e21;scrollbar-width:thin }
.launch-check-row { display:flex;align-items:center;gap:9px;min-height:48px;border-radius:6px;padding:8px;cursor:pointer;min-width:0 }
.launch-check-row:hover { background:var(--surface-2) }
.launch-check-row:has(input:checked) { background:rgba(34,139,250,.11);box-shadow:inset 0 0 0 1px rgba(34,139,250,.2) }
.launch-check-row:has(input:disabled) { opacity:.5;cursor:not-allowed }
.launch-check-row span { min-width:0;display:grid;gap:3px }
.launch-check-row b { font-size:12px;font-weight:500;overflow-wrap:anywhere }
.launch-check-row small { display:block;color:var(--muted);font-size:10px;overflow-wrap:anywhere }
.launch-dialog input[type=checkbox] { width:15px;height:15px;flex-shrink:0;margin:0;accent-color:var(--blue) }
.launch-thumb { width:49px;height:49px;object-fit:cover;border-radius:5px;border:1px solid var(--line);background:#17181a;flex-shrink:0 }
.launch-thumb-button { border:0;background:transparent;color:var(--muted);padding:0;width:49px;height:49px;flex:0 0 49px;display:grid;place-items:center;border-radius:5px;cursor:pointer }
.launch-thumb-button:hover,.launch-thumb-button:focus-visible { outline:2px solid var(--blue);outline-offset:2px }
.launch-thumb-fallback { width:49px;height:49px;border:1px solid var(--line);border-radius:5px;background:var(--surface-3);display:grid;place-items:center;font-size:18px }
.launch-picked-assets { max-height:none;grid-template-columns:repeat(auto-fill,minmax(94px,1fr));padding:6px }
.launch-picked-assets .launch-asset-row { flex-direction:column;align-items:flex-start;gap:5px;min-height:92px;cursor:default }
.launch-picked-assets .launch-thumb-button,.launch-picked-assets .launch-thumb,.launch-picked-assets .launch-thumb-fallback { width:100%;height:78px;flex-basis:auto }
.launch-picked-assets .launch-asset-row span { width:100% }
.launch-picked-assets .launch-asset-row b { display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis }
.launch-media-preview { width:min(740px,calc(100vw - 28px)) }
.launch-media-preview-body { display:grid;gap:15px;padding:16px }
.launch-media-preview-body section { display:grid;gap:8px;border-bottom:1px solid var(--line);padding-bottom:12px }
.launch-preview-media { width:100%;max-height:65vh;object-fit:contain;border-radius:8px;background:#17181a }
.launch-preview-copy { white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:13px }
.launch-ig-status,.launch-common-pixel-status,.launch-fx-quote { overflow-wrap:anywhere;display:block }
.launch-fx-quote { font-weight:600;color:var(--green) }
.launch-empty { color:var(--subtle);padding:13px 10px;margin:0;text-align:center;font-size:12px }
.launch-account-cards { display:grid;gap:9px }
.launch-account-card { display:grid;gap:9px;border:1px solid var(--line);background:rgba(26,28,31,.65);padding:12px;border-radius:8px;min-width:0 }
.launch-catalog-products { display:grid;gap:10px;min-width:0 }
.launch-product-set { border:1px solid var(--line);border-radius:8px;padding:10px;background:var(--surface-2);display:grid;gap:9px;min-width:0 }
.launch-product-set b,.launch-product-set small { overflow-wrap:anywhere }
.launch-product-set>input[type=search] { width:100%;min-width:0;background:#1c1e21;padding:8px;border:1px solid #3d4146;border-radius:7px;color:var(--text) }
.launch-product-thumbnail { width:100%;height:125px;object-fit:contain;border-radius:6px;border:1px solid var(--line);background:#17181a }
.launch-product-list { max-height:230px }
.launch-product-row .text-button { margin-left:auto;white-space:normal;flex-shrink:0;max-width:75px;text-align:right }
.launch-account-title { display:flex;justify-content:space-between;align-items:flex-start;gap:10px;min-width:0 }
.launch-account-title b { font-size:13px;font-weight:500;overflow-wrap:anywhere }
.launch-account-title small { display:block;font-size:10px;color:var(--subtle);overflow-wrap:anywhere;margin-top:3px }
.launch-active-check { display:flex;align-items:flex-start;gap:8px;min-width:0;color:var(--muted);font-size:12px;cursor:pointer;line-height:1.45 }
.launch-active-check input { margin-top:2px!important }
.launch-setting-list { display:grid;gap:8px;margin:0 }
.launch-setting-list>div { display:grid;gap:4px;min-width:0;font-size:12px;align-content:start }
.launch-setting-list dt { color:var(--muted);font-size:11px;min-width:0 }
.launch-setting-list dd { color:var(--text);margin:0;min-height:33px;display:flex;align-items:center;border:1px solid var(--line);background:var(--surface);border-radius:6px;padding:6px 9px;overflow-wrap:anywhere }
.launch-direct-settings,.launch-identity-fields { display:grid;gap:8px;min-width:0 }
.launch-direct-settings .field,.launch-direct-settings input,.launch-direct-settings select { min-width:0;width:100% }
.launch-identity-settings { min-width:0;color:var(--muted);font-size:11px;overflow-wrap:anywhere }
.launch-identity-settings summary { cursor:pointer;line-height:1.45;padding:5px 0 }
.launch-identity-settings[open] .launch-identity-fields { padding:8px 0 }
.launch-activation-note { font-size:11px;line-height:1.4;color:var(--muted) }
.launch-config-actions { display:flex;flex-wrap:wrap;gap:8px;align-items:center }
.launch-config-actions .text-button { font-size:11px;white-space:normal }
.launch-override-notice { padding:8px 10px;border:1px solid rgba(72,192,211,.28);border-radius:6px;background:rgba(72,192,211,.06);color:#a0dce2;font-size:11px }
.launch-preview-title { padding-top:3px }
.launch-preview-stats { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px }
.launch-preview-stats>div { display:grid;gap:4px;background:#1c2024;border:1px solid var(--line);padding:10px;border-radius:7px }
.launch-preview-stats>div span { color:var(--muted);font-size:11px }
.launch-preview-stats>div strong { font-size:18px;font-weight:500;line-height:1.3;overflow-wrap:anywhere }
.launch-preview-stats>.launch-budget-total { grid-column:1/-1;border-color:#385057;background:rgba(72,192,211,.07) }
.launch-budget-total strong { color:#a0dce2 }
.launch-preview-plan { display:grid;gap:8px;max-height:290px;overflow:auto;scrollbar-width:thin }
.launch-name-example { display:grid;gap:4px;padding:11px;border:1px solid var(--line);border-radius:7px;background:#222426;font-size:12px;overflow-wrap:anywhere }
.launch-plan-note { display:grid;gap:3px;padding:4px 2px;font-size:11px;overflow-wrap:anywhere }
.launch-name-example .field-label { color:var(--subtle);font-size:11px }
.launch-name-example .mono { font-size:11px }
.launch-wizard-footer { position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 22px;border-top:1px solid var(--line);background:var(--surface);z-index:1 }
.launch-validation { flex:1;min-width:0;font-size:12px;max-height:130px;overflow:auto;scrollbar-width:thin }
.launch-validation-list { color:#e9b67b;margin:0;padding:0 0 0 16px;overflow-wrap:anywhere }
.launch-validation-ok { color:#83d6ac }
.launch-error { color:#f29ea0!important;overflow-wrap:anywhere;margin:0 }
.launch-detail-actions { display:flex;gap:8px;flex-wrap:wrap;padding:13px 17px;border-bottom:1px solid var(--line-soft) }
.launch-detail-body { padding:16px 18px;overflow:auto }
.launch-detail-summary { display:flex;gap:13px;align-items:center;margin-bottom:12px }
.launch-detail-body .actions-cell { width:auto;text-align:left;white-space:normal;overflow-wrap:anywhere }
.launch-log { display:block;margin:0 16px 16px;border:1px solid var(--line);background:#17181a;border-radius:8px;padding:13px;color:#c4cbd3;max-height:330px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace }
@media(max-width:1100px) {
  .launch-wizard-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .launch-history-metrics { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
@media(max-width:640px) {
  .launch-history-filters .field { min-width:0;flex:1 1 40% }
  .launch-history-filters .field:first-child { flex:1 1 100%;min-width:0 }
  .launch-history-metric { padding:11px 13px;gap:4px }
  .launch-history-metric strong { font-size:20px }
  .launch-dialog { width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:10px }
  .launch-dialog-header { padding:12px }
  .launch-dialog-header h2 { font-size:18px }
  .launch-wizard-grid { display:flex;flex-direction:column;gap:10px;padding:10px }
  .launch-column { width:100%;padding:11px }
  .launch-setting-list { grid-template-columns:1fr }
  .launch-preview-stats { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .launch-wizard-footer { display:grid;gap:10px;padding:11px 12px }
  .launch-wizard-footer .btn { width:100% }
  .launch-validation { max-height:90px }
  .launch-jobs-table td:nth-child(2),.launch-job-step,.launch-progress-cell { min-width:0;max-width:none }
  .launch-jobs-table .actions-cell { min-width:0 }
  .launch-detail-body { padding:12px }
  .launch-detail-actions { padding:10px 12px }
  .launch-log { margin:0 10px 10px }
}
