/* Reference design: Segoe UI, flat white cards, solid color icon tiles. */
:root {
  color-scheme: light;
  --background: #f1f1f1;
  --surface: #fff;
  --text: #000;
  --muted: #999;
  --blue: #008cff;
  --button: #40a7e3;
  --nav-active: #e9f5fb;
  --nav-height: 56px;
  --app-width: 480px;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  font-synthesis: none;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.connection-card, .notice-card, .live-controls, .admin-card { padding: 16px 18px; margin-bottom: 12px; }
.connection-card h2, .notice-card h2, .admin-card h2 { color: var(--blue); font-size: 15px; line-height: 22px; font-weight: 500; margin: 0 0 10px; }
.connection-card p { color: #666; }
.connection-status { padding: 20px 8px; color: #666; }
.notice-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.notice-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notice-heading h2 { margin: 0; }
.notice-close { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border: 0; border-radius: 50%; padding: 0; background: var(--nav-active); color: #238dc9; }
.notice-close .line-icon { width: 18px; height: 18px; }
.notice-card .notice-text { margin: 8px 0 0; }
.notice-backdrop { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; padding: 20px; background: #0005; }
.notice-dialog { width: 100%; max-width: 360px; max-height: calc(100% - 24px); overflow-y: auto; padding: 20px; border-radius: 24px; background: white; box-shadow: 0 12px 40px #0002; }
.notice-dialog h2 { margin: 0; color: var(--blue); font-size: 19px; line-height: 26px; font-weight: 600; }
.notice-dialog .notice-text { margin: 16px 0; color: #555; line-height: 23px; overflow-wrap: anywhere; }
.notice-ok { width: 100%; }
.record-destination { overflow-wrap: anywhere; font-size: 13px; color: #777; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; font-size: 13px; color: #666; min-width: 0; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #ddd; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--text); background: white; }
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid #40a7e366; border-color: var(--button); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.button-row .primary-button { margin-top: 0; }
.secondary-button, .danger-button { min-height: 38px; padding: 8px 14px; border: 0; border-radius: 20px; background: var(--nav-active); color: #238dc9; font-weight: 500; }
.danger-button { color: #cd5260; background: #fff0f1; }
.admin-navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 0 12px; margin-bottom: 8px; }
.admin-navigation button { min-width: 0; border: 0; border-radius: 20px; min-height: 40px; background: white; color: #777; padding: 7px 6px; overflow-wrap: anywhere; }
.admin-navigation button[aria-pressed="true"] { background: var(--nav-active); color: #238dc9; }
.admin-card { margin-top: 12px; }
.admin-card h3 { font-size: 14px; font-weight: 500; margin-top: 22px; }
.admin-record { border-top: 1px solid #eee; padding: 12px 0; }
.admin-record p { margin: 5px 0; overflow-wrap: anywhere; }
.admin-record-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.admin-stats { margin: 0; }
.admin-stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; }
.admin-stats dt { color: #777; }
.admin-stats dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.admin-activity-filters { margin: 12px 0 8px; }
.admin-activity-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 22px; }
.admin-activity-heading h3 { margin: 0; }
.admin-activity-filters [aria-pressed="true"] { background: var(--button); color: white; }
.admin-activity-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.admin-activity-stats > div { padding: 12px; border-radius: 12px; background: var(--background); }
.admin-activity-stats dt { color: var(--muted); font-size: 13px; }
.admin-activity-stats dd { margin: 5px 0 0; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.admin-activity-range, .admin-activity-note { color: var(--muted); font-size: 12px; line-height: 1.6; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th, .admin-table td { padding: 8px 6px; border-bottom: 1px solid #eee; font-weight: 400; white-space: nowrap; }
.admin-ledger { font-size: 12px; border-top: 1px solid #eee; padding: 8px 0; color: #777; }
.flag-emoji { display: inline-flex; width: 22px; height: 16px; align-items: center; justify-content: center; font-size: 18px; }
.app-shell[data-view="sell"]:has(.connection-card) .sell-next-bar { display: none; }
html, body { margin: 0; width: 100%; height: 100%; background: var(--background); color: var(--text); }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--button); outline-offset: 3px; }
button:disabled { cursor: default; opacity: .55; }
[hidden] { display: none !important; }
.app-shell {
  position: relative; display: flex; flex-direction: column; width: 100%;
  max-width: var(--app-width); height: 100vh; height: var(--app-height, 100dvh);
  margin: 0 auto; overflow: hidden; background: var(--background);
}
.app-header { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; min-height: calc(64px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 20px 0 12px; background: white; z-index: 5; }
.app-back { display: grid; place-items: center; width: 34px; height: 40px; flex: 0 0 auto; padding: 0; border: 0; background: transparent; color: #666; }
.app-back svg { width: 20px; height: 20px; }
.app-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; line-height: 24px; font-weight: 600; }
.screen {
  flex: 1; min-height: 0; overflow-y: scroll; overflow-x: hidden;
  padding: 0 10px 70px; overscroll-behavior-y: contain;
}
.screen::-webkit-scrollbar { width: 14px; }
.screen::-webkit-scrollbar-track { background: var(--background); }
.screen::-webkit-scrollbar-thumb { background: #969696; border: 5px solid var(--background); border-radius: 10px; }
.brand-header { padding: 26px 0 24px; text-align: center; }
.brand-logo { display: block; width: 120px; height: 109px; margin: 0 auto; }
.buyer-halo, .buyer-shadow, .buyer-badge-pulse, .buyer-chat, .buyer-coin, .buyer-spark { transform-box: fill-box; transform-origin: center; }
.buyer-halo { animation: buyer-glow 3s ease-in-out infinite; }
.buyer-orbit { transform-origin: 64px 58px; animation: buyer-orbit 14s linear infinite; }
.buyer-profile { transform-origin: 64px 58px; animation: buyer-float 3.6s ease-in-out infinite; }
.buyer-shadow { animation: buyer-shadow 3.6s ease-in-out infinite; }
.buyer-badge-pulse { animation: buyer-pulse 2.4s ease-out infinite; }
.buyer-check { stroke-dasharray: 24; stroke-dashoffset: 0; animation: buyer-check 3.6s ease-in-out infinite; }
.buyer-chat { animation: buyer-chat 3s ease-in-out infinite; }
.buyer-coin { animation: buyer-coin 3.2s ease-in-out infinite; }
.buyer-spark { animation: buyer-spark 2.4s ease-in-out infinite; }
.buyer-spark-small { animation-delay: -1.2s; }
@keyframes buyer-glow { 0%, 100% { transform: scale(.94); opacity: .65; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes buyer-orbit { to { transform: rotate(360deg); } }
@keyframes buyer-float { 0%, 100% { transform: translateY(2px) rotate(-7deg); } 50% { transform: translateY(-5px) rotate(3deg); } }
@keyframes buyer-shadow { 0%, 100% { transform: scaleX(1); opacity: .45; } 50% { transform: scaleX(.8); opacity: .25; } }
@keyframes buyer-pulse { 0% { transform: scale(.9); opacity: .65; } 80%, 100% { transform: scale(1.45); opacity: 0; } }
@keyframes buyer-check { 0%, 12% { stroke-dashoffset: 24; } 32%, 100% { stroke-dashoffset: 0; } }
@keyframes buyer-chat { 0%, 100% { transform: translateY(2px) rotate(-8deg); } 50% { transform: translateY(-5px) rotate(5deg); } }
@keyframes buyer-coin { 0%, 100% { transform: translateY(-3px) rotate(8deg); } 50% { transform: translateY(5px) rotate(-10deg); } }
@keyframes buyer-spark { 0%, 100% { opacity: .35; transform: scale(.65) rotate(-15deg); } 50% { opacity: 1; transform: scale(1.1) rotate(15deg); } }
@media (prefers-reduced-motion: reduce) {
  .brand-logo, .brand-logo * { animation: none !important; }
  .buyer-badge-pulse { opacity: 0; }
}
.brand-header h1 { margin: 17px 0 2px; font-size: 24px; font-weight: 600; line-height: 32px; }
.brand-header p { margin: 0; color: var(--muted); line-height: 21px; }
.card { background: var(--surface); border-radius: 18px; overflow: hidden; }
.card + .card { margin-top: 12px; }
.identity-card { margin-bottom: 12px; }
.identity-row { display: flex; align-items: center; gap: 12px; min-height: 59px; padding: 9px 18px; width: 100%; background: none; border: 0; text-align: left; }
.identity-row .row-copy, .detail-card .row-title { overflow-wrap: anywhere; }
.avatar { display: block; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.avatar.initials { background: var(--button); color: white; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.row-copy { flex: 1; min-width: 0; }
.row-title { font-size: 14px; line-height: 20px; font-weight: 400; }
.row-description { color: var(--muted); font-size: 14px; line-height: 20px; }
.identity-row:first-child .row-title { font-size: 13px; }
.level-badge { background: var(--button); color: #fff; border-radius: 12px; padding: 0 8px; line-height: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.identity-row .level-badge { margin-right: -6px; }
.level-backdrop { position: absolute; inset: 0; z-index: 20; display: flex; align-items: flex-end; background: #0008; overflow-y: auto; }
.level-dialog { width: 100%; margin-top: auto; max-height: 100%; overflow-y: auto; background: white; border-radius: 18px 18px 0 0; }
.level-hero { padding: 26px 16px 20px; color: white; text-align: center; background: #bd3b78; }
.level-hero img { display: block; width: 100px; height: 120px; object-fit: contain; margin: 0 auto 6px; }
.level-hero h2 { margin: 0 0 4px; font-size: 18px; line-height: 24px; font-weight: 600; }
.level-hero p { margin: 0; color: #fffd; }
.level-body { padding: 12px 12px calc(26px + env(safe-area-inset-bottom, 0px)); }
.level-caption { text-align: center; color: var(--muted); margin: 0 0 8px; }
.level-progress-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; margin: 0 4px 12px; }
.level-progress-row progress { flex: 1; min-width: 0; height: 4px; border: 0; border-radius: 4px; background: #dceff9; appearance: none; }
.level-progress-row progress::-webkit-progress-bar { background: #dceff9; border-radius: 4px; }
.level-progress-row progress::-webkit-progress-value { background: var(--button); border-radius: 4px; }
.level-progress-row progress::-moz-progress-bar { background: var(--button); border-radius: 4px; }
.level-table { width: 100%; border: 1px solid #e5e5e5; border-radius: 18px; border-spacing: 0; overflow: hidden; font-size: 14px; }
.level-table th, .level-table td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #e5e5e5; }
.level-table th { width: 35%; font-weight: 600; border-right: 1px solid #e5e5e5; }
.level-table tr:last-child > * { border-bottom: 0; }
.level-table td span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 18px; }
.level-ok { display: flex; width: 100%; margin-top: 12px; }
.chevron { display: block; width: 14px; height: 18px; color: #999; flex-shrink: 0; }
.card-heading { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 40px; padding: 0 18px; border: 0; background: none; font-size: 14px; text-align: left; }
.card-heading h2 { margin: 0; color: var(--blue); font-size: 14px; line-height: 20px; font-weight: 500; }
.collapse-control { display: flex; align-items: center; gap: 5px; color: var(--muted); font-weight: 400; }
.caret { width: 13px; height: 13px; }
.card-heading[aria-expanded="false"] .caret { transform: rotate(180deg); }
.overview-body { padding: 0 18px; }
.overview-row { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.icon-tile { display: block; width: 28px; height: 28px; flex: 0 0 auto; }
.overview-row .row-copy { position: relative; }
.overview-row .row-description { white-space: nowrap; }
.row-value { position: relative; z-index: 1; flex: 0 0 auto; margin-left: 8px; font-size: 14px; line-height: 20px; white-space: nowrap; }
.help-card .card-heading { height: 36px; }
.help-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 0 18px; border: 0; background: none; text-decoration: none; color: var(--text); text-align: left; }
.help-link .chevron { margin-left: 6px; }
.bottom-navigation { position: relative; flex: 0 0 auto; }
.sell-button {
  position: absolute; left: calc((100% - 14px) / 2);
  bottom: calc(100% + 12px);
  transform: translateX(-50%); display: flex; align-items: center; justify-content: center;
  gap: 7px; height: 46px; padding: 0 15px; border: 3px solid white; border-radius: 25px;
  background: var(--button); color: #fff; font-size: 13px; line-height: 20px;
  font-weight: 700; white-space: nowrap; z-index: 3;
}
.sell-button svg { width: 17px; height: 17px; }
.sell-button:active { background: #329bd8; }
.tabbar { height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; padding: 4px 14px calc(4px + env(safe-area-inset-bottom, 0px)) 2px; background: #fafafa; z-index: 4; }
.tab { display: flex; flex: 1; min-width: 0; height: 46px; flex-direction: column; align-items: center; justify-content: center; gap: 0; border: 0; background: none; border-radius: 28px; font-size: 12px; line-height: 18px; font-weight: 500; }
.nav-icon { display: block; width: 24px; height: 24px; color: #888; }
.tab.active .nav-icon { color: var(--button); }
.tab.active { background: var(--nav-active); color: var(--button); font-weight: 700; }
.page-header { display: flex; align-items: center; gap: 10px; padding: 22px 4px 18px; }
.page-header h1 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; }
.detail-card { padding: 18px; }
.detail-card h2 { margin: 0 0 10px; color: var(--blue); font-weight: 500; font-size: 14px; }
.detail-card p { margin: 8px 0; color: var(--muted); }
.detail-avatar { margin-bottom: 14px; width: 64px; height: 64px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; margin-top: 12px; border: 0; border-radius: 22px; background: var(--button); color: white; padding: 8px 16px; font-weight: 600; }
.primary-button .icon-tile { width: 22px; height: 22px; }
.toast-host { position: fixed; bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 68px); left: 12px; right: 12px; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { padding: 10px 16px; max-width: 380px; border-radius: 18px; background: white; color: var(--text); box-shadow: 0 2px 10px #0002; font-size: 13px; line-height: 20px; text-align: center; }
.toast-host[data-kind="success"] { top: calc(15px + env(safe-area-inset-top, 0px)); bottom: auto; left: 50%; right: auto; transform: translateX(-50%); width: calc(100% - 26px); max-width: calc(var(--app-width) - 26px); }
.toast-success { display: grid; place-items: center; width: 100%; max-width: none; min-height: 44px; border-radius: 999px; background: #00d968; color: #003719; box-shadow: none; font-size: 14px; }
.app-shell:has(.app-header:not([hidden])) + .toast-host[data-kind="success"] { top: calc(79px + env(safe-area-inset-top, 0px)); }
.screen-payment, .screen-accounts { padding: 12px 12px 72px; }
.screen-orders { padding: 14px 6px 72px; }
.line-icon { display: block; width: 16px; height: 16px; flex: 0 0 auto; }
.status-filters { display: flex; align-items: center; justify-content: space-between; gap: 2px; min-height: 40px; padding: 4px; border-radius: 24px; background: white; margin-bottom: 12px; box-shadow: 0 1px 2px #00000008; }
.status-filter { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 20px; background: transparent; color: var(--muted); font-size: 14px; line-height: 20px; font-weight: 600; }
.status-filter.active { background: var(--nav-active); color: var(--button); }
.filter-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 12px; background: #999; color: white; font-size: 12px; line-height: 20px; font-weight: 600; }
.status-filter.active .filter-count { background: var(--button); }
.screen-payment .status-filter.active { box-shadow: 0 0 0 3px #9ed6f8; }
.payment-record { display: block; width: 100%; border: 0; background: transparent; text-align: left; color: var(--text); font: inherit; cursor: pointer; }
.payment-record:focus-visible { outline: 2px solid var(--button); outline-offset: 2px; border-radius: 4px; }
.payment-record > .record-subtitle { display: block; }
.payment-backdrop { position: absolute; inset: 0; z-index: 18; display: flex; align-items: flex-end; background: #0008; }
.payment-dialog { width: 100%; max-height: 88%; overflow-y: auto; padding: 14px 11px 24px; border-radius: 18px 18px 0 0; background: white; outline: none; overscroll-behavior: contain; }
.account-record[role="button"] { cursor: pointer; }
.account-record[role="button"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.account-backdrop { position: absolute; inset: 0; z-index: 19; display: flex; align-items: flex-end; background: #0008; }
.account-dialog { width: 100%; max-height: 88%; overflow-y: auto; padding: 13px 8px calc(23px + env(safe-area-inset-bottom, 0px)); border-radius: 16px 16px 0 0; background: white; outline: none; overscroll-behavior: contain; }
.account-table-wrap { overflow: hidden; border: 1px solid #dedede; border-radius: 15px; }
.account-details-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; color: #111; }
.account-details-table th, .account-details-table td { height: 41px; padding: 9px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid #dedede; }
.account-details-table th { width: 35%; border-right: 1px solid #dedede; font-weight: 600; }
.account-details-table tr:last-child th, .account-details-table tr:last-child td { border-bottom: 0; }
.account-detail-phone { display: inline-flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.account-dialog .country-flag { width: 20px; height: 14px; border-radius: 0; }
.account-details-table .status-badge { font-size: 10px; }
.payment-table-wrap { overflow: hidden; border: 1px solid #e3e3e3; border-radius: 15px; }
.payment-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; table-layout: fixed; }
.payment-table th, .payment-table td { padding: 10px 12px; border-bottom: 1px solid #e3e3e3; text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.payment-table th { width: 35%; border-right: 1px solid #e3e3e3; font-weight: 600; }
.payment-table tr:last-child > * { border-bottom: 0; }
.payment-table a, .payment-link { color: var(--blue); text-decoration: none; }
.payment-link { display: inline-flex; align-items: center; gap: 4px; padding: 5px 0 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
.payment-link .chevron { width: 12px; height: 12px; margin-left: 0; }
.payment-muted { color: var(--muted); }
.payment-address { font-size: 13px; }
.payment-accounts-heading { display: flex; align-items: center; gap: 14px; padding: 2px 6px 14px; }
.payment-accounts-heading h2 { margin: 0; font-size: 15px; font-weight: 500; color: var(--blue); }
.payment-account-list { padding: 0 12px; }
.screen-accounts-accepted { padding: 11px 14px 72px 10px; overflow-y: auto; scrollbar-width: none; }
.screen-accounts-accepted::-webkit-scrollbar { display: none; }
.screen-accounts-accepted .status-filters { box-shadow: none; }
.screen-accounts-accepted .status-filter,
.screen-accounts-accepted .filter-count { font-weight: 400; }
.screen-accounts-accepted .country-flag { width: 20px; height: 14px; border-radius: 0; box-shadow: 0 1px 3px #0002; }
.list-search { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px; margin-bottom: 12px; background: white; border-radius: 24px; color: var(--muted); }
.list-search input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
.list-search input::placeholder, .phone-field input::placeholder { color: var(--muted); opacity: 1; }
.list-search:focus-within, .phone-field:focus-within { outline: 2px solid #40a7e366; outline-offset: 1px; }
.list-search input::-webkit-search-cancel-button { cursor: pointer; }
.list-card { border-radius: 20px; }
.list-heading { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 18px; }
.list-heading h2 { margin: 0; font-size: 14px; line-height: 20px; color: var(--blue); font-weight: 500; }
.orders-card .list-heading { height: 54px; }
.list-tools { display: flex; align-items: center; gap: 5px; margin-right: -8px; }
.sort-button { display: flex; align-items: center; justify-content: center; gap: 10px; height: 32px; min-width: 60px; padding: 0 8px; border: 0; border-radius: 10px; background: var(--background); color: var(--muted); }
.sort-button > .line-icon { width: 20px; height: 20px; }
.sort-arrow .line-icon { width: 16px; height: 16px; }
.sort-arrow.ascending { transform: rotate(180deg); }
.clear-button { display: grid; place-items: center; width: 28px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: #fff1f1; color: #f66; }
.clear-button .line-icon { width: 20px; height: 20px; }
.record-list { padding: 0 18px; }
.history-record { min-height: 86px; padding: 8px 0 11px; }
.record-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; }
.record-title { font-size: 14px; line-height: 20px; font-weight: 500; }
.account-number { display: inline-flex; align-items: center; gap: 10px; font-weight: 400; white-space: nowrap; }
.country-flag { display: inline-block; width: 24px; height: 18px; flex: 0 0 auto; object-fit: cover; vertical-align: middle; border-radius: 3px; box-shadow: 0 0 0 1px #00000012, 0 2px 4px #00000012; }
.screen-accounts .account-record { min-height: 84px; }
.screen-accounts .account-number .country-flag { width: 20px; height: 15px; border-radius: 1px; }
.country-flag-preview { display: flex; align-items: center; gap: 9px; min-height: 30px; color: #666; font-size: 13px; }
.country-flag-preview .country-flag { width: 32px; height: 24px; }
.proxy-connection { display: inline-flex; align-items: center; gap: 6px; border-radius: 12px; padding: 3px 8px; background: #eef1f4; color: #65717e; font-size: 12px; }
.proxy-connection::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.proxy-connection-connected { background: #e3f7ed; color: #19885c; }
.proxy-connection-failed { background: #fff0f1; color: #c54859; }
.proxy-connection-checking { background: var(--nav-active); color: #238dc9; }
.record-subtitle { font-size: 14px; line-height: 20px; color: var(--muted); }
.date-label { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--muted); font-size: 14px; line-height: 20px; font-weight: 400; }
.date-label .line-icon { width: 15px; height: 15px; }
.record-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 20px; margin-top: 7px; }
.record-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.status-badge { display: inline-flex; align-items: center; min-height: 18px; padding: 0 5px; border-radius: 2px; font-size: 11px; line-height: 18px; letter-spacing: .02em; white-space: nowrap; }
.status-accepted, .status-completed { background: #cdf9e3; color: #00d879; }
.status-pending { background: #fff1cf; color: #ffab00; }
.status-rejected, .status-failed { background: #ffe1e4; color: #e86c78; }
.status-info { background: #dcecff; color: #5995ff; }
.list-note { margin: 8px 14px; color: var(--muted); font-size: 14px; line-height: 20px; }
.empty-list { padding: 144px 28px 20px; text-align: center; }
.empty-list h2 { margin: 0 0 6px; font-size: 17px; line-height: 24px; font-weight: 600; }
.empty-list p { max-width: 285px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 20px; }
.empty-list.compact { padding: 50px 18px; }
.order-list { padding: 0 18px; }
.order-record { min-height: 98px; padding: 7px 0 11px; }
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 500; }
.order-top > span { display: inline-flex; align-items: center; gap: 4px; }
.pin-button { display: grid; place-items: center; padding: 0; width: 20px; height: 22px; border: 0; background: transparent; color: var(--muted); }
.pin-button .line-icon { width: 20px; height: 20px; }
.pin-button.pinned { color: var(--button); }
.order-details { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; color: var(--muted); }
.order-details > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.order-details .line-icon { width: 14px; height: 14px; }
.order-badges { display: flex; gap: 10px; margin-top: 12px; }
.screen-sell { padding: 0 13px 18px; overflow-y: auto; }
.sell-header { padding: 30px 0 32px; text-align: center; }
.sell-header h1 { margin: 0 0 3px; font-size: 24px; line-height: 32px; font-weight: 600; }
.sell-header p { margin: 0; color: var(--muted); font-size: 14px; line-height: 20px; }
.phone-field { display: flex; align-items: center; min-height: 40px; padding: 0 18px; margin-bottom: 12px; border-radius: 25px; background: white; }
.phone-field input { width: 100%; height: 40px; min-width: 0; border: 0; padding: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
.sell-rules { padding: 10px 18px 12px; border-radius: 20px; }
.sell-rules h2 { margin: 0 0 6px; color: #ff3535; font-size: 14px; line-height: 20px; font-weight: 500; }
.sell-rules ul { margin: 0; padding: 0; list-style: none; color: var(--muted); }
.sell-rules li { position: relative; padding-left: 12px; line-height: 20px; }
.sell-rules li::before { content: "-"; position: absolute; left: 0; }
.sell-rules p { margin: 10px 0 0; color: var(--muted); line-height: 20px; }
.form-error { margin: -4px 12px 10px; color: #e86c78; font-size: 13px; line-height: 20px; }
.sell-next-bar { display: none; }
.app-shell[data-view="sell"] .sell-next-bar { display: block; padding: 0 13px calc(10px + env(safe-area-inset-bottom, 0px)); flex: 0 0 auto; }
.sell-next { width: 100%; height: 40px; border: 0; border-radius: 24px; background: var(--button); color: white; font-weight: 700; }
.sell-next:disabled { background: #90c8e9; opacity: 1; }
.app-shell[data-view="sell-code"] .sell-next-bar, .app-shell[data-view="sell-password"] .sell-next-bar { display: block; padding: 0 9px calc(10px + env(safe-area-inset-bottom, 0px)); flex: 0 0 auto; }
.screen-sell-code, .screen-sell-password { display: flex; flex-direction: column; padding-bottom: 8px; }
.screen-sell-code .sell-header p, .screen-sell-password .sell-header p { max-width: 320px; margin: 0 auto; }
.otp-field { position: relative; display: block; margin: 0 auto 20px; width: 100%; max-width: 350px; }
.otp-digits { display: flex; justify-content: center; gap: 12px; }
.otp-digits > span { display: flex; align-items: center; justify-content: center; flex: 1; max-width: 48px; height: 48px; background: white; border-radius: 18px; font-size: 24px; font-weight: 400; }
.otp-field:focus-within .otp-digits > span[data-active="true"] { box-shadow: inset 0 0 0 2px #0097e8; }
.otp-field:focus-within .otp-digits > span[data-active="true"]:empty::after { content: ""; height: 16px; width: 1px; background: var(--muted); }
.otp-field input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.01; caret-color: transparent; font-size: 24px; border: 0; }
.session-expiry { text-align: center; color: var(--blue); margin: auto 0 0; padding-top: 24px; font-size: 14px; line-height: 20px; }
.session-expiry span { color: var(--muted); }
.expiry-restart { border: 0; padding: 0; background: none; color: var(--blue); }
.review-phone { font-size: 18px; line-height: 26px; font-variant-numeric: tabular-nums; }
.app-shell[data-view="sell"] + .toast-host:not([data-kind="success"]) { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 359px) {
  .status-filter { gap: 5px; padding: 0 7px; font-size: 12px; }
  .record-list, .order-list { padding-left: 14px; padding-right: 14px; }
  .record-title, .date-label { font-size: 12px; }
  .account-number { gap: 6px; }
  .record-badges { gap: 4px; }
  .order-badges { gap: 6px; }
  .order-badges .status-badge { padding: 0 4px; font-size: 10px; }
  .wide-only { display: none; }
}
@media (min-width: 600px) {
  .app-shell { border-left: 1px solid #e6e6e6; border-right: 1px solid #e6e6e6; }
}
@media (max-width: 359px) {
  .screen { padding-left: 8px; padding-right: 8px; }
  .card-heading, .identity-row, .help-link { padding-left: 14px; padding-right: 14px; }
  .overview-body { padding-left: 14px; padding-right: 14px; }
  .overview-row { gap: 9px; }
  .row-description { font-size: 12px; line-height: 18px; }
  .row-value { margin-left: 2px; font-size: 13px; }
  .brand-header p { font-size: 12px; }
}
