:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #172033;
  --muted: #627084;
  --line: #d9e0ea;
  --primary: #196b69;
  --primary-2: #238b7f;
  --blue: #255f9f;
  --amber: #b7791f;
  --red: #b93838;
  --green: #217a45;
  --shadow: 0 16px 36px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled, input:disabled, select:disabled, textarea:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #111827, #173b3a);
}
.login-screen.hidden { display: none; }
.login-card {
  width: min(480px, 100%);
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  display: grid;
  gap: 16px;
}
.login-card .brand {
  padding: 0 0 16px;
  border-bottom-color: var(--line);
  color: var(--ink);
}
.login-card .brand-subtitle { color: var(--muted); }
.login-card h1 { font-size: 24px; margin: 0; }
.login-card p, .login-note { color: var(--muted); line-height: 1.6; font-size: 13px; }
.login-note {
  border-left: 4px solid var(--primary);
  background: #f7fbfa;
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #121a26;
  color: #eef4fb;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 6px 6px 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary-2);
  font-weight: 800;
}

.brand-title { font-size: 17px; font-weight: 800; }
.brand-subtitle { margin-top: 3px; color: #9fb0c5; font-size: 12px; }

.nav { display: grid; gap: 6px; }
.nav button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c9d4e5;
  padding: 12px;
  text-align: left;
}
.nav button:hover, .nav button.active { background: rgba(255,255,255,.1); color: #fff; }

.side-metrics {
  margin-top: auto;
  display: none !important;
  gap: 10px;
}
.mobile-metrics-toggle { display: none !important; }
.side-metrics div {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,.06);
}
.side-metrics span { display: block; color: #a9b8cc; font-size: 12px; }
.side-metrics strong { display: block; margin-top: 6px; font-size: 18px; }
.side-logout {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: #eef4fb;
  min-height: 38px;
  font-weight: 800;
}
.side-logout:hover { background: rgba(255,255,255,.12); }

.main { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 84px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
}
.eyebrow { color: var(--muted); font-size: 13px; }
h1 { margin: 4px 0 0; font-size: 24px; line-height: 1.2; }
h2 { margin: 0; font-size: 17px; }
h3 { margin: 0 0 10px; font-size: 16px; }
p { margin: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.btn {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 8px 13px;
  font-weight: 700;
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.secondary { background: #fff; border-color: var(--line); color: var(--ink); }

.view { display: none; padding: 24px; }
.view.active { display: block; }

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.input-panel, .analysis-panel, .report {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-section {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.form-section:last-child { border-bottom: 0; }
.section-head {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.55; }
.step-index {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f3f1;
  color: var(--primary);
  font-weight: 800;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
label {
  display: grid;
  gap: 6px;
  color: #354255;
  font-size: 13px;
  font-weight: 700;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 11px;
  outline: none;
}
textarea { min-height: 82px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(35,139,127,.12); }
.form-section > label { margin-top: 12px; }
.form-subhead {
  margin: 18px 0 10px;
  padding: 10px 12px;
  border-left: 4px solid var(--primary);
  background: #f7fbfa;
  color: var(--primary);
  font-weight: 800;
  border-radius: 0 8px 8px 0;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.check-grid label {
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--surface-soft);
  font-weight: 650;
}
.check-grid input { width: 16px; height: 16px; }

.analysis-panel {
  position: sticky;
  top: 108px;
  overflow: hidden;
}
.score-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  background: #f7fbfa;
  border-bottom: 1px solid var(--line);
}
.score-card span { color: var(--muted); font-size: 13px; }
.score-card strong { display: block; font-size: 48px; line-height: 1; margin-top: 6px; }
.decision-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  background: #e8f3f1;
  color: var(--primary);
  font-weight: 800;
}
.panel-block { padding: 18px; border-bottom: 1px solid var(--line); }
.panel-block:last-child { border-bottom: 0; }
.readiness-meter { display: grid; gap: 10px; margin-top: 12px; }
.readiness-meter > strong { font-size: 32px; color: var(--primary); }
.readiness-meter p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.readiness-meter .decision-pill { font-size: 12px; }
.insight-list { display: grid; gap: 10px; margin-top: 12px; }
.insight {
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--primary);
  background: var(--surface-soft);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
}
.insight strong { font-size: 13px; }
.insight span { color: var(--muted); font-size: 12px; line-height: 1.55; }

.mini-table, .report-table {
  width: 100%;
  border-collapse: collapse;
}
.mini-table th, .mini-table td, .report-table th, .report-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}
.mini-table th, .report-table th {
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
}

.report {
  padding: 24px;
}
.report-cover {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 20px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.report-title { font-size: 30px; font-weight: 850; line-height: 1.2; }
.report-subtitle { color: var(--muted); margin-top: 10px; line-height: 1.6; }
.decision-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.summary-cell {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.summary-cell span { display: block; color: var(--muted); font-size: 12px; }
.summary-cell strong { display: block; margin-top: 6px; font-size: 18px; }
.report-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.report-section:last-child { border-bottom: 0; }
.report-section > h2 { margin-bottom: 12px; }
.pdf-page {
  min-height: 720px;
  display: grid;
  align-content: start;
}
.pdf-page h2 {
  font-size: 20px;
  margin-bottom: 16px;
}
.pdf-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.chart-panel {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}
.radar-wrap { display: grid; place-items: center; min-height: 240px; }
.bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 76px;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  font-size: 13px;
}
.bar-track { height: 16px; border-radius: 999px; background: #edf1f5; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--primary-2); }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf7f5;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  margin: 2px 4px 2px 0;
}
.tag.warn { background: #fff6e7; color: var(--amber); }
.tag.danger { background: #fff0f0; color: var(--red); }
.tag.blue { background: #edf4ff; color: var(--blue); }
.quote {
  border-left: 4px solid var(--primary);
  padding: 10px 12px;
  background: #f7fbfa;
  border-radius: 0 8px 8px 0;
  color: #344255;
  line-height: 1.7;
}

.visual-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.visual-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}
.visual-card .kicker { color: var(--muted); font-size: 12px; }
.visual-card .big { margin-top: 6px; font-size: 22px; font-weight: 850; line-height: 1.25; }
.visual-card .small { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.value-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.matrix-cell {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  display: grid;
  gap: 8px;
  align-content: start;
}
.matrix-cell strong { font-size: 15px; }
.matrix-cell span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.meter {
  height: 10px;
  border-radius: 999px;
  background: #edf1f5;
  overflow: hidden;
}
.meter > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--primary-2);
}
.funnel {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
}
.funnel-step {
  min-height: 54px;
  margin: 0 auto;
  border-radius: 8px;
  background: #edf7f5;
  border: 1px solid #cfe6e2;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px 16px;
}
.funnel-step strong { display: block; }
.funnel-step span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.funnel-step:nth-child(1) { width: 100%; }
.funnel-step:nth-child(2) { width: 86%; }
.funnel-step:nth-child(3) { width: 72%; }
.funnel-step:nth-child(4) { width: 58%; background: #fff6e7; border-color: #f1d5a7; }
.timeline-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.timeline-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  min-height: 130px;
}
.timeline-card strong { display: block; font-size: 18px; }
.timeline-card p { margin-top: 9px; color: var(--muted); line-height: 1.55; font-size: 13px; }
.comparison-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.comparison-grid > div {
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 44px;
  background: #fff;
}
.comparison-grid > div:nth-child(5n) { border-right: 0; }
.comparison-grid .head { background: #f8fafc; color: var(--muted); font-weight: 800; font-size: 12px; }
.score-dot {
  display: inline-flex;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #edf7f5;
  color: var(--primary);
  font-weight: 850;
}
.opportunity-strip {
  display: grid;
  gap: 10px;
}
.strip-row {
  display: grid;
  grid-template-columns: 160px 1fr 84px;
  gap: 10px;
  align-items: center;
}
.strip-row strong { font-size: 13px; }
.strip-row span { color: var(--muted); font-size: 12px; }
.two-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ledger-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}
.ledger-card h3 { margin-bottom: 12px; }
.ledger-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.ledger-item:last-child { border-bottom: 0; }
.ledger-item span { color: var(--muted); }
.ledger-item strong { text-align: right; }

@media (max-width: 1180px) {
  .work-grid { grid-template-columns: 1fr; }
  .analysis-panel { position: static; }
}
@media (max-width: 880px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .topbar { position: static; align-items: flex-start; flex-direction: column; }
  .field-grid, .check-grid, .report-cover, .report-grid, .visual-board, .value-matrix, .timeline-cards, .two-ledger { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .comparison-grid > div { border-right: 0; }
  .view { padding: 14px; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .sidebar, .topbar, #workspace { display: none !important; }
  .app-shell { display: block; }
  .view { display: block !important; padding: 0; }
  #internal { display: none !important; }
  .report { border: 0; box-shadow: none; border-radius: 0; padding: 0; }
  .report-cover { min-height: 260px; break-after: page; }
  .report-section {
    min-height: 248mm;
    break-after: page;
    page-break-after: always;
    break-inside: avoid;
    page-break-inside: avoid;
    border-bottom: 0;
    padding: 0;
  }
  .report-section.pdf-page { break-after: page; page-break-after: always; border-bottom: 0; padding: 0; }
  .report-table th, .report-table td { padding: 7px 8px; font-size: 11px; }
  .quote { font-size: 12px; }
  .matrix-cell, .timeline-card, .ledger-card, .visual-card { box-shadow: none; }
}

.generation-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #f7fbfa;
  border-top: 1px solid var(--line);
}
.generation-actions p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.generation-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.action-panel {
  display: grid;
  gap: 10px;
}
.action-panel .btn {
  width: 100%;
}
@media (max-width: 880px) {
  .generation-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .generation-buttons {
    justify-content: stretch;
  }
  .generation-buttons .btn {
    width: 100%;
  }
}
.workflow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 18px;
}
.workflow-step, .workflow-actions {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow);
}
.workflow-step strong {
  display: block;
  color: var(--primary);
  font-size: 15px;
}
.workflow-step span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin-top: 6px;
}
.workflow-actions {
  min-width: 210px;
  display: grid;
  gap: 10px;
}
@media (max-width: 1180px) {
  .workflow-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .workflow-strip { grid-template-columns: 1fr; }
}
.version-banner {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  margin: 12px 0 16px;
  border: 1px solid #b7d8d5;
  background: #effaf8;
  border-radius: 8px;
  color: #123835;
}
.version-banner strong { font-size: 15px; }
.version-banner span { color: #47625f; font-size: 13px; line-height: 1.5; }
.main { padding-bottom: 92px; }
.sticky-generate-bar {
  position: sticky;
  top: 76px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin: 0 24px 16px;
  background: #fff;
  border: 1px solid #b7d8d5;
  box-shadow: 0 14px 36px rgba(21, 69, 65, 0.14);
  border-radius: 8px;
}
.sticky-generate-bar div { display: grid; gap: 3px; }
.sticky-generate-bar strong { color: var(--ink); font-size: 15px; }
.sticky-generate-bar span { color: var(--muted); font-size: 12px; line-height: 1.5; }
@media (max-width: 1180px) {
  .sticky-generate-bar { grid-template-columns: 1fr; }
  .sticky-generate-bar .btn { width: 100%; }
}
@media print {
  .sticky-generate-bar, .version-banner { display: none !important; }
}

/* 招商小白模式：默认只显示两步和一套按钮 */
.simple-guide {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px 18px;
  color: #173f3b;
  background: #effaf8;
  border: 1px solid #b7d8d5;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.simple-guide strong { font-size: 17px; }
.beginner-task-home {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid #b7ddd6;
  border-radius: 18px;
  background: linear-gradient(135deg, #eaf9f6 0%, #fffaf0 100%);
  box-shadow: 0 8px 24px rgba(23, 117, 111, .08);
}
.beginner-task-title h2 { margin: 9px 0 6px; color: #173f3b; font-size: 25px; }
.beginner-task-title p { margin: 0 0 17px; color: #536b68; font-size: 15px; }
.beginner-task-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 11px; }
.beginner-task-grid button {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 15px;
  border: 2px solid #d6e5e2;
  border-radius: 14px;
  color: #173f3b;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.beginner-task-grid button:hover { transform: translateY(-2px); border-color: #17756f; box-shadow: 0 8px 18px rgba(23,117,111,.12); }
.beginner-task-grid button > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: #17756f; font-weight: 900; }
.beginner-task-grid button strong { font-size: 16px; line-height: 1.35; }
.beginner-task-grid button small { color: #64748b; line-height: 1.45; }
@media (max-width: 1100px) { .beginner-task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .beginner-task-home { padding: 16px 13px; border-radius: 14px; }
  .beginner-task-title h2 { font-size: 20px; }
  .beginner-task-grid { grid-template-columns: 1fr; }
  .beginner-task-grid button { min-height: 94px; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; align-items: center; }
  .beginner-task-grid button > span { grid-row: 1 / 3; }
}

/* 房源卡片墙与单套房源七维画像 */
.property-board { display: grid; gap: 14px; }
.property-project-group { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.property-project-group > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.property-project-group > header h3, .property-project-group > header p { margin: 0; }
.property-project-group > header h3 { color: #172033; font-size: 17px; }
.property-project-group > header p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.property-project-group > header > span { padding: 5px 9px; color: #0f766e; background: #eaf7f5; border-radius: 999px; font-size: 12px; font-weight: 700; }
.property-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 9px; }
.property-unit-card { display: grid; gap: 8px; min-height: 145px; padding: 13px; color: #273244; text-align: left; background: #fff; border: 1px solid #d6e0e5; border-radius: 9px; box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.property-unit-card:hover { border-color: #72bcb4; box-shadow: 0 5px 15px rgba(15,118,110,.09); transform: translateY(-1px); }
.property-unit-card.vacant { background: #fff; border-color: #b9d8d4; }
.property-unit-card.leased { background: #f2fbf7; border-color: #a7e0c4; }
.property-unit-card.locked { min-height: 76px; cursor: default; }
.property-unit-card.locked:hover { border-color: #a7e0c4; box-shadow: none; transform: none; }
.property-unit-card.selected { border-color: #e34b4b; box-shadow: 0 0 0 2px rgba(227,75,75,.15); }
.property-unit-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.property-unit-head strong { color: #172033; font-size: 18px; }
.property-unit-head span { padding: 3px 7px; color: #0f766e; background: #e9f7f5; border-radius: 999px; font-size: 11px; font-weight: 800; }
.property-unit-card > p { min-height: 38px; margin: 0; overflow: hidden; color: #475569; font-size: 13px; font-weight: 600; line-height: 1.45; }
.property-unit-facts, .property-unit-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.property-unit-facts span { color: #64748b; font-size: 12px; }
.property-unit-facts span + span::before { content: "·"; margin-right: 5px; }
.property-unit-tags em { padding: 3px 7px; color: #0f766e; background: #e7f7ef; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 700; }
body.property-portrait-open { overflow: hidden; }
.property-portrait-overlay { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 22px; background: rgba(15, 23, 42, .56); backdrop-filter: blur(3px); }
.property-portrait-dialog { width: min(1120px, 100%); max-height: calc(100vh - 44px); padding: 18px; overflow: auto; background: #f7faf9; border: 1px solid #cfe2df; border-radius: 16px; box-shadow: 0 24px 70px rgba(15, 23, 42, .26); }
.property-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 12px; padding: 16px; border: 1px solid #cfe2df; border-radius: 10px; background: #f3f9f8; }
.property-detail-head h2 { margin: 7px 0 3px; color: #172033; font-size: 22px; }
.property-detail-head p { margin: 0; color: var(--muted); font-size: 13px; }
.property-capture-panel { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.8fr); gap: 16px; margin-bottom: 14px; padding: 16px; color: #fff; background: #103f3a; border-radius: 12px; }
.property-capture-panel h3 { margin: 7px 0 6px; color: #fff; font-size: 19px; }
.property-capture-panel p { margin: 0; color: #cce6e2; font-size: 13px; line-height: 1.55; }
.property-capture-panel .ops-step-chip { color: #073b36; background: #b8eee5; }
.property-capture-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.property-capture-actions button { display: grid; gap: 4px; min-height: 68px; padding: 10px 11px; color: #123f3b; text-align: left; background: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; }
.property-capture-actions button:hover { background: #effcf9; border-color: #78d1c4; }
.property-capture-actions strong { font-size: 14px; }
.property-capture-actions span { color: #687b79; font-size: 11px; line-height: 1.35; }
.property-dimension-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 10px; }
.property-dimension-grid article { min-height: 175px; padding: 14px; border: 1px solid #dce5e8; border-radius: 10px; background: #fff; }
.property-dimension-grid article > span { color: #0f766e; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.property-dimension-grid h3 { margin: 6px 0 9px; color: #1e293b; font-size: 16px; }
.property-dimension-grid ul { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: #526174; font-size: 13px; line-height: 1.45; }
.property-dimension-grid .ai-dimension { color: #fff; background: #123f3b; border-color: #123f3b; }
.property-dimension-grid .ai-dimension > span, .property-dimension-grid .ai-dimension h3 { color: #fff; }
.property-dimension-grid .ai-dimension ul { color: #d9f1ed; }
.property-evidence-detail { margin-top: 10px; padding: 0 14px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.property-evidence-detail > summary { padding: 13px 0; color: #0f766e; cursor: pointer; font-weight: 800; }
.property-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; }
.property-media-grid article { overflow: hidden; border: 1px solid #d9e4e2; border-radius: 9px; background: #fff; }
.property-media-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #edf2f1; }
.property-media-grid article > div { display: grid; gap: 3px; padding: 8px; color: #30413f; font-size: 12px; overflow-wrap: anywhere; }
.property-media-grid small { color: #71817f; font-size: 10px; }
.property-voice-overlay { z-index: 1400; }
.property-voice-dialog { width: min(620px, calc(100vw - 28px)); }
.property-voice-control { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px; background: #eff8f6; border-radius: 9px; }
.property-voice-control span { color: #47645f; font-size: 12px; }
.ops-hub-tabs { position: sticky; top: 0; z-index: 8; display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 7px; margin-bottom: 12px; padding: 7px; background: rgba(247,250,249,.96); border: 1px solid #d6e3e0; border-radius: 11px; backdrop-filter: blur(5px); }
.ops-hub-tabs button { min-height: 45px; padding: 8px 10px; color: #53646f; background: #fff; border: 1px solid #d9e3e6; border-radius: 8px; font-weight: 750; }
.ops-hub-tabs button.active { color: #fff; background: #14796f; border-color: #14796f; box-shadow: 0 4px 12px rgba(20,121,111,.18); }
.ops-hub-content { min-width: 0; }
.crm-ai-home { display: grid; gap: 12px; }
.crm-ai-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; color: #fff; background: linear-gradient(135deg, #103f3a, #176e64); border-radius: 13px; }
.crm-ai-hero h2 { margin: 7px 0 6px; color: #fff; font-size: 23px; }
.crm-ai-hero p { max-width: 760px; margin: 0; color: #d8efeb; line-height: 1.55; }
.crm-ai-hero .btn { flex: 0 0 auto; color: #0d4e47; background: #fff; border-color: #fff; }
.crm-ai-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.crm-ai-kpis article { padding: 14px; background: #fff; border: 1px solid #d9e4e2; border-radius: 10px; }
.crm-ai-kpis span { display: block; color: #718078; font-size: 12px; }
.crm-ai-kpis strong { display: block; margin-top: 5px; color: #173e39; font-size: 23px; }
.crm-ai-filter { display: flex; flex-wrap: wrap; gap: 7px; }
.crm-ai-filter button { min-height: 38px; padding: 7px 14px; color: #52645f; background: #fff; border: 1px solid #d4dfdd; border-radius: 999px; }
.crm-ai-filter button.active { color: #fff; background: #177a70; border-color: #177a70; }
.crm-ai-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 11px; }
.crm-deal-card { display: grid; gap: 11px; padding: 16px; background: #fff; border: 1px solid #d7e2df; border-radius: 12px; box-shadow: 0 5px 18px rgba(15, 63, 58, .05); }
.crm-deal-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.crm-deal-card > header span { color: #14776e; font-size: 11px; font-weight: 800; }
.crm-deal-card h3 { margin: 4px 0; color: #1b2e2b; font-size: 18px; }
.crm-deal-card header p { margin: 0; color: #718078; font-size: 12px; }
.crm-health { display: grid; place-items: center; flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%; background: #edf5f3; }
.crm-health strong { color: #24786e; font-size: 18px; line-height: 1; }
.crm-health small { color: #718078; font-size: 8px; }
.crm-health.mid { background: #fff6df; }
.crm-health.mid strong { color: #a26a00; }
.crm-health.risk { background: #fff0ef; }
.crm-health.risk strong { color: #bd3d36; }
.crm-deal-evidence { display: flex; flex-wrap: wrap; gap: 6px; }
.crm-deal-evidence span { padding: 4px 8px; color: #52645f; background: #f1f6f5; border-radius: 999px; font-size: 11px; }
.crm-alert, .crm-confirmed { padding: 9px 10px; color: #8a4d11; background: #fff8e8; border-radius: 8px; font-size: 12px; }
.crm-confirmed { color: #176c52; background: #ecf8f3; }
.crm-ai-advice { display: grid; gap: 5px; padding: 12px; background: #eff9f7; border-left: 3px solid #178176; border-radius: 0 9px 9px 0; }
.crm-ai-advice > span { color: #14776e; font-size: 10px; font-weight: 800; }
.crm-ai-advice > strong { color: #183d38; font-size: 14px; }
.crm-ai-advice p { margin: 0; color: #53645f; font-size: 12px; line-height: 1.5; }
.crm-risk-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.crm-risk-tags em { padding: 4px 7px; color: #a23e38; background: #fff0ef; border-radius: 999px; font-size: 10px; font-style: normal; }
.crm-deal-card > footer { display: flex; flex-wrap: wrap; gap: 7px; }
.crm-deal-card > footer .btn { min-height: 38px; }

@media (max-width: 600px) {
  .property-project-group { padding: 11px; }
  .property-card-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .property-unit-card { min-height: 138px; padding: 10px; }
  .property-unit-card.locked { min-height: 76px; }
  .property-unit-head strong { font-size: 16px; }
  .property-unit-card > p { font-size: 12px; }
  .property-portrait-overlay { align-items: end; padding: 0; }
  .property-portrait-dialog { width: 100%; max-height: 94vh; padding: 12px; border-radius: 18px 18px 0 0; }
  .property-detail-head { flex-direction: column; }
  .property-detail-head .btn { width: 100%; }
  .property-capture-panel { grid-template-columns: 1fr; padding: 13px; }
  .property-capture-actions { grid-template-columns: 1fr 1fr; }
  .property-capture-actions button { min-height: 76px; }
  .property-dimension-grid { grid-template-columns: 1fr; }
  .ops-hub-tabs { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 5px; }
  .ops-hub-tabs button { min-height: 46px; padding: 7px 4px; font-size: 13px; }
  .crm-ai-hero { align-items: stretch; flex-direction: column; padding: 16px; }
  .crm-ai-kpis { grid-template-columns: 1fr 1fr; }
  .crm-ai-list { grid-template-columns: 1fr; }
  .crm-deal-card > footer { display: grid; grid-template-columns: 1fr; }
}
.advanced-action { display: inline-flex; }
body.simple-mode .advanced-action { display: none !important; }
body[data-view="workspace"] .report-only-action { display: none !important; }
body[data-view="client"] .workspace-only-action { display: none !important; }

body.simple-mode .form-section:has([name="budgetConfirmed"]),
body.simple-mode .form-section:has([name="policyEvidence"]),
body.simple-mode .form-section:has([name="visitorRole"]),
body.simple-mode .form-section:has([name="customerGrade"]),
body.simple-mode .form-section:has([name="negotiableItems"]),
body.simple-mode .form-section:has([name="district"]) {
  display: none;
}

body.simple-mode .form-subhead,
body.simple-mode label:has([name="leadSource"]),
body.simple-mode label:has([name="brokerName"]),
body.simple-mode label:has([name="infoLevel"]),
body.simple-mode label:has([name="dealStage"]),
body.simple-mode label:has([name="industryChain"]),
body.simple-mode label:has([name="moveDays"]),
body.simple-mode label:has([name="preferredArea"]),
body.simple-mode label:has([name="orientationNeed"]),
body.simple-mode label:has([name="floorNeed"]),
body.simple-mode label:has([name="tabooNeed"]),
body.simple-mode label:has([name="contentPlatform"]),
body.simple-mode label:has([name="contentTopic"]),
body.simple-mode label:has([name="searchPhrase"]),
body.simple-mode label:has([name="leadCta"]),
body.simple-mode label:has([name="firstInquiryAt"]),
body.simple-mode label:has([name="lostReason"]),
body.simple-mode label:has([name="industryPain"]),
body.simple-mode label:has([name="operationPain"]),
body.simple-mode label:has([name="aiFdeNeeds"]),
body.simple-mode label:has([name="opcTrafficNeed"]),
body.simple-mode label:has([name="industryCompetitors"]),
body.simple-mode label:has([name="peerLocationPattern"]),
body.simple-mode label:has([name="competitorAdvantage"]),
body.simple-mode label:has([name="depositMonths"]),
body.simple-mode label:has([name="payMonths"]),
body.simple-mode label:has([name="fitoutCost"]),
body.simple-mode label:has([name="furnitureCost"]),
body.simple-mode label:has([name="moveCost"]),
body.simple-mode label:has([name="freeDays"]),
body.simple-mode label:has([name="operatorPositioning"]),
body.simple-mode label:has([name="serviceEvidence"]),
body.simple-mode label:has([name="day60Plan"]) {
  display: none !important;
}
body.simple-mode label:has([name="currentOffice"]),
body.simple-mode label:has([name="moveTime"]),
body.simple-mode label:has([name="unit"]),
body.simple-mode label:has([name="propertyFee"]),
body.simple-mode label:has([name="monthlyOperatingCost"]),
body.simple-mode label:has([name="preMovePlan"]),
body.simple-mode label:has([name="day30Plan"]),
body.simple-mode label:has([name="day90Plan"]) {
  display: none !important;
}

.condition-list {
  margin: 10px 0 16px;
  padding-left: 24px;
  line-height: 1.75;
}
.report-section .report-table {
  font-size: 12px;
}
.report-section .report-table th,
.report-section .report-table td {
  overflow-wrap: anywhere;
}

body.simple-mode .analysis-panel .panel-block:not(:has(#readinessBox)) {
  display: none;
}
body.simple-mode .analysis-panel {
  top: 96px;
}
body.simple-mode .input-panel > .form-section {
  border-bottom: 10px solid #f3f6f8;
}
body.simple-mode .step-index {
  width: 38px;
  height: 38px;
  font-size: 18px;
}
body.simple-mode .office-picker-section .step-index {
  font-size: 0;
}
body.simple-mode .office-picker-section .step-index::after {
  content: "2";
  font-size: 18px;
}

/* V15 分板块点选与语音自动填写 */
.input-panel > .legacy-form-section { display: none !important; }
.input-panel > .office-picker-section { display: none !important; }
.input-panel > .office-picker-section.wizard-visible { display: block !important; }
.intake-wizard {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.intake-methods {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.2fr);
  gap: 14px;
  margin-bottom: 18px;
}
.manual-intake-card,
.voice-intake-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px 18px;
  align-items: center;
  padding: 18px;
  color: #173f3b;
  background: linear-gradient(135deg, #eaf9f6, #f4f1ff);
  border: 1px solid #acd5d0;
  border-radius: 12px;
}
.manual-intake-card { background: linear-gradient(135deg, #fff8e9, #fff); border-color: #e8c987; }
.manual-intake-card > div:first-child,
.voice-intake-card > div:first-child { display: grid; gap: 5px; }
.manual-intake-card strong,
.voice-intake-card strong { font-size: 18px; }
.manual-intake-card span,
.voice-intake-card span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.manual-start { min-width: 132px; color: #fff; background: #b56a00; }
.broker-stats-card { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfc; }
.broker-stats-card summary { padding: 14px 16px; color: var(--primary); cursor: pointer; font-size: 16px; font-weight: 800; }
.broker-stats-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 0 16px 12px; }
.broker-stats-toolbar span { flex: 1 1 280px; color: var(--muted); font-size: 13px; }
.broker-table-wrap { overflow-x: auto; max-width: 100%; padding: 0 16px 16px; }
.broker-stats-table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 14px; }
.broker-stats-table th, .broker-stats-table td { padding: 10px 9px; text-align: left; border-bottom: 1px solid var(--line); }
.broker-stats-table th { color: var(--muted); background: #f1f6f5; }
.broker-overview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; }
.broker-overview-head > div { display: grid; gap: 4px; }
.broker-overview-head strong { color: #115e59; font-size: 16px; }
.broker-overview-head span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.voice-actions { display: flex; gap: 10px; }
.voice-actions .btn { min-width: 112px; }
.voice-upload { color: #fff; background: var(--primary); }
.voice-record { color: #fff; background: #5b3fd3; }
.voice-status { grid-column: 1 / -1; padding: 9px 12px; color: #315b57; background: rgba(255,255,255,.72); border-radius: 8px; font-size: 13px; }
.voice-result { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.voice-result p { margin: 8px 0 0; padding: 10px; background: #fff; border-radius: 8px; white-space: pre-wrap; }
.intake-progress {
  display: grid;
  grid-template-columns: repeat(7, minmax(70px, 1fr));
  gap: 8px;
  margin: 0 0 20px;
  overflow-x: auto;
}
.intake-progress button {
  display: grid;
  place-items: center;
  gap: 5px;
  min-width: 76px;
  padding: 9px 6px;
  color: var(--muted);
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}
.intake-progress button span { display: grid; place-items: center; width: 25px; height: 25px; color: #fff; background: #9aa9a7; border-radius: 50%; font-weight: 800; }
.intake-progress button.active { color: var(--primary); background: #edf9f7; border-color: var(--primary); font-weight: 800; }
.intake-progress button.active span, .intake-progress button.done span { background: var(--primary); }
.intake-panel { display: none; }
.intake-panel.active { display: block; }
.intake-panel-head { margin-bottom: 16px; }
.intake-panel-head h2 { margin: 0 0 5px; font-size: 21px; }
.intake-panel-head p { margin: 0; color: var(--muted); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.simple-mode .intake-panel .choice-field,
.intake-panel .choice-field {
  display: grid !important;
  gap: 7px;
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}
.choice-field select { width: 100%; min-height: 48px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #b9c9c7; border-radius: 9px; font-size: 16px; }
.choice-field select:focus { outline: 3px solid rgba(23,117,111,.15); border-color: var(--primary); }
.choice-field[hidden] { display: none !important; }
.choice-field.choice-cards { grid-column: 1 / -1; min-width: 0; padding: 14px; border: 1px solid #d7e2e0; border-radius: 12px; background: #fbfdfd; }
.choice-field.choice-cards legend { padding: 0 6px; color: #173f3b; font-size: 17px; font-weight: 800; }
.choice-field.choice-cards > small,
.choice-field.choice-text > small { display: block; margin: 3px 0 8px; color: var(--muted); line-height: 1.5; }
.choice-text input { width: 100%; min-height: 50px; padding: 11px 13px; border: 1px solid #b9c9c7; border-radius: 9px; font-size: 16px; box-sizing: border-box; }
.intake-choice-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 9px; margin-top: 8px; }
.intake-choice-card { position: relative; cursor: pointer; }
.intake-choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.intake-choice-card span { min-height: 48px; display: grid; place-items: center; padding: 9px 10px; border: 2px solid #d6e0df; border-radius: 10px; background: #fff; color: #334b49; text-align: center; font-weight: 700; box-sizing: border-box; }
.intake-choice-card input:checked + span { border-color: #17756f; background: #e8f7f4; color: #0f5c56; box-shadow: 0 0 0 2px rgba(23,117,111,.12); }
.intake-other-text { display: none; gap: 6px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.intake-other-text.active { display: grid; }
.intake-other-text input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #b9c9c7; border-radius: 9px; box-sizing: border-box; }
.broker-entity-field { grid-column: 1 / -1; padding: 14px; border: 1px solid #e4d1a4; border-radius: 12px; background: #fffaf0; }
.broker-entity-field > span { color: #5f4511; font-size: 17px; font-weight: 800; }
.broker-entity-field > small, .field-help { color: #7a6b4b; line-height: 1.5; }
.broker-company-field { display: grid; gap: 6px; margin-top: 10px; color: #5f4511; font-weight: 800; }
.broker-company-field input { min-height: 48px; padding: 10px 12px; border: 1px solid #d8c28f; border-radius: 9px; background: #fff; font: inherit; }
.broker-entity-row { display: grid; grid-template-columns: minmax(200px, 1fr) auto; gap: 10px; margin-top: 8px; }
.broker-entity-row .btn { min-height: 48px; }
.broker-quick-overlay { position: fixed; inset: 0; z-index: 2200; display: grid; place-items: center; padding: 18px; background: rgba(15,23,42,.62); }
.broker-quick-dialog { width: min(480px, 100%); display: grid; gap: 14px; padding: 22px; border-radius: 18px; background: #fff; box-shadow: 0 22px 60px rgba(15,23,42,.25); }
.broker-quick-dialog h2, .broker-quick-dialog p { margin: 0; }
.broker-quick-dialog label { display: grid; gap: 6px; font-weight: 700; }
.broker-quick-dialog input { min-height: 48px; padding: 10px 12px; border: 1px solid #b9c9c7; border-radius: 9px; font: inherit; }
.broker-quick-actions { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 600px) {
  .intake-choice-options { grid-template-columns: 1fr 1fr; }
  .broker-entity-row { grid-template-columns: 1fr; }
  .broker-quick-overlay { align-items: end; padding: 0; }
  .broker-quick-dialog { border-radius: 18px 18px 0 0; }
}
.intake-nav { display: grid; grid-template-columns: 140px 1fr 180px; gap: 12px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.intake-nav span { text-align: center; color: var(--muted); font-weight: 700; }
body[data-view="workspace"] .work-grid { grid-template-columns: minmax(0, 1fr); }
body[data-view="workspace"] .analysis-panel { display: none; }

@media (max-width: 760px) {
  .simple-guide { grid-template-columns: 1fr; }
  .intake-wizard { padding: 14px; }
  .intake-methods { grid-template-columns: 1fr; }
  .manual-intake-card, .voice-intake-card { grid-template-columns: 1fr; padding: 14px; }
  .manual-start { width: 100%; }
  .voice-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .voice-status, .voice-result { grid-column: 1; }
  .choice-grid { grid-template-columns: 1fr; }
  .intake-nav { grid-template-columns: 1fr 1fr; }
  .intake-nav span { grid-column: 1 / -1; grid-row: 1; }
  .intake-nav button { grid-row: 2; width: 100%; }
}

/* V9 客户报告：全图表化决策看板 */
.cover-goal {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  background: var(--surface-soft);
  border-left: 4px solid var(--primary);
}
.cover-goal span, .visual-caption { color: var(--muted); font-size: 12px; }
.cover-goal strong { line-height: 1.5; }
.visual-caption { margin-top: 10px; }
.visual-subtitle { margin: 22px 0 10px; font-size: 15px; }
.viz-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.viz-fact-card {
  min-height: 170px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--primary-2);
  border-radius: 10px;
  background: var(--surface);
  display: grid;
  align-content: start;
  gap: 12px;
}
.viz-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--surface);
  background: var(--primary);
  font-weight: 800;
}
.viz-fact-card > strong { color: var(--muted); font-size: 12px; }
.viz-fact-card > b { line-height: 1.55; font-size: 15px; }
.viz-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf7f5;
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}
.viz-chip.warn { background: #fff1e8; color: var(--red); }
.viz-chip.mid { background: #fff6e7; color: var(--amber); }
.viz-chip.plain { background: #eef2f6; color: var(--muted); }
.criteria-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.criteria-card {
  min-height: 185px;
  padding: 16px;
  border-radius: 10px;
  background: var(--surface-soft);
  display: grid;
  align-content: start;
  gap: 11px;
}
.criteria-card > span, .criteria-card > small { color: var(--muted); }
.criteria-card > strong { font-size: 20px; }
.criteria-card > small { line-height: 1.5; }
.criteria-line { height: 8px; border-radius: 999px; background: #dfe8e7; overflow: hidden; }
.criteria-line i { display: block; width: 100%; height: 100%; background: var(--primary-2); }
.condition-chain {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}
.condition-node {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
}
.condition-node b { color: var(--primary); font-size: 22px; }
.condition-node span { line-height: 1.45; }
.condition-arrow, .flow-arrow { color: var(--primary); font-size: 24px; font-style: normal; font-weight: 800; text-align: center; }
.choice-hero {
  display: grid;
  gap: 12px;
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e7f4f1, #f7fbfa);
  border: 1px solid #cfe6e2;
  text-align: center;
}
.choice-hero > span { color: var(--muted); font-size: 12px; }
.choice-hero > strong { font-size: 26px; }
.choice-reasons { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.office-choice-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.office-choice-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  display: grid;
  gap: 12px;
}
.office-choice-card.selected { border: 2px solid var(--primary); background: #f7fbfa; }
.office-choice-card header { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.office-choice-card header small { display: block; color: var(--muted); }
.office-choice-card header strong { display: block; margin-top: 4px; font-size: 22px; }
.rent-bar, .cost-track { position: relative; min-height: 34px; border-radius: 8px; background: #e8edf2; overflow: hidden; }
.rent-bar i, .cost-track i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: var(--primary-2); }
.rent-bar b, .cost-track b { position: relative; z-index: 1; display: block; padding: 7px 10px; color: var(--surface); }
.office-tags, .cost-flags { display: flex; flex-wrap: wrap; gap: 5px; }
.office-verdict { padding: 11px; border-left: 4px solid var(--green); background: #f1f8f4; }
.office-verdict.warn { border-color: var(--amber); background: #fff8eb; }
.office-verdict span { display: block; color: var(--muted); font-size: 11px; }
.office-verdict strong { display: block; margin-top: 5px; line-height: 1.45; font-size: 13px; }
.outcome-flow, .service-flow { display: grid; gap: 12px; }
.outcome-row {
  display: grid;
  grid-template-columns: .8fr auto 1.2fr auto 1.2fr;
  gap: 10px;
  align-items: stretch;
}
.flow-node {
  padding: 13px;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
.flow-node.result { background: #edf7f5; border-color: #cfe6e2; }
.flow-node span, .service-lane span { display: block; color: var(--muted); font-size: 11px; }
.flow-node strong, .service-lane strong { display: block; margin-top: 6px; line-height: 1.45; font-size: 13px; }
.service-lane {
  display: grid;
  grid-template-columns: 1fr auto 1.25fr auto 1.2fr auto 1fr;
  gap: 8px;
  align-items: stretch;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-soft);
}
.service-lane > div { padding: 9px; }
.service-lane > i { align-self: center; color: var(--primary); font-style: normal; font-size: 20px; font-weight: 800; }
.cost-board { display: grid; gap: 15px; }
.budget-reference { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 10px; background: #edf4ff; color: var(--blue); }
.cost-row { display: grid; grid-template-columns: 100px 1fr 260px; gap: 12px; align-items: center; }
.cost-horizon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.cost-horizon-grid article { padding: 13px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 9px; }
.cost-horizon-grid article > div { display: flex; justify-content: space-between; gap: 10px; padding-top: 7px; border-top: 1px solid var(--line); }
.cost-horizon-grid span { color: var(--muted); }
.cost-method-strip { display: flex; flex-wrap: wrap; gap: 7px; }
.check-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.check-card { min-height: 145px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; display: grid; align-content: start; gap: 7px; }
.check-card > b { color: var(--primary); font-size: 18px; }
.check-card > span, .check-card > small { color: var(--muted); line-height: 1.4; }
.evidence-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.evidence-summary > span { color: var(--muted); font-size: 12px; }
.evidence-board, .risk-board, .scope-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.evidence-card, .risk-card, .scope-card {
  min-height: 155px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 10px;
  display: grid;
  align-content: start;
  gap: 8px;
  background: var(--surface);
}
.evidence-card.warn, .risk-card.high, .scope-card.warn { border-top-color: var(--red); }
.evidence-card.mid, .risk-card.medium, .scope-card.mid { border-top-color: var(--amber); }
.evidence-card header, .risk-card header { display: flex; justify-content: space-between; gap: 8px; }
.evidence-card > span, .risk-card > span, .scope-card > span { color: var(--muted); line-height: 1.4; }
.evidence-card > small, .risk-card > small { color: var(--muted); }
.risk-action { padding: 8px; border-radius: 7px; background: var(--surface-soft); line-height: 1.4; }
.scope-card { min-height: 120px; grid-template-columns: 86px 1fr; align-items: start; }
.scope-card strong { line-height: 1.45; }
.visual-timeline, .decision-path {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}
.timeline-step, .decision-step {
  min-height: 112px;
  padding: 13px;
  border-radius: 10px;
  background: #edf7f5;
  border: 1px solid #cfe6e2;
  display: grid;
  align-content: start;
  gap: 8px;
}
.timeline-step b, .decision-step b { color: var(--primary); }
.timeline-step span, .decision-step strong { line-height: 1.4; }
.timeline-step small, .decision-step span { color: var(--muted); line-height: 1.35; }
.visual-timeline > i, .decision-path > i { color: var(--primary); font-size: 22px; font-style: normal; font-weight: 800; }
.final-choice {
  padding: 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e7f4f1, #f7fbfa);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.final-choice > span { color: var(--muted); }
.final-choice > strong { font-size: 30px; }
.decision-path { grid-template-columns: 1fr auto 1fr auto 1fr; }
.decision-step { min-height: 145px; background: var(--surface); border-color: var(--line); }
.decision-step b { font-size: 25px; }
.decision-boundary { margin-top: 20px; display: flex; justify-content: space-between; gap: 14px; padding: 13px 15px; background: var(--surface-soft); border-left: 4px solid var(--primary); }
.decision-boundary span { color: var(--muted); }

@media (max-width: 980px) {
  .viz-card-grid, .criteria-cards, .evidence-board, .risk-board, .scope-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outcome-row, .service-lane, .cost-row { grid-template-columns: 1fr; }
  .flow-arrow, .service-lane > i { transform: rotate(90deg); }
  .cost-flags { padding-bottom: 8px; }
}

@media (max-width: 640px) {
  .viz-card-grid, .criteria-cards, .evidence-board, .risk-board, .scope-board { grid-template-columns: 1fr; }
  .condition-chain, .visual-timeline, .decision-path { grid-template-columns: 1fr; }
  .condition-arrow, .visual-timeline > i, .decision-path > i { transform: rotate(90deg); }
}

@media print {
  .viz-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .criteria-cards, .evidence-board, .risk-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .viz-fact-card, .criteria-card, .office-choice-card, .evidence-card, .risk-card, .check-card, .timeline-step, .decision-step { break-inside: avoid; box-shadow: none; }
  .report-section { overflow: hidden; }
  .viz-chip { font-size: 10px; }
  .office-verdict strong, .flow-node strong, .service-lane strong { font-size: 11px; }
}

.office-options {
  display: grid;
  gap: 16px;
}
.office-option-card {
  padding: 18px;
  border: 1px solid #cfd8dc;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(27, 57, 54, 0.06);
}
.office-option-card:has(.office-select input:checked) {
  border: 2px solid #16877c;
  background: #f4fbfa;
}
.office-select {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 800;
  color: #123f3a;
}
.office-select input,
.fee-checks input,
.feature-checks input {
  width: 20px;
  height: 20px;
  accent-color: #16877c;
}
.office-option-basic {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.office-option-basic input[readonly] {
  color: #182825;
  font-weight: 700;
  background: #f4f6f6;
  cursor: default;
}
.fee-checks {
  margin-bottom: 10px;
  padding: 10px 12px;
  background: #fff7df;
  border-radius: 8px;
}
.feature-checks {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fee-checks label,
.feature-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}
body.simple-mode .topbar .btn.primary {
  min-width: 150px;
  font-size: 16px;
}

.kimi-button {
  background: #5b3fd3;
  border-color: #5b3fd3;
  color: #fff;
  font-weight: 800;
}

.kimi-button:hover { background: #4930bd; }

.kimi-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 24, 35, 0.58);
}

.kimi-overlay.hidden { display: none; }

.kimi-dialog {
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: min(820px, 92vh);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.kimi-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.kimi-head div { display: grid; gap: 4px; }
.kimi-head strong { color: #1f2940; font-size: 22px; }
.kimi-head span { color: #687386; font-size: 14px; }

.kimi-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f0f2f5;
  color: #4b5563;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.kimi-quick {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 18px 10px;
}

.kimi-quick button {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid #d8d1ff;
  border-radius: 999px;
  background: #f5f2ff;
  color: #4930bd;
  font-weight: 700;
  cursor: pointer;
}

.kimi-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
  padding: 12px 18px;
  overflow-y: auto;
  background: #f7f8fb;
}

.kimi-message {
  max-width: 86%;
  padding: 11px 13px;
  border-radius: 13px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
}

.kimi-message.assistant {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #263044;
}

.kimi-message.user {
  align-self: flex-end;
  background: #5b3fd3;
  color: #fff;
}

.kimi-context {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 0;
  color: #556174;
  font-size: 14px;
}

.kimi-context input { width: 18px; height: 18px; }

.kimi-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px 18px 8px;
}

.kimi-compose textarea {
  min-height: 76px;
  resize: vertical;
  border: 1px solid #cfd5df;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
}

.kimi-compose button {
  min-width: 88px;
  border: 0;
  border-radius: 12px;
  background: #5b3fd3;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.kimi-compose button:disabled { opacity: 0.55; cursor: wait; }
.kimi-status { margin: 0; padding: 0 18px 16px; color: #7b8494; font-size: 13px; }

@media (max-width: 680px) {
  .kimi-overlay { align-items: end; padding: 0; }
  .kimi-dialog { width: 100%; max-height: 94vh; border-radius: 18px 18px 0 0; }
  .kimi-head { padding: 16px; }
  .kimi-messages { min-height: 220px; }
  .kimi-compose { grid-template-columns: 1fr; }
  .kimi-compose button { min-height: 44px; }
}

@media (max-width: 880px) {
  .simple-guide { grid-template-columns: 1fr; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 44%; }
  .office-option-basic,
  .feature-checks { grid-template-columns: 1fr; }
}

/* ===== 招商经营与顾问成长 V1 ===== */
.nav-divider {
  margin: 12px 8px 6px;
  padding: 4px 8px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}
.ops-banner {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #d7deea;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7f9fc 0%, #eef5f1 100%);
}
.ops-banner[hidden],
body.role-sales:not(.ops-debug) .ops-banner {
  display: none !important;
}
.ops-banner strong { font-size: 15px; }
.ops-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ops-status { color: #0f6a4c; font-weight: 600; }
.ops-module-mount { display: grid; gap: 14px; }
.ops-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ops-card, .ops-mini {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.ops-card h2, .ops-card h3 { margin: 0 0 8px; font-size: 16px; }
.ops-empty { padding: 18px; color: #64748b; border: 1px dashed #cbd5e1; border-radius: 12px; background: #f8fafc; }
.ops-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.ops-split { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 12px; }
.ops-list { display: grid; gap: 8px; align-content: start; max-height: 70vh; overflow: auto; }
.ops-list-item {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.ops-list-item small { display: block; color: #64748b; margin-top: 4px; }
.ops-detail { padding: 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; min-height: 240px; }
.ops-pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 10px;
  font-size: 12px;
  max-height: 420px;
  overflow: auto;
}
.ops-table-wrap { overflow: auto; }
.ops-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ops-table th, .ops-table td { border-bottom: 1px solid #e2e8f0; padding: 8px; text-align: left; }
.ops-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 10px 0; }
.ops-kv span { display: block; color: #64748b; font-size: 12px; }
.demo-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
}
.ops-action { padding: 10px; margin-bottom: 8px; border-left: 3px solid #0f6a4c; background: #f1f5f9; border-radius: 0 8px 8px 0; }
.ops-danger { color: #b91c1c; font-weight: 700; }
.ops-note { color: #64748b; font-size: 12px; }
.ops-audit { max-height: 280px; overflow: auto; padding-left: 18px; }
.ops-rounds { display: grid; gap: 8px; margin: 10px 0; }
.ops-round { padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.ops-evidence-list { display: grid; gap: 8px; margin: 10px 0; }
.ops-evidence-item { padding: 10px; border-radius: 8px; border: 1px solid #e2e8f0; background: #f8fafc; }
.ops-evidence-item.ok { border-color: #86efac; background: #f0fdf4; }
.ops-evidence-item.missing { border-color: #fcd34d; background: #fffbeb; }
.ops-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
body.ops-mode .workspace-only-action,
body.ops-mode .report-only-action { display: none !important; }
.ops-work-hero {
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ecfdf5, #f8fafc);
  border: 1px solid #cce7dc;
  margin-bottom: 12px;
}
.ops-work-hero h2 { margin: 0 0 6px; font-size: 18px; }
.ops-work-hero p { margin: 0 0 10px; color: #475569; }
.mobile-top-chrome { display: none; }
.mobile-metrics-toggle { display: none; }
@media (max-width: 880px) {
  .ops-split { grid-template-columns: 1fr; }
  .ops-banner-actions .btn { flex: 1 1 40%; }
}
/* 企业微信手机首屏：375—430px 先见品牌/标题/主动作与工作区，导航折叠 */
@media (max-width: 430px) {
  .mobile-top-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #0f3d3a;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 40;
  }
  .mobile-top-chrome .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }
  .mobile-top-chrome .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #1f6f68;
    font-weight: 800;
    flex: 0 0 auto;
  }
  .mobile-top-chrome strong {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-top-chrome .btn {
    min-height: 44px;
    flex: 0 0 auto;
    padding: 8px 12px;
  }
  .mobile-nav-toggle { min-width: 56px; }
  .app-shell {
    display: flex;
    flex-direction: column;
  }
  .sidebar {
    display: contents;
  }
  .sidebar > .brand {
    display: none;
  }
  .sidebar > .nav {
    order: 1;
    display: none;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #102f2d;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  body.mobile-nav-open .sidebar > .nav {
    display: flex;
  }
  .sidebar > .nav button {
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
    padding: 10px 14px;
  }
  .nav-divider {
    display: none;
  }
  .mobile-metrics-toggle {
    display: block;
    order: 3;
    margin: 8px 12px;
    min-height: 44px;
    width: calc(100% - 24px);
  }
  .side-metrics-collapsible,
  .sidebar > .side-metrics {
    order: 4;
    display: none;
    margin: 0 12px 16px;
  }
  body.mobile-metrics-open .side-metrics-collapsible,
  body.mobile-metrics-open .sidebar > .side-metrics {
    display: grid;
  }
  .main {
    order: 2;
    min-width: 0;
  }
  .topbar .eyebrow { display: none; }
  .topbar h1 { font-size: 18px; }
  .topbar .actions .btn { min-height: 44px; }
  .ops-banner { font-size: 13px; }
  .ops-module-mount { min-width: 0; }
  .ops-card, .ops-work-hero { overflow-wrap: anywhere; }
  body:not(.mobile-nav-open) .sidebar > .nav { display: none; }
}
/* 桌面侧栏不受手机折叠影响 */
@media (min-width: 431px) {
  .mobile-top-chrome,
  .mobile-metrics-toggle { display: none !important; }
  .sidebar > .nav { display: grid; }
  .sidebar > .side-metrics { display: grid; }
}

/* 任务004：九维动态场景与认证就绪度 */
.ops-dim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px 12px;
  margin: 10px 0 6px;
}
.ops-dim {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #374151;
}
.ops-dim select {
  min-height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 4px 8px;
  background: #fff;
}
#opsCertReadiness .ops-mini,
#opsDynamicScenarioPanel {
  margin-bottom: 10px;
}
#opsCoachPanel strong {
  font-weight: 700;
}

/* V20：资料不足时阻止生成伪准确报告 */
.report-data-gate {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .66);
}
.report-data-dialog {
  width: min(620px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .3);
}
.report-data-dialog h2 { margin: 10px 0 8px; color: #0f172a; }
.report-data-dialog p { color: #475569; line-height: 1.65; }
.missing-data-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.missing-data-tags span { padding: 7px 10px; border-radius: 999px; background: #fff7ed; color: #9a3412; font-weight: 750; }
.report-data-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.consulting-fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.consulting-fact-grid article { display: grid; gap: 6px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.consulting-fact-grid span { color: #64748b; font-size: 13px; }
.consulting-fact-grid strong { color: #0f172a; line-height: 1.55; }
.readiness-meter.consulting { margin-top: 10px; }
@media (max-width: 600px) {
  .report-data-gate { align-items: end; padding: 0; }
  .report-data-dialog { max-height: 92vh; padding: 18px 14px; border-radius: 20px 20px 0 0; }
  .report-data-actions .btn { min-height: 48px; flex: 1; }
}

/* 小白填写模式：用可点击卡片替代系统 prompt */
.ops-beginner-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(3px);
}
.ops-beginner-dialog {
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 22px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}
.ops-beginner-dialog header { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.ops-beginner-dialog h2 { margin: 8px 0 0; font-size: 24px; color: #0f172a; }
.ops-step-chip { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 12px; font-weight: 800; }
.ops-dialog-close { width: 42px; height: 42px; border: 0; border-radius: 12px; background: #f1f5f9; color: #475569; font-size: 28px; cursor: pointer; }
.ops-beginner-intro { margin: 14px 0 18px; padding: 12px 14px; border-radius: 12px; background: #eff6ff; color: #1e3a8a; line-height: 1.6; }
.ops-beginner-fields { display: grid; gap: 16px; }
.ops-beginner-field { display: grid; gap: 9px; margin: 0; padding: 15px; border: 1px solid #dbe4ee; border-radius: 14px; background: #fbfdff; }
.ops-beginner-field legend, .ops-beginner-field > strong { padding: 0 5px; color: #0f172a; font-size: 16px; font-weight: 800; }
.ops-beginner-field small { color: #64748b; line-height: 1.5; }
.ops-beginner-field input[type="text"], .ops-beginner-field input[type="number"], .ops-beginner-field input[type="date"], .ops-beginner-field input[type="tel"], .ops-beginner-field input[type="url"], .ops-beginner-field textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font: inherit; box-sizing: border-box;
}
.ops-beginner-field textarea { min-height: 92px; resize: vertical; }
.ops-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 9px; }
.ops-choice { position: relative; display: flex; cursor: pointer; }
.ops-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ops-choice span { width: 100%; min-height: 46px; display: grid; place-items: center; padding: 8px 10px; border: 2px solid #dbe4ee; border-radius: 11px; background: #fff; color: #334155; text-align: center; font-weight: 700; box-sizing: border-box; }
.ops-choice input:checked + span { border-color: #16836a; background: #ecfdf5; color: #065f46; box-shadow: 0 0 0 2px rgba(22, 131, 106, .12); }
.ops-other-input { display: grid; gap: 6px; color: #64748b; font-size: 13px; }
.ops-required { margin-left: 8px; padding: 2px 6px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-size: 11px; }
.ops-beginner-actions { position: sticky; bottom: -22px; display: flex; justify-content: flex-end; gap: 10px; margin: 20px -22px -22px; padding: 14px 22px; border-top: 1px solid #e2e8f0; background: rgba(255,255,255,.96); }
.ops-module-guide { display: grid; grid-template-columns: minmax(240px, 1.2fr) minmax(260px, 1fr); gap: 12px 24px; margin-bottom: 14px; padding: 16px; border: 1px solid #cfe5e2; border-radius: 8px; background: #f5fbfa; }
.ops-module-guide h2 { margin: 7px 0 5px; color: #115e59; font-size: 18px; }
.ops-module-guide p { color: #4b5563; line-height: 1.55; }
.ops-module-guide ol { display: grid; gap: 5px; margin: 0; padding-left: 22px; color: #374151; }
.ops-module-guide > strong { grid-column: 1 / -1; padding-top: 10px; color: #115e59; border-top: 1px solid #d9eeeb; }
.broker-portrait-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; margin: 12px 0; }
.broker-portrait-card { display: grid; gap: 12px; }
.broker-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.broker-card-head h3, .broker-card-head p { margin: 0; }
.broker-card-head p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.broker-profile-progress { display: grid; gap: 7px; }
.broker-profile-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.broker-profile-progress span { color: var(--muted); }
.broker-profile-progress i { display: block; height: 7px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.broker-profile-progress b { display: block; height: 100%; border-radius: inherit; background: #0f766e; }
.broker-profile-summary { display: grid; gap: 5px; padding: 10px 12px; border-radius: 9px; background: #f4f8f7; }
.broker-profile-summary p { margin: 0; color: #475569; font-size: 13px; line-height: 1.5; }
.broker-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.broker-inline-wizard { margin: 14px 0 18px; border: 1px solid #b9d8d4; background: #fff; }
.broker-inline-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.broker-inline-title h2 { margin: 7px 0 3px; font-size: 20px; }
.broker-inline-title p { margin: 0; color: var(--muted); font-size: 13px; }
.broker-inline-title > strong { display: grid; place-items: center; min-width: 62px; height: 40px; color: #0f766e; background: #e9f7f5; border-radius: 999px; font-size: 16px; }
.broker-profile-questions { display: grid; gap: 9px; }
.broker-profile-question .ops-beginner-field { padding: 0; border: 0; background: transparent; }
.broker-profile-question .ops-beginner-field legend,
.broker-profile-question .ops-beginner-field > strong { display: none; }
.broker-profile-question .question-content { display: block !important; }
.property-source-note { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; padding: 11px 13px; border: 1px solid #cfe2df; border-radius: 9px; background: #f3f9f8; }
.property-source-note div { display: grid; gap: 3px; }
.property-source-note strong { color: #134e4a; }
.property-source-note span, .property-source-note small { color: #64748b; font-size: 12px; }
.property-status-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.property-status-tabs button { min-height: 44px; color: #475569; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; font-weight: 700; }
.property-status-tabs button strong { margin-left: 5px; color: inherit; }
.property-status-tabs button.active { color: #fff; background: #0f766e; border-color: #0f766e; }
.broker-tier { min-width: 46px; padding: 6px 9px; color: #115e59; background: #eef6f5; border-radius: 999px; text-align: center; }
.broker-maintenance-advice { padding: 11px 12px; color: #374151; background: #f9fafb; border-left: 3px solid #0f766e; }
.broker-maintenance-advice p { margin-top: 4px; line-height: 1.5; }
.broker-bound-viewings { padding: 10px 12px; background: #f5fbfa; border: 1px solid #d9eeeb; border-radius: 7px; }
.broker-bound-viewings ul { display: grid; gap: 4px; margin: 7px 0 0; padding-left: 18px; font-size: 13px; }
.broker-bound-viewings p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.ops-starter-card ul { margin: 8px 0 0; padding-left: 20px; }
@media (max-width: 600px) {
  .ops-beginner-overlay { align-items: end; padding: 0; }
  .ops-beginner-dialog { max-height: 94vh; border-radius: 20px 20px 0 0; padding: 18px 14px; }
  .ops-beginner-dialog h2 { font-size: 20px; }
  .ops-choice-grid { grid-template-columns: 1fr 1fr; }
  .ops-beginner-actions { bottom: -18px; margin: 18px -14px -18px; padding: 12px 14px; }
  .ops-beginner-actions .btn { min-height: 48px; flex: 1; }
  .ops-module-guide { grid-template-columns: 1fr; padding: 13px; }
  .ops-module-guide > strong { grid-column: 1; }
  .broker-portrait-grid { grid-template-columns: 1fr; }
  .broker-card-actions { grid-template-columns: 1fr; }
  .broker-card-actions .btn { width: 100%; min-height: 46px; }
  .broker-inline-title { align-items: stretch; flex-direction: column; }
  .broker-inline-title > strong { width: 72px; }
  .broker-profile-steps { margin-left: -10px; margin-right: -10px; padding-left: 10px; }
  .property-source-note { align-items: flex-start; flex-direction: column; gap: 6px; }
}

/* V21：与相处经营 AI 系统一致的视觉语言 + 手机逐题填写 */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #0f766e;
  --primary-2: #115e59;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

.app-shell { grid-template-columns: 252px minmax(0, 1fr); }
.sidebar {
  padding: 16px 12px;
  gap: 12px;
  background: #fff;
  color: #374151;
  border-right: 1px solid var(--line);
}
.sidebar .brand {
  padding: 4px 4px 16px;
  color: #111827;
  border-bottom-color: var(--line);
}
.sidebar .brand-mark { width: 40px; height: 40px; background: #15988d; }
.sidebar .brand-subtitle { color: #6b7280; }
.sidebar .nav { gap: 4px; }
.sidebar .nav button {
  min-height: 40px;
  padding: 9px 12px;
  color: #4b5563;
  border-radius: 6px;
}
.sidebar .nav button:hover,
.sidebar .nav button.active { background: #eef6f5; color: #115e59; }
.sidebar .side-metrics { gap: 8px; }
.sidebar .side-metrics div {
  padding: 10px 11px;
  color: #374151;
  background: #f9fafb;
  border-color: var(--line);
  border-radius: 7px;
}
.sidebar .side-metrics span { color: #6b7280; }
.sidebar .side-metrics strong { margin-top: 4px; font-size: 15px; }
.sidebar .side-logout { color: #4b5563; background: #fff; border-color: #d1d5db; }
.sidebar .side-logout:hover { color: #115e59; background: #eef6f5; }

.topbar {
  min-height: 64px;
  padding: 10px 20px;
  color: #fff;
  background: #12201f;
  border-bottom: 0;
  backdrop-filter: none;
}
.topbar .eyebrow { display: none; }
.topbar h1 { margin: 0; color: #fff; font-size: 20px; }
.topbar .actions { flex-wrap: nowrap; gap: 7px; overflow-x: auto; }
.topbar .btn { min-height: 36px; padding: 7px 11px; white-space: nowrap; border-radius: 6px; }
.topbar .btn.secondary,
.topbar .kimi-button { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.topbar .btn.primary { background: #0f766e; border-color: #0f766e; }
.view { padding: 20px; }
.input-panel, .analysis-panel, .report { border-radius: 8px; box-shadow: var(--shadow); }

.intake-wizard { padding: 16px; border-radius: 8px; }
.intake-methods {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
  padding: 9px 10px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.intake-methods > strong { margin-right: 3px; color: #4b5563; font-size: 13px; }
.intake-methods .compact-method {
  min-height: 34px;
  padding: 6px 10px;
  color: #4b5563;
  background: #fff;
  border-color: #d1d5db;
  font-size: 13px;
}
.intake-methods .compact-method.active { color: #115e59; background: #eef6f5; border-color: #8fc5c0; }
.intake-methods .voice-status {
  grid-column: auto;
  margin-left: auto;
  padding: 0;
  color: #6b7280;
  background: transparent;
  font-size: 12px;
}
.intake-methods .voice-result { flex-basis: 100%; color: #6b7280; font-size: 12px; }

.broker-stats-card { margin-bottom: 12px; border-radius: 7px; }
.broker-stats-card summary { padding: 10px 12px; color: #115e59; font-size: 14px; }
.intake-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding-bottom: 3px;
  overflow-x: auto;
}
.intake-progress button {
  display: flex;
  align-items: center;
  min-width: max-content;
  min-height: 40px;
  padding: 7px 10px;
  color: #6b7280;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}
.intake-progress button span { width: 22px; height: 22px; font-size: 12px; background: #9ca3af; }
.intake-progress button.active { color: #115e59; background: #eef6f5; border-color: #0f766e; }
.intake-progress button.active span,
.intake-progress button.done span { background: #0f766e; }
.intake-panel-head { margin-bottom: 12px; }
.intake-panel-head h2 { font-size: 18px; }
.intake-panel-head p { margin-top: 4px; color: #6b7280; font-size: 13px; }
.choice-grid { grid-template-columns: 1fr; gap: 8px; }

.question-card {
  overflow: hidden;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.question-card[hidden] { display: none !important; }
.question-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  list-style: none;
  cursor: pointer;
}
.question-card > summary::-webkit-details-marker { display: none; }
.question-card > summary span { min-width: 0; color: #1f2937; font-size: 15px; font-weight: 700; }
.question-card > summary strong {
  max-width: 46%;
  overflow: hidden;
  color: #0f766e;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.question-card[open] > summary { background: #eef6f5; border-bottom: 1px solid var(--line); }
body.simple-mode .intake-panel .question-content,
.intake-panel .question-content {
  display: grid !important;
  gap: 8px;
  margin: 0;
  padding: 14px;
  color: #374151;
  background: #fff;
  border: 0;
  border-radius: 0;
}
.choice-field.choice-cards { grid-column: auto; min-width: 0; }
.choice-field.choice-cards > small,
.choice-field.choice-text > small { margin: 0 0 4px; }
.intake-choice-options { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 0; }
.intake-choice-card span {
  min-height: 42px;
  padding: 8px;
  color: #374151;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}
body.simple-mode .intake-panel label.intake-choice-card { display: flex !important; }
body.simple-mode .intake-panel label.choice-field.question-content { display: grid !important; }
body.simple-mode .intake-panel label.broker-company-field { display: grid !important; }
.intake-choice-card input:checked + span { color: #115e59; background: #eef6f5; border-color: #0f766e; box-shadow: none; }
.choice-field select,
.broker-company-field input,
.choice-text input,
.intake-other-text input { min-height: 42px; border-color: #d1d5db; border-radius: 6px; font-size: 14px; }
.broker-entity-field { grid-column: auto; padding: 0; background: #fff; border-color: var(--line); border-radius: 8px; }
.broker-binding-rule { padding: 9px 10px; color: #115e59; background: #eef6f5; border-left: 3px solid #0f766e; border-radius: 5px; font-size: 13px; font-weight: 700; }
.broker-entity-field.is-non-broker { opacity: .72; }
.broker-company-field { margin-top: 0; color: #374151; font-size: 13px; }
.broker-entity-row { grid-template-columns: minmax(180px, 1fr) auto; gap: 8px; margin-top: 0; }
.broker-entity-row .btn { min-height: 42px; }
.field-help { margin-top: 2px; color: #6b7280; font-size: 12px; }
.report-source-link { display: grid; grid-template-columns: 110px 1fr 110px 1fr; gap: 8px 14px; margin: 14px 0; padding: 14px 16px; border: 1px solid #cfe2df; border-radius: 10px; background: #f3f9f8; }
.report-source-link span { color: #64748b; font-size: 12px; }
.report-source-link strong { color: #134e4a; }
.report-source-link small { grid-column: 1 / -1; color: #64748b; }

/* 四部分客户版看房总结：屏幕预览与真实 PDF 共用同一套页面 */
.customer-pdf-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid #d8e8e4; border-radius: 12px; background: #f7fbfa; }
.customer-pdf-status div { display: grid; gap: 3px; }
.customer-pdf-status span { color: #64748b; font-size: 12px; }
.customer-pdf-status > span { max-width: 52%; padding: 7px 10px; border-radius: 999px; text-align: right; }
.customer-pdf-status > .ready { color: #0f766e; background: #dff7ed; }
.customer-pdf-status > .not-ready { color: #9a3412; background: #fff0df; }
.office-property-link { display: grid; gap: 6px; margin: 10px 0 12px; color: #315953; font-size: 12px; font-weight: 800; }
.office-property-link select { width: 100%; min-height: 42px; border: 1px solid #b9d4ce; border-radius: 9px; background: #f7fbfa; color: #173e38; }
.pdf-sheet { position: relative; width: 100%; min-height: 630px; margin: 0 auto 22px; overflow: hidden; border: 1px solid #dfe7e5; border-radius: 14px; background: #fff; box-shadow: 0 12px 30px rgba(15, 45, 42, .08); color: #183330; }
.customer-cover-sheet { display: grid; grid-template-rows: auto 1fr auto auto; padding: 38px 46px 30px; color: #fff; background: radial-gradient(circle at 88% 18%, rgba(84, 193, 167, .25), transparent 28%), linear-gradient(135deg, #0d2825 0%, #123f39 58%, #1b6d62 100%); }
.customer-brand { display: flex; justify-content: space-between; color: #d8f3ec; font-size: 13px; letter-spacing: .08em; }
.customer-cover-body { align-self: center; max-width: 760px; }
.customer-cover-body p { margin: 0 0 14px; color: #75d6c3; font-size: 13px; font-weight: 800; letter-spacing: .16em; }
.customer-cover-body h1 { margin: 0; font-size: clamp(42px, 5.3vw, 68px); line-height: 1.08; letter-spacing: -.03em; }
.customer-cover-body > strong { display: block; margin-top: 18px; color: #d7ebe7; font-size: 17px; font-weight: 500; }
.customer-cover-summary { display: grid; grid-template-columns: .75fr 1.45fr 1.2fr; gap: 12px; margin-bottom: 24px; }
.customer-cover-summary div { padding: 14px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.08); }
.customer-cover-summary span { display: block; color: #acd7cf; font-size: 12px; }
.customer-cover-summary b { display: block; margin-top: 5px; font-size: 16px; }
.customer-cover-sheet footer { color: #a9cbc5; font-size: 11px; }
.customer-part-sheet { padding: 34px 42px 28px; }
.customer-page-head { display: grid; grid-template-columns: 92px 1fr; gap: 20px; align-items: start; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid #dbeae7; }
.customer-page-head > span { color: #0f766e; font-size: 13px; font-weight: 850; letter-spacing: .08em; }
.customer-page-head h2 { margin: -5px 0 4px; font-size: 30px; color: #173e38; }
.customer-page-head p { margin: 0; color: #64748b; font-size: 13px; }
.customer-need-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.customer-need-grid article { min-height: 150px; padding: 18px; border: 1px solid #d9e6e3; border-radius: 12px; background: #f8fbfa; }
.customer-need-grid span { color: #0f766e; font-size: 12px; font-weight: 800; }
.customer-need-grid strong { display: block; margin: 12px 0 8px; font-size: 18px; line-height: 1.35; }
.customer-need-grid p { margin: 0; color: #526a66; font-size: 13px; line-height: 1.55; }
.customer-highlight { display: grid; grid-template-columns: 150px 1fr; gap: 16px; margin: 18px 0; padding: 16px 18px; border-radius: 10px; background: #143f39; color: #fff; }
.customer-highlight span { color: #87d9c9; font-size: 12px; }
.customer-highlight strong { font-size: 16px; }
.customer-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.customer-two-column article { padding: 14px 18px; border-left: 3px solid #36a38f; background: #f7faf9; }
.customer-two-column h3, .customer-two-column ul { margin: 0; }
.customer-two-column ul { margin-top: 7px; padding-left: 18px; color: #49615d; font-size: 13px; line-height: 1.55; }
.viewed-office-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.viewed-office-grid article { padding: 17px; border: 1px solid #d9e5e2; border-radius: 12px; background: #fff; }
.viewed-office-grid article.recommended { border: 2px solid #148675; background: #f1faf7; }
.viewed-office-grid header { display: flex; justify-content: space-between; color: #71827f; font-size: 12px; }
.viewed-office-grid header b { padding: 3px 7px; border-radius: 999px; color: #fff; background: #148675; }
.viewed-office-grid h3 { min-height: 44px; margin: 12px 0; font-size: 18px; }
.viewed-office-grid dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; }
.viewed-office-grid dl div { min-width: 0; padding: 9px; border-radius: 8px; background: #f5f8f7; }
.viewed-office-grid dt { color: #748581; font-size: 11px; }
.viewed-office-grid dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 750; }
.customer-feedback-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.customer-feedback-band article { padding: 14px 16px; border-radius: 10px; background: #f5f8f7; }
.customer-feedback-band span { display: block; color: #64748b; font-size: 11px; }
.customer-feedback-band strong { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; }
.customer-boundary { margin: 14px 0 0; color: #71827f; font-size: 11px; line-height: 1.45; }
.customer-recommend-title { display: flex; align-items: end; justify-content: space-between; margin-bottom: 12px; }
.customer-recommend-title span { color: #0f766e; font-size: 12px; font-weight: 800; }
.customer-recommend-title h3 { margin: 4px 0; font-size: 24px; }
.customer-recommend-title p { margin: 0; color: #64748b; font-size: 12px; }
.customer-recommend-title > b { color: #0f766e; font-size: 12px; }
.customer-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.customer-photo-grid figure, .customer-photo-missing { height: 178px; margin: 0; overflow: hidden; border-radius: 9px; background: #e7efed; }
.customer-photo-grid figure { position: relative; }
.customer-photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.customer-photo-grid figcaption { position: absolute; inset: auto 0 0; padding: 16px 9px 7px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); font-size: 10px; }
.customer-photo-missing { display: grid; place-content: center; gap: 5px; border: 1px dashed #afc7c1; color: #748581; text-align: center; }
.customer-photo-missing b { color: #48625d; }
.customer-photo-missing span { max-width: 150px; font-size: 11px; }
.customer-reason-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.customer-reason-grid article { padding: 12px 14px; border-radius: 9px; background: #f5f9f8; }
.customer-reason-grid h3 { margin: 0 0 6px; font-size: 13px; }
.customer-reason-grid ul { margin: 0; padding-left: 17px; color: #506965; font-size: 11px; line-height: 1.45; }
.customer-advantage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.customer-advantage-grid article { min-height: 290px; padding: 22px; border: 1px solid #d7e5e2; border-radius: 12px; background: linear-gradient(180deg, #fff, #f5faf8); }
.customer-advantage-grid article > b { display: inline-grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: #148675; }
.customer-advantage-grid h3 { margin: 18px 0 14px; font-size: 21px; }
.customer-advantage-grid ul { margin: 0; padding: 0; list-style: none; }
.customer-advantage-grid li { padding: 11px 0; border-top: 1px solid #e1ebe8; color: #435d58; font-size: 13px; line-height: 1.45; }
.customer-next-step { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding: 16px 20px; border-radius: 11px; color: #fff; background: #143f39; }
.customer-next-step span { color: #80d4c4; font-size: 11px; }
.customer-next-step h3 { margin: 3px 0; font-size: 18px; }
.customer-next-step p { margin: 0; color: #c6ded9; font-size: 11px; }
.customer-next-step > strong { text-align: right; line-height: 1.5; }
body.customer-pdf-exporting .customer-pdf-status { display: none !important; }
body.customer-pdf-exporting .report { width: 1120px !important; max-width: none !important; padding: 0 !important; overflow: visible !important; }
body.customer-pdf-exporting .pdf-sheet { width: 1120px !important; height: 630px !important; min-height: 630px !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }

@media (max-width: 760px) {
  .customer-pdf-status { align-items: flex-start; flex-direction: column; }
  .customer-pdf-status > span { max-width: none; text-align: left; }
  .pdf-sheet { min-height: 0; }
  .customer-cover-sheet { min-height: 620px; padding: 26px 22px 22px; }
  .customer-cover-body h1 { font-size: 38px; }
  .customer-cover-summary, .customer-need-grid, .viewed-office-grid, .customer-feedback-band, .customer-two-column, .customer-reason-grid, .customer-advantage-grid { grid-template-columns: 1fr; }
  .customer-cover-summary { gap: 8px; }
  .customer-part-sheet { padding: 24px 18px; }
  .customer-page-head { grid-template-columns: 1fr; gap: 8px; }
  .customer-page-head h2 { font-size: 25px; }
  .customer-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-highlight { grid-template-columns: 1fr; }
  .customer-next-step { align-items: flex-start; flex-direction: column; gap: 12px; }
  .customer-next-step > strong { text-align: left; }
}
.intake-nav { grid-template-columns: 110px 1fr 130px; gap: 8px; margin-top: 16px; padding-top: 12px; }

@media (max-width: 600px) {
  .app-shell { display: block; }
  .sidebar { display: contents !important; }
  .sidebar > .brand,
  .sidebar > .side-metrics { display: none !important; }
  .mobile-top-chrome { display: flex !important; background: #12201f; }
  .main { width: 100%; }
  .topbar {
    position: static;
    top: auto;
    display: block;
    min-height: auto;
    padding: 10px 12px;
    color: #1f2937;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .topbar h1 { margin-bottom: 8px; color: #111827; font-size: 18px; }
  .topbar .actions { justify-content: flex-start; padding-bottom: 2px; }
  .topbar .actions { scrollbar-width: none; }
  .topbar .actions::-webkit-scrollbar { display: none; }
  .topbar .btn,
  .topbar .btn.secondary,
  .topbar .kimi-button { min-height: 38px; color: #374151; background: #fff; border-color: #d1d5db; }
  .topbar .btn.primary { color: #fff; background: #0f766e; border-color: #0f766e; }
  .view { padding: 10px; }
  .intake-wizard { padding: 10px; }
  .intake-methods { flex-wrap: nowrap; overflow-x: auto; }
  .intake-methods > strong,
  .intake-methods .voice-status { display: none; }
  .intake-methods .compact-method { flex: 0 0 auto; min-height: 40px; }
  .broker-stats-card summary { min-height: 44px; }
  .broker-overview-head { align-items: stretch; flex-direction: column; padding: 12px; }
  .broker-overview-head .btn { width: 100%; min-height: 44px; }
  .intake-progress button { min-height: 42px; padding: 7px 9px; }
  .question-card > summary { min-height: 56px; padding: 13px 12px; }
  .question-card > summary strong { max-width: 42%; }
  body.simple-mode .intake-panel .question-content,
  .intake-panel .question-content { padding: 12px; }
  .intake-choice-options { grid-template-columns: 1fr 1fr; }
  .intake-choice-card span { min-height: 46px; }
  .broker-entity-row { grid-template-columns: 1fr auto; }
  .report-source-link { grid-template-columns: 90px 1fr; }
  .intake-nav {
    position: sticky;
    bottom: 0;
    z-index: 8;
    grid-template-columns: 1fr 1fr;
    margin: 14px -10px -10px;
    padding: 10px;
    background: rgba(255,255,255,.97);
  }
  .intake-nav span { grid-column: 1 / -1; grid-row: 1; font-size: 12px; }
  .intake-nav button { grid-row: 2; min-height: 46px; }
}

/* 任务009：45关 AI 成交漏斗 */
.checkpoint-rail {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  background: #f7faf9;
  border: 1px solid #cfe2df;
  border-radius: 14px;
  scroll-margin-top: 72px;
}
.checkpoint-rail-head h3 { margin: 6px 0 4px; font-size: 18px; color: #173e39; }
.checkpoint-rail-head p { margin: 0; color: #5b6f6a; font-size: 14px; line-height: 1.5; }
.checkpoint-current-card { display: grid; gap: 8px; padding: 14px; background: #fff; border: 1px solid #bddad5; border-radius: 12px; }
.checkpoint-current-card header { display: flex; gap: 10px; align-items: baseline; }
.checkpoint-current-card header span { color: #0f766e; font-weight: 800; font-size: 13px; }
.checkpoint-current-card header strong { font-size: 16px; color: #143933; }
.checkpoint-current-card p { margin: 0; color: #445853; font-size: 14px; line-height: 1.55; }
.checkpoint-rule-tag { color: #14776e !important; font-size: 12px !important; font-weight: 700; }
.checkpoint-current-card .btn.primary { min-height: 44px; width: 100%; max-width: 280px; }
.checkpoint-phase-list { display: grid; gap: 10px; }
.checkpoint-phase h4 { margin: 0 0 6px; color: #3f534e; font-size: 13px; }
.checkpoint-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.checkpoint-chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px; max-width: 100%; padding: 8px 10px; text-align: left; color: #40534e; background: #fff; border: 1px solid #d5e1de; border-radius: 10px; font-size: 12px; }
.checkpoint-chip em { font-style: normal; font-weight: 800; color: #0f766e; }
.checkpoint-chip span { line-height: 1.35; }
.checkpoint-chip.passed { background: #e8f7f3; border-color: #9fd0c6; }
.checkpoint-chip.current { background: #173e39; border-color: #173e39; color: #edf7f5; }
.checkpoint-chip.current em { color: #9fe1d5; }
.checkpoint-chip.needs_work { background: #fff8eb; border-color: #efd3a0; }
.checkpoint-coach-overlay { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: end center; padding: 0; background: rgba(15, 23, 42, .5); }
.checkpoint-coach-dialog { width: min(720px, 100%); max-height: 94vh; overflow: auto; padding: 16px 16px 88px; background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px rgba(15, 23, 42, .2); }
.checkpoint-coach-dialog header { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.checkpoint-coach-dialog h2 { margin: 6px 0 0; font-size: 20px; color: #143933; }
.checkpoint-coach-brief, .checkpoint-last-result, .checkpoint-eval-panel, .checkpoint-readonly-note { display: grid; gap: 6px; margin: 12px 0; padding: 12px; border-radius: 12px; background: #f4f8f7; border: 1px solid #d7e5e2; }
.checkpoint-coach-brief p, .checkpoint-last-result p, .checkpoint-eval-panel p { margin: 0; font-size: 14px; line-height: 1.55; color: #40534e; }
.checkpoint-special { color: #9a3412 !important; background: #fff7ed; padding: 8px; border-radius: 8px; }
.checkpoint-last-result.muted { opacity: .85; }
.checkpoint-coach-questions { display: grid; gap: 10px; }
.checkpoint-coach-questions .question-card > summary { min-height: 52px; font-size: 14px; }
.checkpoint-source-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.checkpoint-coach-questions .ops-other-input[data-coach-source-other] { display: none; }
.checkpoint-coach-questions .ops-other-input[data-coach-source-other].active,
.checkpoint-coach-questions .ops-other-input[data-coach-source-other]:not([hidden]) { display: grid; gap: 6px; margin-top: 8px; }
.checkpoint-c01-broker { display: grid; gap: 10px; }
.checkpoint-c01-broker-bind { display: grid; gap: 10px; }
.checkpoint-coach-actions, .checkpoint-eval-actions { position: sticky; bottom: 0; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; padding: 12px 0 4px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 28%); }
.checkpoint-coach-actions .btn, .checkpoint-eval-actions .btn { min-height: 44px; min-width: 120px; }
.crm-funnel-home .crm-opp-picker { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.crm-opp-chip { flex: 0 0 auto; display: grid; gap: 2px; min-width: 140px; min-height: 52px; padding: 10px 12px; text-align: left; background: #fff; border: 1px solid #d5e1de; border-radius: 12px; }
.crm-opp-chip.active { border-color: #0f766e; background: #eef8f6; }
.crm-opp-chip strong { font-size: 14px; color: #173e39; }
.crm-opp-chip span { font-size: 12px; color: #667873; }
.crm-funnel-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, .8fr); gap: 12px; align-items: start; }
.crm-funnel-side { display: grid; gap: 10px; }
.crm-funnel-side-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crm-funnel-side-actions .btn { min-height: 44px; }
@media (max-width: 900px) {
  .crm-funnel-layout { grid-template-columns: 1fr; }
  .checkpoint-coach-overlay { align-items: end; }
  .checkpoint-source-grid { grid-template-columns: 1fr; }
  .checkpoint-chip span { max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 430px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }
  .app-shell,
  .main,
  .ops-module-mount {
    max-width: 100%;
    overflow-x: hidden;
  }
  .broker-table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }
  .broker-stats-table {
    min-width: 560px;
  }
  .checkpoint-rail { padding: 12px; margin: 12px 0; scroll-margin-top: 64px; }
  .checkpoint-current-card .btn.primary { max-width: none; }
  .checkpoint-coach-dialog { padding: 12px 12px 96px; }
  .checkpoint-coach-actions { padding-bottom: 12px; }
  .crm-funnel-home .crm-ai-hero h2 { font-size: 18px; }
  body.ops-mode[data-view="ops-crm"] .ops-module-guide h2 { font-size: 17px; }
  .crm-funnel-home .crm-opp-picker,
  .broker-select-row {
    display: flex;
    flex-wrap: wrap;
    overflow-x: hidden;
    gap: 8px;
  }
  .checkpoint-chip-row {
    display: flex;
    flex-wrap: wrap;
  }
}

/* 任务010：工作台卡片与技术控件默认隐藏 */
.ops-workbench-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ops-workbench-card-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ops-workbench-card-head h2 { margin: 0; font-size: 16px; }
.ops-workbench-card .btn.primary { min-height: 44px; width: 100%; }
.property-first-screen { display: grid; gap: 12px; margin: 12px 0; }
.property-gap-card { padding: 12px 14px; border-radius: 12px; background: #fff7ed; border: 1px solid #fdba74; }
.property-gap-card strong { display: block; margin-bottom: 4px; color: #9a3412; }
.broker-select-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.broker-current-summary { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: #f4f8f7; border: 1px solid #d7e5e2; }
.crm-more-tools { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; }
.crm-more-tools-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.crm-tools-back { display: grid; gap: 10px; margin-bottom: 10px; }
body.role-sales #resetBtn,
body.role-sales .advanced-action { display: none !important; }
body:not(.ops-debug) [data-ops-debug-tools] { display: none !important; }
.ops-inline-search { display: grid; gap: 4px; font-size: 13px; color: #475569; }
.ops-inline-search input { min-height: 40px; padding: 8px 10px; border: 1px solid #d5e1de; border-radius: 10px; }

/* 任务012：工作台 3＋4、横向成交地图、对话式成长顾问 */
.ops-work-hero {
  padding: 12px 4px 8px;
  margin-bottom: 8px;
  background: transparent;
  border: none;
}
.ops-work-hero h2 { margin: 0 0 4px; font-size: 20px; color: #143933; font-weight: 700; }
.ops-work-hero p { margin: 0; color: #5b6f6a; font-size: 14px; }
.ops-work-section { margin: 0 0 16px; }
.ops-work-section-head h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #3f534e;
}
.ops-work-priority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ops-work-growth-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.ops-workbench-card {
  border: 1px solid #d7e5e2;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(20, 57, 51, 0.06);
  display: flex;
  min-height: 176px;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ops-workbench-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(20, 57, 51, 0.1); }
.ops-workbench-card-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ops-workbench-card-meta > span { color: #94a3b8; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.ops-workbench-card-meta > strong { color: #0f766e; font-size: 12px; font-weight: 700; }
.ops-workbench-card .btn { min-height: 40px; width: 100%; margin-top: auto; }
.ops-workbench-card > p { min-height: 42px; margin: 8px 0 16px; line-height: 1.5; color: #5b6f6a; }
.ops-workbench-card .btn.secondary {
  background: transparent;
  border: 1px solid #d5e1de;
  color: #173e39;
}
.ops-workbench-card-head h2 { font-size: 17px; color: #143933; line-height: 1.3; }

.deal-map {
  overflow-x: auto;
  overflow-y: hidden;
  max-height: 520px;
  margin-top: 10px;
  padding: 6px 2px 12px;
  -webkit-overflow-scrolling: touch;
}
.deal-map-track {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  gap: 0;
  min-width: max-content;
  padding: 4px 2px 8px;
}
.deal-phase {
  flex: 0 0 auto;
  width: 260px;
  padding: 14px;
  border: 1px solid #d7e5e2;
  border-radius: 12px;
  background: #f8fbfa;
}
.deal-phase h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #3f534e;
}
.deal-phase h4 span { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 8px; color: #fff; background: #173e39; font-size: 11px; }
.deal-phase-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.deal-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  text-align: left;
  color: #40534e;
  background: #fff;
  border: 1px solid #d5e1de;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
}
.deal-step em { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 8px; background: #eef7f5; font-style: normal; font-weight: 800; color: #0f766e; font-size: 11px; }
.deal-step span {
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.deal-step.passed { background: #e8f7f3; border-color: #9fd0c6; }
.deal-step.current { background: #173e39; border-color: #173e39; color: #edf7f5; }
.deal-step.current em { color: #9fe1d5; }
.deal-step.needs_work { background: #fff8eb; border-color: #efd3a0; }
.deal-step:disabled { opacity: 0.85; cursor: default; }
.deal-phase-connector {
  flex: 0 0 30px;
  align-self: center;
  color: #9db5af;
  font-size: 20px;
  text-align: center;
}
.deal-phase-connector { margin: 0 4px; }

.coach-today-panel,
.growth-coach-home {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.growth-coach-home { display: grid; gap: 16px; }
.growth-coach-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 26px; border-radius: 18px; color: #fff; background: linear-gradient(125deg, #123a34 0%, #167e72 100%); box-shadow: 0 16px 35px rgba(20,57,51,.14); }
.growth-coach-hero h2 { margin: 4px 0 8px; max-width: 680px; font-size: 24px; line-height: 1.3; }
.growth-coach-hero p { margin: 0; color: #d7ebe7; }
.growth-coach-hero .coach-kicker { color: #a9e3d8; }
.growth-coach-hero .btn.primary { flex: 0 0 auto; background: #fff; border-color: #fff; color: #155f56; min-height: 46px; padding-inline: 22px; }
.growth-coach-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr); gap: 16px; }
.coach-mission-card,
.coach-method-card { padding: 22px; border-radius: 16px; box-shadow: 0 8px 24px rgba(20,57,51,.05); }
.coach-card-label { display: inline-flex; padding: 5px 9px; border-radius: 99px; color: #0f766e; background: #e8f7f3; font-size: 12px; font-weight: 800; }
.coach-mission-card h3 { margin: 14px 0 10px; font-size: 20px; color: #143933; }
.coach-mission-card blockquote { margin: 0 0 18px; padding: 14px 16px; border-left: 4px solid #d69b22; border-radius: 0 12px 12px 0; color: #40534e; background: #fff9ed; line-height: 1.6; }
.coach-mission-card h4 { margin: 0 0 10px; font-size: 14px; color: #143933; }
.coach-outcome-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.coach-outcome-list li { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid #e2ebe8; border-radius: 12px; }
.coach-outcome-list li > span { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; color: #fff; background: #173e39; font-weight: 800; }
.coach-outcome-list strong,
.coach-outcome-list small { display: block; }
.coach-outcome-list small { margin-top: 2px; color: #6b7f79; }
.coach-method-card .coach-today-steps { margin-top: 15px; }
.coach-method-card .coach-today-steps li { grid-template-columns: 38px 1fr; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #e2ebe8; }
.coach-method-card .coach-today-steps li:last-child { border-bottom: 0; }
.coach-method-card .coach-today-steps b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: #168477; }
.coach-pass-rule { display: grid; gap: 4px; margin-top: 14px; padding: 13px 14px; border-radius: 12px; color: #7c4a03; background: #fff7e7; border: 1px solid #f0d49a; font-size: 13px; }
.advisor-path-card { padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px solid #d7e5e2; }
.advisor-path-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.advisor-path-head span { color: #0f766e; font-size: 12px; font-weight: 800; }
.advisor-path-head h3 { margin: 4px 0 0; color: #143933; font-size: 18px; }
.advisor-path-head p { margin: 0; color: #6b7f79; font-size: 13px; }
.advisor-path { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 16px; }
.advisor-path > i { color: #9db5af; font-style: normal; }
.advisor-stage { display: grid; gap: 3px; min-height: 92px; padding: 13px; border-radius: 13px; background: #f6f9f8; border: 1px solid #dce7e4; }
.advisor-stage.current { color: #fff; background: #173e39; border-color: #173e39; }
.advisor-stage em { font-style: normal; font-size: 11px; font-weight: 800; color: #0f766e; }
.advisor-stage.current em { color: #9fe1d5; }
.advisor-stage span { color: #647773; font-size: 12px; line-height: 1.4; }
.advisor-stage.current span { color: #d3e8e4; }
.coach-today-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 20px 28px;
  align-items: start;
}
.coach-today-what h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #143933;
  line-height: 1.35;
}
.coach-today-what p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: #40534e;
}
.coach-today-what .btn.primary {
  margin-top: 12px;
}
.coach-today-how {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f4f8f7;
  border: 1px solid #d7e5e2;
}
.coach-today-how h4 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #143933;
}
.coach-today-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.coach-today-steps li {
  display: grid;
  gap: 4px;
}
.coach-today-steps strong {
  font-size: 14px;
  color: #173e39;
}
.coach-today-steps span {
  font-size: 13px;
  line-height: 1.5;
  color: #5b6f6a;
}
.coach-today-foot {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e2ebe8;
  font-size: 13px;
  color: #5b6f6a;
  line-height: 1.5;
}
.coach-kicker { margin: 0 0 6px; color: #0f766e; font-size: 12px; font-weight: 700; }
.coach-scene-picker {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #d7e5e2;
  border-radius: 12px;
  background: #fff;
}
.coach-scene-simple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-top: 10px;
}
.coach-scene-simple label { display: grid; gap: 4px; font-size: 13px; color: #40534e; }
.coach-advanced-dims { margin-top: 10px; }
.coach-sim-layout {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 12px;
}
.coach-chat {
  display: grid;
  gap: 10px;
}
.coach-chat-head h3 { margin: 0 0 4px; font-size: 17px; color: #143933; }
.coach-chat-head p { margin: 0; color: #5b6f6a; font-size: 13px; }
.coach-chat-thread {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  border-radius: 12px;
  background: #f4f8f7;
  border: 1px solid #d7e5e2;
}
.coach-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.coach-bubble span { display: block; font-size: 11px; font-weight: 700; color: #0f766e; margin-bottom: 4px; }
.coach-bubble p { margin: 0; font-size: 14px; line-height: 1.5; color: #1f2937; }
.coach-bubble.customer { justify-self: start; }
.coach-bubble.advisor { justify-self: end; background: #173e39; border-color: #173e39; color: #edf7f5; }
.coach-bubble.advisor span { color: #9fe1d5; }
.coach-bubble.advisor p { color: #edf7f5; }
.coach-feedback-card {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed #9fd0c6;
}
.coach-feedback-card p { margin: 4px 0 0; font-size: 13px; color: #40534e; }
.coach-hint-qs { font-size: 13px; color: #40534e; }
.coach-hint-qs ul { margin: 6px 0 0; padding-left: 18px; }
.coach-stuck-panel {
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d7e5e2;
}
.coach-stuck-panel ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.btn.text {
  background: transparent;
  border: none;
  color: #0f766e;
  padding: 6px 0;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
  min-height: 36px;
}
.growth-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.growth-cap-card h3 { margin: 0 0 6px; font-size: 15px; }
.growth-cap-need { margin: 0; color: #9a3412; font-size: 13px; }
.growth-cap-ok { margin: 0; color: #0f766e; font-size: 13px; }

@media (max-width: 900px) {
  .ops-work-priority-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ops-work-growth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coach-scene-simple { grid-template-columns: 1fr; }
  .coach-sim-layout { grid-template-columns: 1fr; }
  .coach-today-grid { grid-template-columns: 1fr; }
  .growth-coach-grid { grid-template-columns: 1fr; }
  .advisor-path { grid-template-columns: 1fr; }
  .advisor-path > i { transform: rotate(90deg); justify-self: center; }
  .growth-cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .ops-work-priority-grid,
  .ops-work-growth-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .ops-workbench-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "meta meta" "head head" "desc action";
    gap: 6px 10px;
    padding: 10px 12px;
    align-items: center;
  }
  .ops-workbench-card-meta { grid-area: meta; margin-bottom: 2px; }
  .ops-workbench-card-head { grid-area: head; }
  .ops-workbench-card > p { grid-area: desc; margin: 0; font-size: 13px; color: #5b6f6a; }
  .ops-workbench-card .btn {
    grid-area: action;
    width: auto;
    min-width: 96px;
    min-height: 36px;
    padding: 6px 10px;
    font-size: 13px;
  }
  .ops-work-hero { padding: 4px 0 6px; }
  .ops-work-hero h2 { font-size: 17px; }
  .deal-map { max-height: 520px; }
  .deal-phase { width: 245px; min-width: 245px; }
  .growth-coach-hero { display: grid; padding: 20px; }
  .growth-coach-hero h2 { font-size: 20px; }
  .growth-coach-hero .btn.primary { width: 100%; }
  .advisor-path-head { display: grid; }
  .growth-cap-grid { grid-template-columns: 1fr; }
  html, body { overflow-x: hidden; }
  .ops-module-mount, .crm-funnel-home, .checkpoint-rail { max-width: 100%; overflow-x: hidden; }
  .deal-map { overflow-x: auto; }
}
