/* HyperLu WarRoom — REGION shell + panels (rebuild)
 * Loads AFTER legacy.css so these rules win for REGION chrome.
 * Chart series colors remain in JS. Chart chrome only.
 */

html,
body {
  font-family: var(--font-sans);
  font-size: var(--t-14);
  line-height: 1.45;
  color: var(--c-text);
  background: var(--c-bg);
}

/* ── App header ─────────────────────────────────────────── */
.app-header,
.app-toolbar {
  position: sticky;
  top: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--app-header-h);
  padding: 2px var(--s-2);
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: none;
}

.app-header.app-header--property-data,
.app-header.app-header--display {
  position: relative;
  top: auto;
  --prop-chrome-h: 36px;
  --prop-chrome-pad-y: 2px;
  --prop-chrome-pad-x: 8px;
  --prop-chrome-label-h: 10px;
  --prop-chrome-value-h: 16px;
  --prop-chrome-label-size: 10px;
  --prop-chrome-value-size: 12px;
  min-height: 0;
  padding: 4px var(--s-2);
  gap: var(--s-2);
}

.app-header--display #appMainTabs,
.app-header--display .main-tabs {
  display: none !important;
}

/* ── Mega header (Oxide-style stage) ────────────────────── */
.mega-header-split {
  display: none;
}

.mega-header-bar {
  display: none;
  align-items: stretch;
  gap: var(--s-2);
  flex: 1 1 auto;
  min-width: 0;
}

/* Public WR: split header on first paint — do not wait for mega-header.js */
html[data-wr-public="1"] .app-header {
  display: grid;
  grid-template-columns: var(--room-filter-panel-width) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  flex-wrap: nowrap;
}

html[data-wr-public="1"] .app-header > .app-header__brand,
html[data-wr-public="1"] .app-header .main-tabs,
html[data-wr-public="1"] .app-header #appMainTabs,
html[data-wr-public="1"] .app-header .app-header__pro,
html[data-wr-public="1"] .app-header #terminalTabsNav,
html[data-wr-public="1"] .app-header [data-tab-controls="displayChrome"],
html[data-wr-public="1"] .app-header [data-tab-controls="PropertyData"],
html[data-wr-public="1"] .app-header #propPortfolioExModeTabs,
html[data-wr-public="1"] .app-header .app-header-tab-controls,
html[data-wr-public="1"] .app-header .app-header__end {
  display: none !important;
}

html[data-wr-public="1"] .app-header .mega-header-split {
  display: contents;
}

html[data-wr-public="1"] .app-header .mega-header-bar {
  display: flex;
  flex: 1 1 auto;
  width: auto;
  justify-content: flex-start;
  gap: var(--s-1);
  margin: 0;
  padding: 0 var(--s-2);
  border-bottom: none;
}

html[data-wr-public="1"] .app-header #megaHeaderBar {
  grid-column: 1;
  min-width: 0;
  width: 100%;
  border-right: 1px solid var(--c-border);
  padding: 0;
}

html[data-wr-public="1"] .app-header .mega-header-right {
  grid-column: 2;
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.app-header--display {
  display: grid;
  grid-template-columns: var(--room-filter-panel-width) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  flex-wrap: nowrap;
}

/* WWW: header is the right column only — left column is the rail. */
.app-header--display.app-header--property-data {
  display: flex;
  grid-template-columns: none;
  margin-left: var(--room-filter-panel-width);
  width: calc(100% - var(--room-filter-panel-width));
  max-width: none;
  box-sizing: border-box;
}

body.property-tab-room-filter-hidden .app-header--display.app-header--property-data {
  margin-left: 0;
  width: 100%;
}

html[data-wr-public="1"] .app-header.app-header--property-data {
  display: flex;
  grid-template-columns: none;
  margin-left: var(--room-filter-panel-width);
  width: calc(100% - var(--room-filter-panel-width));
  max-width: none;
  box-sizing: border-box;
}

html[data-wr-public="1"] .app-header.app-header--property-data .mega-header-split {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

html[data-wr-public="1"] body.property-tab-room-filter-hidden .app-header.app-header--property-data {
  margin-left: 0;
  width: 100%;
}

.app-header--display > .app-header__brand {
  display: none;
}

.app-header--display .mega-header-split {
  display: contents;
}

.app-header--display.app-header--property-data .mega-header-split {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.app-header--display.app-header--property-data .mega-header-right {
  grid-column: auto;
  flex: 1 1 auto;
  width: 100%;
}

.app-header--display .mega-header-bar {
  display: flex;
  flex: 1 1 auto;
  width: auto;
  justify-content: flex-start;
  gap: var(--s-1);
  margin: 0;
  padding: 0 var(--s-2);
  border-bottom: none;
}

.app-header--display #megaHeaderBar {
  grid-column: 1;
  min-width: 0;
  width: 100%;
  border-right: 1px solid var(--c-border);
  padding: 0;
  display: flex;
  align-items: center;
  min-height: var(--prop-chrome-h, 36px);
}

#megaHeaderBar.mega-header-bar--rail {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: var(--app-header-h, 40px);
  min-height: var(--app-header-h, 40px);
  max-height: var(--app-header-h, 40px);
  border-right: none;
  border-bottom: none;
  background: var(--c-surface);
  padding: 0;
  box-sizing: border-box;
}

#megaHeaderBar.mega-header-bar--rail #megaHeaderDatasetsBtn {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  gap: var(--s-1);
  min-width: 0;
  max-width: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  padding: 0 var(--s-4);
  border-radius: 0;
  grid-template-columns: none;
  grid-template-rows: none;
}

.app-header--display.app-header--property-data #megaHeaderDatasetsBtn {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  gap: var(--s-1);
  min-width: 0;
  max-width: none;
  width: 100%;
  min-height: var(--prop-chrome-h, 36px);
  padding: 0 var(--s-4);
  border-radius: 0;
  grid-template-columns: none;
  grid-template-rows: none;
}

.app-header--display:not(.app-header--property-data) #megaHeaderDatasetsBtn {
  display: none !important;
}

.app-header--display:not(.app-header--property-data) {
  grid-template-columns: auto minmax(0, 1fr);
}

.app-header--display:not(.app-header--property-data) #megaHeaderBar {
  display: none;
  border-right: none;
}

.app-header--display #megaHeaderDatasetsBtn {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  gap: var(--s-1);
  min-width: 0;
  max-width: none;
  width: 100%;
  min-height: var(--prop-chrome-h, 36px);
  padding: 0 var(--s-4);
  border-radius: 0;
  grid-template-columns: none;
  grid-template-rows: none;
}

/* Home — only when drilled into a property (propertydata); hidden on propertylist */
.mega-header-home {
  display: none;
}

.app-header--display.app-header--property-data .mega-header-home {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 6px;
  width: auto;
  min-width: var(--prop-chrome-h, 36px);
  height: var(--prop-chrome-h, 36px);
  margin: 0;
  padding: 0 10px;
  border: var(--sel-border);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--sel-fg);
  cursor: pointer;
  box-sizing: border-box;
  transition:
    color var(--ease-oxide),
    background-color var(--ease-oxide),
    border-color var(--ease-oxide);
}

.app-header--display.app-header--property-data .mega-header-home:hover {
  border: var(--sel-border-hover);
  background: transparent;
  color: var(--sel-fg-hover);
}

.app-header--display.app-header--property-data .mega-header-home.is-home {
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.app-header--display.app-header--property-data .mega-header-home.is-home:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.mega-header-rail {
  display: none;
}

.app-header--display.app-header--property-data .mega-header-rail {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: var(--prop-chrome-h, 36px);
  min-width: var(--prop-chrome-h, 36px);
  height: var(--prop-chrome-h, 36px);
  padding: 0;
  box-sizing: border-box;
  cursor: pointer;
}

.app-header--display.app-header--property-data .mega-header-rail__icon {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.app-header--display.app-header--property-data .mega-header-home__icon {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  align-self: center;
}

/* Shared header nav chip label — BACK TO PROPERTIES + property name */
.app-header--display.app-header--property-data .mega-header-home__label,
.app-header--display.app-header--property-data .mega-header-prop-nav__name {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: var(--prop-chrome-value-size, 12px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  color: inherit;
}

.app-header--display.app-header--property-data .mega-header-home__label {
  flex: 0 0 auto;
  overflow: visible;
  text-overflow: clip;
}

/* Header properties chip — mirrors rail selector next to home */
.mega-header-prop-nav {
  display: none;
}

.app-header--display.app-header--property-data .mega-header-prop-nav {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 6px;
  min-width: 0;
  max-width: 16rem;
  height: var(--prop-chrome-h, 36px);
  margin: 0;
  padding: 0 10px;
  border: var(--sel-border);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--sel-fg);
  cursor: pointer;
  box-sizing: border-box;
  transition:
    color var(--ease-oxide),
    background-color var(--ease-oxide),
    border-color var(--ease-oxide);
}

.app-header--display.app-header--property-data .mega-header-prop-nav:hover {
  border: var(--sel-border-hover);
  background: transparent;
  color: var(--sel-fg-hover);
}

.app-header--display.app-header--property-data .mega-header-prop-nav[aria-expanded="true"] {
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.app-header--display.app-header--property-data .mega-header-prop-nav[aria-expanded="true"]:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.app-header--display.app-header--property-data .mega-header-prop-nav__list,
.app-header--display.app-header--property-data .mega-header-prop-nav__named {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-width: 0;
  max-width: 100%;
}

.app-header--display.app-header--property-data .mega-header-prop-nav__list[hidden],
.app-header--display.app-header--property-data .mega-header-prop-nav__named[hidden] {
  display: none !important;
}

.app-header--display.app-header--property-data .mega-header-prop-nav__count {
  font-family: var(--font-mono);
  font-size: var(--prop-chrome-value-size, 12px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: inherit;
  line-height: 1;
}

.app-header--display.app-header--property-data .mega-header-prop-nav__unit {
  font-family: var(--font-mono);
  font-size: var(--t-11);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.75;
  line-height: 1;
}

.app-header--display.app-header--property-data .mega-header-prop-nav[aria-expanded="true"] .mega-header-prop-nav__unit {
  color: inherit;
  opacity: 0.75;
}

.app-header--display.app-header--property-data .mega-header-prop-nav__chev {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4.5px solid currentColor;
  opacity: 0.7;
  align-self: center;
}

.app-header--display.app-header--property-data .mega-header-prop-nav[aria-expanded="true"] .mega-header-prop-nav__chev {
  transform: rotate(180deg);
  opacity: 1;
}

#megaHeaderDatasetsBtn .mega-header-trigger__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: inherit;
}

#megaHeaderDatasetsBtn .prop-nav-stack__value {
  grid-column: auto;
  grid-row: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  font-size: var(--prop-chrome-value-size, 12px);
  font-weight: 700;
}

#megaHeaderDatasetsBtn .mega-header-trigger__chev {
  display: none;
}

.mega-header-trigger__close {
  display: none;
}

#megaHeaderDatasetsBtn .mega-header-trigger__close {
  display: block;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: inherit;
  opacity: 0.75;
  transform: rotate(0deg);
  transition: transform var(--ease-oxide), opacity var(--ease-oxide);
}

#megaHeaderDatasetsBtn:hover .mega-header-trigger__close,
#megaHeaderDatasetsBtn.is-open .mega-header-trigger__close {
  opacity: 1;
}

#megaHeaderDatasetsBtn.is-open .mega-header-trigger__close {
  transform: rotate(180deg);
}

#megaHeaderDatasetsBtn:hover {
  border: var(--sel-border-hover);
  background: transparent;
  color: var(--sel-fg-hover);
}

#megaHeaderDatasetsBtn.is-open {
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
  border-radius: var(--r-md);
}

#megaHeaderDatasetsBtn.is-open:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

/* Open datasets: card owns mint — trigger stays rest chrome (no overlay z-index). */
.room-filter-datasets-preview:not(.is-collapsed) #megaHeaderDatasetsBtn.is-open,
.room-filter-datasets-preview:not(.is-collapsed) #megaHeaderDatasetsBtn.ui-sel.is-open,
.room-filter-datasets-preview:not(.is-collapsed) #megaHeaderDatasetsBtn.ui-sel[aria-expanded="true"],
.room-filter-datasets-preview:not(.is-collapsed) #megaHeaderDatasetsBtn.is-open:hover,
.room-filter-datasets-preview:not(.is-collapsed) #megaHeaderDatasetsBtn.ui-sel.is-open:hover,
.room-filter-datasets-preview:not(.is-collapsed) #megaHeaderDatasetsBtn.ui-sel[aria-expanded="true"]:hover,
.room-filter-datasets-preview:not(.is-collapsed) #megaHeaderDatasetsBtn.mega-header-trigger.is-open,
.room-filter-datasets-preview:not(.is-collapsed) #megaHeaderDatasetsBtn.mega-header-trigger[aria-expanded="true"],
.room-filter-datasets-preview:not(.is-collapsed) #megaHeaderDatasetsBtn.mega-header-trigger.is-open:hover,
.room-filter-datasets-preview:not(.is-collapsed) #megaHeaderDatasetsBtn.mega-header-trigger[aria-expanded="true"]:hover {
  border: var(--sel-border) !important;
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 0;
  margin-bottom: 0;
  z-index: auto;
  position: relative;
}

#megaHeaderDatasetsBtn .mega-header-datasets-value {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  width: auto;
}

#megaHeaderDatasetsBtn .mega-header-datasets-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  height: auto;
  padding: 0;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--sel-fg-active);
  font-family: var(--font-mono);
  font-size: var(--prop-chrome-value-size, 12px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

#megaHeaderDatasetsBtn .mega-header-datasets-sep {
  flex: 0 0 auto;
  color: var(--c-text-3);
  font-family: var(--font-mono);
  font-size: var(--prop-chrome-value-size, 12px);
  font-weight: 700;
  opacity: 0.65;
}

#megaHeaderDatasetsBtn.is-open .mega-header-datasets-chip {
  height: 22px;
  padding: 0 6px;
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.app-header--display .mega-header-right {
  grid-column: 2;
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.app-header--display .mega-header-bar--views {
  flex: 1 1 auto;
  align-items: center;
  gap: var(--s-1);
  padding-left: var(--s-2);
  overflow: visible;
}

.app-header--display.app-header--property-data .mega-header-bar--views .mega-header-home {
  margin-right: 0;
}

.app-header--display.app-header--property-data.app-header--property-list .mega-header-home {
  display: none;
}

/* Load-fx: orbs before Home — 0 width when idle, expand to push chrome right */
.load-fx--header {
  display: none;
  box-sizing: border-box;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  align-self: center;
  width: 0;
  min-width: 0;
  max-width: 0;
  height: 28px;
  margin: 0;
  margin-inline-end: calc(-1 * var(--s-1));
  padding: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    width 280ms cubic-bezier(0.22, 1, 0.36, 1),
    min-width 280ms cubic-bezier(0.22, 1, 0.36, 1),
    max-width 280ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-inline-end 280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 160ms ease;
}

.app-header--display.app-header--property-data .load-fx--header,
.app-header:not(.app-header--display) .app-header__end .load-fx--header {
  display: inline-flex;
}

.load-fx--header.is-busy {
  width: 28px;
  min-width: 28px;
  max-width: 28px;
  margin-inline-end: 0;
  opacity: 1;
  visibility: visible;
}

.load-fx--header .load-fx__canvas {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
}

@media (prefers-reduced-motion: reduce) {
  .load-fx--header {
    transition: none;
  }
}

.load-fx__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.load-fx-anchor {
  position: relative;
}

.load-fx--veil {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--c-surface);
  pointer-events: auto;
}

.load-fx--veil[hidden] {
  display: none !important;
}

.load-fx-anchor[data-load-fx-anchor='overview'].is-load-fx-busy,
.load-fx-anchor[data-load-fx-anchor='drill'].is-load-fx-busy {
  min-height: 140px;
}

.prop-portfolio-chart-wrapper.load-fx-anchor,
#propAvailabilityChartBlock .chart-wrapper.load-fx-anchor,
#propPriceBlock .chart-wrapper.load-fx-anchor {
  position: relative;
}

.chart-wrapper.load-fx-anchor .load-fx--veil {
  z-index: 32;
}

.load-fx--veil.load-fx--pbar {
  background: #07090c;
  align-items: stretch;
  justify-content: stretch;
}

.load-fx--veil.load-fx--pbar .load-fx__canvas {
  width: 100%;
  height: 100%;
}

.app-header--display.app-header--property-data .mega-header-bar--views .mega-header-prop-nav {
  margin-right: var(--s-1);
}

.mega-header-delta-glossary {
  display: none;
}

.app-header--display.app-header--property-data .mega-header-delta-glossary {
  display: inline-flex;
  position: relative;
  flex: 0 0 auto;
  align-items: center;
  align-self: center;
  z-index: 50;
  overflow: visible;
}

.app-header--display.app-header--property-data .mega-header-delta-glossary .prop-chart-heading-info--label {
  min-height: var(--prop-chrome-h, 36px);
  padding-inline: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--t-11);
  letter-spacing: 0.02em;
}

.app-header--display.app-header--property-data .mega-header-delta-glossary .prop-chart-heading-info-popover {
  z-index: 60;
}

.app-header--display .prop-portfolio-units-mode-bar {
  display: none;
}

/* List view: units bar must not claim 100% width and shove Δ off the row */
.app-header--display.app-header--property-list .prop-portfolio-units-mode-bar:not([hidden]) {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  justify-content: flex-end;
  gap: var(--s-2);
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0 var(--s-2);
}

.app-header--display #megaHeaderAdminBtn {
  margin-left: auto;
  flex: 0 0 auto;
}

/* Chart column: no flex gutter between cockpit tabs and first chart */
#propertyChartWrapper {
  gap: 0;
}

/* PropertyData cockpit tabs — under app header, above first chart */
#propCockpitTabsBar.prop-cockpit-chart-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  box-sizing: border-box;
  min-height: var(--prop-chrome-h, 36px);
  padding: 0 8px;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--c-surface-2, #161a20);
  position: sticky;
  top: 0;
  z-index: 6;
}

#propCockpitTabsBar.prop-cockpit-chart-bar[hidden] {
  display: none !important;
}

#propCockpitTabsBar .prop-cockpit-tabs,
#propCockpitTabsBar .mega-header-views {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding: 2px 0;
  box-sizing: border-box;
}

/* Layout only — .ui-sel owns rest/hover/selected */
#propCockpitTabsBar .mega-header-view-row,
#propCockpitTabsBar .mega-header-views .mega-header-view-row.prop-cockpit-tabs__tab {
  display: inline-flex;
  grid-template-columns: none;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 0;
  min-height: var(--prop-chrome-h, 36px);
  padding: 0 10px;
  white-space: nowrap;
  text-align: center;
  border-radius: var(--r-md);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-sizing: border-box;
}

#propCockpitTabsBar .mega-header-view-row__hint {
  display: none;
}

#propCockpitTabsBar .mega-header-view-row__label {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

#propCockpitTabsBar .mega-oxide-glyph {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: inherit;
}

#propCockpitTabsBar .mega-draw {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}

#propCockpitTabsBar .mega-header-view-row:hover,
#propCockpitTabsBar .mega-header-views .mega-header-view-row.prop-cockpit-tabs__tab:hover {
  border: var(--sel-border-hover);
  color: var(--sel-fg-hover);
  background: transparent;
}

#propCockpitTabsBar .mega-header-view-row.is-active,
#propCockpitTabsBar .mega-header-view-row.prop-cockpit__tab--active,
#propCockpitTabsBar .mega-header-view-row[aria-selected="true"],
#propCockpitTabsBar .mega-header-views .mega-header-view-row.prop-cockpit-tabs__tab.is-active,
#propCockpitTabsBar .mega-header-views .mega-header-view-row.prop-cockpit-tabs__tab.prop-cockpit__tab--active,
#propCockpitTabsBar .mega-header-views .mega-header-view-row.prop-cockpit-tabs__tab[aria-selected="true"] {
  border: var(--sel-border-active);
  color: var(--sel-fg-active);
  background: var(--sel-bg-active);
}

#propCockpitTabsBar .mega-header-view-row.is-active:hover,
#propCockpitTabsBar .mega-header-view-row.prop-cockpit__tab--active:hover,
#propCockpitTabsBar .mega-header-view-row[aria-selected="true"]:hover,
#propCockpitTabsBar .mega-header-views .mega-header-view-row.prop-cockpit-tabs__tab.is-active:hover,
#propCockpitTabsBar .mega-header-views .mega-header-view-row.prop-cockpit-tabs__tab.prop-cockpit__tab--active:hover,
#propCockpitTabsBar .mega-header-views .mega-header-view-row.prop-cockpit-tabs__tab[aria-selected="true"]:hover {
  border: var(--sel-border-hover);
  color: var(--sel-fg-active);
  background: var(--sel-bg-active);
}

#propCockpitTabsBar .mega-header-view-row.is-active .mega-header-view-row__label,
#propCockpitTabsBar .mega-header-view-row.prop-cockpit__tab--active .mega-header-view-row__label,
#propCockpitTabsBar .mega-header-view-row[aria-selected="true"] .mega-header-view-row__label,
#propCockpitTabsBar .mega-header-view-row.is-active .mega-oxide-glyph,
#propCockpitTabsBar .mega-header-view-row.prop-cockpit__tab--active .mega-oxide-glyph,
#propCockpitTabsBar .mega-header-view-row[aria-selected="true"] .mega-oxide-glyph {
  color: var(--sel-fg-active);
}

/* Drill: cockpit tabs flush to first chart — hide leftover list head / pad */
#propertyChartWrapper:has(#propCockpitTabsBar:not([hidden])) .prop-portfolio-table > thead {
  display: none !important;
}

#propertyChartWrapper:has(#propCockpitTabsBar:not([hidden])) .prop-cockpit__panels {
  padding-top: 0;
}

#propertyChartWrapper:has(#propCockpitTabsBar:not([hidden])) .prop-portfolio-table--has-expanded-row tr.prop-portfolio-expand td {
  border: none;
  padding: 0 !important;
}

#propertyChartWrapper:has(#propCockpitTabsBar:not([hidden])) #propAvailabilityChartBlock.chart-container,
#propertyChartWrapper:has(#propCockpitTabsBar:not([hidden])) #propPriceBlock .chart-container,
#propertyChartWrapper:has(#propCockpitTabsBar:not([hidden])) .prop-cockpit-rates .chart-container {
  padding-top: 0;
  padding-bottom: 0;
  border-top: none;
  border-radius: 0;
}

#propertyChartWrapper:has(#propCockpitTabsBar:not([hidden])) #propAvailabilityChartHeading.prop-portfolio-chart-heading,
#propertyChartWrapper:has(#propCockpitTabsBar:not([hidden])) #propPriceChartHeading.prop-portfolio-chart-heading {
  padding-top: 0;
}

.mega-header-cockpit-host {
  display: none !important;
}

/* Legacy header host kept in DOM but unused — cockpit tabs mount under the chart. */
#megaHeaderCockpitHost {
  display: none !important;
}

/* Under-chart PropertyData view tabs (was mega-header cockpit) */
#propPropertyDataUnderFilters .prop-cockpit-tabs,
#propPropertyDataUnderFilters .mega-header-views,
.prop-portfolio-under-filters-host .prop-cockpit-tabs,
.prop-portfolio-under-filters-host .mega-header-views {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  width: 100%;
  overflow-x: auto;
}

#propPropertyDataUnderFilters .mega-header-view-row,
#propPropertyDataUnderFilters .mega-header-views .mega-header-view-row.prop-cockpit-tabs__tab,
.prop-portfolio-under-filters-host .mega-header-view-row,
.prop-portfolio-under-filters-host .mega-header-views .mega-header-view-row.prop-cockpit-tabs__tab {
  display: inline-flex;
  grid-template-columns: none;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  width: auto;
  min-width: 0;
  min-height: var(--prop-chrome-h, 36px);
  padding: 0 var(--s-2);
  white-space: nowrap;
  text-align: center;
  border-radius: var(--r-md);
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#propPropertyDataUnderFilters .mega-header-view-row__hint,
.prop-portfolio-under-filters-host .mega-header-view-row__hint {
  display: none;
}

#propPropertyDataUnderFilters .mega-header-view-row__label,
.prop-portfolio-under-filters-host .mega-header-view-row__label {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

#propPropertyDataUnderFilters .mega-oxide-glyph,
.prop-portfolio-under-filters-host .mega-oxide-glyph {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: inherit;
}

#propPropertyDataUnderFilters .mega-draw,
.prop-portfolio-under-filters-host .mega-draw {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}

#propPropertyDataUnderFilters .mega-header-view-row:hover,
.prop-portfolio-under-filters-host .mega-header-view-row:hover {
  border: var(--sel-border-hover);
  color: var(--sel-fg-hover);
  background: transparent;
}

#propPropertyDataUnderFilters .mega-header-view-row.is-active,
#propPropertyDataUnderFilters .mega-header-view-row.prop-cockpit__tab--active,
#propPropertyDataUnderFilters .mega-header-view-row[aria-selected="true"],
.prop-portfolio-under-filters-host .mega-header-view-row.is-active,
.prop-portfolio-under-filters-host .mega-header-view-row.prop-cockpit__tab--active,
.prop-portfolio-under-filters-host .mega-header-view-row[aria-selected="true"] {
  border: var(--sel-border-active);
  color: var(--sel-fg-active);
  background: var(--sel-bg-active);
}

#propPropertyDataUnderFilters .mega-header-view-row.is-active:hover,
#propPropertyDataUnderFilters .mega-header-view-row.prop-cockpit__tab--active:hover,
#propPropertyDataUnderFilters .mega-header-view-row[aria-selected="true"]:hover,
.prop-portfolio-under-filters-host .mega-header-view-row.is-active:hover,
.prop-portfolio-under-filters-host .mega-header-view-row.prop-cockpit__tab--active:hover,
.prop-portfolio-under-filters-host .mega-header-view-row[aria-selected="true"]:hover {
  border: var(--sel-border-hover);
  color: var(--sel-fg-active);
  background: var(--sel-bg-active);
}

.app-header--display .app-header__pro,
.app-header--display #terminalTabsNav {
  display: none;
}

.app-header--display [data-tab-controls="displayChrome"],
.app-header--display [data-tab-controls="PropertyData"] {
  display: none !important;
}

.app-header--display #propPortfolioExModeTabs {
  display: none !important;
}

/* WWW parks date controls in the datasets rail; INDEX/MERGE still use header tab controls. */
.app-header--display.app-header--property-data .app-header-tab-controls {
  display: none !important;
}

.app-header-tab-controls .merge-price-band {
  flex: 0 0 auto;
  align-self: center;
}

.app-header-tab-controls .prices-merge-ex-btn {
  flex: 0 0 auto;
  align-self: center;
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mega-header-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: var(--prop-chrome-label-h, 11.2px) minmax(var(--prop-chrome-value-h, 19.6px), 1fr);
  align-items: center;
  justify-items: stretch;
  flex: 0 0 auto;
  gap: 0 var(--s-2);
  min-height: var(--prop-chrome-h, 32px);
  min-width: 5.25rem;
  max-width: 11rem;
  margin: 0;
  padding: 0 var(--s-2);
  border: var(--sel-border);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--sel-fg);
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  transition:
    color var(--ease-oxide),
    background-color var(--ease-oxide),
    border-color var(--ease-oxide);
}

.mega-header-trigger .prop-nav-stack__label {
  grid-column: 1;
  grid-row: 1;
}

.mega-header-trigger .prop-nav-stack__value {
  grid-column: 1;
  grid-row: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
}

.mega-header-trigger__chev {
  grid-column: 2;
  grid-row: 1 / -1;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--c-text-3);
  border-bottom: 1px solid var(--c-text-3);
  transform: rotate(45deg);
  transition: transform var(--ease-oxide), border-color var(--ease-oxide);
}

.mega-header-trigger:hover {
  border: var(--sel-border-hover);
  background: transparent;
  color: var(--sel-fg-hover);
}

.mega-header-trigger.is-open,
.mega-header-trigger[aria-expanded="true"] {
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.mega-header-trigger.is-open:hover,
.mega-header-trigger[aria-expanded="true"]:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.mega-header-trigger.is-open .prop-nav-stack__value,
.mega-header-trigger[aria-expanded="true"] .prop-nav-stack__value,
.mega-header-trigger:hover .prop-nav-stack__value {
  color: inherit;
}

.mega-header-trigger.is-open .mega-header-trigger__chev {
  transform: rotate(-135deg);
  border-color: var(--c-accent);
}

.mega-header-trigger--datasets {
  display: none;
}

.app-header--property-data .mega-header-trigger--datasets,
#megaHeaderBar.mega-header-bar--rail .mega-header-trigger--datasets {
  display: inline-flex;
}

.mega-header-bar__exit {
  display: flex;
  align-items: center;
  margin-left: auto;
  min-width: 0;
}

.mega-header-bar .prop-nav-property-exit {
  margin-left: 0;
}

.app-header--display .app-header__end {
  display: none !important;
}

.mega-header-stage {
  position: fixed;
  top: var(--app-header-h, 32px);
  left: 0;
  right: 0;
  z-index: 1090;
  pointer-events: none;
}

.mega-header-stage.is-open {
  pointer-events: auto;
}

.mega-header-stage[hidden] {
  display: none;
}

.mega-header-stage__scrim {
  position: fixed;
  top: var(--app-header-h, 32px);
  left: 0;
  right: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--c-bg) 55%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease-expand-fade);
}

.mega-header-stage.is-open .mega-header-stage__scrim {
  opacity: 1;
  pointer-events: auto;
}

.mega-header-stage__sheet {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 0fr;
  width: min(54rem, calc(100% - 2rem));
  margin-inline: auto;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-top: 0;
  transition: grid-template-rows var(--ease-expand);
}

.mega-header-stage.is-open .mega-header-stage__sheet {
  grid-template-rows: 1fr;
}

.mega-header-stage__inner {
  overflow: hidden;
  min-height: 0;
}

.mega-header-stage__panel {
  padding: 0;
  min-height: 0;
}

html.mega-header-ready .mega-header-stage__panel {
  min-height: 0;
}

.mega-header-stage__host--parked {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none;
}

.mega-oxide {
  display: grid;
  grid-template-columns: minmax(11rem, 0.9fr) repeat(3, minmax(9.5rem, 1fr)) minmax(15rem, 1.25fr);
  min-height: 0;
  gap: 0;
}

.mega-oxide--admin {
  grid-template-columns: minmax(12rem, 0.9fr) minmax(14rem, 1.1fr) minmax(16rem, 1.3fr);
  align-items: stretch;
}

.mega-oxide--admin .mega-oxide__col--intro {
  display: flex;
  flex-direction: column;
}

.mega-oxide-brand-host {
  margin-top: auto;
  padding-top: var(--s-4);
}

.mega-oxide-brand-host .app-header__brand {
  display: inline-flex;
  align-items: center;
  padding: var(--s-2) 0;
  margin: 0;
  border: none;
  background: transparent;
}

.mega-oxide-brand-host .app-header__logo {
  height: 28px;
  max-width: 11rem;
}

.mega-oxide--views {
  grid-template-columns: minmax(12rem, 0.9fr) minmax(22rem, 1.4fr);
}

.mega-oxide--datasets {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  background: var(--c-surface);
  color: var(--c-text);
  padding: var(--s-2) 0 var(--s-3);
  box-sizing: border-box;
}

.room-filter-datasets-preview .mega-oxide__col,
.mega-oxide--datasets > .mega-oxide__col {
  border-right: none;
  border-bottom: none;
  padding: 0;
}

/* One settings shell — parts are rows, not cards */
.mega-oxide--datasets .mega-oxide-mod {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: auto;
  min-height: 0;
  padding: 0 var(--s-4);
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.mega-oxide-mod__head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-1);
}

/* Same stack as OVERVIEW / TARGET DAY labels (.prop-nav-stack__label). */
.mega-oxide--datasets .mega-oxide-mod__title,
.mega-oxide--datasets .mega-oxide-mod__title.prop-nav-stack__label,
.mega-oxide-mod__title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  min-height: var(--prop-chrome-label-h, 10px);
  color: var(--c-text-3) !important;
  font-family: var(--font-mono) !important;
  font-size: var(--t-11) !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  font-feature-settings: "calt" 0 !important;
}

.mega-oxide-mod__title {
  margin: 0 0 var(--s-2);
  flex: initial;
}

/* Datasets rail: S/M/L type — labels S, values M/L; 4 colors only */
.mega-oxide--datasets {
  font-family: var(--font-mono);
  font-size: var(--t-11);
  font-weight: 400;
  letter-spacing: 0.04em;
  font-feature-settings: "calt" 0;
}

.mega-oxide--datasets .mega-oxide-mod__head {
  margin: 0;
  min-height: 0;
  align-items: center;
}

.mega-oxide--datasets .mega-oxide-mod__title,
.mega-oxide--datasets .mega-oxide-mod__title.prop-nav-stack__label {
  color: var(--c-text-3) !important;
  height: auto !important;
  min-height: 0 !important;
  white-space: normal;
  overflow: visible;
  font-size: var(--t-10) !important;
  line-height: 1.2 !important;
}

/* Collapsed help sits between title and control — hide it so it cannot leak a gap. */
.mega-oxide--datasets .mega-oxide-mod:not(.is-open) .mega-oxide-mod__lede-wrap {
  display: none;
}

.mega-oxide--datasets .mega-oxide-mod__lede {
  margin: 0 0 var(--s-2);
  max-width: none;
  font-size: var(--t-11);
  color: var(--c-text-2);
}

.mega-oxide--datasets .mega-oxide-los {
  flex: 0 0 auto;
  margin-top: 2px;
}

.mega-oxide--datasets .mega-oxide-mod__info {
  width: 16px;
  height: 16px;
}

.mega-oxide-mod[data-mega-mod="los"] .mega-oxide-mod__title {
  flex: 1 1 auto;
}

.mega-oxide-mod[data-mega-mod="los"] .mega-oxide-mod__info {
  margin-left: 0;
}

.mega-oxide-mod[data-mega-mod="horizon"] .mega-oxide-mod__title {
  flex: 1 1 auto;
}

.mega-oxide-mod[data-mega-mod="horizon"] .mega-oxide-mod__info {
  margin-left: 0;
}

.mega-oxide-mod[data-mega-mod="net"] .mega-oxide-mod__title {
  flex: 1 1 auto;
}

.mega-oxide-mod[data-mega-mod="net"] .mega-oxide-mod__info {
  margin-left: 0;
}

#megaHorizonStage.mega-oxide-los {
  flex: 0 0 auto;
}

.mega-oxide-mod__info {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: var(--sel-border);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--sel-fg);
  cursor: pointer;
  box-sizing: border-box;
  transition:
    border-color var(--ease-oxide),
    background-color var(--ease-oxide),
    color var(--ease-oxide);
}

.mega-oxide-mod__info:hover {
  border: var(--sel-border-hover);
  background: transparent;
  color: var(--sel-fg-hover);
}

.mega-oxide-mod.is-open .mega-oxide-mod__info,
.mega-oxide-mod__info[aria-expanded="true"] {
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.mega-oxide-mod.is-open .mega-oxide-mod__info:hover,
.mega-oxide-mod__info[aria-expanded="true"]:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.mega-oxide-mod__info-icon {
  display: block;
  width: 12px;
  height: 16px;
}

.mega-oxide-mod__lede-wrap {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  transition:
    grid-template-rows var(--ease-expand),
    opacity var(--ease-expand-fade);
}

.mega-oxide-mod.is-open .mega-oxide-mod__lede-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
}

.mega-oxide-mod__lede-wrap > .mega-oxide-mod__lede {
  overflow: hidden;
  min-height: 0;
  margin-bottom: var(--s-2);
}

@media (prefers-reduced-motion: reduce) {
  .mega-oxide-mod__lede-wrap {
    transition: none;
  }
}

.mega-oxide__col {
  min-width: 0;
  padding: var(--s-4) var(--s-4);
  border-right: 1px solid var(--c-border);
}

.mega-oxide__col:last-child {
  border-right: none;
}

.mega-oxide__title {
  margin: 0 0 var(--s-2);
  color: var(--c-text);
  font-size: var(--t-16);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

.mega-oxide__lede {
  margin: 0 0 var(--s-5);
  max-width: 16rem;
  color: var(--c-text-3);
  font-size: var(--t-12);
  font-weight: 400;
  line-height: 1.45;
}

.mega-oxide__live {
  margin: 0;
  color: var(--c-text-2);
  font-size: var(--t-12);
  font-weight: 400;
}

.mega-oxide-mod {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.mega-oxide-mod__caption {
  margin-top: auto;
  padding-top: var(--s-4);
  color: var(--c-text-3);
  font-size: var(--t-12);
  letter-spacing: 0.04em;
}

.mega-oxide-mod__lede {
  margin: 0 0 var(--s-4);
  color: var(--c-text-3);
  font-size: var(--t-12);
  font-weight: 400;
  line-height: 1.45;
}

.mega-oxide-los {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.mega-oxide-los__art {
  position: relative;
  width: 100%;
  max-width: none;
}

#megaLosStage.mega-oxide-los {
  flex: 0 0 auto;
}

.mega-oxide-los-seg.prop-portfolio-ex-mode {
  display: flex;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 2px;
  box-sizing: border-box;
}

.mega-oxide-los-seg .prop-portfolio-ex-mode__btn,
.mega-oxide-los-seg .hl-seg__btn {
  flex: 1 1 0;
  min-width: 0;
  height: 24px;
  padding: 0 4px;
  font-size: var(--t-12);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.mega-oxide-los-seg .prop-portfolio-ex-mode__btn:disabled,
.mega-oxide-los-seg .prop-portfolio-ex-mode__btn.is-disabled {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

.mega-oxide-los__svg {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  font-family: var(--font-mono);
}

/* Compact stick plate — intrinsic width when not stretched in a bar. */
.mega-oxide-los__svg--compact {
  display: block;
  max-width: 100%;
}

/*
 * Lock SVG labels to OVERVIEW / TARGET DAY chrome.
 * Use !important so presentation font-size="8" (user units) cannot win and
 * scale into a different-looking face/size than the HTML cards below.
 */
.mega-oxide-los__svg text {
  font-family: var(--font-mono) !important;
  font-size: var(--t-11) !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em;
  font-feature-settings: "calt" 0;
  font-variant-numeric: tabular-nums;
}

.mega-oxide-los__ink {
  color: var(--c-text-3);
}

.mega-oxide-hz__rest {
  color: var(--c-border);
}

.mega-oxide-hz__now {
  color: var(--c-text-3);
}

.mega-oxide-los__dim {
  opacity: 0.38;
}

.mega-oxide-los__hits {
  position: absolute;
  inset: 0;
}

.mega-oxide-los__hit {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mega-oxide-los__hit.is-disabled {
  cursor: default;
  pointer-events: none;
}

.mega-oxide-tiles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
}

.mega-oxide-tile {
  display: grid;
  grid-template-columns: 1.75rem 4.5rem 1fr;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  margin: 0;
  padding: var(--s-3) var(--s-3);
  border: var(--sel-border);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--sel-fg);
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  transition:
    background-color var(--ease-oxide),
    border-color var(--ease-oxide),
    color var(--ease-oxide);
}

.mega-oxide-tile:hover {
  border: var(--sel-border-hover);
  background: transparent;
}

.mega-oxide-tile.is-active {
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.mega-oxide-tile.is-active:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
}

.mega-oxide-tile__label {
  font-size: var(--t-12);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mega-oxide-tile__hint {
  color: var(--c-text-3);
  font-size: var(--t-12);
  font-weight: 400;
}

.mega-oxide-tile.is-active .mega-oxide-tile__hint {
  color: var(--c-accent);
  opacity: 0.85;
}

.mega-oxide-glyph {
  width: 24px;
  height: 24px;
  color: inherit;
  flex: 0 0 24px;
}

#megaNetStage.mega-oxide-los {
  flex: 0 0 auto;
}

/* WAS/NOW scrape-date chips — same rest / hover / selected as every other selectable */
.mega-oxide-stick-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 4px 8px;
  border: var(--sel-border);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--sel-fg);
  font-family: var(--font-mono);
  font-size: var(--t-12);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  cursor: pointer;
  transition:
    border-color var(--ease-oxide),
    background-color var(--ease-oxide),
    color var(--ease-oxide);
}

.mega-oxide-stick-chip:hover {
  border: var(--sel-border-hover);
  background: transparent;
  color: var(--sel-fg-hover);
}

.mega-oxide-stick-chip.is-picker-open,
.mega-oxide-stick-chip[aria-expanded="true"] {
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.mega-oxide-stick-chip.is-picker-open:hover,
.mega-oxide-stick-chip[aria-expanded="true"]:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

/* Scrape dates: two solid strips, chips + Δ in front (z-index). */
.mega-oxide-net--strips {
  min-width: 0;
  width: 100%;
}

.mega-oxide-net__plate {
  position: relative;
  width: 100%;
  min-width: 0;
}

.mega-oxide-net__svg {
  display: block;
  width: 100%;
  height: auto;
  /* 2 * 16.5 + 4 gap ≈ 37 */
  min-height: 37px;
}

.mega-oxide-net__date-chip {
  left: 0;
  flex-direction: row;
  height: auto;
  /* Match RANGE stick numbers (active): --t-12 / 700 */
  font-size: var(--t-12);
  font-weight: 700;
}

.mega-oxide-net__date-chip--was {
  top: 22.3%;
  transform: translateY(-50%);
}

.mega-oxide-net__date-chip--now {
  top: 77.7%;
  transform: translateY(-50%);
}

.mega-oxide-net__date-lab,
.mega-oxide-net__date-val,
.mega-oxide-net__date-arrow {
  color: inherit;
  font-size: var(--t-12);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mega-oxide-net__date-lab {
  text-transform: uppercase;
  font-feature-settings: "calt" 0;
}

/* WAS row: date + arrow + label share the muted gray */
.mega-oxide-net__date-chip--was .mega-oxide-net__date-lab,
.mega-oxide-net__date-chip--was .mega-oxide-net__date-val,
.mega-oxide-net__date-chip--was .mega-oxide-net__date-arrow {
  opacity: 0.72;
}

/* Δ mid–right on the seam; L size (no giant mark). */
.mega-oxide-net__delta-lab {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 72%;
  right: auto;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  font-size: var(--t-14);
  font-weight: 600;
  line-height: 1;
  color: var(--c-accent);
  pointer-events: none;
}

.mega-oxide-net__delta-line {
  color: var(--c-accent);
  stroke: var(--c-accent);
}

/* Stick-meter bar (RANGE + Nights of stay): continuous sticks + label chips. */
.mega-oxide-hz-bar {
  position: relative;
  width: 100%;
  min-width: 0;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: visible;
  box-sizing: border-box;
}

.mega-oxide-hz-bar__sticks {
  position: absolute;
  inset: 2px;
  z-index: 0;
  width: auto;
  height: auto;
  pointer-events: none;
}

.mega-oxide-hz-bar .mega-oxide-los-seg.prop-portfolio-ex-mode {
  position: relative;
  z-index: 1;
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 0;
}

.mega-oxide-hz-bar__btn.prop-portfolio-ex-mode__btn,
.mega-oxide-hz-bar__btn.hl-seg__btn {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 24px;
  padding: 0;
  box-shadow: none;
  color: inherit;
}

.mega-oxide-hz-bar__chip.mega-oxide-stick-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 2px 5px;
  border: none;
  background: transparent;
  font-size: var(--t-12);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: inherit;
  cursor: inherit;
  pointer-events: none;
}

.mega-oxide-hz-bar__btn:hover .mega-oxide-hz-bar__chip,
.mega-oxide-hz-bar__btn.is-active .mega-oxide-hz-bar__chip,
.mega-oxide-hz-bar__btn.is-active:hover .mega-oxide-hz-bar__chip {
  border: none;
  background: transparent;
  color: inherit;
}

.mega-oxide-hz-bar__btn.is-active .mega-oxide-hz-bar__chip {
  font-weight: 700;
}

.mega-oxide-hz-bar__btn.is-disabled .mega-oxide-hz-bar__chip,
.mega-oxide-hz-bar__btn:disabled .mega-oxide-hz-bar__chip {
  color: var(--c-text-3);
  opacity: 0.38;
}

.mega-oxide-hz-bar__btn.is-partial .mega-oxide-hz-bar__chip {
  color: var(--c-text-2);
}

.prop-portfolio-row__name-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  width: 100%;
}

.prop-portfolio-row__lane-badge {
  display: inline-flex;
  margin-left: 0;
  padding: 0 var(--s-2);
  font-size: var(--t-10);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-2);
  border: var(--sel-border);
  border-radius: var(--r-1);
  line-height: 1.2;
  white-space: nowrap;
}

.prop-selector-item__coverage {
  display: block;
  margin-top: 2px;
  font-size: var(--t-10);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--c-text-3);
}

.prop-portfolio-ex-mode__btn.is-disabled,
.prop-portfolio-ex-mode__btn:disabled {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

.mega-oxide-specs__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
  color: var(--c-text);
  font-size: var(--t-12);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mega-oxide-specs__icon {
  width: 22px;
  height: 22px;
  border: 1px solid var(--c-accent);
  border-radius: 2px;
  background:
    linear-gradient(var(--c-accent), var(--c-accent)) center / 10px 1px no-repeat,
    linear-gradient(var(--c-accent), var(--c-accent)) center / 1px 10px no-repeat;
}

.mega-oxide-specs__hint {
  margin: 0 0 var(--s-4);
  color: var(--c-text-3);
  font-size: var(--t-12);
  line-height: 1.4;
}

.mega-oxide-specs--region {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 240px;
  overflow: auto;
}

.mega-oxide-specs--region .prop-region-picker__item {
  padding: var(--s-3) var(--s-3);
  border: var(--sel-border);
  border-radius: var(--r-md);
  background: transparent;
}

.mega-oxide-specs--region .prop-region-picker__item:hover {
  border: var(--sel-border-hover);
  background: transparent;
  color: var(--c-text);
}

.mega-oxide-specs--region .prop-region-picker__item--active {
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.mega-oxide-specs--region .prop-region-picker__item--active:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.mega-props-rail {
  --portfolio-name-color: var(--c-text-2, var(--x-text-secondary, #9aa3ad));
  flex: 0 0 auto;
  padding: 0;
  margin-bottom: var(--s-3);
  box-sizing: border-box;
}

.mega-props-rail:not(.is-ready) {
  display: none;
}

.mega-props-rail__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--s-3) var(--room-filter-color-gutter, var(--s-3)) calc(var(--s-3) / 2);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
  box-shadow: var(--sh-2);
  overflow: visible;
}

#megaPropsRailHost:not(.is-drilled) .mega-props-rail__card {
  padding-top: var(--s-2);
}

.mega-props-rail.is-open .mega-props-rail__card {
  border-color: var(--c-border-soft);
}

.mega-props-rail__head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  width: 100%;
  min-width: 0;
  min-height: var(--prop-chrome-h, 32px);
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
  border-radius: var(--r-md);
}

/* PROPERTIES rail head: hover ring only — never mint fill (count keeps its own green). */
#megaPropsRailHost .mega-props-rail__head.ui-sel,
#megaPropsRailHost .mega-props-rail__head.ui-sel.is-open,
#megaPropsRailHost .mega-props-rail__head.ui-sel.is-active,
#megaPropsRailHost .mega-props-rail__head.ui-sel:hover:not(:disabled) {
  border: var(--sel-border);
  background-color: transparent !important;
  color: var(--sel-fg) !important;
}

#megaPropsRailHost .mega-props-rail__head.ui-sel:hover:not(:disabled) {
  border: var(--sel-border-hover);
}

#megaPropsRailHost:not(.is-drilled) .mega-props-rail__head {
  min-height: 0;
  align-items: stretch;
  padding-bottom: calc(var(--s-2) + 2px);
}

.mega-props-rail__body {
  min-width: 0;
}

/* Default expand/collapse (Datasets 0fr → 1fr) */
.oxide-expand {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
  transition:
    grid-template-rows var(--ease-expand),
    opacity var(--ease-expand-fade);
}

.oxide-expand.is-open,
.mega-props-rail.is-open .mega-props-rail__body {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
}

.oxide-expand__inner,
.mega-props-rail__clip {
  overflow: hidden;
  min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
  .oxide-expand,
  .mega-header-stage__sheet,
  .mega-header-stage__scrim {
    transition: none;
  }
}

#propPropertySelectorPanel.mega-oxide-embedded {
  display: flex !important;
  flex-direction: column;
  position: static !important;
  top: auto !important;
  left: auto !important;
  z-index: 1;
  width: 100% !important;
  min-width: 0;
  max-width: none !important;
  height: auto !important;
  max-height: min(42vh, 320px);
  overflow: auto;
  box-shadow: none !important;
  animation: none;
  background: transparent !important;
  border: none !important;
  border-top: 1px solid color-mix(in srgb, var(--c-border) 70%, transparent) !important;
  border-radius: 0 !important;
  padding: calc(var(--s-2) - 2px) 0 0 !important;
  font-family: var(--font-mono);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#propPropertySelectorPanel.mega-oxide-embedded .property-selector-dropdown__list {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#propPropertySelectorPanel.mega-oxide-embedded::-webkit-scrollbar,
#propPropertySelectorPanel.mega-oxide-embedded .property-selector-dropdown__list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

#propPropertySelectorPanel.mega-oxide-embedded .panel-close {
  display: none !important;
}

#megaPropsRailHost .prop-selector-panel__header {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0 0 var(--s-2);
  background: transparent;
  border-bottom: 1px solid color-mix(in srgb, var(--c-border) 70%, transparent);
}

#megaPropsRailHost .prop-selector-panel__header--close-only {
  display: none;
}

#megaPropsRailHost .prop-selector-panel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex: 1 1 auto;
  min-width: 0;
}

#megaPropsRailHost .prop-selector-panel__toolbar--search {
  flex: 0 0 auto;
  padding: var(--s-2) 0 0;
}

#megaPropsRailHost .prop-selector-panel__toolbar .hl-btn,
#megaPropsRailHost .prop-selector-panel__toolbar .btn {
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#megaPropsRailHost .prop-selector-panel__toolbar .hl-btn--primary {
  color: var(--c-accent) !important;
}

#megaPropsRailHost .prop-selector-panel__toolbar .hl-btn--primary:hover {
  color: var(--c-accent-hover, var(--c-accent)) !important;
  background: transparent !important;
}

#megaPropsRailHost .prop-selector-panel__toolbar .hl-btn--danger {
  color: var(--c-neg, var(--x-error, #e85d4c)) !important;
  border: none !important;
  box-shadow: none !important;
}

#megaPropsRailHost .prop-selector-panel__toolbar .hl-btn--danger:hover {
  color: var(--c-neg, var(--x-error, #e85d4c)) !important;
  background: transparent !important;
  opacity: 0.85;
}

#megaPropsRailHost .prop-selector-panel__search {
  flex: 1 1 auto;
  min-width: 0;
}

#megaPropsRailHost #propPropertySearch {
  width: 100%;
  height: var(--prop-chrome-value-h, 18px);
  padding: 0 0 2px;
  font-family: var(--font-mono);
  font-size: var(--prop-chrome-value-size, 12px);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--c-border);
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

#megaPropsRailHost #propPropertySearch::placeholder {
  color: var(--c-text-3);
  opacity: 1;
  text-transform: uppercase;
}

#megaPropsRailHost #propPropertySearch:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: none;
  background: transparent;
}

#megaPropsRailHost .prop-selector-panel__body {
  gap: 0;
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

#megaPropsRailHost .property-selector-dropdown__section {
  padding: var(--s-2) 0 0;
  background: transparent;
}

#megaPropsRailHost #propPropertySelectorPanel.mega-oxide-embedded .property-selector-dropdown__section {
  padding-top: 0;
}

#megaPropsRailHost .property-selector-dropdown__section--selected {
  padding-bottom: var(--s-2);
  border-bottom: 1px solid color-mix(in srgb, var(--c-border) 70%, transparent);
}

#megaPropsRailHost .property-selector-dropdown__heading {
  margin: 0 0 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-3);
  opacity: 1;
}

#megaPropsRailHost .property-selector-dropdown__heading .prop-selected-mark {
  color: var(--c-text-2);
}

#megaPropsRailHost #propPropertySelectorBtn .prop-selected-mark,
#megaPropsRailHost .prop-nav-prop-btn[aria-expanded="true"] .prop-selected-mark {
  color: inherit;
}

#megaPropsRailHost .property-selector-dropdown__list {
  max-height: none;
  min-height: 0;
  padding: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#megaPropsRailHost .prop-selector-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 3px 0;
  font-family: var(--font-sans);
  font-size: var(--portfolio-type-size, var(--t-12));
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.25;
  border-radius: var(--r-sm);
  cursor: pointer;
  box-sizing: border-box;
}

#megaPropsRailHost .prop-selector-item span {
  font-weight: 400;
}

#megaPropsRailHost .prop-selector-item__name {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
}

#megaPropsRailHost .prop-selector-item__name:hover {
  text-decoration-color: currentColor;
}

#megaPropsRailHost .prop-selector-item input[type="checkbox"] {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--c-accent);
  pointer-events: auto;
  cursor: pointer;
}

#megaPropsRailHost.is-drilled .property-selector-dropdown .prop-selector-item input[type="checkbox"],
#propPropertySelectorPanel.prop-selector-panel--drill .prop-selector-item input[type="checkbox"] {
  accent-color: var(--c-text-3);
}

#megaPropsRailHost.is-drilled .property-selector-dropdown .prop-selector-item:not([aria-current="page"]) input[type="checkbox"],
#propPropertySelectorPanel.prop-selector-panel--drill .prop-selector-item:not([aria-current="page"]) input[type="checkbox"] {
  pointer-events: none;
  cursor: default;
}

#megaPropsRailHost.is-drilled .property-selector-dropdown__section--selected .property-selector-dropdown__heading,
#propPropertySelectorPanel.prop-selector-panel--drill .property-selector-dropdown__section--selected .property-selector-dropdown__heading {
  display: none;
}

#megaPropsRailHost.is-drilled .prop-selector-panel__toolbar,
#propPropertySelectorPanel.prop-selector-panel--drill .prop-selector-panel__toolbar,
#megaPropsRailHost.is-drilled .property-selector-dropdown__section--available,
#propPropertySelectorPanel.prop-selector-panel--drill .property-selector-dropdown__section--available {
  display: none !important;
}

#megaPropsRailHost.is-drilled .property-selector-dropdown__section--selected,
#propPropertySelectorPanel.prop-selector-panel--drill .property-selector-dropdown__section--selected {
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: none;
}

#megaPropsRailHost.is-drilled .property-selector-dropdown__section {
  padding-top: 0;
}

#megaPropsRailHost .prop-selector-item--disabled {
  opacity: 0.45;
  cursor: default;
}

#megaPropsRailHost #propPropertySelectorBtn.prop-nav-prop-btn,
#megaPropsRailHost #propPropertySelectorBtn.prop-nav-prop-stack {
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: var(--prop-chrome-h, 32px) !important;
  min-height: var(--prop-chrome-h, 32px) !important;
  max-height: var(--prop-chrome-h, 32px) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: visible;
  box-sizing: border-box;
}

/* Head is the expand/collapse hit target. Inner button is layout-only so the mint
   hover ring is on the same box you hover to open AND to collapse. */
#megaPropsRailHost .mega-props-rail__head.ui-sel #propPropertySelectorBtn,
#megaPropsRailHost .mega-props-rail__head.ui-sel #propPropertySelectorBtn:hover:not(:disabled),
#megaPropsRailHost .mega-props-rail__head.ui-sel #propPropertySelectorBtn[aria-expanded="true"],
#megaPropsRailHost .mega-props-rail__head.ui-sel #propPropertySelectorBtn[aria-expanded="true"]:hover:not(:disabled) {
  border: var(--sel-border) !important;
  background-color: transparent !important;
  color: inherit !important;
}

#megaPropsRailHost .prop-nav-prop-chip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

#megaPropsRailHost .prop-nav-prop-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  min-width: 0;
}

#megaPropsRailHost .prop-nav-prop-overview-line {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  width: auto;
  max-width: 100%;
  min-width: 0;
}

#megaPropsRailHost .prop-nav-prop-overview-line #propPropertySelectorBtn {
  display: inline-flex;
  flex: 0 1 auto;
  width: auto;
  max-width: none;
  min-width: 0;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}

#megaPropsRailHost .prop-nav-prop-overview-line #propPropertySelectorBtn:hover:not(:disabled),
#megaPropsRailHost .prop-nav-prop-overview-line #propPropertySelectorBtn[aria-expanded="true"],
#megaPropsRailHost .prop-nav-prop-overview-line #propPropertySelectorBtn[aria-expanded="true"]:hover:not(:disabled) {
  border: none !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}

#megaPropsRailHost .prop-nav-prop-overview-line .prop-nav-prop-overview {
  width: auto;
  flex-wrap: nowrap;
  white-space: nowrap;
}

#megaPropsRailHost .prop-nav-prop-view-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
  margin: 0 0 0 0.4em;
  padding: 0;
  border: none;
  border-radius: var(--r-sm);
  background: var(--c-neg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--t-11);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  vertical-align: baseline;
}

#megaPropsRailHost .prop-nav-prop-view-close:hover {
  filter: brightness(1.1);
}

#megaPropsRailHost .prop-nav-prop-view-close[hidden] {
  display: none !important;
}

#megaPropsRailHost #propNavPropViewRow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 3px 0;
  font-family: var(--font-sans);
  font-size: var(--portfolio-type-size, var(--t-12));
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: left;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  border-radius: 0;
}

#megaPropsRailHost #propNavPropViewRow:hover {
  border: 0;
  background: transparent;
}

#megaPropsRailHost #propNavPropViewRow[hidden] {
  display: none !important;
}

#megaPropsRailHost #propNavPropViewCheck {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--c-accent);
  pointer-events: auto;
  cursor: pointer;
}

#megaPropsRailHost #propNavPropViewRow .prop-selector-item__name {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-weight: 400;
  text-align: left;
  white-space: normal;
}

#megaPropsRailHost .prop-selector-item.ui-sel.prop-selector-item--selected:not(.is-active):not([aria-current="page"]) {
  border: var(--sel-border) !important;
  background-color: transparent !important;
  color: var(--sel-fg) !important;
}

#megaPropsRailHost .prop-selector-item.ui-sel.prop-selector-item--selected:not(.is-active):not([aria-current="page"]):hover:not(.is-disabled) {
  border: var(--sel-border-hover) !important;
  background-color: transparent !important;
  color: var(--sel-fg-hover) !important;
}

#megaPropsRailHost #propPropertySelectorBtn:not(.prop-nav-prop-btn--named) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: visible;
}

#megaPropsRailHost #propPropertySelectorBtn:not(.prop-nav-prop-btn--named) .prop-nav-prop-overview {
  justify-content: center;
  justify-self: center;
  text-align: center;
  width: 100%;
}

#megaPropsRailHost .prop-nav-prop-summary .prop-nav-prop-scale {
  justify-content: center;
  text-align: center;
  width: 100%;
}

#megaPropsRailHost.is-drilled .mega-props-rail__head {
  flex-direction: column;
  align-items: stretch;
  height: auto;
  min-height: 0;
  padding: 6px 0 4px;
  gap: 0;
}

#megaPropsRailHost #propPropertySelectorBtn.prop-nav-prop-btn--named {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: visible;
  box-sizing: border-box;
}

#megaPropsRailHost.is-drilled #propPropertySelectorBtn .prop-nav-stack__label {
  height: auto;
  min-height: 0;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 1;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  flex-wrap: wrap;
  gap: 0.25em;
}

#megaPropsRailHost.is-drilled #propPropertySelectorBtn .prop-nav-stack__label .prop-selected-mark {
  font-size: var(--prop-chrome-value-size, 13px);
  font-weight: 700;
  line-height: 1;
}

#megaPropsRailHost #propNavPropertyExitBtn.prop-nav-property-exit,
#megaPropsRailHost #propNavPropertyExitBtn.room-filter-intel__prop-exit {
  display: inline-flex;
  flex: 0 0 auto;
  align-self: center;
  width: auto;
  max-width: 9.5rem;
  height: 22px;
  margin: 0;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

#megaPropsRailHost #propNavPropertyExitBtn[hidden] {
  display: none !important;
}

.mega-header-views {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  max-width: none;
}

.mega-header-view-row {
  display: grid;
  grid-template-columns: 1.75rem 7.5rem 1fr;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  justify-content: flex-start;
  padding: var(--s-3) var(--s-3);
  border: var(--sel-border);
  background: transparent;
  white-space: normal;
  text-align: left;
  box-sizing: border-box;
  transition:
    border-color var(--ease-oxide),
    background-color var(--ease-oxide),
    color var(--ease-oxide);
}

.mega-header-view-row:hover {
  border: var(--sel-border-hover);
  background: transparent;
}

.mega-header-view-row.is-active,
.mega-header-view-row.prop-cockpit__tab--active {
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.mega-header-view-row.is-active:hover,
.mega-header-view-row.prop-cockpit__tab--active:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
}

.mega-header-view-row__label {
  color: inherit;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mega-header-view-row__hint {
  color: var(--c-text-3);
  font-size: var(--t-12);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.mega-header-view-row.is-active .mega-header-view-row__hint,
.mega-header-view-row.prop-cockpit__tab--active .mega-header-view-row__hint {
  color: var(--c-accent);
  opacity: 0.8;
}

html.mega-header-open {
  overflow: hidden;
}

.mega-header-stage .mega-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.mega-header-stage.is-drawn .mega-draw {
  animation: mega-stroke-draw 420ms ease-out forwards;
}

.mega-header-stage.is-open .mega-oxide__col {
  animation: mega-col-in var(--ease-oxide) both;
}

.mega-header-stage.is-open .mega-oxide__col:nth-child(1) { animation-delay: 0ms; }
.mega-header-stage.is-open .mega-oxide__col:nth-child(2) { animation-delay: 30ms; }
.mega-header-stage.is-open .mega-oxide__col:nth-child(3) { animation-delay: 60ms; }
.mega-header-stage.is-open .mega-oxide__col:nth-child(4) { animation-delay: 90ms; }
.mega-header-stage.is-open .mega-oxide__col:nth-child(5) { animation-delay: 120ms; }

@keyframes mega-col-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mega-stroke-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mega-header-stage.is-open .mega-oxide__col,
  .mega-header-stage.is-drawn .mega-draw {
    animation: none;
  }

  .mega-header-stage .mega-draw {
    stroke-dashoffset: 0;
  }

  .mega-header-stage.is-open .mega-oxide__col {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .mega-oxide:not(.mega-oxide--datasets),
  .mega-oxide--admin,
  .mega-oxide--views {
    grid-template-columns: 1fr 1fr;
  }

  .mega-oxide__col {
    border-right: none;
    border-bottom: 1px solid var(--c-border);
  }
}

.mega-header-stage .app-header-tab-controls {
  display: block;
  flex: none;
  width: 100%;
  overflow: visible;
}

.mega-header-stage .app-header-tab-controls .booking-panel--property.booking-toolbar--property,
.mega-header-stage .app-header-tab-controls .booking-panel--property {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.mega-header-stage .app-header-tab-controls .booking-panel--property .prop-date-stack-wrap,
.mega-header-stage .app-header-tab-controls .booking-panel--property .prop-horizon-stack,
.mega-header-stage .app-header-tab-controls .booking-panel--property .prop-target-stack {
  max-height: none;
  overflow: visible;
  height: auto;
}

/* Production (WR): user-hidable header — peek control restores it */
.app-header.app-header--user-hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  border-bottom-color: transparent;
}

.app-header-reveal {
  position: fixed;
  top: 6px;
  left: 6px;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 4px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  box-shadow: var(--sh-2);
  cursor: pointer;
  color: inherit;
}

.app-header-reveal:hover {
  background: var(--c-hover);
  border-color: var(--c-accent);
}

.app-header-reveal:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

body.app-header-is-hidden .app-header-reveal {
  display: inline-flex;
}

.app-header-reveal__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-header__brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0 var(--s-2);
  margin-left: 0;
  flex-shrink: 0;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  cursor: pointer;
  transition: background var(--ease-oxide), border-color var(--ease-oxide);
}

.app-header__brand:hover {
  background: var(--c-hover);
  border-color: var(--c-border);
}

.app-header__brand--active,
.app-header__brand.app-header__brand--active {
  background: var(--c-accent-soft);
  border-color: transparent;
  box-shadow: none;
}

.app-header__logo {
  display: block;
  width: auto;
  height: 28px;
  max-width: min(220px, 40vw);
  object-fit: contain;
  object-position: left center;
}

.app-header--display .app-header__logo {
  height: 18px;
}

.app-header--display .app-header__brand {
  padding: 0 var(--s-1) 0 0;
  margin-right: var(--s-1);
}

html[data-theme="light"] .app-header__logo {
  filter: invert(1);
}

.app-header__end {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-left: auto;
  flex-shrink: 0;
}

.hl-theme-toggle {
  display: none !important;
}

.app-header__nav.main-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}

.app-header__nav .tablinks,
.app-header-tab-controls__group[data-tab-controls="displayChrome"] .tablinks[data-display-tab] {
  appearance: none;
  border: var(--sel-border);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--sel-fg);
  font-family: var(--font-mono);
  font-size: var(--t-12);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  height: 28px;
  padding: 0 var(--s-3);
  cursor: pointer;
  font-feature-settings: "calt" 0;
  transition: color var(--ease-oxide), background var(--ease-oxide), border-color var(--ease-oxide);
}

.app-header--display .app-header__nav .tablinks,
.app-header--display .app-header-tab-controls__group[data-tab-controls="displayChrome"] .tablinks[data-display-tab] {
  height: 26px;
  padding: 0 var(--s-3);
  font-size: var(--t-12);
}

.app-header__nav .tablinks:hover,
.app-header-tab-controls__group[data-tab-controls="displayChrome"] .tablinks[data-display-tab]:hover {
  color: var(--sel-fg-hover);
  background: transparent;
  border: var(--sel-border-hover);
}

.app-header__nav .tablinks.active,
.app-header-tab-controls__group[data-tab-controls="displayChrome"] .tablinks[data-display-tab].active {
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
  border: var(--sel-border-active);
  box-shadow: none;
}

.app-header__nav .tablinks.active:hover,
.app-header-tab-controls__group[data-tab-controls="displayChrome"] .tablinks[data-display-tab].active:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

/* PRO menu */
.app-header__pro-btn {
  height: 28px;
  padding: 0 var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--t-11);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.app-header__pro-menu {
  background: var(--c-elevated);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  padding: var(--s-1);
}

.app-header__pro-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--t-13);
}

/* Header chips / stacks */
.app-header-tab-controls .booking-panel--property {
  display: flex;
  align-items: stretch;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.prop-nav-region-stack,
.prop-nav-date-stack,
.prop-date-stack,
.prop-nav-prop-stack,
button.prop-nav-region-stack,
button.prop-nav-date-stack {
  display: grid;
  grid-template-rows: var(--prop-chrome-label-h, 11.2px) minmax(var(--prop-chrome-value-h, 19.6px), 1fr);
  align-items: center;
  justify-items: stretch;
  gap: 0;
  min-height: var(--prop-chrome-h, 36px);
  padding: var(--s-1) var(--s-3);
  border: var(--sel-border);
  border-radius: var(--r-md);
  background: transparent;
  box-shadow: none;
  color: var(--sel-fg);
  cursor: pointer;
  transition:
    color var(--ease-oxide),
    background-color var(--ease-oxide),
    border-color var(--ease-oxide);
}

.prop-nav-region-stack:hover,
.prop-nav-date-stack:hover,
.prop-nav-prop-stack:hover,
button.prop-nav-region-stack:hover,
button.prop-nav-date-stack:hover,
button.prop-nav-prop-stack:hover {
  border: var(--sel-border-hover);
  background: transparent;
  color: var(--sel-fg-hover);
}

.prop-nav-region-stack[aria-expanded="true"],
.prop-nav-date-stack[aria-expanded="true"],
.prop-nav-prop-stack[aria-expanded="true"],
button.prop-nav-region-stack[aria-expanded="true"],
button.prop-nav-prop-stack[aria-expanded="true"] {
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.prop-nav-region-stack[aria-expanded="true"]:hover,
.prop-nav-date-stack[aria-expanded="true"]:hover,
.prop-nav-prop-stack[aria-expanded="true"]:hover,
button.prop-nav-region-stack[aria-expanded="true"]:hover,
button.prop-nav-prop-stack[aria-expanded="true"]:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.prop-horizon-stack {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-width: 4.75rem;
  width: auto;
  height: var(--prop-chrome-h, 36px);
  min-height: var(--prop-chrome-h, 36px);
  max-height: var(--prop-chrome-h, 36px);
  padding: 0;
  cursor: default;
  border-radius: var(--r-md);
  box-shadow: none;
  overflow: visible;
  box-sizing: border-box;
}

.booking-panel--property .prop-horizon-stack,
.app-header-tab-controls .booking-panel--property .prop-horizon-stack {
  display: flex !important;
  grid-template-rows: none;
  padding: 0 !important;
  height: var(--prop-chrome-h, 36px);
  min-height: var(--prop-chrome-h, 36px);
}

.prop-horizon-stack__btn {
  display: grid;
  grid-template-rows: var(--prop-chrome-label-h, 11.2px) minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  gap: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: var(--prop-chrome-pad-y, 1.7px) var(--prop-chrome-pad-x, 10px);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
  border-radius: var(--r-md);
}

.prop-horizon-stack__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: var(--prop-chrome-value-h, 19.6px);
  min-height: var(--prop-chrome-value-h, 19.6px);
  margin: 0 auto;
  font-size: var(--prop-chrome-value-size, 13px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1;
}

.prop-horizon-stack__unit {
  color: inherit;
  font-weight: 700;
  font-size: var(--prop-chrome-value-size, 13px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-left: 0.12em;
  line-height: 1;
  align-self: center;
}

.prop-date-stack-wrap {
  border: none;
  border-radius: var(--r-md);
  background: transparent;
  height: var(--prop-chrome-h, 36px);
  min-height: var(--prop-chrome-h, 36px);
  max-height: var(--prop-chrome-h, 36px);
  box-sizing: border-box;
  overflow: visible;
}

.prop-date-stack-wrap[data-mode='tactical'] {
  height: auto;
  min-height: var(--prop-chrome-h, 36px);
}

.prop-date-stack-visual {
  display: grid;
  grid-template-rows: var(--prop-chrome-label-h, 11.2px) minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  gap: 0;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  padding: var(--prop-chrome-pad-y, 1.7px) var(--prop-chrome-pad-x, 10px);
  margin: 0;
  border: var(--sel-border);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--sel-fg);
  font: inherit;
  line-height: 1;
  max-width: 16.5rem;
  min-width: 9.5rem;
  cursor: pointer;
  align-self: stretch;
  box-sizing: border-box;
  transition:
    border-color var(--ease-oxide),
    background-color var(--ease-oxide),
    color var(--ease-oxide);
}

.prop-date-stack-visual:hover {
  border: var(--sel-border-hover);
  background: transparent;
  color: var(--sel-fg-hover);
}

.prop-date-stack-visual[aria-expanded="true"] {
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.prop-date-stack-visual[aria-expanded="true"]:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.prop-nav-stack__label,
.prop-horizon-stack__label,
.prop-target-stack__label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--prop-chrome-label-h, 10px);
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.75;
  line-height: 1;
  font-feature-settings: "calt" 0;
}

.prop-nav-stack__value,
.prop-horizon-stack__select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--prop-chrome-value-h, 19.6px);
  min-height: var(--prop-chrome-value-h, 19.6px);
  margin: 0;
  font-size: var(--prop-chrome-value-size, 13px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: inherit;
  background: transparent;
  border: none;
  text-align: center;
  text-align-last: center;
  min-width: 0;
  width: 100%;
  line-height: 1;
  overflow: visible;
}

/* Range mark — inherit selectable color, no box */
.prop-horizon-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-mono);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: none;
  vertical-align: baseline;
  text-shadow: none;
  text-transform: uppercase;
}

.prop-horizon-stack__value .prop-horizon-mark {
  font-size: var(--prop-chrome-value-size, 13px);
  font-weight: 700;
  line-height: 1;
  padding: 0;
  align-self: center;
  outline: none;
}

/* TARGET DAY — orange lane chrome; value is a real <select> (#propTargetDaySelect) */
.prop-target-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  min-width: 5.5rem;
  width: auto;
  height: auto;
  min-height: var(--prop-chrome-h, 36px);
  max-height: none;
  padding: 0;
  cursor: default;
  border-radius: var(--r-md);
  box-shadow: none;
  overflow: visible;
  box-sizing: border-box;
  gap: 0;
}

.booking-panel--property .prop-target-stack,
.app-header-tab-controls .booking-panel--property .prop-target-stack {
  display: flex !important;
  flex-direction: column;
  grid-template-rows: none;
  padding: 0 !important;
  height: auto;
  min-height: var(--prop-chrome-h, 36px);
  max-height: none;
}

.prop-target-stack__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-2, 8px);
  width: 100%;
  padding: 0 var(--prop-chrome-pad-x, 10px) var(--prop-chrome-pad-y, 1.7px);
  box-sizing: border-box;
}

/* Parked in header stack — only show when mounted into the left TARGET DAY card */
.prop-target-stack > #propTargetDayControls {
  display: none;
}

/* Property-drill TARGET DAY card: info + PPN/TOTAL + Δ%/Δ฿ under the date head */
.prop-target-day-controls-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 var(--s-2, 8px);
  padding: var(--s-1, 4px) 0;
  box-sizing: border-box;
}

.prop-target-day-controls-slot > .prop-target-stack__controls,
.prop-target-day-controls-slot #propTargetDayControls {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  overflow: visible;
}

.prop-target-day-controls-slot #propTargetPpdPopover {
  position: static;
  top: auto;
  left: auto;
  width: 100%;
  max-width: min(440px, 100%);
  margin-top: var(--s-2, 8px);
  z-index: 1;
}

.room-filter-overview-card--room-filter.is-collapsed .prop-target-day-controls-slot {
  display: none;
}

.prop-target-display-toggles {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-2, 8px);
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.prop-target-ppd {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2, 8px);
  flex: 0 0 auto;
}

.prop-target-ppd .mega-oxide-mod__info.hl-info,
.prop-target-ppd .prop-chart-heading-info.mega-oxide-mod__info {
  width: auto;
  min-width: var(--prop-chrome-h, 32px);
  height: var(--prop-chrome-h, 32px);
  padding: 0 var(--s-2, 8px);
  border-radius: var(--r-sm);
}

.prop-target-ppn-mode.hl-seg,
.prop-target-ppn-mode.prop-portfolio-chart-mode,
.prop-target-delta-mode.hl-seg,
.prop-target-delta-mode.prop-portfolio-chart-mode {
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  flex: 0 0 auto;
  padding: 3px;
  min-height: 34px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: none;
}

.prop-target-day-display .prop-portfolio-chart-mode__btn,
.prop-target-day-display .hl-seg__btn {
  min-height: 28px;
  height: 28px;
  padding: 0 var(--s-3);
  font-size: var(--t-12);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.prop-target-delta-mode .prop-portfolio-chart-mode__btn,
.prop-target-delta-mode .hl-seg__btn {
  min-width: 0;
  font-size: var(--t-12);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.prop-target-delta-mode .prop-portfolio-th-delta {
  font-size: inherit;
  font-weight: inherit;
  vertical-align: 0;
}

.prop-target-stack__face {
  display: grid;
  grid-template-rows: var(--prop-chrome-label-h, 11.2px) minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  gap: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: var(--prop-chrome-pad-y, 1.7px) var(--prop-chrome-pad-x, 10px);
  box-sizing: border-box;
  border-radius: var(--r-md);
  cursor: pointer;
}

.prop-target-stack__select {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  max-width: 100%;
  height: var(--prop-chrome-value-h, 19.6px);
  min-height: 0;
  max-height: var(--prop-chrome-value-h, 19.6px);
  margin: 0 auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: var(--prop-chrome-value-size, 13px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  text-align-last: center;
  cursor: pointer;
  box-shadow: none;
  box-sizing: border-box;
}

.prop-target-stack__select:disabled {
  cursor: default;
  opacity: 0.55;
}

.prop-target-stack__select--idle {
  color: var(--c-text-3);
  opacity: 0.75;
}

.prop-target-stack__select--selected {
  color: inherit;
  opacity: 1;
}

.prop-target-stack__date-face {
  display: block;
  width: 100%;
  box-shadow: none;
  font: inherit;
  user-select: none;
}

.prop-target-stack__date-face[hidden],
.prop-target-stack__select[hidden] {
  display: none !important;
}

.prop-target-stack__btn {
  display: grid;
  grid-template-rows: var(--prop-chrome-label-h, 11.2px) minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  gap: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: var(--prop-chrome-pad-y, 1.7px) var(--prop-chrome-pad-x, 10px);
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
}

.prop-target-stack__btn[aria-pressed='false'] {
  cursor: default;
}

.prop-target-stack__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  height: var(--prop-chrome-value-h, 19.6px);
  min-height: var(--prop-chrome-value-h, 19.6px);
  margin: 0 auto;
  font-size: var(--prop-chrome-value-size, 13px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1;
}

.prop-target-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: var(--prop-chrome-value-size, 13px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  text-shadow: none;
  align-self: center;
}

.prop-target-mark--idle {
  background: transparent;
  color: var(--c-text-3);
  box-shadow: none;
  text-shadow: none;
  opacity: 0.75;
  padding: 0;
}

.prop-target-stack__clear {
  color: var(--c-text-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.85;
  line-height: 1;
}

#propPortfolioChartHeading .prop-horizon-mark {
  font-size: 0.92em;
  transform: translateY(-0.05em);
}

/* External HTML tooltip for #propertyPortfolioUnitsChart */
.portfolio-units-chart-tooltip {
  position: fixed;
  z-index: 10050;
  pointer-events: none;
  min-width: 8rem;
  max-width: 24rem;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  background: var(--c-surface-2);
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  box-shadow: var(--sh-2);
  transition: opacity 80ms ease;
}

.portfolio-units-chart-tooltip__row--total {
  color: var(--c-text-3);
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--c-border);
}

.portfolio-units-chart-tooltip__title {
  margin-bottom: 4px;
  font-weight: 400;
  color: var(--c-accent);
}

.portfolio-units-chart-tooltip__row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 2px;
}

.portfolio-units-chart-tooltip__row span:last-child {
  overflow-wrap: anywhere;
}

.portfolio-units-chart-tooltip__row--delta {
  margin-top: 4px;
  padding-top: 3px;
  border-top: 1px solid var(--c-border);
}

.portfolio-units-chart-tooltip__swatch {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: var(--r-sm);
  box-sizing: border-box;
}

.portfolio-units-chart-tooltip__swatch--dash {
  background: transparent !important;
  border: 1.5px dashed currentColor;
}

.portfolio-units-chart-tooltip__delta {
  display: inline-flex;
  align-items: center;
  font-weight: 400;
  color: var(--c-delta);
}

.portfolio-units-chart-tooltip__delta-text--sold {
  color: var(--c-pos);
}

.portfolio-units-chart-tooltip__delta-text--canc {
  color: var(--c-neg);
}

.portfolio-units-chart-tooltip__delta-text--net {
  color: var(--c-accent);
}

.portfolio-units-chart-tooltip__row--was {
  color: var(--c-text-3);
}

.portfolio-units-chart-tooltip__row--hint {
  margin-top: 4px;
  padding-top: 3px;
  border-top: 1px solid var(--c-border);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-3);
}

.portfolio-units-chart-tooltip .prop-selected-mark,
.portfolio-units-chart-tooltip .prop-today-mark,
.portfolio-units-chart-tooltip .prop-horizon-mark,
.portfolio-units-chart-tooltip__lane {
  font-size: 11px;
  padding: 0;
  vertical-align: baseline;
  background: transparent;
  box-shadow: none;
  color: var(--c-accent);
  font-weight: 400;
}

/* External HTML tooltip for #propertyPriceChart — room name line 1, guest+prices line 2 */
.portfolio-units-chart-tooltip--price {
  max-width: 22rem;
}

.portfolio-units-chart-tooltip__row--price-tier {
  align-items: flex-start;
}

.portfolio-units-chart-tooltip__price-tier {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.portfolio-units-chart-tooltip__price-room {
  display: block;
  line-height: 1.3;
}

.portfolio-units-chart-tooltip__price-values {
  display: block;
  white-space: nowrap;
  line-height: 1.3;
}

.prop-selected-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: none;
  vertical-align: baseline;
  text-shadow: none;
}

/* NOW scrape mark — mint text, no badge fill */
.prop-today-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.2em;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: none;
  text-shadow: none;
  text-transform: uppercase;
}

#propDateStackVisualValue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  height: var(--prop-chrome-value-h, 19.6px);
  min-height: var(--prop-chrome-value-h, 19.6px);
  line-height: 1;
  overflow: visible;
  white-space: nowrap;
}

#propDateStackVisualValue .prop-date-stack__face-date {
  color: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1;
}

#propDateStackVisualValue .prop-date-stack__new-group {
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}

#propDateStackVisualValue .prop-today-mark,
.prop-horizon-stack__value .prop-horizon-mark,
.prop-target-stack__value .prop-target-mark:not(.prop-target-mark--idle),
.prop-nav-prop-btn .prop-selected-mark,
#propPropertySelectorBtn .prop-selected-mark {
  font-size: var(--prop-chrome-value-size, 13px);
  font-weight: 700;
  line-height: 1;
  padding: 0;
  align-self: center;
  vertical-align: middle;
  outline: none;
  text-shadow: none !important;
  box-shadow: none;
  background: transparent;
  color: inherit;
}

.app-header--display .prop-nav-stack__value,
.app-header--display .prop-horizon-stack__select {
  font-weight: 700;
  color: var(--c-text-2);
}

.app-header--display #propDateStackVisualValue .prop-date-stack__face-date,
.app-header--display #propDateStackVisualValue .prop-today-mark,
.app-header--display .prop-horizon-stack__value .prop-horizon-mark,
.app-header--display .prop-horizon-mark,
.app-header--display .prop-target-stack__value .prop-target-mark:not(.prop-target-mark--idle),
.app-header--display .prop-nav-prop-btn .prop-selected-mark,
.app-header--display #propPropertySelectorBtn .prop-selected-mark {
  color: inherit;
}

.app-header--display #propPropertySelectorBtn .prop-selected-mark {
  color: inherit !important;
}

.prop-horizon-stack__value .prop-horizon-mark {
  box-shadow: none;
}

#propDateStackVisualValue .prop-today-mark {
  padding: 0 0.2em;
  box-shadow: none;
}

#propDateStackVisualValue .prop-date-stack__offset,
.prop-horizon-stack__unit,
.prop-nav-prop-btn .prop-nav-stack__value {
  font-size: var(--prop-chrome-value-size, 13px);
  font-weight: 700;
  line-height: 1;
  align-self: center;
}

#propPortfolioChartHeading .prop-portfolio-chart-day-stack-link.prop-today-mark {
  font-size: 0.92em;
  vertical-align: baseline;
  transform: translateY(-0.05em);
}

.prop-date-stack__row--today .prop-date-select {
  color: var(--lane-today);
}

.prop-date-select--sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.prop-date-stack__row {
  position: relative;
}

.prop-date-stack__face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  margin: 0;
  padding: 2px 6px;
  border: var(--sel-border);
  border-radius: var(--r-sm);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: var(--prop-chrome-value-size, 13px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  cursor: pointer;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  transition:
    border-color var(--ease-oxide),
    background-color var(--ease-oxide),
    color var(--ease-oxide);
}

.prop-date-stack__face:hover {
  border: var(--sel-border-hover);
  background: transparent;
  color: var(--sel-fg-hover);
}

.prop-date-stack__face-date,
.prop-date-stack__face-role {
  font-size: var(--prop-chrome-value-size, 13px);
  font-weight: 700;
  line-height: 1;
}

.prop-date-stack__face .prop-today-mark {
  font-size: var(--prop-chrome-value-size, 13px);
  font-weight: 400;
  line-height: 1;
  padding: 0 0.2em;
  outline: none;
}

.prop-date-stack__face--new .prop-date-stack__face-date {
  color: inherit;
  font-weight: 400;
}

.prop-date-stack__face--old {
  color: var(--c-text-2, var(--c-text-muted));
  font-weight: 700;
  opacity: 0.9;
}

.prop-date-stack__face--old .prop-date-stack__face-date,
.prop-date-stack__face--old .prop-date-stack__face-role {
  color: inherit;
  font-weight: inherit;
}

.prop-date-stack__face.is-picker-open {
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
  outline: none;
  border-radius: var(--r-sm);
}

.prop-date-stack__face.is-picker-open:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.prop-nav-region-stack.active .prop-nav-stack__label {
  color: inherit;
}

.prop-nav-region-stack .prop-nav-stack__value,
.prop-nav-region-stack.active .prop-nav-stack__value {
  color: inherit;
}

#propPropertySelectorBtn.prop-nav-prop-btn,
#propPropertySelectorBtn.prop-nav-prop-stack,
button.prop-nav-prop-btn.prop-nav-prop-stack {
  display: grid;
  grid-template-rows: var(--prop-chrome-label-h, 10px) var(--prop-chrome-value-h, 18px);
  align-items: center;
  justify-items: center;
  gap: 0;
  height: var(--prop-chrome-h, 36px) !important;
  min-height: var(--prop-chrome-h, 36px) !important;
  max-height: var(--prop-chrome-h, 36px) !important;
  padding: var(--prop-chrome-pad-y, 1.7px) var(--prop-chrome-pad-x, 10px) !important;
  margin: 0 !important;
  border-radius: var(--r-md);
  box-shadow: none;
  font-weight: 400 !important;
  line-height: 1;
  max-width: 9.5rem;
  min-width: 5.5rem;
  box-sizing: border-box;
  overflow: visible;
}

#propPropertySelectorBtn.prop-nav-prop-btn--named {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  max-width: none;
  min-width: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: visible;
}

#propPropertySelectorBtn:not(.prop-nav-prop-btn--named) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: auto !important;
  min-height: var(--prop-chrome-h, 36px) !important;
  max-height: none !important;
  max-width: none;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  overflow: visible;
}

/* Match header mega-header-prop-nav: bold count + muted PROPERTIES */
#propPropertySelectorBtn .prop-nav-prop-overview {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35em;
  min-width: 0;
  max-width: 100%;
  font-family: var(--font-mono);
  line-height: 1;
  white-space: nowrap;
  overflow: visible;
  color: inherit;
}

#propPropertySelectorBtn .prop-nav-prop-overview__unit {
  font-family: var(--font-mono);
  font-size: var(--t-11);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.75;
  line-height: 1;
}

#propPropertySelectorBtn .prop-nav-prop-count {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  min-width: 0;
  line-height: 1;
  font-family: var(--font-mono);
  font-size: var(--prop-chrome-value-size, 12px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: inherit;
  text-transform: none;
}

#propPropertySelectorBtn .prop-nav-prop-count .prop-selected-mark {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
  line-height: 1;
}

.prop-nav-prop-summary .prop-nav-prop-scale {
  display: block;
  min-width: 0;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: var(--t-11);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--c-text-3);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prop-nav-prop-summary .prop-nav-prop-scale-n {
  font-weight: 700;
  color: var(--c-text);
}

#propPropertySelectorBtn .prop-nav-prop-view-close {
  display: none !important;
}

.prop-nav-prop-overview-line {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  width: auto;
  max-width: 100%;
  min-width: 0;
}

.prop-nav-prop-overview-line .prop-nav-prop-view-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
  margin: 0 0 0 0.4em;
  padding: 0;
  border: none;
  border-radius: var(--r-sm);
  background: var(--c-neg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--t-11);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  vertical-align: baseline;
}

.prop-nav-prop-overview-line .prop-nav-prop-view-close:hover {
  filter: brightness(1.1);
}

.prop-nav-prop-overview-line .prop-nav-prop-view-close[hidden] {
  display: none !important;
}

.prop-nav-prop-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  min-width: 0;
}

#propPropertySelectorBtn .prop-nav-prop-name {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  min-width: 0;
  line-height: 1;
  color: inherit;
  font-weight: 700;
  font-size: var(--prop-chrome-value-size, 13px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 20ch;
}

#propPropertySelectorBtn .prop-nav-prop-count[hidden],
#propPropertySelectorBtn .prop-nav-prop-name[hidden],
#propPropertySelectorBtn .prop-nav-prop-overview[hidden],
.prop-nav-prop-summary .prop-nav-prop-scale[hidden],
#propPropertySelectorBtn .prop-nav-stack__label[hidden],
#propPropertySelectorBtn .prop-nav-stack__value[hidden],
#propNavPropViewCheck[hidden] {
  display: none !important;
}

#propPropertySelectorBtn .prop-nav-stack__label,
.prop-nav-prop-btn .prop-nav-stack__label {
  color: inherit;
  opacity: 0.75;
}

#propPropertySelectorBtn.prop-nav-prop-btn--named .prop-nav-stack__label {
  height: auto;
  min-height: 0;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 1;
  justify-content: center;
  text-align: center;
  width: 100%;
  white-space: normal;
  line-height: 1.2;
  flex-wrap: wrap;
  gap: 0.25em;
}

#propPropertySelectorBtn.prop-nav-prop-btn--named .prop-nav-stack__label .prop-selected-mark {
  font-size: var(--prop-chrome-value-size, 13px);
  font-weight: 700;
  line-height: 1;
}

.prop-nav-prop-chip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

#propNavPropViewRow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 3px 0;
  font-family: var(--font-sans);
  font-size: var(--portfolio-type-size, var(--t-12));
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: left;
  box-sizing: border-box;
}

#propNavPropViewRow[hidden] {
  display: none !important;
}

#propNavPropViewCheck {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--c-accent);
  pointer-events: auto;
  cursor: pointer;
}

#propNavPropViewRow .prop-selector-item__name {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-weight: 400;
  text-align: left;
  white-space: normal;
}

#propPropertySelectorBtn .prop-nav-stack__value,
.prop-nav-prop-btn .prop-nav-stack__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--prop-chrome-value-h, 19.6px);
  min-height: var(--prop-chrome-value-h, 19.6px);
  color: inherit;
  opacity: 1;
  line-height: 1;
  overflow: visible;
}

#propPropertySelectorBtn .prop-selected-mark {
  color: var(--c-accent);
}

#propPropertySelectorBtn .prop-nav-prop-count .prop-selected-mark {
  color: var(--c-accent) !important;
}

#propPropertySelectorBtn[aria-expanded="true"] .prop-nav-stack__label {
  color: inherit;
}

#propPropertySelectorBtn[aria-expanded="true"] .prop-nav-stack__value {
  color: inherit;
}

.prop-nav-back-list.tablinks {
  border: var(--sel-border);
  background: transparent;
  color: var(--sel-fg);
  box-shadow: none;
  overflow: visible;
}

.prop-nav-back-list.tablinks:hover {
  background: transparent;
  border: var(--sel-border-hover);
  color: var(--sel-fg-hover);
}

.prop-nav-back-list.tablinks[aria-expanded="true"] {
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
  box-shadow: none;
}

.prop-nav-back-list.tablinks[aria-expanded="true"]:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.prop-nav-back-list .prop-nav-stack__label {
  color: inherit;
  opacity: 0.75;
}

.prop-nav-back-list .prop-nav-stack__value,
.prop-nav-back-list.tablinks.active .prop-nav-stack__value {
  color: inherit;
  opacity: 1;
}

.prop-nav-back-list.tablinks.active .prop-nav-stack__label {
  color: inherit;
  opacity: 0.75;
}

/* EX mode → segmented look */
.prop-portfolio-ex-mode,
.prop-portfolio-ex-mode.hl-seg {
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  padding: 3px;
  min-height: 34px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: none;
}

.prop-portfolio-ex-mode--header {
  flex: 0 0 auto;
  margin-left: 0;
}

.app-header:not(.app-header--property-data) .prop-portfolio-ex-mode--header {
  display: none;
}

.prop-portfolio-ex-mode__btn,
.prop-portfolio-ex-mode .hl-seg__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 var(--s-3);
  border: var(--sel-border);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--sel-fg);
  font-size: var(--t-12);
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    border-color var(--ease-oxide),
    background-color var(--ease-oxide),
    color var(--ease-oxide);
}

.prop-portfolio-ex-mode__btn:hover {
  border: var(--sel-border-hover);
  color: var(--sel-fg-hover);
  background: transparent;
}

.prop-portfolio-ex-mode__btn.is-active {
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
  box-shadow: none;
}

.prop-portfolio-ex-mode__btn.is-active:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.app-header--display .prop-portfolio-ex-mode,
.app-header--display .prop-portfolio-ex-mode.hl-seg {
  min-height: 28px;
  padding: 2px;
}

.app-header--display .prop-portfolio-ex-mode__btn,
.app-header--display .prop-portfolio-ex-mode .hl-seg__btn {
  height: 24px;
  padding: 0 var(--s-3);
  font-size: var(--t-12);
  font-weight: 400;
}

/* Chart mode toggles → COMPARE family (gray label / white selection) */
.prop-portfolio-chart-mode,
.prop-portfolio-chart-mode.hl-seg,
.prop-availability-cube-mode {
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  box-shadow: var(--sh-1);
}

.prop-portfolio-chart-mode__btn {
  appearance: none;
  border: var(--sel-border);
  margin: 0;
  height: 28px;
  padding: 0 var(--s-3);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--sel-fg);
  font-size: var(--t-11);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    border-color var(--ease-oxide),
    background-color var(--ease-oxide),
    color var(--ease-oxide);
}

.prop-portfolio-chart-mode__btn:hover {
  border: var(--sel-border-hover);
  color: var(--sel-fg-hover);
  background: transparent;
}

.prop-portfolio-chart-mode__btn.is-active,
.prop-portfolio-chart-mode__btn.hl-seg__btn.is-active,
.prop-portfolio-chart-mode__btn.hl-seg__btn[aria-pressed="true"] {
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
  box-shadow: none;
  font-weight: 700;
}

.prop-portfolio-chart-mode__btn.is-active:hover,
.prop-portfolio-chart-mode__btn.hl-seg__btn.is-active:hover,
.prop-portfolio-chart-mode__btn.hl-seg__btn[aria-pressed="true"]:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.prop-availability-cube-mode .prop-portfolio-chart-mode__btn:not(.is-active):not([aria-pressed="true"]) {
  color: var(--sel-fg);
}

/* ── Left rail (one column, one scroll) ─────────────────── */
#roomFilterPanel {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  width: var(--room-filter-panel-width);
  max-width: 100%;
  min-width: 0;
  height: 100vh;
  max-height: 100vh;
  background: var(--c-surface);
  color: var(--c-text);
  border-right: 1px solid var(--c-border);
  box-shadow: var(--sh-1);
  z-index: 1;
  overflow: hidden;
  box-sizing: border-box;
  --room-filter-color-gutter: var(--s-3, 12px);
}

/* WWW: rail is a full-height left column beside the right-only header. */
body.property-tab-room-filter-visible:has(.app-header--property-data) #PropertyData {
  height: 100vh;
  max-height: 100vh;
  margin-top: calc(-1 * var(--app-header-h, 40px));
}

body.property-tab-room-filter-visible:has(.app-header--property-data) #roomFilterPanel {
  height: 100vh;
  max-height: 100vh;
  position: relative;
  top: auto;
  align-self: stretch;
  --prop-chrome-h: 36px;
}

body.property-tab-room-filter-visible:has(.app-header--property-data) #propertyChartWrapper {
  align-self: end;
  height: calc(100vh - var(--app-header-h, 40px));
  max-height: calc(100vh - var(--app-header-h, 40px));
}

body.property-tab-room-filter-hidden #PropertyData {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'propertyChartWrapper';
}

body.property-tab-room-filter-visible.property-tab-room-filter-hidden:has(.app-header--property-data) #PropertyData {
  height: calc(100vh - var(--app-header-h, 40px));
  max-height: calc(100vh - var(--app-header-h, 40px));
  margin-top: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: 'propertyChartWrapper';
}

body.property-tab-room-filter-visible.property-tab-room-filter-hidden:has(.app-header--property-data) #propertyChartWrapper {
  height: 100%;
  max-height: 100%;
  align-self: stretch;
}

body.property-tab-room-filter-hidden #roomFilterPanel {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  border: none;
  box-shadow: none;
}

.room-filter-datasets-preview {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--c-surface);
  color: var(--c-text);
  margin: 0 0 var(--s-3);
  position: relative;
  z-index: 0;
}

.room-filter-datasets-preview:not(.is-collapsed) {
  border: var(--sel-border-hover);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-surface);
}

.room-filter-datasets-preview:not(.is-collapsed) #megaHeaderBar.mega-header-bar--rail {
  border-bottom: none;
  background: transparent;
}

.room-filter-datasets-preview.is-collapsed #megaHeaderBar.mega-header-bar--rail {
  border-bottom: none;
}

.room-filter-datasets-preview:not(.is-collapsed) .mega-oxide--datasets {
  padding-top: 0;
}

.room-filter-datasets-preview__collapse {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition:
    grid-template-rows var(--ease-expand),
    opacity var(--ease-expand-fade);
}

.room-filter-datasets-preview__inner {
  overflow: hidden;
  min-height: 0;
  padding: 0;
  background: var(--c-surface);
}

.room-filter-datasets-preview.is-collapsed .room-filter-datasets-preview__collapse {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}

/* Collapsed: no accent shell peeking under the closed pill */
.room-filter-datasets-preview.is-collapsed {
  background: transparent;
  color: inherit;
  border: none;
  border-radius: 0;
  margin-bottom: 0;
}

.room-filter-datasets-preview.is-collapsed .room-filter-datasets-preview__inner {
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .room-filter-datasets-preview__collapse {
    transition: none;
  }
}

#roomFilterPanel.room-filter-panel--property,
#roomFilterPanel.room-filter-panel--market,
#roomFilterPanel.room-filter-panel--empty {
  overflow: hidden;
}

#roomFilterPanel .room-filter-cockpit-tabs {
  flex: 0 0 auto;
}

#roomFilterPanel .room-filter-panel__scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  direction: rtl; /* scrollbar on left edge of rail — ignore for content inset */
  scrollbar-width: thin;
  scrollbar-color: var(--c-border-strong) transparent;
  scrollbar-gutter: stable;
  /* Content flush both sides (scrollbar alone sits on the left). */
  padding-right: 0;
  padding-left: 0;
}

#roomFilterPanel .room-filter-panel__scroll::-webkit-scrollbar {
  width: var(--room-filter-color-gutter, var(--s-3, 12px));
}

#roomFilterPanel .room-filter-panel__scroll::-webkit-scrollbar-track {
  background: transparent;
}

#roomFilterPanel .room-filter-panel__scroll::-webkit-scrollbar-thumb {
  background: var(--c-border-strong);
  border: 0;
  border-right: calc(var(--room-filter-color-gutter, var(--s-3, 12px)) - 6px) solid transparent;
  border-radius: 0;
  background-clip: padding-box;
}

#roomFilterPanel .room-filter-panel__scroll > * {
  direction: ltr;
  /* Fit the scrollport. Extra width here spilled the card under PropertyData (B).
     The ] color rail sits in the card’s right padding, not outside the rail. */
  position: relative;
  left: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Invisible end pad so mobile can scroll past last content */
.scroll-end-spacer {
  flex: 0 0 auto;
  width: 100%;
  height: 500px;
  pointer-events: none;
  visibility: hidden;
}

#propSinglePropertyHome {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.room-filter-panel__filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
}

.room-filter-panel__filters-label {
  font-size: var(--t-label-size);
  font-weight: var(--t-label-weight);
  letter-spacing: var(--t-label-tracking);
  text-transform: uppercase;
  color: var(--c-text-3);
}

.room-filter-panel__body {
  padding: var(--s-3);
}

#roomFilterContent > .room-filter-panel__links {
  margin: 0 0 var(--s-2);
}

.room-filter-show-all-bar {
  display: grid;
  grid-template-columns: auto auto auto auto;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "stack-label . target-label links"
    "scrape arrow date links"
    "showall showall showall links";
  align-items: center;
  justify-items: start;
  column-gap: var(--s-3);
  row-gap: 3px;
  padding: 0 0 var(--s-2);
  padding-left: var(--room-filter-panel-inset-x);
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
}

.room-filter-show-all-bar__links {
  grid-area: links;
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  padding-right: 0;
}

.room-filter-show-all-bar__links[hidden] {
  display: none !important;
}

.room-filter-show-all-bar__links-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 2px 4px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--r-sm);
}

.room-filter-show-all-bar__links-menu {
  position: absolute;
  top: 50%;
  right: calc(100% + 4px);
  left: auto;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  min-width: 12.5em;
  margin: 0;
  padding: var(--s-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  box-shadow: var(--sh-3);
}

.room-filter-show-all-bar__links-menu.is-fixed-open {
  position: fixed;
  z-index: 10050;
  transform: none;
}

.room-filter-show-all-bar__links-menu[hidden] {
  display: none !important;
}

.room-filter-show-all-bar__links-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.room-filter-show-all-bar__links-row-label {
  font-size: var(--t-12);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-text-2);
  padding: 0 2px;
}

.room-filter-show-all-bar__links-row-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.room-filter-show-all-bar__offers-panel {
  position: absolute;
  top: 50%;
  right: calc(100% + 4px);
  left: auto;
  transform: translateY(-50%);
  z-index: 41;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 14em;
  max-width: 22em;
  max-height: 18em;
  overflow: auto;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.room-filter-show-all-bar__offers-panel[hidden] {
  display: none !important;
}

.room-filter-show-all-bar__offers-room {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-text-2);
}

.room-filter-show-all-bar__offers-row,
.room-filter-show-all-bar__offers-empty {
  padding: 4px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
}

.room-filter-show-all-bar__links-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  font-size: var(--t-12);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.room-filter-show-all-bar__label--stack { grid-area: stack-label; align-self: end; }
.room-filter-show-all-bar__scrape { grid-area: scrape; }
.room-filter-show-all-bar__arrow { grid-area: arrow; }
.room-filter-show-all-bar__label--target { grid-area: target-label; align-self: end; }
.room-filter-show-all-bar__date { grid-area: date; }

.room-filter-show-all-bar__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: var(--c-danger, #ef4444);
  font-size: 0.85em;
  font-weight: 800;
  line-height: 1;
  padding: 0 2px;
}

.room-filter-show-all-bar__label {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-3);
  line-height: 1.1;
  text-align: left;
  white-space: nowrap;
  opacity: 1;
}

button.room-filter-show-all-bar__label {
  cursor: pointer;
}

button.room-filter-show-all-bar__label:hover:not(:disabled) {
  color: var(--c-text-2);
}

button.room-filter-show-all-bar__label:disabled {
  cursor: default;
  opacity: 1;
  color: var(--c-text-3);
}

.room-filter-show-all-bar__scrape {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.room-filter-show-all-bar__scrape-line {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  white-space: nowrap;
}

.room-filter-show-all-bar__scrape-date {
  font-family: inherit;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--c-text);
}

.room-filter-show-all-bar__scrape-line--old .room-filter-show-all-bar__scrape-date,
.room-filter-show-all-bar__scrape-line--old .room-filter-show-all-bar__scrape-role {
  color: var(--c-text-2);
  font-weight: 600;
}

.room-filter-show-all-bar__scrape-role {
  font-size: 0.65em;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.room-filter-show-all-bar__scrape-role.prop-today-mark {
  font-size: 0.62em;
  padding: 0.05em 0.35em;
}

.room-filter-show-all-bar__date .room-filter-panel__checkin-select,
.room-filter-show-all-bar__date .prop-cockpit__tab-date {
  color: var(--c-accent, #1da1f2);
  font-family: inherit;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  width: auto;
  margin-bottom: 0;
}

#roomFilterPanel .room-filter-show-all-bar__date .room-filter-panel__checkin-select,
#roomFilterPanel .room-filter-show-all-bar__date .prop-cockpit__tab-date {
  color: var(--c-accent, #1da1f2);
  font-size: 0.72em;
  width: auto;
  margin-bottom: 0;
}

.room-filter-show-all-bar > .room-filter-show-all-btn {
  grid-area: showall;
  justify-self: start;
  margin-top: var(--s-2);
}

.room-filter-panel__day-sep,
#roomFilterPanel.room-filter-panel--property .room-filter-panel__day-sep {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-accent-soft);
}

.room-filter-panel__day-sep-label {
  font-size: var(--t-label-size);
  font-weight: var(--t-label-weight);
  letter-spacing: var(--t-label-tracking);
  text-transform: uppercase;
  color: var(--c-accent);
}

/* Cockpit nav → sidebar pill nav */
#roomFilterCockpitTabs .prop-cockpit__tabs,
.prop-cockpit__tabs {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 2px;
  padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
}

#roomFilterCockpitTabs .prop-cockpit__tab,
.prop-cockpit__tab {
  width: 100%;
  text-align: left;
  appearance: none;
  border: var(--sel-border);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--sel-fg);
  font-size: var(--t-13);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: var(--s-2) var(--s-3);
  cursor: pointer;
  box-shadow: none;
  box-sizing: border-box;
  transition:
    border-color var(--ease-oxide),
    background-color var(--ease-oxide),
    color var(--ease-oxide);
}

#roomFilterCockpitTabs .prop-cockpit__tab:hover,
.prop-cockpit__tab:hover {
  border: var(--sel-border-hover);
  background: transparent;
  color: var(--sel-fg-hover);
}

#roomFilterCockpitTabs .prop-cockpit__tab--active,
.prop-cockpit__tab--active,
.prop-cockpit__tab.hl-nav__item.is-active,
.prop-cockpit__tab.hl-nav__item[aria-selected="true"] {
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
  font-weight: 600;
  border: var(--sel-border-active);
  box-shadow: none;
}

#roomFilterCockpitTabs .prop-cockpit__tab--active:hover,
.prop-cockpit__tab--active:hover,
.prop-cockpit__tab.hl-nav__item.is-active:hover,
.prop-cockpit__tab.hl-nav__item[aria-selected="true"]:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

#roomFilterCockpitTabs .prop-cockpit__tab--active .prop-cockpit__tab-label-line,
#roomFilterCockpitTabs .prop-cockpit__tab--active .prop-cockpit__tab-date,
.prop-cockpit__tab--active .prop-cockpit__tab-label-line,
.prop-cockpit__tab--active .prop-cockpit__tab-date {
  color: inherit;
}

.prop-cockpit__tab--rates .prop-cockpit__tab-label-stack {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}

/* ── Cards / pulse / KPIs / insights ────────────────────── */
.prop-cockpit-pulse,
.room-filter-intel__pulse {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.prop-cockpit-pulse__hero {
  margin: 0;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
  box-shadow: var(--sh-2);
}

.prop-cockpit-pulse__eyebrow {
  margin: 0 0 var(--s-2);
  font-size: var(--t-label-size);
  font-weight: var(--t-label-weight);
  letter-spacing: var(--t-label-tracking);
  text-transform: uppercase;
  color: var(--c-accent);
}

.prop-cockpit-pulse__lede {
  margin: 0 0 var(--s-3);
  font-size: var(--t-14);
  color: var(--c-text);
}

.prop-cockpit-pulse__kpis,
.hl-stat-grid.prop-cockpit-pulse__kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--s-3);
}

.prop-cockpit-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: var(--s-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}

.prop-cockpit-kpi__label {
  font-size: var(--t-label-size);
  font-weight: var(--t-label-weight);
  letter-spacing: var(--t-label-tracking);
  text-transform: uppercase;
  color: var(--c-text-3);
}

.prop-cockpit-kpi__value {
  font-size: var(--t-20);
  font-weight: 700;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.prop-cockpit-kpi__value--sm {
  font-size: var(--t-16);
  font-weight: 600;
}

.prop-cockpit-kpi__value--sold { color: var(--c-pos); }
.prop-cockpit-kpi__value--returned { color: var(--c-neg); }

.prop-cockpit-insights {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin-top: 0;
}

.prop-cockpit-insight,
.hl-card.prop-cockpit-insight {
  padding: 0;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
  box-shadow: var(--sh-2);
  overflow: hidden;
}

.prop-cockpit-insight__title {
  margin: 0;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--c-border);
  font-size: var(--t-label-size);
  font-weight: var(--t-label-weight);
  letter-spacing: var(--t-label-tracking);
  text-transform: uppercase;
  color: var(--c-text-2);
  background: var(--c-surface-3);
}

.prop-cockpit-insight__body,
.prop-cockpit-insight__list {
  margin: 0;
  padding: var(--s-3) var(--s-4);
  font-size: var(--t-13);
  color: var(--c-text-2);
}

.prop-cockpit-insight__list {
  padding-left: calc(var(--s-4) + 1em);
}

.prop-cockpit-brief__intel-head,
.prop-cockpit-brief__read-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface-3);
}

.prop-cockpit-brief__intel-head .prop-cockpit-insight__title,
.prop-cockpit-brief__read-head .prop-cockpit-insight__title {
  padding: 0;
  border-bottom: 0;
  background: transparent;
}

.prop-cockpit-intel__body {
  padding: var(--s-3) var(--s-4);
}

.prop-cockpit-intel__lede {
  margin: 0 0 var(--s-3);
  font-size: var(--t-14);
  color: var(--c-text);
}

.prop-cockpit-intel__meta {
  margin: 0 0 var(--s-3);
  font-size: var(--t-12);
  color: var(--c-text-3);
}

.prop-cockpit-intel__status {
  margin: 0;
  font-size: var(--t-13);
  color: var(--c-text-2);
}

.prop-cockpit-intel__status--error {
  color: var(--c-neg);
}

.prop-cockpit-intel__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}

.prop-cockpit-intel__subhead {
  margin: 0 0 var(--s-2);
  font-size: var(--t-12);
  font-weight: var(--t-label-weight);
  letter-spacing: var(--t-label-tracking);
  text-transform: uppercase;
  color: var(--c-text-2);
}

.prop-cockpit-intel__sources {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-border);
}

.prop-cockpit-intel__sources-label {
  display: block;
  margin-bottom: var(--s-2);
  font-size: var(--t-12);
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: var(--t-label-tracking);
}

.prop-cockpit-intel__source-list {
  margin: 0;
  padding-left: 1.2em;
  font-size: var(--t-12);
}

.prop-cockpit-intel__source {
  color: var(--c-accent);
  text-decoration: none;
}

.prop-cockpit-intel__source:hover {
  text-decoration: underline;
}

/* Overview cards */
.room-filter-property-overview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0 8px;
  box-sizing: border-box;
}

.room-filter-drill-exit {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4px var(--s-4) 8px;
  box-sizing: border-box;
}

.room-filter-overview-block__head--with-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
}

.room-filter-overview-block__head--with-chip .room-filter-overview-block__title {
  flex: 1 1 auto;
  min-width: 0;
}

.room-filter-overview-block__head--with-chip .prop-under-chart-filters__date {
  flex: 0 0 auto;
}

.room-filter-overview-block__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--t-10, 10px);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-3);
}

/* Collapsed overview cards: keep name / head; animate body height shut */
.room-filter-overview-card {
  transition: gap var(--ease-expand);
}

.room-filter-overview-card__collapse {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition:
    grid-template-rows var(--ease-expand),
    opacity var(--ease-expand-fade);
}

.room-filter-overview-card__collapse-inner {
  overflow: hidden;
  min-height: 0;
}

.room-filter-overview-card .room-filter-overview-info-btn {
  transition: opacity 0.9s ease;
}

.room-filter-overview-card.is-collapsed {
  gap: 0;
  cursor: pointer;
}

.room-filter-overview-card.is-collapsed:not(:has(.room-filter-overview-card__collapse)) {
  cursor: default;
}

.room-filter-overview-card.is-collapsed .room-filter-overview-info-btn {
  opacity: 0;
  pointer-events: none;
}

.room-filter-overview-card.is-collapsed .room-filter-overview-card__collapse {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}

.room-filter-overview-card.is-collapsed .prop-portfolio-region-intro__name,
.room-filter-overview-card.is-collapsed .room-filter-overview-block__head {
  margin-bottom: 0;
}

/* TARGET DAY date: gray text (matches property names) */
.room-filter-overview-date--idle {
  color: var(--sel-fg);
  background: transparent;
  border: var(--sel-border);
  opacity: 1;
  cursor: pointer;
}

.room-filter-overview-date--idle:hover {
  border: var(--sel-border-hover);
  color: var(--sel-fg-hover);
}

.room-filter-overview-date--selected {
  color: var(--sel-fg-active);
  background: var(--sel-bg-active);
  border: var(--sel-border-active);
  opacity: 1;
  cursor: pointer;
}

.room-filter-overview-date--selected:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.room-filter-overview-card--target-date .room-filter-overview-date--idle,
.room-filter-overview-card--target-date .room-filter-overview-date--selected {
  background: transparent;
  border: none;
  color: inherit;
  cursor: inherit;
}

.room-filter-overview-date-select,
.room-filter-overview-date-face {
  appearance: none;
  -webkit-appearance: none;
  max-width: 100%;
  text-align: center;
  text-align-last: center;
  cursor: pointer;
}

.room-filter-overview-date-face {
  display: block;
  margin: 0 auto;
  border: none;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-mono);
  font-size: var(--prop-chrome-value-size, 12px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
  user-select: none;
}

.room-filter-overview-card--target-date.is-collapsed .room-filter-overview-date-face {
  cursor: pointer;
}

/* TARGET DAY card head — collapse hit when expanded. Date chrome is the compact face. */
.room-filter-overview-card--target-date > .room-filter-overview-block__head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: stretch;
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0;
  min-height: 0;
  font-size: var(--t-12, 12px);
  border-radius: var(--r-md);
  box-sizing: border-box;
  cursor: pointer;
}

.room-filter-overview-card--target-date.is-collapsed > .room-filter-overview-block__head {
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  min-height: 0;
  overflow: hidden;
}

.room-filter-overview-target-face {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: var(--s-1);
  width: max-content;
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: var(--prop-chrome-pad-y, 1px) var(--prop-chrome-pad-x, 10px);
  margin: 0;
  box-sizing: border-box;
  border-radius: var(--r-md);
  cursor: pointer;
  white-space: nowrap;
}

.room-filter-overview-card--target-date > .room-filter-overview-card__collapse {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  cursor: default;
}

.room-filter-overview-target-face__label {
  flex: 0 0 auto;
  align-self: baseline;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: var(--t-11);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: start;
  color: var(--c-text-3);
  opacity: 1;
  line-height: 1;
  white-space: nowrap;
}

.room-filter-overview-target-face__date {
  flex: 0 0 auto;
  width: auto;
  min-width: 11ch;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.room-filter-overview-target-face__date #roomFilterCheckinSlot {
  display: flex;
  align-items: baseline;
  width: auto;
  min-width: 0;
}

.room-filter-overview-card--target-date
  .room-filter-overview-target-face__date
  .prop-under-chart-filters__date,
.room-filter-overview-card--target-date
  .room-filter-overview-target-face__date
  .room-filter-overview-date-select,
.room-filter-overview-card--target-date
  .room-filter-overview-target-face__date
  #propCheckinSelect {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: auto;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-family: var(--font-mono);
  font-size: var(--prop-chrome-value-size, 12px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 0;
  height: auto;
  min-height: 0;
  line-height: 1;
  text-align: start;
  text-align-last: start;
  cursor: pointer;
}

/* Range overview head styles kept for Target Day twin / legacy; COMPARE+RANGE are table rows now */
.room-filter-overview-block__head--with-stack {
  display: block;
  padding: 0;
  margin: 0;
}

.room-filter-overview-card--horizon .room-filter-overview-block__head {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: start;
  align-items: start;
  column-gap: var(--s-3, 12px);
  row-gap: 3px;
  padding: 0;
  margin: 0 18px 2px 0;
  font-size: var(--t-12, 12px);
}

.room-filter-overview-COMPARE-face {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  min-width: 0;
}

.room-filter-overview-card--horizon .room-filter-overview-COMPARE-face .room-filter-show-all-bar__label {
  font-size: var(--prop-chrome-label-size, var(--t-10, 10px));
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-2, var(--x-text-secondary));
  opacity: 0.85;
  line-height: 1.15;
}

.room-filter-overview-card--horizon .room-filter-overview-COMPARE-face .room-filter-show-all-bar__scrape-date {
  font-size: 1em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--c-text, var(--x-text-primary));
}

.room-filter-overview-card--horizon
  .room-filter-overview-COMPARE-face
  .room-filter-show-all-bar__scrape-line--old
  .room-filter-show-all-bar__scrape-date,
.room-filter-overview-card--horizon
  .room-filter-overview-COMPARE-face
  .room-filter-show-all-bar__scrape-line--old
  .room-filter-show-all-bar__scrape-role {
  color: var(--c-text-2, var(--x-text-secondary));
  font-weight: 600;
}

.room-filter-overview-card--horizon .room-filter-overview-COMPARE-face .room-filter-show-all-bar__scrape-role {
  font-size: var(--prop-chrome-label-size, var(--t-10, 10px));
  font-weight: 400;
  letter-spacing: 0.06em;
}

.room-filter-overview-horizon-face {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  min-width: 0;
}

.room-filter-overview-horizon-face__label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  font-size: var(--prop-chrome-label-size, var(--t-10, 10px));
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-2, var(--x-text-secondary));
  opacity: 0.85;
  line-height: 1.15;
}

.room-filter-overview-horizon-face__value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2em;
  min-width: 0;
  font-size: 1em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.room-filter-overview-horizon-face__value .prop-horizon-stack__unit {
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--c-text, var(--x-text-primary));
}

.room-filter-show-all-bar--overview {
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "stack-label . target-label"
    "scrape arrow date";
  padding-left: 0;
  padding-bottom: 0;
  width: 100%;
  max-width: 100%;
}

.room-filter-show-all-bar--overview .room-filter-show-all-bar__date {
  min-width: 0;
}

.room-filter-show-all-bar--overview .room-filter-show-all-bar__date .prop-under-chart-filters__date {
  appearance: none;
  display: inline-flex;
  align-items: center;
  margin: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
  color: var(--c-accent);
  font-family: inherit;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  padding: 5px 10px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.room-filter-region-overview--anim {
  transform-origin: top center;
  transition:
    height 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.9s ease,
    padding 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.room-filter-region-overview--exit {
  opacity: 0;
  transform: scaleY(0.94) translateY(-4px);
  pointer-events: none;
}

.room-filter-overview-enter-child {
  opacity: 0;
  transform: translateY(10px);
  animation: room-filter-overview-child-in 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--overview-enter-delay, 0ms);
}

@keyframes room-filter-overview-child-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .room-filter-region-overview--anim {
    transition: none !important;
  }

  .room-filter-overview-card,
  .room-filter-overview-card__collapse,
  .room-filter-overview-card .room-filter-overview-info-btn {
    transition: none !important;
  }

  .room-filter-overview-enter-child {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

.room-filter-overview-card,
.hl-card.room-filter-overview-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  min-width: 0;
  padding: var(--s-3) var(--s-4) calc(var(--s-3) / 2);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
  box-shadow: var(--sh-2);
  font-family: var(--font-sans);
  font-size: var(--t-12, 12px);
  --overview-title-size: var(--t-10, 10px);
  box-sizing: border-box;
  transition: border-color var(--ease-oxide);
}

/* One typeface across the card; name is +2px only */
.room-filter-overview-card .room-filter-overview-table,
.room-filter-overview-card .room-filter-overview-table__value,
.room-filter-overview-card .room-filter-overview-block__head,
.room-filter-overview-card.room-filter-overview-card--horizon .room-filter-overview-block__head,
.room-filter-overview-card.room-filter-overview-card--horizon
  .room-filter-overview-COMPARE-face
  .room-filter-show-all-bar__label,
.room-filter-overview-card.room-filter-overview-card--horizon
  .room-filter-overview-COMPARE-face
  .room-filter-show-all-bar__scrape-date,
.room-filter-overview-card.room-filter-overview-card--horizon
  .room-filter-overview-COMPARE-face
  .room-filter-show-all-bar__scrape-role,
.room-filter-overview-card .room-filter-overview-horizon-face__label,
.room-filter-overview-card .room-filter-overview-horizon-face__value,
.room-filter-overview-card .prop-horizon-mark,
.room-filter-overview-card .prop-horizon-stack__unit,
.room-filter-overview-card.room-filter-overview-card--target-date
  .room-filter-overview-target-face__date {
  font-family: inherit;
  font-size: 1em;
}

.room-filter-overview-card.room-filter-overview-card--target-date
  .room-filter-overview-target-face__label {
  font-size: var(--t-11);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--c-text-3);
}

.room-filter-overview-card .room-filter-overview-table {
  font-size: 1em;
}

.room-filter-overview-card .room-filter-overview-table__value {
  font-family: inherit;
}

/* Range card: neutral shell — lane color lives on intro / COMPARE / RANGE bands */
.room-filter-overview-card.room-filter-overview-card--horizon,
.hl-card.room-filter-overview-card--horizon {
  border-color: var(--c-border-soft);
  background: var(--c-surface-2);
  box-shadow: var(--sh-2);
}

/* Target Date scope: neutral shell — same gray hairline as overview cards */
.room-filter-overview-card.room-filter-overview-card--target-date,
.hl-card.room-filter-overview-card--target-date {
  padding: var(--s-3, 12px);
  border-color: var(--c-border-soft);
  background: var(--c-surface-2);
  box-shadow: var(--sh-2);
  overflow: visible;
}

.room-filter-overview-card--target-date:not(.is-collapsed) {
  cursor: default;
}

#roomFilterPanel.room-filter-panel--property #roomFilterContent {
  padding: 4px 0 8px;
  overflow-x: clip;
}

.room-filter-overview-card--room-filter.room-filter-overview-card--target-date {
  /* Full-bleed table so solo/hover fill reaches the card edge; inset lives on first col. */
  padding-left: 0;
  padding-right: 0;
}

.room-filter-overview-card--room-filter.room-filter-overview-card--target-date:not(.is-collapsed) {
  overflow: visible;
}

.room-filter-overview-card--room-filter.room-filter-overview-card--target-date.is-collapsed {
  overflow: hidden;
}

.room-filter-overview-card--room-filter:not(.is-collapsed) .room-filter-overview-card__collapse,
.room-filter-overview-card--room-filter:not(.is-collapsed) .room-filter-overview-card__collapse-inner {
  overflow: visible;
}

.room-filter-overview-card--room-filter.is-collapsed .room-filter-overview-card__collapse,
.room-filter-overview-card--room-filter.is-collapsed .room-filter-overview-card__collapse-inner {
  overflow: hidden;
}

.room-filter-overview-card--room-filter .room-filter-overview-card__collapse-inner {
  padding-left: 0;
  padding-right: 0;
}

.room-filter-show-all-bar.room-filter-show-all-bar--card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  width: 100%;
  max-width: 100%;
  padding: 0 0 var(--s-2);
  padding-left: 0;
  grid-template-columns: none;
  grid-template-rows: none;
  grid-template-areas: none;
}

.room-filter-show-all-bar--card-actions .room-filter-show-all-bar__links {
  grid-area: auto;
  align-self: center;
  padding-left: 0;
}

.room-filter-show-all-bar--card-actions > .room-filter-show-all-btn {
  grid-area: auto;
  margin-top: 0;
  margin-left: 0;
}

.room-filter-show-all-bar--card-actions .room-filter-show-all-bar__links-menu {
  right: auto;
  left: calc(100% + 4px);
}

.room-filter-overview-card--room-filter .room-filter-overview-card__empty {
  margin: 0;
  padding: var(--s-2) 0 var(--s-3);
  color: var(--c-text-2, var(--x-text-secondary));
  text-align: center;
  font-size: 0.9em;
  line-height: 1.35;
}

.room-filter-overview-compare + .room-filter-show-all-bar,
.room-filter-overview-compare + .room-filter-table {
  margin-top: var(--s-2, 8px);
}

.room-filter-overview-card--target-date
  .room-filter-overview-target-face__date
  #propCheckinSelect,
.room-filter-overview-card--target-date
  .room-filter-overview-target-face__date
  .room-filter-panel__checkin-select,
.room-filter-overview-card--target-date
  .room-filter-overview-target-face__date
  .prop-cockpit__tab-date {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-family: var(--font-mono);
  font-size: var(--prop-chrome-value-size, 12px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 0;
  height: auto;
  min-height: 0;
  line-height: 1;
  text-align: start;
  text-align-last: start;
  cursor: pointer;
}

/* Solo region card shell (empty selection) */
.room-filter-overview-card.room-filter-overview-card--region,
.hl-card.room-filter-overview-card--region {
  gap: 0;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(8, 10, 18, 0.85);
  background: #080a12;
}

/* Merged A+B+C: clip intro band to card radius */
.room-filter-overview-card.room-filter-overview-card--with-intro,
.hl-card.room-filter-overview-card--with-intro {
  overflow: hidden;
}

.room-filter-overview-card__intro {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: calc(-1 * var(--s-3)) calc(-1 * var(--s-4)) 0;
  padding: var(--s-3) var(--s-4) var(--s-2);
  overflow: hidden;
}

.room-filter-overview-card__intro > * {
  position: relative;
  z-index: 1;
}

.room-filter-overview-card__pinned {
  min-width: 0;
}

.room-filter-overview-card.is-collapsed .room-filter-overview-card__pinned {
  margin-bottom: 0;
}

.room-filter-overview-card--region .room-filter-overview-card__intro {
  margin: calc(-1 * var(--s-3)) calc(-1 * var(--s-4)) calc(-1 * var(--s-3) / 2);
  padding: var(--s-3) var(--s-4) calc(var(--s-3) / 2);
}

.room-filter-overview-card--with-intro:not(.room-filter-overview-card--region)
  > .room-filter-overview-block__head {
  margin-top: var(--s-1);
}

/* Range bands: left rail only (TargetDay card reference).
   Region = white (REGION header); property = red; COMPARE = blue; RANGE = yellow.
   Yellow/blue only on direct card children — not nested intro collapses. */
.room-filter-overview-card--horizon .room-filter-overview-card__intro {
  --overview-region-rail: color-mix(in srgb, #fff 55%, transparent);
  box-shadow: inset 3px 0 0 0 var(--overview-region-rail);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, #fff 10%, transparent) 0%,
    transparent 55%
  );
}

.room-filter-overview-card--horizon.room-filter-overview-card--drilled
  .room-filter-overview-card__intro {
  /* Region + property split — shell itself is uncolored; bands own padding */
  box-shadow: none;
  background: transparent;
  padding: 0;
  gap: var(--s-2);
}

.room-filter-overview-card--horizon .room-filter-overview-card__intro-region {
  padding: var(--s-3) var(--s-4) var(--s-2);
  box-shadow: inset 3px 0 0 0 var(--overview-region-rail, color-mix(in srgb, #fff 55%, transparent));
  background: linear-gradient(
    90deg,
    color-mix(in srgb, #fff 10%, transparent) 0%,
    transparent 55%
  );
}

.room-filter-overview-card--drilled .room-filter-overview-card__intro-region {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}

.room-filter-overview-card--drilled
  .room-filter-overview-card__intro-region
  .prop-portfolio-region-intro__context {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}

.room-filter-overview-card--drilled
  .room-filter-overview-card__intro-region
  .room-filter-back-region-btn {
  flex-shrink: 0;
}

.room-filter-overview-card--horizon.room-filter-overview-card--drilled
  .room-filter-overview-card__intro-main {
  padding: var(--s-3) var(--s-4) var(--s-2);
  box-shadow: inset 3px 0 0 0 var(--lane-selected);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--lane-selected) 14%, transparent) 0%,
    transparent 55%
  );
}

.room-filter-overview-card--horizon > .room-filter-overview-card__pinned,
.room-filter-overview-card--horizon > .room-filter-overview-card__collapse {
  margin-left: calc(-1 * var(--s-4));
  margin-right: calc(-1 * var(--s-4));
  padding-left: var(--s-4);
  padding-right: var(--s-4);
}

.room-filter-overview-card--horizon > .room-filter-overview-card__pinned,
.room-filter-overview-card--horizon
  .room-filter-overview-card__intro
  > .room-filter-overview-card__pinned {
  box-shadow: inset 3px 0 0 0 var(--lane-today);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--lane-today) 14%, transparent) 0%,
    transparent 55%
  );
}

/* Drilled: DATA-SETS band between REGION + PROPERTY — match band padding (intro already bleeds) */
.room-filter-overview-card--horizon.room-filter-overview-card--drilled
  .room-filter-overview-card__intro
  > .room-filter-overview-card__pinned {
  margin-left: 0;
  margin-right: 0;
  padding: var(--s-3) var(--s-4) var(--s-2);
}

.room-filter-overview-card--horizon > .room-filter-overview-card__collapse {
  box-shadow: inset 3px 0 0 0 var(--lane-horizon);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--lane-horizon) 14%, transparent) 0%,
    transparent 55%
  );
}

.room-filter-overview-info-btn,
.hl-info.room-filter-overview-info-btn {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  z-index: 1;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--c-text-3);
  font-size: var(--t-11);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.room-filter-overview-info-btn:hover {
  color: var(--c-text);
  border: var(--sel-border-hover);
  background: transparent;
}

.room-filter-overview-info-btn[aria-expanded="true"],
.room-filter-overview-card.is-info-open > .room-filter-overview-info-btn {
  color: var(--sel-fg-active);
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
}

.room-filter-overview-info-btn[aria-expanded="true"]:hover,
.room-filter-overview-card.is-info-open > .room-filter-overview-info-btn:hover {
  color: var(--sel-fg-active);
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
}

.room-filter-overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-12);
}

.room-filter-overview-table th,
.room-filter-overview-table td {
  padding: 3px 0;
  color: var(--c-text-2);
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

/* Last data row: no rule under it (info-rows sit after each row, so :last-of-type never matches) */
.room-filter-overview-table__row:not(:has(~ .room-filter-overview-table__row)) th,
.room-filter-overview-table__row:not(:has(~ .room-filter-overview-table__row)) td {
  border-bottom: none;
}

.room-filter-overview-table__label {
  white-space: nowrap;
}

.room-filter-overview-card--target-date .room-filter-overview-table__label {
  white-space: normal;
}

.room-filter-overview-table__row--section th,
.room-filter-overview-table__section {
  padding-top: 10px;
  padding-bottom: 2px;
  font-family: var(--font-mono);
  font-size: var(--t-10, 10px);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-3);
  text-align: left;
  border-bottom: 1px solid color-mix(in srgb, var(--c-text-3) 28%, transparent);
}

.room-filter-overview-table__row--section:first-child th {
  padding-top: 2px;
}

.room-filter-overview-compare {
  padding: 2px 0 4px;
  cursor: default;
}

#roomFilterContent .room-filter-table--compare {
  width: 100%;
  border-collapse: collapse;
  /* Fixed: the full-width room-name row must never widen the table. */
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}

.room-filter-overview-compare__table,
.room-filter-overview-compare__money {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}

.room-filter-overview-compare__col-label {
  width: 34%;
}

.room-filter-overview-compare__col-was,
.room-filter-overview-compare__col-delta,
.room-filter-overview-compare__col-now {
  width: 22%;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__col-tier {
  width: auto;
  min-width: 0;
}

/* Sized to real content (17,010 / 0/3), not a padded reserve. */
#roomFilterContent .room-filter-table--compare .room-filter-table__col-past,
#roomFilterContent .room-filter-table--compare .room-filter-table__col-today {
  width: 7ch;
}

/* Delta needs the most: +1,640/N */
#roomFilterContent .room-filter-table--compare .room-filter-table__col-pchange {
  width: 8ch;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__col-gutter,
#roomFilterContent .room-filter-table--compare .room-filter-table__col-gutter-left {
  width: var(--room-filter-color-gutter, var(--s-3, 12px));
}

.room-filter-overview-compare__table th,
.room-filter-overview-compare__table td,
.room-filter-overview-compare__money th,
.room-filter-overview-compare__money td {
  padding: 3px 0;
  vertical-align: top;
}

/* WAS | Δ | NOW column rules */
.room-filter-overview-compare__table thead th:nth-child(3),
.room-filter-overview-compare__table thead th:nth-child(4),
.room-filter-overview-compare__table tbody td:nth-child(3),
.room-filter-overview-compare__table tbody td:nth-child(4),
#roomFilterContent .room-filter-table--compare thead th:nth-child(4),
#roomFilterContent .room-filter-table--compare thead th:nth-child(5),
#roomFilterContent .room-filter-table--compare tbody td:nth-child(4),
#roomFilterContent .room-filter-table--compare tbody td:nth-child(5) {
  border-left: 1px solid var(--c-border);
}

.room-filter-overview-compare__table thead th {
  font-family: var(--font-mono);
  font-size: var(--t-11);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-3);
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--c-border);
}

.room-filter-overview-compare__table thead th:first-child {
  text-align: left;
  width: 34%;
  vertical-align: middle;
}

.room-filter-overview-compare__table thead th:nth-child(2),
.room-filter-overview-compare__table thead th:nth-child(3),
.room-filter-overview-compare__table thead th:nth-child(4),
.room-filter-overview-compare__table tbody td:nth-child(2),
.room-filter-overview-compare__table tbody td:nth-child(3),
.room-filter-overview-compare__table tbody td:nth-child(4) {
  text-align: center;
  padding-left: 6px;
  padding-right: 6px;
  vertical-align: middle;
}

#roomFilterContent .room-filter-table--compare thead th:nth-child(3),
#roomFilterContent .room-filter-table--compare thead th:nth-child(4),
#roomFilterContent .room-filter-table--compare thead th:nth-child(5),
#roomFilterContent .room-filter-table--compare tbody td:nth-child(3),
#roomFilterContent .room-filter-table--compare tbody td:nth-child(4),
#roomFilterContent .room-filter-table--compare tbody td:nth-child(5) {
  text-align: center;
  padding-left: 2px;
  padding-right: 2px;
  vertical-align: middle;
  white-space: nowrap;
}

.room-filter-overview-compare__table thead th .prop-portfolio-th-delta {
  display: inline-block;
  font-size: var(--t-16);
  font-weight: 600;
  line-height: 1;
  vertical-align: middle;
  color: var(--c-delta);
}

.room-filter-overview-compare__table thead th:last-child {
  color: var(--c-text);
}

.room-filter-overview-compare__table tbody th,
.room-filter-overview-compare__money th {
  font-family: var(--font-mono);
  font-size: var(--t-11);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--c-text-3);
  text-align: left;
  white-space: normal;
  vertical-align: middle;
}

.room-filter-overview-compare__table tbody td,
.room-filter-overview-compare__money td {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  font-weight: 400;
  text-align: right;
  white-space: nowrap;
}

.room-filter-overview-compare__old {
  color: var(--c-text-2);
}

.room-filter-overview-compare__table tbody td.room-filter-overview-compare__delta,
.room-filter-overview-compare__table tbody td.room-filter-overview-compare__delta--sold,
.room-filter-overview-compare__table tbody td.room-filter-overview-compare__delta--returned {
  color: var(--c-delta);
  font-size: var(--t-14);
  font-weight: 600;
}

.room-filter-overview-compare__new,
.room-filter-overview-compare__money td {
  color: var(--c-text);
}

.room-filter-overview-compare__money {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--c-border);
}

.room-filter-overview-compare__money th {
  width: 50%;
}

.room-filter-overview-table__row--prose td,
.room-filter-overview-table__prose {
  padding-top: 2px;
  padding-bottom: 2px;
  font-size: 0.92em;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--c-text-2, var(--x-text-secondary, #9aa3ad));
  white-space: normal;
  text-align: left !important;
  width: 100%;
  border-bottom: none;
}

.room-filter-overview-table__prose .prop-portfolio-region-intro__count {
  color: var(--c-text, var(--x-text-primary, #e7e9ea));
}

.room-filter-overview-table__prose .prop-portfolio-region-intro__meta {
  color: var(--c-text-2, var(--x-text-secondary, #9aa3ad));
}

.room-filter-overview-table__prose .prop-portfolio-region-intro__inventory {
  width: 100%;
}

.room-filter-overview-table__label-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 2px 6px;
  margin: 0;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  border-radius: var(--r-md);
  box-sizing: border-box;
}

.room-filter-overview-table__label-btn:hover,
.room-filter-overview-table__label-btn:focus-visible {
  outline: none;
}

.room-filter-overview-table__label,
.room-filter-overview-table__label-btn {
  font-family: var(--font-mono);
  font-size: var(--t-10, 10px);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-3);
}

.room-filter-overview-table__value {
  font-family: var(--font-mono);
  font-size: var(--t-12, 12px);
  font-weight: 400;
}

/* Property name / COMPARE / RANGE — header chrome size */
.room-filter-overview-card .prop-portfolio-region-intro__name,
#PropertyData
  #roomFilterPanel
  .room-filter-overview-card
  button.prop-portfolio-region-intro__name--exit,
#PropertyData
  #roomFilterPanel
  .room-filter-overview-card
  button.room-filter-overview-table__label-btn.room-filter-overview-table__lane-label--compare,
.room-filter-overview-card .room-filter-overview-table__lane-label--compare,
.room-filter-overview-card .room-filter-overview-table__lane-label--horizon {
  font-family: var(--font-mono);
  font-size: var(--t-10, 10px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--c-text-3);
}

.room-filter-overview-card--target-date .room-filter-overview-target-face__label {
  color: var(--c-text-3);
}

/* COMPARE row: NOW/WAS stacked like Capacity Δ / Price Δ; keep gutter from right rail */
.room-filter-overview-card .room-filter-overview-compare-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
  max-width: 100%;
  box-sizing: border-box;
  padding-right: 0.35em;
  margin-right: 0.15em;
}

.room-filter-overview-card
  .room-filter-overview-compare-stack
  .prop-portfolio-room-change__line {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35em;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: normal;
}

.room-filter-overview-card
  .room-filter-overview-compare-stack
  .prop-portfolio-room-change__line--active {
  font-weight: 700;
}

.room-filter-overview-card
  .room-filter-overview-compare-stack
  .prop-portfolio-room-change__line--active
  .room-filter-overview-compare-stack__date {
  color: var(--c-text, #fff);
}

.room-filter-overview-card
  .room-filter-overview-compare-stack
  .prop-portfolio-room-change__line:not(.prop-portfolio-room-change__line--active)
  .room-filter-overview-compare-stack__date {
  color: var(--c-text-3, var(--ui-text-muted, #71767b));
}

.room-filter-overview-compare-stack__old {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--c-text-3, var(--ui-text-muted, #71767b));
  opacity: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92em;
}

.room-filter-overview-compare-stack__old .prop-date-stack__offset {
  color: inherit;
  opacity: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Pinned COMPARE values — no extra right gutter */
.room-filter-overview-card--horizon > .room-filter-overview-card__pinned
  .room-filter-overview-table__value,
.room-filter-overview-card--horizon
  .room-filter-overview-card__intro
  > .room-filter-overview-card__pinned
  .room-filter-overview-table__value {
  padding-right: 0;
}

.room-filter-overview-horizon-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2em;
  white-space: nowrap;
}

.room-filter-overview-table td:last-child,
.room-filter-overview-table__value {
  text-align: right;
  color: var(--c-text);
  font-weight: 600;
  font-family: var(--font-mono);
  vertical-align: middle;
}

/* Chips */
.prop-filter-chip,
.room-filter-chip,
.hl-chip.prop-filter-chip,
.hl-chip.room-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  height: 28px;
  padding: 0 var(--s-3);
  margin: 0;
  border: var(--sel-border);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--sel-fg);
  font-family: inherit;
  font-size: var(--t-12);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.prop-filter-chip:hover,
.room-filter-chip:hover {
  background: transparent;
  color: var(--sel-fg-hover);
  border: var(--sel-border-hover);
}

.prop-filter-chip--active,
.prop-filter-chip[aria-expanded="true"],
.room-filter-chip--active,
.room-filter-chip.is-active,
.hl-chip--active.prop-filter-chip,
.hl-chip--active.room-filter-chip {
  background: var(--sel-bg-active);
  border: var(--sel-border-active);
  color: var(--sel-fg-active);
}

.prop-filter-chip--active:hover,
.prop-filter-chip[aria-expanded="true"]:hover,
.room-filter-chip--active:hover,
.room-filter-chip.is-active:hover {
  background: var(--sel-bg-active);
  border: var(--sel-border-hover);
  color: var(--sel-fg-active);
}

/* TARGET DAY date — beat .hl-chip / .prop-filter-chip boxing */
.room-filter-overview-card--target-date
  .room-filter-overview-target-face__date
  .hl-chip,
.room-filter-overview-card--target-date
  .room-filter-overview-target-face__date
  .prop-filter-chip,
.room-filter-overview-card--target-date
  .room-filter-overview-target-face__date
  .room-filter-chip,
.room-filter-overview-card--target-date
  .room-filter-overview-target-face__date
  .prop-under-chart-filters__date,
.room-filter-overview-card--target-date
  .room-filter-overview-target-face__date
  .room-filter-overview-date-select,
.room-filter-overview-card--target-date
  .room-filter-overview-target-face__date
  #propCheckinSelect {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: auto;
  max-width: 100%;
  height: var(--prop-chrome-value-h, 18px);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--c-text-2);
  font-family: var(--font-mono);
  font-size: var(--prop-chrome-value-size, 12px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  height: auto;
  min-height: 0;
  line-height: 1;
  text-align: start;
  text-align-last: start;
  cursor: pointer;
}

.prop-cockpit-rank-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 var(--s-2);
  border-radius: var(--r-pill);
  background: var(--c-surface-3);
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
  font-size: var(--t-11);
  font-weight: 600;
}

/* ── Portfolio main area ────────────────────────────────── */
#propPortfolioSection,
.prop-portfolio-section {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.prop-portfolio-chart-card,
#propPortfolioSection .chart-container,
.prop-single-property-section .chart-container,
#propAvailabilityChartBlock.chart-container,
#propPriceBlock .chart-container {
  background: var(--chart-bg);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  padding: var(--s-3) 0;
}

#propPortfolioSection .chart-container,
#propPriceBlock .chart-container {
  display: flex;
  flex-direction: column;
}

#propPortfolioChartHeading.prop-portfolio-chart-heading[hidden],
#propPriceChartHeading.prop-portfolio-chart-heading[hidden],
.prop-portfolio-chart-heading[hidden] {
  display: none !important;
}

/* Shared chart heading: INFO + mode seg (plot-aligned) + centered title + spacer */
#propPortfolioChartHeading.prop-portfolio-chart-heading,
#propAvailabilityChartHeading.prop-portfolio-chart-heading,
#propPriceChartHeading.prop-portfolio-chart-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  flex: 0 0 auto;
  padding: 6px 4px 4px;
  box-sizing: border-box;
}

#propPortfolioChartHeading .prop-portfolio-chart-heading__center,
#propAvailabilityChartHeading .prop-portfolio-chart-heading__center,
#propPriceChartHeading .prop-portfolio-chart-heading__center {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  padding: 0 2.5rem;
  pointer-events: none;
  min-width: 0;
  text-align: center;
  max-width: 100%;
}

#propPortfolioChartHeading .prop-portfolio-chart-heading__center .prop-portfolio-chart-day-stack-link {
  pointer-events: auto;
}

.prop-chart-heading-controls {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
  position: relative;
  /* Start at plot X (chartArea.left), not in the Y-label gutter */
  margin-left: var(--day-plot-left, var(--avail-los-left, 2.5rem));
}

.prop-chart-heading-controls .prop-portfolio-chart-mode {
  flex: 0 0 auto;
}

#propPortfolioChartHeading .prop-portfolio-chart-heading__spacer,
#propAvailabilityChartHeading .prop-portfolio-chart-heading__spacer,
#propPriceChartHeading .prop-portfolio-chart-heading__spacer {
  grid-column: 3;
  grid-row: 1;
  justify-self: stretch;
  min-width: 0;
  visibility: hidden;
  pointer-events: none;
}

/* RATES drill: one-row heading — controls | measure | spacer */
#propAvailabilityChartHeading.prop-drill-chart-heading,
#propPriceChartHeading.prop-drill-chart-heading {
  padding: 4px 4px 2px;
  gap: 6px 10px;
}

#propAvailabilityChartHeading.prop-drill-chart-heading .prop-drill-chart-heading__main,
#propPriceChartHeading.prop-drill-chart-heading .prop-drill-chart-heading__main {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  min-width: 0;
  text-align: center;
  pointer-events: none;
}

#propAvailabilityChartHeading.prop-drill-chart-heading .prop-portfolio-chart-title,
#propPriceChartHeading.prop-drill-chart-heading .prop-portfolio-chart-title {
  margin: 0;
  font-size: var(--t-12);
  letter-spacing: 0.04em;
}

/* Plot furniture: wrapping full-name color chips */
.prop-chart-furniture {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px 6px;
  min-height: 0;
  padding: 0 4px 4px;
  margin-left: var(--day-plot-left, var(--avail-los-left, 2.5rem));
  margin-right: var(--day-plot-right, var(--avail-los-right, 0px));
  box-sizing: border-box;
}

.prop-chart-furniture--chips {
  gap: 4px 6px;
}

.prop-chart-furniture__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: var(--s-1) var(--s-2);
  font-size: var(--t-11);
  font-weight: 600;
}

.prop-chart-furniture__chip--static {
  min-height: 0;
  padding: 2px 0;
  color: var(--c-text-2);
}

.prop-chart-furniture__chip-label {
  color: var(--c-text);
  white-space: nowrap;
}

.prop-chart-furniture__chip:hover .prop-chart-furniture__chip-label,
.prop-chart-furniture__chip.is-active .prop-chart-furniture__chip-label {
  color: var(--furniture-color, var(--c-text));
}

.prop-chart-furniture__chip--static .prop-chart-furniture__chip-label {
  color: inherit;
}

.prop-chart-furniture__swatch {
  display: inline-block;
  width: 14px;
  height: 0;
  border-top: 2.25px solid var(--furniture-color, var(--c-text-2));
  flex: 0 0 auto;
}

.prop-chart-furniture__swatch--dash {
  border-top-style: dashed;
  border-top-width: 1.5px;
}

.prop-chart-furniture__chip--dimmed {
  opacity: 0.35;
}

.prop-chart-heading-info,
.hl-info.prop-chart-heading-info {
  width: 20px;
  height: 20px;
  padding: 0;
  border: var(--sel-border);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--sel-fg);
  font-size: var(--t-11);
  font-weight: 700;
  flex: 0 0 auto;
  box-sizing: border-box;
  cursor: pointer;
}

.prop-chart-heading-info--label,
.hl-info.prop-chart-heading-info--label {
  width: auto;
  height: auto;
  min-height: 20px;
  padding: var(--s-1) var(--s-2);
  font-size: var(--t-11);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  gap: 0.25em;
}

.prop-chart-heading-info:hover {
  color: var(--c-text);
  border: var(--sel-border-hover);
  background: transparent;
}

.prop-chart-heading-info[aria-expanded="true"] {
  color: var(--sel-fg-active);
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
}

.prop-chart-heading-info[aria-expanded="true"]:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.prop-chart-heading-info-popover,
.hl-popover.prop-chart-heading-info-popover {
  position: absolute;
  top: calc(100% + var(--s-2));
  left: 0;
  z-index: 40;
  width: min(320px, 78vw);
}

.prop-chart-heading-info-popover--wide,
.hl-popover.prop-chart-heading-info-popover--wide {
  width: min(440px, 86vw);
}

.prop-chart-heading-info-popover--delta .prop-portfolio-th-delta {
  color: var(--c-delta);
  font-weight: 700;
}

.prop-chart-heading-info-popover p {
  margin: 0 0 var(--s-2);
}

.prop-chart-heading-info-popover p:last-child {
  margin-bottom: 0;
}

.prop-chart-heading-info-popover code {
  font-family: var(--font-mono);
  font-size: inherit;
  color: var(--c-accent);
}

.prop-chart-heading-info-popover__note {
  color: var(--c-text-3);
  font-size: var(--t-12);
}

/* LISTED RATE: info (i) inside plot on Y right — same inset idea as rooms % scale */
#propPriceBlock .prop-chart-plot-info {
  position: absolute;
  top: calc(var(--day-plot-top, 8px) + 6px);
  right: calc(var(--day-plot-right, 0px) + 6px);
  z-index: 5;
}

#propPriceBlock .prop-chart-plot-info-popover {
  position: absolute;
  top: calc(var(--day-plot-top, 8px) + 30px);
  right: calc(var(--day-plot-right, 0px) + 6px);
  left: auto;
  z-index: 40;
  width: min(320px, 78vw);
}

/* CAPACITY Δ pink mark (in-chart mode tabs) */
#propPortfolioUnitsModeTabs [data-units-mode='change'] {
  text-transform: none;
  letter-spacing: 0.03em;
}

#propPortfolioUnitsModeTabs .prop-portfolio-chart-mode__delta {
  display: inline-block;
  margin-left: 0.12em;
  font-size: 1.55em;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--c-delta);
  vertical-align: -0.12em;
}

#propPortfolioUnitsModeTabs [data-units-mode='change'].is-active .prop-portfolio-chart-mode__delta,
#propPortfolioUnitsModeTabs [data-units-mode='change'][aria-pressed='true'] .prop-portfolio-chart-mode__delta {
  color: var(--c-delta);
  text-shadow: 0 0 14px color-mix(in srgb, var(--c-delta) 45%, transparent);
}

#propPortfolioUnitsModeTabs [data-units-mode='change']:not(.is-active) .prop-portfolio-chart-mode__delta {
  opacity: 0.72;
}

/* Portfolio stack: chart + seam + list join flush (square meeting edges).
   Column scrolls as a whole (#propertyChartWrapper); only thead sticks. */
#propPortfolioSection.prop-portfolio-summary {
  gap: 0;
  flex: 0 0 auto;
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: visible;
}

#propPortfolioSection.prop-portfolio-summary > #propPropertyDataUnderFilters,
#propPortfolioSection.prop-portfolio-summary > .prop-portfolio-chart-block,
#propPortfolioSection.prop-portfolio-summary > #propUnderChartFilters {
  flex: 0 0 auto;
}

/* Cockpit tabs: flush under app header, above first chart / drill content */
#propPortfolioSection > #propPropertyDataUnderFilters.prop-property-data-under-filters {
  order: -1;
  position: sticky;
  top: 0;
  z-index: 4;
  width: 100%;
  box-sizing: border-box;
  border-top: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--c-surface-2, var(--c-bg, #12151a));
}

#propPortfolioSection > #propPropertyDataUnderFilters.prop-property-data-under-filters:not([hidden]) {
  display: flex;
}

#propPortfolioSection .prop-portfolio-chart-container.chart-container,
#propPortfolioSection .chart-container.prop-portfolio-chart-container {
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border-bottom: none;
  box-shadow: none;
  padding-top: 0;
  padding-bottom: 0;
}

.prop-portfolio-units-mode-bar {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.prop-portfolio-units-mode-bar[hidden] {
  display: none !important;
}

.prop-portfolio-units-mode-bar .prop-portfolio-chart-mode,
.prop-portfolio-units-mode-bar .prop-portfolio-chart-mode.hl-seg {
  margin: 0;
  padding: 0;
  gap: 4px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.prop-portfolio-units-mode-bar .prop-under-chart-filters__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-end;
  margin-left: auto;
  padding: 0;
  gap: 0;
  min-width: 0;
}

/* Shared chrome: off = muted text; on = Home-style accent fill */
.prop-portfolio-units-mode-bar .prop-portfolio-chart-mode__btn,
.prop-portfolio-units-mode-bar .prop-under-chart-filters__action {
  height: auto;
  min-height: var(--prop-chrome-h, 36px);
  padding: 0 10px;
  border: var(--sel-border);
  border-radius: var(--r-md);
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-3, var(--ui-text-muted));
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
  transition:
    color var(--ease-oxide),
    background-color var(--ease-oxide),
    border-color var(--ease-oxide);
}

.prop-portfolio-units-mode-bar .prop-portfolio-chart-mode__btn:hover,
.prop-portfolio-units-mode-bar .prop-under-chart-filters__action:hover {
  color: var(--sel-fg-hover);
  background: transparent;
  border: var(--sel-border-hover);
}

.prop-portfolio-units-mode-bar .prop-portfolio-chart-mode__btn.is-active,
.prop-portfolio-units-mode-bar .prop-portfolio-chart-mode__btn.hl-seg__btn.is-active,
.prop-portfolio-units-mode-bar .prop-portfolio-chart-mode__btn.hl-seg__btn[aria-pressed='true'],
.prop-portfolio-units-mode-bar .prop-under-chart-filters__action.is-active,
.prop-portfolio-units-mode-bar .prop-under-chart-filters__action[aria-pressed='true'] {
  color: var(--sel-fg-active) !important;
  background: var(--sel-bg-active) !important;
  border: var(--sel-border-active) !important;
  box-shadow: none !important;
  font-weight: 700;
}

.prop-portfolio-units-mode-bar .prop-portfolio-chart-mode__btn.is-active:hover,
.prop-portfolio-units-mode-bar .prop-portfolio-chart-mode__btn.hl-seg__btn.is-active:hover,
.prop-portfolio-units-mode-bar .prop-portfolio-chart-mode__btn.hl-seg__btn[aria-pressed='true']:hover,
.prop-portfolio-units-mode-bar .prop-under-chart-filters__action.is-active:hover,
.prop-portfolio-units-mode-bar .prop-under-chart-filters__action[aria-pressed='true']:hover {
  color: var(--sel-fg-active) !important;
  background: var(--sel-bg-active) !important;
  border: var(--sel-border-hover) !important;
}

/* List strip toggles only in header mode bar (CAPACITY tabs live in chart heading) */

#propPortfolioSection > .prop-portfolio-table-wrap,
#propPortfolioSection .prop-portfolio-lane-inset.prop-portfolio-table-wrap {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  border-top: none;
  box-shadow: none;
}

#propPortfolioSection > #propUnderChartFilters.prop-under-chart-filters,
#propPortfolioSection #propUnderChartFilters.prop-under-chart-filters {
  margin: 0;
  padding: 0 6px;
  gap: 6px;
  align-items: center;
  background: var(--c-surface-2);
  border-left: 1px solid var(--c-border-strong);
  border-right: 1px solid var(--c-border-strong);
  border-top: 1px solid color-mix(in srgb, var(--c-border-strong) 55%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--c-border-strong) 55%, transparent);
  box-sizing: border-box;
}

/* Chart-side chips hang down from the chart. */
#propPortfolioSection #propUnderChartFilters .prop-under-chart-filters__chips {
  align-items: flex-start;
  padding-top: 0;
  padding-bottom: 4px;
  margin-top: -1px;
}

/* List-side tabs live in the header units-mode-bar (left of ADMIN). */

#propPortfolioSection #propUnderChartFilters .prop-under-chart-filters__chips .prop-filter-chip,
#propPortfolioSection #propUnderChartFilters .prop-under-chart-filters__date.room-filter-back-region-btn {
  height: 26px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  border-top: none;
  margin-top: 0;
  padding: 0 10px 0 8px;
  font-size: 0.72em;
  box-sizing: border-box;
}

#propPortfolioSection #propUnderChartFilters .prop-under-chart-filters__chips {
  overflow: hidden;
}

@keyframes prop-under-chart-date-chip-slide-in {
  from {
    opacity: 0;
    transform: translateY(-110%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prop-under-chart-filters__target-hint.prop-under-chart-filters__date--enter,
.prop-under-chart-filters__date.prop-under-chart-filters__date--enter {
  animation: prop-under-chart-date-chip-slide-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .prop-under-chart-filters__target-hint.prop-under-chart-filters__date--enter,
  .prop-under-chart-filters__date.prop-under-chart-filters__date--enter {
    animation: none;
  }
}

.prop-under-chart-filters__target-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.prop-under-chart-filters__target-hint-text {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--c-text-3, var(--x-text-secondary, #9aa3ad));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prop-under-chart-filters__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* When the seam is hidden, restore a single join edge between chart and list. */
#propPortfolioSection:has(#propUnderChartFilters[hidden]) .prop-portfolio-chart-container.chart-container,
#propPortfolioSection:has(#propUnderChartFilters[hidden]) .chart-container.prop-portfolio-chart-container {
  border-bottom: 1px solid var(--c-border-strong);
}

#propPortfolioSection:has(#propUnderChartFilters[hidden]) .prop-portfolio-lane-inset.prop-portfolio-table-wrap {
  border-top: none;
}

@font-face {
  font-family: 'Matrix Dots Demo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url('../assets/fonts/matrix-dots-demo.woff2') format('woff2'),
    url('../assets/fonts/matrix-dots-demo.woff') format('woff');
}

@font-face {
  font-family: 'Dotrice';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/dotrice-regular.woff') format('woff');
}

.prop-portfolio-region-intro__context {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 0.1em;
  padding: 0;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-2, var(--x-text-secondary));
  white-space: normal;
  overflow: hidden;
}

.prop-portfolio-region-intro__name {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 0 0.15em;
  box-sizing: border-box;
  font-family: var(--font-mono);
  font-size: var(--t-12, 12px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: normal;
  overflow: hidden;
  color: var(--c-text);
  text-shadow: none;
}

/* Property drill-down: property title uses PROPERTIES lane; region stays muted */
.room-filter-overview-card--drilled .prop-portfolio-region-intro__name {
  color: var(--lane-selected, #f0605d);
}

#PropertyData #roomFilterPanel button.prop-portfolio-region-intro__name--exit {
  appearance: none;
  -webkit-appearance: none;
  border: var(--sel-border);
  background: transparent;
  color: var(--c-text);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--t-12, 12px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: normal;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  word-break: break-word;
  padding: 2px 4px;
  margin: 0 0 0.15em;
  border-radius: var(--r-sm);
  box-sizing: border-box;
  text-shadow: none;
  transition: border-color var(--ease-oxide), color var(--ease-oxide);
}

#PropertyData #roomFilterPanel button.prop-portfolio-region-intro__name--exit:hover,
#PropertyData #roomFilterPanel button.prop-portfolio-region-intro__name--exit:focus-visible {
  border: var(--sel-border-hover);
  color: var(--c-text);
  outline: none;
  text-decoration: none;
}

#PropertyData
  #roomFilterPanel
  .room-filter-overview-card--drilled
  button.prop-portfolio-region-intro__name--exit,
#PropertyData
  #roomFilterPanel
  .room-filter-overview-card--drilled
  button.prop-portfolio-region-intro__name--exit:hover,
#PropertyData
  #roomFilterPanel
  .room-filter-overview-card--drilled
  button.prop-portfolio-region-intro__name--exit:focus-visible {
  color: var(--lane-selected, #f0605d);
}

.prop-portfolio-region-intro__emph,
.prop-portfolio-region-intro__count {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--c-text);
  letter-spacing: -0.015em;
  text-transform: none;
}

.prop-portfolio-region-intro__meta {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-2, var(--x-text-secondary, #9aa3ad));
}

.prop-portfolio-region-intro__name .prop-portfolio-region-intro__count {
  color: var(--c-text, var(--x-text-primary, #e7e9ea));
}

.prop-portfolio-region-intro__name .prop-portfolio-region-intro__meta {
  color: var(--c-text-2, var(--x-text-secondary, #9aa3ad));
  font-weight: 700;
}

/* Region catalog head: KOH KOOD | 138 PROPERTIES + inventory grid */
.room-filter-overview-card .prop-portfolio-region-intro__name--head,
#PropertyData
  #roomFilterPanel
  .room-filter-overview-card
  .prop-portfolio-region-intro__name--head {
  font-size: var(--prop-chrome-label-size, 11px);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.25;
  padding-bottom: 0.2em;
  text-transform: none;
}

.prop-portfolio-region-intro__head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2em;
  width: 100%;
  min-width: 0;
}

.prop-portfolio-region-intro__split {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75em;
  width: 100%;
  min-width: 0;
}

.prop-portfolio-region-intro__title {
  min-width: 0;
  font-family: var(--font-mono);
  font-size: var(--t-12, 12px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--c-text, var(--x-text-primary, #e7e9ea));
  text-align: left;
}

.prop-portfolio-region-intro__side {
  flex-shrink: 0;
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
  text-transform: uppercase;
}

.prop-portfolio-region-intro__inventory {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  column-gap: 0.35em;
  width: 100%;
  min-width: 0;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.prop-portfolio-region-intro__inv-left {
  justify-self: start;
  text-align: left;
  min-width: 0;
}

.prop-portfolio-region-intro__inv-slash {
  justify-self: center;
  color: var(--c-text-2, var(--x-text-secondary, #9aa3ad));
  font-weight: 400;
}

.prop-portfolio-region-intro__inv-right {
  justify-self: end;
  text-align: right;
  min-width: 0;
}

.prop-portfolio-region-intro__inventory .prop-portfolio-region-intro__count {
  color: var(--c-text, var(--x-text-primary, #e7e9ea));
}

.prop-portfolio-region-intro__inventory .prop-portfolio-region-intro__meta {
  color: var(--c-text-2, var(--x-text-secondary, #9aa3ad));
}

.chart-wrapper {
  background: transparent;
  border-radius: var(--r-md);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.chart-wrapper > canvas {
  display: block;
  max-width: 100%;
}

#propertyChartWrapper.is-chart-expanded .prop-portfolio-daystrip__track,
#propertyChartWrapper.is-chart-expanded .prop-source-los__strip,
#propSinglePropertyHome.is-chart-expanded .prop-portfolio-daystrip__track,
#propSinglePropertyHome.is-chart-expanded .prop-source-los__strip,
#propSinglePropertySection.is-chart-expanded .prop-portfolio-daystrip__track,
#propSinglePropertySection.is-chart-expanded .prop-source-los__strip {
  width: max(100%, var(--prop-chart-plot-width, 100%));
}

#propertyChartWrapper.is-chart-expanded .prop-portfolio-daystrip__day,
#propertyChartWrapper.is-chart-expanded .prop-source-los__day,
#propSinglePropertyHome.is-chart-expanded .prop-portfolio-daystrip__day,
#propSinglePropertyHome.is-chart-expanded .prop-source-los__day,
#propSinglePropertySection.is-chart-expanded .prop-portfolio-daystrip__day,
#propSinglePropertySection.is-chart-expanded .prop-source-los__day {
  flex: 1 1 var(--prop-chart-day-min-width, var(--prop-chart-day-width, 28px));
  min-width: var(--prop-chart-day-min-width, var(--prop-chart-day-width, 28px));
}

.prop-under-chart-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--s-2);
  row-gap: var(--s-2);
  padding: var(--s-2) 0;
}

/* Default padding overridden by #propPortfolioSection seam rules above. */

.prop-under-chart-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  min-width: 0;
  min-height: 28px;
}

.prop-under-chart-filters__mode {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: var(--s-2);
  min-width: 0;
}

.prop-under-chart-filters__mode[hidden] {
  display: none !important;
}

.prop-under-chart-filters__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: var(--s-2);
  min-width: 0;
}

.prop-property-data-under-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--s-1);
  min-height: var(--prop-chrome-h, 36px);
  padding: var(--s-1) var(--s-2);
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--c-surface-2, rgba(255, 255, 255, 0.02));
}

.prop-property-data-under-filters[hidden] {
  display: none !important;
}

.prop-property-data-under-filters .prop-under-chart-filters__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--s-2);
  flex: 0 0 auto;
  min-width: 0;
}

.prop-portfolio-under-filters-host {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--s-1);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: var(--s-1) var(--s-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--c-surface-2, rgba(255, 255, 255, 0.02));
}

.prop-portfolio-under-filters-host > #propPropertyDataUnderFilters {
  flex: 1 1 auto;
  min-width: 0;
  border-top: none;
  background: transparent;
  padding: 0;
}

.prop-cockpit-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px var(--s-1);
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  z-index: 5;
}

.prop-cockpit-tabs__tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  font: inherit;
  font-size: var(--t-12, 12px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.mega-header-stage .mega-header-views.prop-cockpit-tabs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 2px;
  max-width: none;
}

.mega-header-stage .mega-header-views .mega-header-view-row.prop-cockpit-tabs__tab {
  display: grid;
  grid-template-columns: 1.75rem 7.5rem 1fr;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  white-space: normal;
  text-align: left;
  padding: var(--s-3);
}

.prop-cockpit-menu {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
  z-index: 5;
}

.prop-cockpit-menu__trigger {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prop-cockpit-menu.is-open .prop-cockpit-menu__trigger,
.prop-cockpit-menu__trigger[aria-expanded='true'] {
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.prop-cockpit-menu.is-open .prop-cockpit-menu__trigger:hover,
.prop-cockpit-menu__trigger[aria-expanded='true']:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.prop-cockpit-menu__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 168px;
  max-height: 16rem;
  padding: var(--s-1);
  box-sizing: border-box;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  opacity: 1;
  transition:
    max-height var(--ease-expand),
    opacity var(--ease-expand-fade),
    padding var(--ease-expand);
}

.prop-cockpit-menu__dropdown[hidden] {
  display: flex !important;
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  pointer-events: none;
}

.prop-cockpit-menu__item {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: var(--s-2) var(--s-3);
  border: var(--sel-border);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-text-2);
  font: inherit;
  font-size: var(--t-12, 12px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.prop-cockpit-menu__item:hover {
  border: var(--sel-border-hover);
  background: transparent;
  color: var(--c-text);
}

.prop-cockpit-menu__item.is-active,
.prop-cockpit-menu__item.prop-cockpit__tab--active,
.prop-cockpit-menu__item[aria-selected='true'] {
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.prop-cockpit-menu__item.is-active:hover,
.prop-cockpit-menu__item.prop-cockpit__tab--active:hover,
.prop-cockpit-menu__item[aria-selected='true']:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

/* Portfolio table → elevated card table (no nested vertical scrollport) */
.prop-portfolio-table-wrap,
#propPortfolioTableHost,
#propPortfolioTableScroll {
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
  box-shadow: var(--sh-2);
  overflow: visible;
  flex: 0 0 auto;
}

/* TargetDay focus: keep default table text — override legacy.css green tint */
.prop-portfolio-table.prop-portfolio-table--day-focus {
  --c-text: unset;
  --x-text-primary: unset;
  --x-text: unset;
  --ui-text: unset;
  color: inherit;
}

.prop-portfolio-table.prop-portfolio-table--day-focus.prop-portfolio-table--day-focus-enter
  tbody
  tr.prop-portfolio-row:not(.prop-portfolio-row--day-focus-tint) {
  --c-text: unset;
  --x-text-primary: unset;
  --x-text: unset;
  --ui-text: unset;
  color: inherit;
}

.prop-portfolio-table.prop-portfolio-table--day-focus tbody tr.prop-portfolio-row--day-focus-tint,
.prop-portfolio-table.prop-portfolio-table--day-focus
  tbody
  tr.prop-portfolio-row--day-focus-tint
  td {
  color: inherit;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .prop-portfolio-table.prop-portfolio-table--day-focus tbody tr.prop-portfolio-row--day-focus-tint,
  .prop-portfolio-table.prop-portfolio-table--day-focus
    tbody
    tr.prop-portfolio-row--day-focus-tint
    td {
    transition: none;
  }
}

.prop-portfolio-table.prop-portfolio-table--day-focus-reorder tbody tr.prop-portfolio-row {
  will-change: transform;
  position: relative;
  z-index: 1;
}

.prop-portfolio-table tbody tr.prop-portfolio-row.prop-portfolio-row--day-focus-enter {
  animation: prop-day-focus-row-enter 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes prop-day-focus-row-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prop-portfolio-table.prop-portfolio-table--day-focus-reorder tbody tr.prop-portfolio-row {
    will-change: auto;
  }

  .prop-portfolio-table tbody tr.prop-portfolio-row.prop-portfolio-row--day-focus-enter {
    animation: none;
  }
}

/* Square top under portfolio stack — see #propPortfolioSection seam rules above. */

#propPortfolioChartHeading .prop-portfolio-chart-title {
  margin: 0;
  font-size: 1.02em;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--c-text-2);
  line-height: 1.3;
  white-space: normal;
  max-width: 100%;
}

#propPortfolioChartHeading .prop-portfolio-chart-title__em {
  font-weight: 750;
  color: var(--c-text);
}

#propPortfolioChartHeading .prop-portfolio-chart-title__total {
  color: var(--c-text-3);
}

#propPortfolioChartHeading .prop-portfolio-chart-title__total .prop-portfolio-chart-title__em {
  color: var(--c-text-3);
  font-weight: 750;
}

#propPortfolioChartHeading .prop-portfolio-chart-title__sep {
  color: var(--c-text-3);
  font-weight: 500;
}

#propPortfolioChartHeading .prop-portfolio-chart-title__listed {
  color: var(--c-text-2);
  font-weight: 500;
}

#propPortfolioChartHeading .prop-portfolio-chart-title__now {
  color: var(--c-text);
  font-weight: 750;
}

#propPortfolioChartHeading .prop-portfolio-chart-title__n {
  color: var(--c-accent);
  font-weight: 800;
}

#propPortfolioChartHeading .prop-portfolio-chart-title__delta {
  color: var(--c-delta);
  font-weight: 400;
  text-transform: none;
}

#propPortfolioChartHeading .prop-portfolio-chart-day-stack-link {
  appearance: none;
  margin: 0;
  padding: 0.1em 0.45em;
  border: var(--sel-border);
  background: transparent;
  color: var(--sel-fg);
  font: inherit;
  font-weight: 800;
  letter-spacing: inherit;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  line-height: inherit;
  border-radius: var(--r-sm);
  transition:
    border-color var(--ease-oxide),
    background-color var(--ease-oxide),
    color var(--ease-oxide);
}

#propPortfolioChartHeading .prop-portfolio-chart-day-stack-link:hover {
  border: var(--sel-border-hover);
  background: transparent;
  color: var(--sel-fg-hover);
}

#propPortfolioChartHeading .prop-portfolio-chart-day-stack-link:focus-visible {
  outline: 2px solid var(--c-accent-ring);
  outline-offset: 2px;
}

#propPortfolioChartHeading .prop-portfolio-chart-axis-hint {
  display: inline-block;
  font-weight: 700;
  color: var(--c-text-2, var(--c-text-muted));
  letter-spacing: 0;
  text-transform: none;
  padding: 0 0.1em;
}

.prop-portfolio-table,
.hl-table.prop-portfolio-table {
  width: 100%;
  min-width: 0;
  /* auto: property shrinks first; metrics absorb leftover */
  table-layout: auto;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: calc(var(--t-13) - 2px);
  font-weight: 400;
  /* Property col: floor 250px, never exceed filter (270px) */
  --prop-portfolio-property-col-min: 250px;
  --prop-portfolio-property-col-max: 270px;
  --prop-portfolio-group-head-h: 22px;
}

/* Portfolio table type: Roboto, no bold */
.prop-portfolio-table th,
.prop-portfolio-table td,
.prop-portfolio-table .prop-portfolio-th-label,
.prop-portfolio-table .prop-portfolio-th-delta,
.prop-portfolio-table .prop-portfolio-th-total,
.prop-portfolio-table .prop-portfolio-th-total *,
.prop-portfolio-table .prop-portfolio-col-group__label,
.prop-portfolio-table .prop-portfolio-sort,
.prop-portfolio-table .prop-portfolio-row__name,
.prop-portfolio-table .prop-portfolio-room-change,
.prop-portfolio-table .prop-portfolio-room-change *,
.prop-portfolio-table .prop-portfolio-rm-price,
.prop-portfolio-table .prop-portfolio-rm-price *,
.prop-portfolio-table .prop-portfolio-property-filter,
.prop-portfolio-table .delta-up,
.prop-portfolio-table .delta-down {
  font-family: var(--font-sans);
  font-weight: 400;
}

.prop-portfolio-property-filter {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  background: transparent;
  min-height: var(--prop-chrome-h, 32px);
  padding: 4px 0;
}

.prop-portfolio-table .prop-portfolio-slash,
.prop-portfolio-table .prop-portfolio-room-change__sep {
  color: var(--c-text-2, var(--x-text-secondary, #9aa3ad));
  font-weight: 400;
}

.prop-portfolio-room-change__sold {
  color: var(--c-pos, var(--x-success, #00d892));
}

.prop-portfolio-room-change__returned {
  color: var(--c-neg, var(--x-danger, #f0605d));
}

.prop-portfolio-room-change__total {
  color: var(--c-text, var(--ui-text, #dedede));
}

/* Sorted column: header surface background; keep cell text colors unchanged */
.prop-portfolio-table th.prop-portfolio-col--sort-active,
.prop-portfolio-table tbody tr.prop-portfolio-row td.prop-portfolio-col--sort-active {
  background: var(--c-surface-3);
}

.prop-portfolio-room-change__pair {
  display: block;
  font-size: 0.85em;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

/* Property-row Δ: one line green/red pair (no stacked total) */
.prop-portfolio-room-change--pair-only {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0;
  font-size: inherit;
  line-height: 1.2;
}

.prop-portfolio-room-change--pair-only .prop-portfolio-room-change__sold,
.prop-portfolio-room-change--pair-only .prop-portfolio-room-change__returned {
  font-size: inherit;
}

.prop-portfolio-table thead {
  border-top: none;
  border-bottom: 1px solid var(--c-border);
  box-shadow: none;
}

.prop-portfolio-table thead tr {
  background: var(--c-surface-3);
}

.prop-portfolio-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0 !important;
  background: var(--c-surface-3);
  border-bottom: 1px solid var(--c-border);
  color: var(--portfolio-type-color, var(--c-text));
  font-family: var(--font-sans);
  font-size: var(--portfolio-type-size, var(--t-12));
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  vertical-align: middle;
}

.prop-portfolio-table thead th.prop-portfolio-col--property,
.prop-portfolio-table thead tr.prop-portfolio-head-groups th.prop-portfolio-col--property,
.prop-portfolio-table thead tr.prop-portfolio-head-labels th.prop-portfolio-col--property {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.prop-portfolio-table thead tr.prop-portfolio-head-groups th {
  top: 0;
  z-index: 3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.prop-portfolio-table thead tr.prop-portfolio-head-groups th[rowspan] {
  top: 0;
  z-index: 3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: middle;
}

.prop-portfolio-table:not(.prop-portfolio-table--has-expanded-row) thead tr.prop-portfolio-head-groups th.prop-portfolio-col--chart-select,
.prop-portfolio-table:not(.prop-portfolio-table--has-expanded-row) thead tr.prop-portfolio-head-groups th.prop-portfolio-col--property {
  z-index: 5;
}

.prop-portfolio-table thead tr.prop-portfolio-head-groups th.prop-portfolio-col-group {
  padding: 4px 4px 2px !important;
  height: var(--prop-portfolio-group-head-h, 1.35em);
  box-sizing: border-box;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-2, var(--ui-text-muted, #9aa3ad));
}

.prop-portfolio-table thead tr.prop-portfolio-head-groups th.prop-portfolio-col--metric {
  color: var(--portfolio-type-color, var(--c-text));
  font-size: var(--portfolio-type-size, var(--t-12));
}

.prop-portfolio-col-group__label {
  display: block;
  font-weight: 400;
  letter-spacing: inherit;
  line-height: 1.2;
}

.prop-portfolio-col-group__filter {
  display: inline;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.prop-portfolio-col-group__filter-kicker {
  color: var(--c-text-3, #818284);
  letter-spacing: 0.06em;
}

.prop-portfolio-col-group__filter-scope {
  color: var(--c-text-2, #bababb);
  margin-right: 0.15em;
}

.prop-portfolio-col-group__filter .prop-portfolio-room-change__sold,
.prop-portfolio-col-group__filter .prop-portfolio-room-change__returned,
.prop-portfolio-col-group__filter .prop-portfolio-room-change__total,
.prop-portfolio-th-label .prop-portfolio-room-change__sold,
.prop-portfolio-th-label .prop-portfolio-room-change__returned,
.prop-portfolio-th-label .prop-portfolio-room-change__total {
  font-weight: 400;
}

.prop-portfolio-col-group__sep {
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
  opacity: 0.7;
}

.prop-portfolio-col-group__metric {
  letter-spacing: 0.04em;
  text-transform: none;
}

.prop-portfolio-col-group--sort-active .prop-portfolio-col-group__metric {
  color: var(--sel-fg-active);
}

.prop-portfolio-col-group--sort-active .prop-portfolio-col-group__metric .prop-portfolio-th-delta {
  color: var(--c-delta);
}

.prop-portfolio-col-group__sort-indicator {
  margin-left: 0.28em;
  font-size: 0.95em;
  color: var(--sel-fg-active);
  opacity: 0.95;
}

.prop-portfolio-table thead tr.prop-portfolio-head-labels th {
  top: var(--prop-portfolio-group-head-h, 1.35em);
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--portfolio-type-size, var(--t-12));
  color: var(--portfolio-type-color, var(--c-text));
}

.prop-cockpit-tabs > .room-filter-back-region-btn {
  flex: 0 0 auto;
  align-self: center;
  margin-right: var(--s-1, 4px);
}

.prop-portfolio-table--has-expanded-row #propPortfolioTableHead {
  display: none;
}

/* PropertyData drilled strips always visible (list toggles only hide non-drilled rows). */
tr.prop-portfolio-timeline-row--drilled {
  display: table-row !important;
}

.prop-portfolio-detail__availability,
.prop-portfolio-detail__aggregated {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin: 0;
  min-width: 0;
  max-width: 100%;
}

.prop-portfolio-detail__availability-row {
  display: flex;
  align-items: stretch;
  gap: var(--s-2);
  min-width: 0;
}

.prop-portfolio-detail__aggregated-row {
  display: flex;
  align-items: stretch;
  gap: var(--s-2);
  min-width: 0;
}

.prop-portfolio-detail__aggregated-delta {
  flex: 0 0 auto;
  width: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
}

.prop-portfolio-detail__availability-row .prop-portfolio-ex-info-stack {
  flex: 0 0 auto;
  width: 2.5rem;
  justify-content: center;
}

.prop-portfolio-detail__availability-row .prop-cockpit__source-los-slot {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}

/* Nested under cube chart: EX labels in Y gutter, cells match plot width. */
#propAvailabilityChartBlock .prop-portfolio-detail__availability {
  gap: 2px;
  margin: 0;
  padding: 0 0 6px;
  background: transparent;
}

#propAvailabilityChartBlock .prop-portfolio-detail__availability-heading.prop-portfolio-chart-heading {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--s-2);
  padding: 2px 4px 0 var(--day-plot-left, var(--avail-los-left, 4px));
  margin: 0;
  min-width: 0;
}

#propAvailabilityChartBlock .prop-portfolio-detail__availability-heading .prop-portfolio-chart-title {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.25;
  white-space: nowrap;
  flex: 0 0 auto;
}

#propAvailabilityChartBlock .prop-portfolio-detail__availability-row {
  display: grid;
  grid-template-columns: var(--day-plot-left, var(--avail-los-left, 2.5rem)) minmax(0, 1fr) var(--day-plot-right, var(--avail-los-right, 0px));
  gap: 0;
  align-items: stretch;
}

#propAvailabilityChartBlock .prop-portfolio-detail__availability-row .prop-portfolio-ex-info-stack {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  flex: none;
  justify-content: center;
  align-items: stretch;
  padding: 2px 4px 4px 0;
  box-sizing: border-box;
  overflow: hidden;
  text-align: right;
}

#propAvailabilityChartBlock .prop-portfolio-detail__availability-row .prop-cockpit__source-los-slot {
  grid-column: 2;
  min-width: 0;
  padding: 2px 0 4px;
}

#propAvailabilityChartBlock .prop-portfolio-detail__aggregated {
  gap: 2px;
  margin: 0;
  padding: 0 0 6px;
  background: transparent;
}

#propAvailabilityChartBlock .prop-portfolio-detail__aggregated-heading.prop-portfolio-chart-heading {
  padding: 2px 4px 0 var(--day-plot-left, var(--avail-los-left, 4px));
  margin: 0;
}

#propAvailabilityChartBlock .prop-portfolio-detail__aggregated-heading .prop-portfolio-chart-title,
#propAvailabilityChartBlock .prop-portfolio-detail__aggregated-heading .prop-portfolio-chart-subtitle {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.25;
}

#propAvailabilityChartBlock .prop-portfolio-detail__aggregated-row {
  display: grid;
  grid-template-columns: var(--day-plot-left, var(--avail-los-left, 2.5rem)) minmax(0, 1fr) var(--day-plot-right, var(--avail-los-right, 0px));
  gap: 0;
  align-items: stretch;
}

#propAvailabilityChartBlock .prop-portfolio-detail__aggregated-delta {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 2px 4px 4px 0;
  box-sizing: border-box;
  font-size: var(--delta-mark-size);
  line-height: 1;
}

#propAvailabilityChartBlock .prop-portfolio-detail__aggregated-delta .prop-portfolio-th-delta {
  font-size: inherit;
  font-weight: 600;
}

#propAvailabilityChartBlock .prop-portfolio-detail__aggregated-row .prop-portfolio-daystrip {
  grid-column: 2;
  min-width: 0;
  width: 100%;
}

.prop-cockpit-rates > .prop-portfolio-detail__availability,
.prop-cockpit-rates > .prop-portfolio-detail__aggregated {
  background: var(--c-surface);
  padding: var(--s-2);
  box-sizing: border-box;
}

.prop-cockpit-rates > .prop-portfolio-detail__strips-heading {
  margin-top: var(--s-1);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-border);
}

/* Rates: one surface under the cube — capacity EX lines + expandable sold/canceled detail */
.prop-portfolio-rates-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 4px 0 6px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border-top: 1px solid var(--c-border, rgba(255, 255, 255, 0.12));
  background: transparent;
}

.prop-portfolio-rates-stack .prop-portfolio-detail__availability,
.prop-portfolio-rates-stack .prop-portfolio-detail__aggregated,
.prop-portfolio-rates-stack .prop-portfolio-detail__strips {
  background: transparent;
  padding: 0;
  margin: 0;
  gap: 2px;
}

#propAvailabilityChartBlock .prop-portfolio-rates-stack .prop-portfolio-detail__availability,
#propAvailabilityChartBlock .prop-portfolio-rates-stack .prop-portfolio-detail__aggregated {
  padding: 0;
  margin: 0;
}

.prop-portfolio-rates-ex-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.prop-portfolio-rates-ex-detail[hidden] {
  display: none !important;
}

.prop-portfolio-rates-stack .prop-portfolio-detail__strips-heading {
  margin: 0;
  padding: 2px 0 0;
  border: 0;
  background: transparent;
}

/* No per-row hairlines inside the unified stack — group rail on rooms list */
.prop-portfolio-rates-stack .prop-portfolio-detail__room-row {
  border-top: none;
  border-bottom: none;
}

.prop-portfolio-rates-stack .prop-portfolio-detail__room-row--chart-hover,
.prop-portfolio-rates-stack .prop-portfolio-detail__room-row--solo,
.prop-portfolio-rates-stack .prop-portfolio-detail__room-row--selected,
.prop-portfolio-rates-stack
  .prop-portfolio-detail__room-row--solo.prop-portfolio-detail__room-row--chart-hover,
.prop-portfolio-rates-stack
  .prop-portfolio-detail__room-row--selected.prop-portfolio-detail__room-row--chart-hover {
  border-top: none;
  border-bottom: none;
}

.prop-portfolio-rates-stack .prop-portfolio-strip-info--ex,
.prop-portfolio-rates-stack .prop-ex-n-parent[data-rates-ex-toggle],
.prop-portfolio-rates-stack .prop-ex-mode-los-strips__row[data-rates-ex-toggle] {
  cursor: pointer;
}

.prop-portfolio-rates-stack .prop-portfolio-strip-info--ex {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: right;
  line-height: 1;
}

.prop-portfolio-rates-stack .prop-portfolio-strip-info--ex:hover,
.prop-portfolio-rates-stack .prop-ex-mode-los-strips__row[data-rates-ex-toggle]:hover .prop-source-los__strip {
  filter: brightness(1.12);
}

.prop-portfolio-rates-stack .prop-portfolio-strip-info--ex:focus-visible,
.prop-portfolio-rates-stack .prop-ex-n-parent[data-rates-ex-toggle]:focus-visible,
.prop-portfolio-rates-stack .prop-ex-mode-los-strips__row[data-rates-ex-toggle]:focus-visible {
  outline: 1px solid var(--c-accent, #60a5fa);
  outline-offset: 1px;
}

/* ROOMS LISTED ON NOW — stay-length chips in the title; tree in the checkbox gutter */
.prop-portfolio-detail__availability-heading {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--s-2);
  min-width: 0;
}

.prop-portfolio-availability-title-n {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--s-1);
  flex: 0 0 auto;
}

.prop-portfolio-availability-title-n::before {
  content: '·';
  color: var(--c-text-3);
  font-weight: 400;
}

.prop-portfolio-availability-title-n:empty {
  display: none;
}

.prop-portfolio-availability-title-n:empty::before {
  content: none;
}

.prop-portfolio-availability-title-n__chip {
  font-size: var(--t-12);
  min-height: 22px;
  padding: 0 var(--s-1);
  line-height: 1;
  flex-shrink: 0;
}

#propAvailabilityChartBlock .prop-portfolio-detail__availability-row--tree {
  display: block;
  min-width: 0;
}

#propAvailabilityChartBlock .prop-portfolio-detail__availability-row--tree .prop-cockpit__source-los-slot {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 2px 0 4px;
}

.prop-ex-mode-los-strips--tree {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.prop-ex-n-branch {
  position: relative;
  min-width: 0;
}

.prop-ex-n-parent {
  display: grid;
  grid-template-columns: var(--day-plot-left, var(--avail-los-left, 2.5rem)) minmax(0, 1fr) var(--day-plot-right, var(--avail-los-right, 0px));
  gap: 0;
  align-items: center;
  min-width: 0;
  box-sizing: border-box;
}

.prop-ex-n-parent .prop-portfolio-strip-info--ex {
  grid-column: 1;
  justify-self: end;
  align-self: center;
  padding: 2px 4px 2px 0;
  box-sizing: border-box;
}

.prop-ex-n-parent .prop-source-los__strip {
  grid-column: 2;
  width: 100%;
  min-width: 0;
}

.prop-ex-n-children {
  position: relative;
  min-width: 0;
}

.prop-portfolio-rates-stack .prop-portfolio-detail__room-check {
  justify-self: start;
  margin-right: 0;
}

.prop-portfolio-rates-stack .prop-ex-n-parent:not(.is-active) .prop-source-los__day--los-idle {
  --los-fill: 0;
  background: color-mix(
    in srgb,
    var(--c-text-3, var(--x-text-secondary)) calc(var(--los-fill) * 35%),
    transparent
  );
}

.prop-portfolio-rates-stack .prop-ex-n-parent.is-active .prop-source-los__day--los1 {
  background: color-mix(in srgb, var(--c-pos, var(--x-success)) calc(var(--los-fill) * 100%), transparent);
}

.prop-portfolio-rates-stack .prop-ex-n-parent[data-rates-ex-toggle]:hover .prop-source-los__strip,
.prop-portfolio-rates-stack .prop-portfolio-strip-info--ex:hover {
  filter: brightness(1.12);
}

.prop-cockpit-rates > .prop-portfolio-inline-price,
#propAvailabilityChartBlock + .prop-portfolio-inline-price,
.prop-portfolio-inline-availability + .prop-portfolio-inline-price {
  border-top: 1px solid var(--c-border, rgba(255, 255, 255, 0.12));
  margin-top: 0;
  padding-top: 0;
}

/* Drill: flush cockpit tabs → first chart (no leftover table head / panel pad) */
#propPortfolioSection.is-property-drilled .prop-portfolio-chart-block {
  display: none;
  max-height: none;
  opacity: 1;
  pointer-events: none;
  border: none;
  margin: 0;
  padding: 0;
}

#propPortfolioSection.is-property-drilled .prop-portfolio-table > thead {
  display: none;
}

#propPortfolioSection.is-property-drilled .prop-portfolio-table-wrap,
#propPortfolioSection.is-property-drilled .prop-portfolio-lane-inset.prop-portfolio-table-wrap {
  border-top: none;
  border-radius: 0;
}

#propPortfolioSection.is-property-drilled .prop-cockpit__panels {
  padding-top: 0;
}

/* Empty under-filters row — tabs live on #propCockpitTabsBar now */
#propPortfolioSection.is-property-drilled tr.prop-portfolio-under-filters-row:not(:has([data-cockpit-menu])) {
  display: none !important;
}

#propPortfolioSection.is-property-drilled .prop-portfolio-table--has-expanded-row tr.prop-portfolio-expand td {
  border: none;
  padding: 0 !important;
}

#propPortfolioSection.is-property-drilled #propAvailabilityChartBlock.chart-container,
#propPortfolioSection.is-property-drilled #propPriceBlock .chart-container {
  padding-top: 0;
  border-top: none;
  border-radius: 0;
}

#propPortfolioSection.is-property-drilled #propAvailabilityChartHeading.prop-portfolio-chart-heading,
#propPortfolioSection.is-property-drilled #propPriceChartHeading.prop-portfolio-chart-heading {
  padding-top: 0;
}

.prop-cockpit-rates {
  gap: 0;
}

.prop-cockpit-rates > .prop-portfolio-inline-availability,
.prop-cockpit-rates > .prop-portfolio-inline-price {
  margin: 0;
  padding: 0;
}

.prop-cockpit-rates #propAvailabilityChartBlock.chart-container,
.prop-cockpit-rates #propPriceBlock .chart-container,
.prop-cockpit-rates .prop-portfolio-inline-availability .chart-container,
.prop-cockpit-rates .prop-portfolio-inline-price .chart-container {
  padding-top: 0;
  padding-bottom: 0;
}

#propChartToolbar:empty,
.prop-chart-toolbar:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#propSinglePropertySection > #propAvailabilityChartBlock + #propPriceBlock,
#propSinglePropertySection > .prop-single-property__availability + .prop-single-property__price {
  margin-top: 0;
}

.prop-portfolio-table tbody tr.prop-portfolio-row,
.prop-portfolio-table tbody tr.prop-portfolio-timeline-row,
.prop-portfolio-table tbody tr.prop-portfolio-availability-row {
  cursor: pointer;
}

.prop-portfolio-table tbody tr.prop-portfolio-expand,
.prop-portfolio-table tbody tr.prop-portfolio-under-filters-row {
  cursor: default;
}

.prop-portfolio-table tbody tr.prop-portfolio-row:hover,
.prop-portfolio-table tbody tr.prop-portfolio-row.prop-portfolio-table__active {
  background: transparent;
}

.prop-portfolio-table tbody tr.prop-portfolio-row:hover > td {
  box-shadow: inset 0 1px 0 var(--c-accent), inset 0 -1px 0 var(--c-accent);
  background: transparent;
}

.prop-portfolio-table tbody tr.prop-portfolio-row:hover > td:first-child {
  box-shadow: inset 1px 1px 0 var(--c-accent), inset 0 -1px 0 var(--c-accent);
}

.prop-portfolio-table tbody tr.prop-portfolio-row:hover > td:last-child {
  box-shadow: inset -1px 1px 0 var(--c-accent), inset 0 -1px 0 var(--c-accent);
}

.prop-portfolio-table tbody tr.prop-portfolio-row.prop-portfolio-table__active > td {
  background: var(--sel-bg-active);
  box-shadow: none;
}

.prop-portfolio-table tbody tr.prop-portfolio-row.prop-portfolio-table__active:hover > td {
  background: var(--sel-bg-active);
  box-shadow: inset 0 1px 0 var(--c-accent), inset 0 -1px 0 var(--c-accent);
}

.prop-portfolio-table tbody tr.prop-portfolio-row.prop-portfolio-table__active:hover > td:first-child {
  box-shadow: inset 1px 1px 0 var(--c-accent), inset 0 -1px 0 var(--c-accent);
}

.prop-portfolio-table tbody tr.prop-portfolio-row.prop-portfolio-table__active:hover > td:last-child {
  box-shadow: inset -1px 1px 0 var(--c-accent), inset 0 -1px 0 var(--c-accent);
}

tr.prop-portfolio-expand td,
tr.prop-portfolio-expand:hover td {
  background: var(--c-surface);
}

.prop-portfolio-table tbody tr.prop-portfolio-row td {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  line-height: 1.35;
  vertical-align: middle;
  border-bottom: 1px solid var(--c-border-soft);
  color: var(--portfolio-type-color, var(--c-text));
  font-size: var(--portfolio-type-size, var(--t-12));
  font-variant-numeric: tabular-nums;
}

.prop-portfolio-table .prop-portfolio-col--metric,
.prop-portfolio-table td.prop-portfolio-col--metric {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  text-align: center;
  vertical-align: middle;
}

/* Metrics: absorb leftover; never below content (nowrap body) */
.prop-portfolio-table th.prop-portfolio-col--metric:not(.prop-portfolio-col--chart-select),
.prop-portfolio-table td.prop-portfolio-col--metric:not(.prop-portfolio-col--chart-select) {
  width: auto;
  min-width: 0;
  max-width: none;
  white-space: nowrap;
  box-sizing: border-box;
  padding-left: 4px;
  padding-right: 4px;
}

/* Vertical hairlines between every metric column (header + rows) */
.prop-portfolio-table th.prop-portfolio-col--metric:not(.prop-portfolio-col--chart-select),
.prop-portfolio-table tbody tr.prop-portfolio-row td.prop-portfolio-col--metric:not(.prop-portfolio-col--chart-select) {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Stronger rules at group starts: property|rooms, rooms|price, price|revenue, revenue|cover */
.prop-portfolio-table thead th.prop-portfolio-col-group--rooms,
.prop-portfolio-table thead th.prop-portfolio-col-group--price,
.prop-portfolio-table th.prop-portfolio-col--metric.prop-portfolio-col--ur,
.prop-portfolio-table tbody tr.prop-portfolio-row td.prop-portfolio-col--metric.prop-portfolio-col--ur,
.prop-portfolio-table th.prop-portfolio-col--metric.prop-portfolio-col--p-listed,
.prop-portfolio-table tbody tr.prop-portfolio-row td.prop-portfolio-col--metric.prop-portfolio-col--p-listed,
.prop-portfolio-table th.prop-portfolio-col--metric.prop-portfolio-col--sold-r,
.prop-portfolio-table tbody tr.prop-portfolio-row td.prop-portfolio-col--metric.prop-portfolio-col--sold-r,
.prop-portfolio-table th.prop-portfolio-col--metric.prop-portfolio-col--cover,
.prop-portfolio-table tbody tr.prop-portfolio-row td.prop-portfolio-col--metric.prop-portfolio-col--cover {
  border-left: 2px solid rgba(255, 255, 255, 0.2);
}

/* Multi-line header titles may wrap; body stays nowrap for content floor */
.prop-portfolio-table thead tr.prop-portfolio-head-labels th.prop-portfolio-col--metric:not(.prop-portfolio-col--chart-select),
.prop-portfolio-table thead tr.prop-portfolio-head-groups th.prop-portfolio-col--metric:not(.prop-portfolio-col--chart-select) {
  white-space: normal;
  overflow: visible;
}

.prop-portfolio-table th.prop-portfolio-col--ur .prop-portfolio-th-label,
.prop-portfolio-table th.prop-portfolio-col--u .prop-portfolio-th-label,
.prop-portfolio-table th.prop-portfolio-col--cover .prop-portfolio-th-label,
.prop-portfolio-table th.prop-portfolio-col--sold-pct .prop-portfolio-th-label,
.prop-portfolio-table th.prop-portfolio-col--p-change .prop-portfolio-th-label,
.prop-portfolio-table th.prop-portfolio-col--p-listed .prop-portfolio-th-label,
.prop-portfolio-table th.prop-portfolio-col--p-sold .prop-portfolio-th-label,
.prop-portfolio-table th.prop-portfolio-col--sold-r .prop-portfolio-th-label {
  white-space: normal;
  letter-spacing: 0.02em;
  font-size: var(--portfolio-type-size, var(--t-12));
  line-height: 1.25;
  max-width: none;
}

.prop-portfolio-table th.prop-portfolio-col--u-change .prop-portfolio-th-label {
  white-space: nowrap;
}

.prop-portfolio-th-delta {
  display: inline;
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  color: var(--c-delta);
  text-transform: none;
  vertical-align: -0.05em;
}

/* Canonical Δ size — must follow .prop-portfolio-th-delta (1em reset). */
.mega-oxide-net__delta-lab.prop-portfolio-th-delta {
  font-size: var(--t-14);
  font-weight: 600;
  color: var(--c-accent);
  vertical-align: 0;
}

.prop-portfolio-table th.prop-portfolio-col--ur .prop-portfolio-sort,
.prop-portfolio-table th.prop-portfolio-col--u .prop-portfolio-sort,
.prop-portfolio-table th.prop-portfolio-col--cover .prop-portfolio-sort {
  width: auto;
  max-width: 100%;
}

/* Property: shrink-wrap first; min 250px; never wider than filter; 2-line name wrap */
.prop-portfolio-table th.prop-portfolio-col--property,
.prop-portfolio-table td.prop-portfolio-col--property {
  width: 1%;
  min-width: var(--prop-portfolio-property-col-min, 250px);
  max-width: var(--prop-portfolio-property-col-max, 270px);
  text-align: left;
  overflow: hidden;
  padding-left: 10px !important;
  padding-right: 8px !important;
}

/* Sticky identity columns while metrics scroll horizontally */
.prop-portfolio-table:not(.prop-portfolio-table--has-expanded-row) th.prop-portfolio-col--chart-select,
.prop-portfolio-table:not(.prop-portfolio-table--has-expanded-row) td.prop-portfolio-col--chart-select {
  position: sticky;
  left: 0;
  z-index: 3;
}

.prop-portfolio-table:not(.prop-portfolio-table--has-expanded-row) th.prop-portfolio-col--property,
.prop-portfolio-table:not(.prop-portfolio-table--has-expanded-row) td.prop-portfolio-col--property {
  position: sticky;
  left: var(--prop-portfolio-chart-select-w, 40px);
  z-index: 3;
  background: var(--c-surface-2, var(--x-bg-secondary, #111));
}

.prop-portfolio-table:not(.prop-portfolio-table--has-expanded-row) thead th.prop-portfolio-col--chart-select,
.prop-portfolio-table:not(.prop-portfolio-table--has-expanded-row) thead th.prop-portfolio-col--property {
  z-index: 5;
  background: var(--c-surface-3, var(--x-bg-elevated));
}

.prop-portfolio-table:not(.prop-portfolio-table--has-expanded-row) tbody tr.prop-portfolio-row:hover td.prop-portfolio-col--property {
  background: var(--c-surface-2, var(--x-bg-secondary, #111));
}

.prop-portfolio-table:not(.prop-portfolio-table--has-expanded-row)
  tbody
  tr.prop-portfolio-row.prop-portfolio-table__active
  td.prop-portfolio-col--property {
  background: var(--sel-bg-active);
}

.prop-portfolio-table tbody td.prop-portfolio-col--chart-select--checked {
  background: var(--c-surface-3, var(--x-bg-elevated));
}

.prop-portfolio-chart-select-hit {
  gap: 4px;
}

td.prop-portfolio-col--chart-select--checked .prop-portfolio-row__chart-check {
  accent-color: var(--prop-chart-color, var(--c-accent));
}

.prop-portfolio-chart-select-mark {
  display: none;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: var(--r-sm);
  background: var(--prop-chart-color, transparent);
  border: 1px solid var(--c-border);
  box-sizing: border-box;
}

td.prop-portfolio-col--chart-select--checked .prop-portfolio-chart-select-mark {
  display: block;
}

.prop-portfolio-sort {
  appearance: none;
  border: var(--sel-border);
  background: transparent;
  color: var(--sel-fg);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  padding: 0;
}

.prop-portfolio-chart-mode-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: var(--sel-border);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--sel-fg);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
}

.prop-portfolio-chart-mode-toggle:hover {
  border: var(--sel-border-hover);
  background: transparent;
  color: var(--sel-fg-hover);
}

.prop-portfolio-chart-mode-toggle:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 1px;
}

.prop-portfolio-chart-mode-toggle.is-pct,
.prop-portfolio-chart-mode-toggle[aria-pressed="true"] {
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.prop-portfolio-chart-mode-toggle.is-pct:hover,
.prop-portfolio-chart-mode-toggle[aria-pressed="true"]:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.prop-portfolio-chart-mode-toggle__icon {
  display: block;
  line-height: 1;
  pointer-events: none;
}

.prop-portfolio-sort:hover {
  border: var(--sel-border-hover);
  background: transparent;
  color: var(--sel-fg-hover);
}

/* Table sort buttons: identical rest / hover / selected contract */
.prop-portfolio-table .prop-portfolio-sort.ui-sel,
.prop-portfolio-table th.prop-portfolio-col--metric .prop-portfolio-sort.ui-sel,
.prop-portfolio-table thead tr.prop-portfolio-head-labels th.prop-portfolio-col--metric:not(.prop-portfolio-col--chart-select) > .prop-portfolio-sort.ui-sel,
.prop-portfolio-table thead tr.prop-portfolio-head-groups th.prop-portfolio-col--metric:not(.prop-portfolio-col--chart-select) > .prop-portfolio-sort.ui-sel {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 1.65em;
  margin: 0;
  padding: 2px 4px;
  gap: 4px;
  border: var(--sel-border);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--sel-fg);
  font: inherit;
  font-weight: 400;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  text-align: center;
}

.prop-portfolio-table .prop-portfolio-sort.ui-sel:hover:not(:disabled) {
  border: var(--sel-border-hover);
  background: transparent;
  color: var(--sel-fg-hover);
}

.prop-portfolio-table .prop-portfolio-sort.ui-sel.is-active,
.prop-portfolio-table .prop-portfolio-sort.ui-sel[aria-pressed="true"],
.prop-portfolio-table .prop-portfolio-sort.ui-sel.prop-portfolio-sort--active {
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.prop-portfolio-table .prop-portfolio-sort.ui-sel.is-active:hover:not(:disabled),
.prop-portfolio-table .prop-portfolio-sort.ui-sel[aria-pressed="true"]:hover:not(:disabled),
.prop-portfolio-table .prop-portfolio-sort.ui-sel.prop-portfolio-sort--active:hover:not(:disabled) {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.prop-portfolio-table .prop-portfolio-sort.ui-sel.is-active .prop-portfolio-th-label,
.prop-portfolio-table .prop-portfolio-sort.ui-sel[aria-pressed="true"] .prop-portfolio-th-label,
.prop-portfolio-table .prop-portfolio-sort.ui-sel.prop-portfolio-sort--active .prop-portfolio-th-label {
  color: inherit;
  text-decoration: none;
}

/* Room filter table */
.room-filter-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-12);
  font-family: var(--font-sans);
}

.room-filter-table thead th {
  padding: var(--s-2);
  text-align: left;
  font-size: var(--t-label-size);
  font-weight: var(--t-label-weight);
  letter-spacing: var(--t-label-tracking);
  text-transform: uppercase;
  color: var(--c-text-3);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface-3);
  vertical-align: middle;
}

.room-filter-table tbody td {
  padding: var(--s-2);
  border-bottom: 1px solid var(--c-border-soft);
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

.room-filter-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

#roomFilterContent .room-filter-table--compare,
#roomFilterContent .room-filter-table--compare thead th,
#roomFilterContent .room-filter-table--compare tbody td {
  font-family: var(--font-mono);
  font-size: var(--t-12, 12px);
}

#roomFilterContent .room-filter-table--compare thead th {
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 400;
  border-bottom: none;
}

#roomFilterContent .room-filter-table--compare tbody td {
  border-bottom: none;
  padding: 3px 0;
}

#roomFilterContent .room-filter-table--compare th:last-child,
#roomFilterContent .room-filter-table--compare td:last-child {
  padding-right: 0;
}

#roomFilterContent .room-filter-table--compare thead th:nth-child(3),
#roomFilterContent .room-filter-table--compare thead th:nth-child(4),
#roomFilterContent .room-filter-table--compare thead th:nth-child(5),
#roomFilterContent .room-filter-table--compare tbody td:nth-child(3),
#roomFilterContent .room-filter-table--compare tbody td:nth-child(4),
#roomFilterContent .room-filter-table--compare tbody td:nth-child(5) {
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}

.prop-portfolio-detail__room-row,
#roomFilterContent .room-filter-table__group {
  --room-fill-hover: color-mix(in srgb, var(--room-series-color, var(--x-accent)) 30%, transparent);
  --room-fill-solo: color-mix(in srgb, var(--room-series-color, var(--x-accent)) 22%, transparent);
  --room-fill-solo-hover: color-mix(in srgb, var(--room-series-color, var(--x-accent)) 36%, transparent);
}

/* Room cards: right color rail as ] (top/right/bottom only — no left border) */
#roomFilterContent .room-filter-table--compare tbody.room-filter-table__group {
  position: relative;
}

#roomFilterContent .room-filter-table--compare tbody.room-filter-table__group::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: var(--room-filter-color-gutter, var(--s-3, 12px));
  border-radius: 0;
  border-top: 2px solid var(--room-series-color, var(--x-accent));
  border-right: 2px solid var(--room-series-color, var(--x-accent));
  border-bottom: 2px solid var(--room-series-color, var(--x-accent));
  border-left: none;
  box-shadow: none;
  background: transparent;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 1;
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease,
    background-image 0.12s ease;
}

#roomFilterContent .room-filter-table--compare tbody.room-filter-table__group--chart-hover:not(.room-filter-table__group--solo)::after {
  background: var(--room-fill-hover);
}

#roomFilterContent .room-filter-table--compare tbody.room-filter-table__group--solo::after,
#roomFilterContent .room-filter-table--compare tbody.room-filter-table__group--chart-selected::after {
  background-color: var(--room-series-color);
  box-shadow: none;
  background-image: none;
}

/* Color rails stay 3-sided; row tint matches BY ROOM TYPE (no top/bottom color lines) */
#roomFilterContent .room-filter-table__group--chart-hover td,
#roomFilterContent .room-filter-table--compare tbody.room-filter-table__group--chart-hover:not(.room-filter-table__group--solo) td {
  background: var(--room-fill-hover) !important;
  border-left: none !important;
  border-right: none !important;
}

#roomFilterContent .room-filter-table__group--solo td,
#roomFilterContent .room-filter-table--compare tbody.room-filter-table__group--solo td {
  background: var(--room-fill-solo) !important;
  border-left: none !important;
  border-right: none !important;
}

#roomFilterContent .room-filter-table__group--solo.room-filter-table__group--chart-hover td,
#roomFilterContent .room-filter-table--compare tbody.room-filter-table__group--solo.room-filter-table__group--chart-hover td {
  background: var(--room-fill-solo-hover) !important;
  border-left: none !important;
  border-right: none !important;
}

/* Keep WAS | Δ | NOW rules when room hover/solo clears cell rails. */
#roomFilterContent .room-filter-table--compare thead th:nth-child(4),
#roomFilterContent .room-filter-table--compare thead th:nth-child(5),
#roomFilterContent .room-filter-table--compare tbody td:nth-child(4),
#roomFilterContent .room-filter-table--compare tbody td:nth-child(5),
#roomFilterContent .room-filter-table--compare tbody.room-filter-table__group--chart-hover td:nth-child(4),
#roomFilterContent .room-filter-table--compare tbody.room-filter-table__group--chart-hover td:nth-child(5),
#roomFilterContent .room-filter-table--compare tbody.room-filter-table__group--solo td:nth-child(4),
#roomFilterContent .room-filter-table--compare tbody.room-filter-table__group--solo td:nth-child(5) {
  border-left: 1px solid var(--c-border) !important;
}

#roomFilterContent .room-filter-table__group--chart-hover tr:first-child td,
#roomFilterContent .room-filter-table__group--chart-hover .room-filter-table__group-end td,
#roomFilterContent .room-filter-table__group--solo tr:first-child td,
#roomFilterContent .room-filter-table__group--solo .room-filter-table__group-end td {
  border-top: none !important;
  border-bottom: none !important;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__group--chart-hover tr:first-child td,
#roomFilterContent .room-filter-table--compare .room-filter-table__group--chart-hover .room-filter-table__group-end td,
#roomFilterContent .room-filter-table--compare .room-filter-table__group--solo tr:first-child td,
#roomFilterContent .room-filter-table--compare .room-filter-table__group--solo .room-filter-table__group-end td {
  border-top: none;
  border-bottom: none;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__th-gutter,
#roomFilterContent .room-filter-table--compare td.room-filter-table__gutter,
#roomFilterContent .room-filter-table--compare .room-filter-table__th-gutter--select,
#roomFilterContent .room-filter-table--compare td.room-filter-table__gutter--select {
  width: var(--room-filter-color-gutter, var(--s-3, 12px));
  padding: 0;
  border: none !important;
  vertical-align: middle;
  text-align: center;
}

#roomFilterContent .room-filter-table--compare input.room-filter-table__guest-cb {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  visibility: hidden;
  box-sizing: border-box;
  width: var(--room-filter-color-gutter, var(--s-3, 12px));
  height: var(--room-filter-color-gutter, var(--s-3, 12px));
  margin: 0 auto;
  border: 2px solid var(--room-series-color, var(--x-accent));
  border-radius: var(--r-sm);
  background: transparent;
  vertical-align: middle;
  cursor: pointer;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__group--solo input.room-filter-table__guest-cb,
#roomFilterContent .room-filter-table--compare .room-filter-table__group--chart-hover input.room-filter-table__guest-cb {
  visibility: visible;
}

#roomFilterContent .room-filter-table--compare tbody.room-filter-table__group:not(.room-filter-table__group--solo):not(.room-filter-table__group--chart-hover) input.room-filter-table__guest-cb {
  background-color: transparent !important;
  background-image: none !important;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__group--solo input.room-filter-table__guest-cb:checked,
#roomFilterContent .room-filter-table--compare .room-filter-table__group--chart-hover input.room-filter-table__guest-cb:checked {
  background-color: var(--room-series-color, var(--x-accent));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.7 9.5 3.8' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__group--solo input.room-filter-table__guest-cb.room-filter-table__series-cb--light:checked,
#roomFilterContent .room-filter-table--compare .room-filter-table__group--chart-hover input.room-filter-table__guest-cb.room-filter-table__series-cb--light:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.7 9.5 3.8' fill='none' stroke='%23111827' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#roomFilterContent .room-filter-table--compare input.room-filter-table__room-cb {
  display: none;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__tier-line--label-only {
  padding-left: 0;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__facilities {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__section-title,
#roomFilterContent .room-filter-table--compare .room-filter-table__room-title-text,
#roomFilterContent .room-filter-table--compare .room-filter-table__property-title {
  font-family: var(--font-mono);
  font-size: var(--t-12, 12px);
}

#roomFilterContent .room-filter-table--compare .room-filter-table__section-title {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0 0.5em;
  min-width: 0;
  width: 100%;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__property-title {
  color: var(--c-text);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__room-title-text {
  /* Shrink to fit; do not grow — keeps SOLD OUT beside the name, not under NOW */
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  color: var(--c-text);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__group--chart-hover .room-filter-table__room-title-text,
#roomFilterContent .room-filter-table--compare .room-filter-table__group--solo .room-filter-table__room-title-text {
  color: var(--c-text);
  font-weight: 600;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__sold-out,
#roomFilterContent .room-filter-table--compare .room-filter-table__unlisted,
#roomFilterContent .room-filter-table--compare .prop-portfolio-detail__room-status {
  flex: 0 0 auto;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__sold-out,
#roomFilterContent .room-filter-table--compare .room-filter-table__unlisted {
  white-space: nowrap;
}

#roomFilterContent .room-filter-table--compare .prop-portfolio-detail__room-status {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__sold-out,
#roomFilterContent .room-filter-table--compare .room-filter-table__unlisted,
#roomFilterContent .room-filter-table--compare .prop-portfolio-detail__room-status {
  color: var(--c-text-3);
}

#roomFilterCompareHead th {
  font-size: var(--t-10, 10px);
  font-weight: 400;
  color: var(--c-text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: none;
  border-bottom: 1px solid color-mix(in srgb, var(--c-text-3) 28%, transparent);
}

#roomFilterContent .room-filter-table--compare #roomFilterCompareHead th {
  border-bottom: 1px solid color-mix(in srgb, var(--c-text-3) 28%, transparent);
}

#roomFilterCompareHead .room-filter-table__th-tier {
  text-align: left;
  vertical-align: bottom;
  padding-bottom: 2px;
}

#roomFilterCompareHead .room-filter-table__head-links {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

#roomFilterCompareHead .room-filter-table__head-links .room-filter-show-all-bar__links-menu {
  top: 100%;
  left: 0;
  right: auto;
  margin-top: 2px;
  transform: none;
}

#roomFilterCompareHead .room-filter-table__th-past,
#roomFilterCompareHead .room-filter-table__th-pchange,
#roomFilterCompareHead .room-filter-table__th-Today {
  text-align: center;
}

#roomFilterCompareHead .room-filter-table__th-past .room-filter-table__th-label {
  color: var(--c-text-3);
}

#roomFilterCompareHead .room-filter-table__th-pchange .room-filter-table__th-label {
  color: var(--c-text-3);
}

#roomFilterCompareHead .room-filter-table__th-Today .room-filter-table__th-label,
#roomFilterCompareHead .room-filter-table__th-Today .room-filter-table__th-sub {
  color: var(--c-text);
}

.delta-up {
  color: var(--c-pos);
  font-weight: 400;
}

.delta-down {
  color: var(--c-neg);
  font-weight: 400;
}

.room-filter-table--compare .room-filter-table__delta .delta-up {
  color: var(--c-pos);
}

.room-filter-table--compare .room-filter-table__delta .delta-down {
  color: var(--c-neg);
}

/* Room batches: separator after each room block; white name, gray body except NOW */
#roomFilterContent .room-filter-table--compare .room-filter-table__room-name-row td {
  padding-top: 6px;
  padding-bottom: 1px;
  border-bottom: none;
  color: var(--c-text);
}

#roomFilterContent .room-filter-table--compare .room-filter-table__group + .room-filter-table__group
  .room-filter-table__room-name-row td {
  padding-top: 8px;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__group-end > td {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border-soft);
}

#roomFilterContent .room-filter-table--compare .room-filter-table__room-avail-row td,
#roomFilterContent .room-filter-table--compare .room-filter-table__rate-row td,
#roomFilterContent .room-filter-table--compare .room-filter-table__avail-row td {
  padding-top: 3px;
  padding-bottom: 3px;
  line-height: 1.35;
}

/* Guest tiers: tighter row rhythm; keep rooms → first guest gap */
#roomFilterContent .room-filter-table--compare
  .room-filter-table__rate-row:not(.room-filter-table__room-avail-row):not(.room-filter-table__condition-row) > td {
  vertical-align: middle;
}

#roomFilterContent .room-filter-table--compare
  .room-filter-table__rate-row:not(.room-filter-table__room-avail-row):not(.room-filter-table__condition-row):not(.room-filter-table__group-end) > td {
  padding-top: 1px;
  padding-bottom: 1px;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__rate-row:not(.room-filter-table__room-avail-row):not(.room-filter-table__group-end) td,
#roomFilterContent .room-filter-table--compare .room-filter-table__rate-row:not(.room-filter-table__room-avail-row):not(.room-filter-table__group-end) .room-filter-table__tier-cell {
  padding-top: 1px;
  padding-bottom: 1px;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__room-avail-row + .room-filter-table__rate-row td,
#roomFilterContent .room-filter-table--compare .room-filter-table__room-avail-row + .room-filter-table__rate-row .room-filter-table__tier-cell {
  padding-top: 3px;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__rate-row .room-filter-table__rate-guest,
#roomFilterContent .room-filter-table--compare .room-filter-table__room-avail-row .room-filter-table__avail-label,
#roomFilterContent .room-filter-table--compare .room-filter-table__rate-row .room-filter-table__rate-price,
#roomFilterContent .room-filter-table--compare .room-filter-table__room-avail-row .room-filter-table__room-inventory {
  line-height: 1.35;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__tier-cell {
  padding-top: 1px;
  padding-bottom: 1px;
  min-width: 0;
  overflow: visible;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__room-avail-row .room-filter-table__tier-cell,
#roomFilterContent .room-filter-table--compare .room-filter-table__room-avail-row + .room-filter-table__rate-row .room-filter-table__tier-cell {
  padding-top: 3px;
  padding-bottom: 3px;
}

/* Rate-condition rows/tags: hidden unless ☰ toggle is on (flex on tier-line overrides [hidden]). */
#roomFilterContent .room-filter-table--compare .room-filter-table__rate-k-line[hidden],
#roomFilterContent .room-filter-table--compare .room-filter-table__condition-row[hidden] {
  display: none !important;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__tier-line {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: visible;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__avail-label,
#roomFilterContent .room-filter-table--compare .room-filter-table__rate-guest {
  display: block;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: normal;
  font-family: inherit;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__tier-line .room-filter-table__rate-guest {
  flex: 1 1 0;
}
#roomFilterContent .room-filter-table--compare .room-filter-table__avail-label .room-filter-table__avail-count {
  color: var(--c-text);
}

#roomFilterContent .room-filter-table--compare tbody td:nth-child(2) .room-filter-table__avail-label,
#roomFilterContent .room-filter-table--compare tbody td:nth-child(2) .room-filter-table__rate-guest {
  color: var(--c-text-3);
}

/* WAS column always gray; NOW column always white */
#roomFilterContent .room-filter-table--compare tbody td:nth-child(3),
#roomFilterContent .room-filter-table--compare tbody td:nth-child(3) .room-filter-table__room-inventory,
#roomFilterContent .room-filter-table--compare tbody td:nth-child(3).room-filter-table__rate-price,
#roomFilterContent .room-filter-table--compare .room-filter-table__rate-price--overlay {
  color: var(--c-text-3);
}

#roomFilterContent .room-filter-table--compare tbody td:nth-child(4),
#roomFilterContent .room-filter-table--compare tbody td:nth-child(4) .room-filter-table__room-inventory,
#roomFilterContent .room-filter-table--compare tbody td:nth-child(4).room-filter-table__rate-price,
#roomFilterContent .room-filter-table--compare tbody td:nth-child(4).room-filter-table__delta {
  color: var(--c-text-3);
}

#roomFilterContent .room-filter-table--compare tbody td:nth-child(5),
#roomFilterContent .room-filter-table--compare tbody td:nth-child(5) .room-filter-table__room-inventory,
#roomFilterContent .room-filter-table--compare tbody td:nth-child(5).room-filter-table__rate-price {
  color: var(--c-text);
}

#roomFilterContent .room-filter-table--compare tbody td.room-filter-table__rate-price,
#roomFilterContent .room-filter-table--compare tbody td.room-filter-table__delta {
  text-align: center;
}

#roomFilterContent .room-filter-table--compare .room-filter-table__room-inventory {
  text-align: center;
}

/* Market pulse / intel slots */
.room-filter-intel,
.room-filter-region-intel,
.room-filter-day-brief,
.room-filter-market-pulse {
  padding: var(--s-3);
  border-bottom: 1px solid var(--c-border);
}

.room-filter-market-pulse {
  background: var(--c-bg);
}

/* Chart heading INFO+seg: shared via .prop-chart-heading-controls (see above) */

/* Explainer details */
.prop-cockpit-explainer {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  padding: var(--s-2) var(--s-3);
  color: var(--c-text-2);
  font-size: var(--t-12);
}

.prop-cockpit-explainer summary {
  cursor: pointer;
  color: var(--c-text-3);
  font-weight: 600;
}

.prop-cockpit-explainer[open] summary {
  color: var(--c-accent);
  margin-bottom: var(--s-2);
}

/* PRO → Design System (embedded styleguide) */
.styleguide-tab {
  padding: 0;
  margin: 0;
  height: calc(100vh - var(--app-header-h));
  overflow: hidden;
  background: var(--c-bg);
}

.styleguide-tab__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Property layout grid */
#PropertyData.tabcontent,
.property-tab-layout {
  background: var(--c-bg);
  font-family: var(--font-sans);
  font-size: var(--t-12);
  font-weight: 400;
}

#PropertyData .prop-portfolio-table {
  font-size: var(--t-12);
  --portfolio-type-size: var(--t-12);
  --portfolio-name-color: var(--c-text-2, var(--x-text-secondary, #9aa3ad));
}

body.property-tab-room-filter-visible #PropertyData .property-main,
#propMainColumn {
  min-width: 0;
}

/* Panel dropdowns */
.property-selector-dropdown,
.panel-header {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  animation: oxide-menu-in var(--ease-expand-fade);
}

@keyframes oxide-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prop-region-picker__item,
.prop-date-picker__item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: var(--t-13, 13px);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.prop-region-picker__item--active {
  color: var(--sel-fg-active);
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
}

.prop-region-picker__item--active:hover {
  border: var(--sel-border-hover);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.prop-date-picker.property-selector-dropdown {
  max-height: min(50vh, 320px);
  overflow-y: auto;
  z-index: 1200;
}

.panel-header {
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border-bottom: 1px solid var(--c-border);
  padding: var(--s-3) var(--s-4);
}

.panel-close {
  width: 28px;
  height: 28px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-text-2);
}

.room-filter-market-pulse,
.room-filter-market-pulse--war-room {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.room-filter-market-pulse__hero {
  padding: var(--s-4);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
  box-shadow: var(--sh-2);
}

.room-filter-market-pulse__hero-date {
  margin: 0 0 var(--s-1);
  font-size: var(--t-12);
  color: var(--c-text-3);
}

.room-filter-market-pulse__hero-headline {
  margin: 0 0 var(--s-3);
  font-size: var(--t-20);
  font-weight: 700;
  color: var(--c-text);
}

.room-filter-market-pulse__hero-pct {
  color: var(--c-accent);
  font-variant-numeric: tabular-nums;
}

.room-filter-market-pulse__progress {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--c-bg);
  overflow: hidden;
  margin-bottom: var(--s-2);
}

.room-filter-market-pulse__progress-fill {
  height: 100%;
  background: var(--c-accent);
  border-radius: var(--r-pill);
}

.room-filter-market-pulse__kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2);
}

.room-filter-market-pulse__kpi {
  padding: var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
}

.room-filter-market-pulse__kpi-label {
  display: block;
  font-size: var(--t-label-size);
  font-weight: var(--t-label-weight);
  letter-spacing: var(--t-label-tracking);
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: 2px;
}

.room-filter-market-pulse__kpi-value {
  font-size: var(--t-16);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--c-text);
}

.room-filter-market-pulse__sold { color: var(--c-pos); }
.room-filter-market-pulse__returned { color: var(--c-neg); }

.room-filter-market-pulse__board {
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
  box-shadow: var(--sh-2);
  padding: var(--s-3);
}

.room-filter-market-pulse__board-title {
  margin: 0 0 var(--s-2);
  font-size: var(--t-label-size);
  font-weight: var(--t-label-weight);
  letter-spacing: var(--t-label-tracking);
  text-transform: uppercase;
  color: var(--c-text-2);
}

.room-filter-market-pulse__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-2);
  width: 100%;
  padding: var(--s-2);
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-text);
  text-align: left;
  font-size: var(--t-12);
}

.room-filter-market-pulse__row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.prop-portfolio-chart-wrapper {
  position: relative;
  height: var(--chart-portfolio-h, 275px);
  background: var(--chart-bg);
}

/* External HTML tooltip only — block leaked Chart.js native tooltip. */
.prop-portfolio-chart-wrapper .chartjs-tooltip {
  display: none !important;
}

.chart-wrapper[data-chart-resize] {
  position: relative;
}

.prop-chart-resize-handle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  /* Above sticky portfolio thead so an oversized chart can still be grabbed. */
  z-index: 30;
  cursor: ns-resize;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prop-chart-resize-handle::after {
  content: '';
  width: 36px;
  height: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-text-3, #9ca3af) 55%, transparent);
}

.prop-chart-resize-handle:hover::after,
.prop-chart-resize-handle:focus-visible::after {
  background: var(--c-text-2, #e5e7eb);
}

body.prop-chart-resizing {
  cursor: ns-resize !important;
  user-select: none !important;
}

.room-filter-market-pulse__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--c-text-2);
}

.prop-horizon-stack:focus-within .prop-horizon-mark,
.prop-target-stack:focus-within .prop-target-mark,
.prop-nav-prop-btn[aria-expanded="true"] .prop-selected-mark {
  color: inherit;
  box-shadow: none;
}

.prop-portfolio-ex-mode__btn.is-active {
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.prop-portfolio-chart-mode__btn.is-active {
  border: var(--sel-border-active);
  background: var(--sel-bg-active);
  color: var(--sel-fg-active);
}

.prop-today-mark {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: none;
  box-shadow: none;
  background: transparent;
  color: inherit;
}

.prop-selected-mark {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-shadow: none;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.prop-cockpit-rates > .prop-portfolio-detail__strips,
.prop-portfolio-detail__strips {
  padding-left: 0;
  padding-right: 0;
}

.prop-cockpit-rates > .prop-portfolio-detail__strips-heading,
.prop-portfolio-detail__strips-heading {
  display: grid;
  grid-template-columns: var(--day-plot-left, var(--avail-los-left, 2.5rem)) minmax(0, 1fr) var(--day-plot-right, var(--avail-los-right, 0px));
  column-gap: 0;
  align-items: start;
  padding-left: 0;
}

.prop-portfolio-detail__strips-heading-text {
  grid-column: 2;
  min-width: 0;
}

.prop-portfolio-detail__room-card-name .room-filter-table__sold-out {
  color: var(--c-warn);
}

/* Gray group rail (cube border) through all BY ROOM TYPE rows */
.prop-portfolio-detail__room-group {
  position: relative;
}

.prop-portfolio-detail__room-group::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(
    var(--day-plot-left, var(--avail-los-left, 2.5rem)) - 6px -
      var(--room-filter-color-gutter, var(--s-3, 12px))
  );
  width: 2px;
  background: var(--c-border);
  pointer-events: none;
  z-index: 0;
}

.prop-portfolio-detail__rooms {
  position: relative;
}

.prop-portfolio-detail__room-row {
  display: grid;
  grid-template-columns: var(--day-plot-left, var(--avail-los-left, 2.5rem)) minmax(0, 1fr) var(--day-plot-right, var(--avail-los-right, 0px));
  column-gap: 0;
  row-gap: 0;
}

/* Per-row colored [ rails removed — group line on .prop-portfolio-detail__rooms */
.prop-portfolio-detail__room-row::before {
  content: none;
  display: none;
}

.prop-portfolio-detail__room-check {
  grid-column: 1;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--room-filter-color-gutter, var(--s-3, 12px));
  margin-right: 6px;
  z-index: 1;
  cursor: pointer;
}

.prop-portfolio-detail__room-check input.prop-portfolio-detail__room-cb {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  margin: 0;
  border: 2px solid var(--room-series-color, var(--x-accent));
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.prop-portfolio-detail__room-row:not(.prop-portfolio-detail__room-row--solo):not(.prop-portfolio-detail__room-row--selected)
  .prop-portfolio-detail__room-check
  input.prop-portfolio-detail__room-cb {
  background-color: transparent !important;
  background-image: none !important;
}

.prop-portfolio-detail__room-row--solo .prop-portfolio-detail__room-check input.prop-portfolio-detail__room-cb:checked,
.prop-portfolio-detail__room-row--selected .prop-portfolio-detail__room-check input.prop-portfolio-detail__room-cb:checked {
  background-color: var(--room-series-color, var(--x-accent));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.7 9.5 3.8' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

.prop-portfolio-detail__room-row--solo
  .prop-portfolio-detail__room-check
  input.prop-portfolio-detail__room-cb.room-filter-table__series-cb--light:checked,
.prop-portfolio-detail__room-row--selected
  .prop-portfolio-detail__room-check
  input.prop-portfolio-detail__room-cb.room-filter-table__series-cb--light:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.7 9.5 3.8' fill='none' stroke='%23111827' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.prop-portfolio-detail__room-row--chart-hover {
  background-color: var(--room-fill-hover);
}

.prop-portfolio-detail__room-row--solo {
  background: var(--room-fill-solo);
}

.prop-portfolio-detail__room-row--selected {
  background: var(--room-fill-solo);
}

.prop-portfolio-detail__room-row--solo.prop-portfolio-detail__room-row--chart-hover,
.prop-portfolio-detail__room-row--selected.prop-portfolio-detail__room-row--chart-hover {
  background-color: var(--room-fill-solo-hover);
}

.prop-portfolio-detail__room-row--chart-hover,
.prop-portfolio-detail__room-row--solo,
.prop-portfolio-detail__room-row--solo.prop-portfolio-detail__room-row--chart-hover,
.prop-portfolio-detail__room-row--selected,
.prop-portfolio-detail__room-row--selected.prop-portfolio-detail__room-row--chart-hover {
  border-top-width: 1px;
  border-bottom-width: 1px;
  border-top-color: rgba(255, 255, 255, 0.22);
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

.prop-portfolio-detail__room-row--chart-hover .prop-portfolio-detail__room-card-name,
.prop-portfolio-detail__room-row--solo .prop-portfolio-detail__room-card-name,
.prop-portfolio-detail__room-row--selected .prop-portfolio-detail__room-card-name {
  color: var(--room-series-color, var(--x-text-primary));
  font-weight: 600;
}

.prop-portfolio-detail__room-line {
  grid-column: 2;
  grid-row: 1;
  padding-left: 0;
  padding-right: 0;
  min-width: 0;
}

.prop-portfolio-detail__room-strip-row {
  display: block;
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

.prop-portfolio-detail__room-strip-row .prop-portfolio-daystrip {
  width: 100%;
  min-width: 0;
}

.prop-portfolio-daystrip__track,
.prop-source-los__strip {
  height: 12px;
  min-height: 12px;
  border-radius: var(--r-sm);
  background: var(--los-fill-min);
  border: 1px solid var(--c-border);
}

.prop-portfolio-daystrip__day,
.prop-source-los__day {
  border-right: 1px solid var(--c-bg);
}

.prop-portfolio-detail__rooms .prop-portfolio-daystrip__day--price-up {
  box-shadow: inset 0 0 0 1px var(--c-pos);
}

.prop-portfolio-detail__rooms .prop-portfolio-daystrip__day--price-down {
  box-shadow: inset 0 0 0 1px var(--c-neg);
}

.prop-source-los__day--los1,
.prop-source-los__day--los2,
.prop-source-los__day--los3,
.prop-source-los__day--los7 {
  --los-fill: 0;
  background: color-mix(
    in srgb,
    var(--los-fill-max) calc(var(--los-fill) * 100%),
    var(--los-fill-min)
  );
}

.prop-source-los__day[class*="--los"] .prop-source-los__day-count {
  color: var(--c-text-2);
  text-shadow: none;
}

/* Sold-out (0): darkest slot on the ramp (--los-fill: 0 → 100% min) */
.prop-source-los__day--sold-out .prop-source-los__day-count {
  color: var(--c-text-3);
}

/* Occupancy step-down recovery: scraped below catalog max adults */
.prop-source-los__day--occupancy-stepdown {
  box-shadow: inset 0 0 0 1px var(--c-text-2);
  outline: 1px dashed var(--c-text-3);
  outline-offset: -3px;
}

.prop-ex-mode-los-strips__row.is-active .prop-source-los__strip {
  outline: 1px solid var(--c-border-strong);
  outline-offset: 0;
}


/* Catalog max decrease candidates (local confirm) */
.inventory-peak-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  margin-left: var(--s-2);
  vertical-align: middle;
}
.inventory-peak-chip__flag,
.inventory-peak-chip__confirm,
.inventory-peak-chip__dismiss {
  display: inline-flex;
  align-items: center;
  min-height: var(--prop-chrome-h, 1.75rem);
  padding: 0 var(--s-2);
  font-size: var(--t-12);
}
.terminal-inventory-peak-r {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-height: var(--prop-chrome-h, 1.75rem);
  padding: 0 var(--s-1);
  font-size: inherit;
}
.terminal-inventory-peak-r__mark,
.terminal-inventory-peak-r__delta {
  color: var(--c-delta);
  font-size: var(--t-12);
}
