/* PanoTour — éditeur « Maquette et plans » (studio). Même langage que l'éditeur de scènes (thème clair d'app.css). */
.ed-stage.pe-on #stage-viewer, .ed-stage.pe-on #stage-overlay { visibility: hidden; }
.ed-stage.pe-on { background: #eef0f3; }
.pe-stage { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; z-index: 3; }
.pe-tool { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pe-tool .seg button[disabled] { opacity: .4; cursor: not-allowed; }
.pe-tool .icon-btn[disabled] { opacity: .35; cursor: default; }
.pe-tool .icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pe-total { font-size: 13px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; padding: 0 6px; }
.pe-canvas { position: relative; min-height: 0; overflow: hidden; touch-action: none; cursor: grab; background:
  linear-gradient(#e3e6eb 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, #e3e6eb 1px, transparent 1px) 0 0 / 24px 24px, #f4f5f7; }
.pe-canvas:active { cursor: grabbing; }
.pe-canvas.dh { background: radial-gradient(120% 90% at 50% 30%, #f7f8fa 0%, #e7eaee 70%, #dde1e6 100%); }
.pe-canvas.pe-drop { outline: 3px dashed var(--accent); outline-offset: -6px; }
.pe-canvas .pe-msg { padding: 24px; }
.pe-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pe-svg [data-room] { cursor: pointer; }
.pe-svg [data-point] { cursor: move; }
.pe-svg .pe-handle { cursor: crosshair; }
.pe-svg text { user-select: none; -webkit-user-select: none; }
.pe-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); }
.pe-empty > div { max-width: 420px; }
.pe-empty h2 { color: var(--text); margin: 0 0 8px; }
.pe-banner { position: absolute; left: 50%; top: 58px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .96); border: 1px solid var(--accent); box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.pe-banner p { margin: 0; font-size: 13px; }
.pe-banner[hidden] { display: none; }

.tabs.pe-steps { grid-template-columns: repeat(4, 1fr); }
.pe-steps button { display: grid; justify-items: center; gap: 1px; padding: 6px 2px; font-size: 12px; }
.pe-steps small { font-size: 10.5px; opacity: .65; font-weight: 700; }

.pe-scans, .pe-rooms, .pe-points { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.pe-scan { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.pe-scan.used { border-color: rgba(23, 163, 74, .35); }
.pe-scan small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.pe-scan-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pe-scan-act .btn svg { width: 14px; height: 14px; }
.pe-import { display: block; cursor: pointer; margin: 4px 0 0; }
.pe-rooms li, .pe-points li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-size: 13px; }
.pe-rooms li:hover, .pe-points li:hover { background: var(--panel-2); }
.pe-rooms li.active, .pe-points li.active { background: var(--panel-3); border-color: var(--line); }
.pe-rooms li b { font-variant-numeric: tabular-nums; font-weight: 650; }
.pe-rooms li.pe-total-row { cursor: default; border-top: 1px solid var(--line); border-radius: 0; font-weight: 700; }
.pe-rooms li.pe-total-row:hover { background: none; }
.pe-points li { justify-content: flex-start; }
.pe-points i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; }
.pe-points span { min-width: 0; }
.pe-points small { display: block; color: var(--muted); font-size: 11.5px; }
.pe-rot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 6px; }
.pe-rot .btn { padding: 6px 4px; }
label.check { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 10px; font-size: 13px; color: var(--text); cursor: pointer; }
label.check input { margin-top: 2px; accent-color: var(--ink); }
label.check small { display: block; color: var(--muted); font-size: 12px; }
.pe-pub.on { border-color: rgba(23, 163, 74, .4); background: #f0faf3; }
.pe-exp-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pe-exp .row-in select { width: auto; padding: 6px 8px; }
.pe-exp .btn svg, .pe-pub + .stack .btn svg { width: 14px; height: 14px; }
input[type=color] { width: 44px; height: 32px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); }
input[type=number] { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; box-sizing: border-box; }

/* Réglages → App iPhone */
.dev-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.dev-list li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; }
.dev-list li > div { flex: 1; min-width: 0; }
.dev-list small { display: block; color: var(--muted); font-size: 12px; }
.dev-list li.revoked { opacity: .6; }
.qr-box { display: grid; justify-items: center; gap: 10px; text-align: center; }
.qr-box svg { width: 260px; height: 260px; background: #fff; border-radius: 12px; padding: 10px; box-sizing: border-box; }
.pending-scans { margin: 0 0 18px; }
.pe-dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pe-dims label.field { margin-bottom: 8px; font-size: 12px; }
.pe-warn { display: grid; gap: 4px; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; border: 1px solid rgba(229, 72, 77, .35); background: #fff4f4; }
.pe-warn b { color: #b42318; font-size: 13px; }
.pe-warn small { color: var(--text); font-size: 12px; }
.pe-warn .btn { justify-self: start; margin-top: 4px; }
.pe-svg .pe-rotate { cursor: grab; }
.pe-svg [data-wall], .pe-svg [data-opening] { cursor: pointer; }
.pe-angle { display: grid; grid-template-columns: 1fr auto auto auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.pe-angle .btn { padding: 6px 8px; }
.pe-edge { cursor: copy; }
.pe-edge:hover { stroke-opacity: .25; }
