/* groups.css — v17 Groups: shared route cards inside a group (groups.js) */
.grp { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px 18px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: var(--bg-3) transparent; }
.grp-cards { display: flex; flex-direction: column; gap: 8px; }
.grp-card { border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255,255,255,.03); padding: 10px 10px 8px; display: flex; flex-direction: column; gap: 8px; }
.grp-card__main { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font: inherit; }
.grp-card__main:hover .grp-card__n { color: var(--accent); }
.grp-card__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--accent)); flex: none; margin-top: 5px; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.grp-card__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.grp-card__n { font-weight: 650; font-size: 14px; color: var(--text); overflow-wrap: anywhere; transition: color .15s var(--ease); }
.grp-card__s { font-size: 12px; color: var(--muted); line-height: 1.4; }
.grp-card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.grp-card__acts { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.grp-card__acts .iconbtn { width: 30px; height: 30px; }
.grp-card__acts .iconbtn svg { width: 15px; height: 15px; }
.grp-set { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.grp-q { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.grp-q legend { font-size: 12px; font-weight: 650; color: var(--text-2); margin-bottom: 4px; padding: 0; }
.grp-opt { display: flex; align-items: flex-start; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; background: rgba(255,255,255,.02); }
.grp-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.grp-opt input { margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.grp-opt span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.grp-opt b { font-weight: 600; font-size: 13px; color: var(--text); }
.grp-opt small { font-size: 11.5px; color: var(--muted); }
.grp-glist { display: flex; flex-direction: column; gap: 6px; max-height: 210px; overflow-y: auto; }
.grp-dlg .cmty-form { gap: 14px; }
.grp-pick { border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.grp-pick__h { margin: 0; font-size: 13px; color: var(--text-2); }
.grp-pick__l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; }
.grp-empty { padding: 18px 8px; }
/* v17.1 — a group is two sections: Planned trips, then Shared routes */
.grp-sec { display: flex; flex-direction: column; gap: 8px; }
.grp-sec + .grp-sec { border-top: 1px solid var(--line); padding-top: 14px; }
.grp-sec__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.grp-sec__t { margin: 0; font-size: 13px; font-weight: 650; letter-spacing: .02em; color: var(--text); display: flex; align-items: center; gap: 6px; }
.grp-sec .trips__b { display: flex; flex-direction: column; gap: 4px; }
.grp-pick__sub { margin: 4px 0 0; font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.grp-card__c { font-size: 11.5px; color: var(--muted); opacity: .85; }
/* v17.2 — sections open and close */
.grp-sec__tg { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 8px 0 2px; margin-left: -2px; background: none; border: 0; border-radius: 8px; color: var(--text); cursor: pointer; font: inherit; }
.grp-sec__tg:hover { background: rgba(255,255,255,.05); }
.grp-sec__tg:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.grp-sec__chev { width: 16px; height: 16px; flex: none; color: var(--muted); transform: rotate(90deg); transition: transform .15s ease; }
.grp-sec.is-closed .grp-sec__chev { transform: rotate(0deg); }
.grp-sec.is-closed > .grp-sec__b, .grp-sec.is-closed .grp-sec__act { display: none; }
.grp-sec__b { display: flex; flex-direction: column; gap: 8px; }
.grp-sec.is-closed { gap: 0; }
@media (prefers-reduced-motion: reduce) { .grp-sec__chev { transition: none; } }
