/* Shared customer UI. The admin application has its own independent styles. */
:root {
  --blue: #0866ff;
  --ink: #1c1e21;
  --muted: #65676b;
  --line: #e4e6eb;
  --bg: #f0f2f5;
  --radius: 10px;
  --app-width: 480px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { background: #e9edf2; }
button, input, textarea, select { font-family: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { transition: background-color .15s ease, border-color .15s ease; }
button:focus-visible, a:focus-visible { outline: 3px solid #0866ff66; outline-offset: 3px; }
h1, h2, h3 { letter-spacing: -.025em; }
.app-shell { max-width: var(--app-width); background: var(--bg); border: 0; box-shadow: 0 0 0 1px #1c1e2109; }
.page, .page.white { background: var(--bg); padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
.demo-note { height: auto; min-height: 23px; padding: 4px 12px; background: #fff; color: #8a8d91; border: 0; font-size: 10px; line-height: 15px; letter-spacing: 0; }
.topbar { height: 66px; background: #fff; padding: 9px 20px 13px; gap: 16px; border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 24px; line-height: 1.2; font-weight: 700; min-width: 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.topbar .logo { width: 91px; }
.brand>span { border-left: 1px solid #ced0d4; padding-left: 12px; font-size: 13px; font-weight: 500; color: var(--muted); }
.topbar-tools { gap: 8px; flex-shrink: 0; }
.icon-button { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: #f0f2f5; border: 0; color: #35383d; }
.icon-button:hover { background: #e4e6eb; }
.icon { width: 21px; height: 21px; }
.backbar { min-height: 60px; height: auto; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); gap: 12px; }
.backbar>a { width: 36px; height: 36px; border-radius: 50%; background: #f0f2f5; align-items: center; justify-content: center; flex-shrink: 0; }
.backbar h1 { text-align: start; font-size: 18px; font-weight: 650; padding-right: 0; line-height: 1.3; }
.backbar:has(.topbar-tools) h1 { padding-right: 88px; }
.bottom-nav { max-width: var(--app-width); height: calc(68px + env(safe-area-inset-bottom)); padding: 5px 8px env(safe-area-inset-bottom); border: 0; border-top: 1px solid #dddfe2; background: #fff; box-shadow: 0 -2px 8px #1c1e2103; gap: 4px; }
.bottom-nav a { height: 57px; border-radius: 8px; flex-direction: column; gap: 4px; color: #65676b; padding: 5px 2px; line-height: 13px; text-align: center; position: relative; }
.bottom-nav a>.icon { width: 23px; height: 23px; }
.bottom-nav a>span:last-child { font-size: 10px; font-weight: 600; max-width: 100%; overflow-wrap: anywhere; }
.bottom-nav a:hover { background: #f2f3f5; }
.bottom-nav a.active { color: var(--blue); background: #eef4ff; }
.bottom-nav a.active:after { display: block; content: ''; position: absolute; top: -6px; left: 16px; right: 16px; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); }
.button { min-height: 44px; border-radius: 7px; padding: 0 18px; font-weight: 600; font-size: 14px; gap: 8px; }
.button:hover { background: #075ce5; }
.button.small { min-height: 36px; padding: 0 14px; font-size: 13px; margin-top: 15px; }
.button.small .icon { width: 16px; height: 16px; }
.button.light { background: #e7f0ff; color: #0866ff; }
.button.light:hover { background: #dbe8ff; }
.button.outline { border-color: #ced0d4; color: #33373d; }
.button.outline:hover { background: #f0f2f5; }
.button.pill { border-radius: 7px; }
.button:disabled { opacity: 1; background: #e4e6eb; color: #92959b; }
.section, .page>.section { padding: 18px 16px 0; background: transparent; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.section-heading h2 { font-size: 17px; line-height: 1.4; font-weight: 650; }
.section-heading>a { color: var(--muted); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.optimizer-card { display: block; background: #fff; border: 1px solid #e2e5e9; border-radius: 10px; padding: 16px; margin-bottom: 10px; box-shadow: 0 1px 2px #00000003; }
.optimizer-card:hover { border-color: #a8c8f5; }
.optimizer-identity { display: flex; align-items: center; gap: 10px; }
.optimizer-identity>img { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: #f7f8fa; padding: 3px; }
.optimizer-identity>div { flex: 1; min-width: 0; }
.optimizer-identity .optimizer-name { font-size: 15px; font-weight: 650; line-height: 21px; color: var(--ink); overflow-wrap: anywhere; }
.optimizer-identity>div>span { display: block; color: var(--muted); font-size: 11px; line-height: 17px; }
.optimizer-identity>.icon { width: 16px; height: 16px; color: #969aa1; }
.optimizer-numbers { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-top: 15px; align-items: end; }
.optimizer-numbers span { display: block; color: var(--muted); font-size: 11px; line-height: 17px; margin-bottom: 3px; }
.optimizer-numbers b { display: block; font-size: 19px; line-height: 1.3; font-weight: 650; letter-spacing: -.03em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.optimizer-numbers .roi { text-align: end; }
.optimizer-numbers .roi strong { display: block; font-size: 19px; font-weight: 650; color: #25834a; letter-spacing: -.03em; }
.optimizer-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 11px; margin-top: 12px; border-top: 1px solid #eff0f3; }
.optimizer-footer>span { min-width: 0; }
.optimizer-footer span>span { display: block; font-size: 10px; line-height: 16px; color: #767a80; }
.optimizer-footer b { display: block; font-size: 12px; font-weight: 500; line-height: 18px; overflow-wrap: anywhere; }
.promo-wrap, .profile-page .promo-wrap { background: transparent; padding: 6px 16px 16px; }
.promo { min-height: 0; padding: 18px; background: #e8f1ff; border: 1px solid #dae7fa; border-radius: 10px; display: flex; align-items: flex-start; gap: 14px; }
.promo-symbol { background: #fff; color: var(--blue); width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.promo-symbol .icon { width: 24px; height: 24px; }
.promo-copy { min-width: 0; }
.promo h3 { color: #18375a; font-size: 15px; line-height: 1.4; font-weight: 650; }
.promo p { color: #5a708b; font-size: 12px; line-height: 1.6; margin-top: 6px; max-width: none; }
.insights { background: #fff; border: 1px solid #e2e5e9; border-radius: 10px; margin: 0 16px 16px; overflow: hidden; }
.insights>h2 { font-size: 17px; padding: 18px 16px 10px; }
.tabs { padding: 3px 8px 0; border-bottom: 1px solid var(--line); background: #fff; gap: 2px; }
.tabs button { min-width: 0; white-space: normal; overflow-wrap: anywhere; padding: 13px 4px; font-size: 12px; font-weight: 600; color: var(--muted); line-height: 17px; }
.tabs button:hover { background: #f6f7f9; border-radius: 6px 6px 0 0; }
.tabs button.active { color: var(--blue); }
.tabs button.active:after { width: auto; left: 8px; right: 8px; transform: none; height: 3px; border-radius: 2px 2px 0 0; }
.stats-grid { padding: 6px 16px; gap: 0; background: #fff; }
.stats-grid>.stat { min-height: 82px; background: transparent; box-shadow: none; border-radius: 0; border-bottom: 1px solid #edf0f3; padding: 16px 0; }
.stats-grid>.stat:nth-child(odd) { padding-right: 12px; }
.stats-grid>.stat:nth-child(even) { padding-left: 16px; border-left: 1px solid #edf0f3; }
.stats-grid>.stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat p { color: var(--muted); font-size: 11px; line-height: 17px; margin-bottom: 6px; }
.stat b, .stat b small { font-size: 19px; font-weight: 650; line-height: 1.3; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.faq { background: #fff; border: 1px solid #e2e5e9; border-radius: 10px; margin: 0 16px; padding: 18px 16px 4px; }
.faq h2 { font-size: 17px; font-weight: 650; margin-bottom: 6px; }
.faq .list-row { min-height: 50px; padding: 13px 0; background: transparent; font-size: 13px; color: #3b3e43; border-bottom: 1px solid #edf0f3; }
.faq .list-row:last-child { border: 0; }
.list-row .arrow { font-size: 22px; line-height: 20px; color: #9b9fa5; }
.foot-note { font-size: 10px; color: #8a8d91; line-height: 17px; padding: 20px 16px; }
.profile-page .profile-hero { padding: 20px; background: #fff; gap: 10px; grid-template-columns: minmax(0,1fr) auto; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.profile-page .profile-user { gap: 12px; }
.profile-page .profile-user .avatar { width: 52px; height: 52px; border: 1px solid #0000000a; background: #e4e6eb; }
.profile-user h2 { font-size: 21px; line-height: 1.2; letter-spacing: -.03em; }
.profile-user p { display: flex; align-items: center; gap: 6px; color: #8a8d91; }
.profile-user p>span { overflow-wrap: anywhere; }
.profile-user p>button { display: inline-flex; padding: 3px; color: #8a8d91; }
.profile-user p .icon { width: 13px; height: 13px; }
.profile-page .rating { background: #f5f6f8; border: 1px solid #eceef1; border-radius: 7px; padding: 7px 10px; max-width: 142px; align-items: flex-end; gap: 1px; }
.profile-page .rating>span { font-size: 10px; line-height: 15px; color: #65676b; }
.profile-page .stars { color: #ca9b30; font-size: 13px; line-height: 19px; letter-spacing: 1px; white-space: normal; }
.wallet-split { margin: 0 16px 12px; padding: 18px 0; border: 1px solid #e2e5e9; border-radius: 10px; }
.wallet-split>button { padding: 0 16px; border-color: var(--line); min-width: 0; }
.wallet-split p { font-size: 12px; color: var(--muted); gap: 7px; margin-bottom: 11px; }
.wallet-split p .icon { width: 17px; height: 17px; color: #686e78; flex-shrink: 0; }
.wallet-split p>span:not(.icon) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wallet-split p>.icon:last-child { width: 14px; height: 14px; }
.wallet-split b { color: var(--ink); display: block; font-size: 24px; font-weight: 650; line-height: 1.25; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.management, .profile-page .management { margin: 0 16px 12px; padding: 0 16px 10px; border: 1px solid #e2e5e9; border-radius: 10px; }
.management .list-row { border: 0; padding: 15px 0 14px; font-size: 15px; font-weight: 600; min-height: 54px; }
.management .list-row>.icon { width: 18px; height: 18px; color: #65676b; }
.management-grid { gap: 4px; padding-top: 3px; }
.management-grid button { min-height: 79px; font-size: 11px; line-height: 16px; color: #65676b; gap: 9px; padding: 4px 2px 8px; border-radius: 6px; }
.management-grid button:hover { background: #f0f2f5; }
.management-icon { height: 33px; width: 33px; display: flex; align-items: center; justify-content: center; color: #687182; }
.management-icon.state-1 { color: #0866ff; }
.management-icon.state-2 { color: #368453; }
.management-grid .icon { width: 26px; height: 26px; }
.score, .profile-page .score { margin: 0 16px 12px; padding: 16px; border: 1px solid #e2e5e9; border-radius: 10px; gap: 12px; align-items: center; }
.score-circle, .profile-page .score-circle { width: 43px; height: 43px; border-color: #38a05b; color: #248146; background: #f2faf5; font-size: 12px; font-weight: 650; }
.score>div:nth-child(2) { flex: 1; min-width: 0; }
.score h3 { font-size: 13px; font-weight: 600; }
.score p, .profile-page .score p { font-size: 11px; color: #777c84; line-height: 17px; margin-top: 4px; }
.score>.icon { width: 18px; height: 18px; color: #38a05b; }
.profile-page .promo-wrap { padding-top: 0; padding-bottom: 12px; }
.menu-grid, .profile-page .menu-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0 16px; padding: 5px 12px; gap: 0 12px; border: 1px solid #e2e5e9; border-radius: 10px; }
.menu-grid button { min-height: 62px; flex-direction: row; text-align: start; gap: 9px; padding: 10px 0; font-size: 12px; font-weight: 500; line-height: 17px; border-bottom: 1px solid #edf0f3; }
.menu-grid button:nth-last-child(-n+2) { border-bottom: 0; }
.menu-grid button>span:nth-child(2) { flex: 1; min-width: 0; }
.menu-grid button>.icon { width: 12px; height: 12px; color: #a4a8ae; }
.menu-icon { width: 30px; height: 30px; flex-shrink: 0; border-radius: 6px; background: #f0f2f5; color: #536079; }
.menu-icon .icon { width: 18px; height: 18px; }
.ad-user { margin: 16px 16px 0; padding: 17px 18px; border: 1px solid #e2e5e9; border-bottom: 0; background: #fff; border-radius: 10px 10px 0 0; }
.ad-user .avatar { width: 40px; height: 40px; background: #e4e6eb; }
.ad-user h2 { font-size: 16px; margin-bottom: 4px; }
.ad-user p { font-size: 11px; color: var(--muted); }
.status-dot { background: #b7bcc3; }
.account-stats { margin: 0 16px 18px; border: 1px solid #e2e5e9; border-top: 0; padding: 4px 18px 16px; border-radius: 0 0 10px 10px; gap: 0; }
.account-stats>div { padding: 14px 0; border-top: 1px solid #edf0f3; }
.account-stats>div:nth-child(even) { padding-left: 16px; }
.account-stats p { font-size: 11px; line-height: 18px; color: var(--muted); margin-bottom: 7px; }
.account-stats p .icon { display: none; }
.account-stats b { font-size: 22px; font-weight: 650; letter-spacing: -.03em; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.account-stats b small { font-size: 15px; }
.account-stats .balance-stat { max-width: none; grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 0; }
.account-stats .balance-stat p { font-size: 11px; margin: 0; max-width: 65%; }
.account-stats .balance-stat b { color: var(--blue); font-size: 18px; flex-shrink: 0; }
.page-title-row { padding: 0 20px 14px; margin: 0; gap: 12px; }
.page-title-row h2 { font-size: 17px; }
.state-filter-button { background: #fff; border: 1px solid #d8dce2; border-radius: 6px; padding: 7px 11px; font-size: 12px; color: #4e5662; }
.campaign { margin: 0 16px 16px; padding: 18px; border: 1px solid #e2e5e9; border-radius: 10px; }
.campaign-heading { align-items: flex-start; }
.campaign-heading b { font-size: 13px; font-weight: 600; }
.status-tag, .release-tag { border-radius: 5px; font-size: 10px; line-height: 23px; font-weight: 500; }
.campaign-info, .ad-meta { color: #7b8088; font-size: 11px; line-height: 19px; }
.ad-divider { background: #edf0f3; margin: 15px 0; }
.advertiser { margin-bottom: 14px; gap: 10px; }
.advertiser img, .advertiser .avatar-fallback { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #00000008; }
.advertiser b { font-size: 14px; font-weight: 650; color: var(--ink); margin-bottom: 4px; }
.advertiser small { font-size: 11px; color: #8a8d91; }
.ad-description { font-size: 14px; line-height: 1.6; color: #383b41; margin-bottom: 14px; }
.material-list { padding: 16px; }
.material-card { border-radius: 10px; padding: 18px; border: 1px solid #e2e5e9; margin-bottom: 16px; }
.material-status { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 10px; color: #8a8d91; flex-wrap: wrap; }
.material-status .release-tag { margin: 0; background: #eaf5ee; color: #358451; padding: 0 7px; }
.material-status b { font-weight: 500; }
.material-details { border-top: 1px solid #edf0f3; margin-top: 14px; padding-top: 12px; }
.material-details .ad-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 10px; line-height: 16px; }
.copy-inline { display: inline-flex; align-items: center; padding: 3px; color: #8a8d91; }
.copy-inline .icon { width: 12px; height: 12px; }
.material-details>p { font-size: 10px; line-height: 16px; color: #a0a4aa; margin-top: 5px; }
.video-frame, .media-poster { border-radius: 7px; background-color: #191b1f; }
.video-frame { height: 210px; }
.progress-track { height: 5px; background: #e9edf2; }
.progress-track i { background: var(--blue); }
.report-button { border-radius: 6px; border-color: #d5e4ff; background: #f3f7ff; padding: 10px; line-height: 18px; }
.campaign-actions .button { min-height: 38px; border-radius: 6px; }
.empty { padding: 48px 24px; color: #8a8d91; font-size: 13px; line-height: 21px; }
.empty-symbol { width: 66px; height: 66px; border-radius: 50%; color: #adb4bf; background: #e6e9ee; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.empty-symbol>.icon { width: 30px; height: 30px; }
.empty img { display: none; }
.message-empty:before { content: ''; display: block; width: 48px; height: 34px; border: 2px solid #b5bbc5; border-radius: 6px; margin: 15px auto 30px; background: #fff; }
.wallet-hero { background: #fff; color: var(--ink); padding-bottom: 0; border-bottom: 1px solid var(--line); }
.wallet-hero .backbar .icon-button { color: #35383d; }
.wallet-assets { padding: 24px 20px 22px; }
.wallet-assets>p { font-size: 12px; color: var(--muted); gap: 7px; }
.wallet-assets>p>.icon { width: 17px; height: 17px; }
.wallet-assets>h2 { font-size: 38px; font-weight: 650; margin: 10px 0 25px; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.wallet-assets>h2 small { font-size: 25px; color: #8a8d91; }
.wallet-balances { font-size: 11px; color: var(--muted); gap: 12px; padding-top: 18px; border-top: 1px solid #edf0f3; grid-template-columns: repeat(3,minmax(0,1fr)); }
.wallet-balances>div { min-width: 0; overflow-wrap: anywhere; line-height: 17px; }
.wallet-balances b { font-size: 14px; font-weight: 600; color: var(--ink); white-space: normal; margin-top: 8px; }
.wallet-hero-actions { gap: 10px; margin-top: 24px; }
.wallet-hero-actions a:last-child { background: #e4e6eb; color: #383d45; }
.wallet-hero~.list-row { margin: 14px 16px 0; width: calc(100% - 32px); border: 1px solid #e2e5e9; border-radius: 8px; font-size: 12px; padding: 15px; }
.funding-title { font-size: 17px; padding: 22px 20px 14px; }
.wallet-hero~.record { margin: 0 16px; padding: 15px 16px; }
.wallet-hero~.record:first-of-type { border-radius: 8px 8px 0 0; }
.record { padding: 16px; border-color: #edf0f3; }
.record h3 { font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.record p { color: #8a8d91; font-size: 11px; }
.record b { font-size: 14px; font-weight: 600; }
.content-pad { padding: 20px 16px; }
.card, .settings-group { border-radius: 10px; border: 1px solid #e2e5e9; overflow: hidden; }
.list-row { border-color: #edf0f3; color: #353940; font-size: 13px; }
.list-row .row-value { color: #8a8d91; font-size: 12px; }
.settings-avatar { padding: 25px 0; }
.settings-avatar .avatar { width: 72px; height: 72px; }
.settings-avatar .avatar:after { background: #e4e6eb; color: #555d69; }
.settings-group .list-row { min-height: 56px; padding: 16px; }
.settings-form .form-field, .form-field { margin-bottom: 20px; }
.form-field label, .field-title { color: #51565f; font-size: 12px; font-weight: 500; line-height: 18px; margin-bottom: 8px; }
.input-wrap { border: 1px solid #d8dce2; border-radius: 7px; box-shadow: none; min-height: 48px; }
.input-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #0866ff0d; }
.input-wrap input { height: 48px; padding: 0 13px; color: #25282e; }
.input-wrap input:focus, .input-wrap select:focus { outline: none; }
.input-wrap input::placeholder { color: #a0a4aa; font-size: 12px; }
.input-wrap select { height: 48px; width: 85px; min-width: 85px; color: #5f6671; font-size: 12px; }
.input-wrap .eye { margin-right: 5px; }
.simple-input, .feedback-area { border: 1px solid #d8dce2; border-radius: 7px; font-size: 13px; padding: 13px; box-shadow: none; }
.simple-input:focus, .feedback-area:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px #0866ff0d; }
.simple-input::placeholder, .feedback-area::placeholder { color: #a0a4aa; }
.settings-form .pill { margin-top: 28px; }
.settings-logout { background: #e4e6eb; color: #434850; }
.settings-logout:hover { background: #d9dce2; }
.description, .form-help { color: #777c85; font-size: 12px; line-height: 1.7; }
.form-error { color: #d44040; }
.page.auth { padding: 0 24px 32px; background: #fff; }
.auth .demo-note { margin: 0 -24px; }
.auth .backbar { border: 0; background: transparent; padding: 12px 0; }
.auth-brand { padding: 20px 0 25px; text-align: center; }
.auth-logo, .auth.register .auth-logo { width: 121px; margin: 0 auto; }
.auth-brand>p { font-size: 13px; color: #7d838d; margin-top: 9px; }
.auth h1, .auth.register h1 { font-size: 23px; font-weight: 650; text-align: center; margin: 0 0 29px; }
.auth form { background: #fff; }
.auth .form-field, .auth.register .form-field { margin-bottom: 20px; }
.auth-links { font-size: 12px; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; color: #65676b; }
.auth .button.block { min-height: 46px; }
.auth .form-error { margin-top: 8px; }
.auth .foot-note { line-height: 1.8; font-size: 10px; padding-top: 12px; }
.quick-amounts { gap: 8px; margin-top: 14px; }
.quick-amounts button { border-color: #dce0e6; border-radius: 6px; min-height: 40px; }
.quick-amounts button.selected { background: #edf4ff; border-color: var(--blue); }
.method-list { border: 1px solid #e2e5e9; border-radius: 8px; padding: 0 14px; }
.method-list button { font-size: 13px; }
.method-list i { color: var(--blue); }
.wallet-info { background: #fff; color: #494f59; border: 1px solid #dce0e6; border-radius: 7px; font-size: 12px; }
.add-wallet { border-radius: 7px; background: #fff; color: var(--blue); }
.history-link, .history-date { top: 34px; background: #f0f2f5; color: #65676b; border-radius: 6px; }
.history-date { max-width: 105px; padding: 7px; font-size: 11px; top: 36px; }
.history-date~.tabs { background: #fff; }
.withdrawal-money { flex-wrap: wrap; padding: 8px; }
.withdrawal-money input { flex: 1 0 100%; }
.withdrawal-money button { background: #edf1f7; color: #555e6c; min-height: 30px; padding: 6px 12px; border-radius: 5px; }
.withdrawal-summary p { border-color: #dfe3e8; }
.support-art { height: 210px; margin-top: 12px; }
.support-art img { filter: saturate(.6); }
.support-row { border: 1px solid #e2e5e9; color: #434e61; border-radius: 8px; }
.support-row .icon { color: var(--blue); }
.optimizer-detail { background: #fff; margin: 16px; padding: 24px 18px; border: 1px solid #e2e5e9; border-radius: 10px; }
.optimizer-detail>img { width: 68px; height: 68px; }
.optimizer-detail .stats-grid { margin: 20px 0; padding: 0; }
.optimizer-detail .stat p { text-align: start; }
.page.white>.section .optimizer:not(.optimizer-card) { margin-bottom: 12px; background: #fff; border: 1px solid #e2e5e9; border-radius: 10px; padding: 16px; gap: 10px; min-height: 0; }
.page.white>.section .optimizer:not(.optimizer-card)>img { width: 38px; height: 38px; margin: 0; }
.optimizer-top { flex-wrap: wrap; row-gap: 7px; }
.optimizer-top>span { font-size: 11px; color: var(--muted); }
.optimizer-top b { font-size: 12px; }
.optimizer-bottom { font-size: 10px; gap: 10px; }
.optimizer-bottom p { font-size: 11px; }
.optimizer-bottom .roi strong { font-size: 16px; }
.medal { display: none; }
.auto-choice { font-size: 12px; line-height: 19px; padding: 14px 0; margin: 0; color: var(--muted); }
.choose-row .button.selected { background: #edf4ff; color: var(--blue); }
.reference-article { background: #fff; border: 1px solid #e2e5e9; border-radius: 10px; margin: 16px; padding: 22px 18px; font-size: 14px; font-weight: 400; line-height: 1.8; color: #50555e; }
.reference-article h2 { color: var(--ink); font-size: 21px; line-height: 1.4; margin-bottom: 20px; }
.reference-article p { margin-bottom: 18px; }
.reference-article p:last-child { margin-bottom: 0; }
.revenue-report { background: #f0f5fd; border: 1px solid #e0e8f5; border-radius: 8px; padding: 18px; }
.revenue-report>p { font-size: 13px; }
.facebook-mark { display: none; }
.modal-backdrop { background: #1c1e2173; backdrop-filter: none; padding: 18px; }
.modal { max-width: 430px; border-radius: 12px; padding: 26px 20px 20px; box-shadow: 0 12px 45px #17243b29; }
.modal h2 { text-align: start; font-size: 18px; font-weight: 650; padding-right: 30px; margin-bottom: 20px; }
.modal .close { height: 29px; width: 29px; padding: 0; right: 15px; top: 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #e4e6eb; color: #6d7279; font-size: 23px; line-height: 1; }
.modal .modal-copy { font-size: 14px; line-height: 1.75; color: #60666f; }
.modal-actions { gap: 8px; margin-top: 22px; }
.modal.sheet { max-width: var(--app-width); padding: 22px 20px 16px; border-radius: 16px 16px 0 0; }
.sheet .close { top: 18px; right: 18px; width: 25px; height: 25px; font-size: 21px; border: 0; }
.sheet .modal-actions { margin: 0; padding: 16px 0 0; border-color: var(--line); gap: 10px; }
.status-options { min-height: 0; padding: 0 0 30px; gap: 20px; }
.status-options label, .date-options label { font-size: 13px; color: #555c66; }
.modal.language-modal { max-width: var(--app-width); border-radius: 12px; min-height: 0; height: min(760px,90dvh); max-height: 90dvh; padding: 23px 18px 0; }
.modal-backdrop:has(.language-modal) { padding: 18px; }
.modal.language-modal h2 { font-size: 19px; font-weight: 650; margin-bottom: 20px; }
.modal.language-modal .close { font-size: 23px; top: 19px; right: 18px; }
.language-search-wrap { background: #f0f2f5; border: 0; border-radius: 7px; margin-bottom: 12px; }
.language-search { font-size: 13px; }
.language-group>h3 { color: #8a8d91; font-size: 10px; font-weight: 600; letter-spacing: .03em; padding: 18px 8px 8px; }
.modal.language-modal .language-choice { min-height: 65px; padding: 10px 8px; border-radius: 7px; border-color: #edf0f3; }
.language-choice-copy strong { font-size: 13px; }
.language-choice-copy small { color: #8a8d91; font-size: 10px; }
.language-region { background: #f0f2f5; color: #65676b; border-radius: 6px; font-size: 11px; }
.selected .language-region { background: #dce9ff; color: var(--blue); }
.modal.language-modal .language-choice.selected, .modal.language-modal .language-automatic.selected { background: #edf4ff; }
.modal.language-modal .language-automatic { border-radius: 7px; background: #f6f7f9; }
.language-check { font-size: 15px; }
#toast { background: #272d35; border: 1px solid #ffffff1a; box-shadow: 0 6px 20px #0000001a; border-radius: 8px; font-size: 13px; }
.skeleton-note { color: #8a8d91; font-size: 10px; line-height: 17px; }
@media (min-width: 700px) {
  .app-shell { min-height: 100dvh; }
  .bottom-nav { border-left: 1px solid #dddfe2; border-right: 1px solid #dddfe2; }
}
@media (max-width: 380px) {
  .topbar { padding-left: 16px; padding-right: 16px; }
  .topbar h1 { font-size: 21px; }
  .brand { gap: 8px; }
  .brand>span { padding-left: 8px; font-size: 11px; }
  .topbar .logo { width: 80px; }
  .profile-page .profile-hero { padding: 18px 16px; }
  .profile-page .profile-user .avatar { width: 44px; height: 44px; }
  .profile-user h2 { font-size: 19px; }
  .profile-page .rating { max-width: 110px; padding: 6px 8px; flex-direction: column; }
  .profile-page .rating>span { font-size: 9px; }
  .profile-page .stars { letter-spacing: 0; }
  .wallet-split b { font-size: 21px; }
  .wallet-split>button { padding: 0 12px; }
  .wallet-split p { font-size: 11px; }
  .promo { padding: 16px; gap: 10px; }
  .promo-symbol { width: 34px; height: 34px; border-radius: 8px; }
  .promo h3 { font-size: 14px; }
  .menu-grid { gap: 0 8px; }
  .menu-grid button { font-size: 11px; gap: 7px; }
  .menu-grid button>.icon { display: none; }
  .optimizer-numbers b, .optimizer-numbers .roi strong { font-size: 17px; }
  .campaign, .material-card { padding: 15px; }
}
@media (max-width: 340px) {
  .brand>span { display: none; }
  .section, .page>.section, .material-list { padding-left: 12px; padding-right: 12px; }
  .wallet-split, .management, .profile-page .management, .score, .profile-page .score, .menu-grid, .profile-page .menu-grid { margin-left: 12px; margin-right: 12px; }
  .profile-page .rating { max-width: 96px; }
  .profile-user p { font-size: 10px; }
  .profile-page .profile-user { gap: 8px; }
  .management-grid button { font-size: 10px; }
  .bottom-nav a>span:last-child { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { button, a { transition: none; } }
/* Long translated headings and the numeric level remain compact on small screens. */
.topbar { height: auto; min-height: 66px; }
.topbar h1 { overflow-wrap: anywhere; }
.profile-page .stars { display: flex; flex-direction: row; align-items: center; gap: 5px; white-space: nowrap; font-size: 15px; line-height: 20px; letter-spacing: 0; }
.profile-page .stars b { font-size: 13px; font-weight: 650; color: #6e6146; }
.avatar-fallback { font-size: 16px; font-weight: 600; color: #7b8492; background: #edf0f5; }
.button.block.settings-logout { width: calc(100% - 32px); }
.state-filter-button, .history-date { display: inline-flex; align-items: center; gap: 7px; }
.state-filter-button>.icon, .history-date>.icon { width: 12px; height: 12px; transform: rotate(90deg); }
.page:has(>.history-date)>.backbar { padding-right: 108px; }
.history-date { max-width: 95px; }
.history-date>span:first-child { overflow: hidden; text-overflow: ellipsis; }
.profile-page .menu-grid { margin-bottom: 12px; }
.management-grid button>span:last-child { max-width: 100%; hyphens: auto; }
html[lang="de"] .management-grid button { font-size: 10px; }
.bottom-nav a>span:last-child { hyphens: auto; }
