.field-plan {
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 4vw, 4rem);
  color: #f2f1e9;
  background: #252c23;
}
.field-plan h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}
.field-plan p {
  max-width: 68ch;
  line-height: 1.55;
}
.plan-details {
  margin-top: 1.6rem;
  border-block: 1px solid #65725d;
}
.plan-details > summary {
  cursor: pointer;
  padding: 1.15rem 0.2rem;
  color: #d0fa79;
  font-weight: 650;
  list-style: disclosure-closed;
}
.plan-details[open] > summary {
  list-style: disclosure-open;
}
.plan-editor {
  padding: 1rem 0;
  color: #f2f1e9;
}
.plan-row,
.plan-actions,
.plan-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.6rem;
}
.plan-row > label {
  display: grid;
  gap: 0.3rem;
  font-size: 1rem;
}
.plan-row input {
  width: 7rem;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0.5rem;
  background: #191c18;
  color: #f2f1e9;
  border: 1px solid #86927f;
  font: inherit;
}
.plan-editor button,
.plan-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  min-height: 44px;
  border: 1px solid #798473;
  border-radius: 2px;
  background: transparent;
  color: #f2f1e9;
  cursor: pointer;
  font: inherit;
  line-height: 1.25;
}
.plan-editor button:hover,
.plan-actions a:hover,
.plan-editor [aria-pressed='true'] {
  border-color: #d0fa79;
  color: #d0fa79;
}
.plan-tools b {
  color: #d0fa79;
  width: 1rem;
  text-align: center;
  font: 700 0.9rem monospace;
}
.plan-metric {
  color: #d0fa79;
  font: 600 1rem monospace;
}
.plan-canvas {
  width: 100%;
  box-sizing: border-box;
  background: #191c18;
  border: 1px solid #86927f;
}
#plan-grid {
  display: block;
  height: clamp(200px, 32vw, 330px);
  overflow: visible;
  cursor: crosshair;
}
#plan-grid [data-pin] {
  cursor: grab;
}
.plan-row[hidden] {
  display: none;
}
#plan-motion {
  margin-top: 1rem;
}
.plan-actions {
  margin-top: 1.6rem;
}
.plan-actions a {
  background: #d0fa79;
  color: #191c18;
  border-color: #d0fa79;
  text-decoration: none;
  font-weight: 650;
}
.plan-actions a:hover {
  color: #191c18;
  background: #e1ff9a;
}
.field-plan :focus-visible {
  outline: 3px solid #d0fa79;
  outline-offset: 3px;
}
.plan-status {
  min-height: 1.5em;
  margin-bottom: 0;
}

#plan-grid [data-pin] {
  touch-action: none;
}
