:root {
  --ink: #172521;
  --ink-soft: #344b44;
  --muted: #6c7c76;
  --forest: #14352f;
  --forest-2: #1f4b42;
  --mint: #bde9d9;
  --mint-soft: #eaf7f1;
  --cream: #f7f3e9;
  --paper: #fffdf8;
  --white: #ffffff;
  --coral: #ff8f70;
  --coral-soft: #fff0eb;
  --violet: #7967b0;
  --violet-soft: #f0edf9;
  --blue: #3d6f8d;
  --blue-soft: #eaf4f8;
  --amber: #b97718;
  --amber-soft: #fff5dc;
  --red: #ae3f3f;
  --red-soft: #fdecec;
  --line: #dce4df;
  --line-strong: #c5d1ca;
  --shadow-sm: 0 2px 10px rgba(19, 53, 47, 0.06);
  --shadow-lg: 0 24px 70px rgba(19, 53, 47, 0.18);
  --sidebar-width: 248px;
  --topbar-height: 82px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --ease: 180ms ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.drawer-open,
body.menu-open { overflow: hidden; }

button,
input,
select,
textarea { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button { cursor: pointer; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid rgba(255, 143, 112, 0.55);
  outline-offset: 3px;
}

.hidden { display: none !important; }
.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;
}
.mobile-only { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
  transition: transform var(--ease);
}

.skip-link:focus { transform: translateY(0); }

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  background: var(--forest);
  color: var(--white);
}

.boot-mark,
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  background: var(--coral);
  color: var(--forest);
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 18%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.boot-mark { animation: breathe 1.2s ease-in-out infinite alternate; }
.boot-screen p { margin: 0; color: #d8e8e2; font-size: 14px; }

@keyframes breathe {
  from { transform: translateY(0) rotate(-3deg); }
  to { transform: translateY(-6px) rotate(3deg); }
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-lockup > span:last-child { display: grid; gap: 1px; }
.brand-lockup strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  letter-spacing: -0.03em;
}
.brand-lockup small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.brand-lockup-light small { color: #bcd2ca; }

.eyebrow,
.section-kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.eyebrow { color: var(--mint); }
.eyebrow.dark,
.section-kicker { color: var(--forest-2); }

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(480px, 1.08fr) minmax(420px, 0.92fr);
  background: var(--paper);
}

.auth-story {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 76px);
  background: var(--forest);
  color: var(--white);
}

.auth-story::before,
.auth-story::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(189, 233, 217, 0.2);
  border-radius: 50%;
}
.auth-story::before { width: 560px; height: 560px; right: -250px; top: -110px; }
.auth-story::after { width: 340px; height: 340px; left: -190px; bottom: 110px; }

.auth-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: clamp(64px, 11vh, 130px) 0 48px;
}
.auth-copy h1 {
  margin: 20px 0;
  font-family: Georgia, "Times New Roman", "Noto Serif KR", serif;
  font-size: clamp(38px, 4.2vw, 68px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.045em;
}
.auth-copy > p:last-child {
  max-width: 580px;
  margin: 0;
  color: #c9dcd5;
  font-size: 16px;
  line-height: 1.8;
}

.auth-preview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(250px, 1.2fr);
  gap: 18px;
  align-items: end;
}
.auth-preview article {
  padding: 22px;
  background: var(--mint);
  color: var(--forest);
  border: 1px solid #8ec9b4;
  border-radius: var(--radius-lg);
  transform: rotate(-1.2deg);
  box-shadow: 12px 14px 0 rgba(5, 25, 21, 0.24);
}
.preview-kicker { display: block; margin-bottom: 22px; font-size: 9px; font-weight: 900; letter-spacing: 0.16em; }
.auth-preview article strong { display: block; font-family: Georgia, serif; font-size: 25px; }
.auth-preview article p { margin: 8px 0 18px; font-size: 13px; }
.preview-action { display: inline-flex; padding: 7px 10px; background: var(--forest); color: var(--white); border-radius: 999px; font-size: 11px; font-weight: 800; }
.auth-proof { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,0.18); }
.auth-proof span { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.18); color: #dbe8e3; font-size: 13px; }
.auth-proof b { color: var(--coral); font-size: 10px; }

.auth-panel {
  display: grid;
  place-items: center;
  padding: 48px clamp(28px, 6vw, 92px);
  background: var(--paper);
}
.mobile-auth-brand { display: none; }
.auth-card { width: min(430px, 100%); }
.auth-heading { margin-bottom: 34px; }
.auth-heading h2 {
  margin: 14px 0 8px;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 34px;
  letter-spacing: -0.035em;
}
.auth-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.auth-form,
.stack-form { display: grid; gap: 12px; }
.auth-form label,
.auth-field,
.stack-form label,
.month-picker,
.teacher-picker {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}
.auth-field { display: grid; gap: 6px; }
.auth-field small { color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.5; }
.password-label { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; }
.password-label span { color: var(--muted); font-size: 10px; }
.password-field { position: relative; }
.password-field input { padding-right: 65px; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--ease), box-shadow var(--ease);
}
textarea { resize: vertical; min-height: 105px; }
input::placeholder,
textarea::placeholder { color: #9ba8a3; }
input:focus,
select:focus,
textarea:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(31, 75, 66, 0.11); outline: 0; }

.primary-button,
.ghost-button,
.icon-button,
.text-button,
.profile-button,
.view-switch button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 800;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 16px;
  background: var(--forest);
  color: var(--white);
  transition: background var(--ease), transform var(--ease);
}
.primary-button:hover { background: var(--forest-2); transform: translateY(-1px); }
.primary-button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.auth-submit { justify-content: space-between; width: 100%; margin-top: 11px; padding-inline: 18px; }
.ghost-button { padding: 9px 12px; background: transparent; color: var(--forest-2); }
.ghost-button:hover { background: var(--mint-soft); }
.text-button { min-height: 32px; padding: 5px 9px; background: transparent; color: var(--forest-2); font-size: 11px; }
.icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 18px;
}
.icon-button:hover { background: var(--mint-soft); border-color: var(--line-strong); }

.auth-help {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 10px;
}
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #2e9a70; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 24px 18px 18px;
  background: var(--forest);
  color: var(--white);
}
.sidebar-brand { padding: 0 7px 23px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.sidebar-brand small { color: #a9c3ba; }
.role-card { display: grid; gap: 4px; margin: 21px 4px 16px; padding: 14px; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-md); background: rgba(255,255,255,0.055); }
.role-card strong { margin-top: 4px; font-size: 15px; }
.role-card small { color: #afc5be; font-size: 11px; }
.role-chip { justify-self: start; padding: 4px 7px; border-radius: 4px; background: var(--mint); color: var(--forest); font-size: 9px; font-weight: 900; letter-spacing: 0.08em; }

.role-nav { display: grid; gap: 4px; margin-top: 4px; flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: start; scrollbar-width: thin; }
.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 45px;
  padding: 8px 11px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #bdd0c9;
  text-align: left;
  transition: background var(--ease), color var(--ease);
}
.nav-item:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.nav-item.active { background: var(--mint); color: var(--forest); }
.nav-icon { display: grid; place-items: center; width: 24px; height: 24px; font-size: 16px; font-weight: 800; }
.nav-label { font-size: 13px; font-weight: 800; }
.nav-badge { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: var(--coral); color: var(--forest); font-size: 9px; font-weight: 900; text-align: center; }

.sidebar-footer { display: grid; gap: 5px; margin-top: 12px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); flex-shrink: 0; }
.sidebar-tool { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: #b9ccc5; text-decoration: none; font-size: 12px; font-weight: 700; }
.sidebar-tool:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.sidebar-footer p { margin: 10px 10px 0; color: #739087; font-size: 9px; letter-spacing: 0.06em; }

.workspace { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(20px, 3.2vw, 46px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(14px);
}
.topbar-context p { margin: 0 0 3px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; }
.topbar-context h1 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: 22px; letter-spacing: -0.025em; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.timezone-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 39px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.profile-button { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 5px 9px 5px 5px; background: transparent; color: var(--ink); text-align: left; }
.profile-button:hover { background: var(--mint-soft); }
.profile-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--coral-soft); color: var(--red); font-family: Georgia, serif; font-weight: 900; }
.profile-button > span:last-child { display: grid; gap: 1px; }
.profile-button strong { font-size: 11px; }
.profile-button small { color: var(--muted); font-size: 9px; }

.content { padding: clamp(24px, 3.4vw, 50px); }
.view { display: none; max-width: 1520px; margin: 0 auto; }
.view.active { display: block; animation: view-in 220ms ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.55fr);
  min-height: 270px;
  padding: clamp(28px, 4vw, 52px);
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius-lg);
}
.hero-copy { position: relative; z-index: 2; align-self: center; max-width: 720px; }
.hero-copy h2 { margin: 15px 0 12px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(29px, 3.2vw, 48px); line-height: 1.23; letter-spacing: -0.04em; }
.hero-copy > p:last-child { max-width: 560px; margin: 0; color: #c6d9d2; font-size: 14px; line-height: 1.7; }
.hero-action { position: relative; z-index: 2; align-self: end; justify-self: stretch; }
.next-class-card { padding: 19px; border: 1px solid #8fc6b2; border-radius: var(--radius-md); background: var(--mint); color: var(--forest); box-shadow: 10px 11px 0 rgba(0,0,0,0.14); }
.next-class-card .meta-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink-soft); font-size: 10px; font-weight: 900; letter-spacing: 0.08em; }
.next-class-card h3 { margin: 15px 0 5px; font-family: Georgia, serif; font-size: 22px; }
.next-class-card p { margin: 0 0 15px; font-size: 12px; }
.next-class-actions { display: flex; gap: 7px; }
.next-class-card .primary-button { flex: 1; background: var(--forest); }
.next-class-card .ghost-button { border: 1px solid rgba(20,53,47,0.2); }
.empty-hero-action { display: grid; place-items: center; min-height: 150px; border: 1px dashed rgba(189,233,217,0.5); border-radius: var(--radius-md); color: #d4e5df; text-align: center; }
.empty-hero-action strong { display: block; margin-bottom: 7px; font-family: Georgia, serif; font-size: 20px; color: var(--white); }
.today-alert { display: flex; flex-direction: column; gap: 10px; width: 100%; min-height: 150px; padding: 18px 20px; text-align: left; border: 1px solid rgba(189,233,217,0.35); border-radius: var(--radius-md); background: rgba(255,255,255,0.08); color: #eaf5ef; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.today-alert:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.today-alert-kicker { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #bde9d9; }
.today-alert strong { font-family: Georgia, serif; font-size: 19px; color: var(--white); }
.today-alert-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.today-chip { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.today-chip--new { background: rgba(129,213,175,0.28); color: #e8fff4; }
.today-chip--makeup { background: rgba(255,196,140,0.30); color: #fff2e2; }
.today-alert-list { display: flex; flex-direction: column; gap: 4px; }
.today-alert-item { font-size: 12.5px; color: #dcece5; }
.today-alert-item b { color: var(--white); font-weight: 800; margin-right: 4px; }
.today-alert-sub { margin-top: auto; font-size: 12px; font-weight: 600; color: #bde9d9; }
.today-alert--calm { justify-content: center; }
.orbit-one,
.orbit-two { position: absolute; border: 1px solid rgba(189,233,217,0.17); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 360px; height: 360px; top: -210px; right: 22%; }
.orbit-two { width: 230px; height: 230px; bottom: -145px; left: 35%; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.kpi-card { min-height: 126px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); box-shadow: var(--shadow-sm); }
.kpi-top { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 800; }
.kpi-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--mint-soft); color: var(--forest-2); font-weight: 900; }
.kpi-card strong { display: block; margin-top: 13px; font-family: Georgia, "Noto Serif KR", serif; font-size: 27px; letter-spacing: -0.04em; }
.kpi-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.kpi-card.coral .kpi-icon { background: var(--coral-soft); color: var(--red); }
.kpi-card.violet .kpi-icon { background: var(--violet-soft); color: var(--violet); }
.kpi-card.amber .kpi-icon { background: var(--amber-soft); color: var(--amber); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr); gap: 16px; }
.surface { min-width: 0; padding: clamp(18px, 2.2vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); box-shadow: var(--shadow-sm); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.section-heading h3 { margin: 5px 0 0; font-family: Georgia, "Noto Serif KR", serif; font-size: 20px; letter-spacing: -0.025em; }

.today-timeline { display: grid; }
.timeline-row { display: grid; grid-template-columns: 72px 18px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 70px; }
.timeline-row + .timeline-row { border-top: 1px solid var(--line); }
.timeline-time { color: var(--forest); font-family: Georgia, serif; font-size: 15px; font-weight: 800; }
.timeline-track { position: relative; align-self: stretch; }
.timeline-track::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.timeline-dot { position: absolute; z-index: 1; left: 3px; top: calc(50% - 5px); width: 11px; height: 11px; border: 3px solid var(--paper); border-radius: 50%; background: var(--forest-2); box-shadow: 0 0 0 1px var(--forest-2); }
.timeline-main { min-width: 0; padding: 10px 0; }
.timeline-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.timeline-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; color: var(--muted); font-size: 11px; }
.timeline-action { justify-self: end; }

.attention-list,
.record-list { display: grid; gap: 9px; }
.attention-item,
.record-item { display: grid; gap: 5px; padding: 13px; border: 1px solid var(--line); border-left: 3px solid var(--forest-2); border-radius: var(--radius-sm); background: var(--white); }
.attention-item.warning { border-left-color: var(--amber); background: var(--amber-soft); }
.attention-item.coral { border-left-color: var(--coral); background: var(--coral-soft); }
.attention-item strong,
.record-item strong { font-size: 12px; line-height: 1.45; }
.attention-item span,
.record-item span,
.record-meta { color: var(--muted); font-size: 10px; line-height: 1.55; }
.empty-state { display: grid; place-items: center; min-height: 170px; padding: 26px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: #fcfbf6; color: var(--muted); text-align: center; }
.empty-state b { display: block; margin-bottom: 6px; color: var(--ink); font-family: Georgia, serif; font-size: 18px; }

.view-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.view-heading h2 { margin: 7px 0 6px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.04em; }
.view-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.schedule-toolbar { display: flex; gap: 10px; align-items: center; }
.period-nav { display: flex; gap: 6px; align-items: center; }
.period-nav .ghost-button { border: 1px solid var(--line); background: var(--white); }
.view-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.view-switch button { min-height: 34px; padding: 6px 11px; background: transparent; color: var(--muted); font-size: 11px; }
.view-switch button.active { background: var(--forest); color: var(--white); }

.calendar-surface { padding: 0; overflow: hidden; }
.calendar-filterbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.calendar-range { margin: 0 0 3px; font-family: Georgia, "Noto Serif KR", serif; font-size: 18px; font-weight: 700; }
.calendar-count { margin: 0; color: var(--muted); font-size: 10px; }
.filters { display: flex; align-items: center; gap: 7px; }
.search-field { position: relative; min-width: 220px; }
.search-field > span { position: absolute; z-index: 1; left: 11px; top: 50%; transform: translateY(-52%); color: var(--muted); }
.search-field input { padding-left: 32px; }
.select-field select { min-width: 125px; }

.schedule-canvas { position: relative; min-height: 520px; overflow-x: auto; background: var(--white); }
/* 주간 시간표: 30분 슬롯 그리드 + 세로 스택. 겹치는 시간대는 행 높이가 자동 확장된다. */
.week-stack { min-width: 860px; display: grid; }
.wgs-row { display: grid; grid-template-columns: 62px repeat(7, minmax(112px, 1fr)); border-bottom: 1px solid var(--line); }
.wgs-row.is-hour { border-bottom-color: var(--line-strong); }
.wgs-head { position: sticky; top: 0; z-index: 4; background: var(--paper); border-bottom: 1px solid var(--line-strong); }
.wgs-day { min-height: 52px; padding: 9px 6px; text-align: center; border-left: 1px solid var(--line); }
.wgs-day:first-child { border-left: 0; }
.wgs-day.is-today { background: var(--mint-soft); color: var(--forest); }
.wgs-day strong { display: block; font-family: Georgia, serif; font-size: 17px; }
.wgs-day span { color: var(--muted); font-size: 10px; font-weight: 800; }
.wgs-time { padding: 6px 9px 0 0; text-align: right; color: var(--muted); font-family: Georgia, serif; font-size: 11px; font-weight: 700; border-right: 1px solid var(--line-strong); }
.wgs-time.half { font-weight: 400; opacity: 0.5; }
.wgs-cell { min-height: 40px; padding: 4px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.wgs-cell.is-today { background: #fbfefc; }
.wgs-cell.weekend { background: #fdfbf6; }
.wgs-cell.is-busy { background: rgba(255, 196, 140, 0.10); }
.stack-card { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; text-align: left; border: 1px solid #9bcdbb; border-left: 4px solid var(--forest-2); border-radius: 7px; background: var(--mint-soft); color: var(--ink); cursor: pointer; box-shadow: 0 2px 5px rgba(19,53,47,0.06); }
.stack-card:hover { box-shadow: 0 6px 16px rgba(19,53,47,0.14); }
.stack-card.course-1 { background: var(--mint-soft); border-color: #8fc9b4; border-left-color: var(--forest-2); }
.stack-card.course-2 { background: var(--violet-soft); border-color: #b5a8d9; border-left-color: var(--violet); }
.stack-card.course-3 { background: var(--coral-soft); border-color: #f3b3a2; border-left-color: var(--coral); }
.stack-card.course-4 { background: var(--blue-soft); border-color: #9dc3d5; border-left-color: var(--blue); }
.stack-card.cancelled { opacity: 0.62; text-decoration: line-through; }
.stack-card.makeup { border-style: dashed; }
.stack-time { font-size: 10px; font-weight: 800; color: var(--muted); }
.stack-card strong { font-size: 12.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.stack-who { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.session-card {
  position: absolute;
  z-index: 2;
  left: 5px;
  right: 5px;
  overflow: hidden;
  min-height: 42px;
  padding: 7px 8px;
  border: 1px solid #9bcdbb;
  border-left: 4px solid var(--forest-2);
  border-radius: 7px;
  background: var(--mint-soft);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 3px 7px rgba(19, 53, 47, 0.08);
}
.session-card:hover { z-index: 5; border-color: var(--forest-2); box-shadow: 0 8px 20px rgba(19,53,47,0.16); }
.session-card.course-1 { background: var(--mint-soft); border-color: #8fc9b4; border-left-color: var(--forest-2); }
.session-card.course-2 { background: var(--violet-soft); border-color: #b5a8d9; border-left-color: var(--violet); }
.session-card.course-3 { background: var(--coral-soft); border-color: #f3b3a2; border-left-color: var(--coral); }
.session-card.course-4 { background: var(--blue-soft); border-color: #9dc3d5; border-left-color: var(--blue); }
.session-card.cancelled { opacity: 0.62; text-decoration: line-through; }
.session-card.makeup { border-style: dashed; }
.session-card .session-time { display: block; margin-bottom: 3px; font-size: 9px; font-weight: 900; letter-spacing: 0.03em; }
.session-card strong,
.session-card span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-card strong { font-size: 10px; line-height: 1.35; }
.session-card span:last-child { margin-top: 2px; color: var(--muted); font-size: 9px; }
.overlap-cluster { position: absolute; z-index: 6; left: 5px; right: 5px; display: grid; place-items: center; min-height: 42px; padding: 7px; border: 1px dashed var(--violet); border-radius: 7px; background: var(--violet-soft); color: var(--violet); font-size: 10px; font-weight: 900; }

.day-agenda { display: grid; grid-template-columns: 78px minmax(0, 1fr); min-width: 600px; padding: 8px 20px 26px; }
.day-slot { display: contents; }
.day-slot-time { padding: 18px 14px 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-family: Georgia, serif; font-size: 12px; }
.day-slot-items { min-height: 68px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.agenda-card,
.list-session-card { display: grid; gap: 5px; width: 100%; padding: 12px; border: 1px solid var(--line); border-left: 4px solid var(--forest-2); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); text-align: left; }
.agenda-card:hover,
.list-session-card:hover { border-color: var(--forest-2); }
.agenda-card strong,
.list-session-card strong { font-size: 12px; }
.agenda-card span,
.list-session-card span { color: var(--muted); font-size: 10px; }
.session-list { display: grid; gap: 8px; padding: 18px; }
.list-session-card { grid-template-columns: 90px minmax(0,1fr) auto; align-items: center; }
.list-session-date { color: var(--forest); font-family: Georgia, serif; font-size: 12px; font-weight: 800; }
.list-session-main { display: grid; gap: 4px; min-width: 0; }

.status-pill,
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 4px 8px; border-radius: 999px; background: var(--mint-soft); color: var(--forest-2); font-size: 9px; font-weight: 900; white-space: nowrap; }
.status-pill::before { content: ""; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: currentColor; }
.status-pill.completed { background: var(--blue-soft); color: var(--blue); }
.status-pill.cancelled { background: var(--red-soft); color: var(--red); }
.status-pill.makeup { background: var(--violet-soft); color: var(--violet); }
.status-pill.pending { background: var(--amber-soft); color: var(--amber); }

.two-column-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: 16px; }
.policy-copy { margin: -4px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.notice-box { margin-top: 15px; padding: 13px; border-left: 4px solid var(--amber); background: var(--amber-soft); color: #725014; font-size: 12px; line-height: 1.65; }
.record-item { grid-template-columns: minmax(0,1fr) auto; align-items: start; }
.record-main { display: grid; gap: 4px; min-width: 0; }
.record-side { text-align: right; }

.teacher-picker,
.month-picker { display: grid; grid-template-columns: auto minmax(150px, 220px); gap: 8px; align-items: center; }
.teacher-picker select,
.month-picker input { background: var(--white); }
.availability-surface { padding: 0; overflow: hidden; }
.availability-intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.availability-intro strong { font-family: Georgia, "Noto Serif KR", serif; font-size: 19px; }
.availability-intro p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.availability-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; padding: 20px 24px; }
.availability-day-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.availability-day-card.is-off { background: #f7f8f5; }
.availability-day-head { display: flex; align-items: center; justify-content: space-between; }
.availability-day { font-family: Georgia, "Noto Serif KR", serif; font-size: 15px; font-weight: 800; }
.availability-toggle { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 800; }
.availability-toggle input,
.checkbox-field input { width: 18px; min-height: 18px; accent-color: var(--forest-2); }
.availability-slots { display: flex; flex-direction: column; gap: 8px; }
.availability-slot { display: grid; grid-template-columns: 1fr 12px 1fr 30px; gap: 6px; align-items: center; }
.availability-slot input[type="time"] { min-width: 0; }
.availability-slot input:disabled { background: #f2f3ef; color: #a5ada9; }
.availability-remove { height: 30px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }
.availability-remove:disabled { opacity: .4; cursor: default; }
.availability-add { align-self: flex-start; padding: 5px 12px; border: 1px dashed var(--forest-2); background: transparent; border-radius: 999px; color: var(--forest-2); font-size: 12px; font-weight: 700; cursor: pointer; }
.availability-add:disabled { opacity: .4; cursor: default; }
.time-separator { text-align: center; color: var(--muted); }
.surface-footnote { margin: 0; padding: 14px 24px; background: #faf9f4; color: var(--muted); font-size: 10px; line-height: 1.55; }

.finance-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.finance-summary .surface strong { display: block; margin-top: 10px; font-family: Georgia, serif; font-size: 25px; }
.finance-summary .surface span { color: var(--muted); font-size: 10px; font-weight: 800; }
.finance-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.finance-table { width: 100%; border-collapse: collapse; }
.finance-table th,
.finance-table td { padding: 12px 9px; border-bottom: 1px solid var(--line); font-size: 11px; text-align: left; }
.finance-table th { color: var(--muted); font-size: 9px; letter-spacing: 0.05em; }
.finance-table td:last-child,
.finance-table th:last-child { text-align: right; }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.compact-form label:not(.checkbox-field) { display: grid; gap: 6px; }
.checkbox-field { display: flex !important; align-items: center; gap: 8px; }
/* .account-list 의 높이 제한(580px)은 아래 flex 규칙으로 대체되었다(2026-09-18). */
.account-actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 5px; }
.account-actions button { min-height: 32px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink-soft); font-size: 9px; font-weight: 800; }

.operations-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.operation-card { display: flex; gap: 18px; min-height: 190px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform var(--ease), border-color var(--ease); }
.operation-card:hover { transform: translateY(-2px); border-color: var(--forest-2); }
.operation-card.featured { background: var(--forest); color: var(--white); }
.operation-icon { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid currentColor; border-radius: 50%; font-size: 20px; }
.operation-card p { margin: 2px 0 22px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: 0.13em; }
.operation-card.featured p { color: var(--mint); }
.operation-card h3 { margin: 0 0 9px; font-family: Georgia, "Noto Serif KR", serif; font-size: 21px; }
.operation-card div > span { color: var(--muted); font-size: 11px; line-height: 1.6; }
.operation-card.featured div > span { color: #c9dbd5; }

.session-drawer { position: fixed; z-index: 100; inset: 0; }
.drawer-scrim { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(11, 28, 24, 0.46); backdrop-filter: blur(2px); }
.drawer-panel { position: absolute; inset: 0 0 0 auto; width: min(470px, 94vw); overflow-y: auto; background: var(--paper); box-shadow: var(--shadow-lg); animation: drawer-in 220ms ease both; }
@keyframes drawer-in { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.drawer-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 24px; border-bottom: 1px solid var(--line); background: rgba(255,253,248,0.95); backdrop-filter: blur(12px); }
.drawer-header h2 { margin: 6px 0 0; font-family: Georgia, "Noto Serif KR", serif; font-size: 25px; }
.drawer-content { padding: 24px; }
.detail-hero { padding: 20px; background: var(--forest); color: var(--white); border-radius: var(--radius-md); }
.detail-hero .status-pill { margin-bottom: 18px; }
.detail-hero h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 25px; }
.detail-hero p { margin: 0; color: #c5d9d1; font-size: 12px; line-height: 1.6; }
.detail-actions { display: flex; gap: 7px; margin-top: 18px; }
.detail-actions a { flex: 1; text-decoration: none; }
.detail-section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.detail-section h4 { margin: 0 0 13px; font-family: Georgia, "Noto Serif KR", serif; font-size: 16px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.detail-cell { padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.detail-cell span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; }
.detail-cell strong { display: block; overflow-wrap: anywhere; font-size: 11px; }
.student-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 11px; }

.modal { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal-scrim { position: absolute; inset: 0; background: rgba(11,28,24,0.63); }
.modal-card { position: relative; z-index: 1; width: min(420px, 100%); padding: 28px; border-radius: var(--radius-md); background: var(--paper); box-shadow: var(--shadow-lg); }
.modal-card h2 { margin: 12px 0 8px; font-family: Georgia, "Noto Serif KR", serif; font-size: 26px; }
.modal-card > p:not(.eyebrow) { margin: 0 0 21px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.toast { position: fixed; z-index: 300; right: 22px; bottom: 22px; max-width: min(390px, calc(100vw - 32px)); padding: 13px 16px; border-left: 4px solid var(--mint); border-radius: 8px; background: var(--ink); color: var(--white); box-shadow: var(--shadow-lg); font-size: 12px; line-height: 1.5; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity var(--ease), transform var(--ease); }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-left-color: var(--coral); }

.loading-block { min-height: 120px; display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.loading-block::before { content: ""; width: 22px; height: 22px; margin-right: 9px; border: 2px solid var(--line); border-top-color: var(--forest-2); border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 예외 inbox */
.exception-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.exception-chip { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.exception-chip strong { font-family: Georgia, "Noto Serif KR", serif; font-size: 26px; line-height: 1; }
.exception-chip span { color: var(--muted); font-size: 11px; }
.exception-chip.sev-high { border-color: #e9b3b3; background: var(--red-soft); }
.exception-chip.sev-high strong { color: var(--red); }
.exception-chip.sev-medium { border-color: #f0c9a5; background: var(--amber-soft); }
.exception-chip.sev-medium strong { color: var(--amber); }
.exception-chip.sev-low { background: var(--mint-soft); }
.exception-chip.total { background: var(--forest); border-color: var(--forest); }
.exception-chip.total strong,
.exception-chip.total span { color: var(--white); }

.exception-list { display: flex; flex-direction: column; gap: 12px; }
.exception-card { display: grid; grid-template-columns: 104px 1fr auto; gap: 16px; align-items: start; padding: 16px; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: var(--radius-md); background: var(--white); }
.exception-card.sev-high { border-left-color: var(--red); }
.exception-card.sev-medium { border-left-color: var(--amber); }
.exception-card.sev-low { border-left-color: var(--blue); }
.exception-mark { display: flex; flex-direction: column; gap: 5px; }
.exception-sev { padding: 3px 8px; border-radius: 999px; background: var(--cream); color: var(--ink-soft); font-size: 10px; font-weight: 700; text-align: center; }
.exception-card.sev-high .exception-sev { background: var(--red-soft); color: var(--red); }
.exception-card.sev-medium .exception-sev { background: var(--amber-soft); color: var(--amber); }
.exception-code { color: var(--muted); font-size: 10px; text-align: center; }
.exception-body h4 { margin: 0 0 4px; font-size: 15px; }
.exception-detail { margin: 0 0 10px; color: var(--ink-soft); font-size: 12px; }
.exception-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 0; }
.exception-meta dt { color: var(--muted); font-size: 10px; }
.exception-meta dd { margin: 1px 0 0; font-size: 12px; }
.exception-actions { display: flex; flex-direction: column; gap: 6px; }

/* 변경 영향 미리보기 */
.change-preview-section { border-top: 1px solid var(--line); }
.change-preview-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.change-preview-form label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 11px; }
.change-preview-form input,
.change-preview-form select { min-height: 38px; padding: 6px 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font-size: 13px; }
.change-preview-form button { grid-column: 1 / -1; }
.change-preview-result { margin-top: 14px; }
.preview-card { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--mint-soft); }
.preview-card.blocked { background: var(--red-soft); border-color: #e9b3b3; }
.preview-diff { display: flex; flex-direction: column; gap: 6px; }
.preview-diff-row { display: grid; grid-template-columns: 78px 1fr 18px 1fr; gap: 6px; align-items: center; font-size: 12px; }
.preview-diff-label { color: var(--muted); font-size: 10px; }
.preview-diff-before { color: var(--muted); text-decoration: line-through; }
.preview-diff-arrow { color: var(--muted); text-align: center; }
.preview-diff-after { font-weight: 700; }
.preview-notes { margin: 12px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.preview-blocker { color: var(--red); font-weight: 700; }
.preview-warning { color: var(--amber); }
.preview-impact { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.preview-impact-row { display: grid; grid-template-columns: 78px 1fr; gap: 8px; font-size: 12px; }
.preview-impact-row > span { color: var(--muted); font-size: 10px; }
.preview-apply { margin-top: 14px; }
.preview-apply .policy-copy { margin: 0; }

/* 수업방 */
.classroom-list { display: flex; flex-direction: column; gap: 10px; }
.classroom-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.classroom-card.inactive { opacity: 0.62; }
.classroom-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.classroom-main strong { font-size: 14px; }
.classroom-main span { color: var(--muted); font-size: 12px; }
.classroom-flags { display: flex; gap: 6px; margin-top: 4px; }
.classroom-actions { display: flex; gap: 6px; flex-shrink: 0; }
.stacked-form { display: flex; flex-direction: column; gap: 10px; }
.stacked-form label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 11px; }
.stacked-form input,
.stacked-form select { min-height: 40px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font-size: 13px; }
.inherit-note { display: inline-flex; align-items: center; padding: 0 9px; border-radius: 999px; background: var(--mint-soft); color: var(--forest); font-size: 10px; font-weight: 700; }

@media (max-width: 1180px) {
  :root { --sidebar-width: 218px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .hero-panel { grid-template-columns: 1fr minmax(230px, 0.48fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .attention-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .availability-row { grid-template-columns: 65px 90px minmax(115px,1fr) 20px minmax(115px,1fr); }
  .availability-preview { display: none; }
}

@media (max-width: 900px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-grid !important; }
  .auth-screen { grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .auth-panel { min-height: 100vh; align-content: center; gap: 40px; padding: 28px; }
  .mobile-auth-brand { display: inline-flex; justify-self: center; }
  .sidebar { transform: translateX(-105%); width: min(280px, 88vw); transition: transform var(--ease); }
  .menu-open .sidebar { transform: translateX(0); }
  .sidebar-scrim { position: fixed; z-index: 40; inset: 0; display: block !important; background: rgba(11,28,24,0.44); }
  .sidebar-scrim.hidden { display: none !important; }
  .workspace { margin-left: 0; }
  .topbar { min-height: 72px; padding: 11px 16px; }
  .topbar-context { flex: 1; }
  .content { padding: 22px 16px 34px; }
  .hero-panel { grid-template-columns: 1fr; gap: 28px; }
  .hero-action { width: min(420px, 100%); }
  .view-heading { align-items: flex-start; flex-direction: column; }
  .schedule-toolbar { width: 100%; justify-content: space-between; }
  .calendar-filterbar { align-items: flex-start; flex-direction: column; }
  .filters { width: 100%; flex-wrap: wrap; }
  .search-field { flex: 1 1 100%; }
  .select-field { flex: 1 1 150px; }
  .select-field select { min-width: 0; }
  .two-column-grid,
  .finance-grid { grid-template-columns: 1fr; }
  .operations-grid { grid-template-columns: 1fr; }
  .operation-card { min-height: 145px; }
}

@media (max-width: 620px) {
  .timezone-pill { display: none; }
  .topbar-context h1 { font-size: 19px; }
  .hero-panel { min-height: 0; padding: 27px 22px; border-radius: var(--radius-md); }
  .hero-copy h2 { font-size: 30px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .kpi-card { min-height: 112px; padding: 14px; }
  .kpi-card strong { font-size: 22px; }
  .dashboard-grid { gap: 12px; }
  .attention-list { grid-template-columns: 1fr; }
  .surface { padding: 18px; }
  .timeline-row { grid-template-columns: 58px 14px minmax(0,1fr); }
  .timeline-action { display: none; }
  .schedule-heading { margin-bottom: 15px; }
  .schedule-toolbar { align-items: stretch; flex-direction: column; }
  .period-nav,
  .view-switch { justify-content: space-between; }
  .period-nav .ghost-button { flex: 1; }
  .view-switch button { flex: 1; }
  .calendar-filterbar { padding: 16px; }
  .schedule-canvas { min-height: 480px; }
  .list-session-card { grid-template-columns: 1fr auto; }
  .list-session-date { grid-column: 1 / -1; }
  .teacher-picker,
  .month-picker { width: 100%; grid-template-columns: 70px 1fr; }
  .availability-intro { align-items: stretch; flex-direction: column; padding: 17px; }
  .availability-row { grid-template-columns: 52px 1fr 12px 1fr; gap: 7px; padding: 12px 14px; }
  .availability-toggle { grid-column: 2 / -1; grid-row: 1; justify-self: end; }
  .availability-day { grid-row: 1 / 3; }
  .availability-row input[type="time"] { grid-row: 2; min-width: 0; padding-inline: 6px; }
  .finance-summary { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .profile-button { padding-right: 3px; }
  .auth-help { align-items: flex-start; flex-direction: column; }
  .drawer-content { padding: 18px; }
  .detail-grid { grid-template-columns: 1fr; }
  .exception-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exception-card { grid-template-columns: 1fr; }
  .exception-mark { flex-direction: row; gap: 8px; }
  .exception-sev,
  .exception-code { text-align: left; }
  .exception-meta { grid-template-columns: 1fr; }
  .exception-actions { flex-direction: row; }
  .classroom-card { align-items: flex-start; flex-direction: column; }
  .classroom-actions { width: 100%; }
  .change-preview-form { grid-template-columns: 1fr; }
  .preview-diff-row { grid-template-columns: 1fr; gap: 2px; }
  .preview-diff-arrow { display: none; }
  .preview-impact-row { grid-template-columns: 1fr; }
}

@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;
  }
}

/* Operations — 기초정보 관리 · 내보내기 · 백업 */
.ops-basic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 20px; }
.ops-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.ops-panel > h3 { margin: 0 0 12px; font-size: 15px; color: var(--ink); }
.ops-form { display: grid; gap: 8px; margin-bottom: 14px; }
.ops-form input, .ops-form select { width: 100%; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: inherit; }
.ops-form input:focus, .ops-form select:focus { outline: 2px solid var(--mint); border-color: var(--forest-2); }
.ops-form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
/* 목록 높이 제한(260px)은 아래 flex 규칙으로 대체되었다(2026-09-18 요청 1·2·3). */
.ops-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ops-backup-list { display: grid; gap: 6px; margin-top: 10px; }
.ops-backup-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; }
.ops-backup-item:first-child { border-top: none; padding-top: 0; }
.ops-color-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 2px 0 4px; }
.ops-color-label input[type="color"] { width: 46px; height: 28px; padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; background: none; cursor: pointer; }
.teacher-color-pick { width: 38px; height: 24px; margin-left: auto; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: none; cursor: pointer; flex: none; }
.record-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.record-actions .ghost-button { padding: 6px 10px; font-size: 12px; min-height: 30px; }
.record-edit { grid-template-columns: 1fr !important; gap: 8px; }
.record-edit input { width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: inherit; }
.record-edit input:focus { outline: 2px solid var(--mint); border-color: var(--forest-2); }
.record-edit .ops-actions { display: flex; gap: 8px; margin-top: 2px; }
.record-edit select { width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: inherit; }
.record-edit select:focus { outline: 2px solid var(--mint); border-color: var(--forest-2); }
.ops-field { display: grid; gap: 4px; }
.ops-field > span { color: var(--muted); font-size: 10px; font-weight: 800; }
.ops-check { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.ops-check input { width: 16px; height: 16px; accent-color: var(--forest-2); }
.status-badge { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; vertical-align: middle; }
.status-badge.ok { background: var(--mint-soft); color: var(--forest-2); }
.status-badge.warn { background: var(--amber-soft); color: var(--amber); }
.status-badge.muted { background: #eef0ec; color: #8b9691; }
.record-item.is-archived { opacity: 0.6; }
.student-lessons { display: grid; gap: 8px; margin-top: 4px; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fbfbf8; }
.student-lessons > h4 { margin: 0; font-size: 12px; font-weight: 800; color: var(--forest-2); }
.record-item.lesson-mini { grid-template-columns: minmax(0, 1fr) auto; padding: 9px 11px; border-left-width: 3px; }
.record-item.lesson-mini strong { font-size: 12px; }
.ops-field > span { white-space: normal; line-height: 1.35; }
.danger-button { color: var(--red, #c0392b) !important; }
.danger-button:hover { background: var(--red-soft, #fbe4de) !important; }
.student-class-block { border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; }
.student-class-block > summary { cursor: pointer; font-size: 12px; font-weight: 800; color: var(--forest-2); }
.student-class-block > legend { font-size: 12px; font-weight: 800; color: var(--forest-2); padding: 0 6px; }
.student-class-block > *:not(summary) { margin-top: 8px; }
#studentSearch { width: 100%; margin-bottom: 10px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: inherit; }


/* ── 학생 상세 보기 + 월별 캘린더 (2026-09-11 2차) ───────────────── */
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--forest-2); font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--forest-1); }
.student-name { font-size: 15px; }
#studentDetailPanel { margin-top: 14px; }
.detail-status { margin: 0 0 10px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.detail-cell { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--surface-2, #fff); }
.detail-cell span { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.detail-cell strong { display: block; font-size: 14px; margin-top: 2px; word-break: break-all; }

.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cal-toolbar strong { font-size: 15px; }
.cal-legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); padding: 4px 0; }
.cal-cell { min-height: 66px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; display: flex; flex-direction: column; gap: 3px; background: #fff; }
.cal-cell.is-blank { border: 0; background: transparent; }
.cal-cell.has-item { border-color: var(--line-strong); }
.cal-day { font-size: 11px; font-weight: 800; color: var(--ink-2, #556); }
.cal-dots { display: flex; gap: 3px; min-height: 10px; }
.cal-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cal-dot.cal-done { background: #f5c518; }
.cal-dot.cal-off { background: #e0483c; }
.cal-dot.cal-makeup { background: #2d7ff9; }
.cal-entry { display: block; width: 100%; text-align: left; font-size: 10.5px; line-height: 1.25; border: 0; border-radius: 5px; padding: 3px 4px; cursor: pointer; color: #22303f; background: #eef1f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-entry.cal-done { background: #fdf0bf; }
.cal-entry.cal-off { background: #fbdcd9; }
.cal-entry.cal-makeup { background: #d9e7fd; }
.cal-entry:hover { filter: brightness(0.95); }

/* ── 강사관리: 리뷰 블록, 수업료 미리보기 ───────────────────────── */
.record-block { display: block; }
.record-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.teacher-review { margin-top: 8px; border-left: 3px solid var(--line-strong); padding: 4px 0 4px 10px; }
.teacher-review h5 { margin: 0 0 2px; font-size: 11px; font-weight: 800; color: var(--muted); }
.teacher-review p { margin: 0; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; }
.fee-preview { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 13px; background: #fbfcfd; }
.student-lifecycle { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; align-items: center; flex-wrap: wrap; }

@media (max-width: 720px) {
  .cal-cell { min-height: 52px; }
  .cal-entry { display: none; }
}


/* ── 담당 강사 다중 선택 (2026-09-15 요청 1) ─────────────────────── */
.teacher-check-grid { display: flex; flex-wrap: wrap; gap: 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; background: #fff; max-height: 160px; overflow-y: auto; }
.teacher-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 7px; cursor: pointer; background: #fbfcfd; }
.teacher-check:hover { border-color: var(--line-strong); }
.teacher-check input { margin: 0; }
.teacher-check:has(input:checked) { border-color: var(--forest-2); background: #eef5f1; }
.teacher-swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ── 목록 하단 페이지 이동 (2026-09-15 요청 2) ───────────────────── */
.list-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.list-pager:empty { display: none; }
.pager-info { font-size: 11.5px; color: var(--muted); font-weight: 700; margin-right: auto; }
.pager-button { border: 1px solid var(--line); background: #fff; border-radius: 6px; min-width: 30px; height: 28px; padding: 0 8px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--ink-2, #445); }
.pager-button:hover { border-color: var(--line-strong); }
.pager-button[aria-current="page"] { background: var(--forest-2); border-color: var(--forest-2); color: #fff; }

/* ── 회차관리 (2026-09-15 요청 3) ────────────────────────────────── */
.credit-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.credit-toolbar .ops-field { min-width: 150px; }
.credit-toolbar .ops-actions { margin-left: auto; }
.credit-actionbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fbfcfd; }
.credit-selected { font-size: 13px; font-weight: 700; }
.credit-selected strong { color: var(--forest-2); font-size: 15px; }
.credit-amount { min-width: 90px; }
.credit-actionbar .policy-copy { flex-basis: 100%; margin: 0; }
.credit-notice { margin: 10px 0 0; }
.credit-notice:empty { display: none; }

/* 잔여회차 만료(0회) 학생 — 검색줄 바로 아래 (2026-10-07 2차 요청 1) */
.credit-zero-box { margin: 12px 0 0; border: 1px solid #f0c9c2; border-radius: 10px; background: #fdf5f4; padding: 10px 12px; }
.credit-zero-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.credit-zero-head strong { font-size: 13px; color: #a93226; }
.credit-zero-count { font-size: 11.5px; font-weight: 700; color: #6b7891; }
.credit-zero-head .ghost-button { margin-left: auto; padding: 3px 8px; font-size: 11.5px; }
.credit-zero-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-height: 148px; overflow: auto; }
.credit-zero-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #f0c9c2; border-radius: 999px;
  background: #fff; padding: 4px 10px; font-size: 12px; font-weight: 700; color: #22303f; cursor: pointer; font-family: inherit; }
.credit-zero-chip:hover { border-color: #c0392b; color: #c0392b; }
.credit-zero-chip small { font-weight: 700; color: #c0392b; }
.credit-zero-empty { font-size: 12px; color: #6b7891; font-weight: 700; }

/* 회차 차감을 꺼 둔 날 — 숫자는 남기되 비활성으로 보인다 */
.credit-mark.credit-skip { background: #fff; border: 1px dashed var(--line-strong); color: #9aa6b8; text-decoration: line-through; }
.credit-table td.credit-day button.credit-mark.credit-skip { border: 1px dashed var(--line-strong); }
#creditAutoCount { margin-left: 4px; font-weight: 800; color: #b8791f; }

/* 검색 전 안내 */
.credit-hint { margin: 14px 0; padding: 16px; border: 1px dashed var(--line-strong); border-radius: 10px;
  text-align: center; font-size: 12.5px; color: #6b7891; font-weight: 700; background: #fafbfd; }

.credit-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.credit-table { border-collapse: collapse; width: 100%; font-size: 12px; white-space: nowrap; }
.credit-table thead th { position: sticky; top: 0; background: #eef1f6; color: #33415a; font-weight: 800; font-size: 11px; padding: 6px 6px; border-bottom: 1px solid var(--line-strong); text-align: left; }
.credit-table thead th.credit-day { text-align: center; min-width: 26px; padding: 4px 2px; }
.credit-table thead th.credit-day span { display: block; }
.credit-table thead th.credit-day small { display: block; font-weight: 600; color: #6b7891; }
.credit-table tbody td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.credit-table tbody tr:hover { background: #f7f9fb; }
.credit-table tbody tr.is-archived { opacity: 0.6; }
.credit-table .credit-pick { width: 32px; text-align: center; }
.credit-table .credit-class { min-width: 210px; white-space: normal; }
.credit-table .credit-class small { display: block; color: var(--muted); font-weight: 600; font-size: 11px; }
.credit-table .credit-name { min-width: 84px; }
.credit-table .credit-state { min-width: 64px; }
.credit-table .credit-left { min-width: 60px; text-align: center; font-weight: 800; }
.credit-table .credit-left.credit-low { color: #b8791f; }
.credit-table .credit-left.credit-zero { color: #c0392b; }
.credit-table td.credit-day { text-align: center; padding: 4px 2px; min-width: 26px; }
.credit-table td.credit-day.has-mark { background: #f4f7fd; }
.credit-mark { display: inline-block; min-width: 16px; height: 16px; line-height: 16px; border-radius: 4px; font-size: 10px; font-weight: 800; font-style: normal; color: #22303f; }
.credit-mark.credit-done { background: #fdf0bf; }
.credit-mark.credit-off { background: #fbdcd9; }
.credit-mark.credit-makeup { background: #d9e7fd; }
.credit-loading { padding: 16px; color: var(--muted); }

@media (max-width: 720px) {
  .credit-toolbar .ops-actions { margin-left: 0; }
  .credit-table .credit-class { min-width: 150px; }
}


/* ── 목록이 박스 하단까지 채우도록 (2026-09-18 요청 1·2·3) ─────────
   패널을 세로 flex 로 만들고 목록에 남은 높이를 전부 준다.
   이전에는 목록이 260px 로 잘려 패널 아래쪽이 비어 보였다. */
.ops-panel { display: flex; flex-direction: column; }
/* display 를 주면 브라우저 기본 [hidden]{display:none} 을 덮어쓰므로 다시 숨긴다.
   (학생 상세 패널이 항상 보이던 문제 예방) */
.ops-panel[hidden],
.two-column-grid > .surface[hidden] { display: none !important; }
.ops-panel > .record-list { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
.ops-panel:has(> .record-list) { min-height: 520px; }
.ops-panel > .list-pager { flex: 0 0 auto; }
.ops-panel > h3,
.ops-panel > .section-heading,
.ops-panel > #studentSearch,
.ops-panel > .policy-copy { flex: 0 0 auto; }

/* 보강·일정 변경의 '처리 현황'과 사용자 계정의 '발급 계정'도 같은 방식으로 아래까지 내린다. */
.two-column-grid > .surface { display: flex; flex-direction: column; }
.two-column-grid > .surface > .record-list { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
.two-column-grid > .surface:has(> .record-list) { min-height: 520px; }

/* 스크롤바가 눈에 보이도록(웹킷 계열) */
.ops-panel > .record-list::-webkit-scrollbar,
.two-column-grid > .surface > .record-list::-webkit-scrollbar { width: 10px; }
.ops-panel > .record-list::-webkit-scrollbar-thumb,
.two-column-grid > .surface > .record-list::-webkit-scrollbar-thumb { background: #c9cfd8; border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
.ops-panel > .record-list::-webkit-scrollbar-thumb:hover,
.two-column-grid > .surface > .record-list::-webkit-scrollbar-thumb:hover { background: #aab3c0; background-clip: content-box; }

@media (max-width: 900px) {
  .ops-panel:has(> .record-list),
  .two-column-grid > .surface:has(> .record-list) { min-height: 360px; }
}


/* ── 강사 임금 내역이 박스 밖으로 넘치지 않게 (2026-09-28 요청 3) ───
   금액이 길어 한 줄에 몰리면 오른쪽으로 삐져나갔다. 줄을 나누고 글자를 줄인다. */
.wage-item { align-items: flex-start; gap: 8px; }
.wage-item .record-main { min-width: 0; flex: 1 1 auto; }
.wage-item .record-main strong { font-size: 13px; }
.wage-item .record-main strong small { font-weight: 700; color: var(--muted); margin-left: 4px; }
.wage-item .wage-figures,
.wage-item .wage-payout,
.wage-item .wage-memo { display: block; font-size: 11.5px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.wage-item .wage-payout strong { font-size: 12.5px; }
.wage-item .wage-memo { color: var(--muted); }
.wage-item .record-actions { flex: 0 0 auto; gap: 4px; }
.wage-item .record-actions .ghost-button { padding: 3px 8px; font-size: 11px; }

/* 임금 요약 카드도 좁은 칸에서 줄어들도록 */
#wageSummary { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
#wageSummary .kpi-card { padding: 8px 10px; }
#wageSummary .kpi-card span { font-size: 10.5px; }
#wageSummary .kpi-card strong { font-size: 13px; overflow-wrap: anywhere; }

/* 어떤 목록도 패널 밖으로 밀려 나가지 않도록 공통 방어 */
.record-list { min-width: 0; }
.record-item { min-width: 0; }
.record-item .record-main { min-width: 0; }
.record-item .record-main span { overflow-wrap: anywhere; }


/* ── 수업 등록 상황: 수정 폼 (2026-10-05 요청 1) ──────────────────── */
.lesson-edit { display: block; border: 1px solid var(--line-strong); background: #fbfcfd; }
.lesson-edit h5 { margin: 0 0 8px; font-size: 12px; font-weight: 800; color: var(--forest-2); }
.lesson-edit .ops-field { margin-bottom: 6px; }
.lesson-edit .ops-actions { margin-top: 8px; }
.lesson-mini .record-main small { color: var(--muted); font-weight: 600; }

/* ── 회차관리: 날짜 칸을 누를 수 있게 (요청 4) ───────────────────── */
.credit-table td.credit-day button.credit-mark { border: 0; cursor: pointer; font-family: inherit; }
.credit-table td.credit-day button.credit-mark:hover { outline: 2px solid var(--forest-2); outline-offset: 1px; }
.credit-table td.credit-day.is-empty { padding: 2px; }
.credit-add { width: 18px; height: 18px; line-height: 16px; border-radius: 4px; border: 1px dashed var(--line-strong);
  background: transparent; color: #9aa4b2; font-size: 12px; font-weight: 800; cursor: pointer; padding: 0; opacity: 0; }
.credit-table tbody tr:hover .credit-add { opacity: 1; }
.credit-add:hover { border-color: var(--forest-2); color: var(--forest-2); background: #eef5f1; opacity: 1; }

/* ── 운영처리함: 회차·수납 묶음 (요청 2) ─────────────────────────── */
.exception-group { margin-bottom: 18px; }
.exception-group > h4 { margin: 0 0 4px; font-size: 14px; }
.exception-group > h4 small { font-weight: 700; color: var(--muted); margin-left: 6px; }
.exception-group > .policy-copy { margin: 0 0 8px; }
.inbox-row { border-left: 3px solid var(--line-strong); }
.inbox-row.sev-high { border-left-color: #c0392b; }
.inbox-row.sev-medium { border-left-color: #b8791f; }
.inbox-row .record-main span { display: block; margin-top: 2px; }


/* ── 학생 목록 도구줄: 재원/휴원/퇴원 보기 + 전체보기 (2026-10-07) ── */
.student-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 4px; flex: 0 0 auto; }
.seg-group { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg-button { border: 0; background: #fff; padding: 5px 10px; font-size: 12px; font-weight: 700;
  color: var(--ink-2, #445); cursor: pointer; border-right: 1px solid var(--line); font-family: inherit; }
.seg-button:last-child { border-right: 0; }
.seg-button:hover { background: #f3f6f9; }
.seg-button.is-on { background: var(--forest-2); color: #fff; }
.student-viewmode { font-size: 12px; font-weight: 700; }
.student-count { margin-left: auto; font-size: 11.5px; color: var(--muted); font-weight: 700; }

/* 전체보기일 때는 목록 자체가 스크롤되도록 높이를 고정한다(화면이 끝없이 길어지지 않게). */
.record-list.is-scroll-all { max-height: min(62vh, 640px); }


/* 수업 수정 폼의 요일 다중 선택 (2026-10-08 감사 D-02 수정) */
.lesson-wd-group { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 6px 0 2px; }
.ops-check.lesson-wd { font-size: 12px; font-weight: 700; white-space: nowrap; }


/* 마이너스 잔여 회차 — 0회와 구별해 '초과 수강'임을 드러낸다(정책 P-1) */
.credit-table .credit-left.credit-minus { color: #fff; background: #c0392b; border-radius: 4px; font-weight: 800; }
.credit-zero-chip.is-minus { border-color: #c0392b; background: #fdecea; }
.credit-zero-chip.is-minus small { color: #fff; background: #c0392b; border-radius: 999px; padding: 1px 6px; }

/* 수업 요일 고르개 — 여러 개를 고르면 주 2~3회가 된다(2026-10-09 요청). */
.weekday-picker { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 2px; }
.weekday-chip { position: relative; display: inline-flex; }
.weekday-chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.weekday-chip span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; padding: 7px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 800; color: var(--ink-soft); transition: .12s;
}
.weekday-chip input:checked + span { background: var(--forest); border-color: var(--forest); color: #fff; }
.weekday-chip input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.weekday-count { font-size: 11px; font-weight: 700; color: var(--ink-soft); margin-left: 4px; }

/* 수납 내역 조회 합계 줄 */
.history-totals { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 8px 0 10px; }
.history-totals span { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.history-totals strong { font-size: 14px; color: var(--forest); margin-left: 4px; }

/* 로그인 화면 안내 — 5회 실패 시 잠금(2026-10-10) */
.auth-note { margin: 10px 2px 0; font-size: 12px; line-height: 1.5; color: var(--ink-soft); }
.auth-note strong { color: var(--forest); }

/* ── 2026-10-15 요청 ─────────────────────────────────────────── */

/* 요일별 시작 시간: 요일을 두 개 이상 고르면 열린다. */
.weekday-times[hidden] { display: none !important; }
.weekday-time-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.weekday-time-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.weekday-time-row > span {
  flex: 0 0 auto;
  min-width: 48px;
  font-size: 0.86rem;
}
.weekday-time-row input[type="time"] { flex: 1 1 auto; min-width: 0; }

/* 보강·처리현황: 누구 수업인지를 가장 먼저 읽게 한다. */
.makeup-who { font-size: 1.02rem; }

/* 수업 상세 상단: 학생 이름이 제일 크고, 바로 아래가 담당 강사. */
.detail-hero-who {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 6px 0 2px;
  word-break: keep-all;
}
.detail-hero-teacher { margin: 0 0 6px; font-size: 1rem; }
.detail-hero-teacher strong { font-size: 1.08rem; }
