/* Shared native selects: one finish across lessons, maps and mobile workbenches. */
#app select {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding: 11px 46px 11px 15px;
  border: 1px solid #bdc9b9;
  border-radius: 12px;
  background-color: #fffef8;
  color: #244b3b;
  font-family: inherit;
  /* Older compact workbenches set 12px !important; keep native mobile input readable. */
  font-size: 16px !important;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: 0 2px 5px #23453208, inset 0 1px 0 #fff;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

#app select:not([multiple]):not([size]),
#app select:not([multiple])[size="0"],
#app select:not([multiple])[size="1"] {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Crect width='28' height='28' rx='9' fill='%23edf1e7'/%3E%3Cpath d='m9.5 12 4.5 4.5 4.5-4.5' fill='none' stroke='%2347614d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-size: 28px 28px;
  background-repeat: no-repeat;
}

@media (hover: hover) {
  #app select:not(:disabled):hover {
    border-color: #849a80;
    background-color: #fffdf3;
    box-shadow: 0 3px 9px #2345320d, inset 0 1px 0 #fff;
  }
}

#app select:focus-visible {
  outline: 2px solid #b18a47;
  outline-offset: 2px;
  border-color: #536f56;
  box-shadow: 0 0 0 1px #536f56;
}

#app select:disabled {
  color: #737e70;
  background-color: #edf0e8;
  border-color: #d4dccd;
  box-shadow: none;
  cursor: not-allowed;
  opacity: .72;
}

#app select option,
#app select optgroup {
  color: #244b3b;
  background: #fffef8;
}

/* Lists keep their platform scroll and selection affordances. */
#app select[multiple],
#app select[size]:not([size="0"]):not([size="1"]) {
  padding: 10px 12px;
  background-image: none;
}

#app .st-green-dock label { margin-bottom: 7px; }

@media (max-width: 520px) {
  /* Full direction names need more room than half a narrow phone screen. */
  #app .st-green-dock { grid-template-columns: 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  #app select { transition: none; }
}

@media (forced-colors: active) {
  #app select {
    -webkit-appearance: auto !important;
    appearance: auto !important;
    background-image: none !important;
    border-color: ButtonText;
    box-shadow: none;
  }
  #app select:focus-visible { outline-color: Highlight; }
}
