.deck-board {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #dce1e4;
  border-radius: 3px;
  background: #fafbfc;
}
.deck-diagram {
  display: block;
  width: 100%;
  height: auto;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}
.deck-diagram text {
  user-select: none;
  pointer-events: none;
}
.deck-ruler {
  fill: #4e5b64;
  font-size: 15px;
  text-anchor: middle;
}
.deck-ruler-title {
  font-size: 14px;
  text-anchor: start;
}
.deck-rule,
.minor-tick {
  fill: none;
  stroke: #b9c3c9;
}
.major-tick {
  fill: none;
  stroke: #687782;
  stroke-width: 1.25;
}
.deck-vehicle {
  stroke-width: 1.65;
  stroke: #55636c;
  stroke-linejoin: round;
}
.deck-ground {
  stroke: #c2cacf;
  stroke-width: 1;
}
.deck-cab, .deck-hub { fill: #f8fafb; }
.deck-window { fill: #dbe3e7; }
.deck-frame { fill: #cdd5da; }
.deck-rail { fill: #d5dce0; }
.deck-detail {
  fill: none;
  stroke-width: 1.4;
}
.deck-tyre {
  fill: #78848c;
  stroke: #55636c;
}
.deck-cargo {
  outline: none;
  cursor: grab;
  touch-action: none;
  text-anchor: middle;
}
.deck-block {
  fill: #e4eceb;
  stroke: #547a76;
  stroke-width: 1.4;
}
.deck-guide {
  stroke: #93a7a7;
  stroke-dasharray: 3 3;
  pointer-events: none;
}
.deck-cargo-label, .deck-mobile-label {
  fill: #263e3c;
  font-size: 17px;
  font-weight: 600;
}
.deck-cargo-weight {
  fill: #374e4c;
  font-size: 14px;
}
.deck-mobile-label { display: none; }
.deck-cg { pointer-events: none; }
.deck-cg circle {
  fill: #fff;
  stroke: #375f5c;
  stroke-width: 1.25;
}
.deck-cg path { fill: #375f5c; }
.deck-cargo:hover .deck-block {
  fill: #dbe8e6;
  stroke: #345d58;
}
.deck-cargo.is-moving { cursor: grabbing; }
.deck-cargo:focus-visible .deck-block,
.deck-cargo.is-moving .deck-block {
  stroke: #17675f;
  stroke-width: 3;
  fill: #d1e4df;
}
.deck-help {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  padding-top: .6rem;
  font-size: .8rem;
  line-height: 1.4;
  color: #52606a;
}
.deck-distance {
  margin-left: auto;
  color: #265c54;
  font-variant-numeric: tabular-nums;
}
.deck-distance:empty { display: none; }
.deck-key {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.deck-key svg { width: 13px; height: 13px; }
.deck-help:has(.deck-distance:not(:empty)) .deck-key { display: none; }
.deck-empty {
  padding: 2rem 1rem;
  color: #52606a;
  text-align: center;
  background: #f7f8f9;
  border: 1px solid #dce1e4;
}
@media (pointer: coarse) {
  .deck-key-tip { display: none; }
}
@media (max-width: 620px) {
  .deck-board:not(.zoomed) .deck-hit { y: -80px; height: 110px; }
  .deck-board:not(.zoomed) .deck-ruler { font-size: 26px; }
  .deck-board:not(.zoomed) .deck-ruler-title { font-size: 22px; }
  .deck-board:not(.zoomed) .deck-ruler-intermediate,
  .deck-board:not(.zoomed) .deck-cargo-label,
  .deck-board:not(.zoomed) .deck-cargo-weight { display: none; }
  .deck-board:not(.zoomed) .deck-mobile-label {
    display: block;
    font-size: 26px;
  }
  .deck-board:not(.zoomed) .deck-block { stroke-width: 2; }
}
