/*
 BrokerShame
 White canvas, Geist throughout, tight display type. The live board sits inside an app window on a grey stage,
 the way a product page shows its product, except here the product is real and the numbers move.
 One accent for actions (blue), one for money (orange). Hairline borders, 10px radius, shadows only on the window.
*/
:root {
  --bg: #ffffff;
  --stage: #f6f6f7;
  --panel: #ffffff;
  --well: #f3f3f4;
  --line: #e7e7e9;
  --line-2: #efeff1;
  --ink: #141416;
  --ink-2: #4a4a50;
  --mute: #7c7c84;
  --blue: #2f5bea;
  --blue-deep: #2449c4;
  --blue-tint: #e9eefc;
  --orange: #e8571f;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --r: 10px;
  --wrap: 1120px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { fill: currentColor; flex: none; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.num { font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums; line-height: 1; }

/* top bar */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line-2); }
.top-in { display: flex; align-items: center; gap: 10px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -.02em; margin-right: 18px; }
.logo-mark { width: 26px; height: 26px; display: block; }
.badge { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 600; font-style: normal; vertical-align: 1px; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 7px 11px; text-decoration: none; font-weight: 500; font-size: 14px; color: var(--ink-2); border-radius: 8px; transition: background 120ms ease, color 120ms ease; }
.nav a.on { color: var(--ink); background: var(--well); }
@media (hover: hover) { .nav a:hover { color: var(--ink); background: var(--well); } }
.top-post { margin-left: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; font-weight: 500; font-size: 14px; text-decoration: none; border-radius: var(--r); line-height: 1.25; transition: transform 160ms var(--ease-out), background 140ms ease, color 140ms ease, box-shadow 140ms ease; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1px 2px rgba(0,0,0,.12); }
.btn-line { background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.btn-lg { padding: 12px 20px; font-size: 15px; }
.btn-sm { padding: 8px 12px; font-size: 13px; }
@media (hover: hover) {
  .btn-ink:hover { background: #000; }
  .btn-line:hover { background: var(--well); }
}
.link { color: var(--blue); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- home ---------- */
.hero { padding: 84px 0 48px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 8px; text-decoration: none; background: #fff; margin-bottom: 26px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(232,87,31,.18); }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: .98; letter-spacing: -.04em; font-weight: 600; margin: 0 0 18px; max-width: 14ch; text-wrap: balance; }
.hero p { color: var(--ink-2); font-size: 17px; line-height: 1.5; max-width: 50ch; margin: 0 0 28px; text-wrap: pretty; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* stage + window */
.stage { background: var(--stage); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 48px 0 56px; margin-top: 8px; }
.window { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(20,20,22,.05), 0 24px 60px -30px rgba(20,20,22,.25); overflow: visible; }
.wbar { display: grid; grid-template-columns: 1fr minmax(0, 520px) 1fr; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.live { justify-self: end; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #2fb344; }
@media (prefers-reduced-motion: no-preference) { .live i { animation: pulse 2.2s ease-in-out infinite; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(47,179,68,.18); } }
.search { position: relative; }
.search-in { display: flex; align-items: center; background: var(--well); border: 1px solid transparent; border-radius: 9px; height: 38px; padding: 0 8px 0 10px; gap: 8px; transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease; }
.search-in:focus-within { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.search-in svg { width: 16px; height: 16px; color: var(--mute); }
.search-in input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); outline: none; height: 100%; padding: 0; box-shadow: none; }
.search-in input::placeholder { color: var(--mute); }
.search-in kbd { font: inherit; font-size: 11px; color: var(--mute); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; background: #fff; }
.hits { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px -12px rgba(20,20,22,.3); list-style: none; margin: 0; padding: 6px; z-index: 20; transform-origin: top; }
.hits li a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 9px 10px; text-decoration: none; border-radius: 8px; }
.hits li[aria-selected="true"] > a, .hits li > a:hover { background: var(--well); }
.hits .hn { font-weight: 500; font-size: 14px; }
.hits .hn small { display: block; color: var(--mute); font-weight: 400; font-size: 12px; }
.hits .hc { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--mute); font-size: 12px; white-space: nowrap; }
.hits .hc.has { color: var(--ink); }
.hits .new .hn { color: var(--blue); }
@media (prefers-reduced-motion: no-preference) { .hits { animation: pop 160ms var(--ease-out); } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* counts strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; text-decoration: none; position: relative; min-width: 0; transition: background 120ms ease; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-size: clamp(30px, 3.4vw, 42px); display: block; }
.stat b.money { color: var(--orange); }
.stat span { color: var(--mute); font-size: 13px; font-weight: 500; }
.stat .delta { position: absolute; top: 12px; right: 14px; font-size: 12px; font-weight: 600; color: var(--blue); background: var(--blue-tint); padding: 2px 7px; border-radius: 999px; opacity: 0; transform: translateY(4px); transition: opacity 200ms ease, transform 200ms var(--ease-out); }
.stat .delta.show { opacity: 1; transform: none; }
@media (hover: hover) { .stat:hover { background: #fafafa; } .stat:hover span { color: var(--ink-2); } }

/* board */
.board { padding: 22px 22px 8px; }
.board + .board { border-top: 1px solid var(--line); }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.board-head h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.board-head h2 small { color: var(--mute); font-weight: 400; font-size: 13px; margin-left: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; background: var(--well); }
.seg button { padding: 5px 10px; font-size: 13px; font-weight: 500; color: var(--ink-2); border-radius: 6px; transition: background 140ms ease, color 140ms ease, transform 120ms var(--ease-out), box-shadow 140ms ease; }
.seg button:active { transform: scale(.96); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.rank { list-style: none; margin: 0 -8px; padding: 0; }
.rank li { border-radius: 8px; transition: background 120ms ease; }
.rank li.open { background: var(--well); }
.rank a { display: grid; grid-template-columns: 28px minmax(0, 230px) 1fr 84px; align-items: center; gap: 14px; padding: 10px 8px; text-decoration: none; }
.rank .pos { color: var(--mute); font-weight: 500; font-variant-numeric: tabular-nums; font-size: 12px; }
.rank .nm { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .nm small { display: block; font-weight: 400; color: var(--mute); font-size: 12px; }
.rank .meter { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; position: relative; }
.rank .meter i { position: absolute; inset: 0; background: var(--ink); border-radius: 4px; transform-origin: left; transform: scaleX(var(--w, 0)); transition: transform 600ms var(--ease-out); }
.rank .val { text-align: right; font-size: 18px; }
.rank .val.money { color: var(--orange); }
.rank .val.zero { color: #c9c9ce; }
.rank .peek { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 220ms var(--ease-out); }
.rank .peek > div { overflow: hidden; }
.rank .peek p { margin: 0; padding: 0 8px 12px 50px; color: var(--ink-2); font-size: 13px; max-width: 72ch; line-height: 1.5; }
.rank .peek p b { color: var(--ink); font-weight: 500; }
.rank li.open .peek { grid-template-rows: 1fr; }
.board-note { color: var(--mute); font-size: 13px; margin: 6px 0 10px; }

/* tag filter + latest */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; background: #fff; display: inline-flex; gap: 7px; align-items: center; transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 120ms var(--ease-out); }
.chip:active { transform: scale(.96); }
.chip b { font-variant-numeric: tabular-nums; color: var(--mute); font-weight: 500; }
.chip.on, .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.on b, .chip[aria-pressed="true"] b { color: #fff; opacity: .6; }
.latest { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 28px; margin-top: 6px; }
.latest .post { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.latest .post .shot img { max-height: 200px; }
.latest-empty { padding: 22px 0 12px; color: var(--mute); font-size: 14px; }

/* ---------- inner pages ---------- */
.narrow { max-width: 760px; }
#view.full { max-width: none; padding: 0; }
.ph { padding: 44px 0 18px; border-bottom: 1px solid var(--line); }
.ph h1 { font-size: 34px; font-weight: 600; letter-spacing: -.035em; margin: 0 0 6px; line-height: 1.05; }
.ph p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); text-decoration: none; padding: 20px 0 0; font-weight: 500; font-size: 14px; }
.ftabs { display: flex; gap: 2px; padding: 20px 0 10px; position: sticky; top: 60px; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); z-index: 10; }
.ftabs a { padding: 7px 12px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14px; border-radius: 8px; }
.ftabs a.on { color: var(--ink); background: var(--well); }
.hello { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; margin: 6px 0 10px; background: var(--stage); }
.hello h1 { font-size: 20px; letter-spacing: -.02em; font-weight: 600; margin: 0 0 4px; line-height: 1.2; }
.hello p { margin: 0 0 12px; color: var(--ink-2); max-width: 56ch; font-size: 14px; }
.hello .row { display: flex; gap: 14px; align-items: center; }
.hello .dismiss { color: var(--mute); font-size: 13px; font-weight: 500; }

/* post */
.post { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: #fff; font-size: 12px; }
.post-body { min-width: 0; }
.post-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 4px; color: var(--mute); }
.post-top .h { font-weight: 500; color: var(--ink); }
.broker { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; text-decoration: none; margin: 0 0 8px; max-width: 100%; color: var(--ink); }
.broker svg { width: 14px; height: 14px; color: var(--mute); }
.broker span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.broker:hover { color: var(--blue); }
.post-text { margin: 0 0 10px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 68ch; color: var(--ink); }
.post-text.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.more { color: var(--blue); font-weight: 500; font-size: 13px; text-decoration: none; display: inline-block; margin: -6px 0 10px; }
.amount { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: 24px; color: var(--orange); }
.amount small { font-size: 12px; color: var(--mute); font-weight: 500; letter-spacing: 0; }
.shot { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0 0 10px; background: #fff; }
.shot img { width: 100%; max-height: 480px; object-fit: cover; cursor: zoom-in; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 6px; padding: 0; list-style: none; }
.tag { font-size: 13px; font-weight: 500; color: var(--blue); text-decoration: none; }
.tag.hot { color: var(--orange); }
.tag:hover { text-decoration: underline; text-underline-offset: 3px; }
.src { font-size: 13px; color: var(--mute); margin: 0 0 8px; }
.acts { display: flex; align-items: center; gap: 4px; margin-left: -8px; }
.act { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 8px; color: var(--mute); font-weight: 500; font-size: 13px; text-decoration: none; transition: transform 140ms var(--ease-out), background 120ms ease, color 120ms ease; }
.act:active { transform: scale(.95); }
.act svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .act:hover { background: var(--well); color: var(--ink); } }
.act.same.on { color: var(--blue); }
.act.same.on svg { fill: var(--blue-tint); stroke: var(--blue); }
.act .n { font-variant-numeric: tabular-nums; }
.act.share { margin-left: auto; }

/* brokers list */
.brow { display: grid; grid-template-columns: 28px 40px 1fr auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; }
.brow .rank { color: var(--mute); font-weight: 500; font-variant-numeric: tabular-nums; font-size: 12px; margin: 0; }
.brow .bav { width: 40px; height: 40px; border-radius: 10px; background: var(--well); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 600; color: var(--ink); font-size: 15px; }
.brow .bn { font-weight: 500; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.brow .bn small { display: block; color: var(--mute); font-weight: 400; font-size: 12px; }
.brow .bs { text-align: right; white-space: nowrap; }
.brow .bs b { display: block; font-size: 20px; }
.brow .bs span { color: var(--mute); font-size: 12px; }
@media (hover: hover) { .brow:hover .bn { color: var(--blue); } }

/* broker page */
.bhead { padding: 44px 0 22px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; gap: 18px; }
.bhead .bav { width: 64px; height: 64px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 26px; }
.bhead h1 { font-size: 32px; font-weight: 600; letter-spacing: -.035em; margin: 0 0 4px; line-height: 1.05; overflow-wrap: anywhere; }
.bhead .mc { color: var(--mute); font-size: 13px; margin: 0 0 16px; }
.bhead .nums { display: flex; gap: 26px; margin-bottom: 16px; }
.bhead .nums div { font-size: 12px; color: var(--mute); display: flex; flex-direction: column; gap: 4px; }
.bhead .nums b { color: var(--ink); font-size: 24px; }
.bhead .reply { font-size: 13px; color: var(--mute); margin: 14px 0 0; max-width: 60ch; }
.bhead .cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* composer */
.comp { padding: 40px 0 60px; display: flex; flex-direction: column; gap: 18px; max-width: 620px; }
.comp h1 { font-size: 34px; font-weight: 600; letter-spacing: -.035em; margin: 0; line-height: 1.05; }
.comp .as { color: var(--mute); font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.comp .as strong { color: var(--ink); font-weight: 500; }
.comp .as input { width: 170px; padding: 6px 10px; }
.comp .as button { color: var(--blue); font-weight: 500; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 13px; color: var(--ink-2); }
input, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px; width: 100%; min-width: 0; box-shadow: 0 1px 2px rgba(0,0,0,.03); transition: border-color 120ms ease, box-shadow 120ms ease; }
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); outline: none; }
textarea { resize: vertical; min-height: 150px; font-size: 15px; }
.broker-in input { font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.drop { border: 1px dashed #cfcfd4; border-radius: var(--r); padding: 22px; text-align: center; color: var(--mute); cursor: pointer; font-weight: 400; font-size: 14px; position: relative; transition: background 120ms ease; background: var(--stage); }
.drop:hover { background: var(--well); }
.drop.has { padding: 0; border-style: solid; overflow: hidden; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.note { color: var(--mute); font-size: 13px; margin: 0; }
.err { color: var(--orange); font-weight: 500; margin: 0; }
.hp { position: absolute; left: -9999px; }
.counter { color: var(--mute); font-size: 12px; text-align: right; font-weight: 400; font-variant-numeric: tabular-nums; }
.done { padding: 60px 0; max-width: 56ch; }
.done h1 { font-size: 40px; font-weight: 600; letter-spacing: -.04em; margin: 0 0 10px; line-height: 1; }
.done a { color: var(--blue); font-weight: 500; }

/* comments */
.comments { padding: 10px 0 40px; }
.comments h2 { font-size: 13px; color: var(--mute); font-weight: 500; margin: 0 0 6px; }
.cmt { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.cmt .avatar { width: 30px; height: 30px; font-size: 11px; }
.cmt .h { font-weight: 500; font-size: 14px; }
.cmt .t { color: var(--mute); font-size: 12px; margin-left: 6px; }
.cmt p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.cform { display: flex; gap: 8px; margin-top: 16px; }
.cform input { flex: 1; }
.cform button { background: var(--ink); color: #fff; font-weight: 500; padding: 0 16px; border-radius: var(--r); transition: transform 140ms var(--ease-out); }
.cform button:active { transform: scale(.96); }

/* rules */
.rules { padding: 44px 0 60px; max-width: 62ch; }
.rules h1 { font-size: 34px; font-weight: 600; letter-spacing: -.035em; margin: 0 0 14px; line-height: 1.05; }
.rules h2 { font-size: 16px; margin: 26px 0 6px; font-weight: 600; letter-spacing: -.01em; }
.rules p, .rules li { color: var(--ink-2); }
.rules ul { padding-left: 20px; }

/* misc */
.empty { color: var(--mute); padding: 40px 0; }
.empty a { color: var(--blue); font-weight: 500; }
.loading { color: var(--mute); padding: 40px 0; }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 500; font-size: 14px; z-index: 50; max-width: calc(100% - 32px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: rise 220ms var(--ease-out); } }
@keyframes rise { from { opacity: 0; transform: translateX(-50%) translateY(8px); } }
.lightbox { position: fixed; inset: 0; background: rgba(20,20,22,.92); z-index: 60; display: grid; place-items: center; padding: 16px; }
.lightbox img { max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox button { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); font-size: 36px; color: #fff; line-height: 1; }
.foot { border-top: 1px solid var(--line-2); margin-top: 60px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 28px; color: var(--mute); font-size: 13px; }
.foot a { color: var(--ink); }
.tabbar { display: none; }

/* responsive */
@media (max-width: 900px) {
  .wbar { grid-template-columns: auto 1fr auto; }
  .rank a { grid-template-columns: 24px minmax(0, 1fr) 90px 70px; gap: 12px; }
  .rank .peek p { padding-left: 44px; }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .nav, .top-post, .top-feed { display: none; }
  .top-in { height: 54px; }
  .hero { padding: 44px 0 30px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 48px); }
  .hero p { font-size: 15px; }
  .stage { padding: 20px 0 32px; }
  .stage .wrap { padding-left: 10px; padding-right: 10px; }
  .wbar { grid-template-columns: 1fr; padding: 10px; }
  .dots, .live { display: none; }
  .search-in kbd { display: none; }
  .strip { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px 14px 14px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat b { font-size: 30px; }
  .board { padding: 16px 14px 6px; }
  .rank { margin: 0 -6px; }
  .rank a { grid-template-columns: 22px minmax(0, 1fr) 60px; padding: 10px 6px; }
  .rank .meter { display: none; }
  .rank .peek p { padding-left: 34px; }
  .two { grid-template-columns: 1fr; }
  .ph h1, .comp h1, .rules h1, .bhead h1 { font-size: 28px; }
  .ftabs { top: 54px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 8px max(8px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); z-index: 40; }
  .tabbar a { flex: 1; display: grid; place-items: center; padding: 10px 0; color: var(--mute); text-decoration: none; font-size: 13px; font-weight: 500; border-radius: 8px; }
  .tabbar a.on { color: var(--ink); font-weight: 600; }
  .tabbar .tab-post { color: #fff; background: var(--ink); border-radius: 10px; font-size: 22px; font-weight: 400; line-height: 1; padding: 8px 0; flex: 0 0 56px; margin: 0 6px; }
  .foot { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) { .rank .meter i, .rank .peek, .hits, .live i { transition: none; animation: none; } }

/* ---------- v3: tools, check, calc, share ---------- */
#view.mid { max-width: 1000px; }
.num.money, .money { color: var(--orange); }
.proof { font-size: 11px; font-weight: 600; color: var(--ink-2); background: var(--well); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; line-height: 18px; }
.act .owed { color: var(--orange); font-weight: 600; font-variant-numeric: tabular-nums; }
.act.same.on .owed { color: var(--orange); }
.board-foot { margin: 6px 0 14px; font-size: 13px; }
.rank .val.small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }

/* watching strip */
.watching { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 22px; border-bottom: 1px solid var(--line); background: #fbfbfc; }
.watching-l { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--mute); margin-right: 4px; }
.watching-l svg, .watchbox svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.wchip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; text-decoration: none; }
.wchip span { color: var(--mute); font-variant-numeric: tabular-nums; }
.wchip b { color: #fff; background: var(--orange); border-radius: 999px; padding: 0 7px; font-size: 11px; font-weight: 600; line-height: 18px; }

/* tools row under the window */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; border-top: 1px solid var(--line); }
.tool { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 4px 0; text-decoration: none; }
.tool + .tool { padding-left: 22px; border-left: 1px solid var(--line); }
.tool b { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.tool span { color: var(--ink-2); font-size: 14px; max-width: 34ch; }
@media (hover: hover) { .tool:hover b { color: var(--blue); } }

/* popover (share, me too) */
.pop { position: fixed; z-index: 70; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 48px -14px rgba(20,20,22,.32); padding: 8px; min-width: 230px; max-width: calc(100vw - 24px); }
@media (prefers-reduced-motion: no-preference) { .pop:not([hidden]) { animation: pop 150ms var(--ease-out); } }
.pop-title { margin: 4px 8px 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.share-pop { display: flex; flex-direction: column; }
.share-pop a, .share-pop button { text-align: left; padding: 9px 10px; border-radius: 8px; font-size: 14px; text-decoration: none; color: var(--ink); }
.share-pop a:hover, .share-pop button:hover, .share-pop a:focus-visible, .share-pop button:focus-visible { background: var(--well); outline: none; }
.metoo-pop { display: flex; flex-direction: column; gap: 10px; padding: 4px 6px 6px; width: 270px; }
.metoo-pop .pop-title { margin: 2px 0 0; }
.pop-note { margin: 0; font-size: 12px; color: var(--mute); }
.opt { color: var(--mute); font-weight: 400; font-size: 12px; }
.money-in { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding-left: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.money-in:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.money-in span { color: var(--mute); font-weight: 500; }
.money-in input { border: 0; box-shadow: none !important; padding-left: 6px; }

/* broker page */
.bhead .nums b.money { color: var(--orange); }
.bhead .mc a { color: var(--blue); text-decoration: none; }
.watchbox { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.watchmail { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.watchmail input { padding: 8px 11px; font-size: 14px; }
.watchmail .note { margin: 0; }
.breakdown, .fmcsa, .bposts, .mcboard, .mchead { padding: 26px 0 6px; }
.breakdown h2, .fmcsa h2, .bposts h2, .mcboard h2, .week-side h2 { font-size: 15px; font-weight: 600; margin: 0 0 12px; letter-spacing: -.01em; }
.bposts { border-top: 1px solid var(--line); margin-top: 18px; }
.bposts h2 { margin-bottom: 0; }
.breakdown ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.breakdown a { display: grid; grid-template-columns: minmax(0, 190px) 1fr 70px; gap: 14px; align-items: center; padding: 5px 0; text-decoration: none; font-size: 14px; }
.bk-m { height: 8px; background: var(--line-2); border-radius: 4px; position: relative; overflow: hidden; }
.bk-m i { position: absolute; inset: 0; background: var(--orange); border-radius: 4px; transform-origin: left; transform: scaleX(var(--w, 0)); }
.bk-v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-v small { color: var(--mute); font-weight: 400; margin-left: 6px; font-size: 12px; }
@media (hover: hover) { .breakdown a:hover .bk-l { color: var(--blue); } }
.reply-note { color: var(--mute); font-size: 13px; padding: 16px 0 0; max-width: 60ch; }
.more-from { display: inline-block; margin-top: 12px; color: var(--blue); text-decoration: none; font-weight: 500; font-size: 14px; }

/* FMCSA */
.verdict { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid; font-size: 14px; }
.verdict b { font-weight: 600; font-size: 15px; }
.verdict span { color: var(--ink-2); }
.verdict.ok { background: #effaf2; border-color: #c8ecd2; }
.verdict.ok b { color: #1d7a37; }
.verdict.warn { background: #fff8eb; border-color: #f6e2b5; }
.verdict.warn b { color: #8a5a00; }
.verdict.bad { background: #fff1ec; border-color: #f8cdbd; }
.verdict.bad b { color: #b3360c; }
.fm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 16px 0 0; }
.fm div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.fm dt { color: var(--mute); white-space: nowrap; }
.fm dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.fm-note { color: var(--mute); font-size: 12px; margin: 10px 0 0; }
.mcform { display: flex; gap: 8px; max-width: 460px; }
.mcform.big { margin-top: 18px; max-width: 520px; }
.mcform.big input { font-size: 17px; padding: 12px 14px; }
.mchead h2 { font-size: 28px; font-weight: 600; letter-spacing: -.03em; margin: 0 0 4px; line-height: 1.1; }
.mchead .mc { color: var(--mute); font-size: 13px; margin: 0 0 16px; }
.mchead .fmcsa { padding: 0; }
.mcboard { border-top: 1px solid var(--line); margin-top: 24px; }
.mcboard .cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.mcmatch { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.mcmatch b { display: block; font-weight: 600; }
.mcmatch small { color: var(--mute); font-size: 13px; }

/* calculator */
.calc-tabs { position: static; padding-top: 14px; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 20px 0 10px; align-items: start; }
.calc-in { display: flex; flex-direction: column; gap: 16px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
select { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 11px 10px; width: 100%; }
.calc-out { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 16px; }
.owed-box { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--stage); }
.owed-box > span { font-size: 13px; color: var(--mute); font-weight: 500; }
.owed-box > b { display: block; font-size: 56px; margin: 6px 0 12px; }
.owed-box dl { margin: 0; }
.owed-box dl div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.owed-box dt { color: var(--mute); }
.owed-box dd { margin: 0; font-weight: 500; text-align: right; }
.email { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.email-h { display: flex; flex-direction: column; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.email-h span { color: var(--mute); }
.email textarea { border: 0; border-radius: 0; box-shadow: none; font-size: 13px; line-height: 1.55; min-height: 250px; resize: vertical; }
.email textarea:focus { box-shadow: none; }
.email-a { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--stage); flex-wrap: wrap; }
.calc-next { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.calc-next p { width: 100%; margin: 0 0 2px; font-size: 13px; color: var(--ink-2); }

/* weekly recap */
.week { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 36px; padding: 24px 0; align-items: start; }
.week-card { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(20,20,22,.25); background: #fff; }
.week-card img { width: 100%; height: auto; }
.week-side .nums { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 26px; }
.week-side .nums div { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--mute); }
.week-side .nums b { font-size: 34px; color: var(--ink); }
.week-side .nums b.money { color: var(--orange); }
.week-list { list-style: none; padding: 0; margin: 0 0 22px; border-top: 1px solid var(--line); }
.week-list a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; font-size: 14px; }
.week-list b { font-variant-numeric: tabular-nums; }
.week-side .cta { display: flex; gap: 8px; flex-wrap: wrap; }

/* post-posted */
.done-push { color: var(--ink); font-weight: 500; }
.done-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.wtag { font-style: normal; font-size: 11px; font-weight: 600; color: var(--orange); margin-left: 8px; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.foot-links { display: inline-flex; gap: 16px; }

@media (max-width: 900px) {
  .calc, .week { grid-template-columns: 1fr; }
  .calc-out { position: static; }
  .week-card { max-width: 380px; }
}
@media (max-width: 720px) {
  .tools { grid-template-columns: 1fr; margin-top: 18px; }
  .tool, .tool + .tool { padding: 16px 4px; border-left: 0; border-bottom: 1px solid var(--line); }
  .watching { padding: 10px 14px; }
  .fm { grid-template-columns: 1fr; }
  .breakdown a { grid-template-columns: minmax(0, 1fr) 70px 64px; }
  .three { grid-template-columns: 1fr 1fr; }
  .owed-box > b { font-size: 46px; }
  .watchmail { min-width: 0; width: 100%; }
  .tabbar a { position: relative; }
  .tabbar .badge { position: absolute; top: 2px; right: 18%; margin: 0; }
}
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bhead .cta { align-items: center; }
.breakdown details summary { cursor: pointer; color: var(--blue); font-size: 13px; font-weight: 500; padding: 8px 0 0; list-style: none; }
.breakdown details summary::-webkit-details-marker { display: none; }
.breakdown details[open] summary { display: none; }
.act { white-space: nowrap; }
.latest .act.share span, .latest .act:not(.same) span:not(.n) { display: none; }
.latest .acts { gap: 2px; }
.owedbar { display: none; }
@media (max-width: 720px) {
  .bhead { grid-template-columns: 1fr; gap: 12px; padding-top: 28px; }
  .bhead .bav { display: none; }
  .bhead .nums { flex-wrap: wrap; gap: 14px 24px; }
  .bhead .nums div { max-width: 46%; }
  .watchbox { flex-direction: column; align-items: stretch; }
  .watchbox > .btn { align-self: flex-start; }
  .watchmail { flex: none; }
  .watchmail input { flex: 1; }
  .owedbar { display: flex; align-items: center; gap: 10px; position: fixed; left: 10px; right: 10px; bottom: calc(74px + env(safe-area-inset-bottom, 0px)); z-index: 35; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.45); transition: transform 220ms var(--ease-out), opacity 200ms ease; }
  .owedbar span { font-size: 13px; opacity: .75; }
  .owedbar b { font-size: 22px; color: #ffb08f; }
  .owedbar .owedbar-go { margin-left: auto; opacity: 1; font-weight: 500; }
  .owedbar.away { transform: translateY(16px); opacity: 0; pointer-events: none; }
  .calc { padding-bottom: 70px; }
}

/* wordmark */
.wordmark { font-weight: 600; font-size: 20px; letter-spacing: -.045em; line-height: 1; color: var(--ink); display: inline-flex; }
.wordmark span { position: relative; }
.wordmark span::after { content: ""; position: absolute; left: 1px; right: 0; bottom: -4px; height: 2.5px; border-radius: 2px; background: var(--orange); }
.wordmark.sm { font-size: 14px; margin-right: 8px; }
.wordmark.sm span::after { bottom: -3px; height: 2px; }
.logo { padding-bottom: 4px; }

.nav a { white-space: nowrap; }
@media (max-width: 900px) { .nav a[data-tab="brokers"] { display: none; } }
.stat span small { display: block; font-size: 11px; font-weight: 400; color: var(--mute); margin-top: 2px; }
