.adp-wrap{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;background:linear-gradient(135deg,#f7f2df,#eef3ff);border-radius:28px;padding:24px;color:#111827;box-shadow:0 20px 60px rgba(17,24,39,.08);max-width:none;margin:20px 0}.adp-hero{display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,.65);border:1px solid rgba(255,255,255,.8);border-radius:24px;padding:22px;margin-bottom:18px}.adp-hero p{margin:0;color:#6b7280;font-size:13px}.adp-hero h2{margin:4px 0 4px;font-size:28px;line-height:1.1}.adp-grid{display:grid;gap:16px}.kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}.channels{grid-template-columns:repeat(4,minmax(0,1fr))}.adp-card{background:rgba(255,255,255,.82);border:1px solid rgba(255,255,255,.95);border-radius:22px;padding:18px;box-shadow:0 14px 35px rgba(17,24,39,.06)}.adp-card span{display:block;color:#6b7280;font-size:13px;margin-bottom:9px}.adp-card strong{font-size:28px;letter-spacing:-.04em}.platform h3{margin:0 0 14px}.platform p{margin:8px 0;color:#4b5563}.adp-alert{background:#1f2937;color:white;border-radius:24px;padding:20px;box-shadow:0 18px 40px rgba(17,24,39,.22)}.adp-alert h3{margin-top:0;color:white}.adp-alert p{color:#e5e7eb}.adp-admin .adp-panel{background:#fff;border-radius:18px;padding:22px;margin:22px 0;max-width:920px;box-shadow:0 10px 30px rgba(0,0,0,.05)}.adp-label{font-weight:700;display:block;margin:14px 0 7px}.adp-admin input.regular-text,.adp-admin textarea{width:100%;max-width:720px;border-radius:12px;border:1px solid #d1d5db;padding:10px 12px}@media(max-width:900px){.kpis,.channels{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.adp-wrap{padding:14px;border-radius:20px}.kpis,.channels{grid-template-columns:1fr}.adp-hero h2{font-size:22px}.adp-card strong{font-size:24px}}
.adp-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.adp-tab{border:1px solid rgba(17,24,39,.08);background:rgba(255,255,255,.72);border-radius:999px;padding:10px 14px;font-weight:700;cursor:pointer}.adp-tab.is-active{background:#111827;color:#fff}.adp-youtube-head{background:#1f2937;color:#fff;border-radius:24px;padding:22px;margin-bottom:16px;box-shadow:0 18px 40px rgba(17,24,39,.18)}.adp-youtube-head p,.adp-youtube-head small{color:#d1d5db;margin:0}.adp-youtube-head h2{margin:4px 0 5px;color:#fff}.adp-yt-layout{grid-template-columns:minmax(0,1fr) 300px;align-items:start}.adp-table-card{overflow:hidden}.adp-card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.adp-card-head h3{margin:0}.adp-card-head p{margin:4px 0 0;color:#6b7280}.adp-controls{display:grid;grid-template-columns:1fr 180px 210px;gap:10px;margin-bottom:14px}.adp-controls input,.adp-controls select{border:1px solid #d1d5db;border-radius:14px;padding:10px 12px;background:#fff}.adp-table-wrap{overflow:auto}.adp-table{width:100%;border-collapse:separate;border-spacing:0;min-width:860px}.adp-table th{text-align:left;color:#6b7280;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid #e5e7eb;padding:10px}.adp-table td{border-bottom:1px solid #eef2f7;padding:12px 10px;vertical-align:middle}.adp-video-cell{display:flex;gap:12px;align-items:center;min-width:330px}.adp-video-cell img{width:96px;height:54px;object-fit:cover;border-radius:10px;background:#e5e7eb}.adp-video-cell a{text-decoration:none;color:#111827}.adp-video-cell small{display:block;color:#6b7280;margin-top:4px}.adp-side{display:grid;gap:16px}.adp-mini-video{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #eef2f7}.adp-mini-video:last-child{border-bottom:0}.adp-mini-video img{width:72px;height:42px;object-fit:cover;border-radius:9px}.adp-mini-video strong{display:block;font-size:13px;line-height:1.25}.adp-mini-video small{display:block;color:#6b7280;margin-top:3px}@media(max-width:1050px){.adp-yt-layout{grid-template-columns:1fr}.adp-controls{grid-template-columns:1fr}} 
.adp-ga-head{background:linear-gradient(135deg,#0f172a,#233876);color:#fff;border-radius:24px;padding:22px;margin-bottom:16px;box-shadow:0 18px 40px rgba(15,23,42,.2)}.adp-ga-head p,.adp-ga-head small{color:#dbeafe;margin:0}.adp-ga-head h2{margin:4px 0 5px;color:#fff}.adp-ga-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.adp-ga-layout{grid-template-columns:minmax(0,1fr) 300px;align-items:start;margin-bottom:16px}.adp-ga-main{min-height:300px}.adp-ga-chart{height:260px;display:flex;align-items:flex-end;gap:7px;border-radius:18px;background:linear-gradient(180deg,rgba(241,245,249,.9),rgba(255,255,255,.35));padding:18px 12px 32px;overflow:hidden}.adp-ga-bar{position:relative;flex:1;min-width:8px;height:100%;display:flex;align-items:flex-end;justify-content:center}.adp-ga-bar span{display:block;width:100%;max-width:18px;border-radius:999px 999px 4px 4px;background:linear-gradient(180deg,#2563eb,#93c5fd);box-shadow:0 10px 18px rgba(37,99,235,.2)}.adp-ga-bar small{position:absolute;bottom:-24px;font-size:10px;color:#64748b;transform:rotate(-55deg);transform-origin:center;white-space:nowrap}.adp-ga-tables{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:16px}.adp-page-cell strong{display:block;max-width:520px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.adp-page-cell small{display:block;color:#64748b;margin-top:4px;max-width:520px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.adp-small-table{min-width:620px}.adp-ga-controls{grid-template-columns:1fr 220px}@media(max-width:1050px){.adp-ga-layout,.adp-ga-tables{grid-template-columns:1fr}.adp-ga-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.adp-ga-controls{grid-template-columns:1fr}}@media(max-width:640px){.adp-ga-kpis{grid-template-columns:1fr}.adp-ga-chart{gap:3px}.adp-ga-bar small{display:none}}
.adp-meta-head{background:linear-gradient(135deg,#111827,#4f46e5);color:#fff;border-radius:24px;padding:22px;margin-bottom:16px;box-shadow:0 18px 40px rgba(79,70,229,.22)}.adp-meta-head p,.adp-meta-head small{color:#e0e7ff;margin:0}.adp-meta-head h2{margin:4px 0 5px;color:#fff}.adp-meta-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.adp-meta-layout{grid-template-columns:minmax(0,1fr) 300px;align-items:start;margin-bottom:16px}.adp-meta-chart{height:260px;display:flex;align-items:flex-end;gap:7px;border-radius:18px;background:linear-gradient(180deg,rgba(238,242,255,.95),rgba(255,255,255,.45));padding:18px 12px 32px;overflow:hidden}.adp-meta-bar{position:relative;flex:1;min-width:8px;height:100%;display:flex;align-items:flex-end;justify-content:center;gap:3px}.adp-meta-bar span{display:block;width:8px;border-radius:999px 999px 4px 4px;box-shadow:0 10px 18px rgba(79,70,229,.16)}.adp-meta-bar .spend{background:linear-gradient(180deg,#4f46e5,#a5b4fc)}.adp-meta-bar .clicks{background:linear-gradient(180deg,#111827,#94a3b8)}.adp-meta-bar small{position:absolute;bottom:-24px;font-size:10px;color:#64748b;transform:rotate(-55deg);transform-origin:center;white-space:nowrap}.adp-meta-controls{grid-template-columns:1fr 220px}.adp-meta-tables{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:16px}@media(max-width:1050px){.adp-meta-layout,.adp-meta-tables{grid-template-columns:1fr}.adp-meta-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.adp-meta-controls{grid-template-columns:1fr}}@media(max-width:640px){.adp-meta-kpis{grid-template-columns:1fr}.adp-meta-chart{gap:3px}.adp-meta-bar small{display:none}}
/* AdPulse v2.2 Meta Social */
.adp-social-head{margin-top:8px}.adp-social-kpis .adp-card strong{font-size:24px}.adp-social-controls{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.adp-social-controls input,.adp-social-controls select{min-height:38px;border:1px solid rgba(15,23,42,.12);border-radius:12px;padding:8px 12px;background:#fff}.adp-muted{color:#64748b;font-size:11px;margin-left:4px}.adp-video-cell a{color:#2563eb;text-decoration:none}.adp-video-cell a:hover{text-decoration:underline}
/* AdPulse v2.9 Multi Account + Date Ranges */
.adp-inline-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:920px}.adp-subpanel{margin-top:24px;padding:18px;border:1px solid #e5e7eb;border-radius:18px;background:#f8fafc}.adp-subpanel h2{margin-top:0}.adp-subpanel .widefat{background:#fff;border-radius:12px;overflow:hidden}.adp-subpanel form{margin:0}.adp-hero small{color:#64748b}.adp-table code{font-size:12px;word-break:break-all}.adp-admin select.regular-text{width:100%;max-width:720px;border-radius:12px;border:1px solid #d1d5db;padding:10px 12px;background:#fff}@media(max-width:760px){.adp-inline-fields{grid-template-columns:1fr}}

/* AdPulse v3.0 Advanced Analytics */
.adp-v30-panel{border:1px solid rgba(15,23,42,.08);background:linear-gradient(135deg,#fff,#f8fafc);}
.adp-v30-panel .adp-card{background:#fff;border:1px solid rgba(15,23,42,.07);}
.adp-v30-form{margin-top:18px;padding:16px;border-radius:18px;background:#f8fafc;border:1px solid rgba(15,23,42,.08)}
.adp-v30-form select{max-width:280px}
.adp-muted{opacity:.62;font-size:11px}

/* AdPulse v3.1 per-panel date filters */
.adp-date-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin:12px 0 20px}
.adp-date-card h4{margin:0 0 8px}.adp-date-card small{display:block;color:#64748b;margin-top:8px}
.adp-panel-date-filter{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px;background:rgba(255,255,255,.92)}
.adp-panel-date-filter>div{display:grid;gap:2px;margin-right:auto}.adp-panel-date-filter small{color:#64748b;font-size:12px}.adp-panel-date-filter select,.adp-panel-date-filter input{border:1px solid #d1d5db;border-radius:12px;padding:8px 10px;background:#fff;min-height:38px}
@media(max-width:900px){.adp-date-grid{grid-template-columns:1fr}.adp-panel-date-filter{align-items:stretch}.adp-panel-date-filter select,.adp-panel-date-filter input,.adp-panel-date-filter button{width:100%}}

/* AdPulse v3.2 platform-specific integration forms */
.adp-integrations-v32 .adp-platform-box{margin:18px 0;padding:18px;border:1px solid #e2e8f0;border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.04)}
.adp-integrations-v32 .adp-platform-box h4{margin:0 0 6px;font-size:18px}.adp-integrations-v32 .description{color:#64748b}.adp-integrations-v32 code{word-break:break-all}.adp-integration-form-v32 .adp-inline-fields{margin-bottom:12px}.adp-integrations-v32 .widefat td,.adp-integrations-v32 .widefat th{vertical-align:middle}.adp-integrations-v32 small.adp-muted{color:#94a3b8;font-size:11px}

/* AdPulse v3.3 quick local date filters */
.adp-controls .adp-quick-date,
.adp-controls .adp-date-custom{
  min-width: 150px;
}
.adp-controls .adp-date-custom{
  max-width: 155px;
}
.adp-panel-date-filter{
  opacity:.82;
}
.adp-panel-date-filter:before{
  content:'Synchronizacja API';
  display:block;
  font-size:11px;
  color:#6b7280;
  margin-bottom:6px;
}
.adp-controls:after{
  content:'Filtr dat działa lokalnie na już pobranych danych, bez ponownej synchronizacji.';
  display:block;
  width:100%;
  font-size:11px;
  color:#6b7280;
  margin-top:4px;
}

/* AdPulse v3.4 Premium UI + cleaner configuration */
.adp-admin{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#0f172a}
.adp-admin h1{font-size:28px;font-weight:800;letter-spacing:-.035em;margin:22px 0 12px}
.adp-admin .adp-panel{max-width:1220px;background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(248,250,252,.96));border:1px solid rgba(148,163,184,.22);box-shadow:0 24px 70px rgba(15,23,42,.08);border-radius:28px;padding:28px}
.adp-admin-note{margin:14px 0 20px;padding:14px 16px;border-radius:18px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;font-size:13px}
.adp-settings-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 18px;padding:6px;background:rgba(241,245,249,.9);border:1px solid rgba(148,163,184,.2);border-radius:18px;width:max-content;max-width:100%}
.adp-settings-tabs span{padding:9px 13px;border-radius:999px;font-weight:800;font-size:12px;color:#475569}.adp-settings-tabs .is-active{background:#0f172a;color:white;box-shadow:0 8px 18px rgba(15,23,42,.18)}
.adp-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:16px 0 20px}.adp-config-card{background:rgba(255,255,255,.88);border:1px solid rgba(148,163,184,.2);border-radius:24px;padding:20px;box-shadow:0 18px 45px rgba(15,23,42,.055)}
.adp-config-card h3{margin:0 0 5px;font-size:19px;letter-spacing:-.02em}.adp-config-card p{color:#64748b;margin:0 0 12px}.adp-config-card code{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;padding:2px 5px;word-break:break-all}.adp-advanced{margin-top:12px;padding:12px;border:1px dashed #cbd5e1;border-radius:16px;background:#f8fafc}.adp-advanced summary{font-weight:800;cursor:pointer}.adp-actions-row{display:flex;gap:10px;align-items:center;margin-top:16px}.adp-actions-row .button-primary,.adp-admin .button-primary{border-radius:14px!important;padding:8px 16px!important;font-weight:800;background:linear-gradient(135deg,#2563eb,#4f46e5)!important;border-color:transparent!important;box-shadow:0 12px 25px rgba(37,99,235,.22)!important}.adp-admin .button-secondary,.adp-admin .button{border-radius:14px!important;font-weight:700}
.adp-integrations-v32{background:linear-gradient(135deg,#f8fafc,#eef6ff);border:1px solid rgba(148,163,184,.22);box-shadow:0 18px 50px rgba(15,23,42,.055);border-radius:26px}.adp-integrations-v32 h2{font-size:22px;letter-spacing:-.03em}.adp-integrations-v32 .widefat{border:1px solid rgba(148,163,184,.18)!important;border-radius:18px!important;box-shadow:0 10px 28px rgba(15,23,42,.04);overflow:hidden}.adp-integrations-v32 .widefat th{background:#f8fafc;color:#64748b;text-transform:uppercase;font-size:11px;letter-spacing:.05em;padding:13px 12px}.adp-integrations-v32 .widefat td{padding:14px 12px;border-color:#edf2f7}.adp-integrations-v32 .widefat tr:hover td{background:#f8fbff}.adp-badge,.adp-status,.adp-auth-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;font-weight:800;font-size:11px;line-height:1;border:1px solid rgba(148,163,184,.22);background:#f8fafc;color:#334155}.adp-badge-youtube{background:#fff1f2;color:#be123c}.adp-badge-ga4{background:#fff7ed;color:#c2410c}.adp-badge-meta{background:#eff6ff;color:#1d4ed8}.adp-badge-tiktok{background:#f8fafc;color:#0f172a}.adp-status.is-ok{background:#ecfdf5;color:#047857;border-color:#bbf7d0}.adp-auth-pill{background:#eef2ff;color:#3730a3;margin:2px 2px 2px 0}.adp-platform-box{transition:transform .18s ease,box-shadow .18s ease}.adp-platform-box:hover{transform:translateY(-1px);box-shadow:0 18px 42px rgba(15,23,42,.075)}
.adp-wrap{background:radial-gradient(circle at top left,#fff8db 0,#f8fafc 42%,#eef4ff 100%);border:1px solid rgba(255,255,255,.92);box-shadow:0 30px 90px rgba(15,23,42,.09)}.adp-hero{backdrop-filter:blur(16px);box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}.adp-tabs{background:rgba(255,255,255,.72);border:1px solid rgba(148,163,184,.18);border-radius:999px;padding:7px;display:inline-flex}.adp-tab{transition:all .16s ease;border:0;background:transparent;color:#334155}.adp-tab:hover{background:#f1f5f9}.adp-tab.is-active{background:#0f172a;color:white;box-shadow:0 10px 25px rgba(15,23,42,.2)}.adp-card{border:1px solid rgba(148,163,184,.18);box-shadow:0 20px 50px rgba(15,23,42,.06);backdrop-filter:blur(14px)}.adp-card:hover{box-shadow:0 24px 60px rgba(15,23,42,.08)}.adp-card span{font-weight:700}.adp-card strong{color:#020617}.adp-table{border-collapse:separate;border-spacing:0}.adp-table thead th{position:sticky;top:0;background:rgba(248,250,252,.96);backdrop-filter:blur(10px);z-index:1}.adp-table tbody tr{transition:background .14s ease}.adp-table tbody tr:hover td{background:#f8fbff}.adp-table td{text-align:left}.adp-table td:nth-child(n+2),.adp-table th:nth-child(n+2){text-align:right}.adp-table td:first-child,.adp-table th:first-child{text-align:left}.adp-video-cell strong{font-size:15px;line-height:1.25}.adp-controls{align-items:center;background:rgba(248,250,252,.75);border:1px solid rgba(148,163,184,.15);border-radius:20px;padding:10px}.adp-controls input,.adp-controls select{box-shadow:0 8px 18px rgba(15,23,42,.035);font-weight:650}.adp-panel-date-filter{display:none!important}.adp-controls:after{content:'Szybki filtr dat: działa lokalnie na pobranych danych, bez ponownej synchronizacji API.';color:#64748b;font-size:11px;margin-left:4px}.adp-date-custom{display:none}.adp-quick-date{border-color:#93c5fd!important;background:#eff6ff!important;color:#1e3a8a!important;font-weight:800!important}
@media(max-width:980px){.adp-config-grid{grid-template-columns:1fr}.adp-tabs{border-radius:22px}.adp-table{min-width:820px}}@media(max-width:640px){.adp-admin .adp-panel{padding:18px;border-radius:22px}.adp-config-card{padding:16px;border-radius:20px}.adp-settings-tabs{width:100%}.adp-settings-tabs span{flex:1;text-align:center}.adp-controls{grid-template-columns:1fr!important}.adp-tabs{display:flex;width:100%;overflow:auto;flex-wrap:nowrap}.adp-tab{white-space:nowrap}}

/* AdPulse v3.5 UX fixes: left navigation, working tabs, clean configuration */
.adp-shell{display:grid;grid-template-columns:220px minmax(0,1fr);gap:22px;align-items:start;max-width:none;width:calc(100% - 24px);margin-left:0;margin-right:0}
.adp-main-panel{min-width:0}.adp-left-nav{position:sticky;top:20px;background:rgba(255,255,255,.78);border:1px solid rgba(148,163,184,.2);border-radius:24px;padding:14px;box-shadow:0 20px 50px rgba(15,23,42,.07);backdrop-filter:blur(14px)}
.adp-nav-title{font-weight:900;font-size:18px;letter-spacing:-.04em;margin:5px 8px 12px;color:#0f172a}.adp-nav-item{width:100%;border:0;background:transparent;color:#334155;text-align:left;border-radius:16px;padding:12px 13px;margin:3px 0;font-weight:850;cursor:pointer;transition:all .16s ease}.adp-nav-item:hover{background:#f1f5f9;transform:translateX(2px)}.adp-nav-item.is-active{background:#0f172a;color:#fff;box-shadow:0 14px 28px rgba(15,23,42,.18)}
.adp-shell>.adp-tabs{display:none!important}.adp-main-panel>.adp-tabs{display:none!important}.adp-wrap .adp-section{animation:adpFade .18s ease}@keyframes adpFade{from{opacity:.6;transform:translateY(4px)}to{opacity:1;transform:none}}
.adp-config-grid{display:block!important}.adp-config-card[data-adp-config-panel]{display:none}.adp-config-card[data-adp-config-panel].is-active{display:block}.adp-config-tabs button{border:0;background:transparent;border-radius:999px;padding:10px 14px;font-weight:900;color:#475569;cursor:pointer}.adp-config-tabs button.is-active{background:#0f172a;color:#fff;box-shadow:0 8px 18px rgba(15,23,42,.18)}
.adp-ga-global-filter{grid-template-columns:220px 170px 170px 1fr!important;margin-bottom:16px}.adp-ga-global-filter small{align-self:center;color:#64748b;font-size:12px}.adp-controls .adp-quick-date{min-width:170px}.adp-table td:nth-child(n+2),.adp-table th:nth-child(n+2){font-variant-numeric:tabular-nums}.adp-video-cell strong{font-size:15px!important;line-height:1.25!important;letter-spacing:-.02em}.adp-video-cell{min-width:280px}.adp-table th{white-space:nowrap}.adp-table td{font-size:13px}.adp-table .adp-muted{display:block;margin-top:4px;margin-left:0;color:#64748b}
@media(max-width:980px){.adp-shell{grid-template-columns:1fr}.adp-left-nav{position:relative;top:auto;display:flex;overflow:auto;gap:6px;border-radius:20px}.adp-nav-title{display:none}.adp-nav-item{white-space:nowrap;width:auto;text-align:center}.adp-ga-global-filter{grid-template-columns:1fr!important}}

/* AdPulse v3.6 alignment + tab names */
.adp-wrap.adp-shell{margin-left:0!important;margin-right:0!important;max-width:none!important;width:calc(100% - 24px)!important;}
.adp-main-panel{max-width:none!important;width:100%!important;}
.adp-left-nav{width:220px;}
.adp-nav-item{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.adp-ga-controls{grid-template-columns:1fr 190px 170px 155px 155px!important;}
@media(max-width:1100px){.adp-ga-controls{grid-template-columns:1fr!important}.adp-wrap.adp-shell{width:auto!important}}

/* AdPulse v3.7 layout polish */
.adp-wrap.adp-shell{width:calc(100% - 48px)!important;margin:20px 24px!important;box-sizing:border-box;}
.adp-main-panel{padding-right:24px;box-sizing:border-box;}
.adp-left-nav{margin-left:0;}
.adp-table th:nth-child(n+2),.adp-table td:nth-child(n+2){text-align:right;}
.adp-table th:first-child,.adp-table td:first-child{text-align:left;}
@media(max-width:980px){.adp-wrap.adp-shell{width:auto!important;margin:16px!important}.adp-main-panel{padding-right:0}}

/* AdPulse v3.8 hard layout fix */
.adp-wrap.adp-shell{
  width:calc(100% - 72px)!important;
  margin:24px 36px!important;
  grid-template-columns:240px minmax(0,1fr)!important;
  column-gap:36px!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
.adp-left-nav{width:240px!important;box-sizing:border-box!important;z-index:3;}
.adp-main-panel{min-width:0!important;padding-left:6px!important;padding-right:28px!important;box-sizing:border-box!important;overflow:hidden!important;}
.adp-hero,.adp-main-panel>.adp-grid,.adp-main-panel>.adp-card,.adp-section>.adp-card{box-sizing:border-box;}
.adp-table-card{overflow:hidden;}
.adp-table-wrap{overflow-x:auto!important;}
.adp-table td,.adp-table th{vertical-align:middle;}
.adp-table .adp-page-cell strong,.adp-video-cell strong{font-size:16px!important;line-height:1.25!important;}
@media(max-width:980px){
  .adp-wrap.adp-shell{width:auto!important;margin:16px!important;grid-template-columns:1fr!important;column-gap:0!important;}
  .adp-left-nav{width:auto!important;}
  .adp-main-panel{padding-left:0!important;padding-right:0!important;}
}

/* v4.0 background sync status */
.adp-sync-status{margin:18px 0;padding:18px 20px;border-radius:24px;background:rgba(255,255,255,.88);border:1px solid rgba(15,23,42,.08);box-shadow:0 18px 50px rgba(15,23,42,.08)}
.adp-sync-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;margin-top:12px}
.adp-sync-item{padding:14px 16px;border-radius:18px;background:#f8fafc;border:1px solid #e5e7eb;color:#0f172a}
.adp-sync-item span{display:inline-block;margin-top:6px;padding:4px 9px;border-radius:999px;font-size:12px;background:#e5e7eb;color:#334155}
.adp-sync-item small{display:block;margin-top:8px;color:#64748b;line-height:1.35}
.adp-sync-running span{background:#dbeafe;color:#1d4ed8}.adp-sync-done span{background:#dcfce7;color:#166534}.adp-sync-error span{background:#fee2e2;color:#991b1b}
@media(max-width:900px){.adp-sync-grid{grid-template-columns:1fr 1fr}}@media(max-width:560px){.adp-sync-grid{grid-template-columns:1fr}}
/* v4.1 sync progress */
.adp-sync-progress-panel{overflow:hidden}
.adp-sync-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.adp-sync-head h2{margin:0 0 4px;font-size:20px;letter-spacing:-.02em;color:#0f172a}
.adp-sync-head p{margin:0;color:#64748b;font-size:14px}
.adp-sync-head strong{font-size:34px;line-height:1;color:#0f172a;letter-spacing:-.04em}
.adp-progress{height:12px;border-radius:999px;background:#eaf0fb;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(15,23,42,.04);margin:10px 0 10px}
.adp-progress span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2563eb,#60a5fa);box-shadow:0 8px 20px rgba(37,99,235,.28);transition:width .45s ease}
.adp-progress-meta{margin:0 0 12px;color:#64748b;font-size:13px}
.adp-sync-status .adp-sync-item{transition:transform .2s ease, box-shadow .2s ease}
.adp-sync-status .adp-sync-item:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(15,23,42,.08)}

/* v4.3: named multi-account tabs in the left dashboard navigation */
.adp-nav-divider{margin:14px 10px 6px;color:#64748b;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.adp-nav-account{display:flex!important;flex-direction:column;align-items:flex-start!important;gap:2px;line-height:1.2}
.adp-nav-account small{font-size:10px;color:#64748b;font-weight:700;opacity:.8}
.adp-nav-account.is-active small{color:#dbeafe;opacity:1}
.adp-account-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.adp-account-header h2{margin:3px 0 4px;font-size:26px;line-height:1.1}
.adp-account-header p{margin:0;color:#64748b}
.adp-eyebrow{display:inline-flex;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#2563eb;background:#eff6ff;border:1px solid #bfdbfe;border-radius:999px;padding:5px 9px}
.adp-empty{padding:28px!important;text-align:left;color:#475569}
.adp-empty h3{margin:0 0 8px;font-size:20px;color:#0f172a}

/* AdPulse v4.6 stable sync, notes and grouped navigation */
.adp-sync-console{margin-top:16px;background:#0f172a;color:#dbeafe;border-radius:18px;padding:14px 16px;border:1px solid rgba(255,255,255,.08);box-shadow:0 16px 40px rgba(15,23,42,.18)}
.adp-sync-console strong{display:block;margin-bottom:8px;color:#fff;font-size:13px;letter-spacing:.02em}.adp-sync-console pre{margin:0;max-height:180px;overflow:auto;white-space:pre-wrap;font-size:12px;line-height:1.55;color:#cbd5e1}.adp-sync-help{font-size:12px;color:#64748b;margin:12px 0 0}.adp-sync-idle span{background:#f1f5f9;color:#64748b}.adp-nav-divider{margin-top:16px!important;border-top:1px solid rgba(148,163,184,.16);padding-top:12px}.adp-nav-divider:first-of-type{border-top:0}.adp-nav-account small{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.adp-left-nav{max-height:calc(100vh - 40px);overflow:auto}.adp-sync-progress-panel .adp-progress span{min-width:0;transition:width .24s linear}.adp-sync-progress-panel .adp-sync-head strong{min-width:78px;text-align:right}

/* AdPulse v5.2 Meta endpoint/cache fix */
.adp-tiktok-head{background:linear-gradient(135deg,#0f172a,#111827 55%,#0ea5e9);color:#fff;border-radius:24px;padding:22px;margin-bottom:16px;box-shadow:0 18px 40px rgba(15,23,42,.22)}
.adp-tiktok-head p,.adp-tiktok-head small{color:#dbeafe;margin:0}.adp-tiktok-head h2{margin:4px 0 5px;color:#fff}.adp-table-card h3{letter-spacing:-.02em}.adp-social-head small{max-width:760px;display:block}.adp-side .adp-card p{line-height:1.55}.adp-table .adp-muted{font-size:11px;color:#64748b}

/* v5.3.2 GA4 hourly + Facebook debug */
.adp-hour-list{display:grid;gap:10px;margin-top:8px}.adp-hour-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid rgba(15,23,42,.08);border-radius:16px;background:linear-gradient(180deg,#fff,rgba(248,250,252,.8));box-shadow:0 8px 24px rgba(15,23,42,.05)}.adp-hour-row strong{font-size:16px}.adp-hour-row span{color:#64748b}.adp-fb-debug{margin:14px 0}.adp-fb-debug summary{cursor:pointer}.adp-fb-debug pre{max-height:460px;overflow:auto;white-space:pre-wrap;background:#0f172a;color:#e2e8f0;border-radius:16px;padding:16px;font-size:12px;line-height:1.45}


/* v5.3.3 pagination + TikTok premium refresh */
.adp-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 4px 2px;color:#64748b;font-size:13px;flex-wrap:wrap}
.adp-pagination button,.adp-pagination select{border:1px solid rgba(15,23,42,.10);background:#fff;border-radius:999px;padding:8px 12px;font-weight:700;color:#0f172a;box-shadow:0 8px 20px rgba(15,23,42,.05)}
.adp-pagination button{cursor:pointer}.adp-pagination button:disabled{opacity:.45;cursor:not-allowed}.adp-pagination span{font-weight:700;color:#475569;margin-right:4px}.adp-pagination select{padding-right:28px}
.adp-tiktok-head{background:linear-gradient(135deg,#ffffff 0%,#f8fafc 48%,#eef6ff 100%)!important;color:#0f172a!important;border:1px solid rgba(15,23,42,.08);box-shadow:0 22px 55px rgba(15,23,42,.08)!important;position:relative;overflow:hidden}
.adp-tiktok-head:before{content:'';position:absolute;right:-50px;top:-70px;width:220px;height:220px;border-radius:999px;background:radial-gradient(circle,rgba(14,165,233,.25),rgba(99,102,241,.04) 65%,transparent 70%)}
.adp-tiktok-head p{display:inline-flex;align-items:center;gap:7px;color:#2563eb!important;background:#eff6ff;border:1px solid #bfdbfe;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.adp-tiktok-head p:before{content:'♪';font-size:13px}.adp-tiktok-head h2{color:#0f172a!important}.adp-tiktok-head small{color:#64748b!important;max-width:760px;display:block}.adp-filterbar{display:flex;gap:10px;align-items:center;margin:12px 0 14px;flex-wrap:wrap}.adp-filterbar input,.adp-filterbar select{min-height:42px;border-radius:14px;border:1px solid rgba(15,23,42,.10);background:#fff;padding:0 13px;box-shadow:0 8px 22px rgba(15,23,42,.04)}

/* AdPulse v5.4 stable UX polish */
.adp-overview-intro{margin-bottom:16px;background:linear-gradient(135deg,#fff,#f8fbff)}
.adp-overview-intro h2{margin:6px 0 8px;font-size:24px;letter-spacing:-.03em}.adp-overview-intro p{margin:0;color:#64748b;max-width:860px}.adp-eyebrow{display:inline-flex!important;width:auto;margin:0!important;padding:6px 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8!important;border:1px solid #bfdbfe;font-size:11px!important;text-transform:uppercase;letter-spacing:.08em;font-weight:900}.adp-overview-kpis .adp-card small{display:block;margin-top:8px;color:#64748b;font-weight:700}.adp-overview-status{grid-template-columns:repeat(4,minmax(0,1fr))}.adp-overview-status .adp-alert{grid-column:span 2}
.adp-date-custom{min-height:48px!important;border:1px solid #bfdbfe!important;border-radius:14px!important;background:#fff!important;color:#0f172a!important;font-weight:800!important;padding:0 12px!important;box-shadow:0 10px 24px rgba(37,99,235,.06)!important}.adp-controls .adp-date-custom,.adp-filterbar .adp-date-custom{display:none}.adp-quick-date option[value="custom"]{font-weight:900}.adp-controls:has(.adp-date-custom[style*="inline"]),.adp-controls:has(.adp-date-custom[style*="flex"]){grid-template-columns:1fr 180px 180px 180px!important}.adp-ga-global-filter:has(.adp-date-custom[style*="inline"]),.adp-ga-global-filter:has(.adp-date-custom[style*="flex"]){grid-template-columns:220px 170px 170px 1fr!important}.adp-ga-controls:has(.adp-date-custom[style*="inline"]),.adp-ga-controls:has(.adp-date-custom[style*="flex"]){grid-template-columns:1fr 200px 180px 160px 160px!important}
.adp-ga-time-grid{grid-template-columns:360px minmax(0,1fr);margin-bottom:16px}.adp-hour-row{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid #eef2f7}.adp-hour-row:last-child{border-bottom:0}.adp-hour-row strong{font-size:14px!important}.adp-hour-row span{color:#64748b;font-weight:700}.adp-heatmap{overflow:auto;padding:4px 0 2px}.adp-heat-head,.adp-heat-row{display:grid;grid-template-columns:38px repeat(7,1fr);gap:4px;align-items:center;min-width:390px}.adp-heat-head b{font-size:11px;color:#64748b;text-align:center}.adp-heat-row{margin-top:4px}.adp-heat-row em{font-style:normal;font-size:10px;color:#94a3b8;text-align:right;padding-right:4px}.adp-heat-row span{height:14px;border-radius:4px;background:#e2e8f0;border:1px solid rgba(255,255,255,.75)}.adp-heat-row span.lvl1{background:#dbeafe}.adp-heat-row span.lvl2{background:#bfdbfe}.adp-heat-row span.lvl3{background:#93c5fd}.adp-heat-row span.lvl4{background:#60a5fa}.adp-heat-row span.lvl5{background:#2563eb}.adp-best-days{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}.adp-best-days h4{grid-column:1/-1;margin:0 0 2px;font-size:13px}.adp-best-days p{margin:0;padding:10px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0}.adp-best-days strong,.adp-best-days span{display:block}.adp-best-days span{font-size:12px;color:#64748b;margin-top:3px}
.adp-table .adp-tiktok-cell{display:flex!important;align-items:center;gap:12px;min-width:360px}.adp-table .adp-tiktok-cell img{width:72px!important;height:96px!important;object-fit:cover!important;border-radius:12px!important;flex:0 0 72px;background:#e5e7eb}.adp-table .adp-tiktok-cell strong{font-size:14px!important;line-height:1.25!important;letter-spacing:-.01em}.adp-table .adp-tiktok-cell small a{font-size:12px!important}.adp-table[data-adp-table="tiktok"] td{padding:10px!important}.adp-table[data-adp-table="tiktok"] td:nth-child(n+2){font-size:13px;font-weight:700;color:#0f172a}.adp-table[data-adp-table="tiktok"]{min-width:880px}.adp-table[data-adp-table="tiktok"] tr{height:auto!important}
@media(max-width:1050px){.adp-ga-time-grid,.adp-overview-status{grid-template-columns:1fr}.adp-overview-status .adp-alert{grid-column:auto}.adp-best-days{grid-template-columns:1fr}}
/* v5.4.1 GA4 heatmap fix */
.adp-empty-small{padding:16px!important;border:1px dashed rgba(100,116,139,.32);border-radius:16px;background:#f8fafc}
.adp-empty-small h3{font-size:15px;margin:0 0 6px}.adp-empty-small p{margin:0;color:#64748b}.adp-empty-small small{display:block;margin-top:8px;color:#ef4444;word-break:break-word}
