/* type lifted to the platform scale by tools/consistency-pass/lift_type.py (2 Oct 2026) */
/* eResonate — group-page.css · the group page as a header and tabs
   (25 Sep 2026). Loaded after social.css. Chat's own styles are injected by
   group-chat.js later in the document, so the overrides for them here are
   scoped under .gp-shell to win on specificity rather than on order. */

/* The site's right-hand rail steps aside on a group page (group-page.js). */
.app-grid.gp-wide { grid-template-columns: minmax(0, 1fr); }
.app-grid.gp-wide > .app-side { display: none; }

.gp-shell { max-width: 1120px; }
.gp-shell .gp-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.gp-shell .gp-dim { color: var(--text-muted); font-size: 0.97rem; }
.gp-shell .gp-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; }
.gp-shell .gp-cardtitle { font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; }

/* ------------------------------------------------------------ the header */
.gp-shell .gp-hero { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; }
/* 3:1, the shape of an X header and of the group cards (27 Sep 2026): a
   1500x500 banner shows whole on every screen. It was a 96px strip, too
   short to hold anything but colour. */
.gp-shell .gp-banner { height: auto; aspect-ratio: 3 / 1; border-radius: 18px 18px 0 0; background-size: cover; background-position: center; }
.gp-shell .gp-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: start;
  padding: 0 24px 22px; margin: 0; background: none; border: 0; border-radius: 0;
}
.gp-shell .gp-emoji {
  position: relative; z-index: 1; left: auto; bottom: auto; width: 76px; height: 76px; margin-top: -38px; border-radius: 20px; font-size: 2.3rem;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.gp-shell .gp-headtext { min-width: 0; padding-top: 14px; }
.gp-shell .gp-name { font-size: 1.75rem; line-height: 1.15; margin: 0 0 6px; overflow-wrap: anywhere; }
.gp-shell .gp-meta { font-size: 0.97rem; margin: 0; }
.gp-shell .gp-blurb { font-size: 1rem; line-height: 1.55; color: var(--text-muted); margin: 10px 0 0; max-width: 62ch; }
.gp-shell .gp-faces { margin-top: 14px; }
.gp-shell .gp-members { margin: 0; gap: 0; flex-wrap: nowrap; }
.gp-shell .gp-members .s-avatar { width: 30px; height: 30px; font-size: 0.64rem; margin-right: -7px; border: 2px solid var(--bg-card); }
.gp-shell .gp-members .gp-more { margin-left: 16px; white-space: nowrap; }
/* groups-discover.js keeps its nickname button beside the faces; the More
   menu and the welcome checklist press it instead. */
.gp-shell #gxNick { display: none; }
.gp-shell .gp-headacts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; padding-top: 16px; }
.gp-shell .gp-bigbtn {
  min-height: 46px; padding: 0 20px; border-radius: 12px; font-size: 0.99rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.gp-shell .gp-joinbtn.gp-bigbtn { min-width: 160px; font-size: 1.02rem; border-radius: 12px; padding: 0 20px; }
/* The old pill style (.grp-join) sets its own colours; a Join you can press is
   a primary button, while Requested and Invite only keep their quieter look. */
.gp-shell .gp-joinbtn.gp-bigbtn:not(.pending):not(.locked):not(.joined) {
  background: linear-gradient(135deg, var(--accent), var(--accent2, var(--accent))); color: var(--on-accent, #fff); border-color: transparent;
}
.gp-shell .gp-joinbtn.gp-bigbtn.pending, .gp-shell .gp-joinbtn.gp-bigbtn.locked { font-size: 0.99rem; }
.gp-shell .gp-joinbtn.joined { display: none; }
.gp-shell .gp-manageslot:empty { display: none; }
.gp-shell .gp-manageslot .gadm-toggle { min-height: 46px; border-radius: 12px; padding: 0 16px; margin: 0; font-size: 0.98rem; width: auto; }
/* .gadm keeps a bottom margin from the old above-the-feed panel; in the button
   row it pushed Manage Group 9px above its neighbours. */
.gp-shell .gp-manageslot .gadm { margin: 0; }
.gp-shell .gp-morewrap { position: relative; }
.gp-shell .gp-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 270px; padding: 6px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-md);
}
.gp-shell .gp-menu[hidden] { display: none; }
.gp-shell .gp-menuitem {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px;
  background: none; border: 0; border-radius: 10px; text-align: left; cursor: pointer;
  font: 500 0.95rem 'DM Sans', sans-serif; color: var(--text);
}
.gp-shell .gp-menuitem span { width: 18px; text-align: center; }
.gp-shell .gp-menuitem:hover, .gp-shell .gp-menuitem:focus-visible { background: var(--surface-hover); outline: none; }
.gp-shell .gp-menuitem.danger { color: #D92D20; }
.gp-shell .gp-archived { margin: 0 24px 20px; }

/* -------------------------------------------------------------- the tabs */
.gp-shell .gp-tabs {
  position: sticky; top: var(--nav-h, 64px); z-index: 25; display: flex; gap: 4px;
  margin: 8px 0 18px; padding: 6px 4px 0; background: var(--bg); border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.gp-shell .gp-tabs::-webkit-scrollbar { display: none; }
.gp-shell .gp-tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; margin-bottom: -1px;
  background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 10px 10px 0 0;
  font: 600 1rem/1 'Outfit', sans-serif; color: var(--text-muted); cursor: pointer; white-space: nowrap;
}
.gp-shell .gp-tab:hover { color: var(--text); background: var(--surface-hover); }
.gp-shell .gp-tab.on { color: var(--text); border-bottom-color: var(--accent); }
.gp-shell .gp-tab.on .gp-ico { color: var(--accent); }
.gp-shell .gp-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.gp-shell .gp-tabcount {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: var(--on-accent, #fff);
  font: 700 0.74rem/22px 'DM Sans', sans-serif; text-align: center;
}
.gp-shell .gp-tabcount[hidden] { display: none; }
.gp-shell .gp-panel { outline: none; }
.gp-shell .gp-joinhint { font-size: 0.99rem; padding: 16px 18px; border-radius: 14px; }
.gp-shell .gp-joinhint[hidden] { display: none; }

/* ------------------------------------------------------ welcome checklist */
.gp-shell .gp-welcome {
  margin-bottom: 16px; padding: 16px 18px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 9%, var(--bg-card)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.gp-shell .gp-welcome[hidden] { display: none; }
.gp-shell .gp-welcome-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.gp-shell .gp-welcome-top b { display: block; font: 700 1.08rem 'Outfit', sans-serif; }
.gp-shell .gp-welcome-top span { color: var(--text-muted); font-size: 0.95rem; }
.gp-shell .gp-welcome-x { background: none; border: 1px solid var(--border); border-radius: 10px; min-height: 36px; padding: 0 12px; color: var(--text-muted); cursor: pointer; font: inherit; font-size: 0.95rem; }
.gp-shell .gp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.gp-shell .gp-step {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 64px; padding: 12px; text-align: left;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; font: inherit; color: var(--text);
}
.gp-shell .gp-step:hover, .gp-shell .gp-step:focus-visible { border-color: var(--accent); outline: none; }
.gp-shell .gp-stepmark {
  flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong, var(--border));
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800; color: #fff;
}
.gp-shell .gp-step.done .gp-stepmark { background: var(--money, #2BB673); border-color: var(--money, #2BB673); }
.gp-shell .gp-step.done .gp-steptext b { text-decoration: line-through; color: var(--text-muted); }
.gp-shell .gp-steptext b { display: block; font-size: 0.98rem; }
.gp-shell .gp-steptext small { display: block; color: var(--text-muted); font-size: 0.91rem; margin-top: 2px; }

/* ------------------------------------------------------------------ chat */
.gp-shell .gp-chatgrid { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 16px; align-items: start; }
.gp-shell .gp-chatside { position: sticky; top: calc(var(--nav-h, 64px) + 78px); display: grid; gap: 12px; min-width: 0; }
.gp-shell .gp-chanslot { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 8px; }
.gp-shell .gp-sidehead { font: 700 0.72rem/1 'Outfit', sans-serif; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); padding: 8px 10px 8px; }
.gp-shell .gp-chanslot .gc-rail { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.gp-shell .gp-chanslot .gc-chan {
  display: flex; width: 100%; min-height: 42px; padding: 0 12px; justify-content: flex-start; gap: 6px;
  border-radius: 10px; border: 1px solid transparent; background: none; font-size: 0.99rem; font-weight: 600; color: var(--text-muted);
}
.gp-shell .gp-chanslot .gc-chan:hover { background: var(--surface-hover); color: var(--text); border-color: transparent; }
.gp-shell .gp-chanslot .gc-chan.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); border-color: transparent; }
.gp-shell .gp-chanslot .gc-chan .gc-unread { margin-left: auto; }
.gp-shell .gp-chanslot .gc-add { display: flex; width: 100%; min-height: 40px; align-items: center; justify-content: flex-start; padding: 0 12px; margin-top: 4px; border-radius: 10px; font-size: 0.96rem; }
.gp-shell .gp-chatside .gt-lounge {
  flex-direction: column; align-items: stretch; gap: 8px; margin: 0; padding: 14px;
  background: var(--bg-card); border-radius: 14px;
}
.gp-shell .gp-chatside .gt-lh { font: 700 0.98rem 'Outfit', sans-serif; }
.gp-shell .gp-chatside .gt-lacts { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.gp-shell .gp-chatside .gt-lacts > * { flex: 1 1 auto; }
.gp-shell .gp-chatside .gt-lacts .btn, .gp-shell .gp-chatside .gt-lacts button { flex: 1; min-height: 42px; justify-content: center; }
.gp-shell .gp-chatcol { position: static; min-width: 0; }
.gp-shell #gpChatCol { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px 12px; }
.gp-shell .gc-head { gap: 12px; }
.gp-shell .gc-head h3 { font-size: 1.2rem; white-space: nowrap; }
.gp-shell .gc-search { width: 14rem; min-height: 36px; font-size: 0.95rem; }
.gp-shell .gc-topic { font-size: 0.94rem; margin: 0 0 10px; }
.gp-shell .gc-msgs { max-height: none; height: clamp(360px, calc(100vh - 430px), 640px); padding: 8px; gap: 10px; }
.gp-shell .gc-line1 { flex-wrap: wrap; row-gap: 2px; }
.gp-shell .gc-note { display: none; }
/* the message box: + menu, a roomy field and a clear Send */
.gp-shell .gc-form { flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.gp-shell .gc-plus { width: 46px; height: 46px; border-radius: 12px; font-size: 1.45rem; }
.gp-shell .gc-plus[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
/* the message box and the member search had no style of their own and fell
   back to the browser's bevelled field; they now match the feed's composer */
.gp-shell #gcInput, .gp-shell .gp-memsearch {
  -webkit-appearance: none; appearance: none; background: var(--field-bg, var(--bg-card)); border: 1px solid var(--border);
  color: var(--text); font-family: 'DM Sans', sans-serif; padding: 0 14px; outline: none;
}
.gp-shell #gcInput:focus, .gp-shell .gp-memsearch:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.gp-shell #gcInput { flex: 1; min-width: 0; min-height: 46px; font-size: 1rem; border-radius: 12px; }
.gp-shell .gc-send { min-height: 46px; padding: 0 22px; border-radius: 12px; }
.gp-shell .gc-tools {
  order: -1; flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 6px;
  padding: 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-elev, var(--bg-card));
}
.gp-shell .gc-tools .gc-tool {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; height: auto; min-height: 46px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 10px; background: none; color: var(--text); font: 600 0.95rem 'DM Sans', sans-serif; cursor: pointer;
}
.gp-shell .gc-tools .gc-tool:hover, .gp-shell .gc-tools .gc-tool:focus-visible { background: var(--surface-hover); border-color: var(--border); outline: none; }
.gp-shell .gc-tools .gc-tool.rec { color: #E5484D; border-color: #E5484D; font-size: 0.98rem; }
/* on a phone there is no hover: a tap on a message shows its buttons */
@media (hover: none) {
  .gp-shell .gc-m.tapped .gc-menu, .gp-shell .gc-m.tapped .gc-addr { opacity: 1; }
  .gp-shell .gc-menu button { min-width: 38px; min-height: 38px; font-size: 1rem; }
}

/* ----------------------------------------------------- posts and plans */
.gp-shell .gp-panel[data-tab="posts"], .gp-shell .gp-panel[data-tab="plans"] { max-width: 760px; }
.gp-shell .gp-composer { margin-bottom: 16px; }

/* --------------------------------------------------------------- members */
.gp-shell .gp-memhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 1rem; }
.gp-shell .gp-memsearch { min-height: 42px; width: min(280px, 100%); border-radius: 12px; }
.gp-shell .gp-memgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.gp-shell .gp-mem {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 12px; text-align: left;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; cursor: pointer; color: var(--text); font: inherit;
}
.gp-shell .gp-mem:hover, .gp-shell .gp-mem:focus-visible { border-color: var(--accent); outline: none; }
.gp-shell .gp-memav {
  flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center;
  color: #fff; font: 800 0.8rem 'Outfit', sans-serif;
}
.gp-shell .gp-memav img { width: 100%; height: 100%; object-fit: cover; }
.gp-shell .gp-memname { min-width: 0; }
.gp-shell .gp-memname b { display: block; font-size: 0.99rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-shell .gp-role { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 999px; font-size: 0.84rem; font-weight: 700; color: var(--accent-text, var(--accent)); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.gp-shell .gp-memmore { margin-top: 14px; min-height: 42px; }

/* ----------------------------------------------------------------- about */
.gp-shell .gp-about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.gp-shell .gp-aboutblurb { font-size: 1.02rem; line-height: 1.6; margin: 0 0 12px; }
.gp-shell .gp-facts { margin: 0; display: grid; gap: 0; }
.gp-shell .gp-facts div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.gp-shell .gp-facts dt { color: var(--text-muted); font-size: 0.96rem; }
.gp-shell .gp-facts dd { margin: 0; font-size: 0.98rem; }
.gp-shell .gp-aboutjoin { margin-top: 16px; width: 100%; }

/* ---------------------------------------------------- tablet-width header
   The name and the buttons share a row until the header is too narrow for
   both; then the buttons move under the name. Owners and admins carry three
   buttons (about 520px), so theirs move sooner. Before this, a 768px screen
   gave an owner's group name one letter per line (27 Sep 2026). The phone
   block below comes later and wins where the two overlap. */
.gp-shell .gp-hero { container: gphero / inline-size; }
@container gphero (max-width: 1000px) {
  .gp-shell .gp-head:where(:has(.gp-manageslot:not(:empty))) { grid-template-columns: auto minmax(0, 1fr); }
  .gp-shell .gp-head:where(:has(.gp-manageslot:not(:empty))) .gp-headacts { grid-column: 2; justify-content: flex-start; padding-top: 0; }
}
@container gphero (max-width: 760px) {
  .gp-shell .gp-head { grid-template-columns: auto minmax(0, 1fr); }
  .gp-shell .gp-head .gp-headacts { grid-column: 2; justify-content: flex-start; padding-top: 0; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 860px) {
  .gp-shell .gp-chatgrid { grid-template-columns: minmax(0, 1fr); }
  .gp-shell .gp-chatside { position: static; }
  .gp-shell .gp-chanslot { padding: 6px; }
  .gp-shell .gp-sidehead { display: none; }
  .gp-shell .gp-chanslot .gc-rail { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .gp-shell .gp-chanslot .gc-rail::-webkit-scrollbar { display: none; }
  .gp-shell .gp-chanslot .gc-chan, .gp-shell .gp-chanslot .gc-add { width: auto; flex: none; margin: 0; }
  .gp-shell .gp-chatside .gt-lounge { flex-direction: row; align-items: center; flex-wrap: wrap; padding: 10px 12px; }
  .gp-shell .gp-chatside .gt-lacts { margin-left: auto; }
  .gp-shell .gp-chatside .gt-lacts .btn, .gp-shell .gp-chatside .gt-lacts button { flex: none; }
  .gp-shell .gp-about { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .gp-shell .gp-banner { height: auto; aspect-ratio: 3 / 1; border-radius: 16px 16px 0 0; }
  /* one column: the mark above the name, so the name and details get the
     whole width, and the buttons in one row under them */
  .gp-shell .gp-head { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0 16px 16px; }
  .gp-shell .gp-emoji { width: 60px; height: 60px; margin-top: -30px; border-radius: 16px; font-size: 1.8rem; }
  .gp-shell .gp-headtext { padding-top: 0; }
  .gp-shell .gp-name { font-size: 1.4rem; }
  .gp-shell .gp-head .gp-headacts { grid-column: auto; justify-content: stretch; padding-top: 2px; gap: 8px; }
  .gp-shell .gp-headacts > .gp-joinbtn, .gp-shell .gp-headacts > .gp-invitebtn, .gp-shell .gp-headacts > .gp-manageslot { flex: 1 1 auto; min-width: 0; }
  .gp-shell .gp-headacts .gp-manageslot .gadm-toggle { width: 100%; }
  .gp-shell .gp-joinbtn.gp-bigbtn { min-width: 0; }
  .gp-shell .gp-headacts .gp-bigbtn { white-space: nowrap; padding: 0 14px; }
  .gp-shell .gp-morewrap { flex: 0 0 auto; }
  /* Owners and admins get three buttons. At phone width the long words go
     (Invite people → Invite, Manage Group → Manage, More → ⋯) so the row
     fits, and the narrowest screens wrap it rather than spill a label out of
     its button (27 Sep 2026). */
  .gp-shell .gp-headacts:has(> .gp-manageslot:not(:empty)) :is(.gp-long, .gadm-long, .gadm-role) { display: none; }
  .gp-shell .gp-headacts:has(> .gp-manageslot:not(:empty)) :is(.gp-bigbtn, .gadm-toggle) { padding: 0 12px; gap: 6px; justify-content: center; }
  .gp-shell .gp-headacts:has(> .gp-manageslot:not(:empty)) .gp-morebtn { width: 46px; padding: 0; }
  .gp-shell .gp-headacts:has(> .gp-manageslot:not(:empty)) .gp-morebtn > span { display: none; }
  .gp-shell .gp-archived { margin: 0 16px 16px; }
  /* all five tabs fit: icon over label, equal widths */
  .gp-shell .gp-tabs { top: var(--nav-h, 56px); margin: 6px 0 14px; padding: 4px 0 0; gap: 0; overflow: visible; }
  .gp-shell .gp-tab { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 4px; min-height: 58px; padding: 6px 2px; font-size: 0.88rem; border-radius: 10px 10px 0 0; position: relative; }
  .gp-shell .gp-tab .gp-ico { width: 20px; height: 20px; }
  .gp-shell .gp-tabcount { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; line-height: 18px; font-size: 0.76rem; padding: 0 5px; }
  /* the welcome checklist, two by two */
  .gp-shell .gp-welcome { padding: 14px; }
  .gp-shell .gp-steps { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gp-shell .gp-step { min-height: 56px; padding: 10px; }
  .gp-shell .gp-steptext small { display: none; }
  .gp-shell .gp-steptext b { font-size: 0.95rem; }
  #gpChatCol, .gp-shell #gpChatCol { padding: 12px; border-radius: 14px; }
  .gp-shell .gc-head { flex-wrap: wrap; }
  .gp-shell .gc-search { order: 3; width: 100%; }
  .gp-shell .gc-msgs { height: clamp(320px, calc(100dvh - 330px), 620px); }
  .gp-shell .gp-memhead { flex-wrap: wrap; }
  .gp-shell .gp-memsearch { width: 100%; }
  .gp-shell .gp-facts div { grid-template-columns: 110px minmax(0, 1fr); }
}

/* --------------------------------------------- Manage › Channels (27 Sep 2026) */
.gadm-chans { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.gadm-chan { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--bg-card); }
.gadm-chan.is-archived { opacity: .7; border-style: dashed; }
.gadm-chan-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.gadm-chan-head b { font: 700 1rem 'Outfit', sans-serif; margin-right: 4px; }
.gadm-chip { font-size: .82rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: var(--text-muted); background: var(--surface-hover); }
.gadm-chan-row { display: flex; gap: 8px; }
.gadm-chan-topic {
  flex: 1; min-width: 0; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--field-bg, var(--bg-card)); color: var(--text); font: .95rem 'DM Sans', sans-serif; outline: none;
}
.gadm-chan-topic:focus { border-color: var(--accent); }
.gadm-chan-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gadm-chan-acts .gadm-dim { font-size: .91rem; }
/* the banner preview in Manage › Settings, at the page's 3:1 */
.gadm-id-prev { height: auto; aspect-ratio: 3 / 1; background-size: cover; background-position: center; }
@media (max-width: 640px) { .gadm-chan-row { flex-wrap: wrap; } .gadm-chan-row .btn { width: 100%; } }

/* The call bar sits under the Lounge and matches it: a column in the wide
   sidebar, a single row once the sidebar is a strip across the top. */
.gp-shell .gp-chatside .gm-bar {
  flex-direction: column; align-items: stretch; gap: 8px; margin: 0; padding: 14px;
  background: var(--bg-card); border-radius: 14px;
}
.gp-shell .gp-chatside .gm-barh { font: 700 0.98rem 'Outfit', sans-serif; }
.gp-shell .gp-chatside .gm-bar .gm-btn { margin-left: 0; min-height: 42px; }
@media (max-width: 860px) {
  .gp-shell .gp-chatside .gm-bar { flex-direction: row; align-items: center; flex-wrap: wrap; padding: 10px 12px; }
  .gp-shell .gp-chatside .gm-bar .gm-btn { margin-left: auto; min-height: 0; }
}
