/* Plum. Light by default; dark follows the system unless the viewer picked a theme
   (data-theme on <html>, set by the toggle in the header). */
:root {
  color-scheme: light;
  --bg: #f7f4f8;
  --surface: #ffffff;
  --text: #221a26;
  --muted: #6a5f6f;
  --border: #e6dfe8;
  --accent: #7a3f8f;
  --on-accent: #ffffff;
  --accent-soft: #efe2f3;
  --row-hover: #faf7fb;
  --bar-bg: #ece5ee;
  --chip: #f1ebf3;
  --open-bg: #efe3f3;
  --incoming: #2f5f8a;
  --incoming-bg: #e1ecf6;
  --owned: #2d6a3e;
  --owned-bg: #e2f1e5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #171219;
    --surface: #201a23;
    --text: #ece4ef;
    --muted: #a598ab;
    --border: #362d3a;
    --accent: #c58ad8;
    --on-accent: #171219;
    --accent-soft: #34233b;
    --row-hover: #27202a;
    --bar-bg: #362d3a;
    --chip: #2b232e;
    --open-bg: #2e2234;
    --incoming: #8cb8e0;
    --incoming-bg: #1f2c38;
    --owned: #8fd3a0;
    --owned-bg: #1c3122;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171219;
  --surface: #201a23;
  --text: #ece4ef;
  --muted: #a598ab;
  --border: #362d3a;
  --accent: #c58ad8;
  --on-accent: #171219;
  --accent-soft: #34233b;
  --row-hover: #27202a;
  --bar-bg: #362d3a;
  --chip: #2b232e;
  --open-bg: #2e2234;
  --incoming: #8cb8e0;
  --incoming-bg: #1f2c38;
  --owned: #8fd3a0;
  --owned-bg: #1c3122;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* ---- The frame: a top bar across, a rail of icons down the left, the page beside it ----
   Colours come from the --shell-* tokens (generated with the palettes, so a group's page wears its own). */
body { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "top top" "rail main"; min-height: 100vh; }
body.no-rail { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main"; }
.topbar {
  grid-area: top; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 52px; padding: 0 16px 0 14px; background: var(--shell-bg); color: var(--shell-text); border-bottom: 1px solid var(--shell-line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--shell-text); font-size: 16px; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--shell-active); font-size: 17px; }
.topbar-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-who { color: var(--shell-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-link { color: var(--shell-text); font-size: 13px; font-weight: 600; border: 1px solid var(--shell-line); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.topbar-link:hover { background: var(--shell-active); text-decoration: none; }
.topbar .theme-btn { background: var(--shell-active); color: var(--shell-text); border-color: var(--shell-line); }
.topbar .theme-btn:hover { color: var(--shell-text); border-color: var(--shell-muted); }
.topbar :focus-visible, .rail :focus-visible { outline: 2px solid var(--shell-text); outline-offset: 2px; }

.rail {
  grid-area: rail; position: sticky; top: 52px; height: calc(100vh - 52px); width: 88px; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 10px 8px;
  background: var(--shell-bg); border-right: 1px solid var(--shell-line);
}
.rail-main, .rail-foot, .rail-pins { display: flex; flex-direction: column; gap: 4px; }
.rail-pins { padding: 6px 0; margin: 2px 0; border-block: 1px solid var(--shell-line); }
.rail-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 10px;
  color: var(--shell-muted); font-size: 11px; font-weight: 600; text-align: center; line-height: 1.2;
}
.rail-item:hover { background: var(--shell-line); color: var(--shell-text); text-decoration: none; }
.rail-item[aria-current="page"] { background: var(--shell-active); color: var(--shell-text); }
.rail-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-emoji { font-size: 21px; line-height: 22px; }
.rail-mono { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 12px; }
.rail-pin { position: relative; }
.rail-unpin {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--shell-active); color: var(--shell-text); font-size: 14px; line-height: 1; opacity: 0;
}
.rail-pin:hover .rail-unpin, .rail-unpin:focus-visible { opacity: 1; }

main { grid-area: main; width: 100%; max-width: 1240px; margin: 0 auto; padding: 24px 24px 48px; min-width: 0; }
main.narrow { max-width: 860px; }

/* Page header: an icon tile, a breadcrumb, the title, and actions (Pin) on the right */
.page-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.page-icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); font-size: 24px;
}
.page-icon.mono { font-size: 20px; font-weight: 700; }
.page-head-text { flex: 1; min-width: 0; }
.crumb { margin: 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); }
h1 { margin: 0; font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; }
:root[data-palette] h1 { color: var(--accent); }
.page-sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.page-actions:empty { display: none; }
.pin-btn {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--accent); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px 4px 8px;
}
.pin-btn svg { width: 18px; height: 18px; }
.pin-btn:hover { border-color: var(--accent); }
.pin-btn.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pin-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.list-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* Tabs under a page header (Settings: Account, Groups, Admin) */
.tabs { display: flex; gap: 4px; margin: 18px 0 0; border-bottom: 1px solid var(--border); overflow-x: auto; overflow-y: hidden; }
.tab {
  padding: 8px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; white-space: nowrap;
  color: var(--muted); font-size: 14px; font-weight: 600;
}
.tab:hover { color: var(--accent); text-decoration: none; }
.tab[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px; }
.tabs + #view > .panel:first-child { margin-top: 16px; }

/* Summary cards above a list */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 20px 0 4px; }
.card-picks { grid-column: span 2; }
.card {
  display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 12px 14px; text-align: left;
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.card p { margin: 0; }
.card-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.card-num { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.card-sub { font-size: 12px; color: var(--muted); }
.card-btn { cursor: pointer; }
.card-btn:not(:disabled) .card-num { color: var(--incoming); }
.card-btn:not(:disabled):hover { border-color: var(--incoming); }
.card-btn:disabled { cursor: default; }
.card-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.picks-mini { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 14px; }
.picks-mini li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.picks-mini .link-btn { margin: 0; font-size: 14px; font-weight: 600; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-rating { font-size: 12px; font-weight: 700; color: var(--owned); font-variant-numeric: tabular-nums; }

/* BGG rating as a round badge in the table: 8 and up green, 7 to 8 the accent, below that grey */
.rating { display: inline-grid; place-items: center; min-width: 36px; height: 24px; padding: 0 6px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.rating.hi { background: var(--owned-bg); color: var(--owned); }
.rating.mid { background: var(--accent-soft); color: var(--accent); }
.rating.lo { background: var(--chip); color: var(--muted); }

.theme-btn {
  font: inherit; font-size: 13px; color: var(--text); background: var(--surface); cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Phones: the rail becomes a bar along the bottom with the main places; pinned groups are on Groups. */
@media (max-width: 720px) {
  body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main"; }
  .topbar { height: 48px; padding: 0 12px; }
  .topbar-who { display: none; }
  .rail {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 30; width: auto; height: auto; overflow: visible;
    flex-direction: row; justify-content: space-around; padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid var(--shell-line);
  }
  .rail-main, .rail-foot { flex-direction: row; gap: 2px; }
  .rail-main { flex: 1; justify-content: space-around; }
  .rail-pins, .rail-hide-sm { display: none; }
  .rail-item { padding: 6px 10px; }
  body:not(.no-rail) main { padding-bottom: 88px; }
  main { padding: 16px 16px 40px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-picks { grid-column: 1 / -1; }
  .card-num { font-size: 22px; }
  h1 { font-size: 22px; }
}

/* Incoming games dialog */
/* Only the list scrolls: the dialog itself never does. */
.dlg {
  width: min(500px, calc(100vw - 32px)); max-height: min(85vh, 720px); padding: 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}
.dlg[open] { display: flex; flex-direction: column; }
.dlg::backdrop { background: rgba(23, 18, 25, 0.5); backdrop-filter: blur(2px); }
.dlg-inner { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--border); }
.dlg-head h2 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.dlg-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.dlg-close { border: 0; background: var(--chip); color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; width: 32px; height: 32px; border-radius: 999px; flex: none; }
.dlg-close:hover { color: var(--accent); background: var(--accent-soft); }
.dlg-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.inc-list {
  overflow-y: auto; overscroll-behavior: contain; padding: 4px 12px 14px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.inc-group h3 {
  margin: 14px 8px 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--incoming);
}
.inc-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.inc-item {
  display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; cursor: pointer;
  font: inherit; color: var(--text); background: none; border: 0; border-radius: 10px; padding: 8px 10px;
}
.inc-item:hover { background: var(--accent-soft); }
.inc-item:hover .inc-title { color: var(--accent); }
.inc-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.inc-item .thumb { width: 48px; height: 48px; border-radius: 8px; box-shadow: 0 0 0 1px var(--border); }
.inc-body { display: block; min-width: 0; flex: 1; }
.inc-title { display: block; font-weight: 600; line-height: 1.3; }
.inc-meta { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.inc-chev { flex: none; color: var(--muted); font-size: 20px; line-height: 1; }

/* Add game dialog: same rows as the incoming dialog, with an Add label on the right */
.add-search { display: flex; gap: 8px; padding: 14px 20px 0; }
.add-search input {
  flex: 1; min-width: 0; box-sizing: border-box; height: 38px; font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 0 10px;
}
.add-search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.add-search .btn { height: 38px; padding-block: 0; }
.add-status { margin: 8px 20px 0; min-height: 1.4em; font-size: 13px; color: var(--muted); }
.add-results {
  list-style: none; margin: 4px 0 0; padding: 0 12px 8px; display: grid; gap: 2px; align-content: start;
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.add-results:empty { display: none; }
.add-item:disabled { cursor: default; }
.add-item:disabled:hover { background: none; }
.add-item:disabled:hover .inc-title { color: var(--text); }
.add-act { flex: none; font-size: 13px; font-weight: 600; color: var(--accent); }
.add-item:disabled .add-act { color: var(--muted); font-weight: 400; }
/* Searching: tinted boxes where the content will be, with a light band sweeping across */
.sk {
  display: block; border-radius: 6px;
  background: linear-gradient(100deg, var(--chip) 30%, var(--accent-soft) 50%, var(--chip) 70%) var(--chip);
  background-size: 300% 100%; animation: sk-shimmer 1.4s ease-in-out infinite;
}
.add-skeleton .inc-item { cursor: default; }
.add-skeleton .inc-item:hover { background: none; }
.add-skeleton .thumb { box-shadow: none; }
.sk-title { height: 15px; width: 60%; margin: 2px 0 8px; }
.sk-meta { height: 12px; width: 85%; }
.sk-act { flex: none; width: 32px; height: 13px; }
@keyframes sk-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
.add-foot { margin: 0; padding: 12px 20px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); }
tr.game:focus { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Box art in a game's details */
.detail-top { display: flex; gap: 16px; align-items: flex-start; }
.detail-main { flex: 1; min-width: 0; }
.box-art { flex: none; display: block; width: 240px; max-width: 40%; }
.box-art img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: contain; object-position: left top; border-radius: 8px; }
@media (max-width: 560px) {
  .detail-top { flex-direction: column; }
  .box-art { width: 200px; max-width: 100%; }
}


.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 14px; text-align: left; white-space: nowrap; vertical-align: top; }
th {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted);
  border-bottom: 1px solid var(--border); cursor: pointer; user-select: none;
}
th[aria-sort="ascending"]::after { content: " ▲"; }
th[aria-sort="descending"]::after { content: " ▼"; }
td { border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: 0; }
tr.game, tr.xrow { cursor: pointer; }
/* A game with expansions spans two rows (the game, then its pills); they hover and open together. */
tr.game:hover, tr.game:hover + tr.xrow, tr.xrow:hover, tr.game:has(+ tr.xrow:hover) { background: var(--row-hover); }
tr.game.has-x td { border-bottom-color: transparent; padding-bottom: 4px; }
tr.xrow td { padding-top: 0; padding-left: 70px; }
/* An open game reads as a drawer: plum tint, plum bar down the left, details on a card. */
tr.game.open, tr.xrow.open, tr.xrow.open:hover, tr.details { background: var(--open-bg); }
tr.game.open td, tr.xrow.open td { border-bottom-color: transparent; }
tr.game.open td:first-child, tr.xrow.open td, tr.details td { box-shadow: inset 4px 0 0 var(--accent); }
tr.game.open strong { color: var(--accent); }
td.title { white-space: normal; min-width: 200px; }
.title-wrap { display: flex; gap: 12px; align-items: flex-start; }
.thumb { width: 44px; height: 44px; flex: none; border-radius: 6px; object-fit: cover; background: var(--chip); }
.votes { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 8px; font-size: 13px; }
.votes > b { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 500; min-width: 84px; }
.vote { padding: 1px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.vote.best { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.vote.good { background: var(--accent-soft); color: var(--accent); }
.vote.not { background: var(--chip); color: var(--muted); text-decoration: line-through; }
/* One expansions list: owned (green) and incoming (blue) first, then the ones BGG lists that we don't own (greyed). */
.expansions { margin-top: 12px; }
.exp-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.exp-head b { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 500; }
.exp-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.exp { display: flex; flex-direction: column; gap: 1px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); font-size: 14px; min-width: 0; }
.exp a { overflow-wrap: anywhere; }
.exp .why { font-size: 12px; }
.exp-state { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.exp.owned { background: var(--owned-bg); border-color: transparent; }
.exp.owned a, .exp.owned .exp-state { color: var(--owned); }
.exp.owned a { font-weight: 600; }
.exp.incoming { background: var(--incoming-bg); border-color: transparent; }
.exp.incoming a, .exp.incoming .exp-state { color: var(--incoming); }
.exp.missing { border-style: dashed; }
.exp.missing a { color: var(--muted); }
.exp.missing a:hover { color: var(--accent); }
.exp.missing .price:empty { display: none; }
.exp.missing .price a { color: var(--accent); font-weight: 600; }
.price-credit { margin-left: auto; font-size: 12px; color: var(--muted); }
.price-credit img { height: 14px; vertical-align: -2px; margin-right: 4px; }
.exp-more { margin-top: 6px; }
.exp-more summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.exp-more .exp-list { margin-top: 8px; }
td.title strong { font-weight: 600; }
.year { color: var(--muted); font-size: 13px; margin-left: 4px; }
.links { font-size: 13px; display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 2px; }
/* Expansion pills on each row: owned green, incoming blue, not owned greyed and dashed */
.xpills { display: flex; flex-wrap: wrap; gap: 4px; }
.xpill {
  font-size: 12px; line-height: 1.6; padding: 0 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted);
  white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis;
}
.xpill.owned { background: var(--owned-bg); color: var(--owned); border-color: transparent; font-weight: 600; }
.xpill.incoming { background: var(--incoming-bg); color: var(--incoming); border-color: transparent; font-weight: 600; }
.xpill.missing { border-style: dashed; }
.xpill.more { background: var(--chip); color: var(--text); border-color: transparent; }
.exp-range { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; }
.incoming-badge { display: inline-block; margin: 4px 6px 0 0; padding: 0 8px; border-radius: 6px; background: var(--incoming-bg); color: var(--incoming); font-size: 12px; font-weight: 600; }
tr.game.incoming strong { color: var(--muted); }
td.num { font-variant-numeric: tabular-nums; }
.dim { color: var(--muted); }

.best { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
.weight { display: flex; align-items: center; gap: 8px; }
.bar { width: 50px; height: 6px; border-radius: 3px; background: var(--bar-bg); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); }

tr.details td { white-space: normal; padding: 0 14px 14px 18px; border-bottom: 1px solid var(--border); }
.detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 10px; font-size: 14px; }
.facts span b { color: var(--muted); font-weight: 500; margin-right: 4px; }
.tag-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 6px; }
.tag-group > b { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 500; min-width: 84px; }
.chip { padding: 1px 10px; border-radius: 999px; background: var(--chip); font-size: 13px; border: 0; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.chip:hover { background: var(--accent-soft); color: var(--accent); }
.family .chip { color: var(--muted); cursor: default; }
.family .chip:hover { background: var(--chip); color: var(--muted); }

.like { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
.like > b { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 500; }
.like ol { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.like li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 14px; }
.why { color: var(--muted); font-size: 13px; }
.open-game { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; font-weight: 600; text-align: left; }
.open-game:hover { text-decoration: underline; }
.note { color: var(--muted); font-size: 13px; margin-top: 6px; }

.combo { position: relative; width: 260px; max-width: 100%; }
.combo input { width: 100%; padding-right: 30px; text-transform: none; letter-spacing: 0; }
.combo .clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 4px;
}
.combo ul {
  position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 280px; overflow-y: auto; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text);
}
.combo li { padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.combo li[aria-selected="true"], .combo li:hover { background: var(--accent-soft); color: var(--accent); }
.combo li mark { background: none; color: inherit; font-weight: 700; }
.combo li small { display: block; color: var(--muted); font-size: 12px; }
.combo li.none { color: var(--muted); cursor: default; background: none; }

.pchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 2px; border-radius: 999px; background: var(--chip); font-size: 13px; }
.pchip button { border: 0; background: none; font: inherit; cursor: pointer; color: inherit; }
.pchip .mode { padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--on-accent); background: var(--accent); }
.pchip.prefer .mode { background: var(--muted); }
.pchip.not .mode { background: var(--text); color: var(--bg); }
.pchip.not { text-decoration: line-through; text-decoration-color: var(--muted); }
.pchip .remove { color: var(--muted); font-size: 15px; line-height: 1; padding: 0 4px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--accent); cursor: pointer; margin-top: 6px; }
.link-btn:hover { text-decoration: underline; }

.empty { padding: 40px 16px; text-align: center; color: var(--muted); }
footer { margin-top: 20px; font-size: 13px; color: var(--muted); }

/* Smart box: one input for searching and asking */
.smart { position: relative; margin-top: 22px; }
.smart input {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px 12px 40px;
}
.smart input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.smart-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-52%); font-size: 20px; color: var(--muted); pointer-events: none; }
.smart-hint { min-height: 20px; margin: 6px 2px 0; font-size: 13px; color: var(--muted); }
.smart-hint b { color: var(--text); font-weight: 600; }

/* Chip bar: compact filter menus */
.chipbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 14px; }
.cm { position: relative; display: inline-flex; }
.fchip {
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface); cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.fchip::after { content: " ▾"; color: var(--muted); font-size: 11px; }
.fchip.on { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.fchip:hover { border-color: var(--accent); }
.fchip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; border-radius: 999px 0 0 999px; padding-right: 8px; }
.fchip.on::after { content: ""; }
.fclear {
  font: inherit; font-size: 12px; cursor: pointer; color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent); border-left: 0; border-radius: 0 999px 999px 0; padding: 0 10px 0 6px;
}
.fclear:hover { background: var(--accent); color: var(--on-accent); }
.cm-pop {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 180px; max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}
.cm-pop.cm-wide { width: 300px; }
.cm-pop .combo { width: 100%; }
.cm-pop input {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px;
}
.cm-pop input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.pop-note { margin: 8px 2px 0; font-size: 12px; color: var(--muted); }
.pop-label { margin: 6px 2px 4px; font-size: 12px; color: var(--muted); }
.pop-label:first-child { margin-top: 0; }
.opt-grid { display: grid; grid-template-columns: repeat(4, 40px); gap: 6px; }
.opt-list { display: grid; gap: 2px; }
.opt {
  font: inherit; font-size: 14px; color: var(--text); background: none; cursor: pointer; text-align: left;
  border: 1px solid transparent; border-radius: 8px; padding: 6px 10px; white-space: nowrap;
}
.opt-grid .opt { text-align: center; padding: 6px 0; border-color: var(--border); }
.opt small { color: var(--muted); font-size: 12px; margin-left: 6px; }
.opt:hover, .opt:focus-visible { background: var(--accent-soft); color: var(--accent); }
.opt.sel { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.opt.sel small { color: inherit; }
.chipbar .pchips { margin: 0; }
.clear-all { margin: 0 0 0 4px; }

/* Suggestions strip: shown once a filter says what you're after */
.suggest { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.suggest-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.suggest-head h2 { margin: 0; font-size: 15px; }
.suggest-sub { color: var(--muted); font-size: 13px; }
.suggest-head .link-btn { margin: 0 0 0 auto; }
.suggest-list { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 4px; }
.suggest-list li { font-size: 14px; }
.suggest-list li::marker { color: var(--accent); font-weight: 700; }
.suggest-list .why { margin-left: 8px; }
.suggest-list li.note { list-style: none; margin-left: -22px; }

@media (max-width: 720px) {
  .col-hide-sm { display: none; }
  th, td { padding: 8px 10px; }
  .bar { display: none; }
  /* The table can be wider than a phone (it scrolls sideways). Keep the details card at screen width
     and pinned to the left, so its text wraps instead of running off the edge. */
  tr.details td { padding: 0 8px 12px 12px; }
  .detail-card { position: sticky; left: 12px; width: calc(100vw - 32px - 2px - 20px); }
  .exp-list { grid-template-columns: 1fr; }
  tr.xrow td { padding-left: 66px; }
  tr.xrow .xpills { position: sticky; left: 66px; max-width: calc(100vw - 32px - 66px - 12px); }
}

.single-owner .col-owner { display: none; }

/* Who's playing: a multi-select of the people on the page */
.opt.check::before { content: "☐ "; color: var(--muted); }
.opt.check.sel::before { content: "☑ "; color: inherit; }

/* Owners in a game's details, and editing your own copies */
.owners { margin-top: 10px; display: grid; gap: 4px; font-size: 14px; }
.owners > b, .mine > b { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 500; }
.owners .why { margin-left: 6px; }
.mine { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); display: grid; gap: 8px; }
.copy-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.copy-edit .copy-name { min-width: 160px; font-weight: 600; }
.copy-edit select, .copy-edit input {
  font: inherit; font-size: 14px; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px;
}
.copy-edit input[name="notes"] { flex: 1; min-width: 160px; }
.copy-edit select:focus, .copy-edit input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.btn {
  font: inherit; font-size: 14px; cursor: pointer; border-radius: 8px; padding: 5px 12px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
}
.btn.quiet { background: var(--surface); color: var(--accent); }
.btn.danger { background: var(--surface); color: var(--muted); border-color: var(--border); }
.btn.danger:hover { color: var(--accent); border-color: var(--accent); }
.btn:disabled { opacity: 0.6; cursor: default; }
.saved { color: var(--owned); font-size: 13px; }

/* Landing and management pages */
.group-list .group-tile { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.group-list .rail-emoji { font-size: 19px; }
.group-list .rail-mono { border: 0; width: auto; height: auto; font-size: 15px; font-weight: 700; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-top: 18px; }
.panel h2 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.panel h3 { margin: 16px 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; }
.panel p { margin: 6px 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
a.btn { display: inline-block; text-decoration: none; }
a.btn:hover { text-decoration: none; }
/* Group look: palette swatches and icon choices (radio buttons drawn as tiles). */
.choices { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { font-size: 13px; color: var(--muted); margin-bottom: 6px; padding: 0; }
.choices input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch, .icon-choice > span {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px;
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px 5px 6px; background: var(--surface);
}
.swatch .dot { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.icon-choice > span { padding: 4px 8px; border-radius: 10px; font-size: 22px; line-height: 1.2; min-width: 44px; justify-content: center; }
.icon-choice.none > span { font-size: 14px; padding: 8px 12px; }
.swatch:has(input:checked), .icon-choice input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.swatch:has(input:focus-visible), .icon-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.other-icon { flex-basis: 100%; max-width: 260px; margin-top: 4px; }
#look-form .actions { margin-top: 14px; align-items: center; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.inline-form input, .inline-form select, .field input, .field select {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px;
}
.inline-form input[type="text"], .inline-form input[type="url"] { flex: 1; min-width: 200px; }
.inline-form input:focus, .inline-form select:focus, .field input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.field { display: grid; gap: 4px; font-size: 14px; }
.tick-row { display: flex; gap: 8px; align-items: baseline; margin: 12px 0; }
/* Controls and buttons one height, so a row lines up; with labels above the inputs, along the bottom. */
.inline-form input:not([type="file"]), .inline-form select, .field input, .field select, .inline-form .btn { box-sizing: border-box; height: 36px; }
.inline-form .btn { padding-block: 0; }
.inline-form:has(> .field) { align-items: flex-end; }
.error { color: var(--accent); font-weight: 600; }
.ok { color: var(--owned); font-weight: 600; }
code { font-size: 13px; background: var(--chip); padding: 1px 5px; border-radius: 4px; }
.list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 10px; border-radius: 8px; }
.list li:hover { background: var(--row-hover); }
.list .grow { flex: 1; min-width: 0; }
.list .meta { color: var(--muted); font-size: 13px; }
.badge { display: inline-block; padding: 0 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.link-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.link-box input { flex: 1; min-width: 220px; font: inherit; font-size: 13px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; }
.progress { height: 8px; border-radius: 4px; background: var(--bar-bg); overflow: hidden; margin: 8px 0; }
.progress span { display: block; height: 100%; background: var(--accent); transition: width 0.3s; }
.counts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.counts b { font-size: 18px; margin-right: 4px; }
table.plain { width: 100%; border-collapse: collapse; font-size: 14px; }
table.plain th, table.plain td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; white-space: normal; cursor: default; }
table.plain th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.scroll-x { overflow-x: auto; }
.danger-zone { border-color: var(--border); }

/* ---- group palettes (generated by scripts/palettes.js; don't edit by hand) ---- */
:root {
  --shell-bg: #331b3c;
  --shell-line: #482555;
  --shell-active: #582d67;
  --shell-text: #ffffff;
  --shell-muted: #dac7e1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --shell-bg: #160d19;
    --shell-line: #2b1d30;
    --shell-active: #3a2442;
    --shell-text: #efeaf1;
    --shell-muted: #bdadc2;
  }
}
:root[data-theme="dark"] {
  --shell-bg: #160d19;
  --shell-line: #2b1d30;
  --shell-active: #3a2442;
  --shell-text: #efeaf1;
  --shell-muted: #bdadc2;
}
:root[data-palette="teal"] {
  --bg: #f4f8f8;
  --surface: #ffffff;
  --text: #1a2625;
  --muted: #55605f;
  --border: #dfe8e8;
  --accent: #2b6767;
  --on-accent: #ffffff;
  --accent-soft: #e2f3f3;
  --row-hover: #f7fbfb;
  --bar-bg: #e5eeee;
  --chip: #ebf3f3;
  --open-bg: #e3f3f3;
  --shell-bg: #1a3d3d;
  --shell-line: #245656;
  --shell-active: #2c6868;
  --shell-text: #ffffff;
  --shell-muted: #c7e1e1;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="teal"]:not([data-theme="light"]) {
    --bg: #121919;
    --surface: #1a2322;
    --text: #e4efef;
    --muted: #9eafae;
    --border: #2d3a39;
    --accent: #8ad7d8;
    --on-accent: #121919;
    --accent-soft: #233b3a;
    --row-hover: #202a2a;
    --bar-bg: #2d3a39;
    --chip: #232e2e;
    --open-bg: #223433;
    --shell-bg: #0d1919;
    --shell-line: #1d3030;
    --shell-active: #244242;
    --shell-text: #eaf1f1;
    --shell-muted: #adc2c2;
  }
}
:root[data-palette="teal"][data-theme="dark"] {
  --bg: #121919;
  --surface: #1a2322;
  --text: #e4efef;
  --muted: #9eafae;
  --border: #2d3a39;
  --accent: #8ad7d8;
  --on-accent: #121919;
  --accent-soft: #233b3a;
  --row-hover: #202a2a;
  --bar-bg: #2d3a39;
  --chip: #232e2e;
  --open-bg: #223433;
  --shell-bg: #0d1919;
  --shell-line: #1d3030;
  --shell-active: #244242;
  --shell-text: #eaf1f1;
  --shell-muted: #adc2c2;
}
:root[data-palette="forest"] {
  --bg: #f4f8f5;
  --surface: #ffffff;
  --text: #1b251d;
  --muted: #565f59;
  --border: #dfe8e2;
  --accent: #2f6941;
  --on-accent: #ffffff;
  --accent-soft: #e3f2e7;
  --row-hover: #f7fbf8;
  --bar-bg: #e5eee8;
  --chip: #ebf3ed;
  --open-bg: #e4f2e8;
  --shell-bg: #1b3c25;
  --shell-line: #265534;
  --shell-active: #2e663f;
  --shell-text: #ffffff;
  --shell-muted: #c7e1cf;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="forest"]:not([data-theme="light"]) {
    --bg: #121914;
    --surface: #1a231c;
    --text: #e5eee7;
    --muted: #9cac9f;
    --border: #2e3930;
    --accent: #8ed4a1;
    --on-accent: #121914;
    --accent-soft: #243a29;
    --row-hover: #212922;
    --bar-bg: #2e3930;
    --chip: #242d26;
    --open-bg: #233326;
    --shell-bg: #0d1911;
    --shell-line: #1d3023;
    --shell-active: #24422d;
    --shell-text: #eaf1ec;
    --shell-muted: #adc2b4;
  }
}
:root[data-palette="forest"][data-theme="dark"] {
  --bg: #121914;
  --surface: #1a231c;
  --text: #e5eee7;
  --muted: #9cac9f;
  --border: #2e3930;
  --accent: #8ed4a1;
  --on-accent: #121914;
  --accent-soft: #243a29;
  --row-hover: #212922;
  --bar-bg: #2e3930;
  --chip: #242d26;
  --open-bg: #233326;
  --shell-bg: #0d1911;
  --shell-line: #1d3023;
  --shell-active: #24422d;
  --shell-text: #eaf1ec;
  --shell-muted: #adc2b4;
}
:root[data-palette="ocean"] {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #1a2126;
  --muted: #555960;
  --border: #dfe3e8;
  --accent: #375b7f;
  --on-accent: #ffffff;
  --accent-soft: #e2eaf3;
  --row-hover: #f7f9fb;
  --bar-bg: #e5e9ee;
  --chip: #ebeff3;
  --open-bg: #e3ebf3;
  --shell-bg: #1a2b3c;
  --shell-line: #253d55;
  --shell-active: #2d4a67;
  --shell-text: #ffffff;
  --shell-muted: #c7d4e1;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="ocean"]:not([data-theme="light"]) {
    --bg: #121619;
    --surface: #1a1f23;
    --text: #e4eaef;
    --muted: #9ba6ad;
    --border: #2d343a;
    --accent: #8ab0d8;
    --on-accent: #121619;
    --accent-soft: #23303b;
    --row-hover: #20252a;
    --bar-bg: #2d343a;
    --chip: #23292e;
    --open-bg: #222c34;
    --shell-bg: #0d1319;
    --shell-line: #1d2630;
    --shell-active: #243342;
    --shell-text: #eaedf1;
    --shell-muted: #adb8c2;
  }
}
:root[data-palette="ocean"][data-theme="dark"] {
  --bg: #121619;
  --surface: #1a1f23;
  --text: #e4eaef;
  --muted: #9ba6ad;
  --border: #2d343a;
  --accent: #8ab0d8;
  --on-accent: #121619;
  --accent-soft: #23303b;
  --row-hover: #20252a;
  --bar-bg: #2d343a;
  --chip: #23292e;
  --open-bg: #222c34;
  --shell-bg: #0d1319;
  --shell-line: #1d2630;
  --shell-active: #243342;
  --shell-text: #eaedf1;
  --shell-muted: #adb8c2;
}
:root[data-palette="indigo"] {
  --bg: #f4f4f8;
  --surface: #ffffff;
  --text: #1a1a26;
  --muted: #585763;
  --border: #e0dfe8;
  --accent: #463f8f;
  --on-accent: #ffffff;
  --accent-soft: #e4e2f3;
  --row-hover: #f7f7fb;
  --bar-bg: #e6e5ee;
  --chip: #ecebf3;
  --open-bg: #e5e3f3;
  --shell-bg: #1d1b3c;
  --shell-line: #2a2555;
  --shell-active: #322d67;
  --shell-text: #ffffff;
  --shell-muted: #c9c7e1;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="indigo"]:not([data-theme="light"]) {
    --bg: #121219;
    --surface: #1a1a23;
    --text: #e5e4ef;
    --muted: #9c9bad;
    --border: #2d2d3a;
    --accent: #9e96db;
    --on-accent: #121219;
    --accent-soft: #24233b;
    --row-hover: #20202a;
    --bar-bg: #2d2d3a;
    --chip: #24232e;
    --open-bg: #222234;
    --shell-bg: #0e0d19;
    --shell-line: #1e1d30;
    --shell-active: #262442;
    --shell-text: #eaeaf1;
    --shell-muted: #afadc2;
  }
}
:root[data-palette="indigo"][data-theme="dark"] {
  --bg: #121219;
  --surface: #1a1a23;
  --text: #e5e4ef;
  --muted: #9c9bad;
  --border: #2d2d3a;
  --accent: #9e96db;
  --on-accent: #121219;
  --accent-soft: #24233b;
  --row-hover: #20202a;
  --bar-bg: #2d2d3a;
  --chip: #24232e;
  --open-bg: #222234;
  --shell-bg: #0e0d19;
  --shell-line: #1e1d30;
  --shell-active: #262442;
  --shell-text: #eaeaf1;
  --shell-muted: #afadc2;
}
:root[data-palette="rose"] {
  --bg: #f8f4f5;
  --surface: #ffffff;
  --text: #261a1f;
  --muted: #605559;
  --border: #e8dfe2;
  --accent: #8b3d58;
  --on-accent: #ffffff;
  --accent-soft: #f3e2e7;
  --row-hover: #fbf7f8;
  --bar-bg: #eee5e8;
  --chip: #f3ebee;
  --open-bg: #f3e3e8;
  --shell-bg: #3c1a26;
  --shell-line: #552536;
  --shell-active: #672d41;
  --shell-text: #ffffff;
  --shell-muted: #e1c7d0;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="rose"]:not([data-theme="light"]) {
    --bg: #191214;
    --surface: #231a1e;
    --text: #efe4e8;
    --muted: #ad9ba2;
    --border: #3a2d32;
    --accent: #d98ea6;
    --on-accent: #191214;
    --accent-soft: #3b232c;
    --row-hover: #2a2024;
    --bar-bg: #3a2d32;
    --chip: #2e2327;
    --open-bg: #342229;
    --shell-bg: #190d11;
    --shell-line: #301d23;
    --shell-active: #42242e;
    --shell-text: #f1eaec;
    --shell-muted: #c2adb4;
  }
}
:root[data-palette="rose"][data-theme="dark"] {
  --bg: #191214;
  --surface: #231a1e;
  --text: #efe4e8;
  --muted: #ad9ba2;
  --border: #3a2d32;
  --accent: #d98ea6;
  --on-accent: #191214;
  --accent-soft: #3b232c;
  --row-hover: #2a2024;
  --bar-bg: #3a2d32;
  --chip: #2e2327;
  --open-bg: #342229;
  --shell-bg: #190d11;
  --shell-line: #301d23;
  --shell-active: #42242e;
  --shell-text: #f1eaec;
  --shell-muted: #c2adb4;
}
:root[data-palette="copper"] {
  --bg: #f8f6f4;
  --surface: #ffffff;
  --text: #261e1a;
  --muted: #605955;
  --border: #e8e3df;
  --accent: #7b5235;
  --on-accent: #ffffff;
  --accent-soft: #f3e9e2;
  --row-hover: #fbf9f7;
  --bar-bg: #eee9e5;
  --chip: #f3eeeb;
  --open-bg: #f3e9e3;
  --shell-bg: #3d281a;
  --shell-line: #563925;
  --shell-active: #67452d;
  --shell-text: #ffffff;
  --shell-muted: #e1d1c7;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="copper"]:not([data-theme="light"]) {
    --bg: #191412;
    --surface: #231d1a;
    --text: #efe8e4;
    --muted: #ada19b;
    --border: #3a312d;
    --accent: #d8a88a;
    --on-accent: #191412;
    --accent-soft: #3b2b23;
    --row-hover: #2a2320;
    --bar-bg: #3a312d;
    --chip: #2e2723;
    --open-bg: #342722;
    --shell-bg: #19120d;
    --shell-line: #30251d;
    --shell-active: #423024;
    --shell-text: #f1edea;
    --shell-muted: #c2b6ad;
  }
}
:root[data-palette="copper"][data-theme="dark"] {
  --bg: #191412;
  --surface: #231d1a;
  --text: #efe8e4;
  --muted: #ada19b;
  --border: #3a312d;
  --accent: #d8a88a;
  --on-accent: #191412;
  --accent-soft: #3b2b23;
  --row-hover: #2a2320;
  --bar-bg: #3a312d;
  --chip: #2e2723;
  --open-bg: #342722;
  --shell-bg: #19120d;
  --shell-line: #30251d;
  --shell-active: #423024;
  --shell-text: #f1edea;
  --shell-muted: #c2b6ad;
}
:root[data-palette="slate"] {
  --bg: #f5f6f7;
  --surface: #ffffff;
  --text: #1e2022;
  --muted: #5b5b5e;
  --border: #e2e3e5;
  --accent: #515b69;
  --on-accent: #ffffff;
  --accent-soft: #e8eaed;
  --row-hover: #f8f9fa;
  --bar-bg: #e8e9eb;
  --chip: #eeeff0;
  --open-bg: #e8eaee;
  --shell-bg: #262a31;
  --shell-line: #353c45;
  --shell-active: #404853;
  --shell-text: #ffffff;
  --shell-muted: #ced3d9;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="slate"]:not([data-theme="light"]) {
    --bg: #141517;
    --surface: #1d1e20;
    --text: #e8e9eb;
    --muted: #a1a4a7;
    --border: #313336;
    --accent: #a3aebf;
    --on-accent: #141517;
    --accent-soft: #2b2f33;
    --row-hover: #232527;
    --bar-bg: #313336;
    --chip: #27282a;
    --open-bg: #282b2e;
    --shell-bg: #111316;
    --shell-line: #21252b;
    --shell-active: #2c323a;
    --shell-text: #eaedf1;
    --shell-muted: #adb6c2;
  }
}
:root[data-palette="slate"][data-theme="dark"] {
  --bg: #141517;
  --surface: #1d1e20;
  --text: #e8e9eb;
  --muted: #a1a4a7;
  --border: #313336;
  --accent: #a3aebf;
  --on-accent: #141517;
  --accent-soft: #2b2f33;
  --row-hover: #232527;
  --bar-bg: #313336;
  --chip: #27282a;
  --open-bg: #282b2e;
  --shell-bg: #111316;
  --shell-line: #21252b;
  --shell-active: #2c323a;
  --shell-text: #eaedf1;
  --shell-muted: #adb6c2;
}
/* ---- end of group palettes ---- */
