:root {
  --bg: #f6f8f5;
  --surface: #ffffff;
  --surface-2: #eef5ec;
  --ink: #172016;
  --muted: #657067;
  --line: #dfe7dc;
  --brand: #168643;
  --brand-2: #0c6d78;
  --accent: #c94838;
  --warn: #b68000;
  --danger: #d03838;
  --shadow: 0 12px 32px rgba(18, 34, 22, 0.12);
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

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

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

button {
  cursor: pointer;
}

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

.app-shell {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  border-left: 1px solid rgba(0, 0, 0, 0.04);
  border-right: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
}

.page {
  min-height: 100vh;
  padding: 54px 14px 84px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, 100%);
  height: 48px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  background: rgba(246, 248, 245, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  z-index: 20;
}

.topbar h1 {
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
}

.icon-btn svg,
.mini-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.search-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 68px;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  padding: 8px;
  border: 1px solid rgba(200, 217, 207, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(31, 65, 43, 0.06);
}

.city-chip,
.pill,
.status-pill {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 7px 10px;
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.search-box {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
  border: 1px solid transparent;
  background: #f3f7f4;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.search-box:focus-within {
  border-color: rgba(22, 134, 67, 0.38);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 134, 67, 0.1);
}

.search-box svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  height: 40px;
  color: var(--ink);
}

.search-box input::placeholder {
  color: #8a978f;
}

.search-row .city-chip,
.search-row .ghost {
  min-height: 40px;
  width: 100%;
  padding-inline: 0;
}

.primary,
.secondary,
.ghost,
.danger,
.link-btn {
  border: 0;
  border-radius: var(--radius);
  min-height: 38px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
}

.primary svg,
.secondary svg,
.ghost svg,
.danger svg,
.link-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-row .ghost span {
  line-height: 1;
  white-space: nowrap;
}

.primary {
  color: #fff;
  background: var(--brand);
}

.secondary {
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid #cfe0ca;
}

.continue-unavailable {
  cursor: not-allowed;
  color: #6f7972;
  background: #e6ebe7;
  border-color: #d1d9d3;
}

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

.danger {
  color: #fff;
  background: var(--danger);
}

.link-btn {
  min-height: 30px;
  color: var(--brand-2);
  background: transparent;
  padding: 4px 0;
}

.store-card,
.room-card,
.item-card,
.order-card,
.panel,
.ledger-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(25, 43, 30, 0.06);
}

.store-card {
  overflow: hidden;
}

.store-card img,
.hero img,
.room-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-cover {
  height: 150px;
  background: #d8e7d3;
}

.store-body {
  padding: 12px;
}

.store-heading,
.section-heading,
.row-between,
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.store-heading h2,
.section-heading h2 {
  margin: 0;
  font-size: 17px;
}

.address,
.muted,
.fineprint {
  color: var(--muted);
}

.address {
  margin: 8px 0;
  line-height: 1.5;
  font-size: 13px;
}

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

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

.metric {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 9px 8px;
}

.metric b {
  display: block;
  font-size: 18px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
}

.hero {
  height: 214px;
  margin: -54px -14px 0;
  position: relative;
  overflow: hidden;
  background: #d8e7d3;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 12, 0.12), rgba(10, 20, 12, 0.68));
}

.hero-copy {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  z-index: 1;
  color: #fff;
}

.hero-copy h2 {
  margin: 0 0 6px;
  font-size: 23px;
  line-height: 1.1;
}

.hero-copy p {
  margin: 0;
  font-size: 13px;
  opacity: 0.95;
  line-height: 1.5;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: 14px 0;
}

.quick-action {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 8px 4px;
  color: var(--ink);
}

.quick-action svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-action span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: currentColor;
}

.store-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.meta-line {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.segmented {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 0 10px;
  scrollbar-width: none;
}

.segmented::-webkit-scrollbar {
  display: none;
}

.segment {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--ink);
}

.segment.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.segment.locked,
.choice.locked,
.availability-slot.locked {
  cursor: not-allowed;
  opacity: 1;
}

.segment.locked:not(.active),
.choice.locked:not(.active),
.availability-slot.locked:not(.active) {
  background: var(--surface);
  color: var(--ink);
}

.room-list,
.item-list,
.order-list,
.stack {
  display: grid;
  gap: 12px;
}

.room-card {
  overflow: hidden;
}

.room-summary {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 12px;
}

.room-media {
  height: 126px;
  border-radius: 7px;
  overflow: hidden;
  background: #dde9dc;
}

.room-info h3,
.item-card h3,
.order-card h3,
.panel h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.gift-card {
  background: linear-gradient(180deg, #fff, #f8fbf9);
}

.gift-layout {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.gift-layout img {
  width: 112px;
  height: 132px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #eef5ec;
}

.gift-meta {
  display: grid;
  gap: 4px;
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.gift-meta div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.gift-meta-claimed {
  color: var(--ink);
  font-weight: 650;
}

.member-profile-card,
.member-center-panel,
.level-card,
.rule-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.member-profile-card::before,
.member-center-panel::before,
.level-card::before,
.rule-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 17, 13, 0.82), rgba(8, 17, 13, 0.48) 52%, rgba(8, 17, 13, 0.18)),
    var(--member-art);
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.member-profile-card::after,
.member-center-panel::after,
.level-card::after,
.rule-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}

.member-profile-card,
.member-center-panel {
  min-height: 170px;
  border: 0;
  color: #fff;
  box-shadow: 0 16px 38px rgba(16, 34, 24, 0.2);
}

.member-center-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.membership-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.membership-title p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.45;
}

.membership-score {
  display: grid;
  gap: 2px;
}

.membership-score span,
.membership-score em {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-style: normal;
}

.membership-score b {
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.membership-progress {
  display: grid;
  gap: 8px;
}

.membership-progress .row-between {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.membership-progress .row-between b {
  color: #fff;
}

.monthly-consumption {
  display: grid;
  gap: 7px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.monthly-consumption .row-between {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.monthly-consumption .row-between b {
  color: #fff;
}

.monthly-consumption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.4;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--level-accent, #92dfaa);
}

.membership-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.membership-stats div {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.membership-stats span,
.membership-stats b {
  display: block;
}

.membership-stats span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.membership-stats b {
  margin-top: 3px;
  color: #fff;
  font-size: 16px;
}

.member-profile-card .muted,
.member-center-panel .muted {
  color: rgba(255, 255, 255, 0.78);
}

.member-profile-card .metric {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(10px);
}

.member-profile-card .metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-profile-card .metric span {
  color: rgba(255, 255, 255, 0.72);
}

.member-profile-card .ghost,
.member-center-panel .secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.benefit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.benefit-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef5ec;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.member-center-panel .benefit-list span,
.rule-card .benefit-list span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

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

.level-card {
  min-height: 108px;
  padding: 12px;
  border: 0;
  border-radius: var(--radius);
  background: #10251a;
  color: #fff;
  display: grid;
  align-content: end;
  gap: 5px;
  box-shadow: 0 10px 24px rgba(19, 37, 27, 0.12);
}

.level-card.active {
  box-shadow:
    0 0 0 2px var(--level-accent, #92dfaa),
    0 14px 28px rgba(19, 37, 27, 0.2);
}

.level-card b {
  font-size: 17px;
  letter-spacing: 0;
}

.level-card span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.membership-rules {
  display: grid;
  gap: 10px;
}

.rule-card {
  min-height: 148px;
  padding: 14px;
  border: 0;
  border-radius: var(--radius);
  background: #10251a;
  color: #fff;
  display: grid;
  align-content: end;
  gap: 12px;
}

.rule-card .status-badge {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.level-normal {
  --level-accent: #8ad9a0;
}

.level-bronze {
  --level-accent: #c88a4a;
}

.level-silver {
  --level-accent: #dbe8f5;
}

.level-gold {
  --level-accent: #f0c863;
}

.level-diamond {
  --level-accent: #a9ecff;
}

.member-profile-card.level-bronze::before,
.member-center-panel.level-bronze::before,
.level-card.level-bronze::before,
.rule-card.level-bronze::before {
  background:
    linear-gradient(90deg, rgba(22, 13, 7, 0.86), rgba(22, 13, 7, 0.52) 52%, rgba(22, 13, 7, 0.16)),
    var(--member-art);
  background-size: cover;
  background-position: center;
}

.member-profile-card.level-silver::before,
.member-center-panel.level-silver::before,
.level-card.level-silver::before,
.rule-card.level-silver::before {
  background:
    linear-gradient(90deg, rgba(17, 24, 29, 0.84), rgba(17, 24, 29, 0.52) 52%, rgba(17, 24, 29, 0.2)),
    var(--member-art);
  background-size: cover;
  background-position: center;
}

.member-profile-card.level-gold::before,
.member-center-panel.level-gold::before,
.level-card.level-gold::before,
.rule-card.level-gold::before {
  background:
    linear-gradient(90deg, rgba(26, 18, 8, 0.86), rgba(26, 18, 8, 0.52) 54%, rgba(26, 18, 8, 0.16)),
    var(--member-art);
  background-size: cover;
  background-position: center;
}

.member-profile-card.level-diamond::before,
.member-center-panel.level-diamond::before,
.level-card.level-diamond::before,
.rule-card.level-diamond::before {
  background:
    linear-gradient(90deg, rgba(5, 18, 24, 0.88), rgba(5, 18, 24, 0.52) 52%, rgba(5, 18, 24, 0.16)),
    var(--member-art);
  background-size: cover;
  background-position: center;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0;
}

.tag {
  border-radius: 999px;
  background: #edf3ed;
  color: #3d513e;
  font-size: 11px;
  padding: 4px 7px;
}

.status-free {
  color: #0f7d3d;
}

.status-booked {
  color: var(--warn);
}

.status-using {
  color: var(--danger);
}

.package-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 7px 0;
}

.package-chip {
  border-radius: 6px;
  background: #f5f7f4;
  border: 1px solid var(--line);
  padding: 5px 7px;
  font-size: 12px;
}

.timeline {
  border-top: 1px solid var(--line);
  padding: 34px 12px 12px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
}

.slot {
  display: block;
  height: 18px;
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: #dbeed9;
  padding: 0;
  position: relative;
  appearance: none;
}

.slot.busy {
  background: #f4c15d;
}

.slot.using {
  background: #ee817b;
}

.slot.disabled {
  background: #e8e8e8;
}

.slot.active {
  box-shadow: 0 0 0 2px var(--ink) inset;
}

.slot-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  z-index: 2;
  transform: translateX(-50%);
  min-width: max-content;
  border: 1px solid rgba(23, 32, 22, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 12px rgba(18, 34, 22, 0.12);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 6px;
  pointer-events: none;
  white-space: nowrap;
}

.slot.edge-start .slot-label {
  left: 0;
  transform: none;
}

.slot.edge-end .slot-label {
  right: 0;
  left: auto;
  transform: none;
}

.slot:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

.legend {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: -2px;
}

.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px 12px;
  outline-color: var(--brand);
}

.password-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.password-control input {
  min-width: 0;
  min-height: 40px;
  border: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  padding-right: 8px;
  outline: 0;
}

.password-control input:focus {
  border: 0;
  box-shadow: none;
}

.password-control:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 134, 67, 0.12);
}

.password-toggle {
  width: 42px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  background: transparent;
}

.password-toggle:hover {
  color: var(--brand);
  background: var(--surface-2);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.choice {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
  text-align: left;
}

.choice.active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.locked-select:disabled {
  cursor: not-allowed;
  opacity: 1;
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
  -webkit-text-fill-color: var(--ink);
}

.availability-panel {
  display: grid;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.availability-head,
.availability-group {
  display: grid;
  gap: 7px;
}

.availability-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.availability-head span,
.availability-group > span {
  color: var(--muted);
  font-size: 12px;
}

.availability-head b {
  color: var(--brand);
  font-size: 12px;
}

.availability-ranges,
.availability-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.availability-range {
  border: 1px solid #cfe0ca;
  border-radius: 6px;
  background: #eef8f2;
  padding: 5px 7px;
  color: var(--ink);
  font-size: 12px;
}

.availability-slot {
  flex: 1 1 84px;
  min-width: 0;
  min-height: 42px;
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 6px 7px;
  color: var(--ink);
  text-align: left;
}

.availability-slot b,
.availability-slot span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.availability-slot b {
  font-size: 13px;
}

.availability-slot span {
  color: var(--muted);
  font-size: 11px;
}

.availability-slot.active {
  border-color: var(--brand);
  background: #eef8f2;
  box-shadow: inset 0 0 0 1px var(--brand);
}

.availability-slot.unavailable,
.availability-slot.unavailable.active {
  border-color: #d7ded8;
  background: #edf0ee;
  box-shadow: none;
  color: #748078;
}

.availability-slot.unavailable b,
.availability-slot.unavailable span {
  color: #748078;
}

.availability-empty {
  width: 100%;
  color: var(--muted);
  font-size: 12px;
}

.member-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.member-name-line span {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
  color: var(--ink);
}

.member-profile-card .member-name-line span,
.member-center-panel .member-name-line span {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
}

.member-name-line em {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef5ec;
  color: var(--brand);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.member-profile-card .member-name-line em,
.member-center-panel .member-name-line em {
  min-height: 24px;
  padding: 0 10px;
  color: #172016;
  background: var(--level-accent, #92dfaa);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.settings-entry,
.settings-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  text-align: left;
}

.settings-entry span,
.settings-row span {
  display: grid;
  gap: 3px;
}

.settings-entry small,
.settings-row small {
  color: var(--muted);
  font-size: 12px;
}

.settings-entry i,
.settings-row i {
  color: var(--muted);
  font-style: normal;
  font-size: 20px;
}

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

.settings-row.active {
  border-color: var(--brand);
  background: #eef8f2;
}

.summary {
  background: #eef5ec;
  border: 1px solid #cfe0ca;
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(430px, 100%);
  height: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  z-index: 18;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
  min-width: 0;
  min-height: 64px;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item span {
  display: block;
  max-width: 100%;
  color: currentColor;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item.active {
  color: var(--brand);
  font-weight: 800;
}

.panel {
  padding: 12px;
}

.item-card,
.order-card,
.ledger-row {
  padding: 12px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  background: #fdeee4;
  color: #9a431d;
  font-weight: 800;
  font-size: 12px;
}

.gift-card .status-badge.gift-status-unclaimed {
  background: #e9f7ef;
  color: var(--brand);
  border: 1px solid #b8dfc8;
}

.status-badge.status-review,
.status-badge.status-ready,
.status-badge.status-active {
  background: #e9f7ef;
  color: #168643;
  border: 1px solid #b8dfc8;
}

.status-badge.status-done {
  background: #edf4ff;
  color: #2563a8;
  border: 1px solid #c8dcf8;
}

.status-badge.status-cancelled {
  background: #f3f3f1;
  color: #6d756d;
  border: 1px solid #deded9;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.order-detail-page {
  display: grid;
  gap: 12px;
}

.order-detail-hero,
.detail-panel {
  display: grid;
  gap: 10px;
}

.order-detail-hero h3,
.detail-panel h3 {
  margin: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.detail-row:first-of-type {
  border-top: 0;
}

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

.detail-row b {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  text-align: right;
  word-break: break-word;
}

.access-code-panel {
  display: grid;
  gap: 7px;
  justify-items: center;
  text-align: center;
  background: #e9f7ef;
  border-color: #b8dfc8;
}

.access-code-panel span {
  color: #168643;
  font-weight: 800;
  font-size: 13px;
}

.access-code-panel b {
  color: #103a22;
  font-size: 30px;
  letter-spacing: 0;
}

.payment-success-panel {
  display: grid;
  gap: 6px;
  background: #e9f7ef;
  border-color: #b8dfc8;
}

.payment-success-panel h3 {
  margin: 0;
  color: #168643;
}

.notice {
  background: #fff9e8;
  border: 1px solid #f0d28c;
  border-radius: var(--radius);
  color: #6d4c00;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

.empty {
  color: var(--muted);
  padding: 22px 10px;
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 82px;
  transform: translateX(-50%);
  z-index: 50;
  max-width: min(390px, calc(100% - 28px));
  color: #fff;
  background: rgba(20, 28, 20, 0.92);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  box-shadow: var(--shadow);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(8, 12, 8, 0.46);
  display: grid;
  place-items: end center;
}

.modal {
  width: min(430px, 100%);
  background: var(--surface);
  border-radius: 14px 14px 0 0;
  padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow);
  max-height: 82vh;
  overflow: auto;
}

.modal h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.door-password-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 14px 12px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbf9;
}

.door-password-card span {
  color: var(--muted);
  font-size: 13px;
}

.door-password-code {
  max-width: 100%;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 32px;
  letter-spacing: 0;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.qr {
  width: 150px;
  height: 150px;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #132116 0 6px, #fff 6px 12px);
  margin: 10px auto;
  border: 8px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.qr-panel {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbf9;
}

.payment-qr {
  width: 96px;
  height: 110px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

.pay-modal-body {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.payment-qr.large {
  width: 168px;
  height: 194px;
}

.payment-qr-missing {
  padding: 16px;
  border: 1px dashed #e0a43a;
  border-radius: var(--radius);
  background: #fffaf0;
  color: #6d4c00;
}

.payment-page {
  padding-bottom: 28px;
}

.payment-panel {
  display: grid;
  gap: 16px;
}

.payment-heading {
  display: grid;
  gap: 8px;
}

.payment-heading h3,
.payment-panel.submitted h3 {
  margin: 0;
}

.payment-amount {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbf9;
}

.payment-amount b {
  font-size: 20px;
}

.payment-deadline {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #f0d28c;
  border-radius: var(--radius);
  background: #fff9e8;
  color: #6d4c00;
  text-align: center;
}

.payment-deadline span,
.payment-deadline p {
  font-size: 13px;
}

.payment-deadline p {
  margin: 0;
  line-height: 1.45;
}

.payment-deadline b {
  color: #9a431d;
  font-size: 24px;
  letter-spacing: 0;
}

.payment-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.balance-payment {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbf9;
  text-align: center;
}

.payment-panel.submitted {
  text-align: center;
}

.customer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.customer-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbf9;
}

.customer-qr {
  width: 120px;
  height: 120px;
  margin: 10px 0;
}

.customer-qr-image {
  display: block;
  width: 150px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 12px 0 2px;
  border: 8px solid #fff;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  object-fit: contain;
}

.fineprint {
  font-size: 12px;
  line-height: 1.45;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.language-row,
.payment-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.payment-row .segment {
  flex: 1 1 86px;
  justify-content: center;
}

.recharge-submit {
  width: 100%;
}

@media (min-width: 700px) {
  body {
    background: linear-gradient(90deg, #e5ede1, #f6f8f5 28%, #f6f8f5 72%, #e9eff0);
  }
}

@media (max-width: 360px) {
  .room-summary {
    grid-template-columns: 96px 1fr;
  }

  .gift-layout {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .gift-layout img {
    width: 92px;
    height: 116px;
  }

  .quick-actions {
    gap: 6px;
  }

  .primary,
  .secondary,
  .ghost,
  .danger {
    padding-left: 9px;
    padding-right: 9px;
  }
}
