:root {
  /* Layout idea: one narrow column on a near-white ground, hairline rules, small uppercase labels, one purple accent. */
  color-scheme: light;
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #17161c;
  --muted: #696775;
  --line: #e7e5ee;
  --accent: #6e54ff;
  --accent-soft: #f1eeff;
  --good: #1a7f4b;
  --good-soft: #e9f6ee;
  --bad: #c2313f;
  --bad-soft: #fcecee;
  --wait: #8a5a00;
  --wait-soft: #fbf3df;
  --todo: #ffd84a;
  --todo-edge: #f2c21c;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Koulen", "Arial Narrow", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.glow {
  position: absolute; inset: 0 0 auto 0; height: 340px; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(110, 84, 255, 0.16), rgba(110, 84, 255, 0) 70%);
}
.shell { position: relative; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.label { font-family: var(--display); font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); line-height: 1.1; }

/* Header */
header {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  max-width: 1040px; margin: 0 auto; padding: 14px 20px;
}
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 22px; letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; line-height: 1; }
.brand i { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); transform: rotate(45deg); display: block; }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a {
  font-family: var(--display); font-size: 17px; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; line-height: 1;
  color: var(--muted); padding: 2px 12px 0; border-radius: 6px; min-height: 40px; display: inline-flex; align-items: center;
}
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { color: var(--ink); background: rgba(23, 22, 28, 0.06); }
.btn {
  font-family: var(--display); font-size: 16px; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1;
  min-height: 40px; padding: 2px 14px 0; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(0.93); }
.account { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip {
  font-family: var(--display); font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.1;
  padding: 4px 8px 2px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); white-space: nowrap;
}
.chip.accent { color: var(--accent); border-color: #d9d1ff; background: var(--accent-soft); }
.chip.good { color: var(--good); border-color: #cfe9d9; background: var(--good-soft); }

/* Page */
main { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
main.wide { max-width: 880px; }
h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(44px, 8vw, 72px); line-height: 0.95; letter-spacing: 0.005em; margin: 0 0 14px; text-wrap: balance; }
.lede { color: var(--muted); font-size: 18px; margin: 0 0 32px; max-width: 54ch; }
h2 { font-family: var(--display); font-size: 18px; font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; line-height: 1.1; }
section + section { margin-top: 40px; }
.view[hidden], [hidden] { display: none !important; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps div { padding: 16px 16px 18px 0; }
.steps div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.steps b { display: block; font-weight: 600; margin-top: 4px; }
.steps span.t { color: var(--muted); font-size: 14px; }
@media (max-width: 620px) {
  .steps { grid-template-columns: 1fr; }
  .steps div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}

/* Raffle status strip */
.progress { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.progress.qualified { background: var(--good-soft); border-color: #cfe9d9; }
.pips { display: flex; gap: 5px; }
.pips i { width: 34px; height: 8px; border-radius: 999px; background: var(--line); display: block; }
.pips i.on { background: var(--accent); }
.qualified .pips i.on { background: var(--good); }
.progress .txt { font-size: 14px; color: var(--muted); }
.progress .txt b { color: var(--ink); font-weight: 600; }
.progress .q { display: inline-flex; align-items: center; gap: 6px; color: var(--good); font-weight: 600; font-size: 14px; }

.tick { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; }

/* Raid card, laid out like a post with its actions underneath */
.raids { display: flex; flex-direction: column; gap: 16px; }
.raid { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.raid-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.timer { font-family: var(--display); font-size: 22px; letter-spacing: 0.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.timer small { font-size: 14px; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.timer i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: block; }
.timer.soon i { background: var(--bad); }
.post { display: flex; gap: 12px; padding: 16px; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--accent); }
.avatar.sm { width: 28px; height: 28px; font-size: 10px; }
.avatar.xl { width: 72px; height: 72px; font-size: 24px; }
.crown { width: 22px; height: 22px; vertical-align: -4px; margin-left: 6px; color: #e0a100; }
.post-body { min-width: 0; flex: 1; }
.post-who { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.post-who b { font-weight: 700; }
.post-who span { color: var(--muted); font-size: 14px; }
.post-text { margin: 4px 0 8px; white-space: pre-line; overflow-wrap: anywhere; }
.media { display: grid; gap: 2px; margin: 4px 0 10px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); max-width: 520px; }
.media.n2, .media.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media span { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--accent-soft); color: var(--muted); font-size: 13px; }
.media.n2 span { aspect-ratio: 1 / 1; }
.post-link { font-size: 14px; color: var(--accent); text-decoration: none; }
.post-link:hover { text-decoration: underline; }
.actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 16px 16px; }
@media (max-width: 520px) { .actions { gap: 6px; padding: 0 12px 12px; } .act { font-size: 14px; gap: 6px; padding: 0 4px; } }
.act {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 10px; border-radius: 8px;
  background: var(--todo); border: 1px solid var(--todo-edge); color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.act svg { width: 18px; height: 18px; flex: none; }
.act:hover { background: var(--todo-edge); }
.act.done { background: var(--accent); border-color: var(--accent); color: #fff; cursor: default; }
.act.done .state { font-family: var(--display); font-size: 16px; font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1; padding-top: 2px; }
.fine { color: var(--muted); font-size: 13px; margin: 14px 0 0; max-width: 64ch; }
.hint { color: var(--bad); font-size: 13px; padding: 0 16px 12px; margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-family: var(--display); font-size: 15px; font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding-top: 12px; padding-bottom: 8px; }
tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
td.pos { color: var(--muted); width: 1%; font-variant-numeric: tabular-nums; }
.who { display: flex; align-items: center; gap: 10px; }
tr.qual td { background: var(--good-soft); }
tr.me td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
tr.held td { background: var(--good-soft); }
tr.sold td { background: var(--bad-soft); }
tr.pending td { background: var(--wait-soft); }
.status { font-family: var(--display); font-size: 16px; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1; }
.held .status { color: var(--good); }
.sold .status { color: var(--bad); }
.pending .status { color: var(--wait); }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.row h2 { margin: 0; }
.tally { display: flex; flex-wrap: wrap; gap: 8px; }
.tally .chip.held { color: var(--good); background: var(--good-soft); border-color: #cfe9d9; }
.tally .chip.sold { color: var(--bad); background: var(--bad-soft); border-color: #f4cdd2; }
.tally .chip.pending { color: var(--wait); background: var(--wait-soft); border-color: #efdfb4; }
.key { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin: 12px 0 0; }

/* Analytics */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tiles div { padding: 16px 16px 14px 0; }
.tiles div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.tiles strong { display: block; font-family: var(--display); font-size: 40px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; margin-top: 6px; }
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .tiles div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; position: relative; }
.chart-card svg { display: block; width: 100%; height: auto; }
.chart-card text { font-family: var(--body); font-size: 11px; fill: var(--muted); }
.chart-card text.val { fill: var(--ink); font-weight: 700; }
.bar { fill: var(--accent); }
.bar.dim { opacity: 0.45; }
.avg { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 4; pointer-events: none; }
.avg-label { pointer-events: none; }
.chart-card text.avg-label { fill: var(--ink); font-weight: 700; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hbar:last-child { border-bottom: 0; padding-bottom: 0; }
.hbar:first-child { padding-top: 0; }
.hbar .track { display: flex; gap: 2px; height: 14px; }
.hbar .track i { display: block; height: 100%; border-radius: 3px; background: var(--accent); min-width: 2px; }
.hbar .n { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; min-width: 86px; text-align: right; }
.hbar.wide .n { min-width: 150px; }
.hbar .n b, .splitkey b { color: var(--ink); font-weight: 700; }
.splitbar { display: flex; gap: 2px; height: 26px; margin-bottom: 10px; }
.splitbar i { display: block; border-radius: 4px; min-width: 2px; }
.splitkey { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.splitkey i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; }
.panel + .panel { margin-top: 12px; }
/* Narrow screens: logo and account on one row, pages in a single swipeable row */
@media (max-width: 720px) {
  header { padding: 10px 16px; gap: 6px 12px; }
  nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav a, nav button { flex: none; padding-left: 10px; padding-right: 10px; }
  .account { flex-wrap: nowrap; }
  .account > .chip.accent { display: none; }
  main { padding-top: 28px; }
  th, td { padding: 10px; }
  .tickets { margin-left: 0; }
}
.overlay { position: fixed; inset: 0; z-index: 20; background: rgba(23, 22, 28, 0.55); display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; width: min(560px, 100%); max-height: 86vh; overflow: auto; padding: 20px; }
.modal h2 { font-size: 28px; color: var(--ink); margin: 0 0 8px; }
.modal h3 { font-family: var(--display); font-weight: 400; font-size: 16px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 16px 0 6px; line-height: 1.1; }
.modal p { margin: 0 0 8px; font-size: 15px; }
.modal table { font-size: 14px; border: 1px solid var(--line); border-radius: 8px; border-collapse: separate; border-spacing: 0; }
.modal th, .modal td { padding: 6px 10px; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }
nav button { font-family: var(--display); font-size: 17px; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1; color: var(--muted); background: none; border: 0; padding: 2px 12px 0; border-radius: 6px; min-height: 40px; cursor: pointer; }
nav button:hover { color: var(--ink); }
.panel.flash { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .panel.flash { animation: flash 1.4s ease-out 1; }
  @keyframes flash { 0% { box-shadow: 0 0 0 3px var(--accent), 0 0 0 10px rgba(110, 84, 255, 0.35); background: var(--accent-soft); } 100% { box-shadow: 0 0 0 3px var(--accent), 0 0 0 0 rgba(110, 84, 255, 0); background: var(--surface); } }
}
.signstep { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.signstep:first-child { padding-top: 0; } .signstep:last-of-type { border-bottom: 0; }
.signstep b { display: block; font-weight: 700; }
.signstep span.t { color: var(--muted); font-size: 14px; }
.tickets { margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap; }
.tickets b { color: var(--ink); font-weight: 700; }
.winner-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.winner-strip .grow { flex: 1 1 220px; min-width: 0; }
.field.numfield { width: 110px; flex: 0 0 auto; }
.log { margin: 0; padding: 0; list-style: none; font-size: 14px; max-height: 260px; overflow: auto; }
.log li { padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.log li:last-child { border-bottom: 0; } .log b { color: var(--ink); font-weight: 600; }
.chip.lock { color: var(--wait); background: var(--wait-soft); border-color: #efdfb4; }
.arow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.arow:first-child { padding-top: 0; } .arow:last-child { border-bottom: 0; padding-bottom: 0; }
.arow .side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.field { flex: 1 1 240px; min-width: 0; min-height: 40px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
select.field { flex: 0 0 auto; }
.msg { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.msg.ok { color: var(--good); } .msg.err { color: var(--bad); }
.h2row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; } .h2row h2 { margin: 0; }
@media (max-width: 520px) { .hbar { grid-template-columns: minmax(0, 1fr) auto; } .hbar .track { grid-column: 1 / -1; order: 3; } }
.seg button:disabled { opacity: 0.4; cursor: default; }
.series-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.series-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; }
.tip { text-align: left; line-height: 1.5; }
.tip b { font-weight: 700; }
.trend { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend-area { fill: var(--accent); opacity: 0.1; }
.dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.guide { stroke: #c9c6d6; stroke-width: 1; }
.hit { fill: transparent; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 6px; transform: translate(-50%, -100%); white-space: pre; z-index: 3; }
.linkbtn { background: none; border: 0; padding: 8px 0; cursor: pointer; color: var(--accent); font-size: 14px; }
.linkbtn:hover { text-decoration: underline; }

/* Closed raids and action statuses */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; min-height: 36px; padding: 2px 12px 0; cursor: pointer; font-family: var(--display); font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.closed-text { margin: 0; padding: 12px 16px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px; padding: 8px; text-align: center; color: var(--muted); font-size: 13px; }
.cell + .cell { border-left: 1px solid var(--line); }
.cell .what { display: inline-flex; align-items: center; gap: 6px; }
.cell svg { width: 15px; height: 15px; }
.cell .st { font-family: var(--display); font-size: 16px; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1; color: var(--ink); }
.cell.acc { background: var(--accent); color: #fff; } .cell.acc .st { color: #fff; }
.cell.good { background: var(--good-soft); } .cell.good .st { color: var(--good); }
.cell.wait { background: var(--wait-soft); } .cell.wait .st { color: var(--wait); }
.cell.bad { background: var(--bad-soft); } .cell.bad .st { color: var(--bad); }
.cell.none { background: var(--bad-soft); } .cell.none .st { color: var(--bad); }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.legend b { font-family: var(--display); font-weight: 400; font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; margin-right: 6px; }
.legend .acc { color: var(--accent); } .legend .good { color: var(--good); } .legend .wait { color: var(--wait); } .legend .bad { color: var(--bad); } .legend .none { color: var(--ink); }
@media (max-width: 620px) { .legend { grid-template-columns: 1fr; } }

/* Leaderboard tools */
.mine { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 14px; margin-bottom: 12px; background: var(--accent-soft); border: 1px solid #d9d1ff; border-radius: 10px; font-size: 14px; }
.mine b { font-weight: 700; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.tools input[type="search"] { flex: 1 1 220px; min-width: 0; min-height: 40px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; min-height: 40px; cursor: pointer; }
.check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--good); }
.check input[type="date"] { min-height: 36px; padding: 0 8px; font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.btn:disabled { opacity: 0.45; cursor: default; border-color: var(--line); }
.pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.btn.arrow { min-width: 40px; padding: 0 8px 2px; font-family: var(--body); font-size: 22px; line-height: 1; }
.pagenums { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pagenums button { min-width: 40px; padding: 2px 8px 0; }
.pagenums button[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagenums span { color: var(--muted); padding: 0 2px; }
td.strong { font-weight: 700; }
td.empty { text-align: center; color: var(--muted); padding: 28px 16px; }

/* Winners filter */
.filter { font-family: var(--display); font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1; min-height: 36px; padding: 2px 12px 0; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.filter.held { color: var(--good); background: var(--good-soft); border-color: #cfe9d9; }
.filter.sold { color: var(--bad); background: var(--bad-soft); border-color: #f4cdd2; }
.filter.pending { color: var(--wait); background: var(--wait-soft); border-color: #efdfb4; }
.filter[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); color: var(--ink); }

.ticker { position: relative; z-index: 2; overflow: hidden; background: var(--accent); color: #fff; }
.ticker-track { display: flex; width: max-content; }
.ticker-track span { flex: none; white-space: nowrap; padding: 8px 0 5px; font-family: var(--display); font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; }
.ticker-track span.gap { width: 72px; display: grid; place-items: center; padding: 0; }
.ticker-track span.gap::before { content: ""; width: 6px; height: 6px; background: #fff; opacity: 0.7; transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: slide 48s linear infinite; }
  @keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
}
.xlink { color: inherit; text-decoration: none; }
.xlink:hover { color: var(--accent); text-decoration: underline; }
tr.lit td { box-shadow: inset 0 2px 0 var(--accent), inset 0 -2px 0 var(--accent); }
tr.lit td:first-child { box-shadow: inset 2px 0 0 var(--accent), inset 0 2px 0 var(--accent), inset 0 -2px 0 var(--accent); }
tr.lit td:last-child { box-shadow: inset -2px 0 0 var(--accent), inset 0 2px 0 var(--accent), inset 0 -2px 0 var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  tr.lit td { animation: lit 0.9s ease-out 2; }
  @keyframes lit { 0% { background-color: #cfc4ff; } 100% { background-color: var(--accent-soft); } }
}
tr.lit td { background: var(--accent-soft); }
.brand img { width: 40px; height: 40px; border-radius: 10px; display: block; }
img.avatar { object-fit: cover; }
footer { max-width: 1040px; margin: 0 auto; padding: 0 20px 48px; color: var(--muted); font-size: 13px; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .act, .btn, nav a { transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
}

/* Live post content and profile pictures */
img.avatar { object-fit: cover; background: var(--line); }
.media img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--accent-soft); }
.media.n2 img, .media.n3 img, .media.n4 img { aspect-ratio: 1 / 1; }
.media.n3, .media.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-text.muted { color: var(--muted); }
