:root {
  --bg: #e6ebf3;
  --panel: rgba(248, 250, 253, 0.9);
  --panel-soft: #edf2f8;
  --line: rgba(124, 141, 168, 0.28);
  --line-strong: rgba(92, 108, 136, 0.42);
  --ink: #151c28;
  --muted: #627086;
  --accent: #4d6df6;
  --accent-soft: rgba(225, 235, 255, 0.82);
  --accent-strong: #2f56dc;
  --warn: #2f56dc;
  --warn-soft: rgba(225, 235, 255, 0.82);
  --glass: rgba(255, 255, 255, 0.46);
  --sidebar-bg: linear-gradient(180deg, rgba(230, 237, 247, 0.94), rgba(220, 228, 240, 0.98));
  --workspace-bg: linear-gradient(180deg, rgba(242, 246, 251, 0.9), rgba(233, 239, 247, 0.98));
  --panel-strong: linear-gradient(180deg, rgba(244, 248, 253, 0.98), rgba(233, 239, 248, 0.96));
  --shadow: 0 1px 2px rgba(18, 24, 38, 0.05), 0 22px 54px rgba(57, 73, 101, 0.1);
  --shadow-soft: 0 10px 28px rgba(57, 73, 101, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Helvetica Neue", sans-serif;
}

button,
textarea,
input {
  font: inherit;
}

.shell {
  display: grid;
  grid-template-columns: minmax(540px, 620px) minmax(0, 1fr);
  min-height: 100vh;
}

.shell--real {
  grid-template-columns: minmax(0, 1fr);
  background: #fff;
}

.sidebar {
  min-height: 100%;
}

.sidebar::before {
  display: none;
}

.operator-console {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100%;
  background: transparent;
}

.operator-console__header {
  display: grid;
  gap: 10px;
}

.operator-console__body {
  min-height: 0;
  display: grid;
  gap: 0;
}

.operator-console__conversation {
  min-height: 0;
  width: 100%;
  display: grid;
  gap: 14px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.operator-console__command-deck {
  display: grid;
  gap: 8px;
}

.operator-console__workspace-strip,
.operator-console__support-blocks,
.operator-console__composer {
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
  background: transparent;
}

.operator-console__workspace-strip--mode {
  display: grid;
  gap: 10px;
}

.operator-console__workspace-strip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.operator-console__workspace-strip-head h3 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.15;
}

.operator-console__workspace-strip p {
  margin: 0;
}

.operator-console__command-deck-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.operator-console__command-deck-label {
  font-size: 12px;
  color: #5b6c86;
  letter-spacing: 0.04em;
}

.operator-console__support-blocks {
  display: grid;
  gap: 10px;
}

.operator-console__composer {
  padding-top: 12px;
}

.workspace {
  padding: 18px 16px;
  background: rgba(248, 248, 246, 0.66);
}

.real-shell-main,
.real-shell-display {
  min-width: 0;
}

.real-shell-main {
  padding: 0;
  background: rgba(255, 255, 255, 0.98);
  border-right: 1px solid rgba(15, 23, 42, 0.06);
}

.real-shell-display {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  background: rgba(248, 248, 246, 0.66);
  border-left: 1px solid rgba(15, 23, 42, 0.05);
}

.real-shell-display__view-strip {
  padding: 12px 12px 10px;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 0;
  background: transparent;
}

.real-shell-display__view-strip p {
  margin: 10px 0 0;
}

.real-flow-layout {
  min-height: 100vh;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

.real-flow-rail {
  background: rgba(248, 248, 246, 0.92);
}

.real-flow-rail__body {
  align-content: start;
}

.real-rail-command-list {
  padding: 0;
}

.real-rail-mode-switcher {
  gap: 8px;
}

.real-rail-status-stack {
  grid-template-columns: minmax(0, 1fr);
}

.real-rail-status-card {
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.real-rail-status-card strong,
.real-inline-interaction strong {
  font-size: 16px;
  line-height: 1.25;
}

.real-rail-status-card p,
.real-inline-interaction p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.real-assistant-workbench {
  min-height: 100%;
}

.real-assistant-command-deck {
  padding-top: 2px;
}

.real-inline-interaction {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.99);
}

.real-inline-interaction--empty {
  max-width: 420px;
}

.mode-switcher--real-shell {
  margin-top: 12px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  padding: 16px;
  backdrop-filter: blur(8px);
}

.sidebar-secondary-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.sidebar-secondary-panel {
  border-radius: 10px;
  box-shadow: none;
  background: rgba(246, 249, 253, 0.72);
  min-width: 0;
}

.sidebar-secondary-panel + .sidebar-secondary-panel {
  border-left: 0;
}

.sidebar-secondary-panel:nth-child(n + 3) {
  border-top: 0;
}

.sidebar-secondary-panel--status {
  background: linear-gradient(180deg, rgba(236, 242, 251, 0.86), rgba(229, 237, 247, 0.9));
}

.module-nav-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.conversation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(116, 134, 161, 0.18);
}

.conversation-head-main {
  display: grid;
  gap: 6px;
}

.conversation-head-main h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.conversation-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid rgba(104, 123, 154, 0.22);
  border-radius: 999px;
  background: rgba(238, 244, 252, 0.92);
  color: #4a5d7d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-nav-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(101, 123, 163, 0.28);
  background: rgba(239, 244, 251, 0.9);
  color: #4a5d7d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.module-nav-group {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.module-nav-label {
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-panel h1,
.panel-header h2,
.workspace-empty h2,
.workspace-meta h2 {
  margin: 0;
}

.hero-panel h1 {
  font-size: 34px;
  line-height: 1.08;
}

.hero-panel p,
.panel p,
.workspace-empty p,
.workspace-meta p,
.hint {
  color: var(--muted);
  line-height: 1.55;
}

.eyebrow,
.status-label {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #6c7c94;
}

.mode-switcher {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.mode-switcher--inline {
  margin-top: 0;
}

.mode-switcher--inline .mode-button {
  background: rgba(251, 252, 255, 0.94);
}

.mode-switcher--inline .mode-button.active {
  background: rgba(225, 235, 255, 0.92);
}

.mode-button {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  background: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.mode-button-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mode-button-main small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.mode-button.active {
  background: var(--accent-soft);
  border-color: rgba(76, 110, 245, 0.28);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(76, 110, 245, 0.08);
}

.mode-button.disabled {
  opacity: 0.72;
}

.mode-button span {
  font-size: 13px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.panel-header h2 {
  font-size: 28px;
  line-height: 1.1;
}

.integration-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.integration-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.integration-header h2,
.integration-header p {
  margin: 0;
}

.integration-pill {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

.integration-pill.ok {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.integration-pill.down {
  background: var(--warn-soft);
  color: var(--warn);
}

.integration-url {
  margin: 0;
  font-family: Consolas, monospace;
  word-break: break-all;
}

.integration-detail {
  margin: 0;
  color: var(--muted);
}

.ghost-action {
  width: fit-content;
  border: 1px solid rgba(113, 130, 157, 0.16);
  background: rgba(248, 251, 255, 0.82);
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.ghost-action:hover,
.secondary-link:hover,
.ghost-link:hover,
.starter-button:hover {
  background: #f3f7fd;
  border-color: var(--line-strong);
  box-shadow: 0 8px 18px rgba(74, 95, 125, 0.08);
  transform: translateY(-1px);
}

.ghost-action--small {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.text-input,
.chat-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.text-input:focus,
.chat-input:focus {
  outline: none;
  border-color: rgba(76, 110, 245, 0.45);
  box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.12);
}

.chat-input {
  resize: vertical;
  min-height: 150px;
}

.conversation-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.conversation-panel--primary {
  min-height: 0;
  height: 100%;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(245, 249, 254, 0.92), rgba(233, 240, 248, 0.9));
  border-color: rgba(73, 91, 120, 0.2);
  box-shadow: none;
}

.state-pill {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(234, 240, 252, 0.95);
  color: var(--warn);
  border: 1px solid rgba(77, 109, 246, 0.16);
}

.state-pill.busy {
  background: rgba(227, 236, 255, 0.92);
  color: var(--accent-strong);
  border: 1px solid rgba(77, 109, 246, 0.2);
}

.starter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 0 10px;
  border-bottom: 1px solid rgba(126, 142, 168, 0.2);
}

.starter-row--commands {
  gap: 6px;
  padding-top: 2px;
  padding-bottom: 0;
  border-bottom: 0;
}

.starter-button,
.primary-button {
  border: 1px solid rgba(113, 130, 157, 0.24);
  background: rgba(252, 253, 255, 0.98);
  color: var(--ink);
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
}

.starter-button--command {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(246, 249, 253, 0.98);
  font-size: 12px;
  line-height: 1.2;
}

.starter-button--quiet {
  border-color: rgba(113, 130, 157, 0.14);
  background: rgba(246, 249, 253, 0.78);
  color: #314258;
}

.primary-button {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(59, 91, 219, 0.18);
}

.primary-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 360px;
  max-height: none;
  flex: 1;
  overflow: auto;
  padding: 6px 2px 6px 0;
  scrollbar-width: thin;
  position: relative;
}

.message-list--console {
  gap: 8px;
}

.message-list--timeline {
  padding-left: 18px;
}

.message-list--timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(110, 128, 155, 0.28), rgba(110, 128, 155, 0.08));
}

.message {
  position: relative;
  border-radius: 8px;
  padding: 14px;
  border: 1px solid rgba(118, 135, 162, 0.18);
  box-shadow: 0 8px 18px rgba(57, 73, 101, 0.04);
}

.message--timeline::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(97, 118, 152, 0.75);
  box-shadow: 0 0 0 4px rgba(230, 237, 247, 0.95);
}

.message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message-body p {
  margin: 0;
  line-height: 1.72;
}

.message-body ul,
.message-body ol {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.6;
}

.message-body li + li {
  margin-top: 4px;
}

.message-compact-note {
  color: rgba(107, 114, 128, 0.95);
  font-size: 13px;
}

.message-body h2,
.message-body h3,
.message-body h4,
.approval-table-ai h2,
.approval-table-ai h3,
.approval-table-ai h4 {
  margin: 18px 0 8px;
  color: #111827;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.3;
}

.message-body h2,
.approval-table-ai h2 {
  font-size: 18px;
}

.message-body h3,
.approval-table-ai h3 {
  font-size: 15px;
}

.message-body h4,
.approval-table-ai h4 {
  font-size: 13px;
}

.message-body h2:first-child,
.message-body h3:first-child,
.message-body h4:first-child {
  margin-top: 0;
}

.message-body p + p,
.message-body p + .message-table-wrap,
.message-body .message-table-wrap + p {
  margin-top: 10px;
}

.message-body code {
  font-family: Consolas, monospace;
  background: #eef2f6;
  padding: 2px 6px;
  border-radius: 6px;
}

.message-table-wrap {
  overflow-x: auto;
  margin-top: 10px;
}

.message-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  background: rgba(252, 253, 255, 0.98);
  border: 1px solid rgba(118, 135, 162, 0.16);
  border-radius: 8px;
  overflow: hidden;
}

.message-table th,
.message-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(118, 135, 162, 0.14);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.message-table th {
  background: rgba(241, 246, 252, 0.94);
  font-weight: 700;
}

.message-table tr:last-child td {
  border-bottom: 0;
}

.message.user {
  background: rgba(251, 252, 254, 0.94);
  border-left: 2px solid rgba(126, 140, 161, 0.56);
}

.message.user.message--timeline::before {
  background: rgba(126, 140, 161, 0.82);
}

.message.assistant {
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(238, 244, 253, 0.95));
  border-left: 2px solid rgba(76, 110, 245, 0.38);
}

.message.assistant.message--timeline::before {
  background: rgba(76, 110, 245, 0.9);
}

.chat-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.composer {
  border: 1px solid rgba(80, 100, 130, 0.24);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(238, 244, 251, 0.98));
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 18px 34px rgba(48, 66, 95, 0.08);
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.composer.drag-active {
  border-color: rgba(76, 110, 245, 0.5);
  box-shadow: 0 0 0 4px rgba(76, 110, 245, 0.08), 0 16px 28px rgba(56, 74, 104, 0.08);
  background: #fbfcff;
}

.composer-toolbar,
.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.composer-toolbar {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(124, 141, 168, 0.18);
}

.composer-footer {
  padding-top: 10px;
  border-top: 1px solid rgba(124, 141, 168, 0.16);
}

.composer-tools,
.composer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.composer-hint,
.composer-meta span,
.voice-draft {
  color: #4b5e7e;
  font-size: 13px;
  padding: 10px 12px;
  border: 1px solid rgba(114, 133, 165, 0.2);
  border-radius: 8px;
  background: rgba(237, 243, 252, 0.88);
}

.composer-input {
  min-height: 140px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  padding: 0;
  box-shadow: none;
}

.composer-input:focus {
  border: 0;
  box-shadow: none;
}

.tool-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: rgba(76, 110, 245, 0.25);
}

.composer-attachments,
.message-attachments {
  display: grid;
  gap: 10px;
}

.composer-attachment,
.message-attachment {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  padding: 10px;
}

.message-attachment {
  margin-top: 10px;
  background: #fff;
}

.composer-attachment-thumb,
.message-attachment-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.composer-attachment-icon,
.message-attachment-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 28px;
}

.composer-attachment-meta,
.message-attachment-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.composer-attachment-meta strong,
.message-attachment-meta strong {
  font-size: 14px;
  line-height: 1.35;
  word-break: break-word;
}

.composer-attachment-meta span,
.message-attachment-meta span {
  color: var(--muted);
  font-size: 12px;
}

.composer-remove {
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}

.interaction-form,
.interaction-choice-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.interaction-field {
  display: grid;
  gap: 8px;
}

.interaction-field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.interaction-textarea {
  min-height: 120px;
}

.interaction-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.interaction-choice:hover {
  border-color: rgba(76, 110, 245, 0.32);
  background: #fbfcff;
  box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.08);
}

.interaction-choice strong {
  font-size: 15px;
}

.interaction-choice span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.status-card {
  border: 1px solid rgba(115, 132, 159, 0.22);
  border-radius: 10px;
  background: rgba(250, 252, 255, 0.96);
  padding: 14px;
  box-shadow: 0 8px 18px rgba(57, 73, 101, 0.05);
}

.status-card.empty {
  background: rgba(239, 244, 251, 0.92);
}

.preview-diff-card {
  padding: 16px;
  border: 1px solid rgba(115, 132, 159, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(242, 247, 252, 0.95));
  box-shadow: 0 8px 18px rgba(57, 73, 101, 0.05);
}

.preview-diff-card__head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.preview-diff-card__head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.preview-diff-card__head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.preview-diff-card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.preview-diff-card__section {
  padding: 12px;
  border: 1px solid rgba(118, 135, 162, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}

.preview-diff-card__section--ready {
  background: rgba(240, 253, 244, 0.9);
  border-color: rgba(34, 197, 94, 0.18);
}

.preview-diff-card__section--warning {
  background: rgba(239, 244, 255, 0.92);
  border-color: rgba(76, 110, 245, 0.18);
}

.preview-diff-card__section--blocking {
  background: rgba(254, 242, 242, 0.92);
  border-color: rgba(248, 113, 113, 0.2);
}

.preview-diff-card__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.preview-diff-card__section-head strong {
  font-size: 14px;
}

.preview-diff-card__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.preview-diff-card__list li {
  color: var(--ink);
  line-height: 1.5;
}

.preview-diff-card__section--blocking .preview-diff-card__list li::marker {
  color: #b42318;
}

.preview-diff-card__section--warning .preview-diff-card__list li::marker {
  color: #2f56dc;
}

.preview-diff-card__section--ready .preview-diff-card__list li::marker {
  color: #15803d;
}

.preview-diff-card__section--neutral .preview-diff-card__list li::marker {
  color: #667085;
}

.review-summary-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(115, 132, 159, 0.2);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(241, 246, 252, 0.94));
  box-shadow: 0 8px 18px rgba(57, 73, 101, 0.05);
}

.review-summary-card__head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.review-summary-card__head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.review-summary-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.review-summary-card__metric {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(118, 135, 162, 0.18);
  background: rgba(255, 255, 255, 0.9);
}

.review-summary-card__metric strong {
  font-size: 12px;
}

.review-summary-card__metric--blocking {
  background: #fef3f2;
  border-color: #fecaca;
  color: #b42318;
}

.review-summary-card__metric--warning {
  background: #eff4ff;
  border-color: #c7d7fe;
  color: #2f56dc;
}

.review-summary-card__section + .review-summary-card__section {
  margin-top: 12px;
}

.review-summary-card__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.review-summary-card__section-head strong {
  font-size: 14px;
}

.review-summary-card__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.review-summary-card__list li {
  color: var(--ink);
  line-height: 1.55;
}

.review-summary-card__list--blocking li::marker {
  color: #b42318;
}

.review-summary-card__list--warning li::marker {
  color: #2f56dc;
}

.api-box {
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.api-box code {
  display: block;
  margin-top: 6px;
  word-break: break-all;
}

.parameter-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.status-phase {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(118, 135, 162, 0.18);
  background: rgba(245, 248, 252, 0.96);
  color: #334155;
}

.status-phase--draft_ready,
.status-phase--awaiting_confirmation {
  background: #eef4ff;
  border-color: #c9d8ff;
  color: #2f56dc;
}

.status-phase--committed,
.status-phase--completed {
  background: #edf7f3;
  border-color: #c7ead9;
  color: #1f7a52;
}

.status-phase--failed {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.status-history {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.status-history-head {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.status-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.status-history-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.status-history-item span {
  color: var(--muted);
  white-space: nowrap;
}

.workspace-empty,
.workspace-content {
  min-height: calc(100vh - 36px);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(191, 205, 224, 0.72);
  border-radius: 12px;
  box-shadow: 0 20px 44px rgba(120, 135, 171, 0.1);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.workspace-empty {
  display: grid;
  place-items: center;
  padding: 36px;
  text-align: center;
}

.workspace-content {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.workspace-meta,
.workspace-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
}

.workspace-meta {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(244, 248, 253, 0.68) 100%);
}

.workspace-meta--thin {
  padding-top: 12px;
  padding-bottom: 12px;
}

.workspace-meta h2 {
  font-size: 34px;
  line-height: 1.08;
}

.workspace-meta-main {
  width: 100%;
}

.workspace-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}

.workspace-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.workspace-route {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.workspace-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.workspace-badge {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}

.workspace-badge-view {
  background: #eef2ff;
  border-color: rgba(76, 110, 245, 0.2);
  color: var(--accent-strong);
}

.workspace-badge-doc {
  background: #f8fafc;
  color: #344054;
}

.workspace-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: linear-gradient(90deg, rgba(236, 242, 251, 0.42), rgba(255, 255, 255, 0.24));
  border-top: 1px solid rgba(194, 206, 227, 0.56);
  border-bottom: 1px solid rgba(194, 206, 227, 0.56);
}

.workspace-banner strong {
  font-size: 15px;
}

.workspace-banner p {
  margin: 4px 0 0;
}

.workspace-banner--draft {
  align-items: flex-start;
}

.workspace-content--draft {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.real-workbench-shell {
  min-height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  box-shadow: none;
}

.real-workbench-body {
  min-height: 0;
  overflow: auto;
  padding: 16px 20px 0;
}

.real-workbench-empty {
  min-height: calc(100vh - 36px);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
}

.workspace-meta--draft-shell {
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.confirm-content--inpage {
  margin-top: 16px;
}

.confirm-actions--inpage {
  margin-top: 0;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  position: static;
}

.workspace-draft-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
}

.workspace-actions,
.empty-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.secondary-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  background: #fff;
}

.secondary-link.primary {
  background: linear-gradient(135deg, #4d6df6, #7ba6ff);
  color: white;
  border-color: rgba(77, 109, 246, 0.6);
  box-shadow: 0 8px 18px rgba(77, 109, 246, 0.2);
}

.erp-frame {
  width: calc(100% - 24px);
  height: 100%;
  min-height: 620px;
  margin: 12px;
  border: 1px solid rgba(205, 215, 229, 0.92);
  background: white;
  box-shadow: 0 14px 32px rgba(98, 112, 141, 0.08);
}

.workspace-content--erp-shell {
  background: rgba(255, 255, 255, 0.62);
}

.workspace-meta--erp-shell h2 {
  letter-spacing: -0.02em;
}

.workspace-banner--erp-shell {
  align-items: flex-start;
}

.workspace-footer--erp-shell {
  background: rgba(248, 251, 255, 0.54);
}

.iframe-fallback {
  display: grid;
  place-items: center;
  color: var(--muted);
  min-height: 620px;
}

.iframe-fallback--standby {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(245, 248, 252, 0.74), rgba(236, 242, 249, 0.58));
}

.iframe-fallback-card {
  width: min(560px, 100%);
  padding: 28px 30px;
  border: 1px solid rgba(173, 187, 210, 0.56);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 30px rgba(82, 99, 131, 0.08);
}

.iframe-fallback-card--restrained {
  width: min(480px, 100%);
  padding: 22px 24px;
  border-color: rgba(168, 182, 206, 0.42);
  background: rgba(250, 252, 255, 0.74);
  box-shadow: 0 10px 22px rgba(82, 99, 131, 0.05);
}

.iframe-fallback-card h3 {
  margin: 10px 0 8px;
  font-size: 28px;
  line-height: 1.08;
  color: var(--ink);
}

.iframe-fallback-card p {
  margin: 0 0 18px;
  line-height: 1.7;
}

.workspace-footer {
  border-top: 1px solid var(--line);
  gap: 12px;
  background: #fbfcfe;
}

/* .workspace-footer--draft overridden below in the new additions */

.workspace-footer a {
  color: var(--accent-strong);
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 42, 40, 0.32);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 40;
}

.confirm-modal {
  width: min(860px, 100%);
  max-height: min(82vh, 920px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(28, 22, 14, 0.18);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.confirm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.confirm-modal h2 {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1.1;
}

.confirm-badge {
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.confirm-summary {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}

.approval-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(76, 110, 245, 0.08), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(76, 110, 245, 0.14);
}

.approval-card--workspace {
  margin-top: 0;
  min-height: 100%;
}

.approval-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.approval-summary {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.approval-section {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.approval-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.approval-section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.approval-section-body {
  padding: 18px;
}

.approval-section-body--table {
  padding-top: 0;
}

.approval-table-section {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.approval-table-section:first-child {
  margin-top: 0;
}

.approval-table-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.approval-table-section-head strong {
  font-size: 14px;
  color: var(--ink);
}

.approval-table-wrap {
  overflow-x: auto;
}

.approval-table-wrap--line-items {
  overflow-x: auto;
}

.approval-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.approval-table th,
.approval-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  word-break: break-word;
}

.approval-table th {
  background: #f8fafc;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.approval-table tbody tr:last-child td {
  border-bottom: 0;
}

.approval-table--line-items {
  min-width: 1100px;
  table-layout: auto;
}

.approval-line-no {
  width: 72px;
  font-weight: 700;
  color: var(--text);
}

.approval-line-cell {
  min-width: 180px;
}

.approval-line-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.approval-line-ai {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.approval-line-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.approval-table-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.approval-line-editor {
  display: grid;
  gap: 8px;
}

.approval-table-ai p {
  margin: 0;
}

.approval-option-chip--button {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.approval-option-chip--button:hover,
.approval-option-chip--button.active {
  border-color: rgba(37, 99, 235, 0.22);
  background: #eef4ff;
  color: #1d4ed8;
}

.approval-field-feedback {
  justify-self: start;
  border-radius: 999px;
  background: #ecfdf3;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 8px;
}

.approval-ai-hint {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border-radius: 999px;
  background: #f3f4f6;
  color: rgba(75, 85, 99, 0.95);
  cursor: help;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.approval-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.approval-status--confirmed {
  background: #ecfdf3;
  color: #027a48;
}

.approval-status--pending {
  background: #eff4ff;
  color: #3b5bdb;
}

.approval-status--choice {
  background: #fff4e5;
  color: #b54708;
}

.approval-status--missing {
  background: #fef3f2;
  color: #b42318;
}

.approval-status--draft {
  background: #f2f4f7;
  color: #475467;
}

.approval-option-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  margin: 0 8px 8px 0;
  font-size: 12px;
}

.approval-option-chip--button {
  appearance: none;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.approval-option-chip--button:hover,
.approval-option-chip--button.active {
  border-color: rgba(37, 99, 235, 0.22);
  background: #eef4ff;
  color: #1d4ed8;
}

.approval-editor-stack {
  display: grid;
  gap: 12px;
}

.approval-option-list {
  display: grid;
  gap: 10px;
}

.approval-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.approval-option strong {
  display: block;
  margin-bottom: 4px;
}

.approval-option span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.approval-inline-input {
  min-width: 0;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.approval-inline-input--required {
  border-color: #fda29b;
  background: #fff9f9;
}

.approval-inline-input--required::placeholder {
  color: #f04438;
}

.approval-inline-input.has-error,
.approval-inline-textarea.has-error {
  border-color: #f04438 !important;
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.15) !important;
  background: #fff9f9 !important;
}

.approval-inline-textarea {
  min-height: 140px;
  width: 100%;
  resize: vertical;
}

.approval-empty {
  color: var(--muted);
  font-size: 13px;
}

.approval-required-mark {
  color: #f04438;
  font-weight: 700;
}

.approval-add-row-btn {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px dashed var(--line-strong);
  background: #f8fafc;
  color: var(--accent-strong);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.approval-add-row-btn:hover {
  background: var(--accent-soft);
  border-color: rgba(76, 110, 245, 0.35);
}

.workspace-footer--draft {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 16px 20px;
}

.workspace-footer-hint {
  font-size: 13px;
  color: var(--muted);
}

.workspace-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-loading {
  opacity: 0.75;
  cursor: not-allowed;
  position: relative;
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.prototype-shell,
.prototype-shell--flow {
  min-height: 100vh;
}

.prototype-shell--flow-triple {
  display: block;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(250, 251, 252, 0.98), rgba(244, 246, 248, 1));
}

.prototype-sidebar--selection,
.prototype-sidebar--flow {
  padding: 18px;
}

.prototype-selection,
.prototype-flow-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: calc(100vh - 36px);
  padding: 24px;
  border: 1px solid rgba(92, 108, 136, 0.12);
  border-radius: 16px;
  background: rgba(245, 248, 251, 0.88);
  box-shadow: 0 10px 28px rgba(33, 46, 69, 0.05);
}

.real-shell-layout {
  display: grid;
  grid-template-columns: var(--real-grid-template, var(--real-rail-width, 248px) 6px minmax(420px, 1fr) 6px var(--real-preview-width, 520px));
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.real-shell-layout--preview-collapsed {
  grid-template-columns: var(--real-grid-template, var(--real-rail-width, 248px) 6px minmax(0, 1fr));
}

.real-shell-layout--rail-collapsed {
  grid-template-columns: var(--real-grid-template, minmax(0, 1fr) 6px var(--real-preview-width, 520px));
}

.real-shell-rail,
.real-shell-main,
.real-shell-preview {
  min-width: 0;
}

.real-shell-resizer {
  position: relative;
  z-index: 6;
  width: 6px;
  min-width: 6px;
  cursor: col-resize;
  background: transparent;
}

.real-shell-resizer::after {
  content: "";
  position: absolute;
  inset: 0 2px;
  border-radius: 999px;
  background: transparent;
  transition: background 120ms ease;
}

.real-shell-resizer:hover::after {
  background: rgba(15, 23, 42, 0.16);
}

.real-shell-side-toggle {
  position: fixed;
  z-index: 20;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

.real-shell-side-toggle:hover {
  background: #f7f8fa;
}

.real-shell-side-toggle--rail {
  top: 12px;
  left: 12px;
}

.real-shell-side-toggle--preview {
  top: 12px;
  right: 12px;
}

.real-shell-rail {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  padding: 0;
  background: #fff;
  border-right: 1px solid rgba(15, 23, 42, 0.06);
}

.real-shell-rail__body {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 14px 12px;
  overflow: auto;
}

.real-shell-rail__top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 4px;
}

.real-shell-rail__brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #111827;
}

.real-shell-rail__nav {
  display: grid;
  gap: 1px;
}

.real-shell-rail__nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #111827;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.real-shell-rail__nav-item:hover {
  background: rgba(247, 248, 250, 0.96);
}

.real-shell-rail__nav-item.active {
  background: rgba(246, 247, 249, 0.98);
}

.real-shell-rail__nav-label {
  font-size: 13px;
  font-weight: 500;
}

.real-shell-rail__nav-icon {
  width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(55, 65, 81, 0.92);
  font-size: 15px;
  flex: 0 0 18px;
}

.real-shell-search {
  padding: 4px 4px 0;
}

.real-shell-search__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.real-shell-search input {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font-size: 12.5px;
  outline: none;
  padding: 6px 9px;
}

.real-shell-search input:focus {
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.04);
}

.real-shell-search button {
  min-height: 30px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 7px;
  background: #fff;
  color: rgba(55, 65, 81, 0.92);
  font-size: 12px;
  cursor: pointer;
  padding: 0 8px;
}

.real-shell-automation {
  display: grid;
  gap: 7px;
  margin: 5px 4px 2px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 9px;
  background: #fff;
}

.real-shell-automation__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(75, 85, 99, 0.95);
  font-size: 12px;
  font-weight: 600;
}

.real-shell-automation__head button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(107, 114, 128, 0.9);
  cursor: pointer;
}

.real-shell-automation__head button:hover {
  background: rgba(15, 23, 42, 0.05);
}

.real-shell-automation__list {
  display: grid;
  gap: 3px;
}

.real-shell-automation__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.real-shell-automation__item:hover {
  background: rgba(247, 248, 250, 0.96);
}

.real-shell-automation__item span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.real-shell-automation__item strong,
.real-shell-automation__item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.real-shell-automation__item strong {
  color: #111827;
  font-size: 12.5px;
  font-weight: 600;
}

.real-shell-automation__item small {
  color: rgba(107, 114, 128, 0.9);
  font-size: 11px;
}

.real-shell-automation__item em {
  color: rgba(107, 114, 128, 0.84);
  font-size: 11px;
  font-style: normal;
}

.real-shell-undo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 5px 4px 2px;
  padding: 7px 8px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 8px;
  background: rgba(247, 248, 250, 0.96);
  color: rgba(55, 65, 81, 0.94);
  font-size: 12px;
}

.real-shell-undo span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.real-shell-undo button {
  border: 0;
  background: transparent;
  color: #111827;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.real-shell-rail__empty {
  color: rgba(107, 114, 128, 0.86);
  font-size: 12px;
  padding: 8px 12px;
}

.real-shell-rail__section {
  display: grid;
  gap: 8px;
}

.real-shell-rail__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 4px 0;
}

.real-shell-rail__section-label {
  color: rgba(107, 114, 128, 0.88);
}

.real-shell-rail__section-action {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(107, 114, 128, 0.9);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.real-shell-rail__section-action:hover {
  background: rgba(15, 23, 42, 0.05);
  color: #111827;
}

.real-shell-project-group-list {
  display: grid;
  gap: 2px;
}

.real-shell-project-group {
  position: relative;
  display: grid;
  gap: 1px;
}

.real-shell-project-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 7px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.real-shell-project-group__head:hover {
  background: rgba(247, 248, 250, 0.96);
}

.real-shell-project-group__head.active {
  background: rgba(246, 247, 249, 0.98);
}

.real-shell-project-group__title-row {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  gap: 7px;
}

.real-shell-project-group__icon {
  display: inline-grid;
  place-items: center;
  color: rgba(107, 114, 128, 0.82);
  font-size: 11px;
  line-height: 1;
  width: 14px;
  height: 18px;
  flex: 0 0 14px;
  border-radius: 5px;
}

.real-shell-project-group__icon:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #111827;
}

.real-shell-project-group__text {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.real-shell-project-group__head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.real-shell-project-group__text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(107, 114, 128, 0.88);
  font-size: 11.5px;
}

.real-shell-project-group__time {
  color: rgba(107, 114, 128, 0.78);
  font-size: 11.5px;
  white-space: nowrap;
}

.real-shell-project-group__more {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(107, 114, 128, 0.88);
  cursor: pointer;
  opacity: 0.42;
}

.real-shell-project-group:hover .real-shell-project-group__more,
.real-shell-project-group.active .real-shell-project-group__more {
  opacity: 1;
}

.real-shell-project-actions,
.real-shell-project-rename,
.real-shell-project-edit {
  margin: 2px 8px 6px 22px;
  padding: 6px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.real-shell-project-actions {
  display: grid;
  gap: 2px;
}

.real-shell-project-actions button,
.real-shell-project-rename button,
.real-shell-project-edit button {
  width: 100%;
  min-height: 28px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #111827;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.real-shell-project-actions button.danger,
.real-shell-chat-menu button.danger {
  color: #b42318;
}

.real-shell-project-actions button:hover,
.real-shell-project-rename button:hover,
.real-shell-project-edit button:hover {
  background: rgba(246, 247, 249, 0.98);
}

.real-shell-project-rename,
.real-shell-project-edit {
  display: grid;
  gap: 6px;
}

.real-shell-project-edit label {
  display: grid;
  gap: 4px;
}

.real-shell-project-edit label span {
  color: rgba(107, 114, 128, 0.88);
  font-size: 11px;
}

.real-shell-project-rename input,
.real-shell-project-edit input {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 8px;
  font-size: 12px;
}

.real-shell-project-edit__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.real-shell-conversation-list {
  display: grid;
  gap: 1px;
  padding-left: 18px;
}

.real-shell-conversation-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 30px;
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #374151;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.real-shell-conversation-item:hover {
  background: rgba(248, 249, 251, 0.98);
  color: #111827;
}

.real-shell-conversation-item.current-project {
  background: rgba(246, 247, 249, 0.98);
  color: #111827;
}

.real-shell-conversation-item__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
}

.real-shell-conversation-item__time {
  color: rgba(107, 114, 128, 0.82);
  font-size: 11.5px;
  white-space: nowrap;
}

.real-shell-rail__footer {
  position: relative;
  padding: 12px 14px 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
}

.real-shell-settings {
  position: relative;
}

.real-shell-settings-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
}

.real-shell-settings-card__user {
  display: grid;
  gap: 2px;
  padding: 6px 4px 10px;
}

.real-shell-settings-card__user strong {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.real-shell-settings-card__user span {
  font-size: 12px;
  color: rgba(107, 114, 128, 0.9);
}

.real-shell-settings-item,
.real-shell-settings-anchor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.real-shell-settings-item span,
.real-shell-settings-anchor span {
  font-size: 13px;
  font-weight: 500;
}

.real-shell-settings-item small {
  color: rgba(107, 114, 128, 0.88);
  font-size: 11px;
}

.real-shell-settings-item:hover,
.real-shell-settings-anchor:hover {
  background: rgba(247, 248, 250, 0.96);
}

.real-shell-settings-item--active {
  background: rgba(246, 247, 249, 0.98);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.real-shell-settings-anchor {
  padding-left: 12px;
}

.real-shell-settings-anchor__main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.real-shell-settings-anchor__icon {
  width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(55, 65, 81, 0.92);
  font-size: 18px;
  flex: 0 0 22px;
}

.real-shell-settings-anchor__chevron {
  color: rgba(107, 114, 128, 0.82);
  font-size: 14px;
}

.real-shell-main {
  padding: 0;
  background: #fff;
  min-height: 0;
  overflow: hidden;
}

.real-shell-chat {
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 0;
}

.real-shell-chat__head,
.real-shell-chat__summary,
.real-shell-chat__composer {
  padding-left: 28px;
  padding-right: 28px;
}

.real-shell-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.real-shell-chat__head h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0;
}

.real-shell-chat__head-side {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.real-shell-chat__menu-wrap {
  position: relative;
}

.real-shell-chat-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 6;
  display: grid;
  gap: 4px;
  min-width: 178px;
  padding: 7px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.1);
}

.real-shell-chat-menu button {
  width: 100%;
  min-height: 30px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111827;
  cursor: pointer;
  font-size: 12.5px;
  text-align: left;
}

.real-shell-chat-menu button:hover {
  background: rgba(247, 248, 250, 0.96);
}

.real-preview-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.real-preview-toggle:hover {
  background: rgba(247, 248, 250, 0.96);
}

.real-shell-chat__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  padding-bottom: 12px;
}

.real-shell-chat__summary-text {
  color: rgba(98, 112, 134, 0.9);
}

.real-shell-chat__scroll {
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}

.real-shell-chat__messages {
  min-height: 0;
  overflow: visible;
  padding: 0 28px 96px;
}

.real-shell-chat__messages .message-list {
  min-height: auto;
  max-height: none;
  padding-right: 8px;
}

.real-shell-chat__messages .message-list--timeline {
  padding-left: 0;
}

.real-shell-chat__messages .message-list--timeline::before,
.real-shell-chat__messages .message--timeline::before {
  display: none;
}

.real-new-conversation-intent {
  display: grid;
  gap: 8px;
  width: min(620px, 100%);
  margin: clamp(64px, 18vh, 190px) auto 28px;
  text-align: center;
}

.real-new-conversation-intent h1 {
  margin: 0;
  color: #111827;
  font-size: 25px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: 0;
}

.real-new-conversation-intent p {
  max-width: 520px;
  margin: 0 auto;
  color: rgba(75, 85, 99, 0.9);
  font-size: 13px;
  line-height: 1.6;
}

.real-shell-chat__composer {
  padding-top: 8px;
  padding-bottom: 12px;
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.04);
}

.real-inline-interaction,
.real-workbench-shell {
  margin: 0 28px 16px;
}

.real-workbench-shell--dock {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 28px 8px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.real-workbench-dock__main {
  min-width: 0;
}

.real-workbench-dock__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: rgba(98, 112, 134, 0.95);
  font-size: 11px;
  font-weight: 500;
}

.real-workbench-dock__title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.real-workbench-dock__title-row strong {
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.real-workbench-dock__title-row span {
  color: rgba(98, 112, 134, 0.9);
  font-size: 12px;
}

.real-workbench-dock__main p {
  overflow: hidden;
  margin: 2px 0 0;
  color: rgba(75, 85, 99, 0.92);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.real-workbench-dock__stats,
.real-interaction-drawer__stats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.real-workbench-dock__stats {
  margin-top: 7px;
}

.real-workbench-dock__stats__chip,
.real-interaction-drawer__stats__chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.95);
  color: rgba(71, 85, 105, 0.96);
  font-size: 11px;
  font-weight: 500;
}

button.real-workbench-dock__stats__chip,
button.real-interaction-drawer__stats__chip {
  cursor: pointer;
  font: inherit;
}

.real-workbench-dock__stats__chip--missing,
.real-interaction-drawer__stats__chip--missing {
  border-color: rgba(240, 68, 56, 0.18);
  background: #fff7f7;
  color: #b42318;
}

.real-workbench-dock__stats__chip--choice,
.real-interaction-drawer__stats__chip--choice {
  border-color: rgba(247, 144, 9, 0.2);
  background: #fffbf2;
  color: #b54708;
}

.real-workbench-dock__stats__chip--confirmed,
.real-interaction-drawer__stats__chip--confirmed {
  border-color: rgba(18, 183, 106, 0.18);
  background: #f3fbf7;
  color: #027a48;
}

button.real-workbench-dock__stats__chip:hover,
button.real-interaction-drawer__stats__chip:hover,
.real-workbench-dock__stats__chip--active,
.real-interaction-drawer__stats__chip--active {
  border-color: rgba(15, 23, 42, 0.18);
  background: #111827;
  color: #fff;
}

.real-workbench-dock__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-button--compact {
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 10px;
}

.real-inline-interaction {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  background: #fff;
}

.real-inline-interaction--empty {
  max-width: none;
}

.real-inline-interaction__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.real-inline-interaction__title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.real-inline-interaction__actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.real-shell-mini-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(75, 85, 99, 0.92);
  font-size: 11px;
  font-weight: 600;
}

.real-icon-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(75, 85, 99, 0.95);
  cursor: pointer;
}

.real-icon-button:hover {
  background: rgba(15, 23, 42, 0.05);
}

.real-task-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 10px;
  background: #fff;
}

.real-task-card__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(239, 246, 255, 0.9);
  color: var(--accent-strong);
}

.real-task-card__body {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.real-task-card__body strong {
  font-size: 14px;
}

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

.real-shell-preview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #fff;
  border-left: 1px solid rgba(15, 23, 42, 0.05);
}

.real-shell-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 7px 10px 7px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.real-shell-preview-tab {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 999px;
  background: rgba(249, 250, 251, 0.95);
}

.real-shell-preview-tab__icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: rgba(75, 85, 99, 0.9);
  font-size: 12px;
}

.real-shell-preview-tab__text {
  min-width: 0;
  display: grid;
  gap: 0;
}

.real-shell-preview-tab__text strong,
.real-shell-preview-tab__text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.real-shell-preview-tab__text strong {
  color: #111827;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 600;
}

.real-shell-preview-tab__text small {
  max-width: 220px;
  color: rgba(107, 114, 128, 0.9);
  font-size: 10.5px;
  line-height: 1.2;
}

.real-shell-preview__actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.real-icon-button--link {
  text-decoration: none;
}

.real-shell-preview__body {
  min-height: 0;
  overflow: hidden;
}

.real-right-stack {
  position: relative;
  display: grid;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.real-shell-preview .workspace {
  height: 100%;
  padding: 0;
  background: transparent;
}

.real-shell-preview .workspace-content,
.real-shell-preview .workspace-empty {
  min-height: 100%;
}

.real-shell-preview .workspace-meta,
.real-shell-preview .workspace-banner,
.real-shell-preview .workspace-footer {
  background: #fff;
}

.real-shell-preview .workspace-content--erp-shell {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: 0;
}

.real-shell-preview .workspace-meta {
  display: none;
}

.real-shell-preview .workspace-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 8px 20px;
}

.real-shell-preview .workspace-banner p {
  display: none;
}

.real-shell-preview .workspace-banner strong {
  font-size: 13px;
  font-weight: 600;
}

.real-shell-preview .workspace-actions {
  justify-content: flex-start;
}

.real-shell-preview .workspace-banner .secondary-link:not(.primary) {
  display: none;
}

.real-shell-preview .workspace-banner--erp-shell {
  display: none;
}

.real-shell-preview .secondary-link {
  white-space: nowrap;
}

.real-shell-preview .iframe-fallback {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 24px;
  background:
    linear-gradient(#f9fafb 1px, transparent 1px),
    linear-gradient(90deg, #f9fafb 1px, transparent 1px),
    #fff;
  background-size: 22px 22px;
}

.real-shell-preview .iframe-fallback-card--restrained {
  width: min(320px, 100%);
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
}

.real-shell-preview .iframe-fallback-card h3 {
  margin: 4px 0 0;
  font-size: 16px;
  letter-spacing: 0;
}

.real-shell-preview .iframe-fallback-card p {
  margin: 6px 0 0;
  color: rgba(75, 85, 99, 0.9);
  font-size: 12.5px;
  line-height: 1.55;
}

.real-shell-preview .workspace-footer--erp-shell {
  min-height: 34px;
  padding: 7px 12px;
  color: rgba(107, 114, 128, 0.9);
  font-size: 11.5px;
}

.real-interaction-drawer {
  position: relative;
  inset: auto;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.real-interaction-drawer__head,
.real-interaction-drawer__tabs,
.real-interaction-drawer__foot {
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.real-interaction-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
}

.real-interaction-drawer__head h3 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: 0;
}

.real-interaction-drawer__head p {
  margin: 4px 0 0;
  color: rgba(75, 85, 99, 0.92);
  font-size: 13px;
  line-height: 1.45;
}

.real-interaction-drawer__stats {
  padding: 0 14px 10px;
  background: #fff;
}

.real-interaction-drawer__tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px 10px;
}

.real-interaction-drawer__tab {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #fff;
  color: rgba(75, 85, 99, 0.95);
  cursor: pointer;
  font-size: 12px;
  padding: 5px 10px;
}

.real-interaction-drawer__tab.active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.real-interaction-drawer__body {
  min-height: 0;
  overflow: auto;
  padding: 12px 14px 14px;
  scrollbar-width: thin;
}

.real-interaction-drawer__body .approval-section,
.real-interaction-drawer__body .confirm-content {
  margin-top: 0;
}

.real-interaction-drawer__body .confirm-summary {
  font-size: 14px;
  line-height: 1.6;
}

.interaction-notes {
  display: grid;
  gap: 10px;
}

.interaction-notes-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
}

.interaction-notes-card--lead {
  background: #f9fafb;
}

.interaction-notes-card strong {
  color: #111827;
  font-size: 13px;
  font-weight: 650;
}

.interaction-notes-card p,
.interaction-notes-card ul {
  margin: 0;
  color: rgba(55, 65, 81, 0.95);
  font-size: 13px;
  line-height: 1.6;
}

.interaction-notes-card ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
}

.confirm-content--drawer {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.real-interaction-drawer__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 0;
}

.real-interaction-drawer__foot-note {
  color: rgba(107, 114, 128, 0.92);
  font-size: 12px;
  line-height: 1.4;
}

.real-shell-chat__composer .chat-form {
  display: grid;
  gap: 6px;
  width: min(760px, 100%);
  margin: 0 auto;
}

.real-shell-chat__composer .composer {
  border-color: rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #fff;
  padding: 9px 10px 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.real-shell-chat__composer .composer-input {
  min-height: 48px;
  padding: 4px 5px 2px;
  font-size: 14px;
  line-height: 1.55;
}

.real-composer-suggestions {
  order: -1;
  padding: 0 8px 2px;
  gap: 6px;
  justify-content: flex-start;
}

.real-shell-chat__composer .composer-hint,
.real-shell-chat__composer .composer-meta span {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.08);
}

.real-composer-commandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 0;
}

.real-composer-tools,
.real-composer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.real-composer-project-picker {
  position: relative;
  display: inline-flex;
}

.real-composer-project-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 7;
  display: grid;
  gap: 4px;
  width: min(260px, 74vw);
  max-height: 260px;
  overflow: auto;
  padding: 7px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.real-composer-project-menu button {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111827;
  cursor: pointer;
  text-align: left;
}

.real-composer-project-menu button:hover,
.real-composer-project-menu button.active {
  background: rgba(247, 248, 250, 0.96);
}

.real-composer-project-menu span,
.real-composer-project-menu small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.real-composer-project-menu span {
  font-size: 12.5px;
  font-weight: 600;
}

.real-composer-project-menu small {
  color: rgba(107, 114, 128, 0.9);
  font-size: 11px;
}

.real-composer-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(75, 85, 99, 0.95);
  font-size: 12px;
  cursor: pointer;
}

.real-composer-chip:hover {
  background: rgba(15, 23, 42, 0.05);
}

.real-send-button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  background: #111827;
  box-shadow: none;
}

.real-send-button:hover {
  background: #020617;
}

.real-composer-statusbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  min-height: 22px;
}

.real-composer-status-item {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(75, 85, 99, 0.92);
  font-size: 12px;
  cursor: pointer;
}

.real-composer-status-item:hover {
  color: #111827;
}

.real-shell-chat__messages .message.assistant {
  background: transparent;
  border-color: transparent;
  border-left-color: transparent;
  margin-right: auto;
}

.real-shell-chat__messages .message.assistant.message--timeline::before {
  background: rgba(77, 109, 246, 0.72);
}

.real-shell-chat__messages .message {
  max-width: 760px;
  padding: 8px 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.real-shell-chat__messages .message.user {
  margin-left: auto;
  max-width: min(620px, 82%);
  padding: 10px 14px;
  border: 0;
  border-radius: 18px;
  background: rgba(245, 246, 248, 0.96);
}

.real-shell-chat__messages .message.user.message--timeline::before {
  display: none;
}

.real-shell-chat__messages .message-header {
  margin-bottom: 4px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}

.prototype-flow-shell__states--view .prototype-state-chip {
  text-transform: capitalize;
}

.prototype-flow-preview__body--unified {
  padding: 12px;
}

.prototype-unified-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  min-height: 100%;
  background: rgba(255, 255, 255, 0.52);
}

.prototype-unified-preview__meta,
.prototype-unified-preview__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.prototype-unified-preview__meta {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.prototype-unified-preview__hero,
.prototype-unified-preview__section {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.prototype-unified-preview__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prototype-unified-preview__tab {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(51, 65, 85, 0.92);
  cursor: pointer;
}

.prototype-unified-preview__tab.active {
  background: rgba(241, 245, 249, 0.98);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

.prototype-unified-preview__section--panel {
  gap: 10px;
}

.prototype-unified-preview__hero h2,
.prototype-unified-preview__section p {
  margin: 0;
}

.prototype-unified-preview__hero h2 {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.prototype-unified-preview__hero p,
.prototype-unified-preview__section-head span,
.prototype-unified-preview__section p {
  color: rgba(83, 94, 114, 0.92);
  line-height: 1.55;
}

.prototype-flow-shell {
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.prototype-selection__header {
  display: grid;
  gap: 4px;
}

.prototype-selection__header h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.prototype-selection__header p,
.prototype-selection__recommendation p,
.prototype-panel p,
.prototype-panel__muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.prototype-selection__comparison-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prototype-selection--focused {
  max-width: 760px;
}

.prototype-selection--minimal {
  gap: 14px;
}

.prototype-selection__header--minimal p {
  max-width: 28ch;
}

.prototype-selection__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prototype-selection__title-row h1 {
  margin: 0;
}

.prototype-selection__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.prototype-selection__compact-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prototype-picker-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  min-width: 204px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  cursor: pointer;
}

.prototype-style-popover {
  display: grid;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(120, 137, 165, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.prototype-style-popover--flow {
  margin-top: -4px;
}

.prototype-style-popover--rail {
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 24px rgba(33, 46, 69, 0.05);
}

.prototype-style-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.prototype-style-selector--inline {
  margin-top: -4px;
}

.prototype-style-option {
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
  border: 1px solid rgba(113, 130, 157, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  cursor: pointer;
  box-shadow: none;
}

.prototype-style-option.active {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.98);
}

.prototype-style-option--recommended {
  box-shadow: none;
}

.prototype-style-option__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.prototype-style-option__title-row strong {
  font-size: 14px;
  font-weight: 600;
}

.prototype-style-option__summary {
  font-size: 12px;
  color: var(--muted);
}

.prototype-selection__actions {
  display: flex;
  justify-content: flex-start;
}

.prototype-selection__recommendation {
  padding: 14px 16px;
  border: 1px solid rgba(120, 137, 165, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.56);
}

.prototype-workspace--preview {
  display: flex;
  align-items: stretch;
}

.prototype-preview-shell {
  width: 100%;
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(98, 114, 140, 0.06);
  background: rgba(248, 250, 252, 0.76);
}

.prototype-preview-shell__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.prototype-preview-shell__header h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.prototype-preview-shell__header-meta,
.prototype-flow-shell__topbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prototype-info-hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(120, 137, 165, 0.14);
  color: var(--muted);
  font-size: 10px;
  cursor: help;
  background: rgba(255, 255, 255, 0.64);
}

.prototype-info-hint__bubble {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(120, 137, 165, 0.12);
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.prototype-info-hint:hover .prototype-info-hint__bubble,
.prototype-info-hint:focus .prototype-info-hint__bubble,
.prototype-info-hint:focus-within .prototype-info-hint__bubble {
  opacity: 1;
}

.prototype-flow-shell__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prototype-flow-shell__controls {
  display: grid;
  gap: 8px;
}

.prototype-flow-shell__states {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prototype-state-chip,
.prototype-chip,
.prototype-panel__tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(118, 135, 162, 0.12);
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.prototype-state-chip {
  cursor: pointer;
}

.prototype-state-chip.active {
  background: rgba(242, 244, 246, 0.96);
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

.prototype-flow-shell__states--rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.prototype-flow-shell__states--rail .prototype-state-chip {
  width: 100%;
  justify-content: flex-start;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  border-color: transparent;
  color: rgba(38, 50, 72, 0.88);
}

.ghost-action--prototype-toggle {
  justify-content: flex-start;
  width: 100%;
}

.prototype-assistant {
  display: grid;
  gap: 10px;
}

.prototype-workbench {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.prototype-workbench__masthead {
  display: grid;
  gap: 8px;
}

.prototype-workbench__masthead h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.prototype-workbench__eyebrow-row,
.prototype-workbench__statusline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.prototype-workbench__statusline {
  justify-content: flex-start;
}

.prototype-band {
  display: grid;
  gap: 8px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.prototype-band__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prototype-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prototype-inline-list span {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(246, 247, 248, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 12px;
  color: #334155;
}

.prototype-inline-list--muted span {
  background: rgba(243, 246, 250, 0.88);
}

.prototype-assistant__dashboard {
  display: grid;
  gap: 14px;
}

.prototype-assistant__dashboard--a {
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.9fr);
  align-items: start;
}

.prototype-assistant__main-column,
.prototype-assistant__side-column,
.prototype-assistant__stream-cards,
.prototype-assistant__theater {
  display: grid;
  gap: 14px;
}

.prototype-assistant__stage-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prototype-chip--active {
  background: rgba(225, 235, 255, 0.92);
  border-color: rgba(76, 110, 245, 0.28);
  color: var(--accent-strong);
}

.prototype-assistant__split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
}

.prototype-assistant__split--light {
  grid-template-columns: 1fr 1fr;
}

.prototype-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(96, 114, 146, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(239, 245, 252, 0.88), rgba(233, 240, 248, 0.9));
}

.prototype-panel h2,
.prototype-panel h3 {
  margin: 0;
}

.prototype-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.prototype-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prototype-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.prototype-list--tight {
  gap: 4px;
}

.prototype-risk-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(118, 135, 162, 0.1);
  border-radius: 12px;
  background: rgba(247, 249, 252, 0.92);
}

.prototype-stream,
.prototype-composer-shell {
  display: grid;
  gap: 10px;
}

.prototype-stream__head,
.prototype-composer-shell__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prototype-stream__summary,
.prototype-composer-shell__hint {
  font-size: 12px;
  color: var(--muted);
}

.prototype-message-list {
  min-height: 210px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 14px;
  background: rgba(250, 250, 249, 0.9);
  padding: 10px 10px 10px 16px;
}

.prototype-composer-shell .composer-input {
  min-height: 84px;
  padding: 12px;
}

.prototype-composer {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
  padding: 10px;
  border-radius: 14px;
}

.prototype-workbench--slate {
  background: rgba(250, 251, 253, 0.92);
}

.prototype-workbench--plain {
  background: rgba(255, 255, 255, 0.99);
  border-color: rgba(148, 163, 184, 0.14);
}

.prototype-workbench--plain .prototype-band {
  border-color: rgba(148, 163, 184, 0.14);
}

.prototype-workbench--plain .prototype-inline-list span,
.prototype-workbench--plain .prototype-chip,
.prototype-workbench--plain .prototype-panel__tag,
.prototype-workbench--plain .prototype-message-list,
.prototype-workbench--plain .prototype-composer {
  background: rgba(255, 255, 255, 0.99);
}

.prototype-workbench--frame {
  background: rgba(242, 246, 251, 0.96);
  border-color: rgba(96, 114, 146, 0.18);
}

.prototype-workbench--frame .prototype-band,
.prototype-workbench--frame .prototype-message-list,
.prototype-workbench--frame .prototype-composer {
  border-color: rgba(96, 114, 146, 0.16);
}

.prototype-preview-shell--plain {
  background: rgba(250, 251, 252, 0.9);
}

.prototype-preview-shell--frame {
  background: rgba(240, 244, 249, 0.9);
}

.embedded-shell {
  min-height: 100vh;
  padding: 20px;
  background: #f5f7fa;
}

.embedded-card {
  max-width: 1440px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.embedded-card--full {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.embedded-card--error {
  border-color: #fda29b;
}

.embedded-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.embedded-header h1 {
  margin: 6px 0 8px;
  font-size: 32px;
  line-height: 1.08;
}

.embedded-header p {
  margin: 0;
  color: var(--muted);
}

.embedded-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.embedded-validation {
  padding: 14px 16px;
  border: 1px solid #fda29b;
  border-radius: 12px;
  background: #fef3f2;
  color: #b42318;
}

.embedded-validation strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.embedded-validation p {
  margin: 0;
  color: inherit;
}

.embedded-result {
  margin-top: 16px;
}

@media (max-width: 1280px) {
  .workspace-draft-grid {
    grid-template-columns: 1fr;
  }
}

.confirm-content {
  margin-top: 16px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.confirm-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.confirm-content-body {
  padding: 18px;
}

.confirm-content .message-table {
  background: white;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  background: #fff;
  position: sticky;
  bottom: 0;
}

.edit-modal {
  width: min(920px, 100%);
}

.edit-textarea {
  min-height: 320px;
  background: white;
}

@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .real-shell-layout,
  .real-shell-layout--preview-collapsed {
    grid-template-columns: 1fr;
  }

  .real-shell-resizer {
    display: none;
  }

  .real-shell-rail {
    max-height: 42vh;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
    scrollbar-width: thin;
  }

  .real-shell-rail__body {
    overflow: auto;
    scrollbar-width: thin;
  }

  .real-shell-preview {
    border-left: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
  }

  .real-shell-chat {
    height: auto;
    min-height: auto;
  }

  .sidebar {
    min-height: auto;
  }

  .message-list {
    min-height: 360px;
    max-height: 50vh;
  }

  .workspace {
    padding-top: 0;
  }

  .workspace-empty,
  .workspace-content {
    min-height: auto;
  }

  .erp-frame,
  .iframe-fallback {
    min-height: 420px;
  }

  .workspace-title-row,
  .module-nav-head,
  .operator-console__header,
  .operator-console__command-deck-head,
  .real-shell-chat__head,
  .real-shell-chat__head-side {
    flex-direction: column;
    align-items: flex-start;
  }

  .real-shell-chat__head,
  .real-shell-chat__summary,
  .real-shell-chat__composer,
  .real-shell-chat__messages {
    padding-left: 18px;
    padding-right: 18px;
  }

  .real-inline-interaction,
  .real-workbench-shell {
    margin-left: 18px;
    margin-right: 18px;
  }

  .real-workbench-shell--dock {
    grid-template-columns: 1fr;
  }

  .real-workbench-dock__actions {
    justify-content: flex-start;
  }

  .sidebar-secondary-stack {
    grid-template-columns: 1fr;
  }

  .sidebar-secondary-panel + .sidebar-secondary-panel {
    border-left: 0;
  }

  .sidebar-secondary-panel:nth-child(n + 2) {
    border-top: 1px solid rgba(118, 135, 162, 0.16);
  }

  .quick-action-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ─── Dashboard ─────────────────────────────────────────────── */

.workspace-dashboard {
  min-height: calc(100vh - 36px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow-y: auto;
  padding: 32px;
}

.workspace-content--observation {
  min-height: calc(100vh - 132px);
  background: rgba(255, 255, 255, 0.38);
}

.workspace-meta--observation {
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.workspace-observation-grid {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.workspace-observation-card {
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.workspace-observation-card--reply .result-content p {
  margin: 0;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.dashboard-header h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 4px 0 8px;
}

.dashboard-header p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

.dashboard-result {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.dashboard-result .result-content p {
  margin: 0 0 8px;
  line-height: 1.65;
}

.dashboard-result .result-content .message-table-wrap {
  margin: 12px 0;
}

.dashboard-quick-actions {
  margin-bottom: 28px;
}

.dashboard-quick-actions h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--ink);
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  font-family: inherit;
}

.quick-action-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(76, 110, 245, 0.12);
}

.quick-action-icon {
  font-size: 24px;
  line-height: 1;
}

.quick-action-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.quick-action-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.dashboard-tips {
  background: linear-gradient(135deg, #f0f4ff 0%, #f8f9ff 100%);
  border: 1px solid #e0e7ff;
  border-radius: 10px;
  padding: 20px 24px;
}

.dashboard-tips h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--accent-strong);
}

.dashboard-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-tips li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-tips li strong {
  color: var(--ink);
}

/* ─── Commit Result ────────────────────────────────────────── */

.workspace-commit-result {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.commit-result-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  background: color-mix(in srgb, var(--status-color, #16a34a) 6%, white);
  border: 1px solid color-mix(in srgb, var(--status-color, #16a34a) 20%, transparent);
  border-radius: 12px;
}

.commit-result-icon {
  flex-shrink: 0;
}

.commit-result-status h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--status-color, #16a34a);
}

.commit-result-status p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.commit-result-detail {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 24px;
}

.commit-result-detail .result-content p {
  margin: 0 0 8px;
  line-height: 1.65;
}

.commit-result-summary {
  list-style: none;
  padding: 12px 0 0;
  margin: 12px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.commit-result-summary li {
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
}

.commit-result-actions {
  display: flex;
  gap: 12px;
}

.commit-result-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.commit-result-link:hover {
  background: var(--accent-strong);
}

.commit-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid color-mix(in srgb, var(--status-color, #2563eb) 20%, transparent);
  border-top-color: var(--status-color, #2563eb);
  border-radius: 50%;
  animation: commit-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes commit-spin {
  to { transform: rotate(360deg); }
}
