:root {
  --ink: #181d26;
  --body: #333840;
  --muted: #626772;
  --paper: #ffffff;
  --canvas: #f5f6f8;
  --line: #dddddd;
  --line-strong: #9297a0;
  --header: #f8fafc;
  --weekend: #f5e9d4;
  --accent: #0a5c4a;
  --accent-dark: #073c31;
  --primary: #181d26;
  --primary-active: #0d1218;
  --a: #d8eedf;
  --b: #ffe3aa;
  --c: #d9e8fb;
  --other: #eadff1;
  --danger: #aa2d00;
  --teacher-width: 124px;
  --day-width: 54px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei UI", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 10% 8%, rgba(168, 216, 196, .48), transparent 30%),
    radial-gradient(circle at 92% 15%, rgba(217, 232, 251, .62), transparent 28%),
    linear-gradient(145deg, #f8fafc 0%, #edf1f2 52%, #f7f3ec 100%);
  background-attachment: fixed;
}
button, input, select, textarea { font: inherit; }
button {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}
button:active:not(:disabled) { transform: translateY(1px) scale(.985); }
h1, h2, h3, p { margin-top: 0; }
.hidden { display: none !important; }
.primary-button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  padding: 8px 16px;
  color: white;
  background: var(--primary);
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(24, 29, 38, .16);
}
.primary-button:active { background: var(--primary-active); box-shadow: 0 2px 8px rgba(24, 29, 38, .14); }
.primary-button:disabled { opacity: .55; cursor: wait; }
.primary-button small { display: block; margin-top: 1px; font-size: 9px; font-weight: 500; opacity: .72; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(12px);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  outline: none;
}
input, select { height: 36px; padding: 0 10px; }
textarea { min-height: 84px; padding: 10px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: #458fff;
  box-shadow: 0 0 0 2px rgba(69, 143, 255, .18);
}
label span { display: block; margin-bottom: 4px; color: var(--body); font-size: 11px; font-weight: 600; }

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
  padding: 12px;
  background: var(--canvas);
}
.auth-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 120px);
  overflow: hidden;
  border-radius: 12px;
  background: #0a2e0e;
  color: white;
}
.auth-art h1 { max-width: 760px; margin-bottom: 20px; font-size: clamp(40px, 4.5vw, 70px); font-weight: 400; line-height: 1.1; }
.auth-art > p { max-width: 560px; color: rgba(255,255,255,.76); font-size: 15px; line-height: 1.7; }
.auth-preview-card {
  width: min(520px, 90%);
  margin-top: 36px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
}
.preview-toolbar { display: flex; gap: 5px; padding: 2px 2px 10px; }
.preview-toolbar span { width: 7px; height: 7px; border-radius: 50%; background: #d9dce1; }
.preview-row { display: grid; grid-template-columns: 68px 1fr; align-items: center; min-height: 34px; border-top: 1px solid var(--line); color: var(--ink); font-size: 10px; }
.preview-row strong { padding-left: 8px; font-weight: 500; }
.preview-row i { display: block; height: 20px; margin-right: 8px; border-radius: 4px; }
.preview-a { width: 48%; background: var(--a); }
.preview-b { width: 70%; background: var(--b); }
.preview-c { width: 58%; background: var(--c); }
.auth-swatch { display: flex; gap: 10px; margin-top: 38px; }
.auth-swatch span { width: 64px; height: 10px; border-radius: 999px; }
.swatch-a { background: var(--a); }.swatch-b { background: var(--b); }.swatch-c { background: var(--c); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(44px, 6vw, 100px); border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.auth-tabs { display: flex; gap: 24px; margin-bottom: 42px; border-bottom: 1px solid var(--line); }
.auth-tabs button {
  padding: 12px 2px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  background: transparent;
  font-weight: 500;
}
.auth-tabs button.active { border-color: var(--accent); color: var(--accent); }
.auth-form { display: grid; gap: 18px; }
.auth-form h2 { margin-bottom: 6px; font-size: 32px; font-weight: 400; }
.auth-form p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.auth-form input { height: 46px; }
.auth-form .primary-button { min-height: 48px; margin-top: 6px; }
.auth-notice { min-height: 24px; margin-top: 16px; color: var(--danger); font-size: 13px; }

.app-shell {
  width: calc(100% - 20px);
  max-width: 1900px;
  height: calc(100vh - 12px);
  margin: 5px auto;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
}
.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 12px;
  background: rgba(255,255,255,.52);
  box-shadow: 0 10px 30px rgba(38,48,52,.06);
  backdrop-filter: blur(20px) saturate(1.25);
}
.brand-block h1 { margin-bottom: 2px; font-size: 25px; font-weight: 500; letter-spacing: -.02em; }
.top-actions, .month-controls { display: flex; align-items: center; gap: 6px; }
.account-chip {
  min-width: 94px;
  padding: 6px 10px;
  border-left: 3px solid var(--accent);
  border-radius: 7px;
  background: rgba(255,255,255,.5);
}
.account-chip span, .account-chip small { display: block; }
.account-chip span { font-size: 12px; font-weight: 600; }
.account-chip small { color: var(--muted); font-size: 9px; }
.outline-button, .quiet-button, .month-controls button, .month-controls input, .close-button {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255,255,255,.62);
  box-shadow: 0 3px 10px rgba(24,29,38,.05);
  backdrop-filter: blur(12px);
  font-weight: 500;
}
.outline-button { color: var(--ink); background: var(--paper); }
.outline-button:active, .quiet-button:active, .month-controls button:active { background: rgba(232,236,239,.86); }
.quiet-button { color: var(--muted); }
.month-controls input { width: 140px; }
.month-controls .soft-button { color: white; background: var(--primary); border-color: var(--primary); }

.dispatch-card, .schedule-card, .viewer-banner {
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 14px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 14px 38px rgba(38,48,52,.08), inset 0 1px 0 rgba(255,255,255,.82);
  backdrop-filter: blur(22px) saturate(1.18);
}
.dispatch-card {
  position: relative;
  z-index: 12;
  padding: 9px 13px 10px;
  overflow: visible;
}
.section-title, .schedule-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.section-title { justify-content: flex-end; }
.section-title h2, .schedule-heading h2 { margin-bottom: 0; font-size: 16px; }
.rules, .legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 12px; color: var(--muted); font-size: 10px; }
.rules span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.dispatch-form {
  display: grid;
  grid-template-columns: 1.05fr .9fr 1fr .55fr .48fr .75fr 150px;
  gap: 8px;
  align-items: end;
  margin-top: 7px;
}
.notice { display: none; margin-top: 8px; padding: 7px 10px; border-radius: 7px; font-size: 12px; }
.notice.show { display: block; }.notice.success { color: #0a5a35; background: #e5f5e9; }.notice.error { color: #8c1d18; background: #fde9e7; }
.viewer-banner { padding: 10px 14px; color: var(--body); background: #f5e9d4; font-size: 12px; }
.viewer-banner strong { margin-right: 10px; }

.schedule-card { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; animation: surface-in 360ms ease both; }
.schedule-heading { align-items: center; padding: 8px 13px 7px; border-bottom: 1px solid var(--line); }
.schedule-heading p { margin-bottom: 0; color: var(--muted); font-size: 11px; }

.select-shell { position: relative; width: 100%; }
.select-shell.open { z-index: 100; }
.native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.select-trigger {
  position: relative;
  width: 100%;
  height: 36px;
  padding: 0 34px 0 11px;
  overflow: hidden;
  border: 1px solid rgba(194,202,205,.88);
  border-radius: 9px;
  color: var(--ink);
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 3px 10px rgba(24,29,38,.04);
  backdrop-filter: blur(14px);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 13px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 180ms ease;
}
.select-shell.open .select-trigger {
  border-color: rgba(15,116,104,.6);
  box-shadow: 0 0 0 3px rgba(15,116,104,.1), 0 8px 20px rgba(24,29,38,.08);
}
.select-shell.open .select-trigger::after { transform: translateY(-20%) rotate(225deg); }
.select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 80;
  width: max(100%, 150px);
  max-height: 238px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 12px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 42px rgba(24,29,38,.17), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(24px) saturate(1.25);
  animation: select-in 180ms cubic-bezier(.2,.8,.2,1) both;
}
.select-option {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--body);
  background: transparent;
  text-align: left;
}
.select-option.selected {
  color: #075d4f;
  background: rgba(168,216,196,.38);
  font-weight: 600;
}
.select-option.selected::after { content: "✓"; float: right; }
.select-option:active:not(:disabled) { background: rgba(168,216,196,.56); }
.select-option:disabled { opacity: .42; cursor: not-allowed; }

@keyframes select-in {
  from { opacity: 0; transform: translateY(-5px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.schedule-meta { display: flex; align-items: center; gap: 12px; }
.data-status { padding: 5px 8px; border-radius: 6px; color: #07543f; background: #d8eedf; font-size: 10px; font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend i { width: 10px; height: 10px; border: 1px solid rgba(0,0,0,.08); border-radius: 2px; }
.level-a { background: var(--a); }.level-b { background: var(--b); }.level-c { background: var(--c); }.level-other { background: var(--other); }.free { background: var(--paper); }
.table-scroll { flex: 1 1 auto; min-height: 220px; overflow: auto; scrollbar-color: #98958e #ece8df; }
.schedule-board { min-width: max-content; background: rgba(255,255,255,.76); }
.board-grid { display: grid; grid-template-columns: var(--teacher-width) repeat(var(--days), var(--day-width)); }
.corner, .date-cell, .teacher-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.corner, .date-cell {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--header);
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.corner { left: 0; z-index: 7; font-family: inherit; }
.date-cell.weekend { background: var(--weekend); }.date-cell.today { box-shadow: inset 0 -4px 0 var(--accent); }
.date-cell small { display: block; margin-top: 1px; color: var(--muted); font-family: inherit; font-size: 9px; }
.teacher-cell { position: sticky; left: 0; z-index: 4; flex-direction: column; background: var(--header); font-weight: 600; }
.teacher-cell small { margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 500; }
.teacher-track { position: relative; min-height: 47px; grid-column: span var(--days); border-bottom: 1px solid var(--line); }
.teacher-track.drag-active { box-shadow: inset 0 0 0 2px rgba(15, 116, 104, .28); }
.drop-layer { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--days), var(--day-width)); }
.drop-cell { border-right: 1px solid var(--line); background: var(--paper); }
.drop-cell.weekend { background: rgba(247,236,215,.45); }.drop-cell.today { background: rgba(15,116,104,.08); }
.drop-cell:hover { background: #edf6f3; }.drop-cell.drag-over { background: #cfe9e4; box-shadow: inset 0 0 0 2px var(--accent); }
.events-layer { position: absolute; inset: 0; pointer-events: none; }
.project-block {
  position: absolute;
  top: 5px;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid rgba(40,48,57,.15);
  border-radius: 6px;
  overflow: hidden;
  color: #23313f;
  cursor: pointer;
  pointer-events: auto;
  text-align: center;
  box-shadow: 0 3px 9px rgba(24,29,38,.07);
  transition: transform 160ms ease, box-shadow 180ms ease, opacity 160ms ease;
}
.project-block:active { transform: scale(.985); box-shadow: 0 1px 4px rgba(24,29,38,.08); }
.project-block[draggable="true"] { cursor: grab; }.project-block.dragging { opacity: .55; }
.project-block.a { background: var(--a); }.project-block.b { background: var(--b); }.project-block.c { background: var(--c); }.project-block.other { background: var(--other); }
.project-block strong, .project-block small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.project-block strong { font-size: 11px; font-weight: 600; }.project-block small { font-size: 8px; opacity: .72; }

.month-projects { flex: 0 0 auto; min-height: 132px; padding: 10px 13px 11px; border-top: 1px solid var(--line); background: var(--header); }
.month-projects-heading { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 5px; }
.month-projects-heading h3 { margin-bottom: 2px; font-size: 13px; }
.month-projects-heading p { margin-bottom: 0; color: var(--muted); font-size: 10px; }
.month-projects-heading > span { padding: 4px 8px; border-radius: 6px; color: var(--accent); background: #d8eedf; font-size: 10px; font-weight: 600; }
.project-strip { display: flex; gap: 8px; min-height: 78px; padding: 1px 1px 6px; overflow-x: auto; }
.project-card {
  flex: 0 0 195px;
  min-height: 58px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-left-width: 6px;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(24,29,38,.05);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.project-card:active { transform: translateY(1px) scale(.99); box-shadow: 0 1px 5px rgba(24,29,38,.06); }
.project-card[draggable="true"] { cursor: grab; }.project-card.a { border-left-color: #86b879; }.project-card.b { border-left-color: #dfa842; }.project-card.c { border-left-color: #78a0d8; }.project-card.other { border-left-color: #9c82b3; }
.project-card strong { display: block; margin-bottom: 2px; font-size: 12px; }.project-card p { margin-bottom: 3px; color: var(--muted); font-size: 9px; }
.project-card footer { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; font-weight: 600; }
.project-strip-empty { width: 100%; padding: 20px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); text-align: center; font-size: 11px; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(24,29,38,.24);
  backdrop-filter: blur(6px);
  animation: backdrop-in 220ms ease both;
}
.drawer, .admin-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  width: min(460px, calc(100vw - 20px));
  padding: 22px;
  overflow-y: auto;
  border-left: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.82);
  box-shadow: -18px 0 50px rgba(24,29,38,.15);
  backdrop-filter: blur(28px) saturate(1.2);
  animation: drawer-in 280ms cubic-bezier(.2,.8,.2,1) both;
}
.admin-drawer { width: min(980px, calc(100vw - 40px)); }
.drawer-header { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin-bottom: 3px; font-size: 24px; font-weight: 400; }
.drawer-caption { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.close-button { height: 34px; }
.detail-form { display: grid; gap: 14px; padding-top: 18px; }.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.delete-button { min-height: 40px; border: 1px solid #d9a493; border-radius: 8px; color: var(--danger); background: #fff8f5; font-weight: 600; }
.new-teacher-form, .new-project-type-form { display: grid; grid-template-columns: 1fr 88px 100px; gap: 8px; align-items: end; padding: 16px 0; }
.new-project-type-form { grid-template-columns: 94px 1fr 100px; }
.teacher-list, .customer-type-list, .project-type-list { display: grid; gap: 8px; }
.customer-type-list { padding-top: 2px; }
.teacher-row, .project-type-row { display: grid; grid-template-columns: 1fr 80px auto; gap: 7px; align-items: end; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.project-type-row { grid-template-columns: 1fr auto; align-items: center; }
.project-type-row input:disabled { color: var(--muted); background: rgba(248,250,252,.82); }
.teacher-row-actions, .project-type-actions { display: flex; gap: 5px; }
.teacher-save, .teacher-delete { height: 36px; padding: 0 8px; border-radius: 7px; font-size: 11px; font-weight: 600; }
.teacher-save { border: 0; color: white; background: var(--primary); }.teacher-delete { border: 1px solid #d9a493; color: var(--danger); background: #fff8f5; }
.teacher-save:disabled, .teacher-delete:disabled { opacity: .45; cursor: not-allowed; }
.customer-type-card {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 12px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 8px 22px rgba(24,29,38,.06);
  backdrop-filter: blur(16px);
}
.customer-type-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.customer-type-heading strong { font-size: 14px; }
.customer-type-heading span { padding: 3px 7px; border-radius: 999px; color: var(--accent); background: #d8eedf; font-size: 10px; font-weight: 600; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.admin-stats div { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--header); }
.admin-stats small, .admin-stats strong { display: block; }.admin-stats small { color: var(--muted); }.admin-stats strong { margin-top: 4px; font-size: 28px; font-weight: 400; }
.admin-panel { padding-top: 16px; }
.account-list { display: grid; gap: 8px; }
.account-reset-row { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(220px, 1fr) 92px; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.account-reset-row div { display: flex; flex-direction: column; gap: 2px; }
.account-reset-row small { color: var(--muted); font-size: 10px; }
.account-reset-row input { height: 36px; }
.admin-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 9px; background: white; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 11px; }
th, td { padding: 9px 10px; border-bottom: 1px solid #e8e2d7; text-align: left; }
th { position: sticky; top: 0; background: var(--header); font-weight: 600; }

@keyframes drawer-in {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes surface-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 1180px) {
  body { height: auto; overflow: auto; }
  .app-shell { height: auto; min-height: calc(100vh - 12px); }
  .topbar { align-items: flex-start; }.top-actions { flex-wrap: wrap; justify-content: flex-end; }
  .dispatch-form { grid-template-columns: repeat(4, 1fr); }
  .dispatch-button { min-height: 42px; }
}

@media (max-width: 720px) {
  body { min-width: 0; }
  .app-shell { width: calc(100% - 12px); margin: 6px; gap: 7px; }
  .topbar { align-items: stretch; flex-direction: column; padding: 10px; }
  .brand-block h1 { font-size: 22px; }
  .top-actions { justify-content: flex-start; gap: 6px; }
  .account-chip { min-width: 86px; }
  .month-controls { order: 5; width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .month-controls input { flex: 0 0 132px; }
  .month-controls button { flex: 0 0 auto; }
  .dispatch-card { padding: 10px; }
  .section-title { align-items: center; }
  .rules { display: none; }
  .dispatch-form { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dispatch-form > label:first-child,
  .dispatch-form > label:nth-child(3),
  .dispatch-button { grid-column: 1 / -1; }
  .dispatch-button { min-height: 46px; }
  .schedule-heading { align-items: flex-start; flex-direction: column; }
  .schedule-meta { width: 100%; justify-content: space-between; gap: 8px; }
  .legend { justify-content: flex-start; gap: 6px 9px; }
  .table-scroll { min-height: 310px; }
  .month-projects-heading p { display: none; }
  .month-projects { min-height: 118px; padding: 8px 13px 9px; }
  .project-strip { min-height: 68px; }
  .drawer, .admin-drawer { width: 100vw; padding: 18px; }
  .two-columns { grid-template-columns: 1fr; }
  .new-teacher-form, .new-project-type-form { grid-template-columns: 1fr 78px; }
  .new-teacher-form .primary-button, .new-project-type-form .primary-button { grid-column: 1 / -1; }
  .teacher-row, .project-type-row { grid-template-columns: 1fr 72px; }
  .teacher-row-actions, .project-type-actions { grid-column: 1 / -1; }
  .teacher-row-actions button, .project-type-actions button { flex: 1; }
  .auth-screen { grid-template-columns: 1fr; padding: 6px; }
  .auth-art { min-height: 280px; padding: 36px 28px; }
  .auth-art h1 { font-size: 36px; }
  .auth-preview-card, .auth-swatch { display: none; }
  .auth-panel { padding: 34px 26px; }
}

/* 操作记录（2026-09-30 加） */
.order-history{margin-top:14px;padding:12px 14px;border-radius:12px;background:rgba(0,0,0,.035);font-size:13px;line-height:1.6;max-height:220px;overflow:auto}
.order-history strong{display:block;margin-bottom:6px;font-size:13px}
.order-history p{margin:0 0 6px}
.order-history p span{display:block;font-size:12px;opacity:.6}
.log-title{margin:22px 0 10px;font-size:16px}
.log-title small{font-weight:400;font-size:12px;opacity:.6;margin-left:6px}
.log-wrap{max-height:420px;overflow:auto}
.nowrap{white-space:nowrap}
