/* ==========================================================================
   Marihatag Responder – MDRRM Office
   Basic, dependency-free styles
   ========================================================================== */

:root {
  --navy: #0a2540;
  --navy-800: #0e2f52;
  --blue: #1d4ed8;
  --blue-dark: #1e40af;
  --sky: #eef4ff;
  --ink: #0f1f33;
  --muted: #5a6b83;
  --line: #d9e2ef;
  --card: #ffffff;
  --bg: #f2f6fc;
  --amber: #f59e0b;
  --red: #e11d48;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 31, 51, .05), 0 14px 30px -22px rgba(15, 31, 51, .45);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 380px at 85% -120px, rgba(29, 78, 216, .10), transparent 70%),
    var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Android edge-to-edge and notched phones: keep the system bar areas navy
   so the light status/navigation icons stay readable while the page scrolls. */
body::before,
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--navy);
  pointer-events: none;
}
body::before { top: 0; height: env(safe-area-inset-top, 0px); }
body::after { bottom: 0; height: env(safe-area-inset-bottom, 0px); }

h1, h2, h3, p { margin-top: 0; }

a { color: var(--blue); }

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(7, 23, 43, .25);
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  overflow: hidden;
  padding-top: env(safe-area-inset-top, 0px);
  color: #fff;
  background:
    radial-gradient(700px 220px at 78% -40px, rgba(56, 132, 255, .38), transparent 70%),
    linear-gradient(135deg, #081d33 0%, #0b2745 55%, #103a67 100%);
  border-bottom: 4px solid var(--amber);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px);
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}

.brand-logos {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}
.brand-logos img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 280px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: #ffd38f;
}
.brand-name {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.015em;
}
.brand-sub {
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  padding: 8px 12px;
  border-radius: 9px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.site-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.site-nav a:focus-visible { outline: 2px solid #8fb8ff; outline-offset: 2px; }

.site-nav .nav-emergency {
  margin-left: 6px;
  color: #fff;
  background: #e11d48;
  box-shadow: 0 8px 18px -10px rgba(225, 29, 72, .9);
}
.site-nav .nav-emergency:hover { background: #be123c; }

.site-nav .nav-app,
.site-nav .nav-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
}

.site-nav .nav-app {
  border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .09);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.site-nav .nav-app:hover { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .18); }
.site-nav .nav-app:focus-visible { outline: 2px solid #8fb8ff; outline-offset: 2px; }

.site-nav .nav-status {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(8, 20, 37, .22);
  color: rgba(255, 255, 255, .78);
  cursor: default;
}
.nav-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, .16);
}
.nav-status[data-state="offline"] { color: #ffe3a3; }
.nav-status[data-state="offline"] .nav-status-dot {
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, .18);
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(760px 300px at 100% 0%, rgba(255, 212, 135, .18), transparent 65%),
    linear-gradient(180deg, #eaf2fe, #f4f8fd);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: 34px;
  align-items: center;
  padding: 46px 0 40px;
}

.kicker {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero h1 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.3vw, 46px);
  line-height: 1.06;
  letter-spacing: -.03em;
  color: var(--navy);
}
.hero h1 span {
  color: var(--blue);
  background: linear-gradient(transparent 72%, rgba(245, 158, 11, .38) 72%);
}

.lead {
  max-width: 58ch;
  margin-bottom: 0;
  font-size: 16.5px;
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.alert-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(150deg, #0a2540, #12385f);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 46px -24px rgba(7, 23, 43, .65);
}
.alert-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 22px solid rgba(255, 255, 255, .05);
  pointer-events: none;
}
.alert-kicker {
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #ffcf85;
}
.alert-title {
  margin-bottom: 8px;
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800;
}
.alert-title a { color: #fda4af; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.alert-title a:hover { color: #fff; }
.alert-card .alert-copy {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  max-width: 34ch;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .74);
}
.alert-contact {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 12.5px;
}
.alert-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.alert-contact a:hover { color: #ffd38f; }
.alert-contact span[aria-hidden] {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  font-size: 11px;
  line-height: 1;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:focus-visible { outline: 3px solid rgba(29, 78, 216, .4); outline-offset: 2px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(29, 78, 216, .9);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}
.btn-ghost:hover { background: #f7faff; border-color: #aec6ec; }

.btn-danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}
.btn-danger:hover { background: #ffe4e6; }

.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-tiny { padding: 6px 10px; border-radius: 8px; font-size: 12.5px; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e7effc;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

/* ---------- Layout ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
  padding: 30px 0 56px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form { overflow: hidden; }

.step { padding: 26px 28px; }
.step + .step { border-top: 1px solid var(--line); }

.step-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.step-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sky);
  border: 1px solid #cfe0f9;
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 800;
}
.step-head h2 {
  margin-bottom: 2px;
  font-size: 18px;
  letter-spacing: -.015em;
  color: var(--navy);
}
.step-head p { margin-bottom: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- Fields ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field-spaced { margin-top: 16px; }

.field label, .field-label { font-size: 13px; font-weight: 700; color: #233a55; }
.field-label { display: block; }
.req { color: var(--red); }
.optional { font-weight: 500; color: var(--muted); }

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 12px;
}
.subfield { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input::placeholder, textarea::placeholder { color: #93a3b8; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, .13);
}
textarea { min-height: 132px; resize: vertical; line-height: 1.55; }

input.invalid, select.invalid, textarea.invalid {
  border-color: #f43f5e;
  background: #fff5f6;
}

.error { margin: 0; font-size: 12.5px; font-weight: 600; color: #be123c; }
.error:empty { display: none; }

.hint { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.error + .hint, .hint + .error { margin-top: 8px; }

/* ---------- Accident types ---------- */

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
  gap: 10px;
}

.type-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.type-card:hover { border-color: #b7cdf0; background: #f7faff; }

.type-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.type-check {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid #b6c4d8;
  border-radius: 6px;
  background: #fff;
  transition: background .15s ease, border-color .15s ease;
}
.type-check::after {
  content: "";
  width: 5px;
  height: 9px;
  margin-top: -2px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg) scale(0);
  transition: transform .15s ease;
}
.type-card input:checked + .type-check {
  background: var(--blue);
  border-color: var(--blue);
}
.type-card input:checked + .type-check::after { transform: rotate(45deg) scale(1); }
.type-card:has(input:checked) {
  border-color: #96b6f4;
  background: #f2f7ff;
  box-shadow: inset 0 0 0 1px #cfe0ff;
}
.type-card:has(input:focus-visible) {
  outline: 3px solid rgba(29, 78, 216, .35);
  outline-offset: 2px;
}

.type-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.type-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: #17304d;
}
.type-icon { font-size: 15px; line-height: 1; }
.type-note { font-size: 11.5px; line-height: 1.35; color: var(--muted); }

/* ---------- Body map ---------- */

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: #dbe3ee;
  border: 1px solid #aebccf;
}
.legend i.minor { background: #fbbf24; border-color: #a16207; }
.legend i.serious { background: #fb5a72; border-color: #9f1239; }

/* Phones show one body view at a time so each figure stays large enough to tap. */
.map-view-switch { display: none; }

.body-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px dashed #c8d9ef;
  border-radius: 14px;
  background:
    radial-gradient(circle at 1px 1px, rgba(29, 78, 216, .09) 1px, transparent 0) 0 0 / 14px 14px,
    linear-gradient(180deg, #f9fcff, #eef5fd);
}

.body-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
}
.body-view figcaption {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7387a1;
}
.figure-holder { width: 100%; max-width: 205px; }

.body-svg { display: block; width: 100%; height: auto; overflow: visible; }

.part {
  --body: #dbe3ee;
  --edge: #aebccf;
  cursor: pointer;
  transition: filter .15s ease;
}
.part .fill {
  fill: var(--body);
  stroke: var(--edge);
  stroke-width: 1.5;
  transition: fill .15s ease, stroke .15s ease;
}
.part .limb {
  fill: none;
  stroke: var(--body);
  stroke-width: var(--w, 20);
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .15s ease;
}
/* Invisible, wider outline so narrow limbs are easier to tap on a phone. */
.part .hit {
  fill: none;
  stroke: transparent;
  stroke-width: var(--hit-w, 18);
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: stroke;
}
.part:hover { filter: drop-shadow(0 0 2.5px rgba(29, 78, 216, .8)); }
.part:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 3px rgba(29, 78, 216, .95));
}
.part[data-severity="minor"] { --body: #fbbf24; --edge: #a16207; }
.part[data-severity="serious"] { --body: #fb5a72; --edge: #9f1239; }

.part.static { cursor: default; }
.part.static:hover { filter: none; }
.part.static:focus-visible { filter: none; }

.back-detail {
  fill: none;
  stroke: #b3c3d6;
  stroke-width: 1.6;
  stroke-dasharray: 4 4;
  pointer-events: none;
}

.map-status { margin: 12px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #29405c;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.chip:hover { border-color: #f3aab8; background: #fff7f8; }
.chip:focus-visible { outline: 3px solid rgba(29, 78, 216, .3); outline-offset: 1px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; }
.chip[data-severity="serious"] .dot { background: #fb5a72; }
.chip-x { color: #9aa8bd; font-size: 14px; line-height: 1; }

/* ---------- Accident photo ---------- */

.photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.photo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}
.photo-preview img {
  display: block;
  width: 132px;
  height: 99px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e8eef7;
}
.photo-meta { font-size: 12px; font-weight: 600; color: var(--muted); }

/* ---------- AI injury assessment ---------- */

.assessment-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #c7d8f4;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7faff, #fff);
}
.assessment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.assessment-head h3 { margin: 0 0 4px; font-size: 15px; color: var(--navy); }
.assessment-head p { margin: 0; max-width: 62ch; font-size: 12.5px; color: var(--muted); }
.assessment-result { margin-top: 14px; }
.assessment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.assessment-badge[data-level="critical"] { background: #ffe1e6; color: #9f1239; }
.assessment-badge[data-level="urgent"] { background: #ffedd5; color: #9a3412; }
.assessment-badge[data-level="moderate"] { background: #fef3c7; color: #854d0e; }
.assessment-badge[data-level="minor"] { background: #dcfce7; color: #166534; }
.assessment-summary { margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ink); }

.assessment-kind {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #d7e3f6;
  border-radius: 12px;
  background: #fff;
}
.assessment-kind h4 {
  margin: 0 0 7px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6c7f96;
}
.kind-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kind-label { font-size: 15.5px; font-weight: 800; color: var(--navy); }
.kind-confidence {
  padding: 2px 9px;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.kind-confidence[data-confidence="most-likely"] { border-color: #fecaca; background: #fee2e2; color: #991b1b; }
.kind-confidence[data-confidence="likely"] { border-color: #fde68a; background: #fef3c7; color: #92400e; }
.kind-confidence[data-confidence="possible"] { border-color: #bfdbfe; background: #eff6ff; color: #1e40af; }
.kind-others { margin: 7px 0 0; font-size: 12.5px; color: #475569; }
.kind-basis { margin: 5px 0 0; font-size: 11.5px; line-height: 1.4; color: #7c8ca0; }

.assessment-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 12px;
}
.assessment-cols h4 {
  margin: 0 0 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6c7f96;
}
.assessment-cols ul { margin: 0; padding-left: 17px; font-size: 12.5px; line-height: 1.5; }
.assessment-cols li + li { margin-top: 3px; }
.assessment-disclaimer { margin: 13px 0 0; font-size: 11.5px; line-height: 1.45; color: #7c5260; }
.assessment-empty { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Form actions ---------- */

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 -28px -26px;
  padding: 20px 28px 24px;
  background: #f8fbff;
  border-top: 1px solid var(--line);
}
.privacy { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--muted); }

/* ---------- Sidebar ---------- */

.sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-card { padding: 18px; }
.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.side-head h2, .guide h2 {
  margin: 0;
  font-size: 15.5px;
  letter-spacing: -.01em;
  color: var(--navy);
}

.report-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 430px;
  overflow: auto;
  padding-right: 2px;
}
.report-list::-webkit-scrollbar { width: 8px; }
.report-list::-webkit-scrollbar-thumb { background: #d4e0ef; border-radius: 99px; }

.report-item {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfdff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.report-item:hover {
  border-color: #a9c4ee;
  background: #f6faff;
  transform: translateY(-1px);
}
.report-item:focus-visible { outline: 3px solid rgba(29, 78, 216, .3); outline-offset: 2px; }

.report-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.report-id { font-size: 11.5px; font-weight: 800; color: var(--blue); letter-spacing: .02em; }
.report-date { font-size: 11px; color: #8798ad; white-space: nowrap; }
.report-patient { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: #17304d; }
.report-types {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #4d6280;
}
.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 5px 0 0;
  font-size: 11px;
  color: #8798ad;
}
.report-meta span + span::before { content: "·"; margin-right: 8px; color: #b6c4d6; }

.empty {
  margin: 0;
  padding: 18px 10px;
  border: 1px dashed var(--line);
  border-radius: 11px;
  background: #fbfdff;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.side-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.side-foot .btn { flex: 1; padding: 8px 10px; font-size: 12.5px; }
.side-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 700;
  text-underline-offset: 2px;
}
.link-danger {
  padding: 8px 6px;
  border: none;
  border-radius: 8px;
  background: none;
  color: #be123c;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.link-danger:hover { background: #fff1f2; }

.guide ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: guide;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guide li {
  position: relative;
  padding-left: 34px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #4d6280;
}
.guide li::before {
  counter-increment: guide;
  content: counter(guide);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid #cfe0f9;
  background: #eaf2ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}
.guide strong { display: block; color: #17304d; font-size: 13px; }

/* ---------- Report log ---------- */

.report-log {
  padding: 40px 0 56px;
  background:
    radial-gradient(800px 260px at 12% 0%, rgba(29, 78, 216, .08), transparent 70%),
    linear-gradient(180deg, #eaf2fe, #f6faff);
  border-top: 1px solid var(--line);
}

.log-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.log-intro h2 {
  margin-bottom: 6px;
  font-size: clamp(24px, 3.2vw, 32px);
  letter-spacing: -.025em;
  color: var(--navy);
}
.log-intro p { max-width: 62ch; margin-bottom: 0; font-size: 14.5px; color: var(--muted); }

.log-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.log-stat {
  min-width: 112px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.log-stat strong {
  display: block;
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--navy);
}
.log-stat span { font-size: 11.5px; font-weight: 600; color: var(--muted); }

.log-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.log-search { flex: 1 1 260px; min-width: 190px; }
.log-search input { background: #fff; }
.log-filter { display: flex; align-items: center; gap: 8px; }
.log-filter span { font-size: 12px; font-weight: 700; color: #44586f; }
.log-filter select { width: auto; min-width: 130px; padding: 9px 10px; background: #fff; }

.log-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.log-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.log-table th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #f7faff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
  color: #7b8ba0;
  white-space: nowrap;
}
.log-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f8;
  vertical-align: top;
  font-size: 12.5px;
  color: #33465e;
}
.log-table tbody tr:last-child td { border-bottom: none; }
.log-table tbody tr:hover { background: #fafdff; }

.log-id { display: block; font-size: 11.5px; font-weight: 800; color: var(--blue); white-space: nowrap; }
.log-filed, .log-sub { display: block; margin-top: 2px; font-size: 10.5px; color: #8798ad; }
.log-patient { font-size: 13.5px; color: #17304d; }
.log-types { display: flex; flex-wrap: wrap; gap: 4px; max-width: 240px; }
.log-tag {
  padding: 2px 7px;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  background: #eef4ff;
  color: #1e40af;
  font-size: 10.5px;
  font-weight: 700;
}
.log-location { display: block; font-weight: 600; color: #29405c; }
.log-injuries {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid #fde68a;
  border-radius: 999px;
  background: #fff7ed;
  color: #92400e;
  font-size: 11.5px;
  font-weight: 800;
}
.log-injuries.none { border-color: #e3e8ef; background: #f4f6f9; color: #8798ad; }
.log-level {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: capitalize;
}
.log-level::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #94a3b8;
}
.log-level[data-level="minor"] { color: #166534; }
.log-level[data-level="minor"]::before { background: #16a34a; }
.log-level[data-level="moderate"] { color: #854d0e; }
.log-level[data-level="moderate"]::before { background: #f59e0b; }
.log-level[data-level="urgent"] { color: #9a3412; }
.log-level[data-level="urgent"]::before { background: #ea580c; }
.log-level[data-level="critical"] { color: #9f1239; }
.log-level[data-level="critical"]::before { background: #e11d48; }
.log-kind { display: block; margin-top: 3px; max-width: 150px; font-size: 10.5px; font-weight: 600; color: #5a6b83; }
.log-actions { display: flex; gap: 6px; white-space: nowrap; }
.log-actions .btn { padding: 5px 9px; font-size: 11.5px; }

.log-empty { margin: 0; padding: 34px 16px; text-align: center; font-size: 13.5px; color: var(--muted); }
.log-empty[hidden] { display: none; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--navy);
  color: rgba(255, 255, 255, .68);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer-inner strong { display: block; margin-bottom: 4px; color: #fff; font-size: 14px; }
.footer-note { max-width: 62ch; margin: 0; font-size: 12px; line-height: 1.55; }
.footer-contacts { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.footer-contacts p { margin: 0; }
.footer-contacts a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.footer-contacts a:hover { color: #ffd38f; border-color: #ffd38f; }
.footer-emergency a { color: #fda4af; font-weight: 800; }

/* ---------- Report dialog ---------- */

.dialog {
  width: min(780px, calc(100% - 28px));
  max-height: 90vh;
  max-height: min(90dvh, calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  padding: 0;
  border: none;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 32px 80px -20px rgba(7, 23, 43, .6);
  overflow: hidden;
}
.dialog::backdrop { background: rgba(7, 23, 43, .55); backdrop-filter: blur(3px); }
.dialog-inner {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  max-height: min(90dvh, calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f7faff, #fff);
}
.dialog-kicker {
  margin-bottom: 3px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
}
.dialog-head h2 {
  margin-bottom: 2px;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--navy);
}
.dialog-id { margin: 0; font-size: 12px; color: var(--muted); }

.icon-btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #5a6b83;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.icon-btn:hover { background: #f1f5fb; color: var(--navy); }

.dialog-body { padding: 20px 22px; overflow: auto; }
.dialog-body h3 {
  margin: 22px 0 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6c7f96;
}
.dialog-body > h3:first-child { margin-top: 0; }

.dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: #fbfdff;
}

/* ---------- Camera dialog ---------- */

.camera-dialog { width: min(560px, calc(100% - 28px)); }
.camera-stage { display: grid; place-items: center; min-height: 260px; background: #0b1220; }
.camera-stage video { display: block; width: 100%; max-height: 60vh; background: #000; }
.camera-error { margin: 0; padding: 22px; color: #fecdd3; font-size: 13px; text-align: center; }

/* ---------- Report photo ---------- */

.report-photo { margin: 8px 0 0; }
.report-photo img {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f1f5fb;
}
.report-photo figcaption { margin-top: 5px; font-size: 11.5px; color: var(--muted); }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 18px;
  margin: 0;
}
.meta-grid dt {
  margin: 0 0 1px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8798ad;
}
.meta-grid dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #17304d;
  overflow-wrap: anywhere;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 4px 9px;
  border: 1px solid #d6e4ff;
  border-radius: 999px;
  background: #eef4ff;
  color: #1e40af;
  font-size: 11.5px;
  font-weight: 700;
}

.desc-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #2b3f58;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.modal-map { max-width: 440px; }
.modal-map .figure-holder { max-width: 180px; }

.injury-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.injury-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid #fde68a;
  border-radius: 999px;
  background: #fff7ed;
  color: #92400e;
  font-size: 12px;
  font-weight: 600;
}
.injury-list li[data-severity="serious"] {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}
.injury-list .dot { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; }
.injury-list li[data-severity="serious"] .dot { background: #e11d48; }

.muted { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 18px 40px -12px rgba(7, 23, 43, .6);
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast[data-kind="error"] { background: #9f1239; }

/* ---------- Print area (hidden on screen) ---------- */

#print-area { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .report-list { max-height: none; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .alert-card { max-width: 560px; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 28px); }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 0;
  }
  .brand { gap: 10px; }
  .brand-name { font-size: 19px; }
  .brand-eyebrow { font-size: 9.5px; }
  .brand-sub { font-size: 11px; }
  .brand-logos img { height: 44px; max-width: 210px; }

  .site-nav { width: 100%; gap: 2px; }
  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 13px;
  }
  .site-nav .nav-app,
  .site-nav .nav-status { min-height: 34px; padding: 7px 10px; font-size: 12px; }
  .site-nav .nav-emergency { margin-left: 0; }

  .btn { min-height: 44px; }
  .icon-btn { width: 42px; height: 42px; }
  .chip { min-height: 36px; }

  .hero-inner { padding: 32px 0 28px; }
  .hero h1 { font-size: 31px; }
  .lead { font-size: 15px; }

  .step { padding: 20px 18px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .location-grid { grid-template-columns: minmax(0, 1fr); }
  .type-grid { grid-template-columns: minmax(0, 1fr); }

  .form-actions { margin: 0 -18px -20px; padding: 18px; }
  .form-actions .btn { flex: 1 1 auto; }
  .form-actions .btn-primary { flex-basis: 100%; }

  .map-view-switch {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    padding: 4px;
    border: 1px solid #c8d9ef;
    border-radius: 12px;
    background: #e9f1fc;
  }
  .map-view-btn {
    flex: 1 1 0;
    min-height: 44px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #516a86;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .03em;
    cursor: pointer;
  }
  .map-view-btn[aria-pressed="true"] {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 3px 10px -5px rgba(7, 23, 43, .55);
  }
  .map-view-btn:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
  }

  .body-map { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px; }
  .body-map[data-active-view="front"] .body-view[data-view="back"],
  .body-map[data-active-view="back"] .body-view[data-view="front"] { display: none; }
  .figure-holder { max-width: 280px; }
  .body-svg,
  .part { touch-action: manipulation; }
  .legend { gap: 10px; }
  .legend span { font-size: 11.5px; }

  .assessment-head .btn { width: 100%; }
  .assessment-cols { grid-template-columns: minmax(0, 1fr); }
  .photo-preview img { width: 104px; height: 78px; }
  .photo-meta { font-size: 11.5px; }

  .dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }
  .dialog-inner {
    max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }
  .dialog-body { padding: 16px; -webkit-overflow-scrolling: touch; }
  .dialog-head, .dialog-foot { padding: 14px 16px; }
  .dialog-head h2 { font-size: 19px; }
  .dialog-foot .btn { flex: 1 1 auto; }

  .report-log { padding: 30px 0 40px; }
  .log-head { align-items: stretch; }
  .log-stats { width: 100%; }
  .log-stat { flex: 1 1 0; min-width: 0; }
  .log-filter { flex: 1 1 auto; }
  .log-filter select { flex: 1; min-width: 0; }
  .log-toolbar .btn { flex: 1 1 auto; }

  .log-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .log-table { display: block; min-width: 0; }
  .log-table thead { display: none; }
  .log-table tbody { display: grid; gap: 12px; }
  .log-table tr {
    display: block;
    padding: 6px 14px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .log-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 3px 10px;
    padding: 9px 0;
    border-bottom: 1px dashed #e8eef7;
    font-size: 12.5px;
  }
  .log-table td::before {
    content: attr(data-label);
    grid-column: 1;
    grid-row: 1;
    padding-top: 2px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8798ad;
  }
  .log-table td > * { grid-column: 2; }
  .log-table td:last-child { padding-bottom: 0; border-bottom: 0; }
  .log-table td.log-actions { display: flex; gap: 8px; padding-top: 12px; }
  .log-table td.log-actions::before { content: none; }
  .log-actions .btn { flex: 1; min-height: 42px; }
  .log-types { max-width: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .wrap { width: calc(100% - 20px); }
  .site-nav a { padding: 8px; }
  .site-nav .nav-app,
  .site-nav .nav-status { padding: 7px 8px; }
  .step { padding: 18px 14px; }
  .form-actions { margin: 0 -14px -18px; padding: 16px 14px; }
  .brand-logos img { height: 40px; max-width: 190px; }
  .brand-name { font-size: 18px; }
  .hero h1 { font-size: 28px; }
  .log-stat { padding: 8px 10px; }
  .log-stat strong { font-size: 21px; }
  .log-table td { grid-template-columns: 82px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Print ---------- */

@media print {
  @page { size: A4; margin: 14mm; }

  body { background: #fff !important; }

  .site-header,
  .hero,
  .layout,
  .site-footer,
  .dialog,
  .toast,
  .skip-link { display: none !important; }

  #print-area { display: block !important; color: #000; font-size: 12px; }

  .print-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid #111;
    margin-bottom: 14px;
  }
  .print-office { font-size: 16px; font-weight: 800; letter-spacing: .01em; }
  .print-sub { font-size: 10.5px; color: #444; margin-top: 2px; }
  .print-form-title { font-size: 17px; font-weight: 800; text-align: right; }
  .print-id { font-size: 10.5px; color: #333; text-align: right; margin-top: 2px; }

  .print-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 26px;
    margin: 0 0 12px;
  }
  .print-field {
    padding-bottom: 3px;
    border-bottom: 1px solid #d9d9d9;
    font-size: 11.5px;
    font-weight: 600;
  }
  .print-label {
    display: block;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #555;
  }

  .print-section { margin-top: 13px; }
  .print-section h3 {
    margin: 0 0 5px;
    padding-bottom: 2px;
    border-bottom: 1px solid #bbb;
    font-size: 10.5px;
    letter-spacing: .09em;
    text-transform: uppercase;
  }
  .print-desc {
    min-height: 44px;
    font-size: 11.5px;
    line-height: 1.55;
    white-space: pre-line;
  }
  .print-lines { margin-top: 2px; }
  .print-line { height: 22px; border-bottom: 1px solid #e2e2e2; }
  .print-types { display: flex; flex-wrap: wrap; gap: 4px; }
  .print-type {
    padding: 1px 6px;
    border: 1px solid #555;
    border-radius: 3px;
    font-size: 10.5px;
  }
  .print-check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 20px;
    margin-top: 4px;
  }
  .print-check { display: flex; align-items: center; gap: 7px; font-size: 10.5px; }
  .print-box {
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    border: 1px solid #333;
    border-radius: 2px;
  }
  .print-injury-list {
    margin: 0;
    padding-left: 16px;
    font-size: 11px;
    columns: 2;
    column-gap: 24px;
  }

  .print-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 380px;
    margin-top: 6px;
  }
  .print-map figure { margin: 0; text-align: center; }
  .print-map figcaption {
    margin-bottom: 2px;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #555;
  }
  .print-map svg { width: 100%; height: auto; max-height: 235px; }
  .print-map .part,
  .print-map .part:hover { filter: none; cursor: default; --body: #ececec !important; --edge: #888 !important; }
  .print-map .part[data-severity="minor"] { --body: #f3c452 !important; --edge: #7a5200 !important; }
  .print-map .part[data-severity="serious"] { --body: #e86478 !important; --edge: #7a0f24 !important; }
  .print-map .part[data-severity="minor"] .limb { stroke: #f3c452 !important; }
  .print-map .part[data-severity="serious"] .limb { stroke: #e86478 !important; }
  .print-map .back-detail { stroke: #999; }

  .print-photo-blank {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    border: 1px dashed #888;
    color: #777;
    font-size: 10px;
  }
  .print-photo { margin-top: 6px; }
  .print-photo img {
    max-width: 100%;
    max-height: 215px;
    border: 1px solid #999;
    object-fit: contain;
  }
  .print-assessment { font-size: 11px; line-height: 1.5; }
  .print-assessment .print-level { font-weight: 800; text-transform: uppercase; }
  .print-assessment ul { margin: 3px 0 0; padding-left: 16px; }
  .print-assessment li { margin-bottom: 1px; }
  .print-assessment .print-summary { margin: 2px 0 4px; font-weight: 700; }
  .print-assessment .print-kind { margin: 1px 0 2px; font-weight: 700; }
  .print-assessment .print-kind-others { margin: 0 0 3px; font-size: 10px; color: #444; }
  .print-assessment .print-note { margin-top: 4px; font-size: 9px; color: #555; }

  .sign-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 46px;
    margin-top: 38px;
  }
  .sign-line {
    padding-top: 4px;
    border-top: 1px solid #333;
    font-size: 9.5px;
    text-align: center;
  }

  .print-foot {
    margin-top: 20px;
    padding-top: 5px;
    border-top: 1px solid #ddd;
    color: #555;
    font-size: 8.5px;
  }
}
