/* Approved Telegram Mini App design: native dark, restrained surfaces. */
html[data-appearance="dark"] body#mini-app-body {
  --er-page:#061426; --er-bg:#061426; --er-header:#061426; --er-surface:#101f32; --er-soft:#16263b;
  --er-line:#304258; --er-text:#fcffff; --er-muted:#b7c5d8; --er-link:#37bee9; --er-accent:#0593c6;
  --bg:#061426; --surface:#101f32; --section:#101f32; --control:#16263b; --text:#fcffff; --muted:#b7c5d8; --line:#304258;
  --ref-bg:#061426; --ref-text:#fcffff; --ref-muted:#b7c5d8; --ref-line:#304258; --ref-soft:#16263b; --ref-blue:#37bee9;
  --hy-bg:#061426; --hy-surface:#101f32; --hy-surface-soft:#16263b; --hy-text:#fcffff; --hy-muted:#b7c5d8; --hy-line:#304258;
  background:#061426 !important; color:#fcffff !important; color-scheme:dark;
}
html[data-appearance="dark"] body#mini-app-body :is(.app-shell,.app-header) { background:#061426 !important; color:#fcffff !important; box-shadow:none !important; }
/* Telegram supplies the native header, close control and BackButton. */
html[data-appearance] body#mini-app-body.telegram-native-host.native-back-supported .app-header { display:none !important; }
html[data-appearance="dark"] body#mini-app-body :is(h1,h2,h3,h4) { color:#fcffff !important; letter-spacing:-.02em !important; }
html[data-appearance="dark"] body#mini-app-body :is(.screen-heading h1,.screen-title-row h1) { font-size:24px !important; line-height:1.2; }
html[data-appearance="dark"] body#mini-app-body :is(.screen-heading p,.section-header small,.form-help,.sheet-header p,.sheet-option small,.gram-payout-caption) { color:#b7c5d8 !important; }
html[data-appearance="dark"] body#mini-app-body #home-view:not([hidden]) { gap:14px !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-onboarding { order:0; background:transparent !important; padding:0 !important; margin:0 !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-onboarding-copy { display:none !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-onboarding:has(.home-seller-access-note[hidden]) { display:none !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-balance-card:not([hidden]) { order:1; min-height:100px !important; padding:12px 0 6px !important; margin:0 !important; background:transparent !important; box-shadow:none !important; border:0 !important; border-radius:0 !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-balance-card :is(small,em) { color:#b7c5d8 !important; font-weight:500; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-balance-amount { flex-direction:row !important; justify-content:flex-start !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-balance-amount b { color:#fcffff !important; font-size:clamp(36px,10vw,48px) !important; line-height:1.1; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-balance-action { color:#b7c5d8 !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .gram-held { order:2; min-height:42px; background:#101f32 !important; border:1px solid #304258; border-radius:12px !important; color:#b7c5d8 !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .gram-held strong { color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .gram-home-actions { order:3; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) !important; gap:10px; }
html[data-appearance="dark"] body#mini-app-body #home-view .gram-home-actions button { min-height:52px !important; font-size:14px !important; border-radius:12px !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .gram-home-actions .home-primary { background:#047ba6 !important; color:white !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .gram-home-actions .home-secondary { background:#16263b !important; color:#fcffff !important; border:1px solid #304258 !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .c3-activity-section { order:4; margin-top:14px !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .section-header h2 { color:#b7c5d8 !important; font-size:15px !important; font-weight:600; }
html[data-appearance="dark"] body#mini-app-body .app-nav.app-nav-capsule:not([hidden]) { width:min(100%,560px) !important; grid-template-columns:repeat(4,minmax(0,1fr)) !important; bottom:0 !important; min-height:64px !important; padding:6px 8px calc(6px + var(--safe-bottom)) !important; background:#061426 !important; border:0 !important; border-top:1px solid #26374c !important; border-radius:18px 18px 0 0 !important; box-shadow:none !important; }
html[data-appearance="dark"] body#mini-app-body .app-nav.app-nav-capsule button { min-height:52px !important; color:#b7c5d8 !important; background:transparent !important; }
html[data-appearance="dark"] body#mini-app-body .app-nav.app-nav-capsule button[aria-current="page"] { color:#29b9e8 !important; }
html[data-appearance="dark"] body#mini-app-body :is(.settings-group,.composer-group,.sheet-group,.ledger-item,.payout-summary-list,.payout-balance-card,.wallet-account-summary,.wallet-connection-info,.settlement-preview,.invoice-composer-tools,.seller-template-trigger,.faq-list,.seller-access-conversation,.seller-access-selected-format,.plan-checkout-sheet,.plan-checkout-payment,.seller-plan-card,.faq-search,.channel-connect-card,.profile-trust,.system-panel) { background:#101f32 !important; color:#fcffff !important; border-color:#304258 !important; box-shadow:none !important; border-radius:14px !important; }
html[data-appearance="dark"] body#mini-app-body :is(.settings-row,.activity-row,.ledger-item,.sheet-option,.composer-row,.faq-list summary) { color:#fcffff !important; border-color:#304258 !important; }
html[data-appearance="dark"] body#mini-app-body :is(.settings-row,.activity-row,.sheet-option) :is(small,time),
html[data-appearance="dark"] body#mini-app-body :is(.wallet-account-summary,.payout-balance-card) :is(small,em) { color:#b7c5d8 !important; }
html[data-appearance="dark"] body#mini-app-body :is(.settings-icon,.row-icon,.activity-icon) { background:#16263b !important; color:#d5e3f0 !important; border-radius:10px !important; }
html[data-appearance="dark"] body#mini-app-body :is(input:not([type=checkbox]):not([type=radio]),textarea,select) { color:#fcffff !important; background:#16263b !important; border-color:#40536b !important; caret-color:#42c6ed; }
html[data-appearance="dark"] body#mini-app-body :is(input,textarea)::placeholder { color:#aabbd0 !important; opacity:1; }
html[data-appearance="dark"] body#mini-app-body :is(.amount-composer,.ledger-search,.ledger-tabs,.payout-balance-tabs,.composer-progress,.faq-hero) { background:#101f32 !important; border-color:#304258 !important; color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body :is(.bottom-sheet,.plan-checkout-sheet,.plan-checkout-payment) { background:#101f32 !important; color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body .bottom-sheet { border:1px solid #304258; border-radius:20px 20px 0 0 !important; }
html[data-appearance="dark"] body#mini-app-body :is(.fallback-primary,.result-primary,.journal-create,.wallet-add-primary,.account-stars-primary,.dispute-send,#request-ton-payout) { background:#047ba6 !important; color:#fff !important; border:0 !important; border-radius:12px !important; }
html[data-appearance="dark"] body#mini-app-body :is(.fallback-primary,.result-primary,.journal-create,.wallet-add-primary,.account-stars-primary,.dispute-send,#request-ton-payout):disabled { background:#304258 !important; color:#c0cee0 !important; opacity:.75; }
html[data-appearance="dark"] body#mini-app-body :is(.ledger-tabs [aria-selected="true"],.payout-balance-tabs [aria-selected="true"]) { background:#047ba6 !important; color:#fff !important; }
html[data-appearance="dark"] body#mini-app-body :is(#plan-view .seller-plan-card.start,#plan-view .seller-plan-card.pro,#plan-view .seller-plan-card.business,#plan-checkout-view .plan-detail-cover) { background:#101f32 !important; border:1px solid #304258 !important; }
html[data-appearance="dark"] body#mini-app-body :is(.profile-head,.gram-wallet-trust) { background:#101f32 !important; color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body #payouts-view .payout-wallet-card { background:#101f32 !important; color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body :is(button,a,input,select,textarea):focus-visible { outline:3px solid #db3996 !important; outline-offset:2px; }
html[data-appearance="dark"] body#mini-app-body ::selection { background:#176889; color:white; }
@media (max-width:360px) { html[data-appearance="dark"] body#mini-app-body #home-view .gram-home-actions button { font-size:12px !important; } }
@media (prefers-reduced-motion:reduce) { html[data-appearance] body#mini-app-body * { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; } }

html[data-appearance] body#mini-app-body .app-nav.app-nav-capsule:not([hidden]) { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
html[data-appearance] body#mini-app-body.telegram-native-host:not(.native-back-supported) .app-header { display:flex !important; }
/* Seller review inherited its own light-only skin; map its surfaces to the same design. */
html[data-appearance="dark"] body#mini-app-body {
  --review-blue:#37bee9; --review-blue-strong:#0593c6; --review-blue-soft:#16263b;
  --review-ink:#fcffff; --review-muted:#b7c5d8; --review-line:#304258; --review-canvas:#061426;
}
html[data-appearance="dark"] body#mini-app-body :is(#seller-access-view,#seller-access-pending,#seller-access-form,#seller-access-form .seller-form-head,#seller-access-form .seller-form-progress) { background:#061426 !important; color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body :is(#seller-access-pending .seller-review-head,#seller-access-pending .seller-access-summary > button,#seller-access-pending .seller-access-message-bubble,#seller-access-form .seller-access-use-cases label,#seller-access-form .seller-access-terms,#seller-access-form .seller-link-input) { background:#101f32 !important; border-color:#304258 !important; color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body #seller-access-form .seller-access-use-cases input:checked + span { background:#162f46 !important; box-shadow:inset 0 0 0 1px #0593c6 !important; }
html[data-appearance="dark"] body#mini-app-body :is(#seller-access-pending .seller-review-copy strong,#seller-access-pending .seller-access-summary strong,#seller-access-form .seller-access-use-cases label b) { color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body :is(#seller-access-form .seller-access-description,#seller-access-pending .seller-access-status-help,#seller-access-form .seller-access-use-cases label small) { color:#b7c5d8 !important; }
html[data-appearance="dark"] body#mini-app-body:has(#seller-access-view:not([hidden])) .native-action-fallback { background:#061426 !important; border-color:#304258 !important; box-shadow:none !important; }
html[data-appearance="dark"] body#mini-app-body:has(#seller-access-view:not([hidden])) #fallback-main { background:#047ba6 !important; color:#fff !important; box-shadow:none !important; }
/* Returning sellers must retain direct payout access. */
html[data-appearance="dark"] body#mini-app-body #home-view.is-returning .gram-home-actions .home-secondary:not([hidden]) { display:flex !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .gram-home-actions .home-secondary { display:flex !important; align-items:center; justify-content:center; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-balance-card:not([hidden]) { align-items:flex-start !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-balance-amount b { font-size:clamp(42px,11vw,48px) !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-balance-action { display:none !important; }
html[data-appearance="dark"] body#mini-app-body #wallet-view .wallet-add-primary { background:#047ba6 !important; color:#fff !important; font-size:15px !important; }
html[data-appearance="dark"] body#mini-app-body #wallet-view .wallet-account-summary { background:#101f32 !important; border-color:#304258 !important; }
html[data-appearance="dark"] body#mini-app-body #profile-view .profile-head { background:transparent !important; padding:12px 0 20px !important; box-shadow:none !important; }
html[data-appearance="dark"] body#mini-app-body :is(#home-view,#wallet-view,#receipts-view,#payouts-view,#new-view,#detail-view,#purchase-view,#profile-view,#faq-view,#connections-view,#channels-view,#account-stars-view,#plan-view,#plan-checkout-view) { background:#061426 !important; color:#fcffff; }
/* Invoice composer: retain all real required fields and settlement terms. */
html[data-appearance="dark"] body#mini-app-body #new-view .screen-heading { margin:0 0 20px !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .screen-heading h1 { font-size:26px !important; }
html[data-appearance="dark"] body#mini-app-body #new-view :is(.composer-progress,.seller-template-trigger,.invoice-composer-tools,.composer-group,.settlement-preview,.marketplace-terms) { background:#101f32 !important; border:1px solid #304258 !important; border-radius:14px !important; color:#fcffff !important; box-shadow:none !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .composer-progress { margin-bottom:12px !important; padding:12px !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .amount-composer { display:block !important; width:100%; padding:14px !important; margin:16px 0 12px !important; background:#101f32 !important; border:1px solid #304258 !important; border-radius:14px !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .amount-composer > span:first-child { color:#b7c5d8 !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .amount-input { display:flex !important; justify-content:flex-start !important; width:100% !important; min-height:64px !important; margin:6px 0 0 !important; padding:0 12px !important; background:#16263b !important; border:1px solid #40536b !important; border-radius:12px !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .amount-input input { width:min(75%,8ch) !important; min-width:0 !important; height:62px !important; font-size:36px !important; text-align:left !important; background:transparent !important; color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body #new-view :is(.composer-row,.settlement-preview-grid > div,.settlement-timing summary) { color:#fcffff !important; border-color:#304258 !important; }
html[data-appearance="dark"] body#mini-app-body #new-view :is(.composer-row b,.composer-row strong,.settlement-preview strong) { color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body #new-view :is(.composer-row small,.settlement-preview span,.settlement-timing p) { color:#b7c5d8 !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .composer-row input { background:transparent !important; color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .invoice-composer-tools button { color:#72d2ef !important; }
/* Invoice journal, seller/buyer details, messages and settlement. */
html[data-appearance="dark"] body#mini-app-body #receipts-view :is(.ledger-search,.ledger-tabs,.ledger-rows) { background:#101f32 !important; border-color:#304258 !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .ledger-item { min-height:72px !important; padding:12px 14px !important; background:#101f32 !important; border-bottom:1px solid #304258 !important; color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .ledger-item:last-child { border-bottom:0 !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view :is(.ledger-item b,.ledger-item strong) { color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view :is(.ledger-item small,.ledger-item time,.ledger-group-title) { color:#b7c5d8 !important; }
html[data-appearance="dark"] body#mini-app-body :is(#detail-view,#purchase-view) :is(.invoice-hero,.result-page,.purchase-summary) { background:transparent !important; color:#fcffff !important; box-shadow:none !important; }
html[data-appearance="dark"] body#mini-app-body :is(#detail-view,#purchase-view) :is(.star-sale-proof,.result-receipt,.result-field,.result-evidence,.result-guide,.result-problem,.settlement-details,.purchase-summary,.order-timeline,.result-finance-panel) { background:#101f32 !important; border:1px solid #304258 !important; border-radius:14px !important; color:#fcffff !important; box-shadow:none !important; }
html[data-appearance="dark"] body#mini-app-body :is(#detail-view,#purchase-view) :is(.invoice-purpose,.invoice-expiry,.result-receipt small,.result-guide p,.result-page-head p) { color:#b7c5d8 !important; }
html[data-appearance="dark"] body#mini-app-body :is(#detail-view,#purchase-view) :is(.result-receipt strong,.result-receipt b,.star-sale-proof strong,.result-delivery strong) { color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body :is(.dispute-compose-box,.dispute-message,.result-compose,.result-field textarea) { background:#16263b !important; border-color:#304258 !important; color:#fcffff !important; }
/* Payout, wallets, profile, access, tariff and support. */
html[data-appearance="dark"] body#mini-app-body #payouts-view :is(.payout-balance-card,.payout-summary-list,.payout-guide,.payout-wallet-card,.payout-history-row) { background:#101f32 !important; color:#fcffff !important; border-color:#304258 !important; box-shadow:none !important; }
html[data-appearance="dark"] body#mini-app-body #payouts-view :is(.payout-balance-card strong,.payout-wallet-card b,.payout-summary-list strong) { color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body #payouts-view :is(.payout-balance-card small,.payout-wallet-card small,.payout-guide-note,.gram-payout-caption) { color:#b7c5d8 !important; }
html[data-appearance="dark"] body#mini-app-body #wallet-view :is(.wallet-account-summary,.wallet-connection-info,.gram-wallet-trust,.wallet-connections) { background:#101f32 !important; border-color:#304258 !important; color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body #wallet-view :is(.wallet-account-summary h2,.gram-wallet-trust strong,.wallet-connections b) { color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body #wallet-view :is(.wallet-account-summary small,.gram-wallet-trust small,.wallet-connection-info p) { color:#b7c5d8 !important; }
html[data-appearance="dark"] body#mini-app-body #profile-view :is(.settings-group,.profile-trust) { background:#101f32 !important; border-color:#304258 !important; }
html[data-appearance="dark"] body#mini-app-body :is(#plan-view,#plan-checkout-view) :is(.seller-plan-card,.plan-checkout-sheet,.plan-checkout-payment) { background:#101f32 !important; color:#fcffff !important; border-color:#304258 !important; }
html[data-appearance="dark"] body#mini-app-body #plan-view .seller-plan-card { min-height:130px !important; }
html[data-appearance="dark"] body#mini-app-body #plan-view .seller-plan-card img.seller-plan-art { opacity:.25; }
html[data-appearance="dark"] body#mini-app-body :is(#faq-view,#connections-view,#channels-view,#account-stars-view) :is(.settings-group,.faq-list,.faq-hero,.channel-connect-card,.account-stars-connection,.account-stars-record,.account-stars-notice) { background:#101f32 !important; border-color:#304258 !important; color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body :is(#faq-view,#connections-view,#channels-view,#account-stars-view) :is(p,small) { color:#b7c5d8 !important; }
html[data-appearance="dark"] body#mini-app-body :is(.bottom-sheet,.sheet-group,.sheet-option,.sheet-manual-wallet) { background:#101f32 !important; color:#fcffff !important; border-color:#304258 !important; }
html[data-appearance="dark"] body#mini-app-body :is(.bottom-sheet h2,.sheet-option b,.sheet-manual-wallet b) { color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body :is(.bottom-sheet small,.bottom-sheet p) { color:#b7c5d8 !important; }
/* Mobile geometry aligned with the selected reference. */
html[data-appearance="dark"] body#mini-app-body .app-shell { background:#061426 !important; }
html[data-appearance="dark"] body#mini-app-body #new-view > .screen-heading { display:block !important; margin:6px 0 22px !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .screen-heading h1 { display:block !important; margin:0 !important; font-size:26px !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .screen-heading p { margin:8px 0 0 !important; color:#b7c5d8 !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .amount-composer { min-height:0 !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .amount-composer > span:first-child { text-align:left !important; letter-spacing:0 !important; font-size:14px !important; text-transform:none !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .amount-input { margin:8px 0 0 !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .amount-star-coin { flex:0 0 30px !important; width:30px !important; height:30px !important; filter:none !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .c3-activity-ledger { overflow:hidden !important; background:#101f32 !important; border:1px solid #304258 !important; border-radius:14px !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .activity-row { display:grid !important; grid-template-columns:36px minmax(0,1fr) auto !important; min-height:68px !important; padding:10px 12px !important; gap:10px !important; background:transparent !important; border-color:#304258 !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .activity-row:last-child { border-bottom:0 !important; }
html[data-appearance="dark"] body#mini-app-body #home-view :is(.activity-description,.activity-value) { display:grid !important; gap:4px !important; min-width:0 !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .activity-description b { color:#fcffff !important; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .activity-description time { color:#b7c5d8 !important; font-size:11px !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .activity-value { justify-items:end; text-align:right; }
html[data-appearance="dark"] body#mini-app-body #home-view .activity-value b { color:#fcffff !important; font-size:14px !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .activity-value .status-stamp { font-size:10px !important; }
/* Invoice list and detail use the reference's compact information hierarchy. */
html[data-appearance="dark"] body#mini-app-body #receipts-view .ledger-item { display:grid !important; grid-template-columns:36px minmax(0,1fr) !important; gap:10px !important; align-items:center; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .ledger-leading { display:grid; width:34px; height:34px; place-items:center; border-radius:9px; background:#1c304b; color:#d9e8f7; font-size:19px; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .ledger-main { display:grid; min-width:0; gap:4px; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .invoice-item-heading { display:flex; justify-content:space-between; gap:12px; align-items:baseline; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .invoice-item-heading b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .invoice-item-meta { display:flex; justify-content:space-between; gap:8px; align-items:end; }
html[data-appearance="dark"] body#mini-app-body #detail-view .invoice-hero { display:flex !important; flex-direction:column; align-items:flex-start !important; gap:8px; padding:18px !important; text-align:left !important; background:#101f32 !important; border:1px solid #304258 !important; border-radius:14px !important; }
html[data-appearance="dark"] body#mini-app-body #detail-view .invoice-hero .status-stamp { order:1; align-self:flex-start; }
html[data-appearance="dark"] body#mini-app-body #detail-view .invoice-hero h1 { order:0; margin:0 !important; text-align:left !important; color:#fcffff !important; font-size:20px !important; }
html[data-appearance="dark"] body#mini-app-body #detail-view .invoice-hero .invoice-amount { order:2; margin:0 !important; font-size:28px !important; line-height:1.2 !important; }
html[data-appearance="dark"] body#mini-app-body #detail-view .invoice-hero .invoice-amount img { width:24px !important; height:24px !important; }
html[data-appearance="dark"] body#mini-app-body #detail-view .invoice-hero .network-chip { order:3; margin:0 !important; }
html[data-appearance="dark"] body#mini-app-body #detail-view .invoice-hero .invoice-purpose { order:4; margin:0 !important; text-align:left !important; }
html[data-appearance="dark"] body#mini-app-body #detail-view .invoice-hero .invoice-expiry { order:5; margin:0 !important; }
/* Recover the labels suppressed by the earlier skin and keep forms compact. */
html[data-appearance="dark"] { background:#061426 !important; color-scheme:dark !important; --ref-bg:#061426; }
html[data-appearance="dark"] body#mini-app-body #new-view .screen-heading p { display:none !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .amount-composer { background:transparent !important; border:0 !important; padding:0 !important; text-align:left !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .amount-composer > span:first-child { display:block !important; text-align:left !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .amount-input input { flex:1 1 auto !important; margin:0 !important; text-align:left !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .amount-input { justify-content:space-between !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .invoice-composer-tools button { overflow:hidden; font-size:12px !important; white-space:nowrap; }
html[data-appearance="dark"] body#mini-app-body #payouts-view > .screen-heading { display:block !important; margin:6px 0 16px !important; }
html[data-appearance="dark"] body#mini-app-body #payouts-view .payout-balance-card { min-height:0 !important; grid-template-columns:minmax(0,1fr) !important; padding:16px !important; }
html[data-appearance="dark"] body#mini-app-body #payouts-view .payout-balance-card > img { display:none !important; }
html[data-appearance="dark"] body#mini-app-body #payouts-view .gram-payout-steps { margin-top:0 !important; }
/* Match compact reference rows while keeping real tariff and fee information. */
html[data-appearance="dark"] body#mini-app-body #plan-view .seller-plan-grid { display:grid !important; grid-template-columns:1fr !important; gap:10px !important; }
html[data-appearance="dark"] body#mini-app-body #plan-view .seller-plan-card { display:grid !important; grid-template-columns:1fr !important; grid-template-rows:auto auto !important; min-height:0 !important; padding:14px !important; gap:10px !important; background:#101f32 !important; border:1px solid #304258 !important; border-radius:14px !important; box-shadow:none !important; }
html[data-appearance="dark"] body#mini-app-body #plan-view .seller-plan-card img.seller-plan-art { display:none !important; }
html[data-appearance="dark"] body#mini-app-body #plan-view .seller-plan-card header { width:100% !important; padding:0 !important; }
html[data-appearance="dark"] body#mini-app-body #plan-view .seller-plan-card header h2 { font-size:17px !important; margin:0 0 4px !important; }
html[data-appearance="dark"] body#mini-app-body #plan-view .seller-plan-card header small { color:#b7c5d8 !important; font-size:12px !important; }
html[data-appearance="dark"] body#mini-app-body #plan-view .seller-plan-strip { position:static !important; margin:0 !important; padding:8px 0 0 !important; background:transparent !important; border-top:1px solid #304258 !important; }
html[data-appearance="dark"] body#mini-app-body #plan-view .plan-operator-note { background:#101f32 !important; color:#b7c5d8 !important; border:1px solid #304258 !important; border-radius:14px !important; }
/* Only the chosen language or appearance shows a check. */
html[data-appearance="dark"] body#mini-app-body :is(#language-sheet,#appearance-sheet) .sheet-option > i.ph-check { width:22px !important; height:22px !important; display:grid !important; place-items:center; border:1px solid #91a7be !important; border-radius:50% !important; background:transparent !important; box-shadow:none !important; font-size:14px !important; }
html[data-appearance="dark"] body#mini-app-body :is(#language-sheet,#appearance-sheet) .sheet-option:not(.selected) > i.ph-check { color:transparent !important; }
html[data-appearance="dark"] body#mini-app-body :is(#language-sheet,#appearance-sheet) .sheet-option.selected > i.ph-check { color:#39c4ee !important; border-color:#39c4ee !important; }
html[data-appearance="dark"] body#mini-app-body :is(#language-sheet,#appearance-sheet) :is(.language-mark,.appearance-mark) { box-shadow:none !important; border-radius:9px !important; background:#1c304b !important; color:#d7e5f3 !important; }
/* Prevent the legacy compound selector from recolouring the page gutters. */
html[data-appearance="dark"] body#mini-app-body #app.app-shell { background:#061426 !important; }
html[data-appearance="dark"] body#mini-app-body #detail-view .invoice-hero .stars-amount { display:flex !important; align-items:baseline !important; justify-content:flex-start !important; gap:6px !important; }
html[data-appearance="dark"] body#mini-app-body #detail-view .invoice-hero .stars-amount > span { color:#fcffff !important; font-size:28px !important; line-height:1.2 !important; }
html[data-appearance="dark"] body#mini-app-body #detail-view .invoice-hero .stars-amount > small { color:#b7c5d8 !important; font-size:13px !important; text-align:left !important; }
/* Give the complete amount field a visible focus ring without clipping its text. */
html[data-appearance="dark"] body#mini-app-body #new-view .amount-input:focus-within { outline:0 !important; border-color:#39c4ee !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .amount-input input:focus-visible { outline:0 !important; }
/* Consistent focus and account Stars typography, without hiding disclosures. */
html[data-appearance="dark"] body#mini-app-body :is(button,a,select,textarea):focus-visible { outline:2px solid #39c4ee !important; outline-offset:2px; }
html[data-appearance="dark"] body#mini-app-body #account-stars-view { --account-blue:#39c4ee; --account-ink:#fcffff; --account-muted:#b7c5d8; padding:6px 0 100px !important; font-family:ExactManrope,sans-serif !important; }
html[data-appearance="dark"] body#mini-app-body #account-stars-view :is(h1,h2,h3,b,strong,dd) { color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body #account-stars-view :is(p,dt,small) { color:#b7c5d8 !important; }
html[data-appearance="dark"] body#mini-app-body #account-stars-view :is(.account-stars-connection,.account-stars-record) { background:#101f32 !important; border:1px solid #304258 !important; border-radius:14px !important; padding:14px !important; }
html[data-appearance="dark"] body#mini-app-body #account-stars-view :is(.account-stars-connection button,.account-stars-record-actions button) { background:#16263b !important; color:#d7e8f5 !important; }
html[data-appearance="dark"] body#mini-app-body #account-stars-view .account-stars-primary { background:#047ba6 !important; color:#fff !important; box-shadow:none !important; }
html[data-appearance="dark"] body#mini-app-body #account-stars-view .account-stars-notice { background:#101f32 !important; color:#b7c5d8 !important; border:1px solid #304258 !important; }
html[data-appearance="dark"] body#mini-app-body #account-stars-view .account-stars-error { background:#3b202d !important; color:#ffd8df !important; }
/* Calm, readable help and channel empty states, preserving their real disclosures. */
html[data-appearance="dark"] body#mini-app-body #faq-view .faq-hero { display:flex !important; padding:4px 0 12px !important; margin:0 0 8px !important; background:transparent !important; border:0 !important; box-shadow:none !important; }
html[data-appearance="dark"] body#mini-app-body #faq-view .faq-hero > span { display:none !important; }
html[data-appearance="dark"] body#mini-app-body #faq-view .faq-hero h1 { margin:0 0 6px !important; font-size:26px !important; }
html[data-appearance="dark"] body#mini-app-body #faq-view .faq-hero p { color:#b7c5d8 !important; }
html[data-appearance="dark"] body#mini-app-body #channels-view .channel-connect-card { display:grid !important; gap:12px !important; padding:18px !important; min-height:0 !important; text-align:left !important; }
html[data-appearance="dark"] body#mini-app-body #channels-view .channel-connect-card > img { display:none !important; }
html[data-appearance="dark"] body#mini-app-body #channels-view .channel-connect-card h2 { margin:0 0 8px !important; font-size:22px !important; line-height:1.2 !important; text-align:left !important; }
html[data-appearance="dark"] body#mini-app-body #channels-view .channel-connect-card p { margin:0 !important; color:#b7c5d8 !important; text-align:left !important; }
html[data-appearance="dark"] body#mini-app-body #channels-view .channel-connect-card button:disabled { min-height:46px !important; background:#28394d !important; color:#b7c5d8 !important; border:0 !important; opacity:1 !important; }
/* The legacy channel card used a two-column grid for artwork. */
html[data-appearance="dark"] body#mini-app-body #channels-view .channel-connect-card { grid-template-columns:minmax(0,1fr) !important; grid-template-rows:auto auto !important; }
html[data-appearance="dark"] body#mini-app-body #channels-view .channel-connect-card > div { grid-column:1 / -1 !important; grid-row:auto !important; width:100% !important; min-width:0 !important; max-width:none !important; }
html[data-appearance="dark"] body#mini-app-body #channels-view .channel-connect-card > button { grid-column:1 / -1 !important; grid-row:auto !important; width:100% !important; min-width:0 !important; max-width:none !important; }
html[data-appearance="dark"] body#mini-app-body #channels-view .channel-connect-card :is(h2,p) { width:auto !important; max-width:none !important; }
/* Keep invoice status and settlement rows compact and readable at phone widths. */
html[data-appearance="dark"] body#mini-app-body #detail-view .invoice-hero .status-stamp { max-width:none !important; white-space:nowrap !important; }
html[data-appearance="dark"] body#mini-app-body #detail-view .star-sale-proof { gap:0 !important; padding:0 !important; }
html[data-appearance="dark"] body#mini-app-body #detail-view .star-sale-proof > div { align-items:center !important; min-height:48px !important; padding:10px 14px !important; gap:12px !important; }
/* Compact tariff details retain fee, period, features and confirmation. */
html[data-appearance="dark"] body#mini-app-body #plan-checkout-view .plan-detail-cover { margin:0 !important; padding:14px !important; border:1px solid #304258 !important; border-radius:14px !important; background:#101f32 !important; text-align:left !important; }
html[data-appearance="dark"] body#mini-app-body #plan-checkout-view .plan-detail-cover > img { display:none !important; }
html[data-appearance="dark"] body#mini-app-body #plan-checkout-view .plan-detail-selector { max-width:none !important; margin:0 0 16px !important; background:#16263b !important; }
html[data-appearance="dark"] body#mini-app-body #plan-checkout-view .plan-detail-selector button { color:#b7c5d8 !important; }
html[data-appearance="dark"] body#mini-app-body #plan-checkout-view .plan-detail-selector button[aria-pressed="true"] { background:#047ba6 !important; color:#fff !important; }
html[data-appearance="dark"] body#mini-app-body #plan-checkout-view .plan-detail-cover h1 { font-size:23px !important; text-align:left !important; }
html[data-appearance="dark"] body#mini-app-body #plan-checkout-view .plan-detail-cover p { margin:5px 0 0 !important; color:#b7c5d8 !important; text-align:left !important; }
html[data-appearance="dark"] body#mini-app-body #plan-checkout-view .plan-detail-numbers { padding:14px 0 !important; }
html[data-appearance="dark"] body#mini-app-body #plan-checkout-view .plan-detail-numbers strong { font-size:23px !important; }
html[data-appearance="dark"] body#mini-app-body #plan-checkout-view .plan-detail-features li { padding:11px 0 !important; }
html[data-appearance="dark"] body#mini-app-body #plan-checkout-view .plan-checkout-operator-note { background:#101f32 !important; color:#b7c5d8 !important; border:1px solid #304258 !important; border-radius:14px !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .empty-panel { background:#101f32 !important; border:1px solid #304258 !important; border-radius:14px !important; color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .empty-panel > i { display:block; margin:0 auto 12px; color:#b7c5d8; font-size:30px; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .empty-panel p { color:#b7c5d8 !important; }

/* Invoice list and tariff cards follow the approved compact Telegram reference. */
html[data-appearance="dark"] body#mini-app-body #receipts-view { position:relative; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .journal-action-row { position:absolute; top:0; right:0; margin:0; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .journal-create { width:auto !important; min-height:38px !important; padding:0 12px !important; font-size:13px !important; border-radius:10px !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .ledger-search { height:46px !important; margin:18px 0 0 !important; border:1px solid #304258 !important; border-radius:12px !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .ledger-search input { background:transparent !important; box-shadow:none !important; border:0 !important; color:#fcffff !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .ledger-tabs { display:flex !important; gap:10px !important; margin:16px 0 20px !important; padding:0 !important; background:transparent !important; border:0 !important; overflow:visible !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .ledger-tabs button { flex:1 1 0 !important; min-width:0 !important; min-height:40px !important; padding:0 5px !important; border:1px solid #304258 !important; border-radius:11px !important; background:#101f32 !important; color:#fcffff !important; font-size:14px !important; font-weight:500 !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .ledger-tabs button[aria-selected="true"] { background:#047ba6 !important; border-color:#047ba6 !important; color:#fff !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .ledger { display:grid !important; gap:8px !important; background:transparent !important; border:0 !important; overflow:visible !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .ledger-group-title { display:none !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .ledger-rows { display:grid !important; gap:8px !important; overflow:visible !important; background:transparent !important; border:0 !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .ledger-item { min-height:74px !important; grid-template-columns:38px minmax(0,1fr) !important; padding:10px 12px !important; border:1px solid #304258 !important; border-radius:12px !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .ledger-leading { background:transparent !important; font-size:25px !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .ledger-main { gap:3px !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .invoice-item-heading b { font-size:15px !important; font-weight:600 !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .invoice-item-heading strong { color:#fff !important; font-size:16px !important; white-space:nowrap; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .invoice-item-meta { margin:0 !important; align-items:center !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .invoice-item-meta > span:first-child small { display:none !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .invoice-item-status { display:flex !important; align-items:center; gap:8px; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .status-stamp { padding:4px 9px; border-radius:999px; color:#fff !important; background:#40516a !important; font-size:11px !important; white-space:nowrap; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .status-stamp.status-pending { background:#b22a77 !important; }
html[data-appearance="dark"] body#mini-app-body #receipts-view .status-stamp::before { display:none; }
html[data-appearance="dark"] body#mini-app-body #plan-view .seller-plan-grid { gap:12px !important; }
html[data-appearance="dark"] body#mini-app-body #plan-view .seller-plan-card { position:relative !important; display:grid !important; grid-template-columns:42px minmax(0,1fr) 18px !important; grid-template-rows:auto auto !important; gap:3px 12px !important; align-items:center !important; min-height:100px !important; padding:15px !important; }
html[data-appearance="dark"] body#mini-app-body #plan-view .plan-reference-icon { grid-column:1; grid-row:1 / 3; font-size:32px; color:#fcffff; }
html[data-appearance="dark"] body#mini-app-body #plan-view .seller-plan-card header { grid-column:2 !important; grid-row:1 !important; display:block !important; min-height:0 !important; }
html[data-appearance="dark"] body#mini-app-body #plan-view .seller-plan-card header > span { display:block !important; }
html[data-appearance="dark"] body#mini-app-body #plan-view .seller-plan-strip { grid-column:2 !important; grid-row:2 !important; display:flex !important; gap:12px !important; min-height:0 !important; padding:0 !important; border:0 !important; }
html[data-appearance="dark"] body#mini-app-body #plan-view .seller-plan-strip > span { display:inline-flex !important; justify-content:flex-start !important; gap:3px !important; padding:0 !important; border:0 !important; }
html[data-appearance="dark"] body#mini-app-body #plan-view .seller-plan-strip b { font-size:13px !important; }
html[data-appearance="dark"] body#mini-app-body #plan-view .seller-plan-strip img { width:15px !important; height:15px !important; }
html[data-appearance="dark"] body#mini-app-body #plan-view .seller-plan-strip small { font-size:11px !important; }
html[data-appearance="dark"] body#mini-app-body #plan-view .seller-plan-card::after { content:'›'; grid-column:3; grid-row:1 / 3; font-size:28px; color:#b7c5d8; }

/* Separate invoice fields, retaining all required order and settlement information. */
html[data-appearance="dark"] body#mini-app-body #new-view .invoice-composer { display:flex !important; flex-direction:column !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .composer-group { display:contents !important; }
html[data-appearance="dark"] body#mini-app-body #new-view .amount-composer { order:1; margin:0 0 20px !important; }
html[data-appearance="dark"] body#mini-app-body #new-view #amount-error { order:2; }
html[data-appearance="dark"] body#mini-app-body #new-view label[for="receipt-title"] { order:3; }
html[data-appearance="dark"] body#mini-app-body #new-view label[for="receipt-note"] { order:4; }
html[data-appearance="dark"] body#mini-app-body #new-view #telegram-recipient-row { order:5; }
html[data-appearance="dark"] body#mini-app-body #new-view #payer-error { order:6; }
html[data-appearance="dark"] body#mini-app-body #new-view .invoice-composer-tools { order:7; margin:6px 0 18px !important; }
html[data-appearance="dark"] body#mini-app-body #new-view #star-settlement-preview { order:8; }
html[data-appearance="dark"] body#mini-app-body #new-view .marketplace-terms { order:9; }
html[data-appearance="dark"] body#mini-app-body #new-view .composer-trust { order:10; }
html[data-appearance="dark"] body#mini-app-body #new-view #issue-button { order:11; }
html[data-appearance="dark"] body#mini-app-body #new-view label[for="receipt-title"], html[data-appearance="dark"] body#mini-app-body #new-view label[for="receipt-note"] { display:block !important; margin:0 0 18px !important; padding:0 !important; background:transparent !important; border:0 !important; }
html[data-appearance="dark"] body#mini-app-body #new-view :is(label[for="receipt-title"],label[for="receipt-note"]) .row-icon { display:none !important; }
html[data-appearance="dark"] body#mini-app-body #new-view :is(label[for="receipt-title"],label[for="receipt-note"]) .row-copy { display:grid !important; gap:8px !important; width:100%; }
html[data-appearance="dark"] body#mini-app-body #new-view :is(label[for="receipt-title"],label[for="receipt-note"]) .row-copy > b { color:#b7c5d8 !important; font-size:14px !important; font-weight:400 !important; }
html[data-appearance="dark"] body#mini-app-body #new-view :is(label[for="receipt-title"],label[for="receipt-note"]) .note-field { min-height:52px !important; padding:0 14px !important; background:#142337 !important; border:1px solid #3b5067 !important; border-radius:12px !important; }
html[data-appearance="dark"] body#mini-app-body #new-view :is(label[for="receipt-title"],label[for="receipt-note"]) input { min-height:50px !important; background:transparent !important; color:#fcffff !important; font-size:16px !important; border:0 !important; box-shadow:none !important; }
html[data-appearance="dark"] body#mini-app-body #new-view #telegram-recipient-row { margin:0 0 14px !important; padding:12px !important; border:1px solid #304258 !important; border-radius:12px !important; background:#101f32 !important; }

html[data-appearance="dark"] body#mini-app-body #receipts-view .invoice-item-status .status-stamp { display:inline-flex !important; padding:3px 8px !important; border-radius:999px !important; line-height:1.2 !important; overflow:visible !important; }

/* Home: approved balance, breakdown, actions and compact recent-invoice list. */
html[data-appearance="dark"] body#mini-app-body #home-view:not([hidden]) { gap:0 !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-balance-card:not([hidden]) { min-height:0 !important; padding:8px 8px 0 !important; margin:0 0 18px !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-balance-card .c3-account-copy { gap:8px !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-balance-card .c3-account-copy > small { color:#b7c5d8 !important; font-size:17px !important; font-weight:400 !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-balance-amount { gap:10px !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-balance-amount b { font-size:clamp(46px,12vw,56px) !important; font-weight:700 !important; line-height:1.05 !important; font-variant-numeric:tabular-nums; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-balance-amount img { width:36px !important; height:36px !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-balance-breakdown { order:2; padding:0 12px; background:#101f32; border:1px solid #304258; border-radius:13px; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-balance-row { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:40px; color:#c3d0e1; font-size:15px; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-balance-row + .home-balance-row { border-top:1px solid #304258; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-balance-row > span { display:flex; align-items:center; gap:7px; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-balance-row strong { display:flex; align-items:center; gap:5px; color:#fcffff; font-size:17px; font-variant-numeric:tabular-nums; }
html[data-appearance="dark"] body#mini-app-body #home-view .home-balance-row img { width:20px; height:20px; object-fit:contain; }
html[data-appearance="dark"] body#mini-app-body #home-view .gram-home-actions { margin:20px 0 0 !important; gap:10px !important; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .gram-home-actions button { min-height:52px !important; font-size:15px !important; font-weight:600 !important; gap:8px !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .gram-home-actions button i { font-size:22px !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .gram-home-actions .home-primary > .ph-caret-right { display:none !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .c3-activity-section { margin-top:27px !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .section-header { margin:0 8px 12px !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .section-header h2 { color:#b7c5d8 !important; font-size:16px !important; font-weight:400 !important; }
html[data-appearance="dark"] body#mini-app-body #home-view #home-view-all { display:none !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .activity-row { min-height:62px !important; grid-template-columns:35px minmax(0,1fr) auto !important; padding:9px 12px !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .activity-icon { background:transparent !important; font-size:23px !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .activity-description b { font-size:15px !important; font-weight:500 !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .activity-value b { font-size:15px !important; }
html[data-appearance="dark"] body#mini-app-body #home-view .activity-value .status-stamp { font-size:10px !important; }

html[data-appearance]:not([data-appearance="dark"]) body#mini-app-body #home-view .home-balance-breakdown { order:2; padding:0 12px; border:1px solid #d9e6ef; border-radius:13px; background:#edf4f9; }
html[data-appearance]:not([data-appearance="dark"]) body#mini-app-body #home-view .home-balance-row { display:flex; min-height:40px; justify-content:space-between; align-items:center; color:#384b61; }
html[data-appearance]:not([data-appearance="dark"]) body#mini-app-body #home-view .home-balance-row + .home-balance-row { border-top:1px solid #d9e6ef; }
html[data-appearance]:not([data-appearance="dark"]) body#mini-app-body #home-view .home-balance-row strong { display:flex; gap:5px; align-items:center; }
html[data-appearance]:not([data-appearance="dark"]) body#mini-app-body #home-view .home-balance-row img { width:20px; height:20px; }
