@font-face {
  font-family: Pretendard;
  src: url("assets/pretendard.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  font-weight: 400;
  line-height: 1.5;
  color: #191f28;
  background: #f7f9fc;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  --blue: #3182f6;
  --blue-dark: #1b64da;
  --ink: #191f28;
  --muted: #6b7684;
  --line: #edf0f4;
  --soft: #f5f7fa;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  word-break: keep-all;
}
button {
  color: inherit;
}
svg {
  flex-shrink: 0;
  stroke-width: 1.75;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #3182f655;
  outline-offset: 3px;
}
input,
select,
textarea {
  min-width: 0;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
  margin: 0;
  cursor: pointer;
}
button::-moz-focus-inner {
  border: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
h1:focus {
  outline: none;
}
::selection {
  background: #d8e9ff;
}
body.overlay-open {
  overflow: hidden;
}
.app-shell {
  --sidebar: 232px;
  min-height: 100vh;
}
.app-shell[data-collapsed="true"] {
  --sidebar: 80px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: white;
  border-right: 1px solid #e9edf2;
  z-index: 45;
  transition: width 0.32s var(--ease);
  overflow: hidden;
}
.brand-row {
  height: 82px;
  padding: 0 27px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}
.brand-symbol {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 31px;
  height: 33px;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  font-size: 29px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -2px;
  padding-right: 2px;
  padding-bottom: 4px;
}
.brand-word {
  font-size: 25px;
  letter-spacing: -1.5px;
  font-weight: 790;
  transition: opacity 0.15s;
}
.sidebar-nav {
  padding: 12px 14px 20px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #e8edf3 transparent;
  flex: 1;
}
.nav-item {
  height: 45px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  color: #6b7684;
  font-size: 14px;
  font-weight: 550;
  border-radius: 10px;
  position: relative;
  isolation: isolate;
  white-space: nowrap;
  transition:
    color 0.18s,
    background 0.18s;
  margin-bottom: 3px;
}
.nav-item > svg:first-of-type {
  color: #8491a3;
}
.nav-item:hover:not(:disabled) {
  background: #f5f7fb;
  color: #333d4b;
}
.nav-active-background {
  position: absolute;
  inset: 0;
  background: #eaf3ff;
  z-index: -1;
  border-radius: 10px;
}
.nav-item.active {
  color: #2276e9;
  font-weight: 700;
}
.nav-item.active > svg {
  color: #3182f6;
}
.nav-label {
  transition: opacity 0.15s;
  min-width: 0;
}
.nav-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 650;
  color: #8291a5;
  transition: opacity 0.15s;
}
.nav-item.active .nav-count {
  color: #3182f6;
}
.nav-group-label {
  font-size: 12px;
  letter-spacing: 0.2px;
  color: #9aa4b2;
  padding: 20px 14px 8px;
  white-space: nowrap;
  height: 47px;
}
.nav-group-toggle {
  background: none;
  border: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 14px 10px;
  font-size: 12px;
  color: #8b95a1;
  white-space: nowrap;
  gap: 5px;
}
.nav-group-toggle svg {
  transition: transform 0.2s;
}
.ops-links {
  animation: soft-enter 0.2s var(--ease);
}
.sidebar-bottom {
  padding: 13px 16px 16px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.sidebar-settings {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: #8b95a1;
  font-size: 14px;
  white-space: nowrap;
}
.nav-item:disabled,
.sidebar-settings:disabled {
  color: #b2bac5;
  opacity: 1;
}
.nav-item:disabled > svg {
  color: currentColor;
}
.collapse-button {
  margin-top: 8px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 12px;
  color: #99a3b1;
  border: 0;
  background: #f7f9fc;
  border-radius: 8px;
  min-height: 34px;
}
.collapse-button:hover {
  background: #eef2f7;
  color: #6b7684;
}
.content-frame {
  margin-left: var(--sidebar);
  transition: margin-left 0.32s var(--ease);
  min-width: 0;
}
.app-shell[data-collapsed="true"] .brand-row {
  padding-left: 24px;
}
.app-shell[data-collapsed="true"] .brand-word,
.app-shell[data-collapsed="true"] .nav-label,
.app-shell[data-collapsed="true"] .nav-count,
.app-shell[data-collapsed="true"] .sidebar-settings > span {
  opacity: 0;
  pointer-events: none;
}
.app-shell[data-collapsed="true"] .nav-item {
  padding-left: 16px;
  gap: 20px;
}
.app-shell[data-collapsed="true"] .nav-group-label {
  visibility: hidden;
}
.app-shell[data-collapsed="true"] .nav-group-toggle {
  display: none;
}
.app-shell[data-collapsed="true"] .sidebar-settings {
  padding-left: 13px;
}
.app-shell[data-collapsed="true"] .ops-links {
  display: none;
}
.mobile-scrim,
.mobile-menu,
.brand-row .mobile-close {
  display: none;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #ffffffed;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  color: #9aa4b2;
  white-space: nowrap;
}
.breadcrumb strong {
  color: #4e5968;
  font-weight: 550;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.topbar-date {
  font-size: 13px;
  color: #8b95a1;
  margin-right: 8px;
}
.topbar-separator {
  height: 23px;
  width: 1px;
  background: #e9edf2;
  margin: 0 3px;
}
.account-avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e7f0ff;
  color: #4d7cbf;
  font-size: 13px;
  font-weight: 650;
}
.account-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.account-name small {
  display: block;
  font-size: 12px;
  color: #8b95a1;
  font-weight: 400;
}
.notification-wrapper {
  position: relative;
}
.notification-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f57465;
  right: 10px;
  top: 8px;
  box-shadow: 0 0 0 2px white;
}
.notification-popover {
  position: absolute;
  top: 48px;
  right: -15px;
  width: 340px;
  border: 1px solid #e6ecf5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 50px #122e531a;
  z-index: 55;
  padding: 21px 17px 13px;
  transform-origin: 90% 0;
}
.notification-popover h2 {
  font-size: 17px;
  margin: 0 4px 16px;
}
.notification-popover button {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 8px;
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
  border-radius: 10px;
}
.notification-popover button:hover {
  background: #f6f9ff;
}
.notification-popover button > svg:first-child {
  color: var(--blue);
}
.notification-popover button > span {
  flex: 1;
}
.notification-popover strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.notification-popover small {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.notification-popover button > svg:last-child {
  color: #a4adba;
}
.main-container {
  padding: 32px 36px 0;
  width: 100%;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  min-height: 62px;
}
.page-heading h1 {
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 720;
  line-height: 1.35;
}
.page-heading p {
  font-size: 14px;
  color: #8b95a1;
  margin-top: 9px;
  letter-spacing: -0.15px;
}
.heading-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-shrink: 0;
}
.app-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 36px;
  font-size: 12px;
  color: #a3adba;
}
.app-footer > span:first-child {
  font-weight: 700;
  color: #8b95a1;
}
.button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #e2e7ee;
  background: white;
  color: #4e5968;
  border-radius: 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
  white-space: nowrap;
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.16s,
    box-shadow 0.18s;
}
.button:hover:not(:disabled) {
  background: #f5f7fb;
  border-color: #d9e0e9;
}
.button:active:not(:disabled) {
  transform: scale(0.975);
}
.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 2px 3px #3182f60d;
}
.button.primary:hover:not(:disabled) {
  background: #2375e8;
  border-color: #2375e8;
  box-shadow: 0 4px 12px #3182f621;
}
.button.quiet {
  background: transparent;
  border-color: transparent;
  color: #6b7684;
  padding: 7px 11px;
  min-height: 36px;
  font-weight: 500;
}
.button.quiet:hover:not(:disabled) {
  background: #f2f5f9;
}
.icon-button {
  border: 0;
  background: transparent;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8491a3;
  position: relative;
  transition:
    background 0.18s,
    color 0.18s;
}
.icon-button:hover {
  background: #f0f4f9;
  color: #4e5968;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  background: #f1f3f6;
  color: #7d8898;
  line-height: 1.45;
}
.badge.blue {
  background: #edf4ff;
  color: #367dcc;
}
.badge.teal {
  background: #eaf7f5;
  color: #318b7b;
}
.badge.purple {
  background: #f0edfa;
  color: #8570b5;
}
.badge.orange {
  background: #fff2e6;
  color: #d5893e;
}
.badge.green {
  background: #eaf7f0;
  color: #439172;
}
.avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 13px;
  display: inline-grid;
  place-items: center;
  background: #edf3fb;
  color: #7191bc;
  font-size: 12px;
  font-weight: 600;
}
.avatar.small {
  width: 33px;
  height: 33px;
  border-radius: 11px;
  font-size: 12px;
}
.dot {
  width: 7px;
  height: 7px;
  background: #c8d2df;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.dot.blue {
  background: #3182f6;
}
.dot.gray {
  background: #d9e1eb;
}
.dot.teal {
  background: #58b8a3;
}
.dot.purple {
  background: #ab93d3;
}
.dot.orange {
  background: #edb16c;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #8491a3;
  font-size: 13px;
  white-space: nowrap;
}
.text-link:hover {
  color: #3182f6;
}
.text-link svg {
  transition: transform 0.2s;
}
.text-link:hover svg {
  transform: translateX(2px);
}
.segmented {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  background: #f1f4f8;
  border-radius: 10px;
  gap: 1px;
}
.segmented > button {
  position: relative;
  padding: 7px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #909ba9;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  isolation: isolate;
  min-height: 33px;
}
.segment-active {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: white;
  box-shadow: 0 1px 4px #1b36530a;
  border-radius: 7px;
}
.segmented > button[aria-pressed="true"] {
  color: #333d4b;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 27px;
  border-bottom: 1px solid var(--line);
  padding: 0 26px;
}
.tabs > button {
  position: relative;
  min-height: 65px;
  padding: 0 0 1px;
  border: 0;
  background: none;
  color: #8b95a1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 550;
}
.tabs > button > span {
  font-size: 13px;
  color: #aab2bf;
  font-weight: 450;
}
.tabs > button[aria-pressed="true"] {
  color: #3182f6;
  font-weight: 650;
}
.tabs > button[aria-pressed="true"] > span {
  color: #3182f6;
}
.tabs i {
  position: absolute;
  height: 2px;
  bottom: -1px;
  left: 0;
  right: 0;
  background: #3182f6;
  border-radius: 2px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 41px;
  border: 1px solid #e6eaf0;
  border-radius: 9px;
  background: white;
  padding: 0 12px;
  color: #a3adba;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.search-field:focus-within {
  border-color: #6ea7f5;
  box-shadow: 0 0 0 3px #3182f60a;
}
.search-field input {
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  width: 100%;
  height: 39px;
  font-size: 14px;
  color: #4e5968;
  padding: 0;
}
.search-field input::placeholder {
  color: #a2abb8;
}
.search-field input::-webkit-search-cancel-button {
  display: none;
}
.search-field button {
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  padding: 3px;
  color: #a3adba;
}
.select-field {
  display: inline-flex;
  position: relative;
}
.select-field select {
  border: 1px solid #e6eaf0;
  border-radius: 9px;
  background-color: white;
  padding: 9px 29px 9px 12px;
  min-height: 41px;
  font-size: 13px;
  color: #6b7684;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' stroke='%239aa4b2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}
.filter-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.filter-reset {
  border: 0;
  background: none;
  color: #8994a5;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  padding: 8px;
  white-space: nowrap;
}
.filter-reset:hover {
  color: var(--blue);
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #a3adba;
}
.empty-state > svg {
  margin-bottom: 14px;
  color: #c0cad7;
}
.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  color: #6b7684;
}
.empty-state p {
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 18px;
  color: #98a3b3;
}
.subtle-note {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: #9aa4b2;
  margin: 23px 0 0;
}
.panel {
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 18px;
  min-width: 0;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 26px 0;
}
.panel-heading h2 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.panel-heading p {
  font-size: 13px;
  color: #9aa4b2;
  margin-top: 6px;
}
.heading-count {
  margin-left: 5px;
  font-size: 14px;
  color: #8b95a1;
  font-weight: 500;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 23px;
}
.metric {
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 17px;
  padding: 22px 24px;
  min-width: 0;
}
.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: #6b7684;
}
.metric-label > svg {
  color: #bdc8d7;
}
.metric-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 13px;
  line-height: 1.3;
}
.metric-value > span:first-child {
  font-size: 36px;
  letter-spacing: -1.3px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}
.metric-value > span:last-child {
  font-size: 17px;
  color: #8b95a1;
}
.metric > p {
  font-size: 12px;
  color: #9aa4b2;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.positive {
  color: #3182f6;
  display: inline-flex;
  align-items: center;
  font-weight: 550;
  gap: 1px;
}
.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(275px, 1fr);
  gap: 23px;
  margin-bottom: 23px;
}
.student-trend {
  min-height: 360px;
}
.chart-summary {
  display: flex;
  align-items: baseline;
  gap: 15px;
  padding: 20px 27px 4px;
}
.chart-summary strong {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -1px;
}
.chart-summary small {
  font-size: 15px;
  font-weight: 400;
  color: #8b95a1;
  margin-left: 5px;
}
.chart-summary > span {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #8da6c7;
  font-size: 12px;
}
.line-chart {
  padding: 7px 21px 12px;
}
.line-chart svg {
  width: 100%;
  display: block;
  overflow: visible;
}
.line-chart text {
  font-family: inherit;
  font-size: 12px;
  fill: #aab3c0;
}
.line-chart text.chart-tooltip {
  fill: white;
  font-size: 12px;
}
.line-chart rect[role="button"] {
  outline: none;
}
.line-chart rect[role="button"]:focus {
  stroke: #3182f6;
  stroke-width: 1;
  rx: 6;
}
.subject-chart {
  padding: 32px 27px 27px;
  display: grid;
  gap: 19px;
}
.subject-chart > div > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #6b7684;
  margin-bottom: 9px;
}
.subject-chart strong {
  font-size: 14px;
  font-weight: 600;
  color: #4e5968;
}
.subject-bar {
  height: 9px;
  border-radius: 4px;
  background: #f1f4f9;
  overflow: hidden;
}
.subject-bar > span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: #3182f6;
  animation: bar-grow 0.65s var(--ease);
  transform-origin: left;
}
.subject-bar > .teal {
  background: #68bda9;
}
.subject-bar > .purple {
  background: #ad99d2;
}
.subject-bar > .orange {
  background: #edb271;
}
.subject-chart > p {
  font-size: 12px;
  color: #9aa4b2;
  margin-top: 3px;
}
.attendance-ring {
  width: 178px;
  height: 178px;
  margin: 24px auto 23px;
  position: relative;
}
.attendance-ring > svg {
  width: 100%;
  height: 100%;
}
.attendance-ring > div {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.attendance-ring strong {
  font-size: 32px;
  letter-spacing: -1.2px;
  line-height: 1.3;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.attendance-ring small {
  font-size: 15px;
  letter-spacing: 0;
  margin-left: 3px;
  font-weight: 400;
  color: #9aa4b2;
}
.attendance-ring > div > span {
  font-size: 12px;
  color: #9aa4b2;
}
.attendance-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 28px 24px;
  background: #f8fafc;
  border-radius: 11px;
  padding: 13px 15px;
  gap: 15px;
}
.attendance-details > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
.attendance-details > div > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8b95a1;
}
.attendance-details strong {
  font-size: 13px;
  color: #6b7684;
  font-weight: 600;
}
.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(275px, 1fr);
  gap: 23px;
}
.dashboard-right-stack {
  display: grid;
  gap: 23px;
  align-content: start;
}
.today-panel .panel-heading {
  padding-bottom: 14px;
}
.today-list {
  padding: 0 25px 13px;
}
.today-class {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #f0f3f7;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 0;
  min-height: 78px;
  transition: background 0.18s;
}
.today-class:hover {
  background: #f9fbff;
}
.today-class:last-child {
  border-bottom: 0;
}
.class-hour {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #8b95a1;
  min-width: 38px;
}
.class-line {
  width: 3px;
  height: 31px;
  border-radius: 3px;
  background: #91baf6;
  flex-shrink: 0;
}
.class-line.teal {
  background: #93cfc1;
}
.class-line.purple {
  background: #c1afdf;
}
.class-line.orange {
  background: #efc08e;
}
.class-info {
  display: block;
  flex: 1;
  min-width: 0;
}
.class-info strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
  color: #4e5968;
}
.class-info > span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #a1aaba;
}
.today-count {
  font-size: 12px;
  color: #8b95a1;
}
.today-class > svg {
  color: #b9c3d1;
  width: 15px;
}
.needs-panel .panel-heading {
  padding: 23px 23px 12px;
}
.needs-panel {
  padding-bottom: 6px;
}
.need-row {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  width: 100%;
  border: 0;
  background: none;
  padding: 14px 23px;
}
.need-row:hover {
  background: #f9fbff;
}
.need-icon {
  height: 37px;
  width: 37px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.need-icon.blue {
  background: #edf4ff;
  color: #75a3e6;
}
.need-icon.orange {
  background: #fff4e9;
  color: #dcaa70;
}
.need-row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.need-row strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
  color: #4e5968;
}
.need-row small {
  display: block;
  font-size: 12px;
  color: #9aa4b2;
  margin-top: 5px;
  word-break: keep-all;
}
.need-row > svg {
  color: #bac3d0;
  width: 14px;
}
.new-students .panel-heading {
  padding: 22px 23px 15px;
}
.new-students > button {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: none;
  width: calc(100% - 46px);
  margin: 0 23px;
  padding: 12px 0;
  border-top: 1px solid #f0f3f7;
  text-align: left;
}
.new-students > button:hover {
  background: #f9fbff;
}
.new-students > button > span:nth-child(2) {
  flex: 1;
}
.new-students strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
  color: #4e5968;
}
.new-students small {
  display: block;
  font-size: 12px;
  color: #9aa4b2;
  margin-top: 3px;
}
.new-students {
  padding-bottom: 7px;
}
.table-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 17px;
  padding: 25px 26px 16px;
}
.table-toolbar > .search-field {
  width: 290px;
}
.table-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 27px 17px;
  font-size: 12px;
  color: #a0a9b7;
}
.table-meta > span:first-child {
  font-size: 13px;
  color: #8b95a1;
}
.table-meta strong {
  font-weight: 600;
  color: #6b7684;
}
.table-scroll {
  overflow: auto;
}
.students-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
  min-width: 790px;
}
.students-table thead {
  background: #f8fafc;
}
.students-table th {
  height: 45px;
  font-size: 12px;
  font-weight: 500;
  color: #8995a6;
  border-top: 1px solid #f0f3f7;
  border-bottom: 1px solid #f0f3f7;
}
.students-table th,
.students-table td {
  padding: 0 15px;
}
.students-table th:nth-child(2) {
  width: 22%;
}
.students-table th:nth-child(3) {
  width: 22%;
}
.students-table td {
  height: 80px;
  border-bottom: 1px solid #f0f3f7;
  font-size: 14px;
  color: #6b7684;
}
.students-table tbody tr:last-child td {
  border-bottom: 0;
}
.students-table tbody tr {
  transition: background 0.16s;
}
.students-table tbody tr:hover {
  background: #fafcff;
}
.students-table tbody tr.selected {
  background: #f0f6ff;
}
.students-table .check-cell {
  padding-left: 27px;
  padding-right: 4px;
  width: 47px;
}
.sort-button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 0;
  color: #8995a6;
  font-size: 12px;
}
.sort-button svg {
  color: #bac3d0;
  width: 12px;
}
.student-name-button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  text-align: left;
  padding: 5px 0;
  min-width: 135px;
}
.student-name-button strong {
  display: block;
  color: #4e5968;
  font-size: 14px;
  font-weight: 600;
}
.student-name-button small {
  display: block;
  color: #aab3c0;
  font-size: 12px;
  margin-top: 3px;
}
.student-name-button:hover strong {
  color: #3182f6;
}
.table-grade {
  font-size: 12px;
  color: #aab3c0;
  margin-left: 9px;
}
.subject-tags {
  display: flex;
  gap: 4px;
}
.phone-cell {
  font-size: 13px !important;
  color: #8995a6 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1px;
}
.row-open {
  border: 0;
  background: transparent;
  width: 30px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #b5becb;
}
.row-open:hover {
  background: #edf4ff;
  color: var(--blue);
}
.students-table .arrow-cell {
  width: 55px;
  padding-right: 22px;
}
.selection-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}
.selection-actions strong {
  color: #3182f6;
}
.selection-actions button {
  border: 0;
  background: none;
  color: #779ac7;
  font-size: 12px;
  padding: 0;
}
.pagination {
  border-top: 1px solid var(--line);
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.pagination > span {
  font-size: 12px;
  color: #a3adba;
}
.pagination > div {
  display: flex;
  gap: 5px;
  align-items: center;
}
.pagination button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 12px;
  color: #a1abb9;
  background: none;
  border: 0;
  border-radius: 7px;
}
.pagination button.current {
  background: #edf4ff;
  color: #3182f6;
  font-weight: 600;
}
.pagination button:hover:not(:disabled) {
  background: #f1f5fa;
  color: #4e5968;
}
.drawer-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  width: min(100%, 496px);
  height: 100dvh;
  max-height: none;
  max-width: none;
  overflow: visible;
  outline: 0;
}
.drawer-dialog.wide {
  width: min(100%, 640px);
}
.drawer-dialog::backdrop {
  background: #18283d40;
  backdrop-filter: blur(3px);
  animation: backdrop-enter 0.22s ease;
}
.drawer-surface {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: white;
  box-shadow: -20px 0 80px #12243e12;
}
.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 29px 29px 23px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.drawer-header h2 {
  font-size: 22px;
  letter-spacing: -0.75px;
  font-weight: 700;
}
.drawer-header p {
  font-size: 13px;
  color: #929dab;
  margin-top: 7px;
  word-break: keep-all;
}
.drawer-header > .icon-button {
  margin: -4px -4px 0 0;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 27px 30px 32px;
  overscroll-behavior: contain;
}
.drawer-footer {
  padding: 19px 29px max(19px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  background: #fffffff5;
}
.footer-buttons {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.footer-buttons .button {
  min-width: 76px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #8b95a1;
  white-space: nowrap;
}
.form-section-title {
  font-size: 15px;
  font-weight: 650;
  color: #4e5968;
  margin-bottom: 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-section-title.separated {
  padding-top: 25px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.form-section-title > span {
  font-size: 13px;
  font-weight: 500;
  color: #3182f6;
}
.field {
  margin-bottom: 21px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field > label {
  font-size: 14px;
  color: #5f6b7a;
  font-weight: 550;
}
.field > label > b,
.subject-picker legend > b {
  color: #3182f6;
  font-weight: 500;
}
.field > label > span {
  font-weight: 400;
  color: #a4adba;
  margin-left: 5px;
  font-size: 12px;
}
.field > input,
.field > select,
.field > textarea {
  width: 100%;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  background: #fff;
  padding: 11px 13px;
  min-height: 44px;
  font-size: 15px;
  line-height: 1.5;
  color: #4e5968;
  transition:
    box-shadow 0.18s,
    border-color 0.18s;
}
.field > input::placeholder,
.field > textarea::placeholder {
  color: #adb6c3;
  font-size: 14px;
}
.field > input:focus,
.field > select:focus,
.field > textarea:focus {
  border-color: #77aaf1;
  box-shadow: 0 0 0 3px #3182f60b;
  outline: none;
}
.field > textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.8;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.subject-picker {
  border: 0;
  padding: 0;
  margin: 0 0 25px;
}
.subject-picker legend {
  font-size: 14px;
  color: #5f6b7a;
  font-weight: 550;
  padding: 0;
  margin-bottom: 12px;
}
.subject-picker > div {
  display: flex;
  gap: 9px;
}
.subject-picker button {
  padding: 9px 15px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 9px;
  border: 1px solid #e5eaf1;
  background: white;
  color: #8b95a1;
  font-size: 14px;
}
.subject-picker button[aria-pressed="true"] {
  color: #3182f6;
  background: #f2f7ff;
  border-color: #a9ccfa;
}
.form-error {
  padding: 12px 14px;
  background: #fff2ef;
  color: #c97162;
  font-size: 14px;
  line-height: 1.7;
  border-radius: 10px;
  word-break: keep-all;
  margin-top: 10px;
}
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  translate: -50% 0;
  z-index: 100;
  background: #263345f5;
  border: 1px solid #ffffff16;
  backdrop-filter: blur(12px);
  border-radius: 13px;
  box-shadow: 0 8px 30px #172b4024;
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 14px 17px;
  color: white;
  font-size: 14px;
  max-width: calc(100% - 32px);
  width: max-content;
}
.toast-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #9bccfa;
  background: #4f719541;
  flex-shrink: 0;
}
.toast > button {
  padding: 4px;
  border: 0;
  background: none;
  color: #aebcd0;
  display: grid;
  place-items: center;
  margin-left: 10px;
}
.timetable-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 21px;
}
.timetable-toolbar .segmented > button {
  font-size: 14px;
  padding: 8px 16px;
  min-height: 35px;
}
.timetable-legend {
  display: flex;
  align-items: center;
  gap: 17px;
  font-size: 12px;
  color: #8995a6;
}
.timetable-legend > span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.week-control {
  display: flex;
  gap: 8px;
  align-items: center;
}
.week-control > strong {
  font-size: 16px;
  letter-spacing: -0.3px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 178px;
  text-align: center;
}
.week-control .button {
  font-size: 12px;
  padding: 4px 10px;
  border-color: #e9edf3;
  background: white;
  margin-left: 7px;
  min-height: 29px;
}
.week-control .icon-button {
  width: 26px;
}
.calendar-scroll {
  overflow: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #dce5f1 transparent;
}
.calendar-grid {
  min-width: 865px;
  display: grid;
  grid-template-columns: 65px repeat(6, minmax(0, 1fr));
}
.calendar-row {
  display: contents;
}
.calendar-corner {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aab3c0;
  font-size: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
  position: sticky;
  left: 0;
  z-index: 3;
}
.day-heading {
  min-height: 71px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #8b95a1;
  border-right: 1px solid #f0f3f7;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.day-heading > span {
  font-size: 13px;
}
.day-heading > strong {
  font-size: 17px;
  letter-spacing: -0.5px;
  font-weight: 550;
  min-width: 29px;
  min-height: 29px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.day-heading.today {
  background: #fbfdff;
  color: #3182f6;
}
.day-heading.today > strong {
  background: #3182f6;
  color: #fff;
}
.time-label {
  font-size: 12px;
  color: #a6b0bd;
  display: flex;
  justify-content: center;
  padding-top: 11px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
  position: sticky;
  left: 0;
  z-index: 3;
  font-variant-numeric: tabular-nums;
  min-height: 106px;
}
.time-cell {
  min-height: 106px;
  border-right: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
  padding: 6px;
  display: flex;
  gap: 5px;
  flex-direction: column;
  position: relative;
  transition:
    background 0.18s,
    box-shadow 0.18s;
  min-width: 0;
}
.time-cell.today-column {
  background: #fbfdff;
}
.time-cell.drop-target {
  background: #edf5ff;
  box-shadow: inset 0 0 0 2px #77aef7;
}
/* 수업 카드는 요일 기둥 위에 분 단위로 얹힌다 (top/height 는 JS가 계산) */
.day-layer {
  position: relative;
  pointer-events: none;
  z-index: 2;
}
.lesson-shell {
  position: absolute;
  left: 6px;
  right: 6px;
  min-width: 0;
  pointer-events: auto;
  transition: top 0.16s ease, height 0.16s ease;
}
.lesson-shell.is-resizing {
  transition: none;
  z-index: 6;
}
.lesson-shell > .lesson-card {
  height: 100%;
  overflow: hidden;
  min-height: 0; /* 기본 카드의 min-height:89px 때문에 25분 수업이 안 줄어들던 것 해제 */
}
/* 짧은 수업일수록 담는 정보를 줄인다 — 글자가 넘쳐 잘리는 것보다 낫다 */
.lesson-shell[data-size="short"] > .lesson-card {
  padding: 7px 9px 6px;
  gap: 2px;
}
.lesson-shell[data-size="short"] .lesson-card-bottom {
  display: none;
}
.lesson-shell[data-size="tiny"] > .lesson-card {
  padding: 4px 8px;
  gap: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.lesson-shell[data-size="tiny"] .lesson-card-meta,
.lesson-shell[data-size="tiny"] .lesson-card-bottom {
  display: none;
}
.lesson-shell[data-size="tiny"] .lesson-card-title {
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.lesson-shell[data-size="tiny"] .lesson-card-time {
  font-size: 10.5px;
  flex-shrink: 0;
}
.lesson-shell[data-size="tiny"] .lesson-card-time > small {
  display: none;
}
/* 위·아래 끝 손잡이 — 노션 캘린더처럼 끝에 대면 잡힌다 */
.lesson-resize {
  position: absolute;
  left: 0;
  right: 0;
  height: 9px;
  cursor: ns-resize;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lesson-resize.top {
  top: -4px;
}
.lesson-resize.bottom {
  bottom: -4px;
}
.lesson-resize::after {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: #3182f6;
  opacity: 0;
  transition: opacity 0.14s;
}
.lesson-shell:hover .lesson-resize::after,
.lesson-shell.is-resizing .lesson-resize::after {
  opacity: 0.85;
}
/* 끄는 동안 지금 몇 시~몇 시인지 붙여 보여준다 */
.resize-bubble {
  position: absolute;
  right: 0;
  top: -26px;
  background: #191f28;
  color: #fff;
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
/* 카드 안 시간 표기 */
.lesson-card-time {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #2f6fd0;
  font-variant-numeric: tabular-nums;
}
.lesson-card-time > small {
  font-size: 10.5px;
  font-weight: 500;
  opacity: 0.7;
}
.lesson-card-meta {
  font-size: 11.5px;
  color: #6b7787;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lesson-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  border: 1px solid #cce1fc;
  background: #edf5ff;
  padding: 10px 10px 8px;
  text-align: left;
  border-radius: 9px;
  color: #6190cc;
  min-height: 89px;
  position: relative;
  transition:
    box-shadow 0.2s,
    filter 0.2s;
  cursor: grab;
}
.lesson-card:active {
  cursor: grabbing;
}
.lesson-card:hover {
  box-shadow: 0 3px 12px #366fbc15;
  filter: brightness(0.99);
}
.lesson-card.teal {
  background: #edf8f5;
  border-color: #d2ebe2;
  color: #75a99b;
}
.lesson-card.purple {
  background: #f4f0fc;
  border-color: #e4d9f5;
  color: #a590c3;
}
.lesson-card.orange {
  background: #fff5e9;
  border-color: #f1e1c9;
  color: #c2a170;
}
.lesson-card-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.2px;
  line-height: 1.4;
  color: #4178bb;
}
.lesson-card.teal .lesson-card-title {
  color: #438c7c;
}
.lesson-card.purple .lesson-card-title {
  color: #8d70b5;
}
.lesson-card.orange .lesson-card-title {
  color: #b78947;
}
.lesson-card-title > svg {
  color: #d6a05e;
  width: 12px;
  margin-top: 3px;
}
.lesson-card > span:nth-child(2) {
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}
.lesson-card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 3px;
  align-items: center;
  font-size: 12px;
  margin-top: auto;
}
.lesson-card-bottom > span {
  display: flex;
  gap: 3px;
  align-items: center;
}
.lesson-card-bottom b {
  font-size: 12px;
  font-weight: 500;
  color: #c39252;
}
.lesson-card-bottom small {
  font-size: 12px;
  opacity: 0.8;
}
.lesson-card.drag-source {
  opacity: 0.4;
}
/* 수업 추가 — 예전엔 평소 완전히 숨어 있어서(opacity:0) 추가가 되는지조차
   몰랐다. 평소에도 옅게 보이고, 칸에 올리면 확실히 드러나게 바꿨다. */
.cell-add {
  background: none;
  color: #9db6d6;
  border: 1px dashed transparent;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  width: 100%;
  min-height: 85px;
  flex: 1;
  opacity: 0.45;
  border-radius: 9px;
  transition:
    opacity 0.15s,
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.cell-add > span {
  opacity: 0;
  transition: opacity 0.15s;
}
.time-cell:hover > .cell-add,
.cell-add:focus-visible {
  opacity: 1;
  background: #f0f6ff;
  border-color: #9fc4f7;
  color: #2f6fd0;
}
.time-cell:hover > .cell-add > span,
.cell-add:focus-visible > span {
  opacity: 1;
}
.cell-add:focus-visible {
  outline: 2px solid #3182f6;
  outline-offset: 1px;
}
.is-dragging .cell-add {
  pointer-events: none;
}
.calendar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 23px;
  font-size: 12px;
  color: #9aa7b8;
  gap: 17px;
}
.calendar-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
}
.capacity-warning {
  background: #fff5e9;
  color: #c38f56;
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 13px;
  display: flex;
  gap: 7px;
  align-items: center;
  margin: -5px 0 15px;
}
.roster-picker {
  margin-top: 13px;
  max-height: 270px;
  overflow-y: auto;
  border: 1px solid #e8edf4;
  border-radius: 11px;
  scrollbar-width: thin;
  scrollbar-color: #dce5ef transparent;
}
.roster-picker > label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px 14px;
  border-bottom: 1px solid #f0f3f7;
  font-size: 14px;
  color: #5f6b7a;
}
.roster-picker > label:last-child {
  border-bottom: 0;
}
.roster-picker > label:hover {
  background: #f8fbff;
}
.roster-picker > label small {
  display: block;
  color: #a0aab9;
  font-size: 12px;
  margin-top: 2px;
}
.roster-empty {
  text-align: center;
  padding: 30px;
  font-size: 13px;
  color: #98a3b2;
}
.text-danger {
  border: 0;
  background: none;
  color: #c97970;
  padding: 8px 0;
  font-size: 13px;
}
.delete-confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #b1857f;
  max-width: 190px;
}
.delete-confirm > button {
  border: 0;
  background: none;
  color: #bd7368;
  padding: 0;
  font-size: 12px;
  text-decoration: underline;
}
.analysis-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 23px;
}
.analysis-metrics > div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 25px;
  gap: 20px;
}
.analysis-metrics > div > span {
  font-size: 14px;
  color: #7b8898;
}
.analysis-metrics strong {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -1px;
}
.analysis-metrics small {
  font-size: 14px;
  color: #a1aaba;
  font-weight: 450;
  margin-left: 5px;
  letter-spacing: 0;
}
.orange-text {
  color: #d49b5d;
}
.analysis-columns {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 23px;
}
.analysis-issues {
  padding: 13px 25px 20px;
}
.analysis-issues > button {
  display: flex;
  gap: 17px;
  align-items: center;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  width: 100%;
}
.analysis-issues > button:last-child {
  border-bottom: 0;
}
.analysis-issues > button > span:nth-child(2) {
  flex: 1;
}
.analysis-issues strong {
  display: block;
  font-size: 14px;
  color: #5f6b7a;
  font-weight: 550;
}
.analysis-issues small {
  display: block;
  font-size: 12px;
  color: #9ca7b6;
  margin-top: 5px;
  word-break: keep-all;
}
.analysis-issues svg {
  color: #b4bfce;
}
.issue-date {
  flex-shrink: 0;
  width: 44px;
  text-align: center;
  background: #f7f9fc;
  color: #8493a7;
  padding: 9px 3px;
  border-radius: 9px;
  font-size: 13px;
}
.issue-date > small {
  margin-top: 3px;
  font-size: 12px;
}
.frequency-summary {
  margin: 20px 25px 9px;
  padding: 12px;
  background: #f8fafd;
  border-radius: 9px;
  color: #8b95a1;
  font-size: 13px;
}
.frequency-summary > strong {
  color: #3182f6;
  font-weight: 600;
  margin-left: 5px;
}
.frequency-list {
  padding: 0 25px 16px;
  max-height: 465px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e3eaf3 transparent;
}
.frequency-list > div {
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.frequency-list > div > span:nth-child(2) {
  flex: 1;
  min-width: 74px;
}
.frequency-list strong {
  display: block;
  font-size: 13px;
  color: #67758a;
  font-weight: 550;
}
.frequency-list small {
  display: block;
  font-size: 12px;
  color: #a7b0be;
  margin-top: 3px;
}
.frequency-dots {
  display: flex;
  gap: 3px;
  max-width: 85px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.frequency-dots > i {
  width: 6px;
  height: 15px;
  border-radius: 2px;
  background: #eff3f8;
}
.frequency-dots > i.filled {
  background: #b2cff6;
}
.class-frequency .panel-heading {
  gap: 7px;
}
.class-frequency .select-field select {
  min-height: 32px;
  font-size: 12px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.period-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #8b95a1;
}
.report-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 23px;
}
.report-summary > button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 20px 23px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.report-summary > button:hover,
.report-summary > button.active {
  border-color: #c8defb;
  box-shadow: 0 3px 14px #3182f607;
}
.summary-icon {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.summary-icon.orange {
  background: #fff3e8;
  color: #dcb17e;
}
.summary-icon.blue {
  background: #edf4ff;
  color: #80a9e4;
}
.summary-icon.green {
  background: #edf7f2;
  color: #8ec2a8;
}
.report-summary > button > span:nth-child(2) {
  flex: 1;
  font-size: 13px;
  color: #8b95a1;
}
.report-summary strong {
  display: block;
  font-size: 27px;
  color: #333d4b;
  font-weight: 650;
  letter-spacing: -0.8px;
  margin-top: 3px;
}
.report-summary strong > small {
  font-size: 13px;
  font-weight: 450;
  color: #9ca7b6;
  margin-left: 6px;
  letter-spacing: 0;
}
.report-summary > button > svg {
  color: #b9c5d4;
}
.report-workspace {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 23px;
  align-items: stretch;
}
.report-inbox {
  display: flex;
  flex-direction: column;
}
.report-inbox-header {
  padding: 21px 20px 17px;
  border-bottom: 1px solid var(--line);
}
.report-inbox-header h2 {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 17px;
  letter-spacing: -0.3px;
}
.report-inbox-header h2 > span {
  font-size: 13px;
  font-weight: 450;
  color: #a6b0bf;
  margin-left: 5px;
}
.report-inbox-header .search-field {
  margin-bottom: 10px;
}
.report-inbox-header .select-field {
  display: block;
}
.report-inbox-header select {
  width: 100%;
  min-height: 35px;
  font-size: 12px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.report-list {
  padding: 9px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e1e8f2 transparent;
  max-height: 900px;
  flex: 1;
}
.report-list > button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: none;
  border-radius: 10px;
  position: relative;
  isolation: isolate;
  padding: 15px 11px;
  text-align: left;
  transition: background 0.15s;
}
.report-list > button > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.report-list strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
  color: #5f6b7a;
}
.report-list small {
  display: block;
  font-size: 12px;
  color: #a0aab9;
  margin-top: 4px;
}
.report-list > button:hover {
  background: #f8fafd;
}
.report-list > button.selected {
  background: #f0f6ff;
}
.report-list > button.selected strong {
  color: #397ed6;
  font-weight: 650;
}
.report-list > button > i {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid #dceafd;
  border-radius: 10px;
}
.report-list .badge {
  font-size: 12px;
  padding: 3px 6px;
  min-height: 22px;
}
.report-list .avatar {
  width: 33px;
  height: 33px;
  border-radius: 11px;
}
.report-detail {
  display: flex;
  flex-direction: column;
  min-height: 840px;
}
.report-detail-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 17px 23px;
  border-bottom: 1px solid var(--line);
}
.report-detail-toolbar .button {
  font-size: 12px;
}
.report-detail-body {
  padding: 0 35px;
  background: #fafcfe;
  flex: 1;
  min-width: 0;
}
.parent-preview {
  max-width: 460px;
  margin: 26px auto;
  background: white;
  padding: 30px 29px 25px;
  border: 1px solid #edf2f8;
  box-shadow: 0 2px 9px #1b426803;
  border-radius: 18px;
  color: #191f28;
}
.parent-preview > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 29px;
}
.parent-preview > header > strong {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.9px;
  display: flex;
  gap: 4px;
  align-items: flex-start;
}
.parent-preview > header > strong > span {
  width: 4px;
  height: 4px;
  background: #3182f6;
  border-radius: 50%;
  margin-top: 5px;
}
.parent-preview > header > span {
  font-size: 12px;
  color: #a1abba;
}
.report-student-level {
  font-size: 12px;
  color: #7a9dcc;
  margin-bottom: 12px;
}
.parent-preview h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.4;
}
.parent-preview-period {
  font-size: 12px;
  color: #a7b0be;
  margin-top: 11px;
}
.parent-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 25px;
  margin-top: 23px;
  background: #f4f8fe;
  border-radius: 20px;
}
.parent-score > div:first-child > span:first-child {
  font-size: 12px;
  color: #8da2bd;
  display: block;
}
.parent-score strong {
  display: block;
  font-size: 65px;
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1.2;
  margin-top: 7px;
  color: #263e61;
}
.parent-score strong > small {
  font-size: 19px;
  color: #92a4bd;
  letter-spacing: 0;
  font-weight: 450;
  margin-left: 5px;
}
.score-delta {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #5a97e9;
  font-size: 12px;
  margin-top: 8px;
}
.mini-trend {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 92px;
  width: 104px;
  padding-top: 0;
}
.mini-trend > span {
  flex: 1;
  background: #cde0fb;
  border-radius: 5px 5px 2px 2px;
}
.mini-trend > span:nth-child(2) {
  background: #adcef9;
}
.mini-trend > span:nth-child(3) {
  background: #75a9f1;
}
.mini-trend > span:nth-child(4) {
  background: #3182f6;
}
.parent-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 23px 6px;
  border-bottom: 1px solid #edf1f6;
}
.parent-metrics > div > span {
  font-size: 12px;
  color: #95a1b2;
  display: block;
}
.parent-metrics strong {
  display: block;
  font-size: 23px;
  font-weight: 600;
  color: #4c5c74;
  letter-spacing: -0.6px;
  margin-top: 7px;
}
.parent-metrics small {
  font-size: 14px;
  color: #a3afbe;
  font-weight: 400;
  letter-spacing: 0;
}
.parent-note {
  padding: 24px 5px;
}
.parent-note > span {
  font-size: 12px;
  color: #9aa6b6;
}
.parent-note h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.7px;
  line-height: 1.5;
  margin-top: 12px;
  color: #354760;
}
.parent-note p {
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: -0.3px;
  color: #7b889a;
  margin-top: 16px;
  word-break: keep-all;
  white-space: pre-wrap;
}
.parent-next {
  background: #f5f9ff;
  padding: 18px 20px;
  position: relative;
  border-radius: 13px;
  padding-right: 45px;
}
.parent-next > span {
  display: block;
  font-size: 12px;
  color: #8ba7cd;
  margin-bottom: 7px;
}
.parent-next strong {
  display: block;
  font-size: 14px;
  color: #6290cc;
  font-weight: 550;
  line-height: 1.7;
  word-break: keep-all;
}
.parent-next svg {
  position: absolute;
  right: 15px;
  top: 24px;
  color: #b8d1f0;
}
.parent-preview > footer {
  font-size: 12px;
  color: #b0bac7;
  text-align: center;
  margin-top: 25px;
}
.report-action-bar {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fffffff5;
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 18px 23px;
}
.report-action-bar > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #96a2b4;
  white-space: nowrap;
}
.report-action-bar > div {
  display: flex;
  gap: 8px;
}
.report-editor {
  padding: 29px 0;
  max-width: 490px;
  margin: auto;
}
.report-editor-student {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}
.report-editor-student > div {
  flex: 1;
}
.report-editor-student h2 {
  font-size: 18px;
  font-weight: 650;
}
.report-editor-student p {
  font-size: 12px;
  color: #9da9b9;
  margin-top: 4px;
}
.report-editor .field textarea {
  font-size: 16px;
}
.field-count {
  font-size: 12px;
  color: #a7b3c2;
  text-align: right;
}
.editor-help {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  font-size: 13px;
  color: #93a4ba;
  margin: 0 0 23px;
  line-height: 1.7;
}
.editor-help svg {
  margin-top: 2px;
}
@keyframes soft-enter {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes backdrop-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes bar-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@media (min-width: 1700px) {
  .main-container {
    padding-top: 40px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .metrics-grid {
    gap: 23px;
  }
  .metric {
    padding: 26px 29px;
  }
  .metric-value > span:first-child {
    font-size: 39px;
  }
  .topbar {
    padding-left: 42px;
    padding-right: 42px;
  }
}
@media (max-width: 1280px) {
  .app-shell {
    --sidebar: 212px;
  }
  .main-container {
    padding: 27px 26px 0;
  }
  .topbar {
    padding: 0 26px;
  }
  .metric {
    padding: 20px;
  }
  .metrics-grid {
    gap: 14px;
  }
  .metric-value > span:first-child {
    font-size: 32px;
  }
  .dashboard-main-grid,
  .dashboard-bottom-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(265px, 1fr);
    gap: 18px;
  }
  .dashboard-right-stack {
    gap: 18px;
  }
  .panel-heading {
    padding-left: 22px;
    padding-right: 22px;
  }
  .today-list {
    padding-left: 22px;
    padding-right: 22px;
  }
  .today-class {
    gap: 10px;
  }
  .today-count {
    display: none;
  }
  .student-trend .panel-heading {
    align-items: flex-start;
  }
  .student-trend .segmented > button {
    padding-left: 9px;
    padding-right: 9px;
    font-size: 12px;
  }
  .table-toolbar {
    gap: 10px;
  }
  .table-toolbar > .search-field {
    width: 255px;
  }
  .report-workspace {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
  }
  .report-inbox-header {
    padding: 20px 16px 16px;
  }
  .report-list > button {
    padding: 14px 8px;
    gap: 8px;
  }
  .report-detail-body {
    padding: 0 22px;
  }
  .report-summary > button {
    padding: 19px;
    gap: 12px;
  }
  .report-summary > button > svg {
    display: none;
  }
  .report-summary > button > span:nth-child(2) {
    font-size: 12px;
  }
  .calendar-toolbar {
    flex-wrap: wrap;
    padding: 18px;
  }
  .calendar-toolbar > .filter-controls {
    margin-left: auto;
  }
  .analysis-columns {
    gap: 18px;
  }
  .analysis-metrics > div {
    padding: 20px;
    gap: 10px;
  }
  .analysis-metrics > div > span {
    font-size: 13px;
  }
  .class-frequency .panel-heading {
    flex-wrap: wrap;
  }
  .need-row {
    padding-left: 20px;
    padding-right: 20px;
    gap: 9px;
  }
  .need-icon {
    width: 33px;
    height: 33px;
  }
  .need-row strong {
    font-size: 13px;
  }
  .need-row small {
    font-size: 12px;
  }
  .attendance-details {
    margin-left: 21px;
    margin-right: 21px;
    padding-left: 11px;
    padding-right: 11px;
    gap: 12px;
  }
}
@media (max-width: 1080px) {
  .dashboard-main-grid,
  .dashboard-bottom-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-main-grid {
    grid-template-columns: minmax(0, 1.5fr) 260px;
  }
  .student-trend .panel-heading {
    flex-wrap: wrap;
  }
  .student-trend .segmented {
    margin-left: auto;
  }
  .student-trend .chart-summary {
    padding-top: 12px;
  }
  .dashboard-right-stack {
    grid-template-columns: 1fr 1fr;
  }
  .metrics-grid {
    gap: 12px;
  }
  .metric {
    padding: 19px 15px;
  }
  .metric-label {
    font-size: 13px;
    gap: 5px;
  }
  .metric-label svg {
    display: none;
  }
  .metric > p {
    font-size: 12px;
    gap: 3px;
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .button {
    padding-left: 13px;
    padding-right: 13px;
    font-size: 13px;
  }
  .report-workspace {
    grid-template-columns: 245px minmax(0, 1fr);
  }
  .report-list .avatar {
    display: none;
  }
  .report-detail-body {
    padding: 0 16px;
  }
  .parent-preview {
    padding: 24px 21px;
  }
  .parent-preview h2 {
    font-size: 28px;
  }
  .parent-score {
    padding: 20px;
  }
  .mini-trend {
    width: 82px;
    gap: 6px;
  }
  .report-detail-toolbar {
    padding: 16px;
    gap: 5px;
  }
  .report-detail-toolbar .segmented > button {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 12px;
  }
  .report-detail-toolbar .button {
    font-size: 12px;
    padding: 5px;
  }
  .report-action-bar {
    padding: 16px;
  }
  .report-summary {
    gap: 12px;
  }
  .summary-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .report-summary > button {
    padding: 17px 14px;
    gap: 9px;
  }
  .report-summary strong {
    font-size: 25px;
  }
  .analysis-metrics {
    gap: 12px;
  }
  .analysis-metrics > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .analysis-columns {
    grid-template-columns: 1fr;
  }
  .table-toolbar {
    flex-wrap: wrap;
  }
  .table-toolbar > .search-field {
    flex: 1;
    min-width: 220px;
  }
  .filter-controls {
    margin-left: auto;
  }
  .table-meta > span:last-child:not(.selection-actions) {
    font-size: 12px;
  }
  .topbar-date {
    display: none;
  }
  .timetable-legend {
    gap: 11px;
  }
}
@media (max-width: 1024px) {
  .app-shell,
  .app-shell[data-collapsed="true"] {
    --sidebar: 0px;
  }
  .content-frame {
    margin-left: 0;
  }
  .sidebar {
    width: 232px;
    transform: translateX(-100%);
    transition: transform 0.32s var(--ease);
    z-index: 70;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .mobile-menu {
    display: inline-flex;
  }
  .brand-row .mobile-close {
    display: inline-flex;
    margin-left: auto;
  }
  .brand-row {
    padding-right: 16px;
  }
  .mobile-scrim.visible {
    display: block;
    position: fixed;
    inset: 0;
    background: #1a304346;
    backdrop-filter: blur(3px);
    z-index: 65;
    animation: backdrop-enter 0.2s;
  }
  .app-shell[data-collapsed="true"] .brand-word,
  .app-shell[data-collapsed="true"] .nav-label,
  .app-shell[data-collapsed="true"] .nav-count,
  .app-shell[data-collapsed="true"] .sidebar-settings > span {
    opacity: 1;
  }
  .app-shell[data-collapsed="true"] .nav-item {
    padding: 0 14px;
    gap: 11px;
  }
  .app-shell[data-collapsed="true"] .nav-group-label {
    visibility: visible;
  }
  .app-shell[data-collapsed="true"] .nav-group-toggle {
    display: flex;
  }
  .app-shell[data-collapsed="true"] .ops-links {
    display: block;
  }
  .collapse-button {
    display: none;
  }
  .topbar {
    height: 67px;
    padding: 0 22px;
  }
  .breadcrumb {
    gap: 7px;
    font-size: 13px;
  }
  .topbar-right {
    gap: 10px;
  }
  .main-container {
    padding: 25px 24px 0;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  .app-footer {
    padding: 26px 24px;
  }
  .report-list .avatar {
    display: inline-grid;
  }
  .report-workspace {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .dashboard-main-grid {
    grid-template-columns: minmax(0, 1.5fr) 270px;
  }
  .student-trend .panel-heading {
    flex-wrap: nowrap;
  }
  .student-trend .segmented {
    margin-left: 0;
  }
  .metric-label {
    font-size: 14px;
  }
  .metric {
    padding: 20px;
  }
  .metric-label svg {
    display: block;
  }
  .calendar-grid {
    min-width: 885px;
  }
  .timetable-legend {
    gap: 14px;
  }
}
@media (max-width: 700px) {
  .main-container {
    padding: 23px 18px 0;
  }
  .topbar {
    padding: 0 15px;
  }
  .topbar-separator {
    margin: 0;
  }
  .account-name {
    display: none;
  }
  .topbar-right {
    gap: 7px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 25px;
    letter-spacing: -0.8px;
  }
  .page-heading p {
    font-size: 13px;
    max-width: 235px;
    line-height: 1.7;
  }
  .heading-actions {
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .heading-actions .button {
    font-size: 13px;
    padding: 9px 11px;
    min-height: 39px;
  }
  .heading-actions .button.secondary {
    display: none;
  }
  .page-dashboard .heading-actions .button {
    font-size: 13px;
  }
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }
  .metric {
    padding: 19px 21px;
  }
  .metric-label {
    font-size: 13px;
  }
  .metric-value > span:first-child {
    font-size: 33px;
  }
  .metric-value > span:last-child {
    font-size: 15px;
  }
  .metric > p {
    font-size: 12px;
  }
  .dashboard-main-grid {
    grid-template-columns: 1fr;
    margin-bottom: 18px;
    gap: 18px;
  }
  .dashboard-bottom-grid {
    gap: 18px;
  }
  .dashboard-right-stack {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .student-trend {
    min-height: 0;
  }
  .panel-heading {
    padding: 21px 21px 0;
  }
  .panel-heading h2 {
    font-size: 16px;
  }
  .student-trend .panel-heading {
    flex-wrap: nowrap;
  }
  .student-trend .segmented > button {
    font-size: 12px;
  }
  .chart-summary {
    padding-left: 23px;
    padding-top: 17px;
  }
  .line-chart {
    padding: 5px 16px 13px;
  }
  .attendance-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 235px;
  }
  .attendance-panel .panel-heading {
    grid-column: 1/-1;
    padding-top: 21px;
  }
  .attendance-ring {
    margin: 16px 0 15px 25px;
    width: 148px;
    height: 148px;
  }
  .attendance-ring strong {
    font-size: 29px;
  }
  .attendance-details {
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    gap: 18px;
    margin: 12px 22px 20px 8px;
  }
  .today-list {
    padding: 0 21px 10px;
  }
  .today-class {
    padding: 16px 0;
    gap: 11px;
  }
  .today-count {
    display: none;
  }
  .today-class > .badge {
    font-size: 12px;
    padding: 3px 6px;
  }
  .today-class > svg {
    display: none;
  }
  .class-info strong {
    font-size: 14px;
  }
  .need-row {
    padding: 16px 21px;
  }
  .new-students > button {
    width: calc(100% - 42px);
    margin-left: 21px;
    margin-right: 21px;
    padding: 14px 0;
  }
  .needs-panel .panel-heading,
  .new-students .panel-heading {
    padding-left: 21px;
    padding-right: 21px;
  }
  .table-toolbar {
    padding: 20px 18px 14px;
    gap: 12px;
  }
  .table-toolbar > .search-field {
    min-width: 100%;
    width: 100%;
  }
  .table-toolbar .filter-controls {
    margin-left: 0;
    flex-wrap: wrap;
  }
  .tabs {
    gap: 24px;
    padding: 0 19px;
  }
  .tabs > button {
    min-height: 59px;
    font-size: 14px;
  }
  .table-meta {
    padding: 0 19px 15px;
    font-size: 12px;
    align-items: flex-start;
  }
  .table-meta > span:last-child:not(.selection-actions) {
    display: none;
  }
  .students-table .check-cell {
    padding-left: 20px;
  }
  .students-table td {
    height: 76px;
  }
  .pagination {
    padding: 17px 18px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .pagination button {
    width: 28px;
    height: 29px;
  }
  .pagination > div {
    gap: 2px;
  }
  .subtle-note {
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 12px;
    line-height: 1.7;
    padding: 0 5px;
  }
  .subtle-note svg {
    margin-top: 2px;
  }
  .selection-actions {
    gap: 10px;
  }
  .app-footer {
    padding: 27px 18px;
  }
  .notification-popover {
    right: -45px;
    width: 310px;
    max-width: calc(100vw - 30px);
  }
  .drawer-header {
    padding: 25px 22px 20px;
  }
  .drawer-header h2 {
    font-size: 21px;
  }
  .drawer-body {
    padding: 24px 23px 29px;
  }
  .drawer-footer {
    padding: 17px 22px max(17px, env(safe-area-inset-bottom));
  }
  .form-row {
    gap: 13px;
  }
  .toast {
    bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
    padding: 12px 14px;
    gap: 8px;
  }
  .toast > button {
    margin-left: 3px;
  }
  .timetable-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 17px;
  }
  .timetable-toolbar .segmented > button {
    font-size: 13px;
    padding: 8px 13px;
  }
  .timetable-legend {
    gap: 13px;
    margin-left: 3px;
    width: 100%;
    font-size: 12px;
  }
  .calendar-toolbar {
    padding: 15px 12px;
    gap: 14px;
  }
  .week-control {
    gap: 4px;
    width: 100%;
    justify-content: center;
  }
  .week-control > strong {
    font-size: 15px;
    min-width: 168px;
  }
  .week-control .button {
    margin-left: 5px;
  }
  .calendar-toolbar > .filter-controls {
    margin-left: 3px;
    margin-right: auto;
    gap: 7px;
  }
  .calendar-toolbar .select-field select {
    font-size: 12px;
    min-height: 35px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .calendar-footer {
    padding: 15px;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.7;
    font-size: 12px;
  }
  .calendar-footer > span:last-child {
    display: none;
  }
  .calendar-footer > span:first-child {
    align-items: flex-start;
  }
  .calendar-footer svg {
    margin-top: 3px;
  }
  .cell-add {
    opacity: 0.32;
  }
  .cell-add.has-class {
    opacity: 0.7;
  }
  .analysis-metrics {
    gap: 8px;
    margin-bottom: 18px;
  }
  .analysis-metrics > div {
    padding: 17px 12px;
    gap: 9px;
    border-radius: 12px;
  }
  .analysis-metrics > div > span {
    font-size: 12px;
    word-break: keep-all;
  }
  .analysis-metrics strong {
    font-size: 27px;
  }
  .analysis-metrics small {
    font-size: 12px;
    margin-left: 4px;
  }
  .analysis-columns {
    gap: 18px;
  }
  .analysis-issues {
    padding: 12px 20px 14px;
  }
  .analysis-issues > button {
    gap: 12px;
  }
  .analysis-issues small {
    font-size: 12px;
    line-height: 1.65;
  }
  .period-label {
    font-size: 12px;
    align-items: flex-start;
    max-width: 115px;
    line-height: 1.7;
  }
  .period-label svg {
    margin-top: 2px;
    width: 14px;
  }
  .report-summary {
    gap: 9px;
    margin-bottom: 18px;
  }
  .report-summary > button {
    padding: 15px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-radius: 13px;
  }
  .report-summary > button > span:nth-child(2) {
    font-size: 12px;
    word-break: keep-all;
    line-height: 1.65;
  }
  .report-summary strong {
    font-size: 26px;
    margin-top: 4px;
  }
  .report-summary .summary-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
  .report-summary .summary-icon svg {
    width: 18px;
  }
  .report-workspace {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .report-inbox-header {
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 11px;
  }
  .report-inbox-header h2 {
    grid-column: 1/-1;
    margin-bottom: 3px;
    font-size: 15px;
  }
  .report-inbox-header .search-field {
    margin: 0;
  }
  .report-inbox-header .select-field select {
    min-height: 41px;
  }
  .report-list {
    display: flex;
    padding: 10px;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    flex: initial;
  }
  .report-list > button {
    width: 190px;
    min-width: 190px;
    flex-shrink: 0;
    padding: 12px 10px;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 6px;
    border: 1px solid #f0f3f7;
    border-radius: 11px;
  }
  .report-list > button > .badge {
    margin-left: 43px;
    margin-top: -4px;
  }
  .report-list > button.selected {
    border-color: #dceafa;
  }
  .report-list > button > i {
    display: none;
  }
  .report-detail {
    min-height: 0;
  }
  .report-detail-toolbar {
    padding: 16px 17px;
  }
  .report-detail-body {
    padding: 0 17px;
  }
  .parent-preview {
    margin: 19px auto;
    padding: 26px 23px;
    max-width: 460px;
  }
  .parent-preview h2 {
    font-size: 31px;
  }
  .parent-score strong {
    font-size: 66px;
  }
  .mini-trend {
    width: 94px;
    height: 92px;
    gap: 7px;
  }
  .parent-note h3 {
    font-size: 22px;
  }
  .parent-note p {
    font-size: 16px;
  }
  .report-action-bar {
    padding: 16px 18px;
    position: sticky;
    bottom: 0;
  }
  .report-editor {
    padding: 25px 2px;
  }
  .report-detail-toolbar .segmented > button {
    font-size: 13px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .report-summary > button.active {
    background: #f7fbff;
  }
  .delete-confirm {
    max-width: 135px;
  }
  .footer-buttons {
    gap: 6px;
  }
  .footer-buttons .button {
    min-width: 65px;
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 370px) {
  .main-container {
    padding-left: 13px;
    padding-right: 13px;
  }
  .metric {
    padding: 17px;
  }
  .metric-label > svg {
    display: none;
  }
  .page-heading p {
    max-width: 175px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .heading-actions .button {
    font-size: 12px;
    padding: 8px 10px;
    gap: 4px;
  }
  .heading-actions .button > svg {
    width: 15px;
  }
  .student-trend .panel-heading {
    gap: 9px;
    padding-left: 17px;
    padding-right: 17px;
  }
  .student-trend .segmented > button {
    padding-left: 7px;
    padding-right: 7px;
  }
  .panel-heading p {
    font-size: 12px;
  }
  .attendance-ring {
    margin-left: 18px;
    width: 139px;
    height: 139px;
  }
  .attendance-details {
    margin-right: 17px;
    padding: 17px 13px;
    margin-left: 5px;
  }
  .tabs {
    gap: 21px;
  }
  .tabs > button {
    gap: 6px;
  }
  .report-summary > button {
    padding: 13px 10px;
  }
  .parent-preview {
    padding: 23px 19px;
  }
  .parent-preview h2 {
    font-size: 29px;
  }
  .parent-score {
    padding: 18px;
  }
  .parent-score strong {
    font-size: 58px;
  }
  .mini-trend {
    width: 80px;
    gap: 6px;
  }
  .report-detail-body {
    padding-left: 11px;
    padding-right: 11px;
  }
  .report-detail-toolbar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .report-action-bar .button {
    font-size: 12px;
    padding: 9px 11px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .subject-picker button {
    padding-left: 13px;
    padding-right: 13px;
  }
  .drawer-body {
    padding-left: 22px;
    padding-right: 22px;
  }
  .check-label {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
@media print {
  body {
    background: white;
  }
  .sidebar,
  .topbar,
  .app-footer,
  .page-heading,
  .report-summary,
  .report-inbox,
  .report-detail-toolbar,
  .report-action-bar,
  .toast,
  .drawer-dialog {
    display: none !important;
  }
  .content-frame {
    margin: 0;
  }
  .main-container {
    padding: 0;
  }
  .report-workspace {
    display: block;
  }
  .report-detail {
    border: 0;
    display: block;
  }
  .report-detail-body {
    padding: 0;
    background: white;
  }
  .parent-preview {
    border: 0;
    box-shadow: none;
    margin: 0 auto;
    max-width: 600px;
    padding: 20px;
  }
  .parent-preview * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .report-editor {
    display: none;
  }
  @page {
    size: A4;
    margin: 15mm;
  }
}

/* Everyday controls retain readable type at the compact desktop density. */
.select-field select,
.sort-button,
.students-table th,
.phone-cell,
.day-heading > span,
.lesson-card-title {
  font-size: 14px !important;
}
.time-label {
  font-size: 13px;
}
.lesson-card {
  gap: 5px;
}
.phone-cell {
  letter-spacing: 0;
}
.table-grade {
  font-size: 13px;
}
.nav-item {
  min-height: 44px;
}
.report-detail-toolbar .button {
  min-height: 39px;
}

.drawer-dialog[data-open="false"]::backdrop {
  background: #18283d00;
  backdrop-filter: blur(0);
  transition:
    background 0.2s,
    backdrop-filter 0.2s;
}
.students-table th,
.sort-button,
.parent-note p {
  color: #6b7684;
}
.parent-preview .mini-trend {
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .sidebar {
    visibility: hidden;
    transition:
      transform 0.32s var(--ease),
      visibility 0s 0.32s;
  }
  .sidebar.mobile-open {
    visibility: visible;
    transition-delay: 0s;
  }
}
