/* Global CSS Variables */
html,
body {
    text-align: left;
    font-size: var(--font-size-sm);
    color: var(--color-white);
    font-family: var(--font-work-sans);
}

body {
    background-image: url('https://files.supernova-analytics.com/sn-app-icons/Profile/Page-Background-dark.png');
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    background-attachment: fixed;
    /* Optional: locks background while content scrolls */
}


/* Make the container responsive with a grid instead of absolute positioning */
/* Container: columns only; rows are implicit */
.widget-container {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 136px;
    grid-auto-flow: dense;
    position: relative;
    width: calc(100% - 112px);
    top: 72px;
    left: 90px;
    padding-bottom: 40px;
}


/* Button Content Layout */
.button-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Icon Sizing */
.icon-add {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* Text Styling */
.button-text {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-work-sans);
    color: white;
    text-align: center;
}

/* == Modes Tabs == */

.mode-tabs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: calc(100% - 112px);
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    left: 90px;
    top: 56px;
}


.mode-tabs {
    display: inline-flex;
    position: relative;

    /* One outer border around the whole pill */
    border: 1px solid #454857;
    border-radius: 4px;
}

/* Base button: no per-button border */
.mode-tab {
    appearance: none;
    border: 0;
    background: var(--Obsidian);
    color: #A8AAB0;
    padding: 10px 14px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
    font-family: var(--font-work-sans);
}

/* Single divider between segments, so seams stay consistent */
.mode-tab+.mode-tab {
    border-left: 1px solid #454857;
}

/* Rounded ends only */
.mode-tab:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.mode-tab:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Hover */
.mode-tab:hover {
    background: #24252C;
    color: white;
}

/* Active: don’t change borders; draw a 1px highlight with inset shadow */
.mode-tab.is-active {
    color: #fff;
    background: var(--Obsidian);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* Keyboard focus */
.mode-tab:focus-visible {
    outline: 2px solid #7aa2ff;
    outline-offset: 2px;
}



/* === Timeline Picklist === */
.timeline-picklist {
    width: auto;
    height: 36px;
    padding-left: 12px;
    /* 👈 ensures consistent space for icon */
    padding-right: 28px;
    /* optional: space for dropdown arrow */
    border-radius: 4px;
    background-color: var(--Obsidian);
    border: 1px solid var(--Charcoal);
    color: #fff;
    font-family: var(--font-work-sans);
    font-size: 14px;
    appearance: none;
    cursor: pointer;
    background-image: none;
    /* remove default browser arrow */
    box-sizing: border-box;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.timeline-icon {
    position: absolute;
    right: 12px;
    top: 16px;
    width: 12px;
    height: auto;
    pointer-events: none;
    filter: brightness(0) invert(1);
}

.timeline-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Optional: Add a custom caret if needed */
/*

.timeline-picklist::after {
  content: '';
  background-image: url('/public/icon-chevron-down.svg');
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  pointer-events: none;
}
*/

/* Interactions */

.timeline-picklist:hover {
    background-color: #24252C;
}


.timeline-picklist:focus {
    outline: 2px solid var(--Green);
    outline-offset: 2px;
}


/* == Career Stats Widget - 3 == */
.career-stats-widget-3 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: url("https://files.supernova-analytics.com/supernova-app-assets/Diablo%203/Images/Diablo_Career_Stat.png") no-repeat center center / cover;
    border: 1px solid var(--Charcoal);
    border-radius: 9px;
    color: var(--Silver);
    padding: 16px;

    grid-column: 1 / 5;
    grid-row: 1 / 3;
}

/* Header (reuse existing class) */
.career-stats-heading {
    position: relative;
    /* no absolute offset needed anymore */
    top: 0;
    left: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-align: left;
}

/* Content area: left (radial/paragon) | divider | right (stats) */
.career-stats-widget-3 .content {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
    margin-top: 8px;
    /* small space under header */
}

/* — Left: Paragon — */
.paragon-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 36px;
}

.paragon-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.paragon-label {
    font-size: 13px;
    color: var(--Silver);
}

.paragon-number.number {
    font-size: 32px;
    font-weight: 700;
    color: white;
}

/* Divider */
.career-stats-widget-3 .vertical-divider {
    width: 1px;
    background-color: var(--Charcoal);
    height: 70%;
    align-self: center;
}

/* — Right: Stats Group — */
.stats-group {
    display: grid;
    grid-auto-rows: minmax(0, auto);
    row-gap: 14px;
    column-gap: 16px;
    width: 100%;
    padding-left: 8px;
    padding-right: 12px;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px;
}

.stat-label-cs {
    font-size: 14px;
    color: var(--Silver);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-value {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

/* Numbers styling parity with your theme */
.number {
    font-variant-numeric: tabular-nums;
}



/* == Individual Graph Placement Chart == */
.individual-graph-placement-chart {
    background: var(--Obsidian);
    border: 1px solid var(--Charcoal);
    border-radius: 9px;
    color: var(--Silver);
    padding: 12px 12px 10px;
    grid-column: 7 / 9;
    grid-row: 1 / 4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.individual-graph-placement-chart .widget-heading {
    overflow: visible;
    text-overflow: clip;
    padding-right: 8px;
    margin-bottom: 2px;
}



/* Body layout */
.individual-graph-placement-chart .card-body {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 6px 0 10px;
}

/* Donut wrap */
.individual-graph-placement-chart .donut-wrap {
    position: relative;
}

/* Rotate the SVG so 0% starts at 12 o'clock */
.individual-graph-placement-chart .donut {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

/* Circles */


/* Dashed/segmented track with rounded endpoints */
.individual-graph-placement-chart .donut-track {
    stroke: rgba(255, 255, 255, 0.18);
    stroke-dasharray: 6 10;
    /* segment + gap */
    stroke-linecap: round;
}

/* Value arc */
.individual-graph-placement-chart .donut-value {
    stroke: #4fd1da;
    /* teal highlight from screenshot */
    stroke-linecap: round;
    stroke-dasharray: 0 100;
    /* will be set via attribute or JS */
    transition: stroke-dasharray 320ms ease;
}

/* Donut + centre label wrapper */
.set-diversity-donut-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.set-diversity-ring {
    position: relative;
    width: 188px;
    height: 188px;
    flex-shrink: 0;
}

.set-diversity-ring::before {
    content: none;
}

.set-diversity-ring svg {
    display: block;
    position: relative;
    z-index: 1;
    width: 188px;
    height: 188px;
}

.set-diversity-segment {
    cursor: pointer;
    transition: opacity 160ms ease, filter 160ms ease, stroke-width 160ms ease;
}

.set-diversity-segment.is-active {
    filter: brightness(1.12);
    stroke-width: 9;
}

.set-diversity-segment.is-dimmed {
    opacity: 0.3;
}

.set-diversity-segment:focus-visible {
    outline: none;
    filter: brightness(1.12);
}

/* Centre label — overlaid on the ring */
.set-diversity-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.set-diversity-center .sd-count {
    font-size: 20px;
    font-weight: 600;
    color: white;
    line-height: 1;
}

.set-diversity-center .sd-label {
    font-size: 11px;
    color: var(--Silver);
    margin-bottom: 4px;
    margin-top: 0;
    max-width: 92px;
    text-align: center;
    line-height: 1.15;
}


/* Legend panel */
.individual-graph-placement-chart .legend-panel {
    padding-top: 10px;
    display: grid;
    row-gap: 8px;
    width: 94%;
}

.individual-graph-placement-chart .legend-item {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 4px;
    border-radius: 6px;
    padding: 2px 4px;
    cursor: pointer;
    transition: background-color 160ms ease, opacity 160ms ease;
}

.individual-graph-placement-chart .legend-item.is-active {
    background: rgba(255, 255, 255, 0.06);
}

.individual-graph-placement-chart .legend-item.is-dimmed {
    opacity: 0.45;
}

.individual-graph-placement-chart .legend-item:focus-visible {
    outline: 1px solid rgba(123, 224, 231, 0.8);
    outline-offset: 1px;
}

.individual-graph-placement-chart .legend-item .swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: var(--swatch, #7be0e7);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25) inset;
}

.individual-graph-placement-chart .legend-name {
    font-size: 14px;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.individual-graph-placement-chart .legend-pct {
    color: var(--Silver);
    font-weight: 400;
    font-size: 14px;
}

/* Footer */
.individual-graph-placement-chart .card-footer {
    margin-top: 10px;
    border-top: 1px solid var(--Charcoal);
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-height: 120px;
}

/* == Top HC Hero == */
/* ——— Top HC Hero widget ——— */
.widget-top-hc-hero {
    grid-column: 5 / 7;
    grid-row: 1 / 4;
    padding: 11px 15px 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.widget-top-hc-hero .thc-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 19px;
}

.widget-top-hc-hero .thc-header-icon {
    width: 17px;
    height: 15px;
    flex: 0 0 auto;
}

.widget-top-hc-hero .thc-header-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: var(--color-white);
}

/* Profile row */
.widget-top-hc-hero .thc-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.widget-top-hc-hero .thc-portrait {
    width: 61px;
    height: 61px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    border: 1px solid var(--Charcoal);
    background: #222;
}

.widget-top-hc-hero .thc-id {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;

}

.widget-top-hc-hero .thc-name {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-top-hc-hero .thc-sub {
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    color: var(--Silver);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-top-hc-hero .thc-mode-badge {
    display: flex;
    margin-bottom: 14px;
    padding-left: 1px;
}

.widget-top-hc-hero .badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 8px;
    border-radius: 4px;
}

.widget-top-hc-hero .badge--hc {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.35);
}

.widget-top-hc-hero .badge--sc {
    background: rgba(52, 152, 219, 0.18);
    color: #5dade2;
    border: 1px solid rgba(52, 152, 219, 0.28);
}

/* Quick stats row */
.widget-top-hc-hero .thc-quick-stats {
    display: flex;
    gap: 26px;
    margin-bottom: 19px;
    padding-left: 1px;
}

.widget-top-hc-hero .thc-qs-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.widget-top-hc-hero .thc-qs-label {
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--Silver);
}

.widget-top-hc-hero .thc-qs-value {
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* Divider */
.widget-top-hc-hero .thc-divider {
    height: 1px;
    background: var(--Charcoal);
    margin: 0 -16px 13px;
}

/* Stats */
.widget-top-hc-hero .thc-stats-title {
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.05em;
    color: var(--color-white);
    margin-bottom: 11px;
}

.widget-top-hc-hero .thc-stat-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.widget-top-hc-hero .thc-stat-row .label {
    font-size: 14px;
    color: var(--Silver);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-top-hc-hero .thc-stat-row .value {
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.widget-top-hc-hero .thc-stat-row:last-child {
    margin-bottom: 0;
}







/* == Widget table-v1s == */
.widget-table-v1 {
    background-color: var(--Obsidian);
    border: 1px solid var(--Charcoal);
    border-radius: 9px;
    color: var(--Silver);
    font-size: 13px;
    box-sizing: border-box;
    position: relative;
    width: 100%;
}

/* Title */
.widget-table-v1 .widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #fff;
    margin-bottom: 10px;
    padding-top: 12px;
    padding-left: 16px;
}

.widget-table-v1 .icon-table-v1 {
    width: 14px;
    height: 100%;
    object-fit: contain;
}

/* ===== Header (edge-to-edge border, inner padding on cells) ===== */
.table-v1-header-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 6rem 4rem 6rem;
    /* Name | Games | KDA | WR */
    align-items: center;
    border-bottom: 1px solid var(--Charcoal);
    /* spans full width */
    color: var(--Silver);
    font-size: 12px;
}

.table-v1-header-row>div {
    padding: 10.5px 16px;
    /* inner padding */
}

.table-v1-header-row .table-v1-col {
    text-align: right;
}

.table-v1-header-row .table-v1-col--name {
    text-align: left;
}

/* ===== Rows (edge-to-edge border, inner padding on cells) ===== */
.table-v1-rows {
    display: block;
}

.table-v1-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 6rem 4rem 6rem;
    align-items: center;
    border-bottom: 1px solid var(--Charcoal);
    /* spans full width */
    color: #fff;
}

.table-v1-row>div {
    padding: 6.5px 16px;
    /* inner padding */
}

.table-v1-row:last-child {
    border-bottom: 0;
}

.table-v1-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Name cell (index + avatar + name) */
.table-v1-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    /* allow text truncation */
}

.table-v1-index {
    width: 16px;
    text-align: right;
    color: var(--Silver);
    flex: 0 0 auto;
}

.table-v1-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    border: #A8AAAF 1px solid;
}

.table-v1-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.table-v1-name {
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Numeric columns */
.table-v1-cell {
    text-align: right;
    font-weight: 500;
}

/* Emphasis (e.g., Win Rate green like unit) */
.table-v1-winrate {
    color: var(--Green);
}

/* Optional helpers for JS-driven coloring */
.table-v1-cell.is-positive {
    color: var(--Green);
}

.table-v1-cell.is-negative {
    color: #f42746;
}




/* ───────── Widget Base ───────── */
.widget {
    position: relative;
    width: auto;
    border-radius: 9px;
    background: var(--Obsidian);
    border: 1px solid var(--color-darkslategray-100);
    box-sizing: border-box;
    font-size: 14px;
    color: white;
    padding: 12px;
    min-height: 0;
}

/* Minis participate directly in the parent grid */
.mini-widgets {
    display: contents;
}

.widget-elite-kills {
    grid-column: 1 / 3;
    grid-row: 3;
}

.widget-monster-kills {
    grid-column: 3 / 5;
    grid-row: 3;
}

.widget-hero-roster {
    grid-column: 9 / 13;
    grid-row: 1 / 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto minmax(0, 1fr);
    align-content: start;
    column-gap: 12px;
    padding: 11px 15px 0px;
    transition: opacity 0.2s ease;
}

.widget-hero-roster.is-no-data {
    opacity: 0.35;
    pointer-events: none;
}



.widget-seasonal-participation {
    grid-column: 1 / 5;
    grid-row: 4;
}

.widget-best-gem-rank {
    grid-column: 1 / 5;
    grid-row: 5;
}

.widget-container.is-non-seasonal .widget-best-gem-rank {
    grid-row: 4;
}




/* ───────── Heading with Icon ───────── */
.widget-heading {
    position: relative;
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 22px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 24px;
}

/* Keep the icon where it was visually, without affecting text flow */
.widget-heading .icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 100%;
    flex: none;
    pointer-events: none;
    user-select: none;
    object-fit: contain;
}

/* ───────── KPI Display ───────── */
.kpi-value {
    font-size: 24px;
    line-height: 30px;
    font-weight: 400;
    margin-bottom: 4px;
}

.kpi-meta {
    font-size: 12px;
    color: #A8AAAF;
    margin-bottom: 12px;

    /* Ellipsis */
    display: block;
    /* ensures width context */
    width: 100%;
    /* fill row */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-unit {
    font-size: 12px;
    color: #A8AAAF;
    margin-left: 4px;
}

.performance-bar-filled {
    height: 100%;
    border-radius: 3px 0 0 3px;
}

.performance-bar-remaining {
    flex: 1;
}





/* ───────── Hardcore Hero Roster ───────── */
/* KPI row (inline like the screenshot) */
.widget-hero-roster .hcr-kpis {
    display: flex;
    align-items: baseline;
    gap: 18px;
    min-width: 0;
}

.widget-hero-roster .hcr-metric {
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}



/* ───── Seasonal Participation (scoped) ───── */

/* ───── Seasonal Participation (scoped) ───── */
.widget-seasonal-participation {
    padding: 12px;
    border-radius: 9px;
    box-sizing: border-box;
}

/* Grid layout */
.widget-seasonal-participation .mwgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 28px;
    align-items: start;
}

.widget-seasonal-participation .widget-heading {
    margin-bottom: 12px;
}


/* Item layout */
.widget-seasonal-participation .mwgrid-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* Season label */
.widget-seasonal-participation .kpi-meta {
    font-size: 12px;
    margin-bottom: 0px;
    color: white;
}



/* Best GR underneath */
.widget-seasonal-participation .kpi-meta.subtle {
    font-size: 12px;
    color: #a8aaaf;
    opacity: 0.95;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}







/* Best Ranked Gem Within the same grid pattern */

/* ───── Best Gem Rank (scoped) ───── */
.widget-best-gem-rank {
    padding: 12px;
    border-radius: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 3-up grid, responsive */
.widget-best-gem-rank .mwgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 18px;
    align-items: start;
}


/* each gem block */
.widget-best-gem-rank .mwgrid-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

/* gem icon */
.widget-best-gem-rank .mwgrid-item .mwgrid-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    flex-shrink: 0;
    overflow: hidden;
    background: transparent;
}

.widget-best-gem-rank .mwgrid-item .mwgrid-icon:empty {
    background: #ffffff0a;
}

.widget-best-gem-rank .mwgrid-item .mwgrid-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* gem name (title) */
.widget-best-gem-rank .mwgrid-item .kpi-title {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-best-gem-rank .widget-heading {
    margin-bottom: 2px;
}




/* keep bars simple */
/* put bars in normal flow so they sit under the KPI meta */
.performance-indicator {
    position: static !important;
}

/* ───────── Paragon radial ring ───────── */
#paragon-ring {
    width: 140px;
    height: 140px;
    position: relative;
    flex-shrink: 0;
}

#paragon-ring canvas {
    display: block;
}

#paragon-ring .donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    gap: 4px;
}

#paragon-ring .paragon-label {
    font-size: 11px;
    color: var(--Silver);
    white-space: nowrap;
}

#paragon-ring .paragon-number {
    font-size: 22px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

/* ───────── Hero Roster Table ───────── */
/* (grid-column / grid-row set in base rule above) */
.widget-hero-roster {
    overflow: hidden;
}

.widget-hero-roster .widget-heading {
    grid-column: 1 / -1;
    line-height: 1.15;
    margin-bottom: 12px;
}

.widget-hero-roster .hcr-kpis {
    grid-column: 2 / 3;
    grid-row: 2;
    justify-self: end;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.widget-hero-roster .hcr-metric {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    padding: 6px 8px;
    border-radius: 999px;
}

.widget-hero-roster .hcr-metric:first-child {
    background: #3ec56912;
}

.widget-hero-roster .hcr-metric:last-child {
    background: #f427461a;
}

.widget-hero-roster .hcr-metric:first-child .kpi-value {
    color: #3EC569;
}

.widget-hero-roster .hcr-metric:last-child .kpi-value {
    color: #F42746;
}

.widget-hero-roster .hcr-metric .kpi-value {
    font-size: 12px;
    line-height: 1;
    margin-bottom: 0;
}

.widget-hero-roster .hcr-metric .kpi-meta {
    font-size: 11.5px;
    line-height: 1;
    color: #ffffffb3;
    margin-bottom: 0;
    width: auto;
    display: inline;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.widget-hero-roster .roster-table-wrap {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 10px -16px 0px;
}

/* Active / Graveyard toggle */
.roster-toggle {
    grid-column: 1 / 2;
    grid-row: 2;
    align-self: start;
    display: flex;
    gap: 0;
    border: 1px solid #454857;
    border-radius: 999px;
    margin-bottom: 4px;
    width: fit-content;
    background: rgba(36, 37, 44, 0.95);
}

.roster-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: #A8AAB0;
    padding: 5px 11px;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.04em;
    font-family: var(--font-work-sans);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.roster-tab+.roster-tab {
    border-left: 1px solid rgba(69, 72, 87, 0.9);
}

.roster-tab:first-child {
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
}

.roster-tab:last-child {
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
}

.roster-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.roster-tab.is-active {
    color: #fff;
    background: transparent;
    border: white 1px solid;
    font-weight: 500;
}

/* Table */
.roster-table-wrap {
    flex: 1;
    position: relative;
    overflow-y: auto;
    min-height: 0;
}

.roster-table-wrap::after {
    content: "";
    position: sticky;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    height: 18px;
    margin-top: -8px;
    background: linear-gradient(180deg, rgb(28 28 36 / 0%) 0%, rgba(28, 28, 36, 0.96) 100%);
    pointer-events: none;
    z-index: 2;
}

.roster-header-row {
    position: sticky;
    top: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(88px, 0.72fr) 48px 48px;
    align-items: center;
    column-gap: 10px;
    color: white;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--Charcoal);
    border-top: 1px solid var(--Charcoal);
    padding: 7px 8px 7px;
    background: var(--color-gray-1200);
}

.roster-header-row .roster-col,
.roster-row .roster-col {
    padding: 0;
    text-align: right;
}

.roster-header-row .roster-col--name,
.roster-row .roster-col--name {
    text-align: left;
    min-width: 0;
}

.roster-row .roster-col--name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.roster-name-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.roster-hero-icon {
    width: 30px;
    height: 30px;
    border-radius: 99px;
    object-fit: cover;
    object-position: top center;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(69, 72, 87, 0.6);
}

.roster-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(88px, 0.72fr) 48px 48px;
    align-items: center;
    column-gap: 10px;
    font-size: 13px;
    color: #fff;
    line-height: 1.2;
    min-height: 36px;
    padding: 2px 10px;
    border-bottom: 1px solid var(--Charcoal);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.roster-row:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.roster-row:not(.roster-empty):hover {
    background: rgba(255, 255, 255, 0.04);
}

.roster-row .roster-col--class {
    color: white;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.roster-row .roster-col--lvl,
.roster-row .roster-col--gr {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.roster-row.is-deceased {
    background: rgba(244, 124, 124, 0.06);
}

.roster-row.is-deceased .roster-col--name,
.roster-row.is-deceased .roster-col--lvl {
    color: rgba(255, 255, 255, 0.74);
}

.roster-row.is-deceased .roster-col--class {
    color: rgba(244, 124, 124, 0.72);
}

.roster-empty {
    display: flex !important;
    grid-template-columns: unset !important;
    align-items: center;
    justify-content: center;
    color: var(--Silver);
    font-size: 12px;
    min-height: 64px;
    padding: 0 8px;
    margin-top: 6px;
}

/* ───────── Equipped Build Widget ───────── */
.widget-equipped-build {
    grid-column: 5 / 13;
    grid-row: 4 / 7;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 11px 15px 15px;
}

.widget-equipped-build .widget-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: visible;
    margin-bottom: 0px;
    padding-left: 24px;
    margin-bottom: 6px;
}

.eb-hero-select-wrap {
    margin-left: auto;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    width: 200px;
    max-width: 200px;
}

.eb-hero-select-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 6px;
    pointer-events: none;
    object-fit: contain;
    opacity: 0.95;
    flex: 0 0 auto;
}

.eb-hero-select-trigger {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--Charcoal);
    border-radius: 4px;
    color: white;
    font-family: var(--font-work-sans);
    font-size: 12px;
    line-height: 1.2;
    padding: 7px 30px 7px 10px;
    cursor: pointer;
    display: block;
    outline: none;
    width: 100%;
    max-width: 200px;
    text-align: left;
}

.eb-hero-select-trigger:hover {
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.eb-hero-select-trigger:focus,
.eb-hero-select-trigger[aria-expanded="true"] {
    border-color: rgba(60, 180, 204, 0.5);
}

.eb-hero-select-trigger-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eb-hero-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    background: #1c1c24;
    border: 1px solid var(--Charcoal);
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    z-index: 6;
}

.eb-hero-select-menu.is-open {
    display: flex;
}

.eb-hero-option {
    appearance: none;
    border: none;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
}

.eb-hero-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.eb-hero-option.is-selected {
    background: rgba(60, 180, 204, 0.12);
}

.eb-hero-option-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(69, 72, 87, 0.6);
}

.eb-hero-option-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.eb-hero-option-name,
.eb-hero-option-class {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eb-hero-option-name {
    font-size: 13px;
    color: #fff;
    font-family: work-sans, sans-serif;
}

.eb-hero-option-class {
    font-size: 11px;
    color: var(--Silver);
    font-family: work-sans, sans-serif;
}


.eb-slots {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-top: 1px;
}

.eb-empty {
    color: var(--Silver);
    font-size: 12px;
    padding: 8px 0;
}

.eb-summary {
    display: flex;
    align-items: center;
    column-gap: 7px;
    row-gap: 4px;
    font-size: 14px;
    line-height: 1.3;
    color: var(--Silver);
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.eb-dot {
    color: rgba(255, 255, 255, 0.34);
}

.eb-primal {
    color: #aa24ff;
}

.eb-ancient {
    color: #f67c2a;
}

.eb-legendary {
    color: #3cb4cc;
}

.eb-set {
    color: #00c569;
}

.eb-rare {
    color: #f4d03f;
}

.eb-magic {
    color: #6fa3ef;
}

.eb-common {
    color: white;
}

.eb-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    flex: 1;
    min-height: 0;
    align-items: stretch;
}

.eb-right-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.eb-section {
    display: flex;
    flex-direction: column;
    background: var(--Graphite, #24252c);
    border-radius: 9px;
    padding: 13px 16px 12px;
    min-height: 0;
    flex: 1 1 0;
    justify-content: space-evenly;
}

.eb-section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-white);
    margin-bottom: 8px;
}

.eb-section-heading::before {
    content: "";
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.eb-columns>.eb-section>.eb-section-heading::before {
    background-image: url("https://files.supernova-analytics.com/supernova-app-assets/Diablo%203/Icons/Icon_Armour.png");
}

.eb-right-col>.eb-section:first-child>.eb-section-heading::before {
    background-image: url("https://files.supernova-analytics.com/supernova-app-assets/Diablo%203/Icons/Icon_Jewellery.png");
}

.eb-right-col>.eb-section:last-child>.eb-section-heading::before {
    width: 15px;
    height: 15px;
    background-image: url("https://files.supernova-analytics.com/supernova-app-assets/Diablo%203/Icons/Icon_Weapon.png");
}

.eb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 0;
    min-height: 31px;
    flex-wrap: wrap;
}

.eb-row:last-child {
    border-bottom: none;
}

.eb-row--empty {
    opacity: 1;
}

.eb-quality-sq {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 0.5px rgba(69, 72, 87, 0.95);
}

.eb-quality-sq::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.18));
    pointer-events: none;
}

.eb-quality-sq img {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 4px 1px 4px 0px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
}

.eb-lbl {
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--Silver);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 70px;
}

.eb-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.eb-row--empty .eb-quality-sq {
    background: var(--Obsidian) !important;
}

.eb-row--empty .eb-quality-sq::after {
    display: none;
}

.eb-row--empty .eb-name {
    color: var(--Silver);
}


/* ───────── Gear Quality Widget ───────── */
.widget-gear-quality {
    grid-column: 9 / 13;
    grid-row: 3 / 4;
    display: flex;
    flex-direction: column;
}

.widget-gear-quality .widget-heading {
    margin-bottom: 6px;
}

#gear-quality-bars {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: 54px;
    padding-top: 4px;
    align-items: center;
}

.gq-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gq-label {
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gq-count {
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    line-height: 1;
}

.gq-denom {
    font-size: 14px;
    color: var(--Silver);
    margin-left: 2px;
}



.gq-subcopy {
    font-size: 12px;
    line-height: 1.35;
    color: var(--Silver);
}

.gq-empty {
    color: var(--Silver);
    font-size: 12px;
    padding: 8px 0;
}


/* .widget-performance-history removed — no charting on this page */

.performance-bar-filled {
    background-color: #3DB4CC;
}

.mode-picklist {
    display: none;
}

.mode-wrapper {
    display: none;
}

.mode-icon {
    display: none;
}

/* ───────── Responsive tweaks ───────── */



/* ≤1500px — 10 column grid
   Row layout:
   1-2: Career(1-5) | SetDiv(5-8) | TopHero(8-11)
   3:   Elite(1-3) | Monster(3-5) | Seasonal(5-11)
   4:   HeroRoster(1-5) | GearQuality(5-11)
   5-7: BestGem(1-5) | EquippedBuild(5-11)
*/
@media screen and (max-width: 1500px) {
    .widget-container {
        gap: 12px;
        grid-template-columns: repeat(10, 1fr);
        min-height: 1100px;
    }

    .career-stats-heading {
        font-size: 14px;
    }

    .kpi-value {
        font-size: 20px;
    }

    .career-stats-widget-3 {
        grid-column: 1 / 5;
        grid-row: 1 / 3;
        padding: 16px;
    }

    .individual-graph-placement-chart {
        grid-column: 8 / 11;
        grid-row: 1 / 4;
    }

    .widget-top-hc-hero {
        grid-column: 5 / 8;
        grid-row: 1 / 4;
    }

    .widget-top-hc-hero .thc-quick-stats {
        margin-bottom: 12px;
    }

    .widget-elite-kills {
        grid-column: 9 / 10;
        grid-row: 5;
    }

    .widget-monster-kills {
        grid-column: 10 / 11;
        grid-row: 5;
    }

    .widget-seasonal-participation {
        grid-column: 5 / 11;
        grid-row: 4;
    }

    .widget-hero-roster {
        grid-column: 1 / 5;
        grid-row: 3/5;
    }

    .widget-gear-quality {
        grid-column: 5 / 9;
        grid-row: 5;
    }

    .widget-best-gem-rank {
        grid-column: 1 / 5;
        grid-row: 5;
    }

    /* Historical HC / SC overrides at 1500px */
    .is-non-seasonal .widget-best-gem-rank {
        grid-column: 5 / 11;
        grid-row: 5 !important;
    }

    .is-non-seasonal .widget-elite-kills {
        grid-column: 5 / 8;
        grid-row: 4;
    }

    .is-non-seasonal .widget-monster-kills {
        grid-column: 8 / 11;
        grid-row: 4;
    }

    .is-non-seasonal .widget-gear-quality {
        grid-column: 1 / 5;
        grid-row: 5;
    }


    .widget-equipped-build {
        grid-column: 1 / 11;
        grid-row: 6 / 9;
    }



    .paragon-section {
        flex-direction: column;
        padding: 0 16px;
    }

    .paragon-details {
        text-align: center;
    }

    /* Legacy KDA/table rules from other game pages */
    .kda-kpi canvas {
        width: 104px !important;
        height: 104px !important;
    }

    .kda-group,
    .win-rate-details {
        top: 32px;
    }

    .kills-number,
    .wins-number {
        font-size: 14px;
    }

    .kda-group-lines,
    .win-loss-group {
        display: flex;
        justify-content: center;
        gap: 14px;
        margin-top: 4px;
        text-align: center;
        flex-direction: column;
    }

    .kda-number,
    .win-rate-number {
        font-size: 18px;
    }

    .kpi-stat-line {
        width: 114px;
        height: 3px;
        border-radius: 2px;
        background-color: var(--Silver);
        margin-bottom: 4px;
    }

    .kills,
    .wins {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2px;
        flex-wrap: wrap;
        width: 110px;
        justify-content: space-between;
    }

    .table-v1-row,
    .table-v1-header-row,
    .lane-header-row,
    .lane-row {
        grid-template-columns: minmax(100px, 1fr) 6rem 6rem 7rem;
    }

    .table-v1-row>div {
        padding: 6.5px 16px;
    }

    .widget-kill-participation .icon,
    .widget-gold .icon,
    .widget-creep-score .icon,
    .widget-damage .icon,
    .widget-map-control .icon {
        display: none;
    }

    .widget-table-v1 {
        grid-column: 5 / 11;
        grid-row: 8;
    }
}

@media screen and (max-width: 1280px) {
    .stat-row {
        display: grid;
        grid-template-rows: 1fr auto;
        grid-template-columns: unset;
        align-items: center;
        gap: 2px;
    }

    #paragon-ring {
        width: 140px;
        height: 140px;
        position: relative;
        flex-shrink: 0;
    }

    .paragon-section {
        flex-direction: column;
        padding: 0 6px;
    }

}

/* ≤950px — 8 column grid
   Row layout:
   1-2: Career(1-5) | Elite(5-7)+Monster(7-9) / HeroRoster(5-9)
   3:   SetDiv(1-5) | TopHero(5-9)
   4:   GearQuality(1-9)
   5:   BestGem(1-5) | Seasonal(5-9)
   6-8: EquippedBuild(1-9)
*/



@media screen and (max-width: 1140px) {

    .widget-elite-kills {
        grid-column: 1 / 3;
        grid-row: 3;
    }

    .is-non-seasonal .widget-elite-kills {
        grid-column: 1 / 3;
        grid-row: 3;
    }

    .widget-monster-kills {
        grid-column: 3 / 5;
        grid-row: 3;
    }

    .is-non-seasonal .widget-monster-kills {
        grid-column: 3 / 5;
        grid-row: 3;
    }

    .is-non-seasonal .widget-hero-roster {
        grid-column: 5 / 11;
        grid-row: 4 / 6;
    }


    .widget-hero-roster {
        grid-column: 5 / 11;
        grid-row: 5 / 7;
    }

    .widget-seasonal-participation {
        grid-column: 1 / 11;
        grid-row: 4;
    }

    .widget-best-gem-rank {
        grid-column: 1 / 5;
        grid-row: 5;
    }

    .is-non-seasonal .widget-best-gem-rank {
        grid-column: 1 / 5;
        grid-row: 4 !important;
    }

    .widget-equipped-build {
        grid-column: 1 / 11;
        grid-row: 7 / 10;
    }

    .is-non-seasonal .widget-equipped-build {
        grid-column: 1 / 11;
        grid-row: 6 / 9;
    }

    .widget-gear-quality {
        grid-column: 1 / 5;
        grid-row: 6;
    }

    #gear-quality-bars {
        gap: 22px;
    }



}


@media screen and (max-width: 950px) {
    .widget-container {
        grid-template-columns: repeat(8, 1fr);
        min-height: 1200px;
    }

    .career-stats-widget-3 {
        grid-column: 1 / 5;
        grid-row: 1 / 3;
        padding: 16px;
    }

    .widget-elite-kills {
        grid-column: 5 / 7;
        grid-row: 1;
    }

    .is-non-seasonal .widget-elite-kills {
        grid-column: 5 / 7;
        grid-row: 1;
    }

    .widget-monster-kills {
        grid-column: 7 / 9;
        grid-row: 1;
    }

    .is-non-seasonal .widget-monster-kills {
        grid-column: 7 / 9;
        grid-row: 1;
    }

    .widget-hero-roster {
        grid-column: 1 / 9;
        grid-row: 6 / 8;
    }

    .is-non-seasonal .widget-hero-roster {
        grid-column: 1 / 9;
        grid-row: 6 / 8;
    }

    .individual-graph-placement-chart {
        grid-column: 5/9;
        grid-row: 3 / 6;
    }

    .widget-top-hc-hero {
        grid-column: 1/5;
        grid-row: 3 / 6;
    }

    .widget-gear-quality {
        grid-column: 5 / 9;
        grid-row: 8;
    }

    .is-non-seasonal .widget-gear-quality {
        grid-column: 1 / 9;
        grid-row: 8;
    }

    .widget-best-gem-rank {
        grid-column: 1 / 5;
        grid-row: 8;
    }

    .is-non-seasonal .widget-best-gem-rank {
        grid-column: 5 / 9;
        grid-row: 2 !important;
    }

    .widget-seasonal-participation {
        grid-column: 5 / 9;
        grid-row: 2;
    }

    .widget-equipped-build {
        grid-column: 1 / 9;
        grid-row: 9 / 12;
    }

    .is-non-seasonal .widget-equipped-build {
        grid-column: 1 / 9;
        grid-row: 9 / 12;
    }

    .kpi-unit {
        margin-left: unset;
    }

    .widget-table-v1 {
        grid-column: 1 / 9;
        grid-row: 9;
    }

    .kpi-inline {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-wrap: nowrap;
    }
}



@media screen and (max-width: 768px) {
    .widget-container {
        display: grid;
        gap: 12px;
        grid-template-columns: repeat(8, minmax(0, 1fr));
        width: calc(100% - 36px);
        left: 18px;
    }

    .mode-tabs-row {
        width: calc(100% - 36px);
        left: 18px;
    }

    .career-stats-widget-3 {
        grid-column: 1 / 6;
        grid-row: 1 / 3;
        padding: 16px;
    }

    .paragon-section {
        padding: 0 36px;
    }

    .widget-elite-kills {
        grid-column: 6 / 9;
        grid-row: 1;
    }

    .is-non-seasonal .widget-elite-kills {
        grid-column: 6 / 9;
        grid-row: 1;
    }

    .widget-monster-kills {
        grid-column: 6 / 9;
        grid-row: 2;
    }

    .is-non-seasonal .widget-monster-kills {
        grid-column: 6 / 9;
        grid-row: 2;
    }

    .widget-seasonal-participation {
        grid-column: 1 / 9;
        grid-row: 3;
    }

    .individual-graph-placement-chart {
        grid-column: 5 / 9;
        grid-row: 4 / 7;
    }

    .is-non-seasonal .individual-graph-placement-chart {
        grid-column: 5 / 9;
        grid-row: 3 / 6;
    }

    .widget-top-hc-hero {
        grid-column: 1 / 5;
        grid-row: 4 / 7;
    }

    .is-non-seasonal .widget-top-hc-hero {
        grid-column: 1 / 5;
        grid-row: 3 / 6;
    }

    .widget-hero-roster {
        grid-column: 1 / 9;
        grid-row: 7 / 9;
    }

    .widget-best-gem-rank {
        grid-column: 1 / 9;
        grid-row: 9;
    }

    .is-non-seasonal .widget-best-gem-rank {
        grid-column: 1 / 9;
        grid-row: 8 !important;
    }

    .widget-gear-quality {
        grid-column: 1 / 9;
        grid-row: 10;
    }

    .is-non-seasonal .widget-gear-quality {
        grid-column: 1 / 9;
        grid-row: 9;
    }

    .widget-equipped-build {
        grid-column: 1 / 9;
        grid-row: 11 / 16;
        height: 752px;
    }

    .is-non-seasonal .widget-equipped-build {
        grid-column: 1 / 9;
        grid-row: 10 / 15;
        height: 752px;
    }

    .eb-slots {
        flex: 1;
        overflow-y: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        padding-top: 1px;
    }


    .eb-section {
        display: flex;
        flex-direction: column;
        background: var(--Graphite, #24252c);
        border-radius: 9px;
        padding: 13px 16px 12px;
        min-height: unset;
        flex: 0;
        justify-content: flex-start;
    }

    .eb-right-col {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .widget-container {
        padding-bottom: 110px;
    }

    .eb-columns {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .eb-right-col {
        gap: 16px;
    }

    .widget-seasonal-participation .widget-heading {
        margin-bottom: 8px;
    }


}

@media screen and (max-width: 690px) {

    .mode-tabs {
        display: none;
    }

    /* hide buttons */
    .mode-picklist {
        display: inline-block;
        /* show select */
        width: 146px;
        height: 36px;
        padding: 0 12px;
        border-radius: 6px;
        background: var(--Obsidian);
        border: 1px solid var(--Charcoal);
        color: #fff;
        font: 14px var(--font-work-sans);
    }

    .mode-tabs-row {
        width: calc(100% - 36px);
        left: 18px;
        display: flex;
        flex-direction: row-reverse;
    }

    .mode-wrapper {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        /* space between icon and select */
    }

    .mode-icon {
        position: absolute;
        right: 12px;
        top: 16px;
        width: 12px;
        height: auto;
        pointer-events: none;
        filter: brightness(0) invert(1);
        display: block;
    }

    .mode-picklist {
        height: 36px;
        padding: 0 12px;
        border-radius: 4px;
        background-color: var(--Obsidian);
        border: 1px solid var(--Charcoal);
        font-family: var(--font-work-sans);
        font-size: 14px;
        color: white;
        box-sizing: border-box;
        appearance: none;
        cursor: pointer;
        transition: border-color 0.2s ease, background-color 0.2s ease;
    }

    .mode-picklist:hover {
        background-color: #24252C;
    }

    .paragon-section {
        flex-direction: column;
        padding: 0 6px;
    }


}

@media screen and (max-width: 580px) {



    .individual-graph-placement-chart {
        grid-column: 5 / 9;
        grid-row: 5 / 8;
    }

    .is-non-seasonal .individual-graph-placement-chart {
        grid-column: 5 / 9;
        grid-row: 4 / 7;
    }

    .widget-gear-quality {
        grid-column: 1 / 9;
        grid-row: 11;
    }

    .is-non-seasonal .widget-gear-quality {
        grid-column: 1 / 9;
        grid-row: 10;
    }

    .widget-top-hc-hero {
        grid-column: 1 / 5;
        grid-row: 5 / 8;
    }

    .is-non-seasonal .widget-top-hc-hero {
        grid-column: 1 / 5;
        grid-row: 4 / 7;
    }

    .widget-elite-kills {
        grid-column: 1 / 5;
        grid-row: 3;
    }

    .is-non-seasonal .widget-elite-kills {
        grid-column: 1 / 5;
        grid-row: 3;
    }


    .widget-monster-kills {
        grid-column: 5 / 9;
        grid-row: 3;
    }

    .is-non-seasonal .widget-monster-kills {
        grid-column: 5 / 9;
        grid-row: 3;
    }

    .widget-hero-roster {
        grid-column: 1 / 9;
        grid-row: 8 / 10;
    }

    .is-non-seasonal .widget-hero-roster {
        grid-column: 1 / 9;
        grid-row: 7 / 9;
    }

    .widget-best-gem-rank {
        grid-column: 1 / 9;
        grid-row: 10;
    }

    .is-non-seasonal .widget-best-gem-rank {
        grid-column: 1 / 9;
        grid-row: 9 !important;
    }

    .widget-seasonal-participation {
        grid-column: 1 / 9;
        grid-row: 4;
    }

    .widget-equipped-build {
        grid-column: 1 / 9;
        grid-row: 12 / 17;
    }

    .is-non-seasonal .widget-equipped-build {
        grid-column: 1 / 9;
        grid-row: 11 / 16;
    }


    .widget-table-v1 {
        grid-column: 1 / 9;
        grid-row: 14;
    }



    .paragon-section {
        flex-direction: row;
        justify-content: center;
    }

    .paragon-details {
        text-align: left;
    }

    .stats-group {
        row-gap: 8px;
    }


    .career-stats-widget-3 {
        grid-column: 1 / 9;
    }

    .paragon-section {
        padding: 0 36px;
    }

    .game-logo {
        display: none;
    }
}

@media screen and (max-width: 500px) {

    .widget-top-hc-hero {
        grid-column: 1 / 9;
        grid-row: 5 / 8;
    }

    .paragon-section {
        padding: 0 16px;
    }

    .is-non-seasonal .widget-top-hc-hero {
        grid-column: 1 / 9;
        grid-row: 4 / 7;
    }

    .individual-graph-placement-chart {
        grid-column: 1 / 9;
        grid-row: 8 / 11;
    }

    .is-non-seasonal .individual-graph-placement-chart {
        grid-column: 1 / 9;
        grid-row: 7 / 10;
    }

    .widget-hero-roster {
        grid-column: 1 / 9;
        grid-row: 11 / 13;
    }

    .is-non-seasonal .widget-hero-roster {
        grid-column: 1 / 9;
        grid-row: 10 / 12;
    }

    .widget-best-gem-rank {
        grid-column: 1 / 9;
        grid-row: 13;
    }

    .is-non-seasonal .widget-best-gem-rank {
        grid-column: 1 / 9;
        grid-row: 12 !important;
    }

    .widget-gear-quality {
        grid-column: 1 / 9;
        grid-row: 14;
    }

    .is-non-seasonal .widget-gear-quality {
        grid-column: 1 / 9;
        grid-row: 13;
    }

    .widget-equipped-build {
        grid-column: 1 / 9;
        grid-row: 15 / 20;
    }

    .is-non-seasonal .widget-equipped-build {
        grid-column: 1 / 9;
        grid-row: 14 / 19;
    }

}


@media screen and (max-width: 400px) {

    .career-stats-widget-3 .content {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        height: 100%;
        margin-top: 8px;
    }

    .paragon-section {
        padding: 0;
        justify-content: center;
    }

    .career-stats-widget-3 .vertical-divider {
        width: 100%;
        height: 1px;
        align-self: stretch;
    }

    .stats-group {
        padding-left: 0;
        padding-right: 0;
    }


    .stat-row {
        grid-template-rows: 1fr;
        grid-auto-flow: column;
    }

    .stat-value {
        text-align: right;
    }

    .widget-seasonal-participation .mwgrid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 34px 28px;
        align-items: start;
    }

    .widget-seasonal-participation .mwgrid-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .widget-seasonal-participation .widget-heading {
        margin-bottom: 28px;
    }

    .widget-seasonal-participation {
        grid-row: 4 / 6;
    }

    .widget-top-hc-hero {
        grid-row: 6 / 9;
    }

    .individual-graph-placement-chart {
        grid-row: 9 / 12;
    }

    .widget-hero-roster {
        grid-row: 12 / 14;
    }

    .widget-best-gem-rank {
        grid-row: 14/16;
        justify-content: start;
        gap: 28px;
    }

    .is-non-seasonal .widget-best-gem-rank {
        grid-row: 12/14 !important;
        justify-content: start;
        gap: 28px;
    }

    .widget-gear-quality {
        grid-column: 1 / 9;
        grid-row: 16;
    }


    .is-non-seasonal .widget-gear-quality {
        grid-column: 1 / 9;
        grid-row: 14;
    }

    .widget-equipped-build {
        grid-column: 1 / 9;
        grid-row: 17 / 22;
    }

    .is-non-seasonal .widget-equipped-build {
        grid-column: 1 / 9;
        grid-row: 15 / 20;
    }

    .eb-hero-select-wrap {
        width: 120px;
        max-width: 120px;
    }

    .widget-best-gem-rank .mwgrid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 34px 18px;
        align-items: start;
    }

    .widget-best-gem-rank .mwgrid-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .widget-hero-roster .hcr-kpis {
        display: none;
    }

    .roster-col--class {
        display: none;
    }

    .roster-header-row,
    .roster-row {
        grid-template-columns: minmax(0, 1fr) 48px 48px;
    }

    .widget-heading {
        overflow: visible;
    }

    #gear-quality-bars {
        gap: 12px;
    }

}

@media screen and (max-width: 370px) {

    .eb-row {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 3px 0;
        min-height: 31px;
        flex-wrap: wrap;
        flex-direction: column;
        align-content: flex-start;
    }

}
