  /* ==== Brand Tokens ==== */
  :root {
    /* Rational 360 brand */
    --r-navy:#0D2649; --r-blue:#00A5CE; --r-marigold:#FFCB29; --r-canyon:#F05C45;
    --r-sequoia:#AE341F; --r-bone:#F8EEE5; --r-fjord:#117C8E; --r-spruce:#07525F;
    --r-snow:#FFFFFF; --r-mountain:#BBBBBB; --r-midnight:#1C1F2A;

    /* Pinpoint Targeting brand (extracted from screenshots) */
    --p-navy:#1A1F4A; --p-coral:#E85D6F; --p-teal:#2BB1AB; --p-purple:#6A6BA9;
    --p-lavender:#EFEDF5; --p-pink-soft:#F4B6BD; --p-purple-soft:#A8A8CD;
    --p-teal-soft:#A4DEDB;

    /* Active brand (set via JS) */
    --brand-primary:    var(--r-navy);
    --brand-accent:     var(--r-canyon);
    --brand-bg:         #F5F1EC;
    --brand-panel:      #FFFFFF;

    --ink: #0D2649;
    --ink-soft: #4A5A73;
    --border: #E4DED5;
    --shadow: 0 1px 2px rgba(13,38,73,.04), 0 8px 24px rgba(13,38,73,.06);
    --radius: 12px;

    --font-sans: 'Inter', 'Aptos', 'Segoe UI', system-ui, sans-serif;
    --font-serif:'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  }

  body[data-brand="pinpoint"] {
    --brand-primary: var(--p-navy);
    --brand-accent:  var(--p-coral);
    --brand-bg:      var(--p-lavender);
    --ink: var(--p-navy);
  }

  * { box-sizing: border-box; }
  html, body { height: 100%; }
  body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--brand-bg);
    -webkit-font-smoothing: antialiased;
  }

  /* ==== Header ==== */
  header.brand {
    background: var(--brand-primary);
    color: #FFFFFF;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 4px solid var(--brand-accent);
    flex-wrap: wrap;
    gap: 10px;
  }
  .logo {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  body[data-brand="pinpoint"] .r360-360 { display: none; }
  body[data-brand="pinpoint"] .r360-name::after { content: "Targeting"; font-weight:500; font-size:14px; margin-left:6px; opacity:.85; letter-spacing:0.02em; }
  body[data-brand="pinpoint"] .r360-name::before { content: ""; display: inline-block; width: 12px; height: 12px; background: var(--p-coral); border-radius: 50%; margin-right: 8px; vertical-align: middle; }
  body[data-brand="none"] .logo { opacity: .6; }
  .logo .r360-name { color: #FFFFFF; }
  .logo .r360-360  { color: var(--brand-accent); }
  .product {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 14px;
    opacity: .85;
    margin-left: 12px;
  }

  .header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .header-actions .btn { background: var(--brand-accent); }
  .header-actions .btn:hover { background: rgba(0,0,0,.15); background-blend-mode: multiply; filter: brightness(.92); }

  /* Brand picker pill */
  .brand-picker {
    display: inline-flex;
    background: rgba(255,255,255,.12);
    border-radius: 999px;
    padding: 3px;
  }
  .brand-picker button {
    background: transparent; color: rgba(255,255,255,.85);
    border: 0; padding: 6px 12px;
    font-size: 12px; font-weight:600;
    border-radius: 999px; cursor: pointer;
    font-family: var(--font-sans);
  }
  .brand-picker button.active {
    background: rgba(255,255,255,.95);
    color: var(--brand-primary);
  }

  /* View mode toggle */
  .view-toggle {
    display: inline-flex;
    background: rgba(255,255,255,.12);
    border-radius: 8px;
    padding: 3px;
  }
  .view-toggle button {
    background: transparent; color: rgba(255,255,255,.85);
    border: 0; padding: 6px 14px;
    font-size: 12px; font-weight:600;
    border-radius: 6px; cursor: pointer;
    font-family: var(--font-sans);
  }
  .view-toggle button.active {
    background: rgba(255,255,255,.95);
    color: var(--brand-primary);
  }

  /* ==== Buttons ==== */
  .btn {
    background: var(--brand-accent);
    color: #FFFFFF;
    border: 0;
    padding: 9px 16px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .01em;
    cursor: pointer;
    transition: filter .15s ease, transform .05s ease;
  }
  .btn:hover { filter: brightness(.92); }
  .btn:active { transform: translateY(1px); }
  .btn.ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--border);
  }
  .btn.ghost:hover { background: var(--r-bone); }
  .btn.small { padding: 6px 12px; font-size: 12px; }
  .btn.icon { padding: 7px 9px; }

  /* ==== Layout ==== */
  .app {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
    height: calc(100vh - 64px);
    transition: padding-right .25s cubic-bezier(.4,0,.2,1);
  }
  /* When Format panel is open, shrink stage to make room */
  #workspace-root.format-open .app {
    padding-right: 354px;
  }

  /* ==== Format Panel (slide-in from right) ==== */
  #format-panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 340px;
    background: var(--brand-panel);
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 20px rgba(13,38,73,.10);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    z-index: 50;
    overflow: hidden;
  }
  #workspace-root.format-open #format-panel {
    transform: translateX(0);
  }
  #format-panel .panel-header {
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border);
  }
  #format-panel .panel-header h2 { margin: 0; }
  #format-panel .fp-close {
    width: 26px; height: 26px; border-radius: 6px;
    border: 1px solid var(--border); background: none;
    cursor: pointer; font-size: 15px; color: var(--ink-soft);
    display: flex; align-items: center; justify-content: center;
    transition: all .1s; flex-shrink: 0;
  }
  #format-panel .fp-close:hover { background: var(--brand-bg); color: var(--r-navy); }
  .fp-reset-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px;
    background: #C0392B; color: #fff;
    border: none; border-radius: 7px;
    padding: 8px 12px; cursor: pointer;
    font-family: var(--font-sans); font-size: 13px; font-weight: 700;
    transition: filter .12s;
  }
  .fp-reset-btn:hover { filter: brightness(1.1); }
  .fp-reset-btn:active { filter: brightness(.93); transform: translateY(1px); }
  /* Branding pill toggle */
  .skin-toggle-track {
    display: flex;
    background: var(--r-bone);
    border-radius: 8px;
    padding: 3px;
    gap: 0;
  }
  .skin-opt {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 7px 10px; border-radius: 6px;
    border: none; background: transparent;
    font-family: var(--font-sans); font-size: 12px; font-weight: 600;
    color: var(--ink-soft); cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
  }
  .skin-toggle-track[data-skin="rational"] .skin-opt[data-skin="rational"],
  .skin-toggle-track[data-skin="pinpoint"] .skin-opt[data-skin="pinpoint"] {
    background: #fff;
    color: var(--r-navy);
    box-shadow: 0 1px 3px rgba(13,38,73,.10);
  }
  .skin-opt:hover { color: var(--r-navy); }
  .skin-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  }

  /* ==== Add Data Modal ==== */
  #data-drawer { /* now a fixed modal overlay — layout via inline styles */ }
  .dd-header {
    flex-shrink: 0;
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--brand-panel);
  }
  .dd-title { font-size: 16px; font-weight: 800; color: var(--r-navy); letter-spacing: -.02em; }
  .dd-sub { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
  .dd-close {
    width: 28px; height: 28px; border-radius: 6px;
    border: 1px solid var(--border); background: none;
    cursor: pointer; font-size: 15px; color: var(--ink-soft);
    display: flex; align-items: center; justify-content: center;
    transition: all .1s; flex-shrink: 0; margin-left: 12px; margin-top: 2px;
  }
  .dd-close:hover { background: var(--brand-bg); color: var(--r-navy); }
  .dd-body { flex: 1; overflow-y: auto; padding: 20px; }
  .dd-sample-btn {
    width: 100%; display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, var(--r-canyon) 0%, #d44a33 100%);
    color: #fff; border: none; border-radius: 10px;
    padding: 14px 16px; cursor: pointer; text-align: left;
    font-family: var(--font-sans); transition: filter .15s;
    margin-bottom: 16px;
  }
  .dd-sample-btn:hover { filter: brightness(1.08); }
  .dd-sample-btn strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
  .dd-sample-icon { font-size: 22px; flex-shrink: 0; }
  .dd-sample-sub { font-size: 12px; opacity: .85; }
  .dd-divider {
    display: flex; align-items: center; gap: 10px;
    margin: 0 0 16px; font-size: 11px; font-weight: 600;
    color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em;
  }
  .dd-divider::before, .dd-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
  }
  .dd-tab-panel { display: none; }
  .dd-tab-panel.active { display: block; }
  .panel {
    background: var(--brand-panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .panel-header {
    padding: 14px 18px 10px;
    border-bottom: 1px solid var(--border);
  }
  .panel-header h2 {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--brand-primary);
  }
  body[data-brand="pinpoint"] .panel-header h2 { color: var(--p-coral); }
  .panel-header p {
    margin: 4px 0 0;
    font-family: var(--font-serif);
    font-size: 13px;
    color: var(--ink-soft);
  }
  .panel-body {
    padding: 14px 16px;
    overflow-y: auto;
    flex: 1;
  }

  /* ==== Tabs ==== */
  .tabs {
    display: flex;
    gap: 4px;
    background: var(--r-bone);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 14px;
  }
  body[data-brand="pinpoint"] .tabs { background: #E8E4F2; }
  .tab {
    flex: 1;
    text-align: center;
    padding: 7px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--ink-soft);
    transition: all .15s;
  }
  .tab.active {
    background: #FFFFFF;
    color: var(--brand-primary);
    box-shadow: 0 1px 3px rgba(13,38,73,.08);
  }
  .tab-panel { display: none; }
  .tab-panel.active { display: block; }

  /* ==== Form ==== */
  label.field { display: block; margin-bottom: 12px; }
  label.field > span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  input[type="text"], input[type="number"], textarea, select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--ink);
    background: #FFFFFF;
    transition: border-color .15s;
  }
  input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(0,0,0,.05);
  }
  textarea { resize: vertical; min-height: 90px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

  /* Dropzone */
  .dropzone {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
    background: #FCFAF7;
  }
  body[data-brand="pinpoint"] .dropzone { background: #F8F6FC; }
  .dropzone:hover { border-color: var(--brand-accent); background: rgba(0,0,0,.02); }
  .dropzone.drag { border-color: var(--brand-accent); }
  .dropzone .icon { font-size: 26px; color: var(--ink-soft); margin-bottom: 4px; }
  .dropzone p { margin: 4px 0; font-size: 13px; color: var(--ink-soft); }
  .dropzone strong { color: var(--ink); font-weight: 600; }

  /* Manual grid */
  .grid-wrap {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: auto;
    max-height: 280px;
    background: #FFFFFF;
  }
  table.data-grid { border-collapse: collapse; width: 100%; font-size: 12px; }
  table.data-grid th, table.data-grid td {
    border: 1px solid var(--border);
    padding: 0;
    min-width: 80px;
  }
  table.data-grid th { background: var(--r-bone); }
  body[data-brand="pinpoint"] table.data-grid th { background: #E8E4F2; }
  table.data-grid input {
    border: 0; width: 100%; padding: 6px 8px;
    background: transparent; font-size: 12px; font-family: var(--font-sans);
  }
  table.data-grid input:focus {
    outline: 2px solid var(--brand-accent);
    outline-offset: -2px;
  }
  table.data-grid th input { font-weight: 600; color: var(--brand-primary); }
  .grid-controls { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

  /* Chart type picker */
  .chart-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 6px;
  }
  .chart-type {
    background: var(--r-bone);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-soft);
    transition: all .15s;
    position: relative;
  }
  body[data-brand="pinpoint"] .chart-type { background: #E8E4F2; }
  .chart-type:hover { transform: translateY(-1px); }
  .chart-type.active {
    background: #FFFFFF;
    border-color: var(--brand-accent);
    color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(0,0,0,.05);
  }
  .chart-type svg { display: block; margin: 0 auto 4px; width: 24px; height: 18px; }

  /* Chart stage */
  .chart-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 0;
    position: relative;
  }
  .chart-stage[data-chart-skin="pinpoint"] { background: #FFFFFF; }
  .chart-stage-header {
    padding: 18px 24px 0;
    position: relative;
  }
  /* Download icon — top-right of chart canvas header */
  .stage-dl-wrap {
    position: absolute;
    top: 14px; right: 16px;
    display: flex; gap: 6px; align-items: center;
  }
  .stage-dl-btn {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: 1px solid var(--border);
    border-radius: 7px; cursor: pointer;
    color: var(--ink-soft);
    transition: background .12s, border-color .12s, color .12s;
  }
  .stage-dl-btn:hover { background: var(--r-bone); border-color: var(--ink-soft); color: var(--r-navy); }
  .stage-dl-wrap #download-menu {
    position: absolute;
    top: calc(100% + 6px); right: 0;
    background: var(--brand-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(13,38,73,.12);
    z-index: 200;
    min-width: 210px;
    overflow: hidden;
  }
  .chart-stage-header .eyebrow {
    font-size: 10px;
    font-weight: 700;
    color: var(--brand-accent);
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  body[data-brand="none"] .chart-stage-header .eyebrow { display: none; }
  .chart-stage-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-primary);
    letter-spacing: -.015em;
    outline: none;
  }
  .chart-stage-header h1:hover, .chart-stage-header .subtitle:hover {
    background: rgba(0,0,0,.03);
    border-radius: 4px;
  }
  .chart-stage-header h1[contenteditable]:focus, .chart-stage-header .subtitle[contenteditable]:focus {
    background: rgba(0,0,0,.04); outline: 2px dashed var(--brand-accent); outline-offset: 2px; border-radius: 4px;
  }
  .chart-stage-header .subtitle {
    margin: 4px 0 0;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--ink-soft);
    font-size: 14px;
    outline: none;
  }
  #chart, #chart-pinpoint, #table-view {
    flex: 1;
    min-height: 0;
    padding: 8px 16px 12px;
    overflow: auto;
  }
  #table-view { padding: 16px 24px; }

  .chart-stage-footer {
    padding: 8px 24px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--ink-soft);
    border-top: 1px solid var(--border);
    margin-top: 4px;
    font-family: var(--font-serif);
    font-style: italic;
  }
  body[data-brand="none"] .chart-stage-footer .brand-mark { display: none; }
  .brand-mark { font-family: var(--font-sans); font-style: normal; font-weight: 800; color: var(--brand-primary); font-size: 13px; }
  .brand-mark .accent { color: var(--brand-accent); }

  .stage-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    text-align: center;
    padding: 40px;
    cursor: pointer;
    transition: background .12s;
  }
  .stage-empty:hover { }
  .stage-empty .big {
    font-size: 18px;
    color: var(--brand-primary);
    font-weight: 700;
    margin-bottom: 8px;
  }
  .stage-empty .hint { font-family: var(--font-serif); font-style: italic; max-width: 420px; }

  /* Insight callout (Flourish-style) */
  .insight-callout {
    display: none;
    position: absolute;
    background: var(--brand-accent);
    color: #FFFFFF;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    max-width: 260px;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    pointer-events: none;
    z-index: 10;
  }
  .insight-callout.show { display: block; }
  .insight-callout::before {
    content: "";
    position: absolute;
    bottom: -8px; left: 24px;
    width: 0; height: 0;
    border: 8px solid transparent;
    border-top-color: var(--brand-accent);
    border-bottom: 0;
  }

  /* ==== Series rows (improved) ==== */
  .series-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    background: var(--r-bone);
    border-radius: 8px;
    margin-bottom: 6px;
    transition: opacity .15s;
  }
  body[data-brand="pinpoint"] .series-row { background: #F0EBF6; }
  .series-row.hidden-series { opacity: .42; }
  .series-row .swatch-btn {
    display: flex; align-items: center; gap: 6px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px 4px 4px;
    cursor: pointer;
    font-size: 11px; font-weight: 600;
    color: var(--ink-soft);
    transition: all .12s;
  }
  .series-row .swatch-btn:hover { border-color: var(--brand-accent); background: rgba(0,0,0,.02); }
  .swatch-btn .swatch {
    width: 22px; height: 22px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,.08);
    flex-shrink: 0;
  }
  .swatch-btn .caret { font-size: 9px; opacity: .55; }
  .series-row input.s-name {
    border: 1px solid transparent;
    background: transparent;
    padding: 5px 6px;
    font-weight: 600;
    font-size: 12px;
    color: var(--ink);
    border-radius: 4px;
  }
  .series-row input.s-name:hover { background: rgba(0,0,0,.03); }
  .series-row input.s-name:focus {
    outline: none; background: #FFFFFF; border-color: var(--brand-accent);
  }
  .series-row .toggle {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 32px; height: 26px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-primary);
    font-size: 13px;
    transition: all .12s;
  }
  .series-row .toggle:hover { border-color: var(--brand-accent); }
  .series-row.hidden-series .toggle { background: var(--r-mountain); color: #FFFFFF; }

  /* Color picker popup */
  .color-popup {
    position: absolute;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
    z-index: 100;
    width: 240px;
  }
  .color-popup h4 {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ink-soft);
  }
  .color-popup .swatches {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    margin-bottom: 10px;
  }
  .color-popup .sw {
    width: 100%; aspect-ratio: 1;
    border-radius: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .1s;
    position: relative;
  }
  .color-popup .sw:hover { transform: scale(1.12); }
  .color-popup .sw.active { border-color: var(--brand-primary); }
  .color-popup .custom-row {
    display: flex; gap: 8px; align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  .color-popup input[type="color"] {
    width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 6px;
    padding: 0; cursor: pointer;
  }
  .color-popup input[type="text"] {
    flex: 1; font-family: ui-monospace, monospace; font-size: 12px;
  }

  /* Category color list (single-series mode) */
  .category-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
    padding: 6px 10px;
    background: var(--r-bone);
    border-radius: 6px;
    margin-bottom: 4px;
  }
  body[data-brand="pinpoint"] .category-row { background: #F0EBF6; }
  .category-row .label-text {
    font-size: 12px; font-weight: 500; color: var(--ink);
  }

  /* Palette picker */
  .palette {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px;
  }
  .palette-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    cursor: pointer;
  }
  .palette-chip {
    width: 50px; height: 26px;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: transform .1s;
  }
  .palette-item:hover .palette-chip { transform: translateY(-1px); }
  .palette-chip.active { border-color: var(--brand-primary); box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
  .palette-label {
    font-size: 10px; color: var(--ink-soft); text-transform: capitalize;
  }

  /* Section divider */
  .section {
    border-top: 1px solid var(--border);
    margin-top: 14px;
    padding-top: 12px;
  }
  .section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
  .section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--brand-primary);
    margin: 0 0 8px;
    display: flex; justify-content: space-between; align-items: center;
  }
  body[data-brand="pinpoint"] .section-title { color: var(--p-coral); }
  .section-title .count { background: var(--r-bone); color: var(--ink-soft); border-radius: 999px; padding: 2px 8px; font-size: 10px; letter-spacing: .04em; }
  body[data-brand="pinpoint"] .section-title .count { background: #F0EBF6; }
  .helper { font-size: 11px; color: var(--ink-soft); margin: 0 0 8px; font-family: var(--font-serif); font-style: italic; }

  /* Toast */
  /* Toast — defined in override block below */

  /* Modal (export options) */
  .modal-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(13,38,73,.55);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .modal-backdrop.show { display: flex; }
  .modal {
    background: #FFFFFF;
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(0,0,0,.3);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow: auto;
  }
  .modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
  }
  .modal-header h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--brand-primary); }
  .modal-close {
    background: transparent; border: 0; cursor: pointer;
    font-size: 20px; color: var(--ink-soft);
  }
  .modal-body { padding: 18px 22px; }
  .modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    display: flex; justify-content: flex-end; gap: 10px;
  }

  /* Aspect ratio picker */
  .aspect-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 14px;
  }
  .aspect-item {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 10px 4px;
    text-align: center;
    cursor: pointer;
    transition: all .12s;
    background: #FFFFFF;
  }
  .aspect-item:hover { border-color: var(--brand-accent); }
  .aspect-item.active { border-color: var(--brand-accent); background: rgba(0,0,0,.02); }
  .aspect-shape {
    background: var(--ink-soft);
    margin: 0 auto 6px;
    border-radius: 2px;
    opacity: .55;
  }
  .aspect-item .label { font-size: 11px; font-weight: 600; color: var(--ink); }
  .aspect-item .dims { font-size: 9px; color: var(--ink-soft); margin-top: 2px; }

  /* Annotations / reference list */
  .ann-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 8px;
    background: var(--r-bone);
    border-radius: 6px;
    margin-bottom: 6px;
  }
  body[data-brand="pinpoint"] .ann-row { background: #F0EBF6; }
  .ann-row select, .ann-row input { font-size: 12px; padding: 5px 8px; }
  .ann-row .x-btn {
    background: transparent; border: 0; cursor: pointer;
    color: var(--ink-soft); font-size: 16px; padding: 2px 6px;
  }
  .ann-row .x-btn:hover { color: var(--r-sequoia); }

  /* ==== Table View ==== */
  .table-container {
    background: #FFFFFF;
  }
  .data-table {
    border-collapse: collapse;
    width: 100%;
    font-family: var(--font-sans);
    font-size: 13px;
  }
  .data-table th, .data-table td {
    padding: 10px 14px;
    text-align: left;
  }
  .data-table th {
    font-weight: 700;
    color: var(--brand-primary);
  }
  .data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

  /* Table style: modern */
  .data-table.style-modern th {
    border-bottom: 2px solid var(--brand-primary);
    text-transform: uppercase; font-size: 11px; letter-spacing: .08em;
  }
  .data-table.style-modern td { border-bottom: 1px solid #EFEAE2; }
  body[data-brand="pinpoint"] .data-table.style-modern td { border-bottom: 1px solid #E8E4F2; }
  .data-table.style-modern tr:last-child td { border-bottom: 0; }

  /* Banded */
  .data-table.style-banded th {
    background: var(--brand-primary);
    color: #FFFFFF;
    text-transform: uppercase; font-size: 11px; letter-spacing: .08em;
  }
  .data-table.style-banded tr:nth-child(even) td { background: var(--r-bone); }
  body[data-brand="pinpoint"] .data-table.style-banded tr:nth-child(even) td { background: var(--p-lavender); }

  /* Bordered */
  .data-table.style-bordered th, .data-table.style-bordered td {
    border: 1px solid var(--border);
  }
  .data-table.style-bordered th { background: var(--r-bone); }
  body[data-brand="pinpoint"] .data-table.style-bordered th { background: var(--p-lavender); }

  /* Minimal */
  .data-table.style-minimal th {
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
    color: var(--ink-soft);
    text-transform: uppercase; font-size: 10px; letter-spacing: .1em; font-weight: 600;
  }
  .data-table.style-minimal td { padding: 8px 14px; }

  /* Editorial */
  .data-table.style-editorial {
    font-family: var(--font-serif);
    font-size: 14px;
  }
  .data-table.style-editorial th {
    font-family: var(--font-sans);
    border-bottom: 3px double var(--brand-primary);
    text-transform: uppercase; font-size: 10px; letter-spacing: .12em;
  }
  .data-table.style-editorial td { border-bottom: 1px dotted var(--border); padding: 12px 14px; }

  /* Financial */
  .data-table.style-financial {
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 13px;
  }
  .data-table.style-financial th {
    font-family: var(--font-sans);
    background: var(--brand-primary); color: #FFFFFF;
    padding: 8px 14px;
    text-transform: uppercase; font-size: 11px; letter-spacing: .06em;
  }
  .data-table.style-financial th.num, .data-table.style-financial td.num {
    text-align: right;
  }
  .data-table.style-financial tr:hover td { background: rgba(0,0,0,.03); }
  .data-table.style-financial td { border-bottom: 1px solid var(--border); }

  .data-table th.sortable { cursor: pointer; user-select: none; }
  .data-table th.sortable:hover { color: var(--brand-accent); }
  .data-table th .sort-arrow { opacity: .5; font-size: 10px; margin-left: 4px; }
  .data-table th.sort-asc .sort-arrow, .data-table th.sort-desc .sort-arrow { opacity: 1; color: var(--brand-accent); }

  /* Heatmap cell coloring overlay */
  .data-table td.heat { position: relative; }

  /* Apex chart text/tooltip ===== readability fix ===== */
  .apexcharts-text { font-family: var(--font-sans) !important; fill: var(--ink) !important; }
  .apexcharts-tooltip {
    font-family: var(--font-sans) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,.18) !important;
    border: 1px solid #D4D0C8 !important;
    background: #FFFFFF !important;
    color: var(--r-navy) !important;
    border-radius: 8px !important;
    overflow: hidden;
  }
  .apexcharts-tooltip-title {
    background: var(--brand-primary) !important;
    color: #FFFFFF !important;
    border-bottom: 0 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 8px 12px !important;
  }
  .apexcharts-tooltip-series-group {
    padding: 6px 12px !important;
  }
  .apexcharts-tooltip-text-y-label,
  .apexcharts-tooltip-text-y-value,
  .apexcharts-tooltip-text-goals-label,
  .apexcharts-tooltip-text-goals-value,
  .apexcharts-tooltip-text-z-label,
  .apexcharts-tooltip-text-z-value {
    color: var(--r-navy) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
  }
  .apexcharts-xaxistooltip, .apexcharts-yaxistooltip {
    background: var(--r-navy) !important;
    color: #FFFFFF !important;
    border: 0 !important;
    font-weight: 600 !important;
  }
  .apexcharts-xaxistooltip-bottom:before, .apexcharts-xaxistooltip-bottom:after {
    border-bottom-color: var(--r-navy) !important;
  }
  .apexcharts-legend-text {
    color: var(--ink) !important;
    font-weight: 500 !important;
    font-size: 12px !important;
  }

  /* Pinpoint-specific tooltip styling — scoped to chart skin */
  .chart-stage[data-chart-skin="pinpoint"] ~ * .apexcharts-tooltip-title,
  [data-chart-skin="pinpoint"] .apexcharts-tooltip-title { background: var(--p-navy) !important; }
  [data-chart-skin="pinpoint"] .apexcharts-tooltip-text-y-value,
  [data-chart-skin="pinpoint"] .apexcharts-tooltip-text-y-label { color: var(--p-navy) !important; }
  [data-chart-skin="pinpoint"] .apexcharts-xaxistooltip,
  [data-chart-skin="pinpoint"] .apexcharts-yaxistooltip { background: var(--p-navy) !important; }

  /* Scrollbars */
  .panel-body::-webkit-scrollbar, #table-view::-webkit-scrollbar { width: 8px; height: 8px; }
  .panel-body::-webkit-scrollbar-thumb, #table-view::-webkit-scrollbar-thumb { background: #D8D2C8; border-radius: 4px; }
  .panel-body::-webkit-scrollbar-thumb:hover { background: var(--r-mountain); }

  /* Compact checkbox label */
  label.cb {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 500; color: var(--ink);
    cursor: pointer;
    padding: 2px 0;
  }
  label.cb input { width: auto; cursor: pointer; }
  label.cb:hover { color: var(--brand-primary); }

  /* Custom help tooltip */
  .help-tip {
    position: fixed;
    background: var(--r-navy);
    color: #FFFFFF;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    max-width: 260px;
    box-shadow: 0 6px 20px rgba(0,0,0,.22);
    z-index: 500;
    pointer-events: none;
    opacity: 0;
    transition: opacity .12s;
  }
  .help-tip.show { opacity: 1; }
  .help-tip::before {
    content: "";
    position: absolute;
    top: -6px; left: 14px;
    width: 0; height: 0;
    border: 6px solid transparent;
    border-top: 0;
    border-bottom-color: var(--r-navy);
  }

  /* Insight suggestions */
  .insight-suggestions {
    display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px;
  }
  .insight-pill {
    background: var(--r-bone);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: all .12s;
    line-height: 1.35;
    font-family: var(--font-sans);
  }
  body[data-brand="pinpoint"] .insight-pill { background: #F0EBF6; }
  .insight-pill:hover { border-color: var(--brand-accent); background: #FFFFFF; transform: translateY(-1px); }
  .insight-pill .ip-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-accent); margin-bottom: 3px; display: block; }

  /* Highlighted table row */
  .data-table tr.highlight-row td { background: rgba(240,92,69,.12) !important; font-weight: 600; }
  body[data-brand="pinpoint"] .data-table tr.highlight-row td { background: rgba(232,93,111,.14) !important; }

  /* Quick tip popover */
  [title]:hover { cursor: help; }

  @media (max-width: 1100px) {
    .app { grid-template-columns: 1fr; height: auto; }
    .panel { max-height: none; }
  }

  /* When viewing as table, hide chart and vice versa */
  body.view-table #chart-stage-contents-chart { display: none; }
  body.view-chart  #chart-stage-contents-table { display: none; }
  /* Hide chart content when no data loaded */
  #workspace-root.no-data #chart-stage-contents-chart,
  #workspace-root.no-data #chart-stage-contents-table { display: none !important; }

  /* Small inline help question marks */
  .help-q {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px;
    background: var(--r-bone); color: var(--ink-soft);
    border-radius: 50%; font-size: 11px; font-weight: 700;
    margin-left: 6px; cursor: help;
    transition: background .12s, color .12s, transform .12s;
    user-select: none;
    line-height: 1;
  }
  .help-q:hover { background: var(--brand-accent); color: #FFFFFF; transform: scale(1.1); }
  body[data-brand="pinpoint"] .help-q { background: #E8E4F2; }
  body[data-brand="pinpoint"] .help-q:hover { background: var(--p-coral); color: #FFFFFF; }

  /* Compact controls row */
  .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

  /* ============================================================
     R360 BRAND TOKENS
     ============================================================ */
  :root {
    --r-navy:    #0D2649;
    --r-blue:    #00A5CE;
    --r-marigold:#FFCB29;
    --r-canyon:  #F05C45;
    --r-sequoia: #AE341F;
    --r-bone:    #F8EEE5;
    --r-fjord:   #117C8E;
    --r-spruce:  #07525F;
    --r-snow:    #FFFFFF;
    --r-mountain:#BBBBBB;

    --brand-primary: var(--r-navy);
    --brand-accent:  var(--r-canyon);
    --brand-bg:      #FDF7F2;
    --brand-panel:   #FFFFFF;
    --ink:       #0D2649;
    --ink-soft:  #4A5A73;
    --border:    #E4DED5;
    --shadow:    0 1px 2px rgba(13,38,73,.04), 0 8px 24px rgba(13,38,73,.06);
    --radius:    12px;
    --font-sans: 'Inter','Aptos','Segoe UI',system-ui,sans-serif;
  }
  body[data-brand="pinpoint"] {
    --brand-primary: #1A1F4A;
    --brand-accent:  #E85D6F;
    --brand-bg:      #EFEDF5;
  }
  html, body { height: 100%; margin: 0; }
  body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--brand-bg);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
  }

  /* ============================================================
     HEADER
     ============================================================ */
  header.brand {
    background: var(--r-navy);
    color: #fff;
    height: 52px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--r-canyon);
    flex-shrink: 0;
    z-index: 200;
    position: relative;
  }
  .header-logo-zone {
    width: 220px; flex-shrink: 0;
    display: flex; align-items: center;
    padding: 0 16px; height: 100%;
    border-right: 1px solid rgba(255,255,255,.08);
    transition: width .2s cubic-bezier(.4,0,.2,1);
  }
  .sidebar.collapsed ~ * .header-logo-zone,
  .sidebar.collapsed + .main-content .header-logo-zone { width: 52px; }
  .logo { display: flex; align-items: baseline; gap: 3px; }
  .r360-name { font-size: 18px; font-weight: 900; color: #fff; letter-spacing: -.02em; }
  .r360-360  { font-size: 18px; font-weight: 900; color: var(--r-canyon); letter-spacing: -.02em; }
  .product   { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); margin-left: 8px; font-style: italic; }
  .header-context {
    flex: 1; display: flex; align-items: center;
    padding: 0 20px; gap: 8px;
    font-size: 13px; color: rgba(255,255,255,.45); font-weight: 500;
  }
  .header-context-page { color: rgba(255,255,255,.85); font-weight: 600; }
  .header-actions { display: none; }

  /* ============================================================
     SHELL + SIDEBAR
     ============================================================ */
  .shell {
    display: flex; flex: 1;
    min-height: 0; overflow: hidden;
    position: relative;
  }
  .sidebar {
    width: 220px; flex-shrink: 0;
    background: var(--r-navy);
    display: flex; flex-direction: column;
    border-right: 1px solid rgba(255,255,255,.06);
    transition: width .2s cubic-bezier(.4,0,.2,1);
    overflow: visible; position: relative; z-index: 100;
  }
  .sidebar.collapsed { width: 52px; }
  .sidebar-collapse-btn {
    position: absolute; top: 50%; right: -13px;
    transform: translateY(-50%);
    width: 26px; height: 26px;
    background: var(--r-canyon);
    border: 2px solid #fff; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    z-index: 110; box-shadow: 0 2px 8px rgba(0,0,0,.25);
    transition: filter .12s;
  }
  .sidebar-collapse-btn:hover { filter: brightness(1.12); }
  .sidebar-collapse-btn svg { transition: transform .2s; }
  .sidebar.collapsed .sidebar-collapse-btn svg { transform: rotate(180deg); }
  .sidebar-nav {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    padding: 8px 0; scrollbar-width: none;
  }
  .sidebar-nav::-webkit-scrollbar { display: none; }
  .sidebar-section-label {
    font-size: 9px; font-weight: 600; letter-spacing: .1em;
    text-transform: uppercase; color: rgba(255,255,255,.25);
    padding: 12px 16px 3px; white-space: nowrap;
    overflow: hidden; transition: opacity .15s;
  }
  .sidebar.collapsed .sidebar-section-label { opacity: 0; }

  .nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px; cursor: pointer;
    border: none; background: none; width: 100%;
    text-align: left; color: rgba(255,255,255,.65);
    font-family: var(--font-sans); font-size: 13px; font-weight: 500;
    white-space: nowrap; position: relative;
    transition: background .12s, color .12s; text-decoration: none;
  }
  .nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
  .nav-item.active { background: rgba(255,255,255,.12); color: #fff; }
  .nav-item.active::before {
    content: ''; position: absolute;
    left: 0; top: 4px; bottom: 4px; width: 3px;
    background: var(--r-canyon); border-radius: 0 3px 3px 0;
  }
  .nav-item-icon {
    width: 20px; height: 20px; display: flex;
    align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 15px;
  }
  .nav-item-label { flex: 1; transition: opacity .15s; }
  .sidebar.collapsed .nav-item-label { opacity: 0; width: 0; }
  .nav-badge {
    font-size: 10px; font-weight: 700;
    background: var(--r-canyon); color: #fff;
    padding: 1px 6px; border-radius: 999px;
    transition: opacity .15s;
  }
  .sidebar.collapsed .nav-badge { opacity: 0; }
  .nav-item[data-tip] { position: relative; }
  .sidebar.collapsed .nav-item[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute; left: 56px; top: 50%;
    transform: translateY(-50%);
    background: var(--r-navy); color: #fff;
    font-size: 12px; font-weight: 600;
    padding: 5px 10px; border-radius: 6px;
    white-space: nowrap; z-index: 200; pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
  }
  .nav-divider { height: 1px; background: rgba(255,255,255,.08); margin: 6px 14px; }
  .sidebar-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 8px 0; }
  .sidebar-user {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; cursor: pointer;
    border: none; background: none; width: 100%;
    color: rgba(255,255,255,.65);
    font-family: var(--font-sans); font-size: 12px;
    white-space: nowrap; transition: background .12s; text-align: left;
  }
  .sidebar-user:hover { background: rgba(255,255,255,.08); color: #fff; }
  .sidebar-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--r-canyon); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; flex-shrink: 0;
  }
  .sidebar-user-info { transition: opacity .15s; overflow: hidden; }
  .sidebar.collapsed .sidebar-user-info { opacity: 0; width: 0; }
  .sidebar-user-name { font-weight: 700; font-size: 12px; color: rgba(255,255,255,.9); }
  .sidebar-user-role { font-size: 10px; color: rgba(255,255,255,.45); margin-top: 1px; }

  /* ---- User popup menu ---- */
  .user-menu {
    position: absolute; top: calc(100% + 4px); right: 0;
    width: 240px; background: var(--brand-panel);
    border-radius: var(--radius); border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(13,38,73,.18);
    z-index: 500; overflow: hidden;
    display: none; flex-direction: column;
  }
  .user-menu.open { display: flex; }
  .user-menu-header {
    padding: 14px 16px 12px; border-bottom: 1px solid var(--border);
    background: var(--brand-bg);
  }
  .user-menu-name { font-size: 13px; font-weight: 700; color: var(--r-navy); margin: 0 0 1px; }
  .user-menu-email { font-size: 11px; color: var(--ink-soft); margin: 0; }
  .user-menu-items { padding: 4px 0; }
  .user-menu-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 16px; font-size: 13px; font-weight: 500;
    color: var(--ink); cursor: pointer;
    border: none; background: none; width: 100%;
    font-family: var(--font-sans); text-align: left;
    transition: background .1s; white-space: nowrap;
  }
  .user-menu-item:hover { background: var(--brand-bg); color: var(--r-navy); }
  .user-menu-divider { height: 1px; background: var(--border); margin: 4px 0; }
  .user-menu-item.danger { color: #993C1D; }
  .user-menu-item.danger:hover { background: #FAECE7; }

  /* ---- Right slide-in panel ---- */
  .right-panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 420px; background: var(--brand-panel);
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 24px rgba(13,38,73,.08);
    z-index: 150; display: none; flex-direction: column;
    transform: translateX(100%);
    transition: transform .22s cubic-bezier(.4,0,.2,1);
  }
  .right-panel.open { display: flex; transform: translateX(0); }
  .right-panel-header {
    padding: 18px 20px 14px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0;
  }
  .right-panel-title { font-size: 16px; font-weight: 800; color: var(--r-navy); margin: 0 0 2px; }
  .right-panel-sub { font-size: 12px; color: var(--ink-soft); margin: 0; }
  .right-panel-close {
    width: 28px; height: 28px; border-radius: 6px;
    border: 1px solid var(--border); background: none;
    cursor: pointer; font-size: 16px; color: var(--ink-soft);
    display: flex; align-items: center; justify-content: center;
    transition: all .1s;
  }
  .right-panel-close:hover { background: var(--brand-bg); color: var(--r-navy); }
  .right-panel-body { flex: 1; overflow-y: auto; padding: 20px; background: var(--r-bone); }
  .right-panel-section { margin-bottom: 24px; }
  .right-panel-section-title {
    font-size: 10px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--ink-soft);
    margin: 0 0 10px; padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
  }
  .rp-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px;
  }
  .rp-row:last-child { border-bottom: none; }
  .rp-label { font-weight: 500; color: var(--ink); }
  .rp-value { color: var(--ink-soft); font-size: 12px; }
  .rp-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
  .rp-badge.active  { background: #E1F5EE; color: #0F6E56; }
  .rp-badge.pending { background: rgba(255,203,41,.15); color: #7A5A00; }
  .rp-badge.admin   { background: #E6F1FB; color: #185FA5; }
  .rp-edit-btn { font-size: 11px; font-weight: 600; color: var(--r-canyon); border: none; background: none; cursor: pointer; font-family: var(--font-sans); }

  /* ============================================================
     MAIN CONTENT + PANELS
     ============================================================ */
  .main-content {
    flex: 1; display: flex; flex-direction: column;
    min-width: 0; min-height: 0; position: relative;
  }

  /* All panels hidden by default; .panel-visible shows them */
  #panel-home, #workspace-root, #panel-dashboards, #panel-report-builder,
  #panel-data-sources, #panel-data-catalog, #panel-data-dictionary, #panel-docs {
    display: none;
  }
  /* Table/data pages get white; dashboard and home keep brand-bg via their own elements */
  #panel-data-sources.panel-visible,
  #panel-data-catalog.panel-visible,
  #panel-data-dictionary.panel-visible,
  #panel-docs.panel-visible,
  #panel-dashboards.panel-visible,
  #panel-report-builder.panel-visible { background: var(--brand-panel); }
  .panel-visible {
    display: flex !important;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }
  #panel-home.panel-visible,
  #panel-dashboards.panel-visible,
  #panel-report-builder.panel-visible,
  #panel-data-sources.panel-visible,
  #panel-data-catalog.panel-visible,
  #panel-data-dictionary.panel-visible,
  #panel-docs.panel-visible { overflow-y: auto; overflow-x: hidden; }
  #workspace-root.panel-visible { overflow: hidden; position: relative; }

  /* ============================================================
     STUDIO TOOLBAR
     ============================================================ */
  .studio-toolbar {
    display: none; align-items: center; gap: 8px;
    padding: 8px 14px; background: var(--brand-panel);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .studio-toolbar.visible { display: flex; }
  .studio-toolbar-sep { width: 1px; height: 20px; background: var(--border); margin: 0 2px; }
  #btn-workspace-edit.active { background: var(--r-navy); color: #fff; border-color: var(--r-navy); }
  .download-menu-item {
    display: block; width: 100%; padding: 9px 14px;
    text-align: left; font-size: 13px; font-weight: 500;
    font-family: var(--font-sans); color: var(--ink);
    background: none; border: none; cursor: pointer;
    transition: background .1s;
  }
  .download-menu-item:hover { background: var(--brand-bg); color: var(--r-navy); }

  /* ============================================================
     HOME PAGE
     ============================================================ */
  .home-root { background: var(--brand-bg); }
  .home-hero { flex-shrink: 0; }
  /* Greeting section — white background */
  .home-greeting-section {
    background: var(--brand-panel); padding: 24px 24px 20px;
    border-bottom: 1px solid var(--border); flex-shrink: 0;
  }
  /* Dark navy KPI strip */
  .home-kpi-strip {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--r-navy); flex-shrink: 0;
    margin: 20px 24px; border-radius: 12px; overflow: hidden;
  }
  .home-kpi-card {
    display: flex; flex-direction: column; gap: 4px;
    padding: 22px 28px; border: none; background: transparent;
    cursor: pointer; text-align: left; font-family: var(--font-sans);
    position: relative; transition: background .15s;
  }
  .home-kpi-card:not(:last-child)::after {
    content: ''; position: absolute;
    right: 0; top: 14px; bottom: 14px;
    width: 2px; background: rgba(255,255,255,.42);
  }
  .home-kpi-card:hover { background: rgba(255,255,255,.06); }
  .home-kpi-num { font-size: 34px; font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; }
  .home-kpi-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .07em; }
  .home-kpi-cta { font-size: 10px; color: rgba(255,255,255,.3); margin-top: 6px; transition: color .12s; }
  .home-kpi-card:hover .home-kpi-cta { color: rgba(255,255,255,.65); }
  .home-kpi-accent .home-kpi-num { color: var(--r-canyon); }
  /* Colored prompt chips */
  .home-prompt-chip {
    border-radius: 999px; padding: 5px 14px; font-size: 11px; font-weight: 600;
    font-family: var(--font-sans); cursor: pointer; transition: all .12s; white-space: nowrap; border: none;
  }
  .home-prompt-chip.chip-canyon,
  .home-prompt-chip.chip-fjord,
  .home-prompt-chip.chip-navy,
  .home-prompt-chip.chip-marigold { background: rgba(13,38,73,.07); color: var(--r-navy); }
  .home-prompt-chip:hover { background: rgba(13,38,73,.13); }
  /* Quick action icon wrap */
  .quick-action-icon-wrap {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px; flex-shrink: 0;
  }
  .quick-action {
    background: var(--brand-panel); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px; cursor: pointer;
    transition: all .12s; text-align: left; font-family: var(--font-sans);
    display: flex; flex-direction: column;
  }
  .quick-action:hover { border-color: var(--r-canyon); box-shadow: 0 4px 12px rgba(13,38,73,.07); }
  .quick-action-label { font-size: 13px; font-weight: 700; color: var(--ink); display: block; }
  .quick-action-sub { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
  /* Individual stat item */
  .home-glance-item {
    flex: 1; padding: 18px 24px 16px; display: flex; flex-direction: column; gap: 4px;
  }
  .home-glance-item:first-child { padding-left: 0; }
  .home-glance-num {
    font-size: 30px; font-weight: 800; color: var(--r-navy);
    letter-spacing: -.03em; line-height: 1;
  }
  .home-glance-label {
    font-size: 11px; font-weight: 600; color: var(--ink-soft);
    text-transform: uppercase; letter-spacing: .07em;
  }
  .home-glance-accent .home-glance-num { color: var(--r-canyon); }
  /* Thin vertical divider between stats */
  .home-glance-divider {
    width: 1px; background: var(--border); flex-shrink: 0;
    margin: 14px 0;
  }
  .home-hero-bottom {
    background: var(--brand-bg); padding: 18px 24px 16px;
    border-bottom: 1px solid var(--border);
  }
  .home-greeting { font-size: 20px; font-weight: 800; color: var(--r-navy); letter-spacing: -.02em; margin: 0 0 3px; }
  .home-subgreeting { font-size: 12px; color: var(--ink-soft); margin: 0 0 12px; }
  .home-prompt-chip {
    background: #fff; border: 1px solid var(--border); color: var(--ink-soft);
    border-radius: 999px; padding: 5px 12px; font-size: 11px; font-weight: 600;
    font-family: var(--font-sans); cursor: pointer; transition: all .12s; white-space: nowrap;
  }
  .home-prompt-chip:hover { border-color: var(--r-canyon); color: var(--r-navy); }
  .home-body {
    display: grid; grid-template-columns: 1fr 300px;
    gap: 20px; padding: 20px 24px 32px; background: var(--brand-bg);
    align-content: start;
  }
  @media (max-width: 900px) { .home-body { grid-template-columns: 1fr; } }
  .home-section-title {
    font-size: 12px; font-weight: 700;
    color: var(--ink-soft);
    margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
  }
  .home-card {
    background: var(--brand-panel); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 16px 18px; margin-bottom: 14px;
  }
  .client-card {
    background: var(--brand-panel); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 14px 16px;
    margin-bottom: 10px; cursor: pointer; transition: box-shadow .12s;
  }
  .client-card:hover { box-shadow: 0 4px 14px rgba(13,38,73,.08); }
  .activity-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0 10px 12px; font-size: 13px;
    border-left: 3px solid transparent; margin-left: -12px;
  }
  .activity-item + .activity-item { margin-top: 4px; border-top: 1px solid var(--border); padding-top: 12px; }
  .activity-item:last-child { padding-bottom: 0; }
  .activity-item:has(.activity-dot.published),
  .activity-item:has(.activity-dot.draft),
  .activity-item:has(.activity-dot.viewed),
  .activity-item:has(.activity-dot.pinned) { border-left-color: var(--r-fjord); }
  .activity-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  }
  .activity-dot.published { background: var(--r-fjord); }
  .activity-dot.draft     { background: var(--r-canyon); }
  .activity-dot.viewed    { background: var(--r-blue); }
  .activity-dot.pinned    { background: var(--r-marigold); }
  .activity-text { flex: 1; color: var(--ink); line-height: 1.4; }
  .activity-time { font-size: 11px; color: var(--ink-soft); white-space: nowrap; }
  /* Dark navy quick-actions strip */
  .home-nav-strip {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--r-navy); border-radius: 12px;
    margin: 0 24px 20px; overflow: hidden;
  }
  .home-nav-action {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 20px; border: none; background: none;
    cursor: pointer; text-align: left; font-family: var(--font-sans);
    border-right: 1px solid rgba(255,255,255,.08); transition: background .12s;
  }
  .home-nav-action:last-child { border-right: none; }
  .home-nav-action:hover { background: rgba(255,255,255,.06); }
  .home-nav-icon {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .home-nav-label { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.3; }
  .home-nav-sub   { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 1px; }

  /* ============================================================
     DASHBOARDS LIST
     ============================================================ */
  .dash-list-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 24px 24px 16px; border-bottom: 1px solid var(--border);
    background: var(--brand-panel); flex-shrink: 0;
  }
  .dash-list-title { font-size: 20px; font-weight: 800; color: var(--r-navy); margin: 0 0 3px; letter-spacing: -.02em; }
  .dash-list-sub { font-size: 12px; color: var(--ink-soft); margin: 0; }
  .dash-list-body { padding: 20px 24px; flex: 1; overflow-y: auto; background: var(--brand-panel); }
  /* Rounded table wrapper */
  .dash-table-wrap {
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 1px 3px rgba(13,38,73,.07), 0 6px 20px rgba(13,38,73,.08);
    border: 1px solid var(--border);
    margin-bottom: 20px;
  }
  .dash-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .dash-table th {
    text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    color: #fff; white-space: nowrap;
    background: var(--r-navy);
  }
  .dash-table th:first-child { border-radius: 0; }
  .dash-table th.sortable { cursor: pointer; user-select: none; }
  .dash-table th.sortable:hover { background: rgba(255,255,255,.12); }
  .dash-table th.sort-asc::after { content: ' ↑'; opacity: .7; }
  .dash-table th.sort-desc::after { content: ' ↓'; opacity: .7; }
  .dash-table td { padding: 11px 14px; color: var(--ink); vertical-align: middle; }
  .dash-table tbody tr:nth-child(even) td { background: rgba(13,38,73,.025); }
  .dash-table tbody tr:last-child td { border-bottom: none; }
  .dash-table tbody tr td { border-bottom: 1px solid var(--border); }
  .dash-table tr:hover td { background: rgba(13,38,73,.05) !important; }
  .dash-name-link { font-weight: 700; color: var(--r-navy); text-decoration: none; cursor: pointer; }
  .dash-name-link:hover { color: var(--r-canyon); text-decoration: underline; }
  .dash-client-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--r-bone); color: var(--ink-soft); }
  .status-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
  .status-pill.live   { background: #E1F5EE; color: #0F6E56; }
  .status-pill.draft  { background: var(--r-bone); color: var(--ink-soft); }
  .status-pill.review { background: rgba(255,203,41,.15); color: #7A5A00; }
  .dash-meta { font-size: 12px; color: var(--ink-soft); }
  .dash-author { display: flex; align-items: center; gap: 6px; }
  .dash-author-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--r-canyon); color: #fff; font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
  .dash-actions { display: flex; gap: 6px; justify-content: flex-end; }
  .dash-action-btn { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; font-size: 11px; font-weight: 600; color: var(--ink-soft); cursor: pointer; font-family: var(--font-sans); transition: all .12s; white-space: nowrap; }
  .dash-action-btn:hover { border-color: var(--r-canyon); color: var(--r-navy); }
  .dash-action-btn.primary { background: var(--r-navy); color: #fff; border-color: transparent; }
  .dash-action-btn.primary:hover { filter: brightness(1.1); }

  /* ============================================================
     DATA PANELS (sources, catalog, dictionary)
     ============================================================ */
  .data-panel-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 24px 24px 16px; border-bottom: 1px solid var(--border);
    background: var(--brand-panel); flex-shrink: 0;
  }
  .data-panel-title { font-size: 20px; font-weight: 800; color: var(--r-navy); margin: 0 0 3px; letter-spacing: -.02em; }
  .data-panel-sub { font-size: 12px; color: var(--ink-soft); margin: 0; }
  .data-panel-body { padding: 20px 24px; flex: 1; overflow-y: auto; background: var(--brand-panel); }
  .data-search {
    width: 100%; max-width: 360px; padding: 8px 12px;
    border: 1px solid var(--border); border-radius: 8px;
    font-size: 13px; font-family: var(--font-sans); color: var(--ink);
    background: #fff; margin-bottom: 16px; outline: none;
  }
  .data-search:focus { border-color: var(--r-navy); }
  .dict-view-btns { display: flex; gap: 6px; margin-bottom: 16px; }
  .lineage-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
  #dict-lineage-view { display: none; flex-direction: column; }

  /* Dictionary shell — sidebar + diagram */
  .dict-shell {
    display: flex; flex: 1; min-height: 0; overflow: hidden;
  }
  .dict-sidebar {
    width: 280px; flex-shrink: 0;
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    background: var(--brand-panel);
    min-height: 0;
  }
  .dict-sidebar-filters {
    padding: 16px 16px 8px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .dict-sidebar-filters .data-search { margin-bottom: 10px; max-width: 100%; }
  .dict-list { flex: 1; overflow-y: auto; padding: 8px 0; }
  .dict-list-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; cursor: pointer;
    border-left: 3px solid transparent;
    transition: background .1s; gap: 8px;
  }
  .dict-list-item:hover { background: var(--brand-bg); }
  .dict-list-item.active { background: var(--r-bone); border-left-color: var(--r-canyon); }
  .dict-list-item-name { font-size: 13px; font-weight: 600; color: var(--ink); flex: 1; line-height: 1.3; }
  .dict-list-item.active .dict-list-item-name { color: var(--r-navy); }
  .dict-list-item-cat {
    font-size: 10px; font-weight: 600; color: var(--ink-soft);
    background: var(--r-bone); border-radius: 999px;
    padding: 2px 7px; white-space: nowrap; flex-shrink: 0;
  }
  .dict-list-section {
    font-size: 9px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: rgba(13,38,73,.3);
    padding: 12px 16px 4px;
  }
  .dict-category-tag {
    padding: 3px 10px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--brand-panel);
    font-size: 11px; font-weight: 600; color: var(--ink-soft);
    cursor: pointer; transition: all .12s; font-family: var(--font-sans);
  }
  .dict-category-tag.active { background: var(--r-navy); color: #fff; border-color: var(--r-navy); }
  .dict-diagram-pane {
    flex: 1; min-height: 0; overflow-y: auto;
    background: var(--brand-bg);
    display: flex; flex-direction: column;
  }

  /* ============================================================
     DASHBOARD VIEW — tabbed layout
     ============================================================ */
  #panel-dashboard-view {
    display: none; flex-direction: column; height: 100%; overflow: hidden;
  }
  #panel-dashboard-view.panel-visible { display: flex; }
  /* Header + control bar share same background, no separation */
  .dbv-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 24px 10px 16px;
    background: var(--brand-panel); flex-shrink: 0;
    color: var(--ink);
    border-bottom: 1px solid var(--border);
  }
  /* Minimal chevron back button */
  .dbv-back-btn {
    background: none; border: none; cursor: pointer;
    font-size: 26px; line-height: 1; font-weight: 300;
    color: var(--ink-soft); padding: 0 14px 0 8px;
    transition: color .12s; flex-shrink: 0;
    display: flex; align-items: center;
  }
  .dbv-back-btn:hover { color: var(--r-navy); }
  /* Campaign info block — canyon left accent */
  .dbv-campaign-block {
    border-left: 3px solid var(--r-canyon);
    padding-left: 14px; min-width: 0;
  }
  .dbv-header .btn { border-color: var(--border); color: var(--ink-soft); background: transparent; }
  .dbv-header .btn:hover { background: var(--r-bone); color: var(--r-navy); border-color: var(--ink-soft); }
  .dbv-header .stage-dl-btn { border-color: var(--r-canyon); color: #fff; background: var(--r-canyon); border-radius: 8px; }
  .dbv-header .stage-dl-btn:hover { filter: brightness(1.1); background: var(--r-canyon); }
  /* Control bar */
  .dbv-control-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 24px 0 16px; gap: 14px;
    background: var(--brand-bg);
    flex-shrink: 0;
  }
  /* AI bar — explicitly Navy so it stays blue on the light background */
  .dbv-ai-bar {
    display: flex; align-items: stretch;
    border: 1px solid var(--border); border-radius: 999px;
    overflow: hidden; flex: 1; max-width: 500px;
    background: #fff; box-shadow: 0 1px 3px rgba(13,38,73,.06);
  }
  .dbv-ai-bar-prefix {
    display: flex; align-items: center; justify-content: center;
    background: var(--r-navy); padding: 0 13px; flex-shrink: 0;
    border-radius: 999px 0 0 999px;
  }
  .dbv-ai-bar-label {
    font-size: 12px; font-weight: 700; color: rgba(255,255,255,.85);
    letter-spacing: .02em; white-space: nowrap;
  }
  .dbv-ai-bar-input {
    flex: 1; padding: 9px 14px; border: none;
    background: #ffffff;
    font-size: 13px; font-family: var(--font-sans); color: var(--ink); outline: none;
  }
  .dbv-ai-bar-input::placeholder { color: rgba(13,38,73,.32); }
  /* Date range picker — rounded square matching download button */
  .dbv-date-btn {
    display: flex; align-items: center; justify-content: center;
    padding: 7px 12px; border-radius: 8px;
    border: none; background: var(--r-navy);
    color: #fff; cursor: pointer;
    transition: filter .12s;
    flex-shrink: 0;
  }
  .dbv-date-btn:hover { filter: brightness(1.2); }
  .dbv-date-picker {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: #fff; border: 1px solid var(--border);
    border-radius: 12px; box-shadow: 0 8px 32px rgba(13,38,73,.14);
    display: flex; z-index: 300; overflow: hidden; min-width: 580px;
  }
  .dbv-date-presets {
    width: 140px; flex-shrink: 0; padding: 14px 12px;
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 2px;
    background: var(--brand-bg);
  }
  .dbv-date-preset-group-label {
    font-size: 9px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--ink-soft);
    padding: 4px 8px 2px;
  }
  .dbv-date-preset {
    padding: 7px 10px; border-radius: 7px; border: none;
    background: none; font-size: 12px; font-weight: 500;
    font-family: var(--font-sans); color: var(--ink);
    cursor: pointer; text-align: left; transition: background .1s, color .1s;
  }
  .dbv-date-preset:hover { background: var(--r-bone); color: var(--r-navy); }
  .dbv-date-preset.active { background: rgba(240,92,69,.1); color: var(--r-canyon); font-weight: 700; }
  .dbv-date-calendars { flex: 1; display: flex; flex-direction: column; }
  .dbv-date-inputs {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 14px 16px 10px; border-bottom: 1px solid var(--border);
  }
  .dbv-date-input-label { font-size: 10px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
  .dbv-date-input {
    padding: 6px 10px; border-radius: 7px;
    border: 1px solid var(--border); background: #fff;
    font-size: 12px; font-family: var(--font-sans); color: var(--ink);
    width: 110px; outline: none; cursor: pointer;
  }
  .dbv-date-input:focus, .dbv-date-input.active { border-color: var(--r-canyon); }
  /* Mini calendar */
  .dbv-cal-row { display: flex; gap: 0; padding: 10px 16px; flex: 1; }
  .dbv-cal { flex: 1; }
  .dbv-cal + .dbv-cal { border-left: 1px solid var(--border); padding-left: 16px; margin-left: 0; }
  .dbv-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .dbv-cal-title { font-size: 13px; font-weight: 700; color: var(--r-navy); }
  .dbv-cal-nav { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border); background: none; color: var(--ink-soft); cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; }
  .dbv-cal-nav:hover { background: var(--r-bone); color: var(--r-navy); }
  .dbv-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
  .dbv-cal-day-label { font-size: 10px; font-weight: 700; color: var(--ink-soft); text-align: center; padding: 2px 0; }
  .dbv-cal-day {
    font-size: 11px; font-weight: 500; color: var(--ink);
    text-align: center; padding: 5px 2px; border-radius: 5px;
    cursor: pointer; transition: background .1s;
  }
  .dbv-cal-day:hover { background: var(--r-bone); color: var(--r-navy); }
  .dbv-cal-day.in-range { background: rgba(240,92,69,.1); color: var(--r-canyon); }
  .dbv-cal-day.range-start, .dbv-cal-day.range-end { background: var(--r-canyon); color: #fff; font-weight: 700; }
  .dbv-cal-day.other-month { color: var(--r-mountain); }
  .dbv-cal-day.today { font-weight: 800; color: var(--r-canyon); }
  /* Section toggle — full pill track */
  .dbv-toggle-track {
    display: inline-flex; align-items: center;
    background: rgba(13,38,73,.06); border: 1px solid rgba(13,38,73,.14);
    border-radius: 999px; padding: 3px; gap: 2px; flex-shrink: 0;
  }
  .dbv-toggle-btn {
    padding: 5px 16px; font-size: 12px; font-weight: 600;
    font-family: var(--font-sans); color: rgba(13,38,73,.45);
    background: transparent; border: none; border-radius: 999px;
    cursor: pointer; transition: background .15s, color .15s, box-shadow .15s;
    white-space: nowrap;
  }
  .dbv-toggle-btn:hover { color: var(--r-navy); background: rgba(13,38,73,.07); }
  .dbv-toggle-btn.active {
    background: var(--r-canyon); color: #fff; font-weight: 700;
    box-shadow: 0 1px 6px rgba(240,92,69,.35);
  }
  /* Header text colors — light background */
  #dbv-client { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color: var(--ink-soft); }
  #dbv-campaign { font-size:18px; font-weight:800; letter-spacing:-.02em; color: var(--r-navy); }
  #dbv-flight { font-size:12px; color: var(--ink-soft); }
  #dbv-updated { font-size:11px; background: rgba(13,38,73,.08); color: var(--ink-soft); padding:4px 10px; border-radius:999px; }
  /* Tab panels */
  .dbv-tab-panel {
    display: none; flex-direction: column; flex: 1; min-height: 0; overflow: hidden;
  }
  .dbv-tab-panel.active { display: flex; }
  .dbv-scroll { flex: 1; overflow-y: auto; padding: 14px 24px 20px; background: var(--brand-bg); }
  /* Insight band — Navy bg, inset separated items */
  .dbv-insight-band {
    background: var(--r-navy); border-radius: 10px;
    padding: 0; margin-bottom: 14px;
    display: grid; grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
  }
  .dbv-insight-item {
    padding: 16px 18px; position: relative;
  }
  .dbv-insight-item:not(:last-child)::after {
    content: ''; position: absolute;
    right: 0; top: 14px; bottom: 14px;
    width: 2px; background: rgba(255,255,255,.42);
  }
  .dbv-insight-num { font-size: 9px; font-weight: 700; color: rgba(255,255,255,.35); letter-spacing:.1em; text-transform:uppercase; margin-bottom:5px; }
  .dbv-insight-headline { font-size: 12px; font-weight: 800; color: #fff; line-height: 1.35; margin-bottom: 6px; }
  .dbv-insight-body { font-size: 11px; color: rgba(255,255,255,.6); line-height: 1.5; font-family: var(--font-serif); font-style: italic; }
  /* Decisionmakers — 3 cohorts side by side, people stacked within */
  .dbv-dm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .dbv-dm-segment { background: var(--brand-panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
  .dbv-dm-segment-name {
    font-size: 11px; font-weight: 700; color: #fff;
    background: var(--r-navy); padding: 10px 14px;
    text-transform: uppercase; letter-spacing: .06em;
  }
  .dbv-dm-card {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-top: 1px solid var(--border);
  }
  .dbv-dm-avatar {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #fff;
  }
  .dbv-dm-name { font-size: 12px; font-weight: 700; color: var(--r-navy); line-height: 1.2; }
  .dbv-dm-title { font-size: 10px; color: var(--ink-soft); margin-top: 1px; line-height: 1.3; }
  /* Creative grid — image dominant, metrics below */
  .dbv-creative-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
  .dbv-creative-card { background: var(--brand-panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
  .dbv-creative-thumb {
    height: 130px; display: flex; align-items: center; justify-content: center;
    position: relative;
  }
  .dbv-creative-top-badge {
    position: absolute; top: 8px; right: 8px;
    background: var(--r-canyon) !important; color: #fff !important;
    font-size: 9px; font-weight: 700; padding: 3px 8px;
    border-radius: 999px; letter-spacing: .04em;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
  }
  .dbv-creative-metrics {
    background: #fff; padding: 10px 12px;
    border-top: 1px solid var(--border);
  }
  .dbv-creative-name { font-size: 11px; font-weight: 700; color: var(--r-navy); margin-bottom: 6px; line-height: 1.3; }
  .dbv-creative-stats { display: flex; gap: 12px; }
  .dbv-creative-stat-item { }
  .dbv-creative-stat-val { font-size: 14px; font-weight: 800; color: var(--r-navy); line-height: 1; }
  .dbv-creative-stat-val.top { color: var(--r-canyon); }
  .dbv-creative-stat-lbl { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-top: 2px; }
  /* Cards */
  .dbv-card { background: var(--brand-panel); border-radius: 10px; border: 1px solid var(--border); padding: 16px 18px; margin-bottom: 14px; }
  .dbv-card-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
  /* KPI band */
  .dbv-kpi-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
  .dbv-kpi-card { background: var(--brand-panel); border-radius: 10px; border: 1px solid var(--border); border-top: 4px solid var(--r-navy); padding: 14px 16px; }
  .dbv-kpi-label { font-size: 10px; font-weight: 700; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:6px; }
  .dbv-kpi-value { font-size: 22px; font-weight: 800; color: var(--r-navy); letter-spacing:-.02em; line-height:1; }
  .dbv-kpi-sub { font-size: 11px; color: var(--ink-soft); margin-top: 4px; }
  .dbv-kpi-card.accent .dbv-kpi-value { color: var(--r-canyon); }
  .dbv-kpi-card.positive .dbv-kpi-value { color: #1a9e5f; }
  .dbv-kpi-card.top-navy     { border-top-color: var(--r-navy); }
  .dbv-kpi-card.top-canyon   { border-top-color: var(--r-canyon); }
  .dbv-kpi-card.top-marigold { border-top-color: var(--r-marigold); }
  .dbv-kpi-card.top-fjord    { border-top-color: var(--r-fjord); }
  /* Top Performers band — Pinpoint-style navy callout */
  .dbv-top-band { background: var(--r-navy); border-radius: 10px; padding: 0; margin-bottom: 14px; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; }
  .dbv-top-item { padding: 16px 18px; position: relative; }
  .dbv-top-item:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 14px; bottom: 14px; width: 2px; background: rgba(255,255,255,.42); }
  .dbv-top-label { font-size: 10px; font-weight: 800; letter-spacing:.08em; text-transform:uppercase; color: var(--r-marigold); margin-bottom: 6px; }
  .dbv-top-value { font-size: 14px; font-weight: 700; color: #fff; line-height:1.3; }
  .dbv-top-sub { font-size: 11px; color: rgba(255,255,255,.65); margin-top: 3px; }
  /* Charts */
  .dbv-charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
  .dbv-chart-card { background: var(--brand-panel); border-radius: 10px; border: 1px solid var(--border); padding: 16px; overflow: visible; }
  .dbv-chart-title { font-size: 10px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
  /* Section label */
  .dbv-section-label { font-size: 10px; font-weight: 700; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:12px; }
  /* Audience grid */
  .dbv-audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
  .dbv-audience-card { background: var(--brand-panel); border-radius: 10px; border: 1px solid var(--border); padding: 16px; }
  .dbv-audience-name { font-size: 13px; font-weight: 800; color: var(--r-navy); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--r-canyon); }
  .dbv-audience-stat { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
  .dbv-audience-stat-label { font-size: 11px; color: var(--ink-soft); }
  .dbv-audience-stat-value { font-size: 13px; font-weight: 700; color: var(--r-navy); }
  .dbv-audience-stat-value.up { color: #1a9e5f; }
  .dbv-audience-stat-value.accent { color: var(--r-canyon); }
  /* CTR matrix */
  .dbv-matrix-table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .dbv-matrix-table th { padding: 8px 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); background: var(--r-bone); text-align: center; border: 1px solid var(--border); }
  .dbv-matrix-table th.row-header { text-align: left; }
  .dbv-matrix-table td { padding: 9px 12px; text-align: center; border: 1px solid var(--border); font-weight: 700; color: var(--r-navy); }
  .dbv-matrix-table td.row-header { text-align: left; font-weight: 600; color: var(--ink); background: var(--brand-panel); }
  .dbv-matrix-table td.heat-high { background: rgba(240,92,69,.15); }
  .dbv-matrix-table td.heat-mid  { background: rgba(240,92,69,.07); }
  /* Footer */
  .dbv-footer { padding: 14px 24px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--brand-panel); flex-shrink: 0; }
  /* Footer */
  .dbv-footer { padding: 14px 24px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--brand-panel); flex-shrink: 0; }

  /* ============================================================
     REPORT BUILDER
     ============================================================ */
  .rb-layout {
    display: grid; grid-template-columns: 280px 1fr;
    gap: 0; flex: 1; min-height: 0; overflow: hidden;
  }
  .rb-config {
    border-right: 1px solid var(--border); overflow-y: auto;
    padding: 20px; background: var(--brand-panel); flex-shrink: 0;
  }
  .rb-output-area { overflow: auto; padding: 20px 24px; background: var(--brand-panel); }
  .rb-section-title { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 16px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
  .rb-section-title:first-child { margin-top: 0; }
  .rb-type-btn { flex: 1; padding: 7px; border-radius: 7px; border: 1px solid var(--border); background: none; color: var(--ink-soft); font-size: 12px; font-weight: 700; cursor: pointer; font-family: var(--font-sans); transition: all .12s; }
  .rb-type-btn.active { background: var(--r-navy); color: #fff; border-color: var(--r-navy); }

  /* ============================================================
     BUTTONS
     ============================================================ */
  .btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px;
    font-size: 13px; font-weight: 700; font-family: var(--font-sans);
    cursor: pointer; transition: all .12s; border: none;
    background: var(--r-canyon); color: #fff;
  }
  .btn:hover { filter: brightness(1.08); }
  .btn.ghost { background: none; border: 1px solid var(--border); color: var(--ink); }
  .btn.ghost:hover { border-color: var(--r-navy); color: var(--r-navy); }
  .btn.small { padding: 5px 12px; font-size: 12px; }
  .btn.navy { background: var(--r-navy); color: #fff; }

  /* ============================================================
     AI CHAT PANEL
     ============================================================ */
  .chat-panel {
    position: fixed; top: 55px; right: 0; bottom: 0;
    width: 380px; background: var(--r-bone);
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 24px rgba(13,38,73,.1);
    z-index: 300; display: none; flex-direction: column;
    transform: translateX(100%);
    transition: transform .22s cubic-bezier(.4,0,.2,1);
  }
  .chat-panel.open { display: flex; transform: translateX(0); }
  .chat-header {
    padding: 14px 16px 12px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0; background: #fff;
    border-left: 3px solid var(--r-canyon);
  }
  .chat-header-left { display: flex; align-items: center; gap: 10px; }
  .chat-header-icon {
    width: 30px; height: 30px; border-radius: 8px;
    background: rgba(240,92,69,.1); color: var(--r-canyon);
    display: flex; align-items: center; justify-content: center; font-size: 14px;
  }
  .chat-header-title { font-size: 13px; font-weight: 700; color: var(--r-navy); margin: 0; }
  .chat-header-sub { font-size: 11px; color: var(--ink-soft); margin: 1px 0 0; }
  .chat-header-close {
    background: none; border: 1px solid var(--border); color: var(--ink-soft);
    width: 26px; height: 26px; border-radius: 6px; cursor: pointer;
    font-size: 15px; display: flex; align-items: center; justify-content: center;
    transition: background .12s;
  }
  .chat-header-close:hover { background: var(--r-bone); color: var(--r-navy); }
  .chat-context-bar {
    padding: 7px 14px; background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; color: var(--ink-soft); flex-shrink: 0;
  }
  .chat-context-pill {
    background: var(--brand-bg); border: 1px solid var(--border);
    border-radius: 999px; padding: 2px 8px;
    font-size: 10px; font-weight: 600; color: var(--ink-soft);
  }
  .chat-mode-tabs {
    display: flex; border-bottom: 1px solid var(--border);
    flex-shrink: 0; background: #fff;
  }
  .chat-mode-tab {
    flex: 1; padding: 9px 8px; border: none; background: none;
    font-size: 12px; font-weight: 600; font-family: var(--font-sans);
    color: var(--ink-soft); cursor: pointer; border-bottom: 2px solid transparent;
    transition: all .12s;
  }
  .chat-mode-tab.active { color: var(--r-navy); border-bottom-color: var(--r-canyon); }
  .chat-mode-tab:hover:not(.active) { color: var(--r-navy); }
  .chat-messages {
    flex: 1; overflow-y: auto; padding: 14px 12px;
    display: flex; flex-direction: column; gap: 12px;
    scrollbar-width: thin;
  }
  .chat-msg { display: flex; flex-direction: column; gap: 4px; max-width: 92%; }
  .chat-msg.user { align-self: flex-end; align-items: flex-end; }
  .chat-msg.assistant { align-self: flex-start; }
  .chat-bubble {
    padding: 10px 13px; border-radius: 12px;
    font-size: 13px; line-height: 1.5; color: var(--ink);
  }
  .chat-msg.user .chat-bubble { background: var(--r-navy); color: #fff; border-radius: 12px 12px 3px 12px; }
  .chat-msg.assistant .chat-bubble { background: #fff; border: 1px solid var(--border); border-radius: 12px 12px 12px 3px; }
  .chat-msg-time { font-size: 10px; color: var(--ink-soft); padding: 0 4px; }
  .chat-typing {
    display: flex; align-items: center; gap: 4px;
    padding: 12px 14px; background: #fff;
    border: 1px solid var(--border); border-radius: 12px;
    width: fit-content;
  }
  .chat-typing span {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ink-soft); animation: chatbounce 1.2s infinite;
  }
  .chat-typing span:nth-child(2) { animation-delay: .2s; }
  .chat-typing span:nth-child(3) { animation-delay: .4s; }
  @keyframes chatbounce { 0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-6px)} }
  .chat-suggestions {
    padding: 8px 12px 6px; display: flex; flex-wrap: wrap; gap: 6px;
    border-top: 1px solid var(--border); flex-shrink: 0; background: var(--r-bone);
  }
  .chat-suggestion {
    background: #fff; border: 1px solid var(--border);
    border-radius: 999px; padding: 5px 10px;
    font-size: 11px; font-weight: 600; font-family: var(--font-sans);
    color: var(--ink-soft); cursor: pointer; transition: all .12s;
  }
  .chat-suggestion:hover { border-color: var(--r-canyon); color: var(--r-navy); }
  .chat-input-row {
    padding: 10px 12px; border-top: 1px solid var(--border);
    display: flex; gap: 8px; align-items: flex-end;
    flex-shrink: 0; background: #fff;
  }
  .chat-input {
    flex: 1; border: 1px solid var(--border); border-radius: 10px;
    padding: 9px 12px; font-size: 13px; font-family: var(--font-sans);
    color: var(--ink); background: #fff; resize: none;
    max-height: 100px; overflow-y: auto; outline: none;
    transition: border-color .12s;
  }
  .chat-input:focus { border-color: var(--r-navy); }
  .chat-send-btn {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--r-navy); color: #fff; border: none;
    cursor: pointer; font-size: 16px; display: flex;
    align-items: center; justify-content: center;
    transition: filter .12s; flex-shrink: 0;
  }
  .chat-send-btn:hover { filter: brightness(1.1); }
  .chat-send-btn:disabled { opacity: .4; cursor: not-allowed; }

  /* ============================================================
     TOAST
     ============================================================ */
  .toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: var(--r-navy); color: #fff;
    padding: 9px 16px 9px 14px; border-radius: 8px;
    font-size: 12px; font-weight: 600; font-family: var(--font-sans);
    box-shadow: 0 4px 16px rgba(13,38,73,.25);
    z-index: 9999; opacity: 0;
    transition: opacity .2s, transform .2s;
    pointer-events: auto; cursor: pointer;
    max-width: min(360px, calc(100vw - 48px));
    text-align: center; line-height: 1.4;
    display: flex; align-items: center; gap: 8px;
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
  .toast.success { background: #0F6E56; }
  .toast.error   { background: #8B2500; }
  .toast.info    { background: var(--r-navy); }

/* ============================================================
   Dashboard header overrides + format panel + misc
   ============================================================ */
  #dbv-client   { color: var(--ink-soft)  !important; }
  #dbv-campaign { color: var(--r-navy)    !important; font-size:18px; font-weight:800; }
  #dbv-flight   { color: var(--ink-soft)  !important; }
  #dbv-updated  { color: var(--ink-soft)  !important; background: rgba(13,38,73,.08) !important; }

  /* Collapsible format panel sections */
  .fp-section { border-bottom: 1px solid var(--border); }
  .fp-section-hdr {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 0; cursor: pointer; user-select: none;
  }
  .fp-section-hdr:hover .fp-section-ttl { color: var(--r-navy); }
  .fp-section-ttl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
  .fp-section-chev { font-size: 11px; color: var(--ink-soft); transition: transform .15s; }
  .fp-section.fp-collapsed .fp-section-chev { transform: rotate(-90deg); }
  .fp-section.fp-collapsed .fp-section-body { display: none; }
  .fp-section-body { padding-bottom: 14px; }
  /* Series color input border */
  #fp-series-selector input[type="color"] { border: 1px solid var(--border); border-radius: 4px; }
  .admin-tab { padding:12px 18px; border:none; background:none; cursor:pointer; font-size:13px; font-weight:600; font-family:var(--font-sans); color:var(--ink-soft); border-bottom:2px solid transparent; transition:all .12s; margin-bottom:-1px; }
  .admin-tab:hover { color:var(--r-navy); }
  .admin-tab.active { color:var(--r-canyon); border-bottom-color:var(--r-canyon); }
  .admin-client-card { background:var(--brand-panel); border:1px solid var(--border); border-radius:10px; padding:14px 16px; margin-bottom:10px; display:flex; align-items:center; justify-content:space-between; }
  #panel-admin { display:none; }
  #panel-admin.panel-visible { display:flex !important; }
  .header-breadcrumb { flex:1; display:flex; align-items:center; gap:0; padding:0 20px; overflow:hidden; }
  .bc-item { font-size:13px; color:rgba(255,255,255,.5); font-weight:500; white-space:nowrap; }
  .bc-item.bc-active { color:rgba(255,255,255,.9); font-weight:600; }
  .bc-sep { color:rgba(255,255,255,.25); padding:0 8px; font-size:12px; flex-shrink:0; }

  /* ---- Header user block (avatar + name/role) ---- */
  .header-user-btn {
    display: flex; align-items: center; gap: 10px;
    background: none; border: none; cursor: pointer; padding: 0;
    font-family: var(--font-sans); transition: opacity .12s; flex-shrink: 0;
  }
  .header-user-btn:hover { opacity: .82; }
  .header-user-avatar {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: var(--r-canyon); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
    border: 2px solid rgba(255,255,255,.25);
  }
  .header-user-info { text-align: left; }
  .header-user-name { font-size: 12px; font-weight: 700; color: #fff; line-height: 1.25; }
  .header-user-role { font-size: 10px; color: rgba(255,255,255,.5); margin-top: 1px; }
  /* Wrapper that holds the button + dropdown — adds the left separator */
  .header-user-zone {
    display: flex; align-items: center;
    border-left: 1px solid rgba(255,255,255,.15);
    padding-left: 18px; margin-left: 4px;
    position: relative; flex-shrink: 0;
    height: 100%;
  }

  /* ---- Sidebar collapse toggle (inline, top of nav) ---- */
  .sidebar-header {
    display:flex; align-items:center; justify-content:flex-end;
    padding:10px 10px 2px; flex-shrink:0;
  }
  .sidebar-collapse-toggle {
    width:28px; height:28px; border-radius:6px;
    border:none; background:transparent; color:rgba(255,255,255,.3);
    cursor:pointer; display:flex; align-items:center; justify-content:center;
    transition:background .12s, color .12s;
  }
  .sidebar-collapse-toggle:hover { background:rgba(255,255,255,.08); color:#fff; }
  .sidebar.collapsed .sidebar-collapse-toggle svg { transform:rotate(180deg); }

  /* ---- Ask AI nav item ---- */
  .nav-item-ai { border-top:1px solid rgba(255,255,255,.06); margin-top:4px; }
  .nav-item-ai .nav-item-icon svg path { fill:var(--r-canyon); }
  .nav-item-ai { color:rgba(255,255,255,.8); }
  .nav-item-ai:hover { background:rgba(240,92,69,.12) !important; color:#fff; }

  /* ---- Collapsible Pinpoint explainer ---- */
  .dbv-explainer-toggle {
    width:100%; display:flex; align-items:center; justify-content:space-between;
    background:none; border:1px solid var(--border); border-radius:8px;
    padding:9px 14px; cursor:pointer; font-family:var(--font-sans);
    font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em;
    color:var(--ink-soft); transition:all .12s; margin-bottom:0;
  }
  .dbv-explainer-toggle:hover { border-color:var(--ink-soft); color:var(--r-navy); }
  .dbv-explainer-toggle .dbv-exp-chevron { font-size:14px; transition:transform .2s; }
  .dbv-explainer-toggle.open .dbv-exp-chevron { transform:rotate(90deg); }
  .dbv-explainer-body { display:none; padding-top:14px; }
  .dbv-explainer-body.open { display:block; }

  .dropzone * { pointer-events: none; }
  .dropzone input[type="file"] { pointer-events: auto; }
  .rb-empty-state {
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    height:100%; min-height:280px; gap:12px; text-align:center; padding:40px;
  }
  .rb-empty-icon { font-size:36px; opacity:.25; }
  .rb-empty-title { font-size:15px; font-weight:700; color:var(--r-navy); margin:0; }
  .rb-empty-sub { font-size:13px; color:var(--ink-soft); margin:0; max-width:320px; line-height:1.55; }

  /* Hide legacy floating collapse button */
  .sidebar-collapse-btn:not(.sidebar-collapse-toggle) { display:none !important; }
  /* Hide activity dots */
  .activity-dot { display:none !important; }
  .activity-item { gap:8px; }
