/* ── Blazor Error UI ───────────────────────────────────────────────────────── */

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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;
}

/* ── Design Tokens ─────────────────────────────────────────────────────────── */

:root {
  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);

  /* App canvas */
  --background: oklch(0.985 0.005 240);
  --foreground: oklch(0.18 0.04 250);

  --card: oklch(1 0 0);
  --card-foreground: oklch(0.18 0.04 250);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.18 0.04 250);

  /* Navy primary (logo) */
  --primary: oklch(0.32 0.08 255);
  --primary-foreground: oklch(0.99 0.005 240);

  /* Teal accent */
  --teal: oklch(0.78 0.12 195);
  --teal-foreground: oklch(0.18 0.04 250);
  --navy: oklch(0.25 0.07 258);
  --navy-foreground: oklch(0.99 0.005 240);

  --secondary: oklch(0.96 0.01 240);
  --secondary-foreground: oklch(0.25 0.05 255);

  --muted: oklch(0.965 0.006 240);
  --muted-foreground: oklch(0.5 0.03 250);

  --accent: oklch(0.94 0.04 195);
  --accent-foreground: oklch(0.25 0.05 255);

  --destructive: oklch(0.6 0.22 25);
  --destructive-foreground: oklch(0.99 0 0);
  --success: oklch(0.65 0.16 155);
  --success-foreground: oklch(0.99 0 0);
  --warning: oklch(0.75 0.16 65);
  --warning-foreground: oklch(0.2 0.05 60);

  --border: oklch(0.92 0.01 245);
  --input: oklch(0.92 0.01 245);
  --ring: oklch(0.55 0.1 220);

  /* Sidebar — deep navy */
  --sidebar: oklch(0.22 0.06 258);
  --sidebar-foreground: oklch(0.92 0.02 230);
  --sidebar-primary: oklch(0.78 0.12 195);
  --sidebar-primary-foreground: oklch(0.18 0.04 250);
  --sidebar-accent: oklch(0.28 0.07 258);
  --sidebar-accent-foreground: oklch(0.99 0.005 240);
  --sidebar-border: oklch(0.3 0.06 258);
  --sidebar-ring: oklch(0.78 0.12 195);
}

.dark {
  --background: oklch(0.16 0.03 255);
  --foreground: oklch(0.96 0.01 240);
  --card: oklch(0.22 0.04 258);
  --card-foreground: oklch(0.96 0.01 240);
  --popover: oklch(0.22 0.04 258);
  --popover-foreground: oklch(0.96 0.01 240);
  --primary: oklch(0.78 0.12 195);
  --primary-foreground: oklch(0.2 0.05 258);
  --secondary: oklch(0.28 0.05 258);
  --secondary-foreground: oklch(0.96 0.01 240);
  --muted: oklch(0.26 0.04 258);
  --muted-foreground: oklch(0.7 0.03 240);
  --accent: oklch(0.3 0.06 258);
  --accent-foreground: oklch(0.96 0.01 240);
  --destructive: oklch(0.65 0.2 25);
  --destructive-foreground: oklch(0.99 0 0);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.78 0.12 195);
  --sidebar: oklch(0.18 0.04 258);
  --sidebar-foreground: oklch(0.92 0.02 230);
  --sidebar-primary: oklch(0.78 0.12 195);
  --sidebar-primary-foreground: oklch(0.18 0.04 250);
  --sidebar-accent: oklch(0.25 0.05 258);
  --sidebar-accent-foreground: oklch(0.96 0.01 240);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.78 0.12 195);
}

/* ── Base resets ────────────────────────────────────────────────────────────── */

* {
  border-color: var(--border);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
}

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
}

/* ── Brand gradient utilities ───────────────────────────────────────────────── */

.brand-gradient {
  background: linear-gradient(135deg, oklch(0.32 0.08 255), oklch(0.55 0.12 220), oklch(0.78 0.12 195));
}

.brand-gradient-text {
  background: linear-gradient(135deg, oklch(0.32 0.08 255), oklch(0.6 0.14 200));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Responsive layout — 375 px mobile breakpoint (SC-008) ─────────────────── */

/* Ensure tables scroll horizontally on small viewports */
.table-responsive-sm {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 576px) {
    /* Make all data tables horizontally scrollable */
    .stats-table,
    .discipline-table,
    .warning-table,
    .schedule-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Stack form labels above controls */
    .form-group {
        margin-bottom: 1rem;
    }

    .settings-form .form-group label {
        display: block;
        margin-bottom: 0.25rem;
    }

    /* Nav sidebar collapses to top bar */
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 0.75rem;
    }

    /* Dashboard cards stack vertically */
    .dashboard-cards {
        flex-direction: column;
    }

    /* Button groups wrap on narrow screens */
    .btn-group {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Truncate long team names with ellipsis */
    .team-name-cell {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Reduce heading size */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    /* Make badge text legible at small size */
    .badge {
        font-size: 0.7rem;
    }
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.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."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ── Layout Shell (T010) ────────────────────────────────────────────────────── */

.layout-shell {
    display: flex;
    min-height: 100vh;
    background: var(--background);
}

.sidebar {
    width: 240px;
    display: flex;
    flex-direction: column;
    background: var(--sidebar);
    color: var(--sidebar-foreground);
    border-right: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.layout-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    background: oklch(from var(--card) l c h / 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.page-content {
    flex: 1;
    padding: 1.5rem 2rem;
    overflow-x: hidden;
}

.app-version {
    position: fixed;
    bottom: 0.5rem;
    right: 0.75rem;
    font-size: 0.7rem;
    color: var(--muted-foreground, #9ca3af);
    pointer-events: none;
    z-index: 10;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(0, 0, 0, 0.4);
    display: block;
}

/* ── Mobile overlay sidebar (T011) ─────────────────────────────────────────── */

@media (max-width: 767px) {
    .sidebar {
        display: none;
    }

    .layout-shell.sidebar-open .sidebar {
        display: flex;
        position: fixed;
        inset-y: 0;
        left: 0;
        z-index: 50;
        width: 240px;
    }

    .topbar {
        padding: 0 1rem;
    }

    .page-content {
        padding: 1rem;
    }
}

@media (min-width: 768px) {
    .topbar-hamburger {
        display: none;
    }

    .sidebar-backdrop {
        display: none !important;
    }
}

/* ── Sidebar Navigation (T015) ──────────────────────────────────────────────── */

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1.25rem;
    text-decoration: none;
    flex-shrink: 0;
}

.sidebar-logo img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-brand {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--sidebar-foreground);
    line-height: 1.2;
}

.sidebar-subtitle {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: oklch(from var(--sidebar-foreground) l c h / 0.6);
    line-height: 1.2;
}

.sidebar-league-selector {
    padding: 0.5rem 0.75rem 0;
}

.sidebar-league-selector select {
    width: 100%;
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--sidebar-border);
    background: var(--sidebar-accent);
    color: var(--sidebar-foreground);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    appearance: auto;
}

.sidebar-league-selector select:focus {
    outline: 2px solid var(--sidebar-ring);
    outline-offset: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 0 0.75rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.nav-group-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: oklch(from var(--sidebar-foreground) l c h / 0.5);
    padding: 0.75rem 0.75rem 0.25rem;
}

.sidebar-divider {
    height: 1px;
    background: var(--sidebar-border);
    margin: 0.75rem 0;
    border: none;
    opacity: 0.6;
}

.nav-item-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    color: oklch(from var(--sidebar-foreground) l c h / 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.nav-item-link:hover {
    background: var(--sidebar-accent);
    color: var(--sidebar-accent-foreground);
}

.nav-item-link.active {
    background: oklch(from var(--sidebar-primary) l c h / 0.15);
    color: var(--sidebar-primary);
    font-weight: 600;
}

.nav-item-link i {
    font-size: 1rem;
    flex-shrink: 0;
    width: 1rem;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--sidebar-border);
    font-size: 0.6875rem;
    color: oklch(from var(--sidebar-foreground) l c h / 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

/* ── Topbar Elements (T023) ─────────────────────────────────────────────────── */

.topbar-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
    flex-shrink: 0;
}

.topbar-hamburger i {
    font-size: 1.25rem;
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

.season-pill {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    height: 2.25rem;
    padding: 0 0.75rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: var(--background);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.season-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--teal);
    flex-shrink: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    min-width: 0;
}

.topbar-search {
    position: relative;
    display: flex;
    align-items: center;
}

.topbar-search i {
    position: absolute;
    left: 0.625rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    pointer-events: none;
}

.topbar-search input {
    width: 18rem;
    height: 2.25rem;
    padding: 0 0.75rem 0 2.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--muted-foreground);
    font-size: 0.875rem;
    cursor: not-allowed;
}

@media (max-width: 1023px) {
    .topbar-search {
        display: none;
    }
}

.topbar-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
    flex-shrink: 0;
}

.topbar-icon-btn:hover {
    background: var(--muted);
}

.topbar-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--navy);
    color: var(--navy-foreground);
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 0 0 2px var(--border);
    flex-shrink: 0;
    cursor: default;
}

.badge-warning {
    background: oklch(from var(--warning) l c h / 0.1);
    color: var(--warning-foreground);
    border: 1px solid oklch(from var(--warning) l c h / 0.4);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--muted);
}

.theme-toggle i {
    font-size: 1rem;
}

/* ── PageHeader (T024) ──────────────────────────────────────────────────────── */

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-header-titles {
    min-width: 0;
}

.page-header-eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--teal);
    margin-bottom: 0.375rem;
}

.page-header-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.page-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.page-header-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0.375rem 0 0;
    max-width: 42rem;
}

/* ── Page max-width container ───────────────────────────────────────────────── */

.page-container {
    max-width: 80rem;
    margin-inline: auto;
}

/* ── Card component ─────────────────────────────────────────────────────────── */

.card {
    background: var(--card);
    color: var(--card-foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px oklch(0 0 0 / 0.06), 0 1px 2px oklch(0 0 0 / 0.04);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0;
    gap: 0.5rem;
}

.card-header-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}

.card-content {
    padding: 1rem 1.25rem 1.25rem;
}

.card-content--flush-top {
    padding-top: 0.5rem;
}

/* ── Stat cards grid ────────────────────────────────────────────────────────── */

.stat-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .stat-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.125rem 1.25rem;
    box-shadow: 0 1px 3px oklch(0 0 0 / 0.06);
}

.stat-card--highlight {
    background: oklch(from var(--warning) l c h / 0.08);
    border-color: oklch(from var(--warning) l c h / 0.3);
}

.stat-card__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.375rem;
}

.stat-card__value {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-card__sub {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

.stat-card__action {
    display: inline-block;
    margin-top: 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
}

.stat-card__action:hover {
    text-decoration: underline;
}

/* ── Dashboard two-column grid ──────────────────────────────────────────────── */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .dashboard-grid__main {
        grid-column: span 2;
    }
}

/* ── Fixture list ───────────────────────────────────────────────────────────── */

.fixture-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.fixture-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.fixture-row:last-child {
    border-bottom: none;
}

.fixture-row__label {
    font-size: 0.75rem;
    font-family: ui-monospace, monospace;
    color: var(--muted-foreground);
    white-space: nowrap;
    min-width: 7rem;
    flex-shrink: 0;
}

.fixture-row__teams {
    flex: 1;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fixture-row__vs {
    color: var(--muted-foreground);
    font-size: 0.75rem;
    margin: 0 0.25rem;
}

.fixture-row__kickoff {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    white-space: nowrap;
    flex-shrink: 0;
}

.fixture-row__venue {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Dashboard empty state ──────────────────────────────────────────────────── */

.dashboard-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20rem;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
}

.fixture-empty {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    padding: 1rem 0;
}

/* ── Quick-action buttons ───────────────────────────────────────────────────── */

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.quick-action-btn:hover {
    background: var(--muted);
    color: var(--foreground);
}

.quick-action-btn i {
    font-size: 1rem;
    flex-shrink: 0;
    color: var(--muted-foreground);
}

.quick-actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ── See-all ghost link ──────────────────────────────────────────────────────── */

.see-all-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.see-all-link:hover {
    color: var(--foreground);
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn i {
    font-size: 1rem;
}

.btn-primary {
    background: var(--teal);
    color: var(--teal-foreground);
    border-color: var(--teal);
}

.btn-primary:hover {
    background: oklch(from var(--teal) calc(l - 0.05) c h);
    color: var(--teal-foreground);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--muted);
    color: var(--foreground);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--muted);
}

.btn-ghost {
    background: transparent;
    color: var(--muted-foreground);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--muted);
    color: var(--foreground);
}

.btn-sm {
    padding: 0.3125rem 0.625rem;
    font-size: 0.8125rem;
}

.icon-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-md);
    color: var(--muted-foreground);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    font-size: 1.1rem;
}

.icon-action-btn:hover {
    background: var(--muted);
    color: var(--foreground);
}

/* ── Division / segment tabs ────────────────────────────────────────────────── */

.division-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    background: var(--muted);
    padding: 0.25rem;
    border-radius: var(--radius-md);
    width: fit-content;
}

.division-tab {
    padding: 0.375rem 0.875rem;
    border-radius: calc(var(--radius-md) - 2px);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.division-tab:hover {
    color: var(--foreground);
}

.division-tab--active {
    background: var(--card);
    color: var(--foreground);
    box-shadow: 0 1px 3px oklch(0 0 0 / 0.1);
}

/* ── Badge variants ─────────────────────────────────────────────────────────── */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.badge--success {
    background: oklch(from var(--success) l c h / 0.1);
    color: var(--success);
    border-color: oklch(from var(--success) l c h / 0.25);
}

.badge--warning {
    background: oklch(from var(--warning) l c h / 0.12);
    color: var(--warning-foreground);
    border-color: oklch(from var(--warning) l c h / 0.35);
}

.badge--danger {
    background: oklch(from var(--destructive) l c h / 0.1);
    color: var(--destructive);
    border-color: oklch(from var(--destructive) l c h / 0.25);
}

.badge--info {
    background: oklch(from var(--ring) l c h / 0.1);
    color: var(--ring);
    border-color: oklch(from var(--ring) l c h / 0.3);
}

.badge--secondary {
    background: var(--muted);
    color: var(--muted-foreground);
    border-color: var(--border);
}

/* ── Form dots (standings form column) ──────────────────────────────────────── */

.form-dots {
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
}

.form-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    font-size: 0;  /* hide text, show only color */
    border: 1px solid oklch(0 0 0 / 0.06);
}

.form-dot--w {
    background: var(--success);
}

.form-dot--d {
    background: oklch(from var(--muted-foreground) l c h / 0.35);
}

.form-dot--l {
    background: oklch(from var(--destructive) l c h / 0.8);
}

/* ── Team crest circle ──────────────────────────────────────────────────────── */

.team-crest {
    flex-shrink: 0;
}

.team-crest--xs { width: 1.5rem; height: 1.5rem; }
.team-crest--sm { width: 1.75rem; height: 1.75rem; }
.team-crest--md { width: 2.25rem; height: 2.25rem; }
.team-crest--lg { width: 3rem; height: 3rem; }

.team-crest__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.team-crest__initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--primary));
    color: var(--navy-foreground);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 0.6em;
    box-shadow: 0 0 0 1px oklch(0 0 0 / 0.1);
}

.team-crest--xs .team-crest__initials { font-size: 0.55em; }
.team-crest--lg .team-crest__initials { font-size: 0.7em; }

/* ── Generic data table ─────────────────────────────────────────────────────── */

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead tr {
    border-bottom: 1px solid var(--border);
}

.data-table th {
    padding: 0.625rem 1rem;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted-foreground);
    white-space: nowrap;
}

.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: oklch(from var(--muted) l c h / 0.4);
}

.data-table td:last-child {
    text-align: right;
}

/* ── Standings table ────────────────────────────────────────────────────────── */

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.standings-table thead tr {
    border-bottom: 1px solid var(--border);
}

.standings-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-foreground);
    white-space: nowrap;
}

.standings-table th:not(:first-child):not(:last-child) {
    text-align: center;
}

.standings-table td {
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.standings-table tbody tr:last-child td {
    border-bottom: none;
}

.standings-table tbody tr:hover {
    background: oklch(from var(--muted) l c h / 0.4);
}

.standings-table td:first-child,
.standings-table th:first-child {
    text-align: left;
}

.standings-table .rank-col {
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    width: 2.5rem;
    text-align: center;
}

.standings-table .team-name-col {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 500;
}

.standings-table .points {
    font-weight: 700;
    font-size: 0.9375rem;
}

.adjustment-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    background: oklch(from var(--warning) l c h / 0.12);
    color: var(--warning-foreground);
    border: 1px solid oklch(from var(--warning) l c h / 0.35);
    border-radius: 4px;
    padding: 0.125rem 0.375rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* ── Schedule filters bar ───────────────────────────────────────────────────── */

.schedule-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.schedule-filter {
    height: 2.25rem;
    padding: 0 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
    cursor: pointer;
    min-width: 10rem;
}

.schedule-filter:focus {
    outline: 2px solid var(--ring);
    outline-offset: 1px;
}

/* ── Match day group (schedule) ─────────────────────────────────────────────── */

.match-day-group {
    margin-bottom: 1rem;
}

.match-day-group__title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted-foreground);
    margin-bottom: 0.625rem;
    padding: 0 0.25rem;
}

/* Make the fixture-list inside schedule look like Vite's card-internal list */
.match-day-group .card .fixture-list {
    gap: 0;
}

.match-day-group .card .fixture-row {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 3.5rem 1fr auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.12s;
}

.match-day-group .card .fixture-row:last-child {
    border-bottom: none;
}

.match-day-group .card .fixture-row:hover {
    background: oklch(from var(--muted) l c h / 0.4);
}

.fixture-row__time {
    font-family: ui-monospace, monospace;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    white-space: nowrap;
}

.fixture-row__division {
    display: none;
}

.fixture-row__score-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.score-pill {
    font-weight: 700;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    background: var(--muted);
}

.fixture-row__home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
    min-width: 0;
}

.fixture-row__away {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.fixture-row__home span,
.fixture-row__away span {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-empty {
    color: var(--muted-foreground);
    padding: 2rem 0;
    text-align: center;
}

/* ── Teams card grid ────────────────────────────────────────────────────────── */

.teams-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .teams-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.team-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.125rem 1.25rem 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 3px oklch(0 0 0 / 0.05);
}

.team-card:hover {
    border-color: oklch(from var(--teal) l c h / 0.5);
    box-shadow: 0 4px 12px oklch(0 0 0 / 0.08);
    color: inherit;
}

.team-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.team-card__name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-card__meta {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.team-card__stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.team-card__stat-label {
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    margin-top: 0.2rem;
}

.teams-division-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

/* ── Add match form ─────────────────────────────────────────────────────────── */

.add-match-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 32rem;
}

.add-match-form h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 0.875rem;
}

.form-row label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--foreground);
}

.form-row select,
.form-row input {
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
}

.form-row select:focus,
.form-row input:focus {
    outline: 2px solid var(--ring);
    outline-offset: 1px;
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.form-errors {
    list-style: none;
    padding: 0.75rem 1rem;
    background: oklch(from var(--destructive) l c h / 0.08);
    border: 1px solid oklch(from var(--destructive) l c h / 0.2);
    border-radius: var(--radius-md);
    color: var(--destructive);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* ── Settings page ──────────────────────────────────────────────────────────── */

.settings-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-row__label {
    font-size: 0.875rem;
    font-weight: 500;
}

.settings-row__desc {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.125rem;
}

.settings-toggle {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: var(--teal);
    flex-shrink: 0;
}

/* ── Embed page ─────────────────────────────────────────────────────────────── */

.embed-type-btn {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--foreground);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.embed-type-btn:hover {
    border-color: oklch(from var(--muted-foreground) l c h / 0.4);
}

.embed-type-btn--active {
    background: oklch(from var(--teal) l c h / 0.12);
    border-color: var(--teal);
    color: var(--teal);
}

.snippet-pre {
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--foreground);
    margin: 0;
    max-height: 12rem;
    overflow-y: auto;
}

/* ── Referee level badge ────────────────────────────────────────────────────── */

.referee-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1.75rem;
    width: 1.75rem;
    border-radius: 9999px;
    background: var(--navy);
    color: var(--navy-foreground);
    font-size: 0.7rem;
    font-weight: 700;
}

/* ── Assignment card (referee portal) ──────────────────────────────────────── */

.assignment-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1rem;
    background: var(--card);
}

/* ── Nav back link ──────────────────────────────────────────────────────────── */

.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.15s;
}

.nav-back:hover {
    color: var(--foreground);
}

/* ── Score stepper control (match detail) ───────────────────────────────────── */

.score-stepper {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
}

.score-stepper__btn {
    padding: 0.625rem 0.875rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--foreground);
    font-size: 1rem;
    transition: background 0.12s;
}

.score-stepper__btn:hover {
    background: var(--muted);
}

.score-stepper__val {
    min-width: 4rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 0.5rem 0;
}

/* ── Event timeline (match detail) ─────────────────────────────────────────── */

.event-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    border-left: 2px solid var(--border);
    margin-left: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-left: 1.25rem;
}

.event-timeline__item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    position: relative;
    font-size: 0.875rem;
}

.event-timeline__dot {
    position: absolute;
    left: -1.625rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background: var(--background);
    border: 2px solid var(--teal);
}

/* Event type icons */
.event-icon {
    display: inline-block;
    width: 1rem;
    height: 1.25rem;
    border-radius: 2px;
    flex-shrink: 0;
}

.event-icon--goal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background: oklch(from var(--success) l c h / 0.15);
    color: var(--success);
    font-size: 0.75rem;
}

.event-icon--goal::before { content: "⚽"; font-size: 0.75rem; }
.event-icon--yellow { background: #d97706; }
.event-icon--red { background: var(--destructive); }
.event-icon--sub { background: var(--muted-foreground); border-radius: 9999px; }

/* ── Auth Shell ─────────────────────────────────────── */
.auth-shell {
    min-height: 100vh;
    display: grid;
    background: var(--background);
}
@media (min-width: 1024px) {
    .auth-shell { grid-template-columns: 1fr 1fr; }
}

.auth-shell-form {
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1.5rem;
}
@media (min-width: 640px) { .auth-shell-form { padding: 2.5rem 3rem; } }
@media (min-width: 1024px) { .auth-shell-form { padding: 2.5rem 4rem; } }

.auth-shell-inner {
    flex: 1;
    display: flex;
    align-items: center;
}
.auth-shell-form-body {
    width: 100%;
    max-width: 24rem;
    margin: 0 auto;
}

.auth-shell-hero {
    display: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom right, var(--primary), var(--primary), oklch(0.22 0.07 255));
    color: var(--primary-foreground);
}
@media (min-width: 1024px) {
    .auth-shell-hero {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 3rem 4rem;
    }
}
.auth-hero-dots {
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0);
    background-size: 24px 24px;
}
.auth-hero-glow-top {
    position: absolute;
    top: -8rem;
    right: -8rem;
    height: 24rem;
    width: 24rem;
    border-radius: 9999px;
    background: var(--teal);
    opacity: 0.3;
    filter: blur(3rem);
}
.auth-hero-glow-bottom {
    position: absolute;
    bottom: -8rem;
    left: -5rem;
    height: 24rem;
    width: 24rem;
    border-radius: 9999px;
    background: var(--teal);
    opacity: 0.2;
    filter: blur(3rem);
}

/* ── Auth form controls ─────────────────────────────── */
.auth-form-group { margin-bottom: 1rem; }
.auth-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--foreground);
}
.auth-form-group input[type="email"],
.auth-form-group input[type="password"],
.auth-form-group input[type="text"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--foreground);
    outline: none;
    transition: border-color 150ms;
}
.auth-form-group input:focus { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 25%, transparent); }
.auth-form-row-between { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.375rem; }

/* ── Password rule checklist ────────────────────────── */
.pwd-rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: color-mix(in oklch, var(--muted) 40%, transparent);
    padding: 0.75rem;
    margin-top: 0.75rem;
}
.pwd-rule { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; }
.pwd-rule-badge {
    flex-shrink: 0;
    height: 1rem;
    width: 1rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pwd-rule-badge.pass { background: color-mix(in oklch, var(--teal) 30%, transparent); color: var(--teal); }
.pwd-rule-badge.fail { background: var(--muted); color: var(--muted-foreground); }
.pwd-rule-label.pass { color: var(--foreground); }
.pwd-rule-label.fail { color: var(--muted-foreground); }

