/* House floor plan editor, laid out like Objektplan's floor plan page. */
.fp-editor { position: fixed; z-index: 12; left: var(--side-w); top: var(--header-h); right: 0; bottom: 0; display: flex; flex-direction: column; gap: 14px; padding: 16px 20px 20px; background: var(--ground); color: var(--ink); font-size: 13px; }
.fp-editor[hidden], .fp-editor [hidden] { display: none !important; }
.fp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fp-head h2 { margin: 0 10px 0 4px; font-size: 17px; font-weight: 500; }
.fp-floors { display: flex; gap: 6px; flex-wrap: wrap; }
.fp-editor button { padding: 6px 12px; border: 1px solid var(--control-line); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 12.5px; white-space: nowrap; cursor: pointer; }
.fp-editor button:hover:not(:disabled) { border-color: var(--ink); }
.fp-editor button:disabled { opacity: .4; cursor: default; }
.fp-editor button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.fp-editor .fp-danger { padding: 0; border: 0; color: var(--warn); text-decoration: underline; }
.fp-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; }
.fp-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 4px; background: var(--paper); }
.fp-stage { padding: 0; gap: 0; overflow: hidden; }
.fp-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.fp-sep { width: 1px; height: 22px; margin: 0 4px; background: var(--line); }
.fp-svg { flex: 1; width: 100%; min-height: 0; display: block; touch-action: none; user-select: none; cursor: crosshair; }
.fp-side { display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.fp-side h3 { margin: 0; font-size: 15px; font-weight: 500; }
.fp-side label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fp-side input, .fp-side select { padding: 5px 7px; border: 1px solid var(--control-line); border-radius: 3px; background: var(--paper-raised); color: var(--ink); font: inherit; font-size: 12.5px; }
.fp-side input[maxlength] { width: 150px; }
.fp-num { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11.5px; }
.fp-num input { width: 80px; text-align: right; }
.fp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fp-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.fp-side .fp-danger { align-self: flex-start; }
.fp-rooms { display: flex; flex-direction: column; gap: 2px; }
.fp-rooms[hidden] { display: none; }
.fp-label { margin-bottom: 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fp-editor .fp-rooms button { display: flex; justify-content: space-between; gap: 10px; padding: 5px 6px; border: 0; border-radius: 3px; text-align: left; }
.fp-editor .fp-rooms button[aria-pressed=true] { background: var(--line-soft); color: var(--ink); }
.fp-total { display: flex; justify-content: space-between; padding: 5px 6px; font-weight: 500; }
.fp-total.fp-house { border-top: 1px solid var(--line); }
.fp-muted { color: var(--muted); }
@media (max-width: 860px) {
  .fp-editor { padding: 10px; }
  .fp-main { grid-template-columns: 1fr; grid-template-rows: minmax(320px, 1fr) auto; }
}
