@font-face {
  font-family: Jost;
  src: url('/fonts/jost-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #533619;
  --deep: #4a2b13;
  --muted: #6f5944;
  --gold: #ad7738;
  --gold-dark: #815221;
  --cream: #fffaf3;
  --line: #e7d9c8;
  --shadow: 0 5px 13px #64432417, 0 2px 3px #70532f0c;
  --display: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  --numeric: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --amount-face: Jost, var(--numeric);
  font: 16px/1.5 "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: #faf6ef; }
body { min-height: 100dvh; margin: 0; isolation: isolate; }
body::before {
  content: ""; position: fixed; z-index: -1; inset: 0; pointer-events: none;
  background: url('/assets/webp/site-background.webp') center / cover no-repeat;
  opacity: .57;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .64; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #a56629; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--deep); font-family: var(--display); line-height: 1.22; font-weight: 900; }
[hidden] { display: none !important; }
.icon { width: 1.22em; height: 1.22em; flex: 0 0 auto; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.loading { text-align: center; padding: 4rem 1rem; }
.muted, .field-note { color: var(--muted); }
.muted { font-size: .93rem; }
.field-note { font-size: .83rem; }
.panel {
  border: 1px solid #fffdf8; border-radius: 21px;
  background: linear-gradient(147deg,#fffdf9, #fcf5ec); box-shadow: var(--shadow), inset 0 1px #fff;
}
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 44px; padding: .64rem 1.15rem; border-radius: 30px; border: 1px solid transparent;
  font-weight: 800; text-align: center; line-height: 1.15; transition: filter .15s, transform .15s;
}
.button:hover { filter: brightness(1.04); }
.button:active { transform: translateY(1px); }
.full { width: 100%; }
.primary-button {
  color: #fffdf8; border-color: #a36c35;
  background: linear-gradient(162deg,#c49656,#ad7638 50%,#8a511e 100%);
  text-shadow: 0 1px 1px #71451d; box-shadow: inset 0 1px #fff6d875, 0 3px 6px #6642212b;
}
.pale-button, .light-button { color: var(--deep); background: linear-gradient(#fffdf7,#f5e8d7); border-color: #e5d5bf; }
.danger-button { color: #922e28; background: #fff1ed; border-color: #efc7ba; }
.icon-button {
  display: inline-grid; place-items: center; min-width: 43px; min-height: 43px; border-radius: 50%;
  border: 1px solid #fff; color: var(--gold-dark); background: linear-gradient(#fffdfa,#f8ecdc); box-shadow: 0 3px 7px #654b2424;
}
.text-link { display: inline-flex; align-items: center; gap: .28rem; color: var(--gold-dark); font-weight: 800; font-size: .88rem; border: 0; background: transparent; padding: 0; }
.text-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .82rem; }
.section-head :is(h1,h2) { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.section-head h1 { font-size: clamp(1.55rem,4vw,2rem); }
.section-head h2 { font-size: clamp(1.15rem,3.4vw,1.5rem); }
.section-head :is(h1,h2) .icon { color: var(--gold-dark); }
.section-head h2 img { width: 39px; height: 39px; object-fit: contain; }
.member-page {
  --member-gutter: clamp(1rem, 4.5vw, 2rem);
  --member-gap: clamp(.9rem, 3.8vw, 1.35rem);
  --member-width: 1040px;
  --member-border: #e9e0d4;
  --member-muted: #6d6052;
}
.member-header { padding-top: env(safe-area-inset-top); background: #fdfaf5ee; border-bottom: 1px solid var(--member-border); }
.header-inner, .member-main, .member-footer { width: min(calc(100% - 2 * var(--member-gutter)), var(--member-width)); margin-inline: auto; }
.header-inner { display: flex; align-items: center; min-height: 62px; gap: .75rem; justify-content: space-between; }
.member-brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.03rem; color: #4f3925; font-weight: 700; white-space: nowrap; }
.member-brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: #f3e7d6; }
.member-brand-mark img { width: 24px; height: 23px; object-fit: contain; }
.desktop-nav { display: flex; gap: .2rem; justify-content: center; flex: 1; }
.header-actions { display: flex; flex-shrink: 0; gap: .15rem; }
.home-level { margin-inline-start: .2rem; }
.member-header .icon-button {
  min-width: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 9px; background: transparent;
  box-shadow: none; color: #6d5136;
}
.member-header .icon-button:hover, .nav-item:hover { background: #f1e8dc; }
.nav-item {
  display: flex; align-items: center; justify-content: center; gap: .42rem; min-height: 38px; border-radius: 8px;
  padding: .35rem .6rem; font-size: .86rem; font-weight: 500; color: #6d5b47; white-space: nowrap;
}
.nav-item.selected { color: #5b3c22; background: #f0e5d5; font-weight: 650; }
.nav-art { width: 24px; height: 24px; object-fit: contain; }
.nav-item[data-art="home"] { --nav-accent: #254f81; --nav-tint: #e5effd; }
.nav-item[data-art="gift"] { --nav-accent: #2b4f84; --nav-tint: #e4edfb; }
.nav-item[data-art="wallet"] { --nav-accent: #2c634b; --nav-tint: #e1f0e7; }
.nav-item[data-art="calendar"] { --nav-accent: #1a6461; --nav-tint: #dcf1ef; }
.nav-item[data-art="user"] { --nav-accent: #624480; --nav-tint: #efe8f8; }
.nav-item[data-art]:is(.selected,:hover) { background: var(--nav-tint); color: var(--nav-accent); }
.member-header .icon, .bottom-nav .icon { stroke-width: 1.65; }
.member-main {
  display: grid; grid-template-columns: minmax(0,1fr); gap: var(--member-gap);
  margin-block: clamp(1.55rem, 4.2vw, 3rem) 0;
}
.member-main.slim { max-width: 730px; }
.home-main { margin-top: clamp(.8rem, 2.5vw, 2rem); }
@media (prefers-reduced-motion: no-preference) {
  .member-route-enter { animation: member-route-enter 230ms cubic-bezier(.22, .75, .3, 1); }
  @keyframes member-route-enter {
    from { opacity: .32; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
.member-footer { padding-block: .8rem .5rem; text-align: center; font-size: .82rem; color: var(--member-muted); }
.bottom-nav { display: none; }
.member-page-title { padding-block: .15rem .18rem; }
.member-page-title h1 {
  color: #402e20; font-family: inherit; font-size: clamp(1.53rem, 4.3vw, 2.35rem);
  line-height: 1.25; font-weight: 700; letter-spacing: .025em;
}
.member-page-title p {
  margin-top: .42rem; color: var(--member-muted); font-size: .875rem; line-height: 1.55; overflow-wrap: anywhere;
}
.member-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .32rem;
  min-height: 40px; padding: .47rem .78rem; border: 1px solid transparent; border-radius: 9px;
  color: #60442e; background: transparent; font-size: .875rem; line-height: 1.18; font-weight: 600; white-space: nowrap;
}
.member-button .icon { stroke-width: 1.65; }
.member-button-primary { color: #fffdf9; background: #7b5939; }
.member-button-primary:hover { background: #68482e; }
.member-button-soft { background: #f1e7da; border-color: #eee0ce; }
.member-button-soft:hover { background: #ebdecb; }
.home-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--member-gap); }
.member-card {
  min-width: 0; padding: clamp(.9rem, 3.7vw, 1.45rem); border: 1px solid var(--member-border); border-radius: 16px;
  background: #fffdf9; box-shadow: 0 2px 6px #5b42220a;
}
.home-balance, .home-score { display: grid; grid-template-rows: auto 1fr auto; justify-items: start; gap: .38rem; }
.home-balance { background: #f2f9f5; border-color: #d6e9dc; }
.home-score { background: #f0f6ff; border-color: #d9e6f6; }
.home-metric-head { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 32px; gap: .25rem; }
.home-metric-head h2, .home-section-head h2 {
  font-family: inherit; font-weight: 650; line-height: 1.35; color: #493623;
}
.home-metric-head h2 { font-size: clamp(.9rem, 3.75vw, 1.03rem); }
.home-metric-head img { width: 36px; height: 34px; flex: 0 0 auto; object-fit: contain; }
.home-metric-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: .12rem .3rem; min-width: 0; color: #5e3e24; }
.home-metric-value strong {
  font: 550 clamp(1.8rem, 7.9vw, 2.9rem)/1.08 var(--amount-face); letter-spacing: -.012em;
  overflow-wrap: anywhere; min-width: 0;
}
.home-metric-value > span { color: #71604d; font-size: .86rem; font-weight: 600; }
.home-balance .home-metric-value { align-self: center; }
.home-balance :is(.home-metric-value,.member-text-link) { color: #235b49; }
.home-score :is(.home-metric-value,.member-text-link) { color: #285781; }
.home-score-display { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .25rem; }
.home-score-display .home-metric-value { flex: 0 0 auto; flex-wrap: nowrap; gap: .24rem; white-space: nowrap; }
.home-score-display .home-metric-value strong { overflow-wrap: normal; }
.gauge { width: min(42%, 102px); min-width: 0; height: auto; flex: 0 1 auto; }
.member-text-link {
  display: inline-flex; align-items: center; gap: .27rem; min-height: 32px; padding: 0; color: #765636;
  background: transparent; border: 0; font-size: .84rem; font-weight: 550; text-align: start; white-space: nowrap;
}
.member-text-link:hover { color: #4f3420; text-decoration: underline; text-underline-offset: .24em; }
.member-text-link .icon { stroke-width: 1.6; }
.benefit-feature {
  position: relative; isolation: isolate; display: flex; align-items: center; overflow: hidden;
  min-height: clamp(185px, 23vw, 256px); padding: clamp(1.15rem, 4vw, 2.65rem);
  border: 1px solid #f0d7dd; border-radius: 18px; background: #faedf0;
}
.benefit-feature-art {
  position: absolute; z-index: -1; inset: 0 0 0 auto; width: 74%; height: 100%;
  object-fit: cover; object-position: right center; mask-image: linear-gradient(to right, transparent, #000 33%);
}
.benefit-feature-copy { width: min(48%, 440px); }
.benefit-feature-copy h1 {
  color: #4d3220; font-family: inherit; font-size: clamp(1.4rem,3.7vw,2.25rem);
  line-height: 1.25; font-weight: 680; letter-spacing: .025em;
}
.benefit-feature-copy p { margin-top: .5rem; color: #655141; font-size: .91rem; line-height: 1.6; text-wrap: pretty; }
.benefit-feature-copy .member-button { margin-top: .95rem; background: #943d55; }
.benefit-feature-copy .member-button:hover { background: #783047; }
.home-tiers {
  background: #fffdf8 url('/assets/webp/home-support-paper.webp') center / cover no-repeat;
  box-shadow: 0 3px 10px #5b422210;
}
.home-section-head h2 { font-size: clamp(1.02rem, 4.2vw, 1.18rem); }
.home-section-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.checkin-progress {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: clamp(.6rem, 2.1vw, 1.12rem);
}
.checkin-progress img {
  width: clamp(44px, 13vw, 72px); height: clamp(44px, 13vw, 72px); object-fit: contain;
}
.home-checkin {
  position: relative; isolation: isolate; display: flex; align-items: center; overflow: hidden;
  min-height: clamp(138px, 22vw, 174px); background: linear-gradient(110deg,#f7fcfa 44%,#d9efe8);
  border-color: #d2e8e1;
}
.home-checkin-art {
  position: absolute; z-index: -1; inset: .2rem .3rem .2rem auto;
  width: min(52%, 430px); height: calc(100% - .4rem); object-fit: contain; object-position: center;
}
.home-checkin-copy { width: min(54%, 340px); }
.home-checkin h2 { font-family: inherit; font-weight: 700; font-size: clamp(1.1rem, 4.5vw, 1.3rem); }
.home-checkin p, .checkin-progress p, .checkin-footer p {
  margin-top: .18rem; color: var(--member-muted); font-size: .84rem; line-height: 1.5;
}
.home-checkin .checkin-bonus { color: #396659; font-weight: 650; font-size: .82rem; }
.checkin-bonus strong { color: #1b5e52; font: 700 1.08rem/1.2 var(--amount-face); white-space: nowrap; }
.home-checkin-copy .member-button { min-height: 36px; margin-top: .44rem; padding-inline: .7rem; }
.home-checkin-copy .member-button-soft { color: #225c51; background: #e1f1e9; border-color: #cfe7da; }
.home-checkin-copy .member-button-soft:hover { background: #d3e9df; }
.home-checkin-copy .member-button-primary, .checkin-panel .member-button-primary { background: #226a60; }
.home-checkin-copy .member-button-primary:hover, .checkin-panel .member-button-primary:hover { background: #19564e; }
.checkin-title strong, .checkin-progress p b { color: #8d501e; font-weight: 750; }
.checkin-score {
  display: grid; justify-items: end; gap: .2rem; padding: .45rem .66rem;
  border-radius: 10px; background: #e8f2ed; color: #1b5e52;
}
.checkin-score > span { font-size: .72rem; font-weight: 650; }
.checkin-score strong { font: 600 clamp(1.6rem, 7vw, 2.2rem)/1 var(--amount-face); white-space: nowrap; }
.checkin-score small { font: 650 .76rem/1.2 system-ui, sans-serif; }
.checkin-panel { border-color: #d7e8e1; background: #fbfefc; }
.checkin-panel progress { width: 100%; height: .7rem; margin-top: 1rem; accent-color: #428773; }
.checkin-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(.26rem, 1.25vw, .56rem);
  list-style: none; margin: .65rem 0 1rem; padding: 0;
}
.checkin-day {
  position: relative; display: flex; justify-content: center; align-items: center;
  min-width: 0; min-height: clamp(37px, 10vw, 53px); border-radius: 8px; border: 1px solid #ece3d7;
  color: var(--member-muted); background: #faf7f1; font: 500 .94rem/1 var(--amount-face);
}
.checkin-day.checked { background: #e8f2ed; border-color: #c9dfd3; color: #1b5e52; font-weight: 650; }
.checkin-day.next { background: #f8ebd2; border-color: #bd935b; color: #774617; font-weight: 750; }
.checkin-day.checked .checkin-day-number { position: absolute; inset: .3rem auto auto .34rem; font-size: .78rem; }
.checkin-stamp {
  position: absolute; inset: auto .13rem .13rem auto; width: clamp(22px, 6.6vw, 34px);
  aspect-ratio: 1; object-fit: contain;
}
.checkin-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.checkin-rules p:first-child { color: #62452c; }
.checkin-rules strong { color: #8d501e; font-weight: 750; }
.checkin-status { display: inline-flex; align-items: center; gap: .27rem; color: #65502f; font-size: .88rem; font-weight: 650; }
.home-activity { --activity-row-height: 3.45rem; }
.home-activity h2 { display: flex; align-items: center; gap: .35rem; }
.home-activity h2 img { width: 28px; height: 28px; object-fit: contain; }
.activity-window { overflow-y: auto; margin-top: .34rem; height: calc(3 * var(--activity-row-height)); }
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-repeat { display: none; }
.activity-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem;
  height: var(--activity-row-height); padding: .18rem .16rem; border-bottom: 1px solid var(--member-border);
}
.activity-row[data-kind="reward"] { --activity-accent: #a52b40; --activity-tint: #fae3e7; }
.activity-row[data-kind="checkin"] { --activity-accent: #795300; --activity-tint: #ffedac; }
.activity-row[data-kind="level"] { --activity-accent: #205da8; --activity-tint: #e2edff; }
.activity-row:last-child { border-bottom-color: transparent; }
.activity-avatar { width: 34px; height: 34px; object-fit: contain; border-radius: 50%; background: #f0e3d0; }
.activity-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: .03rem .32rem; min-width: 0; }
.activity-copy strong { color: #483424; font-size: .9rem; font-weight: 750; white-space: nowrap; }
.activity-copy p { color: #654d36; font-size: .8rem; line-height: 1.42; }
.activity-highlight {
  padding: .09em .24em; border-radius: 4px; color: var(--activity-accent); background: var(--activity-tint);
  font-weight: 750; white-space: nowrap;
}
.activity-row[data-kind="reward"] .activity-highlight { font-family: var(--amount-face); font-size: 1.05em; font-weight: 700; }
.activity-copy .icon { color: var(--activity-accent); width: .93rem; height: .93rem; }
.activity-time { color: var(--member-muted); font-size: .75rem; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .activity-window { overflow: clip; }
  .activity-repeat { display: block; }
  .activity-track { animation: activity-scroll 36s linear infinite; }
  @keyframes activity-scroll {
    to { transform: translateY(-50%); }
  }
}
.announcements-empty { display: flex; align-items: center; gap: .7rem; padding: .27rem 0; color: var(--member-muted); }
.announcements-empty img { width: 61px; height: 55px; flex-shrink: 0; object-fit: contain; }
.announcements-empty p { font-size: .88rem; }
.tier-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .45rem; margin-top: .6rem; }
.tier {
  display: grid; justify-items: center; align-content: start; gap: .38rem; padding: .62rem .28rem; min-width: 0; text-align: center;
  border: 1px solid transparent; border-radius: 10px; background: transparent; color: #5e472f;
}
.tier:hover { background: #f7efe4; }
.tier > span { font-size: .88rem; font-weight: 600; }
.tier small { color: var(--member-muted); font: 500 .84rem/1.25 var(--amount-face); overflow-wrap: anywhere; }
.tier-current { border-color: #e8dac6; background: #f5ecdf; }
.tier-emblem {
  width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center; flex: 0 0 auto;
  color: #92612d; border: 1px solid #e2c28e; background: linear-gradient(#fffaf0,#f5e3bf); box-shadow: inset 0 0 0 2px #fff7e9;
}
.tier-emblem.silver { color: #746254; background: linear-gradient(#fffbf4,#e9e0d4); border-color: #cfc3b6; }
.tier-emblem.vip { color: #765027; background: linear-gradient(#fff1d5,#efd095); border-color: #ba914e; }
.tier-art { width: 70px; height: 70px; object-fit: contain; }
.notices { display: grid; }
.notice-row { display: flex; align-items: center; gap: .6rem; padding: .5rem .15rem; text-align: left; color: var(--ink); min-height: 52px; border: 0; border-top: 1px solid #eee0d0; background: transparent; }
.notice-row strong, .notice-row small { display: block; overflow-wrap: anywhere; }
.notice-row small { color: var(--muted); }
.notice-icon { padding: .44em; border-radius: 50%; color: var(--gold-dark); background: #f5e7d3; }
.unread { margin-left: auto; width: .52rem; height: .52rem; border-radius: 50%; background: #b57339; flex-shrink: 0; }
.empty-state { display: grid; justify-items: center; gap: .25rem; padding: 1.1rem .5rem; border: 1px dashed #ead9c5; border-radius: 12px; color: var(--muted); text-align: center; }
.empty-state .icon { width: 1.35rem; height: 1.35rem; color: #a2774b; }
.empty-state p { font-size: .85rem; }
.page-panel { width: min(100%,730px); min-width: 0; margin-inline: auto; padding: clamp(.95rem,4vw,2rem); }
.page-panel > .button { margin-top: 1rem; }
.offer-intro h1 { color: #243a60; }
.offer-options, .member-rules { border-color: #dce4ee; background: #fffefd; }
.offer-availability { color: #626f81; font-size: .8rem; white-space: nowrap; }
.offer-list { margin-top: .75rem; }
.offer-tile {
  display: flex; align-items: center; justify-content: space-between; gap: .7rem;
  width: 100%; min-height: 52px; padding: .6rem .14rem;
  border: 0; border-top: 1px solid #e5eaf1; background: transparent; color: #253c60;
}
.offer-tile:hover { background: #f4f7fb; }
.offer-tile strong { font: 650 1.16rem/1.25 var(--amount-face); }
.offer-eligibility { color: #516680; font-size: .83rem; }
.legal-copy { color: #4f453a; font-size: .93rem; line-height: 1.7; }
.legal-version { color: #6d6052; font-size: .81rem; }
.legal-copy section { margin-top: 1.05rem; }
.legal-copy :is(h2,h3) { font-family: inherit; font-size: 1rem; font-weight: 700; }
.legal-copy section p { margin-top: .32rem; overflow-wrap: anywhere; white-space: pre-line; }
.legal-reference { margin-top: .78rem; font-size: .82rem; }
.policy-settings-panel { max-width: 760px; }
#policy-settings { display: grid; gap: .85rem; margin-top: .85rem; }
.policy-setting-field { display: grid; gap: .3rem; }
.score-actions { display: inline-flex; gap: .35rem; margin-left: .45rem; vertical-align: middle; }
.policy-document-fields {
  display: grid; gap: .8rem; min-width: 0; margin: 0; padding: .85rem 0 0;
  border: 0; border-top: 1px solid var(--member-border, #e9e0d4);
}
.policy-document-fields legend { padding-right: .45rem; color: var(--deep); font-weight: 700; }
.policy-document-fields textarea { line-height: 1.65; resize: vertical; }
#policy-settings > button { justify-self: start; }
.member-main.slim h2, .auth-service h2 { font-family: inherit; font-size: 1.06rem; font-weight: 650; color: #493623; }
.member-main.slim :is(.offer-options,.member-rules) h2 { color: #304b76; }
.member-muted-note, .member-rules > p { color: var(--member-muted); font-size: .88rem; line-height: 1.55; }
:is(h2,.member-balance) + .member-muted-note, .member-rules h2 + p { margin-top: .55rem; }
.member-card > .member-button { margin-top: 1rem; }
.member-signin-prompt p { font-size: .9rem; color: var(--member-muted); }
.member-balance { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.member-balance > div { min-width: 0; }
.member-balance strong {
  display: block; color: #67482d; font: 550 clamp(1.65rem, 6vw, 2.55rem)/1.2 var(--amount-face);
  margin-top: .42rem; overflow-wrap: anywhere;
}
.member-balance-card { background: #f8eee2; }
.member-balance img { width: min(46%,210px); height: clamp(88px,19vw,130px); object-fit: contain; flex-shrink: 0; }
.wallet-hero {
  display: flex; align-items: center; position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(205px, 30vw, 250px); padding: clamp(1.1rem, 4vw, 2rem);
  border: 1px solid #d1e7da; border-radius: 19px; background: #eaf5ed; box-shadow: var(--shadow);
}
.wallet-hero-art {
  position: absolute; z-index: -1; inset: 0 0 0 auto; width: 80%; height: 100%; object-fit: cover; object-position: right center;
  mask-image: linear-gradient(90deg, transparent 4%, #000 40%);
}
.wallet-hero-copy { width: min(56%, 350px); }
.wallet-hero-amount {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .13rem .35rem; margin-top: .48rem;
  color: #245d4c; font-family: var(--numeric);
}
.wallet-hero-amount span { font-size: clamp(.88rem, 2.5vw, 1.12rem); font-weight: 600; }
.wallet-hero-amount strong {
  font: 550 clamp(2.15rem, 8.7vw, 3.5rem)/1.08 var(--amount-face);
  letter-spacing: -.012em; min-width: 0; overflow-wrap: anywhere;
}
.wallet-hero-copy .member-button { max-width: 100%; white-space: normal; margin-top: .95rem; }
.wallet-hero-copy .member-button-primary { background: #2c6654; }
.wallet-hero-copy .member-button-primary:hover { background: #205240; }
.wallet-stats {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; margin: 0; font-size: .85rem;
  background: #f4faf7; border-color: #dbe9e1;
}
.wallet-stats dt { color: var(--member-muted); }
.wallet-stats dd { margin: .25rem 0 0; color: #245d4c; font-family: var(--amount-face); font-weight: 550; overflow-wrap: anywhere; }
.wallet-usage {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .65rem; align-items: center;
  border-top: 1px solid var(--member-border); padding: .85rem .12rem .2rem;
}
.wallet-usage > img { width: 40px; height: 40px; object-fit: contain; }
.member-main.slim .wallet-usage h2 { font-size: .92rem; }
.wallet-usage p { font-size: .83rem; color: var(--member-muted); margin-top: .3rem; }
.member-transactions .table-wrap { margin-top: .85rem; border-color: var(--member-border); }
.member-transactions th { background: #f5eee4; }
.member-transactions th, .member-transactions td { white-space: normal; overflow-wrap: anywhere; text-align: start; }
.member-transactions :is(th,td):not(:last-child) { white-space: nowrap; }
.member-profile-card { padding: 0; overflow: hidden; border-color: #e5daef; }
.member-profile-card .profile-summary {
  position: relative; isolation: isolate; min-height: 106px; gap: .65rem;
  padding: .9rem min(28%, 118px) .9rem 1rem; background: linear-gradient(105deg,#f2eafa,#f8f1fb);
}
.member-profile-card .profile-summary > div { min-width: 0; }
.member-profile-illustration {
  position: absolute; inset: .45rem .55rem .45rem auto; width: min(25%, 100px);
  height: calc(100% - .9rem); object-fit: contain; pointer-events: none;
}
.member-profile-card .tier-art { width: 59px; height: 59px; flex-shrink: 0; }
.member-profile-card .profile-summary p { margin-top: .27rem; font-size: .86rem; color: var(--member-muted); }
.member-profile-card .profile-summary h2 { overflow-wrap: anywhere; }
.member-profile-card .profile-list { margin: 0; padding: .15rem 1rem .2rem; font-size: .9rem; }
.member-profile-card .profile-list > div { padding-block: .68rem; }
.member-profile-card .profile-list > div:last-child { border-bottom: 0; }
.member-profile-card .profile-list dd, .member-rules .rule-list strong { font-weight: 600; }
.member-service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; margin-top: .8rem; }
.member-service-grid .member-button {
  justify-content: start; min-height: 53px; padding-inline: .58rem; color: var(--service-accent);
  background: var(--service-tint); border-color: var(--service-line);
}
.member-service-grid .member-button:hover { border-color: currentColor; }
.member-service-grid img { width: 30px; height: 30px; flex-shrink: 0; object-fit: contain; }
.service-wallet { --service-accent: #285e49; --service-tint: #eaf5ee; --service-line: #dcebe2; }
.service-offer { --service-accent: #85344d; --service-tint: #fbeef2; --service-line: #f0dce4; }
.service-notices { --service-accent: #2c5385; --service-tint: #eaf3ff; --service-line: #dbe9f9; }
.service-support { --service-accent: #6a476e; --service-tint: #f5edf7; --service-line: #ebdceb; }
.member-account-footer { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .85rem; margin-top: .85rem; }
.member-logout { margin-left: auto; color: #8c4539; }
.member-announcement-list .notice-row:first-child { border-top: 0; }
.member-announcement-list .notice-row:hover { background: #f8f1e8; }

.auth-shell {
  position: relative; isolation: isolate; display: grid; align-content: start; min-height: 100dvh;
  padding: env(safe-area-inset-top) 0 1.3rem; background: #f8efe5;
}
.auth-shell::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: url('/assets/webp/auth-paper.webp') center / 100% 100% no-repeat;
}
.auth-masthead { display: grid; place-items: center; padding: clamp(1.2rem,4.5vw,2rem) 1rem 1.32rem; }
.auth-brand { display: grid; justify-items: center; gap: .15rem; text-align: center; width: fit-content; }
.auth-brand-logo { width: 75px; height: 51px; object-fit: contain; }
.auth-brand-name { display: flex; align-items: center; gap: clamp(.45rem,2.5vw,.95rem); }
.auth-brand-name strong {
  font: 700 clamp(1.45rem, 6.45vw, 2rem)/1.27 var(--display); color: #51351f; letter-spacing: .055em;
}
.auth-brand-name img { width: 19px; height: 33px; object-fit: contain; }
.auth-brand-name img:last-child { transform: scaleX(-1); }
.auth-brand-tagline { font-size: .83rem; font-weight: 500; letter-spacing: .05em; color: #735f4b; }
.auth-main { max-width: 465px; margin-block: 0; gap: .9rem; }
.auth-card {
  padding: clamp(.86rem,4vw,1.45rem); border: 1px solid #fffcf8;
  border-radius: 22px; background: #fffdfafd; box-shadow: 0 8px 25px #62442415;
}
.auth-tabs {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .14rem; border-radius: 99px;
  padding: .17rem; margin-bottom: .9rem; background: #f0e8db; border: 1px solid #ebdfd0;
}
.auth-tabs a {
  display: grid; place-items: center; min-height: 40px; padding: .32rem;
  color: #684d36; font-size: .95rem; font-weight: 600; border-radius: 99px;
}
.auth-tabs [aria-current] {
  color: #52351c; background: linear-gradient(#f6e4bf, #e2bd82);
  box-shadow: inset 0 0 0 1px #fff7e1, 0 1px 3px #5437191c;
}
.auth-field {
  display: grid; grid-template-columns: auto minmax(0,1fr); gap: .62rem; align-items: center; min-width: 0;
  min-height: 55px; padding: .38rem .58rem;
  background: #fffdf9; border: 1px solid #e7dac9; border-radius: 12px; box-shadow: 0 2px 5px #5b422209;
}
.auth-field:focus-within { border-color: #a57646; box-shadow: 0 0 0 2px #e9d7be; }
.auth-field-icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  color: #8e6233; background: #f9efdf; border: 1px solid #ebdcc7;
}
.auth-field-icon .icon { width: 19px; height: 19px; stroke-width: 1.65; }
.auth-field-copy { min-width: 0; display: grid; padding-left: .58rem; border-left: 1px solid #eddecb; }
.auth-field label { width: fit-content; font-size: .84rem; font-weight: 650; line-height: 1.2; }
form .auth-field-copy input:not([type=checkbox]) {
  min-width: 0; min-height: 24px; padding: .1rem 0 0; border: 0; background: transparent; color: var(--ink);
  outline: 0; font-size: 1rem; line-height: 1.25;
}
form .auth-field-copy input::placeholder { font-size: .86em; }
#member-auth { display: grid; gap: .66rem; }
#member-auth > .member-button {
  min-height: 45px; margin-top: .16rem; border-radius: 99px; border-color: #c89959;
  color: #462b14; background: linear-gradient(#f5dfb5,#d9ae70); box-shadow: 0 3px 8px #74502b20;
  font-size: 1rem; letter-spacing: .045em; font-weight: 700;
}
#member-auth > .member-button:hover { background: linear-gradient(#f8e5c2,#dfb77a); }
.auth-consent { color: var(--member-muted); font-size: .775rem; line-height: 1.55; }
.auth-consent .member-text-link { display: inline; min-height: 0; font-size: inherit; text-decoration: underline; text-underline-offset: .16em; }
.auth-service {
  display: flex; align-items: center; gap: .9rem; width: 100%; text-align: start; min-height: 84px;
  border-radius: 17px; background: #fffcf7; color: #60442e;
}
.auth-service img { width: 68px; height: 61px; object-fit: contain; flex: 0 0 auto; }
.auth-service-title, .auth-service h2 { display: block; font: 700 1.07rem/1.3 var(--display); color: #493623; }
.auth-reward { background: linear-gradient(#fffdf9,#f8eee0); }
.auth-service div { min-width: 0; }
.auth-service strong { display: block; margin-top: .12rem; color: #6c4527; font: 550 clamp(1.34rem,6vw,1.78rem)/1.12 var(--amount-face); }
.auth-service p, .auth-service-description { display: block; margin-top: .22rem; font-size: .81rem; color: var(--member-muted); font-weight: 400; }
button.auth-service:hover { background: #f9f1e7; }
.auth-footer {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .1rem .4rem;
  margin-top: .7rem; padding: 0 .72rem max(.65rem,env(safe-area-inset-bottom)); color: var(--member-muted);
}
.auth-footer .member-text-link { font-size: .77rem; }
form label { color: var(--ink); font-weight: 800; font-size: .92rem; }
form label .icon { margin-right: .26rem; color: var(--gold-dark); }
form input:not([type=checkbox]), form textarea, form select {
  width: 100%; min-height: 44px; padding: .61rem .7rem; border: 1px solid #d9c8b0; border-radius: 12px; background: #fffdf8; color: var(--ink);
}
form input::placeholder { color: #786752; }
form textarea { min-height: 83px; resize: vertical; }
:where(#admin-auth,#admin-adjust,#announcement-form) { display: grid; gap: .5rem; }
:where(#admin-auth,#admin-adjust,#announcement-form) > label:not(:first-child) { margin-top: .23rem; }
:where(#admin-auth,#admin-adjust,#announcement-form) .button[type=submit] { margin-top: .3rem; }
.otp-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: .42rem; }
.otp-row .member-button { min-height: 55px; }
.otp-row button { font-size: .79rem; padding-inline: .54rem; }
.consents { display: grid; gap: .13rem; padding: .2rem 0; }
.consents label, .check-label { display: flex; align-items: center; gap: .4rem; min-height: 33px; }
input[type=checkbox] { accent-color: #966331; width: 1rem; height: 1rem; flex-shrink: 0; }
.form-error { padding: .56rem .7rem; border: 1px solid #edc8ba; border-radius: 10px; background: #fff0e9; color: #992f29; font-size: .86rem; }
.rule-list, .profile-list { list-style: none; padding: 0; margin: .65rem 0; }
.rule-list li, .profile-list > div { display: flex; align-items: center; justify-content: space-between; gap: .55rem; border-bottom: 1px solid #ecdfd0; padding: .52rem .12rem; }
.profile-list dd, .rule-list strong { color: #654217; margin: 0; text-align: end; font-weight: 850; overflow-wrap: anywhere; }
.profile-summary { display: flex; align-items: center; gap: .62rem; margin-bottom: .6rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .85rem 0 .32rem; }
.member-detail { display: grid; gap: 1rem; }
.member-detail-overview { padding: .9rem; border: 1px solid #eadccb; border-radius: 14px; background: #fbf4e9; }
.member-detail-overview .profile-summary { margin-bottom: .75rem; }
.member-detail-overview .profile-summary p { margin-top: .17rem; color: var(--muted); font-size: .83rem; }
.member-detail-overview h3, .member-detail-fields dd { overflow-wrap: anywhere; }
.member-detail-fields {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem .8rem;
  margin: 0; padding-top: .72rem; border-top: 1px solid #ecdfd0;
}
.member-detail-fields dt { color: var(--muted); font-size: .76rem; }
.member-detail-fields dd { margin: .12rem 0 0; font-size: .9rem; font-weight: 650; }
.member-detail-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,8.25rem),1fr)); gap: .5rem; }
.member-detail-actions .button { border-radius: 9px; padding-inline: .42rem; font-size: .875rem; }
.member-detail-history { min-width: 0; }
.member-detail-history .section-head { margin-bottom: .4rem; }
.member-detail-history .section-head h3 { display: flex; align-items: center; gap: .38rem; font-size: 1rem; }
.member-detail-history .icon { color: var(--gold-dark); }
@media (max-width: 480px) {
  .member-detail-fields, .member-detail-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .member-detail-actions > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.notice-content, .preview-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-note { border: 1px solid #e5d7c7; background: #fbefe1; border-radius: 10px; padding: .65rem; }
dialog { width: min(100% - 1.35rem,590px); max-height: calc(100dvh - 1.8rem); overflow: auto; border: 1px solid #e3c89f; border-radius: 20px; background: #fffbf3; color: var(--ink); padding: 1.1rem; box-shadow: 0 18px 60px #41290f61; }
dialog::backdrop { background: #3e2b1b7a; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: .55rem; margin-bottom: .85rem; }
.modal-head h2 { font-size: 1.25rem; overflow-wrap: anywhere; }
.close-button { font-size: 1.44rem; }
dialog > p + p, dialog > .section-head { margin-top: .85rem; }
.toast { position: fixed; z-index: 12; right: 1rem; bottom: 1rem; max-width: min(91vw,385px); border: 1px solid #d7c395; border-radius: 13px; color: #5d492b; background: #fff7e5; padding: .65rem .95rem; box-shadow: var(--shadow); font-weight: 800; }
.toast.error { background: #fff0e9; color: #8d342b; border-color: #edaf9d; }
.toast.session {
  inset: auto auto max(1rem, calc(env(safe-area-inset-bottom) + .65rem)) 50%;
  transform: translateX(-50%); width: max-content;
  padding: .58rem 1rem; border-color: #d9c4aa; background: #fff8eb;
  font-size: .92rem; font-weight: 650; pointer-events: none;
}
.load-error { margin: 2rem auto; }
.admin-shell { min-height: 100dvh; }
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid #e3c699; background: #fff2d8; }
.brand-mark img { width: 34px; height: 29px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.12; gap: .16rem; }
.brand-copy strong { font-size: 1.09rem; font-weight: 950; letter-spacing: .06em; }
.brand-copy span { font-size: .78rem; font-weight: 800; }
.admin-header { position: sticky; top: 0; z-index: 5; background: #fffaf4; border-bottom: 1px solid #e3d2be; box-shadow: 0 3px 10px #5336190a; }
.admin-top, .admin-nav { width: min(100%,1610px); margin-inline: auto; padding-inline: clamp(.75rem,2.5vw,2rem); }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 63px; }
.admin-brand { flex: 0 0 auto; }
.admin-brand .brand-mark { width: 40px; height: 40px; }
.admin-brand .brand-mark img { width: 30px; }
.admin-header-actions { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.admin-home { display: inline-flex; align-items: center; gap: .33rem; flex: 0 0 auto; padding: .4rem; color: var(--gold-dark); font-size: .85rem; font-weight: 650; }
.admin-home:hover { text-decoration: underline; }
.admin-menu { display: none; }
.admin-user { display: flex; align-items: center; gap: .5rem; min-width: 0; padding-left: .8rem; border-left: 1px solid #e9ddcd; }
.admin-user strong, .admin-user small { display: block; line-height: 1.25; overflow-wrap: anywhere; }
.admin-user small { color: var(--muted); }
.admin-avatar { display: grid; place-items: center; min-width: 35px; height: 35px; color: #945e2c; background: #f6e6ce; border: 1px solid #e8d0ab; border-radius: 50%; }
.logout-admin { color: #694f32; background: #f9efe1; border-color: #ecdac5; min-height: 37px; padding: .38rem .66rem; }
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; padding-block: .42rem; border-top: 1px solid #eee3d7; }
.admin-nav a {
  display: flex; align-items: center; justify-content: center; gap: .3rem; min-height: 39px; padding: .32rem .56rem;
  color: #694e32; font-size: .835rem; font-weight: 650; white-space: nowrap; border: 1px solid transparent; border-radius: 8px;
}
.admin-nav a .icon { width: 16px; height: 16px; color: #8e6335; }
.admin-nav a:hover { background: #f8eee0; }
.admin-nav a[aria-current="page"] { color: #5d3918; background: #f2e3ce; border-color: #dfc29f; font-weight: 800; }
.admin-main { width: min(100%,1610px); margin: auto; padding: clamp(.75rem,2.5vw,2rem); min-width: 0; }
.admin-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.05rem; }
.admin-title h1 { font-size: clamp(1.55rem,2.6vw,2.25rem); margin-bottom: .24rem; }
.admin-title p { color: var(--muted); }
.admin-hero {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; min-height: 164px;
  border-radius: 21px; border: 1px solid #fffdf6; padding: clamp(1rem,3vw,2.5rem);
  background: radial-gradient(ellipse at 80% 46%,#f5d9aa,#fcf2e4 64%,#fffaf2); box-shadow: var(--shadow);
}
.admin-hero::after { position: absolute; content: ""; z-index: -1; left: 35%; top: 59%; width: 80%; height: 106%; transform: rotate(-8deg); border-radius: 50%; border: 1px solid #fffaf0; background: #e7c69a45; }
.admin-hero > div { z-index: 1; }
.admin-hero h2 { font-size: clamp(1.35rem,2.8vw,2.6rem); margin-bottom: .38rem; }
.admin-hero p { color: #755333; font-weight: 750; }
.admin-hero-emblem { position: absolute; width: min(26%,238px); height: 81%; right: 9%; bottom: 9%; object-fit: contain; filter: drop-shadow(0 10px 8px #7a4f2640); }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: .46rem .65rem; margin: 0 0 .8rem; }
.dashboard-filter { margin: 1rem 0 .8rem; }
.filter :is(input,select) { width: auto; max-width: 100%; min-height: 38px; padding: .36rem .53rem; }
.filter input[type=number] { width: 80px; }
.filter .button { min-height: 37px; padding: .39rem .74rem; }
.custom-dates { display: flex; flex-wrap: wrap; gap: .46rem; }
.metrics-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; margin: .78rem 0 1rem; }
.metric { display: flex; align-items: center; min-width: 0; gap: .58rem; padding: clamp(.6rem,1.4vw,1.2rem); }
.metric > div { min-width: 0; }
.metric > div > span { display: block; color: var(--muted); font-size: .85rem; font-weight: 750; overflow-wrap: anywhere; }
.metric strong { color: #6d421f; font: 650 clamp(1.06rem,1.75vw,1.55rem)/1.16 var(--numeric); white-space: nowrap; }
.home-metric-value strong, .member-balance strong, .wallet-hero-amount, .auth-service strong, .metric strong {
  font-variant-numeric: lining-nums tabular-nums;
}
.metric-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #e9d4ad; border-radius: 13px; color: #8e5d2e; background: #f7e8cb; box-shadow: inset 0 1px #fff; }
.metric-icon .icon { width: 21px; height: 21px; }
.metric-icon.green { background: #e7ece0; border-color: #d9e1ce; color: #556749; }
.metric-icon.rose { background: #f4e4da; border-color: #ead6c7; color: #8d5740; }
.metric-icon.violet { background: #eee6e1; border-color: #e3d5ce; color: #795e50; }
.admin-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: .95rem; }
.admin-panel { padding: clamp(.77rem,2vw,1.3rem); min-width: 0; }
.admin-panel > .field-note { margin-top: .55rem; }
.member-distribution { display: grid; gap: .16rem; }
.member-distribution > div { display: flex; align-items: center; gap: .5rem; padding: .27rem 0; border-bottom: 1px solid #ede0d0; }
.member-distribution .tier-emblem { width: 28px; height: 28px; font-size: .83rem; }
.member-distribution strong { margin-left: auto; }
.table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid #eadccb; border-radius: 12px; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .84rem; }
th, td { white-space: nowrap; vertical-align: middle; padding: .53rem .63rem; }
th { background: #f3e6d5; color: #68492a; }
td { border-top: 1px solid #ebdfd0; background: #fffdf8; }
.directory-filter {
  display: grid; grid-template-columns: minmax(12rem,2fr) minmax(7rem,1fr) minmax(5.5rem,.6fr) minmax(7.5rem,1fr) auto;
  align-items: end; gap: .65rem; margin-bottom: 1.15rem;
}
.directory-filter label { display: grid; gap: .28rem; min-width: 0; font-size: .86rem; font-weight: 700; }
.directory-filter :is(input,select) { min-width: 0; min-height: 42px; }
.directory-filter .button { min-height: 42px; padding-inline: .9rem; }
.member-directory :is(th,td) { padding: .75rem clamp(.56rem,1vw,1rem); }
.member-directory th { background: #f4eadb; }
.member-directory td { background: #fffcf7; }
.member-directory tbody tr:nth-child(even) td { background: #fbf6ed; }
.member-directory td:first-child { white-space: normal; }
.directory-member { display: flex; align-items: center; flex-wrap: wrap; gap: .22rem .45rem; }
.directory-member strong { color: var(--deep); font-size: .99rem; overflow-wrap: anywhere; }
.directory-member small { flex-basis: 100%; color: var(--muted); font-size: .76rem; }
.directory-values { display: grid; gap: .48rem; margin: 0; }
.directory-values div { display: grid; gap: .02rem; }
.directory-values dt { color: var(--muted); font-size: .72rem; }
.directory-values dd { margin: 0; }
.directory-score { display: block; margin-bottom: .34rem; font: 650 1.18rem/1.15 var(--amount-face); }
.directory-score span { font: 500 .78rem/1.25 var(--numeric); }
.member-directory .score-actions { margin-left: 0; }
.directory-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.directory-actions .button { min-height: 36px; border-radius: 8px; padding: .28rem .6rem; font-size: .8rem; }
.status-pill { display: inline-block; padding: .16rem .44rem; border-radius: 99px; color: #7e552c; background: #f8ecd9; font-size: .78rem; font-weight: 850; }
.status-pill.okay { color: #4e6543; background: #eaf0e2; }
.status-pill.inactive { color: #8e433b; background: #f7e6de; }
.pagination { display: flex; align-items: center; gap: .45rem; margin-top: .82rem; }
.pagination span { margin-right: auto; color: var(--muted); }
.schedule-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .48rem; }
.admin-login-page { min-height: 100dvh; display: grid; place-items: center; padding: 1rem; }
.admin-login-card { width: min(100%,465px); padding: clamp(1.2rem,6vw,2.2rem); }
.admin-login-heading { display: flex; align-items: center; gap: .65rem; margin: 1.45rem 0 .9rem; }
.admin-login-heading h1 { font-size: 1.7rem; }
.admin-login-heading p { color: var(--muted); }
.admin-login-card > .text-link { margin-top: 1.2rem; }
@media (max-width: 910px) {
  .desktop-nav { display: none; }

  .bottom-nav {
    display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); position: fixed; z-index: 8;
    inset-inline: max(.78rem,env(safe-area-inset-left)) max(.78rem,env(safe-area-inset-right));
    bottom: max(.62rem,calc(env(safe-area-inset-bottom) + .32rem)); max-width: 540px; margin-inline: auto;
    padding: .24rem; border: 1px solid #e9ddcc; border-radius: 999px;
    background: #fffbf5f7; box-shadow: 0 3px 14px #5b422218; backdrop-filter: blur(8px);
  }
  .bottom-nav .nav-item { flex-direction: column; gap: .14rem; padding: .22rem .03rem; min-height: 44px; font-size: .75rem; line-height: 1.2; border-radius: 999px; }
  .bottom-nav .nav-item.selected { background: #f3e6d2; color: #68482c; }
  .bottom-nav .nav-item[data-art].selected { background: var(--nav-tint); color: var(--nav-accent); }
  .bottom-nav .nav-art { width: 28px; height: 28px; }
  .bottom-nav .icon { width: 19px; height: 19px; }
  .member-page:has(.bottom-nav) { padding-bottom: calc(4.15rem + env(safe-area-inset-bottom)); }
  .member-page:has(.bottom-nav) .toast { bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 1180px) and (max-width: 1460px) {
  .admin-nav a { padding-inline: .5rem; }
  .admin-nav a .icon { display: none; }
}
@media (max-width: 1179px) {
  .admin-nav { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); }
}
@media (max-width: 850px) {
  .admin-menu { display: inline-flex; min-width: 40px; min-height: 40px; padding: .4rem; border-radius: 9px; }
  .admin-nav { display: none; grid-template-columns: repeat(3,minmax(0,1fr)); max-height: 55dvh; overflow-y: auto; }
  .admin-header:has(.admin-menu[aria-expanded="true"]) .admin-nav { display: grid; }
  .admin-nav a { justify-content: flex-start; min-height: 44px; }
  .directory-filter { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .directory-query { grid-column: 1 / -1; }
  .directory-filter .button { grid-column: 1 / -1; justify-self: start; }
  .member-directory { overflow: visible; border: 0; }
  .member-directory table, .member-directory tbody { display: block; }
  .member-directory thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .member-directory tbody tr {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: .7rem; padding: 0 .8rem;
    border: 1px solid #eadccb; border-radius: 13px; background: #fffcf7;
  }
  .member-directory tbody td, .member-directory tbody tr:nth-child(even) td {
    display: block; min-width: 0; padding: .6rem .25rem; border: 0; background: transparent; white-space: normal;
  }
  .member-directory td:nth-child(1), .member-directory td:nth-child(6) { grid-column: 1 / -1; }
  .member-directory tbody td:nth-child(1) { border-bottom: 1px solid #eee0ce; }
  .member-directory tbody td:nth-child(6) { border-top: 1px solid #eee0ce; }
  .member-directory td:nth-child(2) dd { overflow-wrap: anywhere; }
  .directory-dates time { white-space: nowrap; }
  .directory-actions .button { min-height: 40px; }
  .member-directory .score-action { min-height: 36px; }
}
@media (max-width: 650px) {
  body::before { background-image: url('/assets/webp/site-background-mobile.webp'); opacity: .62; }
  .header-inner { min-height: 56px; }
  .panel { border-radius: 17px; }
  .section-head h2 img { width: 30px; height: 30px; }
  .member-transactions :is(th,td) { padding: .5rem .33rem; }
  .wallet-hero { min-height: 207px; padding: .9rem .8rem; }
  .wallet-hero-art { width: 100%; mask-image: linear-gradient(90deg, transparent 32%, #000 71%); }
  .wallet-hero-copy .member-button { padding-inline: .55rem; font-size: .79rem; }
  .admin-top { min-height: 58px; }
  .admin-header-actions { gap: .38rem; }
  .admin-home { min-height: 38px; padding-inline: .28rem; }
  .admin-home span, .logout-admin span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .logout-admin { padding-inline: .55rem; }
  .admin-user { padding-left: .38rem; }
  .admin-avatar { display: none; }
  .admin-user > div { min-width: 0; }
  .admin-user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }
  .admin-user small { white-space: nowrap; font-size: .69rem; }
  .admin-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-grid { grid-template-columns: minmax(0,1fr); }
  .admin-hero { min-height: 130px; }
  .admin-hero p { font-size: .79rem; }
  .metrics-grid { gap: .46rem; }
  .metric { gap: .35rem; }
  .metric-icon { width: 34px; height: 34px; border-radius: 10px; }
  .metric-icon .icon { width: 16px; height: 16px; }
  .metric > div > span { font-size: .72rem; }
  .metric strong { font-size: clamp(.91rem,4.3vw,1.19rem); }
  .home-header .header-inner { gap: .32rem; }
  .home-header .member-brand { gap: .4rem; font-size: clamp(.86rem, 4vw, 1.03rem); }
  .home-level { padding-inline: .5rem; font-size: .8rem; }
  .benefit-feature { min-height: 171px; padding: .9rem .85rem; }
  .benefit-feature-art { width: 100%; mask-image: linear-gradient(to right, transparent 35%, #000 71%); }
  .benefit-feature-copy { width: min(49%, 210px); }
  .benefit-feature-copy h1 { font-size: clamp(1.22rem,5.4vw,1.6rem); }
  .benefit-feature-copy p { font-size: .81rem; }
  .benefit-feature-copy .member-button { min-height: 36px; margin-top: .62rem; padding-inline: .58rem; }
  .auth-service img { width: 56px; height: 52px; }
  .tier-grid { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: .52rem; }
  .tier {
    grid-template-columns: auto minmax(0,1fr) auto; align-items: center; justify-items: start; text-align: start;
    gap: .68rem; min-height: 49px; padding: .25rem .38rem; border-bottom-color: var(--member-border); border-radius: 0;
  }
  .tier:last-child { border-bottom-color: transparent; }
  .tier-current { border-color: #e8dac6; border-radius: 8px; }
  .tier .tier-art { width: 40px; height: 40px; }
  .tier small { text-align: end; }
}
@media (max-width: 359px) {
  .home-header .member-brand-mark { display: none; }
}
@media (min-width: 651px) {
  .auth-shell::before {
    background-size: min(100%, 900px) 100%;
    mask-image: linear-gradient(to right, transparent, #000 calc(50% - 320px), #000 calc(50% + 320px), transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.score-action { border: 1px solid currentColor; border-radius: 6px; padding: 3px 8px; min-height: 30px; background: transparent; font: inherit; font-size: .78rem; font-weight: 650; }
.score-increase { color: #22644d; background: #f0f7f3; }
.score-decrease { color: #8a4438; background: #fcf1ee; }
.score-action:hover { box-shadow: inset 0 0 0 1px currentColor; }
.operation-panel { margin-bottom: 18px; }
.operation-panel > h2 { margin: 0 0 14px; }
.operation-panel .filter { margin: 0 0 14px; flex-wrap: wrap; }
.operation-detail { border: 1px solid #e9dece; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.operation-detail > summary { cursor: pointer; font-weight: 650; }
.operation-detail[open] > summary { margin-bottom: 12px; }
.operation-form { display: grid; gap: 12px; padding-top: 4px; }
.operation-form label:not(.check-label), .operation-panel .filter label { display: grid; align-content: start; gap: 6px; min-width: 0; }
.operation-form textarea { width: 100%; }
.operation-form > button { justify-self: start; }
.operation-fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 186px), 1fr)); }
.operation-fields select, .operation-fields input:not([type="checkbox"]) { width: 100%; }
.loan-entry-fields { grid-template-columns: repeat(3,minmax(0,1fr)); }
.loan-entry-fields input { min-width: 0; }
.loan-ledger td:nth-child(2) { max-width: 15rem; white-space: normal; overflow-wrap: anywhere; }
@media (min-width: 1200px) {
  .loan-entry-fields { grid-template-columns: repeat(6,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .loan-entry-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.operation-partner { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.operation-partner > div { display: flex; gap: 14px; align-items: center; }
.operation-partner h2, .operation-partner p { margin: 0; }
.operation-partner-image { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; }
