/* Hackerwitter: HackerTube's content in a timeline. Three themes like X: light, dim, dark (lights out). */
:root, [data-theme="light"] {
  --bg: #ffffff; --bg2: #f7f9f9; --bg3: #eff3f4; --hover: rgba(15, 20, 25, .03); --press: rgba(15, 20, 25, .1);
  --text: #0f1419; --muted: #536471; --line: #eff3f4; --line2: #cfd9de; --glass: rgba(255, 255, 255, .85);
  --invert: #0f1419; --invert-text: #ffffff; --shadow: rgba(101, 119, 134, .2);
}
[data-theme="dim"] {
  --bg: #15202b; --bg2: #1e2732; --bg3: #273340; --hover: rgba(255, 255, 255, .03); --press: rgba(255, 255, 255, .1);
  --text: #f7f9f9; --muted: #8b98a5; --line: #38444d; --line2: #425364; --glass: rgba(21, 32, 43, .75);
  --invert: #f7f9f9; --invert-text: #0f1419; --shadow: rgba(136, 153, 166, .2);
}
[data-theme="dark"] {
  --bg: #000000; --bg2: #16181c; --bg3: #202327; --hover: rgba(231, 233, 234, .03); --press: rgba(231, 233, 234, .1);
  --text: #e7e9ea; --muted: #71767b; --line: #2f3336; --line2: #333639; --glass: rgba(0, 0, 0, .65);
  --invert: #eff3f4; --invert-text: #0f1419; --shadow: rgba(255, 255, 255, .2);
}
:root { --accent: #1d9bf0; --accent-soft: rgba(29, 155, 240, .1); --like: #f91880; --like-soft: rgba(249, 24, 128, .1);
        --repost: #00ba7c; --repost-soft: rgba(0, 186, 124, .1); --hn: #ff6600; }
[data-accent="orange"] { --accent: #ff7a00; --accent-soft: rgba(255, 122, 0, .1); }
[data-accent="purple"] { --accent: #7856ff; --accent-soft: rgba(120, 86, 255, .1); }
[data-accent="green"]  { --accent: #00ba7c; --accent-soft: rgba(0, 186, 124, .1); }
[data-accent="pink"]   { --accent: #f91880; --accent-soft: rgba(249, 24, 128, .1); }
[data-accent="yellow"] { --accent: #ffd400; --accent-soft: rgba(255, 212, 0, .12); }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
       -webkit-font-smoothing: antialiased; overflow-y: scroll; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.link { color: var(--accent); }
.link:hover { text-decoration: underline; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- three-column layout ---------- */
.app { display: flex; justify-content: center; min-height: 100vh; }
.nav { width: 275px; flex: none; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
       padding: 0 12px; overflow-y: auto; }
.col { width: 600px; flex: none; min-width: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
       min-height: 100vh; }
.side { width: 350px; flex: none; margin-left: 30px; padding-bottom: 64px; }

/* ---------- left nav ---------- */
.logo { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; }
.logo svg { width: 30px; height: 30px; }
.logo:hover, .navlink:hover > span { background: var(--press); }
.navlink { display: flex; padding: 4px 0; }
.navlink > span { display: inline-flex; align-items: center; gap: 20px; padding: 12px; border-radius: 9999px;
                  font-size: 20px; line-height: 24px; transition: background .15s; }
.navlink svg { width: 26px; height: 26px; }
.navlink.on > span { font-weight: 700; }
.postbtn { margin: 16px 0; width: 90%; height: 52px; border-radius: 9999px; background: var(--invert); color: var(--invert-text);
           font-size: 17px; font-weight: 700; display: grid; place-items: center; }
.postbtn:hover { opacity: .9; }
.postbtn svg { display: none; width: 24px; height: 24px; }
.me { margin: auto 0 12px; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 9999px; }
.me:hover { background: var(--press); }
.me .who { min-width: 0; line-height: 20px; }
.me b { display: block; }
.me .muted { font-size: 15px; }

/* ---------- avatars ---------- */
.av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff;
      font-weight: 700; font-size: 15px; letter-spacing: -.3px; overflow: hidden; user-select: none; }
.av.lg { width: 48px; height: 48px; font-size: 17px; }
.av.xl { width: 134px; height: 134px; font-size: 44px; border: 4px solid var(--bg); }
.av.sm { width: 32px; height: 32px; font-size: 13px; }
.av.hnu { background: var(--hn) !important; }
.av.me-av { background: var(--bg3); color: var(--muted); }

/* ---------- sticky column header ---------- */
.head { position: sticky; top: 0; z-index: 5; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--line); }
.head .bar { display: flex; align-items: center; gap: 24px; min-height: 53px; padding: 0 16px; }
.head h2 { margin: 0; font-size: 20px; line-height: 24px; font-weight: 700; }
.head .bar .sub { font-size: 13px; line-height: 16px; color: var(--muted); }
.back { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; margin-left: -8px; flex: none; }
.back:hover { background: var(--press); }
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; min-width: 56px; padding: 0 16px; height: 53px; display: grid; place-items: center; color: var(--muted);
       font-weight: 500; position: relative; }
.tab:hover { background: var(--press); }
.tab.on { color: var(--text); font-weight: 700; }
.tab.on::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 56px; height: 4px;
                 border-radius: 9999px; background: var(--accent); }

/* ---------- posts ---------- */
.post { display: block; padding: 12px 16px 4px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.post:hover { background: var(--hover); }
.post.kbd { box-shadow: inset 0 0 0 2px var(--accent); }
.ctx { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 16px;
       margin: -4px 0 4px; }
.ctx .ic { width: 40px; display: flex; justify-content: flex-end; }
.ctx svg { width: 16px; height: 16px; }
.ctx span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow { display: flex; gap: 8px; }
.pbody { flex: 1; min-width: 0; }
.phd { display: flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; line-height: 20px; }
.phd .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.phd .name:hover { text-decoration: underline; }
.phd .handle, .phd .dot, .phd time { color: var(--muted); }
.phd .handle { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.phd time:hover { text-decoration: underline; }
.badge { width: 18px; height: 18px; color: var(--accent); }
.badge.gold { color: #e2b719; }
.more { margin-left: auto; width: 34px; height: 34px; margin-top: -7px; margin-bottom: -7px; margin-right: -8px; border-radius: 50%;
        display: grid; place-items: center; color: var(--muted); flex: none; }
.more:hover { background: var(--accent-soft); color: var(--accent); }
.ptext { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ptext .ht { color: var(--accent); }
.ptext .ht:hover { text-decoration: underline; }

.media { position: relative; display: block; margin-top: 12px; border: 1px solid var(--line2); border-radius: 16px; overflow: hidden;
         background: var(--bg3); }
.media .frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media iframe { width: 100%; height: 100%; border: 0; display: block; position: absolute; inset: 0; }
.media .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%;
               background: var(--accent); border: 3px solid #fff; display: grid; place-items: center; color: #fff;
               transition: transform .15s; }
.media .play svg { width: 28px; height: 28px; margin-left: 3px; }
.media .frame:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.media .dur { position: absolute; left: 12px; bottom: 12px; background: rgba(0, 0, 0, .77); color: #fff; font-size: 13px; font-weight: 500;
              line-height: 16px; padding: 2px 6px; border-radius: 4px; }
.media .cardinfo { padding: 12px; border-top: 1px solid var(--line2); background: var(--bg); line-height: 20px; }
.media .cardinfo .dom { color: var(--muted); font-size: 15px; }
.media .cardinfo .ttl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.qpost { display: block; margin-top: 12px; border: 1px solid var(--line2); border-radius: 16px; padding: 12px; transition: background .15s; }
.qpost:hover { background: var(--hover); }
.qpost .phd { gap: 4px; }
.qpost .av { width: 20px; height: 20px; font-size: 10px; }
.qpost .ptext { margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.note { margin-top: 12px; padding: 12px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); }
.note b { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.note b svg { width: 16px; height: 16px; }

.acts { display: flex; justify-content: space-between; max-width: 425px; margin: 4px -8px 0; color: var(--muted); font-size: 13px; }
.acts.wide { max-width: none; margin: 0; padding: 4px 0; border-bottom: 1px solid var(--line); }
.act { display: inline-flex; align-items: center; min-height: 34px; gap: 2px; color: var(--muted); transition: color .15s; }
.act .ib { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; transition: background .15s; }
.act svg { width: 18.75px; height: 18.75px; }
.acts.wide .act svg { width: 22px; height: 22px; }
.act.reply:hover, .act.views:hover, .act.share:hover, .act.bm:hover { color: var(--accent); }
.act.reply:hover .ib, .act.views:hover .ib, .act.share:hover .ib, .act.bm:hover .ib { background: var(--accent-soft); }
.act.rp:hover, .act.rp.on { color: var(--repost); }
.act.rp:hover .ib { background: var(--repost-soft); }
.act.like:hover, .act.like.on { color: var(--like); }
.act.like:hover .ib { background: var(--like-soft); }
.act.bm.on { color: var(--accent); }
.act.like.on svg { animation: pop .3s ease; }
.actgroup { display: flex; }
@keyframes pop { 50% { transform: scale(1.3); } }

/* ---------- status (single post) page ---------- */
.focus { padding: 12px 16px 0; }
.focus .phd { display: block; line-height: 20px; }
.focus .phd .name { display: flex; align-items: center; gap: 4px; }
.focus .phd .handle { display: block; }
.focus .top { display: flex; gap: 8px; align-items: center; }
.focus .top .pbody { min-width: 0; }
.focus .ptext { font-size: 17px; line-height: 24px; margin-top: 12px; }
.focus .media { margin-top: 12px; }
.focus .summary { margin: 12px 0 0; line-height: 22px; }
.focus .why { margin: 8px 0 0; color: var(--muted); line-height: 22px; }
.focus .whys { margin: 8px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.focus .whys li { padding: 2px 0 2px 14px; position: relative; }
.focus .whys li::before { content: "“"; position: absolute; left: 0; color: var(--hn); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 9999px;
        border: 1px solid var(--line2); font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .15s; }
.chip:hover { background: var(--press); }
.chip.on { background: var(--invert); color: var(--invert-text); border-color: var(--invert); }
.chip.on span { opacity: .7; font-size: 16px; }
.stamp { color: var(--muted); margin: 16px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.stamp b { color: var(--text); }
.counts { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.counts b { color: var(--text); }
.repliesh { padding: 16px; font-size: 17px; font-weight: 700; border-bottom: 1px solid var(--line); }
.reply { cursor: default; }
.reply:hover { background: none; }
.reply .rto { color: var(--muted); margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk { display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; border-radius: 4px; background: var(--accent-soft);
      color: var(--accent); font-size: 13px; font-weight: 700; white-space: nowrap; }
.mk.l { background: var(--bg3); color: var(--muted); font-weight: 500; }
.stance { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 9999px; font-size: 12px; font-weight: 700;
          background: var(--bg3); color: var(--muted); }
.stance.strong_rec { background: var(--repost-soft); color: var(--repost); }
.stance.rec { background: var(--accent-soft); color: var(--accent); }
.stance.critical { background: var(--like-soft); color: var(--like); }
.rfoot { display: flex; align-items: center; gap: 12px; margin: 8px 0 8px; font-size: 13px; color: var(--muted); }
.rfoot a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- profile / list headers ---------- */
.banner { aspect-ratio: 3 / 1; background: var(--bg3); display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pinfo { padding: 12px 16px 0; }
.pinfo .avrow { display: flex; justify-content: space-between; align-items: flex-start; margin-top: -80px; min-height: 82px; }
.pinfo .avrow .btn { margin-top: 82px; }
.pinfo h1 { margin: 4px 0 0; font-size: 20px; line-height: 24px; display: flex; align-items: center; gap: 4px; }
.pinfo .handle { color: var(--muted); }
.pinfo .bio { margin: 12px 0; line-height: 20px; }
.pinfo .meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); margin-bottom: 12px; }
.pinfo .meta b { color: var(--text); }
.btn { height: 36px; padding: 0 16px; border-radius: 9999px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
       background: var(--invert); color: var(--invert-text); white-space: nowrap; transition: opacity .15s; flex: none; }
.btn:hover { opacity: .9; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line2); }
.btn.ghost:hover { background: var(--press); opacity: 1; }
.btn.following:hover { color: var(--like); border-color: var(--like); background: var(--like-soft); }
.btn.sm { height: 32px; padding: 0 16px; font-size: 14px; }
.btn.accent { background: var(--accent); color: #fff; }
.btn svg { width: 18px; height: 18px; }
.listhead { padding: 0 0 16px; border-bottom: 1px solid var(--line); text-align: center; }
.listhead .banner { aspect-ratio: 2 / 1; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.listhead h1 { margin: 12px 16px 4px; font-size: 20px; line-height: 24px; }
.listhead .by { color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 4px; }
.listhead p { margin: 12px 16px; line-height: 20px; text-align: left; }
.listhead .btns { display: flex; justify-content: center; gap: 8px; }

/* ---------- rows: lists, channels, topics ---------- */
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; transition: background .15s; }
.row:hover { background: var(--hover); }
.row .rb { flex: 1; min-width: 0; line-height: 20px; }
.row .rb b { display: flex; align-items: center; gap: 4px; }
.row .rb .muted { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.row .rb p { margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lthumb { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex: none; background: var(--bg3); }
.lthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trend { display: block; padding: 12px 16px; transition: background .15s; }
.trend:hover { background: var(--hover); }
.trend .k { color: var(--muted); font-size: 13px; line-height: 16px; }
.trend b { display: block; margin: 2px 0; }
.trend .n { color: var(--muted); font-size: 13px; line-height: 16px; }
.sec { padding: 12px 16px 8px; font-size: 20px; line-height: 24px; font-weight: 800; }
.secsub { padding: 0 16px 12px; color: var(--muted); }
.divider { height: 1px; background: var(--line); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }

/* ---------- right sidebar ---------- */
.sbox { position: sticky; top: 0; z-index: 4; background: var(--bg); padding: 6px 0 4px; margin-bottom: 12px; }
.searchbox { display: flex; align-items: center; gap: 4px; height: 44px; border-radius: 9999px; background: var(--bg); border: 1px solid var(--line2);
             padding: 0 12px 0 16px; color: var(--muted); }
[data-theme] .side .searchbox { background: var(--bg2); border-color: var(--bg2); }
.searchbox:focus-within { border-color: var(--accent) !important; background: var(--bg) !important; color: var(--accent); }
.searchbox input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text);
                   font: inherit; padding: 0 8px; }
.searchbox input::placeholder { color: var(--muted); }
.searchbox svg { width: 18px; height: 18px; }
.card { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 16px; overflow: hidden; }
.card h3 { margin: 0; padding: 12px 16px; font-size: 20px; line-height: 24px; font-weight: 800; }
.card .pad { padding: 0 16px 12px; line-height: 20px; }
.card .pad p { margin: 0 0 12px; }
.card .showmore { display: block; padding: 16px; color: var(--accent); }
.card .showmore:hover { background: var(--hover); }
.card .row { padding: 12px 16px; }
.card .trend { padding: 12px 16px; }
.foot { padding: 0 16px; color: var(--muted); font-size: 13px; line-height: 16px; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.foot a:hover { text-decoration: underline; }

/* filters (in the right column on wide screens, inline on narrow ones) */
.filters { padding: 0 16px 12px; }
.filters h4 { margin: 12px 0 4px; font-size: 15px; font-weight: 700; }
.filters .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.filters .opt { height: 28px; padding: 0 12px; border-radius: 9999px; border: 1px solid var(--line2); font-size: 13px; font-weight: 600;
                display: inline-flex; align-items: center; }
.filters .opt:hover { background: var(--press); }
.filters .opt.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.inlinefilters { border-bottom: 1px solid var(--line); display: none; }
.filterline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.filterline .grow { flex: 1; }
.filtbtn { display: none; }

/* up next */
.next { display: flex; gap: 12px; padding: 10px 16px; transition: background .15s; }
.next:hover { background: var(--hover); }
.next .nthumb { position: relative; width: 120px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; flex: none; background: var(--bg3); }
.next .nthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.next .nthumb .dur { position: absolute; right: 4px; bottom: 4px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 11px;
                     line-height: 14px; padding: 1px 4px; border-radius: 3px; }
.next .nt { font-weight: 700; font-size: 14px; line-height: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
            overflow: hidden; }
.next .ns { color: var(--muted); font-size: 13px; line-height: 16px; margin-top: 2px; }

/* ---------- misc ---------- */
.status { padding: 32px 16px; text-align: center; color: var(--muted); }
.empty { padding: 40px 32px; max-width: 400px; margin: 0 auto; }
.empty h2 { margin: 0 0 8px; font-size: 31px; line-height: 36px; font-weight: 800; }
.empty p { margin: 0 0 24px; color: var(--muted); }
.spinner { display: inline-block; width: 26px; height: 26px; border: 3px solid var(--accent-soft); border-top-color: var(--accent);
           border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sentinel { height: 1px; }
.toast { position: fixed; left: 50%; bottom: 32px; z-index: 50; transform: translate(-50%, 12px); background: var(--accent); color: #fff;
         padding: 12px 16px; border-radius: 4px; font-size: 15px; opacity: 0; transition: opacity .15s, transform .15s;
         pointer-events: none; box-shadow: 0 0 12px var(--shadow); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.menu { position: absolute; z-index: 30; min-width: 260px; background: var(--bg); border-radius: 12px; overflow: hidden;
        box-shadow: 0 0 15px var(--shadow), 0 0 3px 1px var(--shadow); }
.menu button, .menu a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; font-weight: 700; text-align: left; }
.menu button:hover, .menu a:hover { background: var(--hover); }
.menu svg { width: 18px; height: 18px; }
.modal { display: none; position: fixed; inset: 0; z-index: 40; background: rgba(91, 112, 131, .4); place-items: center; padding: 16px; }
[data-theme="dark"] .modal { background: rgba(91, 112, 131, .4); }
.modal.on { display: grid; }
.mcard { background: var(--bg); color: var(--text); border-radius: 16px; padding: 20px 24px 24px; max-width: 480px; width: 100%;
         max-height: 90vh; overflow-y: auto; }
.mcard h3 { margin: 0 0 12px; font-size: 20px; }
.mcard table { border-collapse: collapse; width: 100%; }
.mcard td { padding: 6px 0; vertical-align: top; }
.mcard td:first-child { width: 110px; white-space: nowrap; }
kbd { font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 3px 6px; border-radius: 4px; background: var(--bg2);
      border: 1px solid var(--line2); }

/* settings */
.setgroup h3 { margin: 0; padding: 12px 16px; font-size: 20px; font-weight: 800; }
.setting { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 12px 16px; cursor: pointer; }
.setting:hover { background: var(--hover); }
.setting p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 16px; }
.check { position: relative; flex: none; width: 20px; height: 20px; margin-top: 2px; }
.check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.check span { position: absolute; inset: 0; border-radius: 4px; border: 2px solid var(--muted); pointer-events: none; }
.check input:checked + span { background: var(--accent); border-color: var(--accent); }
.check input:checked + span::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
                                     border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.swatches { display: flex; justify-content: space-around; padding: 8px 16px 16px; }
.sw { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.sw svg { width: 22px; height: 22px; visibility: hidden; }
.sw.on svg { visibility: visible; }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 16px 16px; }
.themes button { height: 62px; border-radius: 4px; font-weight: 700; display: flex; align-items: center; gap: 12px; padding: 0 16px;
                 border: 2px solid transparent; }
.themes button.on { border-color: var(--accent); }
.themes .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; flex: none; display: grid; place-items: center; }
.themes button.on .radio { background: var(--accent); border-color: var(--accent); }
.themes button.on .radio::after { content: ""; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
                                  transform: rotate(45deg) translate(-1px, -1px); }

/* about / data */
.about { padding: 16px 16px 48px; line-height: 22px; }
.about h1 { font-size: 31px; line-height: 36px; margin: 8px 0; font-weight: 800; }
.about .lede { font-size: 17px; color: var(--muted); margin: 0 0 20px; }
.about h2 { font-size: 20px; margin: 28px 0 8px; font-weight: 800; }
.about p { margin: 0 0 12px; }
.about ul { margin: 0 0 12px; padding-left: 20px; }
.about li { margin-bottom: 6px; }
.about a:not(.btn):not(.chip) { color: var(--accent); }
.about a:not(.btn):not(.chip):hover { text-decoration: underline; }
.about code { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg2); padding: 1px 5px; border-radius: 4px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 8px 0; }
.stat { border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; }
.stat b { display: block; font-size: 24px; line-height: 30px; font-weight: 800; }
.stat span { color: var(--muted); font-size: 13px; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 36px; margin-bottom: 12px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
                    background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.prompt { font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg2); border: 1px solid var(--line);
          border-radius: 16px; padding: 14px 16px; white-space: pre-wrap; margin: 12px 0 8px; }
.fine { color: var(--muted); font-size: 13px; }

/* ---------- mobile chrome ---------- */
.mtop, .tabbar, .drawer { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .nav { width: 88px; align-items: center; padding: 0 4px; }
  .navlink > span > b, .navlink .lbl, .me .who, .me .dots { display: none; }
  .navlink > span { gap: 0; }
  .postbtn { width: 52px; }
  .postbtn span { display: none; }
  .postbtn svg { display: block; }
  .me { padding: 8px; }
}
@media (max-width: 1100px) {
  .side { width: 290px; margin-left: 20px; }
}
@media (max-width: 1000px) {
  .side { display: none; }
  .inlinefilters.open { display: block; }
  .filtbtn { display: inline-flex; }
}
@media (max-width: 700px) {
  .nav { display: none; }
  .col { width: 100%; border: 0; padding-bottom: 60px; }
  .mtop { display: flex; align-items: center; justify-content: space-between; height: 53px; padding: 0 16px; position: sticky; top: 0;
          z-index: 6; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .mtop.hidden { display: none; }
  .mtop .logo { width: 36px; height: 36px; margin: 0; }
  .mtop .logo svg { width: 24px; height: 24px; }
  .mtop .av { width: 32px; height: 32px; }
  .mtop + #view .head { top: 53px; }
  .mtop.hidden + #view .head { top: 0; }
  .head .bar { gap: 16px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(53px + env(safe-area-inset-bottom));
            padding-bottom: env(safe-area-inset-bottom); background: var(--bg); border-top: 1px solid var(--line); }
  .tabbar a { flex: 1; display: grid; place-items: center; }
  .tabbar svg { width: 26px; height: 26px; }
  .tabbar a.on svg { color: var(--text); }
  .tabbar a:not(.on) { color: var(--text); opacity: .85; }
  .drawer { display: block; position: fixed; inset: 0; z-index: 30; pointer-events: none; }
  .drawer .scrim { position: absolute; inset: 0; background: rgba(91, 112, 131, .4); opacity: 0; transition: opacity .2s; }
  .drawer .panel { position: absolute; top: 0; bottom: 0; left: 0; width: 280px; max-width: 80vw; background: var(--bg);
                   transform: translateX(-100%); transition: transform .2s; overflow-y: auto; padding: 16px 0; }
  .drawer.on { pointer-events: auto; }
  .drawer.on .scrim { opacity: 1; }
  .drawer.on .panel { transform: none; }
  .drawer .panel a { display: flex; align-items: center; gap: 24px; padding: 14px 16px; font-size: 20px; font-weight: 700; }
  .drawer .panel a svg { width: 24px; height: 24px; }
  .drawer .dme { padding: 0 16px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
  .drawer .dme b { display: block; margin-top: 8px; font-size: 17px; }
  .post { padding: 12px 12px 2px; }
  .focus { padding: 12px 12px 0; }
  .toast { bottom: 76px; }
  .pinfo .avrow { margin-top: -44px; min-height: 48px; }
  .pinfo .avrow .btn { margin-top: 52px; }
  .av.xl { width: 80px; height: 80px; font-size: 28px; border-width: 3px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
