:root {
  color-scheme: light;
  --account-header-block: 76px;
  --ink: #17201d;
  --muted: #66706b;
  --line: rgba(23, 32, 29, 0.12);
  --paper: #f4f0e7;
  --panel: rgba(255, 253, 248, 0.88);
  --green: #214c3d;
  --green-deep: #132c24;
  --gold: #835b25;
  --gold-light: #e9d7ae;
  --danger: #9a493f;
  --shadow: 0 24px 70px rgba(38, 34, 27, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.95), transparent 30rem),
    radial-gradient(circle at 92% 12%, rgba(221, 196, 145, 0.18), transparent 28rem),
    linear-gradient(180deg, #faf7f0, var(--paper));
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

main {
  min-height: calc(100vh - var(--account-header-block));
  min-height: calc(100svh - var(--account-header-block));
}

.account-state-view {
  display: grid;
  width: min(520px, calc(100% - 36px));
  min-height: calc(100vh - var(--account-header-block));
  min-height: calc(100svh - var(--account-header-block));
  margin: 0 auto;
  padding: 70px 0;
  place-content: center;
  justify-items: center;
  color: var(--muted);
  text-align: center;
}

.account-state-view p,
.account-state-view h1 {
  margin: 18px 0 0;
  color: var(--ink);
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 26px;
  font-weight: 400;
}

.account-state-view small {
  margin-top: 8px;
  font-size: 11px;
}

.account-state-view .primary-button {
  min-width: 170px;
  margin-top: 24px;
}

.account-loading-mark,
.account-state-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
}

.account-loading-mark {
  border: 2px solid rgba(33, 76, 61, 0.14);
  border-top-color: var(--green);
  animation: account-spin 720ms linear infinite;
}

.account-state-mark {
  color: #fff;
  background: var(--danger);
  font-weight: 850;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(167, 123, 60, 0.55);
  outline-offset: 3px;
}

.account-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(23, 32, 29, 0.08);
  background: rgba(250, 247, 240, 0.88);
  backdrop-filter: blur(20px);
}

.account-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.account-brand span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
  font-family: Georgia, serif;
  font-size: 13px;
}

.account-header nav {
  display: flex;
  gap: 32px;
  color: #48514d;
  font-size: 14px;
}

.account-header nav a {
  position: relative;
  padding: 29px 0 25px;
}

.account-header nav a.active::after,
.account-header nav a:hover::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--green);
}

.shop-return {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 750;
}

.shop-return b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
}

.guest-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.65fr);
  gap: clamp(50px, 8vw, 140px);
  align-items: center;
  width: min(1380px, 90vw);
  min-height: calc(100vh - var(--account-header-block));
  min-height: calc(100svh - var(--account-header-block));
  margin: 0 auto;
  padding: 70px 0;
}

.eyebrow,
.panel-heading p,
.dashboard-card-heading p,
.settings-card-heading span {
  margin: 0;
  color: var(--gold);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.2em;
}

.guest-story h1 {
  max-width: 850px;
  margin: 22px 0 28px;
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: clamp(58px, 7vw, 110px);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.guest-story h1 em {
  display: block;
  margin-top: 14px;
  color: var(--green);
  font-size: 0.64em;
  font-weight: 400;
}

.guest-lead {
  max-width: 650px;
  margin: 0;
  color: #59625e;
  font-size: 16px;
  line-height: 1.95;
}

.guest-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 45px;
}

.guest-benefits article {
  min-height: 165px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.62);
}

.guest-benefits article > span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 22px;
}

.guest-benefits strong {
  display: block;
  margin-top: 28px;
  font-size: 14px;
}

.guest-benefits p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.guest-route {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 30px;
  color: var(--muted);
  font-size: 12px;
}

.guest-route a {
  color: var(--green);
  font-weight: 800;
}

.auth-card {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(23, 32, 29, 0.1);
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(233, 215, 174, 0.35), transparent 18rem),
    rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.auth-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}

.auth-mark {
  display: grid;
  width: 58px;
  height: 72px;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: Georgia, serif;
}

.auth-heading p {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.auth-heading h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 34px 0 24px;
  border-bottom: 1px solid var(--line);
}

.auth-tabs button {
  padding: 14px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.auth-tabs button.active {
  border-bottom-color: var(--gold);
  color: var(--ink);
}

.account-form,
.account-form label {
  display: grid;
  gap: 8px;
}

.account-form {
  gap: 16px;
}

.account-form label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.account-form input,
.account-form select,
.account-form textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.account-form input:focus,
.account-form select:focus,
.account-form textarea:focus {
  border-color: rgba(33, 76, 61, 0.48);
  box-shadow: 0 0 0 4px rgba(33, 76, 61, 0.07);
}

.account-form input:disabled {
  color: #7c847f;
  background: rgba(23, 32, 29, 0.045);
}

.account-form select {
  min-height: 48px;
}

.account-form textarea {
  min-height: 88px;
  resize: vertical;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.primary-button {
  border: 1px solid var(--green);
  color: #fff;
  background: var(--green);
}

.primary-button b {
  font-size: 17px;
}

.secondary-button {
  border: 1px solid var(--line);
  background: transparent;
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.auth-card .primary-button {
  width: 100%;
  margin-top: 5px;
}

.auth-note {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.member-shell {
  width: min(1480px, 94vw);
  margin: 0 auto;
  padding: 34px 0 90px;
}

.member-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 0;
  padding: 18px 0 30px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.member-hero-profile {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
}

.member-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 24px;
}

.member-hero .eyebrow {
  color: var(--gold);
}

.member-hero h1 {
  margin: 6px 0 5px;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: 0;
}

.member-hero h1 span {
  color: var(--green);
}

.member-hero p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.member-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-hero-actions a,
.member-hero-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  background: rgba(255, 253, 248, 0.72);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.member-hero-actions a {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.member-command-bar {
  display: grid;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.64);
}

.member-section-select {
  display: none;
}

.member-health {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-health button {
  display: grid;
  min-width: 0;
  min-height: 64px;
  padding: 12px 18px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.member-health button:last-child {
  border-right: 0;
}

.member-health button:hover {
  background: rgba(33, 76, 61, 0.045);
}

.member-health button.needs-action {
  box-shadow: inset 3px 0 0 var(--gold);
}

.member-health span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.member-health strong {
  overflow: hidden;
  margin-top: 5px;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  margin-top: 18px;
}

.member-sidebar {
  align-self: start;
  position: sticky;
  top: 96px;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.member-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.member-identity > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: var(--green);
  font-family: Georgia, serif;
  font-size: 20px;
}

.member-identity div {
  display: grid;
  gap: 4px;
}

.member-identity strong {
  max-width: 145px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-identity small {
  color: var(--gold);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.member-nav {
  display: grid;
  gap: 2px;
}

.member-nav-label {
  margin: 18px 12px 7px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0;
}

.member-nav-label:first-child {
  margin-top: 0;
}

.member-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  color: #525c57;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
}

.member-nav button b {
  color: #929995;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.member-nav button.active {
  color: #fff;
  background: var(--green);
}

.member-nav button.active b {
  color: var(--gold-light);
}

.member-nav button b.has-unread {
  color: #fff;
  background: var(--gold);
}

.sidebar-note {
  margin: 10px;
  padding: 18px;
  border-radius: 18px;
  background: #ece5d8;
}

.sidebar-note span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.sidebar-note p {
  margin: 9px 0 0;
  color: #606965;
  font-size: 11px;
  line-height: 1.7;
}

.member-content {
  min-width: 0;
}

.account-panel {
  display: none;
}

.account-panel.active {
  display: block;
  animation: panel-in 220ms ease;
}

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

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 5px 0 0;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: 0;
}

.panel-heading div > span,
.panel-heading > span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.panel-heading > a,
.panel-heading > button {
  padding-bottom: 5px;
  border: 0;
  border-bottom: 1px solid var(--gold);
  color: var(--green);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.member-priority {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding: 24px 28px;
  border-radius: 8px;
  color: #f7f0df;
  background: var(--green-deep);
}

.member-priority[data-tone="payment"] {
  box-shadow: inset 4px 0 0 var(--gold-light);
}

.member-priority p {
  margin: 0;
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0;
}

.member-priority h3 {
  margin: 6px 0 4px;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  letter-spacing: 0;
}

.member-priority span {
  color: rgba(247, 240, 223, 0.7);
  font-size: 11px;
}

.member-priority > a {
  display: inline-grid;
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 17px;
  place-items: center;
  border-radius: 6px;
  color: #121713;
  background: var(--gold-light);
  font-size: 11px;
  font-weight: 850;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.overview-stats button {
  display: grid;
  min-height: 96px;
  padding: 14px 18px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.overview-stats button:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
  background: rgba(255, 253, 248, 0.72);
}

.overview-stats button:last-child {
  border-right: 0;
}

.overview-stats span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.overview-stats strong {
  margin-top: 5px;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 400;
}

.overview-stats small {
  margin-top: 2px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 16px;
  margin-top: 16px;
}

.dashboard-card {
  min-height: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
}

.pending-card,
.notification-preview-card {
  grid-column: 1 / -1;
}

.dashboard-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.dashboard-card-heading h3,
.settings-card-heading h3 {
  margin: 6px 0 0;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0;
}

.dashboard-card-heading > span {
  display: grid;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 850;
}

.dashboard-card-heading > button,
.dashboard-card-heading > a,
.preference-actions > button,
.preference-actions > a {
  border: 0;
  color: var(--green);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.preference-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.preference-actions > a,
.preference-actions > button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(33, 76, 61, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
}

.preference-actions > button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.dashboard-list {
  display: grid;
}

.preference-card {
  min-height: 0;
  background: rgba(255, 253, 248, 0.84);
}

.preference-summary {
  max-width: 760px;
  margin: 18px 0 0;
  color: #43524c;
  font-size: 13px;
  line-height: 1.7;
}

.preference-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.preference-tags span {
  padding: 8px 11px;
  border: 1px solid rgba(33, 76, 61, 0.12);
  border-radius: 999px;
  color: var(--green);
  background: rgba(33, 76, 61, 0.055);
  font-size: 10px;
  font-weight: 850;
}

.notification-preview-list,
.notification-list {
  display: grid;
}

.notification-preview-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 18px;
}

.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  min-height: 116px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.notification-item.compact {
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 145px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.notification-item.compact > button {
  grid-column: 2;
  justify-self: start;
}

.notification-dot {
  width: 9px;
  height: 9px;
  border: 2px solid #fbf8f1;
  border-radius: 50%;
  background: #c8cac6;
  box-shadow: 0 0 0 1px rgba(23, 32, 29, 0.12);
}

.notification-item.unread .notification-dot {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(167, 123, 60, 0.1);
}

.notification-copy {
  min-width: 0;
}

.notification-copy > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.notification-copy > div span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.notification-copy time {
  color: var(--muted);
  font-size: 8px;
}

.notification-copy strong {
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
}

.notification-copy p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.notification-item > button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--green);
  background: rgba(33, 76, 61, 0.04);
  cursor: pointer;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.notification-item > button:disabled,
#readAllNotifications:disabled {
  cursor: default;
  opacity: 0.48;
}

.notification-loading {
  min-height: 280px;
}

.compact-empty {
  grid-column: 1 / -1;
  min-height: 150px;
}

.pending-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.pending-row:last-child {
  border-bottom: 0;
}

.pending-row div {
  min-width: 0;
}

.pending-row strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pending-row span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.small-action,
.danger-action {
  min-height: 44px;
  padding: 9px 11px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 850;
}

.small-action {
  border: 1px solid var(--green);
  color: #fff;
  background: var(--green);
}

.small-action:disabled {
  cursor: progress;
  opacity: 0.68;
}

.danger-action {
  border: 1px solid rgba(154, 73, 63, 0.25);
  color: var(--danger);
  background: rgba(154, 73, 63, 0.04);
}

.recent-favorites {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 18px;
}

.recent-favorite {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.recent-favorite-copy {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.recent-favorite-media {
  display: grid;
  height: 102px;
  place-items: center;
  overflow: hidden;
  color: var(--gold-light);
  background: #f0ede6;
  font-family: Georgia, serif;
  font-size: 22px;
}

.recent-favorite-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.recent-favorite strong {
  display: block;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-favorite span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.recent-favorite-copy .favorite-cart-status,
.favorite-card-copy .favorite-cart-status {
  display: block;
  min-height: 16px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
}

.recent-favorite-copy button {
  min-height: 40px;
  margin-top: 3px;
  padding: 0 8px;
  border: 1px solid var(--green);
  border-radius: 6px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  font-size: 9px;
  font-weight: 850;
}

.recent-favorite-copy button:disabled {
  border-color: var(--line);
  color: var(--muted);
  background: #f2f0ea;
  cursor: not-allowed;
}

.member-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.member-routes a {
  min-height: 175px;
  padding: 22px;
  border-radius: 22px;
  color: #f6efdf;
  background:
    radial-gradient(circle at 100% 0%, rgba(233, 215, 174, 0.18), transparent 14rem),
    var(--green-deep);
}

.member-routes span {
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.member-routes strong {
  display: block;
  margin-top: 35px;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 23px;
  font-weight: 400;
}

.member-routes p {
  margin: 8px 0 0;
  color: rgba(246, 239, 223, 0.6);
  font-size: 11px;
  line-height: 1.6;
}

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

.favorite-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
}

.favorite-media {
  display: grid;
  height: 210px;
  place-items: center;
  overflow: hidden;
  color: var(--gold-light);
  background: #f0ede6;
  font-family: Georgia, serif;
  font-size: 38px;
}

.favorite-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.favorite-card-copy {
  padding: 18px;
}

.favorite-card-copy > span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.favorite-card h3 {
  min-height: 42px;
  margin: 8px 0 6px;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.15;
}

.favorite-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.favorite-price strong {
  font-size: 15px;
}

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

.favorite-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 15px;
}

.favorite-actions button,
.favorite-actions a {
  display: grid;
  min-height: 42px;
  padding: 0 10px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.favorite-actions a {
  grid-column: 1 / -1;
  color: #fff;
  background: var(--green);
}

.favorite-actions .favorite-cart-action {
  grid-column: 1 / -1;
  border-color: #c89d37;
  color: #17170f;
  background: #e5be62;
}

.favorite-actions .favorite-remove-action {
  grid-column: 1 / -1;
  color: var(--danger);
}

.favorite-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.recent-favorite-copy button:focus-visible,
.favorite-actions button:focus-visible,
.favorite-actions a:focus-visible {
  outline: 3px solid rgba(47, 92, 126, 0.42);
  outline-offset: 2px;
}

.record-list {
  display: grid;
  gap: 12px;
}

.record-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 120px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.8);
}

.record-card-main {
  min-width: 0;
}

.record-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.record-card-topline strong {
  font-size: 14px;
}

.status-badge {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(33, 76, 61, 0.08);
  font-size: 9px;
  font-weight: 850;
}

.status-badge.pending_payment {
  color: #805c26;
  background: rgba(167, 123, 60, 0.12);
}

.status-badge.payment_review {
  color: #805c26;
  background: rgba(167, 123, 60, 0.12);
}

.status-badge.cancelled,
.status-badge.expired,
.status-badge.payment_failed {
  color: var(--danger);
  background: rgba(154, 73, 63, 0.08);
}

.status-badge.refunded {
  color: #5f6575;
  background: rgba(95, 101, 117, 0.12);
}

.record-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.record-card aside {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.record-card aside > strong {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 400;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 7px;
}

.record-actions a,
.record-actions button {
  display: inline-grid;
  min-height: 36px;
  padding: 0 11px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 850;
}

.record-actions .detail-action {
  color: var(--green);
  background: rgba(33, 76, 61, 0.04);
}

.record-actions .small-action {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.address-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: start;
}

.support-form {
  position: sticky;
  top: 100px;
}

.support-form-note {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.support-request-list {
  display: grid;
  gap: 12px;
}

.support-request-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.8);
}

.support-request-card.waiting_customer {
  border-color: rgba(167, 123, 60, 0.38);
}

.support-request-card.completed {
  background: rgba(33, 76, 61, 0.045);
}

.support-request-card.unable_to_process {
  border-color: rgba(154, 73, 63, 0.22);
}

.support-request-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
}

.support-request-heading span,
.support-request-heading strong {
  display: block;
}

.support-request-heading span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.support-request-heading strong {
  margin-top: 7px;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 21px;
  font-weight: 400;
}

.support-request-heading b {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(33, 76, 61, 0.08);
  font-size: 9px;
  white-space: nowrap;
}

.support-request-card.waiting_customer .support-request-heading b {
  color: #805c26;
  background: rgba(167, 123, 60, 0.12);
}

.support-request-card.unable_to_process .support-request-heading b {
  color: var(--danger);
  background: rgba(154, 73, 63, 0.08);
}

.support-request-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.support-request-card dl div {
  min-width: 0;
  padding: 13px 10px 13px 0;
}

.support-request-card dt {
  color: var(--muted);
  font-size: 8px;
}

.support-request-card dd {
  overflow: hidden;
  margin: 6px 0 0;
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-request-card > p,
.support-request-card aside p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.support-request-card aside {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(33, 76, 61, 0.055);
}

.support-request-card aside span {
  color: var(--green);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.support-request-card aside p {
  margin-top: 7px;
}

.support-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.support-request-actions button,
.support-request-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--green);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 850;
}

.support-request-actions a {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.settings-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.8);
}

.settings-card-heading {
  margin-bottom: 8px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

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

.check-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.check-row input {
  width: auto;
}

.form-actions {
  display: flex;
  gap: 9px;
}

.form-actions .primary-button {
  flex: 1;
}

.address-list {
  display: grid;
  gap: 12px;
}

.address-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.8);
}

.address-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}

.address-card-heading strong {
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 20px;
  font-weight: 400;
}

.default-badge {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(33, 76, 61, 0.09);
  font-size: 9px;
  font-weight: 850;
}

.address-card p {
  margin: 13px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.address-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.settings-security-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.empty-state {
  display: grid;
  min-height: 220px;
  padding: 35px;
  place-items: center;
  border: 1px dashed rgba(23, 32, 29, 0.18);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.45);
  text-align: center;
}

.empty-state div {
  max-width: 420px;
}

.empty-state strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 25px;
  font-weight: 400;
}

.empty-state p {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.8;
}

.empty-state a {
  display: inline-block;
  margin-top: 18px;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
}

.dashboard-card .empty-state {
  min-height: 160px;
  padding: 22px;
  border: 0;
  background: transparent;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(8, 15, 13, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.payment-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 41;
  width: min(430px, calc(100% - 28px));
  padding: 32px;
  border-radius: 28px;
  background: #fbf8f1;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -46%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.payment-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

.payment-modal > p:first-of-type {
  margin: 0;
  color: var(--gold);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.payment-modal h2 {
  margin: 8px 0 6px;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 35px;
  font-weight: 400;
}

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

.payment-modal > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 18px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

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

.payment-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.payment-modal .primary-button {
  width: 100%;
}

.detail-overlay {
  z-index: 42;
  background: rgba(8, 15, 13, 0.52);
  backdrop-filter: blur(5px);
}

.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 43;
  width: min(650px, calc(100% - 28px));
  overflow-y: auto;
  padding: 46px;
  border-left: 1px solid rgba(23, 32, 29, 0.1);
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(233, 215, 174, 0.38), transparent 24rem),
    #fbf8f1;
  box-shadow: -28px 0 85px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.detail-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.detail-heading {
  padding: 12px 56px 28px 0;
  border-bottom: 1px solid var(--line);
}

.detail-heading p,
.detail-section-heading span {
  margin: 0;
  color: var(--gold);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.detail-heading h2 {
  max-width: 520px;
  margin: 9px 0 7px;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(31px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.12;
}

.detail-heading > span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.detail-body {
  padding: 26px 0 40px;
}

.detail-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
}

.record-subnote {
  margin-top: 6px !important;
  color: var(--gold) !important;
  font-size: 10px !important;
  font-weight: 700;
}

.break-timeline-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.break-timeline-mini li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(33, 76, 61, 0.08);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  font-size: 8px;
  font-weight: 800;
}

.break-timeline-mini i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9d5cb;
}

.break-timeline-mini li.done {
  color: var(--green);
  border-color: rgba(33, 76, 61, 0.15);
}

.break-timeline-mini li.done i,
.break-timeline-mini li.current i {
  background: var(--green);
}

.break-timeline-mini li.current {
  color: #805c26;
  border-color: rgba(167, 123, 60, 0.22);
  background: rgba(167, 123, 60, 0.08);
}

.break-timeline-mini li.halted {
  color: var(--danger);
  border-color: rgba(154, 73, 63, 0.14);
}

.detail-summary div {
  min-width: 0;
  padding: 17px;
  border-right: 1px solid var(--line);
}

.detail-summary div:last-child {
  border-right: 0;
}

.detail-summary span,
.detail-summary strong {
  display: block;
}

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

.detail-summary strong {
  overflow: hidden;
  margin-top: 8px;
  color: var(--green);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 29px 0 34px;
  padding: 0;
  list-style: none;
}

.detail-progress li {
  position: relative;
  min-width: 0;
  padding-right: 8px;
}

.detail-progress li::before {
  position: absolute;
  top: 7px;
  right: 0;
  left: 15px;
  height: 1px;
  background: var(--line);
  content: "";
}

.detail-progress li:last-child::before {
  display: none;
}

.detail-progress i {
  position: relative;
  z-index: 1;
  display: block;
  width: 15px;
  height: 15px;
  border: 4px solid #fbf8f1;
  border-radius: 50%;
  background: #d7d5cf;
  box-shadow: 0 0 0 1px var(--line);
}

.detail-progress li.complete i {
  background: var(--green);
}

.detail-progress li.complete::before {
  background: rgba(33, 76, 61, 0.45);
}

.detail-progress li.current i {
  box-shadow: 0 0 0 4px rgba(33, 76, 61, 0.1);
}

.detail-progress div {
  margin-top: 9px;
}

.detail-progress strong,
.detail-progress span {
  display: block;
}

.detail-progress strong {
  font-size: 9px;
}

.detail-progress span {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-progress.halted li:not(:first-child) {
  opacity: 0.38;
}

.break-timeline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.break-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
}

.break-timeline li::before {
  position: absolute;
  top: 36px;
  bottom: -12px;
  left: 24px;
  width: 1px;
  background: var(--line);
  content: "";
}

.break-timeline li:last-child::before {
  display: none;
}

.break-timeline i {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  margin-top: 4px;
  border: 4px solid #fbf8f1;
  border-radius: 50%;
  background: #d9d5cb;
  box-shadow: 0 0 0 1px var(--line);
}

.break-timeline li.done i,
.break-timeline li.current i {
  background: var(--green);
}

.break-timeline li.done::before {
  background: rgba(33, 76, 61, 0.32);
}

.break-timeline li.current {
  border-color: rgba(167, 123, 60, 0.32);
  background: linear-gradient(135deg, rgba(167, 123, 60, 0.12), rgba(255, 255, 255, 0.7));
}

.break-timeline li.current i {
  box-shadow: 0 0 0 5px rgba(167, 123, 60, 0.12);
}

.break-timeline li.halted {
  opacity: 0.62;
}

.break-timeline span,
.break-timeline strong,
.break-timeline p,
.break-timeline time {
  display: block;
}

.break-timeline span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.break-timeline strong {
  margin-top: 5px;
  color: var(--green);
  font-size: 14px;
}

.break-timeline p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.break-timeline time {
  margin-top: 8px;
  color: #9c968b;
  font-size: 9px;
}

.detail-section {
  margin-top: 30px;
}

.detail-section + .detail-section {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.detail-section-heading {
  margin-bottom: 15px;
}

.detail-section-heading h3 {
  margin: 6px 0 0;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 25px;
  font-weight: 400;
}

.detail-item-list {
  border-top: 1px solid var(--line);
}

.detail-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.detail-item strong,
.detail-item span {
  display: block;
}

.detail-item strong {
  font-size: 12px;
}

.detail-item span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

.detail-item b {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 400;
}

.address-snapshot {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
}

.address-snapshot strong,
.address-snapshot span {
  display: block;
}

.address-snapshot strong {
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 19px;
  font-weight: 400;
}

.address-snapshot span,
.address-snapshot p,
.shipping-card p,
.shipping-card small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.address-snapshot span {
  margin-top: 6px;
}

.address-snapshot p {
  margin: 7px 0 0;
}

.shipping-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 10px;
  padding: 19px;
  border-radius: 16px;
  color: #fff;
  background: var(--green-deep);
}

.shipping-card > div > span,
.shipping-card > div > strong,
.shipping-card > div > small {
  display: block;
}

.shipping-card > div > span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.shipping-card > div > strong {
  margin-top: 8px;
  font-size: 14px;
}

.shipping-card p,
.shipping-card small {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.shipping-card button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 850;
}

.break-stage-card {
  margin: 26px 0 32px;
  padding: 28px;
  border-radius: 23px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(233, 215, 174, 0.18), transparent 16rem),
    var(--green-deep);
}

.break-stage-card > span {
  display: inline-block;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
}

.break-stage-card.live > span {
  color: #fff4dd;
  background: rgba(167, 123, 60, 0.32);
}

.break-stage-card h3 {
  margin: 16px 0 7px;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 30px;
  font-weight: 400;
}

.break-stage-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
}

.break-stage-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.break-stage-card a {
  display: inline-grid;
  min-height: 39px;
  padding: 0 13px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  font-size: 9px;
  font-weight: 850;
}

.break-stage-card a:first-child {
  color: var(--green-deep);
  background: #f8f1e3;
}

.detail-definition {
  margin: 0;
  border-top: 1px solid var(--line);
}

.detail-definition div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.detail-definition dt {
  color: var(--muted);
  font-size: 9px;
}

.detail-definition dd {
  margin: 0;
  font-size: 11px;
  font-weight: 750;
}

.result-summary,
.detail-muted {
  margin: 15px 0 0;
  padding: 16px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(33, 76, 61, 0.05);
  font-size: 10px;
  line-height: 1.8;
}

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

.break-result-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.break-result-list article > span {
  min-width: 54px;
  padding: 7px;
  border-radius: 9px;
  color: var(--green);
  background: rgba(33, 76, 61, 0.08);
  font-size: 8px;
  font-weight: 850;
  text-align: center;
}

.break-result-list strong {
  font-size: 11px;
}

.break-result-list p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.detail-footer {
  position: sticky;
  bottom: -40px;
  margin: 35px -46px -40px;
  padding: 18px 46px;
  border-top: 1px solid var(--line);
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(14px);
}

.detail-footer .small-action {
  width: 100%;
  min-height: 48px;
}

.detail-loading,
.detail-empty {
  display: grid;
  min-height: 50vh;
  place-items: center;
  align-content: center;
  text-align: center;
}

.detail-loading span {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(33, 76, 61, 0.14);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: detail-spin 700ms linear infinite;
}

.detail-loading p,
.detail-empty p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.detail-empty > span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
  place-items: center;
  border-radius: 50%;
  color: var(--danger);
  background: rgba(154, 73, 63, 0.08);
  font-family: Georgia, serif;
  font-size: 23px;
}

.detail-empty strong {
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 24px;
  font-weight: 400;
}

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

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  max-width: min(390px, calc(100% - 30px));
  padding: 14px 18px;
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: 180ms ease;
}

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

@media (max-width: 1100px) {
  .guest-shell {
    grid-template-columns: 1fr;
    width: min(900px, 90vw);
  }

  .auth-card {
    width: min(560px, 100%);
  }

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

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

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

  .address-layout {
    grid-template-columns: 1fr;
  }

  .support-layout {
    grid-template-columns: 1fr;
  }

  .support-form {
    position: static;
  }
}

@media (min-width: 821px) and (max-width: 920px) {
  .member-sidebar {
    top: 126px;
  }
}

@media (max-width: 920px) {
  :root {
    --account-header-block: 118px;
  }
}

@media (min-width: 821px) and (max-width: 980px) {
  .overview-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .notification-preview-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .account-form input,
  .account-form select,
  .account-form textarea,
  .member-section-select select {
    font-size: 16px;
  }

  .member-command-bar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .account-header {
    grid-template-columns: 1fr auto;
    min-height: 68px;
    padding: 0 5vw;
  }

  .account-header nav {
    display: none;
  }

  .shop-return span {
    display: none;
  }

  .guest-shell {
    min-height: 0;
    padding: 55px 0 70px;
  }

  .guest-story h1 {
    font-size: clamp(52px, 14vw, 80px);
  }

  .guest-benefits {
    grid-template-columns: 1fr;
  }

  .guest-benefits article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    min-height: 0;
  }

  .guest-benefits strong {
    margin-top: 0;
  }

  .member-shell {
    width: min(100% - 28px, 720px);
    padding: 14px 0 70px;
  }

  .member-hero {
    display: grid;
    min-height: 0;
    gap: 18px;
    padding: 14px 0 20px;
  }

  .member-avatar {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .member-hero h1 {
    font-size: 28px;
  }

  .member-hero-actions {
    display: flex;
    width: min(100%, 480px);
    flex-wrap: nowrap;
  }

  .member-hero-actions a {
    flex: 1 1 0;
  }

  .member-hero-actions #accountRefreshButton {
    flex: 1.15 1 0;
  }

  .member-hero-actions #logoutButton {
    flex: 0 0 auto;
  }

  .member-layout {
    display: block;
    margin-top: 18px;
  }

  .member-sidebar {
    display: none;
  }

  .member-command-bar {
    position: sticky;
    top: 111px;
    z-index: 20;
    margin: 0 -14px;
    padding: 8px 14px;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: rgba(247, 244, 237, 0.94);
    backdrop-filter: blur(14px);
  }

  .member-section-select {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
  }

  .member-section-select > span {
    color: var(--gold);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.08em;
  }

  .member-section-select select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    background: rgba(255, 253, 248, 0.96);
    font: inherit;
    font-size: 12px;
    font-weight: 750;
  }

  .member-health {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 253, 248, 0.7);
  }

  .member-health button {
    min-height: 54px;
    padding: 9px 11px;
  }

  .member-content {
    margin-top: 0;
  }

  .panel-heading {
    display: block;
    min-height: 0;
  }

  .panel-heading > a,
  .panel-heading > button {
    display: inline-block;
    margin-top: 14px;
  }

  .overview-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .member-priority {
    min-height: 0;
    padding: 20px;
  }

  .notification-preview-list {
    grid-template-columns: 1fr;
  }

  .member-routes {
    grid-template-columns: 1fr;
  }

  .member-routes a {
    min-height: 145px;
  }

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

@media (max-width: 560px) {
  :root {
    --account-header-block: 110px;
  }

  .account-brand strong {
    font-size: 13px;
  }

  .guest-shell {
    width: min(100% - 28px, 520px);
  }

  .guest-route {
    display: grid;
  }

  .auth-card {
    padding: 25px 20px;
    border-radius: 25px;
  }

  .member-hero h1 {
    font-size: 26px;
  }

  .member-hero-actions {
    gap: 8px;
  }

  .member-hero-actions a,
  .member-hero-actions button {
    min-height: 42px;
    padding: 0 13px;
  }

  .member-command-bar {
    position: static;
  }

  .member-health button {
    min-height: 50px;
    padding: 8px;
  }

  .member-health span {
    font-size: 8px;
    letter-spacing: 0;
  }

  .member-health strong {
    font-size: 10px;
  }

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

  .overview-stats button {
    min-height: 86px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }

  .overview-stats button:nth-child(2) {
    border-right: 0;
  }

  .overview-stats button:nth-child(n + 3) {
    border-bottom: 0;
  }

  .overview-stats strong {
    font-size: 27px;
  }

  .member-priority {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    gap: 16px;
  }

  .member-priority > a {
    width: 100%;
  }

  .overview-heading {
    display: flex;
    align-items: end;
  }

  .overview-heading > span {
    margin-top: 0;
  }

  .dashboard-card {
    padding: 19px;
  }

  .recent-favorites,
  .favorite-grid {
    grid-template-columns: 1fr;
  }

  .favorite-media {
    height: 250px;
  }

  .recent-favorite-copy button,
  .favorite-actions button,
  .favorite-actions a {
    min-height: 44px;
  }

  .record-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 19px;
  }

  .record-card aside {
    justify-items: start;
  }

  .record-actions {
    justify-content: start;
  }

  .notification-item,
  .notification-item.compact {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 0;
    padding: 18px 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: transparent;
  }

  .notification-item > button,
  .notification-item.compact > button {
    grid-column: 2;
    justify-self: start;
  }

  .notification-copy > div {
    display: grid;
    justify-content: start;
  }

  .support-request-card dl {
    grid-template-columns: 1fr;
  }

  .support-request-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .support-request-card dl div:last-child {
    border-bottom: 0;
  }

  .support-request-card dd {
    margin-top: 0;
  }

  .detail-drawer {
    width: 100%;
    padding: 30px 22px;
  }

  .detail-heading {
    padding-top: 25px;
  }

  .detail-summary {
    grid-template-columns: 1fr;
  }

  .detail-summary div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-summary div:last-child {
    border-bottom: 0;
  }

  .detail-summary strong {
    margin-top: 0;
  }

  .detail-progress {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 2px;
  }

  .detail-progress li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 11px;
    min-height: 54px;
  }

  .detail-progress li::before {
    top: 15px;
    bottom: 0;
    left: 7px;
    width: 1px;
    height: auto;
  }

  .detail-progress div {
    margin-top: 0;
  }

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

  .shipping-card button {
    justify-self: start;
  }

  .detail-footer {
    bottom: -30px;
    margin: 30px -22px -30px;
    padding: 15px 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    display: grid;
  }

  .settings-card {
    padding: 20px;
  }

  .pending-row {
    grid-template-columns: 1fr;
  }

  .pending-row .small-action {
    justify-self: start;
  }
}

@media (max-width: 380px) {
  :root {
    --account-header-block: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
