/* DM Sans, self hosted so no visitor is announced to a font service; SIL Open Font License 1.1 */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(/static/fonts/dm-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(/static/fonts/dm-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #FFFDFA;
  --surface: #FFFFFF;
  --ink: #282624;
  --muted: #68625D;
  --accent: #E97255;
  --accent-soft: #FDF0EC;
  --accent-line: #F6CFC3;
  --accent-ink: #B4462A;
  --line: #EFE9E3;
  --online: #219E32;
  --flash: #D92B2B;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(40, 38, 36, .04), 0 8px 24px rgba(40, 38, 36, .05);
}

[data-theme="dark"] {
  --bg: #17161A;
  --surface: #1F1E23;
  --ink: #F2EFEC;
  --muted: #A29B95;
  --accent: #F08063;
  --accent-soft: #2B211F;
  --accent-line: #4A2E27;
  --accent-ink: #F5A48C;
  --line: #2C2A30;
  --flash: #FF7A7A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.shell { max-width: 1140px; margin: 0 auto; padding: 0 24px 80px; }

/* header */
.topbar { display: flex; align-items: center; gap: 20px; padding: 20px 0 8px; }
.wordmark { display: flex; align-items: center; gap: 10px; }
.wordmark .logo { display: block; width: 384px; max-width: 100%; height: auto; }
.wordmark .tag { font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--accent); }
.topbar nav { margin-left: auto; display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.topbar nav a:hover { color: var(--ink); }
.theme {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.theme:hover { color: var(--ink); border-color: var(--accent-line); }

/* hero */
.hero { text-align: center; padding: 28px 0 8px; }
.pulse {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}
/* the days pill sits on a line of its own, above the one counting listings */
.pulse.days { display: flex; width: max-content; margin: 0 auto 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 3px rgba(33, 158, 50, .15); }
.dot-accent { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hero h1 { margin: 20px 0 10px; font-size: clamp(34px, 5vw, 52px); font-weight: 700; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { max-width: 520px; margin: 0 auto; color: var(--muted); font-size: 15px; }
.hero .count { margin: -4px auto 14px; color: var(--accent); font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.hero p b { color: var(--accent); font-weight: 500; }
/* the free chart offer is worth noticing, but only the line below it is allowed to move */
.free-first { color: var(--flash); font-weight: 700; }
/* the one line on the page that is allowed to shout */
.no-algorithms { color: var(--flash); font-weight: 700; animation: flash 1.1s steps(1, end) infinite; }
@keyframes flash { 50% { opacity: .2; } }

/* bid form */
.bidbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px auto 0; max-width: 980px; }
.bidbar .field {
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.bidbar .field:focus-within { border-color: var(--accent-line); }
.bidbar .field svg { color: var(--muted); flex: none; }
.bidbar .url { flex: 3 1 300px; }
.bidbar .name { flex: 1 1 130px; }
.bidbar .select { flex: 1 1 160px; }
.bidbar .amount { flex: 0 0 168px; }
.stepper { gap: 4px; padding: 0 6px; }
.stepper .currency { color: var(--muted); }
.stepper input { text-align: center; padding: 14px 0; min-width: 0; }
.step {
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font: inherit; font-size: 15px; line-height: 1;
  cursor: pointer;
}
.step:hover { border-color: var(--accent-line); color: var(--accent-ink); background: var(--accent-soft); }
.bidbar .pitch { flex: 1 1 100%; }
.bidbar input, .bidbar select {
  width: 100%;
  padding: 14px 0;
  border: 0; outline: none; background: none;
  font: inherit; color: inherit;
}
.bidbar select { cursor: pointer; color: var(--muted); }
.bidbar input::placeholder { color: #A9A29C; }
button.bid {
  flex: 0 0 auto;
  padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit; font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}
button.bid:hover:not(:disabled) { filter: brightness(.95); }
button.bid:disabled { opacity: .5; cursor: not-allowed; }

/* listing for nothing is offered beside the bid, but it is not the button being pushed */
button.free {
  flex: 0 0 auto;
  padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit; font-weight: 600;
  cursor: pointer;
}
button.free:hover { border-color: var(--accent-line); color: var(--ink); }

.status {
  max-width: 720px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.alert {
  max-width: 720px; margin: 14px auto 0;
  padding: 10px 16px;
  border: 1px solid var(--accent-line); border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 14px; text-align: center;
}

.toast {
  max-width: 720px; margin: 12px auto 0;
  padding: 10px 16px;
  border: 1px solid var(--accent-line); border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 14px; text-align: center;
}

/* activity ticker */
.activity { margin-top: 34px; }
.activity-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.ticker {
  margin-top: 10px;
  overflow: hidden;
  /* fade the ends so chips arrive and leave rather than popping */
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  /* two passes, each at least as wide as the strip, so even one chip has the width to cross it */
  min-width: 200%;
  animation: ticker 36s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
/* short passes are padded out on their left, which starts each chip at the right-hand edge */
.chips { display: flex; flex: 1 0 auto; justify-content: flex-end; gap: 10px; padding: 0 5px 4px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; mask-image: none; scrollbar-width: none; }
  .ticker-track { animation: none; width: auto; }
  .ticker::-webkit-scrollbar { display: none; }
  .no-algorithms { animation: none; }
}
.chip {
  flex: 0 0 auto;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.chip-name { display: block; font-size: 13px; font-weight: 700; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-meta { font-size: 12px; color: var(--muted); }

/* layout */
.layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; margin-top: 26px; align-items: start; }

.sidebar { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; }
.cat {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
}
.cat span { color: var(--ink); font-weight: 500; white-space: nowrap; }
.cat:hover { background: var(--surface); color: var(--ink); }
.cat.on { background: var(--accent-soft); color: var(--accent-ink); }
.cat.on span { color: var(--accent-ink); }

/* board */
.board { display: flex; flex-direction: column; gap: 10px; }
.board-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.board-head strong { color: var(--ink); font-size: 15px; }
/* the two boxes sit at the far end of the strip above the chart, and drop under it when narrow */
.board-search { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.board-search input {
  width: 150px; padding: 7px 11px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 13px;
}
.board-search input:focus { outline: none; border-color: var(--accent-line); }
.board-search input::placeholder { color: var(--muted); }

.row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .12s ease;
}
.row:hover { transform: translateY(-1px); border-color: var(--accent-line); }
.row.top { background: var(--accent-soft); border-color: var(--accent-line); }

.rank { flex: none; width: 44px; color: var(--muted); font-weight: 700; font-size: 14px; }
.row.top .rank {
  display: inline-flex; justify-content: center;
  width: 40px; padding: 4px 0;
  border-radius: 999px;
  background: var(--accent); color: #fff;
}

.avatar {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  font-weight: 700; font-size: 17px; color: var(--accent);
}

.meta { min-width: 0; flex: 1; }
.meta h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.meta h3 a:hover { color: var(--accent); }
.pitch-text {
  margin: 3px 0 0;
  color: var(--muted); font-size: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.submeta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.tag { color: var(--accent); font-weight: 500; }
.tag:hover { text-decoration: underline; }
.submeta .host { color: var(--ink); font-weight: 500; }
.submeta .clicks { font-weight: 700; color: var(--ink); }

.pricing { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.price { font-size: 17px; font-weight: 700; color: var(--accent); }
.pass {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.pass:hover { border-color: var(--accent-line); color: var(--accent-ink); background: var(--accent-soft); }

.empty {
  padding: 56px 20px;
  border: 1px dashed var(--accent-line); border-radius: var(--radius);
  background: var(--surface); text-align: center; color: var(--muted);
}
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }

.rules {
  margin-top: 34px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px;
  color: var(--muted); font-size: 14px;
}
.rules div { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rules b { display: block; color: var(--ink); font-weight: 700; margin-bottom: 3px; }

@media (max-width: 900px) {
  /* a lone auto column is still as wide as its widest row, which is what pushes the page sideways */
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout > * { min-width: 0; }
  .sidebar { flex-direction: row; overflow-x: auto; position: static; }
  .cat { flex: 0 0 auto; }
}
@media (max-width: 720px) {
  .bidbar .amount, .bidbar .select { flex: 1 1 160px; }
  button.bid { flex: 1 1 100%; padding: 14px 0; }
  .price { font-size: 15px; }
}

/* a phone holds one column of anything, and the header is the first thing that stops fitting */
@media (max-width: 560px) {
  .shell { padding: 0 16px 56px; }

  .topbar { flex-wrap: wrap; justify-content: center; gap: 10px; padding: 16px 0 4px; }
  .wordmark { flex: 1 1 100%; justify-content: center; }
  .wordmark .logo { width: 260px; }
  .topbar nav { margin-left: 0; flex-wrap: wrap; justify-content: center; gap: 8px 16px; font-size: 13px; }

  .hero { padding: 18px 0 4px; }
  .bidbar .field { padding: 0 14px; }
  .bidbar .url, .bidbar .select, .bidbar .amount { flex: 1 1 100%; }

  .tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; }

  /* the genres are a stack of accordions, which cannot be laid out as a strip */
  .sidebar { flex-direction: column; overflow-x: visible; }
  /* two dozen genres above the chart means scrolling past all of them to reach it */
  .layout { display: flex; flex-direction: column; }
  .board { order: 1; }
  .sidebar { order: 2; }

  .board-head { flex-wrap: wrap; }
  .board-search { margin-left: 0; width: 100%; }
  .board-search input { flex: 1 1 130px; width: auto; }

  .board-search { flex: 1 1 100%; }

  /* the price and the pass button do not fit beside the track, so they take a line of their own */
  .row { flex-wrap: wrap; gap: 10px 12px; padding: 14px; }
  .rank { width: 28px; }
  .avatar { width: 38px; height: 38px; }
  .pricing { flex: 1 1 100%; flex-direction: row; align-items: center; justify-content: flex-end; gap: 10px; }
}

/* admin */
.admin h2 { margin: 34px 0 12px; font-size: 18px; letter-spacing: -.02em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 20px; }
.stats div { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stats b { display: block; font-size: 20px; }
.stats span { color: var(--muted); font-size: 13px; }
/* privacy */
.policy { max-width: 720px; margin: 24px auto 0; color: var(--muted); font-size: 14px; }
.policy h1 { margin: 0 0 10px; font-size: 30px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.policy div { padding: 16px 18px; margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.policy div b:first-child { display: block; color: var(--ink); margin-bottom: 3px; }
.policy a { color: var(--accent-ink); text-decoration: underline; }

/* a week that is over, and the list of the weeks that are */
.archive { max-width: 720px; margin: 24px auto 0; color: var(--muted); font-size: 14px; }
.archive h1 { margin: 6px 0 8px; font-size: 30px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.archive .crumbs { margin: 0; font-size: 13px; }
.archive .crumbs a, .archive .fineprint a, .archive .elsewhere a { color: var(--accent); font-weight: 500; }
.weekly { list-style: none; margin: 16px 0; padding: 0; }
.weekly li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  padding: 12px 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.weekly li + li { margin-top: 8px; }
.weekly .rank { font-weight: 700; color: var(--muted); }
.weekly .name { flex: 1 1 200px; color: var(--ink); font-weight: 600; }
.weekly .price { font-weight: 700; color: var(--ink); }
.archive .fineprint { margin-top: 18px; font-size: 13px; }
.archive .elsewhere { display: flex; flex-wrap: wrap; gap: 14px; }

/* one listing on a page of its own */
.listing { max-width: 720px; margin: 24px auto 0; color: var(--muted); font-size: 14px; }
.listing h1 { margin: 6px 0 8px; font-size: 30px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.listing .crumbs { margin: 0; font-size: 13px; }
.listing .crumbs a { color: var(--accent); font-weight: 500; }
.listing .standing {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 14px 18px; margin: 14px 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.listing .place { font-weight: 700; color: var(--ink); }
.listing .actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px; }
.listing .visit {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.listing .fineprint { margin-top: 18px; font-size: 13px; }
.listing .fineprint a { color: var(--accent-ink); text-decoration: underline; }

.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px 24px; }
.panels h3 { margin: 22px 0 8px; font-size: 14px; font-weight: 700; color: var(--muted); }

.grid { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; }
.grid th { text-align: left; padding: 0 12px; color: var(--muted); font-size: 12px; font-weight: 500; }
.grid td { padding: 12px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: middle; }
.grid td:first-child { border-left: 1px solid var(--line); border-radius: 10px 0 0 10px; }
.grid td:last-child { border-right: 1px solid var(--line); border-radius: 0 10px 10px 0; }
.grid tr.is-hidden td { opacity: .5; }
.grid .num { text-align: right; white-space: nowrap; font-weight: 700; }
.grid .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.grid .url { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.grid .muted { color: var(--muted); }

form.filter { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
form.filter input {
  padding: 8px 12px; flex: 1 1 180px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: inherit; font: inherit; font-size: 13px;
}
form.filter .count { color: var(--muted); font-size: 13px; }

form.inline { display: flex; flex-wrap: wrap; gap: 6px; }
form.inline input, form.inline select {
  padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: inherit; font: inherit; font-size: 13px;
}
form.inline input[name="name"] { flex: 1 1 180px; }
form.inline input[name="description"] { flex: 2 1 240px; }
.block-form { max-width: 420px; margin-bottom: 12px; }

.actions { display: flex; gap: 6px; justify-content: flex-end; }
.actions button, form.inline button {
  padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer;
}
.actions button:hover, form.inline button:hover { border-color: var(--accent-line); color: var(--accent-ink); background: var(--accent-soft); }
.actions .danger:hover { border-color: var(--accent); background: var(--accent); color: #fff; }

/* family sidebar */
.family > summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-left: 22px;
}
.family > summary::-webkit-details-marker { display: none; }
.family > summary::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 5px; height: 5px;
  margin-top: -3px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform .15s ease;
}
.family[open] > summary::before { transform: rotate(45deg); }
.family > summary:hover { background: var(--surface); color: var(--ink); }
.empty-genre { color: var(--muted); font-size: 12px; }
.cat-name { display: flex; flex-direction: column; flex: 1; }
.cat-name:hover { color: var(--accent-ink); }
.cat-name em { font-style: normal; font-size: 11px; color: var(--muted); }
.cat.on .cat-name em { color: var(--accent-ink); }
.subcats { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 6px 10px; padding-left: 8px; border-left: 1px solid var(--line); }
.cat.sub { padding: 6px 10px; font-size: 13px; }
.tag.genre { color: var(--muted); }
.tag.genre:hover { color: var(--accent); }

/* chart view tabs */
.tabrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.tabnote {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.tabnote a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.tabnote a:hover { color: var(--accent); }
.tabs {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 4px;
  width: fit-content;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.tab {
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.on { background: var(--accent); color: #fff; }

/* pagination */
.pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 22px; }
.page {
  min-width: 36px;
  padding: 8px 12px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
}
.page:hover { border-color: var(--accent-line); color: var(--accent-ink); }
.page.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.gap { padding: 8px 4px; color: var(--muted); }

.install-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#install {
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

#install:disabled {
  opacity: .6;
  cursor: default;
}

#install-note {
  color: var(--muted);
  font-size: 14px;
}

/* inside the installed app the offer to install it is noise */
@media all and (display-mode: standalone) {
  nav a[href="/app"] { display: none; }
}

/* checkout is drawn on top of the chart, so the bid being paid for stays behind it */
.checkout-veil {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto;
  background: rgba(0, 0, 0, .45);
}
.checkout-veil[hidden] { display: none; }
.checkout-panel {
  position: relative; width: 100%; max-width: 640px;
  padding: 44px 16px 16px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
}
.checkout-close {
  position: absolute; top: 10px; right: 12px;
  width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
}
.checkout-close:hover { color: var(--ink); border-color: var(--accent-line); }

.signin { max-width: 320px; margin: 80px auto; display: grid; gap: 10px; }
.signin label { color: var(--muted); font-size: 14px; }
.signin input {
  padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: inherit; font: inherit; font-size: 14px;
}
.signin button {
  padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.signin button:hover { border-color: var(--accent-line); color: var(--accent-ink); background: var(--accent-soft); }
.signin .wrong { color: var(--accent); font-size: 14px; margin: 0; }
.topbar nav form { display: inline; }
.topbar nav .link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.colophon { padding: 28px 0 20px; text-align: center; color: var(--muted); font-size: 13px; }
