.inspection-section-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 10px;
  margin: 18px 0;
}
.inspection-section-list > .inspection-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  min-height: 86px;
  padding: 12px 33px 12px 13px;
  text-align: left;
  gap: 8px;
  background: #fff;
  border: 1px solid #9bb5a9;
  border-radius: 9px;
  box-shadow: 0 1px 2px #142e2a12;
}
.inspection-section-list > .inspection-section:hover {
  background: #f3f8f5;
  border-color: var(--green);
}
.inspection-section::after {
  content: "";
  position: absolute;
  inset: 16px 15px auto auto;
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}
.inspection-section-metadata {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.inspection-section-badge {
  padding: 3px 7px;
  border-radius: 4px;
  background: #edf1ef;
  color: #40524b;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.2;
}
.inspection-section.is-complete .inspection-section-badge {
  background: #dcefe4;
  color: #195b41;
}
.inspection-section-detail {
  font-weight: 650;
  font-size: .75rem;
  color: #416757;
}
.inspection-section-label {
  overflow-wrap: anywhere;
}
.inspection-record-actions {
  margin: 20px 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
button.inspection-danger,
.inspection-confirm-slider {
  --inspection-action-danger: #a32620;
}
button.inspection-danger {
  min-height: 48px;
  color: var(--inspection-action-danger);
  border-color: var(--inspection-action-danger);
  background: #fff;
}
.inspection-danger:not(:disabled):hover {
  background: #fff0e4;
  border-color: var(--inspection-action-danger);
  color: var(--inspection-action-danger);
}
button.inspection-danger-solid {
  background: var(--inspection-action-danger);
  color: #fff;
}
.inspection-danger-solid:not(:disabled):hover {
  background: #802b17;
  color: #fff;
}
.inspection-danger:not(:disabled):active { transform: translateY(1px); }
.inspection-action-window { max-width: 680px; }
.inspection-action-window .inspection-action-option {
  padding: 8px 0 20px;
  border-top: 1px solid var(--border);
}
.inspection-action-window h3 { margin: 14px 0 8px; }
.inspection-action-window textarea { resize: none; }
.inspection-action-window .inspection-window-footer { flex-wrap: wrap; }
.inspection-action-window button { min-height: 48px; }
.inspection-confirm-slider {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 420px;
}
.inspection-confirm-slider-track {
  position: relative;
  height: 56px;
  border: 1px solid var(--inspection-action-danger);
  border-radius: 8px;
  background: linear-gradient(90deg, #fbe9e7 var(--slide-progress, 0%), #fff var(--slide-progress, 0%));
}
.inspection-confirm-slider-track label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  margin: 0;
  padding-inline: 48px 16px;
  color: var(--inspection-action-danger);
  font-size: .92rem;
  font-weight: 700;
  pointer-events: none;
}
.inspection-confirm-slider input[type="range"] {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: 56px;
  min-height: 56px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--inspection-action-danger);
  cursor: grab;
  touch-action: none;
}
.inspection-confirm-slider input[type="range"]:active { cursor: grabbing; }
.inspection-confirm-slider input[type="range"]:focus-visible {
  outline: 3px solid var(--focus, #2877a8);
  outline-offset: 3px;
}
.inspection-confirm-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 56px;
  border: 0;
  background: transparent;
}
.inspection-confirm-slider input[type="range"]::-moz-range-track {
  height: 56px;
  border: 0;
  background: transparent;
}
.inspection-confirm-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 56px;
  height: 56px;
  border: 3px solid #fff;
  border-radius: 7px;
  background: var(--inspection-action-danger) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9 16h14m-6-6 6 6-6 6' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 28px no-repeat;
}
.inspection-confirm-slider input[type="range"]::-moz-range-thumb {
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  border: 3px solid #fff;
  border-radius: 7px;
  background: var(--inspection-action-danger) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9 16h14m-6-6 6 6-6 6' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 28px no-repeat;
}
.inspection-confirm-slider:has(input:disabled) { opacity: .6; }
.inspection-confirm-slider input[type="range"]:disabled { cursor: not-allowed; }
.inspection-confirm-slider small {
  display: block;
  margin-top: 7px;
  font-size: .78rem;
  line-height: 1.4;
}
.inspection-slide-alternative { margin: 4px 0 0; }
.inspection-slide-alternative summary {
  display: list-item;
  padding: 12px 0;
  min-height: 48px;
  font-size: .8rem;
  cursor: pointer;
}
@media (forced-colors: active) {
  .inspection-confirm-slider-track { border-color: ButtonText; }
  .inspection-confirm-slider input[type="range"] { appearance: auto; }
}
.inspection-action-error { color: #802b17; }
.inspection-action-error:empty { display: none; }
.inspection-action-acknowledgment {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}
.inspection-action-acknowledgment input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  flex: 0 0 22px;
  margin: 0;
}
.inspection-action-window[aria-busy="true"] .inspection-window-message::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-inline-end: 8px;
  border: 2px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  vertical-align: middle;
  animation: inspection-action-spin .8s linear infinite;
}
@keyframes inspection-action-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .inspection-action-window[aria-busy="true"] .inspection-window-message::before { animation: none; }
}
.inspection-window,
#stop > .inspection-window.workflow-panel {
  box-sizing: border-box;
  width: min(980px, calc(100vw - 28px));
  max-height: min(88vh, 940px);
  max-height: min(88dvh, 940px);
  margin: auto;
  padding: 0;
  border: 1px solid #9bb5a9;
  border-radius: 14px;
  box-shadow: 0 12px 48px #112c2740;
  overflow: hidden;
}
.inspection-window[open] {
  display: flex;
  flex-direction: column;
}
.inspection-window-bar,
.inspection-window-footer,
.post-crash-footer {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: #f3f8f5;
}
.inspection-window-bar {
  border-bottom: 1px solid var(--border);
}
.inspection-window-title {
  font-size: 1.25rem;
  margin: 0;
}
.inspection-window-close {
  min-height: 48px;
  flex: none;
}
.inspection-window-content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px 18px 24px;
  overflow: auto;
  overscroll-behavior: contain;
}
.inspection-window-message:not(:empty) {
  flex: none;
  margin: 0;
  padding: 8px 18px;
  border-bottom: 1px solid var(--border);
  background: #edf5f1;
}
.inspection-window-message:empty {
  display: none;
}
.inspection-window-message.error {
  background: #fff0e4;
  color: #802b17;
}
.inspection-window-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--border);
}
.inspection-window-footer:has(.inspection-section-completion[hidden]) {
  display: none;
}
.post-crash-window {
  width: min(1120px, calc(100vw - 28px));
}
.post-crash-footer {
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.post-crash-footer output:not(:empty) {
  padding: 0;
}
.post-crash-footer button,
.post-crash-content button {
  min-height: 48px;
}
.post-crash-footer .actions {
  margin: 0;
}
.post-crash-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.post-crash-modes > button[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.post-crash-references {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.post-crash-references button { font-weight: 600; }
.post-crash-direct > p, .post-crash-checklist-intro { max-width: 68ch; }
.post-crash-direct .post-crash-navigation { margin-top: 12px; }
.post-crash-paper-picker { margin: 12px 0 16px; }
.post-crash-paper-picker summary { min-height: 48px; padding: 10px 0; }
.post-crash-paper-picker img {
  display: block;
  width: min(100%, 820px);
  height: auto;
  outline: 1px solid var(--border);
  cursor: crosshair;
}
.post-crash-paper-picker img[hidden], .post-crash-paper-picker p:empty { display: none; }
.post-crash-form-search { display: block; max-width: 34rem; }
.post-crash-form-search input { width: 100%; }
.post-crash-form-count { margin: 4px 0 10px; color: #416757; }
.post-crash-native-check, .post-crash-checklist-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}
.post-crash-native-check input, .post-crash-checklist-check input {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 0;
}
.post-crash-native-field { min-width: 0; overflow-wrap: anywhere; }
.post-crash-native-field > label { display: grid; }
.post-crash-native-field > .post-crash-native-check { display: flex; }
.post-crash-native-field .post-crash-field-reset { margin: 0 0 6px; }
.post-crash-native-field [hidden] { display: none; }
.post-crash-date-field {
  margin: 7px 0 10px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f3f8f5;
}
.post-crash-date-field summary { min-height: 48px; padding: 9px 0; cursor: pointer; }
.post-crash-date-field summary > span:last-child { display: block; color: #416757; margin: 2px 0 0 18px; }
.post-crash-date-label { font-weight: 650; }
.post-crash-date-field:not(details) { display: grid; gap: 4px; padding-block: 10px; }
.post-crash-date-picker { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) minmax(0, .7fr); gap: 8px; }
.post-crash-date-picker input, .post-crash-date-picker select { min-width: 0; width: 100%; }
.post-crash-date-field .actions { margin: 6px 0 10px; }
.post-crash-date-error { color: #802b17; margin: 6px 0 0; }
.post-crash-date-error:empty { display: none; }
.post-crash-checklist { list-style: none; padding: 0; margin: 10px 0; }
.post-crash-checklist > li { padding: 10px 0; border-top: 1px solid var(--border); }
.post-crash-checklist-check { margin: 0; }
.post-crash-checklist-topics { padding-inline-start: 32px; }
.post-crash-checklist-topics summary { min-height: 48px; padding: 10px 0; }
.post-crash-checklist-topics p { max-width: 66ch; }
.post-crash-checklist-topics ul { padding-inline-start: 22px; }
.post-crash-draft { font-weight: 650; color: #684310; }
.post-crash-navigation {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.post-crash-navigation label {
  flex: 1 1 255px;
  margin: 0;
}
.post-crash-content h3 {
  margin: 14px 0 8px;
  font-size: 1.15rem;
}
.post-crash-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.post-crash-fields label {
  min-width: 0;
  margin: 7px 0;
}
.post-crash-full {
  grid-column: 1 / -1;
}
.post-crash-fieldset {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 16px 0;
  padding: 8px 0 2px;
  min-width: 0;
}
.post-crash-fieldset legend {
  padding: 0 8px 0 0;
  font-size: 1rem;
  font-weight: 700;
}
.post-crash-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
}
.post-crash-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
}
.post-crash-options input {
  min-height: 20px;
  width: 20px;
  margin: 0;
}
.post-crash-source {
  display: block;
  margin: 4px 0 0;
  color: #416757;
  font-size: .83rem;
  font-weight: 500;
}
.post-crash-diagram {
  padding: 10px;
  margin: 8px 0;
  border: 1px solid var(--border);
  background: #f3f8f5;
  border-radius: 8px;
}
.post-crash-diagram svg {
  display: block;
  width: 100%;
  max-height: 170px;
}
.post-crash-conflict {
  background: #fff6df;
  padding: 12px;
  border: 1px solid #ddc78c;
  border-radius: 8px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
@media (max-width: 540px) {
  .inspection-section-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inspection-window-content,
  .inspection-window-bar,
  .inspection-window-footer,
  .post-crash-footer {
    padding-inline: 12px;
  }
  .post-crash-fields {
    grid-template-columns: 1fr;
  }
  .post-crash-footer > .actions {
    flex: 1 1 100%;
  }
}
@media (max-width: 340px) {
  .inspection-section-list {
    grid-template-columns: 1fr;
  }
}
