/* VKCRM QUIET UI V2: presentation only, layered AFTER the installed V1 CSS.
   No display:none, no new widgets, no JS, no scroll or layout model changes.
   Optimized for the manager's client screen. */
@media (min-width: 1000px) {
  /* One compact, readable header. All 5 KPIs and target numbers remain visible. */
  #daily-manager-stats-13033,
  #clientsSection section.daily-manager-stats-13033,
  #clientsSection section[aria-label="Результаты за сегодня"] {
    padding: 10px 13px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 15px rgba(29, 61, 103, .055) !important;
  }
  .daily-manager-stats-13033-head {
    margin-bottom: 6px !important;
    padding-block: 0 !important;
  }
  .daily-manager-stats-13033-grid { gap: 7px !important; }
  .daily-manager-stats-13033-metric {
    padding: 8px 10px !important;
    min-height: 0 !important;
    border-radius: 11px !important;
    box-shadow: none !important;
  }
  .daily-manager-stats-13033-label { font-size: 11px !important; line-height: 1.3 !important; }
  .daily-manager-stats-13033-value {
    font-size: clamp(22px, 1.75vw, 27px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.4px !important;
  }
  .daily-manager-stats-13033-subtitle { font-size: 11px !important; line-height: 1.35 !important; }
  .daily-manager-stats-13033-metric small,
  .daily-manager-stats-13033-metric [class*="hint"],
  .daily-manager-stats-13033-metric [class*="sub"] {
    line-height: 1.32 !important;
  }

  /* The left rail remains scrollable; show more clients above the fold. */
  #clientsSection .clients-layout { gap: 11px !important; }
  #clientsSection .client-list-panel { padding: 10px 12px !important; }
  #clientsSection .client-list-panel .panel-title { margin-bottom: 7px !important; }
  #clientsSection .client-filter-groups-12834 {
    gap: 6px !important;
    margin-bottom: 8px !important;
  }
  #clientsSection .client-filter-group-12834 { gap: 4px !important; }
  #clientsSection .client-filter-group-title-12834 {
    margin-bottom: 4px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
  }
  #clientsSection .client-stage-filters,
  #clientsSection .client-attention-filters-12834 { gap: 5px !important; }
  #clientsSection .client-list-panel .client-stage-filters .chip,
  #clientsSection .client-list-panel .client-attention-filters-12834 .chip {
    min-height: 34px !important;
    padding: 6px 4px !important;
    border-radius: 10px !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
  }
  #clientsSection .client-list-panel .client-item.compact {
    padding: 9px 9px !important;
    border-radius: 11px !important;
    min-height: 0 !important;
    transition: background-color .12s ease, border-color .12s ease !important;
  }
  #clientsSection .client-list-panel .client-item-main strong { line-height: 1.25 !important; }
  #clientsSection .client-list-panel .client-item-main p {
    margin-top: 3px !important;
    line-height: 1.25 !important;
  }
  #clientsSection .client-list-panel .mini-badges { margin-top: 5px !important; }
  #clientsSection .client-list-panel .client-item.active {
    background: #eff4ff !important;
    border-color: #90afff !important;
    box-shadow: inset 3px 0 0 #356df1 !important;
  }

  /* Main client workspace: tighter vertical rhythm, unchanged actions. */
  #clientCard .client-profile-hero-13010 {
    padding: 13px 16px !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 20px rgba(26, 69, 124, .13) !important;
  }
  #clientCard .client-profile-title-line-13010 h2 {
    font-size: clamp(19px, 1.55vw, 23px) !important;
    line-height: 1.2 !important;
  }
  #clientCard .client-profile-contact-row-13010 { gap: 8px 12px !important; }
  #clientCard .client-profile-hero-13010 .contact {
    padding: 7px 10px !important;
    min-height: 33px !important;
  }
  #clientCard .client-card-layout-13010 { gap: 10px !important; }
  #clientCard .client-nav-13010 { gap: 4px !important; }
  #clientCard .client-nav-13010 .tab {
    padding: 8px 11px !important;
    min-height: 36px !important;
  }
  #clientCard .client-tab-surface-13010 { padding-top: 7px !important; }
  #clientCard .section-head { gap: 6px !important; }
  #clientCard .section-head h3 { line-height: 1.2 !important; }
  #clientCard .section-head p {
    line-height: 1.4 !important;
    font-size: 11px !important;
  }

  /* Compact organization cards WITHOUT hiding requisites, documents or controls. */
  #clientCard .registration-card-13010 {
    border-radius: 13px !important;
    box-shadow: 0 3px 11px rgba(33, 65, 111, .04) !important;
  }
  #clientCard .registration-card-head-13010 {
    padding: 11px 12px !important;
    gap: 9px !important;
  }
  #clientCard .registration-identity-13010 { gap: 8px !important; }
  #clientCard .registration-identity-13010 h4 {
    font-size: 14px !important;
    line-height: 1.23 !important;
  }
  #clientCard .registration-identity-13010 p {
    line-height: 1.32 !important;
    margin-top: 3px !important;
  }
  #clientCard .registration-kicker-13010 { gap: 5px !important; }
  #clientCard .registration-progress-grid-13010 {
    gap: 0 !important;
    padding: 8px 10px !important;
  }
  #clientCard .registration-progress-grid-13010 > div {
    padding: 7px 8px !important;
    min-height: 0 !important;
  }
  #clientCard .registration-progress-grid-13010 span {
    line-height: 1.3 !important;
  }
  #clientCard .registration-progress-grid-13010 b {
    line-height: 1.25 !important;
  }
  #clientCard .registration-details-13010 > summary {
    min-height: 36px !important;
    padding: 9px 12px !important;
  }
  #clientCard .registration-card-footer-13010:not(:empty) {
    padding: 7px 11px !important;
  }

  /* Secondary rail and actions: consistent edges, quieter chrome. */
  #clientCard .client-side-stack-13010 { gap: 10px !important; }
  #clientCard .client-side-stack-13010 .side-card {
    border-radius: 13px !important;
    box-shadow: 0 3px 12px rgba(33, 65, 111, .04) !important;
  }
  #clientCard .client-side-stack-13010 .section-head { padding-block: 10px !important; }
  #clientCard .client-side-stack-13010 .side-card button {
    min-height: 34px !important;
  }
  #clientCard .next-action-alert,
  #clientCard .primary-action-card,
  #clientCard .task-action-card {
    box-shadow: 0 2px 10px rgba(25, 55, 105, .04) !important;
  }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  /* Do not squeeze a five-card KPI row or the client sidebar on smaller screens. */
  #clientsSection .client-list-panel { padding: 10px !important; }
  #clientCard .registration-card-head-13010 { gap: 7px !important; }
}
@media (prefers-reduced-motion: reduce) {
  #clientsSection .client-list-panel .client-item.compact { transition: none !important; }
}
