/* throwback: the old pump.fun look. One dark ground, one mint for actions and money, a soft blue for people and
   links, red only for VAMP and sells, and the hot orange only in the logo and the King of the Hill title.
   System fonts, small type, [bracket] links. Motion: the bump shake and the pill shake, and nothing else. */
:root {
  color-scheme: dark;
  --bg: oklch(0.2 0.01 260);
  --card: oklch(0.24 0.01 260);
  --raise: oklch(0.3 0.01 260);
  --line: oklch(0.35 0.01 260);
  --ink: oklch(0.95 0 0);
  --muted: oklch(0.65 0.01 260);
  --mint: oklch(0.86 0.15 155);
  --on-mint: oklch(0.2 0.02 160);
  --blue: oklch(0.8 0.08 240);
  --pill-blue: oklch(0.74 0.12 240);
  --red: oklch(0.66 0.19 22);
  --gold: oklch(0.85 0.16 85);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --wrap: 1400px;
  --gut: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; background: var(--bg); color: var(--ink); font: 400 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.fine { font-size: 12px; color: var(--muted); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

/* [bracket] links and buttons */
.bracket { background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; font-weight: 500; white-space: nowrap; }
.bracket:hover { font-weight: 700; }
.bracket.mint { color: var(--mint); }
.bracket.big { font-size: 24px; color: var(--mint); }
.link { color: var(--blue); }
.link:hover { text-decoration: underline; }

/* ---------- header ---------- */


.top-bar { display: flex; align-items: flex-start; gap: 14px; padding: 8px var(--gut); }
.logo { flex: none; display: block; }
.logo img { height: 34px; width: auto; }
.logo .logo-mark { display: none; }
.top-links { display: grid; font-size: 12px; line-height: 1.35; padding-top: 1px; }
.top-links a:hover { font-weight: 700; }
.pills { display: flex; gap: 10px; min-width: 0; flex-wrap: wrap; padding-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 4px; font-size: 13px; color: oklch(0.2 0.01 260); white-space: nowrap; max-width: 100%; overflow: hidden; }
.pill.trade { background: var(--mint); }
.pill.made { background: var(--pill-blue); }
.pill img { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.pill .pill-coin { border-radius: 2px; }
.pill:hover { text-decoration: underline; }
.pill[hidden] { display: none; }
.top-right { margin-left: auto; position: relative; }
.wallet-btn { font-size: 12px; color: var(--mint); display: inline-flex; gap: 6px; align-items: center; padding-top: 4px; }
.wallet-bal { color: var(--muted); font-weight: 400; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 190px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 6px; z-index: 40; display: grid; }
.menu-head { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; color: var(--muted); font-size: 12px; }
.menu-item { display: block; text-align: left; background: none; border: 0; padding: 7px 8px; border-radius: 3px; cursor: pointer; font-size: 13px; }
.menu-item:hover { background: var(--raise); }

/* the shake you remember */
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-4px) rotate(-1deg); } 40% { transform: translateX(4px) rotate(1deg); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
@keyframes flash { 0% { background: oklch(0.85 0.16 85 / 0.55); } 100% { background: transparent; } }
[data-motion="on"] .pill.shake { animation: shake 0.45s ease-in-out; }
[data-motion="on"] .card.bumped { animation: shake 0.45s ease-in-out, flash 1.1s ease-out; }

/* ---------- home ---------- */
.home-top { display: grid; justify-items: center; gap: 16px; padding-top: 22px; text-align: center; }
.start-coin { font-size: 24px; color: var(--mint); font-weight: 500; }
.start-coin:hover { font-weight: 700; }
.koth-title { height: 64px; width: auto; margin-top: 4px; }
.koth-card { max-width: 560px; text-align: left; }
.koth-card .card { padding: 6px; }
.koth-empty { color: var(--muted); font-size: 13px; }
.search { display: block; width: 100%; max-width: 384px; margin: 30px auto 0; height: 40px; border: 0; border-radius: 4px; padding: 0 12px; background: var(--mint); color: var(--on-mint); font-size: 14px; outline: none; }
.search::placeholder { color: oklch(0.2 0.02 160 / 0.6); }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; font-size: 14px; }
.dropdown { position: relative; }
.drop-btn { height: 40px; padding: 0 12px; border-radius: 4px; border: 0; background: var(--mint); color: var(--on-mint); cursor: pointer; font-size: 14px; }
.drop-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; min-width: 100%; display: grid; background: var(--mint); border-radius: 4px; padding: 4px; box-shadow: 0 10px 30px -10px #000; }
.drop-menu button { text-align: left; background: none; border: 0; padding: 7px 10px; border-radius: 3px; color: var(--on-mint); cursor: pointer; white-space: nowrap; }
.drop-menu button:hover, .drop-menu button[aria-selected="true"] { background: oklch(0.2 0.02 160 / 0.12); }
.toggle { display: inline-flex; align-items: center; gap: 4px; }
.toggle span { margin-right: 4px; }
.toggle button { background: none; border: 0; padding: 1px 5px; border-radius: 4px; color: var(--muted); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--mint); color: var(--on-mint); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 32px; margin-top: 36px; padding-bottom: 60px; }
.feed-note { margin-top: 18px; color: var(--muted); font-size: 13px; text-align: center; }
.feed-note button { color: var(--mint); }

/* the coin card, exactly the old shape: picture on the left, small lines on the right */
.card { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border: 1px solid transparent; border-radius: 4px; max-height: 300px; overflow: hidden; }
a.card:hover { border-color: var(--ink); }
.coin-pic { flex: none; object-fit: cover; background: var(--raise); }
.card-body { min-width: 0; display: grid; gap: 1px; font-size: 12px; }
.card-by { color: var(--blue); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.person { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); }
a.person:hover { text-decoration: underline; }
.face { border-radius: 50%; flex: none; object-fit: cover; }
.card-mc { color: var(--mint); font-weight: 600; }
.card-king { color: var(--muted); font-weight: 400; }
.card-rp { color: var(--muted); }
.card-pair { color: var(--gold); }
.card-nsfw { color: var(--red); }
.card-desc { font-size: 14px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card.preview { border-color: var(--line); }
.badge { display: inline-block; font-size: 10px; font-weight: 700; line-height: 1; padding: 3px 4px; border-radius: 4px; vertical-align: 1px; }
.badge.og { background: var(--mint); color: var(--on-mint); }
.badge.vamp { background: var(--red); color: #fff; }
.tag { font-size: 11px; color: var(--muted); }
.tag.demo { color: var(--gold); }

/* loading and empty */
.skeleton .sk { height: 12px; border-radius: 3px; background: var(--card); margin: 3px 0; width: 200px; max-width: 100%; }
.skeleton .sk.short { width: 110px; }
.skeleton .sk-pic { width: 96px; height: 96px; flex: none; margin: 0; }
.empty { display: grid; justify-items: center; gap: 8px; padding: 60px 0; text-align: center; }
.empty-title { font-size: 16px; font-weight: 600; }

/* ---------- coin page ---------- */
.coin-nav { display: flex; gap: 22px; padding-top: 14px; font-size: 14px; }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 16px; margin-top: 14px; padding-bottom: 60px; align-items: start; }
.coin-main, .coin-side { display: grid; gap: 14px; min-width: 0; }
.coin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 12px; }
.coin-head h1 { font-size: 14px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.coin-head .muted { white-space: nowrap; }
.coin-ca { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); max-width: 100%; }
.coin-ca .mono { overflow: hidden; text-overflow: ellipsis; }
.coin-ca button { color: var(--blue); font-size: 12px; }
.coin-mc { color: var(--mint); }
.coin-sub { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12px; margin-top: -8px; }
.coin-sub .grow { margin-left: auto; color: var(--blue); display: inline-flex; gap: 4px; align-items: center; }
.warn { border: 1px solid var(--red); color: oklch(0.82 0.1 22); background: oklch(0.66 0.19 22 / 0.1); border-radius: 4px; padding: 8px 10px; font-size: 13px; }
.warn a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.okay { border: 1px solid oklch(0.86 0.15 155 / 0.5); color: var(--mint); border-radius: 4px; padding: 8px 10px; font-size: 13px; }
.okay a { text-decoration: underline; }
.chart-box { background: var(--card); border-radius: 4px; overflow: hidden; }
.chart-bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-bottom: 1px solid var(--line); font-size: 12px; }
.chart-bar .iv { display: flex; gap: 2px; }
.chart-bar .iv button { background: none; border: 0; color: var(--muted); padding: 2px 6px; border-radius: 3px; cursor: pointer; font-size: 12px; }
.chart-bar .iv button[aria-pressed="true"] { background: var(--raise); color: var(--ink); }
.chart-bar .last { margin-left: auto; color: var(--muted); }
.chart { padding: 8px 4px 2px 8px; height: 320px; }
.chart svg { height: 100%; }
.chart .gl { stroke: var(--line); stroke-width: 1; opacity: 0.5; }
.chart .axis { fill: var(--muted); font: 10px var(--font); }
.chart .up line, .chart .up rect { stroke: oklch(0.78 0.17 155); fill: oklch(0.78 0.17 155); }
.chart .down line, .chart .down rect { stroke: var(--red); fill: var(--red); }
.chart .up line, .chart .down line { stroke-width: 1.2; }
.chart .last { stroke: var(--muted); stroke-dasharray: 3 3; opacity: 0.6; }
.chart .last-tag.up { fill: oklch(0.78 0.17 155); }
.chart .last-tag.down { fill: var(--red); }
.chart .last-text { fill: oklch(0.15 0.01 260); font: 700 10px var(--font); }
.chart-empty { padding: 120px 0; text-align: center; }
.tabs { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.tabs button { background: none; border: 0; color: var(--ink); padding: 3px 8px; border-radius: 2px; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--mint); color: var(--on-mint); }
.tabs .live { margin-left: auto; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.tabs .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.thread { display: grid; gap: 4px; }
.post { background: var(--card); padding: 8px 10px; font-size: 12px; border-radius: 2px; }
.post-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--muted); }
.post-head .creator { color: var(--muted); }
.post-body { margin-top: 4px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.post.op { display: flex; gap: 10px; }
.post.op .coin-pic { width: 64px; height: 64px; }
.reply-form { display: grid; gap: 8px; margin-top: 6px; }
.reply-form textarea { width: 100%; min-height: 70px; resize: vertical; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font-size: 13px; }
.reply-form .row { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 2px; background: var(--raise); color: var(--ink); cursor: pointer; font-weight: 500; font-size: 14px; white-space: nowrap; }
.btn:hover { filter: brightness(1.12); }
.btn.primary { background: var(--mint); color: var(--on-mint); }
.btn.sell { background: var(--red); color: #fff; }
.btn.wide { width: 100%; }
.btn.sm { height: 28px; font-size: 12px; padding: 0 10px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.trades { width: 100%; border-collapse: collapse; font-size: 12px; }
.trades th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px; background: var(--card); }
.trades td { padding: 7px 8px; border-bottom: 1px solid var(--card); white-space: nowrap; }
.trades .buy { color: var(--mint); }
.trades .sell { color: var(--red); }
.tx { display: inline-flex; gap: 3px; align-items: center; color: var(--blue); }
.table-wrap { overflow-x: auto; }

/* trade panel and side cards */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 14px; display: grid; gap: 10px; }
.panel h2 { font-size: 13px; font-weight: 700; }
.side-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side-tabs button { height: 38px; border: 0; border-radius: 4px; background: var(--raise); color: var(--muted); cursor: pointer; font-weight: 500; font-size: 14px; }
.side-tabs .on.buy { background: var(--mint); color: var(--on-mint); }
.side-tabs .on.sell { background: var(--red); color: #fff; }
.amount-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.amount { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); padding-right: 10px; }
.amount input { flex: 1; min-width: 0; height: 42px; border: 0; background: none; padding: 0 12px; font-size: 16px; outline: none; }
.amount:focus-within { border-color: var(--mint); }
.amount span { font-size: 12px; color: var(--muted); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { flex: 1; height: 26px; border: 0; border-radius: 3px; background: var(--raise); color: var(--ink); font-size: 11px; cursor: pointer; white-space: nowrap; }
.quick button:hover { filter: brightness(1.2); }
.quote { font-size: 12px; color: var(--muted); min-height: 17px; }
.problem { color: oklch(0.78 0.14 22); font-size: 12px; }
.problem:empty { display: none; }
.split { display: flex; height: 26px; border-radius: 3px; overflow: hidden; font-size: 11px; font-weight: 700; }
.split span { display: grid; place-items: center; }
.split .burn { background: oklch(0.72 0.17 50); color: oklch(0.2 0.02 50); }
.split .rest { background: var(--mint); color: var(--on-mint); }
.split .plat { background: var(--blue); color: oklch(0.2 0.02 240); }
.split span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 4px; }
.facts { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 12px; }
.facts dt { color: var(--muted); }
.facts dd { text-align: right; font-family: var(--mono); }
.moves { display: grid; gap: 0; font-size: 12px; max-height: 220px; overflow: auto; }
.moves li { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.moves .when { color: var(--muted); white-space: nowrap; }
.about { display: flex; gap: 10px; }
.about .coin-pic { width: 120px; height: 120px; }
.about b { display: block; font-size: 14px; }
.about p { font-size: 12px; overflow-wrap: anywhere; }
.prog { display: grid; gap: 6px; font-size: 13px; }
.prog-bar { height: 10px; background: var(--raise); border-radius: 999px; overflow: hidden; }
.prog-bar span { display: block; height: 100%; background: var(--mint); border-radius: 999px; }
.prog-bar.gold span { background: var(--gold); }

/* ---------- create ---------- */
.create { width: min(440px, 100% - 2 * var(--gut)); margin: 0 auto; padding: 18px 0 60px; display: grid; gap: 14px; }
.create .back { justify-self: center; font-size: 18px; }
.field { display: grid; gap: 4px; }
.field label, .field .label { color: var(--blue); font-weight: 600; font-size: 14px; }
.field .hint { font-size: 12px; color: var(--muted); }
.input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); font-size: 15px; outline: none; }
textarea.input { height: auto; min-height: 76px; padding: 8px 10px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.input:focus { border-color: var(--mint); }
.input[aria-invalid] { border-color: var(--red); }
.file { display: flex; align-items: center; gap: 10px; }
.file img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.file-btn { height: 40px; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-row button { height: 38px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); cursor: pointer; color: var(--muted); }
.choice-row button[aria-pressed="true"] { border-color: var(--mint); color: var(--mint); font-weight: 600; }
.choice-row button:disabled { opacity: 0.5; cursor: not-allowed; }
.more { justify-self: start; color: var(--blue); }
.costline { font-size: 13px; color: var(--muted); text-align: center; }
.notes { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.notes li::before { content: "· "; color: var(--mint); }
.vamp-note { font-size: 13px; }

/* the launch flow, in the modal */
.flow-steps { display: grid; gap: 6px; margin: 6px 0 10px; font-size: 13px; }
.flow-steps li { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.flow-steps .flow-mark { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--raise); font-size: 11px; }
.flow-steps .done { color: var(--ink); }
.flow-steps .done .flow-mark { background: var(--mint); color: var(--on-mint); }
.flow-steps .now { color: var(--ink); font-weight: 600; }
.flow-steps .now .flow-mark { outline: 2px solid var(--mint); }
.flow-steps .bad .flow-mark { background: var(--red); color: #fff; }
.costs { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13px; margin: 8px 0; }
.costs dt { color: var(--muted); }
.costs dd { font-family: var(--mono); text-align: right; }
.costs .total { color: var(--ink); font-weight: 700; padding-top: 6px; border-top: 1px solid var(--line); }
.big-line { font-size: 15px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 12px; }
.banner { margin-top: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; }
.banner.good { border-color: var(--mint); color: var(--mint); }
.banner a { text-decoration: underline; }

/* ---------- how it works ---------- */
.how { width: min(760px, 100% - 2 * var(--gut)); margin: 0 auto; padding: 32px 0 70px; display: grid; gap: 14px; font-size: 14px; }
.how h1 { color: var(--mint); font-size: 26px; font-weight: 500; }
.how h2 { color: var(--mint); font-size: 18px; font-weight: 500; margin-top: 30px; }
.how .accent { color: var(--mint); }
.how ul.dots { list-style: disc; padding-left: 20px; display: grid; gap: 4px; }
.steps { display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 22px 1fr; gap: 4px 10px; }
.steps .n { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 2px; background: var(--mint); color: var(--on-mint); font-size: 12px; font-weight: 700; margin-top: 1px; }
.steps b { font-weight: 600; }
.steps p { grid-column: 2; color: var(--muted); }
.how .ca { margin-top: 6px; }
.how-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 30px; }

/* ---------- profile ---------- */
.profile { width: min(720px, 100% - 2 * var(--gut)); margin: 0 auto; padding: 26px 0 60px; display: grid; gap: 18px; }
.profile-head { display: grid; justify-items: center; gap: 8px; text-align: center; }
.profile-head .face { width: 80px; height: 80px; }
.profile-head h1 { font-size: 18px; font-weight: 600; }
.profile-head .addr { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; max-width: 100%; }
.profile-head .addr .mono { overflow: hidden; text-overflow: ellipsis; }
.profile .grid { grid-template-columns: 1fr; gap: 18px; margin-top: 0; padding-bottom: 0; }
.list-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--card); font-size: 13px; }

/* ---------- 404 ---------- */
.nf { display: grid; justify-items: center; gap: 10px; padding: 120px 16px; text-align: center; }
.nf .big { font-size: 64px; font-weight: 800; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--card); padding: 18px var(--gut) 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; align-items: center; font-size: 12px; color: var(--muted); text-align: center; }
.foot .ca { display: inline-flex; gap: 4px; }
.ca { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; font-size: 13px; }
.ca-soon { color: var(--gold); font-weight: 700; }
.ca-note { flex-basis: 100%; font-size: 12px; }
.foot .ca-note { display: none; }
.foot .motion { color: var(--muted); }

/* ---------- toasts and the one modal ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: grid; gap: 8px; max-width: min(360px, 100% - 32px); }
.toast { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--mint); border-radius: 4px; padding: 10px 12px; font-size: 13px; box-shadow: 0 12px 30px -12px #000; }
.toast.bad { border-left-color: var(--red); }
.modal-veil { position: fixed; inset: 0; z-index: 70; background: oklch(0.1 0 0 / 0.7); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal-panel { width: min(420px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.modal-head h2 { font-size: 16px; font-weight: 600; }
.modal-body { display: grid; gap: 10px; font-size: 13px; }
.modal-panel.locked .modal-x { visibility: hidden; }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 3px; background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--raise); color: var(--ink); }
.icon { display: inline-flex; }
.wallet-list { display: grid; gap: 6px; }
.wallet-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); cursor: pointer; text-align: left; }
.wallet-row:hover { border-color: var(--mint); }
.wallet-row img { border-radius: 6px; }
.wallet-name { flex: 1; font-weight: 600; }
.wallet-tag { font-size: 11px; color: var(--muted); }
.wallet-help { display: grid; gap: 8px; }
.wallet-help .btn { height: 30px; font-size: 12px; }

/* ---------- phones ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coin-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 820px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .coin-grid { grid-template-columns: minmax(0, 1fr); }
  .coin-side { order: -1; }
  .chart { height: 240px; }
}
@media (max-width: 640px) {
  .top-bar { flex-wrap: wrap; gap: 8px 12px; }
  .logo .logo-word { display: none; }
  .logo .logo-mark { display: block; height: 36px; width: 36px; }
  .pills { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow: hidden; }
  .pill { flex: 0 1 auto; min-width: 0; }
  .pill span { overflow: hidden; text-overflow: ellipsis; }
  .koth-title { height: 44px; }
  .controls { gap: 10px 16px; font-size: 13px; }
  .card-desc { font-size: 13px; }
}
