:root {
  --accent: oklch(62% 0.19 275);
  --accent-soft: oklch(62% 0.19 275 / 0.12);
  --accent-wire: oklch(62% 0.19 275 / 0.35);

  --bg: oklch(98.5% 0.004 260);
  --bg-elev: #ffffff;
  --panel: oklch(97% 0.004 260);
  --border: oklch(89% 0.005 260);
  --border-strong: oklch(82% 0.006 260);
  --ink: oklch(22% 0.008 260);
  --ink-2: oklch(40% 0.008 260);
  --ink-3: oklch(58% 0.008 260);
  --ink-4: oklch(72% 0.008 260);

  --apple: oklch(42% 0.008 260);
  --google: oklch(42% 0.008 260);

  --pos: oklch(58% 0.14 150);
  --neg: oklch(60% 0.20 25);
  --warn: oklch(68% 0.15 75);

  --row-h: 56px;
  --radius: 6px;

  --mono: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --sans: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; color: inherit; }

/* scrollbar tweaks */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: oklch(85% 0.005 260); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: oklch(75% 0.006 260); background-clip: padding-box; border: 2px solid transparent; }

/* App shell */
.app {
  display: grid;
  grid-template-rows: 48px 56px 1fr 22px;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* =====================  TOP CHROME  ===================== */
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--ink);
  color: var(--bg-elev);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
}
.brand-name { font-size: 14px; }
.brand-sep { color: var(--ink-4); margin: 0 6px; }
.brand-env {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.topbar-spacer { flex: 1; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  height: 28px; min-width: 28px; padding: 0 8px;
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid transparent;
  border-radius: 5px;
  color: var(--ink-2);
  font-size: 12px;
}
.icon-btn:hover { background: var(--panel); color: var(--ink); }
.icon-btn.primary {
  background: var(--accent); color: white; border-color: var(--accent);
  padding: 0 10px; height: 28px;
}
.icon-btn.primary:hover { background: color-mix(in oklch, var(--accent), black 8%); }
.kbd {
  font-family: var(--mono); font-size: 10px;
  padding: 1px 4px; border: 1px solid var(--border); border-bottom-width: 2px;
  border-radius: 3px; background: var(--bg); color: var(--ink-3);
}

/* =====================  QUERY BAR  ===================== */
.querybar {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.search {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  height: 34px; padding: 0 10px 0 12px;
}
.search:focus-within {
  background: var(--bg-elev);
  border-color: var(--accent-wire);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search svg { color: var(--ink-3); flex-shrink: 0; }
.search input {
  flex: 1;
  background: transparent; border: 0; outline: 0;
  font-size: 13px;
  color: var(--ink);
}
.search input::placeholder { color: var(--ink-4); }
.search .slash {
  font-family: var(--mono); font-size: 10px;
  padding: 1px 5px; border: 1px solid var(--border); border-radius: 3px;
  color: var(--ink-3); background: var(--bg-elev);
}

.market-picker {
  position: relative;
}
.market-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elev);
  font-size: 12px;
  min-width: 170px;
}
.market-btn:hover { border-color: var(--border-strong); }
.market-btn .flag { font-size: 15px; line-height: 1; }
.market-btn .country { font-weight: 500; color: var(--ink); }
.market-btn .lang { color: var(--ink-3); font-family: var(--mono); font-size: 11px; }
.market-btn .chev { color: var(--ink-3); margin-left: auto; }

.market-panel {
  position: absolute; top: calc(100% + 4px); right: 0;
  width: 420px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 20px 50px -10px oklch(0% 0 0 / 0.18), 0 2px 4px oklch(0% 0 0 / 0.06);
  z-index: 30;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: 440px;
}
.market-panel[hidden] { display: none; }
.market-col { display: flex; flex-direction: column; min-height: 0; }
.market-col + .market-col { border-left: 1px solid var(--border); }
.market-col h4 {
  margin: 0;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3); font-family: var(--mono); font-weight: 600;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.market-list { overflow-y: auto; padding: 4px 0; }
.market-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px; width: 100%;
  background: transparent; border: 0;
  font-size: 12px; text-align: left;
  cursor: pointer;
}
.market-row:hover { background: var(--panel); }
.market-row.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.market-row .flag { font-size: 14px; }
.market-row .code { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.market-row.active .code { color: var(--accent); }

.filters { display: flex; align-items: center; gap: 6px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: 14px;
  font-size: 12px;
  color: var(--ink-2);
}
.filter-chip:hover { border-color: var(--border-strong); }
.filter-chip.on { background: var(--accent-soft); border-color: var(--accent-wire); color: var(--accent); }
.filter-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); }
.filter-chip.on .dot { background: var(--accent); }

/* =====================  MAIN  ===================== */
.main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.col {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--bg-elev);
  overflow: hidden;
}
.col + .col { border-left: 1px solid var(--border); }

.col-head {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  position: sticky; top: 0; z-index: 1;
}
.store-mark {
  width: 18px; height: 18px; border-radius: 4px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  color: white;
}
.store-mark.apple { background: var(--ink); }
.store-mark.google { background: oklch(55% 0.14 145); }
.col-head .store-name { font-weight: 600; font-size: 12.5px; }
.col-head .store-meta {
  margin-left: auto;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  display: flex; align-items: center; gap: 10px;
}
.col-head .store-meta .pill {
  padding: 2px 6px; border: 1px solid var(--border); border-radius: 10px;
}
.col-head .store-meta .fresh {
  color: var(--pos);
}
.col-head .store-meta .stale { color: var(--warn); }

.results { overflow-y: auto; flex: 1; min-height: 0; }

/* ROW */
.row {
  display: grid;
  grid-template-columns: 38px 44px 1fr auto auto;
  align-items: center;
  column-gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid oklch(94% 0.004 260);
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.row:hover { background: var(--panel); }
.row.selected { background: var(--accent-soft); }
.row.selected::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent);
}
.rank {
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.rank strong { color: var(--ink); font-weight: 600; }

.icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  color: white; font-weight: 600; font-size: 18px;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px oklch(0% 0 0 / 0.06);
  flex-shrink: 0;
  object-fit: cover;
}
img.icon { padding: 0; }

.meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.name { font-weight: 600; font-size: 13px; letter-spacing: -0.005em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub .sep { margin: 0 6px; color: var(--ink-4); }

.rating {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.rating .star { color: var(--warn); }
.count { font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); }

.price {
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
  padding: 2px 6px; border: 1px solid var(--border); border-radius: 3px;
  white-space: nowrap;
}
.price.free { color: var(--pos); border-color: oklch(58% 0.14 150 / 0.3); }

/* =====================  DETAIL SHEET  ===================== */
.detail-backdrop {
  position: absolute; inset: 0;
  background: oklch(15% 0.01 260 / 0.28);
  z-index: 20;
  opacity: 0; pointer-events: none;
  transition: opacity 180ms ease;
}
.detail-backdrop.open { opacity: 1; pointer-events: auto; }

.detail {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(1040px, 92%);
  background: var(--bg-elev);
  border-left: 1px solid var(--border);
  box-shadow: -24px 0 48px -16px oklch(0% 0 0 / 0.18);
  transform: translateX(100%);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
  z-index: 21;
  display: flex; flex-direction: column;
  min-height: 0;
}
.detail.open { transform: translateX(0); }
.detail-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.detail-head .big-icon {
  width: 40px; height: 40px; border-radius: 9px;
  display: grid; place-items: center;
  color: white; font-weight: 600; font-size: 18px;
  flex-shrink: 0; object-fit: cover;
}
img.big-icon { padding: 0; }
.detail-head .title { font-weight: 600; font-size: 14px; }
.detail-head .publisher { font-size: 12px; color: var(--ink-3); }
.detail-head .spacer { flex: 1; }
.detail-head .mini-meta {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  display: flex; align-items: center; gap: 8px;
}
.detail-head .mini-meta .sep { color: var(--ink-4); }
.detail-head .close {
  width: 28px; height: 28px; border-radius: 5px;
  background: transparent; border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--ink-3);
}
.detail-head .close:hover { background: var(--bg-elev); color: var(--ink); }

.detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1; min-height: 0;
  overflow: hidden;
}
.pane { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.pane + .pane { border-left: 1px solid var(--border); }
.pane-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 600;
  background: var(--panel);
}
.pane-head .mini-store { width: 14px; height: 14px; border-radius: 3px; display: grid; place-items: center; color: white; font-family: var(--mono); font-size: 8px; font-weight: 700; }
.pane-head .mini-store.apple { background: var(--ink); }
.pane-head .mini-store.google { background: oklch(55% 0.14 145); }
.pane-head .pane-rank {
  margin-left: auto;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
}
.pane-body { overflow-y: auto; flex: 1; padding: 20px; }

.pane-app-header { display: flex; gap: 14px; align-items: flex-start; }
.pane-app-header .detail-icon {
  width: 64px; height: 64px; border-radius: 14px;
  display: grid; place-items: center;
  color: white; font-weight: 600; font-size: 26px;
  flex-shrink: 0; object-fit: cover;
  box-shadow: inset 0 0 0 1px oklch(0% 0 0 / 0.06);
}
img.detail-icon { padding: 0; }
.pane-app-header .detail-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.pane-app-header .detail-pub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.detail-kv {
  display: grid; grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  font-size: 12px;
  margin-top: 12px;
}
.detail-kv dt {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-3); align-self: center;
}
.detail-kv dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--ink); }
.detail-kv dd .ghost { color: var(--ink-4); font-family: var(--mono); font-size: 10.5px; margin-left: 6px; }

.pane h3 {
  margin: 18px 0 6px; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3);
  font-family: var(--mono);
}
.pane .desc {
  font-size: 12.5px; line-height: 1.55; color: var(--ink-2);
  white-space: pre-wrap;
}
.pane .desc-wrap { position: relative; }
.pane .show-more {
  display: block;
  margin-top: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.02em;
  cursor: pointer;
}
.pane .show-more:hover { text-decoration: underline; }
.pane .screens-row {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
}
.pane .screens-row .sc {
  width: 110px; height: 200px; flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden; position: relative;
}
.pane .screens-row .sc img {
  width: 100%; height: 100%; object-fit: cover;
}
.pane .screens-row .sc.placeholder {
  background: repeating-linear-gradient(135deg, oklch(92% 0.02 260) 0 12px, oklch(80% 0.05 260) 12px 13px);
}
.pane .screens-row .sc.placeholder::after {
  content: 'screenshot'; position: absolute; bottom: 6px; left: 8px;
  font-family: var(--mono); font-size: 9px; color: oklch(100% 0 0 / 0.8);
  letter-spacing: 0.08em; text-transform: uppercase;
}

.rating-block {
  display: flex; align-items: flex-end; gap: 20px; margin-top: 6px;
}
.rating-block .big {
  font-family: var(--mono); font-size: 36px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink); line-height: 1;
}
.rating-block .stars { display: flex; gap: 2px; color: var(--warn); font-size: 14px; margin-bottom: 4px; }
.rating-block .count-full { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-bottom: 4px; }

.share-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  font-size: 12px;
}
.share-row .share-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3);
  white-space: nowrap;
}
.share-row .share-url {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.share-row .share-copy {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--ink);
  font-size: 12px; font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.share-row .share-copy:hover { border-color: var(--border-strong); background: var(--panel); }

.detail-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--panel);
  display: flex; gap: 20px; align-items: center;
  font-size: 12px; flex-wrap: wrap;
}
.detail-footer .diff-label {
  display: flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-family: var(--mono);
}
.detail-footer .diff-values {
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
}
.detail-footer .diff-values .sep { color: var(--ink-4); margin: 0 8px; }

/* =====================  FEEDBACK / REPORT MATCH  ===================== */
.detail-footer .fb-wrap { margin-left: auto; }
.fb-wrap { position: relative; }
.fb-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  cursor: pointer;
}
.fb-trigger:hover { border-color: var(--border-strong); color: var(--ink); background: var(--panel); }
.fb-trigger[aria-expanded="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-wire);
  color: var(--accent);
}

.fb-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 24px 60px -16px oklch(0% 0 0 / 0.22), 0 2px 4px oklch(0% 0 0 / 0.06);
  padding: 14px;
  z-index: 40;
  animation: fb-pop 140ms cubic-bezier(.2,.8,.2,1);
}
.fb-popover[hidden] { display: none; }
.fb-form { display: flex; flex-direction: column; gap: 12px; }
@keyframes fb-pop {
  from { opacity: 0; transform: translateY(4px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.fb-head { display: flex; flex-direction: column; gap: 6px; }
.fb-title { font-weight: 600; font-size: 13px; letter-spacing: -0.005em; }
.fb-sub {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--mono);
}
.fb-pair { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.fb-pair .mini-store { width: 12px; height: 12px; border-radius: 3px; display: grid; place-items: center; color: white; font-family: var(--mono); font-size: 7px; font-weight: 700; flex-shrink: 0; }
.fb-pair .mini-store.apple { background: var(--ink); }
.fb-pair .mini-store.google { background: oklch(55% 0.14 145); }
.fb-pair-name { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.fb-pair-empty { color: var(--ink-4); font-style: italic; }
.fb-pair-sep { color: var(--ink-4); }

.fb-reasons { display: flex; flex-direction: column; gap: 2px; }
.fb-reason {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 10px;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid transparent;
}
.fb-reason:hover { background: var(--panel); }
.fb-reason.on {
  background: var(--accent-soft);
  border-color: var(--accent-wire);
}
.fb-reason input { display: none; }
.fb-radio {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  flex-shrink: 0; margin-top: 1px;
  position: relative;
  background: var(--bg-elev);
}
.fb-reason.on .fb-radio { border-color: var(--accent); }
.fb-reason.on .fb-radio::after {
  content: '';
  position: absolute; inset: 2px;
  border-radius: 50%;
  background: var(--accent);
}
.fb-reason-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fb-reason-label { font-size: 12px; color: var(--ink); font-weight: 500; }
.fb-reason.on .fb-reason-label { color: var(--accent); }
.fb-reason-hint { font-size: 11px; color: var(--ink-3); }

.fb-note {
  width: 100%;
  resize: vertical;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--panel);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink);
  outline: 0;
}
.fb-note:focus {
  background: var(--bg-elev);
  border-color: var(--accent-wire);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.fb-note::placeholder { color: var(--ink-4); }

.fb-foot {
  display: flex; align-items: center; gap: 10px;
}
.fb-count {
  font-family: var(--mono); font-size: 10px; color: var(--ink-4);
}
.fb-actions { margin-left: auto; display: flex; gap: 6px; }
.fb-btn {
  height: 28px; padding: 0 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
}
.fb-btn.ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--border);
}
.fb-btn.ghost:hover { background: var(--panel); color: var(--ink); }
.fb-btn.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.fb-btn.primary:hover { background: color-mix(in oklch, var(--accent), black 8%); }

.fb-sent {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 4px;
}
.fb-sent[hidden] { display: none; }
.fb-sent-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: oklch(58% 0.14 150 / 0.14);
  color: var(--pos);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.fb-sent-title { font-weight: 600; font-size: 13px; color: var(--ink); }
.fb-sent-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* =====================  STATUS BAR  ===================== */
.statusbar {
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px;
  border-top: 1px solid var(--border);
  background: var(--panel);
  font-family: var(--mono); font-size: 10.5px;
  color: var(--ink-3);
}
.statusbar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pos); }
.statusbar .sep { color: var(--ink-4); }
.statusbar .push { margin-left: auto; }
.statusbar a { color: var(--accent); text-decoration: none; }
.statusbar a:hover { text-decoration: underline; }

/* =====================  EMPTY / LOADING / ERROR STATES  ===================== */
.state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex: 1; padding: 40px;
  text-align: center;
  color: var(--ink-3);
  gap: 10px;
}
.state .glyph {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--border);
  display: grid; place-items: center;
  margin-bottom: 4px;
  color: var(--ink-3);
}
.state h3 { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.state p { margin: 0; font-size: 12px; max-width: 300px; }
.state code.q {
  font-family: var(--mono); font-size: 11px;
  padding: 2px 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 4px;
  color: var(--ink);
}
.state.error { color: var(--neg); }
.state.error .glyph { border-color: oklch(60% 0.20 25 / 0.3); color: var(--neg); background: oklch(60% 0.20 25 / 0.06); }
.state.stale-note {
  margin-top: 8px; padding: 8px 12px;
  border: 1px dashed oklch(68% 0.15 75 / 0.4);
  background: oklch(68% 0.15 75 / 0.06);
  color: var(--warn);
  border-radius: 4px;
  font-family: var(--mono); font-size: 11px;
}

/* Skeleton loader */
.skel {
  display: grid;
  grid-template-columns: 38px 44px 1fr auto auto;
  align-items: center;
  column-gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid oklch(94% 0.004 260);
}
.skel-bar {
  height: 10px; border-radius: 3px;
  background: linear-gradient(90deg, oklch(94% 0.004 260), oklch(97% 0.004 260), oklch(94% 0.004 260));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
.skel-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(90deg, oklch(94% 0.004 260), oklch(97% 0.004 260), oklch(94% 0.004 260));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* htmx loading indicator: show skeletons while request is in flight */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: block; }
.htmx-request .results-live { display: none; }

/* Subtle helpers */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
