:root {
  color-scheme: light;
  font: 16px/1.5 system-ui, sans-serif;
  color: #17283e;
  background: #eef2f6;
  --primary: #075a50;
  --muted: #4b5c6e;
  --line: #d3dde6;
}
* { box-sizing: border-box; }
body { margin: 0; }
header { background: #142638; color: white; }
.wrap { width: min(1050px, calc(100% - 2rem)); margin: auto; }
.brand { display: flex; align-items: center; gap: .75rem; min-height: 70px; font-weight: 700; }
.mark { display: grid; place-items: center; border-radius: .6rem; width: 2rem; height: 2rem; background: #a9e3ca; color: #142638; }
main { padding-block: clamp(2rem, 6vw, 4rem); }
.intro, .panel-top, .actions, .entry-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.12; letter-spacing: -.04em; }
h2 { font-size: 1.3rem; }
h3 { overflow-wrap: anywhere; }
.intro p, footer, .meta { color: var(--muted); }
.intro p { margin-top: .65rem; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: .75rem; margin-block: 1.75rem; }
.summary div, .panel { background: white; border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; }
.summary strong { display: block; font-size: 1.8rem; color: var(--primary); }
.panel { padding: clamp(1rem, 3vw, 1.5rem); }
.filters { margin-block: 1rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.filters label:last-child { flex: 1 1 210px; }
label { display: grid; gap: .3rem; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; background: white; border: 1px solid #8797a8; border-radius: .55rem; padding: .55rem .75rem; min-height: 44px; }
button { cursor: pointer; font-weight: 650; }
button:disabled { opacity: .55; cursor: default; }
.primary { color: white; background: var(--primary); border-color: var(--primary); }
:focus-visible { outline: 3px solid #2066ad; outline-offset: 3px; }
article { border-top: 1px solid var(--line); padding-block: .85rem; }
article p { margin-top: .4rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.empty { padding-block: 1.25rem; color: var(--muted); }
footer, #status { margin-top: 1rem; font-size: .9rem; }
dialog { width: min(460px, calc(100% - 2rem)); max-height: 90dvh; border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem; color: inherit; }
dialog::backdrop { background: #142638a8; }
form { display: grid; gap: .85rem; }
.actions { justify-content: flex-end; }
#error { color: #a12020; }
#error:empty, #status:empty { display: none; }

[hidden] { display: none !important; }
:root {
  background: #f3f5f8;
  color: #172436;
  --primary: #9c2c22;
  --muted: #506075;
  --line: #dce2e9;
}
header { background: #172436; }
.mark { background: #f4c9bd; color: #732319; }
.wrap { width: min(1120px, calc(100% - 2rem)); }
main { padding-block: 0 3rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; border-bottom: 1px solid var(--line); margin-bottom: 2.3rem; }
.tabs a { padding: .95rem .15rem .8rem; color: var(--muted); font-weight: 650; text-decoration: none; border-bottom: 3px solid transparent; }
.tabs a:hover, .tabs a[aria-current] { color: var(--primary); }
.tabs a[aria-current] { border-color: var(--primary); }
.dashboard-title { margin-bottom: 1.5rem; }
.dashboard-title p { margin-top: .5rem; color: var(--muted); }
.overview, .field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .85rem; }
.overview { margin-bottom: 1.25rem; }
.metric { border: 1px solid var(--line); border-top: 3px solid #aa631e; border-radius: .8rem; background: white; padding: 1rem 1.15rem; min-height: 145px; }
.metric.water { border-top-color: #21648f; }
.metric.vehicle { border-top-color: #247163; }
.metric h2 { font-size: .95rem; color: var(--muted); }
.metric strong { display: block; font-size: clamp(1.45rem, 3vw, 2rem); margin-block: .2rem; }
.metric p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); font-size: .9rem; }
.metric progress { display: block; width: 100%; height: .75rem; accent-color: #aa631e; margin-top: .55rem; }
.metric.water progress { accent-color: #21648f; }
.panel { border-radius: .8rem; }
#vehicle-form { margin-top: 1rem; }
input, textarea, select { min-width: 0; }
.item-list { margin-top: .85rem; }
.item-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.item-actions { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.badge { padding: .22rem .6rem; border-radius: 2rem; font-size: .85rem; background: #edf1f6; }
.badge[data-condition="Correcto"] { background: #e4f2eb; color: #165440; }
.badge[data-condition="Con incidencias"], .shortage { background: #fae9df; color: #822d1e; }
#control-feedback { margin-top: .85rem; font-weight: 600; }
#control-feedback:empty, .form-error:empty { display: none; }
.form-error { color: #a12020; }
@media (max-width: 520px) {
  .tabs { gap: 0 .85rem; margin-bottom: 1.45rem; }
  .tabs a { padding-block: .65rem .5rem; font-size: .9rem; }
}

/* Inventario */
:root {
  font-family: "Inter", system-ui, sans-serif;
  background: #f4f5f7;
  --primary: #a42e23;
}
header { background: #111a26; }
.brand { min-height: 65px; }
.mark { background: #ad3428; color: white; width: 2.45rem; height: 2.45rem; font-size: .73rem; letter-spacing: .07em; }
.unit { margin-left: auto; font-size: .8rem; letter-spacing: .13em; color: #b7c1ce; }
.tabs { margin-bottom: clamp(1.55rem, 4vw, 2.6rem); }
.inventory-intro { margin-bottom: 1.5rem; }
.inventory-intro button { border-color: #c9cfd8; }
.truck-panel {
  overflow: hidden;
  background: #111b29;
  color: #fff;
  border: 1px solid #293648;
  border-radius: 1.2rem;
  box-shadow: 0 12px 30px #15223816;
}
.truck-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border-bottom: 1px solid #ffffff1f;
}
.truck-toolbar p { color: #c1ccda; font-size: .88rem; margin-top: .2rem; }
.side-picker { display: flex; padding: .2rem; gap: .2rem; border-radius: .65rem; background: #233143; }
.side-picker button { background: transparent; border-color: transparent; color: #dae3ee; font-size: .85rem; }
.side-picker button[aria-pressed="true"] { background: #f3f5f7; color: #182534; }
.truck-stage { position: relative; max-width: 860px; margin: auto; }
.truck-stage img { display: block; width: 100%; height: auto; aspect-ratio: 1536 / 872; object-fit: cover; }
.truck-hotspots {
  position: absolute;
  display: grid;
  grid-template-columns: minmax(0, 56fr) minmax(0, 62fr) minmax(0, 64fr);
  gap: 3.1%;
  left: 15.1%;
  right: 59.63%;
  top: 31%;
  bottom: 43.2%;
}
.truck-hotspot {
  display: grid;
  place-items: center;
  padding: 0;
  min-width: 0;
  border: 1px solid #ffffffa6;
  background: #10192755;
  color: white;
  font-size: clamp(.74rem, 2vw, .95rem);
  text-shadow: 0 1px 5px #000;
}
.truck-hotspot:hover { background: #70251cbe; }
.truck-hotspot[aria-pressed="true"] { background: #8c241b88; border-color: #ffd1c2; box-shadow: inset 0 0 0 1px #ffd1c2; }
.truck-cabinets { display: flex; flex-wrap: wrap; gap: .5rem; padding: .8rem clamp(1rem, 3vw, 1.5rem); border-top: 1px solid #ffffff1f; }
.cabinet-chip { background: #223043; color: #e6edf5; border-color: #455369; min-width: 3.25rem; font-size: .88rem; }
.cabinet-chip[aria-pressed="true"] { background: #fff0eb; color: #7e2920; border-color: #fff0eb; }
.truck-panel :focus-visible { outline-color: #ffc386; }
.inventory-panel { margin-top: 1.1rem; box-shadow: 0 5px 16px #1522380a; }
.inventory-panel .panel-top .meta { font-size: .9rem; margin-top: .2rem; }
.material-row { padding-block: 1rem; }
.material-row h3 { font-size: 1.05rem; }
.material-row .badge { display: inline-block; margin-top: .4rem; }
.checklist { display: flex; flex-wrap: wrap; gap: .35rem; }
.check-option { border-color: #c9d2dc; font-size: .875rem; }
.check-option[aria-pressed="true"] { background: #e7edf4; border-color: #7c8da3; }
.check-option[data-check="present"][aria-pressed="true"] { background: #dcefe5; border-color: #68a487; color: #134d34; }
.check-option[data-check="missing"][aria-pressed="true"] { background: #fae3de; border-color: #cf8175; color: #81281e; }
@media (max-width: 520px) {
  .unit { font-size: .68rem; }
  .truck-toolbar { align-items: flex-start; }
  .truck-hotspot { border-radius: .35rem; }
  .truck-cabinets { gap: .35rem; }
}

/* Operaciones de la autobomba */
.tabs { margin-bottom: 1.15rem; }
.itv-alert { background: #fff1d2; border: 1px solid #dfb46b; color: #623909; padding: .8rem 1rem; border-radius: .65rem; margin-bottom: 1.25rem; font-weight: 600; }
.itv-alert a { color: inherit; }
.itv-alert-urgent { background: #fae3de; border-color: #cf8175; color: #81281e; }
.operations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem; align-items: start; }
.inline-form { display: flex; flex-wrap: wrap; align-items: end; margin-top: .75rem; }
.inline-form label { flex: 1 1 200px; max-width: 420px; }
.operator-chip { display: inline-block; margin: .25rem .4rem .25rem 0; border-radius: 2rem; background: #edf1f6; padding: .4rem .8rem; }
.calendar-top { flex-wrap: nowrap; gap: .4rem; }
.calendar-top h2 { text-align: center; font-size: clamp(1rem, 3vw, 1.25rem); }
.calendar-top button { min-width: 44px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .2rem; margin-top: .75rem; text-align: center; }
.calendar-weekday { font-size: .76rem; font-weight: 650; color: var(--muted); padding-block: .35rem; }
.calendar-day { display: grid; place-items: center; min-height: 44px; padding: 0; border: 1px solid transparent; border-radius: .45rem; }
button.calendar-day { border-color: var(--line); }
.calendar-day[aria-current="date"] { border-color: #9c2c22; }
.calendar-event { background: #fae9df; color: #822d1e; font-weight: 700; }
.calendar-day[aria-pressed="true"] { background: var(--primary); color: white; }
.notice-list { padding-left: 1.3rem; margin-bottom: 0; }
.notice-list:empty, #operations-feedback:empty { display: none; }
#itv-form { margin-top: .75rem; }
#operations-feedback { margin-block: 1rem; }
.staff-entry { display: flex; gap: .75rem; align-items: center; justify-content: space-between; margin-block: .5rem; }
.staff-entry p { margin: 0; }
.defect-actions { margin-top: .65rem; }
.delete-defect { color: #81281e; border-color: #cf8175; }
.defect-photos { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .65rem; }
.defect-photos img { display: block; width: 96px; height: 72px; border-radius: .4rem; object-fit: cover; background: #edf1f6; }
.badge.fixed { background: #e4f2eb; color: #165440; }

/* Mapa de la autobomba y revisiones */
.overview { grid-template-columns: repeat(auto-fit, minmax(min(100%, 172px), 1fr)); }
.metric.adblue { border-top-color: #4262aa; }
.metric.adblue progress { accent-color: #4262aa; }
.metric.foam { border-top-color: #746136; }
.metric.foam progress { accent-color: #746136; }
.truck-extra-hotspots, .damage-pins { position: absolute; inset: 0; pointer-events: none; }
.truck-extra-spot, .damage-pin { position: absolute; pointer-events: auto; }
.truck-extra-spot {
  padding: .25rem .55rem;
  color: #fff;
  background: #101927cf;
  border-color: #ffffffe0;
  font-size: clamp(.72rem, 2.8vw, .9rem);
  min-height: 36px;
  transform: translate(-50%, -50%);
}
.truck-extra-spot[data-location="cabina"] { left: 61%; top: 43%; }
.truck-extra-spot[data-location="techo"] { left: 25%; top: 19%; }
.truck-extra-spot:hover, .truck-extra-spot[aria-pressed="true"] { background: #8c241b; border-color: #ffd1c2; }
.truck-stage.marking-damage { cursor: crosshair; }
.truck-stage.marking-damage button { pointer-events: none; }
.damage-pin {
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  color: #221806;
  background: #ffcd6a;
  box-shadow: 0 2px 6px #0009;
  width: 36px;
  min-height: 36px;
  padding: 0;
}
.damage-pin[data-repaired="true"] { background: #b6e4cc; color: #143b27; }
.truck-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1rem;
  padding: .8rem clamp(1rem, 3vw, 1.5rem);
  border-top: 1px solid #ffffff1f;
}
.truck-controls .truck-cabinets { padding: 0; border-top: 0; }
.truck-extra .cabinet-chip { background: #35485f; }
.truck-extra .cabinet-chip[aria-pressed="true"] { background: #fff0eb; }
.truck-damage-controls { margin-left: auto; }
.truck-damage-controls button, .damage-zones button { border-color: #d3a758; color: #ffdfa0; background: #332918; }
.truck-damage-controls button[aria-pressed="true"] { background: #ffdfa0; color: #332918; }
.damage-zones { padding: .8rem clamp(1rem, 3vw, 1.5rem); background: #273244; }
.damage-zones div { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.review-editor { display: grid; gap: 1rem; margin-bottom: 1rem; }
.review-overview form, .review-checks { margin-top: .8rem; }
#review-blocks { display: grid; gap: 1rem; }
.review-tabs { display: flex; gap: .45rem; flex-wrap: wrap; }
.review-tabs button { border-color: var(--line); background: white; }
.review-tabs button[aria-selected="true"] { border-color: var(--primary); background: var(--primary); color: white; }
.review-progress { font-size: .9rem; }
.review-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  align-items: start;
  gap: .85rem;
  padding: .65rem .85rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  min-width: 0;
}
.review-check label { font-size: .9rem; }
.review-result h3 { font-size: 1rem; margin-bottom: .35rem; }
.review-status-picker { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .2rem; }
.review-status-picker button { border-color: var(--line); font-size: .88rem; }
.review-status-picker button[data-result="correct"][aria-pressed="true"] { background: #dcefe5; border-color: #68a487; color: #134d34; }
.review-status-picker button[data-result="defect"][aria-pressed="true"] { background: #fae3de; border-color: #cf8175; color: #81281e; }
.review-status-picker button[aria-pressed="true"]:disabled { opacity: 1; }
.review-options { display: flex; flex-wrap: wrap; gap: .2rem .65rem; align-items: start; }
.review-options select { min-height: 36px; padding: .2rem .4rem; font-size: .82rem; }
.review-guidance { font-size: .82rem; }
.review-guidance summary { cursor: pointer; padding: .4rem 0; color: var(--muted); }
.review-guidance p { max-width: 44ch; }
.review-note { color: var(--muted); }
.review-note textarea { width: 100%; padding: .4rem .5rem; resize: vertical; color: #172436; }
.review-novelty { margin-top: .4rem; }
.review-novelty:empty, #review-feedback:empty { display: none; }
@media (max-width: 580px) {
  .review-check { grid-template-columns: 1fr; gap: .45rem; }
}
#review-feedback { margin-bottom: .7rem; font-weight: 600; }
@media (max-width: 480px) {
  .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric.vehicle { grid-column: span 2; }
  .truck-damage-controls { margin-left: 0; }
}

/* Inventarios con caducidad y registros de equipo */
.equipment-alerts .itv-alert { margin-bottom: .65rem; }
.equipment-alerts { margin-bottom: 1.15rem; }
.expiry-badge { background: #fff1d2; color: #623909; }
.equipment-form { margin-block: .9rem; }
.equipment-subtitle { margin-top: 1rem; }
.era-expiry-grid { margin-top: 1rem; }
.era-expiry-grid .equipment-form { margin-top: 0; }
#era-lead-feedback:empty { display: none; }
.air-result { display: block; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: .55rem; background: #edf3fa; font-weight: 650; }
.air-result:empty, #equipment-feedback:empty { display: none; }
#equipment-feedback { margin-block: 1rem; font-weight: 600; }
.check-option[data-check="deployment"][aria-pressed="true"], .deployment-note { color: #194879; }
.check-option[data-check="deployment"][aria-pressed="true"] { border-color: #6d9cd0; background: #e4effc; }
.deployment-note { font-weight: 600; }
#machine-panel { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
#machine-panel h3 { margin-bottom: .5rem; }
#machine-panel .item-list > button { margin: .65rem 0; }
.equipment-tabs { display: flex; flex-wrap: wrap; gap: .45rem; }
.equipment-tabs button { border-color: var(--line); }
.equipment-tabs button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: white; }
.operator-status { margin-block: 1rem .7rem; font-weight: 650; }
#inicio .item-actions { gap: .9rem; }
.site-header { position: sticky; top: 0; z-index: 5; }
:root { scroll-padding-top: 5.5rem; }
.site-header .unit { margin-left: 0; }
.header-operator {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  margin-left: auto;
  font-size: .8rem;
}
.header-operator p {
  border: 1px solid #536478;
  border-radius: .45rem;
  padding: .3rem .6rem;
  overflow-wrap: anywhere;
}
.header-operator a { color: #e2ebf5; white-space: nowrap; padding-block: .4rem; }
#home-operator-form a { align-self: end; padding-block: .65rem; }
@media (max-width: 650px) {
  :root { scroll-padding-top: 8rem; }
  .site-header .brand { flex-wrap: wrap; gap: .4rem .65rem; padding-block: .6rem; }
  .site-header .unit { margin-left: auto; }
  .header-operator { width: 100%; justify-content: space-between; }
}
.review-sheet-actions { margin-top: .75rem; }
.container-levels { flex: 1 1 100%; padding: .7rem .85rem; background: #f3f6fa; border-radius: .65rem; }
.container-levels h4 { margin: 0; }
.container-level-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem; padding-block: .45rem; border-top: 1px solid var(--line); }
.check-field { display: flex; align-items: center; gap: .55rem; }
.check-field input { min-height: auto; width: 1.1rem; height: 1.1rem; accent-color: var(--primary); }
#pressure-network, .pressure-segments { display: grid; gap: .75rem; }
.pressure-line { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: .75rem; padding: .8rem; }
.pressure-line > legend { font-weight: 750; padding-inline: .35rem; }
.pressure-line-flow { margin-bottom: .5rem; }
.pressure-line-flow:empty { display: none; }
.pressure-line > button, .pressure-line-controls { margin-top: .65rem; }
.pressure-endpoint { min-width: 0; margin: .85rem 0 0; border: 1px solid var(--line); border-radius: .65rem; padding: .65rem .85rem .85rem; background: #f6f8fb; }
.pressure-endpoint legend { font-weight: 650; }
.pressure-endpoint p { margin-top: .55rem; }
.pressure-segment { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: .65rem; padding: .65rem .85rem .85rem; }
.pressure-segment legend { font-weight: 700; }
.pressure-segment button { margin-top: .65rem; }
.pressure-breakdown { display: grid; grid-template-columns: minmax(0, 1fr) max-content; column-gap: .85rem; margin-bottom: 0; }
.pressure-breakdown dd { margin: 0; text-align: right; }
.pressure-breakdown dt { overflow-wrap: anywhere; }
.pressure-result > p { margin-top: .45rem; }
#era-author:empty, #itv-author:empty { display: none; }

/* Test de bomberos */
.quiz-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); }
#quiz-options { display: grid; gap: .55rem; margin-block: .75rem; }
#quiz-options button { text-align: left; border-color: var(--line); }
#quiz-options .quiz-correct { background: #dcefe5; border-color: #68a487; color: #134d34; opacity: 1; }
#quiz-options .quiz-wrong { background: #fae3de; border-color: #cf8175; color: #81281e; opacity: 1; }
.quiz-feedback, .quiz-summary { padding: .8rem; border-radius: .55rem; background: #edf3fa; }
.quiz-feedback p { margin-block: .35rem; }
.quiz-feedback.correct { background: #e4f2eb; }
.quiz-feedback.incorrect { background: #fae9df; }
.quiz-actions { margin-top: .75rem; }
.quiz-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-block: .7rem; }
.quiz-stats div { padding: .6rem .7rem; border-radius: .55rem; background: #f3f6fa; font-size: .88rem; }
.quiz-stats strong { display: block; font-size: 1.35rem; }
.quiz-table-wrap { overflow-x: auto; margin-block: .65rem; }
.quiz-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .88rem; }
.quiz-table th, .quiz-table td { border-bottom: 1px solid var(--line); padding: .55rem .6rem; }
.quiz-table th { background: #f3f6fa; }
@media (max-width: 760px) {
  .quiz-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Esquema de tendidos */
.pressure-designer {
  display: grid;
  grid-template-columns: minmax(177px, 230px) minmax(0, 1fr);
  border: 1px solid #293648;
  border-radius: .9rem;
  background: #111b29;
  color: #e6edf5;
  min-width: 0;
  overflow: hidden;
}
.pressure-truck { padding: .8rem; border-right: 1px solid #455369; align-self: stretch; }
.pressure-truck img { display: block; width: 100%; height: auto; margin-bottom: .45rem; }
.pressure-truck label { font-size: .85rem; }
.pressure-truck select { color: #182534; font-size: .9rem; }
.pressure-truck-reading { color: #ffdfa0; margin-top: .55rem; font-size: .85rem; font-weight: 650; }
.pressure-diagram { display: flex; align-items: center; overflow: auto; min-width: 0; padding: 1rem; }
.pressure-graph-line { display: flex; align-items: center; gap: .55rem; width: max-content; }
.pressure-graph-branches {
  display: grid;
  gap: .55rem;
  width: max-content;
  border-left: 2px solid #7595af;
  padding-left: .55rem;
}
.pressure-graph-node {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 48px;
  min-width: 78px;
  padding: .4rem .5rem;
  border: 1px solid #607c95;
  border-radius: .45rem;
  background: #233346;
  color: #fff;
  text-align: left;
  white-space: nowrap;
}
.pressure-graph-node strong { font-size: .85rem; }
.pressure-graph-node span { font-size: .72rem; color: #d3e2ef; font-weight: 500; }
.pressure-graph-node[data-kind="hose"] { border-bottom: 4px solid #65a4e0; }
.pressure-graph-node[data-kind="hose"][data-over-limit] { border-bottom-color: #fa9b7c; }
.pressure-graph-node[data-kind="junction"] { border-color: #ddb768; }
.pressure-graph-node[data-kind="pump"] { border-color: #ed977e; }
.pressure-graph-node[data-kind="nozzle"] { border-color: #73ad9c; }
.pressure-graph-node[data-kind="add"] { background: transparent; border-style: dashed; }
.pressure-graph-node + .pressure-graph-node::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  width: .55rem;
  border-top: 2px solid #7595af;
  pointer-events: none;
}
.pressure-graph-node:hover { background: #35485f; }
.pressure-designer :focus-visible { outline-color: #ffc386; }
#pressure-supply { display: grid; gap: .75rem; }
#pressure-supply:empty { display: none; }
#pressure-tank button { margin-top: .65rem; }
.pressure-water { margin-top: .45rem; color: var(--primary); font-weight: 650; }
@media (max-width: 650px) {
  .pressure-designer { grid-template-columns: minmax(0, 1fr); }
  .pressure-truck { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: .25rem .6rem; border-right: 0; border-bottom: 1px solid #455369; }
  .pressure-truck img { margin: 0; grid-row: span 2; }
  .pressure-truck-reading { margin-top: .1rem; }
  .pressure-diagram { padding: .7rem; }
}

/* Inicio de guardia y controles de campo */
.duty-actions, .duty-grid { display: grid; gap: .85rem; margin-block: 1rem; }
.duty-actions { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.duty-actions button { min-height: 52px; }
.duty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.duty-grid h2 { font-size: 1.04rem; }
.duty-grid section > a { display: inline-flex; align-items: center; min-height: 44px; margin-top: .2rem; }
.duty-grid section > p { margin-block: .35rem; }
.duty-state strong { display: block; font-size: 1.5rem; margin-top: .2rem; }
.duty-state strong[data-state="Operativa"] { color: #134d34; }
.duty-state strong[data-state="Fuera de servicio"], .defect-impact { color: #81281e; font-weight: 700; }
.duty-state strong[data-state="Con incidencias"] { color: #783e05; }
.duty-list, .duty-material-items { list-style: none; padding: 0; margin: .45rem 0 0; }
.duty-list-group + .duty-list-group { border-top: 1px solid var(--line); padding-top: .45rem; margin-top: .45rem; }
.duty-material-items { padding-left: .95rem; }
.duty-material-items li, #team-conflicts li { margin-bottom: .35rem; overflow-wrap: anywhere; }
.duty-sync summary { cursor: pointer; font-weight: 700; min-height: 28px; }
.duty-sync[open] > :is(p, form, div, ul) { margin-top: .7rem; }
#qr-image { display: block; width: min(100%, 240px); height: auto; margin: .6rem auto; }
#qr-dialog .actions { margin-top: .8rem; }
.check-option span, .review-status-picker button span { margin-right: .4rem; font-weight: 800; }
.review-status-picker button { min-height: 48px; }
#duty-defects a, #duty-inventory a { overflow-wrap: anywhere; }
#header-sync { white-space: normal; }
.team-differences { margin-block: .4rem; }
.team-differences ul { padding-inline-start: 1.15rem; }
@media (max-width: 580px) {
  .duty-grid { grid-template-columns: minmax(0, 1fr); }
  .duty-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #duty-start { grid-column: 1 / -1; }
}
