/* Seller Intel table — clickable seller name links */
    .intel-seller-link {
      color: #a78bfa !important;
      text-decoration: none;
      cursor: pointer;
      font-weight: 700;
      transition: color 0.15s;
    }
    .intel-seller-link:hover {
      color: #c4b5fd !important;
      text-decoration: underline;
    }
    .intel-seller-link::after {
      content: ' 🔍';
      font-size: 11px;
      opacity: 0.7;
    }

#view-account-health {
              background: #0a1628;
              border: 1px solid var(--border);
            }
            #view-account-health .ah-cards {
              display: grid;
              grid-template-columns: repeat(4, minmax(0, 1fr));
              gap: 0.75rem;
              margin-bottom: 0.8rem;
            }
            #view-account-health .ah-card {
              background: #0d1f3c;
              border: 1px solid var(--border);
              border-radius: 12px;
              padding: 0.7rem 0.8rem;
            }
            #view-account-health .ah-card-label {
              font-size: 0.73rem;
              color: #adc2df;
              text-transform: uppercase;
              letter-spacing: 0.04em;
              margin-bottom: 0.32rem;
            }
            #view-account-health .ah-card-value {
              font-size: 1.2rem;
              line-height: 1.15;
              font-weight: 800;
              color: #ffffff;
            }
            #view-account-health .ah-card-value.ah-red {
              color: #ff4444;
            }
            #view-account-health .ah-card-value.ah-green {
              color: #00b894;
            }
            #view-account-health .ah-badge {
              display: inline-block;
              padding: 0.15rem 0.48rem;
              border-radius: 999px;
              font-size: 0.78rem;
              font-weight: 700;
              border: 1px solid transparent;
            }
            #view-account-health .ah-badge-error {
              color: #ffd9d9;
              background: rgba(255, 68, 68, 0.2);
              border-color: rgba(255, 68, 68, 0.45);
            }
            #view-account-health .ah-badge-warning {
              color: #fff4cf;
              background: rgba(255, 193, 7, 0.2);
              border-color: rgba(255, 193, 7, 0.45);
            }
            #view-account-health .ah-last-checked {
              margin-bottom: 0.75rem;
              font-size: 0.84rem;
              color: #b8c8df;
            }
            #view-account-health .ah-alerts {
              display: grid;
              gap: 0.55rem;
              margin-bottom: 0.75rem;
            }
            #view-account-health .ah-alert {
              border-radius: 10px;
              border: 1px solid transparent;
              padding: 0.55rem 0.75rem;
              font-size: 0.86rem;
              font-weight: 700;
            }
            #view-account-health .ah-alert-new {
              color: #ffd6d6;
              background: rgba(255, 68, 68, 0.15);
              border-color: rgba(255, 68, 68, 0.4);
            }
            #view-account-health .ah-alert-resolved {
              color: #d8ffef;
              background: rgba(0, 184, 148, 0.14);
              border-color: rgba(0, 184, 148, 0.4);
            }
            #view-account-health .ah-tabs {
              display: flex;
              gap: 0.65rem;
              flex-wrap: wrap;
              margin-bottom: 0.9rem;
            }
            #view-account-health .ah-tab {
              display: inline-flex;
              align-items: center;
              gap: 0.5rem;
              border: 1px solid rgba(255,255,255,0.14);
              border-radius: 10px;
              background: rgba(255,255,255,0.03);
              color: #cfe0ff;
              padding: 0.55rem 0.8rem;
              font-size: 0.84rem;
              font-weight: 700;
              cursor: pointer;
            }
            #view-account-health .ah-tab-active {
              border-color: rgba(0, 184, 148, 0.55);
              background: rgba(0, 184, 148, 0.16);
              color: #d8ffef;
            }
            #view-account-health .ah-tab-summary {
              color: #9fd7bf;
              font-size: 0.76rem;
              font-weight: 600;
            }
            #view-account-health .ah-panel-hidden {
              display: none;
            }
            #view-account-health .ah-table-wrap {
              border: 1px solid var(--border);
              border-radius: 12px;
              max-height: 600px;
              overflow-y: auto;
              background: #0a1628;
              margin-bottom: 0.9rem;
            }
            #view-account-health .ah-table {
              width: 100%;
              border-collapse: collapse;
              font-size: 0.85rem;
            }
            #view-account-health .ah-table thead th {
              position: sticky;
              top: 0;
              z-index: 1;
              background: #0d1f3c;
              color: #e9f0ff;
            }
            #view-account-health .ah-table th,
            #view-account-health .ah-table td {
              border: 1px solid var(--border);
              padding: 0.5rem 0.6rem;
              text-align: left;
              vertical-align: top;
            }
            #view-account-health .ah-code {
              font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
              font-size: 11px;
            }
            #view-account-health .ah-severity-pill {
              display: inline-block;
              padding: 0.12rem 0.48rem;
              border-radius: 999px;
              font-size: 0.74rem;
              font-weight: 800;
              border: 1px solid transparent;
              letter-spacing: 0.02em;
            }
            #view-account-health .ah-severity-error {
              color: #ffd9d9;
              background: rgba(255, 68, 68, 0.2);
              border-color: rgba(255, 68, 68, 0.45);
            }
            #view-account-health .ah-severity-warning {
              color: #fff4cf;
              background: rgba(255, 193, 7, 0.2);
              border-color: rgba(255, 193, 7, 0.45);
            }
            #view-account-health .ah-resolved {
              border: 1px solid var(--border);
              border-radius: 12px;
              background: #0a1628;
              overflow: hidden;
              margin-bottom: 0.9rem;
            }
            #view-account-health .ah-resolved-meta-summary {
              padding: 0.8rem 0.8rem 0;
              color: #9fd7bf;
              font-size: 0.8rem;
              font-weight: 700;
            }
            #view-account-health .ah-resolved-content {
              display: grid;
              gap: 0.55rem;
              padding: 0.75rem;
            }
            #view-account-health .ah-resolved-item {
              color: #d8ffef;
              background: rgba(0, 184, 148, 0.1);
              border: 1px solid rgba(0, 184, 148, 0.25);
              border-radius: 10px;
              padding: 0.65rem 0.75rem;
              font-size: 0.85rem;
            }
            #view-account-health .ah-resolved-item-header {
              display: flex;
              align-items: center;
              justify-content: space-between;
              gap: 0.5rem;
            }
            #view-account-health .ah-info-btn {
              background: none;
              border: 1px solid rgba(0, 184, 148, 0.35);
              border-radius: 6px;
              cursor: pointer;
              font-size: 1rem;
              line-height: 1;
              padding: 0.1rem 0.35rem;
              opacity: 0.7;
              transition: opacity 0.15s, background 0.15s;
              flex-shrink: 0;
            }
            #view-account-health .ah-info-btn:hover {
              opacity: 1;
              background: rgba(0, 184, 148, 0.15);
            }
            #view-account-health .ah-info-btn-active {
              opacity: 1;
              background: rgba(0, 184, 148, 0.2);
              border-color: rgba(0, 184, 148, 0.6);
            }
            #view-account-health .ah-info-panel {
              position: relative;
              margin-top: 0.55rem;
              border-top: 1px solid rgba(0, 184, 148, 0.2);
              padding-top: 0.55rem;
              padding-right: 1.8rem;
              animation: ah-slide-in 0.18s ease;
            }
            @keyframes ah-slide-in {
              from { opacity: 0; transform: translateY(-4px); }
              to   { opacity: 1; transform: translateY(0); }
            }
            #view-account-health .ah-info-grid {
              display: grid;
              gap: 0.4rem;
            }
            #view-account-health .ah-info-row {
              display: grid;
              grid-template-columns: 100px 1fr;
              gap: 0.4rem;
              font-size: 0.8rem;
            }
            #view-account-health .ah-info-label {
              color: #7ec8a4;
              font-weight: 600;
              font-size: 0.75rem;
              text-transform: uppercase;
              letter-spacing: 0.04em;
              padding-top: 0.1rem;
            }
            #view-account-health .ah-info-value {
              color: #c8f0df;
            }
            #view-account-health .ah-info-note .ah-info-value {
              color: #ffe082;
              font-style: italic;
            }
            #view-account-health .ah-confidence {
              display: inline-block;
              padding: 0.1rem 0.45rem;
              border-radius: 4px;
              font-size: 0.75rem;
              font-weight: 600;
            }
            #view-account-health .ah-conf-high {
              background: rgba(0, 184, 148, 0.25);
              color: #00e6a0;
              border: 1px solid rgba(0, 184, 148, 0.4);
            }
            #view-account-health .ah-conf-medium {
              background: rgba(255, 193, 7, 0.18);
              color: #ffd54f;
              border: 1px solid rgba(255, 193, 7, 0.35);
            }
            #view-account-health .ah-conf-low {
              background: rgba(255, 100, 100, 0.18);
              color: #ff9090;
              border: 1px solid rgba(255, 100, 100, 0.35);
            }
            #view-account-health .ah-resolved-meta {
              display: flex;
              align-items: center;
              gap: 0.4rem;
              flex-shrink: 0;
            }
            #view-account-health .ah-resolved-fix-badge {
              display: inline-block;
              padding: 0.15rem 0.5rem;
              border-radius: 4px;
              font-size: 0.7rem;
              font-weight: 600;
              background: rgba(0, 184, 148, 0.18);
              color: #7edcb4;
              border: 1px solid rgba(0, 184, 148, 0.3);
              white-space: nowrap;
            }
            #view-account-health .ah-resolved-by-badge {
              display: inline-block;
              padding: 0.15rem 0.5rem;
              border-radius: 4px;
              font-size: 0.65rem;
              font-weight: 500;
              background: rgba(130, 170, 255, 0.12);
              color: #9ab8e8;
              border: 1px solid rgba(130, 170, 255, 0.25);
              white-space: nowrap;
            }
            #view-account-health .ah-info-close {
              position: absolute;
              top: 0.35rem;
              right: 0.45rem;
              background: none;
              border: none;
              color: #7ec8a4;
              font-size: 1.1rem;
              cursor: pointer;
              line-height: 1;
              padding: 0.1rem 0.3rem;
              border-radius: 4px;
              opacity: 0.6;
              transition: opacity 0.15s, background 0.15s;
            }
            #view-account-health .ah-info-close:hover {
              opacity: 1;
              background: rgba(0, 184, 148, 0.15);
            }
            #view-account-health .ah-marketplace {
              border: 1px solid var(--border);
              border-radius: 12px;
              background: #0a1628;
              overflow: hidden;
            }
            #view-account-health .ah-marketplace summary {
              cursor: pointer;
              list-style: none;
              padding: 0.7rem 0.8rem;
              background: #0d1f3c;
              font-weight: 700;
              color: #e9f0ff;
              border-bottom: 1px solid var(--border);
            }
            #view-account-health .ah-marketplace summary::-webkit-details-marker {
              display: none;
            }
            #view-account-health .ah-marketplace summary::before {
              content: '▸';
              display: inline-block;
              margin-right: 0.45rem;
              transition: transform 0.2s ease;
            }
            #view-account-health .ah-marketplace[open] summary::before {
              transform: rotate(90deg);
            }
            #view-account-health .ah-marketplace-content {
              padding: 0.75rem;
            }
            @media (max-width: 980px) {
              #view-account-health .ah-cards {
                grid-template-columns: repeat(2, minmax(0, 1fr));
              }
            }
            @media (max-width: 620px) {
              #view-account-health .ah-cards {
                grid-template-columns: 1fr;
              }
            }

#view-pricing-buybox .map-pricing-controls {
              display: flex;
              flex-wrap: wrap;
              gap: 10px;
              align-items: center;
              justify-content: space-between;
              margin-bottom: 12px;
            }
            #view-pricing-buybox .map-pricing-tabs {
              display: inline-flex;
              gap: 8px;
              padding: 4px;
              border: 1px solid rgba(255,255,255,0.12);
              border-radius: 10px;
              background: rgba(0,0,0,0.2);
            }
            #view-pricing-buybox .map-tab {
              border: 1px solid rgba(255,255,255,0.15);
              border-radius: 8px;
              background: rgba(255,255,255,0.03);
              color: var(--text);
              padding: 7px 12px;
              font-size: 12px;
              font-weight: 700;
              letter-spacing: 0.3px;
              cursor: pointer;
            }
            #view-pricing-buybox .map-tab.active {
              border-color: var(--green);
              color: #d8ffef;
              background: rgba(0, 184, 148, 0.2);
            }
            #view-pricing-buybox .map-search {
              min-width: 260px;
              flex: 1;
              max-width: 420px;
              padding: 8px 11px;
              border-radius: 8px;
              border: 1px solid rgba(255,255,255,0.2);
              background: rgba(0,0,0,0.35);
              color: var(--text);
            }
            #view-pricing-buybox .map-pricing-status {
              margin: 6px 0 12px;
              color: #bcd2f7;
              font-size: 12px;
            }
            #view-pricing-buybox .map-table-wrap {
              overflow: auto;
              max-height: 70vh;
            }
            #view-pricing-buybox .map-table-wrap thead th {
              position: sticky;
              top: 0;
              z-index: 1;
              background: #10203b;
            }
            #view-pricing-buybox .map-sort {
              border: 0;
              background: transparent;
              color: #bcd2f7;
              font: inherit;
              font-weight: 600;
              padding: 0;
              cursor: pointer;
            }
            #view-pricing-buybox .map-sort:hover {
              color: #e6f0ff;
            }
            #view-pricing-buybox .map-risk-dot {
              display: inline-block;
              width: 9px;
              height: 9px;
              border-radius: 50%;
              margin-right: 8px;
              vertical-align: middle;
            }
            #view-pricing-buybox .map-risk-green { background: var(--green); }
            #view-pricing-buybox .map-risk-yellow { background: var(--yellow); }
            #view-pricing-buybox .map-risk-red { background: var(--red); }
            #view-pricing-buybox .map-view-hidden {
              display: none;
            }
            #view-pricing-buybox .map-expand-btn {
              border: 1px solid rgba(255,255,255,0.2);
              border-radius: 6px;
              background: rgba(255,255,255,0.04);
              color: var(--text);
              padding: 4px 8px;
              font-size: 11px;
              cursor: pointer;
            }
            #view-pricing-buybox .map-details-row td {
              background: rgba(255,255,255,0.03);
              border-bottom: 1px solid rgba(255,255,255,0.08);
              padding: 10px;
            }
            #view-pricing-buybox .map-details-table {
              width: 100%;
              border-collapse: collapse;
              font-size: 12px;
            }
            #view-pricing-buybox .map-details-table th,
            #view-pricing-buybox .map-details-table td {
              border-bottom: 1px solid rgba(255,255,255,0.08);
              padding: 6px;
            }
            @media (max-width: 900px) {
              #view-pricing-buybox .map-pricing-controls {
                align-items: stretch;
              }
              #view-pricing-buybox .map-search {
                max-width: none;
                min-width: 0;
                width: 100%;
              }
            }

#view-reference-changelog .changelog-timeline { max-height: 600px; overflow-y: auto; }
          #view-reference-changelog .changelog-check { margin-bottom: 1.5rem; border-left: 3px solid var(--border); padding-left: 1rem; }
          #view-reference-changelog .changelog-check-header { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
          #view-reference-changelog .changelog-check-header .check-count { color: var(--text); font-weight: 600; }
          #view-reference-changelog .changelog-entry { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
          #view-reference-changelog .changelog-entry:last-child { border-bottom: none; }
          #view-reference-changelog .cl-badge { font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 4px; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
          #view-reference-changelog .cl-badge-added { background: rgba(0,184,148,0.2); color: var(--green); }
          #view-reference-changelog .cl-badge-removed { background: rgba(255,71,87,0.2); color: var(--red); }
          #view-reference-changelog .cl-badge-changed { background: rgba(255,193,7,0.2); color: #ffc107; }
          #view-reference-changelog .cl-product { font-weight: 600; color: var(--text); }
          #view-reference-changelog .cl-asin { font-family: monospace; font-size: 0.8rem; color: var(--muted); }
          #view-reference-changelog .cl-detail { color: var(--muted); font-size: 0.9rem; }
          #view-reference-changelog .cl-arrow { color: #ffc107; font-weight: 700; }
          #view-reference-changelog .cl-no-changes { color: var(--muted); font-style: italic; padding: 0.5rem 0; }
          #view-reference-changelog .cl-empty { text-align: center; padding: 2rem; color: var(--muted); }
          #view-reference-changelog .cl-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
          #view-reference-changelog .cl-tab { background: var(--card); border: 1px solid var(--border); color: var(--muted); padding: 0.4rem 1rem; border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all 0.2s; }
          #view-reference-changelog .cl-tab:hover { border-color: var(--accent); color: var(--text); }
          #view-reference-changelog .cl-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
          #view-reference-changelog .cl-tab-panel { display: none; }
          #view-reference-changelog .cl-tab-panel.active { display: block; }
          #view-reference-changelog .cl-badge-new-seller { background: rgba(0,184,148,0.2); color: var(--green); }
          #view-reference-changelog .cl-badge-seller-left { background: rgba(108,117,125,0.2); color: #6c757d; }
          #view-reference-changelog .cl-badge-price-drop { background: rgba(255,71,87,0.25); color: var(--red); }
          #view-reference-changelog .cl-badge-price-change { background: rgba(255,193,7,0.2); color: #ffc107; }
          #view-reference-changelog .cl-badge-bb-lost { background: rgba(255,71,87,0.25); color: var(--red); }
          #view-reference-changelog .cl-badge-bb-won { background: rgba(0,184,148,0.2); color: var(--green); }
          /* Seller Changelog Cards */
          #view-reference-changelog #sellerChangelogTimeline { padding-right: 4px; }
          #view-reference-changelog .sc-summary { font-size: 0.85rem; padding: 0.6rem 0.75rem; background: rgba(255,255,255,0.03); border-radius: 8px; margin-bottom: 0.75rem; min-height: 1.5rem; }
          #view-reference-changelog .sc-summary-label { color: var(--muted); font-weight: 600; }
          #view-reference-changelog .sc-summary-empty { color: var(--muted); }
          #view-reference-changelog .sc-controls { margin-bottom: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
          #view-reference-changelog .sc-type-filters { display: flex; gap: 0.4rem; flex-wrap: wrap; }
          #view-reference-changelog .sc-filter-btn { background: #0d1b2e; border: 1px solid var(--border); color: var(--muted); padding: 0.3rem 0.75rem; border-radius: 20px; cursor: pointer; font-size: 0.78rem; font-weight: 600; transition: all 0.2s; white-space: nowrap; }
          #view-reference-changelog .sc-filter-btn:hover { border-color: var(--accent); color: var(--text); }
          #view-reference-changelog .sc-filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
          #view-reference-changelog .sc-filter-count { display: inline-block; background: rgba(255,255,255,0.15); padding: 0.05rem 0.35rem; border-radius: 10px; font-size: 0.72rem; margin-left: 0.25rem; }
          #view-reference-changelog .sc-filter-btn.active .sc-filter-count { background: rgba(255,255,255,0.25); }
          #view-reference-changelog .sc-product { font-weight: 600; }
          #view-reference-changelog .sc-asin { font-family: monospace; font-size: 0.78rem; color: var(--muted); }
          #view-reference-changelog .sc-fba-badge { font-size: 0.65rem; padding: 0.1rem 0.35rem; border-radius: 3px; font-weight: 600; }
          #view-reference-changelog .sc-fba { background: rgba(0,184,148,0.15); color: var(--green); }
          #view-reference-changelog .sc-fbm { background: rgba(108,117,125,0.15); color: #6c757d; }
          #view-reference-changelog .sc-muted { color: var(--muted); font-size: 0.82rem; }
          /* Seller Changelog Table */
          #view-reference-changelog .sc-table-wrap { max-height: 700px; overflow-y: auto; }
          #view-reference-changelog .sc-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
          #view-reference-changelog .sc-table th { position: sticky; top: 0; z-index: 2; background: #0d1f3c; color: var(--text); font-weight: 600; text-align: left; padding: 0.4rem 0.6rem; border-bottom: 2px solid var(--border); white-space: nowrap; }
          #view-reference-changelog .sc-table td { padding: 0.35rem 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: middle; }
          #view-reference-changelog .sc-table tr:hover td { background: rgba(255,255,255,0.03); }
          #view-reference-changelog .sc-table .sc-row-new-seller { border-left: 3px solid #3498db; }
          #view-reference-changelog .sc-table .sc-row-price { border-left: 3px solid #e74c3c; }
          #view-reference-changelog .sc-table .sc-row-price-up { border-left: 3px solid #00b894; }
          #view-reference-changelog .sc-table .sc-row-bb-lost { border-left: 3px solid #f39c12; }
          #view-reference-changelog .sc-table .sc-row-bb-won { border-left: 3px solid #00b894; }
          #view-reference-changelog .sc-table .sc-row-gone { border-left: 3px solid #6c757d; }
          #view-reference-changelog .sc-table .sc-row-default { border-left: 3px solid #4a5568; }
          #view-reference-changelog .sc-table .sc-td-time { color: var(--muted); white-space: nowrap; font-size: 0.78rem; }
          #view-reference-changelog .sc-table .sc-td-asin { font-family: monospace; font-size: 0.78rem; color: var(--muted); }
          #view-reference-changelog .sc-table .sc-td-details { color: var(--muted); font-size: 0.82rem; }
          #view-reference-changelog .sc-type-badge { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; padding: 0.15rem 0.45rem; border-radius: 4px; white-space: nowrap; display: inline-block; }
          #view-reference-changelog .cl-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; table-layout: auto; }
          #view-reference-changelog .cl-table th,
          #view-reference-changelog .cl-table td { border: 1px solid var(--border); padding: 0.35rem 0.45rem; vertical-align: top; text-align: left; white-space: nowrap; }
          #view-reference-changelog .cl-table td:last-child,
          #view-reference-changelog .cl-table th:last-child { white-space: normal; width: 40%; }
          #view-reference-changelog .cl-table thead th { position: sticky; top: 0; z-index: 2; background: #0d1f3c; color: var(--text); }
          #view-reference-changelog .cl-table .cl-group-row td { background: rgba(255,255,255,0.03); color: var(--muted); font-size: 0.82rem; font-weight: 600; }
          #view-reference-changelog .cl-table .cl-cell-date { color: var(--muted); white-space: nowrap; }
          #view-reference-changelog .cl-table .cl-cell-oldnew { color: var(--muted); }

#view-map-violations .mv-summary { display: flex; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
          #view-map-violations .mv-stat { text-align: center; }
          #view-map-violations .mv-stat .mv-num { font-size: 2rem; font-weight: 700; }
          #view-map-violations .mv-stat .mv-label { font-size: 0.8rem; color: var(--muted); }
          #view-map-violations .mv-stat .mv-red { color: var(--red); }
          #view-map-violations .mv-stat .mv-green { color: var(--green); }
          #view-map-violations .mv-list { max-height: 700px; overflow-y: auto; }
          #view-map-violations .mv-seller-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; }
          #view-map-violations .mv-seller-row:hover { background: rgba(255,255,255,0.03); }
          #view-map-violations .mv-expand-icon { font-size: 0.75rem; color: var(--muted); width: 1rem; text-align: center; flex-shrink: 0; transition: transform 0.2s; }
          #view-map-violations .mv-seller-row.expanded .mv-expand-icon { transform: rotate(90deg); }
          #view-map-violations .mv-seller-name { font-weight: 600; color: var(--text); flex: 1; }
          #view-map-violations .mv-seller-count { font-size: 0.8rem; color: var(--red); font-weight: 600; background: rgba(255,71,87,0.15); padding: 0.15rem 0.5rem; border-radius: 10px; }
          #view-map-violations .mv-products { display: none; padding: 0.25rem 0 0.5rem 1.75rem; }
          #view-map-violations .mv-products.show { display: block; }
          #view-map-violations .mv-prod-entry { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0; font-size: 0.9rem; flex-wrap: wrap; }
          #view-map-violations .mv-product { font-weight: 500; color: var(--text); }
          #view-map-violations .mv-asin { font-family: monospace; font-size: 0.78rem; color: var(--muted); }
          #view-map-violations .mv-price-bad { color: var(--red); font-weight: 600; }
          #view-map-violations .mv-price-map { color: var(--muted); }
          #view-map-violations .mv-gap { color: var(--red); font-weight: 600; font-size: 0.8rem; }
          #view-map-violations .mv-empty { text-align: center; padding: 2rem; color: var(--green); font-size: 1.1rem; }
          #view-map-violations .mv-fba { font-size: 0.65rem; background: rgba(0,184,148,0.15); color: var(--green); padding: 0.1rem 0.35rem; border-radius: 3px; }
          #view-map-violations .mv-fbm { font-size: 0.65rem; background: rgba(108,117,125,0.15); color: #6c757d; padding: 0.1rem 0.35rem; border-radius: 3px; }
          #view-map-violations .mv-bb { font-size: 0.65rem; background: rgba(255,193,7,0.2); color: #ffc107; padding: 0.1rem 0.35rem; border-radius: 3px; }
          #view-map-violations .mv-breaks-wrap { overflow-x: auto; margin-top: 0.6rem; }
          #view-map-violations .mv-break-status {
            display: inline-block;
            font-size: 0.75rem;
            border-radius: 999px;
            padding: 0.14rem 0.56rem;
            font-weight: 700;
            border: 1px solid transparent;
          }
          #view-map-violations .mv-break-status-active {
            color: #ff4444;
            background: rgba(255, 68, 68, 0.2);
            border-color: rgba(255, 68, 68, 0.45);
          }
          #view-map-violations .mv-break-status-resolved {
            color: #4caf50;
            background: rgba(76, 175, 80, 0.2);
            border-color: rgba(76, 175, 80, 0.45);
          }
          #view-map-violations .mv-break-empty { color: var(--muted); padding: 0.85rem 0; text-align: center; }

#view-authorized-sellers {
            background: linear-gradient(160deg, rgba(10, 22, 40, 0.98) 0%, rgba(12, 28, 50, 0.98) 100%);
            border-color: rgba(255, 107, 53, 0.35);
          }
          #view-authorized-sellers h2 { color: #ff6b35; }
          #view-authorized-sellers .as-sub { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }
          #view-authorized-sellers .as-toggle {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 0.85rem;
          }
          #view-authorized-sellers .as-tab {
            border: 1px solid rgba(255,255,255,0.18);
            border-radius: 8px;
            background: rgba(255,255,255,0.03);
            color: var(--text);
            padding: 0.45rem 0.8rem;
            font-size: 0.8rem;
            font-weight: 700;
            cursor: pointer;
          }
          #view-authorized-sellers .as-tab.active {
            border-color: #ff6b35;
            color: #fff;
            background: rgba(255, 107, 53, 0.22);
          }
          #view-authorized-sellers .as-table-wrap { overflow: auto; max-height: 70vh; }
          #view-authorized-sellers .as-table-wrap thead th { position: sticky; top: 0; z-index: 1; background: #10203b; }
          #view-authorized-sellers .as-status {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            display: inline-block;
            vertical-align: middle;
            margin-right: 8px;
          }
          #view-authorized-sellers .as-status-clean { background: #4caf50; }
          #view-authorized-sellers .as-status-warn { background: #ffc107; }
          #view-authorized-sellers .as-status-bad { background: #ff4444; }
          #view-authorized-sellers .as-violations {
            font-size: 0.78rem;
            border-radius: 10px;
            padding: 0.14rem 0.5rem;
            font-weight: 700;
          }
          #view-authorized-sellers .as-violations-clean { background: rgba(76, 175, 80, 0.2); color: #4caf50; }
          #view-authorized-sellers .as-violations-warn { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
          #view-authorized-sellers .as-violations-bad { background: rgba(255, 68, 68, 0.2); color: #ff4444; }
          #view-authorized-sellers .as-expand-btn {
            border: 1px solid rgba(255,255,255,0.22);
            background: rgba(255,255,255,0.03);
            color: var(--text);
            border-radius: 6px;
            padding: 0.24rem 0.55rem;
            font-size: 0.75rem;
            cursor: pointer;
          }
          #view-authorized-sellers .as-details-row td {
            background: rgba(255,255,255,0.03);
            border-bottom: 1px solid rgba(255,255,255,0.08);
            padding: 0.6rem;
          }
          #view-authorized-sellers .as-prod-list { display: grid; gap: 0.4rem; }
          #view-authorized-sellers .as-prod-item { font-size: 0.84rem; color: #d9e8ff; }
          #view-authorized-sellers .as-prod-map-gap { color: #ff4444; font-weight: 700; }
          #view-authorized-sellers .as-empty { color: var(--muted); padding: 0.85rem 0; }
          #view-authorized-sellers .as-badge {
            font-size: 0.7rem;
            border-radius: 4px;
            padding: 0.12rem 0.38rem;
            font-weight: 700;
          }
          #view-authorized-sellers .as-fba { color: #4caf50; background: rgba(76, 175, 80, 0.18); }
          #view-authorized-sellers .as-fbm { color: #b8c1cd; background: rgba(120, 134, 156, 0.2); }
          #view-authorized-sellers .as-breaks {
            margin-top: 1.2rem;
            border-top: 1px solid rgba(255, 107, 53, 0.2);
            padding-top: 1rem;
          }
          #view-authorized-sellers .as-breaks h3 {
            margin: 0 0 0.4rem;
            color: #ff6b35;
            font-size: 1.03rem;
          }
          #view-authorized-sellers .as-breaks-sub {
            color: var(--muted);
            font-size: 0.82rem;
            margin-bottom: 0.75rem;
          }
          #view-authorized-sellers .as-breaks-wrap { overflow-x: auto; }
          #view-authorized-sellers .as-break-status {
            display: inline-block;
            font-size: 0.75rem;
            border-radius: 999px;
            padding: 0.14rem 0.56rem;
            font-weight: 700;
            border: 1px solid transparent;
          }
          #view-authorized-sellers .as-break-status-active {
            color: #ff4444;
            background: rgba(255, 68, 68, 0.2);
            border-color: rgba(255, 68, 68, 0.45);
          }
          #view-authorized-sellers .as-break-status-resolved {
            color: #4caf50;
            background: rgba(76, 175, 80, 0.2);
            border-color: rgba(76, 175, 80, 0.45);
          }

#view-ipi-performance {
            background: linear-gradient(165deg, rgba(10, 22, 40, 0.98) 0%, rgba(14, 30, 54, 0.98) 100%);
            border: 1px solid rgba(255, 107, 53, 0.28);
          }
          #view-ipi-performance h2 {
            color: #ff6b35;
          }
          #view-ipi-performance .ipi-sub {
            color: var(--muted);
            font-size: 0.86rem;
            margin-bottom: 1rem;
          }
          #view-ipi-performance .ipi-chart-wrap {
            background: linear-gradient(180deg, rgba(255, 107, 53, 0.08) 0%, rgba(10, 22, 40, 0.75) 100%);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 14px;
            padding: 0.85rem;
            margin-bottom: 1rem;
            min-height: 300px;
          }
          #view-ipi-performance .ipi-cards {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 0.75rem;
            margin-bottom: 1rem;
          }
          #view-ipi-performance .ipi-card {
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: 12px;
            padding: 0.75rem 0.8rem;
            background: linear-gradient(170deg, rgba(255, 255, 255, 0.05) 0%, rgba(10, 22, 40, 0.6) 100%);
          }
          #view-ipi-performance .ipi-card-label {
            font-size: 0.78rem;
            color: #b6caec;
            margin-bottom: 0.4rem;
            letter-spacing: 0.02em;
            text-transform: uppercase;
          }
          #view-ipi-performance .ipi-card-value {
            font-size: 1.42rem;
            font-weight: 700;
            color: #f3f8ff;
          }
          #view-ipi-performance .ipi-card-meta {
            margin-top: 0.3rem;
            font-size: 0.78rem;
            color: #b8c8df;
          }
          #view-ipi-performance .ipi-badge {
            display: inline-block;
            border-radius: 999px;
            padding: 0.13rem 0.52rem;
            border: 1px solid transparent;
            font-weight: 700;
            font-size: 0.75rem;
          }
          #view-ipi-performance .ipi-badge-up {
            color: #59d79b;
            background: rgba(89, 215, 155, 0.15);
            border-color: rgba(89, 215, 155, 0.4);
          }
          #view-ipi-performance .ipi-badge-down {
            color: #ff6c6c;
            background: rgba(255, 108, 108, 0.14);
            border-color: rgba(255, 108, 108, 0.4);
          }
          #view-ipi-performance .ipi-badge-flat {
            color: #f6c666;
            background: rgba(246, 198, 102, 0.15);
            border-color: rgba(246, 198, 102, 0.4);
          }
          #view-ipi-performance .ipi-status-good {
            color: #59d79b;
          }
          #view-ipi-performance .ipi-status-warn {
            color: #f6c666;
          }
          #view-ipi-performance .ipi-status-bad {
            color: #ff6c6c;
          }
          #view-ipi-performance .ipi-bar {
            height: 8px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.12);
            overflow: hidden;
            margin-top: 0.45rem;
          }
          #view-ipi-performance .ipi-bar-fill {
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(90deg, #ff6b35 0%, #ff9f43 100%);
            width: 0%;
            transition: width 0.2s ease;
          }
          #view-ipi-performance .ipi-table-wrap {
            overflow: auto;
            max-height: 70vh;
            margin-bottom: 0.85rem;
          }
          #view-ipi-performance .ipi-table-wrap thead th {
            position: sticky;
            top: 0;
            z-index: 1;
            background: #10203b;
          }
          #view-ipi-performance .ipi-week-ref {
            font-size: 0.82rem;
            color: #b8c8df;
          }
          @media (max-width: 1050px) {
            #view-ipi-performance .ipi-cards {
              grid-template-columns: repeat(2, minmax(0, 1fr));
            }
          }
          @media (max-width: 640px) {
            #view-ipi-performance .ipi-cards {
              grid-template-columns: 1fr;
            }
          }

#view-aging-inventory {
            background: #0a1628;
            border: 1px solid rgba(255, 107, 53, 0.26);
          }
          #view-aging-inventory h2 {
            color: #ff6b35;
          }
          #view-aging-inventory .ag-sub {
            color: #9db3d7;
            margin-bottom: 0.9rem;
            font-size: 0.86rem;
          }
          #view-aging-inventory .ag-cards {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 0.75rem;
            margin-bottom: 0.95rem;
          }
          #view-aging-inventory .ag-card {
            background: #0d1f3c;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 12px;
            padding: 0.72rem 0.82rem;
          }
          #view-aging-inventory .ag-card-label {
            color: #aac1e7;
            text-transform: uppercase;
            letter-spacing: 0.02em;
            font-size: 0.74rem;
            margin-bottom: 0.36rem;
          }
          #view-aging-inventory .ag-card-value {
            color: #f3f8ff;
            font-size: 1.42rem;
            font-weight: 700;
          }
          #view-aging-inventory .ag-card-value-red {
            color: #ff7b7b;
          }
          #view-aging-inventory .ag-card-value-orange {
            color: #f6c666;
          }
          #view-aging-inventory .ag-surcharge-wrap {
            background: #0d1f3c;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 12px;
            padding: 0.75rem 0.8rem;
            margin-bottom: 0.95rem;
          }
          #view-aging-inventory .ag-surcharge-title {
            color: #d7e6ff;
            font-size: 0.82rem;
            text-transform: uppercase;
            letter-spacing: 0.02em;
            margin-bottom: 0.5rem;
          }
          #view-aging-inventory .ag-surcharge-bar {
            height: 32px;
            border-radius: 10px;
            overflow: hidden;
            display: flex;
            background: rgba(255, 255, 255, 0.06);
          }
          #view-aging-inventory .ag-surcharge-seg {
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 0.72rem;
            font-weight: 700;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding: 0 0.35rem;
            min-width: 0;
          }
          #view-aging-inventory .ag-surcharge-181 { background: #fdba74; color: #111827; }
          #view-aging-inventory .ag-surcharge-211 { background: #fb923c; }
          #view-aging-inventory .ag-surcharge-241 { background: #f97316; }
          #view-aging-inventory .ag-surcharge-271 { background: #ef4444; }
          #view-aging-inventory .ag-surcharge-366 { background: #991b1b; }
          #view-aging-inventory .ag-warning {
            margin-bottom: 0.95rem;
            border: 1px solid rgba(239, 68, 68, 0.45);
            background: rgba(239, 68, 68, 0.13);
            color: #ffc2c2;
            border-radius: 10px;
            padding: 0.65rem 0.75rem;
            font-size: 0.9rem;
            font-weight: 600;
          }
          #view-aging-inventory .ag-controls {
            margin-bottom: 0.8rem;
          }
          #view-aging-inventory .ag-search {
            width: 100%;
            max-width: 420px;
            background: #0d1f3c;
            border: 1px solid rgba(255, 255, 255, 0.18);
            color: #f3f8ff;
            border-radius: 10px;
            font-size: 0.9rem;
            padding: 0.58rem 0.72rem;
          }
          #view-aging-inventory .ag-search:focus {
            outline: none;
            border-color: #ff6b35;
            box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.22);
          }
          #view-aging-inventory .ag-table-wrap {
            max-height: 700px;
            overflow-y: auto;
            overflow-x: auto;
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: 12px;
          }
          #view-aging-inventory table {
            width: 100%;
            border-collapse: collapse;
            min-width: 1100px;
          }
          #view-aging-inventory th {
            position: sticky;
            top: 0;
            z-index: 2;
            background: #0d1f3c;
            border-bottom: 1px solid rgba(255, 255, 255, 0.14);
            color: #dbe7fb;
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.02em;
            padding: 0.58rem 0.55rem;
            text-align: left;
          }
          #view-aging-inventory td {
            padding: 0.56rem 0.55rem;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            vertical-align: middle;
            font-size: 0.86rem;
          }
          #view-aging-inventory tbody tr:hover {
            background: rgba(255, 255, 255, 0.05);
          }
          #view-aging-inventory .ag-sort {
            all: unset;
            cursor: pointer;
            color: inherit;
            font-weight: 700;
            font-size: 0.74rem;
            letter-spacing: 0.02em;
            text-transform: uppercase;
          }
          #view-aging-inventory .ag-sort.is-asc::after {
            content: " ▲";
            color: #ffb88e;
          }
          #view-aging-inventory .ag-sort.is-desc::after {
            content: " ▼";
            color: #ffb88e;
          }
          #view-fba-inventory,
          #view-restock-planner {
            background: #ffffff;
            color: #0f172a;
            font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
          }
          #view-fba-inventory h2,
          #view-fba-inventory h3,
          #view-restock-planner h2 {
            color: #0f172a;
          }
          #view-fba-inventory table,
          #view-restock-planner table {
            width: 100%;
            border-collapse: collapse;
            background: #ffffff;
            border: 1px solid #dbeafe;
            border-radius: 14px;
            overflow: hidden;
          }
          #view-fba-inventory th,
          #view-restock-planner th {
            position: sticky;
            top: 0;
            z-index: 2;
            background: #eff6ff;
            border-bottom: 1px solid #bfdbfe;
            color: #1d4ed8;
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.02em;
            padding: 0.58rem 0.55rem;
            text-align: left;
          }
          #view-fba-inventory td,
          #view-restock-planner td {
            padding: 0.6rem 0.55rem;
            border-top: 1px solid #e5e7eb;
            vertical-align: middle;
            font-size: 0.88rem;
            color: #0f172a;
            background: #ffffff;
          }
          #view-fba-inventory tbody tr:hover,
          #view-restock-planner tbody tr:hover {
            background: #f8fbff;
          }
          #view-fba-inventory tbody tr:hover td,
          #view-restock-planner tbody tr:hover td {
            background: #f8fbff;
          }
          #view-fba-inventory .fba-overview-sort,
          #view-restock-planner .fba-overview-sort {
            all: unset;
            cursor: pointer;
            color: inherit;
            font-weight: 700;
            font-size: 0.74rem;
            letter-spacing: 0.02em;
            text-transform: uppercase;
          }
          #view-fba-inventory .fba-overview-sort.is-asc::after,
          #view-restock-planner .fba-overview-sort.is-asc::after {
            content: " ▲";
            color: #2563eb;
          }
          #view-fba-inventory .fba-overview-sort.is-desc::after,
          #view-restock-planner .fba-overview-sort.is-desc::after {
            content: " ▼";
            color: #2563eb;
          }
          #view-fba-inventory h3 {
            margin-top: 1rem;
          }
          #view-aging-inventory .ag-muted {
            color: #9bb0d3;
            font-size: 0.74rem;
          }
          #view-aging-inventory .ag-age-wrap {
            display: flex;
            align-items: center;
            gap: 0.48rem;
          }
          #view-aging-inventory .ag-age-bar {
            flex: 1;
            display: flex;
            align-items: stretch;
            height: 20px;
            border-radius: 999px;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.08);
            min-width: 220px;
          }
          #view-aging-inventory .ag-age-seg {
            min-width: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.67rem;
            font-weight: 700;
            color: #fff;
            white-space: nowrap;
          }
          #view-aging-inventory .ag-age-seg.low-contrast {
            color: #111827;
          }
          #view-aging-inventory .ag-age-seg.is-tiny {
            font-size: 0;
            padding: 0;
          }
          #view-aging-inventory .ag-age-0 { background: #22c55e; }
          #view-aging-inventory .ag-age-1 { background: #eab308; color: #111827; }
          #view-aging-inventory .ag-age-2 { background: #f97316; }
          #view-aging-inventory .ag-age-3 { background: #ef4444; }
          #view-aging-inventory .ag-age-4 { background: #991b1b; }
          #view-aging-inventory .ag-total {
            color: #b9cbea;
            font-size: 0.74rem;
            min-width: 70px;
            text-align: right;
          }
          #view-aging-inventory .ag-row-91 { border-left: 4px solid #eab308; }
          #view-aging-inventory .ag-row-181 { border-left: 4px solid #f97316; }
          #view-aging-inventory .ag-row-271 { border-left: 4px solid #ef4444; }
          #view-aging-inventory .ag-row-366 {
            border-left: 4px solid #991b1b;
            background: rgba(153, 27, 27, 0.15);
          }
          #view-aging-inventory .ag-empty {
            color: #a7bddf;
            text-align: center;
            padding: 1rem 0.6rem;
          }
          @media (max-width: 1100px) {
            #view-aging-inventory .ag-cards {
              grid-template-columns: repeat(2, minmax(0, 1fr));
            }
          }
          @media (max-width: 680px) {
            #view-aging-inventory .ag-cards {
              grid-template-columns: 1fr;
            }
            #view-aging-inventory .ag-search {
              max-width: none;
            }
          }

#view-product-fees {
              background: #0a1628;
            }
            #view-product-fees .fba-fee-cards {
              display: grid;
              grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
              gap: 12px;
              margin: 0 0 10px;
            }
            #view-product-fees .fba-fee-card {
              background: #0d1f3c;
              border: 1px solid rgba(255, 255, 255, 0.12);
              border-radius: 10px;
              padding: 12px;
            }
            #view-product-fees .fba-fee-card-label {
              color: rgba(224, 224, 224, 0.75);
              font-size: 12px;
              text-transform: uppercase;
              letter-spacing: 0.04em;
              margin-bottom: 6px;
            }
            #view-product-fees .fba-fee-card-value {
              color: #ff6b35;
              font-size: 24px;
              font-weight: 700;
              line-height: 1.1;
            }
            #view-product-fees .fba-fee-meta {
              color: rgba(224, 224, 224, 0.82);
              font-size: 13px;
              margin: 6px 0 10px;
            }
            #view-product-fees .fba-fee-tier-title {
              color: rgba(224, 224, 224, 0.86);
              font-size: 12px;
              text-transform: uppercase;
              letter-spacing: 0.04em;
              margin: 8px 0 6px;
            }
            #view-product-fees .fba-fee-mode-toggle {
              display: flex;
              gap: 0.6rem;
              margin: 0 0 10px;
              flex-wrap: wrap;
            }
            #view-product-fees .fba-fee-mode-btn {
              border: 1px solid rgba(255, 255, 255, 0.14);
              background: rgba(255, 255, 255, 0.04);
              color: var(--text);
              border-radius: 999px;
              padding: 0.5rem 0.9rem;
              font-size: 0.86rem;
              cursor: pointer;
              transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
            }
            #view-product-fees .fba-fee-mode-btn.is-active {
              background: rgba(96, 165, 250, 0.16);
              border-color: rgba(96, 165, 250, 0.55);
              color: #dbeafe;
            }
            #view-product-fees .fee-tier-summary-collapse {
              border: 1px solid rgba(255, 255, 255, 0.14);
              border-radius: 10px;
              background: #0f2744;
              margin-bottom: 10px;
              overflow: hidden;
            }
            #view-product-fees .fee-tier-summary-collapse > summary {
              list-style: none;
              cursor: pointer;
              padding: 9px 10px;
              font-size: 13px;
              font-weight: 600;
              color: rgba(224, 224, 224, 0.92);
              background: rgba(10, 22, 40, 0.45);
            }
            #view-product-fees .fee-tier-summary-collapse > summary::-webkit-details-marker {
              display: none;
            }
            #view-product-fees .fee-tier-summary-collapse > summary::before {
              content: '▸';
              display: inline-block;
              margin-right: 8px;
              color: rgba(224, 224, 224, 0.72);
            }
            #view-product-fees .fee-tier-summary-collapse[open] > summary::before {
              content: '▾';
            }
            #view-product-fees .fba-fee-tier-wrap {
              border: 1px solid rgba(255, 255, 255, 0.14);
              border-radius: 10px;
              overflow: hidden;
              background: #0f2744;
              margin-bottom: 10px;
            }
            #view-product-fees .fba-fee-tier-wrap table {
              width: 100%;
              border-collapse: collapse;
              font-size: 12px;
            }
            #view-product-fees .fba-fee-tier-wrap thead th {
              background: rgba(10, 22, 40, 0.5);
              border-bottom: 1px solid rgba(255, 255, 255, 0.16);
              text-align: left;
              padding: 7px 8px;
              white-space: nowrap;
            }
            #view-product-fees .fba-fee-tier-wrap tbody td {
              padding: 7px 8px;
              border-bottom: 1px solid rgba(255, 255, 255, 0.08);
              vertical-align: top;
            }
            #view-product-fees .fba-fee-tier-wrap tbody tr:last-child td {
              border-bottom: none;
            }
            #view-product-fees .fba-fee-tier-fee {
              font-variant-numeric: tabular-nums;
            }
            #view-product-fees .fba-fee-tier-anomaly {
              color: #f87171;
              font-size: 11px;
              margin-left: 6px;
              white-space: nowrap;
            }
            #view-product-fees .fba-fee-tier-example {
              color: rgba(224, 224, 224, 0.85);
            }
            #view-product-fees .size-tier-short {
              color: rgba(224, 224, 224, 0.9);
              font-size: 12px;
            }
            #view-product-fees .fba-fee-controls {
              margin-bottom: 10px;
            }
            #view-product-fees .fba-fee-search {
              width: min(460px, 100%);
              border: 1px solid rgba(255, 255, 255, 0.22);
              border-radius: 8px;
              background: #0d1f3c;
              color: #e0e0e0;
              padding: 8px 10px;
              font-size: 13px;
            }
            #view-product-fees .fba-fee-search:focus {
              outline: 2px solid rgba(255, 107, 53, 0.35);
              border-color: #ff6b35;
            }
            #view-product-fees .fba-fee-table-wrap {
              border: 1px solid rgba(255, 255, 255, 0.12);
              border-radius: 10px;
              overflow-y: auto;
              max-height: 600px;
              background: #0d1f3c;
            }
            #view-product-fees table {
              width: 100%;
              border-collapse: collapse;
              font-size: 13px;
            }
            #view-product-fees thead th {
              position: sticky;
              top: 0;
              z-index: 1;
              background: #0d1f3c;
              border-bottom: 1px solid rgba(255, 255, 255, 0.2);
              text-align: left;
              padding: 8px;
              white-space: nowrap;
            }
            #view-product-fees tbody td {
              padding: 8px;
              border-bottom: 1px solid rgba(255, 255, 255, 0.08);
              vertical-align: top;
            }
            #view-product-fees tbody tr:hover td {
              background: rgba(255, 255, 255, 0.04);
            }
            #view-product-fees tbody tr.flag-row-warn td:first-child { border-left: 3px solid #f59e0b; }
            #view-product-fees tbody tr.flag-row-alert td:first-child { border-left: 3px solid #ef4444; }
            #view-product-fees .fba-sort {
              display: inline-flex;
              align-items: center;
              gap: 6px;
              border: none;
              background: transparent;
              color: #e0e0e0;
              font-weight: 600;
              cursor: pointer;
              padding: 0;
              font-size: 12px;
              text-transform: uppercase;
              letter-spacing: 0.03em;
            }
            #view-product-fees .fba-sort::after {
              content: '';
              border-left: 4px solid transparent;
              border-right: 4px solid transparent;
              border-top: 6px solid rgba(224, 224, 224, 0.45);
              transform: translateY(1px);
            }
            #view-product-fees .fba-sort.is-asc::after {
              border-top: none;
              border-bottom: 6px solid #ff6b35;
              transform: translateY(-1px);
            }
            #view-product-fees .fba-sort.is-desc::after {
              border-top: 6px solid #ff6b35;
              border-bottom: none;
            }
            #view-product-fees .fee-pct {
              font-weight: 700;
            }
            #view-product-fees .fee-pct.fee-green { color: #00b894; }
            #view-product-fees .fee-pct.fee-yellow { color: #f4d35e; }
            #view-product-fees .fee-pct.fee-red { color: #ff6b6b; }
            #view-product-fees .actual-fee-sub {
              display: block;
              color: rgba(224, 224, 224, 0.65);
              font-size: 11px;
              margin-top: 3px;
            }
            #view-product-fees .actual-fee-empty {
              color: rgba(224, 224, 224, 0.65);
            }
            #view-product-fees .delta-flag {
              font-weight: 700;
              font-size: 16px;
              line-height: 1;
              display: inline-block;
            }
            #view-product-fees .delta-flag.delta-ok { color: #00b894; }
            #view-product-fees .delta-flag.delta-warn { color: #f4d35e; }
            #view-product-fees .delta-flag.delta-alert { color: #ff6b6b; }
            #view-product-fees .delta-flag.delta-none { color: rgba(224, 224, 224, 0.6); }
            #view-product-fees .flag-icons {
              display: inline-flex;
              gap: 5px;
              font-size: 14px;
              line-height: 1;
            }
            #view-product-fees .flag-icon-avg { color: #60a5fa; }
            #view-product-fees .flag-icon-tier { color: #f59e0b; }
            #view-product-fees .flag-icon-est.flag-icon-warn { color: #facc15; }
            #view-product-fees .flag-icon-est.flag-icon-alert { color: #ef4444; }
            #view-product-fees .change-count {
              font-weight: 700;
            }
            #view-product-fees .change-count.change-count-low { color: #4ade80; }
            #view-product-fees .change-count.change-count-warn { color: #fb923c; }
            #view-product-fees .change-count.change-count-alert { color: #f87171; }
            #view-product-fees .notes-col {
              max-width: 250px;
              white-space: normal;
              word-break: break-word;
              color: rgba(224, 224, 224, 0.74);
              font-size: 0.8em;
              line-height: 1.35;
            }
            #view-product-fees .fba-fee-empty {
              color: rgba(224, 224, 224, 0.72);
              text-align: center;
              padding: 16px;
            }
            #view-product-fees .multi-sku-alert-banner {
              background: #1a0a0a;
              border: 1px solid #f87171;
              border-radius: 8px;
              padding: 16px;
              margin-bottom: 16px;
            }
            #view-product-fees .multi-sku-alert-banner-header {
              display: flex;
              justify-content: space-between;
              align-items: center;
              margin-bottom: 8px;
              gap: 10px;
              flex-wrap: wrap;
            }
            #view-product-fees .multi-sku-alert-banner-title {
              color: #f87171;
              margin: 0;
              font-size: 18px;
            }
            #view-product-fees .multi-sku-alert-banner-impact {
              color: #ff6b35;
              font-size: 1.2em;
              font-weight: 700;
            }
            #view-product-fees .multi-sku-alert-banner-copy {
              color: #9ca3af;
              font-size: 0.85em;
              margin: 0 0 12px 0;
            }
            #view-product-fees .multi-sku-alert-list {
              display: grid;
              gap: 8px;
            }
            #view-product-fees .multi-sku-card {
              background: #0d1f3c;
              border: 1px solid rgba(248, 113, 113, 0.25);
              border-left-width: 4px;
              border-radius: 8px;
              overflow: hidden;
            }
            #view-product-fees .multi-sku-card.multi-sku-active {
              border-left-color: #f87171;
            }
            #view-product-fees .multi-sku-card.multi-sku-historical {
              border-left-color: #facc15;
              border-color: rgba(250, 204, 21, 0.25);
            }
            #view-product-fees .multi-sku-card.is-hidden {
              display: none;
            }
            #view-product-fees .multi-sku-summary {
              display: flex;
              justify-content: space-between;
              align-items: flex-start;
              gap: 10px;
              cursor: pointer;
              padding: 10px;
              min-height: 76px;
              box-sizing: border-box;
              list-style: none;
            }
            #view-product-fees .multi-sku-summary::-webkit-details-marker {
              display: none;
            }
            #view-product-fees .multi-sku-summary-left {
              min-width: 0;
            }
            #view-product-fees .multi-sku-product {
              color: #e5e7eb;
              font-weight: 700;
              font-size: 13px;
              margin-bottom: 2px;
              white-space: nowrap;
              overflow: hidden;
              text-overflow: ellipsis;
              max-width: 540px;
            }
            #view-product-fees .multi-sku-asin {
              color: #9ca3af;
              font-family: monospace;
              font-size: 11px;
            }
            #view-product-fees .multi-sku-badge {
              margin-top: 4px;
              display: inline-block;
              font-size: 11px;
              font-weight: 700;
            }
            #view-product-fees .multi-sku-right {
              text-align: right;
              white-space: nowrap;
            }
            #view-product-fees .multi-sku-impact {
              color: #ff6b35;
              font-size: 12px;
              font-weight: 700;
            }
            #view-product-fees .multi-sku-caret {
              color: rgba(224, 224, 224, 0.72);
              font-size: 11px;
              margin-top: 4px;
            }
            #view-product-fees .multi-sku-card[open] .multi-sku-caret::before {
              content: 'Hide details';
            }
            #view-product-fees .multi-sku-card:not([open]) .multi-sku-caret::before {
              content: 'Show details';
            }
            #view-product-fees .multi-sku-rows {
              border-top: 1px solid rgba(255, 255, 255, 0.08);
              padding: 8px 10px 10px;
            }
            #view-product-fees .multi-sku-rows table {
              width: 100%;
              border-collapse: collapse;
              font-size: 11px;
            }
            #view-product-fees .multi-sku-rows th,
            #view-product-fees .multi-sku-rows td {
              padding: 4px 4px 4px 0;
              border-bottom: 1px solid rgba(255, 255, 255, 0.06);
              text-align: left;
              white-space: nowrap;
            }
            #view-product-fees .multi-sku-rows tr:last-child td {
              border-bottom: none;
            }
            #view-product-fees .multi-sku-fee-high {
              color: #f87171;
              font-weight: 700;
            }
            #view-product-fees .multi-sku-fee-low {
              color: #4ade80;
              font-weight: 700;
            }
            #view-product-fees .multi-sku-fee-neutral {
              color: #e5e7eb;
              font-weight: 600;
            }
            #view-product-fees .multi-sku-toggle {
              margin-top: 8px;
              border: 1px solid rgba(255, 255, 255, 0.18);
              border-radius: 6px;
              background: rgba(10, 22, 40, 0.5);
              color: #e5e7eb;
              font-size: 12px;
              padding: 6px 10px;
              cursor: pointer;
            }
            #view-product-fees .multi-sku-empty {
              color: #9ca3af;
              font-size: 12px;
              padding: 2px 0;
            }

/* Template selector tabs */
            #view-case-templates .ct-tabs {
              display: flex;
              gap: 0.5rem;
              margin-bottom: 1.25rem;
              flex-wrap: wrap;
            }
            #view-case-templates .ct-tab {
              padding: 7px 20px;
              border-radius: 8px;
              border: 1px solid transparent;
              background: transparent;
              color: var(--muted);
              font-size: 13px;
              font-weight: 600;
              cursor: pointer;
              transition: all 0.15s ease;
              font-family: inherit;
            }
            #view-case-templates .ct-tab:hover:not(:disabled) {
              color: var(--text);
              background: rgba(255,255,255,0.05);
            }
            #view-case-templates .ct-tab.active {
              background: var(--accent);
              border-color: rgba(255,255,255,0.18);
              color: var(--text);
            }
            #view-case-templates .ct-tab:disabled {
              opacity: 0.38;
              cursor: not-allowed;
            }
            /* ASIN search dropdown */
            #view-case-templates .ct-asin-wrap {
              position: relative;
              margin-bottom: 1.1rem;
            }
            #view-case-templates .ct-asin-wrap label {
              display: block;
              font-size: 0.84rem;
              color: var(--muted);
              margin-bottom: 0.35rem;
            }
            #view-case-templates #ctAsinSearch {
              width: 100%;
              border-radius: 10px;
              border: 1px solid rgba(255,255,255,0.16);
              background: rgba(255,255,255,0.03);
              color: var(--text);
              padding: 0.75rem 0.85rem;
              font: inherit;
              box-sizing: border-box;
            }
            #view-case-templates #ctAsinSearch:focus {
              outline: none;
              border-color: var(--accent);
            }
            #view-case-templates #ctAsinDropdown {
              display: none;
              position: absolute;
              top: calc(100% + 4px);
              left: 0; right: 0;
              background: #16213e;
              border: 1px solid rgba(255,255,255,0.14);
              border-radius: 10px;
              max-height: 300px;
              overflow-y: auto;
              z-index: 200;
              box-shadow: 0 8px 32px rgba(0,0,0,0.5);
            }
            #view-case-templates #ctAsinDropdown.open { display: block; }
            #view-case-templates .ct-dropdown-item {
              padding: 0.65rem 0.9rem;
              cursor: pointer;
              font-size: 0.85rem;
              color: var(--text);
              border-bottom: 1px solid rgba(255,255,255,0.05);
              transition: background 0.1s;
              display: flex;
              align-items: center;
              gap: 0.5rem;
              flex-wrap: wrap;
            }
            #view-case-templates .ct-dropdown-item:last-child { border-bottom: none; }
            #view-case-templates .ct-dropdown-item:hover { background: rgba(255,255,255,0.07); }
            #view-case-templates .ct-rec-badge {
              display: inline-block;
              background: rgba(243,156,18,0.18);
              color: #f3c018;
              border: 1px solid rgba(243,156,18,0.35);
              border-radius: 20px;
              padding: 1px 8px;
              font-size: 0.73rem;
              font-weight: 700;
              white-space: nowrap;
            }
            #view-case-templates .ct-dropdown-empty {
              padding: 0.75rem 0.9rem;
              color: var(--muted);
              font-size: 0.85rem;
            }
            /* Fields */
            #view-case-templates .case-template-grid {
              display: grid;
              grid-template-columns: repeat(2, minmax(0, 1fr));
              gap: 0.9rem 1rem;
            }
            #view-case-templates .case-template-field {
              display: flex;
              flex-direction: column;
              gap: 0.35rem;
            }
            #view-case-templates .case-template-field label {
              font-size: 0.84rem;
              color: var(--muted);
              display: flex;
              align-items: center;
              gap: 0.4rem;
            }
            #view-case-templates .ct-edit-link {
              font-size: 0.73rem;
              color: var(--accent);
              cursor: pointer;
              text-decoration: none;
              margin-left: auto;
              opacity: 0.7;
            }
            #view-case-templates .ct-edit-link:hover { opacity: 1; }
            #view-case-templates input,
            #view-case-templates textarea {
              width: 100%;
              border-radius: 10px;
              border: 1px solid rgba(255, 255, 255, 0.12);
              background: rgba(255, 255, 255, 0.03);
              color: var(--text);
              padding: 0.75rem 0.85rem;
              font: inherit;
              box-sizing: border-box;
            }
            #view-case-templates input.ct-autofill {
              background: rgba(0,184,148,0.08);
              border-color: rgba(0,184,148,0.22);
            }
            #view-case-templates input[readonly].ct-autofill {
              cursor: default;
            }
            #view-case-templates textarea {
              min-height: 280px;
              resize: vertical;
              margin-top: 1rem;
            }
            #view-case-templates .ct-fee-summary {
              width: 100%;
              border-radius: 10px;
              border: 1px solid rgba(0,184,148,0.22);
              background: rgba(0,184,148,0.08);
              color: var(--text);
              padding: 0.75rem 0.85rem;
              font: inherit;
              font-size: 0.9rem;
              box-sizing: border-box;
              min-height: 2.8rem;
            }
            #view-case-templates .ct-section-label {
              grid-column: 1 / -1;
              font-size: 0.8rem;
              font-weight: 700;
              text-transform: uppercase;
              letter-spacing: 0.06em;
              color: var(--muted);
              padding-top: 0.4rem;
              border-top: 1px solid rgba(255,255,255,0.07);
              margin-top: 0.2rem;
            }
            #view-case-templates .case-template-actions {
              display: flex;
              gap: 0.75rem;
              margin-top: 1rem;
              flex-wrap: wrap;
            }
            #view-case-templates .case-template-btn {
              border: 1px solid rgba(255, 255, 255, 0.14);
              background: rgba(255, 255, 255, 0.04);
              color: var(--text);
              border-radius: 10px;
              padding: 0.7rem 1rem;
              cursor: pointer;
              font: inherit;
            }
            #view-case-templates .case-template-feedback {
              margin-top: 0.7rem;
              color: var(--muted);
              font-size: 0.84rem;
            }
            @media (max-width: 900px) {
              #view-case-templates .case-template-grid {
                grid-template-columns: 1fr;
              }
            }

#view-brand-channel-share .toggle-btn { transition: background 0.15s, color 0.15s; }
          #view-brand-channel-share .toggle-btn:hover { background: rgba(255,255,255,0.06) !important; }
          #view-brand-channel-share .active-toggle { background: rgba(0,184,148,0.2) !important; color: var(--green) !important; }
          #csSellerTable tbody tr:hover { background: rgba(255,255,255,0.03); }
          #csSellerTable tbody tr td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }

          .intel-seller-link {
            color: #2563eb !important;
          }
          .intel-seller-link:hover {
            color: #1d4ed8 !important;
          }

          #view-account-health,
          #view-authorized-sellers {
            background: #ffffff;
            border-color: var(--border);
          }
          #view-account-health .ah-card,
          #view-account-health .ah-table-wrap,
          #view-account-health .ah-marketplace,
          #view-authorized-sellers .as-details-row td {
            background: #ffffff;
            border-color: var(--border);
          }
          #view-account-health .ah-card-label,
          #view-account-health .ah-last-checked,
          #view-account-health .ah-marketplace summary,
          #view-account-health .ah-table thead th,
          #view-account-health .ah-table th,
          #view-account-health .ah-table td,
          #view-account-health .ah-marketplace-content,
          #view-authorized-sellers .as-sub,
          #view-authorized-sellers .as-breaks-sub,
          #view-authorized-sellers .as-empty {
            color: #475569;
          }
          #view-account-health .ah-table thead th,
          #view-account-health .ah-marketplace summary {
            background: #f8fafc;
            border-color: var(--border);
          }
          #view-account-health .ah-table th,
          #view-account-health .ah-table td {
            border-color: var(--border);
          }
          #view-account-health .ah-badge-error,
          #view-account-health .ah-severity-error,
          #view-account-health .ah-alert-new,
          #view-map-violations .mv-break-status-active,
          #view-authorized-sellers .as-break-status-active,
          #view-authorized-sellers .as-violations-bad {
            color: #b91c1c;
            background: rgba(239, 68, 68, 0.08);
            border-color: rgba(239, 68, 68, 0.24);
          }
          #view-account-health .ah-badge-warning,
          #view-account-health .ah-severity-warning,
          #view-authorized-sellers .as-violations-warn {
            color: #92400e;
            background: rgba(245, 158, 11, 0.1);
            border-color: rgba(245, 158, 11, 0.24);
          }
          #view-account-health .ah-alert-resolved,
          #view-map-violations .mv-break-status-resolved,
          #view-authorized-sellers .as-break-status-resolved,
          #view-authorized-sellers .as-violations-clean {
            color: #166534;
            background: rgba(34, 197, 94, 0.1);
            border-color: rgba(34, 197, 94, 0.24);
          }

          #view-pricing-buybox .map-pricing-tabs,
          #view-authorized-sellers .as-tab,
          #view-reference-changelog .cl-tab,
          #view-reference-changelog .sc-filter-btn,
          #view-case-templates .ct-tab,
          #view-brand-channel-share .toggle-btn {
            background: #ffffff;
            border-color: var(--border);
            color: #64748b;
          }
          #view-pricing-buybox .map-tab,
          #view-authorized-sellers .as-expand-btn,
          #view-pricing-buybox .map-expand-btn,
          #view-case-templates .case-template-btn {
            background: #ffffff;
            border-color: var(--border);
            color: var(--text);
          }
          #view-pricing-buybox .map-tab.active,
          #view-authorized-sellers .as-tab.active,
          #view-reference-changelog .cl-tab.active,
          #view-reference-changelog .sc-filter-btn.active,
          #view-case-templates .ct-tab.active,
          #view-brand-channel-share .active-toggle {
            background: #2563eb !important;
            border-color: #2563eb;
            color: #ffffff !important;
          }
          #view-pricing-buybox .map-search,
          #intelSearch,
          #intelSort,
          #view-case-templates #ctAsinSearch,
          #view-case-templates input,
          #view-case-templates textarea,
          #view-product-fees .multi-sku-select {
            background: #ffffff !important;
            border-color: var(--border) !important;
            color: var(--text) !important;
          }
          #view-pricing-buybox .map-pricing-status,
          #view-pricing-buybox .map-sort,
          #view-case-templates .ct-asin-wrap label,
          #view-case-templates .case-template-field label,
          #view-case-templates .case-template-feedback,
          #view-reference-changelog .cl-detail,
          #view-reference-changelog .cl-asin,
          #view-reference-changelog .sc-muted,
          #view-reference-changelog .sc-asin,
          #view-reference-changelog .sc-table .sc-td-time,
          #view-reference-changelog .sc-table .sc-td-asin,
          #view-reference-changelog .sc-table .sc-td-details {
            color: #64748b;
          }
          #view-pricing-buybox .map-sort:hover,
          #view-case-templates .ct-tab:hover:not(:disabled),
          #view-reference-changelog .cl-tab:hover,
          #view-reference-changelog .sc-filter-btn:hover {
            color: #1d4ed8;
          }
          #view-pricing-buybox .map-details-row td,
          #view-pricing-buybox .map-details-table th,
          #view-pricing-buybox .map-details-table td,
          #view-reference-changelog .cl-table th,
          #view-reference-changelog .cl-table td,
          #view-reference-changelog .sc-table th,
          #view-reference-changelog .sc-table td,
          #csSellerTable tbody tr td {
            border-color: var(--border);
          }
          #view-pricing-buybox .map-details-row td,
          #view-reference-changelog .sc-summary,
          #view-reference-changelog .cl-table .cl-group-row td,
          #view-map-violations .mv-seller-row:hover,
          #csSellerTable tbody tr:hover {
            background: #f8fafc;
          }
          #view-reference-changelog .sc-table th,
          #view-reference-changelog .cl-table thead th {
            background: #f8fafc;
            color: #334155;
          }
          #view-reference-changelog .sc-filter-count {
            background: #dbeafe;
            color: #1d4ed8;
          }
          #view-reference-changelog .sc-filter-btn.active .sc-filter-count {
            background: rgba(255, 255, 255, 0.2);
            color: #ffffff;
          }

          #view-map-violations .mv-seller-count,
          #view-map-violations .mv-gap,
          #view-map-violations .mv-price-bad,
          #view-authorized-sellers .as-prod-map-gap {
            color: #b91c1c;
          }
          #view-map-violations .mv-seller-count {
            background: rgba(239, 68, 68, 0.08);
          }
          #view-map-violations .mv-empty {
            color: #166534;
          }
          #view-map-violations .mv-fba,
          #view-reference-changelog .sc-fba,
          #view-authorized-sellers .as-fba {
            color: #166534;
            background: rgba(34, 197, 94, 0.1);
          }
          #view-map-violations .mv-fbm,
          #view-reference-changelog .sc-fbm,
          #view-authorized-sellers .as-fbm {
            color: #475569;
            background: #e2e8f0;
          }
          #view-map-violations .mv-bb {
            color: #92400e;
            background: rgba(245, 158, 11, 0.12);
          }

          #view-authorized-sellers h2,
          #view-authorized-sellers .as-breaks h3 {
            color: var(--text);
          }
          #view-authorized-sellers .as-breaks {
            border-top-color: var(--border);
          }
          #view-authorized-sellers .as-status-clean { background: #22c55e; }
          #view-authorized-sellers .as-status-warn { background: #f59e0b; }
          #view-authorized-sellers .as-status-bad { background: #ef4444; }

          #view-case-templates #ctAsinDropdown {
            background: #ffffff;
            border-color: var(--border);
            box-shadow: var(--shadow-soft);
          }
          #view-case-templates .ct-dropdown-item {
            border-bottom-color: var(--border);
          }
          #view-case-templates .ct-dropdown-item:hover {
            background: #eff6ff;
          }
          #view-case-templates .ct-rec-badge {
            background: #eff6ff;
            color: #2563eb;
            border-color: #bfdbfe;
          }
          #view-case-templates input.ct-autofill,
          #view-case-templates .ct-fee-summary {
            background: #eff6ff;
            border-color: #bfdbfe;
          }
          #view-case-templates .ct-section-label {
            border-top-color: var(--border);
          }
