:root {
  --bg: #ffffff;
  --ground: #f6f7f9;
  --raise: #f1f3f5;
  --ink: #18181b;
  --dim: #6b7280;
  --faint: #a1a1aa;
  --line: #e5e7eb;
  --line2: #d4d4d8;
  --up: #d97706;
  --down: #db2777;
  --link: #0284c7;
  --linkbg: #e0f2fe;
  --ok: #16a34a;
  --bad: #dc2626;
  --upbg: #fef3c7;
  --downbg: #fce7f3;
  --sel: #eff6ff;
  --scrim: rgba(15, 17, 20, 0.38);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Overpass Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121315;
  --ground: #08090a;
  --raise: #1c1d20;
  --ink: #d4d4d4;
  --dim: #8c8c8c;
  --faint: #5c5c62;
  --line: #26272b;
  --line2: #3a3b40;
  --up: #ffb547;
  --down: #ff4f9a;
  --link: #38c8ff;
  --linkbg: rgba(56, 200, 255, 0.13);
  --ok: #4ade80;
  --bad: #f87171;
  --upbg: rgba(255, 181, 71, 0.13);
  --downbg: rgba(255, 79, 154, 0.13);
  --sel: rgba(56, 200, 255, 0.08);
  --scrim: rgba(0, 0, 0, 0.6);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
  --av-l: 22%;
  --av-d: 72%;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--ground); }
body { margin: 0; min-height: 100vh; background: var(--ground); color: var(--ink); font: 14px/1.5 var(--font); }
body.page { background: var(--bg); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--line2); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.up { color: var(--up); }
.down { color: var(--down); }
[hidden] { display: none !important; }

/* ---------- header ---------- */
header.top { position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; gap: 24px; padding: 0 28px;
  background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.brand { font-size: 16px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.brand .mark { flex: none; }
.brand:hover { text-decoration: none; }
.search { position: relative; flex: 0 1 640px; }
.search .box { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; background: var(--raise); border-radius: 4px; }
.search .box svg { flex: none; color: var(--faint); }
.search input { flex: 1; min-width: 40px; border: 0; background: none; padding: 0; height: 32px; }
.search input:focus, .search input:focus-visible { outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search .box:focus-within { box-shadow: inset 0 0 0 1px var(--line2); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 3px; background: var(--linkbg);
  color: var(--link); font-size: 12px; white-space: nowrap; }
.chip button { color: var(--link); line-height: 1; }
.suggest { position: absolute; top: 40px; left: 0; width: min(440px, 100%); padding: 6px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 6px; box-shadow: var(--shadow); z-index: 30; }
.suggest .row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 4px;
  cursor: pointer; }
.suggest .row.on, .suggest .row:hover { background: var(--sel); }
.suggest .kind { font: 11.5px var(--mono); color: var(--faint); }
.suggest .n { font: 12px var(--mono); color: var(--dim); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.top .right a, .top .right button { color: var(--ink); font-weight: 500; font-size: 13.5px; }
.top .right .dim { color: var(--dim); font-weight: 400; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
img.avatar { display: block; object-fit: cover; background: var(--raise); }

/* ---------- controls ---------- */
.seg { display: inline-flex; background: var(--raise); border-radius: 4px; padding: 2px; }
.seg button { padding: 3px 11px; border-radius: 3px; color: var(--dim); font-size: 12.5px; }
.seg button.on { background: var(--bg); color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-weight: 500; font-size: 13px; white-space: nowrap; }
.btn:hover { border-color: var(--line2); text-decoration: none; }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.flash-ok { border-color: var(--ok); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; background: var(--raise); color: var(--dim);
  font-size: 12px; white-space: nowrap; }
.tag:hover { color: var(--ink); text-decoration: none; }
.tag.on { background: var(--linkbg); color: var(--link); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- toolbar + filters ---------- */
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 18px 28px 0; }
.dd { position: relative; }
.dd > button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg); font-size: 12.5px; }
.dd > button svg { color: var(--dim); }
.dd.active > button { background: var(--linkbg); border-color: transparent; color: var(--link); }
.dd.active > button svg { color: var(--link); }
.pop { position: absolute; top: 34px; left: 0; min-width: 240px; max-height: 360px; overflow: auto; padding: 8px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); z-index: 25; }
.pop input[type=text], .pop input[type=search] { width: 100%; margin-bottom: 6px; background: var(--raise); border-color: transparent; }
.pop label { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.pop label:hover { background: var(--sel); }
.pop label .n { margin-left: auto; font: 12px var(--mono); color: var(--dim); padding-left: 16px; }
.pop label .mono { font-size: 12.5px; }
.pop .range { display: flex; align-items: center; gap: 8px; padding: 4px; }
.pop .range input { width: 64px; text-align: center; font-family: var(--mono); }
.pop .foot { display: flex; justify-content: space-between; padding: 6px 6px 2px; font-size: 12.5px; }
.pop .lab { font-size: 12.5px; color: var(--dim); padding: 4px 6px; }
.count { color: var(--dim); font-size: 12.5px; margin-left: 4px; }
.viewtoggle { margin-left: auto; }
.viewtoggle button { display: grid; place-items: center; width: 30px; height: 24px; padding: 0; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; padding: 18px 28px 48px; }
.card { display: flex; flex-direction: column; min-height: 214px; padding: 16px 16px 0; background: var(--bg); border: 1px solid var(--line);
  border-radius: 6px; cursor: pointer; color: var(--ink); }
.card:hover { border-color: var(--line2); text-decoration: none; }
.card .name { font-size: 17px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .rid { margin-top: 3px; font-size: 12px; }
.card .desc { margin-top: 10px; color: var(--dim); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.card .tags { margin-top: auto; padding-top: 14px; max-height: 36px; overflow: hidden; } /* one full row: extra tags wrap out of sight */
.card .foot { display: flex; align-items: center; gap: 14px; height: 42px; margin-top: 12px; border-top: 1px solid var(--raise); font-size: 12.5px; }
.card .foot .who { margin-left: auto; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* recipe id: L13N7956-1.0 L14N8949+1.0 */
.rid { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); word-spacing: 0.15em; overflow-wrap: anywhere; }
.rid .d.up { color: var(--up); } .rid .d.down { color: var(--down); }
/* layer stands out; a margin (not a space) keeps copied/selected text as L13N7956 */
.rid .ly { font-weight: 700; margin-right: 0.12em; }

.votes { display: inline-flex; align-items: center; gap: 4px; font: 500 12.5px var(--mono); }
.votes button { display: grid; place-items: center; width: 18px; height: 18px; color: var(--faint); border-radius: 3px; }
@media (hover: hover) { .votes button:hover { background: var(--raise); } }
.votes.v1 .n, .votes.v1 .upv { color: var(--up); }
.votes.v-1 .n, .votes.v-1 .downv { color: var(--down); }
.cmt { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font: 12.5px var(--mono); }

/* ---------- list ---------- */
.list { padding: 10px 28px 48px; }
.list table { width: 100%; border-collapse: collapse; }
.list th { text-align: left; font-weight: 400; font-size: 11.5px; color: var(--faint); padding: 6px 12px 8px 0; border-bottom: 1px solid var(--line); }
.list td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--raise); vertical-align: middle; }
.list tr.row { cursor: pointer; }
.list tr.row:hover td { background: var(--sel); }
.list .vcol { width: 56px; text-align: center; }
.list .votes { flex-direction: column; gap: 0; }
.list .nm { font-size: 15px; font-weight: 500; }
.list .nm .who { font-weight: 400; color: var(--dim); font-size: 12.5px; margin-left: 8px; }
.list .ds { color: var(--dim); font-size: 13px; max-width: 460px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .rid { font-size: 12.5px; }
.list .model { font: 12.5px var(--mono); color: var(--dim); white-space: nowrap; }
body.list-mode { background: var(--bg); }

.empty { padding: 60px 28px; color: var(--dim); }

/* ---------- home ---------- */
.hchips { display: flex; gap: 8px; padding: 18px 28px 0; overflow-x: auto; scrollbar-width: none; }
.hchips::-webkit-scrollbar { display: none; }
.hchip { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--bg);
  border: 1px solid var(--line); color: var(--ink); font-size: 13px; }
.hchip:hover { border-color: var(--line2); text-decoration: none; }
.hchip .n { font: 12px var(--mono); color: var(--dim); }
.hsec { margin-top: 22px; }
.hhead { display: flex; align-items: baseline; gap: 14px; padding: 0 28px; }
.hhead h2 { font-size: 17px; font-weight: 600; margin: 0; }
.hhead a { font-size: 13px; }
.hsec .grid { padding-top: 14px; padding-bottom: 24px; }
.home { max-width: 1200px; margin: 0 auto; padding: 36px 28px 60px; }
.home h2, .rec h2 { font-size: 17px; font-weight: 600; margin: 0 0 16px; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 52px; }
.cat { display: block; padding: 16px; border-radius: 6px; background: var(--ground); color: var(--ink); }
.cat:hover { text-decoration: none; background: var(--raise); }
.cat .t { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; font-weight: 600; }
.cat .t .n { font: 400 12.5px var(--mono); color: var(--dim); }
.cat .sub { margin-top: 8px; font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li a { display: grid; grid-template-columns: 28px auto 1fr auto; align-items: baseline; gap: 4px 12px; padding: 13px 0; border-top: 1px solid var(--raise);
  color: var(--ink); }
.rank li a:hover { text-decoration: none; background: var(--sel); }
.rank .i { font: 13px var(--mono); color: var(--faint); }
.rank .t { font-size: 15px; font-weight: 500; }
.rank .rid { font-size: 12px; }
.rank .s { font: 13px var(--mono); color: var(--dim); }
.home .more { display: inline-block; margin-top: 14px; font-size: 13px; }

/* ---------- recipe ---------- */
.rec { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: min-content 1fr; grid-template-areas: "head rail" "body rail"; column-gap: 56px; align-items: start; }
.rec .rhead { grid-area: head; }
.rec .rbody { grid-area: body; }
.rec .rail { grid-area: rail; }
.rec .crumb { font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.rec .crumb a { color: var(--dim); }
.rec h1 { margin: 0; font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.rec .idrow { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.rec .idline { font-size: 17px; }
.cbtn { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 4px; color: var(--dim); }
@media (hover: hover) { .cbtn:hover { background: var(--raise); color: var(--ink); } }
.cbtn.done { color: var(--ok); }
.rec .meta { margin-top: 10px; color: var(--dim); font-size: 13px; }
.rec .meta a { color: var(--dim); }
.rec .desc { margin: 22px 0 12px; font-size: 15.5px; line-height: 1.6; white-space: pre-wrap; }
.rec section { margin-top: 40px; }
.rec .sechead { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.rec .sechead h2 { margin: 0; }
.rec .sechead .seg { margin-left: auto; }
.ex { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--raise); }
.ex .p { color: var(--dim); font-size: 13px; margin-bottom: 6px; white-space: pre-wrap; }
.ex .o { font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.ex .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; } /* minmax(0): code blocks scroll inside their column instead of widening it */
.ex .pair pre, .ex .single pre { max-width: 100%; overflow-x: auto; }
.rec .rbody { min-width: 0; }
.ex .lab { font: 11.5px var(--mono); margin-bottom: 4px; }
.ex .lab.s { color: var(--up); } .ex .lab.b { color: var(--faint); }
.ex .b-o { color: var(--dim); }
.ex .gen { margin-top: 6px; font: 11.5px var(--mono); color: var(--faint); }
.rail { font-size: 13.5px; }
.rail .vote, .mobacts .vote { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 4px; border-radius: 18px; background: var(--raise); }
.rail .vote button, .mobacts .vote button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 4px; color: var(--faint); }
@media (hover: hover) { .rail .vote button:hover, .mobacts .vote button:hover { background: var(--bg); } }
.rail .vote .n, .mobacts .vote .n { font: 500 15px var(--mono); min-width: 2ch; text-align: center; }
.rail .vote.v1 .n, .rail .vote.v1 .upv, .mobacts .vote.v1 .n, .mobacts .vote.v1 .upv { color: var(--up); }
.rail .vote.v-1 .n, .rail .vote.v-1 .downv, .mobacts .vote.v-1 .n, .mobacts .vote.v-1 .downv { color: var(--down); }
.rail .copies { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.rail .copies .btn { padding: 0 12px 0 10px; }
.ibtn { gap: 7px; color: var(--ink); }
.ibtn svg { color: var(--dim); flex: none; }
.ibtn.flash-ok svg { color: var(--ok); }
.rail .blk { margin-top: 26px; }
.rail .lab { font-size: 11.5px; color: var(--faint); margin-bottom: 6px; }
.rail .nrow { display: flex; align-items: center; gap: 4px; padding: 1px 0; font-size: 14px; }
.rail .nrow .in { margin-left: auto; }
.rail .nrow .in { font-size: 12px; color: var(--dim); font-family: var(--font); }
.rail .alias { display: flex; justify-content: space-between; padding: 3px 0; }
.rail .alias .s { font: 12.5px var(--mono); color: var(--dim); }
.rail .rel { display: block; padding: 5px 0; color: var(--ink); }
.rail .rel:hover { text-decoration: none; }
.rail .rel:hover .t { color: var(--link); }
.rail .rel .rid { font-size: 11.5px; display: block; }
.rail pre { margin: 0; padding: 10px; background: var(--raise); border-radius: 4px; font: 12px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.rail .notes { white-space: pre-wrap; color: var(--ink); }

/* comments */
.cbox { display: flex; gap: 8px; margin-bottom: 6px; }
.cbox textarea { flex: 1; min-height: 38px; height: 38px; resize: vertical; }
.cbox textarea:focus { height: 76px; }
.cmts { list-style: none; margin: 0; padding: 0; }
.cmts li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; margin-bottom: 18px; }
.cmts li .avatar { width: 26px; height: 26px; font-size: 12px; }
.cmts .h { font-size: 13px; }
.cmts .h b { font-weight: 500; }
.cmts .h span { color: var(--faint); font-size: 12px; margin-left: 6px; }
.cmts .b { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.cmts .act { margin-top: 4px; display: flex; gap: 14px; font-size: 12px; color: var(--dim); }
.cmts .act button { color: var(--dim); }
.cmts .act button:hover { color: var(--ink); }
.cmts ul { list-style: none; padding: 12px 0 0; margin: 0; }

/* page vs modal */
.pagewrap { max-width: 1240px; margin: 0 auto; padding: 32px 28px 80px; background: var(--bg); }
.modal { position: fixed; inset: 0; z-index: 40; display: flex; justify-content: center; align-items: flex-start; padding: 40px 24px; background: var(--scrim);
  overflow-y: auto; }
.modal .sheet { position: relative; width: min(1100px, 100%); padding: 36px 40px 40px; background: var(--bg); border-radius: 8px; box-shadow: var(--shadow); }
.modal .x { position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; font-size: 22px; color: var(--dim); border-radius: 4px; }
.modal .x:hover { background: var(--raise); color: var(--ink); }
.modal .rec h1 { font-size: 34px; }
body.modal-open { overflow: hidden; }

/* ---------- submit ---------- */
.submit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; max-width: 1180px; margin: 0 auto; padding: 24px 28px 80px; }
.submit .panel { min-width: 0; padding: 28px 32px 32px; background: var(--bg); border-radius: 8px; }
.submit h1 { margin: 0 0 18px; font-size: 22px; font-weight: 600; }
.submit h2 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.submit h2 .faint { font-weight: 400; font-size: 12.5px; margin-left: 8px; }
.f { display: block; margin-bottom: 18px; }
.f > span { display: block; font-size: 12px; color: var(--dim); margin-bottom: 6px; }
.f input, .f textarea, .f select { width: 100%; }
.f textarea { min-height: 70px; resize: vertical; }
.f .err, .err { color: var(--bad); font-size: 12px; margin-top: 4px; }
.f.bad input, .f.bad textarea { border-color: var(--bad); }
.drop { display: flex; align-items: center; justify-content: center; height: 44px; margin-bottom: 22px; border-radius: 4px; background: var(--ground); color: var(--dim);
  font-size: 13px; cursor: pointer; }
.drop.over { background: var(--sel); color: var(--link); }
.nrows .nr { display: grid; grid-template-columns: minmax(0, 80px) minmax(0, 110px) minmax(0, 96px) 24px; gap: 8px; margin-bottom: 8px; align-items: center; }
.nrows input { width: 100%; min-width: 0; }
.nrows input { font-family: var(--mono); }
.nrows .x { color: var(--faint); font-size: 16px; }
.nrows .x:hover { color: var(--ink); }
.addlink { color: var(--link); font-size: 13px; }
.tagin { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 36px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg);
  position: relative; }
.tagin input { flex: 1; min-width: 80px; border: 0; padding: 3px 2px; }
.tagin .tag button { margin-left: 6px; color: var(--faint); }
.tagin .suggest { top: 40px; width: 240px; }
.exs .exf { padding-bottom: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--raise); }
.exs .exf .h { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-bottom: 8px; }
.exs textarea.o { min-height: 96px; }
.pub { display: flex; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.pub .dim { font-size: 12.5px; }
.preview { margin-top: 18px; }

/* submit: header button on desktop, floating button on phones */
.top .right a.submitbtn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px; border-radius: 15px;
  background: var(--link); color: #fff; font-weight: 600; }
:root[data-theme="dark"] .top .right a.submitbtn { color: #06151c; }
.top .right a.submitbtn:hover { text-decoration: none; filter: brightness(1.08); }
.fab { display: none; position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 30; height: 48px; padding: 0 20px 0 16px;
  align-items: center; gap: 8px; border-radius: 24px; background: var(--link); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 6px 16px -4px oklch(0 0 0 / 0.3), 0 2px 4px oklch(0 0 0 / 0.12); }
:root[data-theme="dark"] .fab { color: #06151c; }
.fab:hover { text-decoration: none; }
body.modal-open .fab { display: none !important; }

/* filter toggle (phones only) */
.ficon { display: none; position: relative; width: 34px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg); color: var(--ink); }
.ficon.active { background: var(--linkbg); border-color: transparent; color: var(--link); }
.ficon .badge { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--link);
  color: #fff; font: 600 10px/16px var(--font); text-align: center; }

.xbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 42px; margin: 4px 0 12px;
  border-radius: 21px; background: #000; color: #fff; font-weight: 600; font-size: 14.5px; }
.xbtn:hover { background: #222; }
:root[data-theme="dark"] .xbtn { background: #fff; color: #000; }
:root[data-theme="dark"] .xbtn:hover { background: #e6e6e6; }

/* menus, inline actions */
.menu-i { display: block; width: 100%; text-align: left; padding: 6px; border-radius: 4px; color: var(--ink); font-size: 13.5px; }
.menu-i:hover { background: var(--sel); text-decoration: none; }
.ractions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sbtn { height: 30px; gap: 6px; padding: 0 12px 0 10px; font-size: 13px; }
.sbtn svg { color: var(--dim); }
.sbtn.danger { color: var(--bad); }
.sbtn.danger svg { color: var(--bad); }
.sbtn.danger:hover { border-color: var(--bad); }
.sbtn.quiet { border-color: transparent; color: var(--dim); padding-left: 6px; }
.sbtn.quiet:hover { color: var(--ink); border-color: var(--line); }
.signin-pop .lab b { font-weight: 500; }

/* small screens */
@media (max-width: 900px) {
  .rec { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "head" "body" "rail"; }
  .rec .rail { margin-top: 24px; }
  .cols { grid-template-columns: 1fr; }
  .submit { grid-template-columns: 1fr; }
  .list .hide-s { display: none; }
}
@media (max-width: 640px) {
  header.top { gap: 12px; padding: 0 14px; }
  .search { flex: 1; min-width: 0; }
  .top .right { gap: 12px; }
  .top .right .hide-s { display: none; }
  .toolbar, .grid, .list, .hchips, .hhead { padding-left: 14px; padding-right: 14px; }
  .ficon { display: grid; }
  .top .right a.submitbtn { display: none; }
  .toolbar .dd { display: none; }
  .toolbar.open .dd { display: block; }
  .toolbar .count { order: 10; flex-basis: 100%; margin: 2px 0 0; }
  .fab { display: inline-flex; }
  body.page-submit .fab { display: none; }
  /* bottom sheet: opens at 2/3 height, scrolls up to fill the screen */
  .modal { padding: 33vh 0 0; padding-top: 33svh; overscroll-behavior: contain; }
  .modal .sheet { border-radius: 24px 24px 0 0; padding: 36px 18px 40px; min-height: 100%; }
  /* grab handle: shows the sheet slides up */
  .modal .sheet::before { content: ""; position: absolute; top: 13px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--faint); opacity: .6; }
  .rec h1 { font-size: 30px; }
  .ex .pair { grid-template-columns: 1fr; gap: 12px; }
  .pagewrap { padding: 20px 16px 60px; }
  .submit { padding: 12px 10px 90px; }
  .submit .panel { padding: 22px 16px; }
  .home { padding: 24px 16px 48px; }
}
.menu-i.danger { color: var(--bad); }
.hidbanner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding: 10px 14px;
  border-radius: 6px; background: var(--downbg); color: var(--down); font-size: 13.5px; font-weight: 500; }
button { -webkit-tap-highlight-color: transparent; }
.nhead { padding: 28px 28px 0; }
.nhead h1 { margin: 0; font-size: 30px; font-weight: 500; }
.nhead .meta { margin-top: 8px; color: var(--dim); font-size: 13.5px; }
@media (max-width: 640px) { .nhead { padding: 20px 14px 0; } }
.mod h1 { font-size: 26px; margin: 0 0 18px; }
.mod h2 { font-size: 16px; margin: 28px 0 10px; }
.mlist { list-style: none; margin: 0; padding: 0; }
.mlist li { padding: 12px 0; border-top: 1px solid var(--raise); }
.mhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 6px; }
.mhead .sbtn { margin-left: auto; }
.mtext { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mmeta { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 12.5px; color: var(--dim); }
.tag.danger { background: var(--downbg); color: var(--down); }
.top .right a.iconlink { display: inline-grid; place-items: center; color: var(--dim); }
.top .right a.iconlink:hover { color: var(--ink); }
.about { max-width: 760px; font-size: 15px; line-height: 1.65; }
.about h1 { font-size: 32px; margin: 0 0 12px; }
.about h2 { font-size: 18px; margin: 36px 0 8px; }
.about .lead { font-size: 17px; }
.about code, .about pre { font-family: var(--mono); font-size: 13.5px; }
.about pre { padding: 12px 14px; background: var(--raise); border-radius: 6px; overflow-x: auto; }
.about ul { padding-left: 20px; }
.about li { margin: 6px 0; }
.about .rid { font-size: 14px; }
.about .shot img { display: block; width: 100%; border-radius: 6px; border: 1px solid var(--line); margin: 6px 0 10px; }
.about dl.qa dt { font-weight: 600; margin-top: 18px; }
.about dl.qa dd { margin: 4px 0 0; }
.about ul.reading { list-style: none; padding: 0; }
.modnote { margin: 0 0 20px; font-size: 11.5px; color: var(--faint); }
.modnote a { color: var(--faint); text-decoration: underline; text-decoration-color: var(--line2); }
.modnote a:hover { color: var(--dim); }
.rail .notes a { overflow-wrap: anywhere; }
/* header icons: same box, centered, no baseline offset */
#theme, .top .right a.iconlink, #mebtn { display: inline-grid; place-items: center; width: 28px; height: 28px; }
#theme svg, .top .right a.iconlink svg { display: block; width: 17px; height: 17px; }
#me { display: inline-flex; align-items: center; }
.tag.warn { background: var(--upbg); color: var(--up); }
.agents .cblock { margin: 8px 0 4px; border-radius: 6px; background: var(--raise); }
.agents .cbhead { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 0 12px; font-size: 12px; color: var(--dim); }
.agents .cblock pre { margin: 0; padding: 6px 12px 12px; background: none; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; }
.agents .tokform { display: flex; gap: 8px; margin: 10px 0; }
.agents .tokform input { flex: 1; }
.agents .toklist { list-style: none; padding: 0; }
.agents .toklist li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--raise); font-size: 14px; }
.agents .toklist li .sbtn { margin-left: auto; }
.agents .newtok { padding: 12px 14px; border-radius: 6px; background: var(--upbg); margin: 10px 0; }
.agents .newtok code { font-size: 13px; overflow-wrap: anywhere; }
/* rows of input + button share a height */
.agents .tokform input, .agents .tokform .btn { height: 36px; }
.agents .tokform .btn { padding: 0 16px; }
.cbox .btn { height: 38px; align-self: flex-start; }
/* account menu spacing */
.me-pop { padding: 12px 8px 8px; }
.me-pop .lab:first-child { padding: 2px 8px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--raise); }
.me-pop .menu-i { padding: 9px 8px; }
.me-pop .lab:last-child { padding: 8px 8px 2px; }

/* ======================================================================= polish (make-interfaces-feel-better) */
:root {
  /* a flat 1px ring, no lift: repeated cards stay quiet outlines (deslop), drawn with box-shadow so it adapts */
  --shadow-border: 0 0 0 1px oklch(0 0 0 / 0.09);
  --shadow-border-hover: 0 0 0 1px oklch(0 0 0 / 0.16);
  --shadow-pop: 0 0 0 1px oklch(0 0 0 / 0.07), 0 8px 24px -4px oklch(0 0 0 / 0.14), 0 2px 6px oklch(0 0 0 / 0.06);
  --img-outline: oklch(0 0 0 / 0.1);
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
:root[data-theme="dark"] {
  --shadow-border: 0 0 0 1px oklch(1 0 0 / 0.08);
  --shadow-border-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
  --shadow-pop: 0 0 0 1px oklch(1 0 0 / 0.1), 0 12px 32px -4px oklch(0 0 0 / 0.7);
  --img-outline: oklch(1 0 0 / 0.1);
}

/* typography */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, .card .name, .list .nm { text-wrap: balance; }
p, .desc, .card .desc, .ex .o, .ex .p, .cmts .b, .mtext, .about dd, .about li, .lead { text-wrap: pretty; }
.count, .cmt, .votes .n, .rail .vote .n, .ficon .badge, .hchip .n, .pop label .n, .suggest .n { font-variant-numeric: tabular-nums; }

/* header: never wrap; the search box gives way first */
header.top .right { flex: none; }
header.top .right > *, .top .right a.submitbtn { white-space: nowrap; flex: none; }
.search { min-width: 120px; }
@media (max-width: 900px) { .top .right a.submitbtn span.long { display: none; } }

/* shadows for depth, borders for structure */
.card { border: 0; box-shadow: var(--shadow-border); transition: box-shadow 150ms ease-out; }
.card:hover { box-shadow: var(--shadow-border-hover); }
.btn { border: 0; box-shadow: var(--shadow-border); transition-property: box-shadow, scale, background-color; transition-duration: 150ms; transition-timing-function: ease-out; }
.btn:hover { box-shadow: var(--shadow-border-hover); }
.btn.primary { box-shadow: none; }
.btn.flash-ok { box-shadow: 0 0 0 1px var(--ok); }
.sbtn.danger { box-shadow: 0 0 0 1px color-mix(in oklch, var(--bad) 35%, transparent); }
.sbtn.danger:hover { box-shadow: 0 0 0 1px var(--bad); }
.sbtn.quiet { box-shadow: none; }
.sbtn.quiet:hover { box-shadow: var(--shadow-border); }
.dd > button, .ficon, .hchip { border: 0; box-shadow: var(--shadow-border); transition: box-shadow 150ms ease-out; }
.dd > button:hover, .ficon:hover, .hchip:hover { box-shadow: var(--shadow-border-hover); }
.dd.active > button, .ficon.active { box-shadow: none; }
.pop, .suggest { border: 0; box-shadow: var(--shadow-pop); }

/* concentric radii: outer = inner + padding */
.pop { padding: 6px; border-radius: 10px; }                 /* rows 4px + 6px */
.pop label, .suggest .row, .menu-i { border-radius: 4px; }
.suggest { padding: 6px; border-radius: 10px; }
.seg { border-radius: 5px; }                                  /* buttons 3px + 2px */
.modal .sheet { border-radius: 12px; }
.me-pop { border-radius: 12px; }                              /* items 4px + 8px */

/* images: neutral inset outline */
img.avatar, .about .shot img { outline: 1px solid var(--img-outline); outline-offset: -1px; }
.about .shot img { border: 0; }

/* press feedback (not on vote arrows: too frequent) */
.btn:active, .xbtn:active, .fab:active, .submitbtn:active, .cbtn:active, .seg button:active { scale: 0.96; }
.xbtn, .fab, .top .right a.submitbtn, .cbtn { transition-property: scale, background-color, color, filter; transition-duration: 150ms; transition-timing-function: ease-out; }

/* hit areas: at least 40px, never overlapping */
.votes button, .cbtn, #theme, .top .right a.iconlink, #mebtn, .modal .x, .tagin .tag button, .chip button { position: relative; }
.votes button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 40px; translate: -50% -50%; }
.cbtn::after, #theme::after, .top .right a.iconlink::after, #mebtn::after, .modal .x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; translate: -50% -50%; }
.tagin .tag button::after, .chip button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; translate: -50% -50%; }

/* optical alignment: icon side 2px tighter */
.fab { padding: 0 20px 0 18px; }

/* motion: quick, interruptible enters; nothing on page load */
.modal { transition: opacity 150ms ease-out; }
.modal .sheet { transition: opacity 150ms var(--ease), translate 150ms var(--ease); }
/* account / sign-in popovers only: filter dropdowns re-render on every change and must not re-animate */
.signin-pop, .me-pop, .suggest { transition: opacity 120ms ease-out, translate 120ms ease-out; }
@starting-style {
  .modal { opacity: 0; }
  .modal .sheet { opacity: 0; translate: 0 8px; }
  .signin-pop, .me-pop, .suggest:not([hidden]) { opacity: 0; translate: 0 -4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; }
}
.signnote { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 20px; padding: 10px 12px 10px 14px;
  border-radius: 6px; background: var(--sel); color: var(--ink); font-size: 13.5px; text-wrap: pretty; }
/* markdown in example outputs */
.ex .o.md { white-space: normal; }
.ex .o.md > :first-child { margin-top: 0; }
.ex .o.md > :last-child { margin-bottom: 0; }
.ex .o.md p, .ex .o.md ul, .ex .o.md ol, .ex .o.md blockquote, .ex .o.md pre { margin: 0 0 0.7em; }
.ex .o.md ul, .ex .o.md ol { padding-left: 1.4em; }
.ex .o.md li { margin: 0.15em 0; }
.ex .o.md .mdh { display: block; font-weight: 600; }
.ex .o.md code { font: 0.92em var(--mono); background: var(--raise); padding: 0.05em 0.3em; border-radius: 3px; }
.ex .o.md pre { padding: 10px 12px; background: var(--raise); border-radius: 6px; overflow-x: auto; white-space: pre; }
.ex .o.md pre code { background: none; padding: 0; }
.ex .o.md blockquote { padding-left: 12px; box-shadow: inset 2px 0 0 var(--line2); color: var(--dim); }

/* early/late-layer warning: yellow info mark; on cards it sits in the top right corner */
:root { --warn: #eab308; } :root[data-theme="dark"] { --warn: #facc15; }
.edges { display: inline-flex; gap: 2px; vertical-align: middle; margin-left: 6px; }
.edge { display: inline-flex; color: var(--warn); cursor: help; }
.edge svg { display: block; }
.card { position: relative; }
.card > .edges { position: absolute; top: 12px; right: 12px; margin: 0; }
.card > .edges .edge { padding: 4px 2px; }
.card:has(> .edges) .name { padding-right: 40px; }
.tip { position: fixed; z-index: 80; max-width: 280px; padding: 7px 10px; border-radius: 4px; background: var(--ink); color: var(--bg);
  font: 12px/1.45 var(--font); pointer-events: none; box-shadow: var(--shadow); }
@media (max-width: 640px) { .modal .sheet { border-radius: 24px 24px 0 0; } }
/* no Android tap flash on cards and rows (it fired when tapping the vote buttons inside); own press state instead,
   skipped when the press is on a control inside the card */
.card, .list tr.row { -webkit-tap-highlight-color: transparent; }
.card:active:not(:has(button:active, .edge:active)) { background: var(--raise); }
html:has(body.modal-open) { overscroll-behavior-y: none; } /* no pull-to-refresh while a sheet is open */
/* narrow phones (foldable covers, small iPhones): the search box gives way first, then the wordmark goes to the mark */
.search, .search .box, #q { min-width: 0; }
@media (max-width: 400px) {
  header.top { gap: 10px; }
  .top .right { gap: 10px; }
  .brand { font-size: 0; gap: 0; }
  .brand .mark { width: 22px; height: 20px; }
}

/* submit page: import button, quota line, batch import list, publish confirmation */
.subhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.importbtn { cursor: pointer; }
.importnote { font-size: 12px; margin: -6px 0 14px; }
.quota { font-size: 12.5px; margin-top: 10px; }
.batch .blist { margin: 16px 0 20px; padding-left: 22px; display: grid; gap: 6px; font-size: 13.5px; }
.batch .blist li { display: flex; gap: 12px; justify-content: space-between; }
.batch .bs { font-size: 12.5px; text-align: right; }
.okflash { position: fixed; bottom: 16px; left: 50%; translate: -50% 0; z-index: 60; padding: 8px 14px; border-radius: 4px;
  background: var(--ink); color: var(--bg); font-size: 13px; box-shadow: var(--shadow); }

/* combinations: ingredients line, dose-units hint, duplicate warning */
.rec .combo { margin-top: 8px; font-size: 13.5px; }
.rec .combo a { font-weight: 500; }
.unitq { margin-left: 4px; color: var(--faint); text-decoration: underline dotted; cursor: help; text-transform: none; }
.dupe { margin: 10px 0 0; padding-left: 8px; border-left: 3px solid var(--warn); font-size: 12.5px; color: var(--ink); }
.dupe:empty { display: none; }

/* reproductions, dose curve, drafts, featured row, trusted publishers */
.repro { color: var(--ok, #16a34a); display: inline-flex; align-items: center; gap: 3px; }
:root[data-theme="dark"] .repro { color: #4ade80; }
.foot .cmt.repro svg { margin-right: 1px; }
.repro-item { padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.repro-item .rh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 6px; }
.repro-item .rh svg { color: #16a34a; }
.repro-item .rnote { font-family: var(--mono); font-size: 12px; }
/* note (the reproducer's words) in body text; the run itself in an inset box: prompt, then output */
.repro-item .rnotes { font-size: 14px; line-height: 1.55; margin: 2px 0 10px; }
.repro-item .rrun { padding: 12px 14px; border-radius: 6px; background: var(--raise); }
.repro-item .rlab { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); margin-bottom: 3px; }
.repro-item .rprompt { font-size: 13.5px; margin-bottom: 10px; }
.repro-item .rrun .o { font-size: 14px; }
.repro-item.hiddenc { opacity: .5; }
.linkbtn { font-size: 12px; text-decoration: underline; }
.rform { margin-top: 12px; display: grid; gap: 8px; }
[data-repros] > .btn { margin-top: 12px; }
.curve { width: 100%; max-width: 260px; height: auto; display: block; }
.curve .ax { stroke: var(--line2, var(--line)); stroke-width: 1; }
.curve .ln { fill: none; stroke: var(--up); stroke-width: 2; }
.curve .pt { fill: var(--up); }
.curve text { font: 9.5px var(--mono); fill: var(--dim); }
.curvelab { font-size: 12px; margin-top: 2px; }
.draftbadge { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 3px; font-size: 11px; font-weight: 500; vertical-align: 2px;
  background: var(--raise); color: var(--dim); border: 1px dashed var(--line2, var(--line)); }
.feathead { margin: 0; padding: 18px 28px 0; }
.feathead h2 { font-size: 15px; }
.grid.featured { padding-bottom: 14px; }
.feathead + .grid { padding-top: 10px; }
.who.trusted, a.trusted, .card .foot .who.trusted, .list .nm .who.trusted { color: #7c3aed; font-weight: 500; }
:root[data-theme="dark"] .who.trusted, :root[data-theme="dark"] a.trusted, :root[data-theme="dark"] .card .foot .who.trusted, :root[data-theme="dark"] .list .nm .who.trusted { color: #c4b5fd; }
.tagmerge { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 12px; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.chk { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: 0 0 12px; }
.small { font-size: 12px; }
@media (max-width: 640px) { .feathead { padding: 14px 14px 0; } }

/* cards are articles with a stretched link (no buttons inside a link); list rows link by name */
.card { position: relative; }
.card .name { margin: 0; font-size: 17px; }
.card .cardlink { color: inherit; text-decoration: none; }
.card .cardlink::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .cardlink:focus-visible { outline: none; }
.card:has(.cardlink:focus-visible) { box-shadow: 0 0 0 2px var(--accent, #0284c7); }
.card .votes, .card .tag { position: relative; z-index: 1; }
.card > .edges { z-index: 1; } /* stays absolute in the top right corner (set above) */
.list .rowlink { color: inherit; text-decoration: none; }
.list .rowlink:hover { text-decoration: underline; }
/* recipe sheet: on phones the vote and exports sit under the title; examples come before the side panel */
.mobacts { display: none; }
@media (max-width: 900px) {
  .mobacts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
  .mobacts .copies { display: flex; gap: 6px; flex-wrap: wrap; }
  .rail .railacts { display: none; }
  .rec .rail { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
}
.combonote { font-size: 12px; margin-top: 4px; }
.pastehint { font-size: 12px; min-height: 16px; margin: 4px 0 8px; }
.rres { display: inline-flex; align-items: center; gap: 3px; font-weight: 500; }
.rres.yes { color: #16a34a; } .rres.partial { color: var(--warn); } .rres.no { color: var(--bad); }
:root[data-theme="dark"] .rres.yes { color: #4ade80; }
.rform .seg { align-self: start; }
.sheet:focus { outline: none; }
.o.md p, .o.md li { white-space: pre-wrap; }

/* the dice shows at every width (the filter toggle next to it is phone-only) */
.ficon.dice { display: grid; }

/* "search outputs" toggle in the toolbar */
.extoggle { height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.extoggle:hover { color: var(--ink); }
.extoggle.on { background: var(--linkbg); border-color: transparent; color: var(--link); }

/* profile page */
.uhead { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 28px 28px 8px; }
.uhead .avatar.big { width: 72px; height: 72px; border-radius: 50%; font-size: 28px; }
.uhead h1 { margin: 0; font-size: 28px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ulinks { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; }
.ubadge { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 10px; background: var(--raise); color: #7c3aed; }
:root[data-theme="dark"] .ubadge { color: #c4b5fd; }
.ustats { display: flex; gap: 22px; }
.ustat { display: flex; flex-direction: column; align-items: flex-end; }
.ustat b { font: 600 22px var(--mono); }
.ustat span { font-size: 12px; color: var(--dim); }
a.who { text-decoration: none; }
a.who:hover { text-decoration: underline; }
.card a.who { position: relative; z-index: 1; }
.cauthor { color: inherit; text-decoration: none; }
@media (max-width: 720px) {
  .uhead { grid-template-columns: auto 1fr; padding: 20px 14px 4px; }
  .ustats { grid-column: 1 / -1; justify-content: space-between; }
  .ustat { align-items: flex-start; }
}

.rprow { display: flex; gap: 6px; }
.rprow input { flex: 1; min-width: 0; }

/* long recipes: neurons never split across lines; cards show the first few */
.rid .nk { white-space: nowrap; }
.rid .nmore { font-family: var(--font); font-size: 12px; color: var(--dim); white-space: nowrap; }
[data-unfold] { margin-top: 4px; }

/* reproduction tally: ✓ worked, ◐ partly, ✗ didn't */
.rtally { display: inline-flex; gap: 8px; align-items: center; }
.rtally .rres { display: inline-flex; align-items: center; gap: 3px; font: 500 12.5px var(--mono); }
.rec .meta .rtally .rres { font-family: var(--font); font-weight: 400; }

/* flagged username: dot on the avatar, notice + picker in the account menu */
#mebtn { position: relative; }
.medot { position: absolute; top: -1px; right: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px var(--bg); }
.namenote { font-size: 12.5px; line-height: 1.45; padding: 10px; margin-bottom: 8px; border-radius: 6px; background: var(--raise); max-width: 260px; }
.namerow { display: flex; gap: 6px; margin-top: 8px; }
.namerow input { flex: 1; min-width: 0; }

/* about: support line */
.about .eth { font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.about .eth code { font-size: 12px; overflow-wrap: anywhere; }
.about .ethbox { font-size: 13px; }
.about .ethbox p { margin: 3px 0; }
.about .ethnote { font-size: 12px; font-style: italic; opacity: .7; }
