/* Readability layer — contrast, type scale, scan-friendly tables */

.app-shell {
  font-size: 15px;
  line-height: 1.55;
}

/* ── Navigation ───────────────────────────────────────────── */
.app-shell .shell-sidebar .sidebar-nav a,
.app-shell .shell-sidebar .nav-item {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.app-shell .nav-group-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.app-shell .brand-sub {
  color: var(--text-tertiary);
  font-weight: 600;
}

.app-shell .shell-user__name {
  color: var(--text);
  font-weight: 600;
}

/* ── Section headers — sentence case, dark ──────────────── */
.app-shell .ov-card-title,
.app-shell .runs-hero__title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
}

.app-shell .ov-hero-meta,
.app-shell .runs-hero__meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ── KPI strip ────────────────────────────────────────────── */
.app-shell .ov-stat__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.app-shell .ov-stat__value {
  font-size: 1.875rem;
  font-weight: 700;
}

.app-shell .ov-stat__delta {
  font-size: 0.75rem;
  font-weight: 600;
}

/* ── Charts & legends ─────────────────────────────────────── */
.app-shell .ov-chart-total {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ── Tables ───────────────────────────────────────────────── */
.app-shell .runs-table,
.app-shell .data-table,
.app-shell .ov-table {
  font-size: 0.875rem;
}

.app-shell .runs-table thead th,
.app-shell .data-table thead th,
.app-shell .ov-table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  background: var(--table-head-bg, var(--bg-muted));
  border-bottom: 2px solid var(--border-strong, var(--border));
}

.app-shell .runs-table tbody td,
.app-shell .data-table tbody td {
  color: var(--text);
}

.app-shell .runs-table tbody tr:nth-child(even),
.app-shell .data-table tbody tr:nth-child(even) {
  background: var(--table-zebra, rgba(255, 255, 255, 0.02));
}

.app-shell .runs-table .log-metric-pwd {
  color: var(--warn);
  font-weight: 600;
}

.app-shell .runs-table .log-metric-ck {
  color: var(--ok);
  font-weight: 600;
}

.app-shell .runs-table .log-tag {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ── Field labels ─────────────────────────────────────────── */
.app-shell .field-label,
.app-shell label.field-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ── Panel borders — no clip, no shadow ring ──────────────── */
.app-shell .ov-aside .ov-card,
.app-shell .ov-card--attention,
.app-shell .ov-card--shortcuts,
.app-shell .ov-card--recent {
  border: 1px solid var(--border);
}

.app-shell .ov-dashboard,
.app-shell .ov-main,
.app-shell .ov-charts-grid {
  width: 100%;
  min-width: 0;
}

.app-shell .runs-page {
  overflow: visible;
}

.app-shell .runs-content {
  overflow: visible;
  padding-bottom: 2px;
}

/* ── Overview readability ─────────────────────────────────── */
.app-shell .ov-hero-title {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.app-shell .ov-hero-meta {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.app-shell .ov-stat__label {
  font-size: 0.8125rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.app-shell .ov-conv-item__label {
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.app-shell .ov-stat--conversion .ov-conv-item__label {
  font-size: 0.6875rem;
}

.app-shell .ov-card {
  padding: 20px 22px;
}

.app-shell .ov-card--attention,
.app-shell .ov-card--recent,
.app-shell .ov-card--shortcuts {
  padding: 16px 18px;
}

.app-shell .ov-recent-table {
  font-size: 0.8125rem;
}

.app-shell .ov-recent-table thead th {
  font-size: 0.6875rem;
  color: var(--text);
}

.app-shell .ov-recent-table tbody td {
  color: var(--text);
}

.app-shell .ov-recent-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.app-shell .ov-browser-hint,
.app-shell .ov-browser-summary {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.app-shell .ov-legend-item,
.app-shell .ov-map-legend-item {
  font-size: 0.8125rem;
}

.app-shell .ov-attention-link {
  font-size: 0.8125rem;
  padding: 10px 12px;
}

.app-shell .ov-attention-reason {
  font-size: 0.75rem;
}

.app-shell .ov-shortcut-label {
  font-size: 0.875rem;
}

.app-shell .ov-segment-btn {
  font-size: 0.75rem;
  min-width: 2.75rem;
}

.app-shell .ov-chart-total {
  font-size: 0.8125rem;
}

.app-shell .wrap.wrap--overview {
  overflow: hidden;
}
