/* Homepage sections. Tokens are in tokens.css, the frame in site.css. Same recipes as the panel:
   white 14px cards with a hairline, grey group cards holding a white table, light section titles. */
.hm { font-size: 14px; line-height: 1.5; color: var(--text); overflow-x: clip; }
.hm a { color: inherit; text-decoration: none; }
.hm h1, .hm h2 { font-family: inherit; color: var(--text); font-weight: var(--w-title); text-wrap: balance; margin: 0; }
.hm h1 { font-size: var(--t-hero); line-height: 1.1; letter-spacing: var(--ls-title); }
.hm h2 { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.25; letter-spacing: var(--ls-section); }
.hm h3 { margin: 0; font-family: inherit; font-size: 18px; font-weight: var(--w-title); letter-spacing: -.012em; color: var(--text); }
.hm b { font-weight: var(--w-strong); }
.hm-ic { flex: none; display: block; stroke-width: 1.75; }
.hm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hm-wrap { max-width: var(--max-w); margin: 0 auto; padding-inline: var(--pad-x); }
.hm-lead { font-size: 15px; color: var(--muted); max-width: 56ch; margin: 0; text-wrap: pretty; }
.hm-sec { padding-block: 56px; scroll-margin-top: 62px; }
.hm-tint { background: var(--field); }
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.hm-more { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; flex: none; background: var(--panel); border: 1px solid var(--border-2); border-radius: 7px; font-size: var(--t-small); font-weight: var(--w-strong); color: var(--text); white-space: nowrap; transition: background .12s, border-color .12s, color .12s; }
.hm-more:hover { background: var(--field); }
.hm-more .hm-ic { width: 14px; height: 14px; }

.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: var(--r); border: 1px solid transparent; font: inherit; font-size: var(--t-ui); font-weight: var(--w-strong); line-height: 1.2; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, color .12s; }
.hm-btn .hm-ic { width: 15px; height: 15px; }
.hm-btn-primary { background: var(--text); border-color: var(--text); color: var(--ink) !important; }
.hm-btn-primary:hover { background: var(--text-hover); border-color: var(--text-hover); }
.hm-btn-line { border-color: var(--border-2); background: var(--panel); color: var(--text); }
.hm-btn-line:hover { background: var(--field); }

.hm-logo { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; flex: none; display: block; background: var(--field); }
.hm-mono { display: flex; align-items: center; justify-content: center; font-size: var(--t-small); font-weight: var(--w-strong); color: var(--muted); }

/* Hero: a chat wallpaper with the product window in front of it. The wallpaper's layer is one tile
   larger than the hero up and to the left, which is the room it needs to drift. */
.hm-hero { position: relative; overflow: hidden; padding-block: 44px; background: var(--wall); }
.hm-hero-bg { position: absolute; inset: calc(var(--doodle-size) * -1) 0 0 calc(var(--doodle-size) * -1); pointer-events: none; background: var(--wall-ink); -webkit-mask: var(--doodles) 0 0 / var(--doodle-size) repeat; mask: var(--doodles) 0 0 / var(--doodle-size) repeat; }
.hm-hero .hm-wrap { position: relative; }
.hm-hero .hm-lead { color: var(--text-hover); }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.hm-hero-text { display: grid; gap: 16px; min-width: 0; justify-items: start; }
.hm-hero-actions { margin-top: 4px; }
.hm-hero-actions .hm-btn { height: 34px; padding-inline: 12px; }
.hm-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 4px 0 11px; background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--r-sm); max-width: 560px; transition: border-color .12s; }
.hm-search:focus-within { border-color: var(--accent); }
.hm-search .hm-ic { color: var(--dim); width: 16px; height: 16px; }
.hm-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--text); }
.hm-search input::placeholder { color: var(--dim); }

/* The hero's right side: one window, two scenes, tabs above it. Parts come from site.css and the
   Most used board. What's here is the stacking and the motion, which only runs while .is-play is on. */
.hm-show { display: grid; gap: 10px; width: 520px; max-width: 100%; min-width: 0; }
.hm-show-tabs { justify-self: start; }
#hmShowFind:checked ~ .hm-show-tabs label[for="hmShowFind"], #hmShowRun:checked ~ .hm-show-tabs label[for="hmShowRun"] { background: var(--panel); border-color: var(--border); color: var(--text); }
#hmShowFind:focus-visible ~ .hm-show-tabs label[for="hmShowFind"], #hmShowRun:focus-visible ~ .hm-show-tabs label[for="hmShowRun"] { outline: 2px solid var(--accent); outline-offset: 1px; }
.hm-show-win { position: relative; height: 412px; overflow: hidden; }
.hm-scene { position: absolute; inset: 6px; display: flex; flex-direction: column; gap: 6px; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s .4s; }
#hmShowFind:checked ~ .hm-show-win .hm-scene-find, #hmShowRun:checked ~ .hm-show-win .hm-scene-run { opacity: 1; visibility: visible; transition: opacity .4s ease; }

/* Find apps: chips above a stack of lists, one list for each chip */
.hm-chips { flex: none; display: flex; flex-wrap: wrap; gap: 4px; }
.hm-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px 0 8px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-pill); font-size: var(--t-small); color: var(--muted); white-space: nowrap; cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.hm-chip:hover { border-color: var(--border-2); color: var(--text); }
.hm-chip .hm-ic { width: 14px; height: 14px; }
#hmCat0:checked ~ .hm-chips label[for="hmCat0"], #hmCat1:checked ~ .hm-chips label[for="hmCat1"], #hmCat2:checked ~ .hm-chips label[for="hmCat2"],
#hmCat3:checked ~ .hm-chips label[for="hmCat3"], #hmCat4:checked ~ .hm-chips label[for="hmCat4"], #hmCat5:checked ~ .hm-chips label[for="hmCat5"] { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
#hmCat0:focus-visible ~ .hm-chips label[for="hmCat0"], #hmCat1:focus-visible ~ .hm-chips label[for="hmCat1"], #hmCat2:focus-visible ~ .hm-chips label[for="hmCat2"],
#hmCat3:focus-visible ~ .hm-chips label[for="hmCat3"], #hmCat4:focus-visible ~ .hm-chips label[for="hmCat4"], #hmCat5:focus-visible ~ .hm-chips label[for="hmCat5"] { outline: 2px solid var(--accent); outline-offset: 1px; }
.hm-cat-lists { position: relative; flex: 1; min-height: 0; }
.hm-cat-list { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 2px; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s; }
#hmCat0:checked ~ .hm-cat-lists .hm-cat-list:nth-child(1), #hmCat1:checked ~ .hm-cat-lists .hm-cat-list:nth-child(2), #hmCat2:checked ~ .hm-cat-lists .hm-cat-list:nth-child(3),
#hmCat3:checked ~ .hm-cat-lists .hm-cat-list:nth-child(4), #hmCat4:checked ~ .hm-cat-lists .hm-cat-list:nth-child(5), #hmCat5:checked ~ .hm-cat-lists .hm-cat-list:nth-child(6) { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.hm-show .gc-head { flex: none; min-height: 30px; padding: 2px 6px 2px 8px; flex-wrap: nowrap; }
.hm-show-win .gc-link { white-space: nowrap; }
.hm-show-rows { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; display: grid; grid-auto-rows: minmax(0, 1fr); }
.hm-show-rows li + li { border-top: 1px solid var(--border); }
.hm-show-rows .hm-board-row { height: 100%; padding: 6px 12px; gap: 10px; min-width: 0; }
.hm-show-rows .hm-logo { width: 36px; height: 36px; }
.hm-board-id b .hm-show-ok { display: inline-block; margin-left: 4px; color: var(--accent); vertical-align: -2px; }
.hm-show-none { margin: 0; font-size: var(--t-ui); color: var(--muted); }
.hm-show-none a { color: var(--accent-text); }

/* Run your bot: small cards, each one thing Telegram doesn't tell a bot's owner */
.hm-show-bot { flex: none; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 2px 6px 2px 4px; }
.hm-show-bot b { font-size: var(--t-card); font-weight: var(--w-strong); white-space: nowrap; }
.hm-tiles { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr auto auto; gap: 6px; }
.hm-tile { padding: 9px 12px; gap: 3px; border-radius: var(--r-inner); transition: border-color .12s; }
.hm-tile:hover { border-color: var(--border-2); }
.hm-tile-wide { grid-column: 1 / -1; }
.hm-tile-num { font-size: var(--t-small); color: var(--muted); }
.hm-tile-num b, .hm-tile-big { font-size: 18px; font-weight: var(--w-num); letter-spacing: -.015em; color: var(--text); font-variant-numeric: tabular-nums; }
.hm-tile-note { font-size: var(--t-small); color: var(--muted); }
.hm-tile-heat { grid-template-columns: repeat(var(--weeks), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); flex: 1; min-height: 0; align-items: stretch; margin-top: 5px; }
.hm-tile-heat i { height: auto; }
.hm-tile .segbar { margin-top: 5px; flex: none; }
.hm-tile-rows { flex: 1; display: grid; align-content: space-evenly; margin-top: 4px; font-size: var(--t-small); }
.hm-tile-rows > span { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; min-height: 21px; }
.hm-tile-rows > span > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-tile-rows b { font-weight: var(--w-strong); font-variant-numeric: tabular-nums; }
.hm-tile-send { display: flex; align-items: center; gap: 8px; font-size: var(--t-card); }
.hm-tile-send > b { font-weight: var(--w-num); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-tile-send .pill { margin-left: auto; }
.hm-tile .ostats { margin-top: 3px; }
.hm-tile .progress { flex: none; margin-top: 3px; }
.hm-tile .ostats > span { display: grid; font-size: var(--t-small); color: var(--muted); padding-inline: 12px; border-left: 1px dashed var(--border-2); }
.hm-tile .ostats > span:first-child { padding-left: 0; border-left: 0; }
.hm-tile-act { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.hm-tile-act .btn { display: inline-flex; align-items: center; flex: none; }
.hm-tile:hover .hm-tile-act .btn { background: var(--field); }
.hm-tile-pill { display: flex; }
.hm-tile-pill .hm-ic { width: 13px; height: 13px; }

@media (prefers-reduced-motion: no-preference) {
  /* Exactly one tile, so the wallpaper meets itself. Transform only, so it costs the page no paints,
     and whole pixels only: between steps nothing changes, so the browser has no frame to draw. */
  .hm-hero-bg { animation: hmDrift 80s steps(440) infinite; will-change: transform; }
  .hm-hero.is-off .hm-hero-bg { animation-play-state: paused; }
  /* A list comes in as its chip lights up, and only the list that is showing moves. */
  .is-play #hmCat0:checked ~ .hm-cat-lists .hm-cat-list:nth-child(1) li, .is-play #hmCat1:checked ~ .hm-cat-lists .hm-cat-list:nth-child(2) li, .is-play #hmCat2:checked ~ .hm-cat-lists .hm-cat-list:nth-child(3) li,
  .is-play #hmCat3:checked ~ .hm-cat-lists .hm-cat-list:nth-child(4) li, .is-play #hmCat4:checked ~ .hm-cat-lists .hm-cat-list:nth-child(5) li, .is-play #hmCat5:checked ~ .hm-cat-lists .hm-cat-list:nth-child(6) li { animation: hmIn .3s calc(var(--i) * 45ms) var(--ease) both; }
  .is-play.hm-scene-run .hm-tile-heat i { animation: hmFade .35s calc(.25s + var(--r) * 110ms) ease-out both; }
  .is-play.hm-scene-run .segbar { animation: hmDraw .9s .3s ease-out both; }
  .is-play.hm-scene-run .hm-tile-pill .pill { animation: hmIn .3s 1.2s var(--ease) both; }
}
@keyframes hmDrift { to { transform: translate3d(var(--doodle-size), var(--doodle-size), 0); } }
@keyframes hmIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes hmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hmDraw { from { clip-path: inset(0 100% -4px 0); } to { clip-path: inset(0 0 -4px 0); } }

/* Most used: a group card holding a white table */

.hm-board-card { padding: 6px; background: var(--group); border: 1px solid var(--border); border-radius: var(--r-card); }
.hm-board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-inner); overflow: hidden; }
.hm-board li { min-width: 0; border-top: 1px solid var(--border); }
.hm-board li:nth-child(3n + 1) { border-top: 0; }
.hm-board li:nth-child(n + 4) { border-left: 1px solid var(--border); }
.hm-board-row { display: flex; align-items: center; gap: 12px; padding: 9px 14px; transition: background .12s; }
.hm-board-row:hover { background: var(--bg); }
.hm-board-n { width: 14px; flex: none; font-size: var(--t-ui); color: var(--dim); font-variant-numeric: tabular-nums; text-align: right; }
.hm-board-id { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.hm-board-id b { font-size: var(--t-card); font-weight: var(--w-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-board-id span { font-size: var(--t-small); color: var(--muted); }
.hm-board-stat { flex: none; width: 58px; display: grid; text-align: right; line-height: 1.3; }
.hm-board-stat b { font-size: var(--t-card); font-weight: var(--w-num); font-variant-numeric: tabular-nums; }
.hm-board-stat span { font-size: var(--t-micro); color: var(--muted); }
.hm-board-uv { flex: none; width: 66px; display: flex; justify-content: flex-end; }
.hm-board-note { margin: 0; padding: 8px 8px 4px; font-size: var(--t-small); color: var(--muted); }

/* What the site does */
.hm-mission { display: grid; gap: 6px; margin-bottom: 14px; }
.hm-mission p { margin: 0; font-size: 14px; color: var(--muted); max-width: 76ch; text-wrap: pretty; }
.hm-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.hm-tile-b { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); min-width: 0; transition: border-color .12s; }
.hm-tile-b:hover { border-color: var(--border-2); }
.hm-tile-b > .hm-ic { width: 18px; height: 18px; color: var(--muted); }
.hm-tile-b b { font-size: var(--t-card); margin-top: 6px; }
.hm-tile-b span { font-size: var(--t-ui); color: var(--muted); text-wrap: pretty; }
.hm-tile-b em { font-style: normal; font-size: var(--t-small); font-weight: var(--w-strong); color: var(--accent-text); display: inline-flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 10px; }
.hm-tile-b em .hm-ic { width: 14px; height: 14px; }
.hm-b4 { grid-column: span 4; }
.hm-b3 { grid-column: span 3; }
.hm-b2 { grid-column: span 2; }

/* App grid */
.hm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hm-app { --row-r: var(--r-card); display: flex; gap: 12px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); min-width: 0; transition: border-color .12s; }
.hm-app:hover { border-color: var(--border-2); }
.hm-app-body { display: grid; gap: 2px; min-width: 0; flex: 1; align-content: start; }
.hm-app-body > b { font-size: var(--t-card); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-app-desc { font-size: var(--t-small); line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hm-app-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-size: var(--t-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.hm-app-meta b { font-weight: var(--w-num); color: var(--text); }

/* Picks */
.hm-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hm-pick { --row-r: var(--r-card); display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); transition: border-color .12s; min-width: 0; }
.hm-pick:hover { border-color: var(--border-2); }
.hm-pick-main { grid-column: 1 / -1; }
.hm-pick-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hm-pick-id { display: grid; min-width: 0; line-height: 1.3; flex: 1; }
.hm-pick-id b { font-size: var(--t-card); }
.hm-pick-id span { font-size: var(--t-small); color: var(--muted); }
.hm-pick-main .hm-logo { width: 44px; height: 44px; border-radius: 10px; }
.hm-pick-main .hm-pick-id b { font-size: var(--t-section); font-weight: var(--w-title); letter-spacing: var(--ls-section); }
.hm-pick-desc { font-size: var(--t-ui); color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.hm-pick-main .hm-pick-desc { max-width: 84ch; }
.hm-pick-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 16px; font-size: var(--t-small); color: var(--muted); font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.hm-stat { display: inline-flex; align-items: center; gap: 5px; }
.hm-stat b { color: var(--text); font-weight: var(--w-num); }
.hm-go { margin-left: auto; color: var(--muted); }
.hm-spon { font-size: var(--t-small); padding: 1px 9px; border-radius: var(--r-pill); border: 1px solid var(--border-2); color: var(--muted); background: var(--panel); white-space: nowrap; }

/* Categories */
.hm-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hm-cat { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); min-width: 0; transition: border-color .12s; }
.hm-cat:hover { border-color: var(--border-2); }
.hm-cat-main { grid-column: span 2; }
.hm-cat-ic { color: var(--muted); }
.hm-cat-ic .hm-ic { width: 18px; height: 18px; }
.hm-cat-id { display: grid; line-height: 1.3; flex: 1; min-width: 90px; }
.hm-cat-id b { font-size: var(--t-card); }
.hm-cat-id span { font-size: var(--t-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.hm-stack { display: flex; }
.hm-stack .hm-logo { width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--panel); margin-left: -8px; }
.hm-stack .hm-logo:first-child { margin-left: 0; }

/* Ranking */
.hm-rank-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 40px; align-items: start; }
.hm-rank-text { display: grid; gap: 10px; justify-items: start; position: sticky; top: 72px; }
.hm-rank-text p { color: var(--muted); margin: 0; font-size: 14px; text-wrap: pretty; }
.hm-rank-wrap { min-width: 0; padding: 6px; background: var(--group); border: 1px solid var(--border); border-radius: var(--r-card); }
.hm-rank-cols { display: flex; justify-content: flex-end; padding: 6px 14px 8px; font-size: var(--t-small); color: var(--muted); }
.hm-rank-cols span { width: 66px; text-align: right; }
.hm-rank { list-style: none; margin: 0; padding: 0; display: grid; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-inner); overflow: hidden; }
.hm-rank li + li { border-top: 1px solid var(--border); }
.hm-rank-row { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 14px; overflow: hidden; isolation: isolate; }
.hm-rank-fill { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--heat-1); z-index: -1; }
.hm-rank-n { width: 18px; font-size: var(--t-ui); color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; flex: none; }
.hm-rank .hm-logo { width: 28px; height: 28px; border-radius: 7px; }
.hm-rank-name { font-size: var(--t-ui); font-weight: var(--w-strong); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-rank-u, .hm-rank-v { width: 66px; flex: none; text-align: right; font-size: var(--t-ui); font-variant-numeric: tabular-nums; }
.hm-rank-u { color: var(--muted); }
.hm-rank-v { font-weight: var(--w-num); }

/* Scam */
.hm-scam-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: start; }
.hm-scam-text { display: grid; gap: 12px; min-width: 0; align-content: start; }
.hm-scam-text .hm-search { max-width: none; margin-top: 4px; }
.hm-register { padding: 6px; background: var(--group); border: 1px solid var(--border); border-radius: var(--r-card); min-width: 0; }
.hm-register-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 6px 6px 8px; min-height: 42px; }
.hm-register-head b { font-size: var(--t-card); font-weight: var(--w-strong); }
.hm-case { display: flex; gap: 10px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--border); border-width: 0 1px 1px; transition: background .12s; min-width: 0; }
.hm-register-head + .hm-case { border-top-width: 1px; border-radius: var(--r-inner) var(--r-inner) 0 0; }
.hm-case:last-child { border-radius: 0 0 var(--r-inner) var(--r-inner); }
.hm-register-head + .hm-case:last-child { border-radius: var(--r-inner); }
.hm-case:hover { background: var(--bg); }
.hm-case-ic { flex: none; width: 16px; color: var(--dim); padding-top: 2px; }
.hm-case-ic .hm-ic { width: 16px; height: 16px; }
.hm-case-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.hm-case-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; min-width: 0; }
.hm-case-top b { font-size: var(--t-card); }
.hm-case-handle { font-size: var(--t-small); color: var(--muted); }
.hm-case-why { font-size: var(--t-small); line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hm-case-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: var(--t-small); color: var(--muted); }
.hm-sev { display: inline-flex; align-items: center; border-radius: var(--r-pill); padding: 1px 9px; font-weight: var(--w-strong); background: var(--field); color: var(--muted); }
.hm-sev-critical, .hm-sev-high { background: var(--bad-soft); color: var(--bad); }
.hm-case-empty { color: var(--muted); margin: 0; padding: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-inner); }
.hm-verdict[hidden] { display: none; }
.hm-verdict { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--panel); }
.hm-verdict strong { font-size: var(--t-card); font-weight: var(--w-strong); }
.hm-verdict p { margin: 0; font-size: var(--t-ui); color: var(--muted); }
.hm-verdict.is-bad { background: var(--bad-soft); border-color: transparent; }
.hm-verdict.is-bad strong { color: var(--bad); }
.hm-verdict.is-bad p { color: var(--text); }
.hm-v-case { display: grid; gap: 2px; padding-top: 8px; border-top: 1px solid var(--border); }
.hm-v-case b { font-size: var(--t-ui); }
.hm-v-case span { font-size: var(--t-small); color: var(--muted); }
.hm-verdict.is-bad .hm-v-case span { color: var(--text); }
.hm-v-case em { font-style: normal; font-size: var(--t-small); font-weight: var(--w-strong); color: var(--accent-text); }
.hm-tactics { margin-top: 32px; }
.hm-tactics-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.hm-tactics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hm-tactic { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 14px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); }
.hm-tactic b { font-size: var(--t-card); }
.hm-tactic b a { color: var(--accent-text); transition: color .12s; }
.hm-tactic b a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hm-tactic p { margin: 0; font-size: var(--t-ui); color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--border); flex: 1; }
.hm-tactic span { display: flex; gap: 6px; margin-top: 8px; font-size: var(--t-small); color: var(--text); }
.hm-tactic span .hm-ic { width: 14px; height: 14px; margin-top: 2px; color: var(--good-text); }

/* Developers */
.hm-dev-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hm-dev-text { display: grid; gap: 10px; min-width: 0; }
.hm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-dev-text .hm-actions { margin-top: 4px; }
.hm-grid-logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.hm-grid-logos .hm-logo, .hm-slot { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r-card); }
.hm-slot { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border-2); color: var(--muted); }

/* Guides */
.hm-head-text { display: grid; gap: 4px; min-width: 0; }
.hm-head-text p { margin: 0; color: var(--muted); max-width: 66ch; }
.hm-reads { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; }
.hm-read-lead { display: flex; flex-direction: column; gap: 8px; padding: 8px 8px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); min-width: 0; transition: border-color .12s; }
.hm-read-lead:hover { border-color: var(--border-2); }
.hm-read-lead > :not(.pb) { margin-inline: 8px; }
.hm-read-lead .pb { margin-bottom: 8px; }
.hm-read-lead b { font-size: var(--t-section); font-weight: var(--w-title); line-height: 1.25; letter-spacing: var(--ls-section); text-wrap: balance; }
.hm-read-excerpt { font-size: var(--t-ui); color: var(--muted); max-width: 60ch; }
.hm-read-go { margin-top: auto; align-self: flex-start; }
.hm-read-meta { font-size: var(--t-small); color: var(--muted); }
.hm-read-list { display: grid; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; min-width: 0; }
.hm-read-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; transition: background .12s; min-width: 0; }
.hm-read-row + .hm-read-row { border-top: 1px solid var(--border); }
.hm-read-row:hover { background: var(--bg); }
.hm-read-row .hm-ic { color: var(--dim); width: 16px; height: 16px; }
.hm-read-text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.hm-read-text b { font-size: var(--t-card); line-height: 1.35; }

/* FAQ: one white card, hairlines between rows */
.hm-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 40px; align-items: start; }
.hm-faq-text { display: grid; gap: 6px; position: sticky; top: 72px; }
.hm-faq-text p { margin: 0; color: var(--muted); }
.hm-faq-text a { color: var(--accent-text); font-weight: var(--w-strong); }
.hm-faq-text a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hm-faq { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); min-width: 0; overflow: hidden; }
.hm-q + .hm-q { border-top: 1px solid var(--border); }
.hm-q summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; padding: 8px 16px; font-size: var(--t-card); font-weight: var(--w-strong); cursor: pointer; list-style: none; transition: background .12s; }
.hm-q summary:hover { background: var(--bg); }
.hm-q summary::-webkit-details-marker { display: none; }
.hm-q summary .hm-ic { width: 16px; height: 16px; color: var(--dim); }
.hm-q[open] summary .hm-ic { transform: rotate(180deg); }
.hm-q p { margin: 0; padding: 0 44px 14px 16px; font-size: var(--t-ui); line-height: 1.55; color: var(--muted); max-width: 78ch; text-wrap: pretty; }

/* Closing band: a group card */
.hm-close { padding-block: 56px; }
.hm-close-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 20px 20px 20px 24px; background: var(--group); border: 1px solid var(--border); border-radius: var(--r-card); }
.hm-close-text { display: grid; gap: 10px; min-width: 0; }
.hm-close-apps { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: var(--t-small); color: var(--muted); }
.hm-close-apps .hm-logo { border-color: var(--group); }
.hm-close-form { display: grid; gap: 12px; padding: 14px 16px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-inner); min-width: 0; justify-items: start; }
.hm-sub { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; width: 100%; }
.hm-sub label { grid-column: 1 / -1; font-size: var(--t-ui); font-weight: var(--w-strong); }
.hm-sub input { min-width: 0; height: 34px; padding-inline: 10px; border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); font: inherit; font-size: 14px; color: var(--text); transition: border-color .12s; }
.hm-sub input:focus { outline: 0; border-color: var(--accent); }
.hm-sub .hm-btn { height: 34px; }
.hm-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: var(--t-ui); color: var(--muted); }
.hm-ticks li { display: flex; align-items: center; gap: 6px; }
.hm-ticks .hm-ic { width: 14px; height: 14px; color: var(--good-text); }

@media (max-width: 1024px) {
  .hm-hero-grid, .hm-rank-grid, .hm-scam-grid, .hm-dev-grid, .hm-reads, .hm-close-card, .hm-faq-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hm-faq-text { position: static; }
  .hm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-tactics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-reads { gap: 16px; }
  .hm-rank-text { position: static; }
  .hm-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-cat-main { grid-column: span 1; }
  .hm-show { width: 100%; max-width: 560px; justify-self: center; }
}
@media (max-width: 640px) {
  .hm-wrap { padding-inline: var(--pad-x); }
  .hm-sec, .hm-close { padding-block: 36px; }
  .hm-hero { padding-block: 28px; }
  .hm-picks { grid-template-columns: minmax(0, 1fr); }
  .hm-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hm-cat-main { grid-column: span 2; }
  .hm-bento, .hm-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hm-app:nth-child(n+7) { display: none; }
  .hm-b4, .hm-b3, .hm-b2 { grid-column: auto; }
  .hm-tactics-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hm-close-card { padding: 14px; }
  .hm-head { align-items: flex-start; flex-wrap: wrap; }
  .hm-rank-row { padding-inline: 10px; gap: 8px; }
  .hm-rank-cols { padding-inline: 10px; }
  .hm-rank-cols span, .hm-rank-u { width: 48px; }
  .hm-rank-v, .hm-rank-cols span:last-child { width: 62px; }
  .hm-rank-row { min-height: 46px; }
  .hm-board { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .hm-board li:nth-child(3n + 1) { border-top: 1px solid var(--border); }
  .hm-board li:first-child { border-top: 0; }
  .hm-board li:nth-child(n + 4) { border-left: 0; }
  .hm-board-stat { width: 52px; }
  .hm-board-uv { width: 60px; }
  .hm-show-tabs label { min-height: 38px; }
  .hm-show-bot .av { display: none; }
  .hm-show-win { height: 470px; }
  .hm-chip { height: 34px; }
  .hm-show-rows .hm-board-row { padding-inline: 8px; gap: 7px; }
  .hm-show-rows .hm-logo { width: 32px; height: 32px; }
  .hm-show-rows .hm-board-stat { width: 44px; }
  .hm-tile { padding: 9px 10px; }
  .hm-tile .ostats > span { padding-inline: 8px; }
  .hm-board-row { gap: 10px; padding-inline: 10px; }
  .hm-board .hm-logo { width: 36px; height: 36px; }
  .hm-grid-logos { gap: 8px; }
  .hm-grid-logos .hm-logo, .hm-slot { border-radius: var(--r-sm); }
  .hm-sub { grid-template-columns: minmax(0, 1fr); }
  .hm-search { height: 52px; }
  .hm-search .hm-btn { height: 44px; }
}

/* Escrow Gram: text and a chat mock side by side, then the four steps on one line. */
.hm-esc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: center; }
.hm-esc-text { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.hm-esc-brand { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-ui); font-weight: var(--w-strong); color: var(--muted); }
.hm-esc-brand .hm-logo { width: 28px; height: 28px; background: none; }
.hm-esc-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--t-ui); color: var(--text); }
.hm-esc-points li { display: flex; gap: 10px; align-items: flex-start; }
.hm-esc-points .hm-ic { color: var(--good); margin-top: 2px; }
.hm-esc-note { margin: 0; font-size: var(--t-small); color: var(--muted); }
.hm-esc-chat { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--panel); min-width: 0; }
.hm-esc-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.hm-esc-bar .hm-logo { width: 34px; height: 34px; background: none; }
.hm-esc-bar span { display: grid; line-height: 1.25; }
.hm-esc-bar b { font-size: var(--t-ui); }
.hm-esc-bar small { font-size: var(--t-micro); color: var(--muted); }
.hm-esc-wall { position: relative; display: grid; gap: 10px; padding: 20px 18px 22px; background: var(--wall); }
.hm-esc-wall::before { content: ""; position: absolute; inset: 0; background: var(--wall-ink); -webkit-mask: var(--doodles) 0 0 / var(--doodle-size) repeat; mask: var(--doodles) 0 0 / var(--doodle-size) repeat; opacity: .6; pointer-events: none; }
.hm-esc-msg, .hm-esc-me { position: relative; max-width: 82%; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--panel); font-size: var(--t-small); line-height: 1.4; display: grid; gap: 2px; }
.hm-esc-msg b { font-size: var(--t-ui); font-weight: var(--w-strong); display: inline-flex; align-items: center; gap: 6px; }
.hm-esc-amt { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.hm-esc-dim { color: var(--muted); }
.hm-esc-me { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--accent-soft); color: var(--text); }
.hm-esc-done b .hm-ic { color: var(--good); }
.hm-esc-steps { list-style: none; margin: 40px 0 0; padding: 24px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--border); }
.hm-esc-steps li { display: grid; gap: 4px; align-content: start; min-width: 0; }
.hm-esc-steps span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-bottom: 6px; border-radius: 50%; border: 1px solid var(--border-2); font-size: var(--t-small); font-weight: var(--w-strong); font-variant-numeric: tabular-nums; }
.hm-esc-steps b { font-size: var(--t-card); font-weight: var(--w-strong); }
.hm-esc-steps p { margin: 0; font-size: var(--t-small); color: var(--muted); }
@media (max-width: 900px) {
  .hm-esc { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hm-esc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .hm-esc-steps { grid-template-columns: minmax(0, 1fr); } }

/* Its own band: the chat wallpaper behind one clean card, so it reads as a separate thing. */
.hm-esc-band { position: relative; background: var(--wall); overflow: hidden; }
.hm-esc-band::before { content: ""; position: absolute; inset: 0; background: var(--wall-ink); -webkit-mask: var(--doodles) 0 0 / var(--doodle-size) repeat; mask: var(--doodles) 0 0 / var(--doodle-size) repeat; pointer-events: none; }
.hm-esc-band .hm-wrap { position: relative; }
.hm-esc-band .hm-esc { padding: 40px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; }
.hm-esc-band .hm-esc-wall { background: var(--field); }
.hm-esc-band .hm-esc-wall::before { display: none; }
@media (max-width: 640px) { .hm-esc-band .hm-esc { padding: 22px; } }

/* Our picks: the same grey group and white list as "Most used", one per Best of page. */
.hm-best { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.hm-best-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 10px; color: var(--text); }
.hm-best-head b { font-size: var(--t-card); font-weight: var(--w-strong); }
.hm-best-head span { color: var(--muted); transition: color .12s; }
.hm-best-head:hover span { color: var(--text); }
.hm-board.hm-board-one { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
.hm-board.hm-board-one li { border-left: 0; border-top: 1px solid var(--border); }
.hm-board.hm-board-one li:first-child { border-top: 0; }
