@font-face {
  font-family: 'Jost';
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jost-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-tight-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-tight-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-tight-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/inter-tight-latin-800-normal.woff2') format('woff2');
}

:root {
  --bg: #ffffff;
  --surface-subtle: #fafafa;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #8492a6;
  --rule: #e2e8f0;
  --rule-strong: #0f172a;

  --emerald: #15803d;
  --emerald-soft: #f0fdf4;
  --cobalt: #2563eb;
  --cobalt-soft: #eff6ff;
  --teal: #0d9488;
  --teal-soft: #f0fdfa;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --crimson: #dc2626;
  --crimson-soft: #fef2f2;
  --violet: #7c3aed;
  --violet-soft: #f5f3ff;

  --rail-w: 206px;
  --drawer-w: 396px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --font-display: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-ui: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-logo: 'Jost', 'Futura', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}

button, input, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border-radius: 0;
}

button {
  cursor: pointer;
}

/* App Shell */
.app-shell {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  min-height: 100vh;
}

/* Left Rail */
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px 22px;
  background: var(--bg);
  z-index: 20;
}

.wordmark {
  display: block;
  font-family: var(--font-logo);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.06em;
  color: #000000;
  text-decoration: none;
  line-height: 1;
  margin-bottom: 36px;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  border: 0;
  text-align: left;
  padding: 10px 8px;
  margin: 0 -8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 150ms var(--ease), background 150ms var(--ease);
  position: relative;
}

.nav-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  opacity: 0.45;
  transition: opacity 150ms var(--ease), transform 150ms var(--ease);
}

.nav-item:hover {
  color: var(--ink);
  background: #f8fafc;
}

.nav-item:hover .nav-dot {
  opacity: 0.9;
}

.nav-item.active {
  color: #000000;
  font-weight: 700;
  background: #f8fafc;
}

.nav-item.active .nav-dot {
  opacity: 1;
  transform: scale(1.2);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #000000;
}

.rail-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

.property-trigger {
  width: 100%;
  border: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 0;
  transition: opacity 160ms var(--ease);
}

.property-trigger:hover {
  opacity: 0.7;
}

.property-trigger-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cobalt);
}

.property-trigger-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-trigger-meta {
  font-size: 11px;
  color: var(--ink-2);
}

/* Main Workspace */
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.view-pane {
  animation: paneIn 180ms var(--ease);
}

@keyframes paneIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Topbar */
.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 28px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.topbar-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}

.topbar-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.topbar-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.view-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt);
  border-left: 1px solid var(--rule);
  padding-left: 12px;
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Segmented Controls */
.segmented {
  display: inline-flex;
  border: 1px solid var(--rule);
}

.seg-btn {
  border: 0;
  border-right: 1px solid var(--rule);
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

.seg-btn:last-child {
  border-right: 0;
}

.seg-btn:hover {
  color: var(--ink);
  background: #f8fafc;
}

.seg-btn.active {
  background: #000000;
  color: #ffffff;
  font-weight: 700;
}

.segmented-sm .seg-btn {
  padding: 6px 11px;
  font-size: 10px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 35px;
  padding: 0 16px;
  border: 1px solid #000000;
  background: #000000;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 140ms var(--ease), opacity 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease);
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary[aria-pressed="false"] {
  background: #ffffff;
  color: #000000;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 35px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: border-color 160ms var(--ease), background 160ms var(--ease), transform 140ms var(--ease);
}

.btn-secondary:hover {
  border-color: var(--violet);
  background: var(--violet-soft);
  color: var(--violet);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.agent-dot {
  width: 6px;
  height: 6px;
  background: var(--violet);
  display: inline-block;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  display: inline-block;
}

.btn-primary[aria-pressed="false"] .live-dot {
  background: var(--ink-3);
}

.agent-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--violet);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

.link-btn {
  border: 0;
  padding: 4px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: var(--cobalt);
}

.icon-close {
  border: 0;
  width: 28px;
  height: 28px;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-close:hover {
  color: var(--ink);
}

/* Executive KPI Strip */
.kpi-strip {
  display: grid;
  grid-template-columns: 1.55fr repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}

.kpi-summary-cell,
.kpi-cell {
  padding: 18px 22px 16px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  transition: background 180ms var(--ease);
  position: relative;
}

.kpi-cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.kpi-cell[data-kpi="revenue"]::before { background: var(--emerald); }
.kpi-cell[data-kpi="occupancy"]::before { background: var(--cobalt); }
.kpi-cell[data-kpi="adr"]::before { background: var(--amber); }
.kpi-cell[data-kpi="revpar"]::before { background: var(--teal); }

.kpi-cell:last-child {
  border-right: 0;
}

.kpi-cell.flash {
  background: var(--emerald-soft);
}

.cell-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.kicker-violet {
  color: var(--violet);
}

.summary-sentence {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.38;
  color: var(--ink);
  max-width: 34ch;
}

.summary-foot {
  margin-top: 10px;
  font-size: 11px;
  color: var(--emerald);
  font-weight: 600;
}

.kpi-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

.kpi-delta {
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 10px;
}

.kpi-delta.neg {
  color: var(--crimson);
}

.kpi-spark {
  height: 26px;
  width: 100%;
}

/* Grid Rows */
.grid-row {
  display: grid;
  border-bottom: 1px solid var(--rule);
}

.grid-middle {
  grid-template-columns: 1.15fr 1.25fr 0.85fr;
}

.grid-bottom {
  grid-template-columns: 1.15fr 0.95fr 1.15fr;
  border-bottom: 0;
}

.panel {
  padding: 20px 24px 20px;
  border-right: 1px solid var(--rule);
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.panel:last-child {
  border-right: 0;
}

.panel-full {
  border-right: 0;
  border-bottom: 1px solid var(--rule);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title,
.panel-title-link {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 0;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.panel-title-link span {
  color: var(--ink-3);
  transition: transform 150ms var(--ease), color 150ms var(--ease);
}

.panel-title-link:hover {
  color: var(--cobalt);
}

.panel-title-link:hover span {
  color: var(--cobalt);
  transform: translateX(3px);
}

.panel-meta {
  font-size: 11px;
  color: var(--ink-2);
}

.meta-accent {
  color: var(--teal);
  font-weight: 700;
}

.panel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.minimal-select {
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 2px 14px 3px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.text-toggle {
  border: 1px solid var(--rule);
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.text-toggle:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

/* Charts */
.chart-wrap {
  width: 100%;
  height: 196px;
  position: relative;
}

.chart-wrap-sm {
  height: 128px;
}

.chart-wrap-lg {
  height: 270px;
}

.chart-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-2);
}

.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  vertical-align: -1px;
}

.swatch-solid { background: var(--emerald); }
.swatch-forecast { background: var(--cobalt); }
.swatch-prior { background: #cbd5e1; }

.comp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
}

.comp-item {
  border: 0;
  padding: 2px 0;
  font-size: 11px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 140ms var(--ease);
}

.comp-item.self {
  color: var(--ink);
  font-weight: 700;
}

.comp-item.muted {
  opacity: 0.3;
}

.comp-line {
  width: 14px;
  height: 2.5px;
  display: inline-block;
}

/* Direct Share */
.direct-hero {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.direct-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--teal);
}

.direct-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald);
}

.channel-bar {
  display: flex;
  height: 24px;
  width: 100%;
  margin-bottom: 16px;
  border: 1px solid var(--ink);
}

.channel-bar-lg {
  height: 32px;
  margin-bottom: 22px;
}

.channel-seg {
  height: 100%;
  transition: opacity 160ms var(--ease);
  cursor: pointer;
}

.channel-seg:hover {
  opacity: 0.82;
}

.channel-list {
  display: flex;
  flex-direction: column;
}

.channel-row {
  display: grid;
  grid-template-columns: 12px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid var(--rule);
  font-size: 12px;
}

.channel-row:first-child {
  border-top: 0;
}

.channel-dot {
  width: 8px;
  height: 8px;
}

.channel-name {
  font-weight: 500;
}

.channel-pct {
  font-weight: 700;
}

.channel-rev {
  color: var(--ink-2);
  min-width: 64px;
  text-align: right;
}

/* Tables */
.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 8px 10px 0;
  border-bottom: 1px solid var(--ink);
}

.data-table td {
  padding: 11px 8px 11px 0;
  border-bottom: 1px solid var(--rule);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table-clickable tbody tr {
  cursor: pointer;
  transition: background 140ms var(--ease);
}

.data-table-clickable tbody tr:hover {
  background: #f8fafc;
}

.data-table-clickable tbody tr.row-active {
  background: var(--cobalt-soft);
}

.data-table th.num,
.data-table td.num {
  text-align: right;
  padding-right: 18px;
  padding-left: 8px;
}
.data-table th.num:last-child,
.data-table td.num:last-child {
  padding-right: 0;
}

.data-table td.metric-col {
  font-weight: 700;
}

.val-pos {
  color: var(--emerald);
  font-weight: 700;
}

.val-neg {
  color: var(--crimson);
  font-weight: 700;
}

.status-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--emerald);
}

.status-tag.forecast {
  color: var(--cobalt);
}

/* Pick-Up */
.pickup-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pickup-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cobalt);
}

.pickup-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald);
}

.pickup-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  color: var(--ink-2);
}

.pickup-foot strong {
  color: var(--ink);
}

/* Rate Calendar */
.cal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-nav-btn {
  border: 1px solid var(--rule);
  width: 24px;
  height: 24px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cal-nav-btn:hover {
  border-color: var(--ink);
}

.cal-month-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-width: 68px;
  text-align: center;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}

.cal-weekdays span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  padding: 4px 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.cal-cell {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  min-height: 45px;
  padding: 4px 5px 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  position: relative;
  transition: filter 140ms var(--ease), background 140ms var(--ease);
}

.cal-grid-lg .cal-cell {
  min-height: 82px;
  padding: 8px 10px;
}

.cal-cell.heat-low { background: #f8fafc; }
.cal-cell.heat-mid { background: var(--amber-soft); }
.cal-cell.heat-high { background: var(--crimson-soft); }
.cal-cell.updated { background: var(--cobalt-soft); }

.cal-cell.interactive:hover {
  filter: brightness(0.95);
}

.cal-cell.empty {
  background: #ffffff;
  cursor: default;
}

.cal-cell.selected {
  background: #000000 !important;
  color: #ffffff;
}

.cal-cell.event-day .cal-day::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--crimson);
  margin-left: 4px;
  vertical-align: middle;
}

.cal-cell.selected.event-day .cal-day::after {
  background: #fbbf24;
}

.cal-cell-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cal-day {
  font-size: 10px;
  font-weight: 700;
}

.cal-occ-dot {
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-2);
}

.cal-cell.selected .cal-occ-dot {
  color: #cbd5e1;
}

.cal-rate {
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}

.cal-grid-lg .cal-rate {
  font-size: 15px;
  font-weight: 800;
}

.cal-event-mini {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--crimson);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-cell.selected .cal-event-mini {
  color: #fbbf24;
}

.cal-occ-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
}

.cal-editor {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cal-editor-meta {
  font-size: 11px;
}

.cal-editor-meta strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
}

.cal-editor-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-rate-input {
  width: 78px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 4px 2px;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.cal-step-btn {
  border: 1px solid var(--rule);
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 700;
}

.cal-step-btn:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

/* Sub-Views Layouts */
.sub-hero-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}

.sub-hero-cell {
  padding: 18px 24px;
  border-right: 1px solid var(--rule);
}

.sub-hero-cell:last-child {
  border-right: 0;
}

.sub-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  border-bottom: 1px solid var(--rule);
}

/* Room Mix Bars */
.room-cat-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.room-cat-row:last-child {
  border-bottom: 0;
}

.room-cat-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}

.room-cat-head strong {
  font-weight: 700;
}

.room-cat-track {
  height: 8px;
  background: #f1f5f9;
  width: 100%;
  margin-bottom: 5px;
}

.room-cat-fill {
  height: 100%;
}

.room-cat-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-2);
}

/* Comp Set Cards */
.comp-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.comp-card {
  border: 1px solid var(--rule);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.comp-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comp-card-swatch {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.comp-card-name {
  font-weight: 700;
  font-size: 13px;
}

.comp-card-rate {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
}

.comp-card-diff {
  font-size: 11px;
  font-weight: 700;
}

.comp-card-actions {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}

.comp-card-actions button {
  flex: 1;
  border: 1px solid var(--rule);
  padding: 7px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comp-card-actions button:hover {
  border-color: var(--cobalt);
  background: var(--cobalt-soft);
  color: var(--cobalt);
}

/* Direct Shift Simulator */
.sim-copy {
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 18px;
}

.sim-control {
  margin-bottom: 20px;
}

.sim-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.sim-label-row span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

.sim-label-row strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--teal);
}

.sim-slider {
  width: 100%;
  accent-color: var(--teal);
  cursor: pointer;
}

.sim-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.sim-stat {
  padding: 14px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.sim-stat-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.1;
  margin-top: 4px;
}

/* Full Calendar View */
.cal-full-layout {
  display: grid;
  grid-template-columns: 1.65fr 0.9fr;
  min-height: calc(100vh - 82px);
}

.cal-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 11px;
  color: var(--ink-2);
}

.cal-inspector {
  background: #fafafa;
  gap: 16px;
}

.insp-rate-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  line-height: 1;
}

.insp-comp-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.insp-comp-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
}

.insp-rec-box {
  border: 1px solid var(--emerald);
  background: var(--emerald-soft);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Pricing Agent Slide-Over Drawer */
.agent-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--drawer-w);
  height: 100vh;
  background: var(--bg);
  border-left: 1px solid #000000;
  box-shadow: -20px 0 48px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 220ms var(--ease);
  z-index: 40;
}

.app-shell.agent-open .agent-drawer {
  transform: translateX(0);
}

.agent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
}

.agent-head-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.agent-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.agent-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.agent-copy {
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.prompt-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.prompt-btn {
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: padding-left 150ms var(--ease), color 150ms var(--ease);
}

.prompt-btn:hover {
  padding-left: 6px;
  color: var(--violet);
}

.prompt-btn::after {
  content: '\2192';
  color: var(--violet);
  font-size: 13px;
}

.agent-thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg-user {
  align-self: flex-end;
  max-width: 88%;
  background: #000000;
  color: #ffffff;
  padding: 10px 13px;
  font-size: 12px;
  font-weight: 500;
}

.msg-agent {
  border-top: 2px solid var(--violet);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg-agent-text {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.45;
}

.proposal-box {
  border: 1px solid var(--rule);
  background: #fafafa;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proposal-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  gap: 8px;
}

.proposal-row span:first-child {
  color: var(--ink-2);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.proposal-row strong {
  font-weight: 700;
}

.proposal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.proposal-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--emerald);
}

.agent-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--rule);
  background: var(--bg);
}

.agent-input {
  flex: 1;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 7px 0;
  font-size: 13px;
  outline: none;
}

.btn-send {
  height: 32px;
  padding: 0 14px;
}

/* Seeder Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 60;
}

.modal-sheet {
  width: 100%;
  max-width: 640px;
  background: var(--bg);
  border: 1px solid #000000;
  padding: 26px 28px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1;
}

.preset-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.preset-btn {
  border: 1px solid var(--rule);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.preset-btn:hover,
.preset-btn.active {
  border-color: #000000;
  background: #000000;
  color: #ffffff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin-bottom: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.field input,
.field select {
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 6px 0;
  font-size: 13px;
  font-weight: 500;
  outline: none;
}

.field-full {
  margin-bottom: 22px;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Global Chart Tooltip */
.chart-tooltip {
  position: fixed;
  pointer-events: none;
  background: var(--bg);
  border: 1px solid #000000;
  padding: 8px 10px;
  font-size: 11px;
  z-index: 80;
  min-width: 150px;
}

.tt-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
  margin-bottom: 5px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}

.tt-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 0;
}

.tt-row strong {
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1220px) {
  .kpi-strip,
  .sub-hero-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi-summary-cell {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .kpi-cell,
  .sub-hero-cell {
    border-bottom: 1px solid var(--rule);
  }
  .grid-middle,
  .grid-bottom,
  .sub-split,
  .cal-full-layout {
    grid-template-columns: 1fr;
  }
  .comp-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .rail {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 16px 18px;
    gap: 12px;
  }
  .wordmark {
    font-size: 22px;
    margin-bottom: 10px;
  }
  .rail-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 10px;
  }
  .nav-item.active::before {
    display: none;
  }
  .topbar {
    padding: 16px 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .kpi-strip,
  .sub-hero-strip,
  .comp-cards {
    grid-template-columns: 1fr;
  }
  .kpi-cell {
    border-right: 0;
  }
  .panel {
    padding: 18px;
  }
  .agent-drawer {
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Sidebar Group Labels */
.nav-group-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 18px 0 6px;
}

.rail-top > .nav-group-label:first-of-type {
  margin-top: 0;
}

/* Overview Demand Ribbon */
.demand-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--rule);
}

.ribbon-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.ribbon-kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.ribbon-item strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
}

.ribbon-sub {
  font-size: 11px;
  color: var(--ink-2);
}

.ribbon-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Ads Engine */
.inline-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}

.inline-switch input {
  accent-color: #e11d48;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.budget-control-box {
  border: 1px solid var(--rule);
  background: #fafafa;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.slider-rose {
  accent-color: #e11d48;
}

.budget-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-2);
}

.budget-foot strong {
  color: var(--ink);
}

.campaign-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.campaign-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.campaign-row.paused {
  opacity: 0.45;
}

.campaign-name {
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.campaign-desc {
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 2px;
}

.campaign-metric {
  text-align: right;
}

.campaign-metric span {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.campaign-metric strong {
  font-size: 13px;
  font-weight: 800;
}

.campaign-toggle {
  border: 1px solid var(--rule);
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.campaign-toggle.active {
  border-color: var(--emerald);
  background: var(--emerald-soft);
  color: var(--emerald);
}

/* Metasearch Live Preview */
.meta-preview-card {
  border: 1px solid #000000;
  padding: 18px;
  margin-bottom: 16px;
  background: #ffffff;
}

.meta-hotel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 12px;
}

.meta-hotel-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
}

.meta-dates {
  font-size: 11px;
  color: var(--ink-2);
}

.meta-offer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  margin-bottom: 8px;
}

.meta-offer-row:last-child {
  margin-bottom: 0;
}

.meta-offer-row.winner {
  border-color: var(--emerald);
  background: var(--emerald-soft);
}

.meta-offer-left strong {
  display: block;
  font-size: 12px;
}

.meta-offer-left span {
  font-size: 10px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meta-offer-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}

.meta-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Bookings Ledger */
.bookings-filters {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.search-inline {
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 5px 2px;
  font-size: 12px;
  min-width: 190px;
  outline: none;
}

.source-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid var(--rule);
}

.source-pill.ads { border-color: #fda4af; color: #be123c; background: #fff1f2; }
.source-pill.direct { border-color: #5eead4; color: #0f766e; background: #f0fdfa; }
.source-pill.ai { border-color: #c4b5fd; color: #6d28d9; background: #f5f3ff; }
.source-pill.vip { border-color: #fcd34d; color: #b45309; background: #fffbeb; }

.row-flash {
  animation: rowHighlight 1.1s var(--ease);
}

@keyframes rowHighlight {
  0% { background: #dcfce7; }
  100% { background: transparent; }
}

@media (max-width: 1220px) {
  .demand-ribbon {
    grid-template-columns: 1fr 1fr;
  }
  .campaign-row {
    grid-template-columns: 1fr auto;
  }
}

/* Login Gate */
.login-gate {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  border: 1px solid #000000;
  padding: 36px 34px;
  background: #ffffff;
}

.login-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.02;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-submit {
  height: 44px;
  width: 100%;
  margin-top: 6px;
}

.login-error {
  font-size: 12px;
  font-weight: 700;
  color: var(--crimson);
}

/* URL Seeder Box */
.url-seed-box {
  border: 1px solid #000000;
  background: #f8fafc;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.url-seed-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.url-seed-row input {
  flex: 1;
}

.url-seed-status {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cobalt);
}

.url-seed-status.err {
  color: var(--crimson);
}

.url-seed-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.meta-photo-banner {
  width: 100%;
  height: 116px;
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
  border: 1px solid var(--rule);
}
