/* ================================================================
   Nova Edge Design System — FDE Foundry Dashboard
   从 ui-template.html 移植，适配 dashboard 布局
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  /* 主色系 — 深海军蓝 */
  --primary-950:  #020912;
  --primary-900:  #050E28;
  --primary-800:  #0A1B3D;
  --primary-700:  #14264A;
  --primary-600:  #243657;

  /* 强调色 — 电光蓝 */
  --accent:       #0A5FEF;
  --accent-600:   #1A6BFF;
  --accent-pale:  #E7EFFD;
  --accent-mist:  #F2F6FD;

  /* 暖金 */
  --gold:         #C8A35B;

  /* 文字色阶 */
  --ink:          #0A1B3D;
  --ink-2:        #46556F;
  --ink-3:        #7C8AA3;

  /* 背景色阶 */
  --paper:        #FBFCFE;
  --mist:         #EEF2F9;
  --line:         #DCE4F0;
  --line-2:       #C9D5E6;

  /* 语义色 */
  --success:      #1A7A4A;
  --warning:      #C8852B;
  --danger:       #C0392B;

  /* 字体 */
  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  --sans:  'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;

  /* 圆角 */
  --r-sm:   6px;
  --r:      12px;
  --r-lg:   16px;
  --r-pill: 100px;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(10,27,61,.06), 0 1px 2px rgba(10,27,61,.04);
  --shadow:    0 8px 30px rgba(10,27,61,.08);
  --shadow-lg: 0 20px 60px rgba(10,27,61,.14);

  /* 旧变量别名，兼容 app.js 动态渲染 */
  --bg:       var(--paper);
  --surface:  #ffffff;
  --surface-2: var(--mist);
  --muted:    var(--ink-3);
  --green:    var(--accent);
  --green-2:  var(--accent-pale);
  --blue:     var(--accent);
  --amber:    var(--warning);
  --red:      var(--danger);
  --radius:   var(--r);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-600); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

/* ── App Shell Layout ── */
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 14px;
  background: var(--primary-900);
  color: #E7EEF9;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  flex-shrink: 0;
}

.brand h1 { font-size: 15px; font-weight: 700; color: #fff; margin: 0; }
.brand p { color: rgba(231,238,249,.5); font-size: 11px; margin-top: 2px; }
.brand-logo-wrap { width: 130px; overflow: hidden; height: 68px; flex-shrink: 0; background:#fff; border-radius:10px; padding:6px 8px; box-sizing:border-box; box-shadow:0 2px 8px rgba(0,0,0,.25); }
.brand-logo { width: 114px; height: auto; display: block; }

.nav-list { display: grid; gap: 3px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: var(--r-sm);
  color: rgba(231,238,249,.68);
  background: transparent;
  text-align: left;
  font-size: 13.5px;
  transition: background .15s, color .15s, border-color .15s;
  --nav-rgb: 96, 165, 250;
  --nav-accent: #60a5fa;
}
.nav-item:hover { color: #fff; background: rgba(var(--nav-rgb),.13); }
.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(var(--nav-rgb),.28), rgba(var(--nav-rgb),.11));
  border-left-color: var(--nav-accent);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--nav-accent);
  background: linear-gradient(135deg, rgba(var(--nav-rgb),.24), rgba(var(--nav-rgb),.08));
  border: 1px solid rgba(var(--nav-rgb),.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  transition: color .15s, background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.nav-item:hover .nav-icon {
  background: linear-gradient(135deg, rgba(var(--nav-rgb),.36), rgba(var(--nav-rgb),.14));
  border-color: rgba(var(--nav-rgb),.5);
  transform: translateY(-1px);
}

.nav-item.active .nav-icon {
  color: #fff;
  background: linear-gradient(135deg, rgba(var(--nav-rgb),.95), rgba(var(--nav-rgb),.58));
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 7px 16px rgba(var(--nav-rgb),.25), inset 0 1px 0 rgba(255,255,255,.2);
}

.nav-item[data-view="overview"] { --nav-rgb: 59, 130, 246; --nav-accent: #60a5fa; }
.nav-item[data-view="aios"] { --nav-rgb: 20, 184, 166; --nav-accent: #2dd4bf; }
.nav-item[data-view="pathway"] { --nav-rgb: 245, 158, 11; --nav-accent: #fbbf24; }
.nav-item[data-view="products"] { --nav-rgb: 16, 185, 129; --nav-accent: #34d399; }
.nav-item[data-view="industries"] { --nav-rgb: 168, 85, 247; --nav-accent: #c084fc; }
.nav-item[data-view="taskboard"] { --nav-rgb: 239, 68, 68; --nav-accent: #f87171; }
.nav-item[data-view="onboarding"] { --nav-rgb: 14, 165, 233; --nav-accent: #38bdf8; }
.nav-item[data-view="templates"] { --nav-rgb: 99, 102, 241; --nav-accent: #818cf8; }
.nav-item[data-view="tools"] { --nav-rgb: 217, 70, 239; --nav-accent: #e879f9; }
.nav-item[data-view="learn"] { --nav-rgb: 244, 114, 182; --nav-accent: #f9a8d4; }
.nav-item[data-view="plans"] { --nav-rgb: 234, 179, 8; --nav-accent: #fde047; }
.nav-item[data-view="crm"] { --nav-rgb: 34, 197, 94; --nav-accent: #4ade80; }
.nav-item[data-view="members"] { --nav-rgb: 6, 182, 212; --nav-accent: #22d3ee; }
.nav-item[data-view="ontology"] { --nav-rgb: 129, 140, 248; --nav-accent: #a5b4fc; }
.nav-item[data-view="diagnostic"] { --nav-rgb: 251, 113, 133; --nav-accent: #fb7185; }

.sidebar-footer { display: grid; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }

/* ── Main Area ── */
.main { min-width: 0; padding: 24px; background: var(--paper); }

/* ── Topbar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 7px;
  background: var(--accent);
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
  flex-shrink: 0;
}

.topbar h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.top-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink-3);
  font-size: 13.5px;
  transition: border-color .15s, box-shadow .15s;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,95,239,.1); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }

/* ── Buttons ── */
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: all .2s cubic-bezier(.2,.7,.3,1);
  border: 1.5px solid transparent;
}
.primary-button {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.primary-button:hover {
  background: var(--accent-600);
  border-color: var(--accent-600);
  box-shadow: 0 6px 20px rgba(10,95,239,.32);
  transform: translateY(-1px);
  color: #fff;
}
.ghost-button {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.ghost-button:hover {
  border-color: var(--primary-800);
  background: var(--primary-800);
  color: #fff;
}
.sidebar .ghost-button {
  border-color: rgba(255,255,255,.22);
  color: rgba(231,238,249,.85);
}
.sidebar .ghost-button:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

/* ── Hero Panel ── */
.hero-panel {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 24px;
  margin-bottom: 22px;
  padding: 28px 32px;
  border-radius: var(--r-lg);
  background: var(--primary-900);
  position: relative;
  overflow: hidden;
}
.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 90% 0, rgba(10,95,239,.3), transparent 60%),
    radial-gradient(500px 500px at 10% 110%, rgba(10,95,239,.12), transparent 55%);
  pointer-events: none;
}
.hero-panel::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 38%; height: 100%;
  background: repeating-linear-gradient(105deg, rgba(255,255,255,.02) 0 2px, transparent 2px 26px);
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 1; }

.status-pill {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: rgba(10,95,239,.2);
  border: 1px solid rgba(10,95,239,.35);
  color: #8FB6FF;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
}

.hero-copy h3 {
  font-family: var(--serif);
  font-size: clamp(18px,2.2vw,26px);
  line-height: 1.35;
  color: #fff;
  max-width: 760px;
  margin: 0;
}
.hero-copy p:last-child {
  color: rgba(231,238,249,.62);
  font-size: 13.5px;
  line-height: 1.75;
  max-width: 680px;
  margin-top: 14px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  align-self: end;
  position: relative;
  z-index: 1;
}
.hero-metrics div {
  padding: 14px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r);
  background: rgba(255,255,255,.06);
}
.hero-metrics strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero-metrics span { display: block; color: rgba(231,238,249,.5); font-size: 12px; margin-top: 6px; }

/* ── Content Grid ── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(12,1fr);
  gap: 16px;
}

/* ── Cards ── */
.card {
  min-height: 120px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }

.card.span-3  { grid-column: span 3; }
.card.span-4  { grid-column: span 4; }
.card.span-5  { grid-column: span 5; }
.card.span-6  { grid-column: span 6; }
.card.span-7  { grid-column: span 7; }
.card.span-8  { grid-column: span 8; }
.card.span-12 { grid-column: span 12; }

.card h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px; margin-top: 0; }
.card p { color: var(--ink-2); line-height: 1.7; font-size: 13.5px; }

.card-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ── Lists ── */
.list { display: grid; gap: 0; margin: 14px 0 0; padding: 0; list-style: none; }
.list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.list li span:last-child { color: var(--ink-3); text-align: right; flex-shrink: 0; }

/* ── Tags & Badges ── */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--mist);
  color: var(--ink-2);
  font-size: 12px;
  border: 1px solid var(--line);
}

.badge, .status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: var(--r-pill);
}

.badge {
  padding: 4px 10px;
  background: var(--accent-pale);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
}
.badge.success { background: #E6F6EC; color: var(--success); }
.badge.warning { background: rgba(200,133,43,.12); color: var(--warning); }
.badge.muted   { background: var(--mist); color: var(--ink-3); }

/* ── Pipeline ── */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
  margin-top: 14px;
}
.pipeline-step {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--mist);
  transition: border-color .15s;
}
.pipeline-step:hover { border-color: var(--accent-pale); background: var(--accent-mist); }
.pipeline-step strong { display: block; margin-bottom: 6px; font-size: 13px; color: var(--ink); }
.pipeline-step span { color: var(--ink-3); font-size: 12.5px; line-height: 1.5; }

/* ── Table ── */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table th, .table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}
.table th {
  background: var(--mist);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: .03em;
}
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 600; color: var(--ink); background: rgba(238,242,249,.4); }

/* ── Progress Bar ── */
.progress-bar {
  height: 7px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--mist);
}
.progress-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: var(--r-pill);
  transition: width .4s ease;
}

/* ── Debug Panel ── */
.debug-panel {
  position: fixed;
  top: 18px; right: 18px;
  z-index: 20;
  display: none;
  width: min(380px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.debug-panel.open { display: block; }

.debug-header, .modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.debug-header h3, .debug-header h4 { font-size: 15px; font-weight: 700; margin: 0; }
.debug-header button, .modal-header button {
  width: 32px; height: 32px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink-3);
  font-size: 16px;
  display: grid;
  place-items: center;
}
.debug-header button:hover, .modal-header button:hover { background: var(--mist); color: var(--ink); }

.debug-section { display: grid; gap: 12px; margin-top: 14px; }
.debug-section label, .lead-form label {
  display: grid;
  gap: 5px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
}
.debug-section input, .lead-form select {
  min-height: 36px;
  padding: 0 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  background: var(--paper);
  outline: none;
  transition: border-color .15s;
}
.debug-section input:focus, .lead-form select:focus { border-color: var(--accent); }

pre {
  overflow: auto;
  margin: 0;
  padding: 12px;
  border-radius: var(--r);
  background: var(--primary-900);
  color: #8FB6FF;
  font-size: 11.5px;
  line-height: 1.6;
}

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5,14,40,.52);
  backdrop-filter: blur(5px);
}
.modal {
  width: min(600px, 100%);
  padding: 28px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.modal-header h3 { font-family: var(--serif); font-size: 20px; margin: 0; }

.lead-form { display: grid; gap: 14px; margin-top: 20px; }
.lead-form select, .lead-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  background: var(--paper);
  transition: border-color .15s;
  outline: none;
}
.lead-form select:focus, .lead-form textarea:focus { border-color: var(--accent); }
.lead-form textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

.diagnostic-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--r);
  background: var(--accent-mist);
  border: 1px solid var(--line);
  line-height: 1.75;
  font-size: 13.5px;
  color: var(--ink-2);
}
.diagnostic-result:empty { display: none; }

/* ── Dify Test ── */
.dify-test { display: grid; gap: 12px; margin-top: 14px; }
.dify-test label { display: grid; gap: 8px; color: var(--ink-2); font-size: 13px; }
.dify-test textarea {
  width: 100%;
  resize: vertical;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  outline: none;
}
.dify-test textarea:focus { border-color: var(--accent); }

/* ── Tour Popover ── */
.tour-popover {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 24px;
  background: rgba(5,14,40,.42);
  backdrop-filter: blur(4px);
}
.tour-card {
  width: min(500px, 100%);
  padding: 24px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--accent);
}
.tour-card > p { margin: 0 0 6px; color: var(--accent); font-weight: 700; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.tour-card h3 { font-family: var(--serif); font-size: 18px; color: var(--ink); margin: 0; }
.tour-card h3 + p { color: var(--ink-2); line-height: 1.75; font-size: 13.5px; margin-top: 10px; }
.tour-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.hidden { display: none; }


/* ── Responsive ── */
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 68px 1fr; }
  .brand-logo-wrap { width: 46px; height: 26px; padding:3px 4px; border-radius:6px; box-shadow:0 1px 4px rgba(0,0,0,.2); }
  .brand-logo { width: 38px; }
  .nav-item span:last-child, .sidebar-footer { display: none; }
  .nav-item { justify-content: center; padding: 0; }
  .hero-panel { grid-template-columns: 1fr; }
  .card.span-3, .card.span-4, .card.span-5,
  .card.span-6, .card.span-7, .card.span-8 { grid-column: span 6; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar {
    position: sticky; top: 0; z-index: 10; height: auto;
    flex-direction: row; align-items: center;
    overflow-x: auto; padding: 10px; gap: 8px;
  }
  .brand { flex: 0 0 auto; padding-bottom: 0; border-bottom: none; min-height: auto; }
  .nav-list { display: flex; gap: 4px; }
  .nav-item { width: 40px; height: 40px; flex: 0 0 40px; justify-content: center; padding: 0; border-left: none; border-bottom: 3px solid transparent; border-radius: var(--r-sm); }
  .nav-item.active { border-bottom-color: var(--accent); border-left-color: transparent; }
  .main { padding: 16px; }
  .topbar, .top-actions { align-items: stretch; flex-direction: column; }
  .search-box { min-width: 0; }
  .hero-copy h3 { font-size: 18px; }
  .hero-metrics, .pipeline { grid-template-columns: 1fr 1fr; }
  .card, .card.span-3, .card.span-4, .card.span-5,
  .card.span-6, .card.span-7, .card.span-8,
  .card.span-12 { grid-column: span 12; }
}

/* ── Survey iframe view ── */
.survey-active .hero-panel { display: none; }

.survey-frame-card {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 110px);
  min-height: 500px;
}

.survey-frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.survey-iframe {
  flex: 1;
  width: 100%;
  border: none;
  display: block;
  min-height: 0;
}

/* ── Toolkit view ── */
.tk-shell {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 0 !important;
  overflow: hidden;
  min-height: 600px;
}

.tk-sidebar {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: var(--mist);
}
.tk-sidebar-head {
  padding: 20px 16px 14px;
  border-bottom: 1px solid var(--line);
}
.tk-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s;
}
.tk-category:hover { background: var(--line); color: var(--ink); }
.tk-category.active {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  border-left-color: var(--accent);
}
.tk-cat-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--accent-pale);
  color: var(--accent);
}
.tk-cat-count.empty {
  background: var(--mist);
  color: var(--ink-3);
  font-weight: 400;
  font-size: 10px;
}

.tk-detail {
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tk-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.tk-reset-btn { align-self: flex-start; flex-shrink: 0; }

/* Dimensions */
.tk-dims { display: flex; flex-direction: column; gap: 16px; }
.tk-dim {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.tk-dim-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.tk-dim-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.tk-dim-label strong { font-size: 14px; color: var(--ink); display: block; }
.tk-dim-q { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; display: block; }

.tk-scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.tk-score-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 12px 14px;
  border: none;
  border-right: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: background .15s;
}
.tk-score-btn:last-child { border-right: none; }
.tk-score-btn:hover { background: var(--accent-mist); }
.tk-score-btn.active { background: var(--accent-pale); }
.tk-sn {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--mist);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  transition: background .15s, color .15s;
}
.tk-score-btn.active .tk-sn { background: var(--accent); color: #fff; }
.tk-sl { font-size: 13px; font-weight: 600; color: var(--ink); }
.tk-note { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }

/* Result */
.tk-result-area { min-height: 80px; }
.tk-result-hint { font-size: 13px; color: var(--ink-3); padding: 16px 0; }
.tk-result-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r);
  padding: 18px 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tk-result-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tk-result-score { font-size: 13.5px; color: var(--ink-2); }
.tk-result-score strong { font-size: 22px; font-family: var(--serif); color: var(--ink); }
.tk-result-label { font-size: 15px; font-weight: 700; }
.tk-result-action { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.tk-result-product { font-size: 13px; color: var(--ink-3); }
.tk-result-product strong { color: var(--ink); }

/* Flags */
.tk-area-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.tk-area-label span { font-weight: 400; text-transform: none; letter-spacing: 0; }
.tk-flags { display: flex; flex-direction: column; gap: 8px; }
.tk-flag-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s;
}
.tk-flag-item:hover { background: var(--mist); }
.tk-flag-item input[type="checkbox"] { accent-color: var(--danger); width: 15px; height: 15px; flex-shrink: 0; }
.tk-flag-item:has(input:checked) {
  background: #fff0f0;
  border-color: #f5c6c6;
  color: var(--danger);
  text-decoration: line-through;
}

/* Follow-up */
.tk-followup-area { margin-bottom: 8px; }
.tk-quote {
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-mist);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.75;
  font-style: italic;
}

@media (max-width: 900px) {
  .tk-shell { grid-template-columns: 1fr; }
  .tk-sidebar { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .tk-sidebar-head { display: none; }
  .tk-category { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
  .tk-category.active { border-bottom-color: var(--accent); border-left-color: transparent; }
  .tk-scores { grid-template-columns: 1fr; }
  .tk-score-btn { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ── Interview stages ── */
.tk-stages { display: flex; flex-direction: column; gap: 12px; }

.tk-stage {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s;
}
.tk-stage:hover { border-color: var(--line-2); }
.tk-stage-focus { border-color: var(--accent); border-width: 1.5px; }

.tk-stage-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.tk-stage-focus .tk-stage-head { background: var(--accent-mist); border-bottom-color: rgba(10,95,239,.15); }

.tk-stage-meta { display: flex; align-items: center; }
.tk-stage-meta strong { font-size: 14px; color: var(--ink); }

.tk-stage-purpose {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-left: auto;
  text-align: right;
  max-width: 280px;
  line-height: 1.4;
}
.tk-stage-focus .tk-stage-purpose { color: var(--accent); }

.tk-stage-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}
.tk-stage-body > div {
  padding: 14px 16px;
}
.tk-stage-body > div:first-child {
  border-right: 1px solid var(--line);
}

.tk-q-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tk-q-list li {
  font-size: 13px;
  color: var(--ink-2);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.tk-q-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-2);
}
.tk-stage-focus .tk-q-list li::before { background: var(--accent); }

/* Tool link banner */
.tk-tool-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--accent-pale);
  border-top: 1px solid rgba(10,95,239,.2);
  text-decoration: none;
  transition: background .15s;
  cursor: pointer;
}
.tk-tool-link:hover { background: #d4e4fb; }
.tk-tool-icon {
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--accent);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.tk-tool-link > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tk-tool-link strong { font-size: 13.5px; color: var(--accent); }
.tk-tool-link span   { font-size: 12px; color: var(--ink-3); }

@media (max-width: 760px) {
  .tk-stage-body { grid-template-columns: 1fr; }
  .tk-stage-body > div:first-child { border-right: none; border-bottom: 1px solid var(--line); }
  .tk-stage-purpose { margin-left: 0; text-align: left; max-width: none; }
}

/* ── MVO template ── */
.mvo-client-input {
  height: 38px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
  width: 180px;
  transition: border-color .15s;
}
.mvo-client-input:focus { border-color: var(--accent); }

.mvo-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--mist);
  border-radius: var(--r);
  font-size: 13px;
  color: var(--ink-2);
  flex-wrap: wrap;
}
.mvo-sum-sep { color: var(--line-2); }
.mvo-summary strong { font-size: 15px; font-family: var(--serif); }

.mvo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mvo-quadrant {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  border-top: 3px solid var(--q-color, var(--accent));
}

.mvo-q-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.mvo-q-icon {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--q-color, var(--accent));
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}
.mvo-q-head > div { flex: 1; min-width: 0; }
.mvo-q-head strong { display: block; font-size: 13.5px; color: var(--ink); }
.mvo-q-head > div > span { font-size: 11.5px; color: var(--ink-3); }

.mvo-select-all {
  font-size: 11.5px; font-weight: 600;
  padding: 4px 10px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  flex-shrink: 0;
  transition: all .15s;
}
.mvo-select-all:hover { border-color: var(--q-color, var(--accent)); color: var(--q-color, var(--accent)); }

.mvo-items { padding: 6px 0; }

.mvo-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background .12s;
}
.mvo-item:hover { background: var(--mist); }
.mvo-item input[type="checkbox"] {
  margin-top: 3px;
  width: 15px; height: 15px;
  flex-shrink: 0;
  accent-color: var(--q-color, var(--accent));
  cursor: pointer;
}
.mvo-item:has(input:checked) { background: color-mix(in srgb, var(--q-color, var(--accent)) 6%, transparent); }
.mvo-item-name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.mvo-item-note {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.4;
  margin-top: 2px;
}

.mvo-output-wrap {
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.mvo-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.mvo-output {
  width: 100%;
  min-height: 200px;
  padding: 16px;
  border: none;
  background: var(--primary-900);
  color: #8FB6FF;
  font-family: 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.8;
  resize: vertical;
  outline: none;
}

@media (max-width: 900px) {
  .mvo-grid { grid-template-columns: 1fr; }
}

/* ── MVO template ── */
.mvo-client-input {
  height: 38px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
  width: 180px;
  transition: border-color .15s;
}
.mvo-client-input:focus { border-color: var(--accent); }

.mvo-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--mist);
  border-radius: var(--r);
  font-size: 13px;
  color: var(--ink-2);
  flex-wrap: wrap;
}
.mvo-sum-sep { color: var(--line-2); }
.mvo-summary strong { font-size: 15px; font-family: var(--serif); }

.mvo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mvo-quadrant {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  border-top: 3px solid var(--q-color, var(--accent));
}

.mvo-q-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.mvo-q-icon {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--q-color, var(--accent));
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}
.mvo-q-head > div { flex: 1; min-width: 0; }
.mvo-q-head strong { display: block; font-size: 13.5px; color: var(--ink); }
.mvo-q-head > div > span { font-size: 11.5px; color: var(--ink-3); }

.mvo-select-all {
  font-size: 11.5px; font-weight: 600;
  padding: 4px 10px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  flex-shrink: 0;
  transition: all .15s;
}
.mvo-select-all:hover { border-color: var(--q-color, var(--accent)); color: var(--q-color, var(--accent)); }

.mvo-items { padding: 6px 0; }

.mvo-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background .12s;
}
.mvo-item:hover { background: var(--mist); }
.mvo-item input[type="checkbox"] {
  margin-top: 3px;
  width: 15px; height: 15px;
  flex-shrink: 0;
  accent-color: var(--q-color, var(--accent));
  cursor: pointer;
}
.mvo-item:has(input:checked) { background: color-mix(in srgb, var(--q-color, var(--accent)) 6%, transparent); }
.mvo-item-name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.mvo-item-note {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.4;
  margin-top: 2px;
}

.mvo-output-wrap {
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.mvo-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.mvo-output {
  width: 100%;
  min-height: 200px;
  padding: 16px;
  border: none;
  background: var(--primary-900);
  color: #8FB6FF;
  font-family: 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.8;
  resize: vertical;
  outline: none;
}

@media (max-width: 900px) {
  .mvo-grid { grid-template-columns: 1fr; }
}

/* ── POC SOP ── */
.sop-progress-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px;
  background: var(--mist);
  border-radius: var(--r);
}
.sop-prog-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.sop-total-bar { height: 10px; }
.sop-total-bar span { background: var(--accent); transition: width .4s ease; }

.sop-phases { display: flex; flex-direction: column; gap: 12px; }

.sop-phase {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  border-top: 3px solid var(--ph-color, var(--accent));
}

.sop-phase-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.sop-phase-num {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--ph-color, var(--accent));
  background: color-mix(in srgb, var(--ph-color, var(--accent)) 10%, transparent);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
  white-space: nowrap;
}
.sop-phase-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sop-phase-meta strong { font-size: 14px; color: var(--ink); }
.sop-phase-goal { font-size: 12.5px; color: var(--ink-3); flex: 1; }
.sop-phase-count {
  font-size: 12px; font-weight: 700;
  color: var(--ph-color, var(--accent));
  background: color-mix(in srgb, var(--ph-color, var(--accent)) 10%, transparent);
  padding: 2px 10px; border-radius: var(--r-pill);
  flex-shrink: 0; white-space: nowrap;
}

.sop-tasks { padding: 4px 0; }

.sop-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background .12s;
  border-bottom: 1px solid var(--line);
}
.sop-task:last-child { border-bottom: none; }
.sop-task:hover { background: var(--mist); }
.sop-task.done .sop-task-text {
  text-decoration: line-through;
  color: var(--ink-3);
}
.sop-task input[type="checkbox"] {
  width: 15px; height: 15px; flex-shrink: 0;
  accent-color: var(--ph-color, var(--accent));
  cursor: pointer;
  margin: 0;
}
.sop-owner {
  font-size: 10.5px; font-weight: 700;
  padding: 2px 8px; border-radius: var(--r-pill);
  flex-shrink: 0; white-space: nowrap;
}
.owner-fde    { background: var(--accent-pale); color: var(--accent); }
.owner-client { background: #E6F6EC; color: var(--success); }
.sop-task-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }

.sop-phase-footer {
  padding: 12px 16px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
}
.sop-footer-label {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); margin-right: 8px;
}
.sop-footer-label.risk { color: var(--warning); }
.sop-delivs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.sop-risks  { display: flex; flex-direction: column; gap: 4px; }
.sop-risk-item {
  font-size: 12px; color: var(--ink-3); line-height: 1.5;
  padding-left: 12px; position: relative;
}
.sop-risk-item::before {
  content: '→'; position: absolute; left: 0;
  color: var(--warning); font-size: 10px;
}

/* sidebar label small annotation */
.tk-category span small {
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 3px;
  letter-spacing: 0;
}

/* Content publish view */
.cp-shell { display:flex; flex-direction:column; gap:18px; }
.cp-topbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.cp-title  { font-family:var(--serif); font-size:19px; font-weight:700; color:var(--ink); }
.cp-engine-link { font-size:12.5px; color:var(--accent); text-decoration:none; border:1px solid var(--accent); padding:5px 14px; border-radius:var(--r-pill); }
.cp-engine-link:hover { background:var(--accent-pale); }

.cp-section { border:1px solid var(--line); border-radius:var(--r); overflow:hidden; }
.cp-section-head { display:flex; align-items:center; gap:10px; padding:10px 16px; background:var(--mist); border-bottom:1px solid var(--line); }
.cp-section-head .step-badge { width:22px; height:22px; border-radius:50%; background:var(--accent); color:#fff; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.cp-section-head strong { font-size:13.5px; color:var(--ink); }
.cp-section-body { padding:16px; display:flex; flex-direction:column; gap:12px; }

.cp-kb-grid { display:flex; flex-wrap:wrap; gap:8px; }
.cp-kb-chip { display:flex; align-items:center; gap:6px; padding:5px 12px; border:1px solid var(--line); border-radius:var(--r-pill); cursor:pointer; font-size:12.5px; color:var(--ink-2); transition:all .15s; }
.cp-kb-chip:hover { border-color:var(--accent); color:var(--accent); }
.cp-kb-chip.selected { background:var(--accent-pale); border-color:var(--accent); color:var(--accent); font-weight:600; }
.cp-kb-chip input { display:none; }
.cp-kb-chip .chip-count { font-size:10px; color:var(--ink-3); }

.cp-topic-row { display:flex; gap:8px; }
.cp-topic-input { flex:1; padding:9px 14px; border:1px solid var(--line); border-radius:var(--r); font-size:14px; color:var(--ink); background:var(--paper); }
.cp-topic-input:focus { outline:none; border-color:var(--accent); }
.cp-topic-input::placeholder { color:var(--ink-3); }

.cp-chunks { display:flex; flex-direction:column; gap:8px; }
.cp-chunk { padding:10px 14px; background:var(--mist); border-radius:var(--r); border-left:3px solid var(--accent); }
.cp-chunk-src { font-size:10.5px; color:var(--ink-3); margin-bottom:4px; }
.cp-chunk-text { font-size:13px; color:var(--ink-2); line-height:1.55; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }

.cp-article-area { width:100%; min-height:320px; padding:14px; border:1px solid var(--line); border-radius:var(--r); font-size:13.5px; font-family:inherit; color:var(--ink-2); background:var(--paper); resize:vertical; line-height:1.7; }
.cp-article-area:focus { outline:none; border-color:var(--accent); }

.cp-action-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.cp-status { font-size:12.5px; color:var(--success); font-weight:600; }
.cp-status.error { color:var(--warning); }

.cp-spinner { display:inline-block; width:14px; height:14px; border:2px solid var(--line); border-top-color:var(--accent); border-radius:50%; animation:spin .7s linear infinite; vertical-align:middle; margin-right:4px; }
@keyframes spin { to { transform:rotate(360deg); } }

/* AI Diagnostic view */
.diag-shell { max-width:680px; margin:0 auto; display:flex; flex-direction:column; gap:24px; }

.diag-progress { display:flex; gap:0; }
.diag-step-dot {
  flex:1; height:4px; background:var(--line); border-radius:2px;
  transition:background .3s;
}
.diag-step-dot.done { background:var(--accent); }
.diag-step-dot + .diag-step-dot { margin-left:4px; }

.diag-panel { display:flex; flex-direction:column; gap:20px; }

.diag-q { display:flex; flex-direction:column; gap:8px; }
.diag-q-label { font-size:13px; font-weight:600; color:var(--ink-2); }
.diag-q-sub   { font-size:12px; color:var(--ink-3); margin-top:-4px; }
.diag-options { display:flex; flex-wrap:wrap; gap:8px; }
.diag-opt {
  padding:7px 16px; border:1.5px solid var(--line); border-radius:var(--r-pill);
  font-size:13px; color:var(--ink-2); cursor:pointer; transition:all .15s;
  background:var(--paper); user-select:none;
}
.diag-opt:hover  { border-color:var(--accent); color:var(--accent); }
.diag-opt.picked { background:var(--accent); border-color:var(--accent); color:#fff; font-weight:600; }

.diag-nav { display:flex; align-items:center; gap:10px; margin-top:4px; }
.diag-nav .ghost-button { flex-shrink:0; }

.diag-loading { text-align:center; padding:56px 20px; }
.diag-loading-icon { font-size:36px; margin-bottom:16px; animation:pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.4;} }
.diag-loading p { font-size:14px; color:var(--ink-3); }

.diag-result { display:flex; flex-direction:column; gap:18px; }
.diag-stage-badge {
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 18px; border-radius:var(--r-pill); font-weight:700; font-size:13.5px;
  width:fit-content;
}
.diag-stage-badge.explore  { background:#FEF3C7; color:#92400E; }
.diag-stage-badge.ready    { background:#DBEAFE; color:#1E40AF; }
.diag-stage-badge.advanced { background:#D1FAE5; color:#065F46; }

.diag-report {
  background:var(--mist); border:1px solid var(--line); border-radius:var(--r);
  padding:20px 22px; font-size:14px; line-height:1.8; color:var(--ink-2);
  white-space:pre-wrap; word-break:break-word;
}
.diag-report h2, .diag-report h3 {
  font-family:var(--serif); color:var(--ink); margin:14px 0 6px;
}
.diag-report strong { color:var(--ink); }

.diag-cta { display:flex; flex-direction:column; gap:12px; }
.diag-cta-label { font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-3); }
.diag-cta-cards { display:flex; flex-wrap:wrap; gap:10px; }
.diag-cta-card {
  flex:1; min-width:180px; padding:14px 16px; border:1.5px solid var(--line);
  border-radius:var(--r); cursor:pointer; transition:all .15s;
  display:flex; flex-direction:column; gap:4px;
}
.diag-cta-card:hover { border-color:var(--accent); transform:translateY(-1px); box-shadow:0 4px 12px rgba(10,95,239,.1); }
.diag-cta-card .cta-price  { font-size:13.5px; font-weight:700; color:var(--accent); }
.diag-cta-card .cta-name   { font-size:12px; color:var(--ink); font-weight:600; }
.diag-cta-card .cta-desc   { font-size:11.5px; color:var(--ink-3); line-height:1.4; }

.diag-restart { font-size:12.5px; color:var(--ink-3); cursor:pointer; text-decoration:underline; text-align:center; }
.diag-restart:hover { color:var(--accent); }

/* Learn view */
.learn-shell { display:flex; flex-direction:column; gap:28px; }
.learn-header { display:flex; flex-direction:column; gap:6px; }
.learn-header h2 { font-family:var(--serif); font-size:20px; margin:0; }
.learn-header p  { font-size:13.5px; color:var(--ink-3); margin:0; }

.learn-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; }
.learn-card {
  border:1px solid var(--line); border-radius:var(--r); padding:20px 22px;
  cursor:pointer; transition:all .15s; display:flex; flex-direction:column; gap:10px;
  background:var(--paper);
}
.learn-card:hover { border-color:var(--accent); box-shadow:0 4px 14px rgba(10,95,239,.1); transform:translateY(-1px); }
.learn-card-num  { font-size:10.5px; font-weight:700; letter-spacing:.08em; color:var(--ink-3); text-transform:uppercase; }
.learn-card-title{ font-family:var(--serif); font-size:15.5px; font-weight:700; color:var(--ink); line-height:1.35; }
.learn-card-words{ font-size:11.5px; color:var(--ink-3); }
.learn-card-arrow{ font-size:18px; color:var(--accent); margin-top:auto; }

.learn-article { display:flex; flex-direction:column; gap:20px; max-width:720px; }
.learn-article-nav { display:flex; align-items:center; gap:10px; }
.learn-back { font-size:13px; color:var(--accent); cursor:pointer; display:flex; align-items:center; gap:4px; }
.learn-back:hover { text-decoration:underline; }
.learn-article-title { font-family:var(--serif); font-size:22px; font-weight:700; line-height:1.3; color:var(--ink); margin:0; }
.learn-article-meta  { font-size:12px; color:var(--ink-3); }

.learn-body {
  font-size:15px; line-height:1.85; color:var(--ink-2);
  border-top:1px solid var(--line); padding-top:20px;
}
.learn-body h1,.learn-body h2 {
  font-family:var(--serif); color:var(--ink); margin:28px 0 10px; font-size:18px;
}
.learn-body h3 { font-family:var(--serif); color:var(--ink); margin:20px 0 8px; font-size:15.5px; }
.learn-body strong { color:var(--ink); }
.learn-body p  { margin:0 0 14px; }
.learn-body ul,.learn-body ol { padding-left:22px; margin:0 0 14px; }
.learn-body li { margin-bottom:6px; }
.learn-body table { border-collapse:collapse; width:100%; margin:16px 0; font-size:13.5px; }
.learn-body th,.learn-body td { border:1px solid var(--line); padding:8px 12px; text-align:left; }
.learn-body th { background:var(--mist); font-weight:600; }
.learn-body code { background:var(--mist); border-radius:4px; padding:2px 6px; font-size:13px; }
.learn-body pre  { background:var(--mist); border-radius:var(--r); padding:14px 16px; overflow-x:auto; }
.learn-body blockquote {
  border-left:3px solid var(--accent); margin:16px 0; padding:10px 16px;
  background:var(--mist); border-radius:0 var(--r) var(--r) 0; font-style:italic;
}
.learn-loading { text-align:center; padding:60px 20px; color:var(--ink-3); font-size:14px; }

.learn-next-card {
  border:1px solid var(--line); border-radius:var(--r); padding:14px 18px;
  cursor:pointer; display:flex; justify-content:space-between; align-items:center;
  transition:all .15s; background:var(--mist);
}
.learn-next-card:hover { border-color:var(--accent); background:var(--accent-pale); }
.learn-next-label { font-size:11px; color:var(--ink-3); margin-bottom:3px; }
.learn-next-title { font-size:13.5px; font-weight:600; color:var(--ink); }

/* Ingest panel */
.ingest-bar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.ingest-type-btn {
  display:flex; align-items:center; gap:6px; padding:9px 16px;
  border:1.5px solid var(--line); border-radius:var(--r-pill);
  font-size:13px; font-weight:600; color:var(--ink-2);
  cursor:pointer; transition:all .15s; background:var(--paper);
}
.ingest-type-btn:hover { border-color:var(--accent); color:var(--accent); }
.ingest-type-btn.active { background:var(--accent); border-color:var(--accent); color:#fff; }
.ingest-type-btn .btn-icon { font-size:16px; }

.ingest-panel {
  margin-top:12px; border:1px solid var(--accent); border-radius:var(--r);
  overflow:hidden; animation:fadeSlide .18s ease;
}
@keyframes fadeSlide { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:none} }

.ingest-panel-head {
  background:var(--accent-pale); padding:10px 16px; display:flex; align-items:center; gap:8px;
  border-bottom:1px solid var(--line);
}
.ingest-panel-head strong { font-size:13.5px; color:var(--ink); }
.ingest-panel-head .kb-badge {
  margin-left:auto; font-size:11px; color:var(--accent); font-weight:600;
  background:rgba(10,95,239,.08); padding:3px 10px; border-radius:20px;
}

.ingest-panel-body { padding:14px 16px; display:flex; flex-direction:column; gap:10px; }
.ingest-textarea {
  width:100%; min-height:100px; padding:10px 13px; border:1px solid var(--line);
  border-radius:var(--r); font-size:13.5px; color:var(--ink-2); background:var(--paper);
  resize:vertical; font-family:inherit; line-height:1.6;
}
.ingest-textarea:focus { outline:none; border-color:var(--accent); }
.ingest-textarea::placeholder { color:var(--ink-3); }
.ingest-panel-actions { display:flex; gap:8px; align-items:center; }
.ingest-status { font-size:12.5px; font-weight:600; }
.ingest-status.ok    { color:var(--success); }
.ingest-status.error { color:var(--warning); }

/* Content Distribution widget */
.cd-shell { display:flex; flex-direction:column; gap:14px; }
.cd-latest {
  display:flex; align-items:center; gap:10px; padding:10px 14px;
  background:var(--mist); border:1px solid var(--line); border-radius:var(--r);
  font-size:12.5px; color:var(--ink-3);
}
.cd-latest strong { color:var(--ink); font-weight:600; }
.cd-latest .cd-status-dot {
  width:8px; height:8px; border-radius:50%; flex-shrink:0;
  background:var(--ink-3);
}
.cd-latest .cd-status-dot.ready { background:#10B981; }

.cd-form { display:flex; flex-direction:column; gap:10px; }
.cd-topic-row { display:flex; gap:8px; }
.cd-topic-input {
  flex:1; padding:9px 13px; border:1px solid var(--line); border-radius:var(--r);
  font-size:14px; color:var(--ink); background:var(--paper);
}
.cd-topic-input:focus { outline:none; border-color:var(--accent); }
.cd-topic-input::placeholder { color:var(--ink-3); }

.cd-kb-chips { display:flex; flex-wrap:wrap; gap:6px; }
.cd-kb-chip {
  padding:5px 11px; border:1px solid var(--line); border-radius:var(--r-pill);
  font-size:12px; cursor:pointer; transition:all .13s; color:var(--ink-2);
}
.cd-kb-chip:hover  { border-color:var(--accent); color:var(--accent); }
.cd-kb-chip.on     { background:var(--accent-pale); border-color:var(--accent); color:var(--accent); font-weight:600; }

.cd-steps {
  display:flex; gap:6px; align-items:center; font-size:12px; color:var(--ink-3);
}
.cd-step { padding:4px 10px; border-radius:20px; background:var(--mist); transition:all .2s; }
.cd-step.active  { background:var(--accent-pale); color:var(--accent); font-weight:600; }
.cd-step.done    { background:#D1FAE5; color:#065F46; }
.cd-step-arrow   { color:var(--ink-3); font-size:10px; }

.cd-result {
  padding:12px 14px; background:var(--mist); border:1px solid var(--line);
  border-radius:var(--r); font-size:13px; color:var(--ink-2);
  max-height:200px; overflow-y:auto; line-height:1.6; white-space:pre-wrap;
}
.cd-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.cd-pub-status { font-size:12.5px; font-weight:600; }
.cd-pub-status.ok    { color:var(--success); }
.cd-pub-status.error { color:var(--warning); }

.cd-open-link {
  font-size:12.5px; color:var(--accent); text-decoration:none;
  border:1px solid var(--accent); padding:6px 14px; border-radius:var(--r-pill);
  transition:background .13s; margin-left:auto;
}
.cd-open-link:hover { background:var(--accent-pale); }

/* Non-card children of .content-grid span all 12 columns */
.content-grid > :not(.card) {
  grid-column: span 12;
}

.template-hero p {
  max-width: 900px;
}

.fde-template-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.template-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.template-card-head h3 {
  margin-top: 8px;
}

.template-card-head small {
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
  max-width: 145px;
  overflow-wrap: anywhere;
}

.template-block {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--mist);
  padding: 12px;
}

.template-block strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
}

.template-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.template-fields code {
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 5px 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}

.template-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ═══════════════════════════════════════════════════
   AI Chat Bubble & Panel
   ═══════════════════════════════════════════════════ */

/* Floating trigger button */
.chat-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 10px;
  background: var(--ink, #0A1B3D);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(10,27,61,.32);
  transition: transform .18s, box-shadow .18s;
  user-select: none;
}
.chat-bubble:hover { transform: translateY(-2px); box-shadow: 0 6px 32px rgba(10,27,61,.42); }

.chat-bubble-label { font-size: 13px; font-weight: 700; white-space: nowrap; letter-spacing: .01em; }
.chat-bubble-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.5);
  animation: chatPulse 2.2s infinite;
}
@keyframes chatPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Hint tooltip */
.chat-hint {
  position: fixed;
  bottom: 84px;
  right: 28px;
  z-index: 899;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 10px 14px;
  background: var(--ink, #0A1B3D);
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(10,27,61,.28);
  animation: hintFadeIn .3s ease;
  white-space: nowrap;
}
@keyframes hintFadeIn {
  from { opacity:0; transform: translateY(6px); }
  to   { opacity:1; transform: translateY(0); }
}
.chat-hint-arrow {
  position: absolute;
  bottom: -7px; right: 34px;
  width: 14px; height: 7px;
  overflow: hidden;
}
.chat-hint-arrow::before {
  content: '';
  position: absolute;
  top: -7px; left: 0;
  width: 14px; height: 14px;
  background: var(--ink, #0A1B3D);
  transform: rotate(45deg);
  transform-origin: center;
}
.chat-hint-close {
  background: none; border: none; color: rgba(255,255,255,.6);
  font-size: 16px; cursor: pointer; padding: 0 2px; line-height: 1;
  margin-left: 4px;
}
.chat-hint-close:hover { color: #fff; }

/* Panel */
.chat-panel {
  position: fixed;
  bottom: 88px;
  right: 28px;
  z-index: 901;
  width: 360px;
  height: 530px;
  background: #fff;
  border: 1px solid var(--border, #E8ECF2);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(10,27,61,.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transition: opacity .2s, transform .2s;
}
.chat-panel.hidden {
  opacity: 0;
  transform: scale(.92) translateY(12px);
  pointer-events: none;
}

/* Panel header */
.chat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--ink, #0A1B3D);
  color: #fff;
  flex-shrink: 0;
}
.chat-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-lao-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent);
  color: #fff; font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,.3);
  margin-left: 2px;
}
.chat-panel-actions { display: flex; gap: 4px; }
.chat-icon-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.65);
  padding: 5px; border-radius: 6px;
  transition: color .15s, background .15s;
}
.chat-icon-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.chat-icon-btn svg { width: 15px; height: 15px; display: block; }

/* Messages area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.chat-msg.user { flex-direction: row-reverse; }

.chat-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-msg.user .chat-avatar { background: var(--ink, #0A1B3D); font-size: 10px; font-weight: 600; }

.chat-bubble-msg {
  max-width: 80%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--accent-mist, #F2F6FD);
  border: 1px solid var(--accent-pale, #E7EFFD);
  word-break: break-word;
  white-space: pre-wrap;
}
.chat-msg.user .chat-bubble-msg {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

/* Quick-start chips */
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.chat-chip {
  padding: 5px 11px;
  border: 1.5px solid var(--accent-pale, #E7EFFD);
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .14s, border-color .14s;
  white-space: nowrap;
}
.chat-chip:hover { background: var(--accent-pale); border-color: var(--accent); }

/* Typing indicator */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 10px;
  flex-shrink: 0;
}
.chat-typing.hidden { display: none; }
.chat-typing-dots {
  display: flex;
  gap: 4px;
  padding: 10px 13px;
  background: var(--accent-mist, #F2F6FD);
  border: 1px solid var(--accent-pale, #E7EFFD);
  border-radius: 12px;
}
.chat-typing-dots span {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: .5;
  animation: chatBounce 1.2s infinite ease-in-out;
}
.chat-typing-dots span:nth-child(2) { animation-delay: .2s; }
.chat-typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes chatBounce {
  0%,80%,100% { transform: translateY(0); opacity:.5; }
  40%          { transform: translateY(-5px); opacity:1; }
}

/* Input row */
.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 11px 12px;
  border-top: 1px solid var(--border, #E8ECF2);
  flex-shrink: 0;
  background: #fff;
}
.chat-input {
  flex: 1;
  border: 1.5px solid var(--border, #E8ECF2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.chat-input:focus { border-color: var(--accent); }

.chat-send-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--accent);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s, transform .12s;
}
.chat-send-btn:hover { background: #0952d4; transform: scale(1.05); }
.chat-send-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.chat-send-btn svg { width: 15px; height: 15px; color: #fff; }

/* ================================================================
   FDE Redesign 2026-06-18 — New Component Styles
   ================================================================ */

/* ── Nav Divider ── */
.nav-divider {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(231,238,249,.28);
  padding: 14px 12px 4px;
  margin-top: 6px;
}

/* ── Sidebar Footer Tools ── */
.sidebar-footer-tools {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.sidebar-footer-tools .ghost-button {
  flex: 1;
  font-size: 11px;
  padding: 4px 8px;
  min-height: 28px;
  color: rgba(231,238,249,.45);
  border-color: rgba(231,238,249,.15);
}
.sidebar-footer-tools .ghost-button:hover {
  color: rgba(231,238,249,.8);
  border-color: rgba(231,238,249,.35);
}

/* ── Hero CTAs ── */
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-panel .ghost-button {
  color: var(--ink-2);
  border-color: var(--line-2);
}
.hero-panel .ghost-button:hover {
  color: var(--ink);
  border-color: var(--ink-3);
}

/* ── Section Header Cards ── */
.section-header-card {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding-bottom: 2px;
}
.section-header-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  margin-top: 4px;
  color: var(--ink);
}

/* ── Pain Cards (Why section) ── */
.pain-card { position: relative; }
.pain-icon {
  font-size: 32px;
  font-weight: 900;
  font-family: var(--serif);
  color: var(--line-2);
  margin-bottom: 12px;
  line-height: 1;
  letter-spacing: -.02em;
}
.pain-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.pain-card p { font-size: 14px; color: var(--ink-2); }

/* ── Method Cards (How section) ── */
.method-card { position: relative; }
.method-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.method-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.method-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.method-card p { font-size: 14px; color: var(--ink-2); }
.method-result {
  margin-top: 16px;
  padding: 8px 12px;
  background: var(--accent-mist);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.5;
}

/* ── Result Cards (What section) ── */
.result-card { text-align: center; padding: 28px 20px; }
.result-icon {
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
  line-height: 1;
}
.result-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.result-card p { font-size: 13px; color: var(--ink-2); }

/* ── CTA Card ── */
.cta-card {
  background: var(--primary-800) !important;
  color: #E7EEF9;
}
.cta-card h3 {
  color: #fff;
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 8px;
}
.cta-card p { color: rgba(231,238,249,.7); font-size: 14px; }
.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-text { flex: 1; min-width: 260px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.cta-btn {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--primary-900) !important;
  font-weight: 700;
}
.cta-btn:hover { background: #d4af6a !important; }
.cta-ghost {
  color: rgba(231,238,249,.8) !important;
  border-color: rgba(231,238,249,.3) !important;
}
.cta-ghost:hover { color: #fff !important; border-color: rgba(231,238,249,.7) !important; }

/* ── Flagship Card (Products) ── */
.flagship-card {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%) !important;
  color: #E7EEF9;
  position: relative;
  overflow: hidden;
}
.flagship-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(10,95,239,.12);
  pointer-events: none;
}
.flagship-badge { margin-bottom: 20px; }

.badge-gold {
  background: var(--gold) !important;
  color: var(--primary-900) !important;
  font-weight: 700;
}

.flagship-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .flagship-content { grid-template-columns: 1fr; }
}

.flagship-left h3 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 12px;
}
.flagship-tagline {
  color: rgba(231,238,249,.72);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.deliverable-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 9px;
}
.deliverable-list li {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 14px;
  color: rgba(231,238,249,.85);
  line-height: 1.5;
}

.flagship-tiers {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r);
  padding: 20px 22px;
}
.flagship-tiers h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(231,238,249,.42);
  margin-bottom: 16px;
}
.tier-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 1px 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.tier-item:last-child { border-bottom: none; padding-bottom: 0; }
.tier-name {
  font-weight: 600;
  color: rgba(231,238,249,.88);
  font-size: 13px;
  align-self: center;
}
.tier-price {
  font-weight: 800;
  color: var(--gold);
  font-size: 13px;
  text-align: right;
  align-self: center;
}
.tier-desc {
  font-size: 11px;
  color: rgba(231,238,249,.42);
  grid-column: 1 / -1;
  margin-top: 3px;
  line-height: 1.5;
}
.tier-premium .tier-name { color: var(--gold); }
.tier-premium .tier-price { font-size: 15px; }

/* ── Support Product Cards ── */
.support-product-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
  margin: 12px 0 10px;
  color: var(--ink);
}
.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.product-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
}

/* ================================================================
   Ontology View Styles — FDE 2026-06-18
   ================================================================ */

.onto-shell { display: flex; flex-direction: column; gap: 0; width: 100%; }
.onto-loading { padding: 48px; text-align: center; color: var(--ink-3); font-size: 14px; }

/* Layer Tabs */
.onto-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.onto-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
}
.onto-tab:hover { border-color: var(--accent); color: var(--accent); }
.onto-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.onto-tab-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.onto-tab.active .onto-tab-dot { background: rgba(255,255,255,.6) !important; }
.onto-tab-count {
  font-size: 11px;
  opacity: .65;
  margin-left: 2px;
}

.onto-layer-desc {
  font-size: 13px;
  color: var(--ink-3);
  margin: 8px 0 16px;
  padding-left: 4px;
}

/* Object Grid */
.onto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.onto-obj-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  cursor: pointer;
  transition: all .15s;
}
.onto-obj-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.onto-obj-card.active {
  border-color: var(--accent);
  background: var(--accent-mist);
  box-shadow: 0 0 0 3px var(--accent-pale);
}
.onto-obj-icon {
  font-size: 20px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--mist);
  flex-shrink: 0;
  color: var(--accent);
}
.onto-obj-icon.lg {
  width: 48px; height: 48px;
  font-size: 26px;
  border-radius: var(--r);
}
.onto-obj-meta { min-width: 0; }
.onto-obj-meta strong { display: block; font-size: 13px; color: var(--ink); margin-bottom: 2px; }
.onto-obj-meta span  { font-size: 11px; color: var(--ink-3); }

/* Detail Panel */
.onto-detail { width: 100%; }
.onto-detail-inner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}
.onto-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.onto-detail-head h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 4px; }
.onto-detail-head p  { font-size: 13px; color: var(--ink-2); margin: 0; }

.onto-detail-section { margin-bottom: 22px; }
.onto-detail-section h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

/* Property type badges */
.prop-type {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
}
.prop-text   { background: var(--mist);        color: var(--ink-2); }
.prop-number { background: #E8F5E9;             color: #1A7A4A; }
.prop-date   { background: #FFF3E0;             color: #C8852B; }
.prop-enum   { background: var(--accent-pale);  color: var(--accent); }
.prop-fk     { background: #F3E5F5;             color: #7C3AED; }

/* Actions */
.onto-actions-list { display: flex; flex-direction: column; gap: 8px; }
.onto-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--mist);
  border-radius: var(--r-sm);
  font-size: 13px;
}
.onto-action strong { flex-shrink: 0; color: var(--ink); }
.onto-action span   { color: var(--ink-2); font-size: 12px; }
.onto-action-trigger {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.onto-trigger-manual   { background: var(--accent-pale); color: var(--accent); }
.onto-trigger-schedule { background: #E8F5E9;             color: #1A7A4A; }
.onto-trigger-event    { background: #FFF3E0;             color: #C8852B; }

/* Instances */
.onto-instance {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.onto-instance-field { display: flex; flex-direction: column; gap: 2px; }
.onto-instance-field span   { font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.onto-instance-field strong { font-size: 13px; color: var(--ink); }

/* ================================================================
   CRM Dashboard Styles — FDE 2026-06-18
   ================================================================ */

.crm-shell { display: flex; flex-direction: column; gap: 20px; }

/* Stats bar */
.crm-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.crm-stat {
  flex: 1; min-width: 100px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}
.crm-stat strong {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1;
}
.crm-stat span { font-size: 12px; color: var(--ink-3); }
.crm-stat.accent strong { color: var(--accent); }
.crm-stat.green  strong { color: var(--success); }
.crm-stat.gold   strong { color: var(--gold); }

/* Client cards */
.crm-clients { display: flex; flex-direction: column; gap: 16px; }

.crm-client-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s;
}
.crm-client-card:hover { box-shadow: var(--shadow); }

.crm-client-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}
.crm-client-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--serif);
}
.crm-client-meta {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 3px;
}
.crm-client-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.crm-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-pill);
}
.crm-contract {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--serif);
}

.crm-next-action {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
  padding: 8px 12px;
  background: var(--accent-mist);
  border-radius: var(--r-sm);
}

/* Project block */
.crm-project {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}
.crm-proj-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.crm-proj-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.crm-badge {
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
}
.crm-proj-meta {
  font-size: 11px;
  color: var(--ink-3);
  flex-shrink: 0;
}

/* Progress bar */
.crm-prog-bar {
  height: 6px;
  background: var(--mist);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-bottom: 4px;
}
.crm-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: var(--r-pill);
  transition: width .4s ease;
}
.crm-prog-label {
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 12px;
}

/* Scenarios */
.crm-scenarios { display: flex; flex-direction: column; gap: 6px; }
.crm-scenario {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: var(--mist);
  border-radius: var(--r-sm);
  font-size: 13px;
}
.crm-sc-icon {
  font-size: 14px;
  color: var(--accent);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.crm-sc-name { flex: 1; color: var(--ink); }
.crm-sc-status {
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.crm-no-proj {
  font-size: 13px;
  color: var(--ink-3);
  padding: 10px 0 0;
  font-style: italic;
}

/* ── Edit Modal ──────────────────────────────────────────────── */
.edit-modal-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}
.edit-modal {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  width: 480px; max-width: calc(100vw - 40px);
  max-height: 85vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.edit-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.edit-modal-head strong {
  font-size: 16px;
  font-family: var(--serif);
  font-weight: 700;
}
.edit-modal-close {
  background: none; border: none;
  font-size: 18px; color: var(--ink-3);
  cursor: pointer; padding: 4px 8px;
  border-radius: var(--r-sm);
  transition: background .1s;
}
.edit-modal-close:hover { background: var(--mist); color: var(--ink); }

.edit-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex; flex-direction: column; gap: 14px;
}
.edit-field-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.edit-field-row label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  width: 80px;
  flex-shrink: 0;
  text-align: right;
}
.edit-field-row input,
.edit-field-row select,
.edit-field-row textarea {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--ink);
  background: var(--mist);
  font-family: inherit;
  transition: border-color .15s;
  outline: none;
}
.edit-field-row input:focus,
.edit-field-row select:focus,
.edit-field-row textarea:focus {
  border-color: var(--accent);
  background: #fff;
}
.edit-field-row textarea { resize: vertical; min-height: 56px; }

.edit-divider {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink-3);
  text-transform: uppercase;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.edit-proj-row {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px;
  background: var(--mist);
  border-radius: var(--r);
}

.edit-modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex; gap: 10px; justify-content: flex-end;
}
.btn-primary {
  padding: 9px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.btn-primary:hover { opacity: .88; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost {
  padding: 9px 18px;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-2);
  border-radius: var(--r-sm);
  font-size: 13px;
  cursor: pointer;
  transition: background .1s;
}
.btn-ghost:hover { background: var(--mist); }

/* Edit button on client card */
.crm-edit-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-3);
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 14px;
  display: grid; place-items: center;
  transition: all .15s;
  flex-shrink: 0;
}
.crm-edit-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-mist);
}

/* ================================================================
   FDE Platform Styles — Enterprise-first + FDE Practitioner
   ================================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.fde-hero {
  grid-column: span 12;
  background: linear-gradient(135deg, #0f1923 0%, #1a2d3d 60%, #0e2233 100%);
  border-radius: var(--r-lg);
  padding: 48px 52px;
  color: #fff;
  margin-bottom: 4px;
}
.fde-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.fde-hero-h2 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #fff;
}
.fde-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 600px;
}
.fde-hero-metrics {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.fde-metric { display: flex; flex-direction: column; gap: 2px; }
.fde-metric strong {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--serif);
  color: #fff;
  line-height: 1;
}
.fde-metric span { font-size: 11px; color: rgba(255,255,255,.5); }
.fde-metric-div { width: 1px; height: 32px; background: rgba(255,255,255,.2); }
.fde-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.fde-hero-ctas .primary-button {
  background: var(--accent);
  border: none;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
}
.fde-hero-ctas .ghost-button {
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.08);
  padding: 12px 22px;
}
.fde-hero-ctas .ghost-button:hover {
  border-color: rgba(255,255,255,.6);
  color: #fff;
}

/* ── FDE For Practitioners Banner ────────────────────────── */
.fde-for-practitioners {
  grid-column: span 12;
  background: var(--accent-mist);
  border: 1px solid var(--accent-pale);
  border-radius: var(--r-lg);
  padding: 20px 28px;
  margin: 8px 0;
}
.fde-prac-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.fde-prac-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
}
.fde-prac-sub {
  font-size: 13px;
  color: var(--ink-2);
  flex: 1;
  min-width: 180px;
}
.fde-prac-links { display: flex; gap: 8px; flex-wrap: wrap; }
.fde-prac-links button {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.fde-prac-links button:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Nav Sub-label ───────────────────────────────────────── */
.nav-sub-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 14px 16px 6px;
}

/* ── FDE Stage Cards (Pathway view) ──────────────────────── */
.fde-stage-card {
  padding: 0 !important;
  overflow: hidden;
}
.fde-stage-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  background: linear-gradient(135deg, var(--mist), #fff);
  border-bottom: 1px solid var(--line);
}
.fde-stage-num {
  font-size: 36px;
  font-weight: 800;
  font-family: var(--serif);
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}
.fde-stage-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--serif);
}
.fde-stage-range {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}
.fde-stage-goal {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-2);
  font-style: italic;
  max-width: 280px;
  text-align: right;
}
.fde-stage-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.fde-stage-col {
  padding: 24px 28px;
}
.fde-stage-col:first-child {
  border-right: 1px solid var(--line);
}
.fde-stage-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}

/* ── Checklist ───────────────────────────────────────────── */
.fde-checklist { display: flex; flex-direction: column; gap: 8px; }
.fde-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}
.fde-check input[type=checkbox] {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.fde-check input:checked + span {
  text-decoration: line-through;
  color: var(--ink-3);
}

/* ── Tool links in pathway ───────────────────────────────── */
.fde-tool-links { display: flex; flex-direction: column; gap: 6px; }
.fde-tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: var(--mist);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  border: none;
}
.fde-tool-link:hover {
  background: var(--accent-mist);
  color: var(--accent);
}
.fde-tool-link span:first-child {
  color: var(--accent);
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

/* ── Deliverables ────────────────────────────────────────── */
.fde-deliverables { display: flex; flex-direction: column; gap: 6px; }
.fde-deliverable {
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.fde-deliverable:last-child { border-bottom: none; }

/* ── Template cards ──────────────────────────────────────── */
.tmpl-section-label {
  grid-column: span 12;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 4px 0;
}
.tmpl-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tmpl-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  font-family: var(--serif);
}
.tmpl-card p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.tmpl-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tmpl-status {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-pill);
}
.tmpl-status.available { background: #E8F5E9; color: #1A7A4A; }
.tmpl-status.building  { background: #FFF3E0; color: #C8852B; }
.tmpl-status.planned   { background: var(--mist); color: var(--ink-3); }
.tmpl-industry {
  font-size: 12px;
  color: var(--ink-3);
  margin-left: auto;
}
.tmpl-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tmpl-stats span {
  font-size: 11px;
  color: var(--ink-3);
  background: var(--mist);
  padding: 3px 9px;
  border-radius: var(--r-pill);
}
.tmpl-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.tmpl-btn {
  padding: 7px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.tmpl-btn:hover { opacity: .85; }
.tmpl-btn.ghost {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.tmpl-btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── Tool Hub Grid (Toolkit view) ────────────────────────── */
.tool-hub-grid {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.tool-hub-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all .15s;
  box-shadow: var(--shadow-sm);
}
.tool-hub-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.tool-hub-card.primary {
  border-color: var(--accent);
  background: var(--accent-mist);
}
.tool-hub-icon {
  font-size: 22px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--mist);
  border-radius: var(--r);
  flex-shrink: 0;
  color: var(--accent);
}
.tool-hub-card.primary .tool-hub-icon {
  background: var(--accent);
  color: #fff;
}
.tool-hub-body { min-width: 0; }
.tool-hub-body strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}
.tool-hub-body p {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 8px;
}
.tool-hub-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
}
.tool-hub-tag.internal { background: var(--mist); color: var(--ink-3); }
.tool-hub-tag.external { background: var(--accent-pale); color: var(--accent); }

@media (max-width: 600px) {
  .fde-hero { padding: 32px 24px; }
  .fde-hero-h2 { font-size: 26px; }
  .fde-stage-body { grid-template-columns: 1fr; }
  .fde-stage-col:first-child { border-right: none; border-bottom: 1px solid var(--line); }
  .fde-stage-goal { display: none; }
}

/* Hero pain row */
.hero-pain-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0 24px;
  border-left: 2px solid rgba(255,255,255,.15);
  padding-left: 16px;
}
.hero-pain-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
}
.hero-pain-num {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(255,255,255,.08);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  letter-spacing: .05em;
}

/* ── Service Cards (Products view) ──────────────────────────── */
.svc-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px !important;
}
.svc-card-premium {
  border-color: var(--gold) !important;
  background: linear-gradient(135deg, #fffbf0, #fff) !important;
}
.svc-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.svc-step {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.svc-step.gold {
  background: var(--gold);
}
.svc-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--serif);
}
.svc-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  margin-top: 2px;
}
.svc-card-premium .svc-price {
  color: var(--gold);
}
.svc-timeline {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--mist);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
  align-self: center;
}
.svc-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
}
.svc-deliverables {
  background: var(--mist);
  border-radius: var(--r);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.svc-card-premium .svc-deliverables {
  background: rgba(255,184,0,.08);
}
.svc-del-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.svc-del-item {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}
.svc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}
.svc-tag {
  font-size: 11px;
  color: var(--ink-3);
  font-style: italic;
  flex: 1;
  min-width: 160px;
}
.svc-footer .primary-button {
  flex-shrink: 0;
  padding: 9px 18px;
  font-size: 13px;
}

/* ── Service Cards (Products view) ──────────────────────────── */
.svc-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px !important;
}
.svc-card-premium {
  border-color: var(--gold) !important;
  background: linear-gradient(135deg, #fffbf0, #fff) !important;
}
.svc-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.svc-step {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.svc-step.gold {
  background: var(--gold);
}
.svc-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--serif);
}
.svc-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  margin-top: 2px;
}
.svc-card-premium .svc-price {
  color: var(--gold);
}
.svc-timeline {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--mist);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
  align-self: center;
}
.svc-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
}
.svc-deliverables {
  background: var(--mist);
  border-radius: var(--r);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.svc-card-premium .svc-deliverables {
  background: rgba(255,184,0,.08);
}
.svc-del-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.svc-del-item {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}
.svc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}
.svc-tag {
  font-size: 11px;
  color: var(--ink-3);
  font-style: italic;
  flex: 1;
  min-width: 160px;
}
.svc-footer .primary-button {
  flex-shrink: 0;
  padding: 9px 18px;
  font-size: 13px;
}

/* ── FDE Task Board ──────────────────────────────────────────── */
.fde-task-board {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  padding: 28px !important;
}
.ftb-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--warning);
  background: rgba(255,160,0,.12);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
}
.ftb-left h4 {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--serif);
  color: var(--ink);
  margin: 0 0 10px;
}
.ftb-left p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0 0 24px;
}
.ftb-flow {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ftb-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px;
  background: var(--mist);
  border-radius: var(--r);
}
.ftb-step-icon {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 2px;
}
.ftb-step strong {
  font-size: 13px;
  color: var(--ink);
}
.ftb-step span {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.5;
}
.ftb-arrow {
  font-size: 18px;
  color: var(--ink-3);
  align-self: center;
  flex-shrink: 0;
  margin-top: -8px;
}
.ftb-right {
  border-left: 1px solid var(--line);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ftb-side-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.ftb-task-type {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-2);
}
.ftb-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  background: var(--accent-pale);
  color: var(--accent);
  border-radius: var(--r-pill);
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .fde-task-board { grid-template-columns: 1fr; }
  .ftb-right { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; }
  .ftb-flow { flex-direction: column; }
  .ftb-arrow { transform: rotate(90deg); align-self: center; }
}

/* ── FDE Task Board (standalone view) ───────────────────────── */
.ftb-how {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 28px !important;
  flex-wrap: wrap;
}
.ftb-how-step {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 0 16px;
}
.ftb-how-num {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--ink-3);
}
.ftb-how-icon {
  font-size: 24px;
  color: var(--accent);
  line-height: 1;
}
.ftb-how-step strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: block;
}
.ftb-how-step span {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.55;
}
.ftb-how-arrow {
  font-size: 20px;
  color: var(--line);
  align-self: center;
  flex-shrink: 0;
  padding-bottom: 24px;
}
.ftb-types-card {
  padding: 24px !important;
}
.ftb-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ftb-type-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--mist);
  border-radius: var(--r);
}
.ftb-type-icon {
  font-size: 18px;
  color: var(--accent);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.ftb-type-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.ftb-type-item span {
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.5;
}
.ftb-cta-side {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 !important;
  overflow: hidden;
}
.ftb-cta-block {
  padding: 20px 22px;
}
.ftb-cta-block h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--serif);
  margin: 0 0 8px;
}
.ftb-cta-block p {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}
.ftb-divider {
  height: 1px;
  background: var(--line);
  margin: 0;
}
.ftb-promise {
  font-size: 12px;
  color: var(--ink);
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.ftb-promise:last-child { border-bottom: none; }
@media (max-width: 700px) {
  .ftb-how { flex-direction: column; gap: 12px; }
  .ftb-how-arrow { transform: rotate(90deg); align-self: center; padding-bottom: 0; }
  .ftb-type-grid { grid-template-columns: 1fr; }
}

/* ── Lead Modal: Tencent Meeting CTA ────────────────────────── */
.lead-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 12px;
  color: var(--ink-3);
  font-size: 12px;
}
.lead-divider::before,
.lead-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.meeting-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #f0f7ff;
  border: 1.5px solid #b3d4f5;
  border-radius: var(--r);
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  color: inherit;
}
.meeting-cta:hover {
  background: #e0effe;
  border-color: var(--accent);
}
.meeting-cta-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.meeting-cta strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.meeting-cta span {
  font-size: 12px;
  color: var(--ink-2);
}
.meeting-cta-arrow {
  margin-left: auto;
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Tools View ──────────────────────────────────────────────── */
.tools-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 4px 0 2px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px !important;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.tool-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.tool-card-placeholder {
  cursor: default;
  opacity: .6;
}
.tool-card-placeholder:hover {
  border-color: var(--line);
  box-shadow: none;
}
.tool-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.tool-card-icon {
  font-size: 22px;
  color: var(--accent);
  width: 40px;
  height: 40px;
  background: var(--accent-pale);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.tool-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--serif);
}
.tool-card-host {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}
.tool-card-arrow {
  margin-left: auto;
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}
.tool-card-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
}
.tool-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tool-card-tags span {
  font-size: 11px;
  padding: 3px 10px;
  background: var(--mist);
  color: var(--ink-3);
  border-radius: var(--r-pill);
  font-weight: 600;
}


/* ── WeChat subscription payment ───────────────────────────── */
.pay-page-card { padding: 0 !important; overflow: hidden; }
.pay-page-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 420px);
  gap: 0;
}
.pay-qr-panel, .pay-form-panel { padding: 28px; }
.pay-qr-panel { border-right: 1px solid var(--line); background: var(--accent-mist); }
.pay-qr-panel h3, .pay-form-panel h3 { font-size: 22px; margin-bottom: 18px; }
.pay-qr-box {
  display: grid;
  place-items: center;
  width: min(320px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 18px;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}
.pay-qr-box img { width: 100%; height: 100%; object-fit: contain; }
.pay-qr-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-sm);
  color: var(--ink-3);
  font-size: 14px;
}
.pay-note { max-width: 520px; margin: 0 auto; text-align: center; }
.pay-note strong { color: var(--accent); }
.pay-submit-form { display: grid; gap: 14px; margin-bottom: 14px; }
.pay-submit-form label { display: grid; gap: 6px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.pay-submit-form input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  background: var(--paper);
  outline: none;
}
.pay-submit-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,95,239,.1); }
.pay-submit-form button { justify-content: center; width: 100%; }
.pay-submit-form button:disabled { opacity: .68; cursor: not-allowed; transform: none; }
.pay-submit-result { min-height: 22px; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.pay-submit-result.success { color: var(--success); }
.pay-submit-result.error { color: var(--danger); }

@media (max-width: 760px) {
  .pay-page-grid { grid-template-columns: 1fr; }
  .pay-qr-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .pay-qr-panel, .pay-form-panel { padding: 20px; }
  .pay-qr-box { width: min(280px, 100%); }
}

/* ═══════════════════════════════════════════════════
   AIOS Architecture Blueprint
   ═══════════════════════════════════════════════════ */
.aios-blueprint-card {
  padding: 0 !important;
  overflow: hidden;
  border: 1.5px solid var(--line) !important;
}

.aios-ref-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  flex-wrap: wrap;
}
.aios-ref-label { color: var(--ink-3); font-weight: 500; }
.aios-ref-chip {
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .3px;
}
.palantir-chip { background: #EDE9FE; color: #5B21B6; }
.fde-chip      { background: var(--accent-pale); color: var(--accent); }
.aios-ref-arrow { color: var(--ink-3); font-size: 14px; }
.aios-ref-spacer { flex: 1; }
.aios-ref-note { color: var(--ink-3); font-size: 11.5px; }

.aios-arch-wrap {
  display: flex;
  min-height: 380px;
}

.aios-layers {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.aios-layer {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-height: 68px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: filter .15s;
}
.aios-layer:hover { filter: brightness(1.07); }
.aios-layer:last-child { border-bottom: none; }

.aios-layer-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  min-width: 210px;
  max-width: 210px;
  border-right: 1px solid rgba(255,255,255,.10);
  flex-shrink: 0;
}

.aios-layer-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  background: rgba(255,255,255,.18);
  color: #fff;
}

.aios-layer-name {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  line-height: 1.3;
}
.aios-layer-ref {
  font-size: 10px;
  color: rgba(255,255,255,.50);
  margin-top: 2px;
  font-style: italic;
}

.aios-layer-nodes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  flex: 1;
}

.aios-node {
  display: flex;
  flex-direction: column;
  padding: 4px 11px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.11);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  border: 1px solid rgba(255,255,255,.13);
  transition: background .15s;
  cursor: default;
}
.aios-node:hover { background: rgba(255,255,255,.20); }
.aios-node small {
  display: block;
  font-size: 10.5px;
  color: rgba(255,255,255,.52);
  margin-top: 2px;
  font-weight: 400;
}
.aios-node-w { min-width: 150px; }

/* Layer gradient fills */
.layer-apps     { background: linear-gradient(135deg, #0845C8 0%, #1A60EF 100%); }
.layer-agent    { background: linear-gradient(135deg, #3B31C4 0%, #5B4FD4 100%); }
.layer-foundry  { background: linear-gradient(135deg, #0B6E66 0%, #0EA28F 100%); }
.layer-ontology { background: linear-gradient(135deg, #7A5018 0%, #B8893E 100%); }
.layer-data     { background: linear-gradient(135deg, #050E28 0%, #0A1B3D 100%); }

/* FDE vertical column */
.aios-fde-col {
  width: 80px;
  background: linear-gradient(180deg, #0845C8 0%, #050E28 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.aios-fde-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #fff;
  text-align: center;
  padding: 16px 6px;
}
.aios-fde-badge {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 2px;
  background: rgba(255,255,255,.18);
  border-radius: var(--r-sm);
  padding: 3px 8px;
}
.aios-fde-title {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  line-height: 1.4;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}
.aios-fde-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,.20);
  margin: 2px 0;
}
.aios-fde-points {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.aios-fde-pt {
  font-size: 9.5px;
  color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  padding: 2px 5px;
  line-height: 1.4;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

/* AIOS Differentiator cards */
.aios-diff-card { display: flex; flex-direction: column; gap: 8px; }
.aios-diff-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.aios-diff-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.aios-diff-card p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .aios-layer-meta { min-width: 130px; max-width: 130px; padding: 10px; }
  .aios-layer-name { font-size: 11.5px; }
  .aios-layer-ref  { display: none; }
  .aios-fde-col    { width: 56px; }
  .aios-fde-title  { font-size: 9px; }
  .aios-fde-pt     { display: none; }
  .aios-ref-spacer { display: none; }
  .aios-ref-note   { display: none; }
}

/* ═══════════════════════════════════════════════════
   FDE 新手导航 (Onboarding)
   ═══════════════════════════════════════════════════ */
.ob-who-card { padding: 20px; }
.ob-who-title {
  font-weight: 700; font-size: 14px; color: var(--ink);
  margin-bottom: 14px;
}
.ob-who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ob-who-item {
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 16px 14px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  display: flex; flex-direction: column; gap: 6px;
}
.ob-who-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10,95,239,.08);
  transform: translateY(-2px);
}
.ob-who-icon { font-size: 20px; color: var(--accent); }
.ob-who-label { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.ob-who-desc { font-size: 12px; color: var(--ink-2); line-height: 1.5; flex: 1; }
.ob-who-cta { font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 4px; }

.ob-step-card {
  display: flex; flex-direction: column; gap: 10px;
}
.ob-step-head {
  display: flex; align-items: center; gap: 8px;
}
.ob-step-day {
  font-size: 11px; font-weight: 700; color: var(--accent);
  background: var(--accent-pale); border-radius: var(--r-pill);
  padding: 2px 9px;
}
.ob-step-tag {
  font-size: 11px; color: var(--ink-3);
  background: var(--mist); border-radius: var(--r-pill);
  padding: 2px 9px;
}
.ob-step-card h4 {
  font-size: 14px; font-weight: 700; color: var(--ink); margin: 0;
}
.ob-step-list {
  margin: 0; padding-left: 18px;
  display: flex; flex-direction: column; gap: 5px;
  flex: 1;
}
.ob-step-list li { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.ob-step-btn {
  margin-top: 6px;
  background: none; border: 1.5px solid var(--line);
  border-radius: var(--r-pill); padding: 6px 14px;
  font-size: 12.5px; color: var(--accent); font-weight: 600;
  cursor: pointer; transition: border-color .15s, background .15s;
  text-align: left;
}
.ob-step-btn:hover { border-color: var(--accent); background: var(--accent-pale); }

.ob-link-card {
  cursor: pointer;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ob-link-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.ob-link-icon { font-size: 22px; color: var(--accent); }
.ob-link-label { font-weight: 700; font-size: 14px; color: var(--ink); }
.ob-link-sub { font-size: 12px; color: var(--ink-2); line-height: 1.4; }

@media (max-width: 768px) {
  .ob-who-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .ob-who-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   FDE 新手导航 v2 (7天冲刺训练营)
   ═══════════════════════════════════════════════════ */

/* 成长路径卡 */
.ob-path-card { padding: 20px; }
.ob-path-label { font-size: 11.5px; color: var(--ink-3); font-weight: 500; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.ob-path-row { display: flex; align-items: center; gap: 0; }
.ob-path-node {
  flex: 1; padding: 16px 18px; border-radius: var(--r);
  border: 1.5px solid var(--line);
  display: flex; flex-direction: column; gap: 5px;
}
.ob-path-node.ob-path-done { background: var(--mist); opacity: .75; }
.ob-path-node.ob-path-current {
  background: linear-gradient(135deg, #0845C8 0%, #1A60EF 100%);
  border-color: transparent; box-shadow: 0 4px 20px rgba(10,69,200,.25);
}
.ob-path-node.ob-path-current .ob-path-title,
.ob-path-node.ob-path-current .ob-path-desc { color: #fff; }
.ob-path-node.ob-path-next { border-style: dashed; opacity: .65; }
.ob-path-badge {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .5px;
  background: rgba(255,255,255,.2); color: #fff;
  border-radius: var(--r-pill); padding: 2px 8px; margin-bottom: 2px;
  width: fit-content;
}
.ob-path-title { font-weight: 700; font-size: 14px; color: var(--ink); }
.ob-path-desc { font-size: 12px; color: var(--ink-2); line-height: 1.45; }
.ob-path-arrow { font-size: 20px; color: var(--ink-3); padding: 0 12px; flex-shrink: 0; }

/* Capstone 卡 */
.ob-capstone-card { display: flex; flex-direction: column; gap: 12px; }
.ob-capstone-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ob-capstone-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
  background: var(--primary-800); color: #fff;
  border-radius: var(--r-pill); padding: 3px 10px;
}
.ob-capstone-sub { font-size: 12px; color: var(--ink-3); }
.ob-capstone-title { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.ob-capstone-desc { font-size: 13px; color: var(--ink-2); line-height: 1.6; }

.ob-pipeline {
  display: flex; align-items: center; gap: 0;
  background: var(--mist); border-radius: var(--r);
  padding: 14px 16px; flex-wrap: wrap; gap: 6px;
}
.ob-pipe-node {
  display: flex; flex-direction: column; align-items: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 7px 12px;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  text-align: center; min-width: 90px;
}
.ob-pipe-node small { font-size: 10.5px; font-weight: 400; color: var(--ink-3); margin-top: 2px; }
.ob-pipe-node.ob-pipe-end { background: var(--accent); border-color: var(--accent); color: #fff; }
.ob-pipe-node.ob-pipe-end small { color: rgba(255,255,255,.75); }
.ob-pipe-arrow { color: var(--ink-3); font-size: 16px; padding: 0 4px; flex-shrink: 0; }
.ob-capstone-note { font-size: 12px; color: var(--ink-3); background: var(--mist); border-radius: var(--r-sm); padding: 8px 12px; border-left: 3px solid var(--accent); }

/* DoD 卡 */
.ob-dod-card { display: flex; flex-direction: column; gap: 10px; }
.ob-dod-head { font-weight: 700; font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.ob-dod-note { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.ob-dod-list { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.ob-dod-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.ob-dod-num {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-pale); color: var(--accent);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.ob-dod-cert {
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: var(--accent-pale); border-radius: var(--r-sm);
  padding: 8px 12px; text-align: center; margin-top: 4px;
}

/* 7天日程 Tabs */
.ob-days-card { padding: 0 !important; overflow: hidden; }
.ob-days-tabs {
  display: flex; overflow-x: auto; border-bottom: 1px solid var(--line);
  background: var(--mist); scrollbar-width: none;
}
.ob-days-tabs::-webkit-scrollbar { display: none; }
.ob-day-tab {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 10px 16px; border: none; border-bottom: 2px solid transparent;
  background: none; cursor: pointer; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: var(--ink-3);
  transition: color .15s, border-color .15s, background .15s;
  flex-shrink: 0;
}
.ob-day-tab small { font-size: 10px; font-weight: 400; color: var(--ink-3); }
.ob-day-tab:hover { color: var(--ink); background: rgba(10,95,239,.04); }
.ob-day-tab.active { color: var(--accent); border-bottom-color: var(--accent); background: #fff; }
.ob-day-tab.active small { color: var(--accent); }

.ob-days-panels { padding: 20px; }
.ob-day-panel.hidden { display: none; }

.ob-day-top { margin-bottom: 14px; }
.ob-day-solve {
  font-size: 13px; color: var(--ink-2); background: var(--mist);
  border-radius: var(--r-sm); padding: 8px 12px;
  border-left: 3px solid var(--accent);
}
.ob-day-solve-label {
  font-size: 10.5px; font-weight: 700; color: var(--accent);
  background: var(--accent-pale); border-radius: var(--r-pill);
  padding: 1px 7px; margin-right: 8px;
}
.ob-day-body { display: flex; flex-direction: column; gap: 14px; }
.ob-day-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ob-day-section { display: flex; flex-direction: column; gap: 8px; }
.ob-section-title { font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .5px; }
.ob-concept-list { display: flex; flex-direction: column; gap: 7px; }
.ob-concept { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; padding-left: 10px; border-left: 2px solid var(--line-2); }
.ob-concept strong { color: var(--ink); }
.ob-task-list { display: flex; flex-direction: column; gap: 6px; }
.ob-task {
  font-size: 12.5px; color: var(--ink-2); padding: 5px 10px;
  background: var(--mist); border-radius: var(--r-sm);
  padding-left: 24px; position: relative;
}
.ob-task::before {
  content: '▷'; position: absolute; left: 8px;
  font-size: 9px; color: var(--accent); top: 7px;
}
.ob-rescue {
  font-size: 12px; color: var(--warning); background: rgba(200,133,43,.07);
  border-radius: var(--r-sm); padding: 7px 10px; margin-top: 4px;
  border-left: 3px solid var(--warning);
}
.ob-rescue-label { font-weight: 700; margin-right: 6px; }

.ob-day-milestone {
  font-size: 13px; font-weight: 600; color: var(--success);
  background: rgba(26,122,74,.07); border-radius: var(--r-sm);
  padding: 10px 14px; border-left: 3px solid var(--success);
}
.ob-day-milestone-final { color: var(--accent); background: var(--accent-pale); border-color: var(--accent); }
.ob-day-milestone-final small { font-size: 11px; font-weight: 400; display: block; margin-top: 4px; color: var(--ink-3); }

/* Deploy steps */
.ob-deploy-steps { display: flex; flex-direction: column; gap: 8px; }
.ob-deploy-step { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); }
.ob-deploy-num {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-800); color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.ob-deploy-step strong { color: var(--ink); }

/* Day 0 checklist */
.ob-check-grid { display: flex; flex-direction: column; gap: 8px; }
.ob-check-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.ob-check-icon { font-size: 16px; color: var(--ink-3); flex-shrink: 0; margin-top: 1px; }

/* Tools card */
.ob-tools-card { display: flex; flex-direction: column; gap: 12px; }
.ob-tools-grid { display: flex; flex-direction: column; gap: 8px; }
.ob-tool-row { display: flex; align-items: baseline; gap: 10px; font-size: 13px; border-bottom: 1px solid var(--mist); padding-bottom: 6px; }
.ob-tool-row:last-child { border-bottom: none; }
.ob-tool-cat { font-weight: 600; color: var(--ink); min-width: 80px; font-size: 12px; flex-shrink: 0; }
.ob-tool-val { color: var(--ink-2); }

/* Compliance card */
.ob-compliance-card { display: flex; flex-direction: column; gap: 12px; }
.ob-compliance-list { display: flex; flex-direction: column; gap: 8px; }
.ob-compliance-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.ob-compliance-icon { font-size: 14px; color: var(--danger); flex-shrink: 0; margin-top: 1px; }
.ob-compliance-item strong { color: var(--ink); }

/* Mobile */
@media (max-width: 900px) {
  .ob-path-row { flex-direction: column; gap: 8px; }
  .ob-path-arrow { transform: rotate(90deg); padding: 4px 0; }
  .ob-day-cols { grid-template-columns: 1fr; }
  .ob-pipeline { justify-content: center; }
}


/* ── Community tabs ─────────────────────────────────────────────────────── */
.community-shell { display:flex; flex-direction:column; gap:0; }
.ctab-bar { display:flex; gap:4px; border-bottom:1.5px solid var(--border); margin-bottom:24px; }
.ctab {
  padding:9px 18px; border:none; background:none; cursor:pointer;
  font-size:13.5px; font-weight:600; color:var(--ink-3);
  border-bottom:2.5px solid transparent; margin-bottom:-1.5px;
  transition:color .15s, border-color .15s;
}
.ctab.active { color:var(--accent); border-bottom-color:var(--accent); }
.ctab:hover:not(.active) { color:var(--ink); }

/* ── Forum ──────────────────────────────────────────────────────────────── */
.forum-toolbar {
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  margin-bottom:16px;
}
.forum-new-btn {
  margin-left:auto; padding:7px 16px; background:var(--accent); color:#fff;
  border:none; border-radius:6px; font-size:13px; font-weight:600; cursor:pointer;
  white-space:nowrap;
}
.forum-new-btn:hover { opacity:.88; }

.forum-list { display:flex; flex-direction:column; gap:0; border:1.5px solid var(--border); border-radius:10px; overflow:hidden; }
.forum-topic-row {
  display:flex; align-items:center; gap:12px; padding:13px 16px;
  cursor:pointer; border-bottom:1px solid var(--border); transition:background .12s;
}
.forum-topic-row:last-child { border-bottom:none; }
.forum-topic-row:hover { background:var(--surface-2,#f6f8ff); }
.forum-topic-main { flex:1; min-width:0; }
.forum-topic-title { font-size:14.5px; font-weight:600; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.forum-topic-meta  { font-size:11.5px; color:var(--ink-3); margin-top:3px; }
.forum-reply-badge {
  min-width:26px; height:20px; padding:0 6px; border-radius:10px;
  background:var(--surface-2,#eef1fa); color:var(--ink-3);
  font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center;
}
.forum-empty { padding:40px; text-align:center; color:var(--ink-3); font-size:13.5px; }

/* topic detail */
.forum-back { font-size:13px; color:var(--accent); cursor:pointer; margin-bottom:20px; }
.forum-back:hover { text-decoration:underline; }
.forum-detail { border:1.5px solid var(--border); border-radius:10px; padding:20px 22px; margin-bottom:20px; }
.forum-detail-title { font-family:var(--serif); font-size:20px; font-weight:700; margin:0 0 6px; color:var(--ink); }
.forum-detail-meta  { font-size:12px; color:var(--ink-3); margin-bottom:14px; }
.forum-detail-body  { font-size:14px; color:var(--ink); line-height:1.7; white-space:pre-wrap; }

/* replies */
.forum-replies { display:flex; flex-direction:column; gap:12px; margin-bottom:20px; }
.forum-replies-hd { font-size:12px; font-weight:700; color:var(--ink-3); text-transform:uppercase; letter-spacing:.06em; margin-bottom:4px; }
.forum-reply { display:flex; gap:10px; align-items:flex-start; }
.forum-avatar { border-radius:50%; object-fit:cover; flex-shrink:0; }
.forum-avatar-ph {
  border-radius:50%; background:var(--accent); color:#fff; font-weight:700;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.forum-reply-content { flex:1; background:var(--surface-2,#f6f8ff); border-radius:8px; padding:10px 14px; }
.forum-reply-meta { font-size:11.5px; color:var(--ink-3); margin-bottom:5px; }
.forum-reply-body { font-size:13.5px; color:var(--ink); white-space:pre-wrap; }

/* reply form + new topic */
.forum-reply-form, .forum-new-form {
  display:flex; flex-direction:column; gap:10px; margin-top:4px;
}
.forum-new-form h3 { font-family:var(--serif); font-size:17px; margin:0 0 4px; }
.forum-input, .forum-select {
  width:100%; padding:8px 12px; border:1.5px solid var(--border); border-radius:7px;
  font-size:13.5px; color:var(--ink); background:var(--surface,#fff); box-sizing:border-box;
}
.forum-input:focus, .forum-select:focus, .forum-textarea:focus {
  border-color:var(--accent); outline:none;
}
.forum-textarea {
  width:100%; padding:9px 12px; border:1.5px solid var(--border); border-radius:7px;
  font-size:13.5px; color:var(--ink); background:var(--surface,#fff);
  resize:vertical; box-sizing:border-box; font-family:inherit;
}
.forum-submit-btn {
  align-self:flex-end; padding:8px 22px; background:var(--accent); color:#fff;
  border:none; border-radius:7px; font-size:13.5px; font-weight:600;
  cursor:pointer; transition:opacity .15s;
}
.forum-submit-btn:hover:not(:disabled) { opacity:.88; }
.forum-submit-btn:disabled { opacity:.5; cursor:default; }
.forum-error { font-size:12px; color:var(--warning,#c0392b); min-height:16px; }
.forum-login-hint { font-size:13px; color:var(--ink-3); padding:14px 0; }

/* ── Discord bar ─────────────────────────────────────────────────────────── */
.discord-bar {
  display:flex; align-items:center; gap:8px;
  padding:6px 12px; border-radius:7px; border:1.5px solid var(--border);
  background:var(--surface,#fff); font-size:12.5px;
}
.discord-bar.connected { border-color:#5865F2; background:rgba(88,101,242,.06); }
.discord-icon { font-size:16px; color:#5865F2; }
.discord-connect-btn {
  color:#5865F2; font-weight:700; text-decoration:none; font-size:12.5px;
}
.discord-connect-btn:hover { text-decoration:underline; }
.discord-hint { color:var(--ink-3); font-size:11.5px; }
.discord-name { font-weight:700; color:#5865F2; }
.discord-badge { color:#5865F2; font-size:11px; font-weight:600;
  background:rgba(88,101,242,.1); padding:2px 7px; border-radius:10px; }
.discord-unlink-btn {
  margin-left:auto; border:none; background:none; color:var(--ink-3);
  font-size:11.5px; cursor:pointer; text-decoration:underline;
}

/* ── 企业 Agent 创建进度表 ───────────────────────────────────── */
.ap-shell { display:grid; grid-template-columns:repeat(12,1fr); gap:16px; }
.ap-toolbar {
  grid-column:1 / -1; display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  margin-bottom:2px;
}
.ap-tb-label { font-size:13px; color:var(--ink-2); }
.ap-ent-select {
  min-width:220px; padding:7px 10px; border:1px solid var(--line);
  border-radius:8px; font-size:13px; color:var(--ink-1); background:#fff;
}
.ap-ent-name { font-size:15px; font-weight:600; color:var(--ink-1); }
.ap-ent-meta { font-size:13px; color:var(--ink-3); }
.ap-toolbar .primary-button { margin-left:auto; }
.ap-grid { grid-column:1 / -1; display:grid; grid-template-columns:repeat(12,1fr); gap:16px; }
.ap-card { display:flex; flex-direction:column; gap:8px; }
.ap-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.ap-name { font-size:15px; font-weight:600; color:var(--ink-1); }
.ap-status { font-size:12px; font-weight:600; margin-left:8px; }
.ap-actions, .ap-blk-actions { display:flex; gap:6px; flex-shrink:0; }
.ap-actions .ghost-button, .ap-blk-actions .ghost-button { padding:2px 8px; font-size:12px; }
.ap-field { margin-top:2px; }
.ap-field-label {
  display:inline-block; font-size:11px; font-weight:600; color:var(--accent);
  background:var(--accent-mist); padding:1px 7px; border-radius:8px; margin-bottom:3px;
}
.ap-field-val { font-size:13px; color:var(--ink-2); line-height:1.55; margin:0; white-space:pre-wrap; }
.ap-prog-row { display:flex; justify-content:space-between; gap:8px; margin-top:6px; }
.ap-meta { font-size:12px; color:var(--ink-3); }
.ap-blk-head {
  display:flex; align-items:center; justify-content:space-between;
  margin-top:8px; padding-top:8px; border-top:1px dashed var(--line);
  font-size:12.5px; font-weight:600; color:var(--ink-2);
}
.ap-blk-list { display:flex; flex-direction:column; gap:8px; margin-top:6px; }
.ap-blk {
  background:var(--accent-mist); border:1px solid var(--line);
  border-radius:8px; padding:8px 10px;
}
.ap-blk-top { display:flex; align-items:center; gap:8px; }
.ap-blk-stage { font-size:12px; font-weight:600; color:var(--ink-1); }
.ap-blk-badge {
  font-size:11px; padding:1px 7px; border-radius:8px;
  background:#FBE9E7; color:#b42318;
}
.ap-blk-badge.resolved { background:var(--accent-pale); color:var(--accent); }
.ap-blk-actions { margin-left:auto; }
.ap-blk-diff, .ap-blk-sol { font-size:12.5px; color:var(--ink-2); line-height:1.5; margin:4px 0 0; white-space:pre-wrap; }
.ap-blk-sol { color:var(--ink-1); }
.ap-empty { font-size:12px; color:var(--ink-3); margin:2px 0; }
@media (max-width:900px) { .ap-card.span-6 { grid-column:span 12; } }

/* ── 操盘人信任背书（链接老宋个人IP ailaosong.com） ───────────── */
.trust-band {
  background: linear-gradient(135deg, var(--accent-mist), #fff);
  border:1px solid var(--accent-pale);
}
.trust-inner {
  display:flex; align-items:center; justify-content:space-between;
  gap:28px; flex-wrap:wrap;
}
.trust-text { flex:1 1 420px; min-width:280px; }
.trust-text h3 { margin:2px 0 8px; }
.trust-text p { color:var(--ink-2); font-size:13.5px; line-height:1.65; margin:0; max-width:680px; }
.trust-stats { display:flex; gap:26px; margin-top:14px; flex-wrap:wrap; }
.trust-stat strong { display:block; font-size:22px; color:var(--accent); line-height:1.1; }
.trust-stat span { font-size:12px; color:var(--ink-3); }
.trust-actions { display:flex; flex-direction:column; gap:10px; flex:0 0 auto; }
.trust-actions .primary-button, .trust-actions .ghost-button { white-space:nowrap; text-align:center; text-decoration:none; }
@media (max-width:720px) { .trust-actions { flex-direction:row; width:100%; } .trust-actions a { flex:1; } }

/* ── 侧边栏 老宋个人主页 链接 ───────────────────────────────── */
.sidebar-ip-link {
  display:flex; align-items:center; gap:10px; text-decoration:none;
  padding:8px 10px; margin:8px 0 4px; border:1px solid var(--line);
  border-radius:10px; background:#fff; transition:border-color .2s, background .2s;
}
.sidebar-ip-link:hover { border-color:var(--accent); background:var(--accent-mist); }
.sidebar-ip-avatar {
  flex:0 0 auto; width:30px; height:30px; border-radius:50%;
  background:var(--accent); color:#fff; font-size:14px; font-weight:600;
  display:flex; align-items:center; justify-content:center;
}
.sidebar-ip-text { display:flex; flex-direction:column; min-width:0; line-height:1.3; }
.sidebar-ip-text strong { font-size:13px; color:var(--ink-1); }
.sidebar-ip-text span { font-size:11px; color:var(--ink-3); }

/* ===== 行业样板 · 旗舰案例展示 ===== */
.ind-hero {
  grid-column: span 12;
  background: linear-gradient(135deg, var(--primary-950) 0%, var(--primary-800) 55%, var(--primary-700) 100%);
  border-radius: var(--r-lg);
  padding: 44px 46px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.ind-hero::after {
  content: ""; position: absolute; right: -90px; top: -90px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(200,163,91,.20), transparent 70%);
  pointer-events: none;
}
.ind-hero-eyebrow {
  color: var(--gold); font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px;
  position: relative; z-index: 1;
}
.ind-hero h2 {
  font-family: var(--serif); font-size: 30px; line-height: 1.3;
  color: #fff; margin: 0 0 14px; max-width: 760px;
  position: relative; z-index: 1;
}
.ind-hero-sub {
  color: rgba(231,238,249,.72); font-size: 14px;
  max-width: 700px; margin: 0; line-height: 1.75;
  position: relative; z-index: 1;
}
.ind-hero-stats { display: flex; gap: 36px; margin-top: 30px; flex-wrap: wrap; position: relative; z-index: 1; }
.ind-hero-stats > div { display: flex; flex-direction: column; gap: 5px; }
.ind-hero-stats strong {
  font-family: var(--serif); font-size: 34px; font-weight: 800;
  color: var(--gold); line-height: 1;
}
.ind-hero-stats span { font-size: 11px; color: rgba(231,238,249,.55); letter-spacing: .04em; }

.ind-case { padding: 0 !important; overflow: hidden; border: 1px solid var(--line); transition: box-shadow .18s, border-color .18s; }
.ind-case:hover { transform: none; box-shadow: var(--shadow-lg); border-color: var(--gold); }
.ind-case-hero {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
  padding: 28px 32px 26px; position: relative; overflow: hidden;
}
.ind-case-hero::after {
  content: ""; position: absolute; right: -70px; top: -70px;
  width: 230px; height: 230px;
  background: radial-gradient(circle, rgba(200,163,91,.16), transparent 70%);
  pointer-events: none;
}
.ind-case-hero-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap; position: relative; z-index: 1;
}
.ind-case-title {
  font-family: var(--serif); font-size: 22px; line-height: 1.35;
  color: #fff; margin: 12px 0 8px;
}
.ind-case-sub { color: rgba(231,238,249,.66); font-size: 12.5px; margin: 0; line-height: 1.6; }
.ind-case-open {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border: 1px solid var(--gold); color: var(--gold); border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; text-decoration: none;
  background: rgba(200,163,91,.10); white-space: nowrap; transition: background .15s, color .15s;
  flex-shrink: 0;
}
.ind-case-open:hover { background: var(--gold); color: var(--primary-900); }
.ind-case-open.locked { border-color: rgba(231,238,249,.32); color: rgba(231,238,249,.72); background: transparent; }
.ind-case-open.locked:hover { background: rgba(231,238,249,.10); color: #fff; }
.ind-case-metrics {
  display: flex; gap: 30px; flex-wrap: wrap; margin-top: 22px;
  position: relative; z-index: 1;
}
.ind-case-metrics > div { display: flex; flex-direction: column; gap: 4px; }
.ind-case-metrics strong {
  font-family: var(--serif); font-size: 26px; font-weight: 800;
  color: var(--gold); line-height: 1;
}
.ind-case-metrics span { font-size: 11px; color: rgba(231,238,249,.5); }
.ind-case-body { padding: 24px 32px 28px; }

.ind-map-head { margin-top: 8px; }
.ind-map-head .eyebrow { color: var(--gold); }

@media (max-width: 720px) {
  .ind-hero { padding: 30px 24px; }
  .ind-hero h2 { font-size: 24px; }
  .ind-case-hero, .ind-case-body { padding-left: 20px; padding-right: 20px; }
}

