:root {
  --ink: #1d241e;
  --muted: #777c72;
  --line: #dcded5;
  --paper: #f3f2ed;
  --lime: #d2f94b;
  --color: #c8ff3d;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #839732;
  outline-offset: 4px;
}
button {
  border: 0;
}
svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  flex-shrink: 0;
}
.symbol-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.topbar {
  height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -1.3px;
  font-size: 24px;
  white-space: nowrap;
}
.brand-light {
  font-weight: 400;
  margin-left: 4px;
}
.brand-mark {
  font-size: 23px;
  letter-spacing: -6px;
  background: var(--lime);
  height: 37px;
  width: 39px;
  display: grid;
  place-items: center;
  padding-right: 5px;
  transform: rotate(-6deg);
}
.beta {
  font: 9px monospace;
  letter-spacing: 0.5px;
  border: 1px solid #b8bcb0;
  padding: 4px 5px;
  margin-left: 3px;
  align-self: flex-start;
  margin-top: 0;
}
.topbar nav {
  align-self: stretch;
  display: flex;
  gap: 30px;
  align-items: stretch;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  white-space: nowrap;
  color: var(--muted);
  padding: 0 3px;
}
.nav-link.selected {
  color: var(--ink);
}
.nav-link.selected:after {
  content: "";
  position: absolute;
  height: 3px;
  background: var(--ink);
  bottom: 0;
  left: 0;
  right: 0;
}
.nav-link svg {
  width: 15px;
}
.nav-link #gallery-count {
  font: 10px monospace;
  border: 1px solid var(--line);
  padding: 2px 5px;
  border-radius: 4px;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #8eab48;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.button {
  height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  transition:
    background 0.2s,
    transform 0.2s;
  white-space: nowrap;
}
.button:hover {
  filter: brightness(0.95);
}
.button:active {
  transform: translateY(1px);
}
.outline {
  border: 1px solid #cdd1c5;
  background: transparent;
}
.dark {
  background: var(--ink);
  color: #fff;
}
.lime {
  background: var(--lime);
  color: var(--ink);
}
.icon-button {
  height: 36px;
  width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: none;
  font-size: 18px;
  position: relative;
}
.icon-button:hover {
  background: #dde0d4;
}
.top-actions > #help {
  width: 25px;
  height: 25px;
  font: 14px monospace;
  border: 1px solid #b9beb0;
  border-radius: 50%;
  margin-right: 7px;
}
.workspace {
  height: calc(100dvh - 126px);
  display: grid;
  grid-template-columns: 249px 1fr;
  padding: 18px 18px 18px 0;
  min-height: 0;
}
.toolbox {
  padding: 15px 23px 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.toolbox-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 25px;
}
.toolbox-title h1 {
  font-size: 15px;
  letter-spacing: -0.3px;
  margin: 0;
  font-weight: 600;
}
.toolbox-title > span {
  margin-left: auto;
  font: 10px monospace;
  color: var(--muted);
}
.toolbox section {
  padding-bottom: 25px;
}
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.section-label h2 {
  font: 10px monospace;
  letter-spacing: 1.1px;
  margin: 0;
  font-weight: 600;
}
.section-label > span {
  font: 9px monospace;
  color: var(--muted);
}
.swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
}
.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid #0000000d;
  position: relative;
}
.swatch.selected:after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1.4px solid var(--ink);
  border-radius: 50%;
}
.swatch.selected:before {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--check);
  font-size: 12px;
}
.custom-color {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #656c61;
  cursor: pointer;
  margin-top: 17px;
}
.plus {
  border: 1px solid #bdc3b6;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}
.custom-color input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  inset: 0;
}
.caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.caps button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  background: transparent;
  border: 1px solid #d4d8cc;
  border-radius: 5px;
  padding: 12px 0 9px;
  font-size: 10px;
  color: #6d7367;
}
.caps button.active {
  border-color: var(--ink);
  color: var(--ink);
  background: #e7eadd;
}
.cap-dot {
  width: 18px;
  height: 18px;
  display: block;
  position: relative;
}
.cap-dot:after {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 50%;
  inset: 5px;
}
.cap-dot.soft:after {
  inset: 3px;
  filter: blur(2px);
}
.cap-dot.fat:after {
  inset: 1px;
}
.sliders label {
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sliders output {
  font: 10px monospace;
  color: var(--muted);
}
input[type="range"] {
  width: 100%;
  height: 3px;
  accent-color: var(--ink);
  margin: 17px 0 24px;
  display: block;
  cursor: pointer;
}
input[type="range"]:last-child {
  margin-bottom: 0;
}
.sample {
  height: 111px;
  border: 1px solid var(--line);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.sample-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#b7bbaa 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0.5;
}
#brush-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 53px;
  height: 53px;
  background: radial-gradient(
    circle,
    var(--color) 0%,
    var(--color) 20%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
}
.sample > span {
  position: absolute;
  bottom: 9px;
  left: 10px;
  font: 7px monospace;
  letter-spacing: 1px;
  color: #929987;
}
.sample .sample-corner {
  left: auto;
  right: 10px;
  font-size: 14px;
}
.history {
  display: flex;
  gap: 7px;
  margin-top: 15px;
}
.history .button {
  flex: 1;
  height: 33px;
  font-size: 10px;
  padding: 0 9px;
}
.history .icon-button {
  width: 32px;
  height: 33px;
}
.history svg {
  width: 14px;
  height: 14px;
}
.toolbox-footer {
  margin-top: auto;
  padding: 28px 0 5px;
  color: #848b7a;
}
.edition {
  font: 8px monospace;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.toolbox-footer > div:last-child {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
.viewport {
  position: relative;
  overflow: hidden;
  border: 1px solid #c6cdb9;
  border-radius: 7px;
  background: #c5ccba;
  isolation: isolate;
}
#scene,
#scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
#scene {
  position: absolute;
  inset: 0;
}
#scene canvas {
  cursor: crosshair;
}
.scene-header {
  position: absolute;
  inset: 26px 27px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.location {
  display: flex;
  gap: 12px;
  align-items: center;
}
.location-pin {
  width: 11px;
  height: 11px;
  border: 2px solid #263627;
  border-radius: 50%;
  position: relative;
}
.location-pin:after {
  content: "";
  width: 3px;
  height: 3px;
  position: absolute;
  background: #263627;
  left: 2px;
  top: 2px;
  border-radius: 50%;
}
.eyebrow {
  font: 9px monospace;
  letter-spacing: 1.3px;
}
.location h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin: 5px 0 0;
}
.scene-badge {
  background: #f2f3e3b3;
  backdrop-filter: blur(10px);
  border: 1px solid #f7f8ef80;
  border-radius: 3px;
  padding: 9px 11px;
  font: 9px monospace;
  letter-spacing: 0.7px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.scene-badge > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6d7c59;
}
.canvas-tools {
  position: absolute;
  top: 108px;
  right: 25px;
  display: flex;
  gap: 7px;
}
.glass {
  background: #f5f6e5c9;
  border: 1px solid #ffffff80;
  backdrop-filter: blur(9px);
}
.glass:hover {
  background: #f7f8eb;
}
.glass kbd {
  border: 1px solid #bfc5b1;
  background: none;
}
.canvas-tools .button {
  height: 36px;
  font-size: 10px;
}
.canvas-tools svg {
  width: 16px;
}
.sound-off {
  position: absolute;
  width: 18px;
  height: 1px;
  background: #637254;
  transform: rotate(-50deg);
  top: 17px;
}
.canvas-footer {
  position: absolute;
  inset: auto 25px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.model-label,
.camera-label {
  font: 9px monospace;
  letter-spacing: 1px;
  color: #263623;
  background: #f3f4e6ba;
  padding: 7px 10px;
  border-radius: 3px;
  backdrop-filter: blur(5px);
}
.model-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.model-label > span {
  font-size: 8px;
  border: 1px solid #929d81;
  padding: 3px;
}
.model-label i {
  width: 25px;
  height: 1px;
  background: #737f65;
  display: inline-block;
}
.scene-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' opacity='.5' d='M0 0h150v150H0z'/%3E%3C/svg%3E");
}
.statusbar {
  height: 43px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font: 9px monospace;
  color: #777f6c;
  gap: 12px;
}
.status-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 185px;
}
.key-hints {
  display: flex;
  gap: 19px;
  font:
    9px Arial,
    sans-serif;
}
.key-hints > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
kbd {
  font: 8px monospace;
  border: 1px solid #cdd2c3;
  border-radius: 3px;
  padding: 3px 5px;
  box-shadow: 0 1px 0 #d4d7cc;
  background: #eeefe6;
  color: #5f6856;
}
#stroke-count {
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.loading {
  position: absolute;
  inset: 0;
  background: #d4dac9ee;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.loading h2 {
  letter-spacing: -1px;
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 0;
}
.loading p {
  font-size: 12px;
  color: #66735b;
}
.load-mark {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -10px;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  padding-right: 12px;
  background: var(--lime);
  transform: rotate(-7deg);
}
.load-track {
  height: 3px;
  width: 180px;
  background: #b6c2a4;
  margin-top: 15px;
  overflow: hidden;
}
.load-track > div {
  height: 100%;
  width: 8%;
  background: #3f5132;
  transition: width 0.3s;
}
.welcome {
  position: absolute;
  left: 25px;
  bottom: 70px;
  width: 280px;
  padding: 25px;
  background: #f4f4e9ed;
  backdrop-filter: blur(18px);
  border: 1px solid #fff9;
  border-radius: 6px;
  z-index: 3;
  box-shadow: 0 8px 40px #29372012;
}
.welcome h2 {
  font-size: 33px;
  line-height: 0.99;
  letter-spacing: -1.4px;
  font-weight: 600;
  margin: 18px 0;
}
.welcome h2 > span {
  color: #79982b;
}
.welcome p {
  font-size: 10px;
  line-height: 1.7;
  color: #737c65;
  margin: 0 0 20px;
}
.welcome .button {
  width: 100%;
  justify-content: space-between;
  font-size: 11px;
}
.welcome-close {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 20px;
  width: 27px;
  height: 27px;
}
.welcome .eyebrow {
  font-size: 8px;
  letter-spacing: 0.7px;
}
#brush-cursor {
  position: absolute;
  pointer-events: none;
  border: 1px solid #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px #28342380;
  z-index: 2;
}
#crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 1px solid #ffffffe0;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #0004;
}
#crosshair i {
  position: absolute;
  width: 3px;
  height: 3px;
  left: 9px;
  top: 9px;
  background: #fff;
  border-radius: 50%;
}
.walk-hint {
  position: absolute;
  top: 100px;
  left: 25px;
  right: 200px;
  font: 10px monospace;
  background: #f4f4e9dd;
  padding: 10px;
  border-radius: 3px;
}
.toast {
  position: fixed;
  bottom: 65px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 20px;
  background: #1d241ef2;
  color: white;
  border-radius: 5px;
  font-size: 12px;
  z-index: 30;
  box-shadow: 0 3px 15px #0002;
}
dialog {
  border: 1px solid #d0d5c5;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  padding: 25px;
  max-width: 650px;
  width: calc(100% - 40px);
  max-height: 85dvh;
  box-shadow: 0 25px 70px #0003;
}
dialog::backdrop {
  background: #1c281d66;
  backdrop-filter: blur(6px);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
  margin-bottom: 20px;
}
.modal-header h2 {
  font-size: 23px;
  letter-spacing: -0.8px;
  font-weight: 500;
  margin: 0;
}
#modal-body {
  font-size: 13px;
  line-height: 1.7;
}
#modal-body p {
  color: #65705c;
}
.help-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.help-list > div {
  padding: 13px;
  background: #e8ebdf;
  border-radius: 4px;
  font-size: 11px;
}
.help-list kbd {
  margin-right: 8px;
}
.note {
  font-size: 11px;
  padding: 12px;
  border-left: 2px solid #9dad7f;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.piece {
  border: 1px solid #ccd2c1;
  border-radius: 5px;
  overflow: hidden;
  background: #e9ecdf;
}
.piece img {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  display: block;
}
.piece-info {
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.piece-info strong {
  font-size: 12px;
}
.piece-info small {
  display: block;
  font: 9px monospace;
  color: #758069;
}
.piece-info button {
  font-size: 10px;
  padding: 0 10px;
  height: 30px;
}
.empty-gallery {
  padding: 40px 10px;
  text-align: center;
}
.empty-gallery .big-arrow {
  font-size: 50px;
  color: #8ca559;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
[hidden] {
  display: none !important;
}
body.walking .canvas-tools {
  opacity: 0.5;
}
body.walking .toolbox {
  opacity: 0.75;
}
body.walking #scene canvas {
  cursor: none;
}
.danger {
  color: #8a3c2d;
}
.mobile-hint {
  display: none;
}
@media (min-height: 850px) {
  .toolbox-title {
    margin-bottom: 32px;
  }
  .toolbox section {
    padding-bottom: 30px;
  }
  .sample {
    height: 135px;
  }
}
@media (max-width: 1100px) {
  .topbar {
    padding: 0 20px;
    gap: 15px;
  }
  .topbar nav {
    gap: 15px;
  }
  .beta {
    display: none;
  }
  .workspace {
    grid-template-columns: 220px 1fr;
  }
  .toolbox {
    padding: 15px 18px 0;
  }
  .swatches {
    gap: 7px;
  }
  .swatch {
    width: 24px;
    height: 24px;
  }
  .statusbar {
    padding: 0 18px;
  }
  .key-hints {
    gap: 10px;
  }
  .key-hints > span:last-child {
    display: none;
  }
  .brand {
    font-size: 21px;
  }
  .top-actions .button {
    padding: 0 12px;
  }
  .welcome {
    width: 245px;
    padding: 20px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 65px;
    padding: 0 12px;
  }
  .brand {
    font-size: 18px;
    gap: 7px;
  }
  .brand-mark {
    width: 29px;
    height: 29px;
    font-size: 19px;
  }
  .topbar nav {
    margin-left: auto;
  }
  .nav-link {
    font-size: 10px;
  }
  .nav-link.selected {
    display: none;
  }
  .nav-link svg {
    display: none;
  }
  .top-actions {
    gap: 5px;
  }
  .top-actions > #help {
    display: none;
  }
  .top-actions .button {
    width: 32px;
    height: 32px;
    padding: 0;
  }
  .top-actions .button span {
    display: none;
  }
  .workspace {
    height: calc(100dvh - 100px);
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 8px;
    gap: 8px;
  }
  .viewport {
    grid-row: 1;
  }
  .toolbox {
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr 120px;
    padding: 8px;
    gap: 12px;
    max-height: 164px;
    overflow: auto;
  }
  .toolbox-title,
  .toolbox-footer,
  .sample,
  .toolbox .custom-color,
  .toolbox .section-label,
  .sliders,
  .history {
    display: none;
  }
  .toolbox section {
    padding: 0;
  }
  .swatches {
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-width: 230px;
  }
  .swatch {
    width: 24px;
    height: 24px;
  }
  .caps {
    gap: 4px;
  }
  .caps button {
    padding: 9px 0 7px;
    font-size: 9px;
  }
  .caps .cap-dot {
    width: 14px;
    height: 14px;
  }
  .statusbar {
    height: 35px;
    padding: 0 13px;
    font-size: 8px;
  }
  .status-left {
    min-width: 0;
  }
  .key-hints {
    display: none;
  }
  .scene-header {
    inset: 18px 15px auto;
  }
  .scene-header .location h2 {
    font-size: 16px;
  }
  .scene-badge {
    font-size: 7px;
    padding: 7px;
  }
  .eyebrow {
    font-size: 7px;
  }
  .canvas-tools {
    top: 80px;
    right: 12px;
  }
  .canvas-tools #walk {
    display: none;
  }
  .canvas-tools .icon-button {
    width: 30px;
    height: 30px;
  }
  .canvas-footer {
    inset: auto 12px 14px;
  }
  .model-label,
  .camera-label {
    font-size: 7px;
    padding: 5px;
  }
  .model-label {
    gap: 5px;
  }
  .model-label i {
    display: none;
  }
  .welcome {
    left: 12px;
    bottom: 55px;
    width: 225px;
    padding: 18px;
  }
  .welcome h2 {
    font-size: 29px;
  }
  .welcome p {
    font-size: 10px;
  }
  .help-list {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .toast {
    bottom: 190px;
    max-width: 90vw;
    width: max-content;
    font-size: 11px;
  }
  .walk-hint {
    left: 12px;
    right: 12px;
    top: 122px;
  }
}
@media (max-height: 690px) and (min-width: 761px) {
  .toolbox-title {
    margin-bottom: 17px;
  }
  .toolbox section {
    padding-bottom: 16px;
  }
  .sample {
    height: 75px;
  }
  .toolbox-footer {
    padding-top: 15px;
  }
  .sliders input {
    margin: 12px 0 17px;
  }
}
/* Mission controls */
.workspace {
  grid-template-columns: 270px minmax(0, 1fr);
}
.toolbox {
  padding: 10px 20px 8px;
  scrollbar-width: thin;
  scrollbar-color: #a9b09d transparent;
}
.toolbox-title {
  margin-bottom: 19px;
}
.toolbox section {
  padding-bottom: 18px;
}
.section-label {
  margin-bottom: 9px;
}
.toolbox select,
.welcome select,
#color-search {
  width: 100%;
  font:
    12px Arial,
    sans-serif;
  color: var(--ink);
  border: 1px solid #c7cdbc;
  background: #f9f9f3;
  border-radius: 4px;
  padding: 9px;
  min-height: 35px;
}
.toolbox select,
.welcome select {
  font-weight: 600;
  cursor: pointer;
}
.range-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.range-facts span {
  font: 9px monospace;
  padding: 4px 6px;
  background: #e7eadd;
  border-radius: 3px;
}
.range-facts span:first-child {
  border-left: 2px solid #879b60;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 6px 4px;
  max-height: 145px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 4px;
  margin-top: 5px;
  scrollbar-width: thin;
  scrollbar-color: #a5ad97 transparent;
}
.swatch {
  width: 22px;
  height: 22px;
  flex: none;
}
.swatch.selected:after {
  inset: -3px;
}
.selected-color {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}
.selected-color i {
  width: 21px;
  height: 27px;
  border: 1px solid #c3c8bb;
  border-radius: 3px;
}
.selected-color strong,
.selected-color span {
  display: block;
}
.selected-color strong {
  font-size: 11px;
  font-weight: 600;
}
.selected-color span {
  font: 9px monospace;
  color: #737b6c;
}
.selected-color #color-hex {
  margin-left: auto;
}
.source-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 3px;
}
.source-line a,
.source-line span,
#cap-detail,
#no-colors {
  font-size: 10px;
  line-height: 1.4;
  color: #64705b;
}
.source-line a {
  color: #38452f;
  text-decoration-thickness: 1px;
}
.caps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.caps button {
  display: grid;
  grid-template-columns: 23px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 5px;
  text-align: left;
  min-height: 40px;
  padding: 5px 6px;
}
.caps strong {
  font-size: 10px;
  white-space: nowrap;
}
.caps small {
  font-size: 8px;
}
.cap-drawing {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 22px;
  height: 20px;
  background: var(--cap-color);
  border: 1px solid #7c8377;
  border-radius: 7px 7px 4px 4px;
  box-shadow: inset 0 -3px 3px #0002;
}
.cap-drawing i {
  width: var(--cap-size);
  height: var(--cap-size);
  max-width: 14px;
  max-height: 14px;
  display: block;
  background: #31352f;
  border: 2px solid #e3e5dd;
  border-radius: 50%;
}
#cap-detail {
  margin: 7px 0 0;
}
.sample {
  height: 70px;
  min-height: 55px;
}
.version-label,
.footer-detail {
  font: 9px monospace;
  letter-spacing: 0.8px;
}
.version-label b {
  margin-left: 5px;
  color: #4b5542;
}
.mission-hud {
  position: absolute;
  top: 78px;
  left: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.mission-hud > span,
.coach-nav {
  background: #f6f7eddf;
  border: 1px solid #f6f7ecaa;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}
#mission-phase,
.mission-clock {
  font: 10px monospace;
  padding: 6px 8px;
  color: #3d4935;
}
.mission-clock {
  display: flex;
  align-items: center;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}
.mission-clock > span {
  font-size: 13px;
  line-height: 10px;
}
#mission-phase[data-phase="painting"] {
  background: #d2f94bed;
}
.canvas-tools {
  top: 76px;
}
.welcome {
  width: 282px;
}
.welcome label {
  font: 9px monospace;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}
.welcome h2 {
  margin: 12px 0 10px;
}
.welcome p {
  margin-bottom: 13px;
  color: #535d4c;
  line-height: 1.45;
  font-size: 12px;
}
.welcome #fleet-detail {
  font: 9px monospace;
  letter-spacing: 0.3px;
  margin: 6px 0 12px;
}
.coach-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
  padding: 4px;
  max-width: 80%;
  overflow-x: auto;
}
.coach-nav > span {
  font: 8px monospace;
  letter-spacing: 0.5px;
  padding: 0 4px;
}
.coach-nav > div {
  display: flex;
  gap: 3px;
}
.coach-nav button {
  background: none;
  font: 10px monospace;
  border-radius: 3px;
  padding: 6px 7px;
}
.coach-nav button.active {
  background: #263423;
  color: white;
}
#photo-flash {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background: white;
  animation: flash-out 0.3s forwards;
}
@keyframes flash-out {
  to {
    opacity: 0;
  }
}
.scene-grain {
  z-index: 0;
}
.canvas-footer .camera-label {
  margin-left: auto;
}
.key-hints {
  font-size: 10px;
}
@media (max-width: 900px) and (min-width: 761px) {
  .workspace {
    grid-template-columns: 242px minmax(0, 1fr);
  }
  .toolbox {
    padding: 10px 14px;
  }
  .canvas-tools {
    top: 112px;
  }
  .welcome {
    width: 248px;
  }
}
@media (max-width: 760px) {
  .topbar {
    gap: 8px;
  }
  .topbar .top-actions .button {
    width: auto;
    padding: 0 9px;
    font-size: 10px;
    min-width: 32px;
  }
  .topbar .top-actions #photo span {
    display: none;
  }
  .topbar nav {
    gap: 5px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .toolbox {
    grid-template-columns: minmax(0, 1fr) minmax(115px, 0.9fr);
    grid-template-rows: auto 1fr;
    max-height: 208px;
    gap: 6px 10px;
    padding: 0 4px;
  }
  .toolbox .range-section {
    grid-column: 1;
    grid-row: 1;
  }
  .toolbox .color-section {
    grid-column: 1;
    grid-row: 2;
  }
  .toolbox .cap-section {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .toolbox section {
    padding: 0;
  }
  .toolbox .cap-section .section-label {
    display: flex;
    margin: 3px 0 5px;
  }
  .range-facts {
    margin-top: 3px;
  }
  .range-facts span {
    font-size: 8px;
    padding: 2px 4px;
  }
  #color-search,
  .toolbox select {
    min-height: 26px;
    height: 26px;
    font-size: 10px;
    padding: 3px 5px;
  }
  .swatches {
    grid-template-columns: repeat(6, 1fr);
    max-height: 57px;
    gap: 5px 1px;
    margin-top: 1px;
  }
  .swatch {
    width: 17px;
    height: 17px;
  }
  .selected-color {
    margin-top: 1px;
  }
  .selected-color strong {
    font-size: 10px;
  }
  .selected-color i {
    width: 14px;
    height: 18px;
  }
  .source-line {
    margin: 0;
  }
  .source-line a,
  .source-line span,
  #cap-detail {
    font-size: 8px;
  }
  .caps {
    grid-template-columns: repeat(2, 1fr);
  }
  .caps button {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3px;
    min-height: 34px;
    padding: 4px 2px;
  }
  .caps strong {
    font-size: 9px;
  }
  .caps small {
    display: none;
  }
  .cap-drawing {
    width: 18px;
    height: 14px;
  }
  .mission-hud {
    top: 55px;
    left: 14px;
  }
  .canvas-tools {
    top: 54px;
    right: 10px;
  }
  .mission-hud > span {
    font-size: 8px;
    padding: 5px;
  }
  .welcome {
    left: 12px;
    bottom: 42px;
    width: 236px;
    max-width: calc(100% - 24px);
    padding: 13px;
  }
  .welcome h2 {
    font-size: 24px;
    margin: 7px 0;
  }
  .welcome p {
    font-size: 10px;
    margin: 0 0 8px;
  }
  .welcome select {
    min-height: 29px;
    padding: 5px;
  }
  .welcome #fleet-detail {
    margin: 3px 0 7px;
  }
  .welcome .button {
    height: 30px;
  }
  .statusbar {
    height: 28px;
  }
  .workspace {
    height: calc(100dvh - 93px);
  }
  .coach-nav {
    gap: 2px;
    max-width: 80%;
  }
  .coach-nav button {
    padding: 5px;
  }
  .canvas-footer {
    inset: auto 10px 8px;
  }
  .statusbar .footer-detail {
    font-size: 8px;
  }
  .canvas-footer .camera-label {
    font-size: 6px;
  }
}
@media (max-height: 580px) {
  .workspace {
    min-height: 410px;
  }
  .toolbox {
    max-height: 145px;
  }
  body {
    overflow-y: auto;
  }
  .sample {
    display: none;
  }
}

.abort-button {
  background: #b6302f;
  color: #fff;
  border: 1px solid #a52928;
}
.abort-button:hover:not(:disabled) {
  background: #962624;
}
@media (max-width: 760px) {
  .topbar .top-actions #abort-mission {
    white-space: normal;
    max-width: 75px;
    line-height: 1.15;
  }
}
@media (max-width: 520px) {
  .topbar .brand-light,
  .topbar .brand-mark {
    display: none;
  }
  .topbar .brand {
    font-size: 17px;
  }
}

.brand {
  font-size: 23px;
  letter-spacing: -1px;
}
@media (max-width: 760px) {
  .topbar .brand {
    font-size: 18px;
  }
}
@media (max-width: 520px) {
  .topbar .brand {
    font-size: 13px;
    letter-spacing: -0.6px;
  }
}
/* Full-viewport yard with a preparation shop and a compact mission bag. */
:root {
  --paper: #111511;
  --ink: #e8ecdf;
  --muted: #9da795;
  --line: #394232;
  color-scheme: dark;
  background: #111511;
  color: #e8ecdf;
}
body {
  background: #111511;
}
.workspace {
  position: fixed;
  inset: 0;
  height: 100dvh;
  display: block;
  padding: 0;
  min-height: 0;
}
.viewport {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
}
.topbar {
  position: fixed;
  inset: 0 0 auto;
  height: 64px;
  border: 0;
  padding: 0 20px;
  z-index: 12;
  background: linear-gradient(#0a100ff2, #0a100f80, transparent);
  gap: 12px;
}
.brand {
  color: #edf3e4;
  font-size: 20px;
}
.brand-mark,
.beta,
.topbar .nav-link.selected,
.statusbar {
  display: none;
}
.topbar nav {
  margin-left: auto;
}
.nav-link,
.nav-link.selected {
  color: #e3ebd8;
}
.button,
.icon-button {
  color: #e8ecdf;
}
.outline,
.glass {
  background: #172017d9;
  border: 1px solid #53614a;
}
.dark,
.lime {
  background: #c6ec53;
  color: #172010;
}
.abort-button {
  background: #a92e2e;
  color: #fff;
  border-color: #b83b3b;
}
.icon-button:hover {
  background: #33402e;
}
.top-actions #help {
  color: #e3ebd8;
}
.toolbox {
  position: absolute;
  top: 80px;
  bottom: 22px;
  left: 20px;
  width: 360px;
  padding: 20px;
  display: block;
  max-height: none;
  background: #101811f2;
  border: 1px solid #3c4b35;
  border-radius: 12px;
  backdrop-filter: blur(14px);
  z-index: 8;
  overflow: auto;
}
.toolbox-title {
  margin-bottom: 18px;
}
.toolbox-title h1 {
  font-size: 23px;
}
.toolbox-title > span,
.toolbox-title svg {
  display: none;
}
.toolbox section {
  padding-bottom: 18px;
}
.toolbox .sample,
.toolbox .cap-section,
.selected-color,
.source-line {
  display: none;
}
.kit-section h2 {
  font: 10px monospace;
  letter-spacing: 1px;
  color: #bdd48d;
}
.kit-section p,
#kit-count {
  font-size: 11px;
  line-height: 1.5;
  color: #a2b096;
}
.kit-section label {
  font-size: 11px;
  display: block;
  margin-bottom: 5px;
}
.kit-section .button {
  margin-top: 8px;
  width: 100%;
  height: 31px;
}
.toolbox select,
.welcome select,
#color-search,
#mission-cap {
  background: #202b1d;
  color: #e4ecd8;
  border: 1px solid #4a5a40;
  border-radius: 6px;
  min-height: 36px;
  padding: 8px;
}
.range-facts span {
  background: #2d3926;
  color: #c2cfb4;
}
.swatches {
  grid-template-columns: repeat(8, 1fr);
  max-height: 180px;
  gap: 8px;
  padding: 8px;
}
.swatch {
  width: 25px;
  height: 25px;
}
.swatch.selected:after {
  border-color: #d0ee89;
  border-width: 2px;
}
.can-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.can-button {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  background: #202a1d;
  border: 1px solid #49543f;
  border-radius: 6px;
  width: 67px;
  min-height: 94px;
  padding: 49px 4px 5px;
  color: #dce7ce;
  flex-shrink: 0;
}
.can-button:before {
  content: "";
  position: absolute;
  top: 13px;
  left: 22px;
  width: 23px;
  height: 32px;
  border-radius: 4px 4px 3px 3px;
  background: var(--can-color);
  box-shadow:
    inset 0 -5px #0003,
    inset 0 4px #ffffff80;
}
.can-button:after {
  content: "";
  position: absolute;
  top: 9px;
  left: 27px;
  width: 13px;
  height: 6px;
  background: #c2c9bb;
  border-radius: 3px 3px 0 0;
}
.can-button span {
  font-size: 9px;
  text-align: center;
  line-height: 1.2;
}
.can-button small {
  font-size: 7px;
  color: #9ca98f;
  margin-top: 3px;
}
.can-button[aria-pressed="true"] {
  border-color: #c3e974;
  background: #34442a;
}
.welcome {
  left: auto;
  right: 28px;
  bottom: 28px;
  width: 300px;
  background: #101811ed;
  color: #e6ecde;
  border-color: #46573a;
  border-radius: 12px;
}
.welcome p {
  color: #abbc9c;
}
.welcome .eyebrow {
  color: #bbcf99;
}
.welcome h2 {
  font-size: 30px;
}
.scene-header {
  top: 84px;
  left: 408px;
  right: 26px;
  color: #e7edde;
}
.scene-badge {
  background: #121c13d9;
  color: #cedcc0;
  border-color: #4b5a40;
}
.location-pin {
  border-color: #d2dfbf;
}
.location-pin:after {
  background: #d2dfbf;
}
.mission-hud {
  top: 140px;
  left: 408px;
}
.mission-hud > span {
  background: #111b12d9;
  color: #cfdcc3;
  border: 1px solid #495a3e;
}
.mission-hud #mission-phase[data-phase="painting"] {
  background: #a8c759;
  color: #142011;
}
.canvas-tools {
  top: 140px;
}
.canvas-footer {
  bottom: 24px;
  left: 408px;
  right: 28px;
}
.camera-label,
.coach-nav {
  background: #101a11d9;
  color: #d6e2cc;
  border-color: #45563b;
}
.coach-nav button {
  color: #d6e2cc;
}
.coach-nav button.active {
  background: #b0cf65;
  color: #13210e;
}
.toast {
  background: #1b2819;
  color: #e6efdf;
  border: 1px solid #547140;
  bottom: 155px;
}
dialog {
  background: #151d13;
  color: #e2ecd9;
  border-color: #45573b;
}
#modal-body p {
  color: #b3c1a8;
}
.help-list > div,
.piece {
  background: #263021;
}
.loading {
  background: #111a13ee;
  color: #e3ecda;
}
.loading p {
  color: #afbd9f;
}
.load-mark {
  color: #15200e;
}
#mission-tools {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(740px, calc(100% - 40px));
  padding: 12px 14px;
  background: #101811eb;
  border: 1px solid #3e5233;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  z-index: 5;
}
.bag-heading {
  font: 9px monospace;
  color: #bbcd9f;
  letter-spacing: 1px;
}
.bag-heading span {
  margin-left: 6px;
}
#mission-kit {
  flex-wrap: nowrap;
  overflow: auto;
  max-width: 100%;
  padding-bottom: 5px;
  margin: 5px 0;
}
#mission-tools > label {
  font-size: 10px;
  margin-right: 8px;
}
#mission-cap {
  padding: 4px;
  font-size: 11px;
  min-height: 27px;
}
.in-mission .toolbox {
  display: none;
}
.in-mission .scene-header {
  left: 26px;
}
.in-mission .mission-hud {
  left: 26px;
}
.in-mission .canvas-footer {
  left: 26px;
  bottom: 185px;
}
.in-mission .welcome {
  display: none;
}
.in-mission .can-button {
  min-height: 78px;
  padding-top: 44px;
}
.in-mission .can-button:before {
  top: 11px;
  height: 28px;
}
.in-mission .can-button:after {
  top: 7px;
}
.in-mission #start-mission {
  display: none;
}
@media (max-width: 760px) {
  .workspace {
    height: 100dvh;
    grid-template-rows: none;
  }
  .topbar {
    height: 58px;
    padding: 0 10px;
    gap: 6px;
  }
  .topbar .brand {
    font-size: 16px;
    letter-spacing: -0.5px;
  }
  .topbar nav {
    display: none;
  }
  .top-actions {
    margin-left: auto;
  }
  .topbar .top-actions #start-mission {
    display: none;
  }
  .topbar .top-actions #fullscreen {
    width: 28px;
  }
  .toolbox {
    top: 70px;
    left: 12px;
    right: 12px;
    bottom: 195px;
    width: auto;
    display: block;
    padding: 14px;
    max-height: none;
  }
  .toolbox-title {
    display: flex;
    margin: 0 0 10px;
  }
  .toolbox-title h1 {
    font-size: 20px;
  }
  .toolbox .section-label {
    display: flex;
  }
  .toolbox .kit-section {
    padding-bottom: 12px;
  }
  .toolbox .swatches {
    grid-template-columns: repeat(8, 1fr);
    max-width: none;
    max-height: 150px;
    gap: 7px;
  }
  .swatch {
    width: 24px;
    height: 24px;
  }
  .can-button {
    width: 61px;
    min-height: 80px;
    padding-top: 44px;
  }
  .can-button:before {
    left: 19px;
  }
  .can-button:after {
    left: 24px;
  }
  .toolbox .range-section,
  .toolbox .color-section {
    display: block;
  }
  .welcome {
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    padding: 12px;
  }
  .welcome .eyebrow,
  .welcome h2,
  .welcome > p:not(#fleet-detail) {
    display: none;
  }
  .welcome select {
    height: 31px;
    min-height: 31px;
  }
  .welcome #fleet-detail {
    font-size: 9px;
    margin: 4px 0 8px;
  }
  .welcome .button {
    height: 35px;
  }
  .scene-header {
    top: 70px;
    left: 14px;
  }
  .scene-header .location {
    display: none;
  }
  .scene-badge {
    margin-left: auto;
  }
  .mission-hud {
    left: 14px;
    top: 106px;
  }
  .canvas-tools {
    right: 14px;
    top: 106px;
  }
  .in-mission .scene-header,
  .in-mission .mission-hud {
    left: 14px;
  }
  .canvas-footer {
    left: 14px;
  }
  .in-mission .canvas-footer {
    left: 14px;
    bottom: 163px;
  }
  .in-mission #mission-tools {
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 9px 10px;
    width: max-content;
  }
  .in-mission .can-button {
    width: 55px;
    min-height: 72px;
  }
  .in-mission .can-button:before {
    left: 15px;
  }
  .in-mission .can-button:after {
    left: 20px;
  }
  .in-mission .can-button span {
    font-size: 8px;
  }
  .in-mission .can-button small {
    font-size: 6px;
  }
  .toast {
    bottom: 160px;
    max-width: 90vw;
  }
  .in-mission .topbar .brand {
    font-size: 14px;
  }
}
body:not(.in-mission) #photo, body:not(.in-mission) #abort-mission { display:none; }
#scene-select { margin-bottom:10px; }
.station #walk { display:none; }
@media(max-width:760px) { .toolbox { bottom:250px; } .welcome label { margin-bottom:3px; } #scene-select {margin-bottom:7px;} }

.welcome #scene-progress {display:block;font-size:10px;line-height:1.4;color:#b8d78c;margin:4px 0 10px;}

/* Compact color-only tiles and directly selectable spray caps. */
.can-list .can-button, .in-mission .can-list .can-button {
  width:44px; height:44px; min-height:44px; padding:0;
  flex:0 0 44px; background:var(--can-color); border:1px solid #ffffff40; border-radius:6px;
}
.can-list .can-button::before, .can-list .can-button::after { content:none; }
.can-list .can-button[aria-pressed="true"] {
  border:2px solid #defa9b; outline:1px solid #defa9b; outline-offset:2px;
  box-shadow:inset 0 0 0 2px #172015;
}
.can-list {padding:4px;}
#mission-kit {padding:5px 4px 7px;}
.mission-caps {display:flex;gap:6px;overflow-x:auto;padding:7px 3px 3px;max-width:100%;}
.mission-cap-button {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;flex:0 0 71px;min-height:62px;padding:7px 4px;background:#202a1d;border:1px solid #49583e;border-radius:6px;color:#c8d6bd;}
.mission-cap-button>span:last-child {font-size:8px;line-height:1.1;white-space:nowrap;}
.mission-cap-button .cap-drawing {width:28px;height:24px;grid-row:auto;}
.mission-cap-button.active {background:#34452b;border-color:#d2f39b;color:#effbdd;}
@media(max-width:760px) {
  .can-list .can-button, .in-mission .can-list .can-button {width:36px;height:36px;min-height:36px;flex-basis:36px;}
  .mission-caps{gap:4px;}
  .mission-cap-button{flex-basis:57px;min-height:56px;padding:5px 2px;}
  .mission-cap-button>span:last-child{font-size:7px;}
  .mission-cap-button .cap-drawing{width:24px;height:20px;}
  .in-mission .canvas-footer {bottom:185px;}
}
