:root {
  --color-ink: #272e38;
  --color-gold: #cfb174;
  --color-gold-deep: #9a7239;
  --color-bg: #f5f5f6;
  --color-surface: #ffffff;
  --color-text: #202630;
  --color-muted: #737b86;
  --color-line: #e2e5e9;
  --color-success: #4f8d70;
  --color-danger: #b87669;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--color-bg);
}

.page {
  min-height: 100vh;
  padding: calc(20px + var(--safe-top)) 16px calc(24px + var(--safe-bottom));
}

.page:has(> .subhead) {
  padding-top: 0;
}

.surface {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 8px;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  place-items: center;
}

.icon-button svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.primary-button {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--color-gold);
  color: var(--color-ink);
  font-weight: 800;
}

.primary-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.field-error {
  min-height: 18px;
  margin: 4px 0 0;
  color: var(--color-danger);
  font-size: 12px;
  line-height: 18px;
}

.inline-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--color-danger) 38%, var(--color-line));
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-danger);
  font-size: 14px;
  line-height: 1.5;
}

.empty-state {
  display: grid;
  min-height: 160px;
  padding: 32px 20px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  place-items: center;
}

.subhead {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  min-height: calc(56px + var(--safe-top));
  padding: var(--safe-top) 8px 0;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-surface);
}

.subhead h1 {
  overflow: hidden;
  margin: 0;
  color: var(--color-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subhead-spacer {
  display: block;
  width: 44px;
  height: 44px;
}

.status-page,
.boot-state {
  display: flex;
  min-height: 100vh;
  padding: 48px 24px calc(48px + var(--safe-bottom));
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.status-page h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

.status-page p,
.boot-state p {
  max-width: 320px;
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.65;
}

.status-page .primary-button {
  max-width: 320px;
  margin-top: 8px;
}

.status-spinner {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 3px solid var(--color-line);
  border-top-color: var(--color-gold-deep);
  border-radius: 50%;
  animation: status-spin 0.8s linear infinite;
}

.boot-state {
  color: var(--color-muted);
}

.text-button {
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  font-weight: 700;
}

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

#h5-overlay-root:not(:empty) {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  padding-top: var(--safe-top);
  align-items: flex-end;
  background: rgb(39 46 56 / 48%);
}

.sheet {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  padding: 28px 24px calc(28px + var(--safe-bottom));
  border-radius: 8px 8px 0 0;
  background: var(--color-surface);
  color: var(--color-text);
  text-align: center;
}

.sheet h2 {
  margin: 0 44px 10px;
  font-size: 20px;
  line-height: 1.4;
}

.sheet p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.65;
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.support-qr {
  width: min(220px, 70vw);
  margin: 24px auto 0;
  aspect-ratio: 1;
}

.support-qr img {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  object-fit: contain;
}

#h5-toast-root {
  position: fixed;
  z-index: 200;
  right: 16px;
  bottom: calc(20px + var(--safe-bottom));
  left: 16px;
  display: grid;
  max-width: 448px;
  margin: 0 auto;
  gap: 8px;
  pointer-events: none;
}

#h5-toast-root > * {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--color-ink);
  color: var(--color-surface);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgb(32 38 48 / 18%);
}

.auth-page,
.locked-page {
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.auth-panel,
.locked-page > * {
  width: 100%;
  max-width: 360px;
}

.auth-panel {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.locked-mark,
.membership-brand {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  background: var(--color-ink);
  color: var(--color-gold);
  font-family: Georgia, "Songti SC", serif;
  font-size: 25px;
  line-height: 1;
  place-items: center;
}

.membership-eyebrow {
  margin: 20px 0 8px;
  color: var(--color-gold-deep);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0;
}

.auth-page h1,
.locked-page h1,
.membership-header h1 {
  margin: 0;
  color: var(--color-ink);
  font-family: Georgia, "Songti SC", serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.auth-copy,
.locked-copy,
.membership-header > p:last-child {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.auth-page .primary-button {
  margin-top: 32px;
}

.auth-footnote {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.6;
}

.member-login-panel {
  max-width: 392px;
}

.member-login-form {
  display: grid;
  width: 100%;
  margin-top: 28px;
  padding: 22px 20px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  gap: 16px;
  text-align: left;
}

.member-login-form .primary-button {
  width: 100%;
  margin-top: 2px;
}

.member-login-intro {
  margin-top: 18px;
}

.introduction-page {
  display: flex;
  min-height: 100svh;
  padding-top: max(28px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  flex-direction: column;
}

.introduction-hero {
  padding: 4px 4px 26px;
}

.introduction-hero h1 {
  margin: 0;
  color: var(--color-ink);
  font-family: Georgia, "Songti SC", serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.introduction-hero > p:last-of-type {
  max-width: 31em;
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.8;
}

.introduction-inviter {
  display: inline-flex;
  margin-top: 18px;
  align-items: center;
  gap: 8px;
  color: var(--color-gold-deep);
  font-size: 13px;
  font-weight: 700;
}

.introduction-inviter svg {
  width: 17px;
  height: 17px;
}

.introduction-benefits {
  display: grid;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.introduction-benefit {
  display: flex;
  min-width: 0;
  min-height: 116px;
  padding: 20px 14px;
  align-items: flex-start;
  gap: 12px;
}

.introduction-benefit:nth-child(odd) {
  border-right: 1px solid var(--color-line);
}

.introduction-benefit:nth-child(-n + 2) {
  border-bottom: 1px solid var(--color-line);
}

.introduction-benefit svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  color: var(--color-gold-deep);
}

.introduction-benefit strong,
.introduction-benefit span {
  display: block;
  overflow-wrap: anywhere;
}

.introduction-benefit strong {
  color: var(--color-ink);
  font-size: 14px;
  line-height: 1.45;
}

.introduction-benefit span {
  margin-top: 5px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.6;
}

.introduction-cta {
  width: 100%;
  margin-top: auto;
}

.membership-page {
  min-height: 100svh;
}

.membership-header {
  margin: 4px 4px 24px;
}

.membership-brand {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  font-size: 20px;
}

.membership-header .membership-eyebrow {
  margin: 0 0 7px;
}

.membership-header h1 {
  font-size: 26px;
}

.membership-form {
  display: grid;
  padding: 24px 20px;
  gap: 17px;
}

.membership-field {
  display: block;
  min-width: 0;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.membership-field > label {
  display: block;
  margin-bottom: 7px;
}

.membership-field input,
.membership-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  outline: none;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.membership-field input {
  min-height: 48px;
  padding: 11px 12px;
}

.membership-field textarea {
  min-height: 112px;
  padding: 11px 12px;
  resize: vertical;
}

.membership-field input::placeholder,
.membership-field textarea::placeholder {
  color: color-mix(in srgb, var(--color-muted) 72%, var(--color-surface));
}

.membership-field input:focus,
.membership-field textarea:focus {
  border-color: var(--color-gold-deep);
  box-shadow: 0 0 0 3px rgb(207 177 116 / 18%);
}

.membership-invitation {
  display: flex;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--color-gold) 54%, var(--color-line));
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  background: color-mix(in srgb, var(--color-gold) 10%, var(--color-surface));
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.membership-invitation svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--color-gold-deep);
}

.membership-field input[readonly] {
  background: var(--color-bg);
  color: var(--color-muted);
  cursor: default;
}

.verification-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 36%);
  min-width: 0;
  align-items: stretch;
  gap: 10px;
}

.verification-code-button {
  min-width: 0;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--color-gold-deep);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-gold-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  white-space: normal;
}

.verification-code-button:disabled {
  border-color: var(--color-line);
  background: var(--color-bg);
  color: var(--color-muted);
}

.membership-form .field-error {
  min-width: 0;
  overflow-wrap: anywhere;
}

.membership-submit {
  margin-top: 3px;
}

.application-reason {
  display: grid;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--color-danger) 28%, var(--color-line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-danger) 7%, var(--color-surface));
  gap: 4px;
  overflow-wrap: anywhere;
}

.application-reason span {
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.5;
}

.application-reason strong {
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.65;
}

.membership-support {
  display: block;
  margin: 8px auto 0;
}

.locked-page .membership-eyebrow {
  margin-top: 24px;
}

.locked-page h1 {
  font-size: 27px;
}

.application-status {
  width: 100%;
  margin: 28px 0 0;
  padding: 4px 16px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  text-align: left;
}

.application-status > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: start;
  padding: 13px 0;
  gap: 16px;
}

.application-status > div + div {
  border-top: 1px solid var(--color-line);
}

.application-status dt,
.application-status dd {
  min-width: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.application-status dt {
  color: var(--color-muted);
}

.application-status dd {
  color: var(--color-text);
  font-weight: 700;
  text-align: right;
}

.disabled-button {
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  padding: 12px 18px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-line);
  color: var(--color-muted);
  font-weight: 700;
  cursor: default;
}

.invite-page {
  position: relative;
  min-width: 0;
  min-height: 100svh;
  overflow-x: hidden;
}

.invite-intro {
  padding: 28px 4px 22px;
}

.invite-eyebrow {
  margin: 0 0 8px;
  color: var(--color-gold-deep);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.invite-intro h2 {
  max-width: 330px;
  margin: 0;
  color: var(--color-ink);
  font-family: Georgia, "Songti SC", serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.invite-intro > p:last-child {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.6;
}

.invite-share {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
}

.invite-link-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.invite-link-heading h3 {
  margin: 0;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5;
}

.invite-link-heading span {
  color: var(--color-gold-deep);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
}

.invite-link {
  min-width: 0;
  margin: 11px 0 0;
  padding: 11px 12px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: var(--color-bg);
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.invite-resource-state {
  display: flex;
  min-height: 48px;
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.invite-resource-state button {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--color-gold);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-gold-deep);
  font-weight: 700;
}

.invite-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  margin-top: 14px;
  gap: 8px;
}

.invite-action-button {
  display: inline-flex;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.invite-action-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke-width: 1.8;
}

.invite-generate-button {
  grid-column: 1 / -1;
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-gold);
}

.invite-action-button:disabled {
  border-color: var(--color-line);
  background: var(--color-line);
  color: var(--color-muted);
  cursor: default;
}

.invite-action-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-gold) 42%, transparent);
  outline-offset: 2px;
}

.invite-error {
  margin: 12px 0 0;
  color: var(--color-danger);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.poster-preview {
  display: grid;
  width: min(100%, 360px);
  min-height: 280px;
  margin: 20px auto 0;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-surface) 78%, var(--color-bg));
  overflow: hidden;
  place-items: center;
}

.poster-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 13;
  background: var(--color-bg);
  object-fit: contain;
}

.poster-placeholder {
  display: grid;
  max-width: 240px;
  padding: 36px 24px;
  justify-items: center;
  color: var(--color-muted);
  text-align: center;
}

.poster-placeholder > span {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  color: var(--color-gold-deep);
  place-items: center;
}

.poster-placeholder svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
}

.poster-placeholder strong {
  color: var(--color-text);
  font-family: Georgia, "Songti SC", serif;
  font-size: 18px;
  line-height: 1.4;
}

.poster-placeholder p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.poster-source {
  position: fixed;
  width: 360px;
  height: 520px;
  left: -10000px;
  top: 0;
  display: flex;
  padding: 34px 30px 30px;
  flex-direction: column;
  overflow: hidden;
  background: #f5f5f6;
  color: #272e38;
  pointer-events: none;
}

.poster-source-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.poster-source-header > p {
  margin: 0;
  color: #737b86;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.5;
}

.poster-brand {
  display: grid;
  width: 62px;
  height: 30px;
  border: 1px solid #cfb174;
  border-radius: 4px;
  background: #272e38;
  color: #cfb174;
  font-family: Georgia, "Songti SC", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  place-items: center;
}

.poster-source-main {
  margin-top: 72px;
}

.poster-kicker {
  margin: 0 0 10px;
  color: #9a7239;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
}

.poster-source-main h2 {
  max-width: 286px;
  margin: 0;
  color: #272e38;
  font-family: Georgia, "Songti SC", serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.poster-copy {
  max-width: 270px;
  margin: 15px 0 0;
  color: #626b77;
  font-size: 12px;
  line-height: 1.7;
}

.poster-source-footer {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  min-width: 0;
  margin-top: auto;
  align-items: center;
  gap: 17px;
}

.poster-qr {
  width: 120px;
  height: 120px;
  padding: 0;
  background: #ffffff;
  overflow: hidden;
}

.poster-qr canvas,
.poster-qr img {
  display: block;
  width: 120px;
  height: 120px;
}

.poster-source-footer strong {
  display: block;
  color: #272e38;
  font-size: 12px;
  line-height: 1.5;
}

.poster-url {
  margin: 8px 0 0;
  color: #737b86;
  font-size: 8px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.city-picker,
.date-picker {
  min-width: 0;
  padding-right: 0;
  padding-left: 0;
  overflow-x: hidden;
}

.city-picker-body {
  min-width: 0;
  padding-right: 16px;
  padding-left: 16px;
}

.city-picker-body {
  padding-top: 16px;
  padding-bottom: calc(32px + var(--safe-bottom));
}

.city-search {
  display: block;
  min-width: 0;
}

.city-search-label {
  display: block;
  margin-bottom: 7px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.city-search input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  outline: none;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.5;
  text-overflow: ellipsis;
}

.city-search input:focus-visible,
.city-option:focus-visible,
.city-hot-option:focus-visible,
.city-index a:focus-visible,
.calendar-day:focus-visible,
.fixed-action .primary-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-gold) 42%, transparent);
  outline-offset: 2px;
}

.city-hot,
.city-results {
  margin-top: 24px;
}

.city-hot h2,
.city-results-heading > h2,
.city-group h2,
.calendar-month h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.5;
}

.city-hot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
  gap: 8px;
}

.city-hot-option,
.city-option {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.city-hot-option {
  padding: 8px 4px;
  font-size: 14px;
}

.city-option {
  padding: 9px 12px;
  font-size: 15px;
  text-align: left;
}

.city-hot-option.is-selected,
.city-option.is-selected {
  border-color: var(--color-gold-deep);
  background: color-mix(in srgb, var(--color-gold) 16%, var(--color-surface));
  color: var(--color-gold-deep);
  font-weight: 800;
}

.city-results-heading {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.city-index {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px;
}

.city-index a {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--color-gold-deep);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  place-items: center;
}

.city-index a:hover {
  background: color-mix(in srgb, var(--color-gold) 12%, var(--color-surface));
}

.city-groups {
  display: grid;
  min-width: 0;
  margin-top: 14px;
  gap: 18px;
}

.city-group {
  min-width: 0;
  scroll-margin-top: calc(68px + var(--safe-top));
}

.city-group h2 {
  margin-bottom: 8px;
  color: var(--color-gold-deep);
}

.city-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  gap: 8px;
}

.calendar {
  width: 100%;
  max-width: 100%;
  padding-top: 12px;
  padding-bottom: calc(138px + var(--safe-bottom));
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
  gap: 2px;
}

.calendar-weekdays {
  position: sticky;
  z-index: 4;
  top: calc(56px + var(--safe-top));
  padding: 8px 0;
  background: var(--color-bg);
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.calendar-month {
  min-width: 0;
  padding: 18px 0 8px;
}

.calendar-month + .calendar-month {
  border-top: 1px solid var(--color-line);
}

.calendar-month h2 {
  margin-bottom: 10px;
  text-align: center;
}

.calendar-day {
  display: grid;
  width: 100%;
  min-width: 44px;
  min-height: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1;
  place-items: center;
}

.calendar-cell {
  display: grid;
  min-width: 0;
  height: 44px;
  place-items: stretch;
}

.calendar-day:hover:not(:disabled) {
  background: color-mix(in srgb, var(--color-gold) 11%, var(--color-surface));
}

.calendar-day.is-today {
  box-shadow: inset 0 0 0 1px var(--color-gold);
  color: var(--color-gold-deep);
  font-weight: 800;
}

.calendar-range {
  background: color-mix(in srgb, var(--color-gold) 16%, var(--color-surface));
}

.calendar-day.is-check-in,
.calendar-day.is-check-out {
  background: var(--color-ink);
  color: var(--color-surface);
  font-weight: 800;
}

.calendar-day:disabled {
  background: transparent;
  color: color-mix(in srgb, var(--color-muted) 48%, var(--color-bg));
  cursor: default;
  opacity: 0.72;
}

.calendar-placeholder {
  pointer-events: none;
}

.fixed-action {
  position: fixed;
  z-index: 12;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px;
  padding-bottom: calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
  box-shadow: 0 -8px 24px rgb(32 38 48 / 8%);
  gap: 10px;
}

.date-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  min-width: 0;
  gap: 10px;
}

.date-summary span {
  min-width: 0;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.date-summary strong {
  display: block;
  margin-top: 2px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.date-summary .date-nights {
  align-self: center;
  color: var(--color-gold-deep);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.locked-page > .text-button {
  width: auto;
  margin-top: 8px;
}

@media (max-width: 360px) {
  .membership-form {
    padding-right: 16px;
    padding-left: 16px;
  }

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

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

  .date-summary {
    gap: 6px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .status-spinner {
    animation: none;
  }

  .membership-field input,
  .membership-field textarea {
    transition: none;
  }
}

/* Orders and profile */
.order-confirm,
.order-list-page,
.order-detail,
.order-share-error,
.profile-page {
  padding-right: 0;
  padding-bottom: calc(28px + var(--safe-bottom));
  padding-left: 0;
}

.order-confirm {
  padding-bottom: calc(100px + var(--safe-bottom));
}

.order-confirm-content,
.order-list,
.order-detail-status,
.order-detail-data,
.order-confirmation-media,
.order-detail-actions,
.profile-identity,
.profile-recent,
.profile-commands {
  margin-right: 16px;
  margin-left: 16px;
}

.order-confirm-content {
  display: grid;
  padding-top: 16px;
  gap: 14px;
}

.order-summary,
.order-form,
.order-list-item,
.order-detail-data,
.order-confirmation-media,
.profile-recent,
.profile-commands {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
}

.order-summary,
.order-form,
.order-confirmation-media,
.profile-recent {
  padding: 16px;
}

.order-summary h2,
.order-confirmation-media h2,
.profile-recent h2 {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.order-hotel-name {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.order-summary-grid {
  display: grid;
  margin: 14px 0 0;
  gap: 0;
}

.order-summary-grid > div,
.order-detail-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  min-width: 0;
  padding: 10px 0;
  border-top: 1px solid var(--color-line);
  gap: 12px;
}

.order-summary-grid dt,
.order-summary-grid dd,
.order-detail-row dt,
.order-detail-row dd {
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.order-summary-grid dt,
.order-detail-row dt {
  color: var(--color-muted);
}

.order-summary-grid dd,
.order-detail-row dd {
  color: var(--color-text);
  font-weight: 700;
  text-align: right;
}

.order-form {
  display: grid;
  gap: 4px;
}

.order-field {
  min-width: 0;
  padding: 8px 0 2px;
}

.order-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.order-field input,
.order-field select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  outline: 0;
  background: var(--color-surface);
  color: var(--color-text);
}

.order-field input:focus,
.order-field select:focus {
  border-color: var(--color-gold-deep);
  box-shadow: 0 0 0 2px rgb(207 177 116 / 18%);
}

.order-preference-note {
  margin: 6px 0 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.6;
}

.order-fixed-action {
  position: fixed;
  z-index: 12;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 44%);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
  box-shadow: 0 -8px 24px rgb(32 38 48 / 8%);
  align-items: center;
  gap: 12px;
}

.order-fixed-action > span {
  min-width: 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.order-fixed-action strong {
  display: block;
  color: var(--color-gold-deep);
  font-size: 20px;
}

.order-resource-state {
  display: flex;
  min-height: 320px;
  padding: 32px 24px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.order-filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin: 16px 0 0;
  border: 1px solid var(--color-line);
  border-right: 0;
  border-left: 0;
  background: var(--color-surface);
  overflow: hidden;
}

.order-filter-tab {
  min-height: 44px;
  min-width: 0;
  padding: 8px 4px;
  border: 0;
  border-right: 1px solid var(--color-line);
  background: transparent;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.order-filter-tab:last-child {
  border-right: 0;
}

.order-filter-tab.active {
  background: color-mix(in srgb, var(--color-gold) 18%, var(--color-surface));
  color: var(--color-gold-deep);
}

.order-resource-state h2,
.order-resource-state p {
  margin: 0;
}

.order-resource-state h2 {
  font-size: 18px;
  line-height: 1.4;
}

.order-resource-state p {
  max-width: 320px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.order-resource-state .primary-button {
  max-width: 280px;
  margin-top: 6px;
}

.order-list {
  display: grid;
  padding-top: 16px;
  gap: 12px;
}

.order-list-item {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 104px;
  padding: 14px;
  color: var(--color-text);
  gap: 8px;
  text-align: left;
}

.order-list-head,
.order-list-foot {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-list-head > strong,
.order-list-foot > span {
  min-width: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.order-list-head > strong {
  font-size: 16px;
}

.order-status {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--color-gold) 18%, var(--color-surface));
  color: var(--color-gold-deep);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.order-list-meta,
.order-list-foot > span {
  color: var(--color-muted);
  font-size: 13px;
}

.order-list-foot > strong {
  color: var(--color-gold-deep);
  font-size: 15px;
  white-space: nowrap;
}

.order-detail-status {
  display: flex;
  min-height: 96px;
  padding: 18px 0;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.order-detail-status span {
  color: var(--color-muted);
  font-size: 13px;
}

.order-detail-status strong {
  color: var(--color-text);
  font-size: 24px;
  line-height: 1.3;
}

.order-detail-data {
  margin-top: 0;
  margin-bottom: 16px;
  padding: 4px 16px;
}

.order-detail-row:first-child {
  border-top: 0;
}

.order-number {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.order-confirmation-media {
  margin-top: 16px;
}

.order-confirmation-media > div {
  display: grid;
  margin-top: 10px;
  gap: 10px;
}

.order-confirmation-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 360px;
  border-radius: 6px;
  object-fit: contain;
}

.order-detail-actions {
  margin-top: 16px;
}

.danger-button {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--color-danger);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-danger);
  font-weight: 800;
}

.danger-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.profile-page {
  background: #f5f3ef;
}

.mvp-profile-nav {
  min-height: 56px;
  padding: 16px 18px;
  background: var(--color-ink);
  color: var(--color-surface);
}

.mvp-profile-nav h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.mvp-profile-page .profile-member-head {
  padding-top: 12px;
}

.mvp-status-band {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  margin: -28px 12px 0;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: 0 5px 16px rgb(39 46 56 / 8%);
  gap: 12px;
}

.mvp-status-icon {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-gold) 16%, var(--color-surface));
  color: var(--color-gold-deep);
  place-items: center;
}

.mvp-status-icon svg {
  width: 20px;
  height: 20px;
}

.mvp-status-band h2,
.mvp-status-band p,
.mvp-status-band small {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.mvp-status-band h2 {
  color: var(--color-text);
  font-size: 17px;
  line-height: 1.4;
}

.mvp-status-band p {
  margin-top: 5px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.65;
}

.mvp-status-band small {
  display: block;
  margin-top: 8px;
  color: var(--color-gold-deep);
  font-size: 12px;
  line-height: 1.5;
}

.profile-member-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 132px;
  padding: 22px 18px 46px;
  border-radius: 0 0 8px 8px;
  background: var(--color-ink);
  color: var(--color-surface);
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-ink);
  place-items: center;
}

.profile-avatar svg {
  width: 24px;
  height: 24px;
}

.profile-member-copy,
.profile-member-copy h1,
.profile-member-copy p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.profile-member-copy h1 {
  font-size: 20px;
  line-height: 1.35;
}

.profile-member-copy p {
  margin-top: 4px;
  color: color-mix(in srgb, var(--color-surface) 70%, transparent);
  font-size: 13px;
  line-height: 1.5;
}

.profile-member-chip {
  display: inline-flex;
  min-height: 24px;
  max-width: 100%;
  margin-top: 9px;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--color-gold) 75%, transparent);
  border-radius: 8px;
  color: #f4dfac;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  margin: -28px 12px 0;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: 0 5px 16px rgb(39 46 56 / 8%);
}

.profile-stat {
  display: grid;
  min-width: 0;
  min-height: 66px;
  padding: 10px 4px;
  border: 0;
  border-left: 1px solid var(--color-line);
  background: transparent;
  color: var(--color-text);
  place-items: center;
  text-align: center;
}

.profile-stat:first-child {
  border-left: 0;
}

.profile-stat strong,
.profile-stat span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-stat strong {
  color: var(--color-ink);
  font-size: 19px;
  line-height: 1.2;
}

.profile-stat span {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.35;
}

.profile-order-state {
  display: flex;
  min-width: 0;
  min-height: 44px;
  margin: 8px 16px 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.45;
}

.profile-order-state > span {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.profile-order-retry {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--color-gold-deep);
  font-size: 12px;
  font-weight: 800;
}

.profile-section {
  margin: 22px 16px 0;
}

.profile-section h2 {
  margin: 0 0 8px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.mvp-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
}

.mvp-benefit {
  display: grid;
  min-width: 0;
  min-height: 112px;
  padding: 16px 12px;
  border: 0;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: transparent;
  color: var(--color-text);
  place-items: center;
  align-content: center;
  gap: 7px;
}

.mvp-benefit:nth-child(2n) {
  border-right: 0;
}

.mvp-benefit:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.mvp-benefit svg {
  width: 24px;
  height: 24px;
  color: var(--color-gold-deep);
}

.mvp-benefit strong,
.mvp-benefit small {
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.mvp-benefit strong {
  font-size: 15px;
}

.mvp-benefit small {
  color: var(--color-muted);
  font-size: 12px;
}

.profile-command-group {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
}

.profile-command {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid var(--color-line);
  background: transparent;
  color: var(--color-text);
  align-items: center;
  gap: 12px;
  text-align: left;
}

.profile-command-group > :first-child {
  border-top: 0;
}

.profile-command span {
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.profile-command svg {
  width: 20px;
  height: 20px;
  color: var(--color-gold-deep);
  stroke-width: 1.8;
}

.profile-command svg:last-child,
.profile-command small {
  color: var(--color-muted);
}

.profile-command small {
  min-width: 0;
  max-width: min(42vw, 14rem);
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-stat:focus-visible,
.profile-command:focus-visible,
.mvp-benefit:focus-visible {
  outline: 2px solid var(--color-gold-deep);
  outline-offset: -2px;
}

@media (max-width: 360px) {
  .order-summary-grid > div,
  .order-detail-row {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 8px;
  }

  .order-fixed-action {
    grid-template-columns: minmax(0, 1fr) minmax(124px, 46%);
  }
}

.hotel-home {
  padding-right: 0;
  padding-left: 0;
  background: var(--color-bg);
}

.hotel-home-head {
  min-height: 72px;
  padding: 10px 16px;
  background: var(--color-surface);
}

.member-greeting {
  display: grid;
  width: 100%;
  min-height: 52px;
  padding: 0;
  border: 0;
  grid-template-columns: minmax(0, 1fr) 52px 20px;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  font: inherit;
  letter-spacing: 0;
  text-align: left;
}

.member-greeting-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.member-greeting-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--color-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-greeting-badge {
  width: fit-content;
  max-width: 100%;
  padding: 2px 7px;
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  color: var(--color-gold-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-greeting-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  place-items: center;
  background: color-mix(in srgb, var(--color-gold) 22%, var(--color-surface));
  color: var(--color-gold-deep);
}

.member-greeting-avatar svg {
  width: 24px;
  height: 24px;
}

.member-greeting-arrow {
  color: var(--color-muted);
}

.hotel-hero {
  display: flex;
  min-height: 228px;
  padding: 28px 20px 64px;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
  background-color: var(--color-ink);
  background-position: center;
  background-size: cover;
  color: #f8f4eb;
  box-shadow: inset 0 -120px 100px rgb(20 24 30 / 56%);
  text-shadow: 0 1px 12px rgb(20 24 30 / 64%);
}

.hotel-hero p,
.hotel-hero h1,
.hotel-hero span {
  margin: 0;
}

.hotel-hero p {
  color: #e6d19e;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.hotel-hero h1 {
  margin-top: 5px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
}

.hotel-hero span {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.5;
}

.hotel-search-panel {
  display: grid;
  margin: -36px 16px 0;
  padding: 18px;
  border: 1px solid rgb(207 177 116 / 48%);
  border-radius: 8px;
  background: var(--color-ink);
  color: #f8f4eb;
  box-shadow: 0 12px 28px rgb(32 38 48 / 16%);
  gap: 0;
}

.hotel-search-city,
.hotel-search-dates {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgb(248 244 235 / 18%);
  background: transparent;
  color: inherit;
  text-align: left;
}

.hotel-search-city span,
.hotel-search-dates small,
.hotel-keyword > span {
  display: block;
  color: #c8c5bd;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.hotel-search-city strong,
.hotel-search-dates strong {
  display: block;
  min-width: 0;
  margin-top: 3px;
  overflow: hidden;
  color: #f8f4eb;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotel-search-dates {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.hotel-search-dates > span:last-child {
  text-align: right;
}

.hotel-search-dates b {
  color: var(--color-gold);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.hotel-keyword {
  display: block;
  min-width: 0;
  padding: 12px 0 10px;
}

.hotel-keyword input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: 5px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgb(248 244 235 / 18%);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #f8f4eb;
  font-size: 16px;
}

.hotel-keyword input::placeholder {
  color: #979b9f;
}

.hotel-keyword input:focus {
  border-bottom-color: var(--color-gold);
}

.hotel-search-submit {
  margin-top: 8px;
}

.pending-stay {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 24px;
  width: calc(100% - 32px);
  min-height: 64px;
  margin: 14px 16px 0;
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  align-items: center;
  gap: 10px;
  text-align: left;
}

.pending-stay-label {
  padding: 4px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--color-gold) 20%, var(--color-surface));
  color: var(--color-gold-deep);
  font-size: 11px;
  font-weight: 800;
}

.pending-stay-copy {
  display: block;
  min-width: 0;
}

.pending-stay-copy strong,
.pending-stay-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pending-stay-copy strong {
  font-size: 14px;
  line-height: 1.4;
}

.pending-stay-copy small {
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.4;
}

.pending-stay-arrow {
  color: var(--color-gold-deep);
  font-size: 24px;
  text-align: center;
}

.hotel-results,
.hotel-detail {
  padding-right: 0;
  padding-bottom: calc(32px + var(--safe-bottom));
  padding-left: 0;
}

.hotel-resource-state {
  display: flex;
  min-height: calc(100vh - 56px - var(--safe-top));
  padding: 48px 24px calc(48px + var(--safe-bottom));
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.hotel-resource-state h2,
.hotel-resource-state p {
  max-width: 320px;
  margin: 0;
  overflow-wrap: anywhere;
}

.hotel-resource-state h2 {
  font-size: 19px;
  line-height: 1.4;
}

.hotel-resource-state p {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
}

.hotel-resource-state .primary-button {
  max-width: 280px;
  margin-top: 8px;
}

.hotel-result-list {
  display: grid;
  padding: 14px 16px 0;
  gap: 12px;
}

.hotel-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  width: 100%;
  min-height: 150px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  text-align: left;
}

.hotel-card-media {
  display: block;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-line);
}

.hotel-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hotel-detail-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hotel-card-body {
  display: flex;
  min-width: 0;
  padding: 12px;
  flex-direction: column;
}

.hotel-card-name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hotel-card-address {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hotel-tags {
  display: flex;
  min-height: 22px;
  margin-top: 8px;
  overflow: hidden;
  flex-wrap: wrap;
  gap: 4px;
}

.hotel-tag {
  max-width: 100%;
  overflow: hidden;
  padding: 2px 5px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--color-gold) 16%, var(--color-surface));
  color: var(--color-gold-deep);
  font-size: 10px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotel-price,
.hotel-availability {
  display: flex;
  min-height: 24px;
  margin-top: auto;
  padding-top: 7px;
  align-items: baseline;
  justify-content: flex-end;
  gap: 2px;
}

.hotel-price small {
  color: var(--color-muted);
  font-size: 10px;
}

.hotel-price b {
  color: var(--color-danger);
  font-size: 18px;
  line-height: 1;
}

.hotel-availability {
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.hotel-detail-media {
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-line);
}

.hotel-detail-dates {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr) auto;
  width: 100%;
  min-width: 0;
  min-height: 60px;
  padding: 8px 16px;
  border: 0;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-text);
  text-align: left;
  align-items: center;
  gap: 8px;
}

.hotel-detail-dates-icon {
  display: grid;
  width: 44px;
  height: 44px;
  color: var(--color-gold-deep);
  place-items: center;
}

.hotel-detail-dates-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.hotel-detail-dates span:not(.hotel-detail-dates-icon) {
  min-width: 0;
}

.hotel-detail-dates small,
.hotel-detail-dates strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotel-detail-dates small {
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.3;
}

.hotel-detail-dates strong {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.35;
}

.hotel-detail-dates b {
  color: var(--color-gold-deep);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.hotel-detail-head,
.hotel-amenities,
.hotel-room-types {
  padding-right: 16px;
  padding-left: 16px;
}

.hotel-detail-head {
  padding-top: 20px;
  padding-bottom: 18px;
  background: var(--color-surface);
}

.hotel-detail-star {
  color: var(--color-gold-deep);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.hotel-detail-head h1 {
  margin: 5px 0 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hotel-detail-head p {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hotel-amenities,
.hotel-room-types {
  margin-top: 10px;
  padding-top: 18px;
  padding-bottom: 18px;
  background: var(--color-surface);
}

.hotel-amenities h2,
.hotel-room-types > h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
}

.hotel-amenities ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0 0;
  padding: 0;
  gap: 8px 14px;
  list-style: none;
}

.hotel-amenities li,
.hotel-amenities p,
.hotel-room-empty {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.hotel-amenities li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--color-gold-deep);
  vertical-align: 2px;
}

.hotel-amenities p,
.hotel-room-empty {
  margin: 12px 0 0;
}

.room-type {
  min-width: 0;
  padding: 18px 0 0;
}

.room-type + .room-type {
  margin-top: 18px;
  border-top: 1px solid var(--color-line);
}

.room-type-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.room-type-head h3 {
  min-width: 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.room-type-head span {
  flex: 0 0 auto;
  max-width: 42%;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-align: right;
}

.rate-plan-list {
  display: grid;
  margin-top: 10px;
}

.rate-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  padding: 12px 0;
  border-top: 1px solid var(--color-line);
  align-items: center;
  gap: 12px;
}

.rate-plan-copy {
  min-width: 0;
}

.rate-plan-copy h4,
.rate-plan-copy p,
.rate-plan-copy small {
  margin: 0;
  overflow-wrap: anywhere;
}

.rate-plan-copy h4 {
  font-size: 14px;
  line-height: 1.45;
}

.rate-plan-copy p {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.55;
}

.rate-plan-copy small {
  display: block;
  margin-top: 4px;
  color: var(--color-success);
  font-size: 11px;
  line-height: 1.4;
}

.rate-plan.is-unavailable .rate-plan-copy small {
  color: var(--color-muted);
}

.rate-plan-booking {
  display: grid;
  min-width: 76px;
  justify-items: end;
  gap: 6px;
}

.rate-plan-price {
  display: block;
  color: var(--color-danger);
  font-size: 12px;
  line-height: 1.2;
  text-align: right;
}

.rate-plan-price small {
  display: block;
  color: var(--color-muted);
  font-size: 10px;
}

.rate-plan-price strong {
  font-size: 17px;
}

.rate-plan-action {
  min-width: 72px;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: var(--color-gold);
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 800;
}

.rate-plan-action:disabled {
  background: var(--color-line);
  color: var(--color-muted);
  cursor: default;
}

.hotel-card:hover {
  border-color: color-mix(in srgb, var(--color-gold) 60%, var(--color-line));
}

.member-greeting:focus-visible,
.hotel-search-city:focus-visible,
.hotel-search-dates:focus-visible,
.pending-stay:focus-visible,
.hotel-card:focus-visible,
.rate-plan-action:focus-visible {
  outline: 2px solid var(--color-gold-deep);
  outline-offset: 2px;
}

@media (max-width: 360px) {
  .hotel-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .hotel-card-body {
    padding: 10px;
  }

  .hotel-search-panel {
    margin-right: 12px;
    margin-left: 12px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .rate-plan {
    gap: 8px;
  }

  .rate-plan-action {
    min-width: 64px;
    padding-right: 9px;
    padding-left: 9px;
  }
}
