/* The single page shell, in a warm light palette: a top app bar with one leading slot, the
   earnings on the top pages and Back inside, the logo in the middle and the merchant's picture at
   the end, pill buttons, small-cornered chips, and a bottom navigation bar with a pill behind the
   chosen page. The page never scrolls: the shell is the screen's height, the band its top third
   from the very top pixel, and the canvas is pinned to the ground colour, so the bottom edge stays
   that colour to the last pixel. The band's colour is the one bold thing, and everything below it
   stays quiet. */
:root {
  --ground: #fdf6e3;
  --surface: #eee8d5;
  --line: #e4ddc8;
  --ink: #073642;
  --text: #586e75;
  --muted: #93a1a1;
  --red: #dc322f;
  --yellow: #b58900;
  --green: #859900;
  --blue: #268bd2;
  --band: var(--muted);
  --font: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[data-band="off"] { --band: var(--red); }
html[data-band="on"] { --band: var(--green); }
html[data-band="trade"] { --band: var(--yellow); }

html {
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.g-logo { width: 18px; height: 18px; flex: none; }

.app {
  position: relative;
  height: var(--app-vh, 100dvh);
  display: flex;
  flex-direction: column;
  background: var(--ground);
}

/* The band: the top app bar, then the state, in white on the state's colour. */
.band {
  flex: none;
  box-sizing: border-box;
  /* A third of the screen, and taller only when what it shows needs it, as on a short screen. */
  min-height: calc(var(--app-vh, 100dvh) / 3);
  padding: env(safe-area-inset-top) 4px 20px;
  background: var(--band);
  color: #fff;
  display: flex;
  flex-direction: column;
  transition: background-color 300ms ease;
}
.appbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
}
.logo {
  margin: 0;
  justify-self: center;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}
.iconbutton {
  width: 48px;
  height: 48px;
  justify-self: center;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
}
.iconbutton:active { background: rgba(255, 255, 255, 0.2); }
/* The merchant's photo, else the first letter of their name, else the person icon. */
.avatar {
  justify-self: center;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar .icon { width: 22px; height: 22px; }
.band-status { margin-top: auto; padding: 0 16px; display: flex; flex-direction: column; gap: 14px; }
.band-head { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 500; line-height: 1.15; }
.band-head .icon { width: 32px; height: 32px; }
.band-live { animation: breathe 2s ease-in-out infinite; }
.band-row { display: flex; align-items: center; gap: 12px; }
/* The online control: a white pill, filled to go online, outlined to go offline. */
.band-cta {
  margin-left: auto;
  height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border: 2px solid #fff;
  border-radius: 24px;
  background: #fff;
  color: var(--band);
  font-size: 18px;
  font-weight: 500;
}
.band-cta .icon { width: 22px; height: 22px; }
.band-cta-quiet { background: none; color: #fff; }
.band-cta:disabled { opacity: 0.6; }
.band-status .chip { height: 48px; padding: 0 18px; gap: 10px; border-radius: 12px; font-size: 22px; background: rgba(255, 255, 255, 0.22); color: #fff; }
.band-status .chip .dot { width: 12px; height: 12px; background: #fff; }
.band-status .chip .icon { width: 24px; height: 24px; }

/* The status chip: one look for every state, its icon first. */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  margin: 0;
  padding: 0 12px;
  box-sizing: border-box;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.chip:empty { display: none; }
.chip .icon, .chip .g-logo { width: 18px; height: 18px; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.chip-on, .chip-done { background: var(--green); color: #fff; }
.chip-off, .chip-error { background: var(--red); color: #fff; }
.chip-trade { background: var(--yellow); color: #fff; }
.chip-busy { background: var(--blue); color: #fff; }
.chip-hint { background: var(--ink); color: var(--ground); }
.chip-google { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
html[data-band="on"] .band-status .dot { animation: breathe 2s ease-in-out infinite; }

/* The page: the merchant's state as one picture, a list or a form, between band and button. */
.view {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px;
}
.hero { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-icon {
  width: 56px;
  height: 56px;
  padding: 28px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  stroke-width: 1.6;
}
.hero-text { margin: 0; font-size: 24px; font-weight: 500; color: var(--ink); text-align: center; }
.hero-text:empty { display: none; }

/* Lists: one surface, rows divided by a hairline. */
.trades, .acct-lanes {
  list-style: none;
  margin: 0;
  padding: 0;
  align-self: stretch;
  max-height: 100%;
  overflow-y: auto;
  border-radius: 16px;
  background: var(--surface);
}
.trades li + li, .acct-lanes > * + * { border-top: 1px solid var(--line); }
.trade-row, .lane-row {
  box-sizing: border-box;
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
}
.trade-cash { font-size: 26px; font-weight: 500; margin-right: auto; font-variant-numeric: tabular-nums; }
.trade-row .trade-go { color: var(--muted); }
.way-in { color: var(--green); width: 28px; height: 28px; }
.way-out { color: var(--red); width: 28px; height: 28px; }
.lane-row { font-size: 18px; }
.lane-row .icon { width: 24px; height: 24px; color: var(--text); }
.lane-upi { margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lane-add { color: var(--blue); font-weight: 500; }
.lane-add .icon { color: var(--blue); }

/* Forms: filled fields with an underline that takes the band's colour while typed in. */
.form { display: flex; flex-direction: column; gap: 14px; }
.form .chips { justify-content: flex-start; }
.field {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 16px;
  border-radius: 12px 12px 0 0;
  border-bottom: 2px solid var(--muted);
  background: var(--surface);
  color: var(--text);
}
.field:focus-within { border-bottom-color: var(--band); }
.field .icon { width: 26px; height: 26px; }
.field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 22px; color: var(--ink); }
.field-amount { height: 84px; }
.field-amount input { font-size: 42px; font-weight: 500; font-variant-numeric: tabular-nums; }
.unit { font-size: 18px; font-weight: 500; }

/* Small actions: tonal pill buttons. */
.chipbutton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}
.chipbutton .icon { width: 20px; height: 20px; }
.chipbutton:disabled { opacity: 0.5; }

/* The deposit row: the amount on one line, Deposit and Withdraw on the next, side by side. */
.lane-row-stack { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.lane-row:not(.lane-row-stack) .row-line { flex: 1; min-width: 0; }
/* A one-line row in a long list, at the single-line height, so more fit before a scroll. */
.lane-row-tight { min-height: 56px; }
.lane-row-tight .decide { width: 44px; height: 44px; }
/* A short header for a page with a list under it: the icon, the name and the chips on one line. */
.hero-compact { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-compact .hero-icon { width: 28px; height: 28px; padding: 10px; }
.hero-compact .hero-text { font-size: 20px; }
/* Approve and Reject: round icon buttons, green filled and red outlined. */
.decide { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--green); background: var(--green); color: #fff; }
.decide .icon { width: 24px; height: 24px; color: inherit; }
.decide-no { border-color: var(--red); background: none; color: var(--red); }
.decide-back { border-color: var(--blue); background: none; color: var(--blue); }
.decide:disabled { opacity: 0.5; }
.row-line { display: flex; align-items: center; gap: 14px; }
.row-actions { display: flex; gap: 10px; }
.row-actions .chipbutton { flex: 1; justify-content: center; background: var(--ground); height: 48px; font-size: 17px; }

/* A trade: way, rupees, coins, its four steps, its state, and what to pay. */
.tradeview { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.trade-big { margin: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 44px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.trade-small { margin: 0; font-size: 17px; color: var(--text); }
.steps { display: flex; gap: 10px; }
.step { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--muted); }
.step .icon { width: 20px; height: 20px; }
.step-done { background: var(--green); color: #fff; }
.step-now { background: var(--band); color: #fff; box-shadow: 0 0 0 4px var(--surface); }
.payee-box { display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 16px; border-radius: 12px; background: var(--surface); }
.payee { margin: 0; font-size: 22px; font-weight: 500; color: var(--ink); word-break: break-all; }
.copy { color: var(--text); }
.paid {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border: 2px solid var(--muted);
  border-radius: 26px;
  background: none;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
}
.paid-on { border-color: var(--green); background: var(--green); color: #fff; }
.trade-big .copy { vertical-align: middle; }
/* The customer's UPI link as a QR code, black on white for any scanner. */
.qr { width: 280px; height: 280px; padding: 8px; border-radius: 16px; background: #fff; }
.qr-cover { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: rgba(7, 54, 66, 0.92); }
.qr-cover .payee { color: #fff; }
.qr svg { display: block; width: 100%; height: 100%; }
/* A finished trade's receipt: icon, number, word. */
.receipt { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 6px; }
.receipt li { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 12px; background: var(--surface); }
.receipt .icon { width: 22px; height: 22px; color: var(--text); flex: none; }
.receipt-value { flex: 1; text-align: left; color: var(--ink); font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.receipt-word { color: var(--muted); font-size: 14px; }

/* The one line above the bottom button, a status chip. */
.note { display: flex; justify-content: center; padding: 0 16px 8px; }

/* The bottom button: the next step, a filled pill with its icon first. */
.dock { flex: none; display: flex; gap: 12px; padding: 4px 16px 12px; }
.cta {
  position: relative;
  overflow: hidden;
  flex: 1;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 32px;
  background: var(--ink);
  color: var(--ground);
  font-size: 22px;
  font-weight: 500;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.cta .icon, .cta .g-logo { width: 28px; height: 28px; position: relative; }
.cta span { position: relative; }
.cta:disabled { background: var(--surface); color: var(--muted); cursor: default; }
.cta-quiet { flex: 0.7; background: var(--surface); color: var(--ink); }
.cta-quiet:only-child { flex: 1; }
/* Hold to confirm: the band's colour fills the button while it is held. */
.cta[data-hold]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--band);
  transform: scaleX(0);
  transform-origin: left;
}
.cta[data-holding]:not(:disabled)::before { transform: scaleX(1); transition: transform var(--hold) linear; }

/* The bottom navigation bar: icon and word, a pill behind the chosen page's icon. */
.tabs {
  flex: none;
  display: flex;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: var(--surface);
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}
.tab .icon { width: 24px; height: 24px; padding: 4px 20px; border-radius: 16px; }
.tab-on { color: var(--ink); }
.tab-on .icon { background: var(--band); color: #fff; }

/* The sheet: the profile, from the right. */
.sheet { position: fixed; inset: 0; background: rgba(0, 43, 54, 0.4); display: flex; justify-content: flex-start; }
.sheet-right { justify-content: flex-end; }
.sheet-panel {
  width: min(320px, 84vw);
  height: 100%;
  box-sizing: border-box;
  padding: calc(12px + env(safe-area-inset-top)) 12px 16px;
  border-radius: 0 16px 16px 0;
  background: var(--ground);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.sheet-right .sheet-panel { border-radius: 16px 0 0 16px; }
.profile { display: grid; justify-items: center; gap: 14px; padding: 16px 0 20px; border-bottom: 1px solid var(--line); }
.avatar-big { width: 88px; height: 88px; border: 3px solid var(--band); background: var(--surface); color: var(--ink); font-size: 34px; }
.avatar-big .icon { width: 40px; height: 40px; color: var(--text); }
.address { margin: 0; padding: 12px; border-radius: 12px; background: var(--surface); font-size: 14px; word-break: break-all; color: var(--ink); }
.menu-items { display: grid; gap: 4px; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: 28px;
  background: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  text-align: left;
}
.menu-item:active { background: var(--surface); }
.menu-item-on { background: var(--surface); }
.menu-item-on .icon { color: var(--band); }
.menu-item:disabled { opacity: 0.6; }

.spinning { animation: spin 0.9s linear infinite; }
@keyframes breathe { 50% { opacity: 0.45; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .band-status .dot, .band-live, .spinning { animation: none !important; }
  .band { transition: none; }
}

/* Two ways on one page, as one segmented button, the chosen side filled. */
.segments { display: flex; border: 2px solid var(--muted); border-radius: 26px; overflow: hidden; }
.segment {
  flex: 1;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
}
.segment + .segment { border-left: 2px solid var(--muted); }
.segment .icon { width: 20px; height: 20px; }
.segment-on { background: var(--surface); }
.field input:disabled { opacity: 0.5; }

/* Orders: activity for a month, tabs, search with filters and download, then the list. */
.orders { display: flex; flex-direction: column; gap: 8px; align-self: stretch; height: 100%; min-height: 0; }
.orders .trades { flex: 1; min-height: 0; }
.activity { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 18px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500; white-space: nowrap; }
.pill .icon { width: 18px; height: 18px; }
.pill-on { background: var(--ink); color: #fff; }
.o-search { display: flex; align-items: center; gap: 6px; }
.o-search .field { flex: 1; }
.field-small { height: 44px; padding: 0 12px; gap: 8px; }
.field-small .icon { width: 20px; height: 20px; }
.field-small input, .field-small select { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 17px; color: var(--ink); font-family: inherit; }
.o-search .iconbutton, .o-filter { position: relative; width: 44px; height: 44px; color: var(--text); background: var(--surface); }
.o-filter-on { background: var(--ink); color: #fff; }
.badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 11px; line-height: 16px; }
.o-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.o-filters .pills, .o-filters label:nth-child(3) { grid-column: 1 / -1; }
.o-none { display: grid; place-items: center; padding: 24px; color: var(--muted); }
.o-none .icon { width: 40px; height: 40px; }
#o-more { display: flex; justify-content: center; }
#o-tabs .pill:not(.pill-on) .pill-word { display: none; }
#o-tabs .pill { flex: none; }
.activity .chips { flex-wrap: nowrap; }

/* The top bar's left slot: Back on inner pages, the earnings pill on the top pages. */
.appbar-left { justify-self: start; display: flex; align-items: center; padding-left: 4px; }
.appbar .avatar { justify-self: end; margin-right: 10px; }
.earn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 18px; background: rgba(255, 255, 255, 0.22); color: #fff; font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.earn .icon { width: 20px; height: 20px; }
.earnings { display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; min-height: 0; }
.e-history { flex: 1; min-height: 0; }
.e-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.e-row .icon { width: 22px; height: 22px; color: var(--text); }
.home-free { justify-content: center; margin-bottom: 8px; }
.address-row { display: flex; align-items: center; gap: 4px; padding: 0 8px; }
.address-row .address { flex: 1; margin: 0; word-break: break-all; font-size: 14px; color: var(--ink); }

/* Bank pages: small fields, toggles, this month's use as a bar. */
.lane-form { display: flex; flex-direction: column; gap: 10px; align-self: stretch; }
.chipbutton-on { background: var(--ink); color: #fff; }
.usebar { height: 10px; border-radius: 5px; background: var(--surface); overflow: hidden; }
.usebar span { display: block; height: 100%; background: var(--green); }
.usebar-over span { background: var(--red); }
.move-arrow { display: grid; place-items: center; color: var(--muted); transform: rotate(90deg); }

/* Help: icon, question, short answer. */
.help { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 0; }
.help .trades { flex: 1; min-height: 0; }
.h-row { display: flex; gap: 12px; padding: 10px 14px; align-items: flex-start; }
.h-row .icon { width: 24px; height: 24px; flex: none; color: var(--text); }
.h-q { margin: 0; font-weight: 600; color: var(--ink); }
.h-a { margin: 2px 0 0; font-size: 15px; color: var(--text); }
/* A crash: the app's plain screen with Reload. */
.crash { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; background: var(--ground); }
.crash-text { max-width: 100%; max-height: 30%; overflow: auto; font-size: 12px; color: var(--text); white-space: pre-wrap; }
.install-steps { display: flex; gap: 10px; justify-content: center; margin: 0; color: var(--ink); }
.install-steps .icon { width: 28px; height: 28px; }

/* Insurance claims: rupees with type, state and date, and the action on the right. */
.claims { flex: 1; min-height: 0; }
.c-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.c-row > .icon { width: 24px; height: 24px; color: var(--text); flex: none; }
.c-main { flex: 1; min-width: 0; }
.c-cash { margin: 0 0 4px; font-size: 20px; font-weight: 500; color: var(--ink); }
.c-act { display: flex; gap: 6px; }

/* Our notifier's in-page card: the app opens the trade itself, so the card stays hidden. */
[data-notifier="alerts"] { display: none !important; }


/* The profile sheet's switches share one row. */
.switches { display: flex; gap: 8px; justify-content: center; padding: 8px 0; }
.switches .chipbutton { width: 52px; justify-content: center; padding: 0; }

/* The trader's stages: the network under the logo, the three steps, the stage pages. */
.logo { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.net { font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ground); background: var(--blue); border-radius: 999px; padding: 3px 9px; }
.net:empty { display: none; }
.net-paid { background: var(--ink); }
.view:has(.hero-stage) { justify-content: flex-start; overflow-y: auto; gap: 14px; }
.hero-stage { gap: 10px; }
.hero-stage .hero-icon { width: 40px; height: 40px; padding: 18px; }
.hero-stage .hero-text { font-size: 22px; }
.stage-line { margin: 0; color: var(--text); font-size: 15px; line-height: 1.4; text-align: center; }
.journey { list-style: none; margin: 0; padding: 0; border-radius: 16px; background: var(--surface); }
.jstep { display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: var(--muted); }
.jstep + .jstep { border-top: 1px solid var(--line); }
.jstep .icon { width: 24px; height: 24px; flex: none; }
.jstep b { display: block; font-weight: 500; font-size: 16px; }
.jstep span { font-size: 13px; line-height: 1.3; }
.jstep-on { color: var(--ink); }
.jstep-on .icon { color: var(--blue); }
.jstep-done { color: var(--text); }
.jstep-done .icon { color: var(--green); }
/* The evaluation on the band: a pill with its time left and score, which opens the sheet. */
.band-status:has(.band-eval) { gap: 10px; }
.band-eval { align-self: flex-start; height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; border: 0; border-radius: 20px; background: rgba(255, 255, 255, 0.22); color: #fff; font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.band-eval .icon { width: 20px; height: 20px; flex: none; }
.band-eval-left { opacity: 0.92; }
.band-eval-score { padding: 2px 8px; border-radius: 10px; background: #fff; color: var(--band); font-size: 15px; }
/* The evaluation's sheet, from the bottom. */
.sheet-bottom { align-items: flex-end; justify-content: center; }
.sheet-bottom .sheet-panel { width: 100%; max-width: 520px; height: auto; max-height: 86%; padding: 14px 16px calc(22px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
.eval-head { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; }
.eval-head .icon { width: 22px; height: 22px; color: var(--blue); }
.eval-head .chip .icon { color: inherit; }
.eval-close { margin-left: auto; width: 40px; height: 40px; color: var(--text); }
.eval-close .icon { color: var(--text); }
.eval-time { margin: 4px 0 0; font-size: 34px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.eval-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.eval-bar i { display: block; height: 100%; background: var(--blue); }
.eval-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.eval-checks li { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 30px; }
.eval-checks li .icon { width: 18px; height: 18px; color: var(--text); flex: none; }
.eval-checks b { font-weight: 500; color: var(--ink); width: 78px; flex: none; }
.eval-checks li > span:not(.chip) { flex: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.eval-checks .chip { flex: none; width: 28px; height: 28px; min-height: 0; padding: 0; justify-content: center; }
.eval-checks .chip .icon { color: inherit; }
.eval-score { margin: 0; text-align: right; font-weight: 500; color: var(--ink); font-size: 15px; }
.sheet-bottom .stage-line { text-align: left; }
/* The trust block under home, and the address check on the deposit form: small, quiet lines, the
   address in ink. Home scrolls down to its block when the page above it is long. */
.view:has(> .trust) { justify-content: flex-start; overflow-y: auto; }
.view:has(> .trust) > :first-child { margin-top: auto; }
.trust { margin-top: auto; padding-top: 16px; color: var(--text); font-size: 13px; line-height: 1.4; text-align: center; }
.form .trust { margin-top: 0; padding-top: 0; }
.trust p { margin: 0; }
.trust p + p { margin-top: 6px; }
.trust .value { color: var(--ink); font-weight: 500; word-break: break-all; }
