:root {
  color-scheme: light;
  --bg: #f8f5f6;
  --panel: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #eadde2;
  --brand: #8a1538;
  --brand-dark: #4a071b;
  --blue-soft: #fff1f4;
  --green: #0e9384;
  --amber: #dc6803;
  --red: #d92d20;
  --violet: #6941c6;
  --sidebar-width: 268px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  background:
    linear-gradient(180deg, #ffffff 0, #fff7f8 360px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: grid-template-columns 180ms ease;
  overflow-x: hidden;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 98px 20px 28px;
  background:
    linear-gradient(90deg, rgba(92, 18, 33, 0.92), rgba(123, 28, 46, 0.72), rgba(17, 24, 39, 0.68)),
    url("assets/fullalojamientos-hero.png") center / cover no-repeat,
    var(--brand-dark);
  overflow: hidden;
}

.auth-screen[hidden] {
  display: none;
}

.auth-card {
  width: min(440px, 100%);
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(16, 24, 40, 0.34);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.auth-navbar {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 1;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(74, 7, 27, 0.82);
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.22);
  backdrop-filter: blur(14px);
}

.auth-navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

.auth-navbar-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
}

.auth-navbar-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.auth-navbar-links a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
  text-decoration: none;
}

.auth-navbar-links a:hover {
  color: #fff;
}

.auth-navbar-links .auth-navbar-cta {
  padding: 9px 13px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
}

.auth-card h1,
.auth-card p {
  margin: 0;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.45;
}

.auth-brand {
  color: var(--ink);
}

.auth-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(138, 21, 56, 0.22);
}

.auth-card input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

.secondary-button {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
}

.form-error {
  min-height: 20px;
  color: var(--red);
  font-size: 13px;
  font-weight: 750;
}

.disclaimer {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1849a9;
  font-size: 14px;
  line-height: 1.45;
}

body.public-mode .internal-only {
  display: none !important;
}

body.public-mode #refresh,
body.public-mode #refreshGoogle {
  display: none !important;
}

body.public-mode .private-reservations-only {
  display: none !important;
}

body.public-mode .private-history-only {
  display: none !important;
}

body.sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: var(--sidebar-width);
  height: 100vh;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background:
    linear-gradient(180deg, rgba(138, 21, 56, 0.94), rgba(20, 8, 13, 0.98)),
    #17070d;
  color: #fff;
  box-shadow: 12px 0 32px rgba(16, 24, 40, 0.12);
  transition: transform 180ms ease;
}

body.sidebar-collapsed .sidebar {
  transform: translateX(-100%);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(7, 17, 31, 0.42);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.24));
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 3px;
  color: #98a2b3;
  font-size: 13px;
}

.tabs {
  display: grid;
  gap: 8px;
}

.tab,
.download,
button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 750;
}

.tab {
  padding: 0 12px;
  text-align: left;
  color: #cbd5e1;
  background: transparent;
  cursor: pointer;
}

.tab.active,
.tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.download,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #fff;
  background: var(--brand);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(138, 21, 56, 0.22);
}

.download {
  margin-top: auto;
}

.sidebar-logout {
  width: 100%;
}

body.public-mode .sidebar-logout {
  margin-top: auto;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

main {
  min-width: 0;
  min-height: 100dvh;
  padding: 28px;
  background:
    linear-gradient(180deg, #ffffff 0, #fff7f8 360px),
    var(--bg);
}

.topbar,
.section-title,
.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.topbar {
  align-items: center;
  margin-bottom: 22px;
}

.scrape-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -6px 0 18px;
  padding: 12px 14px;
  border: 1px solid #fedf89;
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  background: #fffcf5;
  color: #7a2e0e;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.scrape-banner[hidden] {
  display: none;
}

.scrape-banner strong {
  color: #7a2e0e;
}

.scrape-banner span {
  color: #93370d;
  font-size: 13px;
  font-weight: 750;
  text-align: right;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 20px;
}

.panel-head p,
.topbar p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.actions,
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status {
  max-width: 420px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-toggle {
  position: fixed;
  top: 18px;
  left: calc(var(--sidebar-width) - 21px);
  z-index: 60;
  width: 42px;
  height: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.2);
  transition: left 180ms ease, transform 180ms ease;
}

.menu-toggle span {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
}

body.sidebar-collapsed .menu-toggle {
  left: 16px;
}

.ghost-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}

.title-with-info {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.info-button {
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(138, 21, 56, 0.32);
  color: var(--brand);
  background: #fff7f8;
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.metric .info-button {
  margin-left: 5px;
  vertical-align: middle;
}

.info-popover {
  position: fixed;
  z-index: 120;
  width: min(320px, calc(100vw - 24px));
  padding: 12px 14px;
  border: 1px solid #3b0a18;
  border-radius: 8px;
  color: #fff;
  background: rgba(32, 9, 18, 0.96);
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.24);
  font-size: 13px;
  line-height: 1.45;
}

.ghost-link.disabled {
  pointer-events: none;
  color: var(--muted);
  background: #f9fafb;
  opacity: 0.7;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metrics.compact {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.metric,
.panel,
.table-wrap,
.day-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.metric {
  min-height: 104px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, #fffafb);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 12px;
  font-size: 27px;
  line-height: 1;
}

.top-profile {
  display: inline-flex;
  align-items: center;
}

.top-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(135deg, var(--brand), #1d0b13);
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.16);
  font-size: 13px;
  font-weight: 950;
}

.public-graph-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.demand-alerts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.demand-alert {
  min-height: 88px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.demand-alert strong,
.demand-alert span {
  display: block;
}

.demand-alert strong {
  color: var(--ink);
  font-size: 14px;
}

.demand-alert span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.demand-alert.high {
  border-color: #fecdca;
  border-left-color: var(--red);
  background: #fffbfa;
}

.demand-alert.medium {
  border-color: #fedf89;
  border-left-color: var(--amber);
  background: #fffcf5;
}

.demand-alert.neutral {
  border-left-color: var(--green);
}

.recommendations-list {
  grid-template-columns: minmax(0, 1fr);
}

.recommendation-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.recommendation-group h3 {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 16px;
}

.recommendation-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
}

.recommendation-summary article {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.recommendation-summary span,
.recommendation-highlight span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.recommendation-summary strong {
  display: block;
  margin-top: 12px;
  font-size: 30px;
  line-height: 1;
}

.recommendation-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.recommendation-highlight.high {
  border-left-color: var(--red);
  background: #fffbfa;
}

.recommendation-highlight strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.recommendation-highlight p {
  margin: 0;
  display: flex;
  justify-content: flex-end;
}

.recommendation-table-wrap {
  margin-top: 0;
}

.recommendation-table td:first-child span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.signal {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ink);
  background: #f2f4f7;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.signal.high {
  color: #b42318;
  background: #fee4e2;
}

.signal.medium {
  color: #b54708;
  background: #fef0c7;
}

.action-badge {
  display: inline-flex;
  align-items: center;
  max-width: 320px;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.action-badge.strong {
  color: #912018;
  border-color: #fecdca;
  background: #fee4e2;
}

.action-badge.moderate {
  color: #93370d;
  border-color: #fedf89;
  background: #fffaeb;
}

.action-badge.watch {
  color: #065986;
  border-color: #b9e6fe;
  background: #f0f9ff;
}

.public-graph-summary[hidden] {
  display: none;
}

.summary-card {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fffafb);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  margin-top: 12px;
  font-size: 30px;
  line-height: 1;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

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

.dashboard-grid .chart-panel:first-child,
.dashboard-grid .chart-panel.wide-chart {
  grid-column: 1 / -1;
}

.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.two-cols .wide-chart {
  grid-column: 1 / -1;
}

.panel {
  padding: 18px;
}

.chart-panel {
  overflow-x: auto;
}

canvas {
  display: block;
  width: 100%;
  height: 360px;
  cursor: pointer;
}

.price-bars-panel canvas,
.average-price-panel canvas {
  min-width: 0;
}

.comparison-stack {
  display: grid;
  gap: 3px;
  min-width: 180px;
  font-size: 12px;
  line-height: 1.25;
}

.comparison-line {
  color: #475467;
  white-space: nowrap;
}

.comparison-line strong {
  color: #344054;
  font-weight: 700;
}

.comparison-line.lower {
  color: #067647;
}

.comparison-line.higher {
  color: #b42318;
}

.notifications {
  display: grid;
  gap: 10px;
}

.notification-menu {
  position: relative;
}

.notification-button {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.notification-button span {
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  margin-left: 8px;
  border-radius: 999px;
  background: #fee4e2;
  color: #b42318;
  font-size: 12px;
}

.notification-dropdown {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  right: 0;
  width: min(380px, calc(100vw - 40px));
  max-height: 440px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.16);
}

.notice {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f9fafb;
}

.notice strong,
.notice span {
  display: block;
}

.notice span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.notice.demand {
  border-color: #fecdca;
  background: #fffbfa;
}

.notice.property {
  border-color: #d9d6fe;
  background: #f4f3ff;
}

.notice.reservation {
  border-color: #abefc6;
  background: #f6fef9;
}

.section-title {
  margin-bottom: 16px;
}

.subsection-title {
  margin: 22px 0 12px;
}

.subsection-title h2,
.subsection-title p {
  margin: 0;
}

.subsection-title p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(86px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.day-card {
  min-height: 92px;
  padding: 12px;
  border-left-width: 4px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.day-card span,
.day-card small,
.day-card em {
  display: block;
  color: var(--muted);
}

.day-card em {
  margin-top: 6px;
  font-size: 12px;
  font-style: normal;
}

.day-card strong {
  display: block;
  margin: 8px 0 5px;
  font-size: 24px;
}

.day-card:hover,
.day-card:focus,
.day-card.selected {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(138, 21, 56, 0.14);
}

.day-card.selected {
  border-color: #d98aa1;
  border-left-color: var(--brand);
  background: #fff1f4;
}

.history-calendar {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

.history-day {
  min-height: 104px;
}

.high {
  border-color: #fecdca;
  border-left-color: var(--red);
}

.medium {
  border-color: #fedf89;
  border-left-color: var(--amber);
}

.normal {
  border-color: #abefc6;
  border-left-color: var(--green);
}

.missing {
  border-color: var(--line);
  border-left-color: #98a2b3;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}

th.sort-asc::after {
  content: " ↑";
}

th.sort-desc::after {
  content: " ↓";
}

tbody tr:hover {
  background: #f9fafb;
}

.clickable-row {
  cursor: pointer;
}

.selected-row {
  background: #fff1f4;
}

.new-row {
  background: #f4f3ff;
}

.mine-row {
  background: #fff1f4;
}

.name {
  max-width: 420px;
  font-weight: 800;
}

.name a {
  color: var(--ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.pill.high {
  color: #b42318;
  background: #fee4e2;
}

.pill.medium {
  color: #b54708;
  background: #fef0c7;
}

.pill.normal {
  color: #067647;
  background: #dcfae6;
}

.pill.missing {
  color: #475467;
  background: #f2f4f7;
}

.pill.new {
  color: #5925dc;
  background: #ebe9fe;
}

.pill.mine {
  color: #8a1538;
  background: #ffe3ea;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
}

.profile-card {
  display: grid;
  align-content: start;
  gap: 18px;
}

.profile-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.profile-photo {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, var(--brand), #1d0b13);
  background-size: cover;
  background-position: center;
  font-size: 34px;
  font-weight: 950;
}

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

.form-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.form-panel input,
.form-panel textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  text-transform: none;
}

.form-panel input[type="file"] {
  padding: 8px;
}

.form-panel textarea {
  resize: vertical;
}

.form-panel input[readonly] {
  background: #f9fafb;
  color: var(--muted);
}

.full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.form-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.tax-note {
  display: inline-block;
  margin-left: 4px;
  color: #b54708;
  font-size: 12px;
  font-weight: 850;
}

.chart-tooltip {
  position: fixed;
  z-index: 100;
  min-width: 150px;
  max-width: min(280px, calc(100vw - 24px));
  padding: 10px 12px;
  border: 1px solid #1d2939;
  border-radius: 8px;
  color: #fff;
  background: rgba(16, 24, 40, 0.94);
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.2);
  pointer-events: none;
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.chart-tooltip strong {
  margin-bottom: 5px;
  font-size: 13px;
}

.chart-tooltip span {
  color: #eaecf0;
  font-size: 12px;
  line-height: 1.45;
}

input[type="search"],
input[type="date"] {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font: inherit;
}

input[type="search"] {
  width: min(340px, 100%);
}

.empty {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.empty.small {
  padding: 16px;
  text-align: left;
}

@media (max-width: 1180px) {
  .metrics,
  .calendar-grid,
  .public-graph-summary,
  .demand-alerts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .recommendation-summary,
  .recommendation-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid,
  .two-cols {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .auth-screen {
    align-items: center;
    padding: 126px 14px 14px;
  }

  .auth-navbar {
    top: 12px;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
  }

  .auth-navbar-brand {
    justify-content: center;
  }

  .auth-navbar-brand img {
    width: 34px;
    height: 34px;
  }

  .auth-navbar-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
  }

  .auth-navbar-links a {
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 11px;
  }

  .auth-navbar-links .auth-navbar-cta {
    background: #fff;
  }

  body {
    grid-template-columns: 1fr;
  }

  body.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100dvh;
    max-width: min(var(--sidebar-width), 86vw);
  }

  .menu-toggle {
    left: min(calc(var(--sidebar-width) - 21px), calc(86vw - 21px));
  }

  body.sidebar-collapsed .menu-toggle {
    left: 14px;
  }

  main {
    padding: 74px 16px 16px;
  }

  .topbar,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .scrape-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .scrape-banner span {
    text-align: left;
  }

  .metrics,
  .metrics.compact,
  .calendar-grid,
  .public-graph-summary,
  .recommendation-summary,
  .demand-alerts,
  .recommendation-group,
  .profile-grid,
  .form-panel {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    gap: 9px;
    max-height: calc(100dvh - 142px);
    padding: 16px;
  }

  .auth-card h1 {
    font-size: 24px;
  }

  .auth-card p {
    font-size: 13px;
  }

  .recommendation-highlight {
    align-items: stretch;
    flex-direction: column;
  }

  .recommendation-highlight p {
    justify-content: flex-start;
  }

  .actions,
  .filters {
    width: 100%;
  }

  .actions > *,
  .filters > * {
    flex: 1 1 auto;
  }

  .ghost-link {
    width: 100%;
  }

  h1 {
    font-size: 28px;
  }

  .chart-panel canvas {
    width: 960px;
    max-width: none;
  }

  canvas {
    height: 300px;
  }

  .status {
    max-width: none;
    width: 100%;
  }

  table {
    min-width: 980px;
  }
}

@media (max-width: 860px) and (max-height: 720px) {
  .auth-screen {
    padding-top: 94px;
  }

  .auth-navbar-links a:not(.auth-navbar-cta) {
    display: none;
  }

  .auth-card {
    max-height: calc(100dvh - 108px);
  }
}
