:root {
  color-scheme: light;
  --green: #0f9f6e;
  --blue: #285bb8;
  --ink: #162033;
  --muted: #657184;
  --line: #dfe5ee;
  --soft: #f5f7fa;
  --paper: #ffffff;
  --danger: #f04b55;
  --warning: #e9990a;
  --approved: #3a7c67;
  --pending: #7a8798;
  --rejected: #9f2743;
  font-family:
    Pretendard,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(223, 229, 238, 0.75);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.95) 0 12%, rgba(255, 255, 255, 0) 13%),
    radial-gradient(circle at 72% 26%, rgba(99, 230, 190, 0.92) 0 22%, rgba(99, 230, 190, 0) 23%),
    radial-gradient(circle at 68% 74%, rgba(88, 119, 255, 0.92) 0 18%, rgba(88, 119, 255, 0) 19%),
    radial-gradient(circle at 28% 70%, rgba(255, 133, 201, 0.88) 0 17%, rgba(255, 133, 201, 0) 18%),
    conic-gradient(from 180deg at 50% 50%, #6a7cff 0deg, #42d6a4 110deg, #7ee8ff 200deg, #ff8e70 300deg, #6a7cff 360deg);
  box-shadow: 0 10px 24px rgba(80, 118, 204, 0.24);
}

.top-nav {
  display: flex;
  gap: 32px;
  font-weight: 700;
  font-size: 18px;
}

.top-nav a {
  color: var(--ink);
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--green);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

body[data-page="business"] main {
  min-height: calc(100vh - 72px - 153px);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: end;
  padding: 64px 0 36px;
}

.facilities-hero {
  padding: 64px 0 28px;
}

.facility-guide-grid {
  display: grid;
  gap: 22px;
  padding-bottom: 48px;
}

.facility-guide-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.facility-guide-media {
  min-height: 240px;
  background-size: cover;
  background-position: center;
}

.media-seminar {
  background:
    linear-gradient(140deg, rgba(21, 124, 179, 0.16), rgba(24, 167, 114, 0.42)),
    url("https://images.unsplash.com/photo-1511578314322-379afb476865?auto=format&fit=crop&w=900&q=80");
}

.media-meeting {
  background:
    linear-gradient(140deg, rgba(74, 109, 255, 0.16), rgba(24, 167, 114, 0.38)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=900&q=80");
}

.media-lounge {
  background:
    linear-gradient(140deg, rgba(255, 144, 87, 0.18), rgba(24, 167, 114, 0.34)),
    url("https://images.unsplash.com/photo-1524758631624-e2822e304c36?auto=format&fit=crop&w=900&q=80");
}

.facility-guide-body {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 26px 28px;
}

.facility-guide-body h2 {
  font-size: 28px;
}

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

.facility-guide-meta {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: #2a3549;
  font-weight: 700;
}

.facility-guide-meta li::before {
  content: "• ";
  color: var(--green);
}

.facility-guide-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-top: 14px;
}

.facility-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 46px;
  line-height: 1;
  text-decoration: none;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

.admin-title,
.calendar-section h2,
.request-section h2 {
  font-size: clamp(27px, 4vw, 45px);
  line-height: 1.08;
}

h2 {
  font-size: 30px;
}

.intro-copy {
  max-width: 760px;
  margin: 22px 0 0;
  padding: 18px 22px;
  border: 1px solid #d8c891;
  border-radius: 6px;
  background: #fffaf0;
  color: #263247;
  font-size: 16px;
  line-height: 1.85;
  white-space: pre-line;
  box-shadow: 0 8px 24px rgba(22, 32, 51, 0.06);
}

.facility-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
}

.facility-panel strong {
  color: var(--ink);
  font-size: 18px;
}

section {
  scroll-margin-top: 92px;
}

.calendar-section,
.request-section,
.admin-section,
.business-section {
  padding: 36px 0 48px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-note {
  margin: 0;
  color: var(--muted);
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button,
.today-button,
.primary-button,
.secondary-button,
.tab-button,
.admin-main-tab {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.icon-button {
  width: 42px;
  font-size: 28px;
  line-height: 1;
}

.today-button {
  min-width: 72px;
  white-space: nowrap;
}

.primary-button {
  min-height: 48px;
  padding: 0 22px;
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
}

.logout-button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #d9313d;
  color: #ffffff;
  font-weight: 800;
}

.logout-button:hover {
  background: #b91c27;
}

.secondary-button:hover,
.today-button:hover,
.icon-button:hover,
.tab-button:hover,
.admin-main-tab:hover {
  border-color: var(--blue);
}

.calendar-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday-row {
  border-bottom: 1px solid var(--line);
  background: #f0f3f7;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.weekday-row span {
  padding: 12px 0;
}

.weekday-row span:first-child {
  color: #d9313d;
}

.weekday-row span:last-child {
  color: #2563c7;
}

.calendar-cell {
  position: relative;
  min-height: 120px;
  padding: 10px 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  cursor: pointer;
}

body[data-page="admin"] .calendar-cell {
  cursor: default;
}

.calendar-cell:nth-child(7n) {
  border-right: 0;
}

.calendar-cell.muted {
  background: #f8f9fb;
  color: #a0a8b5;
}

.calendar-cell.closed-day {
  background: #e9edf3;
  color: #7e8998;
  cursor: not-allowed;
}

.calendar-cell.today {
  background: #e7f5ef;
}

.calendar-cell.sunday .day-number {
  color: #7e8998;
}

.calendar-cell.saturday .day-number {
  color: #7e8998;
}

.calendar-cell:hover {
  box-shadow: inset 0 0 0 2px rgba(40, 91, 184, 0.2);
}

.calendar-cell.closed-day:hover {
  box-shadow: none;
}

.calendar-cell::after {
  position: absolute;
  right: 10px;
  bottom: 8px;
  content: "신청";
  opacity: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  transition: opacity 0.16s ease;
}

.calendar-cell:hover::after {
  opacity: 1;
}

.calendar-cell.closed-day:hover::after {
  opacity: 0;
}

body[data-page="admin"] .calendar-cell:hover::after {
  opacity: 0;
}

.day-number {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  text-align: right;
}

.event-pill {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin-top: 6px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  padding: 5px 7px;
  font-size: 12.34px;
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-pill.approved {
  background: var(--green);
}

/* 시설별 예약 색상 */

.event-pill.facility-space01 {
  background: #16a34a !important;
  /* 초록 */
}

.event-pill.facility-space02 {
  background: #9333ea !important;
  /* 보라 */
  color: #ffffff;
}

.event-pill.facility-space03 {
  background: #2563eb !important;
  /* 파랑 */
}

.event-pill.pending {
  background: #7fbf2f;
}

.event-pill.rejected {
  background: var(--rejected);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 18, 30, 0.48);
}

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

.modal-panel {
  width: min(830px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 24, 42, 0.28);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 14px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  font-size: 22px;
}

.modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.modal-body {
  padding: 20px 24px;
}

.detail-list {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px 16px;
  margin: 0;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 900;
}

.detail-list dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.complete-message {
  margin: 0 0 18px;
  color: #263247;
  font-size: 16px;
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px 24px;
}

.modal-actions:empty {
  display: none;
}

.modal-action-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 16px;
  font-weight: 900;
}

.modal-action-button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.reservation-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px 16px;
  width: min(944px, 100%);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

label {
  display: grid;
  gap: 8px;
  color: #263247;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 12px 13px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(40, 91, 184, 0.18);
  border-color: var(--blue);
}

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

.facility-field {
  padding: 18px;
}

.facility-field .equipment-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.facility-field .equipment-options label {
  min-height: 48px;
  justify-content: center;
  background: #f7faf8;
}

.date-field,
.time-field,
.third-field {
  grid-column: span 4;
}


.quarter-field {
  grid-column: span 3;
}

.equipment-field {
  display: grid;
  gap: 12px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.equipment-field legend {
  padding: 0 6px;
  color: #263247;
  font-weight: 900;
}

.equipment-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.equipment-options-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.equipment-options label {
  display: flex;
  align-items: center;
  min-height: 46px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  background: var(--soft);
  font-weight: 800;
}

.equipment-options input {
  width: 18px;
  height: 18px;
}

.equipment-other-input:disabled,
.other-purpose-input:disabled {
  background: #f1f4f8;
  color: #9aa5b3;
}

.visit-purpose-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.visit-purpose-options label {
  white-space: nowrap;
}

.agree-field {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.agree-field input {
  width: 18px;
  height: 18px;
}

.purpose-field textarea {
  min-height: 150px;
}

.form-submit-button {
  grid-column: 1 / -1;
  justify-self: start;
  min-width: 180px;
  white-space: nowrap;
}

.modal-edit-form {
  width: min(100%, 944px);
  margin: 0 auto;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.year-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.year-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  padding: 0 16px;
  font-weight: 800;
}

.year-button:hover {
  border-color: var(--blue);
}

.year-button.active {
  border-color: var(--blue);
  background: #eef3ff;
  color: var(--blue);
}


.month-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.month-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  padding: 0 14px;
  font-weight: 800;
}

.month-button:hover {
  border-color: var(--blue);
}

.month-button.active {
  border-color: var(--green);
  background: #eef8f3;
  color: var(--green);
}

.node-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.download-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #d7272f;
  font-size: 16px;
  font-weight: 900;
}

.download-action::before {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='20' y='4' width='40' height='56' rx='6' fill='%2321a366'/%3E%3Crect x='20' y='4' width='20' height='56' rx='6' fill='%231b8f5a'/%3E%3Crect x='6' y='18' width='28' height='28' rx='4' fill='%23157943'/%3E%3Cpath d='M15 27h4l3 6 3-6h4l-5 8 5 8h-4l-3-6-3 6h-4l5-8-5-8z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.tab-button.active {
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
}

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

.admin-main-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 20px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.admin-main-tab {
  min-width: 132px;
  padding: 0 18px;
}

.admin-main-tab.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.admin-tab-panel {
  display: block;
}

.admin-tab-panel[hidden] {
  display: none;
}

.admin-calendar-controls {
  justify-content: flex-end;
  margin-bottom: 16px;
}

.admin-locked main {
  opacity: 0.00;
  transform: scale(1.01);
  pointer-events: none;
  user-select: none;
  transition: 0.3s ease;
}

.admin-lock {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 18, 30, 0.58);
}

.admin-lock[hidden] {
  display: none;
}

.admin-login {
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
  padding: 28px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 24, 42, 0.3);
}

.admin-login h2 {
  margin: 0;
}

.admin-login a {
  color: var(--blue);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.login-error {
  margin: 0;
  color: var(--rejected);
  font-weight: 800;
}

.admin-node {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.node-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.node-label {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.node-head h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.node-description {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.holiday-manager {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.holiday-form {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.holiday-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.holiday-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 0 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.holiday-chip strong {
  color: var(--ink);
}

.holiday-chip button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #eef2f7;
  color: #5c6675;
  font-weight: 900;
  line-height: 1;
}

.fixed-schedule-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(240px, 2fr);
  gap: 12px;
  align-items: end;
}

.fixed-schedule-form .secondary-button {
  justify-self: start;
}

.fixed-schedule-facilities {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.fixed-schedule-facilities legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 900;
}

.fixed-schedule-facilities label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border-radius: 8px;
  background: var(--soft);
  padding: 0 10px;
}

.fixed-schedule-facilities input {
  width: auto;
}

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

.fixed-schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.fixed-schedule-item > div:first-child {
  display: grid;
  gap: 4px;
}

.fixed-schedule-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.content-editor-form {
  display: grid;
  gap: 16px;
}

.content-editor-group {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.content-editor-group h4 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.content-editor-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.content-editor-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

#facilityEditorList {
  display: grid;
  gap: 14px;
}

.facility-editor-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.facility-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.facility-editor-head h5 {
  margin: 0;
  font-size: 16px;
}

.facility-editor-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.drag-handle-button {
  min-width: 40px;
  min-height: 40px;
  border: 1px dashed #b8c4d6;
  border-radius: 8px;
  background: #f8fafc;
  color: #5d6980;
  font-weight: 900;
  cursor: grab;
}

.facility-editor-item.dragging {
  opacity: 0.64;
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(40, 91, 184, 0.12);
}

.facility-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.facility-editor-grid .full-span {
  grid-column: 1 / -1;
}

.content-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.holiday-name {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #cfd6e0;
  color: #526071;
  padding: 5px 7px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.request-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.request-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.request-title strong {
  font-size: 18px;
}

.status-badge {
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.status-badge.pending {
  background: var(--warning);
}

.status-badge.approved {
  background: var(--approved);
}

.status-badge.rejected {
  background: var(--rejected);
}

.request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 14px;
}

.request-purpose {
  margin: 10px 0 0;
  color: #2a3549;
  line-height: 1.6;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.approve-button,
.reject-button,
.delete-button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  padding: 0 14px;
  font-weight: 900;
}

.approve-button {
  background: var(--approved);
}

.reject-button {
  background: var(--rejected);
}

.delete-button {
  background: #5c6675;
}

.empty-state {
  padding: 34px;
  border: 1px dashed #b9c3d1;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  background: #fbfcfe;
}

.business-grid {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.business-board {
  display: grid;
}

.business-board-row {
  display: grid;
  grid-template-columns: 88px 92px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.business-board-row:last-child {
  border-bottom: 0;
}

.business-board-head {
  min-height: 48px;
  background: #f0f3f7;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.business-board-item {
  width: 100%;
  cursor: pointer;
}

.business-board-item:hover {
  background: #f8fafc;
}

.business-board-item > span:first-child,
.business-board-head > span:first-child,
.business-board-head > span:nth-child(2),
.business-board-head > span:nth-child(3),
.business-board-head > span:nth-child(4),
.business-board-item > span:nth-child(2),
.business-board-item > span:nth-child(4) {
  text-align: center;
}

.business-board-item > span:nth-child(3) {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  text-align: left;
}

.business-board-item strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-thumbnail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #f0f3f7;
  vertical-align: middle;
}

.business-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-thumbnail.empty {
  background-image: linear-gradient(135deg, #f2f5f8, #e6ebf1);
}

.business-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.business-status-badge.open {
  background: var(--approved);
}

.business-status-badge.closed {
  background: var(--pending);
}

.business-content-preview {
  margin: 0;
  color: #2a3549;
  line-height: 1.65;
}

.business-detail {
  display: grid;
  gap: 16px;
}

.business-detail-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 1260px);
  aspect-ratio: 1260 / 891;
  overflow: hidden;
  border-radius: 8px;
  background-color: #f0f3f7;
}

.business-detail-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.business-detail-content {
  color: #243247;
  line-height: 1.8;
  white-space: pre-wrap;
}

.business-detail-link {
  display: flex;
  justify-content: flex-start;
}

.business-detail-link a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.business-admin-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 140px;
  gap: 12px;
  margin-bottom: 18px;
}

.business-admin-form .wide-field {
  grid-column: 1 / -1;
}

.business-admin-form .content-editor-actions {
  grid-column: 1 / -1;
}

.business-image-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.business-publish-field {
  align-self: end;
  min-height: 44px;
}

.business-image-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 420px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #f0f3f7;
}

.business-image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

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

.business-admin-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

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

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 24px;
  padding: 42px max(28px, calc((100vw - 1180px) / 2));
  color: #d9e0e8;
  background: #202225;
}

.site-footer p {
  margin: 0;
  color: #d9e0e8;
  font-weight: 700;
}

@media (max-width: 900px) {
  .site-header,
  .section-head,
  .node-head,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    gap: 18px;
  }

  .intro-section,
  .reservation-form,
  .holiday-form,
  .fixed-schedule-form,
  .business-admin-form {
    grid-template-columns: 1fr;
  }

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

  .facility-guide-card {
    grid-template-columns: 1fr;
  }

  .facility-field .equipment-options,
  .equipment-options {
    grid-template-columns: 1fr;
  }

  .agree-field {
    grid-column: 1;
  }

  .calendar-shell {
    overflow-x: auto;
  }

  .weekday-row,
  .calendar-grid {
    min-width: 760px;
  }

  .request-item,
  .fixed-schedule-item,
  .business-admin-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .fixed-schedule-item {
    flex-direction: column;
  }

  .business-image-link-row {
    grid-template-columns: 1fr;
  }

  .facility-editor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    padding: 16px 18px;
  }

  .calendar-controls,
  .admin-tabs,
  .request-actions {
    flex-wrap: wrap;
  }

  .business-board-row {
    grid-template-columns: 44px 68px minmax(0, 1fr) 82px;
    gap: 10px;
    padding: 0 12px;
  }

  .business-thumbnail {
    width: 58px;
  }

  .business-status-badge {
    display: none;
  }
}

.icon-button {
  position: relative;
}

.icon-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #1e293b;
  border-right: 2px solid #1e293b;
}

#prevMonth::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

#nextMonth::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.hidden-before-load {
  visibility: hidden;
}

.page-loaded {
  visibility: visible;
}

.facility-field .equipment-options {
  justify-content: center;
}

.facility-field .equipment-options label {
  justify-content: center;
  text-align: center;
}

.facility-field .equipment-options {
  grid-template-columns: repeat(auto-fit, minmax(160px, 180px));
}

.admin-title-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  width: 100%;
}

.footer-content p {
  margin: 0;
  text-align: center;
  white-space: pre-line;
}

#footerLine2 {
  font-weight: 400;
}

#footerAdminLink {
  color: #d9e0e8;
  text-decoration: none;
  font-weight: 400;
  cursor: default;
}

#footerAdminLink:hover {
  color: #d9e0e8;
  text-decoration: none;
}

.help-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-tooltip {
  position: relative;
}

.help-tooltip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid #b8c4d6;
  border-radius: 999px;
  background: #ffffff;
  color: #5d6980;
  font-size: 13px;
  font-weight: 900;
  cursor: help;
}

.help-tooltip-image {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 50;
  display: none;
  width: 600px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 24, 42, 0.18);
}

.help-tooltip-image img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.help-tooltip:hover .help-tooltip-image {
  display: block;
}

.admin-session-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  margin-left: 18px;
  padding: 8px 12px;
  border: 1px solid #cfd8e6;
  border-radius: 999px;
  background: #f3f7fc;
  color: #263247;
  font-size: 14px;
  font-weight: 900;
}

.admin-session-label {
  color: var(--blue);
}

.admin-session-timer {
  min-width: 44px;
  text-align: center;
  color: #d9313d;
  font-variant-numeric: tabular-nums;
}

body:not([data-page="admin"]) .admin-session-badge {
  display: none;
}

@media (max-width: 900px) {
  .admin-session-badge {
    margin-left: 0;
    margin-right: 0;
  }
}

.facility-info-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  width: 100%;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 159, 110, 0.16);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.facility-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px dashed #e2e8f0;
  border-radius: 10px;
  background: #fbfdfc;
}

.facility-info-row:last-child {
  padding: 10px 12px;
  border: 1px dashed #e2e8f0;
}

.facility-info-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(15, 159, 110, 0.10);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.facility-info-text {
  color: #243247;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}


@media (max-width: 720px) {
  .facility-info-box {
    grid-template-columns: 1fr;
  }
}

.privacy-link {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-policy-content {
  color: #243247;
  font-size: 15px;
  line-height: 1.75;
}

.privacy-policy-content p {
  margin: 0 0 18px;
}

.privacy-policy-content h3 {
  margin: 20px 0 8px;
  color: var(--ink);
  font-size: 16px;
}

.privacy-policy-content ul {
  margin: 0;
  padding-left: 20px;
}

.privacy-policy-content li {
  margin: 4px 0;
}

.calendar-section .section-head {
  position: relative;
}

.calendar-section .calendar-controls {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
}

.calendar-section #calendarTitle {
  font-size: 1.3em;
  font-weight: 900;
  min-width: 120px;
  text-align: center;
  white-space: nowrap;
}

.calendar-section .today-button {
  position: absolute;
  left: calc(100% + 12px);
}

/* 관리자 데이터 로딩 화면 */

.admin-loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(5px);
}

.admin-loading[hidden] {
  display: none;
}

.admin-loading-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(380px, 100%);
  padding: 36px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 24px 70px rgba(15, 24, 42, 0.18);
}

.admin-loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #dfe5ee;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: admin-loading-spin 0.8s linear infinite;
}

.admin-loading-card strong {
  color: var(--ink);
  font-size: 18px;
}

.admin-loading-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.admin-loading.is-error .admin-loading-spinner {
  display: none;
}

.admin-loading.is-error strong {
  color: var(--rejected);
}

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