:root {
  color-scheme: light;
  --charcoal-950: #151915;
  --charcoal-900: #1d241f;
  --charcoal-850: #242c26;
  --charcoal-800: #30382f;
  --canvas: #f2f0e9;
  --canvas-strong: #e8e4d8;
  --paper: #fffdf8;
  --paper-soft: #f8f5ed;
  --white: #ffffff;
  --ink: #20251f;
  --ink-soft: #455047;
  --muted: #728071;
  --subtle: #99a191;
  --line: #ded8c9;
  --line-strong: #c8bfaa;
  --teal: #18a999;
  --teal-bright: #64dac8;
  --teal-soft: #ddf5ef;
  --amber: #d39b2a;
  --amber-soft: #fff0c8;
  --rust: #b55332;
  --danger: #b42318;
  --shadow-xl: 0 30px 80px rgba(26, 28, 24, 0.24);
  --shadow-lg: 0 20px 54px rgba(32, 37, 31, 0.13);
  --shadow-sm: 0 9px 24px rgba(32, 37, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

button,
textarea,
input {
  outline: none;
}

button:focus-visible,
textarea:focus-visible,
input:focus-visible {
  box-shadow: 0 0 0 3px rgba(24, 169, 153, 0.24);
}

button:disabled,
textarea:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

svg {
  display: block;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

strong,
span,
p,
button,
input,
textarea {
  overflow-wrap: anywhere;
}

body.authenticated .login-screen {
  display: none;
}

body.locked .app-shell {
  display: none;
}

/* Login */

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 36px;
  background:
    linear-gradient(135deg, rgba(211, 155, 42, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(24, 169, 153, 0.12), transparent 36%),
    var(--canvas);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(392px, 0.88fr);
  width: min(1160px, 100%);
  min-height: min(700px, calc(100vh - 72px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow-xl);
}

.login-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 42px 46px 32px;
  background:
    linear-gradient(145deg, var(--charcoal-950), var(--charcoal-900) 56%, #273023),
    var(--charcoal-950);
  color: var(--white);
}

.showcase-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(120deg, transparent 0, #000 22%, #000 74%, transparent 100%);
}

.login-showcase::before {
  position: absolute;
  right: 38px;
  bottom: 136px;
  width: 260px;
  height: 150px;
  border: 1px solid rgba(100, 218, 200, 0.25);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 14%, rgba(100, 218, 200, 0.18) 14% 16%, transparent 16% 44%, rgba(211, 155, 42, 0.24) 44% 46%, transparent 46% 72%, rgba(100, 218, 200, 0.18) 72% 74%, transparent 74%),
    rgba(255, 255, 255, 0.03);
  content: "";
}

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

.brand-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(100, 218, 200, 0.33);
  border-radius: 8px;
  background: rgba(100, 218, 200, 0.09);
  color: var(--teal-bright);
}

.brand-symbol svg {
  width: 26px;
  height: 26px;
}

.brand-symbol svg path:first-child {
  fill: currentColor;
  stroke: none;
}

.brand-symbol .brand-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.agency-brand span,
.sidebar-brand > div:nth-child(2) span {
  display: block;
  color: var(--teal-bright);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.agency-brand strong,
.sidebar-brand > div:nth-child(2) strong {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
}

.showcase-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
  padding: 72px 0 58px;
  max-width: 620px;
}

.showcase-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
}

.showcase-label span {
  width: 28px;
  height: 1px;
  background: var(--teal-bright);
}

.showcase-copy h1 {
  margin-top: 22px;
  color: #f9fff9;
  font-size: 56px;
  font-weight: 720;
  line-height: 1.1;
}

.showcase-copy p:last-child {
  margin-top: 26px;
  max-width: 520px;
  color: rgba(248, 255, 248, 0.68);
  font-size: 15px;
  line-height: 1.8;
}

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

.showcase-metrics div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 21px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.showcase-metrics div:first-child {
  padding-left: 0;
}

.showcase-metrics div:last-child {
  border-right: 0;
}

.showcase-metrics strong {
  color: var(--teal-bright);
  font-size: 30px;
  line-height: 1;
}

.showcase-metrics span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.showcase-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
}

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

.showcase-footer i,
.private-status i,
.agent-badge i,
.eyebrow i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(100, 218, 200, 0.15);
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  min-width: 0;
  padding: 48px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0)),
    var(--paper);
}

.login-header {
  display: grid;
  gap: 10px;
}

.private-label {
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  color: var(--rust);
  font-size: 11px;
  font-weight: 900;
}

.login-header h2 {
  color: var(--ink);
  font-size: 28px;
  line-height: 1.25;
}

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

.demo-notice {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(211, 155, 42, 0.36);
  border-radius: 8px;
  background: var(--amber-soft);
  color: #6d5118;
  line-height: 1.55;
  font-size: 13px;
}

.notice-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: rgba(211, 155, 42, 0.14);
  color: var(--amber);
}

.notice-icon svg {
  width: 20px;
  height: 20px;
}

.demo-notice strong {
  display: block;
  color: #5d4312;
}

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

.login-field {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 850;
}

.field-control {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
}

.field-control:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(24, 169, 153, 0.12);
}

.field-control svg {
  width: 20px;
  height: 20px;
}

.field-control input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.login-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--charcoal-950);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.login-button:hover {
  background: #0f130f;
  transform: translateY(-1px);
}

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

.login-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
}

.login-footnote i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* App Shell */

.app-shell {
  display: grid;
  grid-template-columns: minmax(312px, 368px) minmax(0, 1fr);
  height: 100vh;
  min-height: 100vh;
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
}

.scenario-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    var(--charcoal-950);
  color: var(--white);
}

.scenario-panel::-webkit-scrollbar,
.messages::-webkit-scrollbar {
  width: 10px;
}

.scenario-panel::-webkit-scrollbar-thumb {
  border: 3px solid var(--charcoal-950);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.24);
}

.messages::-webkit-scrollbar-thumb {
  border: 3px solid var(--paper);
  border-radius: 8px;
  background: rgba(32, 37, 31, 0.22);
}

.brand-symbol.compact {
  width: 42px;
  height: 42px;
}

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

.demo-chip {
  margin-left: auto;
  padding: 6px 8px;
  border: 1px solid rgba(100, 218, 200, 0.26);
  border-radius: 8px;
  color: var(--teal-bright);
  font-size: 11px;
  font-weight: 900;
}

.workspace-title {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.workspace-title p {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 900;
}

.workspace-title h1 {
  color: #fbfff9;
  font-size: 30px;
  line-height: 1.22;
}

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

.status-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.status-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 900;
}

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

.status-card-head b {
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(100, 218, 200, 0.14);
  color: var(--teal-bright);
  font-size: 11px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(100, 218, 200, 0.14);
}

.status-card h2 {
  color: var(--white);
  font-size: 18px;
  line-height: 1.35;
}

.status-card p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.58;
}

.data-metrics {
  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);
}

.data-metrics div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.data-metrics div:first-child {
  padding-left: 0;
}

.data-metrics div:last-child {
  border-right: 0;
}

.data-metrics strong {
  color: var(--teal-bright);
  font-size: 24px;
  line-height: 1;
}

.data-metrics span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 800;
}

.signal-board {
  display: grid;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.signal-board div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.signal-board div:last-child {
  border-bottom: 0;
}

.signal-board span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 760;
}

.signal-board strong {
  color: #fff3ce;
  font-size: 13px;
  text-align: right;
}

.question-section {
  display: grid;
  gap: 11px;
  min-height: 0;
}

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

.section-heading div {
  display: grid;
  gap: 4px;
}

.section-heading span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 900;
}

.section-heading strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

#reloadScenarios {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

#reloadScenarios:hover {
  border-color: rgba(100, 218, 200, 0.45);
  color: var(--teal-bright);
}

#reloadScenarios svg {
  width: 19px;
  height: 19px;
}

.scenario-list {
  display: grid;
  gap: 8px;
}

.scenario-button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  line-height: 1.48;
  cursor: pointer;
}

.scenario-button:hover {
  border-color: rgba(100, 218, 200, 0.36);
  background: rgba(100, 218, 200, 0.075);
  color: var(--white);
  transform: translateY(-1px);
}

.scenario-button:disabled:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  transform: none;
}

.scenario-index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(100, 218, 200, 0.26);
  border-radius: 8px;
  color: var(--teal-bright);
  font-size: 11px;
  font-weight: 900;
}

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

.sidebar-footer {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.footer-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(100, 218, 200, 0.25);
  border-radius: 8px;
  color: var(--teal-bright);
}

.footer-icon svg {
  width: 20px;
  height: 20px;
}

.sidebar-footer p {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sidebar-footer strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.sidebar-footer span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  line-height: 1.45;
}

/* Chat */

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100vh;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(24, 169, 153, 0.04), transparent 36%),
    var(--paper);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 94px;
  padding: 18px max(28px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(14px);
}

.chat-title {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.chat-title h2 {
  color: var(--ink);
  font-size: 23px;
  line-height: 1.25;
}

.chat-title span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 340px;
}

.agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  color: #116d62;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.agent-badge svg {
  width: 16px;
  height: 16px;
}

.muted-badge {
  color: var(--ink-soft);
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px max(28px, calc((100vw - 1160px) / 2));
}

.conversation-intro {
  display: grid;
  gap: 12px;
  max-width: 720px;
  padding: 22px 0 14px;
}

.intro-label {
  color: var(--rust);
  font-size: 11px;
  font-weight: 900;
}

.conversation-intro h3 {
  color: var(--ink);
  font-size: 34px;
  line-height: 1.18;
}

.conversation-intro p {
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

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

.capability-row span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 900px;
  line-height: 1.65;
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message.agent,
.message.loading {
  align-self: flex-start;
}

.message-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--charcoal-950);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.message.user .message-avatar {
  background: #116d62;
}

.message-content {
  display: grid;
  gap: 8px;
  max-width: min(760px, calc(100vw - 460px));
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.message.user .message-content {
  border-color: #116d62;
  background: #116d62;
  color: var(--white);
}

.message-label {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 900;
}

.message.user .message-label {
  color: rgba(255, 255, 255, 0.7);
}

.message-text {
  min-width: 0;
  white-space: pre-wrap;
}

.message.loading .message-content {
  min-width: min(100%, 360px);
  color: var(--muted);
}

.progress-track {
  position: relative;
  height: 6px;
  width: 280px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: #e1ddd0;
}

.progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 44%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  animation: progress-slide 1.05s ease-in-out infinite;
}

@keyframes progress-slide {
  0% {
    transform: translateX(-110%);
  }

  55% {
    width: 64%;
  }

  100% {
    transform: translateX(235%);
  }
}

.meta {
  color: var(--subtle);
  font-size: 12px;
  white-space: normal;
}

.message.user .meta {
  color: rgba(255, 255, 255, 0.72);
}

.references {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.references-title {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
}

.reference {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  white-space: normal;
}

.reference strong {
  color: var(--ink);
  font-size: 12px;
}

.reference span {
  color: var(--muted);
}

.reference small {
  color: var(--subtle);
  font-size: 11px;
}

.composer-zone {
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.96);
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
  padding: 16px max(28px, calc((100vw - 1160px) / 2)) 10px;
}

.composer-box {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
}

.composer-box:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(24, 169, 153, 0.12);
}

textarea {
  width: 100%;
  min-height: 56px;
  max-height: 160px;
  min-width: 0;
  padding: 0;
  border: 0;
  resize: none;
  background: transparent;
  color: var(--ink);
  line-height: 1.55;
}

textarea::placeholder {
  color: var(--subtle);
}

.composer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 750;
}

.private-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.private-status i {
  width: 7px;
  height: 7px;
}

#sendButton {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  align-self: end;
  border: 0;
  border-radius: 8px;
  background: var(--charcoal-950);
  color: var(--white);
  cursor: pointer;
}

#sendButton:hover {
  background: #0f130f;
  transform: translateY(-1px);
}

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

.composer-disclaimer {
  padding: 0 max(28px, calc((100vw - 1160px) / 2)) 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .showcase-copy h1 {
    font-size: 46px;
  }

  .login-panel {
    padding: 38px;
  }

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

  .message-content {
    max-width: min(720px, calc(100vw - 420px));
  }
}

@media (max-width: 920px) {
  body {
    overflow: auto;
  }

  .login-screen {
    padding: 18px;
  }

  .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-showcase {
    min-height: 420px;
    padding: 30px;
  }

  .login-showcase::before {
    right: 28px;
    bottom: 76px;
    width: 220px;
    height: 126px;
  }

  .showcase-copy {
    padding: 58px 0 44px;
  }

  .showcase-copy h1 {
    font-size: 40px;
  }

  .showcase-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .login-panel {
    padding: 28px;
  }

  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .scenario-panel {
    max-height: none;
    overflow: visible;
    padding: 18px;
  }

  .workspace-title h1 {
    font-size: 27px;
  }

  .question-section {
    min-height: auto;
  }

  .chat-panel {
    height: auto;
    min-height: 68vh;
    overflow: visible;
  }

  .chat-header {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 18px;
  }

  .chat-actions {
    justify-content: flex-start;
    max-width: 100%;
  }

  .messages {
    max-height: 64vh;
    padding: 20px 18px;
  }

  .conversation-intro h3 {
    font-size: 30px;
  }

  .message-content {
    max-width: calc(100vw - 92px);
  }

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

  .composer-disclaimer {
    padding: 0 18px 14px;
  }
}

@media (max-width: 560px) {
  .login-screen {
    display: block;
  }

  .login-shell {
    width: 100%;
  }

  .login-showcase {
    min-height: 360px;
    padding: 24px;
  }

  .agency-brand,
  .sidebar-brand {
    gap: 10px;
  }

  .brand-symbol {
    width: 42px;
    height: 42px;
  }

  .showcase-copy h1 {
    font-size: 34px;
  }

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

  .showcase-metrics {
    grid-template-columns: 1fr;
  }

  .showcase-metrics div {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .showcase-metrics div:last-child {
    border-bottom: 0;
  }

  .login-panel {
    padding: 22px;
  }

  .demo-notice {
    align-items: flex-start;
  }

  .login-footnote {
    align-items: center;
    flex-wrap: wrap;
  }

  .scenario-panel {
    padding: 16px;
  }

  .sidebar-brand > div:nth-child(2) strong {
    font-size: 13px;
  }

  .demo-chip {
    display: none;
  }

  .data-metrics {
    grid-template-columns: 1fr;
  }

  .data-metrics div {
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .data-metrics div:last-child {
    border-bottom: 0;
  }

  .signal-board div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .signal-board strong {
    text-align: left;
  }

  .chat-title h2 {
    font-size: 21px;
  }

  .conversation-intro h3 {
    font-size: 27px;
  }

  .capability-row span {
    width: 100%;
  }

  .message {
    gap: 9px;
  }

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

  .message-content {
    max-width: calc(100vw - 78px);
    padding: 12px;
  }

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

  .composer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  #sendButton {
    width: 46px;
    height: 46px;
  }
}

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