    :root {
      --bg: #ffffff;
      --surface: #ffffff;
      --surface-subtle: #f8fafc;
      --ink: #0f172a;
      --ink-secondary: #334155;
      --ink-muted: #64748b;
      --hairline: #e2e8f0;
      --control-border: #cbd5e1;
      --control-bevel: #94a3b8;

      --brand: #1e3a8a;
      --brand-dark: #172554;
      --brand-bevel: #0f172a;
      --brand-soft: #eff6ff;

      --emerald: #166534;
      --emerald-bright: #15803d;
      --emerald-bevel: #14532d;
      --emerald-soft: #f0fdf4;

      --slate-btn: #1e293b;
      --slate-bevel: #0f172a;

      --danger: #b91c1c;
      --danger-soft: #fef2f2;
      --amber: #b45309;
      --amber-soft: #fffbeb;

      --radius-lg: 12px;
      --radius-md: 10px;
      --radius-sm: 7px;
      --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04);
      --shadow-hero: 0 4px 20px -6px rgba(15, 23, 42, 0.06);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html, body { overflow-x: clip; }

    body {
      font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
      background-color: var(--bg);
      color: var(--ink);
      font-size: 15px;
      line-height: 1.62;
      padding-bottom: 88px;
      -webkit-font-smoothing: antialiased;
    }

    .container {
      max-width: 1080px;
      margin: 0 auto;
      padding: 0 24px;
      transition: max-width 0.22s ease;
    }
    body.pdf-split-open .container-wide-target {
      max-width: min(1780px, 96vw);
    }

    /* ==========================================================================
       CLEAN INTERACTIVE CONTROLS (Minimal visual weight, unmistakable clickability)
       ========================================================================== */
    button, select, summary { font-family: inherit; }

    .btn-primary {
      display: inline-flex; align-items: center; justify-content: center; gap: 9px;
      background: #1e3a8a;
      color: #ffffff;
      border: 1px solid #172554;
      box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
      padding: 12px 26px;
      font-size: 15.5px;
      font-weight: 600;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.14s ease, transform 0.12s ease, box-shadow 0.14s ease;
    }
    .btn-primary:hover {
      background: #172554;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
    }
    .btn-primary:active { transform: translateY(0.5px); }

    .btn-emerald {
      display: inline-flex; align-items: center; justify-content: center; gap: 7px;
      background: #166534;
      color: #ffffff;
      border: 1px solid #14532d;
      box-shadow: 0 1px 4px rgba(15, 23, 42, 0.10);
      padding: 9px 18px;
      font-size: 14px;
      font-weight: 600;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.14s ease, transform 0.12s ease;
    }
    .btn-emerald:hover { background: #14532d; transform: translateY(-1px); }
    .btn-emerald:active { transform: translateY(0.5px); }

    .btn-secondary {
      display: inline-flex; align-items: center; justify-content: center; gap: 7px;
      background: #ffffff;
      color: var(--ink);
      border: 1px solid var(--control-border);
      padding: 8px 14px;
      font-size: 13.5px;
      font-weight: 600;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.14s ease;
    }
    .btn-secondary:hover {
      background: #f8fafc;
      border-color: var(--brand);
      color: var(--brand);
    }
    .btn-secondary:active { transform: translateY(0.5px); }

    /* ==========================================================================
       SINGLE-ROW TOP NAVBAR
       ========================================================================== */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 80;
      background: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--hairline);
      padding: 10px 0;
    }
    .header-inner {
      display: flex;
      flex-wrap: nowrap;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      min-height: 40px;
    }
    .brand-wrap {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: var(--ink);
      min-width: 0;
      white-space: nowrap;
    }
    .brand-logo {
      width: 30px; height: 30px; border-radius: 7px;
      background: #0f172a;
      display: flex; align-items: center; justify-content: center; color: #f8fafc; flex-shrink: 0;
    }
    .brand-text-row {
      display: inline-flex;
      align-items: baseline;
      gap: 10px;
      min-width: 0;
    }
    .brand-name {
      font-size: 17.5px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); line-height: 1;
    }
    .brand-sep {
      color: #cbd5e1; font-weight: 400; font-size: 14px;
    }
    .brand-tagline {
      font-size: 12.5px; font-weight: 500; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    @media (max-width: 1060px) {
      .brand-sep, .brand-tagline { display: none; }
    }

    .header-controls {
      display: flex;
      flex-wrap: nowrap;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    /* Clean Light Dropdown Controls */
    .tactile-select-wrap {
      display: inline-flex; align-items: center; gap: 5px;
      background: #f8fafc;
      border: 1px solid var(--hairline);
      border-radius: 7px;
      padding: 5px 9px;
      white-space: nowrap;
      min-width: 0;
      transition: border-color 0.14s ease, background 0.14s ease;
    }
    .tactile-select-wrap:hover {
      background: #ffffff;
      border-color: var(--control-bevel);
    }
    .sel-caption {
      font-size: 12px; font-weight: 500; color: var(--ink-muted); white-space: nowrap;
    }
    .tactile-select-wrap select {
      border: none;
      background: transparent;
      font-size: 13px;
      font-weight: 600;
      color: var(--ink);
      cursor: pointer;
      outline: none;
      padding-right: 2px;
      max-width: 100%;
      min-width: 0;
    }

    .nav-pricing-btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 5px;
      background: #ffffff;
      border: 1px solid var(--control-border);
      color: var(--ink);
      font-size: 13px;
      font-weight: 600;
      padding: 6px 12px;
      border-radius: 7px;
      white-space: nowrap;
      cursor: pointer;
      transition: all 0.14s ease;
    }
    .nav-pricing-btn:hover {
      border-color: var(--brand);
      color: var(--brand);
      background: #f8fafc;
    }
    .nav-pricing-btn.pass-active {
      background: #f0fdf4;
      border-color: #86efac;
      color: #166534;
    }
    .nav-companion-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background: #0f766e;
      border: 1px solid #0d5e57;
      color: #ffffff;
      font-size: 13px;
      font-weight: 600;
      padding: 6px 13px;
      border-radius: 7px;
      white-space: nowrap;
      text-decoration: none;
      cursor: pointer;
      box-shadow: 0 1px 3px rgba(15, 118, 110, 0.24);
      transition: background 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
    }
    .nav-companion-btn:hover {
      background: #0d5e57;
      border-color: #115e59;
      color: #ffffff;
      transform: translateY(-0.5px);
    }
    @keyframes pwaStripFadeIn {
      from { opacity: 0; transform: translateY(-3px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .pwa-app-strip {
      max-width: 960px;
      margin: 14px auto 0;
      padding: 8px 14px;
      border-radius: 9px;
      background: #ffffff;
      border: 1px solid var(--hairline);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      animation: pwaStripFadeIn 0.2s ease-out;
    }
    .pwa-app-left {
      display: flex;
      align-items: center;
      gap: 9px;
      min-width: 0;
    }
    .pwa-app-icon {
      width: 22px;
      height: 22px;
      border-radius: 5px;
      flex-shrink: 0;
    }
    .pwa-app-title {
      font-size: 13px;
      font-weight: 500;
      color: var(--ink-secondary);
      line-height: 1.35;
    }
    .pwa-install-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background: #f8fafc;
      border: 1px solid var(--control-border);
      color: var(--ink);
      font-size: 12.6px;
      font-weight: 600;
      padding: 5px 12px;
      border-radius: 7px;
      white-space: nowrap;
      cursor: pointer;
      flex-shrink: 0;
      transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
    }
    .pwa-install-btn:hover {
      background: #eff6ff;
      border-color: #93c5fd;
      color: var(--brand);
    }
    .pwa-mini-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 9px;
      margin-top: 14px;
    }
    .pwa-mini-grid.cols-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .pwa-mini-tile {
      border: 1px solid var(--hairline);
      background: #f8fafc;
      border-radius: 9px;
      padding: 12px 8px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 7px;
    }
    .pwa-mini-ico {
      width: 36px;
      height: 36px;
      border-radius: 9px;
      background: #eff6ff;
      color: #1d4ed8;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .pwa-mini-lbl {
      font-size: 12.4px;
      font-weight: 700;
      color: var(--ink);
      line-height: 1.3;
    }
    .pwa-mini-sub {
      font-size: 11.4px;
      color: var(--ink-muted);
      line-height: 1.3;
    }
    .pass-banner {
      display: none;
      margin: 14px auto 0;
      max-width: 840px;
      padding: 13px 16px;
      border-radius: 9px;
      background: #f0fdf4;
      border: 1px solid #86efac;
      border-left: 4px solid #166534;
      color: #14532d;
      font-size: 13.5px;
      line-height: 1.5;
    }
    .pass-banner.pending {
      background: #eff6ff;
      border-color: #bfdbfe;
      border-left-color: var(--brand);
      color: #1e3a8a;
    }
    .pass-banner.warn {
      background: #fffbeb;
      border-color: #fde68a;
      border-left-color: var(--amber);
      color: #78350f;
    }
    .pass-banner-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 8px 12px;
    }
    .pass-code-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 8px;
    }
    .pass-code-chip code {
      background: #ffffff;
      border: 1px solid #bbf7d0;
      border-radius: 6px;
      padding: 4px 10px;
      font-family: "JetBrains Mono", Consolas, monospace;
      font-size: 13px;
      font-weight: 700;
      color: #0f172a;
      user-select: all;
      word-break: break-all;
    }

    /* ==========================================================================
       HERO + NON-BUTTON STEP TIMELINE
       ========================================================================== */
    .hero-section {
      text-align: center;
      padding: 26px 0 14px;
    }
    .hero-section h1 {
      font-size: clamp(19px, 2.05vw, 24px);
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--ink);
      max-width: 840px;
      margin: 0 auto 10px;
      line-height: 1.3;
    }
    .hero-section p {
      font-size: 14.5px;
      color: var(--ink-secondary);
      max-width: 720px;
      margin: 0 auto 20px;
      line-height: 1.6;
    }

    /* Connected Progress Timeline — Purely informational */
    .stepper-track {
      display: flex; align-items: flex-start; justify-content: center;
      max-width: 740px; margin: 0 auto 20px; position: relative; gap: 0;
      cursor: default; user-select: none;
    }
    .step-node {
      flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
      position: relative; padding: 0 8px;
    }
    .step-node:not(:last-child)::after {
      content: "";
      position: absolute;
      top: 13px;
      left: calc(50% + 17px);
      width: calc(100% - 34px);
      height: 1.5px;
      background: #e2e8f0;
      z-index: 0;
    }
    .step-node.done-step:not(:last-child)::after { background: var(--emerald); }
    .step-circle {
      width: 26px; height: 26px; border-radius: 50%;
      background: #f1f5f9; color: #475569;
      font-size: 12px; font-weight: 700;
      display: flex; align-items: center; justify-content: center;
      position: relative; z-index: 1; margin-bottom: 6px; flex-shrink: 0;
      transition: all 0.2s ease;
    }
    .step-node.active-step .step-circle {
      background: var(--brand); color: #fff;
      box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
    }
    .step-node.done-step .step-circle {
      background: var(--emerald); color: #fff;
    }
    .step-node strong {
      font-size: 13.5px; font-weight: 600; color: var(--ink); display: block;
    }
    .step-node span {
      font-size: 12px; color: var(--ink-muted); display: block;
    }

    /* ==========================================================================
       SINGLE CLEAN UPLOAD DROPZONE (No box-inside-box double shell!)
       ========================================================================== */
    .upload-shell {
      max-width: 100%;
      margin: 0 auto;
    }
    .upload-zone {
      background: #f8fbff;
      border: 2px dashed #60a5fa;
      border-radius: 14px;
      padding: 22px 24px 20px;
      text-align: center;
      cursor: pointer;
      transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    }
    .upload-zone:hover, .upload-zone.dragover {
      background: #eff6ff;
      border-color: var(--brand);
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
    }
    .upload-drop-headline {
      font-size: 15.5px;
      font-weight: 600;
      color: var(--ink);
      letter-spacing: -0.012em;
      margin: 0 auto 12px;
      line-height: 1.36;
    }
    .upload-sub-hint {
      font-size: 13px; color: var(--ink-secondary); font-weight: 500; margin-top: 10px;
    }
    .upload-cta-row {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 6px; max-width: 100%;
    }
    .upload-whisper-row {
      display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap;
      gap: 4px 10px; max-width: 100%;
    }
    .whisper-sep {
      color: #cbd5e1; font-size: 11px; user-select: none; line-height: 1;
    }
    .btn-sample-whisper {
      appearance: none; background: transparent; border: none; padding: 2px 4px;
      font-family: inherit; font-size: 11.8px; font-weight: 400; line-height: 1.3;
      color: #94a3b8; text-decoration: underline; text-decoration-color: rgba(148, 163, 184, 0.35);
      text-underline-offset: 2.5px; cursor: pointer; white-space: nowrap;
      transition: color 0.14s ease, text-decoration-color 0.14s ease;
    }
    .btn-sample-whisper:hover, .btn-sample-whisper:focus-visible {
      color: var(--brand); text-decoration-color: var(--brand); outline: none;
    }
    .sample-outputs-bar {
      display: inline-flex; align-items: center; justify-content: center;
    }
    .sample-dl-sub {
      font-size: 12.6px; color: var(--ink-muted); line-height: 1.48; margin: 6px 0 12px;
    }
    .sample-dl-list {
      display: flex; flex-direction: column; gap: 8px;
    }
    .sample-dl-row {
      display: flex; align-items: center; gap: 11px;
      padding: 10px 12px; border-radius: 9px;
      border: 1px solid #e2e8f0; background: #f8fafc;
      color: var(--ink); text-decoration: none;
      transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
    }
    .sample-dl-row:hover {
      border-color: #93c5fd; background: #eff6ff;
      box-shadow: 0 2px 8px rgba(30, 58, 138, 0.08);
    }
    .sdl-badge {
      flex-shrink: 0; min-width: 44px; text-align: center;
      font-size: 10.5px; font-weight: 800; letter-spacing: 0.03em;
      padding: 4px 6px; border-radius: 6px;
      background: #e2e8f0; color: #334155;
    }
    .sdl-badge.is-xlsx { background: #dcfce7; color: #166534; }
    .sdl-badge.is-qbo { background: #dbeafe; color: #1d4ed8; }
    .sdl-badge.is-csv { background: #e0e7ff; color: #3730a3; }
    .sdl-badge.is-pdf { background: #f1f5f9; color: #0f172a; border: 1px solid #cbd5e1; }
    .sdl-body {
      flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px;
    }
    .sdl-title {
      font-size: 13.4px; font-weight: 700; color: var(--ink); line-height: 1.3;
    }
    .sdl-desc {
      font-size: 11.8px; color: var(--ink-muted); line-height: 1.38;
    }
    .sdl-dl {
      flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px;
      background: #ffffff; border: 1px solid #cbd5e1; color: #475569;
      display: inline-flex; align-items: center; justify-content: center;
      font-size: 13px; font-weight: 700; transition: all 0.14s ease;
    }
    .sample-dl-row:hover .sdl-dl {
      background: var(--brand); border-color: var(--brand); color: #ffffff;
    }
    .upload-reassure {
      max-width: 960px;
      margin: 10px auto 0;
      padding: 0;
      font-size: 12.2px; color: var(--ink-muted); font-weight: 500;
      display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px 18px;
      text-align: center;
      cursor: default;
    }
    .reassure-item {
      display: inline-flex; align-items: center; gap: 5px;
    }
    .reassure-dot {
      color: var(--emerald); font-size: 12px; font-weight: 800;
    }

    /* Uploaded File Queue Tray Inside Dropzone (1A: Once files exist, hide empty prompt & keep full-zone drag-append!) */
    .upload-zone.has-queued-files {
      position: relative;
      background: #f8fafc;
      border-color: #93c5fd;
      padding: 12px 18px 14px;
      cursor: default;
    }
    .upload-zone.has-queued-files .upload-empty-prompt {
      display: none;
    }
    .upload-zone.has-queued-files.dragover {
      background: #f0fdf4;
      border-color: #16a34a;
      box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
    }
    .drop-append-banner {
      display: none;
      margin: 0 auto 10px;
      padding: 6px 14px;
      border-radius: 999px;
      background: #16a34a;
      color: #ffffff;
      font-size: 12.8px;
      font-weight: 700;
      width: fit-content;
      box-shadow: 0 3px 10px rgba(22, 163, 74, 0.25);
    }
    .upload-zone.has-queued-files.dragover .drop-append-banner { display: inline-flex; align-items: center; gap: 6px; }
    .uploaded-files-tray {
      display: none;
      margin-top: 2px;
      padding: 10px 14px 11px;
      background: #ffffff;
      border: 1.5px solid #cbd5e1;
      border-left: 4px solid #16a34a;
      border-radius: 10px;
      text-align: left;
      cursor: default;
      box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
      transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
    }
    .uploaded-files-tray.has-files { display: block; }
    .upload-zone.has-queued-files.dragover .uploaded-files-tray {
      background: #f0fdf4;
      border-color: #16a34a;
    }
    .uf-tray-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px 12px;
      flex-wrap: wrap;
      padding-bottom: 8px;
      margin-bottom: 8px;
      border-bottom: 1px solid #eef2f6;
      line-height: 1.25;
    }
    .uf-tray-left {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      min-width: 0;
    }
    .uf-tray-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--ink);
    }
    .uf-tray-hint {
      font-size: 11.8px;
      font-weight: 500;
      color: var(--ink-muted);
    }
    .uploaded-files-tray.tray-dragover .uf-tray-hint {
      color: #15803d;
      font-weight: 700;
    }
    .uf-tray-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .uf-mini-btn {
      font-size: 13.2px;
      font-weight: 700;
      padding: 7px 18px;
      min-width: 116px;
      line-height: 1.3;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.13s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
    }
    .uf-add-btn {
      background: #1e3a8a;
      color: #ffffff;
      border: 1px solid #172554;
      box-shadow: 0 1px 3px rgba(30, 58, 138, 0.18);
    }
    .uf-add-btn:hover { background: #172554; border-color: #0f172a; transform: translateY(-1px); }
    .uf-clear-btn {
      background: #fff5f5;
      color: #b91c1c;
      border: 1px solid #fecaca;
    }
    .uf-clear-btn:hover { background: #fee2e2; border-color: #ef4444; transform: translateY(-1px); }
    .uf-list {
      display: grid;
      grid-template-columns: 1fr;
      gap: 6px 8px;
      max-height: 420px;
      overflow-y: auto;
      padding-right: 2px;
    }
    .uf-list.multi-cols {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .uf-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 6px 10px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 7px;
      min-width: 0;
    }
    .uf-item-main {
      min-width: 0;
      flex: 1;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .uf-badge {
      font-size: 10.5px;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: 4px;
      flex-shrink: 0;
      letter-spacing: 0.02em;
    }
    .uf-badge.is-pdf { background: #dbeafe; color: #1d4ed8; }
    .uf-badge.is-img { background: #dcfce7; color: #15803d; }
    .uf-name {
      font-size: 13px;
      font-weight: 600;
      color: var(--ink);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .uf-size {
      font-size: 11.5px;
      color: var(--ink-muted);
      flex-shrink: 0;
      font-variant-numeric: tabular-nums;
    }
    .uf-remove-btn {
      width: 24px;
      height: 24px;
      border-radius: 6px;
      border: 1px solid #e2e8f0;
      background: #ffffff;
      color: #64748b;
      font-size: 15px;
      font-weight: 700;
      line-height: 1;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.13s ease;
    }
    .uf-remove-btn:hover {
      background: #fee2e2;
      color: #dc2626;
      border-color: #fca5a5;
    }

    /* ==========================================================================
       OPTION B: SLIM 3-HIGHLIGHT STRIP + NATIVE <DETAILS> COLLAPSIBLE DRAWERS
       ========================================================================== */
    .quick-highlights {
      max-width: 960px;
      margin: 18px auto 0;
      padding: 18px 0 8px;
      border-top: 1px solid var(--hairline);
      cursor: default;
    }
    .qh-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px 24px;
    }
    .qh-item {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      min-width: 0;
    }
    .qh-dot {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: #f0fdf4;
      border: 1px solid #bbf7d0;
      color: #166534;
      font-size: 11px;
      font-weight: 800;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-top: 2px;
    }
    .qh-item strong {
      font-size: 13.2px;
      font-weight: 600;
      color: var(--ink);
      display: block;
      line-height: 1.35;
      margin-bottom: 3px;
    }
    .qh-item span {
      font-size: 12.3px;
      color: var(--ink-secondary);
      display: block;
      line-height: 1.5;
    }

    .capabilities-panel {
      max-width: 960px;
      margin: 0;
      padding: 0;
      border-top: 1px solid var(--hairline);
      cursor: default;
    }
    .cap-header-line {
      font-size: 14px;
      font-weight: 600;
      color: var(--ink);
      margin: 0;
      letter-spacing: -0.01em;
    }
    .cap-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 18px 34px;
    }
    .cap-item {
      display: flex;
      align-items: flex-start;
      gap: 11px;
    }
    .cap-num {
      font-size: 12px;
      font-weight: 700;
      font-family: "JetBrains Mono", "Consolas", monospace;
      color: var(--brand);
      margin-top: 2px;
      flex-shrink: 0;
    }
    .cap-item strong {
      font-size: 13.6px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 3px; line-height: 1.38;
    }
    .cap-item .cap-desc {
      font-size: 13px; color: var(--ink-secondary); line-height: 1.55; display: block;
    }

    /* Native HTML5 <details> Fold Rows (100% SSR SEO-Crawlable, Bare Left Disclosure Chevron) */
    details.fold-sec {
      width: 100%;
    }
    summary.fold-summary {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      padding: 13px 6px;
      cursor: pointer;
      list-style: none;
      border-radius: 7px;
      user-select: none;
      transition: background 0.14s ease;
    }
    summary.fold-summary.fold-compact {
      padding: 11px 6px;
    }
    summary.fold-summary::-webkit-details-marker { display: none; }
    summary.fold-summary::marker { content: ""; display: none; }
    summary.fold-summary:hover { background: #f8fafc; }
    summary.fold-summary:hover .fold-title { color: var(--brand); }
    .fold-chev {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 16px;
      height: 16px;
      margin-top: 2px;
      flex-shrink: 0;
      color: #94a3b8;
      transition: transform 0.16s ease, color 0.14s ease;
    }
    summary.fold-summary:hover .fold-chev {
      color: var(--brand);
      transform: translateX(1.5px);
    }
    details.fold-sec[open] > summary.fold-summary .fold-chev,
    details.fold-sec[open] > summary.fold-summary:hover .fold-chev {
      color: var(--brand);
      transform: rotate(90deg);
    }
    .fold-head-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
      flex: 1;
    }
    .fold-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--ink);
      line-height: 1.38;
      letter-spacing: -0.01em;
      margin: 0;
      transition: color 0.14s ease;
    }
    .fold-sub {
      font-size: 12.2px;
      color: var(--ink-muted);
      font-weight: 400;
      line-height: 1.42;
    }
    details.fold-sec[open] > summary.fold-summary {
      padding-bottom: 10px;
    }
    .fold-body {
      padding: 4px 6px 24px 31px;
    }

    /* ==========================================================================
       WORKSPACE AREA (Interactive Data Views — Lightweight Framing, No Nested Cages)
       ========================================================================== */
    #workspace { display: none; margin-top: 28px; scroll-margin-top: 72px; }

    .gap-alert {
      display: none;
      background: #fffbeb;
      border-left: 3.5px solid var(--amber);
      color: #78350f;
      border-radius: 6px;
      padding: 14px 16px;
      margin-bottom: 16px;
      font-size: 14px;
    }
    .gap-actions {
      display: flex; flex-wrap: wrap; gap: 10px; margin-top: 11px; align-items: center;
    }

    /* Audit Verification Banner */
    .shield-card {
      border-radius: 10px;
      padding: 13px 18px;
      margin-bottom: 12px;
      background: #f8fafc;
      border: 1px solid var(--hairline);
      border-left: 4px solid var(--emerald);
    }
    .shield-card.unbalanced {
      background: #fef2f2;
      border-color: #fecaca;
      border-left-color: var(--danger);
    }
    .shield-card.info-amber {
      background: #fffbeb;
      border-color: #fcd34d;
      border-left-color: #d97706;
    }
    .shield-card.info-amber .shield-title { color: #b45309; }
    .upload-err-banner {
      display: none;
      margin-top: 12px;
      padding: 11px 14px;
      border-radius: 9px;
      background: #fef2f2;
      border: 1px solid #fecaca;
      color: #991b1b;
      font-size: 13.2px;
      line-height: 1.48;
      text-align: left;
    }
    .upload-err-banner.open { display: block; }
    .upload-err-actions {
      margin-top: 8px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }
    .shield-top {
      display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 5px;
    }
    .shield-top .btn-secondary {
      padding: 5px 11px; font-size: 12.2px; white-space: nowrap;
    }
    .shield-title {
      font-size: 15.4px; font-weight: 700; color: var(--emerald); letter-spacing: -0.01em;
    }
    .shield-card.unbalanced .shield-title { color: var(--danger); }
    .shield-diag {
      font-size: 13.8px; color: var(--ink-secondary); margin-bottom: 14px;
    }

    /* Open Ledger Strip (Zero nested box!) */
    .equation-ledger {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
      border-top: 1px solid var(--hairline);
      padding-top: 12px;
      gap: 10px 6px;
    }
    .eq-col {
      padding: 2px 10px 2px 0;
      border-right: 1px solid #e2e8f0;
    }
    .eq-col:last-child { border-right: none; }
    .eq-label {
      font-size: 11.5px; color: var(--ink-muted); font-weight: 600;
      display: flex; align-items: center; gap: 4px;
    }
    .eq-val {
      font-size: 16px; font-weight: 700;
      font-family: "JetBrains Mono", "SFMono-Regular", "Consolas", monospace;
      font-variant-numeric: tabular-nums;
      margin-top: 4px;
      color: var(--ink);
      cursor: default;
    }
    .eq-input {
      width: 100%;
      font-size: 15px; font-weight: 600;
      font-family: "JetBrains Mono", "SFMono-Regular", "Consolas", monospace;
      font-variant-numeric: tabular-nums;
      background: #ffffff;
      border: 1px solid var(--control-border);
      border-radius: 6px;
      padding: 4px 8px;
      margin-top: 4px;
      color: var(--ink);
      transition: border-color 0.14s, box-shadow 0.14s;
    }
    .eq-input:focus {
      outline: none;
      border-color: var(--brand);
      box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.14);
    }

    /* ==========================================================================
       STEP 3: COMPACT BORDERLESS EXPORT BAR
       ========================================================================== */
    .export-section-header {
      font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 10px;
      display: flex; align-items: center; gap: 8px;
    }
    .export-cards-grid {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px;
      align-items: start;
    }
    @media (max-width: 980px) { .export-cards-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 560px) { .export-cards-grid { grid-template-columns: 1fr; } }

    .exp-slot {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }
    .exp-action-btn {
      width: 100%;
      padding: 9px 11px;
      border-radius: 7px;
      border: 1px solid transparent;
      font-size: 13px;
      font-weight: 600;
      display: inline-flex; align-items: center; justify-content: space-between; gap: 6px;
      color: #ffffff;
      cursor: pointer;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.10);
      transition: background 0.14s ease, transform 0.12s ease;
    }
    .exp-action-btn:hover { transform: translateY(-1px); }
    .exp-action-btn:active { transform: translateY(0.5px); }
    .exp-btn-main {
      display: inline-flex; align-items: center; gap: 6px; min-width: 0; text-align: left;
    }
    .exp-btn-main span {
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .btn-inline-tag {
      font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 4px;
      background: rgba(255, 255, 255, 0.18); color: #f8fafc;
      white-space: nowrap; flex-shrink: 0;
    }
    .bar-blue { background: #1e3a8a; border-color: #172554; }
    .bar-emerald { background: #166534; border-color: #14532d; }
    .bar-indigo { background: #0f172a; border-color: #0f172a; }
    .bar-slate { background: #334155; border-color: #1e293b; }
    .bar-blue:hover { background: #172554; }
    .bar-emerald:hover { background: #14532d; }
    .bar-indigo:hover { background: #1e293b; }
    .bar-slate:hover { background: #1e293b; }

    .exp-slot-desc {
      font-size: 12px;
      color: #8291a5;
      line-height: 1.44;
      padding: 0 2px;
      cursor: default;
    }
    .exp-slot-desc strong {
      color: #64748b;
      font-weight: 600;
    }

    /* Export Pre-Flight Control Panel (ABOVE Export Buttons: Prominent Toggles + 5-Sheet Picker + Reconcile Gate) */
    .export-control-panel {
      background: #f8fafc;
      border: 1.5px solid #cbd5e1;
      border-radius: 11px;
      padding: 12px 14px;
      margin: 0 0 12px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .export-lock-banner {
      display: none;
      background: #fff7ed;
      border: 1.5px solid #fdba74;
      border-left: 4px solid #ea580c;
      color: #9a3412;
      border-radius: 8px;
      padding: 9px 12px;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.42;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
    }
    .export-lock-banner.show { display: flex; }
    .exp-row-block {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 10px;
    }
    .exp-row-label {
      font-size: 12.2px;
      font-weight: 800;
      color: var(--ink-secondary);
      white-space: nowrap;
      margin-right: 2px;
    }
    .exp-toggle-pill {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 5px 11px;
      border-radius: 8px;
      border: 1px solid #e2e8f0;
      background: transparent;
      color: #64748b;
      font-size: 12.6px;
      font-weight: 500;
      cursor: pointer;
      user-select: none;
      transition: all 0.14s ease;
      box-shadow: none;
    }
    .exp-toggle-pill:hover {
      border-color: #cbd5e1;
      background: #ffffff;
      color: #334155;
    }
    .exp-toggle-pill input[type="checkbox"] {
      width: 14px;
      height: 14px;
      accent-color: #475569;
      cursor: pointer;
      margin: 0;
      flex-shrink: 0;
      opacity: 0.6;
      transition: opacity 0.14s ease;
    }
    .exp-toggle-pill:hover input[type="checkbox"],
    .exp-toggle-pill.is-on-green input[type="checkbox"],
    .exp-toggle-pill.is-on-blue input[type="checkbox"] {
      opacity: 1;
    }
    .exp-toggle-pill .pill-state-badge {
      display: none;
      font-size: 11px;
      font-weight: 600;
      padding: 1px 6px;
      border-radius: 999px;
      white-space: nowrap;
      background: #e2e8f0;
      color: #475569;
    }
    .exp-toggle-pill.is-on-green,
    .exp-toggle-pill.is-on-blue {
      background: #f1f5f9;
      border: 1px solid #cbd5e1;
      color: #334155;
      font-weight: 600;
      box-shadow: none;
    }
    .exp-toggle-pill.is-on-green input[type="checkbox"],
    .exp-toggle-pill.is-on-blue input[type="checkbox"] { accent-color: #475569; }
    .exp-toggle-pill.is-on-green.has-count .pill-state-badge { display: inline-block; }

    .sheet-picker-divider {
      border-top: 1px solid #e2e8f0;
      padding-top: 8px;
      flex-direction: column;
      align-items: stretch;
      gap: 7px;
    }
    .sheet-picker-head {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      width: 100%;
    }
    .sheet-pills-wrap {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 7px;
    }
    .sheet-pill {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 5px 11px 5px 8px;
      border-radius: 9px;
      border: 1px solid #e2e8f0;
      background: transparent;
      color: #94a3b8;
      font-size: 12.6px;
      font-weight: 500;
      cursor: pointer;
      user-select: none;
      transition: all 0.14s ease;
    }
    .sheet-pill:hover {
      border-color: #93c5fd;
      color: #334155;
      background: #ffffff;
    }
    .sheet-pill .sp-check {
      width: 16px;
      height: 16px;
      border-radius: 4px;
      border: 1.4px solid #cbd5e1;
      background: #f8fafc;
      color: transparent;
      font-size: 12.5px;
      font-weight: 900;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.14s ease;
    }
    .sheet-pill:hover .sp-check {
      border-color: #93c5fd;
      background: #ffffff;
    }
    .sheet-pill.selected {
      background: #1d4ed8;
      border: 1.5px solid #1e40af;
      color: #ffffff;
      font-weight: 700;
      box-shadow: 0 2px 8px rgba(29, 78, 216, 0.26);
    }
    .sheet-pill.selected:hover {
      background: #1e40af;
      color: #ffffff;
    }
    .sheet-pill.selected .sp-check {
      width: 18px;
      height: 18px;
      background: #ffffff;
      border-color: #ffffff;
      color: #1d4ed8;
    }
    .sheet-pill.is-locked .sp-check {
      border-color: transparent;
      background: transparent;
      color: #64748b;
      font-size: 13px;
    }
    .sheet-pill.is-locked,
    .util-mini-btn.is-locked,
    .exp-action-btn.is-locked,
    .view-card-btn.is-locked {
      opacity: 0.6;
      background: #f1f5f9 !important;
      border-color: #cbd5e1 !important;
      color: #64748b !important;
      cursor: not-allowed !important;
      box-shadow: none !important;
      transform: none !important;
    }
    .exp-action-btn.is-locked .btn-inline-tag,
    .util-mini-btn.is-locked .pdf-btn-tag {
      background: rgba(100, 116, 139, 0.16) !important;
      color: #475569 !important;
    }
    .view-card-btn.is-locked .view-state-pill {
      background: #fef2f2 !important;
      color: #b91c1c !important;
      border-color: #fecaca !important;
    }
    .sheet-quick-actions {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-left: auto;
    }
    .sheet-quick-btn {
      font-size: 11.8px;
      font-weight: 700;
      padding: 4px 9px;
      border-radius: 6px;
      border: 1px solid #cbd5e1;
      background: #ffffff;
      color: #334155;
      cursor: pointer;
      transition: all 0.12s ease;
    }
    .sheet-quick-btn:hover { border-color: var(--brand); color: var(--brand); background: #eff6ff; }
    .sheet-quick-btn.is-locked { opacity: 0.5; cursor: not-allowed; }
    .export-selection-summary {
      font-size: 12.6px;
      font-weight: 600;
      color: var(--ink-secondary);
    }

    /* Compact Secondary Trigger Directly Beneath Primary Export Slot (e.g. Custom CSV under CSV) */
    .exp-sub-trigger {
      margin-top: 3px;
      width: 100%;
      background: #f8fafc;
      color: #1e293b;
      border: 1.5px solid #cbd5e1;
      border-radius: 7px;
      padding: 6px 10px;
      font-size: 12.2px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      transition: all 0.14s ease;
    }
    .exp-sub-trigger:hover {
      border-color: var(--brand);
      color: var(--brand);
      background: #eff6ff;
    }
    .exp-sub-trigger.is-open {
      background: #eff6ff;
      border-color: var(--brand);
      color: var(--brand);
    }
    .bar-pdf {
      background: #0f172a;
      border-color: #0f172a;
    }
    .bar-pdf:hover { background: #1e293b; }

    .util-mini-btn {
      background: #ffffff; color: #0f172a; border: 1.5px solid #94a3b8;
      border-radius: 7px; padding: 6px 11px; font-size: 12.6px; font-weight: 700; cursor: pointer;
      display: inline-flex; align-items: center; justify-content: center; gap: 6px;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
      transition: all 0.14s ease;
    }
    .util-mini-btn:hover { border-color: var(--brand); color: var(--brand); background: #eff6ff; transform: translateY(-1px); }

    .custom-csv-panel {
      display: none; background: #f8fafc; border: 1.5px solid #93c5fd; border-radius: 10px;
      padding: 14px 16px; margin: 2px 0 18px;
      box-shadow: 0 4px 14px rgba(30, 58, 138, 0.08);
    }
    .custom-csv-panel.open { display: block; }
    .ccsv-presets-bar {
      display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
      padding-bottom: 10px; margin-bottom: 11px; border-bottom: 1px solid #e2e8f0;
    }
    .ccsv-preset-lbl { font-size: 11.8px; font-weight: 800; color: var(--ink-secondary); margin-right: 2px; }
    .ccsv-preset-btn {
      background: #ffffff; color: #334155; border: 1px solid #cbd5e1; border-radius: 999px;
      padding: 3px 10px; font-size: 11.8px; font-weight: 700; cursor: pointer; transition: all 0.12s ease;
    }
    .ccsv-preset-btn:hover { border-color: var(--brand); color: var(--brand); background: #eff6ff; }
    .ccsv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 10px 14px; margin-bottom: 12px; }
    .ccsv-field label { display: block; font-size: 11.8px; font-weight: 600; color: var(--ink-muted); margin-bottom: 4px; }
    .ccsv-field select {
      width: 100%; padding: 6px 8px; font-size: 12.8px; font-weight: 600; color: var(--ink);
      border: 1px solid var(--control-border); border-radius: 6px; background: #fff; cursor: pointer;
    }
    .ccsv-cols { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 8px 0; border-top: 1px solid var(--hairline); margin-bottom: 10px; font-size: 12.5px; }
    .ccsv-cols label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-weight: 600; color: var(--ink); transition: color 0.14s ease, opacity 0.14s ease; }
    .ccsv-cols label:has(input:not(:checked)) { color: #94a3b8; font-weight: 400; }
    .ccsv-cols label:has(input:not(:checked)):hover { color: #475569; }
    .ccsv-preview-box {
      background: #0f172a; color: #e2e8f0; border-radius: 7px; padding: 9px 11px;
      font-family: "JetBrains Mono", Consolas, monospace; font-size: 11.6px; line-height: 1.5;
      overflow-x: auto; white-space: pre; margin-bottom: 12px;
    }
    .ccsv-actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

    /* Cold-Visitor 1-Click Live Sample Strip & Upload Progress Bar */
    .upload-progress-bar {
      display: none;
      margin-top: 10px;
      padding: 10px 14px;
      border-radius: 9px;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      text-align: left;
    }
    .upload-progress-bar.active { display: block; }
    .up-prog-text {
      font-size: 13px; font-weight: 700; color: #1e3a8a; margin-bottom: 6px;
      display: flex; align-items: center; justify-content: space-between; gap: 8px;
    }
    .up-prog-track {
      width: 100%; height: 6px; background: #dbeafe; border-radius: 999px; overflow: hidden;
    }
    .up-prog-fill {
      height: 100%; width: 22%; background: linear-gradient(90deg, #1d4ed8, #2563eb, #3b82f6);
      border-radius: 999px; transition: width 0.35s ease;
    }

    /* Ledger Inline Editing, Search, Row Actions, Merchant Rule Controls & Page Jump */
    .tx-toolbar-right {
      display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
    }
    .tx-search-input {
      padding: 4px 10px; font-size: 12.5px; border: 1px solid #cbd5e1; border-radius: 7px;
      background: #ffffff; color: var(--ink); width: 218px; min-width: 190px; outline: none;
    }
    .tx-search-input:focus { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.12); }
    .tx-tool-btn {
      background: #ffffff; color: #1e293b; border: 1px solid #cbd5e1; border-radius: 7px;
      padding: 4px 10px; font-size: 12.2px; font-weight: 700; cursor: pointer; transition: all 0.12s ease;
    }
    .tx-tool-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); background: #eff6ff; }
    .tx-tool-btn:disabled { opacity: 0.45; cursor: not-allowed; }
    .tx-tool-btn.add-row { background: #f0fdf4; border-color: #86efac; color: #166534; }
    .tx-tool-btn.add-row:hover { background: #dcfce7; border-color: #16a34a; color: #14532d; }
    .tx-tool-btn.sort-date-btn { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
    .tx-tool-btn.sort-date-btn:hover { background: #dbeafe; border-color: var(--brand); color: #1e3a8a; }
    .mem-ctrl-group {
      display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
      background: #eef2ff; border: 1px solid #c7d2fe; color: #3730a3; font-size: 11.8px; font-weight: 600;
      transition: all 0.14s ease;
    }
    .mem-ctrl-group.is-off {
      background: transparent; border-color: #e2e8f0; color: #94a3b8; font-weight: 500;
    }
    .mem-ctrl-group.is-off:hover { border-color: #cbd5e1; color: #64748b; background: #ffffff; }
    .mem-ctrl-group.is-off .mem-manage-btn { border-color: #e2e8f0; color: #94a3b8; background: transparent; }
    .mem-ctrl-group.is-off .mem-manage-btn:hover { border-color: #cbd5e1; color: #475569; background: #f8fafc; }
    .mem-chk-label {
      display: inline-flex; align-items: center; gap: 5px; cursor: pointer; user-select: none; margin: 0;
    }
    .mem-chk-label input[type="checkbox"] {
      width: 14px; height: 14px; accent-color: #4f46e5; cursor: pointer; margin: 0;
    }
    .mem-manage-btn {
      background: #ffffff; border: 1px solid #a5b4fc; color: #3730a3; border-radius: 999px;
      padding: 1px 8px; font-size: 11.4px; font-weight: 700; cursor: pointer; transition: all 0.12s ease;
    }
    .mem-manage-btn:hover { background: #4f46e5; color: #ffffff; border-color: #4f46e5; }
    .mr-add-bar {
      display: grid; grid-template-columns: minmax(140px, 1.2fr) minmax(160px, 1.3fr) auto auto; gap: 8px;
      align-items: center; padding: 10px 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 9px; margin: 12px 0;
    }
    @media (max-width: 680px) { .mr-add-bar { grid-template-columns: 1fr; } }
    .mr-rules-list {
      max-height: 330px; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 9px; margin-top: 10px;
    }
    .mr-rule-row {
      display: grid; grid-template-columns: minmax(115px, 1.1fr) minmax(165px, 1.3fr) auto auto; gap: 8px;
      align-items: center; padding: 8px 11px; border-bottom: 1px solid #f1f5f9; font-size: 13px;
    }
    .mr-rule-row:last-child { border-bottom: none; }
    .mr-rule-row:hover { background: #f8fafc; }
    @media (max-width: 640px) { .mr-rule-row { grid-template-columns: 1fr auto; } }
    .mr-rule-key { font-weight: 700; color: var(--ink); word-break: break-word; }
    .mr-empty { padding: 24px 14px; text-align: center; color: var(--ink-muted); font-size: 13.5px; }
    .merch-inline-input {
      width: 100%; border: 1px solid transparent; background: transparent;
      font-family: inherit; font-size: 13.8px; font-weight: 600; color: var(--ink);
      padding: 2px 5px; margin: -2px -5px; border-radius: 5px; transition: all 0.12s ease;
    }
    .merch-inline-input:hover { border-color: #cbd5e1; background: #ffffff; }
    .merch-inline-input:focus { border-color: var(--brand); background: #ffffff; outline: none; box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.12); }
    .row-id-cell { display: flex; align-items: center; gap: 4px; font-weight: 700; color: #64748b; }
    .row-del-btn {
      width: 20px; height: 20px; border-radius: 5px; border: 1px solid transparent; background: transparent;
      color: #94a3b8; font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer;
      display: inline-flex; align-items: center; justify-content: center; transition: all 0.12s ease;
    }
    tr:hover .row-del-btn { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
    .row-del-btn:hover { background: #dc2626 !important; color: #ffffff !important; border-color: #dc2626 !important; }
    .pg-jump-btn {
      background: #f1f5f9; border: 1px solid #cbd5e1; color: #1e3a8a; border-radius: 5px;
      padding: 2px 6px; font-size: 11.8px; font-weight: 700; cursor: pointer; transition: all 0.12s ease;
    }
    .pg-jump-btn:hover { background: #dbeafe; border-color: var(--brand); }
    .dup-jump-btn {
      margin-left: 6px; background: #ffffff; color: #b91c1c; border: 1px solid #fca5a5;
      border-radius: 5px; padding: 1px 7px; font-size: 11.5px; font-weight: 700; cursor: pointer;
    }
    .dup-jump-btn:hover { background: #dc2626; color: #ffffff; border-color: #dc2626; }
    .pdf-file-select {
      background: #f8fafc; color: #0f172a; border: 1px solid #94a3b8; border-radius: 6px;
      padding: 4px 8px; font-size: 12px; font-weight: 700; max-width: 210px; cursor: pointer;
    }
    .seo-quick-links {
      width: 100%; max-width: 960px; margin: 0; padding: 0; border-top: 1px solid var(--hairline);
    }
    .seo-ql-title {
      font-size: 14px; font-weight: 600; color: var(--ink); margin: 0;
    }
    .seo-ql-wrap {
      display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
    }
    .seo-ql-wrap a {
      font-size: 12.8px; color: var(--ink-secondary); text-decoration: none; font-weight: 500;
    }
    .seo-ql-wrap a:hover { color: var(--brand); text-decoration: underline; }
    .ft-links-grid {
      display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px;
    }
    .ft-link-item {
      display: flex; flex-direction: column; gap: 2px;
      padding: 8px 11px; border-radius: 7px;
      border: 1px solid var(--hairline); background: #ffffff;
      text-decoration: none; transition: border-color 0.14s ease, background 0.14s ease;
    }
    .ft-link-item:hover { border-color: #93c5fd; background: #f8faff; }
    .ft-link-item strong { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35; }
    .ft-link-item:hover strong { color: var(--brand); }
    .ft-link-item span { font-size: 12px; color: var(--ink-muted); line-height: 1.4; }

    /* Account Type Badge & High-Visibility Audit Insights / Risk Alert Banner */
    .acct-type-badge {
      display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600;
      padding: 2px 8px; border-radius: 5px; background: #eff6ff; color: var(--brand);
      vertical-align: middle; margin-left: 8px;
    }
    /* Unified Audit Insights inside Shield Card (All Risk Pills are True Clickable Buttons!) */
    .insights-strip {
      display: none;
      margin-top: 13px;
      padding-top: 12px;
      border-top: 1px solid rgba(15, 23, 42, 0.1);
    }
    .insights-strip.has-alert {
      margin: 13px -10px -4px;
      padding: 11px 12px;
      background: #fff7ed;
      border: 1px solid #fdba74;
      border-left: 4px solid #dc2626;
      border-radius: 8px;
    }
    .insights-head {
      display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
      font-size: 14px; font-weight: 700; color: var(--ink);
    }
    .insights-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .ins-pill {
      font-size: 12.6px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
      background: #ffffff; color: #1e293b; border: 1px solid #cbd5e1;
      display: inline-flex; align-items: center; gap: 5px;
      cursor: pointer; font-family: inherit; transition: all 0.14s ease;
    }
    .ins-pill:hover { border-color: var(--brand); color: var(--brand); background: #f8faff; transform: translateY(-1px); }
    .ins-pill.subtle {
      background: transparent; color: #64748b; border: 1px solid #e2e8f0; font-weight: 600;
    }
    .ins-pill.subtle:hover { background: #ffffff; color: #334155; border-color: #cbd5e1; }
    .ins-pill.warn {
      background: #dc2626; color: #ffffff; border-color: #b91c1c;
      box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
    }
    .ins-pill.warn:hover { background: #b91c1c; color: #ffffff; border-color: #991b1b; }
    .ins-pill.nsf-warn {
      background: #ea580c; color: #ffffff; border-color: #c2410c;
      box-shadow: 0 2px 6px rgba(234, 88, 12, 0.24);
    }
    .ins-pill.nsf-warn:hover { background: #c2410c; color: #ffffff; border-color: #9a3412; }
    .ins-pill.good { background: #dcfce7; color: #166534; border-color: #86efac; }
    .ins-pill.good:hover { background: #bbf7d0; color: #14532d; border-color: #22c55e; }
    .ins-pill.info-soft {
      background: #f0f9ff; color: #0369a1; border-color: #bae6fd; font-weight: 600;
    }
    .ins-pill.info-soft:hover { background: #e0f2fe; border-color: #7dd3fc; color: #075985; }
    .ins-box.is-focused { box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.28); }
    .insights-body {
      display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(15, 23, 42, 0.1);
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; font-size: 13.2px; color: var(--ink);
    }
    .insights-strip.expanded .insights-body { display: grid; }
    .ins-box {
      background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px;
    }
    .ins-box.dup-box {
      background: #fef2f2; border-color: #fecaca;
    }
    .ins-box.dup-adv {
      background: #fffbeb; border-color: #fde68a;
    }
    .ins-pill.dup-adv {
      background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; font-weight: 700;
    }
    .ins-pill.dup-adv:hover { background: #fde68a; color: #78350f; border-color: #f59e0b; }
    .ins-box.nsf-box {
      background: #fff7ed; border-color: #fed7aa;
    }
    .ins-box h4 { font-size: 13.2px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
    .ins-box.dup-box h4 { color: #b91c1c; }
    .ins-box.dup-adv h4 { color: #92400e; }
    .ins-dup-hint {
      font-size: 12.1px; line-height: 1.45; color: #78350f; background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(217, 119, 6, 0.24); border-radius: 6px; padding: 6px 9px; margin-bottom: 7px;
    }
    .ins-box.dup-box .ins-dup-hint {
      color: #991b1b; border-color: rgba(220, 38, 38, 0.22);
    }
    .dup-dismiss-btn {
      margin-left: 6px; background: #ffffff; color: #475569; border: 1px solid #cbd5e1;
      border-radius: 5px; padding: 1px 8px; font-size: 11.5px; font-weight: 700; cursor: pointer;
    }
    .dup-dismiss-btn:hover { background: #f0fdf4; color: #166534; border-color: #86efac; }
    .dup-autofix-btn {
      margin-left: 6px; background: #16a34a; color: #ffffff; border: 1px solid #15803d;
      border-radius: 5px; padding: 2px 9px; font-size: 11.5px; font-weight: 700; cursor: pointer;
    }
    .dup-autofix-btn:hover { background: #15803d; }
    .dup-context-bar {
      display: none; padding: 8px 14px; background: #fffbeb; border-bottom: 1px solid #fde68a;
      font-size: 12.4px; color: #92400e; font-weight: 600;
      align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    }
    .dup-context-bar.is-variance { background: #fef2f2; border-bottom-color: #fecaca; color: #991b1b; }
    .dup-context-bar.open { display: flex; }
    .undo-inline-btn {
      margin-left: 8px; background: #ffffff; color: #334155; border: 1px solid #cbd5e1;
      border-radius: 6px; padding: 2px 9px; font-size: 12px; font-weight: 700; cursor: pointer;
      vertical-align: baseline;
    }
    .undo-inline-btn:hover { border-color: var(--brand); color: var(--brand); background: #eff6ff; }
    .sv-hover-tip {
      position: fixed; z-index: 9999; max-width: 310px;
      padding: 7px 11px; border-radius: 7px;
      background: rgba(15, 23, 42, 0.96); color: #f8fafc;
      font-size: 12.2px; font-weight: 500; line-height: 1.45;
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.08);
      pointer-events: none; opacity: 0; transform: translateY(3px);
      transition: opacity 0.11s ease, transform 0.11s ease;
      visibility: hidden; word-break: break-word;
    }
    .sv-hover-tip.visible { opacity: 1; transform: translateY(0); visibility: visible; }
    #catTableBody tr.cat-drill-row { cursor: pointer; transition: background 0.12s ease; }
    #catTableBody tr.cat-drill-row:hover td { background: #eff6ff; }
    #tmTbody tr.cat-drill-row { cursor: pointer; transition: background 0.12s ease; }
    #tmTbody tr.cat-drill-row:hover td { background: #eff6ff; }
    .cat-drill-cue { color: #94a3b8; font-size: 11.5px; font-weight: 600; margin-left: 5px; transition: color 0.12s ease; }
    #catTableBody tr.cat-drill-row:hover .cat-drill-cue,
    #tmTbody tr.cat-drill-row:hover .cat-drill-cue { color: var(--brand); }
    .filtered-sum-stats { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; font-size: 12.5px; color: #0f172a; }
    .filtered-sum-num { font-family: "JetBrains Mono", Consolas, monospace; font-weight: 700; }
    .subset-act-btn {
      background: #ffffff; color: #1e3a8a; border: 1px solid #93c5fd; border-radius: 6px;
      padding: 4px 10px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.12s ease;
    }
    .subset-act-btn:hover { background: var(--brand); color: #ffffff; border-color: var(--brand); }
    .subset-act-btn.primary-sub { background: var(--brand); color: #ffffff; border-color: var(--brand); }
    .subset-act-btn.primary-sub:hover { background: #1e40af; border-color: #1e40af; }
    .ins-box.nsf-box h4 { color: #c2410c; }
    .ins-box ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
    .ins-box li { padding: 5px 0; border-bottom: 1px solid rgba(15, 23, 42, 0.08); line-height: 1.4; }
    .ins-box li:last-child { border-bottom: none; }
    .ins-dup-amt { color: #dc2626; font-weight: 800; font-family: "JetBrains Mono", Consolas, monospace; }

    /* Quick Category Filter Strip above Transaction Ledger */
    .tx-filter-bar {
      display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
      padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid var(--hairline);
    }
    .tx-filter-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
    .tx-fbtn {
      background: #ffffff; color: #334155; border: 1px solid #cbd5e1; border-radius: 999px;
      padding: 4px 12px; font-size: 12.4px; font-weight: 700; cursor: pointer; transition: all 0.13s ease;
    }
    .tx-fbtn:hover { border-color: var(--brand); color: var(--brand); }
    .tx-fbtn.active { background: var(--brand); color: #ffffff; border-color: var(--brand); }
    .tx-fbtn.warn-tab { border-color: #fca5a5; color: #b91c1c; background: #fef2f2; }
    .tx-fbtn.warn-tab.active { background: #dc2626; color: #ffffff; border-color: #dc2626; }
    .tx-fbtn.nsf-tab { border-color: #fdba74; color: #c2410c; background: #fff7ed; }
    .tx-fbtn.nsf-tab.active { background: #ea580c; color: #ffffff; border-color: #ea580c; }
    .tx-fbtn.good-tab { border-color: #86efac; color: #166534; background: #f0fdf4; }
    .tx-fbtn.good-tab.active { background: #16a34a; color: #ffffff; border-color: #16a34a; }
    .tx-fbtn.rec-tab { border-color: #cbd5e1; color: #334155; background: #f8fafc; }
    .tx-fbtn.rec-tab.active { background: #334155; color: #ffffff; border-color: #334155; }
    .ins-jump-btn {
      margin-left: 6px; background: #ffffff; color: #334155; border: 1px solid #cbd5e1;
      border-radius: 5px; padding: 1px 7px; font-size: 11.5px; font-weight: 700; cursor: pointer;
    }
    .ins-jump-btn:hover { background: var(--brand); color: #ffffff; border-color: var(--brand); }
    .ins-jump-btn.nsf { color: #c2410c; border-color: #fdba74; }
    .ins-jump-btn.nsf:hover { background: #ea580c; color: #ffffff; border-color: #ea580c; }
    .ins-jump-btn.good { color: #166534; border-color: #86efac; }
    .ins-jump-btn.good:hover { background: #16a34a; color: #ffffff; border-color: #16a34a; }
    .tx-filter-tip { font-size: 12px; color: var(--ink-muted); font-weight: 500; }

    /*Batch Merchant Sync Bar (Sticky so bottom-of-table edits always show it!) + Filtered Batch Action Bar */
    .batch-sync-bar {
      display: none; padding: 9px 14px; background: #eff6ff; border-bottom: 1.5px solid #93c5fd;
      font-size: 13px; color: #1e3a8a; font-weight: 600;
      align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
      position: sticky; top: 56px; z-index: 25;
      box-shadow: 0 3px 10px rgba(30, 58, 138, 0.12);
    }
    .batch-sync-bar.open { display: flex; }
    .filtered-batch-bar {
      display: none; padding: 8px 14px; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
      font-size: 12.5px; color: #334155; font-weight: 600;
      align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    }
    .filtered-batch-bar.open { display: flex; }
    .export-collapsed-gate {
      display: none; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
      padding: 10px 14px; margin: 0 0 12px; border-radius: 10px;
      background: #fff7ed; border: 1.5px solid #fdba74; border-left: 4px solid #ea580c;
      color: #9a3412; font-size: 13px; font-weight: 600;
    }
    .export-collapsed-gate.show { display: flex; }
    .export-done-toast {
      display: none; align-items: center; justify-content: space-between; gap: 10px;
      padding: 9px 14px; margin: -4px 0 12px; border-radius: 8px;
      background: #f0fdf4; border: 1px solid #86efac; color: #166534;
      font-size: 13px; font-weight: 700; line-height: 1.45;
    }
    .export-done-toast.show { display: flex; }
    .export-done-toast.is-warn {
      background: #fffbeb; border-color: #fcd34d; color: #92400e;
    }
    .export-done-toast.is-error {
      background: #fef2f2; border-color: #fecaca; color: #991b1b;
    }
    .sv-floating-notice {
      position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
      z-index: 9500; display: none; align-items: center; justify-content: space-between; gap: 12px;
      max-width: min(560px, calc(100vw - 24px)); padding: 10px 15px; border-radius: 9px;
      background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
      font-size: 13.2px; font-weight: 600; line-height: 1.45;
      box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    }
    .sv-floating-notice.show { display: flex; }
    .sv-floating-notice.is-warn { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
    .sv-floating-notice.is-ok { background: #f0fdf4; border-color: #86efac; color: #166534; }
    .sv-undo-toast {
      position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 14px);
      z-index: 9600; display: inline-flex; align-items: center; gap: 12px;
      max-width: calc(100vw - 24px); padding: 9px 14px 9px 16px; border-radius: 999px;
      background: #0f172a; color: #f8fafc; font-size: 13px; font-weight: 500; line-height: 1.35;
      box-shadow: 0 10px 28px rgba(15, 23, 42, 0.24);
      opacity: 0; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease;
    }
    .sv-undo-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
    .sv-undo-toast-msg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: min(380px, 64vw); }
    .sv-undo-toast-btn {
      background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.24);
      color: #ffffff; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700;
      cursor: pointer; white-space: nowrap; flex-shrink: 0; font-family: inherit;
      transition: background 0.14s ease;
    }
    .sv-undo-toast-btn:hover { background: rgba(255, 255, 255, 0.28); }
    .pricing-partners-strip {
      margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline);
      display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px;
      font-size: 12.6px; color: var(--ink-muted); line-height: 1.5;
    }
    .pricing-partners-strip a {
      color: var(--brand); font-weight: 700; text-decoration: none;
    }
    .pricing-partners-strip a:hover { text-decoration: underline; }
    .pricing-sample-row {
      display: none;
      margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--hairline);
      align-items: center; justify-content: center; text-align: center;
    }
    .pricing-sample-row .btn-sample-whisper {
      white-space: normal; font-size: 11.5px; color: #64748b; line-height: 1.45;
    }
    .mobile-scroll-hint {
      display: none; padding: 5px 12px; background: #f8fafc; border-bottom: 1px solid #eef2f6;
      font-size: 11.5px; color: #64748b; font-weight: 500;
    }
    @media (max-width: 760px) { .mobile-scroll-hint { display: block; } }
    .merchant-main { font-weight: 600; color: var(--ink); font-size: 13.8px; line-height: 1.3; }
    .merchant-raw { font-size: 11.6px; color: var(--ink-muted); margin-top: 2px; line-height: 1.3; }
    .scope-btn {
      margin-top: 4px; display: inline-flex; align-items: center; gap: 4px;
      padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; cursor: pointer;
      border: 1px solid #cbd5e1; background: #f8fafc; color: #334155; transition: all 0.12s ease;
    }
    .scope-btn:hover { border-color: var(--brand); color: var(--brand); }
    .scope-btn.is-personal { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
    .transfer-tag {
      margin-top: 4px; margin-left: 4px; display: inline-block; padding: 1px 6px; border-radius: 4px;
      font-size: 10.8px; font-weight: 600; background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0;
    }
    tr.personal-row { opacity: 0.62; background: #fafbfc; }

    /* Cash Flow Health & Receipt Checklist inside View 2 (Clean Hairline Blocks, No Outer Cage) */
    .analytics-block {
      margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hairline);
    }
    .analytics-block h3 { font-size: 15.5px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
    .analytics-sub { font-size: 12.8px; color: var(--ink-muted); margin-bottom: 14px; }
    .kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px 18px; margin-bottom: 14px; }
    .kpi-box { border-left: 2px solid var(--hairline); padding: 2px 0 2px 12px; }
    .kpi-box span { display: block; font-size: 11.5px; color: var(--ink-muted); font-weight: 600; }
    .kpi-box strong { display: block; font-size: 16px; font-weight: 700; font-family: "JetBrains Mono", Consolas, monospace; color: var(--ink); margin-top: 2px; }

    /* ==========================================================================
       3 SYMMETRICAL VIEW SWITCHERS (Clear, Tactile Primary Tabs)
       ========================================================================== */
    .view-3btns-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin: 18px 0 14px;
      align-items: stretch;
    }
    @media (max-width: 920px) { .view-3btns-grid { grid-template-columns: 1fr; } }

    .view-card-btn {
      background: #ffffff;
      border: 1.5px solid #cbd5e1;
      border-radius: 10px;
      padding: 12px 15px;
      text-align: left;
      cursor: pointer;
      color: var(--ink);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 5px;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
      transition: all 0.15s ease;
    }
    .view-card-btn:hover {
      border-color: var(--brand);
      background: #f8faff;
      transform: translateY(-1px);
      box-shadow: 0 4px 10px rgba(29, 78, 216, 0.11);
    }

    .view-btn-top {
      display: flex; align-items: center; justify-content: space-between; gap: 8px;
    }
    .view-btn-top strong {
      font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.25;
    }
    .view-state-pill {
      font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
      background: #f1f5f9; color: #1e293b; border: 1px solid #cbd5e1; white-space: nowrap; flex-shrink: 0;
    }
    #pdfToggleBtn .view-state-pill {
      background: #eef2ff; color: #3730a3; border-color: #c7d2fe;
    }
    .view-card-btn small {
      font-size: 12.2px; color: #7c8b9e; line-height: 1.4; display: block;
    }

    .view-card-btn.active {
      background: #eff6ff;
      border: 2px solid var(--brand);
      box-shadow: inset 0 3px 0 var(--brand), 0 4px 12px rgba(29, 78, 216, 0.15);
    }
    .view-card-btn.active .view-btn-top strong { color: var(--brand-dark); }
    .view-card-btn.active .view-state-pill {
      background: var(--brand); color: #ffffff; border-color: var(--brand);
    }
    .view-card-btn.active small { color: #5b73a6; }

    .view-card-btn.active-pdf {
      background: #0f172a;
      border: 2px solid #0f172a;
      color: #ffffff;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
    }
    .view-card-btn.active-pdf .view-btn-top strong { color: #ffffff; }
    .view-card-btn.active-pdf .view-state-pill,
    #pdfToggleBtn.active-pdf .view-state-pill {
      background: #16a34a; color: #ffffff; border-color: #16a34a;
    }
    .view-card-btn.active-pdf small { color: #cbd5e1; }

    /* ==========================================================================
       DATA TABLE & ORIGINAL PDF VIEWER
       ========================================================================== */
    .split-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
    .split-wrap > div { min-width: 0; max-width: 100%; }
    .split-wrap.with-pdf { grid-template-columns: minmax(0, 1.32fr) minmax(330px, 0.88fr); }
    .split-wrap.with-pdf .table-card table { min-width: 790px; font-size: 13px; }
    .split-wrap.with-pdf .table-card th,
    .split-wrap.with-pdf .table-card td { padding: 8px 6px; }
    .split-wrap.with-pdf .table-card th:nth-child(3),
    .split-wrap.with-pdf .table-card td:nth-child(3) { min-width: 180px; }
    .split-wrap.with-pdf .table-card .cat-select { min-width: 138px; max-width: 168px; font-size: 12px; }
    .split-wrap.with-pdf .merchant-main { font-size: 13px; }
    @media (max-width: 1024px) { .split-wrap.with-pdf { grid-template-columns: minmax(0, 1fr); } }

    .table-card {
      background: var(--surface);
      border: 1px solid var(--hairline);
      border-radius: 9px;
      min-width: 0;
      max-width: 100%;
    }
    .table-scroll-wrap {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    .pdf-drawer {
      display: none;
      background: #334155;
      border-radius: 9px;
      overflow: hidden;
      border: 1px solid #1e293b;
      height: auto;
      max-height: 1460px;
      flex-direction: column;
    }
    .split-wrap.with-pdf .pdf-drawer { display: flex; }

    .pdf-drawer-header {
      background: #0f172a; color: #fff; padding: 9px 14px; font-size: 13.5px; font-weight: 700;
      display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px;
      border-bottom: 1px solid #1e293b;
    }
    .pdf-Plain-toolbar {
      background: #1e293b;
      padding: 8px 12px;
      display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
      border-bottom: 1px solid #475569;
    }
    .pdf-ctrl-group {
      display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    }
    .pdf-txt-btn {
      background: #f8fafc;
      color: #0f172a;
      border: 1px solid #94a3b8;
      padding: 5px 10px;
      border-radius: 6px;
      font-size: 12.2px;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex; align-items: center; gap: 4px;
      transition: all 0.12s ease;
    }
    .pdf-txt-btn:hover { background: #ffffff; border-color: #1e3a8a; color: #1e3a8a; }
    .pdf-txt-btn.active-zoom {
      background: #1e3a8a;
      color: #ffffff;
      border-color: #172554;
    }
    .pdf-close-txt-btn {
      background: #991b1b;
      color: #ffffff;
      border: 1px solid #7f1d1d;
      padding: 5px 11px;
      border-radius: 6px;
      font-size: 12.2px;
      font-weight: 600;
      cursor: pointer;
    }
    .pdf-close-txt-btn:hover { background: #7f1d1d; }
    .pdf-zoom-badge {
      font-size: 12px; font-weight: 600; color: #cbd5e1; padding: 2px 8px;
      background: rgba(15, 23, 42, 0.55); border-radius: 5px;
    }

    .pdf-pages-scroll {
      flex: 1;
      overflow: auto;
      padding: 14px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 18px;
      background: #475569;
    }
    .pdf-page-sheet {
      display: flex;
      flex-direction: column;
      align-items: center;
      max-width: 100%;
    }
    .pdf-page-caption {
      font-size: 12px; font-weight: 600; color: #e2e8f0; margin-bottom: 6px;
      background: rgba(15, 23, 42, 0.65); padding: 2px 10px; border-radius: 999px;
    }
    .pdf-page-img {
      display: block;
      background: #ffffff;
      border-radius: 3px;
      box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
    }
    .pdf-pages-scroll.mode-fit-width .pdf-page-sheet { width: 100%; }
    .pdf-pages-scroll.mode-fit-width .pdf-page-img { width: 100%; max-width: 100%; height: auto; }
    .pdf-pages-scroll.mode-fit-page .pdf-page-img {
      max-height: 820px; max-width: 100%; width: auto; height: auto;
    }
    .pdf-drawer iframe { width: 100%; height: 1180px; border: none; background: #fff; display: none; }

    /* Table Pagination Footer Bar */
    .table-pager {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      padding: 11px 14px;
      background: #f8fafc;
      border-top: 1px solid var(--hairline);
      font-size: 13px;
      color: var(--ink-secondary);
    }
    .pager-info { font-weight: 500; color: var(--ink-secondary); }
    .pager-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
    .pager-size-select {
      background: #ffffff;
      border: 1px solid var(--control-border);
      border-radius: 6px;
      padding: 4px 8px;
      font-size: 12.5px;
      font-weight: 600;
      color: var(--ink);
      cursor: pointer;
    }
    .pager-btn {
      background: #ffffff;
      border: 1px solid var(--control-border);
      color: var(--ink);
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 12.5px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.12s ease;
    }
    .pager-btn:hover:not(:disabled) {
      border-color: var(--brand);
      color: var(--brand);
      background: #f8fafc;
    }
    .pager-btn.active-pg {
      background: var(--brand);
      border-color: var(--brand);
      color: #ffffff;
    }
    .pager-btn:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }

    table { width: 100%; border-collapse: collapse; font-size: 14px; }
    th {
      background: #f8fafc;
      text-align: left;
      padding: 10px;
      font-size: 12px;
      color: #475569;
      font-weight: 600;
      letter-spacing: 0.02em;
      border-bottom: 1px solid var(--hairline);
    }
    td { padding: 9px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
    tbody tr:hover { background: #f8fafc; }
    tr.anomaly-row { background: #fef2f2 !important; }
    tr.manual-row {
      background: #f0f9ff !important;
      box-shadow: inset 4px 0 0 #0284c7;
    }
    tr.manual-row:hover { background: #e0f2fe !important; }
    tr.edited-row:not(.manual-row):not(.anomaly-row) {
      box-shadow: inset 3px 0 0 #2dd4bf;
    }
    .manual-row-badge {
      display: inline-block;
      margin-top: 3px;
      padding: 1px 6px;
      border-radius: 4px;
      background: #e0f2fe;
      border: 1px solid #7dd3fc;
      color: #0369a1;
      font-size: 10.5px;
      font-weight: 800;
      line-height: 1.3;
      white-space: nowrap;
    }
    .tx-fbtn.edited-tab { border-color: #99f6e4; color: #0f766e; background: #f0fdfa; }
    .tx-fbtn.edited-tab.active { background: #0d9488; color: #ffffff; border-color: #0d9488; }
    tr.locked-blur td { filter: blur(6px); user-select: none; pointer-events: none; }

    .num-input {
      width: 98px; text-align: right; padding: 5px 7px;
      border: 1px solid #cbd5e1;
      border-radius: 5px;
      font-family: "JetBrains Mono", "Consolas", monospace;
      font-variant-numeric: tabular-nums;
      font-size: 13.5px; font-weight: 600; background: #fff;
    }
    .num-input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.12); }
    .num-input.num-edited,
    .eq-input.num-edited {
      background: #f0fdfa !important;
      border-color: #5eead4 !important;
      box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.22);
    }
    tr.anomaly-row .num-input { border-color: var(--danger); background: #fff; }

    .cat-select {
      font-size: 12.8px; padding: 5px 8px;
      border: 1px solid var(--control-border);
      border-radius: 6px; background: #ffffff; color: var(--ink);
      font-weight: 500; max-width: 195px; cursor: pointer;
    }
    .autofix-btn {
      display: inline-flex; align-items: center; gap: 5px;
      margin-top: 6px;
      background: #166534;
      color: #fff; border: 1px solid #14532d;
      padding: 5px 12px; border-radius: 6px; font-size: 12.8px; font-weight: 600; cursor: pointer;
    }
    .autofix-btn:hover { background: #14532d; }
    .anomaly-tip { display: block; font-size: 12.5px; color: #991b1b; font-weight: 600; margin-top: 3px; }

    .paywall-banner {
      background: #0f172a;
      color: #f8fafc; padding: 24px 20px; text-align: center;
    }
    .paywall-banner h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 6px; }
    .paywall-banner p { font-size: 13.8px; color: #cbd5e1; margin-bottom: 15px; }

    /* ==========================================================================
       OPEN EDITORIAL SECTIONS — Zero Stacked White Boxes! Clean Hairlines Only.
       ========================================================================== */
    .persuasion-wrap {
      max-width: 960px;
      margin: 18px auto 0;
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .sec-card, .vault-card, .feedback-section {
      background: transparent;
      border: none;
      border-top: 1px solid var(--hairline);
      border-radius: 0;
      padding: 0;
      box-shadow: none;
    }
    .sec-title {
      font-size: 14px; font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--ink); line-height: 1.38;
    }

    /* Clean Borderless SSR Guide Typography & Spec Rows */
    .guide-intro {
      font-size: 14.4px; color: var(--ink-secondary); line-height: 1.7; margin-bottom: 18px;
    }
    .guide-subh {
      font-size: 14px; font-weight: 700; color: var(--ink); margin: 20px 0 9px;
    }
    .guide-spec-wrap {
      margin-bottom: 20px;
    }
    .guide-spec-table {
      width: 100%; border-collapse: collapse; font-size: 14px;
    }
    .guide-spec-table tr {
      border-bottom: 1px solid #eef2f6;
    }
    .guide-spec-table tr:last-child {
      border-bottom: none;
    }
    .guide-spec-table th {
      background: transparent;
      text-align: left;
      width: 31%;
      padding: 10px 14px 10px 0;
      font-size: 13.5px;
      font-weight: 600;
      color: var(--ink-muted);
      border: none;
      vertical-align: top;
      letter-spacing: 0;
    }
    .guide-spec-table td {
      padding: 10px 0;
      border: none;
      color: var(--ink);
      line-height: 1.56;
      vertical-align: top;
    }
    .guide-spec-table tbody tr:hover { background: transparent; }

    .guide-steps {
      list-style: none; margin: 0 0 22px; padding: 0;
      color: var(--ink-secondary); font-size: 14.5px; line-height: 1.72;
    }
    .guide-steps li { margin-bottom: 8px; }
    .guide-steps li:last-child { margin-bottom: 0; }
    .guide-peers-title {
      font-size: 13px; font-weight: 600; color: var(--ink-muted); margin: 20px 0 8px;
    }
    .guide-peer-links {
      display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
    }
    .guide-peer-link {
      font-size: 13.5px; font-weight: 500; color: var(--brand); text-decoration: none;
    }
    .guide-peer-link:hover { text-decoration: underline; }
    .guide-all-link {
      font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none;
    }
    .guide-all-link:hover { color: var(--brand); text-decoration: underline; }

    .banks-desc {
      font-size: 14.8px; color: var(--ink-secondary); line-height: 1.7; margin-bottom: 18px;
    }
    .directory-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 9px 18px;
      padding: 4px 0;
      cursor: default;
    }
    .dir-item {
      display: flex; align-items: flex-start; gap: 7px;
      font-size: 14px; font-weight: 500; color: var(--ink-secondary);
      line-height: 1.4;
    }
    .dir-check {
      color: var(--emerald); font-weight: 700; font-size: 13.5px; flex-shrink: 0;
    }

    .comp-scroll-wrap {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    .comp-table th {
      background: transparent;
      font-size: 13px; padding: 11px 12px; text-transform: none; letter-spacing: 0; color: var(--ink-muted);
      border-bottom: 1.5px solid var(--hairline);
    }
    .comp-table td {
      font-size: 13.8px; padding: 12px; line-height: 1.54; color: var(--ink-secondary);
      border-bottom: 1px solid #f1f5f9;
    }
    .comp-table td:first-child { font-weight: 600; color: var(--ink); padding-left: 0; }
    .comp-table th:first-child { padding-left: 0; }
    .comp-table td.ours-col, .comp-table th.ours-col {
      background: #f8fafc; font-weight: 600; color: var(--ink);
    }
    .comp-table th.ours-col { color: var(--brand); background: #eff6ff; border-radius: 6px 6px 0 0; }

    /* Open 3-Column Security Architecture */
    .vault-cols {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px 32px;
    }
    .vault-col {
      cursor: default;
    }
    .vault-col h3 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
    .vault-col p { font-size: 13.8px; color: var(--ink-secondary); line-height: 1.62; }

    .faq-item { border-bottom: 1px solid #eef2f6; padding: 14px 0; }
    .faq-item:last-child { border-bottom: none; padding-bottom: 0; }
    .faq-q { font-size: 14.2px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
    .faq-a { font-size: 13.8px; color: var(--ink-secondary); line-height: 1.65; }

    /* Support & Custom Bank Request Section */
    .fb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 16px; }
    .fb-input, .fb-select, .fb-textarea {
      width: 100%; font-size: 14.5px; padding: 9px 12px;
      border: 1px solid var(--control-border);
      border-radius: 7px; background: #fff; color: var(--ink);
      transition: border-color 0.14s, box-shadow 0.14s;
    }
    .fb-select {
      background: #ffffff;
      font-weight: 500; cursor: pointer;
    }
    .fb-input:focus, .fb-select:focus, .fb-textarea:focus {
      outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.12);
    }
    .fb-textarea { min-height: 92px; margin-top: 14px; font-family: inherit; }

    /* Footer */
    .site-footer {
      max-width: 960px;
      margin: 12px auto 0; padding-top: 24px; border-top: 1px solid var(--hairline);
      display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px;
      font-size: 12.8px; color: var(--ink-muted);
    }
    .footer-links {
      display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
    }
    .footer-links a {
      color: var(--ink-secondary); text-decoration: none; font-weight: 500;
    }
    .footer-links a:hover { color: var(--brand); text-decoration: underline; }

    /* ==========================================================================
       COLLAPSIBLE FOUNDER DOCK
       ========================================================================== */
    .founder-dock {
      position: fixed; left: 18px; bottom: 18px; z-index: 95;
      font-size: 12.5px;
    }
    .founder-trigger {
      background: #ffffff; color: #475569;
      border: 1px solid #cbd5e1;
      padding: 7px 13px; border-radius: 7px;
      font-size: 12px; font-weight: 600; cursor: pointer;
      display: inline-flex; align-items: center; gap: 6px;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    }
    .founder-trigger:hover { border-color: #1e3a8a; color: #0f172a; }
    .founder-Menu {
      display: none;
      margin-bottom: 8px;
      background: #0f172a; color: #f8fafc;
      border: 1px solid #334155;
      border-radius: 10px;
      padding: 13px;
      width: min(290px, calc(100vw - 32px));
      box-shadow: 0 14px 32px rgba(15, 23, 42, 0.3);
      flex-direction: column;
      gap: 8px;
    }
    .founder-dock.open .founder-Menu { display: flex; }
    .founder-Menu button {
      background: #1e293b; color: #fff;
      border: 1px solid #475569;
      padding: 8px 11px; border-radius: 6px; font-size: 12.5px; font-weight: 600;
      cursor: pointer; text-align: left; display: flex; justify-content: space-between; align-items: center;
    }
    .founder-Menu button:hover { border-color: #93c5fd; background: #26354d; }
    .founder-Menu button.active-pro { background: #166534; border-color: #22c55e; }
    .badge-cnt {
      background: #dc2626; color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 700;
    }

    /* ==========================================================================
       MODALS
       ========================================================================== */
    .modal-backdrop {
      display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55);
      backdrop-filter: blur(3px);
      z-index: 120; align-items: center; justify-content: center; padding: 18px;
    }
    .modal-backdrop.open { display: flex; }
    .modal-box {
      background: #fff; border-radius: 12px; max-width: 840px; width: 100%; max-height: 90vh;
      overflow-y: auto; padding: 26px 28px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
      border: 1px solid var(--hairline);
    }
    .pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
    .plan-card {
      border: 1px solid var(--hairline); border-radius: 10px; padding: 20px;
      display: flex; flex-direction: column; justify-content: space-between; background: #fff;
    }
    .plan-card.featured {
      border: 1.5px solid var(--brand); background: #fafcff;
    }
    .plan-price { font-size: 27px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 12px; color: var(--ink); }
    .plan-card ul { list-style: none; font-size: 13.8px; color: var(--ink-secondary); margin-bottom: 18px; }
    .plan-card li { margin-bottom: 8px; }
    .plan-btn {
      width: 100%; padding: 10px 14px; border-radius: 7px;
      border: 1px solid #172554;
      background: #1e3a8a;
      color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
    }
    .plan-btn:hover { background: #172554; }
    .bar-bg { width: 110px; height: 7px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
    .bar-fill { height: 100%; background: var(--brand); border-radius: 99px; }

    /* ==========================================================================
       MOBILE & TABLET RESPONSIVENESS (360px - 768px Phones & Tablets)
       ========================================================================== */
    @media (max-width: 780px) {
      .header-inner { flex-wrap: wrap; gap: 8px; }
      .header-controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        max-width: 100%;
      }
      .header-controls .nav-pricing-btn,
      .header-controls .nav-companion-btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .pwa-app-strip {
        flex-wrap: wrap;
        padding: 9px 12px;
        gap: 8px;
      }
      .pwa-install-btn { width: 100%; padding: 7px 12px; }
      .pwa-mini-grid.cols-3 { grid-template-columns: 1fr; }
      .tactile-select-wrap {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        justify-content: space-between;
        padding: 6px 8px;
      }
      .tactile-select-wrap select {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .qh-grid { grid-template-columns: 1fr; gap: 12px; }
      .cap-grid { grid-template-columns: 1fr; gap: 14px; }
      .ft-links-grid { grid-template-columns: 1fr; gap: 7px; }
      .sv-undo-toast { bottom: max(16px, env(safe-area-inset-bottom)); padding: 8px 11px 8px 14px; gap: 9px; font-size: 12.5px; }
      .sv-undo-toast-msg { max-width: 56vw; }
    }

    @media (max-width: 680px) {
      .site-header { position: static; padding: 10px 0; }
      .container { padding: 0 14px; max-width: 100%; overflow-x: clip; }
      .hero-section { padding: 14px 0 10px; text-align: left; }
      .hero-section h1 { font-size: clamp(18px, 4.8vw, 20.5px); line-height: 1.28; margin-bottom: 7px; }
      .hero-section p { font-size: 13.5px; line-height: 1.5; margin-bottom: 12px; }

      /* Compact horizontal 3-step strip on mobile so primary upload CTA stays above the fold */
      .stepper-track {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin: 0 0 14px;
        padding: 0;
      }
      .step-node {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 4px;
        padding: 0 2px;
      }
      .step-node::after { display: none !important; }
      .step-circle { width: 22px; height: 22px; font-size: 11px; margin-bottom: 0; }
      .step-node strong { font-size: 11.8px; line-height: 1.25; }
      .step-node span { display: none; }

      .upload-zone { padding: 18px 14px 16px; }
      .upload-zone.has-queued-files { padding: 10px 10px 11px; }
      .upload-reassure {
        gap: 3px 12px;
        font-size: 11.5px;
        margin: 9px auto 0;
      }
      .upload-drop-headline { font-size: 14.2px; margin-bottom: 10px; line-height: 1.35; }
      .upload-sub-hint { font-size: 12.2px; margin-top: 9px; }

      .uploaded-files-tray { padding: 9px 10px; margin-top: 4px; }
      .uf-list { max-height: 320px; }
      .uf-list.multi-cols { grid-template-columns: 1fr; }
      .uf-tray-hint { display: block; width: 100%; font-size: 11px; }
      .uf-tray-actions { width: 100%; }
      .uf-tray-actions .uf-mini-btn { flex: 1; min-width: 0; padding: 8px 12px; font-size: 13px; }
      .uf-name { font-size: 12.4px; }

      .quick-highlights { margin-top: 18px; padding-top: 14px; }
      .persuasion-wrap { margin-top: 14px; }
      summary.fold-summary { padding: 11px 2px; gap: 7px; }
      summary.fold-summary.fold-compact { padding: 10px 2px; }
      .fold-title { font-size: 13.5px; }
      .fold-sub { font-size: 11.6px; }
      .fold-body { padding: 2px 2px 18px 24px; }

      .shield-card { padding: 13px 13px; }
      .shield-title { font-size: 15.2px; }
      .equation-ledger { grid-template-columns: repeat(2, 1fr); gap: 10px 12px; }
      .eq-col { border-right: none; padding: 0; }

      /* Mobile-friendly Insights Alert, Pre-Export Toggles & 5-Sheet Picker */
      .insights-strip { padding: 11px 12px; margin-bottom: 14px; }
      .ins-pill { font-size: 12px; padding: 4px 9px; white-space: normal; line-height: 1.35; text-align: left; }

      .export-control-panel { padding: 10px 11px; gap: 9px; }
      .export-lock-banner { font-size: 12.4px; padding: 8px 10px; }
      .exp-row-label { width: 100%; margin-right: 0; font-size: 11.8px; white-space: normal; line-height: 1.38; }
      .exp-toggle-pill {
        width: 100%;
        justify-content: space-between;
        padding: 8px 10px;
        font-size: 12.5px;
        gap: 6px;
      }
      .exp-toggle-pill span:nth-child(2) { flex: 1; text-align: left; line-height: 1.32; }
      .sheet-pills-wrap { width: 100%; gap: 6px; }
      .sheet-pill { font-size: 12px; padding: 5px 9px; }
      .sheet-quick-actions { width: 100%; margin-left: 0; justify-content: flex-start; padding-top: 2px; }

      .export-cards-grid { grid-template-columns: 1fr; gap: 10px; }
      .ccsv-actions-row { flex-direction: column; align-items: stretch; }
      .ccsv-actions-row button { width: 100%; }
      .sample-try-bar { justify-content: flex-start; gap: 6px; }
      .sample-try-lbl { width: 100%; text-align: left; }
      .tx-filter-bar { padding: 8px 10px; gap: 6px; }
      .tx-toolbar-right { width: 100%; }
      .tx-search-input { width: auto; flex: 1; min-width: 120px; }
      .tx-filter-tip { width: 100%; font-size: 11.5px; }

      #txViewCard table { min-width: 700px; }
      #catViewCard table { min-width: 460px; }
      .comp-table { min-width: 540px; }
      .comp-table th, .comp-table td { font-size: 13px; padding: 9px 10px; }

      .pdf-drawer { max-height: 75vh; }
      .pdf-txt-btn, .pdf-close-txt-btn { font-size: 11.5px; padding: 4px 8px; }

      .modal-backdrop { padding: 10px; }
      .modal-box { padding: 18px 16px; max-height: 92vh; }
      .pricing-grid { grid-template-columns: 1fr; }
      .plan-card { padding: 16px; }

      .fb-input, .fb-select, .fb-textarea, .eq-input { font-size: 16px; }
      .site-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
    }

    @media (max-width: 560px) {
      .header-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
      .tactile-select-wrap { padding: 6px 6px; }
      .tactile-select-wrap select { font-size: 12px; }
      .sel-caption { display: none; }
      .nav-pricing-btn,
      .nav-companion-btn { padding: 6px 8px; font-size: 12px; }
      .upload-zone .btn-primary { width: 100%; padding: 11px 14px; font-size: 14.5px; }
      .guide-spec-table, .guide-spec-table tbody, .guide-spec-table tr,
      .guide-spec-table th, .guide-spec-table td {
        display: block;
        width: 100% !important;
      }
      .guide-spec-table tr { padding: 9px 0; }
      .guide-spec-table th { padding: 0 0 3px; font-size: 12.2px; }
      .guide-spec-table td { padding: 0; font-size: 14px; }
      .kpi-grid { grid-template-columns: repeat(2, 1fr); }
      .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
    }
