:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --text: #20242a;
  --muted: #6c7480;
  --line: #dfe3e8;
  --primary: #20242a;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(22, 28, 36, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

button, input, a { font: inherit; }

a { color: inherit; text-decoration: none; }

.shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
}

.brand-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.back-link {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
}

.hero {
  padding: 44px;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  border: 1px solid rgba(223, 227, 232, 0.9);
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card {
  min-height: 210px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(22, 28, 36, 0.12);
}

.card .label {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef0f3;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card h2 {
  margin: 18px 0 8px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.card .go {
  margin-top: 24px;
  font-weight: 800;
}

.panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel h1 {
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: -0.045em;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.form-row {
  margin-top: 28px;
}

.form-row label {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 800;
}

.form-row input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  outline: none;
}

.primary-button {
  width: 100%;
  height: 52px;
  margin-top: 16px;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.placeholder {
  min-height: 150px;
  padding: 24px;
  border: 1px dashed #bcc3cc;
  border-radius: 18px;
  background: #fafbfc;
}

.placeholder h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.placeholder p {
  font-size: 14px;
}

.notice {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #eef0f3;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  .placeholder-grid { grid-template-columns: 1fr; }
  .hero { padding: 30px; }
  .shell { width: min(100% - 28px, 1120px); padding-top: 28px; }
}

/* 2차 수정: 강사 로그인 중심 구조 */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f8f7ff 0%, #eef3ff 55%, #fff7f2 100%);
}

.login-shell {
  width: min(1120px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: stretch;
}

.brand-panel,
.login-card {
  border-radius: 28px;
  padding: 48px;
  box-shadow: 0 24px 70px rgba(36, 43, 76, 0.12);
}

.brand-panel {
  color: #fff;
  background: linear-gradient(145deg, #322c73 0%, #6557c7 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 500px;
}

.brand-panel h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.08;
}

.brand-panel p {
  max-width: 620px;
  font-size: 20px;
  line-height: 1.7;
  opacity: 0.9;
}

.login-card {
  background: #fff;
}

.card-heading h2 {
  margin: 16px 0 8px;
  font-size: 34px;
}

.card-heading p,
.login-help,
.muted {
  color: #687089;
  line-height: 1.6;
}

.step-badge,
.today-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eeeafe;
  color: #5143b8;
  font-weight: 800;
  padding: 8px 13px;
  font-size: 13px;
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.login-form label {
  margin-top: 8px;
  font-weight: 800;
}

.login-form input {
  width: 100%;
  border: 1px solid #d9dceb;
  border-radius: 14px;
  padding: 16px 17px;
  font-size: 17px;
  outline: none;
}

.login-form input:focus {
  border-color: #6657c7;
  box-shadow: 0 0 0 4px rgba(102, 87, 199, 0.12);
}

.full-button {
  width: 100%;
  margin-top: 18px;
}

.dashboard-shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 80px;
}

.welcome-row,
.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.welcome-row h2,
.schedule-panel h2,
.access-generator-panel h2 {
  margin: 7px 0 8px;
  font-size: 30px;
}

.status-label {
  margin: 0;
  color: #5f51c4;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.date-chip {
  min-width: 235px;
  border-radius: 18px;
  padding: 17px 20px;
  background: #f1efff;
  color: #332a77;
  display: grid;
  gap: 5px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.info-card,
.schedule-panel,
.access-generator-panel {
  border: 1px solid #e1e4ef;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(42, 48, 79, 0.06);
}

.info-card {
  padding: 22px 24px;
  display: grid;
  gap: 9px;
}

.info-card span,
.access-block span {
  color: #747b91;
  font-size: 14px;
  font-weight: 800;
}

.info-card strong {
  font-size: 18px;
  line-height: 1.55;
}

.wide-card {
  grid-column: 1 / -1;
}

.schedule-panel {
  margin-top: 22px;
  padding: 28px;
}

.schedule-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid #e4e6ef;
  border-radius: 16px;
  padding: 18px;
}

.schedule-item p {
  margin: 7px 0 0;
  color: #70768a;
}

.schedule-day {
  font-weight: 900;
  color: #4d5368;
}

.current-day {
  border: 2px solid #6a59d1;
  background: #f6f4ff;
  box-shadow: 0 10px 28px rgba(91, 74, 197, 0.12);
}

.access-generator-panel {
  margin-top: 22px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr minmax(330px, 0.7fr);
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, #f1efff 100%);
}

.access-generator-panel p {
  color: #686f85;
  line-height: 1.65;
}

.giant-button {
  min-height: 118px;
  font-size: 21px;
  line-height: 1.4;
  padding: 26px;
}

.popup-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, #5d4fc5 0%, #2c275f 70%);
  color: #fff;
}

.access-popup-shell {
  width: min(880px, calc(100% - 48px));
  text-align: center;
  padding: 46px;
}

.popup-kicker {
  margin: 22px 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: #d9d4ff;
}

.access-popup-shell h1 {
  margin: 0 0 30px;
  font-size: clamp(32px, 5vw, 54px);
}

.access-display {
  display: grid;
  gap: 18px;
}

.access-block {
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  color: #25213f;
  display: grid;
  gap: 13px;
}

.access-block strong {
  font-size: clamp(28px, 5vw, 54px);
  overflow-wrap: anywhere;
}

.code-block {
  background: #fff3c4;
}

.code-block strong {
  letter-spacing: 0.12em;
  color: #382f00;
  font-size: clamp(48px, 9vw, 86px);
}

.popup-guide {
  margin: 28px 0 22px;
  font-size: 19px;
}

@media (max-width: 820px) {
  .login-shell,
  .access-generator-panel {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: auto;
  }

  .welcome-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-column: auto;
  }

  .schedule-item {
    grid-template-columns: 1fr;
  }
}

/* 3차 수정: 수강생 입장 및 환영 화면 */
.student-access-panel {
  margin-top: 7vh;
}

.student-welcome-page {
  background:
    radial-gradient(circle at 14% 12%, rgba(101, 87, 199, 0.13), transparent 32%),
    radial-gradient(circle at 88% 78%, rgba(255, 180, 132, 0.17), transparent 34%),
    #f7f8fb;
}

.student-welcome-card {
  min-height: 470px;
  padding: 72px 64px;
  border: 1px solid rgba(223, 227, 232, 0.95);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(36, 43, 76, 0.11);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.welcome-eyebrow {
  display: inline-flex;
  padding: 9px 15px;
  border-radius: 999px;
  background: #eeeafe;
  color: #5143b8;
  font-size: 14px;
  font-weight: 800;
}

.student-welcome-card h1 {
  margin: 24px 0 20px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.welcome-message {
  margin: 0;
  color: #687089;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.8;
}

@media (max-width: 720px) {
  .student-welcome-card {
    min-height: 400px;
    padding: 48px 24px;
  }
}

/* 3차 수정: 고정형 강사 대시보드 및 수강생 접속 흐름 */
.dashboard-topbar {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 30px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.session-note {
  padding: 9px 13px;
  border-radius: 999px;
  background: #fff3dc;
  color: #8a5a00;
  font-size: 13px;
  font-weight: 800;
}

.generation-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: #5f6680;
  font-size: 14px;
  line-height: 1.55;
}

.direct-url-block strong {
  font-size: clamp(24px, 3.7vw, 42px) !important;
}

.student-login-page,
.student-welcome-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f7f6ff, #edf2ff 52%, #fffaf5);
}

.student-login-shell,
.student-welcome-shell {
  width: min(760px, calc(100% - 40px));
}

.student-login-card,
.student-welcome-card {
  padding: 54px;
  border: 1px solid rgba(214, 218, 233, .9);
  border-radius: 30px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 28px 80px rgba(42, 48, 78, .13);
  text-align: center;
}

.student-login-card h1,
.student-welcome-card h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -.055em;
  line-height: 1.12;
}

.student-login-card > p,
.student-welcome-card > p {
  color: #687089;
  line-height: 1.8;
  font-size: 18px;
}

.student-code-form {
  max-width: 500px;
  margin: 34px auto 0;
  text-align: left;
}

.student-code-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.student-code-form input {
  width: 100%;
  height: 62px;
  padding: 0 20px;
  border: 1px solid #d9dceb;
  border-radius: 16px;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.student-code-form .primary-button {
  height: 58px;
}

.welcome-eyebrow {
  margin-top: 26px;
  color: #6657c7;
  font-weight: 900;
}

.welcome-message {
  margin-top: 22px !important;
}

.waiting-indicator {
  display: inline-flex;
  gap: 8px;
  margin-top: 30px;
}

.waiting-indicator span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7668cf;
  animation: waitingPulse 1.15s infinite ease-in-out;
}

.waiting-indicator span:nth-child(2) { animation-delay: .15s; }
.waiting-indicator span:nth-child(3) { animation-delay: .3s; }

@keyframes waitingPulse {
  0%, 70%, 100% { opacity: .25; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-5px); }
}

@media (max-width: 760px) {
  .dashboard-topbar,
  .topbar-actions { align-items: flex-start; }
  .dashboard-topbar { flex-direction: column; }
  .topbar-actions { width: 100%; justify-content: space-between; }
  .student-login-card,
  .student-welcome-card { padding: 34px 24px; }
}


/* 5차 수정: 1080p 한 화면 기준 강사 대시보드 압축 */
@media (min-width: 1000px) {
  .dashboard-topbar {
    padding-top: 18px;
    margin-bottom: 14px;
  }

  .dashboard-topbar h1 {
    margin: 4px 0 0;
    font-size: 28px;
  }

  .dashboard-shell {
    width: min(1320px, calc(100% - 40px));
    padding: 10px 0 26px;
  }

  .welcome-row {
    min-height: 90px;
  }

  .welcome-row h2 {
    margin: 4px 0 4px;
    font-size: 28px;
  }

  .welcome-row .muted {
    margin: 0;
    font-size: 13px;
  }

  .today-focus {
    min-width: 270px;
    padding: 14px 20px;
  }

  .today-focus strong {
    font-size: 20px;
    line-height: 1.2;
  }

  .today-focus span {
    font-size: 18px;
    font-weight: 900;
  }

  .compact-info-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
  }

  .compact-info-grid .info-card {
    min-height: 92px;
    padding: 15px 18px;
    gap: 5px;
  }

  .compact-info-grid .info-card strong {
    font-size: 16px;
    line-height: 1.4;
  }

  .compact-info-grid .wide-card {
    grid-column: span 2;
  }

  .schedule-panel {
    margin-top: 14px;
    padding: 18px 20px;
  }

  .schedule-panel .section-heading-row h2 {
    margin: 3px 0 0;
    font-size: 22px;
  }

  .schedule-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }

  .schedule-item {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 12px 13px;
    min-height: 86px;
  }

  .schedule-item strong {
    font-size: 15px;
  }

  .schedule-item p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
  }

  .schedule-day {
    font-size: 13px;
  }

  .compact-access-panel {
    margin-top: 14px;
    padding: 18px 20px;
    grid-template-columns: 1fr 360px;
    gap: 22px;
  }

  .compact-access-panel h2 {
    margin: 3px 0 4px;
    font-size: 21px;
  }

  .compact-access-panel p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
  }

  .compact-access-panel .giant-button {
    min-height: 84px;
    margin: 0;
    font-size: 19px;
    padding: 18px 20px;
    align-self: end;
  }

  .compact-access-panel .generation-status {
    grid-column: 2;
    margin: -12px 0 0;
    text-align: right;
  }
}
.student-resource-list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.student-resource-list .primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  padding: 16px 24px;
  font-size: 20px;
  font-weight: 700;
}

.student-welcome-card {
  width: min(760px, calc(100vw - 48px));
  padding: 56px 64px;
}

.student-welcome-card h1 {
  font-size: clamp(42px, 4vw, 64px);
  line-height: 1.15;
}

.student-welcome-card .welcome-message {
  font-size: 19px;
  line-height: 1.7;
}
.resource-dialog {
  width: min(560px, calc(100vw - 48px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(31, 36, 45, 0.22);
}

.resource-dialog::backdrop {
  background: rgba(31, 36, 45, 0.42);
  backdrop-filter: blur(3px);
}

.resource-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 32px 20px;
}

.resource-dialog-header h2 {
  margin: 10px 0 0;
  font-size: 30px;
}

.dialog-close-button {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f0eefc;
  color: #24272d;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.resource-dialog-content {
  display: grid;
  gap: 14px;
  padding: 0 32px 32px;
}

.resource-item-button {
  width: 100%;
  min-height: 58px;
  padding: 14px 20px;
  border: 1px solid #dedee8;
  border-radius: 14px;
  background: #ffffff;
  color: #24272d;
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.admin-program-form {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px 24px;
  align-items: center;
  padding: 0 32px 32px;
}

.admin-program-form > label {
  font-size: 16px;
  font-weight: 700;
  color: #24272d;
}

.admin-program-form input[type="text"],
.admin-program-form input[type="url"],
.admin-program-form select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #dedee8;
  border-radius: 12px;
  background: #ffffff;
  color: #24272d;
  font-size: 16px;
  box-sizing: border-box;
}

.admin-checkbox-row {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
}

.admin-checkbox-row input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.admin-program-form .primary-button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  font-size: 17px;
}

.admin-form-help {
  grid-column: 1 / -1;
  margin: 0;
  color: #6f7785;
  font-size: 14px;
  line-height: 1.6;
}

body.admin-page .resource-dialog {
  width: min(760px, calc(100vw - 64px));
}
.registered-programs {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding-top: 24px;
  border-top: 1px solid #e4e4ec;
}

.registered-programs-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.registered-programs-heading h3 {
  margin: 0;
  font-size: 19px;
}

.registered-programs-heading span {
  color: #717987;
  font-size: 14px;
}

.registered-program-list {
  display: grid;
  gap: 10px;
}

.registered-program-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid #dedee8;
  border-radius: 12px;
  background: #fafaff;
}

.registered-program-item strong {
  font-size: 16px;
}

.registered-program-item p {
  margin: 5px 0 0;
  color: #717987;
  font-size: 14px;
}

.program-edit-button {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid #d4d1ed;
  border-radius: 9px;
  background: #ffffff;
  color: #5140b7;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.program-search-wrap {
  margin-bottom: 14px;
}

.program-search-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 11px 15px;
  border: 1px solid #dedee8;
  border-radius: 12px;
  background: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
}

.program-search-wrap input:focus {
  border-color: #7667d8;
  outline: 3px solid rgba(118, 103, 216, 0.14);
}

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

.registered-program-item[hidden] {
  display: none;
}
.software-info-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.software-info-card > div {
  display: grid;
  gap: 8px;
}

.program-manage-button {
  flex: 0 0 auto;
  padding: 11px 18px;
  border: 1px solid #d4d1ed;
  border-radius: 10px;
  background: #ffffff;
  color: #5140b7;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.program-selector-content {
  display: grid;
  gap: 16px;
  padding: 0 32px 32px;
}

.program-selector-search {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid #dedee8;
  border-radius: 12px;
  font-size: 16px;
  box-sizing: border-box;
}

.teacher-program-list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.teacher-program-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid #dedee8;
  border-radius: 12px;
  background: #fafaff;
  cursor: pointer;
}

.teacher-program-item input {
  width: 19px;
  height: 19px;
  margin: 0;
}

.teacher-program-item span {
  font-size: 16px;
  font-weight: 700;
}

.teacher-program-item[hidden] {
  display: none;
}
.plan-import-dialog {
  width: min(920px, calc(100% - 40px));
  max-width: 920px;
}

.plan-import-content {
  display: grid;
  gap: 26px;
  padding: 0 32px 32px;
}

.plan-upload-section {
  display: grid;
  gap: 14px;
}

.plan-file-label {
  display: grid;
  gap: 7px;
  padding: 24px;
  border: 2px dashed #d8d4ec;
  border-radius: 14px;
  background: #fafaff;
  cursor: pointer;
  text-align: center;
}

.plan-file-label strong {
  font-size: 18px;
}

.plan-file-label span {
  color: #717987;
  font-size: 14px;
}

#plan-file {
  width: 100%;
}

.selected-plan-file {
  margin: 0;
  padding: 12px 15px;
  border-radius: 10px;
  background: #f3f1ff;
  color: #5140b7;
  font-size: 14px;
  font-weight: 700;
}

#extract-plan-data:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.plan-review-section {
  padding-top: 24px;
  border-top: 1px solid #e4e4ec;
}

.plan-review-section[hidden] {
  display: none;
}

.plan-review-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.plan-review-heading h3 {
  margin: 4px 0 0;
  font-size: 22px;
}

.review-badge {
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff4d9;
  color: #8a6414;
  font-size: 13px;
  font-weight: 700;
}

.plan-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.plan-field {
  display: grid;
  gap: 8px;
}

.plan-field-wide {
  grid-column: 1 / -1;
}

.plan-field label {
  font-size: 14px;
  font-weight: 700;
}

.plan-field input,
.plan-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dedee8;
  border-radius: 10px;
  background: #ffffff;
  font: inherit;
  box-sizing: border-box;
}

.plan-field textarea {
  resize: vertical;
  line-height: 1.6;
}

.plan-field input:focus,
.plan-field textarea:focus {
  border-color: #7667d8;
  outline: 3px solid rgba(118, 103, 216, 0.14);
}

.plan-create-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 720px) {
  .plan-review-grid {
    grid-template-columns: 1fr;
  }

  .plan-field-wide {
    grid-column: auto;
  }

  .plan-import-content {
    padding-right: 20px;
    padding-left: 20px;
  }
}

/* 대표 보고용 수정: 강사 로그인 그린 테마 및 정렬 */
.login-page {
  background: linear-gradient(135deg, #f4fbf6 0%, #eef8f1 55%, #fbfdf8 100%);
}

.brand-panel {
  background: linear-gradient(145deg, #0f5d3f 0%, #2f8f62 100%);
}

.brand-panel .login-eyebrow {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: left;
  white-space: nowrap;
}

.brand-panel h1 {
  text-align: center;
  font-size: clamp(42px, 4.6vw, 64px);
  line-height: 1.18;
  letter-spacing: -0.05em;
}

.brand-panel .brand-guide {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  white-space: nowrap;
  font-size: 18px;
}

.step-badge,
.today-badge {
  background: #e7f5ec;
  color: #17633f;
}

.login-form input:focus {
  border-color: #2f8f62;
  box-shadow: 0 0 0 4px rgba(47, 143, 98, 0.14);
}

.login-card .primary-button {
  background: #17633f;
}

.login-help-nowrap {
  white-space: nowrap;
  font-size: 14px;
}

@media (max-width: 980px) {
  .brand-panel .brand-guide,
  .login-help-nowrap {
    white-space: normal;
  }
}


/* 대표 보고용 2차 수정: 강사 로그인 세부 정렬 */
.login-card .card-heading {
  position: relative;
}

.login-card .step-badge {
  display: flex;
  width: fit-content;
  margin-left: auto;
}

.brand-panel .login-eyebrow {
  margin-top: -22px;
  margin-bottom: 16px;
  text-align: center;
}

.brand-panel h1 {
  display: grid;
  gap: 4px;
  margin-top: 0;
}

.brand-panel h1 .education-title {
  display: block;
  font-family: "Nanum Myeongjo", "Noto Serif KR", "Batang", serif;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.brand-panel h1 .system-title {
  display: block;
  font-size: 0.78em;
  font-weight: 800;
  letter-spacing: -0.045em;
}

@media (max-width: 980px) {
  .brand-panel .login-eyebrow {
    margin-top: 0;
  }
}

/* 대표 보고용 3차 수정: 무게감 있는 딥 그린과 은은한 그라데이션 */
.brand-panel {
  background: linear-gradient(145deg, #083f2d 0%, #0d5a3d 48%, #1f7850 100%);
  box-shadow: 0 28px 76px rgba(8, 63, 45, 0.22);
}

.login-page {
  background:
    radial-gradient(circle at 18% 18%, rgba(31, 120, 80, 0.10), transparent 34%),
    radial-gradient(circle at 82% 76%, rgba(13, 90, 61, 0.07), transparent 38%),
    linear-gradient(135deg, #f3faf5 0%, #edf6f0 54%, #f8fbf7 100%);
}

.login-card .primary-button {
  background: linear-gradient(135deg, #0b5037 0%, #176b48 100%);
}

.login-form input:focus {
  border-color: #176b48;
  box-shadow: 0 0 0 4px rgba(23, 107, 72, 0.14);
}

/* 대표 보고용 4차 수정: 제목 글꼴 및 굵기 조정 */
.brand-panel h1 .education-title {
  font-family: inherit;
}

.brand-panel h1 .system-title {
  font-weight: 400;
}

/* 대표 보고용 5차 수정: 왼쪽 패널의 시각적 중심 재배치 */
.brand-panel {
  position: relative;
  display: block;
}

.brand-panel .login-eyebrow {
  position: absolute;
  top: 88px;
  left: 48px;
  right: 48px;
  margin: 0;
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.035em;
}

.brand-panel h1 {
  position: absolute;
  top: 50%;
  left: 42px;
  right: 42px;
  transform: translateY(-50%);
  margin: 0;
  text-align: center;
}

.brand-panel .brand-guide {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 76px;
  margin: 0;
  text-align: center;
}

@media (max-width: 980px) {
  .brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
  }

  .brand-panel .login-eyebrow,
  .brand-panel h1,
  .brand-panel .brand-guide {
    position: static;
    transform: none;
    margin: 0;
  }
}

/* 수강생 환영 화면 최종 디자인: 그린 배지와 가로형 자료 버튼 */
.welcome-eyebrow {
  display: inline-flex;
  margin-top: 26px;
  padding: 9px 15px;
  border: 1px solid #b7d9c4;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8f5ed 0%, #cfe7d8 52%, #bcdcc8 100%);
  color: #245f43;
  font-size: 14px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.student-resource-list {
  width: min(520px, 100%);
  display: grid;
  gap: 18px;
  margin: 38px auto 0;
}

.student-resource-list .primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  margin-top: 0;
  padding: 18px 32px;
  border: 1px solid #8fb99f;
  border-radius: 16px;
  background: linear-gradient(135deg, #d5e8dc 0%, #b8d7c5 48%, #9fc6b0 100%);
  color: #174b35;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow:
    0 8px 20px rgba(45, 91, 67, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.student-resource-list .primary-button:hover,
.student-resource-list .primary-button:focus-visible {
  background: linear-gradient(135deg, #5e9c78 0%, #3f7f5d 48%, #286647 100%);
  color: #ffffff;
  border-color: #286647;
  box-shadow:
    0 14px 30px rgba(35, 83, 58, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  outline: none;
}

.student-resource-list .primary-button:active {
  background: linear-gradient(135deg, #357454 0%, #285f45 100%);
  color: #ffffff;
  border-color: #285f45;
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(35, 83, 58, 0.22);
}

@media (max-width: 720px) {
  .student-resource-list {
    width: 100%;
    gap: 14px;
    margin-top: 30px;
  }

  .student-resource-list .primary-button {
    min-height: 64px;
    padding: 16px 22px;
    font-size: 19px;
  }
}
