:root {
  --ink: #32302c;
  --muted: #716a61;
  --line: #dbd4ca;
  --paper: #f1eee8;
  --panel: #fffdf9;
  --brand: #39758f;
  --brand-dark: #27576b;
  --brand-soft: #e1ece8;
  --lime: #cd120a;
  --warning: #c07a3d;
  --danger: #cd120a;
  --blue: #39758f;
  --shadow: 0 12px 32px rgba(91, 75, 58, .1);
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; font-family: var(--font); color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.is-hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { color: var(--brand); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.auth-screen { min-height: 100svh; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(340px, 520px); align-items: center; gap: clamp(40px, 8vw, 140px); padding: clamp(24px, 7vw, 100px); background: linear-gradient(135deg, #71675a, #39758f 56%, #cd120a); }
.data-save-loading { position: fixed; inset: 0; z-index: 2147483647; display: grid; grid-template-columns: minmax(240px, 1fr) minmax(300px, 520px); align-items: center; gap: clamp(32px, 7vw, 110px); width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: clamp(24px, 7vw, 100px); border: 0; color: white; background: linear-gradient(135deg, #71675a, #39758f 56%, #cd120a); }
.data-save-loading::backdrop { background: transparent; }
.data-save-loading-brand { display: flex; align-items: center; gap: 18px; font-family: "Anta", sans-serif; font-size: clamp(28px, 5vw, 56px); letter-spacing: .04em; }
.data-save-loading-card { padding: clamp(26px, 5vw, 52px); border: 1px solid rgba(255,255,255,.66); border-radius: 24px; color: var(--ink); background: rgba(255,255,255,.96); box-shadow: 0 28px 80px rgba(35,32,28,.28); }
.data-save-loading-card h2 { margin: 12px 0; font-size: clamp(27px, 4vw, 42px); line-height: 1.1; }
.data-save-loading-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.auth-version-label { position: fixed; top: 16px; right: 20px; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 900; letter-spacing: .03em; }
.auth-build-label { min-height: 22px; position: fixed; top: 34px; right: 20px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; color: white; background: var(--lime); font-size: 10px; font-weight: 900; }
.auth-brand { display: flex; align-items: center; gap: 22px; color: white; }
.auth-brand p { margin: 8px 0 0; opacity: .76; font-size: clamp(16px, 2vw, 22px); }
.brand-name { display: flex; align-items: center; gap: .18em; font-family: "Anta", var(--font); font-size: clamp(40px, 6vw, 76px); letter-spacing: -.02em; line-height: .9; }
.brand-title-row { display: flex !important; align-items: center; gap: .3em; }
.brand-football { display: inline-flex; flex: 0 0 auto; align-items: center; font-family: system-ui, sans-serif; font-size: .72em; line-height: 1; }
.brand-mark { width: 96px; aspect-ratio: 1; border-radius: 24px; display: grid; place-items: center; background: #ffffff url("sasa-f-icon-v3.svg?v=2026.08.02.192") center/cover no-repeat; color: transparent; font: 900 42px/1 "Anta", sans-serif; letter-spacing: -.08em; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.auth-brand .brand-mark { background: #fff url("sasa-f-banner-icon.svg?v=2026.07.30.173") center/cover no-repeat; }
.brand-mark.small { width: 38px; border-radius: 10px; font-size: 17px; box-shadow: none; }
.auth-card { background: var(--panel); border-radius: 22px; padding: clamp(24px, 5vw, 44px); display: grid; gap: 20px; box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.auth-card h1 { margin: 8px 0 6px; font-size: clamp(28px, 4vw, 42px); }
.mfa-enrollment { display: grid; justify-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); text-align: center; }
.mfa-enrollment img { width: min(220px, 70vw); aspect-ratio: 1; border: 8px solid white; border-radius: 10px; background: white; }
.mfa-enrollment p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.mfa-secret { width: 100%; display: grid; gap: 5px; padding: 10px; border-radius: 9px; background: white; }
.mfa-secret span { color: var(--muted); font-size: 11px; font-weight: 700; }
.mfa-secret code { overflow-wrap: anywhere; color: var(--brand-dark); font-size: 12px; font-weight: 800; }
.mfa-secret-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 5px; }
.mfa-secret-actions .primary-button, .mfa-secret-actions .secondary-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
#adminMfaCode { text-align: center; font-size: 22px; font-weight: 900; letter-spacing: .22em; }
#adminMfaSubmitButton { min-height: 44px; font-size: 15px; }
label { display: grid; gap: 7px; color: #4c4943; font-size: 14px; font-weight: 700; }
.form-hint { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.4; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; color: var(--ink); background: white; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(57,117,143,.16); }
.primary-button, .secondary-button, .danger-button { min-height: 33px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent; font-size: 12px; font-weight: 700; }
.primary-button { background: var(--brand); color: white; }
.primary-button:hover { background: var(--brand-dark); }
.primary-button:disabled { cursor: wait; opacity: .68; }
.secondary-button { color: var(--ink); border-color: var(--line); background: white; }
.secondary-button:disabled { cursor: not-allowed; opacity: .45; }
.danger-button { color: white; background: var(--danger); }
.danger-button:disabled { cursor: not-allowed; opacity: .38; }
#loginSubmitButton { min-height: 44px; padding: 0 18px; border-radius: 10px; font-size: 16px; }
.auth-link-button { justify-self: center; padding: 3px 6px; color: var(--brand); border: 0; background: transparent; font-weight: 700; }
.auth-link-button:hover { text-decoration: underline; }
.auth-android-download { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: -8px; font-size: 13px; text-decoration: none; }
.auth-secondary-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-secondary-actions .auth-link-button { flex: 1; }
.auth-secondary-actions .auth-link-button:first-child { text-align: left; }
.auth-secondary-actions .auth-link-button:last-child { text-align: right; }
.auth-action-divider { width: 1px; height: 18px; flex: 0 0 1px; background: var(--line); }
.auth-message { margin: 0; padding: 11px 13px; border-radius: 10px; color: var(--brand-dark); background: var(--brand-soft); font-size: 13px; font-weight: 700; }
.auth-message.error { color: #cd120a; background: #fde7e5; }
.app-shell { min-height: 100svh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100svh; z-index: 30; display: flex; flex-direction: column; padding: 22px 15px; color: white; background: var(--brand-dark); }
.sidebar-brand { display: none; align-items: center; gap: 11px; margin: 0 6px 28px; padding: 0; text-align: left; color: white; border: 0; background: none; }
.sidebar-brand strong { display: block; font-family: "Anta", var(--font); font-size: 23px; letter-spacing: .04em; }
.sidebar-brand small, .sidebar-footer small { display: block; margin-top: 2px; opacity: .64; }
.main-nav { min-height: 0; flex: 1 1 auto; display: grid; align-content: start; gap: 5px; overflow-y: auto; }
.sidebar-settings { flex-shrink: 0; display: grid; gap: 5px; margin-top: 8px; padding: 10px 0 8px; border-top: 1px solid rgba(255,255,255,.16); }
.nav-button { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 13px; color: rgba(255,255,255,.72); border: 0; border-radius: 10px; background: transparent; text-align: left; font-weight: 500; }
.nav-button:hover, .nav-button.active { color: white; background: rgba(255,255,255,.12); }
.nav-icon { width: 24px; text-align: center; font-size: 18px; }
.nav-icon svg { width: 19px; height: 19px; display: block; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-footer { flex-shrink: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 14px 8px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.sidebar-android-download { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0 0 3px; padding: 9px 10px; color: rgba(255,255,255,.86); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; font-size: 12px; font-weight: 800; text-decoration: none; }
.sidebar-android-download:hover { color: white; background: rgba(255,255,255,.12); }
.user-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--lime); font-weight: 900; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; color: inherit; background: transparent; font-size: 20px; }
.icon-button:hover { background: rgba(127,127,127,.12); }
.content-shell { min-width: 0; }
.app-banner { min-height: 74px; position: sticky; top: 0; z-index: 21; display: flex; align-items: center; padding: 10px clamp(18px, 4vw, 46px) 10px 18px; background: var(--brand-dark); border-bottom: 1px solid rgba(255,255,255,.12); box-shadow: 0 8px 24px rgba(52,61,62,.16); }
.app-banner-home { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 0 110px 0 0; color: white; border: 0; background: transparent; text-align: left; }
.banner-mark { width: 42px; height: auto; flex: 0 0 42px; display: block; border-radius: 11px; background: #fff; object-fit: cover; }
.app-banner-brand-copy { width: min(280px, 52vw); min-width: 0; display: grid; gap: 2px; }
.app-banner-brand-copy strong { overflow: hidden; font-family: "Anta", var(--font); font-size: 23px; letter-spacing: .04em; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.app-banner-brand-copy small { overflow: hidden; color: rgba(255,255,255,.64); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.app-banner-build { min-height: 24px; position: absolute; top: 30px; right: clamp(18px, 4vw, 46px); display: inline-flex; align-items: center; padding: 0 9px; border-radius: 999px; color: white; background: var(--lime); font-size: 11px; font-weight: 900; }
.app-version-label { position: absolute; top: 10px; right: clamp(18px, 4vw, 46px); color: rgba(255,255,255,.7); font-size: 10px; font-weight: 900; letter-spacing: .03em; }
.topbar { min-height: 82px; position: sticky; top: 74px; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px clamp(18px, 4vw, 46px); background: rgba(241,238,232,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.topbar h1 { margin: 0; font-size: 22px; }
.topbar p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.global-back-button { min-height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--brand); background: white; font-weight: 800; }
.global-back-button:hover:not(:disabled) { background: var(--brand-soft); }
.global-back-button:disabled { color: var(--muted); opacity: .45; cursor: default; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.school-switcher { min-width: min(280px, 30vw); display: flex; grid-template-columns: auto minmax(150px, 1fr); align-items: center; gap: 8px; }
.school-switcher > span { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.school-switcher select { min-width: 180px; max-width: 280px; }
.current-school-name { max-width: min(280px, 30vw); overflow: hidden; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--brand); background: rgba(255,255,255,.72); font-size: 12px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.topbar-notification-button {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--brand);
  background: #fff;
  cursor: pointer;
}
.notification-unread-badge {
  min-width: 18px;
  height: 18px;
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #cd120a;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
.topbar-notification-button:hover { background: var(--brand-soft); }
.topbar-notification-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topbar select { width: auto; padding: 9px 34px 9px 11px; background-color: white; }
.session-role { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--brand); background: white; font-size: 12px; font-weight: 900; }
.topbar .role-preview-select { width: auto; min-width: 126px; min-height: 34px; padding: 0 34px 0 12px; border-radius: 999px; color: var(--brand); font-size: 12px; font-weight: 900; cursor: pointer; }
.mobile-menu { display: none; }
#appContent { padding: clamp(18px, 4vw, 46px); outline: none; }
.page-stack { display: grid; gap: 24px; max-width: 1440px; margin: 0 auto; }
.school-platform-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.school-create-panel { display: grid; gap: 18px; }
.school-create-form { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) minmax(140px, .6fr) auto; align-items: end; gap: 12px; padding: 0 20px 20px; }
.school-create-form label { margin: 0; }
.school-create-form label small { color: var(--muted); font-size: 10px; font-weight: 500; }
.school-management-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.school-management-card { display: grid; gap: 18px; padding: 20px; border: 1px solid transparent; }
.school-management-card.is-selected { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(57,117,143,.12), var(--shadow); }
.school-management-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.school-management-heading h3 { margin: 4px 0 0; }
.school-management-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.school-management-stats span { min-width: 0; display: grid; gap: 4px; padding: 10px; border-radius: 10px; background: var(--paper); }
.school-management-stats small { color: var(--muted); font-size: 10px; }
.school-management-stats strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; }
.school-management-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.subscription-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.subscription-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.subscription-plan-card { display: grid; align-content: start; gap: 16px; min-height: 280px; padding: 22px; }
.subscription-plan-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.subscription-plan-heading h3 { margin: 0; font-size: 22px; }
.subscription-plan-heading strong { display: flex; align-items: baseline; gap: 3px; color: var(--brand); font-size: 21px; }
.subscription-plan-heading strong small { color: var(--muted); font-size: 10px; }
.subscription-price-list { display: grid; gap: 7px; }
.subscription-price-option { display: grid; grid-template-columns: minmax(64px, .75fr) minmax(90px, 1fr); align-items: center; gap: 4px 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--brand-soft); }
.subscription-price-option > span { color: var(--brand-dark); font-size: 12px; font-weight: 900; }
.subscription-price-option strong { justify-self: end; color: var(--brand); font-size: 17px; }
.subscription-price-option small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; text-align: right; }
.subscription-feature-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.subscription-feature-list li { display: flex; align-items: flex-start; gap: 8px; color: var(--ink); font-size: 12px; line-height: 1.4; }
.subscription-feature-list li span { flex: 0 0 18px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: white; background: var(--brand); font-weight: 900; }
.subscription-feature-list li.unavailable { color: var(--muted); }
.subscription-feature-list li.unavailable span { background: #c9c3bb; }
.subscription-school-count { align-self: end; margin-top: auto; color: var(--brand); font-weight: 900; }
.subscription-schools-panel { overflow: hidden; }
.subscription-school-list { display: grid; }
.subscription-school-row { display: grid; grid-template-columns: minmax(180px, 1.5fr) minmax(100px, .8fr) minmax(115px, .8fr) minmax(115px, .8fr) minmax(135px, .9fr) auto; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.subscription-school-row > div, .subscription-school-row > span { min-width: 0; }
.subscription-school-row > div, .subscription-school-row > span:not(.status) { display: grid; gap: 3px; }
.subscription-school-row small { color: var(--muted); font-size: 10px; }
.settings-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.settings-link-card { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 20px; color: var(--ink); text-align: left; cursor: pointer; }
.settings-link-card:hover { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(57,117,143,.1), var(--shadow); }
.settings-link-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: white; background: var(--brand); }
.settings-link-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.settings-link-copy { min-width: 0; display: grid; gap: 5px; }
.settings-link-copy strong { font-size: 16px; }
.settings-link-copy small { color: var(--muted); line-height: 1.45; }
.settings-link-arrow { color: var(--brand); font-size: 28px; font-weight: 700; line-height: 1; }
.bank-settings-panel { display: grid; gap: 18px; max-width: 1080px; }
.bank-settings-form { display: grid; gap: 16px; }
.bank-account-settings-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.bank-account-settings-card { min-width: 0; display: grid; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
.bank-account-settings-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bank-account-settings-heading strong { color: var(--brand-dark); font-size: 13px; }
.bank-account-remove-button { color: var(--danger); }
.bank-account-settings-fields { display: grid; gap: 10px; }
.bank-settings-form label { min-width: 0; margin: 0; }
.bank-settings-form input { width: 100%; }
.bank-settings-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.bank-settings-actions .primary-button { min-height: 42px; margin-left: auto; }
.bank-settings-actions [hidden], .bank-account-settings-heading [hidden] { display: none !important; }
.iban-prefix-control { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; }
.iban-prefix-control:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(57,117,143,.12); }
.iban-prefix { align-self: stretch; display: grid; place-items: center; padding: 0 0 0 14px; color: var(--brand-dark); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 900; letter-spacing: .025em; }
.iban-prefix[hidden] { display: none !important; }
.bank-settings-iban .iban-prefix-control input { min-width: 0; border: 0; border-radius: 0; box-shadow: none; padding-left: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 800; letter-spacing: .025em; }
.parent-bank-account-list { display: grid; gap: 14px; }
.parent-bank-account { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
.parent-bank-account.bank-theme-akbank { border-color: rgba(211, 25, 35, .28); background: rgba(211, 25, 35, .10); }
.parent-bank-account.bank-theme-garanti { border-color: rgba(0, 135, 81, .28); background: rgba(0, 135, 81, .10); }
.parent-bank-account.bank-theme-yapi-kredi { border-color: rgba(0, 91, 150, .28); background: rgba(0, 91, 150, .10); }
.parent-bank-account.bank-theme-is-bankasi { border-color: rgba(0, 66, 120, .28); background: rgba(0, 66, 120, .10); }
.parent-bank-account:is(.bank-theme-akbank, .bank-theme-garanti, .bank-theme-yapi-kredi, .bank-theme-is-bankasi) .parent-bank-details > div { background: rgba(255, 255, 255, .68); }
.parent-bank-account .secondary-button { justify-self: start; }
.section-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 12px; }
.section-heading h2 { margin: 0 0 5px; font-size: 20px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.section-title-with-action { display: flex; align-items: center; gap: 8px; }
.section-title-with-action h2 { margin-bottom: 0; }
.heading-icon-button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; color: var(--brand-dark); background: white; border: 1px solid var(--line); border-radius: 8px; }
.heading-icon-button:hover { color: white; background: var(--brand); border-color: var(--brand); }
.heading-icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.accounting-settings-panel { max-width: 720px; padding: 16px 18px; }
.accounting-settings-form { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(195px, 255px) auto; align-items: center; gap: 12px; }
.accounting-settings-form > label { margin: 0; }
.settings-amount-control { position: relative; }
.settings-amount-control input { padding-right: 34px; }
.settings-amount-control span { position: absolute; top: 50%; right: 13px; color: var(--muted); font-weight: 900; transform: translateY(-50%); pointer-events: none; }
.group-settings-panel { max-width: 760px; padding-bottom: 0; }
.group-settings-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; cursor: pointer; list-style: none; }
.group-settings-summary::-webkit-details-marker { display: none; }
.group-settings-summary > div { display: grid; gap: 4px; }
.group-settings-summary h3 { margin: 0; font-size: 16px; }
.group-settings-summary .disclosure-chevron { transition: transform .2s ease; }
.group-settings-panel[open] .group-settings-summary { border-bottom: 1px solid var(--line); }
.group-settings-panel[open] .group-settings-summary .disclosure-chevron { transform: rotate(180deg); }
.group-settings-content { padding-bottom: 18px; }
.group-settings-form { display: grid; grid-template-columns: minmax(120px, .55fr) minmax(220px, 1fr) auto; align-items: center; gap: 12px; padding: 0 20px 18px; border-bottom: 1px solid var(--line); }
.group-settings-form > label { margin: 0; }
.group-settings-list { display: grid; padding: 6px 20px 0; }
.group-settings-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 62px; border-bottom: 1px solid var(--line); }
.group-settings-row > div { display: grid; gap: 4px; }
.group-settings-actions { display: flex !important; align-items: center; gap: 8px; }
.group-rename-form input { width: min(100%, 360px); }
.group-settings-row small { color: var(--muted); font-size: 12px; }
.group-settings-hint { display: block; padding: 16px 20px 0; }
.settings-form-hint { display: block; margin-top: 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.club-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-stats-grid .stat-card { display: flex; min-height: 150px; flex-direction: column; align-items: flex-start; }
.profile-stats-grid .stat-card > :last-child { margin-top: auto; }
.player-card-launch { color: inherit; text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.player-card-launch:hover { border-color: #b9973f; box-shadow: 0 16px 34px rgba(111, 84, 30, .18); transform: translateY(-2px); }
.player-card-launch small::after { content: "  ›"; font-size: 17px; }
.profile-fee-summary-card, .profile-attendance-summary-card, .profile-training-group-card { width: 100%; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.profile-fee-summary-card:hover, .profile-fee-summary-card:focus-visible,
.profile-attendance-summary-card:hover, .profile-attendance-summary-card:focus-visible,
.profile-training-group-card:hover, .profile-training-group-card:focus-visible { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(57, 117, 143, .13), var(--shadow); }
.profile-fee-summary-card small.fee-debt-present { color: #cd120a; }
.profile-fee-summary-card small.fee-debt-clear { color: var(--brand); }
#monthlyFeeSection { scroll-margin-top: 176px; }
.stat-card, .panel { border: 1px solid var(--line); border-radius: 15px; background: var(--panel); box-shadow: var(--shadow); }
.stat-card { padding: 19px; }
.dashboard-navigation-card { width: 100%; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.dashboard-navigation-card:hover, .dashboard-navigation-card:focus-visible { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(57, 117, 143, .13), var(--shadow); transform: translateY(-2px); }
.stat-card .label { color: var(--muted); font-size: 13px; }
.stat-card strong { display: block; margin: 7px 0 6px; font-size: 27px; }
.stat-card small { color: var(--brand); font-weight: 700; }
.next-training-card strong { font-size: 18px; line-height: 1.35; }
.next-training-details { display: grid; gap: 4px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.next-training-details b { color: var(--ink); }
.parent-fee-card strong { font-size: 18px; line-height: 1.4; }
.parent-fee-status-actions { display: inline-flex; align-items: center; gap: 8px; }
.parent-pay-button { min-height: 29px; padding-inline: 11px; white-space: nowrap; }
.parent-payment-page { width: min(100%, 860px); }
.parent-payment-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; }
.parent-payment-summary h2 { margin: 5px 0 3px; font-size: 20px; }
.parent-payment-summary p { margin: 0; color: var(--muted); font-size: 13px; text-transform: capitalize; }
.parent-payment-summary > strong { flex: 0 0 auto; color: var(--brand); font-size: 26px; }
.parent-payment-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.parent-payment-option { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 120px; padding: 20px; color: var(--ink); text-align: left; cursor: pointer; }
.parent-payment-option:hover, .parent-payment-option:focus-visible { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(57,117,143,.1), var(--shadow); }
.parent-payment-option-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: white; background: var(--brand); font-size: 20px; font-weight: 900; }
.parent-payment-option > span:nth-child(2) { min-width: 0; display: grid; gap: 5px; }
.parent-payment-option strong { font-size: 16px; }
.parent-payment-option small { color: var(--muted); line-height: 1.45; }
.payment-safety-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 12px; padding: 15px 17px; border: 1px solid #bdd7e2; border-radius: 12px; color: var(--brand-dark); background: var(--brand-soft); font-size: 13px; line-height: 1.5; }
.payment-safety-note strong { white-space: nowrap; }
.payment-safety-note.warning { border-color: #e9cba0; color: #70440e; background: #fff5e6; }
.parent-bank-panel { display: grid; gap: 18px; }
.parent-bank-placeholder { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 12px; padding: 16px; border: 1px dashed var(--line); border-radius: 12px; background: var(--paper); }
.parent-bank-placeholder > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: white; background: var(--brand); font-weight: 900; }
.parent-bank-placeholder p { margin: 5px 0 0; color: var(--muted); line-height: 1.5; }
.parent-bank-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.parent-bank-details > div { min-width: 0; display: grid; gap: 5px; padding: 14px; border-radius: 10px; background: var(--paper); }
.parent-bank-details dt { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.parent-bank-details dd { margin: 0; overflow-wrap: anywhere; font-weight: 800; }
.parent-bank-details .parent-bank-iban { grid-column: 1 / -1; }
.parent-card-demo-panel { display: grid; justify-items: center; gap: 15px; padding: clamp(20px, 5vw, 38px); text-align: center; }
.demo-label { padding: 5px 10px; border-radius: 999px; color: #8b4a00; background: #fff0d9; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.demo-payment-card { width: min(100%, 390px); aspect-ratio: 1.65; display: grid; align-content: space-between; padding: 24px; border-radius: 20px; color: white; background: linear-gradient(135deg, var(--brand-dark), var(--brand) 58%, #5f9bb3); box-shadow: 0 18px 42px rgba(34,82,100,.25); text-align: left; }
.demo-card-chip { width: 43px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #f6d788, #c89d3b); }
.demo-payment-card > strong { font-size: clamp(20px, 5vw, 28px); letter-spacing: .08em; }
.demo-payment-card > div { display: flex; justify-content: space-between; gap: 14px; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.parent-card-demo-panel h3 { margin: 2px 0 0; }
.parent-card-demo-panel p { max-width: 620px; margin: 0; color: var(--muted); line-height: 1.6; }
.parent-card-demo-panel .primary-button:disabled { cursor: not-allowed; }
.parent-dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.parent-newsfeed { display: grid; }
.newsfeed-item { width: 100%; display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 11px; padding: 15px 20px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; }
.newsfeed-item:last-child { border-bottom: 0; }
.newsfeed-item:hover, .newsfeed-item:focus-visible { background: var(--brand-soft); }
.newsfeed-marker { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--line); }
.newsfeed-item.is-unread .newsfeed-marker { background: var(--lime); box-shadow: 0 0 0 4px rgba(180, 91, 75, .13); }
.newsfeed-content { min-width: 0; display: grid; gap: 5px; }
.newsfeed-content strong { overflow-wrap: anywhere; font-size: 14px; }
.newsfeed-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.newsfeed-message { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.stat-link { border: 0; padding: 0; color: var(--brand); background: none; font-size: 13px; font-weight: 700; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.stat-link:hover, .stat-link:focus-visible { text-decoration-color: currentColor; }
.stat-card-breakdown { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.accounting-record-count { padding: 4px 9px; border-radius: 999px; color: white; background: var(--brand); text-decoration: none; }
.accounting-record-count:hover, .accounting-record-count:focus-visible { color: white; background: var(--brand-dark); text-decoration: none; }
.payment-method-summary { display: flex; gap: 5px 12px; flex-wrap: wrap; color: var(--muted); }
.payment-method-summary span { white-space: nowrap; }
.payment-method-summary .payment-method-transfer { color: #9a3412; }
.payment-method-summary .payment-method-card { color: #6b21a8; }
.payment-method-label { white-space: nowrap; }
.student-search-field { position: relative; display: grid; gap: 7px; }
.student-search-results { position: absolute; inset: calc(100% - 1px) 0 auto; z-index: 8; max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 0 0 12px 12px; background: white; box-shadow: 0 14px 30px rgba(71, 61, 50, .16); }
.student-search-option { width: 100%; display: grid; gap: 3px; padding: 11px 13px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: white; text-align: left; cursor: pointer; }
.student-search-option:last-child { border-bottom: 0; }
.student-search-option:hover, .student-search-option:focus-visible { background: var(--brand-soft); }
.student-search-option small { color: var(--muted); }
.panel { min-width: 0; overflow: hidden; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-heading h3 { margin: 0; font-size: 16px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 16px; }
.dashboard-grid-single { grid-template-columns: minmax(0, 1fr); }
.list-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 66px; padding: 11px 20px; border-bottom: 1px solid var(--line); }
.approval-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px) auto; align-items: center; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.approval-row small { display: block; margin-top: 5px; color: var(--muted); }
.approval-actions { display: flex; align-items: center; gap: 12px; }
.approval-switch-control { position: relative; display: inline-flex; align-items: center; gap: 9px; color: var(--brand-dark); font-size: 13px; font-weight: 800; cursor: pointer; }
.approval-switch-control.pending { color: var(--muted); }
.approval-switch-control input { position: absolute; right: 0; width: 44px; height: 24px; margin: 0; padding: 0; opacity: 0; cursor: pointer; z-index: 1; }
.approval-switch-track { position: relative; display: inline-flex; width: 44px; height: 24px; padding: 3px; border-radius: 999px; background: #c8d0cc; transition: background .2s ease; }
.approval-switch-thumb { width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0, 0, 0, .22); transform: translateX(0); transition: transform .2s ease; }
.approval-switch-control input:checked + .approval-switch-track { background: var(--brand); }
.approval-switch-control input:checked + .approval-switch-track .approval-switch-thumb { transform: translateX(20px); }
.approval-switch-control input:focus-visible + .approval-switch-track { outline: 3px solid rgba(57, 117, 143, .22); outline-offset: 2px; }
.approval-switch-control input:disabled { cursor: not-allowed; }
.approval-switch-control input:disabled + .approval-switch-track { opacity: .52; }
.training-summary-row { grid-template-columns: 112px minmax(0, 1fr) auto; }
.training-date-time { display: grid; gap: 3px; color: var(--brand); }
.training-date-time small { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: capitalize; }
.training-date-time b { font-size: 15px; font-weight: 900; }
.list-row:last-child { border-bottom: 0; }
.list-row strong { display: block; margin-bottom: 3px; }
.list-row small { color: var(--muted); }
.time { color: var(--brand); font-weight: 900; }
.status { display: inline-flex; align-items: center; width: max-content; min-height: 25px; padding: 0 9px; border-radius: 999px; color: var(--brand-dark); background: var(--brand-soft); font-size: 11px; font-weight: 900; }
.status.warning { color: #784407; background: #fff0d9; }
.status.danger { color: #cd120a; background: #fde7e5; }
.status.blue { color: #205491; background: #e8f1ff; }
.fee-month-badges { display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.progress-group { display: grid; gap: 16px; padding: 20px; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 13px; }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e9eeeb; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--brand); }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.search-input { min-width: min(100%, 280px); flex: 1; }
.fee-list-toolbar { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.fee-list-toolbar .muted { margin-left: auto; white-space: nowrap; font-size: 13px; }
.students-active-filter { display: inline-flex; width: max-content; align-items: center; gap: 4px; color: var(--brand-dark); font-size: 13px; font-weight: 800; cursor: pointer; }
.students-active-filter input { width: 18px; height: 18px; accent-color: var(--brand); }
.students-checkbox-filters { display: flex; align-items: center; gap: 10px 20px; flex-wrap: wrap; }
.monthly-fee-filter { padding: 12px 20px; border-bottom: 1px solid var(--line); }
.student-list-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: -14px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--panel); font-size: 13px; }
.student-list-summary strong { color: var(--brand-dark); font-size: 15px; }
.training-list-block { display: grid; gap: 12px; }
.training-card.is-past { background: #e4e5e3; border-color: #cfd2ce; }
.training-card.is-past .training-schedule, .training-card.is-past .training-meta { color: #686d69; }
.attendance-training-row.is-past { background: #e4e5e3; }
.attendance-training-row.is-past small { color: #686d69; }
.training-list-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
.attendance-history-filter { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.attendance-history-filter label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 800; }
.attendance-history-filter select { min-width: 180px; }
.attendance-history-filter .attendance-all-time-filter { color: var(--text); }
.training-sort-control { width: max-content; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.training-sort-control select { width: auto; min-width: 210px; padding-block: 10px; color: var(--brand-dark); font-weight: 700; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; font-size: 13px; }
th { color: var(--muted); background: #f7f3ed; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.table-sort-button { display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 0; color: inherit; background: transparent; font: inherit; font-weight: 800; letter-spacing: inherit; text-transform: inherit; }
.table-sort-button:hover, .table-sort-button:focus-visible { color: var(--brand); }
.sort-indicator { font-size: 13px; line-height: 1; }
tbody tr:hover { background: #f5f1eb; }
.text-button { border: 0; padding: 4px; color: var(--brand); background: none; font-weight: 700; }
.student-name-link { display: inline; border: 0; padding: 0; color: var(--brand-dark); background: none; font-weight: 900; text-align: left; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.student-name-link:hover, .student-name-link:focus-visible { color: var(--brand); text-decoration-color: currentColor; }
.student-name-link.inverse { color: white; }
.student-name-link.inverse:hover, .student-name-link.inverse:focus-visible { color: var(--lime); }
.inline-separator { margin: 0 7px; color: var(--muted); }
.back-button { border: 0; padding: 7px 0; color: var(--brand); background: none; font-weight: 700; }
.profile-cell { display: flex; align-items: center; gap: 10px; }
.profile-avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 900; }
.profile-avatar.has-photo { overflow: hidden; padding: 0; background: #e8e5df; }
.profile-avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.fee-paid-control { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-dark); font-weight: 700; cursor: pointer; }
.fee-paid-control input { width: 18px; height: 18px; accent-color: var(--brand); }
.fee-status-select { width: auto; min-width: 126px; padding: 8px 32px 8px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.fee-status-select + .muted { display: block; margin-top: 4px; }
.monthly-fee-table td:first-child { text-transform: capitalize; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.training-card { padding: 19px; }
.training-card header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.training-card h3 { margin: 0; }
.training-schedule { flex: 0 0 auto; color: var(--brand); font-size: 12px; font-weight: 900; text-align: right; }
.training-duration { display: flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--brand); font-size: 13px; font-weight: 900; }
.training-meta { display: grid; gap: 9px; margin: 19px 0; color: var(--muted); font-size: 13px; }
.training-actions { display: flex; gap: 8px; }
.training-actions button { flex: 1; }
.accounting-periods { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.accounting-periods button { min-height: 38px; flex: 0 0 auto; padding: 0 14px; }
.accounting-month-filter { flex: 0 0 auto; }
.accounting-month-filter select { min-height: 38px; min-width: 172px; }
.accounting-period-indicator { margin: -2px 0 2px; color: var(--muted); font-size: 13px; }
.accounting-period-indicator strong { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.ledger-entry { position: relative; display: grid; grid-template-columns: 90px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 15px 58px 15px 20px; border-bottom: 1px solid var(--line); }
.ledger-date { display: grid; justify-items: start; gap: 7px; }
.ledger-details { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ledger-menu-button { position: absolute; top: 9px; right: 12px; width: 36px; height: 32px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 17px; font-weight: 900; letter-spacing: 1px; }
.ledger-menu-button:hover, .ledger-menu-button:focus-visible, .ledger-entry.show-actions .ledger-menu-button { color: var(--brand-dark); background: var(--brand-soft); }
.ledger-actions { position: absolute; z-index: 4; top: 45px; right: 12px; display: none; min-width: 190px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 14px 35px rgba(71, 61, 50, .16); gap: 8px; }
.ledger-actions button { flex: 1; }
.ledger-entry.show-actions .ledger-actions { display: flex; }
.entry-type { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.entry-type.income { color: var(--brand-dark); background: var(--brand-soft); }
.entry-type.expense { color: #cd120a; background: #fde7e5; }
.ledger-amount { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.amount { font-weight: 900; }
.amount.income { color: var(--brand); }
.amount.expense { color: var(--danger); }
.notification-compose-disclosure > summary { min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 16px 20px; list-style: none; cursor: pointer; }
.notification-compose-disclosure > summary::-webkit-details-marker { display: none; }
.notification-compose-disclosure > summary h3 { margin: 0; font-size: 16px; }
.notification-compose-disclosure > summary .status { margin-left: auto; }
.disclosure-chevron { color: var(--brand); font-size: 22px; font-weight: 900; line-height: 1; transform: rotate(0); transition: transform .2s ease; }
.notification-compose-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.notification-compose-disclosure[open] .disclosure-chevron { transform: rotate(180deg); }
.notification-compose-disclosure > summary:focus-visible { outline: 3px solid rgba(57, 117, 143, .2); outline-offset: -3px; }
.notification-compose { padding: 20px; display: grid; gap: 14px; }
.compose-actions { display: flex; justify-content: flex-end; }
.notification-list-row { position: relative; align-items: start; padding-right: 76px; }
.notification-list-content { display: grid; gap: 5px; min-width: 0; }
.notification-list-content p { margin: 0; color: var(--ink); line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }
.notification-delete-button { position: absolute; top: 9px; right: 12px; min-height: 30px; padding: 5px 10px; border: 1px solid #f3b6b1; border-radius: 9px; color: #b90f08; background: #fff4f3; font-size: 11px; font-weight: 900; cursor: pointer; }
.notification-delete-button:hover, .notification-delete-button:focus-visible { color: white; border-color: #cd120a; background: #cd120a; }
.notification-metrics { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: nowrap; }
.notification-delivery-status { color: #17603a; background: #e8f6ee; white-space: nowrap; }
.notification-read-status { white-space: nowrap; }
.push-permission-card { overflow: visible; }
.push-permission-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 20px; }
.push-permission-copy { display: grid; gap: 4px; }
.push-permission-copy strong { color: var(--ink); font-size: 15px; }
.push-permission-copy small { color: var(--muted); line-height: 1.4; }
.dashboard-notification-prompt { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 20px; border-color: rgba(205,18,10,.22); background: linear-gradient(135deg, rgba(205,18,10,.08), rgba(255,255,255,.96)); }
.dashboard-notification-prompt-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: white; background: var(--brand); }
.dashboard-notification-prompt-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-notification-prompt-copy { display: grid; gap: 5px; }
.dashboard-notification-prompt-copy strong { color: var(--ink); font-size: 16px; }
.dashboard-notification-prompt-copy small { color: var(--muted); line-height: 1.45; }
.dashboard-notification-prompt-actions { display: flex; align-items: center; gap: 8px; }
.push-switch-control { position: relative; display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; color: var(--brand-dark); font-size: 13px; font-weight: 800; cursor: pointer; }
.push-switch-control input { position: absolute; right: 0; width: 48px; height: 26px; margin: 0; padding: 0; opacity: 0; cursor: pointer; z-index: 1; }
.push-switch-control input:disabled { cursor: wait; }
.push-switch-track { position: relative; display: inline-flex; width: 48px; height: 26px; padding: 3px; border-radius: 999px; background: #c8d0cc; transition: background .2s ease; }
.push-switch-thumb { width: 20px; height: 20px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0, 0, 0, .22); transform: translateX(0); transition: transform .2s ease; }
.push-switch-control input:checked + .push-switch-track { background: var(--brand); }
.push-switch-control input:checked + .push-switch-track .push-switch-thumb { transform: translateX(22px); }
.push-switch-control input:focus-visible + .push-switch-track { outline: 3px solid rgba(57, 117, 143, .22); outline-offset: 2px; }
.push-switch-control input:disabled + .push-switch-track { opacity: .58; }
.parent-hero { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 24px; color: white; background: linear-gradient(120deg, var(--brand-dark), var(--brand)); border: 0; }
.parent-hero .profile-avatar { width: 62px; height: 62px; background: var(--lime); color: white; font-size: 21px; }
.parent-hero h2 { margin: 0 0 5px; }
.parent-hero p { margin: 0; opacity: .75; }
.parent-hero-actions { display: flex; align-items: flex-end; gap: 10px; }
.parent-student-switcher { min-width: 190px; color: inherit; font-size: 11px; }
.parent-student-switcher select { min-height: 34px; padding: 7px 34px 7px 10px; color: var(--ink); background-color: var(--panel); font-size: 12px; }
dialog { width: min(720px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(45,42,37,.62); backdrop-filter: blur(3px); }
.player-card-dialog { width: min(760px, calc(100% - 24px)); max-height: 94svh; overflow-y: auto; background: #f4f0e8; }
.player-card-dialog-shell { display: grid; gap: 18px; padding: 22px; }
.player-card-dialog-heading { position: sticky; top: -22px; z-index: 6; margin: -22px -22px 0; padding: 20px 22px 14px; background: rgba(244,240,232,.94); backdrop-filter: blur(12px); }
.player-card-dialog-actions { display: flex; justify-content: center; }
.player-card-dialog-actions .secondary-button { min-width: 180px; }
.fut-player-card { position: relative; isolation: isolate; width: min(360px, 100%); min-height: 520px; overflow: hidden; margin: 0 auto; padding: 46px 34px 34px; border: 4px solid #ad8a32; border-radius: 44% 44% 24% 24% / 15% 15% 10% 10%; color: #5a471c; background: radial-gradient(circle at 50% 18%, rgba(255,255,255,.96), rgba(255,251,232,.72) 31%, transparent 32%), linear-gradient(145deg, #fffdf4 8%, #ded3ad 42%, #fffef7 64%, #c9b574 100%); box-shadow: inset 0 0 0 3px #f8e9a4, inset 0 0 0 7px rgba(112,84,22,.46), 0 26px 55px rgba(72,55,22,.28); }
.fut-player-card::before { content: ""; position: absolute; inset: 12px; z-index: -1; border: 1px solid rgba(135,103,31,.5); border-radius: inherit; background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.7) 42%, transparent 57%); pointer-events: none; }
.fut-player-card::after { content: ""; position: absolute; inset: auto -12% -23% 18%; z-index: -1; height: 58%; background: repeating-linear-gradient(-18deg, rgba(169,133,43,.22) 0 4px, transparent 4px 18px); transform: skewY(-8deg); pointer-events: none; }
.fut-card-topline { position: absolute; inset: 52px 38px auto; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; }
.fut-card-rating { display: grid; justify-items: center; line-height: 1; text-shadow: 0 1px rgba(255,255,255,.7); }
.fut-card-rating strong { font-family: "Anta", var(--font); font-size: 52px; font-weight: 500; }
.fut-card-rating span { margin-top: 4px; font-size: 19px; font-weight: 900; }
.fut-card-brand { display: grid; place-items: center; min-height: 36px; padding: 0 10px; border: 2px solid #9e7b24; border-radius: 9px; color: white; background: #cd120a; box-shadow: 0 5px 12px rgba(80,54,12,.2); font-family: "Anta", var(--font); font-size: 12px; letter-spacing: .04em; }
.fut-card-photo { width: 82%; height: 224px; overflow: hidden; margin: 54px auto 0; border-bottom: 2px solid rgba(133,102,30,.56); display: grid; place-items: end center; }
.fut-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.82) contrast(1.03); -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); }
.player-card-photo-fallback { display: grid; place-items: center; width: 78%; aspect-ratio: 1; margin-bottom: 16px; border-radius: 50%; color: #8e773c; background: rgba(255,255,255,.42); }
.player-card-photo-fallback svg { width: 65%; fill: none; stroke: currentColor; stroke-width: 1.6; }
.fut-card-name { overflow: hidden; margin: 8px 18px 0; padding-bottom: 8px; border-bottom: 1px solid rgba(132,101,31,.5); font-family: "Anta", var(--font); font-size: 25px; font-weight: 700; letter-spacing: .025em; line-height: 1.05; text-align: center; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.fut-card-meta { display: flex; justify-content: center; gap: 8px; margin: 7px 0 9px; color: #80682c; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.fut-card-meta span + span::before { content: "•"; margin-right: 8px; }
.fut-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 38px; width: 82%; margin: 0 auto; font-size: 16px; font-weight: 800; }
.fut-card-stats span { display: flex; align-items: baseline; gap: 7px; }
.fut-card-stats strong { min-width: 25px; font-family: "Anta", var(--font); font-size: 22px; font-weight: 500; }
.fut-card-unrated { width: max-content; margin: 12px auto 0; padding: 5px 10px; border: 1px solid rgba(128,101,42,.35); border-radius: 999px; color: #80682c; background: rgba(255,255,255,.46); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.fut-player-card.is-unrated .fut-card-stats { opacity: .58; }
.player-card-edit-form { display: grid; gap: 16px; padding: 18px; border: 1px solid #d3c49a; border-radius: 15px; background: rgba(255,253,249,.9); }
.player-card-form-heading { display: grid; gap: 4px; }
.player-card-form-heading small { color: var(--muted); }
.player-card-rating-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.player-card-rating-grid label { min-width: 0; }
.player-card-rating-grid input { text-align: center; font-size: 18px; font-weight: 900; }
.dialog-form { padding: 24px; display: grid; gap: 22px; }
.dialog-form-message { padding: 11px 13px; border: 1px solid #efb9b5; border-radius: 10px; color: #a20f09; background: #fde7e5; font-size: 12px; font-weight: 700; line-height: 1.45; }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.dialog-heading h2 { margin: 5px 0 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.full-field { grid-column: 1 / -1; }
.student-prepayment-disclosure { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--brand-soft); }
.student-prepayment-disclosure summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; }
.student-prepayment-disclosure summary::-webkit-details-marker { display: none; }
.student-prepayment-disclosure summary > span:first-child { font-weight: 800; }
.student-prepayment-disclosure summary small { color: var(--muted); font-size: 12px; font-weight: 700; }
.student-prepayment-disclosure[open] .disclosure-chevron { transform: rotate(180deg); }
.student-prepayment-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, .5fr); gap: 16px; padding: 0 16px 16px; border-top: 1px solid var(--line); }
.student-prepayment-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 16px; }
.student-prepayment-month { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; }
.student-prepayment-month input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.student-prepayment-month span { font-size: 13px; font-weight: 800; text-transform: capitalize; }
.student-prepayment-month small { color: var(--muted); font-size: 11px; }
.student-prepayment-content > label { align-self: start; padding-top: 16px; }
.student-prepayment-total { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; color: white; background: var(--brand-dark); }
.student-prepayment-total span { font-size: 13px; font-weight: 700; }
.student-prepayment-total strong { font-size: 18px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }
.training-dialog-actions { flex-wrap: wrap; }
.dialog-delete-button { margin-right: auto; }
.attendance-list { display: grid; max-height: 50vh; overflow-y: auto; border-top: 1px solid var(--line); }
.attendance-item { min-height: 52px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.attendance-item input { width: 19px; height: 19px; }
.student-profile-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; padding: 24px; }
.student-profile-hero .profile-avatar { width: 66px; height: 66px; font-size: 22px; }
.student-icon-avatar svg { width: 80%; height: 80%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.student-photo-field { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.student-photo-preview { width: 92px; height: 92px; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 18px; color: var(--brand); background: var(--brand-soft); }
.student-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.student-photo-preview svg { width: 70%; height: 70%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.student-photo-controls { display: grid; gap: 5px; min-width: 0; }
.student-photo-controls > span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.student-photo-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.student-photo-actions .secondary-button { width: max-content; cursor: pointer; }
.student-photo-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.student-profile-hero h2 { margin: 5px 0; font-size: 28px; }
.student-profile-hero p { margin: 0; color: var(--muted); }
.profile-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.detail-list { display: grid; margin: 0; padding: 4px 20px 16px; }
.detail-list div { display: grid; grid-template-columns: minmax(120px, .65fr) minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail-list div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: 13px; }
.detail-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.detail-list a { color: var(--brand); }
.student-timeline { display: grid; margin: 0; padding: 8px 22px 20px; list-style: none; }
.student-timeline li { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; min-height: 86px; padding-top: 16px; }
.student-timeline li:not(:last-child)::after { content: ""; position: absolute; top: 34px; bottom: -16px; left: 7px; width: 2px; background: var(--line); }
.timeline-dot { position: relative; z-index: 1; width: 16px; height: 16px; margin-top: 2px; border: 4px solid var(--brand-soft); border-radius: 50%; background: var(--brand); }
.student-timeline li.negative .timeline-dot { border-color: #fde7e5; background: var(--danger); }
.student-timeline li.neutral .timeline-dot { border-color: #e8f1ff; background: #3976b8; }
.timeline-content { display: grid; align-content: start; gap: 4px; }
.timeline-content time { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: capitalize; }
.timeline-content strong { font-size: 15px; }
.timeline-content small { color: var(--muted); line-height: 1.45; }
.student-timeline .timeline-empty { display: block; min-height: auto; padding: 20px 0; color: var(--muted); text-align: center; }
.student-timeline-actions { display: flex; justify-content: center; padding: 0 22px 20px; }
.empty-state { padding: 24px; color: var(--muted); text-align: center; }
.toast { position: fixed; top: calc(18px + env(safe-area-inset-top)); right: 22px; bottom: auto; z-index: 2147483000; max-width: min(440px, calc(100% - 44px)); min-height: 48px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 13px; color: white; background: var(--ink); box-shadow: 0 16px 42px rgba(32,28,24,.3); font-weight: 800; line-height: 1.45; opacity: 0; transform: translateY(-14px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: #176b45; box-shadow: 0 16px 42px rgba(23,107,69,.38); }
.install-prompt { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px 14px; width: min(470px, calc(100% - 32px)); padding: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; color: white; background: linear-gradient(135deg, #564f46, #27576b); box-shadow: 0 22px 60px rgba(56,47,39,.34); }
.install-prompt-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; color: transparent; background: #ffffff url("sasa-f-icon-v3.svg?v=2026.08.02.192") center/cover no-repeat; font-family: "Anta", sans-serif; font-size: 18px; }
.install-prompt-copy { display: grid; gap: 4px; align-content: center; }
.install-prompt-copy strong { font-size: 16px; }
.install-prompt-copy span { color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.4; }
.install-prompt-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.install-prompt-actions .primary-button, .install-prompt-actions .secondary-button { min-height: 38px; padding: 8px 13px; }
.install-prompt-actions .secondary-button { color: white; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
.install-prompt-dismiss { min-height: 38px; padding: 7px 10px; border: 0; color: rgba(255,255,255,.72); background: transparent; font-weight: 700; cursor: pointer; }
.bottom-nav, .sidebar-scrim { display: none; }
@keyframes mobile-tab-enter-next { from { opacity: .68; transform: translateX(22px); } to { opacity: 1; transform: translateX(0); } }
@keyframes mobile-tab-enter-previous { from { opacity: .68; transform: translateX(-22px); } to { opacity: 1; transform: translateX(0); } }
@media (min-width: 821px) {
  .sidebar { padding-top: 96px; }
  .app-banner { width: calc(100% + 248px); margin-left: -248px; z-index: 31; }
}
@media (max-width: 1080px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .school-create-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .auth-screen { grid-template-columns: 1fr; gap: 34px; }
  .data-save-loading { grid-template-columns: 1fr; align-content: center; gap: 26px; padding: 24px 16px; }
  .data-save-loading-brand { justify-content: center; font-size: 30px; }
  .data-save-loading-card { padding: 28px 24px; text-align: center; }
  .auth-brand { justify-content: center; }
  .auth-brand .brand-mark { width: 70px; font-size: 31px; }
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; transform: translateX(-102%); width: 270px; transition: transform .22s ease; }
  .sidebar-brand { display: flex; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 25; border: 0; background: rgba(0,0,0,.4); }
  .sidebar.open + .content-shell + .sidebar-scrim { display: block; }
  .mobile-menu { display: grid; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .profile-details-grid { grid-template-columns: 1fr; }
  .app-banner, .topbar { padding-inline: 14px; }
  .app-version-label, .app-banner-build { right: 14px; }
  .approval-row { grid-template-columns: 1fr; }
  .approval-actions button { flex: 1; }
  .school-management-grid { grid-template-columns: 1fr; }
  .subscription-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subscription-school-row { grid-template-columns: minmax(160px, 1.3fr) repeat(2, minmax(100px, .7fr)); }
  .subscription-school-row > :nth-child(4), .subscription-school-row > :nth-child(5) { display: none; }
  #appContent { padding-bottom: 88px; }
  #appContent.mobile-tab-swipe-next { animation: mobile-tab-enter-next .2s ease-out; }
  #appContent.mobile-tab-swipe-previous { animation: mobile-tab-enter-previous .2s ease-out; }
  .bottom-nav { position: fixed; inset: auto 0 0; z-index: 22; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: rgba(255,253,249,.96); backdrop-filter: blur(12px); }
  .bottom-nav .nav-button { min-height: 52px; justify-content: center; flex-direction: column; gap: 2px; padding: 4px; color: var(--muted); font-size: 10px; }
  .bottom-nav .nav-button.active { color: var(--brand); background: var(--brand-soft); }
  .bottom-nav .nav-icon { height: 20px; }
  .toast { top: calc(12px + env(safe-area-inset-top)); right: 14px; bottom: auto; left: 14px; max-width: none; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  #appContent.mobile-tab-swipe-next, #appContent.mobile-tab-swipe-previous { animation: none; }
}
@media (max-width: 620px) {
  .auth-screen { padding: 24px 16px; }
  .player-card-dialog { width: calc(100% - 16px); max-height: 96svh; }
  .player-card-dialog-shell { gap: 14px; padding: 16px 12px 18px; }
  .player-card-dialog-heading { top: -16px; margin: -16px -12px 0; padding: 15px 14px 12px; }
  .fut-player-card { width: min(304px, 100%); min-height: 448px; padding: 39px 25px 26px; border-width: 3px; }
  .fut-card-topline { inset: 44px 29px auto; }
  .fut-card-rating strong { font-size: 44px; }
  .fut-card-rating span { font-size: 16px; }
  .fut-card-brand { min-height: 32px; font-size: 10px; }
  .fut-card-photo { height: 178px; margin-top: 49px; }
  .fut-card-name { margin-inline: 10px; font-size: 21px; }
  .fut-card-meta { margin-block: 5px 7px; font-size: 10px; }
  .fut-card-stats { gap: 3px 28px; font-size: 14px; }
  .fut-card-stats strong { font-size: 19px; }
  .fut-card-unrated { margin-top: 8px; }
  .player-card-rating-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .auth-brand { justify-content: flex-start; }
  .brand-name { font-size: 40px; }
  .auth-brand p { font-size: 14px; }
  .app-banner { min-height: 64px; }
  .app-banner-home { max-width: 100%; gap: 7px; padding-right: 82px; }
  .banner-mark { width: 34px; flex-basis: 34px; border-radius: 9px; font-size: 15px; }
  .app-banner-brand-copy strong { font-size: 19px; }
  .app-banner-brand-copy small { font-size: 10px; }
  .app-banner-build { min-height: 21px; top: 26px; right: 14px; padding-inline: 6px; font-size: 9px; }
  .app-version-label { top: 8px; font-size: 9px; }
  .topbar { top: 64px; }
  #monthlyFeeSection { scroll-margin-top: 162px; }
  .global-back-button span { display: none; }
  .global-back-button { width: 38px; justify-content: center; padding: 0; }
  .topbar p, .topbar select:not(.role-preview-select) { display: none; }
  .topbar .role-preview-select { min-width: 112px; max-width: 122px; height: 34px; padding: 0 28px 0 10px; font-size: 11px; }
  .school-switcher { display: none; }
  .current-school-name { display: none; }
  .topbar.has-school-switcher { flex-wrap: wrap; gap: 8px 10px; }
  .topbar.has-school-switcher .topbar-actions { width: 100%; flex: 0 0 100%; order: 2; margin-left: 0; }
  .topbar.has-school-switcher .school-switcher { min-width: 0; flex: 1 1 auto; display: flex; }
  .topbar.has-school-switcher .school-switcher > span { display: none; }
  .topbar.has-school-switcher .school-switcher select { width: 100%; min-width: 0; max-width: none; display: block; }
  .topbar.has-current-school-name .topbar-actions { margin-left: auto; min-width: 0; }
  .topbar.has-current-school-name .current-school-name { display: block; max-width: min(150px, 38vw); padding: 7px 10px; font-size: 11px; }
  .topbar h1 { font-size: 18px; }
  .accounting-settings-panel { padding: 14px; }
  .accounting-settings-form { grid-template-columns: minmax(0, 1fr) 144px auto; gap: 8px; }
  .accounting-settings-form > label { font-size: 12px; }
  .accounting-settings-form .primary-button { padding-inline: 10px; }
  .group-settings-form { grid-template-columns: 1fr; padding-inline: 14px; }
  .group-settings-list { padding-inline: 14px; }
  .group-settings-hint { padding-inline: 14px; }
  .stats-grid, .card-grid, .form-grid { grid-template-columns: 1fr; }
  .school-platform-summary, .school-create-form, .subscription-summary-grid { grid-template-columns: 1fr; }
  .school-management-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subscription-plan-grid { grid-template-columns: 1fr; }
  .settings-hub-grid { grid-template-columns: 1fr; }
  .bank-settings-panel { padding: 18px; }
  .bank-account-settings-list { grid-template-columns: 1fr; }
  .bank-settings-actions { align-items: stretch; }
  .bank-settings-actions .primary-button, .bank-settings-actions .secondary-button { width: 100%; margin-left: 0; }
  .subscription-plan-card { padding: 18px; }
  .subscription-school-list { padding-inline: 18px; }
  .subscription-school-list > .empty-state { padding-inline: 0; }
  .subscription-school-row { grid-template-columns: 1fr auto; gap: 10px; }
  .subscription-school-row > :nth-child(2), .subscription-school-row > :nth-child(4), .subscription-school-row > :nth-child(5) { display: none; }
  .student-prepayment-content, .student-prepayment-months { grid-template-columns: 1fr; }
  .student-photo-field { grid-template-columns: 72px minmax(0, 1fr); padding: 12px; }
  .student-photo-preview { width: 72px; height: 72px; border-radius: 14px; }
  .student-prepayment-disclosure summary { grid-template-columns: minmax(0, 1fr) auto; }
  .student-prepayment-disclosure summary small { grid-column: 1; grid-row: 2; }
  .student-prepayment-disclosure summary .disclosure-chevron { grid-column: 2; grid-row: 1 / span 2; }
  .parent-dashboard-stats { grid-template-columns: 1fr; }
  .parent-payment-choice-grid { grid-template-columns: 1fr; }
  .parent-payment-summary { align-items: flex-start; padding: 17px; }
  .parent-payment-summary > strong { font-size: 21px; text-align: right; }
  .parent-payment-option { min-height: 104px; padding: 16px; }
  .payment-safety-note { grid-template-columns: 1fr; }
  .payment-safety-note strong { white-space: normal; }
  .parent-bank-details { grid-template-columns: 1fr; }
  .parent-bank-details .parent-bank-iban { grid-column: auto; }
  .demo-payment-card { padding: 20px; border-radius: 16px; }
  .club-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .club-summary-grid .stat-card { padding: 15px; }
  .club-summary-grid .stat-card strong { font-size: 22px; }
  .profile-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .profile-stats-grid .stat-card { min-height: 142px; padding: 15px; }
  .profile-stats-grid .stat-card strong { font-size: 22px; }
  .full-field { grid-column: auto; }
  .list-row { grid-template-columns: 58px minmax(0,1fr); }
  .training-summary-row { grid-template-columns: 96px minmax(0, 1fr); }
  .list-row > :last-child { grid-column: 2; justify-self: start; }
  .notification-list-row > .status, .notification-list-row > .notification-metrics { grid-column: 2; justify-self: start; }
  .notification-metrics { justify-content: flex-start; }
  .fee-month-badges { justify-content: flex-start; }
  .parent-hero { grid-template-columns: auto 1fr; }
  .student-profile-hero { grid-template-columns: auto 1fr; }
  .parent-hero > :last-child { grid-column: 1 / -1; width: 100%; }
  .parent-hero-actions { align-items: stretch; }
  .parent-student-switcher { flex: 1; min-width: 0; }
  .ledger-entry { grid-template-columns: 72px minmax(0,1fr); }
  .ledger-entry .ledger-amount { grid-column: 2; justify-content: flex-start; }
  .dialog-actions button { flex: 1; }
  .training-list-toolbar { flex-wrap: nowrap; gap: 8px; }
  .attendance-history-filter { align-items: stretch; }
  .attendance-history-filter label { width: 100%; }
  .attendance-history-filter select { flex: 1; min-width: 0; }
  .training-list-toolbar .students-active-filter { min-width: 0; flex: 1; font-size: 11px; }
  .training-list-toolbar .students-active-filter span { line-height: 1.2; }
  .training-sort-control { width: auto; flex: 0 0 auto; justify-content: flex-end; gap: 5px; }
  .training-sort-control > span { display: none; }
  .training-sort-control select { width: 132px; min-width: 0; max-width: 132px; padding-inline: 8px; }
  .push-permission-row { gap: 12px; }
  .push-permission-copy small { max-width: 220px; }
  .dashboard-notification-prompt { grid-template-columns: 42px minmax(0, 1fr); }
  .dashboard-notification-prompt-icon { width: 42px; height: 42px; }
  .dashboard-notification-prompt-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .dashboard-notification-prompt-actions button { width: 100%; }
  .install-prompt { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .install-prompt-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .install-prompt-actions .primary-button, .install-prompt-actions .secondary-button { width: 100%; }
  .install-prompt-dismiss { grid-column: 1 / -1; }
}
html.show-domain-maintenance body > :not(#domainMaintenance) { display: none !important; }
.domain-maintenance { display: none; min-height: 100dvh; place-items: center; padding: 24px; background: radial-gradient(circle at 18% 18%, rgba(66, 130, 154, .34), transparent 38%), linear-gradient(135deg, #154b63, #39758f 58%, #a4141a); color: #fff; }
html.show-domain-maintenance .domain-maintenance { display: grid; }
.domain-maintenance-card { width: min(100%, 560px); padding: clamp(34px, 8vw, 64px); text-align: center; border: 1px solid rgba(255,255,255,.28); border-radius: 30px; background: rgba(255,255,255,.12); box-shadow: 0 24px 64px rgba(1,22,30,.28); backdrop-filter: blur(10px); }
.domain-maintenance-mark { display: grid; width: 78px; height: 78px; place-items: center; margin: 0 auto 24px; border-radius: 24px; background: #d90810; box-shadow: inset 0 -7px 12px rgba(87,0,0,.24), 0 10px 20px rgba(0,0,0,.18); color: white; font: italic 900 32px/1 Roboto, sans-serif; letter-spacing: -5px; padding-right: 5px; }
.domain-maintenance .eyebrow { color: #dcecf2; }
.domain-maintenance h1 { margin: 10px 0 14px; font-size: clamp(30px, 7vw, 48px); line-height: 1.04; }
.domain-maintenance p { max-width: 400px; margin: 0 auto 22px; color: rgba(255,255,255,.9); font-size: 18px; line-height: 1.55; }
.domain-maintenance small { color: rgba(255,255,255,.7); }
