@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #1a7b6f;
}

.btn-primary {
    color: #fff;
    background-color: #1a7b6f;
    border-color: #166b60;
}

.btn-primary:hover {
    background-color: #166b60;
    border-color: #125e54;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.5rem;
}

.app-language-floating {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1rem 0;
}

.app-language-switch {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
}

.landing-shell {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: linear-gradient(145deg, #f6f7f3 0%, #f0f5f2 50%, #eef1f4 100%);
    overflow: hidden;
}

.landing-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/images/mojeliga-badminton-logo.svg') center center / min(70vw, 620px) no-repeat;
    opacity: 0.14;
    transform: scale(1.1);
}

.landing-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.9) 60%, rgba(246,247,243,0.98) 100%);
}

.landing-panel {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    text-align: center;
}

.landing-content {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    display: grid;
    gap: 2rem;
    justify-items: center;
}

.landing-title {
    margin-bottom: 1rem;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #153640;
}

.landing-text {
    max-width: 32rem;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #4c6167;
}

.landing-actions {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.home-guide-shell {
    padding: 2rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(203, 213, 225, 0.8);
    box-shadow: 0 24px 60px rgba(16, 32, 52, 0.1);
    backdrop-filter: blur(10px);
}

.home-guide-header {
    max-width: 52rem;
    margin: 0 auto 1.75rem;
    text-align: center;
}

.home-guide-kicker {
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #1a7b6f;
}

.home-guide-header h2 {
    margin-bottom: 0.85rem;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: #153640;
}

.home-guide-header p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #4c6167;
}

.home-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.home-guide-card {
    padding: 1.5rem;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
    border: 1px solid #dbe4ea;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.home-guide-card-header {
    margin-bottom: 1rem;
}

.home-guide-card-header h3 {
    margin: 0.6rem 0 0;
    font-size: 1.35rem;
    color: #163942;
}

.home-guide-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #d8f2ec;
    color: #0f5c52;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-guide-badge-admin {
    background: #fff0cf;
    color: #8b5b0e;
}

.home-guide-features {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    list-style: none;
}

.home-guide-features li {
    position: relative;
    padding-left: 1.2rem;
    color: #2d4f59;
    font-size: 0.92rem;
    line-height: 1.5;
}

.home-guide-features li + li {
    margin-top: 0.45rem;
}

.home-guide-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3aab8c;
}

.home-guide-list {
    margin: 0;
    padding-left: 1.25rem;
}

.home-guide-list li + li {
    margin-top: 1rem;
}

.home-guide-list strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #153640;
}

.home-guide-list p {
    margin: 0;
    line-height: 1.7;
    color: #4c6167;
}

.qa-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-stats-bar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0.6rem 1.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(203, 213, 225, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(16, 32, 52, 0.07);
}

.home-stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.25rem;
    gap: 0.05rem;
    min-width: 4rem;
}

.home-stats-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #153640;
    line-height: 1.2;
}

.home-stats-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4c6167;
}

.home-stats-sep {
    width: 1px;
    height: 2rem;
    background: rgba(203, 213, 225, 0.9);
    flex-shrink: 0;
}

.landing-button {
    min-width: 240px;
    padding: 1.15rem 2rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 800;
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.landing-button:hover {
    transform: translateY(-2px);
    color: inherit;
}

.landing-button-primary {
    background: #1a7b6f;
    color: #fff;
    box-shadow: 0 20px 44px rgba(26, 123, 111, 0.24);
}

.landing-button-secondary {
    background: #f3b24d;
    color: #173640;
    box-shadow: 0 20px 44px rgba(243, 178, 77, 0.24);
}

.liga-login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: linear-gradient(180deg, #f7faf8 0%, #eef3f2 100%);
}

.login-card {
    width: min(460px, 100%);
    padding: 2rem;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 22px 56px rgba(16, 32, 52, 0.12);
}

.login-card h1 {
    margin-bottom: 0.75rem;
}

.login-card p {
    color: #62727b;
}

.login-mode-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.login-mode-button {
    border: 1px solid #d6e0e6;
    border-radius: 999px;
    background: #f5f8f7;
    color: #37515a;
    font-weight: 700;
    padding: 0.7rem 0.9rem;
    transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.login-mode-button.active {
    background: #1a7b6f;
    border-color: #1a7b6f;
    color: #fff;
}

.login-mode-button:hover {
    background: #eaf4f1;
}

.login-mode-button.active:hover {
    background: #176d63;
}

@media (max-width: 575.98px) {
    .login-mode-switch {
        grid-template-columns: 1fr;
    }
}

.leaderboard-number {
    text-align: right;
    white-space: nowrap;
}

.leaderboard-col-rank {
    width: 4.25rem;
}

.leaderboard-col-points {
    width: 5.25rem;
}

.leaderboard-col-played {
    width: 6.5rem;
}

.leaderboard-col-name {
    width: 18rem;
}

.leaderboard-col-email {
    width: 14rem;
}

.leaderboard-col-phone {
    width: 11rem;
}

.leaderboard-filter-number {
    text-align: right;
}

.leaderboard-filter-panel {
    margin-bottom: 1rem;
}

.liga-page-card {
    padding: 1.05rem 1.1rem;
    border: 1px solid #dbe8e5;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdfc 0%, #f4faf8 100%);
    box-shadow: 0 16px 40px rgba(15, 45, 56, 0.08);
}

.liga-page-subcard {
    padding: 0.9rem;
    border: 1px solid #d7e4e0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.liga-prose-card {
    color: #243b42;
    line-height: 1.7;
}

.liga-page-intro {
    max-width: 58rem;
    color: #536a73;
    font-size: 1rem;
}

.liga-prose-card h2,
.liga-prose-card h3 {
    color: #173841;
}

.liga-prose-card h2 {
    margin-top: 2rem;
}

.liga-prose-card h2:first-of-type {
    margin-top: 0;
}

.liga-prose-card table {
    background: rgba(255, 255, 255, 0.96);
}

.leaderboard-shell-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.leaderboard-shell-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.leaderboard-shell-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #54727b;
}

.leaderboard-shell-title {
    color: #12343d;
    font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
}

.leaderboard-shell-meta {
    flex-shrink: 0;
    padding: 0.45rem 0.8rem;
    border: 1px solid #cfe0dc;
    border-radius: 999px;
    background: rgba(186, 227, 214, 0.32);
    color: #295763;
    font-size: 0.84rem;
    font-weight: 700;
}

.leaderboard-topbar {
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.leaderboard-filters.tournament-filters {
    display: grid;
    grid-template-columns: minmax(10rem, 10.5rem) minmax(10rem, 10.5rem) minmax(18rem, 2fr) minmax(11rem, 1.2fr) minmax(10rem, 0.9fr);
}

.tournament-filter-date-from,
.tournament-filter-date-to {
    min-width: 0;
}

.tournament-filter-name {
    min-width: 0;
}

.tournament-filter-city {
    min-width: 0;
}

.tournament-filter-type {
    min-width: 0;
}

.leaderboard-filter-checkbox {
    display: none;
}

.leaderboard-filter-toggle {
    display: none;
}

.leaderboard-filters {
    display: grid;
    grid-template-columns: 4.25rem minmax(14rem, 2.2fr) 5.25rem 6.5rem minmax(12rem, 1.6fr) minmax(10rem, 1.2fr);
    gap: 0.5rem;
    align-items: center;
}

.leaderboard-filters .form-control {
    min-height: 2.55rem;
    border-color: #d5e3df;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 1px 2px rgba(19, 52, 61, 0.04);
}

.leaderboard-filters .form-control:focus {
    border-color: #6fb6a5;
    box-shadow: 0 0 0 0.18rem rgba(77, 154, 132, 0.16);
}

.leaderboard-scroll {
    max-height: calc(100vh - 18rem);
    overflow: auto;
    border-radius: 16px;
    background: #fdfefe;
    border: 1px solid #d9e7e3;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.leaderboard-scroll table {
    background: transparent;
    margin-bottom: 0;
}

.leaderboard-table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: transparent;
}

.leaderboard-scroll thead th {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid #bfd4cf;
    background: linear-gradient(180deg, #d7efe7 0%, #c3e6dc 100%);
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 1px 0 #b7d1c9;
    color: #12343d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.leaderboard-scroll tbody tr:last-child td {
    border-bottom: 0;
}

.leaderboard-scroll tbody td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid #e3eeeb;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.82);
}

.leaderboard-row:hover td {
    background: rgba(243, 250, 247, 0.98);
}

.leaderboard-row-top td {
    background: linear-gradient(180deg, rgba(250, 254, 252, 0.95) 0%, rgba(241, 250, 246, 0.95) 100%);
}

.leaderboard-rank-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.3rem;
    padding: 0.38rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #d4e3df;
    background: #f6fbf9;
    color: #23444c;
    font-weight: 800;
    line-height: 1;
}

.leaderboard-rank-first {
    border-color: #d9bf61;
    background: linear-gradient(180deg, #fff6cf 0%, #f4e19c 100%);
    color: #6e5613;
}

.leaderboard-rank-second {
    border-color: #c3ced5;
    background: linear-gradient(180deg, #f8fbfd 0%, #dce5ea 100%);
    color: #455962;
}

.leaderboard-rank-third {
    border-color: #d3aa8c;
    background: linear-gradient(180deg, #fbeee6 0%, #e8c0a5 100%);
    color: #74452f;
}

.leaderboard-player-cell,
.leaderboard-contact-cell {
    color: #21414a;
}

.leaderboard-player-main {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.leaderboard-player-name {
    font-weight: 700;
    color: #12343d;
}

.leaderboard-you-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #d8efe7 0%, #c2e5d9 100%);
    border: 1px solid #afd8ca;
    color: #195262;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.leaderboard-player-meta-mobile {
    display: none;
}

.leaderboard-stat-value {
    display: inline-block;
    min-width: 2.25rem;
    padding: 0.12rem 0;
    color: #11323c;
    font-size: 1.02rem;
}

.leaderboard-stat-value-muted {
    color: #335a65;
    font-weight: 700;
}

.leaderboard-player-link {
    padding: 0;
    border: 0;
    color: #0f5132;
    font-weight: 700;
    text-decoration: none;
}

.leaderboard-player-link:hover,
.leaderboard-player-link:focus {
    color: #0a3622;
    text-decoration: underline;
}

.leaderboard-row-current td {
    background: linear-gradient(180deg, rgba(224, 246, 240, 0.98) 0%, rgba(214, 239, 231, 0.98) 100%);
}

.leaderboard-row-current:hover td {
    background: linear-gradient(180deg, rgba(216, 242, 235, 1) 0%, rgba(203, 234, 224, 1) 100%);
}

.leaderboard-row-current .leaderboard-rank-pill {
    border-color: #87c8b7;
    background: linear-gradient(180deg, #effaf6 0%, #d9efe7 100%);
}

.player-detail-shell {
    padding: 1.5rem;
    border: 1px solid #dbe4ea;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
    box-shadow: 0 14px 38px rgba(16, 32, 52, 0.08);
}

.rules-editor-shell {
    padding: 1.25rem;
    border: 1px solid #dbe4ea;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    box-shadow: 0 14px 36px rgba(16, 32, 52, 0.08);
}

.rules-editor-header {
    margin-bottom: 1rem;
}

.rules-toolbar {
    border: 1px solid #dbe4ea;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: #f8fafc;
}

.rules-editor-header h2 {
    margin-bottom: 0.35rem;
    border-radius: 0 0 12px 12px;
}

.rules-editor-header p {
    margin-bottom: 0;
    color: #62727b;
}

.rules-editor-pane {
    min-width: 0;
}
.rules-rich-editor-shell {
    position: relative;
    border: 1px solid #dbe4ea;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.rules-rich-editor-shell .ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid #dbe4ea;
    background: #f8fafc;
}

.rules-rich-editor-shell .ql-container.ql-snow {
    border: 0;
}

.rules-rich-editor-shell .ql-editor {
    min-height: 26rem;
    font-size: 1rem;
    line-height: 1.7;
}

.rules-rich-editor-shell:focus-within {
    border-color: #258cfb;
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(37, 140, 251, 0.25);
}

.turnaj-shell {
    max-width: 1180px;
    margin: 1.4rem auto;
    padding: 1.35rem;
    border-radius: 24px;
    background: linear-gradient(180deg, #fffdfa 0%, #f4f7f4 100%);
    width: 100%;
    box-shadow: 0 18px 48px rgba(16, 32, 52, 0.1);
}

.tournament-list-shell {
    padding-top: 0.95rem;
}

.tournament-list-grid {
    display: grid;
    gap: 1.5rem;
}

.tournament-list-section {
    display: grid;
    gap: 0.75rem;
}

.tournament-scroll-short {
    max-height: min(24rem, calc(100vh - 21rem));
}

.tournament-col-status {
    width: 8.5rem;
}

.tournament-col-date {
    width: 9.5rem;
}

.tournament-col-type {
    width: 10.5rem;
}

.tournament-col-name {
    width: 15rem;
}

.tournament-col-city {
    width: 8.5rem;
}

.tournament-col-registration {
    width: 10rem;
}

.tournament-col-max {
    width: 4.5rem;
}

.tournament-col-registered {
    width: 6.5rem;
}

.tournament-col-actions {
    width: 12.5rem;
}

.tournament-action-buttons {
    display: inline-grid;
    grid-template-columns: repeat(2, 2rem);
    gap: 0.35rem;
    justify-content: start;
}

.tournament-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid #d0d7de;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    text-decoration: none;
    transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.tournament-icon-button:hover,
.tournament-icon-button:focus {
    transform: translateY(-1px);
    text-decoration: none;
}

.tournament-icon-button:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.18rem rgba(37, 140, 251, 0.2);
}

.tournament-icon-button svg {
    width: 1rem;
    height: 1rem;
}

.tournament-icon-button-secondary {
    color: #475569;
    border-color: #cbd5e1;
}

.tournament-icon-button-secondary:hover,
.tournament-icon-button-secondary:focus {
    color: #334155;
    background: #f8fafc;
    border-color: #94a3b8;
}

.tournament-icon-button-success {
    color: #0f766e;
    border-color: #99f6e4;
    background: #f0fdfa;
}

.tournament-icon-button-success:hover,
.tournament-icon-button-success:focus {
    color: #115e59;
    border-color: #5eead4;
    background: #ccfbf1;
}

.tournament-icon-button-primary {
    color: #1d4ed8;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.tournament-icon-button-primary:hover,
.tournament-icon-button-primary:focus {
    color: #1e40af;
    border-color: #93c5fd;
    background: #dbeafe;
}

.tournament-icon-button-danger {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2;
}

.tournament-icon-button-danger:hover,
.tournament-icon-button-danger:focus {
    color: #991b1b;
    border-color: #fca5a5;
    background: #fee2e2;
}

.tournament-detail-link {
    color: #0f5132;
    text-decoration: none;
}

.tournament-detail-link:hover,
.tournament-detail-link:focus {
    color: #0a3622;
    text-decoration: underline;
}

.tournament-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6.75rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.tournament-status-planned {
    color: #0f5c52;
    background: #dff7ef;
}

.tournament-status-past {
    color: #6b7280;
    background: #eceff3;
}

.tournament-propositions-input {
    min-height: 10rem;
}

.tournament-editor-pane .rules-rich-editor-shell .ql-editor,
.tournament-rich-editor.ql-container .ql-editor {
    min-height: 18rem;
}

.rules-image-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.55rem 0;
}

.rules-image-tools[data-image-tools-template="true"] {
    display: none;
}

.rules-image-overlay {
    position: absolute;
    z-index: 5;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.3rem;
    padding: 0.38rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(8px);
}

.rules-image-overlay[hidden] {
    display: none;
}

.rules-image-tools .rules-image-tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border: 1px solid #dbe4ea;
    border-radius: 0.6rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #1e293b;
    line-height: 1;
    cursor: pointer;
    transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.rules-image-tools .rules-image-tool-button-with-label {
    width: auto;
    min-width: 4.8rem;
    padding: 0 0.65rem;
    gap: 0.32rem;
}

.rules-image-tools .rules-image-tool-button:hover,
.rules-image-tools .rules-image-tool-button:focus {
    background: #edf4ff;
    border-color: #93c5fd;
    box-shadow: 0 0 0 0.18rem rgba(147, 197, 253, 0.2);
    outline: none;
    transform: translateY(-1px);
}

.rules-image-tools .rules-image-tool-button:active {
    transform: translateY(0);
}

.rules-image-tools .rules-image-tool-button[data-image-align] {
    color: #075985;
    border-color: #bae6fd;
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
}

.rules-image-tools .rules-image-tool-button[data-image-align]:hover,
.rules-image-tools .rules-image-tool-button[data-image-align]:focus {
    background: #dbeafe;
    border-color: #7dd3fc;
    box-shadow: 0 0 0 0.18rem rgba(125, 211, 252, 0.22);
}

.rules-image-tools .rules-image-tool-button[data-image-size] {
    color: #166534;
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
}

.rules-image-tools .rules-image-tool-button[data-image-size]:hover,
.rules-image-tools .rules-image-tool-button[data-image-size]:focus {
    background: #dcfce7;
    border-color: #86efac;
    box-shadow: 0 0 0 0.18rem rgba(134, 239, 172, 0.22);
}

.rules-image-tools .rules-image-tool-button[data-image-rotate] {
    color: #7c2d12;
    border-color: #fed7aa;
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
}

.rules-image-tools .rules-image-tool-button[data-image-rotate]:hover,
.rules-image-tools .rules-image-tool-button[data-image-rotate]:focus {
    background: #ffedd5;
    border-color: #fdba74;
    box-shadow: 0 0 0 0.18rem rgba(253, 186, 116, 0.24);
}

.rules-image-tools .rules-image-tool-button[data-image-reset-rotation] {
    color: #5b21b6;
    border-color: #ddd6fe;
    background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
}

.rules-image-tools .rules-image-tool-button[data-image-reset-rotation]:hover,
.rules-image-tools .rules-image-tool-button[data-image-reset-rotation]:focus {
    background: #ede9fe;
    border-color: #c4b5fd;
    box-shadow: 0 0 0 0.18rem rgba(196, 181, 253, 0.24);
}

.rules-image-tools .rules-image-tool-button-danger {
    color: #b91c1c;
}

.rules-image-tools .rules-image-tool-button-danger:hover,
.rules-image-tools .rules-image-tool-button-danger:focus {
    background: #fef2f2;
    border-color: #fca5a5;
    box-shadow: 0 0 0 0.18rem rgba(252, 165, 165, 0.22);
}

.rules-image-tool-icon {
    position: relative;
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
}

.rules-image-tool-text {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.rules-image-tool-icon::before,
.rules-image-tool-icon::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
}

.rules-image-tool-icon-align-left::before,
.rules-image-tool-icon-align-center::before,
.rules-image-tool-icon-align-right::before {
    top: 0.18rem;
    bottom: 0.18rem;
    width: 0.16rem;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.8;
}

.rules-image-tool-icon-align-left::before {
    left: 0.08rem;
}

.rules-image-tool-icon-align-center::before {
    left: calc(50% - 0.08rem);
}

.rules-image-tool-icon-align-right::before {
    right: 0.08rem;
}

.rules-image-tool-icon-align-left::after,
.rules-image-tool-icon-align-center::after,
.rules-image-tool-icon-align-right::after {
    top: 0.24rem;
    width: 0.62rem;
    height: 0.72rem;
    border: 0.12rem solid currentColor;
    border-radius: 0.18rem;
    background: rgba(96, 165, 250, 0.12);
}

.rules-image-tool-icon-align-left::after {
    left: 0.3rem;
}

.rules-image-tool-icon-align-center::after {
    left: calc(50% - 0.31rem);
}

.rules-image-tool-icon-align-right::after {
    right: 0.3rem;
}

.rules-image-tool-icon-size-small::before,
.rules-image-tool-icon-size-medium::before,
.rules-image-tool-icon-size-large::before {
    left: 50%;
    top: 50%;
    border: 0.12rem solid currentColor;
    border-radius: 0.18rem;
    background: rgba(96, 165, 250, 0.12);
    transform: translate(-50%, -50%);
}

.rules-image-tool-icon-size-small::before {
    width: 0.52rem;
    height: 0.42rem;
}

.rules-image-tool-icon-size-medium::before {
    width: 0.74rem;
    height: 0.56rem;
}

.rules-image-tool-icon-size-large::before {
    width: 0.96rem;
    height: 0.72rem;
}

.rules-image-tool-icon-rotate-left::before,
.rules-image-tool-icon-rotate-right::before {
    left: 50%;
    top: 50%;
    width: 0.72rem;
    height: 0.72rem;
    border: 0.14rem solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    transform: translate(-50%, -50%);
}

.rules-image-tool-icon-rotate-left::after,
.rules-image-tool-icon-rotate-right::after {
    top: 0.18rem;
    width: 0.34rem;
    height: 0.34rem;
    border-top: 0.14rem solid currentColor;
    border-left: 0.14rem solid currentColor;
}

.rules-image-tool-icon-rotate-left::after {
    left: 0.06rem;
    transform: rotate(-45deg);
}

.rules-image-tool-icon-rotate-right::before {
    border-right-color: currentColor;
    border-left-color: transparent;
}

.rules-image-tool-icon-rotate-right::after {
    right: 0.06rem;
    transform: rotate(135deg);
}

.rules-image-tool-icon-rotate-reset::before {
    left: 50%;
    top: 50%;
    width: 0.76rem;
    height: 0.76rem;
    border: 0.14rem solid currentColor;
    border-bottom-color: transparent;
    border-radius: 999px;
    transform: translate(-50%, -50%) rotate(12deg);
}

.rules-image-tool-icon-rotate-reset::after {
    right: 0.08rem;
    top: 0.12rem;
    width: 0.3rem;
    height: 0.3rem;
    border-top: 0.14rem solid currentColor;
    border-right: 0.14rem solid currentColor;
    transform: rotate(12deg);
}

.rules-image-tool-icon-remove::before,
.rules-image-tool-icon-remove::after {
    left: 50%;
    top: 0.16rem;
    width: 0.16rem;
    height: 0.9rem;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
}

.rules-image-tool-icon-remove::before {
    transform: translateX(-50%) rotate(45deg);
}

.rules-image-tool-icon-remove::after {
    transform: translateX(-50%) rotate(-45deg);
}

.rules-rich-editor .ql-editor img.rules-image-active {
    outline: 2px solid #60a5fa;
    outline-offset: 3px;
}

@media (max-width: 767.98px) {
    .rules-image-overlay {
        flex-wrap: wrap;
        max-width: min(18rem, calc(100% - 1rem));
        gap: 0.35rem;
    }

    .rules-image-tools .rules-image-tool-button-with-label {
        min-width: 5.25rem;
    }
}

.tournament-propositions-text {
    color: #243b42;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.tournament-propositions-text img,
.tournament-rich-editor .ql-editor img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.tournament-propositions-text > :last-child {
    margin-bottom: 0;
}

.tournament-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.tournament-overview-item {
    padding: 1rem;
    border: 1px solid #dbe4ea;
    border-radius: 14px;
    background: #fbfdfc;
}

.tournament-overview-label {
    margin-bottom: 0.25rem;
    color: #62727b;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tournament-registration-panel {
    padding: 1rem;
    border: 1px solid #dbe4ea;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
}

.liga-section {
    display: block;
    width: 100%;
}

.liga-section .liga-controls,
.liga-section .liga-heading {
    width: 100%;
    box-sizing: border-box;
}

.liga-section .results-matrix-wrapper {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.liga-heading {
    font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
    font-weight: 500;
    color: #12343d;
    line-height: 1.15;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #d0ebe4;
}

.liga-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
    padding: 0.75rem 0.95rem;
    margin-bottom: 1.15rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #dbe4ea;
    box-shadow: 0 2px 8px rgba(16, 32, 52, 0.05);
}

.liga-controls label > div:first-child {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #62727b;
    margin-bottom: 0.3rem;
}

.liga-guest-note {
    font-size: 0.85rem;
    color: #62727b;
    font-style: italic;
}

.qa-page-card {
    padding-bottom: 1rem;
}

.qa-list-scroll {
    height: 600px;
    overflow-y: auto;
    padding-right: 4px;
}

.qa-item-card {
    border-color: #d9e5e1;
}

.results-matrix-wrapper {
    width: 100%;
    max-width: min(100%, 1400px);
    margin-inline: auto;
    overflow-x: auto;
    padding: 0.5rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fcfb 0%, #eef6f4 100%);
    border: 1px solid #d7e7e3;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    -webkit-overflow-scrolling: touch;
}

.results-matrix {
    width: 100%;
    min-width: max-content;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
    border: 1px solid #c8d5df;
    border-radius: 14px;
    overflow: hidden;
    font-size: clamp(0.8rem, 1.3vw, 1.1rem);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.results-matrix th,
.results-matrix td {
    border: 1px solid #c9d5df;
    padding: 0;
    vertical-align: middle;
    overflow: hidden;
}

.results-matrix th {
    border-width: 1px;
}

.results-matrix tbody tr {
    height: clamp(62px, 5.9vw, 82px);
}

.results-matrix thead tr {
    height: clamp(62px, 5.9vw, 82px);
}

.results-matrix thead .results-player-cell,
.results-matrix thead .results-empty-cell {
    height: clamp(92px, 8vw, 112px);
}

.results-player-cell {
    min-width: clamp(146px, 11vw, 190px);
    padding: clamp(0.25rem, 0.5vw, 0.5rem) !important;
    background: linear-gradient(165deg, #e8f6f1 0%, #c6e7dc 100%);
    font-weight: 400;
    text-align: center;
    overflow: hidden;
    color: #12343d;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 1;
}

.results-player-order {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.82em;
    font-weight: 700;
    text-align: center;
    color: #315563;
}

.results-player-name {
    display: block;
    line-height: 1.2;
    text-align: center;
    font-size: 1em;
    font-weight: 700;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.results-player-name-mobile {
    display: none;
}

.results-player-info {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.72em;
    font-style: italic;
    line-height: 1.1;
    text-align: center;
    color: #45646f;
}

.results-player-points-mobile {
    display: none;
}

.results-empty-cell {
    background-color: #f4f8fb;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(148, 163, 184, 0.22) 0,
        rgba(148, 163, 184, 0.22) 4px,
        rgba(255, 255, 255, 0.55) 4px,
        rgba(255, 255, 255, 0.55) 10px
    );
    background-size: auto;
}

.results-editable-cell {
    position: relative;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.results-match-cell {
    padding: 0;
}

.results-editable-cell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #fff4d8 0%, #ffe8b7 100%);
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.12);
    pointer-events: none;
}

.results-editable-cell:hover {
    box-shadow: inset 0 0 0 2px rgba(217, 119, 6, 0.2);
}

.results-editable-cell:hover::before {
    background: linear-gradient(180deg, #ffefcc 0%, #ffdfa2 100%);
}

.results-score-table {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    display: table;
    max-height: clamp(62px, 6.4vw, 86px);
    overflow: hidden;
    padding: 0.1rem 0.18rem 0.14rem;
}

.results-editable-cell .results-score-table {
    pointer-events: none;
}

.results-editable-cell .results-score-table,
.results-editable-cell .results-score-table thead,
.results-editable-cell .results-score-table tbody,
.results-editable-cell .results-score-table tr,
.results-editable-cell .results-score-table th,
.results-editable-cell .results-score-table td {
    background-color: transparent !important;
    background-image: none !important;
}

.results-score-table th {
    border: 0;
    text-align: center;
    margin: 0;
    padding: 0.03rem 0.14rem 0.09rem;
    line-height: 1.0;
    font-size: 1.3em;
    font-style: normal;
    font-weight: 800;
    display: table-cell;
    width: 100%;
    min-width: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #0f2e39;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.results-score-table tbody {
    display: table-row-group;
    width: 100%;
    margin: 0;
    padding-bottom: 0;
}

.results-score-table tbody tr {
    display: table-row;
    height: auto;
}

.results-score-table td {
    border: 0;
    text-align: center;
    min-width: 0;
    width: 50%;
    padding: 0.01rem 0.14rem;
    line-height: 1.05;
    font-size: 0.74em;
    font-style: normal;
    color: #425b67;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.results-editable-cell .results-score-table th {
    background: transparent;
    box-shadow: none;
}

.results-editable-cell .results-score-table td {
    background: transparent;
    box-shadow: none;
}

@media (min-width: 901px) {
    .results-matrix-wrapper {
        max-height: calc(100vh - 15rem);
    }

    .results-matrix thead th {
        position: sticky;
        top: 0;
        z-index: 4;
    }

    .results-matrix tbody th {
        position: sticky;
        left: 0;
        z-index: 3;
    }

    .results-matrix thead th:first-child {
        left: 0;
        z-index: 5;
    }

    .results-matrix td:not(.results-empty-cell):not(.results-editable-cell) {
        min-width: clamp(92px, 6.2vw, 120px);
        background: #ffffff;
    }

}

@media (max-width: 900px) {
    .landing-shell {
        padding: 1rem;
    }

    .landing-content {
        width: 100%;
        min-width: 0;
        gap: 1.25rem;
    }

    .landing-panel,
    .home-guide-shell,
    .home-stats-bar {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .landing-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-button {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .home-guide-shell {
        padding: 1.25rem;
        border-radius: 22px;
    }

    .home-guide-grid {
        grid-template-columns: 1fr;
    }

    .home-stats-bar {
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 0.6rem;
        padding: 0.8rem 1rem;
        border-radius: 1.5rem;
    }

    .home-stats-item {
        padding: 0 0.85rem;
    }

    .home-stats-sep {
        display: none;
    }

    .results-matrix {
        font-size: clamp(0.65rem, 1.5vw, 0.9rem);
    }

    .liga-controls {
        gap: 8px;
    }

    .tournament-filters {
        grid-template-columns: 1fr;
    }

    .tournament-list-grid {
        gap: 1rem;
    }

    .tournament-scroll-short {
        max-height: none;
    }

    .tournament-overview-grid {
        grid-template-columns: 1fr;
    }

    .results-player-cell {
        min-width: 122px;
        height: 76px !important;
        background: linear-gradient(160deg, #d0ebe4 0%, #b9dfd5 100%);
    }

    .results-player-order {
        margin-bottom: 0.12rem;
    }

    .results-player-info {
        margin-top: 0.12rem;
        font-size: 0.54rem;
    }

    .results-match-cell {
        height: 76px !important;
        padding-top: 0.18rem;
        padding-bottom: 0.18rem;
    }

    .results-empty-cell {
        min-width: 82px;
        height: 68px;
        background-color: #f4f8fb;
    }

    .results-matrix tbody tr {
        height: auto;
        min-height: 68px;
    }

    .results-matrix tbody td {
        overflow: visible;
    }

    .results-matrix th,
    .results-matrix td {
        text-align: center;
        vertical-align: middle;
    }

    .results-match-cell {
        padding-top: 0.18rem;
        padding-bottom: 0.18rem;
    }

    .results-score-table {
        max-height: none;
        padding: 0.12rem 0.08rem 0.12rem;
    }

    .results-score-table th {
        font-size: 1.32rem;
        padding: 0.02rem 0.08rem 0.04rem;
    }

    .results-score-table td {
        font-size: 0.84rem;
        min-width: 1.2rem;
        padding: 0.01rem 0.08rem;
    }

    .results-score-table tbody {
        display: table-row-group;
    }

    .leaderboard-filter-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        padding: 0.45rem 0.7rem;
        border: 1px solid #cbd5e1;
        border-radius: 0.5rem;
        background: #fff;
        color: #475569;
        cursor: pointer;
        user-select: none;
    }

    .leaderboard-filter-checkbox:checked + .leaderboard-filter-toggle {
        margin-bottom: 0.75rem;
    }

    .leaderboard-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        display: none;
    }

    .leaderboard-filters.tournament-filters {
        grid-template-columns: 1fr;
        display: none;
    }

    .leaderboard-filter-checkbox:checked ~ .leaderboard-filters {
        display: grid;
    }

    .leaderboard-scroll {
        max-height: calc(100vh - 14rem);
    }

    .leaderboard-shell-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .rules-preview {
        min-height: 18rem;
    }
}

@media (max-width: 640px) {
    .turnaj-shell {
        margin: 1rem auto;
        padding: 1rem;
        border-radius: 18px;
    }

    .leaderboard-shell-card {
        padding: 0;
    }

    .liga-page-card {
        padding: 0.9rem;
        border-radius: 16px;
    }

    .liga-page-subcard {
        padding: 0.8rem;
    }

    .liga-heading {
        margin-bottom: 0.85rem;
        padding-bottom: 0.45rem;
    }

    .liga-controls {
        padding: 0.65rem 0.75rem;
        margin-bottom: 0.9rem;
    }

    .liga-page-intro {
        font-size: 0.94rem;
    }

    .leaderboard-shell-meta {
        font-size: 0.74rem;
    }

    .leaderboard-scroll {
        max-height: none;
        overflow: visible;
    }

    .leaderboard-scroll table,
    .leaderboard-scroll thead,
    .leaderboard-scroll tbody,
    .leaderboard-scroll tr,
    .leaderboard-scroll th,
    .leaderboard-scroll td {
        display: block;
        width: 100%;
    }

    .leaderboard-scroll thead {
        display: none;
    }

    .leaderboard-scroll tbody {
        display: grid;
        gap: 0.72rem;
    }

    .leaderboard-scroll tbody tr {
        border: 1px solid #dbe8e4;
        border-radius: 14px;
        overflow: hidden;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 250, 248, 0.98) 100%);
        box-shadow: 0 10px 22px rgba(18, 52, 61, 0.06);
    }

    .leaderboard-scroll tbody td {
        border: 0;
        background: transparent;
        padding: 0.55rem 0.75rem;
    }

    .leaderboard-scroll tbody td:first-child {
        padding-top: 0.72rem;
        padding-bottom: 0.15rem;
    }

    .leaderboard-number {
        text-align: left;
    }

    .leaderboard-rank-pill {
        min-width: 2.1rem;
    }

    .leaderboard-data-cell {
        display: none !important;
    }

    .leaderboard-player-cell {
        padding-top: 0.2rem !important;
        padding-bottom: 0.75rem !important;
    }

    .leaderboard-player-main {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .leaderboard-player-link,
    .leaderboard-player-name {
        font-size: 0.98rem;
    }

    .leaderboard-player-meta-mobile {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem 0.9rem;
        margin-top: 0.12rem;
        color: #42606a;
        font-size: 0.78rem;
        font-weight: 700;
    }

    .leaderboard-you-badge {
        font-size: 0.66rem;
        padding: 0.18rem 0.48rem;
    }

    .qa-list-scroll {
        height: auto;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .turnaj-shell {
        margin: 0.8rem auto;
        padding: 0.9rem;
        border-radius: 18px;
    }

    .results-matrix-wrapper {
        margin-inline: 0;
        padding-inline: 0;
        padding-top: 0;
        padding-bottom: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow-x: visible;
    }

    .results-matrix {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
        font-size: clamp(0.48rem, 2.15vw, 0.68rem);
    }

    .results-matrix th,
    .results-matrix td,
    .results-player-cell,
    .results-empty-cell {
        min-width: 0 !important;
    }

    .results-matrix thead tr,
    .results-matrix tbody tr {
        height: auto;
        min-height: clamp(58px, 11.6vw, 72px);
    }

    .results-matrix thead .results-player-cell,
    .results-matrix thead .results-empty-cell,
    .results-matrix tbody .results-player-cell,
    .results-matrix tbody .results-empty-cell {
        height: auto;
        min-height: clamp(58px, 11.6vw, 72px);
    }

    .results-matrix tbody td {
        overflow: visible;
    }

    .results-matrix th,
    .results-matrix td {
        text-align: center;
        vertical-align: middle;
    }

    .results-match-cell {
        height: 76px !important;
        padding: 0 !important;
    }

    .results-player-cell {
        padding: 0.2rem 0.12rem !important;
        vertical-align: middle;
    }

    .results-player-order {
        margin-bottom: 0.06rem;
        font-size: 0.48rem;
    }

    .results-player-name {
        display: none;
    }

    .results-player-name-mobile {
        display: block;
        line-height: 1.0;
        font-size: 0.74rem;
        font-weight: 700;
        text-align: center;
        word-break: break-word;
        overflow-wrap: anywhere;
        color: #12343d;
    }

    .results-player-info {
        display: none;
    }

    .results-player-points-mobile {
        display: block;
        margin-top: 0.04rem;
        font-size: 0.5rem;
        line-height: 1.0;
        color: #45646f;
        font-weight: 700;
    }

    .results-empty-cell {
        height: auto;
    }

    .results-score-table th,
    .results-score-table td {
        padding: 0.02rem 0;
    }

    .results-score-table {
        display: table;
        width: 100%;
        height: 100%;
        max-height: none;
        padding: 0.12rem 0.08rem 0.12rem;
    }

    .results-score-table th {
        display: table-cell;
        font-size: 1.2rem;
        font-weight: 600;
        line-height: 1.0;
        text-align: center;
        vertical-align: middle;
        height: 64px;
    }

    .results-score-table td {
        width: 50%;
        min-width: 0;
        font-size: 0.5rem;
        line-height: 1.02;
        text-align: center;
        vertical-align: middle;
    }

    .results-score-table tbody {
        display: table-row-group;
        width: 100%;
        margin-top: 0.05rem;
    }

    .results-score-table tbody tr {
        display: table-row;
        height: auto;
    }

}

.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;
    }

#components-reconnect-modal {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
    display: none;
    max-width: min(26rem, calc(100vw - 2rem));
    pointer-events: none;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
}

.components-reconnect-shell[hidden] {
    display: none !important;
}

.components-reconnect-card {
    width: 100%;
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
    border: 1px solid rgba(148, 163, 184, 0.35);
    text-align: left;
}

.components-reconnect-card h2 {
    margin-bottom: 0.75rem;
    color: #153640;
    font-size: 1.35rem;
}

.components-reconnect-card p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }
