@import url("light-theme.css");
@import url("secondary-buttons.css");

::-webkit-scrollbar {
    width: 10px;
  }

  ::-webkit-scrollbar-thumb {
    background: #b0b5b5;
    border-radius: 20px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #0F766E;
    border-radius: 20px;
  }

  ::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 0 20px 20px 0;
  }

/* Students: shared colors, responsive list and accessible native dialogs. */
.students-page { max-width: 1400px; margin: 0 auto; color: #334155; padding: 32px 0; }
.students-heading, .dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.students-page h1 { font-size:32px; font-weight:600; color:#134e4a; }
.eyebrow { font-size:11px; font-weight:700; letter-spacing:.14em; color:#0f766e; }
.students-heading p:last-child { margin-top:6px; color:#64748b; }
.student-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:24px; }
.student-stats>div { background:#f8fafc; border:1px solid #cbd5e1; border-radius:12px; padding:20px; display:flex; flex-direction:column; }
.student-stats strong { font-size:28px; color:#0f766e; }
.student-stats span { font-size:14px; }
.students-panel { background:#fff; border-radius:12px; border:1px solid #cbd5e1; overflow:hidden; }
.student-filters { display:flex; flex-wrap:wrap; gap:16px; padding:24px; align-items:end; }
.student-filters label,.student-dialog label { display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:600; }
.search-field { flex:1; min-width:220px; }
.student-filters input,.student-filters select,.student-dialog input,.student-dialog select,.student-dialog textarea { background:#f8fafc; border:1px solid #cbd5e1; border-radius:7px; padding:10px 12px; color:#334155; font-size:14px; width:100%; }
.students-page button,.student-dialog button { border-radius:7px; padding:9px 14px; font-size:14px; font-weight:600; cursor:pointer; }
.primary { background:#0f766e; color:white; }
.primary:hover { background:#115e59; }
.secondary { background:#f1f5f9; color:#0f766e; border:1px solid #cbd5e1; }

/* Shared action geometry: agenda and internal sections should feel like one product. */
.students-page .primary,
.students-page .secondary,
[data-new-booking] {
  min-height:48px;
  padding:12px 20px;
  border-radius:10px;
  font-family:inherit;
  font-size:16px !important;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1.2;
  white-space:nowrap;
  transition:background-color .2s ease,border-color .2s ease,color .2s ease;
}
.students-page .primary:active,
.students-page .secondary:active,
[data-new-booking]:active { transform:none; }
.danger { background:#b91c1c; color:white; }
.result-count { padding:0 24px 16px; font-size:13px; color:#64748b; }
.table-scroll { overflow-x:auto; }
.students-table { width:100%; text-align:left; border-collapse:collapse; font-size:14px; }
.students-table th { background:#f1f5f9; color:#64748b; font-size:12px; font-weight:600; padding:14px 20px; }
.students-table td { border-top:1px solid #e2e8f0; padding:18px 20px; }
.students-table small { display:block; margin-top:4px; color:#64748b; font-size:12px; }
.students-page .student-name { padding:0; font-weight:600; color:#0f766e; text-align:left; }
.row-actions { display:flex; gap:8px; white-space:nowrap; }
.status-badge { display:inline-block; padding:4px 10px; border-radius:8px; font-size:12px; font-weight:600; white-space:nowrap; }
.status-badge.active { background:#ccfbf1; color:#115e59; }
.status-badge.inactive { background:#e2e8f0; color:#475569; }
.storage-note { margin:16px 0; color:#64748b; font-size:13px; }
.empty-state { text-align:center; padding:40px; }
.student-dialog { width:min(760px,calc(100% - 32px)); max-height:90vh; overflow:auto; border:none; border-radius:14px; padding:28px; color:#334155; background:white; }
.student-dialog::backdrop { background:rgb(15 23 42 / .55); }
.student-dialog h2 { font-size:24px; font-weight:700; color:#134e4a; }
.student-dialog h3 { font-size:17px; font-weight:600; margin:24px 0 12px; }
.student-fields { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:24px 0; }
.full-field { grid-column:1/-1; }
.dialog-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:12px; margin-top:24px; }
.student-dialog dt { font-size:12px; color:#64748b; }
.student-dialog dd { margin-top:4px; overflow-wrap:anywhere; }
.discharge-note { padding:14px; background:#fff1f2; border-radius:7px; color:#9f1239; }
#form-error { color:#b91c1c; }
#student-discharge p { margin:16px 0; }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #14b8a6; outline-offset:2px; }
.dark .students-page { color:#e2e8f0; }
.dark .students-panel,.dark .student-stats>div,.dark .student-dialog { background:#1f2937; color:#e2e8f0; border-color:#475569; }
.dark .students-page h1,.dark .student-dialog h2,.dark .student-stats strong { color:#5eead4; }
.dark .students-table th,.dark .secondary,.dark .student-filters input,.dark .student-filters select,.dark .student-dialog input,.dark .student-dialog select,.dark .student-dialog textarea { background:#334155; color:#e2e8f0; border-color:#475569; }
.dark .students-table td { border-color:#475569; }
.dark .students-page .student-name,.dark .eyebrow { color:#5eead4; }
.dark .storage-note,.dark .students-heading p:last-child,.dark .result-count,.dark .students-table small,.dark .student-dialog dt { color:#94a3b8; }
@media(max-width:640px) { .students-heading { align-items:flex-start; flex-direction:column; } .student-stats { gap:8px; } .student-stats>div { padding:12px; } .student-stats span { font-size:12px; } .student-filters { padding:16px; } .student-filters label { flex:1; min-width:140px; } .student-fields { grid-template-columns:1fr; } .student-dialog { padding:20px; } }

.availability-row { display:grid; grid-template-columns:1.2fr 1fr 1fr auto; gap:12px; align-items:end; margin:12px 0; }
#teacher-error { color:#b91c1c; margin-top:16px; }
@media(max-width:640px) { .availability-row { grid-template-columns:1fr 1fr; padding-bottom:12px; border-bottom:1px solid #cbd5e1; } }

[hidden] { display: none !important; }
.booking-overlay { position: fixed; inset: 0; z-index: 60; background: #0008; display: flex; align-items: center; justify-content: center; padding: 1rem; overflow-y: auto; }
.booking-overlay form { max-height: 90vh; overflow-y: auto; }
.booking-input { display: block; width: 100%; padding: .65rem; margin: .35rem 0 1rem; border: 1px solid #94a3b8; border-radius: .5rem; background: #f8fafc; color: #111827; }
.dark .booking-input { background: #374151; color: white; }

.booking-action { display: inline-flex; vertical-align: middle; }
@media (hover: hover) and (pointer: fine) {
  .booking-action { opacity: 0; }
  .booking-slot:hover .booking-action,
  .booking-slot:focus-within .booking-action { opacity: 1; }
}
.booking-students { max-height: 12rem; overflow-y: auto; border: 1px solid #94a3b8; border-radius: .5rem; }

/* Booking form: keep fields compact and independent of CDN utility layout. */
.booking-form { color: #111827; border-radius: 8px; box-shadow: 0 20px 45px #0003; }
.booking-header { display:flex; align-items:center; justify-content:space-between; padding:20px; }
.booking-header h2 { font-size:20px; font-weight:600; }
.booking-close { width:32px; height:32px; border-radius:8px; color:#9ca3af; font-size:26px; line-height:1; }
.booking-close:hover { background:#e5e7eb; color:#111827; }
.booking-body { display:flex; flex-direction:column; gap:20px; padding:0 20px 20px; }
.booking-toggles { display:flex; flex-wrap:wrap; gap:24px; }
.booking-toggles label { display:flex; align-items:center; gap:8px; font-size:14px; color:#374151; cursor:pointer; }
.booking-toggles input, .booking-student-option input { width:16px; height:16px; margin:0; accent-color:#0f766e; flex-shrink:0; cursor:pointer; }
.booking-label, .booking-student-field legend { display:block; font-size:14px; font-weight:500; color:#111827; }
.booking-form .booking-input { box-sizing:border-box; margin:8px 0 0; padding:10px; min-height:42px; font-size:14px; font-weight:400; background:#f9fafb; border-color:#d1d5db; }
.booking-time-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.booking-class-fields { display:grid; grid-template-columns:1fr; gap:16px; }
.booking-student-field { min-width:0; }
.booking-help { color:#64748b; font-size:12px; font-weight:400; margin:4px 0 8px; }
.booking-students { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; max-height:144px; padding:6px; background:#f9fafb; border:1px solid #d1d5db; border-radius:8px; }
.booking-student-option { display:flex; align-items:center; gap:8px; padding:8px; border-radius:6px; font-size:14px; font-weight:400; color:#374151; cursor:pointer; }
.booking-student-option:hover { background:#e2e8f0; }
.booking-student-option:has(input:checked) { background:#ccfbf1; color:#115e59; }
.booking-footer { display:flex; justify-content:flex-end; gap:12px; padding:16px 20px; border-top:1px solid #e5e7eb; }
.booking-footer button { padding:10px 20px; border-radius:8px; font-size:14px; font-weight:500; }
.booking-save { background:#0f766e; color:white; }
.booking-save:hover { background:#115e59; }
.booking-dismiss { border:1px solid #e5e7eb; color:#374151; background:white; }
.booking-dismiss:hover { background:#f3f4f6; }
.dark .booking-form { color:#f1f5f9; background:#1f2937; }
.dark .booking-label,.dark .booking-student-field legend,.dark .booking-toggles label,.dark .booking-student-option { color:#f1f5f9; }
.dark .booking-form .booking-input,.dark .booking-students { background:#374151; border-color:#4b5563; color:white; }
.dark .booking-student-option:hover { background:#475569; }
.dark .booking-student-option:has(input:checked) { background:#134e4a; color:#99f6e4; }
.dark .booking-help { color:#94a3b8; }
.dark .booking-footer { border-color:#4b5563; }
.dark .booking-dismiss { background:#1f2937; border-color:#4b5563; color:#d1d5db; }
@media(max-width:540px) { .booking-time-fields,.booking-students { grid-template-columns:1fr; } .booking-header,.booking-footer { padding:16px; } .booking-body { padding:0 16px 16px; gap:16px; } }

.booking-selected-students { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.booking-student-chip { display:inline-flex; align-items:center; gap:8px; background:#ccfbf1; color:#115e59; border:1px solid #99f6e4; border-radius:6px; padding:5px 9px; font-size:13px; cursor:pointer; }
.booking-student-chip:hover { background:#99f6e4; }
.dark .booking-student-chip { background:#134e4a; color:#99f6e4; border-color:#0f766e; }

.student-pagination { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:16px; padding:18px 24px; border-top:1px solid #e2e8f0; font-size:13px; }
.student-pagination[hidden] { display:none; }
.student-pagination label,.pagination-controls { display:flex; align-items:center; gap:12px; }
.student-pagination select { border:1px solid #cbd5e1; border-radius:7px; padding:8px; background:#f8fafc; color:#334155; }
.student-pagination button:disabled { opacity:.4; cursor:default; }
.dark .student-pagination { border-color:#475569; }
.dark .student-pagination select { background:#334155; color:#e2e8f0; border-color:#475569; }
@media(max-width:640px) { .student-pagination { padding:16px; } .pagination-controls { width:100%; justify-content:space-between; } }

.inventory-alert { margin:20px 0; padding:18px 24px; border:1px solid #fbbf24; border-radius:12px; background:#fffbeb; color:#92400e; }
.inventory-alert li,.student-dialog #category-list li { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; padding:8px 0; }
.inventory-low { background:#fef3c7; color:#92400e; }
.inventory-history { margin-top:24px; }
.inventory-history h2 { font-size:20px; font-weight:600; padding:20px 24px 0; }
.inventory-error { color:#b91c1c; }
.student-dialog .inventory-check { display:flex; gap:10px; align-items:center; }
.student-dialog .inventory-check input { width:18px; }
.dark .inventory-alert { background:#422006; color:#fde68a; border-color:#a16207; }

.billing-viewer { width:min(960px,95vw); max-width:960px; }
.billing-viewer iframe { width:100%; height:50vh; border:1px solid #cbd5e1; border-radius:8px; background:white; margin-top:20px; }
.billing-details { display:grid; grid-template-columns:140px minmax(0,1fr); gap:8px 16px; margin:18px 0; }
.billing-details dt { font-weight:600; }
.billing-details dd,.billing-text { white-space:pre-wrap; overflow-wrap:anywhere; }
.billing-check { display:flex; gap:8px; align-items:center; margin:12px 0; }
.billing-check input { width:auto; }
#billing-history td { vertical-align:top; }
#billing-history .billing-text { max-width:350px; }
@media(max-width:540px) { .billing-details { grid-template-columns:1fr; } .billing-details dd { margin-bottom:8px; } }

/* Refined student summary and action hierarchy. */
.student-stats>div.student-kpi { flex-direction:row; align-items:center; justify-content:space-between; gap:12px; background:#fff; border:none; border-left:4px solid #64748b; box-shadow:0 2px 8px rgb(15 23 42 / .05); }
.student-kpi>div { display:flex; flex-direction:column; gap:4px; }
.student-kpi strong { font-size:32px; line-height:1.2; color:#334155; }
.student-kpi span { color:#64748b; font-size:13px; }
.student-stats>div.kpi-active { border-left-color:#0f766e; }
.student-stats>div.kpi-inactive { border-left-color:#e11d48; }
.kpi-active strong { color:#0f766e; }
.kpi-inactive strong { color:#be123c; }
.student-kpi .kpi-icon { display:grid; place-items:center; width:44px; height:44px; border-radius:12px; font-size:24px; background:#f1f5f9; color:#475569; flex-shrink:0; }
.kpi-active .kpi-icon { background:#ccfbf1; color:#0f766e; }
.kpi-inactive .kpi-icon { background:#ffe4e6; color:#be123c; }
.students-page .status-badge.inactive,.student-dialog .status-badge.inactive { background:#ffe4e6; color:#be123c; }
.students-panel .result-count { margin:0; padding:16px 24px 0; }
.student-pagination { border-top:none; }
.students-page .action-edit { background:transparent; color:#475569; }
.students-page .action-edit:hover { background:#f1f5f9; }
.dark .student-stats>div.student-kpi { background:#1f2937; }
.dark .student-kpi strong { color:#e2e8f0; }
.dark .kpi-active strong { color:#5eead4; }
.dark .kpi-inactive strong { color:#fda4af; }
.dark .student-kpi span { color:#94a3b8; }
.dark .students-page .action-edit { color:#cbd5e1; }
.dark .students-page .action-edit:hover { background:#334155; }
@media(max-width:640px) { .student-kpi .kpi-icon { width:28px; height:28px; font-size:18px; border-radius:8px; } .student-kpi strong { font-size:26px; } .student-stats>div.student-kpi { gap:6px; } .students-panel .result-count { padding:16px 16px 0; } }

/* Student KPI cards: consistent vector icons and aligned figures. */
.student-stats>div.student-kpi { justify-content:flex-start; gap:18px; padding:22px 24px; border:1px solid #dbe3ed; border-left:1px solid #dbe3ed; box-shadow:0 3px 12px rgb(15 23 42 / .04); }
.student-kpi>div { gap:6px; }
.student-kpi strong { font-size:36px; font-weight:700; letter-spacing:-.03em; font-variant-numeric:tabular-nums; }
.student-kpi>div>span { font-size:13px; font-weight:500; }
.student-kpi .kpi-icon { width:54px; height:54px; border-radius:16px; }
.kpi-icon svg { width:28px; height:28px; }
.student-stats>div.kpi-active { border-color:#b9e5dc; background:linear-gradient(110deg,#fff,#f0fdfa); }
.student-stats>div.kpi-inactive { border-color:#f2ced6; background:linear-gradient(110deg,#fff,#fff5f6); }
.student-pagination { border-top:1px solid #e2e8f0; }
.dark .student-stats>div.student-kpi { border-color:#475569; background:#1f2937; }
.dark .student-stats>div.kpi-active { border-color:#285e59; }
.dark .student-stats>div.kpi-inactive { border-color:#713747; }
@media(max-width:640px) { .student-stats>div.student-kpi { flex-direction:column; align-items:flex-start; padding:14px; gap:10px; } .student-kpi .kpi-icon { width:38px; height:38px; border-radius:11px; } .kpi-icon svg { width:22px; height:22px; } .student-kpi strong { font-size:28px; } .student-kpi>div>span { font-size:12px; } }

/* Mobile student list keeps only name, status and profile access. */
@media (max-width: 800px) {
  .students-page .student-stats { grid-template-columns:1fr; gap:12px; }
  .student-stats>div.student-kpi { flex-direction:row; align-items:center; padding:16px 20px; gap:16px; }
  .student-kpi>div { flex:1; flex-direction:row; justify-content:space-between; align-items:center; gap:12px; }
  .student-kpi strong { font-size:30px; }
  .student-kpi .kpi-icon { width:42px; height:42px; border-radius:12px; }
  .kpi-icon svg { width:24px; height:24px; }
  .people-page .people-list .students-table { table-layout:fixed; width:100%; }
  .people-page .people-list .students-table th:nth-child(2),
  .people-page .people-list .students-table th:nth-child(3),
  .people-page .people-list .students-table th:nth-child(4),
  .people-page .people-list .students-table td:nth-child(2),
  .people-page .people-list .students-table td:nth-child(3),
  .people-page .people-list .students-table td:nth-child(4),
  .people-page .people-list .action-edit { display:none; }
  .people-page .people-list .students-table th:first-child { width:44%; }
  .people-page .people-list .students-table th:nth-child(5),
  .people-page .people-list .students-table th:nth-child(6) { width:28%; }
  .people-page .people-list .students-table th,
  .people-page .people-list .students-table td { padding:14px 8px; overflow-wrap:anywhere; }
  .people-page .people-list .student-name { max-width:100%; font-size:13px; }
  .people-page .people-list .status-badge { white-space:normal; text-align:center; padding:4px 10px; font-size:11px; }
  .people-page .people-list .row-actions { white-space:normal; }
  .people-page .people-list .action-view { padding:9px 8px; font-size:12px; max-width:100%; min-height:44px; }
  .students-page .student-filters label { min-width:0; }
  .students-page .student-filters .search-field { flex-basis:100%; }
}

/* Shared footer. */
.site-footer { margin-top:24px; padding:32px 36px 20px; background-color:#f8fafc; background-image:radial-gradient(circle, rgb(15 118 110 / .025) .7px, transparent .9px), linear-gradient(115deg, rgb(240 253 250 / .8), transparent 65%); background-size:8px 8px, 100% 100%; border:1px solid #d5e2e0; border-radius:12px; box-shadow:0 8px 28px rgb(15 118 110 / .06); color:#475569; }
.footer-main { display:flex; justify-content:space-between; align-items:center; gap:32px; padding-bottom:28px; }
.footer-brand { flex-shrink:0; }
.footer-logo { display:inline-flex; background:transparent; padding:0; border:0; box-shadow:none; }
.footer-logo img { display:block; width:48px; height:48px; object-fit:contain; }
.footer-brand p { margin:10px 0 0; font-size:13px; color:#64748b; }
.footer-label { display:block; margin-bottom:12px; font-size:10px; font-weight:700; letter-spacing:.14em; color:#0f766e; }
.footer-links { display:flex; flex-wrap:wrap; gap:8px 24px; }
.footer-links a { display:inline-flex; align-items:center; min-height:44px; font-size:14px; font-weight:500; }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; gap:16px; padding-top:16px; border-top:1px solid #e2e8f0; font-size:12px; }
.footer-bottom p { margin:0; }
.site-footer a { text-decoration:none; transition:color .15s ease; }
.site-footer a:hover { color:#0f766e; text-decoration:underline; text-underline-offset:4px; }
.site-footer a:focus-visible { outline:3px solid #14b8a6; outline-offset:4px; border-radius:4px; }
.dark .site-footer { background-color:#111827; background-image:radial-gradient(circle, rgb(94 234 212 / .03) .7px, transparent .9px), linear-gradient(115deg, rgb(19 78 74 / .25), transparent 65%); border-color:#334155; box-shadow:0 8px 28px rgb(0 0 0 / .18); color:#cbd5e1; }
.dark .footer-logo { background:transparent; padding:0; }
.dark .footer-brand p { color:#94a3b8; }
.dark .footer-label,.dark .site-footer a:hover { color:#5eead4; }
.dark .footer-bottom { border-color:#334155; }
@media(max-width:800px) { .site-footer { padding:24px 20px 16px; } .footer-main { flex-direction:column; align-items:flex-start; gap:24px; padding-bottom:20px; } .footer-links { gap:4px 20px; } }
@media(max-width:480px) { .footer-bottom { flex-direction:column; align-items:flex-start; gap:4px; } .footer-bottom p { line-height:1.7; } }

/* Inventory tabs and quiet, single-palette stock warnings. */
.inventory-tabs { display:flex; gap:24px; border-bottom:1px solid #cbd5e1; margin-bottom:20px; }
.students-page .inventory-tabs button { padding:12px 2px; border-radius:0; border-bottom:2px solid transparent; color:#64748b; background:transparent; }
.students-page .inventory-tabs button[aria-selected="true"] { color:#0f766e; border-bottom-color:#0f766e; }
.inventory-alert { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:0 0 16px; padding:10px 14px; background:#fffbeb; border:1px solid #f3e4bc; border-radius:8px; color:#92400e; font-size:13px; }
.students-page .inventory-alert .warning-action { margin-left:auto; padding:4px 8px; color:#92400e; border:1px solid #e6cc93; background:transparent; font-size:12px; }
.students-page .inventory-alert .warning-action:hover { background:#fef3c7; }
.inventory-low { background:#fffbeb; color:#92400e; border:1px solid #f3e4bc; font-weight:500; }
.inventory-history { margin-top:0; }
.dark .inventory-tabs { border-color:#475569; }
.dark .students-page .inventory-tabs button { color:#94a3b8; }
.dark .students-page .inventory-tabs button[aria-selected="true"] { color:#5eead4; border-color:#5eead4; }
.dark .inventory-alert,.dark .inventory-low { background:#2b2418; border-color:#59472a; color:#e8c780; }
.dark .students-page .inventory-alert .warning-action { color:#e8c780; border-color:#796139; }
.dark .students-page .inventory-alert .warning-action:hover { background:#3d301e; }
@media(max-width:800px) {
  .people-page .people-list .student-filters { gap:12px; }
  .people-page .people-list .student-filters label:not(.search-field) { flex:1 1 130px; }
  .inventory-tabs { gap:18px; }
  .students-page .inventory-tabs button { font-size:13px; text-align:left; min-height:44px; }
  .inventory-page .students-table { table-layout:auto; min-width:650px; }
  .inventory-page .students-table th,.inventory-page .students-table td { padding:12px; }
  .inventory-page .student-filters label { flex:1 1 140px; min-width:0; }
  .inventory-page .student-filters .search-field { flex-basis:100%; }
  .inventory-page .students-heading .row-actions { flex-wrap:wrap; }
  .inventory-page .students-table .row-actions { flex-wrap:wrap; }
}
.inventory-page .student-stats>div.kpi-warning { background:#fffdf7; border-color:#f3e4bc; }
.inventory-page .kpi-warning strong,.inventory-page .kpi-warning .kpi-icon { color:#92400e; }
.inventory-page .kpi-warning .kpi-icon { background:#fffbeb; }
.dark .inventory-page .student-stats>div.kpi-warning { background:#2b2418; border-color:#59472a; }
.dark .inventory-page .kpi-warning strong,.dark .inventory-page .kpi-warning .kpi-icon { color:#e8c780; }
.dark .inventory-page .kpi-warning .kpi-icon { background:#3d301e; }

/* Inventory: compact warning, aligned opt-in and responsive rows. */
.inventory-alert { background:transparent; border:none; padding:4px 2px 12px; gap:8px; font-size:13px; }
.warning-icon { width:17px; height:17px; flex-shrink:0; }
.students-page .inventory-alert .warning-action { border:none; padding:6px 0 6px 12px; font-weight:500; }
.students-page .inventory-alert .warning-action:hover { background:transparent; text-decoration:underline; text-underline-offset:3px; }
.dark .inventory-alert { background:transparent; border:none; }
.dark .students-page .inventory-alert .warning-action:hover { background:transparent; }
#item-form .inventory-check { flex-direction:row; align-items:center; align-self:end; gap:10px; min-height:42px; margin:0; font-weight:500; line-height:1.4; }
#item-form .inventory-check input { appearance:auto; width:18px; height:18px; padding:0; margin:0; flex:0 0 18px; accent-color:#0f766e; }
.inventory-page .inventory-actions .row-actions { flex-wrap:wrap; }
.inventory-page .inventory-actions .inventory-move { white-space:nowrap; }
@media(max-width:850px) {
  .inventory-page .table-scroll { overflow:visible; }
  .inventory-page .students-table { min-width:0; width:100%; table-layout:auto; }
  .inventory-page .students-table thead { display:none; }
  .inventory-page .students-table tbody { display:block; }
  .inventory-page .students-table tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); padding:16px; gap:12px 18px; border-top:1px solid #e2e8f0; }
  .inventory-page .students-table td { display:block; min-width:0; border:none; padding:0; overflow-wrap:anywhere; }
  .inventory-page .students-table td::before { content:attr(data-label); display:block; margin-bottom:4px; font-size:11px; font-weight:500; color:#64748b; }
  .inventory-page #inventory-rows td:first-child,.inventory-page .inventory-actions { grid-column:1/-1; }
  .inventory-page #inventory-rows td:first-child::before,.inventory-page .inventory-actions::before { display:none; }
  .inventory-page .inventory-actions .row-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .inventory-page .inventory-actions .inventory-move { grid-column:1/-1; min-height:44px; }
  .inventory-page .inventory-actions .secondary { min-height:40px; }
  .inventory-page #movement-rows td:last-child { grid-column:1/-1; }
  .dark .inventory-page .students-table tr { border-color:#475569; }
  .dark .inventory-page .students-table td::before { color:#94a3b8; }
}

.inventory-page .student-kpi .kpi-stock-action { padding:0; margin-top:2px; background:transparent; color:#92400e; font-size:12px; font-weight:500; text-align:left; }
.inventory-page .kpi-stock-action span { color:inherit; }
.inventory-page .kpi-stock-action:hover { text-decoration:underline; text-underline-offset:3px; }
.dark .inventory-page .student-kpi .kpi-stock-action { color:#e8c780; }
@media(max-width:800px) {
  .inventory-page .kpi-warning>div { flex-wrap:wrap; }
  .inventory-page .kpi-stock-action { flex-basis:100%; }
}
/* Billing follows the shared KPI, filter, tab and inventory mobile patterns. */
.billing-page .student-kpi>div { min-width:0; }
.billing-page .student-kpi strong { overflow-wrap:anywhere; }
.billing-page .kpi-warning strong { font-size:clamp(22px,2.2vw,32px); }
.billing-page .student-filters label:not(.search-field) { flex:1 1 140px; }
.billing-page .student-filters .search-field { flex:2 1 240px; }
.billing-page .billing-actions .row-actions { flex-wrap:wrap; white-space:normal; }
.billing-page .students-table td { overflow-wrap:anywhere; }
.billing-page #billing-rows td:nth-child(3) { max-width:240px; white-space:pre-wrap; }
.billing-page .billing-actions { min-width:200px; }
@media(max-width:850px) {
  .billing-page .billing-actions { min-width:0; grid-column:1/-1; }
  .billing-page .billing-actions::before { display:none; }
  .billing-page .billing-actions .row-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .billing-page .billing-actions button { min-height:44px; white-space:normal; }
  .billing-page #billing-rows td:first-child,.billing-page #billing-rows td:nth-child(2),.billing-page #billing-rows td:nth-child(3),.billing-page .billing-content { grid-column:1/-1; }
  .billing-page #billing-rows td:first-child::before { display:none; }
  .billing-page #billing-rows td:nth-child(3),.billing-page #billing-history .billing-text { max-width:none; }
}
@media(max-width:800px) {
  .billing-page .student-filters { gap:12px; }
  .billing-page .student-kpi>div { flex-wrap:wrap; }
  .billing-page .kpi-warning strong { font-size:26px; }
}
.billing-page .kpi-active strong { font-size:clamp(22px,2.2vw,32px); }
@media(max-width:800px) { .billing-page .kpi-active strong { font-size:26px; } }

/* Compact daily overview. */
.agenda-panel { background:#f8fafc; border:1px solid #cbd5e1; border-radius:14px; overflow:hidden; }
.agenda-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px 20px; padding:12px 20px; border-bottom:1px solid #e2e8f0; }
.agenda-toolbar label { display:flex; align-items:center; gap:12px; font-size:14px; font-weight:600; color:#334155; }
.agenda-toolbar select { width:150px; }
.agenda-toolbar p { flex:1; font-size:13px; color:#64748b; }
.agenda-legend { font-size:12px; color:#64748b; }
.court-agenda { border-radius:0; }
.court-day-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; padding:12px; }
.court-agenda .booking-slot { display:flex; flex-direction:column; align-items:stretch; justify-content:center; gap:6px; padding:10px; min-width:0; min-height:84px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; }
.court-agenda .booking-slot { justify-content:flex-start; }
.court-agenda .booking-slot.card { background:#fff1f2; border-color:#fecdd3; }
.court-agenda .booking-slot>div:first-child { margin:0; }
.court-agenda .booking-slot hr { display:none; }
.slot-range { display:flex; flex-direction:column; gap:2px; font-size:14px; font-variant-numeric:tabular-nums; }
.slot-range { white-space:nowrap; }
.slot-duration { color:#64748b; font-size:10px; font-weight:400; }
.court-agenda .booking-slot>div:nth-child(2) { flex-wrap:wrap; gap:4px; }
.court-agenda .booking-slot>div:nth-child(2)>span { font-size:12px; padding:4px 10px; }
.court-agenda .booking-slot>div:nth-child(2) { min-width:0; }
.court-agenda .booking-slot .status-badge { min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.court-agenda .booking-slot>div:nth-child(3) { gap:0; }
.court-agenda .booking-slot>div:nth-child(3) span { display:block; font-size:12px; line-height:1.5; }

.court-agenda .booking-slot:disabled { opacity:.5; cursor:default; }
.booking-time-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
.dark .agenda-panel { background:#111827; border-color:#475569; }
.dark .agenda-toolbar { border-color:#475569; }
.dark .agenda-toolbar label { color:#e2e8f0; }
.dark .agenda-toolbar p,.dark .agenda-legend,.dark .slot-duration { color:#94a3b8; }
.dark .court-agenda .booking-slot { background:#1f2937; border-color:#475569; }
.dark .court-agenda .booking-slot.card { background:#3b2031; border-color:#71334c; }
@media(max-width:850px) { .court-day-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:540px) {
 .agenda-toolbar { padding:10px 12px; gap:8px; }
 .agenda-toolbar p { flex-basis:100%; order:3; margin:0; }
 .agenda-legend { margin-left:auto; }
 .court-day-grid { gap:5px; padding:8px; }
 .court-agenda .booking-slot { padding:6px; min-height:66px; }
 .slot-range { font-size:12px; }
 .slot-duration { font-size:9px; }
 .booking-time-fields { grid-template-columns:1fr; }
}
.court-agenda .booking-slot>div:nth-child(3) span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.court-agenda .booking-slot:focus-visible { outline:3px solid #14b8a6; outline-offset:2px; }

/* Unified court picker and floating feedback. */
.agenda-toolbar { justify-content:space-between; padding:16px 20px; background:#fff; }
.agenda-court-picker { display:flex; align-items:center; gap:12px; min-height:64px; }
.agenda-court-picker img { width:40px; height:40px; border-radius:50%; object-fit:cover; }
.agenda-toolbar .agenda-court-picker label { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:3px; min-height:64px; }
.agenda-court-picker label>span,.agenda-hours>span { font-size:10px; font-weight:600; letter-spacing:.08em; color:#64748b; }
.agenda-toolbar .booking-input { width:170px; margin:0; padding:6px 28px 6px 10px; border-color:#e2e8f0; background:#f8fafc; font-size:14px; }
.agenda-hours { display:flex; flex-direction:column; gap:4px; text-align:right; }
.agenda-hours strong { font-size:13px; color:#475569; font-weight:500; }
.court-agenda>div:first-child { display:none; }
.court-day-grid { gap:14px; padding:18px; }
.court-agenda .booking-slot { padding:12px; gap:8px; }
.court-agenda .booking-action { transition:opacity .15s; }
.court-agenda .booking-slot.card { position:relative; }
.court-agenda .booking-slot.card>div:nth-child(2)>div { position:absolute; top:7px; right:10px; }
@media(min-width:641px) {
 .court-agenda .booking-slot.card { padding-top:12px; }
 .court-agenda .booking-slot.card>div:first-child { padding-right:74px; }
 .court-agenda .booking-slot.card .slot-range { font-size:13px; }
 .court-agenda .booking-slot.card>div:nth-child(2) { min-height:0; }
 .court-agenda .booking-slot.card>div:nth-child(2)>span { align-self:flex-start; }
}
@media(hover:hover) and (pointer:fine) {
 .court-agenda .booking-action { opacity:0; pointer-events:none; }
 .court-agenda .booking-slot:hover .booking-action,.court-agenda .booking-slot:focus-within .booking-action { opacity:1; pointer-events:auto; }
}
.agenda-toast { position:fixed; right:24px; bottom:24px; z-index:80; display:flex; align-items:center; gap:20px; max-width:calc(100vw - 32px); padding:14px 18px; color:#fff; background:#115e59; border:1px solid #0f766e; border-radius:12px; box-shadow:0 8px 30px #0f172a30; font-size:14px; }
.agenda-toast button { flex-shrink:0; width:28px; height:28px; border-radius:6px; font-size:22px; line-height:1; }
.agenda-toast button:hover { background:#ffffff20; }
.dark .agenda-toolbar { background:#1f2937; }
.dark .agenda-toolbar .booking-input { background:#111827; border-color:#475569; }
.dark .agenda-hours strong { color:#e2e8f0; }
.dark .agenda-court-picker label>span,.dark .agenda-hours>span { color:#94a3b8; }
@media(max-width:540px) {
 .agenda-toolbar { padding:12px; gap:10px; }
 .agenda-toolbar .booking-input { width:140px; }
 .agenda-hours>span { font-size:8px; }
 .agenda-hours strong { font-size:11px; }
 .court-day-grid { padding:10px; gap:8px; }
 .court-agenda .booking-slot { padding:8px; gap:6px; }
 .agenda-toast { right:16px; bottom:16px; }
}

/* Mobile agenda for use around the club. */
.agenda-day-navigation { display:flex; align-items:center; gap:8px; margin:0 0 12px; color:#475569; }
.agenda-day-navigation button { min-width:44px; min-height:44px; border:1px solid #cbd5e1; border-radius:10px; background:#fff; font-weight:600; }
.agenda-day-navigation button:first-child,.agenda-day-navigation button:last-child { font-size:26px; }
#agenda-today { padding:0 14px; color:#0f766e; }
#agenda-date-label { flex:1; text-align:center; font-size:14px; text-transform:capitalize; }
.dark .agenda-day-navigation { color:#e2e8f0; }
.dark .agenda-day-navigation button { background:#1f2937; border-color:#475569; }
.dark #agenda-today { color:#5eead4; }
@media(max-width:640px) {
 .reservations-page { padding:10px 10px calc(90px + env(safe-area-inset-bottom)); }
 .reservations-page #menu-button,.reservations-page #user-menu-button { min-width:44px; min-height:44px; align-items:center; justify-content:center; }
 .agenda-date-bar { padding:12px 0 8px; gap:8px; }
 .agenda-date-bar>div>div { max-width:none; }
 .agenda-date-bar input { min-height:48px; font-size:16px; }
 .reservations-page [data-new-booking] { position:fixed; bottom:calc(12px + env(safe-area-inset-bottom)); left:16px; right:16px; z-index:50; min-height:52px; border-radius:14px; box-shadow:0 6px 24px #0f172a30; font-size:16px; }
 .agenda-toolbar { padding:12px; flex-wrap:nowrap; }
 .agenda-court-picker { min-width:0; gap:8px; }
 .agenda-toolbar .booking-input { width:145px; min-height:44px; font-size:16px; }
 .agenda-hours { flex-shrink:0; }
 .agenda-hours strong { font-size:12px; }
 .agenda-hours>span { font-size:9px; }
 .court-day-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:10px; align-items:stretch; }
 .court-agenda .booking-slot { padding:10px 8px; min-height:84px; justify-content:flex-start; gap:8px; }
 .slot-range { font-size:14px; }
 .slot-duration { font-size:11px; line-height:1.4; }
 .court-agenda .booking-slot>div:nth-child(2)>span { font-size:11px; line-height:1.4; }
 .court-agenda .booking-slot.card { grid-column:span 3; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; }
 .court-agenda .booking-slot.card>div:first-child { grid-column:1; }
 .court-agenda .booking-slot.card>div:nth-child(2) { grid-column:2; grid-row:1/3; flex-direction:column; align-items:flex-end; justify-content:space-between; }
 .court-agenda .booking-slot.card>div:nth-child(2)>div { position:static; }
 .court-agenda .booking-slot.card>div:nth-child(3) { grid-column:1; grid-row:2; min-width:0; }
 .court-agenda .booking-slot>div:nth-child(3) span { white-space:normal; overflow-wrap:anywhere; font-size:13px; }
 .court-agenda .booking-action { opacity:1; pointer-events:auto; width:44px; height:44px; justify-content:center; align-items:center; margin:0; border:1px solid #fecdd3; border-radius:8px; background:#fff; }
 .court-agenda .booking-slot.card>div:nth-child(2)>div { gap:8px; }
 .agenda-toast { bottom:calc(80px + env(safe-area-inset-bottom)); }
 .agenda-toast button { min-width:44px; min-height:44px; }
 .reservations-page .booking-overlay { padding:0; align-items:stretch; }
 .reservations-page .booking-overlay form { max-width:none; max-height:100dvh; border-radius:0; padding-bottom:env(safe-area-inset-bottom); }
 .reservations-page .booking-header { position:sticky; top:0; z-index:2; background:#fff; border-bottom:1px solid #e2e8f0; }
 .reservations-page .booking-input { font-size:16px; min-height:48px; }
 .reservations-page .booking-close,.reservations-page .booking-save,.reservations-page .booking-dismiss { min-height:44px; min-width:44px; }
 .reservations-page .booking-footer { position:sticky; bottom:0; background:#fff; border-top:1px solid #e2e8f0; }
 .reservations-page .booking-save { flex:1; }
 .reservations-page .agenda-services { gap:16px; padding:24px 0; }
 .reservations-page .service-card { min-height:180px; }
 .reservations-page .service-card-copy { padding:20px; }
 .reservations-page .service-card-copy h2 { font-size:clamp(24px,7vw,36px); }
 .dark .court-agenda .booking-action { background:#1f2937; border-color:#71334c; }
 .dark .reservations-page .booking-header,.dark .reservations-page .booking-footer { background:#1f2937; border-color:#475569; }
}
@media(max-width:359px) {
 .agenda-court-picker img { display:none; }
 .agenda-toolbar .booking-input { width:130px; }
 .court-agenda .booking-slot { padding:8px 6px; }
}
@media(max-width:900px) {
 .reservations-page .desktop-navigation { display:none; }
 .reservations-page .mobile-navigation-toggle { display:flex; }
}
/* Center day navigation controls independently of font metrics. */
.agenda-day-navigation button { display:inline-flex; align-items:center; justify-content:center; height:44px; padding:0; line-height:1; flex-shrink:0; }
#agenda-previous-day,#agenda-next-day { width:44px; }
.agenda-day-navigation button svg { display:block; flex-shrink:0; }
/* Date picker and daily navigation share one compact control. */
.agenda-date-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:28px 0 16px; }
.agenda-date-bar .agenda-day-navigation { display:flex; align-items:center; gap:4px; margin:0; padding:4px; border:1px solid #cbd5e1; border-radius:12px; background:#fff; }
.agenda-date-bar .agenda-day-navigation button { border:0; border-radius:8px; background:transparent; }
.agenda-date-bar .agenda-day-navigation button:hover { background:#f1f5f9; }
.agenda-date-bar #datepicker { width:155px; min-width:0; min-height:44px; padding:8px 6px; border:0; border-radius:6px; background:transparent; color:#334155; font-size:16px; }
.agenda-date-bar #agenda-today { border-left:1px solid #e2e8f0; border-radius:0 8px 8px 0; padding:0 14px; }
.agenda-date-bar #agenda-date-label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.dark .agenda-date-bar .agenda-day-navigation { background:#1f2937; border-color:#475569; }
.dark .agenda-date-bar #datepicker { color:#e2e8f0; color-scheme:dark; }
.dark .agenda-date-bar .agenda-day-navigation button:hover { background:#334155; }
.dark .agenda-date-bar #agenda-today { border-color:#475569; }
@media(max-width:640px) {
 .agenda-date-bar { padding:10px 0; }
 .agenda-date-bar .agenda-day-navigation { width:100%; gap:2px; }
 .agenda-date-bar #datepicker { flex:1; width:0; }
 .agenda-date-bar #agenda-today { padding:0 12px; }
}
/* Consistent action geometry for hover and touch. */
.court-agenda .booking-slot>div:nth-child(2)>div { display:flex; align-items:center; gap:6px; }
.court-agenda .booking-action { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; flex:0 0 32px; padding:0; margin:0; line-height:1; }
.court-agenda .booking-action svg { display:block; width:20px; height:20px; flex-shrink:0; }
@media(max-width:640px) {
 .court-agenda .booking-action { width:44px; height:44px; flex-basis:44px; }
 .court-agenda .booking-slot.card>div:nth-child(2)>div { gap:8px; }
}


/* Shared label shape across reservations, people, inventory and billing. */
.status-badge { border-radius:8px; }

/* Keep the footer mark transparent in both themes. */
.site-footer .footer-logo,.dark .site-footer .footer-logo { background:none; border:0; padding:0; box-shadow:none; border-radius:50%; }
.site-footer .footer-logo img,.dark .site-footer .footer-logo img { background:none; border:0; box-shadow:none; border-radius:50%; }

/* Shared status labels on every page, including the court agenda. */
.status-badge,.court-agenda .booking-slot>div:nth-child(2)>span.status-badge,.people-page .people-list .status-badge {
 display:inline-flex; align-items:center; padding:4px 10px; border:0; border-radius:8px; box-shadow:none; font-size:12px; font-weight:600; line-height:1.5;
}
.status-badge.active { background:#ccfbf1; color:#115e59; }
.status-badge.inactive { background:#ffe4e6; color:#be123c; }
.status-badge.unavailable { background:#f1f5f9; color:#64748b; }
.status-badge.inventory-low { background:#fef3c7; color:#92400e; border:0; }
.dark .status-badge.active { background:#134e4a; color:#99f6e4; }
.dark .status-badge.inactive,.dark .students-page .status-badge.inactive,.dark .student-dialog .status-badge.inactive { background:#4c182b; color:#fda4af; }
.dark .status-badge.unavailable { background:#334155; color:#cbd5e1; }
.dark .status-badge.inventory-low { background:#3d301e; color:#e8c780; }

/* Notifications shared by every section. */
.notifications-count{position:absolute;top:-5px;right:-6px;min-width:17px;height:17px;padding:0 4px;border-radius:20px;background:#0f766e;color:white;font:700 10px/17px sans-serif}
.notifications-panel{position:absolute;right:0;top:64px;z-index:60;width:min(400px,calc(100vw - 32px));background:#fff;color:#1e293b;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 18px 50px #0f172a26;overflow:hidden;max-height:calc(100dvh - 100px);overflow-y:auto;text-align:left}
.notifications-panel[hidden],.notifications-count[hidden]{display:none}
.notifications-header{display:flex;justify-content:space-between;align-items:center;padding:20px 20px 14px}
.notifications-header h2{font-size:18px;font-weight:700;margin:0}.notifications-header p{font-size:12px;color:#64748b;margin:4px 0 0}.notifications-header button{font-size:26px;width:32px;height:32px;border-radius:8px}
.notifications-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 20px 14px;font-size:12px;color:#64748b}.notifications-toolbar button{color:#0f766e;font-weight:600}.notifications-toolbar button:disabled{color:#64748b}
.notification-item{display:flex;align-items:flex-start;gap:12px;padding:17px 20px;border-top:1px solid #e2e8f0;text-decoration:none;color:inherit}.notification-item.is-unread{background:#f0fdfa}.notification-item:hover{background:#e6f4f1}.notification-item>div{flex:1;min-width:0}.notification-item strong{font-size:14px;font-weight:600}.notification-item p{font-size:13px;line-height:1.55;color:#475569;margin:4px 0 7px}.notification-item small{font-size:11px;color:#64748b}.notification-icon{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border-radius:10px;background:#ccfbf1;color:#115e59;font-weight:700}.notification-icon.warning{background:#fef3c7;color:#92400e}.notification-dot{flex-shrink:0;width:7px;height:7px;background:#0f766e;border-radius:50%;margin-top:7px}
.dark .notifications-panel{background:#131f30;color:#edf4ff;border-color:#3b506b}.dark .notification-item{border-color:#3b506b}.dark .notification-item.is-unread{background:#123d3b}.dark .notification-item:hover{background:#1d2d43}.dark .notifications-panel p,.dark .notifications-panel small,.dark .notifications-toolbar{color:#b0c1d8}.dark .notifications-toolbar button{color:#5eead4}.dark .notification-dot{background:#5eead4}
.notifications-panel :is(button,a):focus-visible{outline:2px solid #0d9488;outline-offset:-3px}

.notification-icon svg{width:20px;height:20px}
.notifications-header button{display:grid;place-items:center;color:#64748b}
.notifications-header button svg{width:20px;height:20px}
.notifications-header button:hover{background:#f1f5f9;color:#0f766e}
.dark .notifications-header button{color:#b0c1d8}
.dark .notifications-header button:hover{background:#1d2d43;color:#5eead4}
.dark .notification-icon{background:#1d514b;color:#5eead4}
.dark .notification-icon.warning{background:#3c301c;color:#fcd67a}
.profile-page { max-width:900px; min-height:65vh; }
.settings-tabs { margin-bottom:24px; }
.settings-page [role=tabpanel][hidden] { display:none; }
.users-panel { margin-top:0; }
.users-panel h2 { font-size:20px; font-weight:700; }
.users-list { margin-top:20px; }
.user-card { display:flex; flex-wrap:wrap; align-items:center; gap:14px; padding:20px 0; border-top:1px solid #e2e8f0; }
.user-card>div:first-child { flex:1; min-width:180px; overflow-wrap:anywhere; }
.user-card p,.user-card small { color:#64748b; font-size:13px; }
.user-actions { display:flex; flex-wrap:wrap; gap:8px; }
.user-actions .user-delete-icon { display:inline-flex; align-items:center; justify-content:center; width:44px; min-height:44px; padding:10px; }
.users-empty { padding:24px 0; color:#64748b; }
.user-permissions { margin-top:24px; }
.user-permissions legend { font-weight:700; }
#user-permissions { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:16px; }
#user-error,#user-delete-error { color:#be123c; margin-top:16px; }
#users-message { font-size:14px; margin-top:12px; }
.dark .user-card { border-color:var(--night-border); }
.dark .user-card p,.dark .user-card small,.dark .users-empty { color:var(--night-muted); }
.dark #user-error,.dark #user-delete-error { color:var(--night-rose); }
@media(max-width:640px) { .users-panel .students-heading { align-items:flex-start; flex-direction:column; } .user-actions { width:100%; } #user-permissions { grid-template-columns:1fr; } }
.settings-section + .settings-section { border-top:1px solid #e2e8f0; padding-top:28px; margin-top:28px; }
.settings-section h2 { font-size:18px; font-weight:700; }
.settings-section h2 + .profile-fields { margin-top:20px; }
.settings-description { color:#64748b; font-size:14px; margin:6px 0 20px; }
.settings-language { max-width:360px; }
.settings-language select { border:1px solid #94a3b8; border-radius:8px; background:#fff; min-height:44px; padding:10px 12px; color:#0f172a; }
.settings-language select:focus { outline:2px solid #14b8a6; outline-offset:1px; border-color:#0f766e; }
.dark .settings-language select { border-color:var(--night-border); background:#1f2937; color:#f8fafc; }
.settings-themes { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.settings-themes label { display:flex; align-items:center; gap:12px; border:1px solid #cbd5e1; border-radius:9px; padding:18px; cursor:pointer; }
.settings-themes label:has(input:checked) { border-color:#0f766e; background:#f0fdfa; box-shadow:inset 0 0 0 1px #0f766e; }
.settings-themes input { accent-color:#0f766e; width:18px; height:18px; flex-shrink:0; }
.settings-themes strong,.settings-themes small { display:block; }
.settings-themes small { margin-top:4px; color:#64748b; font-size:13px; }
#settings-message { margin-top:16px; font-size:14px; }
.dark .settings-section + .settings-section { border-color:var(--night-border); }
.dark .settings-themes label { border-color:var(--night-border); }
.dark .settings-themes label:has(input:checked) { background:var(--night-success-bg); border-color:var(--night-teal); box-shadow:inset 0 0 0 1px var(--night-teal); }
.dark .settings-description,.dark .settings-themes small { color:var(--night-muted); }
@media(max-width:640px) { .settings-themes { grid-template-columns:1fr; } }
.profile-panel { padding:32px; }
.profile-summary { display:flex; align-items:center; gap:16px; padding-bottom:24px; margin-bottom:24px; border-bottom:1px solid #e2e8f0; }
.profile-avatar { display:grid; place-items:center; flex-shrink:0; width:52px; height:52px; border-radius:50%; background:#ccfbf1; color:#0f766e; overflow:hidden; }
.profile-avatar img { width:100%; height:100%; object-fit:cover; }
.profile-avatar [hidden],.profile-photo-actions [hidden] { display:none; }
.profile-photo-actions { display:flex; flex-wrap:wrap; gap:8px; }
.profile-photo-controls p { margin-top:6px; font-size:12px; }
.profile-summary p { color:#64748b; font-size:14px; overflow-wrap:anywhere; }
.profile-summary>div { min-width:0; }
.profile-fields { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.profile-fields label { display:flex; flex-direction:column; gap:8px; font-size:14px; font-weight:600; min-width:0; }
.profile-fields input { width:100%; background:#f8fafc; border:1px solid #cbd5e1; border-radius:7px; padding:11px 12px; color:#334155; font-size:14px; font-weight:400; }
.profile-fields input:focus-visible { outline:2px solid #0f766e; outline-offset:2px; }
.profile-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
#profile-message { margin-top:16px; font-size:14px; }
@media(max-width:640px) { .profile-panel { padding:20px; } .profile-fields { grid-template-columns:1fr; gap:18px; } }
/* Shared compact lists: identity, current status/stock and relevant actions. */
.mobile-only { display:none !important; }
.mobile-row-more summary { display:none; }
.mobile-row-more .mobile-row-options { display:flex; gap:8px; }
.mobile-row-more:not([open]) > .mobile-row-options { display:flex; }
@media(max-width:800px) {
  .students-page .compact-mobile-table { display:table; min-width:0; width:100%; table-layout:fixed; }
  .students-page .compact-mobile-table thead { display:table-header-group; }
  .students-page .compact-mobile-table tbody { display:table-row-group; }
  .students-page .compact-mobile-table tr { display:table-row; padding:0; border:0; }
  .students-page .compact-mobile-table th,.students-page .compact-mobile-table td { display:table-cell; padding:14px 8px; overflow-wrap:anywhere; }
  .students-page .compact-mobile-table td { border-top:1px solid #e2e8f0; }
  .dark .students-page .compact-mobile-table td { border-color:#475569; }
  .students-page .compact-mobile-table td::before { display:none; }
  .students-page .compact-mobile-table .mobile-secondary { display:none; }
  .students-page .compact-mobile-table .mobile-only { display:block !important; }
  .students-page .compact-mobile-table .row-actions { display:flex; flex-direction:column; gap:4px; white-space:normal; }
  .students-page .compact-mobile-table button,.mobile-row-more summary { min-height:44px; max-width:100%; padding:9px 8px; font-size:12px; }
  .students-page .compact-mobile-table .status-badge { white-space:normal; text-align:center; padding:4px 8px; font-size:11px; }
  .inventory-page .compact-mobile-table th:nth-child(2),.inventory-page .compact-mobile-table td:nth-child(2),
  .inventory-page .compact-mobile-table th:nth-child(4),.inventory-page .compact-mobile-table td:nth-child(4) { display:none; }
  .inventory-page .compact-mobile-table th:first-child { width:44%; }
  .inventory-page .compact-mobile-table th:nth-child(3),.inventory-page .compact-mobile-table th:last-child { width:28%; }
  .billing-page .compact-mobile-table th:first-child,.billing-page .compact-mobile-table td:first-child,
  .billing-page .compact-mobile-table th:nth-child(3),.billing-page .compact-mobile-table td:nth-child(3),
  .billing-page .compact-mobile-table th:nth-child(4),.billing-page .compact-mobile-table td:nth-child(4) { display:none; }
  .billing-page .compact-mobile-table th:nth-child(2),.billing-page .compact-mobile-table td:nth-child(2) { display:table-cell; width:44%; }
  .billing-page .compact-mobile-table th:nth-child(5),.billing-page .compact-mobile-table th:last-child { width:28%; }
  .billing-page .compact-mobile-table .action-edit { display:none; }
  .mobile-row-more summary { display:block; cursor:pointer; color:#0f766e; text-align:center; }
  .dark .mobile-row-more summary { color:#5eead4; }
  .mobile-row-more:not([open]) > .mobile-row-options { display:none; }
  .mobile-row-more[open] > .mobile-row-options { display:flex; flex-direction:column; }
  .mobile-row-more summary:focus-visible { outline:2px solid #14b8a6; outline-offset:2px; }
}

/* Floating mobile navigation keeps the page in place. */
[data-component="navigation"] { position:sticky; top:0; z-index:40; }
html { scroll-padding-top:80px; }
.site-navigation { position:relative; z-index:40; }
[data-component="navigation"] .site-navigation { background:linear-gradient(120deg,#ffffffb0,#ccfbf1b8 55%,#99f6e480); border:0; box-shadow:0 8px 28px #0f172a24,inset 0 1px 0 #ffffffeb,inset 0 -1px 0 #0f766921; }
[data-component="navigation"].is-scrolled .site-navigation { background:linear-gradient(120deg,#ffffffa0,#ccfbf19c 55%,#99f6e470); }
html:not(.dark) [data-component="navigation"] .site-navigation,
html:not(.dark) [data-component="navigation"].is-scrolled .site-navigation { background:#f8fafc; backdrop-filter:none; -webkit-backdrop-filter:none; box-shadow:0 6px 20px #0f172a18; }
[data-component="navigation"].is-scrolled .site-navigation { margin-left:calc(-1 * var(--navigation-left, 16px)); margin-right:calc(-1 * var(--navigation-right, 16px)); padding-left:var(--navigation-left, 16px); padding-right:var(--navigation-right, 16px); border-radius:0; }
@supports (backdrop-filter:blur(20px)) {
  [data-component="navigation"] .site-navigation { background:linear-gradient(120deg,#ffffff8c,#ccfbf1a6 55%,#99f6e45c); backdrop-filter:blur(24px) saturate(180%); -webkit-backdrop-filter:blur(24px) saturate(180%); }
  [data-component="navigation"].is-scrolled .site-navigation { background:linear-gradient(120deg,#ffffff82,#ccfbf18c 55%,#99f6e45c); backdrop-filter:blur(22px) saturate(170%); -webkit-backdrop-filter:blur(22px) saturate(170%); }
  html:not(.dark) [data-component="navigation"] .site-navigation,
  html:not(.dark) [data-component="navigation"].is-scrolled .site-navigation { background:#f8fafc; backdrop-filter:none; -webkit-backdrop-filter:none; }
}

/* Service promos keep the photography while making the copy translatable HTML. */
.reservations-page .service-card { position:relative; display:flex; min-height:220px; overflow:hidden; border:0; border-radius:20px; background:#f8fffd; box-shadow:0 12px 28px rgb(15 23 42 / 10%); isolation:isolate; }
.reservations-page .service-card::after { content:""; position:absolute; z-index:-1; right:42%; top:-40%; width:180px; height:180%; background:#b7eee2; opacity:.55; transform:rotate(13deg); }
.reservations-page .service-card-image { position:relative; width:52%; overflow:hidden; flex-shrink:0; }
.reservations-page .service-card-image::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent 62%,rgb(15 118 110 / 18%)); pointer-events:none; }
.reservations-page .service-card-image img { display:block; width:200%; max-width:none; height:100%; object-fit:cover; object-position:left center; transition:transform .35s ease; }
.reservations-page .service-card:hover .service-card-image img { transform:scale(1.035); }
.reservations-page .service-card-copy { position:relative; display:flex; flex:1; flex-direction:column; align-items:flex-start; justify-content:center; padding:28px 28px 28px 30px; background:linear-gradient(135deg,#ffffff 0%,#e9faf6 100%); color:#134e4a; }
.reservations-page .service-card-copy::before { display:none; }
.reservations-page .service-card-copy h2 { margin:0; font-size:clamp(26px,2.5vw,44px); font-weight:750; line-height:1.08; letter-spacing:-.04em; }
.reservations-page .service-card-copy h2 span { color:#0f9c8d; }
.reservations-page .service-card-cta { display:inline-flex; align-items:center; gap:8px; margin-top:22px; padding:10px 15px; border:1px solid #0f766e; border-radius:8px; color:#0f766e; font-size:14px; font-weight:700; line-height:1; text-decoration:none; transition:background .2s ease,color .2s ease,transform .2s ease; }
.reservations-page .service-card-cta span { font-size:19px; line-height:12px; transition:transform .2s ease; }
.reservations-page .service-card-cta:hover { background:#0f766e; color:#fff; transform:translateY(-1px); }
.reservations-page .service-card-cta:hover span { transform:translateX(3px); }
.reservations-page .service-card-cta:focus-visible { outline:3px solid #5eead4; outline-offset:3px; }
.reservations-page [data-new-booking] { appearance:none; border:0; box-sizing:border-box; transition:background-color .2s ease,color .2s ease; }
.reservations-page [data-new-booking]:active { transform:none; }
.dark .reservations-page .service-card { border:0; background:#172b32; box-shadow:0 14px 30px rgb(0 0 0 / 28%); }
.dark .reservations-page .service-card::after { background:#164e4a; opacity:.52; }
.dark .reservations-page .service-card-image::after { background:linear-gradient(90deg,transparent 55%,rgb(15 23 42 / 35%)); }
.dark .reservations-page .service-card-copy { background:linear-gradient(135deg,#1f3b43 0%,#123336 100%); color:#ecfeff; }
.dark .reservations-page .service-card-copy::before { display:none; }
.dark .reservations-page .service-card-copy h2 span { color:#7dd3c7; }
.dark .reservations-page .service-card-cta { border-color:#5eead4; color:#99f6e4; }
.dark .reservations-page .service-card-cta:hover { background:#5eead4; color:#123336; }
@media(max-width:640px) {
 .reservations-page .service-card { min-height:155px; border-radius:16px; }
 .reservations-page .service-card::after { right:38%; }
 .reservations-page .service-card-copy { padding:20px 16px 20px 22px; }
 .reservations-page .service-card-copy h2 { font-size:clamp(24px,7vw,36px); }
 .reservations-page .service-card-cta { margin-top:14px; padding:9px 12px; font-size:12px; }
}
.site-navigation .notifications-panel { top:calc(100% + 8px); max-height:calc(100dvh - 120px); }
@media(min-width:1024px) {
  html { scroll-padding-top:96px; }
  .site-navigation .navigation-bar { height:80px; }
  .site-navigation .desktop-navigation { margin-left:40px; }
}
@media(max-width:639px) {
  html { scroll-padding-top:88px; }
  .site-navigation .navigation-bar { height:72px; }
}
.site-footer.site-footer-compact { padding:20px 24px; background:transparent; border:0; border-top:1px solid #cbd5e1; border-radius:0; box-shadow:none; color:#64748b; font-size:12px; line-height:1.6; text-align:center; }
.site-footer-compact p { margin:0; }
.dark .site-footer.site-footer-compact { background:transparent; border-color:var(--night-border); color:var(--night-muted); box-shadow:none; }
#menu-button { display:flex; align-items:center; justify-content:center; width:44px; height:44px; color:#475569; outline:none; box-shadow:none; transition:background .18s,color .18s; }
#menu-button:hover,#menu-button[aria-expanded=true] { background:#ccfbf1; color:#0f766e; }
#menu-button:focus-visible,#user-menu-button:focus-visible { outline:2px solid #14b8a6; outline-offset:3px; }
#menu-button[aria-expanded=true] svg path { d:path('M6 6L18 18M6 18L18 6'); }
#user-menu-button { width:44px; height:44px; padding:0; background:transparent; border:0; box-shadow:none; align-items:center; justify-content:center; }
#user-menu-button .navigation-profile-icon { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:#ccfbf1; color:#0f766e; }
#user-menu-button .navigation-profile-icon svg { width:25px; height:25px; }
.dark #user-menu-button .navigation-profile-icon { background:var(--night-success-bg); color:var(--night-teal); }
#mobile-menu { position:absolute; top:calc(100% + 8px); left:0; width:100%; box-sizing:border-box; padding:12px; border:1px solid #e2e8f0; border-radius:16px; background:#fff; box-shadow:0 12px 32px #0f172a26; max-height:calc(100dvh - 110px); overflow-y:auto; transform-origin:top left; animation:mobile-menu-in .18s ease-out; }
.mobile-menu-heading { padding:6px 12px 10px; font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#94a3b8; }
.mobile-menu-links { display:grid; gap:4px; }
#mobile-menu a { display:flex; align-items:center; min-height:46px; padding:10px 12px; border-radius:10px; font-size:14px; }
#mobile-menu a[aria-current=page] { background:#e6f5f2; color:#0f766e; font-weight:700; }
#mobile-menu a[aria-current=page]::after { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; margin-left:auto; }
.dark #mobile-menu { background:var(--night-panel); border-color:var(--night-border); }
.dark #menu-button { color:var(--night-text); }
.dark #menu-button:hover,.dark #menu-button[aria-expanded=true] { background:#293f43; color:var(--night-teal); }
.dark #mobile-menu a[aria-current=page] { background:#293f43; color:var(--night-teal); }
@keyframes mobile-menu-in { from { opacity:0; transform:translateY(-6px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
@media(prefers-reduced-motion:reduce) { #mobile-menu { animation:none; } #menu-button { transition:none; } }
/* Long group rosters expand on every screen size. */
 .booking-students-desktop { display:none; }
 .booking-students-disclosure { display:block; color:#475569; font-size:13px; }
 .booking-students-disclosure summary { cursor:pointer; min-height:44px; display:flex; align-items:center; color:#0f766e; font-weight:600; list-style:none; }
 .booking-students-disclosure summary::-webkit-details-marker { display:none; }
 .booking-students-disclosure .students-chevron { display:block; margin-left:8px; flex-shrink:0; transition:transform .15s; }
 .booking-students-disclosure[open] .students-chevron { transform:rotate(180deg); }
 .booking-students-disclosure summary:focus-visible { outline:3px solid #14b8a6; outline-offset:2px; border-radius:6px; }
 .court-agenda .booking-slot .booking-students-disclosure .students-hide { display:none; }
 .court-agenda .booking-slot .booking-students-disclosure[open] .students-show { display:none; }
 .court-agenda .booking-slot .booking-students-disclosure[open] .students-hide { display:inline; }
 .booking-students-disclosure ul { margin:0; padding:0 0 4px; list-style:none; }
 .booking-students-disclosure li { padding:3px 0; overflow-wrap:anywhere; }
 .dark .booking-students-disclosure { color:#cbd5e1; }
 .dark .booking-students-disclosure summary { color:#5eead4; }

/* Compact invoice edit and send actions, including touch targets. */
.students-page button.billing-icon-action,.student-dialog button.billing-icon-action { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; padding:10px; flex:0 0 44px; }
.billing-icon-action svg { display:block; width:20px; height:20px; pointer-events:none; }

/* One action icon system for all table modules, on desktop and mobile. */
.students-page .students-table .row-actions,.student-dialog .students-table .row-actions { display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; gap:6px; }
.students-page .students-table button.table-icon-action,.student-dialog button.table-icon-action { display:inline-flex; align-items:center; justify-content:center; width:44px; min-width:44px; height:44px; min-height:44px; padding:10px; flex:0 0 44px; border-radius:7px; }
.table-icon-action svg { display:block; width:20px; height:20px; pointer-events:none; }
@media(max-width:850px) {
  .students-page .students-table .row-actions { display:flex; flex-direction:row; flex-wrap:wrap; gap:4px; }
  .students-page .students-table .table-icon-action.action-edit { display:inline-flex; }
  .inventory-page .inventory-actions .inventory-move.table-icon-action { grid-column:auto; }
}

/* Subtle selected section in the desktop header. */
.site-navigation .desktop-navigation a[aria-current=page] { background:#e6f5f2; color:#0f766e; }
.dark .site-navigation .desktop-navigation a[aria-current=page] { background:rgba(94,234,212,.09); color:var(--night-teal); }
.site-navigation .desktop-navigation a[aria-current=page]:hover { background:#d4eee8; }
.dark .site-navigation .desktop-navigation a[aria-current=page]:hover { background:rgba(94,234,212,.14); }

/* Mobile filters are available on demand across all table lists. */
.students-page .table-filters-toggle { display:none; }
@media(max-width:800px) {
  .students-page .table-filters-toggle { display:inline-flex; align-items:center; min-height:44px; margin:12px 16px; }
  .students-page .collapsible-table-filters:not(.filters-expanded) { display:none; }
}

@media(max-width:800px) {
  .students-page .students-heading > button,
  .students-page .students-heading .row-actions > .primary {
    min-height:48px;
    padding:12px 16px;
    font-size:16px;
  }
}

/* One labelled action selector per row on mobile. */
.students-table .row-actions .table-actions-toggle { display:none; }
.table-actions-dialog { width:min(360px, calc(100% - 32px)); }
.table-actions-options { display:flex; flex-direction:column; gap:8px; }
.table-actions-options button { min-height:44px; text-align:left; }
@media(max-width:800px) {
  .students-page .students-table .row-actions > button:not(.table-actions-toggle),
  .student-dialog .students-table .row-actions > button:not(.table-actions-toggle) { display:none; }
  .students-page .students-table .row-actions > .table-actions-toggle,
  .student-dialog .students-table .row-actions > .table-actions-toggle { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:9px 8px; font-size:12px; max-width:100%; }
}

/* Explicit viewport centering survives CSS resets and page scrolling. */
dialog.student-dialog {
  position:fixed;
  inset:0;
  margin:auto;
  max-height:calc(100vh - 32px);
  max-height:calc(100dvh - 32px);
  box-sizing:border-box;
  overscroll-behavior:contain;
}

/* Modal compacto: el encabezado, contenido y acciones permanecen dentro del viewport. */
dialog.student-dialog {
  padding:20px;
  overflow:auto;
  font-size:13px;
}
dialog.student-dialog .dialog-heading { margin-bottom:12px; gap:12px; }
dialog.student-dialog h2 { font-size:20px; line-height:1.2; }
dialog.student-dialog h3 { font-size:15px; margin:14px 0 8px; }
dialog.student-dialog label { gap:4px; }
dialog.student-dialog input,
dialog.student-dialog select,
dialog.student-dialog textarea { padding:8px 10px; font-size:13px; }
dialog.student-dialog textarea { min-height:56px; }
dialog.student-dialog .student-fields { gap:10px 14px; margin:12px 0; }
dialog.student-dialog .student-fields { align-items:start; }
html:not(.dark) dialog.student-dialog input,
html:not(.dark) dialog.student-dialog select,
html:not(.dark) dialog.student-dialog textarea { padding:7px 10px; min-height:0; }
dialog.student-dialog .student-fields > label { min-height:0; }
#teacher-form .student-fields { gap:8px 12px; margin:8px 0; }
#teacher-form .availability-row { gap:8px; margin:6px 0; }
#teacher-form .availability-row input,
#teacher-form .availability-row select { padding:6px 8px; }
dialog.student-dialog .dialog-actions,
dialog.student-dialog .profile-actions { gap:8px; margin-top:14px; }
dialog.student-dialog .dialog-actions,
dialog.student-dialog .profile-actions {
  position:sticky;
  bottom:-20px;
  padding:14px 0 0;
  background:inherit;
  z-index:2;
}
dialog.student-dialog .storage-note,
dialog.student-dialog p { margin:8px 0; }
dialog.student-dialog .students-table th,
dialog.student-dialog .students-table td { padding:6px 8px; font-size:12px; }

.booking-overlay { overflow:hidden; padding:12px; }
.booking-overlay form { max-height:calc(100dvh - 24px); overflow:auto; }
.booking-header { padding:12px 16px; }
.booking-body { gap:12px; padding:0 16px 12px; }
.booking-form .booking-input { margin-top:4px; padding:8px; min-height:36px; }
.booking-time-fields { gap:10px; }
.booking-class-fields { gap:10px; }
.booking-students { max-height:96px; }
.booking-footer { padding:10px 16px; }
.booking-footer { position:sticky; bottom:0; background:inherit; z-index:2; }
@media(max-width:540px) {
  .booking-header,.booking-footer { padding:10px 12px; }
  .booking-body { padding:0 12px 10px; gap:10px; }
  .booking-time-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .booking-time-fields label:first-child { grid-column:1/-1; }
}


/* Compact mobile headings; keep the primary action beside its title. */
.heading-action-short { display:none; }
@media(max-width:640px) {
  .students-page { padding-top:24px; }
  .students-page .students-heading { flex-direction:row; align-items:center; gap:12px; margin-bottom:20px; }
  .students-heading > div { min-width:0; }
  .students-page h1 { font-size:clamp(22px,6vw,28px); line-height:1.2; overflow-wrap:anywhere; }
  .students-heading > button, .students-heading .row-actions > button { flex-shrink:0; min-height:44px; padding:10px 12px; white-space:nowrap; }
  .heading-action-full { display:none; }
  .heading-action-short { display:inline; }
  .inventory-page .students-heading { gap:8px; }
  .inventory-page .students-heading .row-actions { flex-wrap:nowrap; gap:6px; }
  .inventory-page .students-heading .row-actions > button { padding:10px 8px; font-size:12px; }
  .inventory-page .students-heading h1 { overflow-wrap:normal; }
  .users-panel .students-heading { flex-wrap:wrap; }
  .users-panel .students-heading > div { display:contents; }
  .users-panel .students-heading h2 { order:0; flex:1; }
  .users-panel .students-heading > button { order:1; }
  .users-panel .students-heading p { order:2; flex-basis:100%; margin-top:0; }
}

.footer-column { display:flex; flex-direction:column; gap:4px; } .footer-support a { min-height:36px; display:inline-flex; align-items:center; font-size:14px; } .footer-bottom span { color:#64748b; } .dark .footer-bottom span { color:#94a3b8; }

.footer-support { flex:1; display:block; } .footer-support .footer-label { margin-bottom:10px; } .footer-support a { display:inline-flex; margin:0 28px 0 0; } @media(max-width:800px) { .footer-support { width:100%; } .footer-support a { margin-right:20px; } }

/* Footer alignment refinement. */
.site-footer .footer-main { display:grid; grid-template-columns:240px minmax(0,1fr); align-items:center; column-gap:56px; padding-bottom:24px; }
.site-footer .footer-brand { align-self:center; }
.site-footer .footer-support { min-width:0; }
.site-footer .footer-support a { margin-right:32px; }
.site-footer .footer-bottom { margin-top:0; }
@media(max-width:800px) { .site-footer .footer-main { display:flex; align-items:flex-start; gap:22px; } }
@media(max-width:480px) { .site-footer .footer-main { gap:18px; } .site-footer .footer-support a { margin-right:16px; } }
