/* Client-facing Earnings Snapshot + Concall Highlights pages */

/* Concall Highlights — canonical page tokens.
   Mirrors the readable typography/radius/spacing approach used by Contacts
   and Shareholding Analysis. All concall selectors consume these variables. */
:root {
  --ch-purple: var(--ircc-brand-600, #6c4cf5);
  --ch-purple-dark: var(--ircc-brand-700, #5638e7);
  --ch-purple-soft: var(--ircc-brand-100, #f0ecff);
  --ch-purple-surface: var(--ircc-brand-50, #f7f5ff);
  --ch-ink: var(--ircc-text, #252739);
  --ch-text: var(--ircc-text-secondary, #5f6377);
  --ch-muted: var(--ircc-text-muted, #858a9d);
  --ch-border: var(--ircc-border, #e6e7ef);
  --ch-border-soft: var(--ircc-border-soft, #eff0f5);
  --ch-surface: var(--ircc-surface, #fff);
  --ch-surface-soft: var(--ircc-surface-soft, #fafafe);

  --ch-font-family: var(--ircc-font-sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  --ch-font-xs: 10px;
  --ch-font-sm: 11px;
  --ch-font-md: 12px;
  --ch-font-body: 13px;
  --ch-font-lg: 14px;
  --ch-font-xl: 16px;
  --ch-font-2xl: 18px;
  --ch-font-page: 26px;

  /* Icon/control scale — aligned with Contacts + Shareholding.
     Components consume semantic tokens below; icon geometry is not repeated
     throughout selectors. */
  --ch-icon-xs: 12px;
  --ch-icon-sm: 13px;
  --ch-icon-md: 15px;
  --ch-icon-lg: 16px;

  --ch-control-sm: 32px;
  --ch-control-md: 34px;
  --ch-control-lg: 36px;

  --ch-toolbar-control-size: var(--ch-control-md);
  --ch-toolbar-icon-size: var(--ch-icon-lg);
  --ch-card-label-icon-size: 14px;
  --ch-card-meta-icon-size: var(--ch-icon-sm);
  --ch-card-action-size: var(--ch-control-sm);
  --ch-card-action-icon-size: var(--ch-icon-md);
  --ch-reader-action-size: var(--ch-control-md);
  --ch-reader-action-icon-size: var(--ch-icon-md);
  --ch-section-icon-size: var(--ch-control-md);
  --ch-section-glyph-size: var(--ch-icon-lg);
  --ch-content-icon-size: var(--ch-control-md);
  --ch-content-glyph-size: var(--ch-icon-md);
  --ch-basis-icon-size: var(--ch-icon-sm);
  --ch-qa-badge-size: 28px;

  --ch-email-modal-width: 540px;
  --ch-email-field-height: 42px;
  --ch-email-action-height: 38px;

  --ch-weight-medium: 500;
  --ch-weight-semibold: 600;
  --ch-weight-bold: 700;
  --ch-weight-extrabold: 800;

  --ch-leading-tight: 1.2;
  --ch-leading-ui: 1.4;
  --ch-leading-body: 1.58;

  --ch-space-1: 4px;
  --ch-space-2: 8px;
  --ch-space-3: 12px;
  --ch-space-4: 16px;
  --ch-space-5: 20px;
  --ch-space-6: 24px;

  --ch-radius-sm: 9px;
  --ch-radius-md: 12px;
  --ch-radius-lg: 16px;
  --ch-radius-pill: 999px;

  --ch-shadow-sm: var(--ircc-shadow-sm, 0 4px 14px rgba(55,47,105,.055));
  --ch-shadow-md: var(--ircc-shadow-md, 0 10px 28px rgba(55,47,105,.08));
}

.earnings-module {
  --em-purple: var(--ch-purple);
  --em-purple-dark: var(--ch-purple-dark);
  --em-purple-soft: var(--ch-purple-soft);
  --em-text: var(--ch-ink);
  --em-muted: var(--ch-muted);
  --em-line: var(--ch-border);
  --em-soft: var(--ch-surface-soft);
  --em-green: #07966f;
  --em-green-soft: #e9f8f2;
  --em-red: #dd3857;
  --em-amber: #b77912;
  width: 100%;
  min-width: 0;
  color: var(--em-text);
  font-family: var(--ch-font-family);
}

.earnings-module *,
.earnings-module *::before,
.earnings-module *::after { box-sizing: border-box; }

.earnings-module .hidden { display: none !important; }
.earnings-module .minw0 { min-width: 0; }

/* Page header */
.em-client-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 14px;
  padding: 2px 2px 0;
}

.em-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: #8a78dc;
  font-size: var(--ch-font-xs);
  line-height: 1;
  font-weight: var(--ch-weight-extrabold);
  letter-spacing: 1.4px;
}

.em-eyebrow span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--em-purple);
}

.em-client-head h1 {
  margin: 0;
  color: #1e2132;
  font-size: var(--ch-font-page);
  line-height: 1.08;
  font-weight: var(--ch-weight-extrabold);
  letter-spacing: -1px;
}

.em-client-head h1 strong { color: var(--em-purple); }

.em-client-head p {
  margin: 5px 0 0;
  max-width: 700px;
  color: var(--em-muted);
  font-size: var(--ch-font-md);
  line-height: 1.45;
}

.em-client-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 1 auto;
}

.em-search {
  position: relative;
  display: block;
}

.em-search.compact { width: min(330px, 29vw); }

.em-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ba2b7;
  font-size: var(--ch-card-meta-icon-size);
  pointer-events: none;
}

.em-search input {
  width: 100%;
  height: 34px;
  border: 1px solid #e3e5ed;
  border-radius: 11px;
  outline: none;
  background: #fff;
  padding: 0 13px 0 33px;
  color: #303346;
  font: var(--ch-weight-semibold) var(--ch-font-md)/1 var(--ch-font-family);
  box-shadow: 0 2px 8px rgba(36, 31, 65, .025);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.em-search input:focus {
  border-color: #cec4ff;
  box-shadow: 0 0 0 3px rgba(108, 76, 245, .07);
}

.em-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 11px;
  border: 1px solid #e4e5ed;
  border-radius: 11px;
  background: #fff;
  color: #777c90;
  font-size: var(--ch-font-sm);
  font-weight: var(--ch-weight-bold);
  white-space: nowrap;
}

.em-icon-btn {
  width: var(--ch-toolbar-control-size);
  height: var(--ch-toolbar-control-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e4ed;
  border-radius: 11px;
  background: #fff;
  color: #6f7386;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.em-icon-btn:hover {
  color: var(--em-purple);
  border-color: #d6ceff;
  background: #faf9ff;
  transform: translateY(-1px);
}

.em-icon-btn i { font-size: var(--ch-toolbar-icon-size); line-height: 1; }

/* Earnings Snapshot: exactly 3 cards on wide desktop */
.es-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  align-items: start;
}

.es-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e4e5ee;
  border-top: 2px solid #8d78ff;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(36, 31, 65, .045);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.es-card:hover {
  transform: translateY(-1px);
  border-color: #d9d3fa;
  box-shadow: 0 9px 24px rgba(45, 36, 88, .07);
}

.es-card-title {
  min-width: 0;
}

.es-card-meta span + span::before {
  content: "•";
  margin-right: 5px;
  color: #c0c2cd;
}

.es-quarter-badge {
  letter-spacing: .25px;
}

.es-table-wrap {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid #ececf3;
}

.es-snapshot-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.es-snapshot-table thead th {
  letter-spacing: .15px;
}

.es-snapshot-table thead th:first-child {
  width: 29%;
  padding-left: 10px;
  text-align: left;
}

.es-snapshot-table tbody td:first-child {
  padding-left: 10px;
  color: #55596d;
  font-weight: 650;
  text-align: left;
}

.es-snapshot-table th:nth-child(2),
.es-snapshot-table td:nth-child(2) {
  background: #fbfaff;
  color: #5f48d7;
  font-weight: 800;
}

.es-snapshot-table tbody tr:last-child td { border-bottom: 0; }
.es-snapshot-table .val-pos { color: var(--em-green); }
.es-snapshot-table .val-neg { color: var(--em-red); }
.es-snapshot-table .val-bps { color: #6f59d8; }
.es-snapshot-table .val-na { color: #a4a7b4; }

.es-card-foot {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 7px 11px;
  border-top: 1px solid #f0f0f5;
  background: #fcfcfe;
  color: #9699a8;
  font-size: 8px;
  font-weight: 600;
}

.es-card-foot .ready {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #168367;
}

.es-card-foot .ready::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2ec49c;
}

.es-processing {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #777c91;
}

.es-processing i {
  margin-bottom: 10px;
  color: var(--em-purple);
  font-size: 22px;
}

.es-processing strong {
  display: block;
  margin-bottom: 4px;
  color: #2e3144;
  font-size: 12px;
}

/* Empty states */
.em-empty-client {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border: 1px dashed #dfe0e9;
  border-radius: 16px;
  background: rgba(255,255,255,.7);
  text-align: center;
}

.em-empty-client > div {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 13px;
  background: #f1edff;
  color: var(--em-purple);
  font-size: 18px;
}

.em-empty-client h2 {
  margin: 0;
  color: #2b2e40;
  font-size: 14px;
  font-weight: 800;
}

.em-empty-client p {
  margin: 6px 0 0;
  color: #8b8fa1;
  font-size: 10px;
}

/* Skeletons */
.es-skeleton-card,
.ch-skeleton-card {
  overflow: hidden;
  border: 1px solid #e8e8ef;
  border-radius: 15px;
  background: #fff;
  padding: 13px;
}

.es-skeleton-card { min-height: 250px; }

.es-skeleton-line,
.es-skeleton-table,
.ch-skeleton-actions {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: #f0f1f6;
}

.es-skeleton-line::after,
.es-skeleton-table::after,
.ch-skeleton-actions::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  animation: emShimmer 1.3s infinite;
}

.es-skeleton-line.title { width: 54%; height: 13px; }
.es-skeleton-line.meta { width: 34%; height: 8px; margin-top: 8px; }
.es-skeleton-table { height: 165px; margin: 18px -13px -13px; border-radius: 0; }
.ch-skeleton-actions { width: 65%; }

@keyframes emShimmer { 100% { transform: translateX(100%); } }

/* Client transcript modal */
.em-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(30, 28, 45, .34);
  backdrop-filter: blur(5px);
}

.em-modal-backdrop.show { display: flex; }

.em-modal {
  width: min(760px, 96vw);
  max-height: 90vh;
  overflow: hidden;
  border: 1px solid #e3e3ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(31, 26, 64, .2);
}

.em-modal.xl { width: min(1120px, 96vw); }

.em-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  border-bottom: 1px solid #ececf2;
}

.em-modal-head h2 {
  margin: 0;
  color: #242738;
  font-size: 16px;
  font-weight: 800;
}

.em-modal-head p {
  margin: 4px 0 0;
  color: #8a8fa1;
  font-size: 10px;
}

.em-modal-actions-inline { display: flex; align-items: center; gap: 7px; }

.em-btn.soft {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #e0e2eb;
  border-radius: 9px;
  background: #fff;
  color: #666b80;
  text-decoration: none;
  font-size: 9px;
  font-weight: 700;
}

.em-close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e2eb;
  border-radius: 9px;
  background: #fff;
  color: #717587;
  cursor: pointer;
}

.em-modal-body {
  max-height: calc(90vh - 64px);
  overflow: auto;
  padding: 15px;
}

.ch-transcript-body { min-height: 520px; }
.ch-transcript-frame { width: 100%; height: 65vh; border: 0; border-radius: 10px; background: #fff; }
.em-inline-loading { padding: 40px; text-align: center; color: #888ca0; font-size: 11px; }
.em-inline-loading i { margin-right: 7px; color: var(--em-purple); }

/* Responsive */

@media (max-width: 1250px) {
  .es-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .em-client-head { align-items: stretch; flex-direction: column; gap: 12px; }
  .em-client-tools { justify-content: flex-start; }
  .em-search.compact { width: min(100%, 420px); flex: 1; }
}


/* Compact earnings snapshot cards for client page */
.es-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 9px;

    min-height: 44px;

    padding: 8px 12px 6px;
}

.es-card-title h2 {
    margin: 0;

    overflow: hidden;

    color: #222536;

    font-size: 14px;
    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -0.1px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.es-card-meta {
    display: flex;
    align-items: center;

    gap: 5px;

    margin-top: 2px;

    color: #8b8fa2;

    font-size: 9px;
    line-height: 1;

    font-weight: 600;

    text-transform: capitalize;
}

.es-quarter-badge {
    flex: 0 0 auto;

    padding: 4px 8px;

    border: 1px solid #ddd7ff;
    border-radius: 7px;

    background: #f6f3ff;

    color: #6750dc;

    font-size: 8.5px;
    line-height: 1;

    font-weight: 800;

    white-space: nowrap;
}

.es-snapshot-table th,
.es-snapshot-table td {
    min-width: 0;

    padding: 5px 6px;

    border-bottom: 1px solid #f0f0f5;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.es-snapshot-table thead th {
    background: #fafaff;

    color: #767b91;

    font-size: 9px;
    line-height: 1;

    font-weight: 800;

    text-align: right;
}

.es-snapshot-table tbody td {
    color: #343748;

    font-size: 10.5px;
    line-height: 1.05;

    font-weight: 600;

    text-align: right;
}

.es-snapshot-table thead th:first-child,
.es-snapshot-table tbody td:first-child {
    padding-left: 9px;
}

.es-card-foot {
  display: none !important;
}


/* ==========================================================================
   CONCALL HIGHLIGHTS — CANONICAL V58 ICON SCALE
   One definition per component. No historical patch layers.
   ========================================================================== */

/* 01 — Horizontal selectable report rail */
.ch-library {
  position: relative;
  margin-top: var(--ch-space-1);
}

.ch-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 9px;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #cec6f6 transparent;
}

.ch-grid::-webkit-scrollbar { height: 7px; }
.ch-grid::-webkit-scrollbar-track { background: transparent; }
.ch-grid::-webkit-scrollbar-thumb { border-radius: var(--ch-radius-pill); background: #d3cdf4; }
.ch-grid::-webkit-scrollbar-thumb:hover { background: #bbb0ef; }

.ch-card,
.ch-skeleton-card {
  flex: 0 0 clamp(236px, 18vw, 282px);
  width: clamp(236px, 18vw, 282px);
  min-width: 236px;
  scroll-snap-align: start;
}

.ch-card {
  min-height: 134px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--ch-border);
  border-top: 2px solid #aa9cf1;
  border-radius: var(--ch-radius-lg);
  background: var(--ch-surface);
  box-shadow: var(--ch-shadow-sm);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.ch-card:hover { border-color: #d4cff0; box-shadow: 0 7px 18px rgba(50,42,92,.06); }

.ch-card.is-selected {
  border-color: #7659ef;
  border-top-color: var(--ch-purple);
  background: linear-gradient(180deg, #fbfaff 0%, #fff 58%);
  box-shadow: 0 0 0 2px rgba(108,76,245,.07), 0 7px 18px rgba(74,58,139,.07);
}

.ch-card-select {
  width: 100%;
  min-height: 89px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 13px 13px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ch-card-select:focus-visible {
  outline: 2px solid var(--ch-purple);
  outline-offset: -3px;
  border-radius: 13px 13px 9px 9px;
}

.ch-card-topline {
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ch-space-2);
  margin-bottom: 7px;
}

.ch-card-type,
.ch-selected-mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8172c8;
  font-size: var(--ch-font-xs);
  line-height: 1;
  font-weight: var(--ch-weight-extrabold);
  letter-spacing: .5px;
  text-transform: uppercase;
}

.ch-card-type i { font-size: var(--ch-card-label-icon-size); line-height: 1; }

.ch-selected-mark {
  visibility: hidden;
  padding: 4px 7px;
  border-radius: var(--ch-radius-pill);
  background: var(--ch-purple-soft);
  color: var(--ch-purple-dark);
  letter-spacing: .15px;
}

.ch-card.is-selected .ch-selected-mark { visibility: visible; }

.ch-title {
  display: block;
  overflow: hidden;
  margin: 0 0 8px;
  color: var(--ch-ink);
  font-size: var(--ch-font-lg);
  line-height: 1.25;
  font-weight: var(--ch-weight-extrabold);
  letter-spacing: -.15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ch-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-height: 16px;
  color: var(--ch-muted);
  font-size: var(--ch-font-sm);
  line-height: 1.25;
  font-weight: var(--ch-weight-semibold);
}

.ch-meta > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ch-meta i { color: #9488d7; font-size: var(--ch-card-meta-icon-size); line-height: 1; }

.ch-card-actions {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px 8px;
  border-top: 1px solid var(--ch-border-soft);
  background: rgba(250,250,253,.76);
}

.ch-primary,
.ch-icon,
.ch-transcript-btn {
  height: var(--ch-card-action-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ch-radius-sm);
  text-decoration: none;
  cursor: pointer;
}

.ch-primary {
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--ch-purple);
  background: linear-gradient(135deg, #7556f6, #6245e9);
  color: #fff;
  font-size: var(--ch-font-sm);
  font-weight: var(--ch-weight-bold);
}

.ch-primary:hover { background: var(--ch-purple-dark); }
.ch-primary i { font-size: var(--ch-card-action-icon-size); line-height: 1; }

.ch-icon,
.ch-transcript-btn {
  width: var(--ch-card-action-size);
  padding: 0;
  border: 1px solid var(--ch-border);
  background: #fff;
  color: #6f7388;
  font-size: var(--ch-card-action-icon-size);
}

.ch-icon i,
.ch-transcript-btn i { font-size: var(--ch-card-action-icon-size); line-height: 1; }

.ch-icon:hover,
.ch-transcript-btn:hover { border-color: #d4ccff; background: var(--ch-purple-surface); color: var(--ch-purple); }
.ch-card-actions .push-right { margin-left: auto; }
.ch-kicker, .ch-ready { display: none !important; }

.ch-skeleton-card {
  min-height: 134px;
  padding: 14px;
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius-lg);
  background: #fff;
}

.ch-skeleton-actions { height: 30px; margin-top: 44px; }

/* 02 — Selected report shell */
.ch-reader {
  margin-top: var(--ch-space-3);
  overflow: hidden;
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius-lg);
  background: var(--ch-surface);
  box-shadow: var(--ch-shadow-sm);
}

.ch-reader-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ch-space-4);
  padding: 9px 16px;
  border-bottom: 1px solid var(--ch-border-soft);
  background: linear-gradient(180deg, #fdfcff 0%, #faf9ff 100%);
}

.ch-reader-heading { flex: 1 1 auto; min-width: 0; }

.ch-reader-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
  color: #8074c6;
  font-size: var(--ch-font-xs);
  line-height: 1;
  font-weight: var(--ch-weight-extrabold);
  letter-spacing: .8px;
}

.ch-reader-eyebrow span { width: 14px; height: 2px; border-radius: var(--ch-radius-pill); background: var(--ch-purple); }

.ch-reader-head h2 {
  margin: 0;
  overflow: hidden;
  color: var(--ch-ink);
  font-size: var(--ch-font-2xl);
  line-height: var(--ch-leading-tight);
  font-weight: var(--ch-weight-extrabold);
  letter-spacing: -.2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ch-reader-head p {
  margin: 3px 0 0;
  color: var(--ch-muted);
  font-size: var(--ch-font-sm);
  line-height: var(--ch-leading-ui);
  font-weight: var(--ch-weight-semibold);
}

.ch-reader-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.ch-reader-action {
  min-height: var(--ch-reader-action-size);
  gap: 7px;
  padding: 0 11px;
  font-size: var(--ch-font-sm);
  font-weight: var(--ch-weight-bold);
  white-space: nowrap;
  cursor: pointer;
}

/* Two-class selector intentionally beats the legacy .em-btn.soft 9px rule. */
.ch-reader-actions .em-btn.soft.ch-reader-action {
  height: var(--ch-reader-action-size);
  min-height: var(--ch-reader-action-size);
  font-size: var(--ch-font-sm);
}

.ch-reader-action i {
  font-size: var(--ch-reader-action-icon-size);
  line-height: 1;
}

.ch-reader-actions .em-btn.soft.ch-reader-email-action {
  border-color: var(--ch-purple);
  background: var(--ch-purple);
  color: #fff;
  box-shadow: 0 5px 12px rgba(108, 76, 245, .14);
}

.ch-reader-actions .em-btn.soft.ch-reader-email-action:hover {
  border-color: var(--ch-purple-dark);
  background: var(--ch-purple-dark);
}

.ch-reader-body { min-height: 320px; padding: 0; background: #fff; }

.ch-reader-loading,
.ch-reader-error {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ch-muted);
  text-align: left;
}

.ch-reader-loading > i,
.ch-reader-error > i { color: var(--ch-purple); font-size: var(--ch-font-2xl); }

.ch-reader-loading strong,
.ch-reader-error strong,
.ch-reader-loading span,
.ch-reader-error span { display: block; }

.ch-reader-loading strong,
.ch-reader-error strong { margin-bottom: 3px; color: var(--ch-ink); font-size: var(--ch-font-md); line-height: 1.3; }
.ch-reader-loading span,
.ch-reader-error span { max-width: 560px; font-size: var(--ch-font-sm); line-height: 1.45; }

/* 03 — Native report document */

/* Concall email composer — uses the same canonical page tokens. */
.ch-email-modal { width: min(var(--ch-email-modal-width), 94vw); }

.ch-email-modal-head { padding: 16px 18px; }

.ch-email-title-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.ch-email-title-icon {
  width: var(--ch-control-lg);
  height: var(--ch-control-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--ch-purple-soft);
  color: var(--ch-purple);
  font-size: var(--ch-icon-lg);
}

.ch-email-title-icon i { font-size: var(--ch-icon-lg); line-height: 1; }

.ch-email-modal-head h2 {
  font-size: var(--ch-font-xl);
  font-weight: var(--ch-weight-extrabold);
}

.ch-email-modal-head p {
  margin-top: 3px;
  color: var(--ch-muted);
  font-size: var(--ch-font-sm);
  line-height: var(--ch-leading-ui);
}

.ch-email-body {
  display: grid;
  gap: 14px;
  padding: 17px 18px 15px;
}

.ch-email-field {
  display: grid;
  gap: 7px;
}

.ch-email-field > span {
  color: var(--ch-ink);
  font-size: var(--ch-font-md);
  line-height: 1.25;
  font-weight: var(--ch-weight-bold);
}

.ch-email-input-wrap {
  position: relative;
}

.ch-email-input-wrap > i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #8c90a3;
  font-size: var(--ch-icon-md);
  pointer-events: none;
}

.ch-email-input-wrap input {
  width: 100%;
  height: var(--ch-email-field-height);
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius-md);
  outline: 0;
  background: #fff;
  padding: 0 13px 0 39px;
  color: var(--ch-ink);
  font: var(--ch-weight-medium) var(--ch-font-body)/1 var(--ch-font-family);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.ch-email-input-wrap input:focus {
  border-color: #c8bcff;
  box-shadow: 0 0 0 3px rgba(108, 76, 245, .08);
}

.ch-email-report-preview {
  display: grid;
  grid-template-columns: var(--ch-control-lg) minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid #e8e5f6;
  border-radius: var(--ch-radius-md);
  background: var(--ch-purple-surface);
}

.ch-email-preview-icon {
  width: var(--ch-control-lg);
  height: var(--ch-control-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--ch-purple-soft);
  color: var(--ch-purple);
  font-size: var(--ch-icon-lg);
}

.ch-email-report-preview strong {
  display: block;
  overflow: hidden;
  color: var(--ch-ink);
  font-size: var(--ch-font-body);
  line-height: 1.3;
  font-weight: var(--ch-weight-bold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ch-email-report-preview span:not(.ch-email-preview-icon) {
  display: block;
  margin-top: 3px;
  color: var(--ch-muted);
  font-size: var(--ch-font-sm);
  line-height: var(--ch-leading-ui);
}

.ch-email-alert {
  padding: 10px 12px;
  border: 1px solid #e2e3eb;
  border-radius: var(--ch-radius-md);
  background: #fafafd;
  color: var(--ch-text);
  font-size: var(--ch-font-md);
  line-height: var(--ch-leading-ui);
  font-weight: var(--ch-weight-semibold);
}

.ch-email-alert.is-info { border-color: #ded8ff; background: var(--ch-purple-surface); color: #5d50b7; }
.ch-email-alert.is-success { border-color: #cdebdc; background: #effaf5; color: #147453; }
.ch-email-alert.is-error { border-color: #f0d4da; background: #fff5f7; color: #a43a52; }

.ch-email-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 18px 16px;
  border-top: 1px solid var(--ch-border-soft);
}

.ch-email-cancel,
.ch-email-send {
  height: var(--ch-email-action-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 0 15px;
  font: var(--ch-weight-bold) var(--ch-font-md)/1 var(--ch-font-family);
  cursor: pointer;
}

.ch-email-cancel {
  border: 1px solid var(--ch-border);
  background: #fff;
  color: var(--ch-text);
}

.ch-email-send {
  min-width: 118px;
  border: 1px solid var(--ch-purple);
  background: var(--ch-purple);
  color: #fff;
  box-shadow: 0 6px 14px rgba(108, 76, 245, .16);
}

.ch-email-send i { font-size: var(--ch-icon-md); }
.ch-email-send:hover { border-color: var(--ch-purple-dark); background: var(--ch-purple-dark); }
.ch-email-send:disabled { opacity: .68; cursor: wait; }
.ch-email-send.is-success { border-color: #17815e; background: #17815e; }

.ch-report-document {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px 20px 28px;
  background: #fff;
  color: var(--ch-text);
  font-family: var(--ch-font-family);
  font-size: var(--ch-font-body);
  line-height: var(--ch-leading-body);
  overflow-wrap: normal;
  word-break: normal;
}

.ch-report-document * { box-sizing: border-box; }
.ch-report-document > :first-child { margin-top: 0 !important; }
.ch-report-document > :last-child { margin-bottom: 0 !important; }
.ch-report-document > p { max-width: 1180px; margin: 0 0 12px; color: var(--ch-text); }
.ch-report-document strong { color: var(--ch-ink); font-weight: var(--ch-weight-bold); }
.ch-report-document a { color: var(--ch-purple-dark); font-weight: var(--ch-weight-bold); text-decoration: none; }
.ch-report-document a:hover { text-decoration: underline; }
.ch-report-document img, .ch-report-document svg, .ch-report-document video { max-width: 100%; height: auto; }

/* 04 — Section headings */
.ch-report-section-title {
  display: grid;
  grid-template-columns: 3px var(--ch-section-icon-size) minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  margin: 22px 0 11px;
}

.ch-report-section-title:first-child,
.ch-report-section-title.is-financial-snapshot { margin-top: 0; }

.ch-report-section-accent {
  width: 3px;
  align-self: stretch;
  min-height: 32px;
  border-radius: var(--ch-radius-pill);
  background: var(--ch-purple);
}

.ch-report-section-icon {
  width: var(--ch-section-icon-size);
  height: var(--ch-section-icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--ch-purple-soft);
  color: var(--ch-purple);
  font-size: var(--ch-section-glyph-size);
}

.ch-report-section-icon i { font-size: var(--ch-section-glyph-size); line-height: 1; }

.ch-report-section-copy { min-width: 0; }
.ch-report-section-copy small {
  display: block;
  margin-bottom: 1px;
  color: #8372df;
  font-size: var(--ch-font-xs);
  line-height: 1.15;
  font-weight: var(--ch-weight-extrabold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ch-report-section-copy h3 {
  margin: 0;
  color: var(--ch-ink);
  font-size: var(--ch-font-xl);
  line-height: 1.2;
  font-weight: var(--ch-weight-extrabold);
  letter-spacing: -.1px;
}

.ch-report-basis { display: flex; align-items: center; margin: 0; }
.ch-report-basis.is-inline { grid-column: 4; grid-row: 1; }
.ch-report-basis > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #ddd7fb;
  border-radius: var(--ch-radius-sm);
  background: var(--ch-purple-surface);
  color: #6550ce;
  font-size: var(--ch-font-xs);
  line-height: 1;
  font-weight: var(--ch-weight-extrabold);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.ch-report-basis i { font-size: var(--ch-basis-icon-size); line-height: 1; color: #7a61ea; }

/* 05 — Financial snapshot */
.ch-report-table-wrap {
  width: 100%;
  margin: 0 0 18px;
  overflow-x: auto;
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius-md);
  background: #fff;
  box-shadow: 0 7px 20px rgba(41,45,63,.035);
}

.ch-report-document table.ch-report-table {
  width: 100%;
  min-width: 760px;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  color: #44495b;
  font-size: var(--ch-font-md);
  line-height: var(--ch-leading-ui);
  font-variant-numeric: tabular-nums;
}

.ch-report-document .ch-report-table th,
.ch-report-document .ch-report-table td {
  min-width: 112px;
  padding: 10px 13px;
  border: 0;
  border-right: 1px solid #ebebf2;
  border-bottom: 1px solid #ebebf2;
  background: #fff;
  vertical-align: middle;
  text-align: left;
  white-space: normal;
}

.ch-report-document .ch-report-table th:first-child,
.ch-report-document .ch-report-table td:first-child { min-width: 220px; width: 27%; }
.ch-report-document .ch-report-table th:last-child,
.ch-report-document .ch-report-table td:last-child { border-right: 0; }
.ch-report-document .ch-report-table tr:last-child td { border-bottom: 0; }
.ch-report-document .ch-report-table thead th,
.ch-report-document .ch-report-table tr:first-child th {
  background: #f7f6fb;
  color: #303447;
  font-size: var(--ch-font-sm);
  font-weight: var(--ch-weight-extrabold);
}
.ch-report-document .ch-report-table tbody tr:nth-child(even) td { background: #fcfcff; }
.ch-report-document .ch-report-table tbody tr:hover td { background: #faf9ff; }

/* 06 — Operational highlights + key participants */
.ch-report-split {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(300px, .85fr);
  gap: 18px;
  align-items: start;
  margin: 0 0 20px;
}

.ch-report-split-main,
.ch-report-split-side { min-width: 0; }
.ch-report-split .ch-report-section-title { margin-top: 0; }
.ch-report-split-side { padding-left: 2px; }

.ch-report-document ul,
.ch-report-document ol { max-width: none; margin: 0; padding-left: 0; list-style: none; }

.ch-insights-list { display: grid; gap: 8px; }
.ch-insights-list li {
  display: grid;
  grid-template-columns: var(--ch-content-icon-size) minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid #ededf4;
  border-left: 3px solid #7a61f7;
  border-radius: var(--ch-radius-md);
  background: #fbfbfd;
  color: #44495a;
  font-size: var(--ch-font-body);
  line-height: var(--ch-leading-body);
}

.ch-list-icon,
.ch-participant-icon {
  width: var(--ch-content-icon-size);
  height: var(--ch-content-icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--ch-purple-soft);
  color: var(--ch-purple);
  font-size: var(--ch-content-glyph-size);
}

.ch-list-icon i,
.ch-participant-icon i { font-size: var(--ch-content-glyph-size); line-height: 1; }

.ch-list-body { min-width: 0; padding-top: 1px; }
.ch-list-body p:last-child,
.ch-list-body > :last-child { margin-bottom: 0; }

.ch-report-document .ch-participants-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: none;
  padding: 0;
}

.ch-report-document .ch-participants-list li {
  display: grid;
  grid-template-columns: var(--ch-content-icon-size) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid #ececf4;
  border-radius: var(--ch-radius-md);
  background: #fafafd;
  color: #484d5d;
}

.ch-participant-copy { min-width: 0; }
.ch-participant-copy strong {
  display: block;
  overflow: hidden;
  color: var(--ch-ink);
  font-size: var(--ch-font-md);
  line-height: 1.3;
  font-weight: var(--ch-weight-bold);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ch-participant-copy span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--ch-muted);
  font-size: var(--ch-font-sm);
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 07 — Analyst Q&A */
.ch-qa-item {
  max-width: none;
  margin: 0 0 10px;
  overflow: hidden;
  border: 1px solid #e7e6f2;
  border-radius: var(--ch-radius-md);
  background: #fff;
}

.ch-qa-question,
.ch-qa-answer {
  display: grid;
  grid-template-columns: var(--ch-qa-badge-size) minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  font-size: var(--ch-font-body);
  line-height: var(--ch-leading-body);
}

.ch-qa-question {
  border-bottom: 1px solid #eeedf4;
  background: #faf9ff;
  color: #2f3243;
  font-weight: var(--ch-weight-bold);
}
.ch-qa-answer { color: #4c5161; background: #fff; }

.ch-qa-badge {
  width: var(--ch-qa-badge-size);
  height: var(--ch-qa-badge-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--ch-purple);
  color: #fff;
  font-size: var(--ch-font-xs);
  line-height: 1;
  font-weight: var(--ch-weight-extrabold);
}
.ch-qa-answer .ch-qa-badge { border: 1px solid #ddd7fb; background: #f3f0ff; color: #6249db; }
.ch-qa-question > div,
.ch-qa-answer > div { padding-top: 1px; min-width: 0; }
.ch-qa-answer p { margin: 0 0 7px; color: inherit; }
.ch-qa-answer p:last-child { margin-bottom: 0; }

/* 08 — Permanent Val.AI disclaimer */
.ch-report-disclaimer {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  max-width: none;
  margin: 24px 0 0;
  padding: 16px 18px;
  border: 1px solid #e5e2f2;
  border-radius: var(--ch-radius-lg);
  background: linear-gradient(90deg, #faf8ff 0%, #fff 36%, #fbfbfe 100%);
}

.ch-report-disclaimer-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 7px;
  padding: 2px 18px 2px 0;
  border-right: 1px solid #e9e6f2;
}

.ch-report-disclaimer-head img { width: 84px; height: auto; display: block; object-fit: contain; }
.ch-report-disclaimer-head > div strong {
  display: block;
  color: var(--ch-ink);
  font-size: var(--ch-font-body);
  line-height: 1.25;
  font-weight: var(--ch-weight-extrabold);
}
.ch-report-disclaimer-head > div span {
  display: block;
  margin-top: 3px;
  color: var(--ch-muted);
  font-size: var(--ch-font-sm);
  line-height: 1.35;
}

.ch-report-disclaimer-body { min-width: 0; max-width: 1180px; padding: 0; }
.ch-report-disclaimer-body p {
  margin: 0 0 10px;
  color: #656b7e;
  font-size: var(--ch-font-body);
  line-height: 1.62;
}
.ch-report-disclaimer-body p:last-child { margin-bottom: 0; }

.ch-report-ai-note {
  display: grid;
  grid-template-columns: var(--ch-content-icon-size) minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid #e6e0ff;
  border-radius: var(--ch-radius-md);
  background: var(--ch-purple-surface);
  color: #5e6375 !important;
}

.ch-report-ai-icon {
  width: var(--ch-content-icon-size);
  height: var(--ch-content-icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--ch-purple-soft);
  color: var(--ch-purple);
  font-size: var(--ch-content-glyph-size);
}
.ch-report-ai-icon i { font-size: var(--ch-content-glyph-size); line-height: 1; }
.ch-report-ai-note strong { color: #5141b9; }

/* 09 — Responsive: one rule per breakpoint */
@media (max-width: 1000px) {
  .ch-report-split { grid-template-columns: 1fr; }
  .ch-report-split-side { padding-left: 0; }
  .ch-report-document .ch-participants-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-report-disclaimer { grid-template-columns: 150px minmax(0, 1fr); }
}

@media (max-width: 700px) {
  :root {
    --ch-toolbar-control-size: 34px;
    --ch-toolbar-icon-size: 16px;
    --ch-card-label-icon-size: 14px;
    --ch-card-meta-icon-size: 13px;
    --ch-card-action-size: 34px;
    --ch-card-action-icon-size: 16px;
    --ch-reader-action-size: 36px;
    --ch-reader-action-icon-size: 16px;
    --ch-section-icon-size: 34px;
    --ch-section-glyph-size: 16px;
    --ch-content-icon-size: 34px;
    --ch-content-glyph-size: 15px;
  }
  .em-client-head h1 { font-size: 23px; }
  .em-count-pill { display: none; }

  .ch-grid { gap: 9px; padding-bottom: 8px; }
  .ch-card,
  .ch-skeleton-card {
    flex-basis: min(82vw, 292px);
    width: min(82vw, 292px);
    min-width: min(82vw, 292px);
  }

  .ch-reader { margin-top: 10px; border-radius: 14px; }
  .ch-reader-head {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 10px 13px;
  }
  .ch-reader-head h2 { width: 100%; font-size: var(--ch-font-xl); white-space: normal; }
  .ch-reader-actions { width: 100%; justify-content: flex-start; }

  .ch-report-document { padding: 12px 12px 22px; font-size: var(--ch-font-body); }
  .ch-report-section-title { grid-template-columns: 3px var(--ch-section-icon-size) minmax(0, 1fr); gap: 8px; margin: 19px 0 10px; }
  .ch-report-section-copy h3 { font-size: var(--ch-font-xl); }
  .ch-report-basis.is-inline { grid-column: 2 / -1; grid-row: auto; margin-top: 4px; }
  .ch-report-document table.ch-report-table { min-width: 690px; }

  .ch-report-document .ch-participants-list { grid-template-columns: 1fr; }
  .ch-report-disclaimer { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
  .ch-report-disclaimer-head {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid #e9e6f2;
  }
  .ch-report-disclaimer-head img { width: 76px; }

  .ch-email-modal { width: min(94vw, var(--ch-email-modal-width)); }
  .ch-email-modal-head { padding: 14px; }
  .ch-email-body { padding: 14px; gap: 12px; }
  .ch-email-footer { padding: 12px 14px 14px; }
  .ch-email-cancel,
  .ch-email-send { flex: 1 1 0; }
}
