:root {
  color-scheme: light;
  --page: #eef2f6;
  --paper: #ffffff;
  --panel: #ffffff;
  --ink: #17202a;
  --muted: #66717f;
  --subtle: #f6f8fb;
  --line: #d9e0e8;
  --line-strong: #c7d0db;
  --fire: #b4232a;
  --fire-deep: #84191e;
  --green: #12805c;
  --yellow: #d59718;
  --red: #c23b33;
  --gray: #8a94a3;
  --blue: #255fbd;
  --shadow: 0 10px 24px rgba(20, 33, 47, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, Helvetica, sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

.pin-screen {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: var(--page);
}

.pin-screen.is-hidden {
  display: none;
}

.pin-panel {
  width: min(100%, 390px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.pin-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin-bottom: 14px;
}

.pin-panel h1 {
  margin-bottom: 22px;
}

.pin-panel label,
.absence-panel label,
.date-selector label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.pin-panel label,
.absence-panel label {
  margin-bottom: 8px;
}

.pin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.pin-row input,
.pin-row button,
.secondary-button,
.primary-button,
.date-selector input,
.today-button,
.pdf-button,
.database-button {
  min-height: 46px;
  border-radius: var(--radius);
}

.pin-row input,
.absence-panel input,
.absence-panel textarea,
.assignment-panel select,
.date-selector input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: 0;
}

.pin-row input {
  padding: 0 13px;
  font-size: 21px;
}

.pin-row button,
.primary-button {
  border: 0;
  padding: 0 16px;
  background: var(--fire);
  color: #ffffff;
  font-weight: 850;
  cursor: pointer;
}

.pin-message {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--fire-deep);
  font-size: 13px;
  font-weight: 750;
}

.app-shell.is-locked {
  display: none;
}

.absence-modal {
  position: fixed;
  z-index: 9;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(23, 32, 42, 0.42);
}

.absence-modal.is-hidden {
  display: none;
}

.absence-panel {
  width: min(100%, 420px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(23, 32, 42, 0.22);
}

.absence-panel h2 {
  margin: 4px 0 18px;
  font-size: 26px;
  line-height: 1.08;
}

.confirm-copy {
  margin: -6px 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.vehicle-reason-field.is-hidden {
  display: none;
}

.absence-panel input {
  min-height: 48px;
  margin-bottom: 12px;
  padding: 0 12px;
  font-size: 17px;
}

.absence-panel textarea {
  min-height: 112px;
  margin-bottom: 12px;
  padding: 12px;
  resize: vertical;
  font-size: 16px;
  line-height: 1.35;
}

.assignment-panel select {
  min-height: 50px;
  margin-bottom: 12px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 16px;
}

.assignment-panel select:disabled {
  opacity: 0.58;
}

.assignment-message {
  min-height: 20px;
  margin: 2px 0 0;
  color: var(--fire-deep);
  font-size: 13px;
  font-weight: 800;
}

.absence-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.secondary-button,
.primary-button {
  font-weight: 850;
  cursor: pointer;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
}

.app-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 14px 12px 30px;
}

.topbar {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0 14px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  object-fit: contain;
  padding: 5px;
}

.kicker,
h1 {
  margin: 0;
}

.kicker {
  color: var(--fire-deep);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin-top: 2px;
  font-size: clamp(32px, 9vw, 50px);
  line-height: 0.98;
  letter-spacing: 0;
}

.sync-state {
  grid-column: 1 / -1;
  justify-self: start;
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--green);
  box-shadow:
    0 0 0 1px rgba(18, 128, 92, 0.22),
    0 5px 14px rgba(18, 128, 92, 0.25);
  cursor: help;
}

.sync-state::after {
  content: "";
  position: absolute;
  inset: 3px auto auto 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.sync-state[data-mode="local"] {
  background: var(--red);
  box-shadow:
    0 0 0 1px rgba(194, 59, 51, 0.24),
    0 5px 14px rgba(194, 59, 51, 0.24);
}

.sync-state[data-mode="error"] {
  background: var(--red);
  box-shadow:
    0 0 0 1px rgba(194, 59, 51, 0.24),
    0 5px 14px rgba(194, 59, 51, 0.24);
}

.date-selector,
.incident-board,
.summary-band,
.status-board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.incident-board {
  margin-top: 10px;
  padding: 16px;
}

.incident-intro,
.incident-active-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.incident-intro h2,
.incident-active-header h2 {
  margin: 7px 0 6px;
  font-size: 24px;
  line-height: 1.05;
}

.incident-intro p:not(.eyebrow),
.incident-active-header p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.incident-eyebrow {
  color: var(--fire-deep);
}

.incident-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fire);
  box-shadow: 0 0 0 5px rgba(194, 59, 51, 0.1);
}

.incident-start-button,
.incident-pdf-button,
.incident-end-button {
  flex: 0 0 auto;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 16px;
  font-weight: 900;
  cursor: pointer;
}

.incident-header-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.incident-pdf-button {
  min-width: 72px;
  min-height: 46px;
  border: 0;
  background: var(--fire);
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(181, 22, 32, 0.2);
}

.incident-start-button {
  border: 0;
  background: var(--fire);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(181, 22, 32, 0.2);
}

.incident-end-button {
  border: 1px solid rgba(194, 59, 51, 0.22);
  background: #fff1f2;
  color: var(--fire-deep);
}

.incident-vehicle-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.incident-vehicle-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 18px;
  background: #ffffff;
}

.incident-vehicle-card.is-full {
  border-top-color: var(--red);
}

.incident-vehicle-card.is-departed {
  border-top-color: var(--fire);
}

.incident-vehicle-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.incident-vehicle-heading strong,
.incident-vehicle-heading span {
  display: block;
}

.incident-vehicle-heading strong {
  font-size: 22px;
  line-height: 1;
}

.incident-vehicle-heading span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.incident-vehicle-heading b {
  color: var(--green);
  font-size: 12px;
}

.incident-vehicle-card.is-full .incident-vehicle-heading b {
  color: var(--red);
}

.incident-assignment-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 14px;
  background: var(--subtle);
}

.incident-assignment-controls label {
  min-width: 0;
}

.incident-assignment-controls label > span,
.incident-add-control > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.incident-assignment-controls select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 0 9px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.incident-assignment-controls select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.incident-add-control {
  grid-column: 1 / -1;
}

.incident-crew-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(181, 22, 32, 0.22);
  border-radius: 11px;
  padding: 0 12px;
  background: #fff7f7;
  color: var(--fire-deep);
  cursor: pointer;
}

.incident-crew-select-button strong {
  font-size: 12px;
  font-weight: 900;
}

.incident-crew-select-button small {
  min-width: 44px;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(181, 22, 32, 0.09);
  font-size: 10px;
  font-weight: 900;
}

.incident-crew-select-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.incident-seat-map {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.incident-seat-map-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.incident-seat-map-heading > strong {
  margin-right: auto;
  color: var(--ink);
  font-size: 11px;
}

.incident-seat-map-heading span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.incident-seat-map-heading i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.seat-legend-attack {
  background: #df2029;
}

.seat-legend-water {
  background: #1852d1;
}

.seat-legend-hose {
  background: #f2c91f;
}

.seat-legend-neutral {
  border: 1px solid #78818e;
  background: #ffffff;
}

.seat-legend-free {
  background: var(--green);
}

.incident-vehicle-schematic {
  position: relative;
  overflow: hidden;
  border: 2px solid #d8dde3;
  border-radius: 24px 24px 15px 15px;
  padding: 9px;
  background: #f5f7f9;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.incident-driving-direction,
.incident-compartment-label {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}

.incident-driving-direction {
  margin-bottom: 7px;
}

.incident-cab-seats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 330px);
  margin: 0 auto;
}

.incident-compartment-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 9px 0 7px;
}

.incident-compartment-label::before,
.incident-compartment-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #d8dde3;
}

.incident-crew-seats {
  display: grid;
  grid-template-columns: repeat(var(--incident-crew-columns), minmax(0, 1fr));
  gap: 6px;
}

.incident-seat {
  position: relative;
  min-width: 0;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 10px 10px 13px 13px;
  padding: 7px 6px 5px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 3px 8px rgba(23, 32, 42, 0.12);
}

.incident-seat::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 21%;
  right: 21%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.incident-seat.is-free {
  border-color: rgba(22, 134, 95, 0.5);
  background: #e8f7f1;
  color: #0d684b;
}

.incident-seat.role-attack {
  background: #df2029;
}

.incident-seat.role-water {
  background: #1852d1;
}

.incident-seat.role-hose {
  background: #f2c91f;
  color: #2f260c;
}

.incident-seat.role-neutral {
  border-color: #8d96a2;
  background: #ffffff;
  color: var(--ink);
}

.incident-seat.role-unassigned {
  background: var(--gray);
}

.incident-seat.is-free.role-attack {
  border-color: rgba(223, 32, 41, 0.5);
  background: #fde8e9;
  color: #8b161d;
}

.incident-seat.is-free.role-water {
  border-color: rgba(24, 82, 209, 0.46);
  background: #e8efff;
  color: #123b94;
}

.incident-seat.is-free.role-hose {
  border-color: rgba(181, 145, 0, 0.48);
  background: #fff7cc;
  color: #6d5700;
}

.incident-seat small,
.incident-seat strong,
.incident-seat em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.incident-seat small {
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 7px;
  font-weight: 850;
  text-transform: uppercase;
}

.incident-seat strong {
  font-size: 10px;
  font-weight: 900;
}

.incident-seat em {
  margin-top: 2px;
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
  opacity: 0.78;
  text-transform: uppercase;
}

.incident-seat.is-free::before {
  background: rgba(13, 104, 75, 0.38);
}

.incident-seat.is-free small,
.incident-seat.is-free em {
  color: rgba(13, 104, 75, 0.78);
}

.incident-seat.role-hose::before {
  background: rgba(47, 38, 12, 0.38);
}

.incident-seat.role-hose small,
.incident-seat.role-hose em {
  color: rgba(47, 38, 12, 0.72);
}

.incident-seat.role-neutral::before {
  background: rgba(18, 43, 78, 0.28);
}

.incident-seat.role-neutral small,
.incident-seat.role-neutral em {
  color: rgba(18, 43, 78, 0.68);
}

.incident-seat.is-free.role-attack small,
.incident-seat.is-free.role-attack em {
  color: rgba(139, 22, 29, 0.78);
}

.incident-seat.is-free.role-water small,
.incident-seat.is-free.role-water em {
  color: rgba(18, 59, 148, 0.78);
}

.incident-seat.is-free.role-hose small,
.incident-seat.is-free.role-hose em {
  color: rgba(109, 87, 0, 0.8);
}

.incident-crew-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.incident-crew-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.incident-crew-list small {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.incident-person-meta strong,
.incident-person-meta small {
  display: block;
}

.incident-person-meta small {
  margin-top: 2px;
}

.incident-crew-role-control {
  min-width: 168px;
  margin-left: auto;
}

.incident-crew-role-control > span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.incident-crew-role-select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 30px 0 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.incident-crew-role-control.role-attack .incident-crew-role-select {
  border-color: rgba(223, 32, 41, 0.45);
  background: #fde8e9;
  color: #8b161d;
}

.incident-crew-role-control.role-water .incident-crew-role-select {
  border-color: rgba(24, 82, 209, 0.42);
  background: #e8efff;
  color: #123b94;
}

.incident-crew-role-control.role-hose .incident-crew-role-select {
  border-color: rgba(181, 145, 0, 0.48);
  background: #fff7cc;
  color: #6d5700;
}

.incident-crew-role-control.role-neutral .incident-crew-role-select {
  border-color: #aeb5bf;
  background: #ffffff;
  color: var(--ink);
}

.incident-crew-role-control.role-unassigned .incident-crew-role-select {
  border-color: #c9ced6;
  background: #f1f3f6;
  color: #687180;
}

.incident-crew-role-select:focus {
  border-color: rgba(181, 22, 32, 0.42);
  outline: 3px solid rgba(181, 22, 32, 0.1);
}

.incident-crew-role-select:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.incident-crew-list .incident-empty {
  color: var(--muted);
  font-weight: 700;
}

.incident-departure-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.incident-departure-actions span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-align: right;
}

.incident-departure-button {
  min-width: 116px;
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  padding: 0 16px;
  background: var(--fire);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(181, 22, 32, 0.16);
}

.incident-departure-button:disabled {
  background: var(--ink);
  cursor: default;
  box-shadow: none;
}

.incident-crew-panel {
  width: min(100%, 620px);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
}

.incident-crew-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  min-height: 0;
  overflow-y: auto;
  padding: 2px;
}

.incident-crew-panel .incident-crew-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  background: #ffffff;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, outline-color 140ms ease;
}

.incident-crew-option input {
  width: 20px;
  height: 20px;
  min-height: 0;
  flex: 0 0 20px;
  margin: 0;
  padding: 0;
  accent-color: var(--fire);
}

.incident-crew-option span {
  min-width: 0;
}

.incident-crew-option strong,
.incident-crew-option small {
  display: block;
}

.incident-crew-option strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 20px;
}

.incident-crew-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.incident-crew-option.status-green small {
  color: #0d684b;
}

.incident-crew-option.status-yellow small {
  color: #75500b;
}

.incident-crew-option.status-red small {
  color: #8c211b;
}

.incident-crew-option.status-gray small {
  color: #50545b;
}

.incident-crew-option:has(input:checked) {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
  transform: translateY(-1px);
}

.incident-crew-option.is-unavailable {
  cursor: not-allowed;
  opacity: 0.48;
}

.incident-crew-selection-message {
  min-height: 18px;
  margin: 9px 2px 0;
  color: var(--fire-deep);
  font-size: 12px;
  font-weight: 850;
}

.date-selector {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 10px;
  padding: 12px;
}

.date-selector > * {
  min-width: 0;
}

.date-selector input {
  max-width: 100%;
  padding: 0 12px;
  font-size: 16px;
}

.today-button,
.collapse-all-button {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.today-button {
  padding: 0 13px;
  font-size: 14px;
}

.pdf-button {
  border: 1px solid var(--line-strong);
  padding: 0 13px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.pdf-report {
  display: none;
}

.database-button {
  display: grid;
  place-items: center;
  margin-top: 12px;
  border: 1px solid #243241;
  background: #243241;
  color: #ffffff;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.fg-link {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 28px;
  margin: 8px auto 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.database-button:focus-visible,
.fg-link:focus-visible,
.pdf-button:focus-visible,
.today-button:focus-visible,
.collapse-all-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.pin-row button:focus-visible {
  outline: 3px solid rgba(180, 35, 42, 0.24);
  outline-offset: 2px;
}

.crew-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.crew-pill {
  min-height: 76px;
  padding: 12px;
  border-radius: var(--radius);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.crew-pill span,
.crew-pill strong {
  display: block;
}

.crew-pill span {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.crew-pill strong {
  margin-top: 6px;
  font-size: 32px;
  line-height: 1;
}

.crew-pill.ready {
  background: #12805c;
}

.crew-pill.limited {
  background: #b5790e;
}

.crew-pill.away {
  background: #b8322c;
}

.summary-band,
.status-board {
  margin-top: 10px;
  padding: 12px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.section-title span {
  color: var(--ink);
}

.section-title strong,
.collapse-all-button {
  color: var(--fire-deep);
  font-size: 12px;
}

.collapse-all-button {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 10px;
  text-transform: uppercase;
}

.vehicle-list,
.role-grid {
  display: grid;
  gap: 10px;
}

.vehicle-card,
.role-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.vehicle-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: start;
  min-height: 82px;
  padding: 13px;
}

.vehicle-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--red);
}

.vehicle-card.ready::before {
  background: var(--green);
}

.vehicle-card.not-ready {
  background: #fbfcfd;
}

.vehicle-card.not-ready::before {
  background: var(--red);
}

.vehicle-main {
  min-width: 0;
}

.vehicle-name {
  display: block;
  font-size: 25px;
  font-weight: 900;
}

.vehicle-thumb {
  width: 54px;
  height: 38px;
  object-fit: contain;
  justify-self: end;
}

.vehicle-radio {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.vehicle-rule {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.vehicle-reason {
  display: block;
  margin-top: 6px;
  color: var(--fire-deep);
  font-size: 12px;
  font-weight: 800;
}

.vehicle-control {
  grid-column: 2 / -1;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.vehicle-state {
  min-width: 58px;
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--red);
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.vehicle-card.ready .vehicle-state {
  background: var(--green);
  color: #ffffff;
}

.vehicle-select-shell {
  width: 100%;
}

.vehicle-status-select {
  min-height: 44px;
  font-size: 13px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--subtle);
}

.role-card {
  padding: 0;
  overflow: hidden;
}

.role-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--subtle);
}

.role-heading-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.role-heading h2 {
  margin: 0;
  font-size: 17px;
}

.role-count {
  color: var(--fire-deep);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.role-toggle {
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 9px;
  background: #ffffff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.role-card.is-collapsed .role-members {
  display: none;
}

.member-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 60px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  border-left: 5px solid var(--gray);
  background: #ffffff;
  color: var(--ink);
}

.member-card.status-green {
  border-left-color: var(--green);
}

.member-card.status-yellow {
  border-left-color: var(--yellow);
}

.member-card.status-red {
  border-left-color: var(--red);
}

.member-card.status-gray {
  border-left-color: var(--gray);
}

.member-card:last-child {
  border-bottom: 0;
}

.member-name,
.member-assignment-button {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.22;
}

.member-assignment-button {
  justify-self: start;
  border: 0;
  padding: 5px 7px;
  border-radius: 10px;
  background: #eef3fb;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(37, 95, 189, 0.1);
}

.member-assignment-button::after {
  content: " + Fahrzeug";
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.member-assignment-button:focus-visible {
  outline: 3px solid rgba(37, 95, 189, 0.2);
  outline-offset: 2px;
}

.member-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 6px;
  border-radius: 4px;
  padding: 2px 5px;
  background: var(--blue);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}

.member-badge.agt {
  background: var(--blue);
}

.member-badge.lkw {
  background: #16824f;
}

.member-badge.gf {
  background: var(--fire);
}

.status-select-shell {
  position: relative;
  display: block;
  min-width: 156px;
  border-radius: 12px;
}

.status-select-shell::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gray);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(133, 137, 146, 0.13);
  pointer-events: none;
}

.status-select-shell::after {
  content: "⌄";
  position: absolute;
  right: 11px;
  top: 50%;
  color: currentColor;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-60%);
  pointer-events: none;
}

.status-select {
  width: 100%;
  min-height: 40px;
  appearance: none;
  border: 1px solid rgba(133, 137, 146, 0.28);
  border-radius: 12px;
  padding: 0 30px 0 31px;
  background: #f1f2f4;
  color: #50545b;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.status-select-shell.status-green {
  color: #0d684b;
}

.status-select-shell.status-green::before {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 134, 95, 0.13);
}

.status-select-shell.status-green .status-select {
  border-color: rgba(22, 134, 95, 0.28);
  background: #eaf7f2;
  color: #0d684b;
}

.status-select-shell.status-yellow {
  color: #75500b;
}

.status-select-shell.status-yellow::before {
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(217, 151, 24, 0.14);
}

.status-select-shell.status-yellow .status-select {
  border-color: rgba(217, 151, 24, 0.32);
  background: #fff7df;
  color: #75500b;
}

.status-select-shell.status-red {
  color: #8c211b;
}

.status-select-shell.status-red::before {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(202, 48, 56, 0.13);
}

.status-select-shell.status-red .status-select {
  border-color: rgba(202, 48, 56, 0.27);
  background: #fff0ef;
  color: #8c211b;
}

.status-select:focus-visible {
  outline: 3px solid rgba(180, 35, 42, 0.2);
  outline-offset: 2px;
}

.status-select option {
  background: #ffffff;
  color: var(--ink);
}

.traffic {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f1f4f7;
}

.light-button,
.dot {
  display: block;
  border-radius: 50%;
}

.light-button {
  width: 27px;
  height: 27px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  cursor: pointer;
  opacity: 0.34;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 42, 0.08);
}

.light-button.active {
  opacity: 1;
  box-shadow:
    0 0 0 2px rgba(23, 32, 42, 0.08),
    0 6px 14px rgba(23, 32, 42, 0.16);
}

.light-button:active {
  transform: scale(0.94);
}

.light-button:focus-visible {
  outline: 3px solid rgba(23, 32, 42, 0.25);
  outline-offset: 2px;
}

.gray {
  color: var(--gray);
  background: var(--gray);
}

.green {
  color: var(--green);
  background: var(--green);
}

.yellow {
  color: var(--yellow);
  background: var(--yellow);
}

.red {
  color: var(--red);
  background: var(--red);
}

.dot {
  width: 10px;
  height: 10px;
}

.status-label {
  display: block;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.3;
  text-transform: uppercase;
}

.member-incident-label {
  display: block;
  grid-column: 1 / -1;
  padding: 6px 8px;
  border-radius: 9px;
  background: #f1f4f8;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.3;
  text-transform: uppercase;
}

.member-incident-label.is-assigned {
  background: #eaf2ff;
  color: #244f8c;
}

@media (min-width: 680px) {
  .app-shell {
    padding: 24px 16px 36px;
  }

  .topbar {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    padding-bottom: 16px;
  }

  .brand-mark {
    width: 62px;
    height: 62px;
  }

  .sync-state {
    grid-column: auto;
  }

  .date-selector {
    grid-template-columns: auto minmax(190px, 230px) auto;
    align-items: center;
  }

  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vehicle-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-content: space-between;
  }

  .member-card {
    grid-template-columns: 1fr;
  }

  .traffic {
    justify-self: start;
  }
}

@media (min-width: 1080px) {
  .role-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media print {
  @page {
    margin: 16mm;
  }

  body {
    background: #ffffff;
    color: #111111;
  }

  .pin-screen,
  .app-shell,
  .absence-modal {
    display: none !important;
  }

  .pdf-report {
    display: block;
  }

  .pdf-page {
    font-family: Arial, Helvetica, sans-serif;
  }

  .pdf-kicker,
  .pdf-date {
    margin: 0;
    color: #555555;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .pdf-page h1 {
    margin: 6px 0 4px;
    font-size: 30px;
    line-height: 1.05;
  }

  .pdf-page h2 {
    margin: 24px 0 10px;
    font-size: 18px;
  }

  .pdf-page h3 {
    margin: 12px 0 6px;
    font-size: 14px;
  }

  .pdf-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 20px 0;
  }

  .pdf-summary div {
    border: 1px solid #cccccc;
    padding: 10px;
  }

  .pdf-summary span {
    display: block;
    color: #555555;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .pdf-summary strong {
    display: block;
    margin-top: 4px;
    font-size: 26px;
  }

  .pdf-role {
    break-inside: avoid;
  }

  .pdf-role ul {
    margin: 0;
    padding-left: 18px;
  }

  .pdf-role li,
  .pdf-empty {
    font-size: 13px;
    line-height: 1.45;
  }

  .pdf-page table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }

  .pdf-page th,
  .pdf-page td {
    border: 1px solid #cccccc;
    padding: 8px;
    text-align: left;
  }

  .pdf-page th {
    background: #eeeeee;
  }

  .pdf-incident-vehicle {
    margin-top: 24px;
  }

  .pdf-incident-vehicle h2 {
    margin-bottom: 2px;
  }

  .pdf-incident-vehicle h2 small {
    color: #555555;
    font-size: 12px;
  }

  .pdf-vehicle-meta {
    margin: 0 0 10px;
    color: #555555;
    font-size: 12px;
  }

  .pdf-key-roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }

  .pdf-key-roles div {
    border: 1px solid #cccccc;
    padding: 8px;
  }

  .pdf-key-roles span,
  .pdf-key-roles strong {
    display: block;
  }

  .pdf-key-roles span {
    color: #555555;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .pdf-key-roles strong {
    margin-top: 3px;
    font-size: 14px;
  }
}

/* Modern app shell ------------------------------------------------------- */
@media screen {
  :root {
    --page: #f3f6fa;
    --paper: #ffffff;
    --panel: rgba(255, 255, 255, 0.96);
    --ink: #122b4e;
    --muted: #738198;
    --subtle: #f7f9fc;
    --line: #e7ebf1;
    --line-strong: #d8dee8;
    --fire: #ec1421;
    --fire-deep: #b90f1a;
    --green: #16865f;
    --yellow: #d99718;
    --red: #ca3038;
    --gray: #858992;
    --blue: #285da8;
    --shadow: 0 24px 60px rgba(25, 47, 78, 0.09);
    --shadow-small: 0 10px 30px rgba(25, 47, 78, 0.07);
    --radius: 26px;
  }

  body {
    background:
      radial-gradient(circle at 7% -4%, rgba(236, 20, 33, 0.09), transparent 30rem),
      radial-gradient(circle at 92% 4%, rgba(67, 99, 238, 0.07), transparent 28rem),
      linear-gradient(180deg, #fbfcfe 0, var(--page) 42rem);
  }

  body::before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0;
    opacity: 0.2;
    pointer-events: none;
    background-image: linear-gradient(rgba(20, 20, 22, 0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(20, 20, 22, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
  }

  .pin-screen {
    background:
      radial-gradient(circle at 16% 12%, rgba(236, 20, 33, 0.16), transparent 24rem),
      linear-gradient(145deg, #f8fafd, #eef3f9);
  }

  .pin-panel {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid rgba(25, 47, 78, 0.07);
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(25, 47, 78, 0.16);
  }

  .pin-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--fire), #ff5b65);
  }

  .pin-logo {
    display: block;
    width: min(100%, 310px);
    height: auto;
    margin: -8px auto 8px;
    border-radius: 0;
  }

  .pin-panel h1 {
    margin: 6px 0 10px;
    font-size: 46px;
    letter-spacing: -0.055em;
  }

  .pin-intro {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
  }

  .pin-row input,
  .pin-row button,
  .secondary-button,
  .primary-button,
  .date-selector input,
  .today-button,
  .pdf-button {
    min-height: 50px;
    border-radius: 14px;
  }

  .app-shell {
    width: min(100%, 1240px);
    padding: 18px 14px 54px;
  }

  .topbar {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 2px 18px;
  }

  .brand-lockup {
    position: relative;
    overflow: hidden;
    width: clamp(270px, 30vw, 330px);
    height: 88px;
    flex: 0 1 auto;
  }

  .brand-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 128%;
    max-width: none;
    height: auto;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: translate(-50%, -43%);
  }

  .topbar-copy {
    display: none;
  }

  .topbar-title {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    text-align: right;
  }

  .sync-state {
    margin-left: auto;
    padding: 0;
  }

  .dashboard-intro {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
    padding: 30px 28px;
    border: 1px solid rgba(25, 47, 78, 0.06);
    border-radius: 30px;
    background:
      radial-gradient(circle at 92% 12%, rgba(236, 20, 33, 0.1), transparent 15rem),
      linear-gradient(135deg, #ffffff, #f9fbfe 62%, #fff5f6);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .dashboard-intro::after {
    content: "59";
    position: absolute;
    right: 18px;
    top: -34px;
    color: rgba(236, 20, 33, 0.055);
    font-size: 150px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.08em;
  }

  .dashboard-intro > * {
    position: relative;
    z-index: 1;
  }

  .dashboard-intro h2 {
    margin: 8px 0 8px;
    font-size: clamp(27px, 7vw, 46px);
    line-height: 1;
    letter-spacing: -0.045em;
  }

  .dashboard-intro p:not(.eyebrow) {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
  }

  .eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--fire-deep);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fire);
    box-shadow: 0 0 0 5px rgba(236, 20, 33, 0.11);
  }

  .date-selector,
  .incident-board,
  .summary-band,
  .status-board {
    border: 1px solid rgba(25, 47, 78, 0.07);
    border-radius: var(--radius);
    box-shadow: var(--shadow-small);
  }

  .date-selector {
    padding: 14px;
  }

  .crew-summary {
    gap: 10px;
  }

  .crew-pill {
    position: relative;
    overflow: hidden;
    min-height: 98px;
    padding: 16px;
    border: 1px solid rgba(25, 47, 78, 0.06);
    border-radius: 20px;
    color: var(--ink);
    box-shadow: var(--shadow-small);
  }

  .crew-pill::after {
    content: "";
    position: absolute;
    right: -16px;
    bottom: -22px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.055;
  }

  .crew-pill span {
    color: var(--muted);
    opacity: 1;
    letter-spacing: 0.04em;
  }

  .crew-pill strong {
    margin-top: 10px;
    font-size: 38px;
  }

  .crew-pill.ready {
    border-top: 4px solid var(--green);
    background: linear-gradient(145deg, #ffffff, #f0faf6);
  }

  .crew-pill.ready strong {
    color: var(--green);
  }

  .crew-pill.limited {
    border-top: 4px solid var(--yellow);
    background: linear-gradient(145deg, #ffffff, #fff9e9);
  }

  .crew-pill.limited strong {
    color: #a66b00;
  }

  .crew-pill.away {
    border-top: 4px solid var(--red);
    background: linear-gradient(145deg, #ffffff, #fff2f3);
  }

  .crew-pill.away strong {
    color: var(--red);
  }

  .summary-band,
  .status-board {
    margin-top: 12px;
    padding: 16px;
  }

  .section-title {
    margin-bottom: 15px;
    font-size: 11px;
    letter-spacing: 0.07em;
  }

  .section-title span {
    font-size: 15px;
    letter-spacing: -0.01em;
    text-transform: none;
  }

  .vehicle-list,
  .role-grid {
    gap: 12px;
  }

  .vehicle-card,
  .role-card {
    border-color: rgba(25, 47, 78, 0.075);
    border-radius: 21px;
  }

  .vehicle-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 17px;
    min-height: 190px;
    box-shadow: 0 10px 28px rgba(25, 47, 78, 0.055);
  }

  .vehicle-card::before {
    inset: 0 0 auto;
    width: auto;
    height: 4px;
  }

  .vehicle-card.vehicle-yellow::before {
    background: var(--yellow);
  }

  .vehicle-card.vehicle-gray::before {
    background: var(--gray);
  }

  .vehicle-card.vehicle-red::before {
    background: var(--red);
  }

  .vehicle-main {
    grid-column: 1;
    grid-row: 1;
  }

  .vehicle-thumb {
    grid-column: 2;
    grid-row: 1;
    width: 76px;
    height: 52px;
  }

  .vehicle-name {
    font-size: 29px;
    letter-spacing: -0.04em;
  }

  .vehicle-radio {
    font-size: 11px;
    letter-spacing: 0.05em;
  }

  .vehicle-rule {
    margin-top: 8px;
  }

  .vehicle-state {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    min-width: 0;
    min-height: 30px;
    border-radius: 999px;
    padding: 7px 11px;
    background: var(--red);
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .vehicle-card.vehicle-yellow .vehicle-state {
    background: var(--yellow);
    color: #2f2000;
  }

  .vehicle-card.vehicle-gray .vehicle-state {
    background: var(--gray);
  }

  .vehicle-control {
    grid-column: 1 / -1;
    justify-items: stretch;
  }

  .legend {
    gap: 6px;
  }

  .legend span {
    border: 0;
    padding: 6px 9px;
    background: #f5f7fa;
  }

  .role-card {
    box-shadow: 0 10px 28px rgba(25, 47, 78, 0.05);
  }

  .role-heading {
    min-height: 56px;
    padding: 13px 14px;
    background: linear-gradient(180deg, #ffffff, #f7f9fc);
  }

  .role-heading h2 {
    font-size: 16px;
    letter-spacing: -0.025em;
  }

  .member-card {
    min-height: 68px;
    padding: 13px 14px;
    border-left-width: 4px;
  }

  .member-name {
    font-size: 15px;
  }

  .traffic {
    gap: 7px;
    border: 0;
    padding: 5px;
    background: #f0f0f2;
  }

  .light-button {
    width: 29px;
    height: 29px;
  }

  .absence-modal {
    backdrop-filter: blur(8px);
    background: rgba(18, 18, 21, 0.54);
  }

  .absence-panel {
    padding: 24px;
    border: 0;
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  }

  .utility-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .database-button,
  .fg-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    min-height: 52px;
    margin: 0;
    border-radius: 16px;
    padding: 0 15px;
    font-size: 12px;
    font-weight: 850;
  }

  .database-button {
    border: 0;
    background: var(--ink);
  }

  .fg-link {
    border: 1px solid rgba(20, 20, 23, 0.09);
    color: var(--ink);
  }
}

@media screen and (max-width: 560px) {
  .topbar {
    gap: 8px;
  }

  .brand-lockup {
    width: min(76vw, 290px);
    height: 76px;
  }

  .dashboard-intro {
    align-items: flex-start;
    flex-direction: column;
    padding: 23px 20px;
  }

  .incident-intro,
  .incident-active-header {
    align-items: stretch;
    flex-direction: column;
  }

  .incident-start-button,
  .incident-pdf-button,
  .incident-end-button {
    width: 100%;
  }

  .incident-header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .incident-crew-options {
    grid-template-columns: 1fr;
  }

  .incident-crew-list li.has-crew-role {
    align-items: stretch;
    flex-direction: column;
  }

  .incident-crew-role-control {
    width: 100%;
    margin-left: 0;
  }

  .date-selector {
    grid-template-columns: 1fr 1fr;
  }

  .date-selector label,
  .date-selector input {
    grid-column: 1 / -1;
  }

  .date-selector .today-button {
    grid-column: 1 / -1;
  }

  .crew-pill {
    min-height: 86px;
    padding: 13px 11px;
  }

  .crew-pill span {
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
  }

  .crew-pill strong {
    font-size: 34px;
  }

  .vehicle-thumb {
    width: 66px;
  }

  .member-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .status-select-shell {
    width: 100%;
  }

  .utility-nav {
    grid-template-columns: 1fr;
  }
}

@media screen and (min-width: 680px) {
  .app-shell {
    padding: 26px 20px 56px;
  }

  .topbar-copy {
    display: block;
    margin-left: auto;
  }

  .sync-state {
    margin-left: 6px;
  }

  .dashboard-intro {
    padding: 34px;
  }

  .date-selector {
    padding: 12px 14px;
  }

  .incident-vehicle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .member-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .traffic {
    justify-self: end;
  }
}

@media screen and (min-width: 1080px) {
  .dashboard-intro {
    min-height: 190px;
  }

  .summary-band,
  .incident-board,
  .status-board {
    padding: 20px;
  }
}
