/* ────────────────────────────────────────────────────────
   screens.css — per-screen layouts
   Each screen is a .screen-inner block. The router replaces it.
   ──────────────────────────────────────────────────────── */

.screen-inner {
  animation: cardReveal var(--dur-slow) var(--ease-spring);
}

/* ── Finance — invoice list rows ───────────────────────── */
.inv {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--sp-12) var(--sp-16);
  border-bottom: 1px solid var(--glass-border);
  gap: var(--sp-12);
  transition: background var(--dur-fast);
}
.inv:last-child { border-bottom: 0; }
.inv:hover { background: var(--glass-bg-hover); }

.inv-num {
  font-family: var(--f-mono);
  font-size: var(--text-tiny);
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}
.inv-buyer {
  font-size: var(--text-body);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.inv-due {
  font-size: var(--text-tiny);
  color: var(--text-tertiary);
  margin-top: 2px;
}
.inv-due.overdue { color: var(--danger); font-weight: var(--fw-semibold); }
.inv-amount {
  font-family: var(--f-display);
  font-size: var(--text-h3);
  font-weight: var(--fw-bold);
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

/* ── Infra — process list ──────────────────────────────── */
.proc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-10);
  padding: var(--sp-12) var(--sp-16);
  border-bottom: 1px solid var(--glass-border);
}
.proc:last-child { border-bottom: 0; }
.proc-head {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.proc-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse 1.6s ease-in-out infinite;
}
.proc-dot.warn { background: var(--warning); box-shadow: 0 0 6px var(--warning); }
.proc-dot.dead { background: var(--danger); box-shadow: 0 0 6px var(--danger); animation: none; }
.proc-name {
  font-family: var(--f-mono);
  font-size: var(--text-body-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proc-meta {
  display: flex;
  gap: var(--sp-12);
  font-size: var(--text-tiny);
  color: var(--text-tertiary);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* ── Notion — db rows ──────────────────────────────────── */
.notion-row {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  padding: var(--sp-12) var(--sp-14);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-input);
  margin-bottom: var(--sp-8);
  transition: transform var(--dur-fast) var(--ease-spring),
              background var(--dur-fast);
}
.notion-row:active { transform: scale(0.98); }
.notion-row:hover { background: var(--glass-bg-hover); }
.notion-ic {
  width: 40px; height: 40px;
  border-radius: var(--r-small);
  display: grid; place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.notion-row > div:nth-child(2) { flex: 1; min-width: 0; }

/* ── Automation — scenario rows ────────────────────────── */
.scenario {
  display: flex;
  align-items: center;
  gap: var(--sp-10);
  padding: var(--sp-12) var(--sp-16);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--dur-fast);
}
.scenario:last-child { border-bottom: 0; }
.scenario:hover { background: var(--glass-bg-hover); }
.scenario-toggle {
  width: 38px; height: 22px;
  background: var(--glass-bg-strong);
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
  transition: background var(--dur-normal);
}
.scenario-toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.20);
  transition: transform var(--dur-normal) var(--ease-spring);
}
.scenario-toggle.on { background: var(--success); }
.scenario-toggle.on::after { transform: translateX(16px); }
.scenario-name {
  font-size: var(--text-body);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.scenario-meta {
  font-size: var(--text-tiny);
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ── AI Spotlight ──────────────────────────────────────── */
.ai-spotlight {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--bg-base);
  background-image:
    radial-gradient(at 30% 20%, rgba(var(--accent-primary-rgb), 0.30) 0, transparent 50%),
    radial-gradient(at 70% 80%, rgba(var(--accent-secondary-rgb), 0.25) 0, transparent 50%);
  padding: calc(var(--sp-32) + var(--safe-top)) var(--sp-20) var(--sp-20);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--dur-slower) var(--ease-spring),
              opacity var(--dur-fast);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ai-spotlight.open {
  transform: translateY(0);
  opacity: 1;
}
.ai-drag-handle {
  width: 40px; height: 4px;
  border-radius: 999px;
  background: var(--text-muted);
  margin: 0 auto var(--sp-16);
  opacity: 0.5;
}
.ai-icon {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--gradient-primary);
  box-shadow: 0 4px 16px rgba(var(--accent-primary-rgb), 0.45);
  flex-shrink: 0;
}
.ai-query {
  display: flex;
  align-items: center;
  gap: var(--sp-10);
  padding: var(--sp-12) var(--sp-16);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--r-input);
}
.ai-query input {
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
  font-size: var(--text-body);
  color: var(--text-primary);
}
.ai-query input::placeholder { color: var(--text-muted); }

.ai-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  margin-top: var(--sp-16);
}
.ai-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-6);
  padding: var(--sp-8) var(--sp-14);
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: var(--text-caption);
  color: var(--text-secondary);
  transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-fast);
}
.ai-pill:active { transform: scale(0.95); }
.ai-pill:hover { background: var(--glass-bg-hover); }
.ai-pill .ic { color: var(--accent-primary); }

.ai-results {
  margin-top: var(--sp-20);
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}
.ai-msg {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-input);
  padding: var(--sp-12) var(--sp-14);
  color: var(--text-primary);
  font-size: var(--text-body-sm);
  line-height: 1.5;
  max-width: 92%;
  align-self: flex-start;
  white-space: pre-wrap;
}
.ai-hd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-tiny);
  font-weight: var(--fw-bold);
  color: var(--accent-primary);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  margin-bottom: var(--sp-6);
}
.ai-action-btn {
  margin-top: var(--sp-10);
  padding: var(--sp-6) var(--sp-12);
  border-radius: 999px;
  background: var(--accent-primary);
  color: #fff;
  font-size: var(--text-tiny);
  font-weight: var(--fw-semibold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ai-dismiss-btn {
  margin-top: var(--sp-16);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: var(--sp-8) var(--sp-14);
  border-radius: 999px;
  background: var(--glass-bg);
  color: var(--text-secondary);
  font-size: var(--text-caption);
  align-self: center;
}

/* ── Settings — sections + integration list ────────────── */
.settings-list .row { padding: var(--sp-14) var(--sp-16); }

/* Theme/Style picker ─ shows tile preview */
.combo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-10);
  margin-top: var(--sp-8);
}
.combo-tile {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-input);
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  padding: var(--sp-10);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-family: var(--f-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-caption);
  letter-spacing: var(--ls-snug);
  transition: transform var(--dur-fast) var(--ease-spring), border-color var(--dur-fast);
}
.combo-tile.active { border-color: var(--accent-primary); }
.combo-tile:active { transform: scale(0.97); }
.combo-tile.midnight { background: linear-gradient(135deg, #0a0e1a, #131829); color: #4a9eff; }
.combo-tile.aurora   { background: linear-gradient(135deg, #0f0f14, #181823); color: #5ddc8b; }
.combo-tile.peach    { background: linear-gradient(135deg, #fef5e7, #ffcba4); color: #ff6b47; }
.combo-tile.mist     { background: linear-gradient(135deg, #f0f4f8, #e2e8f0); color: #10b981; }

/* ── Empty / loading / error states ────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--sp-32) var(--sp-20);
  color: var(--text-tertiary);
}
.empty-state-icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--sp-12);
  border-radius: 999px;
  background: var(--glass-bg);
  display: grid;
  place-items: center;
  color: var(--text-muted);
}
.empty-state-title {
  font-family: var(--f-display);
  font-size: var(--text-h2);
  font-weight: var(--fw-bold);
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
}
.empty-state-meta {
  font-size: var(--text-caption);
}

/* Spinner */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* ── Login splash (auth failure) ──────────────────────── */
.splash {
  min-height: 80dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-32) var(--sp-20);
  gap: var(--sp-16);
}
.splash-logo {
  width: 96px; height: 96px;
  border-radius: var(--r-card);
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: var(--fw-bold);
  font-size: 32px;
  color: #fff;
  box-shadow: 0 16px 48px rgba(var(--accent-primary-rgb), 0.40);
  letter-spacing: var(--ls-tight);
}
.splash-title {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
}
.splash-meta {
  font-size: var(--text-body-sm);
  color: var(--text-tertiary);
  max-width: 320px;
  line-height: var(--lh-body);
}

/* ─── Session 2.3: searchbar / period selector / hero summary / verdicts list / chart ─── */

/* Search bar */
.searchbar-wrap {
  position: relative;
  margin: 12px 0 8px;
}
.searchbar-input {
  width: 100%;
  padding: 11px 40px 11px 16px;
  background: var(--glass-bg-strong, rgba(255,255,255,0.05));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.10));
  border-radius: 14px;
  color: var(--text-primary, #fff);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.searchbar-input::placeholder { color: var(--text-tertiary); }
.searchbar-input:focus {
  border-color: var(--accent-primary, #5096ff);
  background: rgba(80,150,255,0.06);
}
.searchbar-clear {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  padding: 6px 10px;
}
.searchbar-clear:hover { color: var(--text-primary); }

/* Period selector — used by Period.mountPeriodSelector */
.period-seg {
  background: var(--glass-bg-strong, rgba(255,255,255,0.05));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.10));
  border-radius: 999px;
  padding: 4px;
  display: inline-flex;
  position: relative;
  gap: 0;
}
.period-seg .seg-btn {
  position: relative;
  z-index: 1;
  padding: 7px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-secondary, rgba(255,255,255,0.6));
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}
.period-seg .seg-btn.active { color: var(--bg-primary, #0a0e1a); }
.period-seg .seg-indicator {
  position: absolute;
  top: 4px; left: 4px;
  height: calc(100% - 8px);
  background: var(--text-primary, #fff);
  border-radius: 999px;
  transition: left 0.18s ease, width 0.18s ease;
  z-index: 0;
}

/* Reconcile hero summary */
.hero-summary {
  display: flex;
  padding: 22px 20px;
  gap: 20px;
  align-items: center;
  margin-bottom: 14px;
}
.hero-left { flex: 1; min-width: 0; }
.hero-period-label {
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero-pct {
  font-family: var(--f-display);
  font-size: 56px;
  font-weight: 800;
  color: #22c55e;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hero-unit { font-size: 22px; opacity: 0.6; margin-left: 2px; }
.hero-pct-label {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 4px;
}
.hero-sources {
  color: var(--text-tertiary);
  font-size: 12px;
  margin-top: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-fetched {
  color: var(--text-tertiary);
  font-size: 10px;
  margin-top: 4px;
}
.hero-right { flex-shrink: 0; }
.hero-right svg { display: block; }

/* Verdicts list */
.verdicts-list {
  padding: 4px 0 !important;
  overflow: hidden;
}
.verdict-row {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  gap: 14px;
  border-bottom: 1px solid var(--glass-border, rgba(255,255,255,0.05));
}
.verdict-row.tappable {
  cursor: pointer;
  transition: background 0.15s;
}
.verdict-row.tappable:active { background: rgba(255,255,255,0.04); }
.verdict-icon { font-size: 22px; flex-shrink: 0; width: 28px; text-align: center; }
.verdict-main { flex: 1; min-width: 0; }
.verdict-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.verdict-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.35;
}
.verdict-count {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  min-width: 36px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.count-zero   { color: var(--text-tertiary); background: transparent; }
.count-green  { color: #22c55e; background: rgba(34,197,94,0.12); }
.count-amber  { color: #f59e0b; background: rgba(245,158,11,0.12); }
.count-red    { color: #ef4444; background: rgba(239,68,68,0.12); }
.count-violet { color: #a78bfa; background: rgba(167,139,250,0.12); }
.count-blue   { color: #60a5fa; background: rgba(96,165,250,0.12); }
.count-gray   { color: #94a3b8; background: rgba(148,163,184,0.12); }
.verdict-arrow { color: var(--text-tertiary); }

/* Stacked area chart legend */
.chart-legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.legend-item { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.legend-label { color: var(--text-secondary); }

/* Finance meta-tab — hide sub-screens' page headers when mounted as subtab.
 * The tab strip in finance.js serves as the title row; subscreens that
 * mount into .in-subtab would otherwise add a duplicate header. */
.in-subtab .sh-top { display: none; }

/* ── Sheet primitive (modal bottom drilldown) ────────────────────── */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  transition: background 280ms ease;
}
.sheet-backdrop.visible {
  background: rgba(0, 0, 0, 0.45);
}
.sheet {
  background: var(--bg-card, #1a1530);
  border-radius: 18px 18px 0 0;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
}
.sheet.visible {
  transform: translateY(0);
}
.sheet-handle-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 6px 0;
  cursor: grab;
  flex-shrink: 0;
  touch-action: none;
}
.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--glass-border, rgba(255, 255, 255, 0.2));
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 12px 16px;
  border-bottom: 0.5px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  flex-shrink: 0;
}
.sheet-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-weight: 600;
}
.sheet-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.sheet-content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}


/* ── Duplicates sub-screen ─────────────────────────────────── */
.dup-subtab-nav {
  display: flex;
  gap: 6px;
  padding: 8px 12px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dup-subtab-nav::-webkit-scrollbar { display: none; }
.dup-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.dup-pill.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  font-weight: 600;
}
.dup-content {
  padding: 0 12px 24px;
}
.dup-placeholder {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-secondary, #888);
  font-size: 14px;
}

/* ── Duplicates KPI + Funnel ───────────────────────────────── */
.dup-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 12px 16px;
}
.dup-kpi-tile {
  background: var(--bg-secondary, rgba(255,255,255,0.04));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 12px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dup-kpi-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.dup-kpi-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}
.dup-kpi-sublabel {
  font-size: 11px;
  color: var(--text-tertiary, var(--text-secondary));
}
.dup-funnel-section {
  padding: 4px 12px 20px;
}
.dup-funnel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}
.dup-funnel-range {
  background: var(--bg-secondary, rgba(255,255,255,0.06));
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--text-primary);
  font-family: inherit;
}
.dup-funnel-legend {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.dup-funnel-legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

/* ── Duplicates Log feed ────────────────────────────────────── */
.dup-log-container {
  padding: 0 12px 20px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.log-row {
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
  padding: 8px 0;
  font-size: 12px;
  cursor: pointer;
}
.log-row:last-child { border-bottom: none; }
.log-row-header {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  gap: 8px;
  align-items: center;
}
.log-time {
  font-family: ui-monospace, SF Mono, Menlo, monospace;
  color: var(--text-secondary);
  font-size: 11px;
  white-space: nowrap;
}
.log-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  white-space: nowrap;
}
.log-badge-claimed            { background: #1D9E75; }
.log-badge-confirmed          { background: #168C66; }
.log-badge-duplicate_processed{ background: #BA7517; }
.log-badge-duplicate_ai_stub  { background: #378ADD; }
.log-badge-duplicate_contended{ background: #856A04; }
.log-badge-abandoned          { background: #B23F3F; }
.log-source {
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.log-faktura {
  font-family: ui-monospace, monospace;
  color: var(--text-tertiary, var(--text-secondary));
  font-size: 11px;
}
.log-expand {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  padding: 0 4px;
  transition: transform 0.2s;
  line-height: 1;
}
.log-row[data-expanded="true"] .log-expand { transform: rotate(180deg); }
.log-row-details {
  margin-top: 6px;
  padding: 8px;
  background: var(--bg-secondary, rgba(255,255,255,0.03));
  border-radius: 6px;
}
.log-row-details pre {
  margin: 0;
  font-family: ui-monospace, SF Mono, Menlo, monospace;
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text-secondary);
}
.log-loading-more {
  text-align: center;
  padding: 12px;
  color: var(--text-tertiary, var(--text-secondary));
  font-size: 11px;
}
.log-end-marker {
  text-align: center;
  padding: 16px;
  color: var(--text-tertiary, var(--text-secondary));
  font-size: 11px;
  opacity: 0.6;
}
