/* ============================================================
   공통 기본 스타일
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] { display: none !important; }

:root {
  --primary:    #4F6BED;
  --primary-dk: #3A54D4;
  --danger:     #E05252;
  --success:    #3DAB6E;
  --warning:    #F0A830;
  --gray-50:    #F8F9FA;
  --gray-100:   #F0F2F5;
  --gray-200:   #E4E6EB;
  --gray-400:   #ADB5BD;
  --gray-600:   #6C757D;
  --gray-800:   #343A40;
  --text:       #1A1D23;
  --radius:     8px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --cal-day-size: 32px;
}

body {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--gray-100);
  min-height: 100vh;
}

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

/* ============================================================
   버튼
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.btn-primary  { background: var(--primary);  color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dk); }

.btn-danger   { background: var(--danger);   color: #fff; }
.btn-success  { background: var(--success);  color: #fff; }
.btn-outline  { background: transparent; border: 1.5px solid var(--gray-200); color: var(--text); }
.btn-outline:hover:not(:disabled) { background: var(--gray-100); }

.btn-full { width: 100%; }
.btn-sm   { padding: 6px 14px; font-size: 13px; }

/* ============================================================
   폼
   ============================================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text);
  background: #fff;
  transition: border-color .15s;
  outline: none;
}

input[type="date"] {
  display: block;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
}

input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  flex-shrink: 0;
}

.date-text-input {
  font-variant-numeric: tabular-nums;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group input[readonly] {
  background: var(--gray-50);
  color: var(--gray-600);
}

/* ============================================================
   에러 메시지
   ============================================================ */

.error-msg {
  background: #FFF0F0;
  border: 1px solid #FFD0D0;
  border-radius: var(--radius);
  color: var(--danger);
  font-size: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
  white-space: pre-line;
}

/* ============================================================
   스피너
   ============================================================ */

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
}

.spinner:not([hidden]) {
  display: inline-block;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   로그인 페이지
   ============================================================ */

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EEF1FF 0%, #F8F9FF 100%);
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 24px 16px;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

.login-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 32px;
}

.login-notice {
  font-size: 13px;
  color: var(--gray-400);
  text-align: center;
  margin-top: 20px;
}

.login-contact {
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
  margin-top: 6px;
}

/* ============================================================
   공통 레이아웃 — 헤더
   ============================================================ */

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  background: #fff;
  padding: 0 24px;
  height: 56px;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .logo {
  justify-self: start;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.site-header nav {
  justify-self: center;
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.header-user {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--gray-600);
  font-size: 13px;
  white-space: nowrap;
}

.site-header nav a {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
  transition: background .12s, color .12s;
}

.site-header nav a:hover,
.site-header nav a.active {
  background: var(--gray-100);
  color: var(--primary);
}

.site-header .logout-btn {
  font-size: 13px;
  color: var(--gray-400);
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .12s;
}

.site-header .logout-btn:hover { background: var(--gray-100); }

/* ============================================================
   공통 레이아웃 — 컨텐츠
   ============================================================ */

.page-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 16px;
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.page-heading {
  margin-bottom: 24px;
}

.page-heading p {
  color: var(--gray-600);
}

/* ============================================================
   카드
   ============================================================ */

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  min-width: 0;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

/* ============================================================
   슬롯 상태 배지
   ============================================================ */

.slot-available  { background: #E8F7EE; color: #2A8C53; }
.slot-holding    { background: #FFF5E0; color: #B07E00; }
.slot-booked     { background: #F0F0F0; color: #888;    }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

/* 예약 상태 배지 */
.status-PENDING   { background: #EFF3FF; color: var(--primary);  }
.status-APPROVED  { background: #E8F7EE; color: var(--success);  }
.status-REJECTED  { background: #FFF0F0; color: var(--danger);   }
.status-CANCELLED { background: #F5F5F5; color: var(--gray-600); }

/* ============================================================
   예약 신청
   ============================================================ */

.reserve-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}

.reserve-side {
  position: sticky;
  top: 76px;
}

.notice {
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}

.slot-notice {
  margin: 14px 0 0;
}

.notice-info {
  background: #EFF3FF;
  border: 1px solid #D8E1FF;
  color: var(--primary-dk);
}

.notice-success {
  background: #E8F7EE;
  border: 1px solid #C8EBD7;
  color: #2A8C53;
}

.notice-warn {
  background: #FFF5E0;
  border: 1px solid #F9DEA7;
  color: #9B6B00;
}

.notice-error {
  background: #FFF0F0;
  border: 1px solid #FFD0D0;
  color: var(--danger);
}

.date-picker {
  display: block;
}

.date-chip {
  min-height: 44px;
  padding: 9px 10px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: #fff;
  color: var(--gray-800);
  font-weight: 600;
  cursor: pointer;
}

.date-chip:hover,
.date-chip.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #F5F7FF;
}

/* ============================================================
   월 캘린더
   ============================================================ */

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal-month-label {
  font-size: 15px;
  font-weight: 700;
}

.cal-nav {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-600);
  padding: 2px 8px;
  border-radius: 6px;
  transition: background .12s;
}

.cal-nav:hover { background: var(--gray-100); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.calendar-daynames {
  margin-bottom: 4px;
}

.cal-dayname {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  padding: 4px 0;
}

.cal-day {
  width: var(--cal-day-size);
  height: var(--cal-day-size);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  transition: background .12s, color .12s;
  color: var(--text);
}

.cal-blank { visibility: hidden; pointer-events: none; }

.cal-day.cal-today {
  font-weight: 700;
  color: var(--primary);
}

.cal-day.active {
  background: var(--primary);
  color: #fff;
}

.cal-day.cal-weekend:not(:disabled) {
  color: var(--gray-400);
}

.cal-day.cal-unavailable,
.cal-day:disabled {
  color: var(--gray-400);
  cursor: not-allowed;
  opacity: .5;
}

.cal-day.cal-past {
  color: var(--gray-400);
  text-decoration: line-through;
  opacity: .4;
  cursor: not-allowed;
}

.cal-day.cal-past:not(:disabled) {
  cursor: pointer;
  text-decoration: none;
  opacity: .45;
}

.cal-day:not(:disabled):not(.active):hover {
  background: var(--gray-100);
}

.slot-legend {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.slot-grid {
  display: grid;
  gap: 8px;
}

.slot-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 10px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.slot-row:hover:not(:disabled),
.slot-row.selected {
  border-color: var(--primary);
  background: #F8FAFF;
}

.slot-row:disabled {
  cursor: not-allowed;
  opacity: .75;
}

.slot-row.slot-dimmed {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

.slot-time {
  font-weight: 700;
}

.slot-rooms {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.form-row {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.form-row.two {
  grid-template-columns: repeat(2, minmax(140px, 1fr));
}

.room-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.room-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 88px;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: border-color .15s, background .15s, color .15s;
  text-align: center;
}

.room-option input[type="checkbox"] {
  display: none;
}

.room-option:not(.disabled):hover {
  border-color: var(--primary);
  background: #F5F7FF;
}

.room-option:has(input:checked):not(.disabled) {
  border-color: var(--primary);
  background: #EFF3FF;
  color: var(--primary);
  font-weight: 600;
}

.room-option.disabled {
  color: var(--gray-400);
  background: var(--gray-50);
  cursor: not-allowed;
  opacity: .7;
}

.radio-group {
  border: 0;
  padding: 0;
  display: block;
}

.radio-group legend {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
  display: block;
  padding: 0;
  float: none;
  width: 100%;
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  font-weight: 500;
  cursor: pointer;
}

.radio-group label input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.purpose-note {
  margin: 8px 0 0;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.5;
}

.muted {
  color: var(--gray-600);
  font-size: 13px;
}

.loading-row,
.empty-state {
  padding: 22px;
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius);
  color: var(--gray-600);
  background: #fff;
  text-align: center;
}

/* ============================================================
   내 예약
   ============================================================ */

.reservation-list {
  display: grid;
  gap: 12px;
}

.reservation-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.reservation-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.reservation-main h2 {
  font-size: 16px;
  margin-bottom: 8px;
}

.reservation-main p {
  margin-top: 4px;
  line-height: 1.45;
}

.reject-reason {
  color: var(--danger);
}

.reservation-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

/* ============================================================
   관리자
   ============================================================ */

.admin-page {
  max-width: 1180px;
}

.admin-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.compact-field {
  min-width: 180px;
  margin-bottom: 0;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-summary div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.admin-summary strong {
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
}

.admin-summary span {
  color: var(--gray-600);
  font-size: 13px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-reservation {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.admin-reservation-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-reservation-head h2 {
  font-size: 16px;
  margin-bottom: 6px;
}

.admin-reservation-head p {
  color: var(--gray-600);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.detail-grid dt {
  color: var(--gray-600);
  font-size: 12px;
  margin-bottom: 4px;
}

.detail-grid dd {
  font-size: 14px;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.settings-form {
  margin-bottom: 18px;
  min-width: 0;
}

.bulk-import-form {
  padding-top: 18px;
  border-top: 1px solid var(--gray-100);
}

.settings-subtitle {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.small {
  font-size: 13px;
}

.bulk-import-result {
  margin: 12px 0 0;
  white-space: pre-line;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
}

.settings-list {
  display: grid;
  gap: 8px;
}

.settings-search {
  display: grid;
  gap: 6px;
  margin: 18px 0 12px;
}

.settings-search label {
  color: var(--gray-800);
  font-size: 14px;
  font-weight: 600;
}

.settings-search input {
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 15px;
  outline: none;
}

.settings-search input:focus {
  border-color: var(--primary);
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.settings-row strong,
.settings-row span {
  min-width: 0;
}

.settings-row span {
  color: var(--gray-600);
  font-size: 13px;
}

.settings-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 2px 0;
  color: var(--gray-600);
  font-size: 13px;
}

.settings-pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   이메일 미리보기 모달
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-overlay[hidden] { display: none; }

.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px 20px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.modal-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--gray-800);
}

.email-preview {
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}

.email-preview > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 6px;
  align-items: baseline;
}

.email-preview dt {
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 500;
}

.email-preview dd {
  margin: 0;
  font-size: 14px;
  color: var(--gray-800);
  word-break: break-all;
}

.email-body-pre {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font-family: inherit;
  max-height: 200px;
  overflow-y: auto;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ── 공간 비밀번호 배너 ─────────────────────────────────────── */

.space-password {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f0f9f4;
  border-left: 3px solid #34a853;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #1e6e3e;
}

/* ── 관리자 일정 보기 ────────────────────────────────────────── */

.admin-heading-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-list-controls {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin: 0 0 12px;
}

.admin-list-controls .compact-field {
  margin-bottom: 0;
}

.view-toggle { display: flex; gap: 6px; }

.view-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

#scheduleView {
  display: grid;
  gap: 16px;
}

#scheduleView[hidden] {
  display: none;
}

.schedule-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.schedule-card--calendar {
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}

.schedule-date-picker {
  margin: 0 auto;
  max-width: 320px;
}

.notice-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
}

.schedule-date-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  margin: 0;
}

.schedule-table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.schedule-status-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--gray-600);
  font-size: 0.78rem;
  font-weight: 600;
}

.schedule-status-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.legend-dot-PENDING { background: #eff3ff; }
.legend-dot-APPROVED { background: #e8f7ee; }
.legend-dot-REJECTED { background: #fff0f0; }
.legend-dot-CANCELLED { background: #f5f5f5; }

.schedule-grid-container { overflow-x: auto; }

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 480px;
}

.schedule-table th {
  background: var(--gray-100);
  padding: 8px 12px;
  text-align: center;
  font-weight: 600;
  border: 1px solid var(--gray-200);
  white-space: nowrap;
}

.schedule-table td {
  border: 1px solid var(--gray-200);
  padding: 8px 10px;
  vertical-align: middle;
  min-width: 90px;
  text-align: center;
}

.schedule-time-cell {
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  background: var(--gray-50);
  color: var(--gray-600);
}

.schedule-cell-occupied {
  background: #eff3ff;
  cursor: pointer;
}

.schedule-cell-occupied:hover { background: #dde5ff; }

.schedule-status-PENDING { background: #eff3ff; }
.schedule-status-PENDING:hover { background: #dde5ff; }

.schedule-status-APPROVED { background: #e8f7ee; }
.schedule-status-APPROVED:hover { background: #d5efdf; }

.schedule-status-REJECTED { background: #fff0f0; }
.schedule-status-REJECTED:hover { background: #ffe1e1; }

.schedule-status-CANCELLED { background: #f5f5f5; }
.schedule-status-CANCELLED:hover { background: #eeeeee; }

.schedule-occupant { font-weight: 600; font-size: 0.875rem; }

.schedule-purpose {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 2px;
}

.schedule-empty {
  color: var(--gray-300);
  text-align: center;
}

.modal-box--wide { max-width: 560px; }

/* ============================================================
   반응형
   ============================================================ */

@media (max-width: 600px) {
  .login-card { padding: 28px 20px; }
  .page-content { padding: 20px 12px; }
  .site-header {
    height: auto;
    min-height: 56px;
    padding: 10px 12px;
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  .site-header .logo {
    justify-self: start;
    white-space: normal;
    text-align: left;
  }
  .site-header nav {
    justify-self: center;
    justify-content: center;
    width: 100%;
    gap: 6px;
  }
  .site-header nav a {
    padding: 6px 12px;
  }
  .header-user {
    justify-self: end;
    justify-content: flex-end;
    width: 100%;
    flex-wrap: wrap;
  }
  .reserve-layout { grid-template-columns: 1fr; }
  .reserve-side { position: static; }
  .form-row.two { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 20px 16px; }
  .form-group input[type="date"] {
    min-width: 0;
    max-width: 100%;
    padding-inline: 10px;
    font-size: 13px;
  }
  .slot-row { grid-template-columns: 1fr; }
  .reservation-main { flex-direction: column; }
  .admin-heading { align-items: stretch; flex-direction: column; }
  .admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-row { grid-template-columns: 1fr; }
  .settings-pagination {
    align-items: stretch;
    flex-direction: column;
  }
  .settings-pagination-actions {
    justify-content: space-between;
    width: 100%;
  }
  .admin-list-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-reservation-head { flex-direction: column; }
  .admin-actions { justify-content: flex-start; flex-wrap: wrap; }
}
