/* Dense floor/section view; the application shell is shared with Workstation. */
.content.content-chess { padding: 0; }
.content-chess > #metrics, .content-chess > #toolbar { display: none; }
.catalog-workspace { min-height: calc(100dvh - 56px); padding-bottom: 28px; }
.catalog-workspace.has-inspector { padding-bottom: 112px; }
.catalog-heading {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; min-height: 88px;
  padding: 18px 28px; border-bottom: 1px solid var(--line); background: #f8f9fa;
}
.catalog-heading h1 { flex: none; font-size: 27px; }
.catalog-project { width: 220px; min-height: 38px; padding-block: 7px; font-size: 14px; }
.building-tabs { display: flex; align-self: stretch; align-items: stretch; gap: 8px; padding-left: 16px; border-left: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.building-tabs button {
  flex: none; padding: 6px 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: transparent; color: #787e87; font-weight: 600; white-space: nowrap;
}
.building-tabs button[aria-pressed="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.building-tabs button:hover { color: var(--brand-dark); background: #f0f1f3; }
.catalog-display { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-left: auto; }
.catalog-display .segmented button { padding-inline: 10px; font-size: 12px; min-height: 36px; }
.catalog-display .segmented .icon { width: 14px; height: 14px; }
.catalog-display .inline-select { font-size: 11px; }
.catalog-display select { min-height: 36px; font-size: 12px; max-width: 150px; padding: 6px 8px; }
.catalog-filters {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; min-height: 70px;
  padding: 14px 28px; border-bottom: 1px solid var(--line); background: #f8f9fa;
}
.catalog-filter { display: inline-flex; align-items: center; gap: 10px; color: #69717c; font-size: 12px; }
.catalog-filter > span { white-space: nowrap; }
.catalog-filter input { width: 148px; min-height: 38px; padding: 8px 10px; font-size: 12px; }
.catalog-filter .room-chips button { min-height: 36px; min-width: 34px; padding: 5px 10px; font-size: 13px; }
.catalog-filters .switch { font-size: 12px; font-weight: 500; white-space: nowrap; }
.catalog-filters .more-filters { margin-left: auto; min-height: 36px; padding: 6px 18px; font-size: 12px; }
.catalog-filters .more-filters[aria-expanded="true"] { background: #fcf0e8; border-color: #dbb59e; color: var(--brand-dark); }
.catalog-extra-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; padding: 16px 28px; border-bottom: 1px solid var(--line); background: #fff; }
.catalog-extra-filters label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.catalog-extra-filters select { width: 220px; font-size: 13px; }
.catalog-extra-filters .button { min-height: 42px; }
.catalog-legend { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 28px 6px; }
.catalog-legend .status-legend { margin: 0; gap: 14px; }
.catalog-legend .legend-chip { padding: 4px 0; border: 1px solid transparent; background: transparent; font-size: 12px; font-weight: 400; gap: 7px; min-height: 28px; }
.catalog-legend .legend-chip:hover { color: var(--ink); }
.catalog-legend .legend-chip[aria-pressed="true"] { color: var(--brand-dark); background: #fcf0e8; border-color: #ebd2c3; padding-inline: 7px; }
.catalog-legend .legend-swatch { width: 17px; height: 17px; border-radius: 3px; }
.catalog-legend .legend-count { color: #9399a2; font-weight: 400; font-size: 10px; }
.catalog-found { color: #9298a0; font-size: 11px; }
.catalog-found .link-button { font-size: 11px; font-weight: 500; }
.catalog-matrix { padding: 12px 24px; min-width: 0; }
.catalog-building-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 8px 4px 12px; color: #8a919a; font-size: 11px; }
.catalog-building-meta > span:first-child { color: #707783; font-size: 12px; }
.catalog-building-meta .building-line { flex-basis: auto; order: 0; margin: 0; font-size: 11px; }
.catalog-building-meta .building-edit { font-size: 11px; }
.catalog-building-meta .code-chip { padding: 1px 6px; background: transparent; font-size: 10px; border-color: #e3e5e9; font-weight: 400; }
.catalog-notice { margin: 0 4px 14px; padding: 10px 12px; background: #fff7eb; color: #855e2e; border-left: 2px solid #e6c798; font-size: 12px; }
.catalog-matrix .chess-grid { container-type: inline-size; padding: 2px 3px 12px; }
.catalog-matrix .chess-grid.compact { --floor-label: 42px; --section-gap: 18px; --row-gap: 4px; }
.catalog-matrix .compact .building-grid {
  --cell: clamp(58px, calc((100cqw - 2 * var(--floor-label) - (var(--section-count) - 1) * var(--section-gap) - (var(--tracks) + var(--section-count)) * var(--row-gap) - 6px) / var(--tracks)), 80px);
}
.catalog-matrix .floor-row { border-radius: 0; margin-bottom: 4px; }
.catalog-matrix .floor-row:not(.section-row):hover { background: #edf0f3; box-shadow: none; }
.catalog-matrix .floor-label { min-height: 42px; justify-content: center; font-size: 14px; color: #5e6672; background: #f5f6f7; font-weight: 500; }
.catalog-matrix .floor-caption { min-height: 36px; font-size: 11px; font-weight: 400; }
.catalog-matrix .compact .floor-label, .catalog-matrix .compact .floor-label.right { justify-content: center; padding: 0; font-size: 14px; }
.catalog-matrix .compact .floor-caption { font-size: 11px; }
.catalog-matrix .floor-label.right { color: #969ca5; font-size: 11px; }
.catalog-matrix .section-row { position: relative; margin-bottom: 12px; }
.catalog-matrix .section-label {
  display: grid; place-items: center; min-height: 36px; padding: 6px 4px; background: #e9ecf0;
  border: 0; border-radius: 3px; color: #454c57; font-size: 13px; font-weight: 650;
}
.catalog-matrix .lot.tile { display: flex; flex-direction: column; justify-content: center; gap: 0; min-height: 40px; padding: 3px 4px; font-size: 12px; font-weight: 500; line-height: 1.3; border-radius: 3px; }
.catalog-matrix .tile-value { display: block; font-size: 13px; font-weight: 650; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.catalog-matrix .tile-number { font-size: 11px; font-weight: 400; opacity: .85; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.catalog-matrix .lot.free { background: #daf3e5; color: #275540; border-color: #b6e2c9; }
.catalog-matrix .lot.booked { background: #ffedcf; color: #74521d; border-color: #f3d49c; }
.catalog-matrix .lot.sold { background: #e3e6ec; color: #626a77; border-color: #d6dae2; }
.catalog-matrix .lot.hidden { background: #f9fafb; border: 1px dashed #c2c8d1; color: #8a929f; }
.catalog-matrix .lot.dimmed { opacity: .3; }
.catalog-matrix .lot.dimmed:hover, .catalog-matrix .lot.dimmed:focus-visible { opacity: .8; }
.catalog-matrix .lot.selected { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: -1px; box-shadow: none; }
.catalog-matrix .lot.picked:not(.selected) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.catalog-matrix .lot:hover { border-color: #8d979f; box-shadow: none; }
.catalog-matrix .lot.selected:hover { border-color: var(--brand); }
.catalog-matrix .lot-gap { min-height: 40px; border-radius: 3px; background: #eef0f3; }
.catalog-matrix .compact .floor-label { min-height: 40px; }
.catalog-matrix .underground-title { font-size: 12px; font-weight: 500; margin: 24px 4px 12px; color: #7c8490; }
.catalog-workspace .selection-banner { margin: 12px 28px 0; font-size: 12px; }
.catalog-workspace .lot-table { border: 0; background: #fff; }
.lot-inspector {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px; padding: 14px 28px; border-top: 1px solid #d7dce3; background: #fff;
}
.inspector-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; min-width: 0; font-size: 14px; }
.inspector-facts > strong:first-child { font-size: 20px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.inspector-facts > span:not(.badge) { color: #6b7380; }
.inspector-facts .inspector-price { font-size: 20px; font-weight: 700; white-space: nowrap; }
.inspector-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.inspector-actions .button { min-width: 180px; }
body:has(.content-chess) dialog.lot-panel { width: min(400px, 100vw); }
@media (min-width: 900px) {
  body:has(dialog.lot-panel[open]) .content.content-chess { padding-right: 0; }
}
@media (max-width: 1280px) {
  .catalog-heading { gap: 12px 18px; }
  .catalog-display { margin-left: 0; }
  .catalog-filters { gap: 12px 16px; }
  .catalog-filter { gap: 8px; }
  .catalog-filter input { width: 132px; }
}
@media (max-width: 800px) {
  .catalog-workspace { min-height: calc(100dvh - 90px); }
  .catalog-heading { padding: 18px 16px 12px; gap: 16px; }
  .catalog-heading h1 { font-size: 24px; }
  .catalog-project { flex: 1; min-width: 150px; font-size: 14px; }
  .building-tabs { width: 100%; padding: 0; border: 0; min-height: 40px; }
  .catalog-display { width: 100%; justify-content: space-between; }
  .catalog-display .segmented button { font-size: 11px; padding-inline: 8px; }
  .catalog-display .segmented .icon { display: none; }
  .catalog-display .inline-select { gap: 6px; }
  .catalog-display .inline-select > span { display: none; }
  .catalog-display select { max-width: 136px; min-width: 0; font-size: 12px; }
  .catalog-filters { padding: 14px 16px; align-items: end; }
  .catalog-filter:first-child { flex-basis: 100%; }
  .catalog-filter:not(:first-child) { display: grid; flex: 1 1 130px; gap: 5px; }
  .catalog-filter input { width: 100%; font-size: 16px; }
  .catalog-filters .more-filters { margin-left: auto; }
  .catalog-extra-filters { padding: 14px 16px; }
  .catalog-extra-filters label, .catalog-extra-filters select { width: 100%; }
  .catalog-legend { padding: 12px 16px 0; gap: 8px; }
  .catalog-legend .status-legend { gap: 6px 12px; }
  .catalog-legend .legend-chip { font-size: 10px; }
  .catalog-legend .legend-swatch { width: 13px; height: 13px; }
  .catalog-matrix { padding: 0 12px 10px; }
  .catalog-matrix .chess-grid.compact { --floor-label: 30px; --section-gap: 12px; }
  .catalog-matrix .compact .building-grid { --cell: 62px; }
  .catalog-matrix .lot.tile, .catalog-matrix .lot-gap { min-height: 44px; }
  .catalog-matrix .floor-label { min-height: 44px; }
  .catalog-matrix .section-label { font-size: 11px; }
  .catalog-building-meta .code-chip { margin-left: 0; }
  .catalog-workspace.has-inspector { padding-bottom: 170px; }
  .lot-inspector { padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  .inspector-facts { gap: 6px 14px; font-size: 12px; }
  .inspector-facts > strong:first-child { font-size: 17px; }
  .inspector-facts .inspector-price { font-size: 17px; }
  .inspector-actions { width: 100%; justify-content: space-between; }
  .inspector-actions .button { flex: 1; min-height: 42px; }
  .catalog-workspace .selection-banner { margin-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-workspace * { scroll-behavior: auto; }
}

/* Project lifecycle: administrator's active/archive switch and archive notice. */
.project-lifecycle { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.project-archive-toggle button { min-height: 34px; }
.archive-notice {
  margin: 0; padding: 10px 28px; border-bottom: 1px solid #e7c9a8;
  background: #fff6ec; color: #7a3a06; font-weight: 600;
}
.secret-value { flex: 1 1 220px; font-family: Consolas, "Cascadia Mono", monospace; font-size: 16px; letter-spacing: .04em; }
