:root {
  /* SeedMetrics primary (green) */
  --primary: #028e63;
  --primary-deep: #027a56;
  --primary-subtle: rgba(2,142,99,0.12);

  /* Stone neutrals (per clean_corporate_style) */
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f5f5f4;
  --border: rgba(120,113,108,0.12);
  --hover: #f5f5f4;

  /* Text */
  --text-strong: #1c1917;
  --text-body:   #44403c;
  --text-muted:  #78716c;
  --text-faint:  #a8a29e;

  /* Semantic */
  --success: #16a34a; --success-bg: rgba(22,163,74,0.15);
  --danger:  #ef4444; --danger-bg:  rgba(239,68,68,0.15);
  --warning: #f59e0b; --warning-bg: rgba(245,158,11,0.15);
  --info:    #06b6d4; --info-bg:    rgba(6,182,212,0.15);

  /* Shadows */
  --shadow-card:     0 1px 2px 0 rgba(27,37,37,0), 0 4px 16px 0 rgba(27,37,37,0.04);
  --shadow-dropdown: 0 15px 35px rgba(27,37,37,0.10);

  /* Radius */
  --r-card: 1rem;
  --r-ctrl: 0.375rem;
  --r-sm: 0.25rem;
  --r-lg: 0.5rem;
  --r-full: 9999px;

  --sidebar-width: 16rem;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  font-feature-settings: "cv11", "ss01";
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.lucide { width: 1rem; height: 1rem; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lucide.size-3 { width: 0.75rem; height: 0.75rem; }
.lucide.size-4 { width: 1rem; height: 1rem; }
.lucide.size-5 { width: 1.25rem; height: 1.25rem; }
.lucide.size-6 { width: 1.5rem; height: 1.5rem; }
.lucide.size-8 { width: 2rem; height: 2rem; }
.lucide.size-10 { width: 2.5rem; height: 2.5rem; }

/* ── Sidebar ── */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 52;
  transition: transform 0.2s ease;
}
.sidebar-brand {
  height: 4rem; display: flex; align-items: center; gap: 0.625rem;
  padding: 0 1rem; border-bottom: 1px solid var(--border);
}
.sidebar-logo {
  width: 2.25rem; height: 2.25rem; flex-shrink: 0;
  border-radius: var(--r-ctrl);
  background: var(--primary-subtle); color: var(--primary);
  display: grid; place-items: center;
}
.sidebar-brand-name { font-weight: 600; color: var(--text-strong); font-size: 0.9375rem; line-height: 1.1; }
.sidebar-brand-sub { font-size: 0.6875rem; color: var(--text-muted); font-weight: 400; margin-top: 0.125rem; }
.sidebar-nav { flex: 1; padding: 0.75rem; overflow-y: auto; }
.sidebar-nav-label {
  font-size: 0.6875rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em; padding: 0.875rem 0.75rem 0.375rem;
}
.nav-item {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.5rem 0.75rem; border-radius: var(--r-ctrl);
  font-size: 0.8125rem; font-weight: 500; color: var(--text-body);
  cursor: pointer; user-select: none;
  transition: background-color 0.15s, color 0.15s;
}
.nav-item:hover { background: var(--hover); color: var(--text-strong); }
.nav-item.active { background: var(--primary-subtle); color: var(--primary); }
.nav-badge {
  margin-left: auto;
  min-width: 1.25rem; height: 1.25rem; padding: 0 0.375rem;
  border-radius: var(--r-full);
  background: var(--primary); color: #ffffff;
  font-size: 0.6875rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.sidebar-footer { padding: 0.75rem; border-top: 1px solid var(--border); }
.sidebar-user {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.375rem 0.5rem; border-radius: var(--r-ctrl);
}
.sidebar-avatar {
  width: 2rem; height: 2rem; border-radius: var(--r-full);
  background: var(--primary-subtle); color: var(--primary);
  font-weight: 600; font-size: 0.75rem;
  display: grid; place-items: center; flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: 0.8125rem; font-weight: 500; color: var(--text-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-role { font-size: 0.6875rem; color: var(--text-muted); }
.icon-btn {
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border-radius: var(--r-ctrl);
  border: 0; background: transparent;
  color: var(--text-muted);
  transition: background-color 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--hover); color: var(--text-strong); }
.icon-btn.icon-btn-danger:hover { background: var(--danger-bg); color: var(--danger); }

/* ── Main shell ── */
.main { margin-left: var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  height: 4rem;
  padding: 0 1.5rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.75rem;
}
.topbar-title { font-size: 0.9375rem; font-weight: 500; color: var(--text-strong); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }

.page { padding: 1.5rem; flex: 1; display: none; }
.page.active { display: block; }
.page-title { font-size: 1.5rem; font-weight: 500; color: var(--text-strong); margin-bottom: 0.25rem; }
.page-subtitle { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.section-title { font-size: 0.9375rem; font-weight: 500; color: var(--text-strong); margin-bottom: 0.75rem; }

/* ── Card ── */
.card {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 1rem;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.card-title { font-size: 1.0625rem; font-weight: 500; color: var(--text-strong); }
.card-body { padding: 1.25rem; }
.card-tight .card-body { padding: 0.875rem 1.25rem; }

/* ── KPI grid ── */
.grid { display: grid; gap: 1rem; }
.kpi-grid {
  display: grid; gap: 1rem; margin-bottom: 1.5rem;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 768px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .kpi-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .kpi-grid.cols-5 { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px) { .kpi-grid.cols-6 { grid-template-columns: repeat(6, 1fr); } }

.kpi-card {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 1rem 1.25rem;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.75rem;
}
.kpi-card .kpi-content { min-width: 0; }
.kpi-label { font-size: 0.8125rem; color: var(--text-muted); }
.kpi-value { font-size: 1.5rem; font-weight: 600; color: var(--text-strong); margin-top: 0.5rem; line-height: 1.1; }
.kpi-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.kpi-icon {
  width: 2.25rem; height: 2.25rem; flex-shrink: 0;
  border-radius: var(--r-ctrl);
  background: var(--primary-subtle); color: var(--primary);
  display: grid; place-items: center;
}
.kpi-card.tone-success .kpi-icon { background: var(--success-bg); color: var(--success); }
.kpi-card.tone-danger  .kpi-icon { background: var(--danger-bg);  color: var(--danger); }
.kpi-card.tone-warning .kpi-icon { background: var(--warning-bg); color: var(--warning); }
.kpi-card.tone-info    .kpi-icon { background: var(--info-bg);    color: var(--info); }

.split-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .split-grid { grid-template-columns: 1fr 1fr; } }

/* ── Quick actions ── */
.quick-actions {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(1, 1fr);
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .quick-actions { grid-template-columns: repeat(3, 1fr); } }
.quick-action {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s;
  border: 0; text-align: left;
  width: 100%;
  font: inherit; color: inherit;
}
.quick-action:hover { background: var(--hover); }
.quick-action-icon {
  width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  border-radius: var(--r-ctrl);
  background: var(--primary-subtle); color: var(--primary);
  display: grid; place-items: center;
}
.quick-action-text { min-width: 0; }
.quick-action-label { font-size: 0.875rem; font-weight: 500; color: var(--text-strong); }
.quick-action-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.125rem; }

/* ── Form ── */
.form-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.form-group { flex: 1; min-width: 12rem; display: flex; flex-direction: column; gap: 0.375rem; }
.form-group.grow-2 { flex: 2; }
.form-control {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-ctrl);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-body);
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control::placeholder { color: var(--text-faint); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(2,142,99,0.18); }
select.form-control { cursor: pointer; }
.search-wrap { position: relative; }
.search-wrap .form-control { padding-left: 2.25rem; }
.search-icon {
  position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
  color: var(--text-faint); pointer-events: none;
}

input[type="checkbox"] {
  appearance: none;
  width: 1rem; height: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  display: inline-grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s, border-color 0.15s;
}
input[type="checkbox"]:checked { background: var(--primary); border-color: var(--primary); }
input[type="checkbox"]:checked::after {
  content: ""; width: 0.5rem; height: 0.25rem;
  border: 2px solid #fff; border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(0.5px, -1px);
}
input[type="checkbox"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
input[type="checkbox"]:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--r-ctrl);
  border: 1px solid transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #ffffff; border-color: var(--primary); }
.btn-primary:hover:not(:disabled) { background: var(--primary-deep); border-color: var(--primary-deep); }
.btn-soft { background: var(--primary-subtle); color: var(--primary); }
.btn-soft:hover:not(:disabled) { background: rgba(2,142,99,0.18); }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--text-body); }
.btn-outline:hover:not(:disabled) { background: var(--hover); color: var(--text-strong); }
.btn-ghost { background: transparent; color: var(--text-body); }
.btn-ghost:hover:not(:disabled) { background: var(--hover); color: var(--text-strong); }
.btn-danger { background: #ef4444; color: #ffffff; border-color: #ef4444; }
.btn-danger:hover:not(:disabled) { background: #dc2626; border-color: #dc2626; }
.btn-danger-soft { background: var(--danger-bg); color: var(--danger); }
.btn-danger-soft:hover:not(:disabled) { background: rgba(239,68,68,0.22); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
.btn-icon { padding: 0; width: 2rem; height: 2rem; display: inline-grid; place-items: center; }

/* ── Table ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.6875rem; font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--surface);
}
tbody tr { border-bottom: 1px solid var(--border); transition: background-color 0.1s; }
tbody tr:last-child { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
tbody tr.selected { background: var(--primary-subtle); }
tbody td { padding: 0.75rem 1rem; vertical-align: middle; }
.row-check { width: 2.25rem; }
.td-mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.75rem; }
.td-right, th.td-right { text-align: right; }
.td-money { white-space: nowrap; min-width: 7rem; }
.table-primary { font-weight: 500; color: var(--text-strong); }
.table-secondary { font-size: 0.6875rem; color: var(--text-muted); margin-top: 0.125rem; }
.table-link-pills { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.link-pill {
  display: inline-flex; align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: var(--r-sm);
  background: var(--primary-subtle); color: var(--primary);
  font-size: 0.6875rem; font-weight: 500;
  transition: background-color 0.15s;
}
.link-pill:hover { background: rgba(2,142,99,0.18); }
.email-cell { font-size: 0.75rem; line-height: 1.35; color: var(--text-body); }
.email-text { display: -webkit-box; max-width: 100%; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.email-table { min-width: 56rem; }
.email-table thead th { white-space: normal; line-height: 1.2; }
.cell-trunc { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-trunc-sm { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.125rem 0.5rem;
  border-radius: var(--r-ctrl);
  font-size: 0.6875rem; font-weight: 500;
}
.cell-pedido { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8125rem; color: var(--primary); font-weight: 600; white-space: nowrap; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: middle; }
.cell-pedido.empty { color: var(--text-faint); font-weight: 400; font-family: inherit; }
.th-pedido { color: var(--text-strong); font-weight: 600; }
.badge-dot { width: 0.375rem; height: 0.375rem; border-radius: var(--r-full); flex-shrink: 0; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-success .badge-dot { background: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-danger .badge-dot { background: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-warning .badge-dot { background: var(--warning); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-info .badge-dot { background: var(--info); }
.badge-neutral { background: rgba(120,113,108,0.12); color: var(--text-body); }
.badge-neutral .badge-dot { background: var(--text-muted); }

/* ── Selection toolbar ── */
.selection-toolbar {
  display: none;
  align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  flex-wrap: wrap;
}
.selection-toolbar.visible { display: flex; }
.selection-count { font-size: 0.8125rem; font-weight: 500; color: var(--primary); margin-right: auto; }

/* ── Dropzone ── */
.dropzone {
  border: 1px dashed var(--border);
  border-radius: var(--r-card);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.dropzone:hover, .dropzone.drag-over {
  border-color: var(--primary);
  background: var(--primary-subtle);
}
.dropzone-icon { color: var(--text-faint); margin-bottom: 0.5rem; display: inline-flex; }
.dropzone-title { font-size: 0.9375rem; font-weight: 500; color: var(--text-strong); }
.dropzone-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ── Progress ── */
.progress-bar {
  width: 100%; height: 0.375rem;
  background: var(--surface-2);
  border-radius: var(--r-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
  transition: width 0.3s;
}

/* ── Toast ── */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 70;
  max-width: 22rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-ctrl);
  background: var(--text-strong); color: #ffffff;
  box-shadow: var(--shadow-dropdown);
  font-size: 0.8125rem;
  opacity: 0; transform: translateY(0.5rem);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); color: #1c1917; }

/* ── Loading ── */
.loading-overlay {
  position: fixed; inset: 0;
  z-index: 60;
  background: rgba(28,25,23,0.4);
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 0.75rem;
}
.loading-overlay.show { display: flex; }
.spinner {
  width: 1.75rem; height: 1.75rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: var(--r-full);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-msg { color: #ffffff; font-size: 0.8125rem; font-weight: 500; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-icon { color: var(--text-faint); margin: 0 auto 0.75rem; display: inline-flex; }
.empty-title { font-size: 0.9375rem; font-weight: 500; color: var(--text-strong); }
.empty-sub { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ── Modal ── */
.modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  z-index: 60;
  background: rgba(28,25,23,0.4);
  align-items: center; justify-content: center;
  padding: 1.25rem;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-dropdown);
  width: 100%; max-width: 56rem;
  max-height: 88vh; overflow-y: auto;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.modal-header-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.modal-title { font-size: 0.9375rem; font-weight: 500; color: var(--text-strong); }
.modal-close {
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border: 0; border-radius: var(--r-ctrl);
  background: transparent; color: var(--text-muted);
  transition: background-color 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--hover); color: var(--text-strong); }
.modal-body { padding: 1.25rem 1.5rem; }

.detail-summary {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .detail-summary { grid-template-columns: repeat(4, 1fr); } }
.detail-card {
  background: var(--surface-2);
  border-radius: var(--r-ctrl);
  padding: 0.75rem 1rem;
}
.detail-card-label {
  font-size: 0.6875rem; font-weight: 500; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.25rem;
}
.detail-card-value { color: var(--text-strong); font-size: 0.9375rem; font-weight: 500; word-break: break-word; }

.detail-section { margin-bottom: 1.25rem; }
.detail-section:last-child { margin-bottom: 0; }
.detail-section-title {
  font-size: 0.75rem; font-weight: 500; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 0.625rem;
}
.detail-grid { display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .detail-grid { grid-template-columns: repeat(2, 1fr); } }
.detail-block { background: var(--surface-2); border-radius: var(--r-ctrl); padding: 0.75rem 1rem; }
.detail-label {
  font-size: 0.6875rem; font-weight: 500; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.25rem;
}
.detail-value { color: var(--text-strong); word-break: break-word; font-size: 0.8125rem; line-height: 1.5; }
.detail-code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.75rem; word-break: break-all; }
.detail-alert {
  border: 1px solid var(--border);
  border-radius: var(--r-ctrl);
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--text-body);
}
.detail-json {
  background: var(--surface-2);
  padding: 0.75rem 1rem;
  border-radius: var(--r-ctrl);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.75rem;
  white-space: pre-wrap;
  max-height: 18rem;
  overflow: auto;
  line-height: 1.5;
}
.detail-toggle summary {
  cursor: pointer;
  padding: 0.625rem 0.875rem;
  background: var(--surface-2);
  border-radius: var(--r-ctrl);
  font-size: 0.8125rem; font-weight: 500;
  color: var(--text-strong);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.detail-toggle summary::-webkit-details-marker { display: none; }
.detail-toggle summary::after { content: 'Ver'; color: var(--primary); font-size: 0.75rem; }
.detail-toggle[open] summary::after { content: 'Ocultar'; }
.detail-toggle[open] summary { margin-bottom: 0.5rem; }

/* ── Hamburger / mobile ── */
.hamburger {
  display: none; padding: 0.375rem; border: 0; background: transparent;
  color: var(--text-strong); border-radius: var(--r-ctrl);
}
.hamburger:hover { background: var(--hover); }
.overlay-mobile { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 51; }
.overlay-mobile.show { display: block; }
@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-dropdown); }
  .main { margin-left: 0; }
  .hamburger { display: inline-flex; align-items: center; justify-content: center; }
}

/* utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.ml-auto { margin-left: auto; }
.text-center { text-align: center; }
.text-strong { color: var(--text-strong); }
.text-muted { color: var(--text-muted); }
.hidden { display: none !important; }
