:root {
  color-scheme: dark;
  --bg: #171717;
  --sidebar-bg: #202020;
  --surface: #212121;
  --surface-2: #2b2b2b;
  --surface-3: #303030;
  --menu-bg: #303030;
  --line: #3a3a3a;
  --line-soft: #2f2f2f;
  --text: #f4f4f4;
  --muted: #b9b9b9;
  --subtle: #8f8f8f;
  --green: #75c59a;
  --green-strong: #2f8f5b;
  --green-soft: rgba(117, 197, 154, 0.15);
  --blue: #88b8ff;
  --amber: #e4be6a;
  --red: #ef8b7e;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f5f1;
  --sidebar-bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #ece7df;
  --surface-3: #f4efe8;
  --menu-bg: #ffffff;
  --line: #d7cec3;
  --line-soft: #e5ddd3;
  --text: #1f1d1a;
  --muted: #5f5b55;
  --subtle: #837c73;
  --green: #287c57;
  --green-strong: #1f6e4b;
  --green-soft: rgba(40, 124, 87, 0.12);
  --blue: #255fbd;
  --amber: #9a6a1f;
  --red: #b4473c;
  --shadow: 0 20px 60px rgba(72, 55, 35, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button,
textarea,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: var(--blue);
}

.hidden {
  display: none !important;
}

.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;
}

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

.sidebar {
  min-height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line-soft);
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
}

.sidebar-top,
.brand-row,
.section-row,
.top-row,
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-row {
  justify-content: flex-start;
}

.brand-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.maplelex-logo {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.maplelex-logo svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #d57a4f;
  stroke-width: 4.2;
  stroke-linejoin: miter;
  stroke-linecap: square;
  filter: drop-shadow(0 2px 10px rgba(213, 122, 79, 0.3));
}

.maplelex-logo.small {
  width: 34px;
  height: 34px;
}

.brand-name {
  font-size: 22px;
  font-weight: 780;
  letter-spacing: 0;
}

.brand-subtitle {
  color: var(--subtle);
  font-size: 13px;
  margin-top: 1px;
}

.icon-button {
  border: 0;
  background: transparent;
  min-width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
}

.icon-button:hover,
.nav-button:hover,
.chat-row:hover,
.prompt-pills button:hover,
.tool-pill:hover {
  background: var(--surface-2);
}

.nav-button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  font-size: 15px;
}

#searchBtn {
  min-height: 46px;
  padding: 10px 12px;
}

.nav-button.active {
  background: var(--surface-2);
}

.how-nav-button {
  border: 1px solid rgba(213, 122, 79, 0.24);
  background: rgba(213, 122, 79, 0.08);
}

.icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
}

.icon-search {
  position: relative;
}

.icon-search::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-search::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(6px, 6px) rotate(45deg);
  transform-origin: center;
}

.sidebar-section {
  display: grid;
  gap: 10px;
}

.section-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  padding: 0 4px;
}

.search-box input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  padding: 8px 10px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.chat-history {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 4px;
  padding-right: 2px;
}

.chat-history-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px 32px;
  align-items: center;
  border-radius: 10px;
}

.chat-row {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  min-height: 38px;
  padding: 9px 70px 9px 10px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  grid-column: 1 / -1;
  grid-row: 1;
}

.chat-row.active {
  color: var(--text);
  background: var(--surface-2);
}

.rename-chat,
.delete-chat {
  grid-row: 1;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--subtle);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  opacity: 0.56;
  z-index: 1;
}

.rename-chat {
  grid-column: 2;
}

.delete-chat {
  grid-column: 3;
}

.chat-history-item:hover .rename-chat,
.chat-history-item:focus-within .rename-chat,
.chat-history-item:hover .delete-chat,
.chat-history-item:focus-within .delete-chat {
  opacity: 1;
}

.rename-chat:hover,
.rename-chat:focus-visible {
  color: #d8f1ff;
  background: rgba(136, 184, 255, 0.16);
  outline: none;
}

.delete-chat:hover,
.delete-chat:focus-visible {
  color: #ffd5cf;
  background: rgba(239, 139, 126, 0.16);
  outline: none;
}

.pencil-icon {
  position: relative;
  width: 15px;
  height: 15px;
  transform: rotate(-38deg);
}

.pencil-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 11px;
  height: 4px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.pencil-icon::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 7px;
  width: 0;
  height: 0;
  border-left: 5px solid currentColor;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

.trash-icon {
  position: relative;
  width: 14px;
  height: 15px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 3px 3px;
}

.trash-icon::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -5px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.trash-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  top: -8px;
  width: 6px;
  height: 3px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

.empty-history {
  color: var(--subtle);
  font-size: 13px;
  padding: 8px 4px;
  line-height: 1.4;
}

.sidebar-bottom {
  display: grid;
  gap: 8px;
  position: relative;
}

.google-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: #1f1f1f;
  font-weight: 850;
  font-size: 13px;
}

.user-mini {
  display: flex;
  align-items: center;
  gap: 9px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name {
  font-size: 14px;
  font-weight: 700;
}

.user-email {
  font-size: 12px;
  color: var(--subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sign-out {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  min-height: 34px;
  cursor: pointer;
}

.profile-menu-wrap {
  position: relative;
}

.profile-trigger {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  min-height: 56px;
  padding: 9px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.profile-trigger:hover,
.profile-trigger[aria-expanded="true"] {
  background: var(--surface-2);
}

.profile-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.chevron,
.menu-arrow {
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
}

.profile-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--menu-bg);
  box-shadow: var(--shadow);
  padding: 12px;
  display: grid;
  gap: 4px;
  z-index: 35;
}

.upgrade-menu-item {
  color: #f7d9a0;
}

.profile-menu-item {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  min-height: 48px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
}

.profile-menu-item:hover,
.profile-menu-item.active {
  background: rgba(255, 255, 255, 0.11);
}

.menu-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: #f2f2f2;
  font-size: 20px;
}

.menu-divider {
  height: 1px;
  background: #5c5c5c;
  margin: 6px 6px;
}

.main {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--bg);
}

.mobile-topbar {
  display: none;
}

.how-view {
  min-height: 0;
  overflow: auto;
  padding: 32px 28px 80px;
}

.how-content {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 34px;
}

.how-hero {
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
  padding: 18px 0 6px;
}

.hero-logo {
  width: 86px;
  height: 86px;
}

.how-hero .maplelex-logo svg {
  stroke-dasharray: 190;
  stroke-dashoffset: 190;
  animation: logoDraw 820ms ease-out forwards, logoGlow 2600ms ease-in-out 850ms infinite;
}

.how-hero h1 {
  max-width: 780px;
}

.how-hero h1:focus {
  outline: none;
}

.how-hero h1:focus-visible {
  outline: 2px solid rgba(213, 122, 79, 0.6);
  outline-offset: 6px;
  border-radius: 8px;
}

.how-hero p {
  margin: 0;
  max-width: 840px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.demo-composer {
  width: min(860px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.demo-composer textarea {
  width: 100%;
  min-height: 76px;
  max-height: 180px;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 10px;
  line-height: 1.45;
  font-size: 18px;
}

.demo-composer textarea::placeholder {
  color: #aaa;
}

.demo-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action {
  border-radius: 999px;
  min-height: 42px;
  padding: 9px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-action {
  border: 0;
  background: #f2f2f2;
  color: #111;
  font-weight: 800;
}

.secondary-action {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.primary-action:disabled {
  opacity: 0.6;
  cursor: wait;
}

.play-icon {
  font-size: 12px;
}

.how-section {
  display: grid;
  gap: 16px;
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-row h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.info-dot {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--text);
  font-weight: 800;
  flex: 0 0 auto;
}

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

.specialty-card,
.comparison-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
}

.specialty-card {
  min-height: 206px;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.specialty-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  color: #28c697;
  font-size: 32px;
  line-height: 1;
}

.specialty-card h3,
.comparison-head h3 {
  margin: 0;
}

.specialty-card h3 {
  font-size: 21px;
  line-height: 1.2;
}

.specialty-card p,
.demo-note,
.comparison-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.demo-prompts button {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(213, 122, 79, 0.13), rgba(40, 198, 151, 0.06)),
    var(--surface);
  color: var(--text);
  min-height: 112px;
  padding: 16px;
  cursor: pointer;
  text-align: left;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.demo-prompts button:hover,
.secondary-action:hover,
.specialty-card:hover {
  background: var(--surface-2);
}

.demo-prompts button:hover {
  transform: translateY(-2px);
  border-color: rgba(213, 122, 79, 0.46);
}

.question-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(213, 122, 79, 0.15);
  color: #f1a06f;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 850;
}

.question-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.question-title {
  font-weight: 800;
  font-size: 16px;
}

.question-text {
  color: var(--muted);
  line-height: 1.35;
}

.question-arrow {
  color: var(--subtle);
  font-weight: 800;
}

.demo-section {
  padding-bottom: 24px;
}

.demo-progress {
  min-height: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.progress-step {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  color: var(--muted);
  font-size: 13px;
}

.progress-step.active {
  color: var(--text);
  border-color: rgba(40, 198, 151, 0.42);
  background: rgba(40, 198, 151, 0.1);
}

.progress-step.active::before,
.placeholder-result.loading::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28c697;
  animation: pulse 900ms ease-in-out infinite;
}

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

.comparison-card {
  min-height: 310px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.maplelex-card {
  grid-column: 1 / -1;
  min-height: 360px;
}

.provider-card {
  aspect-ratio: 1 / 0.92;
  min-height: 390px;
}

.comparison-head {
  border-bottom: 1px solid var(--line-soft);
  min-height: 58px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comparison-head h3 {
  font-size: 16px;
  line-height: 1.25;
}

.comparison-body {
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.chat-mock {
  min-height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #212121;
  color: #f5f5f5;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.claude-card .chat-mock {
  background: #20201f;
  color: #f4f0ea;
}

.chat-mock-top {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-weight: 780;
}

.chat-product {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.chat-account {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #2f2f2f;
}

.gpt-card .chat-account {
  background: #111111;
}

.claude-card .chat-account {
  background: #303030;
}

.chat-mock-thread {
  padding: 26px 26px 18px;
  display: grid;
  align-content: start;
  gap: 22px;
}

.mock-message {
  border-radius: 8px;
  padding: 0;
  line-height: 1.45;
}

.mock-message.user {
  justify-self: end;
  max-width: 88%;
  background: #101010;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 18px;
  line-height: 1.35;
}

.mock-message.assistant {
  background: transparent;
  color: #f4f4f4;
  font-size: 18px;
}

.chat-mock .mock-message.assistant p {
  color: inherit;
}

.mock-message.assistant ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.mock-empty {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.2;
  margin-top: 28px;
}

.gpt-card .mock-empty {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.typed-prompt {
  color: #dcdcdc;
  font-size: 20px;
  line-height: 1.35;
}

.mock-thinking {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #d6d6d6;
  font-size: 17px;
}

.thinking-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, #ed7c55, rgba(237, 124, 85, 0.1), #ed7c55);
  mask: radial-gradient(circle at center, transparent 43%, #000 45%);
  animation: spin 950ms linear infinite;
}

.thinking-spinner.maple {
  width: 28px;
  height: 28px;
  background: conic-gradient(from 20deg, #28c697, rgba(40, 198, 151, 0.08), #d57a4f);
}

.mock-actions {
  display: flex;
  gap: 10px;
  color: #a8a8a8;
  font-size: 12px;
  margin-top: -8px;
}

.mock-actions span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 8px;
}

.chat-mock-input {
  margin: 0 18px 18px;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 14px;
  color: #bdbdbd;
  font-size: 13px;
}

.comparison-video-shell {
  width: 100%;
  height: 100%;
  min-height: 390px;
  border-radius: 8px;
  background: #1f1f1f;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.comparison-video {
  width: 100%;
  height: 100%;
  min-height: 390px;
  border: 0;
  background: #1f1f1f;
  object-fit: contain;
  display: block;
}

.video-result {
  padding: 0;
  align-content: stretch;
  background: #1f1f1f;
}

.mock-send {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1f1f1f;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
}

.maplelex-thinking {
  border: 1px solid rgba(40, 198, 151, 0.24);
  border-radius: 8px;
  background: rgba(40, 198, 151, 0.08);
  padding: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
}

.maplelex-thinking span:last-child {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.45;
}

.maplelex-thinking.selected {
  background: rgba(220, 161, 127, 0.08);
  border-color: rgba(220, 161, 127, 0.24);
}

.status-chip,
.demo-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 26px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.status-chip.live,
.demo-chip.strong {
  color: #aef0d3;
  border-color: rgba(40, 198, 151, 0.36);
  background: rgba(40, 198, 151, 0.1);
}

.status-chip.pending {
  color: #efcf89;
  border-color: rgba(228, 190, 106, 0.32);
  background: rgba(228, 190, 106, 0.09);
}

.demo-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.demo-answer {
  color: var(--text);
  line-height: 1.55;
  white-space: pre-wrap;
}

.demo-list {
  display: grid;
  gap: 7px;
}

.demo-list h4,
.demo-evidence h4 {
  margin: 0;
  font-size: 14px;
}

.demo-list ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.demo-evidence {
  border: 1px solid var(--line-soft);
  border-left: 3px solid #28c697;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.025);
  animation: evidenceIn 260ms ease both;
}

.demo-evidence a {
  overflow-wrap: anywhere;
}

.demo-evidence blockquote {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.demo-continue {
  justify-self: start;
}

.demo-error {
  border-left: 3px solid var(--amber);
  background: rgba(228, 190, 106, 0.12);
  border-radius: 8px;
  padding: 12px;
  color: #f0d28f;
}

.placeholder-result.loading {
  color: var(--muted);
}

.placeholder-result.loading::before {
  display: inline-block;
}

@keyframes logoDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes logoGlow {
  50% {
    filter: drop-shadow(0 0 18px rgba(213, 122, 79, 0.58));
  }
}

@keyframes pulse {
  50% {
    opacity: 0.35;
    transform: scale(1.4);
  }
}

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

@keyframes evidenceIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-view {
  display: grid;
  place-items: center;
  padding: 40px 28px 110px;
}

.welcome-content {
  width: min(1120px, 100%);
  display: grid;
  justify-items: center;
  gap: 28px;
}

.greeting-kicker {
  color: var(--green);
  font-weight: 760;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
  text-align: center;
  font-weight: 650;
}

.welcome-copy {
  margin: -12px 0 0;
  color: var(--muted);
  text-align: center;
  max-width: 680px;
  line-height: 1.5;
}

.hero-composer,
.chat-composer {
  width: min(1120px, 100%);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  padding: 16px;
}

.hero-composer textarea,
.chat-composer textarea {
  width: 100%;
  min-height: 46px;
  max-height: 190px;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 10px 14px 2px;
  font-size: 20px;
  line-height: 1.45;
}

.chat-composer textarea {
  font-size: 16px;
}

.hero-composer textarea::placeholder,
.chat-composer textarea::placeholder {
  color: #aaa;
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-pill,
.prompt-pills button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  min-height: 38px;
  padding: 8px 14px;
  cursor: pointer;
}

.send-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #f2f2f2;
  color: #111;
  font-size: 22px;
  font-weight: 800;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.send-button:disabled {
  opacity: 0.5;
}

.prompt-pills {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.chat-view {
  min-height: 0;
  overflow: auto;
  padding: 28px 24px 120px;
}

.messages {
  width: min(900px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

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

.message.user {
  justify-items: end;
}

.bubble {
  border-radius: 22px;
  padding: 13px 16px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.user .bubble {
  max-width: min(720px, 88%);
  background: var(--surface-2);
}

.assistant .bubble {
  max-width: 100%;
  background: transparent;
  padding-left: 0;
}

.assistant-response {
  display: grid;
  gap: 12px;
}

.response-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
}

.response-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 14px;
  display: grid;
  gap: 9px;
}

.response-card h3 {
  margin: 0;
  font-size: 14px;
}

.response-card ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  color: var(--muted);
}

.evidence-card {
  border-left: 3px solid var(--green);
}

.evidence-card blockquote {
  margin: 0;
  color: #dddddd;
  line-height: 1.55;
  white-space: pre-wrap;
}

.notice {
  border-left: 3px solid var(--amber);
  background: rgba(228, 190, 106, 0.12);
  border-radius: 12px;
  padding: 12px;
  color: #f0d28f;
}

.chat-composer-wrap {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(23, 23, 23, 0), var(--bg) 22%);
  padding: 28px 24px 18px;
}

.chat-composer {
  margin: 0 auto;
}

.composer-status {
  color: var(--subtle);
  font-size: 13px;
  padding-left: 10px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.54);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 20;
}

.modal-backdrop:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal h2 {
  margin: 0;
}

.auth-modal p,
.fine-print {
  color: var(--muted);
  line-height: 1.5;
}

.modal-backdrop {
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 40;
}

.auth-modal {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.settings-modal,
.profile-modal,
.rename-modal {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.profile-modal {
  width: min(440px, 100%);
}

.settings-modal h2,
.profile-modal h2,
.rename-modal h2 {
  margin: 0;
}

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

.rename-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.rename-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  outline: none;
  padding: 10px 12px;
}

.rename-field input:focus {
  border-color: rgba(220, 161, 127, 0.48);
  box-shadow: 0 0 0 3px rgba(220, 161, 127, 0.12);
}

.rename-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-tabs {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.settings-tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  min-height: 36px;
  cursor: pointer;
}

.settings-tab.active {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 760;
}

.settings-panel {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  padding: 14px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.settings-row > span {
  display: grid;
  gap: 4px;
}

.settings-row span span {
  color: var(--muted);
  line-height: 1.45;
}

.profile-card-large {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-card-large > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.profile-card-large span span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.settings-avatar {
  width: 42px;
  height: 42px;
}

.theme-toggle {
  position: relative;
  flex: 0 0 auto;
}

.theme-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-toggle-track {
  width: 138px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  padding: 4px;
  cursor: pointer;
}

.theme-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--text);
  transition: transform 160ms ease;
}

.theme-toggle input:checked + .theme-toggle-track .theme-toggle-thumb {
  transform: translateX(100%);
}

.theme-toggle-label {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 760;
}

.light-label {
  color: var(--bg);
}

.dark-label {
  color: var(--muted);
}

.theme-toggle input:checked + .theme-toggle-track .light-label {
  color: var(--muted);
}

.theme-toggle input:checked + .theme-toggle-track .dark-label {
  color: var(--bg);
}

.google-button-slot {
  min-height: 42px;
  display: grid;
  align-items: center;
}

.demo-signin {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 44px;
  background: #f2f2f2;
  color: #111;
  font-weight: 800;
  cursor: pointer;
}

.fine-print {
  font-size: 12px;
  margin: 0;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 18px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--menu-bg);
  color: var(--text);
  box-shadow: var(--shadow);
  padding: 10px 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 60;
  max-width: min(520px, calc(100vw - 28px));
  text-align: center;
}

.app-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 90vw);
    transform: translateX(-100%);
    transition: transform 180ms ease;
    z-index: 25;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-topbar {
    height: 58px;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
  }

  .mobile-brand {
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
  }

  .welcome-view {
    padding: 28px 16px 96px;
  }

  .how-view {
    padding: 24px 16px 76px;
  }

  .how-hero {
    padding-top: 6px;
  }

  .how-hero p {
    font-size: 16px;
  }

  .specialty-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .maplelex-card,
  .provider-card {
    grid-column: auto;
    aspect-ratio: auto;
  }

  .demo-prompts {
    grid-template-columns: 1fr;
  }

  .prompt-pills {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-composer,
  .chat-composer {
    border-radius: 24px;
  }

  .chat-view {
    padding: 20px 14px 116px;
  }
}

@media (max-width: 620px) {
  h1 {
    text-align: left;
    width: 100%;
  }

  .how-hero {
    justify-items: start;
    text-align: left;
  }

  .demo-actions {
    justify-content: stretch;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .welcome-content {
    justify-items: stretch;
  }

  .welcome-copy {
    text-align: left;
  }
}

@media (min-width: 881px) and (max-width: 1220px) {
  .specialty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* MapleLex framed LLM interface */
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.13), transparent 38%),
    radial-gradient(circle at 50% 35%, rgba(213, 122, 79, 0.07), transparent 35%),
    #1f1f1f;
  padding: clamp(14px, 3.4vw, 72px);
}

.app-shell {
  position: relative;
  min-height: calc(100vh - clamp(28px, 6.8vw, 144px));
  max-width: 1840px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% -6%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04) 26%, transparent 52%),
    linear-gradient(90deg, rgba(2, 8, 17, 0.98), rgba(8, 10, 15, 0.98) 48%, rgba(1, 7, 17, 0.98));
  box-shadow: 0 42px 130px rgba(0, 0, 0, 0.48);
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.065) 49%, transparent 63%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.16), transparent 30%);
  opacity: 0.7;
}

.sidebar {
  position: absolute;
  inset: 42px 46px auto 46px;
  z-index: 10;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-top {
  flex: 0 0 auto;
}

.brand-button {
  width: auto;
}

.brand-subtitle,
#collapseSidebar,
.auth-button,
.chevron {
  display: none !important;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.maplelex-logo {
  width: 54px;
  height: 54px;
  display: inline-grid;
}

.maplelex-logo svg {
  stroke: #dca17f;
  stroke-width: 3.8;
  filter: drop-shadow(0 12px 34px rgba(220, 161, 127, 0.28));
  transition: stroke 220ms ease, filter 220ms ease, transform 220ms ease;
}

.brand-button:hover .maplelex-logo svg {
  stroke: #f0c3a6;
  filter: drop-shadow(0 16px 42px rgba(240, 195, 166, 0.38));
  transform: translateY(-1px);
}

.brand-name {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(28px, 2vw, 38px);
  font-weight: 720;
  letter-spacing: 0;
  text-shadow: 0 16px 42px rgba(255, 255, 255, 0.14);
}

.nav-button {
  width: auto;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.72);
  padding: 8px 19px;
  font-size: 15px;
  gap: 8px;
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.nav-button .icon {
  width: auto;
  height: auto;
  color: currentColor;
}

.how-nav-button {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.035);
}

.nav-button.active,
.nav-button:hover,
.profile-trigger:hover,
.profile-trigger[aria-expanded="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.top-upgrade-button {
  margin-left: auto;
  color: #fff;
}

.sidebar-bottom {
  position: relative;
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-menu-wrap {
  position: relative;
}

.profile-trigger {
  width: auto;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  padding: 5px 9px;
  display: inline-flex;
  gap: 9px;
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.profile-copy {
  display: none;
}

.avatar {
  width: 30px;
  height: 30px;
  background: rgba(117, 197, 154, 0.18);
}

.profile-menu {
  left: auto;
  right: 0;
  bottom: auto;
  top: calc(100% + 12px);
  width: 260px;
  border-radius: 18px;
  background: rgba(30, 30, 31, 0.94);
  backdrop-filter: blur(24px);
}

.chat-history-section {
  position: fixed;
  left: clamp(18px, 3.4vw, 72px);
  top: clamp(92px, 9vw, 136px);
  bottom: clamp(18px, 3.4vw, 72px);
  width: min(340px, calc(100vw - 36px));
  z-index: 30;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(14, 18, 24, 0.82);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(26px);
  opacity: 0;
  transform: translateX(-18px) scale(0.98);
  pointer-events: none;
  transition: opacity 190ms ease, transform 190ms ease;
}

.chat-history-section.drawer-open {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.chat-history-section .section-row {
  display: flex !important;
}

.section-label {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

.search-box {
  width: 100%;
  margin: 0;
}

.search-box input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.chat-history {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding: 0 2px 0 0;
}

.chat-history-item {
  width: auto;
  min-height: 44px;
  border-radius: 12px;
  background: transparent;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px 32px;
  align-items: center;
  padding: 0;
  transition: background 160ms ease;
}

.chat-history-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.chat-row {
  min-height: 40px;
  padding: 9px 68px 9px 11px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.25;
  background: transparent !important;
}

.chat-row.active {
  color: #fff;
}

.rename-chat,
.delete-chat {
  align-self: center;
  opacity: 0.76;
  transition: opacity 140ms ease, background 140ms ease, color 140ms ease;
}

.empty-history {
  width: 100%;
  text-align: left;
  color: rgba(255, 255, 255, 0.44);
  padding: 8px 2px;
}

.main {
  position: relative;
  z-index: 1;
  min-height: inherit;
  background: transparent;
  grid-template-rows: minmax(0, 1fr) auto;
}

.mobile-topbar {
  display: none !important;
}

.welcome-view {
  min-height: inherit;
  display: grid;
  place-items: center;
  padding: 170px 28px 250px;
  animation: viewIn 420ms ease both;
}

.welcome-content {
  width: min(1040px, 100%);
  gap: 28px;
}

.greeting-kicker {
  color: rgba(220, 161, 127, 0.92);
  font-size: clamp(24px, 2.4vw, 44px);
  font-weight: 760;
  letter-spacing: 0;
  text-shadow: 0 18px 50px rgba(220, 161, 127, 0.22);
}

h1,
.how-hero h1 {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(34px, 3vw, 54px);
  line-height: 1.08;
  font-weight: 640;
}

.welcome-copy {
  display: none;
}

.hero-composer,
.chat-composer {
  width: min(1040px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(34, 34, 36, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  padding: 20px 22px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.hero-composer:focus-within,
.chat-composer:focus-within {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
}

.hero-composer textarea,
.chat-composer textarea {
  color: #fff;
  font-size: 21px;
  min-height: 60px;
  resize: none;
  overflow: hidden;
}

.hero-composer textarea::placeholder,
.chat-composer textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.tool-pill,
.prompt-pills button,
.secondary-action {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.82);
}

.send-button {
  width: 46px;
  height: 46px;
  background: #202124;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.prompt-pills {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.prompt-pills button {
  min-height: 108px;
  border-radius: 13px;
  padding: 16px;
  display: grid;
  align-content: space-between;
  text-align: left;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.prompt-pills button:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 139, 98, 0.28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.prompt-pills button span {
  color: #f1f1f1;
  line-height: 1.25;
}

.prompt-pills button small {
  color: rgba(255, 255, 255, 0.46);
  font-size: 13px;
}

.app-footer-links {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 34px;
  z-index: 4;
  color: rgba(255, 255, 255, 0.58);
}

.app-footer-links a,
.app-footer-links button {
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.app-footer-links button {
  text-decoration: none;
}

.how-view,
.chat-view {
  padding: 150px 34px 100px;
  animation: viewIn 360ms ease both;
}

.how-content,
.messages {
  color: var(--text);
}

.chat-composer-wrap {
  background: linear-gradient(180deg, transparent, rgba(2, 8, 17, 0.94) 34%);
  padding-bottom: 34px;
}

@media (max-width: 880px) {
  body {
    padding: 0;
  }

  .app-shell {
    min-height: 100vh;
    border-radius: 0;
  }

  .sidebar {
    position: absolute;
    inset: 18px 16px auto 16px;
    width: auto;
    transform: none;
    z-index: 10;
    flex-wrap: wrap;
  }

  .sidebar.open {
    transform: none;
  }

  .brand-name {
    font-size: 22px;
  }

  .nav-button {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 13px;
  }

  .top-upgrade-button {
    margin-left: 0;
  }

  .welcome-view {
    padding: 145px 16px 230px;
  }

  .prompt-pills {
    grid-template-columns: 1fr;
  }

  .chat-history-section {
    width: min(340px, calc(100vw - 28px));
    left: 14px;
    top: 122px;
    bottom: 18px;
  }

  .app-footer-links {
    display: none;
  }
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Get-to-know page refresh */
.how-view {
  padding: 132px 54px 108px;
}

.how-content {
  width: min(1220px, 100%);
  counter-reset: how-step;
  gap: 54px;
}

.how-hero {
  min-height: auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  align-items: start;
  justify-items: stretch;
  gap: 48px 54px;
  text-align: left;
  padding: 0;
}

.how-hero .hero-logo {
  display: none;
}

.how-hero h1 {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(44px, 4.1vw, 66px);
  line-height: 1.03;
  font-weight: 680;
  margin: 0;
  text-align: left;
}

.how-hero h1:focus-visible {
  outline: none;
}

.how-hero p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.55;
  padding-top: 28px;
}

.eyebrow,
.demo-label,
.reference-kicker {
  color: rgba(220, 161, 127, 0.96);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.how-hero .eyebrow {
  margin-bottom: 16px;
}

.how-hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  align-self: end;
  margin-top: 0;
  padding-bottom: 44px;
}

.text-link {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  padding-bottom: 3px;
}

.text-link:hover {
  color: #fff;
  border-color: rgba(220, 161, 127, 0.74);
}

.demo-composer {
  width: 100%;
  min-height: 260px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(220, 161, 127, 0.08), transparent 54%),
    transparent;
  box-shadow: none;
  padding: 24px 0;
  align-content: space-between;
}

.demo-composer textarea {
  min-height: 112px;
  padding: 16px 0;
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.28;
}

.demo-composer textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.demo-actions {
  justify-content: flex-start;
}

.primary-action {
  min-height: 46px;
  border-radius: 14px;
  background: #f3efe8;
  color: #171717;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.play-icon {
  border-right: 1px solid rgba(0, 0, 0, 0.16);
  padding-right: 8px;
}

.how-section {
  gap: 18px;
}

.section-title-row {
  align-items: flex-start;
  gap: 14px;
}

.section-title-row h2 {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 660;
}

.info-dot {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border-color: rgba(220, 161, 127, 0.26);
  background: rgba(220, 161, 127, 0.09);
  color: transparent;
  font-size: 0;
}

.info-dot::before {
  counter-increment: how-step;
  content: counter(how-step, decimal-leading-zero);
  color: rgba(244, 239, 232, 0.9);
  font-size: 11px;
  font-weight: 850;
}

.specialty-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
}

.specialty-card {
  min-height: 172px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
  padding: 24px 20px 24px 0;
  margin-right: 20px;
}

.specialty-card:last-child {
  border-right: 0;
  margin-right: 0;
}

.specialty-card:hover {
  background: transparent;
}

.specialty-icon {
  width: auto;
  height: auto;
  place-items: start;
  color: transparent;
  font-size: 0;
}

.specialty-icon::before {
  color: rgba(220, 161, 127, 0.88);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.specialty-card:nth-child(1) .specialty-icon::before {
  content: "RTA";
}

.specialty-card:nth-child(2) .specialty-icon::before {
  content: "ESA";
}

.specialty-card:nth-child(3) .specialty-icon::before {
  content: "HTA";
}

.specialty-card:nth-child(4) .specialty-icon::before {
  content: "SCC";
}

.specialty-card h3 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 720;
}

.specialty-card p,
.demo-note,
.comparison-body p {
  color: rgba(255, 255, 255, 0.58);
}

.demo-prompts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
}

.demo-prompts button {
  min-height: 184px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
  grid-template-columns: 1fr;
  align-content: space-between;
  align-items: start;
  gap: 18px;
}

.demo-prompts button:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.07);
}

.question-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: rgba(220, 161, 127, 0.92);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.question-title {
  color: rgba(255, 255, 255, 0.9);
}

.question-text {
  color: rgba(255, 255, 255, 0.54);
}

.question-arrow {
  display: none;
}

.demo-section {
  padding: 24px 0 54px;
}

.demo-note {
  max-width: 820px;
  font-size: 16px;
}

.demo-progress {
  min-height: 36px;
}

.progress-step {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.comparison-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.9fr);
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.comparison-card {
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.036);
}

.maplelex-card {
  grid-row: span 2;
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(117, 197, 154, 0.09), rgba(255, 255, 255, 0.032)),
    rgba(255, 255, 255, 0.04);
}

.provider-card {
  min-height: 310px;
  aspect-ratio: auto;
}

.comparison-head {
  min-height: 64px;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
}

.comparison-head h3 {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.comparison-body {
  padding: 20px;
}

.placeholder-result.video-result {
  padding: 12px;
  background: rgba(7, 11, 17, 0.34);
  align-content: stretch;
}

.comparison-video-shell,
.comparison-video {
  min-height: 286px;
  border-radius: 14px;
  background: transparent;
}

.maplelex-thinking,
.demo-evidence,
.demo-error,
.response-card {
  border-radius: 14px;
}

.demo-evidence {
  background: rgba(255, 255, 255, 0.035);
}

@media (max-width: 1180px) {
  .how-hero,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .maplelex-card {
    grid-row: auto;
  }

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

  .specialty-card:nth-child(2) {
    border-right: 0;
    margin-right: 0;
  }
}

@media (max-width: 880px) {
  .how-view {
    padding: 145px 16px 90px;
  }

  .how-hero {
    min-height: auto;
    gap: 28px;
  }

  .how-hero h1 {
    font-size: clamp(34px, 10vw, 50px);
  }

  .how-hero p {
    padding-top: 0;
  }

  .how-hero-actions {
    padding-bottom: 0;
  }

  .demo-composer {
    border-radius: 0;
  }

  .demo-prompts,
  .specialty-grid {
    grid-template-columns: 1fr;
  }

  .specialty-grid {
    gap: 0;
  }

  .specialty-card,
  .specialty-card:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 0;
    padding-right: 0;
  }

  .specialty-card:last-child {
    border-bottom: 0;
  }

  .provider-card {
    min-height: 220px;
  }
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.82), transparent 40%),
    radial-gradient(circle at 48% 32%, rgba(196, 117, 72, 0.12), transparent 36%),
    #e9e3d8;
}

[data-theme="light"] .app-shell {
  border-color: rgba(84, 68, 50, 0.16);
  background:
    radial-gradient(ellipse at 50% -6%, rgba(255, 255, 255, 0.9), rgba(245, 239, 229, 0.7) 28%, transparent 54%),
    linear-gradient(90deg, rgba(253, 250, 245, 0.98), rgba(242, 236, 226, 0.98) 50%, rgba(250, 247, 241, 0.98));
  box-shadow: 0 42px 130px rgba(73, 58, 38, 0.2);
}

[data-theme="light"] .app-shell::before {
  background:
    linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.64) 49%, transparent 64%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.72), transparent 32%);
  opacity: 0.9;
}

[data-theme="light"] .brand-name,
[data-theme="light"] h1,
[data-theme="light"] .how-hero h1,
[data-theme="light"] .section-title-row h2,
[data-theme="light"] .specialty-card h3,
[data-theme="light"] .question-title,
[data-theme="light"] .comparison-head h3,
[data-theme="light"] .welcome-content,
[data-theme="light"] .messages,
[data-theme="light"] .demo-answer {
  color: rgba(28, 26, 23, 0.92);
  text-shadow: none;
}

[data-theme="light"] .how-hero p,
[data-theme="light"] .specialty-card p,
[data-theme="light"] .demo-note,
[data-theme="light"] .question-text,
[data-theme="light"] .comparison-body p,
[data-theme="light"] .demo-list ul,
[data-theme="light"] .demo-evidence blockquote,
[data-theme="light"] .maplelex-thinking span:last-child {
  color: rgba(45, 40, 34, 0.66);
}

[data-theme="light"] .nav-button,
[data-theme="light"] .profile-trigger,
[data-theme="light"] .top-upgrade-button {
  border-color: rgba(84, 68, 50, 0.16);
  background: rgba(255, 255, 255, 0.56);
  color: rgba(45, 40, 34, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.65);
}

[data-theme="light"] .nav-button.active,
[data-theme="light"] .nav-button:hover,
[data-theme="light"] .profile-trigger:hover,
[data-theme="light"] .profile-trigger[aria-expanded="true"] {
  color: rgba(27, 24, 21, 0.94);
  background: rgba(255, 255, 255, 0.82);
}

[data-theme="light"] .maplelex-logo svg {
  stroke: #b76543;
  filter: drop-shadow(0 12px 28px rgba(183, 101, 67, 0.18));
}

[data-theme="light"] .demo-composer {
  border-top-color: rgba(84, 68, 50, 0.15);
  border-bottom-color: rgba(84, 68, 50, 0.13);
  background:
    linear-gradient(90deg, rgba(183, 101, 67, 0.08), transparent 56%),
    transparent;
}

[data-theme="light"] .demo-composer textarea,
[data-theme="light"] .hero-composer textarea,
[data-theme="light"] .chat-composer textarea {
  color: rgba(28, 26, 23, 0.94);
}

[data-theme="light"] .demo-composer textarea::placeholder,
[data-theme="light"] .hero-composer textarea::placeholder,
[data-theme="light"] .chat-composer textarea::placeholder {
  color: rgba(45, 40, 34, 0.42);
}

[data-theme="light"] .text-link {
  color: rgba(45, 40, 34, 0.64);
  border-color: rgba(45, 40, 34, 0.24);
}

[data-theme="light"] .text-link:hover {
  color: rgba(27, 24, 21, 0.94);
  border-color: rgba(183, 101, 67, 0.62);
}

[data-theme="light"] .specialty-grid,
[data-theme="light"] .specialty-card,
[data-theme="light"] .comparison-head {
  border-color: rgba(84, 68, 50, 0.14);
}

[data-theme="light"] .demo-prompts,
[data-theme="light"] .comparison-grid {
  border-color: rgba(84, 68, 50, 0.14);
  background: rgba(84, 68, 50, 0.12);
}

[data-theme="light"] .demo-prompts button,
[data-theme="light"] .comparison-card {
  background: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .demo-prompts button:hover {
  background: rgba(255, 255, 255, 0.74);
}

[data-theme="light"] .maplelex-card {
  background:
    linear-gradient(180deg, rgba(40, 124, 87, 0.1), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.48);
}

[data-theme="light"] .placeholder-result.video-result {
  background: rgba(246, 240, 231, 0.72);
}

[data-theme="light"] .comparison-video-shell {
  background: rgba(232, 224, 213, 0.82);
}

[data-theme="light"] .progress-step,
[data-theme="light"] .status-chip,
[data-theme="light"] .demo-chip {
  border-color: rgba(84, 68, 50, 0.16);
  background: rgba(255, 255, 255, 0.42);
  color: rgba(45, 40, 34, 0.66);
}

[data-theme="light"] .progress-step.active,
[data-theme="light"] .status-chip.live,
[data-theme="light"] .demo-chip.strong {
  border-color: rgba(40, 124, 87, 0.24);
  background: rgba(40, 124, 87, 0.1);
  color: #1f6e4b;
}

[data-theme="light"] .maplelex-thinking,
[data-theme="light"] .demo-evidence,
[data-theme="light"] .demo-error {
  background: rgba(255, 255, 255, 0.44);
  border-color: rgba(84, 68, 50, 0.16);
}

[data-theme="light"] .hero-composer,
[data-theme="light"] .chat-composer {
  border-color: rgba(84, 68, 50, 0.14);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 80px rgba(73, 58, 38, 0.16);
}

[data-theme="light"] .send-button {
  background: #1f1d1a;
  color: #fff;
}

[data-theme="light"] .app-footer-links {
  color: rgba(45, 40, 34, 0.62);
}

/* Spacing hardening: keep the intro open and the provider clips equal. */
.how-view {
  padding: clamp(128px, 11vw, 170px) clamp(42px, 6vw, 84px) 112px;
}

.how-content {
  width: min(1240px, 100%);
  gap: clamp(58px, 6vw, 82px);
}

.how-hero {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.78fr);
  grid-template-rows: auto auto auto;
  align-items: start;
  column-gap: clamp(64px, 8vw, 132px);
  row-gap: 24px;
}

.how-hero h1 {
  grid-column: 1;
  grid-row: 1;
  max-width: 780px;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 1.02;
}

.how-hero p {
  grid-column: 1;
  grid-row: 2;
  max-width: 680px;
  padding-top: 0;
}

.how-hero .demo-composer {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: stretch;
  margin-top: 10px;
}

.how-hero-actions {
  grid-column: 1;
  grid-row: 3;
  align-self: start;
  padding-bottom: 0;
  margin-top: 10px;
}

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

.maplelex-card {
  grid-column: 1 / -1;
  grid-row: auto;
  min-height: 360px;
}

.provider-card {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.provider-card .comparison-body.video-result {
  min-height: 0;
  height: 360px;
}

.comparison-video-shell,
.comparison-video {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.comparison-video {
  object-fit: contain;
}

@media (max-width: 1180px) {
  .how-hero {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .how-hero h1,
  .how-hero p,
  .how-hero .demo-composer,
  .how-hero-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .how-hero .demo-composer {
    margin-top: 0;
  }
}

@media (max-width: 880px) {
  .how-view {
    padding: 145px 18px 90px;
  }

  .how-hero h1 {
    font-size: clamp(36px, 11vw, 52px);
  }

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

  .provider-card .comparison-body.video-result {
    height: min(72vw, 340px);
  }
}

@media (max-width: 700px) {
  body {
    padding: 0;
  }

  .app-shell {
    min-height: 100vh;
    border-radius: 0;
  }

  .sidebar {
    inset: 18px 16px auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .sidebar-top {
    grid-column: 1;
    min-width: 0;
  }

  .sidebar-bottom {
    grid-column: 2;
    grid-row: 1;
  }

  .sidebar > .nav-button {
    grid-row: 2;
    min-height: 38px;
    justify-self: start;
    padding: 7px 12px;
    font-size: 13px;
  }

  .brand-name {
    font-size: 24px;
  }

  .maplelex-logo {
    width: 42px;
    height: 42px;
  }

  .how-view {
    padding: 150px 16px 82px;
  }

  .how-content {
    gap: 48px;
  }

  .how-hero {
    row-gap: 22px;
  }

  .how-hero h1 {
    max-width: 540px;
    font-size: clamp(34px, 9.5vw, 46px);
    line-height: 1.08;
  }

  .how-hero p {
    font-size: 16px;
    line-height: 1.55;
  }

  .demo-composer {
    min-height: 230px;
    padding: 20px 0;
  }

  .demo-composer textarea {
    font-size: 19px;
  }
}

/* UI polish pass: clearer spacing, calmer surfaces, and theme-safe contrast. */
:root {
  --page-bg: #141414;
  --page-bg-soft: #191919;
  --panel: rgba(31, 31, 31, 0.92);
  --panel-muted: rgba(255, 255, 255, 0.045);
  --panel-border: rgba(255, 255, 255, 0.12);
  --field-bg: rgba(255, 255, 255, 0.055);
  --copy-strong: rgba(255, 255, 255, 0.92);
  --copy: rgba(255, 255, 255, 0.78);
  --copy-muted: rgba(255, 255, 255, 0.58);
  --accent-ui: #dca17f;
  --accent-soft: rgba(220, 161, 127, 0.14);
  --shadow-soft: 0 18px 54px rgba(0, 0, 0, 0.24);
}

[data-theme="light"] {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-2: #eef0f2;
  --surface-3: #f3f4f6;
  --line: #d9dde2;
  --line-soft: #e5e7eb;
  --text: #171717;
  --muted: #555d67;
  --subtle: #6f7782;
  --page-bg: #f6f7f8;
  --page-bg-soft: #ffffff;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-muted: rgba(23, 23, 23, 0.035);
  --panel-border: rgba(23, 23, 23, 0.12);
  --field-bg: rgba(23, 23, 23, 0.035);
  --copy-strong: rgba(23, 23, 23, 0.94);
  --copy: rgba(23, 23, 23, 0.76);
  --copy-muted: rgba(23, 23, 23, 0.58);
  --accent-ui: #a85f3f;
  --accent-soft: rgba(168, 95, 63, 0.11);
  --shadow-soft: 0 18px 54px rgba(17, 24, 39, 0.1);
}

body,
[data-theme="light"] body {
  background: var(--page-bg);
}

.app-shell,
[data-theme="light"] .app-shell {
  border-color: var(--panel-border);
  background: linear-gradient(180deg, var(--page-bg-soft), var(--page-bg));
  box-shadow: var(--shadow-soft);
}

.app-shell::before,
[data-theme="light"] .app-shell::before {
  display: none;
}

.sidebar {
  inset: clamp(24px, 3vw, 42px) clamp(24px, 3.6vw, 46px) auto;
  gap: 12px;
}

.brand-name,
[data-theme="light"] .brand-name {
  color: var(--copy-strong);
  text-shadow: none;
}

.nav-button,
.profile-trigger,
[data-theme="light"] .nav-button,
[data-theme="light"] .profile-trigger,
[data-theme="light"] .top-upgrade-button {
  border-color: var(--panel-border);
  background: var(--panel);
  color: var(--copy);
  box-shadow: none;
}

.nav-button.active,
.nav-button:hover,
.profile-trigger:hover,
.profile-trigger[aria-expanded="true"],
[data-theme="light"] .nav-button.active,
[data-theme="light"] .nav-button:hover,
[data-theme="light"] .profile-trigger:hover,
[data-theme="light"] .profile-trigger[aria-expanded="true"] {
  background: var(--surface-2);
  color: var(--copy-strong);
}

.how-view {
  padding: clamp(124px, 10vw, 156px) clamp(32px, 5vw, 72px) 104px;
}

.how-content {
  width: min(1180px, 100%);
  gap: clamp(52px, 5vw, 72px);
}

.how-hero {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.72fr);
  column-gap: clamp(48px, 7vw, 104px);
  row-gap: 28px;
  align-items: center;
}

.how-hero h1,
[data-theme="light"] h1,
[data-theme="light"] .how-hero h1 {
  max-width: 700px;
  color: var(--copy-strong);
  font-size: clamp(46px, 4.8vw, 72px);
  line-height: 1.04;
  font-weight: 700;
  text-shadow: none;
}

.how-hero p,
[data-theme="light"] .how-hero p {
  max-width: 620px;
  color: var(--copy-muted);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.62;
}

.how-hero-actions {
  gap: 22px;
  margin-top: 6px;
}

.text-link,
[data-theme="light"] .text-link {
  color: var(--copy-muted);
  border-color: var(--panel-border);
}

.text-link:hover,
[data-theme="light"] .text-link:hover {
  color: var(--copy-strong);
  border-color: var(--accent-ui);
}

.demo-composer,
[data-theme="light"] .demo-composer {
  min-height: 360px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  padding: clamp(22px, 2.6vw, 32px);
  align-content: start;
  gap: 22px;
}

.demo-label,
[data-theme="light"] .demo-label {
  color: var(--accent-ui);
  letter-spacing: 0.07em;
}

.demo-composer textarea,
[data-theme="light"] .demo-composer textarea {
  min-height: 152px;
  padding: 16px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--field-bg);
  color: var(--copy-strong);
  font-size: clamp(20px, 1.65vw, 25px);
  line-height: 1.36;
  resize: vertical;
}

.demo-composer textarea::placeholder,
[data-theme="light"] .demo-composer textarea::placeholder {
  color: var(--copy-muted);
}

.demo-actions {
  justify-content: flex-start;
}

.primary-action {
  border-radius: 12px;
  background: var(--copy-strong);
  color: var(--page-bg);
  box-shadow: none;
}

.secondary-action,
[data-theme="light"] .secondary-action {
  border-color: var(--panel-border);
  background: var(--panel-muted);
  color: var(--copy);
}

.section-title-row h2,
[data-theme="light"] .section-title-row h2,
.specialty-card h3,
.question-title,
.comparison-head h3,
[data-theme="light"] .specialty-card h3,
[data-theme="light"] .question-title,
[data-theme="light"] .comparison-head h3 {
  color: var(--copy-strong);
}

.specialty-card p,
.demo-note,
.comparison-body p,
.question-text,
[data-theme="light"] .specialty-card p,
[data-theme="light"] .demo-note,
[data-theme="light"] .comparison-body p,
[data-theme="light"] .question-text {
  color: var(--copy-muted);
}

.specialty-grid,
[data-theme="light"] .specialty-grid {
  border-color: var(--panel-border);
}

.specialty-card,
[data-theme="light"] .specialty-card {
  border-color: var(--panel-border);
}

.demo-prompts,
.comparison-grid,
[data-theme="light"] .demo-prompts,
[data-theme="light"] .comparison-grid {
  border-color: var(--panel-border);
  background: var(--panel-border);
}

.demo-prompts button,
.comparison-card,
[data-theme="light"] .demo-prompts button,
[data-theme="light"] .comparison-card {
  background: var(--panel);
}

.demo-prompts button:hover,
[data-theme="light"] .demo-prompts button:hover {
  background: var(--surface-2);
}

.maplelex-card,
[data-theme="light"] .maplelex-card {
  background: var(--panel);
}

.comparison-head,
[data-theme="light"] .comparison-head {
  border-bottom-color: var(--panel-border);
}

.progress-step,
.status-chip,
.demo-chip,
[data-theme="light"] .progress-step,
[data-theme="light"] .status-chip,
[data-theme="light"] .demo-chip {
  border-color: var(--panel-border);
  background: var(--panel-muted);
  color: var(--copy);
}

.info-dot::before,
[data-theme="light"] .info-dot::before {
  color: var(--copy);
}

.maplelex-thinking,
.demo-evidence,
.demo-error,
.response-card,
[data-theme="light"] .maplelex-thinking,
[data-theme="light"] .demo-evidence,
[data-theme="light"] .demo-error {
  background: var(--panel-muted);
  border-color: var(--panel-border);
}

[data-theme="light"] .hero-composer,
[data-theme="light"] .chat-composer {
  border-color: var(--panel-border);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 1180px) {
  .how-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .demo-composer {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .sidebar {
    inset: 16px 16px auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: var(--shadow-soft);
  }

  .sidebar-top {
    flex: 1 1 calc(100% - 58px);
    min-width: 0;
  }

  .sidebar-bottom {
    flex: 0 0 auto;
    margin-left: auto;
    order: 2;
  }

  .sidebar > .nav-button {
    flex: 0 0 auto;
    order: 3;
    height: 36px;
    min-height: 36px;
  }

  .chat-history-section:not(.drawer-open) {
    display: none;
  }

  .chat-history-section.drawer-open {
    display: grid;
  }

  .top-upgrade-button {
    display: none;
  }

  .profile-trigger {
    min-height: 38px;
    padding: 4px;
  }

  .how-view {
    padding: 198px 16px 82px;
  }

  .how-content {
    gap: 44px;
  }

  .demo-composer,
  [data-theme="light"] .demo-composer {
    border-radius: 16px;
    padding: 18px;
  }

  .demo-composer textarea {
    min-height: 132px;
    padding: 14px;
  }
}

/* Demo-section layout: make the intro full width and move demos into clean cards. */
.how-hero {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  row-gap: 28px;
}

.how-hero h1,
[data-theme="light"] .how-hero h1 {
  width: 100%;
  max-width: 1120px;
  font-size: clamp(50px, 6vw, 88px);
  line-height: 1.02;
}

.how-hero p,
[data-theme="light"] .how-hero p {
  max-width: 980px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.66;
}

.how-hero .demo-composer {
  grid-column: auto;
  grid-row: auto;
}

.question-section-copy {
  max-width: 780px;
  margin: -2px 0 4px;
  color: var(--copy-muted);
  font-size: 16px;
  line-height: 1.6;
}

.demo-prompts,
[data-theme="light"] .demo-prompts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.demo-prompts button,
[data-theme="light"] .demo-prompts button {
  min-height: 250px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: var(--panel);
  color: var(--copy-strong);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  align-items: stretch;
  gap: 18px;
}

.demo-prompts button:hover,
[data-theme="light"] .demo-prompts button:hover {
  background: var(--surface-2);
  border-color: color-mix(in srgb, var(--accent-ui) 44%, var(--panel-border));
  transform: translateY(-2px);
}

.question-icon {
  width: max-content;
  height: auto;
  padding: 6px 9px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ui);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.question-copy {
  gap: 12px;
}

.question-title {
  font-size: 18px;
  font-weight: 780;
}

.question-text {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--field-bg);
  color: var(--copy);
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.38;
}

.question-action {
  width: max-content;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--copy-strong);
  color: var(--page-bg);
  font-size: 14px;
  font-weight: 800;
}

.question-action span {
  font-size: 11px;
}

.demo-composer,
[data-theme="light"] .demo-composer {
  width: 100%;
  min-height: auto;
  box-shadow: none;
}

.how-section .demo-composer {
  margin-top: 2px;
}

.how-section .demo-composer textarea {
  min-height: 112px;
}

@media (max-width: 1180px) {
  .demo-prompts,
  [data-theme="light"] .demo-prompts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .how-hero h1 {
    font-size: clamp(40px, 11vw, 52px);
  }

  .demo-prompts,
  [data-theme="light"] .demo-prompts {
    grid-template-columns: 1fr;
  }

  .demo-prompts button,
  [data-theme="light"] .demo-prompts button {
    min-height: 230px;
  }

  .question-text {
    min-height: 96px;
  }
}

/* Cleanup pass: concise hero, no section number badges, and full light mode. */
.info-dot {
  display: none !important;
}

.section-title-row {
  gap: 0;
}

.how-hero p {
  max-width: 1320px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #eef4fa;
  --sidebar-bg: transparent;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-2: #e8eef5;
  --surface-3: #dfe8f1;
  --menu-bg: rgba(255, 255, 255, 0.96);
  --line: rgba(24, 40, 61, 0.16);
  --line-soft: rgba(24, 40, 61, 0.1);
  --text: #142033;
  --muted: #526174;
  --subtle: #788597;
  --green: #287b58;
  --green-strong: #1f6749;
  --green-soft: rgba(40, 123, 88, 0.12);
  --blue: #245eaa;
  --amber: #a96340;
  --red: #b44f43;
  --page-bg: #eef4fa;
  --page-bg-soft: #fbfdff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-muted: rgba(20, 32, 51, 0.055);
  --panel-border: rgba(20, 32, 51, 0.15);
  --field-bg: rgba(20, 32, 51, 0.045);
  --copy-strong: #142033;
  --copy: #314155;
  --copy-muted: #627084;
  --accent-ui: #a96340;
  --accent-soft: rgba(169, 99, 64, 0.12);
  --shadow: 0 34px 100px rgba(26, 43, 67, 0.16);
  --shadow-soft: 0 22px 70px rgba(26, 43, 67, 0.12);
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at 50% -12%, rgba(67, 104, 150, 0.24), rgba(67, 104, 150, 0.08) 20%, transparent 44%),
    radial-gradient(circle at 50% 34%, rgba(220, 161, 127, 0.14), transparent 42%),
    linear-gradient(90deg, #edf4fa 0%, #fbfdff 48%, #edf4fa 100%);
  color: var(--text);
}

[data-theme="light"] .app-shell {
  background:
    radial-gradient(ellipse at 50% -8%, rgba(72, 106, 150, 0.2), rgba(255, 255, 255, 0.52) 25%, transparent 52%),
    linear-gradient(90deg, rgba(235, 242, 249, 0.98), rgba(252, 253, 255, 0.98) 50%, rgba(235, 242, 249, 0.98));
}

[data-theme="light"] .app-shell::before {
  background:
    linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.72) 48%, transparent 64%),
    radial-gradient(ellipse at 50% 0%, rgba(75, 107, 145, 0.18), transparent 32%);
  opacity: 0.82;
}

[data-theme="light"] .sidebar {
  background: transparent;
}

[data-theme="light"] .sidebar,
[data-theme="light"] .brand-name,
[data-theme="light"] h1,
[data-theme="light"] .how-hero h1,
[data-theme="light"] .section-title-row h2,
[data-theme="light"] .specialty-card h3,
[data-theme="light"] .question-title,
[data-theme="light"] .comparison-head h3,
[data-theme="light"] .welcome-content,
[data-theme="light"] .messages,
[data-theme="light"] .demo-answer {
  color: var(--copy-strong);
  text-shadow: none;
}

[data-theme="light"] .how-hero p,
[data-theme="light"] .specialty-card p,
[data-theme="light"] .demo-note,
[data-theme="light"] .question-section-copy,
[data-theme="light"] .question-text,
[data-theme="light"] .comparison-body p,
[data-theme="light"] .prompt-pills button small,
[data-theme="light"] .bubble {
  color: var(--copy-muted);
}

[data-theme="light"] .maplelex-logo svg {
  stroke: #b97654;
  filter: drop-shadow(0 12px 28px rgba(169, 99, 64, 0.18));
}

[data-theme="light"] .nav-button,
[data-theme="light"] .profile-trigger,
[data-theme="light"] .top-upgrade-button {
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.62);
  color: var(--copy);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.86), 0 12px 34px rgba(26, 43, 67, 0.08);
}

[data-theme="light"] .nav-button.active,
[data-theme="light"] .nav-button:hover,
[data-theme="light"] .profile-trigger:hover,
[data-theme="light"] .profile-trigger[aria-expanded="true"] {
  border-color: rgba(169, 99, 64, 0.28);
  background: rgba(255, 255, 255, 0.9);
  color: var(--copy-strong);
}

[data-theme="light"] .profile-menu,
[data-theme="light"] .chat-history-section,
[data-theme="light"] .auth-modal,
[data-theme="light"] .settings-modal,
[data-theme="light"] .profile-modal,
[data-theme="light"] .rename-modal {
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.94);
  color: var(--copy);
  box-shadow: var(--shadow);
}

[data-theme="light"] .search-box input,
[data-theme="light"] .rename-field input {
  border-color: var(--panel-border);
  background: rgba(20, 32, 51, 0.045);
  color: var(--copy-strong);
}

[data-theme="light"] .hero-composer,
[data-theme="light"] .chat-composer,
[data-theme="light"] .demo-composer {
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

[data-theme="light"] .hero-composer textarea,
[data-theme="light"] .chat-composer textarea,
[data-theme="light"] .demo-composer textarea {
  color: var(--copy-strong);
}

[data-theme="light"] .hero-composer textarea::placeholder,
[data-theme="light"] .chat-composer textarea::placeholder,
[data-theme="light"] .demo-composer textarea::placeholder {
  color: rgba(49, 65, 85, 0.52);
}

[data-theme="light"] .tool-pill,
[data-theme="light"] .secondary-action,
[data-theme="light"] .prompt-pills button,
[data-theme="light"] .status-chip,
[data-theme="light"] .demo-chip,
[data-theme="light"] .progress-step,
[data-theme="light"] .meta-chip {
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.6);
  color: var(--copy);
}

[data-theme="light"] .send-button,
[data-theme="light"] .primary-action,
[data-theme="light"] .question-action {
  background: #162235;
  color: #ffffff;
}

[data-theme="light"] .prompt-pills button span {
  color: var(--copy-strong);
}

[data-theme="light"] .specialty-grid,
[data-theme="light"] .demo-prompts,
[data-theme="light"] .comparison-grid {
  border-color: var(--panel-border);
  background: rgba(20, 32, 51, 0.12);
}

[data-theme="light"] .specialty-card,
[data-theme="light"] .demo-prompts button,
[data-theme="light"] .comparison-card {
  background: rgba(255, 255, 255, 0.72);
}

[data-theme="light"] .specialty-card:hover,
[data-theme="light"] .demo-prompts button:hover {
  background: rgba(255, 255, 255, 0.94);
}

[data-theme="light"] .specialty-icon,
[data-theme="light"] .question-icon,
[data-theme="light"] .demo-label,
[data-theme="light"] .greeting-kicker {
  color: var(--accent-ui);
}

[data-theme="light"] .comparison-head {
  border-bottom-color: var(--panel-border);
}

[data-theme="light"] .maplelex-thinking,
[data-theme="light"] .demo-evidence,
[data-theme="light"] .demo-error,
[data-theme="light"] .response-card,
[data-theme="light"] .user .bubble {
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--copy);
}

[data-theme="light"] .assistant .bubble {
  color: var(--copy);
}

[data-theme="light"] .chat-composer-wrap {
  background: linear-gradient(180deg, transparent, rgba(238, 244, 250, 0.96) 34%);
}

[data-theme="light"] .modal-backdrop {
  background: rgba(238, 244, 250, 0.72);
}

@media (max-width: 700px) {
  [data-theme="light"] .sidebar {
    border-color: var(--panel-border);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
  }
}

/* Restored blue MapleLex interface */
:root {
  color-scheme: dark;
  --bg: #020811;
  --sidebar-bg: transparent;
  --surface: rgba(34, 36, 40, 0.94);
  --surface-2: rgba(255, 255, 255, 0.085);
  --surface-3: rgba(255, 255, 255, 0.13);
  --menu-bg: rgba(18, 24, 34, 0.94);
  --line: rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.085);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.62);
  --subtle: rgba(255, 255, 255, 0.42);
  --green: #6ec89a;
  --green-strong: #4fb77e;
  --green-soft: rgba(110, 200, 154, 0.17);
  --blue: #86aefc;
  --amber: #e1a680;
  --red: #f09584;
  --page-bg: #020811;
  --page-bg-soft: #0a1019;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-muted: rgba(255, 255, 255, 0.055);
  --panel-border: rgba(255, 255, 255, 0.13);
  --field-bg: rgba(255, 255, 255, 0.045);
  --copy-strong: rgba(255, 255, 255, 0.92);
  --copy: rgba(255, 255, 255, 0.74);
  --copy-muted: rgba(255, 255, 255, 0.54);
  --accent-ui: #dca17f;
  --accent-soft: rgba(220, 161, 127, 0.15);
  --shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
  color-scheme: dark;
  --bg: #020811;
  --sidebar-bg: transparent;
  --surface: rgba(34, 36, 40, 0.94);
  --surface-2: rgba(255, 255, 255, 0.085);
  --surface-3: rgba(255, 255, 255, 0.13);
  --menu-bg: rgba(18, 24, 34, 0.94);
  --line: rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.085);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.62);
  --subtle: rgba(255, 255, 255, 0.42);
  --green: #6ec89a;
  --green-strong: #4fb77e;
  --green-soft: rgba(110, 200, 154, 0.17);
  --blue: #86aefc;
  --amber: #e1a680;
  --red: #f09584;
  --page-bg: #020811;
  --page-bg-soft: #0a1019;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-muted: rgba(255, 255, 255, 0.055);
  --panel-border: rgba(255, 255, 255, 0.13);
  --field-bg: rgba(255, 255, 255, 0.045);
  --copy-strong: rgba(255, 255, 255, 0.92);
  --copy: rgba(255, 255, 255, 0.74);
  --copy-muted: rgba(255, 255, 255, 0.54);
  --accent-ui: #dca17f;
  --accent-soft: rgba(220, 161, 127, 0.15);
  --shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.3);
}

body,
[data-theme="light"] body {
  min-height: 100vh;
  padding: 0;
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08) 18%, transparent 42%),
    radial-gradient(circle at 50% 34%, rgba(220, 161, 127, 0.09), transparent 38%),
    linear-gradient(90deg, #020811 0%, #080b12 46%, #020811 100%);
  color: var(--text);
}

.app-shell,
[data-theme="light"] .app-shell {
  position: relative;
  min-height: 100vh;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 50% -8%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04) 25%, transparent 50%),
    linear-gradient(90deg, rgba(2, 8, 17, 0.98), rgba(9, 12, 18, 0.98) 50%, rgba(2, 8, 17, 0.98));
  box-shadow: none;
}

.app-shell::before,
[data-theme="light"] .app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.065) 48%, transparent 64%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.13), transparent 30%);
  opacity: 0.72;
}

.main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: transparent;
}

.sidebar {
  position: absolute;
  inset: clamp(34px, 4.2vw, 58px) clamp(34px, 4.2vw, 58px) auto;
  z-index: 10;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.4vw, 28px);
}

.sidebar-top {
  flex: 0 0 auto;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.brand-button {
  width: auto;
}

.brand-subtitle,
#collapseSidebar,
.auth-button,
.chevron {
  display: none !important;
}

.maplelex-logo {
  width: clamp(58px, 4.4vw, 78px);
  height: clamp(58px, 4.4vw, 78px);
}

.maplelex-logo svg {
  stroke: #e9ad86;
  stroke-width: 3.7;
  filter: drop-shadow(0 16px 40px rgba(220, 161, 127, 0.32));
}

.brand-name,
[data-theme="light"] .brand-name {
  color: var(--copy-strong);
  font-size: clamp(34px, 2.6vw, 52px);
  font-weight: 760;
  letter-spacing: 0;
  text-shadow: 0 18px 48px rgba(255, 255, 255, 0.16);
}

.nav-button,
.profile-trigger,
[data-theme="light"] .nav-button,
[data-theme="light"] .profile-trigger,
[data-theme="light"] .top-upgrade-button {
  width: auto;
  min-height: clamp(56px, 4vw, 76px);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.76);
  padding: 0 clamp(18px, 1.6vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(18px, 1.45vw, 30px);
  font-weight: 520;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px);
}

.nav-button .icon {
  width: auto;
  height: auto;
  color: currentColor;
}

#searchBtn {
  min-height: clamp(56px, 4vw, 76px);
  padding: 0 clamp(18px, 1.6vw, 32px);
}

.nav-button.active,
.nav-button:hover,
.profile-trigger:hover,
.profile-trigger[aria-expanded="true"],
[data-theme="light"] .nav-button.active,
[data-theme="light"] .nav-button:hover,
[data-theme="light"] .profile-trigger:hover,
[data-theme="light"] .profile-trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.how-nav-button,
[data-theme="light"] .how-nav-button {
  background: rgba(255, 255, 255, 0.045);
}

.top-upgrade-button {
  margin-left: auto;
  color: #fff;
  font-weight: 620;
}

.sidebar-bottom {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 0;
}

.profile-trigger {
  min-width: clamp(64px, 4.6vw, 88px);
  min-height: clamp(64px, 4.6vw, 88px);
  padding: 8px;
  justify-content: center;
}

.profile-copy {
  display: none;
}

.avatar {
  width: clamp(42px, 3vw, 58px);
  height: clamp(42px, 3vw, 58px);
  background: rgba(110, 200, 154, 0.19);
  color: #72c697;
  font-size: clamp(20px, 1.5vw, 30px);
}

.profile-menu {
  top: calc(100% + 14px);
  right: 0;
  bottom: auto;
  left: auto;
  width: 260px;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background: var(--menu-bg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(26px);
}

.profile-menu-item {
  color: var(--copy);
}

.chat-history-section {
  position: fixed;
  left: clamp(24px, 4vw, 64px);
  top: clamp(118px, 9vw, 160px);
  bottom: clamp(24px, 4vw, 64px);
  width: min(360px, calc(100vw - 48px));
  z-index: 30;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: rgba(8, 13, 22, 0.84);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(26px);
  opacity: 0;
  transform: translateX(-18px) scale(0.98);
  pointer-events: none;
  transition: opacity 190ms ease, transform 190ms ease;
}

.chat-history-section.drawer-open {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.chat-history-section .section-row {
  display: flex !important;
}

.search-box input {
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--copy-strong);
}

.mobile-topbar {
  display: none !important;
}

.welcome-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(184px, 17vh, 260px) clamp(28px, 3vw, 56px) clamp(48px, 7vh, 92px);
}

.welcome-content {
  width: min(1880px, calc(100vw - clamp(56px, 5.5vw, 112px)));
  display: grid;
  justify-items: center;
  gap: clamp(26px, 3vw, 42px);
}

.greeting-kicker {
  color: var(--accent-ui);
  font-size: clamp(38px, 3vw, 56px);
  font-weight: 780;
  letter-spacing: 0;
  text-shadow: 0 22px 62px rgba(220, 161, 127, 0.23);
}

h1,
.how-hero h1,
[data-theme="light"] h1,
[data-theme="light"] .how-hero h1 {
  margin: 0;
  max-width: 1180px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(54px, 4vw, 88px);
  line-height: 1.06;
  font-weight: 660;
  letter-spacing: 0;
  text-align: center;
  text-shadow: none;
}

.welcome-copy {
  display: none;
}

.hero-composer,
.chat-composer,
[data-theme="light"] .hero-composer,
[data-theme="light"] .chat-composer {
  width: min(1938px, 100%);
  border: 1px solid var(--panel-border);
  border-radius: clamp(34px, 3vw, 52px);
  background: rgba(34, 36, 40, 0.95);
  box-shadow: 0 30px 94px rgba(0, 0, 0, 0.42);
  display: grid;
  gap: clamp(28px, 3.2vw, 56px);
  padding: clamp(28px, 3vw, 72px) clamp(32px, 3.4vw, 68px) clamp(24px, 2.4vw, 40px);
}

.hero-composer:focus-within,
.chat-composer:focus-within {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.48);
}

.hero-composer textarea,
.chat-composer textarea,
[data-theme="light"] .hero-composer textarea,
[data-theme="light"] .chat-composer textarea {
  min-height: clamp(72px, 6vw, 112px);
  max-height: 210px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: clamp(30px, 2.2vw, 42px);
  line-height: 1.3;
  resize: none;
}

.chat-composer textarea {
  min-height: 42px;
  font-size: 18px;
}

.hero-composer textarea::placeholder,
.chat-composer textarea::placeholder,
[data-theme="light"] .hero-composer textarea::placeholder,
[data-theme="light"] .chat-composer textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.composer-actions {
  align-items: end;
}

.tool-pill,
.secondary-action,
.prompt-pills button,
[data-theme="light"] .secondary-action {
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.78);
}

.tool-pill {
  min-height: clamp(54px, 4vw, 74px);
  border-radius: 999px;
  padding: 0 clamp(18px, 1.8vw, 28px);
  font-size: clamp(19px, 1.45vw, 30px);
}

.send-button,
[data-theme="light"] .send-button {
  width: clamp(64px, 4.4vw, 88px);
  height: clamp(64px, 4.4vw, 88px);
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  background: rgba(32, 33, 36, 0.78);
  color: #fff;
  font-size: clamp(30px, 2.2vw, 46px);
  box-shadow: none;
}

.prompt-pills {
  width: min(1828px, calc(100% - clamp(56px, 5.8vw, 112px)));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 1.4vw, 28px);
}

.prompt-pills button {
  min-height: clamp(150px, 10vw, 202px);
  border-radius: 20px;
  padding: clamp(28px, 2vw, 40px);
  display: grid;
  align-content: space-between;
  text-align: left;
  backdrop-filter: blur(18px);
}

.prompt-pills button:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}

.prompt-pills button span {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(22px, 1.55vw, 30px);
  line-height: 1.18;
}

.prompt-pills button small {
  color: rgba(255, 255, 255, 0.46);
  font-size: clamp(16px, 1.1vw, 24px);
}

.app-footer-links,
[data-theme="light"] .app-footer-links {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
  color: rgba(255, 255, 255, 0.48);
  background: transparent;
}

.app-footer-links a,
.app-footer-links button {
  color: inherit;
}

.how-view,
.chat-view {
  min-height: 100vh;
  padding: clamp(166px, 15vh, 230px) clamp(40px, 5vw, 96px) 118px;
}

.how-content,
.messages {
  width: min(1440px, 100%);
  color: var(--text);
}

.how-content {
  display: grid;
  gap: clamp(44px, 5vw, 80px);
}

.how-hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 28px;
  padding: 0;
  text-align: center;
}

.how-hero .hero-logo {
  display: none;
}

.how-hero h1,
[data-theme="light"] .how-hero h1 {
  max-width: 1120px;
  font-size: clamp(48px, 5vw, 82px);
}

.how-hero p,
[data-theme="light"] .how-hero p {
  max-width: 1760px;
  color: var(--copy-muted);
  font-size: clamp(19px, 1.5vw, 24px);
  line-height: 1.6;
  padding: 0;
  text-align: center;
}

.how-hero-actions {
  justify-content: center;
  align-self: auto;
  gap: 18px;
  margin: 6px 0 0;
  padding: 0;
}

.primary-action {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #10141c;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.text-link,
[data-theme="light"] .text-link {
  color: rgba(255, 255, 255, 0.66);
  border-color: rgba(255, 255, 255, 0.24);
}

.text-link:hover,
[data-theme="light"] .text-link:hover {
  color: #fff;
  border-color: rgba(220, 161, 127, 0.72);
}

.how-section {
  display: grid;
  gap: 22px;
}

.section-title-row {
  align-items: center;
  gap: 16px;
}

.section-title-row h2,
[data-theme="light"] .section-title-row h2 {
  color: var(--copy-strong);
  font-size: clamp(27px, 2.5vw, 44px);
  font-weight: 680;
}

.info-dot {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(220, 161, 127, 0.28);
  border-radius: 11px;
  background: rgba(220, 161, 127, 0.1);
  color: rgba(244, 239, 232, 0.9);
  font-size: 12px;
  font-weight: 850;
}

.info-dot::before {
  color: inherit;
}

.specialty-grid,
.demo-prompts,
.comparison-grid,
[data-theme="light"] .specialty-grid,
[data-theme="light"] .demo-prompts,
[data-theme="light"] .comparison-grid {
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
  gap: 1px;
}

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

.specialty-card,
.demo-prompts button,
.comparison-card,
[data-theme="light"] .specialty-card,
[data-theme="light"] .demo-prompts button,
[data-theme="light"] .comparison-card {
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.036);
  box-shadow: none;
}

.specialty-card {
  min-height: 190px;
  margin: 0;
  padding: 24px;
}

.specialty-card:hover,
.demo-prompts button:hover {
  background: rgba(255, 255, 255, 0.075);
  transform: none;
}

.specialty-icon,
.question-icon {
  width: max-content;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-ui);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.07em;
}

.specialty-card h3,
.question-title,
.comparison-head h3,
[data-theme="light"] .specialty-card h3,
[data-theme="light"] .question-title,
[data-theme="light"] .comparison-head h3 {
  color: var(--copy-strong);
}

.specialty-card p,
.demo-note,
.question-section-copy,
.question-text,
.comparison-body p,
[data-theme="light"] .specialty-card p,
[data-theme="light"] .demo-note,
[data-theme="light"] .question-text,
[data-theme="light"] .comparison-body p {
  color: var(--copy-muted);
}

.demo-prompts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.demo-prompts button {
  min-height: 210px;
  padding: 22px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 18px;
}

.question-text {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 17px;
}

.question-action {
  width: max-content;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #10141c;
}

.demo-composer,
[data-theme="light"] .demo-composer {
  width: 100%;
  min-height: auto;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: rgba(34, 36, 40, 0.95);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  padding: 28px;
  gap: 18px;
}

.demo-label,
[data-theme="light"] .demo-label {
  color: var(--accent-ui);
}

.demo-composer textarea,
[data-theme="light"] .demo-composer textarea {
  min-height: 110px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: clamp(22px, 1.8vw, 32px);
  resize: none;
}

.comparison-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.maplelex-card {
  grid-row: span 2;
}

.comparison-head,
[data-theme="light"] .comparison-head {
  min-height: 64px;
  border-bottom: 1px solid var(--panel-border);
  background: transparent;
}

.comparison-body {
  background: transparent;
}

.maplelex-thinking,
.demo-evidence,
.demo-error,
.response-card,
[data-theme="light"] .maplelex-thinking,
[data-theme="light"] .demo-evidence,
[data-theme="light"] .demo-error {
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.045);
}

.chat-view {
  overflow: auto;
  padding-bottom: 170px;
}

.messages {
  margin: 0 auto;
}

.bubble {
  color: var(--copy);
}

.user .bubble {
  background: rgba(255, 255, 255, 0.08);
  color: var(--copy-strong);
}

.assistant .bubble {
  background: transparent;
}

.chat-composer-wrap {
  background: linear-gradient(180deg, transparent, rgba(2, 8, 17, 0.96) 34%);
  padding-bottom: 28px;
}

.chat-composer {
  width: min(940px, calc(100% - 32px));
  border-radius: 28px;
  padding: 16px 18px;
  gap: 8px;
}

.chat-composer .tool-pill,
.composer-status {
  font-size: 14px;
  color: var(--copy-muted);
}

.chat-composer .send-button {
  width: 46px;
  height: 46px;
  font-size: 22px;
}

.modal-backdrop {
  background: rgba(2, 8, 17, 0.72);
  backdrop-filter: blur(18px);
}

.auth-modal,
.settings-modal,
.profile-modal,
.rename-modal {
  border: 1px solid var(--panel-border);
  background: rgba(18, 24, 34, 0.94);
  color: var(--copy);
  box-shadow: var(--shadow);
}

@media (max-width: 1180px) {
  .sidebar {
    gap: 10px;
  }

  .brand-name {
    font-size: 30px;
  }

  .maplelex-logo {
    width: 54px;
    height: 54px;
  }

  .nav-button,
  .profile-trigger {
    min-height: 48px;
    padding: 0 16px;
    font-size: 16px;
  }

  .profile-trigger {
    min-width: 54px;
  }

  .top-upgrade-button {
    display: none;
  }

  .welcome-content {
    width: min(1040px, calc(100vw - 48px));
  }

  .hero-composer {
    border-radius: 34px;
  }

  .prompt-pills {
    width: min(980px, calc(100% - 24px));
  }

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

  .maplelex-card {
    grid-row: auto;
  }

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

@media (max-width: 700px) {
  body {
    padding: 0;
  }

  .app-shell {
    min-height: 100vh;
  }

  .sidebar {
    inset: 16px 16px auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    background: rgba(12, 17, 26, 0.82);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(22px);
  }

  .sidebar-top {
    grid-column: 1;
  }

  .brand-name {
    font-size: 23px;
  }

  .maplelex-logo {
    width: 42px;
    height: 42px;
  }

  .sidebar-bottom {
    grid-column: 2;
    grid-row: 1;
  }

  .profile-trigger {
    min-width: 42px;
    min-height: 42px;
    padding: 4px;
  }

  .avatar {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .sidebar > .nav-button {
    grid-row: 2;
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .chat-history-section:not(.drawer-open) {
    display: none;
  }

  .chat-history-section.drawer-open {
    display: grid;
    top: 128px;
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }

  .welcome-view {
    padding: 184px 16px 78px;
    place-items: start center;
  }

  .welcome-content {
    width: 100%;
    gap: 24px;
  }

  .greeting-kicker {
    font-size: 30px;
  }

  h1,
  .how-hero h1 {
    font-size: clamp(38px, 10vw, 52px);
  }

  .hero-composer,
  .chat-composer {
    border-radius: 28px;
    padding: 22px;
  }

  .hero-composer textarea {
    min-height: 88px;
    font-size: 22px;
  }

  .tool-pill {
    min-height: 42px;
    font-size: 14px;
  }

  .send-button {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }

  .prompt-pills {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .prompt-pills button {
    min-height: 104px;
    padding: 18px;
  }

  .prompt-pills button span {
    font-size: 18px;
  }

  .prompt-pills button small {
    font-size: 14px;
  }

  .how-view,
  .chat-view {
    padding: 172px 16px 96px;
  }

  .how-content {
    gap: 42px;
  }

  .how-hero p {
    font-size: 16px;
  }

  .how-hero-actions {
    width: 100%;
  }

  .how-hero-actions .primary-action {
    width: 100%;
  }

  .specialty-grid,
  .demo-prompts {
    grid-template-columns: 1fr;
  }

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

  .demo-prompts button {
    min-height: 180px;
  }

  .app-footer-links {
    position: static;
    transform: none;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 16px 20px;
  }
}

/* Final cleanup pass: concise hero, no section number badges, and full light mode. */
.info-dot {
  display: none !important;
}

.section-title-row {
  gap: 0;
}

.how-hero p,
[data-theme="light"] .how-hero p {
  max-width: 1320px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #eef4fa;
  --sidebar-bg: transparent;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-2: #e8eef5;
  --surface-3: #dfe8f1;
  --menu-bg: rgba(255, 255, 255, 0.96);
  --line: rgba(24, 40, 61, 0.16);
  --line-soft: rgba(24, 40, 61, 0.1);
  --text: #142033;
  --muted: #526174;
  --subtle: #788597;
  --green: #287b58;
  --green-strong: #1f6749;
  --green-soft: rgba(40, 123, 88, 0.12);
  --blue: #245eaa;
  --amber: #a96340;
  --red: #b44f43;
  --page-bg: #eef4fa;
  --page-bg-soft: #fbfdff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-muted: rgba(20, 32, 51, 0.055);
  --panel-border: rgba(20, 32, 51, 0.15);
  --field-bg: rgba(20, 32, 51, 0.045);
  --copy-strong: #142033;
  --copy: #314155;
  --copy-muted: #627084;
  --accent-ui: #a96340;
  --accent-soft: rgba(169, 99, 64, 0.12);
  --shadow: 0 34px 100px rgba(26, 43, 67, 0.16);
  --shadow-soft: 0 22px 70px rgba(26, 43, 67, 0.12);
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at 50% -12%, rgba(67, 104, 150, 0.24), rgba(67, 104, 150, 0.08) 20%, transparent 44%),
    radial-gradient(circle at 50% 34%, rgba(220, 161, 127, 0.14), transparent 42%),
    linear-gradient(90deg, #edf4fa 0%, #fbfdff 48%, #edf4fa 100%);
  color: var(--text);
}

[data-theme="light"] .app-shell {
  background:
    radial-gradient(ellipse at 50% -8%, rgba(72, 106, 150, 0.2), rgba(255, 255, 255, 0.52) 25%, transparent 52%),
    linear-gradient(90deg, rgba(235, 242, 249, 0.98), rgba(252, 253, 255, 0.98) 50%, rgba(235, 242, 249, 0.98));
}

[data-theme="light"] .app-shell::before {
  background:
    linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.72) 48%, transparent 64%),
    radial-gradient(ellipse at 50% 0%, rgba(75, 107, 145, 0.18), transparent 32%);
  opacity: 0.82;
}

[data-theme="light"] .sidebar,
[data-theme="light"] .brand-name,
[data-theme="light"] h1,
[data-theme="light"] .how-hero h1,
[data-theme="light"] .section-title-row h2,
[data-theme="light"] .specialty-card h3,
[data-theme="light"] .question-title,
[data-theme="light"] .comparison-head h3,
[data-theme="light"] .welcome-content,
[data-theme="light"] .messages,
[data-theme="light"] .demo-answer {
  color: var(--copy-strong);
  text-shadow: none;
}

[data-theme="light"] .how-hero p,
[data-theme="light"] .specialty-card p,
[data-theme="light"] .demo-note,
[data-theme="light"] .question-section-copy,
[data-theme="light"] .question-text,
[data-theme="light"] .comparison-body p,
[data-theme="light"] .prompt-pills button small,
[data-theme="light"] .bubble {
  color: var(--copy-muted);
}

[data-theme="light"] .maplelex-logo svg {
  stroke: #b97654;
  filter: drop-shadow(0 12px 28px rgba(169, 99, 64, 0.18));
}

[data-theme="light"] .nav-button,
[data-theme="light"] .profile-trigger,
[data-theme="light"] .top-upgrade-button {
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.62);
  color: var(--copy);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.86), 0 12px 34px rgba(26, 43, 67, 0.08);
}

[data-theme="light"] .nav-button.active,
[data-theme="light"] .nav-button:hover,
[data-theme="light"] .profile-trigger:hover,
[data-theme="light"] .profile-trigger[aria-expanded="true"] {
  border-color: rgba(169, 99, 64, 0.28);
  background: rgba(255, 255, 255, 0.9);
  color: var(--copy-strong);
}

[data-theme="light"] .profile-menu,
[data-theme="light"] .chat-history-section,
[data-theme="light"] .auth-modal,
[data-theme="light"] .settings-modal,
[data-theme="light"] .profile-modal,
[data-theme="light"] .rename-modal {
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.94);
  color: var(--copy);
  box-shadow: var(--shadow);
}

[data-theme="light"] .search-box input,
[data-theme="light"] .rename-field input {
  border-color: var(--panel-border);
  background: rgba(20, 32, 51, 0.045);
  color: var(--copy-strong);
}

[data-theme="light"] .hero-composer,
[data-theme="light"] .chat-composer,
[data-theme="light"] .demo-composer {
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

[data-theme="light"] .hero-composer textarea,
[data-theme="light"] .chat-composer textarea,
[data-theme="light"] .demo-composer textarea {
  color: var(--copy-strong);
}

[data-theme="light"] .hero-composer textarea::placeholder,
[data-theme="light"] .chat-composer textarea::placeholder,
[data-theme="light"] .demo-composer textarea::placeholder {
  color: rgba(49, 65, 85, 0.52);
}

[data-theme="light"] .tool-pill,
[data-theme="light"] .secondary-action,
[data-theme="light"] .prompt-pills button,
[data-theme="light"] .status-chip,
[data-theme="light"] .demo-chip,
[data-theme="light"] .progress-step,
[data-theme="light"] .meta-chip {
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.6);
  color: var(--copy);
}

[data-theme="light"] .send-button,
[data-theme="light"] .primary-action,
[data-theme="light"] .question-action {
  background: #162235;
  color: #ffffff;
}

[data-theme="light"] .prompt-pills button span {
  color: var(--copy-strong);
}

[data-theme="light"] .specialty-grid,
[data-theme="light"] .demo-prompts,
[data-theme="light"] .comparison-grid {
  border-color: var(--panel-border);
  background: rgba(20, 32, 51, 0.12);
}

[data-theme="light"] .specialty-card,
[data-theme="light"] .demo-prompts button,
[data-theme="light"] .comparison-card {
  background: rgba(255, 255, 255, 0.72);
}

[data-theme="light"] .specialty-card:hover,
[data-theme="light"] .demo-prompts button:hover {
  background: rgba(255, 255, 255, 0.94);
}

[data-theme="light"] .specialty-icon,
[data-theme="light"] .question-icon,
[data-theme="light"] .demo-label,
[data-theme="light"] .greeting-kicker {
  color: var(--accent-ui);
}

[data-theme="light"] .comparison-head {
  border-bottom-color: var(--panel-border);
}

[data-theme="light"] .maplelex-thinking,
[data-theme="light"] .demo-evidence,
[data-theme="light"] .demo-error,
[data-theme="light"] .response-card,
[data-theme="light"] .user .bubble {
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--copy);
}

[data-theme="light"] .assistant .bubble {
  color: var(--copy);
}

[data-theme="light"] .chat-composer-wrap {
  background: linear-gradient(180deg, transparent, rgba(238, 244, 250, 0.96) 34%);
}

[data-theme="light"] .modal-backdrop {
  background: rgba(238, 244, 250, 0.72);
}

@media (max-width: 700px) {
  [data-theme="light"] .sidebar {
    border-color: var(--panel-border);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
  }
}
