.odd-art {
  --ap-ink: #233e37;
  --ap-paper: #fff9e9;
  --ap-edge: #87978d;
  color: var(--ap-ink);
  padding: clamp(16px, 3.4vw, 32px);
  border: 1px solid #a5ada0;
  border-radius: 18px;
  background: #fcf9f0;
}
.odd-art > h2 {
  margin: 0 0 5px;
  color: var(--ap-ink);
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 1.1;
}
.odd-art > p {
  margin: 0 0 18px;
  max-width: 54ch;
  color: #40564b;
}
.odd-sheet-wrap {
  width: min(100%, 36rem);
  margin-inline: auto;
}
.odd-color-sheet {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: var(--ap-paper);
  color: var(--ap-ink);
  overflow: hidden;
}
.odd-color-sheet [data-piece] {
  fill: var(--piece-color, var(--ap-paper));
  stroke: var(--ap-ink);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  cursor: crosshair;
  outline: none;
  touch-action: manipulation;
}
.odd-color-sheet [data-piece]:focus-visible {
  stroke: #422e75;
  stroke-width: 6;
  stroke-dasharray: 8 3;
}
.odd-color-sheet [data-piece]:hover {
  stroke-width: 4.2;
}
.odd-ink-marks {
  fill: none;
  stroke: #374a41;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
:is(.odd-art, .odd-saved-sheet) [data-paint="moss"] {
  --piece-color: #8eb39b;
}
:is(.odd-art, .odd-saved-sheet) [data-paint="peach"] {
  --piece-color: #f4a27f;
}
:is(.odd-art, .odd-saved-sheet) [data-paint="lilac"] {
  --piece-color: #b7a8dc;
}
:is(.odd-art, .odd-saved-sheet) [data-paint="honey"] {
  --piece-color: #f4d26d;
}
:is(.odd-art, .odd-saved-sheet) [data-paint="pond"] {
  --piece-color: #83c5d3;
}
:is(.odd-art, .odd-saved-sheet) [data-paint="rose"] {
  --piece-color: #df99aa;
}
.odd-saved-sheet {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #fff9e9;
  border-radius: 4px;
  pointer-events: none;
}
.odd-saved-sheet [data-piece] {
  fill: var(--piece-color, #fff9e9);
  stroke: #233e37;
  stroke-width: 3.5;
  stroke-linejoin: round;
}
:is(.odd-art, .odd-saved-sheet) [data-paint="sage"] {
  --piece-color: #adb998;
}
:is(.odd-art, .odd-saved-sheet) [data-paint="clay"] {
  --piece-color: #c88869;
}
:is(.odd-art, .odd-saved-sheet) [data-paint="indigo"] {
  --piece-color: #8e94c4;
}
:is(.odd-art, .odd-saved-sheet) [data-paint="tangerine"] {
  --piece-color: #f0a15e;
}
:is(.odd-art, .odd-saved-sheet) [data-paint="teal"] {
  --piece-color: #67a49a;
}
:is(.odd-art, .odd-saved-sheet) [data-paint="plum"] {
  --piece-color: #b483a6;
}
.odd-palette-list,
.odd-region-controls label {
  width: fit-content;
  max-width: 100%;
  margin: 12px 0;
  font: 650 1rem var(--display);
}
.odd-palette-list select,
.odd-region-controls select {
  display: block;
  min-height: 42px;
  width: 100%;
  max-width: 100%;
  margin-top: 5px;
  background: var(--ap-paper);
  color: var(--ap-ink);
  border: 1px solid var(--ap-edge);
  border-radius: 6px;
  padding: 4px 8px;
}
.odd-region-controls {
  margin: 10px 0;
}
.odd-region-controls summary {
  width: fit-content;
  padding-block: 6px;
  color: var(--ap-ink);
  cursor: pointer;
  font: 650 0.94rem var(--display);
}
.odd-art-actions button[data-art-action="keep"]:enabled {
  background: #28553d;
  color: #fffdf1;
  border-color: #28553d;
}
@media (prefers-reduced-motion: no-preference) {
  .odd-color-sheet [data-piece] {
    transition: fill 160ms ease-out;
  }
}
.odd-palette {
  border: 0;
  padding: 0;
  margin: 20px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.odd-palette legend {
  padding: 0;
  margin: 0 0 6px;
  font-weight: 650;
}
.odd-palette label {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: auto;
  margin: 0;
  padding: 5px 9px 5px 6px;
  min-height: 41px;
  border: 1px solid var(--ap-edge);
  border-radius: 7px;
  background: #fffdf4;
  color: var(--ap-ink);
  cursor: pointer;
  font-size: 0.88rem;
}
.odd-palette label:has(input:checked) {
  border-color: var(--ap-ink);
  box-shadow: inset 0 0 0 1px var(--ap-ink);
}
.odd-palette label:has(input:checked) .odd-swatch::after {
  content: "✓";
  color: #233e37;
  font-weight: 800;
}
.odd-palette input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  clip-path: inset(50%);
  overflow: hidden;
}
.odd-palette label:has(input:focus-visible) {
  outline: 3px solid #724f99;
  outline-offset: 3px;
}
.odd-swatch {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 5px;
  background: var(--piece-color);
  border: 1px solid #546955;
  border-radius: 50%;
}
.odd-art-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}
.odd-art-actions button {
  display: inline-flex;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid #79877b;
  box-shadow: none;
  color: var(--ap-ink);
  background: #fffdf4;
  border-radius: 7px;
  font: 650 0.92rem/1.2 var(--sans, system-ui);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.odd-art-actions button:hover:enabled {
  background: #e5eedf;
}
.odd-art-actions button[data-art-action="keep"]:hover:enabled {
  color: #fffdf1;
  background: #193f2b;
}
.odd-picture-list:not([hidden]) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-block: 12px 0;
  font-weight: 650;
}
.odd-picture-list select {
  max-width: 100%;
  padding: 7px 8px;
  min-height: 42px;
  font: inherit;
  color: var(--ap-ink);
  border: 1px solid var(--ap-edge);
  border-radius: 7px;
  background: var(--ap-paper);
}
.odd-picture-list select:focus-visible,
.odd-art-actions button:focus-visible,
.odd-trail-grid button:focus-visible {
  outline: 3px solid #72538e;
  outline-offset: 2px;
  z-index: 3;
}
.odd-art-actions button:disabled {
  opacity: 0.5;
  cursor: default;
}
.odd-art .odd-art-status {
  margin: 10px 0 0;
  color: #2c4e43;
  font-size: 0.91rem;
  line-height: 1.4;
}
.odd-art-status:empty {
  display: block;
  height: 0;
  margin: 0;
}
.odd-trail-board {
  position: relative;
  width: min(100%, 22rem);
  margin: 0 auto 16px;
  border: 2px solid #566757;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ap-paper);
}
.odd-trail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, 1fr);
  aspect-ratio: 1;
  user-select: none;
  touch-action: none;
}
.odd-trail-grid button,
.odd-trail-grid button:hover {
  display: grid;
  place-items: center;
  min-height: 0;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  border-right: 1px dashed #aebaa8;
  border-bottom: 1px dashed #aebaa8;
  background: var(--ap-paper);
  color: var(--ap-ink);
  font: 750 clamp(1rem, 4vw, 1.35rem)/1 var(--display, system-ui);
  cursor: pointer;
  touch-action: none;
}
.odd-trail-grid button:nth-child(4n) {
  border-right: 0;
}
.odd-trail-grid button:nth-last-child(-n + 4) {
  border-bottom: 0;
}
.odd-trail-grid button[data-visited="true"] {
  background: #e3edcc;
}
.odd-trail-grid button[data-hint="true"] {
  background: #e6def4;
}
.odd-trail-grid button:focus-visible {
  position: relative;
  outline-offset: -4px;
}
.odd-trail-grid span {
  z-index: 2;
  position: relative;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.odd-trail-grid span:not(:empty) {
  border-radius: 50%;
  border: 2px solid #3b5549;
  width: 1.9em;
  height: 1.9em;
  background: #fbe9c4;
}
.odd-trail-grid [data-current="true"] span {
  border-radius: 50%;
  background: #31584d;
  color: #fffaf1;
}
.odd-trail-grid [data-current="true"] span:empty {
  width: 0.8em;
  height: 0.8em;
  box-shadow: 0 0 0 4px #e5edcf;
}
.odd-trail-line {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.odd-trail-line polyline {
  stroke: #55856e;
  stroke-width: 0.13;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
@media (max-width: 420px) {
  .odd-art {
    padding: 14px;
    border-radius: 12px;
  }
  .odd-palette {
    gap: 5px;
  }
  .odd-palette label {
    font-size: 0.82rem;
    padding-inline: 5px 8px;
  }
}
@media (forced-colors: active) {
  .odd-swatch,
  .odd-color-sheet {
    forced-color-adjust: none;
  }
  .odd-trail-line polyline {
    stroke: Highlight;
  }
  .odd-trail-grid span:not(:empty) {
    border-color: ButtonText;
  }
}
