/* v139: one shared visual layer; legacy styles are retained for compatibility. */
body.aya-refined {
  --aya-accent: #ba1426;
  --aya-ink: #17202b;
  --aya-muted: #66717f;
  --aya-line: #e3e7ec;
  --aya-surface: #f4f6f8;
  --club-red: #ba1426;
  --brand: #ba1426;
  --brand-rgb: 186, 20, 38;
  margin: 0;
  background: var(--aya-surface) !important;
  color: var(--aya-ink);
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: 16px;
  line-height: 1.5;
  height: auto !important;
  overflow-y: auto !important;
}
.aya-refined *, .aya-refined *::before, .aya-refined *::after { box-sizing: border-box; }
.aya-refined button, .aya-refined input, .aya-refined select, .aya-refined textarea { font-family: inherit !important; }
.aya-refined button { cursor: pointer; }
.aya-refined button:disabled { cursor: wait; opacity: .55; }
.aya-refined :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #2876bf !important; outline-offset: 3px; }
.aya-refined :is(.primary-button, .mobile-form-save, .mobile-fixed-action button) {
  background: var(--aya-accent) !important; color: #fff !important;
  border: 1px solid var(--aya-accent) !important; border-radius: 10px !important;
  box-shadow: none !important; font-weight: 650 !important; min-height: 44px;
}
.aya-refined :is(.primary-button, .mobile-fixed-action button):hover { background: #981122 !important; }
.aya-refined :is(h1,h2,h3,h4,strong,b) { text-shadow: none !important; letter-spacing: normal !important; }
.aya-refined :is(.row-avatar, .mobile-avatar) { background: #eef0f3 !important; color: #3b4654 !important; box-shadow: none !important; }
.aya-refined .aya-icon { display: inline-flex; width: 22px; height: 22px; flex: 0 0 22px; align-items: center; justify-content: center; }
.aya-refined .aya-icon svg { width: 22px; height: 22px; }
.aya-refined .aya-sync { font-size: 12px; color: #566472; padding: 7px 0; min-height: 32px; }
.aya-refined .aya-sync[data-state="error"] { color: #a11223; }
.aya-refined .aya-sync[data-state="saving"], .aya-refined .aya-sync[data-state="warning"] { color: #8b570d; }
.aya-refined .aya-sync[data-state="saved"] { color: #147344; }
.aya-refined .aya-sync-mobile { display: none; }
.aya-refined .notification-button, .aya-refined .mobile-notification-btn { position: relative !important; }
.aya-refined .notification-button::before, .aya-refined .notification-button::after,
.aya-refined .mobile-notification-badge { content: none !important; display: none !important; }
.aya-refined .notification-button > span:not(.aya-notification-count) { display: none !important; }
.aya-refined .aya-notification-count {
  position: absolute !important; right: -3px !important; top: -4px !important;
  display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px !important;
  background: #ba1426 !important; color: white !important; font-size: 11px !important;
  line-height: 1 !important; border-radius: 20px !important; border: 2px solid white;
}
.aya-refined .aya-notification-count[hidden] { display: none !important; }
.aya-refined .aya-more { position: relative; }
.aya-refined .aya-more summary { list-style: none; cursor: pointer; padding: 10px 12px; border: 1px solid var(--aya-line); border-radius: 8px; }
.aya-refined .aya-more summary::-webkit-details-marker { display: none; }
.aya-refined .aya-more > div { position: absolute; z-index: 20; top: 100%; right: 0; min-width: 160px; padding: 8px; border: 1px solid var(--aya-line); border-radius: 10px; background: white; box-shadow: 0 8px 24px #17202b18; }
.aya-refined .aya-more button { display: block; width: 100%; margin: 3px 0; }

@media (min-width: 769px) {
  .aya-refined #appShell { display: grid !important; grid-template-columns: 228px minmax(0,1fr) !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; gap: 0 !important; overflow: visible !important; }
  .aya-refined #appShell { height: auto !important; min-height: 100dvh !important; grid-template-rows: auto !important; align-items: start !important; }
  .aya-refined #appShell > .topbar { position: sticky !important; top: 0 !important; grid-column: 1; grid-row: 1 / span 2; width: 228px !important; height: 100dvh !important; min-height: 0 !important; overflow-y: auto !important; border: 0 !important; border-radius: 0 !important; padding: 24px 16px !important; background: #131920 !important; box-shadow: none !important; display: flex !important; flex-direction: column !important; justify-content: flex-start !important; gap: 24px !important; }
  .aya-refined .topbar::before, .aya-refined .topbar::after, .aya-refined .brand::before, .aya-refined .brand::after { content: none !important; }
  .aya-refined .brand { display: flex !important; flex-direction: row !important; gap: 12px !important; align-items: center !important; text-align: left !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
  .aya-refined .brand-logo { width: 48px !important; height: 48px !important; min-width: 48px !important; border: 0 !important; border-radius: 50% !important; box-shadow: none !important; }
  .aya-refined .brand h1 { font-size: 13px !important; line-height: 1.4 !important; font-weight: 600 !important; color: #fff !important; text-transform: none !important; }
  .aya-refined .brand .eyebrow { display: none !important; }
  .aya-refined .tabs { display: flex !important; flex-direction: column !important; position: static !important; width: 100% !important; background: none !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; margin: 0 !important; gap: 5px !important; box-shadow: none !important; }
  .aya-refined .tabs .tab { display: flex !important; align-items: center !important; gap: 12px !important; padding: 11px 13px !important; min-height: 46px !important; width: 100% !important; color: #c4cbd4 !important; border: 0 !important; border-radius: 8px !important; background: transparent !important; font-size: 14px !important; font-weight: 500 !important; text-align: left !important; box-shadow: none !important; }
  .aya-refined .tabs .tab::before, .aya-refined .tabs .tab::after { display: none !important; content: none !important; }
  .aya-refined .tabs .tab.active { background: #ba1426 !important; color: white !important; font-weight: 650 !important; }
  .aya-refined .tabs .tab:hover:not(.active) { background: #ffffff0d !important; color: white !important; }
  .aya-refined .sidebar-quick { display: none !important; }
  .aya-refined .top-actions { order: 3; margin-top: auto !important; display: flex !important; flex-wrap: wrap; gap: 8px; }
  .aya-refined .top-actions .ghost-button { color: #fff !important; background: #232b35 !important; border: 1px solid #3a4350 !important; }
  .aya-refined #appShell > main { display: block !important; height: auto !important; background: var(--aya-surface) !important; grid-column: 2; min-width: 0 !important; width: 100% !important; max-width: 1600px !important; margin: 0 auto !important; padding: 24px 28px 40px !important; overflow: visible !important; }
  .aya-refined .scope-panel { display: grid !important; grid-template-columns: minmax(0,1fr) minmax(160px,240px) auto !important; gap: 24px !important; align-items: center !important; padding: 0 0 20px !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--aya-line) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 0 !important; }
  .aya-refined .scope-panel::before, .aya-refined .scope-panel::after { content: none !important; }
  .aya-refined .scope-panel { position: static !important; }
  .aya-refined .scope-title h2 { font-size: 18px !important; line-height: 1.35 !important; font-weight: 700 !important; }
  .aya-refined .scope-title > strong { display: none !important; }
  .aya-refined .scope-user-actions { background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
  .aya-refined .scope-user-actions::before, .aya-refined .scope-user-actions::after { content: none !important; }
  .aya-refined #homeView.active { display: grid !important; grid-template-columns: minmax(0,1fr) !important; grid-template-areas: "summary" "daily" "dashboard" !important; gap: 20px !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
  .aya-refined .summary-grid { grid-area: summary; display: grid !important; grid-template-columns: repeat(5,minmax(0,1fr)) !important; gap: 12px !important; padding: 0 !important; background: none !important; border: 0 !important; margin: 0 !important; }
  .aya-refined .summary-grid::before, .aya-refined .summary-grid::after { content: none !important; }
  .aya-refined .summary-grid .metric { min-width: 0 !important; min-height: 140px !important; padding: 18px 16px !important; border: 1px solid var(--aya-line) !important; border-radius: 12px !important; background: #fff !important; box-shadow: none !important; display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 6px !important; }
  .aya-refined .metric::before, .aya-refined .metric::after { content: none !important; }
  .aya-refined .metric .metric-icon { display: none !important; }
  .aya-refined .metric > strong { position: static !important; color: var(--aya-ink) !important; font-size: clamp(21px,2vw,28px) !important; font-weight: 700 !important; white-space: nowrap !important; line-height: 1.25 !important; }
  .aya-refined .metric > span, .aya-refined .metric > label { position: static !important; color: var(--aya-muted) !important; font-size: 13px !important; font-weight: 500 !important; }
  .aya-refined .metric > :is(span,strong,small) { margin: 0 !important; padding: 0 !important; width: auto !important; }
  .aya-refined .metric > small { position: static !important; display: flex !important; flex-wrap: wrap; gap: 6px !important; font-size: 12px !important; color: #66717f !important; }
  .aya-refined .home-daily-control { grid-area: daily; margin: 0 !important; padding: 18px !important; background: white !important; border: 1px solid var(--aya-line) !important; border-radius: 12px !important; box-shadow: none !important; }
  .aya-refined .home-daily-list { display: grid !important; grid-template-columns: repeat(auto-fit,minmax(min(240px,100%),1fr)) !important; gap: 12px !important; }
  .aya-refined .home-dashboard-grid { grid-area: dashboard; display: grid !important; grid-template-columns: minmax(0,1fr) minmax(0,1.25fr) !important; grid-template-areas: none !important; gap: 20px !important; width: 100% !important; min-width: 0 !important; }
  .aya-refined .home-dashboard-grid > *, .aya-refined .home-main-stack { min-width: 0 !important; width: 100% !important; display: flex !important; flex-direction: column !important; gap: 20px !important; grid-area: auto !important; }
  .aya-refined :is(.home-panel, .collection-summary-card, .view:not(.dashboard-view), .panel-head, .toolbar, .student-form) { min-width: 0 !important; max-width: 100% !important; background: #fff !important; border: 1px solid var(--aya-line) !important; border-radius: 12px !important; box-shadow: none !important; }
  .aya-refined .view:not(.dashboard-view) { padding: 22px !important; margin: 0 !important; }
  .aya-refined .panel-head { border: 0 !important; padding: 0 !important; margin-bottom: 22px !important; display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 16px !important; }
  .aya-refined .panel-head h2::before, .aya-refined .panel-head h2::after { display: none !important; content: none !important; }
  .aya-refined .panel-head h2 { font-size: 23px !important; font-weight: 700 !important; padding: 0 !important; }
  .aya-refined .home-panel { padding: 20px !important; }
  .aya-refined #homeGroupCards { display: grid !important; grid-template-columns: minmax(0,1fr) !important; gap: 10px !important; }
  .aya-refined #homeGroupCards > * { width: 100% !important; min-width: 0 !important; min-height: 96px !important; padding: 14px !important; background: #fafbfc !important; border: 1px solid var(--aya-line) !important; border-radius: 9px !important; box-shadow: none !important; }
  .aya-refined #homeGroupCards :is(strong,h3) { font-size: 16px !important; word-break: normal !important; overflow-wrap: anywhere; white-space: normal !important; font-weight: 650 !important; }
  .aya-refined .home-payments-panel > *, .aya-refined #homePaymentRows { min-width: 0 !important; width: 100% !important; }
  .aya-refined .home-payment-toolbar { display: block !important; padding: 0 !important; }
  .aya-refined .home-payment-toolbar > span:not(#homePaymentMonth) { display: none !important; }
  .aya-refined #homePaymentMonth { display: inline-block !important; border: 0 !important; background: transparent !important; padding: 0 !important; font-size: 13px !important; color: #66717f !important; box-shadow: none !important; }
  .aya-refined .home-payment-row { display: flex !important; flex-wrap: wrap; gap: 10px !important; min-width: 0 !important; padding: 12px 0 !important; }
  .aya-refined .home-payment-row > * { min-width: 0 !important; }
  .aya-refined .home-payment-row :is(strong,span) { white-space: normal !important; }
  .aya-refined .quick-dock, .aya-refined .mobile-home-quick { display: none !important; }
  .aya-refined #studentsView #studentForm:not(.aya-form-open) { display: none !important; }
  .aya-refined #studentsView #studentForm.aya-form-open { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 14px !important; padding: 18px !important; margin-bottom: 18px !important; }
  .aya-refined :is(input,select,textarea) { border: 1px solid #d9dfe6 !important; background: #fff !important; border-radius: 8px !important; color: var(--aya-ink) !important; font-size: 14px !important; min-height: 42px; box-shadow: none !important; max-width: 100%; }
  .aya-refined .toolbar { padding: 12px !important; gap: 10px !important; flex-wrap: wrap !important; margin-bottom: 20px !important; }
  .aya-refined #studentList .student-row { display: grid !important; grid-template-columns: 38px minmax(0,1fr) auto !important; gap: 14px !important; padding: 16px 0 !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--aya-line) !important; border-radius: 0 !important; box-shadow: none !important; background: white !important; overflow: visible !important; }
  .aya-refined .student-main { min-width: 0 !important; }
  .aya-refined .student-main > strong { font-size: 15px !important; font-weight: 650 !important; }
  .aya-refined .student-meta { display: flex !important; flex-wrap: wrap !important; gap: 5px !important; margin-top: 5px !important; }
  .aya-refined .student-meta .tag { font-size: 12px !important; font-weight: 500 !important; }
  .aya-refined .desktop-student-actions { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; }
  .aya-refined .desktop-student-actions :is(button,a) { font-size: 13px !important; min-height: 40px !important; padding: 8px 10px !important; border-radius: 8px !important; box-shadow: none !important; }
  .aya-refined :is(.payment-row,.attendance-row) { box-shadow: none !important; border-radius: 10px !important; border: 1px solid var(--aya-line) !important; }
  .aya-refined .payment-row { min-width: 0 !important; flex-wrap: wrap !important; }
  .aya-refined .payment-row :is(input,select) { min-width: 0 !important; }
  .aya-refined .mobile-student-actions { display: none !important; }
}
@media (min-width: 769px) and (max-width: 1180px) {
  .aya-refined #appShell { grid-template-columns: 208px minmax(0,1fr) !important; }
  .aya-refined #appShell > .topbar { width: 208px !important; }
  .aya-refined #appShell > main { padding: 20px !important; }
  .aya-refined .scope-panel { grid-template-columns: 1fr minmax(140px,200px) !important; gap: 12px !important; }
  .aya-refined .scope-user-actions { grid-column: 1 / -1; justify-self: end; }
  .aya-refined .summary-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
  .aya-refined .home-dashboard-grid { grid-template-columns: minmax(0,1fr) !important; }
  .aya-refined #studentList .student-row { grid-template-columns: 38px minmax(0,1fr) !important; }
  .aya-refined .desktop-student-actions { grid-column: 2; justify-content: flex-start !important; }
}

/* Shared feature surfaces, also used inside the mobile shell. */
.aya-refined .aya-feature-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.aya-refined .aya-feature-head h2 { margin: 3px 0; font-size: 24px; font-weight: 700; }
.aya-refined .aya-feature-head p, .aya-refined .aya-muted { font-size: 13px; color: var(--aya-muted); margin: 5px 0 14px; }
.aya-refined .aya-eyebrow { color: var(--aya-accent); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.aya-refined .aya-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.aya-refined :is(.aya-toolbar,.aya-session-actions,.aya-followup,.aya-dialog) button:not(.primary-button) { padding: 10px 13px; border: 1px solid var(--aya-line); border-radius: 8px; min-height: 42px; color: var(--aya-ink); background: white; font-size: 14px; font-weight: 600; }
.aya-refined .aya-toolbar button.active { background: #fff0f2; color: #a61023; border-color: #d9a8af; }
.aya-refined .aya-agenda, .aya-refined .aya-followups { display: grid; gap: 12px; }
.aya-refined .aya-session { display: grid; grid-template-columns: 140px minmax(0,1fr) auto; gap: 20px; align-items: center; padding: 18px; border: 1px solid var(--aya-line); border-left: 3px solid var(--aya-accent); border-radius: 10px; background: white; }
.aya-refined .aya-session-date { display: grid; gap: 3px; font-size: 14px; }
.aya-refined .aya-session h3, .aya-refined .aya-followup h3 { font-size: 16px; font-weight: 650; margin: 0; }
.aya-refined .aya-session p, .aya-refined .aya-followup p { font-size: 14px; margin: 3px 0; color: #566472; overflow-wrap: anywhere; }
.aya-refined .aya-session-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.aya-refined .aya-followup { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--aya-line); border-radius: 10px; }
.aya-refined .aya-followup small { font-size: 12px; color: var(--aya-muted); }
.aya-refined .aya-empty { padding: 28px 18px; border: 1px dashed #d7dde4; border-radius: 10px; text-align: center; color: var(--aya-muted); font-size: 14px; background: #fff; }
.aya-refined .aya-analytics { padding: 20px; margin: 0 0 22px; border: 1px solid var(--aya-line); background: white; border-radius: 12px; }
.aya-refined .aya-analytics h2 { font-size: 21px; margin: 0 0 15px; }
.aya-refined .aya-analytics h3 { font-size: 16px; margin: 22px 0 5px; }
.aya-refined .aya-report-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.aya-refined .aya-report-controls label, .aya-refined .aya-dialog label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #465262; }
.aya-refined .aya-report-controls :is(input,select), .aya-refined .aya-dialog :is(input,select) { width: 100%; min-width: 0; padding: 10px; min-height: 44px; border: 1px solid #d9dfe6; border-radius: 8px; background: #fff; font-size: 16px; }
.aya-refined .aya-bars { display: grid; gap: 14px; margin-top: 16px; }
.aya-refined .aya-bar-row { display: grid; grid-template-columns: 130px minmax(30px,1fr) 120px; gap: 12px; align-items: center; font-size: 13px; }
.aya-refined .aya-bar-row strong { text-align: right; font-weight: 650; }
.aya-refined .aya-bar-track { height: 12px; background: #f0f2f5; border-radius: 3px; overflow: hidden; }
.aya-refined .aya-bar-track span { display: block; height: 100%; background: var(--aya-accent); border-radius: 3px; }
.aya-refined .aya-participation > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.aya-refined .aya-participation meter { width: 100%; height: 14px; }
.aya-refined .aya-participation small { color: var(--aya-muted); font-size: 12px; }
.aya-refined .aya-dialog { color: var(--aya-ink); width: min(560px,calc(100% - 28px)); max-height: calc(100dvh - 40px); padding: 24px; border: 1px solid var(--aya-line); border-radius: 16px; box-shadow: 0 24px 80px #0003; }
.aya-refined .aya-dialog::backdrop { background: #11182788; }
.aya-refined .aya-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.aya-refined .aya-dialog header h2 { margin: 0; font-size: 22px; }
.aya-refined .aya-dialog form { display: grid; gap: 15px; }
.aya-refined .aya-dialog footer { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.aya-refined .aya-weekdays { border: 1px solid #d9dfe6; border-radius: 12px; padding: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.aya-refined .aya-weekdays label { display: flex; align-items: center; gap: 7px; padding: 8px; background: #f5f6f8; border-radius: 8px; }
.aya-refined .aya-weekdays input { width: 18px; min-height: 18px; accent-color: #cf1730; }
.aya-refined .aya-weekdays label:has(input:checked) { background: #ffeaee; color: #a70d25; }
.aya-refined [data-program-repeat][hidden] { display: none; }
.aya-refined .aya-dialog textarea { width: 100%; resize: vertical; border: 1px solid #d9dfe6; border-radius: 8px; padding: 12px; font: inherit; }
.aya-refined .aya-program-preview { border-left: 3px solid #cf1730; padding: 12px; background: #f8f4f5; font-weight: 600; }
.aya-refined .aya-series-tag { display: inline-block; color: #a70d25; background: #ffeaee; border-radius: 6px; padding: 4px 8px; font-size: 12px; }
.aya-refined .aya-session-notes { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.aya-refined .aya-attendance-reminders { display: grid; gap: 8px; padding: 16px; margin-bottom: 16px; border: 1px solid #f1b5be; border-left: 4px solid #cf1730; border-radius: 12px; background: #fff4f5; }
.aya-refined .aya-attendance-reminders button { background: white; color: #9e172a; border: 1px solid #f1cbd1; border-radius: 8px; padding: 12px; text-align: left; min-height: 44px; }
.aya-refined .aya-dialog .aya-form-message { font-size: 14px; color: #a11223; margin: 0; }
.aya-refined .aya-dialog-nav { display: grid; gap: 8px; }
.aya-refined .aya-dialog-nav button { text-align: left; display: grid; gap: 3px; }
.aya-refined .aya-dialog-nav small { color: var(--aya-muted); font-size: 13px; }
.aya-refined .aya-programs { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); gap: 16px; }
.aya-refined .aya-program-card { min-width: 0; background: white; border: 1px solid #d9dfe6; border-radius: 14px; padding: 20px; }
.aya-refined .aya-program-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.aya-refined .aya-program-card h3 { margin: 0; }
.aya-refined .aya-program-card p { color: #526070; line-height: 1.6; }
.aya-refined .aya-program-card button { padding: 9px 12px; border: 1px solid #d9dfe6; border-radius: 8px; background: white; color: #a70d25; cursor: pointer; }
.aya-refined .aya-program-card details { margin-top: 16px; }
.aya-refined .aya-program-card summary { cursor: pointer; padding: 10px 0; }
.aya-refined .aya-program-date { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid #eee; }
.aya-refined .aya-program-date > span { margin-right: auto; }
.aya-refined .aya-season-intro { padding: 20px 0; }
.aya-refined .aya-season-intro h3 { font-size: clamp(24px,3vw,34px); letter-spacing: -.7px; margin: 8px 0; }
.aya-refined .aya-season-intro p { color: #697180; }
.aya-refined .aya-team-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 20px; }
.aya-refined .aya-team-card { position: relative; overflow: hidden; display: flex; flex-direction: column; text-align: left; padding: 26px; background: #fff; border: 1px solid #e0e3e8; border-top: 4px solid #c91835; border-radius: 16px; color: #181c24; cursor: pointer; box-shadow: 0 8px 24px #14182008; transition: transform .2s,box-shadow .2s; }
.aya-refined .aya-team-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px #14182014; }
.aya-refined .aya-team-card:focus-visible { outline: 3px solid #c91835; outline-offset: 3px; }
.aya-refined .aya-team-number { color: #c91835; font-size: 12px; font-weight: 800; letter-spacing: 2px; }
.aya-refined .aya-team-card h3 { margin: 14px 0 22px; font-size: 25px; letter-spacing: -.5px; }
.aya-refined .aya-team-slots { display: grid; gap: 12px; }
.aya-refined .aya-team-slots div { display: grid; gap: 4px; }
.aya-refined .aya-team-slots span { font-size: 13px; color: #697180; }
.aya-refined .aya-team-slots strong { font-size: 19px; }
.aya-refined .aya-team-coaches { color: #505968; font-size: 13px; margin: 20px 0; line-height: 1.6; }
.aya-refined .aya-team-card footer { margin-top: auto; padding-top: 18px; border-top: 1px solid #eee; display: grid; gap: 10px; font-size: 12px; }
.aya-refined .aya-team-card footer b { color: #b51630; font-size: 14px; }
.aya-refined .aya-team-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 16px; }
.aya-refined .aya-team-summary article { background: #191e27; color: white; border-radius: 12px; padding: 22px; }
.aya-refined .aya-team-summary p { color: #c6ccd5; font-size: 14px; line-height: 1.7; }
.aya-refined :is(.aya-team-summary,.aya-month-schedule) button,.aya-refined .aya-back-teams { border: 1px solid #d9dfe6; background: white; color: #a70d25; border-radius: 8px; padding: 10px 13px; cursor: pointer; }
.aya-refined .aya-month-schedule { margin-top: 24px; background: white; border: 1px solid #e0e3e8; border-radius: 12px; padding: 18px; }
.aya-refined .aya-month-schedule h4 { margin: 0 0 14px; font-size: 19px; }
.aya-refined .aya-month-schedule time { flex: 1 1 180px; }
.aya-refined .aya-month-schedule .aya-program-date { gap: 14px; padding: 14px 0; }
.aya-refined .aya-month-schedule .aya-program-date > span { flex: 1 1 160px; color: #697180; font-size: 13px; }
.aya-refined .aya-push-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #d9dfe6; }
.aya-refined .aya-push-controls > :is(strong,p) { flex-basis: 100%; margin: 0; }
.aya-refined .aya-push-controls [data-aya-push-status] { font-size: 13px; color: #465262; }
.aya-refined .aya-push-controls button:disabled { opacity: .5; cursor: not-allowed; }
.aya-refined .report-icon svg { width: 22px; height: 22px; }
.aya-refined .exempt { background: #eef1f4 !important; color: #526070 !important; border-color: #dce2e8 !important; box-shadow: none !important; }
.aya-refined .mobile-history-row > em.exempt { max-width: 145px; white-space: normal !important; font-size: 12px !important; text-align: center; }
.aya-refined .billing-history-warning { padding: 12px; border: 1px solid #ecd3a8; border-radius: 8px; background: #fff9ed; font-size: 13px; color: #805313; }

@media (max-width: 768px) {
  .aya-refined .mobile-app-shell { background: var(--aya-surface) !important; font-family: "Segoe UI", Arial, sans-serif !important; --mobile-accent: #ba1426 !important; --mobile-accent-strong: #ba1426 !important; --mobile-accent-soft: #fff0f2 !important; }
  .aya-refined .mobile-topbar { display: flex !important; align-items: center !important; justify-content: space-between !important; height: 58px !important; padding: 0 16px !important; gap: 12px !important; background: #131920 !important; }
  .aya-refined .mobile-menu-btn { display: flex !important; align-items: center; justify-content: center; width: 40px !important; height: 40px !important; padding: 10px !important; }
  .aya-refined .mobile-page-title { display: block !important; position: static !important; color: white !important; font-size: 17px !important; font-weight: 650 !important; margin: 0 !important; flex: 1; text-align: left !important; }
  .aya-refined .mobile-notification-btn { display: grid !important; place-items: center; color: #fff !important; width: 38px !important; height: 38px !important; }
  .aya-refined .aya-sync-mobile { display: block; padding: 5px 14px; min-height: 27px; background: #eef1f4; }
  .aya-refined .mobile-hero-card { height: 88px !important; margin: 12px 12px 0 !important; padding: 14px !important; border-radius: 12px !important; background: #a71022 !important; box-shadow: none !important; }
  .aya-refined .mobile-hero-card::before, .aya-refined .mobile-hero-card::after { content: none !important; }
  .aya-refined .mobile-club-logo { width: 48px !important; height: 48px !important; box-shadow: none !important; }
  .aya-refined .mobile-club-name { font-size: 14px !important; font-weight: 600 !important; }
  .aya-refined .mobile-club-badge { display: none !important; }
  .aya-refined[data-view]:not([data-view="home"]) .mobile-hero-card { display: none !important; }
  .aya-refined .mobile-content-panel { padding: 14px 12px 96px !important; margin: 0 !important; border-radius: 0 !important; background: var(--aya-surface) !important; }
  .aya-refined .mobile-app-shell.mobile-has-action .mobile-content-panel { padding-bottom: 162px !important; }
  .aya-refined :is(.mobile-card,.mobile-scope-switcher,.mobile-daily-item,.mobile-detail-item) { box-shadow: none !important; border: 1px solid var(--aya-line) !important; border-radius: 10px !important; background: white !important; }
  .aya-refined .mobile-scope-switcher { margin-bottom: 12px !important; }
  .aya-refined .mobile-grid-3 { gap: 8px !important; }
  .aya-refined .mobile-grid-3 .mobile-metric-card { min-height: 70px !important; padding: 10px !important; display: flex !important; flex-direction: column !important; justify-content: center !important; }
  .aya-refined .mobile-grid-3 .mobile-metric-card .mobile-icon { display: none !important; }
  .aya-refined .mobile-grid-3 .mobile-metric-card > span { font-size: 12px !important; }
  .aya-refined .mobile-grid-3 .mobile-metric-card > strong { font-size: 18px !important; font-weight: 700 !important; }
  .aya-refined .mobile-grid-2 .mobile-metric-card, .aya-refined .mobile-report-grid .mobile-metric-card { min-height: 112px !important; padding: 14px !important; }
  .aya-refined .mobile-metric-card > span { font-size: 13px !important; color: #526070 !important; }
  .aya-refined .mobile-metric-card > strong { font-size: 22px !important; font-weight: 700 !important; color: var(--aya-ink) !important; }
  .aya-refined .mobile-metric-card > small { font-size: 12px !important; }
  .aya-refined .mobile-icon { box-shadow: none !important; filter: none !important; background: #fff0f2 !important; color: var(--aya-accent) !important; }
  .aya-refined .mobile-icon img { display: none !important; }
  .aya-refined :is(.mobile-list-title,.mobile-section-title) { font-size: 15px !important; font-weight: 650 !important; }
  .aya-refined .mobile-list-meta { font-size: 12px !important; font-weight: 400 !important; line-height: 1.45 !important; }
  .aya-refined .mobile-list-main { min-width: 0 !important; }
  .aya-refined .mobile-list-card { min-height: 76px !important; padding: 12px !important; }
  .aya-refined .mobile-list-meta span { white-space: normal !important; }
  .aya-refined .mobile-chip-row { flex-wrap: wrap !important; gap: 6px !important; }
  .aya-refined .mobile-chip { min-height: 38px !important; font-size: 12px !important; border-radius: 8px !important; box-shadow: none !important; }
  .aya-refined .mobile-chip.active { background: #ba1426 !important; color: white !important; }
  .aya-refined .mobile-attendance-row { min-height: 100px !important; display: grid !important; grid-template-columns: 34px minmax(0,1fr) !important; gap: 9px !important; padding: 12px !important; }
  .aya-refined .mobile-attendance-actions { grid-column: 2 !important; display: flex !important; gap: 8px !important; }
  .aya-refined .mobile-attendance-row [data-mobile-attendance] { min-width: 88px !important; min-height: 44px !important; padding: 8px 12px !important; font-size: 13px !important; border-radius: 8px !important; box-shadow: none !important; }
  .aya-refined .mobile-fixed-action { left: 12px !important; right: 12px !important; bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
  .aya-refined .mobile-fixed-action button { width: 100%; min-height: 48px !important; font-size: 15px !important; box-shadow: 0 3px 12px #17202b15 !important; }
  .aya-refined .mobile-bottom-nav { height: auto !important; min-height: 68px !important; padding: 7px 4px calc(7px + env(safe-area-inset-bottom)) !important; background: #fff !important; border: 0 !important; border-top: 1px solid var(--aya-line) !important; border-radius: 0 !important; box-shadow: none !important; }
  .aya-refined .mobile-bottom-nav button { min-width: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; color: #66717f !important; }
  .aya-refined .mobile-bottom-nav button.active { color: #ba1426 !important; background: #fff3f4 !important; border-radius: 8px !important; }
  .aya-refined .mobile-bottom-nav button::before, .aya-refined .mobile-bottom-nav button::after { content: none !important; }
  .aya-refined .mobile-bottom-nav span { font-size: 11px !important; }
  .aya-refined .aya-feature-head h2 { font-size: 22px; }
  .aya-refined .aya-session { grid-template-columns: minmax(0,1fr); gap: 10px; padding: 15px; }
  .aya-refined .aya-session-date { display: flex; justify-content: space-between; }
  .aya-refined .aya-followup { grid-template-columns: 22px minmax(0,1fr); gap: 10px; padding: 14px; }
  .aya-refined .aya-followup > button { grid-column: 2; justify-self: start; }
  .aya-refined .aya-analytics { padding: 14px; margin-top: 18px; }
  .aya-refined .aya-report-controls { gap: 8px; }
  .aya-refined .aya-bar-row { grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
  .aya-refined .aya-bar-track { grid-column: 1 / -1; grid-row: 2; }
  .aya-refined .aya-dialog { padding: 18px; }
  .aya-refined .aya-toolbar strong { font-size: 13px; }
}
.aya-refined .hidden, .aya-refined #appShell.hidden, .aya-refined .tabs .tab.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) { .aya-refined * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

.aya-group-roster { margin-top: 24px; }
.aya-group-roster .aya-feature-head { flex-wrap: wrap; gap: 12px; }
.aya-mobile-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.aya-mobile-groups .group-card { min-width: 0; text-align: left; }
