:root {
  --ink: #202124;
  --ink-soft: #3c4043;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-muted: #f8f9fa;
  --line: #dadce0;
  --line-strong: #dadce0;
  --text: #3c4043;
  --muted: #5f6368;
  --accent: #1a73e8;
  --accent-bright: #4285f4;
  --accent-soft: rgba(26, 115, 232, 0.08);
  --accent-deep: #1967d2;
  --warn: #e37400;
  --danger: #d93025;
  --ok: #188038;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
  --shadow-lg: 0 1px 3px rgba(60, 64, 67, 0.2);
  --shadow-card: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  --shadow-hover: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --font: "Inter", "Segoe UI", sans-serif;
  --display: "Inter", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --kpi-label: "Inter", "Segoe UI", sans-serif;
  --kpi-num: "Inter", "Segoe UI", sans-serif;
  /* Dark-luxury card palette (network cards + AdX totals) */
  --lux-bg-0: #080b0d;
  --lux-bg-1: #0d1012;
  --lux-bg-2: #121416;
  --lux-card-0: #191c1f;
  --lux-card-1: #131619;
  --lux-card-2: #101315;
  --lux-border: #2b2f33;
  --lux-text: #f3f3f4;
  --lux-label: #b8bbc1;
  --lux-gold: #d4af37;
  --lux-gold-text: #eac94f;
  --header-h: 64px;
  --gam-card-border: #dadce0;
  --gam-blue: #1a73e8;
  --gam-blue-dark: #1967d2;
  --gold: #d4af37;
  --gold-dark: #b8860b;
  --gold-light: #f6e7a8;
  --gold-ink: #1a1608;
  --gold-ring: rgba(212, 175, 55, 0.28);
  --gold-grad: linear-gradient(180deg, #f6e7a8 0%, #d4af37 100%);
  --gold-glow: 0 0 0 1px rgba(246, 231, 168, 0.45), 0 4px 14px rgba(184, 134, 11, 0.28);
  --premium-revenue: #4285f4;
  --premium-stat: #3c4043;
}

* { box-sizing: border-box; }

html, body {
  margin: 0 !important;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--text) !important;
  background: transparent !important;
  -webkit-font-smoothing: antialiased;
}

body.gam {
  /* Google Ad Manager style page canvas */
  background: #f1f3f4 !important;
  color: var(--text) !important;
}

body.gam::before {
  display: none;
}

.gam-top, .dash-wrap, .login-page .card { position: relative; z-index: 1; }

/* ââ Premium app header ââ */
.gam-top {
  position: sticky;
  top: 0;
  z-index: 40;
  color: #202124;
  background: #ffffff;
  border-bottom: 1px solid #dadce0;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
}
.gam-top::before {
  display: none;
}
.gam-top-inner {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0.85rem 1.35rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px 22px;
}
.gam-top-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}
.gam-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #dadce0;
  border-radius: 10px;
  background: #f8f9fa;
  color: #3c4043;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.gam-menu-toggle:hover {
  background: #e8eaed;
  border-color: #bdc1c6;
}
.gam-menu-toggle-bars,
.gam-menu-toggle-bars::before,
.gam-menu-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.gam-menu-toggle-bars {
  position: relative;
}
.gam-menu-toggle-bars::before,
.gam-menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.gam-menu-toggle-bars::before { top: -6px; }
.gam-menu-toggle-bars::after { top: 6px; }
.gam-top.is-menu-open .gam-menu-toggle-bars {
  background: transparent;
}
.gam-top.is-menu-open .gam-menu-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.gam-top.is-menu-open .gam-menu-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}
.gam-top-panel {
  display: contents;
}
.gam-top-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
.gam-top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.gam-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gam-logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.gam-logo strong {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #202124;
  white-space: nowrap;
  line-height: 1.1;
}
.gam-logo-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a73e8;
  line-height: 1.2;
  opacity: 1;
}
.g-dot {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #1a73e8;
  box-shadow: none;
  position: relative;
}
.g-dot::after {
  content: "Ad";
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.gam-top .status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f8f9fa;
  border: 1px solid #dadce0;
  color: #3c4043;
  white-space: nowrap;
  backdrop-filter: none;
}
.gam-top .status-chip--ok {
  border-color: #ceead6;
  background: #e6f4ea;
  color: #188038;
}
.gam-top .status-chip--ok::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34a853;
  box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.28);
  flex-shrink: 0;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  white-space: nowrap;
}
.status-chip--ok::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34a853;
  box-shadow: none;
  flex-shrink: 0;
}
.gam-top .btn-saas,
.gam-top .btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 8px;
  padding: 0.6rem 1.05rem;
  font: 600 0.84rem var(--font);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  min-height: 40px;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease, color 0.18s ease;
}
.gam-top .btn-saas--primary,
.gam-top .btn-light {
  border: 1px solid transparent;
  background: #1a73e8;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3);
}
.gam-top .btn-saas--primary:hover,
.gam-top .btn-light:hover {
  background: #1765cc;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
  filter: none;
}
.gam-top .btn-saas--ghost {
  border: 1px solid #dadce0;
  background: #ffffff;
  color: #1a73e8;
  box-shadow: none;
}
.gam-top .btn-saas--ghost:hover {
  border-color: #bdc1c6;
  background: #e8f0fe;
  color: #1765cc;
}
.btn-saas,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 4px;
  padding: 0.55rem 0.95rem;
  font: 600 0.82rem var(--font);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  min-height: 38px;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
.btn-saas--primary,
.btn-light {
  border: 1px solid transparent;
  background: var(--gam-blue);
  color: #fff;
  box-shadow: none;
}
.btn-saas--primary:hover,
.btn-light:hover {
  background: var(--gam-blue-dark);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.2);
}
.btn-saas--ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--gam-blue);
  box-shadow: none;
}
.btn-saas--ghost:hover {
  border-color: #d2e3fc;
  background: #e8f0fe;
  color: var(--gam-blue-dark);
}
.btn-saas:active,
.btn-light:active { transform: translateY(1px); }
.btn-saas:disabled,
.btn-light:disabled { opacity: 0.55; cursor: wait; }

/* Layout */
.dash-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@supports (padding: max(0px)) {
  .dash-wrap {
    padding-left: max(var(--space-md), env(safe-area-inset-left));
    padding-right: max(var(--space-md), env(safe-area-inset-right));
    padding-bottom: max(var(--space-xl), calc(var(--space-lg) + env(safe-area-inset-bottom)));
  }
}

/* Shared card shell â golden outer border (Today-button gold) */
.dash-card {
  background: #fff;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--gold-glow);
  overflow: hidden;
}

/* Shared gold control (Today on network cards only â not AdX totals header) */
.date-trigger--gold,
.net-card-date-btn {
  color: var(--gold-ink) !important;
  background: var(--gold-grad) !important;
  border: 1px solid rgba(246, 231, 168, 0.55) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}
.date-trigger--gold:hover,
.net-card-date-btn:hover {
  filter: brightness(1.05);
  background: var(--gold-grad) !important;
  border-color: rgba(246, 231, 168, 0.75) !important;
}
.date-trigger--gold[aria-expanded="true"],
.net-card-date-btn[aria-expanded="true"] {
  box-shadow: 0 0 0 2px rgba(246, 231, 168, 0.5), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Page toolbar â title + date on one row */
.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding: var(--space-md) var(--space-lg);
  animation: rise 0.4s ease both;
}
.page-toolbar-main {
  min-width: 0;
  flex: 1 1 240px;
}
.page-toolbar-main h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
}
.page-toolbar-main p {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
}
.page-toolbar-actions {
  display: flex;
  align-items: flex-end;
  gap: var(--space-md);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.controls-card {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid #e0e0e0;
  box-shadow: var(--shadow-card);
  margin-bottom: 0;
  animation: rise 0.45s ease both;
  overflow: visible;
  position: relative;
  z-index: 50;
}
.controls-card--single { grid-template-columns: minmax(240px, 380px); }
.controls-card--row { grid-template-columns: minmax(240px, 380px); }

.net-picker {
  margin: 0;
}
.net-picker > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  padding: 14px 20px;
  font: 500 0.9375rem/1.3 var(--font);
  color: var(--ink);
  user-select: none;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
}
.net-picker-summary-title {
  font: 500 0.9375rem/1.3 var(--font);
  color: inherit;
  white-space: nowrap;
}
.net-picker > summary::-webkit-details-marker { display: none; }
.net-picker > summary::after {
  content: "â¾";
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.net-picker[open] > summary::after { content: "â´"; }
.net-picker-count {
  font: 700 0.72rem var(--mono);
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(26, 115, 232, 0.22);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
}
.net-picker-summary-date {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.net-picker-summary-date .date-trigger--sm {
  min-width: 0;
  width: auto;
  max-width: 150px;
  padding: 6px 10px;
  font: 500 0.78rem var(--font);
  min-height: 32px;
  gap: 0.35rem;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}
.net-picker > summary .load-progress {
  margin-left: 0.15rem;
}
.net-picker-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.net-picker-toolbar button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 4px;
  padding: 8px 14px;
  font: 500 0.8125rem var(--font);
  cursor: pointer;
  min-height: 36px;
  white-space: nowrap;
}
.net-picker-toolbar button:hover {
  border-color: rgba(26, 115, 232, 0.45);
  background: #f8f9fa;
}
.net-picker-apply {
  margin-left: auto;
  background: var(--gam-blue) !important;
  color: #fff !important;
  border-color: transparent !important;
  min-width: 88px;
  font-weight: 500;
}
.net-picker-list {
  max-height: 280px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.65rem 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.25rem;
}
.net-pick-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  min-width: 0;
}
.net-pick-item:hover { background: rgba(26, 115, 232, 0.06); }
.net-pick-item input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.net-pick-name {
  font: 600 0.85rem/1.25 var(--font);
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.net-pick-code {
  font: 600 0.68rem var(--mono);
  color: var(--muted);
  white-space: nowrap;
}

.load-progress {
  align-self: center;
  font: 500 0.75rem var(--mono);
  color: var(--gam-blue);
  background: #e8f0fe;
  border: 1px solid #d2e3fc;
  border-radius: 999px;
  padding: 6px 12px;
}

.net-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Connected Sites â compact centered pill + blinking green border */
.sites-section-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: fit-content;
  max-width: calc(100% - 16px);
  gap: 10px;
  margin: 16px auto 10px;
  padding: 8px 18px 8px 10px;
  min-width: 0;
  text-align: center;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1.5px solid #ceead6;
  background: #ffffff;
  animation: sites-border-blink 1.8s ease-in-out infinite;
}
@keyframes sites-border-blink {
  0%, 100% {
    border-color: #ceead6;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
  }
  50% {
    border-color: #1e8e3e;
    box-shadow:
      0 0 0 3px rgba(30, 142, 62, 0.15),
      0 1px 2px rgba(60, 64, 67, 0.15);
  }
}
.sites-section-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: none;
  background: #e6f4ea;
  box-shadow: none;
  animation: sites-icon-blink 1.8s ease-in-out infinite;
}
@keyframes sites-icon-blink {
  0%, 100% {
    background: #e6f4ea;
  }
  50% {
    background: #ceead6;
  }
}
.sites-section-icon svg {
  width: 16px;
  height: 16px;
  color: #1e8e3e;
  filter: none;
}
.sites-section-title {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #202124;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .sites-section-head {
    margin: 12px auto 8px;
    gap: 8px;
    padding: 7px 14px 7px 8px;
  }
  .sites-section-icon {
    width: 28px;
    height: 28px;
  }
  .sites-section-icon svg {
    width: 14px;
    height: 14px;
  }
  .sites-section-title {
    font-size: 0.95rem;
  }
}

/* ââ Network report card ââ */
.net-card {
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  animation: rise 0.45s ease both;
  overflow: hidden;
}
.net-grid > .net-card {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.net-grid > .net-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(26, 115, 232, 0.3),
    0 4px 12px rgba(60, 64, 67, 0.22);
  filter: none;
}
.net-grid > .net-card.has-error {
  border-color: #d93025;
  box-shadow:
    0 0 0 1px rgba(217, 48, 37, 0.25),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.net-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #dadce0;
  text-align: left;
}
/* Web/globe logo icon, left of every card title */
.net-card-logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e8f0fe;
  border: 1px solid #d2e3fc;
  box-shadow: none;
}
.net-card-logo svg {
  width: 18px;
  height: 18px;
  color: #1a73e8;
  filter: none;
}
.net-card-head {
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}
.net-card-body {
  padding: 16px 20px;
  background: #ffffff;
}
.net-card-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0;
  color: #202124;
  line-height: 1.35;
  text-align: left;
}
.net-card-date {
  margin: 2px 0 0;
  color: #5f6368;
  font-size: 0.8125rem;
  font-weight: 700;
  opacity: 1;
  text-align: left;
}
/* Today button â same length as Policy center */
.net-card-date-btn {
  flex-shrink: 0;
  margin-left: auto;
  min-width: 148px;
  max-width: none;
  width: 148px;
  min-height: 38px;
  padding: 8px 14px;
  font: 600 0.8125rem var(--font);
  border-radius: 8px;
  cursor: pointer;
  justify-content: space-between;
}
.net-card-date-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: none;
  flex: 1;
  text-align: left;
}

.net-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-top: 1px solid #dadce0;
  background: #ffffff;
}
/* Payments (left) + Policy center (right) */
.net-card-foot .policy-btn--sm {
  margin: 0;
  min-width: 148px;
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid #c99c27;
  border-radius: 8px;
  color: var(--lux-gold-text);
  background: linear-gradient(135deg, rgba(53, 45, 25, 0.82), rgba(28, 28, 25, 0.94));
  font: 600 0.8125rem var(--font);
  box-shadow: inset 0 0 12px rgba(220, 178, 52, 0.05), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.net-card-foot .policy-btn--sm:hover {
  filter: none;
  border-color: #f0cb4d;
  transform: translateY(-1px);
}

.net-card.is-loading { opacity: 0.92; }

.net-card-banner {
  margin: 0;
  padding: 8px 20px;
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  border: none;
  border-bottom: 1px solid var(--line);
  background: #f8f9fa;
  color: var(--muted);
  line-height: 1.4;
}
.net-card-banner.is-ok {
  background: #e6f4ea;
  color: var(--ok);
  border-bottom-color: #ceead6;
}
.net-card-banner.is-err {
  background: #fce8e6;
  color: var(--danger);
  border-bottom-color: #f6aea9;
}
.net-card-banner.is-warn {
  background: #fef7e0;
  color: #b06000;
  border-bottom-color: #feefc3;
}
.net-card-banner.is-muted {
  background: #f8f9fa;
  color: var(--muted);
  border-bottom-color: var(--line);
}
.net-card.is-empty {
  opacity: 0.94;
}
.net-card.is-no-traffic {
  display: none !important;
}

/* ââ Low-activity sheet (<1k imps) ââ */
/* Metrics strip â same glow boxes as AdX totals */
.net-card .kpi-row {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.net-card .kpi {
  --kpi-accent: #5f6368;
  --kpi-accent-rgb: 95, 99, 104;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  min-height: 100px;
  min-width: 0;
  padding: 10px 10px 7px;
  margin: 0;
  border-radius: 12px;
  border: 1px solid #dadce0;
  animation: none;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  background: #f8f9fa;
  box-shadow: none;
}
.net-card .kpi::after {
  display: none !important;
}
.net-card .kpi::before {
  content: "";
  display: block !important;
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: inherit;
  pointer-events: none;
  background: var(--kpi-accent);
  opacity: 0.9;
  mask-image: none;
  -webkit-mask-image: none;
  box-shadow: none;
}
.net-card .kpi--impressions {
  --kpi-accent: #1a73e8;
  --kpi-accent-rgb: 26, 115, 232;
}
.net-card .kpi--unfilled {
  --kpi-accent: #e37400;
  --kpi-accent-rgb: 227, 116, 0;
}
.net-card .kpi--revenue {
  --kpi-accent: #4285f4;
  --kpi-accent-rgb: 66, 133, 244;
}
.net-card .kpi--ecpm {
  --kpi-accent: #188038;
  --kpi-accent-rgb: 24, 128, 56;
}
.net-card .kpi--ctr {
  --kpi-accent: #9334e6;
  --kpi-accent-rgb: 147, 52, 230;
}
.net-card .kpi--viewability {
  --kpi-accent: #1967d2;
  --kpi-accent-rgb: 25, 103, 210;
}
.net-card .kpi .kpi-icon-circle {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: none;
  background: rgba(var(--kpi-accent-rgb), 0.12);
  box-shadow: none;
  margin-bottom: 1px;
}
.net-card .kpi .kpi-icon-circle svg {
  width: 12px;
  height: 12px;
  color: var(--kpi-accent);
  stroke-width: 2;
}
.net-card .kpi span.kpi-label {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #80868b;
  font-family: var(--font);
  font-size: 0.5625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.25;
  border-radius: 0;
  background: none;
  box-shadow: none;
  opacity: 0.85;
}
.net-card .kpi strong {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin: 0;
  font-family: var(--font);
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #202124;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
  text-shadow: none;
}
.net-card .kpi .kpi-sub,
.net-card .kpi em.kpi-sub {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.5625rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.4;
  align-self: flex-start;
  color: #e37400;
  background: #fef7e0;
  border: 1px solid #feefc3;
  box-shadow: none;
}
.net-card .kpi .kpi-spark {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 16px;
  margin-top: auto;
  overflow: visible;
}
.net-card .kpi .kpi-spark path {
  fill: none;
  stroke: var(--kpi-accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
  opacity: 0.85;
}
.net-card .kpi.kpi--yesterday {
  --kpi-accent: #188038;
  --kpi-accent-rgb: 24, 128, 56;
}
.net-card .kpi.kpi--unfilled-alert {
  --kpi-accent: #d32f2f;
  --kpi-accent-rgb: 211, 47, 47;
  border-color: #dadce0 !important;
  background: #f8f9fa !important;
  box-shadow: none !important;
}
.net-card .kpi.kpi--unfilled-alert .kpi-icon-circle {
  background: rgba(211, 47, 47, 0.16);
}
.net-card .kpi.kpi--unfilled-alert .kpi-label {
  color: #d32f2f;
  opacity: 1;
}
.net-card .kpi.kpi--unfilled-alert strong {
  color: #c62828;
}
.net-card .kpi.kpi--unfilled-alert .kpi-sub,
.net-card .kpi.kpi--unfilled-alert em.kpi-sub {
  background: #ffebee;
  color: #c62828;
  border-color: #ef9a9a;
}
.net-card .kpi--unfilled:not(.kpi--unfilled-alert) .kpi-sub,
.net-card .kpi--unfilled:not(.kpi--unfilled-alert) em.kpi-sub {
  color: #e37400;
  background: #fef7e0;
  border-color: #feefc3;
}
.net-card .kpi--unfilled:not(.kpi--unfilled-alert) strong {
  color: #202124;
}
.net-card .kpi--unfilled:not(.kpi--unfilled-alert) .kpi-label {
  color: #80868b;
  opacity: 0.85;
}

.policy-btn--sm {
  margin: 0;
  min-width: 148px;
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid #c99c27;
  border-radius: 8px;
  color: var(--lux-gold-text);
  background: linear-gradient(135deg, rgba(53, 45, 25, 0.82), rgba(28, 28, 25, 0.94));
  font: 600 0.8125rem var(--font);
  box-shadow: inset 0 0 12px rgba(220, 178, 52, 0.05), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.net-card-foot .policy-btn--sm:hover {
  filter: none;
  border-color: #f0cb4d;
  transform: translateY(-1px);
}

.net-card.is-loading { opacity: 0.92; }

.net-card-banner {
  margin: 0;
  padding: 8px 20px;
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  border: none;
  border-bottom: 1px solid var(--line);
  background: #f8f9fa;
  color: var(--muted);
  line-height: 1.4;
}
.net-card-banner.is-ok {
  background: #e6f4ea;
  color: var(--ok);
  border-bottom-color: #ceead6;
}
.net-card-banner.is-err {
  background: #fce8e6;
  color: var(--danger);
  border-bottom-color: #f6aea9;
}
.net-card-banner.is-warn {
  background: #fef7e0;
  color: #b06000;
  border-bottom-color: #feefc3;
}
.net-card-banner.is-muted {
  background: #f8f9fa;
  color: var(--muted);
  border-bottom-color: var(--line);
}
.net-card.is-empty {
  opacity: 0.94;
}
.net-card.is-no-traffic {
  display: none !important;
}

/* ââ Low-activity sheet (<1k imps) ââ */
.low-sheet {
  margin-top: 4px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6e0f8;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15), 0 1px 3px 1px rgba(60, 64, 67, 0.08);
}
.low-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 22px;
  background: #ffffff;
  border-bottom: 1px solid #f1f3f4;
}
.low-sheet-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.low-sheet-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #f3e8fd;
  color: #9334e6;
}
.low-sheet-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.1;
}
.low-sheet-head-copy {
  min-width: 0;
}
.low-sheet-kicker {
  margin: 0 0 2px;
  font: 800 0.65rem/1.2 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9334e6;
  opacity: 1;
}
.low-sheet-title {
  margin: 0;
  font: 800 1.05rem/1.3 var(--display);
  color: #202124;
}
.low-sheet-desc {
  margin: 3px 0 0;
  font: 500 0.78rem/1.35 var(--font);
  color: #5f6368;
}
.low-sheet-count {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid #dadce0;
  background: #f8f9fa;
}
.low-sheet-count-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f3e8fd;
  color: #9334e6;
}
.low-sheet-count-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.1;
}
.low-sheet-count-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.low-sheet-count-copy strong {
  font: 700 0.95rem var(--font);
  color: #202124;
  line-height: 1.2;
}
.low-sheet-count-copy em {
  font: 500 0.72rem var(--font);
  font-style: normal;
  color: #5f6368;
  line-height: 1.2;
  white-space: nowrap;
}
.low-sheet-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.low-sheet-table {
  width: 100%;
  border-collapse: collapse;
  font: 400 0.8125rem/1.35 var(--font);
  color: var(--ink);
}
.low-sheet-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  white-space: nowrap;
  padding: 10px 12px;
  font: 700 0.65rem/1.2 var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9334e6;
  background: #faf7fe;
  border-bottom: 1px solid #ecdffa;
}
.low-sheet-table thead th i,
.low-sheet-table thead th svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.3;
  margin-right: 5px;
  vertical-align: -2px;
  color: #9334e6;
}
.low-sheet-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f3f4;
  white-space: nowrap;
  vertical-align: middle;
  color: #3c4043;
}
.low-sheet-table tbody tr:nth-child(even) td {
  background: #fbfaff;
}
.low-sheet-table tbody tr:hover td {
  background: #f3e8fd;
}
.low-sheet-site {
  font-weight: 700;
  color: #202124;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.low-sheet-site-icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.1;
  margin-right: 6px;
  vertical-align: -2px;
  color: #9aa0a6;
}
.low-sheet-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 700 0.72rem/1.2 var(--font);
  color: #9334e6;
  background: #f3e8fd;
  border: 1px solid #e6d2fb;
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
}
.low-sheet-date svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}
.low-sheet-rev {
  font-weight: 700;
  color: #202124;
}
.low-sheet-sub {
  display: inline-block;
  margin-left: 0.25rem;
  font: 600 0.68rem/1 var(--font);
  color: #e37400;
  background: #fef7e0;
  border-radius: 999px;
  padding: 0.15rem 0.4rem;
}

.rev-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}
.rev-total-card {
  border: 1px solid var(--gam-card-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
}
.rev-total-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gam-blue);
}
.rev-total-card--yesterday::before {
  background: #5f6368;
}
.rev-total-card span {
  font-family: var(--kpi-label);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}
.rev-total-card--yesterday span {
  color: #2563eb;
}
.rev-total-card strong {
  font-family: var(--kpi-num);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.1;
}
.rev-total-card em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
@media (max-width: 720px) {
  .rev-totals {
    grid-template-columns: 1fr;
  }
  .rev-total-card {
    text-align: center;
    align-items: center;
  }
}

/* Premium totals bar â Google Ad Manager style white card */
.premium-bar {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: #ffffff;
  animation: rise 0.45s ease both;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.dash-card.premium-bar {
  border: 1px solid #dadce0;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
}
.premium-bar-glow {
  display: none;
}
.premium-bar::after {
  display: none;
}
.premium-bar-decor {
  display: none;
}
/* AdX totals top bar â Publisher Overview style (compact for dashboard) */
.premium-bar-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  margin: 0;
  min-height: 108px;
  padding: 18px 24px;
  overflow: hidden;
  box-sizing: border-box;
  border-bottom: none;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  border-top: 0;
  outline: none;
}
.premium-bar-head::after {
  display: none;
}
.premium-head-waves {
  display: none;
}
.premium-wave-dot {
  display: none;
}
.premium-bar-head-left,
.premium-bar-head-right {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-width: 0;
}
.premium-bar-head-left {
  flex: 1 1 auto;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}
.premium-pub-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #e8f0fe;
  border: 1px solid #d2e3fc;
  box-shadow: none;
}
.premium-pub-icon svg {
  width: 34px;
  height: 34px;
  color: #1a73e8;
  stroke-width: 1.8;
}
.premium-head-divider {
  flex-shrink: 0;
  width: 1px;
  height: 58px;
  background: #dadce0;
}
.premium-bar-copy {
  min-width: 0;
}
.premium-bar-head-right {
  flex-shrink: 0;
  margin-left: auto;
}
.premium-bar-kicker {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font);
  line-height: 1.2;
  text-transform: none;
  text-shadow: none;
}
.premium-bar-title {
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #202124;
  white-space: nowrap;
}
.premium-bar-stars {
  font-size: 0.72rem;
  color: #f9ab00;
  letter-spacing: 1px;
  line-height: 1;
  text-shadow: none;
  white-space: nowrap;
}
.premium-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  margin-left: 6px;
  border-radius: 999px;
  background: #f1f3f4;
  border: 1px solid #dadce0;
  box-shadow: none;
  white-space: nowrap;
}
.premium-active-badge[hidden] {
  display: none !important;
}
.premium-active-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #1e8e3e;
  box-shadow: none;
}
.premium-active-badge #loadProgress {
  font-size: 0.875rem;
  font-weight: 650;
  color: #3c4043;
  letter-spacing: -0.01em;
}
.premium-bar-range-row {
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #5f6368;
  line-height: 1;
}
.premium-range-cal,
.premium-range-cal svg {
  width: 18px;
  height: 18px;
  color: #5f6368;
  stroke-width: 2;
  flex-shrink: 0;
}
.premium-bar-date {
  display: block;
  width: 210px;
  max-width: 100%;
}
.premium-date-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  justify-content: flex-start !important;
  position: relative;
  z-index: 3;
  border-radius: 14px !important;
  font: 700 1rem/1 var(--font) !important;
  color: #202124 !important;
  background: #ffffff !important;
  border: 1px solid #dadce0 !important;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15) !important;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease, box-shadow 220ms ease !important;
  filter: none !important;
}
.premium-date-btn:hover {
  border-color: #bdc1c6 !important;
  background: #f8f9fa !important;
  transform: translateY(-1px);
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.25) !important;
  filter: none !important;
}
.premium-date-btn:focus,
.premium-date-btn:focus-visible,
.premium-date-btn[aria-expanded="true"] {
  outline: 2px solid rgba(26, 115, 232, 0.28) !important;
  outline-offset: 2px;
}
.premium-date-btn .premium-date-cal,
.premium-date-btn .premium-date-cal svg {
  width: 22px !important;
  height: 22px !important;
  flex-shrink: 0;
  color: #1a73e8;
  stroke-width: 2.1;
}
.premium-date-btn #dateTriggerLabel {
  flex: 1 1 auto;
  text-align: left;
  color: #202124;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
}
.premium-date-btn .premium-date-chev {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #5f6368;
  margin-left: auto;
}
.premium-date-btn .premium-date-chev path {
  stroke-width: 3;
}
.net-card-date-btn {
  width: 148px !important;
  min-width: 148px !important;
  max-width: none !important;
  min-height: 38px !important;
  padding: 8px 14px !important;
  font: 600 0.8125rem var(--font) !important;
  border-radius: 8px !important;
  gap: 0.45rem !important;
  justify-content: space-between !important;
}

.premium-bar-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  align-items: stretch;
  background: #ffffff;
}
.premium-stat {
  --premium-accent: #94a3b8;
  --premium-accent-rgb: 148, 163, 184;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  min-height: 142px;
  padding: 16px 15px 12px;
  border-radius: 16px;
  border: 1px solid #dadce0;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  background: #f8f9fa;
  box-shadow: none;
}
.premium-stat::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: inherit;
  pointer-events: none;
  background: var(--premium-accent);
  opacity: 0.9;
  mask-image: none;
  -webkit-mask-image: none;
}
.premium-stat--imps {
  --premium-accent: #1a73e8;
  --premium-accent-rgb: 26, 115, 232;
}
.premium-stat--unf {
  --premium-accent: #e53935;
  --premium-accent-rgb: 229, 57, 53;
}
.premium-stat--rev {
  --premium-accent: #4285f4;
  --premium-accent-rgb: 66, 133, 244;
}
.premium-stat--ecpm {
  --premium-accent: #188038;
  --premium-accent-rgb: 24, 128, 56;
}
.premium-stat--ctr {
  --premium-accent: #9334e6;
  --premium-accent-rgb: 147, 52, 230;
}
.premium-stat--view {
  --premium-accent: #1967d2;
  --premium-accent-rgb: 25, 103, 210;
}
.premium-icon-circle {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: none;
  background: rgba(var(--premium-accent-rgb), 0.12);
  box-shadow: none;
  margin-bottom: 2px;
}
.premium-icon-circle svg {
  width: 16px;
  height: 16px;
  color: var(--premium-accent);
  stroke-width: 2;
}
.premium-label {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
  color: #80868b;
  background: none;
  box-shadow: none;
  border-radius: 0;
  opacity: 0.85;
}
.premium-stat strong {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: #202124;
  text-shadow: none;
}
.premium-stat em {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: auto;
  max-width: 100%;
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  padding: 3px 9px;
  border-radius: 999px;
}
.premium-stat--unf em {
  color: #c62828;
  background: #ffebee;
  border: 1px solid #ef9a9a;
  box-shadow: none;
}
.premium-stat--unf strong {
  color: #c62828;
}
.premium-stat--unf .premium-label {
  color: #e53935;
}
.premium-spark {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 24px;
  margin-top: auto;
  overflow: visible;
}
.premium-spark path {
  fill: none;
  stroke: var(--premium-accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
  opacity: 0.85;
}
.premium-bar.is-loading .premium-stat strong {
  opacity: 1;
  color: #9aa0a6;
  transition: color 0.2s ease;
}

@media (max-width: 1100px) {
  .premium-bar-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .premium-bar-head {
    padding: 16px 18px;
    min-height: 96px;
  }
  .premium-pub-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
  }
  .premium-pub-icon svg {
    width: 28px;
    height: 28px;
  }
  .premium-head-divider {
    height: 48px;
  }
  .premium-bar-title {
    font-size: 1.05rem;
  }
  .premium-date-btn {
    height: 46px !important;
    min-height: 46px !important;
  }
  .premium-head-waves {
    opacity: 0.22;
  }
}
@media (max-width: 760px) {
  .premium-bar-head {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    min-height: 0;
    height: auto;
    padding: 16px 16px;
  }
  .premium-bar-head-left {
    width: 100%;
    gap: 14px;
  }
  .premium-head-divider {
    display: none;
  }
  .premium-bar-head-right {
    margin-left: 0;
    width: 100%;
  }
  .premium-bar-date {
    width: 100%;
  }
  .premium-bar-kicker {
    gap: 8px;
  }
  .premium-active-badge {
    margin-left: 0;
  }
  .premium-head-waves {
    opacity: 0.12;
  }
}
@media (max-width: 480px) {
  .premium-bar-head {
    padding: 14px 12px;
  }
  .premium-pub-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
  }
  .premium-pub-icon svg {
    width: 24px;
    height: 24px;
  }
  .premium-bar-head-left {
    gap: 12px;
  }
  .premium-bar-title {
    font-size: 0.95rem;
  }
  .premium-bar-stars {
    font-size: 0.65rem;
  }
  .premium-active-badge {
    height: 28px;
    padding: 0 10px;
  }
  .premium-active-badge #loadProgress {
    font-size: 0.75rem;
  }
  .premium-bar-range-row {
    font-size: 0.8rem;
    margin-top: 8px;
  }
  .premium-date-btn {
    height: 44px !important;
    min-height: 44px !important;
    font-size: 0.9rem !important;
  }
  .premium-date-btn #dateTriggerLabel {
    font-size: 0.9rem;
  }
  .premium-head-waves {
    display: none;
  }
}
@media (max-width: 720px) {
  .premium-bar-stats {
    grid-template-columns: 1fr 1fr;
  }
  .premium-stat {
    min-height: 130px;
    padding: 14px 12px 10px;
  }
}


.net-policy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.net-policy-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.net-policy-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.net-policy-val.is-ok { color: #047857; }
.net-policy-val.is-err { color: #be123c; }

.ctrl { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ctrl--inline { flex-shrink: 0; }
.ctrl-label,
.ctrl > span {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.2;
}
.ctrl select,
.ctrl input[type="date"] {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.72rem 0.9rem;
  font: 600 0.92rem var(--font);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ctrl select:focus,
.ctrl input[type="date"]:focus {
  border-color: rgba(26, 115, 232, 0.45);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.date-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.chip-btn {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: 600 0.8rem var(--font);
  cursor: pointer;
  transition: all 0.18s ease;
}
.chip-btn:hover {
  border-color: rgba(26, 115, 232, 0.35);
  background: var(--accent-soft);
}
.chip-btn.active {
  background: var(--gam-blue);
  border-color: transparent;
  color: #fff;
}
.date-row input[type="date"] { width: auto; min-width: 150px; flex: 1; }

/* Date range picker */
.date-ctrl {
  position: relative;
  z-index: 80;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.date-tz-hint {
  font: 700 0.65rem/1 var(--font);
  letter-spacing: 0.06em;
  color: #5f6368;
  background: #f1f3f4;
  border: 1px solid #dadce0;
  border-radius: 999px;
  padding: 4px 7px;
}
.date-trigger {
  width: auto;
  min-width: 200px;
  max-width: 280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  font: 400 0.875rem var(--font);
  color: var(--ink);
  cursor: pointer;
  position: relative;
  z-index: 81;
  pointer-events: auto !important;
  outline: none;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}
.date-trigger:disabled {
  cursor: wait;
  opacity: 0.65;
}
.date-trigger:hover:not(:disabled),
.date-trigger:focus-visible,
.date-trigger[aria-expanded="true"] {
  border-color: var(--gam-blue);
  box-shadow: none;
}
.date-trigger:focus {
  outline: none;
  box-shadow: none;
}
.daterange-pop[hidden] { display: none !important; }
.daterange-pop {
  position: fixed !important;
  z-index: 9999 !important;
  display: grid;
  grid-template-columns: 170px minmax(280px, 320px);
  width: min(510px, calc(100vw - 24px));
  max-height: min(560px, calc(100vh - 24px));
  background: #ffffff !important;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
  overflow: auto;
}
.daterange-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(15, 23, 42, 0.28);
}
.dr-presets {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.65rem;
  background: #f8fafc !important;
  border-right: 1px solid #e2e8f0;
}
.dr-presets button {
  text-align: left;
  border: 0;
  background: transparent;
  color: #0f172a;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font: 600 0.82rem var(--font);
  cursor: pointer;
}
.dr-presets button:hover { background: rgba(15, 23, 42, 0.04); }
.dr-presets button.active {
  background: #e8f0fe;
  color: var(--gam-blue);
}
.dr-main { padding: 0.85rem 0.9rem 0.75rem; background: #fff !important; }
.dr-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.dr-inputs label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.dr-inputs input[type="date"] {
  width: 100% !important;
  border: 0 !important;
  border-bottom: 2px solid #cbd5e1 !important;
  border-radius: 0 !important;
  padding: 0.4rem 0 !important;
  font: 600 0.9rem var(--font) !important;
  color: #0f172a !important;
  background: transparent !important;
  box-shadow: none !important;
}
.dr-inputs input[type="date"]:focus {
  outline: none;
  border-bottom-color: var(--gam-blue) !important;
}
.dr-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}
.dr-cal-head strong {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #0f172a;
}
.dr-nav {
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  color: #0f172a;
}
.dr-nav:hover { background: #e8f0fe; border-color: transparent; }
.dr-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
}
.dr-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  min-height: 240px;
  width: 100%;
}
.dr-grid .day {
  width: 100%;
  height: 36px !important;
  min-height: 36px !important;
  aspect-ratio: auto !important;
  border: 0;
  border-radius: 999px;
  background: #fff;
  font: 600 0.8rem/1 var(--font);
  color: #0f172a !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.dr-grid .day:hover:not(:disabled) { background: #f1f5f9; }
.dr-grid .day.empty {
  visibility: hidden;
  pointer-events: none;
  background: transparent !important;
}
.dr-grid .day.future {
  color: #cbd5e1 !important;
  cursor: default;
  background: transparent !important;
}
.dr-grid .day.in-range {
  background: #e8f0fe;
  border-radius: 0;
}
.dr-grid .day.selected {
  background: var(--gam-blue) !important;
  color: #fff !important;
}
.dr-grid .day.range-start { border-radius: 999px 0 0 999px; }
.dr-grid .day.range-end { border-radius: 0 999px 999px 0; }
.dr-grid .day.solo { border-radius: 999px; }
.dr-grid .day.today:not(.selected) { box-shadow: inset 0 0 0 1.5px var(--gam-blue); }
.dr-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.btn-ghost, .btn-primary {
  border-radius: 4px;
  padding: 0.55rem 0.95rem;
  font: 700 0.82rem var(--font);
  cursor: pointer;
}
.btn-ghost {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
}
.btn-primary {
  border: 0;
  background: var(--gam-blue);
  color: #fff;
}
@media (max-width: 640px) {
  .daterange-pop {
    left: 12px !important;
    right: 12px !important;
    top: 12px !important;
    width: auto;
    grid-template-columns: 1fr;
  }
  .dr-presets {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }
}

.page-title { margin-bottom: 0.85rem; animation: rise 0.5s ease both; animation-delay: 0.05s; }
.page-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-title h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
}
.page-title p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.policy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-top: 0;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--gam-blue);
  font: 500 0.8125rem var(--font);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.policy-btn:hover {
  background: #e8f0fe;
  border-color: #d2e3fc;
}

.policy-panel {
  margin: 0 0 1.1rem;
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.policy-panel-h {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding: 1rem 1.1rem 0.75rem;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.policy-panel-h h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.policy-panel-h p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  max-width: 52ch;
  line-height: 1.4;
}
.policy-refresh {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  border-radius: 4px;
  padding: 0.55rem 0.85rem;
  font: 700 0.8rem var(--font);
  cursor: pointer;
}
.policy-refresh:hover { border-color: rgba(26, 115, 232, 0.4); }
.policy-refresh:disabled { opacity: 0.55; cursor: wait; }

.policy-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.75rem 1.1rem 0.35rem;
}
.policy-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font: 700 0.72rem var(--font);
  border: 1px solid transparent;
}
.policy-chip strong { font-family: var(--mono); font-weight: 500; }
.policy-chip--total { background: #f1f5f9; color: #334155; border-color: #e2e8f0; }
.policy-chip--ok { background: rgba(5, 150, 105, 0.1); color: #047857; border-color: rgba(5, 150, 105, 0.25); }
.policy-chip--bad { background: rgba(190, 18, 60, 0.1); color: #be123c; border-color: rgba(190, 18, 60, 0.25); }
.policy-chip--warn { background: rgba(234, 88, 12, 0.1); color: #c2410c; border-color: rgba(234, 88, 12, 0.28); }
.policy-chip--muted { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }

.policy-sites {
  max-height: 360px;
  overflow: auto;
  padding: 0.4rem 0.55rem 0.7rem;
}
.policy-empty {
  margin: 0;
  padding: 0.85rem 0.65rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.policy-site {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.85rem;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  border: 1px solid transparent;
}
.policy-site:hover { background: #f8fafc; }
.policy-site.is-issue {
  background: rgba(190, 18, 60, 0.04);
  border-color: rgba(190, 18, 60, 0.12);
}
.policy-site-url {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  word-break: break-all;
}
.policy-site-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.policy-site-status {
  justify-self: end;
  align-self: start;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font: 700 0.68rem/1 var(--font);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.policy-site-status.APPROVED { background: rgba(5, 150, 105, 0.12); color: #047857; }
.policy-site-status.DISAPPROVED { background: rgba(190, 18, 60, 0.12); color: #be123c; }
.policy-site-status.REQUIRES_REVIEW,
.policy-site-status.UNCHECKED { background: rgba(234, 88, 12, 0.12); color: #c2410c; }
.policy-site-status.DRAFT,
.policy-site-status.OTHER { background: #f1f5f9; color: #64748b; }
.policy-site-reasons {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.policy-site-reasons li {
  font-size: 0.78rem;
  color: #9f1239;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .page-title-row { align-items: stretch; }
  .policy-btn { width: 100%; justify-content: center; }
  .policy-panel-actions { width: 100%; }
  .policy-refresh { width: 100%; }
}

.banner {
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  margin: 0 0 0.9rem;
  border: 1px solid transparent;
}
.banner:not(.ok) {
  background: rgba(190, 18, 60, 0.08);
  color: var(--danger);
  border-color: rgba(190, 18, 60, 0.18);
}
.banner.ok {
  background: rgba(4, 120, 87, 0.08);
  color: var(--ok);
  border-color: rgba(4, 120, 87, 0.18);
}

.loading {
  margin: 0 0 0.9rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid rgba(26, 115, 232, 0.15);
}

/* KPI â premium SaaS metric cards */
.kpi-row {
  display: grid;
  gap: clamp(0.55rem, 1.4vw, 0.9rem);
  margin-bottom: 1.1rem;
  width: 100%;
}
.kpi-5 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi-6 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi-7 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi-8,
.kpi-7 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

.kpi {
  --kpi-accent: var(--gam-blue);
  --kpi-soft: rgba(26, 115, 232, 0.08);
  --kpi-gold: var(--gam-card-border);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  min-height: 108px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--gam-card-border);
  border-radius: var(--radius);
  padding: 0.95rem 1rem 1rem;
  box-shadow: none;
  animation: rise 0.55s ease both;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.kpi::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--kpi-accent);
  opacity: 0.9;
}
@media (hover: hover) and (pointer: fine) {
  .kpi:hover {
    border-color: #bdc1c6;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
  }
}
.kpi:nth-child(1) { animation-delay: 0.04s; }
.kpi:nth-child(2) { animation-delay: 0.08s; }
.kpi:nth-child(3) { animation-delay: 0.12s; }
.kpi:nth-child(4) { animation-delay: 0.16s; }
.kpi:nth-child(5) { animation-delay: 0.2s; }
.kpi:nth-child(6) { animation-delay: 0.24s; }
.kpi:nth-child(7) { animation-delay: 0.28s; }
.kpi:nth-child(8) { animation-delay: 0.32s; }

/* Accent color = label / top bar only (outer border stays golden) */
.kpi::before { display: none; }

.kpi--impressions {
  --kpi-accent: #2563eb;
  --kpi-soft: rgba(37, 99, 235, 0.1);
}
.kpi--revenue {
  --kpi-accent: #4ea9ff;
  --kpi-soft: rgba(37, 109, 204, 0.2);
}
.kpi.kpi--revenue span.kpi-label {
  color: var(--muted);
  letter-spacing: 0.07em;
  opacity: 1;
}
.net-card .kpi.kpi--revenue span.kpi-label {
  color: #5f6368 !important;
  letter-spacing: 0.07em;
  opacity: 1;
}
.kpi.kpi--revenue strong {
  color: var(--ink);
  text-shadow: none;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 700;
}
.net-card .kpi.kpi--revenue strong {
  color: #202124 !important;
  text-shadow: none;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  font-weight: 700;
}
.kpi--ecpm {
  --kpi-accent: #ca8a04;
  --kpi-soft: rgba(202, 138, 4, 0.12);
}
.kpi--ctr {
  --kpi-accent: #db2777;
  --kpi-soft: rgba(219, 39, 119, 0.1);
}
.kpi--filled {
  --kpi-accent: #188038;
  --kpi-soft: rgba(24, 128, 56, 0.1);
}
.kpi--unfilled {
  --kpi-accent: #e53935;
  --kpi-soft: rgba(229, 57, 53, 0.12);
}
.kpi--unfilled.kpi--unfilled-alert {
  --kpi-accent: #d32f2f;
  --kpi-icon-bg: rgba(211, 47, 47, 0.2);
  border-color: #ef9a9a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 6px 14px rgba(0, 0, 0, 0.2);
}
.kpi--unfilled.kpi--unfilled-alert::after {
  background: #d32f2f;
}
.kpi--unfilled.kpi--unfilled-alert strong {
  color: #c62828;
}
.kpi--unfilled.kpi--unfilled-alert .kpi-sub,
.kpi--unfilled.kpi--unfilled-alert em.kpi-sub {
  background: #ffebee;
  color: #c62828;
  border-color: #ef9a9a;
}
.kpi--viewability {
  --kpi-accent: #0284c7;
  --kpi-soft: rgba(2, 132, 199, 0.1);
}
.kpi--yesterday {
  --kpi-accent: var(--gam-blue);
  --kpi-soft: #f8f9fa;
  background: #f8f9fa;
  border-color: var(--gam-card-border);
  box-shadow: none;
  color: var(--ink);
}
.kpi--yesterday::after {
  height: 3px;
  opacity: 1;
  background: #5f6368;
}
.kpi--yesterday span {
  color: var(--muted);
  letter-spacing: 0;
}
.kpi--yesterday strong {
  color: var(--ink);
  text-shadow: none;
  font-size: clamp(1.2rem, 0.95rem + 1.15vw, 1.65rem);
  font-weight: 500;
}

.kpi span {
  display: block;
  font-family: var(--kpi-label);
  color: var(--kpi-accent);
  font-size: clamp(0.62rem, 0.55rem + 0.35vw, 0.72rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
  opacity: 0.92;
  line-height: 1.2;
}
.kpi strong {
  font-family: var(--kpi-num);
  font-size: clamp(1.1rem, 0.85rem + 1.1vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.kpi .kpi-sub,
.kpi em.kpi-sub {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: auto;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-style: normal;
  font-family: var(--kpi-label);
  font-size: clamp(0.65rem, 0.6rem + 0.25vw, 0.72rem);
  font-weight: 700;
  color: var(--kpi-accent);
  background: var(--kpi-soft);
  border: 1px solid rgba(15, 23, 42, 0.06);
  white-space: nowrap;
}
.kpi #m-fill-rate,
.kpi #m-unfill-rate {
  color: var(--kpi-accent);
}

/* ââ Responsive breakpoints ââ */
@media (min-width: 1281px) {
  .net-card .kpi-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .kpi-6,
  .kpi-7,
  .kpi-8 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .net-card .kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .net-card .kpi {
    min-height: 96px;
  }
}

@media (max-width: 1100px) {
  .gam-top-inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px 16px;
  }
}

@media (max-width: 960px) {
  .controls-card { grid-template-columns: 1fr; }
  .dash-wrap {
    padding: 12px max(12px, env(safe-area-inset-left, 0px)) 28px max(12px, env(safe-area-inset-right, 0px));
    gap: 12px;
  }
  .page-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
  }
  .page-toolbar-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .date-trigger {
    max-width: none;
    width: 100%;
  }
  .premium-bar-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }
  .premium-stat {
    min-height: 128px;
  }
  .net-card .kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .net-card .kpi {
    min-height: 92px;
    padding: 12px 12px 10px 14px;
  }
  .kpi-5, .kpi-6, .kpi-7, .kpi-8 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi { min-height: 100px; }
  .net-picker-list {
    grid-template-columns: 1fr;
    max-height: min(42vh, 320px);
  }
  .page-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }
  .net-picker-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 14px;
  }
  .net-picker-toolbar .net-picker-apply {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
    min-height: 44px;
  }
  .net-picker--unfill .net-picker-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .net-picker--unfill .net-picker-toolbar #unfillCopyDash {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .gam-top-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px 12px;
    padding: 12px 14px;
    padding-top: max(12px, env(safe-area-inset-top, 12px));
    min-height: 0;
  }
  .gam-top-brand { min-width: 0; }
  .gam-menu-toggle { display: inline-flex; }
  .gam-logo { gap: 10px; }
  .g-dot {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .gam-logo strong { font-size: 1.05rem; }
  .gam-logo-sub {
    font-size: 0.55rem;
    letter-spacing: 0.07em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 58vw;
  }
  .gam-top-panel {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0 4px;
    border-top: 1px solid #dadce0;
    margin-top: 2px;
  }
  .gam-top.is-menu-open .gam-top-panel {
    display: flex;
  }
  .gam-top-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .gam-top-meta .status-chip {
    width: 100%;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.7rem;
    box-sizing: border-box;
  }
  .gam-top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .gam-top-actions .btn-saas--primary {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
  }
  .gam-top-actions .btn-saas,
  .gam-top-actions .btn-light {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
  }
  .gam-top-actions .btn-saas--ghost {
    font-size: 0.8rem;
    padding: 0.55rem 0.7rem;
  }

  .net-picker > summary {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title chev"
      "count count"
      "prog prog"
      "date date";
    gap: 8px 10px;
    align-items: center;
    padding: 12px 14px;
  }
  .net-picker-summary-title {
    grid-area: title;
    white-space: normal;
    font-size: 0.9rem;
    line-height: 1.25;
    min-width: 0;
  }
  .net-picker > summary::after {
    grid-area: chev;
    margin-left: 0;
    justify-self: end;
    align-self: start;
    padding-top: 2px;
  }
  .net-picker-count {
    grid-area: count;
    justify-self: start;
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
    font-size: 0.68rem;
  }
  .net-picker > summary .load-progress {
    grid-area: prog;
    margin-left: 0;
    justify-self: start;
  }
  .net-picker-summary-date {
    grid-area: date;
    margin-left: 0;
    width: 100%;
  }
  .net-picker-summary-date .date-trigger--sm {
    width: 100%;
    max-width: none;
    justify-content: space-between;
    min-height: 40px;
    font-size: 0.84rem;
    padding: 8px 12px;
  }
  .net-picker--unfill > summary {
    grid-template-areas:
      "title chev"
      "count count";
  }
  .unfill-picker-note {
    margin: 0 14px 10px;
    font-size: 0.78rem;
  }

  .controls-card { width: 100%; margin-bottom: 1rem; }
  .page-title { width: 100%; }
  .page-title h1 { word-break: break-word; }
  .net-card-top {
    align-items: flex-start;
    flex-direction: row;
    gap: 0.5rem;
    text-align: left;
    padding: 12px 14px;
  }
  .net-card-date-btn {
    width: 148px !important;
    min-width: 148px !important;
    max-width: none !important;
    min-height: 38px;
  }
  .net-card-title { font-size: 1.05rem; text-align: left; }
  .net-card-date { text-align: left; }
  .net-card-body { padding: 12px 14px 14px; }
  .net-card-foot {
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
  }
  .net-card-foot .policy-btn--sm {
    flex: 1;
    width: auto;
    min-width: 0;
    justify-content: center;
    min-height: 42px;
  }
  .low-sheet-head {
    padding: 14px 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .low-sheet-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .low-sheet-icon svg { width: 18px; height: 18px; }
  .low-sheet-title { font-size: 0.95rem; }
  .low-sheet-count { width: 100%; }
  .low-sheet-site { max-width: 140px; }
  .low-sheet-table thead th,
  .low-sheet-table tbody td {
    padding: 8px 10px;
    font-size: 0.78rem;
  }
  .net-card-banner {
    font-size: 0.78rem;
    padding: 0.55rem 0.75rem;
    text-align: center;
  }
  .net-card .kpi,
  .net-card .kpi span,
  .net-card .kpi strong {
    align-items: flex-start;
    text-align: left;
  }
  .net-card .kpi .kpi-sub,
  .net-card .kpi em.kpi-sub {
    margin-left: 0;
    margin-right: 0;
    align-self: flex-start;
  }
  .net-picker-toolbar {
    padding: 12px 14px;
    gap: 8px;
  }
  .net-picker-toolbar button {
    min-width: 0;
  }
  .net-pick-item {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    padding: 0.7rem 0.75rem;
    gap: 0.15rem 0.65rem;
  }
  .net-pick-item input {
    grid-row: 1 / span 2;
    align-self: center;
  }
  .net-pick-name {
    grid-column: 2;
    white-space: normal;
    word-break: break-word;
  }
  .net-pick-code {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .dash-wrap {
    padding-top: 0.85rem;
  }
  .kpi-5,
  .kpi-6,
  .kpi-7,
  .kpi-8 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi {
    min-height: 104px;
    padding: 0.9rem 0.7rem 0.95rem;
    border-radius: 14px;
    align-items: center;
    text-align: center;
  }
  .kpi strong {
    font-size: clamp(1.15rem, 5vw, 1.35rem);
  }
  .kpi span {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }
  .controls-card {
    padding: 0.9rem 0.95rem;
    border-radius: 14px;
  }
  .date-trigger {
    width: 100%;
    min-height: 44px;
    justify-content: space-between;
  }
  .page-title h1 {
    font-size: clamp(1.2rem, 5.5vw, 1.5rem);
  }
  .page-title p {
    font-size: 0.82rem;
  }
}

@media (max-width: 380px) {
  .kpi-5,
  .kpi-6,
  .kpi-7,
  .kpi-8 {
    grid-template-columns: 1fr;
  }
  .kpi {
    min-height: 92px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
  }
  .kpi span {
    width: 100%;
    margin-bottom: 0.1rem;
    text-align: center;
  }
  .kpi strong {
    font-size: 1.35rem;
    width: 100%;
    text-align: center;
  }
  .kpi .kpi-sub,
  .kpi em.kpi-sub {
    margin: 0.25rem auto 0;
  }
  .gam-top-meta {
    grid-template-columns: 1fr;
  }
  .gam-top-actions {
    grid-template-columns: 1fr;
  }
  .gam-logo-sub {
    font-size: 0.52rem;
    letter-spacing: 0.05em;
    max-width: 48vw;
  }
}

.card {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1rem 1.1rem 0.85rem;
  box-shadow: var(--shadow);
  animation: rise 0.6s ease both;
  animation-delay: 0.12s;
}
.card-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.card-h h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.card-h span { color: var(--muted); font-size: 0.78rem; font-weight: 600; }

.table-scroll { overflow-x: auto; margin-top: 0.15rem; }
.gam-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.gam-table th {
  text-align: left;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0.55rem;
  white-space: nowrap;
}
.gam-table td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  padding: 0.8rem 0.55rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.gam-table tr:hover td { background: #f8f9fa; }

.debug-box {
  margin: 1.1rem 0 0;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  padding: 0.65rem 0.9rem;
}
.debug-box summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.debug-box pre {
  margin: 0.55rem 0 0;
  max-height: 220px;
  overflow: auto;
  font-size: 0.72rem;
  line-height: 1.45;
  background: #0b1220;
  color: #cbd5e1;
  border-radius: 4px;
  padding: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Login premium */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: #f8f9fa;
}
.login-page .card {
  width: min(420px, 100%);
  padding: 1.6rem 1.5rem 1.45rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: rise 0.5s ease both;
}
.brand { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 1rem; }
.brand strong {
  display: block;
  font-family: var(--display);
  letter-spacing: -0.03em;
}
.brand small { color: var(--muted); font-size: 0.78rem; }
.mark {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: var(--gam-blue);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  box-shadow: none;
}
.login-page h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}
.login-page label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.login-page input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font: 600 0.95rem var(--font);
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
}
.login-page input:focus {
  outline: none;
  border-color: rgba(26, 115, 232, 0.45);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.login-page button, .google-btn {
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 0;
  background: var(--gam-blue);
  color: #fff;
  font: 700 0.92rem var(--font);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.google-btn {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line-strong);
  margin-bottom: 0.35rem;
}
.google-btn:hover { background: #f8fafc; }
.or { text-align: center; color: var(--muted); font-size: 0.78rem; font-weight: 600; margin: 0.85rem 0; }
.err {
  background: rgba(190, 18, 60, 0.08);
  color: var(--danger);
  padding: 0.65rem 0.8rem;
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 600;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.email-ctrl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  flex: 1;
  min-width: 0;
}
.email-ctrl > span:first-child {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.email-input {
  flex: 1;
  min-width: 160px;
  max-width: 280px;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
  background: var(--card);
  color: var(--text);
}
.email-input:focus {
  outline: 2px solid rgba(13, 148, 136, 0.35);
  border-color: var(--gam-blue);
}
.btn-email {
  white-space: nowrap;
}
.email-status {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.smtp-card {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.smtp-card summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
}
.smtp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem 1rem;
  margin-top: 0.85rem;
  align-items: end;
}
.smtp-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.smtp-field span,
.smtp-field em {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.smtp-field--hint em {
  font-style: normal;
  text-transform: none;
  font-weight: 600;
  color: var(--gam-blue);
}
.net-picker--unfill > summary {
  color: #b45309;
}
.unfill-picker-note {
  margin: 0 1.1rem 0.75rem;
  font-size: 0.82rem;
  color: #b45309;
  font-weight: 600;
  line-height: 1.45;
}
.net-pick-item--unfill input:checked + .net-pick-name {
  color: #b45309;
}
.net-picker--unfill .net-picker-toolbar {
  flex-wrap: wrap;
}

/* ï¿½ï¿½ Companies page (CompanyService) ï¿½ï¿½ */
.companies-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 32px;
}
.companies-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15), 0 1px 3px 1px rgba(60, 64, 67, 0.08);
}
.companies-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.companies-hero-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #e8f0fe;
  color: #1a73e8;
}
.companies-hero-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}
.companies-kicker {
  margin: 0 0 4px;
  font: 800 0.65rem/1.2 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a73e8;
}
.companies-title {
  margin: 0;
  font: 800 1.25rem/1.25 var(--font);
  color: #202124;
  letter-spacing: -0.02em;
}
.companies-desc {
  margin: 6px 0 0;
  font: 500 0.875rem/1.45 var(--font);
  color: #5f6368;
  max-width: 46rem;
}
.companies-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.companies-stat {
  min-width: 92px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dadce0;
  background: #f8f9fa;
  text-align: left;
}
.companies-stat strong {
  display: block;
  font: 800 1.2rem/1.1 var(--font);
  color: #202124;
}
.companies-stat span {
  display: block;
  margin-top: 4px;
  font: 600 0.7rem/1.2 var(--font);
  color: #5f6368;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.companies-stat--ok {
  background: #e6f4ea;
  border-color: #ceead6;
}
.companies-stat--ok strong { color: #137333; }
.companies-panel {
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
}
.companies-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #f1f3f4;
}
.companies-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.companies-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #dadce0;
  background: #fff;
  color: #3c4043;
  text-decoration: none;
  font: 600 0.8125rem/1 var(--font);
}
.companies-tab em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: #5f6368;
  background: #f1f3f4;
  border-radius: 999px;
  padding: 2px 7px;
}
.companies-tab.is-active {
  border-color: #1a73e8;
  background: #e8f0fe;
  color: #174ea6;
}
.companies-tab.is-active em {
  background: #d2e3fc;
  color: #174ea6;
}
.companies-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.companies-search {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
}
.companies-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #5f6368;
}
.companies-search input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 36px;
  border: 1px solid #dadce0;
  border-radius: 10px;
  font: 500 0.9rem var(--font);
  color: #202124;
  background: #fff;
}
.companies-filters select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dadce0;
  border-radius: 10px;
  font: 500 0.875rem var(--font);
  color: #202124;
  background: #fff;
  min-width: 160px;
}
.companies-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.companies-table {
  width: 100%;
  border-collapse: collapse;
  font: 400 0.875rem/1.35 var(--font);
  color: #3c4043;
}
.companies-table thead th {
  text-align: left;
  white-space: nowrap;
  padding: 12px 14px;
  font: 700 0.68rem/1.2 var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5f6368;
  background: #f8f9fa;
  border-bottom: 1px solid #e8eaed;
}
.companies-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: middle;
}
.companies-table tbody tr:hover td {
  background: #f8f9fa;
}
.companies-name {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 180px;
}
.companies-name-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e8f0fe;
  color: #1a73e8;
}
.companies-name-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.1;
}
.companies-name strong {
  display: block;
  color: #202124;
  font-weight: 700;
}
.companies-name em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.72rem;
  color: #80868b;
}
.companies-type {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f1f3f4;
  color: #3c4043;
  font: 600 0.72rem/1 var(--font);
  text-transform: capitalize;
  white-space: nowrap;
}
.companies-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font: 700 0.7rem/1 var(--font);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.companies-status--ok {
  background: #e6f4ea;
  color: #137333;
}
.companies-status--warn {
  background: #fef7e0;
  color: #e37400;
}
.companies-status--bad {
  background: #fce8e6;
  color: #c5221f;
}
.companies-status--muted {
  background: #f1f3f4;
  color: #5f6368;
}
.companies-mini {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  color: #80868b;
}
.companies-code {
  font: 600 0.8rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #174ea6;
  background: #e8f0fe;
  padding: 3px 7px;
  border-radius: 6px;
}
.companies-muted { color: #9aa0a6; }
.companies-empty {
  text-align: center;
  padding: 28px 16px !important;
  color: #5f6368;
}
.companies-foot {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid #f1f3f4;
  font: 500 0.78rem/1.4 var(--font);
  color: #5f6368;
  background: #fafafa;
}
.companies-foot strong { color: #202124; }
@media (max-width: 720px) {
  .companies-hero { padding: 16px; }
  .companies-title { font-size: 1.05rem; }
  .companies-stat { min-width: 78px; padding: 10px 12px; }
  .companies-toolbar { padding: 12px; }
}

/* ï¿½ï¿½ MCM Parent publishers panel ï¿½ï¿½ */
.mcm-panel {
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
}
.mcm-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 22px 12px;
}
.mcm-panel-head-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}
.mcm-panel-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e6f4ea;
  color: #137333;
}
.mcm-panel-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.1;
}
.mcm-kicker {
  margin: 0 0 2px;
  font: 800 0.65rem/1.2 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #137333;
}
.mcm-title {
  margin: 0;
  font: 800 1.15rem/1.25 var(--font);
  color: #202124;
}
.mcm-desc {
  margin: 4px 0 0;
  font: 500 0.82rem/1.4 var(--font);
  color: #5f6368;
  max-width: 40rem;
}
.mcm-child-picker {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.mcm-child-picker label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font: 700 0.68rem/1.2 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5f6368;
}
.mcm-child-picker select {
  min-width: 260px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dadce0;
  border-radius: 10px;
  font: 500 0.875rem var(--font);
  color: #202124;
  background: #fff;
}
.mcm-subtabs {
  display: flex;
  gap: 0;
  padding: 0 22px;
  border-bottom: 1px solid #e8eaed;
}
.mcm-subtab {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  font: 600 0.875rem/1 var(--font);
  color: #5f6368;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.mcm-subtab.is-active {
  color: #1a73e8;
  border-bottom-color: #1a73e8;
}
.mcm-table thead th {
  background: #f8f9fa;
}
.mcm-methods {
  margin: 0 22px 18px;
  padding: 12px 14px;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  background: #f8f9fa;
  font: 500 0.8rem/1.45 var(--font);
  color: #5f6368;
}
.mcm-methods summary {
  cursor: pointer;
  font-weight: 700;
  color: #202124;
}
.mcm-methods ul {
  margin: 10px 0 0;
  padding-left: 1.1rem;
}
.mcm-methods li {
  margin: 4px 0;
}
.mcm-field-legend {
  margin: 0 22px 14px;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.mcm-legend-table {
  margin: 0;
}
.mcm-legend-table th {
  background: #f8f9fa;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5f6368;
}
.mcm-legend-table td {
  font-size: 0.84rem;
  vertical-align: top;
}
.mcm-legend-table code,
.mcm-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  background: #f1f3f4;
  padding: 2px 6px;
  border-radius: 4px;
  color: #174ea6;
}
.mcm-table--wide th {
  white-space: nowrap;
  font-size: 0.72rem;
}

/*  AdX groups (All / custom)  */
.adx-groups {
  margin: 4px 0 8px;
}
.adx-groups-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
}
.adx-groups-label {
  font: 600 0.72rem/1 var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #80868b;
  margin-right: 2px;
}
.adx-groups-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.adx-group-chip {
  appearance: none;
  border: 1px solid #dadce0;
  background: #f8f9fa;
  color: #3c4043;
  font: 600 0.8125rem/1.2 var(--font);
  padding: 2px 4px 2px 4px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.adx-group-chip-main {
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 5px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
}
.adx-group-chip:hover {
  border-color: #bdc1c6;
  background: #fff;
}
.adx-group-chip.is-active {
  background: #e8f0fe;
  border-color: #aecbfa;
  color: #174ea6;
}
.adx-group-chip-count {
  font: 700 0.68rem var(--mono);
  color: inherit;
  opacity: 0.75;
}
.adx-group-chip-edit {
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.55;
  cursor: pointer;
  padding: 0 0 0 2px;
  font-size: 0.85rem;
  line-height: 1;
}
.adx-group-chip-edit:hover { opacity: 1; }
.adx-groups-add {
  appearance: none;
  border: 1px dashed #dadce0;
  background: #fff;
  color: #174ea6;
  font: 600 0.8125rem/1.2 var(--font);
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.adx-groups-add:hover {
  border-color: #aecbfa;
  background: #e8f0fe;
}
.adx-groups-panel {
  margin-top: 8px;
  padding: 14px 16px 16px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
}
.adx-groups-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.adx-groups-panel-head strong {
  font: 700 0.95rem var(--font);
  color: #202124;
}
.adx-groups-close {
  appearance: none;
  border: none;
  background: #f1f3f4;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: #5f6368;
}
.adx-groups-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  font: 600 0.75rem var(--font);
  color: #5f6368;
}
.adx-groups-field input {
  font: 500 0.9rem var(--font);
  padding: 9px 12px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  color: #202124;
}
.adx-groups-field input:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}
.adx-groups-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.adx-groups-toolbar button {
  appearance: none;
  border: 1px solid #dadce0;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font: 600 0.75rem var(--font);
  cursor: pointer;
  color: #3c4043;
}
.adx-groups-toolbar button:hover { background: #f8f9fa; }
.adx-groups-pick-count {
  margin-left: auto;
  font: 600 0.75rem var(--mono);
  color: #174ea6;
}
.adx-groups-list {
  max-height: 260px;
  overflow: auto;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  background: #fafafa;
}
.adx-groups-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #e8eaed;
  cursor: pointer;
  font: 500 0.84rem var(--font);
  color: #202124;
}
.adx-groups-item:last-child { border-bottom: none; }
.adx-groups-item:hover { background: #fff; }
.adx-groups-item input { margin-top: 3px; accent-color: #1a73e8; }
.adx-groups-item-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.adx-groups-item-meta small {
  font: 500 0.72rem var(--mono);
  color: #80868b;
}
.adx-groups-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.adx-groups-save {
  appearance: none;
  border: none;
  background: #1a73e8;
  color: #fff;
  font: 600 0.85rem var(--font);
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
}
.adx-groups-save:hover { background: #1765cc; }
.adx-groups-delete {
  appearance: none;
  border: 1px solid #f6aea9;
  background: #fce8e6;
  color: #c5221f;
  font: 600 0.85rem var(--font);
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
}
.net-card.is-filtered-out {
  display: none !important;
}
@media (max-width: 720px) {
  .adx-groups-bar { padding: 10px 12px; }
  .adx-groups-pick-count { margin-left: 0; width: 100%; }
}
