:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --accent: #155eef;
  --accent-2: #0f766e;
  --accent-soft: #eef4ff;
  --warn: #b54708;
  --danger: #b42318;
  --shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
  --shadow-soft: 0 6px 18px rgba(16, 24, 40, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

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

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

* {
  scrollbar-color: rgba(145, 176, 221, 0.42) rgba(5, 10, 22, 0.5);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: rgba(5, 10, 22, 0.5);
}

*::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(145, 176, 221, 0.42);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: #101828;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.18);
}

.brand h1,
.topbar h2 {
  margin: 0;
  line-height: 1.12;
}

.eyebrow,
.card-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar .eyebrow {
  color: #667085;
}

.panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.panel.compact {
  color: var(--muted);
}

.panel-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 800;
}

.panel p {
  margin: 0;
  line-height: 1.6;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-weight: 800;
}

label {
  display: grid;
  gap: 7px;
  margin-top: 13px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 11px 12px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

textarea.email-draft {
  width: 100%;
  min-height: 310px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  line-height: 1.6;
  padding: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.12);
}

.primary-button,
.ghost-button,
.preview-hero button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  width: 100%;
  margin-top: 16px;
  padding: 13px 16px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 94, 239, 0.2);
}

.primary-button.small {
  width: auto;
  margin-top: 0;
  padding: 9px 12px;
}

.ghost-button {
  border: 1px solid var(--line);
  padding: 7px 10px;
  background: #fff;
  color: var(--ink);
}

.full-button {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
}

.reset-button {
  width: 100%;
  margin-top: 14px;
}

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

.state-actions .ghost-button,
.import-button {
  width: 100%;
  text-align: center;
}

.import-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  padding: 7px 10px;
}

.import-button input {
  display: none;
}

.workspace {
  padding: 22px;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.topbar h2 {
  max-width: 980px;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-2);
  font-weight: 800;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.12);
}

.status-pill.live-ai {
  border-color: rgba(21, 94, 239, 0.24);
  color: var(--accent);
  background: #f4f7ff;
}

.status-pill.live-ai .pulse {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(21, 94, 239, 0.12);
}

.status-pill.offline-ai {
  color: var(--warn);
  background: #fffbeb;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metrics article,
.output-card,
.website-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.metrics article {
  padding: 16px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.metrics article:hover,
.output-card:hover,
.website-preview:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.metrics span {
  display: block;
  color: var(--accent);
  font-size: 26px;
  font-weight: 850;
}

.metrics p {
  margin: 4px 0 0;
  color: var(--muted);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 800;
}

.tab.active {
  border-color: var(--accent);
  background: #eef4ff;
  color: var(--accent);
  box-shadow: 0 8px 20px rgba(15, 143, 136, 0.12);
}

.tab-page {
  display: none;
}

.tab-page.active {
  display: block;
}

.preview-grid,
.two-column,
.dashboard-grid,
.agent-grid,
.inbox-layout,
.knowledge-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
}

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

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

.website-preview,
.output-card {
  min-width: 0;
  padding: 18px;
}

.preview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  align-items: stretch;
  min-height: 310px;
  padding: 24px;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(8, 28, 45, 0.94), rgba(12, 99, 112, 0.84), rgba(31, 70, 148, 0.74)),
    url("https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1100&q=80");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.preview-hero .eyebrow {
  color: #91e6df;
}

.preview-hero h3 {
  max-width: 720px;
  margin: 18px 0 12px;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.02;
}

.preview-hero p {
  max-width: 620px;
  color: #d7eef2;
  line-height: 1.6;
}

.preview-hero button {
  margin-top: 18px;
  padding: 12px 16px;
  background: #fff;
  color: #123047;
}

.product-visual {
  position: relative;
  display: grid;
  min-height: 240px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.bottle {
  width: 82px;
  height: 205px;
  border-radius: 32px 32px 22px 22px;
  background: linear-gradient(90deg, #dfe8ee, #ffffff 30%, #9baebd 62%, #eff5f7);
  box-shadow: inset -12px 0 18px rgba(0, 0, 0, 0.12), 0 18px 35px rgba(0, 0, 0, 0.22);
}

.bottle::before {
  content: "";
  position: absolute;
  top: 26px;
  left: calc(50% - 24px);
  width: 48px;
  height: 30px;
  border-radius: 8px 8px 3px 3px;
  background: #cfdbe4;
}

.shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.28), transparent 54%);
  transform: translateX(-30%);
}

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

.feature-pill,
.rfq-item,
.score-item,
.asset-item,
.quote-item,
.guardrail-item,
.deliverable-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, var(--surface-2));
  padding: 12px;
}

.feature-pill strong,
.rfq-item strong,
.score-item strong,
.asset-item strong,
.quote-item strong,
.guardrail-item strong,
.deliverable-item strong {
  display: block;
  margin-bottom: 5px;
}

.agent-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f1f6fb);
}

.agent-step span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: #153b5a;
  color: #fff;
  font-weight: 850;
}

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

.agent-step p,
.guardrail-item span {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.output-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.output-card p {
  color: var(--muted);
  line-height: 1.6;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  border-radius: 999px;
  background: #fff4e5;
  color: #8a4b00;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 850;
}

.status-badge.approved {
  background: #e4f4f2;
  color: var(--accent);
}

.faq-list,
.asset-list,
.chat-list,
.file-list,
.rfq-table,
.quote-plan,
.score-list,
.agent-flow,
.guardrail-list,
.deliverable-list,
.pipeline-list,
.knowledge-list,
.approval-queue,
.approval-history,
.approval-center-list,
.customer-list,
.task-list,
.inquiry-list,
.rfq-editor,
.agent-run-list,
.quote-editor,
.kb-list,
.kb-editor {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.file-manager {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
}

.checkbox-field input {
  width: auto;
}

.file-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px 120px 120px auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  padding: 12px;
}

.file-row strong,
.file-row span {
  display: block;
}

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

.quote-sheet-preview {
  margin-top: 14px;
  overflow: auto;
}

.quote-sheet {
  min-width: 860px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.quote-sheet-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f2d3d, #0f8f88 58%, #2457d6);
  color: #fff;
  padding: 20px;
}

.quote-sheet-hero p,
.quote-sheet-hero h2 {
  margin: 0;
}

.quote-sheet-hero p {
  color: #aeece6;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-sheet-hero h2 {
  margin-top: 8px;
  font-size: 30px;
}

.quote-sheet-hero span {
  display: block;
  margin-top: 8px;
  color: #d7f4f1;
}

.quote-sheet-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.quote-sheet-meta div,
.quote-sheet-total {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
  padding: 12px;
}

.quote-sheet-meta span,
.quote-sheet-total span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.quote-sheet-table {
  width: 100%;
  border-collapse: collapse;
}

.quote-sheet-table th,
.quote-sheet-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

.quote-sheet-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.quote-sheet-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.quote-sheet-total strong {
  color: var(--accent-2);
  font-size: 28px;
}

.quote-sheet footer {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.approval-center-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 140px 100px 120px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  padding: 14px;
}

.task-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 100px auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  padding: 14px;
}

.task-row strong,
.task-row span {
  display: block;
}

.task-row span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.approval-center-row strong,
.approval-center-row span {
  display: block;
}

.approval-center-row span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.customer-profile {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.ai-status-panel {
  margin-top: 14px;
}

.ai-status-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid rgba(21, 94, 239, 0.18);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.ai-status-card.openai-ready {
  border-color: rgba(21, 94, 239, 0.32);
  background: #f7f9ff;
}

.ai-status-card div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
}

.ai-status-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.ai-status-card strong {
  display: block;
  margin-top: 6px;
}

.ai-status-card p {
  grid-column: 1 / -1;
  margin: 0;
}

.customer-card,
.customer-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  padding: 12px;
}

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

.customer-card strong,
.customer-row strong {
  display: block;
  margin-top: 4px;
}

.quote-table {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}

.quote-head,
.quote-row {
  display: grid;
  grid-template-columns: 130px minmax(190px, 1fr) 90px 90px 90px 90px 110px;
  gap: 8px;
  align-items: center;
  min-width: 880px;
}

.quote-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  padding: 0 8px;
}

.quote-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px;
}

.quote-row input {
  border-color: var(--line);
  background: #fff;
  padding: 9px 10px;
}

.quote-row > span {
  color: var(--accent-2);
  font-weight: 850;
}

.quote-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.quote-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.quote-summary span,
.quote-summary strong {
  display: block;
}

.quote-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.quote-summary strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 22px;
}

.agent-run-list {
  grid-template-columns: repeat(5, minmax(180px, 1fr));
}

.agent-run {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.agent-run.waiting {
  border-color: #f2c46d;
  background: #fffaf0;
}

.agent-run.blocked {
  border-color: #f0a5a0;
  background: #fff5f5;
}

.agent-run-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.agent-run-top strong,
.agent-run-top small {
  display: block;
}

.agent-run-top small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.agent-run-top span {
  min-width: max-content;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  padding: 5px 8px;
}

.agent-run.waiting .agent-run-top span {
  background: #fff4df;
  color: #8a4b00;
}

.agent-run.blocked .agent-run-top span {
  background: #ffe7e5;
  color: var(--danger);
}

.agent-run dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.agent-run dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.agent-run dd {
  margin: 2px 0 0;
  line-height: 1.45;
}

.inquiry-list {
  max-height: 590px;
  overflow: auto;
  padding-right: 4px;
}

.inquiry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 13px;
  text-align: left;
}

.kb-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 13px;
  text-align: left;
}

.kb-row.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.kb-row strong,
.kb-row small,
.kb-row em {
  display: block;
}

.kb-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.kb-row em {
  border-radius: 999px;
  background: #fff4df;
  color: #8a4b00;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  padding: 5px 8px;
}

.kb-row em.verified {
  background: var(--accent-soft);
  color: var(--accent);
}

.kb-row em.missing {
  background: #ffe7e5;
  color: var(--danger);
}

.kb-row p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.kb-editor textarea {
  min-height: 180px;
  border-color: rgba(149, 176, 217, 0.24);
  background: rgba(5, 10, 22, 0.72);
  color: #f7fbff;
}

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

.inquiry-row.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.inquiry-row strong,
.inquiry-row small,
.inquiry-row em {
  display: block;
}

.inquiry-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.inquiry-row em {
  border-radius: 999px;
  background: #eef3f8;
  color: var(--accent-2);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  padding: 5px 8px;
}

.inquiry-row p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.editor-field {
  margin: 0;
  color: var(--ink);
}

.editor-field input {
  border-color: rgba(149, 176, 217, 0.24);
  background: rgba(5, 10, 22, 0.72);
  color: #f7fbff;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.deliverable-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pipeline-list {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
}

.pipeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.pipeline-item > span {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border: 2px solid #9aa8b7;
  border-radius: 999px;
  background: #fff;
}

.pipeline-item.done > span {
  border-color: var(--accent);
  background: var(--accent);
}

.pipeline-item.active {
  border-color: #9fc6ff;
  background: #eef6ff;
}

.pipeline-item.active > span {
  border-color: var(--accent-2);
  background: var(--accent-2);
}

.pipeline-item strong,
.knowledge-item strong,
.approval-item strong {
  display: block;
  margin-bottom: 4px;
}

.pipeline-item small {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--accent-2);
  font-weight: 800;
}

.pipeline-item p,
.knowledge-item p,
.approval-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.knowledge-item,
.approval-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.approval-history {
  margin-top: 14px;
}

.history-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px 12px;
}

.history-item strong,
.history-item span {
  display: block;
}

.history-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.knowledge-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
}

.knowledge-item p {
  grid-column: 1 / -1;
}

.knowledge-item span {
  color: #8a4b00;
  font-size: 12px;
  font-weight: 850;
}

.knowledge-item.ready span {
  color: var(--accent);
}

.approval-item button {
  margin-top: 12px;
}

.ghost-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  padding: 9px 12px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.faq-item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

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

.chat-message {
  max-width: 88%;
  padding: 12px;
  border-radius: 8px;
  line-height: 1.5;
}

.chat-message.user {
  justify-self: start;
  background: #edf2f7;
}

.chat-message.agent {
  justify-self: end;
  background: var(--accent-soft);
  color: #0f4c4a;
}

.risk {
  color: var(--danger);
}

.warn {
  color: var(--warn);
}

.action-list {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.action-list li {
  padding-left: 6px;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 820px) {
  .workspace,
  .sidebar {
    padding: 16px;
  }

  .topbar,
  .preview-hero {
    grid-template-columns: 1fr;
  }

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

  .metrics,
  .preview-grid,
  .two-column,
  .dashboard-grid,
  .agent-grid,
  .inbox-layout,
  .knowledge-layout,
  .feature-row,
  .deliverable-list,
  .pipeline-list,
  .rfq-editor,
  .agent-run-list,
  .quote-summary {
    grid-template-columns: 1fr;
  }

  .file-manager,
  .file-row,
  .approval-center-row,
  .task-row,
  .customer-profile {
    grid-template-columns: 1fr;
  }

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

  .ai-status-card {
    grid-template-columns: 1fr;
  }

  .product-visual {
    min-height: 220px;
  }
}


.agent-cockpit {
  margin: 0 0 16px;
  border: 1px solid rgba(21, 94, 239, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.agent-cockpit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.agent-cockpit-header h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.agent-cockpit-actions {
  display: flex;
  gap: 10px;
  min-width: max-content;
}

.agent-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.agent-stats div,
.agent-decision-panel div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.agent-stats span,
.agent-stats strong,
.agent-decision-panel span,
.agent-decision-panel strong {
  display: block;
}

.agent-stats span {
  color: var(--accent);
  font-size: 25px;
  font-weight: 850;
}

.agent-stats strong,
.agent-decision-panel span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.agent-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 14px;
}

.auto-run-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.auto-run-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 11px 12px;
}

.auto-run-summary div.done {
  border-color: rgba(15, 118, 110, 0.28);
  background: #f3fbf9;
}

.auto-run-summary div.waiting {
  border-color: #f2c46d;
  background: #fffaf0;
}

.auto-run-summary span,
.auto-run-summary strong {
  display: block;
}

.auto-run-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.auto-run-summary strong {
  margin-top: 5px;
  line-height: 1.42;
}

.agent-timeline,
.agent-decision-panel {
  display: grid;
  gap: 10px;
}

.agent-node {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.agent-node.done {
  border-color: rgba(15, 118, 110, 0.28);
  background: #f3fbf9;
}

.agent-node.waiting {
  border-color: #f2c46d;
  background: #fffaf0;
}

.agent-node.blocked {
  border-color: #f0a5a0;
  background: #fff5f5;
}

.agent-node-index {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #101828;
  color: #fff;
  font-weight: 850;
}

.agent-node-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.agent-node-title span {
  min-width: max-content;
  border-radius: 999px;
  background: #eef3f8;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 850;
  padding: 5px 8px;
}

.agent-node p,
.agent-node small,
.agent-decision-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.agent-node small {
  display: block;
  color: #7a4a08;
}

.agent-decision-panel strong {
  margin-top: 6px;
  color: var(--ink);
  font-size: 18px;
}

@media (max-width: 820px) {
  .agent-cockpit-header,
  .agent-cockpit-actions {
    flex-direction: column;
  }

  .agent-stats,
  .auto-run-summary,
  .agent-main-grid {
    grid-template-columns: 1fr;
  }
}

/* Executive demo redesign */
:root {
  color-scheme: dark;
  --bg: #070b17;
  --surface: rgba(12, 18, 34, 0.86);
  --surface-2: rgba(17, 25, 45, 0.9);
  --ink: #f7fbff;
  --muted: #9fb1c7;
  --line: rgba(167, 189, 222, 0.18);
  --accent: #58a6ff;
  --accent-2: #22c7a9;
  --accent-3: #f2b84b;
  --accent-4: #b792ff;
  --accent-soft: rgba(88, 166, 255, 0.15);
  --warn: #f2b84b;
  --danger: #ff6b73;
  --shadow: 0 22px 65px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.24);
}

body {
  background:
    linear-gradient(120deg, rgba(18, 31, 60, 0.96), rgba(7, 11, 23, 0.96) 42%, rgba(10, 26, 32, 0.95)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 64px),
    #070b17;
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.16), transparent 28%),
    linear-gradient(315deg, rgba(34, 199, 169, 0.12), transparent 36%);
}

.app-shell {
  grid-template-columns: 348px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  border-right: 1px solid rgba(145, 176, 221, 0.22);
  background:
    linear-gradient(180deg, rgba(12, 18, 34, 0.96), rgba(7, 13, 28, 0.9)),
    #080d1a;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.24);
  color: var(--ink);
}

.brand {
  padding: 6px 4px 4px;
}

.brand-mark {
  background: linear-gradient(135deg, #58a6ff, #22c7a9 58%, #f2b84b);
  color: #06101e;
  box-shadow: 0 18px 42px rgba(88, 166, 255, 0.28);
}

.brand h1 {
  font-size: 32px;
}

.eyebrow,
.card-kicker {
  color: #8fb4ff;
  letter-spacing: 0;
}

.sidebar .eyebrow {
  color: #92a8c7;
}

.panel,
.output-card,
.website-preview,
.agent-cockpit,
.metrics article,
.tabs {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(19, 29, 52, 0.88), rgba(10, 16, 31, 0.84)),
    rgba(12, 18, 34, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.panel {
  padding: 14px;
}

.sidebar .panel:first-of-type {
  border-color: rgba(88, 166, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(22, 34, 62, 0.92), rgba(9, 16, 31, 0.9)),
    rgba(12, 18, 34, 0.86);
}

.sidebar .panel:first-of-type::before {
  content: "COMMAND INPUT";
  display: block;
  margin-bottom: 10px;
  color: #8fb4ff;
  font-size: 11px;
  font-weight: 900;
}

.panel-heading,
.panel-title,
.output-card h3,
.agent-cockpit-header h3,
.topbar h2,
.card-header h3 {
  color: #f8fbff;
}

.panel p,
.output-card p,
.agent-node p,
.agent-node small,
.agent-decision-panel p,
.pipeline-item p,
.knowledge-item p,
.approval-item p {
  color: var(--muted);
}

.panel.compact:last-child > p:not(.panel-title) {
  display: none;
}

label,
.editor-field,
.checkbox-field {
  color: #d5e4f7;
}

.sidebar label {
  gap: 6px;
  margin-top: 11px;
  font-size: 12px;
}

.login-status {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(34, 199, 169, 0.28);
  border-radius: 8px;
  background: rgba(8, 38, 43, 0.5);
}

.login-status span,
.login-status small {
  color: var(--muted);
}

.login-status span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-status strong {
  color: #f7fbff;
  font-size: 16px;
}

.login-status.error {
  border-color: rgba(255, 107, 115, 0.38);
  background: rgba(51, 16, 23, 0.58);
}

.login-status.error strong {
  color: #ffb4b9;
}

.login-status.warning {
  border-color: rgba(255, 190, 92, 0.42);
  background: rgba(51, 35, 12, 0.58);
}

.login-status.warning strong {
  color: #ffd083;
}

input,
select,
textarea,
.quote-row input,
.kb-editor textarea {
  border-color: rgba(149, 176, 217, 0.24);
  background: rgba(5, 10, 22, 0.72);
  color: #f7fbff;
}

.sidebar textarea {
  min-height: 82px;
}

input::placeholder,
textarea::placeholder {
  color: #7f93ad;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(88, 166, 255, 0.92);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.18);
}

.primary-button {
  background: linear-gradient(135deg, #58a6ff, #22c7a9);
  color: #06101e;
  box-shadow: 0 18px 34px rgba(34, 199, 169, 0.24);
}

.primary-button:hover,
.ghost-button:hover,
.ghost-action:hover {
  transform: translateY(-1px);
}

.ghost-button,
.ghost-action,
.import-button {
  border-color: rgba(151, 180, 224, 0.26);
  background: rgba(255, 255, 255, 0.07);
  color: #eaf3ff;
}

.workspace {
  padding: 22px 26px 30px;
}

.topbar {
  position: relative;
  min-height: 206px;
  overflow: hidden;
  align-items: flex-start;
  padding: 26px 28px;
  border-color: rgba(146, 184, 255, 0.28);
  background:
    linear-gradient(100deg, rgba(6, 12, 28, 0.96), rgba(8, 25, 42, 0.72) 58%, rgba(6, 12, 28, 0.62)),
    url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 58px);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.9), transparent 78%);
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.topbar h2 {
  max-width: 880px;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1.16;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  height: 30px;
  border: 1px solid rgba(169, 202, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dceaff;
  font-size: 12px;
  font-weight: 850;
  padding: 0 10px;
}

.status-pill {
  border-color: rgba(118, 236, 218, 0.34);
  background: rgba(4, 19, 28, 0.76);
  color: #9ef3e1;
  box-shadow: 0 0 0 1px rgba(34, 199, 169, 0.08);
}

.pulse {
  background: #22c7a9;
  box-shadow: 0 0 0 6px rgba(34, 199, 169, 0.16), 0 0 22px rgba(34, 199, 169, 0.88);
}

.status-pill.live-ai {
  border-color: rgba(88, 166, 255, 0.42);
  background: rgba(8, 22, 42, 0.78);
  color: #b9d8ff;
}

.status-pill.offline-ai {
  color: #ffd88a;
  background: rgba(42, 29, 8, 0.76);
}

.metrics {
  position: relative;
  z-index: 2;
  margin-top: -54px;
  padding: 0 16px;
}

.metrics article {
  min-height: 112px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(28, 40, 70, 0.9), rgba(10, 16, 31, 0.9)),
    rgba(12, 18, 34, 0.86);
}

.metrics article:nth-child(2) span {
  color: var(--accent-2);
}

.metrics article:nth-child(3) span {
  color: var(--accent-3);
}

.metrics article:nth-child(4) span {
  color: var(--accent-4);
}

.metrics span {
  color: var(--accent);
  font-size: 32px;
}

.metrics p {
  color: #b6c6dc;
}

.tabs {
  position: sticky;
  top: 12px;
  z-index: 5;
  justify-content: center;
  gap: 6px;
  margin: 18px 0;
  padding: 8px;
}

.tab {
  border-color: transparent;
  background: transparent;
  color: #9fb1c7;
  padding: 9px 12px;
}

.tab.active {
  border-color: rgba(88, 166, 255, 0.42);
  background: rgba(88, 166, 255, 0.16);
  color: #f8fbff;
  box-shadow: 0 12px 26px rgba(88, 166, 255, 0.14);
}

.agent-cockpit {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: 18px;
  border-color: rgba(118, 236, 218, 0.24);
  background:
    linear-gradient(135deg, rgba(13, 28, 50, 0.94), rgba(10, 18, 34, 0.92) 48%, rgba(9, 37, 42, 0.84)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 72px);
  box-shadow: var(--shadow);
}

.agent-cockpit::before {
  content: "AUTO RUN";
  position: absolute;
  right: 18px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.035);
  font-size: 76px;
  font-weight: 900;
  line-height: 1;
}

.agent-cockpit > * {
  position: relative;
  z-index: 1;
}

.agent-cockpit-header {
  align-items: center;
}

.agent-cockpit-header h3 {
  font-size: 28px;
}

.agent-stats div,
.agent-decision-panel div,
.auto-run-summary div,
.agent-node {
  border-color: rgba(154, 188, 235, 0.2);
  background: rgba(5, 11, 24, 0.56);
}

.agent-stats span {
  color: #8fc5ff;
  font-size: 31px;
}

.agent-stats div:nth-child(2) span,
.agent-node.done .agent-node-title span {
  color: #8ff2df;
}

.agent-stats div:nth-child(3) span,
.agent-node.waiting .agent-node-title span {
  color: #ffd88a;
}

.agent-stats div:nth-child(4) span {
  color: #cbb8ff;
}

.automation-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 14px;
  margin-bottom: 14px;
}

.automation-flow {
  --progress: 12%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(154, 188, 235, 0.18);
  border-radius: 8px;
  background: rgba(5, 11, 24, 0.44);
  padding: 14px;
}

.automation-flow::before,
.automation-flow::after {
  content: "";
  position: absolute;
  top: 32px;
  left: 28px;
  right: 28px;
  height: 2px;
  border-radius: 999px;
}

.automation-flow::before {
  background: rgba(154, 188, 235, 0.16);
}

.automation-flow::after {
  width: calc(var(--progress) - 36px);
  max-width: calc(100% - 56px);
  background: linear-gradient(90deg, #58a6ff, #22c7a9, #f2b84b);
  box-shadow: 0 0 24px rgba(34, 199, 169, 0.4);
  transition: width 420ms ease;
}

.flow-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 38px auto auto;
  min-height: 118px;
  border: 1px solid rgba(154, 188, 235, 0.16);
  border-radius: 8px;
  background: rgba(8, 15, 30, 0.72);
  padding: 10px;
}

.flow-step span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(154, 188, 235, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #b7c8df;
  font-size: 12px;
  font-weight: 900;
}

.flow-step strong,
.flow-step small {
  display: block;
}

.flow-step strong {
  align-self: end;
  color: #edf6ff;
  font-size: 14px;
}

.flow-step small {
  margin-top: 5px;
  color: #8fa2bc;
  font-size: 11px;
  font-weight: 800;
}

.flow-step.done {
  border-color: rgba(34, 199, 169, 0.34);
  background: rgba(8, 44, 43, 0.68);
}

.flow-step.done span {
  background: linear-gradient(135deg, #22c7a9, #8ff2df);
  color: #041411;
}

.flow-step.running {
  border-color: rgba(88, 166, 255, 0.62);
  background: rgba(16, 43, 82, 0.82);
  box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.18), 0 18px 36px rgba(88, 166, 255, 0.12);
}

.flow-step.running span {
  background: linear-gradient(135deg, #58a6ff, #22c7a9);
  color: #041221;
  box-shadow: 0 0 22px rgba(88, 166, 255, 0.55);
}

.flow-step.running span::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(88, 166, 255, 0.5);
  border-radius: 10px;
  animation: flowPulse 1.2s ease-out infinite;
}

.flow-step.waiting {
  border-color: rgba(242, 184, 75, 0.46);
  background: rgba(47, 34, 13, 0.7);
}

.flow-step.waiting span {
  background: linear-gradient(135deg, #f2b84b, #ffe0a3);
  color: #1e1300;
}

.flow-step.pending {
  opacity: 0.62;
}

.automation-live-card {
  border: 1px solid rgba(154, 188, 235, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(21, 34, 61, 0.82), rgba(7, 13, 28, 0.82)),
    rgba(8, 15, 30, 0.74);
  padding: 16px;
}

.automation-live-card span,
.automation-live-card strong,
.automation-live-card p {
  display: block;
}

.automation-live-card span {
  color: #8fb4ff;
  font-size: 12px;
  font-weight: 900;
}

.automation-live-card strong {
  margin-top: 8px;
  color: #f8fbff;
  font-size: 20px;
  line-height: 1.26;
}

.automation-live-card p {
  margin: 10px 0 0;
  color: #b9c8dc;
  line-height: 1.55;
}

.automation-live-card.running {
  border-color: rgba(88, 166, 255, 0.52);
  box-shadow: inset 0 0 32px rgba(88, 166, 255, 0.08);
}

.automation-live-card.waiting {
  border-color: rgba(242, 184, 75, 0.46);
  box-shadow: inset 0 0 32px rgba(242, 184, 75, 0.08);
}

@keyframes flowPulse {
  from {
    opacity: 0.9;
    transform: scale(0.82);
  }
  to {
    opacity: 0;
    transform: scale(1.24);
  }
}

.auto-run-summary div.done {
  border-color: rgba(34, 199, 169, 0.34);
  background: rgba(9, 47, 45, 0.56);
}

.auto-run-summary div.waiting {
  border-color: rgba(242, 184, 75, 0.42);
  background: rgba(49, 34, 12, 0.62);
}

.auto-run-summary span,
.agent-stats strong,
.agent-decision-panel span,
.agent-run dt,
.quote-summary span,
.quote-sheet-meta span,
.quote-sheet-total span,
.customer-card span,
.customer-row span,
.approval-center-row span,
.task-row span {
  color: #9fb1c7;
}

.agent-node-index,
.agent-step span {
  background: linear-gradient(135deg, #58a6ff, #22c7a9);
  color: #06101e;
}

.agent-node.done {
  border-color: rgba(34, 199, 169, 0.34);
  background: rgba(11, 45, 44, 0.54);
}

.agent-node.waiting {
  border-color: rgba(242, 184, 75, 0.38);
  background: rgba(47, 34, 13, 0.58);
}

.agent-node.blocked {
  border-color: rgba(255, 107, 115, 0.38);
  background: rgba(51, 16, 23, 0.58);
}

.agent-node-title span,
.agent-run-top span,
.status-badge {
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.15);
  color: #b9d8ff;
}

.status-badge.approved {
  background: rgba(34, 199, 169, 0.16);
  color: #8ff2df;
}

.preview-grid,
.two-column,
.dashboard-grid,
.agent-grid,
.inbox-layout,
.knowledge-layout {
  gap: 18px;
}

.feature-pill,
.rfq-item,
.score-item,
.asset-item,
.quote-item,
.guardrail-item,
.deliverable-item,
.agent-step,
.file-row,
.approval-center-row,
.task-row,
.customer-card,
.customer-row,
.quote-summary div,
.history-item,
.knowledge-item,
.approval-item,
.pipeline-item,
.kb-row,
.inquiry-row,
.agent-run,
.ai-status-card div {
  border-color: rgba(154, 188, 235, 0.18);
  background: rgba(8, 15, 30, 0.62);
}

.inquiry-row.active,
.kb-row.active,
.pipeline-item.active {
  border-color: rgba(88, 166, 255, 0.5);
  background: rgba(88, 166, 255, 0.16);
}

.website-preview,
.output-card {
  padding: 18px;
}

.preview-hero {
  min-height: 350px;
  background:
    linear-gradient(115deg, rgba(5, 12, 28, 0.94), rgba(12, 49, 60, 0.72), rgba(43, 25, 82, 0.64)),
    url("https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1400&q=80");
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.preview-hero h3 {
  font-size: 42px;
  letter-spacing: 0;
}

.product-visual {
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(88, 166, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
}

.quote-sheet {
  background: #ffffff;
  color: #101828;
}

.quote-sheet * {
  color: inherit;
}

.quote-sheet footer,
.quote-sheet-meta span,
.quote-sheet-total span,
.quote-sheet-table th {
  color: #667085;
}

textarea.email-draft {
  background: rgba(5, 10, 22, 0.72);
  color: #f7fbff;
}

@media (max-width: 1100px) {
  .sidebar {
    height: auto;
  }

  .metrics {
    margin-top: 0;
    padding: 0;
  }
}

@media (max-width: 820px) {
  .topbar {
    min-height: 0;
  }

  .topbar h2 {
    font-size: 26px;
  }

  .preview-hero h3 {
    font-size: 32px;
  }

  .automation-visual,
  .automation-flow {
    grid-template-columns: 1fr;
  }

  .automation-flow::before,
  .automation-flow::after {
    display: none;
  }

  .flow-step {
    min-height: 92px;
  }
}
