html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) {
    --pr-page: #06110e;
    --pr-panel: #0c2018;
    --pr-panel-2: #11291f;
    --pr-line: rgba(221, 176, 54, 0.42);
    --pr-line-soft: rgba(221, 176, 54, 0.2);
    --pr-gold: #f2bd3f;
    --pr-gold-2: #c58a1f;
    --pr-cream: #fff7df;
    --pr-muted: #c9d8d0;
}

@media (min-width: 1101px) {
    html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .shell-header-row {
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 16px !important;
        max-width: 1520px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .shell-menu-toggle {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
        margin: 0 !important;
        position: static !important;
    }

    html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .shell-nav {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-content: flex-end !important;
        justify-self: end !important;
        margin: 0 !important;
        position: static !important;
        width: auto !important;
    }

    html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .shell-actions {
        grid-column: 3 !important;
        grid-row: 1 !important;
        justify-content: flex-end !important;
        justify-self: end !important;
        margin: 0 !important;
        position: static !important;
        width: auto !important;
    }
}

html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .shell-site-header {
    background:
        radial-gradient(circle at 76% 0%, rgba(70, 104, 69, 0.16), transparent 24rem),
        #07110f !important;
    border-bottom: 1px solid rgba(239, 185, 63, 0.32) !important;
    box-shadow: none !important;
    padding: 16px clamp(18px, 2.6vw, 42px) 0 !important;
}

html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .shell-nav > .shell-nav-home > .shell-nav-icon {
    display: none !important;
}

html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .shell-nav .shell-nav-home,
html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .shell-nav .shell-mega-trigger,
html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .shell-login-link {
    border-color: rgba(239, 185, 63, 0.46) !important;
    border-radius: 8px !important;
    color: #fff8df !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 18px !important;
}

html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .shell-nav .shell-nav-home.is-active,
html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .shell-nav .shell-mega-trigger.is-active {
    background: linear-gradient(180deg, #f7c94b 0%, #dfa32c 100%) !important;
    border-color: #f7c94b !important;
    color: #090b08 !important;
}

html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .shell-nav .shell-mega-panel a {
    align-items: center !important;
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: 26px minmax(0, 1fr) auto !important;
}

html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .shell-nav .shell-mega-panel a .shell-nav-icon {
    align-items: center !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 7px !important;
    color: #fff !important;
    display: inline-flex !important;
    font-size: 15px !important;
    height: 26px !important;
    justify-content: center !important;
    line-height: 1 !important;
    width: 26px !important;
}

html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .shell-nav .shell-mega-panel a:hover .shell-nav-icon,
html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .shell-nav .shell-mega-panel a:focus-visible .shell-nav-icon,
html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .shell-nav .shell-mega-panel a.is-active .shell-nav-icon {
    background: rgba(0, 0, 0, 0.12) !important;
    border-color: rgba(0, 0, 0, 0.18) !important;
    color: #fff !important;
}

html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .shell-live-event-strip {
    background: linear-gradient(90deg, rgba(12, 31, 24, 0.96), rgba(18, 34, 24, 0.96)) !important;
    border: 1px solid rgba(239, 198, 87, 0.44) !important;
    border-radius: 8px !important;
    column-gap: 12px !important;
    grid-template-columns: minmax(260px, 1fr) auto auto minmax(300px, auto) !important;
    margin: 10px auto 0 !important;
    max-width: 1520px !important;
    padding: 9px 12px !important;
}

html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .shell-page {
    background:
        radial-gradient(circle at 50% 0, rgba(36, 58, 50, 0.32), transparent 42rem),
        linear-gradient(90deg, #050d0b 0%, #091a16 14%, #0b1a20 50%, #091a16 86%, #050d0b 100%) !important;
    padding: clamp(24px, 2.8vw, 42px) clamp(16px, 2.8vw, 44px) 64px !important;
}

html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .shell-component-card {
    width: min(1480px, calc(100vw - 48px)) !important;
    max-width: 1480px !important;
    margin: 0 auto !important;
    padding: clamp(18px, 2vw, 30px) !important;
    background: rgba(7, 18, 15, 0.72) !important;
    border: 1px solid rgba(221, 176, 54, 0.16) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .chessora {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--pr-cream);
}

html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) :is(.chessora-account-tabs, .chessora-tabs) {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    width: 100%;
    margin: 0 0 18px !important;
    padding: 10px !important;
    background: linear-gradient(180deg, rgba(16, 38, 29, 0.96), rgba(8, 21, 16, 0.96)) !important;
    border: 1px solid var(--pr-line);
    border-radius: 8px;
}

html body.chessora-shell.view-friends .chessora-account-tabs {
    display: none !important;
}

html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) :is(.chessora-account-tabs, .chessora-tabs) a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid var(--pr-line);
    border-radius: 6px;
    background: #06110e;
    color: var(--pr-cream);
    font-weight: 900;
    text-decoration: none;
}

html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) :is(.chessora-account-tabs, .chessora-tabs) a:is(.is-active, :hover, :focus-visible) {
    background: linear-gradient(180deg, #ffd764 0%, var(--pr-gold) 48%, var(--pr-gold-2) 100%);
    color: #080806;
    border-color: #ffe28a;
}

html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) :is(.chessora-account-head, .chessora-page-head, .chessora-tournament-hero) {
    display: grid !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(20px, 4vw, 72px);
    align-items: center;
    margin: 0 0 18px !important;
    padding: clamp(28px, 4vw, 56px) !important;
    overflow: hidden;
    background:
        linear-gradient(105deg, rgba(50, 66, 38, 0.72), rgba(11, 31, 23, 0.98) 48%, rgba(8, 20, 15, 0.98)),
        var(--pr-panel) !important;
    border: 1px solid var(--pr-line) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

html body.chessora-shell.view-friends .chessora-account-head {
    min-height: 0;
    padding: clamp(24px, 3vw, 42px) clamp(26px, 4vw, 58px) !important;
}

html body.chessora-shell.view-friends .chessora-account-head > p {
    max-width: 56ch;
    justify-self: end;
}

html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .chessora-kicker {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 12px !important;
    padding: 4px 8px;
    background: var(--pr-cream);
    color: #9a6909 !important;
    font-size: 0.78rem;
    font-weight: 1000;
    letter-spacing: 0 !important;
    text-transform: uppercase;
}

html body.chessora-shell.view-friends .chessora-kicker {
    background: rgba(255, 247, 223, 0.94);
    color: #9a6909 !important;
}

html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) :is(.chessora-account-head, .chessora-page-head) h1 {
    max-width: 11ch;
    margin: 0 !important;
    color: var(--pr-cream) !important;
    font-size: clamp(3rem, 5.5vw, 5.7rem) !important;
    line-height: 0.94 !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
}

html body.chessora-shell.view-friends .chessora-account-head h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 4.6vw, 4.9rem) !important;
}

html body.chessora-shell.view-tournaments .chessora-page-head h1,
html body.chessora-shell.view-members .chessora-page-head h1 {
    max-width: 13ch;
}

html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) :is(.chessora-account-head, .chessora-page-head) p {
    margin: 0;
    color: var(--pr-cream) !important;
    font-size: clamp(1rem, 1.25vw, 1.22rem);
    line-height: 1.55;
}

html body.chessora-shell.view-tournaments .chessora-tournament-hero-art {
    justify-self: end;
    display: grid;
    grid-template-columns: repeat(2, 76px);
    gap: 10px;
    opacity: 0.72;
}

html body.chessora-shell.view-tournaments .chessora-tournament-hero-art span {
    min-height: 76px;
    display: grid;
    place-items: center;
    border: 1px solid var(--pr-line);
    border-radius: 8px;
    background: rgba(255, 247, 223, 0.04);
    color: var(--pr-gold);
    font-size: 2.2rem;
    font-weight: 1000;
}

html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) :is(.chessora-panel, .chessora-lobby-panel, .chessora-guide-panel, .chessora-card, .chessora-tournament-agenda) {
    background: linear-gradient(180deg, rgba(17, 40, 30, 0.98), rgba(8, 23, 17, 0.98)) !important;
    border: 1px solid var(--pr-line) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: var(--pr-cream);
}

html body.chessora-shell.view-friends .chessora-friends-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

html body.chessora-shell.view-friends .chessora-panel {
    min-height: 280px;
    padding: 20px;
}

html body.chessora-shell.view-friends .chessora-panel-head,
html body.chessora-shell.view-members .chessora-lobby-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--pr-line-soft);
}

html body.chessora-shell.view-friends .chessora-panel-head h2,
html body.chessora-shell.view-members .chessora-lobby-panel-head strong {
    margin: 0;
    color: var(--pr-cream);
    font-size: 1.15rem;
    font-weight: 1000;
}

html body.chessora-shell.view-friends .chessora-panel-head span,
html body.chessora-shell.view-members .chessora-lobby-panel-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid var(--pr-line);
    border-radius: 999px;
    background: rgba(242, 189, 63, 0.16);
    color: var(--pr-gold);
    font-weight: 1000;
}

html body.chessora-shell.view-friends .chessora-friend-list {
    display: grid;
    gap: 12px;
}

html body.chessora-shell.view-friends .chessora-friend-list > p,
html body.chessora-shell.view-members .chessora-lobby-empty {
    margin: 0;
    padding: 20px;
    border: 1px solid rgba(221, 176, 54, 0.18);
    border-radius: 8px;
    background: rgba(3, 16, 12, 0.58);
    color: var(--pr-muted);
}

html body.chessora-shell.view-friends .chessora-friend-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--pr-line-soft);
    border-radius: 8px;
    background: rgba(3, 16, 12, 0.64);
}

html body.chessora-shell.view-friends .chessora-friend-avatar,
html body.chessora-shell.view-members .chessora-player-roster-avatar {
    width: 56px;
    height: 56px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid var(--pr-line);
    border-radius: 8px;
    background: #06110e;
    color: var(--pr-gold);
    font-weight: 1000;
}

html body.chessora-shell.view-friends .chessora-friend-avatar img,
html body.chessora-shell.view-members .chessora-player-roster-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

html body.chessora-shell.view-friends .chessora-friend-card strong,
html body.chessora-shell.view-friends .chessora-friend-card span,
html body.chessora-shell.view-friends .chessora-friend-card small {
    display: block;
}

html body.chessora-shell.view-friends .chessora-friend-card footer {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

html body.chessora-shell.view-members .chessora-roster-panel {
    padding: 24px;
}

html body.chessora-shell.view-members .chessora-player-filterbar {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(150px, 1fr)) minmax(180px, 0.75fr);
    gap: 12px;
    margin: 0 0 18px !important;
}

html body.chessora-shell.view-members .chessora-player-filterbar label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: var(--pr-cream);
    font-weight: 900;
}

html body.chessora-shell.view-members .chessora-player-filterbar input,
html body.chessora-shell.view-members .chessora-player-filterbar select {
    min-height: 46px;
    width: 100%;
    border: 1px solid var(--pr-line);
    border-radius: 8px;
    background: #06110e;
    color: var(--pr-cream);
    padding: 0 14px;
}

html body.chessora-shell.view-members .chessora-player-filter-toggle {
    min-height: 70px;
    align-self: end;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 10px;
    border: 1px solid var(--pr-line);
    border-radius: 8px;
    background: rgba(3, 16, 12, 0.6);
}

html body.chessora-shell.view-members .chessora-lobby-card-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

html body.chessora-shell.view-members .chessora-player-roster-card {
    display: grid;
    gap: 14px;
    min-height: 180px;
    padding: 16px !important;
    border: 1px solid var(--pr-line) !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, rgba(18, 44, 32, 0.96), rgba(7, 20, 15, 0.96)) !important;
    color: var(--pr-cream) !important;
    text-decoration: none;
}

html body.chessora-shell.view-members .chessora-player-roster-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

html body.chessora-shell.view-members .chessora-player-roster-identity strong {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 1.15rem;
    color: var(--pr-cream);
}

html body.chessora-shell.view-members .chessora-player-roster-ratings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

html body.chessora-shell.view-members .chessora-player-roster-ratings span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    border: 1px solid rgba(221, 176, 54, 0.2);
    border-radius: 8px;
    background: rgba(3, 16, 12, 0.58);
    color: var(--pr-cream);
    font-weight: 1000;
}

html body.chessora-shell.view-tournaments .chessora-tournament-guide {
    padding: 22px;
    margin: 0 0 16px;
}

html body.chessora-shell.view-tournaments .chessora-tournament-guide header {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--pr-line-soft);
}

html body.chessora-shell.view-tournaments .chessora-tournament-guide h2 {
    margin: 6px 0 8px;
    color: var(--pr-cream);
    font-size: clamp(1.7rem, 2.4vw, 2.5rem);
}

html body.chessora-shell.view-tournaments .chessora-tournament-guide > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

html body.chessora-shell.view-tournaments .chessora-tournament-guide article {
    padding: 16px;
    border: 1px solid var(--pr-line-soft);
    border-radius: 8px;
    background: rgba(3, 16, 12, 0.58);
}

html body.chessora-shell.view-tournaments :is(.chessora-tournament-list-tabs, .chessora-tournament-filterbar) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
}

html body.chessora-shell.view-tournaments :is(.chessora-tournament-list-tabs a, .chessora-tournament-filterbar button, .chessora-button) {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid var(--pr-line);
    border-radius: 8px;
    background: #06110e;
    color: var(--pr-cream);
    font-weight: 1000;
    text-decoration: none;
}

html body.chessora-shell.view-tournaments :is(.chessora-tournament-list-tabs a.is-active, .chessora-tournament-filterbar button.is-active, .chessora-button-primary),
html body.chessora-shell:is(.view-friends, .view-members) .chessora-button-primary {
    background: linear-gradient(180deg, #ffd764 0%, var(--pr-gold) 48%, var(--pr-gold-2) 100%) !important;
    color: #080806 !important;
    border-color: #ffe28a !important;
}

html body.chessora-shell.view-tournaments .chessora-tournament-agenda {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
}

html body.chessora-shell.view-tournaments .chessora-agenda-head {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
    gap: 14px;
    align-items: center;
    min-height: 110px;
    padding: 18px;
    border: 1px solid var(--pr-line-soft);
    border-radius: 8px;
    background: rgba(3, 16, 12, 0.58);
}

html body.chessora-shell.view-tournaments .chessora-agenda-row {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "time"
        "main"
        "state"
        "players";
    align-content: start;
    gap: 14px;
    min-height: 260px;
    padding: 18px;
    border: 1px solid var(--pr-line-soft);
    border-radius: 8px;
    background:
        radial-gradient(circle at 88% 12%, rgba(242, 189, 63, 0.11), transparent 9rem),
        linear-gradient(180deg, rgba(22, 50, 38, 0.96), rgba(8, 24, 18, 0.98));
}

html body.chessora-shell.view-tournaments .chessora-agenda-head strong,
html body.chessora-shell.view-tournaments .chessora-agenda-main strong {
    color: var(--pr-cream);
    font-size: 1.12rem;
}

html body.chessora-shell.view-tournaments .chessora-agenda-main,
html body.chessora-shell.view-tournaments .chessora-agenda-time {
    color: var(--pr-cream);
    text-decoration: none;
}

html body.chessora-shell.view-tournaments .chessora-agenda-main {
    grid-area: main;
    display: flex;
    gap: 12px;
    align-items: center;
}

html body.chessora-shell.view-tournaments .chessora-agenda-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 226, 138, 0.72);
    border-radius: 8px;
    background: linear-gradient(145deg, #ffe08a 0%, #dba12c 52%, #81580d 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    color: #fff7df;
    font-family: Georgia, serif;
    font-size: 1.8rem;
    font-weight: 1000;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.36);
}

html body.chessora-shell.view-tournaments .chessora-agenda-pill,
html body.chessora-shell.view-tournaments .chessora-agenda-players,
html body.chessora-shell.view-tournaments .chessora-agenda-time {
    display: grid;
    gap: 2px;
    padding: 9px 10px;
    border: 1px solid var(--pr-line-soft);
    border-radius: 8px;
    background: rgba(255, 247, 223, 0.04);
    color: var(--pr-cream);
}

html body.chessora-shell.view-tournaments .chessora-agenda-time {
    grid-area: time;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
    min-height: 54px;
}

html body.chessora-shell.view-tournaments .chessora-agenda-state {
    grid-area: state;
    display: grid;
    gap: 6px;
}

html body.chessora-shell.view-tournaments .chessora-agenda-players {
    grid-area: players;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-between;
}

html body.chessora-shell.view-tournaments :is(small, .chessora-agenda-row span, .chessora-agenda-row p, .chessora-tournament-guide p) {
    color: var(--pr-muted) !important;
}

@media (max-width: 1100px) {
    html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) :is(.chessora-account-head, .chessora-page-head, .chessora-tournament-hero),
    html body.chessora-shell.view-friends .chessora-friends-layout,
    html body.chessora-shell.view-tournaments .chessora-tournament-guide > div {
        grid-template-columns: 1fr;
    }

    html body.chessora-shell.view-members .chessora-player-filterbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html body.chessora-shell.view-tournaments .chessora-agenda-row {
        grid-template-columns: 1fr;
    }

    html body.chessora-shell.view-tournaments .chessora-tournament-agenda {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) .shell-component-card {
        width: calc(100vw - 20px) !important;
        padding: 14px !important;
    }

    html body.chessora-shell:is(.view-friends, .view-members, .view-tournaments) :is(.chessora-account-head, .chessora-page-head) h1 {
        font-size: clamp(2.5rem, 14vw, 4.2rem) !important;
    }

    html body.chessora-shell.view-members .chessora-player-filterbar,
    html body.chessora-shell.view-tournaments .chessora-agenda-head,
    html body.chessora-shell.view-tournaments .chessora-agenda-row,
    html body.chessora-shell.view-tournaments .chessora-tournament-agenda {
        grid-template-columns: 1fr;
    }
}
