:root {
  --signal-red: #ed1f24;
  --signal-red-dark: #b3171b;
  --signal-red-tint: #feefef;
  --ink: #231f20;
  --paper: #ffffff;
  --ledger: #f7f7f7;
  --paper-2: #ebebeb;
  --paper-3: #d9d9d9;
  --rule: #ebebeb;
  --rule-strong: #d1cece;
  --graphite: #6b6566;
  --slate: #3a3536;
  --muted: #6b6566;
  --muted-light: #8a8484;
  --gain: #10b981;
  --warn: #f59e0b;
  --shadow: 0 18px 45px rgba(35, 31, 32, 0.08);
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --mono: "IBM Plex Mono", "SFMono-Regular", "Cascadia Code", "Liberation Mono", monospace;
  --sans: "Hanken Grotesk", "Inter", "Segoe UI", "Helvetica Neue", sans-serif;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/static/fonts/HankenGrotesk-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/static/fonts/HankenGrotesk-Italic-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--ledger);
  font-family: var(--sans);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.left-rail,
.right-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 40;
  width: min(380px, calc(100vw - 34px));
  overflow-y: auto;
  border-color: var(--rule);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 70px rgba(35, 31, 32, 0.14);
  transition: transform 180ms ease, opacity 180ms ease;
}

.left-rail {
  left: 0;
  transform: translateX(-104%);
  border-right: 1px solid var(--rule);
  padding: 22px 18px;
}

.right-rail {
  right: 0;
  width: min(440px, calc(100vw - 34px));
  transform: translateX(104%);
  border-left: 1px solid var(--rule);
  padding: 18px;
}

.left-rail.open,
.right-rail.open {
  transform: translateX(0);
}

.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(35, 31, 32, 0.22);
  backdrop-filter: blur(2px);
}

.brand-row {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
}

.brand-row img {
  width: 172px;
  max-height: 34px;
  object-fit: contain;
}

.rail-section,
.artifact-focus {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.right-rail .rail-section:last-child,
.left-rail .rail-section:last-child {
  border-bottom: 0;
}

.rail-section h2,
.artifact-focus h2 {
  margin: 0 0 11px;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 750;
}

.prompt-chip {
  display: block;
  width: 100%;
  min-height: 42px;
  margin: 0 0 8px;
  padding: 10px 11px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  text-align: left;
  font-size: 13px;
  line-height: 1.25;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.prompt-chip:hover {
  border-color: var(--signal-red);
  transform: translateY(-1px);
  background: var(--paper);
}

.recent-question-list,
.semantic-list {
  display: grid;
  gap: 8px;
}

.recent-question-item,
.empty-state {
  width: 100%;
  min-height: 40px;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid rgba(35, 31, 32, 0.08);
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 13px;
  line-height: 1.35;
}

.recent-question-item:first-child,
.empty-state:first-child {
  border-top: 0;
}

.recent-question-item {
  cursor: pointer;
}

.recent-question-item:hover {
  color: var(--signal-red);
}

.empty-state {
  color: var(--muted);
  cursor: default;
}

.semantic-item {
  padding: 10px 0;
  border-top: 1px solid rgba(35, 31, 32, 0.08);
}

.semantic-item:first-child {
  border-top: 0;
}

.semantic-name {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
}

.semantic-grain {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.conversation-panel {
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  align-content: start;
  min-width: 0;
  min-height: 100vh;
  height: auto;
  max-width: 1120px;
  margin: 0 auto;
}

.top-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title utilities"
    "panels panels";
  align-items: center;
  gap: 12px 18px;
  padding: 14px 28px 12px;
  border-bottom: 1px solid var(--rule);
  background: rgba(247, 246, 243, 0.95);
  position: relative;
  z-index: 20;
}

.top-title {
  grid-area: title;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.top-logo {
  width: 142px;
  max-width: 34vw;
  height: auto;
  max-height: 28px;
  display: block;
}

.top-title-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.panel-switcher {
  grid-area: panels;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
}

.panel-trigger {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 156px;
  padding: 0 13px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--slate);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

.panel-trigger:hover,
.panel-trigger[aria-expanded="true"] {
  border-color: var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
}

.panel-trigger[aria-expanded="true"] {
  box-shadow: 0 8px 18px rgba(35, 31, 32, 0.06);
}

.panel-trigger-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--paper-3);
}

.panel-trigger[aria-expanded="true"] .panel-trigger-dot {
  background: var(--signal-red);
}

.top-utilities {
  grid-area: utilities;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.transcript-download,
.utility-toggle {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.transcript-download {
  border-color: rgba(237, 31, 36, 0.28);
  background: rgba(237, 31, 36, 0.07);
  color: var(--signal-red-dark);
  white-space: nowrap;
}

.transcript-download:hover:not(:disabled) {
  border-color: rgba(237, 31, 36, 0.48);
  background: rgba(237, 31, 36, 0.12);
}

.transcript-download:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.utility-toggle:hover,
.utility-toggle[aria-expanded="true"] {
  border-color: var(--signal-red);
  color: var(--signal-red);
}

.utility-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 210px;
  padding: 6px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.utility-item {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  text-align: left;
}

.utility-item:hover {
  background: var(--signal-red-tint);
  color: var(--signal-red-dark);
}

.utility-item:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.58;
}

.utility-item:disabled:hover {
  background: transparent;
  color: var(--muted);
}

.utility-item-primary {
  color: var(--signal-red-dark);
}

.eyebrow {
  margin: 0 0 6px;
  font-family: var(--mono);
  color: var(--signal-red);
  font-size: 11px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 780;
}

.top-action,
.panel-close {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.top-action:hover,
.panel-close:hover {
  border-color: var(--signal-red);
  color: var(--signal-red);
}

.top-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.top-link-primary {
  color: var(--signal-red-dark);
}

.top-link:hover {
  color: var(--signal-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.status-pill {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 220px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--paper-3);
}

.status-pill.ready {
  color: var(--gain);
}

.status-pill.ready::before {
  background: var(--gain);
}

.status-pill.error {
  color: var(--signal-red);
}

.status-pill.error::before {
  background: var(--signal-red);
}

.agent-hero {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.agent-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 34px 22px;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  gap: 26px;
  align-items: start;
}

.hero-copy {
  position: relative;
  padding-left: 16px;
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 4px;
  width: 3px;
  border-radius: 999px;
  background: var(--signal-red);
}

.hero-eyebrow {
  margin: 0 0 7px;
  font-family: var(--mono);
  color: var(--signal-red);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.hero-copy h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 0.98;
  font-weight: 820;
  letter-spacing: 0;
}

.hero-copy > p:not(.hero-eyebrow) {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

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

.hero-question {
  min-height: 58px;
  margin: 0;
  padding: 12px 13px;
  background: #fbfbfb;
  border-color: var(--rule-strong);
  color: var(--slate);
  font-size: 13px;
  line-height: 1.28;
}

.hero-question:hover {
  background: var(--paper);
}

.messages {
  min-height: 0;
  overflow: visible;
  padding: 26px 34px;
}

.conversation-actions {
  display: grid;
  grid-template-columns: minmax(128px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 34px 10px;
  background: rgba(247, 246, 243, 0.92);
}

.conversation-actions[hidden] {
  display: none;
}

.conversation-actions .transcript-download,
.conversation-share-button {
  min-height: 32px;
  background: rgba(255, 255, 255, 0.88);
}

.conversation-actions-heading {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.conversation-actions-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 720;
}

.conversation-share-status {
  min-height: 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.conversation-share-channels {
  display: flex;
  min-width: 0;
  justify-content: flex-end;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.conversation-share-channels::-webkit-scrollbar {
  display: none;
}

.transcript-action-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.conversation-share-button,
.conversation-save-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.share-logo,
.share-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-logo {
  border-radius: 4px;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  line-height: 1;
}

.share-logo-x {
  background: #000;
  font-size: 11px;
}

.share-logo-facebook {
  align-items: flex-end;
  background: #1877f2;
  font-size: 17px;
  padding-bottom: 1px;
}

.share-logo-linkedin {
  background: #0a66c2;
  font-size: 10px;
  letter-spacing: -0.04em;
}

.share-logo-slack {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(35, 31, 32, 0.12);
  background: #fff;
}

.slack-mark-piece {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 4px;
}

.slack-mark-green {
  left: 3px;
  top: 3px;
  background: #2eb67d;
}

.slack-mark-blue {
  right: 3px;
  top: 3px;
  background: #36c5f0;
}

.slack-mark-yellow {
  left: 3px;
  bottom: 3px;
  background: #ecb22e;
}

.slack-mark-red {
  right: 3px;
  bottom: 3px;
  background: #e01e5a;
}

.share-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.conversation-share-button:hover:not(:disabled),
.conversation-save-menu summary:hover {
  border-color: rgba(237, 31, 36, 0.42);
  color: var(--signal-red-dark);
}

.conversation-share-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.conversation-save-menu {
  position: relative;
}

.conversation-save-menu summary {
  list-style: none;
  cursor: pointer;
}

.conversation-save-menu summary::-webkit-details-marker {
  display: none;
}

.conversation-save-menu .transcript-action-group {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 15;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.transcript-download.primary,
.conversation-share-button.primary {
  border-color: rgba(237, 31, 36, 0.36);
  background: rgba(237, 31, 36, 0.08);
  color: var(--signal-red-dark);
}

.message {
  max-width: 920px;
  margin: 0 auto 20px;
  min-width: 0;
}

.message-kicker {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 7px;
}

.message.user .message-body {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  margin-left: auto;
  max-width: 76%;
}

.message.assistant .message-body {
  background: rgba(255, 255, 255, 0.94);
}

.message-body {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(35, 31, 32, 0.05);
  line-height: 1.48;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.qualification-intake {
  margin-top: 15px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0;
}

.intake-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.intake-section.optional {
  padding: 0;
}

.intake-section.optional summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--signal-red-dark);
  font-size: 12px;
  font-weight: 780;
  cursor: pointer;
}

.intake-section.optional .intake-grid {
  padding-bottom: 14px;
}

.intake-section-title {
  margin: 0 0 9px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  color: var(--signal-red);
  font-weight: 760;
  text-transform: uppercase;
}

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

.intake-grid.compact {
  grid-template-columns: minmax(170px, 0.75fr) minmax(0, 1.25fr);
}

.intake-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.intake-field.wide {
  grid-column: 1 / -1;
}

.intake-field > span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.field-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.intake-field.required > span:first-child::after,
.intake-field:has(:required) > span:first-child::after {
  content: " *";
  color: var(--signal-red);
}

.intake-field input,
.intake-field textarea {
  width: 100%;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  outline: none;
  font-size: 13px;
  line-height: 1.35;
}

.intake-field input {
  min-height: 38px;
  padding: 8px 10px;
}

.intake-field textarea {
  min-height: 68px;
  resize: vertical;
  padding: 9px 10px;
}

.intake-field input:focus,
.intake-field textarea:focus {
  border-color: var(--signal-red);
  box-shadow: 0 0 0 3px rgba(237, 31, 36, 0.08);
}

.segmented-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.segmented-choice label {
  min-width: 0;
}

.segmented-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-choice span {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.segmented-choice label + label span {
  border-left: 1px solid var(--rule);
}

.segmented-choice input:checked + span {
  background: var(--ink);
  color: var(--paper);
}

.intake-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
}

.intake-actions button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: var(--radius);
  background: var(--signal-red);
  color: var(--paper);
  font-size: 12px;
  font-weight: 780;
}

.qualification-intake :disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.intake-submitted {
  margin-top: 15px;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}

.message-body > .intake-submitted:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.submitted-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--radius);
  background: rgba(16, 185, 129, 0.08);
  color: #0f766e;
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.intake-submitted dl {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.intake-submitted div {
  min-width: 0;
}

.intake-submitted dt {
  font-size: 11px;
  color: var(--muted);
  font-weight: 720;
}

.intake-submitted dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.submitted-user-summary {
  display: grid;
  gap: 4px;
}

.submitted-user-summary strong {
  font-weight: 780;
}

.submitted-user-summary span {
  color: rgba(255, 255, 255, 0.82);
  overflow-wrap: anywhere;
}

.markdown-body {
  font-size: 14px;
  line-height: 1.52;
  min-width: 0;
  max-width: 100%;
}

.markdown-body > :first-child {
  margin-top: 0;
}

.markdown-body > :last-child {
  margin-bottom: 0;
}

.markdown-body p {
  margin: 0 0 12px;
}

.markdown-body h3,
.markdown-body h4,
.markdown-body h5 {
  margin: 18px 0 9px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  text-transform: uppercase;
  font-weight: 820;
}

.markdown-body strong {
  font-weight: 820;
}

.markdown-body code,
.soft-term {
  font-family: var(--mono);
  font-size: 0.92em;
  background: rgba(35, 31, 32, 0.06);
  border: 1px solid rgba(35, 31, 32, 0.08);
  border-radius: 5px;
  padding: 1px 4px;
}

.soft-term {
  font-family: inherit;
  font-weight: 720;
  background: rgba(237, 31, 36, 0.06);
  border-color: rgba(237, 31, 36, 0.14);
}

.markdown-body ul {
  margin: 0 0 13px;
  padding-left: 19px;
}

.markdown-body li {
  margin: 5px 0;
}

.artifact-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.artifact {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  min-width: 0;
  max-width: 100%;
}

.artifact-header,
.artifact-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 9px;
}

.artifact-title {
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--signal-red);
  font-weight: 780;
  line-height: 1.18;
  min-width: 0;
}

.artifact-type-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
}

.artifact-toolbar.inline {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.artifact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(237, 31, 36, 0.24);
  border-radius: var(--radius);
  background: rgba(237, 31, 36, 0.06);
  color: var(--signal-red-dark);
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
}

.artifact-action:hover {
  border-color: rgba(237, 31, 36, 0.42);
  background: rgba(237, 31, 36, 0.1);
}

.superset-frame {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}

.superset-frame-chart {
  height: clamp(320px, 48vh, 560px);
}

.superset-frame-table {
  height: clamp(360px, 52vh, 620px);
}

.superset-table-detail {
  margin-top: 8px;
}

.superset-table-detail summary {
  cursor: pointer;
  color: var(--signal-red-dark);
  font-size: 12px;
  font-weight: 780;
}

.table-scroll-hint {
  margin: -3px 0 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.2;
}

.markdown-table-shell {
  min-width: 0;
  max-width: 100%;
}

.table-wrap,
.markdown-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--signal-red) var(--paper-2);
}

table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: var(--ink);
  border-top: 3px solid var(--signal-red);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0;
}

tr:last-child td {
  border-bottom: 0;
}

td.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

tbody tr:nth-child(even) td {
  background: rgba(247, 246, 243, 0.56);
}

.chart-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}

.superset-chart-frame {
  display: block;
  width: 100%;
  height: 540px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}

.chart-fallback {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--signal-red);
  text-decoration: none;
  font-size: 13px;
}

.mini-chart {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 12px;
}

.mini-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 8px;
  color: var(--slate);
  font-size: 12px;
  font-weight: 720;
}

.mini-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mini-chart-legend i {
  display: inline-block;
  width: 16px;
  height: 10px;
  border-radius: 2px;
}

.mini-chart-legend .legend-bar {
  background: var(--signal-red);
}

.mini-chart-legend .legend-line {
  height: 3px;
  border-radius: 999px;
  background: var(--ink);
}

.mini-chart svg {
  width: 100%;
  height: 270px;
  display: block;
}

.chart-tick line {
  stroke: rgba(35, 31, 32, 0.08);
}

.chart-tick text,
.axis-label {
  fill: var(--muted);
  font-size: 11px;
}

.value-label {
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 4px;
  stroke-linejoin: round;
  font-size: 10.5px;
  font-weight: 720;
}

.bar-label {
  fill: var(--signal-red-dark);
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 10px;
  padding: 14px 34px 20px;
  border-top: 1px solid var(--rule);
  background: rgba(247, 246, 243, 0.92);
}

.composer textarea {
  width: 100%;
  min-height: 54px;
  max-height: 160px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  outline: none;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.35;
}

.composer textarea:focus {
  border-color: var(--signal-red);
  box-shadow: 0 0 0 3px rgba(237, 31, 36, 0.08);
}

.composer button {
  border-radius: var(--radius);
  background: var(--signal-red);
  color: var(--paper);
  font-weight: 760;
  min-height: 42px;
  padding: 0 14px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.plan-title {
  display: block;
  color: var(--ink);
  font-weight: 760;
  margin-bottom: 5px;
}

.plan-meta {
  font-family: var(--mono);
  font-size: 11px;
}

.plan-rationale {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.evidence-feed {
  display: grid;
  gap: 13px;
}

.evidence-entry {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 12px;
}

.evidence-question {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 720;
}

.evidence-entry-meta,
.evidence-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.evidence-entry-meta {
  margin-top: 4px;
  font-family: var(--mono);
}

.evidence-answer-preview {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.evidence-artifact-list {
  display: grid;
  gap: 9px;
  margin-top: 11px;
}

.evidence-artifact-row {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 9px;
  border-top: 1px solid var(--rule);
}

.evidence-artifact-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: baseline;
}

.artifact-kind {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 0 6px;
  border: 1px solid rgba(237, 31, 36, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(237, 31, 36, 0.06);
  color: var(--signal-red-dark);
  font-size: 10px;
  font-weight: 780;
  text-transform: uppercase;
}

.evidence-artifact-title {
  min-width: 0;
  color: var(--slate);
  font-size: 12.5px;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.evidence-artifact-main .evidence-meta {
  grid-column: 2;
}

.evidence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.evidence-thumb {
  display: block;
  width: 100%;
  max-height: 210px;
  object-fit: contain;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}

.evidence-chart-frame {
  display: block;
  width: 100%;
  height: 260px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}

@media (max-width: 720px) {
  .superset-chart-frame {
    height: 420px;
  }

  .evidence-chart-frame {
    height: 220px;
  }
}

.evidence-table-preview {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}

.evidence-table-preview table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  line-height: 1.25;
}

.evidence-table-preview th,
.evidence-table-preview td {
  max-width: 140px;
  padding: 7px 8px;
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.evidence-table-preview th {
  border-top: 0;
  color: var(--muted);
  font-weight: 780;
  background: rgba(247, 247, 247, 0.72);
}

.evidence-mini-chart .artifact {
  padding-top: 0;
  border-top: 0;
}

.guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 42px 18px;
  overflow-y: auto;
  background: rgba(35, 31, 32, 0.32);
  backdrop-filter: blur(4px);
}

.guide-overlay[hidden] {
  display: none;
}

body.guide-open {
  overflow: hidden;
}

.guide-popover {
  width: min(720px, 100%);
  max-height: calc(100vh - 84px);
  overflow-y: auto;
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(35, 31, 32, 0.22);
}

.guide-popover[hidden] {
  display: none;
}

.guide-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.guide-eyebrow {
  margin: 0 0 7px;
  color: var(--signal-red);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.guide-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 820;
}

.guide-close {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.guide-close:hover {
  border-color: var(--signal-red);
  color: var(--signal-red);
}

.client-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 22px 0;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.client-tab {
  min-height: 40px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.client-tab + .client-tab {
  border-left: 1px solid var(--rule);
}

.client-tab.active {
  background: var(--ink);
  color: var(--paper);
}

.guide-panel {
  padding: 18px 22px 22px;
}

.guide-summary {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-left: 3px solid var(--signal-red);
  background: var(--signal-red-tint);
}

.guide-summary strong {
  font-size: 14px;
  font-weight: 820;
}

.guide-summary span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.connection-list {
  margin: 16px 0 0;
  border-top: 1px solid var(--rule);
}

.connection-list div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.connection-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.connection-list dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.guide-steps {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.guide-steps li {
  margin: 8px 0;
  padding-left: 3px;
}

.inline-prompt {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 1px 4px;
  border: 1px solid rgba(35, 31, 32, 0.1);
  border-radius: 4px;
  background: rgba(35, 31, 32, 0.05);
}

.guide-command {
  margin: 16px 0 0;
  padding: 13px 14px;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
}

.guide-command code {
  font: inherit;
}

.guide-doc-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 16px;
  padding: 0 11px;
  border: 1px solid rgba(237, 31, 36, 0.22);
  border-radius: var(--radius);
  background: rgba(237, 31, 36, 0.06);
  color: var(--signal-red-dark);
  font-size: 12px;
  font-weight: 780;
  text-decoration: none;
}

.guide-doc-link:hover {
  border-color: rgba(237, 31, 36, 0.42);
  color: var(--signal-red);
}

.help-popover {
  width: min(860px, 100%);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  padding: 18px 22px 22px;
}

.help-section {
  padding: 15px 0;
  border-top: 1px solid var(--rule);
}

.help-section:nth-child(-n + 2) {
  border-top: 0;
}

.help-section h3 {
  margin: 0 0 8px;
  color: var(--signal-red);
  font-size: 11px;
  font-weight: 820;
  line-height: 1;
  text-transform: uppercase;
}

.help-section p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.access-body {
  min-height: 100vh;
  background: var(--ledger);
}

.access-shell {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 26px 0 60px;
}

.access-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.access-brand img {
  width: 174px;
  max-height: 34px;
  display: block;
}

.access-back {
  margin-top: 0;
}

.access-panel {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 18px 45px rgba(35, 31, 32, 0.08);
  padding: 28px;
}

.access-panel h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 0.98;
  font-weight: 830;
}

.access-intro {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.access-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.access-form label {
  display: grid;
  gap: 6px;
}

.access-form label:first-child {
  grid-column: 1 / -1;
}

.access-form span,
.access-choice legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.access-form input[type="email"],
.access-form input[type="text"] {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

.access-form input:focus {
  border-color: var(--signal-red);
  box-shadow: 0 0 0 3px rgba(237, 31, 36, 0.08);
}

.access-choice {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.access-choice legend {
  padding: 0 4px;
}

.access-choice label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.access-form button[type="submit"] {
  grid-column: 1 / -1;
  min-height: 42px;
  justify-self: start;
  padding: 0 15px;
  border-radius: var(--radius);
  background: var(--signal-red);
  color: var(--paper);
  font-size: 13px;
  font-weight: 820;
}

.access-status {
  margin-top: 18px;
  padding: 12px 13px;
  border-left: 3px solid var(--rule-strong);
  background: rgba(35, 31, 32, 0.04);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.access-status.success {
  border-left-color: var(--gain);
  background: rgba(16, 185, 129, 0.08);
  color: #0f766e;
}

.access-status.error {
  border-left-color: var(--signal-red);
  background: var(--signal-red-tint);
  color: var(--signal-red-dark);
}

.access-tabs {
  margin: 22px 0 0;
}

.copy-inline {
  margin-left: 8px;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(237, 31, 36, 0.22);
  border-radius: var(--radius);
  background: rgba(237, 31, 36, 0.06);
  color: var(--signal-red-dark);
  font-size: 11px;
  font-weight: 780;
}

.copy-inline:hover {
  border-color: rgba(237, 31, 36, 0.42);
  color: var(--signal-red);
}

.copy-command {
  border: 1px solid rgba(237, 31, 36, 0.22);
  cursor: pointer;
}

.thinking-card {
  display: grid;
  gap: 12px;
}

.thinking-main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.thinking-visuals {
  position: relative;
  width: 58px;
  height: 42px;
}

.thinking-image {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(35, 31, 32, 0.05);
}

.thinking-image img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.thinking-image-a {
  left: 0;
  top: 0;
  animation: think-drift-a 1.7s ease-in-out infinite;
}

.thinking-image-b {
  right: 0;
  bottom: 0;
  animation: think-drift-b 1.7s ease-in-out 180ms infinite;
}

.thinking-copy {
  min-width: 0;
}

.thinking-status {
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.25;
}

.thinking-subcopy {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.thinking-meter {
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-2);
}

.thinking-meter span {
  display: block;
  width: 12%;
  height: 100%;
  border-radius: inherit;
  background: var(--signal-red);
  transition: width 420ms ease;
}

.thinking-steps,
.answer-steps {
  border-top: 1px solid var(--rule);
  padding-top: 10px;
}

.thinking-steps summary,
.answer-steps summary {
  width: fit-content;
  color: var(--signal-red-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
}

.thinking-steps ol,
.answer-steps ol {
  display: grid;
  gap: 9px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.thinking-step,
.answer-step {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.thinking-step strong,
.answer-step strong {
  display: block;
  color: var(--slate);
  font-size: 12.5px;
  font-weight: 680;
}

.thinking-step em,
.answer-step em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-style: normal;
}

.step-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--paper);
}

.thinking-step.active .step-dot {
  border-color: var(--signal-red);
  background: var(--signal-red);
  animation: step-pulse 900ms ease-in-out infinite;
}

.thinking-step.complete .step-dot,
.step-dot.complete {
  border-color: var(--signal-red);
  background: var(--signal-red);
}

.answer-steps {
  margin: 12px 0;
}

@keyframes think-drift-a {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@keyframes think-drift-b {
  0%,
  100% {
    transform: translateY(4px);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes step-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(237, 31, 36, 0.22);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(237, 31, 36, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .thinking-image-a,
  .thinking-image-b,
  .thinking-step.active .step-dot {
    animation: none;
  }

  .thinking-meter span {
    transition: none;
  }
}

@media (max-width: 1120px) {
  .conversation-panel {
    max-width: none;
  }
}

@media (max-width: 780px) {
  .conversation-panel {
    min-height: 100svh;
    height: auto;
  }

  .left-rail,
  .right-rail {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto;
    max-height: min(72vh, 720px);
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 14px;
    transform: translateY(calc(100% + 24px));
  }

  .left-rail.open,
  .right-rail.open {
    transform: translateY(0);
  }

  .panel-backdrop {
    background: rgba(35, 31, 32, 0.18);
    backdrop-filter: blur(1px);
  }

  .brand-row {
    height: 42px;
    margin-bottom: 12px;
  }

  .brand-row img {
    width: 134px;
  }

  .top-strip {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title utilities"
      "panels panels";
    gap: 10px 12px;
    padding: 10px 14px 11px;
  }

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

  .top-logo {
    width: 116px;
    max-width: 34vw;
  }

  .top-title-copy h1 {
    font-size: 15px;
  }

  .status-pill {
    max-width: 150px;
    font-size: 10.5px;
  }

  .panel-switcher {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: stretch;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
    width: 100%;
  }

  .panel-trigger {
    flex: 1 1 0;
    min-width: 0;
    min-height: 36px;
    padding: 0 8px;
    border-color: transparent;
    background: transparent;
  }

  .top-utilities {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .utility-menu {
    right: 0;
    min-width: min(236px, calc(100vw - 28px));
  }

  .agent-hero-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 14px;
  }

  .hero-copy {
    padding-left: 12px;
  }

  .hero-copy h2 {
    margin-bottom: 8px;
    font-size: 30px;
    line-height: 1;
  }

  .hero-copy > p:not(.hero-eyebrow) {
    font-size: 14px;
    line-height: 1.38;
  }

  .hero-prompts {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .hero-prompts::-webkit-scrollbar {
    display: none;
  }

  .hero-question {
    flex: 0 0 min(286px, 78vw);
    min-height: 48px;
    scroll-snap-align: start;
  }

  .messages {
    padding: 20px 16px;
  }

  .conversation-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 0 16px 10px;
  }

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

  .intake-submitted dl {
    grid-template-columns: 1fr;
  }

  .composer {
    grid-template-columns: 1fr;
    padding: 12px 16px 16px;
  }

  .conversation-actions .transcript-download {
    max-width: min(100%, 220px);
  }

  .conversation-share-channels {
    justify-content: flex-start;
  }

  .conversation-save-menu .transcript-action-group {
    right: auto;
    left: 0;
  }

  .guide-overlay {
    padding: 12px;
  }

  .guide-popover {
    max-height: calc(100vh - 24px);
  }

  .guide-header {
    padding: 16px;
  }

  .guide-header h2 {
    font-size: 21px;
  }

  .client-switch,
  .guide-panel {
    margin-left: 16px;
    margin-right: 16px;
  }

  .guide-panel {
    padding: 16px 0 18px;
  }

  .connection-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .help-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .help-section:nth-child(2) {
    border-top: 1px solid var(--rule);
  }

  .access-shell {
    width: min(100vw - 24px, 920px);
    padding-top: 14px;
  }

  .access-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .access-panel {
    padding: 18px;
  }

  .access-form {
    grid-template-columns: 1fr;
  }
}
