body {
  background: #f3f6fb;
  font-family: "Roboto", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

.app-shell {
  width: min(1560px, calc(100vw - 48px));
}

.top-hero {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.brand-mark,
.service-icon,
.flow-step {
  background: #0b5cad;
}

.hero-copy h1 {
  font-size: 32px;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 680px;
}

.tabs {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.tab.is-active {
  color: #ffffff;
  background: #0b5cad;
}

.dashboard-hero.industrial-hero {
  color: #0f1728;
  background: #ffffff;
  border: 1px solid var(--outline);
}

.dashboard-hero.industrial-hero h2 {
  color: #0f1728;
}

.dashboard-hero.industrial-hero p,
.dashboard-hero.industrial-hero .eyebrow {
  color: var(--muted);
}

.card,
.metric,
.service-card,
.flow-card {
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.industrial-ai-layout {
  grid-template-columns: minmax(360px, 0.8fr) minmax(720px, 1.4fr);
}

.model-card {
  margin-top: 0;
}

.pro-knowledge-card {
  margin-top: 0;
}

.knowledge-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.knowledge-toolbar h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.knowledge-toolbar p {
  margin: 0;
  color: var(--muted);
}

.knowledge-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.knowledge-import {
  grid-template-columns: minmax(220px, 1fr) 150px minmax(220px, 1fr) auto;
  padding: 14px;
  border: 1px solid var(--outline);
  border-radius: 24px;
  background: var(--surface-low);
}

.knowledge-editor {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) 160px 140px auto;
  gap: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #b7c7df;
  border-radius: 24px;
  background: #f8fbff;
}

.knowledge-editor textarea {
  grid-column: 1 / -1;
  min-height: 160px;
  padding: 14px 16px;
  border: 1px solid var(--outline);
  border-radius: 18px;
  resize: vertical;
  font: inherit;
}

.editor-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.knowledge-table {
  overflow: hidden;
  border: 1px solid var(--outline);
  border-radius: 24px;
}

.knowledge-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) 120px 100px 100px 120px 180px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--outline);
}

.knowledge-row:last-child {
  border-bottom: 0;
}

.knowledge-head {
  min-height: 48px;
  color: var(--muted);
  background: #eef3f9;
  font-weight: 800;
}

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

.knowledge-row small {
  margin-top: 4px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #0b5cad;
  background: #e2ecff;
  font-style: normal;
  font-weight: 800;
}

.status-pill.neutral {
  color: #596579;
  background: #edf2f8;
}

.toggle {
  display: inline-grid;
  place-items: center;
}

.toggle input {
  position: absolute;
  opacity: 0;
}

.toggle i {
  width: 42px;
  height: 24px;
  padding: 3px;
  border-radius: 999px;
  background: #cbd5e1;
}

.toggle i::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.16s ease;
}

.toggle input:checked + i {
  background: #0b5cad;
}

.toggle input:checked + i::after {
  transform: translateX(18px);
}

.row-actions {
  display: flex;
  gap: 8px;
}

.service-name {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .industrial-ai-layout,
  .knowledge-toolbar {
    grid-template-columns: 1fr;
  }

  .knowledge-import,
  .knowledge-editor,
  .knowledge-row {
    grid-template-columns: 1fr;
  }

  .row-actions,
  .knowledge-stats {
    justify-content: flex-start;
  }
}
