:root {
    --ink: #1b1b20;
    --muted: #6f6f78;
    --line: #e4e4e9;
    --surface: #ffffff;
    --canvas: #f7f7f9;
    --primary: #ef3040;
    --primary-dark: #c92032;
    --primary-soft: #fff0f2;
    --blue: #3979c7;
    --amber: #f7b51d;
    --coral: #ef3040;
    --danger: #c92032;
    --shadow: 0 16px 44px rgba(24, 24, 29, .09);
    --radius: 18px;
    --radius-sm: 12px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 262px minmax(0, 1fr); grid-template-rows: minmax(calc(100vh - 48px), auto) auto; background: linear-gradient(to right, #141417 0, #141417 262px, var(--canvas) 262px, var(--canvas) 100%); }
.sidebar { grid-column: 1; grid-row: 1; position: relative; top: auto; height: auto; display: flex; flex-direction: column; padding: 20px 18px 18px; background: #141417; color: #fff; z-index: 30; }
.brand { display: block; padding: 0 5px 24px; }
.brand-logo-frame { display: block; overflow: hidden; padding: 5px; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: #050505; box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.brand-logo-frame img { width: 100%; height: 104px; object-fit: contain; border-radius: 12px; }
.brand-caption { display: block; padding: 0 5px; margin-top: 11px; }
.brand-caption strong { display: block; font-size: 13px; letter-spacing: -.015em; }
.brand-caption small { display: block; margin-top: 4px; color: #a9a9b1; font-size: 10px; }
.brand-mark { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 14px; background: var(--primary); color: #fff; font-weight: 900; letter-spacing: -.04em; box-shadow: inset 0 1px rgba(255,255,255,.35); }
.nav-list { display: grid; gap: 6px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 47px; padding: 11px 13px; border-radius: 12px; color: #c4c4ca; font-size: 14px; font-weight: 650; transition: .18s ease; }
.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link.active { background: #fff; color: #19191d; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.nav-link.active .nav-icon { color: var(--primary); }
.nav-icon { width: 24px; height: 24px; display: grid; place-items: center; font-size: 18px; }
.sidebar-footer { margin-top: auto; display: grid; grid-template-columns: 38px minmax(0,1fr) 28px; align-items: center; gap: 9px; padding: 16px 8px 3px; border-top: 1px solid rgba(255,255,255,.1); }
.user-avatar, .topbar-profile { display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.user-avatar { width: 38px; height: 38px; }
.user-summary { min-width: 0; }
.user-summary strong, .user-summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-summary strong { font-size: 12px; }
.user-summary small { margin-top: 3px; color: #a9a9b1; font-size: 10px; }
.logout-link { color: #b7b7bd; font-size: 20px; text-align: center; }

.main-area { grid-column: 2; grid-row: 1; min-width: 0; min-height: calc(100vh - 48px); display: flex; flex-direction: column; }
.topbar { height: 94px; display: flex; align-items: center; gap: 18px; padding: 0 38px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.topbar h1 { margin: 3px 0 0; font-size: 23px; letter-spacing: -.035em; }
.topbar-profile { width: 40px; height: 40px; margin-left: auto; }
.menu-button { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.content { width: min(1480px, 100%); flex: 1; margin: 0 auto; padding: 30px 38px 56px; }
.system-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3px; padding: 0 38px 24px; color: #818189; font-size: 10px; text-align: center; }
.system-footer a { color: var(--primary); font-weight: 750; }
.system-footer-wide { grid-column: 1 / -1; grid-row: 2; min-height: 48px; padding: 14px 24px; background: #0f0f12; color: #bdbdc4; border-top: 1px solid rgba(255,255,255,.08); }
.system-footer-wide a { color: #fff; }
.eyebrow { display: inline-block; color: var(--primary); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow.light { color: #fff4b9; }

.alert { margin-bottom: 18px; padding: 13px 16px; border: 1px solid; border-radius: 12px; font-size: 14px; font-weight: 600; }
.alert-success { color: #245e9c; background: #edf5ff; border-color: #c8dcf4; }
.alert-warning { color: #76520d; background: #fff8df; border-color: #f0d685; }
.alert-danger { color: #a11f2d; background: #fff0f2; border-color: #f2bbc2; }

.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 17px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-weight: 750; font-size: 13px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--primary); color: #fff; box-shadow: 0 9px 22px rgba(239,48,64,.2); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { background: var(--primary-soft); border-color: #f3cbd0; color: var(--primary-dark); }
.button-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.button-light { background: #fff; color: var(--primary-dark); }
.button-small { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.button-block { width: 100%; min-height: 48px; }

.welcome-banner { position: relative; overflow: hidden; min-height: 176px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 34px; border-radius: 22px; color: #fff; background: linear-gradient(118deg, #17171b 0%, #24242b 43%, #316db8 79%, #ef3040 125%); box-shadow: var(--shadow); }
.welcome-banner:after { content: ""; position: absolute; width: 280px; height: 280px; right: 16%; top: -120px; border: 38px solid rgba(255,255,255,.07); border-radius: 50%; }
.welcome-banner > * { position: relative; z-index: 1; }
.welcome-banner h2 { margin: 5px 0 8px; max-width: 640px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.045em; }
.welcome-banner p { margin: 0; color: #e3e3e7; font-size: 14px; }
.family-banner { background: linear-gradient(118deg, #245d9f, #3979c7 62%, #ef3040 125%); }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin: 20px 0; }
.stat-card { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 12px; min-height: 134px; padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 26px rgba(27,68,74,.04); }
.stat-card div strong { display: block; font-size: 26px; letter-spacing: -.04em; }
.stat-card div span { color: var(--muted); font-size: 12px; }
.stat-card > a { position: absolute; bottom: 16px; left: 79px; color: var(--primary); font-size: 11px; font-weight: 800; }
.stat-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; font-size: 21px; }
.stat-icon.mint { background: #fff0f2; color: #d52436; }.stat-icon.blue { background: #edf4fd; color: #3979c7; }.stat-icon.amber { background: #fff6dc; color: #a46b00; }.stat-icon.coral { background: #fff0f2; color: #ef3040; }

.dashboard-grid, .detail-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(340px,.9fr); gap: 20px; margin-top: 20px; }
.panel { padding: 23px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(24,24,29,.045); }
.panel + .panel { margin-top: 20px; }
.detail-grid .panel + .panel, .dashboard-grid .panel + .panel { margin-top: 0; }
.panel-header, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.panel-header h2, .section-heading h2 { margin: 3px 0 0; font-size: 19px; letter-spacing: -.03em; }
.panel-header p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.panel-header > a { color: var(--primary); font-size: 12px; font-weight: 800; }
.event-list, .compact-list, .student-list, .document-list { display: grid; }
.event-row, .compact-list > a, .static-row, .student-list > a, .document-list > a { display: flex; align-items: center; gap: 13px; padding: 13px 3px; border-top: 1px solid #eeeeF1; }
.event-row:first-child, .compact-list > a:first-child, .static-row:first-child, .student-list > a:first-child, .document-list > a:first-child { border-top: 0; }
.event-row > span:nth-child(2), .compact-list > a > span:first-child, .static-row > span:nth-child(2), .student-list > a > span:nth-child(2), .document-list > a > span:nth-child(2) { min-width: 0; flex: 1; }
.event-row strong, .event-row small, .compact-list strong, .compact-list small, .student-list strong, .student-list small, .document-list strong, .document-list small, .static-row strong, .static-row small { display: block; }
.event-row strong, .compact-list strong, .student-list strong, .document-list strong, .static-row strong { font-size: 13px; }
.event-row small, .compact-list small, .student-list small, .document-list small, .static-row small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.date-tile { width: 45px; height: 49px; flex: 0 0 45px; display: grid; place-content: center; text-align: center; border-radius: 12px; background: var(--primary-soft); color: var(--primary-dark); }
.date-tile strong { font-size: 18px; line-height: 1; }.date-tile small { margin-top: 3px; font-size: 8px; font-weight: 850; }
.row-arrow { margin-left: auto; color: #95959d; font-size: 22px; }
.empty-inline { padding: 30px 12px; color: var(--muted); text-align: center; font-size: 13px; }
.empty-state { padding: 58px 22px; text-align: center; }
.empty-state h2 { margin-bottom: 7px; font-size: 20px; }.empty-state p { margin-bottom: 18px; color: var(--muted); }
.quick-card { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; border-radius: var(--radius); background: #fff6f7; border: 1px solid #f2d9dc; }
.quick-card .quick-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 14px; background: #fff; color: var(--primary); font-size: 21px; }
.quick-card strong { margin: 7px 0; font-size: 21px; }.quick-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }.quick-card .button { margin-top: auto; }

.page-toolbar { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.toolbar-copy p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.search-form { min-width: min(560px, 100%); display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 6px 7px 6px 14px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.search-form input { min-width: 0; height: 36px; border: 0; outline: 0; color: var(--ink); }.search-form button { height: 34px; padding: 0 13px; border: 0; border-radius: 8px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 750; cursor: pointer; }
.table-panel { padding: 0; overflow: hidden; }.table-panel > .panel-header { padding: 21px 23px 0; }.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; } th { padding: 12px 18px; background: #f7f7f9; color: #74747c; font-size: 10px; text-align: left; text-transform: uppercase; letter-spacing: .08em; } td { padding: 15px 18px; border-top: 1px solid #eeeeF1; vertical-align: middle; } tbody tr:hover { background: #fcfcfd; }
.person-cell { display: flex; align-items: center; gap: 10px; min-width: 210px; }.person-cell strong,.person-cell small { display: block; }.person-cell strong { font-size: 13px; }.person-cell small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.mini-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; background: #fff0f2; color: var(--primary-dark); font-weight: 850; }.student-color { background: #edf4fd; color: #3979c7; }
.table-action { color: var(--primary); font-size: 11px; font-weight: 800; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; width: max-content; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 850; letter-spacing: .03em; white-space: nowrap; }.badge-success { background: #eaf3ff; color: #2f6eb9; }.badge-warning { background: #fff4cf; color: #805b0b; }.badge-muted { background: #efeff1; color: #6d6d75; }.badge-info { background: #edf4fd; color: #326faf; }.badge-danger { background: #fff0f2; color: #c92032; }

.form-page { display: grid; gap: 20px; }.form-page .panel + .panel { margin-top: 0; }.form-section { padding: 26px; }.section-heading > div:first-child { display: flex; align-items: center; gap: 12px; }.step-number { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--primary-soft); color: var(--primary-dark); font-size: 11px; font-weight: 900; }
.required-note, .file-note, .cep-status { color: var(--muted); font-size: 10px; }.cep-status.success { color: var(--primary); font-weight: 750; }.cep-status.error { color: var(--danger); font-weight: 750; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 17px; }.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }.field > span { font-size: 11px; font-weight: 800; color: #44444b; }.field small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #dedee3; border-radius: 10px; background: #fcfcfd; color: var(--ink); outline: none; transition: .15s ease; }.field input, .field select { height: 43px; padding: 0 12px; }.field textarea { min-height: 86px; padding: 11px 12px; resize: vertical; }.field input:focus, .field select:focus, .field textarea:focus { border-color: #ef6773; background: #fff; box-shadow: 0 0 0 3px rgba(239,48,64,.08); }.span-2 { grid-column: span 2; }.span-4 { grid-column: span 4; }
.field.access-confirm { display: block; padding: 12px 13px; border: 1px solid #dedee3; border-radius: 10px; background: #fcfcfd; }
.field.access-confirm > span { display: flex; align-items: center; gap: 10px; font-size: 11px; line-height: 1.4; }
.field.access-confirm input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; padding: 0; accent-color: var(--primary); }
.check-field { display: flex; align-items: center; gap: 9px; min-height: 43px; align-self: end; font-size: 12px; font-weight: 700; }.check-field input { width: 17px; height: 17px; accent-color: var(--primary); }
.upload-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }.upload-field { min-height: 128px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 16px; border: 1px dashed #e1aeb4; border-radius: 13px; background: #fffafb; text-align: center; cursor: pointer; }.upload-field:hover { border-color: var(--primary); background: var(--primary-soft); }.upload-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }.upload-field strong { font-size: 12px; }.upload-field small { max-width: 100%; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.upload-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 900; }
.sticky-actions, .form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }.sticky-actions { position: sticky; bottom: 15px; z-index: 10; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.guardian-link-card { padding: 18px; border: 1px solid #efdadc; border-radius: 14px; background: #fffafa; }.guardian-link-card + .guardian-link-card { margin-top: 14px; }.guardian-link-card > strong { display: block; margin-bottom: 13px; font-size: 13px; }.guardian-link-card > strong small { color: var(--muted); font-weight: 500; }.guardian-link-card.secondary { background: #fafbfe; border-color: #dce5f2; }

.detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 20px; }.detail-person { display: flex; align-items: center; gap: 15px; }.detail-person h2 { margin: 6px 0 4px; font-size: 25px; letter-spacing: -.04em; }.detail-person p { margin: 0; color: var(--muted); font-size: 12px; }.large-avatar, .large-photo { width: 70px; height: 70px; flex: 0 0 70px; border-radius: 19px; }.large-avatar { display: grid; place-items: center; background: linear-gradient(145deg,#fff0f2,#f7d5da); color: var(--primary-dark); font-size: 25px; font-weight: 900; }.large-photo { object-fit: cover; border: 3px solid #fff; box-shadow: 0 7px 20px rgba(24,24,29,.14); }.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.detail-card { min-height: 100%; }.info-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 20px; margin: 0; }.info-list div { min-width: 0; }.info-list dt, .parentage span, .health-box span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }.info-list dd { margin: 5px 0 0; font-size: 13px; font-weight: 700; word-break: break-word; }.address-card { display: flex; flex-direction: column; gap: 5px; padding: 18px; border-radius: 13px; background: #f7f7f9; font-style: normal; }.address-card strong { font-size: 14px; }.address-card span { color: var(--muted); font-size: 12px; }.parentage { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 15px; }.parentage div { padding: 12px; border: 1px solid var(--line); border-radius: 11px; }.parentage span, .parentage strong { display: block; }.parentage strong { margin-top: 4px; font-size: 11px; }.health-box { margin-bottom: 12px; padding: 15px; border-radius: 12px; background: #fff7df; border: 1px solid #efdfa6; }.health-box.neutral { background: #f7f7f9; border-color: var(--line); }.health-box span,.health-box strong { display: block; }.health-box strong { margin-top: 6px; font-size: 12px; line-height: 1.55; }
.document-list > a > span:last-child { color: var(--primary); font-size: 10px; font-weight: 800; }.file-icon { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 9px; background: #f0f0f2; color: #616169; font-size: 8px; font-weight: 900; }.inline-upload-form { display: grid; grid-template-columns: 1fr 1.5fr auto; align-items: end; gap: 12px; margin-bottom: 18px; padding: 16px; border-radius: 13px; background: #f7f7f9; }.stacked-upload { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 13px; border-radius: 12px; background: #f7f7f9; }.stacked-upload .button { grid-column: span 2; }.compact-documents { margin-top: 14px; }.profile-hero { display: flex; align-items: center; gap: 15px; }.profile-hero > div { flex: 1; }.profile-hero h2 { margin: 4px 0; }.profile-hero p,.muted-copy { margin: 0; color: var(--muted); font-size: 12px; }.muted-copy { margin-top: 15px; line-height: 1.5; }
.course-chip-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }.course-chip-grid article { position: relative; padding: 17px; border: 1px solid var(--line); border-radius: 13px; }.course-chip-grid article > .badge { position: absolute; right: 12px; top: 12px; }.course-chip-grid h3 { margin: 6px 0; font-size: 15px; }.course-chip-grid p { margin: 0; color: var(--muted); font-size: 11px; }
.selectable-course-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }.selectable-course { position: relative; min-height: 150px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: #fcfcfd; cursor: pointer; }.selectable-course input { position: absolute; opacity: 0; }.selectable-course .course-check { position: absolute; right: 14px; top: 14px; width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #d7d7dd; border-radius: 8px; color: transparent; }.selectable-course:has(input:checked) { border-color: #ef7a84; background: #fff4f5; box-shadow: inset 0 0 0 1px #ef7a84; }.selectable-course:has(input:checked) .course-check { background: var(--primary); border-color: var(--primary); color: #fff; }.selectable-course strong { margin-top: 7px; }.selectable-course small { color: var(--muted); }
.student-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }.student-summary-card { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }.student-avatar { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: #e4f0f6; color: #2c6681; font-size: 19px; font-weight: 900; }.student-summary-main h3 { margin: 4px 0; font-size: 17px; }.student-summary-main p { margin: 0; color: var(--muted); font-size: 11px; }.section-heading { margin: 25px 0 14px; }.section-heading > div:first-child > div { display: block; }.card-actions { display: flex; gap: 7px; flex-wrap: wrap; }

.course-admin-grid, .course-detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }.course-admin-card,.course-detail-card { padding: 21px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 25px rgba(24,24,29,.04); }.course-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.category-tag { padding: 5px 9px; border-radius: 7px; background: var(--primary-soft); color: var(--primary); font-size: 9px; font-weight: 850; text-transform: uppercase; }.course-admin-card h2 { margin: 17px 0 7px; font-size: 21px; }.course-admin-card > p,.course-detail-card > p { min-height: 42px; color: var(--muted); font-size: 12px; line-height: 1.5; }.course-admin-card dl,.course-detail-card dl { display: grid; gap: 9px; margin: 18px 0; }.course-admin-card dl div,.course-detail-card dl div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid #eeeeF1; }.course-admin-card dt,.course-detail-card dt { color: var(--muted); font-size: 10px; }.course-admin-card dd,.course-detail-card dd { margin: 0; font-size: 10px; font-weight: 800; text-align: right; }.course-detail-card h3 { margin: 8px 0; font-size: 20px; }
.filter-panel { margin-bottom: 20px; }.filter-form { display: grid; grid-template-columns: 2fr 1fr auto; align-items: end; gap: 12px; }.attendance-list { display: grid; }.attendance-row { display: grid; grid-template-columns: 35px minmax(150px,1fr) auto minmax(130px,.7fr); align-items: center; gap: 12px; padding: 13px 22px; border-top: 1px solid #eeeeF1; }.attendance-student strong,.attendance-student small { display: block; }.attendance-student strong { font-size: 12px; }.attendance-student small { margin-top: 3px; color: var(--muted); font-size: 9px; }.segmented { display: flex; padding: 3px; border-radius: 9px; background: #efeff1; }.segmented input { position: absolute; opacity: 0; }.segmented span { display: block; padding: 7px 9px; border-radius: 7px; color: var(--muted); font-size: 9px; font-weight: 800; cursor: pointer; }.segmented input:checked + span { background: #fff; color: var(--primary-dark); box-shadow: 0 2px 6px rgba(24,24,29,.1); }.attendance-note { min-width: 0; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 9px; font-size: 10px; }.attendance-list + .form-actions { padding: 18px 22px; border-top: 1px solid var(--line); }

.timeline { position: relative; max-width: 980px; }.timeline:before { content:""; position: absolute; top: 54px; bottom: 0; left: 33px; width: 2px; background: #dedee3; }.timeline-month { margin: 25px 0 14px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }.timeline-event { position: relative; display: grid; grid-template-columns: 68px minmax(0,1fr) auto; gap: 17px; align-items: start; margin-bottom: 14px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }.timeline-date { position: relative; z-index: 1; width: 48px; height: 55px; display: grid; place-content: center; text-align: center; border-radius: 13px; background: var(--primary); color: #fff; }.timeline-date strong { font-size: 20px; line-height: 1; }.timeline-date small { margin-top: 4px; font-size: 8px; font-weight: 900; }.timeline-content h3 { margin: 9px 0 5px; font-size: 18px; }.timeline-content p { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }.timeline-content > span { color: #5f5f67; font-size: 11px; font-weight: 700; }

.status-filter { display: flex; flex-wrap: wrap; gap: 6px; }.status-filter a { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); font-size: 10px; font-weight: 750; }.status-filter a.active { background: var(--primary); border-color: var(--primary); color: #fff; }.ticket-list { display: grid; }.ticket-row { display: grid; grid-template-columns: 5px minmax(0,1fr) auto 24px; align-items: center; gap: 16px; padding: 17px 22px; border-top: 1px solid #eeeeF1; }.ticket-row:hover { background: #fcfcfd; }.ticket-priority { width: 4px; height: 42px; border-radius: 4px; background: #c9c9cf; }.ticket-priority.high { background: var(--coral); }.ticket-priority.low { background: #6ba5c2; }.ticket-main > span { display: flex; align-items: center; gap: 8px; }.ticket-main strong { font-size: 13px; }.ticket-main small,.ticket-meta small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }.ticket-meta { text-align: right; }.ticket-meta strong { font-size: 10px; }
.ticket-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; }.back-link { display: inline-block; margin-bottom: 12px; color: var(--primary); font-size: 11px; font-weight: 800; }.ticket-title-row { display: flex; align-items: center; gap: 10px; }.ticket-title-row h2 { margin: 0; font-size: 24px; }.ticket-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }.ticket-contact { min-width: 220px; display: flex; flex-direction: column; align-items: flex-end; }.ticket-contact span,.ticket-contact strong,.ticket-contact small { display: block; }.ticket-contact span { font-size: 11px; }.ticket-contact strong { margin-top: 4px; }.ticket-contact small { margin-top: 5px; color: var(--muted); }
.conversation { max-width: 930px; display: grid; gap: 17px; margin-bottom: 22px; }.message { display: flex; align-items: flex-start; gap: 10px; }.message.own { flex-direction: row-reverse; }.message-avatar { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 11px; background: #fff0f2; color: var(--primary-dark); font-size: 11px; font-weight: 900; }.message-bubble { width: min(680px,80%); padding: 15px; border: 1px solid var(--line); border-radius: 5px 15px 15px 15px; background: #fff; }.message.own .message-bubble { border-radius: 15px 5px 15px 15px; background: #fff4f5; border-color: #f2d1d5; }.message.staff-message:not(.own) .message-bubble { border-left: 3px solid var(--primary); }.message-meta { display: flex; justify-content: space-between; gap: 15px; }.message-meta strong { font-size: 10px; }.message-meta span { color: var(--muted); font-size: 9px; }.message-bubble > p { margin: 10px 0 0; font-size: 12px; line-height: 1.65; }.message-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }.message-files a { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 9px; font-weight: 750; }.reply-panel { max-width: 930px; }.reply-actions { display: flex; align-items: end; gap: 12px; margin-top: 12px; }.attachment-button { min-height: 42px; display: flex; align-items: center; padding: 9px 13px; border: 1px dashed #e1aeb4; border-radius: 10px; color: var(--primary); font-size: 10px; font-weight: 800; cursor: pointer; }.attachment-button input { width: 1px; opacity: 0; }.status-select { min-width: 190px; margin-left: auto; }

.member-card-wrap { display: grid; place-items: center; min-height: 440px; padding: 35px; border-radius: 20px; background: radial-gradient(circle at 10% 15%,#ffe8eb,transparent 32%), radial-gradient(circle at 90% 15%,#fff0bb,transparent 28%), linear-gradient(145deg,#f6f7fb,#e9f1fc); }.member-card { width: min(860px,100%); aspect-ratio: 1.78/1; min-height: 380px; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 24px 60px rgba(24,24,29,.2); }.member-card-header { min-height: 82px; display: flex; align-items: center; gap: 13px; padding: 12px 23px; background: #121215; color: #fff; border-bottom: 4px solid var(--primary); }.member-logo { width: 104px; height: 56px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; background: #050505; }.member-logo img { width: 100%; height: 100%; object-fit: contain; }.member-card-header strong,.member-card-header small { display: block; }.member-card-header small { margin-top: 3px; color: #c4c4ca; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }.member-year { margin-left: auto; color: #f7b51d; font-size: 21px; font-weight: 800; }.member-card-body { flex: 1; display: grid; grid-template-columns: 145px minmax(0,1fr) 130px; gap: 22px; align-items: center; padding: 23px; }.member-photo { width: 140px; aspect-ratio: 3/4; overflow: hidden; display: grid; place-items: center; border-radius: 16px; background: #edf4fd; color: var(--blue); font-size: 38px; font-weight: 900; }.member-photo img { width: 100%; height: 100%; object-fit: cover; }.member-data h2 { margin: 4px 0 12px; font-size: 26px; letter-spacing: -.04em; }.member-data dl { display: flex; gap: 30px; margin: 0 0 15px; }.member-data dt { color: var(--muted); font-size: 8px; text-transform: uppercase; }.member-data dd { margin: 3px 0 0; font-size: 11px; font-weight: 800; }.guardian-card-list { display: grid; gap: 6px; }.guardian-card-list div { display: flex; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px solid #ececef; font-size: 10px; }.qr-area { display: grid; justify-items: center; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 14px; }.qr-area img,.qr-area canvas { width: 116px!important; height: 116px!important; }.qr-area small { color: var(--muted); font-size: 8px; }.member-card-footer { display: flex; align-items: center; gap: 17px; min-height: 48px; padding: 11px 23px; background: linear-gradient(90deg,#fff0f2,#edf4fd 58%,#fff7df); color: var(--ink); font-size: 9px; }.member-card-footer span { margin-left: auto; }.card-page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }.card-page-toolbar p { margin: 0; color: var(--muted); font-size: 12px; }.card-notice { max-width: 860px; margin: 18px auto 0; }.card-notice strong { font-size: 12px; }.card-notice p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }

.auth-body { background: #111114; }.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(400px,560px) minmax(0,1fr); grid-template-rows: minmax(0,1fr) auto; padding: 28px 28px 15px; gap: 20px 28px; }.auth-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px,6vw,72px); border-radius: 26px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.24); }.auth-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin-bottom: 34px; }.auth-logo-frame { display: block; width: min(285px,100%); overflow: hidden; padding: 6px; border-radius: 19px; background: #050505; box-shadow: 0 16px 34px rgba(0,0,0,.16); }.auth-logo-frame img { width: 100%; height: 148px; object-fit: contain; border-radius: 14px; }.auth-brand-caption { padding-left: 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }.auth-heading h1 { margin: 6px 0 10px; font-size: 34px; letter-spacing: -.05em; }.auth-heading p { margin-bottom: 28px; color: var(--muted); font-size: 13px; line-height: 1.6; }.form-stack { display: grid; gap: 16px; }.password-field { position: relative; }.password-field input { padding-right: 72px; }.password-field button { position: absolute; top: 5px; right: 5px; height: 33px; border: 0; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-size: 9px; font-weight: 800; cursor: pointer; }.auth-help { margin: 22px 0 0; color: var(--muted); font-size: 10px; text-align: center; }.auth-visual { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: clamp(35px,6vw,80px); border-radius: 26px; background: radial-gradient(circle at 77% 13%,rgba(247,181,29,.36),transparent 21%), radial-gradient(circle at 58% 33%,rgba(239,48,64,.3),transparent 25%), linear-gradient(145deg,#17171b,#224f8b 62%,#3979c7); color: #fff; }.visual-copy { position: relative; z-index: 2; max-width: 560px; }.visual-pill { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.visual-copy h2 { margin: 17px 0 12px; font-size: clamp(30px,4vw,50px); line-height: 1.05; letter-spacing: -.055em; }.visual-copy p { color: #e4e8f0; line-height: 1.65; }.visual-orbits span { position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }.visual-orbits span:nth-child(1) { width: 520px; height: 520px; top: -150px; right: -110px; }.visual-orbits span:nth-child(2) { width: 360px; height: 360px; top: -70px; right: -30px; }.visual-orbits span:nth-child(3) { width: 170px; height: 170px; top: 45px; right: 65px; background: rgba(239,48,64,.17); }
.system-footer-auth { grid-column: 1 / -1; grid-row: 2; padding: 0; color: #b9b9c0; }
.system-footer-auth a { color: #fff; }
.verification-card { width: min(520px,100%); align-self: center; justify-self: center; padding: 34px; border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.2); }.verification-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }.verification-brand strong,.verification-brand small { display: block; }.verification-brand small { margin-top: 3px; color: var(--muted); font-size: 10px; }.verification-logo { width: 100px; height: 58px; display: block; overflow: hidden; padding: 3px; border-radius: 12px; background: #050505; }.verification-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }.verification-result { padding: 25px; border-radius: 17px; text-align: center; }.verification-result > span { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; font-size: 23px; font-weight: 900; }.verification-result.valid { background: #edf4fd; }.verification-result.valid > span { background: var(--blue); color: #fff; }.verification-result.invalid { background: #fff0f2; }.verification-result.invalid > span { background: var(--danger); color: #fff; }.verification-result.warning { background: #fff7df; }.verification-result.warning > span { background: var(--amber); color: #171719; }.verification-result h1 { margin: 5px 0; font-size: 25px; }.verification-result p { margin: 0; color: var(--muted); font-size: 11px; }.verification-contacts { display: grid; gap: 8px; margin-top: 22px; }.verification-contacts > a { display: flex; justify-content: space-between; gap: 15px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 11px; }.verification-card footer { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }.verification-card footer strong { color: var(--ink); }
.narrow-panel { max-width: 620px; }.narrow-panel .form-actions { margin-top: 5px; }
.staff-access-banner { min-height: 154px; margin-bottom: 20px; background: linear-gradient(118deg,#17171b 0%,#24242b 48%,#3979c7 105%); }
.staff-toolbar { margin-top: 0; }
.staff-avatar { background: #17171b; color: #f7b51d; }
.table-primary,.table-secondary { display: block; white-space: nowrap; }
.table-primary { font-size: 11px; }.table-secondary { margin-top: 3px; color: var(--muted); font-size: 9px; }
.permission-note { display: flex; align-items: flex-start; gap: 13px; margin-top: 20px; background: #fff8df; border-color: #efdfa6; }
.permission-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 9px; background: #f7b51d; color: #171719; font-size: 13px; font-weight: 900; }
.permission-note strong { display: block; font-size: 12px; }.permission-note p { margin: 5px 0 0; color: #6b5a32; font-size: 11px; line-height: 1.55; }
.locked-field { min-height: 43px; display: flex; flex-direction: column; justify-content: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f7f7f9; color: var(--ink); font-size: 12px; font-weight: 750; }
.locked-field small { margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 500; }

@media (max-width: 1180px) {
    .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .course-admin-grid,.course-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.span-4 { grid-column: span 2; }
    .attendance-row { grid-template-columns: 35px 1fr; }.attendance-row .segmented,.attendance-note { grid-column: 2; }
    .member-card { aspect-ratio: auto; }
}

@media (max-width: 860px) {
    .app-shell { display: block; background: var(--canvas); }.sidebar { position: fixed; left: 0; height: 100vh; transform: translateX(-105%); width: min(290px,86vw); transition: transform .2s ease; box-shadow: 12px 0 40px rgba(0,0,0,.2); }.sidebar.open { transform: translateX(0); }.menu-button { display: inline-grid; place-items: center; }.topbar { height: 78px; padding: 0 18px; }.topbar h1 { font-size: 19px; }.content { padding: 20px 18px 45px; }
    .dashboard-grid,.detail-grid { grid-template-columns: 1fr; }.detail-grid .panel + .panel,.dashboard-grid .panel + .panel { margin-top: 0; }
    .detail-heading { align-items: flex-start; flex-direction: column; }.detail-actions { justify-content: flex-start; }
    .student-card-grid,.selectable-course-grid { grid-template-columns: 1fr; }.student-summary-card { grid-template-columns: 50px 1fr; }.student-summary-card .card-actions { grid-column: span 2; }
    .auth-shell { grid-template-columns: 1fr; padding: 14px 14px 10px; }.auth-card { min-height: calc(100vh - 66px); }.auth-visual { display: none; }.system-footer { padding-left: 18px; padding-right: 18px; line-height: 1.5; }
    .member-card-body { grid-template-columns: 115px 1fr; }.member-photo { width: 110px; }.qr-area { grid-column: span 2; grid-row: 2; }.member-card-footer { align-items: flex-start; flex-direction: column; }.member-card-footer span { margin-left: 0; }
}

@media (max-width: 620px) {
    .welcome-banner { align-items: flex-start; flex-direction: column; padding: 24px; }.stats-grid { grid-template-columns: 1fr 1fr; }.stat-card { grid-template-columns: 40px 1fr; min-height: 128px; padding: 15px; }.stat-icon { width: 40px; height: 40px; }.stat-card > a { left: 67px; }.page-toolbar { align-items: stretch; flex-direction: column; }.search-form { min-width: 0; }.panel,.form-section { padding: 18px; }
    .form-grid { grid-template-columns: 1fr; }.span-2,.span-4 { grid-column: span 1; }.upload-grid,.course-admin-grid,.course-detail-grid,.course-chip-grid { grid-template-columns: 1fr; }.inline-upload-form,.stacked-upload { grid-template-columns: 1fr; }.stacked-upload .button { grid-column: span 1; }
    .info-list,.parentage { grid-template-columns: 1fr; }.profile-hero { align-items: flex-start; flex-wrap: wrap; }.profile-hero > .badge { margin-left: 85px; }
    .table-panel { margin-left: -18px; margin-right: -18px; border-radius: 0; border-left: 0; border-right: 0; }
    .filter-form { grid-template-columns: 1fr; }.attendance-row { padding: 14px 16px; }.segmented { overflow-x: auto; }.segmented span { padding: 7px; }
    .timeline-event { grid-template-columns: 55px 1fr; padding: 15px; }.timeline-event > .button { grid-column: 2; justify-self: start; }.timeline:before { left: 23px; }
    .ticket-row { grid-template-columns: 4px 1fr 20px; gap: 10px; }.ticket-meta { display: none; }.ticket-heading { flex-direction: column; }.ticket-contact { align-items: flex-start; }.message-bubble { width: calc(100% - 46px); }.reply-actions { align-items: stretch; flex-direction: column; }.status-select { width: 100%; margin-left: 0; }
    .member-card-wrap { padding: 12px; }.member-card-header { padding: 12px 15px; }.member-card-body { grid-template-columns: 1fr; justify-items: center; text-align: center; }.member-photo { width: 120px; }.member-data dl { justify-content: center; }.guardian-card-list div { flex-direction: column; }.qr-area { grid-column: 1; grid-row: auto; }.member-card-footer { padding: 12px 15px; }.card-page-toolbar { align-items: stretch; flex-direction: column; }
    .auth-card { padding: 28px 22px; }.auth-brand { margin-bottom: 35px; }.auth-heading h1 { font-size: 29px; }
}

@media print {
    body { background: #fff!important; }.sidebar,.topbar,.card-page-toolbar,.card-notice,.alert { display: none!important; }.app-shell { display: block; }.content { padding: 0; }.member-card-wrap { min-height: auto; padding: 0; background: #fff; }.member-card { width: 86mm; min-height: 54mm; aspect-ratio: 1.586/1; border: 1px solid #d4d4d8; border-radius: 4mm; box-shadow: none; }.member-card-header { min-height: 13mm; padding: 2mm 4mm; }.member-logo { width: 18mm; height: 10mm; border-radius: 2mm; }.member-card-header strong { font-size: 8pt; }.member-card-header small { font-size: 5pt; }.member-year { font-size: 10pt; }.member-card-body { grid-template-columns: 22mm 1fr 22mm; gap: 3mm; padding: 3mm 4mm; }.member-photo { width: 22mm; height: 29mm; border-radius: 2mm; }.member-data h2 { margin: 1mm 0 2mm; font-size: 11pt; }.member-data dl { gap: 5mm; margin-bottom: 2mm; }.member-data dt,.member-data dd,.guardian-card-list div { font-size: 5pt; }.qr-area { grid-column: auto; grid-row: auto; padding: 1mm; }.qr-area img,.qr-area canvas { width: 20mm!important; height: 20mm!important; }.qr-area small { font-size: 4pt; }.member-card-footer { min-height: 8mm; padding: 1.5mm 4mm; font-size: 4.5pt; }
}
