/* =========================================================
   VRA — Vendor Risk Assessment
   styles.css
   Design language: clean admin tool, dark header, blue/slate accents
   ========================================================= */

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg:         #f8fafc;
  --color-surface:    #ffffff;
  --color-border:     #e2e8f0;
  --color-border-md:  #cbd5e1;

  --color-dark:       #0f172a;
  --color-dark-2:     #1e293b;
  --color-dark-3:     #334155;

  --color-slate:      #64748b;
  --color-slate-light:#94a3b8;

  --color-blue:       #2563eb;
  --color-blue-hover: #1d4ed8;
  --color-blue-light: #eff6ff;

  --color-success:    #16a34a;
  --color-success-bg: #f0fdf4;
  --color-warning:    #ca8a04;
  --color-warning-bg: #fefce8;
  --color-danger:     #dc2626;
  --color-danger-bg:  #fef2f2;
  --color-info:       #0284c7;
  --color-info-bg:    #f0f9ff;
  --color-muted:      #94a3b8;
  --color-muted-bg:   #f1f5f9;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;

  --shadow-sm:  0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.1);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);

  --sidebar-w: 220px;
  --header-h:  56px;
  --scope-h:   72px;
  --tab-h:     44px;

  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: var(--color-dark);
  background: var(--color-bg);
  line-height: 1.5;
}

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

a { color: var(--color-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ────────────────────────────────────────────── */
h1 { font-size: 1.25rem; font-weight: 700; }
h2 { font-size: 1.1rem;  font-weight: 700; }
h3 { font-size: .95rem;  font-weight: 600; margin-bottom: .5rem; }

/* ── Topbar ────────────────────────────────────────────────── */
.topbar {
  height: var(--header-h);
  background: var(--color-dark);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}

.topbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.topbar__logo-mark {
  width: 28px; height: 28px;
  background: var(--color-blue);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}

.topbar__logo-text {
  font-size: .85rem; font-weight: 700;
  color: #fff; letter-spacing: .01em;
}

.topbar__logo-sub {
  font-size: .7rem; color: var(--color-slate-light); font-weight: 400;
  display: block; margin-top: -2px;
}

.topbar__sep { flex: 1; }

.topbar__actions { display: flex; align-items: center; gap: 8px; }

.topbar__btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff; border-radius: var(--radius-sm);
  font-size: .8rem; padding: 5px 12px; cursor: pointer;
  transition: background .15s;
}
.topbar__btn:hover { background: rgba(255,255,255,.2); }

.topbar__breadcrumb {
  color: var(--color-slate-light);
  font-size: .8rem;
  display: flex; align-items: center; gap: 6px;
}
.topbar__breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.topbar__breadcrumb a:hover { color: #fff; }
.topbar__breadcrumb span { color: rgba(255,255,255,.4); }

/* ── Screens ───────────────────────────────────────────────── */
#screen-home,
#screen-workspace {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  overflow-y: auto;
}

/* ── Home screen ───────────────────────────────────────────── */
.home-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px;
}

.home-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.home-header h1 { font-size: 1.4rem; }
.home-header p { color: var(--color-slate); font-size: .9rem; margin-top: 4px; }

.home-actions { display: flex; gap: 10px; }

/* ── Assessment cards ──────────────────────────────────────── */
#assessment-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.assessment-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s;
}
.assessment-card:hover { box-shadow: var(--shadow-md); }
.assessment-card--archived { opacity: .65; }

.assessment-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.assessment-card__name { font-size: 1rem; font-weight: 700; }
.assessment-card__type { font-size: .75rem; color: var(--color-slate); }
.assessment-card__badges { display: flex; gap: 6px; align-items: center; }

.assessment-card__meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: .8rem; color: var(--color-slate);
  margin-bottom: 10px;
}

.assessment-card__meta strong { color: var(--color-dark); }

.assessment-card__progress { margin-bottom: 14px; }

.assessment-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Empty state ───────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 24px;
  color: var(--color-slate);
  text-align: center;
}
.empty-state svg { width: 48px; height: 48px; opacity: .35; }

/* ── Workspace layout ──────────────────────────────────────── */
.workspace {
  display: flex;
  height: 100%;
  overflow: hidden;
}

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--color-dark-2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,.06);
}

.sidebar__meta {
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar__vendor {
  font-weight: 700; color: #fff;
  font-size: .9rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.sidebar__type {
  font-size: .72rem; color: var(--color-slate-light); margin-top: 2px;
}

.sidebar__back {
  display: flex; align-items: center; gap: 6px;
  font-size: .75rem; color: var(--color-slate-light);
  background: none; border: none; cursor: pointer;
  padding: 8px 16px 4px;
  transition: color .15s;
  text-align: left;
}
.sidebar__back:hover { color: #fff; }

.sidebar__nav-label {
  font-size: .65rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-slate-light);
  padding: 10px 16px 4px;
}

#side-nav {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  padding: 4px 0;
}

.nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 16px;
  cursor: pointer;
  transition: background .12s;
  border-left: 3px solid transparent;
}
.nav-item:hover { background: rgba(255,255,255,.05); }
.nav-item--active {
  background: rgba(37,99,235,.25);
  border-left-color: var(--color-blue);
}

.nav-item__title {
  font-size: .8rem; color: rgba(255,255,255,.8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-item--active .nav-item__title { color: #fff; font-weight: 600; }
.nav-item__title em { font-style: normal; font-size: .7rem; color: var(--color-slate-light); }

.nav-item__meta {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.nav-item__count { font-size: .7rem; color: var(--color-slate-light); }

.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot--warn { background: var(--color-warning); }
.dot--ok   { background: var(--color-success); }

.sidebar__views {
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar__view-btn {
  background: none; border: none; cursor: pointer;
  font-size: .8rem; color: rgba(255,255,255,.65);
  text-align: left; padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background .12s, color .12s;
  display: flex; align-items: center; gap: 8px;
}
.sidebar__view-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar__view-btn--active { background: rgba(37,99,235,.2); color: #fff; }

/* ── Main area ─────────────────────────────────────────────── */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Scope bar ─────────────────────────────────────────────── */
.scope-bar-wrap {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 20px;
}

#scope-bar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.scope-field { display: flex; flex-direction: column; gap: 3px; }
.scope-field__label { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--color-slate); }
.scope-field__select,
.scope-field__input {
  height: 30px;
  border: 1px solid var(--color-border-md);
  border-radius: var(--radius-sm);
  padding: 0 8px;
  font-size: .8rem;
  background: var(--color-bg);
  color: var(--color-dark);
  outline: none;
  transition: border-color .15s;
}
.scope-field__select:focus,
.scope-field__input:focus { border-color: var(--color-blue); box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
.scope-field__input { width: 130px; }

#tier-guidance {
  font-size: .75rem;
  color: var(--color-slate);
  background: var(--color-blue-light);
  border-left: 3px solid var(--color-blue);
  padding: 4px 10px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 6px;
  width: 100%;
}

/* ── Tab bar ───────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  background: var(--color-surface);
  padding: 0 20px;
}

.tab-btn {
  padding: 10px 18px;
  font-size: .85rem;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-slate);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.tab-btn:hover { color: var(--color-dark); }
.tab-btn--active { color: var(--color-blue); border-bottom-color: var(--color-blue); font-weight: 600; }

/* ── Main content ──────────────────────────────────────────── */
#main-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.section-title { font-size: 1.05rem; font-weight: 700; }
.header-actions { margin-left: auto; display: flex; gap: 8px; }

/* ── Checklist table ───────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.checklist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
  min-width: 900px;
}

.checklist-table thead tr {
  background: var(--color-dark-3);
  color: #fff;
}

.checklist-table thead th {
  padding: 9px 10px;
  text-align: left;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.checklist-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background .1s;
}
.checklist-table tbody tr:last-child { border-bottom: none; }
.checklist-table tbody tr:nth-child(even) { background: var(--color-bg); }
.checklist-table tbody tr:hover { background: var(--color-blue-light); }

.checklist-row--issue { background: #fffbeb !important; }
.checklist-row--issue:hover { background: #fef9c3 !important; }
.checklist-row--dimmed { opacity: .5; }

.checklist-table td { padding: 7px 10px; vertical-align: middle; }

/* Column widths */
.col-check    { min-width: 220px; max-width: 280px; }
.col-status   { min-width: 100px; }
.col-evidence { min-width: 160px; }
.col-date     { min-width: 130px; }
.col-age      { min-width: 70px;  }
.col-owner    { min-width: 120px; }
.col-due      { min-width: 120px; }
.col-notes    { min-width: 140px; }

.check-label { font-weight: 500; color: var(--color-dark); }
.check-hint  { font-size: .7rem; color: var(--color-slate); margin-top: 2px; }
.tier-tag    { font-size: .65rem; background: var(--color-muted-bg); color: var(--color-slate); padding: 1px 5px; border-radius: 3px; }

/* Cell inputs */
.cell-input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 4px 7px;
  font-size: .8rem;
  background: transparent;
  color: var(--color-dark);
  outline: none;
  transition: border-color .15s, background .15s;
}
.cell-input:hover  { border-color: var(--color-border-md); background: var(--color-surface); }
.cell-input:focus  { border-color: var(--color-blue); background: var(--color-surface); box-shadow: 0 0 0 2px rgba(37,99,235,.12); }
.cell-input--date  { max-width: 140px; }
.cell-input--required { border-color: var(--color-warning); background: var(--color-warning-bg); }
.cell-input--required:focus { border-color: var(--color-warning); box-shadow: 0 0 0 2px rgba(202,138,4,.15); }

/* Cell selects */
.cell-select {
  border: 1px solid var(--color-border-md);
  border-radius: var(--radius-sm);
  padding: 4px 7px;
  font-size: .8rem;
  background: var(--color-surface);
  color: var(--color-dark);
  outline: none;
  cursor: pointer;
  min-width: 90px;
  transition: border-color .15s;
}
.cell-select:focus { border-color: var(--color-blue); box-shadow: 0 0 0 2px rgba(37,99,235,.12); }
.select--yes     { border-color: var(--color-success); color: var(--color-success); background: var(--color-success-bg); }
.select--no      { border-color: var(--color-danger);  color: var(--color-danger);  background: var(--color-danger-bg);  }
.select--partial { border-color: var(--color-warning); color: var(--color-warning); background: var(--color-warning-bg); }
.select--na      { border-color: var(--color-muted);   color: var(--color-slate);   background: var(--color-muted-bg);   }

/* Age badges */
.age-badge         { font-size: .7rem; padding: 2px 6px; border-radius: 3px; font-weight: 500; }
.age--current      { color: var(--color-success); background: var(--color-success-bg); }
.age--stale        { color: var(--color-danger);  background: var(--color-danger-bg);  }

/* Section nav */
.section-nav {
  display: flex;
  justify-content: space-between;
  padding: 8px 0 16px;
}

/* Row flash animation */
@keyframes flashRow {
  0%, 100% { background: inherit; }
  50%       { background: var(--color-blue-light); outline: 2px solid var(--color-blue); }
}
.flash { animation: flashRow .8s ease 2; }

/* ── Issues view ───────────────────────────────────────────── */
.row--overdue { background: #fef2f2 !important; }
.cell--missing  { color: var(--color-danger); font-weight: 600; }
.cell--overdue  { color: var(--color-danger); }
.overdue-tag    { font-size: .65rem; background: var(--color-danger-bg); color: var(--color-danger); padding: 1px 5px; border-radius: 3px; margin-left: 4px; }
.link           { color: var(--color-blue); font-size: .8rem; }
.link-btn       { background: none; border: none; cursor: pointer; color: var(--color-blue); font-size: .8rem; text-decoration: underline; padding: 0; }

/* ── Summary ───────────────────────────────────────────────── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.summary-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.summary-card__label { font-size: .7rem; color: var(--color-slate); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.summary-card__value { font-size: 1rem; font-weight: 700; }

.summary-stats {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 20px;
}

.stat-block {
  flex: 1; min-width: 80px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}
.stat-block__num   { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-block__label { font-size: .72rem; color: var(--color-slate); margin-top: 4px; }
.stat-block--yes     .stat-block__num { color: var(--color-success); }
.stat-block--partial .stat-block__num { color: var(--color-warning); }
.stat-block--no      .stat-block__num { color: var(--color-danger);  }
.stat-block--na      .stat-block__num { color: var(--color-slate);   }

.summary-progress-wrap { margin-bottom: 24px; }
.summary-progress-label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: .85rem; }
.summary-progress-label strong { font-weight: 700; color: var(--color-blue); }

.summary-section { margin-bottom: 28px; }

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.summary-table thead { background: var(--color-dark-3); color: #fff; }
.summary-table thead th { padding: 8px 12px; text-align: left; font-size: .75rem; }
.summary-table tbody tr { border-bottom: 1px solid var(--color-border); }
.summary-table tbody tr:nth-child(even) { background: var(--color-bg); }
.summary-table td { padding: 8px 12px; }
.cell--yes     { color: var(--color-success); font-weight: 700; }
.cell--partial { color: var(--color-warning); font-weight: 700; }
.cell--no      { color: var(--color-danger);  font-weight: 700; }
.cell--blank   { color: var(--color-slate);   }

.notes-area {
  width: 100%;
  min-height: 100px;
  border: 1px solid var(--color-border-md);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: .85rem;
  font-family: inherit;
  color: var(--color-dark);
  resize: vertical;
  outline: none;
  transition: border-color .15s;
}
.notes-area:focus { border-color: var(--color-blue); box-shadow: 0 0 0 2px rgba(37,99,235,.12); }

.status-controls { display: flex; gap: 10px; }

/* ── Progress bar ──────────────────────────────────────────── */
.progress-bar {
  height: 8px;
  background: var(--color-border);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar--lg { height: 12px; }
.progress-bar__fill {
  height: 100%;
  background: var(--color-blue);
  border-radius: 99px;
  transition: width .4s ease;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: .85rem; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn--primary   { background: var(--color-blue);    color: #fff;                   border-color: var(--color-blue);    }
.btn--primary:hover { background: var(--color-blue-hover); border-color: var(--color-blue-hover); }
.btn--ghost     { background: transparent;           color: var(--color-dark-3);    border-color: var(--color-border-md); }
.btn--ghost:hover { background: var(--color-bg); }
.btn--danger    { background: transparent;           color: var(--color-danger);    border-color: var(--color-danger);  }
.btn--danger:hover { background: var(--color-danger-bg); }
.btn--success   { background: var(--color-success);  color: #fff;                   border-color: var(--color-success); }
.btn--success:hover { opacity: .9; }
.btn--sm  { padding: 4px 10px; font-size: .78rem; }
.btn--xs  { padding: 2px 8px;  font-size: .72rem; }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: .72rem; font-weight: 600;
  white-space: nowrap;
}
.badge--success { background: var(--color-success-bg); color: var(--color-success); }
.badge--warning { background: var(--color-warning-bg); color: var(--color-warning); }
.badge--danger  { background: var(--color-danger-bg);  color: var(--color-danger);  }
.badge--info    { background: var(--color-info-bg);    color: var(--color-info);    }
.badge--muted   { background: var(--color-muted-bg);   color: var(--color-slate);   }

/* ── Modal ─────────────────────────────────────────────────── */
#modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  width: 440px;
  max-width: 95vw;
  padding: 28px;
}

.modal h2 { margin-bottom: 20px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 5px; color: var(--color-slate); text-transform: uppercase; letter-spacing: .04em; }
.form-control {
  width: 100%;
  height: 38px;
  border: 1px solid var(--color-border-md);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  font-size: .9rem;
  color: var(--color-dark);
  outline: none;
  transition: border-color .15s;
}
.form-control:focus { border-color: var(--color-blue); box-shadow: 0 0 0 2px rgba(37,99,235,.12); }

.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ── Import modal ──────────────────────────────────────────── */
#import-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.dropzone {
  border: 2px dashed var(--color-border-md);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  color: var(--color-slate);
  font-size: .85rem;
}
.dropzone:hover,
.dropzone.dragover { border-color: var(--color-blue); background: var(--color-blue-light); color: var(--color-blue); }
#import-file-input { display: none; }

/* ── Toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--color-dark);
  color: #fff;
  font-size: .85rem;
  box-shadow: var(--shadow-md);
  z-index: 300;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}
.toast--show    { opacity: 1; transform: translateY(0); }
.toast--success { background: var(--color-success); }
.toast--error   { background: var(--color-danger);  }
.toast--info    { background: var(--color-blue);    }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border-md); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-slate); }

/* ── Responsive tweaks ─────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .scope-field__input { width: 100px; }
}
