/* GAPS LANE — Settings → Groups + share-dialog group picker */
.groups-layout { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 16px; margin-bottom: 12px; }
.groups-tree { border: 1px solid var(--line, #2a2f3a); border-radius: 8px; max-height: 320px; overflow: auto; padding: 4px; }
.group-row { display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left; background: none; border: none; padding: 6px 8px; border-radius: 6px; cursor: pointer; color: inherit; font: inherit; }
.group-row:hover { background: var(--hover, #1c2130); }
.group-row.selected { background: var(--active, #243049); }
.group-row .gmeta { color: var(--muted, #8a93a5); font-size: 12px; white-space: nowrap; }
.groups-detail h3 { margin: 0 0 4px; }
.groups-detail h4 { margin: 14px 0 6px; font-size: 13px; }
.groups-detail-head { display: flex; gap: 8px; align-items: center; }
.groups-members, .groups-grants { list-style: none; margin: 0; padding: 0; }
.groups-members li, .groups-grants li { display: flex; gap: 8px; align-items: center; padding: 4px 0; }
.groups-addmember { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.group-share { margin-top: 8px; }
@media (max-width: 720px) { .groups-layout { grid-template-columns: 1fr; } }

/* Item 2 — view-only guest link page (view.html). */
.view-card { max-width: 860px; width: 100%; }
.view-stage {
  position: relative;
  background: #111317;
  border: 1px solid #2a2d33;
  border-radius: 8px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.view-image, .view-frame {
  max-width: 100%;
  width: 100%;
  border: 0;
  display: block;
}
.view-frame { height: 70vh; }
.view-watermark {
  position: absolute;
  inset: auto 0 0 0;
  padding: 6px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  text-align: center;
  z-index: 2;
}

/* GAPS LANE item 3 — the invite claim view overlays whatever the app shell
   decided to show (it must win the boot race without touching showSection). */
#view-invite:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg, #f6f7f9);
  overflow: auto;
}

/* GAPS LANE item 4 — PWA chrome: install banner, SW update pill, and the
   honest offline banner. */
.pwa-install-banner, .pwa-update-pill {
  position: fixed;
  z-index: 70;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--line, #d6dbe3);
  box-shadow: 0 6px 24px rgba(15, 23, 42, .18);
  font-size: 13px;
}
.pwa-update-pill { cursor: pointer; }
.pwa-offline-banner {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  right: 0;
  padding: 6px 12px;
  text-align: center;
  font-size: 13px;
  background: #92400e;
  color: #fff;
}

/* GAPS LANE item 6 — preview-pane audio mini player. */
.audio-mini { display: grid; gap: 8px; width: 100%; }
.audio-wave { width: 100%; height: 96px; border-radius: 6px; background: var(--inset-bg, #101216); }
.audio-player { width: 100%; }
