/* Extracted from public/dashboard.html during Eleventy migration.
   :root, font import, global reset, and focus-ring styles removed
   during Phase 6 token migration — those live in tokens.css /
   base.css now and apply globally. The --blue alias used by the old
   stoplight metric palette is removed; metric cards now use the
   recovery-green system with red reserved for true error states. */

    /* Local --blue is intentionally kept ONLY for the demo banner
       (see .demo-banner block below). The four metric cards used to
       use red/orange/green/blue stoplight colors; they now derive
       semantic meaning from the value sign + a single brand accent. */

    @keyframes pulse {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: 0.4;
      }
    }

    /* .btn / .btn-primary now live in components.css with a 44px min-
       height tap target. Dashboard-specific overrides below are
       intentionally narrow. */
    .btn-primary { color: var(--fg-on-accent); }

    .container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 32px;
    }

    .page-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 24px;
    }

    .page-title {
      font-family: var(--font-serif);
      font-size: clamp(2rem, 4vw, 2.75rem);
      font-weight: var(--weight-medium);
      letter-spacing: var(--tracking-tight);
      line-height: 1.1;
    }

    .page-subtitle {
      font-size: 14px;
      color: var(--text-dim);
      margin-top: 6px;
    }

    /* ── Metric Cards ─────────────────── */
    .metrics-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      margin-bottom: 24px;
    }

    .metric-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
      position: relative;
      overflow: hidden;
    }

    .metric-card::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
    }

    .metric-card.card-red::after {
      background: var(--red);
    }

    .metric-card.card-green::after {
      background: var(--green);
    }

    .metric-card.card-blue::after {
      background: var(--blue);
    }

    .metric-card.card-orange::after {
      background: var(--orange);
    }

    .metric-label {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-dim);
      margin-bottom: 8px;
    }

    .metric-value {
      font-family: var(--font-serif);
      font-size: clamp(2rem, 3vw, 2.5rem);
      font-weight: var(--weight-semibold);
      letter-spacing: var(--tracking-tight);
      line-height: 1.05;
      color: var(--fg-strong);
    }

    /* Color is reserved for semantic meaning: green = recovered/up,
       red = lost/down. Orange and blue used to be stoplight accents
       but have been desaturated to neutral so the dashboard reads as
       one product with the marketing pages (recovery-green only). */
    .metric-value.green { color: var(--accent); }
    .metric-value.red   { color: var(--danger-500); }
    .metric-value.orange,
    .metric-value.blue  { color: var(--fg-strong); }

    .metric-sub {
      font-size: 12px;
      color: var(--text-dim);
      margin-top: 4px;
    }

    /* ── Manual actions ──────────────────
       The dunning + retry triggers fire real emails / charges. They
       used to sit in the topbar where a misclick would mass-email
       customers. They're now demoted into a collapsed <details>
       panel and require a confirmation modal before firing. */
    .manual-actions {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      margin-bottom: 24px;
    }
    .manual-actions > summary {
      cursor: pointer;
      list-style: none;
      padding: 14px 20px;
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 8px 14px;
    }
    .manual-actions > summary::-webkit-details-marker { display: none; }
    .manual-actions > summary::before {
      content: "▸";
      color: var(--text-dim);
      font-size: 12px;
      transition: transform 0.15s;
    }
    .manual-actions[open] > summary::before { transform: rotate(90deg); }
    .manual-actions-label {
      font-size: 13px;
      font-weight: var(--weight-semibold);
      color: var(--text);
    }
    .manual-actions-hint {
      font-size: 12px;
      color: var(--text-dim);
    }
    .manual-actions-body {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      padding: 0 20px 16px;
    }

    /* ── Upsell cards (Lite/Starter view) ──────────
       Used for the blurred-preview-with-overlay panels: Recovery
       Insights, Smart Save, Churn Risk, Win-Back. The blurred body is
       feature-specific (passed as macro caller body); the chrome and
       CTA overlay are shared. */
    .upsell-card {
      position: relative;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
      min-height: 280px;
      margin-bottom: 24px;
    }
    .upsell-card--tall { min-height: 320px; }

    .upsell-card-blur {
      filter: blur(3px);
      opacity: 0.45;
      pointer-events: none;
      user-select: none;
    }

    .upsell-card-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(7, 16, 26, 0.55);
      backdrop-filter: blur(1px);
      -webkit-backdrop-filter: blur(1px);
      border-radius: 12px;
    }
    .upsell-card-overlay-content {
      text-align: center;
      max-width: 400px;
      padding: 32px;
    }
    .upsell-card-icon {
      font-size: 36px;
      line-height: 1;
      margin-bottom: 12px;
    }
    .upsell-card-title {
      font-size: 20px;
      font-weight: var(--weight-bold);
      margin-bottom: 10px;
      color: var(--text);
    }
    .upsell-card-desc {
      font-size: 14px;
      color: var(--text-dim);
      margin-bottom: 8px;
      line-height: 1.5;
    }
    .upsell-card-desc strong { color: var(--accent); font-weight: 600; }
    .upsell-card-sub {
      font-size: 13px;
      color: var(--text-dim);
      margin-bottom: 24px;
    }
    .upsell-card-cta {
      display: inline-block;
      padding: 14px 32px;
      font-size: 15px;
      font-weight: var(--weight-bold);
      background: var(--accent);
      color: var(--fg-on-accent);
      border-radius: 10px;
      border: none;
      cursor: pointer;
      font-family: inherit;
      min-height: 44px;
    }
    .upsell-card-cta:hover { opacity: 0.9; }

    /* Sub-elements often used in the blurred preview body */
    .upsell-card-header {
      padding: 20px 24px;
      display: flex;
      align-items: center;
      gap: 10px;
      border-bottom: 1px solid var(--border);
    }
    .upsell-card-header-icon { font-size: 20px; }
    .upsell-card-header-title {
      font-size: 16px;
      font-weight: var(--weight-bold);
    }
    .upsell-card-stat-grid {
      display: grid;
      gap: 0;
    }
    .upsell-card-stat {
      padding: 16px 24px;
      text-align: center;
      border-right: 1px solid var(--border);
    }
    .upsell-card-stat:last-child { border-right: none; }
    .upsell-card-stat-value {
      font-size: 24px;
      font-weight: var(--weight-bold);
    }
    .upsell-card-stat-label {
      font-size: 12px;
      color: var(--text-dim);
      margin-top: 2px;
    }

    .currency-note {
      font-size: 11px;
      color: var(--text-dim);
      opacity: 0.7;
    }

    /* ── Charts ───────────────────────── */
    .charts-row {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 16px;
      margin-bottom: 24px;
    }

    .chart-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
    }

    .chart-title {
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 16px;
    }

    .chart-container {
      position: relative;
      width: 100%;
    }

    /* SVG charts. Token-driven styling so the bar/legend/axis
       colors stay in sync with the rest of the dashboard. CSS
       variables only resolve from `style`/stylesheet rules — not
       from raw `fill="…"` SVG attributes — so we apply them via
       class selectors here. */
    .chart-svg {
      width: 100%;
      height: 220px;
    }
    @media (max-width: 720px) {
      .chart-svg { height: 320px; }
    }
    .chart-svg .chart-bar-risk      { fill: var(--danger-500); fill-opacity: 0.7; }
    .chart-svg .chart-bar-recovered { fill: var(--accent);     fill-opacity: 0.85; }
    .chart-svg .chart-line-risk     { stroke: var(--danger-500); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .chart-svg .chart-line-recovered{ stroke: var(--accent);     fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .chart-svg .chart-area-risk     { fill: var(--danger-500); fill-opacity: 0.1; }
    .chart-svg .chart-axis-label    { fill: var(--text-dim); }
    .chart-svg .chart-legend-label  { fill: var(--text); }
    .chart-svg .chart-grid-line     { stroke: var(--border-subtle); }
    /* Text size in CSS pixels (not SVG user units) so labels stay
       readable when the SVG scales down on phone-width viewports. */
    .chart-svg .chart-axis-label,
    .chart-svg .chart-legend-label { font-size: 12px; }
    @media (max-width: 720px) {
      .chart-svg .chart-axis-label,
      .chart-svg .chart-legend-label { font-size: 13px; }
    }

    .chart-svg text {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    /* Donut chart */
    .donut-container {
      display: flex;
      align-items: center;
      gap: 24px;
    }

    .donut-svg {
      width: 140px;
      height: 140px;
      flex-shrink: 0;
    }

    .donut-legend {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .legend-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
    }

    .legend-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .legend-value {
      font-weight: 600;
      margin-left: auto;
      padding-left: 12px;
    }

    /* Category cards row */
    .category-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-bottom: 24px;
    }

    /* ── Tables ───────────────────────── */
    .section {
      margin-bottom: 24px;
    }

    .section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    .section-title {
      font-size: 16px;
      font-weight: 600;
    }

    .section-count {
      font-size: 12px;
      color: var(--text-dim);
      background: var(--surface-2);
      padding: 2px 10px;
      border-radius: 10px;
      margin-left: 8px;
    }

    .table-wrap {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
    }

    thead th {
      text-align: left;
      padding: 12px 16px;
      background: var(--surface-2);
      color: var(--text-dim);
      font-weight: 500;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      border-bottom: 1px solid var(--border);
    }

    tbody td {
      padding: 12px 16px;
      border-bottom: 1px solid var(--border);
      vertical-align: middle;
    }

    tbody tr:last-child td {
      border-bottom: none;
    }

    tbody tr:hover {
      background: var(--surface-2);
    }

    /* ── Stacked-card tables on mobile ─────────────────
       Below 720px each row reformats from table cells into a card
       with column-label + value pairs stacked vertically. The
       data-label attribute on each <td> (set in renderFailures /
       renderDunning / renderRetries / renderEventLog) drives the
       label text — no need to keep the <thead> visible. */
    @media (max-width: 720px) {
      .table-wrap { overflow-x: visible; }
      table thead { display: none; }
      table, tbody, tr, td { display: block; width: 100%; box-sizing: border-box; }
      tbody tr {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border);
      }
      tbody tr:last-child { border-bottom: none; }
      tbody tr:hover { background: transparent; }
      tbody td {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 12px;
        padding: 6px 0;
        border-bottom: none;
        text-align: right;
      }
      tbody td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 600;
        color: var(--text-dim);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        flex-shrink: 0;
        text-align: left;
      }
      /* Cells without a data-label (e.g. the empty-state row) skip
         the label and span full width. */
      tbody td:not([data-label]) {
        display: block;
        text-align: center;
      }
      tbody td:not([data-label])::before { content: none; }
      /* Multi-line cells (Customer name + email, Event dot + badge)
         right-align their internal stack so the label/value pair
         keeps its visual weight. */
      tbody td > div { display: block; text-align: right; }
      tbody td .event-type-cell { justify-content: flex-end; }
    }

    .badge {
      display: inline-block;
      padding: 3px 10px;
      border-radius: 12px;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
    }

    .badge-new {
      background: rgba(52, 152, 219, .15);
      color: var(--blue);
    }

    .badge-retrying {
      background: rgba(243, 156, 18, .15);
      color: var(--orange);
    }

    .badge-dunning {
      background: rgba(108, 92, 231, .15);
      color: var(--accent);
    }

    .badge-recovered {
      background: rgba(0, 184, 148, .15);
      color: var(--green);
    }

    .badge-abandoned {
      background: rgba(231, 76, 60, .15);
      color: var(--red);
    }

    .badge-soft {
      background: rgba(243, 156, 18, .15);
      color: var(--orange);
    }

    .badge-hard {
      background: rgba(231, 76, 60, .15);
      color: var(--red);
    }

    .badge-fraud {
      background: rgba(231, 76, 60, .2);
      color: #ff6b6b;
    }

    .badge-scheduled {
      background: rgba(52, 152, 219, .15);
      color: var(--blue);
    }

    .badge-sent {
      background: rgba(0, 184, 148, .15);
      color: var(--green);
    }

    .badge-canceled {
      background: rgba(136, 136, 160, .15);
      color: var(--text-dim);
    }

    .badge-pending {
      background: rgba(243, 156, 18, .15);
      color: var(--orange);
    }

    .badge-success {
      background: rgba(0, 184, 148, .15);
      color: var(--green);
    }

    .badge-failed {
      background: rgba(231, 76, 60, .15);
      color: var(--red);
    }

    .badge-skipped {
      background: rgba(136, 136, 160, .15);
      color: var(--text-dim);
    }

    /* Event log badges */
    .badge-payment_failed {
      background: rgba(231, 76, 60, .15);
      color: var(--red);
    }

    .badge-payment_recovered {
      background: rgba(0, 184, 148, .15);
      color: var(--green);
    }

    .badge-retry_attempted {
      background: rgba(52, 152, 219, .15);
      color: var(--blue);
    }

    .badge-dunning_sent {
      background: rgba(243, 156, 18, .15);
      color: var(--orange);
    }

    .badge-dunning_scheduled {
      background: rgba(108, 92, 231, .15);
      color: var(--accent);
    }

    .event-dot {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      margin-right: 8px;
      flex-shrink: 0;
    }

    .event-dot.payment_failed {
      background: var(--red);
    }

    .event-dot.payment_recovered {
      background: var(--green);
    }

    .event-dot.retry_attempted {
      background: var(--blue);
    }

    .event-dot.dunning_sent {
      background: var(--orange);
    }

    .event-dot.dunning_scheduled {
      background: var(--accent);
    }

    .event-type-cell {
      display: flex;
      align-items: center;
    }

    .load-more-wrap {
      text-align: center;
      padding: 16px;
    }

    .empty-state {
      padding: 40px;
      text-align: center;
      color: var(--text-dim);
    }
    @media (max-width: 720px) {
      .empty-state { padding: 24px 16px; font-size: 13px; line-height: 1.5; }
    }

    .loading {
      padding: 40px;
      text-align: center;
      color: var(--text-dim);
    }

    .time-ago {
      color: var(--text-dim);
    }

    /* ── Export Dropdown ──────────────── */
    .export-wrap {
      position: relative;
      display: inline-block;
    }

    .export-menu {
      display: none;
      position: absolute;
      top: calc(100% + 4px);
      right: 0;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      min-width: 200px;
      z-index: 200;
      box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
      padding: 4px 0;
    }

    .export-wrap.open .export-menu {
      display: block;
    }

    .export-menu button {
      display: block;
      width: 100%;
      padding: 10px 16px;
      background: none;
      border: none;
      color: var(--text);
      font-size: 13px;
      text-align: left;
      cursor: pointer;
      transition: background 0.12s;
    }

    .export-menu button:hover {
      background: var(--surface-2);
    }

    .export-menu .menu-label {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-dim);
      padding: 8px 16px 4px;
      cursor: default;
    }

    .export-menu .menu-sep {
      height: 1px;
      background: var(--border);
      margin: 4px 0;
    }

    /* ── Tabs ─────────────────────────── */
    .tabs {
      display: flex;
      gap: 0;
      margin-bottom: 16px;
      border-bottom: 1px solid var(--border);
    }

    .tab {
      padding: 10px 20px;
      font-size: 13px;
      font-weight: 500;
      color: var(--text-dim);
      cursor: pointer;
      border-bottom: 2px solid transparent;
      transition: all 0.15s;
      background: none;
      border-top: none;
      border-left: none;
      border-right: none;
    }

    .tab:hover {
      color: var(--text);
    }

    .tab.active {
      color: var(--accent);
      border-bottom-color: var(--accent);
    }

    .tab-panel {
      display: none;
    }

    .tab-panel.active {
      display: block;
    }

    /* ── Skeleton loading ─────────────── */
    .skeleton {
      background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
      background-size: 200% 100%;
      animation: shimmer 1.5s infinite;
      border-radius: 6px;
    }

    @keyframes shimmer {
      0% {
        background-position: 200% 0;
      }

      100% {
        background-position: -200% 0;
      }
    }

    .skeleton-text {
      height: 14px;
      margin-bottom: 8px;
    }

    .skeleton-value {
      height: 32px;
      width: 120px;
    }

    .skeleton-chart {
      height: 200px;
    }

    /* ── Demo Mode ──────────────────── */
    /* Demo banner uses the recovery-green accent so the visual
       language stays consistent with the rest of the product instead
       of introducing a third color. */
    .demo-banner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 14px 24px;
      border-radius: 10px;
      margin-bottom: 20px;
      background: var(--color-accent-soft);
      border: 1px solid var(--color-accent-ring);
      color: var(--accent);
      font-size: 14px;
      font-weight: 500;
    }

    .demo-banner-content {
      display: flex;
      align-items: center;
      gap: 10px;
      flex: 1;
    }

    .demo-banner-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    .demo-banner .btn-connect {
      background: var(--accent);
      border-color: var(--accent);
      color: var(--fg-on-accent);
      white-space: nowrap;
      padding: 8px 20px;
      font-size: 13px;
      text-decoration: none;
      border-radius: 8px;
      font-weight: 600;
    }

    .demo-banner .btn-connect:hover {
      opacity: 0.9;
    }

    .demo-banner .btn-dismiss {
      background: none;
      border: none;
      color: var(--fg-muted);
      cursor: pointer;
      font-size: 18px;
      padding: 4px 8px;
      line-height: 1;
    }

    .demo-banner .btn-dismiss:hover {
      color: var(--accent);
    }

    .demo-watermark {
      position: fixed;
      bottom: 24px;
      right: 24px;
      background: var(--color-accent-soft);
      border: 1px solid var(--color-accent-ring);
      color: var(--accent);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 6px 14px;
      border-radius: 6px;
      z-index: var(--z-overlay);
      pointer-events: none;
    }

    @media (max-width: 768px) {
      .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .charts-row {
        grid-template-columns: 1fr;
      }

      .category-grid {
        grid-template-columns: 1fr;
      }

      .container {
        padding: 16px;
      }

      table {
        font-size: 12px;
      }

      thead th,
      tbody td {
        padding: 8px 12px;
      }

      .donut-container {
        flex-direction: column;
      }

      .demo-banner {
        flex-direction: column;
        text-align: center;
      }

      .demo-banner-actions {
        justify-content: center;
      }
    }

/* ── Setup Panel (shown when Stripe isn't connected) ─────────────────
   Replaces a dashboard full of $0 metric cards with a confident,
   single-action onboarding panel. The visual weight matches a hero —
   this IS the page until Stripe connects. */
.setup-panel {
  margin: 32px auto 24px;
  max-width: 880px;
  background: linear-gradient(140deg, var(--accent-soft, rgba(63,184,114,0.08)) 0%, transparent 60%),
              var(--surface, #14141c);
  border: 1px solid var(--accent, #3FB872);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(63,184,114,0.08);
}
.setup-panel-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #3FB872);
  margin-bottom: 12px;
}
.setup-panel-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--text, #f5f5fa);
}
.setup-panel-lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-dim, #9a9ab0);
  margin: 0 0 32px;
  max-width: 60ch;
}
.setup-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 16px;
}
.setup-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface-2, #1a1a25);
  border: 1px solid var(--border-subtle, #1e1e2e);
  border-radius: 12px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.setup-step--current {
  border-color: var(--accent, #3FB872);
  box-shadow: inset 3px 0 0 var(--accent, #3FB872);
}
.setup-step--locked { opacity: 0.55; }
.setup-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft, rgba(63,184,114,0.12));
  color: var(--accent, #3FB872);
  font-weight: 700;
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}
.setup-step--locked .setup-step-num {
  background: var(--surface-3, #232333);
  color: var(--text-dim, #9a9ab0);
}
.setup-step-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text, #f5f5fa);
  margin-bottom: 4px;
}
.setup-step-desc {
  font-size: 13px;
  color: var(--text-dim, #9a9ab0);
  line-height: 1.5;
}
.setup-step-desc a { color: var(--accent, #3FB872); }
.setup-panel-aside {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle, #1e1e2e);
}
.setup-panel-aside-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #f5f5fa);
  margin-bottom: 10px;
}
.setup-panel-aside-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim, #9a9ab0);
  line-height: 1.5;
}
.setup-panel-aside-list li {
  padding-left: 18px;
  position: relative;
}
.setup-panel-aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-soft, rgba(63,184,114,0.4));
  border: 1px solid var(--accent, #3FB872);
}

/* ── Monitoring banner (Stripe connected, no failures yet) ─────── */
.monitoring-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: var(--accent-soft, rgba(63,184,114,0.08));
  border: 1px solid rgba(63,184,114,0.25);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text, #f5f5fa);
}
.monitoring-banner strong { font-weight: 600; }
.monitoring-banner-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent, #3FB872);
  box-shadow: 0 0 0 4px rgba(63,184,114,0.18);
  animation: monitoring-pulse 2.4s ease-in-out infinite;
}
@keyframes monitoring-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(63,184,114,0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(63,184,114,0.0); }
}
@media (prefers-reduced-motion: reduce) {
  .monitoring-banner-dot { animation: none; }
}

/* ── Subscriber usage meter ─────────────────────────────── */
.usage-meter {
  padding: 16px 20px;
  margin-bottom: 24px;
  background: var(--surface, #14141c);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 10px;
}
.usage-meter-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.usage-meter-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #9a9ab0);
  margin-bottom: 4px;
}
.usage-meter-count {
  font-size: 18px;
  font-weight: 600;
  color: var(--text, #f5f5fa);
}
.usage-meter-divider {
  margin: 0 6px;
  color: var(--muted, #9a9ab0);
  font-weight: 400;
}
.usage-meter-meta {
  font-size: 12px;
  color: var(--muted, #9a9ab0);
  text-align: right;
}
.usage-meter-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.usage-meter-fill {
  height: 100%;
  background: var(--accent, #3FB872);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.usage-meter-fill[data-state="near"] { background: #f5b76a; }
.usage-meter-fill[data-state="over"] { background: #e5556c; }
