.fam-grid{
  display:grid;
  grid-template-columns: 1fr 380px;
  gap:14px;
}

@media (max-width: 991.98px){
  .fam-grid{ grid-template-columns: 1fr; }
  .fam-side{ order: 2; }
  .fam-main{ order: 1; }
}

.acc-wrap{ display:flex; flex-direction:column; gap:10px; }

details.acc{
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 18px;
  background: rgba(255,255,255,.60);
  overflow:hidden;
}

details.acc > summary{
  cursor:pointer;
  list-style:none;
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

details.acc > summary::-webkit-details-marker{ display:none; }

details.acc > summary .t{
  font-weight: 900;
  display:flex;
  align-items:center;
}

details.acc > summary .s{
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  max-width: 55%;
}

details.acc[open] > summary{
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255,255,255,.78);
}

.acc-body{
  padding: 12px 14px 14px 14px;
}

.results{
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 18px;
  background: rgba(255,255,255,.60);
  overflow:hidden;
}

.results-list{
  max-height: 520px;
  overflow:auto;
}

@media (max-width: 991.98px){
  .results-list{ max-height: 320px; }
}

.result-item{
  display:flex;
  justify-content: space-between;
  gap:10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  align-items:flex-start;
}
.result-item:last-child{ border-bottom:0; }

.result-item .name{ font-weight:900; }
.result-item .meta{ color: rgba(11,18,32,.72); font-size:.9rem; }

.badges{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  align-items:center;
}

.btn-mini{
  border: 1px solid rgba(15, 23, 42, .12);
  background: rgba(255,255,255,.75);
  border-radius: 12px;
  padding: 6px 9px;
}
.btn-mini:hover{ background: rgba(255,255,255,.92); }

.chip-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.chip{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15, 23, 42, .10);
}
.chip .x{
  border:0;
  background: transparent;
  padding: 0;
  line-height: 1;
  cursor:pointer;
  opacity:.8;
}
.chip .x:hover{ opacity:1; }

.mini-preview{
  border: 1px dashed rgba(15, 23, 42, .18);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.55);
  color: rgba(11,18,32,.82);
  min-height: 44px;
  display:flex;
  align-items:center;
}
