@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

@font-face {
    font-family: 'Material Icons Local';
    src: url('../fonts/MaterialIcons-Regular.woff?v=4.3.7') format('woff');
    font-style: normal;
    font-weight: 400;
    font-display: block;
}

:root {
    --rz-icon-font-family: 'Material Icons Local';
    --rz-icon-weight: 400;
    --site-bg: #eef3f8;
    --site-panel: rgba(255, 255, 255, 0.9);
    --site-panel-strong: rgba(255, 255, 255, 0.96);
    --site-border: rgba(20, 32, 58, 0.08);
    --site-text: #172034;
    --site-muted: #5d6880;
    --site-primary: #2d6cdf;
    --site-primary-strong: #194cb4;
    --site-accent: #f04f8d;
    --site-shadow: 0 20px 45px rgba(17, 27, 45, 0.12);
    --site-background-image: url('/Default/ar1.jpg');
    --site-background-overlay: linear-gradient(rgba(243, 247, 252, 0.76), rgba(243, 247, 252, 0.85));
    --site-period-content: rgba(244, 245, 249, 0.9);
    --site-period-text: #172034;
    --site-period-muted: #5d6880;
    --site-period-border: rgba(20, 32, 58, 0.14);
}

:root[data-site-period='night'] {
    --site-background-image: url('/Default/za2.jpg');
    --site-background-overlay: linear-gradient(rgba(8, 15, 35, 0.64), rgba(8, 15, 35, 0.76));
    --site-period-content: rgba(8, 15, 35, 0.88);
    --site-period-text: #f5f7fb;
    --site-period-muted: rgba(229, 234, 244, 0.76);
    --site-period-border: rgba(229, 234, 244, 0.18);
}

html,
body {
    min-height: 100%;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--site-background-overlay), var(--site-background-image) center/cover fixed;
    color: var(--site-text);
}

a,
.btn-link {
    color: var(--site-primary);
}

a:hover,
.btn-link:hover {
    color: var(--site-primary-strong);
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: var(--site-primary);
    border-color: var(--site-primary-strong);
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    background: linear-gradient(180deg, rgba(18, 29, 56, 0.95) 0%, rgba(41, 51, 91, 0.96) 100%);
    color: #f5f7fb;
    box-shadow: 8px 0 32px rgba(16, 24, 40, 0.18);
    overflow: hidden;
    z-index: 3;
}

.site-brand-bar {
    justify-content: space-between;
    min-height: 4.75rem;
    padding-right: 1rem;
}

.brand-link {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    color: #fff;
    text-decoration: none;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.76);
}

.nav-scroll-region {
    padding: 0 0.75rem 1rem;
}

.app-main {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.app-layout--desktop {
    --app-topbar-height: 3.65rem;
    --app-topbar-padding-x: 1rem;
    --app-topbar-padding-y: 0.42rem;
    --app-topbar-inner-height: 2.4rem;
}

.app-background {
    background: var(--site-background-overlay), var(--site-background-image) center/cover fixed;
}

.top-row {
    display: flex;
    align-items: center;
}

.app-topbar,
.app-topbar.rz-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    height: var(--app-topbar-height) !important;
    min-height: var(--app-topbar-height) !important;
    max-height: var(--app-topbar-height) !important;
    box-sizing: border-box;
    justify-content: flex-end;
    padding: var(--app-topbar-padding-y) var(--app-topbar-padding-x) !important;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--site-border);
    box-shadow: 0 10px 24px rgba(17, 27, 45, 0.08);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-height: var(--app-topbar-inner-height);
}

.topbar-actions > * {
    min-width: 0;
}

.topbar-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-accent), #ff7b54);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(240, 79, 141, 0.24);
}

.topbar-cta:hover {
    color: #fff;
    transform: translateY(-1px);
}

.theme-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.5rem 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--site-border);
}

.theme-picker span {
    color: var(--site-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.theme-picker .rz-dropdown {
    min-width: 0;
}

.page-frame {
    width: min(1160px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.5rem 0 2rem;
}

.page-frame--wide {
    width: min(1560px, calc(100% - 2rem));
    max-width: none;
}

.page-frame--full {
    width: calc(100% - 1rem);
    max-width: none;
}

.pza-usage-detail-dialog {
    max-height: min(88vh, 720px);
    max-height: min(88dvh, 720px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.pza-usage-detail-dialog .rz-dialog-titlebar {
    padding: 1rem 1.35rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.pza-usage-detail-dialog .rz-dialog-title {
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 800;
}

.pza-usage-detail-dialog__content {
    max-height: calc(min(88vh, 720px) - 64px);
    max-height: calc(min(88dvh, 720px) - 64px);
    overflow: hidden;
    padding: 1.25rem;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

@media (max-width: 991.98px) {
    .pza-usage-detail-dialog {
        width: calc(100vw - 1rem) !important;
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
    }

    .pza-usage-detail-dialog__content {
        max-height: calc(100vh - 4.75rem);
        max-height: calc(100dvh - 4.75rem);
        overflow-y: auto;
    }
}

.app-main-scrollbar {
    position: fixed;
    z-index: 24;
    width: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.app-main-scrollbar__thumb {
    display: block;
    width: 100%;
    min-height: 44px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.78);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
    transition: transform 0.12s linear, height 0.12s linear;
}

.app-main-scrollbar--active {
    opacity: 1;
}

.app-main-scrollbar--hidden {
    opacity: 0 !important;
}

.content {
    flex: 1;
}

.surface-panel {
    background: var(--site-panel);
    border: 1px solid var(--site-border);
    border-radius: 24px;
    box-shadow: var(--site-shadow);
}

.site-footer,
.identity-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem 1.75rem;
    color: #4b5563;
}

.site-footer a,
.identity-footer a {
    color: inherit;
}

:root[data-site-period='night'] .site-footer,
:root[data-site-period='night'] .identity-footer {
    color: rgba(226, 232, 240, 0.92);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
}

:root[data-site-period='night'] .content.page-frame > h1,
:root[data-site-period='night'] .content.page-frame > h2,
:root[data-site-period='night'] .content.page-frame > h3,
:root[data-site-period='night'] .content.page-frame > h4,
:root[data-site-period='night'] .content.page-frame > p,
:root[data-site-period='night'] .content.page-frame > .table,
:root[data-site-period='night'] .content.page-frame > table {
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.44);
}

:root[data-site-period='night'] .content.page-frame > .table th,
:root[data-site-period='night'] .content.page-frame > .table td,
:root[data-site-period='night'] .content.page-frame > table th,
:root[data-site-period='night'] .content.page-frame > table td {
    color: inherit;
}

:root[data-site-period='night'] .content.page-frame .rz-steps {
    padding: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

:root[data-site-period='night'] .match-manager__steps {
    padding: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

:root[data-site-period='night'] .match-manager__steps .rz-steps-title {
    color: #334155 !important;
    font-weight: 800;
    text-shadow: none;
}

:root[data-site-period='night'] .match-manager__steps .rz-state-active .rz-steps-title {
    color: #1d4ed8 !important;
}

:root[data-site-period='night'] .match-manager__steps > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

:root[data-site-period='night'] .match-manager__steps .rz-steps-item {
    border-radius: 999px;
}

:root[data-site-period='night'] .match-manager__steps .rz-steps-item > button,
:root[data-site-period='night'] .match-manager__steps .rz-steps-item > a,
:root[data-site-period='night'] .match-manager__steps .rz-menuitem-link,
:root[data-site-period='night'] .match-manager__steps .rz-steps-link {
    min-height: 2.6rem;
    padding: 0.35rem 0.65rem !important;
    border: 1px solid rgba(203, 213, 225, 0.85) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

:root[data-site-period='night'] .match-manager__steps .rz-steps-number {
    background: #e2e8f0 !important;
    color: #334155 !important;
}

:root[data-site-period='night'] .match-manager__steps .rz-state-active .rz-steps-number {
    background: #2563eb !important;
    color: #ffffff !important;
}

:root[data-site-period='night'] .usage-demo-page > h1,
:root[data-site-period='night'] .swiss-lite__events > h2 {
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.44);
}

:root[data-site-period='night'] .city-match-manager__library .city-match-manager__eyebrow {
    color: #99f6e4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.38);
}

:root[data-site-period='night'] .city-match-manager__library .city-match-manager__section-heading h2 {
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.44);
}

:root[data-site-period='night'] .usage-demo-page__meta {
    color: #dbe5f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.38);
}

.content.page-frame > .table caption,
.content.page-frame > table caption {
    color: #374151 !important;
}

:root[data-site-period='night'] .content.page-frame > .table caption,
:root[data-site-period='night'] .content.page-frame > table caption {
    color: #e2e8f0 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.44);
}

.login-links {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.login-link {
    font-weight: 600;
}

.login-link--qq {
    color: #12b7f5;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(45, 108, 223, 0.18);
    box-shadow: 0 8px 18px rgba(45, 108, 223, 0.18);
}

.profile-logout-button {
    color: var(--site-text);
    font-weight: 600;
}

.home-page {
    display: grid;
    gap: 1rem;
}

.home-hero {
    padding: 1.25rem 1.5rem 1.1rem;
    border-top: 1px solid var(--site-border);
    border-bottom: 1px solid var(--site-border);
    background: var(--site-panel);
}

.home-hero__content {
    display: grid;
    gap: 0.7rem;
    width: 100%;
}

.home-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(45, 108, 223, 0.12);
    color: var(--site-primary-strong);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
}

.home-title {
    margin: 0;
    max-width: 52rem;
    font-size: 2.2rem;
    line-height: 1.15;
    text-wrap: balance;
}

.home-subtitle {
    margin: 0;
    max-width: 760px;
    color: var(--site-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.home-score-reminders {
    display: grid;
    grid-template-columns: minmax(12rem, 0.72fr) minmax(0, 2fr);
    gap: 1rem;
    overflow: hidden;
    border: 1px solid rgba(220, 38, 38, 0.24);
    border-left: 4px solid #dc2626;
    border-radius: 8px;
    background: #fff7ed;
}

.home-score-reminders > header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: center;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 0 0.8rem 0.9rem;
}

.home-score-reminders__icon {
    display: inline-grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 0.45rem;
    background: #dc2626;
    color: #fff;
    font-size: 1.2rem;
}

.home-score-reminders h2,
.home-score-reminders p {
    margin: 0;
}

.home-score-reminders h2 {
    color: #7f1d1d;
    font-size: 1rem;
}

.home-score-reminders p {
    margin-top: 0.15rem;
    color: #9a3412;
    font-size: 0.78rem;
    font-weight: 700;
}

.home-score-reminders__list {
    display: grid;
    border-left: 1px solid rgba(220, 38, 38, 0.15);
    background: rgba(255, 255, 255, 0.56);
}

.home-score-reminders__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.35rem;
    padding: 0.55rem 0.8rem;
    color: inherit;
    text-decoration: none;
    transition: background 160ms ease;
}

.home-score-reminders__item + .home-score-reminders__item {
    border-top: 1px solid rgba(220, 38, 38, 0.12);
}

.home-score-reminders__item:hover,
.home-score-reminders__item:focus-visible {
    background: #fff;
}

.home-score-reminders__badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.65rem;
    padding: 0.18rem 0.48rem;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 0.72rem;
    font-weight: 850;
    white-space: nowrap;
}

.home-score-reminders__badge--urgent {
    background: #ffedd5;
    color: #c2410c;
}

.home-score-reminders__badge--danger {
    background: #fee2e2;
    color: #b91c1c;
}

.home-score-reminders__badge--team {
    background: #dcfce7;
    color: #166534;
}

.home-score-reminders__badge--check-in {
    background: #dbeafe;
    color: #1d4ed8;
}

.home-score-reminders__match {
    display: grid;
    min-width: 0;
    gap: 0.12rem;
}

.home-score-reminders__match strong,
.home-score-reminders__match > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-score-reminders__match strong {
    color: #1f2937;
    font-size: 0.86rem;
}

.home-score-reminders__match > span {
    color: #6b7280;
    font-size: 0.75rem;
}

.home-score-reminders__action {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--site-primary-strong);
    font-size: 0.78rem;
    font-weight: 850;
    white-space: nowrap;
}

.home-score-reminders__action .rzi {
    font-size: 1rem;
}

.home-language-marquee {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-height: 6.25rem;
    padding: 0 1.5rem;
    container-type: inline-size;
    border: 1px solid rgba(45, 108, 223, 0.24);
    border-radius: 0.9rem;
    background-color: rgba(244, 248, 255, 0.98);
    background-image:
        linear-gradient(90deg, rgba(45, 108, 223, 0.12) 1px, transparent 1px),
        linear-gradient(rgba(45, 108, 223, 0.08) 1px, transparent 1px);
    background-size: 3rem 100%, 100% 2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(45, 108, 223, 0.08);
}

.home-language-marquee::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 42%;
    background: linear-gradient(100deg, transparent, rgba(125, 211, 252, 0.35), rgba(240, 79, 141, 0.14), transparent);
    transform: translateX(-130%) skewX(-12deg);
    animation: home-language-scan 6.8s ease-in-out infinite;
}

.home-language-marquee::after {
    content: '';
    position: absolute;
    z-index: 3;
    inset: 0.55rem;
    border: 1px solid rgba(45, 108, 223, 0.08);
    border-radius: 0.6rem;
    pointer-events: none;
}

.home-language-marquee__signal {
    position: absolute;
    right: 1.6rem;
    bottom: 0.8rem;
    left: 1.6rem;
    z-index: 1;
    height: 3px;
    overflow: hidden;
    background: repeating-linear-gradient(90deg, var(--site-primary) 0 2.5rem, transparent 2.5rem 3.6rem, var(--site-accent) 3.6rem 4.1rem, transparent 4.1rem 5.2rem);
    opacity: 0.22;
    animation: home-language-signal 4.2s linear infinite;
}

.home-language-marquee--lucky {
    appearance: none;
    border-color: rgba(245, 158, 11, 0.42);
    background-color: rgba(255, 250, 235, 0.98);
    background-image: linear-gradient(100deg, rgba(245, 158, 11, 0.2), rgba(255, 255, 255, 0.92), rgba(45, 108, 223, 0.14));
    color: inherit;
    cursor: pointer;
    font: inherit;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.home-language-marquee--lucky:hover:not(:disabled),
.home-language-marquee--lucky:focus-visible {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 24px 46px rgba(245, 158, 11, 0.22);
    transform: translateY(-2px);
}

.home-language-marquee--lucky:disabled {
    cursor: default;
}

.home-language-marquee--thriller {
    appearance: none;
    border-color: rgba(15, 23, 42, 0.34);
    background: linear-gradient(100deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.88), rgba(124, 58, 237, 0.32));
    color: inherit;
    cursor: pointer;
    font: inherit;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.home-language-marquee--thriller:hover:not(:disabled),
.home-language-marquee--thriller:focus-visible {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 24px 46px rgba(15, 23, 42, 0.32);
    transform: translateY(-2px);
}

.home-language-marquee--thriller:disabled {
    cursor: default;
}

.home-language-marquee__phrase {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 1.5rem 0.45rem;
    color: var(--site-primary-strong);
    font-size: clamp(2rem, 10cqi, 4.5rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
    text-align: center;
    text-shadow: 0 4px 18px rgba(45, 108, 223, 0.22);
    white-space: nowrap;
    will-change: opacity, transform;
}

.home-language-marquee__phrase--initial {
    animation: home-language-initial 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-language-marquee__phrase--incoming {
    animation: home-language-enter 920ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-language-marquee__phrase--outgoing {
    animation: home-language-leave 920ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-language-marquee__phrase--lucky {
    color: #b45309;
    font-size: clamp(2rem, 9cqi, 4.15rem);
    letter-spacing: 0;
    text-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
    animation: home-language-initial 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-language-marquee__phrase--thriller {
    color: #f8fafc;
    font-size: clamp(2rem, 9.5cqi, 4.25rem);
    letter-spacing: 0;
    text-shadow: 0 0 24px rgba(167, 139, 250, 0.55);
    animation: home-language-initial 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes home-language-initial {
    0% {
        opacity: 0.55;
        transform: translateY(0.65rem) scale(0.96);
    }

    65% {
        opacity: 1;
        transform: translateY(-0.12rem) scale(1.015);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes home-language-enter {
    0% {
        opacity: 0.42;
        transform: translateX(16%) scale(0.96);
    }

    62% {
        opacity: 1;
        transform: translateX(-0.4rem) scale(1.015);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes home-language-leave {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateX(-18%) scale(0.96);
    }
}

@keyframes home-language-scan {
    0%, 18% {
        transform: translateX(-130%) skewX(-12deg);
    }

    72%, 100% {
        transform: translateX(340%) skewX(-12deg);
    }
}

@keyframes home-language-signal {
    from {
        background-position-x: 0;
    }

    to {
        background-position-x: 10.4rem;
    }
}

.home-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.home-action-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    min-height: 4.65rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(45, 108, 223, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.66);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.home-action-card:hover {
    border-color: rgba(45, 108, 223, 0.34);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.home-action-card:focus-visible {
    outline: 2px solid rgba(45, 108, 223, 0.32);
    outline-offset: 2px;
}

.home-action-card strong {
    display: block;
    color: var(--site-primary-strong);
    font-size: 0.9rem;
}

.home-action-card__icon {
    display: inline-grid;
    width: 2.15rem;
    height: 2.15rem;
    place-items: center;
    border-radius: 0.45rem;
    background: rgba(45, 108, 223, 0.1);
    color: var(--site-primary-strong);
    font-size: 1.15rem;
}

.home-action-card__copy {
    min-width: 0;
}

.home-action-card__copy > span {
    display: -webkit-box;
    margin-top: 0.18rem;
    overflow: hidden;
    color: var(--site-muted);
    font-size: 0.78rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-creator-application-note {
    margin: 0.25rem 0 0;
    color: var(--site-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.home-creator-application-note a {
    color: var(--site-primary-strong);
    font-weight: 800;
    text-decoration: none;
}

.home-creator-application-note a:hover {
    text-decoration: underline;
}

.home-starter-flow {
    padding: 1.1rem 1.25rem;
    border-top: 1px solid var(--site-border);
    border-bottom: 1px solid var(--site-border);
    background: var(--site-panel);
}

.home-starter-flow__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.home-starter-flow__header h2,
.home-starter-flow__header p {
    margin: 0;
}

.home-starter-flow__header h2 {
    margin-top: 0.15rem;
    font-size: 1.2rem;
}

.home-starter-flow__header p {
    margin-top: 0.3rem;
    color: var(--site-muted);
    font-size: 0.86rem;
}

.home-starter-flow__eyebrow {
    color: var(--site-primary-strong);
    font-size: 0.78rem;
    font-weight: 800;
}

.home-starter-flow__guide-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.25rem;
    color: var(--site-primary-strong);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.home-starter-flow__guide-link .rzi {
    font-size: 1rem;
}

.home-starter-flow__guide-link:hover {
    text-decoration: underline;
}

.home-starter-flow__steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.55);
    list-style: none;
}

.home-starter-flow__steps li + li {
    border-left: 1px solid var(--site-border);
}

.home-starter-flow__steps a {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    min-height: 5rem;
    padding: 0.7rem;
    color: inherit;
    text-decoration: none;
    transition: background 160ms ease;
}

.home-starter-flow__steps a:hover,
.home-starter-flow__steps a:focus-visible {
    background: rgba(45, 108, 223, 0.06);
}

.home-starter-flow__steps a:focus-visible {
    outline: 2px solid rgba(45, 108, 223, 0.32);
    outline-offset: -2px;
}

.home-starter-flow__number {
    align-self: start;
    color: var(--site-muted);
    font-size: 0.7rem;
    font-weight: 800;
}

.home-starter-flow__icon {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 0.4rem;
    background: rgba(45, 108, 223, 0.1);
    color: var(--site-primary-strong);
    font-size: 1rem;
}

.home-starter-flow__steps li:nth-child(2) .home-starter-flow__icon {
    background: rgba(22, 163, 74, 0.11);
    color: #15803d;
}

.home-starter-flow__steps li:nth-child(3) .home-starter-flow__icon {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
}

.home-starter-flow__steps li:nth-child(4) .home-starter-flow__icon {
    background: rgba(225, 29, 72, 0.1);
    color: #be123c;
}

.home-starter-flow__copy {
    display: grid;
    min-width: 0;
    gap: 0.15rem;
}

.home-starter-flow__copy strong {
    color: var(--site-text);
    font-size: 0.9rem;
}

.home-starter-flow__copy > span {
    color: var(--site-muted);
    font-size: 0.74rem;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .home-starter-flow__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-starter-flow__steps li:nth-child(3) {
        border-left: 0;
    }

    .home-starter-flow__steps li:nth-child(n + 3) {
        border-top: 1px solid var(--site-border);
    }
}

.home-info-band {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--site-border);
    border-bottom: 1px solid var(--site-border);
    background: var(--site-panel);
}

.home-info-band .home-panel + .home-panel {
    border-left: 1px solid var(--site-border);
}

.home-events,
.home-support {
    display: grid;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    border-top: 1px solid var(--site-border);
    border-bottom: 1px solid var(--site-border);
    background: var(--site-panel);
}

.home-events__header {
    margin-bottom: 0;
}

.home-events__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

.home-events__nav a {
    color: var(--site-primary-strong);
    font-weight: 750;
    text-decoration: none;
}

.home-events__eyebrow,
.home-event__badge,
.home-event__source {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--site-primary-strong);
    font-size: 0.82rem;
    font-weight: 800;
}

.home-event__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.home-events__eyebrow {
    margin-bottom: 0.25rem;
}

.home-event-list {
    display: grid;
    gap: 0.7rem;
}

.home-event {
    display: grid;
    gap: 0.7rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.55);
    animation: home-event-enter 360ms ease-out both;
}

@keyframes home-event-enter {
    from {
        opacity: 0;
        transform: translateY(0.65rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-event__header {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
}

.home-event__header h3 {
    margin: 0.2rem 0 0;
    color: var(--site-text);
    font-size: 1.05rem;
}

.home-event__header h3 a {
    color: inherit;
}

.home-event__header p {
    margin: 0.2rem 0 0;
    color: var(--site-muted);
    line-height: 1.6;
}

.home-event__badge {
    min-height: 1.6rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
}

.home-event__badge--live {
    background: rgba(240, 79, 141, 0.12);
    color: #c42b68;
}

.home-event__badge--running {
    background: rgba(45, 108, 223, 0.12);
}

.home-event__badge--registering {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.home-event__badge--official {
    color: #1d4ed8;
    background: #eff6ff;
}

.home-event__badge--archive {
    color: #9f1239;
    background: #fff1f2;
}

.home-event__source {
    min-height: 1.6rem;
    padding: 0.18rem 0.55rem;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    color: var(--site-muted);
    background: #fff;
}

.home-event__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.home-event__links a,
.home-event-empty > a {
    font-weight: 750;
    text-decoration: none;
}

.home-event-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 7rem;
    padding: 1rem 1.1rem;
    border: 1px dashed rgba(45, 108, 223, 0.28);
    border-radius: 8px;
    background: rgba(248, 250, 255, 0.68);
}

.home-event-empty h3 {
    margin: 0;
    font-size: 1.05rem;
}

.home-event-empty p {
    margin: 0.35rem 0 0;
    color: var(--site-muted);
}

.home-event-skeleton,
.home-support-skeleton {
    display: grid;
    gap: 0.75rem;
}

.home-event-skeleton span,
.home-support-skeleton span {
    display: block;
    min-height: 4.5rem;
    border-radius: 8px;
    background: linear-gradient(100deg, rgba(45, 108, 223, 0.06) 20%, rgba(255, 255, 255, 0.72) 46%, rgba(45, 108, 223, 0.06) 72%);
    background-size: 220% 100%;
    animation: home-skeleton-shimmer 1.4s ease-in-out infinite;
}

.home-support-skeleton {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-support-skeleton span {
    min-height: 3rem;
}

@keyframes home-skeleton-shimmer {
    from {
        background-position-x: 100%;
    }

    to {
        background-position-x: -120%;
    }
}

.home-panel {
    padding: 1.5rem;
}

.home-panel h2,
.home-events h2,
.home-support h2 {
    margin: 0 0 0.45rem;
    font-size: 1.2rem;
}

.home-panel p,
.home-events p,
.home-support p {
    margin: 0;
    color: var(--site-muted);
    line-height: 1.7;
}

.home-panel__header {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.home-info-list,
.home-donation-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-info-list {
    display: grid;
    gap: 0.85rem;
}

.home-info-list li {
    padding-left: 1rem;
    color: var(--site-muted);
    line-height: 1.75;
    position: relative;
}

.home-info-list li::before {
    content: '';
    position: absolute;
    top: 0.75rem;
    left: 0;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--site-primary);
}

.home-donation-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.home-donation-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: rgba(248, 250, 255, 0.72);
    border: 1px solid rgba(45, 108, 223, 0.08);
}

.home-donation-list li span {
    color: var(--site-muted);
}

.home-donation-list li strong {
    color: var(--site-text);
    white-space: nowrap;
}

.identity-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--site-background-overlay), var(--site-background-image) center/cover fixed;
}

.identity-header {
    padding: 1rem 1.25rem 0;
}

.identity-header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: min(960px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem 1.25rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--site-border);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 36px rgba(17, 27, 45, 0.08);
}

.identity-brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-decoration: none;
    color: var(--site-text);
}

.identity-nav ul {
    margin-bottom: 0;
}

.identity-shell {
    flex: 1;
    width: min(960px, calc(100% - 2rem));
    margin: 1.5rem auto 0;
}

.identity-main {
    padding: 1.75rem;
}

.identity-page {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 1.25rem;
    align-items: start;
}

.identity-page--compact {
    grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
}

.identity-page__hero,
.identity-form-card,
.identity-info-card {
    border: 1px solid rgba(45, 108, 223, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 40px rgba(17, 27, 45, 0.08);
}

.identity-page__hero {
    padding: 1.5rem;
    position: sticky;
    top: 1rem;
}

.identity-page__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(45, 108, 223, 0.1);
    color: #2257b8;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.identity-page__hero h1,
.identity-info-card h1 {
    margin-bottom: 0.65rem;
    color: var(--site-text);
    font-weight: 800;
}

.identity-page__hero p,
.identity-info-card p,
.identity-form-card__header p {
    margin-bottom: 0;
    color: var(--site-muted);
    line-height: 1.7;
}

.identity-form-card {
    padding: 1.5rem;
}

.identity-form-card__header {
    margin-bottom: 1.25rem;
}

.identity-form-card__header h2 {
    margin-bottom: 0.35rem;
    color: var(--site-text);
    font-size: 1.35rem;
    font-weight: 800;
}

.app-auth-state {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(1rem, 2vw, 1.5rem);
}

.app-auth-state__card {
    position: relative;
    display: grid;
    justify-items: start;
    gap: 1rem;
    width: min(100%, 760px);
    padding: clamp(1.5rem, 3vw, 2.4rem);
    overflow: hidden;
    border: 1px solid rgba(45, 108, 223, 0.08);
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78) 38%, rgba(255, 255, 255, 0.92) 100%),
        linear-gradient(135deg, rgba(255, 238, 246, 0.92), rgba(240, 246, 255, 0.92));
    box-shadow:
        0 22px 50px rgba(17, 27, 45, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.app-auth-state__card--compact {
    width: min(100%, 680px);
    text-align: center;
    justify-items: center;
}

.app-auth-state__card--login-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 0.9rem;
    width: min(100%, 560px);
    padding: 1.1rem 1.25rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 142, 172, 0.22);
    background:
        linear-gradient(135deg, rgba(255, 246, 250, 0.96), rgba(241, 247, 255, 0.96)),
        #fff;
    box-shadow: 0 14px 32px rgba(31, 42, 68, 0.08);
    text-align: center;
}

.app-auth-state__card--login-simple .app-auth-state__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 16px;
    font-size: 1.25rem;
}

.app-auth-state__card--login-simple p {
    max-width: none;
    color: var(--site-text);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.6;
}

.app-auth-state__card--login-simple a {
    display: inline-flex;
    align-items: center;
    margin: 0 0.18rem;
    padding: 0.18rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6f91, #ff8a5c);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(255, 111, 145, 0.24);
}

.app-auth-state__card--login-simple a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.app-auth-state__card--login-simple small {
    flex-basis: 100%;
    color: #6b7791;
    font-weight: 600;
}

.app-auth-state__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(45, 108, 223, 0.08);
    color: #2257b8;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.app-auth-state__card h1,
.app-auth-state__card h2 {
    margin: 0;
    color: var(--site-text);
    font-weight: 800;
}

.app-auth-state__card h1 {
    max-width: 14ch;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.08;
}

.app-auth-state__card h2 {
    font-size: 1.45rem;
}

.app-auth-state__card p {
    margin: 0;
    color: var(--site-muted);
    line-height: 1.8;
    font-size: 1.02rem;
    max-width: 36rem;
}

.app-auth-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 240, 248, 0.92));
    box-shadow:
        0 14px 26px rgba(240, 79, 141, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    font-size: 2rem;
}

.app-auth-state__icon--text {
    color: #2257b8;
    font-weight: 900;
}

.app-auth-state__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.app-auth-state__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.78rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.app-auth-state__primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.78rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-accent), #ff7b54);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(240, 79, 141, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.app-auth-state__primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(240, 79, 141, 0.3);
}

.app-auth-state__secondary {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(45, 108, 223, 0.1);
    color: var(--site-text);
}

.app-auth-state__secondary:hover {
    color: var(--site-primary-strong);
    transform: translateY(-2px);
}

.identity-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem 1rem;
}

.identity-field {
    margin-bottom: 1rem;
}

.identity-field label {
    margin-bottom: 0.35rem;
    color: #263246;
    font-weight: 700;
}

.identity-field .form-control {
    min-height: 44px;
    border-radius: 14px;
    border-color: rgba(114, 132, 160, 0.35);
    background: rgba(248, 250, 252, 0.92);
}

.identity-validation {
    margin-bottom: 1rem;
}

.identity-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0 1rem;
    color: var(--site-muted);
    font-weight: 700;
}

.identity-checkbox input {
    width: 1rem;
    height: 1rem;
}

.identity-submit {
    min-height: 44px;
    width: 100%;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(45, 108, 223, 0.22);
}

.identity-submit--qq {
    background: #12b7f5;
    border-color: #12b7f5;
    box-shadow: 0 12px 24px rgba(18, 183, 245, 0.22);
}

.identity-secondary-submit {
    min-height: 44px;
    width: 100%;
    margin-top: 0.75rem;
    border-radius: 999px;
    font-weight: 800;
}

.identity-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-top: 1rem;
}

.identity-links--center {
    justify-content: center;
}

.identity-links a {
    color: #2257b8;
    font-weight: 700;
    text-decoration: none;
}

.identity-links a:hover {
    text-decoration: underline;
}

.identity-external-card {
    grid-column: 2;
}

.identity-external-actions {
    display: grid;
    gap: 0.75rem;
}

.identity-external-list {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.identity-external-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(114, 132, 160, 0.25);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
}

.identity-external-item p,
.identity-muted {
    margin: 0;
    color: var(--site-muted);
}

.identity-info-card {
    grid-column: 1 / -1;
    padding: 2rem;
    text-align: center;
}

.identity-info-card .btn {
    margin-top: 0.75rem;
    border-radius: 999px;
}

.identity-recovery-card {
    display: grid;
    gap: 1rem;
    justify-items: start;
    text-align: left;
}

.identity-info-card h2,
.identity-recovery-card h2,
.site-error-card h2 {
    margin: 0;
    color: var(--site-text);
    font-size: 1.45rem;
    font-weight: 800;
}

.identity-recovery-links,
.site-error-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.identity-recovery-links .btn,
.site-error-card__actions .btn {
    margin-top: 0;
    border-radius: 999px;
    font-weight: 700;
}

.identity-recovery-hint,
.site-error-card__hint {
    margin: 0;
    color: var(--site-muted);
    font-weight: 600;
}

.site-error-page {
    align-items: stretch;
}

.site-error-card {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.site-error-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 111, 145, 0.14), rgba(45, 108, 223, 0.14));
    color: #2257b8;
    font-size: 1.5rem;
    font-weight: 900;
    font-weight: 800;
}

.identity-manage-page {
    grid-template-columns: 1fr;
}

.identity-manage-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1rem;
}

.identity-manage-shell__nav {
    padding: 1rem;
    border: 1px solid rgba(45, 108, 223, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 32px rgba(17, 27, 45, 0.06);
}

.identity-manage-shell__nav .nav-pills {
    gap: 0.45rem;
}

.identity-manage-shell__nav .nav-link {
    border-radius: 14px;
    color: var(--site-muted);
    font-weight: 800;
}

.identity-manage-shell__nav .nav-link.active {
    background: #2d6cdf;
    color: #fff;
}

.identity-manage-shell__content {
    min-width: 0;
}

.identity-status-card {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(45, 108, 223, 0.12);
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.92);
}

.identity-status-card__header {
    margin-bottom: 0.9rem;
}

.identity-status-card__header h3 {
    margin: 0 0 0.25rem;
    color: var(--site-text);
    font-size: 1.05rem;
    font-weight: 800;
}

.identity-status-card__header p,
.identity-inline-note {
    margin: 0;
    color: var(--site-muted);
}

.identity-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.identity-status-item {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(45, 108, 223, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
}

.identity-status-item span {
    color: var(--site-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.identity-status-item strong {
    color: var(--site-text);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.identity-inline-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.identity-inline-status .form-control {
    flex: 1 1 240px;
}

.identity-inline-status__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
}

.identity-inline-status__badge--success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.identity-inline-status__badge--warn {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.identity-inline-note {
    margin: 0 0 1rem;
}

.identity-manage-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.identity-manage-overview__item {
    display: grid;
    gap: 0.3rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(45, 108, 223, 0.12);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
}

.identity-manage-overview__item span {
    color: var(--site-muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.identity-manage-overview__item strong {
    color: var(--site-text);
    font-size: 1rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.identity-manage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 991.98px) {
    .app-shell {
        flex-direction: column;
    }

    .app-sidebar {
        width: 100%;
        min-height: auto;
        position: sticky;
        top: 0;
        box-shadow: 0 10px 28px rgba(16, 24, 40, 0.18);
    }

    .app-topbar,
    .app-topbar.rz-header {
        height: auto !important;
        min-height: 3.5rem;
        max-height: none !important;
        padding: 0.45rem 0.65rem !important;
    }

    .topbar-actions {
        width: auto;
        justify-content: flex-end;
        gap: 0.45rem;
        align-items: center;
        flex-wrap: nowrap;
        min-height: 0;
    }

    .page-frame {
        width: min(100%, calc(100% - 1rem));
    }

    .home-info-band {
        grid-template-columns: 1fr;
    }

    .home-info-band .home-panel + .home-panel {
        border-top: 1px solid var(--site-border);
        border-left: 0;
    }

    .home-panel__header,
    .identity-header__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .identity-page,
    .identity-page--compact,
    .identity-manage-shell {
        grid-template-columns: 1fr;
    }

    .identity-page__hero {
        position: static;
    }

    .app-auth-state__card {
        padding: 1.35rem;
    }

    .identity-form-grid {
        grid-template-columns: 1fr;
    }

    .identity-external-card {
        grid-column: auto;
    }
}

@media (max-width: 991.98px) {
    .app-layout--mobile .app-sidebar.rz-sidebar {
        width: 0 !important;
        min-width: 0 !important;
        max-width: calc(100vw - 3rem);
    }

    .app-layout--mobile .app-sidebar.rz-sidebar-expanded {
        width: var(--rz-sidebar-width) !important;
    }

    .app-layout--mobile .app-sidebar.rz-sidebar-collapsed {
        width: 0 !important;
    }

    .app-layout--mobile .app-main.rz-body {
        transform: none !important;
    }
}

.identity-submit--wechat {
    background: #07c160;
    border-color: #07c160;
    box-shadow: 0 12px 24px rgba(7, 193, 96, 0.22);
}

.identity-submit--wechat:hover,
.identity-submit--wechat:focus {
    background: #059b4c;
    border-color: #059b4c;
}

@media (max-width: 767.98px) {
    .app-topbar,
    .app-topbar.rz-header {
        height: auto !important;
        min-height: 3.5rem;
        max-height: none !important;
        padding: 0.45rem 0.65rem !important;
    }

    .app-main,
    .app-main.rz-body {
        padding: 0 !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .app-main::-webkit-scrollbar,
    .app-main.rz-body::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .page-frame {
        box-sizing: border-box;
        width: 100%;
        padding: 0.95rem 0.35rem 1.25rem;
    }

    .nav-scroll-region {
        padding-bottom: 0.5rem;
    }

    .home-hero,
    .home-starter-flow,
    .home-events,
    .home-support,
    .identity-main {
        padding: 0.9rem;
    }

    .home-panel {
        padding: 1.2rem;
    }

    .home-title {
        font-size: 1.75rem;
    }

    .home-score-reminders {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home-score-reminders > header {
        padding: 0.7rem 0.75rem;
    }

    .home-score-reminders__list {
        border-top: 1px solid rgba(220, 38, 38, 0.15);
        border-left: 0;
    }

    .home-donation-list {
        grid-template-columns: 1fr;
    }

    .home-language-marquee {
        min-height: 5.25rem;
        padding: 0 1rem;
        border-radius: 0.75rem;
    }

    .home-language-marquee__phrase {
        padding-inline: 1rem;
        font-size: clamp(1.8rem, 10cqi, 2.75rem);
    }

    .home-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .home-action-card {
        min-height: 5.25rem;
    }

    .home-event__header {
        display: grid;
    }

    .home-event__links {
        justify-content: flex-start;
    }

    .home-event-empty {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-support-skeleton {
        grid-template-columns: 1fr;
    }

    .topbar-actions {
        width: auto;
        justify-content: flex-end;
        gap: 0.45rem;
        align-items: center;
        flex-wrap: nowrap;
        min-height: 0;
    }

    .theme-picker,
    .topbar-picker {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        display: grid;
        gap: 0.28rem;
        padding: 0.45rem 0.55rem;
        border: 1px solid var(--site-border);
        border-radius: 0.9rem;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 8px 22px rgba(17, 27, 45, 0.05);
    }

    .theme-picker .rz-dropdown,
    .topbar-picker .rz-dropdown {
        width: 100% !important;
    }

    .topbar-picker span {
        font-size: 0.72rem;
        line-height: 1.1;
        white-space: nowrap;
    }

    .topbar-cta {
        flex: 0 0 auto;
        min-height: 2.3rem;
        padding: 0.45rem 0.85rem;
        box-shadow: 0 8px 20px rgba(240, 79, 141, 0.18);
    }

    .topbar-icon-action,
    .topbar-profile {
        flex: 0 0 auto;
    }

    .topbar-profile-trigger {
        padding: 0.18rem;
        box-shadow: 0 8px 18px rgba(45, 108, 223, 0.1);
    }

    .topbar-profile .profile-avatar {
        width: 38px;
        height: 38px;
    }

    .site-footer,
    .identity-footer {
        justify-content: center;
        text-align: center;
    }
}

@media (min-width: 768px) {
    .app-main-scrollbar {
        display: none;
    }
}

.create-match .rz-chkbox-box,
.match-settings .rz-chkbox-box,
.match-settings-card .rz-chkbox-box {
    border-width: 1.5px !important;
    border-color: #94a3b8 !important;
}

.create-match .rz-chkbox-box:hover:not(.rz-state-disabled),
.match-settings .rz-chkbox-box:hover:not(.rz-state-disabled),
.match-settings-card .rz-chkbox-box:hover:not(.rz-state-disabled) {
    border-color: #64748b !important;
}

.create-match .rz-chkbox-box.rz-state-disabled,
.match-settings .rz-chkbox-box.rz-state-disabled,
.match-settings-card .rz-chkbox-box.rz-state-disabled {
    border-color: #94a3b8 !important;
}

@media (min-width: 992px) {
    .app-layout--desktop .app-topbar.rz-header,
    .app-layout--desktop .app-topbar {
        height: var(--app-topbar-height) !important;
        min-height: var(--app-topbar-height) !important;
        max-height: var(--app-topbar-height) !important;
        padding: var(--app-topbar-padding-y) var(--app-topbar-padding-x) !important;
    }

    .app-layout--desktop .topbar-actions {
        flex-wrap: nowrap;
        min-height: var(--app-topbar-inner-height);
    }

    .app-layout--desktop.rz-layout {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        grid-template-rows: auto auto auto;
    }

    .app-layout--desktop .app-sidebar.rz-sidebar {
        align-self: start;
        position: sticky;
        top: var(--app-topbar-height);
        height: calc(100vh - var(--app-topbar-height)) !important;
        min-height: calc(100vh - var(--app-topbar-height)) !important;
        max-height: calc(100vh - var(--app-topbar-height)) !important;
    }

    .app-layout--desktop .app-sidebar.rz-sidebar .app-sidebar-shell {
        display: flex;
        flex-direction: column;
        height: 100%;
        max-height: 100%;
        overflow: hidden !important;
    }

    .app-layout--desktop .app-sidebar.rz-sidebar .app-nav-menu {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -ms-overflow-style: none;
        scrollbar-width: none;
        overscroll-behavior: contain;
    }

    .app-layout--desktop .app-sidebar.rz-sidebar .app-nav-menu::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .app-layout--desktop .app-main.rz-body {
        box-sizing: border-box;
        height: auto;
        min-height: calc(100vh - var(--app-topbar-height));
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 575.98px) {
    .app-topbar,
    .app-topbar.rz-header {
        height: auto !important;
        min-height: 3.25rem;
        max-height: none !important;
        padding: 0.38rem 0.5rem !important;
    }

    .page-frame {
        padding: 0.65rem 0.25rem 1rem;
    }

    .home-page {
        gap: 0.75rem;
    }

    .home-hero,
    .home-starter-flow,
    .home-events,
    .home-support {
        padding: 0.8rem;
    }

    .home-title {
        font-size: 1.65rem;
        line-height: 1.15;
    }

    .home-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .home-language-marquee {
        min-height: 4.75rem;
    }

    .home-language-marquee__signal {
        right: 1rem;
        left: 1rem;
    }

    .home-action-card {
        gap: 0.5rem;
        min-height: 4.8rem;
        padding: 0.6rem;
    }

    .home-score-reminders__item {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.5rem;
        padding: 0.55rem 0.65rem;
    }

    .home-score-reminders__action {
        grid-column: 2;
        justify-self: start;
    }

    .home-action-card__icon {
        width: 1.9rem;
        height: 1.9rem;
        font-size: 1rem;
    }

    .home-action-card strong {
        font-size: 0.84rem;
    }

    .home-action-card__copy > span {
        font-size: 0.72rem;
    }

    .home-starter-flow__header {
        display: grid;
        align-items: start;
    }

    .home-starter-flow__steps {
        grid-template-columns: 1fr;
    }

    .home-starter-flow__steps li + li {
        border-top: 1px solid var(--site-border);
        border-left: 0;
    }

    .home-starter-flow__steps a {
        min-height: 4.5rem;
    }

    .home-creator-application-note {
        font-size: 0.75rem;
    }

    .home-events__header > div > p {
        display: none;
    }

    .topbar-actions {
        justify-content: flex-end;
        gap: 0.35rem;
    }

    .topbar-actions > * {
        width: auto;
    }

    .topbar-picker {
        flex-basis: auto;
    }

    .topbar-profile,
    .login-links {
        width: auto;
    }

    .topbar-cta {
        justify-content: center;
    }

    .login-links {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-language-marquee::before,
    .home-language-marquee__signal,
    .home-language-marquee__phrase,
    .home-event,
    .home-event-skeleton span,
    .home-support-skeleton span {
        animation: none;
        transform: none;
    }

    .home-language-marquee__phrase--outgoing {
        display: none;
    }
}

@media (min-width: 992px) {
    .app-sidebar {
        width: 280px;
        min-height: 100vh;
        position: sticky;
        top: 0;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        display: block;
    }
}

/* MatchRoundSteps (RadzenSteps root carries the class, so scoped CSS cannot target it) */
.match-manager__steps {
    min-width: 0;
}

.match-manager__round-steps {
    margin-top: 20px;
    margin-bottom: 1rem;
}

.match-manager__round-steps .rz-tabview-panels,
.match-manager__round-steps .rz-tabview-panel,
.match-manager__round-steps .rz-steps-content {
    overflow: visible;
}

.match-manager__round-steps .rz-steps {
    margin-bottom: 0.9rem;
}

@media (max-width: 767.98px) {
    .match-manager__steps {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
        scrollbar-width: none;
        padding-bottom: 0.35rem;
    }

    .match-manager__steps::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .match-manager__steps > ul {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
        min-width: 100%;
        gap: 0.35rem;
    }

    .match-manager__steps .rz-steps-item {
        flex: 0 0 auto;
        min-width: 8.75rem;
    }

    .match-manager__round-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
        scrollbar-width: none;
        padding-bottom: 0.35rem;
    }

    .match-manager__round-nav::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .match-manager__round-nav-item {
        flex: 0 0 min(20rem, 86vw);
    }
}
.match-battle-analysis-dialog {
    width: calc(100vw - 20px) !important;
    height: calc(100dvh - 20px) !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
}

.match-battle-analysis-dialog__content {
    height: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 720px) {
    .match-battle-analysis-dialog {
        width: 100vw !important;
        height: 100dvh !important;
        max-width: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
}
