/* BeiKe UI foundation — presentation only; transaction and reward rules stay unchanged. */
:root {
  color-scheme: light;
  --ui-bg: #f3f4f2;
  --ui-surface: #ffffff;
  --ui-surface-raised: #ffffff;
  --ui-fill: #e9ede9;
  --ui-ink: #202b26;
  --ui-muted: #59665e;
  --ui-accent: #286348;
  --ui-primary: #296448;
  --ui-on-primary: #ffffff;
  --ui-line: #dce2dc;
  --ui-gold: #80612e;
  --ui-gold-soft: #f5eddd;
  --ui-danger: #a73535;
  --ui-danger-soft: #fbe9e7;
  --ui-glass: rgba(250,251,249,.91);
  --ui-scrim: rgba(14,23,18,.42);
  --ui-shadow: 0 3px 14px rgba(27,42,32,.035);
  --ui-radius: 22px;
  --ui-control-radius: 14px;
  --ui-gap: 16px;
  --ios-bg: var(--ui-bg);
  --ios-card: var(--ui-surface);
  --ios-ink: var(--ui-ink);
  --ios-muted: var(--ui-muted);
  --ios-green: var(--ui-accent);
  --ios-green-soft: var(--ui-fill);
  --ios-line: var(--ui-line);
  --ios-shadow: var(--ui-shadow);
  background: var(--ui-bg);
  color: var(--ui-ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ui-bg:#141815; --ui-surface:#202622; --ui-surface-raised:#2b322d;
    --ui-fill:#303b33; --ui-ink:#f1f3ee; --ui-muted:#b4bfb5;
    --ui-accent:#b0d5b9; --ui-primary:#a9d0b4; --ui-on-primary:#16291e;
    --ui-line:#414d43; --ui-gold:#e4c78f; --ui-gold-soft:#3c3527;
    --ui-danger:#ffb3ae; --ui-danger-soft:#462b2b;
    --ui-glass:rgba(31,38,33,.93); --ui-scrim:rgba(0,0,0,.6);
    --ui-shadow:0 4px 18px rgba(0,0,0,.14);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ui-bg:#141815; --ui-surface:#202622; --ui-surface-raised:#2b322d;
  --ui-fill:#303b33; --ui-ink:#f1f3ee; --ui-muted:#b4bfb5;
  --ui-accent:#b0d5b9; --ui-primary:#a9d0b4; --ui-on-primary:#16291e;
  --ui-line:#414d43; --ui-gold:#e4c78f; --ui-gold-soft:#3c3527;
  --ui-danger:#ffb3ae; --ui-danger-soft:#462b2b;
  --ui-glass:rgba(31,38,33,.93); --ui-scrim:rgba(0,0,0,.6);
  --ui-shadow:0 4px 18px rgba(0,0,0,.14);
}
html { -webkit-text-size-adjust:100%; }
body, .beike-live { background:var(--ui-bg); color:var(--ui-ink); }
.device { font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif; }
.device, .device > section { color:var(--ui-ink); background-color:var(--ui-bg); }
.device :is(button,input,textarea,select) { font-family:inherit; -webkit-tap-highlight-color:transparent; }
.device button { cursor:pointer; touch-action:manipulation; transition:background-color .16s ease, box-shadow .16s ease; }
.device button:disabled { cursor:default; }
.device button:active:not(:disabled) { filter:brightness(.94); }
.device :is(button,a,input,textarea,select):focus-visible { outline:2px solid var(--ui-accent); outline-offset:3px; }
.device :is(input,textarea,select) { font-size:16px; color:var(--ui-ink); caret-color:var(--ui-accent); }
.device :is(input,textarea)::placeholder { color:var(--ui-muted); opacity:1; }
.device :is(h1,h2,h3) { text-wrap:balance; }
.device :is(p,small) { overflow-wrap:break-word; }
.device :is([class$="-scroll"],.screen-scroll) { overscroll-behavior-y:contain; }
.device svg { stroke-linecap:round; stroke-linejoin:round; }
.device [hidden] { display:none!important; }
.statusbar, .review-caption { color:var(--ui-ink); }
.review-caption p, .review-kicker { color:var(--ui-muted); }
.ui-sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }

/* One navigation rhythm. Preserve existing safe-area and keyboard positioning. */
.device :is(.app-header,.wallet-topbar,.history-topbar,.profile-topbar,.sell-preview-topbar,.support-topbar,.notifications-topbar,.tasks-topbar,.wheel-topbar,.new-user-topbar,.buddy-topbar,.monthly-topbar) { color:var(--ui-ink); gap:8px; }
.device :is(.wallet-topbar,.history-topbar,.profile-topbar,.sell-preview-topbar,.support-topbar,.notifications-topbar,.tasks-topbar,.wheel-topbar,.new-user-topbar,.buddy-topbar,.monthly-topbar) > div { min-width:0; }
.device :is(.wallet-topbar,.history-topbar,.profile-topbar,.sell-preview-topbar,.support-topbar,.notifications-topbar,.tasks-topbar,.wheel-topbar,.new-user-topbar,.buddy-topbar,.monthly-topbar) strong { font-size:17px; line-height:1.2; font-weight:650; letter-spacing:-.3px; }
.device :is(.wallet-topbar,.history-topbar,.profile-topbar,.sell-preview-topbar,.support-topbar,.notifications-topbar,.tasks-topbar,.wheel-topbar,.new-user-topbar,.buddy-topbar,.monthly-topbar) > div > span { color:var(--ui-muted); font-size:11px; }
.device :is(.header-actions,.page-header-actions) { padding:0; gap:0; border:0; background:transparent; box-shadow:none; backdrop-filter:none; }
.device :is(.header-icon,.page-header-icon) { width:40px; height:44px; border-radius:var(--ui-control-radius); color:var(--ui-accent); }
.device :is(.header-icon,.page-header-icon) svg { width:21px; height:21px; stroke:currentColor; stroke-width:1.65; }
.device :is(.sell-preview-back,.wallet-back,.wallet-withdraw-back,.wallet-bank-back,.wallet-pin-back,.history-back,.profile-back,.support-back,.notifications-back,.tasks-back,.wheel-back,.new-user-back,.buddy-back,.monthly-back) { height:44px; min-width:46px; width:auto; padding:0 8px; border:0; border-radius:12px; box-shadow:none; background:transparent; color:var(--ui-accent); font-size:13px; font-weight:600; }
.device .bottom-nav { background:var(--ui-glass); border:1px solid var(--ui-line); box-shadow:var(--ui-shadow); border-radius:25px; backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
.device .bottom-nav button { min-height:44px; border-radius:18px; font-size:10px; font-weight:600; gap:4px; color:var(--ui-muted); }
.device .bottom-nav button.active { background:var(--ui-fill); color:var(--ui-accent); }
.device .bottom-nav svg { width:21px; height:21px; stroke-width:1.65; }
.device :is(.header-icon,.page-header-icon):active { background:var(--ui-fill); }

/* Home: one main action, a quiet reward group, and a readable rate list. */
.brand-wordmark strong { font-weight:650; font-size:18px; }
.brand-mark { background:var(--ui-primary); color:var(--ui-on-primary); }
.device :is(.invite-meta,.invite-meta b,.copy-feedback) { color:var(--ui-muted); }
.device .copy-code { min-width:32px; min-height:32px; border:0; background:transparent; color:var(--ui-accent); }
.device .sell-feature { border-radius:var(--ui-radius); background:linear-gradient(125deg,#244b38,#38654a); box-shadow:var(--ui-shadow); }
.device .sell-copy h3 { font-size:26px; font-weight:650; }
.device .sell-copy span { color:#e4e9d7; font-size:10px; letter-spacing:.09em; }
.device .sell-copy p { color:#e0e9df; font-size:12px; }
.device :is(.section-heading h3,.rates-heading h3,.sell-catalog-meta strong) { font-size:18px; font-weight:650; letter-spacing:-.3px; }
.device .shortcut-grid { background:var(--ui-surface); border:1px solid var(--ui-line); border-radius:var(--ui-radius); padding:8px 3px; box-shadow:var(--ui-shadow); }
.device .shortcut { color:var(--ui-ink); background:transparent; border:0; box-shadow:none; height:88px; }
.device .shortcut strong { font-size:11px; line-height:1.25; font-weight:600; }
.device .shortcut-icon { background:var(--ui-fill); color:var(--ui-accent); border-radius:13px; }
.device .shortcut-icon svg { stroke:currentColor; stroke-width:1.65; }
.device .home-ticker { background:var(--ui-fill); border-color:transparent; box-shadow:none; border-radius:14px; margin:16px 0 20px; }
.device .ticker-message { color:var(--ui-muted); font-size:12px; font-weight:500; }
.device :is(.ticker-close,.ticker-open) { min-height:44px; color:var(--ui-accent); }
.device :is(.ticker-close,.ticker-open):hover { background:transparent; }
.device :is(.rates-heading p,.rate-note,.sell-catalog-meta span) { font-size:12px; color:var(--ui-muted); }
.device .rates-heading button { min-height:44px; font-size:13px; color:var(--ui-accent); font-weight:600; }
.device :is(.rates-list,.sell-catalog-list) { background:var(--ui-surface); border:1px solid var(--ui-line); border-radius:var(--ui-radius); box-shadow:var(--ui-shadow); }
.device .rates-list .rate-row, .device .sell-catalog-card { min-height:76px; padding:12px; background:transparent; border-bottom-color:var(--ui-line); }
.device :is(.rate-brand,.sell-catalog-copy strong) { font-size:15px; font-weight:650; color:var(--ui-ink); }
.device .rates-list .rate-quote strong, .device .sell-catalog-copy small { font-size:12px; font-weight:550; color:var(--ui-accent); }
.device .rates-list .rate-quote small { color:var(--ui-muted); font-size:11px; }
.device :is(.rate-sell,.sell-catalog-action,.sell-brand-choice-action) { min-width:58px; height:40px; border:0; border-radius:12px; background:var(--ui-fill); color:var(--ui-accent); font-size:13px; font-weight:650; }
.device :is(.rate-row-pending .rate-sell,.sell-catalog-pending .sell-catalog-action,.sell-catalog-pending .sell-catalog-copy small) { color:var(--ui-muted); background:var(--ui-fill); }

/* Forms and trade flow: grouped choices and a clear, stable offer. */
.device :is(.sell-preview-heading h2,.support-page-heading h2,.notifications-heading h2,.profile-edit-intro h2,.profile-secondary-intro h2,.wallet-bank-intro h2,.wallet-pin-heading) { font-size:27px; font-weight:680; letter-spacing:-.7px; line-height:1.15; color:var(--ui-ink); }
.device :is(.sell-preview-heading,.support-page-heading,.notifications-heading) { padding-top:14px; padding-bottom:18px; }
.device :is(.sell-preview-heading > span,.support-eyebrow,.notifications-heading > span,.wallet-bank-intro > span,.wallet-pin-eyebrow) { font-size:10px; letter-spacing:.09em; font-weight:600; color:var(--ui-muted); }
.device :is(.sell-preview-heading p,.support-page-heading p,.notifications-heading p,.profile-edit-intro p,.profile-secondary-intro p,.wallet-bank-intro p,.wallet-pin-intro) { color:var(--ui-muted); font-size:13px; line-height:1.5; }
.device :is(.sell-search,.sell-choice-search,.wallet-bank-search) { min-height:48px; border:1px solid var(--ui-line); border-radius:var(--ui-control-radius); background:var(--ui-fill); box-shadow:none; color:var(--ui-muted); }
.device :is(.sell-search,.sell-choice-search):focus-within { border-color:var(--ui-accent); background:var(--ui-surface); box-shadow:0 0 0 3px color-mix(in srgb,var(--ui-accent) 12%,transparent); }
.device :is(.sell-search input,.sell-choice-search input) { background:transparent; color:var(--ui-ink); font-size:16px; }
.device .sell-search-key { display:none; }
.device :is(.sell-catalog-support,.sell-brand-guidance,.sell-detail-notice,.sell-apple-guide,.sell-requirement,.sell-payout-timing) { background:var(--ui-fill); border-color:var(--ui-line); color:var(--ui-muted); border-radius:16px; box-shadow:none; }
.device .sell-catalog-support strong { color:var(--ui-ink); font-size:14px; }
.device .sell-catalog-support p { color:var(--ui-muted); font-size:12px; }
.device .sell-catalog-support-icon { color:var(--ui-accent); background:var(--ui-surface); }
.device :is(.sell-catalog-chat,.sell-review-button,.sell-choice-apply,.sell-confirm-submit) { min-height:46px; border-radius:var(--ui-control-radius); background:var(--ui-primary); color:var(--ui-on-primary); box-shadow:none; font-size:14px; font-weight:650; }
.device :is(.sell-country-list,.sell-options-trigger,.sell-face-input-row,.sell-code-field input,.sell-upload-button,.sell-choice-tile,.sell-choice-type,.sell-confirm-facts) { background:var(--ui-surface); border-color:var(--ui-line); color:var(--ui-ink); border-radius:var(--ui-control-radius); box-shadow:none; }
.device :is(.sell-options-trigger-copy small,.sell-brand-identity p,.sell-brand-guidance,.sell-value-section > strong,.sell-code-field label,.sell-upload-label small,.sell-face-limits,.sell-confirm-facts span,.sell-confirm-note,.sell-choice-head small,.sell-choice-group-head small,.sell-choice-tile small,.sell-choice-type-note) { color:var(--ui-muted); font-size:12px; line-height:1.45; }
.device :is(.sell-options-trigger-icon,.sell-face-prefix,.sell-choice-type-icon) { background:var(--ui-fill); color:var(--ui-accent); border-color:var(--ui-line); }
.device .sell-face-input-row input { color:var(--ui-ink); font-size:18px; background:transparent; }
.device .sell-value-options button { min-height:44px; background:var(--ui-surface); color:var(--ui-ink); border-color:var(--ui-line); border-radius:12px; font-size:13px; }
.device :is(.sell-value-options button.selected,.sell-choice-tile.selected,.sell-choice-type.selected,.sell-country-list button.selected) { background:var(--ui-fill); color:var(--ui-accent); border-color:var(--ui-accent); }
.device :is(.sell-face-feedback,.sell-submission-feedback) { color:var(--ui-muted); font-size:12px; line-height:1.45; }
.device .sell-face-feedback.invalid { color:var(--ui-danger); }
.device .sell-offer { background:var(--ui-fill); border:1px solid var(--ui-line); border-radius:var(--ui-radius); box-shadow:none; }
.device .sell-offer strong, .device .sell-confirm-total strong { color:var(--ui-ink); font-variant-numeric:tabular-nums; letter-spacing:-.7px; }
.device .sell-offer small, .device .sell-offer span:not(.sell-offer-mark), .device .sell-confirm-total small { color:var(--ui-muted); font-size:12px; }
.device :is(.sell-offer-mark,.sell-choice-check) { background:var(--ui-primary); color:var(--ui-on-primary); }
.device :is(.sell-sticky-footer,.sell-choice-footer) { background:var(--ui-bg); border-color:var(--ui-line); }
.device :is(.sell-choice-head h3,.sell-choice-group-head strong,.sell-confirm-card h3) { color:var(--ui-ink); }

/* Wallet: balance is the focal point; setup and activity use consistent rows. */
.device .wallet-hero { background:var(--ui-surface); border:1px solid var(--ui-line); border-radius:var(--ui-radius); padding:22px; box-shadow:var(--ui-shadow); }
.device .wallet-hero > strong { color:var(--ui-ink); font-size:36px; font-weight:650; font-variant-numeric:tabular-nums; letter-spacing:-1.2px; }
.device :is(.wallet-hero-head > span:first-child,.wallet-hero > p,.wallet-action-copy small,.wallet-preview-note,.wallet-rule-lines,.wallet-amount-balance,.wallet-bank-note,.wallet-bank-form-hint,.wallet-bank-empty p,.wallet-pin-safety,.wallet-pin-code-note,.wallet-pin-guidance p,.wallet-pin-preview-note,.wallet-withdraw-footnote) { color:var(--ui-muted); font-size:12px; line-height:1.5; }
.device .wallet-hero-head > span:first-child { font-size:11px; letter-spacing:.08em; }
.device .wallet-eye { color:var(--ui-accent); background:var(--ui-fill); width:44px; height:44px; }
.device .wallet-section-heading { margin-top:24px; }
.device .wallet-section-heading > span { display:none; }
.device .wallet-section-heading h2 { font-size:18px; color:var(--ui-ink); font-weight:650; }
.device :is(.wallet-action-list,.wallet-bank-account-card,.wallet-pin-preview-card,.wallet-amount-block,.wallet-bank-select,.wallet-pin-email-card,.wallet-activity,.wallet-bank-empty,.wallet-pin-guidance) { background:var(--ui-surface); border:1px solid var(--ui-line); border-radius:var(--ui-radius); color:var(--ui-ink); box-shadow:var(--ui-shadow); }
.device .wallet-action { min-height:76px; color:var(--ui-ink); background:transparent; border-color:var(--ui-line); }
.device .wallet-action-copy b { font-size:15px; font-weight:600; }
.device :is(.wallet-action-icon,.wallet-bank-icon,.wallet-bank-account-icon,.wallet-pin-mail-icon,.wallet-pin-illustration,.wallet-pin-shield,.wallet-activity-symbol,.wallet-bank-empty-icon) { background:var(--ui-fill); color:var(--ui-accent); box-shadow:none; }
.device :is(.wallet-withdraw-open,.wallet-withdraw-footer button,.wallet-bank-footer button,.wallet-pin-footer button,.wallet-info-done,.wallet-bank-review-confirm,.wallet-bank-account-use) { min-height:48px; background:var(--ui-primary); color:var(--ui-on-primary); border:0; border-radius:var(--ui-control-radius); font-size:14px; font-weight:650; box-shadow:none; }
.device :is(.wallet-withdraw-footer,.wallet-bank-footer,.wallet-pin-footer) { background:var(--ui-bg); border-color:var(--ui-line); }
.device :is(.wallet-amount-input input,.wallet-bank-full-name,.wallet-bank-account-number,.wallet-pin-input,.wallet-bank-provider-open) { background:var(--ui-surface); color:var(--ui-ink); border-color:var(--ui-line); font-size:16px; }
.device :is(.wallet-amount-input > span,.wallet-amount-balance strong,.wallet-payment-title,.wallet-pin-heading,.wallet-pin-state,.wallet-pin-preview-card strong,.wallet-pin-email-card strong,.wallet-bank-provider-name,.wallet-bank-review-row strong,.wallet-bank-empty h3) { color:var(--ui-ink); }
.device :is(.wallet-amount-block label,.wallet-bank-label,.wallet-pin-fields label,.wallet-pin-verify-fields label) { color:var(--ui-ink); font-size:13px; font-weight:600; }
.device :is(.wallet-pin-email-card small,.wallet-pin-preview-card small,.wallet-bank-account-title small,.wallet-bank-account-details,.wallet-bank-review-row span,.wallet-bank-review-card p,.wallet-bank-delete-card p,.wallet-info-card p,.wallet-activity small) { color:var(--ui-muted); font-size:12px; line-height:1.5; }
.device :is(.wallet-withdraw-all,.wallet-ngn,.wallet-bank-provider-icon,.wallet-pin-send-code,.wallet-pin-visibility,.wallet-bank-option-mark) { background:var(--ui-fill); color:var(--ui-accent); border-color:var(--ui-line); }
.device :is(.wallet-pin-send-code,.wallet-pin-visibility) { min-height:44px; }
.device .wallet-bank-option { background:transparent; color:var(--ui-ink); border-color:var(--ui-line); min-height:56px; font-size:14px; }
.device :is(.wallet-bank-option-check,.wallet-activity strong) { color:var(--ui-accent); }
.device .wallet-pin-dots i { background:var(--ui-line); }
.device .wallet-pin-dots.filled i { background:var(--ui-accent); }
.device :is(.wallet-bank-account-delete,.wallet-bank-delete-confirm) { color:var(--ui-danger); background:var(--ui-danger-soft); min-height:44px; }
.device :is(.wallet-amount-error,.wallet-pin-error,.wallet-bank-form-error) { color:var(--ui-danger); font-size:12px; line-height:1.45; }

/* History: separate category, status and amount by weight, not decoration. */
.device :is(.history-sections,.history-filters,.notifications-filters) { background:var(--ui-fill); border:0; border-radius:14px; padding:4px; gap:3px; }
.device :is(.history-sections,.history-filters,.notifications-filters) button { min-height:40px; background:transparent; color:var(--ui-muted); border:0; border-radius:11px; font-size:12px; font-weight:600; }
.device .history-sections button[aria-selected="true"], .device .history-filters button[aria-pressed="true"], .device .notifications-filters button.selected { background:var(--ui-surface-raised); color:var(--ui-accent); box-shadow:0 1px 4px rgba(0,0,0,.06); }
.device .history-list { background:var(--ui-surface); border:1px solid var(--ui-line); border-radius:var(--ui-radius); box-shadow:var(--ui-shadow); }
.device .history-list .history-item { background:transparent; min-height:90px; padding:14px 12px; color:var(--ui-ink); border-color:var(--ui-line); gap:10px; }
.device .history-item-main { min-width:0; flex:1; }
.device .history-item-main strong { color:var(--ui-ink); font-size:14px; font-weight:650; }
.device :is(.history-item-main small,.history-item-side small,.history-empty p,.history-footnote,.history-step p,.history-detail-note,.history-detail-meta span) { color:var(--ui-muted); font-size:11px; line-height:1.45; }
.device .history-item-side { max-width:44%; }
.device .history-item-side strong { font-size:14px; font-weight:650; font-variant-numeric:tabular-nums; }
.device .history-item-icon { border-radius:13px; background:var(--ui-fill); color:var(--ui-accent); }
.device .history-item.rewards .history-item-icon { background:var(--ui-gold-soft); color:var(--ui-gold); }
.device .history-item.withdrawals .history-item-icon { background:var(--ui-fill); color:var(--ui-accent); }
.device .history-item.rewards .history-item-side strong { color:var(--ui-accent); }
.device .history-item-main em { font-size:11px; line-height:1.4; border-radius:6px; padding:3px 7px; font-style:normal; }
.device .history-item-main em.pending { background:var(--ui-gold-soft); color:var(--ui-gold); }
.device .history-item-main em.successful { background:var(--ui-fill); color:var(--ui-accent); }
.device .history-item-main em.rejected { background:var(--ui-danger-soft); color:var(--ui-danger); }
.device :is(.history-empty,.history-detail-kind) { color:var(--ui-muted); }
.device .history-step-dot { background:var(--ui-line); }
.device .history-step.done .history-step-dot { background:var(--ui-accent); }

/* Profile: inset grouped lists, consistent symbols, accessible account details. */
.device .profile-identity { margin:0; padding:22px 2px; background:transparent; }
.device .profile-identity-copy > strong { font-size:22px; font-weight:650; color:var(--ui-ink); }
.device :is(.profile-identity-copy > span,.profile-identity-copy b,.profile-preview-note,.profile-simple-view > p) { color:var(--ui-muted); font-size:12px; }
.device .profile-menu { margin:4px 0 0; padding:0 14px; border:1px solid var(--ui-line); border-radius:var(--ui-radius); background:var(--ui-surface); box-shadow:var(--ui-shadow); }
.device .profile-menu > button, .device .profile-menu-line { padding:12px 0; min-height:62px; gap:10px; background:transparent; color:var(--ui-ink); border-color:var(--ui-line); }
.device .profile-menu-copy { font-size:14px; color:var(--ui-ink); line-height:1.3; }
.device .profile-menu-value { font-size:12px; font-weight:500; color:var(--ui-muted); max-width:49%; }
.device .profile-menu-icon { color:var(--ui-accent); }
.device .profile-menu-icon[data-icon="diamond"], .device .profile-menu-icon[data-icon="coupon"] { color:var(--ui-gold); }
.device .profile-copy { color:var(--ui-accent); background:transparent; min-width:36px; min-height:44px; }
.device :is(.profile-avatar,.profile-thumb) { background:var(--ui-primary); color:var(--ui-on-primary); }
.device .profile-avatar-wrap > small { background:var(--ui-gold-soft); color:var(--ui-gold); border-color:var(--ui-line); }
.device :is(.profile-avatar-stage,.profile-avatar-grid,.profile-photo-action,.profile-name-field,.profile-security-list,.profile-detail-list,.profile-flow-account,.profile-security-id,.profile-simple-symbol,.profile-group) { background:var(--ui-surface); color:var(--ui-ink); border:1px solid var(--ui-line); border-radius:var(--ui-radius); box-shadow:var(--ui-shadow); }
.device .profile-avatar-stage { padding:22px 16px; background:var(--ui-fill); }
.device .profile-avatar-large { border-color:var(--ui-surface); box-shadow:var(--ui-shadow); }
.device :is(.profile-avatar-stage h2,.profile-section-heading strong,.profile-name-form label,.profile-security-id strong,.profile-flow-account strong,.profile-flow-field label,.profile-simple-view > strong,.profile-security-row) { color:var(--ui-ink); }
.device :is(.profile-avatar-stage p,.profile-section-heading span,.profile-name-count,.profile-name-form small,.profile-security-row small,.profile-security-message,.profile-security-id small,.profile-security-id span,.profile-flow-account-label,.profile-flow-field small,.profile-details-view > p) { color:var(--ui-muted); font-size:12px; line-height:1.5; }
.device .profile-photo-action strong { font-size:13px; font-weight:600; }
.device :is(.profile-photo-icon,.profile-edit-mark,.profile-security-emblem,.profile-flow-eye,.profile-flow-send) { background:var(--ui-fill); color:var(--ui-accent); box-shadow:none; }
.device .profile-avatar-choice { border-color:var(--ui-surface); box-shadow:0 0 0 1px var(--ui-line); }
.device .profile-avatar-choice[aria-pressed="true"] { border-color:var(--ui-surface); box-shadow:0 0 0 2px var(--ui-accent); }
.device .profile-avatar-choice[aria-pressed="true"]::after { background:var(--ui-primary); color:var(--ui-on-primary); }
.device :is(.profile-primary-button,.profile-flow-submit,.profile-avatar-save) { min-height:48px; border-radius:var(--ui-control-radius); background:var(--ui-primary); color:var(--ui-on-primary); box-shadow:none; font-size:14px; font-weight:650; }
.device :is(.profile-name-field input,.profile-flow-field > input,.profile-flow-input-wrap,.profile-flow-code-row) { color:var(--ui-ink); background:var(--ui-surface); border-color:var(--ui-line); font-size:16px; }
.device :is(.profile-flow-input-wrap input,.profile-flow-code-row input) { color:var(--ui-ink); background:transparent; font-size:16px; }
.device .profile-flow-field { border:0; border-radius:0; box-shadow:none; background:transparent; }
.device :is(.profile-flow-send,.profile-flow-eye) { min-height:44px; }
.device .profile-security-row { min-height:72px; border-color:var(--ui-line); font-size:14px; }
.device .profile-security-row b, .device .profile-security-status { color:var(--ui-accent); font-size:12px; }
.device :is(.profile-form-message,.profile-flow-message) { color:var(--ui-accent); font-size:12px; }
.device :is(.profile-form-message.is-error,.profile-flow-message.is-error) { color:var(--ui-danger); }
.ui-appearance { margin-top:24px; }
.ui-appearance h3 { margin:0 0 10px 2px; font-size:16px; font-weight:650; color:var(--ui-ink); }
.ui-appearance p { margin:9px 2px 0; font-size:12px; color:var(--ui-muted); line-height:1.4; }
.ui-appearance-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:4px; gap:4px; border:1px solid var(--ui-line); border-radius:16px; background:var(--ui-fill); }
.ui-appearance-options button { min-height:44px; border:0; border-radius:12px; background:transparent; color:var(--ui-muted); font-family:inherit; font-size:13px; font-weight:600; line-height:1.2; }
.ui-appearance-options button[aria-pressed="true"] { color:var(--ui-accent); background:var(--ui-surface-raised); box-shadow:var(--ui-shadow); }

/* Membership: the approved badge family stays intact. Selected tier is explicit. */
.device .profile-level-view { background:var(--ui-bg); color:var(--ui-ink); }
.device .profile-vip-hero { margin:12px 16px 0; border-radius:var(--ui-radius); box-shadow:var(--ui-shadow); border-color:rgba(255,255,255,.15); }
.device .profile-vip-hero-top > span:first-child { font-size:10px; font-weight:600; }
.device .profile-vip-current-chip { font-size:10px; font-weight:600; }
.device .profile-vip-overline { font-size:10px; color:#f1f1e9; letter-spacing:.08em; }
.device .profile-vip-hero-main p.profile-vip-hero-subtitle { font-size:12px; color:#f4f3ed; }
.device .profile-vip-progress-head span, .device .profile-vip-progress-head span b, .device .profile-vip-progress-head strong small, .device .profile-vip-progress-card p, .device .profile-vip-progress-card p b { color:#fff; font-size:12px; }
.device .profile-vip-progress-card { background:rgba(0,0,0,.12); border-color:rgba(255,255,255,.2); box-shadow:none; backdrop-filter:none; }
.device .profile-vip-body { padding:16px 16px 28px; background:var(--ui-bg); }
.device .profile-vip-milestones { padding:16px 10px; background:var(--ui-surface); border:1px solid var(--ui-line); border-radius:var(--ui-radius); box-shadow:var(--ui-shadow); }
.device .profile-vip-section-heading > span { display:none; }
.device .profile-vip-section-heading h2 { font-size:18px; font-weight:650; color:var(--ui-ink); }
.device .profile-vip-section-heading p, .device .profile-vip-footnote { color:var(--ui-muted); font-size:12px; line-height:1.45; }
.device .profile-vip-rules-open { min-height:40px; min-width:58px; border:0; background:var(--ui-fill); color:var(--ui-accent); font-size:12px; border-radius:12px; }
.device .profile-vip-tiers { margin:14px 0 0; gap:2px; }
.device .profile-vip-tiers::before { display:none; }
.device .profile-vip-tiers button.profile-vip-tier-step { min-height:66px; padding:7px 0; border-radius:13px; color:var(--ui-muted); gap:4px; }
.device .profile-vip-tiers button.profile-vip-tier-step[aria-selected="true"] { background:var(--ui-gold-soft); color:var(--ui-gold); }
.device .profile-vip-tier-step b { font-size:12px; font-weight:650; }
.device .profile-vip-swipe-hint { color:var(--ui-muted); font-size:12px; line-height:1.4; padding:0; }
.device .profile-vip-benefits-section { padding:4px 0 0; }
.device .profile-vip-benefits { gap:8px; }
.device .profile-vip-benefit, .device .profile-vip-benefit.profile-vip-cashback { min-height:114px; padding:12px 4px; border:1px solid var(--ui-line); border-radius:18px; background:var(--ui-surface); box-shadow:var(--ui-shadow); }
.device .profile-vip-benefit > span.profile-vip-benefit-icon { width:30px; height:30px; border-radius:10px; background:var(--ui-gold-soft); color:var(--ui-gold); }
.device .profile-vip-benefit small { min-height:32px; color:var(--ui-muted); font-size:12px; font-weight:500; line-height:1.3; }
.device .profile-vip-benefit strong, .device .profile-vip-cashback strong.profile-vip-rate { color:var(--ui-ink); font-size:17px; font-weight:650; }
.device .profile-vip-rules-header h2, .device .profile-vip-rules-scroll h3 { color:var(--ui-ink); }
.device .profile-vip-rules-scroll p { color:var(--ui-muted); font-size:13px; line-height:1.55; }
.device :is(.profile-vip-rules-upgrades,.profile-vip-rules-table) { background:var(--ui-surface); border-color:var(--ui-line); border-radius:14px; }
.device .profile-vip-rules-upgrades div, .device .profile-vip-rules-table > div { color:var(--ui-muted); border-color:var(--ui-line); font-size:12px; min-height:42px; }
.device .profile-vip-rules-upgrades strong, .device .profile-vip-rules-table b { color:var(--ui-ink); font-size:12px; }
.device .profile-vip-rules-table .profile-vip-rules-table-head { background:var(--ui-fill); color:var(--ui-muted); font-size:12px; }
.device .profile-vip-rules-note { color:var(--ui-muted)!important; }

/* Help and messages: readable content with composer/keyboard rules preserved. */
.device :is(.support-faq-list,.support-conversation,.support-composer,.support-chat-menu) { background:var(--ui-surface); border:1px solid var(--ui-line); border-radius:var(--ui-radius); box-shadow:var(--ui-shadow); }
.device .support-faq-question { min-height:64px; background:transparent; color:var(--ui-ink); }
.device .support-faq-question strong { font-size:14px; font-weight:600; }
.device .support-faq-question[aria-expanded="true"] { background:var(--ui-fill); }
.device .support-faq-number { color:var(--ui-accent); background:var(--ui-fill); }
.device :is(.support-faq-answer,.support-chat-heading p,.support-empty p,.support-hub-footer > span,.support-chat-menu p,.support-delete-card p,.support-attachment p) { font-size:13px; line-height:1.5; color:var(--ui-muted); }
.device .support-safety { background:var(--ui-fill); color:var(--ui-muted); font-size:11px; line-height:1.4; border-color:var(--ui-line); }
.device :is(.support-empty-icon,.support-attach,.support-more,.support-delete-icon) { background:var(--ui-fill); color:var(--ui-accent); }
.device .support-more { min-width:40px; min-height:44px; box-shadow:none; border:0; }
.device .support-input { background:transparent; color:var(--ui-ink); font-size:16px; }
.device :is(.support-send,.support-chat-open) { min-height:46px; background:var(--ui-primary); color:var(--ui-on-primary); box-shadow:none; font-size:14px; border-radius:var(--ui-control-radius); }
.device .support-send:disabled { background:var(--ui-fill); color:var(--ui-muted); }
.device .support-draft-bubble { background:var(--ui-fill); color:var(--ui-ink); font-size:15px; line-height:1.45; border-radius:18px; }
.device .support-receipt { font-size:11px; color:var(--ui-muted); }
.device .support-attachment-option, .device .support-chat-menu button { background:var(--ui-surface); color:var(--ui-ink); border-color:var(--ui-line); min-height:48px; font-size:14px; }
.device .support-delete-commit { background:var(--ui-danger-soft); color:var(--ui-danger); }
.device .notification-item { border-color:var(--ui-line); border-radius:18px; background:var(--ui-surface); box-shadow:var(--ui-shadow); }
.device .notification-item.unread { background:var(--ui-surface); border-color:var(--ui-accent); }
.device .notification-copy strong { font-size:14px; color:var(--ui-ink); }
.device :is(.notification-copy small,.notification-item:not(.unread) .notification-copy small,.notification-copy em,.notifications-group-label,.notification-detail-body,.notifications-empty p) { color:var(--ui-muted); font-size:12px; line-height:1.5; }
.device :is(.notification-symbol,.notification-symbol.payout,.notification-symbol.support,.notification-symbol.news,.notification-symbol.rate) { color:var(--ui-accent); background:var(--ui-fill); border-radius:12px; }
.device .notifications-read-all { color:var(--ui-accent); min-height:44px; font-size:13px; }
.device .notifications-filters span, .device .notifications-filters .selected span { background:var(--ui-fill); color:var(--ui-accent); }

/* Dialogs: restrained glass at navigation, opaque readable content inside sheets. */
.device :is(.wallet-info-sheet,.wallet-bank-picker,.wallet-bank-review,.wallet-bank-delete,.history-detail,.notification-detail,.support-delete-confirm,.profile-vip-rules-overlay) { background:var(--ui-scrim); backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px); }
.device :is(.ticker-modal-backdrop,.sell-choice-backdrop,.sell-confirm-backdrop,.sell-brand-choice-backdrop) { background:var(--ui-scrim); }
.device :is(.ticker-modal-card,.wallet-info-card,.wallet-bank-review-card,.wallet-bank-delete-card,.history-detail-panel,.notification-detail-card,.support-delete-card,.sell-confirm-card,.support-attachment,.support-chat-menu) { background:var(--ui-surface-raised); color:var(--ui-ink); border:1px solid var(--ui-line); border-radius:24px; box-shadow:var(--ui-shadow); }
.device :is(.wallet-bank-picker-panel,.sell-choice-panel,.sell-brand-choice-panel,.profile-vip-rules-sheet) { background:var(--ui-surface-raised); color:var(--ui-ink); border-color:var(--ui-line); border-radius:26px 26px 0 0; box-shadow:0 -8px 24px rgba(0,0,0,.08); }
.device :is(.ticker-modal-message,.ticker-modal-head strong,.notification-detail-card h3,.support-delete-card h3) { color:var(--ui-ink); }
.device :is(.ticker-modal-close,.wallet-info-close,.wallet-bank-picker-close,.wallet-bank-review-close,.wallet-bank-delete-cancel,.history-detail-top button,.notification-detail-close,.support-attachment-close,.support-delete-cancel,.sell-choice-close,.sell-confirm-close,.profile-vip-rules-close) { min-width:44px; min-height:44px; background:var(--ui-fill); color:var(--ui-accent); border-radius:12px; }
.device :is(.sell-choice-handle,.wallet-bank-picker-grab,.profile-vip-rules-handle) { background:var(--ui-line); }
.device :is(.profile-vip-rules-header,.profile-vip-rules-scroll section,.wallet-bank-review-row,.history-detail-meta) { border-color:var(--ui-line); }
.device :is(.wallet-info-eyebrow,.wallet-bank-review-eyebrow,.history-detail-top span,.notification-detail-type,.sell-confirm-head span,.profile-vip-rules-header span) { color:var(--ui-muted); font-size:11px; }

/* Live sign-in shares the same palette. Existing auth feedback stays authoritative. */
.beike-auth-layer { background:var(--ui-bg); color:var(--ui-ink); }
.beike-auth-card { background:var(--ui-surface); border-color:var(--ui-line); box-shadow:var(--ui-shadow); }
.beike-auth-brand,.beike-auth-intro small,.beike-auth-link,.beike-auth-footer a { color:var(--ui-accent); }
.beike-auth-brand span { background:var(--ui-primary); color:var(--ui-on-primary); }
.beike-auth-intro h1 { font-size:30px; color:var(--ui-ink); font-weight:650; }
.beike-auth-intro p,.beike-auth-help,.beike-auth-footer,.beike-auth-form label small { color:var(--ui-muted); font-size:12px; line-height:1.5; }
.beike-auth-tabs { background:var(--ui-fill); }
.beike-auth-tabs button { min-height:44px; color:var(--ui-muted); font-size:13px; }
.beike-auth-tabs button.selected { color:var(--ui-accent); background:var(--ui-surface-raised); }
.beike-auth-form label { color:var(--ui-ink); font-size:13px; }
.beike-auth-form input,.beike-auth-form input:focus { background:var(--ui-fill); color:var(--ui-ink); border-color:var(--ui-line); min-height:48px; }
.beike-auth-form input::placeholder { color:var(--ui-muted); }
.beike-auth-primary { min-height:48px; background:var(--ui-primary); color:var(--ui-on-primary); font-size:15px; }
.beike-auth-code-send { min-height:48px; background:var(--ui-fill); color:var(--ui-accent); border-color:var(--ui-line); font-size:12px; }
.beike-auth-link { min-height:44px; font-size:13px; }
.beike-auth-error { color:var(--ui-danger); background:var(--ui-danger-soft); font-size:13px; }
.beike-live-toast { background:var(--ui-ink); color:var(--ui-bg); border:1px solid var(--ui-line); font-size:13px; box-shadow:var(--ui-shadow); }

/* Full-state overrides: selected, hovered and unavailable rows stay in theme. */
.device .profile-security-row { background:transparent; }
.device .profile-security-row[type="button"]:active { background:var(--ui-fill); }
.device .profile-security-row > span > strong { font-size:14px; font-weight:600; }
.device .profile-security-row b { background:var(--ui-fill); }
.device .wallet-bank-select b { background:transparent; color:var(--ui-accent); }
.device .sell-face-label { color:var(--ui-ink); font-size:14px; }
.device .sell-face-label span, .device .sell-brand-heading > span { color:var(--ui-muted); }
.device .sell-brand-heading > span { font-size:10px; }
.device .sell-choice-tile { min-height:76px; }
.device .sell-choice-tile small { white-space:normal; font-size:11px; line-height:1.25; text-align:center; }
.device .sell-catalog-pending .sell-catalog-copy small { background:transparent; }
.device .wallet-pin-change-preview { color:var(--ui-accent); min-height:44px; font-size:12px; }
.device .support-faq-heading > span, .device .support-faq-heading span b { color:var(--ui-muted); font-size:11px; }
.device .support-topbar-title strong { white-space:normal; overflow:visible; line-height:1.2; }
.device .tasks-source-note p { color:var(--ui-muted); font-size:12px; }
.device .tasks-source-note > span { color:var(--ui-accent); }
.device .buddy-art-star { color:var(--ui-on-primary); }
.device .wheel-stage-glow { max-width:100%; left:0; right:0; margin:auto; }
.device .support-preview-entry.staff .support-draft-bubble { background:var(--ui-surface-raised); color:var(--ui-ink); border:1px solid var(--ui-line); }
.device .support-receipt-static { color:var(--ui-muted); font-size:11px; }
.device .profile-live-delete-form label { color:var(--ui-ink); font-size:13px; }
.device .profile-live-delete-form textarea { background:var(--ui-surface); color:var(--ui-ink); border-color:var(--ui-line); font-size:16px; }
.device .profile-live-delete-form [role="status"] { color:var(--ui-danger); font-size:12px; }
.device :is(.sell-choice-apply,.sell-review-button,.sell-confirm-submit,.wallet-withdraw-footer button,.wallet-bank-account-use,.wallet-pin-footer button,.profile-primary-button,.profile-flow-submit):disabled { background:var(--ui-fill); color:var(--ui-muted); opacity:.65; box-shadow:none; }

/* Modal actions should never compete with the main tab bar beneath them. */
.device.ui-dialog-open .bottom-nav { visibility:hidden; pointer-events:none; }
.device :is(.profile-vip-rules-overlay,.tasks-rules-sheet,.tasks-dialog,.notification-detail,.support-delete-confirm,.monthly-rules-overlay,.wheel-rules-overlay,.wheel-result-overlay,.new-user-rules-overlay) { top:-29px; bottom:-72px; }
.device :is(.wallet-bank-picker,.wallet-bank-review,.wallet-bank-delete,.wallet-info-sheet) { top:-29px; bottom:-76px; }
.device .support-attachment { bottom:-72px; box-shadow:0 0 0 100vmax var(--ui-scrim); }
.device.support-keyboard-open :is(.support-attachment,.support-delete-confirm) { bottom:0; }
.device .profile-vip-rules-sheet { padding-bottom:env(safe-area-inset-bottom,0px); }
@keyframes beike-page-enter { from { opacity:.92; } to { opacity:1; } }
@keyframes vip-reveal { from { opacity:.88; } to { opacity:1; } }

@media (max-width:360px) {
  .device :is(.wallet-topbar,.history-topbar,.profile-topbar,.sell-preview-topbar,.support-topbar) { gap:4px; }
  .device :is(.wallet-topbar,.history-topbar,.profile-topbar,.sell-preview-topbar,.support-topbar) strong { font-size:15px; }
  .device :is(.header-icon,.page-header-icon) { width:36px; }
  .device .support-more { min-width:32px; }
  .device .profile-menu { padding:0 10px; }
  .device .profile-menu-copy { font-size:13px; }
  .device .profile-menu-value { font-size:11px; max-width:44%; }
  .device .profile-menu > button,.device .profile-menu-line { gap:7px; }
  .device .profile-copy { min-width:28px; }
  .device .profile-vip-hero { margin-left:12px; margin-right:12px; padding:16px; }
  .device .profile-vip-body { padding-left:12px; padding-right:12px; }
  .device .profile-vip-hero-main strong.profile-vip-display { font-size:42px; }
  .device .profile-vip-medallion { width:76px; height:76px; }
  .device .profile-vip-rules-table > div { font-size:12px; gap:3px; padding:8px 5px; }
  .device .history-list .history-item { padding:12px 9px; gap:7px; }
  .device .history-item-icon { width:32px; height:32px; }
  .device .history-item-side strong { font-size:13px; }
  .device .sell-choice-regions { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (prefers-reduced-motion:reduce) {
  .device *, .device *::before, .device *::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  .device .bottom-nav { background:var(--ui-surface); }
}

/* UX review: compact context, explicit next steps and readable status. */
.device .history-filter-label { margin:2px 2px 7px; color:var(--ui-muted); font-size:12px; font-weight:600; }
.device .history-status-label { margin-top:14px; }
.device .history-filters { padding:0; gap:5px; background:transparent; margin-top:0; }
.device .history-filters button { border:1px solid var(--ui-line); background:var(--ui-surface); font-size:12px; }
.device .history-filters button[aria-pressed="true"] { background:var(--ui-fill); border-color:var(--ui-accent); box-shadow:none; }
.device .history-list .history-item { display:grid; grid-template-columns:32px minmax(0,1fr) auto; row-gap:5px; }
.device .history-item-main,.device .history-item-side { display:contents; }
.device .history-item-icon { grid-column:1; grid-row:1 / 4; width:32px; height:32px; align-self:start; }
.device .history-item-main strong { grid-column:2; grid-row:1; white-space:normal; overflow-wrap:anywhere; text-align:left; }
.device .history-item-side strong { grid-column:3; grid-row:1; text-align:right; }
.device .history-item-main small { grid-column:2 / 4; grid-row:2; white-space:normal; text-align:left; font-size:12px; }
.device .history-item-main em { grid-column:2; grid-row:3; justify-self:start; white-space:normal; max-width:100%; }
.device .history-item-side small { grid-column:3; grid-row:3; align-self:center; white-space:nowrap; font-size:11px; }
.device .history-next-action { margin-top:12px; width:100%; min-height:44px; border:0; border-radius:14px; background:var(--ui-primary); color:var(--ui-on-primary); font-family:inherit; font-size:14px; font-weight:600; }
.device .wallet-withdraw-prerequisites { margin:16px 0; padding:14px; border:1px solid var(--ui-line); border-radius:18px; background:var(--ui-surface); }
.device .wallet-prerequisite-title { margin:0 0 6px; font-size:14px; font-weight:650; color:var(--ui-ink); }
.device .wallet-prerequisite-item { display:grid; grid-template-columns:22px minmax(0,1fr) auto; align-items:center; gap:8px; padding:10px 0; }
.device .wallet-prerequisite-item + .wallet-prerequisite-item { border-top:1px solid var(--ui-line); }
.device .wallet-prerequisite-status { display:grid; place-items:center; width:22px; height:22px; border-radius:50%; color:var(--ui-gold); background:var(--ui-gold-soft); font-size:12px; }
.device .wallet-prerequisite-item.is-ready .wallet-prerequisite-status { color:var(--ui-accent); background:var(--ui-fill); }
.device .wallet-prerequisite-copy strong,.device .wallet-prerequisite-copy small { display:block; }
.device .wallet-prerequisite-copy strong { font-size:13px; color:var(--ui-ink); }
.device .wallet-prerequisite-copy small { margin-top:4px; font-size:12px; line-height:1.4; color:var(--ui-muted); overflow-wrap:anywhere; }
.device .wallet-prerequisite-action { max-width:95px; min-height:44px; padding:7px 10px; border:0; border-radius:12px; background:var(--ui-fill); color:var(--ui-accent); font:inherit; font-size:12px; font-weight:600; }
.device .sell-preview-heading { padding-top:8px; padding-bottom:14px; }
.device .sell-preview-heading h2 { font-size:23px; margin-top:6px; margin-bottom:5px; }
.device .support-chat-heading { padding:4px 2px 12px; }
.device.support-keyboard-open .support-chat-heading { display:none; }
.device .sell-action-hint { margin:0 0 8px; color:var(--ui-muted); font-size:12px; line-height:1.4; text-align:center; }
.device .sell-action-hint:empty { display:none; }
.device .sell-brand-view { padding-bottom:130px; }
.device .sell-catalog-status { display:flex; flex-direction:column; align-items:center; gap:14px; padding:28px 18px; border:1px solid var(--ui-line); border-radius:20px; background:var(--ui-surface); color:var(--ui-muted); font-size:14px; line-height:1.5; text-align:center; }
.device .sell-catalog-status button { min-width:96px; min-height:44px; padding:10px 18px; border:0; border-radius:12px; background:var(--ui-fill); color:var(--ui-accent); font:inherit; font-weight:600; }
.device .sell-coupon-intent { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; padding:12px; border:1px solid var(--ui-line); border-radius:14px; color:var(--ui-muted); background:var(--ui-fill); }
.device .sell-coupon-intent > span { flex-basis:100%; font-size:12px; line-height:1.5; }
.device .sell-coupon-intent button { flex:1; min-height:44px; padding:6px; border:0; border-radius:10px; background:var(--ui-surface); color:var(--ui-accent); font:inherit; font-size:12px; font-weight:600; }
.device .sell-upload-format-note { margin:8px 0; color:var(--ui-muted); font-size:12px; line-height:1.4; }
.device .sell-upload-error { padding:12px; border:1px solid var(--ui-line); border-radius:14px; background:var(--ui-danger-soft); color:var(--ui-danger); font-size:12px; line-height:1.4; }
.device .sell-upload-error strong,.device .sell-upload-error span { display:block; overflow-wrap:anywhere; }
.device .tasks-return-wrapper { flex:none; padding:0 16px 8px; }
.device .tasks-return-control { min-height:40px; padding:8px 12px; border:1px solid var(--ui-line); border-radius:12px; background:var(--ui-fill); color:var(--ui-accent); font:inherit; font-size:13px; font-weight:600; }
.device .profile-vip-progress-head { flex-wrap:wrap; gap:6px; }
.device .profile-vip-benefit small { white-space:normal; overflow-wrap:anywhere; }
.device .profile-vip-rules-table > div > * { min-width:0; overflow-wrap:anywhere; }
.device :is(.sell-catalog-status,.sell-coupon-intent,.history-next-action,.wallet-prerequisite-action)[hidden] { display:none!important; }
.device .wallet-amount-block { padding:16px 14px 14px; }
.device .wallet-amount-block label { margin:0 0 8px; letter-spacing:.04em; }
.device .wallet-amount-input { height:54px; gap:10px; }
.device .wallet-amount-input > span { font-size:28px; }
.device .wallet-amount-balance { margin-top:8px; flex-wrap:wrap; }
.device .wallet-withdraw-all { border-radius:10px; padding:8px; min-height:40px; }
.device .wallet-payment-title { margin:20px 2px 10px; }
.device .wallet-bank-select { min-height:68px; padding:12px; }
