:root {
  color-scheme: light;
  --canvas: #eeefec;
  --canvas-deep: #e4e6e2;
  --surface: #fbfbfa;
  --surface-solid: #ffffff;
  --surface-muted: #f2f3f0;
  --ink: #171a19;
  --ink-soft: #565d59;
  --ink-faint: #858b87;
  --line: #dde0dc;
  --line-strong: #cdd1cc;
  --mint: #5aa786;
  --mint-deep: #34765d;
  --mint-soft: #e8f1ed;
  --coral: #bd7068;
  --coral-deep: #8d4e48;
  --coral-soft: #f4e9e7;
  --violet: #5f6f9f;
  --violet-deep: #425179;
  --violet-soft: #e9ecf3;
  --amber: #b58a54;
  --amber-soft: #f3ede3;
  --brand-acid: #c8ff3d;
  --brand-acid-soft: #efffc8;
  --shadow-sm: 0 2px 8px rgba(28, 35, 31, 0.07), 0 12px 28px rgba(28, 35, 31, 0.04);
  --shadow-md: 0 8px 24px rgba(28, 35, 31, 0.08), 0 28px 64px rgba(28, 35, 31, 0.06);
  --shadow-lg: 0 20px 70px rgba(22, 28, 25, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --ease-out: cubic-bezier(0.22, 0.72, 0.24, 1);
}

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

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, ui-sans-serif, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

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

svg path,
svg line,
svg circle,
svg rect,
svg polyline {
  vector-effect: non-scaling-stroke;
}

.sidebar svg,
.topbar svg,
.map-controls svg,
.booking-panel svg,
.bookings-view svg,
.mobile-nav svg,
.toast svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.room:focus-visible {
  outline: 2px solid rgba(66, 81, 121, 0.68);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  isolation: isolate;
}

.sidebar {
  position: relative;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 18px 12px;
  border-right: 1px solid #293640;
  color: #e1e9f0;
  background: #35434f;
  box-shadow: 4px 0 18px rgba(16, 25, 34, 0.12);
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 56px;
  place-items: center;
  margin-bottom: 10px;
  border: 0;
  background: transparent;
  text-decoration: none;
}

.brand-mark img {
  width: auto;
  max-width: 42px;
  height: 50px;
  display: block;
  object-fit: contain;
}

.sidebar nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.nav-button,
.control-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  color: var(--ink-soft);
  background: transparent;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms var(--ease-out);
}

.nav-button {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 10px;
}

.nav-button > span:not(.nav-count),
.sidebar-spacer {
  display: none;
}

.nav-count {
  position: absolute;
  top: 2px;
  right: 1px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #f8f7f4;
  border-radius: 999px;
  color: #fff;
  background: var(--coral);
  font-size: 0.58rem;
  font-weight: 800;
}

.nav-count:empty,
.nav-count[data-count="0"] {
  display: none;
}

.nav-button svg,
.control-button svg,
.mobile-nav svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.nav-button:hover,
.nav-button.is-active,
.nav-button[aria-current="page"] {
  color: var(--violet-deep);
  background: #fff;
  box-shadow: 0 1px 4px rgba(23, 25, 24, 0.08);
}

.nav-button.is-active::before,
.nav-button[aria-current="page"]::before {
  position: absolute;
  left: -12px;
  width: 3px;
  height: 20px;
  border-radius: 0 2px 2px 0;
  background: var(--violet);
  content: "";
}

.nav-button:hover,
.control-button:hover {
  transform: translateY(-1px);
}

.sidebar .nav-button {
  color: #d6e1eb;
}

.sidebar .nav-button:hover,
.sidebar .nav-button.is-active,
.sidebar .nav-button[aria-current="page"] {
  color: #fff;
  background: #4b5e6f;
  box-shadow: 0 1px 4px rgba(9, 16, 23, 0.16);
}

.sidebar .nav-button.is-active::before,
.sidebar .nav-button[aria-current="page"]::before {
  background: #d3e4f4;
}

.sidebar .nav-count {
  border-color: #35434f;
}

.sidebar .nav-button:focus-visible,
.sidebar .brand-mark:focus-visible {
  outline: 2px solid #d3e4f4;
  outline-offset: 3px;
}

.workspace {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.topbar {
  position: absolute;
  z-index: 30;
  top: 18px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 40px);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(251, 251, 250, 0.97);
  box-shadow: var(--shadow-md);
}

.topbar-title {
  display: grid;
  min-width: 116px;
  padding: 0 12px 0 10px;
  line-height: 1.15;
}

.topbar-title .eyebrow {
  color: var(--ink-faint);
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar-title strong {
  margin-top: 4px;
  font-size: 0.91rem;
  font-weight: 680;
  letter-spacing: -0.015em;
}

.filter-row {
  display: flex;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 42px;
  padding: 0 3px;
  border-right: 1px solid var(--line);
}

.filter-label {
  display: none;
}

.filter-control {
  display: flex;
  align-items: center;
  color: var(--ink-soft) !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.filter-control svg {
  width: 17px;
  height: 17px;
  margin-left: 9px;
  stroke-width: 1.7;
}

.filter-control input,
.filter-control select {
  max-width: 136px;
}

.availability-spark {
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-radius: 50%;
  background: var(--mint-deep);
  box-shadow: 0 0 0 3px rgba(52, 118, 93, 0.11);
}

.topbar-action {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--ink-soft);
  background: transparent;
}

.topbar-action:hover {
  color: var(--violet-deep);
  background: var(--violet-soft);
}

.topbar-action svg {
  width: 20px;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--coral-deep);
}

.filter-group:last-child {
  border-right: 0;
}

.filter-group > label,
.filter-group > span {
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.filter-group select,
.filter-group input,
.filter-group button {
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 600;
}

.filter-group select,
.filter-group input {
  padding: 0 30px 0 10px;
}

.filter-group button {
  padding: 0 12px;
}

.filter-group select:hover,
.filter-group input:hover,
.filter-group button:hover {
  background: var(--surface-muted);
}

.map-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: var(--canvas);
  background-image:
    linear-gradient(rgba(92, 101, 96, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 101, 96, 0.055) 1px, transparent 1px);
  background-position: center;
  background-size: 48px 48px;
  touch-action: none;
  user-select: none;
}

.map-stage::before {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 110px rgba(48, 56, 52, 0.08);
  content: "";
  pointer-events: none;
}

.map-heading {
  position: absolute;
  z-index: 20;
  top: 102px;
  left: 24px;
  max-width: 292px;
  pointer-events: none;
}

.map-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mint-deep);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.map-kicker > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-deep);
  box-shadow: 0 0 0 4px rgba(52, 118, 93, 0.1);
}

.map-heading h1 {
  margin: 9px 0 6px;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 660;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.map-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.map-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 286px;
  margin: 16px 0 0;
  overflow: hidden;
  border: 1px solid rgba(23, 26, 25, 0.09);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(27, 34, 30, 0.07);
}

.map-metrics > div {
  min-width: 0;
  padding: 10px 11px 11px;
}

.map-metrics > div + div {
  border-left: 1px solid var(--line);
}

.map-metrics dt,
.map-metrics dd {
  margin: 0;
}

.map-metrics dt {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.map-metrics dd {
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.scene-shell {
  position: relative;
  width: min(1160px, calc(100% - 120px), calc((100dvh - 136px) * 1.4634146341));
  margin: 44px 0 0 120px;
  aspect-ratio: 1200 / 820;
}

#floorplan {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

#floorplan text {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: none;
}

.floor-base,
.floor-slab {
  fill: url(#floorGradient);
  stroke: #fff;
  stroke-width: 2.4;
}

.floor-edge,
.floor-side {
  fill: #bec4bf;
  stroke: rgba(73, 82, 77, 0.22);
  stroke-width: 1.5;
}

.floor-edge-east,
.floor-side--edge {
  fill: #a8b1ab;
}

.floor-edge-south,
.floor-side--front {
  fill: #d3d7d3;
}

.floor-shadow {
  fill: rgba(36, 43, 39, 0.16);
}

.zone {
  fill: rgba(239, 241, 237, 0.82);
  stroke: rgba(58, 68, 63, 0.09);
  stroke-width: 1.2;
}

.zone--focus {
  fill: rgba(244, 245, 241, 0.92);
}

.zone-fill {
  fill: rgba(229, 235, 231, 0.84);
  stroke: rgba(60, 74, 67, 0.12);
  stroke-width: 1.5;
}

.zone-focus {
  fill: rgba(238, 239, 236, 0.9);
}

.zone-collab,
.zone--collaboration {
  fill: url(#atriumGradient);
}

.facade-band {
  fill: rgba(183, 209, 210, 0.46);
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 1.2;
}

.circulation-spine {
  fill: rgba(213, 217, 211, 0.62);
  stroke: rgba(76, 86, 80, 0.16);
  stroke-dasharray: 5 6;
  stroke-width: 1.15;
}

.service-core {
  fill: rgba(35, 41, 38, 0.86);
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1.2;
}

.service-core-label {
  fill: rgba(255, 255, 255, 0.88);
  font-size: 7px;
  font-weight: 720;
  letter-spacing: 0.13em;
}

.entrance-marker {
  fill: var(--brand-acid);
  stroke: #202522;
  stroke-width: 1.5;
}

.entrance-symbol {
  fill: #202522;
  font-size: 12px;
  font-weight: 820;
}

.corridor-line {
  fill: none;
  stroke: rgba(94, 104, 98, 0.16);
  stroke-dasharray: 5 8;
  stroke-width: 2;
}

.zone-label,
.place-label {
  fill: rgba(36, 44, 40, 0.68);
  font-size: 13px;
  font-weight: 680;
  letter-spacing: 0.11em;
  text-anchor: middle;
}

.zone-sublabel {
  fill: rgba(60, 70, 65, 0.54);
  font-size: 10px;
  font-weight: 560;
  text-anchor: middle;
}

.kitchen-island polygon,
.collab-table ellipse,
.desk-cluster polygon {
  fill: #d4d5d1;
  stroke: #fff;
  stroke-width: 2;
}

.static-decor {
  filter: drop-shadow(0 4px 2px rgba(39, 46, 42, 0.12));
}

.kitchen-island ellipse,
.collab-table circle,
.desk-cluster circle {
  fill: #aeb3af;
  stroke: #f5f4f1;
  stroke-width: 2;
}

.desk-cluster line {
  stroke: rgba(62, 69, 65, 0.17);
  stroke-width: 2;
}

.plant circle {
  fill: #6b9f7f;
  stroke: #e5eee8;
  stroke-width: 2;
}

.plant .plant-pot {
  fill: #c59e7b;
  stroke: #fff;
  stroke-width: 2;
}

.room.is-filtered {
  opacity: 0.16;
  pointer-events: none;
}

.room {
  --room-top: #f7f8f6;
  --room-side: #c8cdc9;
  --room-wall: #fafbf9;
  --room-accent: var(--mint);
  --room-accent-side: var(--mint-deep);
  cursor: pointer;
  outline: none;
  transition: opacity 180ms ease;
}

.room-object {
  transition: opacity 180ms ease;
}

.room-shadow {
  fill: rgba(28, 34, 31, 0.16);
  pointer-events: none;
}

.room-label-group {
  pointer-events: none;
  transition: opacity 180ms ease;
}

.room-label-plate {
  fill: rgba(255, 255, 255, 0.95);
  stroke: rgba(80, 89, 84, 0.18);
  stroke-width: 1.1;
}

.room-label-group.is-selected .room-label-plate {
  stroke: var(--violet);
  stroke-width: 1.7;
}

.room-status-ring {
  fill: #fff;
  stroke-width: 2;
}

.room:hover,
.room:focus-visible {
  --room-top: #fff;
}

.room:hover .room-top,
.room:focus-visible .room-top {
  stroke: #65776c;
}

.room-top {
  fill: var(--room-top);
  stroke: rgba(255, 255, 255, 0.98);
  stroke-width: 2.2;
  transition: fill 180ms ease, stroke 180ms ease;
}

.room-side {
  fill: var(--room-side);
  stroke: rgba(26, 31, 28, 0.18);
  stroke-width: 1;
  transition: fill 180ms ease;
}

.room-side--front {
  fill: #d5d9d5;
}

.room-side--right {
  fill: #b9c0bb;
}

.room-wall {
  fill: var(--room-wall);
  stroke: rgba(53, 60, 56, 0.17);
  stroke-width: 1.5;
}

.room-wall--back {
  fill: #fff;
}

.room-wall--side {
  fill: #dce3df;
}

.wall-ao,
.room-ao,
.room-skirting {
  fill: none;
  stroke: rgba(43, 51, 47, 0.2);
  stroke-linecap: round;
  stroke-width: 1.4;
  pointer-events: none;
}

.room-label {
  fill: #202421;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: -0.01em;
  stroke: none;
}

.room-meta {
  fill: #565f59;
  font-size: 9px;
  font-weight: 560;
  stroke: none;
}

.room-icon {
  fill: rgba(255, 255, 255, 0.94);
  stroke: rgba(25, 29, 27, 0.18);
  stroke-width: 1.2;
}

.room-dot {
  fill: var(--room-accent);
  stroke: #fff;
  stroke-width: 3;
}

.room-status-dot--available { fill: var(--mint); }
.room-status-dot--soon { fill: var(--amber); }
.room-status-dot--busy { fill: var(--coral); }
.room-status-dot--blocked { fill: #aeb3af; }

.room-label-group.is-selected .room-dot {
  fill: var(--violet);
}

.furniture {
  pointer-events: none;
  transition: opacity 180ms ease;
}

.furniture-table,
.furniture-focus-desk {
  fill: #ebe7df;
  stroke: rgba(79, 72, 64, 0.23);
  stroke-width: 1.35;
}

.furniture-table--round {
  fill: #e9e3d9;
}

.furniture-table--desk {
  fill: #e5dfd5;
}

.furniture-chair {
  fill: #5f6964;
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 1.25;
}

.furniture-chair-shadow {
  fill: rgba(35, 42, 38, 0.17);
}

.furniture-chair-back {
  fill: none;
  stroke: #46544e;
  stroke-linecap: round;
}

/* Architectural room materials. */
.room-carpet {
  fill: color-mix(in srgb, var(--room-accent) 14%, #eceeea 86%);
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 1.4;
  transition: fill 180ms ease, stroke 180ms ease;
}

.room-carpet-glow {
  fill: none;
  stroke: color-mix(in srgb, var(--room-accent) 54%, white 46%);
  stroke-width: 2.5;
  opacity: 0.18;
  pointer-events: none;
}

.room-carpet-side {
  fill: color-mix(in srgb, var(--room-accent-side) 72%, #8f9993 28%);
  stroke: rgba(47, 55, 51, 0.14);
  stroke-width: 0.9;
}

.wall-cap {
  fill: #fff;
  stroke: rgba(111, 120, 115, 0.14);
  stroke-width: 1.1;
}

.room-glass,
.room-window {
  fill: rgba(203, 216, 220, 0.42);
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 1.25;
}

.room-window-highlight {
  fill: none;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 1;
  opacity: 0.9;
}

.room-door {
  fill: #eef0ed;
  stroke: rgba(60, 68, 64, 0.24);
  stroke-width: 1.2;
}

.room-door-swing {
  fill: none;
  stroke: rgba(91, 101, 96, 0.34);
  stroke-dasharray: 2 2;
  stroke-width: 1;
}

.room-light {
  fill: rgba(255, 255, 255, 0.28);
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 0.8;
  pointer-events: none;
}

.glass-frame {
  fill: none;
  stroke: rgba(102, 120, 130, 0.36);
  stroke-width: 1.2;
}

.furniture-table-edge,
.desk-bank-edge {
  fill: #c2ae94;
  stroke: rgba(80, 67, 53, 0.2);
  stroke-width: 1;
}

.furniture-leg,
.desk-leg {
  fill: none;
  stroke: #747d78;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.furniture-monitor,
.desk-screen {
  fill: #353d39;
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 1;
}

.monitor-screen {
  fill: none;
  stroke: #83b9a2;
  stroke-width: 0.75;
}

.furniture-monitor.monitor-screen {
  fill: #303a36;
  stroke: #eaf8f2;
}

.monitor-screen-glow {
  fill: none;
  stroke: #83b9a2;
  stroke-linecap: round;
}

.monitor-stand {
  fill: none;
  stroke: #666f6a;
  stroke-width: 1.25;
}

.desk-bank {
  fill: #f4f4f0;
  stroke: rgba(66, 73, 69, 0.22);
  stroke-width: 1.25;
}

.desk-bank--front {
  fill: #c6cbc7;
}

.desk-bank--side {
  fill: #aab1ac;
}

.desk-bank--top {
  fill: #f8f8f5;
}

.lounge-sofa--front,
.workshop-table--front {
  fill: #aab6b0;
}

.lounge-sofa--side,
.workshop-table--side {
  fill: #86938d;
}

.lounge-sofa--top,
.workshop-table--top {
  fill: #d9e0dc;
}

.furniture-surface-highlight {
  fill: rgba(255, 255, 255, 0.72);
  stroke: none;
  pointer-events: none;
}

.furniture-shadow {
  fill: rgba(32, 38, 35, 0.14);
  stroke: none;
}

.plant-pot,
.furniture-plant-pot {
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 1.25;
}

.plant-leaf,
.furniture-plant-leaf {
  stroke: #e1ece5;
  stroke-width: 1.1;
}

.occupant {
  pointer-events: none;
}

.occupant-shadow {
  fill: rgba(27, 31, 29, 0.17);
}

.occupant-body {
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 0.9;
}

.occupant-head {
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 0.9;
}

.occupant-hair {
  fill: #594337;
}

.avatar-badge {
  stroke: rgba(255, 255, 255, 0.98);
  stroke-width: 2.5;
}

.avatar-ring {
  fill: #fff;
  stroke-width: 2.2;
}

.avatar-presence {
  fill: var(--mint);
  stroke: #fff;
  stroke-width: 1.4;
}

.avatar-initials {
  fill: #fff;
  stroke: none;
  font-size: 7px;
  font-weight: 700;
  text-anchor: middle;
}

.capacity-badge {
  fill: rgba(255, 255, 255, 0.96);
  stroke: rgba(62, 70, 66, 0.18);
  stroke-width: 1;
}

.capacity-badge-text {
  fill: #3b413e;
  stroke: none;
  font-size: 7px;
  font-weight: 680;
  text-anchor: middle;
}

.room.is-available .room-carpet-glow {
  animation: none;
}

.room.is-selected .room-carpet {
  fill: color-mix(in srgb, var(--brand-acid) 26%, #eceeea 74%);
  stroke: #30362f;
  stroke-width: 2.2;
}

.room.is-selected .room-carpet-glow {
  animation: none;
  opacity: 0.62;
  stroke: var(--violet);
  stroke-width: 3.5;
}

@keyframes availability-breathe {
  0%, 100% { opacity: 0.24; }
  50% { opacity: 0.65; }
}

.room.is-available {
  --room-accent: var(--mint);
  --room-accent-side: #3b7f65;
}

.room.is-busy {
  --room-accent: var(--coral);
  --room-accent-side: #975750;
}

.room.is-soon {
  --room-accent: var(--amber);
  --room-accent-side: #8e6d43;
}

.room.is-blocked {
  --room-accent: #a4aaa6;
  --room-accent-side: #7c837e;
  cursor: not-allowed;
  opacity: 0.7;
}

.room.is-selected {
  --room-accent: var(--violet);
  --room-accent-side: var(--violet-deep);
}

.room.is-selected .room-top {
  stroke: rgba(95, 111, 159, 0.85);
  stroke-width: 2.4;
}

.room.is-selected .wall-cap {
  stroke: rgba(95, 111, 159, 0.52);
  stroke-width: 1.5;
}

.room.is-selected .room-glass {
  fill: rgba(210, 216, 230, 0.52);
  stroke: rgba(255, 255, 255, 0.98);
}

.room-door--handle {
  fill: #65716b;
  stroke: #fff;
  stroke-width: 0.8;
}

#roomsLayer:has(.room.is-selected) .room-object:not(.is-selected),
#labelsLayer:has(.room-label-group.is-selected) .room-label-group:not(.is-selected) {
  opacity: 0.58;
}

.room.is-available:hover .room-carpet,
.room.is-available:focus-visible .room-carpet {
  fill: #d7e5de;
}

.room-tooltip {
  position: absolute;
  z-index: 25;
  width: max-content;
  max-width: 260px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  opacity: 0;
  color: #fff;
  background: rgba(27, 31, 29, 0.96);
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  line-height: 1.35;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.room-tooltip.is-visible {
  opacity: 1;
}

.room-tooltip strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 650;
}

.room-tooltip span {
  color: rgba(255, 255, 255, 0.72);
}

.map-controls {
  position: absolute;
  z-index: 25;
  right: 22px;
  bottom: 24px;
  display: grid;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(251, 251, 250, 0.97);
  box-shadow: var(--shadow-sm);
}

.control-button {
  width: 38px;
  height: 38px;
  border-radius: 7px;
}

.control-button:hover {
  color: var(--violet-deep);
  background: #fff;
  box-shadow: 0 2px 7px rgba(23, 25, 24, 0.08);
}

.status-legend {
  position: absolute;
  z-index: 20;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-soft);
  background: rgba(251, 251, 250, 0.97);
  box-shadow: var(--shadow-sm);
  font-size: 0.72rem;
  font-weight: 590;
}

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

.status-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 13%, transparent);
}

.status-legend .available { color: var(--mint-deep); }
.status-legend .busy { color: var(--coral-deep); }
.status-legend .soon { color: #8e6d43; }

.legend-dot.is-available { color: var(--mint-deep); }
.legend-dot.is-busy { color: var(--coral-deep); }
.legend-dot.is-soon { color: #8e6d43; }
.legend-dot.is-blocked { color: #7d827f; }

.panel-backdrop {
  position: fixed;
  z-index: 49;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background: rgba(20, 24, 22, 0.22);
  pointer-events: none;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.panel-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.booking-panel {
  position: fixed;
  z-index: 50;
  top: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  width: min(430px, calc(100vw - 32px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-lg);
  visibility: hidden;
  transform: translateX(calc(100% + 30px));
  transition: transform 380ms var(--ease-out), visibility 380ms ease;
}

.booking-panel.is-open {
  visibility: visible;
  transform: translateX(0);
}

.panel-handle {
  display: none;
}

.panel-topline {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 12px;
}

.panel-kicker {
  color: var(--violet-deep);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: var(--surface-solid);
}

.icon-button:hover {
  color: var(--violet-deep);
  background: var(--violet-soft);
}

.icon-button svg {
  width: 18px;
}

.booking-panel header,
.booking-panel .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
}

.booking-panel header h2,
.booking-panel .panel-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 660;
  letter-spacing: -0.01em;
}

.booking-panel .close-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: var(--surface-solid);
}

.booking-panel .close-button:hover {
  color: var(--ink);
  background: #fff;
}

.booking-form {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  overflow: auto;
  padding: 4px 20px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 25, 24, 0.2) transparent;
}

.room-hero {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 22px;
  border-radius: 14px;
  color: #fff;
  background: #28302c;
}

.booking-panel .room-hero {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 112px;
  margin: 0 20px 12px;
  padding: 18px;
}

.room-hero-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
}

.room-hero-icon svg {
  width: 25px;
}

.room-hero h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 660;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.room-hero > div:nth-child(2) {
  min-width: 0;
}

.room-hero > .status-pill {
  align-self: start;
  white-space: nowrap;
}

.equipment-row {
  display: flex;
  min-height: 32px;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 20px 14px;
}

.equipment-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-muted);
  font-size: 0.66rem;
  font-weight: 600;
}

.availability-overview {
  margin: 0 20px 17px;
  padding: 13px 14px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f8f5;
}

.availability-overview__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 620;
}

.availability-overview__header strong {
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.availability-timeline {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: 2px;
  height: 22px;
  padding: 3px;
  border-radius: 6px;
  background: #e9ece8;
}

.timeline-slot {
  min-width: 0;
  border-radius: 2px;
  background: #a9cfbf;
  box-shadow: inset 0 0 0 1px rgba(34, 87, 65, 0.05);
}

.timeline-slot.is-busy {
  background: #d8aaa5;
  box-shadow: inset 0 0 0 1px rgba(103, 46, 41, 0.06);
}

.timeline-slot.is-soon {
  background: #d9c29f;
}

.timeline-slot.is-selected {
  position: relative;
  z-index: 1;
  background: var(--brand-acid);
  box-shadow: 0 0 0 1.5px #202522;
}

.timeline-slot.is-busy.is-selected {
  background: var(--coral);
}

.availability-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--ink-faint);
  font-size: 0.54rem;
  font-variant-numeric: tabular-nums;
}

.room-hero::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  width: 52px;
  height: 3px;
  border: 0;
  border-radius: 0;
  background: var(--mint);
  content: "";
  transform: none;
}

.room-hero h3 {
  position: relative;
  z-index: 1;
  max-width: 75%;
  margin: 12px 0 5px;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 660;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.room-hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 27px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--mint-deep);
  background: var(--mint-soft);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.status-pill::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.room-hero .status-pill {
  position: relative;
  z-index: 1;
  color: #dceae4;
  background: rgba(255, 255, 255, 0.08);
}

.booking-form section > h3,
.booking-form fieldset > legend {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.booking-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.slot-grid,
.duration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.slot-button,
.duration-button {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: var(--surface-solid);
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.slot-button:hover,
.duration-button:hover {
  border-color: rgba(66, 81, 121, 0.34);
  color: var(--violet-deep);
  background: var(--violet-soft);
  transform: translateY(-1px);
}

.slot-button.is-selected,
.duration-button.is-selected,
.slot-button[aria-pressed="true"],
.duration-button[aria-pressed="true"] {
  border-color: var(--violet);
  color: #fff;
  background: var(--violet);
  box-shadow: 0 3px 9px rgba(66, 81, 121, 0.18);
}

.slot-button:disabled,
.duration-button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
  color: var(--ink-faint);
  background: var(--surface-muted);
  transform: none;
}

.field {
  display: grid;
  gap: 7px;
}

.fieldset-reset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.fieldset-reset legend,
.field > span:first-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 600;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.input-shell > svg {
  position: absolute;
  z-index: 1;
  left: 13px;
  width: 18px;
  color: var(--ink-faint);
  pointer-events: none;
}

.field .input-shell > input,
.field .input-shell > select {
  padding-left: 42px;
}

.attendee-field {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.booking-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-muted);
}

.booking-summary > div {
  display: grid;
  gap: 2px;
}

.booking-summary span {
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.booking-summary strong {
  color: var(--violet-deep);
  font-size: 0.78rem;
}

.summary-price {
  color: var(--mint-deep) !important;
  font-weight: 800;
}

.primary-button svg {
  width: 18px;
}

.form-note {
  margin: -12px 0 0;
  color: var(--ink-faint);
  font-size: 0.64rem;
  text-align: center;
}

.field label,
.field > span {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: var(--surface-solid);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  background: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--violet);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(66, 81, 121, 0.11);
}

.attendee-stepper {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  width: 154px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-solid);
}

.attendee-stepper button {
  display: grid;
  height: 100%;
  place-items: center;
  border: 0;
  color: var(--violet-deep);
  background: transparent;
  font-size: 1.15rem;
}

.attendee-stepper button:hover {
  background: var(--violet-soft);
}

.attendee-stepper output,
.attendee-stepper input {
  min-width: 0;
  border: 0;
  text-align: center;
  font-weight: 650;
  background: transparent;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 9px;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  border: 1px solid #171918;
  color: #fff;
  background: #171918;
  box-shadow: 0 4px 12px rgba(23, 25, 24, 0.15);
}

.primary-button:hover {
  background: #2c302e;
  box-shadow: 0 7px 18px rgba(23, 25, 24, 0.19);
  transform: translateY(-1px);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(0);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface-solid);
}

.secondary-button:hover {
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  display: flex;
  max-width: min(380px, calc(100vw - 32px));
  align-items: center;
  gap: 12px;
  padding: 14px 17px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  opacity: 0;
  color: #fff;
  background: rgba(23, 27, 25, 0.97);
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  transform: translateY(18px) scale(0.97);
  transition: opacity 220ms ease, transform 260ms var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.toast::before {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #123f32;
  background: #9bc7b4;
  content: "\2713";
  font-weight: 850;
}

.toast:has(.toast-icon)::before {
  display: none;
}

.toast-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #123f32;
  background: #9bc7b4;
}

.toast-icon svg {
  width: 17px;
  stroke-width: 2.4;
}

.toast > span:last-child {
  display: grid;
  gap: 1px;
}

.toast > span:last-child > span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
}

.bookings-view {
  position: fixed;
  z-index: 55;
  inset: 0 0 0 80px;
  overflow: auto;
  padding: 92px clamp(24px, 6vw, 80px) 40px;
  opacity: 0;
  visibility: hidden;
  background: var(--canvas);
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 300ms var(--ease-out), visibility 220ms ease;
}

.bookings-view.is-active,
.bookings-view.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bookings-view > .panel-topline {
  align-items: end;
  max-width: 980px;
  margin: 0 auto 24px;
  padding: 0;
}

.bookings-view > .panel-topline > div {
  display: grid;
  gap: 8px;
}

.bookings-view > .panel-topline h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.booking-card .secondary-button,
.booking-card .cancel-booking {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(241, 115, 104, 0.2);
  border-radius: 8px;
  color: var(--coral-deep);
  background: var(--coral-soft);
  font-size: 0.76rem;
}

.bookings-view > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto 24px;
  max-width: 980px;
}

.bookings-view h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.bookings-view .eyebrow {
  margin: 0 0 8px;
  color: var(--violet-deep);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.bookings-list {
  display: grid;
  max-width: 980px;
  margin: 0 auto;
  gap: 10px;
}

.booking-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}

.booking-card .date-tile {
  display: grid;
  width: 58px;
  height: 62px;
  place-items: center;
  border-radius: 9px;
  color: var(--violet-deep);
  background: var(--violet-soft);
  font-weight: 820;
  line-height: 1.05;
}

.booking-card h3,
.booking-card p {
  margin: 0;
}

.booking-card h3 {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.booking-card p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.empty-state {
  display: grid;
  min-height: 360px;
  place-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 44px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--ink-soft);
  text-align: center;
  background: rgba(255, 255, 255, 0.54);
}

.empty-state h2 {
  margin: 12px 0 6px;
  color: var(--ink);
  font-size: 1.35rem;
}

.empty-state p {
  max-width: 40ch;
  margin: 0;
}

.mobile-nav {
  display: none;
}

.mobile-brand-logo,
.mobile-filter-toggle,
.mobile-rooms {
  display: none;
}

.mobile-rooms[hidden] {
  display: none;
}

@supports not (backdrop-filter: blur(1px)) {
  .topbar,
  .map-controls,
  .status-legend,
  .booking-panel,
  .booking-card {
    background: #fff;
  }
}

@media (max-width: 900px) {
  body {
    overflow: hidden;
  }

  .app-shell {
    --mobile-content-top: calc(154px + env(safe-area-inset-top));
    --mobile-footer-gap: calc(92px + env(safe-area-inset-bottom));
    display: block;
  }

  .app-shell:has(.topbar.is-expanded),
  .mobile-filters-open .app-shell {
    --mobile-content-top: calc(220px + env(safe-area-inset-top));
  }

  .sidebar {
    display: none;
  }

  .workspace {
    width: 100%;
    height: 100dvh;
    padding: 0;
  }

  .topbar {
    top: calc(12px + env(safe-area-inset-top));
    right: 12px;
    left: 12px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 44px;
    gap: 8px;
    max-width: 680px;
    margin: 0 auto;
    padding: 10px;
    overflow: visible;
    border-color: #35434f;
    border-radius: 18px;
    color: #fff;
    background: #35434f;
    box-shadow: 0 8px 24px rgba(22, 34, 47, 0.12);
  }

  .mobile-brand-logo {
    grid-column: 1;
    grid-row: 1;
    display: block;
    width: 32px;
    height: 40px;
    object-fit: contain;
  }

  .topbar-title {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    min-width: 0;
    padding: 0;
  }

  .topbar-title .eyebrow {
    overflow: hidden;
    color: #c5d1dd;
    font-size: 0.52rem;
    letter-spacing: 0.09em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-title strong {
    margin-top: 3px;
    color: #fff;
    font-size: 0.91rem;
    font-weight: 680;
    line-height: 1.16;
  }

  .mobile-filter-toggle {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    width: 44px;
    min-height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px;
    border: 1px solid #6a7c8e;
    border-radius: 11px;
    color: #edf4fb;
    background: #465a6d;
    font-size: 0.59rem;
    font-weight: 650;
  }

  .mobile-filter-toggle svg {
    width: 17px;
    height: 17px;
  }

  .mobile-filter-toggle[aria-expanded="true"] {
    border-color: #e1edf8;
    color: #26394b;
    background: #e1edf8;
  }

  .mobile-filter-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  .filter-row {
    grid-column: 1 / -1;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .filter-group {
    display: grid;
    min-width: 0;
    min-height: 54px;
    gap: 1px;
    padding: 5px 10px;
    border: 0;
    border-radius: 10px;
    background: #f7f9fb;
  }

  .filter-floor { order: 0; }
  .filter-time { order: 1; }

  .filter-date,
  .filter-availability {
    display: none;
  }

  .filter-date { order: 2; }
  .filter-availability { order: 3; }

  .topbar.is-expanded .filter-date,
  .topbar.is-expanded .filter-availability {
    display: grid;
  }

  .topbar .filter-label {
    display: block;
    color: #707c88;
    font-size: 0.58rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .filter-control {
    width: 100%;
    min-width: 0;
  }

  .filter-control svg,
  .availability-spark {
    display: none;
  }

  .filter-group select,
  .filter-group input,
  .filter-group button {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 32px;
    padding: 0;
    color: #243342;
    background: transparent;
    font-size: 16px;
    line-height: 1.2;
  }

  .filter-group select:hover,
  .filter-group input:hover {
    background: transparent;
  }

  .map-stage {
    --mobile-map-height: max(96px, calc(100dvh - var(--mobile-content-top) - var(--mobile-footer-gap) - 168px));
    inset: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    padding-top: calc(var(--mobile-content-top) + 86px);
    padding-bottom: calc(var(--mobile-footer-gap) + 82px);
    background-size: 36px 36px;
  }

  .map-stage::before {
    box-shadow: inset 0 0 70px rgba(48, 56, 52, 0.045);
  }

  .is-room-list .map-stage {
    visibility: hidden;
  }

  .map-heading {
    top: var(--mobile-content-top);
    right: 16px;
    left: 16px;
    max-width: 680px;
    margin: 0 auto;
  }

  .map-kicker,
  .map-heading p {
    display: none;
  }

  .map-heading h1 {
    margin: 0 0 9px;
    font-size: 1.37rem;
    line-height: 1.08;
  }

  .map-metrics {
    width: 100%;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(27, 34, 30, 0.035);
  }

  .map-metrics > div {
    padding: 6px 10px 7px;
  }

  .map-metrics dt {
    color: #78817b;
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    text-transform: none;
  }

  .map-metrics dd {
    margin-top: 1px;
    font-size: 0.84rem;
  }

  .scene-shell {
    width: min(920px, 112vw, calc(var(--mobile-map-height) * 1.4634146341));
    max-width: none;
    margin: 0;
  }

  .map-controls {
    right: 16px;
    bottom: calc(var(--mobile-footer-gap) + 44px);
    display: grid;
    grid-template-columns: repeat(4, 44px);
    gap: 2px;
    padding: 4px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(25, 36, 31, 0.08);
  }

  .control-button {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .status-legend {
    right: 16px;
    bottom: calc(var(--mobile-footer-gap) + 8px);
    left: 16px;
    display: flex;
    max-width: none;
    justify-content: center;
    gap: 6px 11px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 0.61rem;
    font-weight: 600;
  }

  .status-legend span {
    gap: 4px;
  }

  .status-legend i {
    width: 6px;
    height: 6px;
    box-shadow: none;
  }

  .mobile-nav {
    position: fixed;
    z-index: 45;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    display: grid;
    max-width: 680px;
    min-height: 64px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin: 0 auto;
    padding: 5px;
    border: 1px solid #526474;
    border-radius: 19px;
    background: #35434f;
    box-shadow: 0 10px 30px rgba(25, 37, 49, 0.16);
  }

  .mobile-nav button {
    display: flex;
    min-width: 0;
    min-height: 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 3px;
    border: 0;
    border-radius: 13px;
    color: #c9d5e0;
    background: transparent;
    font-size: 0.66rem;
    font-weight: 620;
    line-height: 1.15;
  }

  .mobile-nav button span {
    display: inline;
  }

  .mobile-nav button.is-active,
  .mobile-nav button[aria-current="page"] {
    color: #fff;
    background: #506679;
  }

  .mobile-nav button:focus-visible {
    outline: 2px solid #d3e4f4;
    outline-offset: -2px;
  }

  .mobile-rooms {
    position: absolute;
    z-index: 28;
    inset: var(--mobile-content-top) 0 var(--mobile-footer-gap);
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 16px 20px;
    background: var(--canvas);
    scrollbar-width: thin;
    touch-action: pan-y;
  }

  .mobile-rooms[hidden] {
    display: none;
  }

  .mobile-rooms-header {
    position: sticky;
    z-index: 1;
    top: 0;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 0 14px;
    background: var(--canvas);
  }

  .mobile-rooms-header .eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--mint-deep);
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .mobile-rooms-header h2 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.12;
    letter-spacing: -0.03em;
  }

  .mobile-rooms-header p {
    margin: 7px 0 0;
    color: var(--ink-soft);
    font-size: 0.78rem;
  }

  .mobile-room-list {
    display: grid;
    max-width: 680px;
    gap: 10px;
    margin: 0 auto;
  }

  .mobile-room-card {
    display: grid;
    width: 100%;
    min-height: 88px;
    grid-template-columns: 34px minmax(0, 1fr) auto 12px;
    align-items: center;
    gap: 10px;
    padding: 13px 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 3px 12px rgba(25, 35, 30, 0.035);
    text-align: left;
  }

  .mobile-room-card:active {
    border-color: #a6b8a9;
    background: #f6faf7;
  }

  .mobile-room-card__icon {
    display: grid;
    width: 34px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    color: #587565;
    background: #edf3ee;
    font-size: 1rem;
  }

  .mobile-room-card__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
  }

  .mobile-room-card__copy {
    display: grid;
    min-width: 0;
    gap: 4px;
  }

  .mobile-room-card__name {
    color: #25312a;
    font-size: 0.93rem;
    font-weight: 680;
    line-height: 1.22;
  }

  .mobile-room-card__meta {
    color: #6c766f;
    font-size: 0.7rem;
    line-height: 1.4;
  }

  .mobile-room-card__status {
    max-width: 88px;
    padding: 5px 7px;
    border-radius: 7px;
    color: #2e7254;
    background: #edf6f0;
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
  }

  .mobile-room-card__status.is-soon {
    color: #8a652f;
    background: #f8f0e1;
  }

  .mobile-room-card__status.is-busy {
    color: #9b4d46;
    background: #f9ecea;
  }

  .mobile-room-card__status.is-blocked {
    color: #69726b;
    background: #eff1ee;
  }

  .mobile-room-card__arrow {
    color: #8d9990;
    font-size: 1.2rem;
    text-align: right;
  }

  .mobile-room-list .empty-state {
    min-height: 220px;
  }

  .booking-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 94dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
    transform: translateY(calc(100% + 24px));
    scrollbar-width: thin;
    touch-action: pan-y;
  }

  .booking-panel.is-open {
    transform: translateY(0);
  }

  .panel-handle {
    display: block;
    width: 38px;
    height: 4px;
    flex: 0 0 auto;
    margin: 10px auto 0;
    border-radius: 999px;
    background: #c6cdc7;
  }

  .booking-panel > .panel-topline {
    position: sticky;
    z-index: 5;
    top: 0;
    padding: 12px 16px 10px;
    background: #fff;
  }

  .icon-button {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }

  .booking-panel .room-hero {
    min-height: 106px;
    flex: 0 0 auto;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px 12px;
    margin: 0 16px 12px;
    padding: 16px;
    border-radius: 15px;
  }

  .room-hero-icon {
    grid-row: span 2;
    width: 40px;
    height: 40px;
  }

  .room-hero h2 {
    font-size: 1.3rem;
  }

  .booking-panel .room-hero > .status-pill {
    grid-column: 2;
    justify-self: start;
  }

  .equipment-row {
    min-height: 0;
    flex: 0 0 auto;
    margin: 0 16px 12px;
  }

  .equipment-chip {
    padding: 6px 8px;
    font-size: 0.7rem;
  }

  .availability-overview {
    flex: 0 0 auto;
    margin: 0 16px 18px;
  }

  .availability-overview__header {
    gap: 8px;
  }

  .booking-form {
    flex: 0 0 auto;
    gap: 18px;
    overflow: visible;
    padding: 0 16px calc(20px + env(safe-area-inset-bottom));
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 48px;
    font-size: 16px;
  }

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

  .duration-button,
  .slot-button {
    min-height: 48px;
    font-size: 0.84rem;
  }

  .slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .attendee-stepper {
    min-height: 48px;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
  }

  .booking-summary {
    gap: 10px;
  }

  .booking-form .primary-button {
    position: sticky;
    z-index: 4;
    bottom: calc(10px + env(safe-area-inset-bottom));
    min-height: 52px;
    flex: 0 0 auto;
    box-shadow: 0 0 0 8px #fff, 0 -8px 24px rgba(21, 30, 25, 0.1);
  }

  .bookings-view {
    inset: 0 0 var(--mobile-footer-gap);
    padding: calc(24px + env(safe-area-inset-top)) 16px 26px;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .bookings-view > .panel-topline {
    align-items: center;
    margin-bottom: 20px;
  }

  .bookings-view > .panel-topline h2 {
    font-size: 1.75rem;
  }

  .bookings-view .empty-state {
    min-height: 280px;
  }

  body:has(#bookingsView.is-open):not(:has(#bookingPanel.is-open)) .mobile-nav {
    z-index: 60;
  }

  body:has(#bookingPanel.is-open) .mobile-nav {
    visibility: hidden;
    pointer-events: none;
  }

  .booking-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 15px;
  }

  .booking-card > :last-child {
    grid-column: 1 / -1;
  }

  .booking-card .cancel-booking,
  .booking-card .secondary-button {
    min-height: 46px;
    width: 100%;
  }

  .toast {
    right: 16px;
    bottom: calc(var(--mobile-footer-gap) + 8px);
    left: 16px;
    max-width: none;
  }
}

@media (max-width: 360px) {
  .topbar {
    right: 8px;
    left: 8px;
    padding: 9px;
  }

  .topbar-title strong {
    font-size: 0.83rem;
  }

  .map-heading {
    right: 12px;
    left: 12px;
  }

  .map-metrics > div {
    padding-right: 8px;
    padding-left: 8px;
  }

  .status-legend {
    right: 10px;
    left: 10px;
    gap: 5px 8px;
    font-size: 0.56rem;
  }

  .mobile-room-card {
    grid-template-columns: 30px minmax(0, 1fr) auto 10px;
    gap: 7px;
    padding: 12px 10px;
  }

  .mobile-room-card__icon {
    width: 30px;
  }

  .mobile-room-card__status {
    max-width: 80px;
  }
}

@media (max-width: 900px) and (max-height: 660px) {
  .map-heading h1 {
    display: none;
  }

  .map-stage {
    --mobile-map-height: max(96px, calc(100dvh - var(--mobile-content-top) - var(--mobile-footer-gap) - 124px));
    padding-top: calc(var(--mobile-content-top) + 54px);
    padding-bottom: calc(var(--mobile-footer-gap) + 70px);
  }

  .scene-shell {
    width: min(780px, 110vw, calc(var(--mobile-map-height) * 1.4634146341));
  }

  .map-controls {
    bottom: calc(var(--mobile-footer-gap) + 35px);
  }
}

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

  .scene-shell,
  .room,
  .room:hover,
  .room:focus-visible,
  .room.is-selected,
  .furniture.is-selected,
  .room-label-group.is-selected {
    transform: none;
  }
}

@media (forced-colors: active) {
  .room-top,
  .room-side,
  .room-wall,
  .floor-base,
  .floor-edge {
    stroke: CanvasText;
  }

  .room.is-selected .room-top {
    fill: Highlight;
  }
}

