:root {
  color-scheme: light;
  --night-1000: #12080d;
  --night-950: #180d13;
  --night-900: #221018;
  --night-850: #321522;
  --paper: #fbfcff;
  --canvas: #eef2f8;
  --ink: #2b1a23;
  --ink-soft: #68525e;
  --muted: #88747e;
  --line: #dfe5ef;
  --line-strong: #cbd4e2;
  --cobalt: #9c3c5a;
  --cobalt-deep: #77213f;
  --cobalt-soft: #f6e8ed;
  --signal: #e5b95d;
  --signal-soft: #fbf1d5;
  --white: #ffffff;
  --danger: #c63d4f;
  --shadow-xl: 0 34px 90px rgba(29, 10, 18, 0.3);
  --shadow-lg: 0 20px 55px rgba(66, 27, 42, 0.13);
  --shadow-sm: 0 8px 24px rgba(72, 34, 49, 0.08);
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(156, 60, 90, 0.36);
  outline-offset: 3px;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.login-screen {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  overflow-y: auto;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 11% 12%, rgba(156, 60, 90, 0.18), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(229, 185, 93, 0.12), transparent 28%),
    #f2ecef;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.authenticated .login-screen {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.login-shell {
  display: grid;
  width: min(1180px, 100%);
  min-height: min(720px, calc(100dvh - 56px));
  grid-template-columns: minmax(0, 1.35fr) minmax(390px, 0.65fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-xl);
}

.login-showcase {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 52px 58px 42px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgba(156, 60, 90, 0.3), transparent 34%),
    linear-gradient(145deg, var(--night-950), var(--night-1000));
}

.login-showcase::before {
  position: absolute;
  right: -100px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(229, 185, 93, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(229, 185, 93, 0.035), 0 0 0 92px rgba(156, 60, 90, 0.035);
  content: "";
}

.signal-grid {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(194, 109, 135, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194, 109, 135, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom right, black, transparent 78%);
}

.brand-lockup,
.sidebar-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(229, 185, 93, 0.33);
  border-radius: 16px;
  color: var(--signal);
  background: rgba(229, 185, 93, 0.08);
}

.brand-mark svg {
  width: 29px;
  height: 29px;
}

.brand-lockup span,
.sidebar-brand > div:nth-child(2) span {
  display: block;
  margin-bottom: 4px;
  color: var(--signal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.brand-lockup strong,
.sidebar-brand > div:nth-child(2) strong {
  display: block;
  color: var(--white);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.showcase-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 58px 0 42px;
}

.micro-label,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #e8b4c4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.micro-label span,
.eyebrow i {
  width: 22px;
  height: 2px;
  background: var(--cobalt);
}

.showcase-copy h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(39px, 4.4vw, 62px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.showcase-copy h1 em,
.conversation-intro h3 em {
  color: var(--signal);
  font-style: normal;
}

.showcase-copy > p:last-child {
  max-width: 610px;
  margin: 25px 0 0;
  color: #b9c6db;
  font-size: 15px;
  line-height: 1.85;
}

.showcase-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.showcase-metrics div {
  min-width: 0;
  padding: 22px 12px 22px 0;
}

.showcase-metrics div + div {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.showcase-metrics strong,
.showcase-metrics span {
  display: block;
}

.showcase-metrics strong {
  color: var(--white);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.showcase-metrics span {
  margin-top: 6px;
  color: #8798b6;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  color: #7689aa;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.showcase-footer span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.showcase-footer i,
.private-status i,
.runtime-badge i,
.status-head i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(229, 185, 93, 0.12);
}

.login-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 58px 48px;
  background: var(--paper);
}

.private-label {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--cobalt-deep);
  background: var(--cobalt-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.login-header h2 {
  margin: 19px 0 9px;
  font-size: 29px;
  letter-spacing: -0.04em;
}

.login-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.boundary-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 27px 0;
  padding: 16px;
  border: 1px solid #f1dfba;
  border-radius: 15px;
  color: #75551c;
  background: #fff9eb;
}

.boundary-notice svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.boundary-notice p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.boundary-notice strong {
  display: block;
  margin-bottom: 2px;
  color: #5a400e;
}

.login-fields {
  display: grid;
  gap: 18px;
}

.login-fields label > span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.field-control {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field-control:focus-within {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 4px rgba(156, 60, 90, 0.1);
}

.field-control svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: #8a97ab;
}

.field-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.login-error {
  min-height: 19px;
  margin: 12px 0 5px;
  color: var(--danger);
  font-size: 11px;
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cobalt), #74263f);
  box-shadow: 0 13px 28px rgba(116, 38, 63, 0.24);
  font-size: 13px;
  font-weight: 750;
}

.login-button svg {
  width: 20px;
  height: 20px;
}

.login-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 21px;
  color: #9aa5b8;
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.login-footnote i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c4ccda;
}

.app-shell {
  display: grid;
  width: 100%;
  height: 100dvh;
  min-width: 0;
  grid-template-columns: minmax(330px, 380px) minmax(0, 1fr);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.994);
  transition: opacity 380ms ease, transform 380ms ease;
}

.authenticated .app-shell {
  opacity: 1;
  transform: none;
}

.scenario-panel {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 20px;
  padding: 27px 25px 21px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 105% 12%, rgba(156, 60, 90, 0.22), transparent 28%),
    linear-gradient(165deg, var(--night-950), var(--night-1000));
}

.brand-mark.compact {
  width: 39px;
  height: 39px;
  border-radius: 12px;
}

.brand-mark.compact svg {
  width: 23px;
  height: 23px;
}

.sidebar-brand > div:nth-child(2) {
  min-width: 0;
}

.sidebar-brand > div:nth-child(2) strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-brand > b {
  margin-left: auto;
  padding: 6px 8px;
  border: 1px solid rgba(229, 185, 93, 0.28);
  border-radius: 7px;
  color: var(--signal);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.workspace-title p {
  margin: 0 0 7px;
  color: #7890b7;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.workspace-title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.workspace-title h1 span {
  color: var(--signal);
}

.status-card {
  padding: 17px;
  border: 1px solid rgba(167, 109, 129, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #9eb0ce;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.status-head span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-head b {
  color: var(--signal);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.status-card h2 {
  margin: 13px 0 7px;
  font-size: 14px;
}

.status-card > p {
  margin: 0;
  color: #8193b1;
  font-size: 10px;
  line-height: 1.6;
}

.data-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.data-metrics div {
  min-width: 0;
  padding: 9px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
}

.data-metrics strong,
.data-metrics span {
  display: block;
}

.data-metrics strong {
  color: #dbe7ff;
  font-size: 12px;
}

.data-metrics span {
  margin-top: 3px;
  overflow: hidden;
  color: #7185a8;
  font-size: 7px;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.question-section {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 11px;
  overflow: hidden;
}

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

.section-heading span,
.section-heading strong {
  display: block;
}

.section-heading span {
  margin-bottom: 4px;
  color: var(--cobalt);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.section-heading strong {
  font-size: 12px;
}

.section-heading button {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(167, 109, 129, 0.2);
  border-radius: 10px;
  color: #9db0ce;
  background: rgba(255, 255, 255, 0.04);
}

.section-heading button svg {
  width: 16px;
  height: 16px;
}

.scenario-list {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 5px;
  scrollbar-color: rgba(133, 77, 98, 0.55) transparent;
  scrollbar-width: thin;
}

.scenario-button {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 11px;
  border: 1px solid rgba(167, 109, 129, 0.14);
  border-radius: 11px;
  color: #c5d1e6;
  text-align: left;
  background: rgba(255, 255, 255, 0.032);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.scenario-button:hover:not(:disabled) {
  border-color: rgba(156, 60, 90, 0.5);
  background: rgba(156, 60, 90, 0.1);
  transform: translateX(2px);
}

.scenario-button > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  color: var(--signal);
  background: rgba(229, 185, 93, 0.08);
  font-size: 8px;
  font-weight: 800;
}

.scenario-button strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 10px;
  font-weight: 560;
  line-height: 1.55;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(167, 109, 129, 0.15);
}

.sidebar-footer svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  color: var(--signal);
}

.sidebar-footer p {
  min-width: 0;
  margin: 0;
}

.sidebar-footer strong,
.sidebar-footer span {
  display: block;
}

.sidebar-footer strong {
  color: #d5def0;
  font-size: 9px;
}

.sidebar-footer span {
  margin-top: 3px;
  color: #7185a8;
  font-size: 8px;
  overflow-wrap: anywhere;
}

.chat-panel {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: var(--paper);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 255, 0.96);
}

.chat-title {
  min-width: 0;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--cobalt-deep);
  font-size: 8px;
}

.chat-title h2 {
  margin: 0 0 5px;
  font-size: 21px;
  letter-spacing: -0.035em;
}

.chat-title > span {
  display: block;
  max-width: 720px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.chat-actions {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.runtime-badge,
.rag-badge {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 9px;
  font-weight: 700;
}

.runtime-badge span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.runtime-badge i {
  background: var(--cobalt);
  box-shadow: 0 0 0 4px rgba(156, 60, 90, 0.1);
}

.rag-badge {
  color: #647189;
  box-shadow: none;
}

.rag-badge svg {
  width: 15px;
  height: 15px;
  color: var(--cobalt);
}

.messages {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 34px clamp(24px, 5vw, 78px);
  scrollbar-color: #b7c2d4 transparent;
  scrollbar-width: thin;
}

.conversation-intro {
  max-width: 820px;
  margin: 4vh auto 48px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 95% 8%, rgba(156, 60, 90, 0.11), transparent 28%),
    linear-gradient(145deg, var(--white), #f5f8fe);
  box-shadow: var(--shadow-lg);
}

.conversation-intro > span {
  color: var(--cobalt-deep);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.conversation-intro h3 {
  margin: 16px 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.conversation-intro p {
  max-width: 630px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.capability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.capability-row span {
  padding: 8px 11px;
  border: 1px solid #cfdbef;
  border-radius: 999px;
  color: #315282;
  background: #f3f7fe;
  font-size: 9px;
  font-weight: 700;
}

.message {
  display: grid;
  width: min(900px, 100%);
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  margin: 0 auto 20px;
}

.message.user {
  width: min(760px, 88%);
  margin-right: 0;
  grid-template-columns: minmax(0, 1fr) 38px;
}

.message.user .message-avatar {
  grid-column: 2;
  grid-row: 1;
  color: var(--white);
  background: var(--cobalt);
}

.message.user .message-content {
  grid-column: 1;
  grid-row: 1;
  border-color: #cad8f5;
  background: var(--cobalt-soft);
}

.message-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--signal);
  background: var(--night-900);
  font-size: 10px;
  font-weight: 850;
}

.message-content {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 5px 18px 18px 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.message.user .message-content {
  border-radius: 18px 5px 18px 18px;
}

.message-label {
  margin-bottom: 8px;
  color: #6d7d96;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.message-text {
  color: #263650;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.meta {
  margin-top: 13px;
  color: #8793a6;
  font-size: 9px;
  overflow-wrap: anywhere;
}

.progress-track {
  height: 4px;
  margin-top: 15px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebf3;
}

.progress-bar {
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cobalt), var(--signal));
  animation: progress 1.45s ease-in-out infinite;
}

@keyframes progress {
  0% { transform: translateX(-115%); }
  100% { transform: translateX(260%); }
}

.references {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.reference-heading {
  grid-column: 1 / -1;
  color: var(--cobalt-deep);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.reference {
  min-width: 0;
  padding: 11px;
  border: 1px solid #dbe3f0;
  border-radius: 10px;
  background: #f7f9fd;
}

.reference strong,
.reference span,
.reference small {
  display: block;
  overflow-wrap: anywhere;
}

.reference strong {
  color: #29446e;
  font-size: 10px;
}

.reference span {
  margin-top: 4px;
  color: #697790;
  font-size: 9px;
  line-height: 1.45;
}

.reference small {
  margin-top: 7px;
  color: #95a0b2;
  font-size: 8px;
}

.composer-zone {
  min-width: 0;
  padding: 16px clamp(22px, 4.5vw, 70px) 18px;
  border-top: 1px solid var(--line);
  background: rgba(251, 252, 255, 0.97);
}

.composer {
  display: grid;
  width: min(940px, 100%);
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: end;
  margin: 0 auto;
}

.composer-box {
  min-width: 0;
  padding: 11px 14px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.composer-box:focus-within {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 4px rgba(156, 60, 90, 0.09);
}

.composer textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-height: 130px;
  resize: none;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  line-height: 1.55;
}

.composer textarea::placeholder {
  color: #98a3b5;
}

.composer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #9aa5b6;
  font-size: 8px;
}

.composer-meta kbd {
  padding: 2px 4px;
  border: 1px solid #d6deea;
  border-radius: 4px;
  color: #68758a;
  background: #f5f7fb;
  font-size: 8px;
}

.private-status {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.private-status i {
  width: 6px;
  height: 6px;
  background: var(--cobalt);
  box-shadow: none;
}

#sendButton {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 0;
  border-radius: 15px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cobalt), var(--cobalt-deep));
  box-shadow: 0 12px 25px rgba(119, 33, 63, 0.25);
}

#sendButton svg {
  width: 21px;
  height: 21px;
}

.composer-disclaimer {
  width: min(940px, 100%);
  margin: 8px auto 0;
  color: #8b96a8;
  font-size: 8px;
  line-height: 1.45;
  text-align: center;
}

button:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.is-answering .runtime-badge {
  border-color: #f0d99f;
  background: #fffaf0;
}

@media (max-width: 1020px) {
  .login-shell {
    grid-template-columns: minmax(0, 1.1fr) minmax(350px, 0.9fr);
  }

  .login-showcase {
    padding-inline: 38px;
  }

  .app-shell {
    grid-template-columns: minmax(300px, 330px) minmax(0, 1fr);
  }

  .scenario-panel {
    padding-inline: 19px;
  }

  .chat-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

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

  .login-screen {
    display: block;
    padding: 0;
  }

  .login-shell {
    min-height: 100dvh;
    grid-template-columns: minmax(0, 1fr);
    border: 0;
    border-radius: 0;
  }

  .login-showcase {
    min-height: 365px;
    padding: 28px 22px 24px;
  }

  .showcase-copy {
    margin: 42px 0 30px;
  }

  .showcase-copy h1 {
    font-size: clamp(34px, 10.5vw, 44px);
  }

  .showcase-copy > p:last-child {
    font-size: 12px;
  }

  .showcase-metrics div {
    padding-block: 15px;
  }

  .showcase-metrics div + div {
    padding-left: 13px;
  }

  .showcase-metrics strong {
    font-size: 18px;
  }

  .showcase-metrics span {
    font-size: 7px;
  }

  .showcase-footer {
    display: none;
  }

  .login-panel {
    padding: 34px 22px 40px;
  }

  .app-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(300px, 40dvh) minmax(0, 60dvh);
  }

  .scenario-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 11px;
    padding: 14px 15px 12px;
  }

  .workspace-title,
  .status-card,
  .sidebar-footer {
    display: none;
  }

  .question-section {
    gap: 8px;
  }

  .scenario-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .scenario-button {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
  }

  .scenario-button > span {
    width: 22px;
    height: 22px;
    font-size: 7px;
  }

  .scenario-button strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 8px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .chat-header {
    gap: 8px;
    padding: 11px 15px 10px;
  }

  .eyebrow,
  .chat-title > span,
  .rag-badge {
    display: none;
  }

  .chat-title h2 {
    margin: 0;
    font-size: 16px;
  }

  .runtime-badge {
    min-height: 27px;
    padding: 0 9px;
    font-size: 8px;
  }

  .messages {
    padding: 14px 12px;
  }

  .conversation-intro {
    margin: 0 auto 20px;
    padding: 18px;
    border-radius: 17px;
  }

  .conversation-intro > span {
    font-size: 7px;
  }

  .conversation-intro h3 {
    margin: 10px 0;
    font-size: 26px;
  }

  .conversation-intro p {
    font-size: 10px;
  }

  .capability-row {
    margin-top: 13px;
  }

  .capability-row span {
    padding: 6px 8px;
    font-size: 7px;
  }

  .message,
  .message.user {
    width: 100%;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
  }

  .message.user {
    grid-template-columns: minmax(0, 1fr) 30px;
  }

  .message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 8px;
  }

  .message-content {
    padding: 13px 14px;
  }

  .message-text {
    font-size: 11px;
    line-height: 1.65;
  }

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

  .composer-zone {
    padding: 9px 10px 10px;
  }

  .composer {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 7px;
  }

  .composer-box {
    padding: 8px 10px 6px;
    border-radius: 12px;
  }

  .composer textarea {
    max-height: 74px;
    font-size: 10px;
  }

  .composer-meta > span:first-child {
    display: none;
  }

  #sendButton {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .composer-disclaimer {
    font-size: 7px;
  }
}

@media (max-width: 380px) {
  .scenario-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell {
    grid-template-rows: minmax(260px, 35dvh) minmax(0, 65dvh);
  }
}

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