.plan-model {
  overflow: hidden;
  border: 1px solid #d9e2d9;
  border-radius: 12px;
  background: #f7f9f4;
  color: #263c32;
}
.plan-model svg {
  display: block;
  width: 100%;
  max-height: 420px;
  background: radial-gradient(ellipse at 45% 36%, #fff 15%, #f3f6ed 85%);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.plan-model svg:active { cursor: grabbing; }
.plan-model .plan-room-label {
  font: 600 14px system-ui, "Microsoft YaHei", sans-serif;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  fill: #213d34;
  paint-order: stroke;
  stroke: #fff9e8;
  stroke-width: 3px;
  stroke-linejoin: round;
}
.plan-model .plan-north-label {
  fill: #416353;
  font: 600 14px system-ui, sans-serif;
  text-anchor: middle;
}
.plan-model-tools, .plan-model-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.plan-model-tools {
  padding: 8px 11px;
  border-top: 1px solid #dce5da;
  justify-content: space-between;
}
.plan-model-tools button {
  padding: 6px 10px;
  border: 1px solid #ccd7cc;
  border-radius: 6px;
  color: #294d3e;
  background: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.plan-model-tools button[aria-pressed="true"] { background: #dceadc; }
.plan-model-tools button:hover { border-color: #6a8a73; }
.plan-model :focus-visible { outline: 2px solid #386d55; outline-offset: -2px; }
.plan-model .plan-model-caption {
  margin: 0;
  padding: 1px 12px 10px;
  color: #4b6051;
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 540px) {
  .plan-model .plan-room-label { font-size: 17px; }
  .plan-model-tools button { min-height: 38px; }
}
