/* Real Estate — light UI */
:root {
  --dashboard-stack-gap: 0.75rem;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #0f172a; /* Sophisticated dark accent */
  --accent-hover: #1e293b;
  --accent-brand: #10b981; /* Emerald for real estate growth */
  --accent2: #6366f1; /* Indigo for data/AI */
  --ok: #059669;
  --ok-soft: #ecfdf5;
  --warn: #d97706;
  --err: #dc2626;
  --r-lg: 8px;
  --r-sm: 6px;
  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  /* Same stack as .landing-page + .landing-decor (auth standalone reuses it) */
  --landing-skin-base:
    radial-gradient(circle at 14% 0%, rgba(200, 119, 59, 0.08), transparent 24%),
    radial-gradient(circle at 86% 2%, rgba(42, 138, 109, 0.1), transparent 26%),
    linear-gradient(180deg, #fcf8f0 0%, #f8f4ea 42%, #f4f7f0 100%);
  --landing-skin-decor:
    radial-gradient(circle at 16% 10%, rgba(200, 119, 59, 0.1), transparent 24%),
    radial-gradient(circle at 84% 8%, rgba(42, 138, 109, 0.1), transparent 26%);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body.theme-light,
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--bg);
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
  background: #fff;
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.topbar__inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.topbar__inner--public {
  max-width: 1280px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.topbar__link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
}
.topbar__link:hover {
  color: var(--text);
  background: var(--surface-2);
}
.topbar__tabs {
  background: #e2e8f0;
  padding: 0.2rem 0.25rem;
  border-radius: 10px;
  border: 1px solid #c8d4e4;
  gap: 0.1rem;
}
.topbar__link--active {
  color: #0f172a;
  background: #fff;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
.topbar__link--active:hover {
  color: #0f172a;
  background: #fff;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}
.logo__img {
  display: block;
  height: 4.5rem;
  width: auto;
  max-width: min(400px, 60vw);
  object-fit: contain;
}

.topbar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.topbar__right--public {
  gap: 0.75rem;
}

.topbar__inner--public .topbar__nav--public-inline {
  justify-self: center;
  gap: 0.45rem;
  padding: 0.28rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #e3d9c9;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(24, 39, 52, 0.06);
}

.topbar__inner--public .topbar__nav--public-inline .topbar__link {
  color: #536473;
  padding: 0.58rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.topbar__inner--public .topbar__nav--public-inline .topbar__link:hover {
  color: #17324d;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 16px rgba(23, 50, 77, 0.08);
  transform: translateY(-1px);
}

.topbar__inner--public .topbar__right--public-inline {
  margin-left: 0;
  justify-self: end;
}

/* Public landing: compact menu on small screens */
.public-topbar-drawer {
  display: none;
  position: relative;
  border: 0;
  margin: 0;
  padding: 0;
}
.public-topbar-drawer__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid #d8dde5;
  background: rgba(255, 255, 255, 0.95);
  color: #17324d;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(24, 39, 52, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.public-topbar-drawer__summary::-webkit-details-marker {
  display: none;
}
.public-topbar-drawer__summary:hover {
  background: #fff;
  border-color: #c5cdd8;
}
.public-topbar-drawer__summary:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}
.public-topbar-drawer__icon {
  flex-shrink: 0;
}
.public-topbar-drawer__panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: min(17.5rem, calc(100vw - 2rem));
  padding: 1rem 1.05rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.14);
  z-index: 50;
}
.public-topbar-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.public-topbar-drawer__link {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #17324d;
  text-decoration: none;
  transition: background 0.12s ease;
}
.public-topbar-drawer__link:hover {
  background: #f1f5f9;
}
.public-topbar-drawer__cta {
  width: 100%;
  justify-content: center;
  min-height: 2.75rem;
}
.public-topbar-drawer__lang {
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding-top: 0.35rem;
  margin-top: 0.15rem;
  border-top: 1px solid var(--line);
}
.public-topbar-drawer__lang .lang-switcher__select {
  width: 100%;
  max-width: none;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}
.lang-switcher__label {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.lang-switcher__select {
  min-width: 4.5rem;
  max-width: 5.5rem;
  padding: 0.35rem 0.45rem;
  font-size: 0.8rem;
}
.topbar__inner--public .lang-switcher__select {
  min-width: 4rem;
  background: #fff;
  border-color: #d8dde5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.badge--listings {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.2;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.user-pill {
  font-size: 0.84rem;
  color: var(--muted);
}
.plan-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}
.plan-pill--starter {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}
.plan-pill--pro {
  background: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
}
.plan-pill--free {
  background: #f8fafc;
  color: #475569;
  border-color: #cbd5e1;
}

.admin-stats-hero {
  margin-bottom: 1.25rem;
}
.admin-users-table-wrap {
  padding: 1.25rem 1.5rem;
}
.admin-users-table-wrap .h2-sec {
  margin-top: 0;
}
.admin-users-role {
  color: var(--muted);
  font-size: 0.85rem;
}

.btn.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.logout-f { margin: 0; }
.workspace-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.workspace-switcher__label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.workspace-switcher__select {
  min-width: 9.25rem;
}

/* App topbar: compact on small screens, tools in a details menu */
.topbar__inner--app {
  flex-wrap: nowrap;
}
.topbar__inner--app .topbar__right {
  flex-wrap: nowrap;
  margin-left: auto;
}
.topbar-more {
  position: relative;
  border: 0;
  margin: 0;
  padding: 0;
}
.topbar-more__summary {
  list-style: none;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.45rem 0.65rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.topbar-more__summary::-webkit-details-marker {
  display: none;
}
.topbar-more__summary:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--text);
}
.topbar-more__summary:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}
.topbar-more__icon {
  flex-shrink: 0;
  color: var(--muted);
}
.topbar-more__body {
  gap: 0.5rem;
}
.topbar-more__body .lang-switcher,
.topbar-more__body .workspace-switcher {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.topbar-more__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.user-pill--topbar {
  display: inline-block;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.logout-f--topbar {
  margin: 0;
}

@media (min-width: 960px) {
  .topbar-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .topbar-more__summary {
    display: none !important;
  }
  .topbar-more__body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }
  .topbar-more .lang-switcher > .workspace-switcher__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 959px) {
  .topbar__inner--app {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 0.5rem 0.65rem;
    align-items: center;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .topbar__inner--app .logo {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .topbar__inner--app .logo__img {
    height: 3rem;
    max-width: min(220px, 62vw);
  }
  .topbar__inner--app .topbar__right {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
    justify-self: end;
  }
  .topbar__inner--app .topbar__nav {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 -0.85rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    width: calc(100% + 1.7rem);
    max-width: none;
    box-sizing: border-box;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    mask-image: linear-gradient(to right, transparent, #000 10px, #000 calc(100% - 10px), transparent);
  }
  .topbar-more__summary {
    display: inline-flex;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    justify-content: center;
  }
  .topbar-more[open] > .topbar-more__body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    min-width: min(18rem, calc(100vw - 1.75rem));
    max-height: min(70vh, 28rem);
    overflow-y: auto;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    z-index: 40;
  }
  .topbar-more__body .lang-switcher,
  .topbar-more__body .workspace-switcher {
    flex-direction: column;
    align-items: stretch;
  }
  .topbar-more__body .lang-switcher__select,
  .topbar-more__body .workspace-switcher__select {
    width: 100%;
    max-width: none;
  }
  .topbar-more__meta {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .user-pill--topbar {
    max-width: none;
    white-space: normal;
    word-break: break-all;
    font-size: 0.8rem;
  }
  .btn--topbar-logout {
    width: 100%;
    justify-content: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, transform 0.08s;
}
.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.4rem 0.75rem;
}
.btn--ghost:hover { color: var(--text); border-color: var(--accent); background: #fff; }
.btn--danger {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 0.4rem 0.75rem;
}
.btn--danger:hover {
  color: #fff;
  background: #dc2626;
  border-color: #b91c1c;
}
.btn--primary {
  color: #fff;
  background: var(--accent);
  padding: 0.48rem 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 0.45rem 0.9rem;
}
.btn--secondary:hover { background: var(--surface-2); border-color: var(--accent); }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }

.main {
  flex: 1 0 auto;
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
  min-width: 0;
}
.main--full {
  max-width: none;
  padding: 0;
  margin: 0;
}

.h2-sec { font-size: 1.05rem; margin: 0 0 0.9rem; color: var(--text); font-weight: 600; }
/* Form column keeps a solid min width; rules table does not inherit dashboard 1400px min-width */
.notif-grid {
  display: grid;
  grid-template-columns: minmax(22rem, 0.44fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) {
  .notif-grid { grid-template-columns: 1fr; }
  .billing-plans { grid-template-columns: 1fr; }
  .billing-plans--three { grid-template-columns: 1fr; }
}

/* Account page: dense workspace layout */
.account-layout {
  display: grid;
  grid-template-columns: minmax(20rem, 0.36fr) minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  align-items: start;
}
.account-hero {
  padding: 1rem 1.15rem;
  margin-bottom: 0.9rem;
  background: #fff;
}
.account-hero .page-head__title { letter-spacing: 0; }
.account-hero__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.account-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}
.account-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.32rem 0.68rem;
  color: #355166;
  background: #f4f8f7;
  border: 1px solid #dce7e3;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.account-chip--soft {
  color: #5f6f7c;
  background: #fafbfc;
  border-color: #e4e8ee;
}
.account-api-endpoint {
  font-size: 0.78rem;
  word-break: break-all;
  margin: 0.35rem 0 0;
  color: var(--muted);
}
.account-api-actions {
  margin-top: 0.75rem;
}
.account-api-token-out {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 10rem;
  overflow: auto;
}

/* API documentation page */
.api-docs-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.api-docs-hero {
  padding: 1rem 1.25rem 1.15rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, #f0fdf9 100%);
  border-color: #d1fae5;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.api-docs-hero__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.api-docs-hero .page-head__lede {
  max-width: 56ch;
}
.api-docs-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.api-docs-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-soft);
}
.api-docs-pill--brand {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(236, 253, 245, 0.9);
  color: #047857;
}
.api-docs-pill--soft {
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--surface-2);
  color: var(--muted);
}
.api-docs-pill--link {
  text-decoration: none;
  color: var(--accent2);
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(238, 242, 255, 0.85);
}
.api-docs-pill--link:hover {
  color: #4338ca;
  border-color: rgba(99, 102, 241, 0.55);
}

.api-docs-alert {
  margin-bottom: 1rem;
}

.api-docs-layout {
  display: grid;
  grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.api-docs-toc {
  position: sticky;
  top: 5.25rem;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
}
.api-docs-toc__title {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.api-docs-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.api-docs-toc__list li { margin-bottom: 0.35rem; }
.api-docs-toc__list a {
  display: block;
  padding: 0.28rem 0.4rem;
  margin-left: -0.4rem;
  border-radius: 6px;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  border-left: 3px solid transparent;
}
.api-docs-toc__list a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.api-docs-toc__list a:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

.api-docs-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.api-docs-section {
  padding: 1.15rem 1.35rem 1.35rem;
  scroll-margin-top: 5.5rem;
}
.api-docs-section__title {
  margin: 0 0 0.65rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}
.api-docs-section__subtitle {
  margin: 1.25rem 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-soft);
}

.api-docs-prose {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 72ch;
}
.api-docs-prose:last-child { margin-bottom: 0; }
.api-docs-prose--tight {
  margin-top: 0.35rem;
}

.api-docs-inline-code {
  font-size: 0.82em;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-soft);
}

.api-docs-checklist {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}
.api-docs-checklist li {
  margin-bottom: 0.65rem;
}
.api-docs-checklist li:last-child { margin-bottom: 0; }
.api-docs-checklist strong {
  color: var(--text-soft);
  font-weight: 600;
}

.api-docs-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  padding: 0.22rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 5px;
  flex-shrink: 0;
}
.api-docs-method--get {
  background: linear-gradient(180deg, #ecfdf5, #d1fae5);
  color: #047857;
  border: 1px solid #6ee7b7;
}
.api-docs-method--post {
  background: linear-gradient(180deg, #eef2ff, #e0e7ff);
  color: #4338ca;
  border: 1px solid #a5b4fc;
}

.api-docs-endpoint {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.6rem;
  margin: 0.35rem 0 1rem;
  padding: 0.65rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.api-docs-endpoint--multi .api-docs-endpoint__methods {
  display: flex;
  gap: 0.35rem;
}
.api-docs-endpoint__url {
  flex: 1;
  min-width: min(100%, 12rem);
  font-size: 0.78rem;
  line-height: 1.45;
  word-break: break-all;
  align-self: center;
  color: var(--text-soft);
}

.api-docs-code-block {
  margin-top: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #f8fafc;
}
.api-docs-code-block--url {
  border-left: 4px solid var(--accent-brand);
}
.api-docs-code-block--response {
  border-left: 4px solid var(--accent2);
}
.api-docs-code-block__label {
  display: block;
  padding: 0.35rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid var(--line);
}
.api-docs-code-block__body {
  display: block;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  word-break: break-all;
  color: var(--text-soft);
}
.api-docs-code-block__pre {
  margin: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.45;
  background: transparent;
  color: var(--text-soft);
}

.api-docs-table-shell {
  margin-top: 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fafbfc;
}
.api-docs-table {
  margin: 0 !important;
  width: 100%;
  font-size: 0.82rem;
}
.api-docs-table thead th {
  background: #fff;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
}
.api-docs-table tbody td {
  vertical-align: top;
  border-bottom-color: var(--line);
}
.api-docs-table tbody td:first-child {
  width: 10.5rem;
  max-width: 34%;
  font-size: 0.78rem;
  color: var(--text-soft);
}
.api-docs-table tbody tr:last-child td {
  border-bottom: none;
}
.api-docs-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.65);
}

.api-docs-example {
  margin-top: 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}
.api-docs-example:first-of-type {
  margin-top: 0.35rem;
}
.api-docs-example__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.api-docs-example__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
}
.api-docs-example__pre {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.74rem;
  line-height: 1.5;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 22rem;
  overflow: auto;
}

@media (max-width: 900px) {
  .api-docs-layout {
    grid-template-columns: 1fr;
  }
  .api-docs-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    padding: 0.65rem 0.85rem;
  }
  .api-docs-toc__title {
    width: 100%;
    margin-bottom: 0.15rem;
  }
  .api-docs-toc__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .api-docs-toc__list li {
    margin-bottom: 0;
  }
  .api-docs-toc__list a {
    margin-left: 0;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 0.78rem;
  }
}

.account-card {
  min-width: 0;
  padding: 0.9rem;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.account-card--subscription { grid-column: 1; }
.account-card--team {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.account-card--pricing,
.account-card--admin {
  grid-column: 1 / -1;
}
.account-layout:not(.account-layout--team) .account-card--pricing {
  grid-column: 2;
  grid-row: 1;
}
.account-layout--team .account-card--pricing {
  grid-column: 1;
  grid-row: 2;
}
.account-layout--team .billing-plans--three {
  grid-template-columns: 1fr;
}
.account-card .table-scroller { max-width: 100%; }
.account-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.account-section-head__eyebrow {
  margin: 0 0 0.35rem;
  color: #0f766e;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.account-billing-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 0.35rem;
}
.account-card--subscription .account-billing-row {
  flex-direction: column;
}
.account-billing-row__body {
  flex: 1 1 14rem;
  min-width: 0;
}
.account-billing-row__body .cell-meta { margin-top: 0; }
.account-plan-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.55rem;
  background: linear-gradient(180deg, #fbfcfd 0%, #ffffff 100%);
  border: 1px solid #e4ebf2;
  border-radius: 8px;
}
.account-plan-summary__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.account-plan-summary__value {
  margin: 0.25rem 0 0;
  color: #102235;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 800;
}
.account-plan-summary__badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}
.account-plan-summary__badge--free {
  color: #4b5563;
  background: #f3f4f6;
}
.account-plan-summary__badge--starter {
  color: #8a5800;
  background: #fff4d8;
}
.account-plan-summary__badge--pro {
  color: #166534;
  background: #eaf8ef;
}
.account-billing-row__actions {
  flex: 0 1 auto;
  justify-content: flex-end;
}
.account-card--subscription .account-billing-row__actions,
.account-card--subscription .account-billing-row__actions form,
.account-card--subscription .account-billing-row__actions .btn {
  width: 100%;
}
.account-team-split {
  display: grid;
  gap: 1rem;
  margin-top: 0.75rem;
  align-items: start;
}
@media (min-width: 1180px) {
  .account-team-split {
    grid-template-columns: minmax(24rem, 1fr) minmax(18rem, 0.65fr);
  }
}
.account-team-invite {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem;
  background: #f8fbfb;
}
.account-invite__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.account-invite-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.account-invite-form .field { margin: 0; }

.notif-form { min-width: 0; }
.notif-list { min-width: 0; max-width: 100%; }
.notif-list .table-scroller { max-width: 100%; }
.notif-table.data-table {
  min-width: 0;
  width: 100%;
  table-layout: auto;
}
.notif-form, .notif-list { padding: 1.1rem; }
.notif-form .field.block, .notif-list .field.block { width: 100%; }
.notif-form .field-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.65rem; }
.form-hint { font-size: 0.82rem; color: var(--muted); margin: 0.65rem 0 0.85rem; }
.empty-inline { color: var(--muted); margin: 0; }
.notif-table .mono.narrow { max-width: 20rem; word-break: break-all; }
.notif-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.notif-row-actions--wrap { gap: 0.5rem; }
.notif-row-actions__f { display: inline; margin: 0; }
.btn--sm { font-size: 0.8rem; padding: 0.25rem 0.5rem; }
.billing-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.billing-plans--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .billing-plans--three { grid-template-columns: 1fr; }
}
.billing-plan {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 0.85rem;
  background: #fff;
  box-shadow: none;
}
.billing-plan--active {
  border-color: #8cc0ad;
  background: #f8fbf9;
  box-shadow: inset 0 0 0 1px rgba(28, 106, 86, 0.12);
}
.billing-plan__tag {
  margin: 0 0 0.4rem;
  color: #0f766e;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.billing-plan__name {
  margin: 0;
  font-weight: 700;
}
.billing-plan__price {
  margin: 0.1rem 0 0.7rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0;
}
.billing-plan__price span {
  margin-left: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 1180px) {
  .account-layout,
  .account-layout:not(.account-layout--team) {
    grid-template-columns: 1fr;
  }
  .account-card--subscription,
  .account-card--team,
  .account-card--pricing,
  .account-card--admin,
  .account-layout:not(.account-layout--team) .account-card--pricing {
    grid-column: 1;
    grid-row: auto;
  }
  .account-layout--team .account-card--team,
  .account-layout--team .account-card--pricing {
    grid-column: 1;
    grid-row: auto;
  }
  .account-card--subscription .account-billing-row__actions,
  .account-card--subscription .account-billing-row__actions form,
  .account-card--subscription .account-billing-row__actions .btn {
    width: auto;
  }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .account-layout--team .billing-plans--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .account-hero {
    padding: 1rem;
  }
  .account-hero__head,
  .account-section-head,
  .account-billing-row {
    flex-direction: column;
  }
  .account-hero__meta {
    justify-content: flex-start;
  }
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(32rem, 1.3fr);
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0.85rem;
  margin-bottom: var(--dashboard-stack-gap);
  background: #fff;
}

.dashboard-hero__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.dashboard-hero__title {
  min-width: 0;
}

.dashboard-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.35rem;
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.2rem 0.48rem;
  color: #355166;
  background: #f4f8f7;
  border: 1px solid #dce7e3;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.active-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 var(--dashboard-stack-gap);
}

.active-filters__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 1.7rem;
  padding: 0.22rem 0.5rem;
  border: 1px solid #cfe0ec;
  border-radius: 999px;
  background: #fff;
  color: #29455d;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
}

.filter-chip:hover {
  border-color: #94b8d1;
  background: #f8fbfd;
}

.filter-chip span[aria-hidden="true"] {
  color: #64748b;
  font-size: 0.82rem;
}

.filter-chip--context {
  color: #0f766e;
  border-color: #b7ded8;
  background: #f2fbf9;
}

.btn--reset-filters {
  min-height: 1.9rem;
  white-space: nowrap;
}

.page-head { margin-bottom: 1rem; }
.page-head--tight { margin-bottom: 0.75rem; }
.page-head__eyebrow {
  margin: 0 0 0.45rem;
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.page-head__title {
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: 0;
  color: var(--text);
}
.page-head__lede {
  margin: 0.5rem 0 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: 0.95rem;
  line-height: 1.55;
}
.page-head__lede strong { color: var(--text-soft); }

/* backward compat + shared surface */
.card-elevated,
.card-surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.toolbar { padding: 0.8rem 0.85rem; margin-bottom: 0.7rem; }

.search-options {
  margin-bottom: var(--dashboard-stack-gap);
}

.search-options > .toolbar.search-options__main {
  margin-bottom: 0;
}

/* Drawer is a sibling card below the header strip — avoids nested hidden panel stretching the header card */
.search-options__drawer {
  padding: 0.75rem 0.85rem;
  margin-bottom: 0;
}

.search-options:not(.is-collapsed) > .search-options__drawer {
  margin-top: 0.4rem;
}

.search-options.is-collapsed > .toolbar.search-options__main {
  margin-bottom: 0;
}
.toolbar__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.toolbar__eyebrow {
  margin: 0 0 0.35rem;
  color: #0f766e;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.toolbar__title {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
}
.search-options.is-collapsed .toolbar__head,
html.search-options-collapsed-init .search-options .toolbar__head {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

/* Collapsed filters: no layout gap before results (sync with JS + early html class from localStorage). */
.search-options.is-collapsed [data-search-options-body],
.search-options.is-collapsed [data-search-options-extra],
html.search-options-collapsed-init .search-options [data-search-options-body],
html.search-options-collapsed-init .search-options [data-search-options-extra] {
  display: none !important;
}

.search-options.is-collapsed .toolbar.search-options__main,
html.search-options-collapsed-init .search-options .toolbar.search-options__main {
  padding-bottom: 0.55rem;
  margin-bottom: 0;
}
.btn--search-toggle {
  min-height: 2.35rem;
  white-space: nowrap;
}
.toolbar--strategy[hidden],
[data-search-options-body][hidden] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  border-width: 0 !important;
  box-shadow: none !important;
}
.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 0.65rem 0.65rem;
}
.filters .btn {
  min-height: 2.45rem;
}

.advanced-search {
  grid-column: 1 / -1;
  margin-top: 0.1rem;
}

.advanced-search > summary {
  display: inline-flex;
  width: fit-content;
  min-height: 2.15rem;
  cursor: pointer;
  list-style: none;
}

.advanced-search > summary::-webkit-details-marker,
.settings-panel__summary-nested::-webkit-details-marker,
.table-menu > summary::-webkit-details-marker {
  display: none;
}

.advanced-search > summary::after,
.settings-panel__summary-nested::after {
  content: "+";
  margin-left: 0.45rem;
  font-weight: 800;
}

.advanced-search[open] > summary::after,
.settings-panel--nested[open] > .settings-panel__summary-nested::after {
  content: "–";
}

.advanced-search__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.settings-panel {
  padding: 0;
  margin-bottom: 0;
  overflow: visible;
}

.settings-panel[hidden] {
  display: none !important;
}

/* Nested under search filters: no second card, no “floating” bar above the table */
.settings-panel.settings-panel--nested {
  margin-top: 0.5rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}

.settings-panel.settings-panel--nested > .settings-panel__summary-nested {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0.15rem 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  background: transparent;
  border: none;
  list-style: none;
}

.settings-panel.settings-panel--nested[open] > .settings-panel__summary-nested {
  color: var(--text-soft);
}

.settings-panel__form {
  padding: 0.55rem 0 0.15rem;
}
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}
.view-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.view-switch .btn.is-active {
  border-color: #6366f1;
  color: #3730a3;
  background: #eef2ff;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
}
.kpi-card {
  padding: 0.48rem 0.6rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: none;
}
.kpi-card span {
  display: block;
  font-size: 0.64rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  line-height: 1.25;
}
.kpi-card strong {
  display: block;
  margin-top: 0.18rem;
  color: #102235;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 800;
}
.kpi-card small {
  display: block;
  margin-top: 0.42rem;
  color: #7a8894;
  font-size: 0.76rem;
  line-height: 1.35;
}

.table-commandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  margin: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.table-commandbar__meta,
.table-commandbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

.table-commandbar__meta strong {
  color: var(--text);
  font-size: 0.9rem;
}

.table-commandbar__meta span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.table-menu {
  position: relative;
}

.table-menu > summary {
  min-height: 2rem;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
  list-style: none;
}

.table-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 20;
  min-width: 10rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.table-menu__panel a,
.table-menu__panel span {
  display: block;
  padding: 0.45rem 0.55rem;
  color: #29455d;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 5px;
}

.table-menu__panel a:hover {
  background: #f1f5f9;
}

.table-menu__panel .is-locked {
  color: #94a3b8;
}
@media (max-width: 980px) {
  .dashboard-hero {
    grid-template-columns: 1fr;
  }
  .active-filters,
  .table-commandbar {
    align-items: stretch;
    flex-direction: column;
  }
  .active-filters .btn,
  .table-commandbar__actions {
    width: 100%;
  }
  .advanced-search__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .advanced-search__grid {
    grid-template-columns: 1fr;
  }
}
body.onboarding-open {
  overflow: hidden;
}
.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.onboarding-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(8px);
}
.onboarding-overlay__panel {
  position: relative;
  z-index: 1;
  width: min(28rem, 100%);
  max-height: min(90dvh, 640px);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.35rem 1.1rem;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  border-radius: var(--r-lg);
}
.onboarding-overlay__head {
  flex-shrink: 0;
}
.onboarding-overlay__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.65rem;
  font-weight: 700;
  color: #4338ca;
  margin: 0 0 0.35rem;
}
.onboarding-overlay__head h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.onboarding-overlay__lede {
  margin: 0.35rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.onboarding-progress {
  margin: 0 0 0.35rem;
}
.onboarding-progress__track {
  height: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.onboarding-progress__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #10b981);
  transition: width 0.22s ease;
}
.onboarding-overlay__meta {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.onboarding-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}
.onboarding-steps--wizard {
  flex: 1 1 auto;
  min-height: 7.5rem;
  overflow: auto;
  margin: 0.15rem 0 0.85rem;
}
.onboarding-step {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-radius: 12px;
  padding: 1rem 1.05rem;
}
.onboarding-step h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.onboarding-step p {
  margin: 0.5rem 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}
.onboarding-step.is-active {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.12);
}
.onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
  margin: 0 -0.15rem;
  padding-inline: 0.15rem;
}
.onboarding-actions form {
  margin: 0;
}
/* Dashboard filters: same font/padding as global .input, wider fields to read long values */
.filters--dashboard .input--num { width: 100%; }
.filters--dashboard .input--per-page { width: 4.25rem; }
.filters--dashboard .input--select { min-width: 0; width: 100%; }
.data-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  padding: 0.65rem 0.75rem;
}
.data-pagination--top {
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding-top: 0.5rem;
  padding-bottom: 0.7rem;
}
.data-pagination--bottom {
  border-top: 1px solid var(--line);
  margin: 0;
  padding-top: 0.7rem;
  padding-bottom: 0.5rem;
}
.data-pagination__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.data-pagination__summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  width: 100%;
}
.data-pagination__count { color: var(--muted); font-weight: 400; }
.data-pagination__spacer {
  display: inline-block;
  min-width: 4.5rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.86rem;
  color: var(--muted);
  opacity: 0.5;
  text-align: center;
}

.field { display: flex; flex-direction: column; gap: 0.2rem; }
.field--inline { min-width: 0; }
.field__label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 700; }
.input, select.input, input.input {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 0.58rem 0.7rem;
  font-family: inherit;
  font-size: 0.88rem;
  min-width: 0;
}
.input:focus, select.input:focus, input.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.input--num { width: 5rem; }
.input--w { width: 4rem; }
.input--select { min-width: 8.5rem; }

.mono, code, .mono--wrap { font-family: var(--mono), monospace; }
code {
  font-size: 0.82em;
  color: var(--accent2);
  background: var(--surface-2);
  padding: 0.08em 0.3em;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.alert { padding: 0.7rem 0.9rem; border-radius: var(--r-sm); margin: 0 0 var(--dashboard-stack-gap); font-size: 0.86rem; }
.alert--err {
  color: #7f1d1d;
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.alert--ok {
  color: #14532d;
  background: var(--ok-soft);
  border: 1px solid #a7f3d0;
}
.alert--info {
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.err-list { margin: 0.4rem 0 0; padding-left: 1.1rem; }

.hint-block { font-size: 0.8rem; color: var(--muted); margin-top: 0.9rem; line-height: 1.5; }
.hint-block--tight { margin-top: 0.65rem; }
.hint-block--subtle { color: var(--muted); font-size: 0.8rem; margin: 0 0 0.5rem; }

.data-shell {
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.table-scroller {
  position: relative;
  z-index: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  border-top: 1px solid var(--line);
}
.table-container {
  position: relative;
  min-width: 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 1445px; /* + star column on dashboard */
  table-layout: auto;
}
.col-fav,
.td-fav {
  width: 2.6rem;
  text-align: center;
  vertical-align: middle;
  padding-left: 0.3rem;
  padding-right: 0.3rem;
}
.th-fav {
  font-size: 0.72rem;
  opacity: 0.55;
}
.star-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 1.12rem;
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.star-fav:hover {
  color: #d97706;
  background: #fffbeb;
}
.star-fav.is-favorite,
.star-fav[aria-pressed="true"] {
  color: #d97706;
}
.star-fav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.data-table th {
  text-align: left;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.38rem 0.52rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  white-space: nowrap;
  position: static;
}
.data-table td {
  padding: 0.32rem 0.52rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.32;
  background: var(--surface);
}
.data-table tbody tr:hover td { background: #fafbfc; }

.col-ia { min-width: 14rem; width: 18%; }
.col-title { min-width: 14rem; width: 20%; }
.col-narrow {
  width: 3.5rem;
  min-width: 3.5rem;
  background: var(--surface) !important;
}
.data-table thead .col-narrow {
  background: var(--surface-2) !important;
}
.data-table tbody tr:hover .col-narrow { background: #fafbfc !important; }

.td-price { min-width: 7.25rem; }
.price-card {
  display: grid;
  gap: 0.15rem;
  padding: 0.38rem 0.48rem;
  border: 1px solid #dbe7f2;
  border-radius: 6px;
  background: #f8fbff;
}

.price-card .cell-strong {
  font-size: 0.88rem;
}

.td-score { font-variant-numeric: tabular-nums; }
.score-pill {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ok);
  font-family: var(--mono);
  line-height: 1.2;
}
.score-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.18rem;
  margin-top: 0.22rem;
  max-width: 8rem;
}

.score-metrics span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 1.15rem;
  padding: 0 0.15rem;
  border: 1px solid #dbe5ef;
  border-radius: 4px;
  color: #4d6073;
  background: #f8fafc;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
}

.score-metrics abbr {
  margin-right: 0.12rem;
  color: #8391a0;
  text-decoration: none;
}
.score-row {
  font-size: 0.6rem;
  color: var(--muted);
  margin-top: 0.15rem;
  white-space: nowrap;
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.td-deal { min-width: 9.5rem; }
.deal-card {
  display: grid;
  gap: 0.24rem;
  padding: 0.42rem 0.5rem;
  border: 1px solid #d9eee1;
  border-left: 3px solid var(--ok);
  border-radius: 6px;
  background: #f7fdf9;
}

.deal-card--bad {
  border-color: #f4c7c7;
  border-left-color: var(--err);
  background: #fff8f8;
}

.deal-profit {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ok);
  font-size: 0.98rem;
  line-height: 1.2;
  white-space: nowrap;
}
.deal-profit--bad { color: var(--err); }
.deal-metrics {
  display: grid;
  gap: 0.14rem;
  color: #52687d;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
}

.deal-metrics span:first-child {
  color: #1d4ed8;
}

.deal-metrics abbr {
  text-decoration: none;
}
.deal-line {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.3;
  white-space: nowrap;
}
.cell-strong { font-weight: 600; color: var(--text); }
.cell-meta { font-size: 0.78rem; color: var(--muted); }
.cell-tiny { font-size: 0.66rem; color: var(--muted); line-height: 1.3; }
.td-loc { min-width: 7.5rem; }
.geo-line { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.3rem; align-items: center; }
.geo-pill {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  font-family: var(--mono);
}
.geo-pill--r { background: #fef3c7; color: #b45309; }
.geo-pill--h { background: #f3f4f6; color: #4b5563; }
.geo-maplink { font-size: 0.72rem; color: var(--accent); text-decoration: none; margin-top: 0.2rem; display: inline-block; }
.geo-maplink:hover { text-decoration: underline; }
.td-title { min-width: 10rem; }
.td-title__link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.td-title__link:hover { text-decoration: underline; }
.td-title__text { color: var(--text); line-height: 1.4; }
.suspect { color: var(--warn); font-weight: 700; text-decoration: none; cursor: help; margin-left: 0.1rem; }
.td-args { min-width: 11rem; max-width: 20rem; }
.args-merged {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.arg-risk { color: #b91c1c; }
.td-ia { min-width: 12rem; }
.ia-line1 { line-height: 1.25; margin: 0 0 0.2rem; }
.ia-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.35rem;
  margin: 0.2rem 0 0.25rem;
  line-height: 1.2;
}
.ia-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  max-width: 100%;
  line-height: 1.3;
}
.ia-pill--q { background: #e0f2fe; color: #0369a1; }
.ia-pill--v { background: #f3f4f6; color: #4b5563; }
.ia-pill--c { background: #f0fdf4; color: #166534; }
.revente { color: #0369a1; font-weight: 700; font-size: 0.95rem; }
.ia-slash { color: var(--muted); font-size: 0.8rem; margin: 0 0.1rem; }
.ia-brief { color: var(--muted); font-size: 0.78rem; }
.iasum {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.4;
}
.iasum.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.td-cta { text-align: right; white-space: nowrap; }
.link-go {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: #eff6ff;
}
.link-go:hover { background: #dbeafe; }

.empty-state { padding: 2.5rem 1.5rem; text-align: center; color: var(--muted); font-size: 0.92rem; }
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.65rem 1rem;
  clip: auto;
  overflow: visible;
  white-space: normal;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(24, 39, 52, 0.14);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}
.skip-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-foot {
  flex-shrink: 0;
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.35rem;
  max-width: 52rem;
  margin: 0 auto;
}
.site-foot__brand { margin: 0; }
.site-foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  justify-content: center;
}
.site-foot__nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-foot__nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.static-doc {
  box-sizing: border-box;
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.35rem;
}
.static-doc__head .page-head__title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}
.static-doc p {
  margin: 0 0 0.85rem;
  line-height: 1.55;
  color: var(--text);
}
.static-doc p:last-child { margin-bottom: 0; }

/* Auth */
.auth-layout { min-height: 65vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 400px; padding: 2rem 1.75rem; }
.auth-card__title { margin: 0.2rem 0 0.35rem; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.auth-card__lede { margin: 0 0 1.1rem; color: var(--muted); font-size: 0.88rem; }
.auth-form { display: flex; flex-direction: column; gap: 0.9rem; }
.auth-form .input { width: 100%; padding: 0.55rem 0.7rem; }
.auth-form .btn--primary { padding: 0.6rem; margin-top: 0.2rem; }
.auth-form .btn--block { min-height: 2.6rem; }
.auth-card__footer {
  margin: 1.1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}
.auth-card__footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.auth-card__footer a:hover {
  text-decoration: underline;
}

/* Auth — standalone full page (no app topbar / site footer) */
body.auth-standalone-page {
  background: transparent;
  color: #102235;
}

.auth-standalone-page__backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--landing-skin-base);
}

.auth-standalone-page__backdrop-decor {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(1100px, 100%);
  pointer-events: none;
  background: var(--landing-skin-decor);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 88%);
}

.auth-standalone-page__frame {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1.75rem;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
}

.auth-standalone-page__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.auth-standalone-page__brand {
  display: block;
  line-height: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.auth-standalone-page__logo {
  width: auto;
  max-width: min(220px, 54vw);
  height: auto;
  display: block;
}

.auth-standalone-page__lang {
  margin: 0;
  flex-shrink: 0;
}
.auth-standalone-page__lang-select {
  font-size: 0.8rem;
  padding: 0.35rem 0.55rem;
  min-width: 4.25rem;
  border-radius: 999px;
  border-color: rgba(223, 208, 186, 0.95);
  background: rgba(255, 251, 244, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(20, 29, 37, 0.05);
}

.auth-standalone-page__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.auth-standalone-page .auth-layout {
  min-height: 0;
  padding: 0;
  display: block;
}

.auth-standalone-page .auth-card {
  max-width: none;
  padding: 2rem 1.85rem 2.1rem;
  border-radius: 20px;
  background: rgba(255, 251, 244, 0.92);
  border: 1px solid rgba(223, 208, 186, 0.75);
  box-shadow:
    0 0 0 1px rgba(20, 29, 37, 0.04),
    0 24px 52px -14px rgba(20, 29, 37, 0.12),
    0 8px 28px rgba(20, 29, 37, 0.05);
  backdrop-filter: blur(16px);
}

.auth-standalone-page__foot {
  margin: 1.5rem 0 0;
  padding-top: 0.25rem;
  text-align: center;
  font-size: 0.86rem;
  flex-shrink: 0;
}
.auth-standalone-page__foot-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.auth-standalone-page__foot-link:hover {
  color: var(--accent2);
  text-decoration: underline;
}

/* Landing */
.main--full {
  max-width: none;
  padding: 0;
}

.landing-page {
  position: relative;
  overflow-x: hidden;
  color: #102235;
  background: var(--landing-skin-base);
}

.landing-decor {
  position: absolute;
  inset: 0 0 auto;
  height: 1100px;
  pointer-events: none;
  z-index: 0;
  background: var(--landing-skin-decor);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 88%);
}

.landing-section__inner,
.landing-hero__inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.landing-hero {
  position: relative;
  z-index: 1;
  padding-top: 6.5rem;
  text-align: center;
}

.landing-hero__signal {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.05rem;
  margin-bottom: 1.6rem;
  color: #46606f;
  background: rgba(255, 251, 244, 0.82);
  border: 1px solid rgba(223, 208, 186, 0.95);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(20, 29, 37, 0.05);
  font-size: 0.82rem;
  font-weight: 700;
}

.landing-hero__signal .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #2b8a6e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43, 138, 110, 0.3); }
  70% { box-shadow: 0 0 0 8px rgba(43, 138, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 138, 110, 0); }
}

.landing-hero__title {
  max-width: 880px;
  margin: 0 auto;
  color: #13263b;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.landing-hero__title span {
  color: #1c6a56;
}

.landing-hero__lede {
  max-width: 640px;
  margin: 1.3rem auto 0;
  color: #556472;
  font-size: 1.16rem;
  line-height: 1.55;
}

.landing-hero__actions {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.45rem;
  padding: 0.7rem 1.45rem;
  border-radius: 14px;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.landing-cta--primary {
  color: #fff;
  background: linear-gradient(135deg, #17324d 0%, #2b8a6e 100%);
  box-shadow: 0 14px 28px rgba(23, 50, 77, 0.18);
}

.landing-cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(23, 50, 77, 0.22);
}

.landing-cta--secondary {
  color: #17324d;
  background: rgba(255, 252, 247, 0.88);
  border: 1px solid #ddd1bf;
}

.landing-cta--secondary:hover {
  transform: translateY(-2px);
  background: #fffdf9;
}

.landing-cta--light {
  color: #17324d;
  background: #fff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.landing-hero-shot {
  max-width: 1120px;
  margin: 2.5rem auto -8rem;
}

.landing-hero-shot__shell {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(19, 35, 53, 0.2);
  background: #0f1b2b;
  box-shadow: 0 38px 90px rgba(17, 28, 38, 0.16);
}

.landing-hero-shot__chrome {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.82rem 1.2rem;
  color: #b4c1cf;
  background: #101b29;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-hero-shot__dots {
  display: flex;
  gap: 6px;
}

.landing-hero-shot__dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #d8dfe7;
}

.landing-hero-shot__dots span:nth-child(1) { background: #ef4444; }
.landing-hero-shot__dots span:nth-child(2) { background: #f59e0b; }
.landing-hero-shot__dots span:nth-child(3) { background: #22c55e; }

.landing-hero-shot__title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #b4c1cf;
}

.landing-hero-shot__media {
  background: #fff;
}

.landing-hero-shot__img {
  display: block;
  width: 100%;
  height: auto;
}

.landing-proof {
  padding: 11.5rem 0 5.5rem;
  background: linear-gradient(180deg, #fffaf4 0%, #fff9f1 68%, #f3f6ef 100%);
  border-top: 1px solid #e6dbc9;
}

.landing-proof__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.landing-proof__item {
  min-width: 0;
  padding: 2rem 1.7rem;
  background: rgba(255, 252, 247, 0.88);
  border: 1px solid #e6dbc9;
  border-radius: 20px;
  box-shadow: 0 12px 26px rgba(35, 41, 32, 0.04);
}

.landing-proof__eyebrow {
  margin-bottom: 0.9rem;
  color: #1c6a56;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-proof__item strong {
  display: block;
  margin-bottom: 0.65rem;
  color: #13263b;
  font-size: 1.3rem;
  line-height: 1.18;
}

.landing-proof__item p {
  margin: 0;
  color: #5d6c78;
  line-height: 1.6;
}

.landing-workflow,
.landing-markets,
.landing-personas,
.landing-pricing {
  padding: 6.5rem 0;
}

.landing-markets {
  background: linear-gradient(180deg, #fff9f1 0%, #f7f8f3 100%);
}

.landing-markets__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  gap: 1.6rem;
  align-items: center;
}

.landing-markets__copy {
  max-width: 560px;
}

.landing-markets__copy h2 {
  margin: 0.45rem 0 0.9rem;
  color: #13263b;
  font-size: clamp(1.95rem, 3.4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.landing-markets__copy p:last-of-type {
  margin: 0;
  color: #5b6874;
  font-size: 1.02rem;
  line-height: 1.65;
}

.landing-markets__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.landing-markets__legend span {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.8rem;
  color: #1c6a56;
  background: #eef7f2;
  border: 1px solid #cfe5d9;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.landing-map-card {
  width: 100%;
  max-width: min(32rem, 100%);
  margin: 0;
  justify-self: center;
}

.landing-map-card__shell {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #e4ddcf;
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(24, 39, 52, 0.07);
}

.landing-europe-map {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  font-family: var(--font);
  background: linear-gradient(180deg, #f7f8f4 0%, #f1f4ed 100%);
}

.landing-europe-map__markers text {
  paint-order: stroke fill;
  stroke: rgba(247, 248, 244, 0.92);
  stroke-width: 3px;
}

.landing-workflow {
  background: linear-gradient(180deg, #f3f6ef 0%, #eef3ef 100%);
}

.landing-detail {
  padding: 0 0 6.5rem;
  background: linear-gradient(180deg, #eef3ef 0%, #f8faf6 100%);
}

.landing-detail__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 1.6rem;
  align-items: center;
}

.landing-detail__copy {
  max-width: 560px;
}

.landing-detail__copy h2 {
  margin: 0.45rem 0 0.9rem;
  color: #13263b;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.landing-detail__copy p:last-child {
  margin: 0;
  color: #5b6874;
  font-size: 1.02rem;
  line-height: 1.65;
}

.landing-detail-shot {
  max-width: 560px;
  width: 100%;
  margin: 0 0 0 auto;
}

.landing-detail-shot__shell {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(19, 35, 53, 0.18);
  background: #0f1b2b;
  box-shadow: 0 28px 60px rgba(18, 35, 53, 0.14);
}

.landing-detail-shot__chrome {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  color: #b4c1cf;
  background: #101b29;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-detail-shot__dots {
  display: flex;
  gap: 6px;
}

.landing-detail-shot__dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #d8dfe7;
}

.landing-detail-shot__dots span:nth-child(1) { background: #ef4444; }
.landing-detail-shot__dots span:nth-child(2) { background: #f59e0b; }
.landing-detail-shot__dots span:nth-child(3) { background: #22c55e; }

.landing-detail-shot__title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #b4c1cf;
}

.landing-detail-shot__media {
  background: #fff;
}

.landing-detail-shot__img {
  display: block;
  width: 100%;
  height: auto;
}

.landing-personas {
  background: #fffdf8;
}

.landing-pricing {
  background: linear-gradient(180deg, #fffdf8 0%, #f7f5ee 100%);
}

.landing-section__head {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.landing-section__head h2 {
  margin: 0.45rem 0 0;
  color: #13263b;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.eyebrow {
  margin: 0;
  color: #1c6a56;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-steps,
.landing-personas__grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.landing-step,
.landing-persona,
.pricing-card {
  min-width: 0;
  border-radius: 22px;
}

.landing-step {
  padding: 2rem 1.8rem;
  background: rgba(255, 252, 247, 0.92);
  border: 1px solid #e2d7c7;
  box-shadow: 0 12px 28px rgba(59, 68, 58, 0.05);
}

.landing-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 1.35rem;
  color: #2b8a6e;
  background: #e8f4ed;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.landing-step h3,
.landing-persona h3 {
  margin: 0 0 0.75rem;
  color: #13263b;
  font-size: 1.35rem;
  line-height: 1.2;
}

.landing-step p,
.landing-persona p {
  margin: 0;
  color: #5b6874;
  line-height: 1.62;
}

.landing-persona {
  padding: 2rem 1.8rem;
  background: #fff;
  border: 1px solid #e7dece;
  box-shadow: 0 10px 24px rgba(21, 28, 34, 0.04);
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  background: #fff;
  border: 1px solid #e2d7c7;
  box-shadow: 0 14px 34px rgba(21, 28, 34, 0.06);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #d7deea;
}

.pricing-card--free {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border-color: #dce4ee;
}

.pricing-card--free::before {
  background: linear-gradient(90deg, #c5d3e4 0%, #dce4ee 100%);
}

.pricing-card--starter {
  background: linear-gradient(180deg, #fffaf1 0%, #ffffff 100%);
  border-color: #e7d7bb;
}

.pricing-card--starter::before {
  background: linear-gradient(90deg, #d8ab62 0%, #edd6ad 100%);
}

.pricing-card--featured {
  background: linear-gradient(180deg, #f3fbf7 0%, #ffffff 100%);
  border-color: #8cc0ad;
  box-shadow: 0 22px 46px rgba(28, 106, 86, 0.14);
  transform: translateY(-6px);
}

.pricing-card--featured::before {
  background: linear-gradient(90deg, #2b8a6e 0%, #79b9a5 100%);
}

.pricing-card__badge {
  align-self: flex-start;
  margin: 0 0 1rem;
  padding: 0.3rem 0.7rem;
  color: #1c6a56;
  background: #eaf4ef;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.pricing-card__label {
  margin: 0 0 0.35rem;
  color: #66737d;
  font-size: 0.95rem;
  font-weight: 700;
}

.pricing-card__price {
  margin: 0;
  color: #13263b;
  font-size: 2.85rem;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.pricing-card__price span {
  margin-left: 0.15rem;
  color: #86919a;
  font-size: 0.95rem;
  font-weight: 600;
}

.pricing-card__target {
  margin: 1rem 0 0;
  color: #5e6b76;
  line-height: 1.55;
}

.pricing-list {
  display: grid;
  gap: 0.72rem;
  list-style: none;
  margin: 1.4rem 0 1.7rem;
  padding: 0;
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #495967;
  line-height: 1.45;
}

.pricing-list li::before {
  content: "";
  flex: 0 0 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.42rem;
  border-radius: 999px;
  background: #2b8a6e;
}

.pricing-card__cta {
  width: 100%;
  margin-top: auto;
}

.landing-final {
  padding: 7rem 0;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at top center, rgba(201, 123, 61, 0.16), transparent 22%),
    linear-gradient(180deg, #18324b 0%, #122638 100%);
}

.landing-final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.7rem;
}

.landing-final__eyebrow {
  margin: 0 0 0.7rem;
  color: #b8e1d4;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-final h2 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.landing-final p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.58;
}

@media (max-width: 1100px) {
  .landing-proof__grid,
  .landing-steps,
  .landing-markets__inner,
  .landing-detail__inner,
  .landing-personas__grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card--featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .topbar__inner--public {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .topbar__inner--public .logo {
    min-width: 0;
    flex: 0 1 auto;
  }
  .topbar__inner--public .logo__img {
    height: 2.85rem;
    max-width: min(220px, 52vw);
  }
  .public-topbar-drawer {
    display: block;
    flex-shrink: 0;
    margin-left: auto;
  }
  .topbar__nav--public-inline,
  .topbar__right--public-inline {
    display: none !important;
  }

  .landing-section__inner,
  .landing-hero__inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .landing-hero {
    padding-top: 4.25rem;
  }

  .landing-hero__title {
    font-size: clamp(1.65rem, 6.8vw, 4.8rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
  }

  .landing-hero__lede {
    font-size: 1rem;
    margin-top: 1rem;
  }

  .landing-hero__signal {
    font-size: 0.74rem;
    padding: 0.45rem 0.85rem;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.35;
  }

  .landing-hero__actions {
    flex-direction: column;
    margin-top: 1.5rem;
  }

  .landing-cta {
    width: 100%;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .landing-hero-shot {
    margin-top: 2rem;
    margin-bottom: -3rem;
  }

  .landing-hero-shot__chrome {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.62rem 0.85rem;
  }

  .landing-hero-shot__title {
    font-size: 0.66rem;
    line-height: 1.3;
    flex: 1 1 10rem;
    min-width: 0;
    text-align: left;
  }

  .landing-proof {
    padding-top: 6rem;
  }

  .landing-section__head h2 {
    font-size: clamp(1.28rem, 5.2vw, 2.5rem);
  }

  .landing-markets__copy h2 {
    font-size: clamp(1.28rem, 5vw, 2.2rem);
  }

  .landing-map-card__shell {
    overflow: hidden;
    border-radius: 16px;
  }

  .landing-europe-map {
    width: 100%;
    height: auto;
    display: block;
  }

  .landing-final h2 {
    font-size: clamp(1.35rem, 5.5vw, 3.6rem);
  }

  .landing-final p {
    font-size: 0.98rem;
  }

  .site-foot {
    padding: 1.15rem 0.85rem;
  }

  .landing-workflow,
  .landing-detail,
  .landing-personas,
  .landing-pricing,
  .landing-final {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .landing-detail-shot {
    margin-left: 0;
  }
}

/* Listing report modal (detail dialog) */
.btn--detail {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  background: #eff6ff;
  color: var(--accent);
  border: 1px solid #bfdbfe;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}
.btn--detail:hover { background: #dbeafe; border-color: var(--accent); }
.btn--detail.is-loading:disabled { opacity: 0.9; cursor: wait; }
.col-action { min-width: 6.3rem; width: 1%; }
.td-action { vertical-align: middle; text-align: right; }
.action-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  min-width: 6rem;
}
.enrich-one-form { margin: 0; }
.btn--run {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  background: #f5f3ff;
  color: #5b21b6;
  border: 1px solid #c4b5fd;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}
.btn--run:hover:enabled { background: #ede9fe; border-color: #5b21b6; }
.btn--run:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--run.is-loading:disabled { opacity: 0.9; cursor: wait; }
.btn--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0;
  border-radius: 6px;
  font-size: 0.78rem;
  line-height: 1;
  text-decoration: none;
}

.btn--icon.btn--detail,
.btn--icon.btn--run,
.btn--icon.btn--source,
.btn--icon.btn--map-focus {
  width: 2rem;
  box-sizing: border-box;
}

.btn--icon.btn--source {
  font-size: 1rem;
}

.btn--icon.btn--detail {
  font-family: var(--mono);
  font-weight: 800;
}

.btn--icon.btn--map-focus {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  border-radius: 6px;
  background: #ecfdf5;
  color: #0f766e;
  border: 1px solid #99f6e4;
  cursor: pointer;
}

.btn--icon.btn--map-focus:hover:not(:disabled) {
  background: #d1fae5;
  border-color: #0f766e;
}

.btn--icon.btn--map-focus:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.data-table tbody tr.tr--ai-running td {
  background: #fbfaff;
}
.ai-job-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 1.35rem;
  padding: 0.16rem 0.35rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.td-ia .ai-job-status {
  margin-bottom: 0.35rem;
}

.ai-job-status--inline {
  justify-content: flex-start;
}

.ai-job-status--queued,
.ai-job-status--running {
  color: #5b21b6;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
}
.ai-job-status--done {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.ai-job-status--error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.ai-job-status__spinner {
  width: 0.62rem;
  height: 0.62rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ai-spin 0.75s linear infinite;
}
@keyframes ai-spin {
  to { transform: rotate(360deg); }
}
.btn--source {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  width: 100%;
  box-sizing: border-box;
}
.btn--source:hover { background: #dcfce7; border-color: #16a34a; }
.btn--icon.btn--source {
  width: 2rem;
  min-width: 2rem;
  padding: 0;
}
.btn.is-loading { pointer-events: none; }
.data-table tbody tr.tr--enriched td { background: #f0f9ff; }
.detail-dialog {
  width: min(1080px, 96vw);
  max-width: 100%;
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  background: var(--surface);
}
.detail-dialog::backdrop { background: rgba(15, 20, 30, 0.5); }
.detail-dialog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  position: sticky;
  top: 0;
  z-index: 2;
}
.detail-dialog__title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 auto;
}
.detail-dialog__title-row .detail-dialog__title {
  margin: 0;
}
.star-fav--detail {
  flex-shrink: 0;
}
.detail-dialog__title { font-size: 1.1rem; margin: 0; font-weight: 700; }
.detail-dialog__actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.detail-dialog__body { padding: 1rem 1.15rem 1.4rem; overflow: auto; max-height: min(78vh, 900px); }
#detail-body {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}
.detail-footnote {
  margin: 0;
  padding: 0.65rem 1.1rem 1rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.detail-loading { margin: 0; text-align: center; padding: 1.2rem; color: var(--muted); }
.detail-hero { margin-bottom: 0; }
.detail-hero__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.detail-hero__title { margin: 0.35rem 0 0.2rem; font-size: 1.15rem; line-height: 1.3; }
.detail-hero__loc { margin: 0; color: var(--muted); font-size: 0.88rem; }
.detail-hero__go { margin: 0.4rem 0 0; }
.detail-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.detail-link:hover { text-decoration: underline; }
.detail-ref { font-size: 0.78rem; color: var(--muted); }
.detail-pill {
  font-size: 0.68rem;
  color: #4338ca;
  background: #ede9fe;
  border-radius: 4px;
  padding: 0.12rem 0.35rem;
}
.detail-metricbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.55rem;
  margin-bottom: 0;
}
.detail-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  background: #fcfcfd;
}
.detail-tile__k {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.detail-tile__v { display: block; font-size: 1.05rem; font-weight: 700; }
.detail-tile--score { color: var(--accent2); }
.detail-tile__s { font-size: 0.75rem; color: var(--muted); display: block; }
.detail-suspect { color: var(--warn); font-weight: 500; }
.detail-two { display: grid; grid-template-columns: 1fr 1.15fr; gap: 0.9rem; margin: 0; }
.detail-two--deal { grid-template-columns: 0.9fr 1.1fr; }
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  background: var(--surface);
}
.detail-panel--deal { background: linear-gradient(180deg, #f8fafc 0%, #fff 100%); }
.detail-panel--llm-offer {
  border-left: 3px solid #6366f1;
  background: linear-gradient(90deg, #eef2ff 0%, #fff 18%);
  margin: 0;
}
.detail-ul--llm-offer li { line-height: 1.45; }
.detail-panel--ai { margin-top: 0; background: #f9fafb; }
.detail-h { margin: 0 0 0.4rem; font-size: 0.85rem; font-weight: 700; }
.detail-h--tight { margin-top: 0.75rem; }
.detail-hint { font-size: 0.75rem; color: var(--muted); margin: 0 0 0.6rem; line-height: 1.45; }
.detail-radar-legend {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.65rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.detail-radar-legend__p { margin: 0 0 0.4rem; }
.detail-radar-legend__p:last-child { margin-bottom: 0; }
.detail-radar-legend code { font-size: 0.9em; }
.detail-chartwrap { min-height: 200px; position: relative; }
.detail-chartwrap--wide { min-height: 180px; }
/* Property report: price line chart — short footprint */
.detail-chartwrap--price {
  min-height: 0;
  height: 120px;
  max-height: 128px;
}
@media (min-width: 1200px) {
  .detail-chartwrap--price { height: 128px; max-height: 136px; }
}
.detail-map {
  height: 300px;
  border-radius: 8px;
  z-index: 0;
}
.detail-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 0;
}
@media (max-width: 1000px) { .detail-two, .detail-two--deal, .detail-grid3 { grid-template-columns: 1fr; } }
.detail-grid-table { width: 100%; font-size: 0.82rem; border-collapse: collapse; }
.detail-grid-table td { border-bottom: 1px solid var(--line); padding: 0.3rem 0.15rem; }
.detail-grid-table td:first-child { color: var(--muted); width: 60%; }
.detail-deal-list { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.detail-deal-list li { margin: 0.2rem 0; }
.detail-ul { margin: 0.2rem 0 0; padding-left: 1.1rem; }
.detail-ul--compact { font-size: 0.86rem; }
.detail-prose { margin: 0.2rem 0; line-height: 1.55; }
.detail-prose--mono { font-family: var(--mono), monospace; font-size: 0.78rem; }
.detail-muted { color: var(--muted); }
.detail-subh { font-size: 0.8rem; margin: 0.6rem 0 0.25rem; }
.detail-eyebrow-n { font-size: 0.8rem; color: var(--text-soft); margin: 0.15rem 0 0.5rem; }
.detail-kicker { color: var(--accent); }
.detail-forecast-note { font-size: 0.7rem; color: var(--muted); margin: 0.4rem 0 0; line-height: 1.4; }
.small { font-size: 0.85em; }
@media print {
  /* Do not use visibility:hidden on a broad selector: hidden nodes still
     occupy full layout height in the print model → blank following pages. */
  @page {
    margin: 10mm 12mm;
  }
  html.print-report,
  html.print-report body {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    background: #fff !important;
  }
  html.print-report .page-bg,
  html.print-report .topbar,
  html.print-report .site-foot {
    display: none !important;
  }
  /* Dashboard (and any page that hosts the dialog): dialog is a direct child of .main. */
  html.print-report .main > *:not(.detail-dialog) {
    display: none !important;
  }
  html.print-report .main {
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  html.print-report .detail-dialog {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: auto;
    page-break-inside: auto;
  }
  html.print-report .detail-dialog__head {
    position: static !important;
    break-after: avoid;
  }
  html.print-report .detail-dialog__body {
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
  }
  html.print-report .no-print-dlg {
    display: none !important;
  }
  /* Avoid Leaflet/oversized map tiles generating extra blank print pages. */
  html.print-report .detail-map,
  html.print-report .leaflet-container,
  html.print-report .leaflet-control-container {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
@media (max-width: 700px) {
  .dashboard-hero {
    grid-template-columns: 1fr;
    padding: 0.75rem;
  }
  .dashboard-hero__head,
  .toolbar__head {
    flex-direction: column;
    align-items: stretch;
  }
  .dashboard-hero__meta,
  .toolbar-actions {
    justify-content: flex-start;
  }
  .page-head__title { font-size: 1.3rem; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr; }
  .onboarding-overlay__panel {
    max-height: 92dvh;
    padding: 1rem 1rem 0.95rem;
  }
  .onboarding-actions { justify-content: stretch; }
  .onboarding-actions .btn,
  .onboarding-actions form .btn { flex: 1; }
  .onboarding-actions form { flex: 1; display: flex; }
  .onboarding-actions form .btn { width: 100%; }
  .view-switch { flex-wrap: wrap; }
  .toolbar { padding: 0.75rem; }
  .data-table th, .data-table td { padding: 0.4rem; }
  .main { padding-left: 1rem; padding-right: 1rem; }
  .detail-dialog { width: 100%; max-height: 100dvh; }
  .detail-dialog__body { max-height: 75dvh; }
}

/* --- Dual View & Skeletons --- */

.data-shell--dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  height: calc(100vh - 12rem);
  min-height: 600px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  align-items: stretch;
}

/* Let the table pane shrink inside the grid row so .table-scroller can scroll vertically */
.data-shell--dual .table-container {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.data-shell--dual .table-commandbar {
  flex-shrink: 0;
}

.data-shell--dual .table-container > nav.data-pagination {
  flex-shrink: 0;
}

.dashboard-map-container {
  position: relative;
  height: 100%;
  width: 100%;
  border-right: 1px solid var(--line);
  z-index: 5;
}

.dashboard-map-empty-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 500;
}

.dashboard-map-empty-msg p {
  pointer-events: auto;
  max-width: 28rem;
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
  color: var(--text-muted, #64748b);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 10px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

.dashboard-map-zoom-hint {
  position: absolute;
  bottom: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  pointer-events: none;
  max-width: min(92%, 26rem);
}
.dashboard-map-zoom-hint p {
  margin: 0;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.1);
}

.dashboard-map-fallback {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  text-align: center;
  background: var(--surface-muted, #f8fafc);
  color: var(--text-muted, #64748b);
  font-size: 0.9rem;
  line-height: 1.45;
  box-sizing: border-box;
}

.dashboard-map-fallback p {
  max-width: 28rem;
  margin: 0;
}

/* Leaflet adds .leaflet-div-icon with white bg — remove so only our disk shows */
.leaflet-div-icon.dashboard-map-marker {
  background: transparent !important;
  border: none !important;
}

.dashboard-map-marker__disk {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 5px 7px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
}

.dashboard-map-marker__label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  padding-top: 1px;
  text-align: center;
}

.data-shell--dual .table-scroller {
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.data-shell--dual .data-table {
  min-width: 0; /* Allow shrinking in dual view */
  table-layout: fixed;
}

.data-shell--dual .data-table th,
.data-shell--dual .data-table td {
  padding: 0.4rem 0.6rem;
}

/* Last header cell can lose background next to scrollbars (border-collapse); force header strip */
.data-shell--dual .data-table thead th {
  background: var(--surface-2) !important;
  background-clip: padding-box;
}

.data-shell--dual .data-table thead th.col-action {
  background: var(--surface-2) !important;
}

/*
 * Fixed layout + narrow pane: ACTION was too tight for 4 icon buttons (~9rem),
 * so flex row overflowed left and drew on top of DEAL. Reserve width + clip DEAL text.
 */
.data-shell--dual .data-table thead th.col-action,
.data-shell--dual .data-table tbody td.td-action {
  width: 11rem;
  min-width: 11rem;
  max-width: 12rem;
  box-sizing: border-box;
}

.data-shell--dual .data-table tbody td.td-action {
  overflow: hidden;
}

.data-shell--dual .action-row {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 0.3rem;
  min-width: 0;
  max-width: 100%;
}

.data-shell--dual .action-row > .enrich-one-form,
.data-shell--dual .action-row > a,
.data-shell--dual .action-row > button {
  flex: 0 0 auto;
}

.data-shell--dual .data-table tbody td.td-deal {
  min-width: 0;
  overflow: hidden;
}

.data-shell--dual .data-table .deal-card {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .data-shell--dual {
    grid-template-columns: 1fr;
    grid-template-rows: 400px 1fr;
    height: auto;
  }
  .dashboard-map-container {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

/* Skeletons */
@keyframes skeleton-pulse {
  0% { opacity: 0.4; background-color: #f1f5f9; }
  50% { opacity: 1; background-color: #e2e8f0; }
  100% { opacity: 0.4; background-color: #f1f5f9; }
}

.skeleton {
  animation: skeleton-pulse 1.8s infinite ease-in-out;
  border-radius: 6px;
  background-color: #e2e8f0;
  display: block;
}

.skeleton-text { height: 0.85rem; margin-bottom: 0.5rem; border-radius: 4px; }
.skeleton-title { height: 1.4rem; margin-bottom: 1rem; width: 85%; }
.skeleton-badge { height: 1.4rem; width: 3.5rem; display: inline-block; border-radius: 999px; }
.skeleton-rect { height: 180px; width: 100%; }
.skeleton-circle { height: 40px; width: 40px; border-radius: 50%; }

.skeleton-inline { display: inline-block; vertical-align: middle; }

/* Trend Badges */
.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  margin-left: 0.4rem;
  vertical-align: middle;
  line-height: 1;
}

.trend-badge--down {
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.trend-badge--up {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.trend-badge-icon {
  font-size: 0.8rem;
}
