:root {
    --bg: #080c14;
    --panel: #0d1526;
    --panel-2: #111d35;
    --blue: #3a7dc3;
    --blue-bright: #5b97d6;
    --blue-sky: #7bb3df;
    --white: #fff;
    --text: #a9b7ca;
    --muted: #64748b;
    --border: rgba(123, 179, 223, .18);
    --danger: #f87171;
    --success: #34d399;
    --radius: 14px;
    --display: 'Bebas Neue', sans-serif;
    --condensed: 'Barlow Condensed', sans-serif;
    --body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: var(--body);
    line-height: 1.6;
}
a { color: var(--blue-sky); }
button, input, textarea, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.shell--narrow { max-width: 850px; }

.site-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--border);
    background: rgba(8, 12, 20, .96);
}
.site-header__inner, .site-footer__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--white);
    text-decoration: none;
    font-family: var(--condensed);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.brand img { object-fit: contain; }
.brand small { display: block; color: var(--blue-sky); font-size: .68rem; letter-spacing: .2em; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a, .nav-button {
    color: var(--text);
    text-decoration: none;
    text-transform: uppercase;
    font-family: var(--condensed);
    font-weight: 700;
    letter-spacing: .08em;
    background: none;
    border: 0;
    cursor: pointer;
}
.site-nav form { display: inline; }
.site-nav .nav-cta { color: var(--white); background: var(--blue); padding: .65rem 1rem; border-radius: 9px; }
.site-nav a.is-active { color: var(--white); }
.nav-alert-link { display: inline-flex; align-items: flex-start; gap: .18rem; }
.nav-unread-indicator { display: none; color: #ff4d5e; font-family: var(--body); font-size: 1.05rem; font-weight: 800; line-height: .8; text-shadow: 0 0 8px rgba(255,77,94,.55); }
.nav-unread-indicator.is-visible { display: inline-grid; }

h1, h2, h3 { color: var(--white); margin: 0 0 .65rem; line-height: 1.05; }
h1, h2 { font-family: var(--display); letter-spacing: .025em; font-weight: 400; }
h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-family: var(--condensed); font-size: 1.55rem; }
.eyebrow {
    color: var(--blue-sky);
    margin: 0 0 .5rem;
    font-family: var(--condensed);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .25em;
    text-transform: uppercase;
}
.lede { max-width: 680px; margin: 0 0 2rem; font-size: 1.05rem; }

.hero {
    position: relative;
    min-height: max(680px, calc(100vh - 72px));
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse at 50% 35%, #0b1a3b 0%, var(--bg) 65%);
    overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 35%, rgba(8,12,20,.65) 100%); pointer-events: none; }
.hero__content { position: relative; z-index: 2; width: min(820px, calc(100% - 2rem)); text-align: center; }
.hero__wordmark { display: block; width: min(680px, 92vw); max-height: 280px; object-fit: contain; margin: 0 auto 2.5rem; filter: drop-shadow(0 0 24px rgba(123,179,223,.4)) drop-shadow(0 10px 30px #000); }
.hero__tagline { margin: 0; color: rgba(255,255,255,.78); font-family: var(--condensed); font-size: clamp(1.3rem, 3.5vw, 2.25rem); font-weight: 700; letter-spacing: .08em; line-height: 1.1; text-transform: uppercase; }
.hero__tagline em { color: var(--blue-sky); font-style: normal; }
.hero__values { margin: 1rem 0 0; color: rgba(169,183,202,.8); font-family: var(--condensed); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.hero__values span { color: var(--blue-bright); padding-inline: .35rem; }
.hero__scroll { position: absolute; z-index: 2; bottom: 2rem; left: 50%; width: 24px; height: 38px; border: 1px solid rgba(255,255,255,.28); border-radius: 14px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--blue-sky); transform: translateX(-50%); animation: hero-scroll 1.8s ease-in-out infinite; }
@keyframes hero-scroll {
    0% { opacity: 0; transform: translate(-50%, 0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.actions--left { justify-content: flex-start; }

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: .8rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--white);
    font-family: var(--condensed);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}
.button--primary { background: linear-gradient(135deg, var(--blue), var(--blue-bright)); box-shadow: 0 8px 28px rgba(58, 125, 195, .3); }
.button--ghost { border-color: rgba(255,255,255,.35); background: rgba(8,12,20,.45); }
.button--danger { border-color: rgba(248,113,113,.45); background: rgba(127,29,29,.45); }
.button--full { width: 100%; }
.button--small { min-height: 38px; padding: .5rem .9rem; font-size: .85rem; background: var(--blue); }
.button--impersonate { border-color: rgba(123,179,223,.4); color: #e1edf8; background: rgba(71,126,201,.18); white-space: nowrap; }

.impersonation-banner {
    position: relative;
    z-index: 9;
    border-bottom: 1px solid #f59e0b;
    color: #172033;
    background: linear-gradient(100deg, #fbbf24, #fde68a);
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.impersonation-banner__inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .65rem; }
.impersonation-banner__inner > div { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .75rem; }
.impersonation-banner__label { padding: .25rem .5rem; border-radius: 999px; color: #fff; background: #92400e; font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.impersonation-banner strong { color: #172033; font-size: .86rem; }
.impersonation-banner small { color: #713f12; font-size: .66rem; }
.impersonation-banner form { flex: 0 0 auto; margin: 0; }
.impersonation-banner__button { min-height: 38px; padding: .5rem .8rem; border: 1px solid rgba(23,32,51,.25); border-radius: 9px; color: #fff; background: #172033; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }

.section, .dashboard, .form-page { padding: clamp(3rem, 8vw, 6rem) 0; }
.feature-grid, .dashboard-grid, .player-grid, .stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-card, .card, .stat-card, .auth-panel {
    padding: clamp(1.3rem, 4vw, 2rem);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(145deg, var(--panel), var(--panel-2));
}
.feature-card__number { color: var(--blue-sky); font-family: var(--display); font-size: 2rem; }
.site-footer { border-top: 1px solid var(--border); background: #060a11; font-family: var(--condensed); }
.site-footer__inner { min-height: 90px; }
.site-footer__brand { display: grid; line-height: 1.35; }
.site-footer__brand strong { color: var(--white); font-family: var(--body); font-size: .85rem; }
.site-footer__brand span { color: var(--muted); font-family: var(--body); font-size: .74rem; }
.site-footer__nav { display: flex; align-items: center; gap: 1.25rem; }
.site-footer__nav a { color: var(--text); font-family: var(--body); font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.site-footer__nav a:hover { color: var(--blue-sky); }

.public-page { background: var(--bg); }
.public-page__intro,
.public-page__section { padding: clamp(4rem, 9vw, 7rem) 0; }
.public-page__intro {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, rgba(71,126,201,.15), transparent 35%);
}
.public-page__intro::before {
    position: absolute;
    inset: 0;
    content: '';
    pointer-events: none;
    background-image: linear-gradient(rgba(123,179,223,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(123,179,223,.025) 1px, transparent 1px);
    background-size: 48px 48px;
}
.public-page__intro .shell { position: relative; }
.public-page__title {
    max-width: 800px;
    margin-bottom: 1.25rem;
    font-family: var(--display);
    font-size: clamp(3rem, 7vw, 5.6rem);
    font-weight: 400;
    letter-spacing: .02em;
    line-height: .95;
}
.public-page__title span { color: var(--blue-sky); }
.public-page__copy { max-width: 720px; color: #bcc8d8; font-size: clamp(1rem, 1.8vw, 1.15rem); }
.policy-hero { padding-block: clamp(3.5rem, 8vw, 6rem); }
.policy-hero .shell { text-align: center; }
.policy-hero .public-page__title,
.policy-hero .public-page__copy { margin-inline: auto; }
.policy-effective {
    width: max-content;
    margin: 1.4rem auto 0;
    padding: .5rem .85rem;
    border: 1px solid rgba(123,179,223,.25);
    border-radius: 999px;
    color: #b4cee3;
    background: rgba(71,126,201,.1);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.policy-section { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.policy-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: clamp(1.5rem, 4vw, 3.5rem); }
.policy-summary {
    position: sticky;
    top: 1.5rem;
    display: grid;
    gap: .75rem;
    padding: 1.35rem;
    border: 1px solid rgba(123,179,223,.25);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(17,29,53,.96), rgba(10,18,33,.96));
    box-shadow: 0 18px 48px rgba(0,0,0,.22);
}
.policy-summary__label { color: var(--blue-sky); font-size: .67rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.policy-summary strong { color: #f6f9fc; font-family: var(--condensed); font-size: 1.25rem; line-height: 1.2; }
.policy-summary p { margin: 0; color: #9cafc7; font-size: .8rem; line-height: 1.55; }
.policy-summary a { overflow-wrap: anywhere; font-size: .76rem; font-weight: 700; }
.policy-content { display: grid; gap: 1rem; }
.policy-content > section {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(13,21,38,.9), rgba(17,29,53,.74));
}
.policy-number {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(123,179,223,.3);
    border-radius: 12px;
    color: #cae1f3;
    background: rgba(71,126,201,.14);
    font-family: var(--condensed);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
}
.policy-content h2 { margin: 0 0 .85rem; font-family: var(--condensed); font-size: clamp(1.35rem, 2.5vw, 1.75rem); font-weight: 700; letter-spacing: .01em; }
.policy-content p { margin: 0 0 .85rem; color: #aebdd0; font-size: .92rem; }
.policy-content p:last-child { margin-bottom: 0; }
.policy-content ul { display: grid; gap: .65rem; margin: 0; padding-left: 1.2rem; }
.policy-content li { padding-left: .2rem; color: #aebdd0; font-size: .92rem; }
.policy-content strong { color: #e9f0f6; }
.policy-content address { color: #aebdd0; font-size: .9rem; font-style: normal; }
.public-about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.public-about__image { position: relative; min-height: 480px; overflow: hidden; border: 1px solid rgba(123,179,223,.25); border-radius: var(--radius); background: var(--panel); box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.public-about__image::after { position: absolute; inset: 0; content: ''; background: linear-gradient(180deg, transparent 45%, rgba(8,12,20,.7)); }
.public-about__image img { width: 100%; height: 100%; min-height: 480px; display: block; object-fit: cover; }
.public-about__text > p { max-width: 680px; }
.public-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 2rem; }
.public-stat { padding: 1.15rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(13,21,38,.75); text-align: center; }
.public-stat strong { display: block; color: var(--white); font-family: var(--body); font-size: 1.35rem; }
.public-stat span { color: var(--blue-sky); font-size: .67rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.public-cta { padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--border); text-align: center; background: linear-gradient(180deg, #0a1120, #080c14); }
.public-cta h2 { margin-bottom: .75rem; }
.values-code { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.value-card { min-height: 210px; display: grid; align-content: center; justify-items: center; padding: 1.5rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(145deg, var(--panel), var(--panel-2)); text-align: center; }
.value-card__letter { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 1rem; border: 1px solid rgba(123,179,223,.35); border-radius: 50%; color: var(--blue-sky); background: rgba(71,126,201,.12); font-family: var(--display); font-size: 2.5rem; line-height: 1; }
.value-card h3 { margin: 0; font-size: 1.15rem; }
.public-creed { padding: clamp(3rem, 7vw, 5rem) 0; border-block: 1px solid var(--border); background: radial-gradient(circle at center, rgba(71,126,201,.13), transparent 55%); text-align: center; }
.public-creed blockquote { width: min(900px, calc(100% - 2rem)); margin: 1.5rem auto 0; color: var(--white); font-family: var(--condensed); font-size: clamp(1.5rem, 3vw, 2.35rem); font-weight: 600; line-height: 1.35; }
.pillars-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; width: min(760px, 100%); margin: 2rem auto 0; }
.pillar-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); text-align: center; }
.pillar-card strong { display: block; color: var(--blue-sky); font-family: var(--display); font-size: 2.5rem; font-weight: 400; }
.built-on { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.built-on span { padding: .65rem 1rem; border: 1px solid rgba(123,179,223,.28); border-radius: 999px; color: #e1edf8; background: rgba(71,126,201,.1); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.coming-soon {
    min-height: clamp(540px, 68vh, 720px);
    display: grid;
    place-items: center;
    text-align: center;
}
.coming-soon__content { width: min(760px, 100%); margin-inline: auto; }
.coming-soon__mark {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    margin: 0 auto 1.75rem;
    border: 1px solid rgba(123,179,223,.35);
    border-radius: 50%;
    color: var(--blue-sky);
    background: radial-gradient(circle, rgba(71,126,201,.2), rgba(13,21,38,.75));
    box-shadow: 0 0 48px rgba(71,126,201,.18);
    font-family: var(--display);
    font-size: 3.2rem;
    line-height: 1;
}
.coming-soon .public-page__title { margin-inline: auto; }
.coming-soon .public-page__copy { margin-inline: auto; }
.coming-soon__label {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: 1.5rem;
    padding: .6rem 1rem;
    border: 1px solid rgba(123,179,223,.28);
    border-radius: 999px;
    color: #e1edf8;
    background: rgba(71,126,201,.1);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.coming-soon__label::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: '';
    background: var(--blue-sky);
    box-shadow: 0 0 12px var(--blue-sky);
}

.auth-shell { min-height: calc(100vh - 163px); display: grid; place-items: center; padding: 3rem 1rem; }
.auth-panel { width: min(520px, 100%); }
.form-stack { display: grid; gap: 1.15rem; }
.form-stack fieldset { margin: 0; padding: 0 0 1.5rem; border: 0; border-bottom: 1px solid var(--border); }
.form-stack legend { margin-bottom: 1rem; color: var(--white); font-family: var(--condensed); font-size: 1.4rem; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-stack label { display: grid; align-content: start; gap: .4rem; color: #dae2e8; font-family: var(--condensed); font-weight: 700; }
.form-stack input:not([type=checkbox]), .form-stack textarea, .form-stack select, .compact-form select {
    width: 100%;
    border: 1px solid #293a59;
    border-radius: 9px;
    background: #08101e;
    color: var(--white);
    padding: .75rem .85rem;
}
.form-stack input:not([type=checkbox]), .form-stack select { height: 48px; }
.form-stack textarea { min-height: 120px; resize: vertical; }
.form-stack input:focus, .form-stack textarea:focus { outline: 2px solid var(--blue-bright); outline-offset: 1px; }
.form-stack small, .optional { color: var(--muted); font-family: var(--body); font-size: .75rem; font-weight: 400; }
.field-label { display: inline-flex; align-items: baseline; gap: .35rem; min-width: 0; }
.check-row { display: flex !important; grid-template-columns: auto 1fr; align-items: flex-start; gap: .75rem !important; }
.check-row input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--blue); flex: 0 0 auto; }
.span-2 { grid-column: 1 / -1; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-block: .75rem; }
.form-note, .auth-links { text-align: center; }
.auth-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.3rem; font-size: .9rem; }
.text-button { padding: 0; border: 0; color: var(--blue-sky); background: none; cursor: pointer; text-decoration: underline; }
.notification-preferences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.notification-choice { display: flex !important; align-items: flex-start !important; gap: .7rem !important; padding: .85rem; border: 1px solid rgba(123,179,223,.14); border-radius: 10px; background: #091321; cursor: pointer; }
.notification-choice:has(input:checked) { border-color: rgba(123,179,223,.46); background: rgba(71,126,201,.12); }
.notification-choice input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: .15rem; accent-color: var(--blue); }
.notification-choice span { min-width: 0; display: grid; gap: .2rem; }
.notification-choice strong { color: #ebf2f8; font-size: .78rem; }
.notification-choice small { color: #8191a7; font-size: .66rem; line-height: 1.4; }
@media (max-width: 620px) { .notification-preferences { grid-template-columns: 1fr; } }

.flash { margin-top: 1rem; padding: 1rem 1.25rem; border-radius: 10px; }
.flash--success { border: 1px solid rgba(52,211,153,.35); color: #a7f3d0; background: rgba(6,78,59,.5); }
.flash--error { border: 1px solid rgba(248,113,113,.35); color: #fecaca; background: rgba(127,29,29,.4); }
.flash ul { margin-bottom: 0; }

.page-heading, .section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; }
.status-pill, .private-label { display: inline-block; color: #a7f3d0; border: 1px solid rgba(52,211,153,.3); border-radius: 999px; background: rgba(6,78,59,.35); padding: .3rem .7rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.stat-card { display: grid; }
.stat-card strong { color: var(--white); font-family: var(--display); font-size: 3rem; font-weight: 400; }
.stat-card span { text-transform: uppercase; font-family: var(--condensed); letter-spacing: .1em; }
.empty-state { margin-top: 1rem; }
.player-card { display: flex; gap: 1rem; align-items: center; }
.player-card__number { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--blue); font-family: var(--display); font-size: 2rem; flex: 0 0 auto; }
.player-card__photo { width: 64px; height: 64px; display: block; flex: 0 0 auto; border: 2px solid rgba(123,179,223,.45); border-radius: 50%; background: #08101e; object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.player-card p { margin: .25rem 0; }
.player-photo-editor { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 1.25rem; align-items: center; }
.player-photo-preview { width: 112px; height: 112px; display: grid; place-items: center; overflow: hidden; border: 2px solid rgba(123,179,223,.4); border-radius: 50%; color: var(--white); background: linear-gradient(145deg, #305e8d, #0a2555); font-family: var(--display); font-size: 2.75rem; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.player-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.player-photo-editor__controls { min-width: 0; display: grid; gap: .8rem; }
.player-photo-editor__controls input[type=file] { height: auto; min-height: 48px; padding: .65rem; }
.team-chip { display: inline-block; margin: .3rem .3rem 0 0; padding: .2rem .55rem; border-radius: 999px; color: var(--blue-sky); background: rgba(91,151,214,.12); font-size: .75rem; text-decoration: none; }
.team-list { display: grid; gap: .75rem; margin-top: 1.5rem; }
.team-row { display: flex; justify-content: space-between; align-items: center; color: var(--text); text-decoration: none; }
.team-row strong { display: block; color: var(--white); font-family: var(--condensed); font-size: 1.25rem; }
.team-row small { display: block; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: 1.5rem; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.inline-form label { display: grid; gap: .4rem; }
.inline-form input { width: 100%; border: 1px solid #293a59; border-radius: 9px; background: #08101e; color: var(--white); padding: .75rem; }
.table-card { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
th { color: var(--blue-sky); font-family: var(--condensed); text-transform: uppercase; letter-spacing: .08em; }
.compact-form { display: flex; gap: .5rem; }
.account-actions { display: flex; align-items: center; gap: .6rem; }
.deletion-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 1.5rem; margin: 0 0 1.5rem; }
.deletion-summary div { padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.deletion-summary dt { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.deletion-summary dd { margin: .2rem 0 0; color: var(--white); overflow-wrap: anywhere; }
.deletion-warning { margin-bottom: 1.5rem; padding: 1rem 1.25rem; border: 1px solid rgba(248,113,113,.32); border-radius: 10px; color: #fecaca; background: rgba(127,29,29,.22); }
.roster-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
article.roster-card, .roster-card__header { display: flex; align-items: flex-start; gap: 1rem; }
.roster-card__header { flex-wrap: wrap; row-gap: .5rem; list-style: none; cursor: pointer; }
.roster-card__header::-webkit-details-marker { display: none; }
.roster-card__identity { flex: 1; min-width: 0; }
.roster-card__private { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(123,179,223,.12); min-width: 0; }
.roster-card__private > :first-child { margin-top: 0; }
.private-box { margin-top: .75rem; padding: .75rem; border-left: 3px solid var(--blue); background: rgba(8,16,30,.7); overflow-wrap: anywhere; }
.private-box--medical { border-color: #f59e0b; }
.roster-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.team-announcement-card { padding: 0; overflow: hidden; }
.team-announcement-card__header { display: flex; align-items: flex-start; flex-wrap: wrap; row-gap: .5rem; justify-content: space-between; gap: .75rem; padding: 1.1rem 1.35rem; border-bottom: 1px solid rgba(123,179,223,.13); list-style: none; cursor: pointer; }
.team-announcement-card__header::-webkit-details-marker { display: none; }
.team-announcement-card__header h3 { margin: 0; }
.team-announcement-card__header small { color: #8190a5; font-size: .68rem; }
.team-announcement-card:not([open]) > .team-announcement-card__header { border-bottom: none; }
.team-announcement-card__body { margin: 0; padding: 1rem 1.35rem 1.25rem; }
.content-row { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--border); }
.parent-schedule-event { padding: .7rem 0; border-bottom: 1px solid var(--border); }
.parent-schedule-event p { margin: 0; }
.event-location { display: block; margin-top: .2rem; color: var(--muted); font-size: .82rem; }
.directions-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.directions-link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: .32rem .6rem;
    border: 1px solid rgba(123,179,223,.28);
    border-radius: 999px;
    color: #cae1f3;
    background: rgba(71,126,201,.12);
    font-size: .66rem;
    font-weight: 700;
    text-decoration: none;
}
.directions-link:hover { border-color: rgba(123,179,223,.55); color: #fff; background: rgba(71,126,201,.22); }
.dashboard-grid--parent { grid-template-columns: minmax(0, 1fr); }

/* Parent family calendar */
.parent-schedule-page { padding-top: clamp(1.5rem, 4vw, 3rem); }
.schedule-toolbar { display: flex; align-items: center; justify-content: center; gap: .65rem; margin: 1rem 0 1.25rem; }
.schedule-nav-button, .schedule-today-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .5rem .8rem;
    border: 1px solid rgba(123,179,223,.24);
    border-radius: 9px;
    color: #e1edf8;
    background: rgba(15,29,50,.78);
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
}
.schedule-today-button { border-color: rgba(123,179,223,.42); color: #fff; background: rgba(71,126,201,.22); }
.schedule-nav-button:hover, .schedule-today-button:hover { border-color: #7bb3df; background: rgba(71,126,201,.3); }
.schedule-empty { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.schedule-empty > span { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: #cae1f3; background: rgba(71,126,201,.16); font-size: .65rem; font-weight: 800; }
.schedule-empty h2 { margin: 0; font-size: 1.15rem; }
.schedule-empty p { margin: .2rem 0 0; color: var(--muted); font-size: .76rem; }
.schedule-calendar-shell { overflow: hidden; border: 1px solid rgba(123,179,223,.17); border-radius: 16px; background: #07101e; box-shadow: 0 24px 60px rgba(0,0,0,.24); }
.schedule-weekdays, .schedule-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.schedule-weekdays { border-bottom: 1px solid rgba(123,179,223,.16); background: #0b1729; }
.schedule-weekdays > span { padding: .75rem .5rem; color: #8ea2bd; font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.schedule-weekday-short { display: none; }
.schedule-day { min-width: 0; min-height: 150px; padding: .55rem; border-right: 1px solid rgba(123,179,223,.1); border-bottom: 1px solid rgba(123,179,223,.1); background: rgba(9,19,33,.76); }
.schedule-day:nth-child(7n) { border-right: 0; }
.schedule-day > header { display: flex; justify-content: flex-end; margin-bottom: .45rem; }
.schedule-day > header time { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #9cacc1; font-size: .62rem; font-weight: 700; line-height: 1; }
.schedule-day--outside { background: rgba(4,10,20,.62); }
.schedule-day--outside > header, .schedule-day--outside .schedule-day__events { opacity: .34; }
.schedule-day--today > header time { color: #fff; background: #477ec9; box-shadow: 0 0 0 3px rgba(71,126,201,.18); }
.schedule-mobile-date { display: none; }
.schedule-day__events { display: grid; gap: .45rem; }
.schedule-event { min-width: 0; padding: .6rem; border: 1px solid rgba(123,179,223,.16); border-left: 3px solid #7bb3df; border-radius: 9px; background: #0b1729; box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.schedule-event--game { border-left-color: #fbbf24; }
.schedule-event--meeting { border-left-color: #a78bfa; }
.schedule-event--tryout { border-left-color: #34d399; }
.schedule-event__topline { display: flex; align-items: center; justify-content: space-between; gap: .4rem; color: #7f91aa; font-size: .54rem; font-weight: 700; line-height: 1.25; text-transform: uppercase; }
.schedule-event__topline time { flex: 0 0 auto; font-size: .54rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.backend .schedule-event h3 { margin: .35rem 0 .15rem; overflow-wrap: anywhere; color: #f0f7fc; font-size: .8rem; line-height: 1.25; }
.schedule-event__team, .schedule-event__location, .schedule-event__notes { margin: .22rem 0 0; color: #9aabc0; font-size: .67rem; line-height: 1.35; overflow-wrap: anywhere; }
.schedule-event__location::before { margin-right: .25rem; color: #7bb3df; content: '●'; font-size: .45rem; }
.schedule-event__notes { padding-top: .35rem; border-top: 1px solid rgba(123,179,223,.1); }
.schedule-event .directions-links { gap: .3rem; margin-top: .45rem; }
.schedule-event .directions-link { min-height: 26px; padding: .25rem .48rem; font-size: .58rem; }

@media (max-width: 900px) and (min-width: 621px) {
    .schedule-weekday-long { display: none; }
    .schedule-weekday-short { display: inline; }
    .schedule-day { min-height: 132px; padding: .4rem; }
    .schedule-event__topline { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
    .schedule-toolbar { justify-content: space-between; }
    .schedule-calendar-shell { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
    .schedule-weekdays { display: none; }
    .schedule-calendar { grid-template-columns: 1fr; gap: .75rem; }
    .schedule-day { display: none; min-height: 0; padding: 0; border: 1px solid rgba(123,179,223,.15) !important; border-radius: 13px; background: #091321; overflow: hidden; }
    .schedule-day--has-events { display: block; }
    .schedule-day--outside { display: none; }
    .schedule-day > header { justify-content: space-between; align-items: center; margin: 0; padding: .75rem .9rem; border-bottom: 1px solid rgba(123,179,223,.12); background: #0b1729; }
    .schedule-mobile-date { display: inline; color: #e1eaf2; font-size: .7rem; font-weight: 700; }
    .schedule-day > header time { width: 26px; height: 26px; font-size: .6rem; }
    .schedule-day__events { padding: .75rem; }
    .schedule-event { padding: .8rem; }
    .backend .schedule-event h3 { font-size: .86rem; line-height: 1.3; }
    .schedule-event__team, .schedule-event__location, .schedule-event__notes { font-size: .72rem; }
    .schedule-event__topline, .schedule-event__topline time { font-size: .58rem; }
    .schedule-event .directions-link { min-height: 32px; padding: .35rem .6rem; font-size: .64rem; }
    .dashboard-grid--parent { grid-template-columns: 1fr; }
}

/* Live parent announcement board */
.announcement-board-page { padding-top: clamp(1.5rem, 4vw, 3rem); }
.bulletin-board-status { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: -.75rem 0 1rem; color: #7f90a7; font-size: .68rem; }
.bulletin-live { display: inline-flex; align-items: center; gap: .4rem; color: #a7f3d0; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.bulletin-live i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 12px rgba(52,211,153,.75); animation: bulletin-pulse 2s ease-in-out infinite; }
.bulletin-board { position: relative; min-height: 280px; overflow: hidden; padding: clamp(1rem, 2.5vw, 2rem); border: 1px solid rgba(123,179,223,.2); border-radius: 18px; background: radial-gradient(circle at 12% 10%, rgba(71,126,201,.16), transparent 30%), radial-gradient(circle at 88% 90%, rgba(245,158,11,.09), transparent 32%), #07101d; box-shadow: inset 0 0 0 5px rgba(20,39,67,.38), 0 26px 70px rgba(0,0,0,.28); }
.bulletin-board::before { position: absolute; inset: 0; pointer-events: none; content: ''; opacity: .25; background-image: linear-gradient(rgba(148,163,184,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.035) 1px, transparent 1px); background-size: 24px 24px; }
.bulletin-board__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; align-items: start; }
.bulletin-note { --note-accent: #7bb3df; position: relative; min-width: 0; padding: 1.25rem; border: 1px solid color-mix(in srgb, var(--note-accent) 32%, transparent); border-radius: 7px 14px 9px 12px; background: linear-gradient(145deg, color-mix(in srgb, var(--note-accent) 9%, #111a29), #0c1523 70%); box-shadow: 0 15px 30px rgba(0,0,0,.25); transform: rotate(-.35deg); transition: transform .2s ease, box-shadow .2s ease; }
.bulletin-note:nth-child(even) { transform: rotate(.45deg); }
.bulletin-note:nth-child(3n) { transform: rotate(-.15deg); }
.bulletin-note:hover { z-index: 2; transform: rotate(0) translateY(-3px); box-shadow: 0 20px 38px rgba(0,0,0,.32); }
.bulletin-note--featured { width: min(820px, 100%); grid-column: 1 / -1; justify-self: center; padding: 1.5rem; border-color: color-mix(in srgb, var(--note-accent) 48%, transparent); transform: rotate(0); }
.bulletin-note--gold { --note-accent: #fbbf24; }
.bulletin-note--slate { --note-accent: #94a3b8; }
.bulletin-note--sky { --note-accent: #59bed7; }
.bulletin-pin { position: absolute; top: -6px; left: 50%; width: 14px; height: 14px; border: 3px solid rgba(255,255,255,.5); border-radius: 50%; background: var(--note-accent); box-shadow: 0 3px 8px rgba(0,0,0,.45); transform: translateX(-50%); }
.bulletin-note__header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: var(--note-accent); font-size: .63rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bulletin-note__header strong { padding: .25rem .5rem; border-radius: 999px; color: #eef4fb; background: color-mix(in srgb, var(--note-accent) 18%, transparent); font-size: .55rem; }
.backend .bulletin-note h2 { margin: .75rem 0 .55rem; color: #f4f8fd; font-size: 1.08rem; line-height: 1.2; }
.backend .bulletin-note--featured h2 { font-size: 1.35rem; }
.bulletin-note__body { color: #bec9d8; font-size: .78rem; line-height: 1.65; overflow-wrap: anywhere; }
.bulletin-note footer { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid color-mix(in srgb, var(--note-accent) 18%, transparent); color: #71839b; font-size: .59rem; }
.bulletin-note footer span { color: #9bacc1; font-weight: 700; }
.bulletin-note footer time { text-align: right; }
.bulletin-empty { position: relative; z-index: 1; min-height: 240px; display: grid; place-items: center; align-content: center; text-align: center; }
.bulletin-empty__mark { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: .75rem; border-radius: 50%; color: #cae1f3; background: rgba(71,126,201,.16); font-size: .68rem; font-weight: 800; }
.backend .bulletin-empty h2 { margin: 0; font-size: 1.2rem; }
.bulletin-empty p { margin: .35rem 0 0; color: #7f90a7; font-size: .76rem; }
.bulletin-board.is-updated .bulletin-note:first-child { animation: bulletin-arrive .55s ease-out; }

@keyframes bulletin-pulse { 50% { opacity: .48; transform: scale(.8); } }
@keyframes bulletin-arrive { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 900px) {
    .bulletin-board__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bulletin-note--featured { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .bulletin-board-status { align-items: flex-start; flex-direction: column; gap: .3rem; }
    .bulletin-board { padding: 1rem; border-radius: 14px; }
    .bulletin-board__grid { grid-template-columns: 1fr; gap: .85rem; }
    .bulletin-note, .bulletin-note:nth-child(even), .bulletin-note:nth-child(3n) { grid-column: auto; padding: 1.1rem; transform: none; }
    .backend .bulletin-note h2, .backend .bulletin-note--featured h2 { font-size: 1rem; }
    .bulletin-note footer { align-items: flex-start; flex-direction: column; gap: .25rem; }
    .bulletin-note footer time { text-align: left; }
}

/* Authenticated interface typography */
.backend h1,
.backend h2,
.backend h3 {
    font-family: var(--body);
    font-weight: 700;
    letter-spacing: -.025em;
}
.backend h1 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.backend h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
.backend h3 { font-size: clamp(1.05rem, 1.8vw, 1.3rem); letter-spacing: -.015em; }
.backend .eyebrow {
    font-family: var(--body);
    font-size: .7rem;
    letter-spacing: .16em;
}
.backend .brand,
.backend .site-nav a,
.backend .nav-button,
.backend .button,
.backend .form-stack legend,
.backend .team-row strong,
.backend th {
    font-family: var(--body);
}
.backend .brand { font-size: .95rem; letter-spacing: .035em; }
.backend .site-nav a,
.backend .nav-button { font-size: .78rem; letter-spacing: .055em; }
.backend .button { font-size: .78rem; letter-spacing: .045em; }
.backend .form-stack legend { font-size: 1.1rem; letter-spacing: -.01em; }
.backend .stat-card strong { font-family: var(--body); font-size: 2.35rem; font-weight: 700; letter-spacing: -.04em; }
.backend .team-row strong { font-size: 1rem; letter-spacing: -.01em; }
.backend .page-heading { margin-bottom: 1.5rem; }

.backend-heading {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: clamp(1.65rem, 3.5vw, 2.5rem);
    overflow: hidden;
    border: 1px solid rgba(123,179,223,.24);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 12%, rgba(91,151,214,.2), transparent 34%),
        radial-gradient(circle at 8% 100%, rgba(58,125,195,.1), transparent 30%),
        linear-gradient(140deg, rgba(15,27,47,.99), rgba(7,15,28,.99));
    box-shadow: 0 24px 60px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.035);
}
.backend-heading::before {
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    content: '';
    background: linear-gradient(90deg, transparent 3%, var(--blue-sky) 18%, var(--blue) 50%, transparent 88%);
    box-shadow: 0 0 18px rgba(91,151,214,.35);
}
.backend-heading::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: '';
    opacity: .18;
    pointer-events: none;
    background-image: linear-gradient(rgba(123,179,223,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(123,179,223,.055) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(90deg, transparent, #000 55%, #000);
}
.backend-heading__watermark {
    position: absolute;
    right: clamp(1rem, 4vw, 3rem);
    bottom: -2rem;
    z-index: -1;
    color: rgba(165,206,235,.055);
    font-family: var(--display);
    font-size: clamp(7rem, 15vw, 12rem);
    letter-spacing: -.04em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}
.backend-heading__content { position: relative; z-index: 1; max-width: 760px; }
.backend .backend-heading .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .65rem;
    color: #a5ceeb;
}
.backend .backend-heading .eyebrow::before {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border: 1px solid rgba(202,225,243,.7);
    content: '';
    background: rgba(91,151,214,.45);
    box-shadow: 0 0 10px rgba(123,179,223,.45);
    transform: rotate(45deg);
}
.backend .backend-heading h1 {
    width: fit-content;
    max-width: 100%;
    margin: 0;
    color: #f8fcfe;
    background: linear-gradient(110deg, #fff 10%, #e1edf8 65%, #a5ceeb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 650;
    letter-spacing: -.045em;
    line-height: 1.08;
    text-wrap: balance;
}
.backend-heading__title-rule {
    width: clamp(54px, 8vw, 84px);
    height: 3px;
    display: block;
    margin: 1rem 0 .9rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #7bb3df, #477ec9 72%, transparent);
    box-shadow: 0 0 12px rgba(91,151,214,.35);
}
.backend-heading__content > p:last-child {
    max-width: 700px;
    margin: 0;
    color: #aebdd0;
    font-size: .88rem;
    line-height: 1.7;
}
.backend-heading__badge {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 32px;
    padding: .4rem .75rem;
    border: 1px solid rgba(123,179,223,.34);
    border-radius: 999px;
    color: #e1edf8;
    background: rgba(15,34,61,.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    backdrop-filter: blur(6px);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .09em;
    line-height: 1;
    text-transform: uppercase;
}
.backend-heading__badge::before { width: 6px; height: 6px; border-radius: 50%; content: ''; background: #7bb3df; box-shadow: 0 0 9px rgba(123,179,223,.7); }
.backend .section-heading {
    position: relative;
    min-height: 76px;
    align-items: center;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem 1rem 1.35rem;
    overflow: hidden;
    border: 1px solid rgba(123,179,223,.17);
    border-radius: 14px;
    background: linear-gradient(100deg, rgba(13,28,49,.88), rgba(8,17,30,.58));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.backend .section-heading::before { position: absolute; top: 14px; bottom: 14px; left: 0; width: 3px; border-radius: 0 4px 4px 0; content: ''; background: linear-gradient(180deg, #7bb3df, #477ec9); box-shadow: 0 0 10px rgba(91,151,214,.35); }
.backend .section-heading h2 { margin-bottom: 0; font-size: clamp(1.2rem, 2.2vw, 1.55rem); letter-spacing: -.025em; }
.backend .section-heading .eyebrow { margin-bottom: .22rem; color: #92b8d7; font-size: .62rem; }
.backend .chat-page-heading h1 {
    width: fit-content;
    color: #f8fcfe;
    background: linear-gradient(110deg, #fff, #e1edf8 70%, #a5ceeb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 650;
    letter-spacing: -.04em;
}

/* Coach operations */
.coach-operations { padding-top: clamp(2rem, 5vw, 4rem); }
.operations-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.operations-stat {
    position: relative;
    min-width: 0;
    padding: 1.15rem 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(123,179,223,.18);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(13,25,45,.96), rgba(8,16,30,.96));
}
.operations-stat::after {
    position: absolute;
    top: -35px;
    right: -25px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    content: '';
    background: rgba(71,126,201,.1);
}
.operations-stat > span { display: block; color: #8fa0b8; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.operations-stat strong { display: block; margin: .3rem 0 .1rem; color: #f6f9fd; font-size: 2rem; line-height: 1; letter-spacing: -.04em; }
.operations-stat small { color: #6f8098; font-size: .68rem; }
.operations-section + .operations-section { margin-top: clamp(3rem, 6vw, 5rem); }
.backend .operations-section__heading { align-items: flex-end; margin: 0 0 1.25rem; }
.operations-section__heading p:last-child { max-width: 650px; margin: .4rem 0 0; color: #8e9db2; font-size: .82rem; }
.operations-count {
    flex: 0 0 auto;
    padding: .45rem .75rem;
    border: 1px solid rgba(123,179,223,.24);
    border-radius: 999px;
    color: #cae1f3;
    background: rgba(71,126,201,.1);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.operations-create-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.operations-action-card {
    position: relative;
    align-content: start;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    overflow: hidden;
    background: radial-gradient(circle at 100% 0%, rgba(71,126,201,.12), transparent 40%), var(--panel);
}
.operations-action-card__header { display: flex; align-items: center; flex-wrap: wrap; row-gap: .5rem; gap: .85rem; padding-bottom: .9rem; border-bottom: 1px solid rgba(123,179,223,.13); list-style: none; cursor: pointer; }
.operations-action-card__header::-webkit-details-marker { display: none; }
.operations-action-card:not([open]) > .operations-action-card__header { border-bottom: none; }
.operations-action-card__header h3 { margin: 0; }
.operations-action-card__header .eyebrow { margin-bottom: .15rem; }
.operations-action-card__header .operations-team-card__toggle { margin-left: auto; }
.operations-action-card__body { padding-top: 1.1rem; }
.operations-step {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(123,179,223,.35);
    border-radius: 11px;
    color: #cae1f3;
    background: rgba(71,126,201,.14);
    font-size: .68rem;
    font-weight: 800;
}
.operations-action-card .button { width: max-content; }
.operations-team-list { display: grid; gap: 1.15rem; }
.operations-team-card { padding: 0; overflow: hidden; }
.operations-team-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid rgba(123,179,223,.14);
    background: radial-gradient(circle at 100% 0%, rgba(91,151,214,.13), transparent 45%);
}
.operations-team-card__identity { min-width: 0; display: flex; align-items: center; gap: 1rem; }
.operations-team-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(123,179,223,.3);
    border-radius: 12px;
    color: #e1edf8;
    background: linear-gradient(145deg, rgba(71,126,201,.3), rgba(55,88,150,.12));
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
}
.operations-team-card__identity h3 { margin: 0; font-size: 1.35rem; }
.operations-team-card__identity h3 a { color: #f3f8fc; text-decoration: none; }
.operations-team-card__identity h3 a:hover { color: var(--blue-sky); }
.operations-team-card__identity > div > p:last-child { margin: .25rem 0 0; color: #8190a5; font-size: .75rem; }
.operations-team-card__badges { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .45rem; }
.operations-team-card__header { list-style: none; cursor: pointer; }
.operations-team-card__header::-webkit-details-marker { display: none; }
.operations-team-card:not([open]) > .operations-team-card__header { border-bottom: none; }
.operations-team-card__toggle {
    position: relative;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border: 1px solid rgba(123,179,223,.25);
    border-radius: 8px;
}
.operations-team-card__toggle::before,
.operations-team-card__toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: #91b3d5;
    transform: translate(-50%, -50%);
}
.operations-team-card__toggle::before { width: 11px; height: 2px; }
.operations-team-card__toggle::after { width: 2px; height: 11px; transition: transform .15s ease; }
.operations-team-card[open] .operations-team-card__toggle::after { transform: translate(-50%, -50%) rotate(90deg) scaleX(0); }
.operations-team-card__body { animation: operations-team-card-reveal .15s ease; }
@keyframes operations-team-card-reveal { from { opacity: 0; } to { opacity: 1; } }
.status-pill--inactive { color: #cbd5e1; border-color: rgba(148,163,184,.25); background: rgba(71,85,105,.25); }
.operations-chip { padding: .3rem .65rem; border: 1px solid rgba(123,179,223,.18); border-radius: 999px; color: #9fb0c7; background: rgba(15,29,50,.8); font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.operations-disclosure { border-bottom: 1px solid rgba(123,179,223,.12); background: rgba(7,15,28,.42); }
.operations-disclosure summary {
    position: relative;
    display: grid;
    gap: .12rem;
    padding: .9rem 3rem .9rem 1.5rem;
    list-style: none;
    cursor: pointer;
}
.operations-disclosure summary::-webkit-details-marker { display: none; }
.operations-disclosure summary::after {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    color: #91b3d5;
    content: '+';
    font-size: 1.25rem;
    line-height: 1;
    transform: translateY(-50%);
}
.operations-disclosure[open] summary::after { content: '−'; }
.operations-disclosure summary span { color: #e1eaf2; font-size: .78rem; font-weight: 700; }
.operations-disclosure summary small { color: #6f8097; font-size: .64rem; }
.operations-disclosure__body { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid rgba(123,179,223,.1); }
.operations-disclosure__body .button { width: max-content; }
.operations-disclosure--danger { border-top: 1px solid rgba(248,113,113,.12); border-bottom: 0; background: rgba(69,10,10,.08); }
.operations-disclosure--danger summary span { color: #fca5a5; }
.operations-disclosure--danger summary::after { color: #f87171; }
.operations-disclosure--danger .operations-disclosure__body > p { margin: 0; color: #d9a4a4; font-size: .75rem; }
.operations-workspace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid rgba(123,179,223,.12); }
.operations-work-card { min-width: 0; padding: 1.5rem; }
.operations-work-card + .operations-work-card { border-left: 1px solid rgba(123,179,223,.12); }
.operations-work-card > header { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.operations-work-card h4, .operations-roster h4 { margin: 0; color: #eef4fb; font-size: .95rem; }
.operations-work-card .eyebrow, .operations-roster .eyebrow { margin-bottom: .12rem; }
.operations-work-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 9px;
    color: #cae1f3;
    background: rgba(71,126,201,.15);
    font-size: .65rem;
    font-weight: 800;
}
.operations-staff-list { display: grid; gap: .5rem; }
.operations-person { display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; border: 1px solid rgba(123,179,223,.1); border-radius: 9px; background: #091321; }
.operations-person > span { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #e1edf8; background: #17315a; font-size: .56rem; font-weight: 800; }
.operations-person > div { min-width: 0; display: grid; }
.operations-person strong { overflow: hidden; color: #e9f0f7; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.operations-person small { color: #718299; font-size: .62rem; }
.operations-empty-copy { margin: 0; color: #73839a; font-size: .74rem; }
.operations-roster-hint { margin: .75rem 0 0; color: #73839a; font-size: .68rem; line-height: 1.5; }
.operations-compact-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(123,179,223,.12); }
.operations-compact-form .button { width: max-content; }
.operations-parent-content { padding: 1.4rem 1.5rem 1.5rem; border-bottom: 1px solid rgba(123,179,223,.12); background: rgba(7,15,28,.34); }
.operations-parent-content__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.operations-parent-content__heading h4 { margin: 0; color: #f0f7fc; font-size: 1rem; }
.operations-parent-content__heading small { display: block; margin-top: .3rem; color: #7f90a7; font-size: .68rem; }
.operations-parent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.operations-parent-card { min-width: 0; overflow: hidden; border: 1px solid rgba(123,179,223,.13); border-radius: 12px; background: #091321; }
.operations-parent-card > header { display: flex; align-items: center; gap: .7rem; padding: 1rem; border-bottom: 1px solid rgba(123,179,223,.11); }
.operations-parent-card > header h4 { margin: 0; color: #eef4fb; font-size: .95rem; }
.operations-parent-card > header .eyebrow { margin-bottom: .1rem; }
.operations-content-create { border-bottom: 1px solid rgba(123,179,223,.1); background: rgba(58,125,195,.05); }
.operations-content-create > summary { padding: .8rem 1rem; color: #a5ceeb; cursor: pointer; font-size: .72rem; font-weight: 800; list-style: none; }
.operations-content-create > summary::-webkit-details-marker, .operations-content-item > summary::-webkit-details-marker { display: none; }
.operations-content-create > summary::before { margin-right: .45rem; content: '+'; }
.operations-content-create[open] > summary::before { content: '−'; }
.operations-content-form { padding: 0 1rem 1rem; }
.operations-content-form .button { width: max-content; }
.operations-content-list { display: grid; gap: .5rem; padding: .75rem; }
.operations-content-item { overflow: hidden; border: 1px solid rgba(123,179,223,.1); border-radius: 9px; background: rgba(5,12,23,.72); }
.operations-content-item > summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .8rem; cursor: pointer; list-style: none; }
.operations-content-item > summary > span:first-child { min-width: 0; display: grid; }
.operations-content-item > summary strong { overflow: hidden; color: #e8eff5; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.operations-content-item > summary small { color: #718198; font-size: .6rem; }
.operations-content-action { flex: 0 0 auto; color: #7bb3df; font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.operations-content-item__body { display: grid; gap: .7rem; padding: 1rem; border-top: 1px solid rgba(123,179,223,.1); }
.operations-content-item__body .operations-content-form { padding: 0; }
.operations-content-item__body > form:last-child { margin: 0; padding-top: .65rem; border-top: 1px solid rgba(248,113,113,.12); }
.operations-roster { padding: 1.35rem 1.5rem 1.5rem; }
.operations-roster > header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-bottom: .8rem; }
.operations-roster-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.operations-roster-row { min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .7rem; border: 1px solid rgba(123,179,223,.12); border-radius: 10px; background: #091321; }
.operations-jersey { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: #e1edf8; background: rgba(71,126,201,.16); font-size: .72rem; font-weight: 800; }
.operations-roster-row > div { min-width: 0; display: grid; }
.operations-roster-row strong { overflow: hidden; color: #eaf1f8; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.operations-roster-row small { color: #718198; font-size: .62rem; }
.operations-roster-row form { margin: 0; }
.operations-empty-roster { grid-column: 1 / -1; display: flex; align-items: center; gap: .75rem; padding: 1rem; border: 1px dashed rgba(123,179,223,.16); border-radius: 10px; color: #718198; }
.operations-empty-roster span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #a5ceeb; background: rgba(71,126,201,.12); font-size: .55rem; font-weight: 800; }
.operations-empty-roster p { margin: 0; font-size: .72rem; }
.operations-empty-page { display: flex; align-items: center; gap: 1rem; }
.operations-empty-page > span { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: #cae1f3; background: rgba(71,126,201,.14); font-size: .68rem; font-weight: 800; }
.operations-empty-page h3 { margin: 0; }
.operations-empty-page p { margin: .25rem 0 0; color: #8190a5; }
.operations-season-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.operations-season-card { padding: 0; overflow: hidden; }
.operations-season-card__header { display: flex; align-items: flex-start; flex-wrap: wrap; row-gap: .5rem; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.35rem; list-style: none; cursor: pointer; }
.operations-season-card__header::-webkit-details-marker { display: none; }
.operations-season-card:not([open]) > .operations-season-card__header { border-bottom: none; }
.operations-season-card__header h3 { margin: 0; }
.operations-season-card__header small { color: #8190a5; font-size: .68rem; }
.operations-season-card__badges { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }
.operations-season-card__body { animation: operations-team-card-reveal .15s ease; }

@media (max-width: 900px) {
    .operations-create-grid, .operations-workspace, .operations-season-grid, .operations-parent-grid { grid-template-columns: 1fr; }
    .operations-work-card + .operations-work-card { border-top: 1px solid rgba(123,179,223,.12); border-left: 0; }
}

@media (max-width: 620px) {
    .coach-operations { padding-top: 1rem; }
    .operations-overview { grid-template-columns: 1fr; gap: .55rem; }
    .operations-stat { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .15rem 1rem; padding: .85rem 1rem; }
    .operations-stat strong { grid-row: 1 / 3; grid-column: 2; margin: 0; font-size: 1.55rem; }
    .operations-team-card__header { align-items: flex-start; flex-direction: column; padding: 1rem; }
    .operations-team-card__identity { align-items: flex-start; }
    .operations-team-card__badges { justify-content: flex-start; }
    .operations-disclosure summary { padding-left: 1rem; }
    .operations-disclosure__body, .operations-work-card, .operations-roster, .operations-parent-content { padding: 1rem; }
    .operations-roster-list { grid-template-columns: 1fr; }
    .operations-roster-row { grid-template-columns: 38px minmax(0, 1fr); }
    .operations-roster-row form { grid-column: 1 / -1; }
    .operations-roster-row .button { width: 100%; }
    .operations-action-card .button, .operations-compact-form .button, .operations-disclosure__body .button, .operations-content-form .button { width: 100%; }
    .operations-section__heading { align-items: flex-start !important; flex-direction: column; }
}

/* Private messaging */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.chat-page { padding: clamp(1.5rem, 4vw, 3rem) 0; }
.chat-shell { width: min(1320px, calc(100% - 2rem)); }
.chat-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}
.backend .chat-page-heading h1 { margin-bottom: .3rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.chat-page-heading p:last-child { max-width: 680px; margin: 0; color: #91a0b6; }
.chat-page-heading--compact { align-items: center; }
.chat-page-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .65rem; }
.chat-private-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .75rem;
    border: 1px solid rgba(123,179,223,.28);
    border-radius: 999px;
    color: #cae1f3;
    background: rgba(71,126,201,.1);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.chat-private-badge svg,
.chat-thread-header__secure svg,
.chat-mobile-back svg,
.chat-empty-state__icon svg,
.chat-send svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.chat-private-badge svg { width: 15px; height: 15px; }
.chat-window {
    display: grid;
    grid-template-columns: minmax(285px, 340px) minmax(0, 1fr);
    height: min(750px, calc(100vh - 210px));
    min-height: 590px;
    overflow: hidden;
    border: 1px solid rgba(123,179,223,.24);
    border-radius: 18px;
    background: #0b1322;
    box-shadow: 0 28px 80px rgba(0,0,0,.38), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.chat-sidebar {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(123,179,223,.16);
    background: linear-gradient(180deg, #0d1729, #0a1220);
}
.chat-sidebar__header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(123,179,223,.14);
}
.chat-sidebar__header > div { display: grid; gap: .05rem; }
.chat-sidebar__header strong { color: var(--white); font-size: 1rem; }
.chat-sidebar__label { color: var(--blue-sky); font-size: .62rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.chat-count {
    min-width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(123,179,223,.22);
    border-radius: 50%;
    color: #cae1f3;
    background: rgba(71,126,201,.12);
    font-size: .7rem;
    font-weight: 700;
}
.chat-conversation-list { min-height: 0; overflow-y: auto; scrollbar-color: #2a4672 transparent; scrollbar-width: thin; }
.chat-conversation {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 8px;
    align-items: center;
    gap: .75rem;
    min-height: 92px;
    padding: .85rem .95rem;
    border-bottom: 1px solid rgba(123,179,223,.09);
    color: var(--text);
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease;
}
.chat-conversation:hover { background: rgba(91,151,214,.08); }
.chat-conversation:focus-visible { outline: 2px solid var(--blue-sky); outline-offset: -2px; }
.chat-conversation.is-active {
    border-left: 3px solid var(--blue-sky);
    background: linear-gradient(90deg, rgba(71,126,201,.2), rgba(71,126,201,.07));
}
.chat-conversation.is-unread strong { color: #fff; }
.chat-avatar {
    --chat-avatar-hue: 215;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid hsla(var(--chat-avatar-hue), 80%, 72%, .38);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, hsl(var(--chat-avatar-hue), 62%, 48%), hsl(var(--chat-avatar-hue), 70%, 28%));
    box-shadow: 0 7px 18px rgba(0,0,0,.24);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .02em;
}
.chat-avatar--large { width: 46px; height: 46px; }
.chat-conversation__body { min-width: 0; display: grid; gap: .15rem; }
.chat-conversation__topline { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.chat-conversation__topline strong { min-width: 0; overflow: hidden; color: #eef4fb; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.chat-conversation__topline time { flex: 0 0 auto; color: #708099; font-size: .58rem; }
.chat-conversation__people,
.chat-conversation__preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-conversation__people { color: #91b3d5; font-size: .65rem; }
.chat-conversation__preview { color: #7e8da3; font-size: .7rem; }
.chat-unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-sky); box-shadow: 0 0 10px rgba(123,179,223,.8); }
.chat-sidebar-empty { display: grid; justify-items: center; gap: .4rem; padding: 3rem 1.25rem; color: #7f8da2; text-align: center; }
.chat-sidebar-empty__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #cae1f3; background: rgba(71,126,201,.16); font-size: .72rem; font-weight: 800; }
.chat-sidebar-empty strong { color: #e1ebf3; }
.chat-sidebar-empty p { margin: 0; font-size: .78rem; }
.chat-pagination { padding: .65rem .8rem; border-top: 1px solid rgba(123,179,223,.12); }
.chat-pagination nav > div:first-child { display: none; }
.chat-pagination nav > div:last-child { display: flex; justify-content: center; }
.chat-pagination nav p { display: none; }
.chat-pagination nav span[aria-current="page"] span,
.chat-pagination nav a { display: inline-flex; min-width: 30px; min-height: 30px; align-items: center; justify-content: center; padding: .25rem .45rem; border-color: rgba(123,179,223,.18) !important; color: #bfccd7 !important; background: #0a1220 !important; text-decoration: none; }
.chat-pagination nav span[aria-current="page"] span { color: #fff !important; background: var(--blue) !important; }
.chat-stage { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #0a101b; }
.chat-stage--room { grid-template-rows: auto auto minmax(0, 1fr) auto; }
.chat-stage--empty { place-items: center; grid-template-rows: 1fr; background: radial-gradient(circle at center, rgba(71,126,201,.12), transparent 48%), #0a101b; }
.chat-empty-state { width: min(460px, calc(100% - 2rem)); display: grid; justify-items: center; text-align: center; }
.chat-empty-state__icon { width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 1.25rem; border: 1px solid rgba(123,179,223,.28); border-radius: 50%; color: var(--blue-sky); background: rgba(71,126,201,.12); box-shadow: 0 0 42px rgba(71,126,201,.15); }
.chat-empty-state__icon svg { width: 34px; height: 34px; }
.backend .chat-empty-state h2 { margin-bottom: .65rem; font-size: 1.45rem; }
.chat-empty-state p { margin: 0 0 1.5rem; color: #8291a7; }
.chat-thread-header {
    min-width: 0;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid rgba(123,179,223,.14);
    background: rgba(13,23,41,.94);
}
.chat-thread-header__copy { min-width: 0; display: grid; flex: 1; }
.chat-thread-header__copy strong { overflow: hidden; color: #fff; font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
.chat-thread-header__copy span { overflow: hidden; color: #7f8fa6; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.chat-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex: 0 0 auto;
    color: #86efac;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.chat-live-indicator i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52,211,153,.55);
    animation: chat-live-pulse 2s infinite;
}
.chat-live-indicator.is-reconnecting { color: #fbbf24; }
.chat-live-indicator.is-reconnecting i { background: #f59e0b; animation: none; }
@keyframes chat-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(52,211,153,.5); }
    70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); }
    100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.chat-thread-header__secure { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(52,211,153,.2); border-radius: 50%; color: #6ee7b7; background: rgba(6,78,59,.18); }
.chat-thread-header__secure svg { width: 16px; height: 16px; }
.chat-room-strip {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem 1.25rem;
    border-bottom: 1px solid rgba(123,179,223,.12);
    color: #7f8fa6;
    background: #0c1525;
    font-size: .66rem;
}
.chat-room-strip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-room-strip strong { color: #bfccd7; }
.chat-room-members { flex: 0 0 auto; }
.chat-room-members summary { color: var(--blue-sky); cursor: pointer; font-weight: 700; }
.chat-room-members[open] { width: min(520px, calc(100vw - 2rem)); }
.chat-room-members__form {
    position: absolute;
    top: calc(100% - 1px);
    right: 1rem;
    width: min(520px, calc(100% - 2rem));
    display: grid;
    gap: .8rem;
    padding: 1rem;
    border: 1px solid rgba(123,179,223,.24);
    border-radius: 0 0 12px 12px;
    background: #0d1729;
    box-shadow: 0 22px 50px rgba(0,0,0,.45);
}
.chat-room-members__form p { margin: 0; color: #8998ad; font-size: .72rem; }
.chat-mobile-back { display: none; width: 36px; height: 36px; place-items: center; flex: 0 0 auto; border: 1px solid rgba(123,179,223,.2); border-radius: 50%; color: #cae1f3; }
.chat-mobile-back svg { width: 20px; height: 20px; }
.chat-messages {
    min-height: 0;
    overflow-y: auto;
    padding: 1.5rem clamp(1rem, 3vw, 2rem);
    background:
        radial-gradient(circle at 100% 0%, rgba(71,126,201,.08), transparent 32%),
        linear-gradient(rgba(123,179,223,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(123,179,223,.018) 1px, transparent 1px),
        #090f1a;
    background-size: auto, 32px 32px, 32px 32px, auto;
    scrollbar-color: #2a4672 transparent;
    scrollbar-width: thin;
    overscroll-behavior: contain;
}
.chat-date-divider { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.35rem; color: #65758d; font-size: .62rem; text-align: center; }
.chat-date-divider::before,
.chat-date-divider::after { height: 1px; flex: 1; content: ''; background: rgba(123,179,223,.12); }
.chat-date-divider span { flex: 0 0 auto; }
.chat-message { display: flex; align-items: flex-end; gap: .6rem; margin-bottom: 1rem; }
.chat-message--new { animation: chat-message-arrive .2s ease-out; }
@keyframes chat-message-arrive {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-message--own { justify-content: flex-end; }
.chat-message__avatar { width: 32px; height: 32px; font-size: .58rem; }
.chat-message__content { max-width: min(72%, 660px); display: grid; min-width: 0; }
.chat-message--own .chat-message__content { justify-items: end; }
.chat-message__sender { margin: 0 .35rem .25rem; color: #91b3d5; font-size: .62rem; font-weight: 600; }
.chat-bubble { padding: .72rem .9rem; border-radius: 15px; box-shadow: 0 9px 22px rgba(0,0,0,.18); overflow-wrap: anywhere; }
.chat-bubble p { margin: 0; color: #ecf3f8; font-size: .84rem; line-height: 1.5; white-space: pre-wrap; }
.chat-bubble--received { border: 1px solid rgba(148,163,184,.12); border-bottom-left-radius: 4px; background: #172235; }
.chat-bubble--own { border: 1px solid rgba(165,206,235,.18); border-bottom-right-radius: 4px; background: linear-gradient(135deg, #356eab, #498ec7); }
.chat-message time { margin: .25rem .35rem 0; color: #627188; font-size: .56rem; }
.chat-message--own time { color: #87a8c7; }
.chat-message__meta { display: flex; align-items: center; gap: .55rem; margin: .25rem .35rem 0; }
.chat-message__meta time { margin: 0; }
.chat-report-link { color: #9ba9bb; font-size: .56rem; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.chat-report-link:hover, .chat-report-link:focus-visible { color: #fca5a5; }
.chat-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: .75rem;
    padding: .85rem 1rem;
    border-top: 1px solid rgba(123,179,223,.14);
    background: #0d1729;
}
.chat-composer__field { min-width: 0; display: grid; gap: .28rem; }
.chat-composer__hint { padding-left: .35rem; color: #64748b; font-size: .6rem; line-height: 1.2; }
.chat-send-status { color: #93d4e6; }
.chat-send-status.is-error { color: #fca5a5; }
.chat-composer textarea {
    width: 100%;
    min-height: 50px;
    max-height: 144px;
    resize: none;
    padding: .78rem 1rem;
    border: 1px solid #293a59;
    border-radius: 14px;
    outline: none;
    color: #fff;
    background: #08101e;
    line-height: 1.35;
}
.chat-composer textarea::placeholder { color: #65748a; }
.chat-composer textarea:focus { border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(91,151,214,.14); }
.chat-send {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-bright));
    box-shadow: 0 8px 24px rgba(58,125,195,.32);
    cursor: pointer;
}
.chat-send:hover { filter: brightness(1.1); }
.chat-send:disabled { cursor: wait; filter: saturate(.5); opacity: .68; }
.chat-send:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.chat-send svg { width: 21px; height: 21px; }
.message-form-actions { margin: -1rem 0 1rem; }
.message-create-form { gap: 1.3rem; }
.message-privacy-note {
    padding: .9rem 1rem;
    border-left: 3px solid var(--success);
    color: #afbdd0;
    background: rgba(6,78,59,.16);
    font-size: .82rem;
}
.message-privacy-note strong { color: #a7f3d0; }
.chat-member-picker {
    max-height: 340px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    overflow-y: auto;
    padding: .25rem;
    scrollbar-color: #2a4672 transparent;
    scrollbar-width: thin;
}
.chat-member-picker--compact { max-height: 230px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chat-member-option {
    display: flex !important;
    align-items: center !important;
    gap: .7rem !important;
    min-width: 0;
    padding: .7rem .75rem;
    border: 1px solid rgba(123,179,223,.15);
    border-radius: 10px;
    background: #08101e;
    cursor: pointer;
}
.chat-member-option:has(input:checked) { border-color: rgba(123,179,223,.5); background: rgba(71,126,201,.14); }
.chat-member-option input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--blue); }
.chat-member-option span { min-width: 0; display: grid; }
.chat-member-option strong { overflow: hidden; color: #ebf2f8; font-family: var(--body); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.chat-member-option small { color: #73839a; font-size: .62rem; }

/* Message reporting and administrator safety review */
.report-message-page, .moderation-page { background: radial-gradient(circle at 50% 0, rgba(71,126,201,.09), transparent 34%); }
.report-message-card { display: grid; gap: 1.4rem; }
.report-message-context { padding: 1rem; border: 1px solid rgba(123,179,223,.15); border-radius: 11px; background: #08111f; }
.report-message-context > span { display: block; color: var(--blue-sky); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.report-message-context blockquote { margin: .75rem 0; padding-left: 1rem; border-left: 3px solid rgba(123,179,223,.45); color: #e8eff6; font-size: .86rem; line-height: 1.6; overflow-wrap: anywhere; }
.report-message-context small { color: #7d8ca1; font-size: .65rem; }
.report-message-actions { display: flex; justify-content: flex-end; gap: .65rem; }
.moderation-review-shell { max-width: 1080px; }
.moderation-notice { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .8rem 1rem; margin: 1rem 0 1.25rem; padding: .9rem 1rem; border: 1px solid rgba(245,158,11,.27); border-radius: 11px; color: #b9c5d4; background: rgba(120,53,15,.13); font-size: .72rem; line-height: 1.55; }
.moderation-notice strong { color: #fcd34d; white-space: nowrap; }
.moderation-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-bottom: 1rem; }
.moderation-toolbar label:first-child { min-width: min(100%, 280px); flex: 1; }
.moderation-toolbar input, .moderation-toolbar select { width: 100%; min-height: 42px; padding: .6rem .75rem; border: 1px solid #293a59; border-radius: 9px; color: #eef5fb; background: #08101e; }
.moderation-table td { color: #aebacc; font-size: .72rem; vertical-align: middle; }
.moderation-table td:first-child { min-width: 220px; }
.moderation-table td:first-child strong, .moderation-table td:first-child small { display: block; }
.moderation-table td:first-child strong { color: #eff6fb; font-size: .78rem; }
.moderation-table td:first-child small { margin-top: .2rem; color: #7c8ca2; font-size: .62rem; }
.moderation-row--reported { background: rgba(120,53,15,.08); }
.moderation-table__action { text-align: right; }
.moderation-empty { padding: 2rem !important; color: #7d8da2 !important; text-align: center !important; }
.moderation-status { display: inline-flex; width: max-content; padding: .25rem .5rem; border: 1px solid rgba(123,179,223,.18); border-radius: 999px; color: #94a3b8; background: rgba(71,126,201,.08); font-size: .56rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.moderation-status--open, .moderation-status--under_review { border-color: rgba(251,191,36,.3); color: #fde68a; background: rgba(120,53,15,.2); }
.moderation-status--resolved, .moderation-status--complete { border-color: rgba(52,211,153,.28); color: #a7f3d0; background: rgba(6,78,59,.22); }
.moderation-status--dismissed { border-color: rgba(148,163,184,.22); color: #cbd5e1; background: rgba(51,65,85,.25); }
.moderation-review-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; color: #71839a; font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.moderation-review-actions a { color: #b7cee0; text-decoration: none; }
.moderation-participants { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; margin-bottom: 1rem; padding: .8rem 1rem; border: 1px solid rgba(123,179,223,.14); border-radius: 10px; color: #9eadc0; background: #0a1423; font-size: .7rem; }
.moderation-participants strong { color: #dce7f0; }
.moderation-transcript { display: grid; gap: .85rem; }
.moderation-message { padding: 1rem 1.1rem; border: 1px solid rgba(123,179,223,.15); border-radius: 12px; background: #0b1525; box-shadow: 0 10px 28px rgba(0,0,0,.15); }
.moderation-message > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: .65rem; border-bottom: 1px solid rgba(123,179,223,.1); }
.moderation-message > header > div { display: grid; }
.moderation-message > header strong { color: #f0f6fb; font-size: .78rem; }
.moderation-message > header span, .moderation-message > header time { color: #71839a; font-size: .6rem; }
.moderation-message > p { margin: .85rem 0 0; color: #dce6ef; font-size: .82rem; line-height: 1.65; overflow-wrap: anywhere; }
.moderation-report { margin-top: 1rem; padding: .9rem; border: 1px solid rgba(245,158,11,.27); border-radius: 10px; background: rgba(120,53,15,.1); }
.moderation-report__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.moderation-report__heading > div { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.moderation-report__heading strong { color: #f5e8cf; font-size: .75rem; }
.moderation-report__heading small { color: #998c78; font-size: .59rem; }
.moderation-report__details { margin-top: .75rem; padding: .7rem .8rem; border-left: 3px solid rgba(245,158,11,.42); background: rgba(8,16,30,.48); }
.moderation-report__details strong { color: #d8c7a6; font-size: .62rem; text-transform: uppercase; }
.moderation-report__details p { margin: .3rem 0 0; color: #d4dbe4; font-size: .72rem; line-height: 1.55; overflow-wrap: anywhere; }
.moderation-report__form { display: grid; gap: .7rem; margin-top: .85rem; }
.moderation-report__form label { display: grid; gap: .35rem; color: #b6c2d1; font-size: .65rem; font-weight: 700; }
.moderation-report__form select, .moderation-report__form textarea { width: 100%; padding: .65rem .75rem; border: 1px solid #384259; border-radius: 8px; color: #edf4f9; background: #08101e; }
.moderation-report__form textarea { resize: vertical; }
.moderation-report__footer { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.moderation-report__footer small { color: #837c72; font-size: .59rem; }

@media (max-width: 760px) {
    .moderation-notice { grid-template-columns: 1fr; }
    .moderation-notice strong { white-space: normal; }
    .moderation-table-card { overflow: visible; border: 0; background: transparent; }
    .moderation-table, .moderation-table tbody { display: block; }
    .moderation-table thead { display: none; }
    .moderation-table tr { display: grid; gap: .45rem; margin-bottom: .75rem; padding: 1rem; border: 1px solid rgba(123,179,223,.16); border-radius: 12px; background: #0b1627; }
    .moderation-table td { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: .65rem; padding: .2rem 0; border: 0; text-align: left; }
    .moderation-table td::before { color: #71839a; content: attr(data-label); font-size: .56rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
    .moderation-table td:first-child { min-width: 0; }
    .moderation-table__action { display: block !important; margin-top: .4rem; }
    .moderation-table__action::before { display: none; }
    .moderation-table__action .button { width: 100%; }
    .moderation-report__heading, .moderation-report__footer { align-items: flex-start; flex-direction: column; }
    .moderation-report__footer .button { width: 100%; }
}

@media (max-width: 520px) {
    .report-message-actions, .moderation-toolbar { align-items: stretch; flex-direction: column; }
    .report-message-actions .button, .moderation-toolbar .button, .moderation-toolbar label { width: 100%; }
    .moderation-review-actions, .moderation-message > header { align-items: flex-start; flex-direction: column; }
    .moderation-participants { grid-template-columns: 1fr; }
}

/* Secure team documents */
.document-center { padding-top: clamp(2rem, 5vw, 4rem); }
.document-parent-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(123,179,223,.3);
    border-radius: 14px;
    background: radial-gradient(circle at 100% 0%, rgba(71,126,201,.2), transparent 48%), #0a1526;
    box-shadow: 0 15px 40px rgba(2,8,23,.22);
}
.document-parent-action__copy { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.document-parent-action__step {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(123,179,223,.35);
    border-radius: 50%;
    color: #cae1f3;
    background: rgba(71,126,201,.18);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .08em;
}
.backend .document-parent-action h2 { margin: 0; font-size: 1.25rem; }
.document-parent-action p:last-child { margin: .25rem 0 0; color: #9eacc0; font-size: .8rem; }
.document-parent-action .button { flex: 0 0 auto; }
.document-parent-action .button:disabled { opacity: .48; cursor: not-allowed; }
.document-parent-action--form { display: block; }
.document-direct-upload {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(123,179,223,.18);
}
.document-direct-upload__wide { grid-column: 1 / -1; }
.document-direct-upload textarea { min-height: 72px; }
.document-direct-upload .button { width: max-content; }
.document-coach-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.document-coach-picker legend { margin-bottom: .5rem; color: #e1eaf2; font-size: .76rem; font-weight: 700; }
.document-coach-picker legend small { margin-left: .35rem; color: #77879d; font-size: .62rem; font-weight: 500; }
.document-coach-picker__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.document-coach-picker__grid label {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
    padding: .75rem;
    border: 1px solid rgba(123,179,223,.16);
    border-radius: 9px;
    background: #081221;
    cursor: pointer;
}
.document-coach-picker__grid label:has(input:checked) { border-color: rgba(123,179,223,.55); background: rgba(71,126,201,.16); }
.document-coach-picker__grid input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--blue); }
.document-coach-picker__grid span { overflow: hidden; color: #e1eaf2; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.document-parent-action__unavailable { margin: 1rem 0 0; color: #fcd34d; }
.document-direct-library { margin-bottom: 1.25rem; }
.document-team-list { display: grid; gap: 1.25rem; }
.document-team { padding: 0; overflow: hidden; }
.document-team__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: radial-gradient(circle at 100% 0%, rgba(91,151,214,.12), transparent 45%);
}
.backend .document-team__header h2 { margin: 0; font-size: 1.45rem; }
.document-layout { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(0, 1.6fr); }
.document-upload { align-content: start; padding: 1.5rem; border-right: 1px solid var(--border); background: rgba(8,16,30,.5); }
.document-upload h3, .document-library h3 { margin: 0; }
.document-upload textarea { min-height: 90px; }
.document-file-field input[type="file"] { height: auto !important; padding: .55rem; color: #91a1b7; }
.document-file-field input[type="file"]::file-selector-button {
    margin-right: .75rem;
    padding: .55rem .75rem;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: #17315a;
    cursor: pointer;
}
.document-library { min-width: 0; padding: 1.5rem; }
.document-library__heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 1rem; }
.document-list { display: grid; gap: .65rem; }
.document-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem;
    padding: .9rem;
    border: 1px solid rgba(123,179,223,.14);
    border-radius: 11px;
    background: #091322;
}
.document-type {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(123,179,223,.28);
    border-radius: 10px;
    color: #cae1f3;
    background: rgba(71,126,201,.14);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .04em;
}
.document-row__copy { min-width: 0; }
.document-row__copy > strong { display: block; overflow: hidden; color: #f3f8fc; text-overflow: ellipsis; white-space: nowrap; }
.document-row__copy p { margin: .18rem 0; color: #9cabc0; font-size: .76rem; }
.document-row__copy small { display: block; color: #6f7f96; font-size: .64rem; }
.document-row__actions { display: flex; align-items: center; gap: .5rem; }
.document-row__actions form { margin: 0; }
.document-delete {
    padding: .35rem;
    border: 0;
    color: #fca5a5;
    background: none;
    font-size: .68rem;
    cursor: pointer;
}
.document-delete:hover { color: #fecaca; text-decoration: underline; }
.document-empty { display: grid; justify-items: center; padding: 2.5rem 1rem; color: #7c8ba1; text-align: center; }
.document-empty > span { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: .65rem; border-radius: 50%; color: #a5ceeb; background: rgba(71,126,201,.13); font-size: .7rem; font-weight: 800; }
.document-empty strong { color: #dee8f0; }
.document-empty p { margin: .2rem 0 0; font-size: .76rem; }

@media (max-width: 860px) {
    .chat-page { padding: 1rem 0 1.5rem; }
    .chat-shell { width: min(100% - 1rem, 760px); }
    .chat-page-heading { margin-bottom: .8rem; padding-inline: .25rem; }
    .chat-page-heading p:last-child { display: none; }
    .chat-window { grid-template-columns: 1fr; height: calc(100vh - 170px); min-height: 560px; border-radius: 14px; }
    .chat-window--index .chat-stage { display: none; }
    .chat-window--thread .chat-sidebar { display: none; }
    .chat-window--thread .chat-stage { display: grid; }
    .chat-sidebar { border-right: 0; }
    .chat-mobile-back { display: grid; }
    .chat-message__content { max-width: 82%; }
    .chat-page-actions { justify-content: flex-start; }
    .chat-page-heading:not(.chat-page-heading--compact) { align-items: flex-start; flex-direction: column; }
    .chat-room-members__form { right: .5rem; width: calc(100% - 1rem); }
    .document-layout { grid-template-columns: 1fr; }
    .document-upload { border-right: 0; border-bottom: 1px solid var(--border); }
    .document-parent-action { align-items: flex-start; flex-direction: column; }
    .document-direct-upload { grid-template-columns: 1fr; }
    .document-direct-upload__wide { grid-column: auto; }
    .document-coach-picker__grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .backend .chat-page-heading h1 { font-size: 1.6rem; }
    .chat-private-badge { padding: .38rem .55rem; }
    .chat-window { height: calc(100vh - 150px); min-height: 520px; border-radius: 12px; }
    .chat-thread-header { min-height: 66px; padding: .65rem .75rem; }
    .chat-avatar--large { width: 38px; height: 38px; }
    .chat-thread-header__secure { display: none; }
    .chat-live-indicator { margin-left: auto; }
    .chat-messages { padding: 1rem .75rem; }
    .chat-message__content { max-width: 87%; }
    .chat-bubble { padding: .65rem .78rem; }
    .chat-bubble p { font-size: .8rem; }
    .chat-composer { padding: .65rem; gap: .55rem; }
    .chat-composer__hint { font-size: .56rem; }
    .chat-send { width: 46px; height: 46px; }
    .chat-room-strip { padding-inline: .75rem; }
    .chat-room-strip > span { display: none; }
    .chat-room-members { width: 100%; }
    .chat-room-members summary { text-align: center; }
    .chat-member-picker, .chat-member-picker--compact { grid-template-columns: 1fr; }
    .document-team__header { align-items: flex-start; flex-direction: column; }
    .document-parent-action__step { width: 48px; height: 48px; }
    .document-parent-action .button { width: 100%; text-align: center; }
    .document-direct-upload .button { width: 100%; }
    .document-upload, .document-library { padding: 1rem; }
    .document-row { grid-template-columns: 42px minmax(0, 1fr); }
    .document-type { width: 42px; height: 42px; }
    .document-row__actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: .35rem; border-top: 1px solid rgba(123,179,223,.1); }
}

@media (max-width: 760px) {
    .site-header__inner { align-items: flex-start; padding-block: .7rem; }
    .site-nav { justify-content: flex-end; flex-wrap: wrap; gap: .65rem 1rem; }
    .site-nav .nav-cta { display: none; }
    .brand span { display: none; }
    .hero { min-height: 680px; }
    .hero__wordmark { margin-bottom: 2rem; }
    .hero__values { font-size: .8rem; }
    .feature-grid, .dashboard-grid, .player-grid, .stat-grid, .form-grid, .admin-grid, .roster-grid, .choice-grid, .inline-form { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .player-photo-editor { grid-template-columns: 1fr; justify-items: start; }
    .site-footer__inner, .page-heading { align-items: flex-start; flex-direction: column; justify-content: center; }
    .site-footer__nav { flex-wrap: wrap; gap: .65rem 1rem; }
    .auth-links { flex-direction: column; }
    .backend-heading { flex-direction: column; gap: 1.25rem; }
    .backend-heading__watermark { right: .75rem; font-size: 7rem; }
    .backend .section-heading:not(.operations-section__heading) { align-items: flex-start; flex-direction: column; }
    .backend .section-heading:not(.operations-section__heading) > .button { width: 100%; }
    .account-actions { align-items: stretch; flex-direction: column; }
    .account-actions > form:not(.compact-form), .account-actions > a, .account-actions .button--impersonate { width: 100%; }
    .impersonation-banner__inner { align-items: stretch; flex-direction: column; }
    .impersonation-banner__inner > div { display: grid; gap: .2rem; }
    .impersonation-banner__label { width: max-content; }
    .impersonation-banner__button { width: 100%; }
    .deletion-summary { grid-template-columns: 1fr; }
    .public-site .site-header__inner { align-items: stretch; flex-direction: column; gap: .65rem; }
    .public-site .site-nav { width: 100%; flex-wrap: nowrap; justify-content: flex-start; gap: 1rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; }
    .public-site .site-nav::-webkit-scrollbar { display: none; }
    .public-site .site-nav a { flex: 0 0 auto; }
    .public-about { grid-template-columns: 1fr; }
    .public-about__image, .public-about__image img { min-height: 340px; }
    .public-stats, .pillars-grid { grid-template-columns: 1fr; }
    .values-code { grid-template-columns: 1fr; }
    .policy-layout { grid-template-columns: 1fr; }
    .policy-summary { position: static; }
}

@media (max-width: 520px) {
    .policy-content > section { grid-template-columns: 1fr; }
    .policy-number { width: 38px; height: 38px; border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__scroll span { animation: none; }
    .chat-live-indicator i, .chat-message--new { animation: none; }
}

/* Parent and coach account sidebar */
.backend--sidebar { overflow-x: hidden; }
.backend--sidebar .site-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 8px 28px rgba(0,0,0,.2); }
.backend--sidebar .site-header__inner { width: calc(100% - 2rem); max-width: none; }
.backend-header-account { display: flex; align-items: center; gap: 1rem; }
.backend-header-account > span { color: #7890ad; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.backend-nav-toggle {
    min-height: 42px;
    display: none;
    align-items: center;
    gap: .6rem;
    padding: .55rem .8rem;
    border: 1px solid rgba(123,179,223,.28);
    border-radius: 9px;
    color: #ebf2f8;
    background: rgba(71,126,201,.13);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    cursor: pointer;
}
.backend-nav-toggle__bars { width: 18px; display: grid; gap: 3px; }
.backend-nav-toggle__bars i { height: 2px; display: block; border-radius: 999px; background: #a5ceeb; transition: transform .2s ease, opacity .2s ease; }
.sidebar-open .backend-nav-toggle__bars i:first-child { transform: translateY(5px) rotate(45deg); }
.sidebar-open .backend-nav-toggle__bars i:nth-child(2) { opacity: 0; }
.sidebar-open .backend-nav-toggle__bars i:last-child { transform: translateY(-5px) rotate(-45deg); }

.backend-app-shell { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
.backend-sidebar {
    position: sticky;
    top: 72px;
    z-index: 20;
    height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid rgba(123,179,223,.18);
    background:
        radial-gradient(circle at 0 0, rgba(71,126,201,.2), transparent 34%),
        linear-gradient(180deg, #0c1729, #08101d 68%, #070d17);
    box-shadow: 14px 0 38px rgba(0,0,0,.18);
    scrollbar-width: thin;
    scrollbar-color: #1d3d6b transparent;
}
.backend-sidebar__account { display: flex; align-items: center; gap: .8rem; padding: 1.25rem 1rem; border-bottom: 1px solid rgba(123,179,223,.14); }
.backend-sidebar__avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(165,206,235,.42);
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, #477ec9, #153b7a);
    box-shadow: 0 8px 22px rgba(71,126,201,.25);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
}
.backend-sidebar__identity { min-width: 0; display: grid; line-height: 1.3; }
.backend-sidebar__identity strong { overflow: hidden; color: #f3f7fb; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.backend-sidebar__identity small { color: #73859e; font-size: .62rem; }
.backend-sidebar__nav { min-height: 0; display: flex; flex: 1; flex-direction: column; gap: .35rem; padding: 1rem; }
.backend-sidebar__link {
    position: relative;
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .75rem;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #9dacc0;
    background: transparent;
    font-family: var(--body);
    font-size: .73rem;
    font-weight: 650;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.backend-sidebar__link::before { position: absolute; top: 9px; bottom: 9px; left: 0; width: 3px; border-radius: 0 4px 4px 0; content: ''; background: transparent; }
.backend-sidebar__link:hover { border-color: rgba(123,179,223,.18); color: #e7eff5; background: rgba(71,126,201,.09); transform: translateX(2px); }
.backend-sidebar__link.is-active { border-color: rgba(123,179,223,.28); color: #fff; background: linear-gradient(90deg, rgba(71,126,201,.23), rgba(71,126,201,.08)); box-shadow: inset 0 0 18px rgba(91,151,214,.06); }
.backend-sidebar__link.is-active::before { background: #7bb3df; box-shadow: 0 0 12px rgba(123,179,223,.55); }
.backend-sidebar__icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(123,179,223,.2);
    border-radius: 8px;
    color: #9fc3e1;
    background: rgba(8,19,35,.72);
    font-size: .5rem;
    font-weight: 800;
    letter-spacing: .04em;
}
.backend-sidebar__link.is-active .backend-sidebar__icon { border-color: rgba(165,206,235,.42); color: #e1edf8; background: rgba(71,126,201,.24); }
.backend-sidebar__link .nav-unread-indicator { margin-left: auto; font-size: 1.15rem; }
.backend-sidebar__signout { margin: auto 0 0; padding-top: 1rem; border-top: 1px solid rgba(123,179,223,.12); }
.backend-sidebar__signout .backend-sidebar__link { color: #8797ab; }
.backend-sidebar__signout .backend-sidebar__link:hover { color: #fecaca; border-color: rgba(248,113,113,.2); background: rgba(127,29,29,.14); }
.backend-sidebar__signout .backend-sidebar__icon { color: #d28e96; border-color: rgba(248,113,113,.18); }
.backend-sidebar-backdrop { display: none; }
.backend-workspace { min-width: 0; min-height: calc(100vh - 72px); display: flex; flex-direction: column; }
.backend-workspace > main { min-width: 0; flex: 1; }

@media (max-width: 900px) {
    .backend--sidebar .site-header__inner { align-items: center; padding-block: 0; }
    .backend-header-account > span { display: none; }
    .backend-nav-toggle { display: inline-flex; }
    .backend-app-shell { grid-template-columns: minmax(0, 1fr); }
    .backend-sidebar {
        position: fixed;
        top: 72px;
        bottom: 0;
        left: 0;
        z-index: 70;
        width: min(300px, 88vw);
        height: auto;
        visibility: hidden;
        box-shadow: 24px 0 55px rgba(0,0,0,.5);
        transform: translateX(-102%);
        transition: transform .22s ease, visibility .22s ease;
    }
    .sidebar-open { overflow: hidden; }
    .sidebar-open .backend-sidebar { visibility: visible; transform: translateX(0); }
    .backend-sidebar-backdrop {
        position: fixed;
        inset: 72px 0 0;
        z-index: 60;
        display: block;
        visibility: hidden;
        padding: 0;
        border: 0;
        opacity: 0;
        background: rgba(2,7,14,.7);
        backdrop-filter: blur(3px);
        transition: opacity .22s ease, visibility .22s ease;
    }
    .sidebar-open .backend-sidebar-backdrop { visibility: visible; opacity: 1; }
    .backend-workspace { min-height: calc(100vh - 72px); }
}

/* Phone layout: horizontally scrollable account navigation at the bottom. */
@media (max-width: 900px) {
    .backend--sidebar { overflow-y: auto; }
    .backend--sidebar .site-header__inner { min-height: 64px; }
    .backend--sidebar .backend-header-account { display: none; }
    .backend .brand span { display: block; }
    .backend .brand { font-size: .85rem; }
    .backend .brand small { font-size: .58rem; }
    .backend--sidebar .shell { width: min(1180px, calc(100% - 1rem)); }
    .backend--sidebar .dashboard,
    .backend--sidebar .form-page { padding: 1rem 0 1.5rem; }
    .backend--sidebar .site-footer { display: none; }
    .backend-workspace { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }

    .backend-sidebar {
        position: fixed;
        inset: auto 0 0;
        z-index: 80;
        width: 100%;
        height: auto;
        visibility: visible;
        overflow: hidden;
        border-top: 1px solid rgba(123,179,223,.3);
        border-right: 0;
        background: linear-gradient(180deg, rgba(12,24,43,.98), rgba(5,12,22,.99));
        box-shadow: 0 -14px 40px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.025);
        transform: none;
        transition: none;
    }
    .backend-sidebar__account { display: none; }
    .backend-sidebar__nav {
        min-height: 0;
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: .35rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding: .45rem .5rem calc(.45rem + env(safe-area-inset-bottom));
        overscroll-behavior-x: contain;
        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .backend-sidebar__nav::-webkit-scrollbar { display: none; }
    .backend-sidebar__link {
        width: auto;
        min-width: 78px;
        min-height: 64px;
        flex: 0 0 auto;
        flex-direction: column;
        justify-content: center;
        gap: .25rem;
        padding: .4rem .55rem;
        border-color: rgba(123,179,223,.1);
        border-radius: 12px;
        background: rgba(7,16,29,.5);
        font-size: .58rem;
        line-height: 1.15;
        text-align: center;
        white-space: nowrap;
        scroll-snap-align: start;
    }
    .backend-sidebar__link::before {
        inset: auto 12px 0;
        width: auto;
        height: 3px;
        border-radius: 4px 4px 0 0;
    }
    .backend-sidebar__link:hover { transform: none; }
    .backend-sidebar__link.is-active { border-color: rgba(123,179,223,.34); background: linear-gradient(180deg, rgba(71,126,201,.22), rgba(71,126,201,.08)); }
    .backend-sidebar__icon { width: 29px; height: 29px; border-radius: 9px; font-size: .47rem; }
    .backend-sidebar__link .nav-unread-indicator { position: absolute; top: 4px; right: 8px; margin: 0; font-size: 1rem; }
    .backend-sidebar__signout { display: flex; flex: 0 0 auto; margin: 0; padding: 0; border: 0; }
    .backend-sidebar__signout .backend-sidebar__link { height: 100%; color: #e9a2aa; border-color: rgba(248,113,113,.16); background: rgba(127,29,29,.1); }
    .backend-sidebar-backdrop { display: none !important; visibility: hidden !important; opacity: 0 !important; }
    .sidebar-open .backend-sidebar { visibility: visible; transform: none; }

    .backend--sidebar .backend-heading { margin-bottom: 1rem; padding: 1.2rem; border-radius: 15px; }
    .backend--sidebar .backend-heading__watermark { right: .5rem; bottom: -1rem; font-size: 6.5rem; }
    .backend--sidebar .backend-heading__title-rule { margin: .75rem 0 .65rem; }
    .backend--sidebar .backend-heading__content > p:last-child { font-size: .78rem; line-height: 1.55; }
    .backend--sidebar .backend-heading__badge { align-self: flex-start; }
    .backend--sidebar .card,
    .backend--sidebar .stat-card { padding: 1rem; }
    .backend--sidebar .actions { gap: .6rem; margin-top: 1rem; }
    .backend--sidebar .actions .button { width: 100%; }
    .backend--sidebar .content-row { grid-template-columns: 1fr; gap: .2rem; }
    .backend--sidebar .compact-form { align-items: stretch; flex-direction: column; }
    .backend--sidebar .compact-form > * { width: 100%; }
    .backend--sidebar .table-card { max-width: 100%; -webkit-overflow-scrolling: touch; }
    .backend--sidebar th,
    .backend--sidebar td { padding: .7rem .75rem; }
    .backend--sidebar .player-card { align-items: flex-start; }
    .backend--sidebar .document-team__header { padding: 1rem; }
    .backend--sidebar .document-upload,
    .backend--sidebar .document-library { padding: 1rem; }
    .backend--sidebar .chat-shell { width: calc(100% - .5rem); }
    .backend--sidebar .chat-page { padding-top: .65rem; }
    .backend--sidebar .chat-window { height: calc(100vh - 225px); height: calc(100dvh - 225px); min-height: 410px; }

    /* Administrator and other authenticated menus use the same bottom-button pattern. */
    .backend:not(.backend--sidebar) { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
    .backend:not(.backend--sidebar) .site-header__inner { min-height: 64px; align-items: center; padding-block: 0; }
    .backend:not(.backend--sidebar) .site-nav {
        position: fixed;
        inset: auto 0 0;
        z-index: 80;
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: .4rem;
        overflow-x: auto;
        padding: .55rem .5rem calc(.55rem + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(123,179,223,.3);
        background: linear-gradient(180deg, rgba(12,24,43,.98), rgba(5,12,22,.99));
        box-shadow: 0 -14px 40px rgba(0,0,0,.42);
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .backend:not(.backend--sidebar) .site-nav::-webkit-scrollbar { display: none; }
    .backend:not(.backend--sidebar) .site-nav a,
    .backend:not(.backend--sidebar) .site-nav .nav-button {
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        padding: .55rem .8rem;
        border: 1px solid rgba(123,179,223,.16);
        border-radius: 11px;
        color: #c1cddd;
        background: rgba(7,16,29,.62);
        font-size: .63rem;
        white-space: nowrap;
    }
    .backend:not(.backend--sidebar) .site-nav a.is-active { border-color: rgba(123,179,223,.38); color: #fff; background: rgba(71,126,201,.2); }
    .backend:not(.backend--sidebar) .site-nav form { display: flex; flex: 0 0 auto; }
    .backend:not(.backend--sidebar) .site-nav .nav-button { color: #f1a5ad; border-color: rgba(248,113,113,.18); background: rgba(127,29,29,.12); }
}

@media (max-width: 520px) {
    .backend--sidebar .site-header__inner { width: calc(100% - 1rem); }
    .backend--sidebar .brand span { display: block; }
    .backend--sidebar .brand { font-size: .78rem; }
    .backend--sidebar .brand small { font-size: .55rem; }
    .backend-nav-toggle { display: none; min-height: 40px; padding: .5rem .65rem; }
    .backend--sidebar .backend-heading h1 { font-size: clamp(1.65rem, 8vw, 2.1rem); }
    .backend--sidebar .backend-heading .eyebrow { font-size: .58rem; }
    .backend--sidebar .backend-heading__badge { font-size: .57rem; }
    .backend-sidebar__link { min-width: 74px; }
    .backend--sidebar .chat-window { height: calc(100vh - 215px); height: calc(100dvh - 215px); min-height: 390px; }
}

@media (prefers-reduced-motion: reduce) {
    .backend-sidebar, .backend-sidebar-backdrop, .backend-sidebar__link, .backend-nav-toggle__bars i { transition: none; }
}

/* Billing catalog, branded invoices, and embedded Stripe Checkout */
.billing-launcher { margin-bottom: 1.4rem; }
.billing-launcher .section-heading { margin-bottom: .75rem; }
.billing-launcher .section-heading p:last-child { margin: .3rem 0 0; color: #7f90a6; font-size: .7rem; }
.billing-launcher__grid { display: grid; gap: .7rem; }
.billing-launcher__team { display: grid; grid-template-columns: 46px minmax(150px, 1fr) auto; align-items: center; gap: .9rem; padding: 1rem; }
.billing-launcher__mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(123,179,223,.32); border-radius: 13px; color: #e1edf8; background: linear-gradient(145deg, rgba(71,126,201,.3), rgba(15,40,75,.7)); font-size: .65rem; font-weight: 900; letter-spacing: .08em; }
.billing-launcher__identity { min-width: 0; }
.billing-launcher__identity small { color: #7f90a6; font-size: .58rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.backend .billing-launcher__identity h3 { margin: .15rem 0 0; color: #f1f7fc; font-size: .95rem; }
.billing-launcher__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.invoice-history-heading { margin-top: 1.2rem; }
.operations-billing-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.2rem; border-top: 1px solid rgba(123,179,223,.13); border-bottom: 1px solid rgba(123,179,223,.13); background: linear-gradient(90deg, rgba(71,126,201,.12), rgba(8,18,32,.35)); }
.operations-billing-actions > div { display: flex; align-items: center; gap: .7rem; }
.operations-billing-actions strong { color: #edf5fb; font-size: .76rem; }
.operations-billing-actions .eyebrow { margin: 0 0 .15rem; }
.billing-catalog, .invoice-builder { scroll-margin-top: 92px; }
.billing-workspace { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.35fr); gap: 1rem; align-items: start; }
.billing-workspace > .card { min-width: 0; }
.billing-panel-heading { display: flex; align-items: center; gap: .85rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(123,179,223,.15); }
.billing-panel-heading__mark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(123,179,223,.32); border-radius: 11px; color: #cae1f3; background: rgba(71,126,201,.15); font-size: .58rem; font-weight: 800; }
.backend .billing-panel-heading h3 { margin: 0; font-size: 1rem; }
.billing-panel-heading p { margin: .2rem 0 0; color: #8494aa; font-size: .7rem; line-height: 1.45; }
.billing-item-create { margin-top: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(123,179,223,.14); }
.billing-item-create textarea { min-height: 64px; }
.billing-item-create .button { width: max-content; }
.billing-item-list { display: grid; gap: .55rem; margin-top: 1rem; }
.billing-item-card { overflow: hidden; border: 1px solid rgba(123,179,223,.15); border-radius: 11px; background: #091321; }
.billing-item-card[open] { border-color: rgba(123,179,223,.34); }
.billing-item-card.is-archived { opacity: .65; }
.billing-item-card summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem; list-style: none; cursor: pointer; }
.billing-item-card summary::-webkit-details-marker { display: none; }
.billing-item-card summary > span { min-width: 0; display: grid; }
.billing-item-card summary > span:last-child { flex: 0 0 auto; text-align: right; }
.billing-item-card summary strong { overflow: hidden; color: #eaf1f7; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.billing-item-card summary b { color: #cae1f3; font-size: .74rem; }
.billing-item-card summary small { overflow: hidden; color: #718299; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.billing-item-card__body { display: grid; gap: .8rem; padding: 1rem; border-top: 1px solid rgba(123,179,223,.12); background: rgba(5,13,24,.45); }
.billing-item-card__body textarea { min-height: 62px; }
.billing-item-card__body .button { width: max-content; }
.billing-archive-button { color: #fca5a5; font-size: .66rem; }
.billing-empty { padding: 1rem; border: 1px dashed rgba(123,179,223,.18); border-radius: 10px; color: #75869d; background: rgba(8,18,32,.4); font-size: .7rem; text-align: center; }
.invoice-builder > .billing-panel-heading { margin-bottom: .25rem; }
.invoice-item-picker, .invoice-custom-item { margin: 0; padding: 1rem; border: 1px solid rgba(123,179,223,.16); border-radius: 12px; background: rgba(7,16,29,.55); }
.invoice-item-picker legend, .invoice-custom-item legend { padding: 0 .4rem; color: #e8f0f6; font-size: .75rem; font-weight: 700; }
.invoice-item-picker__list { display: grid; gap: .55rem; }
.invoice-item-option { display: grid !important; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center !important; gap: .7rem !important; padding: .75rem; border: 1px solid rgba(123,179,223,.13); border-radius: 10px; background: #091423; cursor: pointer; }
.invoice-item-option:has(> input:checked) { border-color: rgba(123,179,223,.5); background: rgba(71,126,201,.13); box-shadow: inset 0 0 18px rgba(71,126,201,.06); }
.invoice-item-option > input { width: 17px; height: 17px; accent-color: #477ec9; }
.invoice-item-option > span:nth-child(2) { min-width: 0; display: grid; }
.invoice-item-option strong { overflow: hidden; color: #eaf1f8; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.invoice-item-option small { color: #7f90a6; font-size: .62rem; line-height: 1.4; }
.invoice-item-quantity { display: flex !important; align-items: center; gap: .35rem; color: #71849d; font-size: .58rem; text-transform: uppercase; }
.invoice-item-quantity input { width: 58px !important; height: 38px !important; padding: .4rem !important; text-align: center; }
.invoice-custom-item__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(110px, .7fr) 90px; gap: .7rem; }

.invoice-page { background: radial-gradient(circle at 50% 0, rgba(71,126,201,.08), transparent 32%); }
.invoice-page-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.invoice-page-actions > a, .checkout-back { color: #a9bed0; font-size: .7rem; font-weight: 700; text-decoration: none; }
.invoice-page-actions__buttons { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .55rem; }
.invoice-document { overflow: hidden; border: 1px solid #dbe2e8; border-radius: 16px; color: #334155; background: #f9fafb; box-shadow: 0 28px 70px rgba(0,0,0,.34); }
.invoice-document__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; padding: 2rem; color: #e1edf8; background: radial-gradient(circle at 90% 0, rgba(91,151,214,.32), transparent 42%), linear-gradient(135deg, #07111f, #10284b); }
.invoice-document__brand { display: flex; align-items: center; gap: .85rem; }
.invoice-document__brand img { object-fit: contain; filter: drop-shadow(0 5px 12px rgba(0,0,0,.3)); }
.invoice-document__brand > span { display: grid; line-height: 1.35; }
.invoice-document__brand strong { color: #fff; font-size: .9rem; letter-spacing: .02em; }
.invoice-document__brand small { color: #99aec0; font-size: .6rem; }
.invoice-document__identity { display: grid; justify-items: end; }
.backend .invoice-document__identity h1 { margin: .35rem 0 .15rem; color: #fff; background: none; -webkit-text-fill-color: currentColor; font-size: 2rem; font-weight: 650; letter-spacing: -.04em; }
.invoice-document__identity > strong { color: #aac1d5; font-size: .7rem; letter-spacing: .08em; }
.invoice-status { width: max-content; display: inline-flex; align-items: center; padding: .28rem .55rem; border: 1px solid rgba(91,151,214,.28); border-radius: 999px; color: #375896; background: #e1edf8; font-size: .56rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.invoice-status--paid { border-color: #a7f3d0; color: #065f46; background: #d1fae5; }
.invoice-status--partial { border-color: #fde68a; color: #92400e; background: #fef3c7; }
.invoice-status--void, .invoice-status--voided { border-color: #fecaca; color: #991b1b; background: #fee2e2; }
.invoice-document__parties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 1.5rem 2rem; border-bottom: 1px solid #dee5ea; background: #fff; }
.invoice-document__parties > div { min-width: 0; }
.invoice-label { display: block; margin-bottom: .4rem; color: #64748b; font-size: .57rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.invoice-document__parties strong { display: block; overflow-wrap: anywhere; color: #0f1e33; font-size: .78rem; }
.invoice-document__parties p { margin: .15rem 0 0; overflow-wrap: anywhere; color: #64748b; font-size: .65rem; }
.invoice-lines { padding: 1.25rem 2rem; }
.invoice-lines__header, .invoice-lines__row { display: grid; grid-template-columns: minmax(0, 1fr) 56px 100px 110px; gap: .75rem; align-items: center; }
.invoice-lines__header { padding: .55rem .65rem; border-radius: 8px; color: #64748b; background: #ecf1f5; font-size: .56rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.invoice-lines__header span:not(:first-child), .invoice-lines__row > :not(:first-child) { text-align: right; }
.invoice-lines__row { padding: .9rem .65rem; border-bottom: 1px solid #e4e9ee; font-size: .68rem; }
.invoice-lines__row strong { color: #172a45; }
.invoice-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .65fr); gap: 2rem; padding: .5rem 2rem 1.75rem; }
.invoice-summary__note p { max-width: 390px; margin: 0; color: #64748b; font-size: .68rem; line-height: 1.6; }
.invoice-summary dl { margin: 0; }
.invoice-summary dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid #e4e9ee; font-size: .68rem; }
.invoice-summary dt { color: #64748b; }
.invoice-summary dd { margin: 0; color: #1e293b; font-weight: 700; }
.invoice-summary .invoice-summary__balance { margin-top: .35rem; padding: .8rem; border: 0; border-radius: 9px; color: #fff; background: #10284b; }
.invoice-summary__balance dt, .invoice-summary__balance dd { color: #fff; }
.invoice-payment-history { margin: 0 2rem 1.5rem; padding: 1rem; border: 1px solid #dee5ea; border-radius: 11px; background: #fff; }
.backend .invoice-payment-history h2 { margin: 0 0 .6rem; color: #172a45; font-size: .8rem; }
.invoice-payment-history > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid #e9eef2; }
.invoice-payment-history > div > span { display: grid; }
.invoice-payment-history strong { color: #183153; font-size: .68rem; }
.invoice-payment-history small { color: #64748b; font-size: .58rem; }
.invoice-document__footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 2rem; color: #8ba0bd; background: #0b192c; font-size: .56rem; }
.invoice-payment-card { margin-top: 1rem; }
.invoice-payment-card__heading { display: flex; align-items: center; gap: .8rem; }
.invoice-payment-card__heading > span, .checkout-frame__lock { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(52,211,153,.3); border-radius: 11px; color: #a7f3d0; background: rgba(6,78,59,.24); font-size: .53rem; font-weight: 800; }
.backend .invoice-payment-card__heading h3 { margin: 0; font-size: 1rem; }
.invoice-payment-card__heading p { margin: .15rem 0 0; color: #7e8fa6; font-size: .68rem; }
.invoice-paid-message { display: flex; align-items: center; gap: .85rem; margin-top: 1rem; padding: 1rem 1.2rem; border: 1px solid rgba(52,211,153,.3); border-radius: 12px; color: #a7f3d0; background: rgba(6,78,59,.24); }
.invoice-paid-message > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #052e2b; background: #6ee7b7; font-weight: 900; }
.invoice-paid-message strong { color: #d1fae5; }
.invoice-paid-message p { margin: .1rem 0 0; font-size: .7rem; }
.invoice-number-link { color: #a5ceeb; font-weight: 700; text-decoration: none; }
.invoice-list-table td { vertical-align: middle; }
.invoice-list-action { text-align: right; white-space: nowrap; }
.invoice-list-action .button { min-width: 94px; }
.invoice-list-empty { padding: 2rem; color: #75869c; text-align: center; }

.checkout-page { background: radial-gradient(circle at 50% 0, rgba(71,126,201,.1), transparent 35%); }
.checkout-shell { max-width: 1180px; }
.checkout-frame { padding: 1rem; border: 1px solid rgba(123,179,223,.22); border-radius: 16px; background: linear-gradient(145deg, #0d1728, #091220); box-shadow: 0 24px 65px rgba(0,0,0,.28); }
.checkout-frame__intro { display: flex; align-items: center; gap: .8rem; margin-bottom: .75rem; padding: .75rem; border-bottom: 1px solid rgba(123,179,223,.13); }
.checkout-frame__intro strong { color: #f0f7fc; font-size: .82rem; }
.checkout-frame__intro p { margin: .1rem 0 0; color: #7d8da3; font-size: .66rem; }
.checkout-loading { min-height: 360px; display: grid; place-items: center; color: #8293aa; font-size: .72rem; }
#stripe-embedded-checkout { width: 100%; min-width: 0; }
.checkout-back { display: inline-block; margin-top: 1rem; }

@media (min-width: 1100px) {
    .checkout-frame { padding: 1.35rem; }
    .checkout-frame__intro { padding: 1rem 1.1rem; }
}

@media (max-width: 900px) {
    .billing-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .checkout-frame { padding: .6rem; border-radius: 12px; }
    .checkout-frame__intro { align-items: flex-start; margin-bottom: .5rem; padding: .65rem; }
    .checkout-frame__lock { width: 38px; height: 38px; }
    .invoice-page-actions { align-items: flex-start; flex-direction: column; }
    .invoice-page-actions__buttons { width: 100%; display: grid; grid-template-columns: 1fr; }
    .invoice-page-actions__buttons .button { width: 100%; }
    .billing-launcher__team { grid-template-columns: 42px minmax(0, 1fr); }
    .billing-launcher__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; }
    .billing-launcher__actions .button { width: 100%; }
    .operations-billing-actions { align-items: stretch; flex-direction: column; padding: 1rem; }
    .operations-billing-actions > div:last-child { display: grid; grid-template-columns: 1fr; }
    .operations-billing-actions .button { width: 100%; }
    .invoice-custom-item__grid { grid-template-columns: 1fr 1fr; }
    .invoice-custom-item__grid > label:first-child { grid-column: 1 / -1; }
    .invoice-document__header { align-items: flex-start; flex-direction: column; padding: 1.25rem; }
    .invoice-document__identity { justify-items: start; }
    .invoice-document__parties { grid-template-columns: 1fr; padding: 1.1rem 1.25rem; }
    .invoice-document__parties > div + div { padding-top: .8rem; border-top: 1px solid #e4e9ee; }
    .invoice-lines { padding: 1rem 1.25rem; }
    .invoice-lines__header { display: none; }
    .invoice-lines__row { grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .75rem; }
    .invoice-lines__row > :nth-child(2)::before { content: 'Qty '; color: #94a3b8; }
    .invoice-lines__row > :nth-child(3) { grid-column: 1; text-align: left; color: #64748b; }
    .invoice-lines__row > :nth-child(4) { grid-column: 2; grid-row: 1; }
    .invoice-summary { grid-template-columns: 1fr; gap: 1rem; padding: .25rem 1.25rem 1.25rem; }
    .invoice-payment-history { margin: 0 1.25rem 1.25rem; }
    .invoice-document__footer { align-items: flex-start; flex-direction: column; padding: 1rem 1.25rem; }
    .invoice-item-option { grid-template-columns: 18px minmax(0, 1fr); }
    .invoice-item-quantity { grid-column: 2; justify-content: flex-start; }
    .billing-item-create .button, .billing-item-card__body .button { width: 100%; }
    .invoice-list-card { overflow: visible; border: 0; background: transparent; }
    .invoice-list-table, .invoice-list-table tbody { display: block; }
    .invoice-list-table thead { display: none; }
    .invoice-list-table tr { display: grid; gap: .25rem; margin-bottom: .7rem; padding: 1rem; border: 1px solid rgba(123,179,223,.16); border-radius: 12px; background: #0b1627; }
    .invoice-list-table td { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .3rem 0; border: 0; font-size: .7rem; text-align: right; }
    .invoice-list-table td::before { color: #71839a; content: attr(data-label); font-size: .57rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
    .invoice-list-table td[colspan] { display: block; text-align: center; }
    .invoice-list-table td[colspan]::before { display: none; }
    .invoice-list-action { margin-top: .4rem; padding-top: .75rem !important; border-top: 1px solid rgba(123,179,223,.13) !important; }
    .invoice-list-action .button { width: 100%; }
}

.guide-toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 2rem; }
.guide-section { margin-bottom: 1.5rem; }
.guide-section > h2 { margin-bottom: .25rem; }
.guide-section > p { color: #9aabc0; font-size: .82rem; line-height: 1.6; }
.guide-section .operations-disclosure { border-radius: 10px; overflow: hidden; margin-top: .6rem; }
.guide-section .operations-disclosure:first-of-type { margin-top: 1rem; }
.guide-section .operations-disclosure__body p { margin: 0 0 .75rem; font-size: .82rem; line-height: 1.65; overflow-wrap: anywhere; }
.guide-section .operations-disclosure__body p:last-child { margin-bottom: 0; }
.guide-section .operations-disclosure__body ul { margin: 0 0 .75rem; padding-left: 1.15rem; font-size: .82rem; line-height: 1.65; }
.guide-section .operations-disclosure__body ul:last-child { margin-bottom: 0; }
.guide-section .operations-disclosure__body li { margin-bottom: .35rem; }
.guide-section .operations-disclosure__body li:last-child { margin-bottom: 0; }
.guide-section .operations-disclosure__body strong { color: #e1eaf2; }

@media (max-width: 640px) {
    .guide-toc { gap: .4rem; margin: 1rem 0 1.5rem; }
    .guide-toc .team-chip { font-size: .68rem; }
}

@media print {
    @page { size: letter; margin: .45in; }
    body { color: #111827 !important; background: #fff !important; }
    .site-header, .backend-sidebar, .backend-sidebar-backdrop, .site-footer, .impersonation-banner, .flash, .no-print { display: none !important; }
    .backend-app-shell, .backend-workspace, main, .form-page, .shell, .shell--narrow { width: 100% !important; min-height: 0 !important; display: block !important; margin: 0 !important; padding: 0 !important; }
    .invoice-document { border: 1px solid #cbd5e1; border-radius: 0; box-shadow: none; break-inside: avoid; }
    .invoice-document__header { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .invoice-status, .invoice-summary__balance, .invoice-document__footer { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
