/* ---- Reset / base ------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .2s var(--ease), color .2s var(--ease);
}
button { font-family: inherit; }
::selection { background: var(--accent-ring); }

/* thin scrollbars */
.scroll { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.scroll::-webkit-scrollbar-thumb {
  background: var(--border-strong); border-radius: 8px;
  border: 3px solid transparent; background-clip: content-box;
}
.scroll::-webkit-scrollbar-thumb:hover { background: var(--fg-faint); background-clip: content-box; }

/* ---- App shell ---------------------------------------------------------- */
.app {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  grid-template-rows: var(--header-h) 1fr var(--status-h);
  height: 100vh;
  overflow: hidden;
}

/* ===== Header ============================================================ */
.hdr {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: var(--rail) 1fr auto;
  align-items: center;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  z-index: 30;
}
.hdr__brand {
  display: flex; align-items: center; gap: 10px;
  padding-left: 18px; height: 100%;
  text-decoration: none; color: var(--fg-strong);
}
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(150deg, var(--accent), var(--accent-strong));
  display: grid; place-items: center; flex: none;
  box-shadow: var(--sh-1);
}
.brand-mark svg { width: 15px; height: 15px; display: block; }
.brand-name { font-weight: 650; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.brand-name b { font-weight: 650; }
.brand-name span { color: var(--fg-dim); font-weight: 500; }

.hdr__center { display: flex; justify-content: center; padding: 0 20px; }
.searchbox {
  display: flex; align-items: center; gap: 9px;
  width: 100%; max-width: 460px; height: 34px;
  padding: 0 12px;
  background: var(--bg-sunken);
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--fg-dim);
  cursor: text;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.searchbox:hover { background: var(--bg-hover); }
.searchbox:focus-within { background: var(--bg-card); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.searchbox svg { width: 15px; height: 15px; flex: none; opacity: .8; }
.searchbox input { flex: 1; border: 0; background: none; outline: none; font: inherit; color: var(--fg); }
.searchbox input::placeholder { color: var(--fg-faint); }
.kbd {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--fg-faint); background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 5px;
  padding: 2px 5px; line-height: 1; flex: none;
}

.hdr__right { display: flex; align-items: center; gap: 4px; padding-right: 12px; height: 100%; }
.nav { display: flex; align-items: center; gap: 2px; margin-right: 6px; }
.nav a {
  display: flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px; border-radius: 8px;
  text-decoration: none; color: var(--fg-dim); font-weight: 550; font-size: 13.5px;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.nav a:hover { background: var(--bg-hover); color: var(--fg); }
.nav a.is-active { background: var(--accent-soft); color: var(--accent-strong); }
[data-theme="dark"] .nav a.is-active { color: var(--accent); }
.nav svg { width: 16px; height: 16px; }

.hdr__divider { width: 1px; height: 22px; background: var(--border); margin: 0 8px; }

.acct {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 8px 0 5px; border-radius: 9px;
  cursor: pointer; transition: background .12s var(--ease);
}
.acct:hover { background: var(--bg-hover); }
.avatar {
  width: 27px; height: 27px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  color: #fff; font-weight: 650; font-size: 12px;
  background: linear-gradient(150deg, var(--accent), var(--accent-strong));
}
.acct__meta { display: flex; flex-direction: column; line-height: 1.15; }
.acct__name { font-weight: 600; font-size: 13px; color: var(--fg-strong); }
.acct__sub { font-size: 11px; color: var(--fg-faint); }
.acct__chev { width: 14px; height: 14px; color: var(--fg-faint); }

/* ===== Rail ============================================================== */
.rail {
  grid-row: 2 / 3;
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 14px 12px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.rail__sect {
  font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg-faint); padding: 12px 8px 4px;
  display: flex; align-items: center; justify-content: space-between;
}
.rail__sect:first-child { padding-top: 2px; }
.rail__sect button {
  border: 0; background: none; color: var(--fg-faint); cursor: pointer;
  width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center;
}
.rail__sect button:hover { background: var(--bg-hover); color: var(--fg); }

.rlink {
  display: flex; align-items: center; gap: 9px;
  height: 32px; padding: 0 8px; border-radius: 8px;
  color: var(--fg); font-size: 13.5px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: background .1s var(--ease);
}
.rlink:hover { background: var(--bg-hover); }
.rlink.is-active { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
[data-theme="dark"] .rlink.is-active { color: var(--fg-strong); }
.rlink__icon { width: 17px; height: 17px; flex: none; color: var(--fg-dim); display: grid; place-items: center; }
.rlink.is-active .rlink__icon { color: var(--accent); }
.rlink__label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rlink__count {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
}
.rlink.is-active .rlink__count { color: var(--accent-strong); }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--healthy { background: var(--success); }
.dot--warning { background: var(--warn); }
.dot--failing { background: var(--danger); }
.dot--stale   { background: var(--stale); }
.dot--paused  { background: var(--paused); }
.rlink--health .rlink__icon { width: auto; }

.rail__empty { color: var(--fg-faint); font-size: 12.5px; padding: 4px 8px; line-height: 1.5; }
.rail__empty a { color: var(--accent); text-decoration: none; font-weight: 550; }
.rail__empty a:hover { text-decoration: underline; }

/* ===== Main ============================================================== */
.main { grid-row: 2 / 3; overflow-y: auto; background: var(--bg); }
.main__inner { max-width: 1160px; padding: 22px 28px 60px; margin: 0 auto; }

/* --- add bar --- */
.addbar { display: flex; gap: 10px; align-items: stretch; margin-bottom: 16px; }
.addbar__field {
  flex: 1; display: flex; align-items: center; gap: 11px;
  height: 46px; padding: 0 16px;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--r-md); box-shadow: var(--sh-1);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.addbar__field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.addbar__field svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.addbar__field input { flex: 1; border: 0; background: none; outline: none; font: inherit; font-size: 14.5px; color: var(--fg); }
.addbar__field input::placeholder { color: var(--fg-faint); }
.addbar__hint { font-size: 11px; color: var(--fg-faint); flex: none; font-family: var(--font-mono); }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: background .12s var(--ease), border-color .12s var(--ease), color .12s var(--ease), transform .06s var(--ease);
}
.btn:active { transform: translateY(.5px); }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--accent); color: var(--accent-fg); box-shadow: var(--sh-1); }
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost { background: transparent; color: var(--fg-dim); }
.btn--ghost:hover { background: var(--bg-hover); color: var(--fg); }
.btn--soft { background: var(--bg-card); color: var(--fg); border-color: var(--border-strong); box-shadow: var(--sh-1); }
.btn--soft:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.btn--lg { height: 46px; padding: 0 20px; font-size: 14px; border-radius: var(--r-md); }
.btn--sm { height: 30px; padding: 0 11px; font-size: 12.5px; }

/* --- toolbar --- */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar__search {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 11px; min-width: 220px; flex: 1; max-width: 340px;
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
}
.toolbar__search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.toolbar__search svg { width: 15px; height: 15px; color: var(--fg-faint); flex: none; }
.toolbar__search input { flex: 1; border: 0; background: none; outline: none; font: inherit; color: var(--fg); }
.toolbar__search input::placeholder { color: var(--fg-faint); }
.toolbar__spacer { flex: 1; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 550; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--border-strong); color: var(--fg-dim);
  transition: all .12s var(--ease);
}
.chip:hover { background: var(--bg-hover); color: var(--fg); }
.chip.is-on { background: var(--accent-soft); border-color: color-mix(in oklab, var(--accent), transparent 55%); color: var(--accent-strong); }
[data-theme="dark"] .chip.is-on { color: var(--accent); }
.chip__count { font-family: var(--font-mono); font-size: 11px; opacity: .7; }

/* segmented density switch */
.seg { display: inline-flex; padding: 2px; gap: 2px; background: var(--bg-sunken); border-radius: 8px; border: 1px solid var(--border); }
.seg button {
  display: grid; place-items: center; width: 30px; height: 28px;
  border: 0; background: none; border-radius: 6px; cursor: pointer; color: var(--fg-faint);
  transition: background .12s var(--ease), color .12s var(--ease);
}
.seg button svg { width: 16px; height: 16px; }
.seg button:hover { color: var(--fg); }
.seg button.is-on { background: var(--bg-card); color: var(--accent); box-shadow: var(--sh-1); }

.select {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 10px; border-radius: var(--r-sm);
  background: var(--bg-card); border: 1px solid var(--border-strong); color: var(--fg-dim);
  font-size: 12.5px; font-weight: 550; cursor: pointer;
}
.select:hover { background: var(--bg-hover); color: var(--fg); }
.select svg { width: 14px; height: 14px; opacity: .7; }
.select b { color: var(--fg); font-weight: 600; }

/* result meta line */
.listmeta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 0 2px; }
.listmeta__count { font-size: 12.5px; color: var(--fg-dim); }
.listmeta__count b { color: var(--fg-strong); font-weight: 600; }

/* group header */
.grouphdr {
  display: flex; align-items: center; gap: 9px;
  margin: 18px 2px 9px; font-size: 12px; font-weight: 650;
  letter-spacing: .03em; text-transform: uppercase; color: var(--fg-dim);
}
.grouphdr:first-child { margin-top: 2px; }
.grouphdr__count { font-family: var(--font-mono); font-weight: 500; color: var(--fg-faint); letter-spacing: 0; }
.grouphdr__rule { flex: 1; height: 1px; background: var(--border); }

/* ===== Feed list : shared ============================================== */
.flist { display: flex; flex-direction: column; }

/* avatar tile (source) */
.ftile {
  flex: none; display: grid; place-items: center;
  border-radius: var(--r-sm); color: #fff; font-weight: 700;
  font-size: 14px; letter-spacing: -.02em; position: relative; overflow: hidden;
}
.ftile svg { width: 56%; height: 56%; }

/* source type chip */
.tchip {
  display: inline-flex; align-items: center; height: 18px; padding: 0 7px;
  border-radius: 5px; font-size: 10.5px; font-weight: 650; letter-spacing: .02em;
  text-transform: uppercase; flex: none;
}

/* health badge / pill */
.hbadge {
  display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px 0 7px;
  border-radius: 999px; font-size: 11px; font-weight: 600; flex: none;
}
.hbadge .dot { width: 6px; height: 6px; }
.hbadge--healthy { background: var(--success-soft); color: color-mix(in oklab, var(--success), #000 18%); }
.hbadge--warning { background: var(--warn-soft); color: color-mix(in oklab, var(--warn), #000 20%); }
.hbadge--failing { background: var(--danger-soft); color: color-mix(in oklab, var(--danger), #000 12%); }
.hbadge--stale   { background: var(--bg-sunken); color: var(--stale); }
.hbadge--paused  { background: var(--bg-sunken); color: var(--paused); }
[data-theme="dark"] .hbadge--healthy { color: var(--success); }
[data-theme="dark"] .hbadge--warning { color: var(--warn); }
[data-theme="dark"] .hbadge--failing { color: var(--danger); }

/* stats */
.stats { display: flex; align-items: center; gap: 14px; }
.stat { display: flex; align-items: baseline; gap: 4px; font-size: 12.5px; color: var(--fg-faint); white-space: nowrap; }
.stat b { color: var(--fg-dim); font-weight: 600; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.stat--accent b { color: var(--fg-strong); }

/* inline error chip (failing) */
.errchip {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px;
  border-radius: 6px; font-size: 12px; font-weight: 550;
  background: var(--danger-soft); color: color-mix(in oklab, var(--danger), #000 10%);
}
[data-theme="dark"] .errchip { color: var(--danger); }
.errchip svg { width: 13px; height: 13px; }

/* row actions */
.factions { display: flex; align-items: center; gap: 6px; flex: none; }
.iconbtn {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: var(--r-sm); border: 1px solid transparent; background: transparent;
  color: var(--fg-dim); cursor: pointer; transition: all .12s var(--ease);
}
.iconbtn:hover { background: var(--bg-hover); color: var(--fg); }
.iconbtn svg { width: 17px; height: 17px; }

.checkbox {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border-strong);
  background: var(--bg-card); cursor: pointer; flex: none; display: grid; place-items: center;
  transition: all .12s var(--ease);
}
.checkbox:hover { border-color: var(--accent); }
.checkbox.is-on { background: var(--accent); border-color: var(--accent); }
.checkbox svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.checkbox.is-on svg { opacity: 1; }

/* ===== Density : CARDS ================================================== */
.flist--cards { gap: 9px; }
.fcard {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center; gap: 16px;
  padding: 14px 16px 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  cursor: pointer;
  transition: border-color .12s var(--ease), box-shadow .12s var(--ease), transform .08s var(--ease);
}
.fcard[data-sel="1"] { grid-template-columns: auto 40px minmax(0, 1fr) auto auto; }
.fcard:hover { border-color: var(--border-strong); box-shadow: var(--sh-2); }
.fcard::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
  border-radius: 0 3px 3px 0;
}
.fcard[data-h="healthy"]::before { background: var(--success); }
.fcard[data-h="warning"]::before { background: var(--warn); }
.fcard[data-h="failing"]::before { background: var(--danger); }
.fcard[data-h="stale"]::before   { background: var(--stale); }
.fcard[data-h="paused"]::before  { background: var(--paused); opacity: .6; }
.fcard[data-cue="badge"]::before, .frow[data-cue="badge"]::before { display: none; }
.fcard.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.fcard .ftile { width: 40px; height: 40px; font-size: 15px; }
.fcard__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.fcard__meta { display: flex; align-items: center; justify-content: flex-end; flex: none; }
.fcard__meta .stats { justify-content: flex-end; }
.fcard__meta .errchip { max-width: 320px; }
.fcard__titlerow { display: flex; align-items: center; gap: 9px; min-width: 0; }
.fcard__namewrap { min-width: 0; flex: 0 1 auto; }
.fcard__name {
  display: block;
  font-weight: 650; font-size: 14.5px; color: var(--fg-strong); letter-spacing: -.01em;
  white-space: nowrap; max-width: 100%;
}
.fcard__url {
  font-size: 12.5px; color: var(--fg-faint); font-family: var(--font-mono);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.fcard__actions { display: flex; align-items: center; gap: 6px; }

/* show-on-hover overflow for cards */
.fcard .factions .iconbtn--more { opacity: .55; }
.fcard:hover .factions .iconbtn--more { opacity: 1; }

/* ===== Density : ROWS (compact) ======================================== */
.flist--rows {
  border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; background: var(--bg-card); box-shadow: var(--sh-1);
}
.frow {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1.5fr) minmax(0, 1fr) auto auto;
  align-items: center; gap: 14px;
  padding: 0 14px 0 16px; height: 50px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .1s var(--ease);
}
.frow[data-sel="1"] { grid-template-columns: auto 26px minmax(0, 1.5fr) minmax(0, 1fr) auto auto; }
.frow:last-child { border-bottom: 0; }
.frow:hover { background: var(--bg-hover); }
.frow.is-selected { background: var(--accent-tint); }
.frow::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0;
}
.frow[data-h="healthy"]::before { background: var(--success); }
.frow[data-h="warning"]::before { background: var(--warn); }
.frow[data-h="failing"]::before { background: var(--danger); }
.frow[data-h="stale"]::before   { background: var(--stale); }
.frow[data-h="paused"]::before  { background: var(--paused); opacity: .6; }
.frow .ftile { width: 26px; height: 26px; font-size: 11px; border-radius: var(--r-xs); }
.frow__main { display: flex; align-items: center; gap: 9px; min-width: 0; }
.frow__namewrap { min-width: 0; flex: 0 1 auto; }
.frow__name { display: block; font-weight: 600; font-size: 13.5px; color: var(--fg-strong); white-space: nowrap; max-width: 100%; }
.frow__url { font-size: 12px; color: var(--fg-faint); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.frow__stats { justify-content: flex-end; }
.frow .factions { opacity: 0; transition: opacity .1s var(--ease); }
.frow:hover .factions, .frow.is-selected .factions { opacity: 1; }

/* ===== Density : TABLE ================================================== */
.ftable-wrap { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--bg-card); box-shadow: var(--sh-1); }
.ftable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ftable thead th {
  position: sticky; top: 0; z-index: 1;
  text-align: left; padding: 9px 14px; height: 38px;
  font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  color: var(--fg-faint); background: var(--bg-elev); border-bottom: 1px solid var(--border);
  white-space: nowrap; cursor: pointer; user-select: none;
}
.ftable thead th:hover { color: var(--fg); }
.ftable thead th .th-i { display: inline-flex; align-items: center; gap: 5px; }
.ftable thead th svg { width: 12px; height: 12px; opacity: .8; }
.ftable th.num, .ftable td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.ftable tbody tr { cursor: pointer; transition: background .1s var(--ease); }
.ftable tbody tr:hover { background: var(--bg-hover); }
.ftable tbody tr.is-selected { background: var(--accent-tint); }
.ftable tbody td { padding: 0 14px; height: 44px; border-bottom: 1px solid var(--border); color: var(--fg-dim); }
.ftable tbody tr:last-child td { border-bottom: 0; }
.ftable__name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ftable__name .ftile { width: 24px; height: 24px; font-size: 10px; border-radius: var(--r-xs); }
.ftable__name b { font-weight: 600; color: var(--fg-strong); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ftable td.act { width: 1%; white-space: nowrap; }
.ftable .factions { opacity: 0; }
.ftable tbody tr:hover .factions, .ftable tbody tr.is-selected .factions { opacity: 1; }
.ftable td.check, .ftable th.check { width: 1%; padding-right: 0; }

/* ===== Status bar ====================================================== */
.statusbar {
  grid-column: 1 / 3; grid-row: 3 / 4;
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px; background: var(--bg-elev);
  border-top: 1px solid var(--border); font-size: 12px; color: var(--fg-dim);
}
.statusbar__item { display: flex; align-items: center; gap: 6px; }
.statusbar__spacer { flex: 1; }
.statusbar .kbd { font-size: 10px; }

/* ===== Empty / loading states ========================================== */
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 70px 24px; gap: 14px;
}
.empty__art {
  width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.empty__art svg { width: 34px; height: 34px; }
.empty h2 { margin: 4px 0 0; font-size: 19px; color: var(--fg-strong); font-weight: 650; }
.empty p { margin: 0; max-width: 420px; color: var(--fg-dim); line-height: 1.55; font-size: 14px; }
.empty__actions { display: flex; gap: 10px; margin-top: 8px; }

/* skeleton */
.skel { position: relative; overflow: hidden; background: var(--bg-sunken); border-radius: 6px; }
.skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--fg-faint), transparent 82%), transparent);
  transform: translateX(-100%); animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skelcard {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); margin-bottom: 9px;
}

/* fade-in for list */
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .26s var(--ease) both; }

/* bulk action bar */
.bulkbar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; margin-bottom: 12px;
  background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent), transparent 60%);
  border-radius: var(--r-md);
}
.bulkbar__n { font-weight: 650; color: var(--accent-strong); font-size: 13px; }
[data-theme="dark"] .bulkbar__n { color: var(--fg-strong); }
.bulkbar__spacer { flex: 1; }
.bulkbar .btn--sm { background: var(--bg-card); border-color: var(--border-strong); color: var(--fg); }
.bulkbar .btn--sm:hover { background: var(--bg-hover); }

/* tiny responsive guard so the demo doesn't break narrow */
@media (max-width: 720px) {
  .app { grid-template-columns: 1fr; }
  .rail { display: none; }
  .hdr { grid-template-columns: auto 1fr auto; }
  .hdr__center { display: none; }
}
