:root {
  --wb-bg: #eef4fb;
  --wb-card: rgba(255,255,255,.92);
  --wb-line: #d9e4f2;
  --wb-shadow: 0 18px 52px rgba(22,51,95,.10);
}

.workbench-body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  background:
    radial-gradient(circle at 10% 5%, rgba(36,104,242,.16), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(34,184,212,.16), transparent 28%),
    var(--wb-bg);
  color: var(--ink);
  overflow: hidden;
}

.workbench-shell {
  display: grid;
  grid-template-columns: 280px minmax(380px, 540px) 1fr;
  gap: 16px;
  height: 100%;
  min-height: 0;
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
}

.wb-left,
.wb-chat,
.wb-panel {
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 22px;
  background: var(--wb-card);
  box-shadow: var(--wb-shadow);
  backdrop-filter: blur(14px);
}

.wb-left {
  padding: 20px;
  overflow-y: auto;
}

.wb-brand {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--wb-line);
  margin-bottom: 16px;
}

.wb-title {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 760;
  color: var(--navy);
}

.wb-sub,
.wb-section-label,
.wb-section-help,
.wb-field label,
#sessionBadge {
  color: var(--muted);
  font-size: 12px;
}

.wb-section-label {
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 4px;
}

.wb-section-help {
  line-height: 1.5;
  margin-bottom: 12px;
}

.wb-section-help > span {
  display: block;
}

.wb-section-help a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

.wb-flat-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(36,104,242,.20);
  border-radius: 999px;
  background: rgba(36,104,242,.07);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.wb-flat-link:hover,
.wb-flat-link:focus-visible {
  border-color: rgba(36,104,242,.38);
  background: rgba(36,104,242,.12);
  outline: none;
}

.wb-field {
  margin-bottom: 14px;
}

.wb-field label {
  display: block;
  margin-bottom: 6px;
}

.wb-field input,
.wb-composer textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--wb-line);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.86);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.wb-field input:focus,
.wb-composer textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36,104,242,.12);
}

.wb-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wb-actions {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.cap-card {
  position: relative;
  text-align: left;
  border: 1px solid var(--wb-line);
  border-radius: 18px;
  padding: 15px 42px 15px 15px;
  background:
    radial-gradient(circle at 100% 0, rgba(36,104,242,.10), transparent 42%),
    linear-gradient(135deg, #fff, #f6fbff);
  cursor: pointer;
  transition: .16s ease;
  overflow: hidden;
}

.cap-card .cap-help {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  z-index: 3 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(36,104,242,.48) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #fff, #e7f0ff) !important;
  color: #1d5fd8 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  cursor: help !important;
  box-shadow: 0 7px 16px rgba(36,104,242,.20) !important;
  pointer-events: auto !important;
}

.cap-card .cap-help:hover,
.cap-card .cap-help:focus-visible {
  border-color: var(--blue);
  background: linear-gradient(135deg, #f8fbff, #dceaff);
  outline: none;
  box-shadow: 0 0 0 3px rgba(36,104,242,.16), 0 8px 18px rgba(36,104,242,.22);
  transform: translateY(-1px);
}

.cap-card::after {
  content: "对话模板";
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.cap-card.launch::after {
  content: "启动 Flow";
}

.cap-card.insight::after {
  content: "打开经营透视";
}

.cap-card.writer::after {
  content: "MD 黑板";
}

.cap-card:hover,
.cap-card.active {
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(36,104,242,.13);
}

.cap-card strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
  font-size: 16px;
}

.cap-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.cap-product {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.cap-tags i {
  font-style: normal;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(36,104,242,.08);
  color: #37527a;
  font-size: 11px;
}

.wb-debug {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--wb-line);
}

.wb-debug summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  user-select: none;
}

.wb-debug[open] summary {
  margin-bottom: 14px;
}

.wb-flow-hint {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  word-break: break-all;
}

.wb-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.wb-chat-head,
.wb-panel-head {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--wb-line);
}

.wb-chat-log {
  flex: 1;
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
}

.wb-msg {
  max-width: 86%;
  margin-bottom: 12px;
  padding: 11px 13px;
  border-radius: 15px;
  line-height: 1.55;
  white-space: normal;
}

.wb-msg p,
.insight-chat-host .msg p {
  margin: 0 0 8px;
}

.wb-msg p:last-child,
.insight-chat-host .msg p:last-child {
  margin-bottom: 0;
}

.wb-msg ul,
.insight-chat-host .msg ul {
  margin: 6px 0 8px;
  padding-left: 18px;
}

.wb-msg li,
.insight-chat-host .msg li {
  margin: 3px 0;
}

.wb-msg code,
.insight-chat-host .msg code {
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(36,104,242,.08);
  color: #24416f;
  font-family: var(--mono);
  font-size: .92em;
}

.wb-msg .md-code,
.insight-chat-host .msg .md-code {
  max-width: 100%;
  overflow-x: auto;
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--wb-line);
  border-radius: 12px;
  background: #f7fbff;
  color: #31435f;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre;
}

.wb-msg.user code,
.wb-msg.user .md-code {
  background: rgba(255,255,255,.16);
  color: #fff;
  border-color: rgba(255,255,255,.25);
}

.wb-msg.user {
  margin-left: auto;
  background: var(--blue);
  color: #fff;
}

.wb-msg.bot {
  background: #fff;
  border: 1px solid var(--wb-line);
}

.wb-msg.sys {
  max-width: 100%;
  background: #f7fbff;
  color: var(--muted);
  font-size: 12px;
}

.wb-composer {
  flex: none;
  padding: 16px;
  border-top: 1px solid var(--wb-line);
}

.wb-composer-box {
  border: 1px solid var(--wb-line);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  overflow: hidden;
}

.wb-composer-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36,104,242,.12);
}

.wb-composer textarea {
  min-height: 92px;
  max-height: 180px;
  resize: vertical;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.wb-composer textarea:focus {
  border-color: transparent;
  box-shadow: none;
}

.wb-composer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px;
}

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

.wb-upload-btn,
.wb-send-btn {
  border: 0;
  font: inherit;
  cursor: pointer;
  transition: .16s ease;
}

.wb-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #f2f7ff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 650;
}

.wb-upload-btn:hover {
  background: #e7f0ff;
  color: var(--blue);
}

.wb-upload-plus {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
}

.wb-file-count {
  min-width: 0;
  flex: 1;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-send-btn {
  flex: none;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 760;
  box-shadow: 0 10px 24px rgba(36,104,242,.22);
}

.wb-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(36,104,242,.28);
}

.wb-send-btn:disabled {
  cursor: not-allowed;
  transform: none;
  opacity: .64;
  box-shadow: none;
}

.wb-right {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 260px 1fr;
  gap: 16px;
}

.wb-status {
  height: calc(100% - 106px);
  overflow-y: auto;
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: #42536c;
}

.wb-exec-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--wb-line);
}

.wb-exec-tab {
  flex: none;
  border: 1px solid var(--wb-line);
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: .16s ease;
}

.wb-exec-tab.active {
  border-color: var(--blue);
  background: #edf4ff;
  color: var(--blue);
  font-weight: 700;
}

.wb-exec-tab.running::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #22c55e;
  vertical-align: middle;
}

.status-line {
  padding: 7px 0;
  border-bottom: 1px dashed #dfe8f3;
}

.wb-preview-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.wb-preview {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  padding: 28px;
  box-sizing: border-box;
}

.wb-preview .stage-inner {
  max-width: 980px;
}

.writer-board {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.writer-board-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--wb-line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(238,246,255,.92));
}

.writer-board-head h3 {
  margin: 4px 0 6px;
  color: var(--navy);
}

.writer-board-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.writer-board-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.writer-board-meta span {
  padding: 4px 8px;
  border: 1px solid var(--wb-line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}

.writer-md-preview {
  padding: 20px;
  border: 1px solid var(--wb-line);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  line-height: 1.72;
}

.writer-md-preview h1,
.writer-md-preview h2,
.writer-md-preview h3,
.writer-md-preview p {
  margin-top: 0;
}

.writer-md-preview h1,
.writer-md-preview h2,
.writer-md-preview h3 {
  color: var(--navy);
}

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

.wb-insight {
  min-height: 100%;
}

.insight-loading {
  max-width: 560px;
  margin: 40px auto;
  padding: 24px;
  border: 1px solid var(--wb-line);
  border-radius: 20px;
  background: #fff;
}

.insight-loading h3,
.insight-hero h3,
.risk-board h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.insight-loading p,
.insight-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.insight-shell {
  display: block;
  min-height: 100%;
}

.insight-main {
  min-width: 0;
}

.insight-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--wb-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(34,184,212,.14), transparent 42%),
    #fff;
}

.insight-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.insight-metrics > div {
  padding: 12px;
  border: 1px solid var(--wb-line);
  border-radius: 16px;
  background: #fff;
}

.insight-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.insight-metrics strong {
  color: var(--navy);
  font-size: 18px;
}

.insight-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.insight-filters button,
.insight-contract {
  font: inherit;
  cursor: pointer;
}

.insight-filters button {
  flex: none;
  border: 1px solid var(--wb-line);
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff;
  color: var(--muted);
}

.insight-filters button.active {
  border-color: var(--blue);
  color: var(--blue);
  background: #edf4ff;
  font-weight: 700;
}

.insight-body-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.insight-list,
.insight-canvas,
.insight-chat-host .chat-panel {
  border: 1px solid var(--wb-line);
  border-radius: 20px;
  background: #fff;
}

.insight-list {
  max-height: 640px;
  overflow-y: auto;
  padding: 12px;
}

.insight-list-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.insight-list-head strong {
  color: var(--navy);
}

.insight-contract {
  width: 100%;
  display: grid;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 10px;
  background: #f7fbff;
  text-align: left;
  margin-bottom: 8px;
}

.insight-contract.active {
  border-color: var(--blue);
  background: #edf4ff;
}

.insight-contract span,
.insight-contract em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.insight-contract strong {
  color: var(--navy);
  font-size: 13px;
}

.insight-canvas {
  padding: 14px;
  overflow-x: auto;
}

.risk-board {
  display: grid;
  gap: 12px;
}

.risk-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--wb-line);
  border-radius: 14px;
  overflow: hidden;
}

.risk-row span,
.risk-row strong {
  position: relative;
  z-index: 1;
}

.risk-row i {
  position: absolute;
  inset: auto auto 0 0;
  height: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.wb-json-preview {
  margin: 0;
  min-height: 100%;
  box-sizing: border-box;
  border: 1px solid var(--wb-line);
  border-radius: 16px;
  padding: 16px;
  background: #f7fbff;
  color: #42536c;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.wb-a2ui-card {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--wb-line);
  border-radius: 20px;
  background: #fff;
}

.wb-a2ui-card h3,
.wb-a2ui-card h4 {
  margin: 0;
  color: var(--navy);
}

.wb-a2ui-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wb-a2ui-actions a {
  text-decoration: none;
}

.wb-a2ui-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.wb-a2ui-stats > div {
  padding: 12px;
  border: 1px solid var(--wb-line);
  border-radius: 14px;
  background: #f7fbff;
}

.wb-a2ui-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.wb-a2ui-stats strong {
  color: var(--navy);
  font-size: 18px;
}

.wb-a2ui-text {
  padding: 14px;
  border-radius: 14px;
  background: #f7fbff;
  color: #42536c;
  line-height: 1.7;
  white-space: pre-wrap;
}

.wb-deck-preview-board {
  display: grid;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.wb-deck-preview-board h3,
.wb-deck-preview-board p {
  margin: 0;
}

.wb-deck-preview-grid {
  display: grid;
  gap: 16px;
}

.wb-deck-preview-item {
  border: 1px solid var(--wb-line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(22,51,95,.08);
}

.wb-deck-preview-index {
  padding: 10px 14px;
  border-bottom: 1px solid var(--wb-line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.wb-deck-preview-slide {
  transform-origin: top left;
}

.wb-deck-preview-slide .chapter-head {
  margin-bottom: 18px;
}

.wb-deck-preview-slide .chapter-title {
  font-size: clamp(24px, 4vw, 42px);
}

.wb-a2ui-table-wrap {
  display: grid;
  gap: 10px;
  overflow-x: auto;
}

.wb-a2ui-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.wb-a2ui-table th,
.wb-a2ui-table td {
  padding: 8px 10px;
  border: 1px solid var(--wb-line);
  text-align: left;
  vertical-align: top;
}

.wb-a2ui-table th {
  background: #edf4ff;
  color: var(--navy);
}

.wb-a2ui-note {
  color: var(--muted);
  font-size: 12px;
}

.wb-a2ui-sections {
  display: grid;
  gap: 10px;
}

.wb-a2ui-sections section {
  padding: 12px;
  border: 1px solid var(--wb-line);
  border-radius: 14px;
  background: #fbfdff;
}

.wb-a2ui-sections p {
  margin: 8px 0 0;
  color: #42536c;
  line-height: 1.6;
}

.wb-a2ui-raw summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}

.wb-question-form,
.wb-launch-form {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid var(--wb-line);
  border-radius: 18px;
  background: #fff;
}

.wb-question-form h3,
.wb-launch-form h3 {
  margin: 0;
  color: var(--navy);
}

.wb-question-form p,
.wb-launch-form p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.wb-launch-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.wb-launch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wb-question-fields {
  display: grid;
  gap: 12px;
}

.wb-question-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.wb-question-field input,
.wb-question-field select,
.wb-question-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--wb-line);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(247,251,255,.9);
  color: var(--ink);
  font: inherit;
  outline: none;
}

#publicLink {
  color: var(--blue);
  text-decoration: none;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .workbench-shell {
    grid-template-columns: 280px 1fr;
    grid-template-rows: 48vh 1fr;
  }
  .wb-right {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .workbench-body {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  .workbench-shell {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    height: auto;
    overflow: visible;
    padding: 10px;
  }

  .wb-left,
  .wb-chat,
  .wb-panel {
    border-radius: 18px;
  }

  .wb-left {
    padding: 14px;
    overflow: visible;
  }

  .wb-brand {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .wb-title {
    font-size: 22px;
  }

  .wb-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cap-card {
    min-height: 150px;
  }

  .wb-chat {
    min-height: 520px;
  }

  .wb-chat-log {
    min-height: 260px;
  }

  .wb-composer-actions {
    flex-wrap: wrap;
  }

  .wb-file-count {
    flex-basis: 100%;
    order: 3;
  }

  .wb-right {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .wb-panel {
    min-height: 260px;
  }

  .wb-status {
    height: 220px;
  }

  .wb-preview {
    padding: 14px;
    min-height: 420px;
  }

  .wb-launch-grid,
  .insight-body-grid {
    grid-template-columns: 1fr;
  }

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

  .insight-hero {
    flex-direction: column;
  }

  .insight-list {
    max-height: 320px;
  }

  .insight-canvas {
    padding: 10px;
  }
}

@media (max-width: 560px) {
  .workbench-shell {
    padding: 8px;
    gap: 10px;
  }

  .wb-actions,
  .insight-metrics {
    grid-template-columns: 1fr;
  }

  .cap-card {
    min-height: auto;
  }

  .wb-chat-head,
  .wb-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .wb-composer {
    padding: 10px;
  }

  .wb-send-btn,
  .wb-upload-btn {
    width: 100%;
    justify-content: center;
  }

  .wb-msg {
    max-width: 94%;
  }

  .wb-preview {
    padding: 10px;
  }

  .insight-filters {
    margin-inline: -2px;
  }

  .chain-flow {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .evidence table {
    min-width: 520px;
  }
}
