form {
  max-width: none;
}

.form-hint {
  color: #52606d;
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}

.field-error {
  color: #b42318;
}

.field-invalid {
  border-color: #b42318;
  background: #fff4f2;
}

.actions {
  display: flex;
  gap: 0.75em;
  align-items: center;
}

.actions form {
  margin: 0;
  max-width: none;
}

.actions button {
  margin-top: 0;
}

.nav-inline {
  display: inline;
  max-width: none;
}

.nav-inline button {
  display: inline;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.error {
  margin: 0 0 1rem;
  color: #b42318;
  font-weight: 600;
}

.hidden {
  display: none;
}

.lookout-form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
}

.lookout-form {
  display: grid;
  gap: 1rem;
}

.lookout-step {
  margin: 0;
  padding: 1rem;
  border: 1px solid #d0d7de;
  border-radius: 0.75rem;
  background: #fff;
}

.lookout-step legend {
  padding: 0 0.35rem;
  font-weight: 700;
}

.section-intro {
  margin: 0 0 0.75rem;
}

.lookout-step label {
  display: block;
  margin-top: 0.75rem;
  font-weight: 600;
}

.lookout-step input,
.lookout-step select,
.lookout-step button {
  font: inherit;
}

.lookout-step input[type="text"],
.lookout-step input[type="number"],
.lookout-step select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.25rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #c4cdd5;
  border-radius: 0.45rem;
  background: #fff;
}

input[readonly] {
  background: #f4f6f8;
}

.lookout-step button {
  margin-top: 0.25rem;
  padding: 0.65rem 1.15rem;
  border: 1px solid #24527a;
  border-radius: 0.45rem;
  background: #24527a;
  color: #fff;
  cursor: pointer;
}

.lookout-step button:disabled,
.lookout-step input:disabled {
  cursor: not-allowed;
}

.location-picker {
  margin-top: 0.25rem;
}

.location-picker-map {
  height: 320px;
  margin-top: 0.5rem;
  border: 1px solid #d0d7de;
  border-radius: 0.75rem;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.field {
  min-width: 0;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

.detected-timezone {
  margin-top: 0.5rem;
}

.detected-timezone label {
  margin-top: 0;
}

.detected-value {
  margin: 0.25rem 0 0;
}

.range-wrap {
  position: relative;
  width: 320px;
  max-width: 100%;
  height: 36px;
  margin: 0.75rem 0;
}

.range-wrap input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 320px;
  max-width: 100%;
  margin: 0;
  pointer-events: none;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
}

.range-wrap input[type="range"]::-webkit-slider-runnable-track {
  height: 36px;
  background: transparent;
  border: none;
}

.range-wrap input[type="range"]::-moz-range-track {
  height: 36px;
  background: transparent;
  border: none;
}

.range-wrap input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 24px;
  margin-top: 6px;
  border: 1px solid #24527a;
  border-radius: 0.25rem;
  background: #fff;
}

.range-wrap input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 24px;
  border: 1px solid #24527a;
  border-radius: 0.25rem;
  background: #fff;
}

.range-track {
  position: absolute;
  left: 0;
  top: 14px;
  width: 320px;
  max-width: 100%;
  height: 8px;
  box-sizing: border-box;
  border: 1px solid #b8c2cc;
  border-radius: 999px;
  background: #e7ecf1;
}

.range-fill {
  position: absolute;
  top: 14px;
  height: 8px;
  box-sizing: border-box;
  border: 1px solid #24527a;
  border-radius: 999px;
  background: #4d8ac2;
}

.speed-row {
  align-items: end;
}

.direction-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.direction-preview {
  padding: 0.75rem;
  border: 1px solid #d0d7de;
  border-radius: 0.75rem;
  background: #fbfcfd;
}

.direction-preview svg {
  display: block;
  width: 100%;
  height: auto;
}

.direction-inputs input[type="range"] {
  width: 100%;
  margin-top: 0.35rem;
}

.naming-panel {
  border-top: 1px dashed #d0d7de;
  padding-top: 0.75rem;
}

.naming-panel label:first-child {
  margin-top: 0;
}

.suggested-name {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.05rem;
}

.slug-preview {
  word-break: break-word;
}

.public-note {
  margin: 1rem 0 0.35rem;
}

.lookout-summary {
  position: sticky;
  top: 1rem;
}

.lookout-summary-panel {
  background: #f8fafc;
}

.summary-list,
.validation-list {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.summary-sentence {
  margin: 0.35rem 0 0;
}

@media (max-width: 980px) {
  .lookout-form-shell {
    grid-template-columns: 1fr;
  }

  .lookout-summary {
    position: static;
    order: -1;
  }
}

@media (max-width: 720px) {
  .location-picker-map {
    height: 260px;
  }

  .direction-layout {
    grid-template-columns: 1fr;
  }

  .range-wrap,
  .range-track,
  .range-wrap input[type="range"] {
    width: 100%;
  }
}
