.input-error {
  margin: 0.45rem 0;
  color: #84282b;
  font-size: 0.9375rem;
  font-weight: 650;
}
.workbench [aria-invalid="true"] {
  border: 2px solid #84282b;
}
.workbench .secondary {
  background: #fff;
  border: 1px solid #285045;
  color: #17463a;
}
#notes-feedback:empty {
  display: none;
}
html:not(.interactive) .workbench {
  display: none;
}
@media (max-width: 850px) {
  html:not(.interactive) .menu-toggle {
    display: none;
  }
  html:not(.interactive) .header nav {
    display: flex;
  }
}

@media (scripting: enabled) {
  html:not(.interactive) .workbench {
    display: grid;
    visibility: hidden;
  }

  @media (max-width: 850px) {
    html:not(.interactive) .menu-toggle {
      display: flex;
      visibility: hidden;
    }

    html:not(.interactive) .header nav {
      display: none;
    }
  }
}

.status-summary-preview {
  margin: 1rem 0;
  padding: .75rem 1rem;
  border: 1px solid #bdcabb;
  border-radius: .55rem;
  background: #f3f6ef;
}
.status-summary-preview summary {
  cursor: pointer;
  font-weight: 700;
}
.status-summary-preview pre {
  margin: .75rem 0 0;
  padding: .75rem;
  border: 1px solid #bdcabb;
  border-radius: .3rem;
  background: #fff;
  color: #19382d;
  font: .85rem/1.5 ui-monospace, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.status-summary-preview :is(summary,pre):focus-visible {
  outline: 3px solid #833f29;
  outline-offset: 3px;
}

.workbench-sr-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.route-case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  margin-top: .75rem;
}

.route-case-actions > button {
  margin: 0;
}

.route-case-actions > button[hidden] {
  display: inline-flex;
  visibility: hidden;
}

.route-case-actions > [role="status"] {
  flex-basis: 100%;
  min-height: 1.65em;
  margin: 0;
}

.workbench #add-case[data-saved] {
  background: #dcebda;
  border-color: #4a7053;
  color: var(--dark);
}

.workbench button:active {
  box-shadow: inset 0 0 0 2px currentColor;
}

.workbench .tab[aria-pressed="true"] {
  box-shadow: inset 0 -2px #a5c397;
}

.workbench .tab[aria-pressed="true"]:active {
  box-shadow: inset 0 0 0 2px #a5c397;
}

@media (hover: hover) and (pointer: fine) {
  .workbench .tab[aria-pressed="false"]:hover,
  .workbench .route-case-actions .secondary:hover {
    background: #dcebda;
  }
}

[data-workbench-accent] {
  position: relative;
}

[data-workbench-accent]::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: -.12em;
  width: 2.5rem;
  height: 2px;
  background: #55765b;
  transform-origin: left center;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .workbench [data-just-saved] {
    animation: workbench-saved 230ms ease-out;
  }

  [data-workbench-accent]::after {
    animation: workbench-note-line 360ms ease-out;
  }

  @keyframes workbench-saved {
    from { transform: translateY(2px); opacity: .78; }
    to { transform: translateY(0); opacity: 1; }
  }

  @keyframes workbench-note-line {
    from { transform: scaleX(.35); opacity: .5; }
    to { transform: scaleX(1); opacity: 1; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 440px) {
  .route-case-actions {
    display: grid;
  }
}

.sp-rework .audit-intro {
  border-left: 3px solid #55765b;
  padding: 1rem 1.2rem;
  margin: 0 0 1.25rem;
  background: #edf1e6;
}
.audit-intro h2 { margin: 0 0 .5rem; }
.audit-intro ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.8rem;
  padding-inline-start: 1.3em;
}
.audit-intro li { padding-inline-start: .15em; }
.audit-intro p { margin: .5rem 0 0; }
.audit-card {
  margin-top: 1.3rem;
  padding: 1.1rem;
  border: 1px solid #bdcabb;
  border-radius: .55rem;
  background: #f4f6ef;
}
.audit-card h4 { margin: .85rem 0 .35rem; }
.audit-card .actions { flex-wrap: wrap; margin-block: .8rem; }
.audit-card .formrow > div { min-width: 0; }
.audit-card .button:disabled { cursor: default; opacity: .63; }
.audit-card textarea { display: block; resize: vertical; width: 100%; padding: .7rem; line-height: 1.5; }
.audit-card [role="status"]:empty,
.audit-confirm [role="status"]:empty { margin: 0; }
.audit-card [hidden] { display: none !important; }
.audit-profile {
  border-top: 1px solid #bdcabb;
  padding-top: .85rem;
  margin-top: .95rem;
  overflow-wrap: anywhere;
}
.audit-profile h5 { margin: 0; font-size: 1rem; }
.audit-profile p { margin-block: .35rem; }
.audit-profile .button { white-space: normal; }
.audit-actions { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.audit-actions a { overflow-wrap: anywhere; }
.audit-device { border-top: 1px solid #bdcabb; padding-top: 1rem; margin-top: 1rem; }
.audit-device summary { cursor: pointer; font-weight: 700; }
.audit-confirm { margin-block: .8rem; }
.audit-confirm p { margin: .4rem 0; }
@media (max-width: 700px) {
  .audit-intro ol { grid-template-columns: 1fr; row-gap: .2rem; }
}
@media (max-width: 440px) {
  .audit-card { padding: .8rem; }
  .audit-card .formrow { grid-template-columns: 1fr; }
}
