/* Contact groups — dashboard design, scoped under .crdts-dash.
   Page-private classes; the shared shell stays in dashboard.scoped.css. */

.crdts-dash h1,.crdts-dash h2,.crdts-dash h3,.crdts-dash h4,.crdts-dash p,.crdts-dash span,.crdts-dash a,.crdts-dash b,.crdts-dash strong,.crdts-dash small,.crdts-dash em,.crdts-dash i,.crdts-dash li,.crdts-dash ul,.crdts-dash ol,.crdts-dash button,.crdts-dash label,.crdts-dash input,.crdts-dash textarea,.crdts-dash select,.crdts-dash summary,.crdts-dash option:not(.material-symbols-outlined):not([class*="material-symbols"]):not(.material-symbols-rounded):not([class*="material-symbols-rounded"]){font-family:inherit}
.crdts-dash .material-symbols-outlined,.crdts-dash [class*="material-symbols"]{
  font-family:'Material Symbols Outlined'!important;font-weight:400;font-style:normal;
  line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;
  white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:'liga';
  -webkit-font-feature-settings:'liga';-webkit-font-smoothing:antialiased}

.cg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.cg-skel{height:150px;border-radius:14px;background:linear-gradient(90deg,#f4f4ee 25%,#fafaf6 50%,#f4f4ee 75%);
  background-size:200% 100%;animation:cgShimmer 1.4s ease-in-out infinite}
@keyframes cgShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

.cg-card{display:flex;flex-direction:column;gap:11px;border:1px solid var(--line);
  border-inline-start:3px solid var(--orange);border-radius:14px;background:#fff;padding:15px}
.cg-card:hover{border-color:#f0dfae}
.cg-top{display:flex;align-items:center;gap:10px}
.cg-ico{width:34px;height:34px;flex:0 0 34px;border-radius:10px;display:grid;place-items:center}
.cg-ico svg{width:16px;height:16px}
.cg-name{flex:1;min-width:0;display:flex;flex-direction:column}
.cg-name b{font-size:14px;font-weight:700;color:#171714;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cg-name small{font-size:11px;color:#a1a194}
.cg-desc{font-size:11.5px;color:#8c8c81;line-height:1.65;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.cg-results{max-height:190px;overflow-y:auto;border:1px solid var(--line);border-radius:10px}
.cg-members{max-height:220px;overflow-y:auto;display:grid;gap:6px}
.cg-row{display:flex;align-items:center;gap:9px;padding:9px 11px}
.cg-results .cg-row{border-bottom:1px solid var(--line)}
.cg-results .cg-row:last-child{border-bottom:0}
.cg-members .cg-row{border:1px solid var(--line);border-radius:10px;background:#fff}
.cg-avatar{width:28px;height:28px;flex:0 0 28px;border-radius:50%;display:grid;place-items:center;
  background:#fff6c6;color:var(--orange);font-size:11.5px;font-weight:700}
.cg-row-body{flex:1;min-width:0;display:flex;flex-direction:column}
.cg-row-body b{font-size:12.5px;font-weight:600;color:#171714;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cg-row-body small{font-size:10.5px;color:#a1a194}
.cg-label{display:block;margin-bottom:8px;font-size:10.5px;font-weight:700;color:#a1a194;
  text-transform:uppercase;letter-spacing:.04em}
.cg-load{display:grid;place-items:center;padding:18px}
.cg-load svg{width:18px;height:18px;color:#c9c9bd;animation:spin 1s linear infinite}
.cg-none{padding:16px 10px;text-align:center;font-size:11.5px;color:#a1a194}

.cg-sec-head{display:flex;align-items:center;gap:11px}
.cg-sec-head h2{font-size:15px;font-weight:700;color:#171714;margin:0}
.cg-secnum{width:26px;height:26px;flex:0 0 26px;border-radius:50%;display:grid;place-items:center;
  background:var(--orange);color:#fff;font-size:12px;font-weight:700}

.cg-conds{display:grid;gap:14px}
.cg-cond{padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:#fafaf6}
.cg-cond-row{display:flex;align-items:center;gap:9px}
.cg-cond-row .pf-input{flex:1}
.cg-del{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;cursor:pointer;
  border:1px solid #e5e5db;border-radius:8px;background:#fff;color:#c94742}
.cg-del:hover:not(:disabled){background:#fdf0ef}
.cg-del:disabled{opacity:.4;cursor:not-allowed}
.cg-del svg{width:15px;height:15px}

.cg-logic{display:flex;justify-content:center;gap:0;margin-bottom:11px}
.cg-logic button{padding:5px 14px;font-size:10.5px;font-weight:700;cursor:pointer;
  border:1px solid var(--line);background:#fff;color:#a1a194}
.cg-logic button:first-child{border-radius:8px 0 0 8px}
.cg-logic button:last-child{border-radius:0 8px 8px 0;border-inline-start:0}
.cg-logic button.on{background:var(--orange);border-color:var(--orange);color:#fff}

.cg-list{max-height:165px;overflow-y:auto;border:1px solid var(--line);border-radius:10px;
  background:#fff;margin-top:7px}
.cg-list button{width:100%;text-align:start;padding:8px 11px;font-size:11.5px;font-weight:500;
  color:#38382d;background:none;border:0;border-bottom:1px solid var(--line);cursor:pointer}
.cg-list button:last-child{border-bottom:0}
.cg-list button:hover{background:#fff9e4;color:var(--orange)}

.cg-preview{max-height:320px;overflow-y:auto;display:grid;gap:6px}
.cg-preview .cg-row{border:1px solid var(--line);border-radius:10px;background:#fff;padding:8px 10px}
.cg-preview-count{width:30px;height:30px;flex:0 0 30px;border-radius:50%;display:grid;place-items:center;
  background:var(--orange);color:#fff;font-size:13px;font-weight:700}
.cg-preview-count svg{width:14px;height:14px;animation:spin 1s linear infinite}
.cg-more{margin-top:12px;font-size:11px;font-weight:700;color:var(--orange);background:none;
  border:0;cursor:pointer;padding:0}
.cg-more:hover{text-decoration:underline}

@media(max-width:1200px){.cg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.cg-grid{grid-template-columns:1fr}}

