:root {
  color: #151515;
  background: #fbfbfa;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --paper: #fff;
  --canvas: #fbfbfa;
  --ink: #151515;
  --muted: #5d5d5b;
  --line: #e4e4e0;
  --surface: #f3f3f0;
  --radius: 16px;
  --shell: 1184px;
  --gutter: clamp(20px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; line-height: 1.55; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:not(:disabled), select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #3c3c3a;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 8px 14px;
  color: #fff;
  background: #141414;
}
.app-header {
  position: sticky;
  z-index: 4;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}
.header-inner {
  max-width: calc(var(--shell) + var(--gutter) * 2);
  min-height: 75px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(12px, 3vw, 36px);
}
.brand {
  width: max-content;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}
.emo-brand-logo {
  display: inline-grid;
  place-items: center;
  flex: none;
  inline-size: 46px;
  block-size: 25px;
  border-radius: 6px;
  background: #030303;
}
.emo-brand-logo::before {
  content: '';
  inline-size: 76%;
  aspect-ratio: 3.75;
  background: url("./assets/emo-brand.jpg") center 50% / 136% auto no-repeat;
}
.emo-brand-logo--full {
  inline-size: 55px;
  block-size: 29px;
  border-radius: 7px;
}
.brand-name { font-size: 15px; font-weight: 740; white-space: nowrap; }
.top-nav, .bottom-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
  font-size: .875rem;
  white-space: nowrap;
}
.nav-item:hover { color: var(--ink); background: #efefec; }
.nav-item.is-active { color: var(--paper); background: var(--ink); }
.notification-anchor { position: relative; }
.notification-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  min-height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  background: #b9263d;
  color: #fff;
  font-size: .65rem;
  font-weight: 750;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.notification-anchor > .notification-badge { position: absolute; top: -5px; left: calc(100% - 4px); }
.identity-name { display: flex; align-items: center; gap: 6px; }
.identity-name > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.header-actions { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.wallet-button, .role-control select {
  height: 38px;
  border: 1px solid #dadad6;
  border-radius: 10px;
  background: #fff;
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
}
.wallet-button { display: inline-flex; gap: 7px; align-items: center; padding-inline: 10px; }
.wallet-button:hover, .role-control select:hover { background: var(--surface); }
.role-control { display: grid; position: relative; }
.role-control select { appearance: none; padding: 0 28px 0 10px; min-width: 78px; }
.role-control svg { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.bottom-nav { display: none; }
.app-main {
  width: min(100%, calc(var(--shell) + var(--gutter) * 2));
  min-height: calc(100svh - 75px);
  margin-inline: auto;
  padding: clamp(26px, 4vw, 47px) var(--gutter) 64px;
}
.app-main:focus { outline: none; }
.loading { padding: 70px 0; text-align: center; color: var(--muted); }
.center { text-align: center; margin-top: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.panel { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); }
.eyebrow {
  color: var(--muted);
  font-weight: 670;
  font-size: .875rem;
  line-height: 1.4;
}
.muted { color: var(--muted); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px 16px;
  margin-bottom: 17px;
}
.section-head h2 { font-size: clamp(1.35rem, 2.45vw, 1.9rem); letter-spacing: -.04em; }
.section-head p { color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.button {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-weight: 670;
  line-height: 1.3;
  font-size: .9375rem;
  text-align: center;
}
.button.primary { color: #fff; background: var(--ink); }
.button.primary:not(:disabled):hover { background: #363633; }
.button.secondary { border-color: #d8d8d4; background: #fff; }
.button.secondary:not(:disabled):hover, .button.quiet:not(:disabled):hover { background: var(--surface); }
.button:disabled { cursor: default; opacity: .5; }
.icon-button {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 50%;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
}
.icon-button:hover { background: var(--surface); }
.chip, .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  min-height: 26px;
  border-radius: 7px;
  padding: 4px 9px;
  color: #494947;
  background: var(--surface);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.25;
}
.status { padding: 5px 9px; font-size: .875rem; }
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #767674;
}
.status.assigned, .status.is-assigned, .status[data-status="assigned"] { background: #262626; color: white; }
.status.assigned::before, .status.is-assigned::before, .status[data-status="assigned"]::before { background: white; }
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  padding: 39px 22px;
  border: 1px dashed #dcdcd7;
  border-radius: var(--radius);
  background: #fff;
}
.empty-state strong { font-size: 1.0625rem; }
.empty-state p { color: var(--muted); }
.empty-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 3px; border-radius: 50%; background: var(--surface); }

.customer-page { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 45px); }
.service-grid { gap: clamp(12px, 1.65vw, 20px); }
.service-card { display: flex; flex-direction: column; overflow: hidden; transition: border-color 150ms ease; }
.service-card:hover { border-color: #b7b7b3; }
.service-media {
  display: block;
  width: 100%;
  aspect-ratio: 1.97;
  overflow: hidden;
  position: relative;
  border: 0;
  padding: 0;
  background: #e7e7e4;
}
.service-media:focus-visible { outline-offset: -4px; }
.service-media img, img.service-media { width: 100%; height: 100%; object-fit: cover; }
img.service-media { height: auto; }
.service-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border-radius: 7px;
  background: #fff;
  font-size: .8125rem;
  font-weight: 620;
}
.service-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; gap: 8px; }
.service-body h3 { font-size: clamp(1.08rem, 2vw, 1.35rem); }
.service-body p { color: var(--muted); font-size: .9375rem; }
.service-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-block: 3px 5px; }
.service-price { font-weight: 800; color: var(--ink); }
.service-price strong { font-size: 1.3rem; letter-spacing: -.045em; }
.service-price small { color: var(--muted); font-size: .875rem; font-weight: 620; }
.service-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.customer-heading, .staff-header { display: grid; gap: 9px; }
.customer-heading > div, .staff-header > div { display: grid; gap: 9px; }
.customer-heading h1, .staff-header h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.065em; }
.customer-heading p, .staff-header p { color: var(--muted); }
.customer-heading h1 + p, .staff-header h1 + p { max-width: 42rem; }
.companion-top { display: flex; align-items: center; gap: 12px; }
.companion-top h2 { font-size: 1.15rem; }
.companion-top .status { margin-left: auto; }
.companion-card { display: grid; gap: 14px; align-content: start; padding: clamp(16px, 2vw, 22px); }
.companion-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fafafa;
  background: #363634;
  font-size: 1.15rem;
  font-weight: 760;
}
.companion-rating, .companion-actions, .match-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.customer-toolbar { align-items: center; margin-bottom: 0; }
.companion-rating { color: var(--muted); font-size: .875rem; }
.account-grid { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.45fr); gap: 20px; align-items: start; }
.wallet-card { display: grid; gap: 17px; padding: clamp(17px, 2.75vw, 28px); }
.wallet-card > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wallet-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.wallet-summary strong { font-size: 2rem; line-height: 1.1; letter-spacing: -.06em; }
.ledger-panel { padding: clamp(17px, 2.75vw, 28px); }
.ledger-row > div, .feed-content { display: grid; gap: 3px; text-align: left; overflow-wrap: anywhere; }
.ledger-amount { margin-left: auto; text-align: right !important; }
.ledger-icon, .feed-icon { display: inline-grid; place-items: center; background: var(--surface); border-radius: 11px; width: 40px; height: 40px; flex: 0 0 auto; }
.ledger-row .muted, .feed-row .muted { font-size: .875rem; }
.ledger-list, .order-list, .feed { list-style: none; padding: 0; display: grid; gap: 10px; }
.ledger-list > *, .feed-row { display: flex; align-items: center; gap: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.feed-row { align-items: flex-start; padding: 15px 18px; border: 1px solid var(--line); background: white; border-radius: 12px; }
.feed { padding: 12px; }
.feed-row:hover { background: var(--canvas); }
.feed-meta { margin-left: auto; flex: 0 0 auto; }
.feed-row p, .ledger-list p, .ledger-list time, .feed-row time, .order-meta { color: var(--muted); font-size: .875rem; }
.order-row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 13px; text-align: left; padding: 15px 17px; }
.order-row:hover { border-color: #b7b7b3; }
.order-main { display: grid; gap: 3px; min-width: 0; }
.order-meta { display: flex; gap: 7px 12px; align-items: center; flex-wrap: wrap; }

.staff-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.staff-metric { padding: clamp(15px, 2vw, 22px); display: grid; gap: 4px; }
.staff-metric strong { font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -.055em; }
.staff-list { display: grid; gap: 13px; }
.staff-order-card { padding: clamp(15px, 2vw, 24px); display: grid; gap: 12px; }
.staff-order-head, .staff-order-meta, .staff-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 13px; }
.staff-order-head { justify-content: space-between; }
.staff-order-head h2 { font-size: 1.2rem; }
.staff-order-head h3 { font-size: 1.2rem; margin-top: 4px; }
.staff-order-amount { font-size: 1.3rem; }
.staff-order-amount small { font-size: .875rem; }
.staff-order-requirement { overflow-wrap: anywhere; }
.staff-order-meta { color: var(--muted); font-size: .9rem; }
.staff-actions { justify-content: flex-end; }

.ops-orders-page,
.ops-order-section { display: grid; gap: 9px; }
.ops-orders-page { gap: 16px; }
.ops-orders-heading h1 { font-size: clamp(1.5rem, 3vw, 1.9rem); letter-spacing: -.04em; }
.ops-order-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 8px 0;
  border-radius: 12px;
}
.ops-order-summary > div { display: grid; gap: 1px; padding: 0 4px; text-align: center; }
.ops-order-summary > div + div { border-inline-start: 1px solid var(--line); }
.ops-order-summary dt, .ops-order-section-heading > span { color: var(--muted); font-size: .75rem; }
.ops-order-summary dd { font-size: 1.06rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ops-order-section-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 3px 10px; }
.ops-order-section-heading h2 { font-size: 1.02rem; }
.ops-order-section > .empty-state { min-height: 0; padding: 19px 12px; }
.ops-order-section > .empty-state .empty-icon { display: none; }
.ops-order-list { display: grid; gap: 7px; }
.ops-order-row {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 8px;
  padding: 8px clamp(9px, 3vw, 14px);
  border-radius: 12px;
  text-align: start;
  touch-action: manipulation;
}
.ops-order-row:hover { border-color: #bdbdba; }
.ops-order-row:active { background: var(--surface); }
.ops-order-row > svg { color: var(--muted); }
.ops-order-copy, .ops-order-side { display: grid; gap: 2px; min-width: 0; }
.ops-order-name, .ops-order-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-order-name { font-size: .9rem; line-height: 1.3; }
.ops-order-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; }
.ops-order-meta .status { min-height: 18px; gap: 4px; padding: 2px 6px; border-radius: 5px; font-size: .69rem; white-space: nowrap; }
.ops-order-meta .status::before { width: 4px; height: 4px; }
.ops-order-meta time, .ops-order-note { color: var(--muted); font-size: .74rem; line-height: 1.3; }
.ops-order-meta time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ops-order-side { justify-items: end; line-height: 1.3; white-space: nowrap; }
.ops-order-price strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.ops-order-price small, .ops-order-applicants, .ops-order-deadline { color: var(--muted); font-size: .72rem; }
.ops-order-applicants.has-applicants { color: #186047; font-weight: 650; }

.staff-candidate-list { display: grid; gap: 8px; }
.staff-candidate { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; }
.staff-candidate:has(input:checked) { border-color: #4c4c48; background: var(--surface); }
.staff-candidate input { margin: 5px 0 0; }
.staff-candidate-stats { display: flex; flex-wrap: wrap; gap: 5px 10px; color: var(--muted); font-size: .875rem; }
.staff-detail-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.staff-detail-pairs > div { overflow-wrap: anywhere; }
.staff-detail-wide { grid-column: 1 / -1; }
.staff-detail-pairs dt { color: var(--muted); font-size: .875rem; }
.staff-detail-pairs dd { margin-top: 2px; font-weight: 620; }
.staff-timeline, .staff-form { display: grid; gap: 12px; }
.staff-timeline { padding-left: 22px; }
.staff-timeline time { margin-left: 10px; font-size: .875rem; color: var(--muted); }
.staff-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.staff-form legend { margin-bottom: 8px; font-weight: 650; }

.app-dialog {
  width: min(calc(100vw - 32px), 565px);
  max-height: min(calc(100dvh - 38px), 780px);
  overscroll-behavior: contain;
  overflow: auto;
  border: 1px solid #dadad6;
  border-radius: 22px;
  padding: clamp(19px, 5vw, 34px);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 22px 75px #1818182b;
}
.app-dialog::backdrop { background: #15151569; }
#dialog-content { display: grid; gap: 16px; }
.dialog-close { position: absolute; top: 14px; right: 14px; }
.dialog-heading { display: grid; gap: 6px; padding-right: 40px; }
.dialog-heading h2 { font-size: clamp(1.45rem, 4vw, 1.9rem); letter-spacing: -.055em; }
.dialog-heading p { color: var(--muted); }
.dialog-summary { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--surface); border-radius: 11px; padding: 13px; }
.dialog-summary > *, .detail-row { overflow-wrap: anywhere; }
.dialog-summary > div { display: grid; gap: 2px; }
.recharge-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; border: 0; margin: 0; padding: 0; }
.recharge-options legend { margin-bottom: 8px; font-weight: 640; }
.recharge-option { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 55px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.recharge-option:has(input:checked) { border-color: #4c4c48; background: var(--surface); }
.field { display: grid; gap: 5px; min-width: 0; font-size: .9375rem; font-weight: 630; }
.field textarea, .field input:not([type="radio"]):not([type="checkbox"]), .field select {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #d5d5d0;
  border-radius: 9px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  font-size: 1rem;
}
.field textarea { min-height: 83px; resize: vertical; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--ink); }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.form-feedback { color: #8e282e; background: #fff3f3; border-radius: 9px; padding: 8px 11px; margin-top: 14px; }
.timeline { list-style: none; display: grid; gap: 14px; padding: 0; }
.timeline-item { position: relative; padding-left: 19px; overflow-wrap: anywhere; }
.timeline-item::before { content: ""; position: absolute; top: .6em; left: 0; width: 7px; height: 7px; border-radius: 50%; background: #454541; }
.timeline-item p, .timeline-item time { color: var(--muted); font-size: .875rem; }
.timeline-time { margin-left: 8px; color: var(--muted); font-size: .875rem; }
.receipt-panel, .timeline-panel { display: grid; gap: 8px; }
.receipt-instructions { padding: 10px 12px; border-radius: 9px; background: var(--surface); }
.receipt-instructions strong { margin-right: 5px; }
.receipt-grid { display: grid; gap: 8px; }
.detail-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-block: 7px; border-bottom: 1px solid var(--line); }
.detail-row > :first-child { color: var(--muted); flex-shrink: 0; }
.check-in-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check-in-stats > div { background: var(--surface); border-radius: 12px; padding: 14px; }
.check-in-stats dt { font-size: .875rem; color: var(--muted); }
.check-in-stats dd { margin-top: 2px; font-size: 1.55rem; font-weight: 740; }
.check-in-stats dd small { font-size: .875rem; }
.check-in-result { display: flex; align-items: center; gap: 8px; font-weight: 670; }
.support-desk { max-width: 760px; }
.support-desk-panel { padding: clamp(14px, 3vw, 24px); }
.support-desk-panel .section-head { margin-bottom: 0; }
.support-view, .support-compose { min-width: 0; }
.support-compose { display: grid; gap: 9px; }
.support-compose > .button { justify-self: end; }
.support-heading, .support-inbox-entry { display: flex; gap: 12px; align-items: center; }
.support-heading { padding-right: 35px; }
.support-heading h2 { font-size: clamp(1.28rem, 4vw, 1.65rem); }
.support-avatar { display: inline-grid; width: 42px; height: 42px; place-items: center; flex: 0 0 auto; color: white; background: var(--ink); border-radius: 12px; }
.support-inbox-entry { width: 100%; text-align: left; padding: 14px 16px; }
.support-inbox-entry:hover { background: var(--surface); }
.support-entry-copy { display: grid; text-align: left; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.support-entry-copy .muted { font-size: .875rem; }
.support-faq { display: grid; gap: 7px; }
.support-faq details { background: var(--surface); border-radius: 9px; padding: 7px 10px; }
.support-faq summary { cursor: pointer; font-size: .875rem; font-weight: 620; min-height: 29px; align-content: center; }
.support-faq details p { margin: 5px 0 2px; color: var(--muted); font-size: .875rem; }
.support-thread { max-height: min(36dvh, 320px); overflow: auto; min-height: 0; padding: 12px; border: 1px solid var(--line); border-radius: 13px; list-style: none; display: grid; gap: 12px; }
.support-desk .support-thread { max-height: min(55dvh, 460px); }
.support-message { display: grid; gap: 4px; justify-items: start; }
.support-message.own { justify-items: end; }
.support-message.system { justify-items: center; }
.support-message-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; }
.support-thread-empty { font-size: .875rem; }
.support-entry-time { font-size: .8125rem; white-space: nowrap; }
.support-message time, .support-message .muted { font-size: .8125rem; color: var(--muted); }
.support-bubble { max-width: min(82%, 360px); overflow-wrap: anywhere; white-space: pre-wrap; padding: 8px 11px; border-radius: 11px; background: var(--surface); }
.support-message.own .support-bubble { background: var(--ink); color: white; }
.support-message.system .support-bubble { font-size: .875rem; color: var(--muted); text-align: center; }
.notice {
  position: fixed;
  z-index: 7;
  right: var(--gutter);
  bottom: 26px;
  max-width: min(375px, calc(100% - 2 * var(--gutter)));
  padding: 12px 16px;
  border-radius: 12px;
  background: #222;
  color: #fff;
  font-size: .9375rem;
  box-shadow: 0 6px 20px #14141422;
}
.notice-error { background: #74282a; }
#services { scroll-margin-top: 96px; }

@media (max-width: 920px) {
  .header-inner { gap: 13px; }
  .nav-item { padding-inline: 10px; gap: 5px; }
  .top-nav .nav-item svg { display: none; }
}
@media (max-width: 700px) {
  .header-inner { min-height: 62px; grid-template-columns: 1fr auto; }
  .top-nav { display: none; }
  .bottom-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-items: stretch;
    position: fixed;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 0;
    gap: 0;
    padding: 5px 10px calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #fff;
  }
  .bottom-nav .nav-item { flex-direction: column; min-height: 49px; gap: 2px; border-radius: 12px; font-size: .8125rem; }
  .bottom-nav .notification-badge { position: absolute; top: 1px; left: calc(50% + 5px); }
  .bottom-nav .nav-item.is-active { background: var(--surface); color: var(--ink); }
  .app-main { min-height: calc(100svh - 62px); padding-top: 19px; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .brand .emo-brand-logo { inline-size: 43px; block-size: 23px; }
  .brand-name { font-size: .9375rem; }
  .notice { bottom: calc(74px + env(safe-area-inset-bottom)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .service-body { padding: 12px; }
  .service-body p { font-size: .875rem; }
  .service-category { top: auto; bottom: 8px; left: 8px; padding: 3px 7px; }
  .service-tags { gap: 4px; }
  .service-tags .chip { padding-inline: 6px; }
  .service-footer { flex-wrap: wrap; }
  .service-footer .button { padding-inline: 9px; min-height: 38px; font-size: .875rem; }
  .account-grid { grid-template-columns: minmax(0, 1fr); }
  #services { scroll-margin-top: 75px; }
}
@media (max-width: 400px) {
  :root { --gutter: 15px; }
  .header-actions { gap: 5px; }
  .wallet-button { padding-inline: 7px; }
  .brand { gap: 6px; }
  .companion-grid { grid-template-columns: 1fr; }
  .service-grid { gap: 8px; }
  .service-body { padding-inline: 9px; }
  .order-row, .feed-row { padding-inline: 12px; }
}

body.customer-shell {
  --customer-paper: #ededee;
  --customer-surface: #fff;
  --customer-ink: #1d1d1c;
  --customer-muted: #5c5c60;
  --customer-line: #dedee1;
  --customer-shadow: 0 9px 28px rgba(29, 29, 32, .08);
  --customer-serif: "Iowan Old Style", "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", SimSun, Georgia, serif;
  --paper: var(--customer-surface);
  --canvas: var(--customer-paper);
  --ink: var(--customer-ink);
  --muted: var(--customer-muted);
  --line: var(--customer-line);
  --surface: #f3f3f4;
  --radius: 22px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
}

.customer-shell .app-header {
  border-color: rgba(255, 255, 255, .7);
  background: rgba(237, 237, 238, .87);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.customer-shell .top-nav {
  padding: 4px;
  border: 1px solid var(--paper);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 4px 15px rgba(29, 29, 32, .06);
}
.customer-shell .top-nav .nav-item { padding-inline: clamp(10px, 1.35vw, 17px); }
.customer-shell :is(.wallet-button, .role-control select) { border-radius: 999px; border-color: var(--line); }
.customer-shell .button { border-radius: 999px; }
.customer-shell .button.secondary { border-color: var(--line); }
.customer-shell :is(.chip, .status) { border-radius: 999px; }
.customer-shell :is(.companion-card, .wallet-card, .ledger-panel, .feed, .order-row, .support-inbox-entry) {
  border-color: rgba(255, 255, 255, .9);
  box-shadow: var(--customer-shadow);
}
.customer-shell :is(.companion-avatar, .ledger-icon, .feed-icon, .support-avatar) { border-radius: 50%; }
.customer-shell :is(.customer-heading h1, .customer-section .section-head h2, .dialog-heading h2) {
  font-family: var(--customer-serif);
  font-weight: 650;
  letter-spacing: -.035em;
}
.customer-shell .app-dialog { border-color: #fff; border-radius: 28px; }
.customer-shell .app-dialog::backdrop { background: rgba(27, 27, 30, .43); }
.customer-shell :is(.dialog-summary, .recharge-option, .receipt-instructions) { border-radius: 15px; }
.customer-shell .field :is(textarea, input:not([type="radio"]):not([type="checkbox"]), select) {
  border-color: var(--line);
  border-radius: 14px;
  background: #fafafa;
}

.customer-shell .app-dialog:has(.service-poster) {
  --poster-height: min(calc(100dvh - 40px), 850px);
  --poster-gutter: clamp(19px, 6vw, 28px);
  width: min(calc(100% - 32px), 480px);
  height: var(--poster-height);
  max-height: var(--poster-height);
  padding: 0;
  border: 0;
  background: #080808;
  color: #fff;
  scrollbar-width: none;
}

.customer-shell .app-dialog:has(.service-poster-back) > .dialog-close { display: none; }

.service-poster {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: var(--poster-height);
  background: #080808;
}

.service-poster-nav {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(18px, calc(env(safe-area-inset-top) + 12px)) var(--poster-gutter) 12px;
  background: #080808;
}

.service-poster :is(.service-poster-back, .service-poster-favorite .project-favorite, .service-poster-support) {
  display: grid;
  width: clamp(48px, 13vw, 56px);
  height: clamp(48px, 13vw, 56px);
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: #fff;
  color: #080808;
}

.service-poster-favorite .project-favorite[aria-pressed="true"] {
  border-color: #fff;
  background: #282828;
  color: #fff;
}

.service-poster-favorite .project-favorite[aria-pressed="true"] svg { fill: #fff; }
.service-poster-nav button:focus-visible { outline-color: #fff; }

.service-poster-body {
  container-type: inline-size;
  flex: 1;
  padding: 13px var(--poster-gutter) 32px;
}

.service-poster-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid #393939;
}

.service-poster-brand .brand-name,
.service-poster-heading > p {
  color: #cecece;
  font-size: .78rem;
}

.service-poster-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: clamp(7px, 2vw, 12px);
  align-items: center;
  margin-top: clamp(28px, 8vw, 43px);
  margin-bottom: clamp(24px, 7vw, 37px);
}

.service-poster-heading h2 {
  margin-bottom: 6px;
  font-size: clamp(2rem, 11.5cqi, 3.35rem);
  font-weight: 820;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}

.service-poster-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 7px;
  row-gap: 2px;
  margin-top: 14px;
}

.service-poster-price strong {
  font-size: clamp(3.3rem, 22.2cqi, 6rem);
  font-weight: 810;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.08em;
  line-height: .96;
  overflow-wrap: anywhere;
}

.service-poster-price span {
  color: #dedede;
  font-size: .78rem;
  white-space: nowrap;
}

.service-poster-art {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  align-self: end;
  object-fit: contain;
}

.service-poster-highlight {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(8px, 3vw, 15px);
  padding: clamp(14px, 5cqi, 24px) 12px;
  background: #f9f9f9;
  color: #080808;
}

.service-poster-highlight span {
  align-self: center;
  margin-inline-end: clamp(2px, 4cqi, 14px);
  font-size: .93rem;
  font-weight: 760;
}

.service-poster-highlight strong {
  font-size: clamp(3.7rem, 21cqi, 6.5rem);
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.07em;
  line-height: .94;
}

.service-poster-highlight small { font-size: 1.15rem; font-weight: 710; }

.service-poster-sales {
  margin: clamp(18px, 6cqi, 29px) 0 clamp(36px, 14cqi, 57px);
  color: #aaa;
  font-size: .78rem;
  text-align: center;
}

.service-poster-details {
  display: grid;
  gap: 9px;
  padding-top: 20px;
  border-top: 1px solid #393939;
}

.service-poster-details h3 { font-size: clamp(1.25rem, 5cqi, 1.7rem); }
.service-poster-details p { color: #d0d0d0; font-size: .9rem; }
.service-poster-details .service-tags { margin-top: 3px; }
.service-poster-details .chip { border-color: #454545; background: #252525; color: #eee; }

.service-poster-footer {
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 4vw, 18px);
  padding: 14px var(--poster-gutter) calc(14px + env(safe-area-inset-bottom));
  border-radius: 23px 23px 0 0;
  background: #efefef;
}

.service-poster-footer .service-poster-support { border-color: #9f9f9f; }
.service-poster-footer .button.primary {
  width: 100%;
  min-height: clamp(49px, 13vw, 57px);
  background: #080808;
  color: #fff;
  font-size: 1rem;
  font-weight: 740;
}

.service-poster-footer .button.primary:hover { background: #303030; }

@media (max-width: 700px) {
  .customer-shell .bottom-nav {
    max-width: 460px;
    left: var(--gutter);
    right: var(--gutter);
    bottom: calc(10px + env(safe-area-inset-bottom));
    gap: 3px;
    margin-inline: auto;
    padding: 5px;
    border: 1px solid #e4e4e4;
    border-radius: 999px;
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 3px 13px rgba(29, 29, 32, .05);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .customer-shell .bottom-nav .nav-item { min-height: 47px; border-radius: 999px; color: #696969; }
  .customer-shell .bottom-nav .nav-item.is-active { color: #151515; background: #f1f1f2; }
  .customer-shell .bottom-nav .nav-item.is-active svg { stroke-width: 2.1; }
  .customer-shell .app-main { padding-bottom: calc(95px + env(safe-area-inset-bottom)); }
  .customer-shell .notice { bottom: calc(83px + env(safe-area-inset-bottom)); }
  .customer-shell .app-dialog:has(.service-poster) {
    --poster-height: 100dvh;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.fulfillment-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.fulfillment-summary { padding: 12px; border-radius: 12px; background: var(--surface); }
.fulfillment-panel p { overflow-wrap: anywhere; }
.fulfillment-note { white-space: pre-wrap; }
.fulfillment-details { border: 1px solid var(--line); border-radius: 12px; }
.fulfillment-details > summary { padding: 11px 12px; font-weight: 650; cursor: pointer; }
.fulfillment-details > form { padding: 0 12px 12px; }

.companion-workbench { width: min(100%, 640px); margin-inline: auto; }
.companion-workbench :is(h2, .companion-workbench-note) { margin: 0; }
.companion-workbench h2 { font-size: 1.13rem; }
.companion-workbench-profile {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: clamp(15px, 4vw, 23px);
}
.companion-workbench-profile h1 {
  margin: 2px 0 4px;
  font-size: clamp(1.45rem, 6vw, 1.95rem);
  line-height: 1.13;
  overflow-wrap: anywhere;
}
.companion-workbench-avatar {
  display: grid;
  place-items: center;
  width: clamp(49px, 15vw, 72px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
}
.companion-workbench-avatar img { width: 100%; height: 100%; object-fit: cover; }
.companion-profile-id { margin: 0; color: var(--muted); font-size: .73rem; overflow-wrap: anywhere; }
.companion-profile-bio { grid-column: 1 / -1; padding: 12px 14px; border-radius: 13px; background: var(--surface); }
.companion-profile-bio > strong { font-size: .8rem; }
.companion-profile-bio p { margin: 5px 0 0; color: var(--muted); font-size: .88rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.companion-profile-edit { min-height: 44px; min-width: 0; padding-inline: 10px; font-size: .79rem; white-space: nowrap; }
.companion-workbench-metrics { gap: 7px; }
.companion-workbench-metrics .staff-metric { min-width: 0; padding: clamp(8px, 3vw, 16px); }
.companion-workbench-metrics .staff-metric > span { font-size: clamp(.69rem, 3.2vw, .82rem); }
.companion-workbench-metrics .staff-metric strong { overflow-wrap: anywhere; }
.companion-workbench-metrics .staff-metric small,
.companion-workbench-note { font-size: .77rem; }
.companion-account-support {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  min-height: 48px;
  color: var(--ink);
  text-align: start;
}
.companion-booking {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 11px;
  padding: 14px;
}

#companion-presence-dock {
  position: fixed;
  z-index: 6;
  inset-inline-end: max(var(--gutter), calc((100% - var(--shell)) / 2));
  bottom: max(20px, env(safe-area-inset-bottom));
}
.companion-presence-toggle {
  --presence-surface: #fff2f2;
  --presence-border: #edd0d3;
  --presence-ink: #8f3040;
  --presence-track: #c75666;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--presence-border);
  border-radius: 999px;
  background: var(--presence-surface);
  color: var(--presence-ink);
  box-shadow: 0 4px 16px #21161a12;
  font-size: .8125rem;
  font-weight: 670;
  white-space: nowrap;
  touch-action: manipulation;
}
.companion-presence-toggle[aria-checked="true"] {
  --presence-surface: #eaf8f0;
  --presence-border: #bfdfca;
  --presence-ink: #17583c;
  --presence-track: #318660;
}
.companion-presence-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.companion-presence-track { position: relative; width: 28px; height: 16px; border-radius: 12px; background: var(--presence-track); }
.companion-presence-track::after {
  content: '';
  position: absolute;
  inset: 2px auto auto 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: transform 150ms ease;
}
.companion-presence-toggle[aria-checked="true"] .companion-presence-track::after { transform: translateX(12px); }
.companion-presence-toggle:disabled { opacity: .74; }
#companion-presence-dialog:not([hidden]) {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  padding-inline-end: 48px;
  background: var(--paper);
  width: fit-content;
}
#companion-presence-dialog .companion-presence-toggle { box-shadow: none; }
.companion-presence-visible .app-main { padding-bottom: 86px; }
.companion-presence-visible .notice { bottom: 76px; }
@media (max-width: 700px) {
  #companion-presence-dock { bottom: calc(65px + env(safe-area-inset-bottom)); }
  .companion-presence-visible .app-main { padding-bottom: calc(124px + env(safe-area-inset-bottom)); }
  .companion-presence-visible:not(:has(.chat-room)) .notice { bottom: calc(118px + env(safe-area-inset-bottom)); }
  .companion-presence-visible:has(.chat-room) #companion-presence-dock {
    top: calc(max(4px, env(safe-area-inset-top)) + 3px);
    inset-inline-end: max(8px, env(safe-area-inset-right));
    bottom: auto;
  }
  .companion-presence-visible .chat-title { grid-template-columns: minmax(42px, 1fr) minmax(0, 2.5fr) 117px; }
}
@media (prefers-reduced-motion: reduce) {
  .companion-presence-track::after { transition: none; }
}
.companion-profile-editor [hidden] { display: none; }
.companion-profile-editor :is(input,textarea,select) { font-size: 1rem; }
.companion-profile-editor .account-profile-avatar .stack { gap: 2px; }
.companion-voice-editor {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.companion-voice-editor legend { padding-inline: 4px; font-weight: 680; }
.companion-voice-editor p { margin: 0; font-size: .82rem; }
.companion-voice-editor audio { width: 100%; }
.companion-voice-controls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.companion-voice-controls .button { min-height: 44px; padding-inline: 10px; font-size: .82rem; }

.companion-level-panel, .order-commission-panel {
  display: grid;
  gap: 12px;
  padding: 15px;
  overflow-wrap: anywhere;
}

.companion-level-panel > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.companion-level-panel p { margin: 3px 0 0; color: var(--muted); font-size: .84rem; }
.companion-level-rate { display: grid; justify-items: end; flex-shrink: 0; }
.companion-level-rate strong { font-size: clamp(1.4rem, 6vw, 1.8rem); line-height: 1; }
.companion-level-rate small { font-size: .75rem; color: var(--muted); }
.companion-level-rules { border-top: 1px solid var(--line); padding-top: 11px; }
.companion-level-rules summary { cursor: pointer; font-weight: 650; }
.companion-level-rules table { width: 100%; margin-block: 8px; border-collapse: collapse; }
.companion-level-rules th, .companion-level-rules td { padding: 6px 4px; text-align: center; }
.companion-level-rules tbody .current-tier { background: var(--surface); }

.achievement-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
.achievement-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 21px;
  padding: 1px 6px 1px 3px;
  border: 1px solid var(--achievement-border);
  border-radius: 6px;
  background: var(--achievement-surface);
  color: var(--achievement-ink);
  font-size: .69rem;
  font-weight: 680;
  line-height: 1.2;
  white-space: nowrap;
}
.achievement-seal {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--achievement-ink);
}
.achievement-seal svg { width: 100%; height: 100%; }
[data-achievement-color="bronze"] {
  --achievement-ink: #744c34; --achievement-surface: #faf3eb; --achievement-border: #ecddcd;
}
[data-achievement-color="blue"] {
  --achievement-ink: #365574; --achievement-surface: #f0f4f8; --achievement-border: #dee6ee;
}
[data-achievement-color="gold"] {
  --achievement-ink: #76591d; --achievement-surface: #faf4e6; --achievement-border: #ebe0c7;
}
[data-achievement-color="violet"] {
  --achievement-ink: #64467d; --achievement-surface: #f4eff8; --achievement-border: #e6ddec;
}
[data-achievement-color="teal"] {
  --achievement-ink: #2f6459; --achievement-surface: #eef5f2; --achievement-border: #dce9e3;
}
[data-achievement-color="brick"] {
  --achievement-ink: #7d504c; --achievement-surface: #f8efed; --achievement-border: #ebded9;
}
[data-achievement-color="indigo"] {
  --achievement-ink: #49577b; --achievement-surface: #eff1f8; --achievement-border: #e0e3ed;
}
.companion-achievements {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  text-align: left;
}
.achievement-entry-symbol {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e6ddec;
  border-radius: 13px;
  color: #64467d;
  background: linear-gradient(150deg, #fff, #f4eff8);
}
.achievement-entry-title { font-size: .98rem; }
.achievement-entry-count { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.companion-achievements > svg { color: var(--muted); }
.achievement-dialog { display: grid; gap: 17px; min-width: 0; }
.achievement-dialog > .dialog-heading { padding-inline-end: 42px; }
.achievement-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 2.5vw, 10px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.achievement-matrix > li { min-width: 0; }
.achievement-tile {
  width: 100%;
  height: 100%;
  min-height: 104px;
  min-width: 0;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 9px;
  padding: 11px 4px 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
}
.achievement-tile[data-earned="true"] { border-color: var(--achievement-border); }
.achievement-tile:active { background: var(--achievement-surface); }
.achievement-tile-name { max-width: 100%; font-size: .79rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.achievement-medallion {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--achievement-border);
  border-radius: 15px;
  background: linear-gradient(155deg, #fff 10%, var(--achievement-surface) 75%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .65);
}
.achievement-medallion > .achievement-seal { width: 27px; height: 27px; }
.achievement-earned-mark {
  position: absolute;
  right: -4px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid var(--paper);
  border-radius: 50%;
  background: var(--achievement-ink);
  color: #fff;
}
[data-earned="false"] > .achievement-medallion {
  --achievement-ink: #656562;
  --achievement-border: #e8e6e2;
  --achievement-surface: #f3f2ef;
}
.achievement-back {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  gap: 4px;
  padding: 0 6px 0 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 650;
}
.achievement-detail-heading {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  overflow-wrap: anywhere;
}
.achievement-detail-heading > .achievement-medallion { width: 70px; height: 70px; border-radius: 20px; }
.achievement-detail-heading .achievement-seal { width: 38px; height: 38px; }
.achievement-detail-heading .achievement-earned-mark { width: 21px; height: 21px; }
.achievement-detail[data-earned="false"] .achievement-detail-heading > .achievement-medallion {
  --achievement-ink: #656562;
  --achievement-border: #e8e6e2;
  --achievement-surface: #f3f2ef;
}
.achievement-detail-state {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: .75rem;
}
.achievement-detail[data-earned="true"] .achievement-detail-state {
  border-color: var(--achievement-border);
  color: var(--achievement-ink);
  background: var(--achievement-surface);
}
.achievement-description { color: var(--muted); font-size: .87rem; text-align: center; overflow-wrap: anywhere; }
.achievement-goals { display: grid; gap: 12px; }
.achievement-goals h3 { font-size: .95rem; }
.achievement-criteria { display: grid; gap: 12px; margin: 0; }
.achievement-criterion { position: relative; padding-block-end: 9px; display: flex; justify-content: space-between; gap: 8px; }
.achievement-criterion dt { font-size: .83rem; overflow-wrap: anywhere; }
.achievement-criterion dd { margin: 0; color: var(--muted); white-space: nowrap; font-size: .8rem; font-variant-numeric: tabular-nums; }
.achievement-criterion meter { position: absolute; inset: auto 0 0; width: 100%; height: 5px; }
.achievement-criterion meter::-webkit-meter-bar { background: var(--surface); border: 0; border-radius: 3px; }
.achievement-criterion meter::-webkit-meter-optimum-value { background: var(--achievement-ink); border-radius: 3px; }
.achievement-criterion meter::-moz-meter-bar { background: var(--achievement-ink); border-radius: 3px; }
.achievement-footnote { font-size: .75rem; color: var(--muted); }

.order-review {
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.order-review-header { display: grid; gap: 3px; }
.order-review-header p, .order-review-score small { color: var(--muted); font-size: .83rem; }
.order-review-stars { min-width: 0; margin: 0; padding: 0; border: 0; }
.order-review-stars legend { margin-bottom: 8px; font-weight: 650; }
.order-review-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.order-review-star { position: relative; min-width: 0; cursor: pointer; }
.order-review-star-face {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 51px;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 650;
}
.order-review-star:has(:checked) .order-review-star-face { border-color: var(--ink); color: var(--paper); background: var(--ink); }
.order-review-star:has(:checked) svg { fill: currentColor; }
.order-review-star input:focus-visible + .order-review-star-face { outline: 2px solid var(--ink); outline-offset: 2px; }
.order-review .form-feedback { margin: 0; }
.order-review-comment { white-space: pre-wrap; overflow-wrap: anywhere; }
.order-review-traits { min-width: 0; padding: 0; border: 0; margin: 0; }
.order-review-traits legend { margin-bottom: 8px; font-weight: 650; }
.order-review-traits legend small { font-size: .71rem; font-weight: 500; }
.review-trait-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.review-trait-option { position: relative; min-width: 0; cursor: pointer; }
.review-trait-face {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: .77rem;
  line-height: 1.25;
}
.review-trait-face svg { flex: none; }
.review-trait-option input:checked + .review-trait-face {
  border-color: #5b615f;
  color: #202724;
  background: #eef3ef;
}
.review-trait-option input:focus-visible + .review-trait-face { outline: 2px solid var(--ink); outline-offset: 2px; }
.review-trait-check { visibility: hidden; margin-left: auto; }
.review-trait-option input:checked + .review-trait-face .review-trait-check { visibility: visible; }
.review-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.review-tags li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border: 1px solid #e7e8e3;
  border-radius: 6px;
  background: #f3f4f1;
  color: #47524a;
  font-size: .74rem;
}

.withdrawal-workbench, .withdrawal-record {
  padding: clamp(13px, 4vw, 19px);
}
.withdrawal-workbench, .withdrawal-list, .withdrawal-record,
.withdrawal-detail, .withdrawal-history {
  display: grid;
  gap: 11px;
  min-width: 0;
}
.withdrawal-head, .withdrawal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.withdrawal-meta { justify-content: flex-start; color: var(--muted); font-size: .82rem; }
.withdrawal-balance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.withdrawal-balance > div { border-radius: 11px; background: var(--surface); padding: 9px 10px; min-width: 0; }
.withdrawal-balance dt { color: var(--muted); font-size: .8rem; }
.withdrawal-balance dd { font-weight: 730; margin-top: 2px; overflow-wrap: anywhere; }

.withdrawal-status {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: .76rem;
  font-weight: 650;
}
.withdrawal-status[data-status="pending"] { background: #f4ece0; color: #624515; }
.withdrawal-status[data-status="paid"] { background: #e6eee7; color: #234e33; }
.withdrawal-status[data-status="rejected"] { background: #f3e6e7; color: #802f39; }
.withdrawal-amount { font-size: 1.3rem; font-weight: 750; overflow-wrap: anywhere; }
.withdrawal-wrap { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.withdrawal-decision {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}
.withdrawal-decision summary { padding: 10px 13px; cursor: pointer; font-weight: 650; }
.withdrawal-decision > form { padding: 0 13px 13px; }
.withdrawal-form .form-actions button { min-height: 44px; }

.withdrawal-list { margin: 0; padding: 0; list-style: none; }
.withdrawal-form.panel { padding: 12px; }
[data-withdrawal-heading]:focus { outline: none; }

.companion-booking-settings-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}
.companion-booking-settings-summary p { margin-top: 4px; color: var(--muted); font-size: .82rem; }
.companion-booking-settings-summary .button { flex: none; }
.companion-booking-fieldset { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.companion-booking-fieldset legend { padding: 0 4px; font-weight: 670; }
.companion-booking-fieldset p { margin-bottom: 8px; font-size: .82rem; }
.companion-quote-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(104px, .68fr);
  gap: 7px 10px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.companion-quote-entry .field { min-width: 0; font-size: .82rem; }
.companion-quote-entry input { width: 100%; min-width: 0; }
.companion-quote-remove { grid-column: 1 / -1; justify-self: end; }
.companion-batch summary { cursor: pointer; font-weight: 650; }
.companion-batch-options {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 2px 8px;
  min-width: 0;
  margin: 8px 0 4px;
  padding: 0;
  border: 0;
}
.companion-booking-days { display: grid; gap: 7px; }
.companion-booking-day {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 10px;
  padding-block: 6px;
  border-bottom: 1px solid var(--line);
}
.companion-booking-day:last-child { border-bottom: 0; }
.companion-booking-date { font-size: .86rem; font-weight: 650; }
.companion-booking-toggle { display: flex; align-items: center; gap: 5px; min-height: 38px; font-size: .8rem; white-space: nowrap; }
.companion-booking-toggle input { accent-color: var(--ink); }
.companion-booking-times { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-bottom: 2px; }
.companion-booking-times .field { font-size: .78rem; }
