body.constructor-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #f3f6f4;
  font-family: Arial, sans-serif;
  color: #263331;
}

body.constructor-page .topbar { display: none; }
body.constructor-page #app {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
}

.constructor-page *,
.constructor-page *::before,
.constructor-page *::after { box-sizing: border-box; }

.constructor-page button,
.constructor-page input,
.constructor-page textarea { font: inherit; }

.constructor-page button {
  min-height: 34px;
  border: 1px solid #bdceca;
  border-radius: 4px;
  padding: 6px 9px;
  color: #263331;
  background: #fff;
  cursor: pointer;
}

.constructor-page button:hover:not(:disabled) { border-color: #168b88; }
.constructor-page button:disabled { cursor: not-allowed; opacity: .48; }
.constructor-page button:focus-visible,
.constructor-page input:focus-visible,
.constructor-page textarea:focus-visible { outline: 2px solid #168b88; outline-offset: 1px; }

.constructor-page input,
.constructor-page textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid #cbd5d2;
  border-radius: 3px;
  padding: 7px 8px;
  color: #263331;
  background: #fff;
}

.constructor-access {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 20px;
}

.constructor-access__form {
  display: grid;
  width: min(420px, 100%);
  gap: 14px;
  padding: 24px;
  border: 1px solid #cfdbd7;
  border-radius: 5px;
  background: #fff;
}

.constructor-access__form label,
.constructor-properties label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.constructor-access__form h1 { margin: 0; font-size: 25px; letter-spacing: 0; }
.constructor-access__venue { margin: 0; overflow-wrap: anywhere; color: #53615e; font-size: 13px; }
.constructor-access__hint { margin: 0; color: #596a66; font-size: 12px; line-height: 1.5; }
.constructor-access__hint[data-kind="error"] { color: #a02f27; }
.constructor-eyebrow { margin: 0; color: #087f7b; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.constructor-primary { border-color: #087f7b !important; color: #fff !important; background: #087f7b !important; font-weight: 700; }

.constructor-app {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(58px, auto) minmax(0, 1fr);
  overflow: hidden;
}

.constructor-header {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 14px;
  max-height: 45dvh;
  overflow: auto;
  border-bottom: 1px solid #cfdbd7;
  background: #fff;
}

.constructor-header__identity { display: flex; min-width: 0; align-items: center; gap: 10px; }
.constructor-mark {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  background: #087f7b;
  font-weight: 700;
}
.constructor-header__identity strong,
.constructor-header__identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.constructor-header__identity strong { max-width: 260px; font-size: 15px; }
.constructor-header__identity small { max-width: 300px; margin-top: 2px; color: #62716e; font-size: 10px; }
.constructor-header__actions { display: flex; min-width: 0; align-items: center; gap: 7px; }
.constructor-header__actions { flex-wrap: wrap; }
.constructor-header__actions button[aria-label] { width: 36px; padding: 4px; font-size: 18px; }
.constructor-share-note { max-width: 118px; color: #687773; font-size: 10px; line-height: 1.25; }
.constructor-header__actions [data-action="share"]:disabled { color: #65716e; }
.constructor-auth-retry {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: end;
  gap: 8px;
  padding: 6px 0 2px;
  border-top: 1px solid #e0e8e4;
}
.constructor-auth-retry label { display: grid; width: min(320px, 55vw); gap: 4px; color: #4e605c; font-size: 11px; font-weight: 700; }
.constructor-auth-retry input { min-height: 32px; }
.constructor-auth-retry button { white-space: nowrap; }
.constructor-share-box { display: grid; width: 200px; min-width: 120px; gap: 2px; }
.constructor-share-box[hidden],
.constructor-background-controls[hidden] { display: none !important; }
.constructor-share-box input { min-width: 0; min-height: 28px; padding: 4px 6px; font-size: 10px; }
.constructor-share-box small { overflow: hidden; color: #62716e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.constructor-save-status { max-width: 340px; color: #52625f; font-size: 12px; overflow-wrap: anywhere; white-space: normal; }
.constructor-save-status[data-kind="error"] { color: #a02f27; }
.constructor-save-status[data-kind="success"] { color: #16744d; }

.constructor-layout {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: 224px minmax(0, 1fr) 282px;
  overflow: hidden;
}

.constructor-layout[inert] { pointer-events: none; opacity: .72; }
.constructor-left-panel,
.constructor-right-panel { min-width: 0; min-height: 0; overflow: auto; background: #fff; }
.constructor-left-panel { border-right: 1px solid #cfdbd7; }
.constructor-right-panel { border-left: 1px solid #cfdbd7; }
.constructor-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; gap: 6px; border-bottom: 1px solid #e2e9e6; }
.constructor-tabs [aria-selected="true"] { border-color: #087f7b; color: #087f7b; background: #eaf5f3; font-weight: 700; }
.constructor-help { margin: 8px 10px; padding: 8px; border: 1px solid #cbded8; border-radius: 5px; background: #f2faf6; font-size: 11px; line-height: 1.45; }
.constructor-help summary { cursor: pointer; color: #075f5d; font-weight: 700; }
.constructor-help ol { padding-left: 18px; }
.constructor-help li { margin: 6px 0; }
.constructor-help p { margin-bottom: 0; }
.constructor-panel-heading { margin: 14px 12px 8px; color: #5d6c68; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.constructor-tools { display: grid; gap: 5px; padding: 0 10px; }
.constructor-tools button { text-align: left; }
.constructor-tools button[aria-pressed="true"] { border-color: #087f7b; color: #087f7b; background: #eaf5f3; font-weight: 700; }
.constructor-panorama-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 10px 9px; }
.constructor-panorama-actions[hidden] { display: none; }
.constructor-panorama-actions button { min-width: 0; font-size: 12px; line-height: 1.2; text-align: center; white-space: normal; }
.constructor-panorama-actions button[aria-pressed="true"] { border-color: #087f7b; color: #087f7b; background: #eaf5f3; font-weight: 700; }
.constructor-tool-hint { margin: 12px; color: #64726f; font-size: 11px; line-height: 1.45; }
.constructor-route-panel { display: grid; gap: 10px; padding: 0 12px 16px; font-size: 12px; }
.constructor-route-panel[hidden] { display: none; }
.constructor-route-panel h2, .constructor-route-panel h3, .constructor-route-panel p { margin: 0; }
.constructor-route-panel label { display: grid; gap: 4px; font-weight: 700; }
.constructor-route-panel select { width: 100%; min-height: 36px; padding: 6px; border: 1px solid #bdceca; background: #fff; }
.constructor-route-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.constructor-route-edges { display: grid; gap: 5px; }
.constructor-route-edges > div { display: grid; gap: 5px; padding: 7px; border: 1px solid #dce7e3; overflow-wrap: anywhere; }
.constructor-route-waypoint-list { display: grid; gap: 5px; }
.constructor-route-point-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; border: 1px solid #dce7e3; }
.constructor-route-point-row strong { grid-column: 1 / -1; }
.constructor-route-point-row input { min-width: 0; }
.constructor-route-point-row button { grid-column: 1 / -1; }
.constructor-route-line { fill: none; stroke: #087f7b; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .28; }
.constructor-route-line--selected { stroke-width: 8; opacity: .9; }
.constructor-route-result { fill: none; stroke: #1961c4; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.constructor-route-preview { fill: none; stroke: #f08a24; stroke-width: 7; stroke-dasharray: 11 7; stroke-linecap: round; stroke-linejoin: round; }
.constructor-route-waypoint { fill: #fff; stroke: #f08a24; stroke-width: 3; cursor: grab; }
.constructor-route-waypoint:active { cursor: grabbing; }

.constructor-canvas-panel { display: grid; min-width: 0; min-height: 0; grid-template-rows: auto minmax(160px, 1fr); }
.constructor-canvas-toolbar { display: flex; flex-wrap: wrap; min-width: 0; max-height: 35dvh; overflow: auto; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 10px; border-bottom: 1px solid #dbe3df; background: #f9fbfa; }
.constructor-mode-label { color: #51615d; font-size: 12px; }
.constructor-zoom-controls { display: flex; flex-wrap: wrap; min-width: 0; align-items: center; gap: 5px; }
.constructor-zoom-controls button { min-width: 34px; }
.constructor-background-upload { display: inline-flex; min-width: 190px; align-items: center; gap: 5px; color: #51615d; font-size: 11px; white-space: nowrap; }
.constructor-background-upload input { width: 155px; min-width: 0; min-height: 32px; padding: 3px; font-size: 10px; }
.constructor-background-controls { display: inline-flex; flex-wrap: wrap; min-width: 0; align-items: center; gap: 6px; }
.constructor-background-controls button { white-space: nowrap; }
.constructor-background-edit-controls { display: flex; min-width: 0; align-items: center; gap: 6px; padding: 3px 6px; border: 1px solid #168b88; border-radius: 4px; background: #e7f4f1; }
.constructor-background-edit-controls strong { color: #076c69; font-size: 11px; white-space: nowrap; }
.constructor-background-edit-controls button { white-space: nowrap; }
.constructor-background-edit-controls { display: flex; min-width: 0; align-items: center; gap: 6px; padding: 3px 6px; border: 1px solid #168b88; border-radius: 4px; background: #e7f4f1; }
.constructor-background-edit-controls strong { color: #076c69; font-size: 11px; white-space: nowrap; }
.constructor-background-edit-controls button { white-space: nowrap; }
.constructor-background-opacity { display: inline-grid; grid-template-columns: auto 86px; align-items: center; gap: 4px; color: #51615d; font-size: 10px; white-space: nowrap; }
.constructor-background-opacity input { width: 86px; min-height: 22px; padding: 0; }
.constructor-canvas-viewport { min-width: 0; min-height: 0; overflow: hidden; background: #f1f5f2; }
.constructor-canvas { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; }
.constructor-plan-background { fill: #fff; stroke: #aabbb6; stroke-width: 2; }
.constructor-background-edit-frame { fill: #168b88; fill-opacity: .035; stroke: #087f7b; stroke-width: 3; stroke-dasharray: 10 5; cursor: move; pointer-events: all; }
.constructor-background-resize-handle { fill: #fff; stroke: #087f7b; stroke-width: 3; cursor: nwse-resize; pointer-events: all; }
.constructor-background-edit-frame { fill: #168b88; fill-opacity: .035; stroke: #087f7b; stroke-width: 3; stroke-dasharray: 10 5; cursor: move; pointer-events: all; }
.constructor-background-resize-handle { fill: #fff; stroke: #087f7b; stroke-width: 3; cursor: nwse-resize; pointer-events: all; }
.constructor-element { cursor: move; }
.constructor-element rect { stroke-width: 2; }
.constructor-element--zone rect { fill: var(--element-fill, #aadbd1); fill-opacity: .62; stroke: #238b7c; }
.constructor-element--table rect { fill: #d9e6ad; stroke: #6c8244; }
.constructor-element--stand rect { fill: var(--element-fill, #f4ce9b); stroke: #a47835; }
.constructor-element--stage rect { fill: var(--element-fill, #eca98d); stroke: #a3563e; }
.constructor-element--partition rect { fill: var(--element-fill, #d0d7d5); stroke: #6c7976; }
.constructor-canvas-label { fill: #263331; font-size: 18px; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.constructor-place { cursor: move; }
.constructor-place circle { fill: #e44e42; stroke: #fff; stroke-width: 3; }
.constructor-place--zone circle { fill: #7553ae; }
.constructor-place--wifi circle { fill: #257c9b; }
.constructor-place--wc circle { fill: #aa4b77; }
.constructor-panorama-point { cursor: move; }
.constructor-panorama-point circle { fill: #247b85; stroke: #fff; stroke-width: 3; }
.constructor-panorama-point--ready circle { fill: #158263; }
.constructor-panorama-icon { fill: #fff; font-size: 19px; text-anchor: middle; pointer-events: none; }
.constructor-panorama-status { margin: 0; color: #52625f; font-size: 12px; line-height: 1.4; }
.constructor-header__actions [data-role="visitor-preview"][aria-disabled="true"] { pointer-events: none; opacity: .5; }
.constructor-header__actions [data-role="visitor-preview"] { display: inline-flex; min-height: 34px; align-items: center; padding: 6px 9px; border: 1px solid #bdceca; border-radius: 4px; color: #075f5d; background: #fff; font-size: 13px; text-decoration: none; }
.constructor-header__actions [data-role="visitor-preview"]:focus-visible { outline: 2px solid #168b88; outline-offset: 1px; }
.constructor-place-label { fill: #742b25; font-size: 15px; font-weight: 700; pointer-events: none; }
.constructor-selection-outline { fill: none; stroke: #087f7b; stroke-width: 3; stroke-dasharray: 8 4; pointer-events: none; }
.constructor-resize-handle { fill: #fff; stroke: #087f7b; stroke-width: 3; cursor: nwse-resize; pointer-events: all; }
.constructor-place-selection { fill: none; stroke: #087f7b; stroke-width: 3; pointer-events: none; }
.constructor-page .is-hand .constructor-canvas { cursor: grab; }
.constructor-page .is-hand .constructor-canvas:active { cursor: grabbing; }
.constructor-pan-controls { display: inline-flex; flex-wrap: wrap; gap: 3px; }

.constructor-properties,
.constructor-object-list { padding: 12px; }
.constructor-properties { border-bottom: 1px solid #e0e8e4; }
.constructor-properties h2,
.constructor-object-list h2 { margin: 0 0 12px; font-size: 14px; }
.constructor-properties [data-role="properties"] { display: grid; gap: 9px; }
.constructor-properties textarea { resize: vertical; }
.constructor-property-actions { display: flex; gap: 7px; }
.constructor-danger { color: #a02f27 !important; }
.constructor-object-list h3 { margin: 14px 0 6px; color: #5d6c68; font-size: 11px; text-transform: uppercase; }
.constructor-list { display: grid; gap: 4px; }
.constructor-list-item { display: grid; min-width: 0; gap: 3px; text-align: left; }
.constructor-list-item span { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.constructor-list-item small { overflow: hidden; color: #667570; font-size: 10px; text-overflow: ellipsis; }
.constructor-list-item[aria-current="true"] { border-color: #087f7b; background: #eaf5f3; }
.constructor-empty { margin: 0; color: #74807c; font-size: 12px; line-height: 1.45; }

@media (max-width: 1050px) {
  .constructor-layout { grid-template-columns: 185px minmax(0, 1fr) 245px; }
  .constructor-save-status { max-width: 160px; }
}

@media (max-width: 760px) {
  body.constructor-page { overflow: auto; }
  body.constructor-page #app { height: auto; min-height: 100%; }
  .constructor-app { height: auto; min-height: 100vh; grid-template-rows: auto auto; overflow: visible; }
  .constructor-header { min-height: 58px; flex-wrap: wrap; padding: 8px 10px; }
  .constructor-header__identity strong { max-width: 150px; }
  .constructor-header__identity small { max-width: 160px; }
  .constructor-header__actions { flex-wrap: wrap; justify-content: flex-end; }
  .constructor-share-box { order: 6; width: 100%; }
  .constructor-save-status { order: 5; width: 100%; max-width: none; text-align: right; }
  .constructor-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(380px, 55vh) auto; overflow: visible; }
  .constructor-left-panel { border-right: 0; border-bottom: 1px solid #cfdbd7; overflow: visible; }
  .constructor-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .constructor-right-panel { border-left: 0; border-top: 1px solid #cfdbd7; overflow: visible; }
  .constructor-canvas-panel { min-height: 380px; }
  .constructor-canvas-toolbar { align-items: flex-start; flex-direction: column; }
  .constructor-zoom-controls { max-width: 100%; flex-wrap: wrap; }
}

.constructor-background-edit-controls { flex-wrap: wrap; }
