:root {
  color-scheme: light;
  --bg: #efefec;
  --surface: #fbfbf8;
  --surface-2: #f5f5f0;
  --line: #d9d8d1;
  --line-strong: #bcb9af;
  --ink: #1d1d1b;
  --muted: #6f716a;
  --soft: #9c9e95;
  --green: #2f7d5c;
  --green-dark: #1f5f45;
  --amber: #a96f1c;
  --red: #b84d40;
  --blue: #3b6c8e;
  --shadow: 0 16px 50px rgba(32, 31, 28, 0.12);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(29, 29, 27, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(29, 29, 27, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

.app-shell {
  --sidebar-width: 264px;
  --composer-height: 260px;
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
  overflow: hidden;
}

.app-shell.sidebar-collapsed {
  --sidebar-width: 72px;
}

.app-shell.sidebar-hidden {
  --sidebar-width: 0px;
}

.topbar {
  display: grid;
  grid-template-columns: 104px minmax(180px, 1fr) auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 248, 0.88);
  backdrop-filter: blur(20px);
}

.window-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.window-controls span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.16);
}

.window-controls span:nth-child(1) {
  background: #df6a5d;
}

.window-controls span:nth-child(2) {
  background: #d9a43b;
}

.window-controls span:nth-child(3) {
  background: #4d9a6a;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #20201d;
  color: #f6f4ef;
  font-size: 11px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
}

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

.endpoint {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 280px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.profile-pill {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 116px;
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.profile-pill span,
.profile-pill small {
  display: block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-pill span {
  font-size: 12px;
  font-weight: 700;
}

.profile-pill small {
  color: var(--muted);
  font-size: 11px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--soft);
}

.status-pill.online .status-dot {
  background: var(--green);
}

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

.workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(440px, 1fr) 340px;
  gap: 0;
  overflow: hidden;
}

.sidebar,
.inspector {
  min-width: 0;
  background: rgba(245, 245, 240, 0.9);
}

.sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-right: 1px solid var(--line);
  transition: width 160ms ease, opacity 160ms ease;
  overflow: hidden;
}

.sidebar-hidden .sidebar {
  border-right: 0;
  opacity: 0;
  pointer-events: none;
}

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

.sidebar-head {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.sidebar-collapsed .sidebar-head {
  justify-content: center;
  padding: 14px 10px;
}

.sidebar-collapsed .sidebar-head > div,
.sidebar-collapsed .sidebar-footer,
.sidebar-collapsed .session-copy {
  display: none;
}

.sidebar-collapsed .session-list {
  padding: 10px 8px;
}

.sidebar-collapsed .session-row {
  grid-template-columns: 1fr;
}

.sidebar-collapsed .session-item {
  grid-template-columns: 34px;
  justify-content: center;
  padding: 9px;
  margin-bottom: 6px;
}

.sidebar-collapsed .session-delete {
  display: none;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.1;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.2;
}

.icon-button,
.ghost-button,
.primary-button,
.domain-button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
}

.icon-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
}

.icon-button:hover,
.ghost-button:hover,
.domain-button:hover {
  border-color: var(--line-strong);
  background: #ffffff;
}

.session-list {
  min-height: 0;
  overflow: auto;
  padding: 10px;
}

.session-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 6px;
  align-items: start;
  margin-bottom: 8px;
}

.session-item {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
}

.session-row:hover .session-delete,
.session-delete:focus-visible {
  opacity: 1;
}

.session-delete {
  margin-top: 8px;
  color: var(--muted);
  opacity: 0;
}

.session-delete:hover {
  color: var(--red);
  border-color: rgba(184, 77, 64, 0.35);
}

.session-item:hover,
.session-item.active {
  background: var(--surface);
  border-color: var(--line);
}

.session-glyph {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #24231f;
  color: #f8f7f1;
  font-size: 12px;
  font-weight: 700;
}

.session-row:nth-child(2) .session-glyph {
  background: var(--blue);
}

.session-row:nth-child(3) .session-glyph {
  background: var(--amber);
}

.session-title,
.session-meta,
.session-decision {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-title {
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 650;
}

.session-meta {
  color: var(--muted);
  font-size: 12px;
}

.session-decision {
  margin-top: 4px;
  color: var(--soft);
  font-size: 12px;
}

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

.session-glyph.status-running {
  background: var(--amber);
}

.session-glyph.status-succeeded {
  background: var(--green);
}

.session-glyph.status-failed {
  background: var(--red);
}

.session-glyph.status-cancelled {
  background: #8b8173;
}

.sidebar-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.mini-stat {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mini-stat span,
.result-metrics span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.mini-stat strong,
.result-metrics strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.thread-pane {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 8px minmax(154px, var(--composer-height));
  background: rgba(251, 251, 248, 0.78);
}

.thread-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

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

.thread-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.ghost-button,
.primary-button,
.domain-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}

.primary-button {
  min-width: 116px;
  border-color: var(--green-dark);
  background: var(--green);
  color: #fff;
  font-weight: 650;
}

.primary-button:hover {
  background: var(--green-dark);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.danger-button {
  min-width: 72px;
  border-color: rgba(184, 77, 64, 0.38);
  color: var(--red);
}

.danger-button:hover {
  background: rgba(184, 77, 64, 0.07);
}

.danger-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.message-stack {
  min-height: 0;
  overflow: auto;
  padding: 18px 20px;
}

.message {
  max-width: 860px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
}

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #25241f;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
}

.message.user .avatar {
  background: var(--green);
}

.bubble {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 6px 22px rgba(30, 29, 26, 0.05);
}

.error-bubble {
  border-color: rgba(184, 77, 64, 0.35);
  background: rgba(184, 77, 64, 0.04);
}

.bubble-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.bubble-body {
  padding: 13px 14px;
  line-height: 1.65;
}

.bubble-body p {
  margin-bottom: 10px;
}

.report-brief {
  display: grid;
  gap: 12px;
}

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

.report-strip > div,
.report-metric {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
}

.report-strip span,
.report-metric span,
.scenario small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.report-strip strong,
.report-metric strong {
  display: block;
  min-width: 0;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.report-thesis {
  margin: 0;
  color: var(--ink);
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.report-outline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.report-outline span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}

.workspace-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.workspace-tab {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.workspace-tab strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.workspace-tab p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.report-section-grid,
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.report-section,
.scenario {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.report-section h3 {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.35;
}

.report-section p,
.scenario p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.report-section ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.report-section li + li {
  margin-top: 4px;
}

.today-call {
  border-color: rgba(47, 125, 92, 0.34);
}

.status-section,
.a-share-summary {
  border-color: rgba(47, 125, 92, 0.26);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.status-grid span {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
}

.status-grid small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.status-grid strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.status-error {
  margin-top: 8px !important;
  color: var(--red, #b84d40) !important;
  overflow-wrap: anywhere;
}

.committee-memo {
  border-color: rgba(47, 125, 92, 0.24);
  background: rgba(47, 125, 92, 0.045);
}

.committee-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.committee-head h3 {
  margin-bottom: 5px;
}

.committee-head strong {
  min-width: 72px;
  padding: 6px 10px;
  border: 1px solid rgba(47, 125, 92, 0.32);
  border-radius: 999px;
  background: var(--surface);
  color: var(--green-dark);
  text-align: center;
}

.committee-drivers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.committee-drivers span {
  padding: 4px 7px;
  border: 1px solid rgba(47, 125, 92, 0.22);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
}

.agent-score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.agent-score-card {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.agent-score-card > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.agent-score-card strong,
.agent-score-card span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-score-card span {
  color: var(--muted);
  font-size: 11px;
}

.agent-score-card p {
  margin-top: 6px;
  font-size: 12px;
}

.agent-score-card meter {
  width: 100%;
  height: 8px;
  margin-top: 7px;
}

.debate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.debate-card {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.debate-card div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.debate-card span,
.debate-card small {
  color: var(--muted);
  font-size: 11px;
}

.debate-card p {
  margin-top: 6px;
  font-size: 12px;
}

.debate-card ul {
  margin-top: 6px;
  font-size: 12px;
}

.mini-table {
  width: 100%;
  margin-top: 9px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.mini-table th,
.mini-table td {
  padding: 6px 7px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.mini-table th {
  color: var(--muted);
  font-weight: 650;
}

.mini-table td {
  overflow-wrap: anywhere;
  color: var(--ink);
}

.level-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.level-row span {
  min-width: 0;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}

.level-row strong {
  color: var(--ink);
  font-weight: 650;
}

.level-row em {
  margin-left: 4px;
  color: var(--green-dark);
  font-style: normal;
  font-weight: 650;
}

.evidence-list {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.evidence-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-size: 12px;
}

.evidence-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-row strong {
  color: var(--ink);
}

.evidence-row em {
  color: var(--muted);
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.scenario strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.scenario small {
  margin-top: 6px;
}

.report-wide {
  grid-column: 1 / -1;
  background: var(--surface);
}

.source-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.source-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.source-chain span {
  padding: 4px 7px;
  border: 1px solid rgba(47, 125, 92, 0.25);
  border-radius: 999px;
  background: rgba(47, 125, 92, 0.07);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 650;
}

.source-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.7fr) minmax(0, 1.5fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  font-size: 12px;
}

.source-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
}

.source-row em {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 650;
}

.lead-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.lead-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}

.lead-toolbar span {
  flex: 1 1 220px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.lead-row {
  display: grid;
  grid-template-columns: 15px minmax(120px, 0.75fr) 74px minmax(0, 1.2fr) minmax(90px, 0.6fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border: 1px dashed rgba(47, 125, 92, 0.26);
  border-radius: 7px;
  background: rgba(47, 125, 92, 0.045);
  color: inherit;
  font-size: 12px;
  text-decoration: none;
}

.lead-row input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--green);
}

.lead-row span,
.lead-row em,
.lead-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-row strong {
  color: var(--green-dark);
}

.lead-row em {
  color: var(--muted);
  font-style: normal;
}

.lead-row small {
  color: var(--muted-2);
  font-size: 11px;
}

.lead-row a {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.lead-result {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(47, 125, 92, 0.18);
  border-radius: 7px;
  background: rgba(47, 125, 92, 0.055);
}

.deepen-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.deepen-summary.success strong {
  color: var(--green-dark);
}

.deepen-summary.empty strong {
  color: #8a5a16;
}

.deepen-summary.running strong {
  color: var(--text);
}

.deepen-summary.failed strong {
  color: #9b2f2f;
}

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

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

.deepen-kpis div {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.deepen-kpis strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  line-height: 1;
}

.deepen-kpis span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.deepen-kpis .hit strong {
  color: var(--green-dark);
}

.deepen-kpis .miss strong,
.deepen-kpis .warn strong {
  color: #8a5a16;
}

.deepen-kpis.skeleton strong {
  color: var(--muted-2);
}

.deepen-diagnostics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid rgba(120, 132, 148, 0.22);
  border-radius: 7px;
  background: rgba(248, 250, 252, 0.78);
  font-size: 12px;
}

.deepen-diagnostics strong {
  color: var(--text);
  font-weight: 650;
}

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

.deepen-list {
  display: grid;
  gap: 4px;
}

.deepen-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.9fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.deepen-row strong,
.deepen-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.deepen-row em {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 650;
}

.deepen-row.pending {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.8fr);
}

.deepen-layer-chain .hit {
  border-color: rgba(47, 125, 92, 0.28);
  color: var(--green-dark);
}

.deepen-layer-chain .miss {
  opacity: 0.72;
}

@media (max-width: 720px) {
  .deepen-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.citation-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 6px;
}

.citation-row span {
  padding: 2px 6px;
  border: 1px solid rgba(47, 125, 92, 0.25);
  border-radius: 999px;
  background: rgba(47, 125, 92, 0.07);
  color: var(--green-dark);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

.muted-section {
  border-style: dashed;
}

.finding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.finding {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.finding strong {
  display: block;
  margin-bottom: 4px;
}

.finding p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.run-status {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.run-status strong,
.run-status p {
  display: block;
  margin: 0;
}

.run-status p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.run-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(47, 125, 92, 0.18);
  border-top-color: var(--green);
  border-radius: 999px;
  animation: spin 900ms linear infinite;
}

.run-events {
  display: grid;
  gap: 6px;
  max-height: 260px;
  margin-top: 12px;
  overflow: auto;
  padding-right: 4px;
}

.run-event {
  display: grid;
  grid-template-columns: 54px minmax(94px, 0.42fr) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  font-size: 12px;
}

.run-event span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.run-event strong {
  color: var(--ink);
}

.run-event p {
  margin: 0;
  color: var(--muted);
}

.run-event small {
  grid-column: 3;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.run-event.done {
  border-color: rgba(47, 125, 92, 0.28);
  background: rgba(47, 125, 92, 0.06);
}

.run-event.active {
  border-color: rgba(47, 125, 92, 0.22);
}

.run-event.warning {
  border-color: rgba(191, 138, 46, 0.34);
  background: rgba(191, 138, 46, 0.06);
}

.run-event.cancelled {
  border-color: rgba(139, 129, 115, 0.35);
  background: rgba(139, 129, 115, 0.07);
}

.run-event.error {
  border-color: rgba(184, 77, 64, 0.3);
  background: rgba(184, 77, 64, 0.05);
}

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

.composer {
  min-height: 0;
  overflow: auto;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--line);
  background: rgba(248, 248, 244, 0.96);
}

.composer-resizer {
  position: relative;
  cursor: row-resize;
  border-top: 1px solid var(--line);
  background: rgba(245, 245, 240, 0.86);
}

.composer-resizer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 3px;
  width: 54px;
  height: 2px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: var(--line-strong);
}

.composer-resizing {
  cursor: row-resize;
  user-select: none;
}

.domain-strip {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.domain-button.active {
  border-color: rgba(47, 125, 92, 0.42);
  background: rgba(47, 125, 92, 0.11);
  color: var(--green-dark);
}

.composer-grid,
.json-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 10px;
}

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

.field {
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
}

.field span {
  color: var(--muted);
  font-size: 12px;
}

.field .model-custom-input {
  margin-top: 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 251, 248, 0.92);
  color: var(--ink);
  outline: none;
}

input,
select {
  height: 38px;
  padding: 0 11px;
}

input[type="checkbox"] {
  width: auto;
  height: auto;
  padding: 0;
}

textarea {
  min-height: 58px;
  resize: vertical;
  padding: 10px 11px;
  line-height: 1.45;
}

#questionInput {
  min-height: 54px;
  max-height: 180px;
}

.code-field textarea {
  min-height: 74px;
  max-height: 170px;
}

.finance-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 2px 0 8px;
}

.ecommerce-import,
.evidence-import {
  display: grid;
  gap: 8px;
  padding: 10px;
  margin: 2px 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.general-research-panel {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.general-wizard-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.general-wizard-steps span {
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
}

.general-wizard-steps span.done {
  border-color: rgba(47, 125, 92, 0.28);
  background: rgba(47, 125, 92, 0.08);
  color: var(--green-dark);
}

.player-editor {
  display: grid;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.player-editor-list {
  display: grid;
  gap: 5px;
  max-height: 156px;
  overflow: auto;
}

.player-editor-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(90px, 1fr) minmax(110px, 1.1fr) minmax(110px, 1.1fr) 28px;
  gap: 6px;
  align-items: center;
}

.player-editor-row input {
  height: 30px;
  padding: 4px 7px;
  font-size: 11px;
}

.empty-inline {
  padding: 7px 8px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
}

.compact-switch {
  padding: 5px 8px;
}

.compact-switch strong {
  font-size: 12px;
}

.import-head,
.import-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.evidence-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.commerce-wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.commerce-wizard-steps span {
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface);
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
}

.import-head strong,
.file-button span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.import-head small,
.import-status {
  color: var(--muted);
  font-size: 11px;
}

.import-head select,
.import-actions select {
  width: auto;
  min-width: 104px;
  height: 32px;
  padding: 5px 8px;
  font-size: 12px;
}

.evidence-actions {
  display: grid;
  grid-template-columns: 108px 136px minmax(120px, 0.8fr) minmax(160px, 1.2fr);
}

.evidence-import textarea {
  min-height: 70px;
  max-height: 160px;
}

.evidence-list {
  max-height: 180px;
  overflow: auto;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  cursor: pointer;
}

.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.import-status {
  margin: 0;
}

.import-batches {
  display: grid;
  gap: 6px;
}

.import-list-head,
.import-batch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

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

.import-batch {
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.import-batch.disabled-batch {
  opacity: 0.58;
  border-style: dashed;
}

.import-batch > div {
  min-width: 0;
}

.import-batch strong,
.import-batch span,
.import-batch small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.import-batch span,
.import-batch small {
  color: var(--muted);
  font-size: 11px;
}

.tiny-button {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.tiny-text-button {
  min-width: 42px;
  min-height: 26px;
  padding: 0 8px;
  font-size: 11px;
}

.mapping-preview {
  display: grid;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.mapping-head,
.mapping-file-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mapping-head strong,
.mapping-file-title strong {
  color: var(--ink);
  font-size: 12px;
}

.mapping-file-title span {
  color: var(--muted);
  font-size: 11px;
}

.mapping-file {
  display: grid;
  gap: 7px;
}

.mapping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 6px;
}

.mapping-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.mapping-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mapping-row select {
  height: 30px;
  padding: 4px 6px;
  font-size: 11px;
}

.mapping-samples {
  display: grid;
  gap: 4px;
}

.mapping-samples code {
  overflow: hidden;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-roster {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.agent-roster-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.agent-roster-head span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.agent-roster-head small {
  color: var(--muted);
  font-size: 11px;
}

.agent-roster-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.agent-chip {
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.agent-chip strong,
.agent-chip span {
  display: block;
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-chip strong {
  font-size: 12px;
}

.agent-chip span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.switch-field {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 36px auto;
  grid-template-areas:
    "switch title"
    "switch hint";
  align-items: center;
  column-gap: 8px;
  row-gap: 1px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}

.switch-field:hover {
  border-color: var(--line);
  background: rgba(251, 251, 248, 0.72);
}

.switch-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-field > span {
  grid-area: switch;
  position: relative;
  width: 32px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #e7e6df;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}

.switch-field > span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(29, 29, 27, 0.22);
  transition: transform 0.16s ease;
}

.switch-field input:checked + span {
  border-color: rgba(47, 125, 92, 0.82);
  background: var(--green);
}

.switch-field input:checked + span::after {
  transform: translateX(14px);
}

.switch-field input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(47, 125, 92, 0.16);
}

.switch-field strong {
  grid-area: title;
  min-width: 0;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}

.switch-field small {
  grid-area: hint;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}

.compact-button {
  min-height: 34px;
  padding: 0 12px;
}

.advanced-json {
  margin-top: 2px;
}

.context-json-field[hidden] + .field {
  grid-column: 1 / -1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(47, 125, 92, 0.66);
  box-shadow: 0 0 0 3px rgba(47, 125, 92, 0.12);
}

.code-field textarea,
.code-block {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.code-field textarea {
  min-height: 74px;
  max-height: 170px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-left: 1px solid var(--line);
  overflow: auto;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.panel.grow {
  min-height: 260px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.panel-head {
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--line);
}

.panel-head .eyebrow {
  margin-bottom: 0;
}

.code-block {
  max-height: 250px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  color: #34332f;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.result-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
}

.result-metrics div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.markdown-preview {
  min-height: 0;
  overflow: auto;
  padding: 12px;
  line-height: 1.58;
  font-size: 13px;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3 {
  margin: 0 0 9px;
  line-height: 1.25;
}

.markdown-preview h1 {
  font-size: 18px;
}

.markdown-preview h2 {
  margin-top: 16px;
  font-size: 15px;
}

.markdown-preview h3 {
  margin-top: 13px;
  font-size: 14px;
}

.markdown-preview p,
.markdown-preview ul {
  margin: 0 0 10px;
}

.markdown-preview ul {
  padding-left: 18px;
}

.empty-state {
  height: 100%;
  min-height: 240px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  justify-content: end;
  background: rgba(29, 29, 27, 0.22);
  backdrop-filter: blur(8px);
}

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

.settings-drawer {
  width: min(620px, 100vw);
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.settings-body {
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.settings-section {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.inline-head {
  justify-content: flex-start;
  gap: 10px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
}

.settings-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 13px;
}

.check-row input,
.analyst-grid input {
  width: auto;
}

.settings-note {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 12px;
}

.provider-status-list {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.provider-status-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(104px, auto) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 12px;
}

.provider-status-item.active {
  border-color: rgba(47, 125, 92, 0.42);
  background: rgba(47, 125, 92, 0.08);
}

.provider-status-main {
  min-width: 0;
}

.provider-status-main strong,
.provider-status-main span,
.provider-status-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-status-main span,
.provider-status-meta {
  color: var(--muted);
}

.provider-status-badge {
  justify-self: end;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
}

.provider-status-badge.ready {
  border-color: rgba(47, 125, 92, 0.32);
  color: var(--green-dark);
  background: rgba(47, 125, 92, 0.08);
}

.provider-status-badge.missing {
  border-color: rgba(184, 77, 64, 0.28);
  color: var(--red);
  background: rgba(184, 77, 64, 0.05);
}

.analyst-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 12px;
}

.analyst-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 13px;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}

.settings-results {
  margin: 0 12px 12px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.auth-form {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.auth-drawer {
  max-width: 460px;
}

.credit-package-grid,
.credit-ledger-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.credit-package {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  text-align: left;
}

.credit-package span,
.credit-ledger-row span {
  justify-self: end;
  font-weight: 700;
}

.credit-package em,
.credit-ledger-row em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.credit-ledger-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 13px;
}

.admin-credit-grid {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  padding: 12px;
}

.admin-credit-grid .field:last-child {
  grid-column: 1 / -1;
}

.longbridge-card {
  display: grid;
  gap: 10px;
  margin: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.longbridge-card div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.longbridge-card span {
  color: var(--muted);
  text-align: right;
}

.longbridge-card code {
  overflow-wrap: anywhere;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
}

.compact-actions {
  padding: 0;
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: var(--sidebar-width) minmax(420px, 1fr);
  }

  .app-shell:not(.sidebar-collapsed):not(.sidebar-hidden) {
    --sidebar-width: 220px;
  }

  .inspector {
    display: none;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
    row-gap: 8px;
    padding: 10px 12px;
  }

  .window-controls {
    display: none;
  }

  .topbar-center {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .profile-pill {
    grid-column: 1 / -1;
    width: 100%;
  }

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

  .sidebar {
    display: grid;
    max-height: 34vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-collapsed .sidebar {
    display: grid;
  }

  .sidebar-hidden .sidebar {
    display: none;
  }

  .thread-pane {
    display: block;
    overflow: auto;
  }

  .composer-resizer {
    display: none;
  }

  .thread-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .composer-grid,
  .json-grid,
  .finding-grid,
  .report-strip,
  .status-grid,
  .report-section-grid,
  .scenario-grid,
  .agent-score-grid,
  .workspace-tabs,
  .general-wizard-steps,
  .player-editor-row {
    grid-template-columns: 1fr;
  }

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

  .run-event {
    grid-template-columns: 1fr;
  }

  .run-event small {
    grid-column: 1;
  }

  .message-stack {
    min-height: auto;
    overflow: visible;
    padding: 16px 12px;
  }

  .composer {
    padding: 12px;
  }

  .settings-grid,
  .settings-grid.compact,
  .analyst-grid {
    grid-template-columns: 1fr;
  }
}
