:root {
  color-scheme: light;
  --ink: #17282f;
  --muted: #68767c;
  --line: #dbe3e5;
  --paper: #ffffff;
  --bg: #f3f6f6;
  --brand: #1e5363;
  --brand-dark: #153f4c;
  --accent: #d4aa59;
  --soft: #edf3f4;
  --soft-blue: #e6f0f2;
  --danger: #ae4039;
  --danger-soft: #fff0ee;
  --success: #23745c;
  --success-soft: #e6f4ef;
  --warning: #9a6816;
  --warning-soft: #fff4dc;
  --shadow: 0 18px 44px rgba(20, 53, 63, .08);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; font-size: 16px; background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.topbar {
  min-height: 78px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  gap: 36px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  min-width: 230px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: -.02em; }
.brand small { font-size: 12px; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-self: stretch; gap: 8px; margin: auto; }
.nav-item { border: 0; background: none; color: #637076; font-weight: 700; padding: 0 24px; position: relative; cursor: pointer; white-space: nowrap; }
.nav-item:hover, .nav-item.active { color: var(--brand); }
.nav-item.active::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 3px; background: var(--brand); border-radius: 3px 3px 0 0; }
.storage-chip { font-size: 13px; padding: 9px 12px; border-radius: 999px; background: var(--soft); color: var(--brand); font-weight: 700; white-space: nowrap; }
.storage-chip i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); margin-right: 7px; }

.shell { max-width: 1440px; min-height: calc(100vh - 150px); margin: 0 auto; padding: 48px clamp(20px, 5vw, 72px) 72px; outline: none; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.eyebrow { color: var(--brand); font-size: 12px; letter-spacing: .14em; font-weight: 800; margin: 0 0 8px; }
.page-heading h1 { font-size: clamp(28px, 3vw, 36px); margin: 0 0 8px; letter-spacing: -.045em; line-height: 1.2; }
.page-heading p { margin: 0; color: var(--muted); line-height: 1.6; }
.steps { display: flex; list-style: none; padding: 0; margin: 0; gap: 28px; color: #97a1a5; font-size: 13px; font-weight: 700; }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps span { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: #fff; }
.steps .current { color: var(--brand); }
.steps .current span { background: var(--brand); border-color: var(--brand); color: #fff; }

.booking-layout { display: grid; grid-template-columns: minmax(420px, .95fr) minmax(470px, 1.05fr); gap: 20px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 28px; }
.panel-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 26px; }
.panel-title > div { display: flex; align-items: center; gap: 10px; }
.panel-title h2 { font-size: 20px; margin: 0; letter-spacing: -.03em; }
.panel-title p { font-size: 13px; color: var(--muted); margin: 4px 0 0; text-align: right; }
.section-number { color: var(--accent); font-weight: 800; }
.required-note { font-size: 12px; color: var(--muted); }
.required-note i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 6px; }

.calendar-toolbar { display: flex; justify-content: center; align-items: center; gap: 28px; margin: 8px 0 22px; }
.calendar-toolbar strong { min-width: 116px; text-align: center; }
.calendar-toolbar button, .icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 22px; color: var(--ink); cursor: pointer; }
.calendar-toolbar button:hover, .icon-button:hover { border-color: var(--brand); color: var(--brand); }
.weekday-row, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.weekday-row { font-size: 12px; color: #879297; margin-bottom: 8px; }
.weekday-row span:first-child { color: #bb5a53; }
.calendar-day { aspect-ratio: 1.15; border: 0; background: transparent; border-radius: 11px; color: var(--ink); cursor: pointer; position: relative; z-index: 1; }
.calendar-day:hover:not(:disabled) { background: var(--soft); color: var(--brand); }
.calendar-day.selected { background: var(--brand); color: #fff; font-weight: 800; }
.calendar-day.in-range { background: var(--soft-blue); border-radius: 0; color: var(--brand); }
.calendar-day.muted { color: #c3c9cb; cursor: default; }
.calendar-day.unavailable { background: #e8ecee; color: #9aa6aa; cursor: not-allowed; text-decoration: line-through; }
.calendar-day.unavailable.today::after { background: #9aa6aa; }
.calendar-day.today::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); left: calc(50% - 2px); bottom: 7px; }
.calendar-day.selected.today::after { background: #fff; }
.calendar-legend { display: flex; align-items: center; gap: 7px; margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.calendar-legend i { width: 13px; height: 13px; border-radius: 4px; background: #e8ecee; border: 1px solid #d9e0e2; }
.date-summary { margin-top: 22px; padding: 17px 18px; background: var(--soft); border-radius: 14px; display: flex; align-items: center; gap: 18px; }
.date-summary > div:not(.date-arrow) { flex: 1; }
.date-summary span, .date-summary strong { display: block; }
.date-summary span { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.date-summary strong { font-size: 14px; line-height: 1.45; }
.date-arrow { color: #9ca8ac; }

.booking-form, .lookup-card form, .login-card form, .modal-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 13px; color: var(--ink); outline: none; }
input, select { height: 46px; }
textarea { padding-top: 12px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #a2abad; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30, 83, 99, .1); }
input:disabled, select:disabled { background: #f5f7f7; color: #9da7aa; }
.form-notice { display: flex; gap: 9px; align-items: flex-start; padding: 12px 14px; background: #f7f8f4; border: 1px solid #e9e5d8; border-radius: 10px; color: #68716f; font-size: 13px; line-height: 1.5; }
.duplicate-notice { margin: 0; padding: 9px 10px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: 12px; line-height: 1.45; }
.form-notice span { flex: 0 0 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 12px; }
.primary-button, .secondary-button { min-height: 48px; border-radius: 11px; padding: 0 20px; font-weight: 800; cursor: pointer; }
.primary-button { border: 0; background: var(--brand); color: #fff; }
.primary-button:hover { background: var(--brand-dark); }
.secondary-button { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.secondary-button:hover { border-color: var(--brand); color: var(--brand); }

.lookup-layout { display: grid; grid-template-columns: minmax(360px, 520px) minmax(300px, 1fr); gap: 34px; align-items: center; max-width: 1120px; margin: 28px auto 0; }
.lookup-card { padding: 38px; }
.lookup-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--soft-blue); color: var(--brand); font-size: 30px; font-weight: 800; }
.lookup-card h2 { margin: 20px 0 8px; font-size: 24px; letter-spacing: -.035em; }
.lookup-card > p { margin: 0 0 26px; color: var(--muted); line-height: 1.55; }
.privacy-note { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 5px; font-size: 13px; }
.privacy-note strong { color: var(--brand); }
.privacy-note span, .result-note { color: var(--muted); line-height: 1.5; }
.lookup-divider { display: flex; align-items: center; gap: 10px; margin: 27px 0 20px; color: var(--muted); font-size: 12px; }
.lookup-divider::before, .lookup-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.employee-lookup-title { margin: 0 0 6px; font-size: 18px; }
.employee-lookup-description { margin: 0 0 16px !important; font-size: 13px; }
.employee-lookup-results { display: grid; gap: 8px; margin-top: 16px; }
.employee-lookup-results > strong { font-size: 13px; color: var(--brand); }
.employee-lookup-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 12px; border: 1px solid #c8d8dc; border-radius: 9px; background: #f9fbfb; color: var(--ink); text-align: left; }
.employee-lookup-item > span { display: grid; gap: 4px; }
.employee-lookup-item > span:last-child { text-align: right; }
.employee-lookup-item b { font-size: 13px; }
.employee-lookup-results small { color: var(--muted); font-size: 11px; }
.form-error { color: var(--danger); background: var(--danger-soft); border-radius: 9px; padding: 11px 12px; font-size: 13px; margin: -4px 0 0; }
.lookup-aside { border-left: 1px solid var(--line); padding: 16px 0 16px 48px; }
.lookup-aside h3 { margin: 8px 0 6px; font-size: 18px; }
.lookup-aside p { margin: 0 0 30px; color: var(--muted); line-height: 1.65; max-width: 440px; }
.aside-number { color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.lookup-result { padding: 34px; }
.result-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.result-header h2 { margin: 0; font-size: 24px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.detail-grid > div { padding: 16px 0; border-bottom: 1px solid #ebeff0; }
.detail-grid span, .detail-grid strong { display: block; }
.detail-grid > div > span { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.detail-grid strong { font-size: 14px; line-height: 1.5; }
.detail-wide { grid-column: 1 / -1; }
.result-note { font-size: 13px; margin: 20px 0 0; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; letter-spacing: .02em; }

.login-wrap { max-width: 480px; margin: 42px auto 0; }
.login-card { padding: 40px; text-align: center; }
.admin-symbol { margin: 0 auto; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 900; font-size: 22px; }
.login-card h2 { margin: 20px 0 7px; font-size: 25px; }
.login-card > p { margin: 0 0 26px; color: var(--muted); }
.login-card form { text-align: left; }
.demo-account { margin-top: 22px; border-radius: 10px; padding: 13px 14px; background: var(--soft); display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.demo-account strong { color: var(--brand); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-grid.stat-grid-three { grid-template-columns: repeat(3, 1fr); }
.stat-grid article { padding: 21px 22px; border-radius: 15px; background: #fff; border: 1px solid var(--line); }
.stat-grid span, .stat-grid strong, .stat-grid small { display: block; }
.stat-grid span { color: var(--muted); font-size: 13px; font-weight: 700; }
.stat-grid strong { font-size: 30px; letter-spacing: -.04em; margin: 8px 0 3px; }
.stat-grid small { font-size: 12px; color: #929da0; }
.admin-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.admin-tabs button { padding: 15px 20px; border: 0; background: none; color: var(--muted); font-weight: 800; cursor: pointer; position: relative; }
.admin-tabs button.active { color: var(--brand); }
.admin-tabs button.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.admin-content { background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; padding: 26px; box-shadow: var(--shadow); }
.section-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 20px; }
.section-toolbar h2 { margin: 0 0 5px; font-size: 20px; letter-spacing: -.025em; }
.section-toolbar p { margin: 0; color: var(--muted); font-size: 13px; }
.compact-select { display: flex; align-items: center; grid-template-columns: auto 130px; gap: 8px; color: var(--muted); font-size: 13px; }
.compact-select select { width: 140px; height: 40px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 940px; }
th { padding: 12px 15px; background: #f6f8f8; color: #69777c; font-size: 12px; text-align: left; border-bottom: 1px solid var(--line); }
td { padding: 15px; border-bottom: 1px solid #e8edef; vertical-align: middle; font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
td strong, td small { display: block; }
td small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.status, .status-select { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; border: 0; }
.status.pending, .status-select.pending { background: var(--warning-soft); color: var(--warning); }
.status.confirmed, .status-select.confirmed { background: var(--success-soft); color: var(--success); }
.status.rejected, .status-select.rejected { background: var(--danger-soft); color: var(--danger); }
.status-select { width: 104px; cursor: pointer; }
.row-actions { display: flex; gap: 7px; align-items: center; }
.row-actions button, .entity-actions button { background: none; border: 0; padding: 5px; color: var(--brand); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.danger-text { color: var(--danger) !important; }
.empty-state { min-height: 130px; display: grid; place-items: center; align-content: center; gap: 7px; text-align: center; color: var(--muted); }
.empty-state strong { color: var(--ink); }

.resort-admin-grid { display: grid; grid-template-columns: minmax(320px, .75fr) minmax(440px, 1.25fr); gap: 18px; margin-top: 22px; align-items: start; }
.management-panel { min-height: 480px; }
.inline-form { display: grid; grid-template-columns: 1fr 84px; gap: 8px; margin-bottom: 18px; }
.inline-form button { border: 0; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 800; cursor: pointer; }
.company-list { display: grid; gap: 8px; }
.company-card { width: 100%; padding: 14px 15px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); background: #fff; border-radius: 11px; text-align: left; color: var(--ink); cursor: pointer; }
.company-card:hover, .company-card.selected { border-color: var(--brand); background: var(--soft); }
.company-card span { display: grid; gap: 4px; }
.company-card small { color: var(--muted); }
.company-card i { font-style: normal; font-size: 20px; color: var(--brand); }
.entity-actions { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 13px; margin-top: 16px; }
.resort-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; max-height: 490px; overflow: auto; }
.resort-list li { min-height: 51px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e8edef; font-size: 14px; }
.resort-list li:last-child { border-bottom: 0; }
.resort-list li:hover { background: #fafbfb; }
.count-badge { min-width: 45px; text-align: center; padding: 7px 10px; border-radius: 999px; background: var(--soft); color: var(--brand); font-size: 12px; font-weight: 800; }

.calendar-admin-grid { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(380px, 1.15fr); gap: 18px; margin-top: 22px; align-items: start; }
.calendar-settings-form, .blocked-period-form { display: grid; gap: 15px; }
.calendar-settings-form .primary-button, .blocked-period-form .primary-button { justify-self: start; }
.blocked-period-list { list-style: none; padding: 0; margin: 22px 0 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.blocked-period-list li { min-height: 58px; padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #e8edef; }
.blocked-period-list li:last-child { border-bottom: 0; }
.blocked-period-list li > div { display: grid; gap: 4px; }
.blocked-period-list span { color: var(--muted); font-size: 12px; }
.blocked-period-list button { border: 0; background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }

.season-status { margin-top: 22px; }
.season-round-badge { display: inline-flex; padding: 8px 11px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 12px; font-weight: 800; }
.season-table { min-width: 680px; }
.inventory-table tr.selected-inventory { background: #edf6f4; }
.inventory-table button { border: 1px solid #b5cdd3; border-radius: 7px; background: #fff; color: var(--brand); padding: 6px 10px; font-size: 12px; font-weight: 800; cursor: pointer; }
.season-selection-panel { display: grid; gap: 18px; }
.season-filter-fields { display: grid; gap: 14px; }
.season-selection-summary { display: grid; gap: 8px; padding: 18px; border: 1px dashed #aebfc5; border-radius: 12px; background: #fbfcfc; color: var(--muted); }
.season-selection-summary.has-selection { border-style: solid; border-color: #9dbfc7; background: var(--soft); color: var(--ink); }
.season-selection-summary > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.season-selection-summary > strong { font-size: 17px; }
.season-selection-summary > div { display: flex; flex-wrap: wrap; gap: 8px; }
.season-selection-summary b { padding: 7px 9px; border-radius: 7px; background: #fff; color: var(--brand); font-size: 13px; }
.season-selection-summary small { color: var(--muted); font-size: 12px; }
.season-admin { margin-top: 22px; display: grid; gap: 20px; }
.season-round-top { display: grid; gap: 16px; }
.season-round-form { display: grid; grid-template-columns: minmax(190px, 1.25fr) 105px repeat(2, minmax(150px, 1fr)) auto; gap: 10px; align-items: end; }
.season-round-form .primary-button { min-height: 48px; }
.season-round-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 8px; }
.season-filter-wrap { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.season-filter-wrap > strong { font-size: 14px; }
.season-round-filter { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(180px, .7fr) minmax(220px, 1fr); gap: 12px; align-items: end; }
.season-filter-summary { min-height: 48px; padding: 8px 11px; display: grid; align-content: center; gap: 3px; border-radius: 9px; background: var(--soft); }
.season-filter-summary strong { font-size: 13px; }
.season-filter-summary span { color: var(--muted); font-size: 12px; }
.season-round-card { display: grid; gap: 4px; width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.season-round-card.active, .season-round-card:hover { border-color: var(--brand); background: var(--soft); }
.season-round-card span { color: var(--muted); font-size: 12px; }
.season-catalog-admin { display: grid; grid-template-columns: minmax(300px, .7fr) minmax(450px, 1.3fr); gap: 18px; align-items: start; }
.season-catalog-admin { display: none; }
.season-round-top::before { content: '콘도사·리조트는 일반 콘도·리조트 메뉴에서 공통으로 관리됩니다.'; display: block; margin: -2px 0 3px; color: var(--muted); font-size: 13px; }
.season-company-row { display: grid; gap: 2px; }
.season-company-row .row-actions { justify-content: flex-end; padding: 0 6px 3px; }
.bulk-upload { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.bulk-upload strong { font-size: 13px; }
.bulk-upload span { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.bulk-upload input { min-width: 0; height: auto; padding: 6px 0; border: 0; background: transparent; font-size: 12px; }
.bulk-upload button { min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.season-round-management { display: grid; gap: 18px; }
.season-inventory-tools { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.season-inventory-tools h3 { margin: 0 0 5px; font-size: 17px; }
.season-inventory-tools p { margin: 0; color: var(--muted); font-size: 12px; }
.inventory-upload-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.inventory-upload-actions input { width: 285px; min-width: 220px; height: auto; padding: 6px 0; border: 0; background: transparent; font-size: 12px; }
.inventory-upload-actions button { min-height: 48px; white-space: nowrap; word-break: keep-all; }
.inventory-upload-actions .secondary-button { min-width: 254px; }
.inventory-upload-actions .primary-button { min-width: 116px; }
.season-inventory-form { display: grid; grid-template-columns: 1.1fr 1.2fr repeat(2, 1fr) .8fr auto; gap: 10px; align-items: end; }
.season-inventory-form .primary-button { min-height: 48px; white-space: nowrap; }
.round-status-form { display: flex; align-items: center; gap: 8px; }
.round-admin-actions { display: flex; align-items: center; gap: 8px; }
.round-status-form select { width: 168px; min-width: 168px; height: 52px; font-size: 16px; }
.round-status-form .primary-button { width: 104px; min-width: 104px; min-height: 52px; padding: 0 14px; font-size: 15px; line-height: 1; white-space: nowrap; word-break: keep-all; }
.round-delete { width: 100px; min-height: 52px; margin: 0; padding: 0 12px; font-size: 14px; line-height: 1; white-space: nowrap; word-break: keep-all; }
.capacity-save { min-height: 40px; }
.capacity-save { margin-top: 14px; }
.season-applications { margin-top: 6px; }
.season-applications h3 { margin: 0 0 12px; font-size: 17px; }
.season-applications h3 small { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 400; }
.season-application-table { width: 100%; min-width: 1080px; table-layout: fixed; }
.season-application-table .application-number-col { width: 18%; }
.season-application-table .application-person-col { width: 20%; }
.season-application-table .application-resort-col { width: 12%; }
.season-application-table .application-date-col { width: 18%; }
.season-application-table .application-status-col { width: 10%; }
.season-application-table .application-actions-col { width: 22%; }
.season-application-table th, .season-application-table td { vertical-align: middle; }
.season-application-table th:nth-child(5), .season-application-table td:nth-child(5) { text-align: center; }
.season-application-table th:nth-child(6), .season-application-table td:nth-child(6) { text-align: left; }
.season-outcome-actions { display: grid; grid-template-columns: 90px 92px 44px; align-items: center; gap: 7px; white-space: nowrap; }
.season-outcome-actions button { min-height: 31px; flex: 0 0 auto; padding: 0 9px; border: 1px solid #b7cdd3; border-radius: 7px; background: #fff; color: var(--brand); font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.season-outcome-actions .danger-outline { margin: 0; border-color: #e6babb; color: var(--danger); }
.season-outcome-actions .danger-text { border: 0; color: var(--danger); }
.season-action-spacer { display: block; height: 1px; }
.season-eligible { margin: 0; padding: 9px 10px; border-radius: 8px; background: var(--success-soft); color: var(--success); font-size: 12px; line-height: 1.45; }
.general-bulk-upload { margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.general-bulk-upload h2 { margin: 0 0 5px; font-size: 19px; }
.general-bulk-upload p { margin: 0; color: var(--muted); font-size: 13px; }
.general-bulk-upload input { grid-column: 1; width: 100%; height: auto; padding: 8px 0; border: 0; background: transparent; }
.general-bulk-upload button { grid-column: 2; grid-row: 1 / span 2; }

.modal { width: min(650px, calc(100vw - 30px)); max-height: calc(100vh - 40px); border: 0; border-radius: 19px; padding: 0; box-shadow: 0 30px 90px rgba(10, 35, 44, .28); color: var(--ink); }
.modal::backdrop { background: rgba(12, 30, 36, .55); backdrop-filter: blur(4px); }
.modal-success { text-align: center; padding: 42px; }
.success-mark { width: 54px; height: 54px; margin: 0 auto 17px; display: grid; place-items: center; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: 25px; font-weight: 900; }
.modal-success h2 { margin: 0 0 9px; font-size: 25px; }
.modal-success > p:not(.eyebrow) { color: var(--muted); margin: 0; line-height: 1.55; }
.application-number { margin: 25px 0 15px; padding: 17px; border: 1px dashed #9db4bb; border-radius: 13px; background: var(--soft); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; text-align: left; }
.application-number span { font-size: 12px; color: var(--muted); }
.application-number strong { font-size: 18px; text-align: center; }
.application-number button { border: 0; background: #fff; color: var(--brand); border-radius: 8px; padding: 7px 10px; font-size: 12px; font-weight: 800; cursor: pointer; }
.success-summary { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 13px; padding: 4px 2px 22px; }
.success-summary strong { color: var(--ink); }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 8px; }
.modal-actions > * { min-width: 110px; }
.modal-success .modal-actions { justify-content: center; }
.modal-form { padding: 30px; }
.modal-form.small { max-width: 480px; }
.modal-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 3px; }
.modal-heading h2 { margin: 0 0 4px; font-size: 23px; }
.modal-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; }
.icon-button { display: grid; place-items: center; flex: 0 0 auto; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 17px; background: var(--ink); color: #fff; border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); font-size: 14px; font-weight: 700; transition: .22s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }
.footer { min-height: 72px; padding: 0 clamp(20px, 5vw, 72px); display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; background: #eef2f2; }

.guide-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 20px; align-items: start; }
.guide-card { min-height: 360px; }
.guide-card-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.guide-card-header > div { display: flex; align-items: center; gap: 10px; }
.guide-card-header h2 { margin: 0; font-size: 23px; letter-spacing: -.03em; }
.guide-card-header > span { font-size: 12px; color: var(--muted); padding-top: 4px; }
.guide-content { padding: 25px 2px 2px; font-size: 16px; line-height: 1.9; color: #33454a; min-height: 190px; }
.guide-aside { padding: 30px; border-radius: 18px; background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.guide-aside .aside-number { color: #d9ba77; font-size: 12px; font-weight: 800; letter-spacing: .09em; }
.guide-aside h3 { font-size: 22px; margin: 13px 0 10px; letter-spacing: -.03em; }
.guide-aside p { margin: 0; color: rgba(255, 255, 255, .75); line-height: 1.65; font-size: 14px; }
.guide-actions { display: grid; gap: 10px; margin-top: 26px; }
.guide-actions .secondary-button { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.guide-actions .secondary-button:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.guide-actions .primary-button { background: #fff; color: var(--brand); }
.application-placeholder { max-width: 720px; margin: 46px auto; text-align: center; padding: 52px 34px; }
.placeholder-mark { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 18px; background: var(--soft-blue); color: var(--brand); font-weight: 900; font-size: 22px; }
.application-placeholder h2 { margin: 0 0 11px; font-size: 25px; letter-spacing: -.035em; }
.application-placeholder > p:not(.eyebrow) { margin: 0 auto 25px; max-width: 480px; color: var(--muted); line-height: 1.65; }
.guide-admin { margin-top: 22px; max-width: 900px; }
.guide-form { display: grid; gap: 18px; }
.guide-form textarea { min-height: 280px; }
.guide-save-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; color: var(--muted); font-size: 13px; }
.guide-save-row .primary-button { min-width: 150px; }

.guide-viewer { max-width: 1080px; margin: 0 auto; }
.guide-viewer-bar { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.guide-viewer-bar div { display: flex; gap: 10px; align-items: center; }
.guide-viewer-bar strong { color: var(--ink); font-size: 17px; }
.guide-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #dce5e6; border-radius: 14px; background: #fff; }
.guide-element { position: absolute; box-sizing: border-box; overflow: visible; }
.guide-text { display: flex; align-items: flex-start; padding: 8px; line-height: 1.4; white-space: pre-wrap; }
.guide-shape { min-width: 10px; min-height: 10px; }
.guide-shape svg { width: 100%; height: 100%; display: block; overflow: visible; }
.guide-image { overflow: hidden; background: #eef2f2; }
.guide-image img { width: 100%; height: 100%; display: block; object-fit: contain; }
.guide-pdf { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid #d5e1e3; border-radius: 10px; background: #f7fbfb; color: var(--ink); font-size: 13px; }
.guide-pdf .pdf-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 7px; background: #bd3f3f; color: #fff; font-size: 10px; font-weight: 900; }
.guide-pdf div { min-width: 0; display: grid; gap: 3px; }
.guide-pdf strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guide-pdf small { color: var(--muted); }
.guide-pdf a { margin-left: auto; color: var(--brand); font-weight: 800; white-space: nowrap; }
.guide-viewer-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 20px; }
.guide-dots { display: flex; gap: 7px; }
.guide-dots button { width: 9px; height: 9px; border: 0; border-radius: 999px; background: #cbd7d9; padding: 0; cursor: pointer; }
.guide-dots button.active { width: 24px; background: var(--brand); }

.guide-editor { margin-top: 22px; }
.guide-editor-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 18px; }
.guide-editor-heading h2 { margin: 0 0 5px; font-size: 22px; }
.guide-editor-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.guide-editor-heading > div:last-child { display: flex; gap: 8px; }
.guide-title-row { margin-bottom: 14px; }
.guide-title-row label { display: grid; gap: 7px; max-width: 600px; color: var(--muted); font-size: 13px; font-weight: 700; }
.guide-editor-layout { display: grid; grid-template-columns: 190px minmax(460px, 1fr) 230px; min-height: 600px; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.editor-sidebar { padding: 17px 12px; border-right: 1px solid var(--line); background: #f7fafa; }
.editor-sidebar-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 5px 12px; font-size: 14px; }
.editor-sidebar-heading button { border: 0; width: 27px; height: 27px; border-radius: 7px; background: var(--brand); color: #fff; font-size: 19px; line-height: 1; cursor: pointer; }
.editor-page-list { display: grid; gap: 7px; }
.editor-page { display: grid; grid-template-columns: 25px 1fr; gap: 7px; align-items: center; width: 100%; padding: 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.editor-page:hover, .editor-page.active { border-color: #a7c1c7; background: #fff; }
.editor-page span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 6px; background: #e3edef; color: var(--brand); font-size: 11px; font-weight: 800; }
.page-order-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 13px; }
.page-order-actions button { min-height: 31px; border: 1px solid #c9d8da; border-radius: 7px; background: #fff; color: var(--brand); font-size: 11px; font-weight: 800; cursor: pointer; }
.page-order-actions button:disabled { opacity: .45; cursor: default; }
.text-button { margin-top: 17px; border: 0; background: transparent; color: var(--brand); font-size: 12px; font-weight: 800; cursor: pointer; }
.editor-delete-page { display: block; margin-top: 9px; padding: 5px; border: 0; background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.editor-workspace { min-width: 0; padding: 16px; background: #eef3f3; }
.editor-toolbar { display: flex; gap: 8px; margin-bottom: 13px; }
.editor-toolbar button { min-height: 34px; padding: 0 12px; border: 1px solid #c9d8da; border-radius: 8px; background: #fff; color: var(--brand); font-size: 12px; font-weight: 800; cursor: pointer; }
.shape-picker { position: relative; }
.shape-picker summary { min-height: 34px; display: grid; align-items: center; padding: 0 12px; border: 1px solid #c9d8da; border-radius: 8px; background: #fff; color: var(--brand); font-size: 12px; font-weight: 800; cursor: pointer; list-style: none; }
.shape-picker summary::-webkit-details-marker { display: none; }
.shape-menu { position: absolute; z-index: 20; top: 41px; left: 0; width: 310px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px; border: 1px solid #bdd0d4; border-radius: 10px; background: #fff; box-shadow: 0 12px 28px rgba(20, 50, 58, .16); }
.shape-menu button { min-height: 64px; display: grid; place-items: center; gap: 2px; padding: 5px !important; font-size: 24px !important; font-weight: 400 !important; }
.shape-menu button span { font-size: 10px; font-weight: 700; }
.editor-stage { border-radius: 9px; box-shadow: 0 10px 25px rgba(20, 50, 58, .12); }
.editor-stage .guide-element { cursor: move; border: 1px solid transparent; }
.editor-stage .guide-element.selected { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.editor-stage .guide-text [contenteditable] { min-width: 100%; min-height: 100%; outline: 0; cursor: text; }
.editor-stage .guide-text [contenteditable]:focus { box-shadow: inset 0 0 0 1px rgba(31, 78, 95, .32); }
.resize-handle { display: none; position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 3px; background: var(--brand); cursor: nwse-resize; }
.editor-stage .guide-element.selected .resize-handle { display: block; }
.editor-hint { margin: 11px 2px 0; color: var(--muted); font-size: 12px; }
.editor-inspector { padding: 18px 16px; border-left: 1px solid var(--line); background: #fbfcfc; }
.editor-properties { display: grid; gap: 12px; }
.editor-properties h3 { margin: 0 0 3px; font-size: 16px; }
.editor-properties label { display: grid; gap: 6px; color: #5c7076; font-size: 12px; font-weight: 700; }
.editor-properties input[type="range"] { width: 100%; padding: 0; accent-color: var(--brand); }
.editor-properties input[type="color"] { width: 100%; height: 36px; padding: 3px; }
.editor-properties textarea { min-height: 96px; resize: vertical; }
.editor-selected-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.editor-empty { color: var(--muted); }
.editor-empty p { margin: 0; font-size: 13px; line-height: 1.6; }
.danger-outline { min-height: 38px; margin-top: 5px; border: 1px solid #e6babb; border-radius: 8px; background: #fff; color: var(--danger); font-size: 12px; font-weight: 800; cursor: pointer; }

@media (max-width: 1050px) {
  .booking-layout { grid-template-columns: 1fr; }
  .calendar-panel { max-width: 720px; width: 100%; margin: 0 auto; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .resort-admin-grid { grid-template-columns: 1fr; }
  .calendar-admin-grid { grid-template-columns: 1fr; }
  .season-catalog-admin { grid-template-columns: 1fr; }
  .season-inventory-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season-inventory-form .primary-button { grid-column: 1 / -1; }
  .general-bulk-upload { grid-template-columns: 1fr; }
  .general-bulk-upload button { grid-column: auto; grid-row: auto; }
  .management-panel { min-height: auto; }
  .guide-editor-layout { grid-template-columns: 165px minmax(380px, 1fr); }
  .editor-inspector { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .editor-properties { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-properties h3, .editor-empty, .danger-outline { grid-column: 1 / -1; }
}

@media (max-width: 850px) {
  .topbar { min-height: 0; flex-wrap: wrap; padding-top: 13px; gap: 10px; }
  .nav { order: 3; width: 100%; height: 50px; overflow-x: auto; justify-content: center; }
  .nav-item { padding: 0 15px; }
  .nav-item.active::after { left: 13px; right: 13px; }
  .storage-chip { margin-left: auto; }
  .page-heading { align-items: flex-start; }
  .steps { display: none; }
  .lookup-layout { grid-template-columns: 1fr; max-width: 580px; }
  .lookup-aside { border-left: 0; border-top: 1px solid var(--line); padding: 30px 5px 0; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-aside { padding: 25px; }
  .guide-editor-layout { grid-template-columns: 1fr; }
  .editor-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .editor-page-list { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .editor-inspector { grid-column: auto; }
}

@media (max-width: 600px) {
  .shell { padding-top: 30px; }
  .page-heading { margin-bottom: 20px; }
  .panel { padding: 20px; border-radius: 14px; }
  .panel-title { display: block; }
  .panel-title p { text-align: left; margin-top: 9px; }
  .field-row, .detail-grid { grid-template-columns: 1fr; }
  .detail-wide { grid-column: auto; }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .storage-chip { display: none; }
  .nav { justify-content: flex-start; }
  .calendar-day { aspect-ratio: 1; }
  .date-summary { gap: 9px; align-items: flex-start; }
  .date-arrow { padding-top: 16px; }
  .lookup-card, .login-card { padding: 26px 20px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid article { padding: 17px; }
  .stat-grid strong { font-size: 25px; }
  .section-toolbar { align-items: flex-start; }
  .season-inventory-tools { display: grid; align-items: start; }
  .inventory-upload-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .inventory-upload-actions input { grid-column: 1 / -1; max-width: none; }
  .season-inventory-form { grid-template-columns: 1fr; }
  .compact-select { display: none; }
  .admin-content { padding: 16px; }
  .resort-admin-grid { grid-template-columns: minmax(0, 1fr); }
  .application-number { grid-template-columns: 1fr auto; }
  .application-number span { grid-column: 1 / -1; }
  .application-number strong { text-align: left; font-size: 16px; }
  .success-summary { display: grid; text-align: left; }
  .modal-success, .modal-form { padding: 24px 20px; }
  .modal-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .footer { padding-block: 20px; display: grid; }
  .guide-card-header, .guide-save-row { display: grid; }
  .guide-card-header > span { padding: 0; }
  .guide-save-row .primary-button { width: 100%; }
  .application-placeholder { margin: 20px 0; padding: 38px 20px; }
  .guide-viewer { padding: 14px; }
  .guide-viewer-bar, .guide-editor-heading { display: grid; }
  .guide-editor-heading > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .editor-workspace { padding: 11px; }
  .editor-toolbar { flex-wrap: wrap; }
  .editor-properties { grid-template-columns: 1fr; }
  .guide-pdf { padding: 7px; gap: 6px; font-size: 10px; }
  .guide-pdf .pdf-mark { width: 25px; height: 25px; font-size: 8px; }
  .guide-pdf small { display: none; }
  .guide-pdf a { font-size: 10px; }
  .season-round-form { grid-template-columns: 1fr 1fr; }
  .season-round-form label:first-child, .season-round-form .primary-button { grid-column: 1 / -1; }
  .season-round-filter { grid-template-columns: 1fr; }
  .round-status-form { display: grid; grid-template-columns: 1fr 1fr; }
  .round-status-form select { min-width: 0; }
  .round-admin-actions { display: grid; grid-template-columns: 1fr; }
}
