/* Geist 5.3.0 (latin, variable weight), SIL OFL 1.1: static/fonts/OFL.txt. Served by us, no third-party requests. */
@font-face {
  font-family: "Geist";
  src: url("/static/fonts/geist-5.3.0.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Plain: one sans family, hairline rows, a green tint, the branch as weight. */
:root {
  --bg: #f4f8f5;
  --raised: #fbfdfc;
  --fill: #e7f0ea;
  --ink: #13201a;
  --muted: #5c6d64;
  --line: #dce7e0;
  --accent: #2a7550;
  --leaf: #3f8f63;
  --stem: #5b4a36;
  --dry: #8a6d2c;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1512;
    --raised: #141c18;
    --fill: #17211c;
    --ink: #e3ece7;
    --muted: #92a69b;
    --line: #213029;
    --accent: #7cc9a0;
    --leaf: #6dbb90;
    --stem: #b9a68c;
    --dry: #c9ad6a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 42rem;
  padding: 0 16px 6rem;
  background: var(--bg);
  color: var(--ink);
  font: 400 0.9375rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 1.5rem; font-weight: 600; line-height: 1.25; text-wrap: balance; }

/* header */
.top { display: flex; align-items: center; gap: 0.75rem 1rem; flex-wrap: wrap; padding: 1.75rem 0 1.25rem; }
.mark { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.015em; text-decoration: none; }
.mark svg { width: 1.9rem; height: 1.9rem; display: block; }
.jump { flex: 1 0 100%; }
.jump input {
  width: 100%; font: inherit; font-size: 0.875rem; color: var(--ink);
  background: var(--fill); border: 1px solid transparent; border-radius: 8px; padding: 0.45rem 0.7rem;
}
.jump input::placeholder { color: var(--muted); }
.jump input:focus { outline: none; border-color: var(--accent); background: var(--raised); }
.links { display: flex; align-items: center; gap: 1rem; margin-left: auto; font-size: 0.875rem; }
.links a { text-decoration: none; color: var(--muted); }
.links a:hover { color: var(--ink); }
.links .act { color: var(--ink); font-weight: 500; padding: 0.35rem 0.75rem; border: 1px solid var(--line); border-radius: 8px; }
.links .act:hover { border-color: var(--accent); color: var(--accent); }

/* page heads */
.head { margin: 0.5rem 0 1rem; display: grid; gap: 0.4rem; }
.gname { font-size: 1.5rem; overflow-wrap: anywhere; }
.gtitle { display: flex; gap: 0.9rem; align-items: center; }
.gtitle > div { display: grid; gap: 0.4rem; min-width: 0; }
.gpic { width: 3.5rem; height: 3.5rem; border-radius: 0.6rem; flex: none; object-fit: cover; background: var(--fill); }
.gname a { text-decoration: none; color: var(--muted); font-weight: 500; }
.gname a:hover { color: var(--ink); }
.gname .dot { color: var(--accent); }
.desc { margin: 0; color: var(--muted); }
.subs { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; margin: 0; font-size: 0.875rem; }
.subs a { color: var(--accent); text-decoration: none; }
.subs a:hover { text-decoration: underline; }
.subs .add { color: var(--muted); }

.sorts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1.1rem; font-size: 0.875rem; color: var(--muted); margin: 0.75rem 0 0.75rem; }
.sorts a { text-decoration: none; }
.sorts a:hover { color: var(--ink); }
.sorts a[aria-current] { color: var(--ink); font-weight: 500; }

/* feed rows */
.items { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 1rem; padding: 0.95rem 0; border-top: 1px solid var(--line); }
.item h2 { grid-column: 1; font-size: 1rem; font-weight: 500; line-height: 1.4; }
.item h2 a { text-decoration: none; }
.item h2 a:hover { color: var(--accent); }
.item h2 a:visited { color: var(--muted); }
.domain { font-size: 0.8125rem; font-weight: 400; color: var(--muted); white-space: nowrap; }
.thumb { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.thumb img { display: block; width: 3rem; height: 3rem; object-fit: cover; border-radius: 6px; background: var(--fill); }

.m { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.9rem; font-size: 0.8125rem; color: var(--muted); }
.m a { text-decoration: none; }
.m a:hover { text-decoration: underline; }
.m .g { color: var(--accent); }
.new { color: var(--accent); font-weight: 500; text-decoration: none; }
.m .new { margin-left: -0.5rem; }
.who { color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 0.2rem; }
.who a { color: inherit; text-decoration: none; }
.who a:hover { color: var(--accent); }
.badge { display: inline-flex; }
.badge svg { width: 0.95em; height: 0.95em; display: block; }

/* weight + voting */
.vote { display: inline-flex; align-items: center; gap: 0.1rem; }
.vote form { margin: 0; }
.vote .w { display: inline-flex; margin-right: 0.15rem; }
.vote .w svg { width: 1.4rem; height: 1.4rem; display: block; }
.vote button {
  font: 500 0.875rem/1 var(--font); width: 1.5rem; height: 1.4rem; padding: 0;
  border: 0; border-radius: 4px; background: none; color: var(--muted); cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity 0.12s;
}
.vote button:hover { background: var(--fill); color: var(--accent); }
.vote button.up.on { color: var(--accent); }
.vote button.down.on { color: var(--dry); }
.vote button.on, .vote button:focus-visible,
.item:hover .vote button, .item:focus-within .vote button,
.post:hover .vote button, .post:focus-within .vote button,
.acts .vote button { opacity: 1; pointer-events: auto; }

.pager { display: flex; justify-content: space-between; font-size: 0.875rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.pager a { color: var(--accent); text-decoration: none; }
.pager a:last-child { margin-left: auto; }
.empty { color: var(--muted); }
.empty a { color: var(--accent); }

/* thread */
.post { display: grid; gap: 0.5rem; padding-top: 0.5rem; }
.where { display: flex; flex-wrap: wrap; gap: 0 0.9rem; margin: 0; font-size: 0.8125rem; }
.where a { color: var(--accent); text-decoration: none; }
.post h1 a { text-decoration: none; }
.post .domain { font-size: 0.875rem; }
.pic { margin: 0.5rem 0 0; }
.pic img { display: block; width: auto; height: auto; max-width: 100%; max-height: 80vh; border-radius: 8px; background: var(--fill); cursor: zoom-in; }
.prose { max-width: 38rem; line-height: 1.6; }
.prose p { margin: 0.55rem 0 0; }
.prose p:first-child { margin-top: 0; }
.prose blockquote { margin: 0.45rem 0 0; padding: 0 0 0 0.75rem; border-left: 2px solid var(--line); color: var(--muted); }
.post .prose { margin-top: 0.5rem; font-size: 1rem; }

.digest { margin: 2rem 0 0; padding: 0.9rem 1rem; background: var(--fill); border-radius: 10px; }
.digest h2 { font-size: 0.8125rem; font-weight: 600; color: var(--accent); }
.digest ul { margin: 0.4rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.digest a { text-decoration: none; }
.digest a:hover { text-decoration: underline; }

.replies { margin-top: 2rem; }
.replies > .sorts { margin: 2rem 0 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.sorts .new { margin-left: auto; font-weight: 400; }

/* forms */
label { display: block; font-size: 0.875rem; font-weight: 500; margin: 1rem 0 0.35rem; }
.hint { font-weight: 400; color: var(--muted); }
input, textarea {
  width: 100%; font: inherit; color: inherit; background: var(--raised);
  border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.7rem;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
input[type="file"] { padding: 0.4rem; font-size: 0.875rem; }
form button:not(.vote button) {
  margin-top: 0.6rem; font: 500 0.875rem var(--font); cursor: pointer;
  padding: 0.45rem 0.95rem; border: 0; border-radius: 8px; background: var(--accent); color: var(--bg);
}
form button:not(.vote button):hover { filter: brightness(1.08); }
.say label { margin-top: 0; }
.form { max-width: 34rem; }
.error { color: var(--dry); margin: 0 0 0.5rem; }

/* comment tree: depth is a hairline you can follow */
summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: 0 0.7rem; align-items: baseline; font-size: 0.8125rem; color: var(--muted); width: fit-content; }
summary::-webkit-details-marker { display: none; }
.folded { display: none; padding: 0 0.45rem; border-radius: 999px; background: var(--fill); color: var(--accent); }
.c:not([open]) > summary .folded { display: inline; }
.c { margin-top: 0.85rem; }
/* Only the toggle collapses; the rest of the header ignores clicks so names stay links. */
.c > summary { pointer-events: none; cursor: default; }
.c > summary .tog, .c > summary a { pointer-events: auto; }
.tog { width: 1rem; margin-right: -0.35rem; text-align: center; cursor: pointer; color: var(--muted); border-radius: 4px; }
.tog::before { content: "▾"; }
.c:not([open]) > summary .tog::before { content: "▸"; }
.tog:hover { color: var(--accent); background: var(--fill); }
.c > .prose { margin-top: 0.15rem; }
.c.is-new > .prose { position: relative; }
.c.is-new > .prose::before { content: ""; position: absolute; left: -0.7rem; top: 0.35rem; bottom: 0.35rem; width: 2px; border-radius: 2px; background: var(--accent); }

.acts { display: flex; align-items: center; gap: 0.5rem; min-height: 1.6rem; margin-top: 0.1rem; opacity: 0; transition: opacity 0.12s; }
.acts .vote .w svg { width: 1.2rem; height: 1.2rem; }
.c:has(> summary:hover, > .prose:hover, > .acts:hover, > .acts:focus-within) > .acts,
.acts:has(.voted, details[open]) { opacity: 1; }
.reply { flex: 1; }
.reply > summary { font-weight: 500; padding: 0.1rem 0.3rem; border-radius: 4px; }
.reply > summary:hover { color: var(--accent); }
.reply[open] > summary { color: var(--ink); }
.reply form { margin: 0.4rem 0 0.5rem; }

.kids { margin-left: 0.2rem; padding-left: 1rem; border-left: 1px solid var(--line); transition: border-color 0.12s; }
.kids:not(:has(details)) { display: none; }
.c > summary:hover ~ .kids, .c:has(> .prose:hover) > .kids { border-left-color: var(--accent); }

/* group list */
.gtree { list-style: none; padding: 0; margin: 0; }
.gtree li { padding: 0.55rem 0 0.55rem calc(var(--depth) * 1.1rem); border-top: 1px solid var(--line); }
.gtree li > a, .gtree .g-main > a { font-weight: 500; text-decoration: none; }
.gtree li > a:hover, .gtree .g-main > a:hover { color: var(--accent); }
.gtree p { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.875rem; }
.meta-i { font-size: 0.8125rem; color: var(--muted); margin-left: 0.4rem; }
.gtop li { padding: 0.8rem 0; }
.gtop li > a, .gtop .g-main > a { font-size: 1.0625rem; }
.gtree.gtop .meta-i { margin: 0.25rem 0 0; font-size: 0.8125rem; }

/* footer */
.foot { margin: 3rem 0 -4rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); display: flex; gap: 1rem; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* about */
.about { max-width: 36rem; }
.about h2 { font-size: 1rem; font-weight: 600; margin: 1.75rem 0 0.4rem; }
.about p, .about li { color: var(--ink); }
.about ul { padding-left: 1.1rem; }
.about li { margin: 0.3rem 0; }
.about a { color: var(--accent); text-decoration: none; }
.about a:hover { text-decoration: underline; }
.about .weights { list-style: none; padding: 0; }
.about svg { width: 1.2rem; height: 1.2rem; vertical-align: -0.2rem; }

@media (hover: none) {
  .vote button, .acts { opacity: 1; pointer-events: auto; }
}

@media (max-width: 34rem) {
  .top { padding-top: 1.25rem; }
  .jump { order: 3; flex-basis: 100%; }
  .links { margin-left: auto; }
  .kids { padding-left: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* accounts */
.links .out { margin: 0; }
.links .out button, .acct .linkish {
  margin: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer;
}
.links .out button:hover, .acct .linkish:hover { color: var(--ink); filter: none; }
.notice { color: var(--accent); margin: 0 0 0.5rem; }
.acct { margin-top: 2rem; }
.acct h2 { font-size: 1rem; font-weight: 600; }
.acct .form label:first-of-type { margin-top: 0.5rem; }
.devices { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.devices li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.75rem; padding: 0.55rem 0; border-top: 1px solid var(--line); font-size: 0.875rem; }
.devices form { margin: 0 0 0 auto; }
.code { font: 600 1.375rem/1.3 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; padding: 0.9rem 1rem; margin: 1rem 0; background: var(--fill); border-radius: 10px; width: fit-content; user-select: all; }
.cont { color: var(--accent); font-weight: 500; }
.acct .desc { font-size: 0.875rem; margin-top: 0.25rem; }

/* profiles */
.avatar { width: 4rem; height: 4rem; border-radius: 50%; overflow: hidden; flex: none; background: var(--fill); }
.avatar img, .avatar svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.avatar-lg { width: 6rem; height: 6rem; }
.profile { display: flex; align-items: center; gap: 1.1rem; margin: 0.5rem 0 1rem; }
.profile h1 { margin: 0; }
.profile .desc { margin: 0.2rem 0 0; }
.profile .subs { margin-top: 0.3rem; }
.bio { white-space: pre-line; max-width: 38rem; margin: 0 0 1.25rem; }
.replies .on { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.replies .on a { color: var(--accent); text-decoration: none; }
.replies .ex { display: block; text-decoration: none; margin: 0.15rem 0; }
.replies .ex:hover { color: var(--accent); }
.pic-row { display: flex; gap: 1.1rem; align-items: flex-start; margin-top: 0.5rem; }
.pic-row .form label:first-of-type { margin-top: 0; }
.nsfw { font-size: 0.6875rem; font-weight: 600; color: var(--dry); border: 1px solid currentColor; border-radius: 4px; padding: 0 0.3rem; vertical-align: 0.15em; }
label.check { display: flex; gap: 0.5rem; align-items: baseline; font-weight: 400; }
label.check input { width: auto; flex: none; margin: 0; }

/* moderation */
.stub { margin: 0.4rem 0; padding: 0.45rem 0.7rem; border-left: 2px solid var(--dry); background: var(--fill); color: var(--muted); font-size: 0.875rem; border-radius: 0 6px 6px 0; }
.postacts { display: flex; gap: 0.75rem; margin-top: 0.75rem; font-size: 0.8125rem; }
.postacts > details > summary, .acts .report > summary, .acts .mod > summary { color: var(--muted); }
.modbox { display: grid; gap: 0.6rem; margin-top: 0.5rem; padding: 0.75rem; border: 1px solid var(--line); border-radius: 8px; max-width: 34rem; }
.modbox form { margin: 0; }
.modform fieldset { border: 0; padding: 0; margin: 0.4rem 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.modform legend { font-size: 0.8125rem; color: var(--muted); padding: 0; margin-bottom: 0.3rem; }
.modform fieldset label { display: inline-flex; gap: 0.35rem; align-items: center; font-size: 0.875rem; margin: 0; font-weight: 400; }
.modform input[name="note"] { width: 100%; }
.acts .linkish, .queue-acts .linkish { margin: 0; padding: 0.1rem 0.3rem; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; }
.acts .linkish:hover { color: var(--ink); filter: none; }
.pinned { margin-bottom: 0.5rem; }
.pin-label { margin: 0 0 -0.4rem; font-size: 0.75rem; font-weight: 600; color: var(--accent); }
.queue .m strong { color: var(--dry); font-weight: 600; }
.queue .note { margin: 0.3rem 0; padding-left: 0.7rem; border-left: 2px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.queue .ex { margin: 0.2rem 0; color: var(--muted); }
.queue .item { display: block; }
.queue-acts { opacity: 1; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-start; }
.acts { flex-wrap: wrap; }
.acts > details.mod[open], .queue-acts > details.mod[open] { flex-basis: 100%; order: 9; }
.modform fieldset label { white-space: nowrap; }
.log { list-style: none; padding: 0; margin: 0; }
.log li { display: grid; grid-template-columns: 7rem 1fr; gap: 0.1rem 1rem; padding: 0.6rem 0; border-top: 1px solid var(--line); font-size: 0.875rem; }
.log time { color: var(--muted); }
.log a { color: var(--accent); text-decoration: none; }
.log .why { grid-column: 2; color: var(--muted); }
.profile-mod { margin: 0 0 1.25rem; font-size: 0.875rem; }
@media (max-width: 520px) { .log li { grid-template-columns: 1fr; } .log .why { grid-column: 1; } }

/* Group states */
.gstate { font-size: 0.6875rem; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 0.3rem; vertical-align: 0.1em; }
.head .stub { margin-top: 0.6rem; }
.states { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0.75rem 0 1rem; }
.states dt { font-weight: 600; }
.states dd { margin: 0; color: var(--ink); }
.similar { margin: 0 0 0.25rem; }
.head .archive { margin-top: 0.5rem; font-size: 0.875rem; }
.head .archive label { margin-top: 0; }
.head .archive .hint { margin: 0.3rem 0; }

/* Group settings */
.notes { margin: 0.35rem 0 0; font-size: 0.875rem; color: var(--muted); }
.head .rules { margin-top: 0.4rem; font-size: 0.9375rem; }
.head .rules > summary { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.head .rules[open] > summary { color: var(--ink); }
.head .rules .prose { margin-top: 0.3rem; }
.group-rules { padding: 0.6rem 0.8rem; background: var(--fill); border-radius: 8px; margin-bottom: 0.5rem; }
.group-rules .hint, .group-rules .notes { margin: 0 0 0.2rem; }
.settings-form fieldset { border: 0; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.3rem; }
.settings-form legend { font-weight: 600; padding: 0; margin-bottom: 0.3rem; }
.settings-form fieldset label { margin: 0; }
.settings-form .types { display: flex; gap: 1rem; padding-left: 1.6rem; }
input.short { width: 6rem; }
.team { margin-top: 2rem; }
.team h2 { font-size: 1.0625rem; }
.team ul { list-style: none; padding: 0; margin: 0.5rem 0 1rem; }
.team li { display: flex; gap: 0.5rem; align-items: baseline; padding: 0.3rem 0; border-top: 1px solid var(--line); }
.team li form { margin-left: auto; }
.team .role { font-size: 0.75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 0.3rem; }
.team-add .row { display: flex; gap: 0.5rem; align-items: center; }
.team-add .row input { flex: 1; }
.team-add .row select, .team-add .row button { width: auto; flex: none; margin: 0; }

/* Picture feeds */
.item.card { display: block; }
.card-img { display: block; margin: 0.55rem 0 0.4rem; }
.card-img img { display: block; width: auto; height: auto; max-width: 100%; max-height: 40rem; border-radius: 8px; background: var(--fill); }
.similar a { color: var(--accent); }
@media (max-width: 30rem) { .states { grid-template-columns: 1fr; } .states dd { margin-bottom: 0.4rem; } }

/* Invites */
.invite-new { display: flex; gap: 0.8rem; align-items: center; margin: 0.5rem 0 1.25rem; }
.invite-new button { width: auto; margin: 0; }
.invites { list-style: none; padding: 0; margin: 0; }
.invites li { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; align-items: center; padding: 0.6rem 0; border-top: 1px solid var(--line); font-size: 0.875rem; }
.invites .link { flex: 1 1 100%; font-size: 0.8125rem; }
.invites .status { color: var(--muted); }
.invites form { margin-left: auto; }
.sub-h { font-size: 1rem; font-weight: 600; margin-top: 2rem; }

/* Subscriptions */
.sub-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.9rem; margin: 0.5rem 0 0.4rem; font-size: 0.875rem; }
.sub-row form { margin: 0; }
button.sub { width: auto; margin: 0; padding: 0.25rem 0.8rem; font-size: 0.875rem; }
button.sub.on { background: transparent; color: var(--ink); border: 1px solid var(--line); }
button.sub.on:hover { border-color: var(--muted); }
button.sub.muted { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
button.sub.muted:hover { border-color: var(--muted); color: var(--ink); }
.sub-via { color: var(--muted); }
.tabs { display: flex; gap: 1.25rem; margin: 0.25rem 0 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.tabs a { padding: 0.4rem 0; margin-bottom: -1px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); font-weight: 500; border-bottom-color: var(--accent); }
.front-hint { margin: 0.25rem 0 0; }
.mine { margin: 0 0 1.5rem; } .mine h2 { font-size: 1rem; font-weight: 600; margin: 0 0 0.4rem; } .mine .hint { margin: 0.4rem 0 0; }
.sub-row .meta-i { margin: 0; }

/* unread */
.unread { font-size: 0.6875rem; font-weight: 600; color: var(--accent); border: 1px solid currentColor; border-radius: 4px; padding: 0 0.3rem; vertical-align: 0.15em; }
.unread-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.9rem; margin: 0.5rem 0; font-size: 0.875rem; color: var(--accent); }
.unread-row form { margin: 0; }
.unread-row .linkish { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.2em; cursor: pointer; }
.unread-row .linkish:hover { color: var(--ink); }
.subs .count { font-size: 0.75rem; font-weight: 600; color: var(--muted); }

/* welcome */
.welcome-go { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: 0.6rem; }
.welcome-go .go { padding: 0.45rem 0.9rem; border-radius: 8px; background: var(--accent); color: var(--bg); font-weight: 500; text-decoration: none; }
.welcome-go .go:hover { filter: brightness(1.08); }
.welcome-search { display: flex; align-items: stretch; gap: 0.4rem; flex: 1 1 16rem; margin: 0; }
.welcome-search input { flex: 1; min-width: 0; margin: 0; padding-block: 0.45rem; }
.welcome-search button:not(.vote button) { width: auto; margin: 0; padding-block: 0; }
.welcome-sec { margin-top: 2rem; }
.welcome-sec h2 { font-size: 1rem; font-weight: 600; margin: 0 0 0.5rem; }
.welcome-sec > .subs { margin-top: 0.6rem; }
.wgroups { list-style: none; margin: 0; padding: 0; }
.wgroups li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.wgroups a { font-weight: 500; text-decoration: none; }
.wgroups a:hover { color: var(--accent); }
.wgroups p { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.875rem; }
.wgroups form { margin: 0; flex: none; }

/* subscribe from group lists */
.gtree li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.gtree .g-main { min-width: 0; }
.g-sub { flex: none; margin: 0; font-size: 0.8125rem; }
form.g-sub { display: flex; align-items: center; gap: 0.5rem; }
