/* =====================================================================
   顺路 · pages — hall, task, publish, orders, messages, credit, wallet, me, rules
   ===================================================================== */

@media (max-width: 899px) {
  :root { --bar-h: 56px; }
}

.live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-3); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--go); animation: live 2.2s infinite; }
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(10, 122, 76, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(10, 122, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 122, 76, 0); }
}
.chips--wrap { flex-wrap: wrap; }
.chip--lg { height: 44px; padding: 0 18px; font-size: 16px; font-weight: 700; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule-2);
  font-size: 12.5px;
  color: var(--ink-2);
}
.tag b { font-weight: 700; color: var(--ink); }

/* =============== hall =============== */
.hall__head {
  display: grid;
  gap: 18px 32px;
  align-items: end;
  padding-block: clamp(20px, 3vw, 36px) 6px;
}
@media (min-width: 1100px) {
  .hall__head { grid-template-columns: minmax(0, 1fr) auto; }
}
.hall__title h1 { font-size: clamp(27px, 3.2vw, 44px); line-height: 1.12; }
.hall__title h1 b { font: 800 1.12em/1 "Barlow", var(--f-ui); color: var(--sign-ink); }

/* route navigator: a guide-sign strip */
.navi {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 9px;
  border-radius: 14px;
  background: var(--sign);
  color: #fff;
}
.navi::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  pointer-events: none;
}
.navi > * { position: relative; z-index: 1; }
.navi__k { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px 0 9px; font-size: 13px; letter-spacing: 0.06em; }
.navi__k .ic { width: 18px; height: 18px; }
.navi__k b { font-weight: 700; }
.navi__pl {
  display: grid;
  gap: 1px;
  min-width: 104px;
  padding: 6px 12px 7px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  text-align: left;
  transition: background-color 0.2s;
}
.navi__pl:hover { background: rgba(255, 255, 255, 0.24); }
.navi__pl small { font-size: 11px; opacity: 0.8; }
.navi__pl b { font: 900 18px/1.2 var(--f-display); white-space: nowrap; }
.navi__swap { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #fff; transition: background-color 0.2s, transform 0.35s var(--ease-spring); }
.navi__swap:hover { background: rgba(255, 255, 255, 0.18); }
.navi__swap:active { transform: rotate(180deg); }
.navi__only { padding: 0 10px 0 8px; color: #fff; font-weight: 600; font-size: 13.5px; }
.navi__only input { background: rgba(255, 255, 255, 0.28); }
.navi__only input:checked { background: var(--go); }
@media (max-width: 560px) {
  .navi { gap: 4px; }
  .navi__k { width: 100%; padding: 2px 6px 4px; }
  .navi__pl { flex: 1; min-width: 0; }
  .navi__pl b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
  .navi__only { width: 100%; justify-content: space-between; padding: 6px 6px 2px; }
}

.hall__tools {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + var(--bar-h));
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 12px var(--gutter);
  background: var(--ground);
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.hall__cats {
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding: 2px var(--gutter);
  max-width: calc(100% + var(--gutter) * 2);
}
.hall__cats::-webkit-scrollbar { display: none; }
.hall__cats .chip { flex: none; }
@media (min-width: 1100px) {
  .hall__cats { margin: 0; padding: 2px 0; overflow: visible; flex-wrap: wrap; max-width: none; }
}
.hall__ctl { display: flex; align-items: center; gap: 8px; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 220px;
  height: 40px;
  padding: 0 8px 0 12px;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--ink-3);
  transition: box-shadow 0.2s;
}
.search .ic { width: 18px; height: 18px; }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; color: var(--ink); }
.search input::-webkit-search-cancel-button { display: none; }
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--sign), 0 0 0 4px var(--sign-tint); }
.search kbd { padding: 2px 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--rule-2); font: 600 11px/1.2 "Barlow", var(--f-ui); color: var(--ink-3); }
.select--sm { width: auto; height: 40px; padding-left: 12px; border-width: 1px; border-color: var(--rule); font-size: 14px; }
.hall__view { display: none; }
@media (max-width: 1099px) {
  .hall__view { display: inline-flex; }
}
@media (max-width: 640px) {
  .hall__ctl { width: 100%; }
  .search { flex: 1; width: auto; min-width: 0; }
  .search kbd { display: none; }
  .hall__view button { padding: 0 10px; }
}
@media (max-width: 420px) {
  .hall__view button span { display: none; }
  .select--sm { padding-right: 30px; }
}

.hall__body { display: grid; gap: 24px; align-items: start; padding-top: 6px; }
@media (min-width: 1100px) {
  .hall__body { grid-template-columns: minmax(0, 1fr) clamp(340px, 28vw, 400px); }
  .hall__aside {
    position: sticky;
    top: calc(var(--bar-h) + 84px);
    max-height: calc(100vh - var(--bar-h) - 100px);
    margin: -6px;
    padding: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .hall__aside::-webkit-scrollbar { display: none; }
}
.hall__main { min-width: 0; }
.hall__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.hall__grid .wb { animation: arrive 0.55s calc(min(var(--i), 10) * 45ms) var(--ease-out) both; }
.hall__aside { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 1099px) {
  .hall__aside { display: none; }
  .hall__body.is-map .hall__aside { display: grid; order: -1; }
  .hall__body.is-map .hall__aside > :not(.mapcard) { display: none; }
}
.hall__fresh {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  margin: 0 auto 14px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-2);
  animation: arrive 0.5s var(--ease-out);
}
.hall__fresh .ic { width: 17px; height: 17px; }
.hall__filter { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; color: var(--ink-2); }
.hall__filter .chip { height: 30px; padding: 0 10px; font-size: 13px; }
.hall__filter .chip .ic { width: 15px; height: 15px; }

.mapcard__lg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; color: var(--ink-3); }
.mapcard__lg .lg { margin-right: -4px; }
.mapcard__map { padding: 8px 12px 14px; }

.mecard { display: grid; gap: 14px; padding: 16px; }
.mecard__top { display: flex; align-items: center; gap: 12px; }
.mecard__pip {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--sign);
  color: #fff;
  font: 800 24px/1 "Barlow", var(--f-ui);
  box-shadow: inset 0 0 0 3px var(--sign), inset 0 0 0 5px rgba(255, 255, 255, 0.9);
}
.mecard__top > div { display: grid; flex: 1; min-width: 0; }
.mecard__top b { font: 900 17px/1.3 var(--f-display); }
.mecard__top > div > span { font-size: 12.5px; color: var(--ink-3); }
.mecard__caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mecard__caps li { display: grid; gap: 2px; padding: 10px 11px; border-radius: 10px; background: var(--paper-2); }
.mecard__caps span { font-size: 11.5px; color: var(--ink-3); }
.mecard__caps b { font-size: 15px; font-weight: 700; }
.mecard__todo { display: grid; gap: 6px; }
.mecard__todo a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--warn-tint);
  font-size: 13.5px;
  transition: filter 0.2s;
}
.mecard__todo a:hover { filter: brightness(0.97); }
.mecard__todo a > span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lboard__list { display: grid; padding: 8px 10px 12px; }
.lboard__list li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; font-size: 14px; }
.lboard__list li.is-me { background: var(--sign-tint); }
.lboard__n { width: 18px; text-align: center; font: 800 15px/1 "Barlow", var(--f-ui); color: var(--ink-3); }
.lboard__list li:nth-child(-n + 3) .lboard__n { color: var(--sign-ink); }
.lboard__name { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lboard__d { font-size: 12px; color: var(--ink-3); }
.lboard__list b { min-width: 24px; text-align: right; font: 800 16px/1 "Barlow", var(--f-ui); }

/* =============== task detail =============== */
.tdet__crumbs { display: flex; align-items: center; gap: 12px; padding-block: 18px 14px; }
.tdet__path { font-size: 13.5px; color: var(--ink-3); }
.tdet__path a:hover { color: var(--sign-ink); }
.tdet__grid { display: grid; gap: 18px; align-items: start; }
@media (min-width: 1000px) {
  .tdet__grid { grid-template-columns: minmax(0, 1fr) clamp(360px, 30vw, 410px); gap: 22px; }

}
.tdet__main,
.tdet__aside { display: grid; gap: 16px; min-width: 0; }
/* phones: interleave the two columns so the actions sit right under the waybill */
@media (max-width: 999px) {
  .tdet__grid { gap: 14px; }
  .tdet__main,
  .tdet__aside { display: contents; }
  .tdet .bill { order: 1; }
  .tdet .act { order: 2; }
  .tdet .tblock--road { order: 3; }
  .tdet .people { order: 4; }
  .tdet .tblock--proof { order: 5; }
  .tdet .tblock--rate { order: 6; }
  .tdet .tmap { order: 7; }
  .tdet .tblock--log { order: 8; }
  .tdet .tips { order: 9; }
}

.bill {
  --notch: var(--ground);
  position: relative;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-2);
}
.bill__top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 2px dashed var(--rule-2);
}
.bill__top::before,
.bill__top::after {
  content: "";
  position: absolute;
  bottom: -9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--notch);
}
.bill__top::before { left: -8px; }
.bill__top::after { right: -8px; }
.bill__cat { display: grid; flex: 1; min-width: 0; }
.bill__cat b { font-size: 18px; }
.bill__cat em { margin-left: 8px; font-style: normal; font-weight: 500; color: var(--ink-3); }
.bill__cat span { font-size: 12.5px; color: var(--ink-3); }
.bill__route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 24px 20px 18px;
}
.bill__route .rt__stop b { font: 900 clamp(19px, 2vw, 24px)/1.3 var(--f-display); }
.bill__route .rt__stop span { font-size: 13.5px; }
.bill__route .rt__dot { width: 15px; height: 15px; margin-top: 6px; }
.bill__note { padding: 0 20px 18px; }
.bill__note p:last-child { margin-top: 6px; font-size: 16px; line-height: 1.7; }
@media (max-width: 520px) {
  .bill__route { grid-template-columns: 1fr; gap: 12px; }
  .bill__route .fee { text-align: left; }
  .bill__route .fee__amt { justify-content: flex-start; }
}

.secret {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0 20px 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--sign-tint);
}
.secret__ic { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border-radius: 10px; background: var(--sign); color: #fff; }
.secret__code { display: block; margin-top: 2px; font: 800 26px/1.15 "Barlow", var(--f-ui); letter-spacing: 0.04em; overflow-wrap: anywhere; }
.secret.is-locked { background: var(--paper-2); }
.secret.is-locked .secret__ic { background: var(--ink-3); }
.secret__dots { display: block; font-size: 24px; letter-spacing: 0.2em; color: var(--ink-3); line-height: 1.2; }
.secret__hint { font-size: 12.5px; color: var(--ink-3); }
.secret.is-done .secret__code { font-size: 16px; color: var(--ink-3); }
@media (max-width: 520px) {
  .secret { grid-template-columns: 40px minmax(0, 1fr); }
  .secret .btn { grid-column: 1 / -1; }
}

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.facts > div { padding: 12px 20px; border-bottom: 1px solid var(--rule); }
.facts > div:nth-child(odd) { border-right: 1px solid var(--rule); }
.facts dt { font-size: 12px; color: var(--ink-3); }
.facts dd { margin-top: 2px; font-size: 14.5px; font-weight: 500; }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div:nth-child(odd) { border-right: 0; }
}
.bill__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px 16px; font-size: 12px; letter-spacing: 0.12em; color: var(--ink-3); }
.bill__bc { width: 168px; height: 34px; color: var(--ink); }
.bill .bill__stamp { top: 92px; right: 32px; }
.bill.is-taken .bill__stamp { display: grid; animation: stamp 0.42s var(--ease-out) forwards; }

.tblock .panel__body { padding-top: 16px; }

.act { display: grid; gap: 12px; padding: 18px; }
.act__main { width: 100%; }
.act__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.act__row .btn { width: 100%; padding: 0 10px; }
.act > .btn--line { width: 100%; }
.act__note { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.act__note .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.act__note--warn { color: var(--warn-ink); }
.act__note--go { color: var(--go-ink); }
.act__cancel { justify-self: center; font-size: 13.5px; color: var(--ink-3); }
.demo-skip {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px dashed var(--rule-2);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  transition: color 0.2s, border-color 0.2s;
}
.demo-skip:hover { color: var(--ink); border-color: var(--ink-3); }
.demo-skip .ic { width: 14px; height: 14px; }

.people { display: grid; }
.person { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.person + .person { border-top: 1px solid var(--rule); }
.person__info { display: grid; flex: 1; min-width: 0; }
.person__info b { display: inline-flex; align-items: center; gap: 6px; font-size: 15.5px; }
.person__info > span { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vtick { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--sign); color: #fff; }
.vtick .ic { width: 11px; height: 11px; stroke-width: 3; }
.person__ph { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1.5px dashed var(--rule-2); border-radius: 50%; color: var(--ink-3); }
.person--empty b { font-size: 15px; }
.person--empty span { font-size: 12.5px; color: var(--ink-3); }
.person--empty > div { display: grid; }

.tmap__map { padding: 6px 12px; }
.steps { display: grid; gap: 10px; padding: 6px 18px 18px; }
.steps__start { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.steps__start i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2.5px var(--ink); }
.steps__start small { color: var(--ink-3); }
.steps__leg { display: grid; gap: 4px; margin-left: 5px; padding-left: 20px; border-left: 2px dashed var(--rule-2); }
.steps__s { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.steps__k { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.steps__k .num { font-weight: 500; color: var(--ink-3); }
.steps__sum { font-size: 13px; color: var(--ink-3); }
.tmap__same { padding: 4px 18px 18px; font-size: 14px; color: var(--ink-2); }

.tips { padding: 16px 18px; }
.tips ul { display: grid; gap: 12px; margin-top: 10px; }
.tips li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.tips .rs { width: 32px; }

.tl { display: grid; }
.tl li { display: grid; grid-template-columns: 96px auto minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--rule); font-size: 14px; }
.tl li:last-child { border-bottom: 0; }
.tl__t { font-size: 12.5px; color: var(--ink-3); }
.tl li > span:last-child:not(.tl__t) { font-size: 13px; color: var(--ink-3); }

.rvs { display: grid; gap: 12px; }
@media (min-width: 640px) { .rvs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rv { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: 12px; background: var(--paper-2); }
.rv__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rv__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rv__text { font-size: 14px; color: var(--ink-2); }
.rv--empty p:last-child { font-size: 13.5px; color: var(--ink-3); }

.proof { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; }
.proof img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; }
.proof__ph { display: grid; place-items: center; align-content: center; gap: 4px; width: 120px; height: 90px; border-radius: 10px; background: var(--paper-2); font-size: 12px; color: var(--ink-3); }
.proof p { font-size: 14px; color: var(--ink-2); }

.mbar { display: none; }
@media (max-width: 999px) {
  .mbar:not(:empty) {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px var(--gutter);
    background: var(--paper);
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--rule);
  }
  .mbar .btn { flex: 1; }
  .mbar__fee { display: grid; gap: 2px; }
  .mbar__fee b { font: 800 24px/1 "Barlow", var(--f-ui); }
  .page--task .tdet { padding-bottom: 84px; }
}

/* sheets: rate, deliver, reason, tip, money */
.ratef { display: grid; justify-items: center; gap: 16px; text-align: center; }
.ratef__stars { display: flex; gap: 6px; }
.ratef__stars button { color: var(--rule-2); transition: transform 0.25s var(--ease-spring), color 0.2s; }
.ratef__stars button.is-on { color: var(--warn); }
.ratef__stars button:hover { transform: scale(1.12); }
.ratef__stars .ic { width: 42px; height: 42px; fill: currentColor; stroke: none; }
.ratef__word { font: 900 18px/1 var(--f-display); }
.ratef .chips { justify-content: center; }
.ratef .field { width: 100%; text-align: left; }
.dlv,
.rsn,
.tipf,
.msheet { display: grid; gap: 16px; }
.tipf p:first-child { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.upl {
  display: block;
  overflow: hidden;
  border: 2px dashed var(--rule-2);
  border-radius: 14px;
  background: var(--paper-2);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.upl:hover { border-color: var(--sign); background: var(--sign-tint); }
.upl__ph { display: grid; justify-items: center; gap: 6px; padding: 26px 16px; text-align: center; color: var(--ink-2); }
.upl__ph .ic { width: 30px; height: 30px; color: var(--sign-ink); }
.upl__ph small { font-size: 12.5px; color: var(--ink-3); }
.upl.has-img .upl__ph { padding: 8px; }
.upl__ph img { max-height: 220px; border-radius: 10px; }
.upl--row .upl__ph { grid-template-columns: auto minmax(0, 1fr); justify-items: start; column-gap: 12px; row-gap: 2px; padding: 12px 14px; text-align: left; }
.upl--row .upl__ph .ic { grid-row: span 2; width: 26px; height: 26px; }
.upl--row .upl__ph b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.rsn__warn { display: flex; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--warn-tint); color: var(--warn-ink); font-size: 13.5px; line-height: 1.55; }
.rsn__warn .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.money { position: relative; }
.money > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font: 700 16px/1 "Barlow", var(--f-ui); color: var(--ink-2); }
.money .input { padding-left: 32px; }
.money--lg .input { height: 58px; font: 800 26px/1 "Barlow", var(--f-ui); }
.money--lg > span { font-size: 20px; }

/* =============== publish =============== */
.pub__grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1040px) {
  .pub__grid { grid-template-columns: minmax(0, 1fr) clamp(360px, 31vw, 430px); }
  .pub__aside { position: sticky; top: calc(var(--bar-h) + 24px); }
}
@media (max-width: 1039px) {
  .pub__aside { display: none; }
}
.pub__form { display: grid; gap: 14px; min-width: 0; }
.psec { display: grid; gap: 16px; padding: 22px 22px 24px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-1); }
@media (max-width: 560px) { .psec { padding: 18px 16px 20px; } }
.psec__h { display: flex; align-items: center; gap: 12px; font-size: 19px; }
.psec__h .num { display: grid; place-items: center; width: 34px; height: 26px; border-radius: 6px; background: var(--ink); color: var(--paper); font: 800 13px/1 "Barlow", var(--f-ui); }
.ptiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .ptiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.ptile {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 14px 6px 12px;
  border-radius: 12px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.ptile__ic { width: 38px; height: 38px; margin-bottom: 2px; color: var(--ink); transition: transform 0.35s var(--ease-spring), color 0.2s; }
.ptile b { font-size: 14px; white-space: nowrap; }
.ptile span { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.ptile:hover { box-shadow: inset 0 0 0 1.5px var(--rule-2); }
.ptile:hover .ptile__ic { transform: translateY(-2px); }
.ptile.is-on { background: var(--sign); color: #fff; box-shadow: inset 0 0 0 3px var(--sign), inset 0 0 0 4.5px rgba(255, 255, 255, 0.92); }
.ptile.is-on .ptile__ic { color: #fff; }
.ptile.is-on span { color: rgba(255, 255, 255, 0.8); }

.proute__row { display: grid; grid-template-columns: 18px minmax(0, 210px) minmax(0, 1fr); gap: 10px; align-items: center; }
.proute__dot { justify-self: center; width: 14px; height: 14px; border: 3px solid var(--ink); border-radius: 50%; background: var(--paper); }
.proute__dot--end { border-radius: 3px; background: var(--ink); }
.proute__leg { margin-left: 8px; padding: 9px 0 9px 20px; border-left: 2px dashed var(--rule-2); font-size: 12.5px; color: var(--ink-3); }
.pplace {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1.5px var(--rule-2);
  text-align: left;
  transition: box-shadow 0.2s;
}
.pplace:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.pplace small { font-size: 12px; color: var(--ink-3); }
.pplace b { flex: 1; min-width: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pplace .ic { width: 16px; height: 16px; color: var(--ink-3); }
@media (max-width: 560px) {
  .proute__row { grid-template-columns: 18px minmax(0, 1fr); row-gap: 8px; }
  .proute__row .input { grid-column: 2; }
}
#p-detail { display: grid; gap: 16px; }
.field > .seg { display: flex; }
.field > .seg button { flex: 1; justify-content: center; }
.pgrid { display: grid; gap: 14px; }
@media (min-width: 640px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.lockin { position: relative; }
.lockin .ic { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-3); }
.lockin .input { padding-left: 40px; letter-spacing: 0.04em; }
.trange { display: flex; align-items: center; gap: 8px; }
.trange .input { flex: 1; min-width: 0; }
.stepper--sm button { width: 42px; height: 46px; }
.stepper--sm output { min-width: 50px; font-size: 22px; }
.pnote { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.pnote .rs { flex: none; width: 32px; }
.pcount { text-align: right; }
.banned {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--stop-tint);
  color: var(--stop-ink);
  animation: shake 0.45s var(--ease);
}
.banned .rs { width: 48px; }
.banned b { font-size: 15px; }
.banned p { margin-top: 2px; font-size: 13.5px; color: var(--ink-2); }
@keyframes shake {
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
.input--time { width: 130px; height: 36px; border-width: 1px; border-radius: 999px; font-size: 14px; }
.preward { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.preward__sug { display: grid; justify-items: start; gap: 6px; }
.preward__sug p { display: grid; font-size: 14px; }
.preward__sug b { font-size: 18px; }
.preward__sug span { font-size: 12.5px; color: var(--ink-3); }
.pub__submit { display: grid; gap: 10px; padding-top: 6px; }
.psum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow-1);
}
.psum > div { display: grid; }
.psum span { font-size: 12px; color: var(--ink-3); }
.psum b { font: 800 19px/1.2 "Barlow", var(--f-ui); }
.psum.is-short { box-shadow: inset 0 0 0 1.5px var(--stop); }
.pub__aside { display: grid; gap: 14px; }
.printer { position: relative; padding-top: 14px; }
.printer__slot {
  position: absolute;
  z-index: 3;
  top: 0;
  left: -12px;
  right: -12px;
  height: 28px;
  border-radius: 12px;
  background: var(--asphalt);
  box-shadow: 0 10px 16px -8px rgba(0, 0, 0, 0.35);
}
.printer__slot i { position: absolute; left: 16px; right: 16px; top: 13px; height: 4px; border-radius: 2px; background: #000; }
.printer__out { position: relative; z-index: 2; overflow: hidden; margin-top: 0; padding: 0 3px 14px; }
.printer__out .wb { margin-top: 0; }
.printer__out.is-printing .wb { animation: print 1.25s steps(16, end) both; }
@keyframes print {
  from { transform: translateY(-104%); }
  to { transform: translateY(0); }
}
.wb--preview { --notch: var(--ground); pointer-events: none; }
.pub__promise { display: grid; gap: 10px; }
.pub__promise li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.pub__promise .rs { width: 30px; }
.pvsheet .wb { --notch: var(--paper); box-shadow: 0 0 0 1px var(--rule-2); }
.pub__pv { display: none; }
@media (max-width: 1039px) { .pub__pv { display: inline-flex; } }

/* =============== orders =============== */
.seg--lg { flex: none; }
.seg--lg a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}
.seg--lg a.is-on { background: var(--paper); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-1); }
.ostats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--rule);
  box-shadow: var(--shadow-1);
}
.ostats > div { display: grid; gap: 3px; padding: 14px 16px; background: var(--paper); }
.ostats span { font-size: 12.5px; color: var(--ink-3); }
.ostats b { font: 800 24px/1.1 "Barlow", var(--f-ui); }
@media (max-width: 640px) { .ostats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ofilters { flex-wrap: wrap; margin-bottom: 16px; }
.olist { display: grid; gap: 12px; }
@media (min-width: 1000px) { .olist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.oc {
  position: relative;
  display: grid;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow-1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  animation: arrive 0.5s calc(min(var(--i), 10) * 40ms) var(--ease-out) both;
}
.oc:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.is-static .oc,
.is-static .wb,
.is-static .dims__bar i,
.msg--old { animation: none; }
.oc.is-todo { box-shadow: inset 0 0 0 2px var(--warn), var(--shadow-1); }
.oc__top { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; border-bottom: 1.5px dashed var(--rule-2); }
.oc__ttl { display: grid; flex: 1; min-width: 0; }
.oc__ttl b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc__ttl span { font-size: 12px; color: var(--ink-3); }
.oc__road { padding: 16px 8px 8px; }
.oc__foot { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px 16px; }
.oc__who { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-size: 13.5px; }
.oc__who > span:not(.pip) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc__wait { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.oc__wait .ic { width: 15px; height: 15px; }
.oc__fee { display: grid; text-align: right; font: 800 20px/1 "Barlow", var(--f-ui); }
.oc__fee small { margin-top: 3px; font: 600 11px/1 var(--f-ui); color: var(--ink-3); }
.oc__cta { position: relative; z-index: 2; }
.oc__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

/* =============== messages =============== */
.msgs__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.msgs__pane,
.chat { min-width: 0; }
@media (min-width: 900px) {
  .msgs__grid { grid-template-columns: clamp(300px, 26vw, 360px) minmax(0, 1fr); height: calc(100vh - var(--bar-h) - 190px); min-height: 520px; }
  .msgs__list,
  .msgs__pane { height: 100%; overflow: hidden; }
  .msgs__list { overflow-y: auto; }
  .msgs--chat .msgs__grid { height: calc(100vh - var(--bar-h) - 48px); margin-top: 24px; }
}
@media (max-width: 899px) {
  .msgs__pane--empty { display: none; }
  .msgs--chat { padding-inline: 0; }
  .msgs--chat .msgs__list { display: none; }
  /* a phone chat is its own full screen: its header carries the back button */
  body[data-screen="chat"] .bar { display: none; }
  .msgs--chat .msgs__pane {
    height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    box-shadow: none;
  }
  body[data-screen="chat"] .view { padding-bottom: 0; }
}
.thl { display: grid; gap: 2px; padding: 8px; }
.thl__i { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 12px; transition: background-color 0.2s; }
.thl__i:hover { background: var(--paper-2); }
.thl__i.is-on { background: var(--sign-tint); }
.thl__av { position: relative; height: 44px; }
.thl__av .cb { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; font-size: 11px; box-shadow: 0 0 0 2px var(--paper); }
.thl__body { display: grid; gap: 2px; min-width: 0; }
.thl__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.thl__row b { font-size: 15px; }
.thl__row em { font-style: normal; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.thl__route { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thl__last { min-width: 0; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thl__n { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--stop); color: #fff; font: 700 11.5px/20px "Barlow", var(--f-ui); text-align: center; }
.msgs__hint { display: grid; place-items: center; align-content: center; gap: 10px; height: 100%; color: var(--ink-3); }
.msgs__hint .ic { width: 40px; height: 40px; }

.chat { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.chat__back { display: none; }
@media (max-width: 899px) { .chat__back { display: inline-grid; margin-left: -8px; } }
.chat__who { display: grid; flex: 1; min-width: 0; }
.chat__who b { font-size: 16px; }
.chat__who span { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__task { display: flex; align-items: center; gap: 10px; margin: 10px 12px 0; padding: 10px 12px; border-radius: 12px; background: var(--paper-2); transition: background-color 0.2s; }
.chat__task:hover { background: var(--ground); }
.chat__tr { display: grid; flex: 1; min-width: 0; }
.chat__tr b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__tr span { font-size: 12px; color: var(--ink-3); }
.chat__task > .ic { width: 16px; height: 16px; color: var(--ink-3); }
.chat__msgs { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; padding: 14px 16px; overflow-y: auto; overscroll-behavior: contain; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 82%; animation: arrive 0.35s var(--ease-out); }
.msg--me { align-self: flex-end; flex-direction: row-reverse; }
.msg__b { display: grid; gap: 8px; padding: 10px 13px; border-radius: 4px 16px 16px 16px; background: var(--paper-2); font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.msg--me .msg__b { border-radius: 16px 4px 16px 16px; background: var(--sign); color: #fff; }
.msg__img { max-width: min(220px, 100%); border-radius: 10px; }
.msg__receipt { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); font-size: 13px; color: var(--ink); }
.msg__receipt .ic { width: 16px; height: 16px; }
.msg--sys { align-self: center; max-width: 90%; font-size: 12.5px; color: var(--ink-3); text-align: center; animation: none; }
.msg--sys span { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); }
.msg__time { align-self: center; margin-top: 4px; font-size: 11.5px; color: var(--ink-3); }
.dots { display: inline-flex; gap: 4px; padding: 5px 2px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: dot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot {
  0%, 60%, 100% { transform: none; opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.chat__quick { display: flex; gap: 8px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none; }
.chat__quick::-webkit-scrollbar { display: none; }
.chat__quick .chip { flex: none; height: 32px; font-size: 13px; }
.chat__form { display: flex; align-items: center; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--rule); }
.chat__form .input { flex: 1; height: 44px; border-width: 1px; border-radius: 999px; }
.chat__send { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.chat__send .ic { width: 20px; height: 20px; }
.chat__closed { padding: 16px; border-top: 1px solid var(--rule); text-align: center; font-size: 13.5px; color: var(--ink-3); }

/* =============== credit center =============== */
.c2__top { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 1000px) { .c2__top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.c2__score { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; padding: 24px; }
@media (max-width: 560px) { .c2__score { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.csign {
  display: grid;
  place-items: center;
  align-content: center;
  width: 176px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--rs-blue);
  color: #fff;
  box-shadow: inset 0 0 0 7px var(--rs-blue), inset 0 0 0 11px var(--rs-white), 0 24px 40px -24px rgba(10, 60, 140, 0.6);
}
.csign__k { margin-right: -0.4em; font: 700 12px/1 var(--f-display); letter-spacing: 0.4em; opacity: 0.85; }
.csign b { font: 800 80px/0.95 "Barlow", var(--f-ui); letter-spacing: -0.04em; }
.csign__lv { font: 900 14px/1 var(--f-display); letter-spacing: 0.1em; }
.c2__next { display: grid; gap: 12px; min-width: 0; }
.c2__next > p:not(.label) { font-size: 15px; line-height: 1.6; }
.c2__next b { font-weight: 800; }
.c2__caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.c2__caps li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--paper-2); text-align: left; }
.c2__caps span { font-size: 11.5px; color: var(--ink-3); }
.c2__caps b { font-size: 15px; }
.dims { display: grid; gap: 14px; padding: 16px 18px 20px; }
.dims li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 34px; gap: 4px 12px; align-items: center; }
.dims__k { font-size: 14px; font-weight: 700; }
.dims__bar { height: 10px; overflow: hidden; border-radius: 5px; background: var(--ground-2); }
.dims__bar i { display: block; width: calc(var(--v) * 100%); height: 100%; border-radius: inherit; background: var(--sign); animation: grow 1s var(--ease-out) both; }
@keyframes grow { from { width: 0; } }
.dims b { text-align: right; font-size: 15px; }
.dims em { grid-column: 2 / -1; font-style: normal; font-size: 12px; color: var(--ink-3); }
.c2__road { margin-bottom: 16px; }
.ms--app { margin-top: 24px; }
.cperks { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--paper-2); }
.cperks__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cperks__head b { font: 900 17px/1.2 var(--f-display); }
.cperks__head span.num { margin-right: auto; font-size: 13px; color: var(--ink-3); }
.cperks ul { display: grid; gap: 8px; }
.cperks li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.cperks li .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--go); stroke-width: 2.2; }
.cperks li.is-locked,
.cperks li.is-locked .ic { color: var(--ink-3); }
.c2__cols { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1000px) { .c2__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.c2__side { display: grid; gap: 16px; min-width: 0; }
.clog { padding: 6px 18px 14px; }
.clog li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--rule); }
.clog li:last-child { border-bottom: 0; }
.clog__d { display: grid; place-items: center; flex: none; width: 50px; height: 32px; border-radius: 8px; font: 800 16px/1 "Barlow", var(--f-ui); }
.clog__d.is-plus { background: var(--go-tint); }
.clog__d.is-minus { background: var(--stop-tint); }
.clog li > div { display: grid; min-width: 0; }
.clog b { font-size: 14.5px; font-weight: 600; }
.clog li span:not(.clog__d) { font-size: 12.5px; color: var(--ink-3); }
.clog a { color: var(--sign-ink); }
.badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 18px 18px; }
.badges li { display: grid; justify-items: center; gap: 4px; padding: 14px 8px 12px; border-radius: 12px; background: var(--paper-2); text-align: center; }
.badge2 { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 4px; padding: 13px; border-radius: 50%; background: var(--ground-2); color: var(--ink-3); }
.badges li.is-on .badge2 { background: var(--sign); color: #fff; box-shadow: inset 0 0 0 3px var(--sign), inset 0 0 0 4.5px rgba(255, 255, 255, 0.9); }
.badges b { font-size: 13.5px; }
.badges li > span:not(.badge2) { font-size: 11.5px; color: var(--ink-3); }
.badges__bar { display: block; width: 70%; height: 4px; margin-top: 4px; overflow: hidden; border-radius: 2px; background: var(--ground-2); }
.badges__bar i { display: block; width: calc(var(--v) * 100%); height: 100%; background: var(--sign); }
@media (max-width: 420px) { .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rtags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rlist { display: grid; gap: 14px; }
.rlist li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
.rlist__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rlist__top span.num { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.rlist__t { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.rlist__ref { font-size: 12px; color: var(--ink-3); }
.rlist__ref:hover { color: var(--sign-ink); }
.cr2--app { padding-top: 10px; }

/* =============== wallet =============== */
.wl__grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1000px) {
  .wl__grid { grid-template-columns: 420px minmax(0, 1fr); }
  .wl__grid > .wcard { position: sticky; top: calc(var(--bar-h) + 24px); }
}
.wcard {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 26px 24px 22px;
  border-radius: 20px;
  background: var(--rs-blue);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(10, 74, 166, 0.65);
}
.wcard::after { content: ""; position: absolute; inset: 7px; border: 2px solid rgba(255, 255, 255, 0.9); border-radius: 14px; pointer-events: none; }
.wcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wcard .label { color: rgba(255, 255, 255, 0.78); }
.wcard__chip { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 12px; }
.wcard__bal { display: flex; align-items: flex-start; gap: 4px; line-height: 1; }
.wcard__bal span { margin-top: 8px; font: 700 24px/1 "Barlow", var(--f-ui); }
.wcard__bal b { font: 800 clamp(50px, 6vw, 66px)/1 "Barlow", var(--f-ui); letter-spacing: -0.02em; }
.wcard__sub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wcard__sub dt { font-size: 12px; opacity: 0.75; }
.wcard__sub dd { font: 700 18px/1.3 "Barlow", var(--f-ui); }
.wcard__act { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wcard .btn--sign { background: #fff; color: var(--rs-blue); box-shadow: none; }
.wcard .btn--sign:hover { background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.wcard__ghost { background: rgba(255, 255, 255, 0.14); color: #fff; }
.wcard__ghost:hover { background: rgba(255, 255, 255, 0.24); }
.wcard__bc { width: 100%; height: 24px; color: rgba(255, 255, 255, 0.5); }
.wl__tx .panel__head { flex-wrap: wrap; }
.txday { padding: 14px 0 6px; }
.txday:first-child { padding-top: 2px; }
.txl li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--rule); }
.txl__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--paper-2); color: var(--ink-2); }
.txl__ic .ic { width: 19px; height: 19px; }
.txl__ic--income,
.txl__ic--advance-in,
.txl__ic--refund,
.txl__ic--topup { background: var(--go-tint); color: var(--go-ink); }
.txl__ic--escrow { background: var(--sign-tint); color: var(--sign-ink); }
.txl li > div { display: grid; min-width: 0; }
.txl li > div b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txl li > div span { font-size: 12px; color: var(--ink-3); }
.txl__a { font: 800 17px/1 "Barlow", var(--f-ui); }
.txl__a.is-plus { color: var(--go-ink); }

/* =============== me =============== */
.mehead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 22px; align-items: center; padding-block: 28px 22px; }
@media (max-width: 680px) {
  .mehead { grid-template-columns: auto minmax(0, 1fr); }
  .mehead .av { --s: 64px !important; }
  .mehead__credit { grid-column: 1 / -1; }
}
.mehead h1 { font-size: clamp(28px, 3vw, 40px); }
.mehead__info > p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }
.mehead__v { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.mehead__v .num { font-size: 13px; color: var(--ink-3); }
.vtag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border-radius: 6px; background: var(--sign); color: #fff; font-size: 12.5px; font-weight: 600; }
.vtag .ic { width: 15px; height: 15px; }
.mehead__credit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.25s, transform 0.25s var(--ease);
}
.mehead__credit:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.pip--xl { min-width: 54px; height: 54px; font-size: 20px; box-shadow: inset 0 0 0 3px var(--sign), inset 0 0 0 5px rgba(255, 255, 255, 0.9); }
.mehead__credit > span:last-child { display: grid; }
.mehead__credit b { font: 900 16px/1.3 var(--f-display); }
.mehead__credit em { display: inline-flex; align-items: center; gap: 2px; font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.mehead__credit em .ic { width: 14px; height: 14px; }
.mestats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--rule);
  box-shadow: var(--shadow-1);
}
.mestats li { display: grid; gap: 4px; padding: 16px; background: var(--paper); }
.mestats b { font: 800 28px/1 "Barlow", var(--f-ui); }
.mestats small { font-size: 0.55em; }
.mestats span { font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 560px) { .mestats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.me__grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1000px) {
  .me__grid { grid-template-columns: 340px minmax(0, 1fr); }
  .me__grid .melinks { grid-row: span 2; }
}
.melinks { display: grid; padding: 8px; }
.melinks a { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 10px; font-weight: 500; transition: background-color 0.2s; }
.melinks a:hover { background: var(--paper-2); }
.melinks a > .ic:first-child { width: 20px; height: 20px; color: var(--sign-ink); }
.melinks span { flex: 1; }
.melinks em { font-style: normal; font-size: 13.5px; color: var(--ink-3); }
.melinks a > .ic:last-child { width: 16px; height: 16px; color: var(--ink-3); }
.settings .panel__body { display: grid; padding-top: 6px; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--rule); }
.setrow:last-child { border-bottom: 0; }
.setrow > div:first-child { display: grid; gap: 2px; min-width: 0; }
.setrow b { font-size: 15px; font-weight: 600; }
.setrow > div:first-child span { font-size: 12.5px; color: var(--ink-3); }
label.setrow { cursor: pointer; }
.setrow .seg { flex: none; }
.setrow .btn .ic { width: 15px; height: 15px; }
@media (max-width: 520px) {
  .setrow { flex-wrap: wrap; }
  .setrow .seg button span { display: none; }
}
.demo__note { display: flex; gap: 8px; margin-bottom: 6px; padding: 12px 14px; border-radius: 10px; background: var(--warn-tint); color: var(--warn-ink); font-size: 13px; line-height: 1.55; }
.demo__note .ic { flex: none; width: 17px; height: 17px; margin-top: 1px; }

/* =============== rules =============== */
.rulesp .rules__row:first-of-type { margin-top: 8px; }
.rulesp__appeal { padding-block: 40px 20px; border-top: 1.5px solid var(--ink); }
.rulesp__appeal h2,
.faq h2 { margin-bottom: 18px; font-size: var(--t-xl); }
.appeal { display: grid; gap: 14px; }
@media (min-width: 900px) { .appeal { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.appeal li { display: grid; align-content: start; gap: 6px; padding: 18px; border-radius: 14px; background: var(--paper); box-shadow: var(--shadow-1); }
.appeal li .num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--paper); font: 800 14px/1 "Barlow", var(--f-ui); }
.appeal b { font-size: 16px; }
.appeal p { font-size: 14px; color: var(--ink-2); }
.faq { padding-block: 40px 24px; }
.faq details { border-top: 1px solid var(--rule-2); }
.faq details:last-child { border-bottom: 1px solid var(--rule-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--ink-3); transition: transform 0.3s var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { max-width: 46em; padding-bottom: 18px; line-height: 1.75; color: var(--ink-2); }
