:root{--ap-bg:#f7f8fb;--ap-card:#fff;--ap-line:#e6eaf2;--ap-text:#101828;--ap-muted:#667085;--ap-purple:#6f35ff;--ap-purple-dark:#5424dd;--ap-blue:#287cff;--ap-green:#12a66a;--ap-orange:#ff8900;--ap-pink:#ff3d8b;--ap-shadow:0 18px 44px rgba(16,24,40,.055)}
.vesta-ad-shell,.vesta-app-body{font-family:'Inter',Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--ap-bg)!important;color:var(--ap-text)}
.vesta-ad-page{padding:24px 28px 38px;background:var(--ap-bg);min-height:100vh}.vesta-sidebar{background:linear-gradient(180deg,#fbfcff,#f8faff)!important}.vesta-sidebar__item{border-radius:12px}.vesta-sidebar__item.is-active{background:#f1ebff!important;color:#5f2cff!important}.vesta-topbar{background:transparent!important;border:0!important;padding:16px 28px!important}.vesta-search{height:44px!important;border-radius:14px!important;background:#fff!important;border:1px solid var(--ap-line)!important;box-shadow:0 8px 26px rgba(16,24,40,.04)!important}
.ap-dashboard-hero,.ap-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;background:#fff;border:1px solid var(--ap-line);border-radius:22px;padding:28px;margin:0 0 22px;box-shadow:0 10px 32px rgba(16,24,40,.035)}.ap-dashboard-hero{background:transparent;border:0;box-shadow:none;padding:4px 0 14px}.ap-dashboard-hero h1,.ap-page-head h1{margin:0 0 8px;font-size:var(--vesta-fs-page-title);letter-spacing:-.045em;line-height:1.1;font-weight: var(--vesta-fw-title);color:var(--ap-text)}.ap-dashboard-hero p,.ap-page-head p{margin:0;color:var(--ap-muted);font-size:15px}.ap-head-icon,.ap-module-icon,.ap-stat-icon{width:40px;height:40px;border-radius:20px;background:#f1ebff;color:var(--ap-purple);display:grid;place-items:center;flex:0 0 auto}.ap-page-head .ap-head-icon{width:40px;height:40px}.ap-primary{height:48px;padding:0 22px;border:0;border-radius:13px;background:linear-gradient(135deg,var(--ap-purple),var(--ap-purple-dark));color:#fff;font-weight: var(--vesta-fw-title);white-space:nowrap}.ap-primary.wide{width:100%;margin-top:18px}
.vesta-view-switch{display:flex;align-items:center;gap:4px;min-width:520px;justify-content:space-between;background:#fff;border:1px solid var(--ap-line);border-radius:24px;padding:6px;box-shadow:0 12px 34px rgba(16,24,40,.055)}.vesta-view-switch__button{height:44px;min-width:150px;border:0;background:transparent;color:#3c4966;border-radius:16px;font-size:14px;font-weight: var(--vesta-fw-title)}.vesta-view-switch__button.is-active{background:linear-gradient(135deg,var(--ap-purple),var(--ap-purple-dark));color:#fff;box-shadow:0 12px 24px rgba(95,44,255,.22)}.vesta-dashboard-view[hidden]{display:none!important}.vesta-dashboard-view{animation:apIn .18s ease both}@keyframes apIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.ap-module-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}.ap-module-card{position:relative;min-height:260px;background:#fff;border:1px solid var(--ap-line);border-radius:24px;padding:30px 26px;box-shadow:var(--ap-shadow);display:flex;flex-direction:column;align-items:flex-start;overflow:hidden}.ap-module-card strong{font-size:20px;letter-spacing:-.035em;margin-top:auto;color:var(--ap-text);font-weight: var(--vesta-fw-title)}.ap-module-card p{font-size:14px;line-height:1.5;color:#50607c;max-width:178px;margin:10px 0 0}.ap-card-arrow{position:absolute;right:24px;bottom:26px;width:48px;height:48px;border:1px solid var(--ap-line);border-radius:50%;display:grid;place-items:center;font-size:var(--vesta-fs-section-title);background:#fff}.tone-blue .ap-module-icon,.ap-stat-icon.blue{background:#edf4ff;color:var(--ap-blue)}.tone-green .ap-module-icon,.ap-stat-icon.green{background:#eaf9f1;color:var(--ap-green)}.tone-orange .ap-module-icon,.ap-stat-icon.orange{background:#fff2e5;color:var(--ap-orange)}.tone-pink .ap-module-icon,.ap-stat-icon.pink{background:#ffeaf5;color:var(--ap-pink)}.ap-bottom-dock{margin-top:28px;height:70px;background:#fff;border:1px solid var(--ap-line);border-radius:22px;display:flex;align-items:center;gap:14px;padding:0 18px;box-shadow:0 16px 34px rgba(16,24,40,.035)}.ap-bottom-dock span{border:1px solid var(--ap-line);border-radius:999px;padding:10px 18px;color:#33415f;font-weight:700}.ap-bottom-dock b{margin-left:auto;color:#34415d;font-weight:700}
.ap-stats-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 18px}.ap-stats-row.mini{margin:0 0 18px}.ap-stat{background:#fff;border:1px solid var(--ap-line);border-radius:18px;padding:18px;min-height:116px;box-shadow:0 10px 28px rgba(16,24,40,.035);display:grid;gap:4px}.ap-stat-icon{width:40px;height:40px;border-radius:14px}.ap-stat strong{font-size:var(--vesta-fs-kpi);letter-spacing:-.04em;color:var(--ap-text);font-weight: var(--vesta-fw-title)}.ap-stat small{color:var(--ap-muted);font-weight:650}.ap-stat em{font-style:normal;color:var(--ap-green);font-size:12px;font-weight: var(--vesta-fw-title)}.ap-full-grid,.ap-analytics-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px}.ap-analytics-grid{grid-template-columns:2fr 1fr 1fr}.ap-panel{background:#fff;border:1px solid var(--ap-line);border-radius:20px;padding:20px;box-shadow:0 12px 30px rgba(16,24,40,.035)}.ap-panel-large{grid-column:span 1}.ap-panel-full{grid-column:1/-1}.ap-panel h2{margin:0 0 16px;font-size:18px;letter-spacing:-.035em}.ap-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:12px}.ap-panel-head h2{margin:0 0 5px}.ap-panel-head p{margin:0;color:var(--ap-muted);font-size:13px}.ap-panel-head button{height:38px;border:1px solid var(--ap-line);border-radius:11px;background:#fff;padding:0 14px;font-weight:700}.ap-line-chart{height:260px;border-radius:16px;background:linear-gradient(180deg,rgba(95,44,255,.09),transparent),repeating-linear-gradient(0deg,#fff,#fff 39px,#edf1f8 40px),repeating-linear-gradient(90deg,transparent,transparent 139px,#edf1f8 140px);position:relative;overflow:hidden}.ap-line-chart:after{content:'';position:absolute;left:28px;right:28px;top:82px;height:90px;border-bottom:5px solid var(--ap-purple);border-radius:55%;transform:skewY(-9deg)}.ap-line-chart.big:after{border-color:var(--ap-green)}.ap-donut{width:180px;height:180px;border-radius:50%;background:conic-gradient(var(--ap-purple) 0 52%,var(--ap-blue) 52% 91%,#ffb020 91%);margin:22px auto;position:relative}.ap-donut:after{content:'';position:absolute;inset:42px;background:#fff;border-radius:50%}.ap-legend{display:flex;gap:10px;flex-wrap:wrap;color:var(--ap-muted);font-size:12px}.ap-bars p{display:grid;gap:8px}.ap-bars span{font-weight:700}.ap-bars i{width:var(--w);height:8px;border-radius:999px;background:var(--ap-purple);display:block}.ap-action-list p,.ap-activity-list p{display:grid;gap:4px;border-bottom:1px solid var(--ap-line);padding:12px 0;margin:0}.ap-action-list p{grid-template-columns:40px 1fr;align-items:center}.ap-action-list b{font-size:var(--vesta-fs-section-title);color:var(--ap-purple)}.ap-action-list span,.ap-activity-list span{color:var(--ap-muted);font-size:13px}
.ap-filterbar{display:flex;gap:14px;background:#fff;border:1px solid var(--ap-line);border-radius:18px;padding:18px;margin-bottom:18px;align-items:center;box-shadow:0 10px 24px rgba(16,24,40,.025)}.ap-filterbar .ap-input{flex:1}.ap-filterbar button{height:44px;background:#fff;border:1px solid var(--ap-line);border-radius:12px;padding:0 18px;font-weight:700;color:#17213a}.ap-input,input,select,textarea{border:1px solid var(--ap-line);border-radius:11px;min-height:44px;padding:0 14px;background:#fff;color:#121a2e;outline:none}textarea{height:96px;padding:14px;resize:vertical}.ap-table-drawer{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:20px;align-items:start}.ap-table{width:100%;border-collapse:collapse;font-size:13px}.ap-table th{background:#fbfcff;text-align:left;color:#17213a;font-size:12px;padding:14px;border-bottom:1px solid var(--ap-line);font-weight: var(--vesta-fw-title)}.ap-table td{padding:15px 14px;border-bottom:1px solid var(--ap-line);vertical-align:middle;color:#111b31}.ap-table small{color:var(--ap-muted)}.ap-mini-table{width:100%;border-collapse:collapse;font-size:13px}.ap-mini-table td{padding:12px;border-bottom:1px solid var(--ap-line)}.ap-badge{display:inline-flex;border-radius:7px;padding:5px 8px;font-size:11px;font-weight: var(--vesta-fw-title)}.ap-badge.green{background:#dff7ea;color:#078a52}.ap-badge.orange{background:#fff0d8;color:#d07700}.ap-badge.red{background:#ffe0e5;color:#db1232}.ap-badge.blue{background:#e5f0ff;color:#176df1}.ap-mini-btn{border:1px solid var(--ap-line);background:#fff;border-radius:8px;padding:8px 10px}.ap-thumb{display:inline-block;width:64px;height:36px;background:linear-gradient(135deg,#6d38ff,#111827);border-radius:6px;vertical-align:middle;margin-right:10px}.ap-pagination{display:flex;justify-content:space-between;margin-top:18px;color:var(--ap-muted)}.ap-drawer{position:sticky;top:20px;background:#fff;border:1px solid var(--ap-line);border-radius:20px;min-height:640px;padding:24px;box-shadow:0 20px 44px rgba(16,24,40,.06)}.ap-drawer h2{display:flex;justify-content:space-between}.ap-form-stack{display:grid;gap:18px}.ap-form-stack label,.ap-form-grid label{display:grid;gap:8px;font-weight: var(--vesta-fw-title);font-size:12px}.ap-form-stack input,.ap-form-stack select,.ap-form-stack textarea,.ap-form-grid input,.ap-form-grid select{width:100%}.ap-drawer-actions{position:absolute;left:24px;right:24px;bottom:24px;display:flex;justify-content:flex-end;gap:12px}.ap-drawer-actions button{height:44px;border:1px solid var(--ap-line);border-radius:10px;background:#fff;padding:0 18px}.ap-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}.ap-action-grid a{background:#fff;border:1px solid var(--ap-line);border-radius:18px;padding:22px;min-height:150px;display:grid;gap:10px;box-shadow:0 12px 28px rgba(16,24,40,.035)}.ap-action-grid span{width:48px;height:48px;border-radius:14px;background:#f1ebff;color:var(--ap-purple);display:grid;place-items:center}.ap-action-grid b{font-size:17px}.ap-action-grid small{color:var(--ap-muted)}
.ap-stepper{background:#fff;border:1px solid var(--ap-line);border-radius:18px;padding:22px;display:flex;align-items:center;gap:16px;margin-bottom:18px}.ap-stepper b{white-space:nowrap;font-size:13px}.ap-stepper span{height:2px;background:#d9e0ef;flex:1}.ap-quick-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:18px}.ap-quick-grid .ap-panel:nth-child(3){grid-column:1}.ap-review{grid-column:2;grid-row:2}.ap-form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.ap-message-layout{display:grid;grid-template-columns:340px 1fr 310px;gap:18px}.ap-email-layout{display:grid;grid-template-columns:180px 320px 1fr 300px;gap:18px}.ap-conversation-list,.ap-mail-list{padding:14px}.ap-convo,.ap-mail-row{padding:16px;border-bottom:1px solid var(--ap-line);display:grid;gap:6px;border-radius:12px}.ap-mail-row{grid-template-columns:22px 1fr;align-items:center}.ap-mail-row span{grid-column:2}.ap-convo.active,.ap-mail-row.active{background:#f2ecff}.ap-convo span,.ap-mail-row span{color:var(--ap-muted);font-size:13px}.ap-chat{min-height:640px}.ap-chat-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--ap-line);padding-bottom:14px}.ap-chat-head span{color:var(--ap-green);font-weight: var(--vesta-fw-title);font-size:12px}.ap-bubble{max-width:560px;padding:18px;border-radius:16px;margin:20px 0;line-height:1.6}.ap-bubble.out{background:#f1ebff;margin-left:auto}.ap-bubble.in{background:#f6f7fb}.ap-composer,.ap-reply{margin-top:30px;border:1px solid var(--ap-line);min-height:54px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;color:#697792}.ap-composer button,.ap-reply button{background:var(--ap-purple);color:white;border:0;border-radius:10px;padding:10px 14px}.ap-mail-nav{display:grid;align-content:start;gap:8px}.ap-mail-nav b,.ap-settings-menu b{padding:13px 14px;border-radius:12px;color:#475467}.ap-mail-nav b:first-child,.ap-settings-menu .active{background:#f1ebff;color:var(--ap-purple)}.ap-side-detail button{height:42px;border:1px solid var(--ap-line);border-radius:11px;background:#fff;padding:0 14px;font-weight:700}.ap-settings-grid{display:grid;grid-template-columns:260px 1fr;gap:18px}.ap-settings-menu{display:grid;align-content:start;gap:8px}.ap-profile-card{display:flex;align-items:center;gap:16px;border:1px solid var(--ap-line);border-radius:16px;padding:16px;margin-bottom:18px}.ap-avatar{width:60px;height:60px;border-radius:18px;background:linear-gradient(135deg,var(--ap-purple),var(--ap-purple-dark));color:#fff;display:grid;place-items:center;font-weight: var(--vesta-fw-title)}.ap-profile-card div{display:grid;gap:4px}.ap-profile-card small{color:var(--ap-muted)}.ap-profile-card button{margin-left:auto;height:40px;border:1px solid var(--ap-line);border-radius:10px;background:#fff;padding:0 14px;font-weight:700}
@media(max-width:1280px){.ap-module-grid{grid-template-columns:repeat(3,1fr)}.ap-table-drawer,.ap-message-layout,.ap-email-layout,.ap-quick-grid,.ap-full-grid,.ap-analytics-grid,.ap-settings-grid{grid-template-columns:1fr}.ap-stats-row{grid-template-columns:repeat(2,1fr)}.ap-drawer{position:relative;min-height:auto}.ap-drawer-actions{position:relative;left:auto;right:auto;bottom:auto;margin-top:24px}.vesta-view-switch{min-width:0}.ap-dashboard-hero,.ap-page-head{flex-direction:column}.ap-review{grid-column:auto;grid-row:auto}}@media(max-width:760px){.vesta-ad-page{padding:16px}.ap-module-grid,.ap-stats-row,.ap-action-grid{grid-template-columns:1fr}.ap-filterbar{flex-wrap:wrap}.ap-module-card{min-height:210px}.ap-form-grid{grid-template-columns:1fr}.ap-bottom-dock{height:auto;flex-wrap:wrap;padding:14px}.vesta-view-switch{width:100%;overflow:auto}.vesta-view-switch__button{min-width:130px}.ap-page-head{padding:20px}.ap-dashboard-hero h1,.ap-page-head h1{font-size:var(--vesta-fs-section-title)}}

/* Advertising exact placeholder rebuild */
.vesta-ad-shell,.vesta-ad-shell *{font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;box-sizing:border-box}.vesta-ad-page{padding:0 28px 26px;background:#f8fafc;min-height:calc(100vh - 78px);color:#071129}.ap-page-head{display:flex;align-items:center;gap:18px;background:#fff;border:1px solid #e9edf5;border-radius:16px;padding:26px 28px;margin:0 0 18px;box-shadow:0 12px 34px rgba(15,23,42,.04)}.ap-page-head h1{font-size:var(--vesta-fs-page-title);line-height:1.15;margin:0 0 6px;font-weight:700;letter-spacing:-.03em}.ap-page-head p{margin:0;color:#53627f;font-size:15px}.ap-head-icon{width:40px;height:40px;border-radius:14px;background:#f0eaff;color:#5b27ff;display:grid;place-items:center;flex:none}.ap-head-icon svg{width:28px;height:28px}.ap-primary{margin-left:auto;background:linear-gradient(135deg,#6d28ff,#4f19e8);color:#fff;border:0;border-radius:10px;padding:13px 22px;font-weight:700;box-shadow:0 12px 24px rgba(79,25,232,.18)}.ap-panel{background:#fff;border:1px solid #e7ebf3;border-radius:14px;box-shadow:0 12px 32px rgba(15,23,42,.035)}.ap-panel h2{margin:0 0 18px;font-size:20px;letter-spacing:-.025em}.ap-filterbar{display:flex;gap:14px;align-items:center;background:#fff;border:1px solid #e9edf5;border-radius:16px;padding:20px;margin-bottom:18px}.ap-filterbar.inline{padding:0;border:0;margin:0 0 16px}.ap-filterbar .wide{flex:1}.ap-filterbar button,.ap-filters-mini button,.ap-pagination b,.ap-pagination select,.ap-mini-btn,.icon-btn,.ap-panel button:not(.ap-primary),.ap-drawer button:not(.ap-primary){border:1px solid #dfe5ef;background:#fff;border-radius:9px;padding:10px 14px;color:#09142c;font-weight:600}.ap-input,input,select,textarea{border:1px solid #dfe5ef;background:#fff;border-radius:9px;padding:12px 14px;color:#09142c;min-height:42px;outline:none;font-size:14px}textarea{min-height:92px}.ap-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}.ap-table th{background:#fbfcfe;color:#1b2741;text-align:left;font-weight:700;padding:15px 16px;border-bottom:1px solid #e7ebf3}.ap-table td{padding:16px;border-bottom:1px solid #e7ebf3;vertical-align:middle;color:#0b1730}.ap-table.tall td{padding-top:18px;padding-bottom:18px}.ap-table small{color:#53627f}.ap-badge{display:inline-flex;align-items:center;border-radius:7px;padding:4px 8px;font-size:12px;font-weight:700}.ap-badge.green{background:#dff7e9;color:#079455}.ap-badge.orange{background:#fff1d8;color:#c16b00}.ap-badge.blue{background:#e0efff;color:#0b63ce}.ap-badge.red{background:#ffe5ec;color:#e11d48}.ap-badge.gray{background:#edf1f7;color:#46556e}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:8px}.dot.green{background:#08a66a}.dot.orange{background:#f59e0b}.dot.blue{background:#2377ff}.dot.red{background:#ef4444}.dot.gray{background:#98a2b3}.dot.purple{background:#6d28ff}.green-text{color:#079455}.red-text,.danger-text{color:#e11d48!important}.ap-pagination{display:flex;align-items:center;gap:10px;padding:18px 0 0;color:#53627f}.ap-pagination span{margin-right:auto}.ap-pagination b{width:40px;height:40px;padding:0;display:grid;place-items:center}.ap-pagination b.active{border-color:#6d28ff;color:#6d28ff}.ap-info-strip,.success-strip{border-radius:9px;background:#edf6ff;border:1px solid #d5e8ff;color:#17447a;padding:13px 16px;margin-top:16px}.success-strip{background:#e6f8ed;color:#087044;border-color:#caeed8}.ap-page-actions{display:flex;justify-content:flex-end;gap:14px;margin-top:18px}.ap-page-actions button{padding:13px 22px;border-radius:10px;border:1px solid #dfe5ef;background:#fff;font-weight:700}.ap-stats-row{display:grid;gap:16px;margin-bottom:18px}.ap-stats-row.six{grid-template-columns:repeat(6,1fr)}.ap-stats-row.four{grid-template-columns:repeat(4,1fr)}.ap-stat{background:#fff;border:1px solid #e7ebf3;border-radius:14px;padding:20px 22px;display:grid;grid-template-columns:auto 1fr;gap:4px 16px;align-items:center}.ap-stat strong{font-size:var(--vesta-fs-kpi);line-height:1;font-weight: var(--vesta-fw-title);grid-row:1/3}.ap-stat small{color:#53627f}.ap-stat-icon{width:40px;height:40px;border-radius:12px;display:block;grid-row:1/3}.ap-stat-icon.purple{background:#efe7ff}.ap-stat-icon.green{background:#dcf7ea}.ap-stat-icon.orange{background:#fff0d8}.ap-stat-icon.blue{background:#e7f1ff}.ap-stat-icon.red{background:#ffe4ec}.ap-stat-icon.gray{background:#edf1f7}.ap-table-drawer{display:grid;grid-template-columns:minmax(0,1fr) 382px;gap:18px;align-items:start}.ap-main-stack{display:flex;flex-direction:column;gap:18px}.ap-drawer.fixed{position:sticky;top:90px;min-height:calc(100vh - 108px);padding:24px;display:flex;flex-direction:column}.ap-drawer h2{display:flex;justify-content:space-between;align-items:center;font-size:var(--vesta-fs-section-title);margin:0 0 8px}.ap-drawer p{color:#53627f;margin:0 0 22px}.ap-form-stack{display:flex;flex-direction:column;gap:18px}.ap-form-stack label,.ap-form-grid label{display:flex;flex-direction:column;gap:8px;font-weight:700;font-size:13px}.ap-form-stack small,.ap-form-grid small{font-weight:500;color:#53627f}.ap-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ap-form-stack .two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ap-drawer-actions{margin-top:auto;border-top:1px solid #e7ebf3;padding-top:22px;display:flex;justify-content:flex-end;gap:12px}.upload-box{border:1px dashed #cfd7e6;border-radius:12px;text-align:center;padding:34px 14px;color:#53627f}.upload-box b{display:block;color:#0b1730;margin:8px}.ap-stepper{background:#fff;border:1px solid #e9edf5;border-radius:0 0 14px 14px;padding:22px 90px;display:flex;align-items:center;gap:18px;margin-top:-18px;margin-bottom:18px}.ap-stepper b{position:relative;color:#0b1730;font-size:13px;min-width:150px}.ap-stepper b:before{content:attr(class);display:none}.ap-stepper b.on{color:#5b27ff}.ap-stepper i{height:2px;background:#d8deeb;flex:1}.ap-stepper span{display:block;color:#53627f;font-weight:500;margin-top:4px}.ap-quick-grid.exact{display:grid;grid-template-columns:40% 1fr;gap:18px}.ap-quick-grid .ap-panel{padding:18px}.ap-quick-grid .inventory{grid-column:1}.ap-quick-grid .review{grid-column:2;grid-row:2}.ap-mini-table{width:100%;border-collapse:collapse}.ap-mini-table td,.ap-mini-table th{padding:12px 14px;border:1px solid #e7ebf3;text-align:left}.ap-mini-table td:last-child{text-align:right}.ap-filters-mini{display:flex;gap:10px;margin:12px 0}.ap-total{display:flex;justify-content:space-between;padding-top:13px}.ap-renew-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:18px}.ap-renew-grid .ap-panel{padding:20px}.ap-notes{padding:20px;margin-top:18px}.ap-notes div{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;color:#53627f}.ap-placement-filter{padding:22px;margin-bottom:18px}.ap-placement-filter label{display:flex;gap:24px;align-items:center;font-weight:700}.ap-placement-filter select{width:280px}.ap-section-title{display:flex;justify-content:space-between;align-items:center;padding:20px 20px 0}.ap-section-title p{color:#53627f}.ap-thumb{width:66px;height:44px;border-radius:6px;background:linear-gradient(135deg,#5038d6,#e0b76a);display:inline-block;margin-right:14px;vertical-align:middle}.ap-thumb.img1{background:linear-gradient(135deg,#6d28ff,#d8b4fe)}.ap-thumb.img2{background:linear-gradient(135deg,#111827,#374151)}.ap-thumb.img3{background:linear-gradient(135deg,#1d4ed8,#1e293b)}.ap-thumb.img4{background:linear-gradient(135deg,#b45309,#064e3b)}.ap-thumb.img5{background:linear-gradient(135deg,#0ea5e9,#22c55e)}.ap-toggle{display:inline-block;width:34px;height:20px;border-radius:999px;background:#cbd5e1;position:relative;vertical-align:middle}.ap-toggle:after{content:'';width:16px;height:16px;background:#fff;border-radius:50%;position:absolute;top:2px;left:2px;box-shadow:0 1px 3px rgba(0,0,0,.16)}.ap-toggle.on{background:#5b27ff}.ap-toggle.on:after{left:16px}.icon-btn{width:36px;height:36px;padding:0!important;display:inline-grid;place-items:center}.icon-btn.red{color:#ef4444}.ap-legend{background:#f3f7ff;border-radius:12px;border:1px solid #e2e9f8;padding:16px;display:flex;align-items:center;gap:20px;color:#53627f}.ap-actions-combo{display:grid;grid-template-columns:repeat(4,72px) 1px repeat(2,86px);gap:8px;align-items:center}.ap-actions-combo small{grid-column:span 4;color:#53627f}.ap-actions-combo small+button+button+button+button+span+small{grid-column:span 2}.ap-actions-combo span{height:48px;background:#e7ebf3}.ap-actions-combo button{font-size:11px;padding:8px!important}.ap-actions-combo .success{background:#e6f8ed!important;color:#087044}.ap-actions-combo .danger{background:#ffe5e5!important;color:#dc2626}.ap-action-table .actions{width:520px}.ap-message-layout.exact{display:grid;grid-template-columns:330px minmax(0,1fr) 320px;gap:14px}.ap-conversation-list{padding:16px}.ap-filter-row{display:grid;grid-template-columns:1fr 46px;gap:10px;margin:12px 0}.ap-convo{display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center;padding:14px;border-bottom:1px solid #edf1f7;position:relative}.ap-convo.active,.ap-mail-row.active,.ap-mail-nav .active{background:#f2eaff;border-radius:10px}.ap-convo small,.ap-mail-row small{display:block;color:#53627f;margin-top:4px}.ap-convo em{font-style:normal;color:#53627f;font-size:12px}.ap-convo sup{position:absolute;right:8px;bottom:18px;background:#5b27ff;color:#fff;border-radius:50%;width:18px;height:18px;display:grid;place-items:center}.avatar{width:48px;height:48px;border-radius:14px;background:linear-gradient(135deg,#7c3aed,#4f19e8);display:inline-grid;place-items:center;color:#fff;font-weight: var(--vesta-fw-title)}.ap-chat{display:flex;flex-direction:column;min-height:760px}.ap-chat header,.ap-reader header{display:flex;gap:14px;align-items:center;padding:22px;border-bottom:1px solid #e7ebf3}.ap-chat header h2{margin:0}.ap-chat header p,.sender em{color:#53627f}.ap-chat header button{margin-left:auto}.ap-chat header button+button{margin-left:0}.date-pill{align-self:center;margin:20px;border:1px solid #e7ebf3;border-radius:999px;padding:8px 18px;color:#53627f}.ap-bubble{max-width:68%;padding:18px;border-radius:12px;margin:14px 24px;line-height:1.55}.ap-bubble.out{align-self:flex-end;background:#f1eafd}.ap-bubble.in{align-self:flex-start;background:#f4f6f9}.ap-bubble small{display:block;text-align:right;color:#53627f;margin-top:10px}.file-chip{display:flex;align-items:center;gap:10px;border:1px solid #e7ebf3;background:#fff;border-radius:10px;padding:12px;margin-top:12px}.file-chip span{color:#53627f}.file-chip button{margin-left:auto}.ap-composer{margin:auto 22px 22px;display:grid;grid-template-columns:44px 1fr 44px 50px;gap:10px}.ap-composer input{width:100%}.ap-composer .send{background:#5b27ff!important;color:#fff!important}.ap-side-detail{padding:24px}.contact-head{display:grid;grid-template-columns:56px 1fr;gap:6px 14px;align-items:center}.contact-head small,.contact-head .ap-badge{grid-column:2}.ap-side-detail dl{display:grid;grid-template-columns:120px 1fr;gap:12px}.ap-side-detail dt{color:#53627f}.ap-side-detail dd{margin:0}.ap-email-layout.exact{display:grid;grid-template-columns:180px 320px minmax(0,1fr) 310px;gap:0}.ap-email-layout.exact>.ap-panel{border-radius:0;box-shadow:none}.ap-mail-nav{padding:18px}.ap-mail-nav b{display:flex;justify-content:space-between;padding:12px;border-radius:9px}.ap-mail-list{padding:16px}.mail-tools{display:flex;justify-content:space-between;margin:12px 0}.ap-mail-row{display:grid;grid-template-columns:22px 1fr auto 20px;gap:10px;padding:14px;border-bottom:1px solid #edf1f7;align-items:start}.ap-mail-row strong{display:block;margin:4px 0}.ap-reader{padding-bottom:18px}.sender{display:flex;align-items:center;gap:12px;padding:18px}.sender em{margin-left:auto}.ap-reader article{padding:0 24px;line-height:1.65}.ap-reader h3{padding:0 24px}.file-chip.large{margin:0 24px 18px;max-width:360px}.reply-tabs{padding:0 24px;display:flex;gap:24px}.reply-tabs b{color:#5b27ff;border-bottom:2px solid #5b27ff;padding-bottom:8px}.reply-box{margin:12px 24px;border:1px solid #e7ebf3;border-radius:10px;min-height:160px;padding:16px;color:#53627f}.reply-box footer{margin-top:90px;display:flex;gap:16px;align-items:center}.reply-box button{margin-left:auto;background:#5b27ff!important;color:#fff!important}.icon-row{display:flex;gap:12px;margin:20px 0}.icon-row button{border-radius:999px!important;width:40px;height:40px}.ap-settings-grid{display:grid;grid-template-columns:260px 1fr;gap:18px}.ap-settings-menu{padding:16px}.ap-settings-menu b{display:block;padding:14px;border-radius:9px}.ap-settings-menu .active{background:#f2eaff;color:#5b27ff}.ap-settings-main{padding:24px}.ap-profile-card{display:flex;align-items:center;gap:16px;border:1px solid #e7ebf3;border-radius:14px;padding:18px;margin-bottom:20px}.ap-profile-card button{margin-left:auto}
@media(max-width:1200px){.ap-table-drawer,.ap-renew-grid,.ap-message-layout.exact,.ap-email-layout.exact{grid-template-columns:1fr}.ap-drawer.fixed{position:static;min-height:0}.ap-stats-row.six,.ap-stats-row.four{grid-template-columns:repeat(2,1fr)}.ap-quick-grid.exact{grid-template-columns:1fr}.ap-quick-grid .review{grid-column:auto;grid-row:auto}.ap-stepper{padding:18px;overflow:auto}.ap-actions-combo{display:flex;flex-wrap:wrap}.ap-action-table .actions{width:auto}}

/* AD UI FIX v1.1.5: final advertising visual correction layer */
html,body,.vesta-ad-shell,.vesta-ad-shell *{font-family:'Inter',Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;}
body.vesta-app-body{background:#f7f8fb!important;overflow:hidden!important;}
.vesta-app-shell__main{margin-left:270px!important;background:#f7f8fb!important;}
.vesta-page-shell.vesta-ad-page{padding:20px 28px 52px!important;background:#f7f8fb!important;overflow-x:hidden!important;}
.ap-page-head{min-height:92px!important;padding:20px 24px!important;border-radius:18px!important;margin:0 0 18px!important;box-shadow:0 10px 28px rgba(16,24,40,.03)!important;display:flex!important;align-items:center!important;gap:16px!important;}
.ap-page-head h1{font-size:var(--vesta-fs-page-title)!important;line-height:1.15!important;font-weight: var(--vesta-fw-title) !important;letter-spacing:-.035em!important;margin:0 0 5px!important;color:#0f172a!important;}
.ap-page-head p{font-size:14px!important;line-height:1.35!important;color:#53627f!important;margin:0!important;font-weight:400!important;}
.ap-head-icon,.ap-page-head .ap-head-icon{width:40px!important;height:40px!important;border-radius:14px!important;background:#f1eaff!important;color:#5b27ff!important;}
.ap-head-icon svg{width:24px!important;height:24px!important;stroke-width:2!important;}
.ap-primary{height:44px!important;padding:0 18px!important;border-radius:10px!important;font-size:13px!important;font-weight:700!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
.ap-filterbar{padding:14px 16px!important;border-radius:16px!important;gap:12px!important;margin-bottom:16px!important;box-shadow:0 8px 22px rgba(16,24,40,.025)!important;}
.ap-filterbar .ap-input,.ap-filterbar input{height:42px!important;min-height:42px!important;font-size:13px!important;font-weight:400!important;}
.ap-filterbar button,.ap-filters-mini button{height:42px!important;min-height:42px!important;border-radius:10px!important;font-size:13px!important;font-weight:650!important;padding:0 14px!important;white-space:nowrap!important;}
.ap-input,input:not(.vesta-search input),select,textarea{font-family:'Inter',Inter,system-ui!important;font-size:13px!important;font-weight:400!important;line-height:1.25!important;}
.ap-stats-row{gap:14px!important;margin-bottom:16px!important;}
.ap-stats-row.six{grid-template-columns:repeat(6,minmax(0,1fr))!important;}
.ap-stats-row.four{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
.ap-stat{min-height:78px!important;border-radius:14px!important;padding:14px 16px!important;grid-template-columns:42px 1fr!important;gap:4px 12px!important;box-shadow:0 8px 22px rgba(16,24,40,.028)!important;}
.ap-stat strong{font-size:22px!important;font-weight: var(--vesta-fw-title) !important;letter-spacing:-.03em!important;line-height:1!important;}
.ap-stat small{font-size:12px!important;font-weight:500!important;color:#53627f!important;}
.ap-stat-icon{width:36px!important;height:36px!important;border-radius:11px!important;}
.ap-panel{border-radius:16px!important;box-shadow:0 10px 26px rgba(16,24,40,.03)!important;overflow:hidden!important;}
.ap-panel h2{font-size:17px!important;font-weight: var(--vesta-fw-title) !important;letter-spacing:-.025em!important;}
.ap-table{font-size:12px!important;border-collapse:collapse!important;table-layout:auto!important;}
.ap-table th{padding:12px 14px!important;font-size:11px!important;font-weight: var(--vesta-fw-title) !important;letter-spacing:.01em!important;color:#3f4b62!important;background:#fbfcfe!important;text-transform:none!important;}
.ap-table td{padding:13px 14px!important;font-size:12px!important;font-weight:500!important;color:#111827!important;line-height:1.35!important;}
.ap-table td strong{font-size:12px!important;font-weight:700!important;}
.ap-table small{font-size:11px!important;line-height:1.35!important;color:#53627f!important;}
.ap-badge{font-size:10px!important;font-weight:700!important;padding:3px 7px!important;border-radius:7px!important;}
.ap-mini-btn,.icon-btn{height:32px!important;min-height:32px!important;border-radius:8px!important;font-size:11px!important;font-weight:650!important;padding:0 10px!important;}
.icon-btn{width:32px!important;display:inline-grid!important;place-items:center!important;}
.ap-pagination{padding:14px 0 0!important;font-size:12px!important;align-items:center!important;gap:8px!important;}
.ap-pagination b,.ap-pagination select{height:36px!important;min-height:36px!important;border-radius:9px!important;font-size:12px!important;font-weight:650!important;}
.ap-pagination b{width:36px!important;}
.ap-table-drawer{display:block!important;}
.ap-table-drawer>.ap-drawer{display:none!important;}
.ap-drawer,.ap-drawer.fixed{display:none!important;}
.ap-drawer.is-open{display:flex!important;}
.ap-dashboard-hero{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:10px 0 22px!important;display:flex!important;align-items:flex-end!important;justify-content:space-between!important;}
.ap-dashboard-hero h1{font-size:var(--vesta-fs-page-title)!important;font-weight: var(--vesta-fw-title) !important;letter-spacing:-.045em!important;margin:0 0 6px!important;}
.ap-dashboard-hero p{font-size:14px!important;color:#53627f!important;}
.vesta-view-switch{min-width:500px!important;height:58px!important;border-radius:20px!important;padding:5px!important;background:#fff!important;}
.vesta-view-switch__button{height:46px!important;border-radius:15px!important;font-size:13px!important;font-weight:700!important;}
.ap-module-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:14px!important;}
.ap-module-card{min-height:235px!important;border-radius:20px!important;padding:28px 24px!important;box-shadow:0 12px 32px rgba(16,24,40,.04)!important;}
.ap-module-icon{width:40px!important;height:40px!important;border-radius:18px!important;}
.ap-module-card strong{font-size:18px!important;font-weight: var(--vesta-fw-title) !important;letter-spacing:-.035em!important;margin-top:auto!important;}
.ap-module-card p{font-size:13px!important;line-height:1.5!important;color:#53627f!important;max-width:160px!important;}
.ap-card-arrow{width:44px!important;height:44px!important;right:20px!important;bottom:22px!important;font-size:20px!important;}
.ap-bottom-dock{height:58px!important;margin-top:24px!important;border-radius:18px!important;padding:0 14px!important;}
.ap-bottom-dock span{font-size:12px!important;padding:8px 14px!important;}
.ap-actions-combo{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important;max-width:440px!important;}
.ap-actions-combo small{flex-basis:100%!important;font-size:10px!important;color:#53627f!important;}
.ap-actions-combo button{height:30px!important;font-size:10px!important;padding:0 8px!important;}
.ap-actions-combo span{display:none!important;}
.ap-action-table .actions{width:460px!important;}
.ap-stepper{padding:16px 64px!important;border-radius:0 0 16px 16px!important;gap:14px!important;}
.ap-stepper b{font-size:12px!important;min-width:130px!important;font-weight:700!important;}
.ap-stepper span{font-size:11px!important;}
.ap-quick-grid.exact{grid-template-columns:.9fr 1.1fr!important;gap:16px!important;}
.ap-quick-grid .ap-panel{padding:16px!important;}
.ap-renew-grid{grid-template-columns:1.2fr .9fr!important;gap:16px!important;}
.ap-message-layout.exact{grid-template-columns:300px minmax(0,1fr) 300px!important;gap:12px!important;}
.ap-email-layout.exact{grid-template-columns:170px 300px minmax(0,1fr) 300px!important;}
.ap-side-detail{padding:20px!important;}
.ap-chat{min-height:640px!important;}
.ap-bubble{font-size:13px!important;padding:14px!important;}
/* keep right detail panels visible; only create/edit drawers are hidden */
.ap-side-detail.ap-panel,.ap-message-layout .ap-side-detail,.ap-email-layout .ap-side-detail{display:block!important;}
@media(max-width:1300px){.ap-module-grid{grid-template-columns:repeat(3,1fr)!important}.ap-stats-row.six{grid-template-columns:repeat(3,1fr)!important}.ap-quick-grid.exact,.ap-renew-grid,.ap-message-layout.exact,.ap-email-layout.exact{grid-template-columns:1fr!important}.ap-action-table .actions{width:auto!important}}
.ap-error-strip{border-radius:9px;background:#ffe5ec;border:1px solid #ffc8d6;color:#b4233a;padding:13px 16px;margin:16px 0}.ap-link-button{border:0!important;background:transparent!important;color:#176df1!important;padding:0!important;font-weight:700!important;box-shadow:none!important;cursor:pointer}.ap-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.ap-kpi-grid .ap-panel{padding:18px}.ap-kpi-grid small{display:block;color:#53627f;font-weight:700}.ap-kpi-grid h2{margin:6px 0 0!important;font-size:var(--vesta-fs-section-title)!important}
@media(max-width:900px){.ap-kpi-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.ap-kpi-grid{grid-template-columns:1fr}}
/* Phase 2A dashboard realignment: donor-style operational Full View inside Vesta shell */
.ap-operational-kpis{grid-template-columns:repeat(4,minmax(0,1fr));}
.ap-operational-kpis-short{grid-template-columns:repeat(4,minmax(0,1fr));}
.ap-operational-kpis-short .ap-stat:nth-child(n+3){display:none;}
.ap-ops-panel{margin-bottom:18px;}
.ap-pill-tabs{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.ap-pill-tabs span{border:1px solid var(--ap-line);background:#fff;border-radius:999px;padding:9px 14px;font-size:12px;font-weight: var(--vesta-fw-title);color:#1f2b46;}
.ap-pill-tabs span.is-active{background:#121a2e;color:#fff;border-color:#121a2e;}
.ap-date-filter{display:grid;grid-template-columns:1fr 1fr auto;gap:14px;margin:18px 0;align-items:end;}
.ap-date-filter label{display:grid;gap:8px;font-size:12px;font-weight: var(--vesta-fw-title);color:#17213a;}
.ap-info-strip{background:#fffaf0;border:1px solid #f1e4c6;border-radius:14px;padding:14px 16px;color:#5f5661;font-size:13px;margin:16px 0;}
.ap-bar-chart{height:300px;border:1px solid var(--ap-line);border-radius:16px;padding:26px 18px 42px;display:flex;gap:14px;align-items:end;background:repeating-linear-gradient(0deg,#fff,#fff 49px,#edf1f8 50px);}
.ap-bar-chart span{position:relative;flex:1;height:100%;display:flex;align-items:end;justify-content:center;}
.ap-bar-chart i{display:block;width:100%;max-width:42px;height:var(--h);border-radius:12px 12px 4px 4px;background:linear-gradient(180deg,var(--ap-purple),var(--ap-green));}
.ap-bar-chart b{position:absolute;bottom:-28px;font-size:11px;color:var(--ap-muted);font-weight:700;white-space:nowrap;}
.ap-device-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:12px 0 18px;}
.ap-device-card{border:1px solid var(--ap-line);border-radius:14px;padding:16px;background:#fff;display:grid;gap:6px;}
.ap-device-card b{color:var(--ap-muted);font-size:12px;}
.ap-device-card strong{font-size:18px;color:var(--ap-text);}
.ap-device-card small{color:var(--ap-muted);}
@media (max-width:1100px){.ap-operational-kpis,.ap-operational-kpis-short,.ap-device-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.ap-date-filter{grid-template-columns:1fr;}.ap-bar-chart{overflow-x:auto;}.ap-bar-chart span{min-width:70px;}}

/* Phase 2B analytics wiring */
.ap-pill-tabs button,.ap-pill-tabs a{border:1px solid var(--ap-line);background:#fff;border-radius:999px;padding:9px 14px;font-size:12px;font-weight: var(--vesta-fw-title);color:#1f2b46;text-decoration:none;line-height:1;cursor:pointer;}
.ap-pill-tabs button.is-active,.ap-pill-tabs a.is-active{background:#121a2e;color:#fff;border-color:#121a2e;}
.ap-chart-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:14px 0 10px;color:#17213a;font-weight: var(--vesta-fw-title);}
.ap-chart-toolbar button{border:1px solid var(--ap-line);background:#fff;border-radius:999px;padding:9px 14px;font-size:13px;font-weight: var(--vesta-fw-title);color:#17213a;cursor:pointer;}
.ap-chart-toolbar button.is-active{background:#121a2e;color:#fff;border-color:#121a2e;}
.ap-chart-canvas{height:320px;border:1px solid var(--ap-line);border-radius:16px;padding:18px;background:repeating-linear-gradient(0deg,#fff,#fff 49px,#edf1f8 50px);overflow:hidden;}
.ap-chart-canvas svg{width:100%;height:100%;display:block;overflow:visible;}
.ap-chart-axis{font-size:11px;fill:var(--ap-muted);font-weight:700;}
.ap-chart-grid{stroke:#e8eef7;stroke-width:1;}
.ap-chart-line{fill:none;stroke:var(--ap-green);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;}
.ap-chart-area{fill:rgba(16,163,127,.20);stroke:var(--ap-green);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;}
.ap-chart-point{fill:#fff;stroke:var(--ap-green);stroke-width:3;}
.ap-chart-bar{fill:rgba(16,163,127,.66);rx:8;}
.ap-chart-empty{display:flex;align-items:center;justify-content:center;height:100%;color:var(--ap-muted);font-weight: var(--vesta-fw-title);}
@media (max-width:1100px){.ap-chart-canvas{overflow-x:auto;}.ap-chart-canvas svg{min-width:760px;}}

/* Phase 2C dashboard analytics rebuild repairs */
.ap-operational-kpis .ap-stat,
.ap-stats-row.mini .ap-stat,
.ap-stats-row-analytics .ap-stat{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:8px;
  min-height:104px;
  position:relative;
}
.ap-operational-kpis .ap-stat strong,
.ap-stats-row.mini .ap-stat strong,
.ap-stats-row-analytics .ap-stat strong{
  order:1;
  line-height:1.05;
  margin:0;
  white-space:nowrap;
}
.ap-operational-kpis .ap-stat small,
.ap-stats-row.mini .ap-stat small,
.ap-stats-row-analytics .ap-stat small{
  order:2;
  line-height:1.25;
  margin:0;
  position:static;
  transform:none;
}
.ap-operational-kpis .ap-stat em,
.ap-stats-row.mini .ap-stat em,
.ap-stats-row-analytics .ap-stat em{
  order:3;
  line-height:1.25;
  margin:0;
}
.ap-stats-row.mini .ap-stat{min-height:96px;}
.ap-date-filter{align-items:end;}
.ap-date-filter label{display:grid;gap:8px;font-weight: var(--vesta-fw-title);color:#17213a;}
.ap-date-filter input[type=date]{min-height:48px;}
.ap-ops-panel h3{font-size:var(--vesta-fs-section-title);line-height:1.12;margin:22px 0 14px;letter-spacing:-.04em;}
.ap-device-card{display:flex;flex-direction:column;gap:8px;align-items:flex-start;justify-content:center;min-height:96px;}
.ap-device-card strong{line-height:1.05;}

/* Phase 2F: real Analytics View layout, no dummy/stat-card overlap. */
.ap-analytics-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0 20px;}
.ap-analytics-card{background:#fff;border:1px solid var(--vesta-border,#e1e8f2);border-radius:18px;padding:18px 20px;min-height:104px;display:flex;flex-direction:column;justify-content:center;gap:8px;box-shadow:0 14px 32px rgba(15,23,42,.04);}
.ap-analytics-card small{font-weight:700;color:#53627c;line-height:1.2;}
.ap-analytics-card strong{display:block;font-size:var(--vesta-fs-kpi);line-height:1.05;color:#0b1328;letter-spacing:-.03em;}
.ap-analytics-card em{font-style:normal;font-weight:700;color:#009f62;font-size:13px;line-height:1.2;}
.ap-analytics-report-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(320px,.9fr);gap:22px;margin-top:24px;align-items:start;}
.ap-device-grid--compact{grid-template-columns:1fr;gap:10px;margin-bottom:22px;}
.ap-device-grid--compact .ap-device-card{min-height:82px;}
@media (max-width:1100px){.ap-analytics-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.ap-analytics-report-grid{grid-template-columns:1fr;}}
@media (max-width:680px){.ap-analytics-summary-grid{grid-template-columns:1fr;}.ap-analytics-card strong{font-size:var(--vesta-fs-kpi);}}

/* Phase 2H: dedicated Analytics View. This is no longer a Full View clone. */
.ap-analytics-lab{background:#fff;border:1px solid var(--vesta-border,#e1e8f2);border-radius:24px;padding:26px;box-shadow:0 18px 44px rgba(15,23,42,.045);display:grid;gap:22px;}
.ap-analytics-lab__head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;}
.ap-eyebrow{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.13em;font-weight:var(--vesta-fw-title);color:#009f62;margin-bottom:6px;}
.ap-analytics-lab h2{font-size:var(--vesta-fs-section-title);line-height:1.1;margin:0 0 8px;color:#071229;letter-spacing:-.04em;}
.ap-analytics-lab p{margin:0;color:#53627c;font-weight:500;}
.ap-analytics-insight-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;}
.ap-analytics-insight-strip article{border:1px solid var(--vesta-border,#e1e8f2);border-radius:18px;background:linear-gradient(180deg,#fff,#fbfdff);padding:16px 18px;min-height:104px;display:flex;flex-direction:column;justify-content:center;gap:7px;}
.ap-analytics-insight-strip small{font-weight:var(--vesta-fw-title);color:#53627c;line-height:1.2;}
.ap-analytics-insight-strip strong{font-size:var(--vesta-fs-kpi);line-height:1.04;letter-spacing:-.04em;color:#071229;white-space:nowrap;}
.ap-analytics-insight-strip span{font-weight: var(--vesta-fw-title);color:#009f62;font-size:13px;line-height:1.2;}
.ap-date-filter--analytics{margin:0;}
.ap-analytics-chart-card{border:1px solid var(--vesta-border,#e1e8f2);border-radius:22px;background:#fff;padding:16px 18px 18px;}
.ap-analytics-chart-card .ap-chart-canvas{border:0;border-radius:0;padding-top:0;min-height:300px;}
.ap-analytics-deep-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:18px;align-items:start;}
.ap-analytics-report-card{border:1px solid var(--vesta-border,#e1e8f2);border-radius:22px;background:#fff;padding:18px;box-shadow:0 10px 24px rgba(15,23,42,.025);}
.ap-analytics-report-card--wide{min-width:0;}
.ap-report-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px;}
.ap-report-title h3{font-size:22px;line-height:1.15;margin:0;color:#071229;letter-spacing:-.035em;}
.ap-report-title strong{background:#f5f8fc;border:1px solid var(--vesta-border,#e1e8f2);border-radius:999px;padding:8px 12px;font-size:12px;white-space:nowrap;}
.ap-device-list{display:grid;gap:10px;}
.ap-device-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;border:1px solid var(--vesta-border,#e1e8f2);border-radius:16px;padding:14px 16px;min-height:0;}
.ap-device-row span{font-weight: var(--vesta-fw-title);color:#17213a;}
.ap-device-row b{font-size:20px;color:#071229;}
.ap-device-row small{font-weight:var(--vesta-fw-title);color:#53627c;}
@media (max-width:1200px){.ap-analytics-insight-strip{grid-template-columns:repeat(3,minmax(0,1fr));}.ap-analytics-deep-grid{grid-template-columns:1fr;}}
@media (max-width:760px){.ap-analytics-lab{padding:18px;border-radius:20px;}.ap-analytics-lab__head{display:grid;}.ap-analytics-insight-strip{grid-template-columns:1fr;}.ap-analytics-lab h2{font-size:var(--vesta-fs-section-title);}.ap-analytics-chart-card .ap-chart-canvas{min-height:240px;}.ap-device-row{grid-template-columns:1fr;}}

/* Phase 2I: Ads Action Menu command-center rebuild */
.ap-action-command-head{align-items:center!important;border-radius:22px!important;padding:24px 28px!important;}
.ap-action-command-head .ap-primary,.ap-open-quick-drawer{margin-left:auto!important;border-radius:12px!important;min-height:48px!important;padding:0 24px!important;display:inline-flex!important;align-items:center!important;gap:8px!important;}
.ap-action-filter-modern{background:#fff;border:1px solid #e3e9f3;border-radius:22px;padding:18px 20px;margin-bottom:20px;box-shadow:0 14px 34px rgba(15,23,42,.035);}
.ap-action-filter-grid{display:grid;grid-template-columns:minmax(260px,1.35fr) auto minmax(190px,.8fr) minmax(190px,.8fr) minmax(170px,.65fr) auto;gap:14px;align-items:center;}
.ap-action-filter-grid label{margin:0;}
.ap-action-filter-grid label>span{display:block;font-size:12px;color:#53627f;font-weight: var(--vesta-fw-title);margin:0 0 4px;}
.ap-action-search-field{height:52px;border:1px solid #dfe6f2;border-radius:13px;background:#fff;padding:0 12px;display:flex!important;align-items:center;gap:10px;}
.ap-action-search-field span{margin:0!important;color:#0b1328;display:grid!important;place-items:center;}
.ap-action-search-field svg{width:18px;height:18px;}
.ap-action-search-field input{border:0!important;min-height:0!important;padding:0!important;flex:1;font-size:14px;}
.ap-action-filter-grid select{width:100%;min-height:52px;border-radius:13px;}
.ap-filter-button{height:52px;border:1px solid #dfe6f2!important;border-radius:13px!important;background:#fff!important;display:inline-flex!important;align-items:center!important;gap:8px!important;padding:0 18px!important;font-weight: var(--vesta-fw-title) !important;}
.ap-filter-button svg{width:17px;height:17px;}
.ap-date-chip{height:52px;border:1px solid #dfe6f2!important;border-radius:13px!important;background:#fff!important;text-align:left!important;line-height:1.15!important;display:flex!important;flex-direction:column!important;justify-content:center!important;padding:0 18px!important;}
.ap-date-chip b{font-size:12px;}
.ap-reset-link{color:#5b27ff;text-decoration:none;font-weight: var(--vesta-fw-title);}
.ap-action-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 22px;}
.ap-action-kpis article{background:#fff;border:1px solid #e3e9f3;border-radius:18px;min-height:120px;padding:22px;display:grid;grid-template-columns:56px 1fr;gap:16px;align-items:center;box-shadow:0 16px 38px rgba(15,23,42,.035);}
.ap-kpi-icon{width:40px;height:40px;border-radius:16px;display:grid;place-items:center;}
.ap-kpi-icon svg{width:26px;height:26px;}
.ap-kpi-icon.purple{background:#f0e7ff;color:#6d28ff;}.ap-kpi-icon.green{background:#dcfce7;color:#059669;}.ap-kpi-icon.orange{background:#fff2d8;color:#f59e0b;}.ap-kpi-icon.blue{background:#e2f0ff;color:#1283ff;}
.ap-action-kpis small{display:block;color:#53627f;font-weight:var(--vesta-fw-title);line-height:1.15;}
.ap-action-kpis strong{display:block;color:#071229;font-size:var(--vesta-fs-kpi);line-height:1.05;letter-spacing:-.035em;margin:4px 0;}
.ap-action-kpis em{font-style:normal;color:#53627f;font-weight: var(--vesta-fw-title);font-size:13px;}.ap-action-kpis em.danger{color:#e11d48;}
.ap-action-table-card{background:#fff;border:1px solid #e3e9f3;border-radius:22px;padding:16px;box-shadow:0 18px 44px rgba(15,23,42,.04);}
.ap-action-table-wrap{overflow-x:auto;border:1px solid #e7ecf5;border-radius:16px;}
.ap-action-table-modern{min-width:1160px;border-collapse:separate!important;border-spacing:0!important;}
.ap-action-table-modern th{background:#fbfcff!important;font-size:12px!important;color:#33415f!important;font-weight:var(--vesta-fw-title)!important;padding:16px!important;border-bottom:1px solid #e7ecf5!important;}
.ap-action-table-modern td{padding:16px!important;vertical-align:middle!important;border-bottom:1px solid #e7ecf5!important;}
.ap-action-table-modern tbody tr:last-child td{border-bottom:0!important;}
.ap-action-table-modern tbody tr:hover{background:#fbfdff;}
.ap-action-table-modern td b{display:block;color:#071229;font-weight:var(--vesta-fw-title);line-height:1.2;}
.ap-action-table-modern td small{display:block;color:#53627f;margin-top:4px;font-weight:650;}
.ap-row-actions{display:flex;align-items:center;gap:10px;position:relative;white-space:nowrap;}
.ap-view-invoice{height:38px;padding:0 14px;border:1px solid #e4e9f3;border-radius:10px;background:#fff;color:#5b27ff;text-decoration:none;font-weight:var(--vesta-fw-title);display:inline-flex;align-items:center;gap:8px;box-shadow:0 8px 16px rgba(15,23,42,.025);}
.ap-view-invoice svg{width:16px;height:16px;}.ap-view-invoice.disabled{color:#8a95aa;background:#f8fafc;}
.ap-action-more{position:relative;}
.ap-action-more-btn{width:38px;height:38px;border:1px solid #e4e9f3!important;border-radius:10px!important;background:#fff!important;color:#5b27ff!important;font-weight:var(--vesta-fw-title)!important;line-height:1!important;padding:0!important;}
.ap-action-menu-popover{position:absolute;right:0;top:44px;width:210px;background:#fff;border:1px solid #e3e9f3;border-radius:14px;box-shadow:0 20px 46px rgba(15,23,42,.16);padding:8px;z-index:80;display:grid;gap:2px;}
.ap-action-menu-popover[hidden]{display:none!important;}
.ap-action-menu-popover a,.ap-action-menu-popover button{width:100%;border:0!important;background:#fff!important;border-radius:10px!important;padding:10px 10px!important;text-align:left!important;color:#18233c!important;font-size:13px!important;font-weight: var(--vesta-fw-title) !important;display:flex!important;align-items:center!important;gap:9px!important;text-decoration:none!important;min-height:0!important;}
.ap-action-menu-popover a:hover,.ap-action-menu-popover button:hover{background:#f6f8fc!important;}
.ap-action-menu-popover form{margin:0!important;display:block!important;}.ap-action-menu-popover hr{border:0;border-top:1px solid #edf1f7;margin:6px 0;}
.ap-action-menu-popover button.success{color:#059669!important;}.ap-action-menu-popover button.danger{color:#dc2626!important;}
.ap-action-pagination-modern{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 4px 2px;color:#53627f;font-weight: var(--vesta-fw-title);}
.ap-action-pagination-modern nav{display:flex;align-items:center;gap:10px;}
.ap-action-pagination-modern a,.ap-action-pagination-modern b{min-width:42px;height:42px;border:1px solid #dfe6f2;border-radius:12px;display:grid;place-items:center;text-decoration:none;color:#071229;background:#fff;font-weight:var(--vesta-fw-title);}
.ap-action-pagination-modern b:not(.active){color:#a0a9ba;background:#f8fafc;}
.ap-action-pagination-modern .active{color:#5b27ff;border-color:#8b5cf6;box-shadow:0 8px 18px rgba(109,40,255,.10);}
.ap-action-pagination-modern select{height:42px;border-radius:12px;padding:0 50px 0 14px;font-weight: var(--vesta-fw-title);}
.ap-action-quick-drawer .ap-form-stack{gap:14px;}.ap-action-quick-drawer select,.ap-action-quick-drawer input{width:100%;}.ap-action-quick-drawer h2 span{cursor:pointer;}
.ap-action-quick-drawer.is-open{display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:translateX(0)!important;right:24px!important;top:86px!important;bottom:18px!important;width:430px!important;min-height:0!important;z-index:1001!important;position:fixed!important;overflow:auto!important;}
@media(max-width:1250px){.ap-action-filter-grid{grid-template-columns:1fr 1fr;}.ap-action-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:760px){.ap-action-filter-grid,.ap-action-kpis{grid-template-columns:1fr;}.ap-action-pagination-modern{align-items:flex-start;flex-direction:column;}.ap-action-quick-drawer.is-open{left:12px!important;right:12px!important;width:auto!important;}.ap-action-command-head .ap-primary{margin-left:0!important;width:100%;justify-content:center!important;}}

/* Phase 2J — Create Campaign / Quick Place Ads exact UI rebuild */
.vesta-ad-shell.ap-create-campaign-shell,
.vesta-ad-shell.ap-create-campaign-shell *{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;box-sizing:border-box}
.ap-create-campaign-shell .vesta-ad-page{max-width:1560px;margin:0 auto;padding:32px 34px 48px;background:#f7f9fd;color:#071329}.ap-create-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px}.ap-create-hero h1{font-size:var(--vesta-fs-page-title);line-height:1.05;margin:0 0 8px;font-weight:var(--vesta-fw-title);letter-spacing:-.04em;color:#071329}.ap-create-hero p{margin:0;color:#53627f;font-size:16px}.ap-create-actions,.ap-submit-row{display:flex;gap:14px;align-items:center}.ap-btn{height:50px;border-radius:13px;border:1px solid #dfe7f2;background:#fff;color:#071329;padding:0 24px;font-weight:var(--vesta-fw-title);text-decoration:none;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 12px 30px rgba(15,23,42,.04);cursor:pointer}.ap-btn.primary{background:linear-gradient(135deg,#7c3aed,#5b27ff);border-color:#5b27ff;color:#fff;box-shadow:0 18px 40px rgba(91,39,255,.22)}.ap-btn.ghost:hover{border-color:#b9c6da}.ap-create-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;background:#fff;border:1px solid #dfe7f2;border-radius:18px;box-shadow:0 18px 50px rgba(15,23,42,.05);padding:18px 10px;margin-bottom:22px}.ap-summary-item{display:grid;grid-template-columns:54px 1fr;grid-template-rows:auto auto auto;gap:2px 14px;align-items:center;padding:4px 20px;border-right:1px solid #edf1f7}.ap-summary-item:last-child{border-right:0}.ap-summary-item>span{grid-row:1/4;width:48px;height:48px;border-radius:14px;display:grid;place-items:center}.ap-summary-item svg{width:21px;height:21px}.ap-summary-item b{font-size:12px;color:#475672;font-weight:var(--vesta-fw-title)}.ap-summary-item strong{font-size:15px;color:#071329;font-weight:var(--vesta-fw-title);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ap-summary-item small{font-size:12px;color:#73809a}.ap-summary-item.purple>span{background:#efe7ff;color:#6d28ff}.ap-summary-item.green>span{background:#dcfce7;color:#07a96f}.ap-summary-item.orange>span{background:#fff2d7;color:#f59e0b}.ap-summary-item.blue>span{background:#e6f2ff;color:#2684ff}.ap-summary-item.slate>span{background:#edf2f8;color:#667085}.ap-create-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:26px;align-items:start}.ap-create-main{display:grid;gap:16px}.ap-create-card{background:#fff;border:1px solid #dfe7f2;border-radius:18px;box-shadow:0 18px 45px rgba(15,23,42,.045);padding:22px}.ap-create-card header{display:flex;gap:13px;align-items:flex-start;margin-bottom:18px}.ap-create-card header>span{width:34px;height:34px;border-radius:10px;background:#efe7ff;color:#6d28ff;display:grid;place-items:center;flex:0 0 auto}.ap-create-card header svg{width:18px;height:18px}.ap-create-card h2{margin:0 0 4px;font-size:21px;line-height:1.15;font-weight:var(--vesta-fw-title);letter-spacing:-.02em;color:#071329}.ap-create-card p{margin:0;color:#53627f;font-size:14px}.ap-create-grid{display:grid;gap:18px}.ap-create-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.ap-create-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.ap-create-grid label{display:grid;gap:8px;color:#071329;font-size:13px;font-weight:var(--vesta-fw-title)}.ap-create-grid label em{color:#ef4444;font-style:normal}.ap-create-grid label small{color:#667085;font-weight:700}.ap-create-grid input,.ap-create-grid select{width:100%;height:48px;border:1px solid #dce5f2;border-radius:11px;background:#fff;color:#071329;padding:0 14px;font-size:14px;outline:0;box-shadow:none}.ap-create-grid input:focus,.ap-create-grid select:focus{border-color:#7c3aed;box-shadow:0 0 0 4px rgba(124,58,237,.10)}.ap-create-grid .wide{grid-column:span 1}.ap-mini-metric{height:48px;border:1px solid #dce5f2;border-radius:11px;padding:10px 14px;display:grid;align-content:center;background:linear-gradient(180deg,#fff,#fcfdff)}.ap-mini-metric b{font-size:12px;color:#53627f}.ap-mini-metric strong{font-size:16px;color:#071329}.ap-pricing-summary{margin-top:18px;border-radius:14px;border:1px solid #e7ddff;background:linear-gradient(135deg,#f7f1ff,#fff);padding:18px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.ap-pricing-summary div{display:grid;gap:6px}.ap-pricing-summary span{font-size:13px;color:#53627f;font-weight: var(--vesta-fw-title)}.ap-pricing-summary b{font-size:15px;color:#071329}.ap-pricing-summary .total{border-left:1px solid #d9ccff;padding-left:20px;text-align:right}.ap-pricing-summary .total strong{font-size:var(--vesta-fs-kpi);color:#6d28ff;font-weight:var(--vesta-fw-title);letter-spacing:-.03em}.creative-grid{align-items:start}.ap-upload-box{display:grid;gap:8px}.ap-upload-box>b{font-size:13px;color:#071329}.ap-dropzone{height:78px!important;border:1px dashed #cfd9e8!important;border-radius:13px!important;background:#fff!important;display:flex!important;gap:10px!important;align-items:center!important;justify-content:center!important;color:#071329!important;cursor:pointer}.ap-dropzone input{display:none!important}.ap-dropzone span{color:#53627f;display:grid}.ap-dropzone strong{height:38px;padding:0 18px;border:1px solid #dfe7f2;border-radius:10px;background:#fff;display:inline-flex;align-items:center;box-shadow:0 10px 24px rgba(15,23,42,.06)}.ap-dropzone em{font-style:normal;color:#53627f;font-weight:650}.ap-creative-preview{height:52px;margin-top:18px;border:1px solid #dce5f2;border-radius:11px;display:flex;align-items:center;gap:12px;padding:0 16px;color:#53627f}.ap-creative-preview b{font-size:13px}.ap-creative-preview small{margin-left:auto}.compact-checks{align-items:center}.ap-check{min-height:52px;display:flex!important;align-items:center;gap:12px;border:1px solid #edf1f7;border-radius:12px;padding:0 14px;background:#fff}.ap-check input{width:18px!important;height:18px!important}.ap-check span{font-weight:var(--vesta-fw-title)}.ap-check small{font-weight:700;color:#53627f}.ap-submit-row{margin-top:20px;justify-content:flex-end}.ap-create-side{position:sticky;top:100px;display:grid;gap:16px}.ap-side-card{background:#fff;border:1px solid #dfe7f2;border-radius:16px;box-shadow:0 18px 45px rgba(15,23,42,.045);padding:20px}.ap-side-card h3{margin:0 0 16px;font-size:16px;font-weight:var(--vesta-fw-title);color:#071329}.ap-progress-ring{--progress:0;width:122px;height:122px;border-radius:50%;margin:12px auto;background:conic-gradient(#6d28ff calc(var(--progress)*1%),#eef2f7 0);display:grid;place-items:center;position:relative}.ap-progress-ring:before{content:"";position:absolute;inset:12px;background:#fff;border-radius:50%}.ap-progress-ring strong{position:relative;font-size:var(--vesta-fs-kpi);font-weight:var(--vesta-fw-title);color:#071329}.ap-side-card.progress p{text-align:center;color:#53627f;font-size:13px;line-height:1.5}.ap-side-card.next ol{list-style:none;margin:0;padding:0;display:grid;gap:16px}.ap-side-card.next li{position:relative;padding-left:28px;color:#53627f}.ap-side-card.next li:before{content:"";position:absolute;left:0;top:2px;width:15px;height:15px;border:2px solid #c9d3e2;border-radius:50%;background:#fff}.ap-side-card.next li.on:before{border-color:#6d28ff;box-shadow:inset 0 0 0 4px #fff;background:#6d28ff}.ap-side-card.next li:not(:last-child):after{content:"";position:absolute;left:7px;top:19px;width:2px;height:22px;background:#dfe7f2}.ap-side-card.next b{display:block;color:#071329;font-size:13px}.ap-side-card.next span{display:block;font-size:12px;margin-top:3px}.ap-side-card.warn{background:#fffaf0;border-color:#f8df9e}.ap-side-card.warn ul{margin:0;padding-left:18px;color:#6b5b29;display:grid;gap:10px;font-weight:700;font-size:13px}.ap-side-card.warn li::marker{color:#f59e0b}.ap-recent-campaigns{margin-top:24px}.ap-recent-campaigns header.split{justify-content:space-between;align-items:center}.ap-table-tools{display:flex;gap:12px;align-items:center}.ap-table-tools label{width:260px;height:44px;border:1px solid #dfe7f2;border-radius:11px;display:flex;align-items:center;gap:10px;padding:0 12px;background:#fff}.ap-table-tools input{border:0;outline:0;width:100%;font-size:13px}.ap-table-tools button{height:44px;border:1px solid #dfe7f2;border-radius:11px;background:#fff;padding:0 16px;font-weight:var(--vesta-fw-title);display:flex;gap:8px;align-items:center}.ap-table-wrap{overflow:auto;border:1px solid #dfe7f2;border-radius:14px}.ap-modern-table{width:100%;border-collapse:separate;border-spacing:0;font-size:14px;background:#fff}.ap-modern-table th{height:44px;background:#fbfcfe;color:#475672;text-align:left;font-size:12px;font-weight:var(--vesta-fw-title);padding:0 16px;border-bottom:1px solid #dfe7f2}.ap-modern-table td{height:58px;padding:0 16px;border-bottom:1px solid #edf1f7;color:#071329}.ap-modern-table tr:last-child td{border-bottom:0}.icon-only{width:34px;height:34px;border:0;background:transparent;color:#33415c;border-radius:9px;display:inline-grid;place-items:center;cursor:pointer}.icon-only:hover{background:#f4f6fb}.ap-modern-pagination{display:grid;grid-template-columns:1fr auto auto;gap:18px;align-items:center;margin-top:16px;color:#53627f;font-size:13px}.ap-modern-pagination div{display:flex;gap:8px}.ap-modern-pagination button,.ap-modern-pagination b{min-width:38px;height:38px;border:1px solid #dfe7f2;border-radius:10px;background:#fff;color:#071329;display:grid;place-items:center;font-weight:var(--vesta-fw-title)}.ap-modern-pagination b{border-color:#6d28ff;color:#6d28ff;box-shadow:0 0 0 4px rgba(109,40,255,.08)}.ap-modern-pagination select{height:40px;border:1px solid #dfe7f2;border-radius:10px;background:#fff;padding:0 12px;font-weight: var(--vesta-fw-title)}.ap-success-strip{border:1px solid #bbf7d0;background:#f0fdf4;color:#047857;padding:14px 16px;border-radius:14px;margin-bottom:18px;font-weight: var(--vesta-fw-title)}.ap-error-strip{border:1px solid #fecaca;background:#fff1f2;color:#b91c1c;padding:14px 16px;border-radius:14px;margin-bottom:18px;font-weight: var(--vesta-fw-title)}
@media(max-width:1400px){.ap-create-summary{grid-template-columns:repeat(3,1fr)}.ap-summary-item{border-right:0}.ap-create-layout{grid-template-columns:1fr}.ap-create-side{position:static;grid-template-columns:repeat(3,1fr)}.ap-create-grid.three{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.ap-create-campaign-shell .vesta-ad-page{padding:22px 16px}.ap-create-hero,.ap-recent-campaigns header.split{display:grid}.ap-create-summary,.ap-create-side,.ap-create-grid.three,.ap-create-grid.two,.ap-pricing-summary{grid-template-columns:1fr}.ap-pricing-summary .total{text-align:left;border-left:0;padding-left:0}.ap-table-tools{display:grid;width:100%}.ap-table-tools label{width:100%}.ap-modern-pagination{grid-template-columns:1fr}.ap-create-actions{justify-content:stretch}.ap-btn{width:100%}}

/* Phase 2K Quick Place Ads real wiring polish */
.ap-date-range-inline input{height:44px!important;min-height:44px!important;border:0!important;background:transparent!important;padding:0!important;font-weight: var(--vesta-fw-title);color:#071329!important;box-shadow:none!important}.ap-date-range-inline{min-width:160px}.ap-table-tools select{height:44px;border:1px solid #dfe7f2;border-radius:11px;background:#fff;padding:0 14px;font-weight: var(--vesta-fw-title);color:#071329}.ap-modern-pagination a{min-width:38px;height:38px;border:1px solid #dfe7f2;border-radius:10px;background:#fff;color:#071329;display:grid;place-items:center;font-weight:var(--vesta-fw-title);text-decoration:none}.ap-modern-pagination a:hover{border-color:#6d28ff;color:#6d28ff}.ap-modern-pagination .active{border-color:#6d28ff!important;color:#6d28ff!important;box-shadow:0 0 0 4px rgba(109,40,255,.08)!important}.icon-only.disabled{opacity:.45;pointer-events:none}.ap-create-card .ap-info-strip{margin:0}.ap-create-actions .ap-btn.primary{min-width:132px}.ap-submit-row .ap-btn.ghost[type="submit"]{background:#fff;color:#071329}.ap-recent-campaigns .ap-table-tools{margin-left:auto}.ap-recent-campaigns .ap-table-tools select{width:160px}

/* Phase 2L invoice modal + Quick Place Ads real-engine cleanup */
.ap-modal-open{overflow:hidden}.ap-invoice-modal[hidden]{display:none!important}.ap-invoice-modal{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;padding:28px}.ap-invoice-modal-backdrop{position:absolute;inset:0;background:rgba(7,19,41,.52);backdrop-filter:blur(8px)}.ap-invoice-modal-panel{position:relative;width:min(1040px,calc(100vw - 48px));max-height:calc(100vh - 56px);overflow:hidden;background:#fff;border:1px solid #dfe7f2;border-radius:24px;box-shadow:0 34px 100px rgba(7,19,41,.24);display:grid;grid-template-rows:auto 1fr}.ap-invoice-modal-panel>header{height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid #edf1f7;background:#fff}.ap-invoice-modal-panel>header h2{margin:0;font-size:18px;font-weight:var(--vesta-fw-title);letter-spacing:-.02em;color:#071329}.ap-invoice-modal-panel>header button{width:38px;height:38px;border:1px solid #dfe7f2;border-radius:12px;background:#fff;color:#071329;font-size:var(--vesta-fs-section-title);line-height:1;cursor:pointer}.ap-invoice-modal-body{overflow:auto;padding:22px;background:#f8fafc}.ap-row-actions .ap-view-invoice{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;border:1px solid #dfe7f2;background:#fff;color:#6d28ff;border-radius:12px;height:44px;padding:0 18px;display:inline-flex;align-items:center;gap:8px;font-weight:var(--vesta-fw-title);cursor:pointer}.ap-action-menu-popover .ap-popover-link{width:100%;border:0;background:transparent;padding:10px 12px;text-align:left;display:flex;gap:10px;align-items:center;color:#071329;font-weight: var(--vesta-fw-title);cursor:pointer}.ap-action-menu-popover .ap-popover-link:hover{background:#f6f8fc}.ap-create-grid .wide{grid-column:span 1}.ap-create-grid.three label.wide{grid-column:span 1}@media(max-width:920px){.ap-invoice-modal{padding:12px}.ap-invoice-modal-panel{width:calc(100vw - 20px);max-height:calc(100vh - 24px);border-radius:18px}.ap-invoice-modal-body{padding:12px}}


.ap-create-campaign-shell .ap-creative-preview{min-height:72px;height:auto;align-items:center;gap:14px;padding:12px 16px;overflow:hidden;background:linear-gradient(180deg,#fff,#fbfcff)}
.ap-create-campaign-shell .ap-creative-preview.has-preview{border-color:#c9b8ff;background:#fbf8ff;box-shadow:0 10px 28px rgba(109,40,255,.08)}
.ap-create-campaign-shell .ap-creative-preview img{width:94px;height:52px;object-fit:cover;border-radius:10px;border:1px solid #dfe7f2;background:#fff;flex:0 0 auto}
.ap-create-campaign-shell .ap-creative-preview b{font-size:13px;font-weight:var(--vesta-fw-title);color:#071329;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ap-create-campaign-shell .ap-creative-preview small{font-size:12px;color:#667085;font-weight: var(--vesta-fw-title);margin-left:auto;white-space:nowrap}
.ap-create-campaign-shell .ap-dropzone.is-dragover{border-color:#7c3aed!important;background:#f7f1ff!important}

/* Phase 2W: Ads Action Menu filter bar consistency repair */
.ap-action-filter-compact{
  padding:16px!important;
  border-radius:22px!important;
  background:#fff!important;
  border:1px solid #e4ebf5!important;
  box-shadow:0 14px 34px rgba(15,23,42,.035)!important;
}
.ap-action-filter-compact .ap-action-filter-grid{
  display:grid!important;
  grid-template-columns:minmax(280px,1.35fr) minmax(185px,.8fr) minmax(185px,.8fr) minmax(150px,.6fr) minmax(150px,.6fr) auto auto!important;
  gap:12px!important;
  align-items:center!important;
}
.ap-action-filter-compact .ap-action-filter-grid > label,
.ap-action-filter-compact .ap-action-filter-grid > select,
.ap-action-filter-compact .ap-action-filter-grid > button,
.ap-action-filter-compact .ap-action-filter-grid > a{
  margin:0!important;
}
.ap-action-filter-compact .ap-action-filter-grid label>span:not(.ap-action-search-field span){
  display:none!important;
}
.ap-action-filter-compact .ap-action-search-field,
.ap-action-filter-compact select,
.ap-action-filter-compact input[type="date"],
.ap-action-filter-compact .ap-filter-button,
.ap-action-filter-compact .ap-reset-link{
  height:48px!important;
  min-height:48px!important;
  border-radius:14px!important;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif!important;
  font-size:14px!important;
  line-height:1!important;
}
.ap-action-filter-compact .ap-action-search-field{
  width:100%!important;
  border:1px solid #dfe7f2!important;
  background:#fff!important;
  padding:0 14px!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  box-shadow:none!important;
}
.ap-action-filter-compact .ap-action-search-field input{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  height:46px!important;
  min-height:46px!important;
  padding:0!important;
  background:transparent!important;
  font-size:14px!important;
  font-weight:500!important;
  color:#071329!important;
}
.ap-action-filter-compact .ap-action-search-field input::placeholder{color:#71809a!important;opacity:1!important;}
.ap-action-filter-compact .ap-action-search-field svg{width:18px!important;height:18px!important;color:#42526e!important;stroke-width:2!important;}
.ap-action-filter-compact select,
.ap-action-filter-compact input[type="date"]{
  width:100%!important;
  border:1px solid #dfe7f2!important;
  background:#fff!important;
  color:#071329!important;
  padding:0 14px!important;
  font-weight:650!important;
  box-shadow:none!important;
}
.ap-action-filter-compact .ap-date-range-inline{
  min-width:0!important;
  width:100%!important;
  position:relative!important;
}
.ap-action-filter-compact .ap-date-range-inline input:invalid{color:#71809a!important;}
.ap-action-filter-compact .ap-filter-button{
  border:1px solid #dfe7f2!important;
  background:#fff!important;
  color:#071329!important;
  padding:0 18px!important;
  font-weight: var(--vesta-fw-title) !important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  white-space:nowrap!important;
  box-shadow:none!important;
}
.ap-action-filter-compact .ap-filter-button svg{width:17px!important;height:17px!important;color:#071329!important;}
.ap-action-filter-compact .ap-reset-link{
  border:1px solid transparent!important;
  background:transparent!important;
  color:#6d28ff!important;
  padding:0 12px!important;
  font-weight:var(--vesta-fw-title)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
.ap-action-filter-compact .ap-reset-link:hover{
  background:#f3edff!important;
  border-color:#eadcff!important;
}
@media (max-width:1280px){
  .ap-action-filter-compact .ap-action-filter-grid{
    grid-template-columns:1fr 1fr 1fr!important;
  }
  .ap-action-filter-compact .ap-action-search-field{grid-column:1 / -1!important;}
}
@media (max-width:760px){
  .ap-action-filter-compact .ap-action-filter-grid{grid-template-columns:1fr!important;}
  .ap-action-filter-compact .ap-filter-button,.ap-action-filter-compact .ap-reset-link{width:100%!important;}
}

/* Phase 2ZG: Invoice detail drawer polish - true slide drawer, compact aligned actions */
.vesta-ad-shell,
.vesta-ad-shell *{
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif!important;
}
.ap-invoice-workspace{
  display:block!important;
  width:100%!important;
  position:relative!important;
}
.ap-invoice-table-card{
  width:100%!important;
  max-width:none!important;
}
.ap-invoice-drawer-backdrop{
  position:fixed!important;
  inset:0!important;
  z-index:99990!important;
  background:rgba(15,23,42,.22)!important;
  backdrop-filter:blur(3px)!important;
  display:block!important;
}
.ap-invoice-side-drawer{
  position:fixed!important;
  top:18px!important;
  right:18px!important;
  bottom:18px!important;
  width:430px!important;
  max-width:calc(100vw - 36px)!important;
  z-index:99991!important;
  background:#fff!important;
  border:1px solid #dfe7f2!important;
  border-radius:22px!important;
  box-shadow:0 30px 90px rgba(15,23,42,.22)!important;
  padding:20px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  transform:translateX(calc(100% + 36px))!important;
  opacity:0!important;
  pointer-events:none!important;
  transition:transform .22s ease, opacity .18s ease!important;
  display:block!important;
  min-height:0!important;
}
.ap-invoice-side-drawer.is-open{
  transform:translateX(0)!important;
  opacity:1!important;
  pointer-events:auto!important;
}
.ap-invoice-side-drawer .ap-drawer-title{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0 0 14px!important;
}
.ap-invoice-side-drawer .ap-drawer-title small{
  color:#475569!important;
  font-size:12px!important;
  font-weight: var(--vesta-fw-title) !important;
  letter-spacing:0!important;
}
.ap-invoice-side-drawer .ap-drawer-title a{
  width:34px!important;
  height:34px!important;
  border-radius:10px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#071329!important;
  text-decoration:none!important;
  font-size:22px!important;
  font-weight:500!important;
  line-height:1!important;
  background:#fff!important;
  border:1px solid transparent!important;
}
.ap-invoice-side-drawer .ap-drawer-title a:hover{
  border-color:#dfe7f2!important;
  background:#f8fafc!important;
}
.ap-invoice-side-drawer .ap-drawer-invoice-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0 0 14px!important;
}
.ap-invoice-side-drawer .ap-drawer-invoice-head h2{
  margin:0!important;
  color:#071329!important;
  font-size:22px!important;
  line-height:1.15!important;
  font-weight:var(--vesta-fw-title)!important;
  letter-spacing:-.035em!important;
  min-width:0!important;
  overflow-wrap:anywhere!important;
}
.ap-invoice-side-drawer .ap-badge{
  flex:0 0 auto!important;
  border-radius:999px!important;
  padding:5px 9px!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight: var(--vesta-fw-title) !important;
}
.ap-invoice-side-drawer .ap-drawer-buttons{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  margin:0 0 20px!important;
}
.ap-invoice-side-drawer .ap-drawer-buttons a{
  height:44px!important;
  border:1px solid #dfe7f2!important;
  background:#fff!important;
  border-radius:12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  color:#071329!important;
  text-decoration:none!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight: var(--vesta-fw-title) !important;
  white-space:nowrap!important;
  box-shadow:none!important;
}
.ap-invoice-side-drawer h3{
  margin:20px 0 12px!important;
  color:#071329!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:var(--vesta-fw-title)!important;
  letter-spacing:-.01em!important;
}
.ap-invoice-side-drawer .ap-invoice-dl{
  display:grid!important;
  grid-template-columns:118px minmax(0,1fr)!important;
  gap:10px 14px!important;
  margin:0 0 18px!important;
  padding:0!important;
}
.ap-invoice-side-drawer .ap-invoice-dl dt{
  color:#475569!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight: var(--vesta-fw-title) !important;
  margin:0!important;
}
.ap-invoice-side-drawer .ap-invoice-dl dd{
  margin:0!important;
  min-width:0!important;
  color:#071329!important;
  font-size:12.5px!important;
  line-height:1.35!important;
  font-weight: var(--vesta-fw-title) !important;
  overflow-wrap:anywhere!important;
}
.ap-invoice-side-drawer .ap-invoice-dl a{
  color:#5b27ff!important;
  text-decoration:none!important;
  font-weight:var(--vesta-fw-title)!important;
}
.ap-invoice-side-drawer .ap-invoice-breakdown{
  border-top:1px solid #e7edf5!important;
  border-bottom:1px solid #e7edf5!important;
  padding:15px 0!important;
  margin:16px 0!important;
  display:grid!important;
  gap:10px!important;
}
.ap-invoice-side-drawer .ap-invoice-breakdown p{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0!important;
  color:#475569!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:650!important;
}
.ap-invoice-side-drawer .ap-invoice-breakdown p b,
.ap-invoice-side-drawer .ap-invoice-breakdown p strong{
  color:#263554!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:var(--vesta-fw-title)!important;
  text-align:right!important;
}
.ap-invoice-side-drawer .ap-invoice-breakdown p:last-child strong{
  color:#5b27ff!important;
  font-size:14px!important;
}
.ap-invoice-side-drawer .ap-drawer-actions-grid{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  margin:0 0 20px!important;
  padding:0!important;
}
.ap-invoice-side-drawer .ap-drawer-actions-grid form{
  margin:0!important;
  padding:0!important;
  min-width:0!important;
}
.ap-invoice-side-drawer .ap-drawer-actions-grid button{
  width:100%!important;
  height:42px!important;
  min-height:42px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border:1px solid #dfe7f2!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#071329!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight: var(--vesta-fw-title) !important;
  padding:0 12px!important;
  white-space:nowrap!important;
  box-shadow:none!important;
  cursor:pointer!important;
}
.ap-invoice-side-drawer .ap-drawer-actions-grid button:hover,
.ap-invoice-side-drawer .ap-drawer-buttons a:hover{
  border-color:#cbd5e1!important;
  background:#f8fafc!important;
}
.ap-invoice-side-drawer .ap-invoice-timeline{
  list-style:none!important;
  margin:0!important;
  padding:2px 0 0 19px!important;
  display:grid!important;
  gap:14px!important;
  position:relative!important;
}
.ap-invoice-side-drawer .ap-invoice-timeline:before{
  content:""!important;
  position:absolute!important;
  left:6px!important;
  top:10px!important;
  bottom:10px!important;
  width:2px!important;
  background:#dde6f2!important;
}
.ap-invoice-side-drawer .ap-invoice-timeline li{
  position:relative!important;
  margin:0!important;
  padding:0!important;
  color:#071329!important;
}
.ap-invoice-side-drawer .ap-invoice-timeline li:before{
  content:""!important;
  position:absolute!important;
  left:-18px!important;
  top:2px!important;
  width:14px!important;
  height:14px!important;
  border-radius:999px!important;
  background:#7c3aed!important;
  box-shadow:0 0 0 4px #fff!important;
}
.ap-invoice-side-drawer .ap-invoice-timeline li.paid:before,
.ap-invoice-side-drawer .ap-invoice-timeline li.created:before{background:#10b981!important;}
.ap-invoice-side-drawer .ap-invoice-timeline li.overdue:before,
.ap-invoice-side-drawer .ap-invoice-timeline li.cancelled:before{background:#ef4444!important;}
.ap-invoice-side-drawer .ap-invoice-timeline b{
  display:block!important;
  color:#071329!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:var(--vesta-fw-title)!important;
}
.ap-invoice-side-drawer .ap-invoice-timeline span{
  display:block!important;
  margin-top:3px!important;
  color:#53627f!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:600!important;
}
@media(max-width:760px){
  .ap-invoice-side-drawer{
    top:10px!important;
    right:10px!important;
    bottom:10px!important;
    left:10px!important;
    width:auto!important;
    max-width:none!important;
    border-radius:18px!important;
    padding:16px!important;
  }
  .ap-invoice-side-drawer .ap-invoice-dl{grid-template-columns:102px minmax(0,1fr)!important;}
}

/* Phase 2ZT — Renewals exact UI rebuild */
.ap-renew-head{margin-bottom:18px!important;}
.ap-renew-head .ap-primary{display:none!important;}
.ap-renew-stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin:0 0 18px;}
.ap-renew-stat{background:#fff;border:1px solid #e5ebf4;border-radius:16px;padding:20px 22px;display:flex;align-items:center;gap:18px;min-height:116px;box-shadow:0 12px 30px rgba(15,23,42,.035);}
.ap-renew-stat div{display:grid;gap:6px;}
.ap-renew-stat small{font-size:14px;font-weight: var(--vesta-fw-title);color:#35435f;}
.ap-renew-stat strong{font-size:var(--vesta-fs-kpi);line-height:1;font-weight: var(--vesta-fw-title);letter-spacing:-.035em;color:#071129;}
.ap-renew-stat em{font-style:normal;font-size:13px;color:#53627f;}
.ap-renew-icon{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;flex:none;}
.ap-renew-icon svg{width:22px;height:22px;}
.ap-renew-icon.purple,.ap-renew-row-icon.purple{background:#efe7ff;color:#5b27ff;}
.ap-renew-icon.red,.ap-renew-row-icon.red{background:#ffe4ec;color:#ef3b5d;}
.ap-renew-icon.orange,.ap-renew-row-icon.orange{background:#fff0d8;color:#f59e0b;}
.ap-renew-icon.green,.ap-renew-row-icon.green{background:#dcf7ea;color:#079455;}
.ap-renew-icon.blue,.ap-renew-row-icon.blue{background:#e7f1ff;color:#2377ff;}
.ap-renew-filter-panel{padding:20px 20px 0;margin-bottom:0!important;border-radius:16px 16px 0 0!important;box-shadow:0 12px 30px rgba(15,23,42,.03)!important;}
.ap-renew-filters{display:grid;grid-template-columns:minmax(260px,1.55fr) minmax(150px,.8fr) minmax(150px,.85fr) minmax(170px,.95fr) minmax(145px,.78fr) minmax(145px,.78fr) 118px 64px;gap:12px;align-items:end;margin-bottom:18px;}
.ap-renew-filters label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight: var(--vesta-fw-title);color:#3c4a66;}
.ap-renew-filters input,.ap-renew-filters select{height:50px;border-radius:10px;border:1px solid #dbe4f0;background:#fff;font-size:14px;color:#0b1730;}
.ap-renew-search{position:relative;align-self:end;}
.ap-renew-search input{width:100%;padding-right:42px;height:50px;border-radius:10px;border:1px solid #dbe4f0;font-size:14px;}
.ap-renew-search span{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#53627f;display:grid;place-items:center;}
.ap-renew-search svg{width:18px;height:18px;}
.ap-renew-filter-btn{height:50px;border-radius:10px!important;border:1px solid #dbe4f0!important;background:#fff!important;font-weight: var(--vesta-fw-title) !important;display:flex!important;align-items:center;justify-content:center;gap:8px;padding:0 12px!important;white-space:nowrap;}
.ap-renew-filter-btn svg{width:17px;height:17px;}
.ap-renew-reset{height:50px;display:grid;place-items:center;color:#5b27ff;font-weight: var(--vesta-fw-title);text-decoration:none;}
.ap-renew-tabs{display:flex;align-items:center;gap:24px;overflow:auto;border-top:1px solid #eef2f7;padding-top:18px;}
.ap-renew-tabs a{position:relative;display:inline-flex;align-items:center;gap:8px;padding:0 0 18px;text-decoration:none;color:#31405e;font-weight: var(--vesta-fw-title);white-space:nowrap;}
.ap-renew-tabs a.active{color:#5b27ff;}
.ap-renew-tabs a.active:after{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;background:#6d28ff;border-radius:999px;}
.ap-renew-tabs span{min-width:22px;height:22px;border-radius:999px;background:#eef2f8;color:#53627f;display:inline-grid;place-items:center;font-size:12px;font-weight: var(--vesta-fw-title);}
.ap-renew-tabs a.active span{background:#efe7ff;color:#5b27ff;}
.ap-renew-table-card{border-radius:0 0 16px 16px!important;padding:0 14px 14px;margin-bottom:16px!important;box-shadow:0 14px 34px rgba(15,23,42,.04)!important;overflow:hidden;}
.ap-renew-table{width:100%;border-collapse:separate;border-spacing:0;font-size:14px;}
.ap-renew-table th{height:54px;text-align:left;color:#33415e;font-size:12px;font-weight: var(--vesta-fw-title);background:#fbfcfe;border-bottom:1px solid #e6ebf3;padding:0 16px;}
.ap-renew-table td{height:78px;border-bottom:1px solid #edf1f6;padding:14px 16px;vertical-align:middle;color:#0b1730;}
.ap-renew-table tr:last-child td{border-bottom:0;}
.ap-renew-table strong{display:block;font-weight: var(--vesta-fw-title);color:#0b1730;line-height:1.25;}
.ap-renew-table small{display:block;color:#53627f;font-size:12px;margin-top:4px;line-height:1.35;}
.ap-renew-campaign{display:flex;align-items:center;gap:14px;min-width:260px;}
.ap-renew-row-icon{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;flex:none;}
.ap-renew-row-icon svg{width:19px;height:19px;}
.ap-renew-days{display:inline-flex;align-items:center;height:24px;border-radius:8px;padding:0 9px;font-size:12px;font-weight: var(--vesta-fw-title);}
.ap-renew-days.green{background:#dcf7ea;color:#079455;}
.ap-renew-days.orange{background:#fff0d8;color:#c16b00;}
.ap-renew-days.red{background:#ffe4ec;color:#e11d48;}
.ap-renew-actions{display:flex;align-items:center;gap:8px;white-space:nowrap;}
.ap-renew-inline-action{display:inline-flex;margin:0;}
.ap-renew-generate{height:38px;border-radius:9px!important;border:1px solid #d9d0ff!important;background:#f3efff!important;color:#5b27ff!important;font-weight: var(--vesta-fw-title) !important;padding:0 14px!important;white-space:nowrap;}
.ap-renew-icon-btn{width:38px;height:38px;border-radius:9px!important;border:1px solid #dbe4f0!important;background:#fff!important;color:#17223b!important;padding:0!important;display:grid!important;place-items:center!important;}
.ap-renew-icon-btn svg{width:17px;height:17px;}
.ap-renew-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #edf1f6;padding:14px 4px 0;margin-top:0;color:#53627f;}
.ap-renew-footer div{display:flex;align-items:center;gap:10px;}
.ap-renew-footer label{display:flex;align-items:center;gap:8px;}
.ap-renew-footer select{height:40px;min-height:40px;border-radius:9px;}
.ap-renew-footer button{width:40px;height:40px;border:1px solid #dbe4f0;border-radius:9px;background:#fff;font-weight: var(--vesta-fw-title);color:#33415e;}
.ap-renew-footer button.active{border-color:#6d28ff;color:#5b27ff;background:#fff;}
.ap-renew-empty{padding:28px;text-align:center;color:#53627f;background:#fbfcfe;border-radius:12px;}
.ap-renew-about{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid #e5ebf4;border-radius:16px;padding:18px 22px;box-shadow:0 12px 30px rgba(15,23,42,.035);}
.ap-renew-about strong{display:block;color:#5b27ff;margin-bottom:6px;}
.ap-renew-about p{margin:0;color:#53627f;}
.ap-renew-about a{margin-left:auto;border:1px solid #dbe4f0;border-radius:10px;height:44px;padding:0 18px;display:inline-flex;align-items:center;gap:8px;color:#1b2741;text-decoration:none;font-weight: var(--vesta-fw-title);white-space:nowrap;}
.ap-renew-about a svg{width:17px;height:17px;}
@media(max-width:1380px){.ap-renew-filters{grid-template-columns:1.4fr .8fr .8fr .9fr .75fr .75fr;}.ap-renew-filter-btn,.ap-renew-reset{grid-column:auto}.ap-renew-stat-grid{grid-template-columns:repeat(3,1fr);}}
@media(max-width:920px){.ap-renew-stat-grid{grid-template-columns:1fr}.ap-renew-filters{grid-template-columns:1fr}.ap-renew-table-card{overflow:auto}.ap-renew-table{min-width:1080px}.ap-renew-about{align-items:flex-start;flex-direction:column}.ap-renew-about a{margin-left:0}.ap-renew-footer{flex-direction:column;align-items:flex-start;gap:12px}}


/* Phase 2ZV — Renewals UI consistency repair */
.vesta-ad-shell,.vesta-ad-shell *{font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;}
.ap-renew-head{min-height:86px!important;padding:18px 22px!important;gap:14px!important;align-items:center!important;}
.ap-renew-head h1{font-size:var(--vesta-fs-page-title)!important;font-weight:650!important;letter-spacing:-.02em!important;margin:0 0 4px!important;}
.ap-renew-head p{font-size:14px!important;line-height:1.35!important;color:#53627f!important;}
.ap-renew-head .ap-head-icon{width:40px!important;height:40px!important;border-radius:14px!important;}
.ap-renew-head .ap-head-icon svg{width:22px!important;height:22px!important;}
.ap-renew-stat-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;margin-bottom:14px!important;}
.ap-renew-stat{min-height:92px!important;padding:16px 18px!important;gap:14px!important;border-radius:14px!important;box-shadow:0 8px 24px rgba(15,23,42,.028)!important;}
.ap-renew-stat div{gap:4px!important;}
.ap-renew-stat small{font-size:13px!important;font-weight:650!important;color:#35435f!important;line-height:1.2!important;}
.ap-renew-stat strong{font-size:var(--vesta-fs-kpi)!important;font-weight:650!important;letter-spacing:-.025em!important;}
.ap-renew-stat em{font-size:12px!important;line-height:1.25!important;color:#53627f!important;}
.ap-renew-icon{width:40px!important;height:40px!important;border-radius:12px!important;}
.ap-renew-icon svg{width:18px!important;height:18px!important;}
.ap-renew-filter-panel{padding:16px 18px 0!important;border-radius:14px 14px 0 0!important;}
.ap-renew-filters{grid-template-columns:minmax(260px,1.6fr) minmax(140px,.85fr) minmax(140px,.85fr) minmax(160px,.95fr) minmax(135px,.75fr) minmax(135px,.75fr) 108px 58px!important;gap:10px!important;margin-bottom:14px!important;}
.ap-renew-filters label{gap:6px!important;font-size:12px!important;font-weight:650!important;}
.ap-renew-filters input,.ap-renew-filters select,.ap-renew-search input{height:44px!important;min-height:44px!important;border-radius:10px!important;font-size:13px!important;padding:0 12px!important;}
.ap-renew-search input{padding-right:38px!important;}
.ap-renew-filter-btn,.ap-renew-reset{height:44px!important;font-size:13px!important;font-weight:650!important;}
.ap-renew-tabs{gap:22px!important;padding-top:14px!important;}
.ap-renew-tabs a{font-size:14px!important;font-weight:650!important;padding-bottom:14px!important;}
.ap-renew-tabs span{min-width:20px!important;height:20px!important;font-size:11px!important;}
.ap-renew-table-card{overflow:visible!important;padding:0 12px 12px!important;border-radius:0 0 14px 14px!important;}
.ap-renew-table{table-layout:fixed!important;font-size:13px!important;}
.ap-renew-table th{height:48px!important;font-size:12px!important;font-weight:650!important;padding:0 14px!important;}
.ap-renew-table td{height:68px!important;padding:12px 14px!important;}
.ap-renew-table strong{font-weight:650!important;line-height:1.24!important;}
.ap-renew-table small{font-size:12px!important;line-height:1.25!important;}
.ap-renew-table th:nth-child(1),.ap-renew-table td:nth-child(1){width:25%;}
.ap-renew-table th:nth-child(2),.ap-renew-table td:nth-child(2){width:18%;}
.ap-renew-table th:nth-child(3),.ap-renew-table td:nth-child(3){width:16%;}
.ap-renew-table th:nth-child(4),.ap-renew-table td:nth-child(4){width:10%;}
.ap-renew-table th:nth-child(5),.ap-renew-table td:nth-child(5){width:8%;}
.ap-renew-table th:nth-child(6),.ap-renew-table td:nth-child(6){width:8%;}
.ap-renew-table th:nth-child(7),.ap-renew-table td:nth-child(7){width:12%;}
.ap-renew-table th:nth-child(8),.ap-renew-table td:nth-child(8){width:15%;}
.ap-renew-campaign{min-width:0!important;gap:12px!important;}
.ap-renew-row-icon{width:36px!important;height:36px!important;border-radius:12px!important;}
.ap-renew-row-icon svg{width:16px!important;height:16px!important;}
.ap-renew-days{height:22px!important;border-radius:7px!important;padding:0 8px!important;font-size:11px!important;font-weight:650!important;}
.ap-renew-actions{position:relative!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;white-space:nowrap!important;}
.ap-renew-generate{height:34px!important;border-radius:9px!important;font-size:13px!important;font-weight:650!important;padding:0 12px!important;}
.ap-renew-icon-btn{width:34px!important;height:34px!important;border-radius:9px!important;flex:0 0 34px!important;}
.ap-renew-icon-btn svg{width:16px!important;height:16px!important;}
.ap-renew-more{position:relative!important;display:inline-flex!important;}
.ap-renew-more-menu{position:absolute;right:0;top:40px;z-index:1000;min-width:176px;background:#fff;border:1px solid #dfe6f1;border-radius:12px;box-shadow:0 18px 40px rgba(15,23,42,.16);padding:6px;}
.ap-renew-more-menu a,.ap-renew-more-menu button{width:100%;height:36px;border:0!important;background:#fff!important;border-radius:8px!important;padding:0 10px!important;display:flex!important;align-items:center!important;gap:8px!important;text-decoration:none!important;color:#0b1730!important;font-size:13px!important;font-weight:600!important;text-align:left!important;}
.ap-renew-more-menu a:hover,.ap-renew-more-menu button:hover{background:#f5f7fb!important;}
.ap-renew-more-menu svg{width:15px!important;height:15px!important;color:#52617a!important;}
.ap-renew-footer{padding:12px 4px 0!important;font-size:13px!important;}
.ap-renew-footer button{width:36px!important;height:36px!important;border-radius:9px!important;}
.ap-renew-footer select{height:36px!important;min-height:36px!important;}
.ap-renew-about{padding:15px 18px!important;border-radius:14px!important;}
.ap-renew-about strong{font-size:14px!important;font-weight:650!important;}
.ap-renew-about p{font-size:13px!important;}
.ap-renew-about a{height:40px!important;font-size:13px!important;font-weight:650!important;}
@media(max-width:1380px){.ap-renew-stat-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}.ap-renew-filters{grid-template-columns:minmax(220px,1.4fr) repeat(5,minmax(118px,.75fr)) 96px 54px!important;}}
@media(max-width:1100px){.ap-renew-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ap-renew-filters{grid-template-columns:1fr 1fr!important}.ap-renew-table-card{overflow:auto!important}.ap-renew-table{min-width:1080px!important;}}

/* Phase 2ZW — Renewals table layout rebuild: replace patchy table alignment with a stable grid-like table. */
.vesta-ad-shell,.vesta-ad-shell *{
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
  box-sizing:border-box!important;
}
.ap-renew-head{
  justify-content:flex-start!important;
  min-height:74px!important;
  padding:18px 22px!important;
  margin-bottom:14px!important;
}
.ap-renew-head h1{font-size:22px!important;font-weight:650!important;line-height:1.1!important;letter-spacing:-.02em!important;}
.ap-renew-head p{font-size:14px!important;font-weight:450!important;line-height:1.35!important;}
.ap-renew-stat-grid{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:12px!important;
  margin-bottom:14px!important;
}
.ap-renew-stat{
  min-height:78px!important;
  padding:14px 16px!important;
  display:flex!important;
  align-items:center!important;
  gap:13px!important;
  border-radius:14px!important;
}
.ap-renew-stat .ap-renew-icon{width:38px!important;height:38px!important;border-radius:12px!important;}
.ap-renew-stat small{font-size:12px!important;font-weight:650!important;line-height:1.15!important;}
.ap-renew-stat strong{font-size:var(--vesta-fs-kpi)!important;font-weight:650!important;line-height:1.05!important;}
.ap-renew-stat em{font-size:12px!important;font-weight:450!important;line-height:1.2!important;}
.ap-renew-filter-panel{padding:14px 16px 0!important;margin-bottom:0!important;overflow:hidden!important;}
.ap-renew-filters{
  display:grid!important;
  grid-template-columns:minmax(260px,1.55fr) minmax(130px,.72fr) minmax(135px,.74fr) minmax(155px,.84fr) minmax(132px,.72fr) minmax(132px,.72fr) 92px 54px!important;
  gap:10px!important;
  align-items:end!important;
  margin-bottom:12px!important;
}
.ap-renew-filters label{font-size:12px!important;font-weight:650!important;gap:5px!important;color:#3c4a66!important;}
.ap-renew-filters input,.ap-renew-filters select,.ap-renew-search input{height:42px!important;min-height:42px!important;border-radius:10px!important;font-size:13px!important;font-weight:450!important;}
.ap-renew-filter-btn{height:42px!important;padding:0 12px!important;font-size:13px!important;font-weight:650!important;}
.ap-renew-reset{height:42px!important;font-size:13px!important;font-weight:650!important;}
.ap-renew-tabs{padding-top:12px!important;gap:22px!important;}
.ap-renew-tabs a{font-size:13px!important;font-weight:650!important;padding-bottom:12px!important;}
.ap-renew-table-card{
  padding:0 18px 14px!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  border-radius:0 0 14px 14px!important;
}
.ap-renew-table{
  width:100%!important;
  min-width:1240px!important;
  table-layout:fixed!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  font-size:13px!important;
}
.ap-renew-table col.renew-col-campaign{width:270px!important;}
.ap-renew-table col.renew-col-advertiser{width:190px!important;}
.ap-renew-table col.renew-col-package{width:160px!important;}
.ap-renew-table col.renew-col-end{width:104px!important;}
.ap-renew-table col.renew-col-days{width:94px!important;}
.ap-renew-table col.renew-col-status{width:104px!important;}
.ap-renew-table col.renew-col-invoice{width:170px!important;}
.ap-renew-table col.renew-col-actions{width:180px!important;}
.ap-renew-table th{
  height:44px!important;
  padding:0 12px!important;
  font-size:12px!important;
  font-weight:650!important;
  color:#3d4b67!important;
  background:#fbfcfe!important;
  border-bottom:1px solid #e5ebf4!important;
  white-space:nowrap!important;
}
.ap-renew-table td{
  height:70px!important;
  padding:11px 12px!important;
  vertical-align:middle!important;
  border-bottom:1px solid #edf1f6!important;
  overflow:visible!important;
}
.ap-renew-table td:nth-child(1),.ap-renew-table th:nth-child(1),
.ap-renew-table td:nth-child(2),.ap-renew-table th:nth-child(2),
.ap-renew-table td:nth-child(3),.ap-renew-table th:nth-child(3),
.ap-renew-table td:nth-child(7),.ap-renew-table th:nth-child(7),
.ap-renew-table td:nth-child(8),.ap-renew-table th:nth-child(8){width:auto!important;}
.ap-renew-table strong{
  font-size:13px!important;
  font-weight:650!important;
  line-height:1.22!important;
  color:#0b1730!important;
  word-break:normal!important;
}
.ap-renew-table small{
  font-size:12px!important;
  line-height:1.25!important;
  color:#53627f!important;
  word-break:normal!important;
}
.ap-renew-campaign{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;}
.ap-renew-campaign>div{min-width:0!important;}
.ap-renew-campaign strong,.ap-renew-table td:nth-child(2) strong,.ap-renew-table td:nth-child(3) strong,.ap-renew-table td:nth-child(7) strong{
  display:block!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.ap-renew-campaign strong{-webkit-line-clamp:2;display:-webkit-box!important;-webkit-box-orient:vertical;white-space:normal!important;}
.ap-renew-table td:nth-child(2) strong,
.ap-renew-table td:nth-child(2) small,
.ap-renew-table td:nth-child(7) strong,
.ap-renew-table td:nth-child(7) small{
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.ap-renew-table td:nth-child(4),.ap-renew-table td:nth-child(5),.ap-renew-table td:nth-child(6){white-space:nowrap!important;}
.ap-renew-row-icon{width:34px!important;height:34px!important;border-radius:11px!important;flex:0 0 34px!important;}
.ap-renew-row-icon svg{width:16px!important;height:16px!important;}
.ap-renew-days{height:23px!important;padding:0 8px!important;border-radius:7px!important;font-size:11px!important;font-weight:650!important;line-height:1!important;}
.ap-renew-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  white-space:nowrap!important;
  width:100%!important;
  min-width:0!important;
  overflow:visible!important;
}
.ap-renew-inline-action{display:inline-flex!important;margin:0!important;flex:0 0 auto!important;}
.ap-renew-generate{
  width:84px!important;
  height:34px!important;
  padding:0!important;
  border-radius:9px!important;
  font-size:13px!important;
  font-weight:650!important;
  justify-content:center!important;
}
.ap-renew-icon-btn{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  flex:0 0 34px!important;
  border-radius:9px!important;
  display:grid!important;
  place-items:center!important;
}
.ap-renew-icon-btn svg{width:15px!important;height:15px!important;}
.ap-renew-more{position:relative!important;display:inline-flex!important;flex:0 0 auto!important;}
.ap-renew-more-menu{right:0!important;top:38px!important;min-width:180px!important;z-index:9999!important;}
.ap-renew-footer{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:14px 0 0!important;
  margin-top:0!important;
  border-top:1px solid #edf1f6!important;
}
.ap-renew-footer>span{font-size:13px!important;color:#53627f!important;}
.ap-renew-footer>div{display:flex!important;align-items:center!important;gap:8px!important;}
.ap-renew-footer label{display:flex!important;align-items:center!important;gap:8px!important;font-size:13px!important;white-space:nowrap!important;}
.ap-renew-footer select{width:92px!important;height:36px!important;min-height:36px!important;font-size:13px!important;}
.ap-renew-footer button{width:36px!important;height:36px!important;border-radius:9px!important;font-size:13px!important;}
.ap-renew-about{margin-top:14px!important;padding:14px 18px!important;border-radius:14px!important;}
.ap-renew-about .ap-renew-icon{width:38px!important;height:38px!important;}
.ap-renew-about strong{font-size:14px!important;font-weight:650!important;}
.ap-renew-about p{font-size:13px!important;font-weight:450!important;}
.ap-renew-about a{height:38px!important;border-radius:10px!important;font-size:13px!important;font-weight:650!important;}
@media(max-width:1280px){
  .ap-renew-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  .ap-renew-filters{grid-template-columns:1fr 1fr 1fr!important;}
}
@media(max-width:900px){
  .ap-renew-stat-grid{grid-template-columns:1fr!important;}
  .ap-renew-filters{grid-template-columns:1fr!important;}
  .ap-renew-footer{align-items:flex-start!important;flex-direction:column!important;}
}

/* Phase 3A-3E Creatives module rebuild */
.ap-creatives-module,.ap-creatives-module *{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;box-sizing:border-box}.ap-creative-filterbar{align-items:center}.ap-filter-select{height:42px;border:1px solid #dfe7f2;border-radius:11px;background:#fff;color:#071329;padding:0 14px;font-size:13px;font-weight: var(--vesta-fw-title);outline:none}.ap-creative-panel{overflow:visible}.ap-creative-table{table-layout:auto;border-collapse:separate;border-spacing:0;width:100%}.ap-creative-table th{height:44px;padding:0 14px;font-size:11px;line-height:1;text-transform:none;letter-spacing:0;color:#5b667c;font-weight: var(--vesta-fw-title);background:#fbfcfe;white-space:nowrap}.ap-creative-table td{height:74px;padding:10px 14px;vertical-align:middle;font-size:13px;line-height:1.25;color:#111827;border-bottom:1px solid #edf1f7}.ap-creative-table td b{font-size:13px;font-weight: var(--vesta-fw-title);letter-spacing:-.01em}.ap-creative-table td small{font-size:11px;color:#667085;font-weight:650}.ap-creative-main-cell{min-width:245px}.ap-creative-open{border:0;background:transparent;padding:0;margin:0;display:flex;align-items:center;gap:12px;text-align:left;cursor:pointer;color:inherit}.ap-creative-open:hover b{color:#5b27ff}.ap-creative-thumb{width:56px;height:56px;flex:0 0 56px;border-radius:12px;background:#eef2f8 center/cover no-repeat;border:1px solid #dfe7f2;box-shadow:0 8px 22px rgba(15,23,42,.05)}.ap-creative-thumb.empty{display:grid;place-items:center;color:#64748b;font-size:12px;font-weight:var(--vesta-fw-title)}.ap-nowrap{white-space:nowrap}.ap-creative-analytics{white-space:nowrap}.ap-creative-analytics b{display:block}.ap-creative-analytics small{display:block;margin-top:4px}.ap-link-button{border:0;background:transparent;color:#5b27ff;padding:0;font-weight: var(--vesta-fw-title);cursor:pointer;white-space:nowrap}.ap-link-button:hover{text-decoration:underline}.ap-creative-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:86px}.ap-creative-more{position:relative}.ap-creative-more .ap-action-more-btn{width:34px!important;height:34px!important;border-radius:9px!important;border:1px solid #dbe4f0!important;background:#fff!important;color:#17223b!important;font-size:15px!important;font-weight:var(--vesta-fw-title)!important;line-height:1!important;padding:0!important}.ap-creative-more .ap-action-menu-popover{position:absolute;right:0;top:40px;width:190px;background:#fff;border:1px solid #dfe7f2;border-radius:13px;box-shadow:0 22px 50px rgba(15,23,42,.16);padding:8px;z-index:80}.ap-creative-more .ap-action-menu-popover button,.ap-creative-more .ap-action-menu-popover a{width:100%;min-height:36px;border:0;background:transparent;border-radius:9px;padding:0 10px;display:flex;align-items:center;text-decoration:none;color:#17223b;font-size:13px;font-weight: var(--vesta-fw-title);text-align:left;cursor:pointer}.ap-creative-more .ap-action-menu-popover button:hover,.ap-creative-more .ap-action-menu-popover a:hover{background:#f6f7fb}.ap-creative-more .ap-action-menu-popover .danger{color:#dc2626}.ap-creative-more .ap-action-menu-popover form{margin:0}.ap-creative-side-drawer[hidden]{display:none!important}.ap-creative-side-drawer{position:fixed;inset:0;z-index:9999;display:flex;justify-content:flex-end}.ap-creative-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.38);backdrop-filter:blur(3px)}.ap-creative-drawer-panel{position:relative;width:min(620px,96vw);height:100vh;background:#f8fafc;box-shadow:-28px 0 70px rgba(15,23,42,.22);overflow:auto;padding:22px}.ap-creative-drawer-panel header{position:sticky;top:0;z-index:2;background:#f8fafc;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:0 0 18px;border-bottom:1px solid #e5eaf2}.ap-creative-drawer-panel header small{font-size:11px;color:#64748b;font-weight:var(--vesta-fw-title)}.ap-creative-drawer-panel header h2{font-size:22px;line-height:1.08;margin:4px 0 0;color:#071329;font-weight:var(--vesta-fw-title);letter-spacing:-.03em}.ap-creative-drawer-panel header button{width:38px;height:38px;border-radius:11px;border:1px solid #dbe4f0;background:#fff;font-size:20px;color:#17223b;cursor:pointer}.ap-creative-preview-box{margin:18px 0;background:#fff;border:1px solid #dfe7f2;border-radius:18px;min-height:210px;display:grid;place-items:center;overflow:hidden;padding:14px}.ap-creative-preview-box img{max-width:100%;max-height:320px;object-fit:contain;border-radius:12px}.ap-missing-preview{color:#64748b;font-weight: var(--vesta-fw-title)}.ap-creative-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}.ap-creative-stat-grid div,.ap-creative-detail-grid div{background:#fff;border:1px solid #dfe7f2;border-radius:14px;padding:14px}.ap-creative-stat-grid span,.ap-creative-detail-grid span{display:block;font-size:11px;color:#64748b;font-weight:var(--vesta-fw-title);text-transform:none;margin-bottom:6px}.ap-creative-stat-grid b{font-size:20px;color:#071329;font-weight:var(--vesta-fw-title)}.ap-creative-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.ap-creative-detail-grid b{font-size:13px;color:#071329;font-weight:var(--vesta-fw-title);word-break:break-word}.ap-creative-drawer-section{background:#fff;border:1px solid #dfe7f2;border-radius:16px;padding:16px;margin-bottom:14px}.ap-creative-drawer-section h3{margin:0 0 12px;font-size:14px;color:#071329;font-weight:var(--vesta-fw-title)}.ap-health-card{border-radius:13px;padding:13px}.ap-health-card.ok{background:#f0fdf4;border:1px solid #bbf7d0}.ap-health-card.warn{background:#fff7ed;border:1px solid #fed7aa}.ap-health-card b{font-size:13px;color:#071329}.ap-health-card p{margin:7px 0 0;color:#53627f;font-size:13px}.ap-health-card ul{margin:8px 0 0;padding-left:18px;color:#7c2d12;font-size:13px;font-weight:700}.ap-compat-list,.ap-usage-list,.ap-version-list{display:grid;gap:9px}.ap-compat-list div,.ap-usage-list div,.ap-version-list div{min-height:42px;border:1px solid #edf1f7;border-radius:12px;padding:10px 12px;background:#fbfcfe;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center}.ap-usage-list div,.ap-version-list div{grid-template-columns:1fr}.ap-compat-list span{width:23px;height:23px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:var(--vesta-fw-title)}.ap-compat-list span.yes{background:#dcfce7;color:#15803d}.ap-compat-list span.no{background:#fee2e2;color:#b91c1c}.ap-compat-list b,.ap-usage-list b,.ap-version-list b{font-size:13px;color:#071329;font-weight:var(--vesta-fw-title)}.ap-compat-list small,.ap-usage-list small,.ap-version-list small{font-size:11px;color:#64748b;font-weight:700}.ap-replace-form{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.ap-replace-form input{height:42px;border:1px solid #dfe7f2;border-radius:11px;background:#fff;padding:8px;font-size:13px}.ap-replace-form button{height:42px;border:0;border-radius:11px;background:#5b27ff;color:#fff;padding:0 15px;font-size:13px;font-weight:var(--vesta-fw-title);cursor:pointer}@media(max-width:900px){.ap-creative-table{min-width:980px}.ap-creative-panel{overflow:auto}.ap-creative-drawer-panel{width:100vw;padding:18px}.ap-creative-stat-grid,.ap-creative-detail-grid{grid-template-columns:1fr}.ap-replace-form{grid-template-columns:1fr}.ap-replace-form button{width:100%}}

/* Phase 3F: Slots inventory UI rebuild */
.ap-slots-modern,.ap-slots-modern *{font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;box-sizing:border-box}
.ap-slots-modern{color:#071229}.ap-slots-topline{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 22px}.ap-slots-topline h1{font-size:var(--vesta-fs-page-title);line-height:1.1;margin:0 0 8px;letter-spacing:-.045em;font-weight:var(--vesta-fw-title)}.ap-slots-topline p{margin:0;color:#53627f;font-weight:650}.ap-slots-top-actions{display:flex;gap:10px}.ap-slot-add-btn,.ap-slot-filter-btn{height:46px;border:1px solid #dfe6f2;border-radius:12px;background:#fff;color:#071229;font-weight:var(--vesta-fw-title);padding:0 18px;box-shadow:0 10px 22px rgba(15,23,42,.025)}.ap-slot-add-btn{background:#fff;color:#071229}.ap-slot-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.ap-slot-kpis article{background:#fff;border:1px solid #e3e9f3;border-radius:18px;min-height:122px;padding:20px;display:grid;grid-template-columns:54px 1fr;gap:14px;align-items:center;box-shadow:0 16px 38px rgba(15,23,42,.035)}.ap-slot-kpis span{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-size:20px;font-weight:var(--vesta-fw-title)}.ap-slot-kpis span.purple{background:#f0e7ff;color:#6d28ff}.ap-slot-kpis span.green{background:#dcfce7;color:#059669}.ap-slot-kpis span.orange{background:#fff2d8;color:#f59e0b}.ap-slot-kpis span.blue{background:#e2f0ff;color:#1283ff}.ap-slot-kpis strong{display:block;font-size:var(--vesta-fs-kpi);letter-spacing:-.04em;line-height:1.05;color:#071229}.ap-slot-kpis small{display:block;color:#33415f;font-weight:var(--vesta-fw-title);margin:5px 0}.ap-slot-kpis em{font-style:normal;color:#53627f;font-size:12px;font-weight:var(--vesta-fw-title)}.ap-slot-workspace{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:24px;align-items:start}.ap-slot-table-card,.ap-slot-detail-drawer{background:#fff;border:1px solid #e3e9f3;border-radius:22px;box-shadow:0 18px 44px rgba(15,23,42,.04)}.ap-slot-table-card{padding:16px}.ap-slot-searchbar{width:min(420px,100%);height:46px;border:1px solid #dfe6f2;border-radius:12px;background:#fff;display:flex;align-items:center;gap:10px;padding:0 14px;margin:0 0 14px}.ap-slot-searchbar span{color:#53627f}.ap-slot-searchbar input{border:0!important;min-height:0!important;padding:0!important;flex:1}.ap-slot-table-wrap{overflow-x:auto;border:1px solid #e7ecf5;border-radius:16px}.ap-slot-table{width:100%;min-width:980px;border-collapse:separate;border-spacing:0}.ap-slot-table th{background:#fbfcff;color:#33415f;text-align:left;font-size:12px;font-weight:var(--vesta-fw-title);padding:15px;border-bottom:1px solid #e7ecf5}.ap-slot-table td{padding:15px;border-bottom:1px solid #e7ecf5;vertical-align:middle;color:#071229}.ap-slot-table tbody tr:last-child td{border-bottom:0}.ap-slot-table tbody tr:hover,.ap-slot-table tbody tr.is-selected{background:#fbfdff}.ap-slot-table b{display:block;font-weight:var(--vesta-fw-title);color:#071229;line-height:1.2}.ap-slot-table small{display:block;color:#53627f;font-weight:650;margin-top:5px}.ap-slot-cell{display:flex;align-items:center;gap:12px;background:transparent!important;border:0!important;padding:0!important;text-align:left;color:inherit;cursor:pointer}.ap-slot-thumb{width:50px;height:50px;border:1px solid #e1e8f2;border-radius:10px;background:#f8fafc;display:grid;grid-template-rows:10px 1fr 8px;gap:4px;padding:5px;box-shadow:inset 0 0 0 2px #fff}.ap-slot-thumb i{border-radius:3px;background:#e7edf6}.ap-slot-thumb.purple i:first-child{background:#8758ff}.ap-slot-thumb.green i:first-child{background:#17b26a}.ap-slot-thumb.orange i:first-child{background:#f59e0b}.ap-slot-thumb.blue i:first-child{background:#2f80ed}.ap-size-pill{display:inline-flex;align-items:center;height:30px;border:1px solid #dfe6f2;border-radius:8px;padding:0 10px;background:#fbfdff;font-size:12px;font-weight:var(--vesta-fw-title);white-space:nowrap}.ap-occupancy{min-width:120px}.ap-occupancy span{display:block;width:96px;height:7px;border-radius:999px;background:#e7ecf5;margin:8px 0 3px;overflow:hidden}.ap-occupancy i{display:block;height:100%;border-radius:999px;background:#6d28ff}.ap-occupancy i.green{background:#17b26a}.ap-occupancy i.orange{background:#f59e0b}.ap-occupancy i.blue{background:#2f80ed}.ap-occupancy small{font-size:11px}.ap-status-dot{display:inline-flex;align-items:center;gap:7px;border-radius:8px;padding:7px 10px;font-size:11px;font-weight:var(--vesta-fw-title)}.ap-status-dot:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.ap-status-dot.green{background:#dcfce7;color:#078449}.ap-status-dot.red{background:#fee2e2;color:#b91c1c}.ap-slot-actions{position:relative}.ap-slot-detail-drawer{position:sticky;top:18px;padding:18px;min-height:640px}.ap-slot-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}.ap-slot-detail-head h2{font-size:20px;letter-spacing:-.035em;margin:0 0 5px;color:#071229}.ap-slot-detail-head small{color:#53627f;font-weight: var(--vesta-fw-title)}.ap-slot-tabs{display:flex;gap:18px;border-bottom:1px solid #e7ecf5;margin:0 -2px 16px;overflow:auto}.ap-slot-tabs button{border:0;background:transparent;color:#33415f;font-weight:var(--vesta-fw-title);padding:0 0 13px;white-space:nowrap}.ap-slot-tabs button.active{color:#5b27ff;border-bottom:3px solid #5b27ff}.ap-slot-detail-drawer h3{font-size:13px;margin:0 0 10px;color:#17213a;font-weight:var(--vesta-fw-title)}.ap-slot-preview{height:164px;border:1px solid #e7ecf5;border-radius:16px;background:linear-gradient(90deg,#f9fbff,#fff);padding:14px;margin-bottom:16px;position:relative;overflow:hidden}.ap-slot-preview span{position:absolute;top:14px;left:50%;transform:translateX(-50%);height:26px;min-width:180px;border-radius:4px;background:linear-gradient(135deg,#8b5cf6,#6d28ff);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:var(--vesta-fw-title)}.ap-slot-preview div:nth-child(2){position:absolute;left:28px;top:58px;width:52%;height:70px;border-radius:8px;background:#eef2f7}.ap-slot-preview div:nth-child(3){position:absolute;right:24px;top:58px;width:28%;height:82px;border-radius:8px;background:repeating-linear-gradient(0deg,#eef2f7,#eef2f7 9px,#fff 10px,#fff 18px)}.ap-slot-detail-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:12px;margin-bottom:14px}.ap-slot-detail-grid.lower{grid-template-columns:1fr 1fr}.ap-slot-detail-grid section,.ap-slot-metric-grid article{border:1px solid #e7ecf5;border-radius:14px;background:#fff;padding:13px}.ap-slot-detail-grid dl{display:grid;grid-template-columns:.75fr 1.25fr;gap:8px 10px;margin:0}.ap-slot-detail-grid dt{color:#53627f;font-size:11px;font-weight:var(--vesta-fw-title)}.ap-slot-detail-grid dd{margin:0;color:#071229;font-size:11px;font-weight: var(--vesta-fw-title)}.ap-slot-detail-grid ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}.ap-slot-detail-grid li{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;font-weight: var(--vesta-fw-title);color:#17213a}.ap-slot-detail-grid li b.ok,.ap-slot-detail-grid li b.bad,.ap-slot-detail-grid li b.muted{width:auto;border-radius:999px;padding:3px 7px;font-size:10px}.ap-slot-detail-grid li b.ok{background:#dcfce7;color:#078449}.ap-slot-detail-grid li b.bad{background:#fee2e2;color:#b91c1c}.ap-slot-detail-grid li b.muted{background:#f1f5f9;color:#64748b}.ap-slot-metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}.ap-slot-metric-grid small{display:block;color:#53627f;font-weight:var(--vesta-fw-title);font-size:11px}.ap-slot-metric-grid strong{display:block;font-size:22px;letter-spacing:-.035em;margin:9px 0 3px}.ap-slot-metric-grid em{font-style:normal;color:#53627f;font-size:11px;font-weight: var(--vesta-fw-title)}.ap-slot-metric-grid em b{color:#5b27ff}.ap-slot-drawer-actions{border:1px solid #e7ecf5;border-radius:14px;padding:12px;display:flex;gap:10px;align-items:center}.ap-slot-drawer-actions button,.ap-slot-drawer-actions a{height:38px;border:1px solid #dfe6f2;border-radius:10px;background:#fff;padding:0 12px;text-decoration:none;color:#071229;font-weight:var(--vesta-fw-title);display:inline-flex;align-items:center}.ap-slot-drawer-actions a{color:#5b27ff}.ap-slot-drawer-actions form{margin-left:auto}.ap-slot-drawer-actions form button{color:#dc2626}.ap-slot-modal{position:fixed;inset:0;background:rgba(15,23,42,.34);z-index:9999;display:grid;place-items:center;padding:24px}.ap-slot-modal[hidden]{display:none!important}.ap-slot-modal-card{position:relative;width:min(820px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:24px;border:1px solid #e3e9f3;box-shadow:0 28px 90px rgba(15,23,42,.25);padding:28px}.ap-slot-modal-card h2{margin:0 0 6px;font-size:var(--vesta-fs-section-title);letter-spacing:-.04em}.ap-slot-modal-card p{margin:0 0 20px;color:#53627f}.ap-slot-modal-close{position:absolute;top:18px;right:18px;width:38px;height:38px;border:1px solid #dfe6f2;border-radius:12px;background:#fff;font-size:22px}.ap-slot-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ap-slot-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px}.ap-slot-form-actions button{height:44px;border:1px solid #dfe6f2;border-radius:11px;background:#fff;padding:0 18px;font-weight:var(--vesta-fw-title)}
@media(max-width:1360px){.ap-slot-workspace{grid-template-columns:1fr}.ap-slot-detail-drawer{position:relative;top:auto}.ap-slot-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.ap-slots-topline{display:grid}.ap-slot-kpis,.ap-slot-detail-grid,.ap-slot-detail-grid.lower,.ap-slot-metric-grid,.ap-slot-form{grid-template-columns:1fr}.ap-slot-drawer-actions{flex-wrap:wrap}.ap-slot-drawer-actions form{margin-left:0}.ap-slot-table-card{padding:12px}.ap-slot-modal{padding:12px}.ap-slot-modal-card{padding:20px}}
/* Phase 3G: Slots engine wiring polish */
.ap-slot-searchbar select{height:34px;border:1px solid #dfe6f2;border-radius:10px;background:#fff;color:#071229;font-size:12px;font-weight:var(--vesta-fw-title);padding:0 10px;outline:none;min-width:116px}.ap-slot-searchbar:focus-within{border-color:#b9a7ff;box-shadow:0 0 0 3px rgba(91,39,255,.08)}.ap-slot-detail-grid dd{word-break:break-word}.ap-action-menu-popover a{cursor:pointer}.ap-slot-table td:last-child{position:relative}

/* Phase 3H Slot UI spacing repair: detail panel becomes true drawer */
.ap-slots-modern .ap-slot-workspace{
  display:block !important;
}
.ap-slots-modern .ap-slot-table-card{
  width:100%;
  padding:18px !important;
}
.ap-slots-modern .ap-slot-searchbar{
  width:100% !important;
  max-width:none;
  display:grid !important;
  grid-template-columns:auto minmax(220px, 1fr) 180px;
}
.ap-slots-modern .ap-slot-table{
  min-width:1060px;
}
.ap-slots-modern .ap-slot-table th,
.ap-slots-modern .ap-slot-table td{
  padding:17px 18px !important;
}
.ap-slots-modern .ap-slot-table th:first-child,
.ap-slots-modern .ap-slot-table td:first-child{
  min-width:270px;
}
.ap-slots-modern .ap-slot-table th:nth-child(2),
.ap-slots-modern .ap-slot-table td:nth-child(2){
  min-width:170px;
}
.ap-slots-modern .ap-slot-table th:nth-child(4),
.ap-slots-modern .ap-slot-table td:nth-child(4){
  min-width:150px;
}
.ap-slot-drawer-backdrop{
  position:fixed;
  inset:0;
  z-index:9997;
  background:rgba(15,23,42,.22);
  backdrop-filter:blur(3px);
}
.ap-slot-drawer-backdrop[hidden],
.ap-slot-detail-drawer[hidden]{
  display:none !important;
}
.ap-slot-detail-drawer{
  position:fixed !important;
  top:18px !important;
  right:18px !important;
  bottom:18px !important;
  z-index:9998;
  width:min(520px, calc(100vw - 36px));
  min-height:0 !important;
  max-height:none;
  overflow:auto;
  padding:20px !important;
  border-radius:24px !important;
  box-shadow:0 28px 90px rgba(15,23,42,.22) !important;
  animation:apSlotDrawerIn .18s ease-out both;
}
@keyframes apSlotDrawerIn{
  from{opacity:0;transform:translateX(22px)}
  to{opacity:1;transform:translateX(0)}
}
.ap-slot-head-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}
.ap-slot-drawer-close{
  width:36px;
  height:36px;
  border:1px solid #dfe6f2;
  border-radius:12px;
  background:#fff;
  color:#071229;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.ap-slot-detail-drawer .ap-slot-preview{
  height:150px;
}
.ap-slot-detail-drawer .ap-slot-metric-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.ap-slot-detail-drawer .ap-slot-detail-grid.lower{
  grid-template-columns:1fr 1fr;
}
.ap-slot-drawer-open{
  overflow:hidden;
}
@media(max-width:900px){
  .ap-slots-modern .ap-slot-searchbar{grid-template-columns:auto 1fr; height:auto; padding:10px;}
  .ap-slots-modern .ap-slot-searchbar select{grid-column:1/-1;width:100%;}
  .ap-slot-detail-drawer{top:10px!important;right:10px!important;bottom:10px!important;width:calc(100vw - 20px);padding:16px!important;}
  .ap-slot-detail-drawer .ap-slot-detail-grid,
  .ap-slot-detail-drawer .ap-slot-detail-grid.lower,
  .ap-slot-detail-drawer .ap-slot-metric-grid{grid-template-columns:1fr;}
}

/* Phase 3H-A: Slots UI polish requested after drawer conversion */
.ap-slots-modern .ap-slots-topline{
  align-items:center !important;
  margin-bottom:22px !important;
}
.ap-slots-modern .ap-slots-top-actions{
  align-items:center;
}
.ap-slots-modern .ap-slot-filter-btn{
  display:none !important;
}
.ap-slots-modern .ap-slot-add-btn{
  min-width:128px;
  height:46px !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:14px !important;
  border:1px solid #dfe6f2 !important;
  background:#fff !important;
  color:#071229 !important;
  font-size:14px !important;
  line-height:1 !important;
  font-weight:var(--vesta-fw-title) !important;
  white-space:nowrap;
  box-shadow:none !important;
}
.ap-slots-modern .ap-slot-add-btn:hover{
  border-color:#cbbdff !important;
  box-shadow:0 10px 24px rgba(91,39,255,.08) !important;
}
.ap-slots-modern .ap-slot-modal-card{
  width:min(860px, calc(100vw - 32px)) !important;
  padding:30px 34px 28px !important;
}
.ap-slots-modern .ap-slot-modal-close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: var(--vesta-fw-title);
  color:#071229 !important;
  line-height:1 !important;
}
.ap-slots-modern .ap-slot-form label{
  color:#071229;
  font-weight:var(--vesta-fw-title);
  font-size:13px;
}
.ap-slots-modern .ap-slot-form input,
.ap-slots-modern .ap-slot-form select{
  margin-top:9px;
  width:100%;
  height:50px !important;
  border:1px solid #dfe6f2 !important;
  border-radius:13px !important;
  background:#fff !important;
  padding:0 14px !important;
  color:#071229 !important;
  font-size:14px !important;
  box-shadow:none !important;
}
.ap-slots-modern .ap-slot-form label.check{
  min-height:50px;
  display:flex !important;
  align-items:center;
  gap:12px;
  align-self:end;
  padding-top:22px;
}
.ap-slots-modern .ap-slot-form label.check input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  width:22px !important;
  height:22px !important;
  min-width:22px !important;
  margin:0 !important;
  border-radius:7px !important;
  border:2px solid #cbd5e1 !important;
  background:#fff !important;
  padding:0 !important;
  display:inline-grid;
  place-content:center;
  cursor:pointer;
}
.ap-slots-modern .ap-slot-form label.check input[type="checkbox"]:checked{
  background:#5b27ff !important;
  border-color:#5b27ff !important;
}
.ap-slots-modern .ap-slot-form label.check input[type="checkbox"]:checked:after{
  content:'';
  color:#fff;
  font-size:15px;
  font-weight:var(--vesta-fw-title);
  line-height:1;
}
.ap-slots-modern .ap-slot-form-actions{
  margin-top:4px;
  align-items:center;
  justify-content:space-between !important;
}
.ap-slots-modern .ap-slot-form-actions button{
  min-width:112px;
  height:48px !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:13px !important;
  font-size:14px !important;
  font-weight:var(--vesta-fw-title) !important;
  line-height:1 !important;
}
.ap-slots-modern .ap-slot-form-actions .ap-primary{
  background:#5b27ff !important;
  border-color:#5b27ff !important;
  color:#fff !important;
  box-shadow:0 16px 34px rgba(91,39,255,.20) !important;
}
.ap-slots-modern .ap-slot-form-actions .ap-primary:hover{
  background:#4c1dff !important;
  border-color:#4c1dff !important;
}
.ap-slots-modern .ap-slot-pagination-clean,
.ap-slots-modern .ap-action-pagination-modern{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:18px !important;
  padding:22px 0 0 !important;
  margin:0 !important;
  color:#53627f;
}
.ap-slots-modern .ap-slot-pagination-clean > span,
.ap-slots-modern .ap-action-pagination-modern > span{
  flex:0 0 auto;
  white-space:nowrap !important;
  font-size:14px !important;
  font-weight: var(--vesta-fw-title) !important;
  line-height:1.2 !important;
}
.ap-slots-modern .ap-slot-pagination-clean nav,
.ap-slots-modern .ap-action-pagination-modern nav{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-left:auto;
}
.ap-slots-modern .ap-slot-pagination-clean nav a,
.ap-slots-modern .ap-slot-pagination-clean nav b,
.ap-slots-modern .ap-action-pagination-modern nav a,
.ap-slots-modern .ap-action-pagination-modern nav b{
  width:40px !important;
  height:40px !important;
  border:1px solid #dfe6f2 !important;
  border-radius:12px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-decoration:none !important;
  background:#fff !important;
  color:#071229 !important;
  font-weight:var(--vesta-fw-title) !important;
}
.ap-slots-modern .ap-slot-pagination-clean nav .active,
.ap-slots-modern .ap-action-pagination-modern nav .active{
  border-color:#6d28ff !important;
  color:#6d28ff !important;
}
.ap-slots-modern .ap-slot-pagination-clean select,
.ap-slots-modern .ap-action-pagination-modern select{
  flex:0 0 160px;
  width:160px !important;
  height:42px !important;
  border:1px solid #dfe6f2 !important;
  border-radius:13px !important;
  background:#fff !important;
  color:#071229 !important;
  font-size:14px !important;
  font-weight: var(--vesta-fw-title) !important;
  padding:0 14px !important;
}
@media(max-width:720px){
  .ap-slots-modern .ap-action-pagination-modern{flex-wrap:wrap;}
  .ap-slots-modern .ap-action-pagination-modern nav{order:3;margin-left:0;}
  .ap-slots-modern .ap-action-pagination-modern select{flex:1 1 100%;width:100% !important;}
}

/* Phase 3H-B: make the slot drawer tabs real and readable */
.ap-slot-detail-drawer [data-ap-slot-panel][hidden]{display:none!important}
.ap-slot-deep-list{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:10px}
.ap-slot-deep-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e7ecf5;background:#fff;border-radius:14px;padding:12px;color:#071229}
.ap-slot-deep-list li div{min-width:0}
.ap-slot-deep-list li div b{display:block;font-size:13px;font-weight:var(--vesta-fw-title);color:#071229;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ap-slot-deep-list li div small{display:block;margin-top:4px;color:#53627f;font-weight: var(--vesta-fw-title);font-size:11px}
.ap-slot-deep-list li>b,.ap-slot-detail-grid li b.warn{width:auto;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:var(--vesta-fw-title);text-transform:capitalize;white-space:nowrap}
.ap-slot-deep-list li>b.ok,.ap-slot-detail-grid li b.ok{background:#dcfce7;color:#078449}
.ap-slot-deep-list li>b.warn,.ap-slot-detail-grid li b.warn{background:#fff2d8;color:#b45309}
.ap-slot-deep-list li>b.bad,.ap-slot-detail-grid li b.bad{background:#fee2e2;color:#b91c1c}
.ap-slot-deep-list li>b.muted,.ap-slot-detail-grid li b.muted{background:#f1f5f9;color:#64748b}
.ap-slot-drawer-actions{flex-wrap:wrap}
.ap-slot-drawer-actions form{margin-left:0}

/* Phase 3I - Placements true-drawer UI rebuild */
.ap-link-primary{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.ap-stats-row.five{grid-template-columns:repeat(5,1fr)}.ap-placement-stats .ap-stat{min-height:104px}.ap-placement-stat strong{grid-row:1/2}.ap-placement-stat em{grid-column:2;color:#53627f;font-style:normal;font-size:12px;font-weight:700}.ap-placement-toolbar{padding:16px;margin-bottom:18px}.ap-placement-toolbar form{display:grid;grid-template-columns:180px 180px minmax(260px,1fr) 88px;gap:14px;align-items:center}.ap-placement-toolbar select,.ap-placement-toolbar input{width:100%}.ap-placement-table-panel{padding:18px 18px 0;overflow:hidden}.ap-placement-table th{font-size:12px;color:#44536f}.ap-placement-table td{height:78px}.ap-placement-table td>b,.ap-placement-table td a{font-weight: var(--vesta-fw-title);color:#0b1730;text-decoration:none}.ap-placement-table small{display:block;margin-top:5px;color:#53627f;font-weight:600}.ap-placement-id a{display:inline-block}.ap-creative-chip{display:grid;grid-template-columns:74px 1fr;gap:10px;align-items:center;min-width:170px}.ap-creative-chip img,.ap-creative-chip>span{width:74px;height:42px;border-radius:8px;object-fit:cover;background:linear-gradient(135deg,#6d28ff,#ff9b54);display:grid;place-items:center;color:#fff;font-weight: var(--vesta-fw-title)}.ap-creative-chip.empty>span{background:#edf1f7;color:#53627f}.ap-creative-chip b{display:block;max-width:116px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ap-placement-pagination{padding:18px 0}.ap-placement-pagination a{border:1px solid #dfe5ef;background:#fff;border-radius:9px;width:40px;height:40px;display:grid;place-items:center;text-decoration:none;color:#09142c;font-weight: var(--vesta-fw-title)}.ap-drawer-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.12);z-index:60}.ap-drawer-backdrop a{display:block;width:100%;height:100%}.ap-true-drawer{position:fixed;right:0;top:0;height:100vh;width:min(560px,calc(100vw - 18px));background:#fff;border-left:1px solid #e2e8f0;box-shadow:-24px 0 60px rgba(15,23,42,.16);z-index:61;padding:24px;overflow:auto}.ap-placement-drawer header{display:grid;grid-template-columns:1fr auto auto;gap:14px;align-items:start;margin-bottom:18px}.ap-placement-drawer header h2{font-size:var(--vesta-fs-section-title);line-height:1.1;margin:0 0 8px;letter-spacing:-.03em}.ap-placement-drawer header p{margin:0;color:#53627f;font-weight:700}.ap-drawer-x{width:44px;height:44px;border:1px solid #dfe5ef;border-radius:12px;display:grid;place-items:center;text-decoration:none;color:#0b1730;font-size:var(--vesta-fs-section-title);line-height:1}.ap-drawer-tabs{display:flex;gap:26px;border-bottom:1px solid #e7ebf3;margin-bottom:18px;overflow:auto}.ap-drawer-tabs b,.ap-drawer-tabs span{padding:0 0 14px;font-weight: var(--vesta-fw-title);color:#2e3a55;white-space:nowrap}.ap-drawer-tabs b{color:#5b27ff;border-bottom:3px solid #5b27ff}.ap-drawer-card{border:1px solid #e7ebf3;border-radius:14px;padding:18px;margin-bottom:14px;background:#fff}.ap-drawer-card h3{font-size:15px;margin:0 0 14px}.ap-placement-overview-grid dl,.ap-drawer-dl{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}.ap-placement-overview-grid dt,.ap-drawer-dl dt{color:#53627f;font-size:12px;font-weight: var(--vesta-fw-title)}.ap-placement-overview-grid dd,.ap-drawer-dl dd{margin:0;color:#0b1730;font-weight: var(--vesta-fw-title)}.ap-placement-preview{min-height:160px;border:1px solid #e7ebf3;border-radius:14px;background:#f8fafc;display:grid;place-items:center;overflow:hidden}.ap-placement-preview img{max-width:100%;max-height:190px;object-fit:contain}.ap-placement-preview div{color:#53627f;font-weight: var(--vesta-fw-title)}.ap-metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0}.ap-metric-grid div{padding:4px 14px;border-right:1px solid #e7ebf3}.ap-metric-grid div:last-child{border-right:0}.ap-metric-grid small{display:block;color:#53627f;font-weight: var(--vesta-fw-title);margin-bottom:8px}.ap-metric-grid b{font-size:20px}.ap-health-list p{display:flex;justify-content:space-between;align-items:center;margin:10px 0;font-weight: var(--vesta-fw-title)}.ap-health-list b{width:28px;height:28px;border-radius:50%;display:grid;place-items:center}.ap-health-list b.ok{background:#dff7e9;color:#079455}.ap-health-list b.bad{background:#ffe1e6;color:#e11d48}.ap-drawer-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ap-drawer-action-grid a,.ap-drawer-action-grid button,.ap-drawer-actions a{border:1px solid #dfe5ef;background:#fff;border-radius:10px;padding:12px 14px;color:#09142c;font-weight: var(--vesta-fw-title);text-decoration:none;text-align:center;width:100%}.ap-drawer-action-grid form{margin:0}.ap-drawer-action-grid .danger{color:#e11d48}.ap-placement-create-form{padding-top:8px}.ap-placement-create-form .ap-drawer-actions a{width:auto}.ap-placement-create-form .ap-primary{box-shadow:none}.ap-error-strip{border-radius:9px;background:#fff1f2;border:1px solid #fecdd3;color:#be123c;padding:13px 16px;margin:0 0 16px}
@media(max-width:1100px){.ap-stats-row.five{grid-template-columns:repeat(2,1fr)}.ap-placement-toolbar form{grid-template-columns:1fr}.ap-placement-table-panel{overflow:auto}.ap-placement-table{min-width:1100px}.ap-true-drawer{width:100vw}.ap-metric-grid{grid-template-columns:repeat(2,1fr)}}

/* Phase 3I-A: Placements repair - practical controls, creative images, reliable drawer layer */
.ap-placement-table-repaired th:nth-child(6),
.ap-placement-table-repaired td:nth-child(6){min-width:132px}
.ap-placement-table-repaired th:nth-child(8),
.ap-placement-table-repaired td:nth-child(8){width:120px;text-align:left}
.ap-placement-table-repaired th:nth-child(9),
.ap-placement-table-repaired td:nth-child(9){width:190px}
.ap-creative-thumb-link{width:92px;height:48px;border:1px solid #e2e8f0;border-radius:10px;background:#f1f5f9;display:flex;align-items:center;justify-content:center;overflow:hidden;text-decoration:none;color:#64748b;font-size:11px;font-weight:var(--vesta-fw-title);text-align:center}
.ap-creative-thumb-link img{width:100%;height:100%;object-fit:cover;display:block}
.ap-inline-placement-form{margin:0}.ap-placement-control,.ap-drawer-action-grid.repaired button.pause,.ap-drawer-action-grid.repaired button.go{height:38px;border-radius:11px!important;border:1px solid #dfe6f2!important;background:#fff!important;color:#071229!important;font-weight:var(--vesta-fw-title)!important;padding:0 14px!important;white-space:nowrap}.ap-placement-control.go,.ap-drawer-action-grid.repaired button.go{background:#dcfce7!important;border-color:#bbf7d0!important;color:#078449!important}.ap-placement-control.pause,.ap-drawer-action-grid.repaired button.pause{background:#fff7ed!important;border-color:#fed7aa!important;color:#b45309!important}.ap-placement-actions-mini{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ap-placement-actions-mini a,.ap-placement-actions-mini button{height:34px;border:1px solid #dfe6f2;background:#fff;border-radius:10px;padding:0 10px;color:#071229;text-decoration:none;font-size:12px;font-weight:var(--vesta-fw-title);display:inline-flex;align-items:center;justify-content:center}.ap-placement-actions-mini form{margin:0}.ap-placement-actions-mini button{color:#e11d48;cursor:pointer}.ap-placement-backdrop{z-index:2147483000!important;background:rgba(15,23,42,.18)!important}.ap-placement-drawer-repaired{z-index:2147483001!important;top:16px!important;right:16px!important;bottom:16px!important;height:auto!important;width:min(560px,calc(100vw - 32px))!important;border:1px solid #e2e8f0!important;border-radius:22px!important;box-shadow:-28px 20px 80px rgba(15,23,42,.24)!important;padding:24px!important}.ap-placement-drawer-repaired header{position:sticky;top:-24px;background:#fff;z-index:2;padding:0 0 14px;margin-bottom:14px;border-bottom:1px solid #eef2f7}.ap-placement-preview.repaired{min-height:118px;max-height:220px}.ap-placement-preview.repaired img{width:100%;max-height:200px;object-fit:contain;background:#f8fafc}.ap-drawer-action-grid.repaired{grid-template-columns:1fr 1fr}.ap-drawer-action-grid.repaired a,.ap-drawer-action-grid.repaired button{min-height:46px;display:flex;align-items:center;justify-content:center}.ap-drawer-action-grid.repaired .danger{background:#fff!important;color:#e11d48!important;border-color:#fecdd3!important}.ap-placement-drawer-repaired .ap-drawer-dl dd{word-break:break-word}.ap-placement-drawer-repaired .ap-drawer-card{margin-bottom:16px}.ap-placement-drawer-repaired .ap-drawer-actions{position:static!important}.ap-placement-drawer-repaired .ap-form-stack input,.ap-placement-drawer-repaired .ap-form-stack select{width:100%}
@media(max-width:900px){.ap-placement-drawer-repaired{top:8px!important;right:8px!important;bottom:8px!important;width:calc(100vw - 16px)!important}.ap-placement-table-repaired{min-width:980px}.ap-drawer-action-grid.repaired{grid-template-columns:1fr}.ap-placement-toolbar form{grid-template-columns:1fr!important}}

/* Phase 5I: Advertiser Analytics exact SaaS UI rebuild */
.vesta-advertiser-analytics .vesta-page-header,
.vesta-advertiser-analytics .ap-page-head{display:none!important;}
.adv-analytics-page{
  display:grid;
  gap:20px;
  padding:8px 0 22px;
  color:#09142f;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.adv-analytics-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin:0 0 2px;
}
.adv-analytics-head h1{
  margin:0 0 7px;
  font-size:24px;
  line-height:1.08;
  letter-spacing:-.035em;
  color:#071229;
  font-weight:800;
}
.adv-analytics-head p{
  margin:0;
  color:#53627f;
  font-size:14px;
  line-height:1.45;
  font-weight:520;
}
.adv-analytics-controls{display:flex;align-items:flex-start;gap:20px;flex-wrap:wrap;}
.adv-segment{position:relative;display:flex;align-items:center;gap:4px;background:#fff;border:1px solid #dfe6f2;border-radius:12px;padding:4px;box-shadow:0 10px 22px rgba(15,23,42,.035);}
.adv-segment>span{font-size:11px;font-weight:750;color:#53627f;margin:0 8px 0 6px;white-space:nowrap;}
.adv-segment--range{padding-left:8px;}
.adv-segment button,.adv-custom-range button{height:36px;min-width:62px;border:0;border-radius:9px;background:transparent;color:#0f1a33;font-weight:750;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;}
.adv-segment button.is-active{background:linear-gradient(135deg,#7c3cff,#5521df);color:#fff;box-shadow:0 10px 22px rgba(109,40,255,.24);}
.adv-custom-range{position:relative;margin:0;}
.adv-custom-range button{border-left:1px solid #e5ebf5;border-radius:9px;padding:0 12px;min-width:auto;}
.adv-custom-range svg{width:16px;height:16px;}
.adv-custom-range__popover{position:absolute;right:0;top:44px;width:260px;background:#fff;border:1px solid #dfe6f2;border-radius:16px;box-shadow:0 24px 60px rgba(15,23,42,.18);padding:14px;z-index:90;display:grid;gap:10px;}
.adv-custom-range__popover[hidden]{display:none!important;}
.adv-custom-range__popover label{display:grid;gap:6px;font-size:12px;font-weight:750;color:#53627f;}
.adv-custom-range__popover input{height:40px;border:1px solid #dfe6f2;border-radius:10px;padding:0 10px;}
.adv-custom-range__popover button[type=submit]{height:42px;border-radius:11px;background:#0b1224;color:#fff;width:100%;}
.adv-analytics-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;}
.adv-analytics-kpis article{background:#fff;border:1px solid #e3e9f3;border-radius:18px;min-height:112px;padding:18px;display:flex;align-items:center;gap:15px;box-shadow:0 18px 40px rgba(15,23,42,.035);}
.adv-kpi-icon{width:50px;height:50px;min-width:50px;border-radius:19px;display:grid;place-items:center;}
.adv-kpi-icon svg{width:25px;height:25px;stroke-width:2.1;}
.adv-kpi-icon.adv-purple{background:#eee6ff;color:#6d28ff;}.adv-kpi-icon.adv-blue{background:#e8f1ff;color:#1677ff;}.adv-kpi-icon.adv-green{background:#dcfce7;color:#0aa96b;}.adv-kpi-icon.adv-orange{background:#fff1dd;color:#f59e0b;}.adv-kpi-icon.adv-pink{background:#ffe6ee;color:#f43f72;}
.adv-analytics-kpis small{display:block;color:#53627f;font-size:12px;font-weight:740;margin-bottom:5px;line-height:1.1;}
.adv-analytics-kpis strong{display:block;color:#071229;font-size:28px;font-weight:850;letter-spacing:-.04em;line-height:1.02;}
.adv-analytics-kpis em{display:block;font-style:normal;color:#059669;font-size:11.5px;font-weight:720;margin-top:8px;line-height:1.25;}
.adv-analytics-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,.95fr);gap:18px;align-items:start;}
.adv-panel{background:#fff;border:1px solid #e3e9f3;border-radius:20px;box-shadow:0 18px 44px rgba(15,23,42,.035);padding:18px;min-width:0;}
.adv-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px;}
.adv-panel-head h2{margin:0;color:#071229;font-size:18px;font-weight:800;letter-spacing:-.025em;line-height:1.12;}
.adv-panel-head p{margin:5px 0 0;color:#65738d;font-size:12px;font-weight:650;}
.adv-panel-head a{font-size:12px;font-weight:800;color:#5b27ff;text-decoration:none;}
.adv-info-dot{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;border:1px solid #cbd5e1;color:#64748b;font-size:10px;vertical-align:middle;margin-left:4px;}
.adv-chart-actions{display:flex;align-items:center;gap:10px;}
.adv-chart-tabs{display:flex;align-items:center;background:#f7f9fd;border:1px solid #dfe6f2;border-radius:12px;padding:3px;}
.adv-chart-tabs button{height:34px;min-width:52px;border:0;border-radius:9px;background:transparent;color:#0f1a33;font-size:12px;font-weight:800;cursor:pointer;}
.adv-chart-tabs button.is-active{background:linear-gradient(135deg,#7c3cff,#5521df);color:#fff;box-shadow:0 9px 20px rgba(109,40,255,.22);}
.adv-icon-button{width:40px;height:40px;border:1px solid #dfe6f2;border-radius:12px;display:grid;place-items:center;color:#0f1a33;text-decoration:none;background:#fff;}
.adv-icon-button svg{width:18px;height:18px;}
.adv-performance-panel{min-height:315px;}
.adv-chart-legend{display:flex;align-items:center;gap:18px;font-size:12px;font-weight:800;color:#25314f;margin:0 0 8px 8px;}
.adv-chart-legend span{width:18px;height:4px;border-radius:999px;display:inline-block;margin-right:-10px;}
.adv-chart-legend .views{background:#6d28ff;}.adv-chart-legend .clicks{background:#1683ff;}
.adv-chart-canvas{height:250px;min-height:250px!important;border:0!important;padding:0!important;background:#fff!important;position:relative;}
.adv-chart-canvas svg{width:100%;height:100%;overflow:visible;}
.adv-chart-canvas .ap-chart-grid{stroke:#e8edf5;stroke-width:1;stroke-dasharray:0;}
.adv-chart-canvas .ap-chart-axis{fill:#52617d;font-size:12px;font-weight:650;}
.adv-chart-canvas .ap-chart-line{fill:none;stroke:#6d28ff;stroke-width:3;filter:drop-shadow(0 6px 10px rgba(109,40,255,.16));}
.adv-chart-canvas .ap-chart-area{fill:rgba(109,40,255,.12);stroke:#6d28ff;stroke-width:3;}
.adv-chart-canvas .ap-chart-bar{fill:#6d28ff;rx:8;}
.adv-chart-canvas .ap-chart-point{fill:#10b981;stroke:#fff;stroke-width:2;}.adv-chart-canvas .ap-chart-hit{fill:transparent;}
.adv-device-panel{min-height:315px;}
.adv-donut-wrap{display:grid;grid-template-columns:180px 1fr;gap:18px;align-items:center;}
.adv-donut{width:170px;height:170px;border-radius:50%;background:conic-gradient(var(--adv-donut));display:grid;place-items:center;position:relative;margin:auto;}
.adv-donut:after{content:"";position:absolute;inset:34px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 1px #edf2f8;}
.adv-donut span,.adv-donut small{position:relative;z-index:2;display:block;text-align:center;grid-column:1;grid-row:1;font-weight:850;color:#071229;}
.adv-donut span{font-size:22px;letter-spacing:-.03em;transform:translateY(-8px);}.adv-donut small{font-size:11px;color:#64748b;transform:translateY(16px);}
.adv-device-list{display:grid;gap:10px;}
.adv-device-item{display:grid!important;grid-template-columns:12px 1fr!important;grid-template-areas:"dot label" ". value" ". pct";gap:2px 10px!important;border:0!important;border-radius:0!important;padding:0!important;min-height:auto!important;background:transparent!important;box-shadow:none!important;}
.adv-device-item i{grid-area:dot;width:9px;height:9px;background:var(--dot);border-radius:50%;margin-top:5px;}.adv-device-item span{grid-area:label;font-weight:800;color:#17213a;}.adv-device-item strong{grid-area:value;font-size:14px!important;color:#071229!important;}.adv-device-item small{grid-area:pct;color:#53627f!important;font-weight:650!important;}
.adv-panel-link{display:inline-flex;align-items:center;gap:7px;margin-top:14px;color:#5b27ff;text-decoration:none;font-size:12px;font-weight:820;}
.adv-panel-link svg{width:14px;height:14px;}
.adv-table-panel{min-height:296px;}
.adv-clean-table{width:100%;border-collapse:separate!important;border-spacing:0!important;font-size:13px;}
.adv-clean-table th{padding:12px 10px;text-align:left;color:#53627f;font-size:11.5px;font-weight:800;background:#fff;border-bottom:1px solid #edf2f8;}
.adv-clean-table td{padding:13px 10px;border-bottom:1px solid #edf2f8;color:#17213a;font-weight:650;vertical-align:middle;}
.adv-clean-table tbody tr:last-child td{border-bottom:0;}
.adv-chip{height:34px;display:inline-flex;align-items:center;padding:0 14px;border:1px solid #dfe6f2;border-radius:999px;background:#f7f9fd;color:#071229;font-size:12px;font-weight:850;}
.adv-side-stack{display:grid;gap:18px;}
.adv-placement-panel,.adv-quick-panel{grid-column:2;}
.adv-placement-list{display:grid;gap:12px;}
.adv-placement-row{display:grid;grid-template-columns:1fr 64px 52px 50px;gap:10px;align-items:center;font-size:12px;color:#17213a;font-weight:720;}
.adv-placement-row strong{display:block;font-size:12px;color:#071229;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.adv-placement-row span{display:block;height:5px;background:#eef2f8;border-radius:999px;overflow:hidden;}
.adv-placement-row span i{display:block;height:100%;background:#6d28ff;border-radius:999px;}
.adv-placement-row b{font-size:12px;text-align:right;}
.adv-empty-mini{border:1px dashed #d8e1ef;border-radius:14px;padding:18px;color:#64748b;font-weight:700;text-align:center;}
.adv-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.adv-quick-grid a{min-height:82px;border:1px solid #dfe6f2;border-radius:14px;background:#fbfdff;text-decoration:none;color:#071229;font-weight:800;font-size:12px;display:grid;place-items:center;gap:8px;padding:12px;text-align:center;}
.adv-quick-grid svg{width:22px;height:22px;color:#5b27ff;}
@media (max-width:1280px){.adv-analytics-kpis{grid-template-columns:repeat(3,minmax(0,1fr));}.adv-analytics-grid{grid-template-columns:1fr;}.adv-placement-panel,.adv-quick-panel{grid-column:auto;}.adv-donut-wrap{grid-template-columns:170px 1fr;}}
@media (max-width:760px){.adv-analytics-head{display:grid;}.adv-analytics-controls{display:grid;width:100%;}.adv-segment{overflow:auto;}.adv-analytics-kpis{grid-template-columns:1fr;}.adv-donut-wrap{grid-template-columns:1fr;}.adv-placement-row{grid-template-columns:1fr 50px 44px 46px;}.adv-clean-table{min-width:620px;}.adv-table-panel{overflow-x:auto;}}

/* Phase 5J: advertiser analytics pixel-match UI rebuild */
.vesta-advertiser-analytics .vesta-app-main,
.vesta-advertiser-analytics .vesta-page-content{background:#f7f9fc!important;}
.adv-analytics-page.ap-advertiser-analytics{
  max-width:none!important;
  width:100%!important;
  margin:0!important;
  padding:28px 28px 26px!important;
  display:grid!important;
  gap:16px!important;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  color:#071229!important;
}
.adv-analytics-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:24px!important;margin:0 0 8px!important;}
.adv-analytics-head h1{font-size:26px!important;line-height:1.05!important;margin:0 0 8px!important;font-weight:820!important;letter-spacing:-.04em!important;color:#071229!important;}
.adv-analytics-head p{font-size:14px!important;line-height:1.35!important;color:#34456b!important;font-weight:500!important;}
.adv-analytics-controls{display:flex!important;align-items:flex-start!important;justify-content:flex-end!important;gap:22px!important;flex-wrap:nowrap!important;}
.adv-segment{height:44px!important;border-radius:12px!important;border:1px solid #dfe6f2!important;background:#fff!important;box-shadow:0 10px 24px rgba(15,23,42,.035)!important;padding:4px!important;gap:5px!important;}
.adv-segment>span{font-size:12px!important;color:#17213a!important;font-weight:600!important;margin:0 9px 0 7px!important;text-transform:none!important;}
.adv-segment--range:before{content:"Time Range";position:absolute;left:0;top:-23px;color:#53627f;font-size:10px;font-weight:750;}
.adv-segment--range>span{font-size:0!important;width:0!important;margin:0!important;overflow:hidden!important;}
.adv-segment button,.adv-custom-range button{height:34px!important;min-width:62px!important;border-radius:8px!important;font-size:12px!important;font-weight:780!important;color:#071229!important;}
.adv-segment button.is-active{background:linear-gradient(135deg,#7c3cff,#5521df)!important;color:#fff!important;box-shadow:0 12px 28px rgba(109,40,255,.26)!important;}
.adv-custom-range button{height:34px!important;border:1px solid #e4eaf4!important;border-radius:9px!important;background:#fff!important;min-width:110px!important;}
.adv-analytics-kpis{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:14px!important;margin:2px 0 0!important;}
.adv-analytics-kpis article{min-height:118px!important;border:1px solid #e3e9f3!important;border-radius:14px!important;background:#fff!important;box-shadow:0 16px 38px rgba(15,23,42,.035)!important;padding:20px 18px!important;gap:16px!important;align-items:center!important;overflow:hidden!important;}
.adv-kpi-icon{width:48px!important;height:48px!important;min-width:48px!important;border-radius:50%!important;}
.adv-kpi-icon svg{width:24px!important;height:24px!important;stroke-width:2.35!important;}
.adv-analytics-kpis small{font-size:12px!important;color:#53627f!important;font-weight:650!important;margin-bottom:7px!important;}
.adv-analytics-kpis strong{font-size:27px!important;line-height:.98!important;color:#071229!important;font-weight:850!important;letter-spacing:-.05em!important;white-space:normal!important;}
.adv-analytics-kpis em{font-size:11.5px!important;margin-top:9px!important;color:#059669!important;font-weight:780!important;white-space:nowrap!important;}
.adv-analytics-main-grid{display:grid!important;grid-template-columns:minmax(0,2.08fr) minmax(360px,.95fr)!important;gap:16px!important;align-items:start!important;}
.adv-analytics-left,.adv-analytics-right{display:grid!important;gap:16px!important;min-width:0!important;}
.adv-lower-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:16px!important;align-items:stretch!important;min-width:0!important;}
.adv-panel{border:1px solid #e3e9f3!important;border-radius:14px!important;background:#fff!important;box-shadow:0 18px 40px rgba(15,23,42,.035)!important;padding:20px!important;min-width:0!important;}
.adv-panel-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:14px!important;margin:0 0 14px!important;}
.adv-panel-head h2{font-size:17px!important;line-height:1.15!important;color:#071229!important;font-weight:820!important;letter-spacing:-.03em!important;}
.adv-panel-head p{font-size:12px!important;color:#65738d!important;margin:5px 0 0!important;}
.adv-panel-head a{font-size:12px!important;color:#5b27ff!important;font-weight:820!important;text-decoration:none!important;}
.adv-performance-panel{height:316px!important;min-height:316px!important;padding:18px 20px 14px!important;}
.adv-chart-actions{gap:9px!important;align-items:center!important;}
.adv-chart-tabs{display:none!important;}
.adv-icon-button,.adv-chart-mode-button{width:38px!important;height:38px!important;border:1px solid #dfe6f2!important;border-radius:9px!important;background:#fff!important;color:#071229!important;padding:0!important;display:grid!important;place-items:center!important;}
.adv-chart-mode-button.is-active,.adv-chart-mode-button:hover{background:#fff!important;color:#071229!important;box-shadow:none!important;}
.adv-chart-legend{margin:0 0 6px!important;padding-left:2px!important;gap:18px!important;color:#17213a!important;font-size:12px!important;font-weight:760!important;}
.adv-chart-legend span{width:22px!important;height:3px!important;margin-right:-10px!important;border-radius:999px!important;}
.adv-chart-canvas{height:228px!important;min-height:228px!important;background:#fff!important;overflow:hidden!important;}
.adv-chart-canvas .ap-chart-axis{font-size:11px!important;fill:#3d4d70!important;font-weight:650!important;}
.adv-chart-canvas .ap-chart-grid{stroke:#e8edf5!important;}
.adv-chart-canvas .ap-chart-line{stroke:#6d28ff!important;stroke-width:3!important;}
.adv-chart-canvas .ap-chart-area{fill:rgba(109,40,255,.12)!important;stroke:#6d28ff!important;stroke-width:3!important;}
.adv-device-panel{height:316px!important;min-height:316px!important;padding:20px!important;}
.adv-donut-wrap{display:grid!important;grid-template-columns:190px 1fr!important;gap:20px!important;align-items:center!important;height:216px!important;}
.adv-donut{width:178px!important;height:178px!important;margin:0 auto!important;}
.adv-donut:after{inset:43px!important;box-shadow:none!important;}
.adv-donut span{font-size:22px!important;font-weight:850!important;transform:translateY(-8px)!important;}
.adv-donut small{font-size:12px!important;transform:translateY(17px)!important;}
.adv-device-list{gap:17px!important;align-content:center!important;}
.adv-device-item{display:grid!important;grid-template-columns:12px 1fr!important;grid-template-areas:"dot label" ". value"!important;gap:4px 9px!important;background:transparent!important;border:0!important;padding:0!important;min-height:auto!important;box-shadow:none!important;}
.adv-device-item i{grid-area:dot!important;width:10px!important;height:10px!important;margin-top:3px!important;border-radius:50%!important;background:var(--dot)!important;}
.adv-device-item span{grid-area:label!important;font-size:13px!important;color:#071229!important;font-weight:800!important;}
.adv-device-item strong{grid-area:value!important;font-size:13px!important;color:#071229!important;font-weight:650!important;line-height:1.25!important;}
.adv-device-item strong small{font-size:13px!important;color:#071229!important;font-weight:650!important;}
.adv-align-right{display:flex!important;justify-content:flex-end!important;margin-left:auto!important;}
.adv-table-panel{height:365px!important;min-height:365px!important;padding:20px!important;display:flex!important;flex-direction:column!important;}
.adv-clean-table{font-size:12px!important;table-layout:auto!important;}
.adv-clean-table th{padding:10px 0!important;color:#53627f!important;font-size:11px!important;font-weight:820!important;border-bottom:1px solid #edf2f8!important;background:#fff!important;}
.adv-clean-table td{padding:11px 0!important;color:#071229!important;font-size:12px!important;font-weight:690!important;border-bottom:0!important;}
.adv-clean-table td:nth-child(n+2),.adv-clean-table th:nth-child(n+2){text-align:right!important;}
.adv-clean-table tbody td:nth-child(2),.adv-clean-table tbody td:nth-child(3),.adv-clean-table tbody td:nth-child(4){color:#047857!important;}
.adv-campaign-panel .adv-clean-table td:nth-child(n+3){color:#071229!important;}
.adv-campaign-panel .adv-clean-table th:nth-child(2),.adv-campaign-panel .adv-clean-table td:nth-child(2){text-align:left!important;padding-left:8px!important;}
.adv-panel-link{margin-top:auto!important;font-size:12px!important;color:#5b27ff!important;font-weight:840!important;text-decoration:none!important;display:inline-flex!important;align-items:center!important;gap:7px!important;}
.adv-chip{height:34px!important;border-radius:10px!important;background:#fff!important;border:1px solid #dfe6f2!important;color:#071229!important;font-size:12px!important;font-weight:800!important;gap:6px!important;padding:0 12px!important;}
.adv-chip svg{width:15px!important;height:15px!important;}
.adv-placement-panel{height:276px!important;min-height:276px!important;padding:18px 20px!important;grid-column:auto!important;}
.adv-placement-header,.adv-placement-row{display:grid!important;grid-template-columns:1fr 64px 54px 52px!important;gap:10px!important;align-items:center!important;}
.adv-placement-header{color:#53627f!important;font-size:10.5px!important;font-weight:820!important;margin-bottom:8px!important;}
.adv-placement-header span:nth-child(n+2){text-align:right!important;}
.adv-placement-list{display:grid!important;gap:8px!important;}
.adv-placement-row{font-size:12px!important;color:#071229!important;font-weight:700!important;}
.adv-placement-row strong{font-size:11.5px!important;font-weight:800!important;color:#071229!important;margin-bottom:5px!important;}
.adv-placement-row span{height:4px!important;background:#edf2f8!important;border-radius:999px!important;}
.adv-placement-row span i{height:100%!important;background:#6d28ff!important;border-radius:999px!important;}
.adv-placement-row b{font-size:11.5px!important;font-weight:700!important;color:#071229!important;text-align:right!important;}
.adv-empty-mini{border:1px dashed #d8e1ef!important;border-radius:12px!important;padding:18px!important;color:#64748b!important;text-align:center!important;font-weight:650!important;}
.adv-quick-panel{height:124px!important;min-height:124px!important;padding:16px 20px!important;grid-column:auto!important;}
.adv-quick-panel .adv-panel-head{margin-bottom:10px!important;}
.adv-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;}
.adv-quick-grid a{min-height:58px!important;border-radius:8px!important;border:1px solid #dfe6f2!important;background:#fbfdff!important;color:#071229!important;font-size:10.5px!important;font-weight:800!important;padding:8px!important;gap:4px!important;}
.adv-quick-grid svg{width:19px!important;height:19px!important;color:#071229!important;}
@media (max-width:1380px){.adv-analytics-main-grid{grid-template-columns:1fr!important;}.adv-analytics-right{grid-template-columns:1fr 1fr!important;}.adv-device-panel{grid-column:1 / -1!important;}.adv-donut-wrap{grid-template-columns:190px 1fr!important;}.adv-quick-panel{height:auto!important;}}
@media (max-width:900px){.adv-analytics-page.ap-advertiser-analytics{padding:18px!important;}.adv-analytics-head{display:grid!important;}.adv-analytics-controls{justify-content:start!important;flex-wrap:wrap!important;}.adv-analytics-kpis{grid-template-columns:1fr!important;}.adv-lower-grid,.adv-analytics-right{grid-template-columns:1fr!important;}.adv-performance-panel,.adv-device-panel,.adv-table-panel,.adv-placement-panel,.adv-quick-panel{height:auto!important;min-height:0!important;}.adv-donut-wrap{grid-template-columns:1fr!important;height:auto!important;}.adv-clean-table{min-width:560px!important;}.adv-table-panel{overflow:auto!important;}.adv-placement-header,.adv-placement-row{grid-template-columns:1fr 56px 50px 52px!important;}.adv-segment--range:before{display:none!important;}}


/* PHASE 5L: advertiser analytics lower-card repair + remove quick actions */
.vesta-advertiser-analytics .adv-quick-panel,
.adv-quick-panel{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden!important;}
.vesta-advertiser-analytics .adv-table-panel,
.adv-table-panel{height:310px!important;min-height:310px!important;padding:20px!important;overflow:hidden!important;}
.vesta-advertiser-analytics .adv-lower-grid,
.adv-lower-grid{align-items:stretch!important;}
.vesta-advertiser-analytics .adv-clean-table,
.adv-clean-table{border:0!important;border-collapse:collapse!important;border-spacing:0!important;outline:0!important;background:#fff!important;}
.vesta-advertiser-analytics .adv-clean-table th,
.vesta-advertiser-analytics .adv-clean-table td,
.adv-clean-table th,
.adv-clean-table td{border-left:0!important;border-right:0!important;box-shadow:none!important;outline:0!important;}
.vesta-advertiser-analytics .adv-clean-table th:first-child,
.vesta-advertiser-analytics .adv-clean-table td:first-child,
.adv-clean-table th:first-child,
.adv-clean-table td:first-child{padding-left:0!important;}
.vesta-advertiser-analytics .adv-clean-table th:last-child,
.vesta-advertiser-analytics .adv-clean-table td:last-child,
.adv-clean-table th:last-child,
.adv-clean-table td:last-child{padding-right:0!important;}
.vesta-advertiser-analytics .adv-table-panel .adv-clean-table tbody tr td[colspan],
.adv-table-panel .adv-clean-table tbody tr td[colspan]{height:44px!important;text-align:left!important;color:#071229!important;font-weight:680!important;padding:12px 0!important;}
.vesta-advertiser-analytics .adv-table-panel .adv-panel-link,
.adv-table-panel .adv-panel-link{margin-top:auto!important;}
.vesta-advertiser-analytics .adv-analytics-right,
.adv-analytics-right{grid-auto-rows:auto!important;}
.vesta-advertiser-analytics .adv-placement-panel,
.adv-placement-panel{height:250px!important;min-height:250px!important;}

/* Phase 5AY — Slot delivery diagnostics */
.ap-slot-diagnostic-help{margin:0 0 14px;color:#53627f;font-weight:650;font-size:13px}.ap-slot-diagnostic-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin:0 0 16px;border:1px solid #e7ecf5;border-radius:14px;padding:14px;background:#fbfdff}.ap-slot-diagnostic-summary dt{font-size:11px;color:#53627f;font-weight:800;text-transform:capitalize}.ap-slot-diagnostic-summary dd{margin:0;font-size:12px;color:#071229;font-weight:800;word-break:break-word}.ap-slot-diagnostic-list{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:10px}.ap-slot-diagnostic-list li{display:flex;align-items:center;justify-content:space-between;border:1px solid #e7ecf5;border-radius:12px;padding:10px 12px;background:#fff;color:#17213a;font-weight:800}.ap-slot-diagnostic-list b{border-radius:999px;padding:4px 9px;font-size:11px}.ap-slot-diagnostic-list b.ok{background:#dcfce7;color:#078449}.ap-slot-diagnostic-list b.bad{background:#fee2e2;color:#b91c1c}.ap-slot-diagnostic-issues{border:1px solid #e7ecf5;border-radius:14px;background:#fff;padding:14px}.ap-slot-diagnostic-issues h4{margin:0 0 8px;color:#b45309}.ap-slot-diagnostic-issues ul{margin:0 0 0 18px;color:#7c2d12;font-weight:700}.ap-slot-diagnostic-issues strong.ok{color:#078449}.ap-slot-form label.check{display:flex;align-items:center;gap:10px;border:1px solid #e7ecf5;border-radius:13px;padding:12px 14px;background:#fbfdff}.ap-slot-form label.check input{width:auto!important}.ap-slot-form select,.ap-slot-form input{width:100%}

/* Phase 5BH: Admin Full View UI rebuild only. Data, routes and engine remain unchanged. */
.ap-admin-full-modern{display:grid;gap:18px;margin-top:4px}.ap-admin-full-modern .ap-panel{border-radius:24px;border-color:#dfe7f2;box-shadow:0 18px 46px rgba(15,23,42,.045);background:rgba(255,255,255,.92);backdrop-filter:saturate(140%) blur(8px)}.ap-admin-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.ap-admin-kpi-grid--wide{grid-template-columns:repeat(2,minmax(0,1fr))}.ap-modern-kpi{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:start;min-height:142px;border:1px solid #dde6f2;border-radius:22px;background:linear-gradient(145deg,#fff 0%,#fbfdff 58%,#f5f7ff 100%);padding:22px;box-shadow:0 16px 36px rgba(15,23,42,.045)}.ap-modern-kpi:before{content:"";position:absolute;inset:auto -30px -42px 34%;height:96px;border-radius:999px;background:radial-gradient(circle at center,rgba(109,40,255,.16),rgba(109,40,255,0) 64%);z-index:-1}.ap-modern-kpi--wide{min-height:116px;grid-template-columns:auto minmax(0,240px) 1fr;align-items:center}.ap-modern-kpi__icon{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:#f3edff;color:#6d28ff}.ap-modern-kpi__icon svg{width:23px;height:23px}.ap-modern-kpi__body{display:grid;gap:5px}.ap-modern-kpi strong{font-size:34px;letter-spacing:-.05em;line-height:1;color:#081226;font-weight:800}.ap-modern-kpi span:not(.ap-modern-kpi__icon){color:#415170;font-weight:800;font-size:15px}.ap-modern-kpi small{color:#66748e;font-weight:650}.ap-modern-kpi.tone-green .ap-modern-kpi__icon{background:#dcfce7;color:#079455}.ap-modern-kpi.tone-orange .ap-modern-kpi__icon{background:#fff2d9;color:#c16b00}.ap-modern-kpi.tone-pink .ap-modern-kpi__icon{background:#ffe8f0;color:#e11d48}.ap-modern-kpi.tone-purple .ap-modern-kpi__icon{background:#f0eaff;color:#6d28ff}.ap-modern-spark{align-self:end;height:38px;width:100%;opacity:.82;background:linear-gradient(135deg,transparent 0 15%,currentColor 15% 18%,transparent 18% 33%,currentColor 33% 36%,transparent 36% 52%,currentColor 52% 55%,transparent 55% 72%,currentColor 72% 75%,transparent 75%);color:#6d28ff;mask:linear-gradient(#000,#000) content-box;filter:drop-shadow(0 8px 14px rgba(109,40,255,.18))}.tone-green .ap-modern-spark{color:#08a66a}.tone-orange .ap-modern-spark{color:#f59e0b}.tone-pink .ap-modern-spark{color:#e11d48}.ap-modern-analytics-card{padding:26px 26px 28px}.ap-modern-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.ap-modern-section-head h2{margin:2px 0 6px;font-size:26px;line-height:1.08;letter-spacing:-.045em;color:#071129}.ap-modern-section-head p{margin:0;color:#53627f;font-size:15px}.ap-modern-section-head--compact{margin-bottom:16px}.ap-modern-eyebrow{display:inline-flex;align-items:center;gap:6px;color:#6d28ff;font-weight:800;font-size:11px;letter-spacing:.08em;text-transform:uppercase}.ap-modern-segment{display:flex;align-items:center;gap:8px;background:#f8fafc;border:1px solid #dfe6f1;border-radius:18px;padding:6px}.ap-modern-segment button,.ap-modern-chart-toolbar button{height:42px;border:1px solid #dde6f2!important;border-radius:13px!important;background:#fff!important;padding:0 18px!important;color:#101828!important;font-weight:800!important;box-shadow:none!important}.ap-modern-segment button.is-active,.ap-modern-chart-toolbar button.is-active{background:linear-gradient(135deg,#7c3cff,#5b21e9)!important;border-color:transparent!important;color:#fff!important;box-shadow:0 14px 24px rgba(109,40,255,.18)!important}.ap-modern-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}.ap-modern-summary{display:flex;align-items:center;gap:16px;min-height:114px;border:1px solid #dde6f2;border-radius:20px;background:linear-gradient(145deg,#fff,#fbfdff);padding:20px;box-shadow:0 12px 26px rgba(15,23,42,.035)}.ap-modern-summary span{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:#f0eaff;color:#6d28ff;flex:none}.ap-modern-summary.tone-green span{background:#dcfce7;color:#079455}.ap-modern-summary strong{display:block;font-size:28px;line-height:1;color:#071129;letter-spacing:-.045em;font-weight:850}.ap-modern-summary small{display:block;margin-top:6px;color:#53627f;font-weight:800}.ap-modern-summary em{display:block;margin-top:8px;color:#079455;font-style:normal;font-weight:850;font-size:13px}.ap-modern-date-filter{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:14px;margin:0 0 18px}.ap-modern-date-filter label{display:grid;gap:8px;color:#071129;font-weight:800}.ap-modern-date-filter input{height:52px;border-radius:14px}.ap-modern-date-filter .ap-primary{height:52px;border-radius:14px;margin-left:0}.ap-modern-chart-card{border:1px solid #dde6f2;border-radius:22px;background:#fff;padding:18px 18px 12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.9);margin-bottom:20px}.ap-modern-chart-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px;margin:0 0 12px!important}.ap-modern-chart-toolbar>div{display:flex;align-items:baseline;gap:10px}.ap-modern-chart-toolbar span{font-size:18px;color:#071129;font-weight:850}.ap-modern-chart-toolbar small{font-size:14px;color:#52617d;font-weight:750}.ap-modern-chart-toolbar nav{display:flex;gap:8px}.ap-modern-analytics-card .ap-chart-canvas{height:310px;border-radius:18px;background:linear-gradient(180deg,#fff,#fbfdff);position:relative;overflow:hidden}.ap-modern-analytics-card .ap-chart-canvas svg{width:100%;height:100%;display:block}.ap-modern-analytics-card .ap-chart-line{stroke:#6d28ff;stroke-width:3.4;fill:none}.ap-modern-analytics-card[data-chart-metric="clicks"] .ap-chart-line{stroke:#08a66a}.ap-modern-analytics-card .ap-chart-area{fill:rgba(109,40,255,.11);stroke:none}.ap-modern-analytics-card[data-chart-metric="clicks"] .ap-chart-area{fill:rgba(8,166,106,.11)}.ap-modern-analytics-card .ap-chart-point{fill:#fff;stroke:#6d28ff;stroke-width:4}.ap-modern-analytics-card[data-chart-metric="clicks"] .ap-chart-point{stroke:#08a66a}.ap-modern-analytics-card .ap-chart-bar{fill:#6d28ff}.ap-modern-analytics-card[data-chart-metric="clicks"] .ap-chart-bar{fill:#08a66a}.ap-modern-analytics-card .ap-chart-grid{stroke:#e6ebf3;stroke-width:1}.ap-modern-analytics-card .ap-chart-axis{fill:#53627f;font-weight:750;font-size:12px}.ap-modern-subtitle{font-size:22px!important;letter-spacing:-.04em!important;margin:16px 0 14px!important;color:#071129!important}.ap-modern-device-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 20px}.ap-modern-device-card{display:flex;align-items:center;gap:16px;min-height:108px;border:1px solid #dde6f2;border-radius:20px;background:#fff;padding:18px;box-shadow:0 10px 24px rgba(15,23,42,.03)}.ap-modern-device-ring{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#6d28ff 0 22%,#edf1f7 22% 100%);color:#6d28ff;position:relative;flex:none}.ap-modern-device-ring:before{content:"";position:absolute;inset:8px;border-radius:50%;background:#fff}.ap-modern-device-ring svg{position:relative;width:22px;height:22px}.ap-modern-device-card b{display:block;color:#53627f;font-size:14px}.ap-modern-device-card strong{display:block;margin-top:4px;color:#071129;font-size:26px;line-height:1;font-weight:850}.ap-modern-device-card small{display:block;margin-top:6px;color:#53627f;font-weight:800}.ap-modern-table-card{border:1px solid #dde6f2;border-radius:18px;background:#fff;overflow:hidden}.ap-modern-table{font-size:14px}.ap-modern-table th{background:linear-gradient(90deg,#f7f4ff,#fbfcff);color:#415170;font-weight:850;padding:15px 18px}.ap-modern-table td{padding:17px 18px}.ap-modern-table tr:hover td{background:#fbfdff}.ap-modern-orders-card{padding:24px 26px;margin-bottom:24px}.ap-modern-orders-card .ap-modern-table-card{box-shadow:0 10px 24px rgba(15,23,42,.025)}@media(max-width:1280px){.ap-admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ap-admin-kpi-grid--wide,.ap-modern-summary-grid,.ap-modern-device-grid{grid-template-columns:1fr}.ap-modern-section-head{flex-direction:column}.ap-modern-date-filter{grid-template-columns:1fr}}@media(max-width:760px){.ap-admin-kpi-grid{grid-template-columns:1fr}.ap-modern-kpi--wide{grid-template-columns:auto 1fr}.ap-modern-spark{display:none}.ap-modern-segment,.ap-modern-chart-toolbar nav{width:100%;overflow:auto}.ap-modern-summary{align-items:flex-start}.ap-modern-analytics-card,.ap-modern-orders-card{padding:18px}.ap-modern-section-head h2{font-size:22px}}

/* Phase 5BI — Admin full view compact UI repair
   UI-only: removes decorative dummy sparks, compacts KPI/view controls, and makes device rings data-aware. */
.vesta-ad-page .vesta-view-switch{
  min-width:420px!important;
  height:48px!important;
  padding:4px!important;
  border-radius:18px!important;
  box-shadow:0 10px 24px rgba(16,24,40,.04)!important;
}
.vesta-ad-page .vesta-view-switch__button{
  height:38px!important;
  min-width:128px!important;
  border-radius:14px!important;
  font-size:13px!important;
  letter-spacing:-.01em!important;
}
.vesta-ad-page .vesta-view-switch__button.is-active{
  box-shadow:0 10px 22px rgba(95,44,255,.18)!important;
}
.ap-admin-full-modern{gap:14px!important;margin-top:0!important}
.ap-admin-kpi-grid{gap:14px!important}
.ap-modern-kpi{
  min-height:92px!important;
  align-items:center!important;
  grid-template-columns:44px minmax(0,1fr)!important;
  gap:14px!important;
  padding:18px 20px!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 12px 28px rgba(15,23,42,.035)!important;
}
.ap-modern-kpi:before,.ap-modern-spark{display:none!important;content:none!important}
.ap-modern-kpi--wide{min-height:84px!important;grid-template-columns:44px minmax(0,1fr)!important}
.ap-modern-kpi__icon{width:42px!important;height:42px!important;border-radius:14px!important}
.ap-modern-kpi__icon svg{width:21px!important;height:21px!important}
.ap-modern-kpi__body{display:grid!important;grid-template-columns:auto auto!important;align-items:baseline!important;column-gap:12px!important;row-gap:3px!important}
.ap-modern-kpi strong{font-size:28px!important;letter-spacing:-.045em!important;line-height:1!important}
.ap-modern-kpi span:not(.ap-modern-kpi__icon){font-size:15px!important;line-height:1.1!important;color:#34445f!important}
.ap-modern-kpi small{grid-column:2!important;font-size:13px!important;line-height:1.15!important;color:#66748e!important}
.ap-modern-analytics-card{padding:22px!important;border-radius:22px!important}
.ap-modern-section-head{margin-bottom:14px!important;align-items:center!important}
.ap-modern-section-head h2{font-size:24px!important}
.ap-modern-section-head p{font-size:14px!important}
.ap-modern-eyebrow{display:none!important}
.ap-modern-segment{padding:4px!important;border-radius:16px!important;gap:6px!important;background:#fff!important}
.ap-modern-segment button,.ap-modern-chart-toolbar button{height:36px!important;border-radius:12px!important;padding:0 16px!important;font-size:13px!important}
.ap-modern-summary-grid{gap:12px!important;margin-bottom:14px!important}
.ap-modern-summary{min-height:86px!important;padding:16px!important;border-radius:18px!important;gap:14px!important}
.ap-modern-summary span{width:42px!important;height:42px!important;border-radius:14px!important}
.ap-modern-summary strong{font-size:25px!important}
.ap-modern-summary small{margin-top:4px!important;font-size:13px!important}
.ap-modern-summary em{margin-top:5px!important;font-size:12px!important}
.ap-modern-date-filter{gap:12px!important;margin-bottom:14px!important}
.ap-modern-date-filter label{gap:6px!important;font-size:13px!important}
.ap-modern-date-filter input,.ap-modern-date-filter .ap-primary{height:46px!important;border-radius:13px!important}
.ap-modern-chart-card{padding:14px!important;border-radius:20px!important;margin-bottom:16px!important}
.ap-modern-analytics-card .ap-chart-canvas{height:280px!important}
.ap-modern-chart-toolbar{margin-bottom:8px!important}
.ap-modern-chart-toolbar span{font-size:16px!important}
.ap-modern-chart-toolbar small{font-size:13px!important}
.ap-modern-subtitle{font-size:20px!important;margin:12px 0 12px!important}
.ap-modern-device-grid{gap:12px!important;margin-bottom:16px!important}
.ap-modern-device-card{min-height:82px!important;padding:14px 16px!important;border-radius:18px!important;gap:14px!important}
.ap-modern-device-ring{
  width:48px!important;height:48px!important;
  background:conic-gradient(#6d28ff 0 var(--ap-device-pct,0%),#edf1f7 var(--ap-device-pct,0%) 100%)!important;
}
.ap-modern-device-card.is-empty .ap-modern-device-ring{background:#f1f4f8!important;color:#98a2b3!important}
.ap-modern-device-ring:before{inset:7px!important}
.ap-modern-device-ring svg{width:19px!important;height:19px!important}
.ap-modern-device-card b{font-size:13px!important}.ap-modern-device-card strong{font-size:24px!important}.ap-modern-device-card small{font-size:13px!important}
.ap-modern-table th{padding:13px 16px!important}.ap-modern-table td{padding:14px 16px!important}
.ap-modern-orders-card{padding:20px 22px!important;border-radius:22px!important}
@media(max-width:1350px){.vesta-ad-page .vesta-view-switch{min-width:380px!important}.vesta-ad-page .vesta-view-switch__button{min-width:116px!important}}
@media(max-width:760px){.ap-modern-kpi__body{grid-template-columns:auto!important}.ap-modern-kpi small{grid-column:auto!important}.vesta-ad-page .vesta-view-switch{height:auto!important}.vesta-ad-page .vesta-view-switch__button{min-width:112px!important}}


/* Phase 5BJ: Admin Full View compact metric row + chart padding repair. UI only. */
.ap-admin-full-modern .ap-admin-kpi-grid--wide{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
.ap-admin-full-modern .ap-admin-kpi-grid--wide .ap-modern-kpi{min-height:82px!important;}
.ap-admin-full-modern .ap-modern-analytics-card .ap-chart-canvas{padding:0!important;}
.ap-admin-full-modern .ap-modern-analytics-card .ap-chart-canvas svg{width:100%!important;height:100%!important;}
.ap-admin-full-modern .ap-modern-kpi.tone-blue .ap-modern-kpi__icon{background:#e8f1ff!important;color:#2563eb!important;}
@media(max-width:1280px){.ap-admin-full-modern .ap-admin-kpi-grid--wide{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media(max-width:980px){.ap-admin-full-modern .ap-admin-kpi-grid--wide{grid-template-columns:1fr!important;}}
