@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JBMono"; src: url("fonts/jbmono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #0C0B12; --card: #13111C; --raise: #1B1826; --active: #241F33;
  --line: #221E2E; --line2: #2D2740; --line3: #3A3252;
  --text: #ECEAF4; --muted: #A8A2BC; --dim: #7F7896;
  --brand: #8F48FE; --grad: linear-gradient(120deg, #7436EE 0%, #8F48FE 50%, #B07CFF 100%); --brand2: #B794FF; --brandbg: #8F48FE1F;
  --green: #22D883; --greenbg: #22D8831A; --red: #FF4560; --redbg: #FF45601A; --amber: #FFB547; --amberbg: #FFB5471A;
  --mono: "JBMono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 12px; --hdr: 58px; --sbar: 30px; --gap: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 500 14px/1.45 "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; font-weight: 600; }
.up { color: var(--green); } .down { color: var(--red); } .muted { color: var(--muted); } .dim { color: var(--dim); }
.small { font-size: 12.5px; }
.hidden { display: none !important; }
svg.i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round;
  stroke-linejoin: round; flex: none; vertical-align: -3px; }

/* ---------- one screen, no page scroll: header / 3 columns / status bar ---------- */
body { height: 100vh; overflow: hidden; display: grid; grid-template-rows: var(--hdr) minmax(0, 1fr) var(--sbar); }
main { display: grid; grid-template-columns: 300px minmax(0, 1fr) 372px; gap: var(--gap); padding: var(--gap); min-height: 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.pad { padding: 14px; }
.scroll { overflow: auto; min-height: 0; overscroll-behavior: contain; }
#side { display: flex; flex-direction: column; min-height: 0; }
#list { flex: 1; padding: 8px 10px; }
#center { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; min-height: 0; }
#chartBox { flex: 1 1 auto; min-height: 260px; overflow: hidden; }
#bottom { flex: 0 0 25%; min-height: 180px; display: flex; flex-direction: column; }
#bBody { flex: 1; }
#tradeCol { display: flex; flex-direction: column; gap: var(--gap); min-height: 0; }
#tradeCol > .panel { flex: none; }

/* thin dark scrollbars on every inner scroll area */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--line2); }
  ::-webkit-scrollbar-corner { background: transparent; }
}
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: var(--line) transparent; } }

/* ---------- header ---------- */
header { display: flex; align-items: center; gap: 14px; padding: 0 12px 0 16px; background: var(--bg); border-bottom: 1px solid var(--line); z-index: 10; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.brand span { color: #fff; }
.brand img { width: 30px; height: 30px; }
.searchbox { position: relative; flex: 1; max-width: 540px; margin: 0 auto; }
.searchbox .i { position: absolute; left: 12px; top: 11px; color: var(--dim); }
.searchbox input { width: 100%; height: 38px; padding: 0 40px 0 38px; border-radius: 10px; background: var(--card);
  border: 1px solid var(--line); color: var(--text); font: inherit; }
.searchbox input::placeholder { color: var(--dim); }
.searchbox input:focus { outline: none; border-color: var(--line2); background: var(--raise); }
.kbd { position: absolute; right: 10px; top: 10px; font: 11px var(--mono); color: var(--dim); border: 1px solid var(--line2);
  border-radius: 5px; padding: 0 6px; }
.right { display: flex; align-items: center; gap: 8px; }
.drop { position: absolute; left: 0; right: 0; top: 44px; background: var(--card); border: 1px solid var(--line2);
  border-radius: var(--r); max-height: 440px; overflow: auto; padding: 4px; box-shadow: 0 20px 50px #000a; z-index: 30; }

/* ---------- buttons ---------- */
button { font: inherit; cursor: pointer; border: 0; color: var(--text); background: none; }
button:disabled { opacity: .45; cursor: default; }
.btn { height: 38px; padding: 0 14px; border-radius: 10px; font-weight: 700; font-size: 14px; display: inline-flex;
  align-items: center; justify-content: center; gap: 6px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn.ghost { border: 1px solid var(--line2); background: transparent; }
.btn.ghost:hover { background: var(--raise); }
.btn.dark { background: var(--raise); border: 1px solid var(--line2); }
.btn.dark:hover { border-color: #4A4166; }
.btn.brand { background: var(--grad); color: #fff; box-shadow: 0 0 0 1px #ffffff14 inset, 0 6px 20px -8px var(--brand); }
.btn.brand:hover { filter: brightness(1.08) saturate(1.05); }
.btn.full { width: 100%; height: 46px; margin-top: 10px; font-size: 15px; }
.walletpill { height: 38px; padding: 0 13px 0 11px; border-radius: 10px; background: var(--raise); border: 1px solid var(--line2);
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.walletpill .dot, .sb .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.walletpill.locked .dot { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.ctitle { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; font-weight: 700;
  color: var(--muted); margin-bottom: 8px; }

/* ---------- tabs ---------- */
.tabs { display: flex; align-items: center; gap: 4px; padding: 0 10px; height: 44px; border-bottom: 1px solid var(--line); flex: none; }
.tabs button { position: relative; height: 44px; padding: 0 10px; color: var(--muted); font-weight: 700; font-size: 14px; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); }
.tabs button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 2px; background: var(--grad); }
.tabnote { margin-left: auto; font-size: 12.5px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.seg button { height: 44px; font-size: 16px; border-radius: 9px; color: var(--muted); font-weight: 800; border: 1px solid transparent; }
.seg button.on { background: var(--active); border-color: var(--line3); color: var(--text); }
.seg button.on.b { color: var(--green); background: var(--greenbg); border-color: #22D88340; } .seg button.on.s { color: var(--red); background: var(--redbg); border-color: #FF456040; }

/* ---------- coin rows (left list, search) ---------- */
.item { display: flex; gap: 11px; align-items: center; padding: 11px 10px; border-radius: 10px; cursor: pointer; }
.item:hover { background: var(--raise); }
.item.on { background: var(--active); box-shadow: 0 0 0 1px var(--line3) inset; }
.ico { width: 36px; height: 36px; border-radius: 50%; background: var(--raise); flex: none; object-fit: cover; display: inline-block; }
.item .mid { flex: 1; min-width: 0; }
.item .sym { font-weight: 800; font-size: 15px; display: flex; gap: 5px; align-items: center; }
.item .sub { color: var(--dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .end { text-align: right; font-size: 13px; white-space: nowrap; }
.item .end .num:first-child { color: var(--text); font-size: 14.5px; font-weight: 700; }
.share { color: var(--dim); padding: 5px; border-radius: 7px; display: inline-flex; } .share:hover { color: var(--text); background: var(--raise); }
.empty { color: var(--dim); padding: 18px; text-align: center; }

/* ---------- compact single-row coin header ---------- */
#coinHead { flex: none; }
.bar { display: flex; align-items: center; gap: 16px; padding: 10px 16px; min-height: 66px; overflow-x: auto; overflow-y: hidden; }
.bar .who { display: flex; align-items: center; gap: 10px; flex: none; }
.bar .ico { width: 42px; height: 42px; }
.bar .t { font-size: 17px; font-weight: 800; letter-spacing: -.01em; display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.bar .t .nm { color: var(--dim); font-weight: 600; font-size: 13px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.bar .links { display: flex; gap: 4px; margin-top: 3px; }
.bar .px { flex: none; padding-left: 14px; border-left: 1px solid var(--line); }
.bar .px .big { font-size: 23px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.bar .px .ch { font-size: 12.5px; }
.bar .kv { display: flex; gap: 22px; margin-left: auto; flex: none; }
.kv > div { white-space: nowrap; }
.kv .l { color: #8F88A8; font-size: 12px; font-weight: 600; }
.kv .v { font-size: 15.5px; font-weight: 700; color: #fff; }
.verified { color: var(--brand2); }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 7px; font-size: 12px;
  background: var(--raise); border: 1px solid var(--line2); color: var(--muted); cursor: pointer; white-space: nowrap; }
.chip:hover { color: var(--text); border-color: #4A4166; }
.chip .i { width: 12px; height: 12px; vertical-align: 0; }
.chip.ic { width: 26px; padding: 0; justify-content: center; }
.chart iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- safety ---------- */
.badges { display: flex; gap: 5px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.badge .i { width: 12px; height: 12px; vertical-align: 0; }
.badge.ok { color: var(--green); background: var(--greenbg); box-shadow: 0 0 0 1px #22D88333 inset; }
.badge.warn { color: var(--amber); background: var(--amberbg); box-shadow: 0 0 0 1px #FFB54733 inset; }
.badge.bad { color: var(--red); background: var(--redbg); box-shadow: 0 0 0 1px #FF456033 inset; }
.alerts { display: flex; flex-direction: column; gap: 5px; }
.alerts:not(:empty) { margin-top: 8px; }
.alert { font-size: 13px; color: var(--amber); background: var(--amberbg); border: 1px solid #FFB54733; border-radius: 8px; padding: 6px 9px; }

/* ---------- trade panel ---------- */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr) 36px; gap: 1px; margin-top: 10px; background: var(--line);
  border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.strip > div { background: var(--bg); padding: 8px 9px; min-width: 0; position: relative; }
.strip .l { color: var(--dim); font-size: 11.5px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.strip .v { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip .u { font-size: 11px; color: var(--dim); font-weight: 600; white-space: nowrap; }
.strip .share { padding: 1px; margin: -2px -3px -2px 0; }
.strip .share .i { width: 12px; height: 12px; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 8px; }
.presets button { height: 44px; border-radius: 10px; background: var(--raise); border: 1px solid var(--line2); font-weight: 600;
  font-family: var(--mono); font-size: 15px; font-weight: 700; transition: border-color .12s, background .12s; }
.presets button:hover { border-color: #4A4166; background: #241F33; }
.amount { display: flex; align-items: center; height: 54px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line2); padding: 0 11px; }
.amount:focus-within { border-color: var(--brand); }
.amount input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; color: var(--text); font: 700 19px var(--mono); }
.amount input:focus { outline: none; }
.amount span { color: var(--muted); font-weight: 700; font-size: 13.5px; }
.exec { width: 100%; height: 54px; margin-top: 10px; border-radius: 11px; font-weight: 800; font-size: 17px; color: #fff; }
.exec.buy { background: #22D883; color: #03170C; box-shadow: 0 0 0 1px #ffffff26 inset, 0 8px 26px -10px #22D883; }
.exec.buy:hover { background: #4DE6A0; filter: none; }
.exec.sell { background: #FF4560; box-shadow: 0 0 0 1px #ffffff1f inset, 0 8px 24px -10px #FF4560; }
.exec:hover { filter: brightness(1.07); }
.fine { color: var(--dim); font-size: 12.5px; margin-top: 7px; display: flex; justify-content: space-between; gap: 8px; }
.flow { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.flow .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.flow .tf { display: flex; gap: 2px; }
.flow .tf button { height: 24px; padding: 0 8px; border-radius: 6px; font: 700 12px var(--mono); color: var(--dim); }
.flow .tf button.on { background: var(--active); color: var(--text); box-shadow: 0 0 0 1px var(--line3) inset; }
.flow .row { margin-top: 7px; }
.flow .lr { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.split { display: flex; gap: 2px; height: 7px; border-radius: 3px; overflow: hidden; background: var(--line); }
.split i { display: block; height: 100%; }
.split .g { background: var(--green); } .split .r { background: var(--red); }
.warnc { color: var(--amber); }
.wline { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 14px; }
.wline .l { color: var(--muted); }
.btnrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.btnrow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }

/* ---------- tables (bottom panel) ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
td, th { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { position: sticky; top: 0; background: var(--card); color: var(--dim); font-weight: 600; font-size: 12.5px; z-index: 1; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--raise); }
td.r, th.r { text-align: right; }
td .ico { width: 24px; height: 24px; vertical-align: -7px; margin-right: 7px; }
.side { font-size: 11.5px; font-weight: 700; padding: 2px 6px; border-radius: 5px; }
.side.buy { color: var(--green); background: var(--greenbg); } .side.sell { color: var(--red); background: var(--redbg); }
.tag { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 5px; margin-left: 6px; color: var(--brand2); background: var(--brandbg); }
.hbar { display: inline-block; width: 70px; height: 4px; border-radius: 2px; background: var(--line); vertical-align: 2px; margin-right: 8px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--grad); }
.mini { height: 28px; padding: 0 11px; border-radius: 7px; font-size: 12.5px; font-weight: 700; }
.mini.sell { color: var(--red); background: var(--redbg); box-shadow: 0 0 0 1px #FF456033 inset; }
.mini.sell:hover { background: #FF45602E; }

/* ---------- status bar ---------- */
#statusbar { display: flex; align-items: center; gap: 0; padding: 0 10px; border-top: 1px solid var(--line); background: var(--bg);
  font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.sb { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-right: 1px solid var(--line); height: 14px; }
.sb:first-child { padding-left: 2px; }
.sb img { width: 14px; height: 14px; }
.sb .dot { width: 6px; height: 6px; }
.sb.off .dot { background: var(--red); box-shadow: 0 0 6px var(--red); }
.sbr { margin-left: auto; display: flex; gap: 14px; }
.sbr a:hover, .sb a:hover { color: var(--text); }

/* ---------- toasts ---------- */
#toasts { position: fixed; right: 14px; bottom: calc(var(--sbar) + 12px); z-index: 40; display: flex; flex-direction: column; gap: 8px; width: 330px; }
.toast { background: var(--raise); border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; font-size: 13.5px;
  box-shadow: 0 16px 40px #000c; display: flex; gap: 10px; align-items: flex-start; animation: tin .18s ease-out; }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 5px; flex: none; }
.toast.ok::before { background: var(--green); } .toast.bad::before { background: var(--red); }
.toast a { color: var(--brand2); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: #07060B99; backdrop-filter: blur(6px); display: flex;
  align-items: center; justify-content: center; padding: 16px; }
.modal .box { position: relative; background: var(--card); border: 1px solid var(--line2); border-radius: 16px; padding: 22px;
  width: 100%; max-width: 460px; max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px #000c; font-size: 14.5px; }
.modal .box.wide { max-width: 660px; }
.modal h2 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.modal p { color: var(--muted); font-size: 14px; margin: 8px 0; }
.modal p b { color: var(--text); }
.modal .x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); font-size: 20px; }
.modal .x:hover { background: var(--raise); color: var(--text); }
.modal .stats { display: grid; gap: 1px; margin-top: 12px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.modal .stats > div { background: var(--card); padding: 9px 11px; }
.modal .stats .l { color: var(--dim); font-size: 11px; } .modal .stats .v { font-weight: 600; }
.field { width: 100%; height: 46px; margin: 6px 0 10px; padding: 0 12px; border-radius: 10px; background: var(--bg);
  border: 1px solid var(--line2); color: var(--text); font: inherit; }
.field:focus { outline: none; border-color: var(--brand); }
textarea.field { height: 80px; padding: 10px 12px; font: 12px var(--mono); resize: none; }
.label { color: var(--dim); font-size: 12px; font-weight: 500; margin-top: 6px; }
.keybox { font: 12.5px/1.5 var(--mono); word-break: break-all; background: var(--bg); border: 1px solid var(--line2);
  border-radius: 10px; padding: 11px 12px; margin: 6px 0; }
.pinIn { text-align: center; font: 600 22px var(--mono) !important; letter-spacing: .4em; }
.terms { max-height: 260px; overflow: auto; font-size: 12.5px; color: var(--muted); background: var(--bg); border: 1px solid var(--line);
  padding: 4px 14px; border-radius: 10px; }
.terms b { color: var(--text); }
.check { display: flex; gap: 9px; align-items: center; font-size: 13px; margin: 12px 0 4px; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }
.say { font-size: 12.5px; min-height: 18px; margin-top: 8px; color: var(--muted); } .say.bad { color: var(--red); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.grid4 .field { margin: 4px 0 8px; text-align: center; font-family: var(--mono); }
canvas.pnl { width: 100%; border-radius: 12px; border: 1px solid var(--line2); display: block; margin: 8px 0; }

/* ---------- smaller screens: the page scrolls normally ---------- */
@media (max-width: 1280px) { main { grid-template-columns: 260px minmax(0, 1fr) 340px; } .kv .hide-md { display: none; } }
@media (max-width: 1240px) { .bar { flex-wrap: wrap; row-gap: 6px; } .bar .kv { margin-left: 0; width: 100%; justify-content: space-between; }
  .kv .hide-md { display: block; } }
@media (max-width: 1000px) {
  body { height: auto; overflow: auto; display: block; }
  header { position: sticky; top: 0; height: var(--hdr); }
  main { grid-template-columns: minmax(0, 1fr); }
  #tradeCol { order: 2; overflow: visible; } #center { order: 1; } #side { order: 3; max-height: 70vh; }
  #chartBox { height: 380px; flex: none; } #bottom { flex: none; height: 360px; }
  .bar { flex-wrap: wrap; } .bar .kv { margin-left: 0; flex-wrap: wrap; gap: 12px; }
  #statusbar { position: sticky; bottom: 0; height: var(--sbar); }
}
@media (max-width: 640px) {
  header { height: auto; flex-wrap: wrap; padding: 8px 10px; gap: 8px; } .searchbox { order: 3; flex-basis: 100%; max-width: none; }
  #inviteBtn, .kbd, .hide-sm { display: none; }
  #toasts { left: 10px; right: 10px; width: auto; }
}

/* share PnL button beside the PnL box */
.strip .sharebox { display: flex; align-items: center; justify-content: center; padding: 0; background: var(--raise); color: var(--muted); }
.strip .sharebox:hover:not(:disabled) { color: var(--green); background: var(--active); }
.strip .sharebox:disabled { opacity: .35; cursor: default; }
.strip .sharebox .i { width: 17px; height: 17px; }

/* own chart */
#chartBox { display: flex; flex-direction: column; position: relative; }
.ctool { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 10px; border-bottom: 1px solid var(--line); flex: none; }
.tfs { display: flex; gap: 2px; }
.tfs button { height: 28px; padding: 0 10px; border-radius: 7px; font: 700 13px var(--mono); color: var(--dim); }
.tfs button:hover { color: var(--text); }
.tfs button.on { background: var(--active); color: var(--text); box-shadow: 0 0 0 1px var(--line3) inset; }
.legend { font-size: 12.5px; display: flex; gap: 4px; white-space: nowrap; overflow: hidden; }
#cmode { margin-left: auto; }
#chartEl { flex: 1; min-height: 0; }
.chartmsg { position: absolute; inset: 42px 0 0; display: flex; align-items: center; justify-content: center; color: var(--dim); pointer-events: none; }
/* your position, under the Buy button: big live PnL + entry details */
.posinfo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin-top: 12px; padding: 12px 13px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line2); font-size: 13px; }
.posinfo.gain { border-color: #22D88355; background: linear-gradient(180deg, #22D88314, transparent 70%), var(--bg); }
.posinfo.loss { border-color: #FF456055; background: linear-gradient(180deg, #FF456014, transparent 70%), var(--bg); }
.posinfo .live { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.posinfo .live .t { width: 100%; color: var(--muted); font-size: 12.5px; font-weight: 700; display: flex; justify-content: space-between; }
.posinfo .live .big { font-size: 24px; font-weight: 700; line-height: 1.15; }
.posinfo .live .usd { font-size: 16px; font-weight: 700; }
.posinfo .sm { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.posinfo .sm .num { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.posinfo .pi { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; }
.posinfo .l { color: var(--dim); font-size: 12px; font-weight: 600; }

/* live tick flash */
.fup { animation: fup .7s ease-out; } .fdn { animation: fdn .7s ease-out; }
@keyframes fup { from { color: var(--green); text-shadow: 0 0 10px #22D88366; } }
@keyframes fdn { from { color: var(--red); text-shadow: 0 0 10px #FF456066; } }
.mini.get { color: var(--green); background: var(--greenbg); box-shadow: 0 0 0 1px #22D88333 inset; margin-left: 6px; }
.mini.get:hover { background: #22D8832E; }

/* ---------- Callr identity: obsidian with a violet glow (logo colours) ---------- */
html { font-synthesis: none; }
body { background: radial-gradient(1200px 560px at 6% -14%, #8F48FE26, transparent 62%),
  radial-gradient(1000px 520px at 104% -10%, #8F48FE14, transparent 60%), var(--bg); }
header { background: linear-gradient(180deg, #8F48FE10, transparent), var(--bg); border-bottom-color: #8F48FE30; }
.panel { box-shadow: 0 1px 0 #ffffff0a inset; }
.item.on { box-shadow: 0 0 0 1px #8F48FE66 inset; background: linear-gradient(90deg, #8F48FE1F, transparent 80%), var(--active); }
.tfs button.on, .flow .tf button.on { box-shadow: 0 0 0 1px #8F48FE80 inset; background: #8F48FE26; }
::selection { background: #8F48FE66; }
.ico.av { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800;
  font-size: 15px; background: linear-gradient(135deg, hsl(var(--h) 70% 58%), hsl(calc(var(--h) + 40) 75% 48%)); }
td .ico.av { font-size: 11px; display: inline-flex; }
.bar .ico.av { font-size: 18px; }

/* chart tools menu */
#cmode #cToolsBtn { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; font-family: inherit; }
.cmenu { position: fixed; z-index: 60; min-width: 240px; padding: 5px; background: var(--raise); border: 1px solid var(--line3);
  border-radius: 12px; box-shadow: 0 18px 40px -12px #000c, 0 0 0 1px #ffffff08 inset; font-size: 13.5px; }
.cmenu button { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 10px 0 6px; border-radius: 7px;
  color: var(--text); text-align: left; white-space: nowrap; }
.cmenu button:hover { background: var(--active); }
.cmenu button .num { margin-left: auto; padding-left: 14px; }
.cmenu .ck { width: 14px; color: var(--green); font-weight: 700; flex: none; }
.cmenu .sw { width: 12px; height: 3px; border-radius: 2px; flex: none; }
.cmenu .mh { padding: 6px 10px 3px 28px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.cmenu hr { border: 0; border-top: 1px solid var(--line2); margin: 4px 2px; }
.note { font-size: 12px; color: var(--dim); background: var(--raise); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 9px; }
#side .tabs { padding: 0 14px; }
.brand .beta { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--brand2);
  background: var(--brandbg); border: 1px solid #8F48FE55; border-radius: 6px; padding: 2px 6px; margin-left: 2px; }

/* browser wallets (Phantom, Solflare...) */
.extbtn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.extbtn img, .extline img { width: 22px; height: 22px; border-radius: 6px; }
.extline { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; }
.walletpill .wico { width: 16px; height: 16px; border-radius: 4px; }
.orline { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; color: var(--dim); font-size: 12px; }
.orline::before, .orline::after { content: ""; flex: 1; border-top: 1px solid var(--line2); }

/* ---------- sharp, no glow (2026-11-19): solid fills, 1px edges, no blur, no soft light ---------- */
body { background: var(--bg); }
header { background: var(--bg); border-bottom-color: var(--line); }
.btn.brand { background: var(--brand); box-shadow: none; }
.btn.brand:hover { background: #7A33F0; }
.exec.buy, .exec.sell { box-shadow: none; }
.exec.buy:hover { background: #1CC476; }
.exec.sell:hover { background: #F03552; }
.walletpill .dot, .sb .dot, .walletpill.locked .dot, .sb.off .dot { box-shadow: none; }
.tabs button.on::after, .hbar i { background: var(--brand); }
.item.on { background: var(--active); box-shadow: none; }
.tfs button.on, .flow .tf button.on { background: var(--active); color: var(--text); box-shadow: none; }
.posinfo.gain { background: var(--bg); border-color: #22D883; }
.posinfo.loss { background: var(--bg); border-color: #FF4560; }
.panel { box-shadow: none; }
.drop, .toast, .modal .box, .cmenu { box-shadow: none; border: 1px solid var(--line3); }
.modal { backdrop-filter: none; background: #05040AD9; }
.ico.av { background: hsl(var(--h) 62% 50%); }
@keyframes fup { from { color: var(--green); } }
@keyframes fdn { from { color: var(--red); } }

/* ---------- Callr v3 look (2026-11-20, from mock_callr_v3.html): Inter everywhere, two text greys, borderless controls
   on soft fills, 5% hairlines, three flush columns, orange logo + orange as Callr's own signal ---------- */
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #0B0C10; --card: #0E1015; --fill: #161920; --fillh: #1E222B; --raise: #161920; --active: #1E222B;
  --line: rgba(255, 255, 255, .05); --line2: rgba(255, 255, 255, .08); --line3: rgba(255, 255, 255, .12);
  --text: #F3F4F6; --muted: #9CA3AF; --dim: #9CA3AF;
  --brand: #8F48FE; --brand2: #B794FF; --sig: #FF6A2B; --sigbg: rgba(255, 106, 43, .12);
  --green: #3DD68C; --greenbg: rgba(61, 214, 140, .12); --red: #F2555A; --redbg: rgba(242, 85, 90, .12);
  --amber: #E8B34B; --amberbg: rgba(232, 179, 75, .12);
  --mono: "Inter", system-ui, sans-serif; --hdr: 52px; --sbar: 30px; --gap: 0px;
}
html, body { font: 500 13px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text);
  font-variant-numeric: tabular-nums; font-feature-settings: "zero" 0, "tnum" 1; }
.num, .mono { font-family: "Inter", system-ui, sans-serif; letter-spacing: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.keybox, textarea.field { font-family: "JBMono", ui-monospace, monospace; }      /* keys stay monospace: easier to check */
.small { font-size: 12px; }
::selection { background: rgba(255, 106, 43, .35); }
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 4px; height: 4px; }
  ::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb:hover { background: #1F232D; border-radius: 4px; }
}
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: #1F232D transparent; } }

/* header */
header { display: flex; align-items: center; gap: 20px; padding: 0 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.brand span { color: var(--text); }
.brand img { width: 26px; height: 26px; }
.brand .beta { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--dim); background: var(--fill); border: 0; border-radius: 4px; padding: 2px 6px; }
.nav { display: flex; gap: 2px; }
.nav button { height: 32px; padding: 0 11px; border-radius: 7px; color: var(--dim); font-weight: 500; font-size: 13px; }
.nav button:hover { color: var(--text); }
.nav button.on { color: var(--text); background: var(--fill); }
.searchbox { flex: 1; max-width: 460px; width: auto; margin: 0; }
.searchbox input { height: 36px; border-radius: 9px; padding: 0 40px 0 36px; background: var(--card); border: 0; font-size: 13px; }
.searchbox input:focus { background: var(--fill); border: 0; }
.searchbox .i { top: 10px; left: 12px; }
.kbd { top: 7px; right: 7px; width: 22px; height: 22px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 5px;
  background: var(--fill); font: 600 12px "Inter", sans-serif; color: var(--dim); }
.drop { top: 42px; background: var(--card); border: 1px solid var(--line2); border-radius: 10px; }
header .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.callpill { height: 36px; padding: 0 8px 0 13px; border-radius: 9px; background: var(--fill); display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 13px; color: var(--text); white-space: nowrap; }
.callpill b { color: var(--sig); background: var(--sigbg); font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 5px; }
.callpill:hover, .walletpill:hover { background: var(--fillh); }
.walletpill { height: 36px; padding: 0 12px 0 10px; border-radius: 9px; background: var(--fill); border: 0; font-weight: 600; font-size: 13px; }
header .btn.brand { height: 36px; border-radius: 9px; font-size: 13px; font-weight: 600; }

/* buttons */
.btn { font-weight: 600; font-size: 13px; border-radius: 9px; transition: background .12s; }
.btn.brand { background: var(--brand); color: #fff; box-shadow: none; }
.btn.brand:hover { background: #7A33F0; }
.btn.dark, .btn.ghost { background: var(--fill); border: 0; }
.btn.dark:hover, .btn.ghost:hover { background: var(--fillh); border: 0; }

/* three columns, flush, split by hairlines */
main { grid-template-columns: 256px minmax(0, 1fr) 340px; gap: 0; padding: 0; overflow: hidden; }
.panel { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
#side { border-right: 1px solid var(--line); background: transparent; }
#center { display: flex; flex-direction: column; gap: 0; min-width: 0; min-height: 0; }
#chartCard { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
#bottom { flex: 0 0 232px; min-height: 0; border-top: 1px solid var(--line); }
#tradeCol { display: block; border-left: 1px solid var(--line); background: var(--card); overflow: auto; min-height: 0; }

/* tabs = soft chips (left list + bottom table) */
.tabs { height: 44px; padding: 0 10px; gap: 4px; border-bottom: 1px solid var(--line); }
#side .tabs { padding: 0 10px; }
.tabs button { height: 28px; padding: 0 11px; border-radius: 7px; color: var(--dim); font-weight: 500; font-size: 13px; }
.tabs button.on { color: var(--text); background: var(--fill); }
.tabs button.on::after { display: none; }
.tabnote { font-size: 12px; color: var(--dim); }
.tabnote .num { color: var(--text); }
.sortbtn { margin-left: auto; height: 28px !important; padding: 0 9px !important; border-radius: 7px; background: var(--fill); color: var(--dim);
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px !important; white-space: nowrap; flex: none; }
.sortbtn:hover { color: var(--text); background: var(--fillh); }

/* left list */
#list { padding: 4px 0; }
.item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; padding: 8px 12px; border-radius: 0; border-left: 2px solid transparent; }
.item:hover { background: var(--card); }
.item.on { background: var(--card); border-left-color: var(--sig); box-shadow: none; }
.item .ico { width: 22px; height: 22px; }
.ico.av { font-size: 11px; }
.item .sym { font-size: 14px; font-weight: 600; }
.item .sub { font-size: 12px; color: var(--dim); }
.item .end { font-size: 12px; font-weight: 600; }
.item .end .num:first-child { font-size: 13px; font-weight: 600; color: var(--text); }
.drop .item { border-radius: 7px; border-left: 0; }
.verified { color: var(--dim); font-size: 12px; }

/* coin header: who + safety under the address | price | 3x2 stats */
#coinHead { flex: none; border-bottom: 1px solid var(--line); position: relative; z-index: 6; }
.bar { height: auto; min-height: 0; padding: 12px 18px; gap: 18px; overflow: visible; display: flex; align-items: center; }
.bar .who { align-items: flex-start; gap: 12px; min-width: 0; flex: 1 1 0; }
.bar .wtxt { min-width: 0; }
.bar .ico { width: 38px; height: 38px; margin-top: 2px; }
.bar .ico.av { font-size: 16px; }
.bar .t { font-size: 17px; font-weight: 700; }
.bar .t .nm { color: var(--dim); font-weight: 500; font-size: 13px; margin-left: 2px; max-width: 160px; }
.addr { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--dim); margin-top: 1px; white-space: nowrap;  overflow: hidden; }
.addr a, .addr button { color: var(--dim); font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.addr a:hover, .addr button:hover { color: var(--text); }
.addr .i { width: 12px; height: 12px; vertical-align: 0; }
.safe { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.safe:empty { display: none; }
.bdg { position: relative; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--fill); font-size: 12px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; color: var(--dim); white-space: nowrap; cursor: help; }
.bdg b { font-weight: 600; color: var(--text); }
.bdg b.warn { color: var(--amber); } .bdg b.bad { color: var(--red); }
.bdg .dot { width: 6px; height: 6px; border-radius: 50%; }
.dot.ok { background: var(--green); } .dot.warn { background: var(--amber); } .dot.bad { background: var(--red); }
.bdg.caution { background: var(--amberbg); color: var(--amber); font-weight: 600; }
.bdg.caution.bad { background: var(--redbg); color: var(--red); }
.bdg[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 0; top: 30px; z-index: 30; width: 260px; white-space: normal;
  background: var(--fillh); color: var(--text); font-size: 12px; font-weight: 500; line-height: 1.45; padding: 8px 10px; border-radius: 7px; }
.bar .px { margin-left: auto; padding: 0 18px 0 0; border-left: 0; border-right: 1px solid var(--line); text-align: right; flex: none; }
.bar .px .big { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.bar .px .ch { font-size: 13px; font-weight: 600; }
.bar .kv { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 22px; margin-left: 0; flex: none; }
.kv > div { white-space: nowrap; }
.kv .l { font-size: 12px; font-weight: 500; color: var(--dim); }
.kv .v { font-size: 14px; font-weight: 600; color: var(--text); }
.warnc { color: var(--amber); }

/* chart */
#chartBox { flex: 1 1 auto; min-height: 0; border: 0; border-radius: 0; background: var(--bg); }
.ctool { height: 38px; padding: 0 12px; gap: 12px; border-bottom: 1px solid var(--line); }
.tfs button, .flow .tf button { height: 26px; padding: 0 9px; border-radius: 6px; font: 600 12px "Inter", sans-serif; color: var(--dim); box-shadow: none; }
.tfs button:hover, .flow .tf button:hover { color: var(--text); }
.tfs button.on, .flow .tf button.on { background: var(--fill); color: var(--text); box-shadow: none; }
.legend { font-size: 12px; }
.chartmsg { inset: 38px 0 0; }
.cmenu { background: var(--card); border: 1px solid var(--line2); border-radius: 10px; font-size: 13px; }
.cmenu button:hover { background: var(--fill); }
.cmenu .mh { font-size: 12px; }

/* bottom table: compact columns */
#bBody { overflow: auto; }
/* only the bottom tables: the chart is drawn inside a <table> too and must not get these */
#bBody table { font-size: 13px; width: 100%; min-width: 760px; max-width: 980px; }
#bBody th, #bBody td { padding: 9px 14px; border-bottom: 1px solid var(--line); }
#bBody th { font-size: 12px; font-weight: 500; color: var(--dim); background: var(--bg); }
#bBody td { font-weight: 600; }
#bBody tr.click:hover td { background: var(--card); }
#bBody td .ico { width: 22px; height: 22px; vertical-align: -6px; margin-right: 9px; }
.mini { height: 28px; padding: 0 11px; border-radius: 7px; font-size: 12px; font-weight: 600; }
.mini.sell { color: var(--red); background: var(--redbg); box-shadow: none; }
.mini.sell:hover { background: rgba(242, 85, 90, .2); }
.mini.get { color: var(--green); background: var(--greenbg); box-shadow: none; }
.side { font-size: 12px; font-weight: 600; }
.tag { font-size: 12px; color: var(--sig); background: var(--sigbg); }
.hbar i { background: var(--sig); }
.share { color: var(--dim); } .share:hover { background: var(--fill); }
.empty { color: var(--dim); font-size: 13px; }

/* right ticket: sections split by hairlines, borderless controls on soft fills */
.sec { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sec:last-child { border-bottom: 0; }
.h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.h .t { font-weight: 700; font-size: 14px; color: var(--text); white-space: nowrap; }
.h .sub, .sub { font-size: 12px; font-weight: 500; color: var(--dim); }
.h .t .sub { margin-left: 4px; }
.hbtn { height: 30px; padding: 0 11px; border-radius: 7px; background: var(--fill); font-size: 12px; font-weight: 600; color: var(--text); }
.hbtn:hover:not(:disabled) { background: var(--fillh); }
.hbtn:disabled { opacity: 1; color: var(--dim); cursor: default; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: var(--fill); border: 0; }
.seg button { height: 36px; border-radius: 7px; border: 0; font-weight: 600; font-size: 14px; color: var(--dim); }
.seg button.on { background: var(--fillh); border: 0; color: var(--text); }
.seg button.on.b { background: var(--greenbg); color: var(--green); border: 0; }
.seg button.on.s { background: var(--redbg); color: var(--red); border: 0; }
.amount { margin-top: 10px; height: 52px; padding: 0 14px; border-radius: 10px; background: var(--fill); border: 0; }
.amount:focus-within { background: var(--fillh); border: 0; }
.amount input { font: 600 22px "Inter", sans-serif; font-variant-numeric: tabular-nums; }
.amount input::placeholder { color: var(--dim); }
.amount span { font-weight: 600; font-size: 14px; color: var(--dim); }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 0; }
.presets button { height: 36px; border-radius: 8px; background: var(--fill); border: 0; font: 600 13px "Inter", sans-serif; color: var(--text); }
.presets button:hover { background: var(--fillh); border: 0; }
.exec { height: 46px; margin-top: 12px; border-radius: 10px; font-weight: 700; font-size: 15px; box-shadow: none; }
.exec.buy { background: var(--green); color: #062014; }
.exec.buy:hover { background: #5BE0A0; }
.exec.sell { background: var(--red); color: #fff; }
.exec.sell:hover { background: #F46E72; }
.fine { margin-top: 10px; font-size: 12px; color: var(--dim); }
.fine .num { color: var(--text); }

/* your position: big live PnL, then the totals */
.posinfo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; padding: 0; border: 0; border-radius: 0; background: none; font-size: 13px; }
.posinfo.gain, .posinfo.loss { background: none; border: 0; }
.posinfo .live { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.posinfo .live .t { width: 100%; font-size: 12px; font-weight: 500; color: var(--dim); }
.posinfo .live .big { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.posinfo .live .usd { font-size: 14px; font-weight: 600; }
.posinfo .sm .num { font-size: 14px; }
.posinfo .l { font-size: 12px; font-weight: 500; color: var(--dim); }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; background: none; border: 0; border-radius: 0; overflow: visible; }
.strip > div { background: none; padding: 0; }
.strip .l { font-size: 12px; font-weight: 500; color: var(--dim); }
.strip .v { font-size: 14px; font-weight: 600; }
.strip .u { font-size: 12px; font-weight: 500; color: var(--dim); }

/* activity */
.flow { margin: 0; padding: 0; border: 0; }
.flow .h { margin-bottom: 4px; }
.flow .row { margin-top: 10px; }
.flow .lr { font-size: 12px; margin-bottom: 6px; }
.flow .lr .num { font-size: 13px; font-weight: 700; }
.split { height: 5px; gap: 2px; background: none; border-radius: 0; }
.split i { border-radius: 2px; }

/* call this coin */
.callbox .lnk { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 11px; border-radius: 8px; background: var(--fill); font-size: 12px; color: var(--dim); }
.callbox .lnk span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.callbox .lnk button { height: 28px; padding: 0 10px; border-radius: 6px; color: var(--sig); background: var(--sigbg); font-weight: 700; font-size: 12px; flex: none; }
.callbox .lnk button:hover { background: rgba(255, 106, 43, .2); }
.callbox .one { width: 100%; height: 36px; margin-top: 8px; border-radius: 8px; background: var(--fill); font-weight: 600; font-size: 13px; }
.callbox .one:hover { background: var(--fillh); }

/* wallet */
.ctitle { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; text-transform: none; letter-spacing: 0; }
.ctitle .dim { font-size: 12px; font-weight: 500; }
.wline { font-size: 13px; padding: 4px 0; }
.wline .l { font-size: 12px; color: var(--dim); }
.btnrow { gap: 6px; margin-top: 10px; }
.btnrow .btn { height: 34px; border-radius: 8px; }

/* status bar */
#statusbar { font-size: 12px; color: var(--dim); background: var(--bg); border-top: 1px solid var(--line); }
.sb { border-right: 1px solid var(--line); }
.sb .num { color: var(--text); }

/* overlays */
.toast { background: var(--card); border: 1px solid var(--line2); border-radius: 10px; font-size: 13px; }
.toast a { color: var(--sig); }
.modal { background: rgba(0, 0, 0, .6); }
.modal .box { background: var(--card); border: 1px solid var(--line2); border-radius: 14px; font-size: 13px; }
.modal h2 { font-size: 18px; font-weight: 700; }
.modal p { font-size: 13px; color: var(--dim); }
.modal .x:hover { background: var(--fill); }
.field { background: var(--fill); border: 0; border-radius: 9px; }
.field:focus { background: var(--fillh); border: 0; }
.terms { background: var(--fill); border: 0; font-size: 12px; color: var(--dim); }
.note { font-size: 12px; background: var(--fill); border: 0; }
.alert { font-size: 12px; }
.label { font-size: 12px; }
.badge { font-size: 12px; box-shadow: none; }

/* smaller screens: the page scrolls */
@media (max-width: 1280px) { main { grid-template-columns: 236px minmax(0, 1fr) 320px; } .nav { display: none; }
  .bar .kv { grid-template-columns: repeat(2, auto); } .bar .kv > div:nth-child(3n) { display: none; } }
@media (max-width: 1180px) { .bar { flex-wrap: wrap; row-gap: 10px; } .bar .px { margin-left: 0; } }
@media (max-width: 1000px) {
  main { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  #center { order: 1; } #tradeCol { order: 2; border-left: 0; overflow: visible; } #side { order: 3; border-right: 0; max-height: 70vh; }
  #chartCard { height: 520px; flex: none; } #bottom { flex: none; height: 360px; }
  .callpill { display: none; }
}
@media (max-width: 640px) { header { flex-wrap: wrap; gap: 8px; padding: 8px 10px; } .searchbox { order: 3; flex-basis: 100%; max-width: none; } }

/* ---------- one-row coin header (2026-11-20): name | Market cap  Price  Liquidity  Volume 24h  Holders  1h  24h, one equal gap,
   no dividers, flush right; safety badges on the line below, under the name ---------- */
.bar.row { flex-wrap: wrap; align-items: center; gap: 8px 0; }
.bar.row .who { flex: 1 1 0; min-width: 0; align-items: center; }
.bar.row .t .nm { overflow: hidden; text-overflow: ellipsis; }
.bar.row .ico { margin-top: 0; }
.bar.row .addr { gap: 6px; }
.bar.row .addr .lk { width: 22px; height: 20px; justify-content: center; border-radius: 5px; background: var(--fill); }
.bar.row .addr .lk:hover { background: var(--fillh); }
.bar.row .addr .age { margin-left: 2px; }
.bar.row .kv { display: flex; align-items: flex-end; gap: 24px; margin-left: 16px; flex: none; }
.bar.row .kv .mc .v { font-size: 16px; font-weight: 700; }
.bar.row .safe { flex-basis: 100%; margin: 0 0 0 50px; }
@media (max-width: 1560px) { .bar.row .kv { gap: 20px; } .bar.row .kv .hold { display: none; } }
@media (max-width: 1280px) { .bar.row .kv > div { display: block; } .bar.row .kv .hold, .bar.row .kv .vol { display: none; } .bar.row .kv { gap: 18px; } }
@media (max-width: 1000px) { .bar.row .kv { margin-left: 0; flex-wrap: wrap; } }

/* ---------- stacked coin header on the right (2026-11-20, mock_callr_v6): name | ... | Market cap (24h) | 3x2 grid,
   side panels the same width, more side padding in the left list ---------- */
main { grid-template-columns: clamp(360px, 21vw, 440px) minmax(0, 1fr) clamp(360px, 21vw, 440px); }
#side .tabs { padding: 0 18px; }
.item { padding: 9px 20px; }
#center { container-type: inline-size; }
#center > * { min-width: 0; }
.bar.stk { flex-wrap: wrap; align-items: center; gap: 8px 28px; padding: 14px 18px; }
.bar.stk .who { flex: 0 1 auto; min-width: 0; align-items: center; }
.bar.stk .wtxt { min-width: 0; }
.bar.stk .t, .bar.stk .addr { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar.stk .ico { margin-top: 0; }
.bar.stk .addr { gap: 6px; }
.bar.stk .addr .lk { width: 22px; height: 20px; justify-content: center; border-radius: 5px; background: var(--fill); }
.bar.stk .addr .lk:hover { background: var(--fillh); }
.bar.stk .big { flex: none; margin-left: auto; }
.bar.stk .big .bv { font-size: 24px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; margin: 2px 0; color: var(--text); }
.bar.stk .big .ch { font-size: 13px; font-weight: 600; }
.bar.stk .g6 { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 28px; flex: none; }
.bar.stk .g6 .v { font-size: 14px; font-weight: 600; white-space: nowrap; }
.bar.stk .safe { flex-basis: 100%; margin: 0 0 0 50px; }
@container (max-width: 1000px) { .bar.stk .g6 { grid-template-columns: repeat(2, auto); } .bar.stk .g6 .g3 { display: none; } }
@container (max-width: 640px) { .bar.stk .big { margin-left: 0; } }
@media (max-width: 1000px) { main { grid-template-columns: 1fr; } }
.bar.stk .l { font-size: 12px; font-weight: 500; color: var(--dim); }
/* 2026-11-20: side panels a bit narrower, bigger text in the left list */
main { grid-template-columns: clamp(330px, 19vw, 400px) minmax(0, 1fr) clamp(330px, 19vw, 400px); }
.item { gap: 11px; grid-template-columns: 26px minmax(0, 1fr) auto; }
.item .ico { width: 26px; height: 26px; }
.item .sym { font-size: 15.5px; }
.item .sub { font-size: 13px; }
.item .end { font-size: 13px; }
.item .end .num:first-child { font-size: 14.5px; }
@media (max-width: 1000px) { main { grid-template-columns: 1fr; } }
/* 2026-11-20 b: side panels a touch wider, list text 15px with the rest in the same ratio */
main { grid-template-columns: clamp(345px, 20vw, 420px) minmax(0, 1fr) clamp(345px, 20vw, 420px); }
.item { grid-template-columns: 25px minmax(0, 1fr) auto; }
.item .ico { width: 25px; height: 25px; }
.item .sym { font-size: 15px; }
.item .sub { font-size: 12.5px; }
.item .end { font-size: 12.5px; }
.item .end .num:first-child { font-size: 14px; }
@media (max-width: 1000px) { main { grid-template-columns: 1fr; } }
/* 2026-11-20 c: space between the screen edges and the side panels (chart a bit narrower), taller header, bigger logo */
:root { --hdr: 64px; }
main { padding: 0 16px; }
#side { border-left: 1px solid var(--line); }
#tradeCol { border-right: 1px solid var(--line); }
header { padding: 0 16px; }
.brand { gap: 11px; font-size: 21px; font-weight: 700; }
.brand img { width: 38px; height: 38px; }
.brand .beta { font-size: 11px; }
@media (max-width: 1000px) { main { padding: 0; } #side, #tradeCol { border-left: 0; border-right: 0; } }
