:root {
  --bg: #f6f3fb;
  --surface: #ffffff;
  --ink: #221a2e;
  --muted: #6b6178;
  --line: #e2dbeb;
  --trash: #3fb68b;
  --trash-soft: #e3f5ee;
  --woo: #c04ad6;
  --woo-soft: #f6e6fa;
  --accent: #6b3fd6;
  --shadow: 0 1px 2px rgb(34 26 46 / 6%), 0 4px 14px rgb(34 26 46 / 6%);
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15111c;
    --surface: #211b2b;
    --ink: #f1ecf7;
    --muted: #a99fb8;
    --line: #362d44;
    --trash-soft: #173229;
    --woo-soft: #351b3d;
    --accent: #a78bfa;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 4px 14px rgb(0 0 0 / 25%);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* Header and meter */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 12px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Logo: lowercase "woometer", with "woo" in alien green and the o's as alien eyes */
.brand h1 {
  margin: 0;
  line-height: 1.1;
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  --alien: #16a34a;
  --alien-glow: rgb(74 222 128 / 45%);
}
.logo-woo {
  color: var(--alien);
  text-shadow: 0 0 14px var(--alien-glow);
}
.logo-meter { color: var(--ink); }
.logo .eye {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin: 0 0.02em;
  vertical-align: -0.04em;
  overflow: visible;
  filter: drop-shadow(0 0 4px var(--alien-glow));
}
.logo .eye path { fill: #0b0b12; stroke: var(--alien); stroke-width: 2.4; stroke-linejoin: round; }
.logo .eye .glint { fill: #fff; opacity: 0.85; }
/* Mirror the right eye so both slant up and outward, like the alien favicon. */
.logo .eye-l { transform: scaleX(-1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand h1 { --alien: #4ade80; --alien-glow: rgb(74 222 128 / 60%); }
}
:root[data-theme="dark"] .brand h1 { --alien: #4ade80; --alien-glow: rgb(74 222 128 / 60%); }

/* Tagline sits beside the logo, lined up with its baseline, and drops under
   it only when there isn't room. */
.brand-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; }
.tagline { flex: 1 1 260px; min-width: 0; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.35; }

/* Meter panel: cat, gauge and score, at the top of the side column */
.meter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "cat gauge" "cat read";
  align-items: center;
  gap: 2px 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cat {
  grid-area: cat;
  margin: 0;
  width: 108px;
  padding: 2px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: inherit;
  text-align: center;
}
.cat:hover .cat-art { transform: scale(1.06); }
.cat:focus-visible, .mini-cat:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cat-art { display: block; transition: transform 0.15s; }
.cat-art svg { display: block; width: 100px; height: auto; margin: 0 auto; }
.cat-label { display: block; font-size: 11px; line-height: 1.2; color: var(--muted); margin-top: 2px; }
.cat-pop { animation: cat-pop 0.45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes cat-pop {
  0% { transform: scale(0.7) rotate(-8deg); opacity: 0.3; }
  100% { transform: none; opacity: 1; }
}
.gauge { grid-area: gauge; justify-self: center; width: 140px; height: auto; }
.needle-line { stroke: var(--ink); }
.needle-hub { fill: var(--ink); }
#needle {
  transform-origin: 100px 100px;
  transform-box: view-box;
  transition: transform 0.6s cubic-bezier(.34, 1.56, .64, 1);
}

.meter-read { grid-area: read; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.pct { font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.pct-label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.meter-verdict { font-size: 14px; margin-top: 4px; }

.top-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mute {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 18px;
  line-height: 1;
}
.mute:hover { border-color: var(--accent); }
.mute:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Layout */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 24px clamp(16px, 4vw, 40px);
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .top { position: relative; }
}

/* Search (behind the 🔍 at the start of the filter row) and filters */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 8px;
}
.filter-bar .filters { flex: 1 1 0; min-width: 0; margin: 0; }
.search-toggle {
  flex: none;
  width: 31px;
  height: 31px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.search-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.search-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Opens inline between the 🔍 and the chips. */
.search-pop {
  flex: 0 1 280px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 31px;
  padding: 0 2px 0 4px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 999px;
}
/* On phones the search box gets its own line under the 🔍 and chips. */
@media (max-width: 600px) {
  .search-pop { order: 3; flex-basis: 100%; }
}
.search {
  flex: 1;
  min-width: 0;
  padding: 4px 8px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
}
.search:focus-visible { outline: none; }
.search::-webkit-search-cancel-button { display: none; }
.search-close {
  flex: none;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.search-close:hover { color: var(--ink); background: var(--bg); }

/* Category chips wrap onto at most two rows; app.js switches to one row that
   scrolls sideways when two rows aren't enough. */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.filters.one-row {
  flex-wrap: nowrap;
  padding-bottom: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.filters .chip { flex: none; white-space: nowrap; padding: 5px 11px; font-size: 13.5px; }

.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.progress { color: var(--muted); font-size: 14px; margin: 8px 0 16px; }

/* Grid of claim cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.25s, transform 0.25s;
}

.card .card-cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.card h3 { margin: 0; font-size: 18px; }
.card .card-cat { cursor: pointer; }
.card-info {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  border-radius: 4px;
}
.card-info:hover span:first-child { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.card-info:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.card-why { font-size: 15px; font-weight: 400; color: var(--accent); }
.card .q { margin: 0; font-size: 14px; color: var(--muted); flex: 1; }

.card .answer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }

.yes, .no {
  border: 0;
  border-radius: 10px;
  padding: 9px 0;
  font-weight: 700;
  color: #fff;
}
.yes { background: var(--woo); }
.no { background: var(--trash); }
.yes:hover, .no:hover { filter: brightness(1.08); }
.yes:focus-visible, .no:focus-visible, .chip:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.card.leaving { opacity: 0; transform: scale(0.85); }

/* Already-answered cards that turn up in a search */
.card.answered { border-style: dashed; box-shadow: none; }
.card-pile { margin: 0; font-size: 13px; font-weight: 700; }
.card.in-woo .card-pile { color: var(--woo); }
.card.in-trash .card-pile { color: var(--trash); }
.card .answer [aria-pressed="false"] { opacity: 0.45; }
.card .answer [aria-pressed="false"]:hover { opacity: 1; }
.card .answer [aria-pressed="true"] { cursor: default; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 55%); }

/* The flying copy of a card on its way into a bin */
.flyer {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  margin: 0;
  transition: transform 0.55s cubic-bezier(.5, 0, .3, 1), opacity 0.55s ease-in;
}

.done {
  text-align: center;
  padding: 32px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

/* Bins */

.bins { display: flex; flex-direction: column; gap: 16px; align-self: start; position: sticky; top: 112px; }
@media (max-width: 860px) {
  /* Single column: the meter goes above the claims, the piles below them. */
  .bins { display: contents; }
  .meter { order: -1; }
}

.bin {
  border-radius: var(--radius);
  padding: 14px;
  border: 2px solid transparent;
  transition: transform 0.2s;
}
.bin.trash { background: var(--trash-soft); border-color: var(--trash); }
.bin.woo { background: var(--woo-soft); border-color: var(--woo); }
.bin.bump { transform: scale(1.04); }

.bin h2 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.bin .count {
  margin-left: auto;
  font-size: 14px;
  background: var(--surface);
  border-radius: 999px;
  padding: 1px 10px;
  font-variant-numeric: tabular-nums;
}
.bin-hint { margin: 4px 0 10px; font-size: 13px; color: var(--muted); }

.pile {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pile button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 13px;
}
.pile button:hover { border-color: var(--accent); }
.trash .pile button { text-decoration: line-through; text-decoration-color: var(--trash); }
.pile button.more { text-decoration: none; font-weight: 700; color: var(--accent); border-style: dashed; }
.pile-dialog h3 { margin: 0; }
.pile-dialog .bin-hint { margin: 4px 0 12px; }

.link-btn { border: 0; background: none; padding: 0; color: var(--muted); text-decoration: underline; font-size: 13px; }
.link-btn:hover { color: var(--accent); }


.btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
}
.btn.ghost { background: transparent; color: var(--accent); }

/* Every-cat popup */

.cats-dialog { width: min(640px, calc(100vw - 32px)); max-width: none; }
.cats-dialog h3 { margin: 0; }
.cats-dialog .bin-hint { margin: 4px 0 12px; }
.cat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  max-height: min(60vh, 520px);
  overflow-y: auto;
}
.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cat-tile-art svg { display: block; width: 64px; height: auto; }
.cat-tile-range { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
.cat-tile-name { font-size: 11px; line-height: 1.2; color: var(--muted); }
.cat-tile.current { border: 2px solid var(--accent); background: var(--woo-soft); }
.cat-tile-you {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 1px 6px;
}

/* Detail dialog */

dialog {
  border: 0;
  border-radius: var(--radius);
  padding: 22px;
  max-width: min(520px, calc(100vw - 32px));
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 60px rgb(0 0 0 / 35%);
}
dialog::backdrop { background: rgb(20 10 30 / 50%); }
dialog h3 { margin: 4px 0 8px; font-size: 22px; }
.detail-cat { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.detail-q { color: var(--muted); }
.detail-verdict { border-left: 3px solid var(--trash); padding-left: 10px; }
dialog a { color: var(--accent); }
.detail-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* Cloudflare's spam check; empty unless it needs a click. */
.captcha { position: fixed; right: 16px; bottom: 16px; z-index: 30; }
@media (max-width: 860px) { .captcha { bottom: calc(76px + env(safe-area-inset-bottom)); } }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 40px; }
.foot-link { color: inherit; }
.quote { max-width: 520px; margin: 0 auto 20px; }
.quote p { margin: 0; font-size: 15px; font-style: italic; color: var(--ink); }
.quote cite { display: block; margin-top: 4px; font-style: normal; }
.quote cite::before { content: "— "; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 60;
}

/* Bottom bar on narrow screens, where the bins sit below the grid */

.minibar { display: none; }

@media (max-width: 860px) {
  .minibar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 14px rgb(0 0 0 / 10%);
  }
  .mini {
    border-radius: 10px;
    padding: 6px 12px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
  }
  .mini.trash { background: var(--trash-soft); border: 1px solid var(--trash); }
  .mini.woo { background: var(--woo-soft); border: 1px solid var(--woo); }
  .mini.bump { transform: scale(1.1); }
  .mini-pct { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
  .mini-cat { cursor: pointer; border-radius: 6px; }
  .mini-cat svg { display: block; width: 34px; height: auto; }
  .foot { padding-bottom: 90px; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

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

/* Friends, account and comparisons (cloud.js) */

.top-btn {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.top-btn:hover { border-color: var(--accent); }
.badge {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

/* Google's standard sign-in button: white, grey outline, colour G, Roboto-ish label */
.gsi {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid #747775;
  background: #fff;
  color: #1f1f1f;
  font: 500 14px/1 Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.25px;
}
.gsi:hover { background: #f8f9fa; box-shadow: 0 1px 2px rgb(60 64 67 / 30%); }
.g-logo { width: 18px; height: 18px; flex: none; }
@media (prefers-color-scheme: dark) {
  .gsi { background: #131314; color: #e3e3e3; border-color: #8e918f; }
  .gsi:hover { background: #1f1f20; }
}

.account { position: relative; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  padding: 0;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar:hover { box-shadow: 0 0 0 3px var(--woo-soft); }
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgb(0 0 0 / 20%);
  padding: 14px;
  z-index: 30;
}
.account-menu p { margin: 0; }
.account-name { font-weight: 700; }
.account-email { font-size: 13px; color: var(--muted); margin-bottom: 12px !important; word-break: break-all; }
.account-menu .btn { width: 100%; }
.top-btn:focus-visible, .gsi:focus-visible, .avatar:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* The buttons float in the header's top-right corner. On wide screens the
   header keeps clear of them so they never cover the meter. */
@media (min-width: 861px) {
  .top { padding-right: calc(clamp(16px, 4vw, 40px) + 200px); }
  .brand { flex: 1 1 200px; }
}
@media (min-width: 1200px) {
  .top { padding-right: calc(clamp(16px, 4vw, 40px) + 380px); }
}

@media (max-width: 860px) {
  /* Clear the corner buttons, which sit level with the title. */
  .tagline { flex-basis: 100%; margin-top: 4px; font-size: 14px; }
}

@media (max-width: 1199px) {
  .top-btn-label, #google-login .gsi-label { display: none; }
  .top-btn, #google-login { width: 40px; padding: 0; justify-content: center; gap: 0; }
  .top-btn { position: relative; }
  .top-btn .badge { position: absolute; top: -4px; right: -4px; }
}

.friends form { display: flex; flex-direction: column; gap: 10px; min-width: min(420px, calc(100vw - 76px)); }
.friends h3 { margin: 0; }
.friends .bin-hint { margin: 0; }
.friends .friend-list { max-height: 45vh; overflow-y: auto; }



.name-row { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.name-row input {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
}
.name-row input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }


.friend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.friend-list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 10px;
}
.friend-list button:hover { border-color: var(--accent); }
.friend-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }

.invite {
  position: relative;
  max-width: 1400px;
  margin: 16px auto 0;
  margin-inline: clamp(16px, 4vw, 40px);
  padding: 14px 44px 14px 16px;
  border-radius: var(--radius);
  background: var(--woo-soft);
  border: 1px solid var(--woo);
}
.invite p { margin: 0 0 8px; }
.invite .name-row { max-width: 320px; margin-bottom: 8px; }
#invite-text { color: var(--muted); font-size: 14px; }

.invite-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  width: 32px;
  height: 32px;
}

.detail-stats { font-weight: 600; }

.compare-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line);
  margin: 12px 0;
}
.seg { flex: 0 0 0; transition: flex-basis 0.5s; }
.seg.agree, .dot.agree { background: var(--trash); }
.seg.differ, .dot.differ { background: var(--woo); }
.seg.none { background: var(--line); }
.compare-key { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.compare-key div { display: flex; flex-direction: column; }
.compare-key dt { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.compare-key dd { margin: 0; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.none { background: var(--muted); }
.compare-summary { color: var(--muted); font-size: 14px; }
.compare h4 { margin: 12px 0 6px; }
.compare-diffs {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 40vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.compare-diffs li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
.pill { font-size: 12px; font-weight: 700; color: #fff; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.pill.yes { background: var(--woo); }
.pill.no { background: var(--trash); }

@media (max-width: 360px) {
  .mini-cat { display: none; }
}

.cat-icon { width: 22px; height: 22px; flex: none; display: block; }
.friends h3 { display: flex; align-items: center; gap: 8px; }
.friends h3 .cat-icon { width: 26px; height: 26px; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.add-friend-row { display: flex; gap: 8px; margin-top: 4px; }
.add-friend-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
}
.add-friend-row input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.compare-score { font-weight: 600; margin: 0 0 4px; }
.their-pile { margin-top: 12px; }
.their-pile summary { cursor: pointer; font-weight: 700; margin-bottom: 8px; }

.signin-prompt { width: min(420px, calc(100vw - 32px)); }
.signin-prompt h3 { margin: 0 0 8px; }
.signin-prompt p { margin: 0; color: var(--muted); }
.signin-prompt .detail-actions { align-items: center; }
