:root {
  --bg: #0b0c10;
  --bg2: #101116;
  --panel: #111318;
  --panel2: #171920;
  --line: #1f222a;
  --line2: #2a2e38;
  --text: #e8e9ee;
  --muted: #7d828c;
  --green: #2fe39a;
  --red: #ff4d6d;
  --yellow: #f5b544;
  --blue: #526fff;
  --blue2: #6c84ff;
  --r: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 13px/1.4 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; min-height: 100vh; padding-bottom: 34px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line2); border-radius: 8px; padding: 9px 11px; outline: none; width: 100%; }
input:focus, textarea:focus { border-color: var(--blue); }
input[type=number]::-webkit-inner-spin-button { opacity: .4; }
.up { color: var(--green) !important; }
.down { color: var(--red) !important; }
.warn { color: var(--yellow) !important; }
.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.pad { padding: 10px; }
.nowrap { white-space: nowrap; }
.spacer { flex: 1; }
.sol-i { color: #9b8cff; margin-right: 3px; font-size: .95em; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 16px; background: rgba(11,12,16,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .5px; font-size: 15px; white-space: nowrap; }
.logo b { color: var(--blue2); font-weight: 800; }
.nav { display: flex; gap: 2px; margin-left: 10px; }
.nav a { padding: 7px 12px; border-radius: 8px; font-weight: 600; color: #c9ccd3; }
.nav a:hover { background: var(--panel2); color: #fff; }
.nav a.on { color: #fff; background: var(--panel2); }
.search { position: relative; margin-left: auto; width: 260px; display: flex; align-items: center; }
.search svg { position: absolute; left: 11px; color: var(--muted); }
.search input { padding-left: 32px; border-radius: 999px; background: var(--panel); height: 36px; }
.bal-pill { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line2); font-weight: 700; white-space: nowrap; }
.paper-tag { font-size: 9px; font-weight: 800; letter-spacing: .8px; color: var(--blue2); background: rgba(82,111,255,.14); padding: 2px 5px; border-radius: 4px; }
.bp-pnl { font-size: 12px; font-weight: 600; }
.name-pill { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 36px; height: 36px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line2); display: grid; place-items: center; color: #c9ccd3; flex: none; }
.icon-btn:hover { color: #fff; }
.bnav { display: none; }

/* ---------- status bar ---------- */
.statusbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; height: 30px; display: flex; align-items: center; gap: 18px; padding: 0 16px; background: var(--bg2); border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.statusbar b { color: var(--text); font-weight: 600; }
.sb-note { margin-left: auto; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--red); vertical-align: middle; }
.dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- common ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.btn { height: 36px; padding: 0 16px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line2); font-weight: 600; }
.btn:hover { border-color: #3a3f4c; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red-o { color: var(--red); border-color: rgba(255,77,109,.4); background: rgba(255,77,109,.06); }
.btn.buy { background: var(--green); border-color: var(--green); color: #04130c; font-weight: 700; }
.link { color: var(--blue2); font-weight: 600; }
.link:hover { text-decoration: underline; }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.seg button { padding: 4px 10px; border-radius: 6px; color: var(--muted); font-weight: 600; font-size: 12px; }
.seg button.on { background: var(--panel2); color: #fff; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.empty a { color: var(--blue2); }
.note { padding: 10px 12px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.cp { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; color: var(--muted); }
.cp:hover { color: #fff; background: var(--panel2); }
.av { position: relative; display: inline-grid; place-items: center; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--avc) 22%, #15171d); flex: none; }
.av-l { font-weight: 800; color: var(--avc); font-size: 1.05em; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- pulse ---------- */
.view { padding: 14px 16px; }
.pulse-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.pulse-head h1 { font-size: 20px; margin: 0; }
.quick { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px 3px 12px; }
.quick svg { color: var(--yellow); }
.quick input { width: 70px; height: 28px; padding: 4px 8px; border-radius: 999px; text-align: center; font-weight: 700; }
.preset-pill { color: var(--muted); font-size: 12px; cursor: pointer; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.preset-pill:hover { color: #fff; }
.mtabs { display: none; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; height: calc(100vh - 56px - 30px - 28px - 50px); min-height: 480px; }
.col { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-height: 0; }
.col-h { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cnt { color: var(--muted); font-size: 12px; }
.pause { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line2); color: var(--muted); }
.pause.on { color: var(--yellow); border-color: var(--yellow); }
.list { overflow-y: auto; flex: 1; min-height: 0; }
.list::-webkit-scrollbar { width: 6px; } .list::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 3px; }
.card { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); position: relative; transition: background .5s; }
.card:hover { background: var(--panel2); }
.card::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: transparent; }
.card[data-risk=red]::before { background: var(--red); }
.card[data-risk=yellow]::before { background: var(--yellow); }
.card.held { background: rgba(82,111,255,.06); }
.card.enter { animation: enter .5s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(-8px); background: rgba(82,111,255,.18); } }
.card.f-buy { animation: fbuy .6s; } .card.f-sell { animation: fsell .6s; }
@keyframes fbuy { from { background: rgba(47,227,154,.16); } }
@keyframes fsell { from { background: rgba(255,77,109,.16); } }
.c-av { flex: none; }
.c-av .av { border-radius: 10px; }
.c-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.c-r1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.c-sym { font-size: 14px; white-space: nowrap; }
.c-name { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.c-r2 { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.c-age { color: var(--green); font-weight: 600; }
.c-soc, .soc { display: inline-flex; gap: 6px; }
.c-soc a, .soc a { color: var(--muted); display: inline-flex; } .c-soc a:hover, .soc a:hover { color: #fff; }
.c-r3 { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line2); }
.tag:empty { display: none; }
.tag.ok { color: var(--green); border-color: rgba(47,227,154,.25); }
.tag.warn { color: var(--yellow); border-color: rgba(245,181,68,.3); }
.tag.bad { color: var(--red); border-color: rgba(255,77,109,.3); }
.c-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; min-width: 92px; }
.c-mc, .c-v { font-size: 11.5px; color: var(--muted); } .c-mc b { color: #fff; font-size: 13px; } .c-v b { color: #c9ccd3; }
.c-bar { width: 80px; height: 3px; background: var(--line2); border-radius: 2px; overflow: hidden; }
.c-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); }
.qb { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; font-size: 11.5px; margin-top: 2px; }
.qb:hover { background: var(--blue2); }
.qb.busy, .busy { opacity: .45; pointer-events: none; }
.qb.sm { margin: 0; }

/* ---------- coin page ---------- */
.v-coin { padding-top: 10px; }
.coin-head { display: flex; align-items: center; gap: 20px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; flex-wrap: wrap; }
.ch-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ch-t { display: flex; align-items: center; gap: 7px; } .ch-t b { font-size: 17px; } .ch-t span { color: var(--muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-sub { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.ch-sub > span:first-child { color: var(--green); font-weight: 600; }
.ch-sub a { display: inline-flex; align-items: center; gap: 3px; } .ch-sub a:hover { color: #fff; }
.ch-mc { font-size: 22px; font-weight: 800; }
.ch-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.ch-stats div { display: flex; flex-direction: column; } .ch-stats span { color: var(--muted); font-size: 11.5px; } .ch-stats b { font-size: 13px; }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; grid-template-areas: "chart side" "tabs side"; gap: 10px; }
.g-chart { grid-area: chart; overflow: hidden; }
.g-side { grid-area: side; display: flex; flex-direction: column; gap: 10px; }
.g-tabs { grid-area: tabs; overflow: hidden; }
.tb { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tb-note { margin-left: auto; color: var(--muted); font-size: 11px; }
.chart { height: 440px; }
.tabs { display: flex; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { padding: 8px 12px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: #fff; border-color: var(--blue); }
.tab-body { max-height: 460px; overflow: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); white-space: nowrap; }
.tbl td { padding: 7px 12px; border-bottom: 1px solid #16181e; white-space: nowrap; }
.tbl tr:hover td { background: var(--panel2); }
.tbl a:hover { color: var(--blue2); }
.tbl .tok { display: inline-flex; align-items: center; gap: 8px; }
.wt { font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; margin-left: 6px; background: var(--panel2); color: var(--muted); letter-spacing: .3px; }
.wt.dev { color: var(--yellow); background: rgba(245,181,68,.12); }
.wt.trk { color: var(--blue2); background: rgba(82,111,255,.14); }
.wt.snp { color: var(--red); background: rgba(255,77,109,.12); }
.mini { font-size: 11.5px; padding: 3px 8px; border-radius: 6px; margin-left: 4px; }
.mini.sb { border: 1px solid rgba(255,77,109,.45); color: var(--red); }

/* trade panel */
.tp { padding: 12px; }
.tp-presets { display: flex; gap: 4px; margin-bottom: 10px; }
.tp-presets button { padding: 4px 11px; border-radius: 6px; color: var(--muted); font-weight: 700; }
.tp-presets button.on { color: var(--blue2); background: rgba(82,111,255,.14); }
.tp-presets .gear { margin-left: auto; font-weight: 600; font-size: 12px; }
.tp-row { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 8px; }
.tp-l { font-weight: 700; font-size: 14px; }
.tp-bal { color: var(--muted); font-size: 12px; } .tp-bal b { color: #fff; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.bb, .sb { height: 38px; border-radius: 999px; font-weight: 700; border: 1px solid; }
.bb { color: var(--green); border-color: rgba(47,227,154,.4); }
.bb:hover { background: rgba(47,227,154,.1); }
.sb { color: var(--red); border-color: rgba(255,77,109,.4); }
.sb:hover { background: rgba(255,77,109,.1); }
.custom { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.custom input { height: 36px; } .custom span { color: var(--muted); font-weight: 600; }
.tp-quote { font-size: 11.5px; color: var(--muted); margin: 7px 2px; min-height: 16px; }
.tp-quote b { color: #fff; }
.tp-set { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--muted); padding: 7px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tp-pos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.tp-pos div { background: var(--bg2); border-radius: 8px; padding: 7px 9px; display: flex; flex-direction: column; }
.tp-pos div.wide { grid-column: 1 / -1; }
.tp-pos span { color: var(--muted); font-size: 11px; }
.ti { padding: 0 0 10px; }
.ti-h { display: flex; align-items: center; gap: 8px; padding: 11px 12px; font-weight: 700; }
.ti-h a { margin-left: auto; color: var(--blue2); font-size: 12px; font-weight: 600; }
.ti-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 0 12px; }
.ti-c { border: 1px solid var(--line); border-radius: 8px; padding: 8px 4px; text-align: center; display: flex; flex-direction: column; }
.ti-c b { font-size: 14px; } .ti-c span { color: var(--muted); font-size: 11px; }
.risk { margin: 10px 12px 0; padding: 10px; border-radius: 8px; border: 1px solid var(--line); }
.risk-h { display: flex; align-items: center; gap: 7px; }
.rd { width: 9px; height: 9px; border-radius: 50%; }
.r-green .rd { background: var(--green); } .r-green .risk-h b { color: var(--green); }
.r-yellow .rd { background: var(--yellow); } .r-yellow .risk-h b { color: var(--yellow); }
.r-red .rd { background: var(--red); } .r-red .risk-h b { color: var(--red); }
.r-red { border-color: rgba(255,77,109,.35); background: rgba(255,77,109,.04); }
.risk ul { margin: 6px 0; padding-left: 18px; color: #c9ccd3; font-size: 12px; }
.tmini { max-height: 330px; overflow: auto; }
.wtr { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-top: 1px solid var(--line); }
.wtr:hover { background: var(--panel2); }
.wtr-m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wtr-1 { display: flex; gap: 5px; align-items: center; } .wtr-1 b { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wtr-2 { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- pages ---------- */
.page { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.page-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
.page-h h1 { margin: 0; font-size: 22px; }
.page-h p { margin: 4px 0 0; flex-basis: 100%; }
.trk-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 12px; align-items: start; }
.addw { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 12px; border-bottom: 1px solid var(--line); }
.wrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--line); }
.wrow > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.wrow-b { display: flex; align-items: center; gap: 8px; font-size: 12px; }
#wFeed { max-height: calc(100vh - 230px); overflow: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.stat { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.stat span { color: var(--muted); font-size: 12px; } .stat b { font-size: 18px; }
.me-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; flex-wrap: wrap; }
.me-b { display: flex; gap: 14px; }
.lb tr.me td { background: rgba(82,111,255,.08); }
.rank { font-weight: 800; color: var(--muted); }
.rank.r1 { color: #ffd34d; } .rank.r2 { color: #cfd6e4; } .rank.r3 { color: #e09a5c; }

/* ---------- modal + toasts ---------- */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(3px); }
.modal[hidden] { display: none; }
.modal-card { width: 100%; max-width: 460px; max-height: 88vh; overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.modal-card h3 { margin: 0; font-size: 18px; }
.modal-card p { margin: 0; }
.modal-card label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 600; }
.modal-card label.chk { flex-direction: row; align-items: center; color: var(--text); }
.modal-card label.chk input, .set-pt input { width: auto; }
.m-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.set-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.set-p { border: 1px solid var(--line2); border-radius: 10px; padding: 9px; display: flex; flex-direction: column; gap: 8px; }
.set-p.on { border-color: var(--blue); }
.set-pt { display: flex; justify-content: space-between; align-items: center; }
.set-pt label { flex-direction: row !important; align-items: center; gap: 4px !important; }
.set-p input[type=number] { padding: 6px 8px; }
#toasts { position: fixed; right: 16px; bottom: 44px; z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { background: var(--panel2); border: 1px solid var(--line2); border-left: 3px solid var(--blue); padding: 10px 14px; border-radius: 8px; max-width: 360px; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.4); animation: tin .25s ease-out; transition: opacity .4s, transform .4s; }
.toast.buy { border-left-color: var(--green); } .toast.sell, .toast.bad { border-left-color: var(--red); }
.toast.out { opacity: 0; transform: translateX(20px); }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }

/* ---------- responsive ---------- */
@media (max-width: 1250px) {
  .search { width: 190px; }
  .coin-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1050px) {
  .nav { display: none; }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 30px; z-index: 30; background: var(--bg2); border-top: 1px solid var(--line); }
  .bnav a { flex: 1; text-align: center; padding: 11px 0; font-weight: 600; color: var(--muted); }
  .bnav a.on { color: #fff; box-shadow: inset 0 2px 0 var(--blue); }
  body { padding-bottom: 80px; }
  #toasts { bottom: 92px; }
}
@media (max-width: 900px) {
  .mtabs { display: flex; width: 100%; order: 3; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
  .mtabs button { flex: 1; padding: 8px 4px; border-radius: 7px; font-weight: 600; color: var(--muted); }
  .mtabs button.on { background: var(--panel2); color: #fff; }
  .cols { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .cols .col { display: none; }
  .cols[data-show=new] [data-col=new], .cols[data-show=stretch] [data-col=stretch], .cols[data-show=migrated] [data-col=migrated] { display: flex; }
  .col .list { max-height: none; overflow: visible; }
  .coin-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "chart" "side" "tabs"; }
  .chart { height: 340px; }
  .tb-note { display: none; }
  .trk-grid { grid-template-columns: minmax(0, 1fr); }
  .ch-stats { gap: 14px; }
}
@media (max-width: 640px) {
  .top { gap: 8px; padding: 0 10px; height: 52px; }
  .logo span { display: none; }
  .search { width: auto; flex: 1; margin-left: 4px; }
  .name-pill, .paper-tag { display: none; }
  .bal-pill { padding: 0 10px; }
  .bp-pnl { display: none; }
  .view { padding: 10px; }
  .hide-m, .sb-note { display: none; }
  .statusbar { gap: 14px; }
  .set-presets { grid-template-columns: 1fr; }
  .coin-head { gap: 10px; }
  .ch-mc { font-size: 19px; }
  .tbl th, .tbl td { padding: 7px 8px; }
  .card { padding: 10px; }
  .c-right { min-width: 84px; }
}

/* ---------- added: watchlist, filters, orders, alerts, share ---------- */
select { font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line2); border-radius: 8px; padding: 9px 11px; width: 100%; }
.wl { display: flex; gap: 8px; align-items: center; overflow-x: auto; margin-bottom: 10px; }
.wl:empty { display: none; }
.wl-t { display: inline-flex; align-items: center; gap: 5px; color: var(--yellow); font-weight: 700; font-size: 12px; white-space: nowrap; }
.wl-i { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 1px solid var(--line2); border-radius: 999px; background: var(--panel); font-size: 12px; white-space: nowrap; }
.wl-i .av { border-radius: 50%; font-size: 10px; }
.wl-i span { color: var(--muted); }
.fbtn { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line2); color: var(--muted); }
.fbtn.on { color: var(--blue2); border-color: var(--blue); }
.fbtn + .pause { margin-left: 0; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fgrid label:first-child { grid-column: 1 / -1; }
.fgrid label.chk { grid-column: 1 / -1; }
.cp.star.on { color: var(--yellow); }
#bellBtn.on { color: var(--blue2); }
.ord-h { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.ord-kind { width: 100%; } .ord-kind button { flex: 1; }
.ord-q { display: flex; gap: 5px; margin: 8px 0; flex-wrap: wrap; }
.ord-q button { padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line2); color: var(--muted); font-size: 11.5px; font-weight: 600; }
.ord-q button:hover { color: #fff; }
.ord-in { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ord-in label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.ord-in input { height: 34px; }
.btn.wide { width: 100%; margin-top: 8px; }
.ord-note { margin-top: 6px; }
.al-list { display: flex; flex-direction: column; gap: 6px; }
.al-row { display: flex; justify-content: space-between; padding: 7px 10px; background: var(--bg2); border-radius: 8px; }
.rdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.rdot.r-green { background: var(--green); } .rdot.r-yellow { background: var(--yellow); } .rdot.r-red { background: var(--red); }
.mini.sh { border: 1px solid var(--line2); color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.mini.sh:hover { color: #fff; }
.pnl-img { width: 100%; border-radius: 10px; border: 1px solid var(--line2); }
.modal-card:has(.pnl-img) { max-width: 640px; }
.tbl .tok .muted { font-size: 11.5px; }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr; } .page-h .seg { overflow-x: auto; max-width: 100%; } }
.g-chart { display: flex; flex-direction: column; }
.g-chart .chart { flex: 1; min-height: 440px; height: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 900px) { .g-chart .chart { min-height: 340px; } }

/* ---------- chart circle markers ---------- */
.chart { position: relative; }
.mk-layer { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.mk-layer .mk { position: absolute; left: 0; top: 0; margin: -11px 0 0 -11px; pointer-events: auto; cursor: default; }
.mk { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 8.5px; font-weight: 800; letter-spacing: -.2px; color: #fff; border: 2px solid; box-shadow: 0 2px 8px rgba(0,0,0,.5); line-height: 1; }
.mk.mk-buy { border-color: var(--green); } .mk.mk-sell { border-color: var(--red); }
.mk-you { background: var(--blue); }
.mk-dev { background: #c7881c; }
.mk-snp { background: #d6345a; }
.mk-trk { background: var(--mkc, #526fff); }
.mk i { position: absolute; top: -6px; right: -7px; font-style: normal; font-size: 8px; background: #000; border: 1px solid var(--line2); border-radius: 6px; padding: 0 3px; }
.mk-seg .mk { width: 16px; height: 16px; font-size: 7.5px; border-width: 1.5px; margin-right: 5px; box-shadow: none; }
.mk-seg button { display: inline-flex; align-items: center; opacity: .5; }
.mk-seg button.on { opacity: 1; }
.io-row { display: flex; gap: 6px; padding: 0 12px 12px; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12px; flex: 1; }
.wc { flex: none; width: 26px; height: 26px; font-size: 9.5px; box-shadow: none; }
.wtr-1 .wc { width: 18px; height: 18px; font-size: 7.5px; border-width: 1.5px; }
.wrow { justify-content: flex-start; }
.wrow-n { display: flex; flex-direction: column; min-width: 0; flex: 1; }

/* ---------- Instant Trade floating box ---------- */
.it-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--blue); color: var(--blue2); font-weight: 700; font-size: 12.5px; }
.it-btn svg { color: var(--yellow); }
.it-btn.on { background: var(--blue); color: #fff; }
.it { position: fixed; z-index: 50; width: 300px; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 16px 50px rgba(0,0,0,.6); padding-bottom: 8px; }
.it-h { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 12px; border-bottom: 1px solid var(--line); cursor: grab; touch-action: none; user-select: none; }
.it-h:active { cursor: grabbing; }
.it-t { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 12.5px; }
.it-t svg { color: var(--yellow); }
.it-p { display: flex; gap: 2px; margin-left: auto; }
.it-p button { padding: 2px 7px; border-radius: 5px; color: var(--muted); font-weight: 700; font-size: 11px; }
.it-p button.on { color: var(--blue2); background: rgba(82,111,255,.14); }
.it-x { width: 24px; height: 24px; border-radius: 6px; font-size: 18px; line-height: 1; color: var(--muted); }
.it-x:hover { color: #fff; background: var(--panel2); }
.it-sec { padding: 8px 10px 0; }
.it-row1 { display: flex; justify-content: space-between; font-weight: 700; font-size: 12px; margin-bottom: 6px; }
.it-row1 .muted { font-weight: 500; }
.it-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.it-g .bb, .it-g .sb { height: 32px; font-size: 12px; }
.it-foot { padding: 8px 12px 0; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .it { left: 8px !important; right: 8px; top: auto !important; bottom: 88px; width: auto; }
  .it-h { cursor: default; }
  .coin-head .it-btn { margin-left: 0; }
}
@media (max-width: 640px) { #toasts { top: 60px; bottom: auto; left: 10px; right: 10px; align-items: stretch; } .toast { max-width: none; } }
