/* frontend/src/styles/global.css */
:root {
  --color-white: #fff;
  --color-surface: #f2f9ff;
  --color-surface-soft: #cce8ff;
  --color-navy: #04014d;
  --color-blue: #008bff;
  --color-black: #000;
  --color-text-muted: rgba(4, 1, 77, 0.68);
  --color-text-soft: rgba(4, 1, 77, 0.5);
  --color-line: rgba(4, 1, 77, 0.08);
  --color-line-strong: rgba(0, 139, 255, 0.16);
  --bg-shell:
    radial-gradient(
      circle at 14% 20%,
      rgba(0, 139, 255, 0.1),
      transparent 18%),
    radial-gradient(
      circle at 90% 12%,
      rgba(204, 232, 255, 0.62),
      transparent 16%),
    linear-gradient(
      180deg,
      #fdfefe 0%,
      #f4faff 48%,
      #edf7ff 100%);
  --shadow-panel: 0 24px 60px rgba(4, 1, 77, 0.08);
  --shadow-soft: 0 12px 28px rgba(4, 1, 77, 0.06);
  --radius-2xl: 34px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}
* {
  box-sizing: border-box;
}
html,
body,
#root {
  min-height: 100%;
  height: 100%;
}
body {
  margin: 0;
  color: var(--color-black);
  font-family:
    "Segoe UI Variable Display",
    "Segoe UI",
    Aptos,
    sans-serif;
  background: var(--bg-shell);
  transition: background-color 180ms ease, color 180ms ease;
  overflow: hidden;
}
body[data-theme=dark] {
  --color-white: #0e1328;
  --color-surface: #11172d;
  --color-surface-soft: #16203d;
  --color-navy: #f3f7ff;
  --color-blue: #52a9ff;
  --color-black: #f3f7ff;
  --color-text-muted: rgba(231, 239, 255, 0.78);
  --color-text-soft: rgba(231, 239, 255, 0.56);
  --color-line: rgba(231, 239, 255, 0.1);
  --color-line-strong: rgba(82, 169, 255, 0.28);
  --bg-shell:
    radial-gradient(
      circle at 14% 20%,
      rgba(82, 169, 255, 0.16),
      transparent 18%),
    radial-gradient(
      circle at 90% 12%,
      rgba(40, 66, 111, 0.5),
      transparent 16%),
    linear-gradient(
      180deg,
      #0c1120 0%,
      #11182b 48%,
      #0c1321 100%);
  --shadow-panel: 0 24px 60px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.22);
}
button,
textarea,
input {
  font: inherit;
}
textarea::placeholder,
input::placeholder {
  color: var(--color-text-soft);
  opacity: 1;
}
button {
  border: 0;
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
.splash-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.eyebrow,
.mini-label {
  margin: 0;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}
.subtle-copy {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.field-icon,
.inline-icon,
.orb-icon {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.field-icon {
  width: 18px;
  height: 18px;
  stroke: rgba(91, 101, 118, 0.78);
  stroke-width: 1.75;
}
.inline-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.9;
}
.orb-icon {
  width: 34px;
  height: 34px;
  stroke: var(--color-white);
  stroke-width: 1.7;
}

/* frontend/src/styles/components.css */
.ui-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-2xl);
  background: color-mix(in srgb, var(--color-white) 82%, transparent);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(18px);
}
.ui-button {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}
.ui-button:hover {
  transform: translateY(-1px);
}
.ui-button-primary {
  color: var(--color-white);
  background:
    linear-gradient(
      180deg,
      #1b1a55 0%,
      var(--color-navy) 100%);
  box-shadow: 0 12px 24px rgba(4, 1, 77, 0.16);
}
.ui-button-secondary,
.ui-button-ghost,
.ui-button-chip {
  color: var(--color-navy);
  background: color-mix(in srgb, var(--color-white) 92%, transparent);
  border: 1px solid rgba(4, 1, 77, 0.08);
}
.ui-button-send {
  color: var(--color-white);
  background:
    linear-gradient(
      135deg,
      #00a6ff,
      var(--color-blue));
  box-shadow: 0 16px 28px rgba(0, 139, 255, 0.18);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--color-text-muted);
  background: color-mix(in srgb, var(--color-white) 70%, transparent);
  border: 1px solid var(--color-line);
}
body[data-theme=dark] .ui-button-primary {
  color: #f7fbff;
  background:
    linear-gradient(
      180deg,
      #24345c 0%,
      #182746 100%);
}
body[data-theme=dark] .ui-button-secondary,
body[data-theme=dark] .ui-button-ghost,
body[data-theme=dark] .ui-button-chip {
  color: var(--color-black);
  background: color-mix(in srgb, var(--color-white) 90%, transparent);
  border-color: var(--color-line);
}
body[data-theme=dark] .status-badge {
  color: rgba(231, 239, 255, 0.84);
  background: rgba(18, 29, 53, 0.92);
  border-color: rgba(82, 169, 255, 0.16);
}

/* frontend/src/styles/auth.css */
.auth-scene {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 28px;
}
.auth-backdrop {
  position: absolute;
  inset: 0;
}
.auth-backdrop-login {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0)),
    radial-gradient(
      circle at 18% 24%,
      rgba(255, 255, 255, 0.28),
      transparent 20%),
    radial-gradient(
      circle at 81% 12%,
      rgba(255, 255, 255, 0.16),
      transparent 18%);
}
.auth-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.42);
}
.auth-orbit-one {
  width: min(1020px, 92vw);
  height: min(1020px, 92vw);
  left: 50%;
  bottom: -64vw;
  transform: translateX(-50%);
}
.auth-orbit-two {
  width: min(1360px, 116vw);
  height: min(1360px, 116vw);
  left: 50%;
  bottom: -84vw;
  transform: translateX(-50%);
}
.auth-cloudbank {
  position: absolute;
  bottom: -4vh;
  width: 52vw;
  height: 28vh;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.2) 55%,
      transparent 72%),
    radial-gradient(
      circle at 55% 35%,
      rgba(255, 255, 255, 0.98),
      rgba(255, 255, 255, 0.22) 52%,
      transparent 73%),
    radial-gradient(
      circle at 80% 45%,
      rgba(255, 255, 255, 0.92),
      rgba(255, 255, 255, 0.16) 48%,
      transparent 74%);
  filter: blur(18px);
  opacity: 0.82;
}
.auth-cloudbank-left {
  left: -6vw;
}
.auth-cloudbank-right {
  right: -8vw;
}
.login-card {
  width: min(454px, calc(100vw - 32px));
  position: relative;
  z-index: 1;
}
.login-card-inner {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 33px;
  padding: 38px 40px 32px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.58),
      rgba(255, 255, 255, 0.74));
  box-shadow: 0 24px 54px rgba(46, 88, 134, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
}
.auth-card {
  position: relative;
  z-index: 1;
  padding: 30px;
}
.auth-card-premium {
  width: min(460px, calc(100vw - 32px));
  background: rgba(255, 255, 255, 0.93);
}
.auth-card-head {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-bottom: 18px;
}
.auth-card-head-login {
  justify-items: center;
  gap: 14px;
  margin-bottom: 30px;
}
.auth-card-head h1,
.auth-card-head h2 {
  margin: 0;
}
.auth-icon-shell {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96),
      rgba(225, 241, 255, 0.9));
  box-shadow: 0 16px 32px rgba(25, 118, 210, 0.16);
}
.auth-icon-shell-login {
  width: 68px;
  height: 68px;
  border-radius: 20px;
}
.auth-mini-logo {
  height: 34px;
}
.auth-mini-logo-login {
  height: 30px;
}
.login-subtitle,
.auth-subcopy,
.auth-footnote,
.dev-preview,
.status-card p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.login-form,
.auth-form {
  display: grid;
  gap: 14px;
}
.field-shell {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 14px 0 16px;
  border: 1px solid rgba(4, 1, 77, 0.03);
  border-radius: 16px;
  background: rgba(235, 239, 245, 0.72);
}
.field-shell input {
  border: 0;
  width: 100%;
  padding: 15px 12px;
  background: transparent;
}
.auth-form input,
.auth-form textarea,
.field-shell input {
  color: var(--color-black);
}
.auth-form input:focus,
.field-shell input:focus {
  outline: none;
}
.otp-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.otp-grid input {
  width: 100%;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  border: 1px solid rgba(16, 36, 60, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.98);
}
.auth-inline-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.login-submit,
.auth-form .ui-button-primary {
  padding: 15px 18px;
  border-radius: 16px;
}
.login-status,
.dev-preview,
.status-card {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 16px;
}
.login-status {
  background: rgba(255, 236, 236, 0.88);
}
.login-status p {
  margin: 0;
  color: #8b1f1f;
}
.status-neutral {
  background: rgba(16, 36, 60, 0.05);
}
.status-success {
  background: rgba(183, 240, 222, 0.35);
}
.status-error {
  background: rgba(255, 224, 224, 0.78);
}

/* frontend/src/styles/dashboard.css */
.workspace-shell {
  width: min(1600px, calc(100% - 28px));
  margin: 0 auto;
  height: calc(100vh - 12px);
  padding: 10px 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}
.workspace-topbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--color-line);
  border-radius: 26px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--color-white) 94%, transparent),
      color-mix(in srgb, var(--color-white) 86%, transparent));
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(24px);
  overflow: visible;
}
.workspace-topbar-left,
.workspace-topbar-center,
.workspace-topbar-right,
.workspace-brand,
.workspace-topbar-actions,
.sidebar-section-head,
.composer-toolbar,
.result-head,
.message-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.workspace-topbar-left {
  min-width: 0;
  flex: 0 1 auto;
}
.workspace-topbar-center {
  flex: 1;
  min-width: 0;
  justify-content: center;
}
.workspace-topbar-right {
  flex: 0 0 auto;
  justify-content: flex-end;
}
.workspace-topbar-actions {
  position: relative;
}
.workspace-brand h1,
.dashboard-copy h2,
.result-head h3,
.content-page-card h3 {
  margin: 0;
}
.workspace-logo {
  height: 42px;
}
.workspace-brand .eyebrow {
  white-space: nowrap;
}
.workspace-brand h1 {
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}
.sidebar-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--color-white) 82%, transparent);
  border: 1px solid var(--color-line);
  color: var(--color-navy);
}
.workspace-search {
  width: min(100%, 440px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--color-line);
  background: color-mix(in srgb, var(--color-white) 74%, transparent);
  color: var(--color-text-soft);
}
.workspace-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--color-black);
}
.workspace-search input:focus {
  outline: none;
}
.quick-action-button {
  border-radius: 14px;
  padding: 10px 14px;
}
.user-avatar,
.profile-ring {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--color-white);
  background:
    linear-gradient(
      135deg,
      var(--color-navy),
      var(--color-blue));
  box-shadow: 0 14px 24px rgba(0, 139, 255, 0.18);
  font-weight: 700;
}
.profile-trigger {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-white) 88%, transparent);
  border: 1px solid var(--color-line);
}
.profile-trigger-static {
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0;
}
.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  width: min(360px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--color-line);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--color-white) 96%, transparent),
      color-mix(in srgb, var(--color-white) 90%, transparent));
  box-shadow: var(--shadow-panel);
  display: grid;
  gap: 16px;
}
.profile-dropdown-head,
.settings-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-dropdown-head strong,
.settings-toggle-row strong {
  display: block;
}
.profile-dropdown-head span,
.settings-toggle-row span,
.settings-empty,
.settings-list span {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.settings-toggle-row {
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--color-line);
  background: color-mix(in srgb, var(--color-white) 82%, transparent);
}
.theme-toggle {
  width: 54px;
  height: 30px;
  position: relative;
  border-radius: 999px;
  padding: 0;
  background: rgba(4, 1, 77, 0.14);
}
.theme-toggle-active {
  background: rgba(0, 139, 255, 0.32);
}
.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform 180ms ease;
}
.theme-toggle-active .theme-toggle-thumb {
  transform: translateX(24px);
}
.settings-section {
  display: grid;
  gap: 10px;
}
.settings-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.settings-chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: color-mix(in srgb, var(--color-white) 85%, transparent);
  font-size: 0.84rem;
}
.settings-list {
  display: grid;
  gap: 8px;
  max-height: 150px;
  overflow: auto;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--color-line);
  background: color-mix(in srgb, var(--color-white) 82%, transparent);
}
.profile-logout-button {
  justify-content: center;
  padding: 12px 16px;
  border-radius: 16px;
}
.workspace-grid {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) 288px;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}
.workspace-grid-chat {
  grid-template-columns: 220px minmax(0, 1fr);
}
.workspace-grid-collapsed {
  grid-template-columns: 84px minmax(0, 1fr) 288px;
}
.workspace-grid-chat.workspace-grid-collapsed {
  grid-template-columns: 84px minmax(0, 1fr);
}
.sidebar-panel,
.chat-workspace-card,
.content-page-card {
  border-radius: 30px;
  border: 1px solid var(--color-line);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--color-white) 94%, transparent),
      color-mix(in srgb, var(--color-white) 84%, transparent));
  box-shadow: var(--shadow-panel);
}
.sidebar-panel {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px 14px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--color-white) 96%, transparent),
      color-mix(in srgb, var(--color-white) 84%, transparent)),
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.42),
      transparent 32%);
  backdrop-filter: blur(20px);
}
.sidebar-backdrop {
  display: none;
}
.sidebar-panel-collapsed {
  padding-inline: 10px;
}
.new-chat-button {
  width: 100%;
  justify-content: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  font-weight: 600;
  background: color-mix(in srgb, var(--color-white) 92%, transparent);
  border-color: rgba(4, 1, 77, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}
.new-chat-button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 139, 255, 0.18);
  box-shadow: 0 12px 24px rgba(4, 1, 77, 0.08);
}
.sidebar-history,
.history-list,
.dashboard-page,
.page-list,
.settings-grid,
.access-grid,
.sidebar-nav {
  display: grid;
  gap: 12px;
}
.sidebar-section {
  display: grid;
  gap: 12px;
  padding: 2px 2px 0;
}
.sidebar-history {
  min-height: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(4, 1, 77, 0.08);
}
.sidebar-section-head {
  justify-content: space-between;
  align-items: center;
}
.sidebar-nav {
  grid-template-columns: 1fr;
}
.sidebar-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--color-text-muted);
  background: color-mix(in srgb, var(--color-white) 42%, transparent);
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}
.sidebar-nav-item:hover {
  transform: translateY(-1px);
  color: var(--color-navy);
  border-color: rgba(4, 1, 77, 0.08);
  background: color-mix(in srgb, var(--color-white) 84%, transparent);
  box-shadow: 0 10px 20px rgba(4, 1, 77, 0.06);
}
.sidebar-nav-item-active {
  color: var(--color-navy);
  background:
    linear-gradient(
      135deg,
      rgba(0, 139, 255, 0.16),
      rgba(204, 232, 255, 0.55)),
    color-mix(in srgb, var(--color-white) 82%, transparent);
  border: 1px solid rgba(0, 139, 255, 0.16);
  box-shadow: 0 12px 24px rgba(0, 139, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.sidebar-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}
.sidebar-nav-item span:last-child {
  min-width: 0;
}
.history-list {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}
.history-item {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  border-radius: 18px;
  background: color-mix(in srgb, var(--color-white) 78%, transparent);
  border: 1px solid rgba(4, 1, 77, 0.06);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}
.history-item:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 139, 255, 0.14);
  background: color-mix(in srgb, var(--color-white) 88%, transparent);
  box-shadow: 0 10px 20px rgba(4, 1, 77, 0.06);
}
.history-item strong {
  font-size: 0.96rem;
  line-height: 1.35;
}
.history-item strong,
.history-item span {
  overflow-wrap: anywhere;
}
.history-item span,
.sidebar-link-button {
  color: var(--color-text-soft);
}
.sidebar-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 600;
  transition: color 180ms ease, opacity 180ms ease;
}
.sidebar-link-button:hover {
  color: var(--color-blue);
}
.history-item-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 139, 255, 0.44);
  justify-self: center;
}
.workspace-main {
  min-width: 0;
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: hidden;
}
.dashboard-page {
  height: 100%;
  max-width: none;
  min-height: 0;
}
.chat-workspace-card {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
}
.chat-workspace-body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
}
.dashboard-hero-card,
.response-panel {
  border-radius: 24px;
  border: 1px solid var(--color-line);
  background: color-mix(in srgb, var(--color-white) 72%, transparent);
}
.dashboard-hero-card {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px 16px;
  overflow: hidden;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}
.hero-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(0, 139, 255, 0.26),
      rgba(0, 139, 255, 0.04) 58%,
      transparent 72%);
}
.hero-orb::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(0, 139, 255, 0.12),
      transparent 66%);
  filter: blur(12px);
}
.hero-orb-inner {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    linear-gradient(
      180deg,
      rgba(204, 232, 255, 0.95),
      rgba(0, 139, 255, 0.16));
  border: 1px solid rgba(0, 139, 255, 0.28);
}
.dashboard-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.dashboard-copy h2 {
  font-size: clamp(1.32rem, 1.9vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.dashboard-copy span {
  color: var(--color-blue);
}
.dashboard-copy p,
.answer-text,
.audit-row p,
.metric-card p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.response-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  overflow: hidden;
}
.result-head {
  justify-content: space-between;
}
.answer-stream {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  padding-bottom: 2px;
}
.answer-message {
  display: grid;
  gap: 8px;
}
.answer-message-user {
  justify-items: end;
}
.answer-message-agent {
  justify-items: start;
}
.message-meta {
  justify-content: space-between;
  width: min(100%, 760px);
}
.answer-message-user .message-meta {
  width: min(100%, 640px);
}
.answer-role {
  color: var(--color-text-soft);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.message-time {
  color: var(--color-text-soft);
  font-size: 0.8rem;
}
.answer-card,
.access-card,
.metric-card,
.audit-row {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(4, 1, 77, 0.08);
  background: color-mix(in srgb, var(--color-white) 78%, transparent);
}
.answer-card {
  width: min(100%, 760px);
  color: var(--color-black);
}
.answer-card-user {
  width: min(100%, 640px);
  background:
    linear-gradient(
      180deg,
      rgba(0, 139, 255, 0.12),
      rgba(204, 232, 255, 0.22));
  border: 1px solid rgba(0, 139, 255, 0.16);
}
.warning-box {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff2d9;
  color: #80550b;
}
.source-box {
  width: fit-content;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0, 139, 255, 0.1);
  color: var(--color-blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.answer-text {
  white-space: pre-line;
}
.processing-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.processing-step {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(4, 1, 77, 0.08);
  background: rgba(204, 232, 255, 0.22);
}
.processing-step span {
  font-weight: 700;
  color: var(--color-navy);
}
.processing-step small {
  color: var(--color-text-muted);
  line-height: 1.4;
}
.processing-step-active {
  border-color: rgba(0, 139, 255, 0.24);
  box-shadow: inset 3px 0 0 rgba(0, 139, 255, 0.52);
}
.processing-step-complete {
  background: rgba(69, 181, 116, 0.1);
}
.suggestion-chip-row,
.inline-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.inline-suggestions {
  margin-top: 14px;
}
.suggestion-chip {
  max-width: 100%;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid rgba(0, 139, 255, 0.16);
  background: color-mix(in srgb, var(--color-white) 88%, transparent);
  color: var(--color-navy);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}
.suggestion-chip:hover:not(:disabled) {
  border-color: rgba(0, 139, 255, 0.32);
  background: rgba(204, 232, 255, 0.42);
}
.suggestion-chip:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}
.composer-card {
  display: grid;
  min-height: 0;
}
.composer-frame {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(255, 255, 255, 0.92));
  border: 1px solid var(--color-line-strong);
  box-shadow: 0 16px 32px rgba(4, 1, 77, 0.08), inset 0 0 0 5px rgba(204, 232, 255, 0.18);
}
.query-input {
  width: 100%;
  min-height: 68px;
  max-height: 92px;
  border: 0;
  resize: none;
  padding: 0;
  color: var(--color-black);
  background: transparent;
  line-height: 1.6;
  font-size: 0.98rem;
}
.query-input-clean {
  min-height: 96px;
}
.query-input:focus {
  outline: none;
}
body[data-theme=dark] .workspace-search {
  background: rgba(17, 23, 45, 0.82);
  color: var(--color-text-muted);
}
body[data-theme=dark] .profile-dropdown,
body[data-theme=dark] .settings-toggle-row,
body[data-theme=dark] .settings-list,
body[data-theme=dark] .settings-chip,
body[data-theme=dark] .sidebar-panel,
body[data-theme=dark] .chat-workspace-card,
body[data-theme=dark] .content-page-card {
  background:
    linear-gradient(
      180deg,
      rgba(14, 19, 40, 0.95),
      rgba(17, 23, 45, 0.88));
}
body[data-theme=dark] .sidebar-panel {
  background:
    linear-gradient(
      180deg,
      rgba(14, 19, 40, 0.96),
      rgba(17, 23, 45, 0.88)),
    radial-gradient(
      circle at top left,
      rgba(82, 169, 255, 0.12),
      transparent 36%);
}
body[data-theme=dark] .new-chat-button,
body[data-theme=dark] .history-item,
body[data-theme=dark] .sidebar-nav-item {
  background: rgba(18, 29, 53, 0.68);
  border-color: rgba(231, 239, 255, 0.08);
}
body[data-theme=dark] .sidebar-nav-item-active {
  background:
    linear-gradient(
      135deg,
      rgba(82, 169, 255, 0.26),
      rgba(17, 23, 45, 0.92)),
    rgba(18, 29, 53, 0.92);
  border-color: rgba(82, 169, 255, 0.28);
}
body[data-theme=dark] .dashboard-hero-card,
body[data-theme=dark] .response-panel {
  background:
    linear-gradient(
      180deg,
      rgba(15, 22, 40, 0.92),
      rgba(18, 26, 48, 0.84));
  border-color: rgba(231, 239, 255, 0.1);
}
body[data-theme=dark] .dashboard-copy h2,
body[data-theme=dark] .result-head h3,
body[data-theme=dark] .content-page-card h3,
body[data-theme=dark] .history-item strong,
body[data-theme=dark] .profile-dropdown-head strong,
body[data-theme=dark] .settings-toggle-row strong,
body[data-theme=dark] .metric-card strong,
body[data-theme=dark] .access-card strong {
  color: var(--color-black);
}
body[data-theme=dark] .answer-role,
body[data-theme=dark] .message-time,
body[data-theme=dark] .history-item span,
body[data-theme=dark] .sidebar-link-button {
  color: var(--color-text-muted);
}
body[data-theme=dark] .answer-card,
body[data-theme=dark] .access-card,
body[data-theme=dark] .metric-card,
body[data-theme=dark] .audit-row {
  background: rgba(18, 29, 53, 0.84);
  border-color: rgba(231, 239, 255, 0.08);
}
body[data-theme=dark] .answer-card-user {
  background:
    linear-gradient(
      180deg,
      rgba(82, 169, 255, 0.2),
      rgba(24, 40, 72, 0.96));
  border-color: rgba(82, 169, 255, 0.26);
}
body[data-theme=dark] .answer-text,
body[data-theme=dark] .dashboard-copy p,
body[data-theme=dark] .audit-row p,
body[data-theme=dark] .metric-card p,
body[data-theme=dark] .audit-meta,
body[data-theme=dark] .profile-dropdown-head span,
body[data-theme=dark] .settings-toggle-row span,
body[data-theme=dark] .settings-empty,
body[data-theme=dark] .settings-list span {
  color: rgba(231, 239, 255, 0.82);
}
body[data-theme=dark] .composer-frame {
  background:
    linear-gradient(
      180deg,
      rgba(14, 19, 40, 0.98),
      rgba(17, 23, 45, 0.94));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(82, 169, 255, 0.14);
}
body[data-theme=dark] .query-input {
  color: var(--color-black);
  caret-color: var(--color-blue);
}
body[data-theme=dark] .report-block {
  background:
    linear-gradient(
      180deg,
      #0f172c,
      #15223b);
  color: rgba(231, 239, 255, 0.9);
  border: 1px solid rgba(82, 169, 255, 0.14);
}
body[data-theme=dark] .warning-box {
  background: rgba(120, 85, 11, 0.22);
  color: #ffd98a;
}
body[data-theme=dark] .source-box,
body[data-theme=dark] .processing-step,
body[data-theme=dark] .suggestion-chip {
  background: rgba(24, 40, 72, 0.82);
  border-color: rgba(82, 169, 255, 0.18);
}
body[data-theme=dark] .processing-step-complete {
  background: rgba(69, 181, 116, 0.12);
}
.composer-toolbar {
  justify-content: flex-end;
}
.send-button {
  padding: 12px 22px;
  border-radius: 14px;
}
.content-page-card {
  display: grid;
  gap: 16px;
  max-width: 100%;
  min-height: 0;
  padding: 18px;
  overflow: auto;
}
.report-block {
  margin: 0;
  padding: 18px;
  border-radius: 20px;
  background: #101d31;
  color: #dbeeff;
  overflow: auto;
  white-space: pre-wrap;
}
.access-grid,
.settings-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.access-card span {
  display: block;
  margin-top: 6px;
  color: var(--color-blue);
  font-size: 0.92rem;
}
.metric-card strong,
.access-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.08rem;
  color: var(--color-navy);
}
.accent-card {
  background:
    radial-gradient(
      circle at top right,
      rgba(0, 139, 255, 0.14),
      transparent 36%),
    linear-gradient(
      180deg,
      rgba(242, 249, 255, 0.98),
      rgba(255, 255, 255, 0.92));
}
.audit-list {
  display: grid;
  gap: 14px;
}
.audit-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.audit-meta {
  color: var(--color-text-muted);
  text-align: right;
}
@media (max-width: 1440px) {
  .workspace-shell {
    width: min(100%, calc(100% - 20px));
  }
  .workspace-search {
    width: min(100%, 360px);
  }
}
@media (max-width: 1280px) {
  .workspace-topbar {
    gap: 14px;
    padding: 12px 14px;
  }
  .workspace-logo {
    height: 38px;
  }
  .workspace-brand h1 {
    font-size: 1.16rem;
  }
  .workspace-search {
    width: min(100%, 300px);
  }
  .quick-action-button {
    padding: 10px 12px;
  }
}
@media (max-width: 1120px) {
  body {
    overflow: auto;
  }
  .workspace-grid,
  .workspace-grid-collapsed,
  .workspace-grid-chat,
  .workspace-grid-chat.workspace-grid-collapsed {
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .workspace-shell {
    height: auto;
    min-height: 100vh;
    grid-template-rows: auto auto;
    padding: 10px 0 16px;
  }
  .workspace-main,
  .dashboard-page,
  .chat-workspace-card {
    overflow: visible;
  }
  .sidebar-panel {
    height: auto;
    padding: 14px;
  }
  .sidebar-panel-collapsed {
    padding-inline: 14px;
  }
  .workspace-topbar {
    flex-wrap: wrap;
    align-items: stretch;
  }
  .workspace-topbar-left,
  .workspace-topbar-center,
  .workspace-topbar-right {
    width: 100%;
  }
  .workspace-topbar-left,
  .workspace-topbar-right {
    justify-content: space-between;
  }
  .workspace-topbar-center {
    order: 3;
    justify-content: stretch;
  }
  .workspace-topbar-right {
    order: 2;
    justify-content: flex-end;
  }
  .workspace-search {
    width: 100%;
    max-width: none;
  }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 39;
    border: 0;
    background: rgba(4, 1, 77, 0.18);
    backdrop-filter: blur(4px);
  }
  .sidebar-panel-compact {
    position: fixed;
    top: 78px;
    left: 12px;
    bottom: 12px;
    width: min(360px, calc(100vw - 24px));
    z-index: 40;
    overflow: auto;
    transform: translateX(calc(-100% - 20px));
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
  }
  .sidebar-panel-mobile-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .history-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
}
@media (max-width: 860px) {
  .workspace-shell {
    width: min(100%, calc(100% - 12px));
  }
  .workspace-topbar,
  .workspace-topbar-actions,
  .result-head,
  .audit-row,
  .composer-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .workspace-topbar-left,
  .workspace-brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
  .workspace-topbar-left {
    gap: 10px;
  }
  .workspace-brand {
    gap: 10px;
  }
  .workspace-topbar-right {
    gap: 10px;
  }
  .workspace-search {
    width: 100%;
  }
  .quick-action-button,
  .profile-trigger {
    align-self: flex-start;
  }
  .chat-workspace-card,
  .sidebar-panel,
  .content-page-card {
    padding: 12px;
  }
  .dashboard-hero-card,
  .response-panel {
    padding: 12px;
  }
  .dashboard-hero-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .hero-orb {
    width: 48px;
    height: 48px;
  }
  .hero-orb-inner {
    width: 32px;
    height: 32px;
  }
  .dashboard-copy h2 {
    font-size: 1.55rem;
  }
  .sidebar-nav,
  .history-list {
    grid-template-columns: 1fr;
  }
  .message-meta,
  .answer-message-user .message-meta,
  .answer-card,
  .answer-card-user {
    width: 100%;
  }
  .send-button {
    width: 100%;
  }
}
@media (max-width: 560px) {
  .workspace-shell {
    width: min(100%, calc(100% - 8px));
    gap: 10px;
  }
  .workspace-topbar {
    border-radius: 20px;
    padding: 12px;
  }
  .workspace-brand .eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }
  .workspace-brand h1 {
    font-size: 1.02rem;
  }
  .workspace-logo {
    height: 32px;
  }
  .sidebar-toggle,
  .profile-trigger {
    width: 40px;
    height: 40px;
  }
  .workspace-topbar-left,
  .workspace-topbar-right {
    gap: 8px;
  }
  .workspace-topbar-right {
    justify-content: stretch;
  }
  .quick-action-button,
  .profile-trigger {
    align-self: stretch;
  }
  .profile-trigger {
    width: 100%;
    border-radius: 16px;
  }
  .user-avatar {
    width: 38px;
    height: 38px;
  }
  .sidebar-panel-compact {
    top: 72px;
    left: 8px;
    bottom: 8px;
    width: min(340px, calc(100vw - 16px));
  }
  .new-chat-button,
  .sidebar-nav-item,
  .history-item {
    padding: 12px 13px;
    border-radius: 16px;
  }
  .query-input-clean {
    min-height: 84px;
  }
  .profile-dropdown {
    width: min(100vw - 20px, 340px);
  }
}
@media (max-width: 420px) {
  .workspace-shell {
    width: 100%;
    padding-inline: 0;
  }
  .workspace-topbar,
  .sidebar-panel,
  .chat-workspace-card,
  .content-page-card {
    border-radius: 18px;
  }
  .workspace-topbar {
    padding: 10px 12px;
  }
  .workspace-brand {
    gap: 8px;
  }
  .workspace-brand .eyebrow {
    font-size: 0.58rem;
  }
  .sidebar-panel,
  .chat-workspace-card {
    padding: 10px;
  }
  .workspace-search {
    padding: 11px 12px;
  }
  .quick-action-button {
    width: 100%;
    justify-content: center;
  }
  .dashboard-copy h2 {
    font-size: 1.4rem;
  }
  .query-input {
    font-size: 0.94rem;
  }
  .sidebar-panel-compact {
    top: 68px;
  }
}
.chat-workspace-card-standard {
  position: relative;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 26px;
  background: color-mix(in srgb, var(--color-white) 70%, transparent);
  box-shadow: none;
}
.chat-thread {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.chat-thread-inner {
  width: min(100%, 920px);
  min-height: 100%;
  margin: 0 auto;
  padding: 32px 24px 22px;
}
.chat-thread-inner-empty {
  display: grid;
  place-items: center;
}
.chat-empty-state {
  width: min(100%, 720px);
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  padding: 28px 16px 80px;
}
.chat-empty-orb {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(204, 232, 255, 0.92);
  border: 1px solid rgba(0, 139, 255, 0.22);
  box-shadow: 0 14px 28px rgba(0, 139, 255, 0.14);
}
.chat-empty-state h2 {
  margin: 0;
  color: var(--color-black);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 650;
}
.chat-empty-state h2 span {
  color: var(--color-blue);
}
.chat-source-pill {
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: color-mix(in srgb, var(--color-white) 86%, transparent);
  color: var(--color-navy);
  font-size: 0.92rem;
  font-weight: 700;
}
.chat-empty-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.chat-message {
  display: flex;
  gap: 12px;
  margin: 0 0 26px;
}
.chat-message-user {
  justify-content: flex-end;
}
.chat-message-assistant {
  justify-content: flex-start;
}
.chat-bubble {
  max-width: min(74%, 680px);
  padding: 12px 16px;
  border-radius: 22px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.chat-bubble-user {
  color: var(--color-navy);
  background: rgba(204, 232, 255, 0.68);
  border: 1px solid rgba(0, 139, 255, 0.15);
}
.assistant-avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-blue);
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(204, 232, 255, 0.86);
  border: 1px solid rgba(0, 139, 255, 0.2);
}
.assistant-message-body {
  width: min(100%, 820px);
  min-width: 0;
}
.assistant-message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--color-text-soft);
  font-size: 0.84rem;
}
.assistant-message-meta strong {
  color: var(--color-navy);
}
.assistant-response {
  display: grid;
  gap: 12px;
  color: var(--color-black);
  line-height: 1.62;
}
.assistant-section-list {
  display: grid;
  gap: 14px;
}
.assistant-section {
  display: grid;
  gap: 6px;
}
.assistant-section h4 {
  margin: 0;
  color: var(--color-navy);
  font-size: 0.92rem;
  line-height: 1.3;
}
.assistant-copy-stack {
  display: grid;
  gap: 8px;
}
.assistant-copy {
  margin: 0;
  color: var(--color-black);
  overflow-wrap: anywhere;
}
.assistant-copy-bullet {
  padding-left: 2px;
}
.assistant-bullet-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: var(--color-black);
}
.chat-processing {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(204, 232, 255, 0.4);
  color: var(--color-text-muted);
  border: 1px solid rgba(0, 139, 255, 0.12);
}
.chat-processing-compact {
  opacity: 0.86;
}
.chat-processing div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.chat-processing strong {
  color: var(--color-navy);
  font-size: 0.84rem;
}
.chat-processing span:last-child {
  font-size: 0.84rem;
}
.processing-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-blue);
  box-shadow: 0 0 0 5px rgba(0, 139, 255, 0.1);
}
.processing-dot-complete {
  background: #28a56b;
  box-shadow: 0 0 0 5px rgba(40, 165, 107, 0.1);
}
.processing-dot-error {
  background: #d96b2b;
  box-shadow: 0 0 0 5px rgba(217, 107, 43, 0.12);
}
.assistant-meta-stack {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}
.assistant-meta-pill {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 8px 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--color-white) 78%, transparent);
  border: 1px solid var(--color-line);
  color: var(--color-text-muted);
  font-size: 0.84rem;
}
.assistant-meta-pill strong {
  color: var(--color-navy);
}
.assistant-meta-pill span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.assistant-source-links a {
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.assistant-source-links a:hover {
  color: #0b3f7a;
}
.assistant-meta-pill-warn {
  background: #fff2d9;
  color: #80550b;
}
.composer-shell {
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding: 12px 24px 18px;
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      color-mix(in srgb, var(--color-white) 78%, transparent) 28%,
      color-mix(in srgb, var(--color-white) 92%, transparent) 100%);
}
.composer-shell .composer-frame {
  width: min(100%, 920px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 10px 10px 10px 16px;
  border-radius: 28px;
  background: color-mix(in srgb, var(--color-white) 94%, transparent);
  border: 1px solid rgba(4, 1, 77, 0.12);
  box-shadow: 0 18px 42px rgba(4, 1, 77, 0.08);
}
.composer-shell .suggestion-chip-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-right: 4px;
}
.composer-shell .query-input {
  min-height: 28px;
  max-height: 180px;
  overflow-y: auto;
  padding: 8px 0;
  line-height: 1.5;
}
.composer-shell .query-input-clean {
  min-height: 28px;
}
.composer-shell .composer-toolbar {
  align-self: end;
}
.composer-shell .send-button {
  min-width: 78px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 18px;
}
.composer-shell .send-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}
.suggestion-chip {
  border-radius: 999px;
  font-weight: 600;
}
.sidebar-nav-item-active {
  background: rgba(204, 232, 255, 0.46);
  box-shadow: none;
}
.history-item {
  padding: 12px 14px;
}
body[data-theme=dark] .chat-workspace-card-standard {
  background: rgba(14, 19, 40, 0.7);
}
body[data-theme=dark] .chat-source-pill,
body[data-theme=dark] .chat-bubble-user,
body[data-theme=dark] .assistant-meta-pill,
body[data-theme=dark] .composer-shell .composer-frame {
  background: rgba(18, 29, 53, 0.84);
  border-color: rgba(231, 239, 255, 0.1);
}
body[data-theme=dark] .composer-shell {
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(14, 19, 40, 0.78) 28%,
      rgba(14, 19, 40, 0.96) 100%);
}
body[data-theme=dark] .chat-processing {
  background: rgba(24, 40, 72, 0.82);
  border-color: rgba(82, 169, 255, 0.18);
}
body[data-theme=dark] .assistant-copy,
body[data-theme=dark] .assistant-bullet-list,
body[data-theme=dark] .assistant-response,
body[data-theme=dark] .chat-empty-state h2 {
  color: var(--color-black);
}
@media (max-width: 860px) {
  .chat-workspace-card-standard {
    min-height: calc(100vh - 180px);
  }
  .chat-thread-inner {
    padding: 22px 14px 16px;
  }
  .chat-empty-state {
    padding-bottom: 36px;
  }
  .chat-empty-state h2 {
    font-size: 2rem;
  }
  .chat-bubble {
    max-width: 88%;
  }
  .assistant-message-body {
    width: 100%;
  }
  .composer-shell {
    padding: 10px 12px 14px;
  }
  .composer-shell .composer-frame {
    border-radius: 22px;
  }
  .composer-shell .send-button {
    width: auto;
  }
}
@media (max-width: 560px) {
  .chat-message {
    gap: 8px;
    margin-bottom: 22px;
  }
  .assistant-avatar {
    width: 28px;
    height: 28px;
  }
  .chat-bubble {
    max-width: 92%;
  }
  .assistant-meta-pill {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .composer-shell .composer-frame {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .composer-shell .composer-toolbar {
    justify-self: end;
  }
}
