/* blocksol.fun: retro desktop look. Plain CSS, no build step. Colors come from colors.css. */
:root {
  /* colors: see colors.css */
  --pixel: "Pixelify Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --out: inset -1px -1px 0 var(--bevel-dk), inset 1px 1px 0 var(--bevel-hi), inset -2px -2px 0 var(--bevel-lo), inset 2px 2px 0 var(--bevel-mid);
  --in: inset 1px 1px 0 var(--bevel-lo), inset -1px -1px 0 var(--bevel-hi), inset 2px 2px 0 var(--bevel-dk), inset -2px -2px 0 var(--bevel-mid);
  --drop: 4px 4px 0 var(--shadow);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { background: var(--desk); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  background-color: var(--desk);
  background-image: repeating-conic-gradient(var(--desk-dark) 0% 25%, transparent 0% 50%);
  background-size: 4px 4px;
  color: var(--text);
  font-family: var(--pixel);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
}
::selection { background: var(--select); color: var(--select-text); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; background: none; letter-spacing: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img, svg { display: block; }
ol, ul { list-style: none; }
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
:focus-visible { outline: 1px dotted var(--text); outline-offset: -4px; }
.px { image-rendering: pixelated; shape-rendering: crispEdges; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- surfaces ---------- */
.out { background: var(--panel); box-shadow: var(--out); }
.in { background: var(--ink); box-shadow: var(--in); }
.win { background: var(--panel); box-shadow: var(--out); padding: 3px; }
.win.drop { box-shadow: var(--out), var(--drop); }
.tbar {
  display: flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 6px;
  background: var(--title); color: var(--title-text);
  font-weight: 600; letter-spacing: .02em;
  user-select: none;
}
.tbar h2, .tbar h1 { flex: 1; min-width: 0; font-size: 14px; line-height: 20.3px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbar .ti { width: 16px; height: 16px; flex: none; }
.tbar.app { height: 32px; padding: 0 8px; gap: 8px; }
.tbar.app h1 { font-size: 15px; line-height: 21.75px; }
.tbar.app .ti { width: 18px; height: 18px; }
.ctls { display: flex; gap: 2px; flex: none; }
.ctls > * {
  display: grid; place-items: center;
  width: 16px; height: 16px;
  background: var(--panel); color: var(--text);
  box-shadow: var(--out);
  font-size: 12px; line-height: 12px; font-weight: 600;
}
.bar {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 6px 12px; font-size: 13px; line-height: 18.85px;
  border-bottom: 1px solid var(--line);
}
.bar a { color: var(--muted); }
.bar a.blue { color: var(--glacier); }
.bar a:hover { text-decoration: underline; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px;
  background: var(--panel); box-shadow: var(--out);
  font-size: 14px; line-height: 20.3px; font-weight: 500; white-space: nowrap;
}
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; line-height: 21.75px; }
.btn.sm { height: 28px; padding: 0 12px; font-size: 13px; line-height: 18.85px; }
.btn.xs { height: 24px; padding: 0 12px; font-size: 13px; line-height: 18.85px; }
.btn:active:not(:disabled), .btn.on { box-shadow: var(--in); background: var(--hover); }
.btn:disabled, .btn.off { color: var(--faint); }
.btn.ghost { background: none; box-shadow: none; }
.btn.ghost:hover:not(:disabled) { background: var(--hover); }
.btn.wide { width: 100%; }
.btn svg { flex: none; }
.seg { display: flex; flex-wrap: wrap; gap: 2px; }
.sg {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; padding: 0 10px;
  background: var(--panel); box-shadow: var(--out); color: var(--muted);
  font-size: 13px; line-height: 18.85px; white-space: nowrap;
}
.sg.on { background: var(--hover); box-shadow: var(--in); color: var(--text); font-weight: 600; }
.sg.big { height: 32px; padding: 0 12px; font-size: 14px; line-height: 20.3px; }
.sg.buy.on { color: var(--buy); }
.sg.sell.on { color: var(--sell); }
.link-btn { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; font-size: 13px; line-height: 18.85px; color: var(--muted); }
.link-btn:hover { background: var(--hover); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; padding: 4px 4px 0; border-bottom: 1px solid var(--line-strong); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; margin-top: 4px; height: 28px; padding: 4px 12px;
  background: var(--raised); color: var(--muted);
  box-shadow: inset 1px 1px 0 var(--bevel-hi), inset -1px 0 0 var(--bevel-dk);
  font-size: 14px; line-height: 20.3px; white-space: nowrap;
}
.tab.on { margin-top: 0; margin-bottom: -1px; height: 33px; padding: 4px 12px 9px; background: var(--panel); color: var(--text); font-weight: 600; position: relative; }

/* ---------- fields ---------- */
.lbl { display: block; font-size: 14px; line-height: 20.3px; }
.field { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; margin-top: 4px; background: var(--ink); box-shadow: var(--in); }
.field input { flex: 1; min-width: 0; height: 100%; outline: none; }
.field .unit { color: var(--muted); }
textarea.field { display: block; width: 100%; height: 80px; padding: 8px 10px; resize: vertical; outline: none; }
.hint { margin-top: 4px; font-size: 13px; line-height: 18.85px; color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 19px; cursor: pointer; }
.check input {
  appearance: none; flex: none; width: 14px; height: 14px; margin-top: 2px;
  background: var(--ink); box-shadow: inset 1px 1px 0 var(--bevel-lo), inset -1px -1px 0 var(--bevel-hi), inset 2px 2px 0 var(--bevel-dk);
  display: grid; place-items: center; cursor: pointer;
}
.check input:checked::after { content: ""; width: 6px; height: 6px; background: var(--text); }
.check b { font-weight: 500; }

.alert { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--ink); box-shadow: var(--in); font-size: 14px; line-height: 20.3px; }
.alert .x { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--sell-strong); color: var(--on-accent); font-size: 13px; line-height: 1; font-weight: 700; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px;
  font-size: 13px; line-height: 16.25px; white-space: nowrap;
  color: var(--glacier); background: var(--glacier-dim); border: 1px solid var(--glacier-edge);
}
.badge.curve { color: var(--buy); background: var(--buy-dim); border-color: var(--buy-edge); }
.badge.none { color: var(--muted); background: var(--ink); border-color: var(--line-strong); }

/* ---------- empty states ---------- */
.empty { padding: 24px 16px; }
.empty .t { font-weight: 600; }
.empty .d { margin-top: 8px; color: var(--muted); max-width: 571px; }
.empty .btn { margin-top: 8px; }

/* ---------- page shell ---------- */
main { padding: 12px 16px 64px; }
@media (min-width: 640px) { main { padding: 16px 16px 64px; } footer.foot { padding-left: 12px; padding-right: 12px; } }
.shell { max-width: 1400px; margin: 0 auto; }
.appwin { max-width: 1400px; margin: 0 auto; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px; border-bottom: 1px solid var(--line); }
.menu a { padding: 2px 8px; font-size: 14px; line-height: 20.3px; }
.menu a:hover { background: var(--hover); }
.menu a.on { background: var(--title); color: var(--title-text); }
.search { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; width: 100%; background: var(--ink); box-shadow: var(--in); }
.search svg { color: var(--faint); flex: none; }
.search input { flex: 1; min-width: 0; font-size: 13px; line-height: 18.85px; outline: none; }
.menu form { flex-basis: 100%; }
@media (min-width: 768px) { .menu form { flex-basis: auto; width: 288px; margin-left: auto; } }
.pane { padding: 16px; }
.h-page { font-size: 30px; line-height: 30px; font-weight: 600; letter-spacing: -.01em; }
.lead { margin-top: 8px; color: var(--muted); }

footer.foot { max-width: 1400px; margin: 0 auto; padding: 0 16px calc(56px + env(safe-area-inset-bottom, 0px)); color: var(--desk-text); font-size: 13px; line-height: 18.85px; }
footer.foot p + p { margin-top: 4px; }
footer.foot button { font-family: var(--mono); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- desktop (home) ---------- */
.desktop { display: grid; gap: 16px; }
@media (min-width: 1024px) { .desktop { grid-template-columns: 96px minmax(0, 1fr); } }
.icons { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.icons::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .icons { flex-direction: column; gap: 16px; overflow: visible; } }
.dicon { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 80px; flex: none; padding: 4px; text-align: center; }
.dicon svg { width: 40px; height: 40px; }
.dicon span { padding: 0 4px; color: var(--desk-text); font-size: 13px; line-height: 18.85px; }
.dicon:hover span, .dicon:focus-visible span { background: var(--select); color: var(--select-text); }
.dicon:focus-visible { outline: none; }
.dicon:focus-visible span { outline: 1px dotted var(--desk-text); }
.stack { display: grid; gap: 16px; align-content: start; }
.hero { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1024px) { .hero { grid-template-columns: 1.15fr 1fr; } }
.welcome .body { padding: 20px; }
@media (min-width: 640px) { .welcome .body { padding: 28px; } }
.logo { display: flex; align-items: center; gap: 10px; height: 56px; }
.logo svg { width: 56px; height: 56px; }
.logo .word { font-size: 34px; line-height: 1; font-weight: 400; letter-spacing: .02em; }
.logo .word em { font-style: normal; color: var(--logo-accent); }
.display { margin-top: 24px; font-size: 36px; line-height: 1.05; font-weight: 600; letter-spacing: -.01em; }
@media (min-width: 640px) { .display { font-size: 64px; } }
.welcome .sub { margin-top: 16px; max-width: 520px; color: var(--muted); font-size: 17px; line-height: 24.65px; }
.cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ca { margin-top: 24px; }
.ca .k { font-size: 14px; line-height: 20.3px; font-weight: 600; }
.ca .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ca code { display: block; min-height: 36px; padding: 8px 12px; background: var(--ink); box-shadow: var(--in); font-family: var(--mono); font-size: 13px; line-height: 17.875px; word-break: break-all; max-width: 100%; }
.ca .copy { width: 96px; }
.dlg .body { padding: 16px; display: grid; gap: 8px; }
.leg { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; padding: 8px 12px; background: var(--ink); box-shadow: var(--in); }
.leg span:first-child { color: var(--muted); }
.leg span:last-child { font-size: 18px; line-height: 26.1px; text-align: right; }
.leg .tok { color: var(--brass); }
.leg .sol { color: var(--glacier); }
.ok { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; font-size: 14px; line-height: 20.3px; }
.ok .tick { display: grid; place-items: center; flex: none; width: 24px; height: 24px; background: var(--buy-strong); color: var(--on-accent); border: 1px solid var(--bevel-dk); font-weight: 700; }
.ok b { font-weight: 600; }
.steps { display: grid; gap: 12px; padding: 16px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { padding: 12px; background: var(--ink); box-shadow: var(--in); }
.steps .n { display: block; font-size: 13px; line-height: 18.85px; color: var(--faint); }
.steps .h { margin-top: 4px; font-weight: 600; }
.steps .d { margin-top: 4px; font-size: 14px; line-height: 20.3px; color: var(--muted); }
.pair { display: grid; gap: 16px; }
@media (min-width: 768px) { .pair { grid-template-columns: 1fr 1fr; } }
.card-body { padding: 16px; }
.card-body p { color: var(--muted); }
.card-body .btn { margin-top: 16px; }
.faq { margin: 12px; background: var(--ink); box-shadow: var(--in); }
.faq details { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { display: grid; place-items: center; flex: none; width: 16px; height: 16px; margin-top: 3px; background: var(--panel); box-shadow: var(--out); font-size: 13px; line-height: 13px; font-weight: 400; }
.faq summary .pm::before { content: "+"; }
.faq details[open] summary .pm::before { content: "\2212"; }
.faq details p { margin-top: 8px; padding-left: 24px; max-width: 595px; color: var(--muted); }

/* ---------- explore ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.tablewin { margin-top: 20px; }
.scroll { margin: 8px; background: var(--ink); box-shadow: var(--in); overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 18.85px; }
table.grid th { position: sticky; top: 0; padding: 8px; background: var(--panel); box-shadow: var(--out); text-align: left; font-weight: 400; white-space: nowrap; }
table.grid th:first-child, table.grid td:first-child { padding-left: 16px; padding-right: 16px; }
table.grid th:last-child, table.grid td:last-child { padding-left: 16px; padding-right: 16px; text-align: right; }
table.grid td { padding: 10px 8px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
table.grid tbody tr:hover { background: var(--hover); }
table.grid tbody tr:last-child td { border-bottom: 0; }
.tk { display: flex; align-items: center; gap: 10px; }
.av { display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 2px; background: var(--raised); box-shadow: var(--in); }
.av svg, .av img { width: 24px; height: 24px; display: block; object-fit: cover; }
.av.lg { width: 56px; height: 56px; }
.av.lg svg, .av.lg img { width: 52px; height: 52px; }
.tk b { display: block; font-weight: 500; }
.tk i { display: block; font-style: normal; color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.note { padding: 0 12px 8px; font-size: 13px; line-height: 18.85px; color: var(--muted); }
sub.z { font-size: .7em; vertical-align: -.25em; }

/* ---------- launch ---------- */
.narrow { max-width: 672px; margin: 0 auto; }
.form { margin-top: 20px; padding: 20px; }
.top { display: grid; gap: 16px; }
@media (min-width: 640px) { .top { grid-template-columns: 120px minmax(0, 1fr); } }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 120px; height: 120px; border: 1px dashed var(--line-strong);
  font-size: 13px; line-height: 18.85px; color: var(--muted); cursor: pointer; overflow: hidden; position: relative;
}
.dropzone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mt16 { margin-top: 16px; }
.mt20 { margin-top: 20px; }
.socials { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 640px) { .socials { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sect { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.modes { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.small { font-size: 13px; line-height: 18.85px; }

/* ---------- otc ---------- */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.head .lead { max-width: 571px; }
.mt24 { margin-top: 24px; }
.wizard { display: grid; gap: 24px; max-width: 1024px; margin: 0 auto; }
@media (min-width: 900px) { .wizard { grid-template-columns: 200px minmax(0, 1fr); } }
.wizard h1 { font-size: 34px; line-height: 34px; font-weight: 600; letter-spacing: -.01em; }
.wsteps { display: grid; gap: 2px; margin-top: 16px; }
.wsteps li { display: flex; align-items: center; gap: 10px; height: 32px; padding: 6px 8px; font-size: 13px; line-height: 18.85px; color: var(--faint); }
.wsteps li span { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 50%; font-size: 12px; line-height: 1; }
.wsteps li.on { background: var(--raised); color: var(--text); }
.wsteps li.on span, .wsteps li.done span { border-color: var(--text); }
.wsteps li.done { color: var(--text); }
.wpanel { padding: 20px; }
.wfoot { display: flex; justify-content: space-between; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.picked { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 8px 12px; background: var(--ink); box-shadow: var(--in); }
.choice { display: grid; gap: 8px; }
@media (min-width: 640px) { .choice { grid-template-columns: 1fr 1fr; } }
.choice button { padding: 12px; text-align: left; background: var(--panel); box-shadow: var(--out); }
.choice button.on { background: var(--hover); box-shadow: var(--in); }
.choice b { display: block; font-weight: 600; }
.choice span { display: block; margin-top: 4px; font-size: 13px; line-height: 18.85px; color: var(--muted); }

/* ---------- token ---------- */
.tgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1100px) { .tgrid { grid-template-columns: minmax(0, 1fr) 380px; } }
.tcol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.thead { padding: 16px; }
.trow { display: flex; gap: 16px; align-items: flex-start; }
.tname { flex: 1; min-width: 0; }
.tname .l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tname h1 { font-size: 30px; line-height: 31.5px; font-weight: 600; letter-spacing: -.01em; }
.tname .sym { font-size: 18px; line-height: 28px; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-size: 13px; line-height: 18.85px; color: var(--muted); }
.meta > span { display: inline-flex; align-items: center; gap: 4px; }
.meta .v { font-family: var(--mono); color: var(--text); font-size: 12px; }
.ib { display: grid; place-items: center; width: 16px; height: 16px; padding: 2px; color: var(--faint); }
.ib:hover { color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.stats dt { font-size: 13px; line-height: 18.85px; color: var(--muted); }
.stats dd { margin-top: 2px; font-weight: 500; }
.stats .liq { color: var(--glacier); }
.stats .liq small { font-size: inherit; color: var(--glacier-soft); }
.chartwin .tools { padding: 12px 16px 8px; }
.chart { position: relative; margin: 0 8px 8px; height: 320px; padding: 3px; background: var(--ink); box-shadow: var(--in); }
.chart .plot { position: absolute; left: 3px; top: 3px; right: 59px; bottom: 31px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chart p { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 320px; max-width: 80%; text-align: center; font-size: 13px; line-height: 18.85px; color: var(--muted); }
.tabwin .tabs { padding: 4px 8px 0; }
.tabnote { padding: 16px 16px 0; font-size: 13px; line-height: 18.85px; color: var(--faint); }
.book { padding: 24px 16px 0; }
.book .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.book h3 { font-size: 15px; font-weight: 600; }
.book h3.sell { color: var(--sell); }
.book h3.buy { color: var(--buy); }
.book .e { padding: 32px 0 24px; }
.book .e .t { font-weight: 600; }
.book .e .d { margin-top: 8px; color: var(--muted); }
.book .e .btn { margin-top: 8px; }
.recent { padding: 24px 0 32px; }
.recent h3 { padding: 0 16px 8px; font-size: 15px; font-weight: 600; }
.recent .e { padding: 24px 16px 0; }
.recent .e .t { font-weight: 600; }
.recent .e .d { margin-top: 8px; color: var(--muted); }
.kv { padding: 16px; display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; line-height: 18.85px; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { text-align: right; }
.kv dd small { display: block; font-size: 12px; color: var(--faint); }
.about { padding: 16px; display: grid; gap: 16px; }
.about .links { display: flex; gap: 8px; flex-wrap: wrap; }
.okbox { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px solid var(--line); font-weight: 600; }
.okbox svg { color: var(--buy); }
.trade { padding: 16px; }
.trade .top2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trade .seg .sg { width: 79px; }
.trade .alert { margin-top: 16px; }
.trade .pay { margin-top: 12px; font-size: 13px; line-height: 18.85px; }
.trade .field { margin-top: 6px; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.quote { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; line-height: 18.85px; }
.quote div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.quote div + div { margin-top: 8px; }
.quote dt { color: var(--muted); }
.trade .cta2 { margin-top: 16px; text-align: center; font-size: 13px; line-height: 18.85px; color: var(--muted); }
.size { padding: 16px; }
.size .h { font-weight: 500; }
.size p.d { margin-top: 12px; font-size: 13px; line-height: 18.85px; color: var(--muted); }
.size .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pop { position: absolute; z-index: 30; width: 244px; padding: 12px; background: var(--panel); box-shadow: var(--out), var(--drop); }
.pop p { font-size: 13px; line-height: 18.85px; color: var(--muted); }
.pop .seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 8px; }
.pop .field { margin-top: 8px; }
.rel { position: relative; }

/* ---------- notepad (docs, fees) ---------- */
.paper { max-width: 672px; margin: 0 auto; padding: 24px 40px; background: var(--ink); box-shadow: var(--in); font-family: var(--mono); font-size: 14px; line-height: 23.1px; -webkit-font-smoothing: auto; }
@media (max-width: 639px) { .paper { padding: 20px; } }
.paper.fees { max-width: 638px; }
.paper h1 { font-size: 22px; line-height: 36.3px; font-weight: 500; }
.paper.fees h1 { font-size: 20px; line-height: 33px; }
.paper p, .paper ul { margin-top: 16px; color: var(--muted); }
.paper .meta2 { font-size: 13px; line-height: 21.45px; }
.paper h2 { margin-top: 40px; font-size: 17px; line-height: 28.05px; font-weight: 500; text-transform: uppercase; }
.paper.fees h2 { margin-top: 32px; font-size: 14px; line-height: 23.1px; }
.paper h3 { margin-top: 20px; font-size: 14px; line-height: 23.1px; font-weight: 500; }
.paper h2 + p, .paper h3 + p { margin-top: 16px; }
.paper ul { padding-left: 20px; list-style: disc; }
.paper code { padding: 0 4px; background: var(--hover); color: var(--text); font-size: 13px; line-height: 21.45px; }
.paper a { color: var(--glacier); text-decoration: underline; }

/* ---------- settings ---------- */
.settings { max-width: 672px; margin: 0 auto; display: grid; gap: 20px; }
.setrow { display: flex; justify-content: space-between; gap: 16px; padding: 16px; }
.setrow + .setrow { padding-top: 0; }
.setrow small { display: block; font-size: 13px; color: var(--muted); }
.setrow .muted { color: var(--muted); }

/* ---------- taskbar, start menu, modal ---------- */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 6px; height: calc(40px + env(safe-area-inset-bottom, 0px)); padding: 0 4px env(safe-area-inset-bottom, 0px);
  background: var(--panel); box-shadow: inset 0 1px 0 var(--bevel-hi), inset 0 2px 0 var(--bevel-mid);
}
.start { display: inline-flex; align-items: center; gap: 6px; height: 32px; width: 90px; padding: 0 8px; box-shadow: var(--out); font-weight: 600; }
.start svg { width: 20px; height: 20px; }
.start.open { box-shadow: var(--in); }
.tsep { width: 2px; height: 28px; box-shadow: inset 1px 0 0 var(--bevel-lo), inset -1px 0 0 var(--bevel-hi); flex: none; }
.task { display: none; align-items: center; gap: 6px; height: 32px; padding: 0 8px; background: var(--hover); box-shadow: var(--in); font-size: 14px; line-height: 20.3px; font-weight: 600; white-space: nowrap; }
.task svg { width: 16px; height: 16px; }
@media (min-width: 640px) { .task { display: inline-flex; } }
.tray { margin-left: auto; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; box-shadow: var(--in); font-size: 13px; line-height: 18.85px; }
.tray .net { display: inline-flex; align-items: center; gap: 6px; }
.tray .net i { width: 10px; height: 10px; background: var(--buy-strong); border: 1px solid var(--bevel-dk); }
.tray .clock { display: none; width: 48px; text-align: center; }
@media (min-width: 640px) { .tray .clock { display: block; } }

.smenu { position: fixed; left: 4px; bottom: calc(38px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: none; background: var(--panel); box-shadow: var(--out), var(--drop); padding: 3px; }
.smenu.open { display: flex; }
.smenu .band { width: 28px; background: var(--title); color: var(--title-text); display: flex; align-items: flex-end; justify-content: center; padding: 8px 0; }
.smenu .band span { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.smenu ul { width: 210px; padding: 2px 0; }
.smenu li { position: relative; }
.smenu li > a, .smenu li > button { display: flex; align-items: center; gap: 12px; width: 100%; height: 34px; padding: 0 12px; font-size: 14px; text-align: left; }
.smenu li > a:hover, .smenu li > button:hover, .smenu li.sub:hover > button { background: var(--select); color: var(--select-text); }
.smenu li svg { width: 20px; height: 20px; flex: none; }
.smenu .sep { height: 2px; margin: 4px 6px; box-shadow: inset 0 1px 0 var(--bevel-lo), inset 0 -1px 0 var(--bevel-hi); }
.smenu .caret { margin-left: auto; font-size: 10px; }
.smenu .subm { display: none; position: absolute; left: 100%; bottom: 0; width: 190px; padding: 2px 0; background: var(--panel); box-shadow: var(--out), var(--drop); }
.smenu li.sub:hover .subm, .smenu li.sub:focus-within .subm { display: block; }
.smenu .subm a { display: flex; align-items: center; height: 30px; padding: 0 12px; font-size: 14px; }
.smenu .subm a:hover { background: var(--select); color: var(--select-text); }

.veil {
  position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 16px;
  background-image: repeating-conic-gradient(var(--veil) 0% 25%, transparent 0% 50%); background-size: 4px 4px;
}
.veil.open { display: flex; }
.modal { width: 512px; max-width: 100%; }
.modal .body { padding: 16px; }
.modal .body p { color: var(--muted); font-size: 14px; line-height: 21.7px; }
.modal .body p + p { margin-top: 16px; }
.modal .k { margin-top: 18px; font-size: 13px; color: var(--muted); }
.modal .wl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tbar .xb { display: grid; place-items: center; width: 20px; height: 18px; background: var(--panel); color: var(--text); box-shadow: var(--out); font-size: 12px; line-height: 1; }

/* ---------- live app additions (same look) ---------- */
.good { color: var(--buy); }
.bad { color: var(--sell); }
.badge.ask { color: var(--sell); background: var(--sell-dim); border-color: var(--sell-edge); }
.badge.bid { color: var(--buy); background: var(--buy-dim); border-color: var(--buy-edge); }
.scroll.flat { margin: 0; box-shadow: none; background: var(--ink); }
.card-body .scroll.flat, .book .scroll.flat, .recent .scroll.flat { margin-top: 8px; box-shadow: var(--in); }
.book > .scroll.flat, .book [id^="tp-"] > .scroll.flat { margin: 16px 0 24px; }
table.grid tr.cur { background: var(--hover); }
.btn.xs { height: 24px; padding: 0 10px; font-size: 13px; }
.tray .ntf { position: relative; display: grid; place-items: center; width: 28px; height: 24px; box-shadow: var(--out); background: var(--panel); }
.tray .ntf svg { width: 16px; height: 16px; }
.tray .ntf b { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 3px; background: var(--sell-strong); color: var(--on-accent); font-size: 11px; line-height: 16px; text-align: center; border: 1px solid var(--text); }
.pop.wmenu, .pop.nlist { width: 230px; }
.pop .mlist { display: grid; margin-top: 8px; }
.pop .mlist > * { display: block; width: 100%; padding: 6px 8px; text-align: left; font-size: 14px; }
.pop .mlist > *:hover { background: var(--select); color: var(--select-text); }
.pop.nlist { width: 300px; }
.pop.nlist ul { max-height: 320px; overflow: auto; margin-top: 8px; }
.pop.nlist li a { display: grid; gap: 2px; padding: 8px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 18px; }
.pop.nlist li.new a { background: var(--ink); }
.pop.nlist li a:hover { background: var(--hover); }
.pop.nlist li span { color: var(--muted); }
.pop.nlist li i { font-style: normal; color: var(--faint); font-size: 12px; }
.wlist { display: grid; gap: 6px; margin-top: 6px; }
.wbtn { justify-content: flex-start; width: 100%; }
.wbtn img { width: 20px; height: 20px; }
.toast { position: fixed; right: 12px; bottom: calc(52px + env(safe-area-inset-bottom, 0px)); z-index: 70; max-width: min(380px, calc(100vw - 24px)); }
.toast .body { padding: 10px 12px; font-size: 14px; line-height: 20px; }
.toast a { color: var(--glacier); text-decoration: underline; }
pre.msg { margin-top: 12px; padding: 12px; max-height: 340px; overflow: auto; background: var(--ink); box-shadow: var(--in); font-family: var(--mono); font-size: 12px; line-height: 18px; white-space: pre-wrap; word-break: break-all; -webkit-font-smoothing: auto; }
ul.checks { display: grid; gap: 4px; font-size: 13px; line-height: 18px; }
.okbox.bad { color: var(--sell); }
.okbox.bad svg { color: var(--sell); }
.cta2 a, #lstatus a, .hint a { color: var(--glacier); text-decoration: underline; }
#chart canvas { display: block; }
.picked .av { flex: none; }
.picked > span:nth-child(2) { min-width: 0; }
.trade .btn.lg.wide { font-size: 15px; }
.trade .btn:disabled { color: var(--faint); }
#od .card-body h2 a { color: var(--glacier); }
.size .two .btn, .size .btn.sm { width: 100%; }
#od-act-body .field, #od-act-body .lbl { margin-top: 8px; }
.modal .body .field { margin-top: 4px; }

/* close control in every title bar: back to the desktop */
.ctls a { cursor: pointer; }
.ctls a:hover { background: var(--hover); }
.ctls a:active { box-shadow: var(--in); }

/* Selected Soldeck terminal artwork. */
.soldeck-icon { object-fit: contain; flex-shrink: 0; }
.logo .soldeck-icon { width: 56px; height: 56px; }
