:root {
  --ink: #16211d;
  --muted: #5d6760;
  --line: #d8ddd7;
  --paper: #f7f8f5;
  --green: #0f6558;
  --sand: #d9c7ad;
  --white: #fff;
}

body.real-page {
  min-height: 100vh;
  background: #eef2ec;
  color: var(--ink);
}

.sim-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.real-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}

.real-panel {
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  padding: 28px 22px;
  overflow: auto;
}

.panel-head {
  margin-bottom: 24px;
}

.panel-head h1 {
  margin: 8px 0 0;
  font-size: 2rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.eyebrow,
.field-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.select-control {
  width: 100%;
  min-height: 46px;
  margin: 8px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  padding: 0 12px;
}

.unit-summary,
.area-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 14px;
}

.unit-summary {
  display: grid;
  gap: 7px;
  margin-bottom: 20px;
}

.unit-summary strong {
  color: var(--green);
}

.unit-summary span,
.area-box span {
  color: #35413b;
  font-size: 0.94rem;
  line-height: 1.45;
}

.control-group {
  display: grid;
  gap: 9px;
  margin: 0 0 20px;
}

.floor-buttons,
.view-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.floor-buttons button,
.view-buttons button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  padding: 8px 10px;
}

.floor-buttons button.is-active,
.view-buttons button.is-active {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.area-box {
  display: grid;
  gap: 8px;
}

.area-box strong {
  font-size: 0.9rem;
}

.real-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 18px;
  padding: 18px;
}

.render-stage,
.plan-stage {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.render-stage {
  position: relative;
  min-height: 520px;
  display: grid;
}

.render-stage img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.render-copy {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: min(560px, calc(100% - 36px));
  z-index: 2;
  display: grid;
  gap: 8px;
  color: var(--white);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.5);
}

.render-copy span {
  justify-self: start;
  border-radius: 999px;
  background: rgba(15, 101, 88, 0.92);
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 850;
  text-shadow: none;
}

.render-copy h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.render-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.35;
}

.plan-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
}

.plan-head div {
  display: grid;
  gap: 3px;
}

.plan-head span {
  color: var(--muted);
  font-size: 0.86rem;
}

.plan-head a {
  color: var(--green);
  font-weight: 850;
  white-space: nowrap;
}

.plan-frame {
  position: relative;
  min-height: 420px;
  background: #fbfbf7;
  overflow: auto;
}

.plan-canvas {
  position: relative;
  width: 100%;
  min-width: 520px;
}

.plan-canvas img {
  width: 100%;
  display: block;
}

.hotspots {
  position: absolute;
  inset: 0;
  min-width: 520px;
}

.hotspot {
  position: absolute;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  border: 3px solid var(--white);
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 101, 88, 0.25), 0 8px 22px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.hotspot.is-active {
  background: #c58b3c;
  box-shadow: 0 0 0 5px rgba(197, 139, 60, 0.28), 0 8px 22px rgba(0, 0, 0, 0.2);
}

.hotspot span {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  border-radius: 8px;
  background: rgba(22, 33, 29, 0.92);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 850;
  padding: 5px 7px;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 1050px) {
  .real-shell {
    grid-template-columns: 1fr;
  }

  .real-panel {
    order: 2;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .real-main {
    order: 1;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .real-panel {
    padding: 18px 14px;
  }

  .real-main {
    padding: 12px;
    gap: 12px;
  }

  .render-stage,
  .render-stage img {
    min-height: 390px;
  }

  .floor-buttons,
  .view-buttons {
    grid-template-columns: 1fr 1fr;
  }

  .plan-frame {
    min-height: 330px;
  }
}
