    :root {
      --rt-bg: #faf7ff;
      --rt-deep: #0d0020;
      --rt-dark: #1a0040;
      --rt-purple: #5b21b6;
      --rt-violet: #7c3aed;
      --rt-bright: #a855f7;
      --rt-glow: #c084fc;
      --rt-fuchsia: #d946ef;
      --rt-table-hd: #3b0066;
      --rt-table-hd-hover: #2d004d;
      --rt-row-hover: #f5f0ff;
    }

    body {
      font-family: 'Inter', sans-serif;
      background: var(--rt-bg)
    }

    .shoppe-gradient {
      background: linear-gradient(135deg, #0d0020 0%, #2a0060 60%, #1a0040 100%)
    }

    .card-hover:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 25px -5px rgba(91, 33, 182, .18)
    }

    input[type=number]::-webkit-inner-spin-button,
    input[type=number]::-webkit-outer-spin-button {
      -webkit-appearance: none;
      margin: 0
    }

    .pulse-low {
      animation: pulse 2s infinite
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1
      }

      50% {
        opacity: .5
      }
    }

    /* Dashboard period selector pills */
    .dash-period-btn {
      padding: 5px 12px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 700;
      color: #64748b;
      cursor: pointer;
      transition: all .15s;
      background: transparent;
      border: none
    }

    .dash-period-btn:hover { background: #e2e8f0; color: #374151 }

    .dash-period-btn.active {
      background: #5b21b6;
      color: #fff;
      box-shadow: 0 1px 4px rgba(91,33,182,.3)
    }

    /* Universal Date Range Pills */
    .dt-pill {
      padding: 4px 10px;
      border-radius: 8px;
      font-size: 10px;
      font-weight: 800;
      color: #94a3b8;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      background: transparent;
      border: none;
      cursor: pointer;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .dt-pill:hover {
      background: #f1f5f9;
      color: #475569;
    }

    .dt-pill.active {
      background: #fff;
      color: #4f46e5;
      box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    }

    /* Analytics tabs */
    .atab-btn {
      padding: 8px 16px;
      border-bottom: 3px solid transparent;
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
      color: #64748b;
      transition: all .15s
    }

    .atab-btn:hover {
      color: var(--rt-violet);
      background: #f5f0ff
    }

    .atab-btn.active {
      color: var(--rt-violet);
      border-bottom-color: var(--rt-violet);
      background: #fff
    }

    .atab-panel {
      display: none
    }

    .atab-panel.active {
      display: block
    }

    /* Tables */
    .data-table {
      border-collapse: collapse;
      width: 100%;
      font-size: 12px
    }

    .data-table th {
      background: var(--rt-table-hd);
      color: #fff;
      padding: 8px 10px;
      text-align: left;
      cursor: pointer;
      white-space: nowrap;
      position: sticky;
      top: 0
    }

    .data-table th:hover {
      background: var(--rt-table-hd-hover)
    }

    .data-table th.sort-asc::after {
      content: ' ^';
      font-size: 9px
    }

    .data-table th.sort-desc::after {
      content: ' v';
      font-size: 9px
    }

    .data-table th.sortable::after {
      content: ' +';
      font-size: 9px;
      opacity: .4
    }

    .data-table td {
      padding: 7px 10px;
      border-bottom: 1px solid #e5e7eb;
      vertical-align: middle
    }

    .data-table tr:hover td {
      background: var(--rt-row-hover) !important
    }

    .tbl-wrap {
      overflow-x: auto;
      border-radius: 8px;
      border: 1px solid #e2e8f0
    }

    /* Badges */
    .badge {
      display: inline-block;
      padding: 2px 7px;
      border-radius: 20px;
      font-size: 10px;
      font-weight: 700;
      white-space: nowrap
    }

    .badge-above {
      background: #D5F5E3;
      color: #145A32
    }

    .badge-at-target {
      background: #ede9fe;
      color: #5b21b6
    }

    .badge-slightly {
      background: #FEF9E7;
      color: #7D6608
    }

    .badge-below {
      background: #FADBD8;
      color: #922B21
    }

    .badge-no-sales {
      background: #F5F5F5;
      color: #888
    }

    .badge-fast {
      background: #D5F5E3;
      color: #145A32
    }

    .badge-normal {
      background: #ede9fe;
      color: #5b21b6
    }

    .badge-slow {
      background: #FEF9E7;
      color: #7D6608
    }

    .badge-dead {
      background: #FADBD8;
      color: #922B21
    }

    /* KPI boxes */
    .kpi-box {
      background: #fff;
      border-radius: 12px;
      padding: 16px;
      box-shadow: 0 1px 4px rgba(91, 33, 182, .09);
      border: 1px solid #e9d5ff
    }

    .kpi-val {
      font-size: 24px;
      font-weight: 800;
      line-height: 1.1
    }

    .kpi-label {
      font-size: 11px;
      font-weight: 700;
      color: #64748b;
      text-transform: uppercase;
      letter-spacing: .05em;
      margin-top: 4px
    }

    .kpi-sub {
      font-size: 10px;
      color: #94a3b8;
      margin-top: 2px
    }

    .card-img {
      max-width: 100%;
      max-height: 136px;
      width: auto;
      height: auto;
      display: block;
      object-fit: contain;
      transition: transform 0.4s ease
    }

    .card-img:hover {
      transform: scale(1.12)
    }

    /* Markup bars */
    .markup-bar-bg {
      height: 8px;
      background: #e9d5ff;
      border-radius: 4px;
      overflow: hidden
    }

    .markup-bar-fg {
      height: 8px;
      border-radius: 4px;
      transition: width .4s
    }

    /* Filters */
    .filter-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
      margin-bottom: 16px
    }

    .filter-input {
      border: 1px solid #d1d5db;
      border-radius: 6px;
      padding: 6px 10px;
      font-size: 12px;
      outline: none
    }

    .filter-input:focus {
      border-color: var(--rt-violet);
      box-shadow: 0 0 0 2px rgba(124, 58, 237, .15)
    }

    /* Main nav — pill style */
    .main-nav-btn {
      padding: 6px 18px;
      border-radius: 9999px;
      font-weight: 700;
      font-size: 13px;
      border: none;
      cursor: pointer;
      transition: all .2s;
      color: rgba(255,255,255,.55);
      background: transparent;
      white-space: nowrap;
    }

    .main-nav-btn.active {
      color: #fff;
      background: var(--rt-violet);
      box-shadow: 0 0 14px rgba(124,58,237,.55)
    }

    .main-nav-btn:hover:not(.active) {
      color: #e2e8f0;
      background: rgba(255,255,255,.12)
    }

    /* Currency pills */
    .curr-pill {
      padding: 6px 14px;
      border-radius: 9999px;
      font-weight: 700;
      font-size: 12px;
      border: none;
      cursor: pointer;
      transition: all .2s;
      color: rgba(255,255,255,.55);
      background: transparent;
      white-space: nowrap;
    }

    .curr-pill.active {
      color: #fff;
      background: var(--rt-violet);
      box-shadow: 0 0 12px rgba(124,58,237,.45)
    }

    .curr-pill:hover:not(.active) {
      color: #e2e8f0;
      background: rgba(255,255,255,.12)
    }

    /* Refresh pill */
    .refresh-pill {
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 6px 14px;
      border-radius: 9999px;
      font-weight: 700;
      font-size: 12px;
      border: none;
      cursor: pointer;
      transition: all .2s;
      color: #fff;
      background: rgba(255,255,255,.12);
      white-space: nowrap;
    }

    .refresh-pill:hover {
      background: var(--rt-violet);
      box-shadow: 0 0 12px rgba(124,58,237,.45)
    }

    /* Hide refresh label on very small screens */
    @media (max-width: 380px) {
      .refresh-label { display: none }
    }

    .main-panel {
      display: none
    }

    .main-panel.active {
      display: block
    }

    /* Logo glow animation */
    @keyframes logoGlow {

      0%,
      100% {
        filter: drop-shadow(0 0 6px rgba(192, 132, 252, .4))
      }

      50% {
        filter: drop-shadow(0 0 14px rgba(217, 70, 239, .6))
      }
    }

    .logo-img {
      animation: logoGlow 3s ease-in-out infinite;
      height: 44px;
      width: 44px;
      border-radius: 50%
    }

    /* Data note banner */
    .data-note {
      background: #fdf4ff;
      border: 1px solid #e9d5ff;
      border-radius: 8px;
      padding: 8px 14px;
      font-size: 11px;
      color: #7c3aed;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 6px
    }

    @media print {

      header,
      .filter-row,
      .main-nav-btn,
      button:not(.print-ok) {
        display: none !important
      }

      .main-panel:not(.active) {
        display: none !important
      }

      .tbl-wrap {
        max-height: none !important;
        overflow: visible !important
      }
    }

    /* Button hover classes — replaces inline onmouseover/onmouseout */
    .btn-purple {
      background: #5b21b6;
      transition: background .2s;
    }
    .btn-purple:hover:not(:disabled) {
      background: #7c3aed;
    }
    .btn-violet {
      background: #7c3aed;
      transition: background .2s;
    }
    .btn-violet:hover:not(:disabled) {
      background: #9333ea;
    }
    .btn-analytics-adj {
      background: #5b21b6;
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 8px 14px;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      white-space: nowrap;
      transition: background .2s;
    }
    .btn-analytics-adj:hover {
      background: #7c3aed;
    }

    /* Sourcing Hub Vendor Tabs */
    .vendor-tab {
      padding: 8px 16px;
      border-radius: 12px;
      font-size: 11px;
      font-weight: 800;
      color: #64748b;
      background: #fff;
      border: 1px solid #e2e8f0;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      white-space: nowrap;
      text-transform: uppercase;
      letter-spacing: 0.025em;
    }

    .vendor-tab:hover {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #475569;
      transform: translateY(-1px);
    }

    .vendor-tab.active {
      background: #0f172a;
      border-color: #0f172a;
      color: #fff;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    }

    /* ================================================================ */
    /* MARKUP HEALTH VISUAL INDICATORS (Traffic Light System) */
    /* ================================================================ */
    .markup-critical {
      background-color: #ffebee !important;
      color: #c62828 !important;
      font-weight: bold;
    }

    .markup-warning {
      background-color: #fff3e0 !important;
      color: #ef6c00 !important;
    }

    .markup-target {
      background-color: #e8f5e9 !important;
      color: #2e7d32 !important;
    }

    .markup-premium {
      background-color: #f3e5f5 !important;
      color: #7b1fa2 !important;
      font-weight: bold;
    }

    /* Gap Column Indicators */
    .gap-negative::before {
      content: "▼ ";
      font-size: 0.8em;
      margin-right: 2px;
    }

    .gap-positive::before {
      content: "▲ ";
      font-size: 0.8em;
      margin-right: 2px;
    }

    /* ================================================================ */
    /* DROPDOWN MENU SYSTEM (Shoppe-style) */
    /* ================================================================ */
    .dropdown-container {
      position: relative;
    }

    .dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      background: rgba(15, 23, 42, 0.95);
      border: 1px solid rgba(34, 213, 238, 0.3);
      border-radius: 10px;
      padding: 8px 0;
      min-width: 160px;
      z-index: 1000;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
      animation: dropdownSlide 0.15s ease-out forwards;
    }

    @keyframes dropdownSlide {
      from {
        opacity: 0;
        transform: translateY(-6px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .dropdown-item {
      width: 100%;
      padding: 8px 16px;
      background: transparent;
      border: none;
      color: #cbd5e1;
      font-size: 12px;
      font-weight: 600;
      text-align: left;
      cursor: pointer;
      transition: all 0.12s;
      white-space: nowrap;
    }

    .dropdown-item:hover {
      background: rgba(34, 213, 238, 0.1);
      color: #22d3ee;
      padding-left: 18px;
    }

    .dropdown-item:first-child {
      border-radius: 8px 8px 0 0;
    }

    .dropdown-item:last-child {
      border-radius: 0 0 8px 8px;
    }
  