:root {
  --paper: #f6f3ec;
  --ink: #24231f;
  --muted: #747267;
  --line: #e4dfd3;
  --accent: #a6533b;
  --accent-soft: #efe1d8;
  --sage: #506952;
  --white: #fffcf6;
  --radius: 20px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  font-size: 15px;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button,
a {
  min-height: 44px;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a6533b88;
  outline-offset: 4px;
}
button {
  transition:
    background 0.2s,
    transform 0.2s;
}
button:active:not(:disabled) {
  transform: scale(0.975);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -1.2px;
}
h2 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 17px;
  font-weight: 600;
}
small,
.small {
  font-size: 12px;
}
svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.65;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#header {
  height: 100px;
  max-width: 1120px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--paper);
  transform: rotate(-5deg);
}
.brand-mark svg {
  width: 26px;
  height: 26px;
}
.brand-name {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1.25;
}
.brand-en {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--muted);
  margin-top: 5px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
}
.balance-pill {
  border: 1px solid var(--line);
  background: #fff9;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 30px;
  white-space: nowrap;
}
.balance-pill svg {
  width: 16px;
  height: 16px;
}
.avatar {
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 50%;
  background: #e9e6db;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.numbers {
  font-variant-numeric: tabular-nums;
}
.accent {
  color: var(--accent);
}
#navigation {
  max-width: 1120px;
  margin: 20px auto 0;
  display: flex;
  gap: 10px;
}
#navigation a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13px;
  border-radius: 12px;
  padding: 9px 20px;
  color: var(--muted);
}
#navigation a.active {
  background: var(--ink);
  color: var(--paper);
}
#navigation svg {
  width: 18px;
  height: 18px;
}
main {
  max-width: 1120px;
  margin: 45px auto 0;
  min-height: 550px;
  animation: arrive 0.3s ease-out;
}
.intro {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin-bottom: 34px;
}
.intro h1 {
  margin: 10px 0;
}
.intro p {
  color: var(--muted);
  font-size: 14px;
}
.postmark {
  width: 145px;
  height: 110px;
  position: relative;
  display: grid;
  place-items: center;
  margin-right: 26px;
  color: var(--accent);
  transform: rotate(-10deg);
}
.postmark:before {
  content: "";
  position: absolute;
  inset: 10px 8px;
  border: 1px solid #b5917c;
  border-radius: 50%;
  transform: rotate(-10deg);
}
.postmark svg {
  width: 68px;
  height: 68px;
  stroke-width: 0.8;
}
.postmark small {
  position: absolute;
  bottom: 0;
  font-size: 8px;
  letter-spacing: 3px;
}
.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 30px;
  align-items: start;
}
.catalog {
  min-width: 0;
  font-size: 16px;
}
.segments {
  display: flex;
  padding: 5px;
  background: #ebe7de;
  border-radius: 14px;
  gap: 3px;
}
.segments button {
  flex: 1;
  font-size: 13px;
  min-height: 44px;
  white-space: nowrap;
  border-radius: 10px;
}
.segments .selected {
  background: var(--white);
  box-shadow: 0 2px 6px #3025120c;
  color: var(--accent);
  font-weight: 600;
}
.filters {
  display: flex;
  gap: 10px;
  margin: 20px 0 25px;
}
.search {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff6;
  min-width: 0;
  padding-left: 15px;
}
.search:focus-within {
  border-color: var(--accent);
  outline: 3px solid #a6533b88;
  outline-offset: 4px;
}
.search input:focus-visible {
  outline: none;
}
.search svg {
  width: 18px;
  color: var(--muted);
}
input,
select,
textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
  min-height: 46px;
  padding: 10px 13px;
  min-width: 0;
  font-size: 16px;
}
input::placeholder {
  color: #8b887e;
}
.search input {
  border: 0;
  background: none;
  width: 100%;
  outline-offset: 0;
}
.filters select {
  width: 180px;
  max-width: 40%;
  background: #fff6;
}
.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 12px;
}
.offer-list {
  border-top: 1px solid var(--line);
}
.service-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  border-top: 1px solid var(--line);
}
.service-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 76px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.service-logo {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.service-logo img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.service-info {
  min-width: 0;
}
.service-info h3 {
  font-size: 16px;
  font-weight: 550;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.service-region-state {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.directory-more {
  display: block;
  margin: 20px auto 0;
}
.offer {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 108px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.service-mark {
  height: 48px;
  width: 48px;
  min-width: 48px;
  border: 1px solid #d9dfd1;
  background: #e8ecdf;
  color: #53624d;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-family: Georgia, serif;
}
.offer:nth-child(2n) .service-mark {
  background: #e8e3ef;
  border-color: #dcd3e7;
  color: #746283;
}
.offer:nth-child(3n) .service-mark {
  background: #eee2d7;
  color: #96744f;
  border-color: #e1d1bd;
}
.offer-info {
  flex: 1;
  min-width: 0;
}
.offer-info h3 {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.offer-action {
  text-align: right;
  flex-shrink: 0;
}
.price {
  font-weight: 600;
  font-size: 16px;
}
.price small {
  font-weight: 400;
  color: var(--muted);
  font-size: 10px;
  margin-left: 4px;
}
.offer-action button {
  display: block;
  margin: 4px 0 0 auto;
  color: var(--accent);
  font-size: 12px;
  min-height: 32px;
  padding: 0 7px;
}
.status {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border-radius: 30px;
  padding: 4px 10px;
  background: #e8ede3;
  color: var(--sage);
  font-size: 11px;
  white-space: nowrap;
}
.status:before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.status.quiet {
  background: #eae6dc;
  color: #767264;
}
.status.warning {
  background: #f0e2d5;
  color: #94632d;
}
.note-panel {
  border-radius: var(--radius);
  background: #e9e7dc;
  padding: 25px;
}
.note-panel h3 {
  font-family: Georgia, "Songti SC", serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 15px 0 12px;
}
.note-panel p {
  font-size: 12px;
  color: #6c6b5e;
  line-height: 1.9;
}
.note-panel .rule {
  height: 1px;
  background: #d6d3c4;
  margin: 20px 0;
}
.steps {
  display: grid;
  gap: 17px;
}
.step {
  display: flex;
  gap: 12px;
  font-size: 12px;
}
.step span:first-child {
  font: italic 15px Georgia;
  color: #8d8d78;
}
.support-note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
  padding: 24px 0;
}
.support-note svg {
  width: 16px;
}
.footer {
  max-width: 1120px;
  margin: 60px auto 0;
  padding: 25px 0 35px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #8b877b;
  letter-spacing: 1px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 28px;
}
.page-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  min-height: 46px;
  padding: 10px 20px;
  font-weight: 500;
  font-size: 13px;
}
.button.secondary {
  background: #eae6dc;
  color: var(--ink);
}
.button.accent-button {
  background: var(--accent);
}
.button.wide {
  width: 100%;
}
.empty {
  border: 1px dashed #d6d0c2;
  border-radius: var(--radius);
  padding: 46px 22px;
  text-align: center;
  color: var(--muted);
}
.empty svg {
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  stroke-width: 1.1;
}
.empty h2 {
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 8px;
}
.empty p {
  font-size: 13px;
  max-width: 340px;
  margin: auto;
}
.empty .button {
  margin-top: 23px;
}
.cards {
  display: grid;
  gap: 15px;
}
.order-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  text-align: left;
  display: block;
  width: 100%;
}
.order-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.order-card-top > div {
  flex: 1;
}
.order-card h3 {
  font-size: 16px;
}
.address {
  font-size: 23px;
  letter-spacing: 0.2px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.order-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 17px;
  font-size: 12px;
  color: var(--muted);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  align-items: start;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
}
.panel h2 {
  font-size: 19px;
  margin-bottom: 20px;
}
.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0;
}
.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #efebe2;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.definition {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.definition span:first-child {
  color: var(--muted);
}
.definition span:last-child {
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.message {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.message:first-of-type {
  padding-top: 0;
}
.message:last-child {
  border: 0;
  padding-bottom: 0;
}
.message-top {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}
.message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  margin: 12px 0;
}
.code-button {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 5px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.code-button svg {
  width: 18px;
  height: 18px;
}
.notice {
  padding: 14px 17px;
  font-size: 13px;
  border-radius: 12px;
  background: #eee5d8;
  color: #7d5d38;
  margin: 18px 0;
  overflow-wrap: anywhere;
}
.error {
  color: #9d3f2f;
  background: #f4e7df;
}
.wallet {
  background: var(--ink);
  border-radius: 24px;
  color: var(--paper);
  padding: 30px;
  margin-bottom: 24px;
}
.wallet .eyebrow {
  color: #c1c1ac;
}
.wallet-value {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.4;
  margin: 10px 0;
}
.wallet-value small {
  font-size: 14px;
  letter-spacing: 0;
  margin-left: 8px;
  color: #c3c0b5;
}
.wallet-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ffffff26;
  padding-top: 18px;
  font-size: 12px;
}
.wallet .button {
  background: #ffffff16;
  color: #c3c0b5;
  font-size: 12px;
}
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.ledger {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 13px;
}
.ledger small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.admin-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  color: var(--accent);
  font-size: 13px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.fields {
  display: grid;
  gap: 17px;
}
.fields label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.fields .switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  color: var(--ink);
}
.switch input {
  min-height: 22px;
  width: 22px;
  accent-color: var(--accent);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 25px;
  overflow: hidden;
}
.stats > div {
  padding: 20px;
  border-right: 1px solid var(--line);
}
.stats strong {
  display: block;
  font-size: 26px;
  font-weight: 500;
}
.stats small {
  color: var(--muted);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}
.back svg {
  width: 15px;
}
.loading {
  height: 120px;
  border-radius: 16px;
  background: linear-gradient(90deg, #ebe6db, #f3efe6, #ebe6db);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin: 14px 0;
}
.loading-label {
  color: var(--muted);
  font-size: 13px;
}
.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
dialog {
  border: 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: 26px;
  width: 480px;
  max-width: calc(100% - 32px);
  padding: 28px;
  box-shadow: 0 30px 120px #201c1733;
}
dialog::backdrop {
  background: #25231e66;
  backdrop-filter: blur(5px);
}
.sheet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.sheet-top h2 {
  font-size: 22px;
}
.sheet-summary {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.sheet-price {
  font-size: 26px;
}
.sheet-note {
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0;
}
.sheet-actions {
  display: flex;
  gap: 10px;
}
.sheet-actions button {
  flex: 1;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 105px;
  transform: translate(-50%, 20px);
  pointer-events: none;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: 30px;
  box-shadow: 0 10px 30px #0002;
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 100;
  white-space: nowrap;
  font-size: 13px;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (max-width: 1180px) {
  #header,
  #navigation,
  main,
  .footer {
    margin-left: 32px;
    margin-right: 32px;
  }
}
@media (max-width: 1000px) {
  .shop-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .shop-layout .note-panel {
    display: none;
  }
  .intro {
    margin-bottom: 20px;
  }
}
@media (max-width: 700px) {
  body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  #header {
    height: auto;
    min-height: 64px;
    padding: 10px 0;
    margin: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .brand {
    gap: 10px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .brand-mark svg {
    width: 23px;
  }
  .brand-name {
    font-size: 22px;
  }
  .brand-en {
    font-size: 8px;
    letter-spacing: 2.3px;
    margin-top: 3px;
  }
  .header-right {
    gap: 10px;
  }
  .balance-pill {
    font-size: 11px;
    padding: 8px 10px;
    gap: 6px;
  }
  .balance-pill svg {
    width: 14px;
  }
  .avatar {
    display: none;
  }
  #navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    z-index: 20;
    background: #f9f6eff5;
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    padding: 7px 15px calc(8px + env(safe-area-inset-bottom));
    gap: 0;
    justify-content: space-around;
  }
  #navigation a {
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    flex: 1;
    min-width: 0;
    padding: 7px 4px;
    overflow-wrap: anywhere;
  }
  #navigation a.active {
    color: var(--accent);
    background: none;
  }
  #navigation svg {
    width: 22px;
    height: 22px;
  }
  main {
    margin: 10px max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
    min-height: 450px;
  }
  h1 {
    font-size: 28px;
    letter-spacing: -1px;
  }
  .intro {
    margin-bottom: 16px;
    gap: 10px;
  }
  .intro h1 {
    max-width: 100%;
    font-size: clamp(20px, 5.2vw, 26px);
    margin: 0 0 4px;
    line-height: 1.35;
  }
  .intro p {
    font-size: 12px;
    max-width: 100%;
    line-height: 1.5;
  }
  .intro .eyebrow,
  .intro-detail,
  .postmark {
    display: none;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .postmark {
    width: 64px;
    min-width: 64px;
    height: 77px;
    margin: 0;
    align-self: flex-start;
    margin-top: 30px;
  }
  .postmark:before {
    inset: 8px -1px;
  }
  .postmark svg {
    width: 42px;
    height: 42px;
  }
  .postmark small {
    font-size: 5px;
    letter-spacing: 1px;
    bottom: 2px;
  }
  .shop-layout {
    display: block;
  }
  .note-panel {
    margin-top: 26px;
    padding: 22px;
  }
  .note-panel h3 {
    font-size: 19px;
    margin: 10px 0;
  }
  .note-panel .rule {
    margin: 17px 0;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .note-panel p {
    font-size: 12px;
  }
  .filters {
    margin: 12px 0 10px;
    gap: 8px;
    flex-direction: column;
  }
  .filters select {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .search {
    padding-left: 12px;
  }
  .search input {
    font-size: 16px;
    padding: 10px;
  }
  .segments button {
    font-size: 12px;
    padding: 0 7px;
    white-space: normal;
    overflow-wrap: anywhere;
    min-width: 0;
  }
  .service-directory {
    grid-template-columns: minmax(0, 1fr);
  }
  .service-card {
    min-height: 70px;
    padding: 12px 0;
  }
  .catalog .region-note {
    margin: 0 0 12px;
  }
  .offer {
    gap: 12px;
    min-height: 100px;
    padding: 18px 0;
  }
  .service-mark {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .offer-info h3 {
    font-size: 15px;
  }
  .meta {
    font-size: 10px;
    gap: 4px;
  }
  .offer-action {
    max-width: 110px;
  }
  .price {
    font-size: 15px;
  }
  .price small {
    font-size: 9px;
    margin-left: 3px;
  }
  .offer-action button {
    min-height: 44px;
    margin-top: 0;
  }
  .support-note {
    font-size: 11px;
    padding: 19px 0 0;
  }
  .footer {
    margin: 34px 23px 0;
    padding: 23px 0;
    gap: 15px;
    font-size: 8px;
    letter-spacing: 0.2px;
  }
  .page-head {
    margin-bottom: 22px;
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 29px;
  }
  .page-head p {
    font-size: 12px;
  }
  .page-head .status {
    margin-top: 8px;
  }
  .detail-grid,
  .account-grid,
  .admin-grid {
    display: block;
  }
  .panel {
    padding: 21px;
    margin-bottom: 20px;
  }
  .address {
    font-size: 21px;
  }
  .wallet {
    padding: 25px;
  }
  .wallet-value {
    font-size: 43px;
  }
  .wallet-bottom {
    gap: 15px;
    font-size: 11px;
  }
  .wallet .button {
    padding: 10px 13px;
  }
  .order-card {
    padding: 20px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats > div {
    padding: 18px;
    border-bottom: 1px solid var(--line);
  }
  dialog {
    position: fixed;
    top: auto;
    bottom: 0;
    margin: 0;
    max-width: 100%;
    width: 100%;
    border-radius: 26px 26px 0 0;
    padding: 23px 23px calc(24px + env(safe-area-inset-bottom));
    max-height: 90dvh;
    overflow: auto;
  }
  .sheet-top h2 {
    font-size: 21px;
  }
  .message-top {
    font-size: 11px;
  }
  .definition {
    font-size: 12px;
  }
  .order-bottom {
    font-size: 10px;
  }
  .empty {
    padding: 40px 18px;
  }
  .empty p {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.offer-action button {
  min-height: 44px;
}
.intro {
  position: relative;
}
@media (max-width: 700px) {
  .intro > div:first-child {
    width: 100%;
  }
  .intro h1 {
    max-width: 100%;
  }
  .intro h1 span {
    display: inline;
  }
  .postmark {
    position: absolute;
    right: 0;
    top: 5px;
    margin-top: 20px;
  }
  .intro p {
    max-width: 100%;
  }
  .intro .eyebrow {
    max-width: 260px;
    line-height: 1.8;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  #header {
    height: auto;
    min-height: 54px;
    padding: 5px 0;
  }
  #navigation:not(:last-child) {
    margin-top: 6px;
  }
  main {
    margin-top: 4px;
  }
  .intro {
    display: none;
  }
  .intro h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
  }
  .intro p,
  .intro .eyebrow,
  .postmark {
    display: none;
  }
  .filters {
    flex-direction: row;
    margin: 6px 0;
  }
  .filters select {
    width: 42%;
    max-width: 42%;
  }
  .catalog .region-note {
    font-size: 11px;
    line-height: 1.4;
    margin: 0 0 4px;
  }
  .list-heading {
    display: none;
  }
  .shop-layout {
    display: block;
  }
  .shop-layout .note-panel {
    display: none;
  }
}
.admin-grid > div {
  display: grid;
  gap: 24px;
  align-content: start;
}
.admin-grid > div > .panel {
  margin: 0;
}
.avatar {
  width: 44px;
  height: 44px;
  min-height: 44px;
}
body:has(dialog[open]) {
  overflow: hidden;
}

/* Keep the current destination and category visible beyond color alone. */
#navigation a.active {
  font-weight: 650;
  box-shadow: inset 0 0 0 1px #24231f14;
}
.segments .selected {
  background: var(--white);
  box-shadow: 0 2px 6px #30251212, inset 0 0 0 1px #a6533b55;
  font-weight: 650;
}
.segments .selected::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 6px;
  vertical-align: middle;
  border-radius: 50%;
  background: currentColor;
}
.region-note {
  color: var(--muted);
  font-size: 12px;
  margin: -12px 0 20px;
  overflow-wrap: anywhere;
}
.offer-reason {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.filters select:disabled {
  color: var(--muted);
  opacity: 1;
  cursor: not-allowed;
}
.detail-grid,
.account-grid,
.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.panel,
.wallet,
.order-card-top > div,
.message-top > span,
.account-grid > div,
.admin-grid > div {
  min-width: 0;
}
.panel h2,
.panel h3,
.message-top,
.wallet-value,
.wallet-bottom,
.ledger,
.order-card-top h3 {
  overflow-wrap: anywhere;
}
.code-button {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
  min-width: 0;
}
.wallet-value {
  font-size: clamp(24px, 4vw, 48px);
}
.wallet-bottom {
  flex-wrap: wrap;
  gap: 12px;
}
.header-right {
  min-width: 0;
}
.balance-pill {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.balance-pill .numbers {
  min-width: 0;
}
#toast {
  max-width: calc(100vw - 32px);
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
@media (max-width: 700px) {
  #navigation a.active {
    color: var(--accent);
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px #a6533b20;
  }
  .balance-pill {
    max-width: 175px;
  }
  .wallet-value {
    font-size: 29px;
  }
  .code-button {
    font-size: 24px;
    letter-spacing: 3px;
  }
  .segments button {
    padding: 0 4px;
  }
}
