.vsh-dashboard {
    --vsh-bg: #07101d;
    --vsh-panel: rgba(15, 27, 44, .88);
    --vsh-panel-strong: #111f32;
    --vsh-border: rgba(148, 163, 184, .14);
    --vsh-muted: #8fa0b8;
    --vsh-text: #f7f9fc;
    --vsh-accent: #f7ab39;
    width: min(100%, 1660px);
    min-width: 0;
    margin: 0 auto;
    padding: clamp(18px, 2.2vw, 34px);
    color: var(--vsh-text);
}

/* Hidden off-canvas shells must not widen the VS document. */
#quick_chat_sidebar.translate-x-full,
#toast:not(.show) { display: none !important; }

.vsh-dashboard *,
.vsh-dashboard *::before,
.vsh-dashboard *::after { box-sizing: border-box; }
.vsh-dashboard button { min-width: 0; font: inherit; color: inherit; }
.vsh-dashboard img { display: block; max-width: 100%; }

.vsh-identity {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(240px, 360px);
    align-items: center;
    gap: 20px;
    min-width: 0;
    padding: clamp(20px, 2.4vw, 34px);
    overflow: hidden;
    border: 1px solid rgba(247, 171, 57, .21);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 0%, rgba(247, 171, 57, .18), transparent 35%),
        linear-gradient(135deg, rgba(21, 39, 62, .98), rgba(8, 18, 31, .96));
    box-shadow: 0 22px 60px rgba(0, 0, 0, .22);
}

.vsh-identity::after {
    position: absolute;
    inset: auto -50px -105px auto;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(247, 171, 57, .13);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.vsh-avatar-button {
    position: relative;
    z-index: 1;
    width: 76px;
    height: 76px;
    padding: 3px;
    overflow: hidden;
    border: 1px solid rgba(247, 171, 57, .62);
    border-radius: 23px;
    background: rgba(247, 171, 57, .1);
    cursor: pointer;
}
.vsh-avatar-button img { width: 100%; height: 100%; border-radius: 19px; object-fit: cover; }
.vsh-identity-copy { position: relative; z-index: 1; min-width: 0; }
.vsh-eyebrow { color: var(--vsh-accent); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.vsh-identity h1 { margin: 7px 0 10px; overflow: hidden; font-size: clamp(24px, 2.3vw, 38px); font-weight: 850; line-height: 1.08; text-overflow: ellipsis; white-space: nowrap; }
.vsh-identity-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #bec9d8; font-size: 13px; }
.vsh-prime { padding: 4px 9px; border: 1px solid rgba(247, 171, 57, .28); border-radius: 999px; color: var(--vsh-accent); background: rgba(247, 171, 57, .08); font-size: 10px; font-weight: 800; text-transform: uppercase; }

.vsh-xp { position: relative; z-index: 1; min-width: 0; padding: 15px 16px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 15px; background: rgba(3, 10, 20, .37); }
.vsh-xp > div:first-child,
.vsh-level-progress { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #ccd5e1; font-size: 12px; font-weight: 700; }
.vsh-progress { flex-basis: 100%; height: 7px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: rgba(148, 163, 184, .16); }
.vsh-progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f7ab39, #ffd079); box-shadow: 0 0 18px rgba(247, 171, 57, .45); }

.vsh-quick-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}
.vsh-quick-action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid var(--vsh-border);
    border-radius: 15px;
    color: #dbe4ef;
    background: rgba(15, 28, 45, .82);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.vsh-quick-action i { color: var(--vsh-accent); font-size: 17px; }
.vsh-quick-action span { overflow: hidden; font-size: 12px; font-weight: 750; text-overflow: ellipsis; }
.vsh-quick-action:hover { border-color: rgba(247, 171, 57, .42); background: rgba(28, 43, 63, .95); transform: translateY(-1px); }

.vsh-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, .82fr); align-items: start; gap: clamp(14px, 1.5vw, 22px); min-width: 0; }
.vsh-main,
.vsh-rail { display: grid; gap: clamp(14px, 1.5vw, 22px); min-width: 0; }
.vsh-rail { position: sticky; top: 94px; }

.vsh-section {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--vsh-border);
    border-radius: 19px;
    background: linear-gradient(145deg, rgba(17, 31, 50, .94), rgba(11, 22, 37, .94));
    box-shadow: 0 12px 34px rgba(0, 0, 0, .12);
}
.vsh-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 15px; }
.vsh-section-head h2 { margin: 0; color: #f8fafc; font-size: 15px; font-weight: 820; letter-spacing: -.01em; }
.vsh-link { padding: 4px; border: 0; color: var(--vsh-accent) !important; background: transparent; font-size: 11px !important; font-weight: 800 !important; cursor: pointer; }

.vsh-resume { margin-bottom: 14px; }
.vsh-resume-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 16px 16px; }
.vsh-resume-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 62px; padding: 9px; border: 1px solid rgba(148, 163, 184, .1); border-radius: 13px; text-align: start; background: rgba(3, 11, 22, .27); cursor: pointer; }
.vsh-resume-item img { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; }
.vsh-resume-item span { display: grid; min-width: 0; }
.vsh-resume-item small { color: var(--vsh-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.vsh-resume-item strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.vsh-resume-item > i { color: #6f8098; font-size: 10px; }

.vsh-tournament-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 16px 16px; }
.vsh-tournament { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); min-height: 86px; padding: 0; overflow: hidden; border: 1px solid rgba(148, 163, 184, .11); border-radius: 14px; text-align: start; background: rgba(3, 11, 22, .3); cursor: pointer; }
.vsh-tournament > img { width: 96px; height: 100%; min-height: 86px; object-fit: cover; }
.vsh-tournament-copy { display: grid; align-content: center; gap: 5px; min-width: 0; padding: 11px 13px; }
.vsh-tournament-copy strong,
.vsh-tournament-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsh-tournament-copy strong { font-size: 12px; }
.vsh-tournament-copy > span { color: var(--vsh-muted); font-size: 10px; }
.vsh-status { width: max-content; max-width: 100%; color: #7dd3fc; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.vsh-tournament.is-live .vsh-status { color: #fb7185; }
.vsh-tournament.is-registration .vsh-status { color: #86efac; }

.vsh-post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 16px 16px; }
.vsh-post { display: grid; min-width: 0; padding: 0; overflow: hidden; border: 1px solid rgba(148, 163, 184, .1); border-radius: 15px; text-align: start; background: rgba(3, 11, 22, .28); cursor: pointer; }
.vsh-post-media { position: relative; display: block; aspect-ratio: 16 / 8; overflow: hidden; background: #050b13; }
.vsh-post-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.vsh-post:hover .vsh-post-media > img { transform: scale(1.025); }
.vsh-post-media > i { position: absolute; inset: 50% auto auto 50%; display: grid; width: 38px; height: 38px; border-radius: 50%; place-items: center; color: #0b1220; background: rgba(255, 255, 255, .9); transform: translate(-50%, -50%); }
.vsh-post-copy { display: grid; gap: 9px; min-width: 0; padding: 13px; }
.vsh-post-owner { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; }
.vsh-post-owner img { width: 28px; height: 28px; border-radius: 9px; object-fit: cover; }
.vsh-post-owner strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.vsh-post-owner time,
.vsh-post-copy > small { color: var(--vsh-muted); font-size: 9px; }
.vsh-post-text { display: -webkit-box; min-height: 34px; overflow: hidden; color: #ced8e5; font-size: 11px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.vsh-reel-strip { display: grid; grid-auto-columns: minmax(124px, 1fr); grid-auto-flow: column; gap: 10px; padding: 0 16px 17px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scroll-snap-type: inline mandatory; }
.vsh-reel { position: relative; min-width: 124px; aspect-ratio: 9 / 14; padding: 0; overflow: hidden; border: 1px solid rgba(148, 163, 184, .14); border-radius: 15px; background: #030811; cursor: pointer; scroll-snap-align: start; }
.vsh-reel > img { width: 100%; height: 100%; object-fit: cover; }
.vsh-reel-shade { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px; background: linear-gradient(transparent 45%, rgba(1, 5, 12, .87)); }
.vsh-reel-shade i { display: grid; width: 32px; height: 32px; border-radius: 50%; place-items: center; color: #09111d; background: rgba(255, 255, 255, .9); }
.vsh-reel-shade strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.vsh-community-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 0 16px 16px; }
.vsh-community { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; min-width: 0; padding: 10px; border: 1px solid rgba(148, 163, 184, .1); border-radius: 13px; background: rgba(3, 11, 22, .25); }
.vsh-community > img { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; }
.vsh-community > span { display: grid; min-width: 0; }
.vsh-community strong,
.vsh-community small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsh-community strong { font-size: 11px; }
.vsh-community small { color: var(--vsh-muted); font-size: 9px; }
.vsh-button,
.vsh-icon-button { min-height: 34px; padding: 7px 10px; border: 1px solid rgba(148, 163, 184, .18); border-radius: 9px; color: #cbd5e1; background: rgba(148, 163, 184, .06); font-size: 10px; font-weight: 750; cursor: pointer; }
.vsh-button.is-primary { border-color: rgba(247, 171, 57, .25); color: #101722; background: var(--vsh-accent); }

.vsh-people { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; padding: 0 16px 16px; }
.vsh-person { display: grid; justify-items: center; gap: 7px; min-width: 0; padding: 14px 8px; border: 1px solid rgba(148, 163, 184, .1); border-radius: 13px; text-align: center; background: rgba(3, 11, 22, .24); cursor: pointer; }
.vsh-person img { width: 50px; height: 50px; border-radius: 15px; object-fit: cover; }
.vsh-person span { display: grid; min-width: 0; width: 100%; }
.vsh-person strong,
.vsh-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsh-person strong { font-size: 10px; }
.vsh-person small { color: var(--vsh-muted); font-size: 9px; }

.vsh-compact-list,
.vsh-friends-list,
.vsh-achievements { display: grid; padding: 0 14px 14px; }
.vsh-compact-row,
.vsh-notification,
.vsh-friend,
.vsh-achievement { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; padding: 10px 5px; border: 0; border-bottom: 1px solid rgba(148, 163, 184, .08); text-align: start; background: transparent; }
.vsh-compact-row,
.vsh-notification { cursor: pointer; }
.vsh-compact-row:last-child,
.vsh-notification:last-child,
.vsh-friend:last-child,
.vsh-achievement:last-child { border-bottom: 0; }
.vsh-compact-row > img,
.vsh-notification > img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; }
.vsh-compact-row > span,
.vsh-notification > span,
.vsh-friend > span:nth-child(2),
.vsh-achievement > span { display: grid; min-width: 0; }
.vsh-compact-row strong,
.vsh-notification strong,
.vsh-friend strong,
.vsh-achievement strong,
.vsh-compact-row small,
.vsh-notification small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsh-compact-row strong,
.vsh-notification strong,
.vsh-friend strong,
.vsh-achievement strong { font-size: 11px; }
.vsh-compact-row small,
.vsh-notification small,
.vsh-friend small,
.vsh-achievement small,
.vsh-compact-row time,
.vsh-notification time { color: var(--vsh-muted); font-size: 9px; }
.vsh-friend { grid-template-columns: 38px minmax(0, 1fr) auto auto; }
.vsh-friend-avatar { position: relative; }
.vsh-friend-avatar img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; }
.vsh-online-dot { position: absolute; inset: auto -1px -1px auto; width: 11px; height: 11px; border: 2px solid #101d2f; border-radius: 50%; background: #64748b; }
.vsh-online-dot.is-online { background: #34d399; box-shadow: 0 0 9px rgba(52, 211, 153, .55); }
.vsh-friend small.is-online { color: #6ee7b7; }
.vsh-count { display: grid; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; place-items: center; color: #111827; background: var(--vsh-accent); font-size: 9px; font-weight: 900; }

.vsh-reward-ready { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 0 16px 17px; }
.vsh-reward-ready > i { display: grid; width: 45px; height: 45px; border: 1px solid rgba(247, 171, 57, .3); border-radius: 13px; place-items: center; color: var(--vsh-accent); background: rgba(247, 171, 57, .1); font-size: 19px; }
.vsh-reward-ready > span { display: grid; min-width: 0; }
.vsh-reward-ready strong { font-size: 11px; }
.vsh-reward-ready small { color: var(--vsh-muted); font-size: 9px; }
.vsh-level-progress { padding: 0 16px 17px; }
.vsh-achievement { grid-template-columns: 35px minmax(0, 1fr); }
.vsh-achievement > i { display: grid; width: 34px; height: 34px; border-radius: 10px; place-items: center; color: var(--vsh-accent); background: rgba(247, 171, 57, .09); }

.vsh-empty { display: grid; justify-items: center; gap: 8px; min-height: 105px; padding: 24px 16px; place-content: center; color: var(--vsh-muted); text-align: center; font-size: 10px; }
.vsh-empty > i { color: #627289; font-size: 20px; }
.vsh-empty .vsh-link { margin-top: 2px; }

.vsh-skeleton { overflow: hidden; border: 1px solid rgba(148, 163, 184, .08); border-radius: 20px; background: rgba(17, 31, 50, .82); }
.vsh-skeleton::after { display: block; width: 42%; height: 100%; content: ""; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .055), transparent); animation: vsh-shimmer 1.35s infinite; }
.vsh-skeleton-hero { height: 145px; }
.vsh-skeleton-quick { height: 54px; margin: 14px 0; }
.vsh-skeleton-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, .82fr); gap: 18px; }
.vsh-skeleton-card { height: 240px; }
@keyframes vsh-shimmer { from { transform: translateX(-120%); } to { transform: translateX(260%); } }

#nav_messages_button.active,
#nav_notifications_button.active,
#avatar_wrapper.active { color: #f7ab39 !important; background: rgba(247, 171, 57, .1) !important; }
#nav_messages_button.active::after,
#nav_notifications_button.active::after { position: absolute; inset: auto 25% -5px; height: 2px; border-radius: 99px; background: #f7ab39; content: ""; }

@media (max-width: 1199px) {
    body[data-pc-page="vs"] .vs-primary-nav { display: none !important; }
    body[data-pc-page="vs"] .vs-nav-actions > button:last-child { display: flex !important; }
    .vsh-dashboard { padding: 20px; }
    .vsh-layout,
    .vsh-skeleton-grid { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr); }
    .vsh-tournament-grid,
    .vsh-community-list { grid-template-columns: 1fr; }
    .vsh-post-list { grid-template-columns: 1fr; }
    .vsh-post-media { aspect-ratio: 16 / 7; }
    .vsh-people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
    .vsh-identity { grid-template-columns: auto minmax(0, 1fr); }
    .vsh-xp { grid-column: 1 / -1; }
    .vsh-layout,
    .vsh-skeleton-grid { grid-template-columns: minmax(0, 1fr); }
    .vsh-rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vsh-quick-actions { overflow-x: auto; grid-template-columns: repeat(5, minmax(128px, 1fr)); scrollbar-width: none; }
    .vsh-resume-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
    .vsh-dashboard { padding: 12px; }
    .vsh-identity { gap: 13px; padding: 18px; border-radius: 19px; }
    .vsh-avatar-button { width: 58px; height: 58px; border-radius: 17px; }
    .vsh-avatar-button img { border-radius: 14px; }
    .vsh-eyebrow { font-size: 9px; letter-spacing: .08em; }
    .vsh-identity h1 { margin-block: 4px 8px; font-size: 20px; }
    .vsh-quick-actions { grid-template-columns: repeat(5, 105px); margin-block: 10px; scroll-snap-type: inline mandatory; }
    .vsh-quick-action { min-height: 48px; scroll-snap-align: start; }
    .vsh-resume-list { grid-template-columns: minmax(0, 1fr); }
    .vsh-layout { display: grid; }
    .vsh-main,
    .vsh-rail { display: contents; }
    .vsh-messages { order: 1; }
    .vsh-reward { order: 2; }
    .vsh-main > .vsh-section { order: 4; }
    .vsh-main > .vsh-tournaments { order: 3; }
    .vsh-notifications { order: 8; }
    .vsh-friends { order: 9; }
    .vsh-rail > .vsh-section:not(.vsh-messages):not(.vsh-reward):not(.vsh-notifications):not(.vsh-friends) { order: 10; }
    .vsh-section { border-radius: 16px; }
    .vsh-section-head { padding: 16px 14px 13px; }
    .vsh-tournament-grid,
    .vsh-post-list,
    .vsh-community-list { padding: 0 11px 12px; }
    .vsh-post-media { aspect-ratio: 16 / 9; }
    .vsh-reel-strip { grid-auto-columns: 128px; padding-inline: 11px; }
    .vsh-people { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-inline: 11px; }
    .vsh-community { grid-template-columns: 42px minmax(0, 1fr) auto; }
    .vsh-community .vsh-button:not(.is-primary) { display: none; }
    .vsh-button,
    .vsh-icon-button { min-height: 38px; }
    .vsh-dashboard small,
    .vsh-post-owner time,
    .vsh-post-copy > small,
    .vsh-compact-row time,
    .vsh-notification time { font-size: 11px; }
    .vsh-dashboard strong,
    .vsh-post-text,
    .vsh-button,
    .vsh-icon-button { font-size: 12px; }
    .vsh-friend { grid-template-columns: 38px minmax(0, 1fr) auto; }
    .vsh-friend .vsh-icon-button { display: none; }
}

@media (max-width: 379px) {
    .vsh-dashboard { padding-inline: 9px; }
    .vsh-identity { grid-template-columns: 50px minmax(0, 1fr); padding: 15px; }
    .vsh-avatar-button { width: 50px; height: 50px; }
    .vsh-identity h1 { font-size: 18px; }
    .vsh-identity-meta { font-size: 11px; }
    .vsh-tournament { grid-template-columns: 78px minmax(0, 1fr); }
    .vsh-tournament > img { width: 78px; }
    .vsh-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vsh-friend .vsh-button { padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .vsh-dashboard *,
    .vsh-dashboard *::before,
    .vsh-dashboard *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
