:root {
  --demo-ink: #07111f;
  --demo-navy: #0b2a50;
  --demo-blue: #0878c9;
  --demo-cyan: #20c6ef;
  --demo-paper: #f4f7fa;
  --demo-white: #ffffff;
  --demo-muted: #68788b;
  --demo-line: #dce5ec;
  --demo-green: #27a978;
  --sidebar-width: 244px;
  --inspector-width: 316px;
  --topbar-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  color: var(--demo-ink);
  background: var(--demo-paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 15px;
  border-radius: 8px;
  color: var(--demo-white);
  background: var(--demo-blue);
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.planner-topbar {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  height: var(--topbar-height);
  padding: 0 20px;
  align-items: center;
  grid-template-columns: var(--sidebar-width) 1fr auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--demo-white);
  background: #07111f;
}

.planner-brand,
.workspace-title {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.planner-brand {
  color: var(--demo-white);
  text-decoration: none;
}

.planner-brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  background: linear-gradient(135deg, var(--demo-navy), var(--demo-cyan));
  box-shadow: 0 0 22px rgba(32, 198, 239, 0.18);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.planner-brand strong,
.planner-brand small,
.workspace-title strong,
.workspace-title small {
  display: block;
}

.planner-brand strong {
  font-size: 0.82rem;
}

.planner-brand small,
.workspace-title small {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.63rem;
}

.workspace-title {
  padding-left: 23px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.workspace-title strong {
  font-size: 0.8rem;
  font-weight: 650;
}

.workspace-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #53d89f;
  box-shadow: 0 0 0 5px rgba(83, 216, 159, 0.09);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.demo-badge {
  padding: 6px 9px;
  border: 1px solid rgba(32, 198, 239, 0.27);
  border-radius: 999px;
  color: #69ddf8;
  background: rgba(32, 198, 239, 0.08);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-button {
  display: inline-flex;
  min-height: 38px;
  padding: 0 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 650;
  text-decoration: none;
}

.topbar-button:hover,
.topbar-button:focus-visible {
  border-color: rgba(32, 198, 239, 0.45);
  color: var(--demo-white);
  background: rgba(32, 198, 239, 0.08);
}

.topbar-button svg {
  width: 17px;
}

.mobile-demo-note {
  display: none;
}

.planner-layout {
  display: grid;
  min-height: 100vh;
  padding-top: var(--topbar-height);
  grid-template-columns: var(--sidebar-width) minmax(540px, 1fr) var(--inspector-width);
}

.planner-sidebar,
.inspector-panel {
  position: sticky;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  overflow-y: auto;
  background: var(--demo-white);
}

.planner-sidebar {
  z-index: 30;
  padding: 22px 16px 18px;
  border-right: 1px solid var(--demo-line);
}

.sidebar-search label {
  display: block;
  margin: 0 0 7px 3px;
  color: #8491a0;
  font-size: 0.63rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-field {
  position: relative;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  color: #8290a0;
  pointer-events: none;
  transform: translateY(-50%);
}

.search-field input {
  width: 100%;
  height: 40px;
  padding: 0 11px 0 37px;
  border: 1px solid var(--demo-line);
  border-radius: 10px;
  outline: 0;
  color: var(--demo-ink);
  background: #f8fafc;
  font-size: 0.78rem;
}

.search-field input:focus {
  border-color: #74cce7;
  background: var(--demo-white);
  box-shadow: 0 0 0 3px rgba(32, 198, 239, 0.11);
}

.planner-nav {
  display: grid;
  gap: 4px;
  margin-top: 26px;
}

.planner-nav > p,
.layer-controls p {
  margin: 0 0 8px 9px;
  color: #929ead;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.planner-nav-button {
  display: grid;
  width: 100%;
  min-height: 43px;
  padding: 0 10px;
  align-items: center;
  grid-template-columns: 20px 1fr auto;
  gap: 10px;
  border: 0;
  border-radius: 9px;
  color: #5e6d7e;
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 650;
  text-align: left;
}

.planner-nav-button:hover,
.planner-nav-button:focus-visible {
  color: var(--demo-navy);
  background: #f1f6fa;
}

.planner-nav-button.is-active {
  color: #066fae;
  background: #e8f6fb;
}

.planner-nav-button svg {
  width: 19px;
}

.planner-nav-button > span {
  display: grid;
  min-width: 23px;
  height: 20px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  color: #8492a1;
  background: rgba(7, 17, 31, 0.055);
  font-size: 0.6rem;
}

.planner-nav-button.is-active > span {
  color: #0878c9;
  background: rgba(8, 120, 201, 0.1);
}

.layer-controls {
  margin-top: 29px;
  padding-top: 22px;
  border-top: 1px solid var(--demo-line);
}

.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-heading button {
  margin: 0 7px 8px 0;
  padding: 0;
  border: 0;
  color: var(--demo-blue);
  background: none;
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 700;
}

.layer-controls label {
  display: grid;
  min-height: 38px;
  padding: 0 8px;
  align-items: center;
  grid-template-columns: 15px 11px 1fr;
  gap: 9px;
  border-radius: 8px;
  color: #5f6f80;
  cursor: pointer;
  font-size: 0.73rem;
}

.layer-controls label:hover {
  background: #f5f8fa;
}

.layer-controls input {
  width: 14px;
  height: 14px;
  accent-color: var(--demo-blue);
}

.layer-key {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.layer-building {
  background: #0d80bd;
}

.layer-safety {
  border-radius: 50%;
  background: #e6504f;
}

.layer-group {
  border-radius: 50%;
  background: #8a63d2;
}

.site-health {
  margin-top: 30px;
  padding: 14px;
  border: 1px solid #dbeee5;
  border-radius: 12px;
  background: #f2faf6;
}

.site-health div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-health strong {
  color: #247954;
  font-size: 0.68rem;
}

.site-health p {
  margin: 5px 0 0 17px;
  color: #71917f;
  font-size: 0.61rem;
}

.health-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #35bd83;
  box-shadow: 0 0 0 4px rgba(53, 189, 131, 0.1);
}

.planner-main {
  min-width: 0;
  padding: 30px;
}

.planner-heading {
  display: flex;
  min-height: 67px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
}

.planner-kicker {
  margin: 0 0 5px;
  color: #7d8b9b;
  font-size: 0.66rem;
}

.planner-heading h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.planner-heading > div > p:last-child {
  margin: 7px 0 0;
  color: var(--demo-muted);
  font-size: 0.78rem;
}

.heading-actions,
.inspector-actions {
  display: flex;
  gap: 9px;
}

.outline-action,
.primary-action {
  display: inline-flex;
  min-height: 39px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 720;
}

.outline-action {
  border: 1px solid var(--demo-line);
  color: #536274;
  background: var(--demo-white);
}

.outline-action:hover,
.outline-action:focus-visible {
  border-color: #9ecbde;
  color: #086da8;
}

.primary-action {
  border: 1px solid var(--demo-blue);
  color: var(--demo-white);
  background: linear-gradient(135deg, #0b88d2, #0878c9);
  box-shadow: 0 7px 20px rgba(8, 120, 201, 0.17);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #066ead;
}

.outline-action svg {
  width: 16px;
}

.view-panel {
  display: none;
  margin-top: 25px;
}

.view-panel.is-active {
  display: block;
}

.map-card,
.content-card {
  overflow: hidden;
  border: 1px solid var(--demo-line);
  border-radius: 16px;
  background: var(--demo-white);
  box-shadow: 0 16px 44px rgba(12, 40, 65, 0.07);
}

.map-toolbar {
  display: flex;
  min-height: 55px;
  padding: 0 15px 0 18px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--demo-line);
}

.map-status,
.map-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.map-status {
  color: #758393;
  font-size: 0.68rem;
}

.status-pill {
  display: inline-flex;
  padding: 5px 9px;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  color: #287b58;
  background: #eaf8f1;
  font-weight: 700;
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35bd83;
}

.map-tools {
  gap: 5px;
}

.map-tools button {
  min-width: 31px;
  height: 31px;
  padding: 0 9px;
  border: 1px solid var(--demo-line);
  border-radius: 7px;
  color: #647385;
  background: var(--demo-white);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 650;
}

.map-tools button:hover,
.map-tools button:focus-visible {
  border-color: #9ecbde;
  color: var(--demo-blue);
}

.map-tools span {
  min-width: 45px;
  color: #718091;
  font-size: 0.64rem;
  text-align: center;
}

.map-viewport {
  position: relative;
  min-height: 570px;
  overflow: auto;
  background: #dfeadf;
}

.map-stage {
  position: relative;
  width: 100%;
  min-width: 720px;
  height: 570px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(80, 134, 75, 0.16), transparent 18%),
    radial-gradient(circle at 82% 72%, rgba(65, 120, 74, 0.13), transparent 23%),
    linear-gradient(143deg, #dce8d9, #e8eee2);
  transform-origin: center;
  transition: transform 180ms ease;
}

.map-stage::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(45, 88, 57, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 88, 57, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
}

.river {
  position: absolute;
  top: -120px;
  right: 4%;
  width: 150px;
  height: 830px;
  border-right: 2px solid rgba(255, 255, 255, 0.6);
  border-left: 2px solid rgba(255, 255, 255, 0.6);
  background:
    repeating-linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.24) 0,
      rgba(255, 255, 255, 0.24) 2px,
      transparent 2px,
      transparent 17px
    ),
    linear-gradient(90deg, #91cfe0, #78bdd6);
  transform: rotate(11deg);
}

.river-bank {
  position: absolute;
  top: -80px;
  right: 20%;
  width: 15px;
  height: 780px;
  border-radius: 50%;
  background: rgba(95, 129, 70, 0.23);
  transform: rotate(11deg);
}

.site-road {
  position: absolute;
  border: 1px solid rgba(98, 103, 94, 0.16);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.45) 0,
      rgba(255, 255, 255, 0.45) 7px,
      transparent 7px,
      transparent 20px
    ),
    #bbc0b7;
  background-position: center;
  background-size: auto 2px, auto;
  background-repeat: repeat-x, no-repeat;
  box-shadow: 0 0 0 5px rgba(131, 143, 126, 0.08);
}

.site-road-main {
  bottom: 18%;
  left: -5%;
  width: 85%;
  height: 34px;
  border-radius: 18px;
  transform: rotate(-5deg);
}

.site-road-branch {
  top: 13%;
  bottom: 20%;
  left: 40%;
  width: 31px;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.45) 0,
      rgba(255, 255, 255, 0.45) 7px,
      transparent 7px,
      transparent 20px
    ),
    #bbc0b7;
  background-position: center;
  background-size: 2px auto, auto;
  background-repeat: repeat-y, no-repeat;
  transform: rotate(7deg);
}

.tree-cluster {
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #6ca36c;
  box-shadow:
    22px 8px 0 #7bad72,
    39px -4px 0 #5f9865,
    13px 29px 0 #609962,
    42px 27px 0 #79a971,
    61px 12px 0 #679d67,
    60px 39px 0 #70a56e,
    26px 49px 0 #5f9460;
}

.tree-cluster-one {
  top: 8%;
  left: 6%;
}

.tree-cluster-two {
  right: 27%;
  bottom: 10%;
}

.tree-cluster-three {
  top: 42%;
  left: 24%;
  transform: scale(0.8);
}

.car-park {
  position: absolute;
  bottom: 7%;
  left: 7%;
  display: grid;
  width: 170px;
  height: 73px;
  padding: 12px 14px 20px;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  border: 1px solid rgba(92, 102, 91, 0.23);
  border-radius: 5px;
  background: #cbd0c7;
  transform: rotate(-5deg);
}

.car-park span {
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.car-park small {
  position: absolute;
  right: 0;
  bottom: -20px;
  left: 0;
  color: #667267;
  font-size: 0.56rem;
  font-weight: 650;
  text-align: center;
}

.map-building,
.map-marker {
  position: absolute;
  z-index: 4;
  cursor: pointer;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.map-building {
  display: grid;
  min-width: 115px;
  min-height: 65px;
  padding: 11px 12px;
  align-content: center;
  grid-template-columns: auto 1fr;
  gap: 2px 9px;
  border: 2px solid #087cb8;
  border-radius: 8px;
  color: #073652;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.3) 0,
      rgba(255, 255, 255, 0.3) 4px,
      transparent 4px,
      transparent 10px
    ),
    #91d2e5;
  box-shadow: 0 7px 16px rgba(44, 80, 77, 0.16);
  text-align: left;
}

.map-building:hover,
.map-building:focus-visible,
.map-building.is-selected {
  z-index: 8;
  border-color: #042f4b;
  box-shadow:
    0 0 0 5px rgba(32, 198, 239, 0.22),
    0 11px 24px rgba(28, 60, 68, 0.23);
  transform: translateY(-3px);
}

.building-code {
  display: grid;
  width: 24px;
  height: 24px;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 6px;
  color: var(--demo-white);
  background: #086b9f;
  font-size: 0.66rem;
  font-weight: 850;
}

.building-name {
  align-self: end;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
}

.occupancy-badge {
  justify-self: start;
  padding: 2px 6px;
  border-radius: 999px;
  color: #5a3d98;
  background: #ede5fb;
  font-size: 0.52rem;
  font-weight: 850;
}

.occupancy-badge::before {
  content: "● ";
  color: #8a63d2;
}

.building-lodge {
  top: 13%;
  left: 24%;
  width: 145px;
  transform: rotate(4deg);
}

.building-lodge:hover,
.building-lodge:focus-visible,
.building-lodge.is-selected {
  transform: rotate(4deg) translateY(-3px);
}

.building-hall {
  top: 19%;
  left: 49%;
  width: 160px;
  min-height: 82px;
  transform: rotate(-3deg);
}

.building-hall:hover,
.building-hall:focus-visible,
.building-hall.is-selected {
  transform: rotate(-3deg) translateY(-3px);
}

.building-cabins {
  top: 52%;
  left: 49%;
  width: 180px;
  transform: rotate(3deg);
}

.building-cabins:hover,
.building-cabins:focus-visible,
.building-cabins.is-selected {
  transform: rotate(3deg) translateY(-3px);
}

.building-store {
  top: 34%;
  right: 13%;
  min-width: 105px;
  min-height: 56px;
  transform: rotate(6deg);
}

.building-store:hover,
.building-store:focus-visible,
.building-store.is-selected {
  transform: rotate(6deg) translateY(-3px);
}

.building-workshop {
  bottom: 24%;
  left: 19%;
  width: 125px;
  transform: rotate(-4deg);
}

.building-workshop:hover,
.building-workshop:focus-visible,
.building-workshop.is-selected {
  transform: rotate(-4deg) translateY(-3px);
}

.map-marker {
  display: grid;
  width: 41px;
  height: 41px;
  padding: 0;
  place-items: center;
  border: 3px solid var(--demo-white);
  border-radius: 50%;
  color: var(--demo-white);
  background: #df4f4d;
  box-shadow:
    0 0 0 3px rgba(212, 66, 65, 0.18),
    0 7px 16px rgba(69, 63, 55, 0.2);
  font-size: 0.85rem;
  font-weight: 900;
}

.map-marker small {
  position: absolute;
  top: 44px;
  left: 50%;
  width: max-content;
  padding: 3px 6px;
  border-radius: 4px;
  color: #6b3b3a;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.51rem;
  font-weight: 750;
  transform: translateX(-50%);
}

.map-marker:hover,
.map-marker:focus-visible,
.map-marker.is-selected {
  z-index: 8;
  box-shadow:
    0 0 0 6px rgba(212, 66, 65, 0.23),
    0 9px 20px rgba(69, 63, 55, 0.26);
  transform: translateY(-3px);
}

.marker-first-aid {
  top: 39%;
  left: 42%;
}

.marker-assembly {
  right: 26%;
  bottom: 13%;
  background: #e28a35;
}

.marker-fire {
  top: 12%;
  right: 29%;
}

.map-label {
  position: absolute;
  z-index: 2;
  color: rgba(54, 87, 69, 0.65);
  font-size: 0.55rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.label-river {
  top: 47%;
  right: 4%;
  color: rgba(28, 102, 126, 0.73);
  transform: rotate(79deg);
}

.label-entrance {
  bottom: 15%;
  left: 1%;
  transform: rotate(-5deg);
}

[data-layer-item].is-hidden {
  opacity: 0;
  pointer-events: none;
}

.map-building.search-hidden,
.map-marker.search-hidden {
  opacity: 0.16;
}

.map-legend {
  display: flex;
  min-height: 46px;
  padding: 0 18px;
  align-items: center;
  flex-wrap: wrap;
  gap: 17px;
  border-top: 1px solid var(--demo-line);
  color: #718091;
  font-size: 0.61rem;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-legend i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.legend-building {
  border: 1px solid #087cb8;
  background: #91d2e5;
}

.legend-occupied {
  border-radius: 50% !important;
  background: #8a63d2;
}

.legend-safety {
  border-radius: 50% !important;
  background: #df4f4d;
}

.legend-selected {
  border: 2px solid #073652;
  background: transparent;
  box-shadow: 0 0 0 2px rgba(32, 198, 239, 0.2);
}

.content-card {
  min-height: 570px;
  padding: 24px;
}

.content-card-heading {
  display: flex;
  padding-bottom: 20px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--demo-line);
}

.content-card-heading h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.content-card-heading p {
  margin: 5px 0 0;
  color: var(--demo-muted);
  font-size: 0.73rem;
}

.content-card-heading > span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #647386;
  background: #f0f4f7;
  font-size: 0.63rem;
  font-weight: 700;
}

.locations-list {
  display: grid;
  margin-top: 5px;
}

.location-row {
  display: grid;
  width: 100%;
  min-height: 67px;
  padding: 11px 9px;
  align-items: center;
  grid-template-columns: 42px 1.2fr 0.65fr 0.65fr auto 18px;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #edf1f4;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.location-row:hover,
.location-row:focus-visible,
.location-row.is-selected {
  background: #f3f9fc;
}

.location-symbol {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  color: #0873af;
  background: #e4f4fa;
  font-size: 0.67rem;
  font-weight: 850;
}

.location-primary strong,
.location-primary small {
  display: block;
}

.location-primary strong {
  font-size: 0.76rem;
}

.location-primary small,
.location-meta {
  color: #7b8998;
  font-size: 0.64rem;
}

.location-status {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  color: #267a57;
  background: #e9f7f0;
  font-size: 0.58rem;
  font-weight: 750;
}

.location-chevron {
  color: #8794a2;
  font-size: 1rem;
}

.empty-results {
  padding: 70px 20px;
  color: var(--demo-muted);
  font-size: 0.78rem;
  text-align: center;
}

.group-grid {
  display: grid;
  margin-top: 22px;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.group-card {
  display: grid;
  min-height: 104px;
  padding: 18px;
  align-items: center;
  grid-template-columns: 12px 1fr auto;
  gap: 13px;
  border: 1px solid var(--demo-line);
  border-radius: 12px;
  background: var(--demo-white);
  cursor: pointer;
  text-align: left;
}

.group-card:hover,
.group-card:focus-visible,
.group-card.is-selected {
  border-color: #91c9df;
  background: #f4fafc;
  box-shadow: 0 8px 24px rgba(24, 76, 103, 0.07);
}

.group-colour {
  width: 9px;
  height: 52px;
  border-radius: 999px;
}

.colour-blue {
  background: #167ec1;
}

.colour-cyan {
  background: #24b6d8;
}

.colour-purple {
  background: #8a63d2;
}

.colour-green {
  background: #3ca779;
}

.group-card strong,
.group-card small {
  display: block;
}

.group-card strong {
  font-size: 0.8rem;
}

.group-card small {
  margin-top: 4px;
  color: var(--demo-muted);
  font-size: 0.65rem;
}

.group-status {
  padding: 4px 7px;
  border-radius: 999px;
  color: #247a55;
  background: #eaf8f1;
  font-size: 0.56rem;
  font-weight: 750;
}

.access-list {
  display: grid;
  margin-top: 12px;
}

.access-card {
  display: grid;
  min-height: 102px;
  padding: 18px 7px;
  align-items: center;
  grid-template-columns: 43px 1fr auto;
  gap: 15px;
  border-bottom: 1px solid #edf1f4;
}

.access-icon {
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border-radius: 11px;
}

.access-icon svg {
  width: 21px;
}

.access-public {
  color: #0878c9;
  background: #e5f4fb;
}

.access-group {
  color: #7954bb;
  background: #f0eafb;
}

.access-contractor {
  color: #b97027;
  background: #fbf0e3;
}

.access-card strong {
  font-size: 0.78rem;
}

.access-card p {
  margin: 4px 0 0;
  color: var(--demo-muted);
  font-size: 0.67rem;
}

.access-card small {
  display: block;
  margin-top: 5px;
  color: #98a3af;
  font-size: 0.58rem;
}

.switch {
  position: relative;
  display: block;
  width: 37px;
  height: 21px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c8d1d9;
  transition: background 160ms ease;
}

.switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  content: "";
  background: var(--demo-white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
  transition: transform 160ms ease;
}

.switch input:checked + span {
  background: #1da977;
}

.switch input:checked + span::after {
  transform: translateX(16px);
}

.switch input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(32, 198, 239, 0.17);
}

.access-footer {
  display: flex;
  padding-top: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.access-footer p {
  margin: 0;
  color: #8a96a3;
  font-size: 0.64rem;
}

.inspector-panel {
  padding: 20px;
  border-left: 1px solid var(--demo-line);
}

.inspector-empty {
  display: grid;
  min-height: 440px;
  padding: 50px 20px;
  place-content: center;
  justify-items: center;
  color: #7b8998;
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 17px;
  place-items: center;
  border-radius: 17px;
  color: #7aa5ba;
  background: #edf5f8;
}

.empty-icon svg {
  width: 27px;
}

.inspector-empty strong {
  color: #48586a;
  font-size: 0.78rem;
}

.inspector-empty p {
  max-width: 210px;
  margin: 7px 0 0;
  font-size: 0.67rem;
}

.inspector-content[hidden] {
  display: none;
}

.inspector-image {
  display: flex;
  min-height: 108px;
  padding: 18px;
  align-items: flex-end;
  gap: 12px;
  border-radius: 13px;
  color: var(--demo-white);
  background:
    radial-gradient(circle at 85% 10%, rgba(32, 198, 239, 0.3), transparent 35%),
    linear-gradient(140deg, #0c3158, #091a2d);
}

.inspector-image > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.75rem;
  font-weight: 850;
}

.inspector-image small,
.inspector-image strong {
  display: block;
}

.inspector-image small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inspector-image strong {
  margin-top: 2px;
  font-size: 0.91rem;
}

.inspector-section {
  padding: 20px 2px;
  border-bottom: 1px solid var(--demo-line);
}

.inspector-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inspector-title-row h2 {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: -0.01em;
}

.inspector-section > p {
  margin: 8px 0 0;
  color: var(--demo-muted);
  font-size: 0.67rem;
}

.availability-pill {
  padding: 3px 7px;
  border-radius: 999px;
  color: #277b58;
  background: #e8f7ef;
  font-size: 0.54rem;
  font-weight: 750;
}

.details-list {
  display: grid;
  margin: 0;
  padding: 13px 2px;
  border-bottom: 1px solid var(--demo-line);
}

.details-list div {
  display: grid;
  min-height: 37px;
  align-items: center;
  grid-template-columns: 83px 1fr;
  gap: 8px;
}

.details-list dt {
  color: #929eaa;
  font-size: 0.6rem;
}

.details-list dd {
  margin: 0;
  color: #4f5f70;
  font-size: 0.63rem;
  font-weight: 650;
}

.rooms-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.room-row {
  display: flex;
  min-height: 32px;
  padding: 0 9px;
  align-items: center;
  justify-content: space-between;
  border-radius: 7px;
  color: #5b6a7b;
  background: #f4f7f9;
  font-size: 0.61rem;
}

.room-row span:last-child {
  color: #8794a0;
}

.inspector-actions {
  padding-top: 18px;
}

.inspector-actions button {
  flex: 1;
  padding: 0 8px;
}

.demo-toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  display: flex;
  min-width: 290px;
  max-width: min(390px, calc(100vw - 32px));
  min-height: 54px;
  padding: 12px 16px;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  color: var(--demo-white);
  background: #0a1b2e;
  box-shadow: 0 18px 50px rgba(4, 19, 34, 0.23);
  font-size: 0.72rem;
}

.demo-toast[hidden] {
  display: none;
}

.toast-icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #073520;
  background: #53d89f;
  font-weight: 900;
}

.viewer-mode .admin-only {
  display: none !important;
}

.viewer-mode #viewer-mode-button {
  border-color: #4bd39b;
  color: #82e9bd;
  background: rgba(75, 211, 155, 0.1);
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 224px;
    --inspector-width: 286px;
  }

  .planner-layout {
    grid-template-columns: var(--sidebar-width) minmax(500px, 1fr) var(--inspector-width);
  }

  .planner-main {
    padding: 25px 22px;
  }

  .topbar-button span {
    display: none;
  }

  .topbar-button {
    width: 39px;
    padding: 0;
    justify-content: center;
  }

  .topbar-exit span {
    display: none;
  }
}

@media (max-width: 960px) {
  :root {
    --sidebar-width: 220px;
  }

  .planner-topbar {
    grid-template-columns: var(--sidebar-width) 1fr auto;
  }

  .planner-layout {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }

  .inspector-panel {
    position: static;
    top: auto;
    height: auto;
    grid-column: 2;
    padding: 22px;
    border-top: 1px solid var(--demo-line);
    border-left: 0;
  }

  .inspector-empty {
    min-height: 180px;
  }

  .inspector-content {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0 22px;
  }

  .inspector-image {
    grid-row: 1 / span 3;
    min-height: 190px;
    align-items: flex-end;
  }

  .inspector-actions {
    grid-column: 2;
  }

}

@media (max-width: 760px) {
  :root {
    --topbar-height: 64px;
  }

  .planner-topbar {
    height: var(--topbar-height);
    padding: 0 14px;
    grid-template-columns: 1fr auto;
  }

  .planner-brand small,
  .workspace-title,
  .demo-badge {
    display: none;
  }

  .planner-brand-mark {
    width: 35px;
    height: 35px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .mobile-demo-note {
    position: fixed;
    z-index: 50;
    top: var(--topbar-height);
    right: 0;
    left: 0;
    display: flex;
    height: 45px;
    padding: 0 14px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--demo-line);
    color: #6f7d8c;
    background: var(--demo-white);
    font-size: 0.67rem;
    font-weight: 700;
  }

  .mobile-demo-note button {
    padding: 6px 11px;
    border: 1px solid var(--demo-line);
    border-radius: 7px;
    color: var(--demo-blue);
    background: var(--demo-white);
    font-size: 0.65rem;
    font-weight: 750;
  }

  .planner-layout {
    display: block;
    padding-top: calc(var(--topbar-height) + 45px);
  }

  .planner-sidebar {
    position: fixed;
    z-index: 45;
    top: calc(var(--topbar-height) + 45px);
    bottom: 0;
    left: -310px;
    width: min(290px, calc(100vw - 48px));
    height: auto;
    box-shadow: 20px 0 50px rgba(5, 22, 39, 0.18);
    transform: none;
    transition: none;
  }

  .planner-sidebar.is-open {
    left: 0;
  }

  .planner-main {
    padding: 22px 14px;
  }

  .planner-heading {
    display: grid;
  }

  .heading-actions {
    width: 100%;
  }

  .heading-actions button {
    flex: 1;
  }

  .view-panel {
    margin-top: 18px;
  }

  .map-toolbar {
    padding: 10px 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .map-tools {
    width: 100%;
  }

  .map-tools button:last-child {
    margin-left: auto;
  }

  .map-viewport {
    min-height: 500px;
  }

  .map-stage {
    height: 500px;
    min-width: 670px;
  }

  .content-card {
    min-height: 480px;
    padding: 17px;
  }

  .location-row {
    grid-template-columns: 39px 1fr auto;
  }

  .location-meta,
  .location-status {
    display: none;
  }

  .group-grid {
    grid-template-columns: 1fr;
  }

  .access-card {
    grid-template-columns: 40px 1fr auto;
  }

  .inspector-panel {
    padding: 20px 14px 30px;
  }

  .inspector-content {
    display: block;
  }

  .inspector-image {
    min-height: 140px;
  }

  .demo-toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    min-width: 0;
  }
}

@media (max-width: 430px) {
  .planner-brand strong {
    font-size: 0.73rem;
  }

  .topbar-exit {
    display: none;
  }

  .planner-heading h1 {
    font-size: 1.55rem;
  }

  .map-status > span:last-child {
    display: none;
  }

  .map-legend {
    padding: 10px 13px;
    gap: 10px 14px;
  }

  .content-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .group-card {
    grid-template-columns: 10px 1fr;
  }

  .group-status {
    grid-column: 2;
    justify-self: start;
  }

  .access-card {
    align-items: start;
  }

  .access-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
