/* Uses the same panel surface, accent and native disclosure as line settings. */
.station-type-options {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin: 12px;
}
.station-type-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  gap: 6px;
  padding: 22px 6px 12px;
  border: 1px solid var(--cr-object-border);
  border-radius: 10px;
  color: var(--cr-object-text);
  background: var(--cr-object-card);
  cursor: pointer;
}
.station-type-option:has(:checked) {
  border-color: var(--cr-object-accent);
  background: color-mix(in srgb,var(--cr-object-accent) 10%,var(--cr-object-card));
}
.station-type-option:has(:focus-visible) {
  outline: 2px solid var(--ui-focus);
  outline-offset: 2px;
}
.station-type-option:has(:disabled) {
  opacity: .45;
  cursor: default;
}
.station-type-option input {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--cr-object-accent);
}
.station-type-option svg {
  width: 100%;
  height: auto;
  aspect-ratio: 180 / 80;
  fill: var(--cr-object-accent);
}
.station-type-rail {
  fill: none;
  stroke: var(--cr-object-muted);
  stroke-width: 2;
}
.station-type-option span {
  max-width: 100%;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  overflow-wrap: anywhere;
}
.station-type-note,.station-type-status {
  color: var(--cr-object-muted);
  font-size: 11px;
  line-height: 1.6;
  margin: 10px 12px 12px;
  overflow-wrap: anywhere;
}
.station-type-status:empty {display: none;}

.station-operation-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--cr-object-card);
  color: var(--cr-object-text);
  font-size: 12px;
}
.station-operation-option input {
  flex-shrink: 0;
  accent-color: var(--cr-object-accent);
}
.station-operation-option select {
  min-width: 0;
  flex: 1 1 140px;
  max-width: 100%;
}
.station-operation-option > span {overflow-wrap: anywhere;}
.station-operation-option .station-direction-group {flex: 1 1 140px;}

.station-direction-group {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--cr-object-line);
  border-radius: 12px;
  background: var(--cr-object-card-soft);
}
.station-direction-button {
  min-width: 56px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--cr-object-muted);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
.station-direction-button:hover {
  background: var(--cr-object-card);
  color: var(--cr-object-text);
}
}
.station-direction-button[aria-pressed="true"] {
  border-color: var(--cr-object-accent);
  background: color-mix(in srgb,var(--cr-object-accent) 14%,var(--cr-object-card));
  color: var(--cr-object-text);
}
.station-direction-button:focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 2px;
}

#shared-platform-card {
  --shared-platform-danger: #ff6961;
}
html.cityrail-light-ui #shared-platform-card {
  --shared-platform-danger: #b42318;
}


.station-type-option > small {
  color: var(--cr-object-muted);
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}
