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

body {
    background: #1C1C24 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;
}

/* Global icon style */
.widget-icon {
    width: 18px;
    height: 20px;
    object-fit: contain;
}

/* =====================
   Chat Grids
   ===================== */

:root {
    --slot-bg: rgba(255, 255, 255, 0.06);
    --slot-border: rgba(255, 255, 255, 0.08);
}


.tab-nav {
    display: flex;
    gap: 10px;
    position: relative;
    top: 60px;
    left: 90px;
    max-width: 360px;
}

.tab-link {
    padding: 8px 18px;
    background: var(--color-gray-100);
    color: #a8aaaf;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    border-radius: 999px;
    transition: all 0.2s ease;
    border: none;
    display: inline-block;
}

.tab-link:hover {
    background: #383944;
    color: #fff;
}

.tab-link.active {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.rm-loading {
    text-align: center;
    margin-top: 60px;
    color: #a8aaaf;
}

.chat-grids {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 186px;
    /* each row is exactly 136px */
    grid-auto-flow: dense;
    /* fill holes if spans create gaps */
    position: relative;
    width: calc(100% - 112px);
    top: 72px;
    left: 90px;
    min-height: 958px;
}

.chat-grids {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: auto;
    /* let rows grow */
    grid-auto-flow: dense;
}

.stack-left {
    grid-column: 1 / 5;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 40px;
}

.stack-right {
    grid-column: 5 / 13;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 40px;
}


/* Your tiles already use .slot — keep height:auto there */
.slot {
    height: auto;
}

/* Generic placeholder tile */
.slot {
    background: #1c1c24;
    border: 1px solid #454857;
    border-radius: 9px;
    min-height: 120px;
    height: auto;
}

/* Row 1 */
.playstyle {
    grid-column: 1 / 5;
}

.top-right {
    grid-column: 5 / 13;
}

/* Row 2 */
.recent-matches {
    grid-column: 5 / 13;
    grid-row: 2 / 4;
}

/* Row 3: 6 tiles */
.guardian {
    grid-column: 1 / 5;
    grid-row: 2;
    padding: 16px;
    position: relative;
}





/* =====================
   Playstyle (Radar) Widget
   ===================== */
.playstyle {
    position: relative;
    padding: 16px;
    min-height: 310px;
}

.playstyle .radar-widget {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: unset !important;
}

.playstyle .ps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}


.playstyle .ps-body {
    display: flex;
    flex-direction: row-reverse;
    gap: 16px;
    align-items: center;
}

.playstyle .playstyle-info {
    background: #24252C;
    border-radius: 12px;
    padding: 16px 18px;
    flex: 1;
}

.playstyle .ps-info-heading {
    font-size: 12px;
    letter-spacing: 0.08em;
    opacity: 0.7;
    margin-bottom: 4px;
}

.playstyle .ps-info-title {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 4px;
}

.playstyle .ps-info-desc {
    color: #CAD5E2;
    font-size: 12px;
    margin: 0px;
    line-height: 1.5;
}

.playstyle .ps-chart {
    flex: 1;
    position: relative;
    display: grid;
    place-items: center;
    min-height: 280px;
    min-width: 244px;
}

/* Destiny playstyle snapshot: 5-point radar icon placement */
.radar-widget.destiny .radar-icon--top {
    top: -1%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radar-widget.destiny .radar-icon--right {
    top: 36%;
    right: 2%;
    transform: translate(50%, -50%);
}

.radar-widget.destiny .radar-icon--br {
    bottom: 6%;
    right: 18%;
    transform: translate(50%, 50%);
}

.radar-widget.destiny .radar-icon--bl {
    bottom: 6%;
    left: 18%;
    transform: translate(-50%, 50%);
}

.radar-widget.destiny .radar-icon--left {
    top: 36%;
    left: 2%;
    transform: translate(-50%, -50%);
}

.playstyle .widget-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}

/* =====================
   KPI Tracker (container with 5 mini cards)
   ===================== */
.top-right {
    padding: 16px;
}

.kpi-tracker {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.kpi-tracker .kt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.kpi-tracker .kt-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
}

.kpi-tracker .kt-icon {
    filter: brightness(1.2);
}

.kt-trend-link,
.trend-link,
.rm-more-link,
.gs-trend-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* space between text and icon */
    color: #3cb4cc;
    /* keep your existing link color */
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
    font-size: 14px;
    white-space: nowrap;
}


.kt-arrow-icon,
.trend-arrow-icon,
.rm-arrow-icon,
.gs-arrow-icon {
    width: 9px;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}

.trend-link:hover {
    color: #4dd2ff;
}

.rm-more-link:hover {
    color: #4dd2ff;
}

.kpi-tracker .kt-trend-link:hover {
    color: #4dd2ff;
}

.gs-trend-link:hover {
    color: #4dd2ff;
}

.kpi-tracker .kt-grid {
    display: flex;
    /* grid-template-columns: repeat(5, 1fr); */
    gap: 14px;
    /* align-items: stretch; */
    justify-content: space-evenly;
    flex-direction: row;
    flex-wrap: wrap;
}

.kpi-card {
    background: #24252c;
    border: 1px solid #454857;
    border-radius: 9px;
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 195px;
    /* height: 100px; */
    gap: 6px;
    flex: 1;
    min-width: 154px;
}

.kpi-card .kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kpi-card .kpi-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
}


.kpi-card .kpi-title-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.kpi-card .kpi-delta {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    color: #3EC569;
    border: #3EC569 1px solid;
    background: #3ec56920;
}

.kpi-card .kpi-delta.is-up {
    color: #3EC569;
    border-color: #3EC569;
    background: #3ec56920;
}

.kpi-card .kpi-delta.is-down {
    color: #F42746;
    border-color: #F42746;
    background: #f4274629;
}

.kpi-card .kpi-delta.is-neutral {
    color: #C6CAD6;
    background: rgba(255, 255, 255, 0.08);
}

.kpi-card .kpi-value {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: .2px;
}

.kpi-card .kpi-target {
    font-size: 12px;
    color: white;
    margin-bottom: 4px;
}

/* New: value + delta inline row */
.kpi-card .kpi-value-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 4px 0;
}

/* Make the delta compact when it sits next to the big number */
.kpi-card .kpi-value-row .kpi-delta {
    font-size: 12px;
    padding: 3px 6px;
    line-height: 1;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* Keep existing colour variants */
.kpi-card .kpi-value-row .kpi-delta.is-up {
    color: #3EC569;
    border: 1px solid #3EC569;
    background: #3ec5691d;
}

.kpi-card .kpi-value-row .kpi-delta.is-down {
    color: #F42746;
    border: 1px solid #F42746;
    background: #f427461e;
}

.kpi-card .kpi-value-row .kpi-delta.is-neutral {
    color: #C6CAD6;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.08);
}

.kpibar .kpibar-track {
    height: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.kpibar .kpibar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #37C2E2, #2AC58E);
}

.kpi-card .performance-indicator.progress-bar {
    position: static !important;
}



/* =====================
   Guardian Scorecard
   ===================== */


.guardian-scorecard {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 6px;
}

.guardian-scorecard .gs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.guardian-scorecard .gs-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    min-width: 0;
    /* enables flex ellipsis children */
}

.guardian-scorecard .gs-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}


.guardian-scorecard .gs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
}

.guardian-scorecard .gs-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 12px 12px;
    gap: 6px;
}


.guardian-scorecard .gs-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.guardian-scorecard .gs-item-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.guardian-scorecard .gs-label {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guardian-scorecard .gs-value {
    font-weight: 500;
    font-size: 16px;
    letter-spacing: .2px;
}

/* Color tags for values */
.guardian-scorecard .gs-value.is-green {
    color: #3ec569;
}

.guardian-scorecard .gs-value.is-yellow {
    color: #F9BD2C;
}

.guardian-scorecard .gs-value.is-amber {
    color: rgb(249, 115, 22);
}

.guardian-scorecard .gs-value.is-red {
    color: #f42746;
}

.guardian-scorecard .gs-value.is-cyan {
    color: #3cb4cc;
}


/* ======== Final: Recent Matches (Summary Table Style) ======== */

.recent-matches-widget {
    background: #1c1c24;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Toolbar */
.recent-matches-widget .rm-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px 6px;
    ;
    border-bottom: 1px solid #454756;
}

.recent-matches-widget .rm-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.recent-matches-widget .rm-link {
    font-size: 14px;
    color: #4dd2ff;
    text-decoration: none;
}

.recent-matches-widget .rm-link:hover {
    text-decoration: underline;
}

/* Header row */
.recent-matches-widget .rm-header {
    display: grid;
    grid-template-columns: 0.8fr 0.8fr 1fr 1.5fr 1.5fr 1fr;
    padding: 11px 12px;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: white;
    background: var(--color-gray-1200);
    border-bottom: 1px solid #454756;
    gap: 6px;
}

.rm-empty {
    align-items: center;
    color: #a8aaaf;
    text-align: center;
    padding-top: 60px;
}

.recent-matches-widget .rm-row>.col {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    /* IMPORTANT: allows shrink inside grid cells */
}

.recent-matches-widget .rm-row .col span,
.recent-matches-widget .rm-row .col a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Rows container */
.recent-matches-widget .rm-rows {
    display: flex;
    flex-direction: column;
    height: 362px;
    overflow: scroll;
}

/* Each row */
.recent-matches-widget .rm-row {
    display: grid;
    grid-template-columns: 0.8fr 0.8fr 1fr 1.5fr 1.5fr 1fr;
    padding: 12px 12px;
    border-bottom: 1px solid #454756;
    align-items: center;
    transition: background 0.15s ease;
    gap: 6px;
}

.recent-matches-widget .rm-row:last-child {
    border-bottom: none;
}

.recent-matches-widget .rm-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ===== Analyse Match Button ===== */
.recent-matches-widget .col-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.recent-matches-widget .col-action .analyse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 13px;
    color: #E9EDF7;
    border: white 0.5px solid;
    border-radius: 6px;
    padding: 8px 14px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.08s ease;
    width: 90px;
}

.recent-matches-widget .col-action .analyse-btn:hover {
    background: var(--color-gray-500);
    border-color: white;
}

.recent-matches-widget .col-action .analyse-btn:active {
    transform: translateY(1px);
}

.recent-matches-widget .col-mode,
.recent-matches-widget .col-activity,
.recent-matches-widget .col-map {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recent-matches-widget .rm-mini-icon {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
    flex: 0 0 auto;
}

.recent-matches-widget .rm-mini-icon--thumb {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* Cells */
.recent-matches-widget .cell-date,
.recent-matches-widget .cell-mode,
.recent-matches-widget .cell-kda {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.recent-matches-widget .cell-result {
    font-size: 14px;
    font-weight: 600;
}

.recent-matches-widget .cell-result.win {
    color: #7fe59d;
}

.recent-matches-widget .cell-result.loss {
    color: #ff8e8e;
}

.recent-matches-widget .cell-result.draw,
.recent-matches-widget .cell-result.abandon {
    color: #f7c35f;
}

/* Hero cell */
.recent-matches-widget .cell-hero {
    display: flex;
    align-items: center;
    gap: 10px;
}

.recent-matches-widget .cell-hero img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.recent-matches-widget .cell-hero span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.recent-matches-widget .col-result.victory {
    color: #7fe59d;
    font-weight: 600;
}

.recent-matches-widget .col-result.defeat {
    color: #ff8e8e;
    font-weight: 600;
}


/* =====================
   GUIDES
   ===================== */

.resources-section {
    padding: 16px;
    grid-column: 5 / 13;
}

.resources-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.resources-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.resources-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    color: white;
}

/* Cards container */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    width: 100%;
}

/* Individual cards */
.resource-card {
    background: #1c1c24;
    border: 1px solid #454857;
    border-radius: 9px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.resource-card:hover {
    transform: translateY(-2px);
    background-color: #24252c;
}

/* Image area */
.resource-media {
    height: 85px;
    overflow: hidden;
    width: 100%;
}

.resource-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text content */
.resource-body {
    padding: 14px 14px 14px;
}

.resource-tag {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #3CB4CC;
}

.resource-title {
    margin: 8px 0 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

/* Scroll behavior */
.resources-grid::-webkit-scrollbar {
    height: 6px;
}

.resources-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* -------- Recommended Goals -------- */
/* Container */
.goals-right {
    grid-column: 1 / 5;
    grid-row: 4;
    position: relative;
    padding: 16px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .2px;
}

.card-body {
    padding-top: 12px;
}

.goal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.goal-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: start;
    padding: 12px;
    background: #24252C;
    border-radius: 6px;
    gap: 0px 8px;
}

.goal-main {
    display: contents;
}

.goal-action {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    white-space: nowrap;
    font-size: 14px;
    text-decoration: none;
    color: #3cb4cc;
    transition: color .15s ease;
}

.goal-action:hover {
    color: #4dd2ff;
}

.pill--survivability {
    background: #862ff71f;
    border: #862FF7 1px solid;
}

.pill--combat {
    background: #ec2ec61d;
    border: #EC2EC6 1px solid;
}

.pill--vision {
    background: #3cccb220;
    border: #3CCCB2 1px solid;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
}

.pill {
    grid-column: 2;
    grid-row: 1;
}

.goal-icon {
    width: auto;
    height: 14px;
    object-fit: contain;
}

.pill-text {
    line-height: 1;
}

.goal-title {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .2px;
    color: #fff;
    margin-bottom: 8px;
}

.goal-count {
    grid-column: 1;
    grid-row: 2;
    color: #a8aaaf;
    margin-bottom: 8px;
}

.goal-progress {
    display: flex;
    align-items: center;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    gap: 2px;
    grid-column: 1 / 3;
    grid-row: 3;
    background: transparent;
    position: relative;
    height: 6px;
    overflow: hidden;
    width: auto;
}

@media (max-width: 1660px) {

    .playstyle .ps-body {
        display: flex;
        flex-direction: column-reverse;
        gap: 6px;
        align-items: center;
    }

    .playstyle .ps-header {
        margin-bottom: 0px;
    }

    .playstyle .ps-chart {
        flex: 1;
        position: relative;
        display: grid;
        place-items: center;
        min-height: 240px;
        min-width: 234px;
    }

}

@media (max-width: 1440px) {

    .pill {
        grid-column: 1;
        grid-row: 1;
        max-width: fit-content;
    }

    .goal-title {
        grid-column: 1;
        grid-row: 2;
    }

    .goal-count {
        grid-column: 1;
        grid-row: 3;
        margin-bottom: unset;
    }

    .goal-progress {
        grid-row: 4;
    }

    .goal-title {
        margin-bottom: unset;
    }

    .goal-item {
        gap: 6px 0px;
    }


}


@media (max-width: 1330px) {

    .guardian-scorecard .gs-grid {
        grid-template-columns: 1fr;
        gap: 12px
    }

}

@media (max-width: 1080px) {

    /* Let children of the stacks participate directly in the grid */
    .stack-left,
    .stack-right {
        display: contents;
        padding-bottom: 0;
    }

    .chat-grids {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        grid-auto-rows: auto;
    }

    /* Row 1: Playstyle (left) + Scorecard (right) */

    /*.playstyle {
        grid-column: 1 / 13;
        grid-row: 1;
    }*/

    .playstyle {
        grid-column: 1 / 8;
        grid-row: 1;
    }

    .playstyle .ps-body {
        display: flex;
        flex-direction: row-reverse;
        gap: 6px;
        align-items: center;
    }

    .playstyle .ps-header {
        margin-bottom: 20px;
    }

    .playstyle .radar-widget {
        gap: 20px;
    }

    /*.guardian {
        grid-column: 1 / 7;
        grid-row: 2;
    }*/

    .guardian {
        grid-column: 8 / 13;
        grid-row: 1;
    }


    /* Row 2: KPI Tracker full width */

    /*.top-right {
        grid-column: 1 / 13;
        grid-row: 3;
    }*/

    .top-right {
        grid-column: 1 / 13;
        grid-row: 2;
    }

    /* Row 3: Recent Matches full width */


    /*.recent-matches {
        grid-column: 1 / 13;
        grid-row: 4;
    }*/

    .recent-matches {
        grid-column: 1 / 13;
        grid-row: 3;
    }

    /* Row 4: Goals (left) + Resources (right) */
    .goals-right {
        grid-column: 7 / 13;
        grid-row: 2;
    }

    /*.resources-section {
        grid-column: 1 / 13;
        grid-row: 5;
    }*/

    .resources-section {
        grid-column: 1 / 13;
        grid-row: 4;
    }

    .kpi-card {
        min-width: 126px;
    }

    .pill--combat,
    .pill--survivability,
    .pill--vision {
        background: unset;
        border: unset;
    }

    .pill {
        padding: unset;
    }

    .pill--combat {
        color: #EC2EC6;
    }

    .pill--survivability {
        color: #862FF7;
    }

    .pill--vision {
        color: #3CCCB2;
    }

    .goal-icon {
        display: none;
    }

}


@media (max-width: 900px) {

    .playstyle {
        grid-column: 1 / 13;
        grid-row: 1;
    }

    .guardian {
        grid-column: 1 / 13;
        grid-row: 2;
    }

    .top-right {
        grid-row: 3;
    }

    .recent-matches {
        grid-row: 4;
    }

    .resources-section {
        grid-row: 5;
    }


}


@media (max-width: 768px) {

    .chat-grids {
        width: unset;
        padding: 0 18px;
        left: 0;
        grid-template-columns: repeat(8, minmax(0, 1fr));
        grid-auto-rows: auto;
        padding-bottom: 80px;
    }

    .tab-nav {
        left: 0;
        padding: 0 18px;
    }

    .recent-matches-widget .rm-row {
        grid-template-columns: 0.8fr 0.9fr 1fr 1.4fr 1fr;
    }

    .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .recent-matches-widget .rm-header {
        grid-template-columns: 0.8fr 0.9fr 1fr 1.4fr 1fr;
    }

    .recent-matches-widget .col-map {
        display: none;
    }

    .playstyle {
        grid-column: 1 / 9;
    }

    .guardian {
        grid-column: 1 / 9;
    }

    .goals-right {
        grid-column: 5 / 9;
    }

    .top-right {
        grid-column: 1 / 9;
    }

    .recent-matches {
        grid-column: 1 / 9;
    }

    .resources-section {
        grid-column: 1 / 9;
    }



}

@media (max-width: 600px) {

    .recent-matches-widget .col-activity {
        display: none;
    }

    .recent-matches-widget .rm-row {
        grid-template-columns: 0.8fr 0.9fr 1fr 1fr;
    }

    .recent-matches-widget .rm-header {
        grid-template-columns: 0.8fr 0.9fr 1fr 1fr;
    }

    .guardian {
        grid-column: 1 / 9;
    }

    .goals-right {
        grid-column: 1 / 9;
        grid-row: 3;
    }

    .top-right {
        grid-row: 4;
    }

    .recent-matches {
        grid-row: 5;
    }

    .resources-section {
        grid-row: 6;
    }

}

@media (max-width: 540px) {

    .playstyle .ps-body {
        display: flex;
        flex-direction: column-reverse;
        gap: 6px;
        align-items: center;
    }
}

@media (max-width: 430px) {

    .recent-matches-widget .col-result {
        display: none;
    }

    .recent-matches-widget .rm-row {
        grid-template-columns: 0.9fr 1.1fr 1fr;
    }

    .recent-matches-widget .rm-header {
        grid-template-columns: 0.9fr 1.1fr 1fr;
    }



}
