    /* ── CLIENT LIST VIEW ── */
    .client-list-view { padding: 2rem 0; }
    .client-list-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
    .client-list-title { font-size: 18px; font-weight: 600; color: var(--text-primary); }
    .btn-add-client {
      display: inline-flex; align-items: center; gap: 6px;
      font-size: 12px; font-weight: 500; padding: 7px 14px;
      border-radius: var(--radius-md); border: none;
      background: var(--blue-mid); color: #fff; cursor: pointer;
      transition: opacity 0.15s;
    }
    .btn-add-client:hover { opacity: 0.85; }
    .client-list-hdr-actions { display: flex; align-items: center; gap: 8px; }
    .btn-book-review {
      display: inline-flex; align-items: center; gap: 5px;
      font-size: 12px; padding: 6px 14px; border-radius: 20px;
      border: 0.5px solid var(--border-md); background: var(--bg);
      color: var(--text-secondary); cursor: pointer; font-family: inherit;
      transition: all 0.12s; white-space: nowrap;
    }
    .btn-book-review:hover { background: var(--bg-secondary); color: var(--text-primary); }
    /* ── Review filter toggle ── */
    .review-filter-bar {
      display: flex; align-items: center; gap: 4px;
      margin-bottom: 1rem; flex-wrap: wrap;
    }
    .rf-tab {
      display: inline-flex; align-items: center; gap: 5px;
      font-size: 12px; font-weight: 500; padding: 5px 12px;
      border-radius: 20px; border: 1px solid var(--border-md);
      background: transparent; color: var(--text-tertiary);
      cursor: pointer; font-family: inherit;
      transition: all 0.12s; white-space: nowrap;
    }
    .rf-tab:hover { color: var(--text-primary); background: var(--bg-secondary); }
    .rf-tab--active {
      background: var(--bg-secondary); color: var(--text-primary);
      border-color: var(--border-dark, #bbb);
    }
    .rf-badge {
      font-size: 11px; font-weight: 600; padding: 1px 6px;
      border-radius: 10px; background: var(--bg-tertiary, #e8e8e8);
      color: var(--text-secondary); line-height: 1.4;
    }
    .rf-badge--active { background: var(--blue-bg); color: var(--blue-mid); }

    /* ── Client sidebar + summary layout ── */
    .client-split {
      display: grid;
      grid-template-columns: 320px 1fr;
      gap: 0;
      margin-top: 1rem;
      min-height: 560px;
      align-items: stretch;
      background: var(--bg);
      border: 0.5px solid var(--border);
      border-radius: var(--radius-md);
      overflow: hidden;
    }
    @media (max-width: 820px) {
      .client-split { grid-template-columns: 1fr; }
    }
    .client-sidebar {
      background: var(--bg-secondary);
      border: none;
      border-right: 0.5px solid var(--border);
      border-radius: 0;
      display: flex;
      flex-direction: column;
      max-height: 72vh;
      overflow: hidden;
    }
    .client-sidebar-search-row {
      display: flex; align-items: center; gap: 8px;
      padding: 10px 12px;
      border-bottom: 0.5px solid var(--border-sm);
      background: var(--bg);
    }
    .client-sidebar-search {
      flex: 1;
      padding: 8px 10px;
      font-size: 13px;
      border: 0.5px solid var(--border-md);
      border-radius: var(--radius-sm);
      background: var(--bg-secondary);
      color: var(--text-primary);
      outline: none;
      font-family: inherit;
      transition: border-color 0.15s;
    }
    .client-sidebar-search:focus { border-color: var(--blue-mid); }
    .client-sidebar-count {
      font-size: 11px;
      color: var(--text-tertiary);
      font-variant-numeric: tabular-nums;
      padding: 2px 8px;
      border-radius: 999px;
      background: var(--bg-secondary);
      min-width: 28px;
      text-align: center;
    }
    .client-sidebar-list {
      overflow-y: auto;
      flex: 1;
      padding: 4px 0;
    }
    .cs-row {
      display: flex; align-items: center; gap: 10px;
      width: 100%;
      padding: 8px 14px;
      border: none;
      background: transparent;
      text-align: left;
      cursor: pointer;
      border-left: 2px solid transparent;
      transition: background 0.1s, border-left-color 0.1s;
      font-family: inherit;
    }
    .cs-row:hover { background: var(--bg-secondary); }
    .cs-row--active {
      background: var(--blue-bg);
      border-left-color: var(--blue-mid);
    }
    .cs-row-main { min-width: 0; flex: 1; }
    .cs-row-name {
      font-size: 13px;
      font-weight: 500;
      color: var(--text-primary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .cs-row-meta {
      font-size: 11px;
      color: var(--text-tertiary);
      margin-top: 2px;
    }
    .cs-dot {
      width: 8px; height: 8px; border-radius: 50%;
      flex-shrink: 0;
      margin-left: 10px;
      display: inline-block;
    }
    .cs-dot--high   { background: #d14343; }
    .cs-dot--medium { background: #e0a33a; }
    .cs-dot--low    { background: #5a9ad1; }
    .cs-dot--clean  { background: #3fa869; }
    /* Avatar color variants */
    .cs-avatar--blue   { background: var(--blue-mid); }
    .cs-avatar--amber  { background: var(--amber-mid); }
    .cs-avatar--green  { background: var(--green-mid); }
    .cs-avatar--purple { background: var(--purple-mid); }
    .cs-avatar--gray   { background: var(--text-secondary); }
    .cs-empty {
      padding: 24px 16px;
      font-size: 12px;
      color: var(--text-tertiary);
      text-align: center;
    }

    /* Summary panel */
    .client-summary-panel {
      background: var(--bg);
      border: none;
      border-radius: 0;
      padding: 22px 24px;
      min-height: 360px;
      display: flex;
      flex-direction: column;
    }
    .cs-summary-empty {
      margin: auto;
      max-width: 360px;
      text-align: center;
      color: var(--text-tertiary);
    }
    .cs-summary-empty-title {
      font-size: 15px;
      font-weight: 600;
      color: var(--text-secondary);
      margin-bottom: 6px;
    }
    .cs-summary-empty-sub {
      font-size: 12.5px;
      line-height: 1.55;
    }
    .cs-summary-head {
      border-bottom: 0.5px solid var(--border-sm);
      padding-bottom: 14px;
      margin-bottom: 16px;
    }
    .cs-summary-title-row {
      display: flex; align-items: center; gap: 10px;
      margin-bottom: 6px;
    }
    /* ── Client actions menu (3-dot) ── */
    .cs-menu-wrap {
      position: relative;
      margin-left: auto;
    }
    .cs-menu-btn {
      width: 28px; height: 28px;
      border-radius: var(--radius-sm);
      border: 0.5px solid transparent;
      background: transparent;
      color: var(--text-tertiary);
      cursor: pointer;
      display: inline-flex; align-items: center; justify-content: center;
      transition: background 0.12s, color 0.12s, border-color 0.12s;
    }
    .cs-menu-btn:hover {
      background: var(--bg-secondary);
      color: var(--text-primary);
      border-color: var(--border-md);
    }
    .cs-menu-btn[aria-expanded="true"] {
      background: var(--bg-secondary);
      color: var(--text-primary);
      border-color: var(--border-md);
    }
    .cs-menu {
      position: absolute;
      top: calc(100% + 6px);
      right: 0;
      min-width: 210px;
      max-width: 260px;
      background: var(--bg);
      border: 0.5px solid var(--border-md);
      border-radius: var(--radius-md);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
      padding: 4px;
      z-index: 30;
      font-size: 13px;
      overflow: hidden;
    }
    .cs-menu-level { display: flex; flex-direction: column; }
    /* The [hidden] attribute must beat display: flex above, or both levels
       render at once. Same rule for the body-level elements below. */
    .cs-menu-level[hidden],
    .cs-menu-scroll[hidden],
    .cs-menu[hidden] { display: none !important; }
    .cs-menu-item {
      display: flex; align-items: center; justify-content: space-between;
      gap: 10px;
      width: 100%;
      padding: 8px 10px;
      border: none;
      background: transparent;
      color: var(--text-primary);
      text-align: left;
      font-family: inherit;
      font-size: 13px;
      border-radius: var(--radius-sm);
      cursor: pointer;
      transition: background 0.1s, color 0.1s;
    }
    .cs-menu-item:hover { background: var(--bg-secondary); }
    .cs-menu-item--danger { color: var(--red-mid, #d14343); }
    .cs-menu-item--danger:hover { background: var(--red-bg, rgba(209, 67, 67, 0.10)); }
    .cs-menu-item--choice {
      padding: 7px 10px;
      font-size: 12.5px;
    }
    .cs-menu-item--current { color: var(--blue-mid); font-weight: 500; }
    .cs-menu-chevron {
      font-size: 16px;
      line-height: 1;
      color: var(--text-tertiary);
    }
    .cs-menu-check {
      font-size: 12px;
      color: var(--blue-mid);
    }
    .cs-menu-back {
      display: flex; align-items: center; gap: 6px;
      width: 100%;
      padding: 7px 10px;
      border: none;
      background: transparent;
      color: var(--text-tertiary);
      text-align: left;
      font-family: inherit;
      font-size: 12px;
      cursor: pointer;
      border-radius: var(--radius-sm);
      border-bottom: 0.5px solid var(--border-sm);
      margin-bottom: 4px;
    }
    .cs-menu-back:hover { background: var(--bg-secondary); color: var(--text-primary); }
    .cs-menu-scroll {
      max-height: 260px;
      overflow-y: auto;
      display: flex; flex-direction: column;
    }
    /* Reassign confirmation step */
    .cs-menu-confirm-body { padding: 10px 10px 6px; }
    .cs-menu-confirm-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 6px;
    }
    .cs-menu-confirm-sub {
      font-size: 12px;
      color: var(--text-secondary);
      line-height: 1.45;
      word-break: break-word;
    }
    .cs-menu-confirm-sep { color: var(--text-tertiary); }
    .cs-menu-confirm-target { color: var(--blue-mid); font-weight: 500; }
    .cs-menu-confirm-actions {
      display: flex;
      gap: 6px;
      padding: 6px 6px 4px;
    }
    /* .cs-menu-btn-primary / .cs-menu-btn-secondary removed — migrated to .btn .btn--*. Preserved flex:1 fill via scoped container rule below. */
    .cs-menu-confirm-actions .btn { flex: 1; }
    .cs-summary-name {
      font-size: 20px;
      font-weight: 600;
      color: var(--text-primary);
      margin: 0;
    }
    .cs-sev-badge {
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.06em;
      padding: 2px 8px;
      border-radius: 999px;
      color: #fff;
    }
    .cs-sev-badge--high   { background: #d14343; }
    .cs-sev-badge--medium { background: #e0a33a; }
    .cs-sev-badge--low    { background: #5a9ad1; }
    .cs-summary-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      font-size: 12.5px;
      color: var(--text-tertiary);
    }
    .cs-summary-meta-sep { opacity: 0.5; }
    .cs-summary-stats {
      display: flex;
      gap: 24px;
      margin-bottom: 12px;
    }
    /* Push the last signal off the footer divider line so it doesn't sit on the border */
    .cs-summary-section { margin-bottom: 14px; }
    .cs-summary-stat-label {
      font-size: var(--font-xs);
      font-weight: 600;
      color: var(--text-tertiary);
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }
    .cs-summary-stat-val {
      font-size: 22px;
      font-weight: 600;
      color: var(--text-primary);
      margin-top: 2px;
      font-variant-numeric: tabular-nums;
    }
    .cs-summary-section-label {
      font-size: var(--font-xs);
      font-weight: 600;
      color: var(--text-tertiary);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 8px;
    }
    .cs-summary-signals {
      list-style: none;
      margin: 0; padding: 0;
      display: flex; flex-direction: column; gap: 8px;
    }
    .cs-summary-signals li {
      display: flex; align-items: flex-start; gap: 10px;
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.45;
    }
    .cs-summary-signals li .cs-dot {
      margin-left: 0; margin-top: 5px;
    }
    /* .cs-summary-signals-loading removed — replaced with content-shaped skeleton */
    .cs-summary-signals-clean {
      display: flex; align-items: center; gap: 10px;
      font-size: 13px;
      color: var(--text-secondary);
    }
    .cs-summary-footer {
      margin-top: auto;
      padding-top: 20px;
      border-top: 0.5px solid var(--border-sm);
    }
    /* .cs-open-portfolio removed — uses .btn .btn--primary defaults (10px 16px, 13px). Class kept on the button as a JS query selector. */

    .client-card {
      display: flex; align-items: center; justify-content: space-between;
      background: var(--bg); border: 0.5px solid var(--border);
      border-radius: var(--radius-md); padding: 14px 18px;
      cursor: pointer;
      transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
    }
    .client-card:hover {
      background: var(--bg-secondary); border-color: var(--blue-mid);
      transform: translateY(-1px); box-shadow: var(--card-shadow-hover);
    }
    .client-card-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
    .client-card-meta { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
    .client-card-del { font-size: 11px; color: var(--text-tertiary); background: none; border: none; cursor: pointer; padding: 4px 8px; border-radius: 4px; opacity: 0; transition: opacity 0.15s; flex-shrink: 0; }
    .client-card:hover .client-card-del { opacity: 1; }
    .client-card-del:hover { color: var(--red-mid); background: var(--red-bg); }
    .client-empty { text-align: center; padding: 3rem 1rem; color: var(--text-tertiary); font-size: 14px; }
    /* Add client inline form */
    .add-client-form { display: none; align-items: center; gap: 8px; margin-bottom: 1rem; }
    .add-client-form.visible { display: flex; }
    .add-client-input {
      flex: 1; padding: 9px 12px; font-size: 13px;
      border: 0.5px solid var(--border-md); border-radius: var(--radius-md);
      background: var(--bg-secondary); color: var(--text-primary);
      outline: none; font-family: inherit;
      transition: border-color 0.15s;
    }
    .add-client-input:focus { border-color: var(--blue-mid); }

