/* Grooves page (#56): a folder tree on the left (people > folders > grooves), and a page that
   fits the window: only the inner panels scroll, never the page itself. */
.stage > #grooveModal:not(.hidden) { display: flex; flex-direction: column; overflow: hidden; }
#grooveModal .modal-card { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-bottom: 8px; }
#grooveModal .modal-card > :not(.gr-layout) { flex: none; }
#grooveModal .gr-layout { flex: 1; min-height: 0; align-items: stretch; grid-template-rows: minmax(0, 1fr); }
#grooveModal .gr-side { min-height: 0; grid-template-rows: auto minmax(0, 1fr); align-content: start; }
#grooveModal .gr-list { max-height: none; min-height: 0; overflow-y: auto; overflow-x: hidden; }
#grooveModal .gr-main { min-height: 0; overflow: auto; align-content: start; grid-auto-rows: max-content; padding-right: 4px; }

.gr-person > summary, .gr-sub > summary { display: flex; align-items: center; gap: 4px; list-style-position: inside; }
.gr-person > summary { font-weight: 700; }
.gr-sub { margin-left: 10px; border-left: 2px solid var(--line); padding-left: 4px; }
.gr-sub > summary { font-weight: 600; }
.gr-person > summary .nm, .gr-sub > summary .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.gr-acts { margin-left: auto; display: inline-flex; gap: 4px; flex: none; }
.gr-acts button { padding: 2px 6px; font-size: 11px; min-height: 0; font-weight: 400; }
.gr-person > .gr-item, .gr-sub > .gr-item { display: block; width: calc(100% - 8px); margin: 0 0 6px 8px; text-align: left; }
.gr-person > .hint, .gr-sub > .hint { margin: 0 0 4px 12px; }
@media (max-width: 800px) {
  .stage > #grooveModal:not(.hidden) { overflow-y: auto; }
  #grooveModal .gr-layout { grid-template-rows: none; }
  #grooveModal .gr-list { max-height: 40vh; }
}
