/* Sole layout owner for Salone directory, exhibitor detail and hall workspace.
   app.css owns shared theme/type tokens; SVG code writes only camera/geometry. */

/* Contextual city-map entry. Automatic movement exposes only the compact card. */
.rho-card, .rho-panel {
  position: absolute;
  z-index: 1100;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px #0003;
  font-size: var(--type-meta);
  line-height: 1.5;
}
.rho-card[hidden], .rho-panel[hidden] { display: none; }
.rho-card {
  right: 16px;
  bottom: var(--rho-card-bottom, 112px);
  width: min(330px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  border-left: 3px solid var(--accent);
  border-radius: 10px;
}
.rho-card-open, .rho-dismiss, .rho-close, .rho-back, .rho-keep-map, .rho-place-title {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}
.rho-card-open { text-align: left; padding: 14px 4px 2px 16px; }
.rho-card-open strong, .rho-card-open span { display: block; }
.rho-card-open strong { font-size: var(--type-body); color: var(--accent); }
.rho-card-open span { margin-top: 3px; font-size: var(--type-caption); }
.rho-dismiss { align-self: start; font-size: 22px; }
.rho-card-meta { grid-column: 1 / -1; padding: 0 16px 12px; margin: 0; color: var(--text2); font-size: var(--type-caption); }
.rho-panel {
  top: var(--map-tools-bottom, 100px);
  right: 16px;
  width: min(350px, calc(100% - 32px));
  max-height: calc(100% - var(--map-tools-bottom, 100px) - 20px);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
}
.rho-panel-head { display: flex; flex: none; align-items: start; gap: 8px; padding: 18px 12px 14px 18px; border-bottom: 1px solid var(--border); }
.rho-panel-head > div { flex: 1; min-width: 0; }
.rho-edition { margin: 0 0 7px; color: var(--accent); font-size: var(--type-caption); letter-spacing: .04em; }
.rho-panel h2 { font-size: calc(22px * var(--reading-scale)); line-height: 1.25; margin: 0; letter-spacing: -.025em; overflow-wrap: anywhere; }
.rho-close { flex: none; border-radius: 6px; background: var(--surface2); font-size: 24px; }
.rho-panel-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 14px; }
.rho-choice {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: start;
  width: 100%;
  min-height: 72px;
  margin: 0 0 9px;
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.rho-choice:last-child { margin-bottom: 0; }
.rho-choice-number { font-size: var(--type-caption); color: var(--accent); font-variant-numeric: tabular-nums; padding-top: 3px; }
.rho-choice-label strong, .rho-choice-label > span { display: block; overflow-wrap: anywhere; }
.rho-choice-label strong { font-size: var(--type-body); line-height: 1.4; }
.rho-choice-label > span { color: var(--text2); font-size: var(--type-caption); margin-top: 4px; line-height: 1.5; }
.rho-choice-primary { border-color: var(--accent); }
.rho-choice:hover { border-color: var(--accent); background: var(--bg); }
.rho-panel-footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; flex: none; padding: 6px 14px; border-top: 1px solid var(--border); }
.rho-keep-map { text-align: left; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
.rho-credit { color: var(--text2); font-size: 11px; min-height: 44px; display: inline-flex; align-items: center; }
.rho-back { padding: 4px 0; color: var(--accent); text-align: left; }
.rho-zone { color: var(--text2); font-size: var(--type-caption); margin: 6px 0 16px; }
.rho-plan-group h3 { font-size: var(--type-meta); margin: 12px 0 4px; color: var(--accent); }
.rho-place { padding: 10px 0 14px; border-bottom: 1px solid var(--border); }
.rho-place-title { display: block; padding: 4px 0; text-align: left; font-size: var(--type-body); font-weight: 650; overflow-wrap: anywhere; width: 100%; }
.rho-place p { margin: 3px 0; color: var(--text2); font-size: var(--type-caption); }
.rho-place .rho-place-time { color: var(--text); }
.rho-place .salone-button { margin-top: 10px; font-size: var(--type-caption); }
.rho-empty { padding: 14px 0; }
.rho-empty h3 { font-size: var(--type-body); margin: 0 0 8px; }
.rho-empty p { color: var(--text2); font-size: var(--type-meta); margin: 0 0 16px; }
.rho-planner-link { margin-top: 12px; }
.map-container[data-rho-layout="bottom"] .rho-panel {
  top: auto; bottom: 0; left: 0; right: 0; width: 100%;
  max-height: min(75dvh, max(180px, calc(100% - var(--map-tools-bottom, 160px) - 88px)));
  border-radius: 14px 14px 0 0;
}
.app[data-rho-panel="open"] .map-container[data-rho-layout="side"] .leaflet-control-zoom {
  margin-right: calc(var(--rho-panel-width, 350px) + 28px);
}
.app[data-rho-panel="open"] .map-container[data-rho-layout="bottom"] .leaflet-bottom {
  --map-controls-bottom: calc(var(--rho-panel-height, 0px) + 8px);
  bottom: calc(var(--rho-panel-height, 0px) + 8px);
}
.app[data-rho-panel="open"] .map-container[data-rho-layout="bottom"] .map-legend { visibility: hidden; }
@media (max-width: 768px) {
  .app[data-rho-panel="open"] > .panel { visibility: hidden; pointer-events: none; }
  .rho-card { left: 12px; right: 12px; width: auto; }
}
:root {
  --salone-floor: #1b2b24;
  --salone-booth: #344e40;
  --salone-edge: #829b8c;
  --salone-map-ink: #f0f6ef;
  --salone-point: #c9b280;
  --salone-selected: #93c6b3;
  --salone-selected-fill: #335d49;
  --salone-mobile: #b9534c;
  --salone-cucina: #ddbc57;
  --salone-bagno: #a7c9b5;
}
[data-theme="light"] {
  --salone-floor: #f5f6f0;
  --salone-booth: #dae5db;
  --salone-edge: #6f8878;
  --salone-map-ink: #183d2d;
  --salone-point: #8d6728;
  --salone-selected: #236e59;
  --salone-selected-fill: #c8dfcf;
  --salone-mobile: #b9534c;
  --salone-cucina: #ddbc57;
  --salone-bagno: #a7c9b5;
}
.salone-button,
.salone-locate,
.salone-record-main,
.fiera-close,
.fiera-search-clear,
.exh-det-action,
.exh-det-link {
  font: inherit;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  line-height: 1.4;
}
.salone-button,
.salone-locate,
.fiera-search-clear,
.exh-det-action,
.exh-det-link {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface2);
  color: var(--text);
  padding: 9px 13px;
  text-decoration: none;
  white-space: normal;
}
.salone-button:hover,
.salone-locate:hover,
.exh-det-link:hover {
  border-color: var(--accent);
}
.salone-primary,
.exh-det-action:not(.exh-det-action-secondary) {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}
.salone-source,
.hall-back {
  color: var(--accent);
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
}
.salone-muted {
  color: var(--text2);
  font-size: var(--type-meta);
  line-height: 1.6;
}
.salone-notice {
  padding: 14px;
  border-left: 3px solid var(--accent);
  background: var(--surface2);
  font-size: var(--type-meta);
  line-height: 1.6;
}
.salone-record {
  list-style: none;
  min-width: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 0 12px;
  margin: 0;
  background: var(--surface);
  border-radius: 0;
}
.salone-record[data-selected="true"] {
  box-shadow: inset 3px 0 var(--accent);
  background: var(--surface2);
}
.salone-record-main {
  display: block;
  width: 100%;
  padding: 18px 18px 10px;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow-wrap: anywhere;
}
.salone-record-main:hover {
  background: var(--surface2);
}
.salone-record-title,
.salone-record-location,
.salone-record-meta {
  display: block;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
}
.salone-record-title {
  font-size: var(--type-body);
  line-height: 1.4;
  font-weight: 650;
  margin: 0 0 7px;
}
.salone-record-location {
  font-size: var(--type-meta);
  color: var(--accent);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.salone-record-meta {
  font-size: var(--type-caption);
  color: var(--text2);
  line-height: 1.6;
  margin-top: 5px;
}
.salone-locate {
  margin: 0 18px;
  font-size: var(--type-caption);
  min-height: 44px;
  text-align: left;
}
.salone-record-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Native dialog is the only modal surface; detail reuses it. */
dialog.fiera-modal,
dialog.exh-modal {
  margin: auto;
  padding: 20px;
  border: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  background: transparent;
  color: var(--text);
  box-sizing: border-box;
}
dialog.fiera-modal[open],
dialog.exh-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
dialog.fiera-modal::backdrop,
dialog.exh-modal::backdrop {
  background: #0a1714b8;
  backdrop-filter: blur(5px);
}
.fiera-modal-box {
  width: min(1320px, 96vw);
  height: min(880px, 94dvh);
  max-width: 100%;
  max-height: 94dvh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 18px 70px #0006;
  font-size: var(--type-meta);
}
.fiera-modal-box[hidden] {
  display: none;
}
.fiera-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 16px;
  flex: none;
}
.fiera-modal-head h2 {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 650;
}
.salone-subtitle {
  margin: 8px 0 0;
  color: var(--text2);
  font-size: var(--type-meta);
}
.fiera-close {
  border: 0;
  background: var(--surface2);
  border-radius: 8px;
  color: var(--text);
  font-size: 24px;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
}
.fiera-hint {
  padding: 0 24px 14px;
  margin: 0;
  font-size: var(--type-meta);
  color: var(--text2);
  line-height: 1.5;
}
.fiera-modal[data-hall-selected="true"] .fiera-hint {
  display: none;
}
.fiera-search-strip {
  display: flex;
  gap: 10px;
  align-items: stretch;
  padding: 0 24px 16px;
  flex: none;
}
.fiera-search-wrap {
  display: block;
  flex: 1;
  min-width: 0;
}
.fiera-search-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: max(16px, var(--type-meta));
  padding: 10px 14px;
  box-sizing: border-box;
}
.fiera-search-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.fiera-search-clear {
  flex: 0 1 auto;
  max-width: 200px;
  font-size: var(--type-meta);
}
.salone-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 0 24px 14px;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.salone-controls label {
  font-weight: 600;
  font-size: var(--type-meta);
}
.salone-controls select {
  max-width: 100%;
  min-height: 44px;
  padding: 8px 28px 8px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface2);
  color: var(--text);
  font: inherit;
}
.fiera-search-count {
  margin: 0;
  color: var(--text2);
  font-size: var(--type-meta);
  white-space: normal;
}
.fiera-body-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.fiera-pane-map {
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px 18px 20px;
  background: var(--bg);
  border-right: 1px solid var(--border);
}
.fiera-pane-map > summary {
  min-height: 44px;
  padding: 10px 0;
  color: var(--text);
  font-size: var(--type-meta);
  cursor: pointer;
}
.fiera-overview {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior: contain;
  padding-block: 6px;
}
.fiera-overview .hall-map-svg {
  min-width: 560px;
  width: 100%;
  height: auto;
}
.fiera-hall-context {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg);
}
.fiera-hall-context > .salone-muted {
  grid-column: 1 / -1;
  margin: 0;
}
.fiera-hall-context a {
  display: inline-flex;
  align-items: center;
}
.fiera-hall-context .salone-button {
  font-size: var(--type-caption);
}
.fiera-selection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px 12px;
  margin-block: 10px;
  padding: 12px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}
.fiera-selection[hidden] {
  display: none;
}
.fiera-selection h3 {
  margin: 0 0 4px;
  font-size: var(--type-body);
  overflow-wrap: anywhere;
}
.fiera-selection p {
  margin: 0;
  line-height: 1.5;
}
.fiera-selection .salone-location-status {
  grid-column: 1 / -1;
}
.fiera-selection .salone-button {
  font-size: var(--type-caption);
}
.fiera-pane-map[data-mode="hall"] .fiera-overview {
  overflow: visible;
}
.fiera-floor-host .hall-layout-scroll {
  height: clamp(220px, 32dvh, 350px);
}
.fiera-pane-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  container: hall-list / inline-size;
}
.fiera-exh-list {
  list-style: none;
  min-height: 0;
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  margin: 0;
  padding: 0;
}
.fiera-list-empty {
  padding: 24px;
  line-height: 1.6;
}
.fiera-more {
  flex: none;
  margin: 12px 16px;
  width: calc(100% - 32px);
  font: inherit;
  min-height: 44px;
}
.salone-footer {
  flex: none;
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--text2);
  font-size: var(--type-caption);
  line-height: 1.5;
}
.salone-footer a {
  color: var(--accent);
  text-underline-offset: 3px;
}
.fiera-open-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  background: var(--surface);
  font: inherit;
  font-size: var(--type-caption);
  padding: 8px;
  cursor: pointer;
}
/* Shared exhibitor facts; no fixed-width action labels. */
.exh-inline-view {
  width: min(620px, 100%);
  max-height: 94dvh;
  overflow: auto;
}
.exh-modal-box {
  position: relative;
  width: min(620px, 100%);
  max-height: 94dvh;
  overflow: auto;
  box-sizing: border-box;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  font-size: var(--type-meta);
}
.exh-inline-view .exh-modal-box {
  width: 100%;
  max-height: none;
  overflow: visible;
}
.exh-modal-close {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  position: sticky;
  top: 0;
  display: block;
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-bottom: -44px;
  z-index: 2;
}
.exh-det-title {
  font-size: calc(24px * var(--reading-scale));
  padding-right: 52px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  margin: 8px 0 12px;
}
.exh-det-sub {
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 14px;
}
.exh-det-grid {
  display: grid;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.exh-det-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
  line-height: 1.6;
}
.exh-det-label {
  font-size: var(--type-caption);
  color: var(--text2);
}
.exh-det-value {
  font-size: var(--type-meta);
  overflow-wrap: anywhere;
}
.exh-det-links,
.exh-det-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.exh-det-action,
.exh-det-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: var(--type-meta);
}
.exh-modal-box .salone-footer {
  padding: 14px 0;
  background: transparent;
}
/* Standalone hall shell has no dependency on planner.css. */
body.hall-page {
  height: auto;
  min-height: 100dvh;
  overflow: auto;
  padding: 0;
  background: var(--bg);
  font-size: var(--type-meta);
}
.hall-page .top-bar {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  min-height: 68px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.hall-page .top-bar h1 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}
.hall-brand-year {
  color: var(--accent);
}
.hall-page .top-bar > a {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text2);
  font-size: var(--type-meta);
}
.hall-page .top-bar .language-control {
  margin: 0;
}
.hall-content {
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px 28px 64px;
  min-height: 60vh;
}
.hall-hero {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.hall-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface2);
  color: var(--accent);
  font-size: 28px;
  font-weight: 650;
}
.hall-kicker {
  color: var(--accent);
  font-size: var(--type-caption);
  margin: 0 0 6px;
  line-height: 1.5;
}
.hall-page-title {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 0 0 6px;
}
.hall-hero-meta {
  font-size: var(--type-meta);
  color: var(--text2);
  line-height: 1.5;
  margin: 0;
}
.hall-back {
  font-size: var(--type-meta);
}
.hall-breadcrumbs {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.hall-navigation {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.hall-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 190px;
  align-items: end;
  gap: 12px;
  margin-bottom: 22px;
}
.hall-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.hall-label {
  font-size: var(--type-caption);
  font-weight: 600;
}
.hall-page :is(input, select) {
  font: inherit;
  font-size: max(16px, var(--type-meta));
  width: 100%;
  min-height: 46px;
  min-width: 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 12px;
}
.hall-page .language-control select {
  width: 88px;
  font-size: 13px;
  padding-right: 22px;
}
.hall-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}
.hall-directory {
  container: hall-list / inline-size;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.hall-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.hall-count {
  color: var(--text2);
  font-size: var(--type-meta);
  margin: 0;
  line-height: 1.5;
}
.hall-clear {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  min-height: 44px;
  text-decoration: underline;
  cursor: pointer;
}
.hall-more {
  width: calc(100% - 32px);
  margin: 16px;
}
.hall-map-panel {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 16px;
  min-width: 0;
}
.salone-inspector {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
}
.salone-inspector h2 {
  font-size: calc(19px * var(--reading-scale));
  line-height: 1.35;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.salone-inspector p {
  margin: 5px 0;
  line-height: 1.5;
  font-size: var(--type-meta);
}
.salone-inspector .salone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.salone-location-status {
  color: var(--accent);
  font-size: var(--type-caption);
}
.hall-plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 0;
}
.hall-plan > summary {
  font-size: var(--type-meta);
  font-weight: 600;
  min-height: 48px;
  padding: 14px 18px;
  cursor: pointer;
}
.hall-layout-host {
  padding: 0 12px 14px;
  min-width: 0;
}
.hall-plan-hint {
  padding: 0 18px 12px;
  margin: 0;
  color: var(--text2);
  font-size: var(--type-caption);
  line-height: 1.5;
}
.hall-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.hall-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  min-height: 90px;
}
.hall-card span {
  color: var(--text2);
}
/* Geometry owns only its camera. Typography stays readable at every zoom. */
.hall-layout-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.hall-layout-toolbar button {
  min-height: 44px;
  min-width: 44px;
  font: inherit;
  font-size: var(--type-meta);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
}
.hall-layout-toolbar output {
  min-width: 52px;
  text-align: center;
  font-size: var(--type-meta);
  font-variant-numeric: tabular-nums;
}
.hall-layout-toolbar button:disabled {
  opacity: 0.4;
}
.hall-layout-scroll {
  height: clamp(300px, 40vh, 460px);
  width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--salone-floor);
  border: 1px solid var(--border);
  border-radius: 7px;
}
.hall-layout-svg {
  display: block;
  max-width: none;
  margin: auto;
  background: var(--salone-floor);
}
.hall-layout-booth {
  fill: var(--salone-booth);
  stroke: var(--salone-edge);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.hall-layout-booth.matched {
  cursor: pointer;
}
.hall-layout-booth.unlinked {
  opacity: 0.45;
}
.hall-layout-booth.approximate {
  fill: var(--salone-floor);
  stroke: var(--salone-point);
  stroke-width: 2;
  stroke-dasharray: 4 2;
}
.hall-layout-booth[data-selected="true"],
.hall-layout-booth.matched:focus-visible {
  fill: var(--salone-selected-fill);
  stroke: var(--accent);
  stroke-width: 3;
  outline: none;
  stroke-dasharray: none;
}
.hall-layout-booth.filter-match {
  stroke: var(--accent);
  stroke-width: 2;
}
.hall-layout-booth.dimmed {
  opacity: 0.2;
}
.hall-layout-label {
  fill: var(--salone-map-ink);
  font-family: inherit;
  font-weight: 650;
  paint-order: stroke;
  stroke: var(--salone-floor);
  stroke-width: 1.2px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.hall-layout-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 12px 0;
  font-size: var(--type-caption);
  color: var(--text2);
  line-height: 1.5;
}
.hall-layout-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hall-layout-key {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid var(--salone-edge);
  background: var(--salone-booth);
}
.hall-layout-key.approximate {
  border: 2px dashed var(--salone-point);
  border-radius: 50%;
  background: transparent;
}
.hall-layout-caption {
  font-size: var(--type-caption);
  line-height: 1.6;
  color: var(--text2);
  margin: 8px 0;
}
.hall-layout-label-status {
  font-size: var(--type-caption);
  color: var(--text2);
  margin: 8px 0;
  line-height: 1.5;
}
.hall-map-wrap {
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: auto;
  background: var(--surface);
}
.hall-map-svg {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface);
}
.hall-map-caption {
  padding: 10px;
  font-size: var(--type-caption);
  color: var(--text2);
  line-height: 1.5;
}
.hallmap-hall.interactive {
  cursor: pointer;
}
.hallmap-hall.interactive:is(:hover, :focus) rect {
  stroke: var(--text);
  stroke-width: 2;
}
.hallmap-pulse {
  stroke: var(--accent);
  stroke-width: 3;
}
.hallmap-hall.dimmed {
  opacity: 0.3;
}
:where(.fiera-modal, .exh-modal, .hall-page)
  :is(button, a, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 1000px) {
  .hall-workspace {
    grid-template-columns: 1fr;
  }
  .hall-map-panel {
    position: static;
    grid-column: 1;
    grid-row: 1;
  }
  .hall-directory {
    container: hall-list / inline-size;
    grid-column: 1;
    grid-row: 2;
  }
  .hall-content {
    padding: 22px 20px 50px;
  }
  .hall-layout-scroll {
    height: 360px;
  }
  .hall-hero {
    margin-bottom: 18px;
  }
  .hall-map-panel:has(.hall-plan:not([open])) .salone-inspector {
    padding: 14px 16px;
  }
  .fiera-body-split {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  }
}
@media (max-width: 768px) {
  dialog.fiera-modal {
    padding: 0;
  }
  .fiera-modal-box {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .fiera-modal-head {
    padding: 16px;
  }
  .fiera-modal-head h2 {
    font-size: 24px;
  }
  .fiera-hint {
    padding: 0 16px 12px;
  }
  .fiera-search-strip {
    padding: 0 16px 12px;
    flex-wrap: wrap;
  }
  .fiera-search-wrap {
    flex-basis: 100%;
  }
  .fiera-search-clear {
    max-width: none;
    font-size: var(--type-caption);
  }
  .salone-controls {
    padding: 0 16px 12px;
    gap: 6px 10px;
  }
  .fiera-search-count {
    flex: 1 1 100%;
  }
  .fiera-body-split {
    display: flex;
    flex-direction: column;
    overflow: auto;
  }
  .fiera-pane-map {
    flex: none;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
  }
  .fiera-pane-map[open] {
    max-height: 40dvh;
    overflow: auto;
  }
  .fiera-pane-map[data-mode="hall"][open] {
    max-height: none;
    overflow: visible;
  }
  .fiera-hall-context {
    grid-template-columns: auto minmax(0, 1fr);
    position: static;
  }
  .fiera-full-page {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .fiera-pane-list {
    flex: 1 0 240px;
    min-height: 240px;
    overflow: visible;
  }
  .fiera-exh-list {
    flex: none;
    overflow: visible;
  }
  .fiera-more {
    width: calc(100% - 32px);
  }
  .salone-footer {
    padding: 10px 16px;
  }
  .hall-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .hall-search-field {
    grid-column: 1/-1;
  }
  .hall-page .top-bar {
    padding: 10px 16px;
    gap: 12px;
  }
  .hall-page .header-nav {
    display: none;
  }
  .hall-content {
    padding: 20px 16px 40px;
  }
  .hall-badge {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  .hall-hero {
    gap: 12px;
  }
  .hall-layout-scroll {
    height: min(380px, 43dvh);
  }
  .hall-plan-hint {
    font-size: var(--type-caption);
  }
  .salone-inspector .salone-actions .salone-button {
    flex: 1 1 130px;
  }
  .exh-modal-box {
    padding: 22px 18px;
  }
  .exh-det-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .exh-det-actions > a,
  .exh-det-actions > button {
    flex: 1 1 130px;
  }
}
@media (max-height: 600px) {
  .fiera-hint {
    display: none;
  }
  .fiera-modal-head {
    padding-block: 12px;
  }
  .salone-subtitle {
    margin-top: 4px;
  }
  .fiera-modal-box {
    max-height: 100dvh;
    height: 100dvh;
  }
  .hall-layout-scroll {
    height: 260px;
  }
}
@media (prefers-reduced-motion: reduce) {
  dialog.fiera-modal::backdrop,
  dialog.exh-modal::backdrop {
    backdrop-filter: none;
  }
}

.hall-page .top-bar .hall-brand {
  margin-left: 0;
  font-size: 18px;
  font-weight: 650;
  gap: 5px;
  color: var(--text);
  text-decoration: none;
}
.hall-north {
  margin-left: auto;
  color: var(--text2);
  font-size: var(--type-caption);
  padding: 8px;
}
.fiera-overview .salone-muted {
  margin: 12px 0;
}
.fiera-overview > .salone-button {
  margin: 8px 0;
}

.hall-up {
  margin-left: auto;
  flex-shrink: 0;
  padding-left: 12px;
}
.hall-hero-body {
  min-width: 0;
}
@container hall-list (min-width:28rem) {
  .salone-record:has(.salone-locate) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 0;
  }
  .salone-record:has(.salone-locate) .salone-record-main {
    padding: 16px;
  }
  .salone-record:has(.salone-locate) .salone-locate {
    margin: 0 12px 0 0;
    max-width: 130px;
  }
}
@media (max-width: 520px) {
  .fiera-selection {
    grid-template-columns: minmax(0, 1fr);
  }
  .hall-breadcrumbs {
    align-items: flex-start;
  }
  .hall-hero {
    grid-template-columns: 50px minmax(0, 1fr);
  }
  .hall-up {
    grid-column: 1/-1;
    justify-self: start;
    margin-left: 0;
    padding-left: 0;
    min-height: 36px;
  }
}

.hall-page .hall-field > select,
.salone-controls select {
  appearance: none;
  -webkit-appearance: none;
  height: 46px;
  min-height: 46px;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23869e91' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.hall-overview-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: var(--type-caption);
  line-height: 1.5;
  color: var(--text2);
  margin-top: 12px;
}
.hall-overview-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hall-overview-legend i {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 2px;
}
.salone-program-mobile {
  background: var(--salone-mobile);
}
.salone-program-bagno {
  background: var(--salone-bagno);
}
.salone-program-cucina {
  background: var(--salone-cucina);
}

@media (max-width: 1000px) {
  .salone-inspector[data-empty="true"] {
    display: none;
  }
}
@media (max-width: 360px) {
  .hall-controls {
    grid-template-columns: 1fr;
  }
  .hall-search-field {
    grid-column: auto;
  }
}

.salone-source-status {
  display: block;
  color: var(--text2);
  font-size: var(--type-caption);
  line-height: 1.6;
  margin-top: 8px;
  font-style: italic;
}

.hall-layout-label.unlinked {
  fill: var(--text2);
}
