/* Requests (/request): layered on app.css. Tokens only. Board (C) and list (A) share the header,
   the cards' parts and the request sheet. */
body.rq { background: var(--z-main); }
.rq-who { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.rq-who .pname-wrap b { font-weight: 700; }
.tseg .tbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rq .avatar.sm { width: 32px; height: 32px; font-size: 0.78rem; }
.av-me { background: var(--p-teal); }
.av-owner { background: var(--accent); }
.rq-gate-msg { margin: 0; color: var(--muted); }

/* Segmented controls: the view (board or list), whose requests, the list filter */
.seg { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; box-shadow: var(--shadow); flex: none; }
.seg button { font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--muted); background: transparent; border: 0; border-radius: 7px; padding: 4px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; }
.seg button .cnt { margin-left: 2px; font-family: var(--font-mono); font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--ink-fg); }
.seg button[aria-pressed="true"] .cnt { color: inherit; opacity: 0.8; }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.seg-ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Status chips */
.rs { --sc: var(--call); display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; line-height: 1.5; color: var(--sc); background: color-mix(in srgb, var(--sc) 12%, var(--surface)); border-radius: 999px; padding: 2px 10px; white-space: nowrap; flex: none; }
.rs::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sc); flex: none; }
.rs.s-sub { --sc: var(--call); }
.rs.s-prog { --sc: var(--accent); }
.rs.s-check { --sc: var(--taste); }
.rs.s-chg { --sc: var(--attn); }
.rs.s-done { --sc: var(--ok); }
.rs.lg { font-size: 0.85rem; padding: 4px 12px; }

/* A late comment, folded into the next version */
.late { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--accent) 60%, var(--line)); border-radius: 999px; padding: 1px 10px; white-space: nowrap; }
.late svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* New request form (inline in the list, in a dialog on the board) */
.rq-new { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.rq-new input[type="text"]:first-of-type { font-weight: 600; }
.rq-new.saving { cursor: progress; }
.tile > .pchip { align-self: flex-start; }  /* the chip above a card title, not stretched */
.rq-new textarea { min-height: 64px; }
.rq-new.dropping, .sh-bar.dropping { outline: 3px dashed var(--accent); outline-offset: -3px; }
/* The heading line: the product picker, large, with its mark; in the list it is also the one-line composer. */
.rq-new { position: relative; }
.rq-line { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; color: var(--fg); }
.rq-line.toggles { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px 6px 6px 14px; min-height: 52px; cursor: pointer; }
.rq-line.toggles:hover { border-color: var(--accent); }
.rq-line.toggles.open { border: 0; box-shadow: none; padding: 0; min-height: 44px; background: none; }
.rq-product { appearance: none; -webkit-appearance: none; flex: 0 1 auto; min-width: 0; max-width: 100%; font: inherit; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; color: var(--fg); background: transparent; border: 0; border-radius: 8px; padding: 6px 30px 6px 6px; cursor: pointer; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.rq-product:hover { background-color: var(--sunken); }
.rq-product:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.rq-product option { font-size: 1rem; font-weight: 400; color: var(--fg); background: var(--surface); }
.rq-bar { flex: 1 1 auto; display: flex; align-items: center; justify-content: flex-end; min-width: 44px; min-height: 44px; align-self: stretch; font: inherit; color: var(--accent); background: none; border: 0; border-radius: 8px; padding: 0 10px; cursor: pointer; }
.rq-bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.rq-bar .ic { width: 22px; height: 22px; transition: transform 0.15s ease-out; }
.rq-bar.open .ic { transform: rotate(45deg); }
.compose-dlg .mtitle .rq-line { margin-left: -6px; }
.compose-dlg .mtitle .rq-product { font-size: 1.5rem; }
.rq-foot { display: flex; align-items: center; gap: 10px; }
.rq-foot .send { margin-left: auto; min-width: 110px; }
.rq-foot .overdict { flex: 1 1 auto; }
.addpic { color: var(--muted); }
.addpic-wrap { display: inline-flex; }
.modal .rq-new { box-shadow: none; border: 0; padding: 0; }
.modal .rq-new textarea { min-height: 120px; }

/* Pictures */
.shot { position: relative; display: block; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 10px; background: var(--sunken); overflow: hidden; padding: 0; cursor: zoom-in; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot:hover { border-color: var(--accent); }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* Proposal parts */
.prop-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--accent); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; max-width: 100%; align-self: flex-start; }
.prop-link:hover { border-color: var(--accent); }
.prop-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.prop-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.byline { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); min-width: 0; }
.byline .bird { width: 24px; height: 24px; }
.byline .avatar.sm { width: 24px; height: 24px; font-size: 0.66rem; }
.byline b { color: var(--fg); font-weight: 600; }
.rq-from { margin: 0; font-size: 0.82rem; font-weight: 600; color: var(--muted); }

/* Looks right / Not quite */
.cbar { display: flex; flex-direction: column; gap: 10px; }
.cbtns { display: flex; gap: 10px; }
.cbtns .btn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; }
.btn.yes { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.btn.no { background: var(--surface); border-color: var(--line); color: var(--attn); }
.btn.yes:hover:not(:disabled) { border-color: var(--ok); }
.btn.no:hover:not(:disabled) { border-color: var(--attn); }
.ico-x { width: 12px; height: 12px; position: relative; flex: none; }
.ico-x::before, .ico-x::after { content: ""; position: absolute; left: 5px; top: -1px; width: 2.5px; height: 14px; background: var(--attn); border-radius: 1px; transform: rotate(45deg); }
.ico-x::after { transform: rotate(-45deg); }

/* Messages in a request's history */
.tmsg .tbody p { margin: 0; overflow-wrap: anywhere; }
.tmsg .tbody .md p + p, .tmsg .tbody .md p + ol, .tmsg .tbody .md p + ul { margin-top: 0.4em; }
.tmsg .thd b { font-weight: 600; }
.tmsg .thd .age { font-size: 0.78rem; }
.tmsg.mine .tbody, .tmsg.owner .tbody { background: var(--surface); border: 1px solid var(--line); }
.tmsg.mine.nq .tbody, .tmsg.owner.nq .tbody { border-color: color-mix(in srgb, var(--attn) 55%, var(--line)); }
.tmsg.mine.ok .tbody, .tmsg.owner.ok .tbody { background: var(--ok-soft); border-color: var(--ok-line); }

/* ---------- Board (C) ---------- */
.rq-board .rq-main { padding: 18px 24px 40px; }
.c-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; max-width: 1700px; margin: 0 auto; }
.c-col { border-radius: 16px; padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; background: var(--t-call); }
.c-col.c-check { background: var(--t-taste); }
.c-col.c-done { background: color-mix(in srgb, var(--ok) 7%, var(--bg)); }
.c-col.c-prog { background: color-mix(in srgb, var(--accent) 7%, var(--bg)); }
.c-col h2 { font-size: 1.05rem; padding: 2px 4px; align-items: center; }
.c-col h2 .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.c-col.c-sub h2 .dot { background: var(--call); }
.c-col.c-prog h2 .dot { background: var(--accent); }
.c-col.c-check h2 .dot { background: var(--taste); }
.c-col.c-done h2 .dot { background: var(--ok); }
.c-col .tile { padding: 12px 14px; gap: 8px; }
.c-col .tile .title { font-size: 1rem; }
.c-col .tile .body { font-size: 0.88rem; -webkit-line-clamp: 2; line-clamp: 2; }
.c-col .tile.c-card { border-color: color-mix(in srgb, var(--taste) 50%, var(--line)); }
.c-col .tile.c-card .body { -webkit-line-clamp: 3; line-clamp: 3; }
.tile .tfoot .age { margin-left: auto; }
.tile .shots { gap: 8px; }
.tile .cbtns .btn { min-height: 40px; padding: 6px 10px; font-size: 0.88rem; }
.tile .prop-link { font-size: 0.84rem; padding: 5px 10px; }
.tile .tmsg.mine { flex-direction: row; }
.tile .tmsg .tbody { padding: 7px 12px; font-size: 0.9rem; }
.tile.saving { opacity: 0.7; cursor: progress; }
.quote { margin: 0; font-size: 0.86rem; color: var(--muted); background: color-mix(in srgb, var(--attn) 10%, var(--surface)); border-radius: 8px; padding: 6px 10px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* The first card of Submitted: it looks like a card and opens the new-request dialog. */
.tile.c-new { font: inherit; color: var(--accent-fg); text-align: left; cursor: pointer; flex-direction: row; align-items: center; gap: 14px; min-height: 96px; padding: 18px 20px; border: 0; background: var(--accent); box-shadow: var(--shadow); }
.tile.c-new:hover { background: color-mix(in srgb, var(--accent) 86%, var(--fg)); }
.tile.c-new:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.c-new .plus, .fab .plus { width: 14px; height: 14px; position: relative; flex: none; }
.c-new .plus { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-fg); }
.c-new .plus::before, .c-new .plus::after, .fab .plus::before, .fab .plus::after { content: ""; position: absolute; background: currentColor; border-radius: 1px; }
.c-new .plus::before, .c-new .plus::after { background: var(--accent); border-radius: 2px; }
.c-new .plus::before { left: 18.5px; top: 11px; width: 3px; height: 18px; }
.c-new .plus::after { left: 11px; top: 18.5px; width: 18px; height: 3px; }
.fab .plus::before { left: 6px; top: 0; width: 2px; height: 14px; }
.fab .plus::after { left: 0; top: 6px; width: 14px; height: 2px; }
.c-new-t { font-weight: 700; font-size: 1.1rem; }
.fab { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 10; display: none; align-items: center; gap: 10px; min-height: 52px; padding: 10px 22px 10px 18px; border-radius: 26px; font-size: 1rem; box-shadow: var(--shadow-modal); }
.c-tabs { display: none; }

/* ---------- List (A) ---------- */
.rq-list .rq-main { padding: 20px 28px 48px; min-width: 0; }
.a-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.a-main > * { width: 100%; max-width: 860px; margin-inline: auto; }
.a-main { container-type: inline-size; }
.rq-top { display: flex; flex-direction: column; gap: 18px; }
@container (min-width: 620px) {
  .rq-top { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .rq-top > .rq-filters { order: 2; flex: 0 0 auto; }
  .rq-top > .rq-line.toggles { order: 1; flex: 0 1 420px; width: auto; }
}
.a-hd { display: flex; align-items: center; gap: 12px; }
.a-hd h2 { font-size: 1.2rem; }
.rq-filters { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.rq-fl { display: flex; flex-wrap: wrap; gap: 8px; }
.rq-filters .rq-status { margin-left: auto; }
.rq-board .rq-filters { margin-bottom: 12px; }
.a-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.a-row { display: grid; grid-template-columns: 182px minmax(0, 1fr) auto 44px; align-items: center; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); cursor: pointer; min-width: 0; }
.a-row:last-child { border-bottom: 0; }
.a-row:hover { background: var(--sunken); }
.a-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.a-row.on { background: color-mix(in srgb, var(--taste) 14%, var(--surface)); }
/* A request the owner turned down reads faintly red to its requester. One closed as linked to
   another request or job is stage done (or still in progress), so it keeps the normal colour. */
.tile.declined, .tile.mine-t.declined { background: color-mix(in srgb, var(--attn) 7%, var(--surface)); border-color: color-mix(in srgb, var(--attn) 32%, var(--line)); }
.a-row.declined { background: color-mix(in srgb, var(--attn) 6%, var(--surface)); }
.a-row.declined:hover { background: color-mix(in srgb, var(--attn) 10%, var(--surface)); }
.a-row.declined.on { background: color-mix(in srgb, var(--attn) 12%, var(--surface)); }
.a-row > .rs { justify-self: start; }
.a-row .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-row .s { font-size: 0.84rem; color: var(--muted); display: flex; align-items: center; gap: 8px; min-width: 0; }
.a-row .s > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-row .age { text-align: right; }
.a-row .tw { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.a-row .mini-shots { display: flex; gap: 4px; }
.a-row .mini-shots .shot { width: 44px; height: 33px; aspect-ratio: auto; border-radius: 6px; cursor: pointer; }

/* ---------- The request sheet: docked beside the list, else a drawer ---------- */
.sheet { background: var(--surface); display: flex; flex-direction: column; min-width: 0; position: relative; }
.sh-scroll { flex: 1; overflow-y: auto; padding: 20px 24px 16px; display: flex; flex-direction: column; gap: 14px; }
.sh-hd { display: flex; align-items: center; gap: 10px; padding-right: 92px; }
.sh-hd .ver { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.sheet .close { top: 14px; right: 14px; z-index: 1; }
.sheet .linkbtn { z-index: 1; }
.sheet .linkbtn.solo { right: 14px; }
.rq-missing { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--attn-soft); color: var(--fg); font-weight: 600; }
.sh-title { margin: 0; font-size: 1.35rem; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; display: block; }
.sheet .shots .shot { aspect-ratio: 16 / 10; }
.sh-note, .hnote, .hneed { margin: 0; overflow-wrap: anywhere; }
.hnote { font-size: 0.88rem; color: var(--muted); }
.hneed { font-size: 0.92rem; }
.hist { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.hrow { display: flex; align-items: baseline; gap: 10px; font-size: 0.86rem; color: var(--muted); }
.hrow b { color: var(--fg); font-weight: 600; }
.hist .tmsg .tbody { font-size: 0.9rem; padding: 8px 12px; }
.hlate { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sh-bar { border-top: 1px solid var(--line); padding: 12px 24px 16px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.sh-bar textarea { min-height: 42px; }
.sh-bar.saving { opacity: 0.7; cursor: progress; }
.obar .rq-foot .btn.ghost { min-height: 38px; }
.grab { display: none; }
.sheet-host.docked { position: sticky; top: 0; height: calc(100vh - 56px); border-left: 1px solid var(--line); background: var(--surface); }
.sheet-host.docked .sheet { height: 100%; }
.sheet-host.overlay { position: fixed; inset: 0; z-index: 30; }
.sheet-host.overlay .sheet-back { position: absolute; inset: 0; background: var(--backdrop); }
.sheet-host.overlay .sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); box-shadow: var(--shadow-modal); }
@media (min-width: 601px) {
  body.rq-list.docked-on .rq-body { display: grid; grid-template-columns: minmax(0, 1fr) 460px; align-items: start; }
}

/* ---------- Phone ---------- */
@media (max-width: 600px) {
      .rq-who .pname-wrap { display: none; }
  .rq-mode .seg-txt { display: none; }
  .rq-mode button { padding: 4px 8px; }
  .vtabs .themectl .tbtn { width: 38px; height: 38px; }
  .vtabs .rq-who { padding: 0 2px; }

  .rq-board .rq-main { padding: 10px 16px 104px; }
  .c-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; }
  .c-tab { --tc: var(--call); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 54px; padding: 4px 2px; font: inherit; font-size: 0.76rem; font-weight: 600; line-height: 1.25; color: var(--muted); background: var(--sunken); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; min-width: 0; }
  .c-tab b { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 600; color: var(--fg); }
  .c-tab.check { --tc: var(--taste); }
  .c-tab[aria-selected="true"] { color: var(--accent-fg); background: var(--tc); border-color: var(--tc); }
  .c-tab[aria-selected="true"] b { color: var(--accent-fg); }
  .c-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .c-board { display: block; }
  .c-col { display: none; background: transparent; padding: 0; }
  .c-col.on { display: flex; }
  .c-col h2 { display: none; }
  .c-col .tile { padding: 14px; gap: 10px; }
  .c-col .tile .title { font-size: 1.1rem; }
  .fab { display: inline-flex; }
  .fab[hidden] { display: none; }

  .rq-list .rq-main { padding: 12px 16px 40px; }
  .a-main { gap: 14px; }
  .rq-new { padding: 10px 12px; gap: 8px; }
  .rq-new textarea { min-height: 54px; }
  .a-hd h2 { font-size: 1.1rem; }
  .a-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "st age" "tw tw"; gap: 4px 10px; padding: 11px 14px; }
  .a-row > .rs { grid-area: st; justify-self: start; }
  .a-row > .age { grid-area: age; }
  .a-row > .tw { grid-area: tw; }
  .a-row > .mini-shots { display: none; }
  .a-row .t { white-space: normal; }

  .sheet-host.overlay .sheet { top: auto; left: 0; width: 100%; height: 90vh; height: 90dvh; border-radius: 18px 18px 0 0; }
  .grab { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 8px auto 0; flex: none; }
  .sh-scroll { padding: 10px 16px 12px; gap: 12px; }
  .sh-title { font-size: 1.2rem; }
  .sheet .close { top: 12px; right: 8px; }
  .sheet .linkbtn { top: 12px; right: 50px; }
  .sh-bar { padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .modal { padding: 0; align-items: stretch; }
  .modal .dialog.compose-dlg { border-radius: 0; min-height: 100%; max-width: none; padding: 20px 16px; }
}

/* ---------- Similar requests, Mine / All, Like and Follow ---------- */
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.av-1 { background: var(--p-plum); } .av-2 { background: var(--p-ochre); } .av-3 { background: var(--p-terracotta); } .av-4 { background: var(--p-olive); } .av-5 { background: var(--p-rose); } .av-6 { background: var(--p-slate); }
.avatar.xs { width: 24px; height: 24px; font-size: 0.56rem; letter-spacing: -0.02em; border: 2px solid var(--surface); }
.stack { display: inline-flex; flex: none; }
.stack .avatar + .avatar { margin-left: -7px; }
.byl { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--muted); min-width: 0; }
.byl b { color: var(--fg); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.byl .more { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); flex: none; }

.stats { display: inline-flex; align-items: center; gap: 10px; }
.stat { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.stat .ic { width: 15px; height: 15px; }
.stat.hot { color: var(--heart); }
.stat.hot .ic { fill: currentColor; }
.tile.other .title { font-size: 0.98rem; }
.tile.mine-t { border-color: var(--accent); }

/* Mine / All */
.sc-tabs { display: flex; gap: 22px; max-width: 1700px; margin: 0 auto 14px; border-bottom: 1px solid var(--line); }
.sc-tab { font: inherit; font-weight: 600; font-size: 0.98rem; color: var(--muted); background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 2px 9px; cursor: pointer; display: inline-flex; gap: 8px; align-items: baseline; margin-bottom: -1px; }
.sc-tab .cnt { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; }
.sc-tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.sc-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rq-list .sc-tabs { max-width: 860px; }

/* Like and Follow */
.lk, .fl { font: inherit; font-size: 0.88rem; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 5px 14px; border-radius: 999px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); cursor: pointer; white-space: nowrap; }
.lk .n { font-family: var(--font-mono); font-weight: 600; color: var(--fg); }
.lk.on { color: var(--heart); border-color: var(--heart); background: color-mix(in srgb, var(--heart) 10%, var(--surface)); }
.lk.on .ic { fill: currentColor; }
.lk.on .n { color: var(--heart); }
.fl.on { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.fl.on .ic { fill: currentColor; }
.lk.lg, .fl.lg { min-height: 46px; padding: 8px 20px; font-size: 0.98rem; }
.lk.lg .ic, .fl.lg .ic { width: 20px; height: 20px; }
.lk:focus-visible, .fl:focus-visible, .vis:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dpair { display: flex; gap: 10px; }
.dpair.fill > * { flex: 1 1 0; justify-content: center; }
.bar-act { border-top: 1px solid var(--line); padding: 12px 24px 16px; background: var(--surface); }

/* Visibility switch */
.vis { font: inherit; color: inherit; background: none; border: 0; padding: 0; width: 100%; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 0.92rem; font-weight: 600; }
.vis .ic { color: var(--muted); }
.vis .sw { margin-left: auto; position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--line); flex: none; }
.vis .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); }
.vis.on .sw { background: var(--ok); }
.vis.on .sw::after { left: 21px; }

/* Similar requests while composing */
.matches-host:empty { display: none; }
.matches-host { display: flex; flex-direction: column; gap: 8px; }
.dsect { font-size: 0.86rem; font-weight: 700; color: var(--muted); overflow-wrap: anywhere; }
.matches { display: flex; flex-direction: column; gap: 8px; }
.match { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.match.best { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow); }
.match .mt { display: flex; align-items: center; gap: 10px; min-width: 0; }
.match .ttl { font-weight: 700; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.match .mm { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.match .mm .age { margin-left: auto; }
.match .btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; }
.btn.alt2 { background: var(--surface); border-color: var(--line); color: var(--fg); }
.btn.join { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.dialog.compose-dlg.wideA { max-width: 600px; }

@media (max-width: 600px) {
  .sc-tabs { margin: 0 0 10px; gap: 20px; }
  .rq-filters > .rq-status:only-child { flex: 1; margin-left: 0; }
  .rq-filters > .rq-status:only-child > button { flex: 1; justify-content: center; }
  .bar-act, .sh-bar.bar-act { padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
}
/* The person block sits at the right of the section tab bar */
.vtabs .rq-mode { margin-left: auto; }
.vtabs .themectl { margin-left: 8px; }
.vtabs .rq-who { padding: 0 6px; }
.vtabs .rq-who .avatar { width: 34px; height: 34px; font-size: 0.85rem; }
/* The top bar fits a 375 px phone: tighter gaps, never a sideways scroll */
@media (max-width: 600px) {
  .vtabs { gap: 2px; padding-inline: 6px; }
  .vtabs a { padding-inline: 5px; }
  .vtabs .rq-mode button { padding: 4px 6px; }
  .vtabs .themectl { margin-left: 4px; }
  .vtabs .rq-who { padding: 0; }
  .vtabs .rq-who .avatar { width: 32px; height: 32px; }
}
