html,body { background:#000; min-height:100%; margin:0; }
.app {width:100%;max-width:480px;margin:auto;min-height:100dvh;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);overflow:visible}
body:has(.app[data-theme="light"]) {background:#f2f2f6}
button,input,select {font:inherit;color:inherit}
button {cursor:pointer}
button:disabled {opacity:.5;cursor:wait}
button:focus-visible,input:focus-visible {outline:2px solid var(--orange);outline-offset:3px}
.body {position:relative;z-index:1;padding-bottom:30px}
.logo {color-scheme:dark;width:150px;height:150px;margin:4px auto -10px;display:block}
.app[data-theme="light"] .logo {color-scheme:light}
.tabbar {flex-shrink:0;margin:18px auto 0;z-index:4}
.coinrow,.type,.mi,.exb,.hrow {cursor:pointer;color:var(--text)}
.type {padding:10px 5px;text-align:center}
.coinlist .r {width:100%;border:0;background:none;text-align:left;color:var(--text)}
.search input {background:none;border:0;outline:0;width:100%;color:var(--text)}
.search {padding:0 16px}
.back,.iconbtn,.x {color:var(--text);cursor:pointer}
.back:not(.glass),.iconbtn:not(.glass),.x:not(.glass) {background:transparent;border:0}
.uid input {width:100%;background:none;border:0;color:var(--text);outline:none}
.exsw button {height:42px;border-radius:14px;background:var(--plain);border:1px solid var(--edge)}
.exsw button.on {border-color:var(--orange)}
.ex {grid-template-columns:repeat(2,minmax(0,1fr))}
.exb {min-width:0;padding:0 10px;gap:7px;color:#fff}
.exb .tx {min-width:0;text-align:left}
.exb .tx span {overflow-wrap:anywhere}
.mi {width:100%;text-align:left}
.sw {border:0;flex-shrink:0}
.sw.off {background:#666}
.sw.off::after {transform:translateX(-17px)}
.langbtn {background:none;border:0;color:var(--hint);padding:8px}
.langbtn.on {color:var(--orange)}
.hint {font-size:13px;line-height:1.5;color:var(--hint)}
.empty {padding:30px 12px;text-align:center;color:var(--hint);line-height:1.6}
.chartbox canvas {width:100%;height:270px;display:block}
.chartbox {height:270px;flex:0 0 270px;overflow:hidden}
.dir.short {color:var(--short);background:var(--short-bg)}
.more {background:none;border:0;color:var(--orange)}
.risk {background:none;border:0;cursor:pointer}
.hist .hrow {border:0;border-bottom:1px solid var(--edge);background:none;width:100%;text-align:left;color:var(--text)}
.coinimg.mono {display:grid;place-items:center;background:var(--plain);font-size:11px;border:1px solid var(--edge);flex-shrink:0}
.errorbox {margin:16px 0;padding:16px;border:1px solid var(--short);border-radius:16px;color:var(--short)}
.adminrow {padding:12px;border-bottom:1px solid var(--edge);overflow-wrap:anywhere}
.adminrow button {margin-top:8px;background:var(--plain);border:1px solid var(--edge);border-radius:10px;padding:8px}
#toast {position:fixed;bottom:90px;left:50%;transform:translateX(-50%);max-width:90%;background:#333;color:#fff;padding:14px 20px;border-radius:16px;z-index:10;display:none}
pre.risktext {white-space:pre-wrap;font:14px/1.6 inherit}
.busy {text-align:center;padding:50px 20px;color:var(--hint)}
.spinner {display:block;width:32px;height:32px;border:3px solid var(--edge);border-top-color:var(--orange);border-radius:50%;animation:spin 1s linear infinite;margin:20px auto}
@keyframes spin {to {transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}

button svg,.ic svg,.search svg {width:22px;height:22px;flex-shrink:0;vertical-align:middle} .crown svg{width:40px;height:40px} .tabbar button{display:flex;align-items:center;justify-content:center;gap:6px}

@media (max-width: 360px) {
  .types {grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .type {min-width:0;padding-inline:2px}
  .type b {font-size:12px}
}
.hist .nm span {display:block}

.home-body {padding-top:4px}
.home-nav-space {height:34px;flex-shrink:0}
.coinrow {text-align:left;width:100%}
.coinrow .bar {height:22px;width:1px;background:var(--edge)}
.coinrow .grow {flex:1}
.coinrow svg {color:var(--hint)}
.prof-top > .sp {width:40px;flex-shrink:0}
.theme-controls {position:relative;z-index:3}
.theme-auto {position:absolute;top:40px;right:0;font-size:10px;background:none;border:0;color:var(--hint);cursor:pointer}
.seg {display:flex;align-items:center;gap:4px}
.langbtn.on {background:var(--plain);border-radius:8px;box-shadow:var(--shadow);color:var(--text)}
button.tgbtn {color:var(--text)}
.mi .chevron {width:18px;height:18px;color:var(--hint)}
.exb .go svg {width:18px;height:18px}
.exb .go {width:24px;height:24px;right:8px}
.exb {padding-right:36px}
.exsw button {display:flex;align-items:center;justify-content:center;gap:8px}
.exsw .mk {width:20px;height:20px;border-radius:5px;display:grid;place-items:center;font-style:normal;font-size:10px;color:white}
.exsw .mk.bingx {background:#2354e6}
.exsw .mk.bybit {background:#111;font-size:7px}
.uid {gap:10px}
.uid svg {width:20px;height:20px;flex-shrink:0}
.tiny svg {width:16px;height:16px;flex-shrink:0}
.tiny {text-align:center}
.invh em {font-style:normal;color:var(--orange)}
.st .ic svg {width:22px;height:22px}
.info svg,.note svg {width:19px;height:19px;flex-shrink:0}
summary.more {list-style:none}
summary.more::-webkit-details-marker {display:none}
summary.more svg {width:17px;height:17px}
details[open] summary.more svg {transform:rotate(180deg)}
.hist .hrow:last-child {border-bottom:0}
.history-status {font-size:11px;color:var(--hint)}
@media (max-width: 360px) {
 .exb {padding-left:8px;gap:5px;padding-right:28px}
 .exb .lg {font-size:10px}
 .exb .go {right:5px;width:19px;height:19px}
 .exb .tx b {font-size:13px}
 .proh h1 {font-size:25px}
 .sighead .nm b {font-size:20px}
 .dir {font-size:18px;padding-inline:12px}
}

.signal-nav {height:46px}
.home-body {padding-top:clamp(12px,4dvh,32px);gap:24px;justify-content:space-between}
.home-body .hero {margin-top:0}
.home-brand,.home-controls,.home-submit {flex-shrink:0}
.home-body .tabbar {margin-bottom:env(safe-area-inset-bottom)}
.exb .lg img {width:24px;height:24px;object-fit:contain;display:block;filter:brightness(0) invert(1)}
.exsw .mk.bingx {width:20px;background:none}
.exsw .mk.bingx img {width:20px;height:20px;display:block}
.meta {align-items:center;gap:7px;font-size:12px;flex-wrap:wrap}
.meta span {white-space:nowrap}
.meta .v {height:16px;flex-shrink:0}
.pill svg {width:15px;height:15px;vertical-align:middle;margin-right:4px}
