/* ==========================================================================
   Shield Dev · Testing — hoja de estilos
   Inspirada en el diseño de shielddev.com.ar (IBM Plex + azul #0f62fe, esquinas rectas)
   ========================================================================== */

:root {
  --blue: #0f62fe;
  --blue-hover: #0353e9;
  --blue-active: #002d9c;
  --blue-10: #edf5ff;
  --blue-20: #d0e2ff;
  --text: #161616;
  --text-2: #525252;
  --text-3: #6f6f6f;
  --border: #e0e0e0;
  --border-strong: #8d8d8d;
  --layer: #f4f4f4;
  --layer-2: #e8e8e8;
  --white: #ffffff;
  --dark: #393939;
  --dark-hover: #474747;
  --green: #24a148;
  --green-bg: #defbe6;
  --green-text: #0e6027;
  --red: #da1e28;
  --red-bg: #fff1f1;
  --red-text: #a2191f;
  --yellow: #f1c21b;
  --yellow-bg: #fcf4d6;
  --yellow-text: #8e6a00;
  --purple: #8a3ffc;
  --purple-bg: #f6f2ff;
  --purple-text: #6929c4;
  --gray-tag: #e0e0e0;
  --font: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', Menlo, Consolas, monospace;
  --container: 1248px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  letter-spacing: .16px;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1rem; }
code, pre { font-family: var(--mono); font-size: 12px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: stretch; height: 56px; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); margin-right: 32px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 32px; flex: none; }
.brand__name { font-size: 20px; letter-spacing: 0; }
.brand__name b { font-weight: 600; }
.brand__tag {
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .8px;
  color: var(--blue); border: 1px solid var(--blue-20); background: var(--blue-10);
  padding: 1px 6px; margin-left: 4px;
}
.nav { display: flex; align-items: stretch; gap: 4px; flex: 1; }
.nav a {
  display: flex; align-items: center; padding: 0 16px;
  color: var(--text-2); font-size: 14px; border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.nav a:hover { color: var(--text); text-decoration: none; background: var(--layer); }
.nav a.is-active { color: var(--text); border-bottom-color: var(--blue); }
.header__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.user-menu { position: relative; }
.user-menu > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 6px 8px; color: var(--text);
}
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover { background: var(--layer); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.avatar--sm { width: 24px; height: 24px; font-size: 10px; }
.avatar--gray { background: var(--dark); }
.user-menu__meta { line-height: 1.2; text-align: left; }
.user-menu__meta small { display: block; color: var(--text-3); font-size: 12px; }
.user-menu__panel {
  position: absolute; right: 0; top: calc(100% + 4px); min-width: 220px;
  background: var(--white); border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,.12); padding: 4px 0;
}
.user-menu__panel a, .user-menu__panel button {
  display: block; width: 100%; text-align: left; padding: 10px 16px;
  font: inherit; color: var(--text); background: none; border: 0; cursor: pointer;
}
.user-menu__panel a:hover, .user-menu__panel button:hover { background: var(--layer); text-decoration: none; }

/* ---------- Page ---------- */
.page { padding: 24px 0 80px; }
.breadcrumb { font-size: 14px; color: var(--text-2); margin-bottom: 24px; }
.breadcrumb a { color: var(--blue); }
.breadcrumb span { margin: 0 8px; color: var(--text-3); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.eyebrow { font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.page-title { font-size: 42px; line-height: 1.19; font-weight: 300; letter-spacing: 0; }
.page-title--md { font-size: 32px; line-height: 1.25; }
.page-lead { font-size: 18px; line-height: 1.5; color: var(--text-2); max-width: 720px; margin-top: 12px; font-weight: 400; }
.section { margin-top: 48px; }
.section-title { font-size: 24px; font-weight: 400; margin-bottom: 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.muted { color: var(--text-2); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 32px;
  min-height: 48px; padding: 12px 16px; min-width: 160px;
  font: inherit; font-size: 14px; line-height: 1.29; letter-spacing: .16px;
  border: 1px solid transparent; border-radius: 0; cursor: pointer;
  text-decoration: none !important; white-space: nowrap;
  transition: background .11s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--primary:active { background: var(--blue-active); }
.btn--secondary { background: var(--dark); color: #fff; }
.btn--secondary:hover { background: var(--dark-hover); }
.btn--tertiary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--tertiary:hover { background: var(--blue); color: #fff; }
.btn--ghost { background: transparent; color: var(--blue); min-width: 0; gap: 8px; }
.btn--ghost:hover { background: var(--layer); }
.btn--danger { background: var(--red); color: #fff; }
.btn--danger:hover { background: #b81921; }
.btn--sm { min-height: 32px; padding: 6px 12px; min-width: 0; gap: 12px; }
.btn--md { min-height: 40px; padding: 10px 14px; }
.btn-group { display: flex; gap: 1px; flex-wrap: wrap; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn--danger { color: var(--red); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.form-grid .span-2 { grid-column: span 2; }
.field label, .field .label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 8px; letter-spacing: .32px; }
.field .req { color: var(--red); }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--text);
  background: var(--layer); border: 0; border-bottom: 1px solid var(--border-strong);
  border-radius: 0; height: 40px; padding: 0 16px; outline: 2px solid transparent; outline-offset: -2px;
}
.textarea { height: auto; min-height: 96px; padding: 11px 16px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6l.7-.7L8 9.6l4.3-4.3.7.7z' fill='%23161616'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.input:focus, .select:focus, .textarea:focus { outline-color: var(--blue); }
.input--white, .select--white { background-color: var(--white); }
.field .help { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.field .error { font-size: 12px; color: var(--red); margin-top: 6px; }
.has-error .input, .has-error .select, .has-error .textarea { outline-color: var(--red); }
.checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--text); }
.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; background: var(--layer); padding: 16px; }

.dropzone {
  display: block; position: relative; border: 1px dashed var(--border-strong); background: var(--white);
  padding: 24px; text-align: left; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--blue); background: var(--blue-10); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__title { font-size: 16px; color: var(--text); display: flex; gap: 10px; align-items: center; }
.dropzone__title svg { width: 20px; height: 20px; color: var(--blue); }
.dropzone__hint { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.dropzone__files { font-size: 12px; color: var(--blue); margin-top: 8px; font-family: var(--mono); word-break: break-all; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); margin-bottom: 32px; }
.steps__item { padding: 12px 16px 0 0; border-top: 2px solid var(--border); margin-top: -1px; color: var(--text-2); font-size: 14px; }
.steps__item b { display: block; color: var(--text); font-weight: 400; font-size: 16px; }
.steps__item.is-active { border-top-color: var(--blue); }
.form-section { border-top: 1px solid var(--border); padding: 32px 0; display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
.form-section__intro h3 { font-size: 20px; margin-bottom: 8px; }
.form-section__intro p { color: var(--text-2); font-size: 14px; }
.form-actions { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: flex-end; gap: 1px; }

/* ---------- Alerts ---------- */
.alert {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 24px;
  border-left: 3px solid; background: var(--layer); font-size: 14px;
}
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert--success { border-color: var(--green); background: var(--green-bg); }
.alert--success svg { color: var(--green); }
.alert--error { border-color: var(--red); background: var(--red-bg); }
.alert--error svg { color: var(--red); }
.alert--warning { border-color: var(--yellow); background: var(--yellow-bg); }
.alert--warning svg { color: #b28600; }
.alert--info { border-color: var(--blue); background: var(--blue-10); }
.alert--info svg { color: var(--blue); }
.alert ul { margin: 4px 0 0; padding-left: 18px; }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 24px; font-size: 12px; font-weight: 400; white-space: nowrap;
  background: var(--gray-tag); color: var(--text);
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.tag--plain::before { display: none; }
.tag--green { background: var(--green-bg); color: var(--green-text); }
.tag--red { background: var(--red-bg); color: var(--red-text); }
.tag--yellow { background: var(--yellow-bg); color: var(--yellow-text); }
.tag--purple { background: var(--purple-bg); color: var(--purple-text); }
.tag--blue { background: var(--blue-10); color: var(--blue-active); }
.tag--gray { background: var(--layer-2); color: var(--text-2); }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.kpi { background: var(--white); padding: 20px 24px 24px; position: relative; }
.kpi__icon { width: 24px; height: 24px; color: var(--blue); margin-bottom: 16px; }
.kpi__label { font-size: 14px; color: var(--text-2); }
.kpi__value { font-size: 42px; font-weight: 300; line-height: 1.2; margin-top: 4px; }
.kpi__value small { font-size: 20px; color: var(--text-2); }
.kpi__foot { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.kpi--danger .kpi__icon { color: var(--red); }
.kpi--warning .kpi__icon { color: #b28600; }
.kpi--success .kpi__icon { color: var(--green); }

/* ---------- Cards / tiles ---------- */
.tile { background: var(--layer); padding: 24px; }
.tile--white { background: var(--white); border: 1px solid var(--border); }
.tile__title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.grid-2-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.feature { border-top: 1px solid var(--border-strong); padding-top: 16px; }
.feature svg { width: 28px; height: 28px; color: var(--blue); margin-bottom: 16px; }
.feature h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature p { color: var(--text-2); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-weight: 600; background: var(--layer-2); color: var(--text);
  padding: 14px 16px; white-space: nowrap; font-size: 14px;
}
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover td { background: var(--layer); }
.table--compact td, .table--compact th { padding: 10px 16px; }
.table a.row-link { color: var(--text); font-weight: 500; }
.table a.row-link:hover { color: var(--blue); }
.table .sub { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.empty { padding: 48px 24px; text-align: center; color: var(--text-2); background: var(--layer); }
.empty svg { width: 40px; height: 40px; color: var(--border-strong); margin-bottom: 12px; }
.empty h4 { font-size: 18px; color: var(--text); margin-bottom: 4px; }

/* ---------- Result bar ---------- */
.rbar { display: flex; height: 8px; width: 140px; background: var(--layer-2); overflow: hidden; }
.rbar span { display: block; height: 100%; }
.rbar--lg { height: 12px; width: 100%; }
.rbar .ok { background: var(--green); }
.rbar .ko { background: var(--red); }
.rbar .fl { background: var(--purple); }
.rbar .sk { background: #a8a8a8; }
.rbar-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-top: 8px; }
.rbar-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; vertical-align: middle; }
.rate { font-variant-numeric: tabular-nums; }

/* ---------- Charts ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--text-3); }
.donut-wrap { display: flex; align-items: center; gap: 32px; }
.donut-wrap svg { width: 160px; height: 160px; flex: none; }

/* ---------- Filters ---------- */
.filters { background: var(--layer); padding: 16px; display: grid; grid-template-columns: 2fr repeat(5, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 24px; }
.filters .field label { margin-bottom: 4px; }
.filters .input, .filters .select { background-color: var(--white); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.tabs a {
  padding: 12px 16px; color: var(--text-2); border-bottom: 2px solid var(--border); margin-bottom: -1px;
  white-space: nowrap; font-size: 14px; display: flex; align-items: center; gap: 8px;
}
.tabs a:hover { color: var(--text); text-decoration: none; border-bottom-color: var(--border-strong); }
.tabs a.is-active { color: var(--text); border-bottom-color: var(--blue); font-weight: 600; }
.tabs .count { background: var(--layer-2); color: var(--text-2); border-radius: 12px; padding: 0 7px; font-size: 11px; font-weight: 400; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ---------- Run header ---------- */
.run-hero { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-bottom: 32px; }
.meta-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border); }
.meta-list > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--border); }
.meta-list dt { font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.meta-list dd { margin: 0; font-size: 14px; word-break: break-word; }

/* ---------- Test list ---------- */
.suite { border: 1px solid var(--border); margin-bottom: 16px; }
.suite > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px; background: var(--layer); font-family: var(--mono); font-size: 13px;
}
.suite > summary::-webkit-details-marker { display: none; }
.suite > summary::before { content: '›'; font-family: var(--font); font-size: 18px; margin-right: 8px; transition: transform .15s; display: inline-block; }
.suite[open] > summary::before { transform: rotate(90deg); }
.suite__name { flex: 1; display: flex; align-items: center; }
.case { display: grid; grid-template-columns: 24px 1fr auto auto; gap: 12px; align-items: start; padding: 12px 16px; border-top: 1px solid var(--border); }
.case__icon { width: 18px; height: 18px; margin-top: 2px; }
.case__icon.passed { color: var(--green); }
.case__icon.failed { color: var(--red); }
.case__icon.flaky { color: var(--purple); }
.case__icon.skipped { color: var(--border-strong); }
.case__title { font-size: 14px; }
.case__browser { font-size: 12px; color: var(--text-3); }
.case__error {
  grid-column: 2 / -1; background: #262626; color: #f4f4f4; padding: 12px 16px; margin: 4px 0 0;
  max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-size: 12px; line-height: 1.5;
}
.case__thumbs { grid-column: 2 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.case__thumbs img { width: 160px; height: 100px; object-fit: cover; border: 1px solid var(--border); }

/* ---------- Evidence gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; border: 1px solid var(--border); background: var(--white); display: flex; flex-direction: column; }
.gallery .thumb { aspect-ratio: 16 / 10; background: var(--layer); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery .thumb img, .gallery .thumb video { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumb svg { width: 40px; height: 40px; color: var(--border-strong); }
.gallery figcaption { padding: 10px 12px; font-size: 12px; color: var(--text-2); display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.gallery figcaption b { display: block; color: var(--text); font-weight: 500; word-break: break-all; }

/* ---------- Comments / timeline ---------- */
.timeline { border-left: 1px solid var(--border); margin-left: 12px; padding-left: 24px; }
.timeline__item { position: relative; padding-bottom: 24px; }
.timeline__item .avatar { position: absolute; left: -37px; top: 0; }
.timeline__head { font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.timeline__head time { color: var(--text-3); font-size: 12px; }
.timeline__body { background: var(--layer); padding: 12px 16px; margin-top: 8px; white-space: pre-wrap; }
.review-box { background: var(--layer); padding: 24px; }
.review-box .textarea { background: var(--white); }

/* ---------- Report iframe ---------- */
.report-frame { width: 100%; height: 80vh; min-height: 600px; border: 1px solid var(--border); background: #fff; }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding: 12px 0; font-size: 14px; color: var(--text-2); }
.pagination__pages { display: flex; gap: 1px; }
.pagination__pages a, .pagination__pages span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; color: var(--text); }
.pagination__pages a:hover { background: var(--layer); text-decoration: none; }
.pagination__pages .is-current { background: var(--text); color: #fff; }
.pagination__pages .is-disabled { color: var(--border-strong); }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth__form { padding: 48px 64px; display: flex; flex-direction: column; }
.auth__form .brand { margin-bottom: auto; }
.auth__box { max-width: 400px; width: 100%; margin: 48px 0 auto; }
.auth__box h1 { font-size: 42px; font-weight: 300; line-height: 1.19; margin-bottom: 8px; }
.auth__box .lead { color: var(--text-2); font-size: 16px; margin-bottom: 32px; }
.auth__art { background: var(--layer); display: flex; align-items: center; justify-content: center; padding: 48px; position: relative; }
.auth__art svg { width: 100%; max-width: 520px; height: auto; }
.auth__quote { position: absolute; left: 48px; bottom: 48px; right: 48px; font-size: 14px; color: var(--text-2); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--text-3); font-size: 12px; }
.footer .container { display: flex; justify-content: space-between; gap: 16px; }

/* ---------- Token box ---------- */
.token { display: flex; gap: 0; align-items: stretch; }
.token code { flex: 1; background: #262626; color: #78a9ff; padding: 12px 16px; font-size: 13px; word-break: break-all; }
.codeblock { background: #262626; color: #f4f4f4; padding: 16px; overflow-x: auto; font-size: 12px; line-height: 1.6; margin: 0; }

/* ---------- Manual cases ---------- */
.manual-row { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr 1fr 130px 40px; gap: 8px; align-items: start; margin-bottom: 8px; }
.manual-row .textarea { min-height: 40px; height: 40px; padding-top: 9px; }
.manual-head { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr 1fr 130px 40px; gap: 8px; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.icon-btn { width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--layer-2); color: var(--red); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1056px) {
  .nav a { padding: 0 10px; }
  .user-menu__meta { display: none; }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .header__inner { height: auto; flex-wrap: wrap; padding-top: 8px; }
  .nav { order: 3; width: 100%; overflow-x: auto; flex: none; }
  .nav a { height: 44px; }
  .kpis, .meta-list { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2-eq, .grid-3, .run-hero, .form-section, .auth { grid-template-columns: 1fr; }
  .auth__art { display: none; }
  .auth__form { padding: 32px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .filters { grid-template-columns: 1fr 1fr; }
  .page-title { font-size: 32px; }
  .manual-row, .manual-head { grid-template-columns: 1fr; }
  .manual-head { display: none; }
}
