/* Daisy Class — a calm workspace for the everyday work of teaching. */
:root {
  color-scheme: light;
  --paper: #f5f1f9;
  --surface: #fff;
  --ink: #2d203a;
  --muted: #6e508d;
  --green: #39244e;
  --green-hover: #2b1a3c;
  --sage: #ebe3f3;
  --sage-ink: #573f6f;
  --orange: #a85d25;
  --peach: #fbede0;
  --line: #e8def1;
  --radius: 17px;
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .48; }
button, a, input, select, textarea { transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s; }
:focus-visible { outline: 3px solid #987bb5; outline-offset: 3px; }
a { color: inherit; }
button { touch-action: manipulation; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
svg { flex-shrink: 0; }
.icon { width: 19px; height: 19px; vertical-align: middle; stroke-width: 1.7; }
.app-shell { min-height: 100vh; }
.sidebar { width: 228px; position: fixed; inset: 0 auto 0 0; background: var(--surface); border-right: 1px solid var(--line); z-index: 30; display: flex; flex-direction: column; padding: 30px 18px 20px; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 13px 41px; text-decoration: none; }
.brand-mark { width: 39px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--green); color: #fff; flex-shrink: 0; }
.brand-mark .icon { width: 25px; height: 25px; }
.brand-name { font-size: 23px; font-weight: 650; letter-spacing: -1px; line-height: 1.4; }
.brand-tagline { font-size: 16px; color: var(--muted); letter-spacing: .6px; margin-top: 1px; }
.nav-label { color: #6e508d; font-size: 16px; letter-spacing: 1.7px; font-weight: 600; margin: 0 15px 12px; text-transform: uppercase; }
.side-nav { display: flex; flex-direction: column; gap: 6px; }
.nav-item { appearance: none; width: 100%; border: 0; background: transparent; color: #6e508d; text-align: left; text-decoration: none; display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-radius: 10px; min-height: 46px; font-size: 16px; font-weight: 500; }
.nav-item:hover { background: #f4f0f9; color: var(--green); }
.nav-item.active { background: #ece4f3; color: var(--green); }
.nav-icon { display: flex; align-items: center; }
.nav-item.active .nav-icon { color: var(--green); }
.nav-count { margin-left: auto; font-size: 16px; min-width: 22px; text-align: center; padding: 1px 6px; background: #dfd2ec; border-radius: 5px; }
.sidebar-bottom { margin-top: auto; padding-top: 35px; }
.demo-note { background: #f5f2f9; border: 1px solid #ece4f3; border-radius: 12px; margin: 0 5px 19px; padding: 13px 12px; font-size: 16px; line-height: 1.8; color: #6e508d; }
.demo-note strong { display: block; font-weight: 550; color: #584071; margin-bottom: 4px; }
.demo-note .icon { width: 15px; height: 15px; margin-right: 4px; }
.profile { border-top: 1px solid var(--line); padding: 18px 9px 0; display: flex; gap: 10px; align-items: center; }
.profile-name { font-weight: 550; font-size: 16px; }
.profile-role { font-size: 16px; color: var(--muted); margin-top: 2px; }
.avatar { height: 35px; width: 35px; flex-shrink: 0; border-radius: 50%; background: #ece4f4; color: #63477f; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; letter-spacing: -.2px; }
.avatar.sage, .class-emblem.sage, .stat-icon.sage { background: #ebe2f3; color: #5e4478; }
.avatar.peach, .class-emblem.peach, .stat-icon.peach { background: #fbede1; color: #986025; }
.avatar.lavender, .class-emblem.lavender { background: #eaf0f3; color: #6e508d; }
.avatar.sand, .class-emblem.sand, .stat-icon.sand { background: #f4f0dc; color: #986025; }
.workspace { margin-left: 228px; min-width: 0; }
.topbar { height: 77px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 40px; background: rgba(255,255,255,.65); }
.breadcrumb { display: flex; align-items: center; gap: 11px; color: #6e508d; font-size: 16px; }
.breadcrumb .icon { width: 15px; height: 15px; }
.breadcrumb strong { color: #5f457a; font-weight: 450; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.year-select { border: 0; background: transparent; padding: 8px 19px 8px 5px; font-size: 16px; color: #60457b; }
.preview-badge { font-size: 16px; line-height: 1.5; letter-spacing: .6px; padding: 6px 9px; border: 1px solid #e0d4ec; border-radius: 6px; color: #6e508d; background: #f0ebf6; white-space: nowrap; }
.content { padding: 35px 40px 40px; max-width: 1500px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-bottom: 28px; }
.eyebrow { color: #6e508d; text-transform: uppercase; letter-spacing: 1.5px; font-size: 16px; font-weight: 550; margin-bottom: 8px; }
.page-title { font-size: clamp(24px,2.5vw,33px); font-weight: 550; letter-spacing: -1.3px; line-height: 1.4; }
.page-description { color: var(--muted); margin-top: 7px; font-size: 16px; line-height: 1.8; }
.heading-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.button { border: 1px solid transparent; border-radius: 8px; padding: 10px 14px; min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; font-size: 16px; text-decoration: none; white-space: nowrap; line-height: 1.5; }
.button .icon { width: 15px; height: 15px; }
.button.primary { background: var(--green); color: #fff; }
.button.primary:hover { background: var(--green-hover); }
.button.secondary { background: #fff; border-color: #e0d4ed; color: #674b84; }
.button.secondary:hover { border-color: #ae98c5; background: #f8f5fb; }
.button.ghost { background: transparent; color: #6a4c88; }
.button.ghost:hover { background: #ede6f4; }
.button.small { padding: 8px 11px; min-height: 33px; font-size: 16px; }
.button.danger { color: #a8493f; background: #fdf0eb; border-color: #f0d9d0; }
.icon-button, .close-modal { border: 1px solid var(--line); background: white; width: 35px; height: 35px; border-radius: 8px; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: #6e508d; }
.icon-button:hover, .close-modal:hover { background: #eee8f5; color: var(--green); }
.icon-button .icon, .close-modal .icon { width: 17px; height: 17px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 17px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 21px 20px 17px; position: relative; min-width: 0; }
.stat-card-top { display: flex; justify-content: space-between; align-items: center; }
.stat-icon { width: 35px; height: 35px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.stat-icon .icon { width: 18px; height: 18px; }
.stat-label { font-size: 16px; color: #6e508d; }
.stat-value { font-size: 29px; font-weight: 550; letter-spacing: -1.3px; line-height: 1.3; margin-top: 7px; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 16px; color: #6e508d; margin-left: 4px; font-weight: 400; letter-spacing: 0; }
.stat-meta { font-size: 16px; color: #6e508d; margin-top: 9px; }
.text-green { color: #6a4d88; }
.text-orange { color: var(--orange); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,1fr); gap: 22px; align-items: start; margin-bottom: 29px; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; overflow: hidden; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 21px 23px 17px; }
.panel-title { font-weight: 550; font-size: 16px; letter-spacing: -.3px; }
.panel-subtitle { color: #6e508d; font-size: 16px; margin-top: 3px; }
.panel-body { padding: 0 23px 23px; }
.text-link { border: 0; background: transparent; padding: 3px 0; color: #6c4e8b; font-size: 16px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.text-link:hover { color: var(--green); text-decoration: underline; }
.text-link .icon { width: 13px; height: 13px; }
.today-class { display: grid; grid-template-columns: 47px 43px minmax(0,1fr) auto; gap: 15px; align-items: center; padding: 19px 0; border-top: 1px solid #ece5f4; }
.time-block { font-size: 16px; font-weight: 500; color: #644881; font-variant-numeric: tabular-nums; }
.time-block span { display: block; font-size: 16px; color: #6e508d; margin-top: 3px; font-weight: 400; }
.class-emblem { width: 43px; height: 43px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 17px; font-weight: 500; letter-spacing: -.5px; flex-shrink: 0; }
.class-emblem .icon { width: 22px; height: 22px; }
.class-name { font-size: 16px; font-weight: 550; }
.class-meta { display: flex; align-items: center; gap: 9px; color: #6e508d; font-size: 16px; margin-top: 5px; }
.class-meta .icon { width: 12px; height: 12px; }
.status { display: inline-flex; align-items: center; gap: 4px; border-radius: 5px; font-size: 16px; padding: 4px 7px; line-height: 1.5; white-space: nowrap; font-weight: 450; }
.status.success { color: #6e508d; background: #eee7f5; }
.status.warning { color: #986025; background: #fff3e5; }
.status.neutral { color: #6e508d; background: #eee8f5; }
.status.danger { color: #aa6551; background: #fcf0e8; }
.progress-track { height: 7px; border-radius: 6px; overflow: hidden; background: #ece5f4; }
.progress-fill { background: #8969aa; height: 100%; border-radius: inherit; min-width: 0; }
.tuition-summary { padding: 0 23px 22px; }
.tuition-total { font-size: 30px; letter-spacing: -1px; font-weight: 550; line-height: 1.5; margin-bottom: 5px; }
.tuition-total small { font-size: 16px; color: #6e508d; font-weight: 400; }
.money-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 16px; color: #6e508d; margin: 11px 0; }
.money-line strong { color: #584071; font-weight: 500; font-variant-numeric: tabular-nums; }
.month-strip { display: flex; gap: 7px; margin: 20px 0 10px; }
.month-strip > span, .month-strip > button { flex: 1; text-align: center; background: #f0e9f6; border: 0; border-radius: 5px; padding: 7px 3px; color: #6e508d; font-size: 16px; }
.month-strip > .active { background: #e4daef; color: #5e4479; }
.insight-note { display: flex; align-items: flex-start; gap: 8px; background: #f5f1f9; padding: 12px 13px; color: #6e508d; font-size: 16px; border-radius: 8px; line-height: 1.8; margin-top: 16px; }
.insight-note .icon { width: 14px; height: 14px; margin-top: 2px; color: #6e508d; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 16px; }
.section-heading h2 { font-size: 17px; font-weight: 550; letter-spacing: -.4px; }
.section-heading p { color: #6e508d; font-size: 16px; margin-top: 5px; }
.class-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 19px; }
.class-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 21px 20px 0; min-width: 0; transition: border-color .18s, transform .18s; }
.class-card:hover { border-color: #c7b8d7; transform: translateY(-2px); }
.class-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 17px; }
.class-card-top > div { display: flex; align-items: center; gap: 12px; }
.class-card-title { font-size: 17px; font-weight: 550; }
.class-card-level { font-size: 16px; color: #6e508d; margin-top: 3px; }
.class-info { display: flex; flex-direction: column; gap: 9px; margin-bottom: 19px; color: #6e508d; font-size: 16px; }
.class-info > div, .class-info > span { display: flex; align-items: center; gap: 8px; }
.class-info .icon { width: 14px; height: 14px; color: #6e508d; }
.class-info strong { margin-left: auto; color: #694c86; font-weight: 450; }
.class-footer { border-top: 1px solid #ece5f4; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 0; }
.student-stack { display: flex; align-items: center; padding-left: 0; }
.student-stack .avatar { width: 25px; height: 25px; font-size: 16px; margin-left: -7px; border: 2px solid white; }
.student-stack .avatar:first-child { margin-left: 0; }
.student-stack .stack-count { background: #f1ebf7; color: #6e508d; }
.empty-state { text-align: center; padding: 60px 24px; color: #6e508d; }
.empty-state .icon { height: 34px; width: 34px; margin-bottom: 15px; }
.empty-state h3 { color: #594073; font-weight: 500; font-size: 18px; margin-bottom: 5px; }
.notice { border-radius: 10px; border: 1px solid #e6dcf0; background: #efe9f5; padding: 13px 16px; color: #6e508d; font-size: 16px; display: flex; align-items: flex-start; gap: 9px; margin-bottom: 22px; line-height: 1.8; }
.notice .icon { width: 16px; height: 16px; margin-top: 2px; }
.notice.soft { border: 0; background: #eee6f5; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-group { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.search-field { position: relative; display: flex; align-items: center; background: #fff; border: 1px solid #e0d4ed; border-radius: 8px; min-width: 210px; min-height: 39px; padding: 0 11px; gap: 8px; }
.search-field .icon { color: #6e508d; width: 16px; height: 16px; }
.search-field input { border: 0; background: transparent; outline: none; min-width: 0; width: 100%; padding: 9px 0; color: #60457b; font-size: 16px; }
.search-field:focus-within { border-color: #8f70af; box-shadow: 0 0 0 3px #e2d7ee; }
.search-field input::placeholder { color: #6e508d; }
.select-field { min-height: 39px; border: 1px solid #dfd2ec; border-radius: 8px; padding: 9px 27px 9px 12px; color: #6e508d; background-color: #fff; font-size: 16px; }
.segmented { display: inline-flex; border: 1px solid #dfd2ec; background: #ede6f4; padding: 3px; gap: 3px; border-radius: 8px; }
.segment { border: 0; background: transparent; border-radius: 5px; padding: 7px 12px; color: #6e508d; font-size: 16px; }
.segment.active { background: white; color: #533b6c; box-shadow: 0 1px 3px #39294a08; }
.table-wrap { overflow-x: auto; width: 100%; scrollbar-width: thin; scrollbar-color: #d5c9e1 transparent; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: left; font-size: 16px; }
.data-table th { color: #6e508d; text-transform: uppercase; letter-spacing: .8px; font-size: 16px; font-weight: 500; background: #fbf9fc; padding: 14px 21px; border-bottom: 1px solid #ebe3f3; }
.data-table td { border-bottom: 1px solid #ede6f4; padding: 14px 21px; color: #6f508f; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #f9f7fb; }
.data-table td:first-child, .data-table th:first-child { padding-left: 23px; }
.data-table th.center, .data-table td.center { text-align: center; }
.data-table th.right, .data-table td.right { text-align: right; }
.student-cell { display: flex; gap: 11px; align-items: center; text-align: left; border: 0; background: transparent; padding: 0; }
button.student-cell:hover .student-name { color: #43285f; text-decoration: underline; }
.student-cell .avatar { width: 33px; height: 33px; font-size: 16px; }
.student-name { color: #523b69; font-weight: 500; font-size: 16px; }
.student-code { font-size: 16px; color: #6e508d; margin-top: 3px; }
.attendance-controls { display: inline-flex; align-items: center; gap: 7px; }
.attendance-choice { border: 1px solid #e2d6ed; background: transparent; border-radius: 6px; color: #6e508d; padding: 7px 11px; font-size: 16px; min-width: 65px; min-height: 31px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.attendance-choice .icon { width: 12px; height: 12px; }
.attendance-choice:hover { border-color: #a38abd; color: #6e508d; }
.attendance-choice.present.selected { color: #6e508d; background: #eee7f5; border-color: #dbcde9; }
.attendance-choice.absent.selected { color: #986025; background: #fcf1e4; border-color: #efdfcb; }
.attendance-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding: 16px 23px; border-top: 1px solid #ece4f3; background: #faf8fc; font-size: 16px; color: #6e508d; }
.attendance-summary strong { font-weight: 550; color: #664983; margin-left: 4px; }
.save-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 20px; padding: 17px 20px; background: #ece4f4; border: 1px solid #e3d8ee; border-radius: 11px; color: #6e508d; font-size: 16px; }
.save-bar .button { flex-shrink: 0; }
.save-bar strong { font-weight: 500; color: #5e4479; }
.summary-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e2d7ee; border-radius: 7px; color: #6e508d; background: white; padding: 6px 10px; font-size: 16px; }
.summary-chip strong { color: #5b4275; font-weight: 550; }
.tuition-cell { display: flex; width: 100%; min-width: 103px; min-height: 49px; border: 1px solid transparent; border-radius: 7px; flex-direction: column; align-items: center; justify-content: center; padding: 7px 10px; font-size: 16px; gap: 2px; }
.tuition-cell:hover { border-color: currentColor; }
.tuition-cell.paid { background: #efe9f5; color: #6e508d; }
.tuition-cell.partial { background: #fcf2e4; color: #986025; }
.tuition-cell.unpaid { background: #f7f1ed; color: #986025; }
.cell-amount { font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 500; }
.cell-label { font-size: 16px; opacity: .9; }
.mobile-only { display: none; }
.table-caption { border-top: 1px solid #ebe3f3; padding: 13px 23px; color: #6e508d; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: #6e508d; background: transparent; border: 0; padding: 0; margin-bottom: 14px; font-size: 16px; }
.back-link:hover { color: #553b70; }
.back-link .icon { width: 14px; height: 14px; }
.detail-tabs { display: flex; align-items: center; gap: 25px; border-bottom: 1px solid #ded1eb; margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.detail-tab { padding: 12px 1px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; white-space: nowrap; font-size: 16px; color: #6e508d; }
.detail-tab.active { color: #553a70; border-bottom-color: #63487f; font-weight: 500; }
.credit-banner { background: #f4f1e6; border: 1px solid #e9e3ce; border-radius: 12px; padding: 18px 21px; color: #6e508d; font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 20px 0; }
.credit-banner .icon { color: #986025; }
.credit-banner strong { display: block; color: #8a7743; font-weight: 500; margin-bottom: 4px; }
.credit-amount { font-size: 22px; color: #8c7841; font-weight: 550; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.8px; }
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: #2b1f3766; backdrop-filter: blur(4px); }
.modal { background: #fff; border: 1px solid #e4daef; border-radius: 20px; width: min(100%,520px); padding: 0; max-height: calc(100dvh - 48px); overflow-y: auto; color: var(--ink); margin: auto; box-shadow: 0 20px 80px #1c142526; }
.modal.wide { width: min(100%,760px); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 26px 18px; border-bottom: 1px solid #ece4f3; }
.modal-title { font-size: 18px; font-weight: 550; letter-spacing: -.6px; line-height: 1.6; }
.modal-header .page-description { margin-top: 4px; font-size: 16px; }
.modal-body { padding: 22px 26px 25px; }
.modal-footer { display: flex; justify-content: flex-end; align-items: center; gap: 9px; border-top: 1px solid #ebe3f3; padding: 17px 26px; background: #fbf9fd; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; min-width: 0; }
.form-grid .field { margin-bottom: 0; }
.field.full { grid-column: 1 / -1; }
.field-label { display: block; font-size: 16px; color: #6e508d; font-weight: 500; }
.field-input { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #ded2eb; border-radius: 8px; background: #fff; color: #5e4479; font-size: 16px; }
textarea.field-input { min-height: 75px; resize: vertical; }
.field-input:focus { border-color: #9679b4; }
.field-help { font-size: 16px; color: #6e508d; line-height: 1.8; }
.payment-summary { border-radius: 10px; background: #f2edf7; padding: 17px; margin: 0 0 22px; }
.payment-summary .student-cell { margin-bottom: 15px; }
.payment-summary .money-line:last-child { margin-bottom: 0; }
.detail-list { display: flex; flex-direction: column; }
.detail-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid #ebe3f3; font-size: 16px; }
.detail-row:last-child { border-bottom: 0; }
.detail-row > span:first-child { color: #6e508d; }
.detail-row strong { color: #6e508d; font-weight: 500; }
.modal .data-table { font-size: 16px; }
.modal .data-table th, .modal .data-table td { padding: 12px 11px; }
.modal .credit-banner { margin-bottom: 0; }
.toast { position: fixed; z-index: 150; bottom: 25px; left: calc(50% + 114px); transform: translate(-50%,20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; border: 1px solid #d8cbe4; background: #fff; padding: 13px 19px; border-radius: 11px; box-shadow: 0 7px 28px #2a1c3915; font-size: 16px; color: #674b84; max-width: calc(100vw - 40px); transition: transform .2s,opacity .2s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.toast-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e9e0f2; }
.toast-icon .icon { width: 15px; height: 15px; }
.list-count { font-size: 16px; color: #6e508d; font-weight: 400; }
.dot { height: 5px; width: 5px; display: inline-block; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.subtle { color: #6e508d; font-size: 16px; }
.amount { font-variant-numeric: tabular-nums; font-weight: 500; }
.negative { color: #986025; }
.metric-pair { display: flex; align-items: center; gap: 9px; }
.student-months { margin-top: 23px; }
.student-months h3 { font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.mobile-nav { display: none; }
.footer-note { text-align: center; margin-top: 27px; font-size: 16px; color: #6e508d; }
.legend { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; color: #6e508d; font-size: 16px; }
.legend span { display: inline-flex; gap: 5px; align-items: center; }
.legend .dot { width: 6px; height: 6px; }
.legend .paid { color: #6e508d; }
.legend .partial { color: #986025; }
.legend .unpaid { color: #986025; }
.form-error { color: #a55648; font-size: 16px; margin-top: 9px; }
.intro-dot { color: #6e508d; margin: 0 6px; }
@media (min-width:1600px) { .content { padding-top: 43px; } }
@media (max-width:1180px) {
  .sidebar { width: 206px; padding-left: 13px; padding-right: 13px; }
  .workspace { margin-left: 206px; }
  .topbar { padding: 0 27px; }
  .content { padding: 30px 27px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 18px 16px 16px; }
  .dashboard-grid { gap: 17px; grid-template-columns: minmax(0,1.4fr) minmax(265px,1fr); }
  .today-class { gap: 10px; grid-template-columns: 40px 38px minmax(0,1fr) auto; }
  .class-emblem { width: 38px; height: 38px; }
  .panel-header { padding: 19px; }
  .panel-body { padding: 0 19px 19px; }
  .tuition-summary { padding: 0 19px 19px; }
  .class-card { padding: 18px 16px 0; }
  .class-grid { gap: 15px; }
  .class-card-top > div { gap: 9px; }
  .toast { left: calc(50% + 103px); }
}
@media (max-width:1020px) {
  .sidebar { width: 190px; padding-left: 10px; padding-right: 10px; }
  .workspace { margin-left: 190px; }
  .brand { margin-left: 10px; gap: 9px; }
  .brand-name { font-size: 21px; }
  .brand-mark { width: 34px; height: 38px; }
  .brand-tagline { font-size: 16px; }
  .nav-item { gap: 10px; padding-left: 12px; padding-right: 12px; }
  .topbar { padding: 0 23px; }
  .content { padding: 27px 23px; }
  .page-heading { align-items: flex-start; }
  .page-title { font-size: 26px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-card { display: grid; grid-template-columns: 1fr auto; padding: 17px 20px; }
  .stat-icon { grid-column: 2; grid-row: 1 / 4; margin: 3px 0 0 12px; width: 40px; height: 40px; }
  .stat-card > .stat-icon + .stat-label { grid-column: 1; }
  .stat-label { grid-column: 1; }
  .stat-value { grid-column: 1; font-size: 27px; }
  .stat-meta { grid-column: 1 / -1; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .class-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .today-class { grid-template-columns: 45px 43px minmax(0,1fr) auto; padding: 17px 0; }
  .class-emblem { width: 43px; height: 43px; }
  .topbar-actions { gap: 10px; }
  .toast { left: calc(50% + 95px); }
}
@media (max-width:767px) {
  body { font-size: 17px; }
  .sidebar { display: none; }
  .workspace { margin-left: 0; padding-bottom: 75px; }
  .topbar { height: 65px; padding: 0 21px; background: #fff; }
  .breadcrumb { font-size: 16px; gap: 8px; }
  .breadcrumb > .icon { width: 17px; height: 17px; }
  .topbar-actions { gap: 8px; }
  .year-select { font-size: 16px; padding-right: 5px; }
  .preview-badge { font-size: 16px; letter-spacing: .3px; padding: 5px 7px; }
  .topbar .avatar { width: 29px; height: 29px; font-size: 16px; }
  .content { padding: 26px 21px 25px; }
  .page-heading { gap: 18px; margin-bottom: 23px; flex-wrap: wrap; }
  .page-title { font-size: 27px; letter-spacing: -1px; }
  .page-description { font-size: 16px; }
  .eyebrow { font-size: 16px; letter-spacing: 1.3px; }
  .heading-actions { gap: 8px; }
  .button { min-height: 43px; padding: 10px 13px; font-size: 16px; }
  .button.small { min-height: 39px; padding: 9px 11px; font-size: 16px; }
  .button .icon { width: 16px; height: 16px; }
  .stats-grid { gap: 11px; margin-bottom: 22px; }
  .stat-card { padding: 17px 16px 15px; border-radius: 12px; }
  .stat-icon { width: 32px; height: 32px; margin-left: 7px; border-radius: 9px; }
  .stat-icon .icon { width: 16px; height: 16px; }
  .stat-label { font-size: 16px; }
  .stat-value { font-size: 25px; margin-top: 8px; }
  .stat-meta { font-size: 16px; margin-top: 8px; }
  .dashboard-grid { gap: 17px; margin-bottom: 25px; }
  .panel { border-radius: 13px; }
  .panel-header { padding: 18px 17px 14px; }
  .panel-title { font-size: 16px; }
  .panel-subtitle { font-size: 16px; }
  .panel-body { padding: 0 17px 17px; }
  .today-class { gap: 11px; grid-template-columns: 41px 38px minmax(0,1fr) auto; }
  .today-class .class-emblem { width: 38px; height: 38px; border-radius: 10px; }
  .time-block { font-size: 16px; }
  .time-block span { font-size: 16px; }
  .class-name { font-size: 16px; }
  .class-meta { gap: 5px; font-size: 16px; flex-wrap: wrap; }
  .tuition-summary { padding: 0 17px 19px; }
  .text-link { min-height: 35px; font-size: 16px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 16px; }
  .class-grid { gap: 12px; }
  .class-card { padding: 16px 14px 0; border-radius: 13px; }
  .class-card-top { margin-bottom: 14px; }
  .class-card-top > div { gap: 9px; }
  .class-card-top .class-emblem { width: 34px; height: 36px; border-radius: 9px; font-size: 16px; }
  .class-card-title { font-size: 16px; }
  .class-card-level { font-size: 16px; }
  .class-info { font-size: 16px; gap: 8px; margin-bottom: 15px; }
  .class-info .icon { width: 12px; height: 12px; }
  .class-footer { padding: 10px 0; }
  .student-stack .avatar { width: 23px; height: 23px; font-size: 16px; }
  .class-footer .text-link { font-size: 16px; min-height: 34px; }
  .class-footer .text-link .icon { width: 12px; height: 12px; }
  .toolbar { gap: 12px; margin-bottom: 16px; align-items: stretch; }
  .toolbar > .filter-group { flex: 1; }
  .filter-group { gap: 8px; }
  .select-field { min-height: 44px; font-size: 16px; padding-left: 11px; }
  .search-field { min-height: 44px; min-width: 0; width: 100%; }
  .search-field input { font-size: 16px; }
  .search-field .icon { width: 17px; height: 17px; }
  .toolbar > .search-field { flex-basis: 100%; }
  .segmented { min-height: 44px; }
  .segment { min-height: 35px; padding: 6px 10px; font-size: 16px; }
  .data-table th { font-size: 16px; padding: 13px 13px; }
  .data-table td { padding: 13px; font-size: 16px; }
  .data-table td:first-child, .data-table th:first-child { padding-left: 16px; }
  .student-cell { gap: 8px; }
  .student-cell .avatar { width: 31px; height: 31px; font-size: 16px; }
  .student-name { font-size: 16px; }
  .student-code { font-size: 16px; }
  .attendance-controls { gap: 5px; }
  .attendance-choice { min-height: 42px; min-width: 63px; padding: 7px 8px; font-size: 16px; }
  .attendance-choice .icon { width: 12px; height: 12px; }
  .attendance-summary { gap: 14px; padding: 14px 16px; font-size: 16px; }
  .save-bar { padding: 14px 15px; border-radius: 10px; font-size: 16px; }
  .save-bar .button { padding-left: 10px; padding-right: 10px; }
  .notice { font-size: 16px; padding: 12px 14px; margin-bottom: 18px; }
  .credit-banner { padding: 15px; gap: 15px; font-size: 16px; }
  .credit-amount { font-size: 20px; }
  .tuition-cell { min-width: 92px; min-height: 50px; padding: 7px; }
  .tuition-cell .cell-label { font-size: 16px; }
  .mobile-only { display: block; }
  .desktop-only { display: none !important; }
  .table-caption { font-size: 16px; padding: 12px 16px; }
  .back-link { min-height: 35px; font-size: 16px; margin-top: -6px; margin-bottom: 7px; }
  .detail-tabs { gap: 23px; }
  .detail-tab { font-size: 16px; min-height: 44px; }
  .modal-backdrop { padding: 16px; }
  .modal { max-height: calc(100dvh - 32px); border-radius: 17px; }
  .modal-header { padding: 21px 20px 16px; }
  .modal-title { font-size: 18px; }
  .modal-body { padding: 20px; }
  .modal-footer { padding: 15px 20px; }
  .close-modal { width: 38px; height: 38px; }
  .field-input { min-height: 45px; font-size: 16px; }
  .field-label { font-size: 16px; }
  .field-help { font-size: 16px; }
  .modal .detail-row { font-size: 16px; }
  .form-grid { gap: 15px; }
  .toast { bottom: 86px; left: 50%; font-size: 16px; white-space: normal; min-width: 240px; width: max-content; }
  .icon-button { min-width: 40px; min-height: 40px; }
  .mobile-nav { display: flex; align-items: stretch; justify-content: space-around; position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; min-height: 65px; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); background: #fffffff5; border-top: 1px solid #e7ddf1; backdrop-filter: blur(12px); }
  .mobile-nav .nav-item { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; text-align: center; border-radius: 8px; padding: 5px 7px; font-size: 16px; min-height: 47px; width: auto; flex: 1; color: #6e508d; background: transparent; }
  .mobile-nav .nav-item .icon { width: 20px; height: 20px; }
  .mobile-nav .nav-item.active { color: #573d71; background: #f0eaf6; }
  .mobile-nav .nav-count { display: none; }
  .footer-note { margin-top: 22px; font-size: 16px; }
}
@media (max-width:440px) {
  .topbar { padding: 0 17px; }
  .content { padding: 24px 17px; }
  .topbar-actions { gap: 7px; }
  .topbar-actions .icon-button { display: none; }
  .page-title { font-size: 25px; }
  .page-heading .heading-actions { width: 100%; }
  .page-heading .heading-actions .button { flex: 1; }
  .class-grid { grid-template-columns: 1fr; gap: 13px; }
  .class-card { padding: 18px 19px 0; }
  .class-card-top { margin-bottom: 17px; }
  .class-card-top > div { gap: 12px; }
  .class-card-top .class-emblem { width: 41px; height: 43px; border-radius: 11px; font-size: 17px; }
  .class-card-title { font-size: 17px; }
  .class-card-level { font-size: 16px; }
  .class-info { font-size: 16px; }
  .class-footer { padding: 12px 0; }
  .class-footer .text-link { font-size: 16px; }
  .student-stack .avatar { width: 28px; height: 28px; font-size: 16px; }
  .today-class { grid-template-columns: 37px 35px minmax(0,1fr); gap: 10px; }
  .today-class .button { grid-column: 3; justify-self: start; margin-top: 0; min-height: 36px; }
  .today-class .class-emblem { width: 35px; height: 37px; }
  .today-class .time-block { grid-row: 1 / 3; align-self: start; margin-top: 5px; }
  .today-class .class-emblem { grid-row: 1 / 3; align-self: start; }
  .stat-card { padding: 15px 13px; }
  .stat-icon { width: 28px; height: 28px; border-radius: 8px; }
  .stat-icon .icon { width: 14px; height: 14px; }
  .stat-value { font-size: 24px; }
  .stat-meta { line-height: 1.8; min-height: 27px; }
  .stat-label { font-size: 16px; }
  .credit-banner { flex-wrap: wrap; gap: 9px; }
  .credit-amount { margin-left: auto; }
  .attendance-summary { gap: 10px; }
  .save-bar { flex-wrap: wrap; }
  .save-bar .button { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 10px; }
  .modal { max-height: calc(100dvh - 20px); }
  .modal-header { padding-left: 17px; padding-right: 17px; }
  .modal-body { padding: 17px; }
  .modal-footer { padding-left: 17px; padding-right: 17px; }
  .modal .data-table th, .modal .data-table td { padding: 10px 8px; }
  .breadcrumb > span:first-child:not(:last-child) { display: none; }
}
@media (max-width:350px) {
  .content { padding-left: 13px; padding-right: 13px; }
  .topbar { padding-left: 13px; padding-right: 13px; }
  .topbar .year-select { display: none; }
  .page-title { font-size: 23px; }
  .stats-grid { gap: 9px; }
  .stat-card { padding: 14px 11px; }
  .stat-value { font-size: 22px; }
  .stat-icon { width: 26px; height: 26px; }
  .stat-label { letter-spacing: -.2px; }
  .summary-chip { padding-left: 8px; padding-right: 8px; font-size: 16px; }
  .panel-header { padding-left: 14px; padding-right: 14px; }
  .panel-body { padding-left: 14px; padding-right: 14px; }
  .data-table td { padding-left: 10px; padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .class-card:hover { transform: none; }
}

/* Application markup and comfortable reading sizes. */
body { font-size: 17px; }
.brand-name, .brand-tagline { display: block; }
.brand-tagline { font-size: 16px; letter-spacing: 0; color: #6e508d; }
.brand-dot { color: #b68c52; }
.profile div strong, .profile div span { display: block; }
.profile div strong { font-size: 16px; font-weight: 550; }
.profile div span { font-size: 16px; color: #6e508d; margin-top: 2px; }
.nav-label { font-size: 16px; letter-spacing: 1px; }
.nav-item { font-size: 16px; }
.brand { margin-left: 9px; margin-right: 9px; }
.brand-name { font-size: 24px; }
.page-description { font-size: 16px; color: #6e508d; }
.eyebrow { font-size: 16px; letter-spacing: 1.3px; }
.button, .button.small { font-size: 16px; min-height: 40px; }
.text-link { font-size: 16px; }
.stat-card { display: block; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 13px; }
.stat-top .stat-icon { margin: 0; width: 33px; height: 33px; }
.stat-label { font-size: 16px; color: #6e508d; }
.stat-value { font-size: 29px; margin-top: 0; }
.stat-meta { font-size: 16px; color: #6e508d; line-height: 1.7; min-height: 20px; }
.panel-title { font-size: 18px; }
.panel-subtitle { font-size: 16px; color: #6e508d; line-height: 1.8; }
.panel-header .stat-icon { margin: 0; }
.today-list { padding: 0 23px; }
.today-class-content h3 { font-size: 16px; font-weight: 550; margin: 0 0 3px; }
.today-class-content .status { margin-top: 7px; }
.time-block { font-size: 16px; }
.time-block strong { font-weight: 500; }
.time-block span { font-size: 16px; }
.class-meta { font-size: 16px; color: #6e508d; }
.status { font-size: 16px; }
.status.success { color: #563e6f; }
.status.warning { color: #986025; }
.status.danger { color: #a55642; }
.insight-note { border-radius: 0; margin-top: 0; padding: 13px 23px; font-size: 16px; color: #6e508d; }
.money-line { font-size: 16px; color: #6e508d; }
.tuition-summary-bottom { border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-top: 23px; padding-top: 18px; }
.tuition-summary-bottom > div > span, .tuition-summary-bottom > div > strong { display: block; }
.tuition-summary-bottom strong { font-size: 20px; font-weight: 550; letter-spacing: -.5px; margin-top: 3px; }
.section-heading h2 { font-size: 16px; }
.section-heading p { font-size: 16px; color: #6e508d; }
.class-card-title { font-size: 17px; margin-bottom: 13px; }
.class-info { font-size: 16px; gap: 9px; margin-bottom: 17px; color: #6e508d; }
.class-students { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; font-size: 16px; color: #6e508d; }
.class-students strong { color: #4a355f; font-weight: 550; }
.class-card-top .class-emblem { width: 44px; height: 44px; font-size: 18px; }
.class-footer .subtle { font-size: 16px; color: #5a4174; }
.class-footer small { display: block; font-size: 16px; color: #6e508d; }
.class-footer .text-link { font-size: 16px; }
.student-stack .avatar { width: 28px; height: 28px; font-size: 16px; }
.select-field { display: flex; flex-direction: column; align-items: stretch; gap: 5px; border: 0; background: transparent; padding: 0; min-height: 0; font-size: 16px; color: #6e508d; }
.select-field > span { font-size: 16px; font-weight: 450; }
.select-field > select, .select-field > input { min-height: 44px; border: 1px solid #dccfea; border-radius: 8px; padding: 10px 30px 10px 12px; font: inherit; font-size: 16px; background: white; color: #503a67; }
.select-field > input { padding-right: 12px; }
.select-field:focus-within > input, .select-field:focus-within > select { border-color: #9c80b8; }
.filter-group { align-items: flex-end; }
.toolbar { align-items: flex-end; }
.toolbar > .subtle { padding-bottom: 13px; display: inline-flex; align-items: center; gap: 6px; }
.search-field input { font-size: 16px; }
.segment { font-size: 16px; min-height: 32px; }
.data-table { font-size: 16px; }
.data-table th { font-size: 16px; letter-spacing: .5px; color: #6e508d; }
.data-table td { font-size: 16px; }
.student-name { border: 0; background: transparent; padding: 0; font-size: 16px; font-weight: 500; color: #49355d; text-align: left; }
.student-name:hover { color: #39244e; text-decoration: underline; }
.student-code { display: block; font-size: 16px; color: #6e508d; }
.student-cell .avatar { font-size: 16px; }
.attendance-choice { font-size: 16px; min-height: 35px; min-width: 77px; }
.attendance-choice.present.selected { color: #573d71; }
.attendance-choice.absent.selected { color: #986025; }
.attendance-summary { font-size: 16px; }
.save-bar { font-size: 16px; }
.subtle { font-size: 16px; color: #6e508d; }
.tuition-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
.tuition-stats .stat-value { font-size: clamp(20px,2.1vw,28px); }
.tuition-table th small { font-size: 16px; letter-spacing: 0; text-transform: none; color: #6e508d; display: block; margin-top: 3px; font-weight: 400; }
.tuition-table th.active-month { color: #48345c; background: #f2ecf7; }
.tuition-table td.active-month { background: #faf7fc; }
.tuition-cell { min-width: 108px; }
.tuition-cell.paid { color: #5f427c; }
.tuition-cell.partial { color: #986025; }
.tuition-cell.unpaid { color: #a2734d; }
.cell-amount { font-size: 16px; }
.cell-label { font-size: 16px; }
.table-caption { font-size: 16px; justify-content: flex-start; gap: 8px; color: #6e508d; }
.dot.green { color: #765598; background: #765598; }
.dot.orange { color: #b38a54; background: #b38a54; margin-left: 13px; }
.dot.gray { color: #b3a18e; background: #b3a18e; margin-left: 13px; }
.mobile-fees { display: none; }
.credit-banner { font-size: 16px; color: #76663e; }
.credit-banner strong { color: #76602e; }
.credit-icon { width: 38px; height: 38px; border-radius: 10px; background: #ebe4cc; display: grid; place-items: center; flex-shrink: 0; }
.credit-banner .text-link { margin-left: auto; color: #7c6b39; }
.credit-banner.compact { margin-top: 21px; }
.credit-banner.compact .icon { width: 23px; height: 23px; }
.modal.modal-wide { width: min(100%,760px); }
.modal .panel-subtitle { font-size: 16px; }
.payment-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 22px 0; padding: 16px; }
.payment-summary > div > span, .payment-summary > div > strong { display: block; }
.payment-summary > div > span { font-size: 16px; color: #6e508d; }
.payment-summary > div > strong { font-size: 17px; font-weight: 500; margin-top: 5px; font-variant-numeric: tabular-nums; }
.form-grid { row-gap: 16px; margin-bottom: 20px; }
.form-grid .field { margin: 0; }
.field-label { font-size: 16px; color: #62477d; }
.field-help, .form-error { font-size: 16px; }
.student-profile-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 19px 0; margin: 20px 0 24px; border-block: 1px solid var(--line); }
.student-profile-stats > div { text-align: center; }
.student-profile-stats > div + div { border-left: 1px solid var(--line); }
.student-profile-stats strong { display: block; font-size: 25px; font-weight: 550; line-height: 1.4; color: #48345c; }
.student-profile-stats span { display: block; font-size: 16px; color: #6e508d; margin-top: 5px; }
.profile-summary { display: flex; align-items: center; gap: 12px; }
.profile-summary .avatar { width: 45px; height: 45px; font-size: 16px; }
.profile-summary > div { flex: 1; }
.profile-summary strong { display: block; font-size: 16px; font-weight: 500; color: #513a68; }
.profile-summary > div > span { display: block; font-size: 16px; color: #6e508d; margin-top: 3px; }
.credit-total { background: #eee7f5; border-radius: 12px; padding: 20px; margin-bottom: 22px; }
.credit-total > span, .credit-total > strong, .credit-total > small { display: block; }
.credit-total > span { font-size: 16px; color: #6e508d; }
.credit-total > strong { font-size: 29px; font-weight: 550; line-height: 1.5; letter-spacing: -.8px; color: #3f2c53; margin-top: 6px; }
.credit-total > small { font-size: 16px; color: #6e508d; margin-top: 5px; }
.modal-section-title { font-size: 16px; font-weight: 550; color: #49355d; margin: 22px 0 12px; }
.absence-dates { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 21px; }
.modal .data-table th, .modal .data-table td { font-size: 16px; }
.detail-row { font-size: 16px; }
.notice { font-size: 16px; color: #6e508d; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; padding: 0 40px 25px; font-size: 16px; color: #6e508d; max-width: 1500px; margin: auto; }
.demo-note { font-size: 16px; color: #6e508d; }
.demo-note strong { color: #594072; }
.demo-dot { width: 6px; height: 6px; border-radius: 50%; background: #8765a9; display: block; margin-bottom: 8px; }
.preview-badge { font-size: 16px; letter-spacing: 0; }
.year-select { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; padding-right: 0; }
.year-select .icon { width: 15px; height: 15px; }
.toast { font-size: 16px; }
.skip-link { position: fixed; left: 15px; top: -80px; z-index: 999; border-radius: 8px; background: #39244e; color: #fff; padding: 12px 16px; font-size: 16px; }
.skip-link:focus { top: 15px; }
body.modal-open { overflow: hidden; }
@media (max-width:1180px) {
  .page-footer { padding-left: 27px; padding-right: 27px; }
  .today-class { grid-template-columns: 42px 38px minmax(0,1fr) auto; gap: 10px; }
  .today-list { padding-left: 19px; padding-right: 19px; }
  .today-class .button { padding-left: 10px; padding-right: 10px; font-size: 16px; }
}
@media (max-width:1020px) {
  .stat-card { display: block; }
  .stat-top { margin-bottom: 12px; }
  .stat-top .stat-icon { margin: 0; }
  .stat-value { margin-top: 0; font-size: 28px; }
  .stat-label { font-size: 16px; }
  .stat-meta { font-size: 16px; }
  .tuition-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tuition-stats .stat-label { font-size: 16px; }
  .tuition-stats .stat-icon { width: 27px; height: 27px; }
  .tuition-stats .stat-icon .icon { width: 14px; height: 14px; }
  .tuition-stats .stat-value { font-size: 21px; }
  .page-footer { padding-left: 23px; padding-right: 23px; }
}
@media (max-width:767px) {
  .nav-item { font-size: 16px; }
  .page-description { font-size: 16px; }
  .page-title { font-size: 28px; }
  .eyebrow { font-size: 16px; letter-spacing: 1px; }
  .button { font-size: 16px; min-height: 44px; }
  .button.small { font-size: 16px; min-height: 42px; }
  .text-link, .class-footer .text-link { font-size: 16px; }
  .stat-card { padding: 17px 15px; }
  .stat-label { font-size: 16px; }
  .stat-value { font-size: 27px; }
  .stat-meta { font-size: 16px; min-height: 32px; line-height: 1.6; }
  .stat-top .stat-icon { width: 29px; height: 29px; }
  .stat-top .stat-icon .icon { width: 16px; height: 16px; }
  .today-list { padding: 0 17px; }
  .today-class { grid-template-columns: 41px 38px minmax(0,1fr) auto; gap: 10px; }
  .today-class-content h3 { font-size: 16px; }
  .class-meta { font-size: 16px; }
  .time-block { font-size: 16px; }
  .time-block span { font-size: 16px; }
  .insight-note { padding-left: 17px; padding-right: 17px; font-size: 16px; }
  .panel-title { font-size: 17px; }
  .panel-subtitle { font-size: 16px; }
  .class-card-title { font-size: 17px; }
  .class-info { font-size: 16px; }
  .class-footer .subtle { font-size: 16px; }
  .student-stack .avatar { font-size: 16px; width: 28px; height: 28px; }
  .filter-group { gap: 11px; }
  .select-field { font-size: 16px; }
  .select-field > input, .select-field > select { font-size: 16px; min-height: 45px; padding-right: 25px; }
  .search-field input { font-size: 16px; }
  .segment { font-size: 16px; }
  .toolbar > .filter-group { flex-wrap: wrap; }
  .toolbar > .filter-group > .select-field { flex: 1; }
  .data-table th, .data-table td { font-size: 16px; }
  .student-name { font-size: 16px; }
  .student-code { font-size: 16px; }
  .student-cell .avatar { font-size: 16px; }
  .attendance-choice { font-size: 16px; min-height: 44px; min-width: 77px; padding: 8px; }
  .attendance-summary { font-size: 16px; }
  .save-bar { font-size: 16px; }
  .tuition-stats { grid-template-columns: 1fr; gap: 10px; }
  .tuition-stats .stat-card { padding: 15px 17px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
  .tuition-stats .stat-top { grid-column: 1; margin: 0; }
  .tuition-stats .stat-top .stat-icon { display: none; }
  .tuition-stats .stat-value { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 23px; }
  .tuition-stats .stat-meta { grid-column: 1; min-height: 0; margin: 3px 0 0; }
  .tuition-stats .stat-label { font-size: 16px; }
  .mobile-fees { display: block; }
  .desktop-fees { display: none; }
  .mobile-fee-card { border-top: 1px solid var(--line); padding: 18px 17px 15px; }
  .mobile-fee-card .student-cell { margin-bottom: 13px; }
  .mobile-fee-card .student-cell .avatar { width: 35px; height: 35px; font-size: 16px; }
  .mobile-fee-card .student-name { font-size: 16px; }
  .mobile-fee-months { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .mobile-fee-months > div > .subtle { display: block; margin: 0 0 5px; text-align: center; font-size: 16px; }
  .mobile-fee-months .tuition-cell { min-width: 0; padding: 8px 5px; min-height: 53px; }
  .cell-amount { font-size: 16px; }
  .tuition-cell .cell-label { font-size: 16px; }
  .mobile-fee-credit { display: flex; justify-content: space-between; gap: 9px; flex-wrap: wrap; margin-top: 13px; color: #6e508d; font-size: 16px; }
  .mobile-fee-credit > span:last-child { color: #7f6a3d; }
  .table-caption { font-size: 16px; }
  .credit-banner { font-size: 16px; flex-wrap: wrap; }
  .credit-banner > div { flex: 1; min-width: 190px; }
  .credit-banner > .text-link { margin-left: 48px; }
  .credit-banner.compact > div { min-width: 0; }
  .payment-summary { gap: 8px; padding: 13px; }
  .payment-summary > div > strong { font-size: 16px; }
  .payment-summary > div > span { font-size: 16px; }
  .field-input { font-size: 16px; }
  .field-label { font-size: 16px; }
  .field-help { font-size: 16px; }
  .modal .detail-row { font-size: 16px; }
  .profile-summary { gap: 10px; flex-wrap: wrap; }
  .profile-summary > div { min-width: 150px; }
  .student-profile-stats { gap: 8px; }
  .student-profile-stats strong { font-size: 24px; }
  .student-profile-stats span { font-size: 16px; }
  .modal .data-table th, .modal .data-table td { font-size: 16px; }
  .page-footer { display: flex; padding: 0 21px 24px; gap: 7px; flex-direction: column; font-size: 16px; }
  .mobile-nav .nav-item { font-size: 16px; gap: 4px; padding: 7px; }
  .toast { font-size: 16px; }
}
@media (max-width:440px) {
  .page-title { font-size: 26px; }
  .stat-card { padding: 15px 12px; }
  .stat-label { font-size: 16px; }
  .stat-top { align-items: flex-start; gap: 5px; }
  .stat-top .stat-icon { width: 25px; height: 25px; border-radius: 7px; flex-shrink: 0; }
  .stat-top .stat-icon .icon { width: 14px; height: 14px; }
  .stat-value { font-size: 25px; }
  .stat-meta { font-size: 16px; min-height: 32px; }
  .today-class { grid-template-columns: 37px 35px minmax(0,1fr); gap: 10px; }
  .today-class .button { grid-column: 3; min-height: 40px; font-size: 16px; }
  .today-class-content .status { margin-top: 5px; }
  .class-card-title { font-size: 18px; }
  .class-info { font-size: 16px; }
  .student-stack .avatar { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .toolbar.attendance-toolbar > .filter-group > .select-field { min-width: 120px; }
  .panel-header { flex-wrap: wrap; gap: 10px; }
  .panel-header > .segmented { width: 100%; }
  .panel-header > .segmented .segment { flex: 1; }
  .page-footer { padding-left: 17px; padding-right: 17px; }
}
.top-avatar { border: 0; padding: 0; }
@media (max-width:767px) {
  .attendance-table { white-space: normal; }
  .attendance-table thead { display: none; }
  .attendance-table tbody { display: block; }
  .attendance-table tbody tr { display: flex; flex-direction: column; gap: 12px; padding: 17px; border-bottom: 1px solid var(--line); }
  .attendance-table tbody td, .attendance-table tbody td:first-child { display: block; padding: 0; border: 0; }
  .attendance-table .attendance-controls { display: flex; width: 100%; }
  .attendance-table .attendance-choice { flex: 1; min-height: 44px; font-size: 16px; }
  .attendance-table .clear-mark { flex-shrink: 0; width: 44px; height: 44px; }
  .attendance-table .student-cell .avatar { width: 36px; height: 36px; }
  .attendance-table .student-name { font-size: 16px; }
  .content:has(.attendance-table) { padding-bottom: 130px; }
  .content:has(.attendance-table) .save-bar { position: fixed; bottom: 78px; left: 17px; right: 17px; z-index: 45; margin: 0; background: #f2edf7; box-shadow: 0 -3px 20px #39244e12; gap: 7px; padding: 10px 13px; }
  .save-bar > span { font-size: 16px; line-height: 1.5; }
  .content:has(.attendance-table) .save-bar .button { min-height: 43px; }
}

/* Daisy Class wordmark fits all sidebar widths. */
.brand { margin-left: 8px; margin-right: 8px; gap: 10px; }
.brand-name { font-size: 20px; letter-spacing: -0.8px; white-space: nowrap; }

/* Live account workspace. */
.startup-error { max-width: 620px; margin: 12vh auto; padding: 30px; }
.startup-error h1 { font-size: 24px; margin-bottom: 12px; }
.startup-error p { margin-bottom: 20px; }
.sync-status { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 0; padding: 8px 0; min-height: 40px; font-size: 16px; color: #5e4478; }
.sync-status .icon { width: 15px; height: 15px; }
.profile > div { min-width: 0; }
.profile > div > span { overflow-wrap: anywhere; }
.onboarding-panel { padding: 45px 35px; margin: 10px auto 30px; max-width: 850px; text-align: center; }
.onboarding-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; background: #ebe2f3; color: #5e4478; margin-bottom: 20px; }
.onboarding-icon .icon { width: 30px; height: 30px; }
.onboarding-panel h2 { font-size: 25px; font-weight: 550; letter-spacing: -.6px; margin-bottom: 13px; }
.onboarding-panel > p { color: #6e508d; max-width: 560px; margin: 0 auto; line-height: 1.9; }
.onboarding-actions { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin: 25px 0 14px; }
.quiet-empty { padding: 22px 0 28px; color: #6e508d; font-size: 16px; line-height: 1.8; }
.period-create { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 23px; background: #f3eef8; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.period-create > div { display: flex; flex-direction: column; gap: 4px; }
.period-create strong { font-size: 16px; font-weight: 550; }
.period-create span { color: #6e508d; font-size: 16px; line-height: 1.8; }
.period-create .button { flex-shrink: 0; }
.no-invoice { display: inline-block; padding: 11px 8px; font-size: 16px; color: #6e508d; }
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.save-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.attendance-error { padding: 0 20px 15px; }
.form-error:empty { display: none; }
.toast.toast-error { border-color: #e9b5a4; color: #944d38; }
.modal-body > p + p { margin-top: 13px; }
@media (max-width:767px) {
  .sync-status { max-width: 112px; gap: 4px; font-size: 16px; }
  .sync-status .icon { width: 13px; height: 13px; }
  .onboarding-panel { padding: 30px 20px; }
  .onboarding-panel h2 { font-size: 22px; }
  .onboarding-panel p { font-size: 16px; }
  .onboarding-actions { align-items: stretch; flex-direction: column; }
  .period-create { padding: 15px 17px; flex-direction: column; align-items: stretch; gap: 12px; }
  .period-create .button { width: 100%; }
  .mobile-fee-months { grid-template-columns: repeat(var(--period-count,3),minmax(0,1fr)); }
  .save-actions { width: 100%; }
  .content:has(.attendance-table) .save-bar .save-actions .button { width: auto; flex: 1; font-size: 16px; padding: 9px; }
  .content:has(.attendance-table) .save-bar { gap: 6px; }
  .attendance-error { padding: 0 17px 15px; }
}
@media (max-width:350px) {
  .sync-status .icon { display: none; }
  .sync-status { max-width: 102px; }
}
.live-demo-strip { display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #fbf2e5; color: #7c633d; border: 1px solid #eee2cb; border-radius: 9px; padding: 10px 14px; font-size: 16px; margin-bottom: 23px; }
.live-demo-strip .text-link { flex-shrink: 0; color: #7c633d; }
@media (max-width:767px) { .live-demo-strip { align-items: flex-start; flex-direction: column; gap: 3px; } }

/* Lavender workspace: readable tables and fewer competing elements. */
:root {
  --paper: #f7f4fc; --surface: #fff; --ink: #30253f; --muted: #71627f;
  --green: #7852a6; --green-hover: #65428f; --sage: #efe7f8;
  --sage-ink: #68478e; --line: #e7dff0; --radius: 16px;
}
body { font-size: 18px; line-height: 1.6; }
:focus-visible { outline-color: #8b60b8; }
.sidebar { width: 260px; padding: 30px 16px 22px; }
.workspace { margin-left: 260px; }
.brand { margin: 0 8px 40px; gap: 12px; }
.brand-mark { width: 48px; height: 48px; border-radius: 15px; background: #9670ba; }
.brand-mark > svg { width: 38px; height: 38px; }
.brand-name { font-size: 27px; letter-spacing: -1px; }
.brand-tagline { font-size: 13px; }
.brand-dot { color: #9d78bc; }
.nav-item { font-size: 17px; min-height: 54px; padding: 13px 16px; }
.nav-label { font-size: 12px; letter-spacing: .8px; }
.nav-count { font-size: 14px; background: #e7daf3; }
.nav-item.active { background: #eee5f8; }
.sidebar-bottom { padding-top: 28px; }
.profile div strong { font-size: 15px; }
.profile div span { font-size: 14px; }
.topbar { height: 84px; padding-inline: 36px; background: #ffffffd9; }
.breadcrumb, .year-select, .sync-status { font-size: 15px; }
.sync-status { min-height: 44px; color: #68478e; }
.topbar-actions { gap: 16px; flex-wrap: wrap; }
.access-mode { font-size: 14px; color: #71627f; }
.content { max-width: 1580px; padding: 34px 36px 40px; }
.page-title { font-size: clamp(29px,2.8vw,38px); letter-spacing: -1px; font-weight: 600; }
.page-description { font-size: 16px; }
.eyebrow { font-size: 13px; letter-spacing: .5px; }
.button, .button.small { font-size: 16px; min-height: 46px; border-radius: 10px; padding: 10px 16px; }
.icon-button, .close-modal { min-width: 44px; min-height: 44px; }
.button .icon { width: 19px; height: 19px; }
.button.primary { background: var(--green); border-color: var(--green); }
.button.primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
.text-link { font-size: 16px; min-height: 44px; }
.stats-grid { gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 22px; }
.stat-label { font-size: 16px; color: var(--muted); }
.stat-value { font-size: 34px; letter-spacing: -1px; font-weight: 600; }
.stat-meta { font-size: 14px; min-height: 0; }
.stat-top { margin-bottom: 12px; }
.stat-top .stat-icon { width: 38px; height: 38px; border-radius: 12px; }
.stat-icon.sage, .class-emblem.sage, .avatar.sage { background: #eee5f8; color: #714b9c; }
.stat-icon.lavender, .class-emblem.lavender, .avatar.lavender { background: #f1ebfa; color: #75579c; }
.stat-icon.peach, .class-emblem.peach, .avatar.peach { background: #f4eaf8; color: #89559a; }
.stat-icon.sand, .class-emblem.sand, .avatar.sand { background: #eeeafa; color: #70609a; }
.panel-title { font-size: 21px; font-weight: 600; }
.panel-subtitle { font-size: 15px; }
.panel-header { padding: 23px 24px 20px; }
.today-list { padding-inline: 24px; }
.today-class { grid-template-columns: 72px 50px minmax(0,1fr) auto; gap: 18px; padding: 22px 0; }
.today-class-content h3 { font-size: 20px; }
.class-emblem { width: 50px; height: 50px; font-size: 18px; }
.time-block, .time-block span, .class-meta { font-size: 15px; }
.status { font-size: 14px; padding: 5px 9px; }
.status.success { background: #eee7f7; color: #67408f; }
.progress-fill { background: #a180bf; }
.class-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.class-card { padding: 24px 22px 0; }
.class-card:hover { transform: none; border-color: #b69bce; }
.class-card-title { font-size: 23px; font-weight: 600; }
.class-info, .class-students, .class-footer .subtle { font-size: 16px; }
.class-footer small { font-size: 14px; }
.student-stack .avatar { font-size: 12px; }
.class-card-level, .brand-tagline, .profile-role { font-size: 14px; }
.select-field > span { font-size: 14px; color: var(--muted); }
.select-field > input, .select-field > select { font-size: 17px; min-height: 48px; border-color: #cbbddc; color: var(--ink); }
.search-field { min-height: 48px; border-color: #cbbddc; border-radius: 10px; }
.search-field input { font-size: 17px; }
.data-table, .data-table td, .modal .data-table td { font-size: 16px; }
.data-table th, .modal .data-table th { font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 500; background: #faf7fd; }
.data-table td, .data-table th { padding: 18px 20px; }
.student-name, .mobile-fee-card .student-name { font-size: 17px; font-weight: 500; }
.student-code { font-size: 13px; }
.student-cell .avatar { width: 40px; height: 40px; font-size: 13px; }
.attendance-choice { font-size: 16px; min-height: 46px; min-width: 100px; border-color: #cbbddc; }
.attendance-choice.present.selected { background: #eee5f8; color: #694493; border-color: #ac8bc9; }
.attendance-choice.absent.selected { background: #fff1e5; color: #90541c; }
.attendance-summary { font-size: 16px; }
.save-bar, .save-bar > span { font-size: 15px; }
.save-bar { padding: 18px 20px; }
.tuition-cell { min-width: 126px; min-height: 66px; font-size: 16px; }
.tuition-cell.paid { background: #eee5f8; color: #694493; }
.cell-amount { font-size: 16px; }
.cell-label { font-size: 14px; }
.tuition-table th.active-month { color: #694493; background: #f2eafa; }
.tuition-table td.active-month { background: #fcfaff; }
.field-label { font-size: 16px; color: var(--ink); }
.field-input { font-size: 17px; min-height: 50px; color: var(--ink); border-color: #cbbddc; }
.field-help, .form-error { font-size: 14px; }
.modal-title { font-size: 24px; }
.modal { width: min(100%,580px); }
.modal-header .page-description, .modal .panel-subtitle { font-size: 15px; }
.modal .detail-row { font-size: 16px; }
.payment-summary > div > span { font-size: 14px; }
.payment-summary > div > strong { font-size: 18px; }
.credit-banner { font-size: 15px; }
.credit-banner strong { font-size: 16px; }
.legend, .table-caption { font-size: 14px; }
.subtle { font-size: 15px; }
.live-demo-strip { background: #f0e8f8; border-color: #e1d3ef; color: #6e4b8d; font-size: 14px; margin-bottom: 24px; }
.live-demo-strip .text-link { color: #6e4b8d; }
.viewer-note { color: var(--muted); font-size: 14px; }
.page-footer { font-size: 13px; padding-inline: 36px; }
.toast { left: calc(50% + 130px); font-size: 16px; }
.demo-note { display: none; }
@media (max-width:1200px) {
  .sidebar { width: 236px; } .workspace { margin-left: 236px; }
  .brand-name { font-size: 25px; } .brand-mark { width: 44px; height: 44px; }
  .content { padding-inline: 28px; } .topbar { padding-inline: 28px; }
  .class-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .toast { left: calc(50% + 118px); }
}
@media (max-width:767px) {
  .sidebar { display: none; } .workspace { margin-left: 0; padding-bottom: 90px; }
  .topbar { height: auto; min-height: 76px; padding: 14px 18px; flex-wrap: wrap; gap: 8px; }
  .topbar-actions { margin-left: auto; gap: 10px; } .access-mode { display: none; }
  .breadcrumb { font-size: 15px; } .sync-status { font-size: 13px; max-width: none; }
  .content { padding: 26px 18px 35px; } .page-heading { gap: 16px; margin-bottom: 24px; }
  .page-title { font-size: 29px; } .page-description { font-size: 16px; }
  .button, .button.small { min-height: 46px; font-size: 16px; }
  .stats-grid { gap: 12px; } .stat-card { padding: 17px 15px; }
  .stat-top .stat-icon { display: none; } .stat-label { font-size: 14px; }
  .stat-value { font-size: 29px; } .stat-meta { font-size: 13px; min-height: 0; }
  .today-class { grid-template-columns: 58px 42px minmax(0,1fr); gap: 12px; }
  .today-class .button { grid-column: 3; justify-self: start; min-height: 44px; font-size: 15px; }
  .today-class .time-block { grid-row: 1 / 3; align-self: start; }
  .today-class .class-emblem { grid-row: 1 / 3; width: 42px; height: 42px; }
  .today-class-content h3 { font-size: 19px; } .class-meta { font-size: 14px; }
  .time-block, .time-block span { font-size: 14px; }
  .panel-header { padding: 20px 18px 17px; } .panel-title { font-size: 20px; }
  .today-list { padding-inline: 18px; }
  .class-grid { grid-template-columns: 1fr; } .class-card-title { font-size: 23px; }
  .class-info { font-size: 16px; } .class-footer .text-link { font-size: 16px; }
  .select-field > input, .select-field > select { font-size: 16px; }
  .attendance-table .student-name { font-size: 18px; }
  .attendance-table .attendance-choice { font-size: 16px; min-height: 48px; }
  .attendance-table .student-code { font-size: 14px; }
  .attendance-summary { font-size: 15px; } .save-bar > span { font-size: 14px; }
  .tuition-stats { grid-template-columns: 1fr; }
  .tuition-stats .stat-value { font-size: 26px; } .tuition-stats .stat-label { font-size: 15px; }
  .mobile-fee-months > div > .subtle { font-size: 14px; }
  .mobile-fees .cell-label { font-size: 13px; } .mobile-fees .cell-amount { font-size: 15px; }
  .mobile-fee-credit { font-size: 14px; }
  .content:has(.attendance-table) .save-bar { bottom: 86px; left: 12px; right: 12px; }
  .content:has(.attendance-table) .save-bar .save-actions .button { font-size: 15px; min-height: 46px; }
  .mobile-nav { min-height: 74px; }
  .mobile-nav .nav-item { font-size: 13px; min-height: 54px; }
  .mobile-nav .nav-item .icon { width: 22px; height: 22px; }
  .toast { left: 50%; bottom: 94px; font-size: 15px; }
  .page-footer { padding-inline: 18px; font-size: 13px; }
  .live-demo-strip { font-size: 14px; }
}

.heading-actions { flex-wrap: wrap; max-width: 100%; }
@media (max-width:440px) { .page-heading .heading-actions .button { flex: 1 1 100%; } }

/* Purple foundation, a small amount of warm yellow for priority actions. */
:root {
  --accent: #f2d46b;
  --accent-hover: #e8c653;
  --accent-ink: #423414;
  --accent-soft: #fff8df;
  --accent-line: #ead58b;
  --paper: #f8f6fc;
}
.button.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.button.accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.accent:focus-visible { outline-color: #765394; }
.button.danger { background: #fff; border-color: #e3c7c7; color: #a04343; }
.button.danger:hover { background: #fff4f2; border-color: #ceaaaa; }
.nav-item { position: relative; }
.side-nav .nav-item.active::before { content: ''; position: absolute; width: 3px; height: 22px; left: 0; border-radius: 3px; background: #d7ae37; }
.brand-mark { background: #9670ba; }
.stat-card:last-child .stat-icon.peach { color: #886817; background: var(--accent-soft); }
.status.warning, .tuition-cell.partial { color: #775916; background: var(--accent-soft); }
.attendance-choice.absent.selected { color: #775916; background: var(--accent-soft); border-color: var(--accent-line); }
.dot.orange { color: #b89029; background: #b89029; }
.live-demo-strip { padding-top: 7px; padding-bottom: 7px; margin-bottom: 22px; }
.live-demo-strip .text-link { min-height: 36px; font-size: 14px; }
.class-detail-stats { gap: 12px; margin-bottom: 22px; }
.class-detail-stats .stat-card { padding: 16px 19px; border-radius: 12px; }
.class-detail-stats .stat-top { margin-bottom: 6px; }
.class-detail-stats .stat-icon { display: none; }
.class-detail-stats .stat-value { font-size: 27px; }
.class-detail-stats .stat-label { font-size: 14px; }
.class-detail-stats .stat-meta { font-size: 13px; margin-top: 4px; }
.roster-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 0 24px 20px; }
.roster-toolbar .search-field { min-width: 240px; flex: 1; max-width: 400px; }
.roster-toolbar .segmented { flex-shrink: 0; }
.roster-toolbar .segment { min-height: 40px; font-size: 15px; padding-inline: 13px; }
.roster-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.student-row-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.student-row-actions .button { min-height: 44px; padding: 8px 11px; font-size: 14px; }
.student-row-actions .icon { width: 16px; height: 16px; }
.roster-table { white-space: normal; }
.roster-table th, .roster-table td { padding: 15px 18px; }
.roster-table td:first-child { min-width: 235px; }
.roster-table .roster-action-cell { width: 1%; white-space: nowrap; }
.roster-table .roster-parent-cell { max-width: 200px; }
.roster-table .student-name { line-height: 1.5; }
.roster-table tbody tr:hover { background: #fcfaff; }
.student-archived-badge { display: inline-flex; padding: 2px 7px; margin-left: 7px; border-radius: 5px; font-size: 13px; font-weight: 450; color: #706577; background: #f0edf3; vertical-align: middle; white-space: nowrap; }
.student-manage-note { color: var(--muted); font-size: 14px; line-height: 1.7; }
.student-archive-summary { border: 1px solid var(--line); background: #faf8fd; border-radius: 12px; padding: 16px; margin: 18px 0; display: flex; align-items: center; gap: 12px; }
.student-archive-summary strong { display: block; font-size: 18px; }
.student-archive-summary span { font-size: 14px; color: var(--muted); }
.roster-table .student-cell .avatar { width: 36px; height: 36px; }
.modal .button.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width:1180px) and (min-width:768px) {
  .roster-table th, .roster-table td { padding-inline: 14px; }
  .roster-table td:first-child { min-width: 215px; }
  .student-row-actions { flex-wrap: wrap; }
}
@media (max-width:767px) {
  .class-detail-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .class-detail-stats .stat-card { padding: 14px; }
  .class-detail-stats .stat-value { font-size: 25px; }
  .class-detail-stats .stat-meta { font-size: 13px; }
  .roster-toolbar { padding: 0 18px 18px; align-items: stretch; }
  .roster-toolbar .search-field { min-width: 0; max-width: none; flex-basis: 100%; }
  .roster-toolbar .segmented { width: 100%; }
  .roster-toolbar .segment { flex: 1; min-height: 44px; font-size: 15px; }
  .roster-actions { width: 100%; }
  .roster-actions > .button { flex: 1; }
  .roster-table thead { display: none; }
  .roster-table, .roster-table tbody { display: block; }
  .roster-table tbody tr { display: flex; flex-wrap: wrap; gap: 10px 16px; padding: 18px; border-bottom: 1px solid var(--line); }
  .roster-table tbody tr:last-child { border-bottom: 0; }
  .roster-table tbody td, .roster-table tbody td:first-child { display: block; padding: 0; border: 0; min-width: 0; }
  .roster-table td:first-child { width: 100%; }
  .roster-table td[data-label] { font-size: 15px; }
  .roster-table td[data-label]::before { content: attr(data-label) ': '; display: inline; font-size: 14px; color: var(--muted); }
  .roster-table td.roster-parent-cell { display: none; }
  .roster-table td.roster-action-cell { width: 100%; padding-top: 6px; }
  .student-row-actions { justify-content: stretch; gap: 9px; }
  .student-row-actions > .button { flex: 1; min-height: 44px; font-size: 15px; }
  .student-archived-badge { margin-left: 0; margin-top: 4px; }
  .roster-table .student-name { font-size: 18px; }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer .button { flex: 1 1 auto; }
}

.modal .button.accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.class-card-actions { padding-bottom: 18px; }
.class-card-actions .button { width: 100%; }
.credit-banner { background: #fff; border-color: var(--line); color: var(--muted); }
.credit-banner strong { color: var(--ink); }
.credit-icon { background: var(--accent-soft); color: #886817; }
.credit-banner .text-link { color: var(--green); }
@media (max-width:767px) {
  .class-detail-stats .stat-card:nth-child(2), .class-detail-stats .stat-card:nth-child(4) { display: none; }
  .page-heading:has([data-add-student]) .heading-actions .button { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .page-heading:has([data-add-student]) .heading-actions [data-add-student] { order: -1; flex-basis: 100%; }
}
/* Keep repeated class-card actions quiet; reserve the yellow fill for one main action. */
.class-card-actions .button.accent { background: #fff; border-color: #ddd0e9; color: var(--green); font-weight: 500; }
.class-card-actions .button.accent .icon { color: #94701a; }
.class-card-actions .button.accent:hover { background: #f7f3fc; border-color: #bfa7d3; }
