/* Dashboard-specific components. Colors come from the active semantic theme tokens. */
.vrms-dashboard-page{
    width: 100%;
    max-width: 100%;
    display: grid;
    gap: clamp(1rem, 2vw, 1.4rem);
    padding: clamp(0.5rem, 2vw, 1.5rem);
    color: var(--VRMS_foreground);
}
.vrms-dashboard-page *{
    box-sizing: border-box;
}
.vrms-notice-content{
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
}
@media (max-width: 767.98px) {.vrms-page-container,
.vrms-accounting-detail-page,
.vrms-tournament-page,
.vrms-tournament-list-page,
.vrms-dashboard-page{
        padding: 0.5rem;
        gap: 1rem;
    }}
.vrms-notice-page{
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}
.vrms-notice-layout{
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    align-items: stretch;
}
.vrms-notice-detail-panel{
    padding: 0.9rem;
    border-radius: 1.15rem;
}
.vrms-notice-list{
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.25rem;
}
.vrms-notice-list-item{
    padding: 0.65rem 0.75rem;
    border-radius: 0.85rem;
    gap: 0.15rem;
}
.vrms-notice-list-subject{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
}
.vrms-notice-list-sender{
    font-size: 0.78rem;
}
.vrms-notice-detail-panel{
    min-height: 420px;
}
.vrms-notice-body-wrap{
    max-width: 980px;
}
.vrms-notice-body{
    min-height: 260px;
    line-height: 1.55;
}
.vrms-notice-pagination{
    flex: 0 0 auto;
    margin-top: 0.75rem;
    grid-template-columns: 1fr auto 1fr;
}
@media (min-width: 1600px) {.vrms-notice-page{
        max-width: 1650px;
    }.vrms-notice-layout{
        grid-template-columns: 400px minmax(0, 1fr);
    }}
@media (max-width: 1199.98px) {.vrms-notice-page{
        max-width: 100%;
    }.vrms-notice-layout{
        grid-template-columns: 1fr;
    }.vrms-notice-list{
        overflow: visible;
        padding-right: 0;
    }.vrms-notice-body-wrap{
        max-width: 100%;
    }}
@media (max-width: 767.98px) {.vrms-notice-list-item{
        padding: 0.75rem;
    }.vrms-notice-list-subject{
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }.vrms-notice-body{
        min-height: 180px;
    }}
.vrms-notice-page{
    width: 100%;
    max-width: 100%;
    display: grid;
    gap: clamp(1rem, 2vw, 1.4rem);
    padding: clamp(0.5rem, 2vw, 1.5rem);
    color: var(--VRMS_foreground);
}
.vrms-notice-page,
.vrms-notice-page *{
    box-sizing: border-box;
}
.vrms-notice-panel{
    overflow: visible;
}
.vrms-notice-layout{
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
    gap: 1rem;
    align-items: start;
}
.vrms-notice-detail-panel{
    min-width: 0;
    padding: 1rem;
    border-radius: 1.25rem;
    background: color-mix(in srgb, var(--VRMS_foreground) 6%, var(--VRMS_Background));
    color: var(--VRMS_foreground);
    border: 1px solid color-mix(in srgb, var(--VRMS_foreground) 22%, transparent);
}
.vrms-notice-list{
    display: grid;
    gap: 0.65rem;
}
.vrms-notice-list-item{
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--VRMS_foreground) 24%, transparent);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    background: var(--VRMS_Background);
    color: var(--VRMS_foreground);
    text-align: left;
    cursor: pointer;
    display: grid;
    gap: 0.25rem;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.vrms-notice-list-item:hover,
.vrms-notice-list-item.is-active{
    transform: translateY(-1px);
    background: color-mix(in srgb, var(--VRMS_accent) 12%, var(--VRMS_Background));
    border-color: var(--VRMS_foreground);
}
.vrms-notice-list-subject{
    font-weight: 900;
    overflow-wrap: anywhere;
}
.vrms-notice-list-sender{
    font-size: 0.85rem;
    opacity: 0.75;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.vrms-notice-pagination{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    margin-top: 0.5rem;
}
.vrms-notice-pagination .vrms-action-btn{
    width: 100%;
    margin: 0;
}
.vrms-notice-pagination .vrms-action-btn:disabled{
    opacity: 0.45;
    cursor: not-allowed;
}
.vrms-notice-page-indicator{
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--VRMS_foreground) 25%, transparent);
    font-size: 0.85rem;
    font-weight: 850;
    white-space: nowrap;
}
.vrms-notice-detail-header{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--VRMS_foreground) 20%, transparent);
    padding-bottom: 0.9rem;
    margin-bottom: 1rem;
}
.vrms-notice-subject{
    margin: 0;
    color: var(--VRMS_foreground);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 950;
    overflow-wrap: anywhere;
}
.vrms-notice-body-wrap{
    border-radius: 1rem;
    background: var(--VRMS_Background);
    color: var(--VRMS_foreground);
    border: 1px solid color-mix(in srgb, var(--VRMS_foreground) 20%, transparent);
    overflow: hidden;
}
.vrms-notice-body{
    min-height: 180px;
    padding: 1rem;
    color: var(--VRMS_foreground);
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}
.vrms-notice-meta{
    margin-top: 0.85rem;
    color: var(--VRMS_foreground);
    opacity: 0.72;
    font-size: 0.85rem;
    font-weight: 750;
}
.vrms-notice-attachments{
    margin-top: 1rem;
}
.vrms-notice-attachments-title{
    font-weight: 900;
    margin-bottom: 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.vrms-notice-attachment-list{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.vrms-notice-attachment-link{
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--VRMS_foreground);
    background: var(--VRMS_Background);
    color: var(--VRMS_foreground);
    text-decoration: none;
    font-weight: 800;
    max-width: 100%;
}
.vrms-notice-attachment-link:hover{
    background: var(--VRMS_accent);
    color: var(--VRMS_foreground);
}
@media (max-width: 1199.98px) {.vrms-notice-layout{
        grid-template-columns: 1fr;
    }}
@media (max-width: 767.98px) {.vrms-notice-page{
        padding: 0.5rem;
    }.vrms-notice-detail-panel{
        padding: 0.85rem;
        border-radius: 1.1rem;
    }.vrms-notice-pagination{
        grid-template-columns: 1fr;
    }.vrms-notice-page-indicator{
        text-align: center;
    }.vrms-notice-detail-header{
        display: grid;
        grid-template-columns: 1fr;
    }.vrms-notice-detail-header .vrms-icon-btn{
        width: 100%;
    }}
.vrms-dashboard-hero{
    position: relative;
    overflow: hidden;
}
.vrms-dashboard-hero::before{
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, var(--VRMS_accent), transparent 36%),
        linear-gradient(135deg, color-mix(in srgb, var(--VRMS_foreground) 9%, transparent), transparent 48%);
    opacity: 0.16;
    pointer-events: none;
}
.vrms-dashboard-hero-content{
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.vrms-dashboard-hero-text{
    margin: 0.45rem 0 0;
    max-width: 58rem;
    color: var(--VRMS_foreground);
    opacity: 0.82;
    font-weight: 650;
}
.vrms-dashboard-hero-meta{
    min-width: 12rem;
    display: grid;
    gap: 0.35rem;
    justify-items: end;
    color: var(--VRMS_foreground);
}
.vrms-dashboard-hero-meta span,
.vrms-dashboard-hero-meta strong{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--VRMS_foreground);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    background: var(--VRMS_Background);
    color: var(--VRMS_foreground);
    font-size: 0.85rem;
}
.vrms-dashboard-stat-grid{
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}
.vrms-dashboard-stat-card,
.vrms-dashboard-action-card,
.vrms-dashboard-game-item{
    background: var(--VRMS_Background);
    color: var(--VRMS_foreground);
    border: 1px solid var(--VRMS_foreground);
    box-shadow: 0 0.9rem 2.2rem color-mix(in srgb, var(--VRMS_foreground) 10%, transparent);
}
.vrms-dashboard-stat-card{
    min-height: 9rem;
    border-radius: 1.4rem;
    padding: 1rem;
    display: grid;
    align-content: space-between;
    gap: 0.7rem;
}
.vrms-dashboard-stat-label{
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.76;
}
.vrms-dashboard-stat-value{
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    font-weight: 950;
    color: var(--VRMS_accent);
}
.vrms-dashboard-stat-hint{
    font-size: 0.9rem;
    font-weight: 750;
    opacity: 0.72;
}
.vrms-dashboard-action-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.85rem;
}
.vrms-dashboard-action-card{
    min-height: 5.5rem;
    border-radius: 1.2rem;
    padding: 1rem;
    display: grid;
    gap: 0.35rem;
    align-content: center;
    text-decoration: none;
    transition: transform 0.16s ease, background 0.16s ease;
}
.vrms-dashboard-action-card:hover,
.vrms-dashboard-action-card:focus{
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--VRMS_accent) 12%, var(--VRMS_Background));
    color: var(--VRMS_foreground);
}
.vrms-dashboard-action-card strong{
    font-size: 1rem;
    font-weight: 950;
}
.vrms-dashboard-action-card span{
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.74;
}
.vrms-dashboard-main-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(32rem, 100%), 1fr));
    gap: clamp(1rem, 2vw, 1.4rem);
}
.vrms-dashboard-game-list{
    display: grid;
    gap: 0.75rem;
}
.vrms-dashboard-game-item{
    border-radius: 1.15rem;
    padding: 0.9rem;
    display: grid;
    grid-template-columns: minmax(8.5rem, 0.75fr) minmax(0, 1.4fr) minmax(8rem, 0.9fr);
    gap: 0.85rem;
    align-items: center;
}
.vrms-dashboard-game-date{
    font-weight: 950;
    color: var(--VRMS_accent);
}
.vrms-dashboard-game-main{
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}
.vrms-dashboard-game-main strong,
.vrms-dashboard-game-main span,
.vrms-dashboard-game-venue{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vrms-dashboard-game-main span,
.vrms-dashboard-game-venue{
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.74;
}
.vrms-dashboard-empty{
    border: 1px solid var(--VRMS_foreground);
}
@media (max-width: 1399.98px) {.vrms-dashboard-stat-grid{
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }}
@media (max-width: 767.98px) {.vrms-dashboard-hero-content,
.vrms-dashboard-hero-meta{
        align-items: stretch;
        justify-items: stretch;
        flex-direction: column;
    }.vrms-dashboard-stat-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }.vrms-dashboard-stat-card{
        min-height: 7.5rem;
        border-radius: 1rem;
    }.vrms-dashboard-game-item{
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }.vrms-dashboard-game-main strong,
.vrms-dashboard-game-main span,
.vrms-dashboard-game-venue{
        white-space: normal;
    }}
@media (max-width: 420px) {.vrms-dashboard-stat-grid{
        grid-template-columns: 1fr;
    }}
.vrms-dashboard-multi-stat-card{
    align-content: stretch;
}
.vrms-dashboard-multi-stat-list{
    display: grid;
    gap: 0.5rem;
}
.vrms-dashboard-multi-stat-item{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid color-mix(in srgb, var(--VRMS_foreground) 28%, transparent);
    padding-bottom: 0.35rem;
}
.vrms-dashboard-multi-stat-item:last-child{
    border-bottom: 0;
    padding-bottom: 0;
}
.vrms-dashboard-multi-stat-item strong{
    color: var(--VRMS_accent);
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 950;
}
.vrms-dashboard-multi-stat-item span{
    color: var(--VRMS_foreground);
    font-size: 0.82rem;
    font-weight: 800;
    text-align: right;
    opacity: 0.78;
}
.vrms-dashboard-selectable-signal{
    position: relative;
    overflow: hidden;
    border-width: 2px;
    border-color: var(--VRMS_accent);
    background: color-mix(in srgb, var(--VRMS_accent) 10%, var(--VRMS_Background));
}
.vrms-dashboard-selectable-signal::before{
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, var(--VRMS_accent), transparent 34%),
        linear-gradient(135deg, color-mix(in srgb, var(--VRMS_accent) 24%, transparent), transparent 58%);
    opacity: 0.22;
    pointer-events: none;
}
.vrms-dashboard-selectable-signal > *{
    position: relative;
    z-index: 1;
}
.vrms-dashboard-selectable-signal-header{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.vrms-dashboard-selectable-signal-text{
    margin: 0.45rem 0 0;
    color: var(--VRMS_foreground);
    font-weight: 750;
    opacity: 0.86;
}
.vrms-dashboard-selectable-signal-badge{
    min-width: 7rem;
    min-height: 7rem;
    border-radius: 999px;
    border: 2px solid var(--VRMS_accent);
    background: var(--VRMS_Background);
    color: var(--VRMS_foreground);
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 0.8rem;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--VRMS_accent) 45%, transparent);
    animation: vrmsSelectableSignalPulse 1.8s ease-in-out infinite;
}
.vrms-dashboard-selectable-signal-badge strong{
    color: var(--VRMS_accent);
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 950;
}
.vrms-dashboard-selectable-signal-badge span{
    color: var(--VRMS_foreground);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.vrms-dashboard-selectable-games-grid{
    margin-top: 1rem;
    width: 100%;
    min-width: 0;
}
@media (prefers-reduced-motion: reduce) {.vrms-dashboard-selectable-signal-badge{
        animation: none;
    }}
@media (max-width: 767.98px) {.vrms-dashboard-selectable-signal-header{
        flex-direction: column;
    }.vrms-dashboard-selectable-signal-badge{
        width: 100%;
        min-height: auto;
        border-radius: 1rem;
        display: flex;
        justify-content: center;
        gap: 0.75rem;
    }}
.vrms-dashboard-mobile-only{
    display: none;
}
.vrms-dashboard-desktop{
    display: block;
}
@media (max-width: 767.98px) {.vrms-dashboard-desktop{
        display: none !important;
    }.vrms-dashboard-mobile-only{
        display: grid;
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
        padding: 0.65rem;
    }}
.vrms-mobile-dashboard-section{
    margin: 0;
    padding: 0.8rem;
    border-radius: 0.95rem;
    overflow: hidden;
}
.vrms-mobile-dashboard-header{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}
.vrms-mobile-dashboard-title{
    margin: 0;
    color: var(--VRMS_foreground);
    font-size: 1.05rem;
    line-height: 1.18;
    font-weight: 950;
}
.vrms-mobile-dashboard-signal{
    border-color: var(--VRMS_warning);
    background: color-mix(in srgb, var(--VRMS_warning) 10%, var(--VRMS_Background));
}
.vrms-dashboard-mobile-only .vrms-dashboard-game-list{
    display: grid;
    gap: 0.55rem;
}
.vrms-dashboard-mobile-only .vrms-dashboard-game-item{
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.65rem;
    border-radius: 0.85rem;
    background: var(--VRMS_Background);
    color: var(--VRMS_foreground);
    border: 1px solid color-mix(in srgb, var(--VRMS_foreground) 16%, transparent);
}
.vrms-dashboard-mobile-only .vrms-dashboard-game-date{
    grid-row: 1 / span 2;
    min-width: 0;
    padding: 0.35rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: color-mix(in srgb, var(--VRMS_accent) 12%, var(--VRMS_Background));
    font-size: 0.72rem;
    line-height: 1.15;
    font-weight: 900;
}
.vrms-dashboard-mobile-only .vrms-dashboard-game-main{
    min-width: 0;
    display: grid;
    gap: 0.15rem;
}
.vrms-dashboard-mobile-only .vrms-dashboard-game-main strong{
    font-size: 0.9rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.vrms-dashboard-mobile-only .vrms-dashboard-game-main span{
    font-size: 0.72rem;
    line-height: 1.2;
    opacity: 0.72;
    overflow-wrap: anywhere;
}
.vrms-dashboard-mobile-only .vrms-dashboard-game-venue{
    grid-column: 2;
    font-size: 0.72rem;
    line-height: 1.2;
    opacity: 0.72;
    overflow-wrap: anywhere;
}
.vrms-mobile-dashboard-actions{
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}
.vrms-mobile-dashboard-action{
    min-height: 58px;
    padding: 0.7rem 0.8rem;
    border-radius: 0.9rem;
    display: grid;
    gap: 0.2rem;
    text-decoration: none;
    background: var(--VRMS_Background);
    color: var(--VRMS_foreground);
    border: 1px solid color-mix(in srgb, var(--VRMS_foreground) 18%, transparent);
}
.vrms-mobile-dashboard-action:hover,
.vrms-mobile-dashboard-action:focus{
    color: var(--VRMS_foreground);
    border-color: var(--VRMS_accent);
    background: color-mix(in srgb, var(--VRMS_accent) 10%, var(--VRMS_Background));
}
.vrms-mobile-dashboard-action strong{
    font-size: 0.92rem;
    line-height: 1.15;
    font-weight: 950;
}
.vrms-mobile-dashboard-action span{
    font-size: 0.75rem;
    line-height: 1.2;
    opacity: 0.68;
}
@media (max-width: 420px) {.vrms-dashboard-mobile-only{
        padding: 0.45rem;
        gap: 0.55rem;
    }.vrms-mobile-dashboard-section{
        padding: 0.65rem;
        border-radius: 0.85rem;
    }.vrms-dashboard-mobile-only .vrms-dashboard-game-item{
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 0.45rem;
        padding: 0.55rem;
    }.vrms-dashboard-mobile-only .vrms-dashboard-game-date{
        font-size: 0.66rem;
    }}

/* Dashboard-only layout refinements. */
.vrms-dashboard-actions-panel,
.vrms-dashboard-list-panel,
.vrms-dashboard-referee-season-panel,
.vrms-debug-panel{
    min-width: 0;
    padding: var(--app-space-4);
}

.vrms-dashboard-referee-season-grid{
    align-items: stretch;
}

.vrms-mobile-selectable-games{
    display: grid;
    gap: var(--app-space-3);
    min-width: 0;
}

.vrms-debug-output{
    max-width: 100%;
    overflow: auto;
    margin: 0;
    padding: var(--app-space-3);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-sm);
    background: var(--app-surface-muted);
    color: var(--app-text);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* =========================================================
   CENTRAL APPLICATION SHELL
   ========================================================= */
.vrms-app-main{
    display: block;
    width: 100%;
    min-width: 0;
    flex: 1 0 auto;
    color: var(--app-text);
}

.vrms-app-main-standard{
    padding: clamp(var(--app-space-3), 2vw, var(--app-space-6));
}

.vrms-app-main-auth{
    display: flex;
    padding: 0;
}

.vrms-app-content{
    width: min(100%, 112rem);
    min-width: 0;
    margin-inline: auto;
}

.vrms-app-main-auth .vrms-app-content{
    display: flex;
    width: 100%;
    max-width: none;
}

.vrms-app-main-public .vrms-app-content{
    width: min(100%, 96rem);
}

.vrms-skip-link{
    position: fixed;
    top: var(--app-space-2);
    left: var(--app-space-2);
    z-index: 30000;
    padding: var(--app-space-2) var(--app-space-3);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    background: var(--app-surface-elevated);
    color: var(--app-text);
    box-shadow: var(--app-shadow);
    transform: translateY(-160%);
    transition: transform .18s ease;
}

.vrms-skip-link:focus{
    transform: translateY(0);
}

.vrms-alert-container{
    position: fixed;
    top: clamp(4.5rem, 8vw, 5.75rem);
    right: clamp(var(--app-space-2), 2vw, var(--app-space-5));
    z-index: 22000;
    display: grid;
    width: min(calc(100% - 2rem), 28rem);
    gap: var(--app-space-2);
    pointer-events: none;
}

.vrms-alert{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--app-space-3);
    padding: var(--app-space-3) var(--app-space-4);
    border: 1px solid var(--app-border);
    border-left-width: .3rem;
    border-radius: var(--app-radius-md);
    background: var(--app-surface-elevated);
    color: var(--app-text);
    box-shadow: var(--app-shadow);
    pointer-events: auto;
}

.vrms-alert-success{ border-left-color: var(--app-status-success); }
.vrms-alert-danger{ border-left-color: var(--app-status-danger); }
.vrms-alert-warning{ border-left-color: var(--app-status-warning); }
.vrms-alert-info{ border-left-color: var(--app-status-info); }

.vrms-alert-content{
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: var(--app-space-2);
}

.vrms-alert-content i{
    margin-top: .2rem;
    flex: 0 0 auto;
}

.vrms-alert-content span{
    min-width: 0;
    overflow-wrap: anywhere;
}

.vrms-alert-close{
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: var(--app-radius-sm);
    background: transparent;
    color: var(--app-text-muted);
}

.vrms-alert-close:hover,
.vrms-alert-close:focus-visible{
    background: var(--app-action-hover);
    color: var(--app-text);
}

.vrms-inline-alert{
    display: flex;
    align-items: flex-start;
    gap: var(--app-space-3);
    width: min(100%, 64rem);
    margin: var(--app-space-4) auto;
    padding: var(--app-space-4);
    border: 1px solid var(--app-border);
    border-left: .3rem solid var(--app-status-danger);
    border-radius: var(--app-radius-md);
    background: var(--app-surface-elevated);
    color: var(--app-text);
}

.vrms-loading-overlay{
    position: fixed;
    inset: 0;
    z-index: 25000;
    display: grid;
    place-items: center;
    padding: var(--app-space-4);
    background: var(--app-overlay);
    backdrop-filter: blur(.2rem);
}

.vrms-loading-overlay[hidden]{
    display: none;
}

.vrms-loading-dialog{
    display: grid;
    min-width: min(15rem, 100%);
    justify-items: center;
    gap: var(--app-space-3);
    padding: var(--app-space-5);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    background: var(--app-surface-elevated);
    color: var(--app-text);
    box-shadow: var(--app-shadow);
}

.vrms-loading-spinner{
    color: var(--app-action-primary);
}

.vrms-loading-text{
    color: var(--app-text-muted);
    font-weight: 650;
}

.vrms-is-loading{
    overflow: hidden;
}

.vrms-debug-panel{
    display: flex;
    width: min(calc(100% - 2rem), 112rem);
    margin: var(--app-space-3) auto;
    padding: var(--app-space-3);
    flex-wrap: wrap;
    gap: var(--app-space-2) var(--app-space-4);
    border: 1px dashed var(--app-status-warning);
    border-radius: var(--app-radius-md);
    background: var(--app-surface-muted);
    color: var(--app-text-muted);
    font-size: .78rem;
}

.vrms-debug-panel strong{
    color: var(--app-text);
}

@media (max-width: 767.98px) {
    .vrms-app-main-standard{
        padding: var(--app-space-2);
    }

    .vrms-alert-container{
        top: 4.25rem;
        right: var(--app-space-2);
        left: var(--app-space-2);
        width: auto;
    }
}


.vrms-debug-panel{
    display: block;
}

.vrms-debug-panel-header{
    display: flex;
    align-items: center;
    gap: var(--app-space-2);
    margin-bottom: var(--app-space-3);
    color: var(--app-text);
}

.vrms-debug-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: var(--app-space-2);
    margin: 0;
}

.vrms-debug-item{
    min-width: 0;
    padding: var(--app-space-2) var(--app-space-3);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-sm);
    background: var(--app-surface);
}

.vrms-debug-item dt{
    margin: 0 0 .2rem;
    color: var(--app-text-muted);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.vrms-debug-item dd{
    margin: 0;
    color: var(--app-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .82rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

/* =========================================================
   COMPACT RESPONSIVE HOME DASHBOARD
   ========================================================= */
.vrms-home-page{
    width: 100%;
    display: grid;
    gap: var(--app-space-4);
    color: var(--app-text);
}

.vrms-home-page,
.vrms-home-page *{
    box-sizing: border-box;
}

.vrms-home-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--app-space-4);
    padding: .9rem 1rem;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--app-action-primary) 7%, var(--app-surface)), var(--app-surface) 62%);
}

.vrms-home-heading-copy{
    min-width: 0;
}

.vrms-home-title{
    margin: .12rem 0 0;
    color: var(--app-text);
    font-size: clamp(1.25rem, 2.1vw, 1.7rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.vrms-home-heading-meta{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .45rem;
}

.vrms-home-heading-chip{
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    min-height: 2rem;
    padding: .34rem .62rem;
    border: 1px solid var(--app-border);
    border-radius: 999px;
    background: var(--app-surface-muted);
    color: var(--app-text-muted);
    font-size: .75rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.vrms-home-heading-chip-accent{
    border-color: color-mix(in srgb, var(--app-action-primary) 45%, var(--app-border));
    background: color-mix(in srgb, var(--app-action-primary) 10%, var(--app-surface));
    color: var(--app-text);
}

.vrms-home-metrics{
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .65rem;
}

.vrms-home-metric{
    min-width: 0;
    min-height: 5.1rem;
    display: grid;
    grid-template-columns: 2.1rem minmax(0, 1fr);
    align-items: center;
    gap: .65rem;
    padding: .72rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    background: var(--app-surface);
    color: var(--app-text);
    box-shadow: var(--app-shadow-sm, 0 .25rem .8rem color-mix(in srgb, #000 8%, transparent));
}

.vrms-home-metric-icon{
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    border-radius: .72rem;
    background: color-mix(in srgb, var(--app-action-primary) 12%, var(--app-surface-muted));
    color: var(--app-action-primary);
    font-size: .95rem;
}

.vrms-home-metric-copy{
    min-width: 0;
    display: grid;
    gap: .05rem;
}

.vrms-home-metric-copy strong{
    color: var(--app-text);
    font-size: 1.35rem;
    font-weight: 850;
    line-height: 1;
}

.vrms-home-metric-copy span,
.vrms-home-metric-copy small{
    overflow: hidden;
    color: var(--app-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vrms-home-metric-copy span{
    font-size: .75rem;
    font-weight: 750;
}

.vrms-home-metric-copy small{
    font-size: .66rem;
    font-weight: 650;
}

.vrms-home-occupancy{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--app-space-3);
    padding: .62rem .8rem;
    color: var(--app-text-muted);
    font-size: .76rem;
    font-weight: 750;
}

.vrms-home-occupancy-values{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .45rem;
}

.vrms-home-occupancy-values strong{
    display: inline-flex;
    align-items: baseline;
    gap: .28rem;
    padding: .25rem .5rem;
    border: 1px solid var(--app-border);
    border-radius: 999px;
    background: var(--app-surface-muted);
    color: var(--app-text);
    font-size: .83rem;
}

.vrms-home-occupancy-values small{
    color: var(--app-text-muted);
    font-size: .65rem;
    font-weight: 700;
}

.vrms-home-occupancy-values .is-warning{
    border-color: color-mix(in srgb, var(--app-status-warning) 55%, var(--app-border));
    background: color-mix(in srgb, var(--app-status-warning) 10%, var(--app-surface));
}

.vrms-home-occupancy-values .is-success{
    border-color: color-mix(in srgb, var(--app-status-success) 55%, var(--app-border));
    background: color-mix(in srgb, var(--app-status-success) 10%, var(--app-surface));
}

.vrms-home-layout{
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(17rem, .8fr);
    gap: var(--app-space-4);
    align-items: start;
}

.vrms-home-main-column,
.vrms-home-side-column{
    min-width: 0;
    display: grid;
    gap: var(--app-space-4);
}

.vrms-home-section,
.vrms-home-selectable{
    min-width: 0;
    padding: .9rem;
}

.vrms-home-section-heading{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--app-space-3);
    margin-bottom: .7rem;
}

.vrms-home-section-title{
    margin: .1rem 0 0;
    color: var(--app-text);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.vrms-home-section-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.8rem;
    min-height: 1.8rem;
    padding: .28rem .5rem;
    border: 1px solid color-mix(in srgb, var(--app-action-primary) 42%, var(--app-border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--app-action-primary) 10%, var(--app-surface));
    color: var(--app-text);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
}

.vrms-home-section-hint{
    margin: -.25rem 0 .75rem;
    color: var(--app-text-muted);
    font-size: .76rem;
    line-height: 1.35;
}

.vrms-home-selectable{
    border-color: color-mix(in srgb, var(--app-status-selectable) 58%, var(--app-border));
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--app-status-selectable) 7%, var(--app-surface)), var(--app-surface) 45%);
}

.vrms-home-selectable-grid{
    margin-top: 0;
}

.vrms-home-selectable .rb-game-grid{
    gap: .7rem;
}

.vrms-home-selectable .rb-game-card{
    border-radius: var(--app-radius-md);
    box-shadow: none;
}

.vrms-home-selectable .rb-game-card-header{
    grid-template-columns: 6.4rem minmax(0, 1fr);
}

.vrms-home-selectable .rb-game-date,
.vrms-home-selectable .rb-game-identity{
    padding: .52rem .6rem;
}

.vrms-home-selectable .rb-game-match{
    min-height: 0;
    padding: .58rem .65rem .5rem;
}

.vrms-home-selectable .rb-game-team{
    min-height: 2.7rem;
    padding: .42rem .5rem;
}

.vrms-home-selectable .rb-game-location,
.vrms-home-selectable .rb-game-officials,
.vrms-home-selectable .rb-game-actions{
    padding-inline: .65rem;
}

.vrms-home-game-list{
    display: grid;
    gap: .48rem;
}

.vrms-home-game-row{
    min-width: 0;
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr);
    gap: .7rem;
    align-items: stretch;
    padding: .52rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    background: var(--app-surface-muted);
    color: var(--app-text);
}

.vrms-home-game-date{
    display: grid;
    place-items: center;
    align-content: center;
    min-width: 0;
    padding: .35rem .28rem;
    border: 1px solid color-mix(in srgb, var(--app-action-primary) 28%, var(--app-border));
    border-radius: .7rem;
    background: var(--app-surface);
    text-align: center;
}

.vrms-home-game-date strong{
    color: var(--app-text);
    font-size: 1.2rem;
    font-weight: 850;
    line-height: 1;
}

.vrms-home-game-date span,
.vrms-home-game-date time{
    color: var(--app-text-muted);
    font-size: .63rem;
    font-weight: 700;
    line-height: 1.2;
}

.vrms-home-game-date time{
    margin-top: .18rem;
    padding: .14rem .32rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--app-action-primary) 10%, var(--app-surface-muted));
    color: var(--app-text);
}

.vrms-home-game-content{
    min-width: 0;
    display: grid;
    align-content: center;
    gap: .23rem;
}

.vrms-home-game-title{
    min-width: 0;
    overflow: hidden;
    color: var(--app-text);
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vrms-home-game-meta{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .6rem;
    min-width: 0;
    color: var(--app-text-muted);
    font-size: .67rem;
    font-weight: 680;
}

.vrms-home-game-meta span,
.vrms-home-game-venue{
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    min-width: 0;
}

.vrms-home-game-meta span:not(.vrms-home-game-function),
.vrms-home-game-venue span{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vrms-home-game-function{
    padding: .12rem .36rem;
    border: 1px solid color-mix(in srgb, var(--app-action-primary) 38%, var(--app-border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--app-action-primary) 9%, var(--app-surface));
    color: var(--app-text);
    font-weight: 800;
}

.vrms-home-game-venue{
    color: var(--app-text-muted);
    font-size: .68rem;
    font-weight: 650;
}

.vrms-home-actions{
    display: grid;
    gap: .4rem;
}

.vrms-home-action{
    min-width: 0;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .6rem;
    min-height: 3rem;
    padding: .5rem .58rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    background: var(--app-surface-muted);
    color: var(--app-text);
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.vrms-home-action:hover,
.vrms-home-action:focus-visible{
    border-color: var(--app-action-primary);
    background: color-mix(in srgb, var(--app-action-primary) 9%, var(--app-surface));
    color: var(--app-text);
    text-decoration: none;
    transform: translateY(-1px);
}

.vrms-home-action-icon{
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: .65rem;
    background: var(--app-surface);
    color: var(--app-action-primary);
    font-size: .8rem;
}

.vrms-home-action-copy{
    min-width: 0;
    display: grid;
    gap: .05rem;
}

.vrms-home-action-copy strong,
.vrms-home-action-copy small{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vrms-home-action-copy strong{
    color: var(--app-text);
    font-size: .78rem;
    font-weight: 780;
}

.vrms-home-action-copy small{
    color: var(--app-text-muted);
    font-size: .65rem;
    font-weight: 620;
}

.vrms-home-action-arrow{
    color: var(--app-text-muted);
    font-size: .65rem;
}

.vrms-home-season-grid{
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .38rem;
}

.vrms-home-season-grid > div{
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: .1rem;
    padding: .48rem .2rem;
    border: 1px solid var(--app-border);
    border-radius: .72rem;
    background: var(--app-surface-muted);
    text-align: center;
}

.vrms-home-season-grid strong{
    color: var(--app-text);
    font-size: 1rem;
    font-weight: 850;
    line-height: 1;
}

.vrms-home-season-grid span{
    overflow: hidden;
    width: 100%;
    color: var(--app-text-muted);
    font-size: .6rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vrms-home-season-grid .is-total{
    border-color: color-mix(in srgb, var(--app-action-primary) 45%, var(--app-border));
    background: color-mix(in srgb, var(--app-action-primary) 10%, var(--app-surface));
}

.vrms-home-empty{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 4rem;
    padding: .8rem;
    text-align: center;
}

.vrms-home-inbox{
    overflow: hidden;
}

.vrms-home-notice-content{
    min-width: 0;
}

.vrms-home-inbox .vrms-notice-page{
    padding: 0;
    gap: .65rem;
}

.vrms-home-inbox .vrms-notice-layout{
    grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr);
    gap: .7rem;
}

.vrms-home-inbox .vrms-notice-list{
    gap: .4rem;
}

.vrms-home-inbox .vrms-notice-list-item{
    padding: .55rem .65rem;
    border-radius: .7rem;
}

.vrms-home-inbox .vrms-notice-list-subject{
    font-size: .78rem;
}

.vrms-home-inbox .vrms-notice-list-sender{
    font-size: .66rem;
}

.vrms-home-inbox .vrms-notice-detail-panel{
    min-height: 18rem;
    padding: .7rem;
    border-radius: .8rem;
}

.vrms-home-inbox .vrms-notice-detail-header{
    margin-bottom: .65rem;
    padding-bottom: .55rem;
}

.vrms-home-inbox .vrms-notice-subject{
    font-size: 1rem;
}

.vrms-home-inbox .vrms-notice-body{
    min-height: 10rem;
    padding: .75rem;
    font-size: .8rem;
}

.vrms-home-debug-actions{
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .7rem;
}

.vrms-home-debug-actions form{
    margin: 0;
}

@media (max-width: 1399.98px){
    .vrms-home-metrics{
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1099.98px){
    .vrms-home-layout{
        grid-template-columns: 1fr;
    }

    .vrms-home-side-column{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vrms-home-inbox .vrms-notice-layout{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px){
    .vrms-home-page{
        gap: .7rem;
    }

    .vrms-home-header{
        align-items: flex-start;
        padding: .72rem;
    }

    .vrms-home-heading-meta{
        justify-content: flex-start;
    }

    .vrms-home-metrics{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .48rem;
    }

    .vrms-home-metric{
        min-height: 4.55rem;
        grid-template-columns: 1.8rem minmax(0, 1fr);
        gap: .5rem;
        padding: .58rem;
    }

    .vrms-home-metric-icon{
        width: 1.8rem;
        height: 1.8rem;
        border-radius: .58rem;
        font-size: .78rem;
    }

    .vrms-home-metric-copy strong{
        font-size: 1.12rem;
    }

    .vrms-home-occupancy{
        align-items: flex-start;
    }

    .vrms-home-occupancy-values{
        justify-content: flex-start;
    }

    .vrms-home-side-column{
        grid-template-columns: 1fr;
    }

    .vrms-home-section,
    .vrms-home-selectable{
        padding: .72rem;
    }

    .vrms-home-selectable .rb-game-grid{
        grid-template-columns: 1fr;
    }

    .vrms-home-game-title,
    .vrms-home-game-meta span:not(.vrms-home-game-function),
    .vrms-home-game-venue span{
        white-space: normal;
    }

    .vrms-home-inbox .vrms-notice-detail-panel{
        min-height: 0;
    }
}

@media (max-width: 560px){
    .vrms-home-header,
    .vrms-home-occupancy{
        display: grid;
        grid-template-columns: 1fr;
    }

    .vrms-home-metrics{
        grid-template-columns: 1fr 1fr;
    }

    .vrms-home-metric-copy span{
        white-space: normal;
        line-height: 1.08;
    }

    .vrms-home-metric-copy small{
        display: none;
    }

    .vrms-home-season-grid{
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vrms-home-season-grid .is-total{
        grid-column: span 2;
    }
}

@media (max-width: 380px){
    .vrms-home-metrics{
        grid-template-columns: 1fr;
    }

    .vrms-home-game-row{
        grid-template-columns: 3.75rem minmax(0, 1fr);
        gap: .5rem;
        padding: .42rem;
    }
}

/* =========================================================
   HOME DASHBOARD — EXTRA COMPACT + MODERN MESSAGE CENTER
   ========================================================= */
.vrms-home-page{
    gap: .72rem;
}

.vrms-home-header{
    padding: .66rem .78rem;
}

.vrms-home-title{
    font-size: clamp(1.12rem, 1.8vw, 1.48rem);
}

.vrms-home-heading-chip{
    min-height: 1.75rem;
    padding: .26rem .52rem;
    font-size: .68rem;
}

.vrms-home-metrics{
    gap: .48rem;
}

.vrms-home-metric{
    min-height: 4.25rem;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    gap: .5rem;
    padding: .52rem .58rem;
    border-radius: .78rem;
}

.vrms-home-metric-icon{
    width: 1.75rem;
    height: 1.75rem;
    border-radius: .55rem;
    font-size: .76rem;
}

.vrms-home-metric-copy strong{
    font-size: 1.1rem;
}

.vrms-home-metric-copy span{
    font-size: .69rem;
}

.vrms-home-metric-copy small{
    font-size: .59rem;
}

.vrms-home-occupancy{
    padding: .45rem .62rem;
}

.vrms-home-layout,
.vrms-home-main-column,
.vrms-home-side-column{
    gap: .72rem;
}

.vrms-home-section,
.vrms-home-selectable{
    padding: .68rem;
}

.vrms-home-section-heading{
    margin-bottom: .48rem;
}

.vrms-home-section-title{
    font-size: .9rem;
}

.vrms-home-section-badge{
    min-width: 1.55rem;
    min-height: 1.55rem;
    padding: .2rem .42rem;
    font-size: .65rem;
}

.vrms-home-game-list,
.vrms-home-actions{
    gap: .34rem;
}

.vrms-home-game-row{
    grid-template-columns: 3.75rem minmax(0, 1fr);
    gap: .56rem;
    padding: .4rem;
}

.vrms-home-game-date{
    padding: .28rem .2rem;
}

.vrms-home-game-date strong{
    font-size: 1.02rem;
}

.vrms-home-game-title{
    font-size: .79rem;
}

.vrms-home-action{
    min-height: 2.55rem;
    grid-template-columns: 1.7rem minmax(0, 1fr) auto;
    gap: .5rem;
    padding: .4rem .48rem;
}

.vrms-home-action-icon{
    width: 1.7rem;
    height: 1.7rem;
    border-radius: .52rem;
    font-size: .7rem;
}

.vrms-home-season-grid > div{
    padding: .36rem .14rem;
}

/* The inbox stays compact even when message bodies are long. */
.vrms-home-inbox{
    padding-bottom: .68rem;
}

.vrms-home-inbox .vrms-home-message-center{
    width: 100%;
    padding: 0;
}

.vrms-home-inbox .vrms-notice-layout{
    display: grid;
    grid-template-columns: minmax(16rem, 21rem) minmax(0, 1fr);
    gap: .55rem;
    align-items: stretch;
}

.vrms-home-message-list-panel,
.vrms-home-inbox .vrms-notice-detail-panel{
    min-width: 0;
    min-height: 15rem;
    max-height: 15rem;
    border: 1px solid var(--app-border);
    border-radius: .78rem;
    background: var(--app-surface-muted);
    color: var(--app-text);
    overflow: hidden;
}

.vrms-home-inbox .vrms-notice-list{
    height: 100%;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.vrms-home-message-items{
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 0;
    overflow-y: auto;
    scrollbar-width: thin;
}

.vrms-home-inbox .vrms-notice-list-item{
    width: 100%;
    min-width: 0;
    min-height: 3.15rem;
    display: grid;
    grid-template-columns: 1.8rem minmax(0, 1fr) 1rem;
    align-items: center;
    gap: .48rem;
    padding: .44rem .52rem;
    border: 0;
    border-bottom: 1px solid var(--app-border);
    border-radius: 0;
    background: transparent;
    color: var(--app-text);
    text-align: left;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease;
}

.vrms-home-inbox .vrms-notice-list-item:last-child{
    border-bottom: 0;
}

.vrms-home-inbox .vrms-notice-list-item:hover,
.vrms-home-inbox .vrms-notice-list-item:focus-visible,
.vrms-home-inbox .vrms-notice-list-item.is-active{
    transform: none;
    border-color: var(--app-border);
    background: color-mix(in srgb, var(--app-action-primary) 9%, var(--app-surface));
    color: var(--app-text);
    outline: none;
}

.vrms-home-inbox .vrms-notice-list-item.is-active{
    box-shadow: inset 3px 0 0 var(--app-action-primary);
}

.vrms-home-inbox .vrms-notice-list-item.is-unread{
    background: color-mix(in srgb, var(--app-action-primary) 5%, var(--app-surface-muted));
}

.vrms-home-message-icon{
    width: 1.8rem;
    height: 1.8rem;
    display: grid;
    place-items: center;
    border-radius: .55rem;
    background: var(--app-surface);
    color: var(--app-text-muted);
    font-size: .72rem;
}

.vrms-notice-list-item.is-unread .vrms-home-message-icon{
    background: color-mix(in srgb, var(--app-action-primary) 13%, var(--app-surface));
    color: var(--app-action-primary);
}

.vrms-home-message-copy{
    min-width: 0;
    display: grid;
    gap: .12rem;
}

.vrms-home-inbox .vrms-notice-list-subject{
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--app-text);
    font-size: .73rem;
    font-weight: 720;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vrms-home-inbox .vrms-notice-list-item.is-unread .vrms-notice-list-subject{
    font-weight: 850;
}

.vrms-home-message-meta-line{
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    color: var(--app-text-muted);
    font-size: .61rem;
    font-weight: 650;
}

.vrms-home-inbox .vrms-notice-list-sender{
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vrms-home-message-meta-line time{
    flex: 0 0 auto;
    white-space: nowrap;
}

.vrms-home-message-state{
    width: 1rem;
    display: grid;
    place-items: center;
    color: var(--app-text-muted);
    font-size: .52rem;
}

.vrms-home-message-unread-dot{
    width: .48rem;
    height: .48rem;
    border-radius: 999px;
    background: var(--app-action-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-action-primary) 13%, transparent);
}

.vrms-home-inbox .vrms-notice-pagination{
    min-height: 2.45rem;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) 2rem;
    align-items: center;
    gap: .35rem;
    margin: 0;
    padding: .28rem .4rem;
    border-top: 1px solid var(--app-border);
    background: var(--app-surface);
}

.vrms-home-inbox .vrms-home-message-page-btn{
    width: 2rem;
    min-width: 2rem;
    min-height: 1.85rem;
    padding: .2rem;
    border-radius: .55rem;
}

.vrms-home-inbox .vrms-notice-page-indicator{
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--app-text-muted);
    font-size: .65rem;
    font-weight: 750;
    text-align: center;
}

.vrms-home-inbox .vrms-notice-detail-panel{
    display: grid;
    padding: .62rem;
}

.vrms-home-message-placeholder{
    align-self: stretch;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: .28rem;
    padding: 1rem;
    color: var(--app-text-muted);
    text-align: center;
}

.vrms-home-message-placeholder-icon{
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    margin-bottom: .18rem;
    border: 1px solid var(--app-border);
    border-radius: .8rem;
    background: var(--app-surface);
    color: var(--app-action-primary);
    font-size: 1rem;
}

.vrms-home-message-placeholder strong{
    color: var(--app-text);
    font-size: .82rem;
}

.vrms-home-message-placeholder span:last-child{
    font-size: .68rem;
}

.vrms-home-message-detail-content{
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: .48rem;
}

.vrms-home-message-detail-content[hidden],
.vrms-home-message-placeholder[hidden]{
    display: none !important;
}

.vrms-home-inbox .vrms-notice-detail-header{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
    margin: 0;
    padding: 0 0 .45rem;
    border-bottom: 1px solid var(--app-border);
}

.vrms-home-message-detail-heading{
    min-width: 0;
}

.vrms-home-inbox .vrms-notice-subject{
    margin-top: .05rem;
    overflow: hidden;
    color: var(--app-text);
    font-size: .9rem;
    font-weight: 820;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vrms-home-inbox .vrms-notice-meta{
    margin-top: .16rem;
    overflow: hidden;
    color: var(--app-text-muted);
    font-size: .62rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 1;
}

.vrms-home-message-delete{
    flex: 0 0 auto;
    width: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    padding: .25rem;
    border-color: color-mix(in srgb, var(--app-status-danger) 45%, var(--app-border));
    color: var(--app-status-danger);
}

.vrms-home-message-delete:hover,
.vrms-home-message-delete:focus-visible{
    border-color: var(--app-status-danger);
    background: var(--app-status-danger);
    color: #fff;
}

.vrms-home-inbox .vrms-notice-body-wrap{
    min-height: 0;
    border: 0;
    border-radius: .68rem;
    background: var(--app-surface);
    color: var(--app-text);
    overflow: hidden;
}

.vrms-home-inbox .vrms-notice-body{
    height: 100%;
    min-height: 0;
    max-height: 9.5rem;
    padding: .62rem .68rem;
    overflow-y: auto;
    color: var(--app-text);
    font-size: .73rem;
    line-height: 1.45;
    white-space: pre-wrap;
    scrollbar-width: thin;
}

.vrms-home-inbox .vrms-notice-attachments{
    min-height: 0;
    margin-top: 0;
}

.vrms-home-inbox .vrms-notice-attachments-title{
    margin: 0 0 .3rem;
    font-size: .68rem;
}

.vrms-home-inbox .vrms-notice-attachment-list{
    gap: .3rem;
}

.vrms-home-inbox .vrms-notice-attachment-link{
    padding: .3rem .52rem;
    border-color: var(--app-border);
    background: var(--app-surface);
    color: var(--app-text);
    font-size: .65rem;
}

.vrms-home-message-loading{
    min-height: 100%;
    padding: 1rem;
    color: var(--app-text-muted);
    font-size: .72rem;
}

@media (max-width: 1099.98px){
    .vrms-home-inbox .vrms-notice-layout{
        grid-template-columns: minmax(14rem, 19rem) minmax(0, 1fr);
    }
}

@media (max-width: 767.98px){
    .vrms-home-page{
        gap: .55rem;
    }

    .vrms-home-section,
    .vrms-home-selectable{
        padding: .58rem;
    }

    .vrms-home-inbox .vrms-notice-layout{
        grid-template-columns: 1fr;
    }

    .vrms-home-message-list-panel{
        min-height: 13.1rem;
        max-height: 13.1rem;
    }

    .vrms-home-inbox .vrms-notice-detail-panel{
        min-height: 12rem;
        max-height: 12rem;
    }

    .vrms-home-inbox .vrms-notice-body{
        max-height: 6.7rem;
    }
}

@media (max-width: 560px){
    .vrms-home-header{
        padding: .58rem;
    }

    .vrms-home-metric{
        min-height: 3.85rem;
        padding: .44rem .5rem;
    }

    .vrms-home-message-list-panel{
        min-height: 12.6rem;
        max-height: 12.6rem;
    }
}

/* =========================================================
   PERSONALISIERBARES DASHBOARD
   ========================================================= */
.vrms-dashboard-customizable{
    gap: .68rem;
}

.vrms-dashboard-personal-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.vrms-dashboard-header-actions{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .45rem;
}

.vrms-dashboard-edit-actions{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
}

.vrms-dashboard-edit-actions[hidden],
.vrms-dashboard-edit-hint[hidden]{
    display: none !important;
}

.vrms-dashboard-edit-hint{
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 2.6rem;
    padding: .48rem .68rem;
    border: 1px dashed color-mix(in srgb, var(--app-action-primary) 58%, var(--app-border));
    border-radius: var(--app-radius-md);
    background: color-mix(in srgb, var(--app-action-primary) 7%, var(--app-surface));
    color: var(--app-text);
    font-size: .76rem;
    font-weight: 720;
}

.vrms-dashboard-edit-hint output{
    margin-left: auto;
    color: var(--app-status-success);
    font-weight: 800;
}

.vrms-dashboard-edit-hint output.is-error{
    color: var(--app-status-danger);
}

.vrms-dashboard-widget-grid{
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: .68rem;
    width: 100%;
    min-width: 0;
}

.vrms-dashboard-widget{
    position: relative;
    min-width: 0;
    grid-column: span 6;
    transition: opacity .16s ease, transform .16s ease, filter .16s ease;
}

.vrms-dashboard-width-small{ grid-column: span 3; }
.vrms-dashboard-width-medium{ grid-column: span 4; }
.vrms-dashboard-width-wide{ grid-column: span 6; }
.vrms-dashboard-width-full{ grid-column: 1 / -1; }

.vrms-dashboard-widget-content,
.vrms-dashboard-widget-content > .vrms-panel{
    min-width: 0;
    height: 100%;
}

.vrms-dashboard-widget-editor{
    display: none;
    min-height: 2.35rem;
    grid-template-columns: auto minmax(0, 1fr) auto minmax(6.5rem, auto) auto;
    align-items: center;
    gap: .38rem;
    margin-bottom: .35rem;
    padding: .32rem .4rem;
    border: 1px solid var(--app-border);
    border-radius: .72rem;
    background: var(--app-surface-elevated);
    color: var(--app-text);
    box-shadow: var(--app-shadow);
}

.vrms-dashboard-widget-editor strong{
    min-width: 0;
    overflow: hidden;
    font-size: .72rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vrms-dashboard-widget-tool{
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 1px solid var(--app-border);
    border-radius: .58rem;
    background: var(--app-surface);
    color: var(--app-text);
    cursor: pointer;
}

.vrms-dashboard-widget-tool:hover,
.vrms-dashboard-widget-tool:focus-visible{
    border-color: var(--app-action-primary);
    background: var(--app-action-hover);
    color: var(--app-text);
    outline: none;
}

.vrms-dashboard-widget-tool.is-drag{
    cursor: grab;
    touch-action: none;
}

.vrms-dashboard-widget-tool.is-drag:active{
    cursor: grabbing;
}

.vrms-dashboard-widget-tool.is-disabled-state{
    color: var(--app-text-muted);
    background: var(--app-surface-muted);
}

.vrms-dashboard-widget-width-label select{
    width: 100%;
    min-height: 2rem;
    padding: .25rem 1.8rem .25rem .48rem;
    border: 1px solid var(--app-border);
    border-radius: .58rem;
    background: var(--app-input-bg);
    color: var(--app-text);
    font-size: .68rem;
    font-weight: 750;
}

.vrms-dashboard-widget-collapsed-bar{
    display: none;
    min-height: 2.8rem;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .38rem .5rem .38rem .68rem;
    border: 1px solid var(--app-border);
    border-radius: .82rem;
    background: var(--app-surface-elevated);
    color: var(--app-text);
    box-shadow: var(--app-shadow);
}

.vrms-dashboard-widget-collapsed-bar > span{
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: .45rem;
    overflow: hidden;
    font-size: .76rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vrms-dashboard-widget-collapsed-bar > span i{
    color: var(--app-action-primary);
}

.vrms-dashboard-widget.is-collapsed .vrms-dashboard-widget-content{
    display: none;
}

.vrms-dashboard-widget.is-collapsed .vrms-dashboard-widget-collapsed-bar{
    display: flex;
}

.vrms-dashboard-customizable[data-dashboard-editing="true"] .vrms-dashboard-widget-editor{
    display: grid;
}

.vrms-dashboard-customizable[data-dashboard-editing="true"] .vrms-dashboard-widget[hidden]{
    display: block !important;
}

.vrms-dashboard-customizable[data-dashboard-editing="true"] .vrms-dashboard-widget.is-user-hidden{
    opacity: .48;
    filter: grayscale(.5);
}

.vrms-dashboard-customizable[data-dashboard-editing="true"] .vrms-dashboard-widget.is-user-hidden::after{
    content: "";
    position: absolute;
    inset: 2.7rem 0 0;
    z-index: 3;
    border: 2px dashed var(--app-border);
    border-radius: var(--app-radius-md);
    background: color-mix(in srgb, var(--app-surface) 52%, transparent);
    pointer-events: none;
}

.vrms-dashboard-customizable[data-dashboard-editing="true"] .vrms-dashboard-widget.is-dragging{
    z-index: 20;
    opacity: .72;
    transform: scale(.985);
}

.vrms-dashboard-customizable.is-saving{
    cursor: progress;
}

.vrms-dashboard-overview-occupancy{
    margin-top: .5rem;
    border: 1px solid var(--app-border);
    border-radius: .72rem;
    background: var(--app-surface-muted);
}

.vrms-home-overview-widget{
    padding: .68rem;
}

@media (max-width: 1199.98px){
    .vrms-dashboard-width-small,
    .vrms-dashboard-width-medium{
        grid-column: span 6;
    }
}

@media (max-width: 767.98px){
    .vrms-dashboard-personal-header{
        align-items: stretch;
        flex-direction: column;
    }

    .vrms-dashboard-header-actions,
    .vrms-dashboard-edit-actions{
        justify-content: stretch;
    }

    .vrms-dashboard-header-actions > .vrms-action-btn,
    .vrms-dashboard-edit-actions > .vrms-action-btn{
        flex: 1 1 auto;
    }

    .vrms-dashboard-widget-grid{
        grid-template-columns: 1fr;
        gap: .55rem;
    }

    .vrms-dashboard-width-small,
    .vrms-dashboard-width-medium,
    .vrms-dashboard-width-wide,
    .vrms-dashboard-width-full{
        grid-column: 1 / -1;
    }

    .vrms-dashboard-widget-editor{
        grid-template-columns: auto minmax(0, 1fr) auto auto;
    }

    .vrms-dashboard-widget-width-label{
        grid-column: 1 / -1;
    }

    .vrms-dashboard-edit-hint{
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .vrms-dashboard-edit-hint output{
        width: 100%;
        margin-left: 0;
    }
}

/* Widgetbreiten müssen auch unabhängig von der Fensterbreite sauber reagieren. */
.vrms-dashboard-width-small .vrms-home-metrics,
.vrms-dashboard-width-medium .vrms-home-metrics{
    grid-template-columns: 1fr;
}

.vrms-dashboard-width-small .vrms-home-inbox .vrms-notice-layout,
.vrms-dashboard-width-medium .vrms-home-inbox .vrms-notice-layout{
    grid-template-columns: 1fr;
}

.vrms-dashboard-width-small .vrms-home-message-list-panel,
.vrms-dashboard-width-medium .vrms-home-message-list-panel{
    min-height: 12.6rem;
    max-height: 12.6rem;
}

.vrms-dashboard-width-small .vrms-home-inbox .vrms-notice-detail-panel,
.vrms-dashboard-width-medium .vrms-home-inbox .vrms-notice-detail-panel{
    min-height: 11rem;
    max-height: 11rem;
}

.vrms-dashboard-width-small .vrms-home-inbox .vrms-notice-body,
.vrms-dashboard-width-medium .vrms-home-inbox .vrms-notice-body{
    max-height: 5.9rem;
}

.vrms-dashboard-width-small .vrms-home-season-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vrms-dashboard-width-small .vrms-home-season-grid .is-total{
    grid-column: 1 / -1;
}
