:root {
  --dash-bg: #0b1220;
  --dash-surface: rgba(255, 255, 255, 0.06);
  --dash-surface-2: rgba(255, 255, 255, 0.08);
  --dash-border: rgba(255, 255, 255, 0.14);
  --dash-text: rgba(255, 255, 255, 0.92);
  --dash-muted: rgba(255, 255, 255, 0.70);
  --dash-muted-2: rgba(255, 255, 255, 0.58);
  --dash-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  --dash-radius: 16px;
  --dash-radius-sm: 12px;
  --dash-primary: #4f8cff;
  --dash-primary-2: #2f6fff;
  --dash-danger: #ff4d4d;
  --dash-input-bg: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--dash-text);
  background:
    radial-gradient(1000px 700px at 18% 15%, rgba(79, 140, 255, 0.28), transparent 60%),
    radial-gradient(900px 650px at 82% 22%, rgba(47, 111, 255, 0.22), transparent 60%),
    radial-gradient(900px 650px at 50% 100%, rgba(255, 77, 77, 0.12), transparent 55%),
    var(--dash-bg);
  background-size: 200% 200%;
  background-position: 0% 0%;
  animation: none;
}

.nav-auth-link--mobile-signin {
  display: none;
}

@media (max-width: 700px) {
  .nav-hide-mobile {
    display: none !important;
  }

  body.dash-page--profile .nav-open-map {
    display: none !important;
  }
}

@media (max-width: 1000px) {
  .nav-auth-link--mobile-signin {
    display: inline-flex;
  }
}

.dash-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dash-app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(8, 14, 26, 0.72);
  backdrop-filter: blur(10px);
}

.dash-app-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dash-app-header__brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.dash-app-header__titles {
  display: grid;
  min-width: 0;
}

.dash-app-header__titles strong {
  font-size: 14px;
  line-height: 1.2;
}

.dash-app-header__titles span {
  font-size: 12px;
  color: var(--dash-muted);
  line-height: 1.2;
}

.dash-app-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dash-app-body {
  flex: 1;
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 0;
}

.dash-sidebar {
  padding: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.14);
}

.dash-menu-item {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid transparent;
  background: transparent;
}

.dash-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.10);
}

.dash-menu-sep {
  height: 1px;
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.10);
}

.dash-main {
  min-width: 0;
  min-height: 0;
}

.dash-content {
  padding: 18px;
}

@keyframes dash_bg_shift {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

a {
  color: inherit;
}

.dash-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.dash-card {
  width: min(980px, 100%);
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  box-shadow: var(--dash-shadow);
  backdrop-filter: blur(10px);
}

.dash-card--narrow {
  width: min(460px, 100%);
}

.dash-card__header {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 22px 22px 0;
}

.dash-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.dash-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.dash-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.dash-card__title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.dash-card__subtitle {
  margin: 4px 0 0;
  color: var(--dash-muted);
  font-size: 13px;
  line-height: 1.4;
}

.dash-card__body {
  padding: 18px 22px 22px;
}

.dash-alerts {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.dash-alert {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 77, 77, 0.35);
  background: rgba(255, 77, 77, 0.10);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.dash-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.dash-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.dash-form-grid--metrics {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.dash-field {
  display: grid;
  gap: 8px;
}

.dash-label {
  font-size: 13px;
  color: var(--dash-muted);
}

.dash-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--dash-input-bg);
  color: var(--dash-text);
  outline: none;
}

select.dash-input,
select.dash-input option,
select.dash-input optgroup {
  color: rgba(255, 255, 255, 0.92);
}

/* Keep the closed select consistent with other dash inputs */
select.dash-input {
  background-color: var(--dash-input-bg);

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.70)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}

/* But ensure the opened dropdown list remains readable (browser renders options separately) */
select.dash-input option,
select.dash-input optgroup {
  background-color: #0b1220;
}

.dash-actions-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

 .dash-actions-cell form {
  display: inline-flex;
  margin: 0;
 }

.dash-actions-col {
  width: 220px;
}

.dash-input[type="file"] {
  padding: 10px 10px;
}

.dash-input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--dash-text);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 140ms ease, background 160ms ease, border-color 160ms ease;
}

.dash-input[type="file"]::file-selector-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.24);
}

.dash-input[type="file"]::file-selector-button:active {
  transform: translateY(0px);
  background: rgba(255, 255, 255, 0.08);
}

.dash-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.dash-input:focus {
  border-color: rgba(79, 140, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.18);
}

.kb-ai-editor {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--dash-input-bg);
  overflow: hidden;

  /* Keep the page compact: cap editor viewport to ~30 lines and scroll inside */
  height: calc(30 * 1.45em + 20px);
  max-height: calc(30 * 1.45em + 20px);
}

.kb-ai-lines {
  margin: 0;
  padding: 10px 0;
  text-align: right;
  color: rgba(255, 255, 255, 0.38);
  user-select: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 12px;
  line-height: 1.45;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.12);
  overflow: hidden;
  height: 100%;
}

.kb-ai-lines span {
  display: block;
  padding: 0 10px;
}

.kb-ai-editor__textarea {
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--dash-text);
  outline: none;
  padding: 10px 12px;
  resize: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 12px;
  line-height: 1.45;

  height: 100%;
  overflow: auto;
}

.kb-ai-editor__textarea:focus {
  box-shadow: none;
}

.dash-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 6px;
}

.dash-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.dash-pager__meta {
  font-size: 13px;
  color: var(--dash-muted);
}

.dash-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 1px solid rgba(0, 68, 217, 0.45);
  border-radius: 12px;
  padding: 10px 14px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 160ms ease, filter 160ms ease, background 160ms ease;
  background: rgba(0, 68, 217, 1);
}

.dash-button:hover {
  transform: translateY(-1px);
  filter: none;
  background: rgba(0, 68, 217, 0.90);
  border-color: rgba(0, 68, 217, 0.45);
  color: #ffffff;
  text-decoration: none;
}

.dash-button:disabled,
.dash-button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  filter: none;
  box-shadow: none;
}

.dash-button:active {
  transform: translateY(1px);
  filter: brightness(0.98);
}

.dash-button--inverse-test {
  background: rgba(0, 68, 217, 1);
  border-color: rgba(0, 68, 217, 0.28);
  color: #ffffff;
}

.dash-button--inverse-test:hover {
  background: rgba(0, 68, 217, 0.08);
  border-color: rgba(0, 68, 217, 0.28);
  color: rgba(0, 68, 217, 1);
}

.dash-button--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--dash-text);
  box-shadow: none;
}

.dash-button--ghost:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
}

.dash-button--ghost:active {
  transform: translateY(0px);
  background: rgba(255, 255, 255, 0.04);
}

.dash-button--google {
  width: 100%;
  gap: 10px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.16);
  color: rgba(15, 23, 42, 0.92);
  font-weight: 650;
}

.dash-button--google:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.22);
  color: rgba(15, 23, 42, 0.92);
}

.dash-button--google:active {
  background: rgba(15, 23, 42, 0.06);
}

.dash-google-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  flex: 0 0 auto;
}

body.dash-page--signup .dash-button--google {
  justify-content: center;
}

.dash-separator {
  position: relative;
  width: 100%;
  text-align: center;
  color: rgba(15, 23, 42, 0.55);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.dash-separator::before,
.dash-separator::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 18px);
  height: 1px;
  background: rgba(15, 23, 42, 0.14);
}

.dash-separator::before {
  left: 0;
}

.dash-separator::after {
  right: 0;
}

.dash-separator span {
  background: rgba(255, 255, 255, 0.95);
  padding: 0 10px;
}

.dash-button--center {
  justify-self: center;
  width: fit-content;
}

.dash-layout {
  display: grid;
  gap: 18px;
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.dash-topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dash-topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dash-topbar__brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.dash-topbar__name {
  display: grid;
  min-width: 0;
}

.dash-topbar__name strong {
  font-size: 14px;
  line-height: 1.2;
}

.dash-topbar__name span {
  font-size: 12px;
  color: var(--dash-muted);
  line-height: 1.2;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  padding: 0 22px 22px;
}

.dash-app .dash-grid {
  padding: 0;
}

.dash-tabs {
  grid-column: span 12;
  display: inline-flex;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.dash-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dash-muted);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.dash-tab.is-active,
.dash-tab[aria-selected="true"] {
  color: rgba(255, 255, 255, 0.94);
  background: rgba(79, 140, 255, 0.16);
  border-color: rgba(79, 140, 255, 0.35);
}

.dash-tabpanels {
  grid-column: span 12;
}

.dash-subgrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.dash-tabpanel[hidden] {
  display: none;
}

.dash-panel {
  grid-column: span 12;
  background: var(--dash-surface-2);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--dash-radius-sm);
  padding: 14px;
}

.dash-panel--full {
  grid-column: span 12;
}

.dash-panel-hint {
  margin: 6px 0 0;
  color: var(--dash-muted-2);
  font-size: 12px;
}

.dash-muted {
  color: var(--dash-muted-2);
}

.dash-panel h2 {
  margin: 0;
  font-size: 14px;
}

.dash-panel p {
  margin: 8px 0 0;
  color: var(--dash-muted);
  font-size: 13px;
  line-height: 1.5;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.dash-kpi {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 12px;
}

.dash-kpi__label {
  font-size: 12px;
  color: var(--dash-muted);
}

.dash-kpi__value {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.dash-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.dash-table-wrap {
  margin-top: 10px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.12);
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.dash-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--dash-muted);
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
}

.dash-table tbody td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.dash-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.dash-td-right {
  text-align: right;
}

.dash-td-muted {
  color: var(--dash-muted-2);
}

.dash-td-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: var(--dash-muted);
}

.dash-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(79, 140, 255, 0.14);
  border: 1px solid rgba(79, 140, 255, 0.28);
  color: rgba(255, 255, 255, 0.90);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.dash-row-title {
  font-weight: 600;
  line-height: 1.25;
}

.dash-row-sub {
  margin-top: 2px;
  color: var(--dash-muted-2);
  font-size: 12px;
  line-height: 1.2;
}

.dash-link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.28);
}

.dash-link:hover {
  border-bottom-color: rgba(79, 140, 255, 0.70);
}

.dash-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.dash-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.90);
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
}

.dash-page--current {
  background: rgba(0, 0, 0, 0.18);
  color: var(--dash-muted);
}

.dash-page--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (min-width: 720px) {
  .dash-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .dash-app-body {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    display: none;
  }

  .dash-content {
    padding: 14px;
  }
}

@media (min-width: 860px) {
  .dash-panel--half {
    grid-column: span 6;
  }

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

  .dash-form-grid--metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.dash-page--light {
  --dash-bg: #f4fbff;
  --dash-surface: rgba(255, 255, 255, 0.92);
  --dash-surface-2: rgba(255, 255, 255, 0.86);
  --dash-border: rgba(15, 23, 42, 0.14);
  --dash-text: rgba(12, 23, 40, 0.92);
  --dash-muted: rgba(12, 23, 40, 0.70);
  --dash-muted-2: rgba(12, 23, 40, 0.56);
  --dash-shadow: 0 22px 70px rgba(15, 23, 42, 0.10);
  --dash-input-bg: rgba(12, 23, 40, 0.04);
  --dash-primary: #0f4fe0;
  --dash-primary-2: #0c46c8;
}

body.dash-page--light {
  background:
    radial-gradient(1000px 700px at 18% 15%, rgba(0, 67, 218, 0.14), transparent 60%),
    radial-gradient(900px 650px at 82% 22%, rgba(58, 54, 201, 0.10), transparent 60%),
    radial-gradient(900px 650px at 50% 100%, rgba(231, 186, 80, 0.14), transparent 55%),
    var(--dash-bg);
}

body.dash-page--light .dash-card,
body.dash-page--light .dash-panel {
  backdrop-filter: none;
}

body.dash-page--light .dash-input {
  border-color: rgba(15, 23, 42, 0.14);
  color: var(--dash-text);
}

body.dash-page--light .dash-input::placeholder {
  color: rgba(12, 23, 40, 0.40);
}

body.dash-page--light .dash-button--ghost {
  border-color: rgba(15, 23, 42, 0.16);
  color: rgba(12, 23, 40, 0.92);
}

body.dash-page--light .dash-button--ghost:hover {
  background: linear-gradient(180deg, var(--dash-primary), var(--dash-primary-2));
  border-color: rgba(15, 23, 42, 0.08);
  color: #ffffff;
}

body.dash-page--light .dash-topbar {
  border-bottom-color: rgba(15, 23, 42, 0.10);
}

body.dash-page--light .dash-alert {
  color: rgba(12, 23, 40, 0.92);
}

body.dash-page--light .dash-header {
  padding: 22px 18px 8px;
}

body.dash-page--light .dash-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.dash-page--light .dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.dash-page--light .dash-brand__logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

body.dash-page--light .dash-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.dash-page--light .dash-header,
body.dash-page--light .dash-header__inner,
body.dash-page--light .dash-brand,
body.dash-page--light .dash-brand__logo,
body.dash-page--light .dash-nav {
  display: none;
}

body.dash-page--light .top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

body.dash-page--light .top-nav-card {
  width: 100%;
  margin: 0;
  padding: 12px 18px;
  border-radius: 0;
  box-sizing: border-box;
  border: 1px solid rgba(2, 6, 23, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

body.dash-page--light .top-nav-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.dash-page--light .top-nav-row--main {
  padding: 2px 0 12px;
  gap: 14px;
}

body.dash-page--light .top-nav-row--main .nav-links {
  flex: 1 1 0;
}

body.dash-page--light .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.dash-page--light .nav-links--right {
  justify-content: flex-end;
}

body.dash-page--light .nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.84);
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 750;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

body.dash-page--light .nav-button.nav-auth-link--mobile-signin {
  display: none;
}

@media (max-width: 1000px) {
  body.dash-page--light .nav-button.nav-auth-link--mobile-signin {
    display: inline-flex;
  }
}

body.dash-page--light .nav-button:hover {
  background: rgba(15, 79, 224, 0.10);
  border-color: rgba(15, 79, 224, 0.28);
}

body.dash-page--light .nav-inline-form {
  display: inline;
}

body.dash-page--light .top-nav-row--main .nav-button {
  background: transparent;
  border-color: transparent;
  color: rgba(15, 23, 42, 0.84);
  font-weight: 600;
}

body.dash-page--light .top-nav-row--main .nav-button:hover {
  background: rgba(2, 6, 23, 0.05);
  border-color: rgba(2, 6, 23, 0.06);
}

body.dash-page--light .top-nav-row--main .nav-button.nav-button--primary {
  background: var(--dash-primary);
  border-color: rgba(15, 79, 224, 0.45);
  color: #ffffff;
}

body.dash-page--light .top-nav-row--main .nav-button.nav-button--primary:hover {
  background: var(--dash-primary-2);
  border-color: rgba(15, 79, 224, 0.65);
}

body.dash-page--light .top-nav-row--main .nav-links--left .nav-button {
  background: linear-gradient(180deg, rgba(15, 79, 224, 0.96), rgba(15, 79, 224, 0.86));
  border-color: rgba(15, 79, 224, 0.40);
  color: #ffffff;
  font-weight: 800;
}

body.dash-page--light .top-nav-row--main .nav-links--left .nav-button:hover {
  background: linear-gradient(180deg, rgba(15, 79, 224, 1), rgba(15, 79, 224, 0.92));
  border-color: rgba(15, 79, 224, 0.60);
}

body.dash-page--light .top-nav-row--main .nav-links--left .nav-button.nav-button--ai {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(0, 68, 218, 0.96), rgba(0, 68, 218, 0.86));
  border-color: rgba(0, 68, 218, 0.40);
  color: #ffffff;
  font-weight: 800;
  overflow: hidden;
}

body.dash-page--light .top-nav-row--main .nav-links--left .nav-button.nav-button--ai::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: conic-gradient(
    rgba(168, 85, 247, 0) 0turn,
    rgba(255, 255, 255, 0.95) 0.10turn,
    rgba(168, 85, 247, 0) 0.22turn,
    rgba(168, 85, 247, 0) 1turn
  );
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.6));
  z-index: 0;
  animation: aiNeonSpin 2.2s linear infinite;
}

body.dash-page--light .top-nav-row--main .nav-links--left .nav-button.nav-button--ai::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(0, 68, 218, 0.96), rgba(0, 68, 218, 0.86));
  z-index: 1;
}

body.dash-page--light .top-nav-row--main .nav-links--left .nav-button.nav-button--ai > * {
  position: relative;
  z-index: 2;
}

 body.dash-page--light .top-nav-row--main .nav-links--left .nav-button.nav-button--ai:hover {
  background: linear-gradient(180deg, rgba(0, 68, 218, 1), rgba(0, 68, 218, 0.92));
  border-color: rgba(0, 68, 218, 0.60);
  box-shadow: 0 0 0 4px rgba(0, 68, 217, 0.18);
 }

 body.dash-page--light .top-nav-row--main .nav-links--left .nav-button.nav-button--ai:focus {
  border-color: rgba(0, 68, 218, 0.70);
  box-shadow: 0 0 0 4px rgba(0, 68, 217, 0.20);
 }

@keyframes aiNeonSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

body.dash-page--light .nav-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 auto;
}

body.dash-page--light .top-nav-row--main .brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dash-page--login.dash-page--light .top-nav-row--main,
body.dash-page--signup.dash-page--light .top-nav-row--main {
  justify-content: center;
}

body.dash-page--login.dash-page--light .top-nav-row--main .brand,
body.dash-page--signup.dash-page--light .top-nav-row--main .brand {
  width: 100%;
}

body.dash-page--light .brand-logo {
  height: clamp(36px, 4.2vw, 56px);
  width: auto;
  display: block;
}

body.dash-page--light .dash-actions-cell .dash-button {
  width: 150px;
}

body.dash-page--light .dash-actions-cell .dash-button:hover {
  transform: none;
  filter: none;
  box-shadow: none;
}

body.dash-page--signup .dash-card__title {
  font-size: 24px;
  letter-spacing: -0.01em;
}

body.dash-page--signup .dash-card__header {
  grid-template-columns: 1fr;
  padding: 22px 22px 0;
  text-align: center;
  justify-items: center;
}

body.dash-page--signup .dash-card--narrow {
  width: min(460px, 100%);
}

body.dash-page--signup .dash-card__body {
  padding: 22px 26px 32px;
}

body.dash-page--signup .dash-card {
  min-height: 0;
}

body.dash-page--signup .dash-actions {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

body.dash-page--signup .dash-form {
  margin-top: 14px;
}

body.dash-page--signup .dash-button--center {
  justify-self: stretch;
  width: 100%;
}

body.dash-page--login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.dash-page--login::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../assets/img3.b9956245bd4d.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

body.dash-page--login > * {
  position: relative;
  z-index: 1;
}

body.dash-page--login .dash-card {
  position: relative;
  z-index: 2;
}

body.dash-page--login .dash-shell {
  flex: 1;
  min-height: 0;
  padding: 18px 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

body.dash-page--login .dash-card {
  max-height: calc(100vh - 140px);
}

body.dash-page--login .dash-card__body {
  overflow: auto;
}

body.dash-page--login .dash-button--google {
  justify-content: center;
}

body.dash-page--centered {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.dash-page--centered .dash-shell {
  flex: 1;
  min-height: 0;
  padding: 18px 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

body.dash-page--centered .dash-card {
  max-height: calc(100vh - 140px);
}

body.dash-page--centered .dash-card__body {
  overflow: auto;
}

body.dash-page--signup {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.dash-page--signup::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../assets/img4.95b92990424f.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

body.dash-page--signup > * {
  position: relative;
  z-index: 1;
}

body.dash-page--signup .dash-card {
  position: relative;
  z-index: 2;
}

body.dash-page--signup .dash-shell {
  flex: 1;
  min-height: 0;
  padding: 18px 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

body.dash-page--signup .dash-card {
  max-height: calc(100vh - 140px);
}

body.dash-page--signup .dash-card__body {
  overflow: auto;
}

body.dash-page--profile {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.dash-page--profile .dash-shell {
  flex: 1;
  min-height: 0;
  padding: 18px 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

body.dash-page--profile .dash-topbar {
  justify-content: center;
}

body.dash-page--profile .dash-topbar__left {
  width: 100%;
  justify-content: center;
}

body.dash-page--profile .dash-topbar__name {
  width: 100%;
  text-align: center;
}

body.dash-page--profile .dash-topbar__name strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

body.dash-page--signup .dash-button--ghost {
  background: transparent;
  color: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(15, 79, 224, 0.28);
}

body.dash-page--signup .dash-button--ghost:hover {
  background: rgba(15, 79, 224, 0.06);
  border-color: rgba(15, 79, 224, 0.40);
  color: rgba(15, 23, 42, 0.90);
}
