/* ============================================================================
   css/v2-theme.css  —  Phase 69 Dashboard v2 light theme (Results-tab slice)
   ----------------------------------------------------------------------------
   AUTO-GENERATED from proposal/dashboard-preview-2026-06-v2.html <style> block.
   Every rule is scoped under .v2-theme so it ONLY styles the element carrying
   that class (#tab-results). The light design tokens override the dark :root
   tokens (css/variables.css) ONLY within .v2-theme, so the other
   tabs stay dark. DO NOT hand-edit — edit the mockup and re-run:
       node scripts/build-v2-theme.js
   ============================================================================ */

.v2-theme {
      
      --bg-body:          #F5F7FA;
      --bg-sidebar:       #FFFFFF;
      --bg-card:          #FFFFFF;
      --bg-card-soft:     #FAFBFC;
      --bg-tint:          #F0F4F8;
      --bg-tile-blue:     #1A73E8;
      --bg-tile-orange:   #F29900;

      
      --text-primary:     #1A2940;
      --text-secondary:   #455570;
      --text-muted:       #5E6C82;   
      --text-faint:       #6B788C;   
      --text-on-tile:     #FFFFFF;

      
      --border:           #E6EBF2;
      --border-strong:    #D4DBE6;

      
      --tc-primary:       #6AABB5;
      --tc-primary-dk:    #3F8B97;
      --tc-accent:        #D4A853;

      
      --chart-blue:       #1A73E8;
      --chart-blue-soft:  #AECBFA;
      --chart-purple:    #9334E6;
      --chart-green:      #1E8E3E;
      --chart-green-soft: #CEEAD6;
      --chart-red:        #D93025;
      --chart-orange:     #F29900;
      --chart-yellow:     #FBBC04;
      --chart-grey:       #80868B;

      
      --bucket-top3:      #FBBC04;
      --bucket-4-10:      #AECBFA;
      --bucket-11-20:     #4285F4;
      --bucket-21-50:     #1A73E8;
      --bucket-51-100:    #174EA6;
      --bucket-serp:      #34A853;

      
      --delta-up:         #1E8E3E;
      --delta-up-bg:      #E6F4EA;
      --delta-down:       #D93025;
      --delta-down-bg:    #FCE8E6;
      --delta-flat:       #80868B;
      --delta-flat-bg:    #F1F3F4;

      
      --score-low:        #D93025;
      --score-mid:        #FBBC04;
      --score-high:       #1E8E3E;

      
      --shadow-card:      0 1px 2px rgba(60, 64, 67, 0.08), 0 1px 3px rgba(60, 64, 67, 0.06);
      --shadow-hover:     0 1px 3px rgba(60, 64, 67, 0.12), 0 4px 8px rgba(60, 64, 67, 0.10);
      --shadow-fab:       0 4px 12px rgba(60, 64, 67, 0.18), 0 2px 4px rgba(60, 64, 67, 0.12);

      
      --radius-lg:        16px;
      --radius:           12px;
      --radius-sm:        8px;
      --radius-pill:      999px;

      
      --sidebar-w:        232px;
      --topbar-h:         128px;
      --max-w:            1480px;

      --font:             'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
.v2-theme *,
.v2-theme *::before,
.v2-theme *::after { box-sizing: border-box; }
.v2-theme {
      font-family: var(--font);
      background: var(--bg-body);
      color: var(--text-primary);
      font-size: 14px;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }
.v2-theme a:focus-visible,
.v2-theme button:focus-visible,
.v2-theme [tabindex]:focus-visible,
.v2-theme .nav-item:focus-visible,
.v2-theme .tenant-switcher:focus-visible,
.v2-theme .product-tab:focus-visible,
.v2-theme .kw-tab:focus-visible,
.v2-theme .filter-pill:focus-visible,
.v2-theme .view-toggle button:focus-visible,
.v2-theme .time-toggle button:focus-visible,
.v2-theme .gtb-segment button:focus-visible {
      outline: 2px solid var(--chart-blue);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
.v2-theme button { font: inherit; color: inherit; }
.v2-theme a,
.v2-theme button,
.v2-theme .nav-item,
.v2-theme .tenant-switcher,
.v2-theme .product-tab,
.v2-theme .filter-pill,
.v2-theme .view-toggle button,
.v2-theme .time-toggle button,
.v2-theme .gtb-segment button,
.v2-theme .icon-btn,
.v2-theme .ask-ai,
.v2-theme .scroll-top {
      touch-action: manipulation;
    }
.v2-theme .skip-link {
      position: absolute;
      left: 8px; top: -48px;
      z-index: 300;
      background: var(--chart-blue);
      color: #fff;
      padding: 8px 14px;
      border-radius: var(--radius-sm);
      font-weight: 600;
      font-size: 13px;
      text-decoration: none;
      transition: top .15s;
    }
.v2-theme .skip-link:focus { top: 8px; }
.v2-theme .sr-only {
      position: absolute; width: 1px; height: 1px;
      padding: 0; margin: -1px; overflow: hidden;
      clip: rect(0,0,0,0); white-space: nowrap; border: 0;
    }
@media (prefers-reduced-motion: reduce) {
  .v2-theme *,
.v2-theme *::before,
.v2-theme *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
}
.v2-theme .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      width: var(--sidebar-w);
      background: var(--bg-sidebar);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      z-index: 50;
    }
.v2-theme .sidebar-brand {
      padding: 20px 22px 16px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      gap: 10px;
    }
.v2-theme .brand-mark {
      width: 32px; height: 32px;
      border-radius: 8px;
      background: linear-gradient(135deg, #6AABB5 0%, #3F8B97 100%);
      display: grid; place-items: center;
      color: #fff;
      font-weight: 700;
      font-size: 13px;
      letter-spacing: 0.5px;
    }
.v2-theme .brand-name {
      font-weight: 700;
      font-size: 14px;
      letter-spacing: -0.01em;
      color: var(--text-primary);
    }
.v2-theme .brand-name small {
      display: block;
      font-weight: 500;
      font-size: 11px;
      color: var(--text-muted);
      letter-spacing: 0;
    }
.v2-theme .tenant-switcher {
      margin: 12px 14px;
      padding: 10px 12px;
      background: var(--bg-card-soft);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      cursor: pointer;
      transition: border-color .15s;
      
      width: calc(100% - 28px);
      font-family: var(--font);
      font-size: 13px;
      color: var(--text-primary);
    }
.v2-theme .tenant-switcher:hover { border-color: var(--border-strong); }
.v2-theme .tenant-switcher .ts-name {
      font-weight: 600;
      font-size: 13px;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 8px;
    }
.v2-theme .tenant-switcher .ts-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: var(--chart-green);
    }
.v2-theme .tenant-switcher .ts-chev {
      color: var(--text-muted);
      font-size: 12px;
    }
.v2-theme .primary-nav {
      flex: 1;
      padding: 6px 8px;
      overflow-y: auto;
    }
.v2-theme .nav-section-head {
      padding: 12px 14px 4px;
      font-size: 10px;
      font-weight: 700;
      color: var(--text-faint);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
.v2-theme .nav-section-head:first-child { padding-top: 6px; }
.v2-theme .nav-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 9px 12px;
      border-radius: var(--radius-sm);
      color: var(--text-secondary);
      cursor: pointer;
      font-weight: 500;
      font-size: 13.5px;
      letter-spacing: -0.005em;
      margin: 2px 0;
      transition: background .12s, color .12s;
      user-select: none;
      
      width: 100%;
      text-align: left;
      background: transparent;
      border: none;
      font-family: var(--font);
    }
.v2-theme .nav-item:hover {
      background: var(--bg-card-soft);
      color: var(--text-primary);
    }
.v2-theme .nav-item.is-active {
      background: #E8F0FE;
      color: var(--chart-blue);
      font-weight: 600;
    }
.v2-theme .nav-item .nav-icon {
      width: 18px; height: 18px;
      flex-shrink: 0;
      stroke: currentColor;
      stroke-width: 1.7;
      fill: none;
    }
.v2-theme .nav-item .nav-badge {
      margin-left: auto;
      font-size: 11px;
      font-weight: 600;
      background: var(--bg-tint);
      color: var(--text-secondary);
      padding: 1px 7px;
      border-radius: var(--radius-pill);
    }
.v2-theme .nav-item.is-active .nav-badge {
      background: var(--chart-blue);
      color: #fff;
    }
.v2-theme .sidebar-foot {
      padding: 12px 14px;
      border-top: 1px solid var(--border);
      font-size: 11px;
      color: var(--text-muted);
      line-height: 1.45;
    }
.v2-theme .sidebar-foot .pulse {
      display: inline-block;
      width: 6px; height: 6px;
      background: var(--chart-green);
      border-radius: 50%;
      margin-right: 6px;
      animation: pulse 1.8s ease-in-out infinite;
    }
@keyframes pulse { 50% { opacity: .35; } }
.v2-theme .main {
      margin-left: var(--sidebar-w);
      min-height: 100vh;
      padding-bottom: 80px;
    }
.v2-theme .topbar {
      background: var(--bg-card);
      border-bottom: 1px solid var(--border);
      padding: 0;
    }
.v2-theme .client-banner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 28px;
      gap: 24px;
      background:
        linear-gradient(90deg, transparent 0%, transparent 60%, #E8F0FE 100%);
    }
.v2-theme .client-id {
      display: flex;
      align-items: center;
      gap: 16px;
    }
.v2-theme .client-favicon {
      width: 48px; height: 48px;
      background: #FFFFFF;
      border: 2px solid #1A2940;
      border-radius: 8px;
      display: grid; place-items: center;
      font-weight: 800;
      font-size: 16px;
      color: #1A2940;
      letter-spacing: -0.04em;
    }
.v2-theme .client-meta { line-height: 1.25; }
.v2-theme .client-meta .domain {
      font-size: 18px;
      font-weight: 700;
      letter-spacing: -0.015em;
      color: var(--text-primary);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 6px;
    }
.v2-theme .client-meta .domain svg {
      width: 13px; height: 13px;
      stroke: var(--text-muted);
      stroke-width: 1.8;
      fill: none;
    }
.v2-theme .client-meta .sub {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 1px;
    }
.v2-theme .agency-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 14px;
      background: rgba(255, 255, 255, 0.7);
      border-radius: var(--radius-sm);
    }
.v2-theme .agency-brand .agency-mark {
      width: 36px; height: 36px;
      border-radius: 8px;
      background: linear-gradient(135deg, #6AABB5 0%, #3F8B97 100%);
      display: grid; place-items: center;
      color: #fff;
      font-weight: 800;
      font-size: 14px;
    }
.v2-theme .agency-brand .agency-name {
      font-weight: 700;
      font-size: 13px;
      color: var(--text-primary);
    }
.v2-theme .agency-brand .agency-name small {
      display: block;
      font-weight: 500;
      font-size: 10px;
      color: var(--text-muted);
    }
.v2-theme .product-strip {
      display: flex;
      align-items: center;
      gap: 0;
      padding: 0 28px;
      border-top: 1px solid var(--border);
      overflow-x: auto;
      justify-content: space-between;
    }
.v2-theme .product-strip-tabs { display: flex; align-items: center; }
.v2-theme .global-time {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px;
      background: var(--bg-card-soft);
      border: 1px solid var(--border-strong);
      border-radius: var(--radius-pill);
      font-size: 12px;
      font-weight: 600;
      color: var(--text-primary);
      cursor: pointer;
      white-space: nowrap;
    }
.v2-theme .global-time .gt-eyebrow {
      font-size: 10px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
.v2-theme .global-time .gt-chev { color: var(--text-muted); font-size: 10px; }
.v2-theme .global-time .gt-divider {
      width: 1px; height: 14px;
      background: var(--border-strong);
    }
.v2-theme .global-time-bar {
      background: linear-gradient(90deg, #E8F0FE 0%, transparent 100%);
      padding: 10px 28px;
      border-top: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      font-size: 12px;
    }
.v2-theme .global-time-bar .gtb-pickers {
      display: flex;
      align-items: center;
      gap: 8px;
    }
.v2-theme .global-time-bar .gtb-hint {
      color: var(--text-secondary);
      font-size: 11px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
.v2-theme .gtb-segment {
      display: inline-flex;
      background: var(--bg-card);
      border: 1px solid var(--border-strong);
      border-radius: var(--radius-pill);
      padding: 2px;
    }
.v2-theme .gtb-segment button {
      background: transparent;
      border: none;
      padding: 4px 12px;
      font-size: 11px;
      font-weight: 600;
      color: var(--text-secondary);
      font-family: var(--font);
      cursor: pointer;
      border-radius: var(--radius-pill);
    }
.v2-theme .gtb-segment button.is-active {
      background: var(--chart-blue);
      color: #fff;
    }
.v2-theme .gtb-compare {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      background: var(--bg-card);
      border: 1px solid var(--border-strong);
      border-radius: var(--radius-pill);
      font-size: 11px;
      font-weight: 600;
      color: var(--text-secondary);
      cursor: pointer;
    }
.v2-theme .refresh-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 12px;
      background: var(--chart-blue);
      color: #fff;
      border: none;
      border-radius: var(--radius-pill);
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      font-family: var(--font);
    }
.v2-theme .refresh-btn svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; }
.v2-theme .product-tab {
      padding: 14px 18px;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      gap: 8px;
      border-bottom: 3px solid transparent;
      cursor: pointer;
      white-space: nowrap;
    }
.v2-theme .product-tab.is-active {
      color: var(--chart-blue);
      border-bottom-color: var(--chart-blue);
    }
.v2-theme .product-tab .status {
      display: grid;
      place-items: center;
      width: 16px; height: 16px;
      border-radius: 50%;
      font-size: 10px;
      font-weight: 700;
    }
.v2-theme .product-tab .status.on { background: var(--chart-blue); color: #fff; }
.v2-theme .product-tab .status.off { background: var(--delta-down-bg); color: var(--delta-down); }
.v2-theme .product-tab .status.soon { background: var(--delta-flat-bg); color: var(--text-muted); }
.v2-theme .product-tab.is-soon {
      color: var(--text-faint);
      font-weight: 500;
    }
.v2-theme .product-tab.is-soon .status.soon {
      font-size: 8px;
      letter-spacing: 0;
    }
.v2-theme .content {
      padding: 24px 28px 0;
      max-width: var(--max-w);
    }
.v2-theme .tab-panel { display: none; }
.v2-theme .tab-panel.is-active { display: block; }
.v2-theme .page-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      margin-bottom: 18px;
      gap: 12px;
    }
.v2-theme .page-title {
      margin: 0;
      font-size: 22px;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--text-primary);
    }
.v2-theme .page-title small {
      display: block;
      font-size: 12px;
      font-weight: 500;
      color: var(--text-muted);
      margin-top: 2px;
      letter-spacing: 0;
    }
.v2-theme .page-actions {
      display: flex;
      gap: 8px;
      align-items: center;
    }
.v2-theme .btn {
      border: 1px solid var(--border);
      background: var(--bg-card);
      color: var(--text-secondary);
      padding: 7px 12px;
      border-radius: var(--radius-sm);
      font-size: 12px;
      font-weight: 600;
      font-family: var(--font);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
.v2-theme .btn:hover { background: var(--bg-card-soft); border-color: var(--border-strong); }
.v2-theme .btn.primary {
      background: var(--chart-blue);
      border-color: var(--chart-blue);
      color: #fff;
    }
.v2-theme .btn.primary:hover { background: #1557B0; border-color: #1557B0; }
.v2-theme .hero {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr 1fr;
      grid-template-rows: 1fr 1fr;
      gap: 14px;
      margin-bottom: 20px;
    }
.v2-theme .score-card {
      grid-column: 1 / 2;
      grid-row: 1 / 3;
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-card);
      padding: 22px;
      display: flex;
      flex-direction: column;
    }
.v2-theme .score-top {
      display: flex;
      align-items: center;
      gap: 18px;
    }
.v2-theme .score-donut {
      width: 130px;
      height: 130px;
      flex-shrink: 0;
      position: relative;
    }
.v2-theme .score-donut svg {
      transform: rotate(-90deg);
      width: 100%; height: 100%;
    }
.v2-theme .score-donut .score-num {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      flex-direction: column;
      text-align: center;
    }
.v2-theme .score-donut .score-num strong {
      display: block;
      font-size: 36px;
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--text-primary);
      line-height: 1;
    }
.v2-theme .score-donut .score-num span {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 4px;
      display: block;
    }
.v2-theme .score-meta { flex: 1; min-width: 0; }
.v2-theme .score-meta .label {
      font-size: 11px;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 4px;
    }
.v2-theme .score-meta .domain-line {
      font-size: 15px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 6px;
      letter-spacing: -0.01em;
    }
.v2-theme .score-meta .geo-line {
      font-size: 12px;
      color: var(--text-muted);
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 4px;
    }
.v2-theme .score-meta .audit-cta {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: var(--chart-blue);
      color: #fff;
      padding: 6px 12px;
      border-radius: var(--radius-pill);
      font-size: 12px;
      font-weight: 600;
      text-decoration: none;
    }
.v2-theme .score-substats {
      border-top: 1px solid var(--border);
      margin-top: 18px;
      padding-top: 14px;
      display: grid;
      gap: 8px;
    }
.v2-theme .score-substat {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 12px;
    }
.v2-theme .score-substat .key {
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      gap: 8px;
    }
.v2-theme .score-substat .key svg { width: 14px; height: 14px; }
.v2-theme .score-substat .val {
      font-weight: 600;
      color: var(--text-primary);
    }
.v2-theme .score-substat .val.warn { color: var(--delta-down); }
.v2-theme .kpi-tile {
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-card);
      padding: 18px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-height: 140px;
    }
.v2-theme .kpi-tile .kpi-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 8px;
    }
.v2-theme .kpi-tile .kpi-num {
      font-size: 32px;
      font-weight: 700;
      color: var(--chart-blue);
      line-height: 1;
      letter-spacing: -0.02em;
    }
.v2-theme .kpi-tile .kpi-num small {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-muted);
      margin-left: 4px;
    }
.v2-theme .kpi-tile .kpi-delta {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      font-size: 12px;
      font-weight: 600;
      padding: 2px 7px;
      border-radius: var(--radius-pill);
      white-space: nowrap;
    }
.v2-theme .kpi-tile .kpi-delta small {
      font-weight: 500;
      color: var(--text-muted);
      margin-left: 3px;
    }
.v2-theme .kpi-delta.up { background: var(--delta-up-bg);   color: var(--delta-up); }
.v2-theme .kpi-delta.down { background: var(--delta-down-bg); color: var(--delta-down); }
.v2-theme .kpi-delta.flat { background: var(--delta-flat-bg); color: var(--delta-flat); }
.v2-theme .kpi-tile .kpi-label {
      font-size: 13px;
      font-weight: 500;
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      gap: 5px;
    }
.v2-theme .info-i {
      width: 14px; height: 14px;
      border-radius: 50%;
      background: var(--bg-tint);
      color: var(--text-muted);
      font-size: 9px;
      font-weight: 700;
      display: inline-grid;
      place-items: center;
      cursor: help;
    }
.v2-theme .kpi-tile .kpi-viz {
      margin-top: auto;
      height: 32px;
    }
.v2-theme .kpi-viz svg { width: 100%; height: 100%; overflow: visible; }
.v2-theme .kpi-histogram {
      display: flex;
      align-items: flex-end;
      gap: 2px;
      height: 32px;
    }
.v2-theme .kpi-histogram .bar {
      flex: 1;
      background: var(--chart-blue);
      border-radius: 2px 2px 0 0;
      opacity: 0.85;
    }
.v2-theme .hero-mini-gauge {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid var(--border);
    }
.v2-theme .hero-mini-gauge .mini-donut {
      width: 56px; height: 56px;
      flex-shrink: 0;
      position: relative;
    }
.v2-theme .hero-mini-gauge .mini-donut svg {
      transform: rotate(-90deg);
      width: 100%; height: 100%;
    }
.v2-theme .hero-mini-gauge .mini-num {
      position: absolute; inset: 0;
      display: grid; place-items: center;
      font-size: 16px;
      font-weight: 700;
      color: var(--text-primary);
    }
.v2-theme .hero-mini-gauge .mini-meta { flex: 1; min-width: 0; }
.v2-theme .hero-mini-gauge .mini-label {
      font-size: 11px;
      color: var(--text-muted);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
.v2-theme .hero-mini-gauge .mini-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
      margin: 1px 0 3px;
    }
.v2-theme .section {
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-card);
      margin-bottom: 16px;
      overflow: hidden;
    }
.v2-theme .section-bare {
      margin-bottom: 16px;
    }
.v2-theme .section-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      padding: 18px 22px 12px;
      gap: 14px;
    }
.v2-theme .section-title-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }
.v2-theme .section-icon {
      width: 32px; height: 32px;
      border-radius: 8px;
      background: var(--bg-tint);
      display: grid; place-items: center;
      flex-shrink: 0;
    }
.v2-theme .section-icon svg {
      width: 18px; height: 18px;
      stroke: var(--text-secondary);
      stroke-width: 1.7;
      fill: none;
    }
.v2-theme .section-icon.blue { background: #E8F0FE; }
.v2-theme .section-icon.blue svg { stroke: var(--chart-blue); }
.v2-theme .section-icon.orange { background: #FEF7E0; }
.v2-theme .section-icon.orange svg { stroke: var(--chart-orange); }
.v2-theme .section-icon.green { background: var(--chart-green-soft); }
.v2-theme .section-icon.green svg { stroke: var(--chart-green); }
.v2-theme .section-icon.purple { background: #F3E8FD; }
.v2-theme .section-icon.purple svg { stroke: var(--chart-purple); }
.v2-theme .section-icon.red { background: var(--delta-down-bg); }
.v2-theme .section-icon.red svg { stroke: var(--delta-down); }
.v2-theme .section-title {
      margin: 0;
      font-size: 17px;
      font-weight: 700;
      color: var(--text-primary);
      letter-spacing: -0.01em;
      display: flex;
      align-items: center;
      gap: 6px;
    }
.v2-theme .section-title small {
      font-size: 11px;
      font-weight: 500;
      color: var(--text-muted);
      margin-left: 6px;
      letter-spacing: 0;
    }
.v2-theme .section-sub {
      font-size: 11px;
      color: var(--text-muted);
      margin: 3px 0 0;
      display: flex;
      align-items: center;
      gap: 8px;
    }
.v2-theme .section-sub .dot-sep { color: var(--text-faint); }
.v2-theme .section-sub .live-pulse {
      display: inline-block;
      width: 6px; height: 6px;
      background: var(--chart-green);
      border-radius: 50%;
      animation: pulse 1.8s ease-in-out infinite;
    }
.v2-theme .section-actions {
      display: flex;
      gap: 6px;
      align-items: center;
      flex-shrink: 0;
    }
.v2-theme .icon-btn {
      width: 32px; height: 32px;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      color: var(--text-secondary);
      cursor: pointer;
      display: grid; place-items: center;
      padding: 0;
      transition: background .12s;
    }
.v2-theme .icon-btn:hover {
      background: var(--bg-card-soft);
      border-color: var(--border-strong);
    }
.v2-theme .icon-btn svg { width: 16px; height: 16px; }
.v2-theme .icon-btn.excel { color: #107C41; }
.v2-theme .time-toggle {
      display: inline-flex;
      gap: 0;
      background: var(--bg-card-soft);
      border-radius: var(--radius-sm);
      padding: 3px;
      border: 1px solid var(--border);
    }
.v2-theme .time-toggle button {
      background: transparent;
      border: none;
      padding: 4px 10px;
      font-size: 11px;
      font-weight: 600;
      color: var(--text-secondary);
      font-family: var(--font);
      cursor: pointer;
      border-radius: 5px;
    }
.v2-theme .time-toggle button.is-active {
      background: var(--bg-card);
      color: var(--text-primary);
      box-shadow: var(--shadow-card);
    }
.v2-theme .section-body {
      padding: 6px 22px 22px;
    }
.v2-theme .movers-strip {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 10px;
      margin-bottom: 16px;
    }
.v2-theme .mover-card {
      background: var(--bg-card);
      border-radius: var(--radius);
      box-shadow: var(--shadow-card);
      padding: 14px;
      border-left: 3px solid var(--chart-green);
      display: flex;
      flex-direction: column;
      gap: 6px;
      min-height: 110px;
    }
.v2-theme .mover-card.is-decline { border-left-color: var(--chart-red); }
.v2-theme .mover-card .eye {
      font-size: 10px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }
.v2-theme .mover-card .head {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
      line-height: 1.35;
      flex: 1;
    }
.v2-theme .mover-card .foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
.v2-theme .mover-card .spark { width: 60px; height: 18px; }
.v2-theme .mover-card .spark svg { width: 100%; height: 100%; }
.v2-theme .mover-summary-card {
      background: linear-gradient(135deg, #E8F0FE 0%, #FFFFFF 100%);
      border-left-color: var(--chart-blue);
    }
.v2-theme .mover-summary-card .summary-num {
      font-size: 28px;
      font-weight: 700;
      color: var(--chart-blue);
      letter-spacing: -0.02em;
      line-height: 1;
    }
.v2-theme .mover-summary-card .summary-label {
      font-size: 12px;
      color: var(--text-secondary);
      font-weight: 500;
    }
.v2-theme .gsc-tile-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      margin-bottom: 16px;
    }
.v2-theme .gsc-tile {
      padding: 12px 14px;
      border-radius: var(--radius);
      color: #fff;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
.v2-theme .gsc-tile.clicks { background: linear-gradient(135deg, #1864C9 0%, #134A94 100%); }
.v2-theme .gsc-tile.impressions { background: linear-gradient(135deg, #B05900 0%, #8A4500 100%); }
.v2-theme .gsc-tile.ctr { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
.v2-theme .gsc-tile.pos { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
.v2-theme .gsc-tile .gsc-label {
      font-size: 11px;
      font-weight: 700;
      opacity: 0.95;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
.v2-theme .gsc-tile.ctr .gsc-label,
.v2-theme .gsc-tile.pos .gsc-label { color: var(--text-secondary); }
.v2-theme .gsc-tile .gsc-period {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 6px;
      margin-top: 2px;
    }
.v2-theme .gsc-tile .gsc-num {
      font-size: 20px;
      font-weight: 700;
      letter-spacing: -0.02em;
    }
.v2-theme .gsc-tile .gsc-range {
      font-size: 10px;
      opacity: 1;            
      font-weight: 500;
    }
.v2-theme .gsc-tile.ctr .gsc-range,
.v2-theme .gsc-tile.pos .gsc-range { color: var(--text-muted); opacity: 1; }
.v2-theme .gsc-tile .gsc-period.prior {
      opacity: 0.75;
      border-top: 1px dashed rgba(255,255,255,0.4);
      padding-top: 4px;
      margin-top: 6px;
    }
.v2-theme .gsc-tile.ctr .gsc-period.prior,
.v2-theme .gsc-tile.pos .gsc-period.prior {
      border-top-color: var(--border);
      opacity: 1; color: var(--text-muted);
    }
.v2-theme .chart-frame {
      width: 100%;
      height: 280px;
      position: relative;
    }
.v2-theme .chart-frame.tall { height: 320px; }
.v2-theme .chart-frame.short { height: 200px; }
.v2-theme .chart-svg {
      width: 100%; height: 100%;
      font-family: var(--font);
      font-size: 10px;
    }
.v2-theme .chart-svg .grid-line {
      stroke: var(--border);
      stroke-width: 1;
      stroke-dasharray: 2 3;
    }
.v2-theme .chart-svg .axis-line {
      stroke: var(--border-strong);
      stroke-width: 1;
    }
.v2-theme .chart-svg text {
      fill: var(--text-muted);
      font-size: 10px;
      font-family: var(--font);
    }
.v2-theme .chart-svg .axis-title {
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }
.v2-theme .table-trio {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 12px;
    }
.v2-theme .data-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12px;
    }
.v2-theme .data-table thead th {
      text-align: left;
      padding: 8px 10px;
      font-size: 11px;
      font-weight: 700;
      color: var(--text-secondary);
      background: var(--bg-card-soft);
      border-bottom: 1px solid var(--border);
      letter-spacing: 0.02em;
    }
.v2-theme .data-table thead th.num { text-align: right; }
.v2-theme .data-table tbody td {
      padding: 7px 10px;
      border-bottom: 1px solid var(--border);
      color: var(--text-primary);
    }
.v2-theme .data-table tbody td.num { text-align: right; font-variant-numeric: tabular-nums; }
.v2-theme .data-table tbody td.link { color: var(--chart-blue); }
.v2-theme .data-table tbody tr:hover { background: var(--bg-card-soft); }
.v2-theme .data-table tbody td .flag {
      display: inline-block;
      width: 16px; height: 11px;
      background: var(--bg-tint);
      border-radius: 2px;
      margin-right: 6px;
      vertical-align: middle;
      font-size: 9px;
      text-align: center;
      line-height: 11px;
    }
.v2-theme .data-table .pagi {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 10px;
      font-size: 11px;
      color: var(--text-muted);
    }
.v2-theme .table-wrap {
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      overflow: hidden;
    }
.v2-theme .table-wrap-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 12px;
      background: var(--bg-card-soft);
      border-bottom: 1px solid var(--border);
      font-size: 12px;
      font-weight: 700;
      color: var(--text-primary);
    }
.v2-theme .two-col {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 16px;
    }
.v2-theme .two-col.equal { grid-template-columns: 1fr 1fr; }
.v2-theme .key-events {
      background: var(--bg-card-soft);
      border-radius: var(--radius-sm);
      padding: 12px;
    }
.v2-theme .key-events h4 {
      margin: 0 0 8px;
      font-size: 12px;
      font-weight: 700;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
.v2-theme .key-event-row {
      display: flex;
      justify-content: space-between;
      padding: 5px 0;
      border-bottom: 1px solid var(--border);
      font-size: 12px;
    }
.v2-theme .key-event-row:last-child { border-bottom: none; }
.v2-theme .key-event-row .ev-name { color: var(--text-secondary); }
.v2-theme .key-event-row .ev-count { font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.v2-theme .matrix-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 11.5px;
    }
.v2-theme .matrix-table th,
.v2-theme .matrix-table td {
      padding: 6px 8px;
      text-align: right;
      border-bottom: 1px solid var(--border);
      font-variant-numeric: tabular-nums;
    }
.v2-theme .matrix-table th:first-child,
.v2-theme .matrix-table td:first-child {
      text-align: left;
    }
.v2-theme .matrix-table thead th {
      font-size: 10.5px;
      font-weight: 700;
      color: var(--text-secondary);
      background: var(--bg-card-soft);
      letter-spacing: 0.01em;
    }
.v2-theme .matrix-table tbody td.tot-row,
.v2-theme .matrix-table tbody tr.tot-row td {
      background: #F7FAFD;
      font-weight: 600;
    }
.v2-theme .matrix-table tbody tr.channel-head td {
      background: var(--bg-card-soft);
      color: var(--text-primary);
      font-weight: 700;
      font-size: 11.5px;
      padding-top: 10px;
      padding-bottom: 6px;
    }
.v2-theme .matrix-table tbody td .pct {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      font-weight: 600;
      font-size: 10.5px;
    }
.v2-theme .matrix-table tbody td .pct.up { color: var(--delta-up); }
.v2-theme .matrix-table tbody td .pct.down { color: var(--delta-down); }
.v2-theme .serp-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 8px;
    }
.v2-theme .serp-tile {
      background: var(--bg-card-soft);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 10px 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
.v2-theme .serp-tile.is-zero { opacity: 0.4; }
.v2-theme .serp-tile .si {
      width: 28px; height: 28px;
      border-radius: 6px;
      background: var(--bg-card);
      display: grid; place-items: center;
      flex-shrink: 0;
      color: var(--text-secondary);
      font-size: 14px;
      font-weight: 600;
    }
.v2-theme .serp-tile .sn { line-height: 1.25; min-width: 0; }
.v2-theme .serp-tile .sn b {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-primary);
      display: block;
    }
.v2-theme .serp-tile .sn span {
      font-size: 10px;
      color: var(--text-muted);
    }
.v2-theme .lkt {
      display: grid;
      grid-template-columns: 3fr 2fr;
      gap: 12px;
    }
.v2-theme .lkt-tiles {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }
.v2-theme .lkt-tile {
      background: var(--bg-card-soft);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 16px;
      text-align: center;
    }
.v2-theme .lkt-tile .num {
      font-size: 28px;
      font-weight: 700;
      color: var(--chart-green);
      letter-spacing: -0.02em;
      line-height: 1;
    }
.v2-theme .lkt-tile .num small {
      font-size: 15px;
      color: var(--text-muted);
      font-weight: 500;
    }
.v2-theme .lkt-tile .lbl {
      font-size: 12px;
      color: var(--text-secondary);
      margin-top: 4px;
      font-weight: 500;
    }
.v2-theme .lkt-tile .since {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 10px;
      padding-top: 8px;
      border-top: 1px solid var(--border);
    }
.v2-theme .lkt-tile .since .up { color: var(--delta-up); }
.v2-theme .lkt-tile .since .down { color: var(--delta-down); }
.v2-theme .rank-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 0 0 14px;
      align-items: center;
      font-size: 12px;
    }
.v2-theme .rank-filters .filter-pill {
      padding: 5px 10px;
      background: var(--bg-card-soft);
      border: 1px solid var(--border);
      border-radius: var(--radius-pill);
      font-weight: 500;
      color: var(--text-secondary);
      display: inline-flex;
      align-items: center;
      gap: 4px;
      cursor: pointer;
    }
.v2-theme .rank-filters .filter-pill svg { width: 11px; height: 11px; }
.v2-theme .rank-table-wrap { overflow-x: auto; }
.v2-theme .rank-table {
      width: 100%;
      min-width: 1100px;
      border-collapse: collapse;
      font-size: 12px;
    }
.v2-theme .rank-table thead th {
      text-align: left;
      padding: 8px 8px;
      font-size: 11px;
      font-weight: 700;
      color: var(--text-secondary);
      background: var(--bg-card-soft);
      border-bottom: 1px solid var(--border);
      white-space: nowrap;
    }
.v2-theme .rank-table tbody td {
      padding: 7px 8px;
      border-bottom: 1px solid var(--border);
      white-space: nowrap;
    }
.v2-theme .rank-table tbody tr.fav { background: #FFF8E1; }
.v2-theme .rank-table .intent-badge {
      display: inline-grid;
      place-items: center;
      width: 20px; height: 20px;
      border-radius: 4px;
      color: #fff;
      font-size: 10px;
      font-weight: 700;
    }
.v2-theme .intent-T { background: #1E8E3E; }
.v2-theme .intent-I { background: #1A73E8; }
.v2-theme .intent-C { background: #FBBC04; color: #1A2940; }
.v2-theme .intent-N { background: #9334E6; }
.v2-theme .rank-table .delta-arrow.up { color: var(--delta-up); font-weight: 600; }
.v2-theme .rank-table .delta-arrow.down { color: var(--delta-down); font-weight: 600; }
.v2-theme .intent-bar {
      display: flex;
      height: 12px;
      border-radius: 6px;
      overflow: hidden;
      margin-bottom: 12px;
    }
.v2-theme .intent-bar > span {
      display: block;
    }
.v2-theme .intent-list {
      display: grid;
      gap: 6px;
    }
.v2-theme .intent-list .row {
      display: grid;
      grid-template-columns: 16px 1fr 70px 70px 90px;
      align-items: center;
      gap: 10px;
      font-size: 12px;
    }
.v2-theme .intent-list .row .dot {
      width: 10px; height: 10px;
      border-radius: 50%;
    }
.v2-theme .kw-tabs {
      display: flex;
      gap: 0;
      border-bottom: 1px solid var(--border);
      margin-bottom: 10px;
    }
.v2-theme .kw-tab {
      padding: 8px 14px;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-muted);
      cursor: pointer;
      border-bottom: 2px solid transparent;
      margin-bottom: -1px;
    }
.v2-theme .kw-tab.is-active {
      color: var(--text-primary);
      border-bottom-color: var(--chart-blue);
    }
.v2-theme .sev-bars {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 10px;
      margin-bottom: 16px;
    }
.v2-theme .sev-bar {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 12px;
    }
.v2-theme .sev-bar .top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 6px;
    }
.v2-theme .sev-bar .name {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 6px;
    }
.v2-theme .sev-bar .dot {
      width: 8px; height: 8px;
      border-radius: 50%;
    }
.v2-theme .sev-bar .count {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-primary);
    }
.v2-theme .sev-bar .bar {
      height: 6px;
      border-radius: 3px;
      background: var(--bg-tint);
      overflow: hidden;
    }
.v2-theme .sev-bar .bar > i {
      display: block;
      height: 100%;
      border-radius: 3px;
    }
.v2-theme .sev-bar .pct {
      font-size: 10px;
      color: var(--text-muted);
      margin-top: 4px;
      text-align: right;
    }
.v2-theme .empty-banner {
      background: linear-gradient(90deg, #FEF7E0 0%, #FFFFFF 100%);
      border: 1px solid #FCD988;
      border-left: 3px solid #FBBC04;
      border-radius: var(--radius-sm);
      padding: 12px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
      font-size: 13px;
    }
.v2-theme .empty-banner svg {
      width: 18px; height: 18px;
      stroke: #C56700;
      flex-shrink: 0;
    }
.v2-theme .empty-banner b { color: var(--text-primary); }
.v2-theme .empty-banner .em-meta { color: var(--text-secondary); font-size: 12px; }
.v2-theme .delta-pill {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      font-size: 11px;
      font-weight: 600;
      padding: 2px 7px;
      border-radius: var(--radius-pill);
      vertical-align: middle;
    }
.v2-theme .delta-pill.up { background: var(--delta-up-bg);   color: var(--delta-up); }
.v2-theme .delta-pill.down { background: var(--delta-down-bg); color: var(--delta-down); }
.v2-theme .delta-pill.flat { background: var(--delta-flat-bg); color: var(--delta-flat); }
.v2-theme .demo-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 10px;
      font-weight: 700;
      background: var(--delta-flat-bg);
      color: var(--text-muted);
      padding: 2px 6px;
      border-radius: var(--radius-pill);
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }
.v2-theme .ask-ai {
      position: fixed;
      right: 24px;
      bottom: 24px;
      background: linear-gradient(135deg, #1F2A3D 0%, #3F4F6E 100%);
      color: #fff;
      padding: 11px 18px;
      border-radius: var(--radius-pill);
      box-shadow: var(--shadow-fab);
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      z-index: 100;
      border: none;
      font-family: var(--font);
    }
.v2-theme .ask-ai svg {
      width: 16px; height: 16px;
      fill: #6AABB5;
    }
.v2-theme .scroll-top {
      position: fixed;
      right: 24px;
      bottom: 78px;
      width: 38px; height: 38px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 50%;
      box-shadow: var(--shadow-card);
      display: grid;
      place-items: center;
      cursor: pointer;
      z-index: 99;
    }
.v2-theme .scroll-top svg { width: 16px; height: 16px; stroke: var(--text-secondary); }
.v2-theme .preview-pin {
      position: fixed;
      top: 10px;
      right: 14px;
      z-index: 200;
      background: #1F2A3D;
      color: #6AABB5;
      padding: 5px 11px;
      border-radius: var(--radius-pill);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.04em;
      box-shadow: var(--shadow-card);
    }
.v2-theme .stub-panel {
      padding: 60px 40px;
      text-align: center;
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-card);
    }
.v2-theme .stub-panel h2 {
      margin: 0 0 8px;
      font-size: 22px;
      font-weight: 700;
      letter-spacing: -0.015em;
    }
.v2-theme .stub-panel .stub-icon {
      width: 56px; height: 56px;
      background: var(--bg-tint);
      border-radius: 50%;
      display: inline-grid;
      place-items: center;
      margin-bottom: 14px;
    }
.v2-theme .stub-panel .stub-icon svg {
      width: 26px; height: 26px;
      stroke: var(--text-muted);
      stroke-width: 1.5;
      fill: none;
    }
.v2-theme .stub-panel p {
      color: var(--text-secondary);
      max-width: 520px;
      margin: 0 auto 16px;
      font-size: 14px;
    }
.v2-theme .stub-panel .module-list {
      display: inline-block;
      text-align: left;
      background: var(--bg-card-soft);
      border-radius: var(--radius);
      padding: 14px 22px;
      font-size: 12px;
      color: var(--text-secondary);
      line-height: 1.7;
    }
.v2-theme .stub-panel .module-list b { color: var(--text-primary); }
.v2-theme .row-link { color: var(--chart-blue); text-decoration: none; }
.v2-theme .row-link:hover { text-decoration: underline; }
.v2-theme .nf-badge { display: inline-block; padding: 1px 5px; background: var(--bg-tint); color: var(--text-secondary); font-size: 10px; font-weight: 700; border-radius: 3px; }
.v2-theme .nf-badge.f { background: #E6F4EA; color: var(--chart-green); }
.v2-theme .heatmap-frame {
      position: relative;
      background: linear-gradient(135deg, #E8EEF5 0%, #DDE6F0 100%);
      border-radius: var(--radius);
      overflow: hidden;
      aspect-ratio: 1 / 1;
      border: 1px solid var(--border);
    }
.v2-theme .heatmap-frame::before {
      content: "";
      position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);
      background-size: 11.11% 11.11%;
      pointer-events: none;
    }
.v2-theme .heatmap-frame .map-label {
      position: absolute;
      top: 8px; left: 10px;
      background: rgba(255,255,255,0.92);
      padding: 4px 10px;
      border-radius: var(--radius-pill);
      font-size: 11px;
      font-weight: 700;
      color: var(--text-primary);
      box-shadow: var(--shadow-card);
    }
.v2-theme .heatmap-frame .map-cred {
      position: absolute;
      bottom: 6px; right: 8px;
      font-size: 9px;
      color: var(--text-muted);
      background: rgba(255,255,255,.7);
      padding: 1px 5px;
      border-radius: 3px;
    }
.v2-theme .grid-pts {
      position: absolute; inset: 8%;
      display: grid;
      grid-template-columns: repeat(9, 1fr);
      grid-template-rows: repeat(9, 1fr);
      gap: 0;
    }
.v2-theme .gp {
      display: grid;
      place-items: center;
      font-size: 10px;
      font-weight: 700;
    }
.v2-theme .gp > span {
      width: 22px; height: 22px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: #fff;
      box-shadow: 0 1px 3px rgba(0,0,0,0.25);
      border: 1.5px solid rgba(255,255,255,0.7);
    }
.v2-theme .gp .top3 { background: #1E8E3E; }
.v2-theme .gp .top10 { background: #34A853; }
.v2-theme .gp .top20 { background: #FBBC04; color: #1A2940; }
.v2-theme .gp .top50 { background: #F29900; }
.v2-theme .gp .top100 { background: #D93025; }
.v2-theme .gp .out { background: #80868B; font-size: 9px; }
.v2-theme .gp .star { width: 28px; height: 28px; font-size: 11px; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.v2-theme .heatmap-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      font-size: 11px;
      color: var(--text-secondary);
      padding: 8px 0;
    }
.v2-theme .heatmap-legend span {
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
.v2-theme .heatmap-legend i {
      width: 11px; height: 11px;
      border-radius: 50%;
      display: inline-block;
    }
.v2-theme .baseline-vs-current {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      gap: 14px;
      align-items: stretch;
      min-width: 0;
    }
.v2-theme .compare-arrow {
      display: grid;
      place-items: center;
      width: 56px;
    }
.v2-theme .compare-arrow .arrow-stack {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 16px 8px;
      text-align: center;
      box-shadow: var(--shadow-card);
    }
.v2-theme .compare-arrow .arrow-stack svg { width: 24px; height: 24px; stroke: var(--chart-blue); fill: none; stroke-width: 2; }
.v2-theme .compare-arrow .arrow-stack div { font-size: 9px; color: var(--text-muted); margin-top: 4px; }
.v2-theme .delta-summary {
      background: var(--bg-card-soft);
      border-radius: var(--radius-sm);
      padding: 14px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-top: 14px;
    }
.v2-theme .delta-summary .ds-tile {
      text-align: center;
      padding: 8px 0;
    }
.v2-theme .delta-summary .ds-num {
      font-size: 24px;
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1;
    }
.v2-theme .delta-summary .ds-num.up { color: var(--delta-up); }
.v2-theme .delta-summary .ds-num.down { color: var(--delta-down); }
.v2-theme .delta-summary .ds-lbl {
      font-size: 11px;
      color: var(--text-secondary);
      margin-top: 4px;
      font-weight: 500;
    }
.v2-theme .delta-summary .ds-sub {
      font-size: 10px;
      color: var(--text-muted);
      margin-top: 2px;
    }
.v2-theme .keyword-selector {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      padding: 10px 0;
    }
.v2-theme .keyword-selector .kw-select {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      background: var(--bg-card);
      border: 1px solid var(--border-strong);
      border-radius: var(--radius-sm);
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
      cursor: pointer;
      min-width: 240px;
      justify-content: space-between;
    }
.v2-theme .keyword-selector .kw-select small {
      font-weight: 500;
      color: var(--text-muted);
      font-size: 11px;
    }
.v2-theme .view-toggle {
      display: inline-flex;
      background: var(--bg-card-soft);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 3px;
    }
.v2-theme .view-toggle button {
      background: transparent;
      border: none;
      padding: 6px 12px;
      font-size: 11.5px;
      font-weight: 600;
      color: var(--text-secondary);
      font-family: var(--font);
      cursor: pointer;
      border-radius: 5px;
    }
.v2-theme .view-toggle button.is-active {
      background: var(--bg-card);
      color: var(--text-primary);
      box-shadow: var(--shadow-card);
    }
.v2-theme .gbp-history-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }
.v2-theme .gbp-mini {
      background: var(--bg-card-soft);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 12px;
    }
.v2-theme .gbp-mini .gm-top {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: 6px;
    }
.v2-theme .gbp-mini .gm-label {
      font-size: 11px;
      color: var(--text-secondary);
      font-weight: 600;
    }
.v2-theme .gbp-mini .gm-num {
      font-size: 16px;
      font-weight: 700;
      color: var(--text-primary);
    }
.v2-theme .gbp-mini .gm-spark { height: 32px; }
.v2-theme .gbp-mini .gm-spark svg { width: 100%; height: 100%; }
.v2-theme .gbp-mini .gm-foot {
      display: flex;
      justify-content: space-between;
      font-size: 10px;
      color: var(--text-muted);
      margin-top: 4px;
    }
.v2-theme .reviews-mini {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 14px;
      align-items: center;
      padding: 14px;
      background: linear-gradient(135deg, #FEF7E0 0%, #FFFFFF 100%);
      border-left: 3px solid #FBBC04;
      border-radius: var(--radius);
    }
.v2-theme .reviews-mini .rm-rating {
      text-align: center;
      padding-right: 14px;
      border-right: 1px solid var(--border);
    }
.v2-theme .reviews-mini .rm-rating strong {
      font-size: 28px;
      font-weight: 700;
      color: var(--text-primary);
      letter-spacing: -0.02em;
    }
.v2-theme .reviews-mini .rm-rating small {
      display: block;
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 2px;
    }
.v2-theme .reviews-mini .rm-feed { font-size: 12px; }
.v2-theme .reviews-mini .rm-row {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 2px 0;
    }
.v2-theme .reviews-mini .rm-row .stars { color: #FBBC04; font-size: 11px; letter-spacing: -1px; }
.v2-theme .local-pack-table .rank-num {
      display: inline-grid;
      place-items: center;
      width: 24px; height: 24px;
      border-radius: 50%;
      color: #fff;
      font-weight: 700;
      font-size: 11px;
    }
.v2-theme .local-pack-table .rank-num.pos1 { background: #1E8E3E; }
.v2-theme .local-pack-table .rank-num.pos2 { background: #34A853; }
.v2-theme .local-pack-table .rank-num.pos3 { background: #FBBC04; color: #1A2940; }
.v2-theme .local-pack-table .rank-num.posOther { background: #80868B; }
.v2-theme .snapshot-strip {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding: 6px 0;
      min-width: 0;
    }
.v2-theme .snapshot-card {
      flex: 0 0 140px;
      background: var(--bg-card-soft);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 10px;
      text-align: center;
    }
.v2-theme .snapshot-card.is-current {
      border-color: var(--chart-blue);
      background: #E8F0FE;
    }
.v2-theme .snapshot-card .sc-date {
      font-size: 11px;
      font-weight: 600;
      color: var(--text-secondary);
    }
.v2-theme .snapshot-card .sc-mini-grid {
      display: grid;
      grid-template-columns: repeat(9, 1fr);
      grid-template-rows: repeat(9, 1fr);
      gap: 1px;
      aspect-ratio: 1 / 1;
      margin: 8px 0;
    }
.v2-theme .snapshot-card .sc-mini-grid > i {
      display: block;
      border-radius: 1px;
    }
.v2-theme .snapshot-card .sc-avg {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-primary);
    }
.v2-theme .snapshot-card .sc-avg-lbl {
      font-size: 10px;
      color: var(--text-muted);
    }

/* Column-header info tooltips (e.g. GBP Keyword Rankings "Best rank seen" / "Grid
   coverage"). The base styles in components.css use dark-theme tokens (dark navy
   icon + dark tooltip), which on the light v2 surface render as an unreadable black
   dot + a dark box that clashes with the dashboard. Re-skin them light + legible. */
.v2-theme .info-icon-btn {
      background: var(--bg-card-soft);
      color: var(--chart-blue);
      border: 1px solid var(--border-strong);
      width: 15px;
      height: 15px;
      font-size: 10px;
    }
.v2-theme .info-icon-btn:hover,
.v2-theme .info-icon-btn:focus-visible {
      background: #E8F0FE;
      color: var(--chart-blue);
      border-color: var(--chart-blue);
    }
.v2-theme .col-tooltip {
      width: 250px;
      background: var(--bg-card);
      color: var(--text-secondary);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      box-shadow: 0 10px 28px rgba(26, 41, 64, 0.18);
      font-weight: 400;
      text-transform: none;
      letter-spacing: normal;
    }

/* Leaflet heatmap legend control ("Avg position" key, bottom-left of the map). The
   base style (components.css) gives it a dark-navy background — on the light v2 map
   the dark-red swatches (#21-50 / #51-100) and the text disappear into it. Re-skin
   light so the whole key is legible. */
.v2-theme .heatmap-legend-ctrl {
      background: rgba(255, 255, 255, 0.96);
      color: var(--text-secondary);
      border: 1px solid var(--border);
      box-shadow: 0 4px 14px rgba(26, 41, 64, 0.16);
    }

/* Keyword table ↔ map link: highlight the row whose keyword the map is showing. */
.v2-theme .hm-kw-row { cursor: pointer; transition: background 0.15s; }
.v2-theme .hm-kw-row:hover { background: var(--bg-card-soft); }
.v2-theme .hm-kw-row.is-active-kw { background: #E8F0FE; box-shadow: inset 3px 0 0 var(--chart-blue); }
/* Sidebar competitor rows now open the head-to-head compare — make them feel clickable. */
.v2-theme .hm-comp-row { cursor: pointer; border-radius: var(--radius-sm); transition: background 0.15s; }
.v2-theme .hm-comp-row:hover { background: #E8F0FE; }
/* Competitor table rows expand to a keyword + backlink drill-down. */
.v2-theme .comp-main-row { cursor: pointer; transition: background 0.15s; }
.v2-theme .comp-main-row:hover { background: var(--bg-card-soft); }
.v2-theme .comp-chevron { display: inline-block; width: 12px; color: var(--text-muted); font-size: 10px; }

/* ── Phase 69 integration overrides (not from mockup) ── */
.v2-theme {
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 0;
  max-width: none;
}
.v2-theme * { box-sizing: border-box; }
/* content centered at the mockup max-width; the light section bg bleeds full
   width behind it so wide viewports show light gutters, not the dark body. */
.v2-theme .v2-page { max-width: var(--max-w); margin: 0 auto; padding: 24px 28px 64px; }
/* fill the viewport below the 64px header so the short loading state never
   reveals the dark body during a tab switch */
.v2-theme.tab-content { min-height: calc(100vh - 64px); }
