/* ============================================================
   MotionReach Vendor Management — App Shell
   ============================================================ */

html, body, #root { height: 100%; }
body { overflow: hidden; }

:root {
  --sidebar-w: 232px;
  --topbar-h: 52px;
  --row-h: 40px;
  --density-pad-y: 8px;
  --density-pad-x: 12px;
  --accent: var(--brand-purple-light);
  --accent-soft: color-mix(in oklab, var(--accent) 16%, transparent);
  --accent-text: #fff;
}
[data-density="comfortable"] {
  --row-h: 52px;
  --density-pad-y: 14px;
}
[data-density="compact"] {
  --row-h: 32px;
  --density-pad-y: 6px;
}
[data-theme="light"] {
  --accent-soft: color-mix(in oklab, var(--accent) 12%, transparent);
}

/* ---------- App shell ---------- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
[data-theme="light"] .sidebar { background: var(--bg-secondary); }

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 14px;
}
.brand img { height: 20px; width: auto; display: block; }
.brand .brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Dual-brand lockup: MotionReach logo + BRANDSTORM wordmark */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 12px;
}
.brand-lockup img { height: 18px; width: auto; display: block; }
.brand-lockup img.brandstorm-mark { height: 16px; }
.brand-lockup .divider-v {
  width: 1px;
  height: 18px;
  background: var(--border-default);
  flex-shrink: 0;
}
.brand-wordmark {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.brand-wordmark .accent-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.brand-sublabel {
  padding: 0 8px 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-sublabel::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.ctx-switcher {
  display: flex;
  background: var(--interactive-secondary);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}
.ctx-switcher button {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 400;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.ctx-switcher button.active {
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: var(--elevation-1);
}
[data-theme="light"] .ctx-switcher button.active { background: #fff; }

.nav-section {
  display: flex; flex-direction: column; gap: 1px;
  margin-top: 4px;
}
.nav-section-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  padding: 8px 10px 4px;
  font-weight: 500;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.nav-item:hover { background: var(--interactive-secondary); color: var(--text-primary); }
.nav-item.active {
  background: var(--accent-soft);
  color: var(--text-primary);
  font-weight: 400;
}
.nav-item .nav-icon { width: 16px; height: 16px; opacity: 0.9; flex-shrink: 0; }
.nav-item .nav-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  background: var(--interactive-secondary);
  padding: 1px 6px;
  border-radius: 4px;
}
.nav-item.active .nav-count { color: var(--text-primary); background: rgba(255,255,255,0.08); }
[data-theme="light"] .nav-item.active .nav-count { background: rgba(13,8,32,0.08); }

.sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 500;
  background: var(--motion-gradient);
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}
.avatar-sm { width: 22px; height: 22px; font-size: 10px; }
.avatar-lg { width: 40px; height: 40px; font-size: 14px; }

.user-meta { display: flex; flex-direction: column; min-width: 0; }
.user-meta .name { font-size: 12px; font-weight: 400; color: var(--text-primary); }
.user-meta .role { font-size: 11px; color: var(--text-tertiary); }

/* ---------- Main ---------- */
.main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-primary);
}
.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  flex-shrink: 0;
}
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.breadcrumb .sep { color: var(--text-tertiary); }
.breadcrumb .cur { color: var(--text-primary); font-weight: 400; }

.topbar-search {
  flex: 0 1 280px;
  position: relative;
}
.topbar-search input {
  height: 32px;
  background: var(--interactive-secondary);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 10px 0 30px;
  font-size: 13px;
  color: var(--text-primary);
  width: 100%;
  font-family: var(--font-en);
  font-weight: 300;
}
.topbar-search input::placeholder { color: var(--text-tertiary); }
.topbar-search input:focus { outline: none; border-color: var(--border-accent); }
.topbar-search .icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--text-tertiary);
}

.topbar-spacer { flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.icon-btn:hover { background: var(--interactive-secondary); color: var(--text-primary); }

.kbd {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid var(--border-default);
  border-radius: 3px;
  color: var(--text-tertiary);
  background: var(--bg-primary);
}

/* ---------- Page ---------- */
.page {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.page-header {
  padding: 20px 24px 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-shrink: 0;
}
.page-title-group h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.page-title-group .sub {
  font-size: 13px;
  color: var(--text-tertiary);
}
.page-actions { display: flex; gap: 8px; align-items: center; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  flex-shrink: 0;
  flex-wrap: wrap;
}
[data-theme="light"] .toolbar { background: var(--bg-secondary); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-en);
  font-weight: 300;
}
.chip:hover { color: var(--text-primary); border-color: var(--border-strong); }
.chip.active {
  color: var(--text-primary);
  background: var(--accent-soft);
  border-color: color-mix(in oklab, var(--accent) 40%, transparent);
}
.chip .x { opacity: 0.6; }
.chip .x:hover { opacity: 1; }

.toolbar .divider {
  width: 1px; height: 18px;
  background: var(--border-default);
  margin: 0 4px;
}
.toolbar-right { margin-left: auto; display: flex; gap: 6px; align-items: center; }

/* ---------- Table ---------- */
.tbl-wrap { flex: 1; overflow: auto; }
.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  table-layout: fixed;
}
.tbl thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-primary);
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
  user-select: none;
}
.tbl thead th .sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.tbl tbody td {
  padding: var(--density-pad-y) var(--density-pad-x);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  height: var(--row-h);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tbl tbody tr { transition: background var(--duration-instant); }
.tbl tbody tr:hover { background: var(--interactive-secondary); }
.tbl tbody tr.selected { background: var(--accent-soft); }
.tbl .col-check { width: 36px; padding-right: 0; }
.tbl .num { font-variant-numeric: tabular-nums; }
.tbl .muted { color: var(--text-tertiary); }
.tbl .mono { font-family: var(--font-mono); font-size: 12px; }
.tbl .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl td.right { text-align: right; }
.tbl .row-actions { display: flex; gap: 2px; justify-content: flex-end; opacity: 0; }
.tbl tbody tr:hover .row-actions { opacity: 1; }

/* Checkboxes */
.cb {
  appearance: none;
  width: 14px; height: 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  background: transparent;
  margin: 0;
  vertical-align: middle;
}
.cb:checked { background: var(--accent); border-color: var(--accent); }
.cb:checked::after {
  content: '';
  position: absolute;
  left: 3px; top: 0px;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* Category tag */
.cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.cat .swatch {
  width: 8px; height: 8px;
  border-radius: 2px;
}

/* Rating dots */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.rating-bar {
  display: inline-flex;
  gap: 2px;
}
.rating-bar i {
  width: 14px; height: 4px;
  background: var(--border-default);
  border-radius: 1px;
  display: block;
}
.rating-bar i.on { background: var(--accent); }
.rating-bar i.on.cyan { background: var(--brand-cyan); }
[data-theme="light"] .rating-bar i.on.cyan { background: var(--brand-cyan-deep); }

/* Status pill specifics */
.pill { font-family: var(--font-en); font-weight: 400; height: 22px; padding: 0 8px; font-size: 11px; }
.pill .dot { width: 5px; height: 5px; }
.pill-neutral { background: var(--interactive-secondary); color: var(--text-secondary); }
.pill-info { color: var(--info); background: color-mix(in oklab, var(--info) 14%, transparent); }
[data-theme="light"] .pill-info { color: var(--brand-cyan-deep); }

/* ---------- Status bar (bottom) ---------- */
.status-bar {
  height: 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  font-size: 11px;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
  flex-shrink: 0;
  font-family: var(--font-mono);
}

/* ---------- Detail page ---------- */
.detail {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 24px;
}
@media (max-width: 1200px) { .detail { grid-template-columns: 1fr; } }
.detail-main { display: flex; flex-direction: column; gap: 16px; }
.detail-aside { display: flex; flex-direction: column; gap: 16px; }

.section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
[data-theme="light"] .section { background: var(--bg-primary); }
.section-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.section-body { padding: 16px 18px; }

.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: 13px; }
.kv dt { color: var(--text-tertiary); font-weight: 300; }
.kv dd { margin: 0; color: var(--text-primary); }
.kv dd .mono { font-family: var(--font-mono); font-size: 12px; }

/* Tabs */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 24px;
}
.tab {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-tertiary);
  cursor: pointer;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: var(--font-en);
  font-weight: 300;
}
.tab:hover { color: var(--text-secondary); }
.tab.active { color: var(--text-primary); border-bottom-color: var(--accent); font-weight: 400; }

/* Buttons in headers (small) */
.btn-sm { font-family: var(--font-en); }
.btn-icon-only { padding: 0; width: 32px; }

/* Stat tiles */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 24px 12px;
}
.stat-tile {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
[data-theme="light"] .stat-tile { background: var(--bg-primary); }
.stat-tile .label { font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-tile .val { font-size: 24px; font-weight: 500; margin-top: 6px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat-tile .delta { font-size: 11px; color: var(--success); margin-top: 2px; font-family: var(--font-mono); }
.stat-tile .delta.down { color: var(--danger); }

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
.input, textarea.input {
  font-weight: 300;
}
textarea.input {
  min-height: 80px;
  padding: 10px 12px;
  height: auto;
  resize: vertical;
}
.select {
  position: relative;
}
.select select {
  appearance: none;
  width: 100%;
  height: 40px;
  padding: 0 32px 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-en);
  font-weight: 300;
}
.select::after {
  content: '';
  position: absolute; right: 12px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--text-tertiary);
  border-bottom: 1.5px solid var(--text-tertiary);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* Stepper */
.stepper {
  display: flex;
  gap: 0;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 6px;
  margin-bottom: 4px;
}
.step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-tertiary);
  border-radius: 6px;
  position: relative;
}
.step .num {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.step.done { color: var(--text-secondary); }
.step.done .num { background: var(--success); border-color: var(--success); color: #000; }
.step.current { color: var(--text-primary); background: var(--bg-primary); box-shadow: var(--elevation-1); }
.step.current .num { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Upload zone */
.dropzone {
  border: 1.5px dashed var(--border-default);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  background: var(--bg-secondary);
  transition: border-color var(--duration-fast), background var(--duration-fast);
  cursor: pointer;
}
.dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .big {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 4px;
}
.dropzone .small { font-size: 12px; color: var(--text-tertiary); }

/* Timeline */
.timeline { display: flex; flex-direction: column; }
.tl-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 12px 0;
}
.tl-marker {
  position: relative;
  display: flex;
  justify-content: center;
}
.tl-marker .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  z-index: 1;
}
.tl-marker .dot.done { background: var(--success); }
.tl-marker .dot.pending { background: var(--border-default); }
.tl-marker .dot.rejected { background: var(--danger); }
.tl-marker::after {
  content: '';
  position: absolute;
  left: 50%; top: 16px; bottom: -12px;
  width: 1px;
  background: var(--border-subtle);
  transform: translateX(-50%);
}
.tl-item:last-child .tl-marker::after { display: none; }
.tl-body .when { font-size: 11px; color: var(--text-tertiary); font-family: var(--font-mono); }
.tl-body .what { font-size: 13px; color: var(--text-primary); margin-top: 2px; }
.tl-body .who { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* Approval row */
.approval-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.approval-row:hover { background: var(--interactive-secondary); }
.approval-meta { display: flex; flex-direction: column; gap: 4px; }
.approval-title { font-size: 14px; font-weight: 400; }
.approval-sub { font-size: 12px; color: var(--text-tertiary); }
.approval-chips { display: flex; gap: 6px; margin-top: 6px; }
.approval-actions { display: flex; gap: 8px; }

/* Portal */
.portal-shell {
  display: grid;
  grid-template-columns: 480px 1fr;
  height: 100vh;
}
@media (max-width: 980px) { .portal-shell { grid-template-columns: 1fr; } }
.portal-left {
  background: var(--brand-black);
  color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.portal-left::before {
  content: '';
  position: absolute;
  inset: -20% -10% 30% -10%;
  background: var(--motion-gradient-radial);
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
}
.portal-left > * { position: relative; z-index: 1; }
.portal-left .brand img { height: 28px; }
.portal-hero h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.portal-hero p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-width: 360px;
  margin: 0;
}
.portal-fact {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.portal-fact .big {
  font-size: 22px;
  font-weight: 600;
  color: var(--brand-cyan);
  font-variant-numeric: tabular-nums;
}
.portal-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg-primary);
}
.login-form {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.login-form h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.login-form .sub {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0;
}

/* Score card */
.score-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 18px;
}
.score-num {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.score-num .n {
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.score-num .n .denom { color: var(--text-tertiary); font-size: 22px; font-weight: 400; }
.score-num .grade {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--success) 18%, transparent);
  color: var(--success);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.score-rows { display: flex; flex-direction: column; gap: 10px; }
.score-row {
  display: grid;
  grid-template-columns: 160px 1fr 60px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.score-row .label { color: var(--text-secondary); }
.score-row .bar { height: 6px; background: var(--interactive-secondary); border-radius: 3px; overflow: hidden; }
.score-row .bar .fill { height: 100%; background: var(--accent); }
.score-row .val { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }

/* File row */
.file-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.file-row + .file-row { margin-top: 8px; }
.file-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--interactive-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-secondary);
}
.file-name { font-size: 13px; color: var(--text-primary); }
.file-meta { font-size: 11px; color: var(--text-tertiary); font-family: var(--font-mono); }

/* Misc helpers */
.hr { height: 1px; background: var(--border-subtle); margin: 16px 0; }
.row { display: flex; align-items: center; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.muted { color: var(--text-tertiary); }
.tnum { font-variant-numeric: tabular-nums; }
.right { margin-left: auto; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
::-webkit-scrollbar-track { background: transparent; }

/* Accent override hook (applied via inline style on root) */
[data-accent="purple"] { --accent: #9437FF; }
[data-accent="cyan"]   { --accent: #73FDFF; --accent-text: #000; }
[data-accent="ice"]    { --accent: #007A8C; }
[data-accent="emerald"]{ --accent: #22D389; --accent-text: #000; }
[data-theme="light"][data-accent="cyan"] { --accent: #007A8C; --accent-text: #fff; }
[data-theme="light"][data-accent="purple"] { --accent: #5B2D9A; }
