/* ═══════════════════════════════════════════════════════════════
   ServiceNow Branded Dashboard - Dark Theme
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
    --bg-darkest:   #181826;
    --bg-dark:      #1A1A2E;
    --bg-panel:     #021E2F;
    --surface:      #032D42;
    --surface-2:    #043B57;
    --surface-3:    #054A6E;
    --purple:       #4F52BD;
    --deep-purple:  #302F4B;
    --green:        #62D84E;
    --green-hover:  #4EC43C;
    --green-dark:   #3AAE2A;
    --danger:       #FF6B6B;
    --warning:      #F59E0B;
    --red-accent:   #FF0000;
    --text-primary: #FFFFFF;
    --text-body:    #E0E0E0;
    --text-muted:   rgba(255,255,255,0.55);
    --text-faint:   rgba(255,255,255,0.30);
    --border:       rgba(255,255,255,0.10);
    --shadow-md:    0 2px 8px rgba(0,0,0,0.35);
    --shadow-lg:    0 4px 16px rgba(0,0,0,0.40);
    --radius-card:  12px;
    --radius-input: 8px;
    --radius-pill:  999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg-panel);
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ── Navigation Tabs ────────────────────────────────────────────── */

.nav-tabs {
    background: var(--bg-dark);
    border-bottom: 1.5px solid var(--border);
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0 24px;
    overflow-x: auto;
    position: relative;
}

.nav-tab {
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    border: none;
    transition: color 0.15s ease;
    white-space: nowrap;
    background: none;
    font-family: inherit;
    position: relative;
}

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

.nav-tab.active {
    color: var(--text-primary);
}

.nav-tab.active::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
}

.nav-tabs-account-name {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: -1px;
    line-height: 1;
}

/* ── Layout ─────────────────────────────────────────────────────── */

.dashboard-content {
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
}

.tab-panel {
    display: none;
}

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

/* ── KPI Row ────────────────────────────────────────────────────── */

.kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-card);
    padding: 18px;
    box-shadow: var(--shadow-md);
    transition: border-color 0.2s ease;
}

.kpi-card:hover {
    border-color: rgba(255,255,255,0.20);
}

.kpi-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.kpi-value.green  { color: var(--green); }
.kpi-value.purple { color: var(--purple); }
.kpi-value.danger { color: var(--danger); }
.kpi-value.warn   { color: var(--warning); }

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

/* ── Cards / Panels ─────────────────────────────────────────────── */

.card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-body {
    padding: 18px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

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

/* ── Tables ─────────────────────────────────────────────────────── */

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

.data-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 10px 12px;
    border-bottom: 1.5px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--surface);
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-body);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.data-table tr:hover td {
    background: rgba(255,255,255,0.03);
}

.data-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ── Account Cards ──────────────────────────────────────────────── */

.rep-section {
    margin-bottom: 32px;
}

.rep-header {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 8px 0 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.account-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-card);
    padding: 16px;
    min-height: 72px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-card:hover {
    border-color: var(--purple);
    background: var(--surface-2);
}

.account-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    text-align: center;
}

/* ── Badges ─────────────────────────────────────────────────────── */

.badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-green  { background: rgba(98,216,78,0.2);  color: #62D84E; }
.badge-yellow { background: rgba(245,158,11,0.2); color: #F59E0B; }
.badge-red    { background: rgba(255,107,107,0.2); color: #FF6B6B; }
.badge-purple { background: rgba(139,92,246,0.2);  color: #C4B5FD; }
.badge-blue   { background: rgba(59,130,246,0.2);  color: #93C5FD; }
.badge-gray   { background: rgba(255,255,255,0.08); color: var(--text-muted); }

/* ── Health Indicator ───────────────────────────────────────────── */

.health-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.health-dot.green  { background: var(--green); }
.health-dot.yellow { background: var(--warning); }
.health-dot.red    { background: var(--danger); }
.health-dot.gray   { background: var(--text-faint); }

/* ── Plotly Chart Containers ────────────────────────────────────── */

.chart-container {
    width: 100%;
    min-height: 320px;
}

/* ── Scrollable table wrapper ───────────────────────────────────── */

.table-scroll {
    max-height: 400px;
    overflow-y: auto;
}

.table-scroll::-webkit-scrollbar { width: 6px; }
.table-scroll::-webkit-scrollbar-track { background: transparent; }
.table-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

/* ── Account Detail Modal ───────────────────────────────────────── */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 200;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 24px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-panel);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 1200px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1.5px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-panel);
    z-index: 10;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.modal-close:hover { color: var(--text-primary); }

.modal-body {
    padding: 24px;
}

/* ── Star Loader ────────────────────────────────────────────────── */

.loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    gap: 16px;
}

.star-loader {
    position: relative;
    width: 32px;
    height: 40px;
}

.star {
    position: absolute;
    font-size: 26px;
    color: var(--purple);
    display: inline-block;
    transform-origin: center;
}

.star-bottom {
    bottom: 0;
    left: 0;
    z-index: 1;
    animation: star-pulse-bottom 1.2s ease-in-out infinite;
}

.star-top {
    top: -4px;
    right: 0;
    z-index: 2;
    animation: star-pulse-top 1.2s ease-in-out infinite;
}

@keyframes star-pulse-bottom {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(0.6) rotate(15deg); opacity: 0.5; }
}

@keyframes star-pulse-top {
    0%, 100% { transform: scale(0.5) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1) rotate(-15deg); opacity: 1; }
}

.loading-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Utility ────────────────────────────────────────────────────── */

.text-green  { color: var(--green); }
.text-yellow { color: var(--warning); }
.text-red    { color: var(--danger); }
.text-purple { color: var(--purple); }
.text-muted  { color: var(--text-muted); }
.fw-600      { font-weight: 600; }
.fw-700      { font-weight: 700; }
.mt-16       { margin-top: 16px; }
.mb-16       { margin-bottom: 16px; }
.mb-24       { margin-bottom: 24px; }

/* ── Account selector ───────────────────────────────────────────── */

.account-select {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-input);
    color: var(--text-body);
    padding: 8px 14px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    min-width: 240px;
}

.account-select:focus {
    border-color: var(--green);
}

.account-select option {
    background: var(--surface);
    color: var(--text-body);
}

/* ── Sparkline Canvas ───────────────────────────────────────────── */

canvas.sparkline {
    display: block;
    cursor: pointer;
}

.license-row:hover canvas.sparkline {
    filter: brightness(1.3);
}

/* ═══════════════════════════════════════════════════════════════
   Command Palette / Quick Search
   ═══════════════════════════════════════════════════════════════ */

.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 300;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
}

.search-overlay.active {
    display: flex;
}

.search-palette {
    background: var(--bg-panel);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.search-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1.5px solid var(--border);
}

.search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-faint);
}

.search-kbd {
    font-size: 10px;
    font-family: inherit;
    font-weight: 700;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    color: var(--text-faint);
    flex-shrink: 0;
}

.search-results {
    overflow-y: auto;
    max-height: calc(100vh - 260px);
    padding: 8px 0;
}

.search-results::-webkit-scrollbar { width: 6px; }
.search-results::-webkit-scrollbar-track { background: transparent; }
.search-results::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

/* Hint state */
.search-hint {
    padding: 24px;
    text-align: center;
}

.search-hint-title {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.search-hint-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.search-example {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 4px 12px;
    font-size: 12px;
    color: var(--text-body);
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.search-example:hover {
    border-color: var(--purple);
}

.search-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Result groups */
.search-group {
    margin-bottom: 4px;
}

.search-group-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 8px 18px 4px;
}

.search-result {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 18px;
    cursor: pointer;
    transition: background 0.1s ease;
}

.search-result:hover {
    background: rgba(255,255,255,0.04);
}

.search-result-alert {
    border-left: 3px solid var(--danger);
}

.search-result-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    margin-top: 2px;
}

.search-result-body {
    flex: 1;
    min-width: 0;
}

.search-result-text {
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-text mark {
    background: rgba(79,82,189,0.35);
    color: var(--text-primary);
    border-radius: 2px;
    padding: 0 1px;
}

.search-result-detail {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   Roadmap Banner
   ═══════════════════════════════════════════════════════════════ */

.roadmap-banner {
    background: var(--deep-purple);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px;
}

.roadmap-banner-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1600px;
    margin: 0 auto;
    font-size: 12px;
    color: var(--text-muted);
}

.roadmap-banner-inner strong {
    color: var(--purple);
    font-weight: 700;
}

/* Account Team */
.account-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.team-member {
    padding: 12px 14px;
    background: rgba(79,82,189,0.07);
    border: 1px solid rgba(79,82,189,0.15);
    border-radius: 8px;
}

.team-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.team-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
}


/* ── Reference IDs Bar ──────────────────────────────────────────── */

.ref-ids-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
}

.ref-id {
    font-size: 11px;
    font-family: 'Source Sans 3', monospace;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}


/* ── Tech Win Badges ───────────────────────────────────────────── */

.badge-tw-complete {
    background: rgba(98,216,78,0.15);
    color: var(--green);
    border: 1px solid rgba(98,216,78,0.30);
}

.badge-tw-progress {
    background: rgba(245,158,11,0.15);
    color: var(--warning);
    border: 1px solid rgba(245,158,11,0.30);
}

.badge-tw-none {
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.badge-tw-cancelled {
    background: rgba(255,107,107,0.12);
    color: var(--danger);
    border: 1px solid rgba(255,107,107,0.25);
}

.tw-date {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}


/* ── Sentiment Dot ─────────────────────────────────────────────── */

.sentiment-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    vertical-align: middle;
}

.sentiment-positive { background: var(--green); box-shadow: 0 0 4px rgba(98,216,78,0.4); }
.sentiment-negative { background: var(--danger); box-shadow: 0 0 4px rgba(255,107,107,0.4); }
.sentiment-neutral  { background: #6B7280; }
.sentiment-none     { background: rgba(255,255,255,0.15); }


/* ── Deal Row Hover ────────────────────────────────────────────── */

.deal-row:hover {
    background: rgba(79,82,189,0.10);
}


/* ── Opportunity Detail ────────────────────────────────────────── */

.opty-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-body);
}

.opty-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tech Win section */
.tw-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-body);
}

.tw-overview-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tw-label {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tw-notes-timeline {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.tw-notes-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.tw-notes-updated {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
}

.tw-note-group {
    padding: 10px 0 10px 16px;
    border-left: 2px solid var(--purple);
    margin-bottom: 12px;
}

.tw-note-entry {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tw-note-entry:last-child {
    border-bottom: none;
}

.tw-note-seq {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(79,82,189,0.15);
    color: var(--purple);
    font-size: 11px;
    font-weight: 600;
    margin-top: 1px;
}

.tw-note-text {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.6;
    white-space: pre-wrap;
    flex: 1;
}

.tw-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 0;
}

/* Opportunity notes sections */
.opty-summary-card {
    background: rgba(79,82,189,0.08);
    border: 1px solid rgba(79,82,189,0.20);
    border-radius: var(--radius-card);
    padding: 16px;
    margin-bottom: 16px;
}

.opty-summary-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--purple);
    margin-bottom: 8px;
}

.opty-summary-text {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.7;
    white-space: pre-wrap;
}

.opty-nba-card {
    background: rgba(98,216,78,0.06);
    border-color: rgba(98,216,78,0.18);
}

.opty-nba-card .opty-summary-label {
    color: var(--green);
}

.opty-notes-section {
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

.opty-notes-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 8px;
}

.opty-notes-date {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 11px;
}

.opty-notes-text {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.7;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

.opty-notes-timeline {
    max-height: 500px;
    overflow-y: auto;
    padding-left: 4px;
}

.opty-timeline-card {
    padding: 12px 14px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-left: 3px solid var(--purple);
    border-radius: var(--radius-input);
}

.opty-timeline-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--purple);
    margin-bottom: 6px;
}

.opty-timeline-text {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.7;
    white-space: pre-wrap;
}



.detail-expansion-row td {
    background: var(--surface-2);
    padding: 0;
    border-bottom: 2px solid var(--border);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
}

.detail-expansion-row:hover td {
    background: var(--surface-2);
}

.detail-expansion-inner {
    padding: 20px 24px;
    max-width: calc(100vw - 120px);
    overflow: hidden;
}

/* ── SKU Entitlement Expansion ──────────────────────────────────── */

.sku-expandable { cursor: pointer; }

.sku-chevron {
    display: inline-block;
    font-size: 16px;
    color: var(--text-muted);
    transition: transform 0.18s ease;
    line-height: 1;
    user-select: none;
}
.sku-chevron.open { transform: rotate(90deg); color: var(--text-primary); }
.sku-chevron-empty { opacity: 0; pointer-events: none; }

.sku-ent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 24px;
    margin-bottom: 12px;
    min-width: 0;
}
.sku-ent-grid.single-col {
    grid-template-columns: 1fr;
}

.sku-ent-item {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.5;
    padding: 2px 0 2px 14px;
    position: relative;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}
.sku-ent-item::before {
    content: '•';
    color: var(--text-muted);
    position: absolute;
    left: 0;
    top: 2px;
}

.btn-sku-details {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.btn-sku-details:hover { color: var(--text-primary); border-color: var(--text-muted); }

.sku-legalese-text {
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-body);
}
.sku-legalese-text p:last-child { margin-bottom: 0; }

.detail-chart-container {
    width: 100%;
    min-height: 280px;
}

.acct-filter-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.acct-filter-btn {
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    padding: 4px 14px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.acct-filter-btn:hover {
    color: var(--text-body);
    border-color: rgba(255,255,255,0.25);
}

.acct-filter-btn.active {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
}
