:root {
    --app-bg: #eef2f7;
    --app-bg-soft: #f8fafc;
    --app-surface: #ffffff;
    --app-surface-soft: #f8fafc;
    --app-surface-muted: #f1f5f9;
    --app-text: #334155;
    --app-text-strong: #0f172a;
    --app-text-muted: #59697e;
    --app-text-subtle: #94a3b8;
    --app-border: #e2e8f0;
    --app-border-strong: #cbd5e1;
    --app-primary: #ff8201;
    --app-primary-soft: #fff7ed;
    --app-blue: #0055b7;
    --app-error: #b91c1c;
    --app-warning-text: #a16207;
    --app-shadow: 0 12px 28px -24px rgba(15, 23, 42, 0.55);
    --app-shadow-elevated: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
    --app-page-gutter: 1.5rem;
    --app-grid-gutter: 1.5rem;
    --app-section-gap: 1.5rem;
    --app-card-padding: 1.25rem;
}
.theme-dark {
    --app-bg: #0f172a;
    --app-bg-soft: #111827;
    --app-surface: #182235;
    --app-surface-soft: #111c2f;
    --app-surface-muted: #223049;
    --app-text: #dbe6f4;
    --app-text-strong: #f8fafc;
    --app-text-muted: #a8b6ca;
    --app-text-subtle: #7f8da3;
    --app-border: #334155;
    --app-border-strong: #475569;
    --app-primary-soft: rgba(255, 130, 1, 0.16);
    --app-blue: #60a5fa;
    --app-error: #fca5a5;
    --app-warning-text: #fcd34d;
    --app-shadow: 0 18px 42px -28px rgba(0, 0, 0, 0.76);
    --app-shadow-elevated: 0 18px 46px -30px rgba(0, 0, 0, 0.82), 0 6px 16px -14px rgba(0, 0, 0, 0.7);
}
.theme-dark body {
    background: var(--app-bg);
    color: var(--app-text);
}
body {
    font-family: 'Manrope', sans-serif;
    background: var(--app-bg);
    color: var(--app-text);
}
body.app-focus-scope-open { overflow: hidden; }
.app-brand-logo {
    display: inline-flex;
    align-items: center;
    width: 12rem;
    max-width: 100%;
    flex-shrink: 0;
}
.app-brand-logo img {
    width: 100%;
    height: auto;
}
.app-brand-logo--dark,
.theme-dark .app-brand-logo--light {
    display: none;
}
.theme-dark .app-brand-logo--dark {
    display: block;
}
.access-error-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 130, 1, 0.14), transparent 30%),
        radial-gradient(circle at top left, rgba(0, 85, 183, 0.1), transparent 26%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.access-error-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
}
.access-error-logo-link {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}
.access-error-logo {
    display: block;
    width: min(10.75rem, 52vw);
    height: auto;
}
.access-error-header-meta {
    color: #ff8201;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    line-height: 1.1;
    text-align: right;
    text-transform: uppercase;
}
.access-error-main {
    box-sizing: border-box;
    display: grid;
    min-height: calc(100vh - 4.75rem);
    place-items: center;
    padding: clamp(1.25rem, 2vw, 1.5rem);
}
.access-error-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.42fr);
    width: min(100%, 62rem);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow:
        0 32px 90px -48px rgba(15, 23, 42, 0.62),
        0 16px 40px -36px rgba(148, 87, 15, 0.56);
}
.access-error-content {
    padding: clamp(1.35rem, 3.2vw, 2.35rem);
}
.access-error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: #fff7ed;
    color: #ff8201;
    font-size: 1.15rem;
    box-shadow: inset 0 0 0 1px rgba(255, 130, 1, 0.16);
}
.access-error-kicker {
    margin: 1rem 0 0;
    color: #ff8201;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}
.access-error-title {
    max-width: 17ch;
    margin: 0.55rem 0 0;
    color: #0f172a;
    font-size: clamp(1.85rem, 3vw, 2.65rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.02;
    text-wrap: balance;
}
.access-error-body {
    max-width: 40rem;
    margin: 0.9rem 0 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
}
.access-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.25rem;
}
.access-error-context {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    min-width: 0;
    border-left: 1px solid rgba(226, 232, 240, 0.95);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(38, 70, 83, 0.96)),
        #0f172a;
    color: #f8fafc;
    padding: clamp(1.25rem, 2.6vw, 1.8rem);
}
.access-error-context-mark {
    display: inline-flex;
    align-self: flex-start;
    border: 1px solid rgba(255, 130, 1, 0.36);
    border-radius: 999px;
    background: rgba(255, 130, 1, 0.12);
    color: #ffd08a;
    padding: 0.45rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
}
.access-error-list {
    display: grid;
    gap: 1rem;
    margin: 0;
}
.access-error-list div {
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.18);
}
.access-error-list dt {
    color: #94a3b8;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
}
.access-error-list dd {
    margin: 0.42rem 0 0;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.35;
}
.page-title {
    color: #0f172a;
    font-size: clamp(1.65rem, 2.8vw, 2.35rem);
    font-weight: 750;
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin-bottom: 0.45rem;
    text-wrap: balance;
    max-width: 20ch;
}
.player-page-meta {
    margin-top: 0.2rem;
    color: #94a3b8;
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.35;
}
.app-shell {
    min-height: 100vh;
}
.app-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 84;
    border: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(3px);
}
.app-sidebar {
    z-index: 90;
    transition: width 180ms ease;
}
.app-sidebar-brand {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.app-sidebar-logo-link {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    padding: 1.25rem;
    text-decoration: none;
}
.app-sidebar-nav-shell {
    flex: 1 1 auto;
}
.app-sidebar-nav {
    flex: 1 1 auto;
}
.app-sidebar-collapse {
    display: none;
}
.app-sidebar-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.app-sidebar-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    flex: 0 0 1.85rem;
    border-radius: 0.65rem;
    background: rgba(248, 250, 252, 0.92);
    color: #64748b;
    font-size: 0.86rem;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.95);
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.app-sidebar-nav a:hover .app-sidebar-nav-icon,
.app-sidebar-nav summary:hover .app-sidebar-nav-icon,
.app-sidebar-nav a:focus-visible .app-sidebar-nav-icon,
.app-sidebar-nav summary:focus-visible .app-sidebar-nav-icon {
    background: #fff7ed;
    color: #ff8201;
    box-shadow: inset 0 0 0 1px rgba(255, 130, 1, 0.22);
}
.app-sidebar-nav a.bg-slate-50\/85 .app-sidebar-nav-icon,
.app-sidebar-nav details[open] > summary .app-sidebar-nav-icon {
    background: #fff7ed;
    color: #ff8201;
    box-shadow: inset 0 0 0 1px rgba(255, 130, 1, 0.25);
}
.app-sidebar-close {
    display: none;
}
.app-sidebar-account {
    display: none;
}
.app-shell-main {
    min-width: 0;
    background:
        radial-gradient(circle at top right, rgba(0, 85, 183, 0.08), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(16px);
}
.app-topbar-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.app-topbar-leading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.app-topbar-identity {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}
.app-topbar-workspace-image {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px -20px rgba(15, 23, 42, 0.7);
    object-fit: contain;
}
.app-topbar-copy {
    min-width: 0;
}
.app-topbar-kicker {
    color: #ff8201;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.app-topbar-title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
}
.app-topbar-actions {
    justify-content: flex-end;
}
.app-mobile-menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.55rem;
    border: 1px solid rgba(255, 130, 1, 0.24);
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    padding: 0 0.88rem;
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1;
    box-shadow: 0 12px 28px -24px rgba(15, 23, 42, 0.56);
}
.app-mobile-menu-button i {
    color: #ff8201;
}
.app-mobile-menu-button:hover,
.app-mobile-menu-button:focus-visible {
    border-color: rgba(255, 130, 1, 0.42);
    background: #fff7ed;
    outline: none;
}
.app-chip-user {
    max-width: min(18rem, 42vw);
    gap: 0.6rem;
    align-items: center;
    padding-top: 0.38rem;
    padding-bottom: 0.38rem;
}
.app-chip-user-icon {
    color: #ff8201;
    font-size: 1rem;
    flex-shrink: 0;
}
.app-chip-user-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}
.app-chip-user-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.1;
}
.app-chip-user-role {
    color: #64748b;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.05;
    text-transform: uppercase;
}
.app-role-switcher {
    position: relative;
    display: inline-flex;
}
.app-role-switcher-toggle {
    cursor: pointer;
}
.app-role-switcher-chevron {
    color: #94a3b8;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.app-role-switcher-panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 60;
    width: min(21rem, calc(100vw - 2rem));
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 55px -32px rgba(15, 23, 42, 0.55), 0 12px 28px -24px rgba(15, 23, 42, 0.35);
}
.app-role-switcher-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.8rem 0.95rem;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}
.app-role-switcher-list {
    padding: 0.4rem;
}
.app-role-switcher-form {
    margin: 0;
}
.app-role-switcher-option {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    width: 100%;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #334155;
    padding: 0.72rem;
    text-align: left;
    transition: background-color 160ms ease, color 160ms ease;
}
.app-role-switcher-option:hover,
.app-role-switcher-option:focus-visible {
    background: #f8fafc;
    color: #0f172a;
    outline: none;
}
.app-role-switcher-option.is-current {
    background: #fff7ed;
    color: #9a3412;
}
.app-role-switcher-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #f1f5f9;
    color: #ff8201;
}
.app-role-switcher-option.is-current .app-role-switcher-option-icon {
    background: #ff8201;
    color: #ffffff;
}
.app-role-switcher-option-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}
.app-role-switcher-option-role {
    color: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.15;
}
.app-role-switcher-option-context {
    overflow: hidden;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-icon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.92);
    color: #475569;
    border-radius: 999px;
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.app-icon-button:hover,
.app-icon-button:focus-visible {
    z-index: 80;
    color: #0f172a;
    border-color: #cbd5e1;
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    outline: none;
}
.app-icon-tooltip {
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    background: #0f172a;
    color: #f8fafc;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 160ms ease, transform 160ms ease;
    white-space: nowrap;
    box-shadow: 0 14px 28px -20px rgba(15, 23, 42, 0.8);
}
.app-icon-button:hover .app-icon-tooltip,
.app-icon-button:focus-visible .app-icon-tooltip {
    opacity: 1;
    transform: translateY(0);
}
.app-notification-menu {
    position: relative;
}
.app-notification-menu:hover,
.app-notification-menu:focus-within {
    z-index: 80;
}
.app-notification-toggle {
    overflow: visible;
}
.app-notification-badge {
    position: absolute;
    top: -0.22rem;
    right: -0.18rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.28rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--app-action-primary);
    color: var(--app-on-primary);
    font-size: 0.62rem;
    font-weight: 850;
    line-height: 0.9rem;
    text-align: center;
}
.app-notification-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.7rem);
    width: min(23rem, calc(100vw - 2rem));
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 70px -36px rgba(15, 23, 42, 0.7), 0 12px 28px -22px rgba(15, 23, 42, 0.55);
    z-index: 70;
}
.app-notification-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.app-notification-panel-title {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 820;
    line-height: 1.2;
}
.app-notification-panel-subtitle {
    margin-top: 0.16rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
}
.app-notification-mark-all {
    border: 0;
    background: transparent;
    color: #0055b7;
    font-size: 0.74rem;
    font-weight: 820;
    line-height: 1.2;
    cursor: pointer;
}
.app-notification-mark-all:hover,
.app-notification-mark-all:focus-visible {
    color: #003f88;
    outline: none;
    text-decoration: underline;
}
.app-notification-list {
    max-height: min(26rem, calc(100vh - 10rem));
    overflow-y: auto;
}
.app-notification-item {
    display: grid;
    grid-template-columns: 0.55rem minmax(0, 1fr) 1.9rem;
    gap: 0.72rem;
    align-items: start;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #eef2f7;
    color: inherit;
    transition: background-color 160ms ease;
}
.app-notification-item:last-child {
    border-bottom: 0;
}
.app-notification-item:hover,
.app-notification-item:focus-visible {
    background: #f8fafc;
    outline: none;
}
.app-notification-item.is-unread {
    background: rgba(0, 85, 183, 0.055);
}
.app-notification-dot {
    width: 0.48rem;
    height: 0.48rem;
    margin-top: 0.34rem;
    border-radius: 999px;
    background: transparent;
}
.app-notification-item.is-unread .app-notification-dot {
    background: #ff8201;
}
.app-notification-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    color: inherit;
    text-decoration: none;
}
.app-notification-copy:hover,
.app-notification-copy:focus-visible {
    outline: none;
    text-decoration: none;
}
.app-notification-title {
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 820;
    line-height: 1.3;
}
.app-notification-body {
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.45;
}
.app-notification-time {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 760;
}
.app-notification-trash {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}
.app-notification-trash:hover,
.app-notification-trash:focus-visible {
    background: #fee2e2;
    color: #b91c1c;
    outline: none;
}
.app-notification-empty {
    padding: 1.2rem 1rem;
    color: #64748b;
    font-size: 0.84rem;
    text-align: center;
}
.app-notification-panel-footer {
    padding: 0.8rem 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}
.app-notification-settings-link {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 820;
    line-height: 1.2;
    text-decoration: none;
}
.app-notification-settings-link:hover,
.app-notification-settings-link:focus-visible {
    color: #0055b7;
    outline: none;
    text-decoration: underline;
}
.app-notification-toast {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 95;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: flex-start;
    width: min(24rem, calc(100vw - 2rem));
    padding: 0.95rem;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 26px 58px -32px rgba(15, 23, 42, 0.7), 0 10px 24px -20px rgba(15, 23, 42, 0.55);
    opacity: 0;
    transform: translateY(0.7rem);
    transition: opacity 180ms ease, transform 180ms ease;
}
.app-notification-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.app-notification-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 130, 1, 0.12);
    color: #ff8201;
}
.app-notification-toast-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.app-notification-toast-title {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 820;
    line-height: 1.25;
}
.app-notification-toast-body {
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.45;
}
.app-notification-toast-close {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.app-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.65rem;
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
}
.evaluation-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 1rem;
}
.evaluation-modal.hidden {
    display: none !important;
}
.evaluation-modal-open {
    overflow: hidden;
}
.evaluation-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(4px);
}
.evaluation-modal-panel {
    position: relative;
    width: min(100%, 30rem);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 24px 70px -32px rgba(15, 23, 42, 0.8);
}
.evaluation-modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: #64748b;
    font-size: 1.35rem;
    line-height: 1;
}
.evaluation-modal-close:hover,
.evaluation-modal-close:focus-visible {
    background: #f1f5f9;
    color: #0f172a;
    outline: none;
}
.evaluation-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 999px;
    background: #fff7ed;
    color: #ff8201;
    font-size: 1.15rem;
}
.evaluation-modal-kicker {
    margin-top: 1rem;
    color: #ff8201;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}
.evaluation-modal-title {
    margin-top: 0.45rem;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.15;
}
.evaluation-modal-body {
    margin-top: 0.7rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}
.evaluation-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem;
    margin-top: 1.35rem;
}
.app-setup-health-trigger {
    gap: 0.5rem;
}
.app-setup-health-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.38rem;
    border-radius: 999px;
    background: #ff8201;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}
.app-setup-health-overlay {
    position: fixed;
    inset: 0;
    z-index: 92;
}
.app-setup-health-overlay.hidden {
    display: none !important;
}
.app-setup-health-drawer-open {
    overflow: hidden;
}
.app-setup-health-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(2px);
    cursor: default;
}
.app-setup-health-panel {
    position: absolute;
    inset-block: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(29rem, calc(100vw - 1.25rem));
    overflow-y: auto;
    border-left: 1px solid rgba(203, 213, 225, 0.88);
    background: var(--app-surface);
    box-shadow: -24px 0 70px -38px rgba(15, 23, 42, 0.8);
}
.app-setup-health-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--app-border);
}
.app-setup-health-header h2 {
    margin-top: 0.18rem;
    color: var(--app-text-strong);
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.15;
}
.app-setup-health-kicker {
    color: #ff8201;
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    line-height: 1.1;
    text-transform: uppercase;
}
.app-setup-health-close {
    flex: 0 0 auto;
}
.app-setup-health-score {
    padding: 1.25rem;
    border-bottom: 1px solid var(--app-border);
    background: var(--app-surface-soft);
}
.app-setup-health-score-label {
    color: var(--app-text-strong);
    font-size: 1.08rem;
    font-weight: 900;
}
.app-setup-health-score p {
    margin-top: 0.35rem;
    color: var(--app-text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}
.app-setup-health-progress {
    margin-top: 1rem;
    height: 0.6rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}
.app-setup-health-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff8201 0%, #ffb15c 100%);
}
.app-setup-health-section {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--app-border);
}
.app-setup-health-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--app-text);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    line-height: 1.2;
    text-transform: uppercase;
}
.app-setup-health-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.85rem;
}
.app-setup-health-list--compact {
    gap: 0.45rem;
}
.app-setup-health-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    min-height: 4.35rem;
    padding: 0.8rem;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-surface);
    color: inherit;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.app-setup-health-row:hover,
.app-setup-health-row:focus-visible {
    border-color: rgba(255, 130, 1, 0.5);
    background: var(--app-primary-soft);
    box-shadow: 0 12px 30px -24px rgba(15, 23, 42, 0.45);
    outline: none;
}
.app-setup-health-row--complete {
    min-height: 3.35rem;
    background: var(--app-surface-soft);
}
.app-setup-health-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--app-primary-soft);
    color: #ff8201;
    font-size: 0.86rem;
}
.app-setup-health-row--recommended .app-setup-health-row-icon {
    background: #eff6ff;
    color: var(--app-blue);
}
.app-setup-health-row--complete .app-setup-health-row-icon {
    background: #ecfdf5;
    color: #047857;
}
.app-setup-health-row-copy {
    min-width: 0;
}
.app-setup-health-row-label {
    display: block;
    color: var(--app-text-strong);
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1.25;
}
.app-setup-health-row-detail {
    display: block;
    margin-top: 0.2rem;
    color: var(--app-text-muted);
    font-size: 0.76rem;
    line-height: 1.38;
}
.app-setup-health-row-action {
    color: var(--app-blue);
    font-size: 0.72rem;
    font-weight: 900;
    white-space: nowrap;
}
.app-setup-health-empty {
    margin-top: 0.85rem;
    border: 1px dashed var(--app-border-strong);
    border-radius: 8px;
    padding: 0.9rem;
    color: var(--app-text-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}
.app-setup-health-footer {
    margin-top: auto;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--app-border);
    background: var(--app-surface);
}
.app-setup-health-footer .app-btn {
    width: 100%;
}
.sportiq-rink-modal-panel {
    width: min(calc(100vw - 2rem), 74rem);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 2rem;
}
.sportiq-rink-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.sportiq-rink-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.sportiq-rink-toolbar .app-btn,
.sportiq-rink-period-select {
    min-height: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sportiq-rink-period-select {
    min-width: 8.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    padding: 0 0.9rem;
    font-size: 0.95rem;
    font-weight: 750;
}
.sportiq-rink-surface {
    aspect-ratio: 1200 / 680;
    min-height: 29rem;
    border: 0;
    border-radius: 8px;
    cursor: crosshair;
}
.sportiq-rink-diagram {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.sportiq-rink-zone-label,
.sportiq-rink-direction-label {
    fill: #222222;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    font-weight: 850;
}
.sportiq-rink-direction-label {
    font-size: 22px;
}
.sportiq-rink-measure,
.sportiq-rink-direction {
    fill: none;
    stroke: #222222;
    stroke-width: 2;
    stroke-linecap: square;
}
.sportiq-rink-board {
    fill: #ffffff;
    stroke: #525252;
    stroke-width: 5;
}
.sportiq-rink-red-line {
    stroke: #c8102e;
    stroke-width: 5;
}
.sportiq-rink-blue-line {
    stroke: #287da3;
    stroke-width: 5;
}
.sportiq-rink-red-circle,
.sportiq-rink-blue-circle {
    fill: none;
    stroke-width: 2;
}
.sportiq-rink-red-circle {
    stroke: #d31024;
}
.sportiq-rink-blue-circle {
    stroke: #287da3;
}
.sportiq-rink-red-fill {
    fill: #d31024;
}
.sportiq-rink-blue-fill,
.sportiq-rink-crease {
    fill: #287da3;
}
.sportiq-rink-crease {
    stroke: #d31024;
    stroke-width: 2;
}
.sportiq-rink-faceoff-marks {
    fill: none;
    stroke: #d31024;
    stroke-width: 2;
    stroke-linecap: square;
}
.sportiq-rink-event-dot {
    position: absolute;
    z-index: 10;
    width: 1.35rem;
    height: 1.35rem;
    border: 3px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1), 0 0.55rem 1rem rgba(15, 23, 42, 0.32);
    transform: translate(-50%, -50%);
}
.sportiq-rink-event-dot::after {
    position: absolute;
    top: 0.16rem;
    left: 0.18rem;
    width: 0.34rem;
    height: 0.34rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    content: "";
}
.sportiq-rink-event-dot-shot {
    background: linear-gradient(135deg, #ffd15c 0%, #ff8201 48%, #d94f00 100%);
}
.sportiq-rink-event-dot-goal {
    background: linear-gradient(135deg, #7dd3fc 0%, #0ea5e9 45%, #1d4ed8 100%);
}
.sportiq-rink-event-dot:hover,
.sportiq-rink-event-dot:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 130, 1, 0.22), 0 0.65rem 1.15rem rgba(15, 23, 42, 0.36);
    outline: none;
}
.sportiq-rink-events-panel {
    min-height: 24rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 1rem;
}
.sportiq-drill-rink {
    width: 100%;
    min-width: 0;
    height: auto;
    display: block;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.sportiq-drill-item {
    cursor: grab;
    touch-action: none;
}
.sportiq-drill-item:active {
    cursor: grabbing;
}
.sportiq-drill-preview-item {
    opacity: 0.72;
    pointer-events: none;
}
.sportiq-drill-player {
    fill: currentColor;
    stroke: #ffffff;
    stroke-width: 4;
    filter: drop-shadow(0 3px 5px rgba(15, 23, 42, 0.2));
}
.sportiq-drill-player-label {
    fill: #ffffff;
    font-size: 15px;
    font-weight: 900;
    pointer-events: none;
}
.sportiq-drill-puck {
    fill: #111827;
    stroke: #ffffff;
    stroke-width: 3;
}
.sportiq-drill-cone {
    fill: #ff7a00;
    stroke: #9a3412;
    stroke-width: 3;
}
.sportiq-drill-text {
    fill: currentColor;
    font-size: 25px;
    font-weight: 900;
    paint-order: stroke;
    stroke: #ffffff;
    stroke-width: 5;
    stroke-linejoin: round;
}
.sportiq-drill-arrow {
    stroke: currentColor;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
.sportiq-drill-arrow-pass {
    stroke-dasharray: 16 14;
}
.sportiq-drill-arrow-shot {
    color: #dc2626;
    stroke-width: 6;
}
.sportiq-drill-path {
    stroke: currentColor;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.14));
}
.sportiq-drill-path-freehand {
    stroke-width: 4;
}
.sportiq-drill-path-squiggle {
    stroke-width: 6;
    stroke-dasharray: 1 13;
}
.sportiq-drill-path-pass {
    stroke-dasharray: 16 14;
}
.sportiq-drill-path-shot {
    color: #dc2626;
    stroke-width: 6;
}
.sportiq-drill-circle-zone {
    fill: rgba(255, 130, 1, 0.11);
    stroke: currentColor;
    stroke-width: 5;
    stroke-dasharray: 14 10;
    filter: drop-shadow(0 3px 4px rgba(15, 23, 42, 0.12));
}
.sportiq-drill-is-playing .sportiq-drill-arrow,
.sportiq-drill-is-playing .sportiq-drill-path,
.sportiq-drill-is-playing .sportiq-drill-circle-zone {
    animation: sportiq-drill-draw 680ms ease-out both;
}
.sportiq-drill-is-playing .sportiq-drill-player,
.sportiq-drill-is-playing .sportiq-drill-puck,
.sportiq-drill-is-playing .sportiq-drill-cone,
.sportiq-drill-is-playing .sportiq-drill-text {
    animation: sportiq-drill-pop 260ms ease-out both;
    transform-origin: center;
}
@keyframes sportiq-drill-draw {
    from {
        stroke-dashoffset: 420;
    }
    to {
        stroke-dashoffset: 0;
    }
}
@keyframes sportiq-drill-pop {
    from {
        opacity: 0;
        transform: scale(0.86);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@media (max-width: 900px) {
    .sportiq-rink-modal-panel {
        padding: 1.25rem;
    }
    .sportiq-rink-modal-grid {
        grid-template-columns: 1fr;
    }
    .sportiq-rink-surface,
    .sportiq-rink-events-panel {
        min-height: 16rem;
    }
    .app-setup-health-panel {
        width: min(100vw, 30rem);
    }
    .app-setup-health-row {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .app-setup-health-row-action {
        grid-column: 2;
    }
}
.app-pagebar {
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.88);
}
.app-pagebar-inner {
    padding: 0.87rem var(--app-page-gutter);
}
.app-pagebar-title {
    color: #0f172a;
    font-size: clamp(1.1rem, 0.9vw + 0.9rem, 1.45rem);
    font-weight: 780;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.app-pagebar-meta {
    margin-top: 0.25rem;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.35;
}
.app-main-shell {
    min-width: 0;
    padding: var(--app-page-gutter);
    container: app-content / inline-size;
}
.app-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--app-section-gap);
    width: 100%;
    min-width: 0;
    padding-block: 1rem;
}
/* The page stack owns section spacing, including older shared components. */
.app-page > * {
    min-width: 0;
    margin-block: 0 !important;
}
[data-player-anchor] { scroll-margin-top: 8rem; }
.app-section-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.app-section-nav [aria-selected="true"] {
    background: var(--app-primary-soft);
    border-color: var(--app-primary);
    color: var(--app-text-strong);
}
.app-section-panel { display: grid; min-width: 0; gap: var(--app-section-gap); }
.app-section-panel[hidden] { display: none; }
.app-section-panel > * { min-width: 0; margin-block: 0 !important; }
.app-list-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.app-form-error-summary { padding: 1rem; border: 2px solid var(--app-error); border-radius: 8px; background: var(--app-surface); color: var(--app-text-strong); }
.app-form-error-summary[hidden] { display: none; }
.app-empty-state { border-style: dashed; }
.app-roster-table tr[hidden] { display: none !important; }
.app-roster-table [data-label]::before { display: none; }
@container app-content (max-width: 39.99rem) {
    .app-roster-table, .app-roster-table tbody { display: block; width: 100%; }
    .app-roster-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .app-roster-table tbody > tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 1rem; gap: .75rem; }
    .app-roster-table tbody > tr + tr { border-top: 1px solid var(--app-border); }
    .app-roster-table td { display: block; min-width: 0; padding: 0; text-align: left; white-space: normal; overflow-wrap: anywhere; }
    .app-roster-table td[data-label]::before { display: block; content: attr(data-label); font-size: .75rem; font-weight: 700; color: var(--app-text-muted); margin-bottom: .25rem; }
    .app-roster-table .app-roster-identity, .app-roster-table .app-roster-actions, .app-roster-table td[colspan] { grid-column: 1 / -1; }
    .app-roster-table .app-roster-actions .app-row-actions { justify-content: flex-start; }
    .app-roster-table select { min-width: 0; }
}
.app-page .app-next-steps { margin-block: 0; }
.app-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--app-grid-gutter);
    min-width: 0;
    align-items: stretch;
}
.app-grid > * {
    grid-column: span 1;
    min-width: 0;
    overflow-wrap: anywhere;
}
.app-grid--start { align-items: start; }
@container app-content (min-width: 40rem) {
    .app-grid { grid-template-columns: repeat(12,minmax(0,1fr)); }
    .app-grid > * { grid-column: span 12; }
    .app-grid--two > *,
    .app-grid--four > * { grid-column: span 6; }
    .app-grid--three > *,
    .app-grid--six > * { grid-column: span 4; }
    .app-grid--six > .app-grid-lead { grid-column: span 8; }
}
@container app-content (min-width: 64rem) {
    .app-grid--four > * { grid-column: span 3; }
    .app-grid--six > * { grid-column: span 2; }
    .app-grid--six > .app-grid-lead { grid-column: span 4; }
    .app-grid--split > * { grid-column: span 6; }
    .app-grid--sidebar > :first-child { grid-column: span 9; }
    .app-grid--sidebar > :last-child { grid-column: span 3; }
    .app-grid--main > :first-child,
    .app-grid--rail > :last-child { grid-column: span 8; }
    .app-grid--main > :last-child,
    .app-grid--rail > :first-child { grid-column: span 4; }
}
/* A single task or empty state fills its section instead of leaving blank slots. */
.app-grid > :only-child { grid-column: 1 / -1; }
.app-main-shell > .max-w-7xl,
.app-main-shell > .max-w-6xl,
.app-main-shell > .max-w-5xl,
.app-main-shell > .max-w-full,
.app-main-shell > .container {
    width: 100%;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.app-main-shell.app-main-has-pagebar > .max-w-7xl,
.app-main-shell.app-main-has-pagebar > .max-w-6xl,
.app-main-shell.app-main-has-pagebar > .max-w-5xl,
.app-main-shell.app-main-has-pagebar > .max-w-full,
.app-main-shell.app-main-has-pagebar > .container {
    padding-top: 1rem !important;
}
.app-page-title-hidden {
    display: none !important;
}
.billing-page {
    width: 100%;
    padding-bottom: 2rem;
}
.billing-hero {
    align-items: stretch;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-surface);
    padding: 1.5rem;
    box-shadow: var(--app-shadow);
}
.billing-hero-copy {
    min-width: 0;
}
.billing-hero-kicker {
    display: block;
    color: var(--app-text-muted);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}
.billing-hero-title {
    margin-top: 0.45rem;
    color: var(--app-text-strong);
    font-size: clamp(1.5rem, 1.2vw + 1.15rem, 2.1rem);
    font-weight: 850;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.billing-hero-body {
    margin-top: 0.65rem;
    max-width: 58rem;
    color: var(--app-text);
    font-size: 0.95rem;
    line-height: 1.65;
}
.billing-hero-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-content: stretch;
}
.billing-hero-summary-item {
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-surface-soft);
    padding: 0.85rem;
}
.billing-hero-summary-label {
    display: block;
    color: var(--app-text-muted);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    line-height: 1;
    text-transform: uppercase;
}
.billing-hero-summary-value {
    display: block;
    margin-top: 0.38rem;
    color: var(--app-text-strong);
    font-size: 0.95rem;
    font-weight: 850;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.billing-primary-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.75rem;
}
.billing-primary-actions > form {
    display: flex;
    flex: 1 1 14rem;
    min-width: 0;
}
.billing-primary-actions .app-btn {
    width: 100%;
    height: auto;
    padding-block: 0.75rem;
}
.billing-interval-options > .app-action-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.billing-interval-options > .app-action-panel > form,
.billing-interval-options > .app-action-panel > p:last-child:not(:nth-child(2)) {
    margin-top: auto;
    padding-top: 1rem;
}
.billing-interval-options .app-btn {
    width: 100%;
    height: auto;
    padding-block: 0.75rem;
}
.app-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.4rem;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.92);
    color: #475569;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.app-chip-season {
    color: #334155;
}
.app-sidebar-season {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    border: 1px solid rgba(226, 232, 240, 0.72);
    background: rgba(248, 250, 252, 0.78);
    color: #334155;
    border-radius: 8px;
    padding: 0.72rem 0.8rem;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
a.app-sidebar-season:hover,
a.app-sidebar-season:focus-visible {
    border-color: rgba(255, 130, 1, 0.28);
    box-shadow: 0 12px 24px -24px rgba(148, 87, 15, 0.42);
    transform: translateY(-1px);
    outline: none;
}
.app-sidebar-season-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    border-radius: 8px;
    background: rgba(255, 130, 1, 0.1);
    color: #ff8201;
}
.app-sidebar-season-label,
.app-sidebar-season-value {
    display: block;
}
.app-sidebar-season-label {
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.05;
    text-transform: uppercase;
}
.app-sidebar-season-value {
    margin-top: 0.18rem;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1.1;
}
@media (min-width: 768px) {
    .app-shell {
        transition: grid-template-columns 180ms ease;
    }
    .app-sidebar {
        width: 248px;
    }
    .app-sidebar > div {
        transition: width 180ms ease;
    }
    .app-sidebar-collapse {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.35rem;
        height: 2.35rem;
        flex: 0 0 auto;
        margin: 1rem 0.75rem 0 0;
        border: 1px solid #e2e8f0;
        border-radius: 999px;
        background: #ffffff;
        color: #64748b;
        transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
    }
    .app-sidebar-collapse:hover,
    .app-sidebar-collapse:focus-visible {
        border-color: rgba(255, 130, 1, 0.35);
        background: #fff7ed;
        color: #ff8201;
        outline: none;
    }
    body.app-sidebar-collapsed .app-shell {
        grid-template-columns: 4.75rem minmax(0, 1fr);
    }
    body.app-sidebar-collapsed .app-sidebar {
        width: 4.75rem;
    }
    body.app-sidebar-collapsed .app-sidebar > div {
        width: 4.75rem;
    }
    body.app-sidebar-collapsed .app-sidebar-brand {
        align-items: center;
        justify-content: center;
        min-height: 4.5rem;
        gap: 0;
    }
    body.app-sidebar-collapsed .app-sidebar-logo-link {
        display: none;
    }
    body.app-sidebar-collapsed .app-sidebar-collapse {
        margin: 1rem 0 0;
    }
    body.app-sidebar-collapsed .app-sidebar-nav {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }
    body.app-sidebar-collapsed .app-sidebar-nav-shell > .border-b {
        display: flex;
        justify-content: center;
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }
    body.app-sidebar-collapsed .app-sidebar-nav a,
    body.app-sidebar-collapsed .app-sidebar-nav summary {
        align-items: center;
        justify-content: center;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }
    body.app-sidebar-collapsed .app-sidebar-nav details,
    body.app-sidebar-collapsed .app-sidebar-utility > .space-y-1 {
        display: grid;
        justify-items: center;
        width: 100%;
    }
    body.app-sidebar-collapsed .app-sidebar-nav-label {
        width: 100%;
        justify-content: center;
        gap: 0;
    }
    body.app-sidebar-collapsed .app-sidebar-nav-label > span:last-child,
    body.app-sidebar-collapsed .app-sidebar-section-label,
    body.app-sidebar-collapsed .app-sidebar-season-label,
    body.app-sidebar-collapsed .app-sidebar-season-value,
    body.app-sidebar-collapsed .app-sidebar-nav details > summary > i {
        display: none;
    }
    body.app-sidebar-collapsed .app-sidebar-utility {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }
    body.app-sidebar-collapsed .app-sidebar-utility a {
        align-items: center;
        justify-content: center;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }
    body.app-sidebar-collapsed .app-sidebar-nav details > div {
        display: none;
    }
    body.app-sidebar-collapsed .app-sidebar-season {
        width: 100%;
        gap: 0;
        justify-content: center;
        padding: 0.55rem 0.45rem;
    }
    body.app-sidebar-collapsed .app-sidebar-season > .min-w-0 {
        display: none;
    }
    body.app-sidebar-collapsed .app-sidebar-season-icon,
    body.app-sidebar-collapsed .app-sidebar-nav-icon {
        margin: 0;
    }
    .app-topbar-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
@media (max-width: 767.98px) {
    :root {
        --app-page-gutter: 1rem;
        --app-grid-gutter: 1rem;
        --app-section-gap: 1rem;
    }
    .app-shell {
        display: block;
    }
    .app-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(21rem, calc(100vw - 2.25rem));
        max-width: 100%;
        border-right: 1px solid rgba(203, 213, 225, 0.95);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 24px 0 70px -44px rgba(15, 23, 42, 0.82);
        transform: translateX(-102%);
        transition: transform 200ms ease;
    }
    body.app-sidebar-open {
        overflow: hidden;
    }
    body.app-sidebar-open .app-sidebar {
        transform: translateX(0);
    }
    .app-sidebar-brand {
        align-items: center;
        background: rgba(248, 250, 252, 0.96);
    }
    .app-sidebar-logo-link {
        padding: 1rem 1rem 0.95rem;
    }
    .app-sidebar-logo-link img {
        width: 9.5rem;
    }
    .app-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.35rem;
        height: 2.35rem;
        flex: 0 0 auto;
        margin-right: 0.75rem;
        border: 1px solid #e2e8f0;
        border-radius: 999px;
        background: #ffffff;
        color: #475569;
    }
    .app-sidebar-close:hover,
    .app-sidebar-close:focus-visible {
        border-color: #cbd5e1;
        color: #0f172a;
        outline: none;
    }
    .app-sidebar a,
    .app-sidebar summary {
        min-height: 2.9rem;
    }
    .app-sidebar > div {
        max-height: 100vh;
        max-height: 100dvh;
    }
    .app-sidebar .overflow-y-auto {
        padding-top: 0.85rem;
    }
    .app-sidebar-account {
        display: block;
        border-top: 1px solid rgba(226, 232, 240, 0.86);
        background: #f8fafc;
        padding: 0.85rem;
    }
    .app-sidebar-account-user {
        display: flex;
        align-items: center;
        gap: 0.7rem;
        min-width: 0;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #ffffff;
        padding: 0.75rem;
    }
    .app-sidebar-account-avatar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.2rem;
        height: 2.2rem;
        flex: 0 0 auto;
        border-radius: 999px;
        background: rgba(255, 130, 1, 0.12);
        color: #ff8201;
        font-size: 1.1rem;
    }
    .app-sidebar-account-copy {
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: 0.1rem;
    }
    .app-sidebar-account-name {
        overflow: hidden;
        color: #0f172a;
        font-size: 0.9rem;
        font-weight: 850;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .app-sidebar-account-role {
        color: #64748b;
        font-size: 0.66rem;
        font-weight: 850;
        letter-spacing: 0.12em;
        line-height: 1.05;
        text-transform: uppercase;
    }
    .app-sidebar-account-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(5.2rem, 1fr));
        gap: 0.45rem;
        margin-top: 0.65rem;
    }
    .app-sidebar-account-actions a {
        display: inline-flex;
        min-width: 0;
        min-height: 2.45rem;
        align-items: center;
        justify-content: center;
        gap: 0.38rem;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #ffffff;
        color: #334155;
        padding: 0.55rem 0.45rem;
        font-size: 0.72rem;
        font-weight: 850;
        line-height: 1;
        text-decoration: none;
    }
    .app-sidebar-account-actions a:hover,
    .app-sidebar-account-actions a:focus-visible {
        border-color: rgba(255, 130, 1, 0.34);
        background: #fff7ed;
        color: #0f172a;
        outline: none;
    }
    .app-sidebar-account-actions i {
        color: #ff8201;
        flex: 0 0 auto;
    }
    .app-topbar {
        z-index: 50;
    }
    .app-topbar-inner {
        gap: 0.65rem;
    }
    .app-topbar-leading {
        width: 100%;
    }
    .app-mobile-menu-button {
        display: inline-flex;
        flex: 0 0 auto;
    }
    .app-topbar-identity {
        flex: 1 1 auto;
        gap: 0.65rem;
        overflow: hidden;
    }
    .app-topbar-copy {
        overflow: hidden;
    }
    .app-topbar-workspace-image {
        width: 2.45rem;
        height: 2.45rem;
    }
    .app-topbar-kicker {
        overflow: hidden;
        max-width: 100%;
        font-size: 0.62rem;
        letter-spacing: 0.12em;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .app-topbar-title {
        overflow: hidden;
        max-width: 100%;
        font-size: 0.92rem;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .app-topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .app-topbar-actions .app-chip-user {
        display: none;
    }
    .app-topbar-actions .app-role-switcher .app-chip-user {
        display: inline-flex;
        max-width: min(100%, 18rem);
    }
    .app-topbar-actions .app-chip:not(.app-chip-user) {
        max-width: 100%;
        white-space: normal;
    }
    .app-role-switcher-panel {
        right: auto;
        left: 0;
    }
    .app-icon-tooltip {
        display: none;
    }
    .app-notification-panel {
        position: fixed;
        top: 4.75rem;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }
    .app-main-shell {
        padding: var(--app-page-gutter);
    }
}
.app-role-admin .app-shell-main {
    background:
        radial-gradient(circle at top right, rgba(255, 130, 1, 0.12), transparent 30%),
        radial-gradient(circle at top left, rgba(0, 85, 183, 0.08), transparent 24%),
        linear-gradient(180deg, #fffaf5 0%, #eef2f7 100%);
}
.app-role-admin .app-topbar {
    border-bottom-color: rgba(251, 191, 36, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 251, 245, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
    box-shadow: 0 14px 36px -32px rgba(148, 87, 15, 0.6);
}
.app-role-admin .app-topbar-kicker {
    color: #b45309;
}
.app-role-admin .app-topbar-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.app-role-admin .app-topbar-title::before {
    content: "";
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8201, #ffd08a);
    box-shadow: 0 0 0 5px rgba(255, 130, 1, 0.12);
}
.app-role-admin .app-topbar-actions {
    gap: 0.7rem;
}
.app-role-admin .app-chip,
.app-role-admin .app-icon-button {
    min-height: 2.85rem;
    border-color: rgba(255, 130, 1, 0.2);
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow:
        0 18px 38px -30px rgba(148, 87, 15, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}
.app-role-admin .app-chip-user {
    max-width: min(20rem, 44vw);
    padding: 0.55rem 1rem 0.55rem 0.75rem;
    gap: 0.75rem;
}
.app-role-admin .app-chip-user-icon {
    width: 1.85rem;
    height: 1.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8201, #ff9e3d);
    color: #ffffff;
    box-shadow: 0 12px 24px -18px rgba(255, 130, 1, 0.9);
}
.app-role-admin .app-chip-user-name {
    font-size: 0.84rem;
}
.app-role-admin .app-chip-user-role {
    color: #64748b;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
}
.app-role-admin .app-chip-season {
    padding-left: 0.9rem;
    padding-right: 1rem;
    font-size: 0.78rem;
    color: #334155;
}
.app-role-admin .app-chip-season i {
    color: #ff8201;
}
.app-role-admin .app-icon-button {
    width: 2.85rem;
    height: 2.85rem;
    color: #b45309;
}
.app-role-admin .app-icon-button:hover,
.app-role-admin .app-icon-button:focus-visible {
    border-color: rgba(255, 130, 1, 0.35);
    background: linear-gradient(180deg, rgba(255, 246, 231, 1) 0%, rgba(255, 255, 255, 1) 100%);
    color: #9a3412;
}
.app-banner-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.5rem;
}
.app-banner-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.5rem;
}
.app-banner-warning {
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.5rem;
}
.app-banner-info {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.5rem;
}
.app-toast-region {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(28rem, calc(100vw - 2rem));
    pointer-events: none;
}
.app-toast {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: start;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0.95rem 1rem;
    border-radius: 8px;
    box-shadow: 0 26px 58px -32px rgba(15, 23, 42, 0.72), 0 10px 24px -20px rgba(15, 23, 42, 0.58);
    opacity: 0;
    pointer-events: auto;
    transform: translateY(0.7rem);
    transition: opacity 180ms ease, transform 180ms ease;
}
.app-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.app-toast-content {
    min-width: 0;
    align-self: center;
}
.app-toast-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    color: currentColor;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.78;
    transition: background-color 160ms ease, opacity 160ms ease;
}
.app-toast-close:hover,
.app-toast-close:focus-visible {
    background: rgba(255, 255, 255, 0.95);
    opacity: 1;
    outline: none;
}
.app-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px -24px rgba(15, 23, 42, 0.55);
}
.app-checklist-link {
    min-width: 0;
    background: transparent;
    transition: background-color 160ms ease, border-color 160ms ease;
}
.app-checklist-link > :first-child {
    flex-shrink: 0;
}
.app-checklist-link:hover,
.app-checklist-link:focus-visible {
    border-color: var(--app-primary);
    background: var(--app-surface-soft);
}
.app-checklist-link:focus-visible {
    outline: 2px solid var(--app-primary);
    outline-offset: 3px;
}

.app-card-elevated {
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
}
.app-card-inset {
    box-shadow: inset 0 2px 4px 0 rgba(15, 23, 42, 0.05);
}
.app-card-accent {
    border-top: 4px solid #ff8201;
}
.app-card-success {
    border-color: #a7f3d0;
}
.app-card-spacious {
    padding: 1.5rem;
}
.app-stat-card,
.app-action-card,
.app-info-tile,
.app-action-panel,
.app-muted-panel {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}
.app-stat-card {
    display: block;
    min-height: 7.25rem;
    padding: var(--app-card-padding);
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 12px 28px -24px rgba(15, 23, 42, 0.55);
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.app-stat-card:hover,
.app-stat-card:focus-visible {
    border-color: rgba(255, 130, 1, 0.45);
    background: #fffaf3;
    box-shadow: 0 16px 34px -26px rgba(15, 23, 42, 0.65);
    outline: none;
    text-decoration: none;
    transform: translateY(-1px);
}
.app-stat-card-label,
.app-info-tile-label {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.app-stat-card-label { min-height: 2.5em; }
.app-stat-card-value {
    margin-top: 0.65rem;
    color: #0f172a;
    font-size: clamp(1.75rem, 2vw, 2.25rem);
    font-weight: 950;
    line-height: 1;
}
.app-stat-card-value--text {
    font-size: 1.25rem;
    line-height: 1.25;
}
.app-stat-card-subtext {
    margin-top: 0.55rem;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 650;
}
.app-action-card {
    display: block;
    padding: 1rem;
    color: #334155;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease;
}
.app-action-card:hover,
.app-action-card:focus-visible {
    border-color: rgba(255, 130, 1, 0.45);
    background: #fffaf3;
    color: #0f172a;
    outline: none;
    text-decoration: none;
}
.app-info-tile {
    background: #f8fafc;
    padding: 1rem;
}
.app-info-tile-value {
    margin-top: 0.5rem;
    color: var(--app-text-strong);
    font-size: 1.22rem;
    font-weight: 900;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.app-action-panel {
    padding: 1rem;
}
.app-muted-panel {
    background: #f8fafc;
    padding: 1rem;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.55;
}
.app-btn {
    position: relative;
    box-sizing: border-box;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    height: auto;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.625rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}
.app-btn:hover,
.app-btn:focus-visible {
    text-decoration: none;
    transform: translateY(-1px);
    outline: none;
}
.app-btn > i {
    display: inline-flex;
    width: 1.15em;
    height: 1.15em;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-right: 0 !important;
    line-height: 1;
}
.app-btn:disabled,
.app-btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}
.app-btn.app-btn-loading,
.app-btn.app-btn-loading:is(:hover, :focus-visible) {
    color: transparent !important;
    pointer-events: none;
    transform: none;
}
.app-btn.app-btn-loading > * {
    opacity: 0;
}
.app-btn.app-btn-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.05rem;
    height: 1.05rem;
    margin-left: -0.525rem;
    margin-top: -0.525rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    color: #ffffff;
    animation: app-btn-loading-spin 700ms linear infinite;
}
.app-btn-primary.app-btn-loading::after { color: var(--app-on-primary); }
.app-btn-secondary.app-btn-loading::after,
.app-btn-muted.app-btn-loading::after,
.app-btn-danger-outline.app-btn-loading::after {
    color: #0f172a;
}
@keyframes app-btn-loading-spin {
    to {
        transform: rotate(360deg);
    }
}
.app-btn-primary {
    border-color: var(--app-action-primary);
    background: var(--app-action-primary);
    color: var(--app-on-primary) !important;
    box-shadow: 0 16px 28px -22px rgba(255, 130, 1, 0.9);
}
.app-btn-primary:hover,
.app-btn-primary:focus-visible {
    border-color: var(--app-action-primary-hover);
    background: var(--app-action-primary-hover);
    color: var(--app-on-primary) !important;
}
.app-btn-secondary {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #334155 !important;
}
.app-btn-secondary:hover,
.app-btn-secondary:focus-visible {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #0f172a !important;
}
.app-btn-muted {
    border-color: #334155;
    background: #334155;
    color: #ffffff !important;
}
.app-btn-muted:hover,
.app-btn-muted:focus-visible {
    border-color: #1e293b;
    background: #1e293b;
    color: #ffffff !important;
}
.app-btn-success {
    border-color: #059669;
    background: #059669;
    color: #ffffff !important;
}
.app-btn-success:hover,
.app-btn-success:focus-visible {
    border-color: #047857;
    background: #047857;
    color: #ffffff !important;
}
.app-btn-danger {
    border-color: #dc2626;
    background: #dc2626;
    color: #ffffff !important;
}
.app-btn-danger:hover,
.app-btn-danger:focus-visible {
    border-color: #b91c1c;
    background: #b91c1c;
    color: #ffffff !important;
}
.app-btn-danger-outline {
    border-color: #fecaca;
    background: #ffffff;
    color: #b91c1c !important;
}
.app-btn-danger-outline:hover,
.app-btn-danger-outline:focus-visible {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b !important;
}
.app-btn-sm {
    min-height: 2.25rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
}
.app-btn-lg {
    min-height: 3.25rem;
    padding: 0.75rem 1.35rem;
}
.app-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.app-actions > .app-btn,
.app-actions > form {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
}
.app-actions--stack {
    flex-direction: column;
    align-items: stretch;
}
.app-actions--stack > .app-btn,
.app-actions--stack > form,
.app-actions--stack > form .app-btn { width: 100%; }
.app-section-toggle {
    box-sizing: border-box;
    appearance: none;
    display: flex;
    width: 100%;
    min-height: 3rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--app-surface);
    padding: 0.75rem 1rem;
    color: var(--app-text);
    font-weight: 800;
    text-align: left;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.app-section-toggle:hover,
.app-section-toggle:focus-visible {
    border-color: #fed7aa;
    background: var(--app-primary-soft);
    color: var(--app-text-strong);
    outline: none;
}
.app-table-sort-button {
    box-sizing: border-box;
    appearance: none;
    display: flex;
    width: 100%;
    min-height: 2.25rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    font: inherit;
    font-weight: 800;
    text-align: left;
}
.app-table-sort-button:hover,
.app-table-sort-button:focus-visible {
    color: var(--app-text-strong);
    outline: none;
}
.app-form-help {
    position: relative;
    box-sizing: border-box;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border: 1px solid var(--app-border-strong);
    border-radius: 999px;
    background: var(--app-surface);
    padding: 0;
    color: var(--app-text-muted);
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1;
    cursor: help;
}
.app-form-help:hover,
.app-form-help:focus-visible {
    border-color: rgba(255, 130, 1, 0.7);
    color: #ff8201;
    outline: none;
}
.app-form-help-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.55rem);
    z-index: 50;
    width: min(18rem, calc(100vw - 2rem));
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    background: #0f172a;
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    text-align: left;
    text-transform: none;
    transform: translate(-50%, 0.35rem);
    transition: opacity 140ms ease, transform 140ms ease;
    box-shadow: 0 20px 38px -24px rgba(15, 23, 42, 0.82);
}
.app-form-help:hover .app-form-help-tooltip,
.app-form-help:focus-visible .app-form-help-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}
.agent-player-choice-inner {
    min-height: 4.85rem;
}
.agent-player-choice.is-selected .agent-player-choice-inner {
    background: var(--app-primary-soft);
    box-shadow: inset 4px 0 0 #ff8201;
}
.agent-player-choice-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.85rem;
    height: 0.85rem;
    flex: 0 0 auto;
    border: 2px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
}
.agent-player-choice.is-selected .agent-player-choice-dot {
    border-color: #ff8201;
    background: #ff8201;
    box-shadow: inset 0 0 0 3px #ffffff;
}
.sportiq-progress-bar {
    position: relative;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background-color: #e5e7eb;
}
.sportiq-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff8201 0%, #ff9f3d 100%);
    transform-origin: left center;
}
.sportiq-progress-value {
    display: inline-block;
}
.app-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: fit-content;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    padding: 0.25rem 0.75rem;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.25rem;
    white-space: nowrap;
}
.app-status-pill--sm {
    padding: 0.15rem 0.6rem;
    font-size: 0.6875rem;
    line-height: 1.1rem;
}
.app-status-pill--md {
    padding: 0.3rem 0.85rem;
    font-size: 0.8125rem;
}
.app-status-pill--neutral,
.app-status-pill--slate {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #475569;
}
.app-status-pill--success,
.app-status-pill--emerald,
.app-status-pill--green {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}
.app-status-pill--warning,
.app-status-pill--amber,
.app-status-pill--yellow {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}
.app-status-pill--danger,
.app-status-pill--red {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}
.app-status-pill--info,
.app-status-pill--blue {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}
.app-status-pill--orange,
.app-status-pill--primary {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}
.sportiq-trajectory-chart {
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0 !important;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98)),
        #ffffff;
}
.sportiq-folder-tabs {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    margin-bottom: -1px;
    padding-left: 0.5rem;
}
.sportiq-folder-tab-scroll {
    position: relative;
    z-index: 2;
    overflow-y: visible;
}
.sportiq-folder-tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    min-height: 3rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--app-border);
    border-bottom-color: var(--app-border);
    border-radius: 8px 8px 0 0;
    background: var(--app-surface-soft);
    padding: 0.75rem 1.35rem;
    color: var(--app-text);
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.sportiq-folder-tab:hover {
    border-color: var(--app-border-strong);
    border-bottom-color: var(--app-border);
    background: var(--app-surface);
    color: var(--app-text-strong);
}
.sportiq-folder-tab[aria-selected="true"] {
    z-index: 4;
    border-color: var(--app-border);
    border-bottom-color: transparent;
    background: var(--app-surface);
    color: var(--app-text-strong);
    transform: translateY(1px);
}
.sportiq-folder-tab[aria-selected="true"]::after {
    position: absolute;
    right: -1px;
    bottom: -2px;
    left: -1px;
    z-index: 5;
    height: 4px;
    background: var(--app-surface);
    content: "";
}
.sportiq-folder-panel {
    position: relative;
    z-index: 1;
    border: 1px solid var(--app-border);
    border-radius: 0 0 8px 8px;
    background: var(--app-surface);
    padding: 1.25rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}
.sportiq-trajectory-line {
}
.sportiq-trajectory-point {
    transform-box: fill-box;
    transform-origin: center;
}
.app-link-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    background: transparent;
    color: var(--app-blue) !important;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}
.app-link-action:hover,
.app-link-action:focus-visible {
    color: var(--app-text-strong) !important;
    text-decoration: underline;
    outline: none;
}
.app-link-danger {
    color: #dc2626 !important;
}
.app-link-danger:hover,
.app-link-danger:focus-visible {
    color: #991b1b !important;
}
.app-row-actions {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}
.app-row-actions form {
    display: inline-flex;
    margin: 0;
}
.app-row-action-select {
    box-sizing: border-box;
    min-height: 2.35rem;
    height: 2.35rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #ffffff;
    color: #334155;
    padding: 0 2rem 0 0.8rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
}
.app-row-action-primary,
.app-row-action-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    border: 1px solid var(--app-border-strong);
    border-radius: 8px;
    background: var(--app-surface);
    color: var(--app-text);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 12px 24px -22px rgba(15, 23, 42, 0.55);
}
.app-row-action-primary {
    min-width: 7.25rem;
    padding: 0 1rem;
    text-decoration: none;
    cursor: pointer;
}
.app-row-action-toggle {
    width: 2.55rem;
    padding: 0;
}
.app-row-action-primary:hover,
.app-row-action-primary:focus-visible,
.app-row-action-toggle:hover,
.app-row-action-toggle:focus-visible {
    border-color: var(--app-text-subtle);
    background: var(--app-surface-soft);
    color: var(--app-text-strong);
    outline: none;
    text-decoration: none;
}
.app-row-action-select:focus-visible {
    border-color: var(--app-text-subtle);
    outline: none;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.22);
}
.app-row-action-primary:disabled,
.app-row-action-primary[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.55;
}
.app-row-action-menu {
    position: relative;
}
.app-row-action-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    z-index: 80;
    min-width: 13rem;
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-surface);
    box-shadow: 0 26px 64px -36px rgba(15, 23, 42, 0.72);
}
.app-row-action-panel form {
    display: block;
    width: 100%;
    margin: 0;
}
.app-row-action-item {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0.95rem 1rem;
    color: var(--app-text);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.app-row-action-item:hover,
.app-row-action-item:focus-visible {
    background: var(--app-surface-soft);
    color: var(--app-text-strong);
    outline: none;
    text-decoration: none;
}
.app-row-action-danger {
    color: #b91c1c;
}
.app-row-action-danger:hover,
.app-row-action-danger:focus-visible {
    background: #fef2f2;
    color: #991b1b;
}
.evaluator-session-list {
    max-width: 46rem;
}
.evaluator-session-card {
    padding: 1.35rem 1.5rem 1.45rem;
}
.evaluator-session-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.05rem;
}
.evaluator-session-card__title {
    min-width: 0;
    color: var(--app-text-strong);
    font-size: clamp(1.2rem, 1.1vw + 0.95rem, 1.55rem);
    font-weight: 800;
    line-height: 1.18;
}
.evaluator-session-card__action,
.evaluator-session-card__status {
    flex: 0 0 auto;
}
.evaluator-session-card__status {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    color: var(--app-text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}
.evaluator-session-card__details {
    display: grid;
    gap: 0.42rem;
}
.evaluator-session-card__details p {
    margin: 0;
    color: var(--app-text-muted);
    font-size: 0.95rem;
    line-height: 1.35;
}
.evaluator-session-card__details .evaluator-session-card__detail-row {
    display: grid;
    grid-template-columns: 1.45rem minmax(0, 1fr);
    align-items: start;
}
.evaluator-session-card__details i {
    color: var(--app-text-muted);
    font-size: 1rem;
    line-height: 1.35;
    text-align: center;
}
.evaluator-session-card__details strong {
    color: var(--app-text);
    font-weight: 800;
}
.app-shell-main .rounded,
.app-shell-main .rounded-md,
.app-shell-main .rounded-lg,
.app-shell-main .rounded-xl,
.app-shell-main .rounded-2xl,
.app-shell-main .rounded-3xl {
    border-radius: 8px;
}
.app-shell-main .shadow-lg {
    box-shadow:
        0 18px 42px -28px rgba(15, 23, 42, 0.34),
        0 10px 20px -20px rgba(15, 23, 42, 0.26);
}
.app-shell-main .bg-white {
    background-color: rgba(255, 255, 255, 0.94);
}
.app-shell-main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.app-shell-main select,
.app-shell-main textarea {
    border-radius: 8px;
    border-color: #cbd5e1;
}
.app-shell-main table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.app-shell-main thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.app-shell-main tbody tr:hover {
    background: rgba(248, 250, 252, 0.9);
}
.app-shell-main a.text-blue-600 {
    color: #0055b7;
}
.app-shell-main a.text-blue-600:hover {
    color: #003f88;
}
details summary::-webkit-details-marker {
    display: none;
}
.sportiq-tour-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 80;
}
.sportiq-tour-panel {
    position: fixed;
    z-index: 82;
    width: min(25rem, calc(100vw - 2rem));
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 24px 56px -32px rgba(15, 23, 42, 0.7),
        0 14px 28px -24px rgba(15, 23, 42, 0.45);
    padding: 1.2rem 1.2rem 1.1rem;
}
.sportiq-tour-panel-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.sportiq-tour-kicker {
    color: #ff8201;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.sportiq-tour-close {
    position: absolute;
    top: 0.7rem;
    right: 0.8rem;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.sportiq-tour-counter {
    margin-top: 0.7rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
}
.sportiq-tour-title {
    margin-top: 0.45rem;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.15;
}
.sportiq-tour-body {
    margin-top: 0.6rem;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
}
.sportiq-tour-mobile-note {
    display: none;
    margin-top: 0.8rem;
    border: 1px solid rgba(255, 130, 1, 0.24);
    border-radius: 8px;
    background: rgba(255, 130, 1, 0.08);
    color: #7c4a03;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.45;
    padding: 0.65rem 0.7rem;
}
.sportiq-tour-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}
.sportiq-tour-button {
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.68rem 1rem;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.sportiq-tour-button:hover,
.sportiq-tour-button:focus-visible,
.sportiq-tour-close:hover,
.sportiq-tour-close:focus-visible {
    outline: none;
    transform: translateY(-1px);
}
.sportiq-tour-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}
.sportiq-tour-button-primary {
    background: var(--app-action-primary);
    color: var(--app-on-primary);
}
.sportiq-tour-button-primary:hover,
.sportiq-tour-button-primary:focus-visible {
    background: var(--app-action-primary-hover);
}
.sportiq-tour-button-secondary {
    border-color: #cbd5e1;
    background: #fff;
    color: #334155;
}
.sportiq-tour-button-secondary:hover,
.sportiq-tour-button-secondary:focus-visible,
.sportiq-tour-button-muted:hover,
.sportiq-tour-button-muted:focus-visible {
    border-color: #94a3b8;
    background: #f8fafc;
}
.sportiq-tour-button-muted {
    border-color: transparent;
    background: #e2e8f0;
    color: #475569;
}
.sportiq-tour-active .app-sidebar {
    z-index: auto;
}
.sportiq-tour-target {
    position: relative;
    z-index: 81;
    border-radius: 8px;
    outline: 2px solid rgba(255, 130, 1, 0.98);
    outline-offset: 3px;
    box-shadow:
        0 0 0 6px rgba(255, 130, 1, 0.12),
        0 14px 34px -26px rgba(15, 23, 42, 0.55);
}
.app-sidebar .sportiq-tour-target {
    background: #ffffff !important;
    color: #0f172a !important;
}
@media (max-width: 767px) {
    .sportiq-tour-mobile-note {
        display: block;
    }
}
.sportiq-notification-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.sportiq-notification-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
}
.sportiq-notification-panel {
    position: relative;
    width: min(30rem, 100%);
    border: 1px solid rgba(226, 232, 240, 0.94);
    border-radius: 8px;
    background: #ffffff;
    box-shadow:
        0 34px 86px -42px rgba(15, 23, 42, 0.78),
        0 18px 34px -28px rgba(15, 23, 42, 0.5);
    padding: 1.4rem;
}
.agency-player-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.agency-player-edit-modal.hidden {
    display: none !important;
}
.agency-player-edit-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(3px);
}
.agency-player-edit-panel {
    position: relative;
    width: min(42rem, 100%);
    max-height: min(88vh, 52rem);
    overflow-y: auto;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 8px;
    background: #ffffff;
    box-shadow:
        0 34px 86px -42px rgba(15, 23, 42, 0.78),
        0 18px 34px -28px rgba(15, 23, 42, 0.5);
    padding: 1.5rem;
}
.sportiq-notification-close {
    position: absolute;
    top: 0.72rem;
    right: 0.82rem;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.sportiq-notification-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 999px;
    background: rgba(255, 130, 1, 0.12);
    color: #ff8201;
    font-size: 1rem;
}
.sportiq-notification-kicker {
    margin-top: 1rem;
    color: #ff8201;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}
.sportiq-notification-title {
    margin-top: 0.45rem;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 820;
    line-height: 1.16;
}
.sportiq-notification-body {
    margin-top: 0.7rem;
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.65;
}
.sportiq-notification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: flex-end;
    margin-top: 1.2rem;
}
.sportiq-notification-button {
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.78rem 1.05rem;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.sportiq-notification-button:hover,
.sportiq-notification-button:focus-visible,
.sportiq-notification-close:hover,
.sportiq-notification-close:focus-visible {
    outline: none;
    transform: translateY(-1px);
}
.sportiq-notification-button-primary {
    background: var(--app-action-primary);
    color: var(--app-on-primary);
}
.sportiq-notification-button-primary:hover,
.sportiq-notification-button-primary:focus-visible {
    background: var(--app-action-primary-hover);
}
.sportiq-notification-button-secondary {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #334155;
}
.sportiq-notification-button-secondary:hover,
.sportiq-notification-button-secondary:focus-visible {
    border-color: #94a3b8;
    background: #f8fafc;
}
.app-theme-switcher {
    display: grid;
    gap: 0.75rem;
}
.app-theme-option {
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-surface-soft);
    color: var(--app-text);
    padding: 0.85rem;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.app-theme-option:hover,
.app-theme-option:focus-within {
    border-color: rgba(255, 130, 1, 0.42);
    background: var(--app-primary-soft);
    transform: translateY(-1px);
}
.app-theme-option.is-selected {
    border-color: rgba(255, 130, 1, 0.56);
    background: var(--app-primary-soft);
    box-shadow: inset 0 0 0 1px rgba(255, 130, 1, 0.18);
}
.app-theme-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.app-theme-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 8px;
    background: var(--app-surface);
    color: var(--app-primary);
    box-shadow: inset 0 0 0 1px var(--app-border);
}
.app-theme-option-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.16rem;
}
.app-theme-option-label {
    color: var(--app-text-strong);
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1.15;
}
.app-theme-option-description {
    color: var(--app-text-muted);
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1.25;
}
.theme-dark .app-shell-main {
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 28%),
        linear-gradient(180deg, var(--app-bg-soft) 0%, var(--app-bg) 100%);
}
.theme-dark .app-topbar,
.theme-dark .app-pagebar,
.theme-dark .app-sidebar,
.theme-dark .app-sidebar-brand {
    border-color: rgba(51, 65, 85, 0.92);
    background: rgba(24, 34, 53, 0.88);
}
.theme-dark .app-topbar {
    backdrop-filter: blur(16px);
}
.theme-dark .app-sidebar {
    color: var(--app-text);
}
.theme-dark .app-sidebar-logo-link img {
    filter: brightness(1.04);
}
.theme-dark .app-sidebar-nav a,
.theme-dark .app-sidebar-nav summary {
    color: var(--app-text-muted) !important;
}
.theme-dark .app-sidebar-nav a:hover,
.theme-dark .app-sidebar-nav summary:hover,
.theme-dark .app-sidebar-nav a:focus-visible,
.theme-dark .app-sidebar-nav summary:focus-visible {
    background: rgba(255, 130, 1, 0.12) !important;
    color: var(--app-text-strong) !important;
}
.theme-dark .app-sidebar-nav a.bg-slate-50\/85,
.theme-dark .app-sidebar-nav details[open] > summary {
    background: rgba(255, 130, 1, 0.14) !important;
    color: var(--app-text-strong) !important;
}
.theme-dark .app-sidebar-nav-icon,
.theme-dark .app-mobile-menu-button,
.theme-dark .app-icon-button,
.theme-dark .app-chip,
.theme-dark .app-chip-user,
.theme-dark .app-role-switcher-panel,
.theme-dark .app-notification-panel,
.theme-dark .sportiq-notification-panel {
    border-color: var(--app-border);
    background: var(--app-surface);
    color: var(--app-text);
}
.theme-dark .app-icon-button:hover,
.theme-dark .app-icon-button:focus-visible,
.theme-dark .app-mobile-menu-button:hover,
.theme-dark .app-mobile-menu-button:focus-visible {
    border-color: rgba(255, 130, 1, 0.42);
    background: var(--app-surface-muted);
    color: var(--app-text-strong);
}
.theme-dark .app-topbar-title,
.theme-dark .app-chip-user-name,
.theme-dark .app-pagebar-title,
.theme-dark .page-title,
.theme-dark .text-dark,
.theme-dark .text-slate-950,
.theme-dark .text-slate-900,
.theme-dark .text-slate-800,
.theme-dark .text-slate-700 {
    color: var(--app-text-strong) !important;
}
.theme-dark .app-topbar-kicker,
.theme-dark .text-primary {
    color: var(--app-primary) !important;
}
.theme-dark .app-chip-user-role,
.theme-dark .app-pagebar-meta,
.theme-dark .player-page-meta,
.theme-dark .text-slate-600,
.theme-dark .text-slate-500,
.theme-dark .text-slate-400 {
    color: var(--app-text-muted) !important;
}
.theme-dark .app-card,
.theme-dark .app-stat-card,
.theme-dark .app-action-card,
.theme-dark .app-info-tile,
.theme-dark .app-action-panel,
.theme-dark .app-muted-panel,
.theme-dark .app-shell-main .bg-white {
    border-color: var(--app-border);
    background: var(--app-surface);
    color: var(--app-text);
    box-shadow: var(--app-shadow);
}
.theme-dark .app-card-elevated {
    box-shadow: var(--app-shadow-elevated);
}
.theme-dark .app-stat-card {
    background: rgba(24, 34, 53, 0.96);
}
.theme-dark .app-stat-card:hover,
.theme-dark .app-stat-card:focus-visible {
    border-color: rgba(255, 130, 1, 0.42);
    background: rgba(30, 41, 59, 0.98);
    box-shadow: 0 18px 42px -30px rgba(0, 0, 0, 0.82), 0 0 0 1px rgba(255, 130, 1, 0.08);
}
.theme-dark .app-stat-card-label,
.theme-dark .app-info-tile-label {
    color: #97a6bc;
}
.theme-dark .app-stat-card-value {
    color: #f8fafc;
}
.theme-dark .app-stat-card-subtext {
    color: #a8b6ca;
}
.theme-dark .app-muted-panel,
.theme-dark .app-shell-main .bg-slate-50,
.theme-dark .app-shell-main .bg-slate-100,
.theme-dark .app-shell-main .bg-gray-50,
.theme-dark .app-shell-main .bg-gray-100 {
    background-color: var(--app-surface-soft) !important;
}
.theme-dark .app-shell-main .border,
.theme-dark .app-shell-main .border-slate-100,
.theme-dark .app-shell-main .border-slate-200,
.theme-dark .app-shell-main .border-slate-300,
.theme-dark .app-shell-main .border-gray-100,
.theme-dark .app-shell-main .border-gray-200,
.theme-dark .app-shell-main .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
.theme-dark .app-shell-main .divide-slate-200 > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--app-border) !important;
}
.theme-dark .app-shell-main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.theme-dark .app-shell-main select,
.theme-dark .app-shell-main textarea {
    border-color: var(--app-border-strong);
    background: var(--app-surface-soft);
    color: var(--app-text-strong);
}
.theme-dark .app-shell-main input::placeholder,
.theme-dark .app-shell-main textarea::placeholder {
    color: var(--app-text-subtle);
}
.theme-dark .app-shell-main input[readonly],
.theme-dark .app-shell-main input:disabled,
.theme-dark .app-shell-main select:disabled,
.theme-dark .app-shell-main textarea:disabled {
    background: var(--app-surface-muted);
    color: var(--app-text-muted);
}
.theme-dark .app-shell-main thead th,
.theme-dark .app-notification-panel-header,
.theme-dark .app-notification-panel-footer,
.theme-dark .app-role-switcher-header {
    border-color: var(--app-border);
    background: var(--app-surface-soft);
    color: var(--app-text-muted);
}
.theme-dark .app-shell-main tbody tr:hover,
.theme-dark .app-notification-item:hover,
.theme-dark .app-notification-item:focus-visible,
.theme-dark .app-role-switcher-option:hover,
.theme-dark .app-role-switcher-option:focus-visible {
    background: var(--app-surface-muted);
}
.theme-dark .app-notification-title,
.theme-dark .app-role-switcher-option-role,
.theme-dark .sportiq-notification-title {
    color: var(--app-text-strong);
}
.theme-dark .app-notification-body,
.theme-dark .app-role-switcher-option-context,
.theme-dark .sportiq-notification-body {
    color: var(--app-text-muted);
}
.theme-dark .evaluation-modal-backdrop,
.theme-dark .agency-player-edit-backdrop {
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(5px);
}
.theme-dark .evaluation-modal-panel,
.theme-dark .agency-player-edit-panel,
.theme-dark .sportiq-notification-panel {
    border-color: rgba(71, 85, 105, 0.88);
    background: #182235;
    color: var(--app-text);
    box-shadow:
        0 34px 86px -42px rgba(0, 0, 0, 0.92),
        0 18px 34px -28px rgba(0, 0, 0, 0.8);
}
.theme-dark .evaluation-modal-close,
.theme-dark .app-modal-close,
.theme-dark .sportiq-notification-close {
    background: transparent;
    color: var(--app-text-muted);
}
.theme-dark .evaluation-modal-close:hover,
.theme-dark .evaluation-modal-close:focus-visible,
.theme-dark .app-modal-close:hover,
.theme-dark .app-modal-close:focus-visible,
.theme-dark .sportiq-notification-close:hover,
.theme-dark .sportiq-notification-close:focus-visible {
    background: rgba(148, 163, 184, 0.12);
    color: var(--app-text-strong);
}
.theme-dark .evaluation-modal-icon,
.theme-dark .sportiq-notification-icon {
    background: rgba(255, 130, 1, 0.14);
    color: #ff9a2f;
    box-shadow: inset 0 0 0 1px rgba(255, 130, 1, 0.18);
}
.theme-dark .evaluation-modal-kicker,
.theme-dark .sportiq-notification-kicker {
    color: #ff9a2f;
}
.theme-dark .evaluation-modal-title,
.theme-dark .sportiq-notification-title {
    color: var(--app-text-strong);
}
.theme-dark .evaluation-modal-body,
.theme-dark .sportiq-notification-body {
    color: var(--app-text-muted);
}
.theme-dark .evaluation-modal label,
.theme-dark .agency-player-edit-panel label {
    color: var(--app-text-muted);
}
.theme-dark .evaluation-modal .text-slate-700,
.theme-dark .evaluation-modal .text-slate-800,
.theme-dark .agency-player-edit-panel .text-slate-700,
.theme-dark .agency-player-edit-panel .text-slate-800 {
    color: var(--app-text-muted) !important;
}
.theme-dark .evaluation-modal .text-slate-900,
.theme-dark .evaluation-modal .text-slate-950,
.theme-dark .agency-player-edit-panel .text-slate-900,
.theme-dark .agency-player-edit-panel .text-slate-950 {
    color: var(--app-text-strong) !important;
}
.theme-dark .evaluation-modal input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.theme-dark .evaluation-modal select,
.theme-dark .evaluation-modal textarea,
.theme-dark .agency-player-edit-panel input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.theme-dark .agency-player-edit-panel select,
.theme-dark .agency-player-edit-panel textarea {
    border-color: var(--app-border-strong);
    background: #111827;
    color: var(--app-text-strong);
}
.theme-dark .evaluation-modal input::placeholder,
.theme-dark .evaluation-modal textarea::placeholder,
.theme-dark .agency-player-edit-panel input::placeholder,
.theme-dark .agency-player-edit-panel textarea::placeholder {
    color: #7f8da3;
}
.theme-dark .evaluation-modal .bg-white,
.theme-dark .agency-player-edit-panel .bg-white {
    background-color: #111827 !important;
}
.theme-dark .evaluation-modal .bg-slate-50,
.theme-dark .agency-player-edit-panel .bg-slate-50 {
    background-color: var(--app-surface-soft) !important;
}
.theme-dark .evaluation-modal .border-slate-200,
.theme-dark .evaluation-modal .border-slate-300,
.theme-dark .agency-player-edit-panel .border-slate-200,
.theme-dark .agency-player-edit-panel .border-slate-300 {
    border-color: var(--app-border) !important;
}
.theme-dark .evaluation-modal .app-status-pill--neutral,
.theme-dark .evaluation-modal .app-status-pill--slate,
.theme-dark .agency-player-edit-panel .app-status-pill--neutral,
.theme-dark .agency-player-edit-panel .app-status-pill--slate {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(30, 41, 59, 0.78);
    color: var(--app-text);
}
.theme-dark .app-notification-item,
.theme-dark .app-notification-panel-footer,
.theme-dark .app-role-switcher-header {
    border-color: var(--app-border);
}
.theme-dark .app-btn-secondary,
.theme-dark .app-btn-danger-outline,
.theme-dark .sportiq-notification-button-secondary {
    border-color: var(--app-border-strong);
    background: var(--app-surface);
    color: var(--app-text-strong) !important;
}
.theme-dark .app-btn-secondary:hover,
.theme-dark .app-btn-secondary:focus-visible,
.theme-dark .sportiq-notification-button-secondary:hover,
.theme-dark .sportiq-notification-button-secondary:focus-visible {
    border-color: var(--app-text-subtle);
    background: var(--app-surface-muted);
}
.theme-dark .app-btn-muted {
    border-color: #64748b;
    background: #475569;
}
.theme-dark .app-banner-error {
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(127, 29, 29, 0.68);
    color: #fecaca;
}
.theme-dark .app-banner-success {
    border-color: rgba(52, 211, 153, 0.44);
    background: rgba(6, 78, 59, 0.68);
    color: #bbf7d0;
}
.theme-dark .app-banner-warning {
    border-color: rgba(251, 191, 36, 0.5);
    background: rgba(120, 53, 15, 0.68);
    color: #fde68a;
}
.theme-dark .app-banner-info {
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(30, 58, 138, 0.68);
    color: #bfdbfe;
}
.theme-dark .bg-emerald-50,
.theme-dark .bg-green-50 {
    background-color: rgba(6, 78, 59, 0.48) !important;
}
.theme-dark .border-emerald-200,
.theme-dark .border-green-200 {
    border-color: rgba(52, 211, 153, 0.4) !important;
}
.theme-dark .text-emerald-700,
.theme-dark .text-emerald-800,
.theme-dark .text-green-700,
.theme-dark .text-green-800 {
    color: #bbf7d0 !important;
}
.theme-dark .bg-amber-50,
.theme-dark .bg-yellow-50 {
    background-color: rgba(120, 53, 15, 0.46) !important;
}
.theme-dark .border-amber-200,
.theme-dark .border-yellow-200 {
    border-color: rgba(251, 191, 36, 0.42) !important;
}
.theme-dark .text-amber-800,
.theme-dark .text-amber-900,
.theme-dark .text-yellow-800,
.theme-dark .text-yellow-900 {
    color: #fde68a !important;
}
.theme-dark .bg-red-50 {
    background-color: rgba(127, 29, 29, 0.48) !important;
}
.theme-dark .border-red-200 {
    border-color: rgba(248, 113, 113, 0.46) !important;
}
.theme-dark .text-red-700,
.theme-dark .text-red-800 {
    color: #fecaca !important;
}
.theme-dark .bg-blue-50 {
    background-color: rgba(30, 58, 138, 0.46) !important;
}
.theme-dark .border-blue-200 {
    border-color: rgba(96, 165, 250, 0.46) !important;
}
.theme-dark .text-blue-600,
.theme-dark .text-blue-700,
.theme-dark .app-shell-main a.text-blue-600 {
    color: #93c5fd !important;
}
.theme-dark .app-link-action,
.theme-dark .app-notification-mark-all,
.theme-dark .app-notification-settings-link {
    color: #93c5fd;
}
.theme-dark .app-sidebar {
    border-color: rgba(71, 85, 105, 0.58) !important;
    background: #111827 !important;
    box-shadow: inset -1px 0 0 rgba(148, 163, 184, 0.08);
}
.theme-dark .app-sidebar-brand {
    border-color: rgba(71, 85, 105, 0.52);
    background: #111827;
}
.theme-dark .app-sidebar-logo-link .text-slate-500,
.theme-dark .app-sidebar-section-label {
    color: #8ea0ba !important;
}
.theme-dark .app-sidebar-collapse,
.theme-dark .app-sidebar-close {
    border-color: rgba(148, 163, 184, 0.32);
    background: rgba(30, 41, 59, 0.92);
    color: #cbd5e1;
    box-shadow: 0 14px 30px -22px rgba(0, 0, 0, 0.82);
}
.theme-dark .app-sidebar-collapse:hover,
.theme-dark .app-sidebar-collapse:focus-visible,
.theme-dark .app-sidebar-close:hover,
.theme-dark .app-sidebar-close:focus-visible {
    border-color: rgba(255, 130, 1, 0.48);
    background: rgba(255, 130, 1, 0.14);
    color: #ffb454;
}
.theme-dark .app-sidebar-nav-shell > .border-b,
.theme-dark .app-sidebar-utility,
.theme-dark .app-sidebar-account,
.theme-dark .app-sidebar > div > .border-t {
    border-color: rgba(71, 85, 105, 0.52) !important;
}
.theme-dark .app-sidebar-season {
    border-color: rgba(148, 163, 184, 0.22);
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(22, 32, 49, 0.96));
    color: #e5edf8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 30px -28px rgba(0, 0, 0, 0.85);
}
.theme-dark a.app-sidebar-season:hover,
.theme-dark a.app-sidebar-season:focus-visible {
    border-color: rgba(255, 130, 1, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 34px -28px rgba(255, 130, 1, 0.35);
}
.theme-dark .app-sidebar-season-icon {
    background: rgba(255, 130, 1, 0.14);
    color: #ff9a2f;
    box-shadow: inset 0 0 0 1px rgba(255, 130, 1, 0.18);
}
.theme-dark .app-sidebar-season-label {
    color: #8ea0ba;
}
.theme-dark .app-sidebar-season-value {
    color: #f8fafc;
}
.theme-dark .app-sidebar-nav a,
.theme-dark .app-sidebar-nav summary,
.theme-dark .app-sidebar-utility a,
.theme-dark .app-sidebar-utility summary {
    color: #aebbd0 !important;
}
.theme-dark .app-sidebar-nav-icon {
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(15, 23, 42, 0.22);
    color: #c4cfdd;
    box-shadow: none;
}
.theme-dark .app-sidebar-nav a:hover,
.theme-dark .app-sidebar-nav summary:hover,
.theme-dark .app-sidebar-nav a:focus-visible,
.theme-dark .app-sidebar-nav summary:focus-visible,
.theme-dark .app-sidebar-utility a:hover,
.theme-dark .app-sidebar-utility summary:hover,
.theme-dark .app-sidebar-utility a:focus-visible,
.theme-dark .app-sidebar-utility summary:focus-visible {
    background: rgba(30, 41, 59, 0.72) !important;
    color: #f8fafc !important;
}
.theme-dark .app-sidebar-nav a:hover .app-sidebar-nav-icon,
.theme-dark .app-sidebar-nav summary:hover .app-sidebar-nav-icon,
.theme-dark .app-sidebar-nav a:focus-visible .app-sidebar-nav-icon,
.theme-dark .app-sidebar-nav summary:focus-visible .app-sidebar-nav-icon,
.theme-dark .app-sidebar-utility a:hover .app-sidebar-nav-icon,
.theme-dark .app-sidebar-utility summary:hover .app-sidebar-nav-icon,
.theme-dark .app-sidebar-utility a:focus-visible .app-sidebar-nav-icon,
.theme-dark .app-sidebar-utility summary:focus-visible .app-sidebar-nav-icon {
    border-color: rgba(255, 130, 1, 0.42);
    background: rgba(255, 130, 1, 0.13);
    color: #ff9a2f;
}
.theme-dark .app-sidebar-nav a.bg-slate-50\/85,
.theme-dark .app-sidebar-nav details[open] > summary,
.theme-dark .app-sidebar-utility a.bg-slate-50\/85,
.theme-dark .app-sidebar-utility details[open] > summary {
    background: rgba(255, 130, 1, 0.12) !important;
    color: #f8fafc !important;
    box-shadow: inset 0 0 0 1px rgba(255, 130, 1, 0.18);
}
.theme-dark .app-sidebar-nav a.bg-slate-50\/85 .app-sidebar-nav-icon,
.theme-dark .app-sidebar-nav details[open] > summary .app-sidebar-nav-icon,
.theme-dark .app-sidebar-utility a.bg-slate-50\/85 .app-sidebar-nav-icon,
.theme-dark .app-sidebar-utility details[open] > summary .app-sidebar-nav-icon {
    border-color: rgba(255, 130, 1, 0.48);
    background: #ff8201;
    color: #ffffff;
}
.theme-dark .app-sidebar-account {
    background: #0f172a;
}
.theme-dark .app-sidebar-account-user,
.theme-dark .app-sidebar-account-actions a {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
}
.theme-dark .app-sidebar-account-name {
    color: #f8fafc;
}
.theme-dark .app-sidebar-account-role {
    color: #94a3b8;
}
@media (max-width: 767px) {
    .access-error-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .access-error-header-meta {
        text-align: left;
    }
    .access-error-main {
        display: block;
        min-height: auto;
    }
    .access-error-panel {
        grid-template-columns: 1fr;
    }
    .access-error-title {
        max-width: 100%;
    }
    .access-error-actions {
        flex-direction: column;
    }
    .access-error-actions .app-btn {
        width: 100%;
        white-space: normal;
    }
    .access-error-context {
        border-left: 0;
        border-top: 1px solid rgba(226, 232, 240, 0.16);
    }
    .page-title {
        max-width: none;
    }
    .app-shell-main {
        min-height: auto;
    }
    .sportiq-tour-panel {
        width: calc(100vw - 1.5rem);
    }
    .sportiq-tour-panel:not(.sportiq-tour-panel-center) {
        left: 0.75rem !important;
        right: 0.75rem;
        top: auto !important;
        bottom: 0.75rem;
    }
    .app-chip-user {
        max-width: 11.5rem;
    }
    .app-topbar-actions {
        justify-content: flex-start;
    }
    .app-toast-region {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        width: auto;
    }
    .billing-hero-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .app-notification-panel {
        left: 0;
        right: auto;
        width: calc(100vw - 2rem);
    }
    .app-notification-toast {
        right: 1rem;
        bottom: 1rem;
    }
    .app-role-admin .app-chip-user {
        max-width: min(100%, 16rem);
    }
    .evaluator-session-list {
        max-width: none;
    }
    .evaluator-session-card {
        padding: 1.15rem;
    }
    .evaluator-session-card__header {
        flex-direction: column;
        gap: 0.85rem;
    }
    .evaluator-session-card__action {
        width: 100%;
    }
    .app-pagebar-inner,
    .app-main-shell {
        padding-left: var(--app-page-gutter);
        padding-right: var(--app-page-gutter);
    }
    .sportiq-notification-modal {
        align-items: flex-end;
        padding: 0.75rem;
    }
    .sportiq-notification-panel {
        padding: 1.15rem;
    }
    .sportiq-notification-actions {
        flex-direction: column-reverse;
    }
    .sportiq-notification-button {
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .app-btn,
    .app-action-card,
    .app-theme-option,
    .app-icon-button {
        transition: none;
        transform: none !important;
    }
}

.app-btn:focus-visible,
.app-link-action:focus-visible,
.app-section-toggle:focus-visible,
.app-table-sort-button:focus-visible,
.app-action-card:focus-visible,
.app-form-help:focus-visible {
    outline: 2px solid var(--app-primary);
    outline-offset: 3px;
}

.theme-dark .sportiq-tour-panel {
    border-color: var(--app-border);
    background: var(--app-surface);
    color: var(--app-text);
    box-shadow: var(--app-shadow-elevated);
}
.theme-dark .sportiq-tour-title {
    color: var(--app-text-strong);
}
.theme-dark .sportiq-tour-body,
.theme-dark .sportiq-tour-counter,
.theme-dark .sportiq-tour-close {
    color: var(--app-text-muted);
}
.theme-dark .sportiq-tour-mobile-note {
    background: var(--app-primary-soft);
    color: #ffb86b;
}

/* Legacy utility-based controls share the same dark hover treatment as app components. */
.theme-dark .app-shell-main :is(
    [class~="hover:bg-white"],
    [class~="hover:bg-slate-50"],
    [class~="hover:bg-slate-50/70"],
    [class~="hover:bg-slate-100"],
    [class~="hover:bg-gray-50"],
    [class~="hover:bg-gray-100"]
):is(:hover, :focus-visible) {
    background-color: var(--app-surface-muted) !important;
}
.theme-dark .app-shell-main :is(
    [class~="hover:bg-orange-50"],
    [class~="hover:bg-orange-50/40"]
):is(:hover, :focus-visible),
.theme-dark .app-action-card:is(:hover, :focus-visible) {
    background: var(--app-primary-soft) !important;
    border-color: var(--app-primary);
    color: var(--app-text-strong);
}
.theme-dark .app-shell-main :is(
    [class~="hover:text-slate-600"],
    [class~="hover:text-slate-700"],
    [class~="hover:text-slate-900"],
    [class~="hover:text-gray-600"],
    [class~="hover:text-gray-700"],
    [class~="hover:text-gray-900"]
):is(:hover, :focus-visible) {
    color: var(--app-text-strong) !important;
}
.theme-dark .app-row-action-danger {
    color: #fca5a5;
}
.theme-dark .app-row-action-danger:is(:hover, :focus-visible),
.theme-dark .app-btn-danger-outline:is(:hover, :focus-visible) {
    border-color: #f87171;
    background: rgba(127, 29, 29, 0.35);
    color: #fecaca !important;
}

.theme-dark .app-setup-health-row--recommended .app-setup-health-row-icon {
    background: rgba(96, 165, 250, 0.14);
    color: #93c5fd;
}
.theme-dark .app-setup-health-row--complete .app-setup-health-row-icon {
    background: rgba(52, 211, 153, 0.14);
    color: #6ee7b7;
}
.theme-dark .app-link-danger {
    color: #fca5a5 !important;
}
.theme-dark .app-link-danger:is(:hover, :focus-visible) {
    color: #fecaca !important;
}

/* Shared primitives: layout utilities may compose these; visual states live here. */
.app-field {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    min-height: 2.75rem;
    border: 1px solid var(--app-border-strong);
    border-radius: 8px;
    background: var(--app-surface);
    padding: 0.625rem 0.75rem;
    color: var(--app-text-strong);
    font-family: inherit;
    line-height: 1.5;
}
.app-field::placeholder { color: var(--app-text-muted); }
.app-field:disabled { cursor: not-allowed; opacity: 0.65; }
.app-shell-main .app-field:focus-visible,
.app-field:focus-visible {
    border-color: var(--app-primary);
    outline: 2px solid var(--app-blue);
    outline-offset: 2px;
}
.app-field[aria-invalid="true"] { border-color: #b91c1c; }
.theme-dark .app-field[aria-invalid="true"] { border-color: #f87171; }
.app-inset {
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-surface-soft);
    color: var(--app-text);
}
.app-shell-main .app-nav-card {
    display: block;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-surface);
    padding: 0.75rem 1rem;
    color: var(--app-text-strong);
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease;
}
.app-shell-main .app-nav-card--roomy { padding: 1rem; }
.app-shell-main .app-nav-card.flex { display: flex; }
.app-shell-main .app-nav-card:is(:hover, :focus-visible) {
    border-color: var(--app-primary);
    background: var(--app-surface-muted);
    color: var(--app-text-strong);
    text-decoration: none;
}
.app-nav-card:focus-visible,
.app-disclosure > summary:focus-visible,
.app-btn:focus-visible,
.app-row-action-primary:focus-visible,
.app-row-action-toggle:focus-visible,
.app-row-action-item:focus-visible,
.sportiq-folder-tab:focus-visible {
    outline: 2px solid var(--app-blue);
    outline-offset: 3px;
}
.app-shell-main tbody .app-table-row:is(:hover, :focus-within) {
    background: var(--app-surface-muted);
}
.app-disclosure {
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-surface);
    padding: 1rem;
    color: var(--app-text);
}
.app-disclosure > summary {
    cursor: pointer;
    color: var(--app-text-strong);
    font-size: 0.875rem;
    font-weight: 800;
}
.app-eyebrow {
    color: var(--app-text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.5;
    text-transform: uppercase;
}
.app-status-pill--template {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #6d28d9;
}
@media (prefers-reduced-motion: reduce) {
    .app-nav-card { transition: none; }
}
.app-field-error { color: #b91c1c; font-size: 0.875rem; line-height: 1.5; }
.theme-dark .app-field-error { color: #fca5a5; }

/* Supporting copy is text; app-form-help is reserved for icon help controls. */
.app-supporting-text {
    color: var(--app-text-muted);
    font-size: 0.875rem;
    line-height: 1.5rem;
    overflow-wrap: anywhere;
}

/* Keep multi-player change reviews readable with confirmation actions reachable. */
#sportiqConfirmModal .evaluation-modal-panel {
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
}
#sportiqConfirmModalBody {
    white-space: pre-line;
    max-height: 40vh;
    overflow-y: auto;
    overflow-wrap: anywhere;
}

.app-workflow-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0.75rem; }
.app-workflow-steps > li { padding: 0.75rem 1rem; border: 1px solid var(--app-border); border-radius: 8px; background: var(--app-surface); color: var(--app-text); }
.app-workflow-steps > li[aria-current="step"] { border-color: var(--app-action-primary); box-shadow: inset 3px 0 var(--app-action-primary); }
.app-workflow-tools { position: sticky; bottom: 0; z-index: 20; padding: 1rem; border: 1px solid var(--app-border); border-radius: 8px; background: var(--app-surface); color: var(--app-text); }
.app-workflow-tools:focus-within { border-color: var(--app-blue); }

.app-file-field {
    display: block; width: 100%; min-height: 44px; padding: 0.5rem;
    border: 1px solid var(--app-border-strong); border-radius: 8px;
    background: var(--app-surface); color: var(--app-text-strong); font: inherit;
}
.app-file-field::file-selector-button {
    min-height: 36px; margin-right: 0.75rem; padding: 0.5rem 0.75rem;
    border: 0; border-radius: 6px; background: var(--app-action-primary);
    color: var(--app-on-primary); font: inherit; cursor: pointer;
}
.app-file-field::file-selector-button:hover { background: var(--app-action-primary-hover); }
.app-file-field:focus-visible { outline: 2px solid var(--app-blue); outline-offset: 3px; }

/* Supporting copy must remain readable on neutral and hover surfaces. */
.app-shell .text-slate-500, .app-shell .app-sidebar-section-label { color: var(--app-text-muted) !important; }
.theme-dark .app-shell :is(.text-gray-400,.text-gray-500,.text-gray-600) { color: var(--app-text-muted) !important; }

.app-next-steps .app-next-step-primary { border-color: var(--app-primary); border-inline-start-width: 4px; }

.app-filter-advanced { grid-column: 1 / -1; }
@media (max-width: 767px) {
    .app-sidebar { visibility: hidden; }
    body.app-sidebar-open .app-sidebar { visibility: visible; }
}
.app-filter-advanced[hidden] { display: none !important; }

.app-section-nav .app-btn[aria-selected="true"] {
    background: var(--app-primary-soft) !important;
    border-color: var(--app-primary) !important;
    color: var(--app-text-strong) !important;
    box-shadow: inset 0 -3px 0 var(--app-primary);
}
@container app-content (max-width: 39.99rem) {
    .app-section-nav { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,10rem),1fr)); }
}

.theme-dark .app-shell :is(.text-amber-600,.text-amber-700,.text-amber-800) { color: var(--app-warning-text) !important; }
