:root{--ink:#0f172a;--muted:#64748b;--line:#dbe4ef;--bg:#f6f8fb;--panel:#fff;--blue:#2f6df6;--blue-soft:#edf4ff;--green:#16a34a;--green-soft:#e9f8ef;--red:#ef4444;--red-soft:#fff1f1;--amber:#b7791f;--amber-soft:#fff8e8;--purple:#9b5cff}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Arial,"Microsoft YaHei",sans-serif}
button,input,select,textarea{font:inherit}
a{color:inherit;text-decoration:none}
.app{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:100vh}
aside{background:#fff;border-right:1px solid var(--line);padding:22px 14px;position:sticky;top:0;height:100vh}
.brand{font-weight:900;font-size:19px;margin:4px 10px 4px}
.tenant{color:var(--muted);font-size:13px;margin:0 10px 24px}
.menu-title{font-size:12px;letter-spacing:.12em;color:var(--muted);font-weight:800;margin:18px 10px 10px;text-transform:uppercase}
.nav{display:flex;flex-direction:column;gap:6px}
.nav a{padding:12px 14px;border-radius:8px;color:#42526b;display:flex;gap:10px;align-items:center}
.nav a.active{background:#377cf6;color:#fff;font-weight:800}
.nav a:hover{background:#eef4ff;color:#1f4fc9}
.nav a.active:hover{background:#377cf6;color:#fff}
main{padding:20px 28px 40px}
.wrap{max-width:1280px;margin:0 auto}
.page-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:18px}
h1,h2,h3{margin:0}
h1{font-size:30px}
h2{font-size:21px}
h3{font-size:17px}
.sub{color:var(--muted);margin:7px 0 0;line-height:1.45}
.card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:20px;margin-bottom:16px;box-shadow:0 1px 4px rgba(15,23,42,.04)}
.card-head{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:14px}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}
.metric{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:18px}
.metric span{display:block;color:var(--muted);font-size:13px;margin-bottom:8px}
.metric strong{font-size:28px}
.metric small{display:block;color:var(--muted);margin-top:7px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.field{display:flex;flex-direction:column;gap:7px;margin-bottom:12px}
.field.full{grid-column:1/-1}
label{font-weight:800;font-size:14px}
.hint{color:var(--muted);font-size:13px;line-height:1.35}
input,select,textarea{border:1px solid #d5dfeb;border-radius:9px;background:#fff;padding:11px 12px;outline:none;width:100%}
textarea{min-height:92px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:#4a7fff;box-shadow:0 0 0 3px rgba(47,109,246,.12)}
.btn{border:1px solid #cbd7e5;background:#fff;color:#10203a;border-radius:9px;padding:10px 14px;font-weight:800;cursor:pointer}
.btn.primary{background:#2f6df6;border-color:#2f6df6;color:#fff}
.btn.green{background:#16a34a;border-color:#16a34a;color:#fff}
.btn.red{background:#ef4444;border-color:#ef4444;color:#fff}
.btn:disabled{opacity:.55;cursor:not-allowed}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff}
table{width:100%;border-collapse:collapse;min-width:860px}
th,td{padding:13px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;font-size:14px}
th{background:#f1f5f9;color:#475569;font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.empty{text-align:center;color:var(--muted);padding:28px}
.chip{display:inline-flex;align-items:center;border:1px solid #d8e2ec;border-radius:999px;padding:4px 8px;font-size:12px;color:#405064;background:#f8fafc}
.chip.ok{background:var(--green-soft);border-color:#bfe5de;color:#0d5d56}
.chip.warn{background:var(--amber-soft);border-color:#ffd88a;color:var(--amber)}
.chip.bad{background:var(--red-soft);border-color:#ffbbb4;color:var(--red)}
.notice{border:1px solid #bdd1ff;background:#eef4ff;color:#163b8f;border-radius:8px;padding:12px;font-size:13px;line-height:1.5;margin-bottom:12px}
.warning{border-color:#ffc9aa;background:#fff7ed;color:#7c2d12}
.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.55);display:none;align-items:center;justify-content:center;padding:18px;z-index:50}
.modal{width:min(920px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:14px;box-shadow:0 18px 60px rgba(15,23,42,.28)}
.modal-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:22px 24px;border-bottom:1px solid var(--line)}
.modal-body{padding:22px 24px}
.modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:18px 24px;border-top:1px solid var(--line)}
.close{border:0;background:transparent;font-size:24px;cursor:pointer;color:var(--muted)}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.tab{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 12px;cursor:pointer}
.tab.active{background:#2f6df6;color:#fff;border-color:#2f6df6}
.stepper{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:16px}
.step{border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff;color:#475569;font-size:13px}
.step.done{border-color:#86efac;background:#f0fdf4;color:#166534;font-weight:800}
.copybox{font-family:Consolas,"Courier New",monospace;font-size:12px;min-height:180px;white-space:pre;overflow:auto;background:#0f172a;color:#e6edf7;border-color:#263247}
.toast{position:fixed;right:18px;bottom:18px;background:#111827;color:#fff;border-radius:8px;padding:12px 15px;display:none;z-index:80}
.offer-top{align-items:center;padding:4px 0 18px;border-bottom:1px solid var(--line);margin-bottom:30px}.page-title-row{display:flex;align-items:center;gap:28px}.back-link{color:#0f172a;font-weight:800}.count-pill{display:inline-flex;align-items:center;justify-content:center;min-width:54px;height:34px;margin-left:10px;border:1px solid var(--line);border-radius:999px;background:#f8fafc;font-size:18px;color:#0f172a}.btn.big{padding:14px 22px;border-radius:13px}.offer-filter-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:30px 36px;margin:0 0 30px;display:grid;grid-template-columns:minmax(280px,1fr) 180px 180px;gap:18px;box-shadow:0 2px 7px rgba(15,23,42,.04)}.offer-search{font-size:17px;padding:15px 18px;border-radius:13px}.offer-table-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:0 36px 22px;box-shadow:0 2px 7px rgba(15,23,42,.04)}.table-wrap.plain{border:0;border-radius:0}.offer-table{min-width:1220px}.offer-table th{background:#fff;text-transform:none;letter-spacing:0;font-size:15px;color:#718096;padding-top:20px}.offer-table td{font-size:15px;padding:20px 13px}.select-cell{width:48px;color:#3b82f6;text-align:center}.muted-strong{color:#475569;font-weight:800}.offer-code{color:#2563eb;font-weight:900;font-family:Consolas,monospace}.url-line{display:block;max-width:410px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:5px}.country-pill{display:inline-flex;align-items:center;border:1px solid #e4eaf2;background:#f8fafc;border-radius:999px;padding:4px 12px;font-weight:900}.icon-btn{border:1px solid #dbe4ef;background:#f8fafc;border-radius:12px;padding:9px 13px;margin-left:8px;font-weight:900;cursor:pointer}.create-offer-modal{width:min(980px,100%);border-radius:17px}.create-offer-modal .modal-head{border-bottom:0;padding:30px 36px 12px}.create-offer-modal .modal-body{padding:18px 36px}.create-offer-modal h2{font-size:30px}.required{color:#ef4444}.segmented{display:flex;gap:12px}.segment{border:1px solid #dbe4ef;background:#fff;border-radius:16px;padding:14px 22px;font-weight:900;cursor:pointer}.segment.active{border-color:#2f6df6;background:#edf4ff;color:#155eef}.divider{height:1px;background:var(--line);margin:14px 0 26px}.optional-title{color:#334155;font-weight:800;margin:24px 0 14px}.compact-grid{grid-template-columns:1fr 1fr}.inline-fields{display:grid;grid-template-columns:140px 1fr;gap:12px}.material-hero{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:22px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px;margin-bottom:18px;align-items:center}.material-hero h2{font-size:26px;line-height:1.22;margin:12px 0}.material-hero p{color:#475569;line-height:1.55}.material-hero img,.image-placeholder{width:100%;aspect-ratio:4/3;object-fit:contain;background:#f8fafc;border:1px solid #e5edf5;border-radius:10px}.image-placeholder{display:flex;align-items:center;justify-content:center;color:#94a3b8}.material-section{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px 28px;margin-bottom:18px;box-shadow:0 1px 4px rgba(15,23,42,.04)}.material-section h2{font-size:24px;margin-bottom:22px}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px 80px}.info-item span{display:block;color:#64748b;margin-bottom:8px}.info-item strong{display:block;font-size:18px;font-weight:500;line-height:1.45;overflow-wrap:anywhere}.stack{display:grid;gap:18px}.material-block{background:#fff;border-radius:8px;padding:0}.material-block h3{color:#64748b;font-size:17px;font-weight:500;margin:0 0 12px}.material-block p,.material-block li{font-size:18px;line-height:1.55}.material-block ul{margin:0;padding-left:24px}.material-block li+li{margin-top:8px}.warn-block{background:#fffbea;border-radius:8px;padding:14px 16px}.risk-block{background:#fff1f1;border-radius:8px;padding:14px 16px;color:#b91c1c}.muted{color:#64748b}
.progress-shell{min-height:calc(100vh - 40px);display:flex;align-items:center;justify-content:center}.progress-panel{width:min(980px,100%);background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 20px 80px rgba(15,23,42,.16);overflow:hidden}.modal-head.clean{border-bottom:0;padding:28px 36px 10px}.modal-head.clean h2{font-size:30px}.progress-body{padding:28px 36px 34px}.job-line{display:flex;gap:16px;align-items:center;color:#64748b;margin:12px 0 18px}.job-line code{background:#f1f5f9;border-radius:6px;padding:3px 7px;color:#475569}.live-dot{width:16px;height:16px;border-radius:50%;background:#e11d48;box-shadow:0 0 0 5px rgba(225,29,72,.12)}.progress-top{display:flex;justify-content:space-between;align-items:center;font-size:20px;color:#334155;margin-bottom:12px}.progress-track{height:12px;background:#e5eaf2;border-radius:999px;overflow:hidden}.progress-track div{height:100%;width:0;background:#2f6df6;border-radius:999px;transition:width .35s ease}.current-box{display:flex;align-items:center;gap:18px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:16px;margin:36px 0 34px;padding:24px 28px;font-size:22px;color:#0f172a}.spinner{width:28px;height:28px;border:3px solid #bfdbfe;border-top-color:#2563eb;border-radius:50%;animation:spin 1s linear infinite}.progress-steps{display:grid;gap:18px}.progress-step{display:flex;align-items:center;gap:18px;font-size:20px;color:#64748b}.progress-step .step-state{width:34px;height:34px;border:3px solid #d1d9e4;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}.progress-step.done{color:#15803d}.progress-step.done .step-state{border-color:#16a34a}.progress-step.done .step-state::after{content:"";width:9px;height:15px;border:solid #16a34a;border-width:0 3px 3px 0;transform:rotate(45deg);margin-top:-3px}.progress-step.running{color:#2563eb;font-weight:900}.progress-step.running .step-state{border-color:#bfdbfe;border-top-color:#2563eb;animation:spin 1s linear infinite}.progress-step.failed{color:#b91c1c}.progress-step.failed .step-state{border-color:#ef4444}.progress-step code{background:#eff6ff;color:#2563eb;border-radius:7px;padding:4px 9px;font-size:14px}.step-icon{width:22px;text-align:center;color:#64748b;font-weight:900}.progress-error{margin-top:20px;background:#fff1f1;border:1px solid #fecaca;color:#b91c1c;border-radius:10px;padding:13px 15px}.progress-actions{justify-content:flex-end;margin-top:26px}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:980px){.app{grid-template-columns:1fr}aside{position:static;height:auto}.metrics,.grid,.stepper{grid-template-columns:1fr}.page-head{display:block}.toolbar{margin-top:12px}}
@media(max-width:980px){.offer-filter-card,.material-hero,.info-grid{grid-template-columns:1fr}.offer-table-card,.offer-filter-card{padding:18px}.page-title-row{display:block}.compact-grid,.inline-fields{grid-template-columns:1fr}}
.store-product-links-section{border:1px solid #dbe7f5;border-radius:12px;background:#f8fbff;padding:16px 18px;margin:4px 0 18px}.store-product-links-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.store-product-links-head label{display:block;font-weight:900;color:#243b53}.store-product-links-head .hint{margin-top:6px}.store-product-link-row{display:grid;grid-template-columns:28px minmax(0,1fr) 38px;align-items:center;gap:10px;margin-top:10px}.store-product-link-index{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#e8f1ff;color:#155eef;font-size:12px;font-weight:900}.store-product-link-input{width:100%;min-width:0}.store-product-link-remove{margin:0;padding:7px 10px;border-radius:9px;color:#b42318;background:#fff5f4;border-color:#f2c6c2}.store-product-links-section .btn:disabled{opacity:.5;cursor:not-allowed}@media(max-width:640px){.store-product-links-head{display:block}.store-product-links-head .btn{margin-top:12px}.store-product-link-row{grid-template-columns:24px minmax(0,1fr) 34px;gap:7px}}
.store-product-snapshot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.store-product-snapshot{border:1px solid #dbe7f5;border-radius:10px;background:#f8fbff;padding:16px}.store-product-snapshot.failed{border-color:#f3c5c2;background:#fff7f6}.store-product-snapshot-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.store-product-snapshot h3{font-size:17px;line-height:1.4;margin:14px 0 8px;overflow-wrap:anywhere}.store-product-snapshot p{color:#64748b;line-height:1.45;overflow-wrap:anywhere}.store-product-snapshot ul{margin:12px 0 0;padding-left:20px}.store-product-snapshot li{line-height:1.45}.store-product-snapshot-link{margin-top:14px;font-size:12px;overflow-wrap:anywhere}@media(max-width:980px){.store-product-snapshot-grid{grid-template-columns:1fr}}
.promo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.promo-card{border:1px solid #dbe4ef;background:#f8fafc;border-radius:10px;padding:16px;min-height:104px}.promo-card span{display:block;color:#64748b;font-weight:800;margin-bottom:10px}.promo-card strong{display:block;color:#0f172a;font-size:19px;line-height:1.35;overflow-wrap:anywhere}.primary-promo{background:#ecfdf5;border-color:#99f6e4}.primary-promo strong{font-size:28px;color:#047857}.promo-messages{grid-column:1/-1;border:1px solid #dbe4ef;border-radius:10px;padding:18px;background:#fff}.promo-messages h3{margin:0 0 12px;color:#334155}.promo-messages ul{margin:0;padding-left:24px}.promo-messages li{font-size:17px;line-height:1.5}
.audit-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px}.audit-head strong{font-size:24px}.audit-head p{margin:8px 0 0;color:#64748b}.audit-score{width:82px;height:82px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:900;border:8px solid #dbe4ef;background:#fff}.audit-score.ok{border-color:#86efac;color:#15803d}.audit-score.warn{border-color:#facc15;color:#a16207}.audit-score.bad{border-color:#fecaca;color:#dc2626}.audit-track{height:10px;background:#e5eaf2;border-radius:999px;overflow:hidden;margin-bottom:16px}.audit-track div{height:100%;background:#2563eb;border-radius:999px}.field-chip-row{display:flex;gap:10px;flex-wrap:wrap}.field-chip{display:inline-flex;align-items:center;border-radius:999px;padding:7px 10px;font-size:13px;font-weight:800;border:1px solid #dbe4ef;background:#f8fafc}.field-chip.ok{background:#ecfdf5;border-color:#bbf7d0;color:#166534}.field-chip.bad{background:#fff1f1;border-color:#fecaca;color:#b91c1c}.gap-box{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:16px;border:1px solid #fed7aa;background:#fff7ed;color:#7c2d12;border-radius:10px;padding:13px}.gap-box span{background:#fff;border:1px solid #fed7aa;border-radius:999px;padding:5px 9px;font-weight:800}.audit-note{color:#475569;line-height:1.55;margin:16px 0 0}
.fact-table{display:grid;grid-template-columns:1fr 1fr;gap:10px;border:1px solid #e2e8f0;border-radius:10px;padding:12px;background:#f8fafc}.fact-table div{background:#fff;border:1px solid #e5edf5;border-radius:8px;padding:11px 12px}.fact-table span{display:block;color:#64748b;font-size:13px;margin-bottom:6px}.fact-table strong{font-size:15px;line-height:1.4;font-weight:700;overflow-wrap:anywhere}
@media(max-width:980px){.promo-grid{grid-template-columns:1fr}}
@media(max-width:980px){.audit-head{align-items:flex-start}.audit-score{width:66px;height:66px;font-size:18px;border-width:7px}.fact-table{grid-template-columns:1fr}}
.ads-page{max-width:1180px;margin:26px auto 0}.ads-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.ads-title-row h1{font-size:22px;line-height:1.2}.ads-count{color:#475569;font-size:16px;margin-top:12px;white-space:nowrap}.ads-mcc-card{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border:1px solid #e1e8f0;border-radius:10px;padding:18px 22px;margin-bottom:16px;box-shadow:0 1px 5px rgba(15,23,42,.05)}.ads-mcc-main h2{font-size:20px;margin:12px 0 6px}.ads-mcc-main p{margin:0;color:#64748b}.ads-mcc-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.ads-account-card{background:#fff;border:1px solid #e1e8f0;border-radius:10px;box-shadow:0 1px 5px rgba(15,23,42,.05);overflow:hidden}.ads-table-wrap{border:0;border-radius:0}.ads-account-table{min-width:1040px}.ads-account-table th{background:#f8fafc;text-transform:none;letter-spacing:0;font-size:13px;color:#667085;padding:14px 18px}.ads-account-table td{padding:18px;border-bottom:1px solid #e5eaf0;font-size:14px}.ads-account-table tr:last-child td{border-bottom:0}.ads-account-table strong{font-size:15px}.offer-link{color:#4f46e5;font-weight:800}.ads-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #e5eaf0;padding:14px 18px;color:#475569;font-size:14px}.ads-pagination select{width:auto;min-width:72px;padding:7px 10px;border-radius:6px}
@media(max-width:980px){.ads-page{margin-top:10px}.ads-title-row,.ads-mcc-card,.ads-pagination{display:block}.ads-count,.ads-mcc-actions{margin-top:12px}.ads-account-table{min-width:900px}}
.launch-head{display:flex;align-items:center;justify-content:center;gap:24px;border-bottom:1px solid var(--line);padding:0 0 18px;margin-bottom:34px;text-align:center;position:relative}.launch-title-block{text-align:center;min-width:320px}.launch-title-block .sub{margin-top:7px}.launch-head h1{font-size:22px}.launch-head .back-link{position:absolute;left:0;font-size:14px;color:#64748b}.launch-steps{display:grid;grid-template-columns:90px 1fr 90px 1fr 90px 1fr 90px;align-items:start;gap:12px;max-width:1050px;margin:0 auto 42px}.launch-step{text-align:center;color:#94a3b8}.launch-step strong{display:inline-flex;width:46px;height:46px;border-radius:50%;align-items:center;justify-content:center;border:3px solid #dbe4ef;background:#fff;font-size:20px;margin-bottom:10px}.launch-step span{display:block;font-weight:900}.launch-step small{display:block;margin-top:4px;font-size:12px}.launch-step.active{color:#2563eb}.launch-step.active strong{border-color:#2563eb;background:#eff6ff}.launch-line{height:1px;border-top:2px dashed #dbe4ef;margin-top:22px}.launch-card,.creative-empty,.creative-result{max-width:1050px;margin:0 auto 28px}.launch-card{background:#fff;border:1px solid #eadcff;border-radius:13px;padding:22px 24px;box-shadow:0 1px 12px rgba(124,58,237,.08)}.launch-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.creative-progress{border:1px solid #edf0f5;border-radius:12px;padding:18px;background:linear-gradient(90deg,#fff,#fbfdff)}.creative-types{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.creative-type{border:1px solid #e1e7f0;background:#fff;border-radius:10px;min-height:78px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#64748b}.creative-type strong{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;border:3px solid #dbe4ef;margin-bottom:6px}.creative-type.active{border-color:#d8b4fe;background:#fbf7ff;color:#7e22ce}.creative-type.active strong{border-color:#a855f7}.creative-type.disabled{opacity:.58}.task-status{border-top:1px solid #edf0f5;margin:14px 0 0;padding-top:14px;color:#475569}.creative-empty{border:2px dashed #dbe4ef;border-radius:14px;background:#fff;min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#64748b}.creative-empty h2{color:#0f172a;margin:12px 0 8px}.magic-icon{width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#f3e8ff;color:#9333ea;font-size:28px}.creative-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:24px;box-shadow:0 1px 10px rgba(15,23,42,.06)}.creative-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:18px}.creative-card-head h2{margin-top:10px;line-height:1.25}.creative-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.creative-block{border:1px solid #e3eaf3;border-radius:10px;padding:16px;background:#fff}.creative-block h3{font-size:16px;color:#334155;margin:0 0 12px}.creative-block ol,.creative-block ul{margin:0;padding-left:22px}.creative-block li{line-height:1.5;margin:6px 0}.keyword-cloud{display:flex;flex-wrap:wrap;gap:8px}.keyword-cloud span{border:1px solid #dbe4ef;background:#f8fafc;border-radius:999px;padding:7px 10px;font-weight:800;color:#334155}.launch-footer{position:fixed;left:260px;right:0;bottom:0;z-index:500;background:rgba(246,248,251,.98);border-top:1px solid var(--line);display:flex;justify-content:center;align-items:center;gap:20px;padding:15px;box-shadow:0 -8px 22px rgba(15,23,42,.08)}.launch-footer span{color:#64748b;font-weight:800}
.launch-head{display:flex;align-items:center;justify-content:flex-start}.launch-title-block{text-align:center;min-width:240px;margin-left:128px}
#creativeStepPanel .launch-title-row{display:grid;grid-template-columns:minmax(260px,390px) minmax(220px,248px) auto;align-items:center;justify-content:space-between;gap:16px}
#creativeStepPanel .creative-intro{min-width:0}
#creativeStepPanel .creative-intro h2{margin:0}
#creativeStepPanel .creative-intro .sub{margin-top:7px}
#creativeStepPanel .creative-language-field{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;margin:0;min-width:0;white-space:nowrap;color:#475569;font-size:13px}
#creativeStepPanel .creative-language-field span{font-weight:900}
#creativeStepPanel .creative-language-field select{width:100%;min-width:0;padding:9px 10px;border-radius:8px}
#creativeStepPanel #generateBtn{white-space:nowrap}
@media(max-width:980px){.launch-head{display:grid;grid-template-columns:1fr;justify-items:center;gap:10px}.launch-head .back-link{position:static;justify-self:start}.launch-title-block{min-width:0;width:100%;margin-left:0}.launch-steps{grid-template-columns:1fr;gap:10px}.launch-line{display:none}.launch-title-row,.creative-card-head{display:block}.creative-columns{grid-template-columns:1fr}.creative-types{grid-template-columns:1fr}.launch-footer{left:0}}
.creative-card-head>div:first-child{min-width:0;flex:1;max-width:100%}.creative-final-url{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:break-word}.creative-final-url a{overflow-wrap:anywhere;word-break:break-all}
@media(max-width:980px){#creativeStepPanel .launch-title-row{display:block}}
.score-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.score-grid span{display:flex;justify-content:space-between;gap:12px;border:1px solid #e3eaf3;background:#f8fafc;border-radius:8px;padding:9px 10px;color:#475569}.score-grid strong{color:#0f172a}.muted-cloud span{background:#f1f5f9;color:#64748b;font-weight:600}
.launch-step.done{color:#2563eb}.launch-step.done strong{border-color:#2563eb;background:#2f6df6;color:#fff}.launch-step.done strong::after{content:"✓";font-size:20px}.launch-step.done strong{font-size:0}.account-select-table input[type=radio],.account-select-table input[type=checkbox]{width:18px;height:18px}
.mcc-top-card{display:grid;grid-template-columns:minmax(0,1fr) 180px 140px;gap:14px;align-items:stretch;border:1px solid #c7d8f6;background:#f8fbff;border-radius:10px;padding:14px 16px;margin:0 0 14px}.mcc-top-card span,.mcc-id-box span{display:block;color:#64748b;font-size:12px;font-weight:900;margin-bottom:6px}.mcc-top-card strong{display:block;color:#0f172a;font-size:18px;line-height:1.25;overflow-wrap:anywhere}.mcc-top-card p{margin:7px 0 0;color:#64748b}.mcc-id-box{border-left:1px solid #dbe6f5;padding-left:14px}.ads-subtable-title{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:12px 0 10px}.ads-subtable-title h3{font-size:17px}.ads-subtable-title .sub{margin-top:5px}
@media(max-width:720px){.mcc-top-card{grid-template-columns:1fr}.mcc-id-box{border-left:0;border-top:1px solid #dbe6f5;padding-left:0;padding-top:12px}}
.creative-score-panel{display:grid;grid-template-columns:210px minmax(230px,1fr) minmax(260px,1.2fr);gap:16px;align-items:stretch;border:1px solid #dce7f3;background:linear-gradient(135deg,#f8fbff,#fff);border-radius:12px;padding:16px;margin:0 0 20px}.creative-score-main,.score-radar,.score-bars{border:1px solid #e3eaf3;background:#fff;border-radius:10px;padding:15px;min-width:0}.score-kicker{display:block;color:#64748b;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;margin-bottom:8px}.score-main-number{display:flex;align-items:flex-end;gap:3px;font-size:46px;line-height:1;font-weight:900;color:#2563eb}.score-main-number small{font-size:18px;color:#64748b;margin-bottom:5px}.score-main-number.ok{color:#059669}.score-main-number.warn{color:#d97706}.score-main-number.bad{color:#dc2626}.creative-score-main .chip{margin:12px 0 8px}.creative-score-main p{margin:0;color:#64748b;line-height:1.45}.score-radar{position:relative;min-height:206px;display:flex;align-items:center;justify-content:center;overflow:hidden}.score-radar-ring{position:relative;width:138px;height:138px;border-radius:50%;border:1px solid #cbdaf0;background:repeating-conic-gradient(from 0deg,#eef4ff 0 1deg,transparent 1deg 51deg),radial-gradient(circle,#fff 0 39%,#eaf2ff 40% 41%,transparent 42% 100%);display:flex;align-items:center;justify-content:center}.score-radar-fill{position:absolute;border-radius:50%;background:rgba(47,109,246,.18);border:2px solid rgba(47,109,246,.44)}.score-radar-ring strong{position:relative;z-index:1;font-size:28px;color:#0f172a}.score-axis{position:absolute;inset:10px;pointer-events:none}.score-axis span{position:absolute;color:#64748b;font-size:12px;font-weight:800;background:rgba(255,255,255,.86);padding:2px 5px;border-radius:999px}.score-axis span:nth-child(1){top:0;left:50%;transform:translateX(-50%)}.score-axis span:nth-child(2){top:24px;right:8px}.score-axis span:nth-child(3){top:82px;right:0}.score-axis span:nth-child(4){right:34px;bottom:8px}.score-axis span:nth-child(5){left:34px;bottom:8px}.score-axis span:nth-child(6){top:82px;left:0}.score-axis span:nth-child(7){top:24px;left:8px}.score-bars-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}.score-bars-head strong{color:#0f172a}.score-bars-head span{color:#64748b;font-size:12px}.score-bar{display:grid;grid-template-columns:58px 1fr 34px;gap:10px;align-items:center;margin-top:9px;color:#475569;font-size:13px}.score-bar span{font-weight:800}.score-bar div{height:8px;background:#edf2f7;border-radius:999px;overflow:hidden}.score-bar i{display:block;height:100%;background:#2f6df6;border-radius:999px}.score-bar strong{text-align:right;color:#0f172a}
@media(max-width:1180px){.creative-score-panel{grid-template-columns:1fr 1fr}.score-bars{grid-column:1/-1}}
@media(max-width:720px){.creative-score-panel{grid-template-columns:1fr;padding:12px}.score-radar{min-height:190px}.score-main-number{font-size:40px}}
.creative-result{padding-bottom:88px}
.config-panel{max-width:1180px}.config-section{border:1px solid #e1e8f0;background:#fff;border-radius:10px;padding:18px;margin:0 0 18px;box-shadow:0 1px 5px rgba(15,23,42,.04)}.config-section:last-child{margin-bottom:0}.config-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #edf1f6;padding-bottom:13px;margin-bottom:16px}.config-section-head h2{font-size:19px;line-height:1.25;margin:0;color:#0f172a}.config-section-head p{margin:6px 0 0;color:#64748b}.config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.config-grid.one{grid-template-columns:1fr}.limited-field{display:block;min-width:0}.limited-field span{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#344054;font-weight:900;font-size:13px;margin-bottom:7px}.limited-field em{font-style:normal;color:#94a3b8;font-weight:800;font-size:12px;white-space:nowrap}.limited-field input,.limited-field textarea,.limited-field select,.money-input input,.money-input select,.bid-input input,.keyword-edit-row input,.keyword-edit-row select,.keyword-bulk-toolbar select,.negative-add-row input,.negative-add-row select,.sitelink-row input{width:100%;border:1px solid #d7e0eb;border-radius:7px;background:#fff;color:#0f172a;font-size:14px;line-height:1.35;padding:10px 11px;outline:none}.limited-field textarea{min-height:78px;resize:vertical}.limited-field input:focus,.limited-field textarea:focus,.limited-field select:focus,.bid-input input:focus,.keyword-edit-row input:focus,.sitelink-row input:focus{border-color:#2f6df6;box-shadow:0 0 0 3px rgba(47,109,246,.12)}.limited-field input[disabled]{background:#f8fafc;color:#64748b}.money-input{display:grid;grid-template-columns:132px 1fr;gap:8px}.bid-input{display:grid;grid-template-columns:42px minmax(0,1fr) 72px;align-items:center}.currency-prefix{height:40px;display:flex;align-items:center;justify-content:center;border:1px solid #d7e0eb;border-right:0;border-radius:7px 0 0 7px;background:#f8fafc;color:#475569;font-weight:900}.bid-input input{border-radius:0}.bid-input #cpcCurrencyCode{height:40px;display:flex;align-items:center;justify-content:center;border:1px solid #d7e0eb;border-left:0;border-radius:0 7px 7px 0;background:#f8fafc;color:#2563eb;font-size:12px;font-weight:900}.auto-cpc-box{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px dashed #c9d7ec;background:#f8fbff;border-radius:9px;padding:13px 14px;margin:14px 0;color:#475569}.auto-cpc-box strong{color:#0f172a}.config-subhead{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:18px 0 11px}.config-subhead strong{font-size:15px;color:#0f172a}.config-subhead>div{display:flex;gap:8px;flex-wrap:wrap}.keyword-bulk-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e1e8f0;background:#f8fbff;border-radius:9px;padding:9px 10px;margin:0 0 10px}.keyword-bulk-toolbar label{display:flex;align-items:center;gap:8px;color:#475569;font-weight:800}.keyword-bulk-toolbar input[type=checkbox],.keyword-select{width:16px;height:16px;padding:0;accent-color:#2f6df6}.keyword-bulk-toolbar>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.keyword-bulk-toolbar select{width:180px;padding:8px 10px}.btn.soft{background:#fff1f1;color:#dc2626;border-color:#fecaca}.keyword-edit-list{display:grid;gap:9px}.keyword-edit-row{display:grid;grid-template-columns:18px minmax(240px,1fr) 110px 100px 34px;gap:8px;align-items:center}.keyword-edit-row span{color:#94a3b8;font-size:13px}.keyword-modal{width:min(520px,100%)}.keyword-modal textarea{min-height:176px}.text-x{width:34px;height:34px;border:1px solid #e2e8f0;border-radius:7px;background:#fff;color:#94a3b8;font-size:18px;line-height:1;cursor:pointer}.text-x:hover{border-color:#fecaca;color:#dc2626;background:#fff1f1}.negative-add-row{display:grid;grid-template-columns:minmax(220px,1fr) 150px auto;gap:9px;margin-bottom:12px}.negative-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}.negative-tabs span{border:1px solid #dbe4ef;background:#f8fafc;border-radius:999px;padding:7px 11px;color:#475569;font-size:13px;font-weight:900}.negative-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.negative-group{border:1px solid #e3eaf3;background:#fbfcfe;border-radius:9px;padding:12px;min-width:0}.negative-group-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.negative-group-head strong{color:#0f172a}.negative-group-head span{color:#64748b;font-size:12px;font-weight:900}.negative-chip-list{display:flex;flex-wrap:wrap;gap:7px;max-height:190px;overflow:auto}.negative-chip-list span{display:inline-flex;align-items:center;gap:5px;border:1px solid #dbe4ef;background:#fff;border-radius:999px;padding:6px 8px;color:#475569;font-size:12px;font-weight:800}.negative-chip-list b{color:#94a3b8}.negative-chip-list button{border:0;background:transparent;color:#94a3b8;cursor:pointer}.negative-chip-list em{color:#94a3b8;font-style:normal}.sitelink-list{display:grid;gap:10px}.sitelink-row{display:grid;grid-template-columns:minmax(150px,.9fr) minmax(180px,1fr) minmax(180px,1fr) minmax(220px,1.2fr) 34px;gap:8px;align-items:start;border:1px solid #e8edf4;background:#fbfcfe;border-radius:9px;padding:10px}
@media(max-width:980px){.config-panel{max-width:1050px}.config-grid,.negative-groups{grid-template-columns:1fr}.keyword-edit-row,.negative-add-row,.sitelink-row{grid-template-columns:1fr}.money-input{grid-template-columns:1fr}.auto-cpc-box{display:block}.auto-cpc-box span{display:block;margin-top:7px}}
.structured-snippet-list{display:grid;gap:10px}.structured-snippet-row{display:grid;grid-template-columns:170px minmax(240px,1fr) 34px;gap:8px;align-items:start;border:1px solid #e8edf4;background:#fbfcfe;border-radius:9px;padding:10px}.structured-snippet-row input{width:100%;border:1px solid #d7e0eb;border-radius:7px;background:#fff;color:#0f172a;font-size:14px;line-height:1.35;padding:10px 11px;outline:none}.structured-snippet-row input:focus{border-color:#2f6df6;box-shadow:0 0 0 3px rgba(47,109,246,.12)}
@media(max-width:980px){.structured-snippet-row{grid-template-columns:1fr}}
.keyword-edit-row .keyword-select{width:16px;height:16px;padding:0;justify-self:center;accent-color:#2f6df6}
.bid-input{align-items:stretch}
.bid-input input{height:40px;min-height:40px;padding:0 11px}
.currency-prefix,.bid-input #cpcCurrencyCode{height:40px;min-height:40px;line-height:40px;margin:0}
.publish-panel{max-width:1050px;margin:0 auto 96px}.publish-hero{border-color:#e2e8f0;box-shadow:0 1px 8px rgba(15,23,42,.05)}.publish-hero h2,.publish-option-card h2,.publish-result-card h2,.publish-summary-card h2,.publish-config-card h2,.publish-account-card h2{font-size:20px;margin:0 0 14px;color:#0f172a}.publish-review-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:0 0 22px}.publish-option-card,.publish-result-card{min-height:360px}.publish-option{display:flex;align-items:flex-start;gap:12px;border:1px solid #e1e8f0;border-radius:12px;background:#fff;padding:16px;margin:12px 0;cursor:pointer}.publish-option:hover{border-color:#bfdbfe;background:#f8fbff}.publish-option input{width:18px;height:18px;margin-top:2px;accent-color:#2f6df6}.publish-option strong{font-size:15px;color:#0f172a}.publish-option p{margin:8px 0 0;color:#64748b;font-size:13px;line-height:1.45}.publish-main-btn{width:100%;justify-content:center;margin-top:8px;font-size:17px;padding:14px 18px}.publish-result-card{display:flex;flex-direction:column}.publish-result-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#64748b}.publish-rocket{width:64px;height:64px;border-radius:50%;background:#f1f5f9;color:#94a3b8;display:flex;align-items:center;justify-content:center;font-size:34px;margin-bottom:18px}.publish-result-empty strong{color:#0f172a;margin-bottom:8px}.publish-result-empty ul{list-style:none;padding:0;margin:0 0 14px;text-align:left}.publish-result-empty li{margin:6px 0}.publish-result-empty li::before{content:"✓";color:#16a34a;margin-right:8px}.publish-summary-card,.publish-config-card,.publish-account-card{border-color:#e2e8f0;box-shadow:0 1px 7px rgba(15,23,42,.05)}.publish-score-row{display:grid;grid-template-columns:220px 1fr;gap:18px;align-items:center;background:#f8fafc;border-radius:10px;padding:18px;margin-bottom:16px}.publish-score-row>div:first-child span{display:block;color:#64748b;margin-bottom:8px}.publish-score-row>div:first-child strong{font-size:38px;color:#d97706}.score-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr));align-items:center}.score-grid.compact div{display:grid;grid-template-columns:max-content minmax(24px,max-content);justify-content:start;align-items:center;column-gap:8px;border:0;background:transparent;padding:4px 0}.score-grid.compact span{justify-self:start;color:#475569}.score-grid.compact strong{justify-self:start;text-align:left;min-width:24px;color:#0f172a}.publish-preview-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px;border-top:1px solid #e5eaf0;padding-top:18px}.publish-preview-columns h3{font-size:15px;color:#475569;margin:0 0 10px}.publish-preview-columns ul{margin:0;padding-left:18px}.publish-preview-columns li{line-height:1.45;margin:5px 0;overflow-wrap:anywhere}.publish-config-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 80px}.publish-config-grid div span{display:block;color:#64748b;font-size:13px;margin-bottom:7px}.publish-config-grid div strong{display:block;color:#0f172a;font-size:17px;line-height:1.35;overflow-wrap:anywhere}.suffix-box{border-top:1px solid #e5eaf0;margin-top:18px;padding-top:18px;color:#64748b}.suffix-box span{display:block;margin-bottom:8px}.suffix-box code{display:block;background:#f8fafc;border-radius:8px;padding:13px;color:#0f172a;white-space:normal;overflow-wrap:anywhere}.publish-account-row{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#f8fafc;border-radius:10px;padding:18px 20px}.publish-account-row strong,.publish-account-row span{display:block}.publish-account-row div span{margin-top:6px;color:#64748b}.publish-note-card{max-width:1050px;margin:0 auto 22px;border:1px solid #e2e8f0;background:#fff;border-radius:13px;padding:18px 22px}.publish-note-card h3{font-size:15px;margin:0 0 10px}.publish-note-card ul{margin:0;padding-left:20px;color:#334155}.publish-note-card li{line-height:1.55;margin:4px 0}
@media(max-width:980px){.publish-review-grid,.publish-score-row,.publish-preview-columns,.publish-config-grid{grid-template-columns:1fr}.score-grid.compact{grid-template-columns:1fr}.publish-account-row{display:block}.publish-account-row>.chip{margin-top:12px}}
.publish-review-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;width:100%}
.publish-review-grid>.launch-card{width:100%;max-width:none;margin:0;box-sizing:border-box}
.publish-option-card,.publish-result-card{min-height:360px;height:100%;display:flex;flex-direction:column}
.publish-result-card .publish-progress{flex:1}
.publish-progress{border:1px solid #dbeafe;background:#f8fbff;border-radius:12px;padding:16px;min-height:250px;display:flex;flex-direction:column;gap:14px}
.publish-progress.running{background:#eff6ff;border-color:#bfdbfe}.publish-progress.success{background:#f0fdf4;border-color:#bbf7d0}.publish-progress.failed{background:#fef2f2;border-color:#fecaca}
.publish-progress-head{display:flex;align-items:center;gap:10px;color:#0f172a}.publish-progress-head strong{font-size:15px;line-height:1.4}
.publish-spinner{width:18px;height:18px;border:2px solid #bfdbfe;border-top-color:#2563eb;border-radius:50%;display:inline-block;animation:publishSpin .85s linear infinite;flex:0 0 auto}
.publish-progress.idle .publish-spinner,.publish-progress.success .publish-spinner,.publish-progress.failed .publish-spinner{animation:none;border-color:#22c55e;background:#22c55e}
.publish-progress.failed .publish-spinner{border-color:#ef4444;background:#ef4444}
.publish-status-timeline{display:grid;gap:9px;margin-top:2px}
.publish-status-step{display:flex;align-items:center;gap:10px;border:1px solid #e5eaf0;background:#fff;border-radius:8px;padding:10px 12px;color:#64748b;font-size:13px;font-weight:800}
.publish-status-step i{width:16px;height:16px;border-radius:50%;border:2px solid #cbd5e1;display:block;flex:0 0 auto}
.publish-status-step.done{color:#15803d}.publish-status-step.done i{border-color:#22c55e;background:#22c55e}
.publish-status-step.current{color:#1d4ed8;border-color:#bfdbfe;background:#f8fbff}.publish-status-step.current i{border-color:#2563eb;border-top-color:#bfdbfe;animation:publishSpin .85s linear infinite}
.publish-status-step.failed{color:#b91c1c;border-color:#fecaca;background:#fff7f7}.publish-status-step.failed i{border-color:#ef4444;background:#ef4444}
.publish-warning{margin:2px 0 0;border:1px solid #fed7aa;background:#fff7ed;color:#9a3412;border-radius:8px;padding:10px 12px;font-size:13px;line-height:1.45}
.publish-campaign-id{margin:0;border:1px solid #bbf7d0;background:#f0fdf4;color:#166534;border-radius:8px;padding:10px 12px;font-size:13px;font-weight:900}
@keyframes publishSpin{to{transform:rotate(360deg)}}
.offer-filter-card{border-radius:12px;padding:22px 24px;margin:0 0 24px;grid-template-columns:minmax(320px,1fr) 160px 160px}
.offer-search{font-size:14px;padding:12px 14px;border-radius:9px}
.offer-table-card{border-radius:12px;padding:0 22px 18px}
.offer-table{min-width:1120px;table-layout:fixed}
.offer-table th{font-size:13px;padding:14px 10px}
.offer-table td{font-size:13px;padding:15px 10px;vertical-align:middle}
.offer-table th:nth-child(1),.offer-table td:nth-child(1){width:44px}
.offer-table th:nth-child(2),.offer-table td:nth-child(2){width:78px}
.offer-table th:nth-child(3),.offer-table td:nth-child(3){width:155px}
.offer-table th:nth-child(4),.offer-table td:nth-child(4){width:240px}
.offer-table th:nth-child(5),.offer-table td:nth-child(5){width:92px}
.offer-table th:nth-child(6),.offer-table td:nth-child(6){width:90px}
.offer-table th:nth-child(7),.offer-table td:nth-child(7){width:105px}
.offer-table th:nth-child(8),.offer-table td:nth-child(8){width:130px}
.offer-table th:nth-child(9),.offer-table td:nth-child(9){width:150px}
.offer-brand-cell{min-width:0}
.offer-brand-name{display:block;font-size:14px;font-weight:800;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.offer-brand-cell .url-line{max-width:230px;font-size:12px;margin-top:3px}
.offer-code{font-size:12px;white-space:nowrap}
.country-pill{padding:3px 9px}
.offer-action-cell{display:flex;align-items:center;gap:7px;white-space:nowrap}
.offer-launch-btn{padding:8px 12px;font-size:13px;border-radius:8px;white-space:nowrap}
.offer-action-cell .icon-btn{margin-left:0;padding:7px 9px;border-radius:8px}
.offer-action-menu-wrap{position:relative}
.offer-action-menu{display:none;position:fixed;left:0;right:auto;top:auto;z-index:70;min-width:180px;padding:6px;background:#fff;border:1px solid #e1e8f0;border-radius:9px;box-shadow:0 12px 28px rgba(15,23,42,.14)}
.offer-action-menu.open{display:grid}
.offer-action-menu a,.offer-action-menu button{display:block;width:100%;border:0;background:transparent;text-align:left;padding:9px 11px;border-radius:6px;color:#334155;font-size:13px;font-weight:800;white-space:nowrap;cursor:pointer}
.offer-action-menu a:hover,.offer-action-menu button:hover{background:#eff6ff;color:#1d4ed8}
.offer-action-menu b{display:inline-block;min-width:28px;color:#ef4444;font-size:11px;letter-spacing:.04em}
.offer-action-menu .danger{color:#dc2626}
.offer-action-menu .danger:hover{background:#fff1f1;color:#b91c1c}
.diagnostic-task-modal{width:min(980px,100%);border-radius:14px}.diagnostic-task-body{display:grid;grid-template-columns:minmax(240px,.85fr) minmax(380px,1.25fr);gap:20px}.diagnostic-offer-summary{background:#f8fafc;border:1px solid #edf2f7;border-radius:12px;padding:16px;display:grid;gap:12px;align-self:start}.diagnostic-offer-summary div{display:grid;gap:4px}.diagnostic-offer-summary div.full{border-top:1px solid #dbe4ef;padding-top:12px}.diagnostic-offer-summary span{color:#64748b;font-size:12px;font-weight:900}.diagnostic-offer-summary strong{color:#0f172a;font-size:14px;line-height:1.35}.diagnostic-offer-summary a{color:#2563eb;font-size:13px;line-height:1.35;overflow-wrap:anywhere}.diagnostic-task-settings{min-width:0}.diagnostic-curve-card{grid-column:1/-1;border-top:1px solid var(--line);padding-top:18px}.hourly-chart{height:170px;border:1px solid #edf2f7;border-radius:12px;background:#fff;display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:3px;align-items:end;padding:16px 14px 28px}.hourly-bar-wrap{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px;position:relative}.hourly-bar-wrap::before{content:"";position:absolute;top:0;bottom:18px;border-left:1px dashed #bfdbfe;opacity:.75}.hourly-bar{width:12px;border-radius:999px 999px 0 0;background:#3b82f6;z-index:1}.hourly-bar-wrap span{font-size:10px;color:#64748b;z-index:1}.hourly-editor{display:none;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:12px}.hourly-editor.open{display:grid}.hourly-editor label{display:grid;grid-template-columns:34px minmax(0,1fr);gap:6px;align-items:center;color:#64748b;font-size:12px}.hourly-editor input{padding:7px 8px;border-radius:7px}.diagnostic-total{text-align:right;color:#64748b;font-size:13px;margin-top:9px}.diagnostic-total strong{font-size:16px;color:#0f172a}.replace-link-modal{width:min(680px,100%)}.replacement-task-modal{width:min(760px,100%)}.replacement-task-body{display:grid;grid-template-columns:minmax(210px,.86fr) minmax(340px,1.14fr);gap:18px}.replacement-ads-config{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}.replacement-ads-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}.replacement-ads-head strong{font-size:15px;color:#0f172a}
@media(max-width:980px){.offer-filter-card{grid-template-columns:1fr;padding:18px}.offer-table-card{padding:18px}.offer-action-cell{justify-content:flex-start}}
.diagnostic-page{max-width:1180px;margin:22px auto 0}.diagnostic-title-row{align-items:center;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:18px}.diagnostic-title-row h1{font-size:24px}.diagnostic-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:16px}.diagnostic-metrics .metric{padding:16px;border-radius:10px}.diagnostic-metrics .metric strong{font-size:24px;line-height:1.1}.diagnostic-status-card,.diagnostic-schedule-card,.diagnostic-filter-card,.diagnostic-table-card{background:#fff;border:1px solid #e1e8f0;border-radius:10px;box-shadow:0 1px 5px rgba(15,23,42,.05);margin-bottom:16px}.diagnostic-status-card{padding:18px 20px}.diagnostic-status-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.diagnostic-status-step{border:1px solid #e5eaf0;background:#f8fafc;border-radius:9px;padding:13px 14px}.diagnostic-status-step span{display:block;color:#64748b;font-size:12px;font-weight:900;margin-bottom:7px}.diagnostic-status-step strong{font-size:24px;color:#0f172a}.diagnostic-status-step.ok{background:#f0fdf4;border-color:#bbf7d0}.diagnostic-status-step.bad{background:#fff1f1;border-color:#fecaca}.diagnostic-status-step.warn{background:#fff7ed;border-color:#fed7aa}.diagnostic-schedule-card{display:grid;grid-template-columns:minmax(260px,1fr) minmax(560px,1.4fr);gap:16px;align-items:center;padding:18px 20px}.diagnostic-schedule-card h2{font-size:18px}.diagnostic-schedule-controls{display:grid;grid-template-columns:130px 180px minmax(150px,1fr) 110px;gap:10px;align-items:end}.diagnostic-next-run{border:1px solid #dbe4ef;background:#f8fafc;border-radius:9px;padding:10px 12px;min-height:42px}.diagnostic-next-run span{display:block;color:#64748b;font-size:12px;font-weight:900;margin-bottom:4px}.diagnostic-next-run strong{font-size:13px;color:#0f172a}.diagnostic-filter-card{display:grid;grid-template-columns:minmax(280px,1fr) 170px 150px;gap:12px;padding:16px 18px}.diagnostic-table-card{padding:0 18px 18px}.diagnostic-table{min-width:1120px;table-layout:fixed}.diagnostic-table th{background:#fff;text-transform:none;letter-spacing:0;font-size:13px;color:#667085;padding:14px 10px}.diagnostic-table td{font-size:13px;padding:14px 10px;vertical-align:middle}.diagnostic-table th:nth-child(1),.diagnostic-table td:nth-child(1){width:150px}.diagnostic-table th:nth-child(2),.diagnostic-table td:nth-child(2){width:180px}.diagnostic-table th:nth-child(3),.diagnostic-table td:nth-child(3){width:210px}.diagnostic-table th:nth-child(4),.diagnostic-table td:nth-child(4){width:100px}.diagnostic-table th:nth-child(5),.diagnostic-table td:nth-child(5){width:250px}.diagnostic-table th:nth-child(6),.diagnostic-table td:nth-child(6){width:110px}.diagnostic-table th:nth-child(7),.diagnostic-table td:nth-child(7){width:220px}.diagnostic-table th:nth-child(8),.diagnostic-table td:nth-child(8){width:130px}.diagnostic-risk,.diagnostic-log{margin-top:8px;border:1px solid #dbe4ef;background:#f8fafc;color:#475569;border-radius:8px;padding:9px 10px;font-size:12px;line-height:1.35}.diagnostic-risk strong,.diagnostic-log strong{display:block;margin-bottom:3px;color:#0f172a}.diagnostic-risk span,.diagnostic-log span{display:block}.diagnostic-risk.bad,.diagnostic-log.bad{border-color:#fecaca;background:#fff1f1;color:#b91c1c}.diagnostic-risk.bad strong,.diagnostic-log.bad strong{color:#b91c1c}.diagnostic-risk.ok,.diagnostic-log.ok{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.diagnostic-risk.ok strong,.diagnostic-log.ok strong{color:#166534}.diagnostic-risk.warn,.diagnostic-log.warn{border-color:#fed7aa;background:#fff7ed;color:#9a3412}.diagnostic-action-cell{display:flex;align-items:center;gap:8px;white-space:nowrap}.url-line.wide{max-width:250px}
@media(max-width:1180px){.diagnostic-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.diagnostic-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.diagnostic-schedule-card,.diagnostic-schedule-controls{grid-template-columns:1fr 1fr}}
@media(max-width:980px){.diagnostic-page{margin-top:10px}.diagnostic-title-row{display:block}.diagnostic-title-row .toolbar{margin-top:12px}.diagnostic-metrics,.diagnostic-status-grid,.diagnostic-filter-card,.diagnostic-schedule-card,.diagnostic-schedule-controls{grid-template-columns:1fr}.diagnostic-table-card{padding:14px}.diagnostic-action-cell{align-items:flex-start;flex-direction:column}.url-line.wide{max-width:230px}}
.diagnostic-audit-card{background:#fff;border:1px solid #e1e8f0;border-radius:10px;box-shadow:0 1px 5px rgba(15,23,42,.05);margin-bottom:16px;padding:18px 20px}.diagnostic-audit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.diagnostic-audit-item{border:1px solid #e5eaf0;background:#f8fafc;border-radius:9px;padding:13px 14px}.diagnostic-audit-item span{display:block;color:#64748b;font-size:12px;font-weight:900;margin-bottom:7px}.diagnostic-audit-item strong{font-size:24px;color:#0f172a}.diagnostic-audit-item.ok{background:#f0fdf4;border-color:#bbf7d0}.diagnostic-audit-item.bad{background:#fff1f1;border-color:#fecaca}.diagnostic-audit-item.warn{background:#fff7ed;border-color:#fed7aa}
.diagnostic-audit-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1180px){.diagnostic-audit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.diagnostic-audit-grid{grid-template-columns:1fr}}
.diagnostic-row.highlight{background:#f8fbff;box-shadow:inset 3px 0 #2563eb}
.diagnostic-row.highlight td{border-top-color:#bfdbfe;border-bottom-color:#bfdbfe}
.task-state{margin-left:6px}
.diagnostic-status-card .diagnostic-status-step.ok{background:#f0fdf4;border-color:#bbf7d0}
.diagnostic-table{min-width:1240px}
.diagnostic-table th,.diagnostic-table td{vertical-align:middle;white-space:nowrap}
.diagnostic-table th:nth-child(1),.diagnostic-table td:nth-child(1){width:42px}
.diagnostic-table th:nth-child(2),.diagnostic-table td:nth-child(2){width:150px}
.diagnostic-table th:nth-child(3),.diagnostic-table td:nth-child(3){width:230px}
.diagnostic-table th:nth-child(4),.diagnostic-table td:nth-child(4){width:190px;white-space:normal}
.diagnostic-table th:nth-child(5),.diagnostic-table td:nth-child(5){width:145px;white-space:normal}
.diagnostic-table th:nth-child(6),.diagnostic-table td:nth-child(6){width:100px;text-align:center}
.diagnostic-table th:nth-child(7),.diagnostic-table td:nth-child(7){width:130px}
.diagnostic-table th:nth-child(8),.diagnostic-table td:nth-child(8){width:88px;text-align:center}
.diagnostic-table th:nth-child(9),.diagnostic-table td:nth-child(9){width:120px;white-space:normal}
.diagnostic-table th:nth-child(10),.diagnostic-table td:nth-child(10){width:190px}
.diagnostic-offer-name{display:block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.diagnostic-state-pill{display:inline-flex;align-items:center;justify-content:center;min-width:68px;padding:5px 10px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:900}
.diagnostic-state-pill.ok{background:#16a34a;color:#fff}
.diagnostic-state-pill.warn{background:#fff7ed;color:#b7791f}
.diagnostic-state-pill.bad{background:#fff1f1;color:#dc2626}
.diagnostic-progress{width:74px;height:7px;border-radius:999px;background:#e5e7eb;overflow:hidden;display:inline-block;vertical-align:middle;margin-right:7px}
.diagnostic-progress span{display:block;height:100%;border-radius:999px;background:#2f6df6}
.diagnostic-action-cell{justify-content:flex-start}
.icon-action{width:27px;height:27px;padding:0;border:0;background:transparent;cursor:pointer;font-size:17px;line-height:27px;text-align:center}
.icon-action.blue{color:#3978e8}.icon-action.slate{color:#64748b}.icon-action.amber{color:#c99516}.icon-action.red{color:#dc4545}
.icon-action:hover{background:#f1f5f9;border-radius:6px}
.diagnostic-filter-card input{min-width:0}
@media(max-width:980px){.diagnostic-table-card{padding:12px}.diagnostic-table{min-width:1240px}.diagnostic-action-cell{flex-direction:row;align-items:center}}
.diagnostic-table th:nth-child(2),.diagnostic-table td:nth-child(2){width:120px}
.diagnostic-table th:nth-child(10),.diagnostic-table td:nth-child(10){width:156px}
.diagnostic-action-cell{vertical-align:middle;display:table-cell}
.diagnostic-actions{display:flex;align-items:center;justify-content:flex-start;gap:7px;min-height:34px}
.icon-action{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1px solid #e2e8f0;border-radius:8px;background:#fff;cursor:pointer;line-height:1;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.diagnostic-actions .icon-action{min-width:32px;max-width:32px;flex:0 0 32px;box-sizing:border-box}
.icon-action svg{width:15px;height:15px;stroke:currentColor;stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.icon-action:hover{background:#f8fafc;border-color:#cbd5e1;box-shadow:0 2px 8px rgba(15,23,42,.08);transform:translateY(-1px)}
.icon-action.blue{color:#2563eb}.icon-action.slate{color:#475569}.icon-action.amber{color:#b7791f}.icon-action.red{color:#dc2626}
@media(max-width:980px){.diagnostic-action-cell{display:table-cell}.diagnostic-actions{justify-content:flex-start}}
.diagnostic-table{min-width:980px}
.diagnostic-table th,.diagnostic-table td{padding-left:8px;padding-right:8px}
.diagnostic-table th:nth-child(1),.diagnostic-table td:nth-child(1){width:34px}
.diagnostic-table th:nth-child(2),.diagnostic-table td:nth-child(2){width:105px}
.diagnostic-table th:nth-child(3),.diagnostic-table td:nth-child(3){width:165px}
.diagnostic-table th:nth-child(4),.diagnostic-table td:nth-child(4){width:105px}
.diagnostic-table th:nth-child(5),.diagnostic-table td:nth-child(5){width:110px}
.diagnostic-table th:nth-child(6),.diagnostic-table td:nth-child(6){width:72px}
.diagnostic-table th:nth-child(7),.diagnostic-table td:nth-child(7){width:84px}
.diagnostic-table th:nth-child(8),.diagnostic-table td:nth-child(8){width:60px}
.diagnostic-table th:nth-child(9),.diagnostic-table td:nth-child(9){width:78px}
.diagnostic-table th:nth-child(10),.diagnostic-table td:nth-child(10){width:156px}
.diagnostic-offer-name{max-width:150px}.diagnostic-table .url-line{max-width:150px}
.patrol-failure-card .table-wrap{overflow-x:auto}
.patrol-failure-table{min-width:1060px}
.patrol-failure-table th:nth-child(1),.patrol-failure-table td:nth-child(1){width:120px}
.patrol-failure-table th:nth-child(2),.patrol-failure-table td:nth-child(2){width:220px}
.patrol-failure-table th:nth-child(3),.patrol-failure-table td:nth-child(3){width:160px;white-space:normal}
.patrol-failure-table th:nth-child(4),.patrol-failure-table td:nth-child(4){width:500px}
.patrol-failure-table th:nth-child(5),.patrol-failure-table td:nth-child(5){width:78px;text-align:center}
.patrol-failure-table .patrol-id{display:block;max-width:150px;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.35}
.patrol-failure-table .diagnostic-offer-name{display:block;max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.patrol-failure-table .patrol-link-cell{position:relative;padding-right:48px}
.patrol-failure-table .patrol-url-copy{width:100%;min-height:88px;max-height:170px;resize:vertical;border:1px solid #dbe4ef;border-radius:8px;background:#f8fafc;color:#334155;font:12px/1.45 Consolas,"SFMono-Regular",monospace;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all;user-select:text}
.patrol-failure-table .patrol-copy-btn{position:absolute;right:10px;top:14px}
.patrol-failure-table .failure-reason{display:block;margin-top:6px;color:#b91c1c;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.replacement-page .count-pill.compact{min-width:38px;height:28px;font-size:14px}.replacement-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}.replacement-filter-card{grid-template-columns:minmax(280px,1fr) 180px}.replacement-table{min-width:1180px}.replacement-table th:nth-child(1),.replacement-table td:nth-child(1){width:120px}.replacement-table th:nth-child(2),.replacement-table td:nth-child(2){width:190px}.replacement-table th:nth-child(3),.replacement-table td:nth-child(3){width:140px}.replacement-table th:nth-child(4),.replacement-table td:nth-child(4){width:160px}.replacement-table th:nth-child(5),.replacement-table td:nth-child(5){width:170px}.replacement-table th:nth-child(6),.replacement-table td:nth-child(6){width:330px}.replacement-table th:nth-child(7),.replacement-table td:nth-child(7){width:120px}.replacement-table th:nth-child(8),.replacement-table td:nth-child(8){width:90px}.replacement-url-copy{width:100%;min-height:64px;resize:vertical;border:1px solid #dbe4ef;border-radius:8px;background:#f8fafc;color:#334155;font:12px/1.45 Consolas,"SFMono-Regular",monospace;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all}
@media(max-width:980px){.replacement-task-body{grid-template-columns:1fr}.replacement-metrics,.replacement-filter-card{grid-template-columns:1fr}}
.creative-generation-error{display:flex;gap:8px;align-items:flex-start;margin-top:12px;padding:12px 14px;border:1px solid #fecaca;border-radius:9px;background:#fff1f1;color:#b91c1c;font-size:13px;line-height:1.45}.creative-generation-error[hidden]{display:none}.creative-generation-error strong{white-space:nowrap}.creative-generation-error span{overflow-wrap:anywhere}
.roi-page{max-width:1180px;margin:22px auto 0}.roi-title-row{align-items:center;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:18px}.roi-title-row h1{font-size:24px}.roi-query-card,.roi-table-card{background:#fff;border:1px solid #e1e8f0;border-radius:10px;box-shadow:0 1px 5px rgba(15,23,42,.05);padding:18px 20px;margin-bottom:16px}.roi-query-card .grid{grid-template-columns:1fr 1fr}.roi-actions{margin-top:4px}.roi-result[hidden]{display:none}.roi-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:16px}.roi-platform-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.roi-metric{border:1px solid #e5eaf0;background:#fff;border-radius:10px;padding:16px}.roi-metric span{display:block;color:#64748b;font-size:12px;font-weight:900;margin-bottom:8px}.roi-metric strong{font-size:24px;line-height:1.1}.roi-metric small{display:block;margin-top:8px;color:#64748b;font-weight:800}.roi-metric.ok{background:#f0fdf4;border-color:#bbf7d0}.roi-metric.bad{background:#fff1f1;border-color:#fecaca}.roi-table-card{padding:0 18px 18px}.roi-table-head h2{margin-bottom:5px}.roi-table-tools{display:flex;align-items:center;gap:9px;min-width:220px;justify-content:flex-end}.roi-table-tools label{color:#64748b;font-size:13px;font-weight:900;white-space:nowrap}.roi-table-tools select{width:150px;padding:8px 10px;border-radius:8px;font-size:13px}.roi-table{min-width:980px;table-layout:fixed}.roi-table th{background:#fff;text-transform:none;letter-spacing:0;font-size:13px;color:#667085;padding:14px 10px}.roi-table td{font-size:13px;padding:14px 10px;vertical-align:middle}.roi-table th:nth-child(1),.roi-table td:nth-child(1){width:150px}.roi-table th:nth-child(2),.roi-table td:nth-child(2){width:230px}.roi-table td:nth-child(n+3),.roi-table th:nth-child(n+3){text-align:right}.roi-table .ok,.roi-metric.ok strong{color:#047857}.roi-table .bad,.roi-metric.bad strong{color:#b91c1c}.roi-sub{display:block;max-width:260px;margin-top:4px;color:#64748b;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.roi-alerts .notice{margin-bottom:10px}
@media(max-width:980px){.roi-page{margin-top:10px}.roi-title-row{display:block}.roi-title-row .chip{margin-top:12px}.roi-query-card .grid,.roi-summary-grid{grid-template-columns:1fr}.roi-table-card{padding:14px}.roi-table{min-width:900px}}
.session-panel{border-top:1px solid var(--line);margin:24px 10px 0;padding:16px 0 0}
.session-label{color:var(--muted);font-size:12px;font-weight:800;margin-bottom:6px}
.session-panel strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.session-role{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.session-actions{display:grid;gap:7px;margin-top:12px}
.session-button{border:1px solid #dbe4ef;background:#f8fafc;color:#334155;border-radius:7px;padding:8px 9px;text-align:left;font-size:12px;font-weight:800;cursor:pointer}
.session-button:hover{background:#eef4ff;color:#1f4fc9}
.session-button.danger{color:#b42318;background:#fff7f6;border-color:#f2c6c2}
.session-button:disabled{opacity:.55;cursor:not-allowed}
.password-modal{width:min(520px,100%)}
.error-text{min-height:20px;color:#b42318;font-size:13px;line-height:1.4}
@media(max-width:980px){.session-panel{margin:18px 10px 0}}
.offer-detail-head{align-items:center;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:16px}
.offer-detail-title{min-width:0;display:grid;gap:4px}
.offer-detail-title .back-link{justify-self:start;font-size:13px;color:#475569}
.offer-detail-title h1{font-size:27px;line-height:1.16;max-width:920px;overflow-wrap:anywhere}
.offer-detail-title .sub{margin-top:0}
.offer-detail-actions{flex:0 0 auto;align-self:center;justify-content:flex-end;margin-top:0}
.offer-detail-actions .btn{height:38px;display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;white-space:nowrap}
.material-hero{grid-template-columns:220px minmax(0,1fr);gap:20px;padding:18px 22px;align-items:center}
.material-hero .hero-copy{grid-column:2;grid-row:1;min-width:0}
.material-hero h2{font-size:22px;line-height:1.24;margin:10px 0}
.material-hero p{font-size:15px;margin:0}
.material-hero img,.image-placeholder{grid-column:1;grid-row:1;max-height:210px}
@media(max-width:980px){.offer-detail-head{display:block}.offer-detail-actions{justify-content:flex-start;margin-top:12px}.material-hero{grid-template-columns:1fr}.material-hero .hero-copy,.material-hero img,.image-placeholder{grid-column:auto;grid-row:auto}.material-hero img,.image-placeholder{max-height:260px}}
