* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--iso-text);
  background: var(--iso-canvas);
  font: 14px/1.45 var(--iso-font);
}
button,
select,
input,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: var(--iso-accent);
}
button,
.button,
select,
input,
textarea {
  border: 1px solid var(--iso-line-strong);
  background: var(--iso-surface);
  border-radius: 7px;
  padding: 8px 11px;
}
button,
.button {
  cursor: pointer;
  font-weight: 570;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.button:hover,
button:hover {
  background: var(--iso-hover);
}
.primary,
.primary:hover {
  background: var(--iso-accent);
  color: var(--iso-on-accent);
  border-color: transparent;
}
button:disabled {
  opacity: 0.52;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--iso-accent-line);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1 {
  font-size: clamp(24px, 2.1vw, 38px);
  letter-spacing: -0.045em;
  line-height: 1.15;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 15px;
}
p,
small,
.muted {
  color: var(--iso-muted);
}
small {
  font-size: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  letter-spacing: -0.055em;
}
.brand i {
  font-style: normal;
  color: #66d7d5;
}
.grow {
  flex: 1;
}
#mast,
#nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 26px;
}
#mast {
  height: 55px;
  background: #112329;
  color: #edf5f5;
}
#mast button {
  background: transparent;
  color: #e0efef;
  border-color: #45575a;
  padding: 5px 10px;
  font-size: 12px;
}
#workspace {
  border-inline-start: 1px solid #4b6063;
  margin-inline-start: 12px;
  padding-inline-start: 17px;
  font-size: 13px;
}
#nav {
  min-height: 49px;
  background: var(--iso-surface);
  border-bottom: 1px solid var(--iso-line);
  overflow: auto;
  gap: 18px;
}
#nav a {
  font-weight: 580;
  white-space: nowrap;
  color: var(--iso-muted);
  padding: 14px 0 11px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}
#nav a[aria-current] {
  color: var(--iso-accent);
  border-color: var(--iso-accent);
}
.icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#preview {
  background: #ffde91;
  color: #493000;
  padding: 8px 26px;
  font-weight: 650;
}
#preview button {
  margin-inline-start: 14px;
  color: #493000;
  background: transparent;
  padding: 3px 9px;
}
#layout {
  display: grid;
  grid-template-columns: clamp(235px, 21vw, 320px) minmax(0, 1fr);
  min-height: calc(100vh - 104px);
}
aside {
  background: var(--iso-surface);
  border-inline-end: 1px solid var(--iso-line);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.aside-head,
.line,
header.row,
.bar,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.aside-head {
  padding: 0 4px;
}
.aside-head span,
.chip {
  border-radius: 20px;
  padding: 2px 8px;
  background: var(--iso-sunken);
  font-size: 12px;
  font-weight: 600;
}
.chip.good {
  background: var(--iso-good-soft);
  color: var(--iso-good);
}
aside label {
  font-size: 12px;
  font-weight: 600;
  color: var(--iso-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.search {
  flex-direction: column;
  align-items: stretch;
}
.search input {
  width: 100%;
}
aside select {
  flex: 1;
  font-weight: 450;
}
#list {
  overflow: auto;
  max-height: calc(100vh - 356px);
  min-height: 100px;
  scrollbar-width: thin;
}
.camera-row {
  width: 100%;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  text-align: start;
  margin-bottom: 3px;
}
.camera-row[aria-current] {
  border-color: var(--iso-accent-line);
  background: var(--iso-accent-soft);
}
.camera-row {
  color: var(--iso-text);
  text-decoration: none;
}
.fleetmap {
  position: relative;
}
.fleetmap .map {
  height: 54vh;
  min-height: 300px;
}
.maptools {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
}
.mapnote {
  padding: 8px;
}
.camera-row strong,
.camera-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.camera-row > span:last-child {
  min-width: 0;
}
.thumb {
  width: 65px;
  height: 45px;
  background: var(--iso-sunken);
  border-radius: 4px;
  object-fit: cover;
  flex: none;
}
.camera-row small {
  font-weight: 400;
}
.scope {
  font-size: 12px;
  color: var(--iso-muted);
  margin-bottom: 6px;
}
main {
  min-width: 0;
  padding: clamp(18px, 2.4vw, 40px);
  max-width: 1780px;
  width: 100%;
  margin: 0 auto;
}
.bar {
  margin-bottom: 18px;
  align-items: flex-end;
}
.bar p {
  margin-top: 5px;
}
.bar select {
  font-size: 13px;
}
.stack,
#content {
  display: grid;
  gap: 16px;
  align-content: start;
}
.panel,
.callout,
figure.media {
  border: 1px solid var(--iso-line);
  border-radius: 11px;
  background: var(--iso-surface);
  overflow: hidden;
}
.panel,
.callout {
  padding: 17px 20px;
}
.panel > p,
.callout p {
  margin-top: 5px;
}
.callout {
  background: var(--iso-warn-soft);
  border-color: color-mix(in srgb, var(--iso-warn) 35%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.callout h2 {
  font-size: 17px;
}
.callout .button {
  flex: none;
}
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.media img,
.media video,
.cinema video,
.cinema img {
  width: 100%;
  display: block;
  object-fit: contain;
  max-height: 49vh;
  background: #101918;
}
/* Scaled imagery and its coordinate plane must always share the same content
   rectangle. A max-height on the image alone would letterbox the pixels. */
.media .diagram img,
.media .cinema img,
.media .cinema video {
  max-height: none;
  height: auto;
}
#check .label-stage {
  width: min(100%, calc(58vh * var(--label-aspect)));
  margin-inline: auto;
}
#check .media {
  background: #101918;
}
.media figcaption,
.caption {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--iso-muted);
}
.media figcaption b,
.caption b {
  font-size: 13px;
  color: var(--iso-text);
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 16px;
}
.facts strong {
  display: block;
  margin-top: 3px;
}
.facts span {
  font-size: 12px;
  color: var(--iso-muted);
}
.empty {
  padding: 24px;
  text-align: center;
  color: var(--iso-muted);
  background: var(--iso-sunken);
  border-radius: 8px;
}
.rows {
  display: grid;
  gap: 0;
}
.entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--iso-line);
}
.entry:last-child {
  border: 0;
}
.entry small {
  display: block;
}
.actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.panel > h2,
.panel > .line:first-child {
  margin-bottom: 12px;
}
.summary {
  cursor: pointer;
  font-weight: 600;
}
.forms,
.forms fieldset {
  display: grid;
  gap: 12px;
}
.forms fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.forms label {
  display: grid;
  gap: 4px;
}
.forms label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 8px;
}
.forms input[type="checkbox"] {
  width: 16px;
  height: 16px;
}
.forms textarea {
  width: 100%;
  min-height: 66px;
}
.forms button {
  justify-self: start;
}
.forms {
  margin-top: 12px;
}
.forms.inline {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
}
.forms.inline label {
  flex: 1;
  min-width: 130px;
}
.fieldnote {
  font-size: 12px;
}
#notice {
  position: fixed;
  z-index: 10;
  bottom: 22px;
  inset-inline-end: 22px;
  color: white;
  background: #19353e;
  padding: 12px 18px;
  border-radius: 8px;
  max-width: 350px;
}
dialog {
  width: min(540px, 94vw);
  border: 1px solid var(--iso-line-strong);
  border-radius: 12px;
  background: var(--iso-surface);
  color: var(--iso-text);
  padding: 24px;
  max-height: 88vh;
}
dialog::backdrop {
  background: #07151ca8;
}
.close {
  float: inline-end;
  padding: 2px 9px;
}
pre {
  overflow: auto;
  max-height: 340px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.diagram,
.cinema {
  position: relative;
  background: #111a1b;
}
.diagram img {
  width: 100%;
  display: block;
}
.diagram svg,
.cinema .overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.diagram polygon,
.diagram polyline {
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.cinema {
  overflow: hidden;
}
.source-box {
  position: absolute;
  pointer-events: none;
}
.pair {
  align-items: start;
}
.cinema .hit {
  position: absolute;
  pointer-events: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  min-width: 0;
  min-height: 0;
}
.cinema .hit:focus-visible {
  outline: 2px dashed white;
  outline-offset: 3px;
}
.box-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.image-mark {
  color: #99e3d7;
  pointer-events: none;
}
.image-mark rect,
.image-mark path {
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.image-mark .mark-wash {
  fill: currentColor;
  fill-opacity: 0;
  stroke: none;
}
.image-mark .mark-keyline {
  fill: none;
  stroke: #102724;
  stroke-opacity: 0.48;
  stroke-width: 2.5px;
}
.image-mark .mark-corners {
  fill: none;
  stroke: currentColor;
  stroke-opacity: 0.85;
  stroke-width: 1.15px;
}
.image-mark .mark-anchor {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5px;
  display: none;
}
.image-mark.unsure {
  color: #ffce8c;
}
.image-mark.unsure .mark-corners {
  stroke-dasharray: 3 2;
}
.source-box .image-mark,
.hit.selected .image-mark,
.image-mark.chosen {
  color: #ffce79;
}
.source-box .mark-wash,
.hit.selected .mark-wash,
.image-mark.chosen .mark-wash {
  fill-opacity: 0.045;
  stroke: none;
}
.source-box .mark-keyline,
.hit.selected .mark-keyline,
.image-mark.chosen .mark-keyline {
  stroke-width: 2.5px;
  stroke-opacity: 0.56;
}
.source-box .mark-corners,
.hit.selected .mark-corners,
.image-mark.chosen .mark-corners {
  stroke-width: 1.35px;
  stroke-opacity: 1;
}
.source-box .mark-anchor,
.hit.selected .mark-anchor,
.image-mark.chosen .mark-anchor {
  display: block;
}
.compact-mark .mark-anchor {
  visibility: hidden;
}
.cinema .hit:hover .mark-corners,
.cinema .hit:focus-visible .mark-corners {
  stroke: white;
  stroke-width: 2px;
}
#box-list button[data-inspect][aria-pressed="true"] {
  color: var(--iso-accent);
  background: var(--iso-accent-soft);
}
@media (forced-colors: active) {
  .image-mark .mark-corners,
  .image-mark .mark-anchor {
    stroke: Highlight;
  }
}
.login {
  display: grid;
  min-height: 100vh;
  place-items: center;
}
.login main {
  max-width: 420px;
  background: var(--iso-surface);
  padding: 30px;
  border: 1px solid var(--iso-line);
  border-radius: 12px;
}
.login h1 {
  margin: 24px 0 8px;
}
.login form,
.login label {
  display: grid;
  gap: 8px;
}
.login form {
  margin: 20px 0;
}
.login .brand {
  color: var(--iso-text);
}
#admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#admin-tools button {
  padding: 5px 8px;
  font-size: 12px;
}
@media (min-width: 1600px) {
  .media img,
  .media video {
    max-height: 52vh;
  }
}
@media (max-width: 900px) {
  #layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .callout,
  .bar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .thumb {
    width: 47px;
  }
  .pair {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  #layout {
    display: block;
  }
  aside {
    padding: 12px;
  }
  #list {
    max-height: 140px;
  }
  #mast,
  #nav {
    padding-inline: 12px;
  }
  #workspace {
    margin: 0;
    padding-inline-start: 8px;
    font-size: 11px;
  }
  .bar {
    margin-top: 5px;
  }
  .pair {
    grid-template-columns: 1fr;
  }
}

/* Source pixels and map positions are measured from the physical left edge. */
.diagram,
.cinema,
.fleetmap .map,
pre,
input[type="datetime-local"] {
  direction: ltr;
}
pre {
  text-align: left;
  unicode-bidi: isolate;
}
#preferences select,
#language-form select {
  max-inline-size: 100%;
}
.login #language-form {
  border-block-start: 1px solid var(--iso-line);
  padding-block-start: 12px;
}
#language-error:empty {
  display: none;
}
@media (max-width: 650px) {
  #mast {
    flex-wrap: wrap;
    height: auto;
    min-height: 55px;
    padding-block: 7px;
  }
  #mast #workspace {
    overflow-wrap: anywhere;
  }
}
