:root {
  color-scheme: light;
  --bg: #f7f7f3;
  --panel: rgba(255, 255, 250, 0.62);
  --surface: rgba(255, 255, 253, 0.66);
  --surface-solid: rgba(255, 255, 252, 0.82);
  --text: #11110f;
  --muted: #6d6d66;
  --faint: #a3a39a;
  --line: rgba(23, 23, 21, 0.08);
  --line-strong: rgba(23, 23, 21, 0.13);
  --accent: #161614;
  --accent-text: #fff;
  --soft-accent: rgba(229, 231, 220, 0.7);
  --brand-red: #c91432;
  --brand-red-2: #8f071f;
  --vivid-aqua: #70d7ff;
  --vivid-violet: #a68bff;
  --vivid-gold: #ffd580;
  --vivid-pink: #ff6f9a;
  --vivid-mint: #9dffda;
  --glass-light: rgba(255, 255, 255, 0.52);
  --material-edge: rgba(255, 255, 255, 0.34);
  --focus-ring: rgba(112, 215, 255, 0.48);
  --success: #62a86b;
  --danger: #b24d45;
  --shadow: 0 26px 86px rgba(29, 31, 23, 0.12);
  --small-shadow: 0 14px 38px rgba(29, 31, 23, 0.1);
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  --font-system: var(--font-body);
  --font-rounded: var(--font-body);
  --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas,
    monospace;
  font-family: var(--font-system);
}

/* v20260708-3: balanced İmdi logo sizing across launcher-aligned UI. */
.landing-brand-mark img,
.brand-mark img,
.mobile-brand img,
.welcome-logo img,
.intro-mark img,
.dialog-icon img,
.logo-stamp img {
  object-fit: contain !important;
  object-position: center !important;
}

.auth-landing .welcome-logo {
  width: 70px !important;
  height: 70px !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.34),
    0 0 26px rgba(182, 31, 67, 0.14) !important;
}

.auth-landing .welcome-logo img {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  filter: drop-shadow(0 8px 16px rgba(182, 31, 67, 0.18)) !important;
}

.auth-landing .landing-brand-mark {
  width: 34px !important;
  height: 34px !important;
  border-radius: 11px !important;
}

.auth-landing .landing-brand-mark img {
  width: 27px !important;
  height: 27px !important;
  border-radius: 8px !important;
}

body.chat-mode .mobile-brand img,
body.is-native-app.chat-mode .mobile-brand img,
body.chat-mode .brand-mark img,
body.is-native-app.chat-mode .brand-mark img {
  width: 30px !important;
  height: 30px !important;
  border-radius: 9px !important;
  filter: drop-shadow(0 6px 12px rgba(182, 31, 67, 0.16)) !important;
}

@media (max-width: 560px) {
  .auth-landing .welcome-logo {
    width: 64px !important;
    height: 64px !important;
    border-radius: 20px !important;
  }

  .auth-landing .welcome-logo img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 13px !important;
  }
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080907;
  --panel: rgba(15, 16, 14, 0.66);
  --surface: rgba(31, 32, 28, 0.68);
  --surface-solid: rgba(28, 30, 26, 0.84);
  --text: #f7f7f2;
  --muted: #b5b4aa;
  --faint: #7d7d75;
  --line: rgba(255, 255, 250, 0.08);
  --line-strong: rgba(255, 255, 250, 0.14);
  --accent: #f1f1ec;
  --accent-text: #181916;
  --soft-accent: rgba(49, 51, 43, 0.72);
  --glass-light: rgba(255, 255, 255, 0.08);
  --material-edge: rgba(255, 255, 255, 0.12);
  --focus-ring: rgba(112, 215, 255, 0.34);
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
  --small-shadow: 0 16px 42px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.api-key-form,
.computer-access-card,
.access-warning {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(112, 215, 255, 0.2), transparent 28%),
    radial-gradient(circle at 28% 88%, rgba(255, 213, 128, 0.18), transparent 34%),
    linear-gradient(135deg, var(--bg), rgba(201, 20, 50, 0.08));
  color: var(--text);
  font-family: var(--font-system);
  font-size: 15px;
  font-kerning: normal;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background 240ms ease, color 240ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 72%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.06) 44%, transparent 54% 100%),
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.08), transparent 18%);
  mix-blend-mode: soft-light;
  opacity: 0.68;
  animation: stage-sheen 12s ease-in-out infinite;
}

button,
textarea,
input {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
textarea {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

svg {
  fill: none;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(92px);
  opacity: 0.42;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  animation: ambient-float 12s ease-in-out infinite;
}

.ambient-one {
  top: -320px;
  right: 3%;
  background: conic-gradient(from 120deg, var(--vivid-aqua), var(--vivid-violet), var(--vivid-pink), transparent 58%, var(--vivid-aqua));
}

.ambient-two {
  bottom: -360px;
  left: 22%;
  background: conic-gradient(from 40deg, var(--vivid-gold), rgba(201, 20, 50, 0.72), transparent 58%, var(--vivid-gold));
  animation-delay: -4s;
}

.ambient-three {
  top: 34%;
  right: -340px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(201, 20, 50, 0.35), transparent 68%);
  animation-delay: -8s;
}

.intro-active body,
html.intro-active {
  overflow: hidden;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.12), transparent 19%),
    radial-gradient(circle at 50% 45%, rgba(201, 20, 50, 0.22), transparent 35%),
    radial-gradient(circle at 58% 60%, rgba(112, 215, 255, 0.12), transparent 25%),
    linear-gradient(145deg, #060706, #151711 58%, #080907);
  color: #fff;
}

.intro-belts {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  opacity: 0.84;
}

.intro-belts span {
  display: block;
  border-right: 1px solid rgba(255, 255, 255, 0.045);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 34%),
    #050609;
  transform: scaleY(0);
  transform-origin: top;
  animation: intro-belt-in 960ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-belts span:nth-child(2) {
  animation-delay: 70ms;
}

.intro-belts span:nth-child(3) {
  animation-delay: 140ms;
}

.intro-belts span:nth-child(4) {
  animation-delay: 210ms;
}

.intro-belts span:nth-child(5) {
  animation-delay: 280ms;
}

.intro::before,
.intro::after {
  position: absolute;
  inset: auto;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  content: "";
  filter: blur(58px);
  opacity: 0.72;
  animation: intro-aurora 2.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.intro::before {
  top: -260px;
  right: 10%;
  background: conic-gradient(var(--vivid-aqua), var(--vivid-violet), transparent 55%, var(--vivid-aqua));
}

.intro::after {
  bottom: -290px;
  left: 10%;
  background: conic-gradient(var(--vivid-gold), var(--brand-red), transparent 58%, var(--vivid-gold));
  animation-delay: 120ms;
}

.intro-glow {
  position: absolute;
  width: min(58vw, 520px);
  aspect-ratio: 1;
  border-radius: 44%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.11), transparent 64%);
  animation: intro-glow 1.85s ease both;
}

.intro-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  animation: intro-card 1.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro-card::before {
  position: absolute;
  inset: -58px -92px;
  z-index: -1;
  border-radius: 44px;
  background:
    linear-gradient(110deg, transparent 22%, rgba(255, 255, 255, 0.18), transparent 58%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 64%);
  content: "";
  opacity: 0;
  transform: translateX(-18%) rotate(-8deg);
  animation: intro-sweep 1.55s 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  border-radius: 30px;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.38));
}

.intro-mark::before {
  position: absolute;
  inset: -18px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 38px;
  content: "";
  transform: rotate(9deg);
  animation: intro-ring 1.7s ease both;
}

.intro-mark::after {
  position: absolute;
  inset: -9px;
  z-index: -1;
  border-radius: 34px;
  background: conic-gradient(from 180deg, var(--vivid-aqua), transparent 22%, var(--vivid-pink), transparent 56%, var(--vivid-gold), var(--vivid-aqua));
  content: "";
  filter: blur(12px);
  opacity: 0.78;
  animation: intro-color-ring 1.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro-mark img {
  width: 100%;
  height: 100%;
  animation: intro-logo 1.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro-word {
  font-family: var(--font-rounded);
  font-size: 34px;
  font-weight: 760;
  letter-spacing: -0.07em;
}

.intro-counter {
  color: rgba(255, 255, 255, 0.5);
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.18em;
}

.intro-line {
  width: 72px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.intro-line::before {
  display: block;
  width: 52%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--vivid-aqua), #fff, var(--vivid-gold));
  content: "";
  animation: intro-line 1.35s ease-in-out both;
}

.intro-done {
  animation: intro-out 540ms ease forwards;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  height: 100dvh;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 24%),
    radial-gradient(circle at 74% 22%, rgba(255, 255, 255, 0.07), transparent 26%);
}

.app-shell::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 105%, rgba(255, 213, 128, 0.16), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(112, 215, 255, 0.12), transparent 22%);
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 23px 17px 18px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--glass-light), transparent 42%),
    var(--panel);
  backdrop-filter: blur(34px) saturate(155%);
  -webkit-backdrop-filter: blur(34px) saturate(155%);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.08) inset;
}

.sidebar::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-right: 1px solid var(--material-edge);
  content: "";
}

.brand-row,
.brand,
.topbar,
.privacy-chip,
.mobile-brand,
.approval-heading,
.sidebar-action,
.status-card,
.composer-bottom {
  display: flex;
  align-items: center;
}

.brand-row,
.topbar,
.composer-bottom {
  justify-content: space-between;
}

.brand {
  gap: 9px;
  color: var(--text);
  font-family: var(--font-rounded);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand-mark,
.welcome-mark,
.dialog-icon {
  position: relative;
  display: grid;
  place-items: center;
  background: transparent;
}

.brand-mark {
  width: 29px;
  height: 29px;
  filter: drop-shadow(0 8px 14px rgba(201, 20, 50, 0.22));
  transition: transform 220ms ease, filter 220ms ease;
}

.brand:hover .brand-mark {
  filter: drop-shadow(0 11px 18px rgba(201, 20, 50, 0.32));
  transform: translateY(-1px) rotate(-3deg) scale(1.035);
}

.brand-mark img,
.welcome-mark img,
.dialog-icon img,
.mobile-brand img,
.assistant-mini-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.new-chat {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 24px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent),
    var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, var(--small-shadow);
  cursor: pointer;
  font-size: 12px;
  font-weight: 590;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.new-chat:hover {
  border-color: rgba(201, 20, 50, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.62) inset, 0 18px 42px rgba(201, 20, 50, 0.13);
  transform: translateY(-1px);
}

.new-chat:active,
.suggestion:active,
.send-button:active,
.sidebar-action:active,
.history-item:active,
.response-style:active {
  transform: scale(0.985);
}

.shortcut {
  color: var(--faint);
  font-size: 11px;
}

.history-block {
  min-height: 0;
  margin-top: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.history-list {
  display: grid;
  gap: 3px;
  max-height: calc(100dvh - 370px);
  overflow-y: auto;
}

.history-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  border-radius: 11px;
}

.history-entry:hover,
.history-entry:focus-within {
  background: var(--surface);
}

.history-item {
  overflow: hidden;
  width: 100%;
  padding: 10px 11px;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item:hover,
.history-item.active {
  background: var(--surface);
  color: var(--text);
}

.history-delete {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  opacity: 0;
}

.history-entry:hover .history-delete,
.history-entry:focus-within .history-delete,
.history-delete:focus-visible {
  opacity: 1;
}

.history-delete:hover {
  background: var(--line);
  color: var(--danger);
}

.history-delete svg,
.action-icon svg,
.privacy-chip svg,
.send-button svg,
.icon-button svg {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.history-delete svg {
  width: 13px;
  stroke-width: 1.55;
}

.empty-history {
  padding: 7px 10px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
}

.sidebar-footer {
  display: grid;
  gap: 5px;
  margin-top: auto;
}

.sidebar-action {
  gap: 10px;
  padding: 9px 8px;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.sidebar-action:hover {
  background: var(--surface);
  color: var(--text);
}

.action-icon {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
}

.action-icon svg {
  width: 17px;
  stroke-width: 1.6;
}

.theme-action {
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 7px 8px 7px 10px;
  user-select: none;
}

.theme-action #themeLabel {
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.theme-switch {
  position: relative;
  flex: 0 0 auto;
  width: 51px;
  height: 31px;
}

.theme-checkbox {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.theme-switch-track {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background-color: #e9e9eb;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
  transition: background-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.theme-slider {
  position: absolute;
  top: calc(50% - 27px / 2);
  left: calc(50% - 27px / 2 - 10px);
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 3px 1px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: left 0.2s ease-out, top 0.2s ease-out, transform 0.2s ease-out;
}

.theme-checkbox:checked + .theme-switch-track {
  background-color: #34c759;
  box-shadow: 0 0 0 1px rgba(52, 199, 89, 0.12) inset, 0 6px 16px rgba(52, 199, 89, 0.18);
}

.theme-checkbox:checked + .theme-switch-track .theme-slider {
  left: calc(50% - 27px / 2 + 10px);
  top: calc(50% - 27px / 2);
}

.theme-checkbox:focus-visible + .theme-switch-track {
  outline: 2px solid rgba(52, 199, 89, 0.7);
  outline-offset: 3px;
}

.theme-action:hover #themeLabel {
  color: var(--text);
}

.status-card {
  gap: 10px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 62%),
    var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.status-card div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.status-card strong {
  font-size: 11px;
  font-weight: 650;
}

.status-card span:not(.status-dot) {
  overflow: hidden;
  color: var(--faint);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c8a65d;
  box-shadow: 0 0 0 4px rgba(200, 166, 93, 0.11);
}

.status-dot.connected {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(98, 168, 107, 0.11);
}

.main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  height: 100dvh;
}

.topbar {
  gap: 12px;
  height: 64px;
  padding: 0 28px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar-spacer {
  flex: 1;
}

.privacy-chip {
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 580;
  box-shadow: 0 1px 0 var(--material-edge) inset;
}

.privacy-chip svg {
  width: 13px;
  stroke-width: 1.7;
}

.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff9ec, #d8d2c6);
  color: #4b463e;
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.04em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .avatar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(180, 176, 162, 0.84));
}

.mobile-brand {
  display: none;
  gap: 7px;
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.mobile-brand img {
  width: 25px;
  height: 25px;
  filter: drop-shadow(0 5px 9px rgba(12, 13, 10, 0.12));
}

.conversation {
  min-height: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(680px, calc(100% - 48px));
  margin: clamp(34px, 7vh, 86px) auto 20px;
  text-align: center;
  animation: rise-in 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.welcome.hidden {
  display: none;
}

.welcome-mark {
  isolation: isolate;
  width: 62px;
  height: 62px;
  margin-bottom: 24px;
  filter: drop-shadow(0 22px 36px rgba(201, 20, 50, 0.2));
  animation: logo-breathe 4.8s ease-in-out infinite;
}

.welcome-mark::before {
  position: absolute;
  z-index: -2;
  inset: -24px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 40%),
    conic-gradient(from 120deg, rgba(112, 215, 255, 0.28), rgba(201, 20, 50, 0.28), rgba(255, 213, 128, 0.28), rgba(112, 215, 255, 0.28));
  content: "";
  filter: blur(12px);
  opacity: 0.82;
  animation: halo-spin 9s linear infinite;
}

.welcome-orbit {
  position: absolute;
  z-index: -1;
  inset: -9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 27px;
  transform: rotate(8deg);
  animation: moment-ring 5.5s ease-in-out infinite;
}

.welcome-kicker {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 520;
}

.welcome h1 {
  margin: 0;
  font-family: var(--font-rounded);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 0.98;
  color: var(--text);
  background: linear-gradient(135deg, var(--text), var(--brand-red));
  background-size: 160% 160%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-flow 7s ease-in-out infinite;
}

.welcome-copy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.suggestions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 38px;
}

.suggestion {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 76px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.35), transparent 62%),
    var(--surface);
  box-shadow: 0 1px 0 var(--material-edge) inset, 0 18px 52px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  text-align: left;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.suggestion::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0 32%, rgba(255, 255, 255, 0.32), transparent 58% 100%);
  content: "";
  opacity: 0;
  transform: translateX(-70%);
  transition: opacity 220ms ease, transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.suggestion:hover {
  border-color: rgba(201, 20, 50, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.48), transparent 58%),
    radial-gradient(circle at 15% 10%, rgba(112, 215, 255, 0.13), transparent 35%),
    var(--surface);
  box-shadow: 0 18px 46px rgba(201, 20, 50, 0.12), var(--small-shadow);
  transform: translateY(-3px) scale(1.012);
}

.suggestion:hover::before {
  opacity: 1;
  transform: translateX(82%);
}

.suggestion-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent),
    var(--soft-accent);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  transition: transform 220ms ease, background 220ms ease;
}

.suggestion:hover .suggestion-icon {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), transparent),
    radial-gradient(circle at 25% 20%, rgba(112, 215, 255, 0.34), transparent 48%),
    var(--soft-accent);
  transform: rotate(-3deg) scale(1.06);
}

.suggestion-icon svg {
  width: 14px;
  stroke: var(--text);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.suggestion span:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.suggestion strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion small {
  overflow: hidden;
  color: var(--faint);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrow {
  color: var(--faint);
  font-size: 12px;
}

.message-list {
  display: grid;
  gap: 24px;
  width: min(760px, calc(100% - 52px));
  margin: 18px auto;
  padding-bottom: 28px;
}

.message-row {
  display: grid;
  animation: message-in 280ms ease both;
}

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

.message {
  max-width: min(620px, 88%);
  font-family: var(--font-system);
  font-size: 14.5px;
  line-height: 1.56;
}

.message.user {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px 20px 6px 20px;
  background: var(--text);
  background: linear-gradient(135deg, var(--brand-red-2), var(--text));
  color: var(--bg);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.13);
}

.message.assistant {
  position: relative;
  min-height: 30px;
  padding: 2px 0 2px 42px;
  color: var(--text);
}

.message p {
  margin: 0 0 9px;
}

.message p:last-child {
  margin-bottom: 0;
}

.assistant-mini-mark {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 8px 12px rgba(201, 20, 50, 0.2));
}

.copy-button {
  margin: 8px 0 0 42px;
  padding: 4px 0;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  font-size: 10px;
}

.copy-button:hover {
  color: var(--text);
}

.typing {
  display: flex;
  gap: 4px;
  padding: 8px 0;
}

.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--faint);
  animation: pulse 1.1s infinite ease-in-out;
}

.typing i:nth-child(2) {
  animation-delay: 140ms;
}

.typing i:nth-child(3) {
  animation-delay: 280ms;
}

.error-message {
  color: var(--danger);
}

.approval-card {
  display: grid;
  gap: 12px;
  width: min(560px, 100%);
  margin-top: 14px;
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--small-shadow);
}

.approval-card.completed {
  border-color: rgba(98, 168, 107, 0.28);
}

.approval-card.cancelled {
  opacity: 0.7;
}

.approval-heading {
  gap: 10px;
}

.approval-heading > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.approval-heading strong {
  font-size: 11px;
  font-weight: 650;
}

.approval-heading span:not(.terminal-badge) {
  overflow: hidden;
  color: var(--faint);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
}

.approval-card > code,
.terminal-result pre {
  overflow-x: auto;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  white-space: pre-wrap;
  word-break: break-word;
}

.approval-card > code {
  padding: 11px 12px;
  font-size: 10px;
  line-height: 1.55;
}

.approval-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.approval-actions button {
  padding: 8px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
}

.approval-reject {
  background: var(--soft-accent);
  color: var(--muted);
}

.approval-approve {
  background: var(--accent);
  color: var(--accent-text);
}

.approval-state,
.terminal-result summary {
  color: var(--muted);
  font-size: 10px;
}

.terminal-result {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.terminal-result summary {
  cursor: pointer;
}

.terminal-result pre {
  max-height: 220px;
  margin: 10px 0 0;
  padding: 11px;
  overflow: auto;
  font-size: 9px;
  line-height: 1.55;
}

.composer-area {
  width: min(780px, calc(100% - 44px));
  margin: 0 auto;
  padding: 8px 0 16px;
}

.composer {
  position: relative;
  overflow: hidden;
  padding: 13px 13px 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), transparent 54%),
    var(--surface-solid);
  box-shadow: var(--shadow), 0 1px 0 var(--material-edge) inset;
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.composer::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 8% 0%, rgba(112, 215, 255, 0.14), transparent 34%),
    radial-gradient(circle at 96% 100%, rgba(201, 20, 50, 0.13), transparent 38%);
  content: "";
}

.composer:focus-within {
  border-color: rgba(201, 20, 50, 0.24);
  box-shadow: 0 28px 90px rgba(201, 20, 50, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.18) inset, var(--shadow);
  transform: translateY(-1px);
}

.composer textarea {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-height: 160px;
  padding: 0 2px;
  overflow-y: auto;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  font-size: 15px;
  line-height: 1.5;
}

.composer-bottom {
  position: relative;
  z-index: 1;
}

.composer textarea::placeholder {
  color: var(--faint);
}

.response-style {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 8px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  font-size: 9px;
  letter-spacing: 0.02em;
}

.response-style:hover {
  background: var(--soft-accent);
  color: var(--muted);
}

.response-style-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(98, 168, 107, 0.1);
}

.response-style[aria-pressed="true"] .response-style-dot {
  background: #7e82b8;
  box-shadow: 0 0 0 3px rgba(126, 130, 184, 0.11);
}

.send-button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-2));
  color: var(--accent-text);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(201, 20, 50, 0.23);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.send-button:not(:disabled):hover {
  box-shadow: 0 16px 34px rgba(201, 20, 50, 0.3);
  transform: translateY(-1px);
}

.send-button:disabled {
  cursor: default;
  opacity: 0.18;
}

.send-button svg {
  width: 15px;
  stroke-width: 1.8;
}

.disclaimer {
  margin: 9px 0 0;
  color: var(--faint);
  font-size: 9px;
  text-align: center;
}

.settings-dialog {
  width: min(420px, calc(100% - 32px));
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.23);
}

.settings-dialog::backdrop {
  background: rgba(20, 20, 18, 0.3);
  backdrop-filter: blur(8px);
}

.settings-dialog[open] {
  animation: dialog-in 220ms ease both;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 17px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--soft-accent);
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.dialog-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  filter: drop-shadow(0 10px 16px rgba(12, 13, 10, 0.15));
}

.settings-dialog h2 {
  margin: 0 0 9px;
  font-size: 25px;
  font-weight: 590;
  letter-spacing: -0.04em;
}

.settings-dialog > p:not(.eyebrow):not(.dialog-note) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.code-block,
.computer-access-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--soft-accent);
}

.code-block {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.code-block strong,
.computer-access-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.computer-access-card > div {
  display: grid;
  gap: 3px;
}

.computer-access-card strong,
.api-key-form label {
  font-size: 11px;
  font-weight: 650;
}

.access-toggle {
  min-width: 58px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--surface-solid);
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
}

.access-toggle[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-text);
}

.access-warning {
  margin: 9px 2px 0 !important;
  color: var(--faint) !important;
  font-size: 9px !important;
  line-height: 1.5 !important;
}

.api-key-form {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.api-key-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.api-key-row input {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
}

.api-key-row button {
  padding: 0 16px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.connection-message,
.dialog-note {
  margin: 0 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.dialog-note {
  margin-top: 13px;
  color: var(--faint);
}

.connection-message {
  min-height: 16px;
}

.connection-message.error {
  color: var(--danger);
}

.connection-message.success {
  color: var(--success);
}

.icon-button,
.mobile-only {
  display: none;
}

.icon-button {
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-button svg {
  width: 15px;
  stroke-width: 1.7;
}

.sidebar-backdrop {
  display: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  70%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes moment-ring {
  0%,
  100% {
    opacity: 0.45;
    transform: rotate(8deg) scale(0.96);
  }
  50% {
    opacity: 1;
    transform: rotate(-4deg) scale(1.055);
  }
}

@keyframes ambient-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-28px, 24px, 0) scale(1.08);
  }
}

@keyframes stage-sheen {
  0%,
  100% {
    opacity: 0.42;
    transform: translateX(-2%) scale(1);
  }
  50% {
    opacity: 0.78;
    transform: translateX(2%) scale(1.02);
  }
}

@keyframes intro-card {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1.035);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes intro-belt-in {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

@keyframes intro-sweep {
  0% {
    opacity: 0;
    transform: translateX(-22%) rotate(-8deg);
  }
  38% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(28%) rotate(-8deg);
  }
}

@keyframes intro-logo {
  0% {
    transform: rotate(-12deg) scale(0.72);
  }
  58% {
    transform: rotate(4deg) scale(1.08);
  }
  100% {
    transform: rotate(0) scale(1);
  }
}

@keyframes intro-color-ring {
  0% {
    opacity: 0;
    transform: rotate(-80deg) scale(0.74);
  }
  56% {
    opacity: 0.88;
    transform: rotate(18deg) scale(1.06);
  }
  100% {
    opacity: 0.74;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes intro-ring {
  0% {
    opacity: 0;
    transform: rotate(-18deg) scale(0.72);
  }
  100% {
    opacity: 1;
    transform: rotate(9deg) scale(1);
  }
}

@keyframes intro-line {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(125%);
  }
}

@keyframes intro-glow {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes intro-aurora {
  from {
    transform: rotate(0deg) scale(0.75);
  }
  to {
    transform: rotate(35deg) scale(1.08);
  }
}

@keyframes intro-out {
  to {
    opacity: 0;
    transform: scale(1.04);
    visibility: hidden;
  }
}

@keyframes logo-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.035);
  }
}

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

@keyframes title-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .sidebar {
    padding-right: 14px;
    padding-left: 14px;
  }

  .suggestions {
    grid-template-columns: 1fr;
    width: min(430px, 100%);
    margin-top: 35px;
  }

  .suggestion {
    min-height: 62px;
  }
}

@media (max-height: 760px) and (min-width: 681px) {
  .welcome {
    margin-top: 20px;
  }

  .welcome-mark {
    width: 44px;
    height: 44px;
    margin-bottom: 15px;
  }

  .suggestions {
    margin-top: 24px;
  }
}

@media (max-width: 680px) {
  body {
    overflow: hidden;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: min(310px, calc(100vw - 54px));
    padding: 22px 17px;
    border-right: 1px solid var(--line-strong);
    box-shadow: 24px 0 70px rgba(0, 0, 0, 0.12);
    transform: translateX(-105%);
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }

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

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: block;
    visibility: hidden;
    background: rgba(20, 20, 18, 0.28);
    cursor: default;
    opacity: 0;
    backdrop-filter: blur(4px);
    transition: opacity 220ms ease, visibility 220ms ease;
  }

  .sidebar-open .sidebar-backdrop {
    visibility: visible;
    opacity: 1;
  }

  .main {
    height: 100dvh;
  }

  .topbar {
    height: 62px;
    padding: 0 17px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-brand {
    display: flex;
  }

  .mobile-only,
  .sidebar-close {
    display: grid;
  }

  .history-list {
    max-height: calc(100dvh - 370px);
  }

  .history-delete {
    opacity: 1;
  }

  .privacy-chip span {
    display: none;
  }

  .privacy-chip {
    padding: 7px;
  }

  .welcome {
    width: calc(100% - 34px);
    margin-top: 48px;
  }

  .welcome-mark {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
  }

  .welcome h1 {
    font-size: 33px;
  }

  .welcome-copy {
    max-width: 280px;
    font-size: 13px;
  }

  .suggestions {
    gap: 8px;
    margin-top: 25px;
  }

  .message-list {
    width: calc(100% - 32px);
    gap: 22px;
  }

  .message {
    max-width: 92%;
    font-size: 13px;
  }

  .composer-area {
    width: calc(100% - 22px);
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .composer {
    border-radius: 19px;
  }

  .disclaimer {
    display: none;
  }
}

/* Ultra-clean full-viewport hero correction. */
:root {
  --hero-edge: rgba(255, 255, 255, 0.08);
}

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

.main {
  background: #050506;
}

.main::before,
.main::after,
.welcome::before,
.welcome-mark,
.welcome-orbit {
  display: none !important;
}

.conversation {
  background:
    radial-gradient(circle at 84% 18%, rgba(87, 143, 179, 0.2), transparent 24%),
    radial-gradient(circle at 69% 48%, rgba(255, 88, 18, 0.13), transparent 26%),
    radial-gradient(circle at 36% 92%, rgba(181, 143, 71, 0.1), transparent 25%),
    linear-gradient(135deg, #050506 0%, #090a0c 52%, #020203 100%);
}

.welcome {
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, 0.52fr) minmax(560px, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 116px);
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: clamp(88px, 9vh, 126px) clamp(38px, 5.4vw, 108px) 140px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
}

.welcome::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(113deg, transparent 0 31%, rgba(74, 88, 107, 0.24) 31.04%, transparent 31.22% 100%),
    linear-gradient(154deg, transparent 0 62%, rgba(88, 103, 124, 0.15) 62.04%, transparent 62.18% 100%),
    radial-gradient(circle at 74% 44%, rgba(255, 108, 36, 0.55) 0 1px, transparent 1.8px);
  background-size: 100% 100%, 100% 100%, 182px 156px;
  opacity: 0.45;
}

.welcome-copyblock {
  position: relative;
  z-index: 3;
  max-width: 660px;
  padding-left: 0;
}

.welcome-kicker {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.welcome-kicker::before {
  content: "";
  width: 82px;
  height: 1px;
  background: rgba(255, 255, 255, 0.68);
}

.welcome h1 {
  max-width: 700px;
  margin: 26px 0 0;
  color: rgba(246, 246, 246, 0.96);
  font-size: clamp(72px, 8.2vw, 148px);
  font-weight: 620;
  letter-spacing: -0.095em;
  line-height: 0.86;
  text-wrap: balance;
  text-shadow: 0 32px 84px rgba(0, 0, 0, 0.52);
}

.welcome-copy {
  max-width: 440px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 16px;
  line-height: 1.55;
}

.trionn-hero {
  position: relative;
  z-index: 2;
  min-height: min(76vh, 760px);
  width: 100%;
  overflow: visible;
  transform: translateX(-1vw);
}

.hero3d-canvas {
  position: absolute;
  inset: -20% -30% -16% -34%;
  width: 164%;
  height: 136%;
  opacity: 0;
  filter:
    drop-shadow(0 60px 118px rgba(0, 0, 0, 0.94))
    drop-shadow(0 0 34px rgba(255, 74, 18, 0.1));
}

.hero3d-canvas.hero3d-ready {
  opacity: 1;
}

.trionn-line {
  z-index: 1;
  left: -30%;
  width: 170%;
  height: 1px;
  opacity: 0.38;
  background: linear-gradient(90deg, transparent, rgba(84, 105, 128, 0.62), rgba(255, 87, 28, 0.22), transparent);
}

.line-one {
  top: 24%;
  transform: rotate(-14deg);
}

.line-two {
  top: 52%;
  transform: rotate(-29deg);
}

.line-three {
  top: 74%;
  transform: rotate(10deg);
}

.suggestions {
  position: relative;
  z-index: 4;
  width: min(540px, 100%);
  margin-top: 34px;
}

.composer-area {
  width: min(640px, calc(100% - 72px));
}

.composer {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(7, 8, 10, 0.64);
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
}

@media (max-width: 1180px) {
  .welcome {
    grid-template-columns: 1fr;
    padding-inline: clamp(22px, 5vw, 72px);
    text-align: center;
  }

  .welcome-copyblock {
    justify-self: center;
  }

  .welcome-kicker {
    justify-content: center;
  }

  .trionn-hero {
    order: -1;
    min-height: 440px;
    transform: none;
  }

  .hero3d-canvas {
    inset: -26% -18%;
    width: 136%;
    height: 150%;
  }
}

@media (max-width: 680px) {
  .welcome {
    padding: 76px 18px 112px;
  }

  .welcome h1 {
    font-size: clamp(46px, 16vw, 82px);
  }

  .welcome-copy {
    margin-inline: auto;
  }

  .trionn-hero {
    min-height: 340px;
  }

  .composer-area {
    width: calc(100% - 26px);
  }
}

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

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .welcome h1 {
    background: none;
    color: var(--text);
  }
}

/* Store-ready polish layer. Keeps the interface vivid, clean, and iOS-like. */
.welcome-copy,
.disclaimer,
.shortcut,
.dialog-note,
.settings-dialog .computer-access-card,
.settings-dialog .access-warning,
.settings-dialog .api-key-form {
  display: none !important;
}

.brand,
.mobile-brand,
.welcome h1,
.settings-dialog h2 {
  font-family: var(--font-rounded);
}

.brand-word,
.mobile-brand span {
  letter-spacing: -0.055em;
}

.new-chat,
.history-item,
.sidebar-action,
.status-card,
.suggestion,
.composer,
.settings-dialog {
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
}

.new-chat {
  justify-content: center;
  min-height: 42px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 680;
}

.eyebrow {
  font-size: 9px;
  letter-spacing: 0.16em;
}

.status-card {
  border-radius: 18px;
}

.status-card strong {
  font-family: var(--font-rounded);
  font-size: 12px;
  font-weight: 720;
}

.status-card span:not(.status-dot) {
  font-size: 10px;
}

.welcome {
  max-width: 620px;
}

.welcome-kicker {
  font-family: var(--font-rounded);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.welcome h1 {
  font-size: clamp(42px, 5.3vw, 68px);
  font-weight: 780;
  letter-spacing: -0.075em;
}

.suggestions {
  max-width: 520px;
  margin-inline: auto;
}

.suggestion {
  min-height: 74px;
  border-radius: 22px;
}

.suggestion strong {
  font-family: var(--font-rounded);
  font-size: 13px;
  font-weight: 740;
}

.suggestion small {
  font-size: 10px;
}

.message {
  font-size: 15px;
  letter-spacing: -0.012em;
}

.message.user {
  border-radius: 22px 22px 7px 22px;
}

.composer-area {
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.composer {
  border-radius: 24px;
}

.response-style {
  font-size: 10px;
  font-weight: 650;
}

.settings-dialog {
  max-width: 390px;
  border-radius: 32px;
}

@media (max-width: 760px) {
  .topbar {
    height: 58px;
  }

  .status-card,
  .sidebar-action span:not(.action-icon) {
    display: none;
  }

  .sidebar-footer {
    grid-template-columns: 1fr 1fr;
  }

  .sidebar-action {
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
  }

  .welcome {
    margin-top: 34px;
  }

  .welcome-mark {
    width: 54px;
    height: 54px;
  }

  .welcome h1 {
    font-size: 42px;
  }

  .suggestions {
    grid-template-columns: 1fr;
    max-width: 310px;
  }

  .suggestion {
    min-height: 58px;
  }

  .suggestion small,
  .suggestion .arrow {
    display: none;
  }

  .composer-area {
    width: calc(100% - 24px);
  }
}

/* v20260701-9: extracted-code-inspired final stage. Keep this block last. */
body {
  background: #020204;
}

.main {
  overflow: hidden;
  background: #020204;
}

.conversation {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 19%, rgba(255, 0, 21, 0.13), transparent 22%),
    radial-gradient(circle at 71% 46%, rgba(255, 38, 48, 0.09), transparent 28%),
    radial-gradient(circle at 36% 91%, rgba(255, 106, 24, 0.08), transparent 24%),
    linear-gradient(135deg, #020204 0%, #06070a 54%, #010102 100%);
}

.welcome {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh;
  margin: 0;
  padding: clamp(88px, 9vh, 126px) clamp(38px, 5.4vw, 108px) 140px;
  grid-template-columns: minmax(360px, 0.52fr) minmax(640px, 1fr);
  gap: clamp(28px, 4vw, 96px);
}

.welcome::before,
.welcome-mark,
.welcome-orbit {
  display: none !important;
}

.welcome::after {
  opacity: 0.5;
}

.welcome-copyblock {
  position: relative;
  z-index: 4;
  max-width: 700px;
  padding-left: 0;
}

.welcome h1 {
  max-width: 720px;
  color: rgba(248, 248, 248, 0.97);
  font-size: clamp(76px, 8.3vw, 154px);
  font-weight: 650;
  letter-spacing: -0.1em;
  line-height: 0.86;
}

.welcome-copy {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.58);
}

.trionn-hero {
  position: relative;
  z-index: 3;
  min-height: min(79vh, 790px);
  overflow: visible;
  transform: translateX(-2vw);
}

.hero3d-canvas {
  position: absolute;
  inset: -22% -36% -18% -38% !important;
  width: 174% !important;
  height: 140% !important;
  filter:
    drop-shadow(0 70px 130px rgba(0, 0, 0, 0.96))
    drop-shadow(0 0 34px rgba(255, 0, 21, 0.2));
}

.trionn-line {
  width: 174%;
  left: -36%;
  opacity: 0.5;
  background: linear-gradient(90deg, transparent, rgba(86, 100, 120, 0.52), rgba(255, 38, 48, 0.34), transparent);
}

.trionn-particle {
  background: #ff2630;
  box-shadow: 0 0 18px rgba(255, 38, 48, 0.8);
}

.composer-area {
  width: min(640px, calc(100% - 72px));
}

@media (max-width: 1180px) {
  .welcome {
    grid-template-columns: 1fr;
    width: 100% !important;
    padding-inline: clamp(22px, 5vw, 72px);
  }

  .trionn-hero {
    order: -1;
    min-height: 440px;
    transform: none;
  }

  .hero3d-canvas {
    inset: -26% -24% !important;
    width: 148% !important;
    height: 150% !important;
  }
}

@media (max-width: 680px) {
  .welcome {
    padding: 76px 18px 112px;
  }

  .trionn-hero {
    min-height: 340px;
  }

  .welcome h1 {
    font-size: clamp(46px, 16vw, 82px);
  }

  .composer-area {
    width: calc(100% - 26px);
  }
}

/* Final hero lock: keep the 3D object full-screen, readable and uncropped. */
.welcome {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: clamp(88px, 9vh, 126px) clamp(38px, 5.4vw, 108px) 140px;
}

.welcome::before,
.welcome-mark,
.welcome-orbit {
  display: none !important;
}

.welcome-copyblock {
  z-index: 3;
  max-width: 660px;
}

.trionn-hero {
  z-index: 2;
  min-height: min(76vh, 760px);
  transform: translateX(-1vw);
}

.hero3d-canvas {
  inset: -20% -30% -16% -34%;
  width: 164%;
  height: 136%;
}

@media (max-width: 1180px) {
  .welcome {
    width: 100%;
    padding-inline: clamp(22px, 5vw, 72px);
  }

  .hero3d-canvas {
    inset: -24% -22%;
    width: 144%;
    height: 148%;
  }
}

.legal-page {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
  overflow: auto;
}

.legal-card {
  width: min(430px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
}

.legal-card img {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 14px 24px rgba(14, 15, 12, 0.16));
}

.legal-card h1 {
  margin: 22px 0 12px;
  font-family: var(--font-rounded);
  font-size: 34px;
  font-weight: 780;
  letter-spacing: -0.06em;
}

.legal-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.legal-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* ChatGPT-like sidebar layout requested for the conversation area. */
.sidebar {
  width: 250px;
  padding: 10px 10px 12px;
  border-right-color: rgba(255, 255, 255, 0.13);
  background: #171717;
}

.sidebar-window {
  display: flex;
  gap: 8px;
  height: 24px;
  align-items: center;
  padding: 0 2px;
}

.sidebar-window span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.sidebar-window span:nth-child(1) {
  background: #ff5f57;
}

.sidebar-window span:nth-child(2) {
  background: #febc2e;
}

.sidebar-window span:nth-child(3) {
  background: #28c840;
}

.brand-row {
  height: 34px;
  margin-bottom: 8px;
}

.sidebar-toggle,
.sidebar-compose {
  display: grid;
  color: #d6d6d6;
}

.sidebar-toggle svg,
.sidebar-compose svg {
  width: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 33px;
  margin-bottom: 10px;
  padding: 0 10px;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #1f1f1f;
  color: #8f8f8f;
}

.sidebar-search svg {
  width: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.sidebar-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ececec;
  font-size: 14px;
}

.sidebar-search input::placeholder {
  color: #8d8d8d;
}

.sidebar-menu {
  display: grid;
  gap: 2px;
  margin-bottom: 18px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f1f1f1;
  cursor: pointer;
  font-size: 14px;
  font-weight: 680;
  text-align: left;
  text-decoration: none;
}

.menu-item.active,
.menu-item:hover {
  background: #2a2a2a;
}

.menu-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.menu-item .brand-mark {
  width: 19px;
  height: 19px;
  filter: none;
}

.history-block {
  margin-top: 0;
}

.eyebrow {
  display: block !important;
  margin: 0 0 9px;
  padding: 0 10px;
  color: #f1f1f1;
  font-size: 14px;
  font-weight: 780;
  letter-spacing: -0.01em;
  text-transform: none;
}

.history-list {
  gap: 2px;
  max-height: calc(100dvh - 250px);
}

.history-entry {
  grid-template-columns: minmax(0, 1fr);
}

.history-item {
  padding: 8px 10px;
  border-radius: 8px;
  color: #f1f1f1;
  font-size: 14px;
  font-weight: 520;
}

.empty-history {
  padding: 8px 10px;
  color: #a0a0a0;
  font-size: 13px;
}

.sidebar-footer {
  display: block;
  margin-top: auto;
}

.sidebar-action,
.status-card {
  display: none !important;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  margin-top: 10px;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #f1f1f1;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #20c7a8;
  color: #fff;
  font-size: 10px;
  font-weight: 760;
}

.sidebar-profile strong {
  font-size: 14px;
  font-weight: 700;
}

/* Conversation-first interface. Cleaner, closer to a premium assistant surface. */
[data-theme="dark"] {
  --bg: #212121;
  --panel: rgba(18, 18, 18, 0.86);
  --surface: rgba(47, 47, 47, 0.78);
  --surface-solid: rgba(47, 47, 47, 0.92);
  --text: #ececec;
  --muted: #c8c8c8;
  --faint: #858585;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #ececec;
  --accent-text: #171717;
  --soft-accent: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 72% 10%, rgba(96, 132, 255, 0.16), transparent 24%),
    radial-gradient(circle at 20% 92%, rgba(201, 20, 50, 0.12), transparent 28%),
    #212121;
}

[data-theme="dark"] body::before {
  opacity: 0.22;
  background-size: 72px 72px;
}

[data-theme="dark"] body::after,
[data-theme="dark"] .ambient {
  opacity: 0.12;
}

.topbar {
  background: linear-gradient(180deg, rgba(33, 33, 33, 0.82), rgba(33, 33, 33, 0));
}

.privacy-chip,
.status-card,
.response-style,
.disclaimer,
.copy-button,
.shortcut,
.eyebrow {
  display: none !important;
}

.sidebar {
  width: 260px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 30%),
    var(--panel);
}

.brand {
  font-size: 18px;
  font-weight: 720;
}

.new-chat {
  justify-content: flex-start;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.new-chat:hover,
.history-item:hover,
.history-item.active,
.sidebar-action:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.history-block {
  margin-top: 18px;
}

.history-list {
  gap: 4px;
}

.history-item {
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
}

.history-delete {
  display: none;
}

.sidebar-footer {
  grid-template-columns: 1fr 1fr;
}

.sidebar-action {
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
}

.sidebar-action span:not(.action-icon) {
  display: none;
}

.conversation {
  background: transparent;
}

.message-list {
  width: min(820px, calc(100% - 56px));
  gap: 28px;
  margin-top: 42px;
}

.message {
  font-family: var(--font-system);
  font-size: 15.5px;
  line-height: 1.68;
  letter-spacing: -0.01em;
}

.message.user {
  max-width: min(620px, 78%);
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: none;
}

.message.assistant {
  max-width: min(720px, 92%);
  padding-left: 44px;
}

.assistant-mini-mark {
  width: 31px;
  height: 31px;
}

.composer-area {
  width: min(780px, calc(100% - 48px));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.composer {
  padding: 15px 14px 12px 18px;
  border-radius: 28px;
  background: rgba(47, 47, 47, 0.94);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.24), 0 1px 0 var(--material-edge) inset;
}

.composer::before {
  opacity: 0.32;
}

.composer textarea {
  min-height: 28px;
  color: var(--text);
  font-size: 16px;
}

.composer textarea::placeholder {
  color: rgba(236, 236, 236, 0.46);
}

.send-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ececec;
  color: #171717;
  box-shadow: none;
}

.send-button:not(:disabled):hover {
  box-shadow: none;
  transform: translateY(-1px) scale(1.03);
}

.send-button:disabled {
  background: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.52);
  opacity: 1;
}

.welcome {
  margin-top: clamp(74px, 13vh, 150px);
}

.suggestions {
  display: none;
}

.welcome-mark {
  display: grid;
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  filter: drop-shadow(0 20px 38px rgba(201, 20, 50, 0.28));
}

.welcome-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.welcome-orbit {
  display: none;
}

.welcome h1 {
  color: var(--text);
  background: none;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 720;
  letter-spacing: -0.055em;
  animation: none;
}

@media (max-width: 680px) {
  .sidebar {
    width: min(300px, calc(100vw - 48px));
  }

  .message-list {
    width: calc(100% - 28px);
    margin-top: 28px;
  }

  .message.user,
  .message.assistant {
    max-width: 94%;
  }

  .composer-area {
    width: calc(100% - 20px);
  }

  .welcome {
    margin-top: 74px;
  }

  .welcome-mark {
    width: 58px;
    height: 58px;
  }
}

/* Floating glass chat stage inspired by premium 3D UI boards. */
[data-theme="dark"] {
  --bg: #1f2020;
  --stage: rgba(191, 193, 199, 0.12);
  --stage-strong: rgba(220, 222, 229, 0.2);
  --float-surface: rgba(229, 231, 238, 0.14);
  --float-surface-strong: rgba(239, 241, 246, 0.2);
  --float-edge: rgba(255, 255, 255, 0.24);
  --float-shadow: 24px 34px 80px rgba(0, 0, 0, 0.34);
  --float-soft-shadow: 12px 18px 48px rgba(0, 0, 0, 0.26);
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 76% 10%, rgba(150, 176, 255, 0.32), transparent 25%),
    radial-gradient(circle at 27% 98%, rgba(210, 160, 92, 0.25), transparent 29%),
    radial-gradient(circle at 100% 76%, rgba(201, 20, 50, 0.15), transparent 32%),
    linear-gradient(135deg, #252626 0%, #1c1d1d 46%, #242323 100%);
}

.main {
  position: relative;
  isolation: isolate;
}

.main::before {
  position: absolute;
  inset: 82px 34px 112px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035) 52%, rgba(255, 255, 255, 0.07)),
    radial-gradient(circle at 70% 12%, rgba(125, 158, 255, 0.18), transparent 34%),
    radial-gradient(circle at 18% 78%, rgba(201, 20, 50, 0.08), transparent 36%),
    rgba(210, 212, 218, 0.045);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    34px 46px 110px rgba(0, 0, 0, 0.25);
  content: "";
  pointer-events: none;
  transform: perspective(1100px) rotateX(1deg) rotateY(-1.6deg);
  transform-origin: 50% 35%;
}

.main::after {
  position: absolute;
  inset: 82px 34px 112px;
  z-index: -1;
  border-radius: 42px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(118deg, transparent 0 35%, rgba(255, 255, 255, 0.085) 48%, transparent 62% 100%);
  background-size: 54px 54px, 54px 54px, 100% 100%;
  content: "";
  mask-image: radial-gradient(circle at 55% 45%, black, transparent 78%);
  opacity: 0.72;
  pointer-events: none;
}

.conversation {
  position: relative;
  padding: 0 0 10px;
  perspective: 1200px;
}

.message-list {
  position: relative;
  width: min(820px, calc(100% - 72px));
  margin-top: 42px;
  padding: 4px 0 40px;
}

.message-row {
  transform-style: preserve-3d;
}

.message {
  position: relative;
  transform: translateZ(22px);
}

.message.user {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08) 44%, rgba(201, 20, 50, 0.18)),
    rgba(53, 54, 56, 0.68);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    var(--float-soft-shadow);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.message.user::after {
  position: absolute;
  inset: auto 14px -12px auto;
  width: 72%;
  height: 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  content: "";
  filter: blur(14px);
  opacity: 0.66;
  transform: translateZ(-30px);
}

.message.assistant {
  padding: 16px 20px 16px 58px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045) 60%),
    rgba(42, 43, 44, 0.56);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    18px 26px 62px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.assistant-mini-mark {
  top: 14px;
  left: 17px;
  width: 30px;
  height: 30px;
  filter:
    drop-shadow(0 12px 18px rgba(201, 20, 50, 0.28))
    drop-shadow(10px 16px 18px rgba(0, 0, 0, 0.14));
}

.copy-button {
  display: none !important;
}

.composer-area {
  position: relative;
  width: min(800px, calc(100% - 72px));
  padding-bottom: max(22px, env(safe-area-inset-bottom));
  perspective: 1000px;
}

.composer-area::before {
  position: absolute;
  right: 7%;
  bottom: 10px;
  left: 7%;
  height: 38px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  content: "";
  filter: blur(24px);
  opacity: 0.58;
  pointer-events: none;
}

.composer {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08) 52%, rgba(201, 20, 50, 0.12)),
    rgba(55, 57, 58, 0.72);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.26) inset,
    var(--float-shadow);
  transform: translateZ(34px) rotateX(0.6deg);
}

.composer::before {
  opacity: 0.6;
  background:
    radial-gradient(circle at 11% 0%, rgba(160, 190, 255, 0.18), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(201, 20, 50, 0.2), transparent 38%),
    linear-gradient(105deg, transparent 0 34%, rgba(255, 255, 255, 0.1), transparent 62%);
}

.composer:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 0 0 1px rgba(201, 20, 50, 0.18),
    0 32px 96px rgba(0, 0, 0, 0.34);
  transform: translateY(-2px) translateZ(42px) rotateX(0.6deg);
}

.send-button {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(206, 210, 220, 0.86));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 14px 24px rgba(0, 0, 0, 0.22);
}

.welcome {
  transform-style: preserve-3d;
}

.welcome-mark,
.suggestion {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    18px 28px 70px rgba(0, 0, 0, 0.2);
}

.welcome h1 {
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
  .main::before,
  .main::after {
    inset: 72px 18px 104px;
    border-radius: 30px;
    transform: none;
  }

  .message-list,
  .composer-area {
    width: calc(100% - 36px);
  }
}

@media (max-width: 680px) {
  .main::before,
  .main::after {
    inset: 64px 10px 92px;
    border-radius: 24px;
  }

  .message-list {
    width: calc(100% - 24px);
    margin-top: 24px;
  }

  .message.assistant {
    padding: 14px 15px 14px 52px;
  }

  .assistant-mini-mark {
    left: 14px;
  }

  .composer-area {
    width: calc(100% - 18px);
  }
}

/* Final sidebar override: keep the requested ChatGPT-style panel intact. */
.app-shell {
  grid-template-columns: 250px minmax(0, 1fr);
}

.sidebar {
  width: auto;
  padding: 10px 10px 12px;
  background: #171717;
}

.sidebar .brand-row {
  display: flex;
  justify-content: space-between;
}

.sidebar .new-chat {
  display: none;
}

.sidebar .history-delete,
.sidebar .shortcut,
.sidebar .status-card,
.sidebar .sidebar-action {
  display: none !important;
}

.sidebar .sidebar-menu,
.sidebar .history-list {
  display: grid;
}

.sidebar .brand-word,
.sidebar .menu-item span,
.sidebar .sidebar-profile strong {
  color: #f1f1f1;
}

.sidebar .history-item.active,
.sidebar .history-item:hover,
.sidebar .history-entry:hover,
.sidebar .history-entry:focus-within {
  background: #2a2a2a;
}

/* Depth polish v2: make the chat surface feel intentional, not empty. */
[data-theme="dark"] {
  --stage-plate: rgba(198, 201, 209, 0.105);
  --stage-plate-bright: rgba(244, 246, 252, 0.19);
  --stage-shadow: 42px 54px 130px rgba(0, 0, 0, 0.31);
  --stage-line: rgba(255, 255, 255, 0.095);
}

.topbar {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  background:
    linear-gradient(180deg, rgba(31, 32, 32, 0.76), rgba(31, 32, 32, 0.06)),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055) 62%, transparent);
}

.main::before {
  inset: 86px 42px 120px;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.155), rgba(255, 255, 255, 0.045) 38%, rgba(255, 255, 255, 0.092)),
    radial-gradient(circle at 74% 8%, rgba(152, 178, 255, 0.23), transparent 33%),
    radial-gradient(circle at 22% 88%, rgba(221, 176, 105, 0.12), transparent 32%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.03), transparent 42%, rgba(201, 20, 50, 0.065)),
    var(--stage-plate);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    -1px -1px 0 rgba(255, 255, 255, 0.08) inset,
    var(--stage-shadow);
  transform: perspective(1200px) rotateX(1.25deg) rotateY(-1.15deg) translateZ(0);
}

.main::after {
  inset: 86px 42px 120px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 30%, rgba(255, 255, 255, 0.12) 45%, transparent 59% 100%),
    radial-gradient(circle at 86% 20%, rgba(255, 255, 255, 0.16), transparent 18%);
  background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%;
  opacity: 0.9;
}

.conversation::before,
.conversation::after {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.conversation::before {
  top: 104px;
  right: 96px;
  width: 128px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    14px 20px 50px rgba(0, 0, 0, 0.18);
  opacity: 0.54;
  transform: rotate(-3deg);
}

.conversation::after {
  right: 7vw;
  bottom: 26vh;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.24), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    18px 24px 52px rgba(0, 0, 0, 0.22);
  opacity: 0.34;
  transform: rotate(10deg);
}

.message-list {
  gap: 30px;
}

.message-row.user {
  transform: translateZ(42px) rotateY(-0.6deg);
}

.message-row.assistant {
  transform: translateZ(22px) rotateY(0.35deg);
}

.message {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.message-row:hover .message {
  transform: translateY(-1px) translateZ(30px);
}

.message.user {
  border-radius: 24px 24px 9px 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.075) 50%, rgba(201, 20, 50, 0.2)),
    linear-gradient(120deg, rgba(66, 68, 72, 0.86), rgba(46, 47, 49, 0.72));
}

.message.assistant {
  border-radius: 26px 26px 26px 10px;
  background:
    linear-gradient(148deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055) 58%, rgba(112, 215, 255, 0.06)),
    rgba(38, 39, 40, 0.64);
}

.message.assistant::after {
  position: absolute;
  right: 20px;
  bottom: -13px;
  left: 58px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  content: "";
  filter: blur(16px);
  opacity: 0.48;
  transform: translateZ(-28px);
}

.assistant-mini-mark::before {
  position: absolute;
  inset: -9px;
  z-index: -1;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(201, 20, 50, 0.34), transparent 62%);
  content: "";
  filter: blur(8px);
}

.typing {
  align-items: center;
  min-height: 24px;
}

.typing i {
  width: 6px;
  height: 6px;
  background: rgba(236, 236, 236, 0.72);
}

.composer-area {
  width: min(820px, calc(100% - 78px));
}

.composer {
  min-height: 66px;
  border-radius: 26px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.075) 52%, rgba(201, 20, 50, 0.15)),
    rgba(58, 60, 62, 0.76);
}

.composer textarea {
  padding-top: 1px;
  font-weight: 470;
  letter-spacing: -0.018em;
}

.composer-bottom {
  margin-top: 4px;
}

.send-button {
  position: relative;
  overflow: hidden;
}

.send-button::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 30%, rgba(255, 255, 255, 0.75), transparent 62% 100%);
  content: "";
  opacity: 0;
  transform: translateX(-80%);
  transition: opacity 180ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.send-button:not(:disabled):hover::before {
  opacity: 1;
  transform: translateX(86%);
}

.welcome {
  position: relative;
  z-index: 1;
  margin-top: clamp(66px, 11vh, 126px);
}

.welcome::before {
  position: absolute;
  top: -34px;
  left: 50%;
  z-index: -1;
  width: min(560px, 92vw);
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), transparent 52%),
    rgba(255, 255, 255, 0.026);
  box-shadow: 18px 28px 80px rgba(0, 0, 0, 0.16);
  content: "";
  transform: translateX(-50%) rotateX(1deg);
}

.welcome-mark {
  border-radius: 23px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.05);
  padding: 7px;
}

@media (max-width: 900px) {
  .main::before,
  .main::after {
    inset: 72px 18px 108px;
  }

  .conversation::before,
  .conversation::after {
    display: none;
  }

  .composer-area {
    width: calc(100% - 38px);
  }
}

@media (max-width: 680px) {
  .main::before,
  .main::after {
    inset: 62px 8px 94px;
  }

  .welcome::before {
    width: calc(100vw - 24px);
    height: 184px;
  }

  .message-row.user,
  .message-row.assistant,
  .composer {
    transform: none;
  }

  .message-row:hover .message {
    transform: none;
  }

  .composer {
    min-height: 62px;
  }
}

/* Compact chat sizing v3: short text should feel like a button, not a banner. */
.message-list {
  width: min(690px, calc(100% - 92px));
  gap: 24px;
  margin-top: 34px;
}

.message {
  width: fit-content;
  max-width: min(560px, 82%);
  font-size: 14.5px;
  line-height: 1.58;
}

.message.user {
  max-width: min(440px, 68%);
  min-width: 0;
  padding: 10px 15px;
  border-radius: 20px 20px 8px 20px;
}

.message.assistant {
  max-width: min(590px, 84%);
  min-width: 0;
  padding: 13px 17px 13px 52px;
  border-radius: 22px 22px 22px 10px;
}

.message.assistant::after {
  right: 18px;
  left: 52px;
  height: 17px;
}

.assistant-mini-mark {
  top: 12px;
  left: 15px;
  width: 27px;
  height: 27px;
}

.message p {
  max-width: 56ch;
}

.message.user p {
  max-width: 34ch;
}

.composer-area {
  width: min(660px, calc(100% - 112px));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.composer-area::before {
  right: 12%;
  left: 12%;
  height: 28px;
  opacity: 0.48;
}

.composer {
  min-height: 58px;
  padding: 12px 12px 10px 15px;
  border-radius: 22px;
}

.composer textarea {
  min-height: 24px;
  font-size: 15px;
  line-height: 1.42;
}

.composer-bottom {
  margin-top: 2px;
}

.send-button {
  width: 29px;
  height: 29px;
}

.welcome {
  margin-top: clamp(52px, 9vh, 108px);
}

.welcome::before {
  width: min(500px, 86vw);
  height: 190px;
}

.welcome-mark {
  width: 62px;
  height: 62px;
}

.welcome h1 {
  font-size: clamp(36px, 4.8vw, 52px);
}

@media (max-width: 900px) {
  .message-list {
    width: min(650px, calc(100% - 46px));
  }

  .composer-area {
    width: min(640px, calc(100% - 44px));
  }
}

@media (max-width: 680px) {
  .message-list {
    width: calc(100% - 24px);
    gap: 20px;
  }

  .message,
  .message.user,
  .message.assistant {
    max-width: 92%;
  }

  .message.user {
    padding: 10px 14px;
  }

  .message.assistant {
    padding: 13px 14px 13px 48px;
  }

  .assistant-mini-mark {
    left: 13px;
  }

  .composer-area {
    width: calc(100% - 22px);
  }

  .welcome::before {
    height: 168px;
  }
}

/* Liquid glass redesign: clear glass, black text, content-sized bubbles. */
[data-theme="dark"] {
  --text: #101012;
  --muted: rgba(16, 16, 18, 0.7);
  --faint: rgba(16, 16, 18, 0.46);
  --glass-ink: #111114;
  --liquid-panel: rgba(238, 240, 244, 0.2);
  --liquid-card: rgba(246, 247, 251, 0.44);
  --liquid-card-soft: rgba(246, 247, 251, 0.3);
  --liquid-border: rgba(255, 255, 255, 0.48);
  --liquid-border-soft: rgba(255, 255, 255, 0.28);
}

[data-theme="dark"] body {
  color: var(--glass-ink);
  background:
    radial-gradient(circle at 74% 8%, rgba(172, 193, 255, 0.44), transparent 25%),
    radial-gradient(circle at 18% 96%, rgba(226, 186, 104, 0.34), transparent 30%),
    radial-gradient(circle at 100% 78%, rgba(201, 20, 50, 0.22), transparent 30%),
    linear-gradient(135deg, #d4d5d8 0%, #bfc2c8 42%, #d2c8c5 100%);
}

[data-theme="dark"] body::before {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(20, 20, 22, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 22, 0.07) 1px, transparent 1px);
}

.main::before {
  border-color: rgba(255, 255, 255, 0.55);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.1) 46%, rgba(255, 255, 255, 0.22)),
    radial-gradient(circle at 74% 8%, rgba(158, 182, 255, 0.24), transparent 34%),
    radial-gradient(circle at 20% 90%, rgba(221, 176, 105, 0.14), transparent 34%),
    var(--liquid-panel);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    -1px -1px 0 rgba(255, 255, 255, 0.24) inset,
    0 34px 120px rgba(25, 28, 34, 0.23);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
}

.main::after {
  background-image:
    linear-gradient(rgba(20, 20, 24, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 24, 0.045) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 30%, rgba(255, 255, 255, 0.19) 45%, transparent 59% 100%);
  opacity: 0.54;
}

.topbar {
  color: #101012;
  background:
    linear-gradient(180deg, rgba(238, 239, 242, 0.22), rgba(238, 239, 242, 0.02)),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2) 62%, transparent);
}

.privacy-chip,
.avatar {
  color: #101012;
}

.conversation::before,
.conversation::after {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
}

.message-list {
  width: min(640px, calc(100% - 120px));
  gap: 20px;
  margin-top: 32px;
}

.message-row {
  display: flex;
  align-items: flex-start;
}

.message-row.user {
  justify-content: flex-end;
}

.message-row.assistant {
  justify-content: flex-start;
}

.message {
  display: inline-flex;
  width: auto;
  max-width: min(520px, 78%);
  color: #101012;
  font-size: 14.5px;
  line-height: 1.48;
}

.message p {
  max-width: 48ch;
  margin: 0;
}

.message.user {
  max-width: min(300px, 54%);
  padding: 9px 14px;
  border: 1px solid var(--liquid-border);
  border-radius: 19px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.26);
  color: #101012;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    10px 16px 38px rgba(30, 34, 40, 0.15);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
}

.message.user p {
  max-width: 24ch;
}

.message.user::after {
  display: none;
}

.message.assistant {
  max-width: min(420px, 66%);
  padding: 10px 15px 10px 46px;
  border: 1px solid var(--liquid-border-soft);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.13)),
    var(--liquid-card-soft);
  color: #101012;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.56) inset,
    12px 18px 42px rgba(30, 34, 40, 0.12);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
}

.message.assistant::after {
  display: none;
}

.assistant-mini-mark {
  top: 9px;
  left: 11px;
  width: 25px;
  height: 25px;
}

.assistant-mini-mark::before {
  opacity: 0.55;
}

.typing i {
  background: rgba(16, 16, 18, 0.58);
}

.composer-area {
  width: min(600px, calc(100% - 150px));
}

.composer-area::before {
  height: 24px;
  background: rgba(30, 34, 40, 0.18);
  opacity: 0.38;
}

.composer {
  min-height: 54px;
  padding: 10px 10px 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.16)),
    rgba(255, 255, 255, 0.22);
  color: #101012;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 22px 58px rgba(30, 34, 40, 0.18);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.composer::before {
  opacity: 0.42;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.36), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(201, 20, 50, 0.12), transparent 38%);
}

.composer textarea {
  min-height: 23px;
  color: #101012;
  font-size: 14.5px;
  font-weight: 520;
}

.composer textarea::placeholder {
  color: rgba(16, 16, 18, 0.48);
}

.send-button {
  width: 28px;
  height: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(217, 221, 229, 0.92));
  color: #101012;
}

.welcome h1,
.welcome-kicker {
  color: #101012;
}

.welcome::before,
.welcome-mark {
  border-color: rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.1)),
    rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

@media (max-width: 900px) {
  .message-list {
    width: min(620px, calc(100% - 54px));
  }

  .composer-area {
    width: min(590px, calc(100% - 54px));
  }
}

@media (max-width: 680px) {
  .message-list {
    width: calc(100% - 24px);
  }

  .message,
  .message.user,
  .message.assistant {
    max-width: 86%;
  }

  .message.assistant {
    padding-left: 44px;
  }

  .composer-area {
    width: calc(100% - 24px);
  }
}

/* Apple-style transparent glass modes: light glass and dark glass. */
:root {
  --glass-text: #101114;
  --glass-muted: rgba(16, 17, 20, 0.68);
  --glass-faint: rgba(16, 17, 20, 0.44);
  --glass-bg-a: #eef0f4;
  --glass-bg-b: #c9d0dc;
  --glass-bg-c: #efd4d2;
  --glass-panel: rgba(255, 255, 255, 0.2);
  --glass-card: rgba(255, 255, 255, 0.34);
  --glass-card-strong: rgba(255, 255, 255, 0.48);
  --glass-stroke: rgba(255, 255, 255, 0.58);
  --glass-stroke-soft: rgba(255, 255, 255, 0.34);
  --glass-shadow: rgba(31, 35, 43, 0.18);
  --glass-grid: rgba(18, 19, 22, 0.055);
  --glass-highlight: rgba(255, 255, 255, 0.52);
  --glass-logo-glow: rgba(201, 20, 50, 0.22);
}

[data-theme="dark"] {
  --glass-text: #f6f7fb;
  --glass-muted: rgba(246, 247, 251, 0.74);
  --glass-faint: rgba(246, 247, 251, 0.48);
  --glass-bg-a: #111317;
  --glass-bg-b: #252a33;
  --glass-bg-c: #351f27;
  --glass-panel: rgba(12, 14, 18, 0.24);
  --glass-card: rgba(255, 255, 255, 0.105);
  --glass-card-strong: rgba(255, 255, 255, 0.16);
  --glass-stroke: rgba(255, 255, 255, 0.22);
  --glass-stroke-soft: rgba(255, 255, 255, 0.13);
  --glass-shadow: rgba(0, 0, 0, 0.34);
  --glass-grid: rgba(255, 255, 255, 0.04);
  --glass-highlight: rgba(255, 255, 255, 0.18);
  --glass-logo-glow: rgba(201, 20, 50, 0.32);
}

body,
[data-theme="dark"] body {
  color: var(--glass-text);
  background:
    radial-gradient(circle at 72% 10%, rgba(158, 183, 255, 0.38), transparent 25%),
    radial-gradient(circle at 16% 94%, rgba(226, 186, 104, 0.32), transparent 31%),
    radial-gradient(circle at 98% 80%, rgba(201, 20, 50, 0.2), transparent 30%),
    linear-gradient(135deg, var(--glass-bg-a), var(--glass-bg-b) 45%, var(--glass-bg-c));
}

body::before,
[data-theme="dark"] body::before {
  opacity: 0.2;
  background-image:
    linear-gradient(var(--glass-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--glass-grid) 1px, transparent 1px);
  background-size: 52px 52px;
}

body::after,
[data-theme="dark"] body::after {
  opacity: 0.54;
  background:
    linear-gradient(112deg, transparent 0 28%, var(--glass-highlight) 45%, transparent 62% 100%),
    radial-gradient(circle at 82% 12%, var(--glass-highlight), transparent 19%);
  mix-blend-mode: soft-light;
}

.app-shell {
  background: transparent;
}

.main::before {
  border-color: var(--glass-stroke);
  background:
    linear-gradient(145deg, var(--glass-card-strong), rgba(255, 255, 255, 0.045) 48%, var(--glass-card)),
    radial-gradient(circle at 76% 8%, rgba(158, 183, 255, 0.18), transparent 34%),
    radial-gradient(circle at 18% 92%, rgba(226, 186, 104, 0.1), transparent 34%),
    var(--glass-panel);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.48) inset,
    -1px -1px 0 rgba(255, 255, 255, 0.12) inset,
    0 34px 120px var(--glass-shadow);
  backdrop-filter: blur(34px) saturate(180%);
  -webkit-backdrop-filter: blur(34px) saturate(180%);
}

.main::after {
  background-image:
    linear-gradient(var(--glass-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--glass-grid) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 31%, var(--glass-highlight) 46%, transparent 60% 100%);
  opacity: 0.62;
}

.topbar {
  color: var(--glass-text);
  border-bottom-color: var(--glass-stroke-soft);
  background:
    linear-gradient(180deg, var(--glass-card), transparent),
    linear-gradient(90deg, transparent, var(--glass-highlight) 62%, transparent);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
}

.privacy-chip,
.avatar,
.welcome h1,
.welcome-kicker,
.message,
.message.user,
.message.assistant,
.composer,
.composer textarea,
.send-button {
  color: var(--glass-text);
}

.conversation::before,
.conversation::after,
.welcome::before,
.welcome-mark,
.message.user,
.message.assistant,
.composer {
  border-color: var(--glass-stroke);
  background:
    linear-gradient(145deg, var(--glass-card-strong), rgba(255, 255, 255, 0.045)),
    var(--glass-card);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.38) inset,
    0 18px 56px var(--glass-shadow);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
}

.message-list {
  width: min(620px, calc(100% - 126px));
}

.message {
  text-shadow: none;
}

.message.user {
  max-width: min(300px, 54%);
  background:
    linear-gradient(145deg, var(--glass-card-strong), rgba(255, 255, 255, 0.07)),
    var(--glass-card);
}

.message.assistant {
  max-width: min(390px, 62%);
  background:
    linear-gradient(145deg, var(--glass-card), rgba(255, 255, 255, 0.04)),
    var(--glass-panel);
}

.assistant-mini-mark {
  filter:
    drop-shadow(0 10px 16px var(--glass-logo-glow))
    drop-shadow(8px 12px 18px var(--glass-shadow));
}

.composer-area {
  width: min(580px, calc(100% - 168px));
}

.composer {
  background:
    linear-gradient(145deg, var(--glass-card-strong), rgba(255, 255, 255, 0.06)),
    var(--glass-card);
}

.composer textarea::placeholder {
  color: var(--glass-faint);
}

.send-button {
  border: 1px solid var(--glass-stroke);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.22)),
    var(--glass-card);
}

[data-theme="dark"] .send-button {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    var(--glass-card);
}

[data-theme="dark"] .typing i {
  background: rgba(246, 247, 251, 0.68);
}

@media (max-width: 900px) {
  .message-list {
    width: min(610px, calc(100% - 54px));
  }

  .composer-area {
    width: min(580px, calc(100% - 54px));
  }
}

@media (max-width: 680px) {
  .message-list,
  .composer-area {
    width: calc(100% - 24px);
  }

  .message.user,
  .message.assistant {
    max-width: 86%;
  }
}

/* Ultra-transparent glass pass: push transparency while preserving edges. */
:root {
  --glass-panel: rgba(255, 255, 255, 0.055);
  --glass-card: rgba(255, 255, 255, 0.085);
  --glass-card-strong: rgba(255, 255, 255, 0.15);
  --glass-stroke: rgba(255, 255, 255, 0.5);
  --glass-stroke-soft: rgba(255, 255, 255, 0.24);
  --glass-shadow: rgba(32, 36, 44, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.34);
}

[data-theme="dark"] {
  --glass-panel: rgba(255, 255, 255, 0.035);
  --glass-card: rgba(255, 255, 255, 0.052);
  --glass-card-strong: rgba(255, 255, 255, 0.09);
  --glass-stroke: rgba(255, 255, 255, 0.19);
  --glass-stroke-soft: rgba(255, 255, 255, 0.1);
  --glass-shadow: rgba(0, 0, 0, 0.24);
  --glass-highlight: rgba(255, 255, 255, 0.12);
}

.main::before {
  background:
    linear-gradient(145deg, var(--glass-card-strong), rgba(255, 255, 255, 0.01) 45%, var(--glass-panel)),
    radial-gradient(circle at 76% 8%, rgba(158, 183, 255, 0.11), transparent 36%),
    radial-gradient(circle at 18% 92%, rgba(226, 186, 104, 0.06), transparent 36%),
    var(--glass-panel);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42) inset,
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 40px 130px var(--glass-shadow);
  backdrop-filter: blur(48px) saturate(210%) brightness(1.06);
  -webkit-backdrop-filter: blur(48px) saturate(210%) brightness(1.06);
}

.main::after {
  opacity: 0.42;
}

.topbar {
  background:
    linear-gradient(180deg, var(--glass-card), transparent 92%),
    linear-gradient(90deg, transparent, var(--glass-highlight) 62%, transparent);
  backdrop-filter: blur(34px) saturate(200%);
  -webkit-backdrop-filter: blur(34px) saturate(200%);
}

.conversation::before,
.conversation::after {
  opacity: 0.22;
}

.conversation::before,
.conversation::after,
.welcome::before,
.welcome-mark,
.message.user,
.message.assistant,
.composer {
  border-color: var(--glass-stroke);
  background:
    linear-gradient(145deg, var(--glass-card-strong), rgba(255, 255, 255, 0.012) 62%),
    var(--glass-card);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.34) inset,
    0 0 0 1px rgba(255, 255, 255, 0.055) inset,
    0 18px 58px var(--glass-shadow);
  backdrop-filter: blur(42px) saturate(220%) brightness(1.04);
  -webkit-backdrop-filter: blur(42px) saturate(220%) brightness(1.04);
}

.message.user {
  background:
    linear-gradient(145deg, var(--glass-card-strong), rgba(255, 255, 255, 0.016)),
    var(--glass-panel);
}

.message.assistant {
  background:
    linear-gradient(145deg, var(--glass-card), rgba(255, 255, 255, 0.01)),
    var(--glass-panel);
}

.composer {
  background:
    linear-gradient(145deg, var(--glass-card-strong), rgba(255, 255, 255, 0.012)),
    var(--glass-panel);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.38) inset,
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 28px 82px var(--glass-shadow);
}

.composer::before {
  opacity: 0.24;
}

.send-button {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08)),
    var(--glass-card);
  backdrop-filter: blur(28px) saturate(220%);
  -webkit-backdrop-filter: blur(28px) saturate(220%);
}

[data-theme="dark"] .send-button {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    var(--glass-card);
}

.welcome::before {
  opacity: 0.74;
}

.welcome-mark {
  background:
    linear-gradient(145deg, var(--glass-card-strong), rgba(255, 255, 255, 0.02)),
    var(--glass-panel);
}

/* TRIONN-inspired imdi hero: three interlocked crescent-star lowercase i forms. */
body,
[data-theme="dark"] body {
  background:
    radial-gradient(circle at 70% 38%, rgba(185, 22, 26, 0.14), transparent 18%),
    radial-gradient(circle at 76% 18%, rgba(255, 119, 37, 0.08), transparent 15%),
    linear-gradient(135deg, #050505 0%, #08090b 45%, #020202 100%);
}

body::before,
[data-theme="dark"] body::before {
  opacity: 0.16;
  background-image:
    linear-gradient(116deg, transparent 0 22%, rgba(115, 135, 160, 0.2) 22.2%, transparent 22.5% 100%),
    linear-gradient(151deg, transparent 0 52%, rgba(115, 135, 160, 0.18) 52.2%, transparent 52.45% 100%),
    radial-gradient(circle at 72% 28%, rgba(255, 80, 22, 0.12) 0 1px, transparent 1.5px);
  background-size: 100% 100%, 100% 100%, 170px 150px;
}

body::after,
[data-theme="dark"] body::after {
  opacity: 0.28;
  background:
    radial-gradient(circle at 52% 55%, rgba(255, 76, 24, 0.12), transparent 16%),
    radial-gradient(circle at 74% 38%, rgba(255, 136, 37, 0.1), transparent 11%);
  mix-blend-mode: screen;
}

.main::before {
  border-color: rgba(255, 255, 255, 0.055);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.018), transparent 40%),
    rgba(5, 5, 6, 0.28);
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.main::after {
  opacity: 0.22;
  background-image:
    linear-gradient(118deg, transparent 0 35%, rgba(105, 124, 150, 0.17) 35.1%, transparent 35.32% 100%),
    linear-gradient(158deg, transparent 0 55%, rgba(105, 124, 150, 0.13) 55.08%, transparent 55.28% 100%);
}

.topbar {
  border-bottom-color: rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.56), transparent);
  color: rgba(245, 245, 245, 0.84);
}

.privacy-chip,
.avatar {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: #080808;
}

.conversation {
  position: relative;
  overflow: hidden auto;
}

.conversation::before,
.conversation::after {
  display: none;
}

.welcome {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(360px, 1.12fr);
  align-items: center;
  gap: clamp(18px, 5vw, 78px);
  width: min(1320px, calc(100% - 84px));
  min-height: min(690px, calc(100vh - 160px));
  margin: 0 auto;
  text-align: left;
}

.welcome::before,
.welcome-mark {
  display: none;
}

.welcome-copyblock {
  position: relative;
  z-index: 3;
  max-width: 500px;
}

.welcome-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.welcome-kicker::before {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
  content: "";
}

.welcome h1 {
  max-width: 540px;
  color: rgba(240, 240, 240, 0.92);
  background: none;
  font-family: var(--font-ui);
  font-size: clamp(54px, 7.4vw, 128px);
  font-weight: 610;
  letter-spacing: -0.078em;
  line-height: 0.88;
  text-wrap: balance;
  animation: none;
}

.welcome h1::after {
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  margin-left: 0.06em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.7);
  content: "";
  filter: blur(0.2px);
}

.welcome-copy {
  max-width: 390px;
  margin: 22px 0 0;
  color: rgba(235, 235, 235, 0.64);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.trionn-hero {
  position: relative;
  z-index: 2;
  order: 2;
  min-height: 570px;
  perspective: 1100px;
  transform-style: preserve-3d;
}

.hero3d-canvas {
  position: absolute;
  inset: -12% -8% -8% -10%;
  z-index: 2;
  width: 118%;
  height: 118%;
  opacity: 0;
  filter:
    drop-shadow(0 42px 86px rgba(0, 0, 0, 0.86))
    drop-shadow(0 0 34px rgba(255, 69, 18, 0.2));
  transition: opacity 600ms ease;
}

.hero3d-canvas.hero3d-ready {
  opacity: 1;
}

.hero3d-canvas.hero3d-failed {
  display: none;
}

.hero3d-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: none;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotateX(61deg) rotateZ(-24deg);
  transform-style: preserve-3d;
}

.hero3d-fallback.visible {
  display: block;
}

.fallback-i {
  position: absolute;
  inset: 15% 42% 13% 42%;
  border: 1px solid rgba(255, 116, 36, 0.34);
  border-radius: 26px;
  background:
    linear-gradient(95deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.88) 42%, rgba(255, 77, 20, 0.18)),
    #050506;
  box-shadow: 0 0 28px rgba(255, 73, 18, 0.16);
  transform-origin: 50% 55%;
}

.fallback-i:nth-child(1) {
  transform: rotateZ(0deg) translateZ(48px);
}

.fallback-i:nth-child(2) {
  transform: rotateZ(120deg);
}

.fallback-i:nth-child(3) {
  transform: rotateZ(240deg) translateZ(-48px);
}

.trionn-symbol {
  display: none;
  position: absolute;
  top: 48%;
  left: 48%;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotateX(61deg) rotateZ(-24deg);
  transform-style: preserve-3d;
  filter:
    drop-shadow(0 34px 62px rgba(0, 0, 0, 0.8))
    drop-shadow(0 0 30px rgba(255, 72, 22, 0.18));
  animation: trionn-float 7s ease-in-out infinite;
}

.trionn-i {
  position: absolute;
  inset: 9%;
  transform-origin: 50% 55%;
  transform-style: preserve-3d;
}

.trionn-i::before {
  position: absolute;
  inset: 31% 33% 16% 39%;
  border-radius: 20px;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.22), transparent 30%, rgba(255, 102, 25, 0.36) 58%, transparent 72%);
  box-shadow: 0 0 28px rgba(255, 91, 21, 0.24);
  content: "";
  filter: blur(11px);
  opacity: 0.72;
}

.i-one {
  transform: rotateZ(0deg) translate3d(0, -2%, 48px);
}

.i-two {
  transform: rotateZ(120deg) translate3d(0, -2%, 0);
}

.i-three {
  transform: rotateZ(240deg) translate3d(0, -2%, -48px);
}

.i-stem,
.i-tail,
.i-crescent,
.i-star {
  position: absolute;
  display: block;
  transform-style: preserve-3d;
}

.i-stem {
  top: 28%;
  left: 45%;
  width: 16%;
  height: 48%;
  border: 1px solid rgba(255, 119, 40, 0.34);
  border-radius: 20px 24px 18px 22px;
  background:
    linear-gradient(95deg, rgba(255, 255, 255, 0.09), transparent 20%, rgba(0, 0, 0, 0.72) 42%, rgba(255, 86, 24, 0.16) 58%, rgba(1, 1, 2, 0.92)),
    linear-gradient(180deg, #11131a, #030405);
  box-shadow:
    1px 0 0 rgba(255, 145, 55, 0.8) inset,
    -1px 0 0 rgba(255, 255, 255, 0.08) inset,
    0 0 22px rgba(255, 66, 18, 0.16);
  transform: skewX(-12deg) rotateZ(-5deg);
}

.i-stem::before {
  position: absolute;
  inset: 3% -8% 3% 70%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 100, 26, 0.64), transparent 24%, rgba(255, 116, 34, 0.18) 62%, transparent);
  content: "";
  filter: blur(4px);
}

.i-tail {
  right: 11%;
  bottom: 9%;
  width: 58%;
  height: 17%;
  border: 1px solid rgba(255, 126, 42, 0.44);
  border-radius: 10px 28px 10px 30px;
  background:
    linear-gradient(100deg, rgba(255, 125, 36, 0.34), rgba(0, 0, 0, 0.82) 34%, rgba(0, 0, 0, 0.95) 72%, rgba(255, 112, 26, 0.24)),
    #050506;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.025) inset,
    0 0 26px rgba(255, 70, 18, 0.16);
  clip-path: polygon(0 26%, 78% 0, 100% 45%, 78% 96%, 12% 82%);
  transform: rotateZ(-27deg) translate3d(-10%, -22%, 12px);
}

.i-tail::after {
  position: absolute;
  inset: 4px 8px auto auto;
  width: 31%;
  height: 2px;
  background: #ff8a25;
  box-shadow: 0 0 13px #ff5b18;
  content: "";
}

.i-crescent {
  top: 9%;
  left: 36%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 63% 46%, transparent 0 36%, #050506 37% 46%, transparent 47%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.18), rgba(255, 85, 25, 0.36) 38%, rgba(0, 0, 0, 0.92) 74%);
  box-shadow:
    0 0 0 1px rgba(255, 129, 38, 0.42) inset,
    0 0 20px rgba(255, 72, 18, 0.25);
  transform: rotateZ(-18deg) translateZ(60px);
}

.i-crescent::after {
  position: absolute;
  top: 7%;
  left: 33%;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  background: #050506;
  box-shadow: -6px 0 12px rgba(255, 70, 18, 0.15) inset;
  content: "";
}

.i-star {
  top: 16%;
  left: 60%;
  width: 13%;
  aspect-ratio: 1;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 86, 25, 0.34) 34%, rgba(0, 0, 0, 0.88) 80%);
  box-shadow:
    0 0 0 1px rgba(255, 136, 49, 0.5) inset,
    0 0 18px rgba(255, 75, 22, 0.28);
  clip-path: polygon(50% 0, 61% 36%, 98% 36%, 68% 57%, 80% 94%, 50% 72%, 20% 94%, 32% 57%, 2% 36%, 39% 36%);
  transform: rotateZ(12deg) translateZ(68px);
}

.trionn-line {
  position: absolute;
  left: -18%;
  width: 138%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(80, 100, 125, 0.38), transparent);
  transform-origin: 50% 50%;
  opacity: 0.72;
}

.line-one {
  top: 24%;
  transform: rotate(-12deg);
}

.line-two {
  top: 55%;
  transform: rotate(-30deg);
}

.line-three {
  top: 72%;
  transform: rotate(13deg);
}

.trionn-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #ff6a18;
  box-shadow: 0 0 16px #ff4c12;
  opacity: 0.82;
  animation: trionn-pulse 3.4s ease-in-out infinite;
}

.particle-one {
  top: 24%;
  left: 72%;
}

.particle-two {
  top: 67%;
  left: 24%;
  animation-delay: -1.3s;
}

.particle-three {
  top: 76%;
  left: 82%;
  animation-delay: -2.1s;
}

.suggestions {
  position: relative;
  z-index: 4;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(530px, 100%);
  margin-top: 38px;
}

.suggestion {
  min-height: 68px;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.025);
  color: rgba(246, 246, 246, 0.88);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.suggestion small,
.suggestion .arrow {
  color: rgba(255, 255, 255, 0.46);
}

.suggestion:hover {
  border-color: rgba(255, 111, 28, 0.36);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(255, 93, 19, 0.045);
  box-shadow: 0 20px 62px rgba(255, 84, 20, 0.14);
}

.composer {
  border-color: rgba(255, 255, 255, 0.15);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(8, 8, 10, 0.48);
  color: rgba(255, 255, 255, 0.9);
}

.composer textarea,
.message,
.message.user,
.message.assistant {
  color: rgba(255, 255, 255, 0.9);
}

.composer textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

@keyframes trionn-float {
  0%,
  100% {
    transform: translate(-50%, -50%) rotateX(61deg) rotateZ(-24deg) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) rotateX(61deg) rotateZ(-18deg) translateY(-14px);
  }
}

@keyframes trionn-pulse {
  0%,
  100% {
    opacity: 0.24;
    transform: scale(0.72);
  }
  50% {
    opacity: 1;
    transform: scale(1.7);
  }
}

@media (max-width: 1080px) {
  .welcome {
    grid-template-columns: 1fr;
    width: min(760px, calc(100% - 48px));
    min-height: auto;
    padding: 38px 0 120px;
    text-align: center;
  }

  .welcome-copyblock {
    order: 2;
    justify-self: center;
  }

  .welcome-kicker {
    justify-content: center;
  }

  .welcome-kicker::before {
    display: none;
  }

  .trionn-hero {
    order: 1;
    min-height: 360px;
  }

  .trionn-symbol {
    width: min(70vw, 430px);
  }

  .welcome h1,
  .welcome-copy {
    margin-right: auto;
    margin-left: auto;
  }

  .suggestions {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 680px) {
  .welcome {
    width: calc(100% - 28px);
    padding-top: 18px;
  }

  .trionn-hero {
    min-height: 300px;
  }

  .trionn-symbol {
    width: min(88vw, 360px);
  }

  .welcome h1 {
    font-size: clamp(46px, 15vw, 72px);
  }

  .welcome-copy {
    font-size: 14px;
  }

  .suggestions {
    grid-template-columns: 1fr;
    width: min(340px, 100%);
  }
}

/* Full-screen professional 3D hero pass. */
body,
[data-theme="dark"] body {
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 74, 18, 0.075), transparent 18%),
    radial-gradient(circle at 62% 58%, rgba(110, 135, 180, 0.09), transparent 22%),
    linear-gradient(135deg, #050505 0%, #07080a 58%, #020202 100%);
}

.main {
  position: relative;
  overflow: hidden;
}

.main::before {
  inset: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.02), transparent 32%),
    radial-gradient(circle at 84% 14%, rgba(38, 111, 144, 0.12), transparent 24%),
    rgba(0, 0, 0, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.main::after {
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(119deg, transparent 0 27%, rgba(88, 105, 130, 0.2) 27.05%, transparent 27.22% 100%),
    linear-gradient(153deg, transparent 0 60%, rgba(88, 105, 130, 0.14) 60.06%, transparent 60.22% 100%),
    radial-gradient(circle at 86% 40%, rgba(255, 91, 18, 0.42) 0 1px, transparent 1.5px);
  background-size: 100% 100%, 100% 100%, 170px 150px;
}

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 8;
  height: 72px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent);
}

.conversation {
  min-height: 100vh;
  padding: 0;
  overflow: hidden auto;
}

.welcome {
  grid-template-columns: minmax(320px, 0.68fr) minmax(520px, 1.32fr);
  gap: clamp(24px, 5vw, 112px);
  width: min(1480px, calc(100% - 96px));
  min-height: 100vh;
  padding: 86px 0 130px;
}

.welcome-copyblock {
  align-self: center;
  max-width: 560px;
  padding-left: clamp(10px, 2vw, 34px);
}

.welcome-kicker {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  letter-spacing: 0.28em;
}

.welcome h1 {
  max-width: 580px;
  color: rgba(244, 244, 244, 0.94);
  font-size: clamp(64px, 7vw, 132px);
  font-weight: 590;
  letter-spacing: -0.086em;
  line-height: 0.88;
  text-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.welcome h1::after {
  width: 0.16em;
  height: 0.16em;
  margin-left: 0.045em;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.56);
}

.welcome-copy {
  max-width: 420px;
  color: rgba(242, 242, 242, 0.58);
  font-size: 15px;
}

.trionn-hero {
  align-self: stretch;
  min-height: 720px;
  order: 2;
  overflow: visible;
}

.hero3d-canvas {
  inset: -16% -9% -12% -8%;
  width: 118%;
  height: 128%;
  filter:
    drop-shadow(0 48px 92px rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 20px rgba(255, 79, 18, 0.12));
}

.trionn-line {
  left: -20%;
  width: 150%;
  opacity: 0.45;
}

.line-one {
  top: 22%;
}

.line-two {
  top: 51%;
}

.line-three {
  top: 70%;
}

.trionn-particle {
  width: 2px;
  height: 2px;
  opacity: 0.48;
}

.suggestions {
  width: min(500px, 100%);
  margin-top: 34px;
}

.suggestion {
  min-height: 60px;
  padding: 11px 12px;
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.026);
  box-shadow: none;
}

.composer-area {
  position: absolute;
  right: auto;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 10;
  width: min(560px, calc(100% - 72px));
  transform: translateX(-50%);
}

.composer {
  min-height: 54px;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    rgba(8, 8, 10, 0.62);
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.45);
}

.disclaimer {
  display: none;
}

@media (max-width: 1180px) {
  .welcome {
    grid-template-columns: 1fr;
    width: min(860px, calc(100% - 48px));
    padding-top: 86px;
    text-align: center;
  }

  .welcome-copyblock {
    order: 2;
    justify-self: center;
    padding-left: 0;
  }

  .trionn-hero {
    order: 1;
    min-height: 460px;
  }

  .hero3d-canvas {
    inset: -20% -10%;
    width: 120%;
    height: 132%;
  }
}

@media (max-width: 680px) {
  .welcome {
    width: calc(100% - 28px);
    padding-bottom: 116px;
  }

  .trionn-hero {
    min-height: 360px;
  }

  .welcome h1 {
    font-size: clamp(46px, 15vw, 78px);
  }

  .composer-area {
    width: calc(100% - 24px);
  }
}

/* v20260701-11: 3D removed. TRIONN-inspired static hero for imdi. */
:root {
  --imdi-void: #050506;
  --imdi-ink: rgba(232, 232, 232, 0.94);
  --imdi-line: rgba(92, 106, 126, 0.22);
  --imdi-line-soft: rgba(92, 106, 126, 0.11);
}

body,
[data-theme="dark"] body {
  color: var(--imdi-ink);
  background:
    radial-gradient(circle at 80% 14%, rgba(46, 68, 94, 0.18), transparent 31%),
    radial-gradient(circle at 40% 102%, rgba(96, 72, 38, 0.13), transparent 28%),
    linear-gradient(135deg, #050506 0%, #08090a 52%, #030304 100%) !important;
}

.main {
  position: relative;
  overflow: hidden;
  background: transparent !important;
}

.main::before {
  inset: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    linear-gradient(116deg, rgba(255, 255, 255, 0.018), transparent 38%),
    radial-gradient(circle at 83% 18%, rgba(70, 115, 150, 0.12), transparent 27%),
    rgba(0, 0, 0, 0.2) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.main::after {
  inset: 0 !important;
  opacity: 0.26 !important;
  background-image:
    linear-gradient(116deg, transparent 0 22%, var(--imdi-line) 22.05%, transparent 22.14% 100%),
    linear-gradient(154deg, transparent 0 61%, var(--imdi-line-soft) 61.04%, transparent 61.18% 100%),
    linear-gradient(172deg, transparent 0 72%, rgba(87, 101, 123, 0.14) 72.04%, transparent 72.12% 100%) !important;
  background-size: 100% 100% !important;
}

.topbar {
  position: absolute !important;
  inset: 0 0 auto !important;
  z-index: 30 !important;
  height: 76px !important;
  border: 0 !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent) !important;
}

.privacy-chip {
  min-height: 34px !important;
  padding: 0 17px !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  border-radius: 999px !important;
  color: #111 !important;
  background: rgba(245, 245, 245, 0.94) !important;
  box-shadow: none !important;
}

.privacy-chip svg {
  display: none !important;
}

.avatar {
  width: 38px !important;
  height: 38px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  background: transparent !important;
}

.conversation {
  min-height: 100vh !important;
  padding: 0 !important;
  overflow: hidden auto !important;
}

.welcome {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: clamp(96px, 13vh, 142px) clamp(28px, 4.5vw, 78px) 154px !important;
  text-align: left !important;
}

.welcome-copyblock {
  position: relative !important;
  z-index: 8 !important;
  width: min(640px, calc(100vw - 390px)) !important;
  max-width: 640px !important;
  padding: 0 !important;
  align-self: auto !important;
}

.welcome-kicker {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 0 0 24px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.34em !important;
  text-transform: uppercase !important;
}

.welcome-kicker::before {
  content: "" !important;
  width: 70px !important;
  height: 1px !important;
  background: rgba(255, 255, 255, 0.6) !important;
}

.welcome h1 {
  max-width: 720px !important;
  margin: 0 !important;
  color: rgba(232, 232, 232, 0.96) !important;
  font-size: clamp(72px, 7.5vw, 136px) !important;
  font-weight: 590 !important;
  letter-spacing: -0.09em !important;
  line-height: 0.88 !important;
  text-shadow: 0 26px 70px rgba(0, 0, 0, 0.48) !important;
}

.welcome h1::after {
  width: 0.15em !important;
  height: 0.15em !important;
  margin-left: 0.04em !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.6) !important;
}

.hero-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 44px !important;
  width: 190px !important;
  margin: 42px 0 0 !important;
  padding: 0 0 13px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.66) !important;
  border-radius: 0 !important;
  color: rgba(255, 255, 255, 0.86) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
}

.welcome-copy {
  width: min(320px, 90%) !important;
  margin: 26px 0 0 !important;
  color: rgba(235, 235, 235, 0.56) !important;
  font-size: 15px !important;
  line-height: 1.52 !important;
}

.suggestions,
.hero3d-canvas,
.hero3d-fallback {
  display: none !important;
}

.trionn-hero {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  min-height: 0 !important;
  order: initial !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.trionn-line {
  position: absolute !important;
  left: -18% !important;
  width: 138% !important;
  height: 1px !important;
  opacity: 1 !important;
  background: linear-gradient(90deg, transparent, rgba(78, 92, 112, 0.28), transparent) !important;
  transform-origin: center !important;
}

.line-one {
  top: 18% !important;
  transform: rotate(-9deg) !important;
}

.line-two {
  top: 45% !important;
  transform: rotate(-17deg) !important;
}

.line-three {
  top: 64% !important;
  transform: rotate(-28deg) !important;
}

.line-four {
  top: 76% !important;
  transform: rotate(-4deg) !important;
}

.trionn-particle {
  position: absolute !important;
  width: 2px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: rgba(255, 120, 28, 0.62) !important;
  box-shadow: 0 0 12px rgba(255, 120, 28, 0.4) !important;
}

.particle-one {
  top: 22% !important;
  left: 63% !important;
}

.particle-two {
  top: 58% !important;
  left: 78% !important;
}

.particle-three {
  top: 78% !important;
  left: 46% !important;
}

.hero-abstract-mark {
  position: absolute !important;
  top: 26% !important;
  right: clamp(92px, 15vw, 260px) !important;
  width: clamp(330px, 30vw, 530px) !important;
  height: clamp(330px, 30vw, 530px) !important;
  opacity: 0.86 !important;
  filter: drop-shadow(0 42px 72px rgba(0, 0, 0, 0.72)) !important;
  transform: rotateX(58deg) rotateZ(-17deg) skewX(-8deg) !important;
  transform-style: preserve-3d !important;
}

.hero-abstract-mark::before,
.hero-abstract-mark::after {
  content: "" !important;
  position: absolute !important;
  border: 1px solid rgba(255, 255, 255, 0.055) !important;
  border-radius: 28px !important;
}

.hero-abstract-mark::before {
  inset: 14% 6% 18% !important;
  transform: rotate(-16deg) !important;
}

.hero-abstract-mark::after {
  inset: 24% 20% 14% 12% !important;
  border-color: rgba(255, 128, 38, 0.18) !important;
  transform: rotate(21deg) !important;
}

.abstract-stem {
  position: absolute !important;
  display: block !important;
  width: 70px !important;
  height: 320px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.15), transparent 18% 72%, rgba(255, 255, 255, 0.05)),
    linear-gradient(180deg, #11151b, #050608 52%, #151820) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 18px 0 34px rgba(255, 255, 255, 0.035),
    0 0 0 1px rgba(0, 0, 0, 0.9),
    0 30px 80px rgba(0, 0, 0, 0.66) !important;
}

.stem-one {
  left: 20% !important;
  top: 15% !important;
  transform: rotate(-28deg) !important;
}

.stem-two {
  left: 46% !important;
  top: 5% !important;
  transform: rotate(-24deg) !important;
}

.stem-three {
  left: 38% !important;
  top: 38% !important;
  width: 330px !important;
  height: 70px !important;
  transform: rotate(-2deg) !important;
}

.abstract-cut {
  position: absolute !important;
  display: block !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent, rgba(255, 128, 38, 0.72), transparent) !important;
  box-shadow: 0 0 20px rgba(255, 128, 38, 0.32) !important;
}

.cut-one {
  top: 37% !important;
  left: 24% !important;
  width: 300px !important;
  transform: rotate(15deg) !important;
}

.cut-two {
  top: 70% !important;
  left: 28% !important;
  width: 360px !important;
  transform: rotate(-4deg) !important;
}

.hero-info-card {
  position: absolute !important;
  right: clamp(28px, 4vw, 74px) !important;
  bottom: clamp(132px, 13vh, 174px) !important;
  z-index: 9 !important;
  display: grid !important;
  grid-template-columns: 98px minmax(160px, 220px) !important;
  min-height: 74px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.82) !important;
  background: rgba(255, 255, 255, 0.018) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.hero-info-card > div {
  display: grid !important;
  place-items: center !important;
  gap: 6px !important;
  padding: 14px !important;
  border-right: 1px solid rgba(255, 255, 255, 0.09) !important;
}

.hero-info-card p {
  margin: 0 !important;
  padding: 15px 16px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 13px !important;
  line-height: 1.22 !important;
}

.info-globe {
  width: 24px !important;
  height: 24px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.74) !important;
  border-radius: 999px !important;
}

.hero-bottom-note {
  position: absolute !important;
  bottom: 52px !important;
  left: 50% !important;
  z-index: 9 !important;
  display: flex !important;
  gap: 8px !important;
  color: rgba(255, 255, 255, 0.74) !important;
  font-size: 12px !important;
  letter-spacing: 0.02em !important;
  transform: translateX(-50%) !important;
}

.composer-area {
  position: absolute !important;
  right: auto !important;
  bottom: max(24px, env(safe-area-inset-bottom)) !important;
  left: 50% !important;
  z-index: 28 !important;
  width: min(560px, calc(100% - 72px)) !important;
  transform: translateX(-50%) !important;
}

.composer {
  min-height: 54px !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  border-radius: 18px !important;
  background: rgba(13, 14, 16, 0.78) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58) !important;
  backdrop-filter: blur(18px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(130%) !important;
}

.composer textarea {
  color: rgba(255, 255, 255, 0.92) !important;
}

.disclaimer {
  display: none !important;
}

@media (max-width: 1180px) {
  .welcome {
    padding-right: 32px !important;
  }

  .welcome-copyblock {
    width: min(600px, calc(100vw - 330px)) !important;
  }

  .hero-abstract-mark {
    right: 32px !important;
    opacity: 0.5 !important;
  }

  .hero-info-card {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .welcome {
    padding: 92px 20px 132px !important;
  }

  .welcome-copyblock {
    width: 100% !important;
  }

  .welcome h1 {
    font-size: clamp(54px, 18vw, 82px) !important;
  }

  .welcome-copy {
    max-width: 270px !important;
  }

  .hero-abstract-mark {
    top: 38% !important;
    right: -150px !important;
    opacity: 0.24 !important;
    transform: rotateX(58deg) rotateZ(-17deg) scale(0.86) !important;
  }

  .composer-area {
    width: calc(100% - 28px) !important;
  }

  .hero-bottom-note {
    display: none !important;
  }
}

/* v20260701-12: imdi premium product UI. No 3D, no imitation, clean AI workspace. */
:root {
  --imdi-bg: #0b0b0c;
  --imdi-panel: rgba(22, 22, 23, 0.72);
  --imdi-panel-strong: rgba(30, 30, 32, 0.86);
  --imdi-line-glass: rgba(255, 255, 255, 0.1);
  --imdi-line-softest: rgba(255, 255, 255, 0.055);
  --imdi-text: rgba(248, 248, 246, 0.96);
  --imdi-muted: rgba(248, 248, 246, 0.56);
  --imdi-soft: rgba(248, 248, 246, 0.36);
  --imdi-red: #c63353;
  --imdi-red-soft: rgba(198, 51, 83, 0.34);
  --imdi-blue-soft: rgba(130, 160, 210, 0.18);
  --imdi-gold-soft: rgba(222, 174, 92, 0.14);
}

html,
body {
  background: var(--imdi-bg) !important;
}

body,
[data-theme="dark"] body {
  color: var(--imdi-text) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.055), transparent 23%),
    radial-gradient(circle at 72% 18%, var(--imdi-blue-soft), transparent 34%),
    radial-gradient(circle at 33% 90%, var(--imdi-gold-soft), transparent 30%),
    radial-gradient(circle at 82% 78%, rgba(198, 51, 83, 0.12), transparent 34%),
    linear-gradient(145deg, #070708 0%, #111112 52%, #070708 100%) !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, system-ui, sans-serif !important;
}

body::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -2 !important;
  opacity: 0.3 !important;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px) !important;
  background-size: 54px 54px !important;
  mask-image: radial-gradient(circle at 56% 42%, black, transparent 74%) !important;
  -webkit-mask-image: radial-gradient(circle at 56% 42%, black, transparent 74%) !important;
}

.ambient {
  display: block !important;
  opacity: 0.45 !important;
  filter: blur(44px) !important;
}

.ambient-one {
  background: rgba(198, 51, 83, 0.18) !important;
}

.ambient-two {
  background: rgba(110, 146, 205, 0.14) !important;
}

.ambient-three {
  background: rgba(240, 190, 112, 0.1) !important;
}

.app-shell {
  min-height: 100vh !important;
  background: transparent !important;
}

.sidebar {
  width: 252px !important;
  border-right: 1px solid var(--imdi-line-glass) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 34%),
    rgba(14, 14, 15, 0.78) !important;
  box-shadow: 24px 0 80px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(28px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(140%) !important;
}

.sidebar-window {
  opacity: 0.82 !important;
}

.icon-button,
.sidebar-action,
.menu-item,
.history-item,
.history-delete {
  color: rgba(255, 255, 255, 0.74) !important;
}

.sidebar-search {
  height: 36px !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.045) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.sidebar-search input {
  color: rgba(255, 255, 255, 0.9) !important;
}

.menu-item {
  min-height: 36px !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  font-weight: 650 !important;
}

.menu-item.active {
  color: white !important;
  background: rgba(255, 255, 255, 0.095) !important;
}

.brand-mark,
.assistant-mini-mark {
  box-shadow: 0 10px 28px rgba(198, 51, 83, 0.26) !important;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.52) !important;
  letter-spacing: 0.16em !important;
}

.empty-history {
  color: rgba(255, 255, 255, 0.45) !important;
}

.sidebar-footer {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.025)) !important;
}

.status-card {
  border-color: rgba(255, 255, 255, 0.11) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

.status-card strong,
.sidebar-profile strong {
  color: rgba(255, 255, 255, 0.92) !important;
}

.status-card span,
.sidebar-profile {
  color: rgba(255, 255, 255, 0.58) !important;
}

.profile-avatar {
  background: linear-gradient(135deg, #23c9aa, #2d9df4) !important;
}

.main {
  position: relative !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.045), transparent 29%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 36%) !important;
}

.main::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 52% 28%, rgba(255, 255, 255, 0.06), transparent 13%),
    radial-gradient(circle at 72% 24%, rgba(111, 147, 205, 0.16), transparent 31%),
    radial-gradient(circle at 30% 78%, rgba(224, 174, 94, 0.1), transparent 26%),
    radial-gradient(circle at 63% 82%, rgba(198, 51, 83, 0.11), transparent 26%) !important;
  box-shadow: none !important;
  pointer-events: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.main::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  opacity: 0.34 !important;
  background:
    linear-gradient(120deg, transparent 0 30%, rgba(255, 255, 255, 0.055) 30.05%, transparent 30.14% 100%),
    linear-gradient(150deg, transparent 0 62%, rgba(255, 255, 255, 0.045) 62.05%, transparent 62.16% 100%) !important;
  pointer-events: none !important;
}

.topbar {
  position: absolute !important;
  inset: 0 0 auto !important;
  z-index: 40 !important;
  height: 70px !important;
  padding: 0 26px !important;
  border: 0 !important;
  background: linear-gradient(180deg, rgba(7, 7, 8, 0.74), transparent) !important;
}

.privacy-chip {
  min-height: 34px !important;
  padding: 0 15px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.privacy-chip svg {
  display: block !important;
}

.avatar {
  width: 36px !important;
  height: 36px !important;
  color: rgba(20, 20, 20, 0.92) !important;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

.conversation {
  position: relative !important;
  z-index: 5 !important;
  min-height: 100vh !important;
  padding: 0 !important;
  overflow: hidden auto !important;
}

.welcome {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 90px 28px 142px !important;
  text-align: center !important;
}

.hero-stage,
.trionn-hero,
.hero-abstract-mark,
.hero-info-card,
.hero-bottom-note,
.trionn-line,
.trionn-particle {
  display: none !important;
}

.welcome-copyblock {
  position: relative !important;
  z-index: 4 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: min(760px, 100%) !important;
  max-width: 760px !important;
  padding: 0 !important;
}

.welcome-logo {
  display: grid !important;
  place-items: center !important;
  width: 76px !important;
  height: 76px !important;
  margin-bottom: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 26px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.035)),
    rgba(198, 51, 83, 0.58) !important;
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.025),
    0 0 70px rgba(198, 51, 83, 0.28),
    0 34px 90px rgba(0, 0, 0, 0.42) !important;
  animation: imdi-logo-float 5.8s ease-in-out infinite !important;
}

.welcome-logo img {
  width: 42px !important;
  height: 42px !important;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28)) !important;
}

@keyframes imdi-logo-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.025);
  }
}

.welcome-kicker {
  display: block !important;
  margin: 0 0 12px !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}

.welcome-kicker::before {
  display: none !important;
}

.welcome h1 {
  max-width: 780px !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.96) !important;
  font-size: clamp(54px, 7vw, 104px) !important;
  font-weight: 680 !important;
  letter-spacing: -0.075em !important;
  line-height: 0.95 !important;
  text-align: center !important;
  text-shadow: 0 28px 80px rgba(0, 0, 0, 0.38) !important;
}

.welcome h1::after {
  display: none !important;
}

.welcome-copy {
  width: min(460px, 100%) !important;
  max-width: 460px !important;
  margin: 18px 0 0 !important;
  color: var(--imdi-muted) !important;
  font-size: 17px !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

.hero-cta {
  order: 5 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: auto !important;
  min-height: 44px !important;
  margin: 28px 0 0 !important;
  padding: 0 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.065) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 50px rgba(0, 0, 0, 0.2) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  backdrop-filter: blur(18px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
}

.suggestions {
  position: relative !important;
  z-index: 5 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: min(620px, 100%) !important;
  margin: 34px auto 0 !important;
}

.suggestion {
  min-height: 76px !important;
  padding: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    rgba(18, 18, 20, 0.56) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(22px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(140%) !important;
}

.suggestion:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.055)),
    rgba(22, 22, 24, 0.7) !important;
  transform: translateY(-2px) !important;
}

.suggestion-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 10px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  background: rgba(255, 255, 255, 0.075) !important;
}

.suggestion strong {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 14px !important;
}

.suggestion small {
  color: rgba(255, 255, 255, 0.44) !important;
  font-size: 12px !important;
}

.suggestion .arrow {
  color: rgba(255, 255, 255, 0.34) !important;
}

.message-list {
  width: min(820px, calc(100% - 56px)) !important;
  margin: 0 auto !important;
  padding: 94px 0 144px !important;
}

.message-row {
  max-width: 100% !important;
}

.message-row.user {
  justify-content: flex-end !important;
}

.message-row.assistant {
  justify-content: flex-start !important;
}

.message {
  max-width: min(680px, 86%) !important;
  border-radius: 24px !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.message.user {
  max-width: min(520px, 70%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.96) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18) !important;
}

.message.assistant {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  box-shadow: none !important;
}

.copy-button {
  color: rgba(255, 255, 255, 0.34) !important;
}

.composer-area {
  position: absolute !important;
  right: auto !important;
  bottom: max(20px, env(safe-area-inset-bottom)) !important;
  left: calc(50% + 126px) !important;
  z-index: 50 !important;
  width: min(680px, calc(100% - 330px)) !important;
  transform: translateX(-50%) !important;
}

.composer {
  min-height: 62px !important;
  padding: 8px 9px 8px 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.04)),
    rgba(13, 13, 15, 0.76) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 90px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(26px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(145%) !important;
}

.composer:focus-within {
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 4px rgba(198, 51, 83, 0.1),
    0 30px 100px rgba(0, 0, 0, 0.52) !important;
}

.composer textarea {
  min-height: 30px !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 15px !important;
}

.composer textarea::placeholder {
  color: rgba(255, 255, 255, 0.42) !important;
}

.response-style {
  color: rgba(255, 255, 255, 0.48) !important;
}

.send-button {
  width: 38px !important;
  height: 38px !important;
  color: rgba(20, 20, 20, 0.94) !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

.send-button:disabled {
  opacity: 0.34 !important;
}

.disclaimer {
  display: none !important;
}

.dialog-icon {
  background: rgba(198, 51, 83, 0.72) !important;
}

@media (max-width: 980px) {
  .sidebar {
    width: 270px !important;
  }

  .composer-area {
    left: 50% !important;
    width: min(680px, calc(100% - 42px)) !important;
  }

  .message-list {
    width: min(820px, calc(100% - 36px)) !important;
  }
}

@media (max-width: 760px) {
  .welcome {
    padding: 86px 20px 130px !important;
  }

  .welcome-logo {
    width: 66px !important;
    height: 66px !important;
    border-radius: 22px !important;
  }

  .welcome-logo img {
    width: 36px !important;
    height: 36px !important;
  }

  .welcome h1 {
    font-size: clamp(44px, 15vw, 70px) !important;
    letter-spacing: -0.065em !important;
  }

  .welcome-copy {
    font-size: 15px !important;
  }

  .suggestions {
    grid-template-columns: 1fr !important;
    width: min(360px, 100%) !important;
  }

  .suggestion {
    min-height: 64px !important;
  }

  .composer-area {
    width: calc(100% - 24px) !important;
  }

  .message.user {
    max-width: 84% !important;
  }
}

/* v20260701-13: layout bug fixes after visual QA. */
.welcome {
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  justify-content: flex-start !important;
  min-height: 100vh !important;
  padding-top: clamp(96px, 14vh, 132px) !important;
  padding-bottom: 148px !important;
}

.welcome-copyblock {
  transform: none !important;
}

.welcome-logo {
  margin-bottom: 18px !important;
}

.welcome h1 {
  font-size: clamp(52px, 6.2vw, 92px) !important;
  line-height: 0.96 !important;
}

.welcome-copy {
  display: block !important;
  width: min(460px, 100%) !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.suggestions {
  width: min(700px, 100%) !important;
  gap: 14px !important;
}

.suggestion {
  min-width: 0 !important;
}

.suggestion span:not(.suggestion-icon):not(.arrow) {
  min-width: 0 !important;
}

.suggestion strong,
.suggestion small {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.composer-area {
  bottom: max(22px, env(safe-area-inset-bottom)) !important;
}

.composer {
  min-height: 58px !important;
}

@media (max-height: 760px) and (min-width: 761px) {
  .welcome {
    padding-top: 58px !important;
    padding-bottom: 130px !important;
  }

  .welcome-logo {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 12px !important;
    border-radius: 20px !important;
  }

  .welcome-logo img {
    width: 34px !important;
    height: 34px !important;
  }

  .welcome h1 {
    font-size: clamp(48px, 5.4vw, 78px) !important;
  }

  .welcome-copy {
    margin-top: 12px !important;
    font-size: 15px !important;
  }

  .hero-cta {
    min-height: 40px !important;
    margin-top: 18px !important;
  }

  .suggestions {
    margin-top: 24px !important;
  }

  .suggestion {
    min-height: 66px !important;
    padding: 12px !important;
  }
}

@media (max-width: 760px) {
  .welcome {
    padding-top: 82px !important;
  }
}

/* v20260701-14: Codex/ChatGPT-inspired final direction. Calm, readable, product-first. */
:root {
  --final-bg: #141414;
  --final-panel: #171717;
  --final-panel-hover: #212121;
  --final-border: rgba(255, 255, 255, 0.1);
  --final-border-strong: rgba(255, 255, 255, 0.16);
  --final-text: #f4f4f4;
  --final-muted: rgba(244, 244, 244, 0.62);
  --final-faint: rgba(244, 244, 244, 0.38);
}

html,
body,
[data-theme="dark"] body {
  color: var(--final-text) !important;
  background: var(--final-bg) !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, system-ui, sans-serif !important;
}

body::before,
.ambient,
.main::before,
.main::after,
.hero-stage,
.trionn-hero,
.hero-abstract-mark,
.hero-info-card,
.hero-bottom-note {
  display: none !important;
}

.app-shell {
  background: var(--final-bg) !important;
}

.sidebar {
  width: 260px !important;
  padding: 10px !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: #171717 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.sidebar-window {
  height: 28px !important;
  margin: 0 0 6px !important;
}

.brand-row {
  height: 38px !important;
  margin-bottom: 8px !important;
}

.icon-button {
  width: 36px !important;
  height: 36px !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.icon-button:hover,
.sidebar-action:hover,
.menu-item:hover,
.history-item:hover {
  background: var(--final-panel-hover) !important;
}

.sidebar-search {
  height: 36px !important;
  margin-bottom: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  background: #202020 !important;
  box-shadow: none !important;
}

.sidebar-search input,
.sidebar-search input::placeholder {
  color: rgba(255, 255, 255, 0.58) !important;
}

.sidebar-menu {
  gap: 2px !important;
}

.menu-item {
  min-height: 38px !important;
  padding: 8px 10px !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: rgba(255, 255, 255, 0.86) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 620 !important;
}

.menu-item.active {
  background: #2a2a2a !important;
}

.brand-mark {
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

.brand-word {
  font-weight: 700 !important;
}

.history-block {
  margin-top: 22px !important;
}

.eyebrow {
  padding: 0 10px !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.empty-history {
  padding: 8px 10px !important;
  color: rgba(255, 255, 255, 0.52) !important;
  font-size: 13px !important;
}

.history-item,
.sidebar-action {
  min-height: 36px !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

.sidebar-footer {
  gap: 4px !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: transparent !important;
}

.status-card {
  min-height: 44px !important;
  margin-top: 8px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #2a2a2a !important;
  box-shadow: none !important;
}

.sidebar-profile {
  margin-top: 8px !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  color: rgba(255, 255, 255, 0.86) !important;
  background: transparent !important;
}

.main {
  background: #212121 !important;
  overflow: hidden !important;
}

.topbar {
  height: 52px !important;
  padding: 0 20px !important;
  border: 0 !important;
  background: transparent !important;
}

.privacy-chip {
  min-height: 32px !important;
  padding: 0 12px !important;
  border: 1px solid var(--final-border) !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.avatar {
  width: 32px !important;
  height: 32px !important;
  color: #171717 !important;
  background: #ececec !important;
}

.conversation {
  min-height: 100vh !important;
  padding: 0 !important;
  overflow: hidden auto !important;
}

.welcome {
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: flex !important;
  min-height: 100vh !important;
  padding: 96px 24px 150px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  transform: none !important;
}

.welcome-copyblock {
  width: min(760px, 100%) !important;
  margin: 0 auto !important;
}

.welcome-logo {
  width: 52px !important;
  height: 52px !important;
  margin-bottom: 18px !important;
  border: 0 !important;
  border-radius: 15px !important;
  background: linear-gradient(145deg, #d64562, #8f1836) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24) !important;
  animation: none !important;
}

.welcome-logo img {
  width: 30px !important;
  height: 30px !important;
  filter: none !important;
}

.welcome-kicker {
  margin: 0 0 10px !important;
  color: var(--final-faint) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.welcome h1 {
  margin: 0 !important;
  color: var(--final-text) !important;
  font-size: clamp(34px, 4.8vw, 54px) !important;
  font-weight: 650 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.06 !important;
  text-shadow: none !important;
}

.welcome-copy {
  margin: 14px auto 0 !important;
  max-width: 460px !important;
  color: var(--final-muted) !important;
  font-size: 15px !important;
}

.hero-cta {
  display: none !important;
}

.suggestions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: min(680px, 100%) !important;
  margin: 34px auto 0 !important;
}

.suggestion {
  min-height: 88px !important;
  padding: 14px !important;
  border: 1px solid var(--final-border) !important;
  border-radius: 16px !important;
  color: var(--final-text) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.suggestion:hover {
  border-color: var(--final-border-strong) !important;
  background: rgba(255, 255, 255, 0.075) !important;
  transform: none !important;
}

.suggestion-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
  color: rgba(255, 255, 255, 0.68) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.suggestion strong {
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.suggestion small {
  margin-top: 3px !important;
  color: rgba(255, 255, 255, 0.5) !important;
  white-space: normal !important;
}

.suggestion .arrow {
  color: rgba(255, 255, 255, 0.28) !important;
}

.message-list {
  width: min(760px, calc(100% - 40px)) !important;
  padding: 76px 0 132px !important;
}

.message-row {
  margin: 0 0 18px !important;
}

.message {
  border-radius: 18px !important;
  font-size: 15px !important;
  line-height: 1.58 !important;
}

.message.user {
  max-width: min(520px, 76%) !important;
  border: 0 !important;
  background: #2f2f2f !important;
  box-shadow: none !important;
}

.message.assistant {
  max-width: min(680px, 92%) !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.assistant-mini-mark {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.copy-button {
  margin-left: 42px !important;
  color: rgba(255, 255, 255, 0.4) !important;
}

.composer-area {
  position: absolute !important;
  left: calc(50% + 130px) !important;
  bottom: max(22px, env(safe-area-inset-bottom)) !important;
  width: min(760px, calc(100% - 330px)) !important;
  transform: translateX(-50%) !important;
}

.composer {
  min-height: 58px !important;
  padding: 9px 10px 9px 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 24px !important;
  background: #303030 !important;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.24) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.composer:focus-within {
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28) !important;
}

.composer textarea {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 15px !important;
}

.composer textarea::placeholder {
  color: rgba(255, 255, 255, 0.48) !important;
}

.response-style {
  color: rgba(255, 255, 255, 0.5) !important;
}

.send-button {
  width: 36px !important;
  height: 36px !important;
  color: #171717 !important;
  background: #ececec !important;
}

.dialog-close {
  color: rgba(255, 255, 255, 0.7) !important;
}

@media (max-height: 760px) and (min-width: 761px) {
  .welcome {
    padding-top: 68px !important;
  }

  .welcome-logo {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 12px !important;
  }

  .welcome-logo img {
    width: 26px !important;
    height: 26px !important;
  }

  .welcome h1 {
    font-size: clamp(32px, 4.3vw, 48px) !important;
  }

  .suggestions {
    margin-top: 24px !important;
  }
}

@media (max-width: 980px) {
  .composer-area {
    left: 50% !important;
    width: min(760px, calc(100% - 32px)) !important;
  }
}

@media (max-width: 760px) {
  .sidebar {
    width: min(86vw, 300px) !important;
  }

  .welcome {
    padding: 82px 18px 132px !important;
  }

  .suggestions {
    grid-template-columns: 1fr !important;
    width: min(420px, 100%) !important;
  }

  .suggestion {
    min-height: 68px !important;
  }

  .composer-area {
    width: calc(100% - 24px) !important;
  }
}

/* v20260701-16: final polish, remove decorative residue and improve card readability. */
html,
body,
[data-theme="dark"] body,
.app-shell,
.main,
.conversation {
  background: #212121 !important;
  background-image: none !important;
}

body::before,
body::after,
.main::before,
.main::after,
.conversation::before,
.conversation::after,
.welcome::before,
.welcome::after,
.hero-stage,
.hero-stage *,
.ambient,
.trionn-hero,
.trionn-particle,
.particle-one,
.particle-two,
.particle-three {
  display: none !important;
  opacity: 0 !important;
  content: none !important;
}

.welcome {
  padding-top: 78px !important;
}

.welcome-logo {
  width: 54px !important;
  height: 54px !important;
  margin-bottom: 14px !important;
}

.welcome h1 {
  font-size: clamp(36px, 4.5vw, 58px) !important;
}

.welcome-copy {
  margin-top: 10px !important;
}

.suggestions {
  grid-template-columns: repeat(3, minmax(200px, 1fr)) !important;
  width: min(760px, calc(100% - 24px)) !important;
  margin-top: 42px !important;
}

.suggestion {
  min-height: 92px !important;
  padding: 16px !important;
}

.suggestion strong,
.suggestion small {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.suggestion small {
  max-width: 150px !important;
  line-height: 1.25 !important;
}

.composer-area {
  width: min(760px, calc(100% - 340px)) !important;
}

.composer {
  min-height: 56px !important;
  border-radius: 18px !important;
}

@media (max-height: 760px) and (min-width: 761px) {
  .welcome {
    padding-top: 56px !important;
  }

  .suggestions {
    margin-top: 32px !important;
  }
}

@media (max-width: 980px) {
  .composer-area {
    width: min(760px, calc(100% - 32px)) !important;
  }
}

@media (max-width: 760px) {
  .suggestions {
    grid-template-columns: 1fr !important;
    width: min(420px, 100%) !important;
  }
}

/* v20260701-17: hide coarse inner scrollbar for a cleaner app surface. */
.conversation {
  scrollbar-width: none !important;
}

.conversation::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
}

.hidden {
  display: none !important;
}

/* v20260702-1: Codex-referenced product pass. More mature, quieter, and usable. */
:root,
[data-theme="dark"] {
  --product-bg: #0f0f0f;
  --product-main: #212121;
  --product-sidebar: #171717;
  --product-sidebar-soft: #202020;
  --product-card: #2f2f2f;
  --product-card-hover: #363636;
  --product-line: rgba(255, 255, 255, 0.1);
  --product-line-strong: rgba(255, 255, 255, 0.18);
  --product-text: #f4f4f4;
  --product-muted: #b4b4b4;
  --product-faint: #7d7d7d;
  --product-red: #c92342;
}

html,
body,
[data-theme="dark"] body {
  background: var(--product-main) !important;
  color: var(--product-text) !important;
}

body {
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif !important;
}

.app-shell {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  height: 100dvh !important;
  background: var(--product-main) !important;
}

.sidebar {
  position: relative !important;
  width: 260px !important;
  min-width: 260px !important;
  height: 100dvh !important;
  padding: 10px 8px !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: var(--product-sidebar) !important;
  box-shadow: none !important;
}

.sidebar-window {
  display: flex !important;
  gap: 8px !important;
  height: 22px !important;
  padding: 3px 6px 0 !important;
}

.sidebar-window span {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
}

.sidebar-window span:nth-child(1) {
  background: #ff5f57 !important;
}

.sidebar-window span:nth-child(2) {
  background: #ffbd2e !important;
}

.sidebar-window span:nth-child(3) {
  background: #28c840 !important;
}

.brand-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 34px !important;
  margin-bottom: 8px !important;
}

.icon-button {
  width: 32px !important;
  height: 32px !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  background: transparent !important;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.sidebar-search {
  height: 34px !important;
  margin: 8px 0 10px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  background: #202020 !important;
  color: var(--product-muted) !important;
}

.sidebar-search input {
  color: var(--product-text) !important;
}

.sidebar-search input::placeholder {
  color: #8a8a8a !important;
}

.sidebar-menu {
  display: grid !important;
  gap: 2px !important;
}

.menu-item,
.history-item,
.sidebar-action {
  min-height: 36px !important;
  border-radius: 8px !important;
  color: #f1f1f1 !important;
  background: transparent !important;
  font-weight: 600 !important;
}

.menu-item {
  padding: 0 12px !important;
  gap: 12px !important;
}

.menu-item.active,
.menu-item:hover,
.history-item.active,
.history-item:hover,
.sidebar-action:hover {
  background: #2a2a2a !important;
}

.brand-mark {
  width: 22px !important;
  height: 22px !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

.history-block {
  margin-top: 24px !important;
}

.eyebrow {
  margin: 0 12px 8px !important;
  color: #f1f1f1 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.empty-history {
  margin: 8px 12px !important;
  color: #9a9a9a !important;
}

.history-item {
  justify-content: flex-start !important;
  padding: 0 12px !important;
  color: #d8d8d8 !important;
  font-weight: 500 !important;
  text-align: left !important;
}

.history-delete {
  opacity: 0 !important;
}

.history-entry:hover .history-delete {
  opacity: 0.68 !important;
}

.sidebar-footer {
  gap: 6px !important;
  padding: 0 4px 8px !important;
}

.status-card {
  min-height: 52px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  background: #2a2a2a !important;
  color: #f2f2f2 !important;
}

.status-card span {
  color: #a7a7a7 !important;
}

.sidebar-profile {
  height: 44px !important;
  margin-top: 6px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  background: transparent !important;
}

.profile-avatar {
  width: 26px !important;
  height: 26px !important;
  background: #12b89b !important;
}

.main {
  position: relative !important;
  min-width: 0 !important;
  height: 100dvh !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.045), transparent 34%),
    var(--product-main) !important;
}

.topbar {
  height: 56px !important;
  padding: 0 24px !important;
  border-bottom: 0 !important;
  background: transparent !important;
}

.privacy-chip {
  display: none !important;
}

.avatar {
  width: 32px !important;
  height: 32px !important;
  color: #202020 !important;
  background: #ececec !important;
  box-shadow: none !important;
}

.conversation {
  height: calc(100dvh - 56px) !important;
  padding-bottom: 126px !important;
  overflow-y: auto !important;
  background: transparent !important;
}

.welcome {
  min-height: calc(100dvh - 190px) !important;
  padding: clamp(72px, 12vh, 132px) 28px 120px !important;
  justify-content: flex-start !important;
}

.welcome-copyblock {
  width: min(860px, 100%) !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.welcome-logo {
  width: 62px !important;
  height: 62px !important;
  margin-bottom: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, #d73555, #8c142b) !important;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.28),
    0 0 0 8px rgba(255, 255, 255, 0.025) !important;
}

.welcome-logo img {
  width: 36px !important;
  height: 36px !important;
}

.welcome-kicker {
  margin: 0 0 12px !important;
  color: #a7a7a7 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
}

.welcome h1 {
  margin: 0 !important;
  color: #f4f4f4 !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: clamp(40px, 6vw, 76px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.06em !important;
  line-height: 0.95 !important;
}

.hero-cta {
  display: none !important;
}

.welcome-copy {
  margin: 16px auto 0 !important;
  color: #a9a9a9 !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

.suggestions {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: min(780px, calc(100% - 32px)) !important;
  margin: 44px auto 0 !important;
  gap: 12px !important;
}

.suggestion {
  min-height: 104px !important;
  align-items: flex-start !important;
  padding: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
  background: #2b2b2b !important;
  color: #f4f4f4 !important;
  box-shadow: none !important;
  transform: none !important;
}

.suggestion:hover {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: #333 !important;
}

.suggestion-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 9px !important;
  color: #e9e9e9 !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.suggestion strong {
  color: #f4f4f4 !important;
  font-size: 15px !important;
  letter-spacing: -0.01em !important;
}

.suggestion small {
  max-width: none !important;
  margin-top: 5px !important;
  color: #9c9c9c !important;
  font-size: 13px !important;
}

.suggestion .arrow {
  color: #8d8d8d !important;
}

.hero-info-card,
.hero-bottom-note {
  display: none !important;
}

.message-list {
  width: min(820px, calc(100% - 56px)) !important;
  min-height: 100% !important;
  margin: 0 auto !important;
  padding: 34px 0 132px !important;
}

.message-row {
  display: flex !important;
  flex-direction: column !important;
  margin: 0 0 22px !important;
}

.message-row.user {
  align-items: flex-end !important;
}

.message-row.assistant {
  align-items: flex-start !important;
}

.message {
  color: #ececec !important;
  font-size: 15px !important;
  line-height: 1.62 !important;
}

.message p {
  margin: 0 0 10px !important;
}

.message p:last-child {
  margin-bottom: 0 !important;
}

.message.user {
  max-width: min(520px, 72%) !important;
  padding: 10px 14px !important;
  border-radius: 18px !important;
  background: #2f2f2f !important;
}

.message.assistant {
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr) !important;
  gap: 14px !important;
  width: min(720px, 100%) !important;
  max-width: min(720px, 96%) !important;
  padding: 4px 0 !important;
  color: #f1f1f1 !important;
  background: transparent !important;
}

.message.assistant p {
  grid-column: 2 !important;
  min-width: 0 !important;
}

.assistant-mini-mark {
  width: 30px !important;
  height: 30px !important;
  margin-top: 2px !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #d73555, #9e1831) !important;
}

.assistant-mini-mark img {
  width: 18px !important;
  height: 18px !important;
}

.copy-button {
  margin: 4px 0 0 46px !important;
  color: #858585 !important;
  font-size: 12px !important;
  background: transparent !important;
}

.composer-area {
  left: calc(260px + (100vw - 260px) / 2) !important;
  bottom: 22px !important;
  width: min(780px, calc(100vw - 330px)) !important;
  transform: translateX(-50%) !important;
}

.composer {
  min-height: 60px !important;
  padding: 10px 10px 10px 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 20px !important;
  background: #303030 !important;
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.composer:focus-within {
  border-color: rgba(255, 255, 255, 0.26) !important;
  box-shadow:
    0 24px 78px rgba(0, 0, 0, 0.42),
    0 0 0 3px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.composer textarea {
  min-height: 24px !important;
  color: #f4f4f4 !important;
  caret-color: #fff !important;
}

.composer textarea::placeholder {
  color: #8e8e8e !important;
}

.composer-bottom {
  align-items: center !important;
}

.response-style {
  height: 28px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  color: #a9a9a9 !important;
  background: transparent !important;
}

.response-style:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

.send-button {
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
  color: #181818 !important;
  background: #f1f1f1 !important;
}

.send-button:disabled {
  color: #777 !important;
  background: #4a4a4a !important;
}

.disclaimer {
  display: none !important;
}

.settings-dialog {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 24px !important;
  background: #242424 !important;
  color: #f4f4f4 !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45) !important;
}

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

  .sidebar {
    position: fixed !important;
    z-index: 30 !important;
    transform: translateX(-102%) !important;
    transition: transform 180ms ease !important;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0) !important;
  }

  .composer-area {
    left: 50% !important;
    width: min(760px, calc(100% - 28px)) !important;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 0 12px !important;
  }

  .welcome {
    padding: 68px 18px 124px !important;
  }

  .welcome h1 {
    font-size: clamp(38px, 13vw, 56px) !important;
  }

  .suggestions {
    grid-template-columns: 1fr !important;
    width: min(430px, 100%) !important;
    margin-top: 32px !important;
  }

  .suggestion {
    min-height: 82px !important;
  }

  .message-list {
    width: calc(100% - 28px) !important;
  }

  .message.user {
    max-width: 84% !important;
  }

  .message.assistant {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* v20260702-4: Original imdi cube hero. Inspired by premium landing pages, not copied. */
.main {
  background:
    radial-gradient(circle at 72% 22%, rgba(185, 28, 52, 0.2), transparent 26%),
    radial-gradient(circle at 42% 74%, rgba(255, 255, 255, 0.05), transparent 32%),
    linear-gradient(135deg, #090909 0%, #151515 44%, #080808 100%) !important;
}

.main::before {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  content: "" !important;
  opacity: 0.9 !important;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.07), transparent 18%) !important;
  background-size: 74px 74px, 74px 74px, 100% 100% !important;
  mask-image: radial-gradient(circle at 56% 43%, black 0 48%, transparent 84%) !important;
}

.conversation,
.topbar,
.composer-area {
  position: relative !important;
  z-index: 2 !important;
}

.welcome {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.78fr) !important;
  grid-template-areas:
    "copy cube"
    "cards cube" !important;
  align-items: center !important;
  min-height: calc(100dvh - 150px) !important;
  width: min(1240px, calc(100% - 64px)) !important;
  margin: 0 auto !important;
  padding: clamp(50px, 8vh, 92px) 0 132px !important;
  column-gap: clamp(28px, 5vw, 82px) !important;
}

.hero-stage,
.hero-stage * {
  display: block !important;
  opacity: 1 !important;
}

.hero-stage {
  grid-area: cube !important;
  position: relative !important;
  z-index: 1 !important;
  width: min(460px, 100%) !important;
  height: min(460px, 42vw) !important;
  min-height: 320px !important;
  justify-self: center !important;
  overflow: visible !important;
  pointer-events: none !important;
  perspective: 1000px !important;
  transform: translateY(-10px) !important;
}

.hero-stage > .hero-orbit,
.hero-stage > .hero-shine {
  display: none !important;
  opacity: 0 !important;
}

.welcome-copyblock {
  grid-area: copy !important;
  position: relative !important;
  z-index: 2 !important;
  width: min(680px, 100%) !important;
  margin: 0 !important;
  text-align: left !important;
}

.welcome-logo {
  display: inline-grid !important;
  place-items: center !important;
  width: 58px !important;
  height: 58px !important;
  margin: 0 0 22px !important;
}

.welcome-kicker {
  margin-bottom: 14px !important;
  color: #d8d8d8 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
}

.welcome h1 {
  max-width: 680px !important;
  color: #efefef !important;
  font-size: clamp(58px, 7.5vw, 116px) !important;
  font-weight: 700 !important;
  line-height: 0.88 !important;
  letter-spacing: -0.085em !important;
}

.welcome h1::after {
  display: inline-block !important;
  width: 0.18em !important;
  height: 0.18em !important;
  margin-left: 0.06em !important;
  border-radius: 50% !important;
  background: #f3f3f3 !important;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.72) !important;
  content: "" !important;
  vertical-align: baseline !important;
  animation: imdi-pulse-dot 1.9s ease-in-out infinite !important;
}

.welcome-copy {
  max-width: 460px !important;
  margin: 24px 0 0 !important;
  color: #a9a9a9 !important;
}

.suggestions {
  grid-area: cards !important;
  position: relative !important;
  z-index: 2 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: min(680px, 100%) !important;
  margin: 34px 0 0 !important;
  gap: 10px !important;
}

.suggestion {
  min-height: 96px !important;
  border-color: rgba(255, 255, 255, 0.11) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.035) !important;
  backdrop-filter: blur(18px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(130%) !important;
}

.suggestion:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.03)),
    rgba(201, 35, 66, 0.08) !important;
  transform: translateY(-2px) !important;
}

.imdi-cube-wrap {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  transform-style: preserve-3d !important;
}

.imdi-cube-wrap::before {
  position: absolute !important;
  width: min(440px, 92%) !important;
  aspect-ratio: 1 !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 12%),
    radial-gradient(circle, rgba(201, 35, 66, 0.42), transparent 54%) !important;
  filter: blur(18px) !important;
  opacity: 0.86 !important;
  content: "" !important;
  animation: imdi-cube-glow 5.8s ease-in-out infinite !important;
}

.imdi-cube-wrap::after {
  position: absolute !important;
  bottom: 12% !important;
  width: min(360px, 76%) !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: radial-gradient(ellipse, rgba(201, 35, 66, 0.36), transparent 68%) !important;
  filter: blur(16px) !important;
  content: "" !important;
}

.imdi-cube {
  position: relative !important;
  z-index: 3 !important;
  width: clamp(142px, 18vw, 214px) !important;
  height: clamp(142px, 18vw, 214px) !important;
  transform-style: preserve-3d !important;
  transform: rotateX(-18deg) rotateY(36deg) rotateZ(4deg) !important;
  animation: imdi-cube-spin 10s cubic-bezier(0.45, 0, 0.2, 1) infinite alternate !important;
}

.cube-face {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.03) 34%, rgba(201, 35, 66, 0.18)),
    rgba(10, 10, 10, 0.78) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 26px 64px rgba(255, 255, 255, 0.045),
    0 24px 74px rgba(0, 0, 0, 0.38) !important;
  backface-visibility: visible !important;
}

.cube-front {
  transform: translateZ(clamp(71px, 9vw, 107px)) !important;
}

.cube-back {
  transform: rotateY(180deg) translateZ(clamp(71px, 9vw, 107px)) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(201, 35, 66, 0.2)),
    rgba(7, 7, 7, 0.82) !important;
}

.cube-right {
  transform: rotateY(90deg) translateZ(clamp(71px, 9vw, 107px)) !important;
}

.cube-left {
  transform: rotateY(-90deg) translateZ(clamp(71px, 9vw, 107px)) !important;
}

.cube-top {
  transform: rotateX(90deg) translateZ(clamp(71px, 9vw, 107px)) !important;
}

.cube-bottom {
  transform: rotateX(-90deg) translateZ(clamp(71px, 9vw, 107px)) !important;
}

.cube-front img {
  width: 58px !important;
  height: 58px !important;
  padding: 10px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #d73555, #87162b) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 20px 55px rgba(201, 35, 66, 0.4) !important;
}

.cube-orbit {
  position: absolute !important;
  z-index: 2 !important;
  width: min(420px, 88%) !important;
  height: min(142px, 30%) !important;
  border: 1px solid rgba(201, 35, 66, 0.3) !important;
  border-left-color: transparent !important;
  border-right-color: transparent !important;
  border-radius: 50% !important;
  filter: drop-shadow(0 0 10px rgba(201, 35, 66, 0.35)) !important;
}

.cube-orbit-a {
  transform: rotateX(66deg) rotateZ(-17deg) !important;
  animation: imdi-orbit-drift 7s ease-in-out infinite !important;
}

.cube-orbit-b {
  width: min(520px, 104%) !important;
  transform: rotateX(72deg) rotateZ(21deg) !important;
  opacity: 0.58 !important;
  animation: imdi-orbit-drift 8.5s ease-in-out -1.5s infinite reverse !important;
}

.cube-beam {
  position: absolute !important;
  z-index: 1 !important;
  width: 1px !important;
  height: min(520px, 116%) !important;
  background: linear-gradient(180deg, transparent, rgba(201, 35, 66, 0.42), transparent) !important;
  transform-origin: center !important;
}

.beam-a {
  transform: rotate(58deg) translateX(-18px) !important;
}

.beam-b {
  transform: rotate(-62deg) translateX(44px) !important;
  opacity: 0.54 !important;
}

.beam-c {
  transform: rotate(88deg) translateX(-26px) !important;
  opacity: 0.38 !important;
}

@keyframes imdi-cube-spin {
  0% {
    transform: rotateX(-18deg) rotateY(28deg) rotateZ(4deg) translateY(0);
  }
  100% {
    transform: rotateX(-8deg) rotateY(128deg) rotateZ(-6deg) translateY(-8px);
  }
}

@keyframes imdi-cube-glow {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.62;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.92;
  }
}

@keyframes imdi-orbit-drift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

@keyframes imdi-pulse-dot {
  0%,
  100% {
    transform: scale(0.82);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .welcome {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "cube"
      "copy"
      "cards" !important;
    justify-items: center !important;
    width: min(760px, calc(100% - 32px)) !important;
    padding-top: 34px !important;
    row-gap: 22px !important;
  }

  .hero-stage {
    width: min(360px, 92vw) !important;
    height: 300px !important;
    min-height: 280px !important;
    transform: none !important;
  }

  .welcome-copyblock {
    text-align: center !important;
  }

  .welcome-logo {
    display: none !important;
  }

  .welcome-copy {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .suggestions {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 760px) {
  .welcome {
    padding: 22px 0 126px !important;
  }

  .hero-stage {
    height: 248px !important;
    min-height: 248px !important;
  }

  .welcome h1 {
    font-size: clamp(42px, 13.5vw, 64px) !important;
    letter-spacing: -0.075em !important;
  }

  .suggestions {
    grid-template-columns: 1fr !important;
  }

  .imdi-cube {
    width: 126px !important;
    height: 126px !important;
  }

  .cube-front {
    transform: translateZ(63px) !important;
  }

  .cube-back {
    transform: rotateY(180deg) translateZ(63px) !important;
  }

  .cube-right {
    transform: rotateY(90deg) translateZ(63px) !important;
  }

  .cube-left {
    transform: rotateY(-90deg) translateZ(63px) !important;
  }

  .cube-top {
    transform: rotateX(90deg) translateZ(63px) !important;
  }

  .cube-bottom {
    transform: rotateX(-90deg) translateZ(63px) !important;
  }
}

/* v20260702-5: Clean premium direction. No copied site code; original imdi motion system. */
:root {
  color-scheme: dark !important;
  --imdi-bg: #050505;
  --imdi-panel: rgba(18, 18, 18, 0.78);
  --imdi-line: rgba(255, 255, 255, 0.095);
  --imdi-line-strong: rgba(255, 255, 255, 0.18);
  --imdi-text: #f3f3f0;
  --imdi-muted: rgba(243, 243, 240, 0.62);
  --imdi-red: #d82245;
  --imdi-red-soft: rgba(216, 34, 69, 0.42);
}

html,
body {
  background: var(--imdi-bg) !important;
  color: var(--imdi-text) !important;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    Inter,
    "Helvetica Neue",
    Arial,
    sans-serif !important;
  text-rendering: geometricPrecision !important;
}

.app-shell {
  min-height: 100dvh !important;
  background: var(--imdi-bg) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.sidebar {
  width: 252px !important;
  background:
    linear-gradient(180deg, rgba(28, 28, 28, 0.92), rgba(18, 18, 18, 0.96)),
    #111 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.11) !important;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.035) !important;
}

.sidebar-search {
  height: 38px !important;
  margin: 8px 12px 12px !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.sidebar-search input,
.sidebar-search input::placeholder {
  color: rgba(245, 245, 242, 0.72) !important;
}

.menu-item,
.sidebar-action,
.history-item {
  border-radius: 9px !important;
  color: rgba(245, 245, 242, 0.88) !important;
}

.menu-item.active,
.history-item.active,
.menu-item:hover,
.sidebar-action:hover {
  background: rgba(255, 255, 255, 0.085) !important;
  color: #fff !important;
}

.history-block .eyebrow {
  color: rgba(245, 245, 242, 0.78) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.empty-history {
  color: rgba(245, 245, 242, 0.54) !important;
}

.status-card {
  display: none !important;
}

.sidebar-profile {
  margin-top: auto !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.main {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 78% 18%, rgba(73, 124, 168, 0.18), transparent 28%),
    radial-gradient(circle at 70% 75%, rgba(216, 34, 69, 0.11), transparent 34%),
    linear-gradient(120deg, #050505 0%, #0b0b0b 48%, #060606 100%) !important;
}

.main::before {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  pointer-events: none !important;
  content: "" !important;
  opacity: 0.85 !important;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(118deg, transparent 0 49%, rgba(255, 255, 255, 0.045) 50%, transparent 51% 100%) !important;
  background-size: 72px 72px, 72px 72px, 100% 100% !important;
  mask-image: radial-gradient(circle at 60% 46%, #000 0 54%, transparent 86%) !important;
}

.main::after {
  position: absolute !important;
  inset: -20% -12% auto auto !important;
  z-index: 0 !important;
  width: 72vw !important;
  height: 42vh !important;
  pointer-events: none !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), rgba(216, 34, 69, 0.15), transparent) !important;
  filter: blur(34px) !important;
  opacity: 0.62 !important;
  transform: rotate(-10deg) !important;
  content: "" !important;
}

.topbar,
.conversation,
.composer-area {
  position: relative !important;
  z-index: 2 !important;
}

.topbar {
  height: 64px !important;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.64), rgba(8, 8, 8, 0)) !important;
}

.privacy-chip,
.avatar {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.conversation {
  height: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  background: transparent !important;
}

.conversation::-webkit-scrollbar {
  width: 8px !important;
}

.conversation::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16) !important;
  border-radius: 999px !important;
}

.welcome {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(420px, 0.92fr) minmax(360px, 0.9fr) !important;
  grid-template-areas:
    "copy stage"
    "cards stage" !important;
  align-items: center !important;
  width: min(1340px, calc(100% - 76px)) !important;
  min-height: calc(100dvh - 118px) !important;
  margin: 0 auto !important;
  padding: clamp(58px, 8vh, 108px) 0 142px !important;
  gap: clamp(30px, 5vw, 92px) !important;
}

.welcome-copyblock {
  grid-area: copy !important;
  width: min(720px, 100%) !important;
  margin: 0 !important;
  text-align: left !important;
}

.welcome-logo {
  display: inline-grid !important;
  place-items: center !important;
  width: 52px !important;
  height: 52px !important;
  margin: 0 0 22px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 18px 52px rgba(216, 34, 69, 0.22) !important;
}

.welcome-logo img {
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
}

.welcome-kicker {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 0 0 18px !important;
  color: rgba(245, 245, 242, 0.76) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.34em !important;
  text-transform: uppercase !important;
}

.welcome-kicker::before {
  width: 68px !important;
  height: 1px !important;
  background: rgba(245, 245, 242, 0.52) !important;
  content: "" !important;
}

.welcome h1 {
  max-width: 720px !important;
  color: var(--imdi-text) !important;
  font-size: clamp(76px, 7.9vw, 138px) !important;
  font-weight: 760 !important;
  line-height: 0.86 !important;
  letter-spacing: -0.085em !important;
  text-wrap: balance !important;
  text-shadow: none !important;
}

.welcome h1::after {
  display: inline-block !important;
  width: 0.16em !important;
  height: 0.16em !important;
  margin-left: 0.05em !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.86) !important;
  content: "" !important;
  animation: imdi-premium-dot 2.2s ease-in-out infinite !important;
}

.welcome-copy {
  max-width: 500px !important;
  margin: 26px 0 0 !important;
  color: rgba(245, 245, 242, 0.66) !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
}

.hero-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 28px !important;
  color: rgba(245, 245, 242, 0.86) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
}

.hero-cta::after {
  display: block !important;
  width: 152px !important;
  height: 1px !important;
  background: rgba(245, 245, 242, 0.58) !important;
  content: "" !important;
}

.suggestions {
  grid-area: cards !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: min(720px, 100%) !important;
  margin: 34px 0 0 !important;
  gap: 12px !important;
}

.suggestion {
  min-height: 94px !important;
  padding: 18px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 20px 60px rgba(0, 0, 0, 0.24) !important;
  color: #f4f4f2 !important;
  backdrop-filter: blur(22px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(130%) !important;
}

.suggestion strong {
  color: #fff !important;
  font-weight: 760 !important;
}

.suggestion small {
  color: rgba(245, 245, 242, 0.52) !important;
}

.suggestion:hover {
  border-color: rgba(255, 255, 255, 0.22) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(216, 34, 69, 0.08) !important;
  transform: translateY(-3px) !important;
}

.hero-stage {
  grid-area: stage !important;
  position: relative !important;
  width: min(620px, 100%) !important;
  height: min(620px, 52vw) !important;
  min-height: 430px !important;
  justify-self: center !important;
  overflow: visible !important;
  pointer-events: none !important;
  perspective: 1100px !important;
  transform: translateY(-2vh) !important;
}

.hero-canvas {
  position: absolute !important;
  inset: -12% -10% !important;
  z-index: 1 !important;
  width: 120% !important;
  height: 124% !important;
  opacity: 0.8 !important;
  mix-blend-mode: screen !important;
}

.signal-sculpture {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: grid !important;
  place-items: center !important;
  transform-style: preserve-3d !important;
  animation: imdi-stage-float 7s ease-in-out infinite !important;
}

.signal-glass {
  position: absolute !important;
  width: min(340px, 58%) !important;
  height: min(430px, 72%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 42px !important;
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.13), transparent 34%),
    linear-gradient(220deg, rgba(216, 34, 69, 0.18), rgba(255, 255, 255, 0.025) 48%, rgba(5, 5, 5, 0.44)),
    rgba(8, 8, 8, 0.46) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset -28px -48px 120px rgba(0, 0, 0, 0.48),
    0 40px 130px rgba(0, 0, 0, 0.36),
    0 0 92px rgba(216, 34, 69, 0.18) !important;
  backdrop-filter: blur(12px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
  transform: rotateX(58deg) rotateZ(-24deg) translate3d(34px, 12px, -80px) !important;
}

.signal-core {
  position: relative !important;
  z-index: 4 !important;
  display: grid !important;
  place-items: center !important;
  width: clamp(118px, 13vw, 164px) !important;
  height: clamp(118px, 13vw, 164px) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 38px !important;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.32), transparent 26%),
    linear-gradient(145deg, #d82948, #72111f 72%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -24px 60px rgba(0, 0, 0, 0.28),
    0 0 0 12px rgba(255, 255, 255, 0.025),
    0 0 62px rgba(216, 34, 69, 0.46),
    0 34px 92px rgba(0, 0, 0, 0.42) !important;
  transform: rotateX(12deg) rotateY(-18deg) rotateZ(-7deg) !important;
  animation: imdi-core-breathe 4.8s ease-in-out infinite !important;
}

.signal-core img {
  width: 72% !important;
  height: 72% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28)) !important;
}

.signal-ring {
  position: absolute !important;
  z-index: 2 !important;
  width: 82% !important;
  height: 28% !important;
  border: 1px solid rgba(216, 34, 69, 0.34) !important;
  border-left-color: rgba(255, 255, 255, 0.16) !important;
  border-right-color: transparent !important;
  border-radius: 50% !important;
  filter: drop-shadow(0 0 16px rgba(216, 34, 69, 0.24)) !important;
}

.ring-one {
  transform: rotateX(68deg) rotateZ(-18deg) translateY(-24px) !important;
  animation: imdi-orbit-slow 10s ease-in-out infinite !important;
}

.ring-two {
  width: 106% !important;
  height: 33% !important;
  opacity: 0.62 !important;
  transform: rotateX(73deg) rotateZ(21deg) translateY(28px) !important;
  animation: imdi-orbit-slow 13s ease-in-out -2s infinite reverse !important;
}

.ring-three {
  width: 72% !important;
  height: 21% !important;
  opacity: 0.46 !important;
  transform: rotateX(74deg) rotateZ(5deg) translateY(86px) !important;
}

.signal-rail {
  position: absolute !important;
  z-index: 1 !important;
  width: 136% !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), rgba(216, 34, 69, 0.32), transparent) !important;
  transform-origin: center !important;
}

.rail-one {
  transform: rotate(-18deg) translateY(-110px) !important;
}

.rail-two {
  opacity: 0.68 !important;
  transform: rotate(24deg) translateY(82px) !important;
}

.rail-three {
  opacity: 0.38 !important;
  transform: rotate(-42deg) translateY(10px) !important;
}

.signal-dot {
  position: absolute !important;
  z-index: 3 !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #ff3b5d !important;
  box-shadow: 0 0 22px rgba(255, 59, 93, 0.88) !important;
  animation: imdi-premium-dot 2.6s ease-in-out infinite !important;
}

.dot-one {
  top: 24% !important;
  right: 15% !important;
}

.dot-two {
  left: 15% !important;
  bottom: 30% !important;
  animation-delay: -0.7s !important;
}

.dot-three {
  right: 34% !important;
  bottom: 18% !important;
  animation-delay: -1.4s !important;
}

.hero-info-card,
.hero-bottom-note {
  display: none !important;
}

.message-list {
  width: min(840px, calc(100% - 40px)) !important;
  margin: 0 auto !important;
  padding: 82px 0 172px !important;
}

.message-row {
  display: flex !important;
  width: 100% !important;
  margin: 16px 0 !important;
}

.message-row.user {
  justify-content: flex-end !important;
}

.message-row.assistant {
  justify-content: flex-start !important;
}

.message {
  width: fit-content !important;
  max-width: min(650px, 78%) !important;
  color: rgba(245, 245, 242, 0.92) !important;
  font-size: 15.5px !important;
  line-height: 1.55 !important;
}

.message.user {
  padding: 13px 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px 20px 6px 20px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22) !important;
}

.message.assistant {
  padding: 13px 16px 13px 13px !important;
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-radius: 20px 20px 20px 6px !important;
  background: rgba(255, 255, 255, 0.035) !important;
}

.message p {
  margin: 0 !important;
}

.message p + p {
  margin-top: 10px !important;
}

.assistant-mini-mark {
  float: left !important;
  width: 30px !important;
  height: 30px !important;
  margin: 0 12px 0 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(145deg, #d82a49, #801526) !important;
  box-shadow: 0 10px 28px rgba(216, 34, 69, 0.28) !important;
}

.assistant-mini-mark img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.copy-button {
  margin: 8px 0 0 58px !important;
  color: rgba(245, 245, 242, 0.42) !important;
}

.composer-area {
  position: fixed !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 252px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 22px 22px !important;
  pointer-events: none !important;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 5, 0.84) 74%) !important;
}

.composer {
  width: min(680px, calc(100vw - 316px)) !important;
  min-height: 74px !important;
  pointer-events: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 23px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    rgba(15, 15, 15, 0.76) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 20px 70px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(216, 34, 69, 0.08) !important;
  backdrop-filter: blur(28px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(140%) !important;
}

.composer:focus-within {
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 22px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(216, 34, 69, 0.18) !important;
}

.composer textarea {
  min-height: 30px !important;
  color: #fff !important;
  font-size: 15.5px !important;
}

.composer textarea::placeholder {
  color: rgba(245, 245, 242, 0.42) !important;
}

.response-style {
  color: rgba(245, 245, 242, 0.48) !important;
}

.send-button {
  background: rgba(255, 255, 255, 0.11) !important;
  color: #fff !important;
}

.send-button:not(:disabled) {
  background: linear-gradient(145deg, #f04261, #a9132d) !important;
}

.disclaimer {
  display: none !important;
}

@keyframes imdi-stage-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotateZ(0deg);
  }
  50% {
    transform: translate3d(0, -16px, 0) rotateZ(1deg);
  }
}

@keyframes imdi-core-breathe {
  0%,
  100% {
    transform: rotateX(12deg) rotateY(-18deg) rotateZ(-7deg) scale(0.98);
  }
  50% {
    transform: rotateX(15deg) rotateY(-10deg) rotateZ(-4deg) scale(1.03);
  }
}

@keyframes imdi-orbit-slow {
  0%,
  100% {
    opacity: 0.42;
    translate: 0 0;
  }
  50% {
    opacity: 0.76;
    translate: 0 -18px;
  }
}

@keyframes imdi-premium-dot {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (max-width: 1180px) {
  .welcome {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "stage"
      "copy"
      "cards" !important;
    width: min(760px, calc(100% - 36px)) !important;
    justify-items: center !important;
    text-align: center !important;
    padding-top: 36px !important;
  }

  .welcome-copyblock {
    text-align: center !important;
  }

  .welcome-kicker {
    justify-content: center !important;
  }

  .welcome-kicker::before {
    display: none !important;
  }

  .welcome h1,
  .welcome-copy {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-stage {
    width: min(420px, 90vw) !important;
    height: 360px !important;
    min-height: 340px !important;
    transform: none !important;
  }
}

@media (max-width: 760px) {
  .sidebar {
    width: min(286px, 86vw) !important;
  }

  .welcome {
    width: min(calc(100% - 28px), 560px) !important;
    min-height: calc(100dvh - 88px) !important;
    padding: 18px 0 126px !important;
  }

  .hero-stage {
    height: 278px !important;
    min-height: 278px !important;
  }

  .signal-core {
    width: 112px !important;
    height: 112px !important;
    border-radius: 30px !important;
  }

  .welcome-logo {
    display: none !important;
  }

  .welcome h1 {
    font-size: clamp(50px, 15vw, 74px) !important;
    letter-spacing: -0.075em !important;
  }

  .welcome-copy {
    font-size: 15.5px !important;
  }

  .suggestions {
    grid-template-columns: 1fr !important;
  }

  .composer-area {
    left: 0 !important;
    padding: 0 12px 14px !important;
  }

  .composer {
    width: min(100%, 620px) !important;
  }

  .message-list {
    width: calc(100% - 24px) !important;
    padding-top: 28px !important;
  }

  .message {
    max-width: 88% !important;
  }
}

@media (max-width: 980px) {
  .app-shell {
    display: block !important;
    grid-template-columns: 1fr !important;
  }

  .sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 30 !important;
    width: min(310px, calc(100vw - 54px)) !important;
    transform: translateX(-105%) !important;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  body.sidebar-open .sidebar,
  .sidebar-open .sidebar {
    transform: translateX(0) !important;
  }

  .sidebar-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 20 !important;
    display: block !important;
    visibility: hidden !important;
    background: rgba(0, 0, 0, 0.44) !important;
    opacity: 0 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  body.sidebar-open .sidebar-backdrop,
  .sidebar-open .sidebar-backdrop {
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-only,
  .sidebar-close {
    display: grid !important;
  }

  .mobile-brand {
    display: flex !important;
  }

  .topbar {
    height: 62px !important;
    padding: 0 18px !important;
  }

  .welcome {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "copy"
      "stage"
      "cards" !important;
    width: min(720px, calc(100% - 36px)) !important;
    min-height: auto !important;
    padding: 34px 0 138px !important;
    gap: 22px !important;
    justify-items: center !important;
  }

  .welcome-copyblock {
    text-align: center !important;
  }

  .welcome-logo {
    width: 46px !important;
    height: 46px !important;
    margin-bottom: 16px !important;
  }

  .welcome-logo img {
    width: 32px !important;
    height: 32px !important;
  }

  .welcome-kicker {
    justify-content: center !important;
    margin-bottom: 14px !important;
    font-size: 11px !important;
  }

  .welcome-kicker::before {
    display: none !important;
  }

  .welcome h1 {
    max-width: 680px !important;
    font-size: clamp(50px, 10.6vw, 84px) !important;
    line-height: 0.9 !important;
    letter-spacing: -0.074em !important;
  }

  .welcome-copy {
    max-width: 430px !important;
    margin: 18px auto 0 !important;
    font-size: 15.5px !important;
  }

  .hero-cta {
    margin-top: 18px !important;
  }

  .hero-cta::after {
    width: 92px !important;
  }

  .suggestions {
    display: none !important;
  }

  .hero-stage {
    width: min(430px, 88vw) !important;
    height: 280px !important;
    min-height: 280px !important;
    transform: none !important;
  }

  .signal-core {
    width: 116px !important;
    height: 116px !important;
    border-radius: 31px !important;
  }

  .composer-area {
    left: 0 !important;
    width: 100% !important;
    padding: 0 16px 16px !important;
  }

  .composer {
    width: min(680px, calc(100vw - 32px)) !important;
  }
}

/* v20260702-6: Professional ChatGPT-style composer, tuned for imdi. */
.composer-area {
  position: fixed !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 252px !important;
  z-index: 10 !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 24px 24px !important;
  pointer-events: none !important;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.08), transparent 58%),
    linear-gradient(180deg, transparent 0%, rgba(5, 5, 5, 0.68) 62%, rgba(5, 5, 5, 0.96) 100%) !important;
}

.composer {
  position: relative !important;
  display: grid !important;
  grid-template-rows: minmax(30px, auto) 38px !important;
  gap: 10px !important;
  width: min(760px, calc(100vw - 332px)) !important;
  min-height: 106px !important;
  padding: 16px 16px 12px !important;
  pointer-events: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 26px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(34, 34, 34, 0.86) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -22px 54px rgba(0, 0, 0, 0.22),
    0 18px 70px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(216, 34, 69, 0.055) !important;
  backdrop-filter: blur(28px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(145%) !important;
}

.composer::before {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  border-radius: inherit !important;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.18), transparent 26%),
    radial-gradient(circle at 96% 100%, rgba(216, 34, 69, 0.18), transparent 34%) !important;
  opacity: 0.72 !important;
  content: "" !important;
}

.composer:focus-within {
  border-color: rgba(255, 255, 255, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.145), rgba(255, 255, 255, 0.052)),
    rgba(38, 38, 38, 0.92) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -22px 54px rgba(0, 0, 0, 0.2),
    0 20px 76px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(216, 34, 69, 0.13) !important;
}

.composer textarea {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  min-height: 30px !important;
  max-height: 180px !important;
  padding: 0 2px !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: 16px !important;
  font-weight: 450 !important;
  line-height: 1.5 !important;
  resize: none !important;
}

.composer textarea::placeholder {
  color: rgba(255, 255, 255, 0.44) !important;
}

.composer-bottom {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  height: 38px !important;
}

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

.composer-tools-right {
  margin-left: auto !important;
}

.composer-icon,
.composer-pill,
.response-style,
.send-button {
  position: relative !important;
  z-index: 1 !important;
  display: inline-grid !important;
  place-items: center !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  background: transparent !important;
  cursor: pointer !important;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    opacity 160ms ease !important;
}

.composer-icon {
  width: 34px !important;
}

.composer-icon svg,
.composer-pill svg,
.response-style svg,
.send-button svg {
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.composer-pill,
.response-style {
  display: inline-flex !important;
  gap: 7px !important;
  padding: 0 11px !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  white-space: nowrap !important;
}

.composer-pill .chevron {
  width: 14px !important;
  height: 14px !important;
  opacity: 0.72 !important;
}

.composer-icon:hover,
.composer-pill:hover,
.response-style:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.composer-icon:active,
.composer-pill:active,
.response-style:active,
.send-button:active {
  transform: scale(0.96) !important;
}

.response-style {
  color: rgba(255, 255, 255, 0.68) !important;
}

.response-style-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #34d37b !important;
  box-shadow: 0 0 12px rgba(52, 211, 123, 0.72) !important;
}

.send-button {
  width: 34px !important;
  min-width: 34px !important;
  color: #0d0d0d !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 10px 26px rgba(0, 0, 0, 0.28) !important;
}

.send-button:not(:disabled) {
  color: #fff !important;
  background: linear-gradient(145deg, #f14563, #b91532) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 30px rgba(216, 34, 69, 0.36),
    0 12px 28px rgba(0, 0, 0, 0.34) !important;
}

.send-button:disabled {
  opacity: 0.86 !important;
  cursor: default !important;
}

.composer-mic {
  color: rgba(255, 255, 255, 0.62) !important;
}

.disclaimer {
  display: none !important;
}

@media (max-width: 980px) {
  .composer-area {
    left: 0 !important;
    width: 100% !important;
    padding: 0 16px 16px !important;
  }

  .composer {
    width: min(760px, calc(100vw - 32px)) !important;
  }
}

@media (max-width: 620px) {
  .composer {
    min-height: 104px !important;
    padding: 15px 14px 12px !important;
    border-radius: 24px !important;
  }

  .composer-pill span {
    display: none !important;
  }

  .response-style {
    max-width: 86px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .composer-tools {
    gap: 5px !important;
  }
}

/* v20260703-5: Compact Uiverse-inspired message composer for imdi. */
.composer-area {
  padding: 0 22px 22px !important;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.07), transparent 54%),
    linear-gradient(180deg, transparent 0%, rgba(5, 5, 5, 0.48) 60%, rgba(5, 5, 5, 0.92) 100%) !important;
}

.composer {
  grid-template-rows: minmax(50px, auto) 44px !important;
  gap: 0 !important;
  width: min(620px, calc(100vw - 360px)) !important;
  min-height: 110px !important;
  padding: 1.5px !important;
  border: 0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background:
    linear-gradient(to bottom right, #7e7e7e, #363636 28%, #242424 72%, #111) !important;
  box-shadow:
    0 22px 72px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 34px rgba(216, 34, 69, 0.1) !important;
  backdrop-filter: blur(24px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
}

.composer::before {
  position: absolute !important;
  inset: 1.5px !important;
  z-index: 0 !important;
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.66), rgba(0, 0, 0, 0.58)),
    rgba(0, 0, 0, 0.5) !important;
  opacity: 1 !important;
  content: "" !important;
}

.composer::after {
  position: absolute !important;
  top: -10px !important;
  left: -10px !important;
  z-index: 1 !important;
  width: 34px !important;
  height: 34px !important;
  pointer-events: none !important;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.28),
    rgba(255, 255, 255, 0.08),
    rgba(0, 0, 0, 0) 72%
  ) !important;
  content: "" !important;
  filter: blur(1px) !important;
}

.composer:focus-within {
  box-shadow:
    0 24px 78px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 36px rgba(216, 34, 69, 0.16) !important;
}

.composer textarea {
  min-height: 50px !important;
  padding: 12px 13px 8px !important;
  color: #fff !important;
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 430 !important;
  line-height: 1.45 !important;
  scrollbar-width: thin !important;
  scrollbar-color: #777 transparent !important;
}

.composer textarea::-webkit-scrollbar {
  width: 10px !important;
  height: 10px !important;
}

.composer textarea::-webkit-scrollbar-track {
  background: transparent !important;
}

.composer textarea::-webkit-scrollbar-thumb {
  border-radius: 5px !important;
  background: #888 !important;
}

.composer textarea::-webkit-scrollbar-thumb:hover {
  background: #555 !important;
}

.composer textarea::placeholder {
  color: rgba(243, 246, 253, 0.72) !important;
  transition: color 0.3s ease !important;
}

.composer textarea:focus::placeholder {
  color: rgba(243, 246, 253, 0.25) !important;
}

.composer-bottom {
  height: 44px !important;
  padding: 0 10px 10px !important;
  align-items: flex-end !important;
}

.composer-tools {
  gap: 8px !important;
}

.composer-icon,
.composer-pill,
.response-style {
  height: 30px !important;
  color: rgba(255, 255, 255, 0.26) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.composer-icon {
  width: 30px !important;
}

.composer-pill,
.response-style {
  padding: 0 9px !important;
  font-size: 11px !important;
  font-weight: 650 !important;
}

.composer-icon svg,
.composer-pill svg,
.response-style svg {
  width: 19px !important;
  height: 19px !important;
}

.composer-icon:hover,
.composer-pill:hover,
.response-style:hover {
  color: #fff !important;
  background: transparent !important;
  transform: translateY(-4px) !important;
}

.send-button {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 2px !important;
  border-radius: 10px !important;
  color: #8b8b8b !important;
  background-image: linear-gradient(to top, #292929, #555, #292929) !important;
  box-shadow:
    inset 0 6px 2px -4px rgba(255, 255, 255, 0.5),
    0 10px 22px rgba(0, 0, 0, 0.28) !important;
  transition: transform 0.15s ease, color 0.2s ease, filter 0.2s ease !important;
}

.send-button svg {
  width: 28px !important;
  height: 28px !important;
  padding: 6px !important;
  border-radius: 9px !important;
  background: rgba(0, 0, 0, 0.12) !important;
  color: currentColor !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
  transition: color 0.3s ease, filter 0.3s ease, transform 0.3s ease !important;
}

.send-button:not(:disabled) {
  color: #f3f6fd !important;
  background-image: linear-gradient(to top, #5b0f1f, #d82245, #6f1328) !important;
}

.send-button:not(:disabled):hover svg {
  color: #fff !important;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.78)) !important;
}

.send-button:focus-visible svg {
  color: #fff !important;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.78)) !important;
  transform: scale(1.12) rotate(45deg) translateX(-1px) translateY(1px) !important;
}

.send-button:active {
  transform: scale(0.92) !important;
}

.send-button:disabled {
  opacity: 0.72 !important;
}

@media (max-width: 980px) {
  .composer {
    width: min(620px, calc(100vw - 32px)) !important;
  }
}

@media (max-width: 620px) {
  .composer-area {
    padding: 0 12px 14px !important;
  }

  .composer {
    width: calc(100vw - 24px) !important;
    min-height: 106px !important;
    border-radius: 18px !important;
  }
}

/* v20260703-1: Ported AuthCube3D concept into the vanilla imdi site. */
.hero-stage {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  pointer-events: auto !important;
  perspective: 1050px !important;
  perspective-origin: 50% 48% !important;
}

.hero-canvas {
  pointer-events: none !important;
}

.signal-sculpture,
.signal-glass,
.signal-core,
.signal-ring,
.signal-rail,
.signal-dot {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.auth-visual {
  position: absolute !important;
  inset: -6% !important;
  z-index: 3 !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
  pointer-events: none !important;
  transform-style: preserve-3d !important;
}

.cube-stage {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
  cursor: grab !important;
  pointer-events: auto !important;
  touch-action: none !important;
  transform-style: preserve-3d !important;
}

.cube-stage.dragging {
  cursor: grabbing !important;
}

.auth-cube3d-core {
  --cubelet: 56px;
  --cube-half: 28px;
  position: relative !important;
  z-index: 4 !important;
  width: 0 !important;
  height: 0 !important;
  transform-style: preserve-3d !important;
  will-change: transform !important;
  filter:
    drop-shadow(0 34px 70px rgba(0, 0, 0, 0.62))
    drop-shadow(0 0 28px rgba(216, 34, 69, 0.32)) !important;
}

.auth-cubie {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: var(--cubelet) !important;
  height: var(--cubelet) !important;
  margin: calc(var(--cubelet) * -0.5) !important;
  transform-style: preserve-3d !important;
  will-change: transform !important;
}

.auth-face {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: calc(var(--cubelet) * 0.16) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(315deg, rgba(216, 34, 69, 0.28), transparent 52%),
    rgba(12, 12, 13, 0.9) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -18px 32px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(216, 34, 69, 0.05) !important;
  backface-visibility: visible !important;
}

.auth-face::before {
  position: absolute !important;
  inset: 0 !important;
  background:
    linear-gradient(110deg, transparent 0 28%, rgba(255, 255, 255, 0.2), transparent 58%),
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.18), transparent 32%) !important;
  content: "" !important;
  opacity: 0.58 !important;
}

.auth-face::after {
  position: absolute !important;
  inset: 6px !important;
  border-radius: calc(var(--cubelet) * 0.11) !important;
  border: 1px solid rgba(255, 255, 255, 0.055) !important;
  content: "" !important;
}

.auth-face-stamp {
  position: relative !important;
  z-index: 1 !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    Inter,
    Arial,
    sans-serif !important;
  font-size: calc(var(--cubelet) * 0.25) !important;
  font-weight: 760 !important;
  letter-spacing: -0.04em !important;
  text-shadow: 0 0 18px rgba(216, 34, 69, 0.34) !important;
}

.logo-stamp {
  display: grid !important;
  place-items: center !important;
  width: 74% !important;
  height: 74% !important;
}

.logo-stamp img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  filter:
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.36))
    drop-shadow(0 0 18px rgba(255, 58, 94, 0.42)) !important;
}

.auth-face.lacquer {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.26), transparent 25%),
    linear-gradient(145deg, #ef3558 0%, #9d1029 58%, #2a070c 100%) !important;
}

.auth-face.ruby {
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.24), transparent 32%),
    linear-gradient(320deg, #ff4b67, #c21635 42%, #34080f) !important;
}

.auth-face.carbon {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 7px),
    linear-gradient(145deg, #1a1b1d, #050506 70%) !important;
}

.auth-face.brushed {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 5px),
    linear-gradient(145deg, #2a2b2d, #08080a 72%) !important;
}

.auth-face.grid {
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(145deg, #18191b, #070708 74%) !important;
  background-size: 11px 11px, 11px 11px, 100% 100% !important;
}

.auth-face.satin {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(145deg, #313135, #0b0b0d 76%) !important;
}

.auth-cube-shadow {
  position: absolute !important;
  z-index: 1 !important;
  width: min(410px, 82%) !important;
  height: min(110px, 23%) !important;
  border-radius: 50% !important;
  background:
    radial-gradient(ellipse, rgba(216, 34, 69, 0.34), transparent 62%),
    radial-gradient(ellipse, rgba(255, 255, 255, 0.12), transparent 48%) !important;
  filter: blur(22px) !important;
  opacity: 0.68 !important;
  transform: translate3d(0, 142px, -190px) rotateX(78deg) !important;
}

.auth-cube-halo {
  position: absolute !important;
  z-index: 1 !important;
  width: min(420px, 82%) !important;
  aspect-ratio: 1 !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 11%),
    radial-gradient(circle, rgba(216, 34, 69, 0.24), transparent 56%) !important;
  filter: blur(14px) !important;
  opacity: 0.72 !important;
  animation: auth-halo-breathe 6.4s ease-in-out infinite !important;
}

.auth-cube-orbit {
  position: absolute !important;
  z-index: 2 !important;
  width: min(470px, 92%) !important;
  height: min(142px, 28%) !important;
  border: 1px solid rgba(216, 34, 69, 0.28) !important;
  border-left-color: rgba(255, 255, 255, 0.13) !important;
  border-right-color: transparent !important;
  border-radius: 50% !important;
  filter: drop-shadow(0 0 16px rgba(216, 34, 69, 0.26)) !important;
  pointer-events: none !important;
}

.auth-cube-orbit.orbit-a {
  transform: rotateX(70deg) rotateZ(-17deg) translateY(18px) !important;
  animation: auth-orbit-float 8.2s ease-in-out infinite !important;
}

.auth-cube-orbit.orbit-b {
  width: min(560px, 108%) !important;
  height: min(166px, 34%) !important;
  opacity: 0.54 !important;
  transform: rotateX(74deg) rotateZ(24deg) translateY(-24px) !important;
  animation: auth-orbit-float 10.4s ease-in-out -2s infinite reverse !important;
}

@keyframes auth-halo-breathe {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.92);
  }

  50% {
    opacity: 0.78;
    transform: scale(1.05);
  }
}

@keyframes auth-orbit-float {
  0%,
  100% {
    opacity: 0.34;
    translate: 0 0;
  }

  50% {
    opacity: 0.72;
    translate: 0 -14px;
  }
}

@media (max-width: 1180px) {
  .auth-visual {
    inset: -4% !important;
  }

  .auth-cube-shadow {
    transform: translate3d(0, 116px, -180px) rotateX(78deg) !important;
  }
}

@media (max-width: 980px) {
  .auth-visual {
    inset: -2% !important;
  }

  .auth-cube-orbit {
    width: min(380px, 96%) !important;
  }

  .auth-cube-shadow {
    width: min(330px, 82%) !important;
    transform: translate3d(0, 92px, -160px) rotateX(78deg) !important;
  }
}

@media (max-width: 620px) {
  .auth-cube-orbit {
    opacity: 0.36 !important;
  }

  .auth-cube-shadow {
    opacity: 0.5 !important;
    transform: translate3d(0, 76px, -150px) rotateX(78deg) !important;
  }
}

/* v20260703-2: WebGL hero motion inspired by Paraner-style timing, built for imdi. */
.welcome h1 .hero-letter {
  display: inline-block !important;
  white-space: pre !important;
  opacity: 0;
  filter: blur(9px);
  transform: translateY(0.46em) scale(0.985);
  animation: imdi-letter-rise 620ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes imdi-letter-rise {
  0% {
    opacity: 0;
    filter: blur(9px);
    transform: translateY(0.46em) scale(0.985);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

.cube-stage.webgl-ready {
  isolation: isolate !important;
  perspective: none !important;
}

.cube-stage.webgl-ready::before,
.cube-stage.webgl-ready::after {
  position: absolute !important;
  z-index: 0 !important;
  pointer-events: none !important;
  content: "" !important;
}

.cube-stage.webgl-ready::before {
  width: min(560px, 92%) !important;
  aspect-ratio: 1 !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 12%),
    radial-gradient(circle, rgba(216, 34, 69, 0.28), transparent 54%),
    radial-gradient(circle at 72% 22%, rgba(112, 215, 255, 0.12), transparent 42%) !important;
  filter: blur(18px) !important;
  opacity: 0.82 !important;
  animation: auth-webgl-halo 7s ease-in-out infinite !important;
}

.cube-stage.webgl-ready::after {
  bottom: 16% !important;
  width: min(420px, 72%) !important;
  height: min(92px, 16%) !important;
  border-radius: 50% !important;
  background:
    radial-gradient(ellipse, rgba(216, 34, 69, 0.36), transparent 66%),
    radial-gradient(ellipse, rgba(255, 255, 255, 0.12), transparent 48%) !important;
  filter: blur(22px) !important;
  opacity: 0.62 !important;
  transform: rotateX(72deg) !important;
}

.auth-cube-webgl {
  position: absolute !important;
  inset: -7% !important;
  z-index: 2 !important;
  display: block !important;
  width: 114% !important;
  height: 114% !important;
  cursor: grab !important;
  opacity: 1 !important;
  filter:
    drop-shadow(0 42px 90px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 34px rgba(216, 34, 69, 0.16)) !important;
  touch-action: none !important;
  transform: translateY(0) scale(1) !important;
}

.auth-cube-webgl.dragging {
  cursor: grabbing !important;
}

@keyframes auth-webgl-in {
  0% {
    opacity: 0;
    filter: blur(10px) drop-shadow(0 42px 90px rgba(0, 0, 0, 0.52));
    transform: translateY(18px) scale(0.98);
  }

  100% {
    opacity: 1;
    filter:
      blur(0)
      drop-shadow(0 42px 90px rgba(0, 0, 0, 0.52))
      drop-shadow(0 0 34px rgba(216, 34, 69, 0.16));
    transform: translateY(0) scale(1);
  }
}

@keyframes auth-webgl-halo {
  0%,
  100% {
    opacity: 0.52;
    transform: scale(0.92);
  }

  50% {
    opacity: 0.86;
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome h1 .hero-letter,
  .auth-cube-webgl,
  .cube-stage.webgl-ready::before {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
  }
}

@media (max-width: 980px) {
  .auth-cube-webgl {
    inset: -10% !important;
    width: 120% !important;
    height: 120% !important;
  }
}

/* v20260703-6: Animated glass message cards inspired by the Uiverse blob card. */
.message-list {
  gap: 18px !important;
  width: min(820px, calc(100% - 52px)) !important;
  padding-bottom: 150px !important;
}

.message-row {
  position: relative !important;
}

.message {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  max-width: min(620px, 82%) !important;
  border-radius: 18px !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  box-shadow:
    18px 18px 56px rgba(0, 0, 0, 0.18),
    -12px -12px 38px rgba(255, 255, 255, 0.045) !important;
}

.message::before,
.message::after {
  position: absolute !important;
  pointer-events: none !important;
  content: "" !important;
}

.message::before {
  inset: 5px !important;
  z-index: 2 !important;
  border-radius: 14px !important;
  outline: 1px solid rgba(255, 255, 255, 0.55) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(24px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(145%) !important;
}

.message::after {
  z-index: 1 !important;
  top: 50% !important;
  left: 50% !important;
  width: 156px !important;
  height: 156px !important;
  border-radius: 50% !important;
  background: #ff0033 !important;
  opacity: 0.82 !important;
  filter: blur(16px) !important;
  animation: imdi-message-blob 5.2s infinite ease !important;
}

.message > *,
.message p {
  position: relative !important;
  z-index: 3 !important;
}

.message p {
  margin: 0 0 8px !important;
}

.message.user {
  max-width: min(520px, 74%) !important;
  padding: 15px 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 20px 20px 8px 20px !important;
  background:
    linear-gradient(135deg, rgba(216, 34, 69, 0.72), rgba(18, 18, 18, 0.96)) !important;
  color: #fff !important;
}

.message.user::before {
  background: rgba(22, 22, 22, 0.7) !important;
  outline-color: rgba(255, 255, 255, 0.11) !important;
}

.message.user::after {
  width: 140px !important;
  height: 140px !important;
  background: #d82245 !important;
  opacity: 0.72 !important;
}

.message.assistant {
  min-height: 58px !important;
  padding: 18px 20px 18px 58px !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18)),
    rgba(235, 235, 232, 0.72) !important;
  color: #111 !important;
}

.message.assistant::after {
  background: #ff002f !important;
  opacity: 0.46 !important;
}

[data-theme="dark"] .message.assistant {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(18, 18, 18, 0.78) !important;
  color: rgba(255, 255, 255, 0.93) !important;
}

[data-theme="dark"] .message.assistant::before {
  background: rgba(14, 14, 14, 0.72) !important;
  outline-color: rgba(255, 255, 255, 0.09) !important;
}

.assistant-mini-mark {
  z-index: 4 !important;
  top: 17px !important;
  left: 18px !important;
  width: 28px !important;
  height: 28px !important;
}

.copy-button {
  margin: 7px 0 0 58px !important;
}

.typing {
  position: relative !important;
  z-index: 3 !important;
  padding: 8px 0 !important;
}

@keyframes imdi-message-blob {
  0% {
    transform: translate(-100%, -100%) translate3d(0, 0, 0);
  }

  25% {
    transform: translate(-100%, -100%) translate3d(100%, 0, 0);
  }

  50% {
    transform: translate(-100%, -100%) translate3d(100%, 100%, 0);
  }

  75% {
    transform: translate(-100%, -100%) translate3d(0, 100%, 0);
  }

  100% {
    transform: translate(-100%, -100%) translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .message::after {
    animation: none !important;
  }
}

@media (max-width: 620px) {
  .message-list {
    width: calc(100% - 24px) !important;
    padding-bottom: 138px !important;
  }

  .message,
  .message.user,
  .message.assistant {
    max-width: 92% !important;
  }

  .message.assistant {
    padding: 16px 16px 16px 54px !important;
  }

  .assistant-mini-mark {
    top: 15px !important;
    left: 16px !important;
  }
}

/* v20260703-7: Google continue button with red glass glow. */
.google-auth-button {
  position: relative !important;
  overflow: hidden !important;
  display: inline-block !important;
  margin: 14px auto 0 !important;
  padding: 2px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: radial-gradient(circle 80px at 80% -10%, #fff, #181b1b) !important;
  cursor: pointer !important;
  transition: transform 0.3s ease !important;
}

.google-auth-button:hover {
  transform: scale(0.98) !important;
}

.google-auth-button::after {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 0 !important;
  width: 65% !important;
  height: 60% !important;
  border-radius: 100px !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25) !important;
  content: "" !important;
}

.google-auth-blob {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 1 !important;
  width: 80px !important;
  height: 100% !important;
  border-radius: 16px !important;
  background: radial-gradient(
    circle 70px at 0% 100%,
    rgba(255, 110, 110, 0.95),
    rgba(255, 0, 60, 0.45),
    transparent
  ) !important;
  box-shadow: -8px 8px 35px rgba(255, 40, 80, 0.45) !important;
}

.google-auth-inner {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 13px 24px !important;
  border-radius: 14px !important;
  background: radial-gradient(circle 80px at 80% -50%, #555, #0f1111) !important;
  color: #fff !important;
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 570 !important;
  letter-spacing: -0.01em !important;
}

.google-auth-inner::before {
  position: absolute !important;
  inset: 0 !important;
  border-radius: 14px !important;
  pointer-events: none !important;
  background: radial-gradient(
    circle 70px at 0% 100%,
    rgba(255, 80, 80, 0.2),
    rgba(255, 0, 80, 0.08),
    transparent
  ) !important;
  content: "" !important;
}

.google-icon {
  position: relative !important;
  z-index: 1 !important;
  flex-shrink: 0 !important;
  width: 20px !important;
  height: 20px !important;
}

.google-auth-inner > span {
  position: relative !important;
  z-index: 1 !important;
}

@media (max-width: 620px) {
  .google-auth-inner {
    padding: 12px 18px !important;
    font-size: 13px !important;
  }
}

/* v20260703-8: Isolated liquid-glass background scene. Cube and UI stay untouched. */
.imdi-bg-scene {
  --imdi-bg-x: 50%;
  --imdi-bg-y: 45%;
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at var(--imdi-bg-x) var(--imdi-bg-y), rgba(255, 255, 255, 0.12), transparent 18%),
    radial-gradient(circle at 78% 12%, rgba(108, 209, 255, 0.16), transparent 30%),
    radial-gradient(circle at 16% 20%, rgba(255, 38, 78, 0.18), transparent 32%),
    radial-gradient(circle at 54% 104%, rgba(255, 196, 96, 0.13), transparent 34%),
    linear-gradient(135deg, #050608 0%, #101214 42%, #07070a 100%) !important;
}

.imdi-bg-scene::before {
  position: absolute !important;
  inset: -2px !important;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, transparent 0 38%, rgba(255, 255, 255, 0.035) 39%, transparent 40%);
  background-size: 58px 58px, 58px 58px, 920px 920px !important;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.22));
  opacity: 0.55 !important;
  content: "" !important;
}

.imdi-bg-scene::after {
  position: absolute !important;
  inset: -20% !important;
  background:
    conic-gradient(from 140deg at var(--imdi-bg-x) var(--imdi-bg-y), transparent, rgba(255, 255, 255, 0.075), transparent 18%, rgba(255, 45, 85, 0.09), transparent 36%),
    linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 48%, transparent 56%);
  mix-blend-mode: screen !important;
  opacity: 0.42 !important;
  filter: blur(18px) saturate(1.2) !important;
  transform: rotate(-7deg) !important;
  content: "" !important;
}

.imdi-bg-blob {
  position: absolute !important;
  border-radius: 999px !important;
  filter: blur(72px) saturate(1.25) !important;
  opacity: 0.54 !important;
  animation: imdi-bg-drift var(--imdi-bg-duration, 18s) ease-in-out infinite alternate !important;
}

.imdi-bg-blob--1 {
  top: -18vh !important;
  left: -15vw !important;
  width: min(720px, 52vw) !important;
  height: min(720px, 52vw) !important;
  --imdi-bg-duration: 22s;
  background: radial-gradient(circle, rgba(255, 58, 94, 0.9), rgba(129, 14, 38, 0.34), transparent 68%) !important;
}

.imdi-bg-blob--2 {
  right: -16vw !important;
  top: 4vh !important;
  width: min(780px, 56vw) !important;
  height: min(780px, 56vw) !important;
  --imdi-bg-duration: 19s;
  animation-delay: -7s !important;
  background: radial-gradient(circle, rgba(132, 201, 255, 0.72), rgba(108, 68, 206, 0.26), transparent 70%) !important;
}

.imdi-bg-blob--3 {
  left: 30vw !important;
  bottom: -28vh !important;
  width: min(680px, 48vw) !important;
  height: min(680px, 48vw) !important;
  --imdi-bg-duration: 26s;
  animation-delay: -13s !important;
  background: radial-gradient(circle, rgba(255, 205, 112, 0.56), rgba(255, 59, 99, 0.22), transparent 72%) !important;
}

body {
  background: #050608 !important;
}

.ambient {
  opacity: 0.2 !important;
}

.app-shell {
  position: relative !important;
  z-index: 1 !important;
  background: transparent !important;
}

.intro {
  z-index: 50 !important;
}

@keyframes imdi-bg-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  35% {
    transform: translate3d(58px, -34px, 0) scale(1.08);
  }
  70% {
    transform: translate3d(-42px, 46px, 0) scale(0.96);
  }
  100% {
    transform: translate3d(30px, 26px, 0) scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .imdi-bg-blob {
    animation: none !important;
  }
}

/* v20260703-9: Make the landing area match the liquid-glass reference more closely. */
.main {
  background: transparent !important;
}

.topbar {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: var(--sidebar-width, 252px) !important;
  z-index: 12 !important;
  border: 0 !important;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.62), transparent) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.conversation {
  position: relative !important;
  min-height: 100dvh !important;
  padding: 0 !important;
  background: transparent !important;
}

.welcome {
  position: relative !important;
  isolation: isolate !important;
  display: grid !important;
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr) !important;
  align-items: center !important;
  min-height: 100dvh !important;
  width: 100% !important;
  padding: clamp(96px, 11vh, 140px) clamp(28px, 6vw, 92px) clamp(104px, 12vh, 140px) !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 12% 55%, rgba(79, 201, 232, 0.64), transparent 32%),
    radial-gradient(circle at 70% 70%, rgba(244, 183, 132, 0.46), transparent 30%),
    radial-gradient(circle at 95% 40%, rgba(204, 80, 187, 0.46), transparent 34%),
    linear-gradient(90deg, rgba(3, 5, 11, 0.96) 0%, rgba(7, 8, 18, 0.9) 43%, rgba(21, 13, 22, 0.82) 100%) !important;
}

.welcome::before {
  position: absolute !important;
  inset: 0 !important;
  z-index: -2 !important;
  display: block !important;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 45%) !important;
  background-size: 64px 64px, 64px 64px, 900px 900px !important;
  opacity: 0.58 !important;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.42));
  content: "" !important;
}

.welcome::after {
  position: absolute !important;
  inset: 13% 9% 10% 45% !important;
  z-index: -1 !important;
  display: block !important;
  border-radius: 42px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.38), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 42px 120px rgba(0, 0, 0, 0.38) !important;
  backdrop-filter: blur(28px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.3) !important;
  content: "" !important;
}

.welcome-copyblock {
  position: relative !important;
  z-index: 4 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  max-width: 620px !important;
  margin: 0 !important;
  text-align: left !important;
}

.welcome-logo {
  width: 58px !important;
  height: 58px !important;
  margin: 0 0 22px !important;
  border-radius: 19px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 22px 54px rgba(255, 40, 80, 0.24) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.welcome-logo img {
  width: 38px !important;
  height: 38px !important;
}

.welcome-kicker {
  margin: 0 0 20px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 12px !important;
  font-weight: 680 !important;
  letter-spacing: 0.32em !important;
}

.welcome h1 {
  max-width: 610px !important;
  margin: 0 !important;
  color: #fff !important;
  font-family: ui-serif, Georgia, "Times New Roman", serif !important;
  font-size: clamp(58px, 7.2vw, 118px) !important;
  font-weight: 700 !important;
  line-height: 0.88 !important;
  letter-spacing: -0.075em !important;
  text-wrap: balance !important;
  text-shadow: 0 22px 78px rgba(0, 0, 0, 0.55) !important;
}

.welcome h1::after {
  display: none !important;
}

.hero-cta {
  display: inline-flex !important;
  margin: 30px 0 0 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.11) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.google-auth-button {
  display: inline-block !important;
  margin: 20px 0 0 !important;
}

.welcome-copy {
  max-width: 430px !important;
  margin: 18px 0 0 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
}

.hero-stage {
  position: relative !important;
  z-index: 3 !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: min(48vw, 780px) !important;
  height: min(68vh, 720px) !important;
  min-height: 460px !important;
  justify-self: center !important;
  align-self: center !important;
  margin: 0 !important;
  overflow: visible !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

.welcome-copyblock {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.hero-canvas,
.auth-cube,
.cube-stage,
.auth-cube-webgl {
  opacity: 1 !important;
  visibility: visible !important;
}

.suggestions {
  position: absolute !important;
  left: clamp(28px, 6vw, 92px) !important;
  bottom: clamp(26px, 5vh, 58px) !important;
  z-index: 5 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) !important;
  width: min(640px, calc(100% - 56px)) !important;
  gap: 14px !important;
}

.suggestion {
  min-height: 86px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 20px 70px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(24px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.25) !important;
}

.message-list,
.composer-area {
  z-index: 6 !important;
}

@media (max-width: 980px) {
  .topbar {
    left: 0 !important;
  }

  .welcome {
    grid-template-columns: 1fr !important;
    padding: 92px 22px 152px !important;
  }

  .welcome-copyblock,
  .hero-stage {
    grid-column: 1 !important;
  }

  .welcome-copyblock {
    max-width: 100% !important;
  }

  .hero-stage {
    width: min(92vw, 620px) !important;
    height: 360px !important;
    min-height: 320px !important;
    margin-top: 28px !important;
  }

  .welcome::after {
    inset: 47% 16px 112px !important;
    border-radius: 32px !important;
  }

  .suggestions {
    grid-template-columns: 1fr !important;
    bottom: 18px !important;
  }
}

/* v20260703-10: clear-glass cleanup. Keep the cube, remove red orbit/canvas noise. */
body {
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.065), transparent 28%),
    linear-gradient(135deg, #08090c 0%, #111216 46%, #07080a 100%) !important;
}

body::before,
body::after,
.ambient,
.hero-canvas,
.auth-cube-halo,
.auth-cube-shadow,
.auth-cube-orbit,
.cube-stage.webgl-ready::before,
.cube-stage.webgl-ready::after {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.imdi-bg-scene {
  background:
    radial-gradient(circle at var(--imdi-bg-x) var(--imdi-bg-y), rgba(255, 255, 255, 0.105), transparent 22%),
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.055), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.05), transparent 34%),
    linear-gradient(135deg, #07080b 0%, #121318 50%, #07080b 100%) !important;
}

.imdi-bg-scene::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px) !important;
  background-size: 72px 72px, 72px 72px !important;
  opacity: 0.34 !important;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.08)) !important;
}

.imdi-bg-scene::after {
  background:
    linear-gradient(120deg, transparent 0 43%, rgba(255, 255, 255, 0.052) 50%, transparent 58%),
    radial-gradient(circle at 52% 38%, rgba(255, 255, 255, 0.08), transparent 30%) !important;
  mix-blend-mode: screen !important;
  opacity: 0.28 !important;
  filter: blur(24px) saturate(1.05) !important;
}

.imdi-bg-blob {
  opacity: 0.12 !important;
  filter: blur(88px) saturate(0.35) !important;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.08), transparent 70%) !important;
}

.welcome {
  background:
    radial-gradient(circle at 20% 28%, rgba(255, 255, 255, 0.1), transparent 28%),
    radial-gradient(circle at 78% 35%, rgba(255, 255, 255, 0.07), transparent 34%),
    linear-gradient(135deg, rgba(10, 11, 15, 0.68), rgba(16, 17, 21, 0.46)) !important;
}

.welcome::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px) !important;
  background-size: 74px 74px, 74px 74px !important;
  opacity: 0.26 !important;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.18)) !important;
}

.welcome::after {
  border-color: rgba(255, 255, 255, 0.13) !important;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.028)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 34px 120px rgba(0, 0, 0, 0.34) !important;
}

.welcome-logo,
.suggestion,
.hero-cta,
.sidebar,
.sidebar-profile,
.status-card,
.composer,
.google-auth-inner {
  border-color: rgba(255, 255, 255, 0.14) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.032)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 20px 64px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(28px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.12) !important;
}

.google-auth-button,
.google-auth-blob,
.google-auth-inner::before {
  box-shadow: none !important;
  background: transparent !important;
}

.welcome h1,
.welcome-kicker,
.welcome-copy,
.suggestion strong,
.suggestion small,
.hero-cta,
.composer textarea {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 18px 64px rgba(0, 0, 0, 0.42) !important;
}

.auth-cube-webgl {
  filter: drop-shadow(0 42px 90px rgba(0, 0, 0, 0.56)) !important;
}

/* v20260703-11: Liquid Glass UI Kit surface pass. Cube geometry and animation stay untouched. */
:root {
  --glass-white: rgba(255, 255, 255, 0.12);
  --glass-white-md: rgba(255, 255, 255, 0.2);
  --glass-white-lg: rgba(255, 255, 255, 0.3);
  --glass-dark: rgba(0, 0, 0, 0.18);
  --glass-dark-md: rgba(0, 0, 0, 0.28);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-border-subtle: rgba(255, 255, 255, 0.12);
  --glass-border-bright: rgba(255, 255, 255, 0.5);
  --blur-sm: blur(8px);
  --blur-md: blur(18px);
  --blur-lg: blur(32px);
  --blur-xl: blur(60px);
  --shadow-glass:
    0 8px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  --shadow-float:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.2);
  --reflection-top: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 50%
  );
  --accent-aqua: #5ee7df;
  --accent-violet: #b490f5;
  --accent-rose: #f7a8c4;
  --accent-amber: #ffd27f;
  --color-bg: #0b0e1a;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.55);
}

html,
body {
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
}

body::before,
body::after,
.ambient,
.hero-canvas,
.auth-cube-halo,
.auth-cube-shadow,
.auth-cube-orbit,
.cube-stage.webgl-ready::before,
.cube-stage.webgl-ready::after {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.imdi-bg-scene {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  background: var(--color-bg) !important;
}

.imdi-bg-scene::before,
.imdi-bg-scene::after {
  display: none !important;
}

.imdi-bg-blob {
  position: absolute !important;
  border-radius: 50% !important;
  filter: blur(80px) !important;
  opacity: 0.55 !important;
  mix-blend-mode: normal !important;
  animation: blob-drift var(--dur, 18s) ease-in-out infinite alternate !important;
}

.imdi-bg-blob--1 {
  width: 700px !important;
  height: 700px !important;
  top: -200px !important;
  right: auto !important;
  bottom: auto !important;
  left: -150px !important;
  background: radial-gradient(circle, var(--accent-aqua), #3b82f6) !important;
  --dur: 22s;
}

.imdi-bg-blob--2 {
  width: 600px !important;
  height: 600px !important;
  top: auto !important;
  right: -100px !important;
  bottom: -200px !important;
  left: auto !important;
  background: radial-gradient(circle, var(--accent-violet), #ec4899) !important;
  animation-delay: -8s !important;
  --dur: 17s;
}

.imdi-bg-blob--3 {
  width: 400px !important;
  height: 400px !important;
  top: 40% !important;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  background: radial-gradient(circle, var(--accent-amber), var(--accent-rose)) !important;
  animation-delay: -13s !important;
  --dur: 25s;
}

@keyframes blob-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(60px, -40px) scale(1.08);
  }

  66% {
    transform: translate(-40px, 60px) scale(0.94);
  }

  100% {
    transform: translate(30px, 30px) scale(1.04);
  }
}

.app-shell,
.main,
.conversation,
.welcome {
  background: transparent !important;
}

.welcome {
  border-color: transparent !important;
  box-shadow: none !important;
}

.welcome::before {
  display: none !important;
}

.welcome::after {
  inset: 5.5% 3.5% 5.5% 3.5% !important;
  z-index: 0 !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 36px !important;
  background: var(--glass-white) !important;
  box-shadow: var(--shadow-glass) !important;
  backdrop-filter: var(--blur-md) saturate(1.15) !important;
  -webkit-backdrop-filter: var(--blur-md) saturate(1.15) !important;
}

.welcome-copyblock,
.hero-stage,
.suggestions,
.composer-area,
.message-list {
  position: relative !important;
  z-index: 2 !important;
}

.sidebar,
.sidebar-search,
.menu-item.active,
.menu-item:hover,
.sidebar-action,
.status-card,
.sidebar-profile,
.welcome-logo,
.hero-cta,
.google-auth-inner,
.suggestion,
.composer {
  border: 1px solid var(--glass-border) !important;
  background: var(--glass-white) !important;
  box-shadow: var(--shadow-glass) !important;
  backdrop-filter: var(--blur-md) saturate(1.12) !important;
  -webkit-backdrop-filter: var(--blur-md) saturate(1.12) !important;
}

.sidebar {
  background: rgba(255, 255, 255, 0.08) !important;
}

.sidebar::before,
.welcome-logo::before,
.hero-cta::before,
.suggestion::before,
.composer::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  border-radius: inherit !important;
  background: var(--reflection-top) !important;
  pointer-events: none !important;
}

.sidebar > *,
.welcome-logo > *,
.hero-cta > *,
.suggestion > *,
.composer > * {
  position: relative !important;
  z-index: 1 !important;
}

.menu-item,
.sidebar-action,
.privacy-chip,
.avatar,
.icon-button,
.history-item {
  color: rgba(255, 255, 255, 0.86) !important;
}

.history-empty,
.sidebar-action span,
.status-card span,
.welcome-copy,
.suggestion small,
.composer-tools,
.composer textarea::placeholder {
  color: var(--color-text-muted) !important;
}

.welcome h1 {
  color: #fff !important;
  text-shadow: 0 22px 80px rgba(0, 0, 0, 0.34) !important;
}

.welcome-kicker,
.brand-word,
.suggestion strong,
.hero-cta,
.google-auth-inner,
.status-card strong,
.sidebar-profile strong {
  color: rgba(255, 255, 255, 0.94) !important;
}

.google-auth-button,
.google-auth-blob,
.google-auth-inner::before {
  background: transparent !important;
  box-shadow: none !important;
}

.google-auth-inner {
  background: rgba(255, 255, 255, 0.1) !important;
}

.suggestion,
.hero-cta,
.google-auth-inner,
.composer,
.status-card,
.sidebar-profile {
  transition:
    transform var(--dur-mid, 360ms) cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color var(--dur-mid, 360ms) ease,
    background var(--dur-mid, 360ms) ease,
    box-shadow var(--dur-mid, 360ms) ease !important;
}

.suggestion:hover,
.hero-cta:hover,
.google-auth-button:hover .google-auth-inner {
  transform: translateY(-3px) !important;
  border-color: var(--glass-border-bright) !important;
  background: var(--glass-white-md) !important;
  box-shadow: var(--shadow-float) !important;
}

.auth-cube-webgl {
  filter: drop-shadow(0 40px 94px rgba(0, 0, 0, 0.62)) !important;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sidebar,
  .sidebar-search,
  .menu-item.active,
  .sidebar-action,
  .status-card,
  .sidebar-profile,
  .welcome-logo,
  .hero-cta,
  .google-auth-inner,
  .suggestion,
  .composer,
  .welcome::after {
    background: rgba(20, 24, 38, 0.82) !important;
  }
}

/* v20260703-12: Remove every old square/grid background layer. */
body::before,
body::after,
.main::before,
.main::after,
.conversation::before,
.conversation::after,
.welcome::before,
.imdi-bg-scene::before,
.imdi-bg-scene::after {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  background: none !important;
  background-image: none !important;
  background-size: auto !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.main,
.conversation,
.welcome,
.imdi-bg-scene {
  background-image: none !important;
}

.imdi-bg-scene {
  background-color: var(--color-bg) !important;
}

/* v20260703-13: First screen is auth. Chat composer remains in the code for the next step. */
.auth-landing .composer-area,
.auth-landing .message-list,
.auth-landing .suggestions,
.auth-landing .hero-info-card,
.auth-landing .hero-bottom-note,
.auth-landing .history-block {
  display: none !important;
}

.auth-landing .welcome {
  padding-bottom: clamp(40px, 6vh, 72px) !important;
}

.auth-landing .welcome-copyblock {
  max-width: min(560px, 100%) !important;
}

.auth-landing .welcome-copy {
  max-width: 520px !important;
  margin-top: 22px !important;
  font-size: 17px !important;
}

.auth-panel {
  position: relative;
  z-index: 3;
  width: min(420px, 100%);
  margin-top: 26px;
  padding: 14px;
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-glass);
  backdrop-filter: var(--blur-md) saturate(1.12);
  -webkit-backdrop-filter: var(--blur-md) saturate(1.12);
}

.auth-panel::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  border-radius: inherit;
  background: var(--reflection-top);
  pointer-events: none;
}

.auth-panel > * {
  position: relative;
  z-index: 1;
}

.auth-provider-button {
  display: block !important;
  width: 100% !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.auth-provider-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  min-height: 54px !important;
  width: 100% !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.13) !important;
  color: rgba(255, 255, 255, 0.96) !important;
  font-size: 15px !important;
  font-weight: 720 !important;
  letter-spacing: -0.01em !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 16px 42px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(20px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.12) !important;
  transition:
    transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1),
    background 260ms ease,
    border-color 260ms ease !important;
}

.auth-provider-button:hover .auth-provider-inner {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42) !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

.apple-auth-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 2px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
  flex: 1;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.16);
}

.email-auth-form {
  display: grid;
  gap: 9px;
}

.email-auth-form label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.email-auth-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.16);
}

.email-auth-row input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  padding: 0 8px;
}

.email-auth-row input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.email-auth-row button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #0b0e1a;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.auth-note {
  margin: 12px 4px 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 720px) {
  .email-auth-row {
    grid-template-columns: 1fr;
  }

  .email-auth-row button {
    width: 100%;
  }
}

/* v20260703-14: Codex-style full-screen auth landing. Chat UI stays available for later. */
.landing-nav {
  display: none;
}

.auth-landing {
  --landing-ink: #050505;
  --landing-muted: rgba(5, 5, 5, 0.68);
  --landing-pill: rgba(255, 255, 255, 0.34);
  --landing-pill-strong: rgba(255, 255, 255, 0.56);
  background: #dce8ff !important;
  color: var(--landing-ink) !important;
}

.auth-landing .imdi-bg-scene {
  position: fixed !important;
  inset: 0 !important;
  background:
    radial-gradient(circle at 6% 36%, rgba(248, 253, 255, 0.98) 0 10%, rgba(198, 221, 255, 0.78) 28%, rgba(198, 221, 255, 0) 58%),
    radial-gradient(circle at 82% 12%, rgba(116, 118, 255, 0.92) 0, rgba(126, 129, 255, 0.72) 26%, rgba(126, 129, 255, 0) 54%),
    radial-gradient(circle at 50% 78%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #ecf5ff 0%, #cfe0ff 44%, #746cff 100%) !important;
  filter: none !important;
}

.auth-landing .imdi-bg-scene::before,
.auth-landing .imdi-bg-scene::after {
  display: none !important;
}

.auth-landing .imdi-bg-blob {
  display: block !important;
  opacity: 0.28 !important;
  filter: blur(92px) saturate(1.05) !important;
  mix-blend-mode: soft-light !important;
}

.auth-landing .imdi-bg-blob--1 {
  width: 58vw !important;
  height: 58vw !important;
  left: -20vw !important;
  top: 22vh !important;
  background: rgba(255, 255, 255, 0.8) !important;
}

.auth-landing .imdi-bg-blob--2 {
  width: 46vw !important;
  height: 46vw !important;
  right: -11vw !important;
  top: -12vw !important;
  background: rgba(99, 91, 255, 0.72) !important;
}

.auth-landing .imdi-bg-blob--3 {
  width: 38vw !important;
  height: 38vw !important;
  left: 34vw !important;
  bottom: -18vw !important;
  background: rgba(255, 255, 255, 0.42) !important;
}

.auth-landing .ambient,
.auth-landing .hero-canvas,
.auth-landing .topbar,
.auth-landing .sidebar,
.auth-landing .sidebar-backdrop {
  display: none !important;
}

.auth-landing .landing-nav {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  min-height: 54px;
  transform: translateX(-50%);
  color: var(--landing-ink);
}

.landing-brand,
.landing-links,
.landing-actions {
  display: flex;
  align-items: center;
}

.landing-brand {
  gap: 10px;
  color: inherit;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.landing-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 12px 30px rgba(52, 84, 160, 0.14);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.landing-brand-mark img {
  width: 27px;
  height: 27px;
  filter: drop-shadow(0 8px 12px rgba(146, 0, 34, 0.18));
}

.landing-links {
  gap: clamp(18px, 2.7vw, 42px);
}

.landing-links a {
  color: rgba(0, 0, 0, 0.78);
  font-size: 14px;
  font-weight: 580;
  letter-spacing: -0.018em;
  text-decoration: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.landing-links a:hover {
  opacity: 0.62;
  transform: translateY(-1px);
}

.landing-actions {
  gap: 10px;
}

.landing-login,
.landing-primary {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 680;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 180ms ease, background 180ms ease;
}

.landing-login {
  background: rgba(255, 255, 255, 0.24);
  color: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.landing-primary {
  background: #050505;
  color: #fff;
  box-shadow: 0 18px 34px rgba(16, 24, 72, 0.18);
}

.landing-login:hover,
.landing-primary:hover {
  transform: translateY(-2px) scale(0.985);
}

.auth-landing .app-shell {
  display: block !important;
  width: 100% !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  background: transparent !important;
}

.auth-landing .app-shell::before {
  display: none !important;
}

.auth-landing .main,
.auth-landing .conversation {
  width: 100% !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

.auth-landing .welcome {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(320px, 0.9fr) minmax(300px, 0.75fr) !important;
  align-items: center !important;
  gap: clamp(22px, 5.4vw, 92px) !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: clamp(108px, 15vh, 160px) clamp(42px, 8vw, 148px) clamp(52px, 9vh, 96px) !important;
  background: transparent !important;
}

.auth-landing .welcome::before {
  display: block !important;
  position: absolute !important;
  inset: clamp(86px, 11vh, 120px) clamp(24px, 4.2vw, 62px) clamp(28px, 5.2vh, 62px) !important;
  z-index: 0 !important;
  content: "" !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: clamp(30px, 4vw, 58px) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.06) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -80px 140px rgba(255, 255, 255, 0.08),
    0 34px 90px rgba(60, 80, 150, 0.15) !important;
  backdrop-filter: blur(32px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.18) !important;
}

.auth-landing .welcome::after {
  display: none !important;
}

.auth-landing .welcome-copyblock,
.auth-landing .hero-stage {
  position: relative !important;
  z-index: 2 !important;
}

.auth-landing .welcome-copyblock {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-self: center !important;
  width: min(520px, 100%) !important;
  max-width: 520px !important;
  text-align: center !important;
}

.auth-landing .welcome-logo {
  display: grid !important;
  width: 94px !important;
  height: 94px !important;
  margin: 0 0 28px !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 26px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.6)),
    rgba(255, 255, 255, 0.62) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 42px rgba(67, 83, 181, 0.2),
    0 0 0 10px rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(24px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.2) !important;
}

.auth-landing .welcome-logo::before {
  display: none !important;
}

.auth-landing .welcome-logo img {
  width: 62px !important;
  height: 62px !important;
  filter:
    drop-shadow(0 12px 16px rgba(128, 0, 42, 0.2))
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.42)) !important;
}

.auth-landing .welcome-kicker {
  margin: 0 0 16px !important;
  color: rgba(0, 0, 0, 0.48) !important;
  font-family: var(--font-system) !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  letter-spacing: 0.2em !important;
  text-shadow: none !important;
}

.auth-landing .welcome-kicker::before,
.auth-landing .welcome h1::after {
  display: none !important;
}

.auth-landing .welcome h1 {
  margin: 0 !important;
  background: none !important;
  color: var(--landing-ink) !important;
  font-family: var(--font-system) !important;
  font-size: clamp(72px, 8.4vw, 128px) !important;
  font-weight: 720 !important;
  letter-spacing: -0.085em !important;
  line-height: 0.92 !important;
  text-shadow: none !important;
}

.auth-landing .welcome-copy {
  display: block !important;
  max-width: 560px !important;
  margin: 24px auto 0 !important;
  color: var(--landing-muted) !important;
  font-size: clamp(18px, 2vw, 23px) !important;
  font-weight: 470 !important;
  line-height: 1.48 !important;
  letter-spacing: -0.022em !important;
}

.auth-landing .auth-panel {
  width: min(430px, 100%) !important;
  margin-top: 30px !important;
  padding: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.44) !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, 0.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 22px 50px rgba(40, 52, 120, 0.14) !important;
  backdrop-filter: blur(24px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.18) !important;
}

.auth-landing .auth-panel::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 58%) !important;
}

.auth-landing .auth-provider-inner {
  min-height: 54px !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle 80px at 80% -50%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.18) !important;
  color: #050505 !important;
  font-size: 15px !important;
  font-weight: 720 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 14px 34px rgba(39, 57, 126, 0.12) !important;
}

.auth-landing .google-auth-button .auth-provider-inner {
  background:
    radial-gradient(circle 80px at 80% -20%, #ffffff, rgba(255, 255, 255, 0.1)),
    rgba(255, 255, 255, 0.18) !important;
}

.auth-landing .apple-auth-button .auth-provider-inner {
  background:
    radial-gradient(circle 80px at 80% -20%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.1)),
    rgba(255, 255, 255, 0.18) !important;
}

.auth-landing .auth-provider-button:hover .auth-provider-inner {
  transform: translateY(-3px) scale(0.985) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  background-color: rgba(255, 255, 255, 0.28) !important;
}

.auth-landing .auth-divider,
.auth-landing .email-auth-form label,
.auth-landing .auth-note {
  color: rgba(0, 0, 0, 0.48) !important;
}

.auth-landing .auth-divider::before,
.auth-landing .auth-divider::after {
  background: rgba(0, 0, 0, 0.14) !important;
}

.auth-landing .email-auth-row {
  border-color: rgba(255, 255, 255, 0.42) !important;
  background: rgba(255, 255, 255, 0.18) !important;
}

.auth-landing .email-auth-row input {
  color: #050505 !important;
}

.auth-landing .email-auth-row input::placeholder {
  color: rgba(0, 0, 0, 0.36) !important;
}

.auth-landing .email-auth-row button {
  background: #050505 !important;
  color: #fff !important;
  border-color: #050505 !important;
}

.auth-landing .hero-stage {
  justify-self: center !important;
  align-self: center !important;
  width: min(34vw, 500px) !important;
  height: min(48vh, 480px) !important;
  min-width: 290px !important;
  min-height: 310px !important;
  margin: 0 !important;
  opacity: 0.9 !important;
  transform: scale(0.84) !important;
  transform-origin: center !important;
  filter: drop-shadow(0 34px 70px rgba(25, 34, 88, 0.22)) !important;
}

.auth-landing .hero-stage::before,
.auth-landing .hero-stage::after,
.auth-landing .cube-stage::before,
.auth-landing .cube-stage::after {
  display: none !important;
}

.auth-landing .auth-cube,
.auth-landing .cube-stage,
.auth-landing .auth-cube-webgl {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 980px) {
  .auth-landing .landing-nav {
    top: 16px;
    width: calc(100% - 28px);
  }

  .landing-links {
    display: none;
  }

  .auth-landing .welcome {
    grid-template-columns: 1fr !important;
    padding: 106px 22px 42px !important;
  }

  .auth-landing .hero-stage {
    order: -1;
    width: min(62vw, 380px) !important;
    height: 280px !important;
    min-height: 260px !important;
    transform: scale(0.76) !important;
  }

  .auth-landing .welcome h1 {
    font-size: clamp(58px, 16vw, 92px) !important;
  }
}

@media (max-width: 560px) {
  .landing-actions {
    display: none;
  }

  .auth-landing .welcome::before {
    inset: 84px 12px 18px !important;
    border-radius: 30px !important;
  }

  .auth-landing .welcome-logo {
    width: 78px !important;
    height: 78px !important;
    border-radius: 22px !important;
  }

  .auth-landing .welcome-logo img {
    width: 52px !important;
    height: 52px !important;
  }

  .auth-landing .auth-panel {
    width: min(390px, calc(100vw - 44px)) !important;
  }
}

/* v20260703-15: Match Apple auth button motion to Google and fix Apple icon rendering. */
.auth-landing .auth-provider-button {
  position: relative !important;
  overflow: hidden !important;
  display: block !important;
  width: 100% !important;
  margin: 0 0 10px !important;
  padding: 2px !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: radial-gradient(circle 92px at 82% -18%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.3) 42%, rgba(255, 255, 255, 0.06) 100%) !important;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.58) inset,
    0 18px 38px rgba(42, 66, 132, 0.14),
    0 3px 0 rgba(80, 95, 128, 0.16) !important;
  cursor: pointer !important;
  transform: translateZ(0) !important;
  transition:
    transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 280ms ease,
    background 280ms ease !important;
}

.auth-landing .auth-provider-button::after {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 1 !important;
  width: 64% !important;
  height: 58% !important;
  border-radius: 999px !important;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.36) !important;
  content: "" !important;
  pointer-events: none !important;
}

.auth-landing .auth-provider-button:hover {
  transform: translateY(-2px) scale(0.985) !important;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.72) inset,
    0 24px 44px rgba(42, 66, 132, 0.18),
    0 4px 0 rgba(80, 95, 128, 0.12) !important;
}

.auth-landing .auth-provider-button:active {
  transform: translateY(0) scale(0.965) !important;
}

.auth-landing .auth-provider-blob {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 1 !important;
  width: 88px !important;
  height: 100% !important;
  border-radius: 20px !important;
  background: radial-gradient(circle 74px at 0% 100%, rgba(255, 110, 110, 0.72), rgba(255, 0, 60, 0.24), transparent 72%) !important;
  box-shadow: -8px 8px 34px rgba(255, 40, 80, 0.22) !important;
  opacity: 0.7 !important;
  pointer-events: none !important;
}

.auth-landing .apple-auth-blob {
  background: radial-gradient(circle 74px at 0% 100%, rgba(255, 255, 255, 0.76), rgba(90, 112, 255, 0.18), transparent 72%) !important;
  box-shadow: -8px 8px 34px rgba(84, 108, 255, 0.16) !important;
}

.auth-landing .auth-provider-inner {
  position: relative !important;
  z-index: 2 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  min-height: 54px !important;
  width: 100% !important;
  padding: 0 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle 92px at 82% -44%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.2) !important;
  color: #050505 !important;
  font-family: var(--font-system) !important;
  font-size: 15px !important;
  font-weight: 740 !important;
  letter-spacing: -0.012em !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -14px 28px rgba(255, 255, 255, 0.14) !important;
  transform: none !important;
  transition:
    border-color 240ms ease,
    background 240ms ease !important;
}

.auth-landing .auth-provider-inner::before {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  border-radius: inherit !important;
  background: radial-gradient(circle 78px at 0% 100%, rgba(255, 80, 80, 0.14), rgba(255, 0, 80, 0.05), transparent 70%) !important;
  content: "" !important;
  pointer-events: none !important;
}

.auth-landing .apple-auth-inner::before {
  background: radial-gradient(circle 78px at 0% 100%, rgba(255, 255, 255, 0.22), rgba(96, 116, 255, 0.06), transparent 70%) !important;
}

.auth-landing .auth-provider-button:hover .auth-provider-inner {
  transform: none !important;
  border-color: rgba(255, 255, 255, 0.76) !important;
  background:
    radial-gradient(circle 92px at 82% -44%, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.28) !important;
}

.auth-landing .google-icon,
.auth-landing .apple-icon,
.auth-landing .auth-provider-inner > span {
  position: relative !important;
  z-index: 1 !important;
}

.auth-landing .apple-icon {
  display: block !important;
  width: 18px !important;
  height: 22px !important;
  fill: currentColor !important;
  transform: translateY(-1px) !important;
}

/* v20260703-16: Uiverse-inspired animated Google continue button, scoped safely. */
.auth-landing .google-auth-button {
  --google-btn-radius: 24px;
  --google-btn-padding: 4px;
  --google-highlight-hue: 210deg;
  isolation: isolate !important;
  padding: 4px !important;
  border-radius: var(--google-btn-radius) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.18)),
    #f5f8ff !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.82),
    inset 0 3px 7px rgba(255, 255, 255, 0.52),
    inset 0 14px 22px rgba(255, 255, 255, 0.28),
    0 18px 32px rgba(64, 82, 148, 0.16),
    0 4px 0 rgba(80, 95, 128, 0.18) !important;
}

.auth-landing .google-auth-button::before {
  position: absolute !important;
  inset: calc(0px - var(--google-btn-padding)) !important;
  z-index: -1 !important;
  border-radius: calc(var(--google-btn-radius) + var(--google-btn-padding)) !important;
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.42)) !important;
  box-shadow:
    0 -8px 8px -6px rgba(255, 255, 255, 0) inset,
    0 -16px 16px -8px rgba(96, 170, 255, 0) inset,
    1px 1px 1px rgba(255, 255, 255, 0.55),
    2px 2px 2px rgba(255, 255, 255, 0.28),
    -1px -1px 1px rgba(0, 0, 0, 0.08),
    -2px -2px 2px rgba(0, 0, 0, 0.04) !important;
  content: "" !important;
  pointer-events: none !important;
  transition: box-shadow 0.4s ease, filter 0.4s ease !important;
}

.auth-landing .google-auth-button::after {
  inset: 4px !important;
  width: auto !important;
  height: auto !important;
  z-index: 3 !important;
  border-radius: calc(var(--google-btn-radius) - 4px) !important;
  background-image: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.9),
    hsl(var(--google-highlight-hue), 100%, 76%),
    hsla(var(--google-highlight-hue), 100%, 72%, 0.45) 8%,
    transparent 44%
  ) !important;
  box-shadow: none !important;
  opacity: 0 !important;
  content: "" !important;
  pointer-events: none !important;
  transition: opacity 0.4s ease, filter 0.4s ease !important;
  mask-image: linear-gradient(0deg, #fff, transparent 72%) !important;
  -webkit-mask-image: linear-gradient(0deg, #fff, transparent 72%) !important;
}

.auth-landing .google-auth-button:hover,
.auth-landing .google-auth-button:focus-visible {
  transform: translateY(-2px) scale(0.985) !important;
  border-color: hsla(var(--google-highlight-hue), 100%, 70%, 0.42) !important;
}

.auth-landing .google-auth-button:hover::before,
.auth-landing .google-auth-button:focus-visible::before {
  box-shadow:
    0 -8px 10px -6px rgba(255, 255, 255, 0.84) inset,
    0 -16px 18px -8px hsla(var(--google-highlight-hue), 100%, 70%, 0.26) inset,
    1px 1px 1px rgba(255, 255, 255, 0.62),
    2px 2px 2px rgba(255, 255, 255, 0.24),
    -1px -1px 1px rgba(0, 0, 0, 0.08),
    -2px -2px 2px rgba(0, 0, 0, 0.04) !important;
}

.auth-landing .google-auth-button:hover::after,
.auth-landing .google-auth-button:focus-visible::after {
  opacity: 0.82 !important;
}

.auth-landing .google-auth-button:active {
  transform: translateY(0) scale(0.96) !important;
  background-color: hsla(var(--google-highlight-hue), 50%, 92%, 0.8) !important;
}

.auth-landing .google-auth-button:active::after {
  opacity: 1 !important;
  filter: brightness(1.35) !important;
}

.auth-landing .google-auth-button .google-auth-blob {
  width: 90px !important;
  opacity: 0.62 !important;
  background: radial-gradient(circle 76px at 0% 100%, rgba(255, 86, 86, 0.5), rgba(255, 0, 60, 0.18), transparent 72%) !important;
}

.auth-landing .google-auth-button .google-auth-inner {
  min-height: 55px !important;
  gap: 13px !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle 92px at 82% -44%, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.68) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 12px 22px rgba(255, 255, 255, 0.24),
    inset 0 -14px 26px rgba(60, 79, 130, 0.08) !important;
}

.auth-landing .google-auth-button .google-icon {
  animation: imdi-google-icon-flicker 2s linear infinite;
  animation-delay: 0.5s;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

@keyframes imdi-google-icon-flicker {
  50% {
    opacity: 0.42;
  }
}

.auth-landing .google-auth-button:hover .google-icon,
.auth-landing .google-auth-button:focus-visible .google-icon {
  animation: none;
  filter:
    drop-shadow(0 0 5px hsla(var(--google-highlight-hue), 100%, 70%, 0.76))
    drop-shadow(0 -4px 7px rgba(255, 255, 255, 0.72));
  transform: translateY(-1px);
}

.auth-landing .google-auth-text {
  position: relative !important;
  z-index: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  min-width: 136px !important;
  height: 20px !important;
  overflow: hidden !important;
  color: #050505 !important;
  font-weight: 780 !important;
}

.auth-landing .google-auth-text-line {
  position: absolute !important;
  left: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  white-space: nowrap !important;
}

.auth-landing .google-auth-text-line--one {
  opacity: 1 !important;
  animation: imdi-google-text-in 1s ease-in-out forwards !important;
}

.auth-landing .google-auth-text-line--two {
  opacity: 0 !important;
}

@keyframes imdi-google-text-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.auth-landing .google-btn-letter {
  position: relative !important;
  display: inline-block !important;
  color: rgba(5, 5, 5, 0.56) !important;
  animation: imdi-google-letter 2s ease-in-out infinite !important;
  transition: color 0.4s ease, text-shadow 0.4s ease, opacity 0.4s ease !important;
}

.auth-landing .google-btn-space {
  display: inline-block !important;
  width: 0.34em !important;
}

@keyframes imdi-google-letter {
  50% {
    color: #050505;
    text-shadow:
      0 0 3px rgba(255, 255, 255, 0.88),
      0 0 10px hsla(var(--google-highlight-hue), 100%, 70%, 0.22);
  }
}

.auth-landing .google-auth-button:focus-visible .google-auth-text-line--one,
.auth-landing .google-auth-button:active .google-auth-text-line--one {
  animation: imdi-google-line-hide 0.32s ease-in-out forwards !important;
  animation-delay: 0.65s !important;
}

.auth-landing .google-auth-button:focus-visible .google-auth-text-line--two,
.auth-landing .google-auth-button:active .google-auth-text-line--two {
  animation: imdi-google-line-show 0.32s ease-in-out forwards !important;
  animation-delay: 0.65s !important;
}

@keyframes imdi-google-line-hide {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes imdi-google-line-show {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-landing .google-auth-button:focus-visible .google-btn-letter,
.auth-landing .google-auth-button:active .google-btn-letter {
  animation:
    imdi-google-focused-letter 1s ease-in-out forwards,
    imdi-google-letter 1.2s ease-in-out infinite !important;
}

@keyframes imdi-google-focused-letter {
  0%,
  100% {
    filter: blur(0);
    transform: scale(1);
  }

  50% {
    filter: blur(8px) brightness(1.4) drop-shadow(-22px 10px 10px hsla(var(--google-highlight-hue), 100%, 70%, 0.45));
    transform: scale(1.8);
  }
}

.auth-landing .google-auth-button:active .google-btn-letter {
  color: #050505 !important;
  text-shadow: 0 0 2px hsla(var(--google-highlight-hue), 100%, 72%, 0.72) !important;
}

.auth-landing .google-btn-letter:nth-child(1) { animation-delay: 0s !important; }
.auth-landing .google-btn-letter:nth-child(2) { animation-delay: 0.08s !important; }
.auth-landing .google-btn-letter:nth-child(3) { animation-delay: 0.16s !important; }
.auth-landing .google-btn-letter:nth-child(4) { animation-delay: 0.24s !important; }
.auth-landing .google-btn-letter:nth-child(5) { animation-delay: 0.32s !important; }
.auth-landing .google-btn-letter:nth-child(6) { animation-delay: 0.4s !important; }
.auth-landing .google-btn-letter:nth-child(8) { animation-delay: 0.48s !important; }
.auth-landing .google-btn-letter:nth-child(9) { animation-delay: 0.56s !important; }
.auth-landing .google-btn-letter:nth-child(10) { animation-delay: 0.64s !important; }
.auth-landing .google-btn-letter:nth-child(12) { animation-delay: 0.72s !important; }
.auth-landing .google-btn-letter:nth-child(13) { animation-delay: 0.8s !important; }
.auth-landing .google-btn-letter:nth-child(14) { animation-delay: 0.88s !important; }
.auth-landing .google-btn-letter:nth-child(15) { animation-delay: 0.96s !important; }
.auth-landing .google-btn-letter:nth-child(16) { animation-delay: 1.04s !important; }
.auth-landing .google-btn-letter:nth-child(18) { animation-delay: 1.12s !important; }
.auth-landing .google-btn-letter:nth-child(19) { animation-delay: 1.2s !important; }

@media (prefers-reduced-motion: reduce) {
  .auth-landing .google-auth-button .google-icon,
  .auth-landing .google-btn-letter,
  .auth-landing .google-auth-text-line {
    animation: none !important;
  }
}

/* v20260703-18: premium dark login. Light theme is disabled on auth landing. */
html,
html[data-theme="light"],
html[data-theme="dark"] {
  color-scheme: dark !important;
}

body.auth-landing {
  --auth-bg-main: #0B0D10;
  --auth-bg-mid: #111318;
  --auth-bg-soft: #181B22;
  --auth-burgundy: #B11E43;
  --auth-burgundy-hover: #C82652;
  --auth-text: #FFFFFF;
  --auth-muted: #B8BCC8;
  min-height: 100svh !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 80% 20%, rgba(177, 30, 67, 0.18), transparent 40%),
    linear-gradient(135deg, #0B0D10 0%, #111318 48%, #181B22 100%) !important;
  color: var(--auth-text) !important;
}

body.auth-landing::before,
body.auth-landing::after,
.auth-landing .ambient,
.auth-landing .imdi-bg-blob,
.auth-landing .hero-canvas,
.auth-landing .hero-orbit,
.auth-landing .hero-shine {
  display: none !important;
  opacity: 0 !important;
}

.auth-landing .imdi-bg-scene {
  position: fixed !important;
  inset: 0 !important;
  z-index: -5 !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 80% 20%, rgba(177, 30, 67, 0.18), transparent 40%),
    linear-gradient(135deg, #0B0D10 0%, #111318 52%, #181B22 100%) !important;
}

.auth-landing .imdi-bg-scene::before {
  display: block !important;
  position: absolute !important;
  inset: -20% -10% !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.055), transparent 34%),
    radial-gradient(circle at 62% 88%, rgba(255, 255, 255, 0.032), transparent 42%) !important;
  filter: blur(12px) !important;
  opacity: 1 !important;
  content: "" !important;
}

.auth-landing .imdi-bg-scene::after {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.035), transparent 32%, rgba(255, 255, 255, 0.025) 68%, transparent) !important;
  opacity: 0.34 !important;
  content: "" !important;
}

.auth-landing .app-shell {
  min-height: 100svh !important;
  background: transparent !important;
}

.auth-landing .main {
  min-height: 100svh !important;
  background: transparent !important;
}

.auth-landing .landing-nav {
  color: var(--auth-text) !important;
  background: rgba(11, 13, 16, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(22px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.12) !important;
}

.auth-landing .landing-brand,
.auth-landing .landing-links a,
.auth-landing .landing-login {
  color: rgba(255, 255, 255, 0.86) !important;
}

.auth-landing .landing-links a:hover,
.auth-landing .landing-login:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.auth-landing .landing-brand-mark,
.auth-landing .welcome-logo {
  background: rgba(22, 24, 30, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.38),
    0 0 42px rgba(177, 30, 67, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(22px) saturate(1.16) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.16) !important;
}

.auth-landing .landing-primary,
.auth-landing .email-auth-row button {
  background: var(--auth-burgundy) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
  box-shadow:
    0 16px 42px rgba(177, 30, 67, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

.auth-landing .landing-primary:hover,
.auth-landing .email-auth-row button:hover {
  background: var(--auth-burgundy-hover) !important;
  transform: translateY(-1px) !important;
}

.auth-landing .topbar,
.auth-landing .composer-area,
.auth-landing .message-list,
.auth-landing .suggestions,
.auth-landing .history-block,
.auth-landing .theme-action {
  display: none !important;
}

.auth-landing .conversation {
  min-height: 100svh !important;
  padding: 0 !important;
  background: transparent !important;
}

.auth-landing .welcome {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(320px, 0.76fr) minmax(420px, 1.06fr) !important;
  align-items: center !important;
  gap: clamp(22px, 3vw, 58px) !important;
  width: min(1440px, calc(100vw - 56px)) !important;
  min-height: min(790px, calc(100svh - 96px)) !important;
  margin: 72px auto 24px !important;
  padding: clamp(44px, 5.2vw, 92px) clamp(34px, 5vw, 86px) !important;
  overflow: visible !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: clamp(28px, 4vw, 52px) !important;
  background:
    linear-gradient(135deg, rgba(24, 27, 34, 0.54), rgba(11, 13, 16, 0.24)),
    rgba(11, 13, 16, 0.36) !important;
  box-shadow:
    0 44px 120px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(22px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.08) !important;
}

.auth-landing .welcome::before,
.auth-landing .welcome::after {
  display: none !important;
}

.auth-landing .welcome-copyblock {
  position: relative !important;
  z-index: 3 !important;
  order: 1 !important;
  width: min(460px, 100%) !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.auth-landing .welcome-logo {
  width: 88px !important;
  height: 88px !important;
  margin: 0 0 22px !important;
  border-radius: 28px !important;
}

.auth-landing .welcome-logo img {
  width: 58px !important;
  height: 58px !important;
  filter: drop-shadow(0 10px 22px rgba(177, 30, 67, 0.22)) !important;
}

.auth-landing .welcome h1 {
  margin: 0 !important;
  color: var(--auth-text) !important;
  font-family: var(--font-system) !important;
  font-size: clamp(54px, 7.4vw, 104px) !important;
  font-weight: 720 !important;
  line-height: 0.94 !important;
  letter-spacing: -0.07em !important;
  text-shadow: 0 18px 70px rgba(0, 0, 0, 0.34) !important;
}

.auth-landing .welcome-copy {
  max-width: 420px !important;
  margin: 18px 0 26px !important;
  color: var(--auth-muted) !important;
  font-size: clamp(17px, 1.55vw, 22px) !important;
  font-weight: 460 !important;
  line-height: 1.5 !important;
  letter-spacing: -0.025em !important;
}

.auth-landing .auth-panel {
  width: min(430px, 100%) !important;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 28px !important;
  background: rgba(22, 24, 30, 0.72) !important;
  color: #FFFFFF !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(24px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.18) !important;
}

.auth-landing .auth-provider-button {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.auth-landing .auth-provider-button::before,
.auth-landing .auth-provider-button::after {
  opacity: 0 !important;
}

.auth-landing .auth-provider-blob {
  background: radial-gradient(circle 74px at 0% 100%, rgba(177, 30, 67, 0.3), rgba(177, 30, 67, 0.1), transparent 70%) !important;
  box-shadow: -8px 8px 34px rgba(177, 30, 67, 0.18) !important;
  opacity: 0.72 !important;
}

.auth-landing .auth-provider-inner,
.auth-landing .google-auth-button .google-auth-inner,
.auth-landing .apple-auth-button .auth-provider-inner {
  min-height: 56px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -18px 28px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(16px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.1) !important;
}

.auth-landing .auth-provider-inner::before,
.auth-landing .apple-auth-inner::before,
.auth-landing .google-auth-inner::before {
  background: radial-gradient(circle 70px at 0% 100%, rgba(177, 30, 67, 0.16), transparent 72%) !important;
}

.auth-landing .auth-provider-button:hover,
.auth-landing .auth-provider-button:focus-visible {
  transform: translateY(-2px) scale(0.985) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(177, 30, 67, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

.auth-landing .auth-provider-button:hover .auth-provider-inner,
.auth-landing .auth-provider-button:focus-visible .auth-provider-inner {
  border-color: rgba(255, 255, 255, 0.16) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.1) !important;
}

.auth-landing .google-auth-button {
  --google-highlight-hue: 344deg !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.auth-landing .google-auth-text,
.auth-landing .auth-provider-inner > span,
.auth-landing .apple-icon {
  color: #FFFFFF !important;
}

.auth-landing .google-btn-letter {
  color: rgba(255, 255, 255, 0.68) !important;
  animation-name: imdi-google-letter-dark !important;
}

@keyframes imdi-google-letter-dark {
  50% {
    color: #FFFFFF;
    text-shadow:
      0 0 4px rgba(255, 255, 255, 0.56),
      0 0 12px rgba(177, 30, 67, 0.28);
  }
}

.auth-landing .auth-divider {
  color: rgba(184, 188, 200, 0.72) !important;
}

.auth-landing .auth-divider::before,
.auth-landing .auth-divider::after {
  background: rgba(255, 255, 255, 0.08) !important;
}

.auth-landing .email-auth-form label,
.auth-landing .auth-note {
  color: rgba(184, 188, 200, 0.78) !important;
}

.auth-landing .email-auth-row {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.auth-landing .email-auth-row input {
  color: #FFFFFF !important;
}

.auth-landing .email-auth-row input::placeholder {
  color: rgba(184, 188, 200, 0.52) !important;
}

.auth-landing .sidebar {
  background:
    linear-gradient(180deg, rgba(24, 27, 34, 0.74), rgba(11, 13, 16, 0.78)),
    rgba(11, 13, 16, 0.62) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 20px 0 80px rgba(0, 0, 0, 0.36) !important;
  backdrop-filter: blur(24px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.12) !important;
}

.auth-landing .sidebar-search,
.auth-landing .menu-item,
.auth-landing .sidebar-profile,
.auth-landing .status-card {
  background: rgba(255, 255, 255, 0.065) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
}

.auth-landing .menu-item.active {
  background: rgba(255, 255, 255, 0.1) !important;
}

.auth-landing .status-card {
  display: none !important;
}

.auth-landing .hero-stage {
  position: relative !important;
  z-index: 2 !important;
  order: 2 !important;
  align-self: center !important;
  justify-self: center !important;
  width: min(46vw, 680px) !important;
  height: min(68vh, 680px) !important;
  min-width: 440px !important;
  min-height: 480px !important;
  margin: 0 !important;
  transform: translate(-5.5vw, -4.2vh) scale(1.06) !important;
  filter:
    drop-shadow(0 34px 92px rgba(177, 30, 67, 0.24))
    drop-shadow(0 42px 84px rgba(0, 0, 0, 0.48)) !important;
  cursor: grab !important;
}

.auth-landing .hero-stage::after {
  display: block !important;
  position: absolute !important;
  inset: 2% -8% -6% !important;
  z-index: 0 !important;
  border-radius: 999px !important;
  background: radial-gradient(circle, rgba(177, 30, 67, 0.2), rgba(177, 30, 67, 0.08) 34%, transparent 66%) !important;
  filter: blur(28px) !important;
  opacity: 0.9 !important;
  content: "" !important;
  pointer-events: none !important;
}

.auth-landing .hero-stage:active {
  cursor: grabbing !important;
}

.auth-landing .cube-stage,
.auth-landing .auth-cube,
.auth-landing .auth-cube-webgl {
  position: relative !important;
  z-index: 1 !important;
}

.auth-landing .auth-cube-webgl {
  cursor: grab !important;
  touch-action: none !important;
}

.auth-landing .auth-cube-webgl.dragging {
  cursor: grabbing !important;
}

.auth-landing .cube-stage.webgl-ready::before,
.auth-landing .cube-stage.webgl-ready::after {
  display: none !important;
}

@media (max-width: 1180px) {
  .auth-landing .welcome {
    grid-template-columns: minmax(300px, 0.84fr) minmax(360px, 1fr) !important;
    width: min(1180px, calc(100vw - 36px)) !important;
    padding-inline: clamp(28px, 4vw, 56px) !important;
  }

  .auth-landing .hero-stage {
    width: min(48vw, 560px) !important;
    height: min(58vh, 560px) !important;
    min-width: 360px !important;
    min-height: 390px !important;
    transform: translate(-3.5vw, -3vh) scale(1.03) !important;
  }
}

@media (max-width: 920px) {
  body.auth-landing {
    overflow: auto !important;
  }

  .auth-landing .landing-nav {
    padding-inline: 18px !important;
  }

  .auth-landing .landing-links {
    display: none !important;
  }

  .auth-landing .welcome {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: min(680px, calc(100vw - 24px)) !important;
    min-height: auto !important;
    margin-top: 78px !important;
    padding: 30px 22px 32px !important;
  }

  .auth-landing .welcome-copyblock {
    text-align: center !important;
    justify-self: center !important;
    width: min(430px, 100%) !important;
  }

  .auth-landing .welcome-logo {
    margin-inline: auto !important;
  }

  .auth-landing .welcome-copy {
    margin-inline: auto !important;
  }

  .auth-landing .hero-stage {
    order: 0 !important;
    width: min(82vw, 430px) !important;
    height: 330px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    transform: translate(0, -8px) scale(1) !important;
  }
}

@media (max-width: 560px) {
  .auth-landing .landing-actions {
    display: none !important;
  }

  .auth-landing .welcome {
    width: calc(100vw - 16px) !important;
    border-radius: 30px !important;
  }

  .auth-landing .welcome h1 {
    font-size: clamp(48px, 17vw, 74px) !important;
  }

  .auth-landing .hero-stage {
    height: 270px !important;
  }

  .auth-landing .auth-panel {
    padding: 14px !important;
    border-radius: 24px !important;
  }
}

/* v20260703-20: unified premium dark system. */
body.auth-landing {
  --ui-bg: #0B0B0D;
  --ui-bg-2: #111114;
  --ui-surface: rgba(255, 255, 255, 0.04);
  --ui-surface-hover: rgba(255, 255, 255, 0.09);
  --ui-border: rgba(255, 255, 255, 0.08);
  --ui-border-hover: rgba(255, 255, 255, 0.14);
  --ui-title: #FFFFFF;
  --ui-text: rgba(255, 255, 255, 0.82);
  --ui-muted: rgba(255, 255, 255, 0.55);
  --ui-placeholder: rgba(255, 255, 255, 0.38);
  --ui-accent: #B61F43;
  --ui-accent-hover: #C9264E;
  --ui-accent-active: #971938;
  --ui-ease: cubic-bezier(.22, .61, .36, 1);
  overflow: auto !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.035), transparent 34%),
    linear-gradient(135deg, #0B0B0D 0%, #101013 52%, #111114 100%) !important;
  color: var(--ui-text) !important;
}

body.auth-landing *,
body.auth-landing *::before,
body.auth-landing *::after {
  transition: all .25s var(--ui-ease) !important;
}

.auth-landing .imdi-bg-scene {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.035), transparent 36%),
    linear-gradient(135deg, #0B0B0D 0%, #111114 100%) !important;
}

.auth-landing .imdi-bg-scene::before,
.auth-landing .imdi-bg-scene::after,
.auth-landing .auth-provider-blob,
.auth-landing .google-auth-button::before,
.auth-landing .google-auth-button::after,
.auth-landing .auth-provider-button::before,
.auth-landing .auth-provider-button::after {
  display: none !important;
  opacity: 0 !important;
}

.auth-landing .landing-nav {
  top: 0 !important;
  width: 100% !important;
  min-height: 70px !important;
  padding: 0 clamp(22px, 5vw, 72px) !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--ui-text) !important;
  transform: translateX(-50%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.auth-landing .landing-nav.is-scrolled {
  background: rgba(11, 11, 13, 0.82) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(18px) saturate(1.05) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.05) !important;
}

.auth-landing .landing-brand,
.auth-landing .landing-links a,
.auth-landing .landing-login {
  color: var(--ui-text) !important;
}

.auth-landing .landing-brand-mark,
.auth-landing .welcome-logo {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--ui-border) !important;
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(182, 31, 67, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

.auth-landing .welcome-logo img,
.auth-landing .landing-brand-mark img {
  filter: drop-shadow(0 8px 18px rgba(182, 31, 67, 0.13)) !important;
}

.auth-landing .app-shell,
.auth-landing .main,
.auth-landing .conversation {
  background: transparent !important;
}

.auth-landing .welcome {
  grid-template-columns: minmax(420px, 0.96fr) minmax(320px, 0.72fr) !important;
  gap: clamp(52px, 7vw, 124px) !important;
  width: min(1360px, calc(100vw - 56px)) !important;
  min-height: 100svh !important;
  margin: 0 auto !important;
  padding: clamp(112px, 15vh, 170px) clamp(28px, 5vw, 76px) clamp(58px, 9vh, 98px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.auth-landing .welcome-copyblock {
  width: min(480px, 100%) !important;
  text-align: left !important;
}

.auth-landing .welcome-logo {
  width: 76px !important;
  height: 76px !important;
  margin-bottom: 24px !important;
  border-radius: 24px !important;
}

.auth-landing .welcome-logo img {
  width: 50px !important;
  height: 50px !important;
}

.auth-landing .welcome h1 {
  color: var(--ui-title) !important;
  font-size: clamp(58px, 6.4vw, 94px) !important;
  font-weight: 720 !important;
  line-height: 0.94 !important;
  letter-spacing: -0.065em !important;
  text-shadow: none !important;
}

.auth-landing .welcome-copy {
  max-width: 430px !important;
  margin: 18px 0 30px !important;
  color: var(--ui-muted) !important;
  font-size: clamp(17px, 1.35vw, 20px) !important;
  line-height: 1.55 !important;
}

.auth-landing .auth-panel {
  width: min(420px, 100%) !important;
  padding: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 26px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(22px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.08) !important;
}

.auth-landing button,
.auth-landing .landing-primary,
.auth-landing .landing-login,
.auth-landing .auth-provider-button,
.auth-landing .email-auth-row button {
  border-radius: 18px !important;
  transition: all .25s var(--ui-ease) !important;
}

.auth-landing .auth-provider-button,
.auth-landing .google-auth-button,
.auth-landing .apple-auth-button {
  display: block !important;
  width: 100% !important;
  min-height: 58px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16) !important;
  color: #FFFFFF !important;
}

.auth-landing .auth-provider-inner,
.auth-landing .google-auth-button .google-auth-inner,
.auth-landing .apple-auth-button .auth-provider-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 56px !important;
  padding: 0 24px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 17px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #FFFFFF !important;
  font-size: 15px !important;
  font-weight: 680 !important;
  letter-spacing: -0.012em !important;
}

.auth-landing .auth-provider-inner::before,
.auth-landing .google-auth-inner::before,
.auth-landing .apple-auth-inner::before {
  display: none !important;
}

.auth-landing .auth-provider-label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: max-content !important;
  overflow: visible !important;
  color: #FFFFFF !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.auth-landing .google-icon {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  animation: none !important;
  filter: none !important;
  transform: none !important;
}

.auth-landing .apple-icon {
  width: 17px !important;
  height: 21px !important;
  flex: 0 0 17px !important;
  color: #FFFFFF !important;
  fill: currentColor !important;
  filter: none !important;
  transform: translateY(-1px) !important;
}

.auth-landing .auth-provider-button:hover,
.auth-landing .auth-provider-button:focus-visible,
.auth-landing .landing-login:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: var(--ui-border-hover) !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22) !important;
  transform: translateY(-1px) !important;
}

.auth-landing .auth-provider-button:active,
.auth-landing .landing-login:active {
  transform: translateY(0) !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

.auth-landing .landing-primary,
.auth-landing .email-auth-row button {
  background: var(--ui-accent) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 20px rgba(182, 31, 67, .18) !important;
}

.auth-landing .landing-primary:hover,
.auth-landing .email-auth-row button:hover {
  background: var(--ui-accent-hover) !important;
  box-shadow: 0 8px 20px rgba(182, 31, 67, .18) !important;
  transform: translateY(-1px) !important;
}

.auth-landing .landing-primary:active,
.auth-landing .email-auth-row button:active {
  background: var(--ui-accent-active) !important;
  transform: translateY(0) !important;
}

.auth-landing .auth-divider {
  color: var(--ui-muted) !important;
  font-size: 12px !important;
}

.auth-landing .auth-divider::before,
.auth-landing .auth-divider::after {
  background: var(--ui-border) !important;
}

.auth-landing .email-auth-form label {
  color: var(--ui-muted) !important;
  font-size: 12px !important;
  font-weight: 620 !important;
}

.auth-landing .email-auth-row {
  min-height: 56px !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: none !important;
}

.auth-landing .email-auth-row:focus-within {
  border-color: var(--ui-border-hover) !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

.auth-landing .email-auth-row input {
  color: var(--ui-text) !important;
  font-size: 15px !important;
}

.auth-landing .email-auth-row input::placeholder {
  color: var(--ui-placeholder) !important;
}

.auth-landing .email-auth-row button {
  min-height: 44px !important;
  margin-right: 6px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
}

.auth-landing .auth-note {
  max-width: 330px !important;
  margin: 12px auto 0 !important;
  color: rgba(255, 255, 255, 0.46) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  text-align: center !important;
}

.auth-landing .hero-stage {
  width: min(36vw, 540px) !important;
  height: min(54vh, 540px) !important;
  min-width: 330px !important;
  min-height: 360px !important;
  transform: translate(-1.5vw, -1.2vh) scale(0.93) !important;
  filter:
    drop-shadow(0 26px 54px rgba(0, 0, 0, 0.42))
    drop-shadow(0 12px 28px rgba(182, 31, 67, 0.08)) !important;
}

.auth-landing .hero-stage::after {
  inset: 14% 6% 10% !important;
  background: radial-gradient(circle, rgba(182, 31, 67, 0.08), transparent 64%) !important;
  filter: blur(24px) !important;
  opacity: 0.55 !important;
}

.auth-cube3d-core {
  filter:
    drop-shadow(0 28px 58px rgba(0, 0, 0, 0.54))
    drop-shadow(0 0 18px rgba(182, 31, 67, 0.10)) !important;
}

.auth-face {
  border-color: rgba(255, 255, 255, 0.10) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 30%),
    #111114 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -18px 32px rgba(0, 0, 0, 0.28) !important;
}

.auth-face.ruby {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 34%),
    #B61F43 !important;
}

.auth-face.satin,
.auth-face.grid {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 34%),
    #6E162C !important;
}

.auth-face.brushed {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 34%),
    #181B22 !important;
}

.auth-face::before {
  background: linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.11), transparent 64%) !important;
  opacity: 0.34 !important;
}

.auth-face-stamp {
  color: rgba(255, 255, 255, 0.76) !important;
  text-shadow: none !important;
}

@media (max-width: 1180px) {
  .auth-landing .welcome {
    grid-template-columns: minmax(360px, 0.96fr) minmax(300px, 0.72fr) !important;
    gap: clamp(34px, 5vw, 76px) !important;
  }

  .auth-landing .hero-stage {
    width: min(38vw, 480px) !important;
    height: min(48vh, 480px) !important;
    min-width: 300px !important;
    min-height: 330px !important;
    transform: translate(0, -1vh) scale(0.9) !important;
  }
}

@media (max-width: 920px) {
  .auth-landing .welcome {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: min(680px, calc(100vw - 24px)) !important;
    min-height: auto !important;
    padding-top: 88px !important;
  }

  .auth-landing .welcome-copyblock {
    text-align: center !important;
    margin-inline: auto !important;
  }

  .auth-landing .welcome-logo,
  .auth-landing .welcome-copy {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .auth-landing .hero-stage {
    order: 0 !important;
    width: min(76vw, 360px) !important;
    height: 255px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    transform: translateY(-4px) scale(0.88) !important;
  }
}

@media (max-width: 560px) {
  .auth-landing .welcome {
    width: calc(100vw - 18px) !important;
    padding: 82px 14px 30px !important;
  }

  .auth-landing .auth-provider-inner,
  .auth-landing .google-auth-button .google-auth-inner,
  .auth-landing .apple-auth-button .auth-provider-inner {
    min-height: 54px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
  }

  .auth-landing .email-auth-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 10px !important;
  }

  .auth-landing .email-auth-row button {
    width: 100% !important;
    margin: 0 !important;
  }
}

/* v20260703-22: cube interaction surface stays live; dragging adds to auto motion. */
.auth-landing .hero-stage,
.auth-landing .cube-stage,
.auth-landing .auth-cube,
.auth-landing .auth-cube-webgl {
  pointer-events: auto !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  touch-action: none !important;
}

.auth-landing .cube-stage,
.auth-landing .auth-cube-webgl {
  cursor: grab !important;
}

.auth-landing .cube-stage.dragging,
.auth-landing .auth-cube-webgl.dragging {
  cursor: grabbing !important;
}

/* v20260704-1: after sign-in, switch to a clean ChatGPT-style chat surface. */
body.auth-landing.chat-mode {
  overflow: hidden !important;
  background: #000 !important;
  color: #f4f4f5 !important;
}

body.auth-landing.chat-mode::before,
body.auth-landing.chat-mode::after,
.chat-mode .landing-nav,
.chat-mode .imdi-bg-scene,
.chat-mode .ambient,
.chat-mode .intro,
.chat-mode .hero-stage,
.chat-mode .auth-panel,
.chat-mode .suggestions,
.chat-mode .hero-info-card,
.chat-mode .hero-bottom-note {
  display: none !important;
}

.chat-mode .app-shell {
  display: grid !important;
  grid-template-columns: 258px minmax(0, 1fr) !important;
  height: 100dvh !important;
  background: #000 !important;
}

.chat-mode .app-shell::before {
  display: none !important;
}

.chat-mode .sidebar {
  display: flex !important;
  position: relative !important;
  width: 258px !important;
  padding: 8px 8px 12px !important;
  border-right: 1px solid #2a2a2a !important;
  background: #171717 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.chat-mode .sidebar::before,
.chat-mode .sidebar-window,
.chat-mode .theme-action,
.chat-mode .status-card {
  display: none !important;
}

.chat-mode .brand-row {
  height: 42px !important;
  margin: 0 0 8px !important;
  padding: 0 4px !important;
}

.chat-mode .icon-button {
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #ececec !important;
  box-shadow: none !important;
}

.chat-mode .icon-button:hover {
  background: #2a2a2a !important;
}

.chat-mode .sidebar-search {
  display: flex !important;
  height: 34px !important;
  margin: 0 0 8px !important;
  padding: 0 10px !important;
  border: 1px solid #303030 !important;
  border-radius: 9px !important;
  background: #202020 !important;
  box-shadow: none !important;
}

.chat-mode .sidebar-search input {
  color: #f5f5f5 !important;
  font-size: 14px !important;
}

.chat-mode .sidebar-search input::placeholder {
  color: #9b9b9b !important;
}

.chat-mode .sidebar-menu {
  display: grid !important;
  gap: 2px !important;
  margin: 0 !important;
}

.chat-mode .menu-item,
.chat-mode .sidebar-action {
  min-height: 36px !important;
  padding: 8px 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #f3f3f3 !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.chat-mode .menu-item.active,
.chat-mode .menu-item:hover,
.chat-mode .sidebar-action:hover {
  background: #2a2a2a !important;
  color: #fff !important;
}

.chat-mode .menu-item svg {
  width: 18px !important;
  stroke-width: 2 !important;
}

.chat-mode .brand-mark {
  width: 22px !important;
  height: 22px !important;
  filter: none !important;
}

.chat-mode .history-block {
  margin-top: 22px !important;
}

.chat-mode .eyebrow {
  margin: 0 10px 8px !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 760 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}

.chat-mode .history-list {
  gap: 2px !important;
  max-height: calc(100dvh - 360px) !important;
}

.chat-mode .history-item,
.chat-mode .empty-history {
  color: #c8c8c8 !important;
  font-size: 14px !important;
}

.chat-mode .history-entry:hover,
.chat-mode .history-entry:focus-within,
.chat-mode .history-item:hover,
.chat-mode .history-item.active {
  background: #242424 !important;
  color: #fff !important;
}

.chat-mode .sidebar-footer {
  gap: 2px !important;
  padding-top: 10px !important;
  border-top: 1px solid #2a2a2a !important;
}

.chat-mode .sidebar-profile {
  min-height: 44px !important;
  padding: 8px 10px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #fff !important;
}

.chat-mode .sidebar-profile:hover {
  background: #2a2a2a !important;
}

.chat-mode .profile-avatar {
  background: #19c6a3 !important;
  color: #fff !important;
}

.chat-mode .main {
  display: grid !important;
  grid-template-rows: 56px minmax(0, 1fr) auto !important;
  height: 100dvh !important;
  background: #000 !important;
}

.chat-mode .topbar {
  display: flex !important;
  height: 56px !important;
  padding: 0 30px !important;
  background: #000 !important;
  color: #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.chat-mode .topbar::before {
  content: "İmdi";
  color: #fff;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.chat-mode .privacy-chip,
.chat-mode .mobile-brand {
  display: none !important;
}

.chat-mode .avatar {
  width: 30px !important;
  height: 30px !important;
  background: #2a2a2a !important;
  color: #fff !important;
  box-shadow: none !important;
}

.chat-mode .conversation {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  background: #000 !important;
}

.chat-mode .conversation:has(.welcome.hidden) {
  justify-content: flex-start !important;
  padding-top: 24px !important;
}

.chat-mode .welcome {
  display: grid !important;
  place-items: center !important;
  width: min(760px, calc(100% - 40px)) !important;
  min-height: auto !important;
  margin: 0 auto 28px !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  animation: none !important;
}

.chat-mode .welcome.hidden {
  display: none !important;
}

.chat-mode .welcome > * {
  display: none !important;
}

.chat-mode .welcome::after {
  content: "Bugün aklında ne var?";
  color: #f5f5f5;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 760;
  letter-spacing: -0.035em;
}

.chat-mode .message-list {
  display: grid !important;
  gap: 22px !important;
  width: min(760px, calc(100% - 52px)) !important;
  margin: 0 auto !important;
  padding: 0 0 32px !important;
}

.chat-mode .message {
  max-width: min(680px, 88%) !important;
  color: #ececec !important;
  font-size: 15px !important;
  line-height: 1.58 !important;
}

.chat-mode .message.user {
  border: 0 !important;
  border-radius: 18px !important;
  background: #2f2f2f !important;
  color: #fff !important;
  box-shadow: none !important;
}

.chat-mode .message.assistant {
  padding-left: 0 !important;
  background: transparent !important;
}

.chat-mode .assistant-mini-mark,
.chat-mode .copy-button {
  display: none !important;
}

.chat-mode .composer-area {
  display: block !important;
  width: min(770px, calc(100% - 44px)) !important;
  margin: 0 auto !important;
  padding: 0 0 26px !important;
}

.chat-mode .composer {
  min-height: 54px !important;
  padding: 11px 118px 11px 48px !important;
  border: 0 !important;
  border-radius: 28px !important;
  background: #2f2f2f !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.chat-mode .composer::before {
  display: none !important;
}

.chat-mode .composer:focus-within {
  border: 0 !important;
  box-shadow: 0 0 0 1px #454545 inset !important;
  transform: none !important;
}

.chat-mode .composer textarea {
  min-height: 30px !important;
  max-height: 180px !important;
  padding: 3px 0 !important;
  color: #fff !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
}

.chat-mode .composer textarea::placeholder {
  color: #b9b9b9 !important;
}

.chat-mode .composer-bottom {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
}

.chat-mode .composer-tools {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  pointer-events: auto !important;
}

.chat-mode .composer-tools-left {
  left: 10px !important;
}

.chat-mode .composer-tools-right {
  right: 8px !important;
  gap: 7px !important;
}

.chat-mode .composer-approval,
.chat-mode .response-style {
  display: none !important;
}

.chat-mode .composer-icon,
.chat-mode .send-button {
  width: 36px !important;
  height: 36px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #f5f5f5 !important;
  box-shadow: none !important;
}

.chat-mode .composer-icon:hover {
  background: #444 !important;
}

.chat-mode .send-button {
  background: #f5f5f5 !important;
  color: #111 !important;
}

.chat-mode .send-button:disabled {
  background: #4a4a4a !important;
  color: #bdbdbd !important;
  opacity: 1 !important;
}

.chat-mode .disclaimer {
  margin-top: 12px !important;
  color: #8a8a8a !important;
  font-size: 12px !important;
  text-align: center !important;
}

@media (max-width: 820px) {
  .chat-mode .app-shell {
    grid-template-columns: 1fr !important;
  }

  .chat-mode .sidebar {
    position: fixed !important;
    z-index: 30 !important;
    inset: 0 auto 0 0 !important;
    transform: translateX(-100%) !important;
    transition: transform .22s cubic-bezier(.22, .61, .36, 1) !important;
  }

  .chat-mode.sidebar-open .sidebar {
    transform: translateX(0) !important;
  }

  .chat-mode .mobile-only {
    display: grid !important;
  }

  .chat-mode .topbar {
    padding-inline: 14px !important;
  }

  .chat-mode .topbar::before {
    margin-left: 8px !important;
  }
}

/* v20260704-2: straighten the signed-in sidebar and remove leftover glass seams. */
body.auth-landing.chat-mode {
  --chat-sidebar-width: 260px;
  scrollbar-color: #3a3a3a transparent !important;
}

.chat-mode .app-shell {
  grid-template-columns: var(--chat-sidebar-width) minmax(0, 1fr) !important;
  overflow: hidden !important;
}

.chat-mode .sidebar {
  box-sizing: border-box !important;
  width: var(--chat-sidebar-width) !important;
  min-width: var(--chat-sidebar-width) !important;
  max-width: var(--chat-sidebar-width) !important;
  height: 100dvh !important;
  overflow: hidden !important;
  padding: 8px 8px 12px !important;
  border: 0 !important;
  border-right: 1px solid #2b2b2b !important;
  border-radius: 0 !important;
  background: #171717 !important;
  outline: 0 !important;
}

.chat-mode .sidebar *,
.chat-mode .sidebar *::before,
.chat-mode .sidebar *::after {
  box-sizing: border-box !important;
}

.chat-mode .brand-row,
.chat-mode .sidebar-search,
.chat-mode .sidebar-menu,
.chat-mode .history-block,
.chat-mode .sidebar-footer {
  width: 100% !important;
  max-width: 100% !important;
}

.chat-mode .brand-row {
  flex: 0 0 42px !important;
}

.chat-mode .sidebar-search {
  flex: 0 0 34px !important;
}

.chat-mode .sidebar-menu {
  flex: 0 0 auto !important;
}

.chat-mode .history-block {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.chat-mode .history-list {
  max-height: none !important;
  overflow-y: auto !important;
}

.chat-mode .sidebar-footer {
  flex: 0 0 auto !important;
  margin-top: auto !important;
  padding: 10px 0 0 !important;
  border-top: 1px solid #2b2b2b !important;
}

.chat-mode .sidebar-profile {
  display: flex !important;
  width: 100% !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #1b1b1b !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.chat-mode .sidebar-profile::before,
.chat-mode .sidebar-profile::after {
  display: none !important;
}

.chat-mode .menu-item,
.chat-mode .history-entry,
.chat-mode .history-item,
.chat-mode .sidebar-action {
  width: 100% !important;
  max-width: 100% !important;
}

.chat-mode .menu-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.chat-mode .main {
  min-width: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 820px) {
  .chat-mode .app-shell {
    grid-template-columns: 1fr !important;
  }
}

/* v20260704-3: pin the signed-in composer to the bottom and remove old glow residue. */
body.auth-landing.chat-mode,
.chat-mode .app-shell,
.chat-mode .main,
.chat-mode .conversation {
  background: #000 !important;
  background-image: none !important;
}

body.auth-landing.chat-mode::before,
body.auth-landing.chat-mode::after,
.chat-mode .app-shell::before,
.chat-mode .app-shell::after,
.chat-mode .main::before,
.chat-mode .main::after,
.chat-mode .conversation::before,
.chat-mode .conversation::after,
.chat-mode .composer-area::before,
.chat-mode .composer-area::after,
.chat-mode .welcome::before {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.chat-mode .main {
  position: relative !important;
  grid-template-rows: 56px minmax(0, 1fr) !important;
}

.chat-mode .conversation {
  justify-content: center !important;
  padding: 76px 24px 142px !important;
}

.chat-mode .welcome {
  margin: auto !important;
}

.chat-mode .message-list {
  padding-bottom: 132px !important;
}

.chat-mode .composer-area {
  position: fixed !important;
  z-index: 25 !important;
  left: calc(50vw + var(--chat-sidebar-width) / 2) !important;
  right: auto !important;
  bottom: 28px !important;
  transform: translateX(-50%) !important;
  width: min(770px, calc(100vw - var(--chat-sidebar-width) - 56px)) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.chat-mode .composer {
  min-height: 54px !important;
  max-height: 180px !important;
  padding: 11px 118px 11px 48px !important;
  border: 1px solid #3b3b3b !important;
  border-radius: 28px !important;
  background: #2f2f2f !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .36) !important;
  outline: 0 !important;
}

.chat-mode .composer:focus-within {
  border-color: #4b4b4b !important;
  box-shadow: 0 0 0 1px #4b4b4b inset, 0 12px 36px rgba(0, 0, 0, .36) !important;
}

.chat-mode .composer textarea {
  min-height: 30px !important;
  height: 30px !important;
  padding: 3px 0 !important;
}

.chat-mode .disclaimer {
  display: none !important;
}

@media (max-width: 820px) {
  .chat-mode .composer-area {
    left: 50% !important;
    bottom: 16px !important;
    width: calc(100vw - 24px) !important;
  }

  .chat-mode .conversation {
    padding: 70px 16px 118px !important;
  }

  .chat-mode .message-list {
    padding-bottom: 118px !important;
  }
}

/* v20260704-4: clean native typing feel, no teal focus ring, messages stay near the composer. */
body.auth-landing.chat-mode,
body.auth-landing.chat-mode *,
body.auth-landing.chat-mode *::before,
body.auth-landing.chat-mode *::after {
  text-shadow: none !important;
}

.chat-mode .conversation,
.chat-mode .conversation:has(.welcome.hidden) {
  justify-content: flex-end !important;
  padding: 72px 24px 118px !important;
  overflow-y: auto !important;
  scroll-padding-bottom: 132px !important;
}

.chat-mode .welcome:not(.hidden) {
  margin: auto auto 28px !important;
}

.chat-mode .message-list {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  gap: 18px !important;
  width: min(760px, calc(100% - 52px)) !important;
  min-height: min-content !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.chat-mode .message-row {
  width: 100% !important;
}

.chat-mode .message {
  animation: none !important;
  filter: none !important;
}

.chat-mode .message.user {
  align-self: flex-end !important;
  max-width: min(680px, 72%) !important;
  padding: 10px 14px !important;
  border-radius: 18px !important;
  background: #2f2f2f !important;
}

.chat-mode .message.assistant {
  align-self: flex-start !important;
  max-width: min(680px, 82%) !important;
}

.chat-mode .composer-area {
  bottom: 22px !important;
}

.chat-mode .composer {
  min-height: 54px !important;
  border: 0 !important;
  background: #2f2f2f !important;
  box-shadow: none !important;
}

.chat-mode .composer,
.chat-mode .composer:focus,
.chat-mode .composer:focus-within {
  outline: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.chat-mode .composer textarea,
.chat-mode .composer textarea:focus,
.chat-mode .composer textarea:focus-visible {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #fff !important;
  caret-color: #fff !important;
}

.chat-mode .composer textarea::placeholder {
  color: #b9b9b9 !important;
}

.chat-mode .composer textarea:focus::placeholder {
  color: #9e9e9e !important;
}

@media (max-width: 820px) {
  .chat-mode .conversation,
  .chat-mode .conversation:has(.welcome.hidden) {
    padding: 64px 16px 104px !important;
  }

  .chat-mode .message-list {
    width: calc(100% - 16px) !important;
  }

  .chat-mode .message.user,
  .chat-mode .message.assistant {
    max-width: 86% !important;
  }
}

/* v20260704-5: repair chat visibility, remove composer side haze, align sidebar to full height. */
body.auth-landing.chat-mode {
  width: 100vw !important;
  height: 100svh !important;
  overflow: hidden !important;
  background: #000 !important;
}

.chat-mode .app-shell {
  width: 100vw !important;
  height: 100svh !important;
  min-height: 100svh !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: #000 !important;
}

.chat-mode .sidebar {
  align-self: stretch !important;
  height: 100svh !important;
  min-height: 100svh !important;
  max-height: 100svh !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  border-right: 1px solid #2a2a2a !important;
  border-radius: 0 !important;
  transform: none !important;
}

.chat-mode .sidebar-footer {
  margin-top: auto !important;
  padding-bottom: 0 !important;
}

.chat-mode .profile-avatar {
  background: #2f2f2f !important;
  color: #fff !important;
}

.chat-mode .main,
.chat-mode .topbar,
.chat-mode .conversation,
.chat-mode .message-list,
.chat-mode .composer-area {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background-color: #000 !important;
  background-image: none !important;
  filter: none !important;
}

.chat-mode .topbar {
  border-bottom: 0 !important;
}

.chat-mode .topbar::after,
.chat-mode .main > .hairline,
.chat-mode .main > .divider {
  display: none !important;
}

.chat-mode .conversation,
.chat-mode .conversation:has(.welcome.hidden) {
  min-height: 0 !important;
  justify-content: flex-end !important;
  padding: 72px 24px 112px !important;
  background: #000 !important;
}

.chat-mode .message-list {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  gap: 18px !important;
  width: min(760px, calc(100% - 52px)) !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
}

.chat-mode .message-row {
  display: flex !important;
  position: relative !important;
  width: 100% !important;
  min-height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}

.chat-mode .message-row.user {
  justify-content: flex-end !important;
}

.chat-mode .message-row.assistant {
  justify-content: flex-start !important;
}

.chat-mode .message,
.chat-mode .message p {
  opacity: 1 !important;
  visibility: visible !important;
  color: #f4f4f5 !important;
}

.chat-mode .message p {
  margin: 0 !important;
}

.chat-mode .message.user {
  max-width: min(680px, 72%) !important;
  padding: 10px 14px !important;
  background: #2f2f2f !important;
  color: #fff !important;
}

.chat-mode .composer-area {
  position: fixed !important;
  left: calc(50vw + var(--chat-sidebar-width) / 2) !important;
  bottom: 24px !important;
  transform: translateX(-50%) !important;
  width: min(760px, calc(100vw - var(--chat-sidebar-width) - 72px)) !important;
  max-width: 760px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

.chat-mode .composer {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  min-height: 54px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 15px 118px 15px 48px !important;
  border: 0 !important;
  border-radius: 28px !important;
  background: #303030 !important;
  box-shadow: none !important;
  pointer-events: auto !important;
}

.chat-mode .composer::before,
.chat-mode .composer::after {
  display: none !important;
}

.chat-mode .composer textarea,
.chat-mode .composer textarea:focus,
.chat-mode .composer textarea:focus-visible {
  display: block !important;
  width: 100% !important;
  min-height: 24px !important;
  height: 24px;
  max-height: 140px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  resize: none !important;
  overflow-y: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
  font-size: 16px !important;
  line-height: 24px !important;
}

.chat-mode .composer textarea::placeholder {
  color: #b8b8b8 !important;
  -webkit-text-fill-color: #b8b8b8 !important;
}

.chat-mode .composer textarea:focus::placeholder {
  color: #a8a8a8 !important;
  -webkit-text-fill-color: #a8a8a8 !important;
}

.chat-mode .composer-bottom {
  inset: 0 !important;
}

.chat-mode .composer-tools {
  top: 50% !important;
}

.chat-mode .composer-tools-left {
  left: 10px !important;
}

.chat-mode .composer-tools-right {
  right: 8px !important;
}

@media (max-width: 820px) {
  .chat-mode .composer-area {
    left: 50% !important;
    width: calc(100vw - 24px) !important;
    max-width: none !important;
    bottom: 16px !important;
  }

  .chat-mode .conversation,
  .chat-mode .conversation:has(.welcome.hidden) {
    padding: 64px 16px 104px !important;
  }
}

/* v20260704-6: make chat mode completely flat; remove oversized header and panel protrusions. */
body.auth-landing.chat-mode {
  margin: 0 !important;
  padding: 0 !important;
  background: #000 !important;
}

.chat-mode .app-shell {
  display: grid !important;
  grid-template-columns: var(--chat-sidebar-width) minmax(0, 1fr) !important;
  gap: 0 !important;
  width: 100vw !important;
  height: 100svh !important;
  min-height: 100svh !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
}

.chat-mode .sidebar {
  position: relative !important;
  inset: auto !important;
  width: var(--chat-sidebar-width) !important;
  height: 100svh !important;
  min-height: 100svh !important;
  margin: 0 !important;
  padding: 8px 8px 12px !important;
  border: 0 !important;
  border-right: 1px solid #262626 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  overflow: hidden !important;
  background: #171717 !important;
  box-shadow: none !important;
  transform: none !important;
}

.chat-mode .sidebar::before,
.chat-mode .sidebar::after,
.chat-mode .sidebar-backdrop {
  display: none !important;
  content: none !important;
}

.chat-mode .brand-row {
  height: 42px !important;
  margin: 0 0 8px !important;
  padding: 0 4px !important;
}

.chat-mode .main {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) !important;
  width: 100% !important;
  height: 100svh !important;
  min-width: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  background: #000 !important;
}

.chat-mode .topbar,
.chat-mode .topbar *,
.chat-mode .topbar::before,
.chat-mode .topbar::after {
  display: none !important;
  content: none !important;
}

.chat-mode .conversation {
  grid-row: 1 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 40px 24px 112px !important;
  border: 0 !important;
  background: #000 !important;
  overflow-y: auto !important;
}

.chat-mode .conversation::before,
.chat-mode .conversation::after,
.chat-mode .message-list::before,
.chat-mode .message-list::after {
  display: none !important;
  content: none !important;
}

.chat-mode .composer-area {
  background: transparent !important;
}

.chat-mode .composer {
  background: #303030 !important;
}

/* v20260704-7: stable ChatGPT-like message flow; no hidden/vanishing conversations. */
.chat-mode .conversation,
.chat-mode .conversation.has-messages,
.chat-mode .conversation:has(.welcome.hidden) {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: 100svh !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-y: auto !important;
  background: #000 !important;
}

.chat-mode .welcome {
  display: grid !important;
  place-items: center !important;
  width: min(760px, calc(100% - 52px)) !important;
  min-height: calc(100svh - 170px) !important;
  margin: 0 auto !important;
  padding: 0 0 74px !important;
  background: transparent !important;
}

.chat-mode .welcome.hidden,
.chat-mode .conversation.has-messages .welcome,
.chat-mode.chat-has-messages .welcome {
  display: none !important;
}

.chat-mode .message-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 22px !important;
  width: min(760px, calc(100% - 52px)) !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 34px 0 144px !important;
  background: transparent !important;
  overflow: visible !important;
}

.chat-mode .message-row {
  display: flex !important;
  width: 100% !important;
  min-height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}

.chat-mode .message-row.user {
  justify-content: flex-end !important;
}

.chat-mode .message-row.assistant {
  justify-content: flex-start !important;
}

.chat-mode .message {
  display: block !important;
  max-width: min(690px, 86%) !important;
  min-height: auto !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #f4f4f5 !important;
  font-size: 15px !important;
  line-height: 1.58 !important;
  background: transparent !important;
}

.chat-mode .message p {
  display: block !important;
  margin: 0 0 10px !important;
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.chat-mode .message p:last-child {
  margin-bottom: 0 !important;
}

.chat-mode .message.user {
  max-width: min(620px, 74%) !important;
  padding: 10px 14px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: #2f2f2f !important;
  color: #fff !important;
}

.chat-mode .message.assistant {
  padding: 0 !important;
  color: #f4f4f5 !important;
}

.chat-mode .assistant-mini-mark,
.chat-mode .copy-button {
  display: none !important;
}

.chat-mode .typing {
  display: inline-flex !important;
  gap: 4px !important;
}

.chat-mode .composer-area {
  z-index: 40 !important;
}

@media (max-width: 820px) {
  .chat-mode .message-list,
  .chat-mode .welcome {
    width: calc(100% - 28px) !important;
  }

  .chat-mode .message-list {
    padding-bottom: 126px !important;
  }

  .chat-mode .message.user,
  .chat-mode .message.assistant {
    max-width: 88% !important;
  }
}

/* v20260705-1: remove leftover white/glass blur from chat messages. */
.chat-mode,
.chat-mode .app-shell,
.chat-mode .chat-main,
.chat-mode .conversation,
.chat-mode .message-list {
  background: #000 !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.chat-mode .message-list::before,
.chat-mode .message-list::after,
.chat-mode .message-row::before,
.chat-mode .message-row::after,
.chat-mode .message::before,
.chat-mode .message::after,
.chat-mode .message.user::before,
.chat-mode .message.user::after,
.chat-mode .message.assistant::before,
.chat-mode .message.assistant::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
}

.chat-mode .message,
.chat-mode .message.user,
.chat-mode .message.assistant {
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.chat-mode .message.assistant {
  max-width: min(690px, 86%) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  color: #f4f4f5 !important;
}

.chat-mode .message.user {
  max-width: min(620px, 74%) !important;
  padding: 10px 14px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: #2f2f2f !important;
  background-image: none !important;
  color: #fff !important;
}

.chat-mode .message p {
  color: inherit !important;
  text-shadow: none !important;
}

/* v20260705-2: use the exact typography tokens from the provided Liquid Glass UI code. */
body,
button,
input,
textarea,
select {
  font-family: var(--font-body) !important;
}

.welcome h1,
.auth-landing .welcome h1,
.brand-word {
  font-family: var(--font-display) !important;
}

.message,
.message *,
.sidebar,
.sidebar *,
.composer,
.composer * {
  font-family: var(--font-body) !important;
}

/* v20260705-3: keep user messages flat; no glass blur, glow, or layered border. */
.chat-mode .message.user,
.chat-mode .message-row.user .message {
  background: #2f2f2f !important;
  background-color: #2f2f2f !important;
  background-image: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.chat-mode .message.user *,
.chat-mode .message-row.user .message * {
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  text-shadow: none !important;
}

/* v20260707-1: iOS-grade ChatGPT-style app shell. Final override wins over old glass layers. */
body.auth-landing.chat-mode {
  --chat-sidebar-width: 264px;
  --chat-bg: #000;
  --chat-sidebar: #171717;
  --chat-sidebar-hover: #2a2a2a;
  --chat-input: #303030;
  --chat-user: #2f2f2f;
  --chat-line: #2b2b2b;
  --chat-text: #f4f4f5;
  --chat-muted: #b8b8b8;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: var(--chat-bg) !important;
  color: var(--chat-text) !important;
}

body.auth-landing.chat-mode::before,
body.auth-landing.chat-mode::after,
.chat-mode .app-shell::before,
.chat-mode .app-shell::after,
.chat-mode .main::before,
.chat-mode .main::after,
.chat-mode .conversation::before,
.chat-mode .conversation::after,
.chat-mode .message-list::before,
.chat-mode .message-list::after,
.chat-mode .composer-area::before,
.chat-mode .composer-area::after,
.chat-mode .composer::before,
.chat-mode .composer::after {
  display: none !important;
  content: none !important;
  background: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.chat-mode .landing-nav,
.chat-mode .imdi-bg-scene,
.chat-mode .ambient,
.chat-mode .intro,
.chat-mode .hero-stage,
.chat-mode .auth-panel,
.chat-mode .suggestions,
.chat-mode .hero-info-card,
.chat-mode .hero-bottom-note,
.chat-mode .topbar,
.chat-mode .theme-action,
.chat-mode .status-card,
.chat-mode .assistant-mini-mark,
.chat-mode .copy-button,
.chat-mode .disclaimer {
  display: none !important;
}

.chat-mode .app-shell {
  display: grid !important;
  grid-template-columns: var(--chat-sidebar-width) minmax(0, 1fr) !important;
  gap: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--chat-bg) !important;
  box-shadow: none !important;
}

.chat-mode .sidebar {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  flex-direction: column !important;
  width: var(--chat-sidebar-width) !important;
  min-width: var(--chat-sidebar-width) !important;
  max-width: var(--chat-sidebar-width) !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: max(10px, env(safe-area-inset-top)) 8px max(10px, env(safe-area-inset-bottom)) !important;
  overflow: hidden !important;
  border: 0 !important;
  border-right: 1px solid var(--chat-line) !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: var(--chat-sidebar) !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.chat-mode .sidebar::before,
.chat-mode .sidebar::after,
.chat-mode .sidebar-backdrop {
  display: none !important;
  content: none !important;
}

.chat-mode .brand-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 42px !important;
  margin: 0 0 8px !important;
  padding: 0 4px !important;
  flex: 0 0 auto !important;
}

.chat-mode .sidebar-search {
  flex: 0 0 auto !important;
  height: 34px !important;
  margin: 0 4px 8px !important;
  border: 1px solid #333 !important;
  border-radius: 9px !important;
  background: #202020 !important;
  box-shadow: none !important;
}

.chat-mode .sidebar-search input,
.chat-mode .sidebar-search input::placeholder {
  color: var(--chat-muted) !important;
  -webkit-text-fill-color: var(--chat-muted) !important;
}

.chat-mode .sidebar-menu {
  flex: 0 0 auto !important;
  display: grid !important;
  gap: 4px !important;
  margin: 0 4px !important;
  padding: 0 !important;
}

.chat-mode .menu-item,
.chat-mode .history-item,
.chat-mode .history-entry,
.chat-mode .sidebar-action {
  width: 100% !important;
  min-height: 36px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
}

.chat-mode .menu-item.active,
.chat-mode .menu-item:hover,
.chat-mode .history-item:hover,
.chat-mode .history-item.active {
  background: var(--chat-sidebar-hover) !important;
}

.chat-mode .history-block {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  margin: 22px 4px 0 !important;
  overflow: hidden !important;
}

.chat-mode .history-list {
  max-height: 100% !important;
  overflow-y: auto !important;
}

.chat-mode .sidebar-footer {
  flex: 0 0 auto !important;
  margin-top: auto !important;
  padding: 10px 4px 0 !important;
  border-top: 1px solid var(--chat-line) !important;
  background: transparent !important;
}

.chat-mode .sidebar-profile {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 44px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #1d1d1d !important;
  box-shadow: none !important;
}

.chat-mode .profile-avatar {
  background: #2f2f2f !important;
  color: #fff !important;
}

.chat-mode .main {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100dvh !important;
  min-width: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  background: var(--chat-bg) !important;
}

.chat-mode .conversation,
.chat-mode .conversation.has-messages,
.chat-mode .conversation:has(.welcome.hidden) {
  display: block !important;
  width: 100% !important;
  height: 100dvh !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: max(44px, env(safe-area-inset-top)) 24px calc(146px + env(safe-area-inset-bottom)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: var(--chat-bg) !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  scroll-padding-bottom: calc(154px + env(safe-area-inset-bottom)) !important;
}

.chat-mode .welcome {
  display: grid !important;
  place-items: center !important;
  width: min(760px, calc(100% - 32px)) !important;
  min-height: calc(100dvh - 200px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
}

.chat-mode .welcome.hidden,
.chat-mode .conversation.has-messages .welcome,
.chat-mode.chat-has-messages .welcome {
  display: none !important;
}

.chat-mode .message-list {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 28px !important;
  width: min(760px, calc(100% - 32px)) !important;
  min-height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.chat-mode .message-row {
  display: flex !important;
  width: 100% !important;
  min-height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}

.chat-mode .message-row.user {
  justify-content: flex-end !important;
}

.chat-mode .message-row.assistant {
  justify-content: flex-start !important;
}

.chat-mode .message,
.chat-mode .message.user,
.chat-mode .message.assistant {
  display: block !important;
  min-height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  text-shadow: none !important;
  font: 400 16px/1.58 var(--font-body) !important;
}

.chat-mode .message.assistant {
  max-width: min(690px, 86%) !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--chat-text) !important;
}

.chat-mode .message.user {
  max-width: min(620px, 72%) !important;
  padding: 8px 14px !important;
  border-radius: 18px !important;
  background: var(--chat-user) !important;
  background-image: none !important;
  color: #fff !important;
}

.chat-mode .message p {
  display: block !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.chat-mode .message p:last-child {
  margin-bottom: 0 !important;
}

.chat-mode .typing {
  display: inline-flex !important;
  gap: 5px !important;
  padding-top: 2px !important;
}

.chat-mode .composer-area {
  position: fixed !important;
  z-index: 50 !important;
  left: calc(var(--chat-sidebar-width) + (100vw - var(--chat-sidebar-width)) / 2) !important;
  right: auto !important;
  bottom: max(18px, env(safe-area-inset-bottom)) !important;
  transform: translateX(-50%) !important;
  width: min(760px, calc(100vw - var(--chat-sidebar-width) - 56px)) !important;
  max-width: 760px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  background: transparent !important;
}

.chat-mode .composer {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-height: 54px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 15px 114px 15px 48px !important;
  border: 0 !important;
  border-radius: 28px !important;
  background: var(--chat-input) !important;
  background-image: none !important;
  box-shadow: none !important;
  pointer-events: auto !important;
}

.chat-mode .composer,
.chat-mode .composer:focus,
.chat-mode .composer:focus-within {
  outline: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.chat-mode .composer textarea,
.chat-mode .composer textarea:focus,
.chat-mode .composer textarea:focus-visible {
  display: block !important;
  width: 100% !important;
  min-height: 24px !important;
  height: 24px;
  max-height: 140px !important;
  margin: 0 !important;
  padding: 0 !important;
  resize: none !important;
  overflow-y: auto !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
  font: 400 16px/24px var(--font-body) !important;
}

.chat-mode .composer textarea::placeholder {
  color: var(--chat-muted) !important;
  -webkit-text-fill-color: var(--chat-muted) !important;
}

.chat-mode .composer-bottom {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
}

.chat-mode .composer-tools {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  pointer-events: auto !important;
}

.chat-mode .composer-tools-left {
  left: 10px !important;
}

.chat-mode .composer-tools-right {
  right: 8px !important;
}

.chat-mode .composer-approval,
.chat-mode .response-style {
  display: none !important;
}

.chat-mode .composer-icon,
.chat-mode .send-button {
  width: 36px !important;
  height: 36px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
}

.chat-mode .send-button {
  background: #4a4a4a !important;
}

.chat-mode .send-button:not(:disabled) {
  background: #fff !important;
  color: #000 !important;
}

.is-native-ios.chat-mode .conversation {
  padding-top: max(52px, env(safe-area-inset-top)) !important;
}

@media (max-width: 820px) {
  body.auth-landing.chat-mode {
    --chat-sidebar-width: 0px;
  }

  .chat-mode .app-shell {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .chat-mode .sidebar {
    position: fixed !important;
    z-index: 80 !important;
    width: 264px !important;
    min-width: 264px !important;
    max-width: 264px !important;
    transform: translateX(-100%) !important;
    transition: transform .22s cubic-bezier(.22,.61,.36,1) !important;
  }

  body.sidebar-open.chat-mode .sidebar,
  .chat-mode.sidebar-open .sidebar {
    transform: translateX(0) !important;
  }

  .chat-mode .sidebar-backdrop {
    display: block !important;
  }

  .chat-mode .conversation {
    padding-inline: 16px !important;
  }

  .chat-mode .message-list,
  .chat-mode .welcome {
    width: min(760px, calc(100% - 8px)) !important;
  }

  .chat-mode .message.user,
  .chat-mode .message.assistant {
    max-width: 88% !important;
  }

  .chat-mode .composer-area {
    left: 50% !important;
    width: calc(100vw - 24px) !important;
    max-width: none !important;
  }
}

/* v20260707-2: mobile interaction bugfixes. No invisible layer can block chat input. */
.chat-mode .sidebar-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 70 !important;
  display: none !important;
  width: 100vw !important;
  height: 100dvh !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  background: rgba(0, 0, 0, .48) !important;
}

body.sidebar-open.chat-mode .sidebar-backdrop,
.chat-mode.sidebar-open .sidebar-backdrop {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.chat-mode .composer-approval,
.chat-mode .response-style,
.chat-mode .composer-pill {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.chat-mode .composer-plus,
.chat-mode .composer-mic {
  pointer-events: auto !important;
}

.chat-mode .send-button {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.chat-mode .send-button:disabled {
  cursor: default !important;
}

.chat-mode .settings-dialog:not([open]) {
  display: none !important;
}

/* v20260705-9: memory control center for the long-term assistant roadmap. */
.settings-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: min(820px, calc(100dvh - 32px));
  overflow: auto;
}

.memory-panel {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.memory-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.memory-panel-heading h3 {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.memory-form {
  display: grid;
  gap: 10px;
}

.memory-form label {
  display: grid;
  gap: 6px;
}

.memory-toggle-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.memory-toggle-row small {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  line-height: 1.45;
}

.memory-toggle-row input {
  width: 42px;
  height: 24px;
  appearance: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.memory-toggle-row input::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.memory-toggle-row input:checked {
  border-color: rgba(182, 31, 67, 0.42);
  background: rgba(182, 31, 67, 0.68);
}

.memory-toggle-row input:checked::before {
  transform: translateX(18px);
}

.memory-form span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.memory-form input,
.memory-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: 500 13px/1.45 var(--font-body);
  padding: 11px 12px;
  transition: border-color 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
    background 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.memory-form input:focus,
.memory-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.memory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.memory-actions button,
.memory-danger {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  padding: 0 14px;
  transition: all 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.memory-actions button:first-child {
  border-color: rgba(182, 31, 67, 0.38);
  background: #b61f43;
  color: #fff;
}

.memory-actions button:hover,
.memory-danger:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.memory-danger {
  color: rgba(255, 255, 255, 0.72);
}

.memory-graph {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.78);
  white-space: pre-wrap;
  font: 500 12px/1.6 var(--font-mono);
}

.memory-form .memory-toggle-row input {
  width: 42px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  resize: none;
}

/* v20260707-3: Vercel Toolbar must not cover the public mobile chat UI. */
vercel-toolbar,
vercel-live-feedback,
vercel-feedback,
#vercel-toolbar,
.vercel-toolbar,
[data-vercel-toolbar],
[data-vercel-live-feedback],
[data-vercel-feedback],
[data-testid="vercel-toolbar"],
iframe[src*="vercel.live"],
iframe[src*="vercel.com/toolbar"],
iframe[title*="Vercel"],
iframe[aria-label*="Vercel"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* v20260707-4: final mobile chat shell, ChatGPT-style input and drawer behavior. */
body.auth-landing.chat-mode {
  --chat-bg: #000;
  --chat-panel: #171717;
  --chat-user: #2f2f2f;
  --chat-input: #303030;
  --chat-text: #f5f5f5;
  --chat-muted: #b7b7b7;
  background: #000 !important;
}

.chat-mode .app-shell,
.chat-mode .main,
.chat-mode .conversation,
.chat-mode .message-list {
  background: #000 !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.chat-mode .conversation {
  height: 100dvh !important;
  padding: 76px max(18px, calc((100vw - var(--chat-sidebar-width) - 780px) / 2)) calc(116px + env(safe-area-inset-bottom)) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scroll-padding-bottom: calc(124px + env(safe-area-inset-bottom)) !important;
}

.chat-mode .message-list {
  width: min(780px, 100%) !important;
  max-width: 780px !important;
  gap: 34px !important;
  padding: 0 0 12px !important;
  margin: 0 auto !important;
}

.chat-mode .message-row {
  display: flex !important;
  width: 100% !important;
  padding: 0 !important;
}

.chat-mode .message-row.user {
  justify-content: flex-end !important;
}

.chat-mode .message-row.assistant {
  justify-content: flex-start !important;
}

.chat-mode .message,
.chat-mode .message.user,
.chat-mode .message.assistant {
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.chat-mode .message.user {
  max-width: min(76%, 620px) !important;
  padding: 10px 14px !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: #2f2f2f !important;
  color: #fff !important;
  font: 400 16px/1.45 var(--font-body) !important;
}

.chat-mode .message.assistant {
  max-width: min(76%, 690px) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #f5f5f5 !important;
  font: 400 16px/1.62 var(--font-body) !important;
}

.chat-mode .message p {
  margin: 0 0 10px !important;
  color: inherit !important;
}

.chat-mode .assistant-mini-mark,
.chat-mode .copy-button,
.chat-mode .disclaimer,
.chat-mode .composer-approval,
.chat-mode .response-style,
.chat-mode .composer-pill {
  display: none !important;
}

.chat-mode .composer-area {
  position: fixed !important;
  z-index: 60 !important;
  left: calc(var(--chat-sidebar-width) + (100vw - var(--chat-sidebar-width)) / 2) !important;
  bottom: calc(12px + env(safe-area-inset-bottom) + var(--imdi-keyboard-offset, 0px)) !important;
  transform: translateX(-50%) !important;
  width: min(768px, calc(100vw - var(--chat-sidebar-width) - 40px)) !important;
  max-width: 768px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
  transition: bottom .18s cubic-bezier(.22,.61,.36,1) !important;
}

.chat-mode .composer {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr) 80px !important;
  align-items: center !important;
  column-gap: 8px !important;
  width: 100% !important;
  min-height: 52px !important;
  max-height: 164px !important;
  padding: 8px 8px 8px 12px !important;
  border: 0 !important;
  border-radius: 28px !important;
  background: #303030 !important;
  box-shadow: none !important;
  pointer-events: auto !important;
}

.chat-mode .composer textarea,
.chat-mode .composer textarea:focus,
.chat-mode .composer textarea:focus-visible {
  grid-column: 2 !important;
  min-width: 0 !important;
  width: 100% !important;
  min-height: 24px !important;
  height: 24px;
  max-height: 132px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
  resize: none !important;
  overflow-y: auto !important;
  font: 400 16px/24px var(--font-body) !important;
}

.chat-mode .composer textarea::placeholder {
  color: #b7b7b7 !important;
  -webkit-text-fill-color: #b7b7b7 !important;
}

.chat-mode .composer-bottom {
  display: contents !important;
  position: static !important;
  inset: auto !important;
  pointer-events: none !important;
}

.chat-mode .composer-tools,
.chat-mode .composer-tools-left,
.chat-mode .composer-tools-right {
  position: static !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  pointer-events: auto !important;
}

.chat-mode .composer-tools-left {
  grid-column: 1 !important;
  justify-self: center !important;
}

.chat-mode .composer-tools-right {
  grid-column: 3 !important;
  justify-self: end !important;
}

.chat-mode .composer-icon,
.chat-mode .send-button {
  display: inline-grid !important;
  place-items: center !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
}

.chat-mode .send-button {
  background: #4a4a4a !important;
  color: #cfcfcf !important;
}

.chat-mode .send-button:not(:disabled) {
  background: #fff !important;
  color: #000 !important;
}

.chat-mode .send-button svg,
.chat-mode .composer-icon svg {
  width: 20px !important;
  height: 20px !important;
}

@media (max-width: 820px) {
  body.auth-landing.chat-mode {
    --chat-sidebar-width: 0px !important;
  }

  .chat-mode .topbar {
    display: flex !important;
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    z-index: 65 !important;
    height: 56px !important;
    padding: max(8px, env(safe-area-inset-top)) 12px 8px !important;
    align-items: center !important;
    gap: 10px !important;
    background: #000 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .chat-mode .topbar .privacy-chip,
  .chat-mode .topbar .avatar {
    display: none !important;
  }

  .chat-mode .mobile-brand {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #fff !important;
    font-weight: 700 !important;
  }

  .chat-mode .mobile-brand img {
    width: 24px !important;
    height: 24px !important;
  }

  .chat-mode .mobile-only,
  .chat-mode .topbar .icon-button {
    display: inline-grid !important;
  }

  .chat-mode .conversation {
    padding: 72px 16px calc(104px + env(safe-area-inset-bottom)) !important;
    height: 100dvh !important;
  }

  .chat-mode .message-list {
    width: 100% !important;
    gap: 30px !important;
  }

  .chat-mode .message.user {
    max-width: 82% !important;
  }

  .chat-mode .message.assistant {
    max-width: 92% !important;
  }

  .chat-mode .composer-area {
    left: 50% !important;
    width: calc(100vw - 16px) !important;
    bottom: calc(8px + env(safe-area-inset-bottom) + var(--imdi-keyboard-offset, 0px)) !important;
  }

  .chat-mode .sidebar {
    top: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  body.sidebar-open.chat-mode .sidebar-backdrop,
  .chat-mode.sidebar-open .sidebar-backdrop {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: rgba(0, 0, 0, .56) !important;
  }
}

/* v20260707-5: final hardening; keep mobile chat app-like and ordered. */
html:has(body.auth-landing.chat-mode),
body.auth-landing.chat-mode {
  height: 100%;
  min-height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: manipulation;
}

.chat-mode .main,
.chat-mode .conversation {
  -webkit-overflow-scrolling: touch;
}

.chat-mode .mobile-brand,
.chat-mode .icon-button,
.chat-mode .composer-icon,
.chat-mode .send-button,
.chat-mode .menu-item,
.chat-mode .history-item,
.chat-mode .sidebar-profile {
  -webkit-tap-highlight-color: transparent;
}

.chat-mode .composer textarea {
  touch-action: manipulation;
}

.chat-mode.sidebar-open .composer-area,
body.sidebar-open.chat-mode .composer-area {
  pointer-events: none !important;
}

body.sidebar-open.chat-mode .sidebar {
  box-shadow: 24px 0 70px rgba(0, 0, 0, .34) !important;
}

@media (max-width: 820px) {
  .chat-mode .app-shell {
    height: 100dvh !important;
    overflow: hidden !important;
  }

  .chat-mode .main {
    height: 100dvh !important;
    overflow: hidden !important;
  }

  .chat-mode .conversation {
    scrollbar-width: none;
  }

  .chat-mode .conversation::-webkit-scrollbar {
    display: none;
  }
}

/* v20260707-6: native Android APK shell. Make it feel like an app, not a web page. */
body.is-native-app {
  background: #000 !important;
  color: #fff !important;
}

body.is-native-app:not(.chat-mode) {
  min-height: 100dvh !important;
  overflow: hidden !important;
}

body.is-native-app:not(.chat-mode) .main {
  min-height: 100dvh !important;
  background: #0b0b0d !important;
}

body.is-native-app:not(.chat-mode) .welcome {
  min-height: 100dvh !important;
  padding: 30px 22px 28px !important;
}

body.is-native-app:not(.chat-mode) .hero-stage {
  opacity: .42 !important;
  transform: translate3d(22%, -4%, 0) scale(.78) !important;
  pointer-events: none !important;
}

body.is-native-app:not(.chat-mode) .welcome-copyblock {
  position: relative !important;
  z-index: 3 !important;
}

body.is-native-app.chat-mode {
  --chat-sidebar-width: 0px !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
  background: #000 !important;
}

body.is-native-app.chat-mode .app-shell,
body.is-native-app.chat-mode .main {
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
  background: #000 !important;
}

body.is-native-app.chat-mode .topbar {
  display: flex !important;
  position: fixed !important;
  z-index: 90 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 58px !important;
  padding: 8px 12px !important;
  align-items: center !important;
  gap: 10px !important;
  border: 0 !important;
  background: #000 !important;
  box-shadow: none !important;
}

body.is-native-app.chat-mode .topbar .mobile-only,
body.is-native-app.chat-mode .topbar .icon-button {
  display: inline-grid !important;
}

body.is-native-app.chat-mode .mobile-brand {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-width: 0 !important;
  color: #fff !important;
  font: 750 18px/1 var(--font-body) !important;
}

body.is-native-app.chat-mode .mobile-brand img {
  width: 30px !important;
  height: 30px !important;
  border-radius: 9px !important;
  box-shadow: 0 8px 22px rgba(182, 31, 67, .18) !important;
}

body.is-native-app.chat-mode .privacy-chip,
body.is-native-app.chat-mode .topbar .avatar {
  display: none !important;
}

body.is-native-app.chat-mode .conversation,
body.is-native-app.chat-mode .conversation.has-messages,
body.is-native-app.chat-mode .conversation:has(.welcome.hidden) {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  padding: 76px 20px calc(136px + env(safe-area-inset-bottom)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain !important;
  background: #000 !important;
  scroll-padding-bottom: calc(150px + env(safe-area-inset-bottom)) !important;
}

body.is-native-app.chat-mode .message-list {
  width: 100% !important;
  max-width: none !important;
  min-height: auto !important;
  margin: 0 !important;
  padding: 0 0 22px !important;
  gap: 36px !important;
  overflow: visible !important;
}

body.is-native-app.chat-mode .message.assistant {
  max-width: 92% !important;
  font-size: 17px !important;
  line-height: 1.58 !important;
}

body.is-native-app.chat-mode .message.user {
  max-width: 82% !important;
  font-size: 17px !important;
  line-height: 1.35 !important;
  border-radius: 22px !important;
}

body.is-native-app.chat-mode .composer-area {
  position: fixed !important;
  z-index: 95 !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(10px + env(safe-area-inset-bottom) + var(--imdi-keyboard-offset, 0px)) !important;
  transform: translateX(-50%) !important;
  width: calc(100vw - 22px) !important;
  max-width: none !important;
  padding: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
}

body.is-native-app.chat-mode .composer {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 86px !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 64px !important;
  max-height: 152px !important;
  padding: 10px 10px 10px 12px !important;
  border-radius: 30px !important;
  background: #303030 !important;
  pointer-events: auto !important;
}

body.is-native-app.chat-mode .composer textarea,
body.is-native-app.chat-mode .composer textarea:focus {
  min-height: 24px !important;
  height: 24px;
  max-height: 112px !important;
  overflow-y: auto !important;
  font-size: 17px !important;
  line-height: 24px !important;
}

body.is-native-app.chat-mode .composer-icon,
body.is-native-app.chat-mode .send-button {
  width: 40px !important;
  height: 40px !important;
}

body.is-native-app.chat-mode .sidebar {
  position: fixed !important;
  z-index: 110 !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: min(86vw, 300px) !important;
  min-width: 0 !important;
  max-width: min(86vw, 300px) !important;
  height: 100dvh !important;
  transform: translateX(-102%) !important;
  border-radius: 0 !important;
}

body.is-native-app.sidebar-open.chat-mode .sidebar,
body.is-native-app.chat-mode.sidebar-open .sidebar {
  transform: translateX(0) !important;
}

body.is-native-app.chat-mode .sidebar-backdrop {
  z-index: 100 !important;
}

/* v20260707-8: live mobile app fixes. No intro, visible menu, real scrollable chat. */
.intro,
html.intro-active .intro {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html.intro-active,
html.intro-active body {
  overflow: auto !important;
}

html.intro-active .app-shell,
html.intro-active .landing-nav {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
}

@media (max-width: 820px) {
  body.chat-mode {
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
    background: #000 !important;
  }

  body.chat-mode .app-shell,
  body.chat-mode .main {
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
    background: #000 !important;
  }

  body.chat-mode .topbar,
  body.is-native-app.chat-mode .topbar {
    display: flex !important;
    position: fixed !important;
    z-index: 220 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(54px + env(safe-area-inset-top)) !important;
    padding: env(safe-area-inset-top) 12px 0 !important;
    align-items: center !important;
    gap: 10px !important;
    border: 0 !important;
    background: #000 !important;
    box-shadow: none !important;
  }

  body.chat-mode .topbar > *,
  body.is-native-app.chat-mode .topbar > * {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.chat-mode .topbar .mobile-only,
  body.chat-mode .topbar .icon-button,
  body.is-native-app.chat-mode .topbar .mobile-only,
  body.is-native-app.chat-mode .topbar .icon-button {
    display: inline-grid !important;
    place-items: center !important;
  }

  body.chat-mode .topbar svg,
  body.chat-mode .topbar path,
  body.is-native-app.chat-mode .topbar svg,
  body.is-native-app.chat-mode .topbar path {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.chat-mode .mobile-brand,
  body.is-native-app.chat-mode .mobile-brand {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    min-width: 0 !important;
    color: #fff !important;
    font: 750 18px/1 var(--font-body) !important;
  }

  body.chat-mode .mobile-brand span,
  body.is-native-app.chat-mode .mobile-brand span {
    display: inline !important;
  }

  body.chat-mode .mobile-brand img,
  body.is-native-app.chat-mode .mobile-brand img {
    display: block !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 9px !important;
  }

  body.chat-mode .privacy-chip,
  body.chat-mode .topbar .avatar,
  body.is-native-app.chat-mode .privacy-chip,
  body.is-native-app.chat-mode .topbar .avatar {
    display: none !important;
  }

  body.chat-mode .conversation,
  body.chat-mode .conversation.has-messages,
  body.chat-mode .conversation:has(.welcome.hidden),
  body.is-native-app.chat-mode .conversation,
  body.is-native-app.chat-mode .conversation.has-messages,
  body.is-native-app.chat-mode .conversation:has(.welcome.hidden) {
    position: fixed !important;
    z-index: 1 !important;
    inset: calc(54px + env(safe-area-inset-top)) 0 0 0 !important;
    display: block !important;
    width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 18px 20px calc(138px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;
    background: #000 !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    scrollbar-width: none !important;
  }

  body.chat-mode .conversation::-webkit-scrollbar,
  body.is-native-app.chat-mode .conversation::-webkit-scrollbar {
    display: none !important;
  }

  body.chat-mode .conversation::before,
  body.chat-mode .conversation::after,
  body.chat-mode .message-list::before,
  body.chat-mode .message-list::after,
  body.is-native-app.chat-mode .conversation::before,
  body.is-native-app.chat-mode .conversation::after,
  body.is-native-app.chat-mode .message-list::before,
  body.is-native-app.chat-mode .message-list::after {
    display: none !important;
    content: none !important;
  }

  body.chat-mode .message-list,
  body.is-native-app.chat-mode .message-list {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100dvh - 210px) !important;
    margin: 0 !important;
    padding: 0 0 26px !important;
    gap: 34px !important;
    overflow: visible !important;
    justify-content: flex-end !important;
    background: #000 !important;
    background-image: none !important;
  }

  body.chat-mode .conversation.has-messages .message-list,
  body.is-native-app.chat-mode .conversation.has-messages .message-list {
    justify-content: flex-start !important;
  }

  body.chat-mode .composer-area,
  body.is-native-app.chat-mode .composer-area {
    position: fixed !important;
    z-index: 230 !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(10px + env(safe-area-inset-bottom) + var(--imdi-keyboard-offset, 0px)) !important;
    transform: translateX(-50%) !important;
    width: calc(100vw - 22px) !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    pointer-events: none !important;
  }

  body.chat-mode .composer,
  body.is-native-app.chat-mode .composer {
    pointer-events: auto !important;
  }

  body.chat-mode .sidebar,
  body.is-native-app.chat-mode .sidebar {
    z-index: 260 !important;
  }

  body.chat-mode .sidebar-backdrop,
  body.is-native-app.chat-mode .sidebar-backdrop {
    z-index: 250 !important;
  }
}

/* v20260708-1 final: system font, ChatGPT-like mobile weight and spacing. */
:root {
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif !important;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif !important;
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif !important;
  --font-rounded: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif !important;
}

html,
body,
button,
input,
textarea,
select,
.app-shell,
.landing,
.sidebar,
.main,
.conversation,
.composer,
.message,
.message p {
  font-family: var(--font-system) !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

.welcome h1,
.welcome-title,
.hero-title,
.login-title,
.auth-brand-name,
.landing-brand span,
.mobile-brand span,
.brand-word {
  font-family: var(--font-system) !important;
  font-weight: 750 !important;
  letter-spacing: -0.055em !important;
}

.sidebar .brand-word,
.sidebar .menu-item span,
.sidebar .sidebar-profile strong {
  font-family: var(--font-system) !important;
  font-weight: 700 !important;
  letter-spacing: -0.036em !important;
}

.sidebar-search input,
.history-entry,
.message,
.message p,
.composer textarea,
.composer textarea::placeholder {
  font-family: var(--font-system) !important;
  font-weight: 400 !important;
  letter-spacing: -0.025em !important;
}

@media (max-width: 820px) {
  body.chat-mode,
  body.chat-mode *,
  body.is-native-app.chat-mode,
  body.is-native-app.chat-mode * {
    font-family: var(--font-system) !important;
  }

  body.chat-mode .mobile-brand,
  body.is-native-app.chat-mode .mobile-brand {
    font-size: 21px !important;
    font-weight: 750 !important;
    letter-spacing: -0.048em !important;
  }

  body.chat-mode .mobile-brand img,
  body.is-native-app.chat-mode .mobile-brand img {
    width: 31px !important;
    height: 31px !important;
    border-radius: 9px !important;
  }

  body.chat-mode .message,
  body.is-native-app.chat-mode .message {
    font-size: clamp(17px, 4.4vw, 20px) !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    letter-spacing: -0.028em !important;
  }

  body.chat-mode .message.user,
  body.is-native-app.chat-mode .message.user {
    font-size: clamp(16px, 4.2vw, 19px) !important;
    line-height: 1.35 !important;
  }

  body.chat-mode .composer,
  body.is-native-app.chat-mode .composer {
    min-height: 76px !important;
    border-radius: 31px !important;
  }

  body.chat-mode .composer textarea,
  body.is-native-app.chat-mode .composer textarea {
    min-height: 34px !important;
    font-size: clamp(18px, 4.7vw, 21px) !important;
    line-height: 1.25 !important;
    font-weight: 400 !important;
    letter-spacing: -0.03em !important;
  }

  body.chat-mode .composer textarea::placeholder,
  body.is-native-app.chat-mode .composer textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
  }

  body.chat-mode .sidebar .menu-item span,
  body.chat-mode .sidebar .sidebar-profile strong,
  body.is-native-app.chat-mode .sidebar .menu-item span,
  body.is-native-app.chat-mode .sidebar .sidebar-profile strong {
    font-size: 18px !important;
    line-height: 1.18 !important;
    font-weight: 700 !important;
    letter-spacing: -0.036em !important;
  }

  body.chat-mode .sidebar-search input,
  body.is-native-app.chat-mode .sidebar-search input {
    font-size: 17px !important;
    letter-spacing: -0.03em !important;
  }
}

/* v20260708-4: native/mobile chat cleanup. Keeps the app black, scrollable and app-like. */
body.auth-landing.chat-mode,
body.is-native-app.chat-mode {
  --chat-sidebar-width: 264px !important;
  --chat-bg: #000 !important;
  --chat-panel: #171717 !important;
  --chat-panel-hover: #2a2a2a !important;
  --chat-user: #303030 !important;
  --chat-text: #f5f5f5 !important;
  --chat-muted: rgba(255, 255, 255, 0.58) !important;
  background: #000 !important;
  background-image: none !important;
  color: #fff !important;
  overflow: hidden !important;
}

body.auth-landing.chat-mode::before,
body.auth-landing.chat-mode::after,
body.is-native-app.chat-mode::before,
body.is-native-app.chat-mode::after,
.chat-mode .app-shell::before,
.chat-mode .app-shell::after,
.chat-mode .main::before,
.chat-mode .main::after,
.chat-mode .conversation::before,
.chat-mode .conversation::after,
.chat-mode .message-list::before,
.chat-mode .message-list::after,
.chat-mode .message-row::before,
.chat-mode .message-row::after,
.chat-mode .message::before,
.chat-mode .message::after,
.chat-mode .composer-area::before,
.chat-mode .composer-area::after,
.chat-mode .composer::before,
.chat-mode .composer::after {
  display: none !important;
  content: none !important;
}

.chat-mode .landing-nav,
.chat-mode .imdi-bg-scene,
.chat-mode .ambient,
.chat-mode .intro,
.chat-mode .hero-stage,
.chat-mode .auth-panel,
.chat-mode .suggestions,
.chat-mode .disclaimer,
.chat-mode .assistant-mini-mark,
.chat-mode .copy-button,
.chat-mode .theme-action,
.chat-mode .status-card,
.chat-mode .composer-approval,
.chat-mode .response-style,
.chat-mode .composer-pill {
  display: none !important;
}

.chat-mode .app-shell,
.chat-mode .main,
.chat-mode .conversation,
.chat-mode .message-list {
  background: #000 !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.chat-mode .app-shell {
  display: grid !important;
  grid-template-columns: var(--chat-sidebar-width) minmax(0, 1fr) !important;
  width: 100vw !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
}

.chat-mode .sidebar {
  position: relative !important;
  inset: auto !important;
  width: var(--chat-sidebar-width) !important;
  min-width: var(--chat-sidebar-width) !important;
  max-width: var(--chat-sidebar-width) !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  padding: calc(18px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom)) !important;
  background: #171717 !important;
  border: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 !important;
  transform: none !important;
  overflow: hidden !important;
  z-index: 260 !important;
}

.chat-mode .sidebar-window {
  display: none !important;
}

.chat-mode .brand-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 34px !important;
  margin: 0 4px 14px !important;
}

.chat-mode .sidebar-search {
  height: 36px !important;
  margin: 0 0 10px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  background: #202020 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.chat-mode .sidebar-search input,
.chat-mode .sidebar-search input::placeholder {
  color: rgba(255, 255, 255, 0.62) !important;
}

.chat-mode .menu-item,
.chat-mode .history-item,
.chat-mode .history-entry,
.chat-mode .sidebar-action {
  min-height: 38px !important;
  border-radius: 9px !important;
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.chat-mode .menu-item.active,
.chat-mode .menu-item:hover,
.chat-mode .history-item:hover,
.chat-mode .history-item.active {
  background: #2a2a2a !important;
}

.chat-mode .sidebar-footer {
  position: absolute !important;
  left: 10px !important;
  right: 10px !important;
  bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.chat-mode .sidebar-profile {
  height: 46px !important;
  border-radius: 11px !important;
  padding: 0 14px !important;
  background: #1c1c1c !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.chat-mode .main {
  position: relative !important;
  min-width: 0 !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
  background: #000 !important;
}

.chat-mode .topbar {
  display: none !important;
}

.chat-mode .conversation,
.chat-mode .conversation.has-messages,
.chat-mode .conversation:has(.welcome.hidden) {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 74px max(22px, calc((100vw - var(--chat-sidebar-width) - 820px) / 2)) calc(128px + env(safe-area-inset-bottom)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain !important;
  touch-action: pan-y !important;
  scrollbar-width: none !important;
}

.chat-mode .conversation::-webkit-scrollbar {
  display: none !important;
}

.chat-mode .welcome {
  display: flex !important;
  min-height: calc(100dvh - 240px) !important;
  align-items: center !important;
  justify-content: center !important;
}

.chat-mode .welcome.hidden,
.chat-mode .conversation.has-messages .welcome,
.chat-mode.chat-has-messages .welcome {
  display: none !important;
}

.chat-mode .message-list {
  display: flex !important;
  flex-direction: column !important;
  width: min(820px, 100%) !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 0 34px !important;
  gap: 34px !important;
  justify-content: flex-start !important;
  overflow: visible !important;
}

.chat-mode .message-row {
  display: flex !important;
  width: 100% !important;
  margin: 0 !important;
}

.chat-mode .message-row.user {
  justify-content: flex-end !important;
}

.chat-mode .message-row.assistant {
  justify-content: flex-start !important;
}

.chat-mode .message,
.chat-mode .message.user,
.chat-mode .message.assistant {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #f5f5f5 !important;
  font-size: clamp(16px, 1.8vw, 18px) !important;
  line-height: 1.55 !important;
  letter-spacing: -0.018em !important;
}

.chat-mode .message.user {
  max-width: min(76%, 560px) !important;
  padding: 10px 14px !important;
  border-radius: 20px !important;
  background: #303030 !important;
  line-height: 1.38 !important;
}

.chat-mode .message.assistant {
  max-width: min(72%, 640px) !important;
}

.chat-mode .message p {
  margin: 0 0 0.75em !important;
  color: inherit !important;
}

.chat-mode .message p:last-child {
  margin-bottom: 0 !important;
}

.chat-mode .composer-area {
  position: fixed !important;
  z-index: 230 !important;
  left: calc(var(--chat-sidebar-width) + (100vw - var(--chat-sidebar-width)) / 2) !important;
  right: auto !important;
  bottom: calc(16px + env(safe-area-inset-bottom) + var(--imdi-keyboard-offset, 0px)) !important;
  transform: translateX(-50%) !important;
  width: min(760px, calc(100vw - var(--chat-sidebar-width) - 44px)) !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
}

.chat-mode .composer {
  pointer-events: auto !important;
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) 36px 44px !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 62px !important;
  padding: 8px 8px 8px 12px !important;
  border-radius: 32px !important;
  background: #303030 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.chat-mode .composer,
.chat-mode .composer:focus,
.chat-mode .composer:focus-within {
  outline: 0 !important;
  border-color: transparent !important;
}

.chat-mode .composer textarea,
.chat-mode .composer textarea:focus,
.chat-mode .composer textarea:focus-visible {
  grid-column: 2 !important;
  width: 100% !important;
  min-height: 28px !important;
  max-height: 128px !important;
  padding: 4px 0 !important;
  color: #fff !important;
  caret-color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  resize: none !important;
  opacity: 1 !important;
}

.chat-mode .composer textarea::placeholder {
  color: rgba(255, 255, 255, 0.56) !important;
  opacity: 1 !important;
}

.chat-mode .composer-bottom,
.chat-mode .composer-tools,
.chat-mode .composer-tools-left,
.chat-mode .composer-tools-right {
  display: contents !important;
}

.chat-mode .composer-tools-left {
  grid-column: 1 !important;
}

.chat-mode .composer-tools-right {
  grid-column: 3 / 5 !important;
}

.chat-mode .composer-plus {
  grid-column: 1 !important;
}

.chat-mode .composer-mic {
  grid-column: 3 !important;
}

.chat-mode .send-button {
  grid-column: 4 !important;
}

.chat-mode .composer-icon,
.chat-mode .send-button {
  display: grid !important;
  place-items: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.chat-mode .send-button {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.chat-mode .send-button:not(:disabled) {
  background: rgba(255, 255, 255, 0.18) !important;
}

.chat-mode .send-button:disabled {
  opacity: 0.45 !important;
}

@media (max-width: 820px) {
  body.auth-landing.chat-mode,
  body.is-native-app.chat-mode {
    --chat-sidebar-width: 0px !important;
  }

  .chat-mode .app-shell {
    display: block !important;
    grid-template-columns: none !important;
  }

  .chat-mode .main {
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
  }

  .chat-mode .topbar {
    position: fixed !important;
    z-index: 230 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: calc(62px + env(safe-area-inset-top)) !important;
    padding: env(safe-area-inset-top) 22px 0 !important;
    background: #000 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .chat-mode .topbar .mobile-only,
  .chat-mode .topbar .icon-button {
    display: grid !important;
  }

  .chat-mode .mobile-brand {
    position: absolute !important;
    left: 50% !important;
    top: calc(env(safe-area-inset-top) + 14px) !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    font-size: 24px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    letter-spacing: -0.052em !important;
    color: #fff !important;
  }

  .chat-mode .mobile-brand img {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    object-fit: contain !important;
  }

  .chat-mode .conversation,
  .chat-mode .conversation.has-messages,
  .chat-mode .conversation:has(.welcome.hidden) {
    position: fixed !important;
    inset: calc(62px + env(safe-area-inset-top)) 0 0 0 !important;
    width: 100vw !important;
    height: auto !important;
    padding: 18px 0 calc(136px + env(safe-area-inset-bottom) + var(--imdi-keyboard-offset, 0px)) !important;
  }

  .chat-mode .message-list,
  .chat-mode .welcome {
    width: 100% !important;
    max-width: none !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  .chat-mode .message-list {
    gap: 32px !important;
    padding-bottom: 30px !important;
  }

  .chat-mode .message,
  .chat-mode .message.user,
  .chat-mode .message.assistant {
    font-size: clamp(17px, 5vw, 22px) !important;
    line-height: 1.45 !important;
  }

  .chat-mode .message.user {
    max-width: 78% !important;
    padding: 10px 14px !important;
    border-radius: 21px !important;
  }

  .chat-mode .message.assistant {
    max-width: 86% !important;
  }

  .chat-mode .composer-area {
    left: 50% !important;
    bottom: calc(12px + env(safe-area-inset-bottom) + var(--imdi-keyboard-offset, 0px)) !important;
    width: calc(100vw - 28px) !important;
  }

  .chat-mode .composer {
    min-height: 74px !important;
    border-radius: 34px !important;
    padding: 10px 10px 10px 14px !important;
  }

  .chat-mode .composer textarea,
  .chat-mode .composer textarea:focus {
    font-size: clamp(18px, 5.4vw, 23px) !important;
    line-height: 1.22 !important;
  }

  .chat-mode .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(83vw, 326px) !important;
    min-width: 0 !important;
    max-width: min(83vw, 326px) !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    padding: calc(22px + env(safe-area-inset-top)) 14px calc(12px + env(safe-area-inset-bottom)) !important;
    transform: translateX(-104%) !important;
    transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
  }

  body.sidebar-open.chat-mode .sidebar,
  .chat-mode.sidebar-open .sidebar {
    transform: translateX(0) !important;
  }

  .chat-mode .sidebar-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 250 !important;
    background: rgba(0, 0, 0, 0.56) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.25s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
  }

  body.sidebar-open.chat-mode .sidebar-backdrop,
  .chat-mode.sidebar-open .sidebar-backdrop {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.sidebar-open.chat-mode .composer-area,
  .chat-mode.sidebar-open .composer-area {
    pointer-events: none !important;
  }
}

/* v20260711-1: use the Android launcher logo as the only in-app logo style. */
.landing-brand-mark,
.brand-mark,
.mobile-brand img,
.welcome-logo img,
.intro-mark img,
.dialog-icon img,
.logo-stamp img {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.landing-brand-mark img,
.brand-mark img,
.mobile-brand img,
.welcome-logo img,
.intro-mark img,
.dialog-icon img,
.logo-stamp img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  transform: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.chat-mode .brand-mark,
body.is-native-app.chat-mode .brand-mark,
body.chat-mode .menu-item .brand-mark,
body.is-native-app.chat-mode .menu-item .brand-mark {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.chat-mode .mobile-brand img,
body.is-native-app.chat-mode .mobile-brand img {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 10px !important;
}

body.chat-mode .sidebar .menu-item.active .brand-mark,
body.is-native-app.chat-mode .sidebar .menu-item.active .brand-mark {
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 820px) {
  body.chat-mode .brand-mark,
  body.is-native-app.chat-mode .brand-mark,
  body.chat-mode .menu-item .brand-mark,
  body.is-native-app.chat-mode .menu-item .brand-mark {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 10px !important;
  }

  body.chat-mode .mobile-brand img,
  body.is-native-app.chat-mode .mobile-brand img {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 10px !important;
  }
}
