/* Live property module: real viewer and editor frames, details pane, menus */
.lp-stage { display: none; }
.live-pv .lp-stage { position: absolute; inset: 0; display: flex; flex-direction: column; z-index: 1; }
.live-pv .pv-stage { background: var(--canvas); }
.live-pv #plan, .live-pv #three, .live-pv #toolbar, .live-pv .view-sw, .live-pv #hint, .live-pv #layers, .live-pv .pv-left .pv-h ~ .pv-h { display: none !important; }
.live-pv.editing .pv-ask { display: none; }

.lp-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 6px 12px; border-bottom: 1px solid var(--line); background: var(--panel); }
.lp-bar:empty { display: none; }
.lp-fl { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lp-fl b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-fl small { color: var(--muted); font-size: 12.5px; }
.lp-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.lp-tools svg, .lp-ficons svg, .lp-acts svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-chip { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: var(--r-xs); border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.lp-chip.amber { background: rgba(var(--amber-a),.14); border-color: rgba(var(--amber-a),.4); color: var(--amber); }

.lp-frames { position: relative; flex: 1; min-height: 0; }
.lp-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: var(--canvas); }
.lp-frame[hidden] { display: none; }
.lp-over { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.28); z-index: 2; overflow-y: auto; }
.lp-over.solid { background: var(--canvas); place-items: start center; padding-top: 32px; }
.lp-over[hidden] { display: none; }
.lp-msg { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 360px; text-align: center; padding: 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line2); box-shadow: var(--shadow-2); }
.lp-msg b { font-size: 15px; }
.lp-msg small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.lp-grid { width: min(820px, 100%); display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; padding-bottom: 90px; }
.lp-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line2); text-align: left; }
.lp-card b { font-size: 14.5px; }
.lp-card small { color: var(--muted); font-size: 12.5px; }
.lp-card .row-a { justify-content: flex-start; margin-top: 8px; }
.lp-card .btn svg { width: 14px; height: 14px; }
.lp-card.add { align-items: center; justify-content: center; border-style: dashed; color: var(--muted); min-height: 104px; }
.lp-card.add svg { width: 18px; height: 18px; }

/* floors list (left) */
.lp-dim { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 13px; padding: 6px 8px; line-height: 1.45; }
.lp-dim .spin { flex: none; }
.ex-empty { padding: 14px; }
.live-pv .floors button { text-align: left; overflow-wrap: anywhere; }
.live-pv .floors .add-fl { justify-content: flex-start; }

/* details pane */
.lp-sec { padding: 12px 0; border-top: 1px solid var(--line); }
.ins-h + .lp-sec { border-top: 0; padding-top: 0; }
.lp-sh { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; display: flex; gap: 6px; }
.lp-sh span { color: var(--muted); }
.lp-fhead b { display: block; font-size: 15px; }
.lp-fhead small, .lp-frow small { display: block; color: var(--muted); font-size: 12px; }
.lp-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lp-acts .btn { gap: 5px; }
.lp-acts .btn.on { border-color: var(--amber); color: var(--amber); }
.lp-acts .btn svg:not([fill]) { fill: none; }
.lp-addr { font-size: 13.5px; line-height: 1.45; }
.lp-sec .kv { padding: 6px 0; font-size: 13px; }
.lp-sec .fine { font-size: 11.5px; margin-top: 8px; }
.lp-floors { display: grid; gap: 2px; }
.lp-frow { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 8px; border-radius: var(--r-xs); }
.lp-frow:hover { background: var(--hover); }
.lp-frow.on { background: rgba(var(--amber-a),.1); }
.lp-frow .grow { flex: 1; min-width: 0; }
.lp-frow b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-ficons { display: flex; gap: 2px; flex: none; }
.lp-ficons .ic.sm { width: 26px; height: 26px; border-color: transparent; }
.lp-ficons .ic.sm:hover { border-color: var(--line2); }

.lp-hist { margin-top: 10px; }
.lp-note { font-size: 12.5px; color: var(--muted); padding: 8px 10px; border-radius: var(--r-xs); border: 1px solid rgba(var(--amber-a),.3); background: rgba(var(--amber-a),.06); margin-bottom: 8px; line-height: 1.45; }
.lp-vers { display: grid; gap: 4px; max-height: 340px; overflow-y: auto; }
.lp-ver { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: var(--r-xs); border: 1px solid var(--line); border-left: 3px solid transparent; }
.lp-ver.latest { border-left-color: var(--amber); }
.lp-ver.on { background: rgba(var(--amber-a),.08); }
.lp-ver b { display: block; font-size: 13px; }
.lp-ver small { display: block; color: var(--muted); font-size: 11.5px; margin: 2px 0 4px; }
.lp-ver .lp-chip { margin-right: 4px; }
.lp-vact { display: flex; gap: 6px; }

.lp-renders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lp-rd { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lp-rd a { display: block; aspect-ratio: 4/3; border-radius: var(--r-xs); overflow: hidden; background: var(--panel2); border: 1px solid var(--line); }
.lp-rd img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-vid { display: grid; place-items: center; height: 100%; font-size: 12px; color: var(--muted); }
.lp-rd small { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-rdel { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: var(--r-xs); background: var(--glass2); border: 1px solid var(--line2); color: var(--muted); opacity: 0; }
.lp-rd:hover .lp-rdel, .lp-rdel:focus-visible { opacity: 1; }
.lp-rdel:hover { color: var(--danger); }
.lp-rdel svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (hover: none) { .lp-rdel { opacity: 1; } }

/* address search */
.lp-ac { position: relative; }
.lp-ac .in { width: 100%; }
.lp-acl { display: grid; margin-top: 4px; border-radius: var(--r-xs); overflow: hidden; }
.lp-acl:not(:empty) { border: 1px solid var(--line2); background: var(--panel); }
.lp-acl button { text-align: left; padding: 9px 12px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.lp-acl button:last-child { border-bottom: 0; }
.lp-acl button:hover, .lp-acl button:focus-visible { background: var(--hover); outline: none; }
.lp-psaddr { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--text); }
.lp-copyin { width: 100%; margin-top: 10px; font-family: var(--mono); font-size: 12.5px; }

/* iPad and small laptops: the details pane sits under the stage (app.css hides it from 1180 down) */
@media (max-width: 1180px) and (min-width: 761px) {
  .live-pv .pv-body { grid-template-columns: 172px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .live-pv .pv-left { grid-row: 1 / span 2; }
  .live-pv .pv-right-panel { display: block; grid-column: 2; border-left: 0; border-top: 1px solid var(--line); max-height: 34vh; padding: 12px 16px; }
  .live-pv.editing .pv-right-panel { max-height: 22vh; }
  .lp-renders { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lp-vers { max-height: 220px; }
}
@media (max-width: 760px) {
  .lp-bar { min-height: 42px; padding: 5px 10px; }
  .lp-grid { grid-template-columns: 1fr; }
  .lp-over.solid { padding-top: 16px; }
}
