/* src/styles.css */
:root {
  color-scheme: light;
  --ink-strong: #172536;
  --ink: #344457;
  --ink-soft: #6f7c8b;
  --line: #dce2e7;
  --line-soft: #e9edf0;
  --page: #f4f5f3;
  --surface: #ffffff;
  --surface-warm: #faf8f3;
  --nav: #eaf0f4;
  --nav-active: #dce8f2;
  --brand: #3f72ad;
  --brand-dark: #234e7c;
  --brand-soft: #e8f1f8;
  --success: #38795e;
  --success-soft: #e7f2ec;
  --warning: #a66b27;
  --warning-soft: #f7eddd;
  --danger: #a24f4b;
  --danger-soft: #f8e9e7;
  font-family:
    "Microsoft YaHei UI",
    "PingFang SC",
    "Noto Sans CJK SC",
    system-ui,
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* {
  box-sizing: border-box;
}
html,
body {
  min-width: 1060px;
  min-height: 100%;
  margin: 0;
  background: var(--page);
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  color: inherit;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(63, 114, 173, 0.38);
  outline-offset: 2px;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.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;
}
.admin-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 236px;
  flex-direction: column;
  padding: 20px 15px 18px;
  background: var(--nav);
  border-right: 1px solid #d3dce3;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 60px;
  padding: 5px 7px 17px;
}
.brand-lockup img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border: 1px solid rgba(35, 78, 124, 0.14);
  border-radius: 10px;
  background: white;
}
.brand-lockup div,
.account-area div,
.sidebar-foot div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.brand-lockup strong {
  color: var(--ink-strong);
  font-size: 16px;
  letter-spacing: 0.03em;
}
.brand-lockup span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
}
.sidebar nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding-top: 13px;
  border-top: 1px solid rgba(74, 96, 117, 0.13);
}
.nav-item {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 44px;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #526375;
  text-align: left;
  cursor: pointer;
}
.nav-item::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -15px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
  content: "";
  opacity: 0;
}
.nav-item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink-strong);
}
.nav-item.is-active {
  background: var(--nav-active);
  color: var(--brand-dark);
  font-weight: 650;
}
.nav-item.is-active::before {
  opacity: 1;
}
.nav-item:disabled {
  cursor: default;
  opacity: 0.48;
}
.nav-item small {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 400;
}
.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 3px 0;
  padding: 14px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}
.sidebar-foot strong {
  color: var(--ink);
  font-size: 12px;
}
.sidebar-foot small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 10px;
}
.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #4d9475;
}
.workspace {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin-left: 236px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  height: 78px;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
}
.topbar > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.topbar h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 19px;
  font-weight: 680;
  letter-spacing: 0.01em;
}
.topbar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}
.account-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-area strong {
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 650;
}
.account-area small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 10px;
}
.account-role {
  margin-right: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11px;
}
.account-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #d9e3ec;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}
.page-wrap {
  flex: 1;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  padding: 27px 32px 48px;
}
.compliance-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 11px;
}
.compliance-footer a {
  color: inherit;
  text-decoration: none;
}
.compliance-footer a:hover,
.compliance-footer a:focus-visible {
  color: var(--brand-dark);
  text-decoration: underline;
}
.workspace-compliance {
  padding: 0 32px 22px;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.page-heading h2 {
  margin: 0 0 7px;
  color: var(--ink-strong);
  font-size: 25px;
  font-weight: 680;
  letter-spacing: -0.02em;
}
.page-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}
.quiet-action,
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.quiet-action .icon {
  width: 16px;
  height: 16px;
}
.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.primary-action {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: white;
}
.primary-action:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}
.primary-action:disabled {
  cursor: wait;
  opacity: 0.6;
}
.primary-action .icon {
  width: 17px;
  height: 17px;
}
.secondary-action {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}
.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.signal-strip > div {
  position: relative;
  min-height: 86px;
  padding: 20px 23px;
}
.signal-strip > div + div::before {
  position: absolute;
  top: 19px;
  bottom: 19px;
  left: 0;
  width: 1px;
  background: var(--line-soft);
  content: "";
}
.signal-strip span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}
.signal-strip strong {
  color: var(--ink-strong);
  font-family:
    "Segoe UI",
    system-ui,
    sans-serif;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
}
.signal-strip small {
  margin-left: 4px;
  color: var(--ink-soft);
  font-size: 11px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(430px, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.panel-header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
}
.panel-header h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 680;
}
.panel-header p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}
.count-badge {
  display: grid;
  min-width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 12px;
  font-weight: 700;
}
.attention-list {
  margin: 0;
  padding: 0 20px 15px;
  list-style: none;
}
.attention-list li {
  display: grid;
  min-height: 48px;
  grid-template-columns: 23px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
}
.attention-list button {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 11px;
  cursor: pointer;
}
.attention-mark {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 11px;
  font-weight: 700;
}
.clear-state {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 20px 18px;
  padding: 18px;
  border-radius: 8px;
  background: var(--success-soft);
}
.clear-state strong {
  color: #2f654f;
  font-size: 13px;
}
.clear-state p {
  margin: 4px 0 0;
  color: #5f756b;
  font-size: 11px;
}
.store-rows {
  padding: 0 20px 12px;
}
.store-row {
  display: flex;
  min-height: 61px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line-soft);
}
.store-row > div:first-child,
.hours {
  display: flex;
  flex-direction: column;
}
.store-row strong {
  color: var(--ink-strong);
  font-size: 12px;
}
.store-row span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
}
.hours {
  align-items: flex-end;
}
.hours span {
  margin: 1px 0;
  color: var(--ink);
  font-family:
    "Segoe UI",
    system-ui,
    sans-serif;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.teacher-coverage {
  overflow: hidden;
}
.coverage-table {
  width: 100%;
}
.coverage-head,
.coverage-row {
  display: grid;
  grid-template-columns: 150px minmax(180px, 1fr) 1.7fr 100px;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}
.coverage-head {
  height: 34px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: #f8f9f9;
  color: var(--ink-soft);
  font-size: 10px;
}
.coverage-row {
  width: 100%;
  min-height: 55px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: white;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}
.coverage-row:last-child {
  border-bottom: 0;
}
.coverage-row:hover {
  background: #fbfcfc;
}
.coverage-row strong {
  color: var(--ink-strong);
  font-size: 12px;
}
.coverage-row em {
  display: inline-block;
  margin: 2px 5px 2px 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f0f3f5;
  color: #536476;
  font-style: normal;
  font-size: 10px;
}
.teacher-panel {
  overflow: hidden;
}
.student-summary-line {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 26px;
  margin-bottom: 13px;
  padding: 0 15px;
  border-left: 3px solid #93adc4;
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink-soft);
  font-size: 11px;
}
.student-summary-line span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.student-summary-line b {
  color: var(--ink-strong);
  font-family:
    "Segoe UI",
    system-ui,
    sans-serif;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.student-summary-line .has-warning,
.student-summary-line .has-warning b {
  color: var(--warning);
}
.student-panel {
  overflow: hidden;
}
.student-toolbar .search-field {
  width: 280px;
}
.student-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line-soft);
}
.student-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  table-layout: fixed;
}
.student-table th {
  height: 38px;
  padding: 0 12px;
  background: #f8f9f9;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 500;
  text-align: left;
}
.student-table th:first-child,
.student-table td:first-child {
  width: 165px;
  padding-left: 20px;
}
.student-table th:nth-child(2) {
  width: 170px;
}
.student-table th:nth-child(3) {
  width: 190px;
}
.student-table th:nth-child(4) {
  width: 145px;
}
.student-table th:nth-child(5) {
  width: 95px;
}
.student-table th:nth-child(6) {
  width: 80px;
}
.student-table th:nth-child(7) {
  width: 145px;
}
.student-table th:nth-child(8) {
  width: 76px;
}
.student-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 11px;
  vertical-align: top;
}
.student-table tbody tr:hover {
  background: #fbfcfc;
}
.student-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.student-identity > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.student-identity strong {
  color: var(--ink-strong);
  font-size: 12px;
}
.student-identity small {
  color: var(--ink-soft);
  font-family:
    "Segoe UI",
    system-ui,
    sans-serif;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.enrollment-lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.enrollment-lines > span {
  display: flex;
  min-height: 27px;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
}
.enrollment-lines b {
  color: var(--ink-strong);
  font-size: 10px;
  font-weight: 650;
}
.enrollment-lines small {
  display: block;
  width: 100%;
  color: var(--ink-soft);
  font-size: 9px;
}
.enrollment-lines .ended {
  padding: 1px 5px;
  border-radius: 999px;
  background: #eef0f1;
  color: #7d878f;
  font-style: normal;
  font-size: 8px;
}
.risk-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.risk-chip {
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 9px;
  white-space: nowrap;
}
.risk-pending {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.risk-expiring,
.risk-low {
  background: var(--warning-soft);
  color: var(--warning);
}
.risk-expired {
  background: #eef0f1;
  color: #727d86;
}
.risk-clear {
  color: var(--success);
  font-size: 10px;
}
.teacher-toolbar {
  display: flex;
  min-height: 67px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
}
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
}
.filter-tabs button {
  min-height: 31px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  cursor: pointer;
}
.filter-tabs button:hover,
.filter-tabs button.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.filter-tabs button.is-active {
  font-weight: 650;
}
.search-field {
  display: flex;
  width: 245px;
  height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  color: var(--ink-soft);
}
.search-field .icon {
  width: 16px;
  height: 16px;
}
.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}
.teacher-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line-soft);
}
.teacher-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  table-layout: fixed;
}
.teacher-table th {
  height: 38px;
  padding: 0 12px;
  background: #f8f9f9;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 500;
  text-align: left;
}
.teacher-table th:first-child,
.teacher-table td:first-child {
  width: 185px;
  padding-left: 20px;
}
.teacher-table th:nth-child(2) {
  width: 180px;
}
.teacher-table th:nth-child(3) {
  width: 245px;
}
.teacher-table th:nth-child(4) {
  width: 170px;
}
.teacher-table th:nth-child(5),
.teacher-table th:nth-child(6) {
  width: 95px;
}
.teacher-table th:last-child {
  width: 55px;
}
.teacher-table td {
  min-height: 67px;
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 11px;
  vertical-align: middle;
}
.teacher-table tbody tr:hover {
  background: #fbfcfc;
}
.teacher-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.teacher-identity > span:last-child,
.stacked-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.teacher-identity strong {
  color: var(--ink-strong);
  font-size: 12px;
}
.teacher-identity small,
.stacked-text span {
  color: var(--ink-soft);
  font-size: 10px;
}
.stacked-text b {
  color: var(--brand-dark);
  font-weight: 650;
}
.teacher-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #e1e9ef;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}
.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.course-tags span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f0f3f5;
  color: #516274;
  font-size: 10px;
  white-space: nowrap;
}
.status-text,
.binding-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 10px;
  white-space: nowrap;
}
.status-text i,
.binding-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aeb7bf;
}
.status-active,
.binding-state.is-bound {
  color: var(--success);
}
.status-active i,
.binding-state.is-bound i {
  background: #4d9475;
}
.status-on_leave {
  color: var(--warning);
}
.status-on_leave i {
  background: #c28a43;
}
.status-inactive {
  color: var(--danger);
}
.status-inactive i {
  background: #b7655e;
}
.muted {
  color: #a1a9b1;
  font-size: 10px;
}
.icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.icon-button:hover {
  border-color: var(--line);
  background: white;
  color: var(--brand-dark);
}
.icon-button .icon {
  width: 17px;
  height: 17px;
}
.table-foot {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: var(--ink-soft);
  font-size: 10px;
}
.empty-state {
  display: grid;
  min-height: 210px;
  place-items: center;
  align-content: center;
  color: var(--ink-soft);
}
.empty-state span {
  color: #b8c0c7;
  font-family:
    "Segoe UI",
    system-ui,
    sans-serif;
  font-size: 30px;
}
.empty-state p {
  margin: 7px 0 0;
  font-size: 12px;
}
.error-banner {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 0 13px;
  border: 1px solid #ecd1ce;
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12px;
}
.error-banner .icon {
  width: 18px;
  height: 18px;
}
.drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  background: rgba(19, 31, 44, 0.36);
}
.drawer {
  display: grid;
  width: min(720px, 67vw);
  height: 100vh;
  grid-template-rows: auto 1fr auto;
  border-left: 1px solid #cfd8df;
  background: var(--surface);
}
.drawer-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  border-bottom: 1px solid var(--line);
}
.drawer-header p {
  margin: 0 0 3px;
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 650;
}
.drawer-header h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 20px;
  font-weight: 680;
}
.teacher-form {
  overflow-y: auto;
  padding: 4px 25px 32px;
  background: #fbfbfa;
}
.student-drawer {
  width: min(780px, 72vw);
}
.student-form {
  padding-bottom: 40px;
}
.privacy-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 11px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: #506b84;
  font-size: 10px;
  line-height: 1.55;
}
.privacy-line .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--brand-dark);
}
.enrollment-editor-section {
  border-bottom: 0;
}
.enrollment-editor {
  margin: 0 0 14px;
  padding: 17px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.enrollment-editor legend {
  display: flex;
  width: calc(100% + 32px);
  min-height: 39px;
  align-items: center;
  justify-content: space-between;
  margin: -17px -16px 16px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  background: #f4f6f7;
}
.enrollment-editor legend span {
  color: var(--ink-strong);
  font-size: 11px;
  font-weight: 680;
}
.enrollment-editor legend button {
  padding: 5px;
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 9px;
  cursor: pointer;
}
.course-rule {
  display: flex;
  min-height: 37px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 0 11px;
  border-radius: 7px;
  background: #f2f5f6;
}
.course-rule strong {
  color: var(--ink);
  font-size: 10px;
}
.course-rule span {
  color: var(--ink-soft);
  font-size: 9px;
}
.enrollment-subsection {
  margin-top: 15px;
}
.enrollment-subsection > span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.enrollment-subsection > span b {
  color: var(--danger);
}
.store-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.store-choice label {
  cursor: pointer;
}
.store-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.store-choice span {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink-soft);
  font-size: 10px;
}
.store-choice input:checked + span {
  border-color: #86a9c8;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.private-course-fields {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line-soft);
}
.unlimited-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding: 11px 12px;
  border-radius: 7px;
  background: var(--success-soft);
}
.unlimited-note > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.unlimited-note strong {
  color: #346650;
  font-size: 10px;
}
.unlimited-note small {
  color: #63796e;
  font-size: 9px;
}
.add-enrollment {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px dashed #9fb3c4;
  border-radius: 7px;
  background: transparent;
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.add-enrollment .icon {
  width: 15px;
  height: 15px;
}
.form-section {
  padding: 22px 0 23px;
  border-bottom: 1px solid var(--line);
}
.form-section:last-child {
  border-bottom: 0;
}
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}
.section-title span {
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 680;
}
.section-title small,
.section-help {
  color: var(--ink-soft);
  font-size: 10px;
}
.section-help {
  margin: -9px 0 15px;
  line-height: 1.7;
}
.form-grid {
  display: grid;
  gap: 15px 18px;
}
.two-columns {
  grid-template-columns: 1fr 1fr;
}
.form-grid label,
.full-field,
.role-select {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}
.form-grid label > span,
.full-field > span,
.role-select > span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.form-grid label > span b {
  color: var(--danger);
}
.form-grid label > small,
.full-field > small {
  color: var(--ink-soft);
  font-size: 9px;
}
.full-field {
  position: relative;
  margin-top: 15px;
}
.full-field textarea + small {
  position: absolute;
  right: 10px;
  bottom: 8px;
}
.form-grid input,
.form-grid select,
.full-field input,
.full-field textarea,
.role-select select {
  width: 100%;
  border: 1px solid #d6dde3;
  border-radius: 7px;
  background: white;
  color: var(--ink-strong);
  font-size: 11px;
}
.form-grid input,
.form-grid select,
.full-field input,
.role-select select {
  height: 37px;
  padding: 0 10px;
}
.full-field textarea {
  min-height: 78px;
  padding: 9px 10px 22px;
  line-height: 1.65;
  resize: vertical;
}
.form-grid input:focus,
.form-grid select:focus,
.full-field input:focus,
.full-field textarea:focus,
.role-select select:focus {
  border-color: #7fa4c9;
  outline: 0;
}
.input-suffix {
  position: relative;
}
.input-suffix input {
  padding-right: 32px;
}
.input-suffix em {
  position: absolute;
  top: 10px;
  right: 11px;
  color: var(--ink-soft);
  font-style: normal;
  font-size: 10px;
}
.store-assignment {
  margin: 0 0 13px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.store-assignment legend {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #f4f6f7;
}
.store-assignment legend strong {
  color: var(--ink-strong);
  font-size: 11px;
}
.store-assignment legend span {
  color: var(--ink-soft);
  font-size: 9px;
}
.assignment-list {
  padding: 0 14px 8px;
}
.assignment-row {
  display: flex;
  min-height: 51px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.assignment-row:last-child {
  border-bottom: 0;
}
.assignment-row.is-selected {
  color: var(--brand-dark);
}
.check-line {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.check-line input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.fake-check {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid #b8c3cc;
  border-radius: 4px;
  background: white;
}
.check-line input:checked + .fake-check {
  border-color: var(--brand);
  background: var(--brand);
}
.check-line input:checked + .fake-check::after {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 1.5px 1.5px 0;
  content: "";
  transform: rotate(45deg);
}
.check-line > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.check-line strong {
  color: var(--ink-strong);
  font-size: 11px;
}
.check-line small {
  color: var(--ink-soft);
  font-size: 9px;
}
.role-select {
  width: 110px;
  flex: 0 0 auto;
  gap: 3px;
}
.role-select > span {
  font-size: 8px;
  font-weight: 500;
}
.role-select select {
  height: 30px;
  font-size: 10px;
}
.compact-section {
  padding-bottom: 8px;
}
.future-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.future-fields div {
  display: flex;
  min-height: 57px;
  flex-direction: column;
  justify-content: center;
  padding: 0 13px;
  border-radius: 7px;
  background: #f1f4f5;
}
.future-fields strong {
  color: var(--ink);
  font-size: 10px;
}
.future-fields span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
}
.drawer-footer {
  display: flex;
  min-height: 67px;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 0 25px;
  border-top: 1px solid var(--line);
  background: white;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: 360px;
  padding: 11px 15px;
  border: 1px solid #cfd9e1;
  border-radius: 8px;
  background: #21374d;
  color: white;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 150ms ease, transform 150ms ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.boot-screen,
.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: var(--page);
}
.login-page {
  grid-template-rows: 1fr auto;
  padding: 36px 24px 20px;
}
.login-compliance {
  align-self: end;
}
.boot-screen img {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  object-fit: cover;
}
.boot-screen {
  align-content: center;
}
.boot-screen p {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}
.boot-pulse {
  width: 54px;
  height: 2px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}
.boot-pulse::after {
  display: block;
  width: 22px;
  height: 100%;
  background: var(--brand);
  content: "";
  animation: loading 1s ease-in-out infinite alternate;
}
@keyframes loading {
  to {
    transform: translateX(32px);
  }
}
.login-panel {
  display: grid;
  width: 610px;
  grid-template-columns: 108px 1fr;
  gap: 28px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.login-logo {
  width: 108px;
  height: 108px;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: cover;
}
.admin-login-code {
  display: grid;
  grid-column: 2;
  width: fit-content;
  min-width: 270px;
  gap: 7px;
  padding: 17px 20px;
  border: 1px solid #cdd8e1;
  border-radius: 9px;
  background: #f7f9fa;
}
.admin-login-code strong {
  color: var(--ink);
  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;
  font-size: 26px;
  letter-spacing: 0.16em;
}
.admin-login-code small,
.login-error {
  color: var(--ink-soft);
  font-size: 11px;
}
.login-error {
  grid-column: 2;
  margin: 0;
  color: #a13d3d;
}
.eyebrow {
  margin: 3px 0 9px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 650;
}
.login-panel h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 25px;
}
.login-copy {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}
.security-note {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11px;
  line-height: 1.6;
}
.security-note .icon {
  flex: 0 0 auto;
}
.calendar-heading {
  margin-bottom: 14px;
}
.calendar-toolbar {
  display: grid;
  min-height: 70px;
  grid-template-columns: minmax(330px, 1fr) 180px auto;
  align-items: center;
  gap: 18px;
  padding: 10px 15px;
}
.calendar-period-control {
  display: flex;
  align-items: center;
  gap: 7px;
}
.calendar-period-control .icon-button:first-child .icon {
  transform: rotate(180deg);
}
.calendar-period-control > div {
  display: flex;
  min-width: 205px;
  flex-direction: column;
  gap: 3px;
  padding: 0 4px;
}
.calendar-period-control strong {
  color: var(--ink-strong);
  font-size: 12px;
}
.calendar-period-control span,
.calendar-store-select > span {
  color: var(--ink-soft);
  font-size: 9px;
}
.calendar-period-control .text-button {
  margin-left: 3px;
}
.calendar-store-select {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.calendar-store-select select {
  width: 100%;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink-strong);
  font-size: 10px;
}
.calendar-filter-tabs {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
}
.calendar-filter-tabs button {
  display: flex;
  min-height: 35px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 9px;
  cursor: pointer;
}
.calendar-filter-tabs button:hover,
.calendar-filter-tabs button.is-active {
  background: var(--nav);
  color: var(--brand-dark);
}
.calendar-filter-tabs b {
  min-width: 18px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  text-align: center;
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}
.calendar-days button {
  position: relative;
  display: flex;
  min-height: 58px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 0 13px;
  border: 0;
  border-right: 1px solid var(--line-soft);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.calendar-days button:last-child {
  border-right: 0;
}
.calendar-days button:hover {
  background: #f8fafb;
}
.calendar-days button.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.calendar-days span {
  font-size: 9px;
}
.calendar-days strong {
  color: var(--ink-strong);
  font-size: 12px;
}
.calendar-days small {
  position: absolute;
  top: 7px;
  right: 8px;
  color: var(--brand);
  font-size: 8px;
}
.calendar-days i {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
}
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(720px, 1fr) 274px;
  align-items: start;
  gap: 13px;
  transition: opacity 120ms ease;
}
.calendar-layout.is-loading {
  opacity: 0.55;
  pointer-events: none;
}
.calendar-main {
  min-width: 0;
  overflow: hidden;
}
.calendar-day-header {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border-bottom: 1px solid var(--line);
}
.calendar-day-header h3,
.calendar-side h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 13px;
}
.calendar-day-header p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
}
.calendar-day-header > span {
  color: var(--ink-soft);
  font-size: 9px;
}
.room-timeline {
  display: grid;
  grid-template-columns: 58px repeat(3, minmax(170px, 1fr));
  min-width: 640px;
  overflow-x: auto;
}
.room-timeline:has(.room-lane:nth-child(3):last-child) {
  grid-template-columns: 58px repeat(2, minmax(210px, 1fr));
}
.room-heading {
  display: flex;
  height: 45px;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 9px;
}
.room-heading strong {
  color: var(--ink-strong);
  font-size: 11px;
}
.room-heading span {
  color: var(--ink-soft);
  font-size: 8px;
}
.time-axis,
.room-lane {
  min-width: 0;
  border-right: 1px solid var(--line-soft);
}
.room-lane:last-child {
  border-right: 0;
}
.time-track,
.room-track {
  position: relative;
  height: var(--timeline-height);
  background: #fdfdfc;
}
.time-track span {
  position: absolute;
  right: 9px;
  color: #87929d;
  font-size: 8px;
  transform: translateY(-5px);
}
.hour-line {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: #edf0f2;
}
.timeline-booking {
  position: absolute;
  right: 5px;
  left: 5px;
  z-index: 2;
  display: flex;
  min-height: 38px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
  padding: 5px 7px;
  border: 1px solid #c8d9e7;
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  background: #eef5fa;
  color: #536d84;
  text-align: left;
  cursor: pointer;
}
.timeline-booking:hover {
  border-color: #8fb2cf;
  background: #e7f1f8;
}
.timeline-booking > span {
  font-size: 8px;
}
.timeline-booking strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline-booking small {
  max-width: 100%;
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline-booking.status-completed {
  border-color: #cddfd4;
  border-left-color: var(--success);
  background: #eff6f2;
  color: #648071;
}
.timeline-booking.status-student_cancelled,
.timeline-booking.status-teacher_cancelled {
  border-color: #dadddf;
  border-left-color: #9aa3aa;
  background: #f4f5f5;
  color: #8b949c;
  opacity: 0.8;
}
.timeline-booking.status-absence,
.timeline-booking.has-issue {
  border-color: #e2bdb9;
  border-left-color: var(--danger);
  background: #fbefed;
  color: var(--danger);
}
.calendar-side {
  display: grid;
  gap: 12px;
}
.calendar-side .panel {
  overflow: hidden;
}
.calendar-side header {
  display: flex;
  min-height: 51px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
}
.calendar-side header p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 8px;
}
.calendar-side header > span {
  color: var(--ink-soft);
  font-size: 9px;
}
.attention-count {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--danger-soft);
  color: var(--danger) !important;
  font-size: 11px !important;
  font-weight: 700;
}
.attention-list button,
.change-panel button {
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: auto 1fr 16px;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: white;
  text-align: left;
  cursor: pointer;
}
.attention-list button:hover,
.change-panel button:hover {
  background: #fafbfb;
}
.attention-list button > span:nth-child(2),
.change-panel button > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.attention-list strong,
.change-panel strong {
  color: var(--ink-strong);
  font-size: 9px;
}
.attention-list small,
.change-panel small {
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.45;
}
.attention-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 5px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 9px;
  font-weight: 700;
}
.attention-list .icon,
.change-panel .icon {
  width: 14px;
  height: 14px;
  color: #a0aab2;
}
.side-clear {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}
.side-clear > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.side-clear strong {
  color: var(--ink-strong);
  font-size: 9px;
}
.side-clear p,
.side-empty {
  margin: 0;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.5;
}
.side-empty {
  padding: 16px 14px;
}
.absence-row {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.absence-row:last-child {
  border-bottom: 0;
}
.absence-row .teacher-avatar {
  width: 30px;
  height: 30px;
}
.absence-row > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}
.absence-row strong {
  color: var(--ink-strong);
  font-size: 9px;
}
.absence-row small {
  color: var(--ink-soft);
  font-size: 8px;
}
.calendar-detail-drawer {
  width: min(520px, 54vw);
}
.calendar-detail-body {
  overflow-y: auto;
  padding: 23px 25px 34px;
  background: #fbfbfa;
}
.booking-status-line {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.booking-status-line > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.booking-status-line strong {
  color: var(--ink-strong);
  font-size: 14px;
}
.booking-status-line p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
}
.booking-status-line.status-confirmed .status-dot {
  background: var(--brand);
}
.booking-status-line.status-completed .status-dot {
  background: var(--success);
}
.booking-status-line.status-student_cancelled .status-dot,
.booking-status-line.status-teacher_cancelled .status-dot {
  background: #9ba5ad;
}
.detail-alerts {
  margin-top: 17px;
  padding: 13px;
  border: 1px solid #eccfcb;
  border-radius: 8px;
  background: #fcf3f1;
}
.detail-alerts h3 {
  margin: 0 0 10px;
  color: var(--danger);
  font-size: 11px;
}
.detail-alerts > div {
  display: flex;
  gap: 9px;
  padding: 7px 0;
}
.detail-alerts > div > span {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 9px;
  font-weight: 700;
}
.detail-alerts p {
  display: flex;
  margin: 0;
  flex-direction: column;
  gap: 3px;
}
.detail-alerts strong {
  color: var(--ink-strong);
  font-size: 10px;
}
.detail-alerts small {
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.55;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.detail-grid div {
  display: flex;
  min-height: 66px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 13px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.detail-grid div:nth-child(2n) {
  border-right: 0;
}
.detail-grid div:nth-last-child(-n+2) {
  border-bottom: 0;
}
.detail-grid span,
.detail-note span {
  color: var(--ink-soft);
  font-size: 9px;
}
.detail-grid strong,
.detail-note strong {
  color: var(--ink-strong);
  font-size: 11px;
}
.detail-note {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 13px;
  margin-top: 12px;
  padding: 0 13px;
  border-radius: 7px;
  background: #f1f4f5;
}
.detail-note small {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 8px;
}
.manager-booking-drawer {
  width: min(680px, 65vw);
}
.booking-rule-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}
.booking-rule-line > div {
  display: flex;
  min-height: 57px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 11px;
  background: white;
}
.booking-rule-line span {
  color: var(--ink-soft);
  font-size: 8px;
}
.booking-rule-line strong {
  color: var(--ink-strong);
  font-size: 10px;
}
.booking-date-field {
  display: flex;
  width: 210px;
  flex-direction: column;
  gap: 6px;
}
.booking-date-field span {
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
}
.booking-date-field input {
  height: 37px;
  padding: 0 10px;
  border: 1px solid #d6dde3;
  border-radius: 7px;
  background: white;
  color: var(--ink-strong);
  font-size: 10px;
}
.booking-slot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-top: 14px;
}
.booking-slot-grid button {
  display: flex;
  min-height: 48px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  cursor: pointer;
}
.booking-slot-grid button:hover {
  border-color: #8caecb;
}
.booking-slot-grid button.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.booking-slot-grid strong {
  color: var(--ink-strong);
  font-size: 11px;
}
.booking-slot-grid span {
  color: var(--ink-soft);
  font-size: 8px;
}
.slot-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 19px 12px;
  border-radius: 7px;
  background: #f1f4f5;
  color: var(--ink-soft);
  font-size: 10px;
}
.booking-submit-note {
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.65;
}
.homework-heading {
  align-items: flex-end;
}
.homework-heading-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 2px;
  text-align: right;
}
.homework-heading-note .status-dot {
  flex: 0 0 auto;
  background: var(--success);
}
.homework-heading-note div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.homework-heading-note strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}
.homework-heading-note small {
  color: var(--ink-soft);
  font-size: 9px;
}
.homework-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.homework-summary > div {
  display: flex;
  min-height: 70px;
  align-items: baseline;
  gap: 5px;
  padding: 16px 20px;
  border-right: 1px solid var(--line-soft);
}
.homework-summary > div:last-child {
  border-right: 0;
}
.homework-summary span {
  align-self: center;
  margin-right: auto;
  color: var(--ink-soft);
  font-size: 11px;
}
.homework-summary strong {
  color: var(--ink-strong);
  font-size: 24px;
  font-weight: 680;
}
.homework-summary small {
  color: var(--ink-soft);
  font-size: 9px;
}
.homework-summary .has-warning strong {
  color: var(--warning);
}
.homework-alert {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 0 13px;
  border: 1px solid #ead9be;
  border-radius: 8px;
  background: #fcf8f0;
  color: #7f5c30;
  font-size: 11px;
}
.homework-alert .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
.homework-alert button {
  margin-left: auto;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #81551d;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}
.homework-panel.is-loading {
  opacity: 0.64;
  pointer-events: none;
}
.homework-toolbar {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
}
.homework-toolbar .filter-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.homework-toolbar .filter-tabs b {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 5px;
  border-radius: 10px;
  background: #e8ecef;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 650;
}
.homework-toolbar .filter-tabs button.is-active b {
  background: white;
  color: var(--brand-dark);
}
.homework-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.compact-select {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}
.compact-select span {
  color: var(--ink-soft);
  font-size: 9px;
}
.compact-select select {
  min-width: 108px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
}
.homework-list {
  border-top: 1px solid var(--line-soft);
}
.homework-list-head,
.homework-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.15fr) minmax(220px, 1.9fr) 0.72fr 0.82fr 0.62fr 30px;
  align-items: center;
  gap: 16px;
}
.homework-list-head {
  min-height: 39px;
  padding: 0 17px;
  background: #f7f8f8;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
}
.homework-row {
  width: 100%;
  min-height: 76px;
  padding: 0 17px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: white;
  text-align: left;
  cursor: pointer;
}
.homework-row:first-of-type {
  border-top: 0;
}
.homework-row:hover {
  background: #fafbfb;
}
.homework-row > span:not(.homework-status):not(.homework-row-arrow) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}
.homework-row strong {
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.homework-row small {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.homework-task strong {
  font-weight: 560;
}
.homework-time.is-overdue strong {
  color: var(--warning);
}
.homework-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
}
.homework-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a9b2ba;
}
.homework-status.status-submitted {
  color: var(--warning);
}
.homework-status.status-submitted i {
  background: var(--warning);
}
.homework-status.status-passed {
  color: var(--success);
}
.homework-status.status-passed i {
  background: var(--success);
}
.homework-status.status-redo,
.homework-status.status-rejected {
  color: var(--danger);
}
.homework-status.status-redo i,
.homework-status.status-rejected i {
  background: var(--danger);
}
.homework-row-arrow {
  color: #a2acb4;
}
.homework-row-arrow .icon {
  width: 16px;
  height: 16px;
}
.homework-drawer {
  width: min(850px, 76vw);
}
.homework-review-body {
  overflow-y: auto;
  padding: 19px 25px 36px;
  background: #f7f8f7;
}
.homework-review-status {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.homework-review-status .status-dot {
  flex: 0 0 auto;
  background: #a9b2ba;
}
.homework-review-status.status-submitted .status-dot {
  background: var(--warning);
}
.homework-review-status.status-passed .status-dot {
  background: var(--success);
}
.homework-review-status.status-redo .status-dot,
.homework-review-status.status-rejected .status-dot {
  background: var(--danger);
}
.homework-review-status div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.homework-review-status strong {
  color: var(--ink-strong);
  font-size: 12px;
}
.homework-review-status p,
.homework-review-status > span {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
}
.homework-review-status > span {
  margin-left: auto;
}
.review-section {
  margin-bottom: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.review-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
}
.review-section h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 680;
}
.review-section header > span,
.review-section header > div p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
}
.homework-brief > p {
  margin: 0 0 15px;
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.7;
}
.homework-brief dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  margin: 0;
}
.homework-brief dl > div {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 6px;
  background: #f2f4f4;
}
.homework-brief dt {
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 8px;
}
.homework-brief dd {
  margin: 0;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.6;
}
.homework-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.homework-video-card {
  overflow: hidden;
  border: 1px solid #d5dce1;
  border-radius: 8px;
  background: #f6f7f7;
}
.homework-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #17212b;
}
.homework-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.demo-video {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #dfe7ed;
  text-align: center;
}
.demo-video > span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 9px;
  place-items: center;
  border: 1px solid #647585;
  border-radius: 50%;
}
.demo-video .icon {
  width: 19px;
  height: 19px;
}
.demo-video strong {
  font-size: 10px;
}
.demo-video small {
  margin-top: 4px;
  color: #94a2ae;
  font-size: 8px;
}
.homework-video-card footer {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
}
.homework-video-card footer span {
  color: var(--ink-strong);
  font-size: 10px;
  font-weight: 650;
}
.homework-video-card footer small {
  color: var(--ink-soft);
  font-size: 9px;
}
.homework-video-loading,
.homework-video-unavailable {
  display: grid;
  min-height: 142px;
  place-items: center;
  align-content: center;
  border: 1px dashed #cfd7dc;
  border-radius: 7px;
  color: var(--ink-soft);
  text-align: center;
}
.homework-video-loading .boot-pulse {
  margin-bottom: 9px;
}
.homework-video-loading p,
.homework-video-unavailable p {
  margin: 6px 0 0;
  font-size: 9px;
}
.homework-video-unavailable strong {
  color: var(--ink);
  font-size: 11px;
}
.homework-decision label {
  position: relative;
  display: block;
}
.homework-decision textarea {
  display: block;
  width: 100%;
  min-height: 108px;
  resize: vertical;
  padding: 11px 12px 27px;
  border: 1px solid #cfd7dd;
  border-radius: 7px;
  background: #fbfcfc;
  color: var(--ink-strong);
  font-size: 11px;
  line-height: 1.7;
}
.homework-decision label small {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: var(--ink-soft);
  font-size: 8px;
}
.homework-result blockquote {
  margin: 0;
  padding: 12px 13px;
  border-left: 3px solid #91a7ba;
  background: #f3f5f6;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.7;
}
.homework-result > p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
}
.homework-download > header > div h3 {
  margin-bottom: 4px;
}
.consent-state {
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--danger-soft);
  color: var(--danger) !important;
  font-weight: 650;
}
.consent-state.is-granted {
  background: var(--success-soft);
  color: var(--success) !important;
}
.download-video-list {
  border-top: 1px solid var(--line-soft);
}
.download-video-list > div {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.download-video-list > div > span {
  display: flex;
  margin-right: auto;
  flex-direction: column;
  gap: 3px;
}
.download-video-list strong {
  color: var(--ink-strong);
  font-size: 10px;
}
.download-video-list small {
  color: var(--ink-soft);
  font-size: 8px;
}
.download-video-list button {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--brand-dark);
  font-size: 9px;
  cursor: pointer;
}
.download-video-list button:disabled {
  color: #9ea7af;
  cursor: not-allowed;
}
.download-video-list .icon {
  width: 14px;
  height: 14px;
}
.download-policy {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.6;
}
.homework-review-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  color: var(--ink-soft);
  font-size: 9px;
}
.homework-review-footer > span .icon,
.homework-review-footer button .icon {
  width: 15px;
  height: 15px;
}
.homework-review-footer .redo-action {
  border-color: #e5c7c4;
  color: var(--danger);
}
.store-settings-heading,
.audit-heading {
  align-items: center;
}
.store-save-area {
  display: flex;
  align-items: center;
  gap: 13px;
}
.saved-mark,
.unsaved-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 11px;
}
.saved-mark::before,
.unsaved-mark::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7894aa;
  content: "";
}
.unsaved-mark {
  color: var(--warning);
}
.unsaved-mark::before {
  background: #d28a35;
}
.store-settings-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 17px;
}
.store-switcher {
  overflow: hidden;
}
.store-switcher > header,
.settings-section-header {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line-soft);
}
.store-switcher > header h3,
.settings-section-header h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 680;
}
.store-switcher > header span,
.settings-section-header > span {
  color: var(--ink-soft);
  font-size: 10px;
}
.store-switcher > button {
  display: grid;
  width: 100%;
  min-height: 70px;
  grid-template-columns: 30px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: white;
  text-align: left;
  cursor: pointer;
}
.store-switcher > button:hover {
  background: #f8fafb;
}
.store-switcher > button.is-active {
  background: #edf3f7;
}
.store-switcher > button > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.store-switcher strong {
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-switcher small {
  color: var(--ink-soft);
  font-size: 9px;
}
.store-switcher > button > .icon {
  width: 14px;
  height: 14px;
  color: #8b99a6;
}
.store-switch-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: #dfeaf2;
  color: var(--brand-dark);
}
.store-switch-icon .icon {
  width: 16px;
  height: 16px;
}
.store-rule-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 13px;
  padding: 11px;
  border-radius: 7px;
  background: #f5f6f4;
  color: var(--ink-soft);
}
.store-rule-note .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #607d95;
}
.store-rule-note p {
  margin: 0;
  font-size: 9px;
  line-height: 1.65;
}
.store-settings-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 15px;
}
.settings-section-header p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}
.store-profile-fields {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 14px;
  padding: 17px;
}
.store-profile-fields label,
.business-hour-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.store-profile-fields label > span,
.business-hour-row label > span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
}
.store-profile-fields input,
.business-hour-row input,
.classroom-setting-row input,
.classroom-setting-row select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfc;
  color: var(--ink);
  font-size: 11px;
}
.store-profile-fields input,
.classroom-setting-row input {
  padding: 0 10px;
}
.store-profile-fields input:focus,
.business-hour-row input:focus,
.classroom-setting-row input:focus,
.classroom-setting-row select:focus {
  border-color: #88a8c3;
  background: white;
}
.store-profile-fields .full-field {
  grid-column: 1 / -1;
}
.business-hours-list {
  padding: 5px 17px 11px;
}
.business-hour-row {
  display: grid;
  min-height: 55px;
  grid-template-columns: 48px 62px minmax(105px, 1fr) 18px minmax(105px, 1fr);
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line-soft);
}
.business-hour-row:last-child {
  border-bottom: 0;
}
.business-hour-row > strong {
  color: var(--ink-strong);
  font-size: 11px;
}
.business-hour-row input {
  padding: 0 7px;
  font-variant-numeric: tabular-nums;
}
.business-hour-row input:disabled {
  color: #a6afb7;
  background: #f3f4f4;
}
.business-hour-row.is-closed > strong,
.business-hour-row.is-closed .hour-separator {
  color: #9aa4ad;
}
.hour-separator {
  align-self: end;
  padding-bottom: 10px;
  color: var(--ink-soft);
  font-size: 9px;
  text-align: center;
}
.hour-status-toggle,
.room-status-toggle {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid #d9dee1;
  border-radius: 999px;
  background: #f4f5f5;
  color: #7d8993;
  font-size: 9px;
  cursor: pointer;
}
.hour-status-toggle i,
.room-status-toggle i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aeb5bb;
}
.hour-status-toggle.is-active,
.room-status-toggle.is-active {
  border-color: #c4dcd0;
  background: #edf5f0;
  color: var(--success);
}
.hour-status-toggle.is-active i,
.room-status-toggle.is-active i {
  background: var(--success);
}
.settings-section-header .text-button {
  font-size: 10px;
}
.settings-section-header .text-button .icon {
  width: 15px;
  height: 15px;
}
.classroom-settings-head,
.classroom-setting-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 120px 72px minmax(155px, 1fr);
  align-items: center;
  gap: 13px;
  padding-right: 17px;
  padding-left: 17px;
}
.classroom-settings-head {
  min-height: 35px;
  background: #f7f8f8;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
}
.classroom-setting-row {
  min-height: 59px;
  border-top: 1px solid var(--line-soft);
}
.classroom-setting-row:first-child {
  border-top: 0;
}
.classroom-setting-row.is-inactive {
  background: #fafafa;
}
.classroom-setting-row.is-inactive input,
.classroom-setting-row.is-inactive select,
.classroom-setting-row.is-inactive .room-rule {
  color: #8f9aa3;
}
.classroom-setting-row select {
  padding: 0 8px;
}
.room-rule {
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.45;
}
.classroom-summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 17px;
  border-top: 1px solid var(--line-soft);
  background: #fafbfa;
}
.classroom-summary span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  font-size: 9px;
}
.classroom-summary .icon {
  width: 14px;
  height: 14px;
}
.classroom-summary small {
  color: var(--ink-soft);
  font-size: 9px;
}
.audit-integrity {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid #cddbe5;
  border-radius: 8px;
  background: #f3f7fa;
  color: var(--brand-dark);
}
.audit-integrity .icon {
  width: 18px;
  height: 18px;
}
.audit-integrity span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.audit-integrity strong {
  font-size: 10px;
}
.audit-integrity small {
  color: var(--ink-soft);
  font-size: 8px;
}
.audit-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.audit-summary > div {
  position: relative;
  min-height: 72px;
  padding: 15px 19px;
}
.audit-summary > div + div::before {
  position: absolute;
  inset: 14px auto 14px 0;
  width: 1px;
  background: var(--line-soft);
  content: "";
}
.audit-summary span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 9px;
}
.audit-summary strong {
  color: var(--ink-strong);
  font-family:
    "Segoe UI",
    system-ui,
    sans-serif;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}
.audit-summary small {
  margin-left: 3px;
  color: var(--ink-soft);
  font-size: 9px;
}
.account-deletion-panel {
  margin-bottom: 18px;
  padding: 0;
}
.account-deletion-panel .panel-header {
  align-items: center;
  padding: 18px 22px;
}
.account-deletion-panel .panel-header > span {
  color: var(--ink-soft);
  font-size: 11px;
}
.account-deletion-list article {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 14px 22px;
}
.account-deletion-list article > div {
  display: flex;
  gap: 8px;
}
.account-deletion-list article > div:first-child {
  align-items: flex-start;
  flex-direction: column;
}
.account-deletion-list small {
  color: var(--ink-soft);
  font-size: 10px;
}
.danger-action {
  border: 1px solid #b66b63;
  border-radius: 6px;
  background: white;
  color: #93453f;
  cursor: pointer;
  font-size: 11px;
  padding: 7px 11px;
}
.audit-panel {
  overflow: hidden;
}
.audit-toolbar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 17px;
  border-bottom: 1px solid var(--line-soft);
}
.audit-toolbar .filter-tabs b {
  margin-left: 5px;
  color: #85929e;
  font-size: 9px;
  font-weight: 600;
}
.audit-toolbar .filter-tabs button.is-active b {
  color: var(--brand-dark);
}
.audit-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.audit-timeline {
  padding: 7px 17px 19px;
}
.audit-day > header {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
}
.audit-day > header strong {
  color: var(--ink-strong);
  font-size: 11px;
}
.audit-day > header span {
  font-size: 9px;
}
.audit-day > div {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
}
.audit-record {
  display: grid;
  min-height: 67px;
  grid-template-columns: 34px minmax(260px, 1fr) minmax(100px, 0.35fr) 85px;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  border-top: 1px solid var(--line-soft);
  background: white;
}
.audit-record:first-child {
  border-top: 0;
}
.audit-record-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: #eef2f4;
  color: #677d8e;
}
.audit-record.category-security .audit-record-icon {
  background: #edf3f8;
  color: var(--brand-dark);
}
.audit-record.category-change .audit-record-icon {
  background: #f5f0e7;
  color: #8c682d;
}
.audit-record-icon .icon {
  width: 16px;
  height: 16px;
}
.audit-record-main,
.audit-record-target,
.audit-record-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}
.audit-record-main > strong {
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 11px;
  font-weight: 630;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audit-record-main p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
}
.audit-record-main p i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #acb5bc;
}
.audit-record-target span,
.audit-record-meta small {
  color: var(--ink-soft);
  font-size: 9px;
}
.audit-record-target small {
  overflow: hidden;
  color: #8b969f;
  font-family:
    "Segoe UI",
    system-ui,
    sans-serif;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audit-record-meta {
  align-items: flex-end;
}
.audit-record-meta strong {
  color: var(--ink-strong);
  font-family:
    "Segoe UI",
    system-ui,
    sans-serif;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.heading-actions,
.drawer-footer > div,
.time-field-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.enrollment-maintenance-drawer,
.manual-absence-drawer,
.course-product-drawer {
  width: min(540px, 92vw);
}
.enrollment-maintenance-form,
.manual-absence-form,
.course-product-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}
.time-field-row > .field {
  flex: 1;
}
.enrollment-current {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--line-soft);
}
.enrollment-current > div {
  display: flex;
  min-height: 68px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  background: #fff;
}
.enrollment-current span {
  color: var(--ink-soft);
  font-size: 9px;
}
.enrollment-current strong {
  color: var(--ink-strong);
  font-size: 12px;
}
.form-security-note {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid #5f83a3;
  background: #f4f7f9;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.65;
}
.course-product-panel {
  margin-bottom: 16px;
}
.manager-account-panel {
  margin-top: 18px;
  overflow: hidden;
}
.manager-account-drawer {
  width: min(540px, 92vw);
}
.manager-account-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}
.manager-account-list {
  border-top: 1px solid var(--line-soft);
}
.manager-account-row {
  display: grid;
  min-height: 66px;
  grid-template-columns: 34px minmax(150px, 1.2fr) minmax(160px, 1fr) 60px 72px;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.manager-account-row:last-child {
  border-bottom: 0;
}
.manager-account-row > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.manager-account-row strong {
  color: var(--ink-strong);
  font-size: 10px;
}
.manager-account-row small,
.manager-account-row > span:not(.teacher-avatar) {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.manager-account-row em {
  color: var(--ink-soft);
  font-size: 9px;
  font-style: normal;
}
.manager-account-row em.is-active {
  color: var(--success);
}
.course-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.course-product-card {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.course-product-card:nth-child(3n) {
  border-right: 0;
}
.course-product-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}
.course-product-card span,
.course-product-card small {
  color: var(--ink-soft);
  font-size: 8px;
}
.course-product-card strong {
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.course-product-card.is-inactive {
  opacity: 0.56;
}
@media (max-width: 980px) {
  .course-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .course-product-card:nth-child(3n) {
    border-right: 1px solid var(--line-soft);
  }
  .course-product-card:nth-child(2n) {
    border-right: 0;
  }
}
.curriculum-heading .primary-action {
  align-self: flex-end;
}
.curriculum-status {
  display: grid;
  min-height: 84px;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(120px, 0.55fr));
  align-items: stretch;
  margin-bottom: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--surface);
}
.curriculum-status > label,
.curriculum-status > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px 18px;
  border-left: 1px solid var(--line-soft);
}
.curriculum-status > label:first-child {
  border-left: 0;
}
.curriculum-status span,
.curriculum-status small {
  color: var(--ink-soft);
  font-size: 9px;
}
.curriculum-status strong {
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 660;
}
.curriculum-status select {
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 620;
}
.curriculum-panel {
  overflow: hidden;
}
.curriculum-table__head,
.curriculum-row {
  display: grid;
  grid-template-columns: 54px minmax(280px, 1.5fr) minmax(145px, 0.75fr) minmax(120px, 0.65fr) 52px;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
}
.curriculum-table__head {
  height: 38px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: #f8fafb;
  color: var(--ink-soft);
  font-size: 9px;
}
.curriculum-row {
  min-height: 72px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}
.curriculum-row:last-child {
  border-bottom: 0;
}
.curriculum-row__number {
  color: #8595a4;
  font-family:
    "Segoe UI",
    system-ui,
    sans-serif;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.curriculum-row__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}
.curriculum-row__copy strong {
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 11px;
  font-weight: 640;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.curriculum-row__copy span,
.curriculum-video {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.curriculum-scope {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 9px;
}
.curriculum-scope.is-advanced {
  background: var(--warning-soft);
  color: var(--warning);
}
.curriculum-video.has-video {
  color: var(--success);
}
.curriculum-loading {
  padding: 48px 18px;
  color: var(--ink-soft);
  font-size: 10px;
  text-align: center;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  background: rgba(19, 31, 44, 0.36);
}
.curriculum-drawer {
  width: min(690px, 72vw);
}
.curriculum-drawer .drawer-footer {
  justify-content: space-between;
}
.curriculum-drawer .drawer-footer > div {
  display: flex;
  gap: 9px;
}
.drawer-body.curriculum-form {
  overflow-y: auto;
  padding: 24px 25px 36px;
  background: #fbfbfa;
}
.curriculum-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.curriculum-form .field {
  display: grid;
  align-content: start;
  gap: 7px;
}
.curriculum-form .field > span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
}
.curriculum-form input,
.curriculum-form select,
.curriculum-form textarea {
  width: 100%;
  border: 1px solid #cfd8df;
  border-radius: 7px;
  outline: none;
  background: white;
  color: var(--ink-strong);
  font: inherit;
  line-height: 1.55;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.curriculum-form input,
.curriculum-form select {
  min-height: 42px;
  padding: 0 12px;
}
.curriculum-form textarea {
  padding: 10px 12px;
}
.curriculum-form input:focus,
.curriculum-form select:focus,
.curriculum-form textarea:focus {
  border-color: #7ea3c6;
  box-shadow: 0 0 0 3px rgba(77, 128, 176, 0.12);
}
.curriculum-form .field:nth-child(n+3),
.curriculum-video-note {
  grid-column: 1 / -1;
}
.curriculum-form textarea {
  min-height: 92px;
  resize: vertical;
}
.curriculum-video-note {
  padding: 14px 16px;
  border-left: 3px solid var(--brand);
  background: #f5f8fa;
}
.curriculum-video-note strong {
  color: var(--ink-strong);
  font-size: 11px;
}
.curriculum-video-note p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.6;
}
.danger-text {
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-size: 10px;
}
.sheet-heading .primary-action {
  align-self: flex-end;
}
.sheet-summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 22px;
  margin-bottom: 12px;
  padding: 0 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 9px;
}
.sheet-summary span {
  white-space: nowrap;
}
.sheet-summary strong {
  margin-right: 4px;
  color: var(--ink-strong);
  font-size: 13px;
}
.sheet-summary small {
  margin-left: auto;
  color: #7d8992;
  font-size: 8px;
}
.sheet-panel {
  overflow: hidden;
}
.sheet-table-head,
.sheet-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.5fr) 105px minmax(170px, 0.9fr) 70px 70px 28px;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
}
.sheet-table-head {
  height: 38px;
  border-bottom: 1px solid var(--line-soft);
  background: #f8fafb;
  color: var(--ink-soft);
  font-size: 9px;
}
.sheet-row {
  width: 100%;
  min-height: 66px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  text-align: left;
}
.sheet-row:last-child {
  border-bottom: 0;
}
.sheet-row:hover {
  background: #fafcfd;
}
.sheet-row__title {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}
.sheet-row__title strong,
.sheet-row__title small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sheet-row__title strong {
  color: var(--ink-strong);
  font-size: 11px;
  font-weight: 650;
}
.sheet-row__title small {
  color: var(--ink-soft);
  font-size: 8px;
}
.sheet-status {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 5px;
  background: #eef1f3;
  color: #657581;
}
.sheet-status.is-published {
  background: #e9f4ee;
  color: #27724b;
}
.sheet-row__arrow {
  color: #8796a2;
}
.sheet-row__arrow .icon {
  width: 14px;
  height: 14px;
}
.sheet-empty {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 9px;
}
.sheet-empty strong {
  color: var(--ink-strong);
  font-size: 12px;
}
.sheet-drawer {
  width: min(760px, 78vw);
}
.drawer-body.sheet-form {
  overflow-y: auto;
  padding: 22px 24px 40px;
  background: #fbfbfa;
}
.sheet-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sheet-form-fields .field {
  display: grid;
  gap: 7px;
}
.sheet-form-fields .field > span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
}
.sheet-form-fields input,
.sheet-form-fields select,
.sheet-form-fields textarea {
  width: 100%;
  border: 1px solid #cfd8df;
  border-radius: 7px;
  outline: none;
  background: white;
  color: var(--ink-strong);
  font: inherit;
}
.sheet-form-fields input,
.sheet-form-fields select {
  min-height: 42px;
  padding: 0 12px;
}
.sheet-form-fields textarea {
  min-height: 78px;
  padding: 10px 12px;
  line-height: 1.55;
  resize: vertical;
}
.sheet-form-fields input:focus,
.sheet-form-fields select:focus,
.sheet-form-fields textarea:focus {
  border-color: #7ea3c6;
  box-shadow: 0 0 0 3px rgba(77, 128, 176, 0.12);
}
.sheet-description {
  grid-column: 1 / -1;
}
.sheet-pages-section {
  margin-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.sheet-pages-section > header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sheet-pages-section h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 12px;
}
.sheet-pages-section p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 8px;
}
.sheet-upload-button,
.sheet-page-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9c6d0;
  border-radius: 6px;
  background: white;
  color: var(--brand-dark);
  cursor: pointer;
  font-size: 9px;
}
.sheet-upload-button {
  min-width: 84px;
  height: 34px;
}
.sheet-upload-button.is-disabled {
  cursor: wait;
  opacity: 0.62;
}
.sheet-upload-button input,
.sheet-page-action input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.sheet-page-row {
  display: grid;
  min-height: 56px;
  grid-template-columns: 30px minmax(190px, 1fr) 52px 42px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
}
.sheet-page-number {
  color: #7e8e9a;
  font-family:
    "Segoe UI",
    system-ui,
    sans-serif;
  font-size: 10px;
  text-align: center;
}
.sheet-page-row > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sheet-page-row strong {
  color: var(--ink-strong);
  font-size: 10px;
}
.sheet-page-row small {
  color: var(--ink-soft);
  font-size: 8px;
}
.sheet-page-action {
  height: 27px;
}
.sheet-page-row > button {
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-size: 9px;
}
.sheet-page-row button:disabled {
  cursor: wait;
  opacity: 0.45;
}
.sheet-pages-empty,
.sheet-save-first {
  padding: 30px 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 9px;
  text-align: center;
}
.sheet-drawer-footer {
  justify-content: space-between;
}
.sheet-drawer-footer > div {
  display: flex;
  gap: 9px;
}
@media (max-width: 1180px) {
  .sidebar {
    width: 206px;
  }
  .workspace {
    margin-left: 206px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .drawer {
    width: 760px;
  }
  .calendar-toolbar {
    grid-template-columns: 1fr 170px;
  }
  .calendar-filter-tabs {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .calendar-side {
    grid-template-columns: repeat(3, 1fr);
  }
  .homework-list-head,
  .homework-row {
    grid-template-columns: minmax(140px, 1.05fr) minmax(190px, 1.6fr) 0.65fr 0.75fr 0.6fr 26px;
    gap: 11px;
  }
  .homework-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 13px;
    padding-bottom: 13px;
  }
  .store-settings-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .classroom-settings-head,
  .classroom-setting-row {
    grid-template-columns: minmax(105px, 1fr) 105px 65px minmax(125px, 1fr);
    gap: 9px;
  }
  .audit-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
