/* Groups use only the existing Connections palette and shell. */
.grp-section{padding:16px;margin-bottom:12px;border-radius:5px;min-width:0}
.grp-section h2,.grp-feed-head h2{font-size:16px;margin:0 0 10px;color:var(--strong)}
.grp-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);min-width:0}
.grp-row:last-child{border-bottom:0;padding-bottom:0}
.grp-tile{display:grid;place-items:center;width:52px;height:52px;flex:none;color:var(--red);background:var(--red-tint);border:1px solid var(--line);border-radius:5px}
.grp-tile .i{width:26px;height:26px}
.grp-grow{flex:1;min-width:0;overflow-wrap:anywhere}
.grp-actions,.grp-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.grp-actions{justify-content:flex-end}
.grp-title-row{justify-content:space-between}
.grp-desc{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}
.grp-head{padding:0;overflow:hidden;border-radius:5px;margin-bottom:12px}
.grp-cover{height:140px;display:flex;align-items:center;padding:24px;background:linear-gradient(120deg,var(--red-tint),var(--hover));color:var(--red)}
.grp-cover .i{width:60px;height:60px}
.grp-info{padding:16px;overflow-wrap:anywhere}
.grp-info h1{font-size:22px;line-height:1.3;margin:0;color:var(--strong)}
.grp-tabs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--line);padding:10px 16px}
.grp-notice{background:var(--red-tint);color:var(--red);padding:8px;border-radius:5px}
.grp-search{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:12px 0}
.grp-search label{flex:1;min-width:115px}
.grp-form label,.grp-section form label{display:block;margin-bottom:8px}
.grp-form label{font-weight:600}
.grp-section label input,.grp-section label select,.grp-section label textarea{font-weight:400}
.grp-section .ghost.small+.empty,#grp-results+.ghost,#grp-results+a{margin-top:10px}
.grp-form textarea,.grp-section textarea{resize:vertical;max-width:100%}
.grp-form p{margin:0 0 12px}
.grp-side-list{margin-top:12px}
.grp-side-list .panel-link span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.grp-feed-head{margin:10px 0}
.grp-feed-head h2{margin:0}
.grp-right p{margin-bottom:10px}
@media(max-width:759px){.grp-section{padding:12px}.grp-cover{height:105px;padding:16px}.grp-cover .i{width:44px;height:44px}.grp-row{flex-wrap:wrap;gap:8px}.grp-row .grp-actions{justify-content:flex-start;width:100%;padding-left:0}.grp-title-row{align-items:flex-start}.grp-info h1{font-size:20px}.grp-tabs{padding:9px 10px}.grp-search label{min-width:110px}.grp-actions{justify-content:flex-start}.grp-title-row .muted{flex:1}.grp-form .grp-actions{width:100%}}

/* Groups R2: create and settings with a live preview, choices like the post window's audience list, rules, welcome, announcements. */
.grp-form-wrap{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:12px;align-items:start}
.grp-form h2{font-size:15px;margin:18px 0 8px}.grp-form h2:first-child{margin-top:0}
.grp-form h3{font-size:13px;margin:12px 0 6px;color:var(--strong)}
.grp-preview{position:sticky;top:calc(var(--top-h,56px) + var(--ctx-h,44px) + 12px);padding:0;overflow:hidden;border-radius:5px}
.grp-preview .panel-label{padding:10px 14px 0}
.grp-preview .grp-cover{height:90px;padding:16px}.grp-preview .grp-cover .i{width:40px;height:40px}
.grp-preview h1{font-size:18px;overflow-wrap:anywhere}
.grp-pv-tabs{padding:8px 0 0;border-top:0}
.grp-choices{border:1px solid var(--line);border-radius:5px;overflow:hidden;margin-bottom:8px}
.grp-choice{position:relative;cursor:pointer;padding:10px 12px;margin:0!important;font-weight:400!important}
.grp-choice:last-child{border-bottom:0}
.grp-choice input{position:absolute;opacity:0;width:1px;height:1px}
.grp-choice>span:nth-of-type(1) .muted{display:block}
.grp-dot{flex:none;width:16px;height:16px;border-radius:50%;border:2px solid var(--line)}
.grp-choice:has(input:checked){background:var(--red-tint)}
.grp-choice:has(input:checked) .grp-dot{border-color:var(--red);box-shadow:inset 0 0 0 3px var(--surface);background:var(--red)}
.grp-choice:has(input:checked)>.i{color:var(--red)}
.grp-choice:has(input:focus-visible){outline:2px solid var(--red);outline-offset:-2px}
.grp-choice.is-locked{cursor:not-allowed;opacity:.55}
.grp-examples{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}
.grp-examples .chip .i{width:12px;height:12px}
.grp-rule{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--line)}
.grp-rule-n{flex:none;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--bg);color:var(--strong);font-weight:700;font-size:12px}
.grp-rule input,.grp-rule textarea{width:100%;margin-bottom:6px}
.grp-rule-list:empty{display:none}
.grp-check{display:flex!important;gap:10px;align-items:flex-start;font-weight:400!important;margin:8px 0 14px!important}
.grp-check input{margin-top:3px}
.grp-check .muted{display:block}
.grp-fact{display:flex;gap:12px;align-items:flex-start;padding:8px 0}
.grp-fact>.i{flex:none;color:var(--muted);margin-top:2px}
.grp-fact b{display:block;color:var(--strong)}
.grp-rules{margin:0 0 8px;padding-left:22px}.grp-rules li{margin:0 0 10px}
.grp-steps{list-style:none;margin:0;padding:0}
.grp-steps li{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}
.grp-steps li:last-child{border-bottom:0}
.grp-steps li span{flex:1}
.grp-steps li .i{color:var(--muted)}
.grp-steps li.done span{color:var(--muted);text-decoration:line-through}
.grp-steps li.done .i{color:var(--red)}
.grp-welcome{border-left:3px solid var(--red)}
.grp-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.grp-totals div{background:var(--bg);border-radius:5px;padding:10px}
.grp-totals b{display:block;font-size:20px;color:var(--strong)}
.grp-announce{margin-bottom:12px}
.grp-announce h2 .i{width:16px;height:16px;color:var(--red);vertical-align:-2px}
.grp-settings-wrap{padding:0}
@media(max-width:1100px){.grp-form-wrap{grid-template-columns:minmax(0,1fr)}.grp-preview{position:static;order:-1}}
.grp-form label.grp-choice,.grp-form label.audience-row{display:flex;align-items:center;gap:12px;width:100%}
.grp-form label.grp-choice>span:nth-of-type(1){flex:1;min-width:0}
.grp-check input{width:auto!important;flex:none}

/* Wider create and settings form (owner, 26 Nov): the middle column is at most 720px, so the form takes it all and the preview is a strip above it. */
.grp-form-wrap{grid-template-columns:minmax(0,1fr)}
.grp-preview{position:static;order:-1;display:grid;grid-template-columns:150px minmax(0,1fr);align-items:stretch}
.grp-preview .panel-label{grid-column:1/-1;padding-bottom:8px}
.grp-preview .grp-cover{height:auto;min-height:96px;justify-content:center;padding:12px}
.grp-preview .grp-info{padding:12px 16px}
.grp-preview .grp-info h1{font-size:17px}
.grp-preview .grp-desc{margin:4px 0}
@media(max-width:520px){.grp-preview{grid-template-columns:minmax(0,1fr)}.grp-preview .grp-cover{min-height:70px}}

/* Wide pages (create, Manage): the middle column may grow, and the preview sits beside the form when there is room. */
.layout.wide-main main{max-width:1120px;container-type:inline-size}
@container (min-width:960px){
 .grp-form-wrap{grid-template-columns:minmax(0,1fr) 320px}
 .grp-preview{order:0;display:block;position:sticky;top:calc(var(--top-h,56px) + var(--ctx-h,44px) + 12px)}
 .grp-preview .panel-label{padding:10px 14px 0}
 .grp-preview .grp-cover{height:110px;min-height:0;justify-content:flex-start;padding:16px}
 .grp-preview .grp-info{padding:16px}
}

.grp-overview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:8px}
.grp-overview-grid>button{text-align:left;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px}
.grp-overview-grid>button b{color:var(--strong);white-space:nowrap}
:is(#grp-pending,#grp-requests,#grp-invites,#grp-activity){scroll-margin-top:9rem}

/* Group page, from the owner's reference (Nov 2026): a drawn header, underlined tabs, the discussion beside About and events. */
@media(min-width:1241px){.layout.grp-page{grid-template-columns:320px minmax(0,1fr)}.layout.grp-page .rightbar{display:none}}
.grp-head2{padding:0;overflow:hidden}
.grp-banner{height:190px;background:var(--art);position:relative}
.grp-banner-edit{position:absolute;right:12px;bottom:12px;background:var(--surface)}
.grp-head-body{padding:12px 18px 0}
.grp-head-body h1{font-size:24px;margin:0;color:var(--strong)}
.grp-head-body .grp-actions{align-items:center}
.grp-tabs2{display:flex;gap:4px;margin-top:12px;border-top:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.grp-tab{padding:10px 12px;color:var(--muted);font-weight:600;font-size:13.5px;border-bottom:3px solid transparent;white-space:nowrap}
.grp-tab:hover{color:var(--strong);background:var(--hover)}
.grp-tab.on{color:var(--red);border-bottom-color:var(--red)}
.grp-cols{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px;align-items:start;margin-top:14px}
.grp-main{min-width:0;display:flex;flex-direction:column;gap:12px}
.grp-main>.post,.grp-main #grp-posts>.post{margin:0}
#grp-posts{display:flex;flex-direction:column;gap:12px}
.grp-aside{display:flex;flex-direction:column;gap:12px;position:sticky;top:calc(var(--top-h) + var(--ctx-h) + 12px)}
.grp-side-card h3{font-size:14px;margin:0 0 6px;color:var(--strong)}
.grp-side-card h3+.grp-rules-sm,.grp-side-card .grp-fact+h3{margin-top:10px}
.grp-rules-sm{margin:0 0 8px;padding-left:18px;font-size:13px}
.grp-compose{padding:12px 14px}
.grp-compose-top{display:flex;gap:10px;align-items:center}
.grp-compose-field{flex:1;text-align:left;border:1px solid var(--line);background:var(--field);border-radius:20px;padding:9px 14px;color:var(--muted);font-size:14px;cursor:pointer}
.grp-compose-field:hover{background:var(--hover)}
.grp-compose-tools{display:flex;flex-wrap:wrap;gap:4px;margin-top:10px;padding-top:8px;border-top:1px solid var(--line)}
.grp-tool{display:inline-flex;align-items:center;gap:6px;border:0;background:none;color:var(--text);font-weight:600;font-size:13px;padding:7px 10px;border-radius:6px;cursor:pointer;flex:1;justify-content:center;white-space:nowrap}
.grp-tool:hover{background:var(--hover)}
.grp-tool .i{width:17px;height:17px;color:var(--red)}
.grp-compose-note{margin:6px 0 0;font-size:12px}
.grp-event-mini{display:flex;gap:10px;align-items:center;padding:6px 0;color:var(--text)}
.grp-event-mini+.grp-event-mini{border-top:1px solid var(--line)}
.grp-event-mini .grp-grow{display:flex;flex-direction:column;min-width:0}
.grp-date{display:flex;flex-direction:column;align-items:center;width:40px;border:1px solid var(--line);border-radius:5px;font-size:11px;line-height:1.2;padding:3px 0;color:var(--red);text-transform:uppercase}
.grp-date b{font-size:16px;color:var(--strong)}
.grp-panel-card{display:flex;gap:10px;align-items:center;padding:10px 8px;margin:4px 0 6px;border-radius:7px;color:var(--text)}
.grp-panel-card:hover{background:var(--hover)}
.grp-panel-card .grp-grow{display:flex;flex-direction:column;min-width:0}
.grp-panel-card b{color:var(--strong);font-size:15px}
.grp-panel-art{width:44px;height:44px;border-radius:6px;background:var(--art);flex:none}
.grp-panel-art.sm{width:22px;height:22px;border-radius:4px}
.grp-panel-back{font-size:12.5px}
.grp-art-pick{border:0;padding:0;margin:0 0 12px}
.grp-art-pick legend{font-weight:600;margin-bottom:6px}
.grp-art-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:4px}
.grp-art-opt{width:64px;height:36px;border-radius:5px;background:var(--art);cursor:pointer;outline:2px solid transparent;outline-offset:2px}
.grp-art-opt:has(input:checked){outline-color:var(--red)}
.grp-art-opt:focus-within{outline-color:var(--ring)}
.grp-art-opt input{position:absolute;opacity:0;width:1px;height:1px}
@container (max-width:860px){.grp-cols{grid-template-columns:minmax(0,1fr)}.grp-aside{position:static}}
@media(max-width:760px){.grp-banner{height:110px}.grp-head-body{padding:10px 12px 0}.grp-tool span{display:none}.grp-tool{flex:0 0 auto}}

/* Admin tools, one page each */
.grp-tool-page h3{font-size:14px;margin:14px 0 6px;color:var(--strong)}
.grp-tile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin:6px 0 12px}
.grp-tile-link{display:flex;flex-direction:column;gap:2px;border:1px solid var(--line);border-radius:6px;padding:10px 12px;color:var(--text)}
.grp-tile-link:hover{background:var(--hover)}
.grp-tile-link b{font-size:20px;color:var(--strong)}
.grp-reported{border-top:1px solid var(--line);padding-top:10px;margin-top:10px}
.grp-reported .post{margin:6px 0}
.grp-days{display:flex;gap:6px;margin-bottom:10px}
.grp-week{display:grid;grid-template-columns:120px minmax(0,1fr) 90px;gap:10px;align-items:center;padding:4px 0;font-size:13px}
.grp-week b{text-align:right;color:var(--strong)}
.grp-bar{height:8px;border-radius:4px;background:var(--hover);overflow:hidden}
.grp-bar i{display:block;height:100%;background:var(--red-fill)}
.grp-insearch{display:flex;gap:8px;align-items:center}
.grp-insearch input{flex:1}
.grp-tab-search{margin-left:auto;border:0;background:none;cursor:pointer}
.grp-tab-search .i{width:16px;height:16px}

/* Guides, gaming, looking for players */
.grp-progress{display:flex;gap:10px;align-items:center;margin:6px 0}
.grp-progress .grp-bar{flex:1}
.grp-units{margin:8px 0 0;padding-left:20px}
.grp-units li{padding:4px 0;border-bottom:1px solid var(--line)}
.grp-units summary{cursor:pointer;display:flex;gap:8px;align-items:center}
.grp-units .grp-desc{margin:6px 0 4px 26px}
.grp-slug{display:flex;align-items:center;gap:4px}
.grp-slug input{flex:1}
.lfp-box{border:1px solid var(--line);border-radius:6px;padding:10px 12px;margin:8px 0}
.lfp-top{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.lfp-top .i{width:18px;height:18px;color:var(--red)}
.lfp-left{margin-left:auto}
.lfp-players{display:flex;flex-wrap:wrap;gap:4px;margin:8px 0}

/* Membership questions editor */
.grp-qrow{display:flex;gap:8px;align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--line)}
.grp-qrow .grp-grow{display:flex;flex-direction:column;gap:6px}

.grp-sell-item{display:flex;flex-direction:column;gap:6px}
.grp-cat-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}

/* Insights charts and the activity log, from the owner's third recording */
.grp-line{margin:6px 0 14px}.grp-line svg{width:100%;height:120px;background:var(--subtle);border-radius:6px}
.grp-line-axis{display:flex;justify-content:space-between;font-size:11.5px}
.grp-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:700px){.grp-two{grid-template-columns:1fr}}
.grp-vbars{display:flex;align-items:flex-end;gap:6px;height:120px;padding-top:6px}
.grp-vbars.tight{gap:2px}
.grp-vbar{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px;min-width:0}
.grp-vbar i{display:block;width:100%;background:var(--red-fill);border-radius:3px 3px 0 0}
.grp-vbar span{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden}
.grp-log-filters{display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 10px}
.grp-log-filters label{font-size:12.5px;display:flex;flex-direction:column;gap:3px}
.grp-log-day{font-size:13px;margin:14px 0 4px;color:var(--strong)}
.grp-log-note{display:flex;gap:6px;align-items:center;font-size:12.5px;background:var(--subtle);border-radius:6px;padding:4px 8px;margin-top:4px}
.grp-log-note .i{width:14px;height:14px}

.grp-side-search{padding:4px 8px 8px}
.grp-side-search input{width:100%;border-radius:18px;padding:7px 12px}
.grp-side-name{display:flex;flex-direction:column;min-width:0}
.grp-side-name small{font-size:11.5px}
.grp-dgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.grp-dcard{position:relative;flex:0 0 200px;min-height:0;justify-content:flex-start;padding:0 0 10px;overflow:hidden;background:var(--surface)}
.grp-dcard-art{display:block;height:96px;background:var(--art)}
.grp-dcard-name,.grp-dcard>span{padding:0 10px}
.grp-dcard-name{color:var(--strong);margin-top:6px}
.grp-dcard .primary,.grp-dcard .ghost,.grp-dcard>.muted{margin:6px 10px 0}
.grp-dcard-x{position:absolute;top:6px;right:6px;background:var(--surface);border-radius:50%;width:26px;height:26px;display:grid;place-items:center}
.grp-dcard-x .i{width:14px;height:14px}
