#studio-plan-editor {
  color: var(--studio-green); margin-top: .75rem; min-width: 0;
}
#studio-plan-editor .plan-help {
  font-size: .9rem; line-height: 1.5; color: var(--muted); margin: 0 0 .55rem;
}
.plan-board {
  background: #f6f4ed; border: 1px solid #c6cabe; border-radius: .45rem; overflow: hidden;
  user-select: none; -webkit-user-select: none; touch-action: none;
}
.plan-board:focus-visible { outline: 2px solid #805e3e; outline-offset: 3px; }
.plan-board svg { display: block; width: 100%; height: auto; }
.plan-board [data-item] { cursor: grab; }
.plan-board [data-item]:active { cursor: grabbing; }
.plan-tools {
  margin-top: .9rem; display: flex; flex-wrap: wrap; align-items: flex-end; gap: .65rem .75rem;
}
.plan-tools label, .plan-move {
  display: flex; flex-direction: column; gap: .25rem; line-height: 1.35; min-width: 0;
  font-size: .85rem; font-weight: 600;
}
.plan-tools select {
  box-sizing: border-box; max-width: 100%; min-height: 44px; padding: .4rem .5rem;
  font: inherit; font-weight: 500; font-size: 1rem; color: var(--studio-green);
  background: white; border: 1px solid #8f9c94; border-radius: .35rem;
}
.plan-item-label { flex: 1 1 10rem; }
.plan-wall-label { flex: 1 1 8rem; }
.plan-move-buttons, .plan-history { display: flex; gap: .2rem; }
.design-studio .plan-tools button, .design-studio .plan-history button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  border-radius: .35rem; padding: .4rem .65rem; font-size: .9rem; line-height: 1;
  text-decoration: none; color: var(--studio-green); cursor: pointer;
}
.design-studio .plan-tools button {
  border: 1px solid #a1afa4; background: #fff; font-weight: 600;
}
.design-studio .plan-move-buttons button { min-width: 44px; font-size: 1.25rem; }
.design-studio .plan-tools button:hover, .design-studio .plan-tools button:focus-visible { background: #edf1eb; }
.design-studio .plan-history button {
  border: none; background: transparent; text-decoration: underline; text-underline-offset: .2em;
}
.design-studio .plan-history button:disabled { color: #74776e; cursor: default; text-decoration: none; }
.plan-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 .75rem; margin-top: .65rem; border-top: 1px solid var(--line); }
.plan-position, .plan-feedback { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.plan-position { padding-block: .4rem; }
.plan-feedback { margin: 0; }
.plan-feedback:not(:empty) { padding-top: .3rem; }
@media (max-width: 430px) {
  .plan-tools { gap: .5rem; }
  .plan-tools .plan-item-label { flex-grow: 1; }
  .plan-tools .plan-wall-label { flex-basis: 7rem; }
}
@media print {
  #studio-plan-editor { display: none !important; }
}
