/* ═══════════════════════════════════════════════════════════
   NLArchive — Veterinary Neurological Test · Stylesheet
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --card: #22263a;
  --border: #2e3250;
  --accent: #6c8fff;
  --accent2: #a78bfa;
  --green: #34d399;
  --yellow: #fbbf24;
  --red: #f87171;
  --orange: #fb923c;
  --purple: #c084fc;
  --text: #e2e8f0;
  --muted: #8892b0;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 0 0 80px;
}

/* ── HEADER ── */
header {
  background: linear-gradient(135deg, #1a1d27 0%, #12152a 100%);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.logo { font-size: 2rem; }
header h1 { font-size: 1.5rem; font-weight: 700; color: var(--accent); letter-spacing: -0.5px; }
header p  { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

/* ── LAYOUT ── */
.container { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* ── PATIENT FORM ── */
#patient-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px auto;
  max-width: 880px;
}
#patient-section h2 { font-size: 1rem; color: var(--accent); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.patient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 14px;
}
label { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
input, select {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border .2s;
}
input:focus, select:focus { border-color: var(--accent); }
select option { background: var(--card); }

/* ── PROGRESS BAR ── */
#progress-wrap { max-width: 880px; margin: 0 auto 18px; padding: 0 20px; }
.progress-label { font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; }
.progress-bar { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 99px; transition: width .4s ease; width: 0%; }

/* ── TABS ── */
#tabs {
  max-width: 880px;
  margin: 0 auto 14px;
  padding: 0 20px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 7px 15px;
  font-size: 0.79rem;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.tab-btn:hover { border-color: var(--accent); color: var(--text); }
.tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.tab-btn .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); margin-left: 6px; vertical-align: middle; opacity: 0;
}
.tab-btn.done .dot { opacity: 1; }
.tab-btn.has-result::after {
  content: '🔍';
  font-size: 0.65rem;
  margin-left: 4px;
}

/* ── SECTION ── */
.section { display: none; }
.section.active { display: block; }

.section-header {
  background: linear-gradient(90deg, var(--card), transparent);
  border-left: 3px solid var(--accent);
  padding: 12px 18px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
}
.section-header h2 { font-size: 1.05rem; font-weight: 700; }
.section-header p  { font-size: 0.8rem; color: var(--muted); margin-top: 3px; }

/* ── QUESTION CARDS ── */
.q-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: border .2s;
}
.q-card:hover { border-color: #3a4070; }
.q-card.answered { border-color: #2a3a50; }
.q-num { font-size: 0.68rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.q-text { font-size: 0.95rem; font-weight: 600; margin-bottom: 3px; line-height: 1.5; }
.q-hint { font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }

/* ── METHOD BOX ── */
.method-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: var(--accent2);
  cursor: pointer;
  border: 1px solid rgba(167,139,250,.25);
  background: rgba(167,139,250,.07);
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 10px;
  user-select: none;
  transition: all .2s;
}
.method-toggle:hover { background: rgba(167,139,250,.15); }
.method-toggle .arrow { transition: transform .2s; display: inline-block; }
.method-toggle.open .arrow { transform: rotate(90deg); }

.method-box {
  display: none;
  background: rgba(167,139,250,.06);
  border: 1px solid rgba(167,139,250,.18);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  line-height: 1.7;
}
.method-box.show { display: block; }
.method-box h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent2); margin-bottom: 6px; margin-top: 10px; }
.method-box h4:first-child { margin-top: 0; }
.method-box ul { padding-left: 16px; }
.method-box ul li { margin-bottom: 3px; color: var(--muted); }
.method-box .nerve-tag {
  display: inline-block;
  background: rgba(108,143,255,.1);
  border: 1px solid rgba(108,143,255,.25);
  color: var(--accent);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.72rem;
  margin: 2px 2px 0 0;
}
.method-box .normal-tag {
  color: var(--green);
  font-weight: 600;
}
.method-box .abnormal-tag {
  color: var(--red);
  font-weight: 600;
}

.test-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 8px 0 2px;
}

.test-visual-card {
  background: rgba(15,17,23,.45);
  border: 1px solid rgba(108,143,255,.16);
  border-radius: 10px;
  padding: 12px;
}

.test-visual-card.is-placeholder {
  border-style: dashed;
}

.test-visual-media {
  width: 100%;
}

.test-visual-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--accent);
  margin-bottom: 8px;
}

.test-visual-image,
.test-visual-placeholder {
  width: 100%;
  min-height: 140px;
  border-radius: 8px;
}

.test-visual-image {
  display: block;
  object-fit: cover;
  border: 1px solid rgba(108,143,255,.2);
}

.test-visual-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(108,143,255,.09), rgba(167,139,250,.1)),
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.02) 0,
      rgba(255,255,255,.02) 10px,
      rgba(255,255,255,.04) 10px,
      rgba(255,255,255,.04) 20px
    );
  border: 1px dashed rgba(167,139,250,.35);
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.5;
}

.test-visual-placeholder.is-hidden {
  display: none;
}

.test-visual-placeholder span {
  max-width: 26ch;
}

.test-visual-description {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.55;
}

/* ── OPTIONS ── */
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.opt {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}
.opt:hover { border-color: var(--accent); color: var(--accent); }
.opt.selected { background: rgba(108,143,255,.15); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.opt.normal  { border-color: var(--green);  color: var(--green);  background: rgba(52,211,153,.1); }
.opt.anormal { border-color: var(--red);    color: var(--red);    background: rgba(248,113,113,.1); }
.opt.na      { border-color: var(--muted);  color: var(--muted);  background: transparent; }

/* ── NAV / CATEGORY ACTIONS ── */
.cat-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.nav-btns { display: flex; gap: 10px; }
.btn {
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-secondary { background: var(--card); color: var(--muted); border: 1px solid var(--border); }
.btn-secondary:hover { color: var(--text); border-color: var(--accent); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #5a7aff; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(108,143,255,.35); }
.btn-success { background: var(--green); color: #0f1117; }
.btn-success:hover { background: #2ec48d; transform: translateY(-1px); }
.btn-diag-cat {
  background: linear-gradient(135deg, rgba(167,139,250,.15), rgba(108,143,255,.15));
  border: 1px solid rgba(167,139,250,.4);
  color: var(--accent2);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-diag-cat:hover {
  background: linear-gradient(135deg, rgba(167,139,250,.25), rgba(108,143,255,.25));
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(167,139,250,.2);
}

/* ── INLINE CATEGORY RESULT ── */
.inline-result {
  display: none;
  margin-top: 16px;
  border: 1px solid rgba(167,139,250,.3);
  border-radius: var(--radius);
  background: rgba(167,139,250,.04);
  overflow: hidden;
}
.inline-result.show { display: block; }

.inline-result-header {
  background: linear-gradient(90deg, rgba(167,139,250,.15), rgba(108,143,255,.08));
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.inline-result-header h3 { font-size: 0.9rem; font-weight: 700; color: var(--accent2); }
.close-inline { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; padding: 0 4px; }
.close-inline:hover { color: var(--text); }

.inline-result-body { padding: 16px 18px; }

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.inline-actions .btn,
.inline-actions .btn-pdf-inline {
  flex: 1 1 220px;
}

/* Decision tree */
.dtree { margin-bottom: 14px; }
.dtree-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; }
.dtree-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 6px;
  font-size: 0.82rem;
  line-height: 1.5;
}
.dtree-step .step-num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700;
}
.dtree-step.found .step-num { background: rgba(108,143,255,.25); color: var(--accent); }
.dtree-step.warn .step-num  { background: rgba(251,191,36,.2);   color: var(--yellow); }
.dtree-step.crit .step-num  { background: rgba(248,113,113,.2);  color: var(--red); }
.dtree-step.ok   .step-num  { background: rgba(52,211,153,.2);   color: var(--green); }
.dtree-step .step-body strong { display: block; }
.dtree-step .step-body span   { color: var(--muted); font-size: 0.78rem; }

/* Inline DX list */
.i-dx-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.i-dx-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.88rem; line-height: 1.5;
  background: var(--card);
  border-radius: 8px;
  padding: 10px 12px;
  border-left: 3px solid var(--border);
}
.i-dx-list li.priority-0, .i-dx-list li.priority-1 { border-left-color: var(--red); }
.i-dx-list li.priority-2 { border-left-color: var(--orange); }
.i-dx-list li.priority-3 { border-left-color: var(--yellow); }
.i-dx-list li.priority-4 { border-left-color: var(--green); }
.i-dx-list li .i-icon { font-size: 1.1rem; flex-shrink: 0; }
.i-dx-list li .i-name { font-weight: 700; display: block; }
.i-dx-list li .i-desc { color: var(--muted); font-size: 0.78rem; }
.i-dx-list li .i-prognosis {
  font-size: 0.75rem;
  margin-top: 5px;
  padding: 4px 8px;
  background: rgba(52,211,153,.07);
  border-left: 2px solid var(--green);
  border-radius: 0 4px 4px 0;
  line-height: 1.5;
  color: var(--text);
}
.i-dx-list li .i-prognosis .prog-label {
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.5px;
  color: var(--green);
  font-weight: 700;
  margin-right: 4px;
}
.i-dx-list li .i-prog  { font-size: 0.75rem; margin-top: 4px; }
.i-dx-list li .i-prog span { display: inline-block; background: rgba(108,143,255,.1); border: 1px solid rgba(108,143,255,.2); border-radius: 4px; padding: 1px 7px; margin-right: 4px; color: var(--accent); }

/* Missing data */
.missing-section { margin-bottom: 14px; }
.missing-section .miss-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--yellow); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.miss-item {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 0.82rem; margin-bottom: 6px;
  padding: 8px 12px;
  background: rgba(251,191,36,.06);
  border: 1px solid rgba(251,191,36,.2);
  border-radius: 8px;
}
.miss-item.critical {
  background: rgba(248,113,113,.07);
  border-color: rgba(248,113,113,.25);
}
.miss-item .miss-icon { font-size: 1rem; flex-shrink: 0; }
.miss-item .miss-body strong { display: block; font-weight: 600; }
.miss-item .miss-body span { color: var(--muted); font-size: 0.76rem; }

/* Next steps */
.next-section { margin-bottom: 14px; }
.next-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 8px; }
.next-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.next-tag {
  background: rgba(108,143,255,.1);
  border: 1px solid rgba(108,143,255,.25);
  color: var(--accent);
  border-radius: 99px;
  padding: 5px 13px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all .2s;
}
.next-tag:hover { background: rgba(108,143,255,.2); }

/* Exams inline */
.exam-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.exam-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
}
.exam-chip.external {
  border-color: rgba(251,191,36,.3);
  background: rgba(251,191,36,.06);
  color: var(--yellow);
}
.exam-chip.clinical {
  border-color: rgba(52,211,153,.3);
  background: rgba(52,211,153,.06);
  color: var(--green);
}

/* ── URGENCY INLINE ── */
.urgency-inline {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}
.urgency-inline.emergency { background: rgba(248,113,113,.12); color: var(--red); border: 1px solid rgba(248,113,113,.3); }
.urgency-inline.soon { background: rgba(251,191,36,.1); color: var(--yellow); border: 1px solid rgba(251,191,36,.25); }
.urgency-inline.routine { background: rgba(52,211,153,.1); color: var(--green); border: 1px solid rgba(52,211,153,.25); }

/* ── GLOBAL RESULT PANEL ── */
#result-section { display: none; max-width: 880px; margin: 0 auto; padding: 0 20px 40px; }
#result-section.show { display: block; }

.result-header {
  background: linear-gradient(135deg, var(--card), #1e2240);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 18px;
  text-align: center;
}
.result-header .animal-icon { font-size: 3rem; margin-bottom: 8px; }
.result-header h2 { font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.result-header .patient-summary { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

.diag-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
}
.diag-block h3 {
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-red    { background: rgba(248,113,113,.2); color: var(--red); border: 1px solid rgba(248,113,113,.3); }
.badge-yellow { background: rgba(251,191,36,.2);  color: var(--yellow); border: 1px solid rgba(251,191,36,.3); }
.badge-green  { background: rgba(52,211,153,.2);  color: var(--green); border: 1px solid rgba(52,211,153,.3); }
.badge-blue   { background: rgba(108,143,255,.2); color: var(--accent); border: 1px solid rgba(108,143,255,.3); }

.diag-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.diag-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; line-height: 1.5;
}
.diag-list li .icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.diag-list li .diag-name { font-weight: 600; display: block; }
.diag-list li .diag-desc { color: var(--muted); font-size: 0.82rem; }
.diag-list li .diag-prog { font-size: 0.76rem; margin-top: 4px; }
.diag-list li .diag-prog span { display: inline-block; background: rgba(108,143,255,.1); border: 1px solid rgba(108,143,255,.2); border-radius: 4px; padding: 1px 7px; margin-right: 4px; color: var(--accent); }

.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 8px; }
.exam-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.exam-item.external-exam { border-color: rgba(251,191,36,.3); background: rgba(251,191,36,.05); }
.exam-item.clinical-exam { border-color: rgba(52,211,153,.3); background: rgba(52,211,153,.05); }
.exam-item .e-icon { font-size: 1.15rem; }

.urgency-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.urgency-item {
  flex: 1; min-width: 130px;
  padding: 13px; border-radius: 10px; border: 1px solid; text-align: center;
}
.urgency-item .u-icon { font-size: 1.5rem; margin-bottom: 4px; }
.urgency-item .u-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.urgency-item .u-text  { font-size: 0.8rem; margin-top: 4px; color: var(--muted); }
.urgency-red    { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.07); }
.urgency-yellow { border-color: rgba(251,191,36,.4);  background: rgba(251,191,36,.07); }
.urgency-green  { border-color: rgba(52,211,153,.4);  background: rgba(52,211,153,.07); }

.summary-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; margin-top: 10px; }
.summary-table th {
  text-align: left; font-size: 0.71rem; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--muted); padding: 6px 10px;
  border-bottom: 1px solid var(--border);
}
.summary-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(46,50,80,.5);
  vertical-align: top;
}
.summary-table tr:last-child td { border-bottom: none; }
.finding-normal  { color: var(--green); }
.finding-anormal { color: var(--red); }
.finding-na      { color: var(--muted); }

.print-btn {
  display: block; width: 100%; margin-top: 18px; padding: 13px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--muted); font-size: 0.88rem;
  cursor: pointer; text-align: center; transition: all .2s;
}
.print-btn:hover { border-color: var(--accent); color: var(--accent); }

.btn-pdf {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: #fff; border: none; border-radius: 8px;
  padding: 12px 22px; font-size: 0.88rem; font-weight: 700;
  cursor: pointer; transition: all .2s; width: 100%; margin-top: 10px;
}
.btn-pdf:hover { background: linear-gradient(135deg, #1e3a8a, #2563eb); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(59,130,246,.35); }
.btn-pdf:disabled { opacity: 0.6; cursor: wait; transform: none; }

.btn-pdf-inline {
  width: auto;
  margin-top: 0;
}

/* ── SECTION DIVIDER ── */
.section-divider {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); margin: 14px 0 8px; display: flex; align-items: center; gap: 8px;
}
.section-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── @PRINT ── */
@media print {
  /* Ocultar la UI interactiva */
  body > *:not(#pdf-content) {
    display: none !important;
  }
  
  /* Mostrar el reporte PDF para imprimir */
  #pdf-content {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 12mm 8mm 12mm 8mm;
    background: #fff;
    box-sizing: border-box;
  }

  body { background: #fff; color: #000; margin: 0; padding: 0; }
  
  /* Asegurar que se impriman los colores de fondo e imágenes */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  header h1 { font-size: 1.15rem; }
  .patient-grid { grid-template-columns: 1fr 1fr; }
  .cat-actions { flex-direction: column; align-items: stretch; }
  .nav-btns { justify-content: space-between; }
  .btn-diag-cat { justify-content: center; }
  .test-visual-grid { grid-template-columns: 1fr; }
}
