:root {
  color-scheme: dark;
  --bg: #0b1118;
  --bg-soft: #101722;
  --surface: #151d29;
  --surface-2: #1a2432;
  --surface-3: #202c3d;
  --line: rgba(181, 194, 211, 0.14);
  --line-soft: rgba(181, 194, 211, 0.08);
  --text: #eef4ff;
  --muted: #95a3b7;
  --muted-soft: #6c7a90;
  --accent: #20c39a;
  --accent-soft: rgba(32, 195, 154, 0.14);
  --info: #69a8ff;
  --warn: #f0aa55;
  --warn-soft: rgba(240, 170, 85, 0.14);
  --danger: #f06b6b;
  --danger-soft: rgba(240, 107, 107, 0.14);
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
  --radius: 18px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(105, 168, 255, 0.08), transparent 24%), var(--bg);
  color: var(--text);
  font: 14px/1.45 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

button {
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

button:active {
  transform: translateY(1px);
}

textarea,
input,
select {
  border: 1px solid transparent;
  background: transparent;
}

textarea:focus,
input:focus,
select:focus,
button:focus-visible {
  outline: none;
}

.hidden {
  display: none !important;
}

.console-shell {
  width: 100%;
  height: 100svh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px 14px 16px;
  overflow: hidden;
}

.workbench-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.42fr) minmax(290px, 0.92fr);
  gap: 18px;
  overflow: hidden;
}

.lane {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: grid;
}

.thinking-lane,
.output-lane,
.evidence-lane {
  padding-top: 6px;
}

.thinking-stream,
.answer-canvas,
.evidence-stack {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.thinking-stream::-webkit-scrollbar,
.answer-canvas::-webkit-scrollbar,
.evidence-stack::-webkit-scrollbar {
  width: 4px;
}

.thinking-stream::-webkit-scrollbar-thumb,
.answer-canvas::-webkit-scrollbar-thumb,
.evidence-stack::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.thinking-stream {
  display: grid;
  align-content: start;
  gap: 14px;
}

.stream-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
  color: var(--muted);
}

.stream-rail {
  position: relative;
  padding-top: 4px;
}

.stream-rail::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: -18px;
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.stream-item:last-child .stream-rail::before {
  bottom: 8px;
}

.stream-dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.05);
}

.stream-item.done .stream-dot {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(32, 195, 154, 0.08);
}

.stream-item.active .stream-dot {
  background: var(--info);
  box-shadow: 0 0 0 6px rgba(105, 168, 255, 0.08);
  animation: pulse 1.2s infinite;
}

.stream-copy {
  display: grid;
  gap: 8px;
}

.stream-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-soft);
  font-size: 12px;
}

.stream-copy p {
  margin: 0;
  font-size: 21px;
  line-height: 1.52;
  color: #b7c2d6;
}

.stream-item.done .stream-copy p {
  color: #d5deef;
}

.stream-item.active .stream-copy p {
  color: #eef4ff;
}

.typing-caret {
  display: inline-block;
  width: 8px;
  color: var(--info);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 10px rgba(105, 168, 255, 0); }
}

.answer-canvas,
.evidence-group,
.recent-group {
  display: grid;
  align-content: start;
  gap: 14px;
}

.evidence-stack {
  display: grid;
  align-content: start;
  gap: 14px;
}

.fold-card,
.evidence-card,
.recent-card,
.empty-card {
  background: linear-gradient(180deg, rgba(27, 35, 47, 0.98), rgba(22, 29, 39, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.fold-card {
  overflow: hidden;
  position: relative;
}

.fold-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  opacity: 0;
}

.fold-card.risk-low { border-color: rgba(32, 195, 154, 0.2); }
.fold-card.risk-low::before { opacity: 1; background: linear-gradient(90deg, rgba(32, 195, 154, 0.7), rgba(32, 195, 154, 0)); }
.fold-card.risk-medium { border-color: rgba(240, 170, 85, 0.24); }
.fold-card.risk-medium::before { opacity: 1; background: linear-gradient(90deg, rgba(240, 170, 85, 0.72), rgba(240, 170, 85, 0)); }
.fold-card.risk-high { border-color: rgba(240, 107, 107, 0.24); }
.fold-card.risk-high::before { opacity: 1; background: linear-gradient(90deg, rgba(240, 107, 107, 0.74), rgba(240, 107, 107, 0)); }

.fold-card summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 18px 16px;
  cursor: pointer;
}

.fold-card summary::-webkit-details-marker {
  display: none;
}

.fold-card[open] summary {
  border-bottom: 1px solid var(--line);
}

.summary-head {
  min-width: 0;
  display: grid;
  gap: 12px;
}

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

.summary-title {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.summary-title strong {
  font-size: 26px;
  line-height: 1.22;
}

.summary-title p,
.info-tile p,
.stack-item p,
.evidence-card p,
.recent-card p,
.empty-card p,
.confidence-copy p {
  margin: 0;
  color: var(--muted);
}

.card-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.fold-chevron {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-soft);
  transition: transform 0.16s ease;
}

.fold-card[open] .fold-chevron {
  transform: rotate(180deg);
}

.fold-body {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.status-chip,
.risk-chip,
.tiny-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

.status-chip {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.status-chip.running { background: rgba(105, 168, 255, 0.12); color: #97c0ff; }
.status-chip.done { background: var(--accent-soft); color: #79e1c5; }
.status-chip.warn { background: var(--warn-soft); color: #f4bf80; }

.risk-chip.low { background: var(--accent-soft); color: #79e1c5; }
.risk-chip.medium { background: var(--warn-soft); color: #f4bf80; }
.risk-chip.high { background: var(--danger-soft); color: #ff9d9d; }

.tiny-chip {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.confidence-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
}

.confidence-ring {
  --percent: 0;
  --tone: #20c39a;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #121821 0 55%, transparent 56%),
    conic-gradient(var(--tone) calc(var(--percent) * 1%), rgba(255, 255, 255, 0.08) 0);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.confidence-ring span {
  font-size: 18px;
  font-weight: 700;
}

.confidence-copy {
  display: grid;
  gap: 6px;
}

.confidence-copy strong { font-size: 14px; }
.confidence-copy span { color: var(--muted-soft); font-size: 12px; }

.confidence-high .confidence-ring { --tone: #20c39a; }
.confidence-high .confidence-copy strong { color: #79e1c5; }
.confidence-medium .confidence-ring { --tone: #f0aa55; }
.confidence-medium .confidence-copy strong { color: #f4bf80; }
.confidence-low .confidence-ring { --tone: #f06b6b; }
.confidence-low .confidence-copy strong { color: #ff9d9d; }

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

.info-tile {
  min-height: 124px;
  padding: 15px 15px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  align-content: start;
  gap: 10px;
}

.info-tile strong { font-size: 13px; }
.info-tile span {
  color: var(--muted-soft);
  font-size: 11px;
  text-transform: uppercase;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filled-button,
.plain-button,
.feedback-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
}

.filled-button {
  background: linear-gradient(135deg, var(--accent), #34d6ae);
  color: #08111d;
  font-weight: 600;
}

.plain-button {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

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

.stack-list {
  display: grid;
  gap: 10px;
}

.stack-item,
.evidence-card,
.recent-card,
.empty-card {
  padding: 16px;
}

.stack-item {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 8px;
}

.stack-item strong,
.evidence-head strong,
.recent-card strong,
.empty-card strong {
  font-size: 13px;
}

.data-code {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(6, 10, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #c8d4ea;
  font: 12px/1.58 Consolas, "SFMono-Regular", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

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

.evidence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.recent-card {
  display: grid;
  gap: 10px;
  text-align: left;
}

.recent-card.active {
  border-color: rgba(105, 168, 255, 0.24);
}

.empty-card {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: left;
}

.empty-card.compact {
  min-height: 120px;
}

.empty-copy {
  width: min(440px, 100%);
  display: grid;
  gap: 10px;
}

.empty-copy strong {
  font-size: 26px;
}

.result-feedback-dock {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.feedback-button {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.feedback-button.active {
  border-color: rgba(32, 195, 154, 0.28);
  background: rgba(32, 195, 154, 0.1);
  color: #79e1c5;
}

.composer-dock {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(16, 22, 33, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.composer-input-shell {
  position: relative;
}

.composer-input-shell textarea {
  width: 100%;
  min-height: 96px;
  max-height: 156px;
  resize: none;
  padding: 18px 74px 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  overflow: auto;
}

.composer-input-shell textarea::placeholder {
  color: var(--muted-soft);
}

.input-send-button,
.toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.input-send-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #34d6ae);
  color: #071019;
}

.input-send-button.is-running {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-cluster-right {
  margin-left: auto;
}

.toolbar-button {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.toolbar-button:hover,
.toolbar-pill-button:hover,
.toolbar-select:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.toolbar-select,
.toolbar-pill-button {
  min-height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.toolbar-select {
  min-width: 164px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.toolbar-select select {
  border: 0;
  background: transparent;
  color: inherit;
  min-width: 0;
  flex: 1;
  appearance: none;
}

.toolbar-pill-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.toolbar-pill-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.toolbar-pill-text {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-hint {
  color: var(--muted-soft);
  font-size: 12px;
}

.icon-slot {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.floating-menu {
  position: fixed;
  z-index: 30;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 19, 29, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.menu-list {
  display: grid;
  gap: 6px;
}

.menu-item {
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-align: left;
  color: var(--text);
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.menu-copy {
  display: grid;
  gap: 4px;
}

.menu-copy strong {
  font-size: 13px;
}

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

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  background: rgba(13, 19, 29, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

@media (max-width: 1220px) {
  .workbench-grid {
    grid-template-columns: minmax(200px, 0.68fr) minmax(0, 1.18fr) minmax(260px, 0.82fr);
  }

  .summary-title strong,
  .empty-copy strong,
  .stream-copy p {
    font-size: 18px;
  }

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

@media (max-width: 920px) {
  .console-shell {
    padding: 10px;
  }

  .workbench-grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 0.72fr) minmax(0, 1.1fr) minmax(0, 0.86fr);
  }

  .composer-toolbar {
    align-items: flex-start;
  }

  .toolbar-cluster-right {
    margin-left: 0;
  }
}

:root {
  --bg: #0d131c;
  --surface: #141c27;
  --surface-2: #18212e;
  --surface-3: #1d2836;
  --line: rgba(181, 194, 211, 0.12);
  --line-soft: rgba(181, 194, 211, 0.06);
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  --radius: 16px;
  --radius-lg: 18px;
}

html,
body {
  background: var(--bg);
}

.console-shell {
  gap: 10px;
  padding: 10px 12px 12px;
}

.workbench-grid {
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.54fr) minmax(260px, 0.78fr);
  gap: 12px;
}

.thinking-lane,
.output-lane,
.evidence-lane {
  padding-top: 0;
}

.fold-card,
.evidence-card,
.recent-card,
.empty-card,
.composer-dock,
.floating-menu,
.toast {
  box-shadow: none;
}

.fold-card,
.evidence-card,
.empty-card {
  background: var(--surface);
}

.fold-card {
  border-radius: 16px;
}

.fold-card summary {
  padding: 16px 16px 14px;
}

.fold-body {
  padding: 16px;
}

.summary-title strong {
  font-size: 22px;
}

.summary-title p {
  color: #a4b1c5;
}

.confidence-cluster {
  gap: 14px;
}

.confidence-ring {
  width: 68px;
  height: 68px;
}

.confidence-ring span {
  font-size: 15px;
}

.info-grid {
  gap: 8px;
}

.info-tile {
  min-height: 116px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.result-feedback-dock {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.refresh-inline-button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.refresh-inline-button:hover,
.feedback-button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.stack-item,
.evidence-card,
.empty-card {
  padding: 14px;
}

.evidence-card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.evidence-group {
  padding-top: 2px;
}

.empty-card {
  min-height: 180px;
}

.composer-dock {
  gap: 10px;
  padding: 10px 12px 12px;
  border-radius: 18px;
  background: rgba(20, 28, 39, 0.96);
}

.composer-input-shell textarea {
  min-height: 84px;
  max-height: 148px;
  padding: 16px 64px 16px 16px;
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.025);
}

.composer-input-shell textarea::placeholder {
  color: #7e8ba0;
}

.input-send-button {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c9a0, #4fd8b7);
  box-shadow: none;
}

.composer-toolbar {
  justify-content: flex-start;
}

.toolbar-cluster {
  gap: 8px;
}

.toolbar-button,
.toolbar-pill-button,
.toolbar-select {
  min-height: 38px;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.toolbar-button {
  width: 38px;
  height: 38px;
}

.toolbar-pill-button,
.toolbar-select {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
}

.toolbar-pill-main {
  min-width: 0;
  gap: 8px;
}

.toolbar-pill-text {
  max-width: 200px;
}

.toolbar-caret {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-soft);
  transition: transform 0.16s ease, color 0.16s ease;
}

.toolbar-pill-button.is-open .toolbar-caret {
  transform: rotate(180deg);
  color: var(--text);
}

.status-hint {
  display: none;
}

.menu-item.selected {
  background: rgba(32, 195, 154, 0.08);
  border-color: rgba(32, 195, 154, 0.22);
}

.menu-item.selected .menu-copy strong {
  color: #8ce6cd;
}

@media (max-width: 1220px) {
  .workbench-grid {
    grid-template-columns: minmax(200px, 0.72fr) minmax(0, 1.26fr) minmax(220px, 0.72fr);
  }
}

/* Acceptance pass: keep the console dense, flat, and easy to scan. */
html,
body {
  background: #0c121b;
}

.console-shell {
  gap: 0;
  padding: 0;
  background: #0c121b;
}

.workbench-grid {
  min-height: 0;
  padding: 14px 14px 10px;
  gap: 10px;
}

.lane {
  min-height: 0;
  border-radius: 10px;
  background: rgba(14, 21, 32, 0.52);
  border: 1px solid rgba(181, 194, 211, 0.07);
  overflow: hidden;
}

.thinking-lane {
  background: rgba(11, 17, 26, 0.38);
  border-color: rgba(32, 195, 154, 0.08);
}

.output-lane {
  background: rgba(13, 20, 30, 0.62);
  border-color: rgba(105, 168, 255, 0.08);
}

.evidence-lane {
  background: rgba(11, 17, 26, 0.36);
  border-color: rgba(181, 194, 211, 0.06);
}

.thinking-stream,
.answer-canvas,
.evidence-group {
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  padding: 12px;
  scrollbar-width: none;
}

.thinking-stream::-webkit-scrollbar,
.answer-canvas::-webkit-scrollbar,
.evidence-group::-webkit-scrollbar,
.composer-input-shell textarea::-webkit-scrollbar,
.data-code::-webkit-scrollbar {
  display: none;
}

.stream-copy p {
  font-size: 16px;
  line-height: 1.55;
}

.stream-meta {
  gap: 0;
}

.stream-meta .status-chip {
  display: none;
}

.fold-card,
.evidence-card,
.stack-item,
.info-tile {
  border-radius: 8px;
}

.fold-card {
  background: rgba(20, 29, 42, 0.92);
}

.fold-card summary {
  padding: 14px;
}

.fold-body {
  padding: 14px;
}

.summary-title {
  gap: 8px;
}

.summary-title strong {
  font-size: 18px;
  line-height: 1.28;
}

.summary-title p {
  font-size: 13px;
  line-height: 1.55;
}

.confidence-ring {
  width: 54px;
  height: 54px;
}

.confidence-ring span {
  font-size: 13px;
}

.confidence-copy {
  gap: 4px;
}

.confidence-copy p,
.confidence-copy span {
  font-size: 12px;
}

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

.info-tile {
  min-height: 96px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.result-feedback-dock {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 8px 0 0;
  background: linear-gradient(180deg, rgba(12, 18, 27, 0), rgba(12, 18, 27, 0.98) 48%);
}

.feedback-button,
.refresh-inline-button {
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(181, 194, 211, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: #b4c0d2;
}

.feedback-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
}

.refresh-inline-button {
  width: 34px;
  height: 34px;
}

.feedback-button.active {
  border-color: rgba(32, 195, 154, 0.42);
  background: rgba(32, 195, 154, 0.13);
  color: #8ce6cd;
}

.composer-dock {
  gap: 8px;
  padding: 8px 10px 10px;
  border: 0;
  border-top: 1px solid rgba(181, 194, 211, 0.08);
  border-radius: 0;
  background: rgba(12, 18, 27, 0.98);
}

.composer-input-shell textarea {
  min-height: 70px;
  max-height: 116px;
  padding: 13px 54px 13px 14px;
  border-radius: 10px;
  background: rgba(18, 27, 40, 0.86);
  border-color: rgba(181, 194, 211, 0.12);
}

.input-send-button {
  right: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(32, 195, 154, 0.28);
  background: rgba(32, 195, 154, 0.18);
  color: #75e5c8;
}

.input-send-button:hover {
  background: rgba(32, 195, 154, 0.26);
}

.toolbar-button,
.toolbar-pill-button {
  min-height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.toolbar-button {
  width: 32px;
  height: 32px;
}

.toolbar-pill-button {
  padding: 0 10px;
}

.toolbar-pill-button.no-caret .toolbar-caret {
  display: none;
}

.toolbar-pill-button.is-warning {
  border-color: rgba(240, 170, 85, 0.38);
  background: rgba(240, 170, 85, 0.12);
  color: #f4bf80;
}

.toolbar-pill-text {
  max-width: 180px;
}

.floating-menu {
  padding: 8px;
  border-radius: 10px;
  background: rgba(11, 17, 26, 0.98);
  border-color: rgba(181, 194, 211, 0.14);
}

.menu-list {
  gap: 10px;
}

.menu-section {
  display: grid;
  gap: 6px;
}

.menu-section-title {
  padding: 0 4px;
  font-size: 11px;
  color: #728197;
}

.menu-section-items {
  display: grid;
  gap: 4px;
}

.menu-item {
  min-height: 38px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 9px;
}

.menu-label {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}

.menu-copy {
  display: contents;
}

.menu-copy span,
.menu-copy strong + span {
  display: none;
}

.menu-badge {
  font-size: 11px;
  color: #7f8ea3;
}

.menu-item.selected {
  background: rgba(32, 195, 154, 0.1);
}

.evidence-card {
  padding: 12px;
}

.data-code {
  max-height: 240px;
  overflow: auto;
}

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

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

  .composer-dock {
    padding: 8px;
  }
}

/* Acceptance pass r3: keep the workbench flatter and let only column seams separate areas. */
.console-shell {
  gap: 0;
  padding: 0;
  background: #08111d;
}

.workbench-grid {
  gap: 0;
  padding: 0;
  background: #0a1320;
}

.lane {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.thinking-lane {
  background: #07121e;
}

.output-lane {
  background: #0d1725;
  border-left: 1px solid rgba(129, 152, 184, 0.12) !important;
  border-right: 1px solid rgba(129, 152, 184, 0.12) !important;
}

.evidence-lane {
  background: #101a28;
}

.thinking-stream,
.answer-canvas,
.evidence-group {
  height: 100%;
  padding: 16px 14px;
  overflow: auto;
  scrollbar-width: none;
}

.thinking-stream::-webkit-scrollbar,
.answer-canvas::-webkit-scrollbar,
.evidence-group::-webkit-scrollbar {
  display: none;
}

.stream-item.ai-waiting .stream-copy p {
  color: #dfe9f8;
}

.conversation-message {
  max-width: min(860px, 100%);
  margin: 0 auto 12px;
  display: flex;
}

.conversation-message.user {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 12px;
  color: #d9e4f5;
  line-height: 1.55;
  background: rgba(255,255,255,0.055);
}

.conversation-message.user .message-bubble {
  background: rgba(32, 195, 154, 0.16);
  color: #ecfff9;
}

.result-card-stack {
  max-width: min(860px, 100%);
  margin: 0 auto;
}

.result-feedback-dock {
  position: sticky;
  bottom: 6px;
  justify-content: flex-end;
  gap: 4px;
  padding: 4px 2px 0;
  background: transparent;
  border: 0;
  transform: translateY(-8px);
}

.refresh-inline-button {
  order: 3;
}

.feedback-button,
.refresh-inline-button {
  border: 0 !important;
  min-height: 28px;
  height: 28px;
  background: rgba(255,255,255,0.045);
  font-size: 12px;
}

.feedback-button {
  padding: 0 9px;
  gap: 5px;
}

.refresh-inline-button {
  width: 28px;
}

.feedback-button.correct-feedback.active,
.feedback-button.correct-feedback:hover {
  color: #ffd88d;
  background: rgba(240, 170, 85, 0.14);
}

.feedback-button.resolved-feedback.active,
.feedback-button.resolved-feedback:hover {
  color: #8ce6cd;
  background: rgba(32, 195, 154, 0.13);
}

.toolbar-pill-button.no-provider .toolbar-pill-text {
  max-width: 190px;
}

.model-feature-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.model-feature-pill {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
  color: #aebbd0;
  font-size: 12px;
}

.menu-list {
  padding: 0;
  overflow: hidden;
}

.menu-header {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #b9c6d8;
  border-bottom: 1px solid rgba(129, 152, 184, 0.12);
}

.scope-check-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #aebbd0;
}

.scope-check-all input {
  accent-color: var(--accent);
}

.menu-section-title {
  padding: 10px 12px 4px;
}

.menu-section-items {
  gap: 0;
  padding: 0;
}

.menu-item {
  min-height: 38px;
  border-radius: 0;
  padding: 0 12px;
  border-left: 3px solid transparent;
}

.menu-item.selected {
  background: rgba(32, 195, 154, 0.14);
  border-left-color: var(--accent);
}

.menu-item .check-slot {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: var(--accent);
}
