:root{
  --bg:#000;
  --surface:#161618;
  --surface-2:#1c1c1e;
  --surface-3:#232326;
  --line:#232326;
  --text:#fff;
  --hint:#8a8a8f;
  --dim:#6d6d72;
  --accent:#2aabee;
  --accent-soft:rgba(42,171,238,.16);
  --link:#40b9f0;
  --ok:#3ddc84;
  --warn:#ffb02e;
  --bad:#ff5a5f;
  --ton:#0098ea;
  --nav-h:58px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);
  font:400 14px/1.32 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;
  overflow-x:hidden}
button,input,select,textarea{font:inherit;color:inherit}
button{border:0;background:none;cursor:pointer}
input,textarea{border:0;outline:none;background:none}
svg{width:100%;height:100%;display:block}
.ico{fill:currentColor}

/* ---------- app bar ---------- */
.appbar{position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;
  gap:10px;padding:calc(10px + env(safe-area-inset-top)) 14px 10px;background:#000}
.avatar{width:34px;height:34px;border-radius:50%;background:var(--surface-2) center/cover no-repeat;flex:none;color:#fff}
.brand-logo{width:44px;height:42px;border-radius:0;background:transparent;color:#fff;
  display:grid;place-items:center;padding:0;box-shadow:none;flex:none}
.brand-logo img{display:block;width:100%;height:100%;object-fit:contain;background:transparent}
.brand-logo:focus,.brand-logo:focus-visible,.brand-logo:active{background:transparent;box-shadow:none;outline:0;filter:none}
.appbar-right{display:flex;align-items:center;gap:8px;min-width:0}
.icon-btn{width:40px;height:32px;border-radius:10px;background:var(--surface-2);color:#d8d8dc;
  display:flex;align-items:center;justify-content:center;padding:8px 12px}
.ico-stroke{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.balance-chip{height:32px;border-radius:999px;background:var(--surface-2);display:flex;align-items:center;
  gap:6px;padding:0 10px 0 4px;font-weight:600;font-size:13px;min-width:0}
#balanceValue{max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ton-logo{display:block;width:100%;height:100%;object-fit:contain;border-radius:50%}
.ton-badge{width:24px;height:24px;border-radius:50%;background:var(--ton);color:#fff;padding:0;flex:none;overflow:hidden}
.balance-chip .plus{color:var(--hint);font-weight:500}
.balance-amount{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;line-height:1}
#balanceUnit{font-size:8px;letter-spacing:.04em;color:var(--hint)}
.balance-chip[data-stale="true"] #balanceValue{color:var(--hint)}
.role-view-btn{height:32px;min-width:46px;padding:0 8px;border-radius:10px;background:#132433;color:#62caf8;
  border:1px solid #274055;font-size:8.5px;font-weight:850;letter-spacing:.06em}
.role-view-btn[hidden]{display:none!important}
@media(max-width:380px){
  .appbar{padding-inline:10px}.appbar-right{gap:5px}.icon-btn{width:34px;padding-inline:9px}
  #balanceValue{max-width:74px}
}

/* ---------- layout ---------- */
main{padding:4px 12px calc(var(--nav-h) + 26px + env(safe-area-inset-bottom))}
body.bootstrap-mode .appbar,body.bootstrap-mode .tabbar{display:none!important}
body.bootstrap-mode main{padding:0 12px}
.app-preloader{min-height:calc(72dvh - env(safe-area-inset-top));display:flex;flex-direction:column;
  align-items:center;justify-content:center;text-align:center;padding:28px 20px 80px;color:#fff;perspective:720px}
.app-preloader-stage{width:190px;height:190px;display:grid;place-items:center}
.app-preloader-gift3d{display:block;width:100%;height:100%;background:transparent}
.app-preloader.failed{perspective:none}.app-preloader.failed h1{margin:0 0 7px;font-size:22px;line-height:1.15;letter-spacing:-.025em}
.app-preloader.failed p{margin:0;max-width:280px;color:#7f91a3;font-size:12px;line-height:1.45}
.app-preloader-retry{margin-top:22px;height:42px;min-width:156px;padding:0 22px;border-radius:13px;
  background:#21a7e8;color:#fff;font-weight:800}
.section-label{margin:13px 2px 7px;font-size:10.5px;font-weight:600;letter-spacing:.09em;
  text-transform:uppercase;color:#76767b}
.card{background:var(--surface);border-radius:14px;padding:12px}
.stack{display:flex;flex-direction:column;gap:10px}
.muted{color:var(--hint);font-size:12px;line-height:1.4}
.center{text-align:center}
.dash{color:var(--dim)}

/* ---------- controls ---------- */
.field{width:100%;height:44px;border-radius:12px;background:var(--surface);border:1px solid var(--line);
  padding:0 13px;font-size:14px}
.field::placeholder{color:var(--dim)}
.row-3{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.select-btn{height:40px;border-radius:11px;background:var(--surface-2);display:flex;align-items:center;
  justify-content:space-between;gap:4px;padding:0 9px;font-size:12.5px;border:1.5px solid transparent;
  overflow:hidden;white-space:nowrap}
.select-btn.on{border-color:var(--accent)}
.select-btn span{overflow:hidden;text-overflow:ellipsis}
.select-btn i{color:var(--hint);font-style:normal;font-size:11px;flex:none}
.actions{display:flex;gap:9px;margin-top:10px}
.btn{height:42px;border-radius:11px;font-size:13.5px;font-weight:600;display:flex;align-items:center;
  justify-content:center;padding:0 10px;white-space:nowrap}
.btn-white{background:#fff;color:#0a0a0a;flex:1.15}
.btn-dark{background:var(--surface-2);color:#fff;flex:1.35}
.btn-square{width:42px;flex:none;background:var(--surface-2);color:#d8d8dc;padding:11px}
.btn-primary{background:var(--accent);color:#fff;width:100%;height:46px;border-radius:12px;font-size:15px}
.btn-primary[disabled]{opacity:.45}
.btn-ghost{background:var(--surface-2);color:#fff;width:100%}

.collection-picker{display:flex;gap:10px;align-items:center;margin-top:4px}
.nav-square{width:42px;height:42px;border-radius:12px;background:var(--surface-2);color:#d8d8dc;
  display:flex;align-items:center;justify-content:center;font-size:17px;flex:none}
.collection-btn{flex:1;height:42px;border-radius:12px;background:var(--surface-2);display:flex;
  align-items:center;justify-content:center;gap:8px;font-size:14.5px;font-weight:600;padding:0 11px;
  overflow:hidden;border:1.5px solid transparent}
.collection-btn.awaiting-choice{border-color:var(--accent);background:var(--accent-soft);
  box-shadow:0 0 0 3px rgba(42,171,238,.1)}
.collection-btn img{width:23px;height:23px;border-radius:50%;flex:none;object-fit:cover}
.collection-btn span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- quotes ---------- */
.quotes{display:flex;gap:9px;overflow-x:auto;padding:2px 0 2px;margin:12px -14px 0;padding-inline:14px;
  scrollbar-width:none}
.quotes::-webkit-scrollbar{display:none}
.quote{flex:none;min-width:132px;background:var(--surface);border-radius:12px;padding:9px 11px}
.quote-head{display:flex;align-items:center;justify-content:center;gap:6px;font-size:11.5px;font-weight:700}
.quote-dot{width:11px;height:11px;border-radius:50%;flex:none;background:var(--surface-3)}
.quote-row{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:7px;font-size:11.5px}
.quote-cell{display:flex;align-items:center;gap:5px;font-weight:600}
.mk{width:18px;height:18px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;
  font-size:10px;font-weight:800;color:#fff;overflow:hidden;padding:0}
.mk-logo{background:transparent;border:0;color:transparent}
.mk-logo img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
.mk-mrkt:not(.mk-logo){background:#1b6ef3}.mk-portals:not(.mk-logo){background:#111;border:1px solid #3a3a3e}
.mk-tonnel:not(.mk-logo){background:#f5c518;color:#101010}.mk-tg:not(.mk-logo){background:#28a8e9}

/* ---------- toggles ---------- */
.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0}
.toggle-row + .toggle-row{border-top:1px solid var(--line)}
.toggle-row h4{margin:0;font-size:14px;font-weight:600}
.toggle-row p{margin:2px 0 0;font-size:11.5px;color:var(--hint)}
.switch{width:46px;height:27px;border-radius:999px;background:#39393d;position:relative;flex:none;
  transition:background .15s}
.switch::after{content:"";position:absolute;top:2.5px;left:2.5px;width:22px;height:22px;border-radius:50%;
  background:#fff;transition:transform .15s}
.switch.on{background:var(--accent)}
.switch.on::after{transform:translateX(19px)}

/* ---------- markets + steppers ---------- */
.markets{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0 4px}
.market{height:48px;border-radius:12px;background:#131316;border:1.5px solid #26262a;display:flex;
  align-items:center;justify-content:center}
.market .mk{width:28px;height:28px;font-size:12px}
.a-markets .mk,.chips .mk{width:22px;height:22px}
.quote-cell .mk{width:16px;height:16px}
.market.on{border-color:var(--accent);background:var(--accent-soft)}
.market[disabled]{opacity:.35}
.block-title{margin:12px 0 7px;font-size:14px;font-weight:600}
.field-heading{display:flex;align-items:center;gap:7px;margin:12px 0 7px;font-size:14px;font-weight:650}
.field-heading .block-title{margin:0}
.field-help{width:21px;height:21px;border-radius:50%;border:1px solid #45454a;background:#242427;
  color:#c9c9ce;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:750;
  line-height:1;flex:none}
.field-help:hover,.field-help:focus-visible,.field-help.open{border-color:var(--accent);color:#fff;background:var(--accent-soft);outline:0}
.field-help-popover{position:fixed;z-index:110;padding:11px 12px;border-radius:12px;background:#262629;
  border:1px solid #46464b;color:#f5f5f7;font-size:12.5px;line-height:1.45;box-shadow:0 12px 35px rgba(0,0,0,.55)}
.field-help-popover[hidden]{display:none}
.field-explain{margin:-1px 1px 8px;color:var(--hint);font-size:11.5px;line-height:1.42}
.trait-help-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:10px}
.trait-help-item{min-width:0}.trait-help-item .field-heading{margin:0 0 6px;font-size:11.5px;gap:4px}
.trait-help-item .field-help{width:18px;height:18px;font-size:10.5px}.trait-help-item .select-btn{width:100%}
.selected-traits{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
.selected-trait-chip{min-width:0;max-width:100%;display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(42,171,238,.48);
  border-radius:10px;background:rgba(42,171,238,.1);color:#dff5ff;padding:6px 9px;font-size:11px;line-height:1.25}
.selected-trait-chip b{color:#55c8fb;font-size:9px;text-transform:uppercase;letter-spacing:.045em;flex:none}
.auto-trader-note{margin-top:10px;border:1px solid rgba(42,171,238,.18);border-radius:11px;background:rgba(42,171,238,.06);padding:9px 10px;color:#a9c7d8}
.stepper{display:flex;align-items:center;height:46px;border-radius:12px;background:var(--surface);
  border:1px solid var(--line);overflow:hidden}
.stepper button{width:64px;height:100%;color:#d0d0d4;font-size:14px;font-weight:600;flex:none}
.stepper .sep{width:1px;height:26px;background:#2b2b2f;flex:none}
.stepper input{flex:1;height:100%;text-align:center;font-size:15px;font-weight:600;min-width:0}
.stepper input::placeholder{color:var(--dim);font-weight:400}

/* ---------- tab bar ---------- */
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:45;display:flex;gap:2px;background:#0b0b0c;
  border-top:1px solid #171719;padding:7px 6px calc(7px + env(safe-area-inset-bottom))}
.tab{flex:1;border-radius:14px;padding:6px 2px 5px;display:flex;flex-direction:column;align-items:center;
  gap:3px;color:#8a8a8f;position:relative}
.tab-ico{width:21px;height:21px}
.tab-ico svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tab-label{font-size:10px;font-weight:500}
.tab.on{background:#161618;color:#fff}
.tab[hidden],.icon-btn[hidden]{display:none!important}
.operator-balance-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 14px;padding:5px;border:1px solid #1b3445;border-radius:14px;background:#0b1822}.operator-balance-switch button{border:0;border-radius:10px;padding:11px 8px;background:transparent;color:#7890a2;font-weight:800}.operator-balance-switch button.on{background:#1c9fe4;color:#fff}.operator-finance-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.operator-finance-summary article,.operator-market-balances article{border:1px solid #1b3445;border-radius:15px;background:#0d1b26;padding:13px}.operator-finance-summary small,.operator-market-balances small{display:block;color:#7890a2;font-size:10px}.operator-finance-summary b{display:block;margin-top:6px;font-size:18px}.operator-finance-title{margin:20px 0 10px;font-size:17px}.operator-market-balances{display:grid;gap:9px}.operator-market-balances article span{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:1px 8px}.operator-market-balances article span .mk{grid-row:1/3}.operator-market-balances article span i{color:#5f788b;font-size:9px;font-style:normal;font-weight:600}.operator-market-balances article.stale{border-color:#594429}.operator-market-balances article.stale span i{color:#d39a55}.operator-market-balances article strong{display:block;margin:9px 0 3px;font-size:20px}.operator-market-balances article em{display:block;margin-top:8px;font-style:normal;font-size:11px;font-weight:800}.operator-market-balances article em.good{color:#48d894}.operator-market-balances article em.bad,.operator-market-balances article em.stale{color:#ffb35c}
.operator-treasury-hero{background:radial-gradient(circle at 86% 3%,rgba(33,169,239,.34),transparent 42%),linear-gradient(145deg,#142838,#101820)}.operator-treasury-status{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:15px;padding-top:13px;border-top:1px solid rgba(155,190,214,.18)}.operator-treasury-status span{font-size:10px;font-weight:800;color:#48d894}.operator-treasury-status span.stale{color:#ffb35c}.operator-treasury-status code{min-width:0;color:#8096a8;font:10px/1.2 ui-monospace,SFMono-Regular,monospace;overflow:hidden;text-overflow:ellipsis}.operator-cash-flow{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:10px 0}.operator-cash-flow article{min-width:0;padding:14px;border:1px solid #1d384a;border-radius:17px;background:linear-gradient(145deg,#0f202c,#0d171f)}.operator-cash-flow small,.operator-cash-flow span{display:block;color:#7f94a5;font-size:9px;line-height:1.35}.operator-cash-flow b{display:block;margin:7px 0 5px;font-size:20px;letter-spacing:-.03em}.operator-wallet-action{width:100%;display:flex;align-items:center;gap:12px;margin:10px 0 18px;padding:14px;border:1px solid #24516b;border-radius:18px;background:linear-gradient(135deg,#112839,#0e1c26);color:#fff;text-align:left}.operator-wallet-action>span{width:38px;height:38px;display:grid;place-items:center;border-radius:13px;background:#159fe6}.operator-wallet-action>span svg{width:20px;height:20px}.operator-wallet-action>div{display:flex;min-width:0;flex:1;flex-direction:column}.operator-wallet-action small{color:#7f9bad;font-size:9px}.operator-wallet-action b{margin-top:3px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.operator-wallet-action em{color:#45c4ff;font-size:10px;font-style:normal;font-weight:800}.operator-settlement-card{padding:15px;border:1px solid #1e4155;border-radius:19px;background:linear-gradient(145deg,#102432,#0c171f)}.operator-settlement-card>div:first-child{display:grid;grid-template-columns:1fr auto;gap:3px 12px;align-items:end}.operator-settlement-card>div:first-child small{color:#8197a8;font-size:10px}.operator-settlement-card>div:first-child strong{grid-row:1/3;grid-column:2;font-size:23px;letter-spacing:-.04em}.operator-settlement-card>div:first-child span{color:#4dc9ff;font-size:10px;font-weight:800}.operator-settlement-card>p{margin:13px 0 0;color:#7c91a2;font-size:10px}.operator-settlement-rows{display:grid!important;grid-template-columns:1fr!important;gap:0!important;margin-top:13px;border-top:1px solid #1d3544}.operator-settlement-rows>span{display:grid;grid-template-columns:30px 1fr auto;grid-template-rows:auto auto;align-items:center;gap:1px 8px;padding:10px 0;border-bottom:1px solid #192f3d}.operator-settlement-rows .mk{grid-row:1/3;width:28px;height:28px}.operator-settlement-rows b{font-size:11px}.operator-settlement-rows small{font-size:9px;color:#788d9e}.operator-settlement-rows strong{grid-row:1/3;grid-column:3;font-size:12px}.operator-accounting-note{margin-top:10px}.operator-accounting-note>span{font-family:Georgia,serif}.operator-trading-hero{margin-top:22px}.operator-wallet-card{background:radial-gradient(circle at 90% 0,rgba(42,171,238,.22),transparent 45%),var(--card)}
.operator-trading-balances{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:13px}.operator-trading-balances article{min-width:0;padding:13px;border:1px solid rgba(118,183,220,.2);border-radius:16px;background:rgba(5,17,25,.38)}.operator-trading-balances small,.operator-trading-balances em{display:block;color:#7f97a8;font-size:9px;font-style:normal}.operator-trading-balances article>span{display:flex;align-items:baseline;gap:6px;margin:7px 0 4px}.operator-trading-balances strong{font-size:25px;line-height:1;letter-spacing:-.04em}.operator-trading-balances b{color:#8eb0c5;font-size:11px}.operator-currency-note{margin:11px 1px 0;color:#738b9c;font-size:10px;line-height:1.35}
.operator-reimbursement-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 18px}.operator-reimbursement-grid article{padding:12px;border:1px solid #1b3546;border-radius:14px;background:#0d1c27}.operator-reimbursement-grid article.warn{border-color:#654527}.operator-reimbursement-grid small,.operator-reimbursement-grid span{display:block;color:#7790a2;font-size:9px;line-height:1.3}.operator-reimbursement-grid b{display:block;margin:6px 0 4px;font-size:16px}.operator-reimbursement-grid article.warn b{color:#ffb35c}
.operator-manual-funding{margin:18px 0;padding:18px;border:1px solid #23455a;border-radius:24px;background:linear-gradient(145deg,#0b1d29,#0b1721)}
.operator-manual-funding-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.operator-manual-funding-head small{color:#42bdf2;font-weight:800;letter-spacing:.12em}.operator-manual-funding-head h2{font-size:21px;margin:4px 0 0}.operator-manual-funding-head>span{color:#a8c1d2;background:#102a3a;border-radius:999px;padding:7px 10px;font-size:12px;white-space:nowrap}
.operator-manual-funding form{display:grid;grid-template-columns:1fr 1.45fr 1fr;gap:10px;align-items:end}.operator-manual-funding label>span{display:block;margin:0 0 7px;color:#8fa6b7;font-size:12px;font-weight:700}.operator-manual-funding select,.operator-manual-funding input{width:100%;min-height:48px;border:1px solid #29485d;border-radius:14px;background:#102331;color:#f7fbff;padding:0 12px;font:inherit;box-sizing:border-box}.operator-funding-amount{position:relative}.operator-funding-amount input{padding-right:64px}.operator-funding-amount b{position:absolute;right:12px;top:15px;color:#71cfff;font-size:13px}.operator-manual-funding .btn{grid-column:1/-1;margin-top:2px}.operator-manual-funding>p{margin:12px 2px 0;color:#7892a6;font-size:12px;line-height:1.45}
.operator-funding-history{display:grid;gap:8px;margin-top:16px}.operator-funding-history article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:12px;border-radius:15px;background:#0d2331;border:1px solid #1b3a4e}.operator-funding-history article>span{display:grid;grid-template-columns:auto 1fr;gap:1px 8px;align-items:center;min-width:0}.operator-funding-history article>span svg,.operator-funding-history article>span img{grid-row:1/3}.operator-funding-history b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.operator-funding-history small{color:#7690a3}.operator-funding-history strong{align-self:center}.operator-funding-history em{grid-column:1/-1;color:#72d3a0;font-style:normal;font-size:12px}.operator-funding-history em[data-state="manual_review"]{color:#ffaf67}.operator-funding-history em[data-state="platform_handoff_required"]{color:#78cfff}.operator-funding-empty{margin-top:14px;padding:14px;text-align:center;color:#728b9e;background:#0d202c;border-radius:14px}
.operator-funding-history em[data-state="awaiting_external_confirmation"]{color:#78cfff}.operator-funding-handoff{grid-column:1/-1;margin-top:5px;min-height:42px;border:1px solid #238ccb;border-radius:12px;background:#139fe7;color:#fff;font-weight:800}.operator-funding-handoff-note{grid-column:1/-1!important;color:#8aa5b7!important;line-height:1.35}
@media(max-width:680px){.operator-manual-funding form{grid-template-columns:1fr}.operator-manual-funding .btn{grid-column:auto}.operator-manual-funding-head{display:block}.operator-manual-funding-head>span{display:inline-block;margin-top:10px}}
.tab.on::after{content:"";position:absolute;left:50%;bottom:1px;transform:translateX(-50%);width:26px;
  height:2.5px;border-radius:2px;background:var(--accent)}

/* ---------- sheets ---------- */
.sheet-host{position:fixed;inset:0;z-index:60;display:flex;align-items:flex-end}
.sheet-host[hidden]{display:none}
.sheet-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.6)}
.sheet{position:relative;width:100%;max-height:92vh;background:#0d0d0f;border-radius:20px 20px 0 0;
  display:flex;flex-direction:column;animation:sheet-up .22s ease-out}
@keyframes sheet-up{from{transform:translateY(6%)}to{transform:none}}
.sheet-grabber{width:38px;height:4px;border-radius:2px;background:#3a3a3e;margin:8px auto 2px}
.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:8px 16px 6px}
.sheet-head h2{margin:0;font-size:19px;font-weight:700}
.sheet-close{color:var(--hint);font-size:19px;padding:4px 6px}
.sheet-body{min-height:0;flex:1 1 auto;overflow-y:auto;padding:6px 16px 16px;-webkit-overflow-scrolling:touch}
.sheet-foot{padding:12px 16px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--line);
  flex:none;display:flex;align-items:center;gap:10px;background:#0d0d0f}
.sheet-foot .count{font-size:13.5px;color:var(--hint);flex:none}

.chips{display:flex;gap:8px;align-items:center;margin:12px 0;overflow-x:auto;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip-btn{flex:none;height:32px;border-radius:10px;background:var(--surface-2);padding:0 11px;font-size:12.5px;
  display:flex;align-items:center;gap:6px;color:#e6e6ea}
.chip-btn.on{background:rgba(42,171,238,.14);color:#fff;box-shadow:inset 0 0 0 1.5px var(--accent)}
.view-toggle{margin-left:auto;display:flex;gap:6px;flex:none}
.view-toggle button{width:32px;height:32px;border-radius:10px;background:var(--surface-2);color:#9a9aa0;
  padding:9px}
.view-toggle button.on{background:#2a2a2e;color:#fff}

/* collection list rows */
.col-row{display:flex;align-items:center;gap:11px;padding:10px 2px;border-bottom:1px solid #1a1a1c;
  width:100%;text-align:left}
.radio{width:21px;height:21px;border-radius:50%;border:1.7px solid #46464b;flex:none;position:relative}
.col-row.on .radio{border-color:var(--accent)}
.col-row.on .radio::after{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--accent)}
.col-row img,.col-thumb{width:29px;height:29px;border-radius:50%;flex:none;object-fit:cover;background:var(--surface-2)}
.col-thumb:not(img),.col-tile-img:not(img){display:flex;align-items:center;justify-content:center;color:#69cff8;
  background:linear-gradient(145deg,#183346,#102330);font-weight:900;text-transform:uppercase}
.col-thumb:not(img){font-size:11px}.col-tile-img:not(img){font-size:22px}
.col-name{flex:1;font-size:14px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.col-price{text-align:right;flex:none}
.col-price b{display:block;font-size:14px;font-weight:700}
.col-price span{font-size:11px;color:var(--hint)}

/* The catalog opens as a visual gift picker.  Three stable columns keep the
   artwork large enough to recognize without sacrificing quick scanning. */
.col-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:4px 0 8px}
.col-tile{position:relative;min-width:0;min-height:126px;border-radius:14px;background:var(--surface-2);
  border:1.5px solid transparent;padding:10px 6px 8px;display:flex;flex-direction:column;
  align-items:center;gap:6px;text-align:center;overflow:hidden}
.col-tile.on{border-color:var(--accent);background:var(--accent-soft)}
.col-tile-img{width:58px;height:58px;border-radius:16px;object-fit:cover;background:#111114;flex:none}
.col-tile-name{width:100%;min-height:29px;font-size:11.5px;font-weight:650;line-height:1.22;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.col-tile-price{width:100%;font-size:10.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.col-tile-check{display:none;position:absolute;top:7px;right:7px;width:20px;height:20px;border-radius:50%;
  align-items:center;justify-content:center;background:var(--accent);color:#fff;font-size:12px;font-weight:800}
.col-tile.on .col-tile-check{display:flex}
@media(max-width:340px){
  .col-grid{gap:7px}.col-tile{min-height:118px;padding-inline:4px}.col-tile-img{width:52px;height:52px}
}

/* trait grid */
.rarity-head{display:flex;align-items:center;gap:10px;margin:13px 0 8px}
.rarity-head .t{font-size:12px;color:var(--hint)}
.rarity-head .t b{color:#fff}
.rarity-head .all{font-size:12.5px;font-weight:600;color:var(--link)}
.trait-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.trait{position:relative;background:var(--surface-2);border-radius:11px;padding:7px 3px 6px;display:flex;flex-direction:column;
  align-items:center;gap:5px;border:1.5px solid transparent;min-width:0}
.trait.on{border-color:var(--accent);background:var(--accent-soft)}
.trait-picked-mark{position:absolute;right:4px;top:4px;min-width:19px;height:19px;padding:0 4px;border-radius:999px;display:grid;place-items:center;
  background:transparent;color:transparent;font-size:10.5px;font-weight:900;line-height:1;font-variant-numeric:tabular-nums}
.trait.on .trait-picked-mark{background:var(--accent);color:#fff;box-shadow:0 2px 8px rgba(42,171,238,.45)}
.floor-dot-loader{display:inline-flex;align-items:center;justify-content:center;gap:3px;min-width:34px;height:16px}.floor-dot-loader>i{width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.35;animation:floorDot 1s ease-in-out infinite}.floor-dot-loader>i:nth-child(2){animation-delay:.14s}.floor-dot-loader>i:nth-child(3){animation-delay:.28s}@keyframes floorDot{0%,70%,100%{transform:translateY(0);opacity:.3}35%{transform:translateY(-3px);opacity:1}}.member-floor-cell.pending,.quote-cell.pending{color:var(--link)}
.trait-img{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#0f0f11;flex:none}
.trait-media,.trait-sym{position:relative;width:36px;height:36px;flex:none;display:flex;
  align-items:center;justify-content:center;overflow:hidden;background:#111d28}
.trait-media{border-radius:50%}.trait-sym{border-radius:10px}
.trait-fallback{font-size:14px;font-weight:750;color:#7f91a3;text-transform:uppercase}
.trait-media img,.trait-sym img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.trait-media img{padding:1px}
.trait-name{font-size:10.5px;line-height:1.15;text-align:center;width:100%;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;color:#e8e8ec}

/* Pattern thumbnails are black silhouettes: filter must sit on the <img>, never on the tile
   background — otherwise brightness(0) invert(1) turns the whole tile white. */
.trait-sym img{padding:6px;
  filter:brightness(0) invert(1)}

/* ---------- sales table ---------- */
.sales-table{width:100%;border-collapse:collapse;font-size:12.5px}
.sales-table th{text-align:left;font-weight:500;color:var(--hint);font-size:11.5px;padding:0 6px 8px 0;
  position:sticky;top:0;background:#0d0d0f}
.sales-table td{padding:8px 6px 8px 0;border-top:1px solid #1a1a1c;vertical-align:middle}
.sales-table .num{color:var(--hint);white-space:nowrap}
.sales-table .cut{max-width:74px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.sales-table .price{font-weight:700;white-space:nowrap}
.sales-table .price .ton-glyph{width:11px;height:11px;display:inline-block;vertical-align:-1px}
.sales-table .when{color:var(--hint);white-space:nowrap;font-size:11.5px;text-align:right}
.sale-thumb{width:30px;height:30px;border-radius:8px;object-fit:cover;background:var(--surface-2);display:block}

/* ---------- analytics ---------- */
.seg{display:flex;gap:8px;margin-bottom:10px}
.seg button{flex:1;height:36px;border-radius:11px;background:var(--surface-2);font-size:13px;font-weight:600;
  color:#d5d5da}
.seg button.on{background:var(--accent);color:#fff}
.seg.compact{flex:none;width:auto}
.seg.compact button{width:56px;flex:none}
.seg.compact.wide{flex:1}
.seg.compact.wide button{width:auto;flex:1;padding:0 10px}
.a-filters{display:flex;gap:8px;margin-bottom:10px;align-items:stretch}
.a-markets .chip-btn{width:38px;height:38px;border-radius:50%;padding:0;justify-content:center}
.a-markets .chip-btn.on{background:var(--accent);box-shadow:none}
.metric-card{background:var(--surface);border-radius:14px;padding:12px;margin-bottom:10px}
.metric-card.hero{padding:14px}
.metric-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.metric-value{font-size:34px;font-weight:800;line-height:1}
.metric-delta{font-size:13px;font-weight:700}
.metric-delta.up{color:var(--ok)}.metric-delta.down{color:var(--bad)}
.metric-delta-row{margin-top:6px;display:flex;align-items:center;gap:6px}
.metric-label{font-size:12.5px;color:var(--hint);text-align:right}
.metric-label b{display:block;color:#fff;font-size:15px;margin-top:3px}
.chart{width:100%;height:120px;margin-top:10px;display:block;overflow:visible}
.chart .area{fill:url(#chartFill)}
.chart .line{fill:none;stroke:var(--accent);stroke-width:2.2}
.chart .dot{fill:#fff;stroke:var(--accent);stroke-width:1}
.chart .axis{fill:var(--hint);font-size:9px}
.chart .peak{fill:#fff;font-size:9px;font-weight:700}
.chart-empty{padding:28px 0;text-align:center;color:var(--hint);font-size:12.5px}
.mini-grid,.a-grid,.model-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.a-card{background:var(--surface);border-radius:14px;padding:10px 11px 8px;text-align:left;width:100%}
.a-card-head{display:flex;align-items:center;gap:7px;margin-bottom:2px}
.a-card-head img,.a-card-ph{width:22px;height:22px;border-radius:50%;object-fit:cover;background:var(--surface-2);flex:none}
.a-card-title{flex:1;font-size:13.5px;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.a-card-go{color:var(--hint);font-size:18px;line-height:1}
.a-card-stats{font-size:12px;color:var(--hint);margin:2px 0 4px;display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.a-card .chart{height:58px;margin-top:2px}
.model-card{background:var(--surface);border-radius:14px;padding:12px}
.model-name{font-size:14px;font-weight:700;margin-bottom:6px}
.model-rows{font-size:12px;color:var(--hint);line-height:1.65}
.model-rows b{color:#fff}
.model-markets{display:flex;flex-direction:column;gap:4px;margin-top:8px;padding-top:7px;border-top:1px solid var(--line);font-size:10px;color:var(--hint)}
.model-markets>span{display:flex;align-items:center;gap:4px;min-width:0}
.model-markets .mk{width:14px;height:14px;flex:none}
.mini-card{background:var(--surface);border-radius:14px;padding:11px 12px}
.mini-card h4{margin:0;font-size:13.5px;font-weight:700;display:flex;align-items:center;gap:7px;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.mini-card h4 img{width:22px;height:22px;border-radius:50%;flex:none}
.mini-card .sub{font-size:12px;color:var(--ok);font-weight:600;margin-top:3px}
.mini-card .rows{margin-top:8px;font-size:12px;color:var(--hint);line-height:1.6}
.mini-card .rows b{color:#fff}
.analytics-total{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.analytics-total>div{min-width:0}
.analytics-total>div>span{display:block;color:var(--hint);font-size:11.5px;margin-bottom:4px}
.analytics-total>div>b{display:block;font-size:22px;line-height:1.15;overflow-wrap:anywhere}
.analytics-total .chart,.analytics-total .chart-empty{grid-column:1/-1}
.analytics-health-grid,.analytics-market-grid{display:grid;grid-template-columns:1fr;gap:8px;margin-bottom:12px}
.analytics-health,.analytics-market-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:11px 12px}
.analytics-health{border-left:3px solid var(--hint)}
.analytics-health.ok{border-left-color:var(--ok)}
.analytics-health.partial{border-left-color:var(--warn)}
.analytics-health.bad{border-left-color:var(--bad)}
.analytics-health-title,.analytics-market-head{display:flex;align-items:center;gap:7px;font-size:13px}
.analytics-health-title .mk,.analytics-market-head .mk,.analytics-gift-markets .mk{flex:none}
.analytics-health-state{font-size:12px;font-weight:700;margin-top:7px}
.analytics-health.ok .analytics-health-state{color:var(--ok)}
.analytics-health.partial .analytics-health-state{color:var(--warn)}
.analytics-health.bad .analytics-health-state{color:var(--bad)}
.analytics-health-meta{font-size:11px;color:var(--hint);margin-top:3px}
.fresh-dot{width:7px;height:7px;border-radius:50%;background:var(--bad);margin-left:auto}
.fresh-dot.on{background:var(--ok);box-shadow:0 0 0 3px rgba(65,204,130,.12)}
.analytics-periods{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}
.analytics-period{min-width:0;background:var(--surface-2);border-radius:10px;padding:8px}
.analytics-period span{display:block;color:var(--hint);font-size:10.5px;margin-bottom:4px}
.analytics-period b,.analytics-period strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.analytics-period b{font-size:12px}.analytics-period strong{font-size:11.5px;color:var(--accent);margin-top:3px}
.analytics-search{width:100%;margin:0 0 10px}
.analytics-gift-grid{display:grid;grid-template-columns:1fr;gap:9px}
.analytics-gift{width:100%;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:11px}
.analytics-gift-head{display:flex;align-items:center;gap:8px;min-width:0}
.analytics-gift-head img,.analytics-gift-head .a-card-ph{width:28px;height:28px;border-radius:50%;object-fit:cover;flex:none}
.analytics-gift-head b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.analytics-gift-head>span:last-child{color:var(--hint);font-size:19px}
.analytics-gift-markets{display:flex;flex-wrap:wrap;gap:5px 10px;margin-top:8px;color:var(--hint);font-size:10.5px}
.analytics-gift-markets>span{display:flex;align-items:center;gap:4px}
.analytics-gift-markets .mk{width:15px;height:15px}
.analytics-source{margin-top:12px;font-size:10.5px}
.analytics-history-label{display:flex;align-items:flex-end;justify-content:space-between;gap:10px}
.analytics-history-label small{font-size:9.5px;letter-spacing:0;text-transform:none;color:var(--hint);text-align:right}
.analytics-sales-list{display:grid;gap:7px}
.analytics-sale{background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:10px 11px}
.analytics-sale-main{display:flex;align-items:center;justify-content:space-between;gap:10px}
.analytics-sale-main>strong{font-size:13px;color:var(--accent);white-space:nowrap}
.analytics-sale-title{display:flex;align-items:center;gap:6px;min-width:0}
.analytics-sale-title b{font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.analytics-sale-title .mk{width:17px;height:17px;flex:none}
.analytics-sale-traits{margin-top:6px;font-size:11px;color:#d2d2d7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.analytics-sale-time{margin-top:4px;font-size:10px;color:var(--hint)}
.analytics-more{width:100%;margin:9px 0 2px}

/* ---------- wallet ---------- */
.wallet-card{background:linear-gradient(150deg,#10283a,#111216);border:1px solid #1d3a4d;border-radius:14px;
  padding:12px;margin-bottom:10px}
.wallet-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.wallet-addr{font-size:12.5px;color:var(--hint);word-break:break-all;margin-top:6px}
.wallet-balance{font-size:26px;font-weight:800;margin:10px 0 2px}
.dist-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;
  border-bottom:1px solid var(--line);font-size:13.5px}
.dist-row:last-child{border-bottom:0}
.dist-row .need{color:var(--warn);font-weight:700}
.dist-row .ok{color:var(--ok);font-weight:600}

/* ---------- rule cards ---------- */
.counter-line{text-align:center;font-size:12.5px;color:var(--hint);margin:12px 0 12px}
.counter-line b{color:#fff}
.rules-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rule{border:1.5px solid #2a2a2e;border-radius:14px;overflow:hidden;background:#111113;display:flex;
  flex-direction:column}
.rule.active{border-color:var(--accent)}
.rule.paused{border-color:#3a2a2e;opacity:.85}
.rule-preview{height:74px;display:flex;align-items:center;justify-content:center;
  background:repeating-linear-gradient(135deg,#1a1a1d 0 9px,#141416 9px 18px)}
.rule-preview img,.rule-preview .col-thumb{width:46px;height:46px;border-radius:50%}
.rule-body{padding:9px 10px 10px;display:flex;flex-direction:column;flex:1}
.rule-title{margin:0;font-size:14.5px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rule-sub{margin:2px 0 7px;font-size:11.5px;color:var(--hint);overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
.tags{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px}
.tag{background:#1e1e21;border-radius:7px;padding:3px 7px;font-size:10.5px;color:#d5d5da}
.mini-block{background:#161618;border-radius:10px;padding:8px 9px;margin-bottom:7px}
.mini-head{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:10px;
  font-weight:700;letter-spacing:.05em;color:#8a8a8f}
.mini-head .qty{background:#232326;border-radius:6px;padding:2px 6px;font-size:10px;color:#e6e6ea}
.mini-row{display:flex;align-items:center;gap:5px;margin-top:8px}
.mini-row .spacer{flex:1}
.mini-row .switch{width:42px;height:25px}
.mini-row .switch::after{width:20px;height:20px}
.mini-row .switch.on::after{transform:translateX(17px)}
.rule-floors{background:#111113;border-radius:9px;padding:7px 9px;margin:7px 0;color:var(--muted);font-size:11px}
.rule-floor-row{display:flex;align-items:center;gap:7px;min-height:22px}
.rule-floor-row .spacer{flex:1}
.rule-floor-value{display:flex;align-items:center;gap:3px;color:var(--text);font-weight:650}
.rule-floor-value .mk{width:15px;height:15px}
.rule-actions{display:flex;gap:7px;margin-top:auto}
.rule-actions .btn{height:38px;font-size:13px;border-radius:11px}
.btn-trash{width:42px;flex:none;background:#2a1517;color:var(--bad);padding:11px}

/* ---------- deals ---------- */
.deal{background:var(--surface);border-radius:12px;padding:10px 11px;margin-bottom:8px;
  border-left:3px solid var(--surface-3)}
.deal.state-bought{border-left-color:var(--ok)}
.deal.state-detected{border-left-color:var(--accent)}
.deal.state-submitted{border-left-color:var(--warn)}
.deal.state-manual_review{border-left-color:var(--bad)}
.deal-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.deal-state{font-size:13.5px;font-weight:700}
.deal-price{font-size:13.5px;font-weight:700}
.deal-meta{margin-top:5px;font-size:12.5px;color:var(--hint);line-height:1.45;word-break:break-all}

/* ---------- misc ---------- */
.kv{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;
  border-bottom:1px solid var(--line);font-size:13.5px}
.kv:last-child{border-bottom:0}
.kv .k{color:var(--hint)}
.kv .v{font-weight:600;text-align:right}
.state-msg{padding:22px 14px;text-align:center;color:var(--hint);font-size:13px}
.spinner{width:22px;height:22px;border:2.5px solid #2c2c30;border-top-color:var(--accent);border-radius:50%;
  margin:0 auto 10px;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.stale{color:var(--warn);font-size:12px}
.toast{position:fixed;left:50%;bottom:calc(var(--nav-h) + 22px);transform:translateX(-50%);z-index:80;
  background:#232326;color:#fff;border-radius:12px;padding:11px 16px;font-size:14px;max-width:88vw;
  box-shadow:0 10px 26px rgba(0,0,0,.45)}
.toast.bad{background:#3a1a1c}
.warn-box{background:#2a2113;border-radius:12px;padding:10px 12px;font-size:12.5px;color:#ffd18a;
  margin-top:10px}

/* ---------- guided member onboarding ---------- */
.member-tour{position:fixed;inset:0;z-index:90;pointer-events:none}
.member-tour-mask{position:fixed;background:rgba(0,0,0,.73);pointer-events:auto;touch-action:none}
.member-tour-focus{position:fixed;border:2px solid var(--accent);border-radius:14px;pointer-events:none;
  z-index:91;box-shadow:0 0 0 3px rgba(42,171,238,.18),0 0 26px rgba(42,171,238,.32);
  transition:left .18s ease,top .18s ease,width .18s ease,height .18s ease}
.member-tour-card{position:fixed;z-index:92;background:#171719;border:1px solid #343438;border-radius:16px;
  padding:14px;pointer-events:auto;box-shadow:0 18px 48px rgba(0,0,0,.58);outline:none}
.member-tour-progress{color:var(--accent);font-size:10.5px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;margin-bottom:6px}
.member-tour-card h2{font-size:17px;line-height:1.25;margin:0 0 7px}
.member-tour-card p{font-size:12.5px;line-height:1.48;color:#b8b8bd;margin:0}
.member-tour-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:13px}
.member-tour-skip,.member-tour-next{height:39px;border-radius:11px;padding:0 14px;font-size:13px;font-weight:650}
.member-tour-skip{color:var(--hint);background:var(--surface-2)}
.member-tour-next{color:#fff;background:var(--accent);min-width:96px}
.member-tour-next[disabled]{opacity:.42;cursor:default}
.member-tour-active .sheet-host{z-index:95}
.member-limits-preview{margin-top:8px;padding:11px 13px;border:1px dashed #294050;border-radius:14px;
  color:#7990a1;background:#0b1721;font-size:10.5px;line-height:1.45}
@media (prefers-reduced-motion:reduce){
  .member-tour-focus{transition:none}
}

/* ---------- accounts: wallets and lanes ---------- */
.acc-card{background:var(--surface);border-radius:14px;padding:12px;margin-bottom:10px}
.acc-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.acc-name{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;min-width:0}
.acc-name span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acc-total{font-size:27px;font-weight:800;margin:9px 0 2px}
.acc-sub{font-size:12px;color:var(--hint)}
.acc-foot{margin-top:10px;padding-top:9px;border-top:1px solid var(--line);font-size:12px;color:var(--dim)}
.acc-err{margin-top:8px;font-size:12px;color:var(--bad);line-height:1.35}
.pill{height:24px;display:inline-flex;align-items:center;padding:0 10px;border-radius:999px;flex:none;
  background:var(--surface-3);color:var(--hint);font-size:11.5px;font-weight:600}
.pill-on{background:var(--accent-soft);color:var(--link)}
.venue-row{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:11px}
.venue{display:flex;align-items:center;gap:6px;background:var(--surface-2);
  border-radius:11px;padding:8px 9px;min-width:0}
.venue .amt{font-size:13px;font-weight:700;white-space:nowrap}
.venue.empty .amt{color:var(--dim);font-weight:600}
.dot-stale{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--warn);
  margin-left:5px;vertical-align:middle}
.lane{margin-top:11px}
.lane-name{font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#76767b;
  margin-bottom:6px}
.lane-accounts{display:flex;flex-wrap:wrap;gap:6px}
.acc-chip{height:26px;display:inline-flex;align-items:center;padding:0 9px;border-radius:8px;
  background:var(--surface-2);color:var(--dim);font-size:11.5px;font-weight:600}
.acc-chip.on{background:var(--surface-3);color:#d5d5da}

/* ---------- account onboarding ---------- */
.acc-add{margin:0 0 10px;height:42px}
.safe-note{background:rgba(61,220,132,.1);border:1px solid rgba(61,220,132,.22);color:#bcefd1;
  border-radius:12px;padding:10px 12px;font-size:12px;line-height:1.45;margin-bottom:12px}
.field-label{display:flex;flex-direction:column;gap:6px;margin-bottom:11px;color:var(--hint);font-size:12px}
.field-label>span{display:flex;justify-content:space-between;gap:8px;padding:0 2px}
.field-label i{font-style:normal;color:var(--dim)}
.field-label select{appearance:none;background:var(--surface)}
.money-input{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin:8px 0;padding:12px 14px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}
.money-input>span{display:grid;place-items:center;width:38px;height:38px;color:var(--accent)}
.money-input input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:var(--text);font:700 22px/1.2 inherit;text-align:center}
.money-input button{border:0;border-radius:12px;padding:10px 12px;background:var(--surface-2);color:var(--accent);font-weight:700}
.field-hint{display:block;margin:-2px 2px 14px;color:var(--hint);font-size:12px}
.onboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.auth-help{margin:-3px 2px 12px}
.auth-methods{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}
.auth-method{min-height:70px;border-radius:12px;background:var(--surface-2);padding:11px;text-align:left;
  display:flex;flex-direction:column;justify-content:center;gap:4px;border:1px solid var(--line)}
.auth-method.wide{grid-column:1/-1;min-height:58px}
.auth-method b{font-size:13.5px}.auth-method span{font-size:11.5px;color:var(--hint)}
.auth-method[disabled]{opacity:.38;cursor:default}
.auth-summary{display:flex;flex-direction:column;gap:3px;background:var(--surface);border-radius:12px;
  padding:10px 12px;font-size:12.5px;margin-bottom:12px}
.auth-summary span:last-child{color:var(--hint);font-size:11.5px}
.auth-actions{display:grid;grid-template-columns:minmax(90px,.8fr) minmax(0,1.4fr);gap:9px;margin-top:12px}
.auth-actions .btn{width:100%}
.auth-code{text-align:center;font-size:20px;letter-spacing:.18em}
.auth-session{height:128px;padding:11px 13px;resize:vertical;line-height:1.35;word-break:break-all}
.qr-frame{width:min(260px,82vw);aspect-ratio:1;margin:12px auto;padding:9px;border-radius:16px;background:#fff}
.qr-frame img{display:block;width:100%;height:100%;object-fit:contain}
.auth-deep-link{text-decoration:none;margin-top:10px}
.poll-state{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--hint);
  font-size:12.5px;margin:13px 0 4px}
.spinner.mini{width:15px;height:15px;border-width:2px;margin:0}
.auth-cancel{display:block;margin:13px auto 0;color:var(--bad);font-size:12.5px;padding:7px 10px}

/* ---------- trading history ---------- */
.t-tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:4px 0 2px}
.t-tile{background:var(--surface);border-radius:14px;padding:11px 12px;display:flex;flex-direction:column;gap:2px}
.t-tile-label{font-size:10.5px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--dim)}
.t-tile b{font-size:22px;font-weight:700;line-height:1.1}
.t-tile-sub{font-size:11.5px;color:var(--hint)}
.t-bars{display:flex;align-items:flex-end;gap:6px;height:118px;padding-top:6px}
.t-bar{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;height:100%}
.t-bar-pair{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:2px}
.t-bar-pair i{width:44%;max-width:14px;border-radius:3px 3px 0 0;display:block}
.t-bar-pair i.out{background:linear-gradient(180deg,#ff7a7f,#ff5a5f)}
.t-bar-pair i.in{background:linear-gradient(180deg,#5ce39a,#3ddc84)}
.t-bar-label{font-size:9.5px;color:var(--dim);white-space:nowrap}
.t-legend{display:flex;gap:14px;justify-content:center;margin-top:9px;font-size:11px;color:var(--hint)}
.t-legend i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:5px}
.t-legend i.out{background:var(--bad)}.t-legend i.in{background:var(--ok)}
.chart .zero{stroke:var(--line);stroke-width:1;stroke-dasharray:3 3}
.chart .line.pos{stroke:var(--ok)}.chart .line.neg{stroke:var(--bad)}
.t-account{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:var(--surface);border-radius:13px;padding:11px 12px;margin-bottom:7px;text-align:left}
.t-account.on{box-shadow:inset 0 0 0 1.5px var(--accent)}
.t-account-main{min-width:0;display:flex;flex-direction:column;gap:3px}
.t-account-name{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.t-account-sub{font-size:11.5px;color:var(--hint)}
.t-account-num{display:flex;flex-direction:column;align-items:flex-end;gap:3px;flex:none}
.t-list{display:flex;flex-direction:column;gap:6px}
.t-row{display:flex;align-items:center;gap:10px;background:var(--surface);border-radius:12px;
  padding:10px 12px;text-align:left;width:100%}
.t-row-market{width:22px;height:22px;flex:none;border-radius:6px;overflow:hidden}
.t-row-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.t-row-title{font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.t-row-sub{font-size:11.5px;color:var(--hint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.t-row-nums{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.t-row-price{font-size:12.5px;font-weight:600;white-space:nowrap}
.t-row-price .muted{font-weight:500;font-style:normal}
.t-row-pnl{font-size:11.5px}
.t-events{width:100%;margin:14px 0 4px;height:42px;border-radius:12px;background:var(--surface-2);
  color:var(--hint);font-size:13px;font-weight:600}
/* Signed numbers borrow the size of whatever they sit in, so the sign colour
   reads as part of the figure rather than as a badge next to it. */
.t-tile b .metric-delta,.t-account-num .metric-delta,.metric-value .metric-delta{font:inherit}
.metric-value .unit{font-size:14px;color:var(--hint);font-weight:600}
.t-account-num .metric-delta{font-size:14px;font-weight:700}

/* ---------- member sign-in and registration ---------- */
.header-telegram-login{display:none;height:48px;padding:0 18px;border-radius:16px;background:#169fe5;
  color:#fff;align-items:center;gap:9px;font-size:14px;font-weight:780;box-shadow:0 10px 26px rgba(22,159,229,.22)}
.header-telegram-login[disabled]{opacity:.62}.header-telegram-icon{width:28px;height:28px;border-radius:50%;
  display:block;object-fit:contain;flex:none}
body.auth-mode .appbar-right>button:not(.header-telegram-login){display:none!important}
body.auth-mode .header-telegram-login{display:flex}body.auth-mode .tabbar{display:none}
body.auth-mode main{padding-bottom:24px}
.auth-entry{min-height:calc(100dvh - 130px);display:flex;flex-direction:column;align-items:center;
  justify-content:center;text-align:center;padding:30px 18px 20px}
.auth-entry-logo{width:84px;height:84px;border-radius:0;display:grid;place-items:center;
  background:transparent;box-shadow:none;margin-bottom:18px}
.auth-entry-logo img{display:block;width:100%;height:100%;object-fit:contain}
.auth-entry-kicker{font-size:11px;font-weight:800;letter-spacing:.2em;color:var(--accent);margin-bottom:8px}
.auth-entry h1{font-size:30px;line-height:1.05;letter-spacing:-.035em;margin:0;max-width:390px}
.auth-entry>p{color:#a5a5ab;font-size:14px;line-height:1.5;max-width:380px;margin:14px 0 18px}
.auth-security{width:100%;max-width:390px;border:1px solid #23262b;background:#111316;border-radius:17px;
  padding:13px 14px;display:flex;gap:11px;text-align:left;margin-bottom:14px}
.auth-security>span{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:rgba(61,220,132,.14);color:var(--ok);font-weight:800}
.auth-security div{display:flex;flex-direction:column;gap:2px}.auth-security small{color:var(--hint);line-height:1.35}
.telegram-login-btn{height:58px;width:100%;max-width:390px;border-radius:17px;background:#169fe5;color:#fff;
  display:flex;align-items:center;justify-content:center;gap:12px;font-size:16px;font-weight:750;box-shadow:0 12px 28px rgba(22,159,229,.2)}
.telegram-login-btn[disabled]{opacity:.6}.telegram-login-icon{width:29px;height:29px;border-radius:50%;display:block;object-fit:contain;flex:none}
.auth-entry-note{font-size:11.5px;color:var(--dim);margin-top:11px}.auth-entry-error{color:var(--bad);font-size:12px;margin-top:9px}

.registration-flow{position:fixed;inset:0;z-index:300;background:rgba(4,8,12,.82);backdrop-filter:blur(10px);
  display:flex;align-items:flex-end;justify-content:center;padding-top:max(24px,env(safe-area-inset-top))}
.registration-panel{width:min(100%,560px);height:min(92dvh,780px);background:#f4f6f8;color:#0b0d10;
  border-radius:34px 34px 0 0;display:flex;flex-direction:column;box-shadow:0 -24px 70px rgba(0,0,0,.42);overflow:hidden}
.registration-head{height:78px;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;padding:12px 22px 0}
.registration-back,.registration-close{width:44px;height:44px;border-radius:50%;background:#e8ecef;color:#7b8896;font-size:34px;line-height:1;display:grid;place-items:center}
.registration-close{font-size:30px}.registration-steps{display:flex;justify-content:center;gap:6px}
.registration-steps i{display:block;width:24px;height:4px;border-radius:4px;background:#d6dce1}.registration-steps i.on{background:#169fe5}
.registration-body{flex:1;padding:8px 30px 20px;display:flex;flex-direction:column;text-align:center;overflow:auto}
.registration-overline{text-transform:uppercase;color:#168fd0;font-size:11px;font-weight:800;letter-spacing:.1em;margin:8px 0}
.registration-body h2{font-size:31px;line-height:1.08;letter-spacing:-.03em;margin:6px 0 12px}
.registration-body>p{font-size:16px;line-height:1.45;color:#6d7a89;margin:0 auto 22px;max-width:430px}
.registration-success-mark{width:88px;height:88px;border-radius:50%;display:grid;place-items:center;margin:26px auto 12px;
  background:linear-gradient(145deg,#29b7f4,#168bd8);color:#fff;font-size:40px;font-weight:850;box-shadow:0 16px 36px rgba(22,159,229,.26)}
.registration-primary,.registration-wallet-btn{width:100%;min-height:58px;border-radius:17px;background:#169fe5;color:#fff;
  font-size:17px;font-weight:750;margin-top:auto;padding:0 20px}
.registration-wallet-btn{display:grid;grid-template-columns:36px 1fr 36px;align-items:center;margin-top:2px}
.registration-wallet-btn span:first-child,.registration-wallet-btn span:last-child{width:32px;height:32px;border-radius:9px;background:#fff;color:#169fe5;display:grid;place-items:center}
.registration-wallet-btn[disabled]{opacity:.62}.registration-link{color:#3985b0;font-size:14px;font-weight:650;padding:14px}
.registration-brand{height:78px;border-top:1px solid #e2e6e9;display:flex;align-items:center;gap:9px;padding:0 30px;font-size:20px}
.ton-mini{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#159fe8;color:#fff;font-size:10px;font-weight:900;overflow:hidden}
.registration-help{margin-left:auto;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#e7ebef;color:#768493}
.wallet-education{display:flex;flex-direction:column;gap:12px;margin:8px 0 22px;text-align:left}
.wallet-education>div{display:grid;grid-template-columns:54px 1fr;column-gap:13px;background:#fff;border:1px solid #e4e8ec;border-radius:19px;padding:14px 16px}
.wallet-education-icon{grid-row:1/3;width:50px;height:50px;border-radius:14px;display:grid;place-items:center;background:#eef3f6;color:#7c8da0;font-size:27px}
.wallet-education b{align-self:end;font-size:16px}.wallet-education small{color:#7a8794;margin-top:3px;line-height:1.35}
.wallet-brand-row{display:flex;justify-content:center;gap:13px;margin:22px 0 6px}.wallet-brand{width:62px;height:62px;border-radius:18px;display:grid;place-items:center;color:#fff;font-size:23px;font-weight:850}
.brand-wallet{background:#14202c}.brand-tonkeeper{background:#2476e6}.brand-myton{background:linear-gradient(145deg,#8d35ff,#306cf5)}.brand-more{background:#202c33;font-size:16px}
.registration-safe-note{font-size:11.5px;line-height:1.4;color:#8a96a2;background:#e8edf1;border-radius:13px;padding:10px 12px}

/* ---------- member finance full screen ---------- */
body.finance-mode{background:#090b0e}body.finance-mode .appbar,body.finance-mode .tabbar{display:none}
body.finance-mode main{padding:0;min-height:100dvh}
.member-finance-screen{min-height:100dvh;padding:calc(12px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#111925 0,#090b0e 44%)}
.member-finance-screen .finance-row[hidden]{display:none}
.member-finance-screen>.muted{font-size:12px;line-height:1.5;color:var(--hint);margin:12px 0}
.member-finance-screen .member-trading-totals .k{min-width:0;overflow-wrap:anywhere}
.member-route-balance{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px;padding:12px;border:1px solid #284657;border-radius:12px;background:#112330;font-size:12px}
.member-route-balance .mk{width:24px;height:24px}
.member-route-balance strong{margin-left:auto;color:#78d2ff;overflow-wrap:anywhere}
.member-route-note{display:block;margin-top:9px;color:#8ca5b4;font-size:11px;line-height:1.5}
.member-route-unit{flex:0 0 auto;padding:0 10px;color:#92b6cb;font-size:11px}
.finance-nav{height:48px;display:grid;grid-template-columns:44px 1fr 44px;align-items:center}.finance-nav h1{font-size:19px;text-align:center;margin:0}.finance-back{width:42px;height:42px;border-radius:50%;background:#1c232d;color:#fff;font-size:32px;display:grid;place-items:center}
.finance-hero{border-radius:25px;padding:24px 22px 20px;background:radial-gradient(circle at 85% 0,rgba(42,171,238,.26),transparent 42%),linear-gradient(145deg,#152435,#11151c);border:1px solid rgba(96,151,190,.18);box-shadow:0 18px 50px rgba(0,0,0,.28);margin-top:12px}
.finance-hero-label{color:#98a8b8;font-size:12px}.finance-hero-value{display:flex;align-items:center;gap:10px;font-size:38px;font-weight:830;letter-spacing:-.04em;margin:7px 0 22px}.finance-hero-value .ton-badge{width:37px;height:37px;font-size:9px;display:grid;place-items:center;padding:0}.finance-hero-value small{font-size:16px;color:#8fa0b1;letter-spacing:0}
.finance-split{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid rgba(255,255,255,.08);padding-top:15px}.finance-split span{display:flex;flex-direction:column;gap:3px}.finance-split span+span{border-left:1px solid rgba(255,255,255,.08);padding-left:18px}.finance-split small{color:#758596}.finance-split b{font-size:15px}
.finance-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.finance-actions button{height:64px;min-width:0;border-radius:18px;background:#171b21;display:flex;align-items:center;justify-content:center;gap:6px}.finance-actions button:first-child{background:#169fe5}.finance-actions span{font-size:22px}.finance-actions b{font-size:12px;white-space:nowrap}
.svg-icon{width:1em;height:1em;display:block}.finance-actions .svg-icon{width:26px;height:26px}.finance-back .svg-icon{width:25px;height:25px}.topup-lock .svg-icon{width:31px;height:31px}
.connected-wallet-card{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#15191f;border:1px solid #202730;border-radius:18px;padding:14px 16px}.connected-wallet-card>div{display:flex;flex-direction:column;gap:3px;min-width:0}.connected-wallet-card>div:last-child{text-align:right}.connected-wallet-card small{font-size:11px;color:#7f8d9a}.connected-wallet-card b{overflow:hidden;text-overflow:ellipsis}.connected-wallet-card strong{font-size:15px}
.finance-history-head{margin-top:22px}.finance-history-head h2{font-size:18px;margin:0 0 11px}.finance-filters{display:flex;gap:7px;overflow:auto}.finance-filters button{height:34px;padding:0 13px;border-radius:11px;background:#171b21;color:#8b98a5;font-size:12px;white-space:nowrap}.finance-filters button.on{background:#263545;color:#fff}
.finance-history{display:flex;flex-direction:column;margin-top:10px}.finance-row{display:flex;align-items:center;gap:11px;padding:13px 2px;border-bottom:1px solid #1b2027}.finance-row-icon{width:39px;height:39px;border-radius:13px;background:#17212b;color:#42bff8;display:grid;place-items:center;font-size:19px}.finance-row-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.finance-row-main b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.finance-row-main small{font-size:10.5px;color:#74818e}.finance-row>strong{font-size:13px;white-space:nowrap}.finance-row>strong.positive{color:var(--ok)}.finance-row>strong.negative{color:#ff777c}.finance-row>strong.pending,.profile-history-row>strong.pending{color:var(--hint)}
.finance-invoice-cancel{border:1px solid #334250;border-radius:10px;background:#17212b;color:#cbd6df;padding:7px 9px;font:inherit;font-size:11px}.finance-invoice-cancel:disabled{opacity:.5}.pending-deposit-note{text-align:center;margin:12px 8px 0;line-height:1.4}
.topup-intro{text-align:center;padding:5px 7px 17px}.topup-intro h3{font-size:20px;margin:9px 0 6px}.topup-intro p{color:var(--hint);margin:0}.topup-lock{width:58px;height:58px;border-radius:18px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;margin:auto;font-size:31px}.wallet-inline{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface-2);border-radius:14px;padding:12px 13px;margin-bottom:10px}.wallet-inline>div{display:flex;flex-direction:column;gap:3px}.wallet-inline small{color:var(--hint)}
.topup-progress{min-height:330px;padding:44px 18px 34px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.topup-progress-mark{position:relative;width:94px;height:94px;border-radius:29px;background:linear-gradient(145deg,#102d40,#0d1e2b);display:grid;place-items:center;margin-bottom:25px;box-shadow:inset 0 0 0 1px #1a4157}.topup-progress-mark>img{width:42px;height:42px;position:relative;z-index:2}.topup-progress-mark>span{position:absolute;width:7px;height:7px;border-radius:50%;background:#2db9ff;left:50%;top:50%;margin:-3.5px;animation:topup-orbit 1.35s cubic-bezier(.45,0,.55,1) infinite}.topup-progress-mark>span:nth-child(2){animation-delay:-.45s;opacity:.72}.topup-progress-mark>span:nth-child(3){animation-delay:-.9s;opacity:.42}.topup-progress h3{font-size:22px;margin:0 0 9px}.topup-progress p{max-width:330px;margin:0;color:var(--hint);line-height:1.45}.topup-progress~.btn{display:none}@keyframes topup-orbit{from{transform:rotate(0deg) translateX(54px) rotate(0deg)}to{transform:rotate(360deg) translateX(54px) rotate(-360deg)}}@media(prefers-reduced-motion:reduce){.topup-progress-mark>span{animation:none}.topup-progress-mark>span:nth-child(1){transform:translateX(54px)}.topup-progress-mark>span:nth-child(2){transform:rotate(120deg) translateX(54px)}.topup-progress-mark>span:nth-child(3){transform:rotate(240deg) translateX(54px)}}

/* ---------- compact TON Connect hand-off ---------- */
.sheet.wallet-picker-mode{background:#f5f7f9;color:#0b0d10;border-radius:32px 32px 0 0;max-height:94vh}
.wallet-picker-mode .sheet-grabber{background:#d5dbe1}.wallet-picker-mode .sheet-head{padding:14px 22px 0}
.wallet-picker-mode .sheet-head h2{font-size:0}.wallet-picker-mode .sheet-close{width:44px;height:44px;border-radius:50%;
  margin-left:auto;background:#e8edf1;color:#7d8b99;font-size:26px;display:grid;place-items:center}
.wallet-picker-mode .sheet-body{padding:0 24px 22px}.member-wallet-picker{text-align:center;padding-top:2px}.member-wallet-picker-title{
  font-size:26px;font-weight:820;letter-spacing:-.03em;margin:0 0 6px}.member-wallet-picker>p{font-size:14px;line-height:1.4;color:#728090;
  margin:0 auto 17px;max-width:360px}.wallet-choice{min-width:0;background:transparent;color:#0b0d10;display:flex;flex-direction:column;
  align-items:center;gap:6px;font-size:10.5px;font-weight:700;line-height:1.15}.wallet-choice img,.wallet-choice-fallback{width:52px;height:52px;
  border-radius:15px;object-fit:cover;display:grid;place-items:center;background:#149fe7;color:#fff;font-size:11px;font-weight:850;
  box-shadow:0 6px 15px rgba(25,45,65,.11)}.wallet-choice-telegram{width:100%;height:58px;border-radius:16px;background:#149fe7;color:#fff;
  display:grid;grid-template-columns:40px 1fr 40px;padding:0 12px;font-size:15px;margin-bottom:16px;box-shadow:0 9px 22px rgba(20,159,231,.18)}
.wallet-choice-telegram img,.wallet-choice-telegram .wallet-choice-fallback{width:36px;height:36px;border-radius:10px;background:#fff;color:#149fe7;
  box-shadow:none}.wallet-choice-telegram span:last-child{text-align:center}.wallet-choice-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;align-items:start}.wallet-choice-grid.expanded{grid-template-columns:repeat(4,minmax(0,1fr));max-height:48dvh;overflow:auto;
  padding:4px 1px 10px}.wallet-choice-all>span:first-child{width:52px;height:52px;border-radius:15px;background:#e6ebef;color:#73818e;
  display:grid;place-items:center;font-size:20px}.wallet-choice-all .svg-icon{width:24px;height:24px}.wallet-all-title{text-align:left;color:#71808f;
  font-size:12px;font-weight:750;margin:2px 0 10px}.wallet-picker-security{font-size:10.5px;line-height:1.35;color:#7d8995;background:#e9eef2;
  border-radius:12px;padding:9px 10px;margin-top:17px;display:flex;align-items:flex-start;gap:8px;text-align:left}.wallet-picker-security .svg-icon{
  width:18px;height:18px;flex:none;color:#149fe7}.wallet-connect-state{min-height:300px;padding:22px 8px 12px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.wallet-connect-mark{width:88px;height:88px;
  position:relative;display:grid;place-items:center;margin-bottom:18px}.wallet-connect-symbol{width:62px;height:62px;border-radius:19px;
  display:grid;place-items:center;background:linear-gradient(145deg,#1bb0f1,#1487d4);color:#fff;font-size:29px;font-weight:850;
  box-shadow:0 16px 38px rgba(20,143,211,.24);overflow:hidden}.wallet-connect-symbol>img{width:38px;height:38px}.wallet-connect-mark>i{
  position:absolute;left:50%;bottom:-10px;width:7px;height:7px;border-radius:50%;background:#159fe8;animation:wallet-connect-dots 1.2s ease-in-out infinite}
.wallet-connect-mark>i:nth-of-type(1){margin-left:-23px;animation-delay:-.24s}.wallet-connect-mark>i:nth-of-type(2){margin-left:-3px;animation-delay:-.12s}
.wallet-connect-mark>i:nth-of-type(3){margin-left:17px}.wallet-connect-state h3{font-size:22px;letter-spacing:-.025em;margin:0 0 7px}
.wallet-connect-state>p{max-width:330px;margin:0;color:#728090;font-size:13.5px;line-height:1.4}.wallet-connect-state.verifying .wallet-connect-symbol{
  background:linear-gradient(145deg,#7958e8,#4b7ce5)}.wallet-connect-state.success .wallet-connect-symbol{border-radius:50%;background:linear-gradient(145deg,#32c983,#1da96a)}
.wallet-connect-state.failed .wallet-connect-symbol{border-radius:50%;background:linear-gradient(145deg,#ff8b69,#e25757)}.wallet-connect-retry{min-height:44px;
  width:min(100%,290px);border-radius:13px;background:#159fe8;color:#fff;font-size:14px;font-weight:760;margin:18px 0 0}.wallet-connect-security{
  width:min(100%,390px);display:flex;align-items:flex-start;gap:9px;padding:11px 12px;margin-top:28px;border-radius:13px;background:#e9eef2;
  color:#7d8995;font-size:10px;line-height:1.35;text-align:left}.wallet-connect-security .svg-icon{width:18px;height:18px;flex:none;color:#149fe7}
@keyframes wallet-connect-dots{0%,80%,100%{transform:translateY(0);opacity:.38}40%{transform:translateY(-7px);opacity:1}}
@media(prefers-reduced-motion:reduce){.wallet-connect-mark>i{animation:none}}

@media(max-height:650px){.registration-panel{height:96dvh}.registration-success-mark{margin-top:8px;width:70px;height:70px}.registration-body h2{font-size:26px}.wallet-education>div{padding:10px 12px}.wallet-brand{width:50px;height:50px}}
@media(max-width:420px){.header-telegram-login{padding:0 13px;font-size:12.5px}.header-telegram-icon{width:25px;height:25px}}
@media(max-width:370px){.wallet-picker-mode .sheet-body{padding-inline:16px}.wallet-connect-state{min-height:270px;padding-top:16px}.wallet-choice-grid{gap:5px}.wallet-choice img,.wallet-choice-fallback,.wallet-choice-all>span:first-child{width:47px;height:47px}}

/* ---------- personal profile ---------- */
.personal-profile{max-width:760px;margin:0 auto}.personal-profile-head{display:flex;align-items:center;gap:13px;padding:8px 2px 15px}
.personal-profile-head h1{font-size:25px;margin:0}.personal-profile-head p{margin:2px 0 0;color:var(--hint)}
.personal-avatar{width:54px;height:54px;border-radius:18px;background:linear-gradient(145deg,#186da1,#2aabee);display:grid;place-items:center;font-size:23px;font-weight:850}
.profile-name-card{background:var(--surface);border-radius:16px;padding:14px}.profile-name-card label{display:block;font-weight:700;margin-bottom:8px}
.profile-name-card>div{display:grid;grid-template-columns:minmax(0,1fr) 108px;gap:8px}.profile-name-card .btn{height:44px}.profile-name-card small{display:block;color:var(--hint);font-size:11px;line-height:1.4;margin-top:9px}
.profile-history-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;background:#0e1013;border:1px solid #1d2228;border-radius:14px;padding:5px;margin:17px 0 10px}
.profile-history-tabs button{height:40px;border-radius:10px;color:var(--hint);font-weight:700}.profile-history-tabs button.on{background:var(--surface-2);color:#fff;box-shadow:0 4px 16px rgba(0,0,0,.2)}
.profile-timeline{display:flex;flex-direction:column}.profile-history-row,.profile-gift-row{display:flex;align-items:center;gap:11px;padding:13px 2px;border-bottom:1px solid var(--line)}
.profile-history-icon,.profile-gift-mark{width:40px;height:40px;border-radius:13px;background:#17232d;color:#42bff8;display:grid;place-items:center;flex:none}.profile-history-icon .svg-icon{width:20px;height:20px}
.profile-history-row>div,.profile-gift-row>div:nth-child(2){min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}.profile-history-row small,.profile-gift-row small{color:var(--hint);font-size:10.5px}.profile-history-row strong,.profile-gift-row strong{font-size:12.5px;white-space:nowrap}.profile-history-row .positive{color:var(--ok)}.profile-history-row .negative{color:#ff777c}
.profile-gift-mark{font-size:20px}.profile-gift-summary{display:grid;grid-template-columns:1fr 1fr;gap:9px}.profile-gift-summary span{background:var(--surface);border-radius:14px;padding:13px;color:var(--hint)}.profile-gift-summary b{float:right;color:#fff}
.profile-guide,.admin-settings-accordion{margin-top:22px;background:var(--surface);border-radius:17px;overflow:hidden}.profile-guide summary,.admin-settings-accordion summary{list-style:none;display:flex;align-items:center;gap:10px;padding:16px;cursor:pointer}.profile-guide summary::-webkit-details-marker,.admin-settings-accordion summary::-webkit-details-marker{display:none}
.profile-guide summary>span{width:34px;height:34px;border-radius:11px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}.profile-guide summary .svg-icon{width:19px;height:19px}.profile-guide summary i,.admin-settings-accordion summary>span{margin-left:auto;color:var(--hint);font-style:normal;transition:transform .16s}.profile-guide[open] summary i,.admin-settings-accordion[open] summary>span{transform:rotate(180deg)}
.profile-guide-body,.admin-settings-body{border-top:1px solid var(--line);padding:14px 16px 16px}.profile-guide-body h3{font-size:14px;margin:12px 0 4px}.profile-guide-body h3:first-child{margin-top:0}.profile-guide-body p{color:var(--hint);font-size:12px;line-height:1.45;margin:0}.profile-guide-body .btn{margin-top:15px}
.profile-faq{margin-top:22px}.profile-faq-heading{display:flex;align-items:center;gap:11px;margin-bottom:10px}.profile-faq-heading>span{width:40px;height:40px;border-radius:13px;background:#16374a;color:#2aabee;display:grid;place-items:center}.profile-faq-heading>span .svg-icon{width:22px;height:22px}.profile-faq-heading h2{font-size:17px;margin:0}.profile-faq-heading p{margin:2px 0 0;color:var(--hint);font-size:10px}.profile-faq-list{overflow:hidden;border:1px solid #1d3343;border-radius:17px;background:#101c27}.profile-faq-list details+details{border-top:1px solid #1b2c39}.profile-faq-list summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:12px 14px;list-style:none;cursor:pointer}.profile-faq-list summary::-webkit-details-marker{display:none}.profile-faq-list summary b{font-size:11.5px;line-height:1.35}.profile-faq-list summary i{margin-left:auto;color:#6f8596;font-style:normal;transition:transform .16s}.profile-faq-list details[open] summary i{transform:rotate(180deg)}.profile-faq-list details>p{margin:0;padding:0 14px 14px;color:#8298a8;font-size:10px;line-height:1.55}
@media(max-width:380px){.brand-logo{width:39px}.profile-name-card>div{grid-template-columns:1fr}.profile-name-card .btn{width:100%}}

/* ---------- Telegram Native Pro: member workspace ---------- */
.member-brand-meta{display:none}
body.member-ui{--member-bg:#071019;--member-panel:#101b27;--member-panel-2:#142331;--member-line:#203140;
  background:var(--member-bg);background-image:radial-gradient(circle at 88% -5%,rgba(42,171,238,.13),transparent 32%)}
.member-ui .appbar{background:rgba(7,16,25,.94);border-bottom:1px solid rgba(255,255,255,.045);backdrop-filter:blur(18px);
  padding:calc(10px + env(safe-area-inset-top)) 14px 9px;justify-content:flex-start}
.member-ui .brand-logo{width:42px;height:42px;border-radius:0;background:transparent;box-shadow:none}
.member-ui .member-brand-meta{display:flex;flex-direction:column;gap:1px;min-width:0;margin-right:auto}
.member-ui .member-brand-meta b{font-size:14px;letter-spacing:-.01em}.member-ui .member-brand-meta small{font-size:9px;color:#7f91a3}
.member-ui .appbar-right{margin-left:auto;gap:6px}.member-ui .icon-btn{background:#111d29;border:1px solid #1b2a38}
.member-ui .balance-chip{height:38px;background:#111d29;border:1px solid #1b2a38;padding-right:9px}
.member-ui .balance-chip .ton-badge{width:28px;height:28px}.member-ui .avatar{width:38px;height:38px;border:1px solid #233444;background-color:#132230}
.member-ui main{padding:8px 14px calc(var(--nav-h) + 34px + env(safe-area-inset-bottom));max-width:760px;margin:0 auto}
.member-ui .tabbar{left:50%;transform:translateX(-50%);width:min(100%,760px);background:rgba(8,16,24,.96);border-color:#172532;
  padding:6px 10px calc(7px + env(safe-area-inset-bottom));backdrop-filter:blur(18px)}
.member-ui .tab{min-height:47px;border-radius:13px;color:#718395;gap:2px}.member-ui .tab-ico{width:22px;height:22px}.member-ui .tab-label{font-size:9.5px}
.member-ui .tab.on{background:#132433;color:#eaf7ff}.member-ui .tab.on::after{background:#2aabee;box-shadow:0 0 12px rgba(42,171,238,.65)}
.member-screen-heading{padding:10px 2px 13px}.member-screen-heading>span{font-size:9.5px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#3db8f2}
.member-screen-heading h1{font-size:27px;line-height:1.08;letter-spacing:-.035em;margin:4px 0 5px}.member-screen-heading p{margin:0;color:#8799aa;font-size:12px}

/* create tracking */
.member-track-screen,.member-sub-screen,.member-history-screen{width:100%}
.member-access-strip{display:flex;align-items:center;gap:11px;padding:11px 12px;margin-bottom:10px;border:1px solid rgba(61,220,132,.18);
  border-radius:16px;background:linear-gradient(100deg,rgba(61,220,132,.09),rgba(42,171,238,.06))}
.member-access-strip>span{width:36px;height:36px;border-radius:12px;background:rgba(61,220,132,.15);color:#52e598;display:grid;place-items:center;font-size:17px;font-weight:850}
.member-access-strip>div{display:flex;flex-direction:column;min-width:0;flex:1}.member-access-strip b{font-size:12.5px}.member-access-strip small{font-size:10px;color:#7f918f}
.member-access-strip>i{font-style:normal;font-size:9px;font-weight:800;color:#50de91;text-transform:uppercase;letter-spacing:.06em}
.member-track-card{padding:12px;background:linear-gradient(155deg,#111f2b,#0d1822);border:1px solid #1c2e3c;border-radius:20px;box-shadow:0 18px 44px rgba(0,0,0,.18)}
.member-gift-picker{height:auto;min-height:82px;width:100%;justify-content:flex-start;border:1px solid #263b4a;background:#132331;border-radius:17px;padding:10px;text-align:left}
.member-gift-picker.awaiting-choice{border-color:#2aabee;background:linear-gradient(135deg,rgba(42,171,238,.17),rgba(42,171,238,.06));animation:member-picker-glow 1.8s ease-in-out infinite}
@keyframes member-picker-glow{50%{box-shadow:0 0 0 4px rgba(42,171,238,.08),0 0 28px rgba(42,171,238,.16)}}
.member-gift-picker img.member-gift-art{width:60px;height:60px;border-radius:15px;background:#09131d;object-fit:contain;padding:3px}
.member-gift-placeholder{width:60px;height:60px;border-radius:15px;background:#16364b;color:#4bc5ff;display:grid;place-items:center;font-size:28px;flex:none}
.member-gift-copy{display:flex!important;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;flex:1}
.member-gift-copy small{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#52bff1}.member-gift-copy b{font-size:15px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.member-gift-copy em{font-size:10px;color:#8295a5;font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.member-gift-change{font-size:10px!important;color:#4bc5ff!important;font-weight:700;flex:none!important}
.member-floor-card{margin-top:8px;border:1px solid #1d3241;border-radius:14px;background:#0b1721;overflow:hidden}
.member-floor-card.loading{min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:13px;text-align:center;color:#8295a5;font-size:10px}
.member-floor-loader{height:14px;display:flex;align-items:center;justify-content:center;gap:6px}
.member-floor-loader i{width:7px;height:7px;border-radius:50%;background:#2aabee;box-shadow:0 0 10px rgba(42,171,238,.35);animation:member-floor-pulse .9s ease-in-out infinite}
.member-floor-loader i:nth-child(2){animation-delay:.15s}.member-floor-loader i:nth-child(3){animation-delay:.3s}
@keyframes member-floor-pulse{0%,100%{transform:translateY(0);opacity:.35}50%{transform:translateY(-4px);opacity:1}}
@media(prefers-reduced-motion:reduce){.member-floor-loader i{animation:none;opacity:.75}}
.member-floor-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px}
.member-floor-row+.member-floor-row{border-top:1px solid #1a2a37}.member-floor-row>span{font-size:9px;color:#8295a5;max-width:92px}
.member-floor-row>div{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;flex:1}.member-floor-cell{display:flex;align-items:center;gap:3px;min-width:0}
.member-floor-cell .mk{width:18px;height:18px;flex:none}.member-floor-cell b{font-size:10px}.member-floor-cell small{font-size:7px;color:#728596}
.member-floor-cell.empty b{font-size:7.5px;color:#718594;max-width:60px;line-height:1.15}.member-floor-note{display:block;padding:0 10px 9px;color:#647b8c;font-size:7.5px;line-height:1.4}
.member-track-section{margin-top:13px;padding-top:2px}.member-track-section+.member-track-section{border-top:1px solid rgba(255,255,255,.055);padding-top:10px}
.member-track-section-title{display:flex;align-items:center;justify-content:space-between;margin:1px 1px 8px}.member-track-section-title span{font-size:13px;font-weight:750}.member-track-section-title small{font-size:9px;color:#6e8293;text-transform:uppercase;letter-spacing:.08em}
.member-ui .member-track-card .field-heading{font-size:11px;margin:7px 1px 5px;color:#aebdca}.member-ui .member-track-card .field{background:#0b151f;border-color:#1a2a37;height:43px}
.member-trait-list{margin-top:8px;border:1px solid #1b2c39;border-radius:14px;overflow:hidden;background:#0c1721}
.member-trait-list .trait-help-item{display:grid;grid-template-columns:minmax(90px,.6fr) minmax(0,1fr);align-items:center;padding:4px 8px;min-height:50px}
.member-trait-list .trait-help-item+.trait-help-item{border-top:1px solid #1a2a37}.member-trait-list .field-heading{margin:0!important;font-size:11px!important}
.member-trait-list .select-btn{height:39px;background:#13212d;border-color:transparent;justify-self:stretch}.member-trait-list .select-btn.on{border-color:#2aabee;background:rgba(42,171,238,.1)}
.member-ui .selected-traits{margin:8px 1px 0}.member-ui .selected-trait-chip{background:#102b3d;border-color:#246b91;padding:6px 8px;font-size:10px}
.member-ui .member-markets{grid-template-columns:repeat(3,1fr);gap:7px;margin:4px 0}.member-ui .member-markets .market{height:58px;position:relative;gap:6px;flex-direction:column;background:#0b151f;border-color:#1c2b37}
.member-ui .member-markets .market.on{background:rgba(42,171,238,.11);border-color:#2aabee}.member-ui .member-markets .mk{width:25px;height:25px}.member-market-name{font-size:9px;color:#8395a5}.market.on .member-market-name{color:#dff4ff}
.member-market-check{position:absolute;right:6px;top:5px;width:14px;height:14px;border-radius:50%;background:#2aabee;color:#fff;font-size:9px;display:none;place-items:center}.market.on .member-market-check{display:grid}
.member-price{height:52px;background:#0b151f;border-color:#1a2b38;padding-left:9px}.member-ton-mark{width:30px;height:30px;border-radius:50%;background:#0f6d9d;color:#cceeff;display:grid;place-items:center;font-size:9px;font-weight:850;overflow:hidden;flex:none}.member-ton-mark .ton-logo{width:30px;height:30px}.member-price input{text-align:left;padding-left:10px}
.member-safe-note{display:flex;gap:9px;align-items:flex-start;margin-top:12px;border-radius:13px;background:rgba(61,220,132,.07);padding:9px 10px}.member-safe-note>span{width:19px;height:19px;border-radius:50%;background:rgba(61,220,132,.15);color:#51df92;display:grid;place-items:center;font-size:11px}.member-safe-note p{margin:1px 0 0;color:#82958f;font-size:10px;line-height:1.4}
.member-balance-alert{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;padding:13px 14px;border:1px solid rgba(255,184,92,.28);border-radius:16px;background:rgba(255,162,52,.09)}.member-balance-alert b{display:block;color:#ffd18a;font-size:13px}.member-balance-alert p{margin:4px 0 0;color:#a99b87;font-size:10px;line-height:1.4}.member-balance-alert button{flex:none;border-radius:11px;padding:9px 11px;background:#23a6e8;color:#fff;font-size:10px;font-weight:800}
.member-sticky-action{height:52px;border-radius:16px;font-weight:780;background:linear-gradient(135deg,#1ba9ed,#157fd4);box-shadow:0 13px 30px rgba(20,145,214,.25)}
.member-limit-state{background:#101d28;border:1px solid #1d3040;border-radius:20px;padding:28px 18px}.member-limit-state h2{font-size:20px}.member-limit-icon{width:52px;height:52px;border-radius:17px;background:rgba(61,220,132,.12);color:#54e39a;display:grid;place-items:center;margin:0 auto;font-size:23px}

/* access and active rules */
.member-plan-card{background:linear-gradient(145deg,#112534,#0e1b27);border:1px solid #203746;border-radius:21px;padding:15px;overflow:hidden;position:relative}
.member-plan-card::after{content:"";position:absolute;width:140px;height:140px;border-radius:50%;right:-55px;top:-70px;background:rgba(42,171,238,.1);filter:blur(2px)}
.member-plan-top{display:flex;align-items:center;gap:11px;position:relative;z-index:1}.member-plan-icon{width:44px;height:44px;border-radius:15px;background:linear-gradient(145deg,#2aabee,#137fcd);display:grid;place-items:center;font-size:18px;font-weight:850;box-shadow:0 8px 23px rgba(42,171,238,.22)}
.member-plan-top>div{display:flex;flex-direction:column;min-width:0;flex:1}.member-plan-top small{font-size:8px;letter-spacing:.1em;color:#41b9ef;font-weight:800}.member-plan-top h2{font-size:16px;margin:2px 0 0}.member-plan-top p{font-size:10px;color:#7e92a3;margin:2px 0 0}.member-plan-top>b{font-size:9px;letter-spacing:.08em;border:1px solid rgba(42,171,238,.35);color:#58c8fa;border-radius:8px;padding:5px 7px}
.member-plan-usage{display:flex;justify-content:space-between;align-items:flex-end;margin-top:16px}.member-plan-usage span{display:flex;flex-direction:column}.member-plan-usage b{font-size:13px}.member-plan-usage small,.member-plan-usage em{font-size:9px;color:#778b9c;font-style:normal}
.member-plan-progress{height:5px;background:#20303c;border-radius:999px;margin:8px 0 11px;overflow:hidden}.member-plan-progress i{display:block;height:100%;background:linear-gradient(90deg,#2aabee,#4ed4fa);border-radius:inherit}
.member-plan-meta{display:flex;justify-content:space-between;font-size:11px;color:#8295a5}.member-plan-meta b{color:#fff}.member-plan-price{display:flex;align-items:end;gap:8px;margin:10px 0}.member-plan-price b{font-size:22px}.member-plan-price span{font-size:9px;color:#7d91a2;margin-bottom:4px}
.member-list-heading{display:flex;align-items:center;justify-content:space-between;margin:20px 2px 9px}.member-list-heading h2{font-size:15px;margin:0}.member-list-heading p{font-size:9.5px;color:#758899;margin:2px 0 0}.member-list-heading>span{min-width:28px;height:25px;padding:0 7px;border-radius:9px;background:#132331;color:#72cffa;display:grid;place-items:center;font-size:10px;font-weight:750}
.member-rules-list{display:flex;flex-direction:column;gap:8px}.member-rule-card{display:flex;align-items:flex-start;gap:11px;background:#101c27;border:1px solid #1b2c39;border-radius:18px;padding:11px}.member-rule-card.paused{opacity:.72}
.member-rule-visual{width:70px;flex:0 0 70px;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}.member-rule-art{width:64px;height:64px;border-radius:16px;background:linear-gradient(145deg,#1a4057,#172b3a);display:grid;place-items:center;font-size:19px;font-weight:850;position:relative;overflow:visible}.member-rule-art>img{width:100%;height:100%;padding:4px;object-fit:contain;border-radius:inherit;filter:drop-shadow(0 4px 6px rgba(0,0,0,.28))}.member-rule-art>span{position:relative;z-index:1}.member-rule-art i{position:absolute;right:-2px;bottom:-2px;width:12px;height:12px;border:2px solid #101c27;border-radius:50%;background:#6f7f8d;z-index:2}.member-rule-art i.live{background:#3ddc84;box-shadow:0 0 9px rgba(61,220,132,.55)}.member-rule-visual>small{display:block;max-width:70px;color:#dcecf7;font-size:8px;font-weight:750;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-rule-visual>em{display:flex;align-items:center;gap:3px;max-width:70px;color:#728797;font-size:7px;font-style:normal;overflow:hidden;white-space:nowrap}.member-rule-visual>em>b{width:9px;height:9px;border-radius:50%;flex:none}.member-cancel-edit{width:100%;margin-top:7px}
.member-rule-main{min-width:0;flex:1}.member-rule-heading{display:flex;gap:8px;justify-content:space-between}.member-rule-heading>div{min-width:0}.member-rule-heading h3{font-size:13px;margin:1px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-rule-heading p{font-size:9.5px;color:#788b9a;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-rule-heading .switch{transform:scale(.82);transform-origin:right top}
.member-rule-traits{display:flex;flex-wrap:wrap;gap:4px;margin-top:7px}.member-rule-traits span{display:inline-flex;gap:4px;max-width:100%;padding:4px 6px;border-radius:8px;background:#102a3a;color:#cfeeff;font-size:8.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-rule-traits b{color:#55c8fb;text-transform:uppercase;font-size:7px;letter-spacing:.03em;flex:none}
.member-rule-details{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:9px 0}.member-rule-details>span{background:#0b151e;border-radius:10px;padding:7px 8px;display:flex;flex-direction:column;gap:2px}.member-rule-details small{font-size:8px;color:#708394}.member-rule-details b{font-size:11px}.member-rule-details em{display:flex;gap:4px}.member-rule-details .mk{width:17px;height:17px}
.member-rule-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.member-rule-footer>span{font-size:9px;color:#7d8e9c}.member-rule-footer>span.live{color:#45dc8b}.member-rule-actions{display:flex;align-items:center;gap:9px}.member-rule-actions button{font-size:9px;padding:3px}.member-rule-actions [data-member-edit]{color:#55c8fb}.member-rule-actions [data-member-delete]{color:#ff777c}
.member-empty-state .empty{background:#101c27;border-radius:17px}.member-empty-state .btn-primary{margin-top:8px}

/* member history */
.member-history-hero{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(145deg,#122739,#0e1b27);border:1px solid #203545;border-radius:20px;padding:17px}.member-history-hero>div{display:flex;flex-direction:column}.member-history-hero small{font-size:9px;color:#7b91a3}.member-history-hero strong{font-size:29px;letter-spacing:-.04em;margin:4px 0}.member-history-hero strong em{font-size:12px;color:#7d93a5;font-style:normal}.member-history-hero span{font-size:9px;color:#8194a3}.member-history-hero>i{width:42px;height:42px;border-radius:14px;background:rgba(42,171,238,.13);color:#46c0f5;display:grid;place-items:center;font-size:21px;font-style:normal}
.member-history-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:8px}.member-history-metrics article{background:#101c27;border:1px solid #1a2b38;border-radius:15px;padding:10px;display:flex;flex-direction:column}.member-history-metrics small{font-size:8.5px;color:#738697}.member-history-metrics b{font-size:20px;margin:3px 0}.member-history-metrics span{font-size:8px;color:#647887}
.member-rule-analytics{margin-top:8px;background:#101c27;border:1px solid #1a2b38;border-radius:15px;overflow:hidden}.member-rule-analytics summary{list-style:none;padding:12px;font-size:11px;font-weight:700;display:flex;justify-content:space-between}.member-rule-analytics summary::-webkit-details-marker{display:none}.member-rule-analytics summary span{color:#718695}.member-rule-analytics>div{border-top:1px solid #1b2b38}.member-rule-analytics article{display:flex;justify-content:space-between;gap:10px;padding:10px 12px}.member-rule-analytics article+article{border-top:1px solid #192936}.member-rule-analytics article>div{display:flex;flex-direction:column;min-width:0}.member-rule-analytics b{font-size:10.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-rule-analytics small,.member-rule-analytics article>span{font-size:8.5px;color:#718494}
.member-activity-list,.member-purchase-list,.member-payment-list{background:#101c27;border:1px solid #1b2c39;border-radius:17px;overflow:hidden}.member-activity-list article{display:flex;align-items:flex-start;gap:10px;padding:11px}.member-activity-list article+article,.member-purchase-list .member-purchase-row+.member-purchase-row,.member-payment-list article+article{border-top:1px solid #192a37}.member-activity-dot{width:9px;height:9px;border-radius:50%;background:#2aabee;box-shadow:0 0 0 4px rgba(42,171,238,.1);margin:5px 2px 0;flex:none}.member-activity-list article>div{min-width:0;flex:1}.member-activity-list b{font-size:11px}.member-activity-list p{font-size:9px;color:#748796;line-height:1.4;white-space:pre-line;margin:2px 0 0}.member-activity-list em{font-style:normal;font-size:8px;color:#607585}
.member-purchase-row{width:100%;display:flex;align-items:center;gap:10px;padding:10px;text-align:left;color:inherit;background:transparent}.member-purchase-row:active{background:#132432}.member-purchase-art{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;flex:none;overflow:hidden;font-weight:800}.member-purchase-art img{width:100%;height:100%;padding:3px;object-fit:contain;filter:drop-shadow(0 3px 5px rgba(0,0,0,.3))}.member-purchase-art.large{width:82px;height:82px;border-radius:21px}.member-purchase-copy{display:flex;flex-direction:column;min-width:0;flex:1;gap:3px}.member-purchase-copy>b{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-purchase-copy small{display:flex;align-items:center;gap:5px;color:#728697;font-size:8.5px}.member-purchase-copy .mk{width:17px;height:17px}.member-purchase-row>strong{font-size:10.5px;white-space:nowrap}.member-purchase-row>i{font-size:18px;color:#526b7e;font-style:normal}.member-purchase-row.state-bought>strong{color:#54dba0}.member-payment-list article{display:flex;align-items:center;gap:10px;padding:11px}.member-payment-list article>span{color:#ffcc43}.member-payment-list b{flex:1;font-size:11px}.member-payment-list em{font-size:9px;color:#738696;font-style:normal}
.member-gift-sheet{display:flex;flex-direction:column;gap:13px}.member-gift-detail-head{display:flex;align-items:center;gap:13px;padding:4px 0}.member-gift-detail-head>div{min-width:0}.member-gift-detail-head small{display:flex;align-items:center;gap:6px;color:#7890a1;font-size:9px}.member-gift-detail-head small .mk{width:20px;height:20px}.member-gift-detail-head h3{margin:5px 0 3px;font-size:20px;line-height:1.15}.member-gift-detail-head p{margin:0;color:#7d93a4;font-size:11px}.member-gift-detail-traits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.member-gift-detail-traits>span{min-width:0;padding:9px 10px;border:1px solid #1d3343;border-radius:12px;background:#0d1b25;display:flex;flex-direction:column;gap:4px}.member-gift-detail-traits small{font-size:8px;color:#6e8394}.member-gift-detail-traits b{display:flex;align-items:center;gap:6px;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-gift-detail-traits img,.member-detail-trait-dot{width:22px;height:22px;border-radius:7px;object-fit:cover;flex:none}.member-detail-trait-dot{border-radius:50%}.member-gift-owner-note{padding:10px 11px;border-radius:12px;background:#102536;border:1px solid #1d4762;color:#8fb1c5;font-size:9px;line-height:1.45}.member-open-gift{height:46px}
.member-transfer-gift,.member-open-gift.secondary{height:46px;width:100%;border-radius:13px}.member-open-gift.secondary{border:1px solid #25465d;background:#102332;color:#8fd5f5;font-weight:700}.member-deal-events{margin-top:12px;border:1px solid #1b2d3a;border-radius:15px;background:#0d1821;overflow:hidden}.member-deal-events>summary{padding:12px 13px;display:flex;justify-content:space-between;cursor:pointer;font-size:11px;font-weight:700;list-style:none}.member-deal-events>summary::-webkit-details-marker{display:none}.member-deal-events>.member-activity-list{border-top:1px solid #1b2d3a}

/* Live gift handoff card */
.member-transfer-panel{border:1px solid #21465b;background:#0d1a24}
.member-transfer-list-state{display:flex;align-items:center;gap:5px;width:max-content;max-width:100%;font-size:8px;font-style:normal;color:#84a0b4}.member-transfer-list-state>i{width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px color-mix(in srgb,currentColor 12%,transparent)}.member-transfer-list-state.tone-active,.member-transfer-list-state.tone-waiting{color:#4cc5fa}.member-transfer-list-state.tone-success{color:#55df9c}.member-transfer-list-state.tone-review{color:#ffc166}.member-transfer-list-state.tone-danger{color:#ff7479}
.member-gift-sheet{gap:12px;padding-bottom:2px}.member-gift-detail-head{gap:14px;padding:2px 0 3px}.member-gift-detail-head>div{flex:1}.member-gift-market{display:flex;align-items:center;gap:6px;color:#69cbf6;font-size:8px;font-weight:800;letter-spacing:.09em}.member-gift-market .mk{width:20px;height:20px}.member-gift-detail-head h3{margin:6px 0 7px;font-size:21px;letter-spacing:-.025em}.member-gift-detail-head p{display:flex;align-items:center;gap:8px;margin:0}.member-gift-detail-head p b{font-size:13px;color:#f4fbff}.member-gift-detail-head p span{padding:4px 7px;border-radius:7px;background:#142735;color:#8197a8;font-size:8px;font-weight:750}.member-gift-owner-note{padding:11px 12px;border-radius:14px;font-size:9.5px;line-height:1.5}
.member-transfer-panel{--status:#4cc5fa;position:relative;overflow:hidden;padding:13px;border:1px solid color-mix(in srgb,var(--status) 28%,#1c3241);border-radius:17px;background:linear-gradient(145deg,color-mix(in srgb,var(--status) 9%,#0d1a24),#0d1923)}.member-transfer-panel::after{content:"";position:absolute;right:-34px;top:-52px;width:110px;height:110px;border-radius:50%;background:color-mix(in srgb,var(--status) 9%,transparent);pointer-events:none}.member-transfer-panel.tone-ready{--status:#56dca0}.member-transfer-panel.tone-success{--status:#55df9c}.member-transfer-panel.tone-waiting{--status:#55bdf2}.member-transfer-panel.tone-review{--status:#ffc166}.member-transfer-panel.tone-danger{--status:#ff7479}.member-transfer-panel.tone-muted{--status:#7890a1}.member-transfer-panel>header{position:relative;z-index:1;display:grid;grid-template-columns:35px minmax(0,1fr) auto;align-items:center;gap:9px}.member-transfer-state-icon{width:35px;height:35px;border-radius:12px;background:color-mix(in srgb,var(--status) 16%,transparent);display:grid;place-items:center}.member-transfer-state-icon>i{width:11px;height:11px;border-radius:50%;background:var(--status);box-shadow:0 0 0 5px color-mix(in srgb,var(--status) 12%,transparent)}.tone-active .member-transfer-state-icon>i,.tone-waiting .member-transfer-state-icon>i{animation:member-transfer-breathe 1.5s ease-in-out infinite}.member-transfer-panel header>div{display:flex;min-width:0;flex-direction:column;gap:2px}.member-transfer-panel header small{font-size:7px;font-weight:850;letter-spacing:.11em;color:var(--status)}.member-transfer-panel h4{margin:0;font-size:13px;line-height:1.2}.member-transfer-panel time{font-size:7.5px;color:#647b8c;white-space:nowrap}.member-transfer-panel>p{position:relative;z-index:1;margin:10px 0 12px;color:#8ba0b0;font-size:9.5px;line-height:1.48}.member-transfer-steps{position:relative;z-index:1;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;margin:2px 0 11px}.member-transfer-steps>span{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;color:#526979;font-size:7.5px}.member-transfer-steps>span::after{content:"";position:absolute;left:calc(50% + 8px);right:calc(-50% + 8px);top:5px;height:1px;background:#243846}.member-transfer-steps>span:last-child::after{display:none}.member-transfer-steps i{position:relative;z-index:1;width:11px;height:11px;border:2px solid #2a3d4b;border-radius:50%;background:#0d1923}.member-transfer-steps .reached{color:#8da5b5}.member-transfer-steps .reached i{border-color:var(--status);background:var(--status);box-shadow:0 0 0 3px color-mix(in srgb,var(--status) 10%,transparent)}.member-transfer-steps .reached::after{background:color-mix(in srgb,var(--status) 55%,#243846)}.member-transfer-steps .current b{color:#e5f3fb}.member-transfer-panel>footer{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:9px;border-top:1px solid rgba(255,255,255,.055)}.member-transfer-panel footer b{font-size:8.5px;color:#c7dae5}.member-transfer-panel footer span{font-size:7.5px;color:#607788;text-align:right}.member-gift-custody-badge{width:max-content;max-width:100%;padding:5px 8px;border-radius:8px;background:#172837;color:#7991a2;font-size:8px}@keyframes member-transfer-breathe{0%,100%{transform:scale(.82);opacity:.55}50%{transform:scale(1);opacity:1}}@media(prefers-reduced-motion:reduce){.tone-active .member-transfer-state-icon>i,.tone-waiting .member-transfer-state-icon>i{animation:none}}
.member-transfer-fee{margin-top:9px;border:1px solid #1d3343;border-radius:14px;background:#0d1821;overflow:hidden}.member-transfer-fee summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;list-style:none;cursor:pointer}.member-transfer-fee summary::-webkit-details-marker{display:none}.member-transfer-fee summary>span{display:flex;align-items:center;gap:6px;color:#7890a1;font-size:9px}.member-transfer-fee summary>span i{width:17px;height:17px;border:1px solid #446075;border-radius:50%;display:grid;place-items:center;color:#9fb6c6;font-size:9px;font-style:normal;font-weight:800}.member-transfer-fee summary>b{color:#dceaf2;font-size:9px;text-align:right}.member-transfer-fee>p{margin:0;padding:0 12px 12px;color:#7890a1;font-size:9px;line-height:1.48}

/* profile inherits the same compact Telegram palette */
.member-ui .personal-profile-head{padding-top:12px}.member-ui .personal-avatar{border-radius:16px;background:linear-gradient(145deg,#168ece,#2aabee);box-shadow:0 10px 26px rgba(42,171,238,.18)}
.member-ui .profile-name-card,.member-ui .profile-guide,.member-ui .profile-history-tabs{background:#101c27;border-color:#1b2c39}.member-ui .profile-name-card{border:1px solid #1b2c39}.member-ui .profile-timeline,.member-ui .profile-gift-row{background:#101c27}.member-ui .profile-history-row,.member-ui .profile-gift-row{padding-inline:10px}
.profile-tour-card{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;margin:16px 0 10px;padding:12px;border:1px solid #1d3d51;border-radius:16px;background:linear-gradient(135deg,#102536,#101c27)}.profile-tour-card>span{width:42px;height:42px;border-radius:13px;background:#16374a;color:#2aabee;display:grid;place-items:center}.profile-tour-card>span .svg-icon{width:22px;height:22px}.profile-tour-card>div{min-width:0;display:flex;flex-direction:column;gap:3px}.profile-tour-card b{font-size:12px}.profile-tour-card small{color:#7890a1;font-size:8.5px;line-height:1.35}.profile-tour-card .btn{height:38px;padding:0 14px;font-size:10px}@media(max-width:420px){.profile-tour-card{grid-template-columns:38px minmax(0,1fr)}.profile-tour-card>span{width:38px;height:38px}.profile-tour-card .btn{grid-column:1/-1;width:100%}}
.profile-admin-tools{margin-top:18px}.profile-admin-tools>p{margin:-2px 2px 10px;color:#7890a1;font-size:9px;line-height:1.4}.profile-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.profile-admin-grid button{display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;gap:2px 9px;min-width:0;padding:11px;border:1px solid #1d3343;border-radius:15px;background:#101c27;color:#edf8ff;text-align:left}.profile-admin-grid button>span{grid-row:1/3;width:34px;height:34px;border-radius:11px;background:#16374a;color:#2aabee;display:grid;place-items:center}.profile-admin-grid button>span .svg-icon{width:18px;height:18px}.profile-admin-grid button b{font-size:10.5px;line-height:1.25}.profile-admin-grid button small{color:#718798;font-size:8px;line-height:1.3}.profile-admin-grid button.wide{grid-column:1/-1}.profile-admin-grid button:active{border-color:#2aabee;background:#132737}@media(max-width:360px){.profile-admin-grid{grid-template-columns:minmax(0,1fr)}.profile-admin-grid button.wide{grid-column:auto}}
@media(max-width:390px){
  .member-ui .member-brand-meta small{display:none}.member-ui .member-brand-meta b{font-size:12px}.member-ui .appbar{padding-inline:10px;gap:7px}
  .member-ui .appbar-right{gap:4px}.member-ui .icon-btn{width:34px}.member-ui .balance-chip{padding-right:7px}.member-ui #balanceValue{max-width:62px}
  .member-trait-list .trait-help-item{grid-template-columns:82px minmax(0,1fr)}.member-screen-heading h1{font-size:25px}
}

/* Operators retain every admin screen, but share the same Telegram-native
   chrome so an administrator sees the deployed visual release immediately. */
body.operator-ui{--bg:#071019;--surface:#101b27;--surface-2:#142331;--surface-3:#1a2b3a;--line:#203140;
  background:#071019;background-image:radial-gradient(circle at 88% -5%,rgba(42,171,238,.12),transparent 31%)}
.operator-ui .appbar{background:rgba(7,16,25,.94);border-bottom:1px solid rgba(255,255,255,.045);backdrop-filter:blur(18px);
  padding:calc(10px + env(safe-area-inset-top)) 14px 9px;justify-content:flex-start}
.operator-ui .brand-logo{width:42px;height:42px;border-radius:0;background:transparent;box-shadow:none}.operator-ui .member-brand-meta{display:flex;flex-direction:column;gap:1px;min-width:0;margin-right:auto}
.operator-ui .member-brand-meta b{font-size:14px}.operator-ui .member-brand-meta small{font-size:9px;color:#7f91a3}
.operator-ui .appbar-right{margin-left:auto;gap:6px}.operator-ui .icon-btn,.operator-ui .balance-chip{background:#111d29;border:1px solid #1b2a38}.operator-ui .balance-chip{height:38px}.operator-ui .avatar{width:38px;height:38px;border:1px solid #233444;background-color:#132230}
.operator-ui main{max-width:920px;margin:0 auto}.operator-ui .tabbar{left:50%;transform:translateX(-50%);width:min(100%,920px);background:rgba(8,16,24,.96);border-color:#172532;backdrop-filter:blur(18px)}
.operator-ui .tab{color:#718395}.operator-ui .tab.on{background:#132433;color:#eaf7ff}.operator-ui .tab.on::after{box-shadow:0 0 12px rgba(42,171,238,.65)}
@media(max-width:390px){.operator-ui .member-brand-meta small{display:none}.operator-ui .member-brand-meta b{font-size:12px}.operator-ui .appbar{padding-inline:10px;gap:7px}.operator-ui .appbar-right{gap:4px}.operator-ui .icon-btn{width:34px}}

.selected-trait-mini{width:28px;height:28px;border-radius:9px;display:inline-grid;place-items:center;flex:0 0 28px;overflow:hidden;background:#292b31;color:#fff;font-size:12px;font-weight:800}.selected-trait-mini img{width:100%;height:100%;object-fit:cover;display:block}.selected-trait-mini.backdrop{border-radius:50%}.selected-trait-mini.number{background:linear-gradient(145deg,#23a6e8,#087aac);color:#fff}
.selected-trait-chip{display:inline-flex;align-items:center;gap:7px}.select-btn>.selected-trait-mini+span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;flex:1}.member-auto-buy{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:14px;border-radius:16px;background:rgba(35,166,232,.1);border:1px solid rgba(35,166,232,.24)}
.member-auto-buy h4{margin:0 0 3px}.member-auto-buy p{margin:0;color:#86a0b2;font-size:10px;line-height:1.4}.member-auto-buy>b{flex:none;padding:5px 8px;border-radius:999px;background:rgba(49,199,121,.14);color:#62dda0;font-size:9px;text-transform:uppercase;letter-spacing:.06em}
.number-sheet-copy{margin:4px 0 16px;padding:15px 16px;border:1px solid rgba(42,171,238,.22);border-radius:16px;background:rgba(42,171,238,.07)}.number-sheet-copy b{display:block;font-size:16px}.number-sheet-copy p{margin:6px 0 0;color:var(--hint);font-size:13px;line-height:1.45}.number-presets-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin:0 2px 9px}.number-presets-head b{font-size:14px}.number-presets-head span{color:var(--hint);font-size:11px;text-align:right}.number-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:16px}.number-preset{display:flex;min-width:0;min-height:76px;padding:11px;align-items:flex-start;justify-content:space-between;gap:7px;border:1px solid #293946;border-radius:15px;background:#111c24;color:#edf8ff;text-align:left}.number-preset span{min-width:0}.number-preset b,.number-preset small{display:block}.number-preset b{font-size:13px;line-height:1.2}.number-preset small{margin-top:5px;color:#8499a8;font-size:10px;line-height:1.3}.number-preset i{display:grid;flex:0 0 25px;height:25px;place-items:center;border-radius:8px;background:#203341;color:#9cb4c5;font-size:10px;font-style:normal;font-weight:800}.number-preset.active{border-color:#2aabee;background:rgba(42,171,238,.14);box-shadow:inset 0 0 0 1px rgba(42,171,238,.35)}.number-preset.active i{background:#2aabee;color:#fff}.number-entry-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:stretch}.number-entry-row .field{margin:0;min-width:0}.number-add{border:0;border-radius:14px;padding:0 16px;background:#23a6e8;color:#fff;font-weight:800}.number-selection-meta{display:flex;justify-content:space-between;gap:10px;margin:12px 2px 10px;color:var(--hint);font-size:12px}.number-tags{display:flex;flex-wrap:wrap;gap:8px}.number-tag{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:9px 11px;border:1px solid rgba(42,171,238,.62);border-radius:12px;background:rgba(42,171,238,.12);color:#eaf8ff;font-size:14px;font-weight:750}.number-tag i{font-style:normal;color:#7fbedf;font-size:17px;line-height:1}.number-tags-empty{padding:22px 14px;border:1px dashed #294050;border-radius:14px;color:var(--hint);text-align:center;font-size:13px;line-height:1.45}.number-expand{display:block;margin:12px auto 0;border:0;background:transparent;color:#2aabee;font-size:13px;font-weight:800}.sheet-foot #numberReset,.sheet-foot #numberApply{flex:1;height:46px;width:auto}
@media(max-width:680px){.trait-help-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){.number-presets{grid-template-columns:minmax(0,1fr)}.number-preset{min-height:62px}.number-entry-row{grid-template-columns:minmax(0,1fr)}.number-add{min-height:44px}.number-selection-meta{align-items:flex-start;flex-direction:column}}
.member-advanced-box{margin-top:8px;padding:12px;border:1px solid #223746;border-radius:16px;background:#0b1721}.member-limits-heading{padding-bottom:7px}.member-limits-heading h4{margin:0 0 3px;font-size:13px}.member-limits-heading p{margin:0;color:#7990a1;font-size:10px;line-height:1.4}.member-advanced-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding-top:5px}.member-advanced-fields>div{display:flex;min-width:0;flex-direction:column}.member-advanced-fields .field-heading,.member-advanced-fields .stepper{min-width:0}.member-advanced-fields .field-heading{min-height:42px;align-items:flex-start}.member-advanced-fields .field-heading>span{min-width:0;overflow-wrap:anywhere}.member-advanced-fields .stepper{margin-top:auto}.member-qty-stepper,.member-budget-stepper{width:100%;height:46px;background:#101f2b;border-color:#223747}.member-qty-stepper button{width:42px;font-size:20px;color:#55c8fb}.member-qty-stepper input{appearance:textfield}.member-qty-stepper input::-webkit-inner-spin-button{appearance:none}.member-budget-stepper{padding-left:8px;overflow:hidden}.member-budget-stepper input{width:0;min-width:0;text-align:left;padding-left:8px}
@media(max-width:520px){.member-advanced-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.member-advanced-box{padding-inline:10px}.member-qty-stepper button{width:36px}.member-budget-stepper{padding-left:6px}.member-budget-stepper input{padding-left:6px}}
.member-rule-buy-badge{display:inline-flex;margin-top:8px;padding:6px 9px;border-radius:999px;background:rgba(35,166,232,.12);color:#49bdf3;font-size:12px;font-weight:800}
.member-price-notify{margin-top:10px}.member-notify-settings{display:flex;flex-direction:column;gap:3px;margin:0 0 10px;padding:10px 12px;border-radius:13px;border:1px solid #214359;background:#0d2230}.member-notify-settings b{font-size:11px;color:#dff5ff}.member-notify-settings span{font-size:9.5px;line-height:1.4;color:#7f99aa}

/* operator capital dashboard */
.admin-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:12px}.admin-overview-grid article{min-width:0;min-height:112px;padding:13px;border:1px solid #203648;border-radius:17px;background:linear-gradient(145deg,#101b25,#0d151d);display:flex;flex-direction:column}.admin-overview-grid article small{color:#7f94a5;font-size:9px;text-transform:uppercase;letter-spacing:.07em}.admin-overview-grid article b{font-size:19px;line-height:1.15;margin:9px 0 6px;overflow-wrap:anywhere}.admin-overview-grid article span{color:#718596;font-size:9px;line-height:1.35;margin-top:auto}.admin-overview-grid article.danger{border-color:#63343b;background:linear-gradient(145deg,#25161b,#171318)}.admin-overview-grid article.danger b{color:#ff6976}.admin-overview-grid article.success{border-color:#1e5948}.admin-overview-grid article.success b{color:#45d49a}.admin-market-funding-grid{display:grid;gap:10px}.admin-market-funding{padding:13px;border-radius:17px;background:#10191f;border:1px solid #21303a}.admin-market-funding.short{border-color:#5f3438}.admin-market-funding-head{display:flex;align-items:center;gap:9px}.admin-market-funding-head .mk{width:31px;height:31px;flex:none}.admin-market-funding-head>div{display:flex;flex:1;min-width:0;flex-direction:column}.admin-market-funding-head b{font-size:13px}.admin-market-funding-head small{font-size:9px;color:#748796}.admin-market-funding-head strong{font-size:13px;color:#46d49b}.admin-market-funding.short .admin-market-funding-head strong{color:#ff727d}.admin-funding-bar{height:7px;border-radius:999px;background:#1d2932;overflow:hidden;margin:11px 0}.admin-funding-bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#18a9ee,#48d9a0)}.admin-market-funding.short .admin-funding-bar span{background:linear-gradient(90deg,#ff8b5b,#ff5f77)}.admin-market-funding-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.admin-market-funding-values span{min-width:0;display:flex;flex-direction:column}.admin-market-funding-values small{color:#708494;font-size:8px}.admin-market-funding-values b{font-size:10px;margin-top:3px;overflow-wrap:anywhere}.admin-market-funding-result{margin-top:10px;padding-top:9px;border-top:1px solid #20303a;text-align:right;font-size:11px;font-weight:800;color:#42d299}.admin-market-funding.short .admin-market-funding-result{color:#ff6f79}.admin-dashboard-note{font-size:9px;line-height:1.4;color:#718495;margin:10px 2px 18px}.admin-deposit-config{margin-top:18px;padding-top:4px;border-top:1px solid var(--line)}.admin-deposit-config>label{display:block;color:var(--hint);font-size:10px;margin-bottom:7px}.admin-deposit-config .toggle-row{margin-top:10px}.admin-deposit-config .btn{margin:10px 0}.ok-box{padding:12px 13px;border-radius:13px;background:#10291f;border:1px solid #20533f;color:#50d49e;font-size:11px;line-height:1.4}.topup-amount{font-size:22px;font-weight:800;text-align:center}.topup-limits{font-size:10px;text-align:center;margin:8px 0 13px}
.header-analytics{width:38px;height:38px;border:1px solid #1c3445;border-radius:13px;background:#0d1b26;color:#77cfff;display:grid;place-items:center}.header-analytics[hidden]{display:none}.header-analytics svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.member-floor-refreshing{padding:6px 10px;background:#10283a;color:#70c9fb;font-size:10px;text-align:center}.member-floor-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-top:1px solid #1d3241}.member-floor-foot span{font-size:9px;color:#708495}.member-floor-foot button{border:0;border-radius:8px;padding:7px 9px;background:#17364a;color:#75cfff;font-size:10px;font-weight:750}.trait-price{display:block;margin-top:3px;color:#7acfff;font-size:10px;font-weight:750;white-space:nowrap}
.sales-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}.sales-summary article{min-width:0;padding:10px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}.sales-summary small{display:block;color:var(--hint);font-size:9px}.sales-summary b{display:block;margin-top:5px;font-size:12px;overflow-wrap:anywhere}.sales-more{display:block;width:100%;margin:10px 0}
.analytics-floor-matrix{display:grid;gap:8px;margin-bottom:14px}.analytics-floor-row{padding:11px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.analytics-floor-row>b{display:block;margin-bottom:8px;font-size:12px}.analytics-floor-row>span{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:6px;padding:5px 0;border-top:1px solid rgba(255,255,255,.04)}.analytics-floor-row>span:first-of-type{border-top:0}.analytics-floor-row .mk{width:17px;height:17px}.analytics-floor-row strong{font-size:11px}.analytics-floor-row small{color:var(--hint);font-size:8px}.analytics-attribution{color:var(--hint);font-size:9px;text-align:right}

/* customer-owned trading accounts */
.member-trading-panel{margin:18px 0;padding:14px;border:1px solid #1d4054;border-radius:18px;background:linear-gradient(145deg,#0e202d,#0d1822)}.member-trading-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.member-trading-heading span{color:#65c9fa;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.member-trading-heading h2{margin:4px 0 0;font-size:18px}.member-trading-heading i{padding:5px 8px;border-radius:999px;background:rgba(49,199,121,.12);color:#62dda0;font-size:8px;font-style:normal;font-weight:800}.member-trading-panel>p{margin:9px 0 12px;color:#8298a8;font-size:10px;line-height:1.45}.member-trading-warning,.member-trading-error{padding:10px 11px;border:1px solid #664047;border-radius:12px;background:#24161b;color:#ff8490;font-size:10px;line-height:1.4}.member-trading-connect{display:grid;gap:7px}.member-trading-connect>div{display:flex;align-items:center;gap:7px;padding:9px;border:1px solid #1c3241;border-radius:14px;background:#101d27}.member-trading-connect>div>span{display:flex;align-items:center;gap:7px;margin-right:auto}.member-trading-connect .mk,.member-trading-account-head .mk,.member-trading-preference .mk{width:25px;height:25px}.member-trading-connect .btn{height:34px;padding:0 10px;font-size:9px}.member-trading-accounts{display:grid;gap:8px;margin-top:10px}.member-trading-account{padding:11px;border:1px solid #233744;border-radius:15px;background:#0d1821}.member-trading-account.enabled{border-color:#245842}.member-trading-account-head{display:flex;align-items:center;gap:8px}.member-trading-account-head>div{display:flex;min-width:0;flex:1;flex-direction:column}.member-trading-account-head b{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-trading-account-head small{color:#718797;font-size:8px}.member-trading-account-head>span{max-width:36%;color:#77cfff;font-size:8px;text-align:right}.member-trading-meta{display:flex;justify-content:space-between;gap:9px;margin-top:9px;color:#8296a5;font-size:8px}.member-trading-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.member-trading-actions .btn{height:34px;padding:0 10px;font-size:9px}.member-trading-empty{padding:18px;margin-top:10px;border:1px dashed #284253;border-radius:14px;color:#738998;text-align:center;font-size:10px}.member-trading-preferences{display:grid;gap:7px}.member-trading-preference{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:9px}.member-trading-preference>span{display:flex;align-items:center;gap:7px;font-size:10px}.member-trading-preference .field{margin:0;height:40px;font-size:10px}.member-trading-footnote{display:block;margin-top:11px;color:#6f8494;font-size:8px;line-height:1.45}.member-trading-modal{position:fixed;z-index:140;inset:0;display:grid;place-items:end center;padding:18px;background:rgba(2,8,13,.78);backdrop-filter:blur(7px)}.member-trading-modal-card{position:relative;width:min(100%,430px);padding:20px;border:1px solid #28475b;border-radius:22px;background:#0d1923;box-shadow:0 22px 70px rgba(0,0,0,.5)}.member-trading-modal-card h3{margin:0 28px 10px 0}.member-trading-modal-card p{color:#8ba0ae;font-size:11px;line-height:1.45}.member-trading-modal-close{position:absolute;right:12px;top:10px;width:34px;height:34px;border:0;border-radius:11px;background:#172734;color:#ccecff;font-size:22px}.member-trading-qr{display:block;width:min(250px,80vw);margin:14px auto;border:10px solid #fff;border-radius:14px}.member-trading-modal-card form{display:grid;gap:10px}.member-trading-modal-card label{display:grid;gap:7px;color:#8da3b2;font-size:10px}.member-trading-security{margin:13px 0 0!important;color:#677d8c!important;font-size:8px!important}.member-payment-source{margin-top:13px}.member-payment-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.member-payment-modes button{display:flex;min-width:0;flex-direction:column;gap:4px;padding:11px;border:1px solid #243947;border-radius:14px;background:#101b24;color:#ecf7fd;text-align:left}.member-payment-modes button.on{border-color:#2aabee;background:rgba(42,171,238,.13);box-shadow:inset 0 0 0 1px rgba(42,171,238,.23)}.member-payment-modes button:disabled{opacity:.45}.member-payment-modes b{font-size:10px}.member-payment-modes small{color:#788d9b;font-size:8px}.member-payment-account{display:grid;gap:7px;margin-top:9px;color:#8ca2b1;font-size:9px}.member-payment-account .field{margin:0}.member-payment-account small{color:#6d8291;font-size:8px}
.operator-trading-hero-primary{margin-top:0;background:radial-gradient(circle at 86% 3%,rgba(42,171,238,.32),transparent 44%),linear-gradient(145deg,#12304a,#101922)}
.operator-trading-hero-primary .finance-hero-value .mk{width:37px;height:37px;font-size:17px}
.member-rule-execution{margin:9px 0;padding:10px;border:1px solid #735839;border-radius:12px;background:#292318;color:#f1d49f;overflow-wrap:anywhere}.member-rule-execution b{font-size:11px}.member-rule-execution p{margin:5px 0 0;font-size:10px;line-height:1.45}.member-rule-execution .mk{width:16px;height:16px;vertical-align:middle}
@media(max-width:390px){.member-trading-preference{grid-template-columns:1fr}.member-trading-meta{flex-direction:column}.member-trading-connect>div{flex-wrap:wrap}.member-trading-connect>div>span{width:100%}.member-payment-modes{grid-template-columns:1fr}}
