* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 1px solid #8b949d; outline-offset: 2px; }
.content:focus { outline: none; }
button, input, select, textarea { border: 1px solid var(--border); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 3vw, 34px); line-height: 1.2; letter-spacing: -1.1px; font-weight: 650; }
h2 { font-size: 19px; letter-spacing: -.35px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 600; }
small, .muted { color: var(--muted); }
small { font-size: 14px; }
svg.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.boot-state { min-height: 100vh; display: grid; place-items: center; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 24px; font-weight: 750; letter-spacing: -1px; color: #fff; }
.brand-mark { background: var(--lime); width: 39px; height: 39px; border-radius: 4px; display: grid; place-items: center; color: var(--sidebar); }
.brand-mark .icon { width: 28px; height: 28px; }
.brand span:last-child { color: var(--lime); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; background: var(--sidebar); color: #aeb5bd; padding: 32px 18px 20px; display: flex; flex-direction: column; z-index: 30; }
.sidebar .brand { margin: 0 12px 24px; }
.nav-label { font-size: 13px; letter-spacing: 1.5px; margin: 0 14px 12px; color: #76818a; font-weight: 650; }
.nav { display: grid; gap: 5px; }
.nav a { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 4px; font-size: 14px; transition: background .15s; }
.nav a:hover { background: #ffffff0b; color: #fff; }
.nav a.active { background: var(--lime); color: #202b10; font-weight: 650; }
.nav a .nav-dot { width: 6px; height: 6px; background: #344514; border-radius: 50%; margin-left: auto; }
.sidebar-bottom { margin-top: auto; padding-top: 26px; }
.logout { background: transparent; border: 0; color: #aeb5bd; display: flex; gap: 12px; padding: 12px 14px; width: 100%; text-align: left; font-size: 14px; }
.shell { margin-left: 244px; }
.topbar { min-height: 82px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 14px 36px; gap: 18px; }
.breadcrumb { color: var(--muted); display: flex; align-items: center; gap: 12px; font-size: 14px; }
.breadcrumb strong { color: var(--ink); font-weight: 500; }
.top-actions { display: flex; gap: 20px; align-items: center; }
.user-link { display: flex; gap: 10px; align-items: center; border-left: 1px solid var(--border); padding-left: 20px; }
.user-link b { display: block; font-size: 14px; font-weight: 600; }
.user-link small { display: block; font-size: 14px; }
.avatar { display: inline-grid; place-items: center; background: #edf0e3; color: #68764f; width: 38px; height: 38px; border-radius: 4px; flex-shrink: 0; font-size: 14px; font-weight: 650; }
.avatar.lilac { background: #efeafa; color: #8f72b4; }
.avatar.blue { background: #e8f1f8; color: #618da4; }
.avatar.orange { background: #fff0e6; color: #ac7955; }
.content { max-width: 1600px; padding: 32px 36px 20px; margin: auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--section-gap); gap: 20px; }
.page-heading p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px; padding: 10px 16px; border-radius: 4px; font-size: 14px; font-weight: 600; background: #fff; color: var(--ink); border: 1px solid var(--border); white-space: nowrap; }
.btn:hover { background: #f3f5f6; }
.btn.primary { background: var(--lime); border-color: var(--lime); color: #263313; }
.btn.primary:hover { background: #c9eb4a; }
.btn.dark { background: var(--sidebar); color: #fff; border-color: var(--border); }
.btn.subtle { background: transparent; border-color: var(--border); }
.btn .icon { width: 16px; height: 16px; }
.text-link { font-size: 14px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.text-link .icon { width: 15px; }
.welcome-banner { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; background: #ecf2de; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: var(--section-gap); overflow: hidden; gap: 20px; }
.welcome-banner h2 { font-size: 20px; }
.welcome-banner p { color: #788567; font-size: 14px; margin-top: 4px; }
.welcome-art { display: flex; align-items: center; gap: 14px; color: #a6b687; padding-right: 10px; }
.welcome-art .icon { width: 43px; height: 43px; transform: rotate(-18deg); }
.welcome-art span { font-size: 14px; letter-spacing: 2px; font-weight: 700; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--section-gap); margin-bottom: var(--section-gap); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: #68727d; font-size: 14px; }
.stat-icon { height: 34px; width: 34px; display: grid; place-items: center; border-radius: 4px; background: #f4f6f8; color: #707b84; }
.stat-icon.green { background: #eef5e3; color: #6e8b35; }
.stat-value { font-size: 33px; letter-spacing: -1px; font-weight: 650; margin: 7px 0; line-height: 1.3; }
.stat-note { color: #8b9299; font-size: 14px; display: flex; gap: 7px; align-items: center; }
.stat-note .positive { color: var(--success); background: var(--success-bg); border-radius: 4px; padding: 2px 5px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--section-gap); margin-bottom: var(--section-gap); }
.panel { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; overflow: hidden; }
.panel-head { padding: 22px 22px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-head small { display: block; margin-top: 3px; font-size: 14px; }
.panel-body { padding: 22px; }
.period { padding: 6px 9px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; color: #74808a; white-space: nowrap; }
.chart-summary { padding: 17px 22px 0; display: flex; gap: 12px; align-items: baseline; }
.chart-summary strong { font-size: 29px; font-weight: 650; letter-spacing: -.7px; }
.chart-summary small { font-size: 14px; }
.chart { padding: 3px 18px 8px; }
.chart svg { width: 100%; height: 195px; display: block; overflow: visible; }
.chart text { font-family: inherit; fill: #98a1a8; font-size: 10px; }
.chart-foot { border-top: 1px solid var(--border); display: flex; justify-content: space-between; padding: 14px 22px; color: var(--muted); font-size: 14px; }
.legend { display: inline-flex; gap: 6px; align-items: center; }
.legend::before { content: ''; width: 7px; height: 7px; background: #a5c64a; border-radius: 50%; }
.finance-item { display: flex; align-items: center; gap: 11px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.finance-item:first-child { padding-top: 0; }
.finance-item:last-child { border-bottom: 0; }
.finance-item .stat-icon { width: 38px; height: 38px; }
.finance-item b { display: block; font-size: 14px; font-weight: 500; }
.finance-item small { font-size: 14px; }
.finance-item strong { margin-left: auto; font-size: 17px; font-weight: 600; }
.stat-icon.warning { color: var(--warning); background: var(--warning-bg); }
.stat-icon.danger { color: var(--danger); background: var(--danger-bg); }
.finance-note { background: #f7f9f1; border: 1px solid var(--border); border-radius: 4px; padding: 12px; font-size: 14px; color: #778459; margin-top: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { background: #fafbfc; color: #68727b; font-size: 13px; font-weight: 500; padding: 11px 22px; border-bottom: 1px solid var(--border); }
th .muted { color: inherit; }
td { border-bottom: 1px solid var(--border); font-size: 14px; padding: 13px 22px; }
tr:last-child td { border-bottom: 0; }
.table-panel .panel-head { padding-bottom: 20px; }
.person { display: flex; gap: 10px; align-items: center; }
.person b { display: block; font-size: 14px; font-weight: 550; }
.person small { font-size: 14px; display: block; }
.person .avatar { width: 32px; height: 32px; font-size: 14px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 4px; padding: 3px 7px; font-size: 14px; background: #f0f2f4; color: #7a848c; }
.badge::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.badge.active, .badge.paid { background: var(--success-bg); color: var(--success); }
.badge.pending { background: var(--warning-bg); color: var(--warning); }
.badge.overdue { background: var(--danger-bg); color: var(--danger); }
.activity { display: flex; gap: 11px; position: relative; padding: 0 0 24px; }
.activity:last-child { padding-bottom: 0; }
.activity b { font-size: 14px; font-weight: 550; }
.activity p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.activity small { font-size: 14px; color: #a1a8ae; display: block; margin-top: 5px; }
.activity .stat-icon { width: 31px; height: 31px; flex-shrink: 0; }
.activity .icon { width: 16px; }
.footer { width: 100%; min-height: 48px; margin-top: var(--section-gap); border-top: 1px solid var(--border); }
.toolbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; gap: 15px; }
.search { position: relative; flex: 1; max-width: 360px; }
.search .icon { position: absolute; left: 12px; top: 12px; color: #98a1a9; width: 17px; height: 17px; }
.search input { padding-left: 38px; }
input, select, textarea { background: #fff; color: var(--ink); border-radius: 4px; padding: 11px 12px; width: 100%; min-height: 43px; }
input::placeholder, textarea::placeholder { color: #9aa2aa; }
textarea { resize: vertical; min-height: 108px; }
label { display: block; font-size: 14px; font-weight: 550; margin-bottom: 7px; }
.field small { display: block; margin-top: 6px; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.span-2 { grid-column: span 2; }
.form-section { padding: 25px; border-bottom: 1px solid var(--border); }
.form-section h2 { margin-bottom: 6px; }
.form-section > p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 20px 25px; }
.form-error { color: var(--danger); font-size: 14px; padding: 12px; background: var(--danger-bg); border-radius: 4px; margin: 15px 0; }
.form-error:empty { display: none; }
.field-error { color: var(--danger); font-size: 14px; display: block; margin-top: 4px; }
[aria-invalid="true"] { border-color: var(--danger); }
.notice { background: #eef2e6; color: #65734b; border: 1px solid var(--border); border-radius: 4px; padding: 12px 16px; margin-bottom: var(--section-gap); font-size: 14px; }
.empty { padding: 46px 22px; text-align: center; color: var(--muted); }
.empty h2 { color: var(--ink); margin-bottom: 8px; }
.empty .icon { margin-bottom: 12px; width: 32px; height: 32px; }
.empty .btn { margin-top: 16px; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--section-gap); }
.profile-card { text-align: center; padding: 32px 20px; }
.profile-card .avatar { width: 80px; height: 80px; font-size: 28px; margin-bottom: 18px; }
.profile-card h2 { margin-bottom: 6px; }
.profile-card .badge { margin-top: 14px; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin: 0; }
.details dt { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.details dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; white-space: pre-wrap; }
.notifications { position: fixed; bottom: 24px; right: 24px; z-index: 100; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 48px)); }
.toast { background: var(--sidebar); color: #fff; border: 1px solid var(--border); padding: 15px 20px; border-radius: 4px; box-shadow: 0 8px 30px #0002; font-size: 15px; }
.toast.error { background: #8a2e38; }
.update-banner { position: sticky; top: 0; z-index: 40; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 10px 20px; background: #fff5dc; color: #725219; font-size: 14px; }
.mobile-menu { display: none; background: transparent; border: 0; padding: 5px; }
.backdrop { display: none; }
.sidebar { overflow-y: auto; }
.sidebar > * { flex-shrink: 0; }
.skeleton { height: 180px; border-radius: 4px; background: linear-gradient(100deg, #eceff0, #f8fafb, #eceff0); background-size: 200% 100%; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { to { background-position: -200% 0; } }
.student-form-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.student-form-grid > .field { flex: 0 1 200px; min-width: 0; max-width: 100%; }
.student-form-grid > .field-wide { flex: 1 1 320px; }
.student-form-grid > .field-full { flex: 1 1 100%; }
.student-photo-picker { position: relative; width: 128px; }
.photo-placeholder { width: 128px; height: 128px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 50%; color: #9aa4ac; background: #f8fafb; }
.photo-placeholder > .icon { width: 60px; height: 60px; }
.photo-placeholder img, .student-profile-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.student-photo-button { position: absolute; right: 0; bottom: 0; width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 50%; }
.student-photo-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.profile-card .student-profile-photo { display: block; width: 128px; height: 128px; margin: 0 auto 18px; }
@media (max-width: 480px) { .student-form-grid > .field { flex-basis: 100%; } }
dialog { border: 1px solid var(--border); border-radius: 4px; padding: 26px; max-width: 420px; width: calc(100% - 32px); color: var(--ink); }
dialog::backdrop { background: #10182088; }
dialog p { margin: 12px 0 24px; color: var(--muted); font-size: 15px; }
@media (min-width: 1600px) { .content { padding-top: 40px; }
.stat { padding: 25px; } }
@media (max-width: 1200px) { .sidebar { width: 215px; }
.shell { margin-left: 215px; }
.content { padding: 25px 24px; }
.topbar { padding: 14px 24px; }
.dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-grid { gap: var(--section-gap); }
.stat { padding: 15px; }
.stat-note { font-size: 14px; } }
@media (max-width: 1000px) { .dashboard-grid { grid-template-columns: 1fr; }
.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-grid { grid-template-columns: 1fr; }
.welcome-art { display: none; } }
@media (max-width: 760px) { .sidebar { transform: translateX(-100%); transition: transform .2s; width: 244px; }
.menu-open .sidebar { transform: translateX(0); }
.menu-open .backdrop { display: block; position: fixed; inset: 0; background: #10182088; border: 0; z-index: 25; }
.shell { margin-left: 0; }
.mobile-menu { display: inline-flex; }
.topbar { min-height: 66px; padding: 12px 18px; }
.breadcrumb { display: none; }
.top-actions { gap: 12px; margin-left: auto; }
.user-link { padding-left: 12px; }
.user-link > div:last-child { display: none; }
.content { padding: 25px 18px 18px; }
.page-heading { align-items: flex-start; }
.page-heading .actions .date-button { display: none; }
.welcome-banner { padding: 20px; }
.welcome-banner h2 { font-size: 18px; }
.welcome-banner p { font-size: 14px; }
.form-grid, .details { grid-template-columns: 1fr; }
.span-2 { grid-column: auto; }
.form-section { padding: 20px; }
.toolbar { padding: 15px; flex-wrap: wrap; }
.toolbar .search { max-width: none; min-width: 180px; }
.toolbar select { max-width: 160px; }
.footer { font-size: 14px; } }
@media (max-width: 400px) { .stats-grid { gap: 9px; }
.stat { padding: 13px; }
.stat-top { font-size: 14px; }
.stat-value { font-size: 29px; }
.stat-note { display: block; }
.stat-note .positive { margin-right: 4px; }
.page-heading { flex-wrap: wrap; } }
@media (max-width: 760px) { .user-link > div { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.chart-summary, .chart-foot, .finance-item, .panel-head, .footer { flex-wrap: wrap; }
@media (max-width: 760px) { .page-heading { flex-wrap: wrap; } }
.sidebar-divider { width: 100%; height: 0; margin: 0 0 24px; border: 0; border-top: 1px solid var(--border); }
.sidebar-bottom .sidebar-divider { margin-bottom: 12px; }
.user-link { border-left: 0; padding-left: 0; }
.content, .shell, #page, .panel-body, .form-section, .field, .page-heading > div, .actions, .stat, .stat-top > span, .activity > div { min-width: 0; }
.page-heading, .toolbar, .form-actions, .update-banner { flex-wrap: wrap; }
.panel-head > div, .finance-item > div { min-width: 0; }
.dashboard-grid, .profile-grid, .stats-grid { gap: var(--section-gap); align-items: stretch; }
.dashboard-grid { margin-bottom: var(--section-gap); }
.finance-grid { margin-top: var(--section-gap); padding: 0; }
.dashboard-grid > .panel { height: 100%; display: flex; flex-direction: column; }
.dashboard-grid > .panel > .panel-body { flex: 1; }
.stat { display: flex; flex-direction: column; }
.stat-top { gap: 8px; min-height: 42px; }
.stat-note { margin-top: auto; min-height: 42px; }
.stat-value { overflow-wrap: anywhere; }
.finance-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 80px; gap: 12px; }
.finance-item strong { margin-left: 0; text-align: right; white-space: nowrap; }
.table-wrap { width: 100%; max-width: 100%; }
.panel-body p, .page-heading p, .stat-note, .activity p { overflow-wrap: anywhere; }
.search { min-width: 0; }
input, select, textarea { min-width: 0; }
.btn, input, select, textarea, .nav a, .logout, .mobile-menu, .text-link, .user-link, .panel, .stat { transition: border-color 200ms ease, background-color 200ms ease; }
input:focus, textarea:focus, .student-state-field select:focus { outline: none; border-color: var(--focus-border); box-shadow: none; }
.dashboard-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--section-gap); margin-bottom: var(--section-gap); }
.dashboard-stack > .panel { width: 100%; min-width: 0; }
.revenue-panel .chart { padding: 12px 22px 8px; }
.revenue-panel .chart svg { height: auto; max-height: 320px; }
.financial-summary-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 32px; }
.financial-donut { min-width: 0; margin: 0; display: grid; justify-items: center; gap: 12px; }
.donut-visual { position: relative; width: min(100%, 310px); aspect-ratio: 1; }
.donut-visual svg { display: block; width: 100%; height: 100%; }
.donut-track { stroke: #f0f2f4; }
.donut-segment.received { stroke: var(--lime); }
.donut-segment.pending { stroke: #e4b75a; }
.donut-segment.overdue { stroke: #c7757d; }
.donut-segment { transition: stroke-width 180ms ease; }
.donut-segment:hover { stroke-width: 34px; }
.donut-center { position: absolute; inset: 25%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; pointer-events: none; }
.donut-center small, .donut-center span { color: var(--muted); font-size: 14px; }
.donut-center strong { font-size: clamp(20px, 2vw, 26px); font-weight: 650; letter-spacing: -.7px; white-space: nowrap; }
.financial-donut figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.financial-breakdown { min-width: 0; }
.financial-breakdown .finance-item { min-height: 88px; }
.financial-category { display: flex !important; align-items: center; gap: 9px; margin-bottom: 4px; }
.financial-swatch { width: 4px; height: 16px; flex-shrink: 0; border-radius: 1px; }
.financial-swatch.received { background: var(--lime); }
.financial-swatch.pending { background: #e4b75a; }
.financial-swatch.overdue { background: #c7757d; }
.financial-amount { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.financial-amount span { color: var(--muted); font-size: 14px; }
@media (max-width: 1000px) { .financial-summary-body { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 1400px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .dashboard-grid, .profile-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .stats-grid { grid-template-columns: minmax(0, 1fr); }
.toolbar .search { min-width: 0; flex-basis: 100%; }
.toolbar select { max-width: 100%; }
.chart-summary strong { overflow-wrap: anywhere; } }


.shell { min-height: 100vh; display: flex; flex-direction: column; }
.content { width: 100%; flex: 1; display: flex; flex-direction: column; }
#page { flex: 1; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px; flex-wrap: nowrap; }
.pagination [data-page] { min-width: 0; font-size: 13px; line-height: 1.4; text-align: center; color: var(--muted); }
.pagination .btn { flex-shrink: 0; min-height: 34px; padding: 6px 12px; font-size: 13px; }
.search-help { padding: 0 20px; font-size: 14px; }
.mfa-secret { font-family: monospace; overflow-wrap: anywhere; padding: 14px; border: 1px solid var(--border); border-radius: 10px; user-select: all; }
.recovery-codes { font-size: 15px; line-height: 1.8; user-select: all; overflow-wrap: anywhere; white-space: pre-wrap; }
dialog .field { margin: 16px 0; }

input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 18px; padding: 0; margin: 0; flex: 0 0 18px; accent-color: var(--lime-dark); }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 0; line-height: 1.5; cursor: pointer; }
.check-row input { margin-top: 2px; }
.actions, .form-actions { gap: 12px; }
.btn[hidden] { display: none; }
.btn { white-space: normal; text-align: center; }
.dialog-actions, dialog form > .actions { margin-top: 24px; justify-content: flex-end; }
.panel-body > p + .btn, .panel-body > p + .actions, .panel-body section > p + .actions { margin-top: 20px; }
.panel-body > p + p { margin-top: 10px; }
.panel-body > h2 + p { margin-top: 10px; }
.panel-body > section { margin-top: 28px; }
.panel-body > section > h2 + p { margin-top: 8px; }
.security-header { display: flex; align-items: flex-start; gap: 16px; }
.security-header > div { min-width: 0; }
.security-emblem { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: var(--radius); background: var(--lime); color: var(--lime-dark); }
.security-emblem .icon { width: 24px; height: 24px; }
.security-kicker { display: block; font-size: 12px; font-weight: 650; letter-spacing: 1.25px; color: var(--lime-dark); margin-bottom: 6px; }
.security-header h2 { font-size: clamp(23px, 3vw, 29px); line-height: 1.2; letter-spacing: -.8px; }
.security-header p { margin: 10px 0 0; font-size: 14px; color: var(--muted); line-height: 1.65; }
.recovery-dialog { max-width: 940px; padding: clamp(20px, 3vw, 36px); border-radius: 12px; max-height: calc(100dvh - 40px); overflow-y: auto; box-shadow: 0 24px 90px #10182030; }
.recovery-dialog::backdrop { background: #101820a6; backdrop-filter: blur(3px); }
.recovery-form { display: grid; gap: 26px; }
.recovery-layout { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 24px; align-items: start; }
.recovery-list-section { min-width: 0; }
.security-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.security-toolbar h3 { font-size: 15px; }
.recovery-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.recovery-list li { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 14px; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: #f8f9fa; }
.code-number { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.recovery-list code { flex: 1; min-width: 0; font-family: Consolas, 'Courier New', monospace; font-size: 14px; letter-spacing: .35px; user-select: all; overflow-wrap: anywhere; }
.copy-button { min-height: 38px; font-size: 13px; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease; }
.copy-icon { width: 34px; height: 34px; min-height: 34px; flex: 0 0 34px; padding: 7px; background: transparent; border-color: transparent; }
.copy-icon:hover { background: #fff; border-color: var(--border); }
.copy-button.is-copied { background: var(--success-bg); border-color: #a4d1b4; color: var(--success); opacity: 1; }
.copy-button.is-copied .icon { animation: copy-confirm 300ms ease-out; }
@keyframes copy-confirm { 0% { transform: scale(.5); opacity: 0; } 65% { transform: scale(1.18); } 100% { transform: scale(1); opacity: 1; } }
.copy-status { min-height: 21px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.recovery-qr-card { padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: #fff; text-align: center; }
.security-qr { display: block; width: 100%; height: auto; aspect-ratio: 1; background: #fff; }
.recovery-qr-card h3 { margin-top: 14px; font-size: 14px; }
.recovery-qr-card p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.security-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border: 1px solid #dce6c6; border-radius: var(--radius); background: #f5f8ed; color: #53653a; }
.security-note .icon { width: 18px; height: 18px; margin-top: 2px; }
.security-note p { margin: 0; font-size: 13px; line-height: 1.6; color: inherit; }
.recovery-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-top: 22px; border-top: 1px solid var(--border); }
.recovery-footer .check-row { flex: 1 1 260px; }
.recovery-footer .btn { min-width: 136px; min-height: 44px; }
@media (max-width: 700px) {
    .recovery-layout { grid-template-columns: minmax(0, 1fr); }
    .recovery-qr-card { width: min(100%, 260px); justify-self: center; }
    .recovery-header { gap: 12px; }
    .recovery-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
    .recovery-list li { gap: 8px; padding-left: 10px; }
    .recovery-list code { font-size: 13px; letter-spacing: 0; }
    .recovery-footer .actions { flex: 1 1 100%; }
    .recovery-footer .btn { width: 100%; }
}

.session-banner { position: sticky; top: 0; z-index: 45; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 14px 20px; background: var(--warning-bg); color: #725219; border-bottom: 1px solid #e5d4aa; font-size: 14px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.plain-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.plain-fieldset:disabled input, .plain-fieldset:disabled select, .plain-fieldset:disabled textarea { color: var(--ink); opacity: 1; background: #f8f9fa; }
.branch-picker .actions { margin-top: 10px; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-bg); border-color: #e8bec3; }
.permission-identity { display: flex; align-items: center; gap: 16px; padding: 22px 24px; margin-bottom: var(--section-gap); }
.permission-identity > div { min-width: 0; flex: 1; }
.permission-identity p { margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; font-size: 14px; }
.permission-identity > .avatar { width: 48px; height: 48px; flex-basis: 48px; }
.permission-tree { padding: 8px 24px; }
.permission-node { border-bottom: 1px solid var(--border); }
.permission-node:last-child { border-bottom: 0; }
.permission-node > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 20px 0; cursor: pointer; list-style: none; }
.permission-node > summary::-webkit-details-marker { display: none; }
.permission-node > summary::before { content: '›'; width: 16px; font-size: 24px; line-height: 1; transform: rotate(0); color: var(--muted); }
.permission-node[open] > summary::before { transform: rotate(90deg); }
.permission-module { display: inline-flex; align-items: center; gap: 12px; flex: 1; }
.permission-module > .icon { color: var(--lime-dark); }
.permission-node summary > .muted { font-size: 13px; }
.permission-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 0 22px 40px; }
.permission-option, .permission-unavailable { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; min-width: 0; }
.permission-option { display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; background: #fafbfc; }
.permission-option:has(input:checked) { background: #f0f6df; border-color: #cbdba8; }
.permission-option:has(input:disabled) { cursor: default; }
.permission-unavailable { color: #919aa1; background: #fafbfc; font-size: 14px; }
.permission-unavailable small { display: block; font-size: 12px; margin-top: 2px; }
.permission-help { border-top: 1px solid var(--border); padding: 18px 24px; color: var(--muted); font-size: 13px; }
.permission-help p + p { margin-top: 6px; }
.permissions-form > .form-section:has(.form-error:empty) { display: none; }
@media (max-width: 760px) {
    .permission-tree { padding: 4px 18px; }
    .permission-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 0; }
    .permission-identity { flex-wrap: wrap; padding: 18px; }
    .permission-node summary > .muted { flex-basis: 100%; padding-left: 28px; }
}
@media (max-width: 380px) { .permission-actions { grid-template-columns: minmax(0, 1fr); } }

table tbody td { font-family: inherit; font-size: 14px; font-weight: 550; font-style: normal; line-height: 1.5; letter-spacing: normal; color: var(--ink); }
table tbody td :is(b, strong, small, .badge, .text-link, .btn, .avatar) { font: inherit; letter-spacing: inherit; text-transform: none; }
table tbody td.muted, table tbody td .muted, table tbody td small { color: inherit; }
.student-list-panel { overflow: visible; }
.student-toolbar { justify-content: flex-start; }
.student-search-controls { display: flex; align-items: center; gap: 10px; width: min(100%, 600px); min-width: 0; }
.student-search-group { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; flex: 1; min-width: 0; }
.student-search-group .search { width: 100%; max-width: none; min-width: 0; }
.student-search-group > .btn { height: 44px; min-height: 44px; white-space: nowrap; }
.student-search-group input { height: 44px; min-height: 44px; padding: 11px 12px 11px 38px; font-size: 14px; line-height: 20px; }
.student-search-group .search > .icon { top: 50%; transform: translateY(-50%); }
.student-filter-anchor { position: relative; flex: 0 0 44px; }
.student-filter-button { width: 44px; height: 44px; min-height: 44px; padding: 0; position: relative; }
.student-filter-button .icon { width: 24px; height: 24px; stroke-width: 1.9; }
.student-filter-button[data-filtered="true"]::after { content: ''; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--lime-dark); }
.student-search-options { position: absolute; z-index: 35; top: 0; left: calc(100% + 12px); width: 360px; max-width: calc(100vw - 68px); padding: 16px 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 12px; box-shadow: 5px 9px 22px #151b211a, 2px 3px 7px #151b210a; transform-origin: top left; animation: student-options-enter 180ms ease-out; }
.student-search-options[hidden] { display: none; }
.student-search-options::before { content: ''; position: absolute; top: 15px; left: -6px; width: 10px; height: 10px; background: var(--surface); border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); transform: rotate(45deg); }
.student-options-heading { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.student-options-heading h2 { font-size: 16px; font-weight: 550; letter-spacing: normal; }
.student-options-symbol { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: #edf5d8; color: var(--lime-dark); }
.student-options-symbol .icon { width: 18px; height: 18px; }
.student-filter-fields { margin: 0; padding: 0; border: 0; min-width: 0; }
.student-filter-fields legend { padding: 0; margin-bottom: 4px; font-size: 14px; font-weight: 550; color: var(--muted); }
.student-filter-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; margin: 0; font-size: 14px; font-weight: 550; cursor: pointer; }
.student-switch { position: relative; display: inline-flex; flex: 0 0 44px; width: 44px; height: 24px; }
.student-switch input { position: absolute; inset: 0; width: 44px; height: 24px; min-height: 24px; margin: 0; opacity: 0; z-index: 1; cursor: pointer; }
.student-switch-track { width: 44px; height: 24px; border: 0; border-radius: 20px; background: #c9cfd3; box-shadow: 1px 2px 4px #151b2112; transition: background-color 220ms ease; }
.student-switch-track::before { content: ''; display: block; width: 18px; height: 18px; margin: 3px; border: 0; border-radius: 50%; background: #fff; box-shadow: 1px 2px 4px #151b2126; transition: transform 220ms cubic-bezier(.2, .8, .2, 1); }
.student-switch input:checked + .student-switch-track { background: var(--lime); }
.student-switch input:checked + .student-switch-track::before { transform: translateX(20px); }
.student-switch input:focus-visible + .student-switch-track { outline: 2px solid var(--ink); outline-offset: 3px; }
.student-switch input:disabled + .student-switch-track { opacity: .5; }
.student-switch input:disabled { cursor: not-allowed; }
.app-access-description { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.app-password-row { display: flex; align-items: center; gap: 10px; }
.app-password-row input { min-width: 0; flex: 1; }
.app-access-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.app-access-controls > span { color: var(--muted); font-size: 14px; }
.app-access-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; }
.student-options-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--border); }
.student-options-actions .btn { min-height: 38px; padding: 8px 16px; }
@keyframes student-options-enter { from { opacity: 0; transform: translateX(-6px) scale(.98); } to { opacity: 1; transform: translateX(0) scale(1); } }
@media (max-width: 1350px) {
    .student-search-options { top: calc(100% + 12px); left: auto; right: 0; transform-origin: top right; }
    .student-search-options::before { top: -6px; left: auto; right: 16px; transform: rotate(135deg); }
}
@media (max-width: 400px) { .pagination { gap: 8px; padding: 16px 12px; } .pagination .btn { padding: 6px 9px; } }
@media (prefers-reduced-motion: reduce) { .student-search-options { animation: none; } .student-switch-track, .student-switch-track::before { transition: none; } }

.users-table th:last-child, .users-table td:last-child { width: 88px; text-align: center; }
.user-actions-trigger { width: 44px; height: 44px; min-height: 44px; padding: 0; }
.user-actions-trigger .icon { width: 24px; height: 24px; }
.user-actions-popup { position: fixed; z-index: 35; width: 320px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 16px 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 12px; box-shadow: 5px 9px 22px #151b211a, 2px 3px 7px #151b210a; font-size: 14px; font-weight: 550; line-height: 1.5; transform-origin: top right; animation: user-actions-enter 180ms ease-out; }
.user-actions-popup[hidden] { display: none; }
.user-actions-heading { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.user-actions-heading > div { min-width: 0; }
.user-actions-heading h2 { font-size: 16px; font-weight: 550; letter-spacing: normal; }
.user-actions-heading p { margin-top: 2px; font-size: 14px; font-weight: 550; color: var(--muted); overflow-wrap: anywhere; }
.user-actions-symbol { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%; background: #edf5d8; color: var(--lime-dark); }
.user-actions-symbol .icon { width: 22px; height: 22px; }
.user-actions-list { display: grid; gap: 3px; }
.user-action { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); text-align: left; font: inherit; transition: background-color 160ms ease; }
.user-action .icon { width: 18px; height: 18px; }
.user-action:hover { background: #f0f5e4; }
.user-action:focus-visible { outline: 2px solid var(--lime-dark); outline-offset: -2px; }
.user-action.danger { color: var(--danger); margin-top: 4px; }
.user-action.danger:hover { background: var(--danger-bg); }
.user-actions-footer { display: flex; justify-content: flex-end; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--border); }
.user-actions-footer .btn { min-height: 38px; padding: 8px 16px; font: inherit; }
@keyframes user-actions-enter { from { opacity: 0; transform: translateX(6px) scale(.98); } to { opacity: 1; transform: translateX(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .user-actions-popup { animation: none; } .user-action { transition: none; } }

.student-detail-button { position: relative; display: inline-flex; align-items: center; width: 116px; height: 40px; overflow: hidden; isolation: isolate; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: #263313; font: inherit; vertical-align: middle; }
.student-detail-button::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 42px; background: var(--lime); transition: width 280ms cubic-bezier(.22, .75, .25, 1); }
.student-detail-icon { position: relative; display: grid; place-items: center; align-self: stretch; flex: 0 0 42px; }
.student-detail-icon .icon { width: 21px; height: 21px; }
.student-detail-label { position: relative; flex: 1; padding-right: 8px; text-align: center; opacity: 0; transform: translateX(-7px); transition: opacity 180ms ease, transform 240ms ease; }
.student-detail-button:is(:hover, :focus-visible, :active)::before { width: 100%; }
.student-detail-button:is(:hover, :focus-visible, :active) .student-detail-label { opacity: 1; transform: translateX(0); transition-delay: 70ms; }
.student-detail-button:focus-visible { outline: 2px solid var(--lime-dark); outline-offset: 3px; }
@media (hover: none) { .student-detail-button::before { width: 100%; } .student-detail-label { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .student-detail-button::before, .student-detail-label { transition: none; } }

.student-photo-section { text-align: center; }
#student-form .form-section > h2 { margin-bottom: 18px; }
#student-form .student-form-grid input, #student-form .student-form-grid select, #student-form .student-form-grid textarea { height: 44px; min-height: 44px; padding: 10px 12px; font-size: 14px; line-height: 22px; }
.student-photo-section .student-photo-picker { width: 220px; max-width: 100%; margin-inline: auto; }
.student-photo-section .photo-placeholder { width: 100%; height: auto; aspect-ratio: 1; }
.student-photo-section .photo-placeholder > .icon { width: 96px; height: 96px; }
.student-photo-controls { position: absolute; inset: 0; pointer-events: none; }
.student-photo-controls .btn { position: absolute; width: 44px; height: 44px; min-height: 44px; padding: 0; margin: 0; border-radius: 50%; box-shadow: 2px 3px 8px #151b211a; pointer-events: auto; }
.student-photo-controls .student-photo-button { right: 5px; bottom: 5px; }
.student-photo-controls .student-photo-adjust { right: -6px; bottom: 59px; width: 36px; height: 36px; min-height: 36px; }
.student-photo-controls .btn .icon { width: 26px; height: 26px; }
.student-photo-controls .student-photo-adjust .icon { width: 21px; height: 21px; }
.photo-editor { width: min(460px, calc(100% - 28px)); max-width: 460px; max-height: calc(100dvh - 28px); padding: 0; overflow-y: auto; border-radius: 12px; background: var(--surface); box-shadow: 5px 9px 30px #151b2126; }
.photo-editor-body { padding: 22px 24px 18px; text-align: center; }
.photo-editor-body > p { margin: 8px 0 18px; font-size: 14px; }
.photo-editor-frame { width: min(280px, 100%); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: 50%; background: #f2f4f6; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--border); }
.photo-editor-frame:focus-within { outline: 2px solid var(--lime-dark); outline-offset: 5px; }
.photo-editor-frame canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
.photo-editor-frame canvas.dragging { cursor: grabbing; }
.photo-editor-zoom { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; }
.photo-editor-zoom label { margin: 0; font-size: 14px; }
.photo-editor-zoom input { flex: 1; width: 0; min-width: 0; min-height: 24px; height: 24px; margin: 0; padding: 0; border: 0; background: transparent; accent-color: var(--lime-dark); cursor: pointer; }
.photo-editor-zoom output { width: 44px; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.photo-editor-body > .field-error { margin: 12px 0 0; color: var(--danger); }
.photo-editor-body > .field-error:empty { display: none; }
.photo-editor-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); background: #fafbf8; }
@media (max-height: 660px) { .photo-editor-frame { width: min(220px, 100%); } .photo-editor-body { padding-top: 16px; } }

.student-form-grid > .student-state-field { flex-basis: 130px; }
.student-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.student-section-heading h2 { margin: 0; }
.student-add-contact { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; }
.student-add-contact .icon { width: 24px; height: 24px; }
[data-emergency-contacts] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; padding: 2px; }
[data-emergency-contacts].is-scrollable { overflow-y: auto; scrollbar-gutter: stable; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #a8b48b #f2f4ef; }
.student-emergency-contact { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 6px; }
.student-emergency-contact .student-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 180px); gap: 12px; }
.student-contact-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin-bottom: 10px; }
.student-contact-heading h3 { font-size: 14px; font-weight: 550; color: var(--muted); }
.student-remove-contact { width: 36px; height: 36px; min-height: 36px; padding: 0; color: var(--danger); }
.student-remove-contact .icon { width: 18px; height: 18px; }
@media (max-width: 960px) { [data-emergency-contacts] { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .student-emergency-contact .student-form-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .student-form-grid > .student-state-field { flex-basis: 100%; } }

.student-profile-layout { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); align-items: stretch; gap: 18px; }
.student-profile-summary { padding: 34px 28px; }
.student-profile-summary .student-data-section { padding: 20px 0 0; margin-top: 24px; border-top: 1px solid var(--border); text-align: left; }
.student-profile-summary .student-data-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.student-profile-portrait { width: min(250px, 100%); aspect-ratio: 1; margin: 0 auto 24px; border-radius: 50%; overflow: hidden; border: 1px solid var(--border); background: #f4f6f2; }
.student-profile-portrait .student-profile-photo { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.student-profile-default { display: grid; place-items: center; width: 100%; height: 100%; color: #98a58e; }
.student-profile-default .icon { width: 112px; height: 112px; }
.student-profile-portrait [hidden] { display: none; }
.student-profile-summary h2 { font-size: 20px; overflow-wrap: anywhere; margin-bottom: 10px; }
.student-profile-plan { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 550; }
.student-profile-plan span { min-width: 0; overflow-wrap: anywhere; }
.student-profile-plan .icon { width: 17px; height: 17px; }
.student-profile-summary .badge { margin-top: 16px; font-size: 14px; font-weight: 550; }
.student-profile-data-heading { display: flex; align-items: center; gap: 10px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.student-profile-data-heading h2 { font-size: 18px; font-weight: 550; }
.student-data-symbol { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 7px; background: #eff5de; color: var(--lime-dark); }
.student-data-symbol .icon { width: 18px; height: 18px; }
.student-data-section { padding: 20px 24px; }
.student-data-section + .student-data-section { border-top: 1px solid var(--border); }
.student-data-section h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 15px; font-weight: 550; }
.student-data-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; margin: 0; }
.student-data-list > div { min-width: 0; }
.student-data-list .student-data-wide { grid-column: 1 / -1; }
.student-data-list dt { margin-bottom: 4px; color: var(--muted); font-size: 13px; font-weight: 500; }
.student-data-list dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; font-variant-numeric: tabular-nums; }
.student-data-section .student-data-empty { color: var(--muted); font-size: 14px; font-weight: 400; }
.student-profile-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 12px; padding: 2px; }
.student-profile-contacts.is-scrollable { overflow-y: auto; scrollbar-gutter: stable; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #a8b48b #f2f4ef; }
.student-profile-contact { display: grid; gap: 6px; min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-left: 3px solid var(--lime); border-radius: 6px; }
.student-profile-contact:only-child { grid-column: 1 / -1; }
.student-contact-number { color: var(--muted); font-size: 13px; }
.student-profile-contact strong, .student-contact-phone { font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.student-contact-phone { display: flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; }
.student-contact-phone .icon { width: 15px; height: 15px; color: var(--muted); }
@media (max-width: 1000px) { .student-profile-layout { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1001px) and (max-width: 1250px) { .student-data-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .student-data-list, .student-profile-contacts { grid-template-columns: minmax(0, 1fr); } .student-profile-data-heading, .student-data-section { padding: 18px; } }

.workout-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.workout-search, .workout-day { padding: 24px; }
.workout-search .actions { margin-top: 10px; }
.workout-search input { max-width: 420px; }
.workout-day { margin-top: 20px; }
.workout-day-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.workout-day-heading h2, .workout-day-heading h3 { margin: 0; }
.workout-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.workout-fields label span { display: block; margin-bottom: 7px; font-size: 14px; }
.workout-fields input, .workout-fields select { min-height: 44px; width: 100%; }
.workout-fields textarea { width: 100%; resize: vertical; }
.workout-wide { grid-column: 1 / -1; }
.workout-exercise { padding: 20px; border: 1px solid var(--border); border-radius: 14px; margin: 18px 0; }
.workout-instructions { margin-top: 16px; }
.workout-instructions summary { cursor: pointer; font-size: 14px; }
.workout-instructions .workout-fields { margin-top: 16px; }
.workout-toolbar { padding-top: 20px; }
.workout-form .form-error { margin-top: 14px; }
@media (max-width: 960px) { .workout-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .workout-fields { grid-template-columns: 1fr; } .workout-day, .workout-search { padding: 16px; } .workout-exercise { padding: 14px; } }

.permission-option.permission-inherited { cursor: default; background: #f0f6df; border-color: #cbdba8; }
.permission-inherited > svg { color: #49631a; flex: 0 0 20px; }
