/* Got your note: the owner's app and the small server pages. Same language as the site:
   white, Inter, hairlines, yellow only where a note is. */

@font-face { font-family: "Inter"; src: url("/assets/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #ffffff;
  --surface: #f8f8f9;
  --ink: #111113;
  --ink-2: #5e5e66;
  --ink-3: #9a9aa2;
  --line: #ececef;
  --line-2: #dfdfe4;
  --note: #ffe766;
  --note-2: #f1d34a;
  --note-soft: #fff7cc;
  --ok: #1f7a3d;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  --out: cubic-bezier(0.22, 1, 0.36, 1);
  --card: 0 0 0 1px rgba(17, 17, 19, 0.06), 0 1px 2px rgba(17, 17, 19, 0.04), 0 12px 32px -12px rgba(17, 17, 19, 0.16);
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--sans); letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss03"; }
::selection { background: var(--note); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
a { color: inherit; }
code, .mono { font: 400 0.86em/1.4 var(--mono); letter-spacing: 0; }
[hidden] { display: none !important; }

.mark { width: 18px; height: 18px; flex: none; overflow: visible; }
.mark .paper { fill: var(--note); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.mark .fold { fill: var(--note-2); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }

/* Buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: var(--ink); color: #fff; font: 500 14px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background 0.2s, transform 0.15s var(--out); }
.btn:hover { background: #2a2a2e; }
.btn:active { transform: scale(0.98); }
.btn:disabled { background: var(--surface); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); cursor: default; transform: none; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--surface); }
.btn-s { height: 30px; padding: 0 11px; border-radius: 8px; font-size: 13px; }
.btn-note { background: var(--note); color: var(--ink); box-shadow: inset 0 0 0 1px var(--note-2); }
.btn-note:hover { background: #ffde3d; }
input, textarea { width: 100%; padding: 9px 11px; border: 0; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font: 400 14.5px/1.45 var(--sans); }
input:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
textarea { min-height: 76px; resize: vertical; }
label { display: grid; gap: 6px; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.hint { color: var(--ink-3); font-size: 13px; }
.error { color: #b42318; font-size: 13.5px; }

/* Server pages: sign-in confirmation */
.center-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: var(--surface); }
.card { width: min(400px, 100%); padding: 28px; border-radius: 16px; background: #fff; box-shadow: var(--card); }
.card .mark { width: 26px; height: 26px; margin-bottom: 18px; }
.card h1 { font-size: 20px; overflow-wrap: anywhere; }
.card p { margin-top: 8px; color: var(--ink-2); }
.card form { margin-top: 20px; }
.card .btn { width: 100%; height: 40px; }
.card-fixed { width: min(600px, 100%); }
.card-fixed .shots { display: grid; gap: 16px; margin: 22px 0; }
.card-fixed figure { margin: 0; }
.card-fixed figcaption { margin-bottom: 6px; color: var(--ink-3); font-size: 12.5px; }
.card-fixed img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line), 0 0 0 1px var(--line); }
.card-fixed .small { margin-top: 10px; font-size: 13px; text-align: center; }

/* App shell */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; height: 56px; padding: 0 20px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.top nav { display: flex; gap: 4px; }
.top nav a { padding: 6px 10px; border-radius: 7px; color: var(--ink-2); font-size: 14px; text-decoration: none; }
.top nav a:hover { background: var(--surface); color: var(--ink); }
.top nav a[aria-current] { color: var(--ink); font-weight: 500; }
.me { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; }
.main { width: min(880px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 80px; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.head h1 { font-size: 26px; }
.head p { margin-top: 4px; color: var(--ink-2); }
.back { display: inline-flex; margin-bottom: 14px; color: var(--ink-3); font-size: 13.5px; text-decoration: none; }
.back:hover { color: var(--ink); }

/* Sign in */
.signin { width: min(380px, calc(100% - 32px)); margin: 14vh auto 0; }
.signin .mark { width: 28px; height: 28px; }
.signin h1 { margin-top: 18px; font-size: 24px; }
.signin p { margin-top: 6px; color: var(--ink-2); }
.signin form { display: grid; gap: 12px; margin-top: 22px; }
.signin .btn { height: 40px; }
.signin .code { font: 600 22px/1.2 var(--mono); letter-spacing: 0.22em; text-align: center; }
.signin .code::placeholder { font: 400 14.5px/1.2 var(--sans); letter-spacing: 0; }
.signin p + p { margin-top: 10px; }
.signin .alt { margin-top: 18px; }
.signin .alt a { color: var(--ink-2); text-underline-offset: 3px; }

/* Lists */
.list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.list > li { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 6px; color: inherit; text-decoration: none; border-radius: 10px; transition: background 0.15s; }
a.row:hover { background: var(--surface); }
.row .t { overflow: hidden; text-overflow: ellipsis; }
.row .meta { margin-top: 3px; color: var(--ink-3); font-size: 12.5px; }
.empty { padding: 48px 0; color: var(--ink-3); text-align: center; }
.proj { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 6px; text-decoration: none; border-radius: 10px; }
.proj:hover { background: var(--surface); }
.proj b { font-weight: 600; }
.pmeta { display: block; margin-top: 2px; color: var(--ink-3); font-size: 13px; }
.counts { display: flex; gap: 8px; color: var(--ink-3); font-size: 13px; }

.av { display: inline-grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--note); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); font: 600 11px/1 var(--sans); text-transform: uppercase; }
.av-agent { background: var(--ink); color: #fff; }
.av-owner { background: #dde7ff; }

.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.chip.s-new::before { background: var(--note-2); }
.chip.s-asked::before { background: #7b9cff; }
.chip.s-sent::before, .chip.s-working::before { background: var(--ink); }
.chip.s-review { background: var(--note-soft); box-shadow: inset 0 0 0 1px var(--note-2); color: var(--ink); }
.chip.s-review::before { background: var(--ink); }
.chip.s-done::before { background: var(--ok); }

.tabs { display: inline-flex; gap: 2px; margin-bottom: 14px; padding: 3px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tabs a { padding: 5px 12px; border-radius: 7px; color: var(--ink-2); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.tabs a[aria-current] { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, 0.05); color: var(--ink); }
.tabs .n { margin-left: 5px; color: var(--ink-3); }

.panel { margin-top: 18px; padding: 18px; border-radius: 14px; background: #fff; box-shadow: var(--card); }
.panel h2 { font-size: 15px; letter-spacing: -0.015em; }
.panel p { color: var(--ink-2); }
.panel form { display: grid; gap: 12px; margin-top: 14px; }
.snippet { position: relative; margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 400 12.5px/1.6 var(--mono); overflow-wrap: anywhere; white-space: pre-wrap; }
.share { display: grid; gap: 10px; margin: -6px 0 22px; padding: 14px 16px; border-radius: 14px; background: var(--note-soft); box-shadow: inset 0 0 0 1px rgba(241, 211, 74, 0.45); }
.share .hint { margin-top: 2px; color: var(--ink-2); }
.setting { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: -6px 0 22px; padding: 12px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.setting .hint { margin-top: 2px; color: var(--ink-2); }
.setting .hint code { font: 400 0.9em/1 var(--mono); }
.seg { display: flex; gap: 6px; }
.tip { display: grid; gap: 10px; margin: -6px 0 22px; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tip .hint { margin-top: 2px; color: var(--ink-2); }
.tip .hint code { font: 400 0.9em/1 var(--mono); }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.share-row code { flex: 1 1 240px; min-width: 0; padding: 6px 10px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 400 12.5px/1.5 var(--mono); overflow-wrap: anywhere; }
details.settings { margin-top: 26px; border-top: 1px solid var(--line); }
details.settings summary { padding: 14px 0; color: var(--ink-2); font-size: 14px; font-weight: 500; cursor: pointer; }

/* A note */
.note-head { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
.note-head .av { width: 34px; height: 34px; font-size: 13px; }
.note-head .who { color: var(--ink-2); font-size: 13.5px; }
.note-head .who b { color: var(--ink); font-weight: 600; }
.note-body { margin-top: 6px; font-size: 19px; font-weight: 500; line-height: 1.4; letter-spacing: -0.02em; white-space: pre-wrap; overflow-wrap: anywhere; }
.quote { margin: 10px 0 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--note); color: var(--ink-2); font-style: italic; white-space: pre-wrap; overflow-wrap: anywhere; }
.q { color: var(--ink-2); font-style: italic; }
.shot { display: block; margin-top: 16px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--surface); }
.shot img { display: block; width: 100%; height: auto; }
.where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 12px; color: var(--ink-3); font-size: 13px; }
.where a { color: var(--ink-2); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.thread { margin: 22px 0 0; padding: 0; list-style: none; }
.msg { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.msg .by { font-size: 13px; color: var(--ink-3); }
.msg .by b { color: var(--ink); font-weight: 600; }
.msg p { margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.reply { display: grid; gap: 10px; margin-top: 18px; }
.gate { margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 14px; }
.gate b { color: var(--ink); }

/* A returned fix */
.fix { margin-top: 26px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: var(--card); }
.fix-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.fix-head b { font-weight: 600; }
.fix .summary { margin-top: 8px; color: var(--ink-2); white-space: pre-wrap; }
.compare { position: relative; margin-top: 14px; overflow: hidden; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); user-select: none; }
.compare img { display: block; width: 100%; height: auto; }
.compare .before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0); }
.compare .tag { position: absolute; top: 10px; padding: 3px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 1px var(--line); color: var(--ink-2); font: 400 11px/1.3 var(--mono); }
.compare .tag-b { left: 10px; }
.compare .tag-a { right: 10px; }
.compare .divider { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 1px; background: var(--ink); pointer-events: none; }
.compare .grow { position: absolute; right: 10px; bottom: 10px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: rgba(17, 17, 19, 0.75); color: #fff; cursor: pointer; }
.compare .grow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* Full screen: the same comparison, fixed over a dark backdrop (the huge shadow). */
.compare.zoomed { position: fixed; top: 50%; left: 50%; z-index: 100; width: min(96vw, 1800px); max-height: 94vh; margin: 0; overflow: auto; transform: translate(-50%, -50%); box-shadow: 0 0 0 100vmax rgba(10, 10, 12, 0.86); }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: ew-resize; box-shadow: none; }
.fix-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.fix-foot .hint { flex: 1 1 220px; }
.decided { margin-top: 14px; color: var(--ink-2); font-size: 14px; }
.decided.ok { color: var(--ok); font-weight: 500; }

.toast { position: fixed; bottom: 22px; left: 50%; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 500; opacity: 0; transform: translate(-50%, 8px); transition: opacity 0.2s, transform 0.3s var(--out); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 600px) {
  .top { gap: 10px; padding: 0 12px; }
  .me span { display: none; }
  .row { grid-template-columns: 24px minmax(0, 1fr); }
  .row .chip { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* iPhone zooms into any field under 16px when it gets focus. */
@media (pointer: coarse) {
  input, textarea, select { font-size: 16px; }
}

/* Setup checklist: the three steps in the order they have to happen */
.step { display: grid; gap: 12px; margin-top: 0; margin-bottom: 14px; }
.step-head { display: flex; align-items: flex-start; gap: 12px; }
.step-head h2, .step-head b { font-size: 15px; letter-spacing: -0.015em; }
.step-head .hint { margin-top: 4px; color: var(--ink-2); }
.step-head .hint code { font: 400 0.9em/1 var(--mono); }
.step .n { display: grid; flex: none; place-items: center; width: 24px; height: 24px; margin-top: -1px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; }
.step .n.done { background: var(--ok); }
.share.step { margin-top: 0; }
.tip.first { margin-top: 0; }
.signin .or { margin-top: 18px; }
.signin .snippet { margin-top: 12px; }
.signin .actions { margin-top: 10px; }
.share-row.inline { display: inline-flex; margin: 4px 0; vertical-align: middle; }
.share-row.inline code { flex: 0 1 auto; }
.chip.s-kept::before { background: var(--ink-3); }

/* The compare's labels sit above the image instead of over its corners */
.compare { overflow: visible; margin-top: 36px; }
.compare img { border-radius: 10px; }
.compare .before { border-radius: 10px; }
.compare .tag { top: -26px; padding: 0; background: none; box-shadow: none; }
.compare .tag-b { left: 0; }
.compare .tag-a { right: 0; }
.compare.zoomed { overflow: auto; }
.compare.zoomed .tag { top: 10px; padding: 3px 7px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 1px var(--line); }
.compare.zoomed .tag-b { left: 10px; }
.compare.zoomed .tag-a { right: 10px; }

/* Where they pointed: a zoomed crop first, the whole screenshot after it */
.crop { margin: 16px 0 0; }
.crop a { display: block; width: min(100%, 440px); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--surface); }
.crop img { display: block; width: 100%; height: auto; }
.crop figcaption { margin-top: 6px; color: var(--ink-3); font-size: 13px; }
.shot.shot-s { width: min(100%, 440px); opacity: 0.9; }

/* Two ways in: the recommended one first, numbered */
.ways { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; }
.ways li { display: flex; align-items: flex-start; gap: 12px; }
.ways li > div { flex: 1; min-width: 0; }
.ways .n { display: grid; flex: none; place-items: center; width: 24px; height: 24px; margin-top: -1px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; }
.ways li + li .n { background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.ways b { font-weight: 600; }
.ways .rec { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 99px; background: var(--note-soft); box-shadow: inset 0 0 0 1px var(--note-2); color: var(--ink); font-size: 11.5px; font-weight: 500; vertical-align: 1px; }
.ways .hint { margin-top: 3px; }
.ways .snippet { margin-top: 10px; }
.ways .actions, .ways .share-row { margin-top: 10px; }
.ways form { display: grid; gap: 10px; margin-top: 10px; }
.signin .ways { text-align: left; }
.signin .ways .btn { height: 36px; }
.panel.first { margin-top: 0; }
.ways .or { display: flex; align-items: center; gap: 12px; margin: -4px 0 -4px 36px; color: var(--ink-3); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.ways .or::before, .ways .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Settings as rows with switches; the share box carries the one about who can leave notes */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.switch input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; box-shadow: none; }
.switch .track { position: relative; flex: none; width: 36px; height: 22px; border-radius: 99px; background: var(--line-2); transition: background 0.2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.2s var(--out); }
.switch input:checked + .track { background: var(--ink); }
.switch input:checked + .track::after { transform: translateX(14px); }
.switch input:focus-visible + .track { outline: 2px solid var(--ink); outline-offset: 2px; }
.srow { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.srow > div { flex: 1; min-width: 0; }
.srow b { display: block; font-weight: 600; }
.srow .hint { margin-top: 4px; color: var(--ink-2); }
.srow .hint code { font: 400 0.9em/1 var(--mono); }
.srow .share-row, .srow .snippet { margin-top: 10px; }
.share .srow { margin-top: 12px; padding: 12px 0 0; border-top: 1px solid rgba(241, 211, 74, 0.45); }
.srow .switch + .hint { margin-left: 46px; }
.linkish { padding: 0 4px; border: 0; background: none; color: var(--ink-2); font: 500 13px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
details.settings .srow:first-of-type { border-top: 0; padding-top: 4px; }
details.settings .panel { margin-top: 10px; }

/* Batches: notes collected to go to the agent together, and approved together. */
.chip.s-queued { background: var(--note-soft); box-shadow: inset 0 0 0 1px var(--note-2); color: var(--ink); }
.chip.s-queued::before { background: var(--note-2); }
.batchbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: var(--note-soft); box-shadow: inset 0 0 0 1px var(--note-2); font-size: 14px; }
.batchbar p { flex: 1 1 260px; color: var(--ink-2); }
.batchbar b { color: var(--ink); }
.batch { margin-top: 14px; }
.batch ol { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.batch li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.batch li .t { flex: 1; min-width: 0; overflow: hidden; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.batch li.here .t { color: var(--ink); font-weight: 500; }
.batch .st { flex: none; color: var(--ink-3); font-size: 12.5px; }
.batch .st-seen, .batch .st-approved { color: var(--ok); }
.batch .st-with-your-agent, .batch .st-not-seen-yet { color: var(--ink-2); }
.edits { margin-top: 6px; color: var(--ink-3); font-size: 13px; }

/* Branches: one per line, its notes under it. */
.branches .branch { padding: 12px 4px; }
.branches .bh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.branches code { font-size: 13px; overflow-wrap: anywhere; }
.branches ol { margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; }
.branches ol li { padding: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.branches ol a { font-weight: 600; color: var(--ink); }
.branches .where { margin: 6px 0 0; }

/* A batch on one page: before and after side by side, approve all at the bottom. */
.bfix { margin: 0 0 28px; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.bfix .fix-head { display: flex; justify-content: space-between; gap: 12px; }
.bfix .fix-head a { color: var(--ink); }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.pair figure { margin: 0; min-width: 0; }
.pair img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.pair figcaption { margin-top: 4px; color: var(--ink-3); font-size: 12px; }
.bfoot { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 0; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
@media (max-width: 600px) {
  .pair { grid-template-columns: minmax(0, 1fr); }
  .bfoot { flex-wrap: wrap; justify-content: space-between; }
}
.bfix .summary { margin-top: 8px; color: var(--ink-2); white-space: pre-wrap; }

/* Collaborators, on the project page. */
.people { margin: 10px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.people li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.people li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#invite { margin-top: 10px; }
#invite input { flex: 1; min-width: 0; }
.joined { margin-top: 10px; font-size: 14px; }
.joined summary { cursor: pointer; color: var(--ink-2); }
