/* Shared palette and document-wide element defaults. */
:root {
  --ink: #13283f;
  --muted: #526579;
  --line: #d9e5ee;
  --control-line: #718697;
  --paper: #f4f8fb;
  --panel: #ffffff;
  --accent: #fea801;
  --forest: #8bb8d8;
  --navy: #28627d;
  --focus: #2f829f;
}
* {
  box-sizing: border-box;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 9px 12px;
  border: 2px solid var(--navy);
  border-radius: 6px;
  background: #fff;
  color: #012a7a;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}
input[type="checkbox"] {
  accent-color: var(--navy);
}
input[type="range"] {
  accent-color: var(--navy);
}
[hidden] {
  display: none !important;
}
details > summary {
  list-style: none;
  cursor: pointer;
}
details > summary::-webkit-details-marker {
  display: none;
}
details > summary::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin: 0 9px 0 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(-45deg);
  transform-origin: center;
}
details[open] > summary::before {
  transform: rotate(45deg) translate(-1px, -1px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
}

/* Header, application identity, and the Help popover. */
header {
  min-height: 62px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  background: #dcecf5;
  color: var(--ink);
  font:
    12px Helvetica, Arial, sans-serif;
}
header > button:not(.header-legal-action),
header > .file-button {
  height: 32px;
  padding: 0 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font:
    700 17px Helvetica, Arial, sans-serif;
}
.brand img {
  width: 180px;
  height: 41px;
  object-fit: contain;
}
.help-options {
  position: relative;
}
.help-options summary {
  display: flex;
  min-height: 32px;
  align-items: center;
  cursor: pointer;
}
.help-options > div {
  position: absolute;
  z-index: 8;
  top: 24px;
  left: 0;
  display: grid;
  gap: 7px;
  width: 235px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 20px #13283f22;
}
.load-dialog {
  width: min(420px, calc(100vw - 28px));
}
.load-dialog select {
  width: 100%;
  min-height: 32px;
  margin-top: 5px;
  border: 1px solid var(--control-line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 5px 7px;
  font: inherit;
}
.load-hint {
  display: block;
  min-height: 1.35em;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.35;
}
.help-options label {
  display: block;
  color: var(--ink);
}
.help-options .primary-action {
  background: var(--forest);
  color: #012a7a;
}
.help-options button:not(.primary-action) {
  background: var(--accent);
}
.header-legal-action {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: var(--ink);
  padding: 4px;
  text-decoration: none;
  white-space: nowrap;
}
button.header-legal-action {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 4px;
  font: inherit;
}
.status.loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status.loading::before {
  width: 12px;
  height: 12px;
  border: 2px solid #2f829f55;
  border-top-color: var(--accent);
  border-radius: 50%;
  content: "";
  animation: status-loading-spin 0.8s linear infinite;
}
@keyframes status-loading-spin {
  to {
    transform: rotate(360deg);
  }
}
.status {
  margin-left: auto;
  color: var(--muted);
}
.accessible-tooltip {
  position: fixed;
  z-index: 110;
  width: min(320px, calc(100vw - 16px));
  padding: 8px 10px;
  border: 1px solid var(--control-line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 14px #13283f33;
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
}
.accessible-tooltip.hoverable {
  pointer-events: auto;
}

/* Three-column application shell and reusable panel treatment. */
main {
  display: grid;
  /* The header wraps on narrow viewports, so its measured height drives the shell. */
  height: calc(100vh - var(--header-height, 62px));
  grid-template-columns:
    clamp(220px, 22vw, 260px)
    minmax(340px, 1fr)
    clamp(240px, 24vw, 280px);
  gap: 12px;
  padding: 12px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  box-shadow: 0 2px 8px #1730220a;
}
.actors,
.inspector {
  overflow: auto;
  padding: 12px;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 700;
}
button,
.file-button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--forest);
  color: #012a7a;
  padding: 8px 10px;
  cursor: pointer;
  line-height: 1.2;
  font:
    600 12px Helvetica, Arial, sans-serif;
}
button:focus-visible,
.button-link:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
a:focus-visible,
summary:focus-visible {
  border-radius: 6px;
}
.button-link {
  text-decoration: none;
}
.actors .file-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  background: var(--navy);
  text-align: center;
}
.file-button input {
  display: none;
}
.actor {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  justify-content: flex-start;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 10px;
  text-align: left;
}
.actor:hover,
.actor.active {
  background: #e8f1f5;
}
.actor.active {
  box-shadow: inset 4px 0 0 var(--navy);
}
.actor small {
  margin-left: auto;
  color: var(--muted);
}
.actor-dot {
  width: 9px;
  height: 9px;
  border-radius: 100%;
  background: var(--accent);
}

/* Central workspace: toolbar, map canvas, playback, profile, and tables. */
.workspace {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: 38px minmax(252px, 1fr) 0 minmax(180px, 28vh);
  gap: 10px;
}
.canvas-toolbar {
  grid-row: 1;
}
.canvas-presentation {
  grid-row: 2;
}
#speed-profile {
  grid-row: 3;
}
#tables {
  grid-row: 4;
}
.canvas-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}
.canvas-toolbar .file-button {
  background: var(--navy);
}
.canvas-presentation {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(200px, 1fr) 42px;
  gap: 10px;
}
.canvas-frame {
  position: relative;
  min-width: 0;
  min-height: 0;
}
#map-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid var(--control-line);
  border-radius: 13px;
  background: #f1f5f7;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}
#map-canvas:active {
  cursor: grabbing;
}
.canvas-fullscreen {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #fffffff0;
  color: var(--navy);
  padding: 0;
  box-shadow: 0 2px 8px #13283f24;
}
.canvas-fullscreen:hover {
  background: #dcecf5;
}
.canvas-fullscreen svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.canvas-fullscreen .material-icon {
  fill: currentColor;
  stroke: none;
}
body.canvas-expanded {
  overflow: hidden;
}
body.canvas-expanded .canvas-presentation {
  position: fixed;
  z-index: 20;
  top: var(--header-height, 62px);
  right: 0;
  bottom: 0;
  left: 0;
  grid-template-rows: minmax(0, 1fr) 42px;
  gap: 10px;
  padding: 12px;
  background: var(--paper);
}
body.canvas-expanded .canvas-toolbar {
  position: fixed;
  z-index: 22;
  top: calc(var(--header-height, 62px) + 12px);
  left: 24px;
  height: 42px;
  padding: 5px 8px;
  border: 1px solid #b9cedd;
  border-radius: 10px;
  background: #fffffff0;
  box-shadow: 0 2px 8px #13283f24;
}

/* Legacy waypoint styling and shared text-input treatment. */
.waypoints {
  overflow: auto;
  padding: 11px;
}
.waypoints table {
  width: 100%;
  border-collapse: collapse;
  font:
    12px Helvetica, Arial, sans-serif;
}
.waypoints th {
  color: var(--muted);
  font-weight: 500;
  text-align: left;
}
.waypoints td,
.waypoints th {
  border-bottom: 1px solid #e5e9e4;
  padding: 5px;
}
.waypoints input,
.inspector input,
.inspector select,
.inspector textarea,
.actors textarea,
.parameter-dialog textarea {
  width: 100%;
  border: 1px solid var(--control-line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 6px;
  font:
    12px Helvetica, Arial, sans-serif;
}
.waypoints button {
  background: #e9ece7;
  color: var(--ink);
  padding: 4px 7px;
}
.inspector label {
  display: block;
  margin: 10px 0;
  color: var(--muted);
  font-size: 12px;
}
.inspector label input,
.inspector label select,
.inspector label textarea {
  display: block;
  margin-top: 4px;
}
.inspector textarea,
.parameter-dialog textarea {
  resize: vertical;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
.secondary {
  margin-top: 3px;
  background: #e6eef2;
  color: var(--ink);
}
.danger {
  background: #d64a4a !important;
  padding: 6px 8px !important;
}
#actor-actions .danger {
  background: var(--forest) !important;
  padding: 8px 10px !important;
}
.danger:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

/* Right-side inspector, collapsible sections, and environmental templates. */
.additional-info {
  color: var(--muted);
  font-size: 12px;
}
.additional-info + .additional-info {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}
.additional-info summary {
  display: flex;
  min-height: 28px;
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}
.environmental-template {
  position: relative;
  width: 100%;
  height: 34px;
  background: transparent;
  color: var(--navy);
  padding: 0;
}
.environmental-template::before,
.environmental-template::after {
  position: absolute;
  top: 16px;
  left: calc(50% - 9px);
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}
.environmental-template::after {
  transform: rotate(90deg);
}
.environment-template-picker {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}
.environment-template-picker .file-button {
  margin: 0;
  justify-self: stretch;
}
.environment-template-picker select {
  display: block;
  width: 100%;
  margin: 0 !important;
}
.inspector-section {
  margin: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.inspector-section:last-child {
  border-bottom: 1px solid var(--line);
}
.inspector-section summary {
  min-height: 32px;
  padding: 9px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.inspector-section > .secondary {
  margin: 0 0 10px;
}
.warning {
  color: #9a461d;
  font-size: 11px;
  line-height: 1.35;
}
.export-actions {
  display: grid;
  gap: 7px;
}
.export-actions button:nth-child(1) {
  background: var(--accent);
}
.export-actions button:nth-child(2) {
  background: var(--navy);
}

/* Modal dialogs used for declarations, quality feedback, and help. */
dialog {
  width: min(560px, calc(100vw - 28px));
  border: 0;
  background: transparent;
  padding: 0;
}
#quality-dialog,
#export-quality-dialog {
  max-width: min(720px, calc(100vw - 28px));
}
dialog::backdrop {
  background: #15211c88;
}
.parameter-dialog {
  max-width: 100%;
  max-height: calc(100vh - 28px);
  overflow: auto;
  padding: 18px;
}
.parameter-dialog p {
  color: var(--muted);
  font-size: 12px;
}
.parameter-dialog code {
  font-family: Helvetica, Arial, sans-serif;
}
.parameter-dialog button {
  float: none;
  margin: 0;
}
.parameter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

/* Actor form controls and checkbox rows with aligned labels. */
.actors label,
.inspector label {
  display: block;
  margin: 10px 0;
  color: var(--muted);
  font-size: 12px;
}
.actors input,
.actors select {
  display: block;
  width: 100%;
  margin-top: 4px;
  border: 1px solid var(--control-line);
  border-radius: 6px;
  padding: 6px;
  background: #fff;
  font:
    12px Helvetica, Arial, sans-serif;
}
.actors > button,
.inspector > button,
#editing-controls > button,
#map-actions > button {
  width: 100%;
  margin-top: 7px;
}
.check-label {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr);
  min-height: 24px;
  align-items: center;
  column-gap: 7px;
}
.check-label input[type="checkbox"] {
  display: block !important;
  width: 24px !important;
  height: 24px;
  min-width: 24px;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center;
}
.check-label span {
  grid-column: 2;
  line-height: 1.3;
}
.check-label input:not([type="checkbox"]) {
  grid-column: 1 / -1;
  width: 100%;
  margin: 4px 0 0 !important;
}

/* Playback strip, editable data tables, and quality-check results. */
.playback {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
}
.playback input {
  flex: 1;
  min-width: 40px;
}
.playback output {
  white-space: nowrap;
}
.tables {
  min-height: 0;
  overflow: auto;
  padding: 11px;
}
.tables nav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.tables nav button {
  background: #e9ece7;
  color: var(--ink);
}
.tables nav button[aria-selected="true"] {
  background: var(--forest);
  box-shadow: inset 0 -3px 0 var(--navy);
}
.tables table {
  width: 100%;
  border-collapse: collapse;
  font:
    12px Helvetica, Arial, sans-serif;
}
.tables th,
.tables td {
  padding: 5px;
  border-bottom: 1px solid #e5e9e4;
  text-align: left;
}
.tables input,
.tables select {
  width: 100%;
  border: 1px solid var(--control-line);
  border-radius: 5px;
  padding: 5px;
  font:
    12px Helvetica, Arial, sans-serif;
}
.quality-problems {
  color: #9a261d;
}
.quality-warnings {
  color: #8a6716;
}
.quality-problems,
.quality-warnings {
  max-height: 260px;
  overflow: auto;
  font:
    12px Helvetica, Arial, sans-serif;
  white-space: pre-wrap;
}

/* View popover and adaptive workspace heights for visible panels. */
.canvas-toolbar details {
  position: relative;
}
.canvas-toolbar summary {
  display: flex;
  min-width: 44px;
  min-height: 32px;
  align-items: center;
  cursor: pointer;
}
.canvas-toolbar #view-options {
  position: fixed;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 4px 15px #17302222;
}
.canvas-toolbar #view-options label {
  font-size: 12px;
}
.view-option-group {
  display: grid;
  align-content: start;
  gap: 5px;
}
.view-option-group h3 {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 12px;
}
.canvas-toolbar #view-options label.unavailable {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.48;
}
.canvas-toolbar .measurement-menu {
  position: absolute;
  z-index: 3;
  display: grid;
  min-width: 150px;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 4px 15px #17302222;
}
.canvas-toolbar .measurement-menu button {
  background: transparent;
  color: var(--ink);
  justify-content: flex-start;
  text-align: left;
}
.canvas-toolbar .measurement-menu button:hover {
  background: #e7eee8;
}
.workspace:has(#speed-profile:not([hidden])) {
  grid-template-rows: 38px minmax(232px, 1fr) minmax(130px, 22vh) minmax(
      180px,
      30vh
    );
}
.workspace:has(#tables[hidden]) {
  grid-template-rows: 38px minmax(252px, 1fr) 0 0;
}
.workspace:has(#tables[hidden]):has(#speed-profile:not([hidden])) {
  grid-template-rows: 38px minmax(232px, 1fr) minmax(150px, 28vh) 0;
}

/* Velocity profile, help content, and export action groups. */
#speed-profile {
  padding: 10px;
  overflow: hidden;
}
#speed-profile .panel-title {
  margin-bottom: 4px;
}
#speed-profile .panel-title span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
#speed-profile-canvas {
  width: 100%;
  height: 145px;
  cursor: ns-resize;
}
#help-content {
  max-height: 65vh;
  overflow: auto;
  font:
    12px/1.5 Helvetica, Arial, sans-serif;
}
.document-content h1 {
  margin-top: 0;
  color: #012a7a;
  font-size: 20px;
}
.document-content h2 {
  margin-top: 1.5em;
  color: #012a7a;
  font-size: 16px;
}
.document-content li + li {
  margin-top: 0.4em;
}
#about-dialog,
#docs-about-dialog,
#data-privacy-dialog,
#docs-data-privacy-dialog {
  width: min(720px, calc(100vw - 28px));
}
.data-privacy-dialog-content {
  width: 100%;
}
.data-privacy-link,
.data-privacy-delete-action {
  color: #075a9b;
  font-size: 16px;
  line-height: 1.2;
}
.dialog-actions.data-privacy-actions {
  justify-content: flex-start;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 12px;
}
.data-privacy-delete-action {
  justify-content: flex-start;
  background: transparent;
  padding: 0 !important;
  text-align: left;
}
.about-dialog-content {
  width: 100%;
  max-height: 80vh;
  overflow: auto;
}
#about-content {
  font-size: 14px;
  line-height: 1.55;
}
#about-content h1 {
  margin: 0 0 14px;
  color: #012a7a;
  font-size: 22px;
}
.about-dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
  margin-right: -12px;
}
#about-content h2 {
  margin: 22px 0 8px;
  color: #012a7a;
  font-size: 16px;
}
#about-content a {
  color: #075a9b;
}
.inline-actions {
  display: flex;
  gap: 6px;
}
.inline-actions .file-button {
  display: inline-block;
}
.inline-actions button {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 6px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.dialog-actions button {
  float: none;
  margin-top: 0;
}
.batch-export {
  display: grid;
  gap: 7px;
  margin: 14px 0 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.batch-export legend {
  padding: 0 4px;
  font-weight: 700;
  font-size: 12px;
}
.batch-export label {
  margin: 0;
  color: var(--ink);
}
.batch-export p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.single-exports summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}
.single-exports .export-actions {
  margin-top: 8px;
}

.postprocessing-layout { display:grid; grid-template-columns:minmax(180px, .8fr) minmax(220px, 1.2fr); gap:16px; }
#postprocessing-dialog { width: min(840px, calc(100vw - 28px)); height: min(520px, calc(100vh - 28px)); }
.postprocessing-layout { min-width: 0; min-height: 420px; }
.postprocessing-layout label { display:block; margin:8px 0; color:var(--muted); font-size:12px; }
.postprocessing-layout input { width:100%; margin-top:4px; border:1px solid var(--line); border-radius:6px; padding:6px; }
.postprocessing-layout input { border-color:var(--control-line); }
.postprocessing-tool { display:grid; grid-template-columns:24px 1fr; align-items:center; min-height:32px; margin:6px 0; }
.postprocessing-tool input[type="checkbox"] { width:24px; height:24px; margin:0; }
.postprocessing-tool button { background:transparent; color:var(--ink); justify-content:flex-start; padding:4px; text-align:left; }

/* Let the header wrap before the workspace itself needs to reflow. */
@media (max-width: 1120px) {
  header {
    gap: 10px;
  }
  .status {
    width: 100%;
    margin-left: 0;
  }
}

/* Reflow all application regions instead of removing controls at narrow widths. */
@media (max-width: 860px) {
  main {
    display: grid;
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }
  .actors,
  .inspector {
    display: block;
    overflow: visible;
  }
  .workspace {
    min-height: 720px;
  }
}

@media (max-width: 680px) {
  header {
    padding: 10px;
  }
  .brand {
    flex-basis: 100%;
  }
  main {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px;
  }
  .actors,
  .inspector {
    display: block;
  }
  .workspace {
    display: block;
    min-height: 0;
  }
  .canvas-toolbar {
    flex-wrap: wrap;
    min-height: 38px;
    margin-bottom: 10px;
  }
  .canvas-presentation {
    width: 100%;
    max-width: 100%;
    height: 430px;
    overflow: hidden;
    margin-bottom: 10px;
  }
  .canvas-frame,
  .playback,
  #map-canvas {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  #speed-profile,
  #tables {
    margin-bottom: 10px;
  }
  .tables {
    max-width: 100%;
  }
  .table-content {
    overflow-x: auto;
  }
  .postprocessing-layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  #postprocessing-dialog {
    height: auto;
    max-height: calc(100vh - 28px);
  }
  .canvas-toolbar #view-options {
    grid-template-columns: 1fr;
  }
}

@media (forced-colors: active) {
  button,
  input,
  select,
  textarea,
  .panel,
  #map-canvas {
    border: 1px solid ButtonText;
  }
  .actor.active,
  .tables nav button[aria-selected="true"] {
    outline: 2px solid Highlight;
  }
  button:focus-visible,
  .button-link:focus-visible,
  a:focus-visible,
  summary:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  [tabindex]:focus-visible {
    outline: 3px solid Highlight;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
