/* Customers */
.cust-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 900px) { .cust-stats-row { grid-template-columns: repeat(2, 1fr); } }
.cust-stat-card { padding: 14px 16px; }
.cust-stat-card .lbl { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.cust-stat-card .num { font-size: 22px; font-weight: 700; }
.cust-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { color: var(--text-muted); font-weight: 600; font-size: 12px; background: var(--bg-app); letter-spacing: 0.02em; }
.data-table tbody tr { cursor: pointer; transition: background .15s ease; }
.data-table tbody tr:hover { background: var(--accent-soft); }
.data-table tbody td { color: var(--text); font-variant-numeric: tabular-nums; }
.cust-name-text { font-weight: 700; color: var(--text); }
.cust-search { width: 260px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }
.cust-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cust-view-toggle { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-app); }
.cust-view-toggle__btn { appearance: none; border: 0; background: transparent; padding: 6px 16px; font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; border-radius: 7px; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.cust-view-toggle__btn:hover { color: var(--text); }
.cust-view-toggle__btn.is-active { background: var(--accent); color: #fff; box-shadow: 0 1px 3px var(--accent-shadow); }
.cust-view-toggle__btn.is-active:hover { color: #fff; }
.cust-name-cell { display: flex; align-items: center; gap: 2px; }
.cust-lock-ico { width: 14px; height: 14px; margin-right: 6px; opacity: .55; flex: 0 0 auto; }
.data-table tbody tr.is-disabled { cursor: not-allowed; color: var(--text-muted); background: var(--surface); }
.data-table tbody tr.is-disabled:hover { background: var(--surface); }
.data-table tbody tr.is-disabled td { color: var(--text-muted); }
.cust-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cust-card-grid[hidden] { display: none; }
.cust-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
.cust-card:hover { border-color: var(--accent); box-shadow: 0 8px 22px rgba(15, 23, 42, .08); transform: translateY(-2px); }
.cust-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.cust-card__name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.cust-card__name .cust-lock-ico { width: 14px; height: 14px; margin: 0; opacity: .6; }
.cust-card__age { flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--text-muted); background: var(--bg-app); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }
.cust-card__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cust-card__meta-item { display: flex; flex-direction: column; gap: 4px; }
.cust-card__meta-item .lbl { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.cust-card__meta-item .val { font-size: 14px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.cust-card.is-disabled { cursor: not-allowed; background: var(--surface); }
.cust-card.is-disabled:hover { border-color: var(--border); box-shadow: var(--shadow-sm); transform: none; }
.cust-card.is-disabled .cust-card__name { color: var(--text-muted); }
.cust-card.is-disabled .cust-card__age { color: var(--text-muted); }
.cust-card.is-disabled .cust-card__meta-item .val { color: var(--text-muted); font-weight: 600; }
.detail-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb { font-size: 13px; color: var(--text-muted); }
.breadcrumb strong { color: var(--text); }
#view-customer-detail.is-visible { display: flex; flex-direction: column; max-height: calc(100vh - 56px - 48px); min-height: 0; overflow: hidden; }
#view-customer-detail .detail-top { flex-shrink: 0; }
.layout-customer-detail {
  display: grid; grid-template-columns: 4fr 6fr; gap: 16px; align-items: stretch;
  flex: 1; min-height: 0;
}
.layout-customer-detail.cust-detail-cite-open {
  grid-template-columns: 1fr;
}
.layout-customer-detail.cust-detail-cite-open .customer-main-scroll {
  display: none;
}
@media (max-width: 1100px) { .layout-customer-detail { grid-template-columns: 1fr; max-height: none; } }
.customer-main-scroll {
  min-width: 0; display: flex; flex-direction: column; min-height: 0; flex: 1;
  overflow-y: auto; overflow-x: hidden;
  background: transparent; padding: 0 4px;
  scroll-behavior: smooth;
}
.customer-chat-card { flex: 1; min-height: 0; max-height: 100%; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-card); }
.cust-ai-knowhow-head {
  flex-shrink: 0; padding: 10px 14px 8px; border-bottom: 1px solid transparent;
  display: flex; justify-content: center; align-items: center; gap: 8px; position: relative;
}
.cust-ai-knowhow-head__title { font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.cust-knowhow-badge { font-size: 11px; font-weight: 700; color: var(--accent); line-height: 1; }
.cust-summary-banner {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px;
  padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-card); margin-bottom: 12px;
}
.cust-summary-banner__greet {
  flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--text); line-height: 1.45;
}
.cust-summary-banner__avatar {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-border-subtle);
  display: flex; align-items: center; justify-content: center;
}
.cust-summary-banner__avatar svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cust-summary-banner__greet strong { font-weight: 700; }
.cust-summary-banner__stats {
  flex: 1 1 360px; display: flex; align-items: stretch; justify-content: flex-end;
  gap: 0; flex-wrap: wrap;
}
.cust-stat-col {
  text-align: center; min-width: 84px; padding: 0 14px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center;
}
.cust-stat-col:last-child { border-right: none; padding-right: 0; }
.cust-stat-col:first-child { padding-left: 0; }
.cust-stat-col .cust-stat-col__lbl {
  display: block; font-size: 11px; color: var(--text-muted);
  margin-bottom: 6px; font-weight: 500; letter-spacing: -0.01em;
}
.cust-stat-col .cust-stat-col__val {
  display: inline-flex; align-items: baseline; justify-content: center; gap: 2px;
}
.cust-stat-col .cust-stat-col__num {
  font-size: 20px; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em; line-height: 1.15;
}
.cust-stat-col .cust-stat-col__val .unit {
  font-size: 12px; font-weight: 600; color: var(--text-muted); margin-left: 1px;
}
.cust-stat-col--highlight .cust-stat-col__num { font-size: 22px; color: var(--accent); }
.cust-stat-col--highlight .cust-stat-col__val .unit { color: var(--accent); }
@media (max-width: 720px) {
  .cust-summary-banner__stats { justify-content: flex-start; }
  .cust-stat-col {
    flex: 1 1 calc(50% - 8px);
    border-right: none; border-bottom: 1px solid var(--border);
    padding: 8px 10px;
  }
  .cust-stat-col:last-child { border-bottom: none; }
}
@media (max-width: 520px) {
  .cust-summary-banner { padding: 12px 14px; }
  .cust-stat-col { flex: 1 1 calc(33.333% - 6px); min-width: 72px; }
  .cust-stat-col .cust-stat-col__num { font-size: 17px; }
  .cust-stat-col--highlight .cust-stat-col__num { font-size: 19px; }
}
.dash-cov-field { margin-bottom: 12px; transition: margin-bottom 0.25s ease; }
.dash-cov-field__hd {
  display: flex; align-items: center; gap: 10px;
  padding: 0 0 10px; flex-wrap: wrap;
  transition: padding-bottom 0.25s ease;
}
.dash-cov-field__title {
  font-size: 12px; font-weight: 700; color: var(--text);
  letter-spacing: -0.01em;
}
.dash-cov-field__actions {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
}
.dash-cov-toggle {
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.dash-cov-toggle:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.dash-cov-toggle svg { transition: transform 0.2s ease; }
.dash-cov-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.dash-cov-indicators { display: none; align-items: center; gap: 6px; }
.dash-cov-field.is-collapsed .dash-cov-indicators { display: inline-flex; }
.dash-cov-ind {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 999px;
  font-size: 11px; font-weight: 800; line-height: 1;
  border: 1px solid transparent; cursor: default;
  font-variant-numeric: tabular-nums;
}
.dash-cov-ind--warn   { background: #fff8e6; color: #a16207; border-color: #ffe08a; }
.dash-cov-ind--muted  { background: #eef0f3; color: #5c6570; border-color: #dde1e6; }
.dash-cov-ind--danger { background: #fff0f0; color: #c92a2a; border-color: #ffc9c9; }
.dash-cov-ind--info   { background: var(--info-bg); color: var(--info-text); border-color: var(--info-border); }
.dash-cov-body {
  overflow: hidden;
  max-height: 1600px;
  opacity: 1;
  transition: max-height 0.32s ease, opacity 0.22s ease;
}
.dash-cov-field.is-collapsed .dash-cov-body {
  max-height: 0;
  opacity: 0;
}
.dash-cov-field.is-collapsed { margin-bottom: 0; }
.dash-cov-field.is-collapsed .dash-cov-field__hd { padding-bottom: 0; }
.dash-radar-toggle {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 6px; cursor: pointer; color: var(--text-muted);
  display: inline-flex; align-items: center; line-height: 1;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.dash-radar-toggle:hover,
.dash-radar-toggle[aria-expanded="true"] {
  color: var(--accent); border-color: var(--accent-border);
  background: var(--accent-soft);
}
.cov-field-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .cov-field-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cov-field-card {
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); font-size: 11px; font-weight: 600;
  text-align: center; line-height: 1.3;
}
.cov-field-card strong { display: block; font-size: 20px; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; }
.cov-field-card--muted { background: #eef0f3; color: #5c6570; border-color: #dde1e6; }
.cov-field-card--danger { background: #fff0f0; color: #c92a2a; border-color: #ffc9c9; }
.cov-field-card--warn { background: #fff8e6; color: #a16207; border-color: #ffe08a; }
.cov-field-card--neu { background: #f1f3f5; color: #495057; border-color: #dee2e6; }
.cov-field-card--info { background: var(--info-bg); color: var(--info-text); border-color: var(--info-border); }

.profile-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent); }
.report-block { margin-bottom: 14px; font-size: 13px; }
.report-block h4 { margin: 0 0 8px; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.report-meta-title { font-size: 15px; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.report-meta-sub { font-size: 12px; color: var(--text-muted); margin: 0 0 12px; }
.report-meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; font-size: 12px; margin-bottom: 8px; }
.report-meta-grid span { color: var(--text-muted); display: block; font-size: 11px; }
.report-meta-grid strong { font-weight: 600; color: var(--text); }
.report-narrative p { margin: 0 0 10px; font-size: 13px; line-height: 1.65; color: var(--text); }
.report-narrative p:last-child { margin-bottom: 0; }
.snap-table-wrap { overflow-x: auto; margin-top: 8px; }
.snap-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.snap-table th, .snap-table td {
  padding: 10px 12px; border: 1px solid var(--border);
  text-align: left; vertical-align: top;
  word-break: keep-all; overflow-wrap: anywhere; line-height: 1.5;
}
.snap-table th { background: var(--bg-app); color: var(--text-muted); font-weight: 600; white-space: normal; }
.snap-table td strong { color: var(--accent); }
.contract-line { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.cat-row { display: flex; align-items: center; gap: 8px; padding: 8px; background: var(--bg-app); border-radius: 8px; margin-bottom: 6px; font-size: 12px; }
.dash-wrap { padding: 8px 0 16px; }
.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
@media (max-width: 900px) { .dash-cards { grid-template-columns: repeat(2, 1fr); } }
.sum-card { padding: 10px; border-radius: 8px; border: 1px solid var(--border); text-align: center; font-size: 11px; }
.sum-card strong { display: block; font-size: 18px; margin-top: 4px; }
.sum-card.bad { border-color: #ffc9c9; background: #fff8f8; }
.sum-card.warn { border-color: #ffe08a; background: #fffbeb; }
.sum-card.ok { border-color: #a3e9d6; background: #f0fcf9; }
.sum-card.neu { background: var(--bg-app); }
.dash-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}
.dash-body.dash-radar-open {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.dash-radar-wrap {
  display: none;
  min-width: 0;
}
.dash-body.dash-radar-open .dash-radar-wrap {
  display: block;
  animation: radarReveal 0.35s ease-out;
}
@keyframes radarReveal {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
.dash-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.radar-wrap {
  width: 100%;
  min-width: 0;
}
.dash-bars-col {
  min-width: 0;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}
.dash-bars-col .bar-row { font-size: 11px; }
@media (max-width: 800px) {
  .dash-body.dash-radar-open { grid-template-columns: 1fr; }
}
.radar-box {
  aspect-ratio: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: radial-gradient(circle, var(--bg-app), #fff);
}
.radar-svg { width: 100%; height: 100%; }
.bar-row {
  margin-bottom: 0; font-size: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.bar-row:last-child { border-bottom: 1px solid var(--border); }
.bar-row__head {
  display: flex; align-items: center;
  gap: 8px; margin-bottom: 8px;
}
.bar-row__icon { display: inline-flex; flex-shrink: 0; }
.bar-row--sufficient .bar-row__icon-svg { stroke: #5B9BF5; }
.bar-row--insufficient .bar-row__icon-svg { stroke: #F87171; }
.bar-row--none .bar-row__icon-svg { stroke: var(--text-muted); }
.bar-row__label { font-weight: 700; color: var(--text); flex: 1; }
.bar-row__amounts {
  display: flex; justify-content: space-between;
  margin-top: 6px; font-size: 11px; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.bar-row__amt { display: inline-flex; align-items: baseline; gap: 4px; }
.bar-badge {
  font-size: 10.5px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; line-height: 1.4; white-space: nowrap;
  border: 1px solid transparent;
}
.bar-badge--sufficient { background: var(--info-bg); color: var(--info-text); border-color: var(--info-border); }
.bar-badge--insufficient { background: #fff0f0; color: #c92a2a; border-color: #ffc9c9; }
.bar-badge--none { background: #eef0f3; color: #5c6570; border-color: #dde1e6; }
.bar-track { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; }
.bar-fill.ok { background: #5B9BF5; }
.bar-fill.warn { background: #F87171; }
.bar-fill.bad { background: transparent; }
.cviz-wrap { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.cviz-banner { font-size: 13px; font-weight: 700; padding: 10px 12px; border-radius: 8px; background: linear-gradient(90deg, #fff8e6, #fff); border: 1px solid #ffe08a; margin-bottom: 14px; color: var(--text); }
.cviz-policy-scroll { overflow-x: auto; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 8px; }
.cviz-policy-tbl { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 11px; table-layout: fixed; }
.cviz-policy-tbl colgroup col.col-type   { width: 9%; }
.cviz-policy-tbl colgroup col.col-comp   { width: 12%; }
.cviz-policy-tbl colgroup col.col-prod   { width: 28%; }
.cviz-policy-tbl colgroup col.col-prem   { width: 12%; }
.cviz-policy-tbl colgroup col.col-date   { width: 13%; }
.cviz-policy-tbl colgroup col.col-age    { width: 9%; }
.cviz-policy-tbl colgroup col.col-period { width: 17%; }
.cviz-policy-tbl th, .cviz-policy-tbl td {
  padding: 8px 10px; border-bottom: 1px solid var(--border);
  text-align: left; vertical-align: middle;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cviz-policy-tbl th { background: var(--bg-app); color: var(--text-muted); font-weight: 600; }
.cviz-policy-tbl tbody tr:hover { background: var(--accent-soft); }
.cviz-policy-tbl .pol-name {
  display: block; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  cursor: help;
}
.cviz-policy-tbl .pol-name strong { font-weight: 700; }
.cviz-grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
@media (max-width: 900px) { .cviz-grid4 { grid-template-columns: 1fr; } }
.cviz-chart-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.cviz-chart-title { font-size: 12px; font-weight: 700; margin: 0 0 10px; color: var(--text); }
.cviz-donut-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cviz-donut { width: 120px; height: 120px; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,.06)); }
.cviz-legend { flex: 1; min-width: 140px; font-size: 11px; list-style: none; margin: 0; padding: 0; }
.cviz-legend li { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--text-muted); }
.cviz-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cviz-hbar-row { margin-bottom: 8px; font-size: 11px; }
.cviz-hbar-cap { display: flex; justify-content: space-between; margin-bottom: 3px; color: var(--text-muted); }
.cviz-hbar-track { height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; }
.cviz-hbar-fill { height: 100%; border-radius: 5px; transition: width .35s ease; }
.cviz-split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
@media (max-width: 900px) { .cviz-split2 { grid-template-columns: 1fr; } }
.cviz-gauge-row { margin-bottom: 10px; }
.cviz-gauge-cap { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 4px; }
.cviz-gauge-track { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.cviz-gauge-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, rgba(13,148,136,.35), var(--viz-indigo)); }
.cviz-proj-tbl { width: 100%; border-collapse: collapse; font-size: 11px; margin-top: 8px; }
.cviz-proj-tbl th, .cviz-proj-tbl td { padding: 6px 8px; border: 1px solid var(--border); text-align: right; }
.cviz-proj-tbl th { background: var(--bg-app); text-align: center; }
.cviz-proj-tbl td:first-child { text-align: center; font-weight: 600; }
.cviz-proj-highlight { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.cviz-proj-box { padding: 12px; border-radius: 10px; border: 1px solid var(--border); text-align: center; background: linear-gradient(180deg, var(--proj-gradient-start), #fff); }
.cviz-proj-box .lbl { font-size: 11px; color: var(--text-muted); }
.cviz-proj-box .big { font-size: 18px; font-weight: 800; color: var(--accent); margin-top: 4px; }
.cviz-radar2-wrap { max-width: 240px; margin: 0 auto; }
.cviz-radar2-wrap svg { width: 100%; height: auto; display: block; }

.script-block { margin-bottom: 14px; font-size: 13px; }
.script-block h3 { margin: 0 0 8px; font-size: 13px; color: var(--accent); font-weight: 700; }
.script-sec { margin-bottom: 22px; }
.script-sec-title { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--accent); line-height: 1.35; }
.script-sec-hint { margin: -4px 0 10px; font-size: 12px; color: var(--text-muted); }
.script-ul { margin: 0 0 6px; padding-left: 18px; font-size: 13px; line-height: 1.6; color: var(--text); }
.script-subsec { margin-bottom: 14px; }
.script-subtitle { margin: 12px 0 6px; font-size: 13px; font-weight: 700; color: var(--text); }
.script-highlight-card {
  margin-top: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--accent);
  background: linear-gradient(145deg, var(--highlight-gradient-start), #fff); box-shadow: var(--shadow-sm);
}
.script-reco-group {
  margin-bottom: 10px; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--border);
  background: var(--bg-app);
}
.script-reco-hd { font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--text); }
.script-block ul { margin: 0; padding-left: 18px; text-align: left; }
.script-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; gap: 12px; color: var(--text-muted); }
.script-loading .spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#panel-cust-script { text-align: left; flex-direction: column; flex: 1; min-height: 0; }
#cust-script-body { padding: 12px 14px; text-align: left; flex: 1; min-height: 0; overflow-y: auto; }
#cust-script-body.script-loading-wrap {
  display: flex; flex-direction: column; flex: 1; min-height: 220px; justify-content: center; align-items: stretch;
}
#cust-script-body.script-loading-wrap .script-loading {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 200px; padding: 32px 20px; gap: 16px;
  background: linear-gradient(180deg, var(--bg-app) 0%, var(--surface) 40%);
  border-radius: 10px; border: 1px dashed var(--border); margin: 0 2px;
}
#cust-script-body.script-loading-wrap .script-loading .spinner { width: 40px; height: 40px; border-width: 3px; }
#cust-script-body.script-loading-wrap .script-loading span { font-size: 14px; font-weight: 600; color: var(--text); }
.detail-card { padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-card); }
.detail-card:last-child { margin-bottom: 0; }
.detail-card.dash-cov-card.is-cov-stuck {
  position: sticky;
  top: calc(var(--cust-summary-banner-h, 80px) + 8px);
  z-index: 4;
}
.cust-detail-shell { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.cust-hero-card { padding: 18px 20px; }
.cust-hero { display: flex; gap: 16px; align-items: center; }
.cust-hero .avatar { width: 64px; height: 64px; font-size: 22px; flex-shrink: 0; }
.cust-hero .hero-name { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.cust-hero .hero-meta { font-size: 13px; color: var(--text-muted); margin: 0; }
.cust-tier2 { display: grid; grid-template-columns: minmax(108px, 132px) minmax(0, 1fr); gap: 0; align-items: stretch; min-height: 0; flex: 1; }
@media (max-width: 700px) { .cust-tier2 { grid-template-columns: 1fr; } .cust-sublnb { flex-direction: row; flex-wrap: wrap; border-right: none !important; border-bottom: 1px solid var(--border); } }
.cust-tier2-card {
  padding: 0; overflow: hidden; margin-bottom: 0;
  display: flex; flex-direction: column;
  min-height: 360px; max-height: calc(100vh - 240px);
}
.cust-sublnb {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; border-right: 1px solid var(--border);
  background: var(--bg-app); flex-shrink: 0;
}
.cust-sublnb a {
  display: block; padding: 8px 10px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-decoration: none;
  border-radius: 8px;
}
.cust-sublnb a:hover { background: var(--surface); color: var(--text); }
.cust-sublnb a.is-active { color: var(--text); background: var(--accent-soft); }
.cust-detail-main { padding: 14px 16px 18px; min-width: 0; position: relative; min-height: 0; overflow-y: auto; }
.cust-detail-report-fixed { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.cust-detail-tab-panels { min-height: 100px; }
.cust-tab-scroll { overflow-x: auto; max-height: min(48vh, 380px); overflow-y: auto; }
.cust-tab-empty { padding: 16px 0; text-align: left; font-size: 13px; }
.cust-tab-empty-cell { padding: 16px; text-align: center; font-size: 13px; color: var(--text-muted); }
.cust-docs-list { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.cust-docs-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border);
  justify-content: space-between; flex-wrap: wrap;
}
.cust-doc-name { font-weight: 500; color: var(--text); }
.cust-doc-status { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.cust-panel { display: none; }
.cust-panel.is-active { display: block; }
.cust-sec { scroll-margin-top: 20px; margin-bottom: 20px; }
.cust-sec:last-child { margin-bottom: 0; }
.cust-chat-landing {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px 20px; min-height: min(52vh, 420px); gap: 12px;
}
.cust-chat-landing__icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cust-chat-landing__icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.cust-chat-landing h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
.cust-chat-landing p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.55; max-width: 280px; }
#panel-cust-script.panel-cust-script-outer { flex-direction: column; flex: 1; min-height: 0; }
.cust-script-scroll-area { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
#cust-script-body.cust-script-landing-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center; min-height: 260px; padding: 24px 16px;
}
.cust-script-landing { text-align: center; max-width: 320px; margin: 0 auto; }
.cust-script-landing__icon {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 14px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.cust-script-landing__icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.cust-script-landing h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.cust-script-landing p { margin: 0 0 18px; font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.cust-script-topbar {
  flex-shrink: 0; display: flex; justify-content: flex-end; align-items: center;
  padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--bg-app);
}
.btn-regen-secondary { font-size: 13px; font-weight: 600; }
.subsection { margin-bottom: 10px; }
.subsection h4 { margin: 0 0 4px; font-size: 12px; font-weight: 600; }

/* ==========================================================================
   Rich Streaming Sales Script (rsc-*)
   ========================================================================== */
#cust-script-body.rsc-stream {
  display: block;
  padding: 14px 16px 24px;
  text-align: left;
}
.rsc-stream .rsc-block { margin-bottom: 14px; }
.rsc-stream .rsc-block:last-child { margin-bottom: 0; }

@keyframes rsc-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rsc-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.rsc-enter { opacity: 0; transform: translateY(8px); }
.rsc-enter-active { animation: rsc-in 320ms ease-out forwards; }

.rsc-fadein { opacity: 0; transform: translateY(4px); transition: opacity 260ms ease-out, transform 260ms ease-out; }
.rsc-fadein-active { opacity: 1; transform: translateY(0); }

.rsc-typing::after {
  content: "▍";
  display: inline-block;
  margin-left: 2px;
  color: var(--accent);
  animation: rsc-blink 900ms steps(2, start) infinite;
  font-weight: 400;
}

.rsc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

/* Headline block */
.rsc-headline {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border-subtle);
}
.rsc-headline__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}
.rsc-headline__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  min-height: 18px;
}
.rsc-headline__body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
  min-height: 18px;
}

/* Section headers (risks / recos) */
.rsc-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.rsc-section-header__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  min-height: 18px;
}
.rsc-section-header--risks .rsc-section-header__title { color: #c92a2a; }
.rsc-section-header--recos .rsc-section-header__title { color: var(--accent); }

/* Risk blocks */
.rsc-risk {
  position: relative;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.rsc-risk::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 4px;
  border-radius: 4px;
  background: var(--text-muted);
}
.rsc-risk--bad::before { background: #c92a2a; }
.rsc-risk--warn::before { background: #d97706; }
.rsc-risk--neutral::before { background: var(--accent); }

.rsc-risk__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.rsc-risk__no {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 12px; font-weight: 700;
  background: var(--bg-app);
  color: var(--text);
  border: 1px solid var(--border);
}
.rsc-risk--bad .rsc-risk__no { background: #fff0f0; color: #c92a2a; border-color: #ffc9c9; }
.rsc-risk--warn .rsc-risk__no { background: #fff8e6; color: #a16207; border-color: #ffe08a; }
.rsc-risk--neutral .rsc-risk__no { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-border-subtle); }
.rsc-risk__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  min-height: 18px;
  flex: 1;
}
.rsc-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.rsc-badge--bad { background: #fff0f0; color: #c92a2a; border: 1px solid #ffc9c9; }
.rsc-badge--warn { background: #fff8e6; color: #a16207; border: 1px solid #ffe08a; }
.rsc-badge--neutral { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-border-subtle); }

/* Tables (risk + summary share base) */
.rsc-table-wrap { overflow-x: auto; margin-bottom: 10px; }
.rsc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.rsc-table th, .rsc-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.rsc-table thead th {
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-app);
  font-size: 12px;
}
.rsc-table tbody tr:last-child th,
.rsc-table tbody tr:last-child td { border-bottom: none; }
.rsc-table tbody th {
  font-weight: 600;
  color: var(--text);
  background: var(--bg-app);
  width: 96px;
}
.rsc-table__delta { font-weight: 600; color: #c92a2a; }

/* Reasons list */
.rsc-reasons { margin-bottom: 10px; }
.rsc-reasons__head {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.rsc-reasons__list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
}
.rsc-reasons__list li {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 240ms ease-out, transform 240ms ease-out;
  margin-bottom: 2px;
}
.rsc-reasons__list li.rsc-fadein-active { opacity: 1; transform: translateY(0); }

/* Risk recommend line */
.rsc-risk__reco {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  background: var(--accent-bg-tint);
  border: 1px dashed var(--accent-border-subtle);
  border-radius: 8px;
  font-size: 13px;
}
.rsc-risk__reco-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.rsc-risk__reco-body { color: var(--text); min-height: 18px; flex: 1; }

/* Reco blocks */
.rsc-reco {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.rsc-reco__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.rsc-reco__rank {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}
.rsc-reco--rank2 .rsc-reco__rank { background: #4f46e5; }
.rsc-reco--rank3 .rsc-reco__rank { background: #0d9488; }
.rsc-reco--rank4 .rsc-reco__rank { background: #64748b; }
.rsc-reco__title {
  margin: 0;
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  min-height: 18px;
}
.rsc-reco__monthly {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 6px;
}
.rsc-reco__items {
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}
.rsc-reco__items li {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 240ms ease-out, transform 240ms ease-out;
  margin-bottom: 2px;
}
.rsc-reco__items li.rsc-fadein-active { opacity: 1; transform: translateY(0); }
.rsc-reco__reason {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.rsc-reco__reason-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-app);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.rsc-reco__reason-body { flex: 1; }
.rsc-reco__change {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-app);
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-wrap: wrap;
}
.rsc-reco__chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 90px;
}
.rsc-reco__chip-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.rsc-reco__chip-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.rsc-reco__chip--after .rsc-reco__chip-value { color: var(--accent); }
.rsc-reco__arrow {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Summary block */
.rsc-summary {
  padding: 14px 16px;
  border: 1px solid var(--accent-border-subtle);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 65%);
}
.rsc-summary__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.rsc-summary__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  min-height: 18px;
}
.rsc-summary__table tbody th {
  background: rgba(255, 255, 255, 0.6);
}
.rsc-summary__delta {
  font-weight: 700;
}
.rsc-summary__delta--ok { color: #0d9488; }
.rsc-summary__delta--neu { color: var(--accent); }
.rsc-summary__delta--bad { color: #c92a2a; }

/* Basis / Extra grouped lists */
.rsc-basis, .rsc-extra {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.rsc-grouped__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.rsc-grouped__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  min-height: 18px;
}
.rsc-group {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--bg-app);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.rsc-group:last-child { margin-bottom: 0; }
.rsc-group__head {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  min-height: 18px;
}
.rsc-group__list {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
}
.rsc-group__list li {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 240ms ease-out, transform 240ms ease-out;
  margin-bottom: 2px;
}
.rsc-group__list li.rsc-fadein-active { opacity: 1; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .rsc-enter-active { animation: none; opacity: 1; transform: none; }
  .rsc-fadein, .rsc-fadein-active { opacity: 1; transform: none; transition: none; }
  .rsc-typing::after { display: none; }
}

/* Consultation history (Issue #42) */
.consult-summary {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 14px; margin-bottom: 16px;
  background: var(--accent-soft); border-radius: 10px;
}
.consult-summary__num {
  font-size: 24px; font-weight: 800; color: var(--accent);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.consult-summary__lbl { font-size: 13px; font-weight: 600; color: var(--text); }
.consult-summary__last { margin-left: auto; font-size: 12px; color: var(--text-muted); }

.consult-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.consult-timeline::before {
  content: ""; position: absolute; left: 90px; top: 6px; bottom: 6px;
  width: 1px; background: var(--border);
}
.consult-item { display: flex; gap: 16px; padding: 12px 0; position: relative; }
.consult-item__date {
  flex: 0 0 78px; padding-top: 2px; font-size: 12px; color: var(--text-muted);
  font-variant-numeric: tabular-nums; text-align: right;
}
.consult-item::after {
  content: ""; position: absolute; left: 87px; top: 16px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
}
.consult-item__body { flex: 1; padding-left: 20px; min-width: 0; }
.consult-item__hd { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.consult-item__topic { font-weight: 700; color: var(--text); font-size: 13px; }
.consult-chip {
  font-size: 10.5px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; line-height: 1.4; border: 1px solid transparent;
  white-space: nowrap;
}
.consult-chip--phone { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.consult-chip--visit { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.consult-chip--sms { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }
.consult-chip--email { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.consult-item__result { font-size: 12px; color: var(--text); margin-bottom: 2px; }
.consult-item__fp { font-size: 11px; color: var(--text-muted); }

@media (max-width: 520px) {
  .consult-timeline::before { left: 70px; }
  .consult-item__date { flex: 0 0 60px; font-size: 11px; }
  .consult-item::after { left: 67px; }
  .consult-item__body { padding-left: 16px; }
}

/* Consultation history detail (Issue #41) */
.consult-view { width: 100%; }

/* Clickable timeline button — wraps date + body + chevron */
.consult-item__btn {
  display: flex; align-items: stretch; gap: 16px; width: 100%;
  padding: 0; border: 0; background: transparent; cursor: pointer;
  text-align: left; color: inherit; font: inherit;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.consult-item__btn:hover { background: var(--accent-soft); }
.consult-item__btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.consult-item__chev {
  align-self: center; flex-shrink: 0;
  color: var(--text-muted); font-size: 20px; line-height: 1;
  padding: 0 10px 0 4px;
  transition: transform 0.15s ease, color 0.15s ease;
}
.consult-item__btn:hover .consult-item__chev {
  transform: translateX(2px); color: var(--accent);
}

/* Detail view — back button + meta card + sections */
.consult-detail__back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; margin-bottom: 14px;
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.consult-detail__back:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.consult-detail__back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.consult-detail__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 12px 14px; margin-bottom: 18px;
  background: var(--accent-soft);
  border: 1px solid var(--border); border-radius: 10px;
}
.consult-detail__meta-topic { font-size: 14px; font-weight: 700; color: var(--text); }
.consult-detail__meta-line {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-muted); font-weight: 500;
}

.consult-section { margin-bottom: 18px; }
.consult-section__hd {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px;
}

.consult-keywords { display: flex; flex-wrap: wrap; gap: 6px; }
.consult-keyword {
  display: inline-block; padding: 4px 10px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 12px; font-weight: 600;
}

.consult-summary-list { margin: 0; padding-left: 18px; list-style: disc; }
.consult-summary-list li {
  margin-bottom: 4px; font-size: 13px; color: var(--text); line-height: 1.55;
}

.consult-transcript {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px;
}
.consult-msg {
  display: flex; flex-direction: column; gap: 2px;
  max-width: 85%; padding: 8px 12px; border-radius: 12px;
  font-size: 13px; line-height: 1.5;
}
.consult-msg--fp {
  align-self: flex-start;
  background: #f4f6fb; color: var(--text);
  border: 1px solid var(--border);
}
.consult-msg--customer {
  align-self: flex-end;
  background: var(--accent); color: #fff;
}
.consult-msg__meta { font-size: 10.5px; opacity: 0.85; font-weight: 600; }
.consult-msg__text { white-space: pre-wrap; }

