/* Customer UI contract. Loaded last; geometry is shared by all four designs.
 * Semantic colors follow appearance. Named adapters cover historical markup;
 * new components use biz-field, biz-card, biz-card-inset and biz-step-list.
 * Important geometry here is the boundary against historical per-page rules.
 * Never apply a blanket border, overflow:hidden or height to every element.
 */
/* A compact month bar; the full calendar opens in its own shared modal sheet. */
html body .phone .biz-month-bar { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 8px; padding: 4px 0; margin-block: 16px 0; color: var(--ui-ink); }
html body .phone .biz-month-trigger { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 48px; padding: 4px 12px; border: 0; border-radius: 24px; color: var(--ui-ink); }
html body .phone .biz-month-calendar-tile { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 12px; background: var(--biz-tile-blue-soft); color: var(--biz-tile-blue); }
html body .phone .biz-month-trigger-calendar { width: 20px; height: 20px; stroke-width: 2.25; }
html body .phone .biz-month-label-window { position: relative; display: grid; align-items: center; min-width: 0; flex: 1; overflow: hidden; text-align: center; }
html body .phone :is(#statement-period-title, .biz-month-label-previous) { display: block; white-space: nowrap; font: 600 14px/24px "Vazirmatn SemiBold", Tahoma, sans-serif; }
html body .phone .biz-month-label-previous { position: absolute; inset: 0; pointer-events: none; }
html body .phone .biz-month-trigger-chevron { width: 16px; height: 16px; flex: 0 0 16px; transform: rotate(-90deg); color: var(--ui-muted); }
html body .phone .biz-month-bar .biz-month-year-step { border-radius: 50%; }
/* Reuse the neutral header-glass material, isolated from the calendar grid. */
html body .phone .biz-month-bar {
  --month-glass-fill: rgb(255 255 255 / 40%);
  --month-glass-glint: rgb(255 255 255 / 94%);
  --month-glass-edge: rgb(255 255 255 / 88%);
  --month-glass-shade: rgb(83 104 124 / 8%);
  --month-glass-shadow: 0 6px 20px rgb(35 49 65 / 7%), inset 0 1px 0 rgb(255 255 255 / 90%), inset 0 -1px 1px rgb(87 105 124 / 7%);
}
html body .phone .biz-month-bar > :is(.biz-month-trigger, .biz-month-year-step) {
  position: relative;
  isolation: isolate;
  background: linear-gradient(155deg, var(--month-glass-glint), transparent 48%, var(--month-glass-shade)), var(--month-glass-fill);
  box-shadow: var(--month-glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  transition: background-color 160ms ease, opacity 160ms ease;
}
html body .phone .biz-month-bar > button::before {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--month-glass-edge); border-radius: inherit; pointer-events: none;
}
html body .phone .biz-month-bar > button:disabled { opacity: .38; box-shadow: none; }
html body .phone .biz-month-bar > button:not(:disabled):active { background-color: var(--month-glass-shade); }
@media (hover: hover) {
  html body .phone .biz-month-bar > :is(.biz-month-trigger, .biz-month-year-step):not(:disabled):hover {
    background: linear-gradient(155deg, var(--month-glass-glint), transparent 62%, var(--month-glass-shade)), var(--month-glass-fill);
  }
}
html[data-color-scheme="dark"] body .phone .biz-month-bar {
  --month-glass-fill: rgb(35 46 61 / 48%);
  --month-glass-glint: rgb(219 233 249 / 15%);
  --month-glass-edge: transparent;
  --month-glass-shade: rgb(9 17 29 / 12%);
  --month-glass-shadow: none;
}
@media (prefers-reduced-motion: reduce) { html body .phone .biz-month-bar > :is(.biz-month-trigger, .biz-month-year-step) { transition: none; } }
@media (forced-colors: active) { html body .phone .biz-month-bar > button { border: 1px solid ButtonText; } html body .phone .biz-month-bar > button::before { display: none; } }
html body .phone .biz-month-bar button:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 2px; }
html body .phone .biz-statement-results { display: grid; min-height: var(--statement-results-space, 260px); margin-top: 24px; }
html body .phone .biz-statement-results > .statement-transactions { margin-top: 0; grid-area: 1 / 1; }
html body .phone .biz-statement-empty { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; min-height: inherit; margin: 0; text-align: center; }
html body .phone .biz-statement-empty[hidden] { display: none !important; }
html body .phone .biz-statement-empty-art { position: relative; display: grid; place-items: center; isolation: isolate; width: 72px; height: 80px; border-radius: 20px; background: var(--biz-tile-blue-soft); color: var(--biz-tile-blue); transform: rotate(-6deg); }
html body .phone .biz-statement-empty-art::before { content: ""; position: absolute; inset: 4px -8px -4px 8px; z-index: -1; border-radius: 20px; background: color-mix(in srgb, var(--biz-tile-blue-soft) 50%, transparent); transform: rotate(14deg); }
html body .phone .biz-statement-empty-art svg { width: 32px; height: 32px; stroke-width: 1.75; }
html body .phone .biz-statement-empty strong { display: block; color: var(--ui-ink); font: 600 16px/26px "Vazirmatn SemiBold", Tahoma, sans-serif; }
html body .phone .biz-statement-empty p { max-width: 240px; margin: 8px auto 0; color: var(--ui-muted); font: 400 12px/20px "Vazirmatn Regular", Tahoma, sans-serif; }
@media (max-width: 360px) { html body .phone .biz-month-trigger { gap: 4px; padding-inline: 8px; } html body .phone .biz-month-bar { gap: 4px; } }
@media (prefers-reduced-motion: reduce) { html body .phone .biz-month-bar .biz-month-year-step { transition: none; } }
html body .phone .biz-month-picker { color: var(--ui-ink); }
html body .phone .biz-month-current { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 4px; border: 0; background: transparent; color: var(--ui-muted); font: 500 var(--biz-text-body)/var(--biz-line-body) var(--biz-font-medium) !important; }
html body .phone .biz-month-current:disabled { opacity: .55; cursor: default; }
html body .phone .biz-month-current svg { width: 16px; height: 16px; }
html body .phone .biz-month-year-nav { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 8px; margin-block: 8px 16px; padding: 4px; border-radius: 16px; background: var(--ui-soft); }
html body .phone .biz-month-year-label { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ui-muted); font: 500 var(--biz-text-body)/var(--biz-line-body) var(--biz-font-medium) !important; }
html body .phone .biz-month-year-label select { width: auto; min-width: 84px; min-height: 48px; padding: 4px 8px; border: 0; border-radius: 12px; background: var(--ui-soft); color: var(--ui-ink); font: 400 var(--biz-text-input)/var(--biz-line-body) var(--biz-font-regular) !important; cursor: pointer; }
html body .phone .biz-month-year-step { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 12px; color: var(--ui-ink); background: transparent; }
html body .phone .biz-month-year-step svg { width: 20px; height: 20px; }
html body .phone :is(#statement-previous-year, #statement-previous-month) svg { transform: rotate(180deg); }
html body .phone .biz-month-year-step:disabled { opacity: .25; cursor: default; }
html body .phone .biz-month-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 8px; }
html body .phone .biz-month-option { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 48px; padding: 8px 4px; border: 0; border-radius: 16px; background: transparent; color: var(--ui-ink); font: 400 var(--biz-text-body)/var(--biz-line-body) var(--biz-font-regular) !important; transition: background-color 180ms ease, color 180ms ease; }
html body .phone .biz-month-option .biz-month-check { display: none; width: 14px; height: 14px; flex: 0 0 14px; stroke-width: 2.25; }
html body .phone .biz-month-option[aria-pressed="true"] { background: var(--ui-ink); color: var(--ui-surface); font-family: var(--biz-font-semibold) !important; font-weight: 600 !important; }
html body .phone .biz-month-option[aria-pressed="true"] .biz-month-check { display: block; }
html body .phone .biz-month-option:disabled { color: var(--ui-muted); opacity: .38; cursor: default; }
html body .phone .biz-month-now { display: none; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
html body .phone .biz-month-option[data-current="true"]:not([aria-pressed="true"]) .biz-month-now { display: block; }
html body .phone .biz-month-caption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ui-card-line); }
html body .phone .biz-month-caption span { color: var(--ui-muted); font: 400 var(--biz-text-caption)/var(--biz-line-caption) var(--biz-font-regular) !important; }
/* Text spans must inherit the control role instead of legacy global span sizing. */
html body .phone :is(.biz-month-option, .biz-month-year-label) > span { font: inherit !important; }
html body .phone #statement-month-sheet-title { font-weight: 600 !important; }
html body .phone .biz-month-picker :is(button, select):focus-visible { outline: 2px solid var(--ui-focus) !important; outline-offset: 2px; }
@media (hover: hover) {
  html body .phone .biz-month-option:not(:disabled):not([aria-pressed="true"]):hover,
  html body .phone .biz-month-year-step:not(:disabled):hover { background: var(--ui-soft); }
}
@media (prefers-reduced-motion: reduce) { html body .phone .biz-month-option { transition: none; } }
@media (forced-colors: active) { html body .phone .biz-month-option[aria-pressed="true"] { outline: 2px solid Highlight; } }
.phone {
  --ui-surface: var(--biz-surface, var(--paper, #fff));
  --ui-soft: var(--biz-surface-soft, var(--soft, #f3f5f3));
  --ui-ink: var(--biz-ink, var(--ink, #202422));
  --ui-muted: var(--biz-muted, var(--muted, #5d655f));
  --ui-focus: var(--biz-focus, var(--modern-primary, #111));
  --ui-focus-halo: color-mix(in srgb, var(--ui-focus) 13%, transparent);
  --ui-field-line: var(--biz-control-line, var(--modern-border-strong, #89938c));
  --ui-card-line: var(--biz-card-line, var(--line, #e1e6e2));
  --ui-card-stroke: 1px;
  --ui-field-stroke: 1px;
  --ui-field-fill: var(--ui-surface);
  --biz-icon-text-gap: var(--biz-space-3, 12px);
  --biz-sheet-enter-duration: 280ms;
  --biz-sheet-exit-duration: 200ms;
  --biz-sheet-enter-easing: cubic-bezier(.2, .8, .2, 1);
  --biz-sheet-exit-easing: cubic-bezier(.4, 0, 1, 1);
}
.phone[data-app-theme="soft-precise"] {
  --ui-card-stroke: 0px;
  --ui-field-stroke: 0px;
  --ui-field-fill: var(--ui-soft);
}
html[data-color-scheme="dark"] .phone {
  --ui-card-stroke: 0px;
  --ui-field-stroke: 0px;
  --ui-field-fill: var(--appearance-soft);
}

/* One close glyph and target across dialogs, sheets and dismissible content.
 * Search clearing and compact inline dismissals retain a 44px field target.
 */
html body .biz-close-button {
  box-sizing: border-box;
  display: inline-grid !important;
  place-items: center;
  flex: 0 0 auto;
  width: var(--biz-touch, 48px) !important;
  height: var(--biz-touch, 48px) !important;
  min-width: var(--biz-touch, 48px) !important;
  min-height: var(--biz-touch, 48px) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ui-muted, var(--muted, #5d655f));
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
html body .biz-close-button--compact {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
}
html body .biz-close-button > svg {
  display: block;
  width: var(--biz-icon-glyph, 20px) !important;
  height: var(--biz-icon-glyph, 20px) !important;
  min-width: var(--biz-icon-glyph, 20px);
  min-height: var(--biz-icon-glyph, 20px);
  padding: 0 !important;
  margin: 0 !important;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--biz-icon-stroke, 1.75) !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
@media (hover: hover) {
  html body .biz-close-button:not(:disabled):hover { background: var(--ui-soft, #f3f5f3) !important; }
}
html body .biz-close-button:not(:disabled):active { background: var(--ui-soft, #f3f5f3) !important; }
html body .biz-close-button:focus-visible { outline: 2px solid var(--ui-focus, #0056f5); outline-offset: 3px; }
html body .biz-close-button[hidden] { display: none !important; }
html body :is(.biz-dialog-focus-anchor, [data-dialog-initial-focus]):focus { outline: none; }
/* Reserve the full target width in the older fixed-column layouts. */
html body .phone .attention-item.feature { grid-template-columns: minmax(0, 1fr) 44px; }
.mock-profile-row { grid-template-columns: minmax(0, 1fr) 44px; }
.guided-tour-progress-header { grid-template-columns: 38px minmax(0, 1fr) 48px; }
.guided-tour-tooltip > header { grid-template-columns: 28px minmax(0, 1fr) 48px; }


/* Money uses the same proportional figures as the home account balance.
 * Never apply this to identifiers, card numbers, OTPs or nonmonetary counts.
 */
html body .phone :is(.biz-amount, .biz-money, .biz-money *, [data-amount-input]) {
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
  font-variant-numeric: proportional-nums !important;
  font-feature-settings: "tnum" 0, "pnum" 1 !important;
  font-kerning: normal;
}
html body .phone :is(.biz-money, .biz-money-pair) {
  display: inline-flex;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: baseline !important;
  justify-content: flex-start;
  gap: var(--biz-space-1) !important;
  direction: rtl !important;
  unicode-bidi: isolate;
}
html body .phone .biz-money {
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  font-style: inherit !important;
  line-height: inherit !important;
  white-space: nowrap;
}
html body .phone .biz-money-number {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--biz-font-semibold) !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  font-style: inherit !important;
  line-height: inherit !important;
}
html body .phone .biz-money-unit {
  display: inline;
  order: 0 !important;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--biz-font-regular) !important;
  font-size: min(1em, var(--biz-text-caption)) !important;
  font-weight: 400;
  font-style: normal;
  line-height: inherit !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
  direction: rtl;
  unicode-bidi: isolate;
}
.phone { --biz-positive-amount: #00804d; }
html[data-color-scheme="dark"] .phone { --biz-positive-amount: #8ae2b9; }

/* Incoming amounts share the same semantic color across financial lists.
   Scope the amount only: balances, unsigned invoice totals and row copy retain their roles. */
html body .phone :is(
  .event-row:has(> [data-icon-tone="incoming"]) > .event-value,
  .transaction-list > article:has(> [data-icon-tone="incoming"]) > b,
  .next-home-activity-list > button:has(> [data-icon-tone="incoming"]) > b,
  .next-home-cashflow-breakdown > .in
) :is(.biz-money, .biz-money-number, .biz-money-unit) {
  color: var(--biz-positive-amount) !important;
}
html body .phone .biz-money-unit[hidden] { display: none !important; }
html body .phone .biz-amount { direction: ltr; unicode-bidi: isolate; font-family: var(--biz-font-semibold) !important; }
html body .phone :is(.amount-entry > div, .biz-money-field) { direction: rtl !important; }
html body .phone #account-detail-balance {
  font-size: var(--biz-text-display) !important;
  line-height: var(--biz-line-display) !important;
}
html body .phone .amount-entry > p {
  margin: var(--biz-space-2) 0 0;
  font-size: var(--biz-text-caption) !important;
  line-height: var(--biz-line-caption) !important;
  white-space: normal;
  overflow-wrap: anywhere;
}
html body .phone .amount-suggestions { min-width: 0; max-width: 100%; }
html body .phone .amount-suggestions > div {
  display: flex;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: var(--biz-space-2);
  min-width: 0;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-inline: contain;
  padding: 4px !important;
  scroll-padding-inline: 4px;
}
html body .phone .amount-suggestions button {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}
@media (max-width: 360px) {
  .phone:not(.next-ui-theme) .next-business-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone:not(.next-ui-theme) .business-summary-sales { grid-column: 1 / -1; }
}

/* One field anatomy: permanent label, control, optional help/error.
 * Search labels live outside the control. PIN and amount retain their roles.
 */
.phone :is(.field, .invoice-field, .biz-field) {
  display: block;
  min-width: 0;
  margin-block: 0 var(--biz-space-4);
}
.phone :is(.field > span, .invoice-field > span, .biz-field > label,
  .field-control-label, .login-password-heading > span,
  .device-pin-fields label > span, .card-auth-expiry > legend) {
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 var(--biz-space-2);
  padding: 0;
  color: var(--ui-ink);
  font-family: var(--biz-font-medium) !important;
  font-size: var(--biz-text-body) !important;
  font-weight: 500;
  line-height: var(--biz-line-body) !important;
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
}
.phone :is(.field > div, .invoice-field > div, .biz-field-control,
  .search-field, .otp-input-wrap, .card-auth-expiry-control) {
  box-sizing: border-box;
  min-width: 0;
  min-height: var(--biz-field-height) !important;
  height: auto !important;
  padding: var(--biz-space-1) var(--biz-space-3) !important;
  gap: var(--biz-space-2);
  align-items: center;
  border: var(--ui-field-stroke) solid var(--ui-field-line) !important;
  border-radius: var(--biz-radius-control) !important;
  background: var(--ui-field-fill) !important;
  box-shadow: none !important;
}
.phone :is(.field, .invoice-field, .biz-field-control, .search-field,
  .otp-input-wrap, .card-auth-expiry-control) :is(input, select, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: calc(var(--biz-field-height) - 2 * var(--biz-space-1) - 2px);
  height: auto !important;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  color: var(--ui-ink);
  background: transparent !important;
  font-family: var(--biz-font-regular) !important;
  font-size: var(--biz-text-input) !important;
  font-weight: 400;
  line-height: var(--biz-line-body) !important;
}
.phone .search-field.biz-field-large {
  --biz-field-height: 72px;
  --biz-text-input: 22px;
}
.phone .smart-destination-field.biz-field-large {
  margin-bottom: 24px !important;
  padding-inline: 16px 4px !important;
  gap: 8px;
}
.phone .transfer-view > .field-control-label + .smart-destination-field {
  margin-block-start: 0 !important;
}
.phone #screen-transfer > .stepper {
  margin-block: var(--biz-space-3) var(--biz-space-6) !important;
}
.phone #transfer-recipient > .transfer-title {
  margin-block: 0 var(--biz-section-gap) !important;
}
.phone .smart-destination-field.biz-field-large > svg {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}
.phone .smart-destination-field.biz-field-large input::placeholder {
  font-family: var(--biz-font-regular) !important;
  font-size: 16px !important;
  font-weight: 400;
}
html body .phone .smart-destination-field > .smart-destination-clear {
  margin: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
/* Shared, accessible inline field actions; scan and clear keep separate targets. */
html body .phone .search-field > .biz-field-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: var(--ui-focus);
  cursor: pointer;
}
.phone .biz-field-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
/* Larger scan glyph requested for recognition inside the destination field.
 * Preserve the inline 44px target and input space. */
html body .phone .biz-field-action--scan svg { width: 28px !important; height: 28px !important; flex: 0 0 28px; stroke-width: 2; }
.phone .biz-field-action:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.phone .smart-destination-field input { min-width: 0; }
.phone .card-scan-content { display: grid; gap: 16px; min-width: 0; }
.phone .card-scan-content > * { margin: 0; }
.phone .card-scan-viewfinder { position: relative; overflow: hidden; width: 100%; min-width: 0; min-height: 0; aspect-ratio: 1.586; border-radius: 16px; background: #101820; }
/* Camera metadata must never turn this card-shaped viewport into a portrait box. */
.phone .card-scan-viewfinder :is(video, canvas) { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.phone .card-scan-viewfinder video { object-fit: cover; object-position: center; }
.phone .card-scan-viewfinder [hidden] { display: none; }
.phone .card-scan-frame { position: absolute; inset: 8%; border: 2px solid #fff; border-radius: 12px; pointer-events: none; opacity: .8; }
.phone .card-scan-status { min-height: 48px; color: var(--ui-ink); font-size: 14px; line-height: 24px; }
.phone .card-scan-actions { display: flex; gap: 8px; align-items: stretch; }
.phone .card-scan-actions > button { flex: 1; min-width: 0; margin: 0; }
.phone .card-scan-note { font-size: 12px; line-height: 20px; color: var(--ui-muted); }
.phone .card-scan-content [hidden] { display: none !important; }
.phone .card-scan-choices { display: grid; gap: 12px; margin-bottom: 12px; }
html body .phone .card-scan-choice { display: grid; gap: 4px; width: 100%; min-width: 0; padding: 16px; border: var(--ui-card-stroke) solid var(--ui-card-line); border-radius: 16px; background: var(--ui-soft); color: var(--ui-ink); text-align: start; cursor: pointer; }
.phone .card-scan-choice strong { font: 600 16px/26px var(--biz-font-semibold); }
.phone .card-scan-choice small { color: var(--ui-muted); font: 400 12px/20px var(--biz-font-regular); }
.phone .card-scan-identifier { display: flex; flex-wrap: wrap; gap: 4px 8px; min-width: 0; margin-top: 8px; font: 400 18px/28px var(--biz-font-regular); text-align: left; }
.phone .card-scan-identifier span { font: inherit; white-space: nowrap; }
html body .phone .card-scan-choice :is(.card-scan-identifier, .card-scan-identifier > span) { font: 400 18px/28px var(--biz-font-regular) !important; }
.phone .card-scan-choice:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 2px; }
html body .phone .card-scan-content > .text-button { min-height: 48px; border: 0; border-radius: 16px; background: transparent; box-shadow: none; color: var(--ui-focus); font: 500 14px/24px var(--biz-font-medium); cursor: pointer; }
.phone :is(.field, .invoice-field, .biz-field-control) textarea {
  min-height: 112px;
  padding-block: var(--biz-space-2) !important;
  resize: vertical;
}
/* Persian prose must not inherit tracking from legacy numeric/auth sections.
 * Explicit numeric/code controls retain their own grouping rules.
 */
.phone :is(input, select, textarea):not([inputmode="numeric"]):not([inputmode="decimal"]):not([autocomplete="one-time-code"]):not([autocapitalize="characters"]) {
  letter-spacing: 0 !important;
}
.phone :is(input, textarea)::placeholder { letter-spacing: 0 !important; }
.phone :is(.field, .invoice-field, .biz-field-control, .search-field) input::placeholder {
  color: var(--ui-muted);
  opacity: 1;
}
.phone :is(.field > small, .invoice-field > small, .biz-field > small, .ec-root .field-help) {
  margin: var(--biz-space-2) 0 0;
  color: var(--ui-muted);
  font-family: var(--biz-font-regular) !important;
  font-size: var(--biz-text-caption) !important;
  line-height: var(--biz-line-caption) !important;
  overflow-wrap: anywhere;
}
.phone :is(.field > div, .invoice-field > div, .biz-field-control,
  .search-field, .otp-input-wrap, .card-auth-expiry-control):focus-within {
  border-color: var(--ui-focus) !important;
  box-shadow: 0 0 0 2px var(--ui-focus), 0 0 0 5px var(--ui-focus-halo) !important;
}
.phone :is(.field > div, .invoice-field > div, .biz-field-control,
  .search-field, .otp-input-wrap, .card-auth-expiry-control)
  :is(input, select, textarea):focus {
  outline: none !important;
  box-shadow: none !important;
  caret-color: var(--ui-focus);
}
.phone :is(.field > div, .invoice-field > div, .biz-field-control,
  .search-field):has(:is(input, select, textarea):disabled) {
  opacity: .6;
  cursor: not-allowed;
}
.phone :is(.field > div, .invoice-field > div, .biz-field-control):has(input[readonly]) {
  background: var(--ui-soft) !important;
}
.phone :is(.field > div, .invoice-field > div, .biz-field-control,
  .search-field, .otp-input-wrap, .card-auth-expiry-control):has([aria-invalid="true"]) {
  border-color: var(--biz-danger, #9b4650) !important;
  box-shadow: 0 0 0 2px var(--biz-danger, #9b4650) !important;
}
html body .phone .smart-destination-field.is-invalid {
  border-color: var(--biz-danger, #9b4650) !important;
  box-shadow: 0 0 0 2px var(--biz-danger, #9b4650) !important;
  transition: none !important;
}
.phone .destination-detection[data-state="invalid"] > span {
  border-color: color-mix(in srgb, var(--biz-danger, #9b4650) 24%, transparent) !important;
  color: var(--biz-danger, #9b4650) !important;
  background: var(--biz-danger-soft, #fbeff1) !important;
}
.phone .destination-detection[data-state="invalid"] > :is(strong, small) {
  color: var(--biz-danger, #9b4650) !important;
}
.phone :is(.field, .invoice-field, .biz-field) :is(.field-error, [role="alert"]) {
  color: var(--biz-danger, #9b4650);
}
.phone :is(.invoice-field-grid, .card-auth-grid, .device-pin-fields) {
  min-width: 0;
  gap: var(--biz-space-3);
  align-items: start;
}
.phone :is(.invoice-field-grid, .card-auth-grid) > :is(.field, .invoice-field) {
  margin-bottom: var(--biz-space-4);
}
.phone .device-pin-fields input {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  height: var(--biz-field-height);
  border: var(--ui-field-stroke) solid var(--ui-field-line) !important;
  border-radius: var(--biz-radius-control);
  background: var(--ui-field-fill);
  color: var(--ui-ink);
  font-size: var(--biz-text-input) !important;
}
.phone .card-auth-otp-field > div {
  padding-inline-end: var(--biz-space-1) !important;
}
.phone .card-auth-expiry-control > label { min-width: 0; }
.phone :is(.field > div, .search-field, .biz-field-control) > button:not(.field-action-button) {
  flex: 0 0 var(--biz-chip-target);
  width: var(--biz-chip-target);
  min-width: var(--biz-chip-target);
  height: var(--biz-chip-target);
  min-height: var(--biz-chip-target);
  padding: var(--biz-space-3);
}

/* Saturated outline tiles. Their palette is independent of text, alerts,
 * selection controls and the circular timeline/navigation components. */
.phone {
  --biz-tile-stroke: 2.25;
  --biz-tile-purple: #8644eb;
  --biz-tile-purple-soft: #f3edff;
  --biz-tile-blue: #0878e5;
  --biz-tile-blue-soft: #e9f4ff;
  --biz-tile-green: #00895b;
  --biz-tile-green-soft: #e8f8ef;
  --biz-tile-orange: #e5670a;
  --biz-tile-orange-soft: #fff1e6;
  --biz-tile-red: #ec3d4f;
  --biz-tile-red-soft: #fff0f2;
}
html[data-color-scheme="dark"] .phone {
  --biz-tile-purple: #ba8cff;
  --biz-tile-purple-soft: #302244;
  --biz-tile-blue: #6db6ff;
  --biz-tile-blue-soft: #182f48;
  --biz-tile-green: #4fdda0;
  --biz-tile-green-soft: #16392e;
  --biz-tile-orange: #ffaf63;
  --biz-tile-orange-soft: #423020;
  --biz-tile-red: #ff7885;
  --biz-tile-red-soft: #43242d;
}
html body .phone :is(
  .biz-icon-tile,
  .next-home-tool-grid > button > span:first-child,
  .next-business-destination-grid > button > span:first-child,
  .next-more-group button > span:first-child,
  .next-home-feature-icon, .next-home-line-icon,
  .next-home-activity-list button > span:first-child,
  .account-icon, .management-icon, .round-symbol, .row-symbol, .service-mark,
  .service-grid > button > span:first-child, .service-picker-icon,
  .receive-method-grid > button > span:first-child,
  .health-service-grid > button > span:first-child,
  .finance-tool-grid > button > span:first-child,
  .profile-row-icon, .profile-device-icon, .connector-icon,
  .smart-route-main > span, .smart-destination-action > span:first-child,
  .card-serial-help-button > span:first-child,
  .registry-disclosure summary > span:first-child,
  .recovery-method-option > span:first-child, .recipient-destination-icon,
  .otp-delivery-status > span, .energy-mark, .health-hero-mark,
  .next-business-scf-entry > span:first-child, .business-primary-action > span,
  .scf-invoice > i, .invoice-state-hero > span:first-child,
  .scf-status-card > span:first-child
) {
  --biz-icon-stroke: var(--biz-tile-stroke);
  color: var(--biz-tile-ink, var(--biz-tile-purple)) !important;
  background: var(--biz-tile-surface, var(--biz-tile-purple-soft)) !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body .phone :is(
  [data-icon-tone="account"], [data-icon-tone="info"], .account-icon,
  [data-hub-target="cashflow"] > span:first-child,
  [data-next-home-action="account"] > span:first-child,
  [data-next-home-action="card"] > span:first-child,
  [data-receive-step="pos-form"] > span:first-child,
  .scf-invoice.selected > i, .smart-route-main > span
) { --biz-tile-ink: var(--biz-tile-blue); --biz-tile-surface: var(--biz-tile-blue-soft); }
html body .phone :is(
  [data-icon-tone="incoming"], [data-icon-tone="success"], .row-symbol.approved,
  [data-hub-target="receive"] > span:first-child,
  [data-receive-step="link-form"] > span:first-child,
  [data-receive-step="request-form"] > span:first-child,
  .health-service-grid > button > span:first-child, .health-hero-mark,
  .scf-status-card:is(.funded, .approved) > span:first-child,
  .invoice-state-hero.paid > span:first-child
) { --biz-tile-ink: var(--biz-tile-green); --biz-tile-surface: var(--biz-tile-green-soft); }
html body .phone :is(
  [data-icon-tone="warning"], .row-symbol.waiting,
  [data-hub-target="invoices"] > span:first-child,
  [data-hub-target="energy"] > span:first-child, .energy-mark,
  .next-home-task-list > button.waiting .next-home-line-icon,
  .scf-status-card:is(.waiting, .review, .needs-info, .declined) > span:first-child
) { --biz-tile-ink: var(--biz-tile-orange); --biz-tile-surface: var(--biz-tile-orange-soft); }
html body .phone :is(
  [data-icon-tone="outgoing"], [data-icon-tone="danger"],
  .next-home-task-list > button.urgent .next-home-line-icon
) { --biz-tile-ink: var(--biz-tile-red); --biz-tile-surface: var(--biz-tile-red-soft); }
/* Saved destinations use a stable type palette across every contact. */
html body .phone [data-icon-tone="destination-card"] {
  --biz-tile-ink: var(--biz-tile-purple);
  --biz-tile-surface: var(--biz-tile-purple-soft);
}
html body .phone [data-icon-tone="destination-account"] {
  --biz-tile-ink: var(--biz-tile-blue);
  --biz-tile-surface: var(--biz-tile-blue-soft);
}
html body .phone [data-icon-tone="destination-iban"] {
  --biz-tile-ink: var(--biz-tile-green);
  --biz-tile-surface: var(--biz-tile-green-soft);
}
/* Apply the heavier outline only within a colored tile, including legacy SVGs.
 * New components can opt in with biz-icon-tile and a semantic data-icon-tone. */
html body .phone :is(
  .biz-icon-tile,
  .next-home-tool-grid > button > span:first-child,
  .next-business-destination-grid > button > span:first-child,
  .next-more-group button > span:first-child,
  .next-home-feature-icon, .next-home-line-icon,
  .next-home-activity-list button > span:first-child,
  .account-icon, .management-icon, .round-symbol, .row-symbol, .service-mark,
  .service-grid > button > span:first-child, .service-picker-icon,
  .receive-method-grid > button > span:first-child,
  .health-service-grid > button > span:first-child,
  .finance-tool-grid > button > span:first-child,
  .profile-row-icon, .profile-device-icon, .connector-icon,
  .smart-route-main > span, .smart-destination-action > span:first-child,
  .card-serial-help-button > span:first-child,
  .registry-disclosure summary > span:first-child,
  .recovery-method-option > span:first-child, .recipient-destination-icon,
  .otp-delivery-status > span, .energy-mark, .health-hero-mark,
  .next-business-scf-entry > span:first-child, .business-primary-action > span,
  .scf-invoice > i, .invoice-state-hero > span:first-child,
  .scf-status-card > span:first-child
) svg {
  color: inherit !important;
  stroke: currentColor;
  stroke-width: var(--biz-tile-stroke) !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Vertical service tiles: measure the title gap from the icon tile's edge. */
.phone { --biz-service-icon-title-gap: 48px; }
html body .phone :is(.next-home-tool-grid, .next-business-destination-grid, .health-service-grid, .finance-tool-grid, .receive-method-grid) > button {
  height: auto;
  padding-block-end: var(--biz-space-4) !important;
  row-gap: 0;
  justify-content: flex-start;
}
html body .phone :is(.next-home-tool-grid, .next-business-destination-grid, .health-service-grid, .finance-tool-grid, .receive-method-grid) > button > span:first-child {
  margin-block-end: 0 !important;
  flex-shrink: 0;
}
html body .phone :is(.next-home-tool-grid, .next-business-destination-grid, .health-service-grid, .finance-tool-grid, .receive-method-grid) > button > strong {
  margin-block-start: var(--biz-service-icon-title-gap) !important;
  flex-shrink: 0;
}
html body .phone :is(.next-home-tool-grid, .next-business-destination-grid, .health-service-grid, .finance-tool-grid, .receive-method-grid) > button > small {
  color: var(--ui-muted) !important;
  font-family: var(--biz-font-regular) !important;
  font-weight: 400 !important;
}

/* List typography: main copy uses SemiBold; supporting copy uses Regular.
   Amounts retain their separate monetary typography contract. */
html body .phone :is(
  .row-list, .event-list, .management-list, .cards-list, .detail-list, .scf-case-row-main,
  .attention-list, .recipient-list, .recipient-group-destinations,
  .sheet-account-list, .business-row-list, .identifiers-list, .destination-sheet-details,
  .connected-list, .route-options, .service-picker, .transfer-help-list,
  .next-home-task-list, .next-home-activity-list, .next-connected-links,
  .next-more-group > div, .profile-menu-card, .profile-device-list,
  .next-home-tool-grid, .next-business-destination-grid, .health-service-grid,
  .finance-tool-grid, .receive-method-grid, .next-home-feature-copy
) strong:not(.biz-amount):not(.biz-money):not(.biz-money-number),
html body .phone .next-home-promo-copy h2,
html body .phone .biz-list-title {
  font-family: var(--biz-font-semibold) !important;
  font-weight: 600 !important;
  font-synthesis: none;
}
html body .phone :is(
  .row-list, .event-list, .management-list, .cards-list, .detail-list, .scf-case-row-main,
  .attention-list, .recipient-list, .recipient-group-destinations,
  .sheet-account-list, .business-row-list, .identifiers-list, .destination-sheet-details,
  .connected-list, .route-options, .service-picker, .transfer-help-list,
  .next-home-task-list, .next-home-activity-list, .next-connected-links,
  .next-more-group > div, .profile-menu-card, .profile-device-list,
  .next-home-tool-grid, .next-business-destination-grid, .health-service-grid,
  .finance-tool-grid, .receive-method-grid, .next-home-feature-copy
) :is(small:not(.biz-money-unit), span:has(> strong) > i),
html body .phone .next-home-promo-copy :is(small, p),
html body .phone .biz-list-description {
  font-family: var(--biz-font-regular) !important;
  font-weight: 400 !important;
}

/* Text stacks own their spacing; row/icon geometry remains with each list. */
html body .phone :is(
  .row-list, .event-list, .management-list, .cards-list, .detail-list, .scf-case-row-main,
  .attention-list, .recipient-list, .recipient-group-destinations,
  .sheet-account-list, .business-row-list, .identifiers-list, .destination-sheet-details,
  .connected-list, .route-options, .service-picker, .transfer-help-list,
  .next-home-task-list, .next-home-activity-list, .next-connected-links,
  .next-more-group > div, .profile-menu-card, .profile-device-list,
  .next-home-tool-grid, .next-business-destination-grid, .health-service-grid,
  .finance-tool-grid, .receive-method-grid
) :is(span, div):has(> strong):has(> small):not(.biz-money-pair),
html body .phone .next-home-feature-copy,
html body .phone .biz-list-copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  row-gap: 4px !important;
}
:is(html body .phone :is(
  .row-list, .event-list, .management-list, .cards-list, .detail-list, .scf-case-row-main,
  .attention-list, .recipient-list, .recipient-group-destinations,
  .sheet-account-list, .business-row-list, .identifiers-list, .destination-sheet-details,
  .connected-list, .route-options, .service-picker, .transfer-help-list,
  .next-home-task-list, .next-home-activity-list, .next-connected-links,
  .next-more-group > div, .profile-menu-card, .profile-device-list,
  .next-home-tool-grid, .next-business-destination-grid, .health-service-grid,
  .finance-tool-grid, .receive-method-grid
) :is(span, div):has(> strong):has(> small):not(.biz-money-pair),
html body .phone .next-home-feature-copy,
html body .phone .biz-list-copy) > :is(strong, small, i) {
  margin-block: 0 !important;
  line-height: max(24px, 1.65em) !important;
}
html body .phone :is(.next-home-tool-grid, .next-business-destination-grid, .health-service-grid, .finance-tool-grid, .receive-method-grid) > button > small {
  margin-block: 4px 0 !important;
  line-height: max(24px, 1.65em) !important;
}
html body .phone .next-home-promo-copy > :is(small, h2, p) {
  margin-block: 0 !important;
  line-height: max(24px, 1.65em) !important;
}
html body .phone .next-home-promo-copy > :is(small, h2) + :is(h2, p) { margin-block-start: 4px !important; }

/* Shared card sizes. List containers keep row-owned padding; documents retain
 * their header/body/total regions; media cards retain their artwork geometry.
 */
.phone :is(.biz-card, .total-summary, .statement-summary,
  .health-recommendation, .health-my-care, .energy-hero, .energy-meter,
  .energy-auto-pay, .cashflow-detail-summary, .cashflow-calculation,
  .receive-identity-card, .receive-iban-card, .receive-use-case,
  .invoice-party-card, .invoice-total-card, .invoice-link-card,
  .invoice-collection-card, .invoice-state-hero, .invoice-payment-receipt,
  .scf-status-card, .scf-eligibility-hero, .scf-funded-details,
  .profile-hero, .profile-biometric-card, .profile-appearance,
  .account-overview, .detail-card-info, .next-payment-upcoming,
  .next-business-summary, .expense-status-grid > article,
  .operation-progress-card) {
  min-width: 0;
  height: auto;
  padding: var(--biz-card-padding) !important;
  border-radius: var(--biz-radius-card) !important;
}
.phone :is(.biz-card-inset, .detail-linked-card, .card-auth-source,
  .postal-result.streamlined, .first-transfer-guide, .next-home-cashflow-low) {
  min-width: 0;
  padding: var(--biz-space-4);
  border-radius: var(--biz-radius-inset) !important;
}
.phone :is(.biz-card, .biz-card-inset) {
  border: var(--ui-card-stroke) solid var(--ui-card-line) !important;
}
.phone .biz-card { background: var(--ui-surface); box-shadow: var(--biz-shadow-card, var(--modern-shadow, 0 8px 24px rgb(20 30 43 / 6%))); }
/* Elevation is owned by each group, including dynamic sheet content. */
.phone .biz-elevated { box-shadow: var(--biz-shadow-card, var(--modern-shadow, 0 8px 24px rgb(20 30 43 / 6%))); }
html body .phone .sheet-backdrop > .bottom-sheet.biz-sheet-cards,
html body .phone .bottom-sheet.biz-sheet-cards > header { background: var(--biz-canvas, var(--modern-canvas, #f5f6f8)); }
html body .phone .biz-card.biz-card-list { padding:0 !important; }
.phone :is(.scf-funded-details, .scf-requirements, .scf-requested-evidence, .scf-timeline):has(+ :is(.primary-button, .secondary-button)) {
  margin-block-end: 0 !important;
}
.phone :is(.scf-funded-details, .scf-requirements, .scf-requested-evidence, .scf-timeline)
  + :is(.primary-button, .secondary-button) {
  margin-block-start: var(--biz-space-4) !important;
}
.phone .biz-card-inset { background: var(--ui-soft); }
.phone .biz-info-box {
  gap: var(--biz-space-3) !important;
  border-radius: var(--biz-radius-inset) !important;
}
.phone .biz-info-box > .biz-info-icon { border-radius: var(--biz-icon-radius-compact) !important; }
/* Text-only notes span the full grid instead of occupying the icon track. */
.phone .biz-info-box > .biz-info-content:only-child { grid-column: 1 / -1; }
.phone .biz-info-box .biz-info-content,
.phone .biz-info-box .biz-info-content > :is(p, small, span) {
  font-size: var(--biz-text-body) !important;
  line-height: var(--biz-line-body) !important;
}
.phone :is(.bottom-sheet, .biz-card, .biz-card-inset) > :last-child { margin-bottom: 0; }
.phone :is(.bottom-sheet, .detail-surface, .profile-menu-card,
  .profile-device-list, .new-journey-map, .scf-role-steps, .snapshot-info-points) { min-width: 0; }
.phone .bottom-sheet {
  padding-inline: var(--biz-card-padding);
  border-start-start-radius: var(--biz-radius-sheet);
  border-start-end-radius: var(--biz-radius-sheet);
}
.phone .login-entry-sheet {
  border-start-start-radius: var(--biz-radius-sheet) !important;
  border-start-end-radius: var(--biz-radius-sheet) !important;
}
/* Modal sheets share one frame. The whole body scrolls under a persistent
 * close/title header; content stays in its original DOM for existing forms.
 */
html body .phone > .sheet-backdrop {
  align-items: flex-end;
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgb(12 20 30 / 36%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
html[data-color-scheme="dark"] body .phone > .sheet-backdrop { background: rgb(0 0 0 / 52%); }
html body .phone > .sheet-backdrop[hidden] { display: none !important; }
html body .phone > .sheet-backdrop[data-sheet-state="closing"] { display: flex !important; }
html body .phone .sheet-backdrop > .bottom-sheet {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--biz-space-4);
  width: 100%;
  min-height: 0;
  max-height: calc(100% - 24px) !important;
  margin: 0;
  padding: 0 var(--biz-card-padding) max(var(--biz-space-5), var(--app-safe-bottom, env(safe-area-inset-bottom, 0px))) !important;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 96px 20px;
  -webkit-overflow-scrolling: touch;
  border: var(--ui-card-stroke) solid var(--ui-card-line) !important;
  border-bottom: 0 !important;
  border-radius: var(--biz-radius-sheet) var(--biz-radius-sheet) 0 0 !important;
  background: var(--ui-surface);
  color: var(--ui-ink);
  box-shadow: 0 -16px 48px rgb(0 0 0 / 14%);
}
html body .phone .bottom-sheet > * { flex-shrink: 0; }
html body .phone .bottom-sheet > :not(header) { margin-block: 0 !important; }
html body .phone .bottom-sheet > header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--biz-space-3);
  margin: 0 calc(-1 * var(--biz-card-padding)) calc(-1 * var(--biz-space-4)) !important;
  padding: var(--biz-space-4) var(--biz-card-padding) !important;
  border: 0 !important;
  border-radius: 0;
  background: var(--ui-surface);
  box-shadow: none;
}
html body .phone .bottom-sheet > header > div { min-width: 0; flex: 1; }
html body .phone .bottom-sheet > header h2 {
  color: var(--ui-ink);
  margin: 0 !important;
  font: 18px/28px var(--biz-font-semibold) !important;
}
html body .phone .bottom-sheet > header small {
  display: block;
  margin: 0 0 var(--biz-space-1);
  font: var(--biz-text-caption)/var(--biz-line-caption) var(--biz-font-regular) !important;
  color: var(--ui-muted);
}
html body .phone .bottom-sheet > p {
  font-size: var(--biz-text-body) !important;
  line-height: var(--biz-line-body) !important;
}
/* Login keeps its live OTP/brand layout and drag behavior, with shared timing. */
.phone #login-screen #login-step-returning[data-login-sheet] :is(.login-sheet-chrome, .login-sheet-content) {
  padding-inline: var(--biz-card-padding) !important;
}
.phone #login-screen #login-step-returning[data-login-sheet] .login-entry-sheet {
  transition: transform var(--biz-sheet-enter-duration) var(--biz-sheet-enter-easing), visibility var(--biz-sheet-enter-duration);
}
.phone #login-screen #login-step-returning[data-login-sheet][data-sheet-state="closed"] .login-entry-sheet {
  transition-duration: var(--biz-sheet-exit-duration);
  transition-timing-function: var(--biz-sheet-exit-easing);
}
.phone #login-screen #login-step-returning[data-login-sheet].login-sheet-dragging .login-entry-sheet { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .phone { --biz-sheet-enter-duration: 0ms; --biz-sheet-exit-duration: 0ms; }
  .phone #login-screen #login-step-returning[data-login-sheet] .login-entry-sheet { transition: none; }
}
.phone :is(.scope-card, .customer-found, .verified-person, .next-card-prompt,
  .delivery-address-summary, .card-address-panel, .card-design-picker,
  .biometric-card, .deposit-option, .delivery-option, .card-address-option,
  .recovery-method-option, .returning-method-option, .invoice-comparison > article) {
  min-width: 0;
  padding: var(--biz-space-4) !important;
  border-radius: var(--biz-radius-inset) !important;
}
.phone :is(.review-ticket, .review-channels, .registry-disclosure,
  .contract-summary, .opened-account-card, .recovery-card-summary,
  .new-journey-map, .scf-role-steps, .invoice-explainer) {
  border-radius: var(--biz-radius-card) !important;
}
.phone :is(.review-ticket, .contract-summary, .opened-account-card,
  .recovery-card-summary, .invoice-explainer, .new-journey-map) > header {
  padding: var(--biz-space-4);
}
.phone .card-tracking-status-card {
  padding: 0 var(--biz-card-padding) var(--biz-card-padding);
}
.phone .biz-info-box .biz-info-content > strong { margin: var(--biz-space-1) 0; }
.phone .scf-summary-card { border-radius: var(--biz-radius-inset); }

/* Text rhythm belongs to the text group, not to decorative card boundaries.
 * Preserve existing header/action layouts; only vertical copy groups opt in.
 */
.phone :is(.page-intro, .next-page-intro, .transfer-title, .login-heading,
  .new-welcome-hero, .ui-text-stack) {
  row-gap: 0;
  margin-block-end: var(--biz-section-gap);
}
.phone :is(.page-intro, .next-page-intro, .transfer-title, .login-heading,
  .new-welcome-hero, .ui-text-stack) > :is(h1, h2, p, span, small) {
  margin-block: 0 !important;
}
.phone :is(.page-intro, .next-page-intro, .transfer-title, .login-heading,
  .new-welcome-hero, .ui-text-stack) > :is(p, span, small) + :is(h1, h2) {
  margin-block-start: var(--biz-copy-gap) !important;
}
.phone :is(.page-intro, .next-page-intro, .transfer-title, .login-heading,
  .new-welcome-hero, .ui-text-stack) > :is(h1, h2) + :is(p, span, small) {
  display: block;
  margin-block-start: var(--biz-title-gap) !important;
  line-height: var(--biz-line-body);
}
.phone :is(.section-header > div, .next-home-section-header > div,
  .bottom-sheet > header > div, .detail-card-info-header > div) {
  min-width: 0;
  row-gap: 0;
}
.phone :is(.section-header > div, .next-home-section-header > div,
  .bottom-sheet > header > div) > :is(h2, p, small) {
  margin-block: 0;
}
.phone :is(.section-header > div, .next-home-section-header > div) > h2 + p,
.phone .bottom-sheet > header > div > small + h2 {
  margin-block-start: var(--biz-copy-gap);
}
.phone {
  --biz-heading-content-gap: 8px;
  --app-list-heading-gap: var(--biz-heading-content-gap);
}
.phone :is(.section-header, .next-home-section-header, .profile-section > header,
  .service-list-section > header, .next-destination-section > header,
  .next-more-group > header) {
  margin-block-end: var(--biz-heading-content-gap);
}
/* Center labels inside full-height heading actions and counters. */
.phone[data-app-theme] :is(.section-header, .next-home-section-header,
  .service-list-section > header, .next-destination-section > header,
  .next-more-group > header, .profile-section > header) > :is(button, b) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Page-section titles share one contract, including direct title/subtitle
 * headers such as Payments. Inner card and dialog headers keep their own roles. */
.phone[data-app-theme] :is(section, .management-section):has(> :is(
  .section-header, .next-home-section-header
)),
.phone[data-app-theme] :is(.service-list-section, .next-destination-section,
  .next-more-group, .profile-section) {
  margin-block-start: var(--app-list-section-gap);
}
.phone[data-app-theme] :is(.section-header, .next-home-section-header,
  .service-list-section > header, .next-destination-section > header,
  .next-more-group > header, .profile-section > header) {
  min-height: var(--app-section-heading-height);
  margin-block: 0 var(--app-list-heading-gap);
  align-items: center;
  align-content: center;
}
.phone[data-app-theme] :is(.section-header, .next-home-section-header,
  .service-list-section > header, .next-destination-section > header,
  .next-more-group > header, .profile-section > header):has(> h2 + p) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
}
.phone[data-app-theme] :is(.section-header, .next-home-section-header,
  .service-list-section > header, .next-destination-section > header,
  .next-more-group > header, .profile-section > header) :is(h2, p) {
  margin-block: 0;
}
.phone[data-app-theme] :is(.section-header, .next-home-section-header,
  .service-list-section > header, .next-destination-section > header,
  .next-more-group > header, .profile-section > header) h2 { line-height: 24px; }
.phone[data-app-theme] :is(.section-header, .next-home-section-header,
  .service-list-section > header, .next-destination-section > header,
  .next-more-group > header, .profile-section > header) p { line-height: 20px; }
.phone[data-app-theme] :is(.section-header, .next-home-section-header) > div > h2 + p {
  margin-block-start: 4px;
}
.phone :is(.next-home-activity-list button > span:nth-child(2),
  .business-row-list button > span:nth-child(2), .profile-menu-row > span:nth-child(2),
  .new-journey-map article > div, .snapshot-info-points article > div,
  .receive-facts article > div, .scf-role-steps li > span) {
  row-gap: var(--biz-copy-gap);
}
.phone :is(.new-journey-map article > div, .snapshot-info-points article > div,
  .receive-facts article > div, .scf-role-steps li > span) > small {
  margin-top: 0;
}
.phone .login-password-heading > span { margin-block: 0; }
.phone :is(.scf-card-note, .activation-footnote, .smart-source-note,
  .cashflow-calculation-note):not(.biz-info-box) {
  margin-block-start: var(--biz-space-3);
}
.phone :is(.page-intro, .next-page-intro, .login-heading, .new-welcome-hero)
  + :is(.scope-card, .invoice-form, .invoice-party-card, .invoice-state-hero,
    .scf-status-card, .receive-identity-card, .profile-form, .identity-form) {
  margin-block-start: 0 !important;
}
/* Rounded content must grow inside a scrolling screen, never shrink and crop.
 * The overview previously clipped steps 2–4 to keep the action above the fold.
 */
.phone .new-customer-welcome > *,
.phone .login-step > :is(.new-journey-map, .review-ticket, .review-channels,
  .contract-summary, .opened-account-card, .recovery-card-summary) { flex-shrink: 0; }
.phone .new-customer-welcome > .scope-card { margin: 0 0 var(--biz-section-gap); }
.phone .new-customer-welcome > .new-journey-map { margin: 0; }
.phone .new-customer-welcome > .login-actions { padding-top: var(--biz-space-3); }

/* A divider is always one CSS pixel. It does not create a card outline.
 * Align the inset math with the normalized padding of numbered rows.
 */
.phone.app-theme-refined :is(.new-journey-map > article, .scf-role-steps > li,
  .receive-facts > article) { --biz-divider-row-padding: 16px; }
.phone.app-theme-refined .invoice-explainer li {
  --biz-divider-row-padding: 16px;
}
.phone :is(.new-journey-map > header, .invoice-document > header,
  .invoice-document > dl > div, .invoice-payment-receipt > header,
  .review-ticket > header, .contract-summary > header) {
  border-bottom-width: var(--biz-divider-thickness);
}

/* Step-card titles belong to the card surface, never a second filled box.
 * Row-owned cards retain the 16px row inset; already padded progress cards
 * place their heading directly on that padding without a second inset.
 */
html body .phone :is(.biz-step-card, .operation-progress-card, .new-journey-map, .invoice-explainer) > header {
  display: flex;
  width: 100%;
  max-width: 100%;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--biz-space-2) var(--biz-space-3);
  min-height: 0 !important;
  margin: 0 !important;
  padding: var(--biz-space-4) var(--biz-space-4) 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body .phone :is(.biz-step-card, .operation-progress-card) > header { padding: 0 !important; }
html body .phone :is(.biz-step-card, .operation-progress-card, .new-journey-map, .invoice-explainer) > header :is(strong, h2, h3) {
  min-width: 0;
  margin: 0;
  font: var(--biz-text-section)/var(--biz-line-body) var(--biz-font-semibold) !important;
  color: var(--ui-ink);
}
html body .phone :is(.biz-step-card, .operation-progress-card, .new-journey-map, .invoice-explainer) > header small {
  font: var(--biz-text-caption)/var(--biz-line-caption) var(--biz-font-regular) !important;
  color: var(--ui-muted);
}
html body .phone .invoice-explainer > header > div { flex: 1; min-width: 0; gap: var(--biz-space-1); }
html body .phone .invoice-explainer > header > span { flex-shrink: 0; }
/* A defined track keeps the header inside the card when WebKit switches
 * between borderless and bordered themes without rebuilding the content. */
html body .phone .invoice-explainer { display: grid; grid-template-columns: minmax(0, 1fr); }
html body .phone .invoice-explainer > ol { margin-block-start: 0 !important; padding: 0 !important; }
html body .phone :is(.biz-step-card, .operation-progress-card) > :is(ol, ul) {
  margin-block-start: var(--biz-space-4) !important;
  padding: 0 !important;
}

/* Numbered explanations share a 32px marker and readable text column. Status
 * timelines retain their check/current/pending state and connecting lines.
 */
.phone :is(.new-journey-map > article, .scf-role-steps > li,
  .invoice-explainer ol > li, .snapshot-info-points > article, .receive-facts > article,
  .biz-step-list > li) {
  display: grid;
  grid-template-columns: var(--biz-step-size) minmax(0, 1fr) !important;
  align-items: start !important;
  min-height: 0;
  padding: var(--biz-space-4) !important;
  gap: var(--biz-space-3) !important;
}
.phone :is(.new-journey-map > article > span, .scf-role-steps > li > i,
  .invoice-explainer ol > li > i, .snapshot-info-points > article > span,
  .receive-facts > article > span, .liveness-points > span > b,
  .correction-task-number, .biz-step-marker) {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-sizing: border-box;
  width: var(--biz-step-size) !important;
  height: var(--biz-step-size) !important;
  padding: 0;
  margin: 0;
  border: 0 !important;
  border-radius: var(--biz-icon-radius-compact) !important;
  background: var(--ui-soft);
  color: var(--ui-ink);
  font-family: var(--biz-font-medium) !important;
  font-size: var(--biz-text-body) !important;
  font-style: normal;
  line-height: var(--biz-line-body) !important;
}
.phone :is(.new-journey-map, .scf-role-steps, .invoice-explainer ol,
  .snapshot-info-points, .receive-facts, .biz-step-list) strong {
  display: block;
  margin: 0;
  font-family: var(--biz-font-medium) !important;
  font-size: var(--biz-text-body) !important;
  line-height: var(--biz-line-body) !important;
}
.phone :is(.new-journey-map, .scf-role-steps, .invoice-explainer ol,
  .snapshot-info-points, .receive-facts, .biz-step-list) small {
  display: block;
  margin-top: var(--biz-space-1);
  font-size: var(--biz-text-caption) !important;
  line-height: var(--biz-line-caption) !important;
  white-space: normal;
  overflow-wrap: anywhere;
}
.phone .biz-step-list { list-style: none; padding: 0; }
.phone .liveness-points > span {
  display: flex;
  align-items: center;
  gap: var(--biz-space-3);
  min-width: 0;
  font-size: var(--biz-text-body) !important;
  line-height: var(--biz-line-body);
}
.phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) > li {
  position: relative;
  display: grid;
  grid-template-columns: var(--biz-step-size) minmax(0, 1fr) !important;
  align-items: start;
  gap: var(--biz-space-3) !important;
  min-height: calc(var(--biz-step-size) + var(--biz-space-4));
  padding-block: 0 var(--biz-space-4);
}
.phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) > li > i {
  box-sizing: border-box;
  width: var(--biz-step-size) !important;
  height: var(--biz-step-size) !important;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: var(--biz-text-body) !important;
}
.phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) > li:not(:last-child)::after {
  inset-inline-start: calc((var(--biz-step-size) - 1px) / 2);
  top: var(--biz-step-size);
  bottom: 0;
}
.phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) > li > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) strong {
  font-size: var(--biz-text-body) !important;
  line-height: var(--biz-line-body) !important;
}
.phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) small {
  font-size: var(--biz-text-caption) !important;
  line-height: var(--biz-line-caption) !important;
}
/* A timeline owns a vertical connector, never the list-row horizontal divider.
 * Its status glyph has one surface; nested icon adapters must not add a tile.
 */
html body .phone .invoice-status-timeline { padding: var(--biz-space-4); }
html body .phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) > li {
  border: 0 !important;
  align-items: start;
}
html body .phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) > li > span {
  display: flex;
  flex-direction: column;
  gap: var(--biz-space-1) !important;
  padding: 0 !important;
}
html body .phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) > li > span > :is(strong, small) {
  margin: 0 !important;
}
html body .phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) > li:last-child {
  padding-bottom: 0;
  min-height: var(--biz-step-size);
}
html body .phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) > li:not(:last-child)::after {
  content: "";
  position: absolute;
  grid-column: auto;
  inset-inline-start: calc((var(--biz-step-size) - 1px) / 2) !important;
  inset-inline-end: auto !important;
  top: var(--biz-step-size) !important;
  bottom: 0 !important;
  width: 1px !important;
  height: auto;
  border: 0;
  background: var(--biz-line, var(--line, #e1e6e2));
  transform: none !important;
  pointer-events: none;
}
html body .phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) > li:last-child::after { content: none; }
html body .phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) > li > i {
  padding: 0;
  border: 0 !important;
  border-radius: 50%;
  background: var(--ui-soft) !important;
  color: var(--ui-muted) !important;
  box-shadow: none !important;
}
html body .phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) > li.done > i {
  color: var(--biz-success, #24714e) !important;
  background: var(--biz-success-soft, #edf7f1) !important;
}
html body .phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) > li.active > i {
  color: var(--ui-focus) !important;
  background: var(--ui-surface) !important;
  border: 1px solid currentColor !important;
  box-shadow: 0 0 0 3px var(--ui-focus-halo) !important;
}
html body .phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) > li:is(.issue, .error, .failed) > i {
  color: var(--biz-danger, #9b4650) !important;
  background: var(--biz-danger-soft, #fbeff1) !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body .phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) > li > i > svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}
html body .phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) > li > i:has(> svg) > .legacy-status-glyph { display: none !important; }
html body .phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) strong {
  font: 600 var(--biz-text-body)/var(--biz-line-body) var(--biz-font-semibold) !important;
  font-synthesis: none;
}

/* Leading icon rows measure their first track from the actual icon tile.
 * A 32px track containing a 40px tile otherwise consumes the visible gap.
 * Keep each row's existing trailing amount, action and selection columns.
 * Inline buttons/fields and vertically stacked shortcuts own their 8px gap.
 */
.phone .biz-icon-text-row { display: grid; align-items: center; }
html body .phone :is(
  .biz-icon-text-row, .recipient-row, .recipient-group-header,
  .recipient-group-destination, .transfer-help-list > article,
  .account-row, .space-row, .transaction-list > article, .event-row,
  .sheet-account-row, .management-list > button, .business-row-list > button,
  .connected-list > button, .route-options > button, .service-picker-row,
  .next-home-task-list > button, .next-home-activity-list > button,
  .next-connected-links > button, .next-more-group > div > button,
  .profile-menu-row, .profile-device-row, .attention-item.urgent, .attention-main
) {
  column-gap: var(--biz-icon-text-gap) !important;
}
html body .phone :is(
  .biz-icon-text-row, .recipient-row, .recipient-group-header,
  .recipient-group-destination:not(.matched), .transfer-help-list > article
) {
  grid-template-columns: max-content minmax(0, 1fr) !important;
}
html body .phone :is(
  .space-row, .transaction-list > article, .recipient-group-destination.matched,
  .management-list > button, .business-row-list > button, .connected-list > button,
  .route-options > button, .service-picker-row, .next-home-task-list > button,
  .next-connected-links > button, .next-more-group > div > button,
  .profile-menu-row, .profile-device-row, .attention-item.urgent, .attention-main
) {
  grid-template-columns: max-content minmax(0, 1fr) auto !important;
}
html body .phone :is(.account-row, .event-row, .sheet-account-row, .next-home-activity-list > button) {
  grid-template-columns: max-content minmax(0, 1fr) auto auto !important;
}
html body .phone :is(
  .biz-icon-text-row, .recipient-row, .recipient-group-header,
  .recipient-group-destination, .transfer-help-list > article,
  .account-row, .space-row, .transaction-list > article, .event-row,
  .sheet-account-row, .management-list > button, .business-row-list > button,
  .connected-list > button, .route-options > button, .service-picker-row,
  .next-home-task-list > button, .next-home-activity-list > button,
  .next-connected-links > button, .next-more-group > div > button,
  .profile-menu-row, .profile-device-row, .attention-item.urgent, .attention-main
) > :nth-child(2) {
  min-width: 0;
}
/* Contact identifiers use the same regular-weight secondary type as other list rows. */
html body .phone :is(
  .recipient-row > span:nth-child(2) > small,
  .recipient-destination-copy > b
) {
  font-family: var(--biz-font-regular) !important;
  font-weight: 400 !important;
  font-synthesis: none;
}
/* This nested row's divider starts at its copy, beyond padding + tile + gap. */
.phone.app-theme-refined .attention-item.feature {
  --biz-divider-start: calc(8px + 36px + var(--biz-icon-text-gap));
}

/* Icon glyphs do not shrink in text rows. Illustrations, logos and the existing
 * 24px navigation / 28px main account glyphs deliberately keep their own size.
 */
.phone :is(.field > div, .invoice-field > div, .search-field,
  .biz-field-control, .primary-button, .secondary-button) > svg,
.phone :is(.field > div, .search-field) > button > svg {
  flex-shrink: 0;
  width: var(--biz-icon-glyph) !important;
  height: var(--biz-icon-glyph) !important;
  stroke-width: var(--biz-icon-stroke);
}
.phone :is(.primary-button, .secondary-button) {
  min-height: var(--biz-action-height);
  height: auto;
  padding: var(--biz-space-3) var(--biz-space-5);
  gap: var(--biz-space-2);
  border-radius: var(--biz-radius-control);
  font-size: var(--biz-text-body) !important;
  line-height: var(--biz-line-body) !important;
  white-space: normal;
  overflow-wrap: anywhere;
}
/* Approved primary-action aura: keep the action's own fill above the light.
 * Shared selectors also cover dynamically mounted forms and native dialogs.
 * The card request and install action predate the primary-button class.
 */
:is(.phone .primary-button, .phone .detail-primary, .phone #request-single-card, .pwa-install-primary) {
  --biz-action-aura-opacity: .5;
  position: relative;
  isolation: isolate;
  overflow: visible !important;
  box-shadow: none !important;
  /* Keep blurred overflow in a stable coordinate space during interaction.
   * Transform/opacity compositing can crop the blur's paint bounds.
   * Animate light intensity inside the filter instead of scaling its layer.
   */
  transform: none !important;
  filter: none !important;
  transition: box-shadow .25s ease;
}
/* Dark-mode decorative lights are half strength; login keeps its approved aura. */
html[data-color-scheme="dark"] :is(.phone .primary-button, .phone .detail-primary, .phone #request-single-card, .pwa-install-primary):not(#login-screen *) {
  --biz-action-aura-opacity: .25;
}
:is(.phone .primary-button, .phone .detail-primary, .phone #request-single-card, .pwa-install-primary)::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 8px 7px -8px;
  border-radius: inherit;
  /* Inherit the actual action fill, including semantic colors and gradients. */
  background: inherit;
  filter: blur(16px) opacity(var(--biz-action-aura-opacity));
  transition: filter .25s ease;
  pointer-events: none;
}
:is(.phone .primary-button, .phone .detail-primary, .phone #request-single-card, .pwa-install-primary)::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  :is(.phone .primary-button, .phone .detail-primary, .phone #request-single-card, .pwa-install-primary):not(:disabled, [aria-disabled="true"], .is-loading):hover::before {
    filter: blur(16px) opacity(calc(var(--biz-action-aura-opacity) * 1.25));
  }
}
:is(.phone .primary-button, .phone .detail-primary, .phone #request-single-card, .pwa-install-primary):not(:disabled, [aria-disabled="true"], .is-loading):active::before {
  filter: blur(16px) opacity(calc(var(--biz-action-aura-opacity) * .65));
}
:is(.phone .primary-button, .phone .detail-primary, .phone #request-single-card, .pwa-install-primary):is(:disabled, [aria-disabled="true"], .is-loading) {
  box-shadow: none !important;
}
:is(.phone .primary-button, .phone .detail-primary, .phone #request-single-card, .pwa-install-primary):is(:disabled, [aria-disabled="true"], .is-loading)::before {
  filter: blur(16px) opacity(0);
}
@media (prefers-reduced-motion: reduce) {
  :is(.phone .primary-button, .phone .detail-primary, .phone #request-single-card, .pwa-install-primary),
  :is(.phone .primary-button, .phone .detail-primary, .phone #request-single-card, .pwa-install-primary)::before {
    transition: none !important;
  }
}
@media (forced-colors: active) {
  :is(.phone .primary-button, .phone .detail-primary, .phone #request-single-card, .pwa-install-primary)::before,
  :is(.phone .primary-button, .phone .detail-primary, .phone #request-single-card, .pwa-install-primary)::after {
    content: none;
  }
}
.phone :is(button, a, select, textarea, input):focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 3px;
}

/* A descriptive action is one touch target: glyph, shared text column, chevron.
 * It has no card surface. Text wraps naturally without manual subtitle offsets.
 */
.phone .biz-action-row {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: var(--biz-icon-glyph) minmax(0, 1fr) var(--biz-space-4);
  align-items: center;
  gap: var(--biz-space-3);
  width: 100%;
  min-width: 0;
  min-height: var(--biz-touch);
  height: auto;
  margin: 0;
  padding: var(--biz-space-4) 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--ui-ink);
  text-align: start;
  white-space: normal;
  cursor: pointer;
}
.phone .biz-action-row--danger { color: var(--biz-danger, #ab3442); }
.phone .biz-action-copy {
  display: grid;
  min-width: 0;
  gap: var(--biz-copy-gap);
}
.phone .biz-action-copy > :is(strong, small) {
  display: block;
  margin: 0;
  padding: 0;
  overflow-wrap: anywhere;
  letter-spacing: 0 !important;
}
.phone .biz-action-copy > strong {
  color: inherit;
  font-family: var(--biz-font-medium) !important;
  font-size: var(--biz-text-body) !important;
  font-weight: 500;
  line-height: var(--biz-line-body) !important;
}
.phone .biz-action-copy > small {
  color: var(--ui-muted);
  font-family: var(--biz-font-regular) !important;
  font-size: var(--biz-text-caption) !important;
  font-weight: 400;
  line-height: var(--biz-line-caption) !important;
}
.phone .biz-action-row > svg {
  width: var(--biz-icon-glyph) !important;
  height: var(--biz-icon-glyph) !important;
  color: inherit;
  stroke-width: var(--biz-icon-stroke) !important;
}
.phone .biz-action-row > .biz-action-chevron {
  width: var(--biz-space-4) !important;
  height: var(--biz-space-4) !important;
}
.phone .biz-action-row:active { background: var(--ui-soft); }

/* Fit the contents, not just the phone frame. Never hide a financial amount
 * with an ellipsis. Deliberate horizontal rails own their scrolling.
 */
.phone :is(.invoice-field-grid, .card-auth-grid) > *,
.phone :is(.scf-case-row, .invoice-party-card, .invoice-total-card,
  .next-home-cashflow-equation, .energy-auto-pay, .profile-biometric-card) > * {
  min-width: 0;
}
.phone .next-home-cashflow-equation b {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.phone .scf-screen .scf-case-filters {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  gap: var(--biz-space-1);
}
.phone .scf-screen .scf-case-filters button { flex: 1 0 auto; }
.phone :is(.invoice-progress, .scf-case-row > header,
  .bottom-sheet > header, .section-header, .profile-section > header) {
  min-width: 0;
  gap: var(--biz-space-2);
}
.phone :is(.bottom-sheet > header > div, .profile-biometric-copy,
  .account-overview, .detail-linked-card, .invoice-document) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.phone .invoice-field-grid > .invoice-field { align-self: stretch; }
.phone .invoice-field-grid > .invoice-field > span { min-height: var(--biz-line-body); }
@media (max-width: 360px) {
  .phone .invoice-field-grid { grid-template-columns: minmax(0, 1fr); }
  /* A six-digit code needs its own full-width line beside a 132px request action. */
  .phone .card-auth-otp-field > div { grid-template-columns: 20px minmax(0, 1fr); }
  .phone .card-auth-otp-field > div > button.field-action-button {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100% !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .phone :is(.field > div, .invoice-field > div, .biz-field-control, .search-field) { transition: none; }
}
@media (forced-colors: active) {
  .phone, .phone[data-app-theme], html[data-color-scheme] .phone {
    --ui-card-stroke: 1px;
    --ui-field-stroke: 1px;
    --ui-card-line: CanvasText;
    --ui-field-line: CanvasText;
  }
  .phone :is(.field > div, .invoice-field > div, .biz-field-control,
    .search-field, .otp-input-wrap, .card-auth-expiry-control):focus-within {
    outline: 2px solid Highlight !important;
    outline-offset: 3px;
  }
}

/* Biometric action glyphs keep the same size before and during verification,
 * including activation sheets mounted outside the login screen. */
.phone {
  --biz-biometric-glyph: 28px;
}
.phone button .button-loading-biometric,
.phone button[data-loading-kind="biometric"] [data-biometric-icon],
.phone #return-to-biometric-login > [data-biometric-icon] {
  width: var(--biz-biometric-glyph) !important;
  height: var(--biz-biometric-glyph) !important;
  flex: 0 0 var(--biz-biometric-glyph) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.phone button .button-loading-biometric svg,
.phone button[data-loading-kind="biometric"] [data-biometric-icon] svg,
.phone #return-to-biometric-login > [data-biometric-icon] svg {
  width: var(--biz-biometric-glyph) !important;
  height: var(--biz-biometric-glyph) !important;
  flex-shrink: 0;
}
.phone button .button-loading-biometric::after {
  left: 4px;
  top: 5px;
  width: 20px;
}

/* Monthly money movement: directional glyphs and semantic values. */
html body .phone .statement-summary > p {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
html body .phone :is(.statement-summary, .account-monthly-flow) .statement-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
html body .phone .statement-flow-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 10px;
}
html body .phone .statement-flow-icon svg { width: 20px; height: 20px; }
html body .phone .statement-flow-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
html body .phone .statement-flow-copy > small {
  font-family: var(--biz-font-regular) !important;
  font-size: 12px;
  line-height: 20px;
  color: var(--ui-muted);
}
html body .phone .statement-flow-copy > b { font-size: 14px; line-height: 24px; }
html body .phone .statement-flow[data-flow="incoming"] :is(b, .biz-money, .biz-money-number, .biz-money-unit) { color: var(--biz-positive-amount) !important; }
html body .phone .statement-flow[data-flow="outgoing"] :is(b, .biz-money, .biz-money-number, .biz-money-unit) { color: #c33348 !important; }
html[data-color-scheme="dark"] body .phone .statement-flow[data-flow="outgoing"] :is(b, .biz-money, .biz-money-number, .biz-money-unit) { color: #ff8c99 !important; }
@media (max-width: 360px) {
  html body .phone .statement-summary > p { grid-template-columns: minmax(0, 1fr); }
}

/* Statement account identity: full identifier, explicit action only when selectable. */
html body .phone #statement-account-switch {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  text-align: start;
  opacity: 1;
}
html body .phone #statement-account-switch.static { grid-template-columns: 40px minmax(0, 1fr); cursor: default; }
html body .phone #statement-account-switch .statement-account-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
}
html body .phone #statement-account-switch .statement-account-icon svg { display: block; width: 24px; height: 24px; }
html body .phone #statement-account-switch .statement-account-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
html body .phone #statement-account-switch small { font: 400 12px/20px var(--biz-font-regular); color: var(--ui-muted); }
html body .phone #statement-account-switch strong { font: 600 14px/24px var(--biz-font-semibold); color: var(--ui-ink); }
html body .phone #statement-account-switch .statement-account-identifier { display: flex; flex-wrap: wrap; gap: 4px 8px; font: 400 12px/20px var(--biz-font-regular); color: var(--ui-muted); }
html body .phone #statement-account-number { font: 400 14px/20px var(--biz-font-regular); color: var(--ui-ink); white-space: nowrap; letter-spacing: 0; }
html body .phone #statement-account-switch .statement-account-action { display: flex; align-items: center; gap: 8px; font: 400 12px/20px var(--biz-font-regular); color: var(--ui-ink); }
html body .phone #statement-account-action[hidden] { display: none; }
html body .phone #statement-account-action svg { width: 16px; height: 16px; }
@media (max-width: 390px) {
  html body .phone #statement-account-switch { grid-template-columns: 40px minmax(0, 1fr); }
  html body .phone #statement-account-action { grid-column: 2; }
}

/* Independent page sections share one 48px start; fields inside forms do not. */
.phone { --app-list-section-gap: 48px; }
html body .phone[data-app-theme] :is(
  .home-section, .accounts-subsection, .management-section,
  .service-list-section, .next-home-section, .next-destination-section,
  .next-more-group, .profile-section,
  section:has(> .section-header), section:has(> .next-home-section-header),
  .event-group + .event-group, .transaction-group + .transaction-group,
  .biz-section-start
) { margin-block-start: var(--app-list-section-gap) !important; }
html body .phone .biz-section-start { display: block; }
/* A separate search section begins after the period picker. */
html body .phone .period-tabs:has(+ .biz-section-start) { margin-block-end: 0 !important; }

/* Today reminders: title followed by one concise amount/status line. */
html body .phone .next-home-task-list > button { min-height: 0; }
html body .phone .next-home-task-list .reminder-copy { min-width: 0; }
html body .phone .next-home-task-list .reminder-copy > small {
  font-size: 12px !important;
  line-height: 24px !important;
}

/* Statement balance label and value share the same text baseline. */
html body .phone .statement-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 8px;
}
html body .phone .statement-summary > span { margin: 0; align-self: baseline; }
html body .phone .statement-summary > .biz-money-pair {
  margin: 0;
  align-self: baseline;
  min-width: 0;
}
html body .phone .statement-summary > p { grid-column: 1 / -1; }

/* Supporting copy above a title follows the same rhythm as copy below it. */
html body .phone .biz-list-copy > :is(.biz-list-title, .biz-list-description) {
  margin-block: 0 !important;
  line-height: max(24px, 1.65em) !important;
}
html body .phone .next-payment-upcoming > .biz-list-copy { gap: 4px !important; }
html body .phone .next-payment-upcoming { column-gap: 16px; }

/* Business overview: a prominent sales row above two quiet, linked indicators. */
html body .phone #screen-business > .next-business-summary {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  grid-template-rows:auto auto; gap:0 !important;
  padding:16px 20px !important; border-radius:24px;
  --business-sales-ink:#155f59; --business-awaiting-ink:#966120;
}
html body .phone #screen-business > .next-business-summary > article {
  position:relative; display:grid; grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto auto auto; grid-row:auto; grid-column:auto;
  align-content:start; gap:4px; min-width:0; padding:12px 0 0 !important;
  border:0 !important; text-align:start;
}
html body .phone #screen-business > .next-business-summary > .business-summary-sales {
  grid-column:1 / -1; grid-template-rows:auto auto; padding:0 0 12px !important;
  border-bottom:1px solid var(--biz-divider-color,var(--business-summary-line)) !important;
}
html body .phone #screen-business .next-business-summary > article::before { content:none; }
html body .phone #screen-business > .next-business-summary > .business-summary-awaiting { padding-inline-end:16px !important; }
html body .phone #screen-business > .next-business-summary > .business-summary-cashflow { padding-inline-start:16px !important; }
html body .phone #screen-business .business-summary-cashflow::before {
  content:""; position:absolute; inset-block:12px 0; inset-inline-start:0;
  width:1px; background:var(--biz-divider-color,var(--business-summary-line));
}
html body .phone #screen-business .next-business-summary .business-metric-label {
  margin:0; color:var(--ui-muted) !important;
  font:400 12px/20px var(--biz-font-regular) !important;
}
html body .phone #screen-business .next-business-summary .business-metric-number {
  margin:0; color:var(--ui-ink); font:600 22px/28px var(--biz-font-semibold) !important;
  letter-spacing:0 !important; font-variant-numeric:proportional-nums; overflow-wrap:anywhere;
}
html body .phone #screen-business .next-business-summary .business-sales-value {
  display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; min-width:0;
}
html body .phone #screen-business .business-summary-sales .business-metric-number { font-size:30px !important; line-height:40px !important; color:var(--business-sales-ink); }
html body .phone #screen-business .business-summary-sales .business-metric-number bdi { font:inherit; }
html body .phone #screen-business .next-business-summary .business-metric-caption {
  margin:0; color:var(--ui-muted); font:400 12px/20px var(--biz-font-regular) !important;
}
html body .phone #screen-business .next-business-summary .business-sales-action {
  display:flex; align-items:center; gap:4px; width:fit-content; margin:0;
  position:absolute; inset-inline-end:0; inset-block-start:0;
  color:var(--ui-muted); font:400 12px/20px var(--biz-font-regular) !important;
}
html body .phone #screen-business .business-sales-action svg { width:16px; height:16px; }
html body .phone #screen-business .business-summary-cashflow .business-metric-number { font-size:16px !important; line-height:28px !important; }
html body .phone #screen-business .business-summary-cashflow .business-metric-number.is-positive { color:var(--biz-positive-amount); }
html body .phone #screen-business .business-summary-cashflow .business-metric-number.is-tight { color:var(--biz-tile-orange); }
html body .phone #screen-business .business-metric-chevron { position:absolute; inset-inline-end:0; inset-block-start:15px; width:14px; height:14px; color:var(--ui-muted); }
html body .phone #screen-business .business-summary-awaiting .business-metric-chevron { inset-inline-end:16px; }
html body .phone #screen-business .next-business-summary > article:not(.business-summary-sales) .business-metric-label { padding-inline-end:18px; }
@media(max-width:390px) {
  html body .phone #screen-business > .next-business-summary { padding:16px !important; }
  html body .phone #screen-business .business-summary-sales .business-metric-number { font-size:28px !important; line-height:36px !important; }
}

/* Each summary region remains one native action, with keyboard focus. */
html body .phone #screen-business .next-business-summary .business-metric-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: auto;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}
html body .phone #screen-business .business-metric-link:focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: -2px;
}
html body .phone #screen-business .business-metric-link:is(:hover,:active) { background:transparent !important; box-shadow:none !important; }
html body .phone #screen-business .business-summary-awaiting .business-metric-number { color:var(--business-awaiting-ink); }
html body .phone #screen-business .next-business-summary > article > .business-metric-caption { font-size:11px !important; line-height:20px !important; }
html[data-color-scheme="dark"] body .phone #screen-business > .next-business-summary { --business-sales-ink:#7ed9c3; --business-awaiting-ink:#e9bb79; }

/* Forecast widget metric values share the primary SemiBold hierarchy. */
html body .phone .next-home-cashflow-summary-metrics > span > strong {
  font-family: var(--biz-font-semibold) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 24px !important;
  color: var(--ui-ink) !important;
  font-synthesis: none;
}

html body .phone .next-home-cashflow-summary-metrics > span > strong :is(.biz-money, .biz-money-number, .biz-money-unit) { color: inherit !important; }

/* A heading inside a card is not a standalone page-section heading. */
html body .phone[data-app-theme] .app-screen :is(
  .health-my-care,
  .biz-card:has(> :is(header, h2, h3)),
  .biz-card-section
) {
  margin-block-start: 16px !important;
}
html body .phone :is(.health-my-care, .biz-card-section) > :is(header, h2, h3):first-child {
  margin-block-start: 0 !important;
}

/* Detail-page section headings have the same primary role as list headings. */
html body .phone :is(.detail-page .detail-section > h2, .biz-section-title) {
  font-family: var(--biz-font-semibold) !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 24px !important;
  color: var(--ui-ink) !important;
  font-synthesis: none;
}

html body .phone .scf-case-row > header > small {
  font-family: var(--biz-font-regular) !important;
  font-weight: 400 !important;
}

/* Card copy titles use body-scale headings; financial figures keep display size. */
html body .phone :is(
  .scf-status-card, .invoice-state-hero, .health-recommendation,
  .biz-card, .biz-card-section
) :is(h2, h3):not(.sensitive):not(:has(.biz-money, .biz-money-pair, .biz-amount)),
html body .phone .biz-card-title {
  font-family: var(--biz-font-semibold) !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 26px !important;
  font-synthesis: none;
  margin-block: 4px !important;
}

/* Evidence explanation: one title, regular body copy and a quiet supporting note. */
html body .phone .scf-requested-evidence {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--biz-card-padding) !important;
}
html body .phone .scf-requested-evidence > strong {
  margin: 0 !important;
  font-family: var(--biz-font-semibold) !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 26px !important;
  color: var(--ui-ink) !important;
  font-synthesis: none;
}
html body .phone .scf-requested-evidence > :is(p, small) {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-family: var(--biz-font-regular) !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  line-height: 24px !important;
  color: var(--ui-muted) !important;
}
html body .phone .scf-requested-evidence > small { font-size: 12px !important; line-height: 20px !important; }

/* Timeline supporting copy never inherits the surrounding button's weight. */
html body .phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) small {
  font-family: var(--biz-font-regular) !important;
  font-weight: 400 !important;
  color: var(--ui-muted) !important;
}
html body .phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) > li {
  margin-block: 0 !important;
  padding-block: 0 16px !important;
}
html body .phone :is(.review-timeline, .operation-timeline, .card-delivery-timeline,
  .invoice-status-timeline, .scf-timeline, .pos-review-timeline) > li:last-child { padding-block-end: 0 !important; }

/* Receive methods use the same vertical service-tile layout as other destinations. */
html body .phone .receive-method-grid > button {
  display: flex !important;
  flex-direction: column;
  row-gap: 0 !important;
  align-items: flex-start;
  text-align: start;
  padding: var(--biz-card-padding) !important;
  padding-block-end: 16px !important;
}
html body .phone .receive-method-grid > button > span:first-child {
  position: static;
  width: 40px;
  height: 40px;
  margin: 0 !important;
}
html body .phone .receive-method-grid > button > :is(strong, small) { width: 100%; min-width: 0; }

/* Explanatory cards need more separation than compact list copy. */
html body .phone :is(.receive-use-case, .biz-explanation-card) { row-gap: 0; }
html body .phone :is(.receive-use-case, .biz-explanation-card) > :is(strong, h2, h3) + p {
  margin-block: 12px 0 !important;
}

/* The promo eyebrow uses the parent's 4px gap, without a second title margin. */
html body .phone .next-home-promo-copy > small { line-height: 20px !important; }
html body .phone .next-home-promo-copy > small + h2 { margin-block-start: 0 !important; }

/* Page introductions: shared hierarchy; the Business hero keeps its identity. */
html body .phone .app-screen:not(#screen-business) :is(.page-intro, .next-page-intro, .transfer-title, .page-heading > div):has(> h1) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0 !important;
  min-width: 0;
}
html body .phone .app-screen:not(#screen-business) :is(.page-intro, .next-page-intro, .transfer-title, .page-heading > div):has(> h1) > h1 {
  margin-block: 0 !important;
  font-family: var(--biz-font-semibold) !important;
  font-weight: 600 !important;
  font-size: 24px !important;
  line-height: 32px !important;
  color: var(--ui-ink) !important;
  font-synthesis: none;
  letter-spacing: 0 !important;
}
html body .phone .app-screen:not(#screen-business) :is(.page-intro, .next-page-intro, .transfer-title, .page-heading > div):has(> h1) > :is(p, span, small):has(~ h1) {
  display: block;
  margin-block: 0 4px !important;
  font: 400 12px/20px var(--biz-font-regular) !important;
  color: var(--ui-muted) !important;
}
html body .phone .app-screen:not(#screen-business) :is(.page-intro, .next-page-intro, .transfer-title, .page-heading > div):has(> h1) > :is(p, span, small) + h1 { margin-block-start: 0 !important; }
html body .phone .app-screen:not(#screen-business) :is(.page-intro, .next-page-intro, .transfer-title, .page-heading > div):has(> h1) > h1 + :is(p, span, small) {
  display: block;
  margin-block: 8px 0 !important;
  font: 400 14px/24px var(--biz-font-regular) !important;
  color: var(--ui-muted) !important;
  white-space: normal;
}

/* Verified identity/context cards share a readable copy stack and icon spacing. */
html body .phone .verified-person {
  grid-template-columns: max-content minmax(0, 1fr) auto !important;
  align-items: center;
  gap: 12px !important;
  padding: var(--biz-card-padding) !important;
  padding-block: 12px !important;
}
html body .phone .verified-person > div { min-width: 0; display: flex; flex-direction: column; gap: 4px !important; }
html body .phone .verified-person > div > :is(small, strong, i) { margin: 0 !important; }
html body .phone .verified-person > div > strong {
  font: 600 14px/24px var(--biz-font-semibold) !important;
  color: var(--ui-ink);
  font-synthesis: none;
}
html body .phone .verified-person > div > :is(small, i) {
  font: 400 12px/20px var(--biz-font-regular) !important;
  color: var(--ui-muted);
  white-space: normal;
}
html body .phone .verified-person > b { gap: 4px; white-space: nowrap; }
@media (max-width: 390px) {
  html body .phone .verified-person { grid-template-columns: max-content minmax(0, 1fr) !important; row-gap: 8px !important; }
  html body .phone .verified-person > b { grid-column: 2; justify-self: start; }
}

/* Onboarding summaries and consent rows use the same text hierarchy. */
html body .phone :is(.postal-result.streamlined, .deposit-option) {
  grid-template-columns: max-content minmax(0, 1fr) auto !important;
  gap: 12px !important;
  padding: var(--biz-card-padding) !important;
}
html body .phone :is(.postal-result.streamlined, .deposit-option) > div,
html body .phone .consent-row > span > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px !important;
}
html body .phone :is(.postal-result.streamlined, .deposit-option) > div > :is(small, strong, i, p),
html body .phone .consent-row > span > span > :is(strong, small) { margin: 0 !important; }
html body .phone :is(.postal-result.streamlined, .deposit-option) > div > strong,
html body .phone .consent-row strong {
  font: 600 14px/24px var(--biz-font-semibold) !important;
  color: var(--ui-ink) !important;
  font-synthesis: none;
}
html body .phone :is(.postal-result.streamlined, .deposit-option) > div > :is(small, i),
html body .phone .consent-row small {
  font: 400 12px/20px var(--biz-font-regular) !important;
  color: var(--ui-muted) !important;
  white-space: normal;
}
html body .phone .deposit-option > div > p {
  font: 400 14px/24px var(--biz-font-regular) !important;
  color: var(--ui-muted) !important;
  margin-block-start: 4px !important;
}
html body .phone .deposit-option dl { margin-block: 8px 0 !important; }
html body .phone .deposit-option dl > div { padding-block: 8px !important; }
html body .phone .deposit-option dt { font: 400 12px/20px var(--biz-font-regular) !important; }
html body .phone .deposit-option dd { font: 600 14px/24px var(--biz-font-semibold) !important; }
html body .phone .consent-row > span { gap: 12px !important; padding: 12px !important; align-items: center; }
html body .phone .consent-row > span > b { flex-shrink: 0; }
@media (max-width: 390px) {
  html body .phone .postal-result.streamlined { grid-template-columns: max-content minmax(0, 1fr) !important; row-gap: 8px !important; }
  html body .phone .postal-result.streamlined > button { grid-column: 2; justify-self: start; }
}

/* Login/onboarding page headings share the main-page hierarchy, including results. */
html body .phone #login-screen .login-heading {
  display: flex;
  flex-direction: column;
  gap: 0 !important;
}
html body .phone #login-screen .login-heading > :is(h1, h2) {
  font: 600 24px/32px var(--biz-font-semibold) !important;
  color: var(--ui-ink) !important;
  font-synthesis: none;
  margin-block: 0 !important;
}
html body .phone #login-screen .login-heading > :is(span, small, p):has(~ :is(h1, h2)) {
  font: 400 12px/20px var(--biz-font-regular) !important;
  color: var(--ui-muted) !important;
  margin-block: 0 4px !important;
}
html body .phone #login-screen .login-heading > :is(h1, h2) + :is(p, span, small) {
  font: 400 14px/24px var(--biz-font-regular) !important;
  color: var(--ui-muted) !important;
  margin-block: 8px 0 !important;
}

/* Account-opened confirmation uses the same page title/eyebrow hierarchy. */
html body .phone #login-step-new-account-opened > p {
  font: 400 12px/20px var(--biz-font-regular) !important;
  color: var(--ui-muted) !important;
  margin-block-end: 4px !important;
}
html body .phone #account-opened-title {
  font: 600 24px/32px var(--biz-font-semibold) !important;
  color: var(--ui-ink) !important;
  font-synthesis: none;
  margin-block-start: 0 !important;
}

/* A concise opening headline wraps naturally instead of forcing a long first line. */
html body .phone .new-welcome-hero > h1 {
  font: 600 24px/34px var(--biz-font-semibold) !important;
  color: var(--ui-ink) !important;
  font-synthesis: none;
  text-wrap: balance;
}
html body .phone .new-welcome-hero > p {
  font: 400 12px/20px var(--biz-font-regular) !important;
  color: var(--ui-muted) !important;
}

/* Soft & Precise: selected choice cards are neutral surfaces, not info boxes.
   Existing checkmarks, controls and keyboard focus continue to show selection. */
html body .phone[data-app-theme="soft-precise"] :is(
  .deposit-option.selected, .biometric-card.selected, .delivery-option.selected,
  .card-address-option.selected, .recovery-method-option.selected,
  .recovery-method-option.is-selected, .returning-method-option.selected,
  .pos-type-options > button.selected
) { background: var(--ui-surface) !important; }

/* Soft & Precise summaries keep one continuous surface above the page canvas. */
html body .phone[data-app-theme="soft-precise"] :is(.contract-summary, .review-ticket) {
  background: var(--ui-surface) !important;
}
html body .phone[data-app-theme="soft-precise"] :is(.contract-summary, .review-ticket) > header {
  background: var(--ui-surface) !important;
  color: var(--ui-ink) !important;
}
html body .phone[data-app-theme="soft-precise"] :is(.contract-summary, .review-ticket) > header strong { color: var(--ui-ink) !important; }
html body .phone[data-app-theme="soft-precise"] :is(.contract-summary, .review-ticket) > header small { color: var(--ui-muted) !important; }

/* External card/list headers share a 20px inset on both sides. */
.phone { --biz-section-heading-inset: 20px; }
html body .phone[data-app-theme] :is(
  .section-header, .next-home-section-header,
  .service-list-section > header, .next-destination-section > header,
  .next-more-group > header, .profile-section > header,
  .event-group > header, .transaction-group > header,
  .recipient-group-header, .recipient-heading,
  .detail-section > h2, .biz-section-heading
):not(:where(
  .health-my-care > header, .biz-card > header, .biz-card-section > header,
  .operation-progress-card > header, .biz-step-card > header
)) {
  margin-inline: var(--biz-section-heading-inset) !important;
  width: auto !important;
  min-width: 0;
  padding-inline: 0 !important;
}

/* Field labels and external supporting copy align 20px inside the control edges. */
.phone { --biz-field-copy-inset: 20px; }
html body .phone :is(
  .field > span, .invoice-field > span, .biz-field > label,
  .field-control-label, .login-password-heading > span,
  .device-pin-fields label > span, .card-auth-expiry > legend,
  .field > small, .invoice-field > small, .biz-field > small,
  .field > .field-error, .invoice-field > .field-error, .biz-field > .field-error,
  .field-help, .field-hint, .login-error
) {
  margin-inline: var(--biz-field-copy-inset) !important;
  width: auto !important;
  min-width: 0;
}
html body .phone :is(.field > small, .invoice-field > small, .biz-field > small) { display: block; }

/* Recent recipients own a card: device bottom clearance belongs outside it.
   Grouped contacts keep their transparent scroll-container clearance. */
html body .phone .transfer-screen.destination-list-mode #recipient-list.recent-recipient-list {
  padding-block-end: 0 !important;
  margin-block-end: max(16px, var(--app-safe-bottom, 0px));
}

/* Transfer amount step: consistent card copy, spacing and unobtrusive validation. */
html body .phone #transfer-amount :is(.selected-recipient, .transfer-amount-card, .smart-route, .transfer-details-switch) {
  padding: var(--biz-card-padding) !important;
  border-radius: var(--biz-radius-card) !important;
}
html body .phone #transfer-amount > :is(.selected-recipient, .transfer-amount-card, .smart-source-note, .smart-route, .transfer-details-switch) {
  margin-block: 0 16px !important;
}
html body .phone #transfer-amount :is(.selected-recipient, .smart-route-main) {
  grid-template-columns: max-content minmax(0, 1fr) auto !important;
  column-gap: 12px !important;
}
html body .phone #transfer-amount :is(.selected-recipient > span:nth-child(2), .smart-route-main > div, .source-switch > span:first-child, .transfer-details-switch > span:first-child) {
  display: flex;
  flex-direction: column;
  gap: 4px !important;
  min-width: 0;
}
html body .phone #transfer-amount :is(.selected-recipient strong, .smart-route-main strong, .source-switch strong, .transfer-details-switch strong, .smart-route > header > span, .amount-entry > label) {
  font: 600 14px/24px var(--biz-font-semibold) !important;
  color: var(--ui-ink) !important;
  font-synthesis: none;
  margin: 0;
}
html body .phone #transfer-amount :is(.selected-recipient small, .smart-route-main small, .source-switch small, .transfer-details-switch small, #transfer-source-balance, .route-limit > span) {
  font: 400 12px/20px var(--biz-font-regular) !important;
  color: var(--ui-muted) !important;
  margin: 0;
}
html body .phone #transfer-amount :is(.selected-recipient > span:last-child, #change-route) {
  border-bottom: 0 !important;
  text-decoration: none;
  font: 500 12px/20px var(--biz-font-medium) !important;
}
html body .phone #selected-recipient-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 var(--biz-icon-tile-row, 40px);
  width: var(--biz-icon-tile-row, 40px);
  height: var(--biz-icon-tile-row, 40px);
  border-radius: 14px !important;
  font: 600 18px/1 var(--biz-font-semibold) !important;
  font-synthesis: none;
}
html body .phone #transfer-amount .selected-recipient { row-gap: 8px !important; align-items: center; }
html body .phone #transfer-amount .selected-recipient #selected-recipient-name { font: 600 16px/26px var(--biz-font-semibold) !important; white-space: normal; }
html body .phone #transfer-amount .selected-recipient .selected-recipient-action { font: 500 12px/20px var(--biz-font-medium) !important; white-space: nowrap; color: var(--ui-muted); }
html body .phone #selected-recipient-number { grid-column: 1 / -1; display: block; width: 100%; min-width: 0; margin: 0; font: 400 14px/24px var(--biz-font-regular) !important; color: var(--ui-ink); direction: ltr; text-align: right; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; letter-spacing: 0; }
html body .phone #transfer-amount .amount-entry { min-height: 0 !important; padding-block: 12px 0 !important; }
html body .phone #transfer-amount .source-switch { margin-block: 16px 0 !important; padding-block: 16px 0 !important; border-top-width: 1px; }
/* Transfer method card: one padded surface, fixed type roles and rhythm. */
html body .phone #transfer-amount .smart-route > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 0; border: 0; }
html body .phone #transfer-amount .smart-route > header > span { font: 400 12px/20px var(--biz-font-regular) !important; color: var(--ui-muted); }
html body .phone #transfer-amount #change-route { min-height: 48px; padding: 8px 12px; border: 0 !important; border-radius: 999px; background: var(--ui-soft) !important; color: var(--ui-ink) !important; font: 500 12px/20px var(--biz-font-medium) !important; }
html body .phone #transfer-amount .smart-route-main { margin-block: 16px 0 !important; grid-template-columns: max-content minmax(0, 1fr) !important; align-items: center; }
html body .phone #transfer-amount .smart-route-main > span { width: 40px; height: 40px; border-radius: 12px; }
html body .phone #transfer-amount .smart-route .smart-route-main strong { font: 600 16px/26px var(--biz-font-semibold) !important; }
html body .phone #transfer-amount #route-badge { padding: 2px 8px; border: 0 !important; border-radius: 999px; background: var(--ui-soft) !important; color: var(--ui-muted) !important; font: 400 12px/20px var(--biz-font-regular) !important; font-style: normal; white-space: nowrap; }
html body .phone #transfer-amount .biz-route-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
html body .phone #transfer-amount .smart-route > .biz-limit-summary { margin-block: 20px 0; padding: 0; min-height: 24px; flex-direction: column; align-items: flex-start; gap: 4px; }
html body .phone #transfer-amount .smart-route > .biz-limit-summary strong { font: 600 20px/32px var(--biz-font-semibold) !important; }
html body .phone #transfer-amount .smart-route > .biz-limit-summary > span { font: 400 12px/20px var(--biz-font-regular); }
html body .phone #transfer-amount .smart-route > .biz-detail-trigger { position: relative; margin-block-start: 16px; padding-block: 12px 0; min-height: 60px; }
html body .phone #transfer-amount .smart-route > .biz-detail-trigger::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 1px; background: var(--biz-divider-color, var(--biz-line, #e1e6e2)); pointer-events: none; }

html body .phone #route-reason { font: 400 14px/24px var(--biz-font-regular) !important; margin-block: 12px 0 !important; color: var(--ui-muted); }
html body .phone #transfer-amount .route-limit { padding-block-start: 12px; border-top-width: 1px; gap: 12px; }
html body .phone #transfer-validation {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 20px 16px !important;
  font: 400 12px/20px var(--biz-font-regular) !important;
}
html body .phone #transfer-details-switch strong { white-space: normal; overflow: visible; }

/* Route picker: disabled means unavailable, not unreadable. */
html body .phone #route-sheet .sheet-intro {
  font: 400 14px/24px var(--biz-font-regular) !important;
  color: var(--ui-muted) !important;
  margin-block: 0 16px !important;
}
html body .phone #route-options > button {
  padding: 16px var(--biz-card-padding) !important;
  grid-template-columns: max-content minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center;
}
html body .phone #route-options .biz-money { font: 600 16px/26px var(--biz-font-semibold) !important; color: var(--ui-ink); }
html body .phone #route-options.biz-card > button { background: var(--ui-surface) !important; }
html body .phone #route-options > button:disabled { opacity: 1 !important; cursor: not-allowed; }
html body .phone #route-options > button > span:nth-child(2) { min-width: 0; gap: 4px !important; }
html body .phone #route-options strong { font: 600 16px/26px var(--biz-font-semibold) !important; color: var(--ui-ink) !important; }
html body .phone #route-options small { font: 400 12px/20px var(--biz-font-regular) !important; color: var(--ui-muted) !important; white-space: normal; }
html body .phone #route-options > button > i { font: 400 12px/20px var(--biz-font-regular) !important; color: var(--ui-muted); }
html body .phone #route-options > button:disabled > span:first-child { background: var(--ui-soft) !important; color: var(--ui-muted) !important; }
html body .phone #route-options > button:disabled > span:first-child svg { color: inherit !important; }
@media (max-width: 390px) {
  html body .phone #route-options > button { grid-template-columns: max-content minmax(0, 1fr) !important; row-gap: 4px !important; }
  html body .phone #route-options > button > i { grid-column: 2; justify-self: start; }
}

/* Transfer review separates recipient, financial value and supporting details. */
html body .phone #transfer-review .review-person { display: flex; flex-direction: column; align-items: center; gap: 0; }
html body .phone #review-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 var(--biz-icon-tile-row, 40px);
  width: var(--biz-icon-tile-row, 40px);
  height: var(--biz-icon-tile-row, 40px);
  margin: 0 0 20px !important;
  border: var(--biz-control-stroke, 1px) solid var(--ui-field-line) !important;
  border-radius: 14px !important;
  background: var(--ui-soft) !important;
  color: var(--ui-muted) !important;
  font: 600 18px/1 var(--biz-font-semibold) !important;
  font-synthesis: none;
}
html body .phone #review-name { font: 600 24px/32px var(--biz-font-semibold) !important; color: var(--ui-ink); margin: 0 0 8px !important; font-synthesis: none; }
html body .phone #transfer-review .review-person > small { font: 400 12px/20px var(--biz-font-regular) !important; color: var(--ui-muted); margin: 0 0 4px; }
html body .phone #review-number { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin: 0 !important; max-width: 100%; font: 400 14px/24px var(--biz-font-regular) !important; color: var(--ui-muted); }
html body .phone #review-number > bdi { direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
html body .phone :is(#selected-recipient-avatar, #review-avatar)[data-avatar-tone] {
  border: 0 !important;
  color: var(--contact-ink) !important;
  background: var(--contact-soft) !important;
  box-shadow: none !important;
}
html[data-color-scheme="dark"] body .phone :is(#selected-recipient-avatar, #review-avatar)[data-avatar-tone] {
  color: var(--contact-bright) !important;
  background: var(--contact-night) !important;
}
html body .phone #review-amount { margin-block: 24px !important; }
html body .phone :is(#transfer-review, #transfer-success) .detail-list { padding: 0 var(--biz-card-padding) !important; margin-block: 0 16px !important; border-radius: var(--biz-radius-card) !important; }
html body .phone :is(#transfer-review, #transfer-success) .detail-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0 !important; margin: 0; border-bottom-width: 1px; }
html body .phone :is(#transfer-review, #transfer-success) .detail-list > div:last-child { border-bottom: 0 !important; }
html body .phone :is(#transfer-review, #transfer-success) .detail-list dt { font: 400 12px/20px var(--biz-font-regular) !important; color: var(--ui-muted); margin: 0; flex-shrink: 0; }
html body .phone :is(#transfer-review, #transfer-success) .detail-list dd { font: 600 14px/24px var(--biz-font-semibold) !important; color: var(--ui-ink); font-synthesis: none; margin: 0; min-width: 0; text-align: end; overflow-wrap: anywhere; }
html body .phone #transfer-review > .security-banner { margin-block: 0 16px !important; }
html body .phone :is(#transfer-review, #transfer-success) > .primary-button { margin-block: 0 !important; }
html body .phone :is(#transfer-review, #transfer-success) > .secondary-button { margin-block: 16px 0 !important; }

/* Transfer receipt uses the same confirmation hierarchy as the review step. */
html body .phone #transfer-success > .success-mark { margin-block-end: 16px !important; }
html body .phone #receipt-status {
  font: 400 12px/20px var(--biz-font-regular) !important;
  color: var(--ui-muted) !important;
  margin-block: 0 4px !important;
}
html body .phone #receipt-title {
  font: 600 24px/32px var(--biz-font-semibold) !important;
  color: var(--ui-ink) !important;
  font-synthesis: none;
  margin-block: 0 !important;
}
html body .phone #receipt-amount { margin-block: 24px !important; }

/* Receive-method guide uses the same single-surface list and semantic icon tiles. */
html body .phone .receive-method-guide {
  padding: 0 !important;
  border: var(--ui-card-stroke) solid var(--ui-card-line) !important;
  border-radius: var(--biz-radius-card) !important;
  background: var(--ui-surface) !important;
  box-shadow: var(--biz-shadow-card);
}
html body .phone .receive-method-guide > article {
  grid-template-columns: 40px minmax(0, 1fr) !important;
  gap: 12px !important;
  padding: 16px !important;
  --biz-divider-row-padding: 16px;
}
html body .phone .receive-method-guide > article > i { width: 40px; height: 40px; border-radius: 12px; }
html body .phone .receive-method-guide > article > i svg { width: 20px; height: 20px; }
html body .phone .receive-method-guide > article > span { gap: 4px; min-width: 0; }
html body .phone .receive-method-guide strong { font: 600 14px/24px var(--biz-font-semibold) !important; color: var(--ui-ink); margin: 0; }
html body .phone .receive-method-guide small { font: 400 12px/20px var(--biz-font-regular) !important; color: var(--ui-muted); margin: 0; }

/* Page help actions share the header's glass treatment and touch target. */
html body .phone.next-ui-theme .focused-header > button:is(.focused-header-help,.biz-glass-icon-button):last-child {
  --help-glass-fill: rgb(255 255 255 / 46%);
  --help-glass-glint: rgb(255 255 255 / 70%);
  --help-glass-shadow: rgb(35 49 46 / 7%);
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  flex: 0 0 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0 !important;
  border-radius: 50% !important;
  color: var(--ui-ink);
  background: linear-gradient(145deg, var(--help-glass-glint), transparent 65%), var(--help-glass-fill) !important;
  box-shadow: inset 0 1px 0 var(--help-glass-glint), 0 4px 16px var(--help-glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  text-decoration: none;
}
html[data-color-scheme="dark"] body .phone.next-ui-theme .focused-header > button:is(.focused-header-help,.biz-glass-icon-button):last-child {
  --help-glass-fill: rgb(35 46 61 / 48%);
  --help-glass-glint: rgb(219 233 249 / 9%);
  --help-glass-shadow: rgb(0 0 0 / 18%);
}
html body .phone.next-ui-theme .focused-header > button:is(.focused-header-help,.biz-glass-icon-button):last-child > svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html body .phone.next-ui-theme .focused-header > button:is(.focused-header-help,.biz-glass-icon-button):last-child:focus-visible {
  outline: 2px solid var(--biz-focus, #0056f5);
  outline-offset: 3px;
}
html body .phone.next-ui-theme .focused-header > button:is(.focused-header-help,.biz-glass-icon-button):last-child:active {
  box-shadow: inset 0 0 0 24px rgb(127 127 127 / 12%);
}
html body .phone.next-ui-theme .focused-header > .biz-glass-period-button.biz-glass-period-button:last-child {
  padding: 0 7px !important;
  font: 500 12px/18px var(--biz-font-medium) !important;
  text-align: center;
  white-space: normal;
}

/* Card-status badges use geometric glyphs, independent of font baselines. */
.phone .app-shell > .app-header .header-actions .next-header-card-shortcut::after {
  content: "";
  width: 22px;
  height: 22px;
  top: -3px;
  left: -3px;
  padding: 0;
  box-sizing: border-box;
  border: 2px solid var(--biz-surface, #fff);
  border-radius: 50%;
  background-color: #0056f5;
  background-position: center;
  background-size: 16px 16px;
  background-repeat: no-repeat;
}
.phone .app-shell > .app-header .header-actions .next-header-card-shortcut.is-empty::after {
  background-color: #0056f5;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%205v14M5%2012h14%22%2F%3E%3C%2Fsvg%3E");
}
.phone .app-shell > .app-header .header-actions .next-header-card-shortcut.is-pending::after {
  background-color: #f1dfd4;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2370472f%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%228%22%2F%3E%3Cpath%20d%3D%22M12%207v5l3%202%22%2F%3E%3C%2Fsvg%3E");
}
.phone .app-shell > .app-header .header-actions .next-header-card-shortcut.is-active::after {
  background-color: #0056f5;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m5%2012%204%204%2010-10%22%2F%3E%3C%2Fsvg%3E");
}
.phone .app-shell > .app-header .header-actions .next-header-card-shortcut.is-frozen::after {
  background-color: #a96648;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%206v12M15%206v12%22%2F%3E%3C%2Fsvg%3E");
}

/* Shared employee, allocation and installment components (app + operations).
 * Customer controls/surfaces inherit the contracts above. Back office supplies
 * its independent palette through .ec-admin-page and .ec-native-dialog. */
.ec-root { color: var(--ui-ink, #202e40); font-family: var(--biz-font-regular, 'Vazirmatn Regular', Tahoma, sans-serif); font-size: 14px; line-height: 1.75; min-width: 0; }
.ec-root *, .ec-root *::before, .ec-root *::after { box-sizing: border-box; }
.ec-root [hidden] { display: none !important; }
.ec-root :is(h1,h2,h3,p,dl,ol) { margin: 0; }
.ec-root :is(button,input,select) { font-family: inherit; }
.ec-root button { cursor: pointer; }
.ec-root button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.ec-root :is(button,a,input,select):focus-visible { outline: 2px solid var(--ui-focus, #3462e8); outline-offset: 3px; }
.ec-root svg { flex: 0 0 20px; width: 20px; height: 20px; }
.ec-root .ec-intro { margin: 0 0 24px; }
.ec-root .ec-intro h1 { font-size: 24px; font-weight: 600; line-height: 32px; margin-bottom: 8px; }
.ec-root .ec-intro > :is(span,p) { display: block; color: var(--ui-muted,#657084); }
.ec-root .ec-intro > p { font-size: 12px; margin-bottom: 4px; }
.ec-root .ec-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ec-root .ec-row > .biz-list-copy { flex: 1; min-width: 0; }
.ec-root .ec-between { justify-content: space-between; flex-wrap: wrap; }
.ec-root .biz-list-copy { display: flex; flex-direction: column; gap: 4px; }
.ec-root .biz-list-copy > small, .ec-root .ec-metrics span { color: var(--ui-muted,#657084); font-size: 12px; font-weight: 400; line-height: 24px; }
.ec-root .biz-card-title, .ec-root h2, .ec-root h3 { font-size: 16px; line-height: 26px; font-weight: 600; }
.ec-root .ec-hero-amount { display: flex; flex-direction: column; gap: 4px; margin-block: 24px; }
.ec-root .ec-hero-amount > strong { font-size: 28px; font-weight: 600; line-height: 40px; }
.ec-root .ec-hero-amount > small { color: var(--ui-muted,#657084); font-size: 12px; }
.ec-root .ec-points { padding: 16px; background: var(--ui-soft,#f1f4f9); border-radius: 16px; }
.ec-root .ec-points > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.ec-root .ec-points small { font-weight: 400; }
.ec-root progress { width: 100%; height: 6px; margin-top: 12px; display: block; border: 0; border-radius: 6px; accent-color: var(--ui-focus,#3462e8); }
.ec-root progress::-webkit-progress-bar { background: var(--ui-card-line,#d9e0eb); border-radius: 6px; }
.ec-root progress::-webkit-progress-value { background: var(--ui-focus,#3462e8); border-radius: 6px; }
.ec-root .ec-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 12px; margin-top: 24px; }
.ec-root .ec-metrics article { display: flex; flex-direction: column; gap: 4px; }
.ec-root .ec-metrics strong { font-size: 15px; font-weight: 600; }
.ec-root .ec-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.ec-root .ec-actions > button { flex: 1 1 auto; }
.ec-root :is(.ec-primary,.ec-secondary) { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 16px; font-size: 14px; line-height: 24px; font-weight: 600; text-align: center; white-space: normal; }
.ec-root .ec-primary { background: var(--modern-primary,#315be8); color: #fff; }
.ec-root .ec-secondary { background: var(--ui-soft,#edf1f7); color: var(--ui-ink,#202e40); }
.ec-root .ec-badge { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; font-size: 11px; line-height: 20px; font-weight: 400; padding: 4px 8px; border-radius: 8px; background: var(--ui-soft,#edf1f7); color: var(--ui-muted,#576779); white-space: normal; }
.ec-root .ec-badge[data-status="active"], .ec-root .ec-badge[data-status="paid"], .ec-root .ec-badge[data-status="settled"] { color: var(--biz-positive-amount,#00804d); background: color-mix(in srgb, var(--biz-positive-amount,#00804d) 10%, var(--ui-surface,#fff)); }
.ec-root .ec-badge[data-status="pending"], .ec-root .ec-badge[data-status="offered"] { color: #936000; background: #fff1cd; }
.ec-root .ec-badge[data-status="overdue"], .ec-root .ec-danger { color: #c32c47; }
html[data-color-scheme="dark"] .ec-root .ec-danger, html[data-color-scheme="dark"] .ec-root .ec-badge[data-status="overdue"] { color: #ff97a6; }
html[data-color-scheme="dark"] .ec-root .ec-badge[data-status="pending"], html[data-color-scheme="dark"] .ec-root .ec-badge[data-status="offered"] { color: #ffce75; background: #48381e; }
.ec-root .ec-credit-hero > .ec-row { flex-wrap: wrap; }
.ec-root .ec-section { margin-top: var(--app-list-section-gap,48px); }
.ec-root .ec-section-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 20px 8px; flex-wrap: wrap; }
.ec-root .ec-section-header p { font-size: 12px; color: var(--ui-muted,#657084); margin-top: 4px; }
.ec-root .ec-toolbar { display: grid; gap: 16px; grid-template-columns: minmax(0,1fr); margin-block: 24px 16px; }
.ec-root .field { display: block; min-width: 0; margin: 0 0 16px; }
.ec-root .ec-toolbar .field { margin: 0; }
.ec-root .ec-member-list { margin-top:16px; }
.ec-root .ec-member-list:has(> .ec-member) { border-radius:var(--biz-radius-card,24px);box-shadow:var(--biz-shadow-card,var(--modern-shadow,var(--shadow,0 8px 24px #141e2b0f))); }
.ec-root .ec-member { display: grid; grid-template-columns: max-content minmax(0,1fr); column-gap: 12px; row-gap: 8px; padding: 20px; width: 100%; text-align: start; background: var(--ui-surface,#fff); border: 0; color: inherit; }
.ec-root .ec-member:first-child { border-radius: 24px 24px 0 0; }
.ec-root .ec-member:last-child { border-radius: 0 0 24px 24px; }
.ec-root .ec-member:only-child { border-radius: 24px; }
.ec-root .ec-member + .ec-member { border-top: 1px solid var(--ui-card-line,#e1e6ef); }
.ec-root .ec-avatar { display: grid; place-items: center; height: 40px; width: 40px; border-radius: 14px; background: var(--ui-soft,#edf1f7); color: var(--ui-focus,#315be8); font-size: 18px; }
.ec-root .ec-member-copy > span { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.ec-root .ec-member-end { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.ec-root .ec-member-end svg { transform: rotate(180deg); }
.ec-root .ec-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-block: 32px !important; }
.ec-root .ec-empty p { color: var(--ui-muted,#657084); }
.ec-root .ec-empty .biz-icon-tile { margin-bottom: 8px; }
.ec-root .ec-empty .ec-primary { margin-top: 12px; }
.ec-root .ec-grant, .ec-root .ec-offer, .ec-root .ec-audit, .ec-root .ec-payment-list { margin-top: 16px; }
.ec-root .ec-installments { list-style: none; padding: 0; margin-top: 20px; }
.ec-root .ec-installments li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 0; }
.ec-root .ec-installments li + li { border-top: 1px solid var(--ui-card-line,#e1e6ef); }
.ec-root .ec-installments li:last-child { padding-bottom: 0; }
.ec-root .ec-installment-amount { display: flex; align-items: flex-end; flex-direction: column; gap: 8px; }
.ec-root .ec-payment-list > article { padding-block: 16px; }
.ec-root .ec-payment-list > article + article { border-top: 1px solid var(--ui-card-line,#e1e6ef); }
.ec-root .ec-payment-list > article:first-child { padding-top: 0; }
.ec-root .ec-payment-list > article:last-child { padding-bottom: 0; }
.ec-root .ec-dialog-content { padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ec-root .ec-dialog-content .ec-primary { width: 100%; }
.ec-root .ec-form-grid { display: grid; gap: 0 16px; }
.ec-root .ec-facts { display: flex; flex-direction: column; gap: 0; }
.ec-root .ec-facts > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; flex-wrap: wrap; }
.ec-root .ec-facts > div + div { border-top: 1px solid var(--ui-card-line,#e1e6ef); }
.ec-root .ec-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ec-root .ec-facts dt { color: var(--ui-muted,#657084); }
.ec-root :is(.ec-note,.ec-prototype) { padding: 16px; border-radius: 16px; background: var(--ui-soft,#edf1f7); margin-block: 12px 16px; }
.ec-root .ec-prototype { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.ec-root .ec-prototype a { color: var(--ui-focus,#315be8); min-height: 48px; display: flex; align-items: center; }
.ec-root .ec-prototype .field { margin-bottom: 0; }
.ec-root .ec-recipient-list { border: 0; padding: 0; margin-top: 24px; min-width: 0; }
.ec-root .ec-recipient-list legend { font-weight: 600; margin-bottom: 8px; }
.ec-root .ec-recipient { padding-block: 16px; }
.ec-root .ec-recipient + .ec-recipient { border-top: 1px solid var(--ui-card-line,#e1e6ef); }
.ec-root .ec-recipient > label { display: flex; gap: 12px; align-items: center; min-height: 48px; cursor: pointer; }
.ec-root .ec-recipient input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--ui-focus,#315be8); flex: 0 0 22px; }
.ec-root .ec-custom-amount { margin-top: 12px; }
.ec-root .ec-review-list article { display: flex; flex-direction: column; gap: 8px; padding-block: 16px; }
.ec-root .ec-review-list article + article { border-top: 1px solid var(--ui-card-line,#e1e6ef); }
.ec-root .ec-error, .ec-root [aria-invalid="true"] ~ small { color: #c32c47; }
.ec-root .ec-error { padding: 12px; background: #fff0f2; border-radius: 12px; }
.ec-root .ec-import-table-wrap { overflow: auto; max-height: 360px; margin-block: 16px; }
.ec-root table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ec-root :is(th,td) { padding: 12px; text-align: start; border-bottom: 1px solid var(--ui-card-line,#e1e6ef); vertical-align: top; }
.ec-root .ec-audit article { display: flex; flex-direction: column; gap: 4px; padding-block: 12px; }
.ec-root .ec-audit small { color: var(--ui-muted,#657084); }
.ec-admin-page, .ec-native-dialog { --ui-surface: #fff; --ui-soft:#f1f4f9; --ui-ink:#202e40; --ui-muted:#657084; --ui-card-line:#e1e6ef; --ui-focus:#315be8; }
.ec-admin-page .ec-root { max-width: 1240px; margin-inline: auto; }
.ec-admin-page .biz-card, .ec-native-dialog .biz-card { padding:24px; background:var(--ui-surface); border:1px solid var(--ui-card-line); border-radius:24px; }
:is(.ec-admin-page,.ec-native-dialog) .biz-icon-tile { display:grid;place-items:center;background:#e9efff;color:#315be8;min-width:48px;width:48px;height:48px;border-radius:16px; }
:is(.ec-admin-page,.ec-native-dialog) .field > span { display:block; margin:0 20px 8px; font-size:14px;font-weight:500; }
:is(.ec-admin-page,.ec-native-dialog) .field > div { display:flex;gap:8px;min-width:0;min-height:56px;padding:4px 12px;border:1px solid var(--ui-card-line);border-radius:16px;background:var(--ui-soft);align-items:center; }
:is(.ec-admin-page,.ec-native-dialog) .field :is(input,select) { width:100%;min-width:0;min-height:46px;border:0;background:transparent;color:var(--ui-ink);font-size:16px; }
:is(.ec-admin-page,.ec-native-dialog) .field > small { display:block;margin:8px 20px 0;font-size:12px;color:var(--ui-muted); }
.ec-admin-page .ec-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.ec-admin-page .ec-toolbar { grid-template-columns: 2fr 1fr; }
.ec-admin-page .ec-business-picker { max-width:520px; }
.ec-admin-page .ec-credit-hero { display:grid;grid-template-columns:1fr 1fr;gap:16px 32px; }
.ec-admin-page .ec-credit-hero > .ec-row, .ec-admin-page .ec-credit-hero > .ec-metrics { grid-column:1 / -1; }
.ec-admin-page .ec-credit-hero .ec-hero-amount { margin-block:8px; }
.ec-admin-page .ec-points { align-self:center; }
.ec-admin-page .ec-member { grid-template-columns:max-content minmax(0,1fr) max-content; }
.ec-admin-page .ec-member-end { grid-column:3;grid-row:1;min-width:180px;align-self:center; }
.ec-native-dialog { width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 48px);border:0;border-radius:24px;padding:0;background:#fff;color:#202e40;margin:auto; }
.ec-native-dialog::backdrop { background:rgba(13,25,45,.55);backdrop-filter:blur(4px); }
.ec-native-dialog > header { display:flex;justify-content:space-between;align-items:center;padding:20px;position:sticky;top:0;background:#fff;z-index:1; }
.ec-native-dialog > header small { color:var(--ui-muted); }
.ec-native-dialog .ec-form-grid { grid-template-columns:1fr 1fr; }
.ec-native-dialog .ec-dialog-content { padding:4px 24px 24px; }
body.ec-personal-body { margin:0;background:var(--appearance-bg,#eef1f6); }
.ec-personal-body .ec-personal-phone { width:min(100%,480px);height:100dvh;max-height:none;margin:0 auto;border-radius:0;display:flex;flex-direction:column;overflow:hidden;border:0; }
.ec-personal-phone .app-shell { display:flex !important;flex-direction:column;height:100%;min-height:0; }
.ec-personal-phone .ec-personal-header { display:flex;justify-content:space-between;align-items:center;padding:20px;background:var(--ui-surface);color:var(--ui-ink);flex:0 0 auto; }
.ec-personal-header button { min-height:48px;padding:8px 12px;border:0;border-radius:12px;background:var(--ui-soft);color:inherit;font-family:inherit; }
.ec-personal-phone #ec-root { padding:24px 20px 40px;overflow:auto;background:var(--biz-bg,var(--ui-soft)); }
@media(max-width:390px) {
  .ec-root .ec-hero-amount > strong { font-size:24px; }
  .ec-root .ec-metrics strong { font-size:13px; }
  .ec-root .ec-member { padding:16px; }
  .ec-personal-phone #ec-root { padding-inline:16px; }
  .ec-native-dialog .ec-form-grid { grid-template-columns:1fr; }
}
@media(max-width:700px) {
 .ec-admin-page .ec-credit-hero { display:block; }
 .ec-admin-page .ec-metrics { grid-template-columns:1fr 1fr; }
 .ec-admin-page .ec-toolbar { grid-template-columns:1fr; }
}
/* Display amounts retain their display role despite legacy list typography. */
html body .ec-root .ec-hero-amount > strong { font-size: 28px !important; line-height: 40px !important; }
html body .ec-root .ec-metrics strong { font-size: 15px !important; }
.ec-root .biz-icon-tile { display:inline-grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:16px; }
html body .ec-root .ec-section-header > button { width:auto !important; flex:0 0 auto; }
html body .ec-root :is(.biz-money,.biz-money-number) { font-size:inherit !important;font-weight:inherit !important;font-family:inherit !important;line-height:inherit !important;letter-spacing:0 !important;font-variant-numeric:proportional-nums; }
html body .ec-root .biz-money { display:inline-flex;flex-wrap:nowrap;align-items:baseline;gap:4px;direction:rtl;white-space:nowrap; }
html body .ec-root .biz-money-unit { font-size:12px !important;font-weight:400 !important; }
.ec-personal-phone #ec-root { flex:1;min-height:0; }
@media(max-width:390px) {
 html body .ec-root .ec-hero-amount > strong { font-size:24px !important; }
 html body .ec-root .ec-metrics strong { font-size:13px !important; }
}

/* Credit workspace: status navigation, grouped statements, score visualization
 * and a native range paired with the standard precise amount field. */
:is(.ec-root,.bm-root) { --ec-info:#245bcb;--ec-info-soft:#e7efff;--ec-success:#08794e;--ec-success-soft:#dcf5e9;--ec-warning:#986000;--ec-warning-soft:#fff0ce;--ec-track:var(--ui-soft,#f1f4f9); }
html[data-color-scheme="dark"] :is(.ec-root,.bm-root) { --ec-info:#9ac2ff;--ec-info-soft:#203953;--ec-success:#8ae2b9;--ec-success-soft:#193e32;--ec-warning:#ffd183;--ec-warning-soft:#49371b; }
.ec-root .ec-button-label { display:inline-flex;align-items:center;justify-content:center;gap:8px;position:relative;z-index:1; }
.phone .ec-root :is(.primary-button,.secondary-button) > .ec-button-label { font:inherit !important; }
.ec-root .ec-sr-only { position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap; }
.ec-root .ec-credit-hero { display:block; }
.ec-root .ec-eyebrow { font-size:12px;color:var(--ui-muted); }
.ec-root .ec-credit-hero .ec-hero-amount { margin-block:16px; }
.ec-root .ec-credit-hero > .ec-primary { width:100%;margin-top:20px; }
.ec-root .ec-capacity-bar { display:flex;gap:4px;height:8px;border-radius:8px;overflow:hidden;background:var(--ec-track); }
.ec-root .ec-capacity-bar > span { border-radius:8px;flex-shrink:1; }
.ec-root .ec-capacity-available { background:#3785ff; }
.ec-root .ec-capacity-reserved { background:#ffb547; }
.ec-root .ec-capacity-used { background:#a38af5; }
html[data-color-scheme="dark"] .ec-root .ec-capacity-available { background:#69a5ff; }
html[data-color-scheme="dark"] .ec-root .ec-capacity-reserved { background:#ffc56b; }
html[data-color-scheme="dark"] .ec-root .ec-capacity-used { background:#b8a1ff; }
.ec-root .ec-capacity-legend { display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:12px;color:var(--ui-muted);font-size:11px; }
.ec-root .ec-capacity-legend > span { display:inline-flex;align-items:center;gap:6px; }
.ec-root .ec-capacity-legend i { width:6px;height:6px;border-radius:50%; }
.ec-root .ec-score-link { display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;align-items:center;gap:12px;width:100%;padding:16px 0 0;margin-top:20px;border:0;border-top:1px solid var(--ui-card-line);background:transparent;color:var(--ui-ink);text-align:start; }
.ec-root .ec-score-link strong { font-size:14px !important; }
.ec-root .ec-score-link small { font-size:11px; }
.ec-root .ec-score-ring { position:relative;display:grid;place-items:center;width:48px;height:48px;flex-shrink:0; }
.ec-root .ec-score-ring > svg { position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);fill:none;stroke-width:5; }
.ec-root .ec-ring-track { stroke:var(--ec-track); }
:is(.ec-root,.biz-chart-palette) { --ec-score-blue:#3785ff;--ec-score-teal:#19bca2;--ec-score-violet:#a38af5;--ec-score-ink:#008875; }
html[data-color-scheme="dark"] :is(.ec-root,.biz-chart-palette) { --ec-score-blue:#69a5ff;--ec-score-teal:#46dfc3;--ec-score-violet:#b8a1ff;--ec-score-ink:#73ead3; }
.ec-root .ec-ring-fill { stroke:var(--ec-score-teal);stroke-linecap:round; }
.ec-root .ec-score-ring > span { color:var(--ec-score-ink);display:flex;flex-direction:column;align-items:center; }
.ec-root .ec-score-ring > span > svg { width:20px;height:20px; }
.ec-root .ec-link-chevron { display:inline-flex;color:var(--ui-muted); }
.ec-root .ec-link-chevron svg { transform:rotate(180deg);width:16px;height:16px; }
.ec-root .ec-report-entry { display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;align-items:center;gap:12px;margin-top:16px;width:100%;color:var(--ui-ink);text-align:start; }
.ec-root .ec-report-entry strong { font-size:14px !important; }
.ec-root .ec-report-entry small { font-size:11px; }
.ec-root .ec-report-entry .biz-icon-tile { width:40px;height:40px; }
.ec-root .ec-grant-preview { position:relative;overflow:hidden; }
.ec-root .ec-credit-person { display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;align-items:center;gap:12px; }
.ec-root .ec-credit-person .biz-list-copy > small { color:var(--ui-muted);font-size:11px; }
.ec-root .ec-grant-value { display:flex;justify-content:space-between;align-items:end;gap:12px;margin-top:20px; }
.ec-root .ec-grant-value > div { display:flex;flex-direction:column;gap:4px; }
.ec-root .ec-grant-value small,.ec-root .ec-grant-value time { color:var(--ui-muted);font-size:11px; }
.ec-root .ec-grant-value strong { font-size:20px;line-height:32px; }
.ec-root .ec-grant-progress-panel { margin-top:24px;padding:0;background:transparent; }
.ec-root .ec-grant-progress-panel .ec-four-steps { margin-top:0; }
.ec-root .ec-grant-progress-copy { display:flex;justify-content:space-between;gap:8px 12px;flex-wrap:wrap;margin-top:16px;font-size:11px; }
.ec-root .ec-grant-progress-copy > strong { font-size:11px;font-weight:600; }
.ec-root .ec-grant-progress-copy > span { color:var(--ui-muted); }
.ec-root .ec-grant-waiting { display:flex;align-items:center;gap:8px;margin-top:16px;padding:12px;border-radius:16px;background:var(--ec-warning-soft);color:var(--ec-warning);font-size:12px; }
.ec-root .ec-grant-waiting svg { width:18px;height:18px;flex:none; }
.ec-root .ec-grant-main { display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 12px; }
.ec-root .ec-grant-main strong { font-size:14px !important; }
.ec-root .ec-four-steps { --ec-step-blue:#2160e8;--ec-step-blue-bg:#edf4ff;--ec-step-green:#009b68;--ec-step-orange:#e86b0b;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-top:20px; }
.ec-root .ec-four-steps > span { display:flex;flex-direction:column;align-items:center;gap:8px;position:relative;color:var(--ec-step-blue); }
.ec-root .ec-four-steps > span:not(:last-child)::after { content:"";position:absolute;top:19px;right:calc(50% + 24px);width:calc(100% - 48px);height:2px;background:#dce9ff; }
.ec-root .ec-four-steps > span[data-status="paid"]:not(:last-child)::after { background:#9de9cc; }
.ec-root .ec-four-steps i { display:grid;place-items:center;width:40px;height:40px;border-radius:50%;font-family:var(--biz-font-semibold);font-size:18px;font-weight:600;font-style:normal;background:var(--ec-step-blue-bg); }
.ec-root .ec-four-steps small { font-family:var(--biz-font-semibold);font-weight:600;font-size:12px;line-height:20px; }
.ec-root .ec-four-steps svg { width:20px;height:20px; }
.ec-root .ec-four-steps [data-status="paid"] { color:var(--ec-step-green); }
.ec-root .ec-four-steps [data-status="paid"] i { background:var(--ec-step-green);color:#fff; }
.ec-root .ec-four-steps [data-status="overdue"] { color:var(--ec-step-orange); }
.ec-root .ec-four-steps [data-status="overdue"] i { background:#fff0de;color:var(--ec-step-orange); }
html[data-color-scheme="dark"] .ec-root .ec-four-steps { --ec-step-blue:#a9caff;--ec-step-blue-bg:#173761;--ec-step-green:#54e0ad;--ec-step-orange:#ffbd78; }
html[data-color-scheme="dark"] .ec-root .ec-four-steps [data-status="paid"] i { background:#00a775;color:#fff; }
html[data-color-scheme="dark"] .ec-root .ec-four-steps [data-status="overdue"] i { background:#512e0f; }
html[data-color-scheme="dark"] .ec-root .ec-four-steps > span:not(:last-child)::after { background:#285184; }
html[data-color-scheme="dark"] .ec-root .ec-four-steps > span[data-status="paid"]:not(:last-child)::after { background:#16835f; }
.ec-root .ec-schedule-caption { color:var(--ui-muted);font-size:12px;margin-top:12px; }
.ec-root .ec-card-footer { display:flex;align-items:center;justify-content:space-between;width:100%;border:0;border-top:1px solid var(--ui-card-line);padding:12px 0 0;margin-top:16px;min-height:48px;background:transparent;color:var(--ec-info);font-size:12px;font-weight:600;text-align:start; }
.ec-root .ec-card-footer svg { transform:rotate(180deg);width:16px;height:16px; }
.ec-root .ec-report-summary { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
.ec-root .ec-stat-tile { border:0;border-radius:20px;padding:16px 12px;text-align:start;color:var(--ec-info);background:var(--ec-info-soft); }
.ec-root .ec-stat-tile > span { display:flex;align-items:center;justify-content:space-between;gap:4px; }
html body .ec-root .ec-stat-tile strong { font-size:24px !important;line-height:32px; }
.ec-root .ec-stat-tile small { display:block;font-size:11px;margin-top:12px;white-space:nowrap; }
.ec-root .ec-stat-tile[data-status="overdue"] { background:var(--ec-warning-soft);color:var(--ec-warning); }
.ec-root .ec-stat-tile[data-status="paid"] { background:var(--ec-success-soft);color:var(--ec-success); }
.ec-root .ec-filter-chips { display:flex;gap:6px;overflow-x:auto;max-width:100%;padding-block:4px;margin-block:16px 8px;scrollbar-width:none; }
.ec-root .ec-filter-chips button { display:inline-flex;flex:1 0 auto;gap:4px;align-items:center;justify-content:center;min-height:48px;border-radius:24px;border:0;padding:8px;white-space:nowrap;background:var(--ec-track);color:var(--ui-muted);font-size:11px; }
.ec-root .ec-filter-chips button span { min-width:20px;border-radius:50%;background:color-mix(in srgb,var(--ui-surface) 70%,transparent);color:var(--ui-ink);text-align:center; }
.ec-root .ec-filter-chips [aria-pressed="true"] { background:var(--ec-info);color:var(--ui-surface); }
.ec-root .ec-report-total { font-size:12px;color:var(--ui-muted);margin:8px 0 16px; }
.ec-root .ec-payment-group { margin-top:16px;background:var(--ui-surface);overflow:hidden; }
.ec-root .ec-payment-group > header { display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:12px; }
.ec-root .ec-payment-group .biz-card-title { font-size:14px !important; }
.ec-root .ec-payment-group .ec-avatar { width:40px;height:40px;border-radius:14px; }
.ec-root .ec-payment-person .biz-list-copy > small { color:var(--ui-muted);font-size:12px; }
.ec-root .ec-payment-progress { display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:16px; }
.ec-root .ec-payment-progress .ec-four-steps { flex:1;margin-top:0; }
.ec-root .ec-payment-progress > span { flex:none;color:var(--ui-muted);font-size:10px;line-height:20px;white-space:nowrap; }
html body .ec-root .ec-installments-compact { margin-top:12px;padding:0; }
html body .ec-root .ec-installments-compact li { display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:4px 12px;padding:12px 0;align-items:center; }
html body .ec-root .ec-installments-compact li + li { border-top:1px solid color-mix(in srgb,var(--ui-muted) 18%,transparent); }
html body .ec-root .ec-installments-compact li > strong { font-size:13px !important;line-height:24px; }
.ec-root .ec-installments-compact li > small { font-size:12px;color:var(--ui-muted);line-height:24px; }
.ec-root .ec-row-money { justify-self:end; }
.ec-root .ec-installment-status { display:flex;align-items:center;justify-content:flex-end;gap:8px; }
.ec-root .ec-payment-group .ec-installment-status .ec-badge { padding:2px 8px;line-height:20px;font-size:10px; }
.ec-root .ec-installment-status .ec-secondary { min-height:44px;padding:4px 12px;font-size:12px; }
@media(max-width:360px) {
 .ec-root .ec-payment-progress { display:block; }
 .ec-root .ec-payment-progress > span { display:block;margin-top:8px; }
}
.ec-root .ec-score-overview { display:flex;align-items:center;gap:20px;padding-block:8px 16px; }
.ec-root .ec-score-ring-large { width:112px;height:112px; }
html body .ec-root .ec-score-ring-large strong { font-size:24px !important;line-height:32px; }
.ec-root .ec-score-ring-large small { color:var(--ui-muted);font-size:11px; }
.ec-root .ec-score-overview p, .ec-root .ec-score-overview .biz-list-copy > span { font-size:12px;color:var(--ui-muted); }
.ec-root .ec-score-factors { display:flex;flex-direction:column;gap:24px; }
.ec-root .ec-score-factors article > div:first-child { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.ec-root .ec-score-factors strong, .ec-root .ec-score-factors b { font-size:13px; }
.ec-root .ec-score-factors article > small { display:block;font-size:11px;color:var(--ui-muted);margin-top:8px; }
.ec-root .ec-score-factors b > small { font-weight:400;font-size:11px; }
.ec-root .ec-factor-track { height:6px;border-radius:6px;background:var(--ec-track);margin-top:8px;overflow:hidden; }
.ec-root .ec-factor-track > span { display:block;height:100%;border-radius:6px;background:var(--ec-score-blue); }
.ec-root .ec-factor-track [data-factor="transfer"] { background:var(--ec-score-teal); }
.ec-root .ec-factor-track [data-factor="loyalty"] { background:var(--ec-score-violet); }
.ec-root .ec-mode-choices { padding:0;border:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;min-width:0; }
.ec-root .ec-mode-choices legend { margin-bottom:8px; }
html body .phone .ec-root .ec-mode-choices > legend.field-control-label { box-sizing:border-box;width:calc(100% - 2 * var(--biz-field-copy-inset)) !important; }
.ec-root .ec-mode-choices label { position:relative;cursor:pointer; }
.ec-root .ec-mode-choices input { position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer; }
.ec-root .ec-mode-choices label > span { display:flex;align-items:center;justify-content:center;background:var(--ui-surface);border-radius:14px;padding:12px 4px;color:var(--ui-muted);min-height:48px; }
.ec-root .ec-mode-choices label strong { font-size:12px !important; }
.ec-root .ec-mode-choices label small { font-size:10px;font-weight:400;color:var(--ui-muted); }
.ec-root .ec-allocation-cap { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px;padding:0 4px 20px;border-bottom:1px solid var(--ui-card-line); }
.ec-root .ec-allocation-cap > strong { min-width:0; }
.ec-root .ec-allocation-cap small { font-size:12px;color:var(--ui-muted); }
.ec-root .ec-allocation-cap strong { font-size:18px; }
.ec-root .ec-allocation-term { display:flex;align-items:center;gap:6px;font-size:11px;text-align:center;color:var(--ui-muted);white-space:nowrap; }
.ec-root .ec-allocation-term svg { width:16px;height:16px; }
html body .phone .ec-root .ec-allocation-cap strong { font:600 24px/34px var(--biz-font-semibold) !important; }
.phone .ec-root .ec-mode-description.field-help { margin-block:8px 20px; }
.ec-root .ec-recipient-group { padding:0 !important;overflow:hidden; }
.ec-root .ec-recipient-group .ec-recipient { padding:16px; }
.ec-root .ec-recipient-empty { display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:12px;min-height:96px;padding:20px;text-align:start; }
.ec-root .ec-recipient-empty .biz-list-copy { min-width:0;gap:4px; }
.ec-root .ec-recipient-empty strong { font:600 14px/24px var(--biz-font-semibold);color:var(--ui-ink); }
.ec-root .ec-recipient-empty small { font:400 12px/20px var(--biz-font-regular);color:var(--ui-muted); }
.ec-root .ec-recipient-group .ec-recipient:has(input:checked) { background:transparent; }
.ec-root .ec-recipient-group .ec-recipient .biz-list-copy > strong { font-size:14px !important; }
.ec-root .ec-recipient-group .ec-recipient .biz-list-copy > small { font-size:12px;color:var(--ui-muted); }
.ec-root .ec-recipient-tools { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;font-size:12px;color:var(--ui-muted); }
.ec-root .ec-recipient-tools .biz-list-copy { min-width:0;gap:4px; }
.ec-root .ec-recipient-tools strong { font:600 14px/24px var(--biz-font-semibold);color:var(--ui-ink); }
.ec-root .ec-recipient-tools small { font:400 12px/20px var(--biz-font-regular);color:var(--ui-muted); }
.ec-root .ec-recipient-tools button { display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;width:max-content;border:0;border-radius:12px;background:var(--ec-info-soft);min-height:44px;color:var(--ec-info);font:600 12px/20px var(--biz-font-semibold);padding:8px 12px;white-space:nowrap;overflow-wrap:normal; }
.ec-root .ec-recipient-tools button svg { width:16px;height:16px; }
html body .phone .ec-root .ec-recipient-tools button > :is(span,svg) { color:var(--ec-info) !important; }
html body .ec-root #ec-total-field .ec-amount-control input[name="total"] { font-size:24px !important;font-weight:600;min-width:0; }
.ec-root #ec-total-field .ec-amount-control { margin-bottom:0; }
.ec-root .ec-allocation-preview { border-radius:24px; }
.ec-root .ec-mode-choices input:checked + span { background:var(--ui-surface);color:var(--ec-info);outline:2px solid var(--ec-info);outline-offset:-2px;box-shadow:none; }
.ec-root .ec-mode-choices input:focus-visible + span { outline:2px solid var(--ui-focus);outline-offset:3px; }
.ec-root .ec-amount-control { margin-bottom:16px; }
.ec-root .ec-amount-control .field { margin-bottom:12px; }
.ec-root .ec-slider-label { display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--ui-muted); }
.ec-root .ec-slider-label output { color:var(--ec-info);font-weight:600; }
html body .ec-root .ec-amount-slider { display:block;width:100%;height:48px;min-height:48px;padding:0;margin:0;background:transparent;accent-color:var(--ec-info);cursor:pointer;direction:rtl;-webkit-appearance:none;appearance:none;border:0; }
.ec-root .ec-amount-slider::-webkit-slider-runnable-track { height:6px;border-radius:6px;background:linear-gradient(to left,var(--ec-info) var(--ec-slider-fill,0%),color-mix(in srgb,var(--ui-muted) 35%,transparent) var(--ec-slider-fill,0%)); }
.ec-root .ec-amount-slider::-webkit-slider-thumb { -webkit-appearance:none;width:28px;height:28px;border:4px solid var(--ui-surface);border-radius:50%;background:var(--ec-info);box-shadow:0 1px 6px #0002;margin-top:-11px; }
.ec-root .ec-amount-slider::-moz-range-track { height:6px;border-radius:6px;background:color-mix(in srgb,var(--ui-muted) 35%,transparent); }
.ec-root .ec-amount-slider::-moz-range-progress { background:var(--ec-info);height:6px; }
.ec-root .ec-amount-slider::-moz-range-thumb { width:22px;height:22px;border:3px solid var(--ui-surface);border-radius:50%;background:var(--ec-info); }
.ec-root .ec-slider-ends { display:flex;justify-content:space-between;gap:12px;color:var(--ui-muted);font-size:11px; }
.ec-root .ec-amount-presets { display:flex;gap:8px;margin-top:12px;overflow:auto; }
.ec-root .ec-amount-presets button { flex:1 0 auto;min-height:44px;white-space:nowrap;padding:8px;border:0;border-radius:12px;background:var(--ui-soft);color:var(--ui-ink);font-size:12px; }
.ec-root .ec-recipient > label { display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;gap:12px; }
.ec-root .ec-recipient-share { font-size:12px;color:var(--ec-info); }
.ec-root .ec-recipient-share:empty { display:none; }
.ec-root .ec-recipient:has(input:checked) > label > .ec-avatar { color:var(--ec-info); }
.ec-root .ec-custom-amount { padding-top:12px; }
.ec-root .ec-allocation-preview { padding:16px 4px 0;border-top:1px solid var(--ui-card-line);border-radius:0;background:transparent;margin-block:20px 12px;display:flex;flex-direction:column;gap:8px; }
.ec-root .ec-allocation-preview > div { display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:4px 12px;font-size:12px; }
.ec-root .ec-allocation-preview small,.ec-root .ec-allocation-hint { font-size:11px;color:var(--ui-muted); }
.phone .ec-root .ec-allocation-hint.field-help { margin-block:12px 16px; }
@media(max-width:360px) {
 .ec-root .ec-score-overview { gap:12px; }
 .ec-root .ec-score-ring-large { width:96px;height:96px; }
 .ec-root .ec-report-summary { gap:6px; }
 .ec-root .ec-stat-tile { padding:12px 8px; }
 .ec-root .ec-stat-tile small { font-size:10px; }
 .ec-root .ec-installment-status { gap:4px; }
}
@media(prefers-reduced-motion:reduce) { .ec-root .ec-amount-slider { scroll-behavior:auto; } }
@media(forced-colors:active) {
 .ec-root .ec-mode-choices input:checked + span, .ec-root .ec-filter-chips [aria-pressed="true"] { outline:2px solid Highlight; }
 .ec-root .ec-amount-slider::-webkit-slider-thumb { background:Highlight;border-color:Canvas; }
 .ec-root .ec-ring-fill { stroke:Highlight; }
}

/* Full-width destination buttons: icon, title/count and semantic status tags. */
.ec-root .ec-destinations { display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:16px; }
:is(.ec-root .ec-destination,.biz-overview-card) { display:flex;flex-direction:column;gap:16px;width:100%;min-width:0;text-align:start;color:var(--ui-ink);border:0; }
.ec-root .ec-destination-top { display:grid;grid-template-columns:max-content minmax(0,1fr) max-content max-content;align-items:center;gap:12px;width:100%; }
.ec-root .ec-destination-top .biz-icon-tile { width:40px;height:40px;flex-basis:40px; }
.ec-root .ec-destination-copy { min-width:0; }
.ec-root .ec-destination-copy > small { font-size:12px;font-weight:400;color:var(--ui-muted);white-space:normal; }
.ec-root .ec-destination-count { padding:4px 10px;border-radius:12px;background:var(--ui-soft);color:var(--ui-muted);font-size:12px;white-space:nowrap; }
.ec-root .ec-destination-tags { display:flex;flex-wrap:wrap;gap:8px; }
.ec-root .ec-status-tag { display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:10px;font-size:11px;line-height:20px;background:var(--ui-soft);color:var(--ui-muted); }
.ec-root .ec-status-tag svg { width:14px;height:14px;flex-basis:14px; }
.ec-root .ec-status-tag[data-tone="info"] { color:var(--ec-info);background:var(--ec-info-soft); }
.ec-root .ec-status-tag[data-tone="success"] { color:var(--ec-success);background:var(--ec-success-soft); }
.ec-root .ec-status-tag[data-tone="warning"] { color:var(--ec-warning);background:var(--ec-warning-soft); }
.ec-root .ec-destination-empty { font-size:12px;color:var(--ui-muted); }
:is(.ec-root .ec-credit-overview-heading,.biz-overview-heading) { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.ec-root .ec-credit-overview-heading small { font:400 12px/20px var(--biz-font-regular);color:var(--ui-muted); }
.ec-root .ec-credit-people-stats { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-block:4px; }
.ec-root .ec-credit-people-stats > span { display:flex;flex-direction:column;gap:4px;min-width:0; }
.ec-root .ec-credit-people-stats > span + span { border-inline-start:1px solid var(--ui-card-line);padding-inline-start:12px; }
html body .phone .ec-root .ec-credit-people-stats strong { font:600 24px/32px var(--biz-font-semibold) !important; }
.ec-root .ec-credit-people-stats strong small { font:400 11px/20px var(--biz-font-regular); }
.ec-root .ec-credit-people-stats > span > span { font:400 11px/20px var(--biz-font-regular);color:var(--ui-muted); }
.ec-root .ec-credit-people-stats [data-tone="info"] strong { color:var(--ec-info); }
.ec-root .ec-credit-people-stats [data-tone="warning"] strong { color:var(--ec-warning); }
.ec-root .ec-credit-people-stats [data-tone="success"] strong { color:var(--ec-success); }
.ec-root .ec-credit-overview-note { display:flex;align-items:flex-start;gap:8px;font:400 12px/22px var(--biz-font-regular); }
.ec-root .ec-credit-overview-note > svg { width:20px;height:20px;flex:0 0 20px;margin-top:2px;color:var(--ec-success); }
.ec-root .ec-credit-overview-note[data-tone="warning"] > svg { color:var(--ec-warning); }
.ec-root .ec-credit-overview-note[data-tone="info"] > svg { color:var(--ec-info); }
.ec-root .ec-credit-overview-note > span { display:flex;flex-direction:column;gap:4px; }
.ec-root .ec-credit-overview-note strong { font:600 13px/22px var(--biz-font-semibold);color:var(--ec-warning); }
.ec-root .ec-credit-overview-hint { font:400 12px/22px var(--biz-font-regular);color:var(--ui-muted); }
:is(.ec-root .ec-credit-overview-footer,.biz-overview-footer) { display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--ui-card-line);padding-top:12px;font:600 12px/22px var(--biz-font-semibold);color:var(--ec-info,var(--ui-primary)); }
.ec-root[data-ec-view="employees"] > .ec-section { margin-top:24px; }
.ec-root .ec-page-back { display:flex;align-items:center;gap:8px;min-height:48px;border:0;background:transparent;color:var(--ui-muted);margin-bottom:16px; }
.ec-root .ec-intro h1:focus { outline:none; }

/* Bank fallback keeps its own palette while sharing the same surface roles. */
:is(.ec-admin-page,.ec-native-dialog) :is(.biz-card,.biz-elevated) { box-shadow:var(--shadow,0 8px 24px rgb(20 30 43 / 6%)); }
.ec-native-dialog.biz-sheet-cards, .ec-native-dialog.biz-sheet-cards > header { background:var(--canvas,#f5f6f8); }
.ec-root .ec-score-overview.biz-card { flex-wrap:wrap; }
.ec-root .ec-score-overview > .biz-list-copy { flex:1 1 136px;min-width:0; }
.ec-root .ec-score-factors.biz-card { gap:20px; }
.ec-root .ec-score-factors.biz-card > h3 { margin:0; }
.ec-root .ec-recipient.biz-card { margin-top:12px; }
.ec-root .ec-recipient.biz-card + .ec-recipient { border-top-width:var(--ui-card-stroke,1px); }
.ec-root .ec-review-list.biz-card > article:first-child { padding-top:0; }
.ec-root .ec-review-list.biz-card > article:last-child { padding-bottom:0; }

/* Employee directory shares the compact two-line contact-list hierarchy. */
html body .ec-root .ec-member { grid-template-columns:max-content minmax(0,1fr) max-content;align-items:center;gap:12px;min-height:88px;padding:16px; }
.ec-root .ec-member-copy { min-width:0; }
html body .ec-root .ec-member-copy > strong { font-family:var(--biz-font-semibold,'Vazirmatn SemiBold',Tahoma,sans-serif);font-size:14px;line-height:24px; }
.ec-root .ec-member-phone { text-align:right;font-family:var(--biz-font-regular,'Vazirmatn Regular',Tahoma,sans-serif);font-size:12px;line-height:24px; }
.ec-root .ec-member-tags { display:flex;flex-direction:column;align-items:flex-end;gap:4px; }
.ec-root .ec-member-tags .ec-badge { font-size:10px;line-height:20px;padding:2px 6px; }
.ec-root .ec-badge[data-status="overdue"] { background:color-mix(in srgb,currentColor 10%,var(--ui-surface)); }
.ec-root .ec-person-avatar { position:relative;overflow:hidden;border:0;border-radius:50%;width:40px;height:40px;background:var(--ui-soft);color:var(--ui-focus); }
.ec-root .ec-person-avatar > svg { width:28px;height:28px; }
.ec-root .ec-person-avatar > img { position:absolute;inset:0;width:100%;height:100%;object-fit:cover; }
html body .ec-root .ec-add-circle { display:inline-flex;flex:0 0 48px;width:48px !important;height:48px;min-height:48px;padding:0;border-radius:50%; }
.ec-root .ec-add-circle svg { width:22px;height:22px; }

/* Contact rows with a trailing status column and circular icon actions. */
html body .phone .biz-icon-text-row.biz-icon-text-row--trailing { grid-template-columns:max-content minmax(0,1fr) max-content !important; }
html body .biz-icon-button--round { width:48px !important;height:48px !important;min-height:48px !important;padding:0 !important;border-radius:50% !important; }
html body .ec-root .ec-person-avatar { border-radius:14px !important; }
html body .ec-root .ec-member-copy > strong { font-size:14px !important;line-height:24px !important; }
.ec-root .ec-member-role { font-family:var(--biz-font-regular,'Vazirmatn Regular',Tahoma,sans-serif);font-size:12px;font-weight:400;color:var(--ui-muted);white-space:normal; }
html body .ec-root .ec-member-phone { font-size:12px !important;line-height:24px !important; }

:is(.ec-root .ec-directory-intro,.biz-directory-intro) { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px; }
:is(.ec-root .ec-directory-intro .ec-intro,.biz-directory-intro .page-intro) { margin:0;flex:1;min-width:0; }
.ec-root .ec-sheet-lead { margin:0 20px; }
.ec-root .ec-add-methods { display:grid;gap:12px; }
.ec-root .ec-add-method { display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;align-items:center;gap:12px;width:100%;text-align:start;color:var(--ui-ink); }
.ec-root .ec-add-method strong,.ec-root .ec-excel-guide strong { font:600 14px/24px var(--biz-font-semibold); }
.ec-root .ec-add-method small,.ec-root .ec-excel-guide small { font:400 12px/22px var(--biz-font-regular);color:var(--ui-muted); }
.ec-root .ec-excel-guide-card,.ec-root .ec-excel-download-card,.ec-root .ec-import-file-card { display:grid;gap:16px; }
.ec-root .ec-excel-guide-card > .biz-card-title { margin:0; }
.ec-root .ec-excel-guide { list-style:none;margin:0;padding:0;display:grid;gap:16px; }
.ec-root .ec-excel-guide li { display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;align-items:start; }
.ec-root .ec-guide-number { display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--ec-info-soft);color:var(--ec-info);font:600 14px/24px var(--biz-font-semibold); }
.ec-root .ec-excel-format { display:block; }
.ec-root .ec-excel-format summary { display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;font:600 14px/24px var(--biz-font-semibold); }
.ec-root .ec-excel-format summary::-webkit-details-marker { display:none; }
.ec-root .ec-excel-format dl { margin:16px 0;display:grid;gap:12px; }
.ec-root .ec-excel-format dt { font:600 12px/22px var(--biz-font-semibold); }
.ec-root .ec-excel-format dd,.ec-root .ec-excel-format p { margin:0;font:400 12px/22px var(--biz-font-regular);color:var(--ui-muted); }
.ec-root .ec-excel-limits { font:400 12px/22px var(--biz-font-regular);color:var(--ui-muted); }
#ec-staff-help[hidden] { display:none !important; }
.ec-root .ec-excel-help-link { display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;gap:12px;width:100%;min-height:64px;border:0;background:var(--ui-surface);color:var(--ui-ink);text-align:start; }
.ec-root .ec-excel-help-link strong { font:600 14px/24px var(--biz-font-semibold); }
.ec-root .ec-excel-help-link small { font:400 12px/20px var(--biz-font-regular);color:var(--ui-muted); }
.ec-root .ec-excel-help-link .ec-link-chevron { color:var(--ec-info); }
.ec-root .ec-file-field { display:grid;gap:0;min-width:0; }
.ec-root .ec-file-picker { position:relative;display:flex;flex-direction:column;gap:16px;padding:16px;border-radius:var(--biz-radius-field,16px);background:var(--ui-soft);cursor:pointer;min-width:0; }
.ec-root .ec-file-content { display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:12px; }
.ec-root .ec-file-content .biz-list-copy { min-width:0; }
.ec-root #ec-file-name { font:600 14px/24px var(--biz-font-semibold);overflow-wrap:anywhere; }
.ec-root #ec-file-meta,.ec-root #ec-file-hint { font:400 12px/22px var(--biz-font-regular);color:var(--ui-muted); }
.ec-root #ec-file-hint { padding-inline:0; }
.ec-root .ec-file-action { display:flex;justify-content:center;align-items:center;gap:8px;min-height:44px;border-radius:12px;background:var(--ec-info-soft);color:var(--ec-info);font:600 14px/24px var(--biz-font-semibold); }
.ec-root .ec-file-action svg { width:20px;height:20px; }
html body .phone .ec-root .ec-file-action > :is(span,svg) { color:var(--ec-info) !important; }
.ec-root .ec-file-picker:focus-within { outline:2px solid var(--ec-info);outline-offset:3px; }
html body .ec-root .ec-file-picker > input[type="file"] { position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;opacity:0;cursor:pointer;z-index:1; }
html body .phone .ec-root .ec-directory-intro .ec-add-circle { display:grid !important;place-items:center;flex-basis:56px;width:56px !important;height:56px !important;min-height:56px !important;padding:0 !important;line-height:0 !important; }
html body .phone .ec-root .ec-directory-intro .ec-add-circle > .ec-button-label { display:grid;place-items:center;width:26px;height:26px;line-height:0; }
html body .phone .ec-root .ec-directory-intro .ec-add-circle > .ec-button-label > svg { display:block;flex:0 0 26px;width:26px !important;height:26px !important;margin:0; }
:is(.ec-root,.bm-root,.cashbook-filter-controls,.biz-filter-controls) .biz-status-filters { display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:4px 0;margin:0 0 16px; }
:is(.ec-root,.bm-root,.cashbook-filter-controls,.biz-filter-controls) .biz-status-filters button { display:inline-flex;align-items:center;justify-content:center;flex:1 0 auto;gap:4px;min-height:48px;padding:8px 7px;border:0;border-radius:28px;background:var(--ui-soft);color:var(--ui-muted);font-size:12px;white-space:nowrap; }
:is(.ec-root,.bm-root,.cashbook-filter-controls,.biz-filter-controls) .biz-status-filters button[data-tone="success"] { background:var(--ec-success-soft);color:var(--ec-success); }
:is(.ec-root,.bm-root,.cashbook-filter-controls,.biz-filter-controls) .biz-status-filters button[data-tone="warning"] { background:var(--ec-warning-soft);color:var(--ec-warning); }
:is(.ec-root,.bm-root,.cashbook-filter-controls,.biz-filter-controls) .biz-status-filters button > span { display:grid;place-items:center;min-width:18px;height:24px;padding:0 4px;border-radius:12px;background:color-mix(in srgb,var(--ui-surface) 80%,transparent); }
html body :is(.ec-root,.bm-root,.cashbook-filter-controls,.biz-filter-controls) .biz-status-filters [aria-pressed="true"] { background:var(--ui-muted);color:var(--ui-surface);box-shadow:var(--biz-shadow-card,var(--shadow)); }
:is(.ec-root,.bm-root,.cashbook-filter-controls,.biz-filter-controls) .biz-status-filters [aria-pressed="true"] > span { background:color-mix(in srgb,var(--ui-surface) 20%,transparent); }
:is(.ec-root,.bm-root,.cashbook-filter-controls,.biz-filter-controls) .biz-status-filters svg { width:14px;height:14px;flex-basis:14px; }
.ec-admin-page .ec-toolbar { grid-template-columns:minmax(0,1fr); }

/* Employee detail: one profile surface, compact credit overview, secondary management. */
.ec-root .ec-profile-heading { display:flex;align-items:center;gap:12px;flex-wrap:wrap; }
.ec-root .ec-profile-heading .biz-list-copy { flex:1;min-width:100px; }
.ec-root .ec-profile-heading .ec-avatar { width:48px;height:48px;flex:none; }
.ec-root .ec-profile-heading .biz-list-copy > span { color:var(--ui-muted);font-size:12px; }
.ec-root .ec-profile-facts { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0 0; }
.ec-root .ec-profile-facts > div { min-width:0; }
.ec-root .ec-profile-facts dt { font-size:12px;color:var(--ui-muted);margin-bottom:4px; }
.ec-root .ec-profile-facts dd { margin:0;text-align:start;direction:rtl;overflow-wrap:anywhere;font-size:14px; }
.ec-root .ec-profile-card .ec-card-footer { margin-top:16px; }
.ec-root .ec-profile-credit { margin-top:16px; }
.ec-root .ec-profile-credit > .ec-status-tag { margin:12px 0;display:flex;flex-wrap:wrap;width:fit-content; }
.ec-root .ec-profile-credit .ec-section-header { margin-bottom:12px; }
.ec-root .ec-profile-amount { display:block;font-size:22px;margin-top:12px; }
.ec-root .ec-profile-schedule { margin-top:16px;border-top:1px solid var(--ui-card-line); }
.ec-root .ec-profile-schedule summary,.ec-root .ec-profile-management summary { cursor:pointer;min-height:48px;align-content:center;font-size:14px;font-weight:600; }
.ec-root .ec-profile-schedule summary span { font-size:12px;font-weight:400;color:var(--ui-muted);margin-inline-start:8px; }
.ec-root .ec-profile-schedule .ec-installments { margin-top:0; }
.ec-root .ec-profile-management > p { font-size:12px;color:var(--ui-muted);margin:8px 0 16px; }
.ec-root .ec-profile-actions { display:flex;gap:8px;flex-wrap:wrap; }
.ec-root .ec-profile-actions > button { flex:1 1 120px; }

:is(.ec-root .ec-profile-schedule,.ec-root .ec-profile-management,.cashbook-disclosure-card) > summary { display:flex;align-items:center;gap:8px;list-style:none; }
:is(.ec-root .ec-profile-schedule,.ec-root .ec-profile-management,.cashbook-disclosure-card) > summary::marker { content:""; }
:is(.ec-root .ec-profile-schedule,.ec-root .ec-profile-management,.cashbook-disclosure-card) > summary::-webkit-details-marker { display:none; }
:is(.ec-root .ec-profile-schedule,.ec-root .ec-profile-management,.cashbook-disclosure-card) > summary::after { content:"";width:20px;height:20px;flex:0 0 20px;margin-inline-start:auto;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;transition:transform 200ms ease; }
:is(.ec-root .ec-profile-schedule,.ec-root .ec-profile-management,.cashbook-disclosure-card)[open] > summary::after { transform:rotate(180deg); }
@media (prefers-reduced-motion:reduce) { :is(.ec-root .ec-profile-schedule,.ec-root .ec-profile-management,.cashbook-disclosure-card) > summary::after { transition:none; } }

.ec-root .contact-avatar[data-avatar-tone="rose"] { --contact-ink: #a84057; --contact-soft: #fbeff2; --contact-night: #3c2630; --contact-bright: #f2a4b7; }
.ec-root .contact-avatar[data-avatar-tone="blue"] { --contact-ink: #3266a6; --contact-soft: #edf3fc; --contact-night: #233247; --contact-bright: #a3c7f5; }
.ec-root .contact-avatar[data-avatar-tone="teal"] { --contact-ink: #267566; --contact-soft: #eaf6f1; --contact-night: #203b35; --contact-bright: #8fd5c3; }
.ec-root .contact-avatar[data-avatar-tone="violet"] { --contact-ink: #7652a8; --contact-soft: #f3eefb; --contact-night: #332941; --contact-bright: #cdb2f5; }
.ec-root .contact-avatar[data-avatar-tone="amber"] { --contact-ink: #906017; --contact-soft: #fcf4e6; --contact-night: #3c3221; --contact-bright: #efca87; }
.ec-root .contact-avatar[data-avatar-tone="coral"] { --contact-ink: #ad5138; --contact-soft: #fcf0e9; --contact-night: #402c26; --contact-bright: #f2b19c; }
html body .ec-root .ec-person-avatar { width:48px;height:48px;flex:0 0 48px;background:var(--contact-soft) !important;color:var(--contact-ink) !important;font-size:18px !important;font-weight:600;line-height:1;box-shadow:none; }
html body .ec-root .ec-person-avatar > .ec-avatar-initial { font-family:'Vazirmatn SemiBold',Tahoma,sans-serif !important;font-size:18px !important;font-weight:600 !important;line-height:1 !important;color:inherit; }
html[data-color-scheme="dark"] body .ec-root .ec-person-avatar { background:color-mix(in srgb,var(--contact-bright) 20%,var(--ui-surface)) !important;color:var(--contact-bright) !important; }
.ec-business-credit { margin-top:16px; }
.ec-business-credit button { border:0;background:transparent;color:var(--ui-ink);font:inherit;text-align:start;cursor:pointer; }
.ec-business-credit .ec-business-credit-main { display:flex;flex-direction:column;width:100%;padding:0;gap:12px; }
.ec-business-credit-title { display:flex;justify-content:space-between;align-items:center;width:100%;font-size:14px; }
.ec-business-credit-value { display:flex;align-items:baseline;gap:8px;flex-wrap:wrap; }
html body .ec-business-credit-value > strong { font-size:26px !important;line-height:36px; }
.ec-business-credit-value > small,.ec-business-credit-limit { color:var(--ui-muted);font-size:11px; }
.ec-business-credit .ec-capacity-bar { width:100%;height:6px; }
.ec-business-credit .ec-capacity-legend { margin:0;font-size:10px;gap:12px; }
.ec-business-credit-links { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:20px;padding-top:16px;border-top:1px solid var(--ui-card-line); }
.ec-business-credit-links > button { display:flex;align-items:center;gap:12px;padding:0 0 0 12px;min-width:0;min-height:56px; }
.ec-business-credit-links > button + button { border-inline-start:1px solid var(--ui-card-line);padding-inline:12px 0; }
.ec-business-credit-links .biz-icon-tile { width:32px;height:32px;flex-basis:32px;border-radius:12px; }
.ec-business-credit-links .biz-icon-tile svg { width:20px;height:20px; }
.ec-business-credit-links .biz-list-copy { min-width:0; }
.ec-business-credit-links strong { font-size:13px !important; }
.ec-business-credit-links strong > span { font-weight:400;color:var(--ui-muted);margin-inline-start:4px; }
.ec-business-credit-links small { font-size:10px;color:var(--ui-muted); }

/* Business overview cards share the sales summary's glass surface. */
html[data-account-aura="on"] body .phone.next-ui-theme :is(#screen-business > :is(#ec-business-credit,#next-business-scf-entry,.bm-business-entry),#trade-business-entry .biz-service-entry-card) {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:var(--business-aura-glass) !important;
  border-color:var(--business-aura-edge) !important;
  box-shadow:0 12px 30px rgb(16 151 103 / 7%),0 3px 9px rgb(16 151 103 / 3%) !important;
  -webkit-backdrop-filter:blur(20px) saturate(110%);
  backdrop-filter:blur(20px) saturate(110%);
}
html[data-account-aura="on"] body .phone.next-ui-theme :is(#screen-business > :is(#ec-business-credit,#next-business-scf-entry,.bm-business-entry),#trade-business-entry .biz-service-entry-card)::after {
  content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:linear-gradient(125deg,var(--business-aura-sheen),transparent 43%,transparent 66%,var(--business-aura-sheen));
  box-shadow:inset 0 1px 0 var(--business-aura-edge),inset 1px 0 0 var(--business-aura-sheen);
}
@media(forced-colors:active) {
  html[data-account-aura="on"] body .phone.next-ui-theme :is(#screen-business > :is(#ec-business-credit,#next-business-scf-entry,.bm-business-entry),#trade-business-entry .biz-service-entry-card) { background:Canvas !important;border-color:CanvasText !important;box-shadow:none !important;backdrop-filter:none;-webkit-backdrop-filter:none; }
  html[data-account-aura="on"] body .phone.next-ui-theme :is(#screen-business > :is(#ec-business-credit,#next-business-scf-entry,.bm-business-entry),#trade-business-entry .biz-service-entry-card)::after { display:none; }
}

/* Deeper green for the Business title and description on light surfaces. */
html:not([data-color-scheme="dark"]) body .phone.next-ui-theme #screen-business > .next-page-intro > :is(h1, p) {
  color: #102f25;
}

/* Business keeps its hero colors, with the shared page-description typography. */
html body .phone.next-ui-theme #screen-business > .next-page-intro > h1 + p {
  font: 400 14px/24px var(--biz-font-regular) !important;
}

/* Employee/credit lists follow the shared text keyline and 16px trailing inset. */
html body .phone .ec-root :is(.ec-member, .ec-recipient-group > .ec-recipient) {
  --ec-divider-start: calc(16px + 48px + 12px);
  --ec-divider-end: var(--biz-divider-inset, 16px);
  position: relative;
}
html body .phone .ec-root :is(.ec-installments > li, .ec-payment-list > article, .ec-facts > div, .ec-review-list > article) {
  --ec-divider-start: 0px;
  --ec-divider-end: 0px;
  position: relative;
}
html body .phone .ec-root :is(.ec-member + .ec-member, .ec-recipient-group > .ec-recipient + .ec-recipient, .ec-installments > li + li, .ec-payment-list > article + article, .ec-facts > div + div, .ec-review-list > article + article) {
  border-top-color: transparent !important;
}
html body .phone .ec-root :is(.ec-member + .ec-member, .ec-recipient-group > .ec-recipient + .ec-recipient, .ec-installments > li + li, .ec-payment-list > article + article, .ec-facts > div + div, .ec-review-list > article + article)::before {
  content: "";
  position: absolute;
  inset-inline-start: var(--ec-divider-start);
  inset-inline-end: var(--ec-divider-end);
  top: -1px;
  height: var(--biz-divider-thickness, 1px);
  background: var(--biz-divider-color, var(--biz-line, #e1e6e2));
  pointer-events: none;
}

/* Customer employee/credit surfaces share the established typography and rhythm. */
html body .phone .ec-root :is(h1,h2,h3,.biz-list-title,.biz-card-title) {
  font-family: var(--biz-font-semibold) !important;
  font-weight: 600 !important;
}
html body .phone .ec-root :is(.ec-capacity-legend,.ec-score-link small,.ec-report-entry small,
  .ec-credit-person .biz-list-copy > small,.ec-grant-value small,.ec-grant-value time,
  .ec-grant-progress-copy,.ec-grant-progress-copy > strong,.ec-four-steps small,
  .ec-stat-tile small,.ec-filter-chips button,.ec-payment-progress > span,
  .ec-score-ring-large small,.ec-score-factors article > small,.ec-score-factors b > small,
  .ec-mode-choices label small,.ec-allocation-term,.ec-slider-ends,
  .ec-allocation-preview small,.ec-allocation-hint,.ec-status-tag,.ec-badge) {
  font-size: 12px !important;
  line-height: 20px !important;
}
html body .phone .ec-root :is(.ec-mode-choices label strong,.ec-score-factors strong,.ec-score-factors b) {
  font-family: var(--biz-font-semibold);
  font-size: 14px !important;
  line-height: 24px;
}
html body .phone .ec-root .ec-hero-amount > strong { font-size:32px !important;line-height:40px !important; }
html body .phone .ec-root :is(.ec-note,.ec-dialog-content > p,.ec-empty p) { font:400 14px/24px var(--biz-font-regular); }
html body .phone .ec-root .ec-facts dt { font:400 12px/20px var(--biz-font-regular); }
html body .phone .ec-root .ec-facts dd { font:600 14px/24px var(--biz-font-semibold); }
html body .phone .ec-root .ec-dialog-content > :is(.ec-grant,.ec-offer,.ec-payment-list,.ec-note,.ec-review-list) { margin-block:0; }
html body .phone .ec-root .ec-dialog-content > .ec-profile-credit { margin-top:32px; }
html body .phone .ec-root .ec-section-header + :is(.ec-grant,.ec-empty) { margin-top:8px; }
html body .phone .ec-root .ec-form-grid { row-gap:16px; }
html body .phone .ec-root .ec-form-grid > .field { margin-block:0 !important; }
html body .phone .ec-root .ec-field > small:empty { display:none; }
html body .phone .ec-root .ec-field:has([aria-invalid="true"]) > small { color:var(--ec-error-ink); }
html body .phone .ec-root { --ec-error-ink:#b4233d;--ec-error-surface:#fff0f2; }
html[data-color-scheme="dark"] body .phone .ec-root { --ec-error-ink:#ffacb8;--ec-error-surface:#442731; }
html body .phone .ec-root .ec-error { color:var(--ec-error-ink);background:var(--ec-error-surface);font:400 12px/20px var(--biz-font-regular);padding:16px;border-radius:16px; }
html body .phone .ec-root .field > div > input:focus-visible { outline:0; }
html body .phone .ec-root .ec-mode-choices label > span { padding-inline:8px; }
html body .phone .ec-root .ec-amount-presets button { min-height:48px; }
html body .phone .ec-root .ec-four-steps > span:not(:last-child)::after { height:1px; }
html body .phone :is(.ec-root .ec-profile-schedule,.ec-root .ec-profile-management,.cashbook-disclosure-card) > summary { min-height:48px; }
html body .phone .ec-root .ec-report-summary { gap:8px; }
html body .phone .ec-root .ec-stat-tile { border-radius:var(--biz-radius-card,24px); }

html body .phone .ec-root .ec-grant-value strong { font:600 20px/32px var(--biz-font-semibold) !important; }
html body .phone .ec-root .ec-profile-amount { font:600 24px/32px var(--biz-font-semibold) !important; }
html body .phone .ec-root .ec-grant-waiting:is([data-grant-status="cancelled"],[data-grant-status="declined"]) { background:var(--ui-soft);color:var(--ui-muted); }
html body .phone .ec-root .ec-credit-person h3 { font-size:14px !important;line-height:24px !important; }
html body .phone .ec-root .ec-grant-waiting { font:400 12px/20px var(--biz-font-regular); }
/* Prototype controls use the same field rhythm as the app. */
.scenario-control .ec-scenario-control { display:grid; gap:16px; min-width:0; padding-block:16px; }
.scenario-control .ec-scenario-control .scenario-section-heading { flex-wrap:wrap; }
.scenario-control .ec-scenario-control p,
.scenario-control .ec-scenario-control > small { margin:0; font-size:12px; line-height:20px; color:var(--muted); }
.scenario-control .ec-scenario-control .field { display:grid; gap:8px; margin:0; min-width:0; }
.scenario-control .ec-scenario-control .field > span { padding-inline:20px; font-size:14px; line-height:24px; }
.scenario-control .ec-scenario-control .field > div { min-width:0; border:0; background:var(--soft); border-radius:16px; }
.scenario-control .ec-scenario-control select { width:100%; max-width:100%; min-height:56px; padding:12px; border:0; border-radius:16px; color:var(--ink); background:transparent; font:inherit; font-size:16px; }
html[data-color-scheme="dark"] .ec-scenario-control .field > div { background:var(--appearance-soft); }
html[data-color-scheme="dark"] .ec-scenario-control select { color-scheme:dark; }
.scenario-control .ec-scenario-control select:focus-visible { outline:2px solid var(--primary, #2563eb); outline-offset:2px; }
.scenario-control .ec-scenario-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.scenario-control .ec-scenario-control button { min-height:48px; padding:8px; font-size:12px; line-height:20px; white-space:normal; }
.scenario-control .ec-scenario-control button:disabled { opacity:.45; cursor:default; }
.scenario-control #ec-scenario-tour { min-height:52px; border-radius:16px; }
.scenario-control #ec-scenario-personal { display:block; padding-block:12px; font-size:12px; line-height:24px; text-underline-offset:4px; }
.scenario-control #ec-scenario-personal[hidden] { display:none; }

/* The desktop itinerary is hidden on phones; keep this tour's result visible. */
@media (max-width:1199px) {
  .guided-tour-progress[data-tour="employee-credit"].is-complete:not([hidden]) {
    display:grid !important; position:fixed; z-index:1300; inset:auto auto 24px 50%;
    width:min(360px,calc(100vw - 24px)); max-height:calc(100dvh - 48px);
    transform:translateX(-50%); overflow:auto;
  }
  .guided-tour-progress[data-tour="employee-credit"].is-complete :is(.guided-tour-goal,.guided-tour-progress-heading,.guided-tour-progress-list,.guided-tour-progress-footer) { display:none; }
}

/* Dark card boundaries come from their surface, never decorative shadows. */
html[data-color-scheme="dark"] body .phone {
  --biz-shadow-card: none;
  --biz-shadow-account: none;
}
html[data-color-scheme="dark"] body .phone.next-ui-theme :is(#screen-business > :is(.next-business-summary:not(html[data-account-aura="on"] *),#ec-business-credit,#next-business-scf-entry,.bm-business-entry),#trade-business-entry .biz-service-entry-card),
html[data-color-scheme="dark"] body .phone.next-ui-theme :is(#screen-business > :is(.next-business-summary:not(html[data-account-aura="on"] *),#ec-business-credit,#next-business-scf-entry,.bm-business-entry),#trade-business-entry .biz-service-entry-card)::after {
  box-shadow: none !important;
}
/* The selected option's underline remains a selection cue, not elevation. */
html[data-color-scheme="dark"] body .phone .ec-root .ec-mode-choices input:checked + span { box-shadow:none; }
html[data-color-scheme="dark"] body .phone :is(.biz-card,.biz-elevated,.ec-member-list) {
  box-shadow: none !important;
}
html[data-color-scheme="dark"] body .phone .ec-root .ec-mode-choices input:checked + span { box-shadow:none !important; }
html body .phone .ec-root .ec-recipient-group.biz-card { padding:0 !important; }
html body .phone .ec-root .ec-recipient-group .ec-recipient > label { padding:0;border:0;background:transparent !important;box-shadow:none; }
html body .phone .ec-root .ec-recipient-group .ec-recipient { background:transparent !important; }
html body .phone #ec-allocation-form #ec-total-field input[name="total"] { font:600 22px/32px var(--biz-font-semibold) !important; }

/* Secondary actions in modal headers share a full touch target. */
html body .phone .bottom-sheet > header .biz-sheet-header-action {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ui-ink);
  box-shadow: none;
}
html body .phone .biz-sheet-header-action svg { width: 20px; height: 20px; }

/* Statement export is a distinct, tactile header action. */
html body .phone .bottom-sheet > header .biz-sheet-header-action.biz-glass-icon-button {
  --sheet-action-glass-fill: rgb(255 255 255 / 74%);
  --sheet-action-glass-glint: rgb(255 255 255 / 92%);
  --sheet-action-glass-shadow: rgb(35 49 46 / 7%);
  border: 0 !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, var(--sheet-action-glass-glint), transparent 66%), var(--sheet-action-glass-fill) !important;
  box-shadow: inset 0 1px 0 var(--sheet-action-glass-glint), 0 4px 16px var(--sheet-action-glass-shadow) !important;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
html[data-color-scheme="dark"] body .phone .bottom-sheet > header .biz-sheet-header-action.biz-glass-icon-button {
  --sheet-action-glass-fill: rgb(35 46 61 / 48%);
  --sheet-action-glass-glint: rgb(219 233 249 / 9%);
  --sheet-action-glass-shadow: rgb(0 0 0 / 18%);
}
html body .phone .bottom-sheet > header .biz-sheet-header-action.biz-glass-icon-button:focus-visible {
  outline: 2px solid var(--biz-focus, #0056f5);
  outline-offset: 3px;
}
html body .phone .bottom-sheet > header .biz-sheet-header-action.biz-glass-icon-button:active {
  box-shadow: inset 0 0 0 24px rgb(127 127 127 / 12%) !important;
}

/* Account overview reads from identity to balance, movement, then metadata. */
html body .phone .account-overview .detail-overview-heading { align-items: flex-start; }
html body .phone .account-overview .detail-overview-heading :is(h1, h2) { margin: 0; }
html body .phone .account-overview .detail-status { margin: 0; flex-shrink: 0; }
html body .phone .account-overview .detail-balance-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: 24px;
}
html body .phone .account-overview .detail-balance-label { padding-inline-end: 44px; }
html body .phone .account-overview .detail-balance-amount { margin: 0; }
html body .phone .account-overview #account-detail-balance { font-size: 32px !important; line-height: 40px; }
html body .phone .account-overview .account-monthly-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-block: 20px 0;
  border-top: 1px solid var(--detail-line);
}
html body .phone .account-overview .account-identity-number {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 4px 0 0;
  color: var(--ui-muted);
  font: 400 12px/20px var(--biz-font-regular) !important;
}
html body .phone .account-overview #account-detail-number {
  font: 400 12px/20px var(--biz-font-regular) !important;
  color: var(--ui-muted);
  white-space: nowrap;
}

/* Daily account work is grouped with its balance; secondary information unfolds. */
html body .phone #screen-account-detail .detail-account-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding-bottom: 24px;
}
html body .phone #screen-account-detail .detail-account-actions .detail-button {
  min-width: 0;
  padding: 12px 4px;
  min-height: 52px;
  font: 600 14px/24px var(--biz-font-semibold) !important;
  white-space: nowrap;
}
html body .phone #screen-account-detail #account-detail-send { grid-column: auto; min-height: 52px; }
html body .phone .account-overview .detail-account-actions .detail-button:not(.detail-primary) {
  background: var(--ui-field-bg, var(--detail-soft));
  border-color: var(--ui-card-line);
}
html body .phone .account-card-section .detail-linked-card {
  margin: 0;
  padding: var(--biz-card-padding);
  border-radius: var(--biz-radius-card) !important;
}
html body .phone .account-card-section .detail-card-thumb {
  width: 88px;
  height: 56px;
  border-radius: 10px;
}
html body .phone #screen-account-detail .detail-row-copy { min-width: 0; }
html body .phone #screen-account-detail .detail-row-copy small { font-size: 12px !important; }
html body .phone .account-management .detail-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) 16px;
  column-gap: 12px;
}
html body .phone .account-management .detail-row > .biz-icon-tile,
html body .phone .biz-disclosure > summary > .biz-icon-tile {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
}
html body .phone .biz-disclosure { margin-block: 16px 0; }
html body .phone .biz-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 16px var(--biz-card-padding);
  list-style: none;
  cursor: pointer;
}
html body .phone .biz-disclosure > summary::marker { content: ''; }
html body .phone .biz-disclosure > summary::-webkit-details-marker { display: none; }
html body .phone .biz-disclosure > summary > .biz-list-copy { flex: 1; min-width: 0; }
html body .phone .biz-disclosure > summary .biz-list-title { font-size: 14px !important; }
html body .phone .biz-disclosure > summary .biz-list-description { font-size: 12px !important; color: var(--ui-muted); }
html body .phone .biz-disclosure-chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--ui-muted);
  transform: rotate(-90deg);
  transition: transform 180ms ease;
}
html body .phone .biz-disclosure[open] > summary .biz-disclosure-chevron { transform: rotate(90deg); }
html body .phone .biz-disclosure-body { margin-inline: var(--biz-card-padding); padding: 0 !important; border-top: 1px solid var(--ui-card-line); }
html body .phone .account-more-options > summary { color: var(--ui-muted); }
html body .phone .account-more-options .detail-risk { margin: 0; border: 0; }
@media (prefers-reduced-motion: reduce) { html body .phone .biz-disclosure-chevron { transition: none; } }

/* Focused controls stay above the persistent navigation on the account root. */
html body .phone .account-root-page { scroll-padding-block: 16px calc(128px + var(--app-safe-bottom, 0px)); }

/* Color only the management glyphs; keep the shared neutral action surfaces. */
html body .phone .detail-page .detail-card-controls > button > svg[data-card-icon-tone="blue"] { color: var(--biz-tile-blue); }
html body .phone .detail-page .detail-card-controls > button > svg[data-card-icon-tone="orange"] { color: var(--biz-tile-orange); }
html body .phone .detail-page .detail-card-controls > button > svg[data-card-icon-tone="purple"] { color: var(--biz-tile-purple); }
html body .phone .detail-page #card-lock-action { color: var(--biz-tile-green); }
html body .phone .detail-page #card-lock-action[data-locked="true"] { color: var(--biz-tile-red); }

/* Card lock uses the same neutral action surface and glyph size as its siblings. */
html body .phone .detail-page .card-lock-icon {
  position: relative; display: inline-block; width: 20px; height: 20px;
  flex: 0 0 auto; color: var(--detail-muted); line-height: 0;
}
html body .phone .detail-page .card-lock-player { position: absolute; inset: 0; }
html body .phone .detail-page .card-lock-icon svg {
  display: block; width: 100% !important; height: 100% !important; color: inherit;
}
html body .phone .detail-page .card-lock-player svg { stroke: none; }
html body .phone .detail-page .card-lock-player svg path { stroke: currentColor; stroke-width: 1.75; fill: none; }
html body .phone .detail-page .card-lock-icon.is-lottie-ready > .card-lock-fallback { visibility: hidden; }
.card-lock-shackle-open, .card-lock-icon[data-locked="false"] .card-lock-shackle { display: none; }
.card-lock-icon[data-locked="false"] .card-lock-shackle-open { display: block; }
html body .phone #card-hero > .card-lock-mask {
  position: absolute; inset: 0; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center;
  border-radius: inherit; background: rgb(12 22 42 / 62%);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 200ms ease, visibility 200ms;
}
html body .phone #card-hero:is(.frozen, [data-lock-transition="unlocking"]) > .card-lock-mask {
  opacity: 1; visibility: visible; pointer-events: auto;
}
html body .phone #card-hero .card-lock-mask .card-lock-icon {
  width: clamp(64px, 24cqw, 96px); height: clamp(64px, 24cqw, 96px); color: #ff7885; place-self: center;
}
html body .phone #card-hero .card-lock-mask .card-lock-icon[data-locked="false"] { color: #4fdda0; }
@media (prefers-reduced-motion: reduce) {
  html body .phone #card-hero > .card-lock-mask { transition: none; }
}
@media (forced-colors: active) {
  html body .phone #card-hero > .card-lock-mask { background: Canvas; }
  html body .phone #card-hero .card-lock-mask .card-lock-icon,
  html body .phone #card-hero .card-lock-mask .card-lock-icon[data-locked="false"] { color: CanvasText; }
}

/* One glass capsule for back navigation, including dynamically rendered pages. */
html body .phone button.biz-back-button.biz-back-button {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 auto !important;
  flex-direction:row !important;
  gap:8px !important;
  width:auto !important;
  max-width:100%;
  height:auto !important;
  min-height:48px !important;
  padding:10px 16px !important;
  border:0 !important;
  border-radius:999px !important;
  background:linear-gradient(145deg,rgb(255 255 255 / 90%),rgb(255 255 255 / 55%)) !important;
  color:#34423c !important;
  box-shadow:inset 0 1px 0 rgb(255 255 255 / 90%),0 4px 16px rgb(35 49 46 / 7%) !important;
  -webkit-backdrop-filter:blur(18px) saturate(150%);
  backdrop-filter:blur(18px) saturate(150%);
  font:500 14px/24px var(--biz-font-medium) !important;
  text-decoration:none !important;
  direction:rtl;
  white-space:normal;
}
html body .phone button.biz-back-button > svg {
  width:20px !important;height:20px !important;flex:0 0 20px !important;
  order:-1;transform:none !important;rotate:none !important;scale:none !important;
  fill:none !important;stroke:currentColor !important;stroke-width:1.75;
  stroke-linecap:round;stroke-linejoin:round;
}
html body .phone button.biz-back-button > :is(span,strong) { font:inherit !important;color:inherit !important; }
html body .phone button.biz-back-button::before,
html body .phone button.biz-back-button::after { content:none !important; }
html[data-color-scheme="dark"] body .phone button.biz-back-button.biz-back-button {
  background:linear-gradient(145deg,rgb(255 255 255 / 16%),rgb(255 255 255 / 8%)) !important;
  color:var(--ui-ink,#edf2f7) !important;
  box-shadow:none !important;
}
html body .phone button.biz-back-button:focus-visible { outline:2px solid var(--ui-focus,#0056f5) !important;outline-offset:3px; }
html body .phone button.biz-back-button:active { opacity:.75; }

/* Text actions opposite a focused-header back control share its glass capsule. */
html body .phone .focused-header > button.biz-header-text-action.biz-header-text-action:last-child:not(:first-child) {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 auto !important;
  width:auto !important;
  max-width:100%;
  height:auto !important;
  min-height:48px !important;
  padding:10px 16px !important;
  border:0 !important;
  border-radius:999px !important;
  background:linear-gradient(145deg,rgb(255 255 255 / 90%),rgb(255 255 255 / 55%)) !important;
  color:#34423c !important;
  box-shadow:inset 0 1px 0 rgb(255 255 255 / 90%),0 4px 16px rgb(35 49 46 / 7%) !important;
  -webkit-backdrop-filter:blur(18px) saturate(150%);
  backdrop-filter:blur(18px) saturate(150%);
  font:500 14px/24px var(--biz-font-medium) !important;
  text-decoration:none !important;
  white-space:nowrap;
}
html[data-color-scheme="dark"] body .phone .focused-header > button.biz-header-text-action.biz-header-text-action:last-child:not(:first-child) {
  background:linear-gradient(145deg,rgb(255 255 255 / 16%),rgb(255 255 255 / 8%)) !important;
  color:var(--ui-ink,#edf2f7) !important;
  box-shadow:none !important;
}
html body .phone .focused-header > button.biz-header-text-action:focus-visible { outline:2px solid var(--ui-focus,#0056f5) !important;outline-offset:3px; }
html body .phone .focused-header > button.biz-header-text-action:active { opacity:.75; }

/* Contacts reuse the modal frame, persistent header and shared list cards. */
.phone #transfer-contacts { min-width: 0; padding-bottom: 0; }
.phone .contacts-sheet-description { margin: 0 0 16px; color: var(--ui-muted); font: 14px/24px var(--biz-font-regular); }
.phone #contacts-sheet #all-contacts-list { overflow: visible; }

/* Landing sign-in label follows the default action typography. */
html body .phone #login-sheet-open,
html body .phone #login-sheet-open > span {
  font: 500 var(--biz-text-body,14px)/var(--biz-line-body,24px) var(--biz-font-medium) !important;
  letter-spacing:0 !important;
}

/* Credit report entry aligns with the section copy and uses the shared glass action language. */
html body .phone .ec-root .ec-credit-list-header {
  align-items:flex-start;
  flex-wrap:nowrap;
}
html body .phone .ec-root .ec-credit-list-header > div {
  min-width:0;
  flex:1 1 auto;
}
html body .phone :is(.ec-root .ec-section-filter,.biz-section-filter) {
  --ec-filter-glass-fill:rgb(255 255 255 / 74%);
  --ec-filter-glass-glint:rgb(255 255 255 / 92%);
  display:grid;
  place-items:center;
  flex:0 0 48px;
  width:48px !important;
  height:48px;
  min-width:48px;
  min-height:48px;
  padding:0;
  border:0;
  border-radius:50%;
  color:var(--ui-ink);
  background:linear-gradient(145deg,var(--ec-filter-glass-glint),transparent 66%),var(--ec-filter-glass-fill);
  box-shadow:inset 0 1px 0 var(--ec-filter-glass-glint),0 4px 16px rgb(35 49 46 / 7%);
  -webkit-backdrop-filter:blur(18px) saturate(150%);
  backdrop-filter:blur(18px) saturate(150%);
}
html body .phone :is(.ec-root .ec-section-filter,.biz-section-filter) > svg {
  width:22px;
  height:22px;
  flex:0 0 22px;
  color:inherit !important;
}
html body .phone :is(.ec-root .ec-section-filter,.biz-section-filter):focus-visible {
  outline:2px solid var(--biz-focus,#0056f5);
  outline-offset:3px;
}
html body .phone :is(.ec-root .ec-section-filter,.biz-section-filter):active { opacity:.75; }
html[data-color-scheme="dark"] body .phone :is(.ec-root .ec-section-filter,.biz-section-filter) {
  --ec-filter-glass-fill:rgb(35 46 61 / 48%);
  --ec-filter-glass-glint:rgb(219 233 249 / 9%);
  box-shadow:none;
}

/* This dashed boundary identifies a mock transition, not a customer-facing card. */
html body .phone .ec-root .ec-mock-grant-action {
  width:100%;
  min-height:64px;
  margin-top:16px;
  padding:8px 12px;
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  align-items:center;
  column-gap:12px;
  border:1px dashed var(--appearance-line,var(--ui-line,#a9adab));
  border-radius:16px;
  color:var(--ui-ink);
  background:var(--ui-soft,var(--soft));
  text-align:right;
  cursor:pointer;
}
html body .phone .ec-root .ec-mock-grant-action .biz-icon-tile { width:40px; height:40px; }
html body .phone .ec-root .ec-mock-grant-action .biz-list-copy { min-width:0; gap:4px; }
html body .phone .ec-root .ec-mock-grant-action strong { font-size:14px; line-height:24px; font-weight:600; }
html body .phone .ec-root .ec-mock-grant-action small { color:var(--ui-muted); font-size:12px; line-height:20px; font-weight:400; }
html body .phone .ec-root .ec-mock-grant-action:focus-visible { outline:2px solid var(--biz-focus,#0056f5); outline-offset:3px; }
html body .phone .ec-root .ec-mock-grant-action:disabled { opacity:.48; cursor:wait; }
html[data-color-scheme="dark"] body .phone .ec-root .ec-mock-grant-action { background:var(--appearance-soft,var(--soft)); }

/* Installed iOS: reserve the device's safe area once, while the existing Aura
 * and glass continue to the top edge. Extra clearance stays zero until measured
 * on a device; it is not an assumed notch size or a new status-bar surface. */
@media (max-width: 767px) {
  html.ios-standalone body .phone {
    --app-top-inset: calc(var(--app-safe-top) + var(--app-top-clearance, 0px));
  }
  html.ios-standalone body .phone .app-shell > .app-header {
    height: calc(var(--app-header-natural-height, 80px) + var(--app-header-inset, 0px));
    flex-shrink: 0;
  }
  html.ios-standalone[data-account-aura="on"] body .phone #app-shell.active.home-variant-next:has(#screen-home.active) {
    --app-header-inset: var(--app-top-inset);
    --aura-header-height: var(--app-header-natural-height, 80px);
  }
  html.ios-standalone[data-account-aura="on"] body .phone.next-ui-theme #app-shell:has(#screen-business.active) {
    --app-header-inset: var(--app-top-inset);
    --business-aura-header-height: var(--app-header-natural-height, 80px);
  }
}

/* Subtle Depth uses Blue Theme's neutral backgrounds in light appearance. */
html:not([data-color-scheme="dark"]) .phone[data-app-theme="subtle-depth"] {
  --biz-canvas: #f5f6f8;
  --biz-surface: #ffffff;
  --biz-surface-soft: #f0f2f5;
}

/* Account/card details use the shared readable hierarchy, including full IDs. */
html body .phone :is(#screen-account-detail, #screen-card-detail) .detail-card-heading {
  font: 600 24px/32px var(--biz-font-semibold) !important;
}
html body .phone :is(#screen-account-detail, #screen-card-detail) :is(.detail-row-copy strong, .detail-card-controls strong) {
  font: 600 14px/24px var(--biz-font-semibold) !important;
}
html body .phone :is(#screen-account-detail, #screen-card-detail) :is(.detail-card-info-title p, .detail-row-copy small,
  .detail-card-controls small, .detail-account-link bdi, .detail-caption,
  .detail-balance-label > span, .detail-balance-amount > span,
  .account-identity-number, #account-detail-number) {
  font: 400 14px/24px var(--biz-font-regular) !important;
}
html body .phone :is(#screen-account-detail, #screen-card-detail) .detail-full-card-number {
  display: block;
  white-space: nowrap;
  font: 400 14px/24px var(--biz-font-regular) !important;
  color: var(--detail-muted);
}
html body .phone #screen-card-detail #card-hero .detail-card-label {
  font-size: 12px !important;
  line-height: 20px;
}
html body .phone #screen-card-detail #card-hero #card-detail-number {
  font-size: clamp(16px, 4.8cqw, 20px) !important;
  letter-spacing: 0;
  white-space: nowrap;
}
@media (max-width: 360px) {
  html body .phone .account-card-section .detail-card-thumb { width: 48px; height: 32px; }
}


/* Shared optional detail disclosure and label/value rows inside a card. */
html body .phone .biz-limit-summary {
 display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
 gap: 8px 16px; margin-block-start: 16px; padding-block: 12px;
 color: var(--ui-ink); font: 600 14px/24px "Vazirmatn SemiBold", Tahoma, sans-serif;
}
html body .phone .biz-limit-summary > span { color: var(--ui-muted); font: 400 14px/24px "Vazirmatn Regular", Tahoma, sans-serif; }
html body .phone .biz-detail-trigger {
 display: flex; align-items: center; justify-content: space-between; gap: 8px;
 width: 100%; min-height: 48px; margin: 0; padding: 8px 0;
 border: 0; border-radius: 0; background: transparent; box-shadow: none;
 color: var(--ui-ink); text-align: start; cursor: pointer;
 font: 500 14px/24px "Vazirmatn Medium", Tahoma, sans-serif;
}
html body .phone .biz-detail-trigger > span { font: inherit; }
html body .phone .biz-detail-trigger > svg { width: 20px; height: 20px; flex: 0 0 20px; }
html body .phone .biz-detail-trigger:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 4px; border-radius: 8px; }
html body .phone .biz-fact-list { margin: 0; padding: 0; border: 0; background: transparent; }
html body .phone .biz-fact-list > div {
 position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
 gap: 4px 16px; min-height: 56px; padding: 16px 0; border: 0; background: transparent;
}
html body .phone .biz-fact-list dt { min-width: 0; margin: 0; color: var(--ui-muted); font: 400 14px/24px "Vazirmatn Regular", Tahoma, sans-serif; }
html body .phone .biz-fact-list dd { margin: 0; margin-inline-start: auto; color: var(--ui-ink); font: 600 14px/24px "Vazirmatn SemiBold", Tahoma, sans-serif; }
html body .phone .biz-fact-list > div:not(:last-child)::after {
 --biz-divider-paint: 1; content: ""; position: absolute; inset-inline: 0;
 inset-block-end: var(--biz-divider-layout-end, 0px); height: 1px;
 background: var(--biz-divider-color, var(--biz-line, #e1e6e2));
 transform: translateY(var(--biz-divider-painted-shift, 0px)); pointer-events: none;
}

/* A grouped fact card uses the same sheet canvas and card surface as contacts. */
html body .phone .biz-fact-list.biz-card {
 margin-block-start: 16px; background: var(--ui-surface);
 box-shadow: var(--biz-shadow-card); border-radius: var(--biz-radius-card) !important;
}
html body .phone .biz-fact-list.biz-card > div { padding-inline: var(--biz-card-padding); }
html body .phone .biz-fact-list.biz-card > div:not(:last-child)::after { inset-inline: var(--biz-card-padding); }
html body .phone .biz-fact-list.biz-card dd { font: 600 16px/26px var(--biz-font-semibold); }

/* Shared full-date extension of the statement calendar. */
html body .phone .biz-date-days, html body .phone .biz-date-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px 0; }
html body .phone .biz-date-weekdays { margin-top: 16px; text-align: center; color: var(--ui-muted); font: 400 12px/24px var(--biz-font-regular); }
html body .phone .biz-date-days .biz-month-option { min-height: 48px; padding: 4px 0; border-radius: 12px; }
html body .phone .biz-date-open { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--ui-focus); box-shadow: none; }
html body .phone .biz-date-open svg { width: 20px; height: 20px; }
html body .phone .biz-date-open:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 2px; }
html body .phone .biz-date-field input { min-width: 0; direction: ltr; text-align: left; }
html body .phone [data-date-year-step="-1"] svg { transform: rotate(180deg); }
html body .phone #jalali-date-sheet [hidden] { display: none !important; }

/* Form sheets share field roles and spacing regardless of legacy label rules. */
html body .phone .bottom-sheet.biz-form-sheet { gap: 16px; }
html body .phone .biz-form-sheet > .field { margin: 0 !important; }
html body .phone .biz-form-sheet .field > span { font: 500 14px/24px var(--biz-font-medium) !important; margin-block: 0 8px !important; }
html body .phone .biz-form-sheet .field > small { font: 400 12px/20px var(--biz-font-regular) !important; margin-block: 8px 0 !important; }
html body .phone .biz-form-sheet .field :is(input, select) { font: 400 16px/24px var(--biz-font-regular) !important; }
html body .phone .biz-form-sheet .field input::placeholder { font: 400 16px/24px var(--biz-font-regular) !important; }
html body .phone .biz-form-sheet > .primary-button { min-height: 52px !important; gap: 8px; font: 500 14px/24px var(--biz-font-medium) !important; }
html body .phone .biz-form-sheet > .primary-button > span { font: inherit !important; }
html body .phone .biz-form-sheet > .primary-button > svg { width: 20px; height: 20px; flex: 0 0 20px; }

/* Keep the destination summary to name/action and full identifier. */
html body .phone #selected-recipient-bank[hidden] { display: none !important; }

/* Recipient identity remains in one text column beside its avatar. */
html body .phone #transfer-amount .selected-recipient { position: relative; grid-template-columns: max-content minmax(0, 1fr) auto !important; }
html body .phone #transfer-amount .selected-recipient > span:nth-child(2) { gap: 4px !important; }
html body .phone #transfer-amount .selected-recipient #selected-recipient-name { padding-inline-end: 0; }
html body .phone #transfer-amount #selected-recipient .selected-recipient-action { position: static; align-self: center; font: 600 12px/20px var(--biz-font-semibold) !important; color: var(--ui-ink); }
html body .phone #selected-recipient-number { grid-column: auto; font-size: 14px !important; }

html body .phone #transfer-amount-help { margin: -8px var(--biz-field-copy-inset, 20px) 16px; color: var(--ui-muted); font: 400 12px/20px var(--biz-font-regular); }
html body .phone :is(#transfer-amount-help, #route-reason)[hidden] { display: none !important; }

/* Card authorization uses the shared modal shell and a single form rhythm. */
html body .phone .card-auth-sheet #card-auth-form { display: grid; gap: 16px; min-width: 0; }
html body .phone #card-auth-form > *, html body .phone #card-auth-form .card-auth-grid > * { margin-block: 0 !important; }
html body .phone .card-auth-sheet .card-auth-source { padding: 16px !important; grid-template-columns: max-content minmax(0, 1fr) auto; gap: 12px; background: var(--ui-surface) !important; }
html body .phone .card-auth-source > span { width: 40px; height: 40px; }
html body .phone .card-auth-source > div { gap: 4px; }
html body .phone .card-auth-source strong { font: 600 14px/24px var(--biz-font-semibold) !important; }
html body .phone .card-auth-source small { font: 400 12px/20px var(--biz-font-regular) !important; }
html body .phone .card-auth-source b { font: 600 16px/26px var(--biz-font-semibold) !important; }
html body .phone #card-auth-form .card-auth-grid { display: grid; grid-template-columns: minmax(80px, .7fr) minmax(0, 1.5fr); gap: 12px; align-items: start; }
html body .phone #card-auth-form .card-auth-expiry { display: block; border: 0; padding: 0; min-width: 0; }
html body .phone #card-auth-form :is(.field-control-label, .field > span, .card-auth-expiry > legend) { font: 500 14px/24px var(--biz-font-medium) !important; height: auto; margin-block: 0 8px !important; }
html body .phone #card-auth-form .card-auth-expiry-control { display: grid; grid-template-columns: minmax(0, 1fr) 8px minmax(0, 1fr) 44px; gap: 4px; padding-inline: 8px 4px !important; min-height: 56px !important; overflow: visible; }
html body .phone #card-auth-form .card-auth-expiry-control > label { height: 46px; }
html body .phone #card-auth-form .card-auth-expiry-control input { font: 400 16px/24px var(--biz-font-regular) !important; }
html body .phone #card-auth-form .card-auth-expiry-control > i { width: 8px; }
html body .phone #card-auth-form .card-auth-expiry-control > .biz-date-open { grid-column: 4; grid-row: 1; }
html body .phone #card-auth-form .card-auth-security { font: 400 12px/20px var(--biz-font-regular) !important; }
html body .phone #card-auth-form #fill-demo-card-auth { min-height: 44px; white-space: normal; font: 400 12px/20px var(--biz-font-regular) !important; }
@media (max-width: 360px) { html body .phone #card-auth-form .card-auth-grid { grid-template-columns: minmax(0, 1fr); } }

/* All transfer primary actions use the shared default text size. */
html body .phone :is(#screen-transfer, #destination-sheet, #transfer-details-sheet, #card-auth-sheet) .primary-button {
 font-size: var(--biz-text-body, 14px) !important;
 line-height: var(--biz-line-body, 24px) !important;
}
html body .phone :is(#screen-transfer, #destination-sheet, #transfer-details-sheet, #card-auth-sheet) .primary-button > :is(span, strong, b) {
 font-size: inherit !important; line-height: inherit !important;
}

/* Inline destination lookup retains context while awaiting the bank response. */
html body .phone #smart-destination-action { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: var(--biz-card-padding) !important; border-radius: var(--biz-radius-card) !important; background: var(--ui-surface) !important; border: var(--ui-card-stroke) solid var(--ui-card-line) !important; box-shadow: var(--biz-shadow-card) !important; }
html body .phone #smart-destination-icon { width: 40px; height: 40px; }
html body .phone #smart-destination-action .smart-destination-copy { min-width: 0; }
html body .phone #smart-destination-action .smart-destination-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; }
html body .phone #smart-destination-kind { font: 600 16px/26px var(--biz-font-semibold) !important; }
html body .phone #smart-destination-action .smart-destination-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
html body .phone #smart-destination-bank { font: 400 12px/20px var(--biz-font-regular) !important; color: var(--ui-muted); }
html body .phone #smart-destination-number { display: block; max-width: 100%; font: 400 14px/24px var(--biz-font-regular) !important; color: var(--ui-muted); white-space: normal; overflow-wrap: anywhere; }
html body .phone #smart-destination-action .smart-destination-cta { grid-column: 3; grid-row: 1; align-self: center; justify-self: end; display: flex; align-items: center; gap: 8px; min-height: 24px; font: 600 14px/24px var(--biz-font-semibold) !important; }
html body .phone #smart-destination-action .smart-destination-cta > span { display: inline !important; font: inherit !important; }
html body .phone #smart-destination-action[aria-busy="true"] { cursor: wait; }
html body .phone #smart-destination-action[aria-busy="true"] .smart-destination-cta { display: none; }
html body .phone #smart-destination-action [hidden] { display: none !important; }
html body .phone #destination-lookup-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

html body .phone #smart-destination-number { direction: ltr !important; unicode-bidi: isolate; text-align: start; font-variant-numeric: proportional-nums; letter-spacing: 0 !important; }
html body .phone .recipient-heading[hidden] { display: none !important; }

:where(.phone) .biz-icon-tile { display:inline-grid; place-items:center; flex:none; width:var(--biz-icon-tile-row); height:var(--biz-icon-tile-row); border-radius:var(--biz-icon-radius-row); }

/* Merchant workspace composes the approved directory, form and card families. */
html body .phone .bm-home-card { display:grid; gap:var(--biz-space-5); color:var(--ui-ink); }
html body .phone .bm-home-overview { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--biz-space-4); min-width:0; }
html body .phone .bm-home .biz-list-copy { min-width:0; }
html body .phone .bm-home .biz-list-description { color:var(--ui-muted); font:400 12px/24px var(--biz-font-regular); }
html body .phone .bm-home .biz-card-title { font:600 16px/26px var(--biz-font-semibold); }
html body .phone .bm-home .biz-list-title { font:600 14px/24px var(--biz-font-semibold); }
html body .phone .bm-home-amount { font:600 28px/40px var(--biz-font-semibold); }
html body .phone .bm-home-photos { display:flex; gap:var(--biz-space-2); max-width:100%; }
html body .phone .bm-home-photos img { display:block; width:56px; height:56px; object-fit:cover; border-radius:var(--biz-radius-inset); background:var(--ui-soft); }
html body .phone .bm-home-action { display:grid; grid-template-columns:max-content minmax(0,1fr) max-content; gap:var(--biz-icon-text-gap); align-items:center; width:100%; min-width:0; min-height:64px; padding:var(--biz-space-4) 0 0; border:0; border-top:1px solid var(--biz-divider-color,var(--biz-line)); border-radius:0; background:transparent; color:var(--ui-ink); text-align:start; cursor:pointer; }
html body .phone .bm-home .biz-icon-tile svg { display:block; width:24px; height:24px; }
html body .phone .bm-home-action > svg { width:16px; height:16px; color:var(--ui-muted); }
html body .phone .bm-home-empty { display:grid; grid-template-columns:max-content minmax(0,1fr); align-items:center; gap:var(--biz-icon-text-gap); }
html body .phone .bm-home .secondary-button { margin:0; }
html body .phone .bm-home button:focus-visible { outline:2px solid var(--ui-focus); outline-offset:3px; }
html body .phone .biz-divider-row { position:relative; --biz-row-divider-start:var(--biz-card-padding); }
html body .phone .biz-divider-row:not(:last-child)::after {
  --biz-divider-paint:1; content:""; position:absolute;
  inset-inline-start:var(--biz-row-divider-start); inset-inline-end:var(--biz-divider-inset,16px);
  inset-block-end:var(--biz-divider-layout-end,0px); height:var(--biz-divider-thickness,1px);
  background:var(--biz-divider-color,var(--biz-line));
  transform:translateY(var(--biz-divider-painted-shift,0px)); pointer-events:none;
}
html body .phone :is(.bm-root,.bm-business-entry) { color:var(--ui-ink); font:400 var(--biz-text-body)/var(--biz-line-body) var(--biz-font-regular); }
html body .phone :is(.bm-root,.bm-business-entry) :is(h2,h3,p) { margin:0; }
html body .phone :is(.bm-root,.bm-business-entry) :is(h2,h3,strong) { font-family:var(--biz-font-semibold); font-weight:600; }
html body .phone :is(.bm-root,.bm-business-entry) small { font:400 var(--biz-text-caption)/var(--biz-line-caption) var(--biz-font-regular); color:var(--ui-muted); }
html body .phone :is(.bm-root,.bm-business-entry) svg { width:var(--biz-icon-glyph); height:var(--biz-icon-glyph); flex:none; }
html body .phone .bm-root p { overflow-wrap:anywhere; }
html body .phone .bm-root .page-intro { margin:0 0 var(--biz-space-6); }
html body .phone .bm-root .page-intro h1 { font:600 var(--biz-text-title)/var(--biz-line-title) var(--biz-font-semibold); margin:0; color:var(--ui-ink); }
html body .phone .bm-root .page-intro > span { display:block; margin-top:var(--biz-title-gap); font:400 var(--biz-text-body)/var(--biz-line-body) var(--biz-font-regular); color:var(--ui-muted); }
html body .phone .bm-root .biz-card-title, html body .phone .bm-business-entry .biz-card-title { font:600 var(--biz-text-section)/26px var(--biz-font-semibold) !important; }
html body .phone .bm-root .biz-list-copy { min-width:0; gap:var(--biz-copy-gap); }
html body .phone .bm-root .biz-list-title { font:600 var(--biz-text-body)/var(--biz-line-body) var(--biz-font-semibold) !important; }
html body .phone .bm-root .biz-list-description { font:400 var(--biz-text-caption)/var(--biz-line-body) var(--biz-font-regular); }
html body .phone .bm-business-entry { margin-top:var(--biz-space-4); }
html body .phone :is(.bm-entry-main,.biz-service-entry) { display:grid; grid-template-columns:max-content minmax(0,1fr) max-content; gap:var(--biz-icon-text-gap); align-items:center; padding:0; width:100%; min-height:56px; border:0; background:transparent; color:var(--ui-ink); text-align:start; cursor:pointer; }
html body .phone :is(.bm-entry-main,.biz-service-entry) > svg { width:16px; height:16px; color:var(--ui-muted); }
html body .phone :is(.bm-entry-main,.biz-service-entry) .biz-list-description { font:400 12px/24px var(--biz-font-regular); }
html body .phone .bm-store-actions { display:flex; flex-wrap:wrap; gap:var(--biz-space-3); margin-top:var(--biz-space-4); }
html body .phone .bm-store-actions > button { flex:1 1 136px; }
html body .phone .bm-root :is(.primary-button,.secondary-button) { display:flex; align-items:center; justify-content:center; text-align:center; margin:0; font-family:var(--biz-font-semibold); font-weight:600; }
html body .phone .bm-root :is(.primary-button,.secondary-button) > span { font:inherit !important; }
html body .phone :is(.bm-root,.bm-business-entry) .biz-icon-tile > svg { display:block; width:24px; height:24px; }
html body .phone .bm-root .bm-image-empty { font:400 12px/20px var(--biz-font-regular); text-align:center; }
html body .phone .bm-store-heading { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:var(--biz-icon-text-gap); align-items:center; }
html body .phone :is(.bm-store-heading,.bm-entry-main,.biz-service-entry) > .biz-icon-tile { width:var(--biz-icon-tile-row); height:var(--biz-icon-tile-row); border-radius:var(--biz-icon-radius-row); }
html body .phone .bm-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin-block:var(--biz-space-6) var(--biz-space-4); }
html body .phone .bm-stats > div { display:grid; grid-template-rows:32px auto; gap:var(--biz-copy-gap); text-align:center; padding-inline:var(--biz-space-2); }
html body .phone .bm-stats > div + div { border-inline-start:1px solid var(--biz-divider-color,var(--biz-line)); }
html body .phone .bm-stats strong { font:600 24px/32px var(--biz-font-semibold); }
html body .phone .bm-stats span { color:var(--ui-muted); font:400 12px/20px var(--biz-font-regular); }
html body .phone .bm-root .bm-demo-note { font:400 12px/20px var(--biz-font-regular); color:var(--ui-muted); margin:var(--biz-space-3) var(--biz-field-copy-inset,20px) 0; }
html body .phone .bm-workspace { margin-top:var(--app-list-section-gap,48px); }
html body .phone .bm-root .bm-tabs { margin-block:0; }
html body .phone .bm-workspace > .bm-tabs + .bm-section-heading { margin-top:var(--biz-space-4); }
html body .phone .bm-root .bm-filters svg { width:14px; height:14px; flex-basis:14px; }
html body .phone .bm-root .bm-tabs > button { flex:1 1 0; font:500 14px/24px var(--biz-font-medium); }
html body .phone .bm-root .bm-tabs svg { width:20px; height:20px; }
html body .phone .bm-section-heading { display:flex; align-items:center; justify-content:space-between; gap:var(--biz-space-3); margin:var(--app-list-section-gap,48px) var(--biz-section-heading-inset,20px) var(--biz-space-2); }
html body .phone .bm-section-heading h2 { font:600 16px/26px var(--biz-font-semibold); }
html body .phone .bm-add.primary-button { display:grid; place-items:center; width:56px; min-width:56px; height:56px; min-height:56px !important; padding:0 !important; margin:0; border-radius:50% !important; line-height:0; }
html body .phone .bm-add svg { width:26px; height:26px; }
html body .phone .bm-search { margin-block:var(--biz-space-4) !important; }
html body .phone .bm-root .bm-product-row { grid-template-columns:max-content minmax(0,1fr) !important; gap:var(--biz-icon-text-gap); align-items:center; width:100%; min-height:112px; padding:var(--biz-space-4) var(--biz-card-padding); border:0; background:transparent; color:var(--ui-ink); text-align:start; --biz-row-divider-start:calc(var(--biz-card-padding) + 64px + var(--biz-icon-text-gap)); }
html body .phone .bm-product-price { font:600 14px/24px var(--biz-font-semibold); }
html body .phone .bm-root .bm-row-meta { display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; gap:4px 8px; min-width:0; }
html body .phone .bm-row-meta > small { line-height:24px; }
html body .phone .bm-art { display:grid; place-items:center; width:64px; height:64px; flex:none; border-radius:var(--biz-radius-inset); color:var(--ui-muted); background:var(--ui-soft); overflow:hidden; }
html body .phone .bm-art img { width:100%; height:100%; object-fit:cover; }
html body .phone .bm-badge { display:inline-flex; align-items:center; width:fit-content; max-width:100%; padding:2px 8px; border-radius:var(--biz-tag-radius,8px); background:var(--ui-soft); color:var(--ui-muted); font:400 12px/20px var(--biz-font-regular); white-space:normal; text-align:start; }
html body .phone .bm-badge[data-status="published"] { color:var(--ec-success); background:var(--ec-success-soft); }
html body .phone .bm-badge:is([data-status="review"],[data-status="needs-edit"]) { color:var(--ec-warning); background:var(--ec-warning-soft); }
html body .phone .bm-empty { display:grid; gap:var(--biz-space-3); justify-items:start; }
html body .phone .bm-empty p { color:var(--ui-muted); }
html body .phone :is(.bm-root,.bm-business-entry) :is(button,a):focus-visible { outline:2px solid var(--ui-focus); outline-offset:3px; }
html body .phone .bm-root button { cursor:pointer; }
html body .phone :is(.bm-sheet-content,.bm-sheet-content form,.bm-form-card) { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--biz-space-4); min-width:0; }
html body .phone .bm-sheet-content { padding:0; }
html body .phone .bm-sheet-content .bm-demo-note { margin:0; }
html body .phone .bm-sheet-content .biz-field { margin:0 !important; }
html body .phone .bm-root .field .biz-field-control { display:flex; }
html body .phone .bm-root .biz-field-control input[type="url"] { direction:ltr !important; text-align:left !important; }
html body .phone .bm-root .biz-field-control input[type="url"]::placeholder { direction:ltr; text-align:left; }
html body .phone .bm-root .biz-field-control textarea { min-height:96px; padding-block:var(--biz-space-2) !important; resize:vertical; }
html body .phone .bm-root .biz-field-control > .biz-money-unit { flex:none; color:var(--ui-muted); }
html body .phone .bm-root .biz-field input[data-amount-input] { flex:1 1 0; min-width:0; }
html body .phone .bm-root .field > small:empty { display:none; }
html body .phone .bm-product-summary { display:flex; gap:var(--biz-icon-text-gap); align-items:center; padding-inline:var(--biz-card-padding); }
html body .phone .bm-final-price { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px; padding-top:var(--biz-space-4); border-top:1px solid var(--biz-divider-color,var(--biz-line)); color:var(--ui-muted); }
html body .phone #bm-final-price { color:var(--ui-ink); font:600 20px/32px var(--biz-font-semibold); }
html body .phone .bm-form-actions { display:grid; gap:var(--biz-space-4); }
html body .phone .bm-root .primary-button > span { font:inherit !important; color:inherit; }
html body .phone .bm-review-note { padding:var(--biz-space-4); border-radius:var(--biz-radius-inset); color:var(--ec-warning); background:var(--ec-warning-soft); font:400 14px/24px var(--biz-font-regular); }
html body .phone :is(.bm-image-field,.biz-image-field) { display:grid; min-width:0; gap:8px; }
html body .phone :is(.bm-image-field,.biz-image-field) > .field-control-label { margin:0 var(--biz-field-copy-inset,20px); }
html body .phone :is(.bm-image-field,.biz-image-field) > .field-help { margin:0 var(--biz-field-copy-inset,20px); font:400 12px/20px var(--biz-font-regular); }
html body .phone :is(.bm-file-picker,.biz-file-picker) { position:relative; display:grid; grid-template-columns:max-content minmax(0,1fr) max-content; align-items:center; gap:var(--biz-icon-text-gap); min-height:80px; padding:var(--biz-space-4); background:var(--ui-soft); border-radius:var(--biz-radius-inset); cursor:pointer; }
html body .phone :is(.bm-file-picker,.biz-file-picker) strong { font:600 14px/24px var(--biz-font-semibold); }
html body .phone :is(.bm-file-picker,.biz-file-picker) input[type="file"] { position:absolute; inset:0; width:100%; height:100% !important; min-height:0; opacity:0; cursor:pointer; z-index:1; font:400 16px/24px var(--biz-font-regular); }
html body .phone :is(.bm-file-picker,.biz-file-picker):focus-within { outline:2px solid var(--ui-focus); outline-offset:3px; }
html body .phone :is(#bm-image-preview,.biz-image-preview):empty { display:none; }
html body .phone :is(#bm-image-preview,.biz-image-preview) img { width:96px; height:96px; object-fit:cover; border-radius:var(--biz-radius-inset); }
html body .phone .bm-store-identity { padding-inline:var(--biz-card-padding); }
html body .phone .bm-plans { min-width:0; border:0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--biz-space-3); }
html body .phone .bm-plans legend { margin-inline:var(--biz-field-copy-inset,20px); padding-bottom:8px; }
html body .phone .bm-plans label { display:flex; gap:8px; align-items:center; min-height:56px; padding:12px; border-radius:var(--biz-radius-inset); background:var(--ui-soft); }
html body .phone .bm-plans label:focus-within { outline:2px solid var(--ui-focus); outline-offset:2px; }
html body .phone .bm-plans label > span { font:400 14px/24px var(--biz-font-regular); }
html body .phone .bm-plans input { flex:none; width:20px; height:20px; accent-color:var(--ui-focus); }
html body .phone .bm-plans > small { grid-column:1 / -1; color:var(--biz-danger); margin-inline:var(--biz-field-copy-inset,20px); }
html body .phone .bm-plans > small:empty { display:none; }
html body .phone .bm-preview-hero { display:grid; gap:var(--biz-space-3); justify-items:start; }
html body .phone .bm-preview-hero > span,html body .phone .bm-preview-hero p { color:var(--ui-muted); }
html body .phone .bm-plan-chips { display:flex; flex-wrap:wrap; gap:8px; }
html body .phone .bm-plan-chips span { border-radius:var(--biz-tag-radius,8px); background:var(--ui-soft); padding:2px 8px; font:400 12px/20px var(--biz-font-regular); }
html body .phone .bm-preview-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--biz-space-4); }
html body .phone .bm-preview-product { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:var(--biz-space-4); align-items:start; }
html body .phone .bm-preview-product .bm-art { width:64px; height:64px; border-radius:var(--biz-radius-inset); }
html body .phone .bm-preview-product .bm-preview-copy { display:grid; gap:var(--biz-copy-gap); min-width:0; }
html body .phone .bm-preview-product h3 { font:600 16px/26px var(--biz-font-semibold); }
html body .phone .bm-preview-product del { color:var(--ui-muted); font:400 12px/20px var(--biz-font-regular); }
html body .phone .bm-preview-product > button { grid-column:1 / -1; width:100%; }
html body .phone .bm-preview-detail { display:grid; justify-items:start; gap:var(--biz-space-4); }
html body .phone .bm-preview-detail .bm-art { width:100%; height:auto; aspect-ratio:1; border-radius:var(--biz-radius-inset); }
html body .phone .bm-preview-detail > strong { font:600 24px/32px var(--biz-font-semibold); }
html body .phone .bm-address-card { display:grid; gap:12px; }
html body .phone .bm-root .bm-external { text-decoration:none; width:100%; }
html body .phone .bm-sales-total { margin-top:var(--biz-space-4); display:grid; gap:var(--biz-space-2); }
html body .phone .bm-sales-total > span,html body .phone .bm-sales-total p { color:var(--ui-muted); font:400 14px/24px var(--biz-font-regular); }
html body .phone .bm-sales-total > strong { font:600 var(--biz-text-display)/var(--biz-line-display) var(--biz-font-semibold); }
html body .phone .bm-sale-row { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:var(--biz-space-3); width:100%; border:0; background:transparent; color:var(--ui-ink); padding:var(--biz-space-4) var(--biz-card-padding); text-align:start; }
html body .phone .bm-sale-row .biz-list-copy > strong { font:600 14px/24px var(--biz-font-semibold); }
html body .phone .bm-sale-row > strong { font:600 16px/26px var(--biz-font-semibold); }
html body .phone .bm-facts { margin-top:var(--biz-space-4); }
html body .phone .bm-help-list { margin:0; }
html body .phone .bm-help-list strong { font-family:var(--biz-font-semibold) !important; font-weight:600; }
html body .phone .bm-help-list small { line-height:24px; }
html body .phone .bm-root .field-error { color:var(--biz-danger); }
html body .phone #bm-form-error { padding:16px; border-radius:var(--biz-radius-inset); font:400 12px/20px var(--biz-font-regular); color:var(--biz-danger); background:var(--biz-danger-soft); }
html body .phone .bm-root [hidden] { display:none !important; }
@media(max-width:360px) {
  html body .phone .bm-product-row { grid-template-columns:max-content minmax(0,1fr) !important; }
  html body .phone .bm-plans { grid-template-columns:minmax(0,1fr); }
}

/* Trade workflows reuse shared surfaces, typography, forms and sheet behavior. */
html body .phone .trade-root { color:var(--ui-ink); }
html body .phone .trade-stack { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; min-width:0; }
html body .phone .trade-root :is(h2,p,ol) { margin:0; }
html body .phone .trade-root :is(p,small) { font-family:var(--biz-font-regular); }
html body .phone .trade-root p { font-size:14px; line-height:24px; }
html body .phone .trade-root small { font-size:12px; line-height:24px; color:var(--ui-muted); }
html body .phone .trade-root strong { font-family:var(--biz-font-semibold); font-weight:600; }
html body .phone :where(.trade-root) svg { width:20px; height:20px; flex:none; }
html body .phone .trade-root { font:400 var(--biz-text-body)/var(--biz-line-body) var(--biz-font-regular); }
html body .phone .trade-root .biz-list-copy { min-width:0; }
html body .phone .trade-root .biz-list-copy > strong:not(.biz-card-title) { font:600 16px/26px var(--biz-font-semibold)!important; }
html body .phone .trade-root .biz-icon-tile > svg { width:24px; height:24px; }
html body .phone .trade-root .biz-card-title { font:600 16px/26px var(--biz-font-semibold)!important; }
html body .phone .trade-root .biz-list-description { font:400 12px/24px var(--biz-font-regular)!important; color:var(--ui-muted); }
html body .phone .trade-text-action { display:inline-flex; align-items:center; gap:8px; flex:none; min-height:48px; padding:0; border:0; background:transparent; color:var(--ui-primary); font:500 12px/24px var(--biz-font-medium); cursor:pointer; }
html body .phone .trade-text-action > svg { width:16px; height:16px; }
html body .phone .trade-view-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0 0 24px; }
html body .phone .trade-view-tabs > button { min-width:0; min-height:48px; padding:8px 4px; font:600 14px/24px var(--biz-font-semibold); }
html body .phone .trade-root .scf-case-filters [data-trade-tone="info"] { --scf-tag-ink:var(--scf-tag-info); --scf-tag-surface:var(--scf-tag-info-soft); }
html body .phone .trade-root .scf-case-filters [data-trade-tone="warning"] { --scf-tag-ink:var(--scf-tag-warning); --scf-tag-surface:var(--scf-tag-warning-soft); }
html body .phone .trade-root .scf-case-filters [data-trade-tone="success"] { --scf-tag-ink:var(--scf-tag-success); --scf-tag-surface:var(--scf-tag-success-soft); }
html body .phone .trade-root .scf-case-filters { margin-top:16px; }
html body .phone .trade-root .scf-case-filters button > svg { width:14px; height:14px; }
html body .phone .trade-root .scf-case-row-main { grid-template-columns:minmax(0,1fr); padding:16px var(--biz-card-padding) 0; }
html body .phone .trade-root .scf-case-row > header { padding:var(--biz-card-padding) var(--biz-card-padding) 0; }
html body .phone .trade-root .scf-case-row > footer { padding:12px var(--biz-card-padding); font:500 12px/24px var(--biz-font-medium); }
html body .phone .trade-root .scf-case-row > footer svg { width:16px; height:16px; }
html body .phone .trade-case-value { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px 12px; padding:16px var(--biz-card-padding); }
html body .phone .trade-root .page-intro { margin-bottom:24px; }
html body .phone .trade-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin:0 var(--biz-section-heading-inset,20px) 8px; }
html body .phone .trade-heading h2 { font:600 16px/26px var(--biz-font-semibold); }
html body .phone .trade-row-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 12px; min-width:0; }
html body .phone .trade-row-meta { display:flex; flex-wrap:wrap; gap:4px 8px; align-items:center; }
html body .phone .trade-muted { color:var(--ui-muted); font:400 14px/24px var(--biz-font-regular); }
html body .phone .trade-list-space { margin-top:16px; }

html body .phone .trade-money { font:600 24px/32px var(--biz-font-semibold); }
html body .phone .trade-display { font:600 32px/40px var(--biz-font-semibold); }
html body .phone .trade-root .trade-list-row { position:relative; display:grid; grid-template-columns:max-content minmax(0,1fr); align-items:center; gap:12px; padding:16px var(--biz-card-padding); width:100%; border:0; border-radius:0; color:var(--ui-ink); background:transparent; box-shadow:none; text-align:start; min-width:0; }
html body .phone .trade-list-row > .biz-list-copy:only-child { grid-column:1/-1; }

html body .phone .trade-list-row strong { font:600 16px/26px var(--biz-font-semibold); }
html body .phone .trade-list-row .biz-icon-tile { width:40px; height:40px; }
html body .phone .trade-list-row:not(:last-child)::after { content:""; position:absolute; height:1px; inset-inline:var(--biz-card-padding); bottom:0; background:var(--biz-divider-color,var(--biz-line)); }
html body .phone .trade-list-row.biz-icon-text-row:not(:last-child)::after { inset-inline-start:calc(var(--biz-card-padding) + 52px); }
html body .phone .trade-badge { display:inline-flex; width:fit-content; padding:2px 8px; border-radius:8px; font:400 12px/20px var(--biz-font-regular); color:var(--ui-muted); background:var(--ui-soft); }
html body .phone .trade-badge[data-tone="success"] { background:var(--biz-tile-green-soft); color:var(--biz-tile-green); }
html body .phone .trade-badge[data-tone="info"] { background:var(--biz-tile-blue-soft); color:var(--biz-tile-blue); }
html body .phone .trade-badge[data-tone="warning"] { background:var(--biz-tile-orange-soft); color:var(--biz-tile-orange); }
html body .phone .trade-empty { display:grid; gap:12px; justify-items:start; color:var(--ui-muted); }
html body .phone .trade-add.primary-button { display:grid; place-items:center; width:56px; min-width:56px; height:56px; padding:0!important; border-radius:50%!important; }
html body .phone .trade-add svg { width:24px; height:24px; }

/* Layout containers own action spacing; legacy secondary margins break equal-height rows. */
html body .phone .trade-root :is(.secondary-button,.primary-button) { box-sizing:border-box; margin:0; white-space:normal; }
html body .phone .trade-root :is(.secondary-button,.primary-button):not(.trade-add) { min-height:var(--biz-action-height,52px); height:auto; }
html body .phone .trade-root button:focus-visible { outline:2px solid var(--ui-focus); outline-offset:3px; }
html body .phone .trade-sheet-body { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; min-width:0; padding:0; }
html body .phone .trade-root .biz-field { margin:0!important; }
html body .phone .trade-root .biz-field-control { display:flex; }
html body .phone .trade-root .biz-field-control > input { min-width:0; flex:1; }
html body .phone .trade-root .biz-field-control > .biz-money-unit { flex:none; }
html body .phone .trade-root .field-help:empty { display:none; }
html body .phone .trade-form-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
html body .phone .trade-check { display:flex; align-items:flex-start; gap:12px; padding:12px 0; font:400 14px/24px var(--biz-font-regular); }
html body .phone .trade-check input { width:24px; height:24px; flex:none; accent-color:var(--ui-primary); }
html body .phone .trade-invoice-choice { display:flex; gap:12px; align-items:flex-start; cursor:pointer; }
html body .phone .trade-invoice-choice input { width:24px; height:24px; flex:none; margin-top:4px; accent-color:var(--ui-primary); }
html body .phone .trade-invoice-choice:has(input:checked) { outline:2px solid var(--ui-focus); outline-offset:-2px; }

html body .phone .trade-warning { color:var(--biz-tile-orange)!important; }
html body .phone .trade-demo { padding:16px; border-radius:16px; background:var(--ui-soft); }
html body .phone .trade-root summary { min-height:48px; cursor:pointer; font:500 14px/24px var(--biz-font-medium); padding-block:12px; }
html body .phone .trade-history { border-top:1px solid var(--biz-divider-color,var(--biz-line)); }
html body .phone .trade-events { display:grid; gap:16px; padding-inline-start:24px; }
html body .phone .trade-events li > * { display:block; }
html body .phone .trade-events li { display:grid; gap:4px; }
html body .phone .trade-events li > strong { font:600 14px/24px var(--biz-font-semibold); }
html body .phone .trade-events li > small { font:400 12px/20px var(--biz-font-regular); }
html body .phone .trade-steps { list-style:none; padding:0; display:grid; gap:16px; }
html body .phone .trade-steps li { position:relative; display:grid; grid-template-columns:var(--biz-step-size) minmax(0,1fr); gap:12px; align-items:start; padding:0!important; margin:0; min-height:var(--biz-step-size); }
html body .phone .trade-steps li:not(:last-child)::before { content:""; position:absolute; top:var(--biz-step-size); bottom:-16px; inset-inline-start:calc((var(--biz-step-size) - 1px) / 2); width:1px; background:var(--biz-divider-color,var(--biz-line)); }
html body .phone .trade-steps li > div { display:grid; gap:4px; }
html body .phone .trade-steps strong { font:600 14px/24px var(--biz-font-semibold)!important; }
html body .phone .trade-steps small { margin:0!important; font:400 12px/20px var(--biz-font-regular)!important; }
html body .phone .trade-steps .biz-step-marker[data-done="true"] { color:var(--biz-tile-green); background:var(--biz-tile-green-soft); }
html body .phone #trade-error { color:var(--biz-tile-red); font:400 14px/24px var(--biz-font-regular); }
@media(max-width:360px) { html body .phone .trade-form-pair { grid-template-columns:minmax(0,1fr); } html body .phone .trade-display { font-size:28px; } }

/* Each financial value inherits an explicit role, never the generic small span. */
html body .phone .trade-root .trade-row-amount,
html body .phone .trade-root .biz-fact-list dd:has(.biz-money) { font:600 16px/26px var(--biz-font-semibold)!important; color:var(--ui-ink); }
html body .phone .trade-root .biz-fact-list dt { font:400 14px/24px var(--biz-font-regular)!important; }
html body .phone .trade-root .biz-fact-list dd { min-width:0; max-width:100%; overflow-wrap:anywhere; font:500 14px/24px var(--biz-font-medium); }
html body .phone .trade-root .biz-fact-list > div:first-child { padding-top:0; }
html body .phone .trade-root .biz-fact-list > div:last-child { padding-bottom:0; }
html body .phone .trade-root .biz-fact-list > div { min-height:0; gap:8px 16px; }
html body .phone .trade-amount-summary { display:grid; gap:8px; min-width:0; }
html body .phone .trade-amount-summary > span { font:400 14px/24px var(--biz-font-regular)!important; color:var(--ui-muted); }
html body .phone .trade-amount-summary + .biz-fact-list { padding-top:16px; border-top:1px solid var(--biz-divider-color,var(--biz-line)); }
html body .phone .trade-total { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px 16px; padding:16px var(--biz-card-padding); border-radius:var(--biz-radius-inset); background:var(--ui-soft); }
html body .phone .trade-total > span { font:400 14px/24px var(--biz-font-regular)!important; }
html body .phone .trade-total > strong { font:600 20px/32px var(--biz-font-semibold)!important; }
html body .phone .trade-document-link { display:flex; align-items:center; gap:12px; min-width:0; width:100%; padding:0; border:0; background:transparent; color:var(--ui-ink); text-align:start; }
html body .phone .trade-document-link > .biz-list-copy { flex:1; }
html body .phone .trade-document-link > svg { width:16px; height:16px; }
html body .phone .trade-document-link .trade-link-label { font:500 14px/24px var(--biz-font-medium)!important; color:var(--ui-primary); margin-top:4px; }
html body .phone .trade-document-link + .trade-document-link { padding-top:16px; border-top:1px solid var(--biz-divider-color,var(--biz-line)); }
html body .phone .trade-root .trade-list-row .biz-list-copy > small,
html body .phone .trade-root .trade-invoice-choice .biz-list-copy > small { font:400 12px/24px var(--biz-font-regular)!important; }
html body .phone .trade-root .trade-row-meta { margin-top:4px; }
html body .phone .trade-root .trade-order-actions:empty { display:none; }
html body .phone .trade-root .trade-order-actions { margin:0; }
html body .phone .trade-root .trade-history > .trade-stack { padding-block:8px 16px; }
html body .phone .trade-root .trade-invoice-choice:has(input:disabled) { cursor:default; }
html body .phone .trade-root .trade-list .trade-list-row { padding-inline:0; }
html body .phone .trade-root .trade-list:not(.biz-card-list) .trade-list-row::after { inset-inline:0; inset-inline-start:52px; }
html body .phone .trade-root .trade-list.biz-card-list .trade-list-row { padding-inline:var(--biz-card-padding); }
html body .phone .trade-root .trade-check { margin:0; }
html body .phone .trade-root .trade-check > span { font:400 14px/24px var(--biz-font-regular)!important; }
html body .phone .trade-root .trade-check input { margin:0; }
html body .phone .trade-root > header h2 { font-weight:600!important; }

/* Approved shared success illustration: 03-success-stamp Lottie with brand blue. */
html body .phone :is(.activation-success-mark, #transfer-success > .success-mark, #customer-operation-mark.success) {
  position: relative !important;
  display: block !important;
  width: 184px !important;
  height: 184px !important;
  max-width: 100%;
  padding: 0 !important;
  margin-inline: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  animation: none !important;
  transform: none !important;
}
html body .phone :is(.activation-success-mark, #transfer-success > .success-mark, #customer-operation-mark.success) > :not(.biz-success-player),
html body .phone :is(.activation-success-mark, #transfer-success > .success-mark, #customer-operation-mark.success)::before,
html body .phone :is(.activation-success-mark, #transfer-success > .success-mark, #customer-operation-mark.success)::after { display: none !important; }
html body .phone .biz-success-player { display: none; }
html body .phone [data-success-ready="true"] > .biz-success-player {
  display: block !important;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
html body .phone [data-success-ready="true"] > .biz-success-player > svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

/* Lottie owns its path strokes; do not inherit the app's SVG icon outline. */
html body .phone .biz-success-player > svg {
  stroke: none !important;
  stroke-width: 0 !important;
  fill: none;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

html body .phone .trade-money :is(.biz-money,.biz-money-number) { font:600 24px/32px var(--biz-font-semibold)!important; }
html body .phone .trade-display :is(.biz-money,.biz-money-number) { font:600 32px/40px var(--biz-font-semibold)!important; }
html body .phone .trade-root .biz-money-unit { font-size:12px!important; }
@media(max-width:360px){ html body .phone .trade-display :is(.biz-money,.biz-money-number){font-size:28px!important;} }

/* Trade tours use the opening tour components; only the launcher list is new. */
html body .phone #next-business-scf-entry[hidden] { display:none!important; }
html body .phone .trade-tour-options { display:grid; gap:12px; margin-block:16px; }
html body .phone .trade-tour-options > button { display:flex;flex-direction:column;gap:4px;text-align:start;padding:var(--biz-card-padding);border:var(--biz-card-border,0);border-radius:var(--biz-radius-card);background:var(--ui-surface);color:var(--ui-ink); }
html body .phone .trade-tour-options strong { font:600 16px/26px var(--biz-font-semibold); }
html body .phone .trade-tour-options small { font:400 12px/24px var(--biz-font-regular);color:var(--ui-muted); }
.trade-guide-resume { position:fixed;bottom:12px;left:12px;z-index:1301;min-height:48px;padding:8px 16px;border:0;border-radius:16px;background:var(--ui-primary,#0056f5);color:white;font:500 12px/24px "Vazirmatn Medium",sans-serif; }
.trade-guide-resume[hidden] { display:none!important; }
#trade-guide-tooltip { max-height:calc(100dvh - 24px);overflow:auto; }
#trade-guide-tooltip [data-guide-title] { font:600 14px/24px "Vazirmatn SemiBold",sans-serif; }
#trade-guide-tooltip [data-guide-copy] { font:400 12px/24px "Vazirmatn Regular",sans-serif; }
#trade-guide-tooltip > footer[hidden] { display:none!important; }

/* Customer trade hierarchy, including the shared sales list and its guide. */
html body .phone #screen-invoices .invoice-sales-section > header { align-items:center; gap:12px; }
html body .phone #screen-invoices .invoice-sales-section > header > .biz-list-copy { flex:1; min-width:0; }
html body .phone #screen-invoices .invoice-sales-section > header h2 { font:600 16px/26px var(--biz-font-semibold)!important; }
html body .phone #screen-invoices .invoice-sales-section > header small { font:400 12px/24px var(--biz-font-regular)!important; }
html body .phone #screen-invoices .invoice-sales-section > header > button { flex:none; min-height:48px; max-width:112px; font:500 12px/24px var(--biz-font-medium)!important; }
html body .phone #screen-invoices .business-row-list > button { grid-template-columns:40px minmax(0,1fr); gap:4px 12px; }
html body .phone #screen-invoices .business-row-list > button > .row-symbol { grid-row:1 / 3; width:40px; height:40px; align-self:center; }
html body .phone #screen-invoices .business-row-list > button > span:not(.row-symbol) { min-width:0; grid-column:2; }
html body .phone #screen-invoices .business-row-list > button > span > strong { font:600 16px/26px var(--biz-font-semibold)!important; }
html body .phone #screen-invoices .business-row-list > button > b { grid-column:2; justify-self:start; font:600 16px/26px var(--biz-font-semibold)!important; }
html body .phone #screen-invoices .business-primary-action strong { font:600 16px/26px var(--biz-font-semibold)!important; }
#trade-guide-tooltip.guided-tour-tooltip > header > span { font:600 14px/24px "Vazirmatn SemiBold",sans-serif; }
#trade-guide-tooltip.guided-tour-tooltip > header > small { font:400 12px/20px "Vazirmatn Regular",sans-serif; }
#trade-guide-tooltip.guided-tour-tooltip > footer > span { font:400 12px/20px "Vazirmatn Regular",sans-serif; }
#trade-guide-tooltip.guided-tour-tooltip > footer > button { min-height:48px; font:500 14px/24px "Vazirmatn Medium",sans-serif; }
#trade-guide-progress.guided-tour-progress :is(.guided-tour-progress-header strong,.guided-tour-goal strong) { font:600 16px/26px "Vazirmatn SemiBold",sans-serif; }
#trade-guide-progress.guided-tour-progress :is(small,[data-guide-count]) { font:400 12px/20px "Vazirmatn Regular",sans-serif; }
#trade-guide-progress.guided-tour-progress .guided-tour-progress-list strong { font:600 14px/24px "Vazirmatn SemiBold",sans-serif; }
#trade-guide-progress.guided-tour-progress .guided-tour-progress-list small { margin-top:4px; }
#trade-guide-progress.guided-tour-progress .guided-tour-progress-footer button { min-height:44px; font:500 14px/24px "Vazirmatn Medium",sans-serif; }

/* Real camera family: the outline is a functional positioning guide. */
html body .phone .real-face-capture .face-camera { height:clamp(160px,calc(100dvh - 540px - var(--app-safe-top,0px) - var(--app-safe-bottom,0px)),256px) !important; min-height:160px; max-height:256px; aspect-ratio:auto !important; background:#121923 !important; isolation:isolate; }
html body .phone .real-face-capture .face-camera::before,html body .phone .real-face-capture .face-camera::after { display:none; }
html body .phone .real-face-capture .face-live-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; transform:scaleX(-1); }
html body .phone .real-face-capture .face-live-oval { position:absolute; left:50%; top:49%; width:auto; height:86%; aspect-ratio:3/4; transform:translate(-50%,-50%); box-sizing:border-box; border:3px solid #fff; border-radius:50%; box-shadow:0 0 0 100vmax #0006; pointer-events:none; }
html body .phone .real-face-capture .face-live-oval[data-valid="true"] { border-color:#73e6a7; }
html body .phone .real-face-capture .face-live-badge { position:absolute; top:8px; left:8px; border-radius:12px; padding:4px 8px; background:#111d; color:#fff; font-size:12px; line-height:20px; }
html body .phone .real-face-capture .face-live-guide { position:absolute; bottom:8px; inset-inline:8px; padding:4px 8px; border-radius:12px; background:#111d; color:#fff; font-size:12px; line-height:20px; text-align:center; direction:rtl; }
html body .phone .real-face-capture[data-capture-state="recording"] .face-live-badge { background:#8c1523; }
html body .phone .real-face-capture[data-capture-state="review"] .face-live-video { transform:none; object-fit:contain; }
html body .phone .real-face-capture[data-capture-state="review"] .face-live-oval,html body .phone .real-face-capture[data-capture-state="review"] .face-live-guide,html body .phone .real-face-capture[data-capture-state="review"] .face-live-badge { display:none; }
html body .phone .real-face-capture ~ .liveness-points > span[data-state="active"] { outline:2px solid var(--biz-brand,#0056f5); outline-offset:-2px; color:var(--text); }
html body .phone .real-face-capture ~ .liveness-points > span[data-state="done"] { color:var(--biz-tile-green,#00804d); background:var(--biz-tile-green-soft,#e7f6ec); }
html body .phone .face-access-help { display:block; margin-block:12px; font-size:14px; line-height:24px; }
html body .phone .face-access-help[hidden] { display:none; }
html body .phone .real-face-capture { flex-shrink:0; }
html body .phone .real-face-capture ~ .liveness-points,html body .phone .real-face-capture ~ .face-privacy,html body .phone .face-access-help { flex-shrink:0; }
html body .phone .real-face-capture .face-scan-status strong { color:var(--ink); font-size:16px; line-height:26px; }
html body .phone .real-face-capture .face-scan-status small { color:var(--muted); font-size:14px; line-height:24px; }
html body .phone .real-face-capture ~ .liveness-points > span[data-state="active"] { color:var(--ink); }

/* Shared compact camera-step layout; preserve scroll for errors, disclosure and zoom. */
html body .phone #login-screen .face-capture-step { padding-top:12px; padding-bottom:calc(12px + var(--app-safe-bottom,0px)); }
html body .phone .face-capture-step .face-heading { margin:12px 0 !important; }
html body .phone .face-capture-step .real-face-capture { padding:8px 8px 12px !important; }
html body .phone .face-capture-step .face-scan-status { padding:8px 4px 0; }
html body .phone .face-capture-step .face-live-guide { display:none; }
html body .phone .face-capture-step .liveness-points { margin:12px 0; gap:8px; }
html body .phone .face-capture-step .liveness-points > span { padding:8px 4px !important; gap:6px; min-height:56px; font-size:12px !important; line-height:20px !important; }
html body .phone .face-capture-step .liveness-points b { flex:0 0 24px; width:24px !important; height:28px !important; font-size:12px !important; }
html body .phone .face-capture-step .face-privacy-details { display:block; margin:0 0 8px; padding:0 12px; font-size:12px; line-height:20px; }
html body .phone .face-capture-step .face-privacy-details summary { min-height:48px; display:list-item; align-content:center; cursor:pointer; }
html body .phone .face-capture-step .face-privacy-details > span { display:block; padding-bottom:12px; }
html body .phone .face-capture-step .login-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 8px; padding-top:4px; flex-shrink:0; }
html body .phone .face-capture-step .login-actions > button { grid-column:1 / -1; margin:0 !important; }
html body .phone .face-capture-step:has(.real-face-capture[data-capture-state="review"]) .login-actions > :is(.primary-button,.face-retake-button) { grid-column:auto; }
html body .phone .face-capture-step:has(.real-face-capture:is([data-capture-state="preparing"],[data-capture-state="countdown"],[data-capture-state="recording"])) .login-actions > .primary-button { display:none !important; }
html body .phone .face-capture-step .face-privacy-details { display:block !important; margin-top:0 !important; }
html body .phone .face-capture-step .face-privacy-details summary { width:100%; font:400 12px/20px var(--biz-font-regular); }
html body .phone .face-capture-step .face-privacy-details:not([open]) > span { display:none !important; }

/* Visible recording countdown and step acknowledgements share the camera surface. */
html body .phone .real-face-capture .face-countdown { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; background:#07101a66; color:white; font:600 14px/24px var(--biz-font-regular); }
html body .phone .real-face-capture .face-countdown-number { display:grid; place-items:center; width:80px; height:80px; border-radius:50%; background:#ffffffed; color:#12243c; font:600 48px/1 var(--biz-font-regular) !important; }
html body .phone .real-face-capture .face-feedback { display:block !important; position:absolute; bottom:8px; inset-inline:8px; width:fit-content; max-width:calc(100% - 16px); margin-inline:auto; padding:6px 12px; border-radius:12px; background:#06472e; color:#fff; font:600 14px/24px var(--biz-font-regular); text-align:center; }
html body .phone .real-face-capture :is(.face-countdown,.face-feedback)[hidden] { display:none !important; }
html body .phone .real-face-capture ~ .liveness-points > span[data-state="done"] b { background:var(--biz-tile-green,#00804d) !important; color:var(--biz-tile-green-soft,#e7f6ec) !important; }
html body .phone .real-face-capture ~ .liveness-points > span[data-state="active"] b { background:var(--biz-brand,#0056f5) !important; color:#fff !important; }

/* Cashbook: a compact overview, explicit creation and shared detail sheets. */
.cashbook-actions { display:flex; flex-wrap:wrap; align-items:stretch; gap:12px; margin-block:16px; }
.cashbook-actions > button { flex:1 1 140px; }
/* Cashbook uses the same trade list, circular add action and facts as purchases. */
.cashbook-muted,.cashbook-save-note { color:var(--ui-muted); font:400 12px/20px var(--biz-font-regular); }
html body .phone .cashbook-text-action { display:inline-flex; align-items:center; gap:8px; min-height:48px; padding:0; border:0; background:transparent; color:var(--ui-primary); font:500 14px/24px var(--biz-font-medium); cursor:pointer; }
html body .phone :is(.cashbook-entry,.cashbook-choice) { cursor:pointer; }
html body .phone :is(.cashbook-entry,.cashbook-choice) .biz-list-copy { overflow-wrap:anywhere; }
html body .phone .cashbook-disclosure-card > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:24px; padding:0; cursor:pointer; list-style:none; color:var(--ui-ink); font:600 14px/24px var(--biz-font-semibold); }
.cashbook-disclosure-card > summary::-webkit-details-marker { display:none; }
.cashbook-disclosure-card[open] > .trade-stack { margin-top:16px; }
html body .phone #cash-form .field-help:empty { display:none; }
html body .phone #cash-form .biz-image-preview:empty { display:none; }
.cashbook-empty { display:grid; justify-items:center; text-align:center; gap:12px; padding:24px 16px; color:var(--ui-muted); }
.cashbook-empty strong { color:var(--ui-ink); font:600 16px/26px var(--biz-font-semibold); }
.cashbook-empty p { margin:0; font:400 14px/24px var(--biz-font-regular); }
.cashbook-disclosure-card > p { margin-block:16px 0; }
.cashbook-disclosure-card p { color:var(--ui-muted); font:400 12px/20px var(--biz-font-regular); }
.cashbook-save-note { text-align:center; margin:0; }
#cashbook-root .biz-fact-list dd,#cashbook-sheet .biz-fact-list dd { overflow-wrap:anywhere; }
.cashbook-check { display:flex; align-items:center; gap:12px; min-height:48px; font-size:14px; line-height:24px; }
.cashbook-check input { width:20px; height:20px; flex:none; }
.cashbook-receipt { display:block; width:100%; max-height:360px; object-fit:contain; border-radius:16px; }
.cashbook-incoming { color:var(--biz-positive-amount); }
#cashbook-sheet summary { min-height:48px; padding-block:12px; overflow-wrap:anywhere; }
#cash-error { color:var(--ui-error,#b42318); line-height:24px; }
html body .phone .biz-file-picker > svg { width:20px; height:20px; }
html body .phone .biz-file-picker .biz-list-copy { min-width:0; overflow-wrap:anywhere; }
html body .phone .biz-file-picker [aria-invalid="true"] { opacity:0; }
html body .phone .biz-file-picker:has([aria-invalid="true"]) { outline:2px solid var(--ui-error,#b42318); outline-offset:2px; }

html body .phone .cashbook-incoming :is(.biz-money,.biz-money-number,.biz-money-unit) { color:var(--biz-positive-amount)!important; }
html body .phone .biz-file-picker input[type="file"] { font:400 16px/24px var(--biz-font-regular)!important; }

/* Shared service-overview cards: credit and cashbook keep one surface per group. */
.biz-overview-stack { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
html body .phone .biz-overview-heading { width:100%; min-width:0; }
html body .phone .biz-overview-heading > .biz-list-copy { min-width:0; }
html body .phone .biz-overview-heading > .biz-icon-tile { width:40px; height:40px; flex:none; }
html body .phone .biz-overview-footer { width:100%; min-height:48px; margin:0; border-inline:0; border-bottom:0; background:transparent; text-align:start; color:var(--ui-primary); }
.biz-overview-footer > svg { width:16px; height:16px; flex:none; }
.cashbook-visual-summary { width:100%; min-width:0; }
/* Two independent lengths on one common scale; labels carry the values, not percentages. */
.biz-comparison-bars { display:grid; gap:20px; width:100%; min-width:0; margin:0; padding:0; }
.biz-comparison-row { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 12px; min-width:0; }
.biz-comparison-label { color:var(--ui-muted); font:400 14px/24px var(--biz-font-regular); }
.biz-comparison-row > .trade-row-amount { margin:0; margin-inline-start:auto; text-align:end; }
.biz-comparison-track { flex:0 0 100%; height:8px; overflow:hidden; border-radius:999px; background:var(--ui-soft); }
.biz-comparison-track > span { display:block; width:var(--bar-size); height:100%; border-radius:inherit; background:var(--ec-score-blue); }
.biz-comparison-row[data-flow="out"] .biz-comparison-track > span { background:var(--ec-score-violet); }
@media(forced-colors:active) {
  .biz-comparison-track { outline:1px solid CanvasText; }
  .biz-comparison-track > span { background:Highlight; forced-color-adjust:none; }
  .biz-comparison-row[data-flow="out"] .biz-comparison-track > span { background:CanvasText; }
}
/* Compact overview rows retain the shared list typography and one card surface. */
.cashbook-preview-list { display:grid; width:100%; min-width:0; }
html body .phone .cashbook-preview-row { display:grid; grid-template-columns:minmax(0,1fr) max-content; align-items:center; gap:12px; padding-block:8px; min-width:0; }
.cashbook-preview-row + .cashbook-preview-row { border-top:1px solid var(--biz-divider-color,var(--biz-line)); }
html body .phone .cashbook-preview-copy > strong { font:600 14px/24px var(--biz-font-semibold)!important; overflow-wrap:anywhere; }
html body .phone .cashbook-preview-copy > small { font:400 12px/24px var(--biz-font-regular); color:var(--ui-muted); }
html body .phone .cashbook-preview-row > .trade-row-amount { font:600 16px/26px var(--biz-font-semibold); text-align:end; }
.cashbook-bank-stats { display:grid; width:100%; min-width:0; }
html body .phone .cashbook-bank-status { display:grid; grid-template-columns:40px minmax(0,1fr) max-content; align-items:center; gap:12px; padding-block:12px; }
.cashbook-bank-status + .cashbook-bank-status { border-top:1px solid var(--biz-divider-color,var(--biz-line)); }
html body .phone .cashbook-bank-status > .biz-icon-tile { width:40px; height:40px; }
html body .phone .cashbook-bank-status > span:not(.biz-icon-tile) { font:400 14px/24px var(--biz-font-regular); }
html body .phone .cashbook-bank-status > strong { font:600 24px/32px var(--biz-font-semibold)!important; color:var(--ui-ink); }
html body .phone .cashbook-total-count { display:flex; align-items:baseline; gap:4px; font:600 24px/32px var(--biz-font-semibold); }
html body .phone .cashbook-total-count > small { font:400 12px/24px var(--biz-font-regular); color:var(--ui-muted); }
@media(max-width:359px) {
  html body .phone .cashbook-preview-row { grid-template-columns:minmax(0,1fr); gap:4px; }
  html body .phone .cashbook-preview-row > .trade-row-amount { justify-self:end; }
}
.cashbook-sheet-heading { display:flex; align-items:center; gap:8px; min-width:0; }
.cashbook-sheet-heading h2 { min-width:0; }
#cash-list-error { color:var(--biz-tile-red); }

/* Cashbook day sections follow the statement header and shared financial rows. */
html body .phone .cashbook-day-group > header { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 12px; margin-bottom:8px; }
html body .phone .cashbook-day-group > header > strong { font:600 14px/24px var(--biz-font-semibold); }
html body .phone .cashbook-day-group > header > small { font:400 12px/24px var(--biz-font-regular); }
.cashbook-preview-day { display:grid; min-width:0; }
.cashbook-preview-day + .cashbook-preview-day { margin-top:16px; }
html body .phone .cashbook-preview-date { display:flex; align-items:center; gap:12px; color:var(--ui-muted); font:400 12px/24px var(--biz-font-regular); }
.cashbook-preview-date::after { content:""; flex:1; height:1px; background:var(--biz-divider-color,var(--biz-line)); }
.cashbook-preview-day .cashbook-preview-row { padding-block:8px; }
.cashbook-preview-day .cashbook-preview-row:last-child { padding-bottom:0; }
html body .phone .cashbook-filter-toolbar { display:flex; align-items:center; gap:8px; min-width:0; }
.cashbook-filter-toolbar > .cashbook-filter-controls { flex:1; min-width:0; }
html body .phone .cashbook-filter-toolbar .biz-status-filters { margin:0; }
html body .phone .cashbook-filter-toolbar .biz-status-filters button { flex:0 0 auto; padding-inline:16px; }
.cashbook-search svg { width:20px; height:20px; flex:none; }
.cashbook-search .biz-field-control { gap:8px; }
.cashbook-search svg { color:var(--ui-muted); }
.cashbook-applied-filters { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
html body .phone .cashbook-applied-filters button { display:flex; align-items:center; gap:8px; min-height:44px; max-width:100%; padding:8px 12px; border:0; border-radius:24px; background:var(--ui-soft); color:var(--ui-ink); font:400 12px/20px var(--biz-font-regular); }
.cashbook-applied-filters svg { width:16px; height:16px; flex:none; }
.cashbook-filter-section { margin:0; padding:0; border:0; min-width:0; }
html body .phone .cashbook-filter-section > legend { padding-inline:var(--biz-field-copy-inset,20px); margin-bottom:8px; font:500 14px/24px var(--biz-font-medium); }
html body .phone .cashbook-filter-section .biz-status-filters { flex-wrap:wrap; overflow:visible; gap:8px; margin:0; }
html body .phone .cashbook-filter-section .biz-status-filters button { flex:0 1 auto; padding-inline:16px; white-space:normal; }
.cashbook-date-range { margin-top:16px; }
.cashbook-filter-actions { display:grid; gap:8px; }
.cashbook-filter-actions .trade-text-action { justify-content:center; }

/* Credit-style page action and filter controls shared with the cashbook. */
html body .phone .biz-directory-intro { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; }
html body .phone .biz-directory-intro > .page-intro { margin:0; flex:1; min-width:0; }
html body .phone .biz-directory-intro > .trade-add { flex:0 0 56px; margin:0; }
html body .phone .biz-section-filter { position:relative; }
.cashbook-filter-dot { position:absolute; top:8px; inset-inline-end:8px; width:6px; height:6px; border-radius:50%; background:var(--ui-primary); }

/* A live summary inside the original service tile; retain the two-column grid. */
html body .phone .cashbook-live-tile { --biz-service-icon-title-gap:24px; }
html body .phone .cashbook-live-tile > .cashbook-tile-summary { display:flex; flex-direction:column; gap:0; width:100%; min-width:0; margin-block-start:4px; font:400 12px/24px var(--biz-font-regular); }
html body .phone .cashbook-live-tile .cashbook-tile-value { display:block; font:600 14px/24px var(--biz-font-semibold); color:var(--ui-ink); }
html body .phone .cashbook-live-tile .biz-money-unit { font-size:10px; }
html body .phone .cashbook-live-tile:focus-visible { outline:2px solid var(--ui-focus); outline-offset:3px; }

/* Forecast events keep the shared financial list surface and semantic icon palette. */
html body .phone .finance-forecast-events { display:grid; gap:8px; min-width:0; margin-top:var(--app-list-section-gap,48px); }
html body .phone .trade-root .finance-forecast-row { align-items:start; }
html body .phone .finance-forecast-row > .biz-icon-tile { margin-top:2px; }
html body .phone .finance-forecast-row .biz-list-title { overflow-wrap:anywhere; }
html body .phone .finance-forecast-row-footer { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 12px; margin-top:4px; min-width:0; }
html body .phone .finance-forecast-row-footer > .trade-row-amount { margin-inline-start:auto; text-align:end; font:600 16px/26px var(--biz-font-semibold); }
html body .phone .finance-forecast-excluded { margin-top:16px; }

/* Shared standalone list filters: separation from the introduction and results. */
html body .phone .biz-filter-controls { min-width:0; margin-top:16px; }
html body .phone .biz-filter-controls .biz-status-filters button { padding-inline:16px; font:500 14px/24px var(--biz-font-medium); }

/* Receiving identifiers: one readable value and an adjacent copy action. */
html body .phone .finance-receive-account > header { grid-template-columns:max-content minmax(0,1fr); gap:12px; }
html body .phone .finance-receive-account > header .biz-icon-tile { width:40px; height:40px; }
html body .phone .biz-identifier-panel { display:grid; grid-template-columns:minmax(0,1fr) max-content; align-items:center; gap:12px; padding:12px; border-radius:16px; background:var(--ui-soft); min-width:0; }
html body .phone .biz-identifier-panel .biz-list-copy { min-width:0; }
html body .phone .biz-identifier-value { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:0 5px; min-width:0; color:var(--ui-ink); font:500 14px/24px var(--biz-font-medium); letter-spacing:0; }
html body .phone .biz-identifier-value > span { white-space:nowrap; }
html body .phone .biz-identifier-copy { display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:50%; background:var(--ui-surface); color:var(--ui-primary); box-shadow:none; cursor:pointer; }
html body .phone .biz-identifier-copy > svg { width:20px; height:20px; }
html body .phone .finance-receive-pos-label { display:inline-flex; align-items:center; gap:8px; }
html body .phone .finance-receive-pos-label > svg { width:20px; height:20px; }

/* Rial inputs share an independent, live toman caption; validation keeps its own slot. */
html body .biz-amount-caption, html body .phone .biz-amount-caption {
  display:block; margin:8px var(--biz-field-copy-inset,20px) 0 !important;
  padding:0 !important; color:var(--ui-muted,var(--muted,#606a65));
  font:400 12px/20px var(--biz-font-regular,"Vazirmatn Regular",Tahoma,sans-serif) !important;
  text-align:start; direction:rtl; letter-spacing:0; overflow-wrap:anywhere;
}
html body .biz-amount-caption:empty { display:none !important; }
html body .biz-amount-caption + :is(.field-help,[data-field-error]):empty { display:none; }
