/* [project]/app/globals.css [app-client] (css) */
:root {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  color: #eef2ff;
  font-synthesis: none;
  text-rendering: optimizelegibility;
  background: #090b12;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at 0 0, #58a6ff29, #0000 35%), #090b12;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button, input, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  grid-template-columns: 310px minmax(0, 1fr);
  height: 100vh;
  display: grid;
  overflow: hidden;
}

.sidebar {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: #0a0e19d1;
  border-right: 1px solid #94a3b824;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  display: flex;
}

.brand {
  align-items: center;
  gap: 14px;
  display: flex;
}

.brand-mark {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  border-radius: 16px;
  place-items: center;
  width: 44px;
  height: 44px;
  display: grid;
  box-shadow: 0 18px 60px #06b6d433;
}

.brand h1 {
  letter-spacing: -.02em;
  margin: 0;
  font-size: 18px;
}

.brand p, .muted {
  color: #94a3b8;
  margin: 4px 0 0;
  font-size: 13px;
}

.new-chat {
  color: #eef2ff;
  text-align: left;
  background: #ffffff0f;
  border: 1px solid #94a3b82e;
  border-radius: 14px;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  font-weight: 700;
  transition: all .16s;
  display: inline-flex;
}

.new-chat:hover, .history-item:hover, .icon-button:hover {
  background: #ffffff1a;
  transform: translateY(-1px);
}

.history-block {
  min-height: 0;
  overflow: auto;
}

.section-title {
  color: #c4b5fd;
  text-transform: uppercase;
  letter-spacing: .11em;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
}

.history-item {
  color: #e2e8f0;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 12px;
  gap: 5px;
  width: 100%;
  padding: 11px 10px;
  display: grid;
}

.history-item span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.history-item small {
  color: #64748b;
}

.history-item.active {
  color: #f8fafc;
  background: #7dd3fc1f;
}

.history-item.active small {
  color: #93c5fd;
}

.main-panel {
  grid-template-rows: auto auto 1fr auto;
  min-width: 0;
  height: 100vh;
  display: grid;
}

.topbar {
  border-bottom: 1px solid #94a3b81a;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 32px 18px;
  display: flex;
}

.topbar h2 {
  letter-spacing: -.04em;
  max-width: 860px;
  margin: 4px 0 0;
  font-size: clamp(22px, 3vw, 34px);
}

.eyebrow {
  color: #93c5fd;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.icon-button {
  color: #eef2ff;
  background: #ffffff0f;
  border: 1px solid #94a3b82e;
  border-radius: 14px;
  place-items: center;
  width: 42px;
  height: 42px;
  display: grid;
}

.settings-card {
  background: #0f172ab3;
  border: 1px solid #94a3b829;
  border-radius: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin: 14px 32px 0;
  padding: 16px;
  display: grid;
}

.settings-card label {
  color: #94a3b8;
  gap: 7px;
  font-size: 12px;
  display: grid;
}

.settings-card input {
  color: #eef2ff;
  background: #020617b8;
  border: 1px solid #94a3b82e;
  border-radius: 12px;
  outline: none;
  padding: 11px;
}

.settings-readonly {
  gap: 7px;
  min-width: 0;
  display: grid;
}

.settings-readonly span {
  color: #94a3b8;
  font-size: 12px;
}

.settings-readonly code {
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #dbeafe;
  background: #020617b8;
  border: 1px solid #94a3b82e;
  border-radius: 12px;
  min-width: 0;
  padding: 11px;
  overflow: hidden;
}

.settings-card button, .composer button {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #0891b2);
  border: 0;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  font-weight: 700;
  display: inline-flex;
}

.error-banner {
  color: #fecaca;
  background: #7f1d1d47;
  border: 1px solid #f8717140;
  border-radius: 14px;
  margin: 14px 32px 0;
  padding: 12px 14px;
}

.chat-window {
  flex-direction: column;
  gap: 18px;
  padding: 26px 32px;
  display: flex;
  overflow: auto;
}

.empty-state {
  text-align: center;
  color: #cbd5e1;
  background: #0f172a5c;
  border: 1px dashed #94a3b838;
  border-radius: 28px;
  max-width: 440px;
  margin: auto;
  padding: 42px;
}

.empty-state h3 {
  margin: 12px 0 8px;
}

.empty-state p {
  color: #94a3b8;
  margin: 0;
  line-height: 1.6;
}

.message-card {
  background: linear-gradient(#0f172ac7, #0f172a75);
  border: 1px solid #94a3b824;
  border-radius: 26px;
  padding: 20px;
  box-shadow: 0 22px 80px #0000002e;
}

.question-row, .answer-row {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 13px;
  display: grid;
}

.question-row {
  border-bottom: 1px solid #94a3b81a;
  padding-bottom: 16px;
}

.answer-row {
  padding-top: 16px;
}

.avatar {
  border-radius: 14px;
  place-items: center;
  width: 38px;
  height: 38px;
  font-weight: 800;
  display: grid;
}

.avatar.user {
  color: #c4b5fd;
  background: #6366f12e;
}

.avatar.bot {
  color: #67e8f9;
  background: #06b6d424;
}

.question-text {
  color: #f8fafc;
  white-space: pre-wrap;
  margin: 5px 0 0;
  font-size: 16px;
  line-height: 1.55;
}

.answer-body {
  min-width: 0;
}

.answer-meta {
  color: #94a3b8;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 12px;
  display: flex;
}

.answer-meta span {
  align-items: center;
  gap: 5px;
  display: inline-flex;
}

.answer-meta .copy-button {
  margin-left: auto;
}

.copy-button {
  color: #94a3b8;
  background: #02061761;
  border: 1px solid #94a3b829;
  border-radius: 10px;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  transition: all .16s;
  display: inline-grid;
}

.copy-button:hover:not(:disabled) {
  color: #e2e8f0;
  background: #ffffff14;
  border-color: #93c5fd57;
}

.copy-button.copied {
  color: #86efac;
  background: #1665342e;
  border-color: #86efac4d;
}

.copy-button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.copy-button:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #7dd3fc;
}

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

.status-pill {
  border-radius: 999px;
  padding: 5px 8px;
  font-weight: 700;
}

.status-pill.search {
  color: #a5f3fc;
  background: #0891b229;
}

.status-pill.skip {
  color: #ddd6fe;
  background: #7c3aed29;
}

.status-pill.error {
  color: #fecaca;
  background: #dc26262e;
}

.result-text {
  min-width: 0;
}

.loading-line {
  color: #bae6fd;
  align-items: center;
  gap: 9px;
  display: inline-flex;
}

.dev-panel {
  margin-top: 16px;
}

.dev-header {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.dev-toggle {
  color: #cbd5e1;
  background: #02061761;
  border: 1px solid #94a3b824;
  border-radius: 12px;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  display: inline-flex;
}

.dev-toggle span {
  color: #64748b;
  margin-left: 4px;
  font-size: 12px;
}

.dev-content {
  background: #0206176b;
  border: 1px solid #94a3b81f;
  border-radius: 16px;
  margin-top: 10px;
  padding: 14px;
}

.dev-summary {
  color: #cbd5e1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  display: grid;
}

details {
  border-top: 1px solid #94a3b81a;
  padding: 9px 0;
}

details:first-child {
  border-top: 0;
}

summary {
  cursor: pointer;
  color: #e2e8f0;
}

summary small {
  color: #64748b;
  margin-left: 8px;
}

pre {
  color: #bfdbfe;
  background: #00000052;
  border-radius: 12px;
  max-height: 420px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  overflow: auto;
}

.dev-panel, .dev-content, .raw-json {
  max-height: none;
  overflow: visible;
}

.raw-json pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  width: 100%;
  max-width: 100%;
  max-height: none;
  overflow: auto visible;
}

.composer {
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: linear-gradient(#090b1214, #090b12eb 46%);
  border-top: 1px solid #94a3b814;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 12px 24px 18px;
  display: flex;
}

.composer-wrap {
  gap: 8px;
  width: min(760px, 100%);
  display: grid;
}

.composer-box {
  background: #0f172aeb;
  border: 1px solid #94a3b838;
  border-radius: 24px;
  grid-template-rows: minmax(32px, 1fr) auto;
  gap: 8px;
  width: 100%;
  min-height: 92px;
  max-height: 240px;
  padding: 10px;
  display: grid;
  overflow: hidden;
  box-shadow: 0 14px 46px #00000047;
}

.composer-box:focus-within {
  border-color: #7dd3fc80;
  box-shadow: 0 0 0 4px #0ea5e91f, 0 14px 46px #00000047;
}

.composer textarea {
  resize: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  color: #f8fafc;
  width: 100%;
  height: 32px;
  min-height: 32px;
  max-height: 180px;
  box-shadow: none;
  background: none;
  border: 0;
  outline: none;
  margin: 0;
  padding: 4px 6px 0;
  line-height: 24px;
  overflow-y: auto;
}

.composer textarea::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.composer textarea::placeholder {
  color: #94a3b8;
}

.composer textarea:focus {
  box-shadow: none;
  border: 0;
}

.composer-actions {
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.composer-actions .search-mode-select {
  margin-left: auto;
}

.composer .attach-button, .composer .send-button {
  color: #fff;
  border: 0;
  border-radius: 999px;
  flex: 0 0 32px;
  justify-content: center;
  align-items: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
}

.composer .attach-button {
  color: #cbd5e1;
  box-shadow: none;
  background: #ffffff0f;
  margin-right: 308px;
}

.composer .attach-button:hover {
  background: #ffffff1a;
}

.composer .send-button {
  background: linear-gradient(135deg, #7c3aed, #0891b2);
  box-shadow: 0 10px 28px #0891b23d;
}

.composer .attach-button:disabled, .composer .send-button:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

.search-mode-select {
  color: #cbd5e1;
  background: #02061770;
  border: 1px solid #94a3b82e;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 32px;
  padding: 0 9px 0 10px;
  transition: all .16s;
  display: inline-flex;
  position: relative;
}

.search-mode-select:hover {
  color: #e2e8f0;
  background: #ffffff14;
}

.search-mode-select.active {
  color: #a5f3fc;
  background: #0891b22e;
  border-color: #22d3ee47;
}

.search-mode-select .toggle-dot {
  background: currentColor;
  border-radius: 999px;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  display: inline-block;
}

.search-mode-select select {
  appearance: none;
  color: currentColor;
  max-width: 150px;
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  outline: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.search-mode-select select option {
  color: #e2e8f0;
  background: #0f172a;
}

.search-mode-select svg {
  pointer-events: none;
  flex: none;
}

.spin {
  animation: 1s linear infinite spin;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 880px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .settings-card {
    grid-template-columns: 1fr;
    margin-left: 16px;
    margin-right: 16px;
  }

  .topbar, .chat-window {
    padding-left: 16px;
    padding-right: 16px;
  }

  .composer {
    padding: 10px 12px 14px;
  }

  .composer-wrap {
    width: 100%;
  }

  .composer-box {
    border-radius: 24px;
    width: 100%;
    padding: 10px;
  }

  .dev-summary {
    grid-template-columns: 1fr;
  }
}

.source-list ul {
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
}

.source-list li {
  color: #cbd5e1;
  line-height: 1.4;
}

.source-list a {
  color: #93c5fd;
  text-decoration: none;
}

.source-list a:hover {
  text-decoration: underline;
}

.source-list small {
  color: #64748b;
  margin-top: 2px;
  display: block;
}

.markdown-body {
  color: #e5e7eb;
  font-size: 15px;
  line-height: 1.7;
}

.markdown-body > :first-child {
  margin-top: 0;
}

.markdown-body > :last-child {
  margin-bottom: 0;
}

.markdown-body p {
  margin: 0 0 12px;
}

.markdown-body strong {
  color: #f8fafc;
  font-weight: 800;
}

.markdown-body ul, .markdown-body ol {
  margin: 8px 0 14px;
  padding-left: 22px;
}

.markdown-body li {
  margin: 5px 0;
  padding-left: 2px;
}

.markdown-body a {
  color: #93c5fd;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.markdown-body a:hover {
  text-decoration: underline;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  color: #f8fafc;
  letter-spacing: -.02em;
  margin: 18px 0 10px;
  line-height: 1.25;
}

.markdown-body h1 {
  font-size: 24px;
}

.markdown-body h2 {
  font-size: 20px;
}

.markdown-body h3 {
  font-size: 17px;
}

.markdown-body blockquote {
  color: #cbd5e1;
  background: #0f172a73;
  border-left: 3px solid #93c5fdb3;
  border-radius: 10px;
  margin: 12px 0;
  padding: 8px 14px;
}

.markdown-body code {
  color: #bfdbfe;
  background: #020617a6;
  border: 1px solid #94a3b824;
  border-radius: 6px;
  padding: 2px 5px;
  font-size: .92em;
}

.markdown-body pre {
  color: #bfdbfe;
  background: #00000052;
  border-radius: 12px;
  max-height: 420px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  overflow: auto;
}

.markdown-body pre code {
  background: none;
  border: 0;
  padding: 0;
}

.markdown-body table {
  border-collapse: collapse;
  border-radius: 12px;
  width: 100%;
  margin: 12px 0;
  overflow: hidden;
}

.markdown-body th, .markdown-body td {
  text-align: left;
  vertical-align: top;
  border: 1px solid #94a3b829;
  padding: 8px 10px;
}

.markdown-body th {
  color: #f8fafc;
  background: #0f172acc;
}

.composer.drag-active .composer-wrap {
  outline: 2px dashed var(--accent, #7c6cff);
  outline-offset: 4px;
  border-radius: 16px;
}

.drop-hint {
  text-align: center;
  color: var(--accent, #7c6cff);
  padding: 4px 0 8px;
  font-size: 12px;
}

.doc-chips {
  flex-wrap: wrap;
  gap: 8px;
  width: min(760px, 100%);
  margin: 0;
  padding: 0;
  display: flex;
}

.doc-chip {
  color: inherit;
  background: #ffffff0d;
  border: 1px solid #ffffff24;
  border-radius: 15px;
  align-items: center;
  gap: 6px;
  max-width: 280px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
}

.doc-chip-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
  overflow: hidden;
}

.doc-chip-state {
  opacity: .75;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  display: inline-flex;
}

.doc-chip.doc-ready {
  border-color: #50c87873;
}

.doc-chip.doc-ready .doc-chip-state {
  color: #58c07a;
  opacity: 1;
}

.doc-chip.doc-failed {
  border-color: #f05a5a80;
}

.doc-chip.doc-failed .doc-chip-state {
  color: #ef6a6a;
  opacity: 1;
}

.doc-chip.doc-uploading {
  border-style: dashed;
}

.doc-chip-remove {
  color: inherit;
  opacity: .6;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  padding: 2px;
  display: inline-flex;
}

.doc-chip-remove:hover {
  opacity: 1;
  background: #ffffff1a;
}

.attach-button {
  color: inherit;
  opacity: .65;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 10px;
  justify-content: center;
  align-self: flex-end;
  align-items: center;
  margin-bottom: 2px;
  padding: 6px;
  display: inline-flex;
}

.attach-button:hover:not(:disabled) {
  opacity: 1;
  background: #ffffff14;
}

.attach-button:disabled {
  opacity: .3;
  cursor: default;
}

.adaptive-panel {
  margin-top: 16px;
}

.adaptive-panel .dev-toggle {
  justify-content: flex-start;
  width: 100%;
}

.mode-chip {
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #cbd5e1;
  background: #02061780;
  border: 1px solid #94a3b838;
  border-radius: 999px;
  margin-left: auto;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
}

.mode-chip.mode-fast {
  color: #7dd3fc;
  border-color: #7dd3fc59;
}

.mode-chip.mode-normal {
  color: #a5b4fc;
  border-color: #a5b4fc59;
}

.mode-chip.mode-deep {
  color: #f0abfc;
  border-color: #f0abfc59;
}

.adaptive-content {
  background: #0206176b;
  border: 1px solid #94a3b81f;
  border-radius: 16px;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  display: flex;
}

.adaptive-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  display: grid;
}

.adaptive-stat {
  color: #e2e8f0;
  background: #0f172a80;
  border: 1px solid #94a3b81a;
  border-radius: 12px;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  font-size: 13px;
  display: flex;
}

.adaptive-label {
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
  font-size: 11px;
}

.adaptive-block {
  color: #cbd5e1;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  display: flex;
}

.adaptive-list {
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding-left: 16px;
  display: flex;
}

.res-status {
  color: #94a3b8;
  border: 1px solid #94a3b833;
  border-radius: 999px;
  margin-left: 8px;
  padding: 1px 7px;
  font-size: 11px;
}

.res-status.res-exact_verified, .res-status.res-alias_resolved, .res-status.res-version_resolved {
  color: #6ee7b7;
  border-color: #6ee7b759;
}

.res-status.res-likely_single_correction {
  color: #fcd34d;
  border-color: #fcd34d59;
}

.res-status.res-ambiguous {
  color: #fca5a5;
  border-color: #fca5a559;
}

.res-status.res-not_found, .res-status.res-not_verified {
  color: #f87171;
  border-color: #f8717159;
}

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

.auth-user {
  color: #cbd5e1;
  background: #0f172a8f;
  border: 1px solid #94a3b829;
  border-radius: 14px;
  align-items: center;
  gap: 9px;
  max-width: 260px;
  min-height: 42px;
  padding: 7px 12px;
  display: inline-flex;
}

.auth-user > span {
  min-width: 0;
  line-height: 1.15;
  display: grid;
}

.auth-user small {
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10px;
}

.auth-user strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f8fafc;
  max-width: 190px;
  font-size: 13px;
  overflow: hidden;
}

.logout-button {
  color: #fecaca;
  background: #7f1d1d2e;
  border: 1px solid #f8717133;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  font-weight: 700;
  display: inline-flex;
}

.logout-button:hover {
  background: #7f1d1d52;
  border-color: #f8717161;
}

.settings-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.auth-shell {
  background: #070a12;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  min-height: 100vh;
  display: grid;
  overflow: hidden;
}

.auth-visual {
  isolation: isolate;
  background: linear-gradient(145deg, #1e293bcc, #020617fa), radial-gradient(circle at 20% 20%, #7c3aed57, #0000 38%), radial-gradient(circle at 80% 72%, #0891b24d, #0000 44%);
  border-right: 1px solid #94a3b81f;
  align-items: center;
  min-height: 100vh;
  padding: clamp(36px, 7vw, 96px);
  display: flex;
  position: relative;
  overflow: hidden;
}

.auth-visual:after {
  content: "";
  z-index: -1;
  opacity: .28;
  background-image: linear-gradient(#94a3b814 1px, #0000 1px), linear-gradient(90deg, #94a3b814 1px, #0000 1px);
  background-size: 48px 48px;
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(to bottom right, #000, #0000 86%);
  mask-image: linear-gradient(to bottom right, #000, #0000 86%);
}

.auth-orb {
  z-index: -1;
  filter: blur(2px);
  opacity: .72;
  border-radius: 999px;
  position: absolute;
}

.auth-orb-one {
  background: radial-gradient(circle, #8b5cf67a, #8b5cf600);
  width: 340px;
  height: 340px;
  top: -110px;
  right: -80px;
}

.auth-orb-two {
  background: radial-gradient(circle, #06b6d461, #06b6d400);
  width: 420px;
  height: 420px;
  bottom: -170px;
  left: -170px;
}

.auth-visual-content {
  max-width: 650px;
}

.auth-brand-mark, .auth-loading-mark {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #0891b2);
  border-radius: 19px;
  place-items: center;
  width: 58px;
  height: 58px;
  display: grid;
  box-shadow: 0 22px 70px #0891b247;
}

.auth-visual-content .eyebrow {
  margin-top: 32px;
}

.auth-visual-content h1 {
  color: #f8fafc;
  letter-spacing: -.055em;
  max-width: 620px;
  margin: 15px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
}

.auth-visual-content > p:not(.eyebrow) {
  color: #a8b3c7;
  max-width: 570px;
  margin: 0;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.65;
}

.auth-security-note {
  color: #c7f9ff;
  background: #0891b21a;
  border: 1px solid #67e8f92e;
  border-radius: 15px;
  align-items: flex-start;
  gap: 11px;
  width: fit-content;
  max-width: 560px;
  margin-top: 36px;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
}

.auth-security-note svg {
  flex: none;
  margin-top: 1px;
}

.auth-panel {
  background: radial-gradient(circle at 80% 10%, #7c3aed1a, #0000 32%), #090b12;
  place-items: center;
  min-height: 100vh;
  padding: 36px;
  display: grid;
}

.auth-card {
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  background: #0f172ab8;
  border: 1px solid #94a3b829;
  border-radius: 28px;
  gap: 21px;
  width: min(440px, 100%);
  padding: clamp(26px, 5vw, 42px);
  display: grid;
  box-shadow: 0 32px 110px #0000006b;
}

.auth-card-heading {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 2px;
  display: grid;
}

.auth-lock {
  color: #c4b5fd;
  background: #7c3aed29;
  border: 1px solid #c4b5fd29;
  border-radius: 14px;
  place-items: center;
  width: 44px;
  height: 44px;
  display: grid;
}

.auth-card-heading h2 {
  color: #f8fafc;
  letter-spacing: -.035em;
  margin: 5px 0;
  font-size: 30px;
}

.auth-card-heading p:last-child {
  color: #94a3b8;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.auth-field {
  color: #cbd5e1;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  display: grid;
}

.auth-input-wrap {
  color: #64748b;
  background: #020617ad;
  border: 1px solid #94a3b833;
  border-radius: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  transition: all .16s;
  display: grid;
}

.auth-input-wrap:focus-within {
  color: #7dd3fc;
  border-color: #7dd3fc7a;
  box-shadow: 0 0 0 4px #0ea5e91c;
}

.auth-input-wrap input, .auth-server-settings input {
  color: #f8fafc;
  background: none;
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  padding: 13px 0;
}

.auth-input-wrap input::placeholder, .auth-server-settings input::placeholder {
  color: #64748b;
}

.auth-password-toggle {
  color: #94a3b8;
  background: none;
  border: 0;
  border-radius: 10px;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
}

.auth-password-toggle:hover:not(:disabled) {
  color: #e2e8f0;
  background: #ffffff12;
}

.auth-submit {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #0891b2);
  border: 0;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  font-weight: 800;
  display: inline-flex;
  box-shadow: 0 16px 40px #0891b233;
}

.auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 46px #0891b247;
}

.auth-submit:disabled, .auth-password-toggle:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.auth-error {
  color: #fecaca;
  background: #7f1d1d42;
  border: 1px solid #f8717142;
  border-radius: 13px;
  padding: 12px 13px;
  font-size: 13px;
  line-height: 1.45;
}

.auth-loading {
  color: #cbd5e1;
  background: radial-gradient(circle at 50% 35%, #0891b224, #0000 34%), #090b12;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 100vh;
  display: flex;
}

.auth-loading p {
  color: #94a3b8;
  margin: 0;
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .auth-visual {
    border-bottom: 1px solid #94a3b81f;
    border-right: 0;
    min-height: auto;
    padding: 54px 28px;
  }

  .auth-visual-content h1 {
    max-width: 720px;
    font-size: clamp(38px, 9vw, 64px);
  }

  .auth-panel {
    min-height: auto;
    padding: 44px 20px 64px;
  }
}

@media (max-width: 640px) {
  .auth-visual {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 18px;
  }

  .auth-card {
    border-radius: 22px;
    padding: 25px 20px;
  }

  .topbar {
    align-items: center;
  }

  .topbar-actions {
    gap: 7px;
  }

  .auth-user {
    justify-content: center;
    width: 42px;
    padding: 0;
  }

  .auth-user > span {
    display: none;
  }

  .logout-button {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .logout-button svg {
    width: 18px;
    height: 18px;
  }
}

/*# sourceMappingURL=app_globals_0yg4wg8.css.map*/