:root {
  --canvas: #f4efe9;
  --paper: #fffdfb;
  --ink: #201b23;
  --muted: #7a6b72;
  --line: #eadfe1;
  --forest: #5b1230;
  --forest-dark: #3c0d22;
  --forest-soft: #7b324a;
  --mint: #f1e4dc;
  --blue: #edf3f6;
  --blue-ink: #4f6674;
  --gold: #f7f1df;
  --gold-ink: #866a2b;
  --coral: #f7eae5;
  --coral-ink: #a76550;
  --shadow: 0 18px 55px rgba(53, 24, 35, .12);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--canvas); color: var(--ink); font-family: 'DM Sans', sans-serif; font-size: 14px; }
button, input, select { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }

.sidebar { background: linear-gradient(180deg, var(--forest-dark) 0%, #2d0d1b 100%); color: #f7f1f2; display: flex; flex-direction: column; min-height: 100vh; padding: 27px 17px 18px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; padding: 6px 0 10px; margin: 0 0 18px; }
.brand-logo-image { display: block; width: min(100%, 250px); height: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.15)); }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700; }
.brand-copy small { font-size: 10px; color: #d6b7c2; }
.nav-label { padding: 0 12px; color: #8da79a; text-transform: uppercase; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; margin-bottom: 10px; }
.nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 12px; height: 43px; padding: 0 12px; color: #c2d0c6; font-size: 12px; font-weight: 500; text-decoration: none; border-radius: 7px; transition: background .18s, color .18s; }
.nav-link:hover { background: rgba(255,255,255,.08); color: white; }
.nav-link.active { background: rgba(255,255,255,.09); color: white; box-shadow: inset 2px 0 #d7b6a6; }
.nav-icon { width: 19px; text-align: center; font-size: 16px; opacity: .88; }
.sidebar-footer { margin-top: auto; }
.campus-badge { display: flex; gap: 10px; align-items: center; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); padding: 15px 8px; margin-bottom: 12px; }
.campus-dot { width: 8px; height: 8px; background: #bed2a8; border-radius: 50%; box-shadow: 0 0 0 4px rgba(190,210,168,.13); }
.campus-badge span:last-child { display: grid; gap: 4px; }
.campus-badge strong { font-size: 11px; font-weight: 600; }
.campus-badge small { font-size: 10px; color: #a9bdb0; }
.logout-btn { background: transparent; border: 0; width: 100%; display: flex; gap: 10px; align-items: center; padding: 9px 10px; text-align: left; cursor: pointer; color: #bdcbc1; font-size: 11px; }
.logout-btn span { font-size: 16px; }
.logout-btn:hover { color: #fff; }

.main-content { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 42px 48px; min-width: 0; }
.topbar { height: 68px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e5e8e1; margin-bottom: 32px; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; font-size: 11px; color: #98a098; }
.breadcrumbs span:last-child { color: #39443c; font-weight: 600; }
.crumb-divider { color: #c1c8c0; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.today-label { color: #7c857d; text-transform: capitalize; font-size: 11px; }
.user-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #dbe6d7; color: var(--forest); font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 800; }
.view-section { animation: enter .35s ease both; }
.view-section.hidden { display: none; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 27px; }
.eyebrow { margin: 0 0 8px; color: #829084; font-size: 9px; line-height: 1.3; font-weight: 700; letter-spacing: 1.25px; text-transform: uppercase; }
.page-heading h1 { margin: 0; font-family: 'Manrope', sans-serif; font-size: 27px; line-height: 1.2; letter-spacing: -.4px; font-weight: 700; }
.heading-subtitle { color: var(--muted); margin: 8px 0 0; font-size: 12px; }
.button { min-height: 37px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 5px; padding: 0 14px; cursor: pointer; font-size: 11px; font-weight: 600; transition: background .16s, transform .16s, border-color .16s; white-space: nowrap; }
.button:active { transform: translateY(1px); }
.button-primary { border: 1px solid var(--forest); background: var(--forest); color: white; box-shadow: 0 4px 10px rgba(91,18,48,.16); }
.button-primary:hover { background: var(--forest-soft); }
.button-primary span:first-child { font-size: 17px; font-weight: 400; line-height: 1; }
.button-primary:disabled { opacity: .65; cursor: wait; }
.button-quiet { background: #fff; border: 1px solid #dfe4dc; color: #58645b; }
.button-quiet:hover { background: #f8faf7; border-color: #c7d1c7; }
.text-button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--forest); cursor: pointer; font-size: 10px; font-weight: 700; padding: 5px 0; }
.text-button span { font-size: 15px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.stat-card { min-height: 126px; padding: 17px 19px 15px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); box-shadow: 0 4px 14px rgba(25,40,30,.025); position: relative; overflow: hidden; }
.stat-card::before { content: ''; width: 3px; position: absolute; inset: 0 auto 0 0; background: #82a38a; }
.stat-card.blue::before { background: #7d9eb6; }
.stat-card.gold::before { background: #c4a45d; }
.stat-card.coral::before { background: #c9866f; }
.stat-topline { display: flex; justify-content: space-between; align-items: center; }
.stat-label { color: #747e75; font-size: 10px; font-weight: 600; }
.stat-symbol { color: #c1c9bf; font-family: 'Manrope', sans-serif; font-size: 9px; font-weight: 700; }
.stat-value { display: block; margin-top: 12px; font-family: 'Manrope', sans-serif; font-size: 27px; line-height: 1; font-weight: 700; }
.stat-note { display: flex; gap: 6px; align-items: center; margin-top: 11px; color: #929a92; font-size: 9px; }
.stat-note i { width: 5px; height: 5px; border-radius: 50%; background: #7ea486; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr); gap: 16px; margin-bottom: 16px; }
.surface { border: 1px solid var(--line); border-radius: 6px; background: var(--paper); box-shadow: 0 4px 14px rgba(25,40,30,.025); }
.dashboard-grid .surface { padding: 19px 20px 10px; min-width: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 15px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { font-family: 'Manrope', sans-serif; font-size: 14px; margin: 0; font-weight: 700; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { height: 38px; color: #8a938b; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; white-space: nowrap; }
td { height: 55px; border-top: 1px solid #edf0eb; color: #5e685f; font-size: 11px; white-space: nowrap; }
td:first-child { color: var(--ink); }
.person-cell { display: flex; align-items: center; gap: 9px; min-width: 160px; }
.person-cell > span:last-child { display: grid; gap: 3px; }
.person-cell strong { color: #313b33; font-size: 11px; font-weight: 600; }
.person-cell small { color: #9aa29a; font-size: 9px; }
.person-avatar { flex: 0 0 29px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #edf3eb; color: #50735c; font-size: 9px; font-weight: 700; }
.person-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.person-avatar-teacher { flex-basis: 36px; width: 36px; height: 36px; }
.person-avatar-gold { background: #f5efdf; color: #92743c; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 3px; padding: 5px 7px; background: #eff1ee; color: #737b73; font-size: 9px; font-weight: 600; }
.status-badge i { width: 5px; height: 5px; border-radius: 50%; background: #929a91; }
.status-badge.positive { background: #ebf4ec; color: #477450; }
.status-badge.positive i { background: #679a70; }
.status-badge.warning { background: #faf3e3; color: #9a7936; }
.status-badge.warning i { background: #c39d49; }
.activity-list { display: grid; }
.activity-item { min-height: 60px; display: flex; align-items: center; gap: 10px; border-top: 1px solid #edf0eb; }
.activity-icon { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-size: 13px; }
.activity-copy { display: grid; gap: 4px; min-width: 0; flex: 1; }
.activity-copy strong { overflow: hidden; color: #394239; text-overflow: ellipsis; font-size: 10px; font-weight: 600; }
.activity-copy small { color: #929a92; font-size: 9px; }
.activity-amount { text-align: right; color: #394239; font-size: 10px; font-weight: 700; }
.activity-amount small { display: block; margin-top: 4px; font-weight: 400; }
.activity-amount .status-badge { padding: 3px 5px; font-size: 8px; }
.overview-strip { display: flex; align-items: center; gap: 13px; padding: 15px 18px; }
.overview-mark { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: var(--mint); font-size: 16px; }
.overview-strip > div:nth-child(2) { flex: 1; }
.overview-strip .eyebrow { margin-bottom: 3px; }
.overview-strip strong { font-size: 11px; font-weight: 600; }

.management-heading { margin-bottom: 23px; }
.management-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 17px; }
.summary-item { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; padding: 13px 16px; }
.summary-item span { color: #7b857c; font-size: 10px; }
.summary-item strong { color: #303a32; font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 700; }
.summary-item.green strong { color: var(--forest); }
.summary-item.blue strong { color: var(--blue-ink); }
.summary-item.gold strong { color: var(--gold-ink); font-size: 17px; }
.records-surface { overflow: hidden; }
.records-toolbar { min-height: 66px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 17px; border-bottom: 1px solid var(--line); }
.search-field { width: min(340px, 46%); height: 36px; display: flex; align-items: center; gap: 9px; border: 1px solid #e5e9e3; border-radius: 4px; background: #fbfcfa; padding: 0 10px; color: #88948a; }
.search-field > span { font-size: 19px; transform: rotate(-20deg); }
.search-field input { min-width: 0; flex: 1; outline: 0; border: 0; background: transparent; color: #343e35; font-size: 10px; }
.search-field input::placeholder { color: #9ca59d; }
.search-field:focus-within { border-color: #91ae98; box-shadow: 0 0 0 2px rgba(80,126,93,.08); }
.search-field kbd { color: #9ca59d; font-size: 9px; border: 1px solid #e4e8e2; border-radius: 3px; padding: 2px 5px; }
.toolbar-controls { display: flex; align-items: center; gap: 8px; }
.student-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.student-filters[hidden] { display: none; }
.filter-control { display: flex; align-items: center; gap: 7px; color: #818b82; font-size: 10px; }
.filter-control select { height: 35px; border: 1px solid #e5e9e3; border-radius: 4px; background: #fff; color: #455047; padding: 0 26px 0 9px; font-size: 10px; }
.refresh-button { min-height: 35px; font-size: 10px; }
.refresh-button span { font-size: 16px; }
.records-surface .table-wrap { padding: 0 17px; }
.records-surface th { height: 43px; }
.records-surface td { height: 62px; }
.records-surface .table-footer { min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 18px; border-top: 1px solid #edf0eb; color: #9aa29a; font-size: 9px; }
.pagination { display: flex; align-items: center; gap: 10px; }
.pagination .button { min-height: 28px; padding: 0 10px; font-size: 11px; }
.pagination .button:disabled { opacity: .45; cursor: not-allowed; }
.profile-label { display: inline-flex; align-items: center; border-radius: 3px; background: #f3e9ec; color: var(--forest); padding: 5px 8px; font-size: 10px; font-weight: 600; }
.system-label { display: inline-block; margin-left: 8px; border-radius: 3px; background: #f4f0e1; color: #8c7133; padding: 3px 6px; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.profile-description { max-width: 360px; white-space: normal; line-height: 1.5; }
.admin-checkbox { display: flex; align-items: center; gap: 8px; color: #606b61; font-size: 10px; font-weight: 600; }
.admin-checkbox input { accent-color: var(--forest); }
.permission-matrix-wrap { max-height: 42vh; overflow: auto; border: 1px solid var(--line); border-radius: 4px; }
.permission-matrix { min-width: 520px; }
.permission-matrix th, .permission-matrix td { height: 38px; border-bottom: 1px solid #edf0eb; padding: 0 10px; }
.permission-matrix thead th { position: sticky; top: 0; z-index: 1; background: #faf8f5; text-align: center; }
.permission-matrix thead th:first-child, .permission-matrix tbody th { text-align: left; }
.permission-matrix tbody th { color: #59645b; font-size: 10px; font-weight: 600; white-space: nowrap; }
.permission-matrix td { text-align: center; }
.permission-matrix input { width: 15px; height: 15px; accent-color: var(--forest); cursor: pointer; }
.profile-details { margin-bottom: 16px; }
.no-access-state { margin-top: 60px; }
.actions-heading { text-align: right; }
.row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.withdrawal-action { min-height: 27px; padding: 0 7px; font-size: 9px; white-space: nowrap; }
.row-action { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #758078; cursor: pointer; font-size: 15px; }
.row-action:hover { border-color: #e2e8e1; background: #f6f8f5; color: var(--forest); }
.row-action.delete-action { font-size: 19px; }
.row-action.delete-action:hover { color: #b35e4a; background: #fbefeb; border-color: #f4dfd8; }
.attendance-cell { display: flex; align-items: center; gap: 8px; }
.attendance-cell > span:first-child { width: 29px; }
.attendance-track { width: 54px; height: 4px; border-radius: 4px; background: #edf0eb; overflow: hidden; }
.attendance-track i { display: block; height: 100%; background: #6e9b77; border-radius: inherit; }
.method-label { color: #667268; }
.money-value { color: #354b3c; font-size: 11px; }
.empty-state { padding: 29px 10px; text-align: center; color: #929b92; white-space: normal; font-size: 11px; }
.empty-state.compact { padding: 24px 4px; }

.record-dialog { width: min(510px, calc(100vw - 28px)); max-height: min(90vh, 760px); padding: 0; border: 1px solid #e6ebe4; border-radius: 8px; background: #fff; color: var(--ink); box-shadow: 0 28px 90px rgba(16,36,24,.24); }
.profile-dialog { width: min(760px, calc(100vw - 28px)); }
.profile-dialog form { max-height: 84vh; overflow-y: auto; }
.record-dialog::backdrop { background: rgba(20,35,27,.48); backdrop-filter: blur(2px); }
.record-dialog form { padding: 25px; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; }
.dialog-header .eyebrow { margin-bottom: 6px; }
.dialog-header h2 { margin: 0; font-family: 'Manrope', sans-serif; font-size: 21px; }
.dialog-close { width: 30px; height: 30px; border: 1px solid #e6eae4; border-radius: 4px; background: #fff; color: #657068; cursor: pointer; font-size: 20px; line-height: 1; }
.dialog-description { margin: 8px 0 20px; color: #818b82; font-size: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.form-section { padding-top: 8px; border-top: 1px solid #edf1ec; margin-top: 4px; }
.form-section-title { display: block; color: #3c5642; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.form-field { display: grid; gap: 6px; color: #606b61; font-size: 10px; font-weight: 600; }
.form-field.field-wide { grid-column: 1 / -1; }
.form-field input, .form-field select, .form-field textarea { width: 100%; height: 39px; border: 1px solid #e1e7df; border-radius: 4px; outline: 0; background: #fff; color: #2f3b31; padding: 0 10px; font-size: 11px; font-weight: 400; }
.form-field textarea { min-height: 76px; padding: 9px 10px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #83a28b; box-shadow: 0 0 0 2px rgba(80,126,93,.09); }
.form-field input::placeholder, .form-field textarea::placeholder { color: #aab1aa; }
.photo-preview { display: flex; align-items: center; gap: 12px; }
.photo-preview img { width: 76px; height: 76px; border-radius: 50%; border: 1px solid #e1e7df; object-fit: cover; }
.photo-error { color: #a44c3d; font-size: 10px; font-weight: 500; }
.dialog-error { min-height: 0; color: #a44c3d; font-size: 10px; margin-top: 9px; }
.dialog-error:not(:empty) { padding: 8px 10px; border-radius: 4px; background: #fbefeb; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 17px; padding-top: 15px; border-top: 1px solid #edf0eb; }
.toast { position: fixed; z-index: 10; right: 24px; bottom: 22px; max-width: min(420px, calc(100vw - 32px)); border: 1px solid #cfe0d1; border-radius: 5px; background: #f2f8f2; color: #345b3d; box-shadow: var(--shadow); padding: 12px 16px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; font-size: 11px; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { border-color: #efd7d0; background: #fcf1ed; color: #99513f; }

@media (max-width: 1080px) {
  .main-content { padding-right: 26px; padding-left: 26px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: relative; top: auto; width: 100%; height: auto; min-height: 0; padding: 13px 14px 9px; }
  .brand { margin: 0 0 13px; padding: 0 2px; }
  .nav-label, .sidebar-footer { display: none; }
  .nav { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 2px; }
  .nav-link { flex: 0 0 auto; height: 36px; padding: 0 10px; font-size: 10px; gap: 6px; }
  .nav-icon { font-size: 14px; }
  .main-content { padding: 0 15px 30px; }
  .topbar { height: 52px; margin-bottom: 23px; }
  .today-label { display: none; }
  .page-heading { align-items: flex-start; margin-bottom: 20px; }
  .page-heading h1 { font-size: 22px; }
  .heading-subtitle { max-width: 340px; line-height: 1.5; }
  .page-heading > .button { min-height: 34px; padding: 0 9px; font-size: 10px; }
  .stats-grid { gap: 9px; }
  .stat-card { min-height: 111px; padding: 13px; }
  .stat-value { font-size: 23px; }
  .dashboard-grid .surface { padding: 15px 12px 8px; }
  .overview-strip { padding: 12px; flex-wrap: wrap; }
  .overview-strip .button { margin-left: 44px; }
  .management-summary { gap: 7px; }
  .summary-item { min-height: 75px; padding: 10px; align-items: flex-start; flex-direction: column-reverse; justify-content: center; gap: 5px; }
  .summary-item span { font-size: 9px; }
  .summary-item strong { font-size: 18px; }
  .summary-item.gold strong { font-size: 14px; }
  .records-toolbar { flex-wrap: wrap; align-items: stretch; padding: 11px; }
  .search-field { width: 100%; }
  .toolbar-controls { justify-content: space-between; }
  .records-surface .table-wrap { padding: 0 10px; }
  .records-surface .table-footer { padding: 0 12px; }
  .record-dialog form { padding: 19px; }
  .profile-dialog form { max-height: 88vh; overflow-y: auto; }
  .profile-description { min-width: 190px; }
}
@media (max-width: 420px) {
  .main-content { padding-right: 11px; padding-left: 11px; }
  .brand-copy small { font-size: 9px; }
  .nav-link { padding: 0 8px; }
  .page-heading { gap: 8px; }
  .page-heading h1 { font-size: 20px; }
  .dashboard-heading > .button { max-width: 130px; white-space: normal; line-height: 1.2; }
  .section-heading h2 { font-size: 12px; }
  .text-button { font-size: 9px; }
  .management-heading > .button { max-width: 135px; white-space: normal; line-height: 1.2; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.field-wide { grid-column: auto; }
}

.career-cell { display: flex; align-items: center; gap: 10px; min-width: 280px; white-space: normal; }
.career-cell > span:last-child { display: grid; gap: 4px; }
.career-cell strong { max-width: 500px; color: #313b33; font-size: 11px; font-weight: 600; }
.career-cell small { color: #929b92; font-size: 9px; }
.career-mark { width: 33px; height: 33px; flex: 0 0 33px; display: grid; place-items: center; border-radius: 5px; background: var(--mint); color: var(--forest); font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 800; }
.records-surface td:last-child { text-align: right; }
.curriculum-progress { display: flex; align-items: center; gap: 9px; color: #667268; font-size: 10px; }
.curriculum-progress .attendance-track { width: 76px; }
.curriculum-action { min-height: 31px; padding: 0 9px; color: var(--forest); font-size: 9px; }
.curriculum-action span { font-size: 13px; }
.career-detail-heading { margin-bottom: 20px; }
.back-button { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 18px; padding: 0; border: 0; background: none; color: #617266; cursor: pointer; font-size: 10px; font-weight: 600; }
.back-button:hover { color: var(--forest); }
.back-button span { font-size: 16px; }
.career-detail-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.career-detail-title h1 { max-width: 850px; margin: 0; font-family: 'Manrope', sans-serif; font-size: 24px; line-height: 1.25; font-weight: 700; }
.career-detail-title .eyebrow { margin-bottom: 7px; }
.defined-count { flex: 0 0 auto; border: 1px solid #dce7dd; border-radius: 4px; background: #f4f8f3; color: #56745d; padding: 8px 10px; font-size: 10px; font-weight: 600; }
.curriculum-surface { padding: 21px 22px; }
.curriculum-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.curriculum-toolbar .eyebrow { margin-bottom: 5px; }
.curriculum-toolbar h2 { margin: 0; font-family: 'Manrope', sans-serif; font-size: 15px; }
.curriculum-controls { display: flex; align-items: center; gap: 10px; }
.copy-cohort-button { white-space: normal; }
.level-tabs { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid #e8ece6; border-radius: 5px; background: #f8faf7; }
.level-tab { min-height: 31px; padding: 0 13px; border: 0; border-radius: 3px; background: transparent; color: #768178; cursor: pointer; font-size: 10px; font-weight: 600; white-space: nowrap; }
.level-tab:hover { color: var(--forest); }
.level-tab.active { background: var(--forest); color: #fff; box-shadow: 0 2px 5px rgba(36,87,68,.15); }
.subject-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 19px 0; }
.subject-slot { min-height: 120px; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 8px 11px; border: 1px solid #e8ece6; border-radius: 5px; background: #fff; padding: 12px; transition: border-color .15s, background .15s; }
.subject-slot .subject-input-wrap { grid-column: 2; }
.subject-slot:focus-within { border-color: #9db6a1; background: #fcfefb; }
.subject-number { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; background: #eef3ed; color: #59735e; font-family: 'Manrope', sans-serif; font-size: 9px; font-weight: 700; }
.subject-input-wrap { display: grid; gap: 4px; min-width: 0; flex: 1; color: #7a857c; font-size: 9px; font-weight: 600; }
.subject-input-wrap input, .subject-input-wrap select { width: 100%; min-width: 0; height: 30px; border: 1px solid #e5eae4; border-radius: 3px; outline: 0; background: #fff; color: #344137; padding: 0 7px; font-size: 10px; font-weight: 500; }
.subject-input-wrap input::placeholder { color: #adb5ad; font-weight: 400; }
.subject-input-wrap input:focus, .subject-input-wrap select:focus { border-color: #91ae98; }
.subject-state { flex: 0 0 auto; max-width: 92px; color: #9ba39b; font-size: 8px; text-align: right; }
.subject-state.filled { color: #5c8263; }
.curriculum-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); color: #8a938b; font-size: 9px; }

.student-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.loading-state { padding: 36px 0; color: var(--muted); }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 85% 5%, #a96d7d 0, transparent 34%), linear-gradient(145deg, #2d0d1b, #5b1230 62%, #8c445b); }
.login-card { width: min(430px, 100%); padding: 36px; border: 1px solid rgba(255,255,255,.7); border-radius: 12px; background: rgba(255,253,251,.97); box-shadow: 0 28px 90px rgba(16,5,10,.3); }
.login-logo { display: block; width: min(230px, 100%); height: auto; margin: 0 auto 28px; }
.login-card .eyebrow { margin-bottom: 7px; color: var(--forest); }
.login-card h1 { margin: 0; font: 700 26px/1.2 'Manrope', sans-serif; }
.login-subtitle { margin: 9px 0 24px; color: var(--muted); font-size: 12px; }
.login-card form { display: grid; gap: 14px; }
.login-card form label { display: grid; gap: 7px; color: #606b61; font-size: 11px; font-weight: 600; }
.login-card input { width: 100%; height: 42px; border: 1px solid #e1e7df; border-radius: 4px; outline: 0; padding: 0 11px; color: var(--ink); }
.login-card input:focus { border-color: #83a28b; box-shadow: 0 0 0 2px rgba(80,126,93,.09); }
.login-error { min-height: 0; color: #a44c3d; font-size: 11px; }
.login-submit { width: 100%; min-height: 42px; }
.login-submit:disabled { opacity: .65; cursor: wait; }

@media (max-width: 760px) {
  .career-detail-title { align-items: flex-start; flex-direction: column; gap: 12px;     .student-filters { width: 100%; }
    .student-filters .filter-control { flex: 1; }
    .login-card { padding: 28px 23px; }
  }
  .career-detail-title h1 { font-size: 20px; }
  .curriculum-surface { padding: 15px 12px; }
  .curriculum-toolbar { align-items: flex-start; flex-direction: column; }
  .curriculum-controls { width: 100%; align-items: stretch; flex-direction: column; }
  .curriculum-controls .filter-control { justify-content: space-between; }
  .level-tabs { width: 100%; overflow-x: auto; }
  .level-tab { flex: 1 0 auto; padding: 0 9px; }
  .subject-grid { grid-template-columns: 1fr; gap: 8px; }
}
.heading-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.import-panel { padding: 22px; }
.import-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-bottom: 18px; }
.import-steps p { margin: 6px 0 12px; font-size: 12px; color: #6b756d; line-height: 1.5; }
.import-drop { display: flex; align-items: center; justify-content: center; margin-top: 10px; min-height: 90px; border: 1.5px dashed #c7d1c7; border-radius: 6px; cursor: pointer; font-size: 12px; color: #58645b; text-align: center; padding: 10px; }
.import-drop:hover { background: #f8faf7; }
.import-drop input { display: none; }
.import-summary { font-size: 12px; font-weight: 600; color: #2f7d4f; }
.import-summary.has-errors { color: #b4552d; }
.import-preview { max-height: 420px; overflow: auto; margin: 14px 0; }
.import-row-error td { background: #fdf0ec; color: #9b3d1d; }
.import-actions { display: flex; gap: 10px; margin-top: 14px; }
@media (max-width: 720px) { .heading-actions { width: 100%; } }
