/* Functional additions only; the original theme remains in styles.css. */
button[aria-busy="true"] { cursor: wait; }
.personal-note { display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: center; gap: 12px; margin-bottom: 20px; padding: 16px 18px; border-block: 1px solid var(--line); border-left: 3px solid var(--green-700, #00664b); background: var(--surface); }
.personal-note > div { min-width: 0; }
.personal-note span { color: var(--muted); font-size: 13px; }
.personal-note p { margin: 5px 0 0; color: var(--navy-950); font-size: 18px; font-weight: 750; line-height: 1.5; letter-spacing: 0; overflow-wrap: anywhere; }
.personal-note .icon-button { width: 40px; height: 40px; }
.modal-content { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100dvh - 32px); }
.modal-content .modal-body { min-height: 0; }
.modal-content .modal-header { display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: start; gap: 12px; }
.modal-header > div { min-width: 0; }
.modal-header > .icon-button { flex: 0 0 40px; width: 40px; height: 40px; }
.season-selector { display: flex; align-items: center; gap: 10px; max-width: 340px; }
details.form-control > summary { cursor: pointer; padding: 10px 0; color: var(--navy-950); font-weight: 650; }
details .form-grid { padding: 10px 0; }
[hidden] { display: none !important; }
#repeat-weekdays { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0; }
.mobile-menu-sheet { display: none; }
.connection-state { max-width: 500px; margin: 15vh auto; padding: 24px; }
.management-branches .branch-card { cursor: pointer; text-align: left; border-radius: 8px; }
.management-branches .branch-card h2 { font-size: 20px; margin: 0; }
.management-branches .branch-card:focus-visible { outline: 3px solid var(--navy-800); outline-offset: 3px; }
.list-pagination { justify-content: flex-end; margin: 16px 0; }
.report-filters { grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); }
.report-tabs { display: flex; flex-wrap: wrap; margin-bottom: 16px; }
#athlete-table .data-table, #team-list .data-table, #dues-list .data-table { margin-top: 16px; }
.athlete-name-button { padding: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.athlete-name-button:focus-visible { outline: 2px solid var(--navy-800); outline-offset: 3px; }
.athlete-mobile-team { display: none; }
body.athlete-detail-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
.athlete-detail-dialog { padding: 0; width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); overflow: hidden; box-shadow: var(--shadow); }
.athlete-detail-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.athlete-detail-dialog::backdrop { background: rgba(7, 24, 92, 0.35); backdrop-filter: blur(3px); }
.athlete-detail-dialog .modal-body { min-height: 0; }
.athlete-detail-header { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 12px; align-items: start; }
.athlete-detail-header .name-cell { min-width: 0; text-align: left; justify-content: flex-start; }
.athlete-detail-header .name-cell img { flex: 0 0 38px; object-fit: cover; }
.athlete-detail-header h2 { margin: 0; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.athlete-detail-header p { margin: 4px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.athlete-detail-header .icon-button { width: 40px; height: 40px; }
.athlete-detail-actions { flex-wrap: wrap; }
@media (max-width: 820px) {
  .athlete-detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .athlete-detail-actions > button { width: 100%; min-width: 0; padding: 10px 8px; }
  #athlete-table .data-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
  #athlete-table .data-table td { display: block; padding: 0; min-width: 0; }
  #athlete-table .data-table td::before { display: none; }
  #athlete-table .data-table td:nth-child(n+2):nth-child(-n+5), #athlete-table .data-table td:nth-child(7) { display: none; }
  #athlete-table .athlete-name-button { width: 100%; min-width: 0; min-height: 48px; justify-content: flex-start; text-align: left; }
  #athlete-table .athlete-name-button img { width: 32px; height: 32px; flex: 0 0 32px; object-fit: cover; }
  #athlete-table .athlete-name-text { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
  #athlete-table .athlete-name-text strong { font-size: 14px; line-height: 1.35; }
  #athlete-table .athlete-mobile-team { display: block; font-size: 12px; line-height: 1.4; color: var(--muted); }
  #athlete-table .badge { white-space: nowrap; }
  .user-chip { display: flex; grid-column: 1; grid-row: 2; }
  .user-chip img { width: 28px; height: 28px; }
  .user-chip strong { font-size: 12px; }
  .user-chip span { font-size: 10px; }
  .top-header > [data-action="logout"] { grid-column: 2; grid-row: 1; }
  .mobile-menu-sheet { position: fixed; display: grid; gap: 8px; bottom: 84px; left: 12px; right: 12px; max-height: 72dvh; overflow-y: auto; padding: 16px; background: #fff; z-index: 80; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 0 0 100vmax #152c3655; }
  .mobile-menu-sheet button { justify-content: flex-start; }
}
