:root {
  color-scheme: light;
  --forest-950: #12263a;
  --forest-900: #183a55;
  --forest-800: #245470;
  --forest-700: #2f6f87;
  --forest-600: #4a8e9e;
  --forest-500: #68a6b3;
  --forest-200: #c9dfe5;
  --forest-100: #e1edf1;
  --forest-50: #eff5f7;
  --cream: #eef3f6;
  --paper: #fbfdff;
  --sun: #ffc766;
  --coral: #df765a;
  --ink: #1b2935;
  --muted: #5f717d;
  --line: #d6e1e7;
  --danger: #b34f50;
  --success: #26715d;
  --warning: #9c641b;
  --shadow-sm: 0 5px 20px rgb(24 58 85 / 8%);
  --shadow-md: 0 12px 32px rgb(24 58 85 / 13%);
  --shadow-lg: 0 24px 70px rgb(10 31 49 / 22%);
  --radius-sm: 13px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --content-width: 940px;
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background: var(--cream);
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% -8%, rgb(92 166 184 / 20%) 0 12rem, transparent 31rem),
    linear-gradient(180deg, #f5f9fb 0%, var(--cream) 46%, #eaf1f4 100%);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:not(:disabled),
label[for],
select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--forest-600);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.login-view {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 78% 14%, rgb(255 199 102 / 13%) 0 6rem, transparent 17rem),
    linear-gradient(155deg, #0d2034 0%, var(--forest-900) 55%, #245f70 100%);
}

.login-view::before {
  position: absolute;
  width: min(74vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(255 199 102 / 13%);
  content: "";
  filter: blur(1px);
  inset: -25vw -20vw auto auto;
}

.login-forest {
  position: absolute;
  right: -20px;
  bottom: 0;
  left: -20px;
  height: 32vh;
  opacity: 0.32;
}

.login-forest span {
  position: absolute;
  bottom: -4rem;
  width: 0;
  height: 0;
  border-right: 86px solid transparent;
  border-bottom: 270px solid var(--forest-600);
  border-left: 86px solid transparent;
}

.login-forest span:nth-child(1) { left: -45px; transform: scale(1.25); }
.login-forest span:nth-child(2) { left: 20%; transform: scale(0.82); }
.login-forest span:nth-child(3) { left: 43%; transform: scale(1.15); }
.login-forest span:nth-child(4) { left: 67%; transform: scale(0.75); }
.login-forest span:nth-child(5) { right: -30px; transform: scale(1.3); }

.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 38px 30px 30px;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 32px;
  background: rgb(251 253 255 / 96%);
  box-shadow: var(--shadow-lg);
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  border-radius: 18px 18px 18px 5px;
  color: white;
  background: var(--forest-900);
  font-size: 1.3rem;
  font-weight: 900;
  place-items: center;
  transform: rotate(-3deg);
}

.login-card h1 {
  color: var(--forest-950);
  font-size: clamp(2rem, 9vw, 2.65rem);
  line-height: 1.17;
  letter-spacing: -0.055em;
}

.login-copy {
  margin: 17px 0 30px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.field-label {
  display: block;
  margin: 17px 0 8px;
  color: #4f6070;
  font-size: 0.82rem;
  font-weight: 750;
}

input[type="text"],
input[type="password"],
input[type="search"],
input[type="date"],
input[type="month"],
input[type="datetime-local"],
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--ink);
  background: white;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input[type="text"],
input[type="password"],
input[type="search"],
input[type="date"],
input[type="month"],
input[type="datetime-local"] {
  padding: 0 14px;
}

select {
  padding: 0 36px 0 13px;
}

input:focus,
select:focus {
  border-color: var(--forest-600);
  box-shadow: 0 0 0 4px rgb(74 142 158 / 16%);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 64px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

.icon-button {
  min-width: 38px;
  min-height: 38px;
  padding: 0 8px;
  border: 0;
  border-radius: 12px;
  color: var(--forest-700);
  background: transparent;
  font-size: 0.79rem;
  font-weight: 800;
}

.icon-button:hover {
  background: var(--forest-50);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  border: 1px solid var(--forest-900);
  color: white;
  background: var(--forest-900);
  box-shadow: 0 9px 22px rgb(24 58 85 / 20%);
}

.primary-button:hover:not(:disabled) {
  background: var(--forest-800);
  box-shadow: 0 12px 26px rgb(24 58 85 / 28%);
}

.primary-button:active:not(:disabled),
.secondary-button:active:not(:disabled) {
  transform: translateY(1px);
}

.secondary-button {
  border: 1px solid var(--forest-200);
  color: var(--forest-800);
  background: var(--forest-50);
}

.secondary-button:hover:not(:disabled) {
  background: var(--forest-100);
}

.full-button {
  width: 100%;
}

.compact {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 11px;
  font-size: 0.78rem;
}

.form-error {
  min-height: 20px;
  margin: 8px 0;
  color: var(--danger);
  font-size: 0.78rem;
  line-height: 1.4;
}

.privacy-note {
  margin-top: 20px;
  color: #7b8a95;
  font-size: 0.73rem;
  text-align: center;
}

.app-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100vh;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  width: 100%;
  max-width: var(--content-width);
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 20px 12px;
  background: rgb(238 243 246 / 90%);
  backdrop-filter: blur(16px);
}

.topbar h1 {
  color: var(--forest-950);
  font-size: 1.12rem;
  letter-spacing: -0.035em;
}

.topbar .eyebrow {
  margin-bottom: 2px;
  font-size: 0.6rem;
}

.status-pill {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #60717d;
  background: rgb(255 255 255 / 72%);
  font-size: 0.72rem;
  font-weight: 750;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9daab2;
  box-shadow: 0 0 0 4px rgb(169 177 173 / 15%);
}

.status-pill.online .status-dot {
  background: #3b9b70;
  box-shadow: 0 0 0 4px rgb(59 155 112 / 15%);
}

.status-pill.warning .status-dot {
  background: #d68d35;
  box-shadow: 0 0 0 4px rgb(214 141 53 / 15%);
}

.main-content {
  width: min(100%, var(--content-width));
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 7px 18px 34px;
}

.app-view {
  display: none;
  min-width: 0;
  animation: view-in 230ms ease both;
}

.app-view.active {
  display: block;
}

.view-segmented {
  display: grid;
  margin: 6px 0 17px;
  padding: 5px;
  border: 1px solid #b9d0da;
  border-radius: 16px;
  background: rgb(244 249 251 / 92%);
  box-shadow: 0 5px 16px rgb(24 58 85 / 7%);
  grid-template-columns: repeat(2, 1fr);
}

.view-segmented button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease;
}

.view-segmented button.active {
  border-color: rgb(36 84 112 / 40%);
  color: white;
  background: linear-gradient(135deg, var(--forest-800), var(--forest-700));
  box-shadow: 0 4px 12px rgb(24 58 85 / 19%);
}

.view-segmented button:not(.active):hover {
  color: var(--forest-800);
  background: rgb(255 255 255 / 70%);
}

.view-segmented button:focus-visible {
  outline: 2px solid var(--forest-500);
  outline-offset: 2px;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-card {
  position: relative;
  display: grid;
  min-height: 230px;
  overflow: hidden;
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  color: white;
  background:
    radial-gradient(circle at 81% 18%, rgb(255 199 102 / 11%) 0 3.5rem, transparent 10rem),
    linear-gradient(138deg, #142d48 0%, var(--forest-900) 56%, #255f70 100%);
  box-shadow: var(--shadow-sm);
  grid-template-columns: minmax(0, 1.25fr) minmax(125px, 0.75fr);
}

.hero-card > div:first-child {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  margin-bottom: 10px;
  color: #bddbe3;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-card h2 {
  font-size: clamp(1.8rem, 7vw, 2.55rem);
  line-height: 1.17;
  letter-spacing: -0.055em;
}

.hero-card p:last-child {
  max-width: 330px;
  margin-top: 18px;
  color: #d8e8ed;
  font-size: 0.8rem;
  line-height: 1.55;
}

.hero-art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  height: 100%;
}

.sun {
  position: absolute;
  top: 32px;
  right: 36px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 10px rgb(255 199 102 / 9%);
}

.hill {
  position: absolute;
  bottom: -62px;
  width: 260px;
  height: 180px;
  border-radius: 50% 50% 0 0;
}

.hill-back {
  right: -58px;
  background: #3f7889;
  transform: rotate(-11deg);
}

.hill-front {
  right: 40px;
  bottom: -90px;
  background: #28586c;
  transform: rotate(12deg);
}

.tree {
  position: absolute;
  z-index: 2;
  bottom: 42px;
  width: 0;
  height: 0;
  border-right: 17px solid transparent;
  border-bottom: 53px solid #9bc5c8;
  border-left: 17px solid transparent;
}

.tree::after {
  position: absolute;
  top: 49px;
  left: -3px;
  width: 6px;
  height: 18px;
  border-radius: 2px;
  background: #bf815e;
  content: "";
}

.tree-a { right: 42px; transform: scale(1.25); }
.tree-b { right: 96px; bottom: 24px; transform: scale(0.78); }
.tree-c { right: 148px; bottom: 34px; transform: scale(0.95); }

.panel {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid rgb(209 223 230 / 90%);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.section-heading,
.results-heading,
.page-heading,
.subsection-heading,
.dialog-heading,
.row-label,
.selection-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading h3,
.subsection-heading h3 {
  color: var(--forest-950);
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.step-number {
  display: grid;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  color: white;
  background: var(--forest-800);
  font-size: 0.72rem;
  font-weight: 850;
  place-items: center;
}

.text-button,
.danger-text-button {
  padding: 6px 2px;
  border: 0;
  color: var(--forest-700);
  background: transparent;
  font-size: 0.77rem;
  font-weight: 800;
}

.text-button.muted {
  color: var(--muted);
}

.danger-text-button {
  width: 100%;
  margin-top: 24px;
  color: var(--danger);
  text-align: center;
}

.date-entry-row {
  display: grid;
  margin-top: 17px;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.date-picker-toolbar {
  display: grid;
  align-items: center;
  margin-top: 15px;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
}

.date-picker-toolbar strong {
  color: var(--forest-950);
  font-size: 0.94rem;
  text-align: center;
}

.date-calendar-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-size: 1.3rem;
}

.date-picker-weekdays,
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.date-picker-weekdays {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-align: center;
}

.date-picker-weekdays span {
  padding: 7px 0;
}

.date-picker-weekdays span:first-child {
  color: var(--danger);
}

.date-picker-weekdays span:last-child {
  color: #476d93;
}

.date-picker-grid {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f7fafc;
}

.date-picker-day {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 52px;
  place-content: center;
  border: 0;
  border-right: 1px solid #e5edf1;
  border-bottom: 1px solid #e5edf1;
  color: var(--ink);
  background: white;
  font-size: 0.78rem;
  font-weight: 750;
  gap: 1px;
}

.date-picker-day:nth-child(7n) {
  border-right: 0;
}

.date-picker-day.blank {
  background: #f4f8fa;
}

.date-picker-day.sunday {
  color: var(--danger);
}

.date-picker-day.saturday {
  color: #476d93;
}

.date-picker-day.today::after {
  position: absolute;
  right: 7px;
  bottom: 5px;
  left: 7px;
  height: 2px;
  border-radius: 999px;
  background: var(--forest-200);
  content: "";
}

.date-picker-day small {
  color: var(--forest-600);
  font-size: 0.5rem;
  font-weight: 850;
}

.date-picker-day.selected {
  z-index: 1;
  color: white;
  background: var(--forest-800);
  box-shadow: inset 0 0 0 2px var(--forest-800);
}

.date-picker-day.selected small {
  color: white;
}

.date-picker-day.selected::after {
  background: rgb(255 255 255 / 55%);
}

.date-picker-day:not(:disabled):not(.selected):hover {
  background: var(--forest-50);
}

.selected-date-copy {
  margin-top: 12px;
  color: var(--forest-800);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
}

.date-picker-help {
  margin: 5px auto 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
  text-align: center;
}

.lookup-options-panel {
  padding: 0 18px;
}

.lookup-waitlist-switch {
  min-height: 62px;
  margin-top: 0;
  padding: 6px 0;
}

.month-entry-row {
  display: grid;
  align-items: center;
  gap: 8px;
  grid-template-columns: 45px minmax(0, 1fr) 45px;
}

.month-arrow {
  min-width: 0;
  padding: 0;
  font-size: 1.35rem;
}

.monthly-controls > .primary-button {
  margin-top: 18px;
}

.monthly-facility-picker-row {
  display: grid;
  align-items: stretch;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.monthly-facility-picker-row .secondary-button {
  min-height: 48px;
  white-space: nowrap;
}

.monthly-search-box {
  margin-top: 16px;
  padding: 15px;
  border: 1px dashed #c6d8df;
  border-radius: 15px;
  background: var(--forest-50);
}

.monthly-search-heading {
  display: grid;
  gap: 3px;
}

.monthly-search-heading strong {
  color: var(--forest-900);
  font-size: 0.84rem;
}

.monthly-search-heading span,
.monthly-selection-bar span {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.monthly-search-box .field-label {
  margin-top: 13px;
}

.monthly-facility-search-row {
  display: grid;
  margin-top: 9px;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.monthly-facility-results {
  display: grid;
  margin-top: 9px;
  gap: 6px;
}

.monthly-facility-result {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: white;
  text-align: left;
  gap: 10px;
}

.monthly-facility-result strong,
.monthly-facility-result span {
  display: block;
}

.monthly-facility-result strong {
  font-size: 0.78rem;
}

.monthly-facility-result span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.66rem;
}

.monthly-facility-result > i {
  color: var(--forest-700);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.inline-success {
  margin: 2px 2px 0;
  color: var(--forest-700);
  font-size: 0.73rem;
  font-weight: 800;
}

.monthly-page-heading {
  margin-top: 22px;
}

.monthly-results {
  margin-top: 26px;
}

.monthly-result-heading {
  align-items: flex-end;
  margin-bottom: 12px;
}

.monthly-day-copy {
  display: grid;
  gap: 3px;
}

.monthly-day-copy > span {
  color: var(--muted);
  font-size: 0.7rem;
}

.monthly-day-heading {
  align-items: flex-start;
  flex-wrap: wrap;
}

.monthly-day-tools,
.monthly-status-filters,
.monthly-status-filter {
  display: flex;
  align-items: center;
}

.monthly-day-tools {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px 12px;
}

.monthly-status-filters {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.monthly-status-filter {
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest-800);
  background: var(--paper);
  font-size: 0.7rem;
  font-weight: 800;
  gap: 5px;
  cursor: pointer;
}

.monthly-status-filter:has(input:checked) {
  border-color: var(--forest-500);
  background: var(--forest-50);
}

.monthly-status-filter input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--forest-700);
}

.calendar-legend {
  display: flex;
  margin: 0 2px 10px;
  color: var(--muted);
  font-size: 0.68rem;
  gap: 13px;
}

.calendar-legend span::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  content: "";
}

.available-dot::before { background: #3b936b; }
.wait-dot::before { background: #d79c3f; }
.closed-dot::before { background: #b9c0bc; }

.month-calendar {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.month-weekday {
  display: grid;
  min-height: 34px;
  place-items: center;
  color: var(--muted);
  background: var(--forest-50);
  font-size: 0.66rem;
  font-weight: 800;
}

.month-weekday.sunday,
.month-day.sunday .month-day-number {
  color: var(--danger);
}

.month-day {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 78px;
  align-items: flex-start;
  padding: 8px 5px;
  border: 0;
  border-top: 1px solid #e5edf1;
  border-right: 1px solid #e5edf1;
  background: white;
  text-align: left;
  flex-direction: column;
  gap: 5px;
}

.month-day:nth-child(7n) {
  border-right: 0;
}

.month-day.blank {
  background: #f7fafc;
}

.month-day:not(.blank):hover {
  background: var(--forest-50);
}

.month-day.selected {
  z-index: 1;
  outline: 2px solid var(--forest-700);
  outline-offset: -2px;
  background: #edf5f7;
}

.month-day.past {
  opacity: 0.45;
}

.month-day-number {
  font-size: 0.72rem;
  font-weight: 850;
}

.month-day-statuses {
  display: grid;
  width: 100%;
  gap: 3px;
}

.month-count {
  overflow: hidden;
  padding: 2px 3px;
  border-radius: 5px;
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.month-count.available {
  color: #1e6446;
  background: #dff1e4;
}

.month-count.waitlist {
  color: #8b5c14;
  background: #faedcf;
}

.month-count.closed {
  color: #74807b;
  background: #edf1f3;
}

.monthly-room-card {
  display: grid;
  align-items: center;
  padding: 15px 16px;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.monthly-room-card.selected-room {
  border-color: var(--forest-500);
  background: #edf5f7;
  box-shadow: 0 0 0 2px rgb(74 142 158 / 10%);
}

.monthly-room-main {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 11px;
  grid-template-columns: auto minmax(0, 1fr);
}

.monthly-room-check {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
}

.monthly-room-check input {
  width: 19px;
  height: 19px;
  accent-color: var(--forest-700);
}

.monthly-selection-bar {
  position: sticky;
  z-index: 4;
  bottom: calc(72px + env(safe-area-inset-bottom));
  display: grid;
  align-items: center;
  margin: 12px 0;
  padding: 13px 14px;
  border: 1px solid #bdd6de;
  border-radius: 15px;
  background: rgb(243 248 250 / 96%);
  box-shadow: var(--shadow-md);
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  backdrop-filter: blur(10px);
}

.monthly-selection-bar[hidden] {
  display: none;
}

.monthly-selection-bar > div {
  display: grid;
  gap: 3px;
}

.monthly-selection-bar strong {
  color: var(--forest-950);
  font-size: 0.8rem;
}

.monthly-room-card h3 {
  margin-top: 5px;
}

.monthly-room-type {
  color: var(--forest-800);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.35;
}

.family-discount-copy {
  margin-top: 6px;
  color: #2e6e62;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.45;
}

.monthly-room-card .reserve-button {
  align-self: center;
}

.room-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.room-detail-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--forest-800);
  background: var(--paper);
  font-size: 0.72rem;
  font-weight: 820;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  gap: 5px;
  cursor: pointer;
}

.room-detail-link:hover {
  border-color: var(--forest-200);
  background: var(--forest-50);
}

.room-detail-link:focus-visible {
  outline: 3px solid rgb(74 142 158 / 24%);
  outline-offset: 2px;
}

.quick-chips,
.selected-chips {
  display: flex;
  overflow-x: auto;
  padding: 3px 0 1px;
  gap: 7px;
  scrollbar-width: none;
}

.quick-chips {
  margin-top: 12px;
}

.selected-chips {
  min-height: 39px;
  margin-top: 9px;
  flex-wrap: wrap;
}

.quick-chips::-webkit-scrollbar,
.selected-chips::-webkit-scrollbar {
  display: none;
}

.date-chip,
.selected-chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #5d6d79;
  background: white;
  font-size: 0.75rem;
  font-weight: 750;
}

.date-chip.selected,
.selected-chip {
  border-color: var(--forest-200);
  color: var(--forest-800);
  background: var(--forest-100);
}

.selected-chip::after {
  margin-left: 7px;
  content: "×";
}

.empty-chip-copy {
  align-self: center;
  color: #88969f;
  font-size: 0.75rem;
}

.filter-row {
  display: grid;
  margin-top: 17px;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
}

.region-filter-field {
  min-width: 0;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.region-filter-field legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 800;
}

.region-filter-field legend span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.region-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.region-choice {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 0.8rem;
  font-weight: 700;
  gap: 6px;
  cursor: pointer;
}

.region-choice:has(input:checked),
.region-choice:has(input:indeterminate) {
  border-color: var(--forest-200);
  background: var(--forest-50);
  color: var(--forest-800);
}

.region-choice input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  accent-color: var(--forest-700);
}

.search-field {
  position: relative;
}

.search-field > span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  color: #7d8c97;
  transform: translateY(-50%);
}

.search-field input {
  padding-left: 37px;
}

.selection-actions {
  justify-content: flex-start;
  margin: 8px 1px 3px;
}

.facility-list {
  display: grid;
  max-height: 510px;
  overflow: auto;
  margin: 2px -5px -3px;
  padding: 5px;
  gap: 8px;
  scrollbar-color: var(--forest-200) transparent;
}

.facility-option {
  position: relative;
  display: grid;
  min-height: 68px;
  align-items: center;
  padding: 12px 43px 12px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.facility-option:hover {
  transform: translateY(-1px);
}

.facility-option.selected {
  border-color: #7aa9b7;
  background: #edf5f7;
}

.facility-option strong {
  display: block;
  overflow: hidden;
  font-size: 0.86rem;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facility-option small {
  display: flex;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  gap: 7px;
}

.facility-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkmark {
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  width: 23px;
  height: 23px;
  border: 1.5px solid #c5d1d7;
  border-radius: 8px;
  color: transparent;
  background: white;
  font-size: 0.74rem;
  font-weight: 900;
  place-items: center;
  transform: translateY(-50%);
}

.facility-option.selected .checkmark {
  border-color: var(--forest-700);
  color: white;
  background: var(--forest-700);
}

.count-label {
  color: var(--forest-700);
  font-size: 0.73rem;
  font-weight: 800;
  white-space: nowrap;
}

.sticky-action {
  position: sticky;
  z-index: 10;
  bottom: calc(74px + env(safe-area-inset-bottom));
  margin-top: 15px;
  padding: 8px 0;
  background: linear-gradient(transparent, var(--cream) 24%, var(--cream));
}

.action-button {
  min-height: 56px;
  border-radius: 17px;
  font-size: 0.94rem;
}

.button-icon {
  display: grid;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: rgb(255 255 255 / 12%);
  place-items: center;
}

.progress-panel {
  padding: 22px;
  border-color: #bdd6de;
  background: #f3f8fa;
}

.progress-head,
.progress-head > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.progress-head {
  justify-content: space-between;
}

.progress-head h3 {
  font-size: 0.92rem;
}

.progress-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.spinner {
  display: block;
  width: 25px;
  height: 25px;
  border: 3px solid #c9dfe5;
  border-top-color: var(--forest-700);
  border-radius: 50%;
  animation: spin 850ms linear infinite;
}

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

.progress-track {
  height: 7px;
  overflow: hidden;
  margin-top: 17px;
  border-radius: 999px;
  background: #dce9ed;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest-600), #6cb0b7);
  transition: width 250ms ease;
}

.job-status-list {
  display: grid;
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.72rem;
  gap: 5px;
}

.job-status-row {
  display: flex;
  justify-content: space-between;
}

.results-section {
  margin-top: 27px;
}

.results-heading h2,
.page-heading h2 {
  color: var(--forest-950);
  font-size: 1.55rem;
  letter-spacing: -0.045em;
}

.results-freshness {
  width: fit-content;
  margin-top: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--forest-50);
  font-size: 0.68rem;
  font-weight: 700;
}

.results-freshness.cached {
  color: #7b5716;
  background: #fff2cf;
}

.results-freshness.connected {
  color: #245f69;
  background: #e2f2f5;
}

.result-region-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgb(255 255 255 / 66%);
  gap: 12px;
}

.result-region-toolbar .region-filter-field {
  margin: 0;
}

.result-region-toolbar .count-label {
  align-self: flex-start;
}

.result-summary {
  display: grid;
  margin: 15px 0 11px;
  gap: 9px;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
}

.summary-tile {
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  text-align: center;
}

.summary-tile strong {
  display: block;
  color: var(--forest-800);
  font-size: 1.28rem;
}

.summary-tile small {
  color: var(--muted);
  font-size: 0.67rem;
}

.result-list,
.stack-list {
  display: grid;
  gap: 10px;
}

.result-card,
.stack-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.result-card {
  overflow: hidden;
}

.result-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px 11px;
  gap: 9px;
}

.result-card-head.collapsible-result-head {
  padding: 0;
}

.result-card-toggle {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  padding: 15px 8px 13px 16px;
  border: 0;
  gap: 10px;
  color: inherit;
  background: transparent;
  text-align: left;
}

.result-card-toggle:hover {
  background: var(--forest-50);
}

.result-card-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--forest-500) 32%, transparent);
  outline-offset: -3px;
}

.collapsible-result-head > .facility-month-link {
  margin-right: 16px;
}

.result-card-counts {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.result-chevron {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.result-card-toggle[aria-expanded="true"] .result-chevron {
  transform: rotate(180deg);
}

.result-room-list[hidden] {
  display: none;
}

.result-place {
  min-width: 0;
}

.result-place strong {
  display: block;
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-place-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.result-place-title strong {
  min-width: 0;
}

.facility-month-link {
  flex: 0 0 auto;
  color: var(--forest-700);
  font-size: 0.66rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.facility-month-link:hover {
  text-decoration: underline;
}

.result-place small,
.result-room small,
.card-meta,
.account-card p {
  color: var(--muted);
  font-size: 0.7rem;
}

.status-badge,
.tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 850;
  white-space: nowrap;
}

.status-badge.available,
.tag.success {
  color: #216246;
  background: #dff1e4;
}

.status-badge.waitlist,
.tag.warning {
  color: #926016;
  background: #faedcf;
}

.status-badge.not-open {
  color: #5f6873;
  background: #e9edf0;
}

.status-badge.same-day-closed {
  color: #785421;
  background: #f5ead4;
}

.not-open-copy {
  padding: 15px 16px 17px;
  border-top: 1px solid #e5edf1;
}

.not-open-copy strong {
  color: var(--forest-950);
  font-size: 0.82rem;
}

.not-open-copy p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.tag.pending {
  color: #476d93;
  background: #e6eef7;
}

.status-badge.failed,
.tag.failed {
  color: #a44b42;
  background: #fae4e1;
}

.result-room {
  display: grid;
  padding: 12px 16px 15px;
  border-top: 1px solid #e5edf1;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.result-room strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

.result-room small {
  display: block;
  margin-top: 4px;
}

.reserve-button {
  align-self: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--forest-200);
  border-radius: 11px;
  color: var(--forest-800);
  background: var(--forest-50);
  font-size: 0.72rem;
  font-weight: 850;
}

.page-heading {
  align-items: flex-end;
  margin: 13px 2px 22px;
}

.page-heading > div > p:last-child {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.rules-heading-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.stack-card {
  min-width: 0;
  padding: 17px;
}

.notification-filter-panel {
  display: grid;
  margin-bottom: 12px;
  padding: 15px;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notification-filter-panel .field-label {
  margin-top: 0;
}

.notification-filter-panel select {
  width: 100%;
  margin-top: 6px;
}

.notification-card {
  overflow: hidden;
}

.notification-card h3 {
  line-height: 1.45;
}

.notification-message {
  margin: 13px -2px 0;
  padding: 13px 14px;
  border-radius: 14px;
  color: #334d5e;
  background: #f2f7f9;
  font-family: inherit;
  font-size: 0.75rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.notification-room-links,
.notification-room-details {
  margin-top: 13px;
  border: 1px solid #d8e4e8;
  border-radius: 14px;
  background: #fbfdfe;
}

.notification-room-links-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 11px 13px 7px;
  gap: 10px;
}

.notification-room-links-heading strong,
.notification-room-details summary strong {
  color: var(--forest-900);
  font-size: 0.73rem;
}

.notification-room-links-heading span,
.notification-room-details summary small {
  color: var(--muted);
  font-size: 0.64rem;
}

.notification-room-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border-top: 1px solid #e5edf1;
  gap: 12px;
}

.notification-room-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.notification-room-copy strong {
  color: var(--ink);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.notification-room-copy span,
.notification-room-copy small {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.5;
}

.notification-room-details {
  overflow: hidden;
}

.notification-room-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 13px;
  cursor: pointer;
  list-style: none;
  gap: 10px;
}

.notification-room-details summary::-webkit-details-marker {
  display: none;
}

.notification-room-details summary > span:first-child {
  display: grid;
  gap: 2px;
}

.notification-room-details[open] summary > span:last-child {
  transform: rotate(45deg);
}

.notification-room-details .notification-room-links {
  margin-top: 0;
  border: 0;
  border-radius: 0;
}

.notification-quick-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding: 12px 13px;
  border: 1px solid #cfe2df;
  border-radius: 14px;
  gap: 12px;
  background: linear-gradient(135deg, #f4faf8, #edf6f6);
}

.notification-action-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.notification-action-copy strong {
  color: var(--forest-900);
  font-size: 0.76rem;
}

.notification-action-copy small {
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.45;
}

.notification-action-buttons {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.notification-action-button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #98c5bd;
  border-radius: 12px;
  color: var(--forest-900);
  background: #fff;
  font-size: 0.7rem;
  font-weight: 850;
  white-space: nowrap;
}

.notification-action-button:disabled {
  color: var(--muted);
  background: #edf3f3;
}

.notification-load-more {
  width: 100%;
  margin-top: 12px;
}

.rule-list-section {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.rule-list-section + .rule-list-section {
  margin-top: 14px;
}

.rule-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 2px 2px 0;
  gap: 12px;
}

.rule-list-heading > div,
.opening-event-card > div,
.opening-policy-details li > div,
.open-run-timing li > span,
#view-rules .card-topline > *,
#view-rules .card-action-row > * {
  min-width: 0;
}

.rule-list-heading h3 {
  color: var(--forest-950);
  font-size: 0.9rem;
}

.rule-list-heading p,
.rule-list-heading > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.opening-policy-section {
  padding: 16px;
  border: 1px solid #c5dce4;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #fafdff, #edf6f8);
}

.opening-event-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 13px;
  border: 1px solid rgb(47 111 135 / 16%);
  border-radius: 14px;
  background: rgb(255 255 255 / 76%);
  gap: 12px;
}

.opening-event-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  line-height: 1.5;
}

.opening-event-card strong,
.opening-event-card span {
  display: block;
}

.opening-event-card strong {
  color: var(--forest-900);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.opening-event-card .opening-event-facility {
  color: #65432d;
}

.opening-event-card span {
  margin-top: 2px;
  color: var(--warning);
  font-size: 0.68rem;
  font-weight: 800;
}

.opening-policy-details {
  margin-top: 2px;
}

.opening-policy-details summary {
  padding: 9px 2px 3px;
  color: var(--forest-700);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 850;
}

.opening-policy-details ul {
  display: grid;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
  gap: 7px;
}

.opening-policy-details li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 11px;
  border-radius: 12px;
  background: rgb(255 255 255 / 72%);
  gap: 12px;
}

.opening-policy-details strong,
.opening-policy-details span,
.opening-policy-details small {
  display: block;
}

.opening-policy-details strong {
  color: var(--forest-950);
  font-size: 0.73rem;
}

.opening-policy-details span,
.opening-policy-details small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.63rem;
  line-height: 1.45;
}

.opening-policy-details a {
  flex: 0 0 auto;
  color: var(--forest-700);
  font-size: 0.66rem;
  font-weight: 800;
  text-decoration: none;
}

.open-run-plan-card {
  border-color: #e8cf9d;
  background: linear-gradient(145deg, #fffdf8, #fff7e7);
}

.open-run-plan-candidates {
  display: grid;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  gap: 7px;
}

.open-run-plan-candidates li {
  display: grid;
  padding: 10px 11px;
  border: 1px solid rgb(156 100 27 / 14%);
  border-radius: 12px;
  background: rgb(255 255 255 / 70%);
  gap: 2px;
}

.open-run-plan-candidates li.winner {
  border-color: #8ac4ad;
  background: #edf8f3;
}

.open-run-plan-candidates strong {
  color: var(--forest-950);
  font-size: 0.76rem;
}

.open-run-plan-candidates span,
.open-run-plan-candidates small,
.open-run-last-message {
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.45;
}

#view-rules .card-meta,
#view-rules .form-error,
#view-rules .rule-list-heading p,
#view-rules .opening-policy-details strong,
#view-rules .opening-policy-details span,
#view-rules .opening-policy-details small,
#view-rules .open-run-plan-candidates strong,
#view-rules .open-run-plan-candidates span,
#view-rules .open-run-plan-candidates small,
#view-rules .open-run-last-message,
#view-rules .open-run-timing li span,
#view-rules .catalog-rule-rooms p {
  overflow-wrap: anywhere;
}

.open-run-booking-results {
  display: grid;
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid #a9d5c4;
  border-radius: 11px;
  background: #edf8f3;
  gap: 6px;
}

.open-run-booking-results > strong {
  color: var(--forest-800);
  font-size: 0.72rem;
}

.open-run-booking-results ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 5px;
}

.open-run-booking-results li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3px 10px;
  color: var(--muted);
  font-size: 0.66rem;
}

.open-run-booking-results li strong {
  color: var(--forest-950);
}

.open-run-last-message {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgb(255 255 255 / 68%);
}

.open-run-timing {
  margin-top: 9px;
  border: 1px solid rgb(156 100 27 / 14%);
  border-radius: 11px;
  background: rgb(255 255 255 / 55%);
}

.open-run-timing summary {
  padding: 9px 11px;
  color: #765119;
  font-size: 0.67rem;
  font-weight: 800;
  cursor: pointer;
}

.open-run-timing ol {
  display: grid;
  margin: 0;
  padding: 0 11px 10px;
  list-style: none;
  gap: 5px;
}

.open-run-timing li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.63rem;
  line-height: 1.4;
}

.open-run-timing li.warning span {
  color: var(--danger);
  font-weight: 800;
}

.open-run-timing time {
  flex: 0 0 auto;
  color: #84919c;
}

.rule-list-heading > span {
  flex: 0 0 auto;
  font-weight: 800;
}

.operational-rule-card {
  border-color: #c9dde4;
  background: linear-gradient(145deg, #fbfdff, #f0f7f8);
}

.catalog-rule-card {
  border-color: #c7ddd4;
  background: linear-gradient(145deg, #fbfefc, #f0f7f3);
}

.catalog-rule-card.disabled {
  border-color: #d8e0e2;
  background: #f6f8f8;
}

.catalog-rule-rooms {
  margin-top: 10px;
  border-top: 1px solid rgb(61 105 86 / 12%);
  border-bottom: 1px solid rgb(61 105 86 / 12%);
}

.catalog-rule-rooms summary {
  padding: 9px 1px;
  color: var(--forest-700);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
}

.catalog-rule-rooms p {
  padding: 0 1px 10px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.65;
}

.rule-catalog-policy-note {
  margin-top: 8px;
  margin-bottom: 13px;
  border-color: #bcd9ce;
  color: #315f4e;
  background: #eef8f3;
}

.operational-priority {
  color: var(--forest-700);
  font-weight: 750;
}

.read-only-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.card-topline,
.card-action-row,
.account-heading,
.account-status-row,
.action-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stack-card h3 {
  margin-top: 8px;
  color: var(--forest-950);
  font-size: 0.97rem;
  letter-spacing: -0.025em;
}

.card-meta {
  margin-top: 5px;
  line-height: 1.5;
}

.card-tags {
  display: flex;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 6px;
}

.card-action-row {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #e5edf1;
}

.delete-rule {
  border: 0;
  color: var(--danger);
  background: transparent;
  font-size: 0.74rem;
  font-weight: 800;
}

.waitlist-cancel-button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #ead4d4;
  border-radius: 11px;
  color: var(--danger);
  background: #fff8f8;
  font-size: 0.74rem;
  font-weight: 800;
}

.empty-state {
  padding: 42px 24px;
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 15px;
  border-radius: 19px;
  color: var(--forest-700);
  background: var(--forest-100);
  font-size: 1.3rem;
  place-items: center;
}

.empty-state h3 {
  font-size: 0.95rem;
}

.empty-state p {
  max-width: 340px;
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.55;
}

.empty-state .secondary-button {
  margin-top: 14px;
}

.mypage-refresh-panel {
  display: grid;
  align-items: center;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid #bdd8df;
  border-radius: 17px;
  background: linear-gradient(135deg, #f6fbfc 0%, #eaf5f7 100%);
  box-shadow: 0 8px 24px rgb(36 95 105 / 7%);
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.mypage-refresh-copy {
  min-width: 0;
}

.mypage-refresh-copy span,
.mypage-refresh-copy strong,
.mypage-refresh-copy small {
  display: block;
}

.mypage-refresh-copy span {
  color: #4b7480;
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.mypage-refresh-copy strong {
  margin-top: 4px;
  color: var(--forest-950);
  font-size: 0.92rem;
  letter-spacing: -0.025em;
}

.mypage-refresh-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.mypage-refresh-panel .secondary-button {
  min-width: 104px;
  white-space: nowrap;
}

.inline-notice {
  margin-bottom: 12px;
  padding: 13px 15px;
  border: 1px solid #cfe1e6;
  border-radius: 14px;
  color: #415f70;
  background: #edf6f8;
  font-size: 0.76rem;
  line-height: 1.5;
}

@media (max-width: 430px) {
  .mypage-refresh-panel {
    grid-template-columns: 1fr;
  }

  .mypage-refresh-panel .secondary-button {
    width: 100%;
  }
}

.filter-tabs {
  display: flex;
  overflow-x: auto;
  margin: 0 -18px 12px;
  padding: 0 18px 2px;
  gap: 7px;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tabs button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-size: 0.72rem;
  font-weight: 800;
}

.filter-tabs button.active {
  border-color: var(--forest-700);
  color: white;
  background: var(--forest-800);
}

.section-tabs {
  margin-bottom: 15px;
}

.mypage-summary {
  display: grid;
  margin-bottom: 12px;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

.mypage-section-label {
  margin: 18px 2px 8px;
  color: var(--forest-950);
  font-size: 0.85rem;
}

.mypage-section-label:first-child {
  margin-top: 0;
}

.mypage-secondary {
  opacity: 0.82;
}

.subsection-heading {
  margin: 26px 2px 11px;
}

.subsection-heading span {
  color: var(--muted);
  font-size: 0.7rem;
}

.compact-list .stack-card {
  padding: 14px 16px;
}

.release-history-panel,
.action-history-panel {
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
}

.release-history-panel > summary,
.action-history-panel > summary {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 19px;
  cursor: pointer;
  list-style: none;
  gap: 16px;
}

.release-history-panel > summary::-webkit-details-marker,
.action-history-panel > summary::-webkit-details-marker {
  display: none;
}

.release-summary-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.release-summary-copy strong {
  color: var(--forest-950);
  font-size: 0.96rem;
  letter-spacing: -0.025em;
}

.release-summary-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.71rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-summary-action {
  display: inline-grid;
  min-width: 48px;
  min-height: 34px;
  flex: 0 0 auto;
  border: 1px solid #bdd5de;
  border-radius: 11px;
  color: var(--forest-700);
  background: #f5fafb;
  font-size: 0.7rem;
  font-weight: 850;
  place-items: center;
}

.release-summary-action span:last-child,
.release-history-panel[open] .release-summary-action span:first-child,
.action-history-panel[open] .release-summary-action span:first-child {
  display: none;
}

.release-history-panel[open] .release-summary-action span:last-child,
.action-history-panel[open] .release-summary-action span:last-child {
  display: inline;
}

.release-history-panel[open] > summary,
.action-history-panel[open] > summary {
  border-bottom: 1px solid var(--line);
  background: #f7fbfc;
}

.release-history-content,
.action-history-content {
  padding: 19px;
}

.release-history-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.release-history-heading h3 {
  color: var(--forest-950);
  font-size: 0.93rem;
}

.release-history-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.71rem;
}

.release-current-card {
  margin-top: 0;
  overflow: hidden;
  border-color: #bdd5de;
  background:
    radial-gradient(circle at 94% 8%, rgb(255 199 102 / 15%) 0 4rem, transparent 10rem),
    linear-gradient(145deg, #fafdff 0%, #edf6f8 100%);
}

.release-current-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.release-live-label {
  display: inline-flex;
  align-items: center;
  color: var(--forest-700);
  font-size: 0.69rem;
  font-weight: 850;
  gap: 6px;
}

.release-live-label i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b9b70;
  box-shadow: 0 0 0 4px rgb(59 155 112 / 13%);
}

.release-current-head h3 {
  margin-top: 7px;
  color: var(--forest-950);
  font-size: 1.18rem;
  letter-spacing: -0.035em;
}

.release-build-status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #6d7680;
  background: #e7edf0;
  font-size: 0.66rem;
  font-weight: 850;
}

.release-build-status.identified {
  color: var(--success);
  background: #dff1e9;
}

.release-meta-grid {
  display: grid;
  margin: 18px 0 0;
  padding: 14px 0;
  border-top: 1px solid rgb(188 211 220 / 72%);
  border-bottom: 1px solid rgb(188 211 220 / 72%);
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.release-meta-grid div {
  min-width: 0;
}

.release-meta-grid dt {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
}

.release-meta-grid dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: var(--forest-900);
  font-size: 0.8rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.release-version-help {
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.release-list-heading {
  margin-top: 28px;
}

.release-timeline {
  display: grid;
  gap: 12px;
}

.release-entry {
  display: grid;
  gap: 8px;
}

.release-date-rail {
  display: flex;
  align-items: center;
  color: var(--forest-700);
  font-size: 0.72rem;
  font-weight: 850;
  gap: 8px;
}

.release-date-rail i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 4px rgb(255 199 102 / 16%);
}

.release-entry-card {
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--forest-500);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.release-entry:first-child .release-entry-card {
  border-left-color: var(--forest-800);
}

.release-entry-card h3 {
  color: var(--forest-950);
  font-size: 0.94rem;
  letter-spacing: -0.025em;
}

.release-entry-card ul {
  display: grid;
  margin: 12px 0 0;
  padding-left: 18px;
  color: #526673;
  font-size: 0.76rem;
  line-height: 1.6;
  gap: 7px;
}

.release-entry-card li::marker {
  color: var(--forest-500);
}

.room-title-with-review {
  display: flex;
  min-width: 0;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 7px;
}

.room-title-with-review h3,
.room-title-with-review strong {
  margin-top: 0;
}

.room-review-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #ead8a8;
  border-radius: 999px;
  color: #805b14;
  background: #fff8e5;
  font-size: 0.65rem;
  font-weight: 850;
  white-space: nowrap;
}

.family-review-panel {
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
  border-color: #d6caa7;
  background: linear-gradient(145deg, #fffefa, #faf7ee);
}

.family-review-panel > summary {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 19px;
  cursor: pointer;
  list-style: none;
  gap: 16px;
}

.family-review-panel > summary::-webkit-details-marker {
  display: none;
}

.family-review-panel[open] .release-summary-action span:first-child {
  display: none;
}

.family-review-panel[open] .release-summary-action span:last-child {
  display: inline;
}

.family-review-panel[open] > summary {
  border-bottom: 1px solid #e8dfc7;
  background: #fffaf0;
}

.family-review-content {
  padding: 19px;
}

.family-review-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.family-review-heading h3 {
  color: var(--forest-950);
  font-size: 0.93rem;
}

.family-review-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.5;
}

.review-summary {
  display: grid;
  margin: 15px 0;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-summary .summary-tile {
  padding: 12px 6px;
  background: rgb(255 255 255 / 78%);
}

.review-summary .summary-tile strong {
  font-size: 1rem;
}

.review-mode-tabs {
  margin: 0 0 13px;
  padding: 0;
}

.review-mode-tabs button span {
  display: inline-grid;
  min-width: 18px;
  min-height: 18px;
  margin-left: 4px;
  border-radius: 999px;
  color: var(--forest-700);
  background: var(--forest-100);
  font-size: 0.61rem;
  place-items: center;
}

.review-mode-tabs button.active span {
  color: var(--forest-900);
  background: white;
}

.review-filter-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-filter-grid label {
  display: grid;
  color: #4f6070;
  font-size: 0.68rem;
  font-weight: 800;
  gap: 6px;
}

.review-filter-grid input,
.review-filter-grid select {
  min-height: 42px;
  background: white;
}

.review-snapshot-copy {
  margin: 11px 1px 13px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.review-list {
  display: grid;
  gap: 11px;
}

.review-stay-card,
.review-facility-group {
  padding: 16px;
  border: 1px solid #e4dac0;
  border-radius: 17px;
  background: rgb(255 255 255 / 82%);
}

.review-stay-card h3 {
  margin-top: 8px;
  color: var(--forest-950);
  font-size: 0.94rem;
}

.review-action-button {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #cfb970;
  border-radius: 11px;
  color: #674b13;
  background: #fff9e9;
  font-size: 0.7rem;
  font-weight: 850;
  white-space: nowrap;
}

.review-facility-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}

.review-facility-heading h3 {
  color: var(--forest-950);
  font-size: 0.95rem;
}

.review-facility-heading span {
  color: var(--muted);
  font-size: 0.66rem;
}

.review-room-group {
  overflow: hidden;
  border: 1px solid #e4e8e9;
  border-radius: 14px;
  background: white;
}

.review-room-group + .review-room-group {
  margin-top: 8px;
}

.review-room-group > summary {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
  gap: 10px;
}

.review-room-group > summary::-webkit-details-marker {
  display: none;
}

.review-room-group > summary > span:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.review-room-group > summary strong {
  color: var(--forest-950);
  font-size: 0.82rem;
}

.review-room-group > summary small {
  color: var(--muted);
  font-size: 0.65rem;
}

.review-room-entries {
  border-top: 1px solid #e7edef;
}

.review-entry {
  padding: 13px;
}

.review-entry + .review-entry {
  border-top: 1px solid #edf1f2;
}

.review-entry-heading,
.review-entry-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-entry-heading strong {
  color: #d79c1b;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.review-entry-heading strong span {
  color: #d8dee1;
}

.review-entry-heading small,
.review-entry-actions > span {
  color: var(--muted);
  font-size: 0.64rem;
}

.review-entry > p {
  margin-top: 9px;
  color: #405764;
  font-size: 0.75rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.review-entry > p.review-empty-comment {
  color: var(--muted);
  font-style: italic;
}

.review-entry-actions {
  margin-top: 11px;
}

.review-entry-actions .review-action-button {
  min-height: 31px;
  font-size: 0.66rem;
}

.review-dialog-context {
  display: grid;
  padding: 13px 14px;
  border: 1px solid #e2d8ba;
  border-radius: 14px;
  background: #fffbef;
  gap: 4px;
}

.review-dialog-context strong {
  color: var(--forest-950);
  font-size: 0.84rem;
}

.review-dialog-context span {
  color: var(--muted);
  font-size: 0.7rem;
}

.review-rating-fieldset {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.review-rating-fieldset legend {
  color: #4f6070;
  font-size: 0.78rem;
  font-weight: 800;
}

.review-rating-fieldset legend strong {
  margin-left: 4px;
  color: var(--danger);
  font-size: 0.64rem;
}

.review-star-picker {
  display: flex;
  margin-top: 8px;
  gap: 4px;
}

.review-star-picker button {
  width: 46px;
  height: 46px;
  border: 1px solid #dfe5e7;
  border-radius: 13px;
  color: #cbd3d6;
  background: #f8fafb;
  font-size: 1.45rem;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease,
    transform 120ms ease;
}

.review-star-picker button.selected {
  border-color: #e1bd5e;
  color: #d99c15;
  background: #fff8df;
}

.review-star-picker button:active {
  transform: scale(0.95);
}

#review-rating-copy {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.7rem;
}

.optional-copy {
  margin-left: 4px;
  color: var(--muted);
  font-size: 0.64rem;
}

#review-comment {
  width: 100%;
  min-height: 130px;
  padding: 12px 14px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.55;
}

#review-comment:focus {
  border-color: var(--forest-600);
  box-shadow: 0 0 0 4px rgb(74 142 158 / 16%);
}

.review-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.review-dialog-actions .primary-button {
  min-width: 145px;
}

.danger-review-button {
  min-height: 44px;
  margin-right: auto;
  padding: 0 12px;
  border: 1px solid #efc8c3;
  border-radius: 12px;
  color: var(--danger);
  background: #fff8f7;
  font-size: 0.72rem;
  font-weight: 800;
}

.account-grid {
  display: grid;
  gap: 10px;
}

.account-card {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.account-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 15px;
  color: var(--forest-800);
  background: var(--forest-100);
  font-size: 0.86rem;
  font-weight: 900;
  place-items: center;
}

.account-heading > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.account-heading h3 {
  overflow: hidden;
  color: var(--forest-950);
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-card p {
  margin-top: 4px;
}

.account-status-row {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e5edf1;
}

.account-status-copy {
  color: var(--muted);
  font-size: 0.72rem;
}

.account-status-copy.ok {
  color: var(--success);
}

.account-status-copy.error {
  color: var(--danger);
}

.edit-account {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--forest-700);
  background: white;
  font-size: 0.72rem;
  font-weight: 800;
}

.security-panel {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: #f3f8fa;
}

.security-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 12px;
  color: white;
  background: var(--forest-700);
  font-weight: 900;
  place-items: center;
}

.security-panel h3 {
  font-size: 0.86rem;
}

.security-panel p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.5;
}

.monitoring-settings-panel {
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
  border-color: #bdd8df;
  background: linear-gradient(145deg, #fbfeff, #f1f8fa);
}

.monitoring-settings-panel > summary {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 19px;
  cursor: pointer;
  list-style: none;
  gap: 16px;
}

.monitoring-settings-panel > summary::-webkit-details-marker {
  display: none;
}

.monitoring-settings-panel[open] .release-summary-action span:first-child {
  display: none;
}

.monitoring-settings-panel[open] .release-summary-action span:last-child {
  display: inline;
}

.monitoring-settings-panel[open] > summary {
  border-bottom: 1px solid #d5e6ea;
  background: #f4fafb;
}

.monitoring-settings-content {
  padding: 19px;
}

.monitoring-settings-heading h3 {
  color: var(--forest-950);
  font-size: 0.93rem;
}

.monitoring-settings-heading p,
.monitoring-settings-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.55;
}

.monitoring-settings-toolbar {
  display: grid;
  margin: 16px 0 12px;
  gap: 9px;
  grid-template-columns: minmax(0, 1.4fr) minmax(130px, 0.6fr);
}

.monitoring-settings-toolbar label {
  display: grid;
  color: #4f6070;
  font-size: 0.68rem;
  font-weight: 800;
  gap: 6px;
}

.monitoring-settings-toolbar input,
.monitoring-settings-toolbar select {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--forest-950);
  background: white;
  font: inherit;
  font-size: 0.75rem;
}

.monitoring-setting-list {
  display: grid;
  margin-top: 12px;
  gap: 9px;
}

.monitoring-setting-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  padding: 13px;
  border: 1px solid #d7e5e9;
  border-radius: 15px;
  background: rgb(255 255 255 / 84%);
  gap: 12px;
  transition: opacity 160ms ease;
}

.monitoring-setting-row.saving {
  opacity: 0.62;
}

.monitoring-setting-copy {
  min-width: 0;
}

.monitoring-setting-copy > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 7px;
}

.monitoring-setting-copy span {
  flex: 0 0 auto;
  color: var(--forest-600);
  font-size: 0.66rem;
  font-weight: 850;
}

.monitoring-setting-copy strong {
  overflow: hidden;
  color: var(--forest-950);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitoring-setting-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.45;
}

.monitoring-setting-copy .monitoring-cadence {
  margin: 9px 0 0;
  flex-wrap: wrap;
}

.monitoring-setting-copy .monitoring-cadence .tag {
  max-width: 100%;
  font-size: 0.7rem;
  white-space: normal;
}

.monitoring-explicit-note {
  margin: 8px 0 0;
  color: var(--forest-600);
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.monitoring-mode-switch {
  display: grid;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid #c8dde3;
  border-radius: 12px;
  background: #edf5f7;
  grid-template-columns: repeat(2, auto);
}

.monitoring-mode-switch button {
  min-height: 33px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  color: #6c7b84;
  background: transparent;
  font-size: 0.66rem;
  font-weight: 850;
  white-space: nowrap;
}

.monitoring-mode-switch button[aria-pressed="true"] {
  color: white;
  background: var(--forest-700);
  box-shadow: 0 3px 9px rgb(24 77 91 / 18%);
}

.monitoring-mode-fixed {
  display: inline-flex;
  min-height: 31px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #88601b;
  background: #fff3d5;
  font-size: 0.65rem;
  font-weight: 850;
  white-space: nowrap;
}

.monitoring-settings-note {
  margin: 13px 2px 0;
}

.preferred-room-panel,
.waitlist-month-panel {
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
  border-color: #d6d9b5;
  background: linear-gradient(145deg, #fffef9, #f8f7e9);
}

.preferred-room-panel > summary,
.waitlist-month-panel > summary {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 19px;
  cursor: pointer;
  list-style: none;
  gap: 16px;
}

.preferred-room-panel > summary::-webkit-details-marker,
.waitlist-month-panel > summary::-webkit-details-marker {
  display: none;
}

.preferred-room-panel[open] .release-summary-action span:first-child,
.waitlist-month-panel[open] .release-summary-action span:first-child {
  display: none;
}

.preferred-room-panel[open] .release-summary-action span:last-child,
.waitlist-month-panel[open] .release-summary-action span:last-child {
  display: inline;
}

.preferred-room-panel[open] > summary,
.waitlist-month-panel[open] > summary {
  border-bottom: 1px solid #e3e2c9;
  background: #fbfaee;
}

.preferred-room-content,
.waitlist-month-content {
  padding: 19px;
}

.preferred-room-facility-field {
  display: grid;
  margin: 16px 0 10px;
  color: #4f6070;
  font-size: 0.68rem;
  font-weight: 800;
  gap: 6px;
}

.preferred-room-facility-field select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--forest-950);
  background: white;
  font: inherit;
  font-size: 0.75rem;
}

.preferred-room-list {
  max-height: min(56vh, 460px);
}

.preferred-room-option {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.preferred-room-option .room-option {
  min-width: 0;
}

.preferred-room-option .room-option > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.preferred-room-option .room-option strong {
  overflow-wrap: anywhere;
}

.preferred-room-option .room-option small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 720;
  line-height: 1.4;
}

.preferred-room-detail-action {
  display: flex;
}

.preferred-room-detail-action .room-detail-link {
  min-height: 100%;
}

.preferred-room-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  gap: 12px;
}

.waitlist-month-list {
  display: grid;
  margin-top: 15px;
  gap: 10px;
}

.waitlist-month-row {
  display: grid;
  padding: 13px;
  border: 1px solid #e1e0c4;
  border-radius: 15px;
  background: rgb(255 255 255 / 84%);
  gap: 9px;
  transition: opacity 160ms ease;
}

.waitlist-month-row.saving {
  opacity: 0.62;
}

.waitlist-month-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1px;
}

.waitlist-month-heading span {
  color: #8a6b16;
  font-size: 0.66rem;
  font-weight: 900;
}

.waitlist-month-heading strong {
  color: var(--forest-950);
  font-size: 0.82rem;
}

.waitlist-month-row .switch-row {
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid #ecebd6;
  border-radius: 12px;
  background: #fff;
}

.preferred-room-badge {
  display: inline-flex;
  min-height: 17px;
  align-items: center;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  color: #825e00;
  background: #fff0a8;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  vertical-align: 1px;
  white-space: nowrap;
}

.bottom-nav {
  position: fixed;
  z-index: 100;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  width: 100%;
  max-width: 100vw;
  min-height: calc(68px + env(safe-area-inset-bottom));
  padding: 5px max(10px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(10px, env(safe-area-inset-left));
  border-top: 1px solid rgb(211 224 230 / 90%);
  background: rgb(251 253 255 / 94%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  backface-visibility: hidden;
  grid-template-columns: repeat(5, 1fr);
  transform: translate3d(0, 0, 0);
}

.nav-button {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
  border: 0;
  border-radius: 13px;
  color: #73838f;
  background: transparent;
  font-size: 0.65rem;
  font-weight: 750;
  flex-direction: column;
  gap: 3px;
  touch-action: manipulation;
}

.nav-button > span:first-child {
  font-size: 1.18rem;
  line-height: 1;
}

.nav-button.active {
  color: var(--forest-800);
  background: var(--forest-50);
}

.app-dialog {
  width: min(100% - 22px, 500px);
  max-height: min(88vh, 760px);
  margin: auto auto 10px;
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 28px 28px 18px 18px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.app-dialog::backdrop {
  background: rgb(10 31 49 / 58%);
  backdrop-filter: blur(3px);
}

.app-dialog[open] {
  animation: dialog-in 210ms ease both;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(24px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.app-dialog form {
  padding: 9px 22px max(24px, env(safe-area-inset-bottom));
}

.dialog-handle {
  width: 38px;
  height: 4px;
  margin: 2px auto 15px;
  border-radius: 999px;
  background: #d2dce1;
}

.dialog-heading {
  margin-bottom: 18px;
}

.dialog-heading h2 {
  color: var(--forest-950);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.dialog-close {
  flex: 0 0 auto;
  font-size: 1.5rem;
  font-weight: 400;
}

.field-help {
  margin: 7px 2px 2px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.open-run-strategy-warning {
  color: #a35f13;
  font-weight: 750;
}

.open-run-dialog {
  width: min(100% - 22px, 620px);
}

.open-run-intro {
  padding: 13px 14px;
  border: 1px solid #c6dde5;
  border-radius: 14px;
  color: var(--forest-900);
  background: #eef7fa;
}

.open-run-intro strong {
  font-size: 0.79rem;
}

.open-run-intro p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.open-run-candidates {
  display: grid;
  margin-top: 17px;
  gap: 12px;
}

.open-run-candidate {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbfc;
}

.open-run-candidate-heading {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  gap: 9px;
}

.open-run-candidate-heading > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 9px;
  color: white;
  background: var(--forest-800);
  font-size: 0.72rem;
  font-weight: 900;
  place-items: center;
}

.open-run-candidate-heading strong,
.open-run-candidate-heading small {
  display: block;
}

.open-run-candidate-heading strong {
  color: var(--forest-950);
  font-size: 0.8rem;
}

.open-run-candidate-heading small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.63rem;
}

.open-run-policy-copy {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.45;
}

.open-run-policy-copy a {
  color: var(--forest-700);
  font-weight: 800;
  text-decoration: none;
}

.open-run-window {
  padding: 12px;
  margin: 10px 0 14px;
  border-radius: 10px;
  background: #eef5fa;
  color: #29465c;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.open-run-window:empty { display: none; }
.open-run-window p { margin: 5px 0; }
.open-run-window small { display: block; color: #526675; }
.open-run-window .open-run-window-warning { color: #8b4f13; font-weight: 600; }

.open-run-execution {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #c6dfd7;
  border-radius: 12px;
  background: #f0f8f5;
  color: #275b49;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.open-run-execution p { margin: 4px 0; }
.open-run-execution.is-changed {
  border-color: #ecc992;
  background: #fff7e9;
  color: #81500f;
}

.open-run-date-row {
  display: grid;
  margin-top: 11px;
  gap: 9px;
  grid-template-columns: minmax(0, 1.5fr) minmax(100px, 0.7fr);
}

.open-run-date-row label > span {
  display: block;
  margin-bottom: 6px;
  color: #4f6070;
  font-size: 0.68rem;
  font-weight: 750;
}

.open-run-room-picker {
  max-height: 190px;
}

.open-run-room-row,
.rule-room-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 6px;
}

.open-run-room-row > .room-detail-link,
.rule-room-row > .room-detail-link {
  min-height: 44px;
  padding: 0 8px;
}

.open-run-room-option {
  min-width: 0;
}

.open-run-room-option > span {
  min-width: 0;
}

.open-run-room-option strong,
.open-run-room-option small {
  display: block;
}

.open-run-room-option strong {
  overflow-wrap: anywhere;
  color: var(--forest-950);
  font-size: 0.76rem;
}

.open-run-room-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.35;
}

.room-directory-meta {
  margin: -8px 0 15px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.room-directory-list {
  display: grid;
  margin-top: 14px;
  gap: 10px;
}

.room-directory-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.room-directory-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.room-directory-card-heading > div > span,
.room-directory-card-heading > span {
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.45;
}

.room-directory-card-heading h3 {
  margin-top: 3px;
  color: var(--forest-950);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.room-directory-rates {
  display: grid;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #dde8ec;
  border-radius: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.room-directory-rates > div {
  display: grid;
  padding: 9px 10px;
  gap: 2px;
}

.room-directory-rates > div:nth-child(even) {
  border-left: 1px solid #e5edf1;
}

.room-directory-rates > div:nth-child(n + 3) {
  border-top: 1px solid #e5edf1;
}

.room-directory-rates span {
  color: var(--muted);
  font-size: 0.61rem;
}

.room-directory-rates strong {
  color: var(--forest-900);
  font-size: 0.75rem;
}

.room-directory-rates.single {
  grid-template-columns: 1fr;
}

.room-directory-rate-missing {
  margin-top: 12px;
  padding: 10px;
  border-radius: 11px;
  color: var(--muted);
  background: var(--forest-50);
  font-size: 0.68rem;
  line-height: 1.5;
}

.room-detail-dialog {
  width: min(100% - 22px, 720px);
  max-height: min(92vh, 900px);
}

.room-detail-heading {
  align-items: flex-start;
}

.room-detail-heading .eyebrow {
  margin-bottom: 4px;
}

.room-detail-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 720;
}

.room-detail-gallery {
  min-height: 220px;
  overflow: hidden;
  border: 1px solid #dce8ec;
  border-radius: 18px;
  background: #edf3f4;
}

.room-detail-loading,
.room-detail-empty {
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 28px;
  color: var(--forest-900);
  text-align: center;
  gap: 8px;
}

.room-detail-loading small,
.room-detail-empty small {
  max-width: 380px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.room-detail-empty > span {
  font-size: 2rem;
  opacity: 0.65;
}

.room-detail-figure {
  margin: 0;
  background: white;
}

.room-detail-photo-notice {
  margin: 0;
  padding: 12px 16px;
  color: var(--warning);
  background: #fff6e7;
  font-size: 0.84rem;
  line-height: 1.6;
}

.room-detail-image-stage {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  background: #182b35;
}

.room-detail-image-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.room-detail-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 5px;
  gap: 12px;
}

.room-detail-figure figcaption > div {
  display: grid;
  gap: 2px;
}

.room-detail-figure figcaption span {
  color: var(--accent);
  font-size: 0.67rem;
  font-weight: 850;
}

.room-detail-figure figcaption strong {
  color: var(--forest-950);
  font-size: 0.83rem;
  overflow-wrap: anywhere;
}

.room-detail-figure figcaption > a {
  flex: 0 0 auto;
  color: var(--forest-800);
  font-size: 0.7rem;
  font-weight: 820;
  text-decoration: none;
}

.room-detail-gallery-controls {
  display: grid;
  align-items: center;
  padding: 7px 12px 12px;
  grid-template-columns: 44px 1fr 44px;
  gap: 10px;
}

.room-detail-gallery-controls button {
  width: 44px;
  height: 40px;
  border: 1px solid #cfdee3;
  border-radius: 12px;
  color: var(--forest-900);
  background: var(--paper);
  font-size: 1.35rem;
  cursor: pointer;
}

.room-detail-gallery-controls strong {
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.room-detail-price-section {
  margin-top: 18px;
}

.room-detail-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.room-detail-section-heading h3 {
  color: var(--forest-950);
  font-size: 1rem;
}

.room-detail-section-heading span {
  color: var(--muted);
  font-size: 0.7rem;
}

.room-detail-price-section .room-directory-rates {
  margin-top: 9px;
}

.room-detail-price-section .room-directory-rates > div {
  min-height: 61px;
  justify-content: center;
  padding: 11px 12px;
}

.room-detail-price-section .room-directory-rates span {
  font-size: 0.79rem;
}

.room-detail-price-section .room-directory-rates strong {
  font-size: 1.05rem;
}

.room-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding: 10px 2px 1px;
  gap: 12px;
}

.room-detail-footer > span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.room-detail-footer a {
  flex: 0 0 auto;
  color: var(--forest-800);
  font-size: 0.72rem;
  font-weight: 820;
  text-decoration: none;
}

.rule-account-usage {
  margin: 10px 0 3px;
  padding: 12px;
  border: 1px solid #cbdfe3;
  border-radius: 14px;
  background: #f2f8f9;
}

.rule-account-usage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.rule-account-usage-head strong {
  color: var(--forest-900);
  font-size: 0.74rem;
}

.rule-account-usage-head small {
  color: var(--muted);
  font-size: 0.61rem;
  text-align: right;
}

.rule-account-usage-grid {
  display: grid;
  margin-top: 9px;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rule-account-usage-card {
  display: grid;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #dce8ea;
  border-radius: 11px;
  background: rgb(255 255 255 / 82%);
  gap: 3px;
}

.rule-account-usage-card.selected {
  border-color: #72afa7;
  background: #e6f3ef;
  box-shadow: 0 0 0 1px rgb(69 139 129 / 8%);
}

.rule-account-usage-card.full {
  border-color: #e7c3aa;
  background: #fff5ed;
}

.rule-account-usage-card strong {
  color: var(--forest-900);
  font-size: 0.7rem;
}

.rule-account-usage-card span,
.rule-account-usage-card small {
  overflow: hidden;
  color: #486270;
  font-size: 0.63rem;
  line-height: 1.4;
  text-overflow: ellipsis;
}

.rule-account-usage-card small {
  color: var(--muted);
}

.switch-row {
  position: relative;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 10px 0;
  gap: 16px;
}

.switch-row strong,
.switch-row small {
  display: block;
}

.switch-row strong {
  font-size: 0.84rem;
}

.switch-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.45;
}

.switch-row input {
  position: absolute;
  opacity: 0;
}

.switch-row i {
  position: relative;
  width: 45px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #c7d1d7;
  transition: background 160ms ease;
}

.switch-row i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 7px rgb(0 0 0 / 18%);
  content: "";
  transition: transform 160ms ease;
}

.switch-row input:checked + i {
  background: var(--forest-700);
}

.switch-row input:checked + i::after {
  transform: translateX(19px);
}

.switch-row input:disabled + i {
  opacity: 0.45;
}

.room-picker {
  display: grid;
  max-height: 230px;
  overflow: auto;
  padding: 2px;
  gap: 6px;
}

.room-option {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.76rem;
  gap: 9px;
}

.room-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--forest-700);
}

.room-option.disabled {
  color: var(--muted);
  background: #f2f5f7;
  opacity: 0.66;
  cursor: not-allowed;
}

.room-type-heading {
  margin: 9px 2px 1px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.room-type-heading.price-blocked {
  color: var(--danger);
}

.confirmation-note {
  display: flex;
  margin: 10px 0 4px;
  padding: 12px;
  border: 1px solid #edd9a6;
  border-radius: 13px;
  color: #70551e;
  background: #fff8e5;
  gap: 9px;
}

.confirmation-note > span {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: white;
  background: #c99331;
  font-size: 0.68rem;
  font-weight: 900;
  place-items: center;
}

.confirmation-note p {
  font-size: 0.7rem;
  line-height: 1.5;
}

.tall-dialog form > .primary-button {
  position: sticky;
  z-index: 3;
  bottom: 0;
  margin-top: 10px;
  box-shadow:
    0 -12px 18px var(--paper),
    0 9px 22px rgb(24 58 85 / 20%);
}

.toast {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: calc(82px + env(safe-area-inset-bottom));
  left: 18px;
  max-width: 440px;
  margin: auto;
  padding: 13px 16px;
  border-radius: 14px;
  color: white;
  background: rgb(18 45 68 / 96%);
  box-shadow: 0 12px 34px rgb(10 31 49 / 28%);
  font-size: 0.79rem;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 700px) {
  .main-content {
    padding-right: 24px;
    padding-left: 24px;
  }

  .hero-card {
    min-height: 270px;
    padding: 36px;
  }

  .step-panel {
    padding: 24px;
  }

  .facility-list,
  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottom-nav {
    right: 24px;
    bottom: 18px;
    left: 24px;
    width: min(560px, calc(100% - 48px));
    min-height: 67px;
    margin: auto;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 21px;
    box-shadow: 0 13px 35px rgb(24 58 85 / 16%);
  }

  .app-shell {
    padding-bottom: 110px;
  }

  .sticky-action {
    bottom: 94px;
  }

  .app-dialog {
    margin: auto;
    border-radius: 28px;
  }

  .result-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .release-entry {
    align-items: start;
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .release-date-rail {
    justify-content: flex-end;
    padding-top: 17px;
  }
}

@media (max-width: 430px) {
  #view-rules {
    max-width: 100%;
    overflow-x: hidden;
  }

  #view-rules > .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  #view-rules .card-topline,
  #view-rules .card-action-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .rules-heading-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opening-event-card,
  .opening-policy-details li {
    align-items: flex-start;
    flex-direction: column;
  }

  .opening-event-card .secondary-button {
    width: 100%;
  }

  .open-run-date-row {
    grid-template-columns: 1fr;
  }

  .monitoring-settings-toolbar {
    grid-template-columns: 1fr;
  }

  .monitoring-setting-row {
    align-items: stretch;
    flex-direction: column;
  }

  .monitoring-mode-switch {
    grid-template-columns: repeat(2, 1fr);
  }

  .monitoring-mode-fixed {
    align-self: flex-start;
  }

  .monthly-facility-picker-row {
    grid-template-columns: 1fr;
  }

  .monthly-facility-picker-row .secondary-button {
    width: 100%;
  }

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

  .notification-room-row .room-detail-link {
    align-self: stretch;
    justify-content: center;
  }

  .family-review-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .family-review-heading .secondary-button {
    width: 100%;
  }

  .review-filter-grid {
    grid-template-columns: 1fr;
  }

  .review-summary .summary-tile strong {
    font-size: 0.86rem;
  }

  .review-facility-heading,
  .review-entry-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .review-star-picker {
    justify-content: space-between;
  }

  .review-star-picker button {
    width: min(17vw, 48px);
    height: min(17vw, 48px);
  }

  .notification-quick-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .notification-action-buttons,
  .notification-action-button {
    width: 100%;
  }

  .rule-account-usage-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .rule-account-usage-head small {
    text-align: left;
  }

  .release-history-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .release-history-heading .secondary-button {
    align-self: flex-start;
  }

  .release-current-head {
    flex-direction: column;
  }

  .release-meta-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 220px;
    grid-template-columns: 1fr 100px;
  }

  .hero-card h2 {
    font-size: 1.85rem;
  }

  .hero-art {
    width: 50%;
    opacity: 0.82;
  }

  .tree-c {
    display: none;
  }

  .result-room {
    grid-template-columns: 1fr;
  }

  .result-card-toggle {
    align-items: flex-start;
  }

  .result-card-counts {
    max-width: 106px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .collapsible-result-head > .facility-month-link {
    margin-right: 12px;
  }

  .result-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-region-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .result-region-toolbar .count-label {
    align-self: flex-start;
    padding-bottom: 0;
  }

  .date-picker-day {
    min-height: 47px;
  }

  .reserve-button {
    width: 100%;
  }

  .room-card-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .room-detail-link {
    width: 100%;
  }

  .room-detail-dialog {
    width: calc(100% - 12px);
  }

  .room-detail-figure figcaption,
  .room-detail-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .room-detail-image-stage {
    aspect-ratio: 1 / 1;
  }

  .month-day {
    min-height: 66px;
    padding: 6px 3px;
  }

  .month-count {
    font-size: 0.53rem;
  }

  .monthly-room-card {
    grid-template-columns: 1fr;
  }

  .monthly-room-card .reserve-button {
    width: 100%;
  }

  .monthly-facility-search-row,
  .monthly-selection-bar {
    grid-template-columns: 1fr;
  }

  .monthly-day-tools {
    width: 100%;
    align-items: stretch;
    justify-content: flex-start;
  }

  .monthly-status-filters {
    justify-content: flex-start;
  }

  .monthly-facility-search-row .secondary-button,
  .monthly-selection-bar .primary-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* 날짜별 감시 상태는 설정값이며 실제 적용 시각은 별도로 표시한다. */
.watch-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 16px 0; text-align: center; }
#app-push-panel .button-row, #watch-calendar-panel .button-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#app-push-panel p, #watch-calendar-panel p { font-size: 13px; line-height: 1.6; margin: 10px 0; }
#watch-calendar-selection { margin: 12px 0; font-size: 13px; line-height: 1.6; }
.watch-day { min-width: 0; padding: 8px 0; border: 1px solid #dce3dd; border-radius: 8px; background: #fff; color: #57645c; }
.watch-day strong, .watch-day small { display: block; }
.watch-day small { font-size: 10px; margin-top: 4px; }
.watch-day.scheduled { background: #edf5ee; color: #25633b; }
.watch-day.paused { background: #f5eee9; color: #854b30; }
.watch-day[aria-pressed="true"] { outline: 2px solid #25633b; outline-offset: 1px; }
.watch-day-features { margin: 16px 0 8px; border: 1px solid #dce3dd; border-radius: 12px; padding: 12px; }
.watch-day-features label { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.watch-day-features label > span:first-child { flex: 1; }
.watch-day-features strong, .watch-day-features small { display: block; }
.watch-day-features small { color: #687269; font-size: 12px; margin-top: 3px; }
.watch-day-features input { width: 22px; height: 22px; accent-color: #25633b; }
.watch-day-features:disabled { opacity: .6; }
.watch-day-alert-options { margin: 0 0 12px; border: 0; border-bottom: 1px solid #dce3dd; padding: 0 0 12px; }
.watch-day-alert-options legend { font-size: 12px; color: #687269; }
.watch-day-alert-options label { padding: 6px 0; font-size: 14px; }
.watch-day-alert-options input { flex: 0 0 22px; }
.watch-day-alert-options:disabled { opacity: .6; }
#watch-calendar-selection, #watch-calendar-history, #app-push-status { overflow-wrap: anywhere; }
#notification-type-filter { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
#notification-type-filter label { display: flex; align-items: center; gap: 5px; font-size: 13px; }
#notification-type-filter input { width: auto; }
.rule-list-collapsible > summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; cursor: pointer; padding: 14px 0; }
.rule-list-collapsible > summary span { font-size: 12px; color: #617681; }

.open-run-status-filter { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.open-run-status-filter select { flex: 1; min-width: 0; }

.rule-edit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rule-room-details { font-size: 13px; color: var(--text-muted, #617681); }
.rule-room-details summary { cursor: pointer; padding: 6px 0; }
.rule-room-details p { line-height: 1.7; overflow-wrap: anywhere; }

.rule-room-row > .room-option { min-width: 0; }
.rule-room-row > .room-option > span { min-width: 0; overflow-wrap: anywhere; }

.default-monitoring-panel { padding: 20px; }
.default-monitoring-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.default-monitoring-heading h3 { margin: 4px 0 0; }
.default-monitoring-heading button { flex-shrink: 0; }
.default-monitoring-current { display: inline-block; margin: 10px 0 0; padding: 5px 10px; border-radius: 8px; background: #edf0ef; color: #485651; font-size: 13px; font-weight: 700; }
.default-monitoring-current[data-enabled="true"] { background: #e1f1e8; color: #245b49; }
.default-monitoring-panel > p { font-size: 13px; line-height: 1.65; color: var(--muted, #617981); }
