.groups-page{max-width:760px;margin:12px auto;padding:0 16px 100px}.groups-page h1{margin:8px 0}.groups-page form{display:flex;align-items:end;gap:8px;margin:16px 0}.groups-page form label{flex:1;min-width:0}.groups-page input{width:100%;box-sizing:border-box}.group-card{padding:16px;border:1px solid #dce6df;border-radius:16px;background:white;margin:12px 0}.group-card h2{margin:0 0 12px}.group-card>.ghost-btn{margin:4px}.group-member{display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:1px solid #edf1ec;padding:8px 0}.group-identity{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}.group-identity img{border-radius:50%;object-fit:cover}.group-identity a{overflow-wrap:anywhere}.group-member button{flex:none}.groups-page button,.groups-page a.ghost-btn{min-height:44px}.groups-page [role=status]:empty{display:none}
.host-add-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:16px;border:1px solid #dce6df;border-radius:18px;background:white;color:#103e2e}.host-add-dialog::backdrop{background:#123a2b66}.host-add-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.host-add-heading h2{margin:0}.host-add-dialog nav,.host-add-actions{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.host-add-dialog button,.host-add-dialog select,.host-add-dialog input[type=search]{min-height:44px}.host-add-dialog button[aria-pressed=true]{background:#c6fa28}.host-add-dialog select,.host-add-dialog input[type=search]{box-sizing:border-box;width:100%;margin:5px 0}.host-add-list{max-height:40dvh;overflow:auto}.host-add-list label{display:flex;align-items:center;gap:8px;min-height:48px;margin:0;border-bottom:1px solid #e7ede6;padding:6px}.host-add-list input{width:20px;height:20px;flex:none}.host-add-list img{width:40px;height:40px;object-fit:cover;border-radius:50%}.host-add-list span{overflow-wrap:anywhere}.host-add-results{padding-left:20px;font-size:14px}.host-add-results li{margin:5px 0}.host-add-dialog [role=status]{white-space:pre-wrap}.host-add-dialog :focus-visible{outline:2px solid #075438;outline-offset:2px}

/* Compact Friends/Clubs-style group layout. Scoped to this page. */
.groups-page{padding:0 0 24px;margin:0 auto;color:#124b39}.groups-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 12px}.groups-heading h1,.groups-heading h2{margin:0;min-width:0;overflow-wrap:anywhere}.groups-heading h1{font-size:28px}.groups-heading>.ghost-btn{flex-shrink:0;font-size:13px}.groups-caption{font-size:14px;color:#607269;margin:12px 0}.group-create,.group-invite{border:1px solid #dce6df;border-radius:16px;background:white;padding:12px 16px}.group-create>summary,.group-invite>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700;gap:8px}.group-create>summary::after,.group-invite>summary::after{content:'⌄';margin-left:auto}.group-create[open]>summary::after,.group-invite[open]>summary::after{content:'⌃'}.groups-page .group-create form{margin:8px 0 0;flex-wrap:wrap}.group-create form label{flex:1 1 160px;font-size:13px}.group-create input{min-height:44px;margin-top:5px}.group-card{margin:12px 0;padding:16px;border-radius:16px;box-shadow:0 2px 8px #103e2e04}.group-card-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px}.group-card-heading>div{min-width:0}.group-card-heading h2{font-size:20px;margin:0 0 4px;overflow-wrap:anywhere}.group-card small{font-size:13px;color:#62756b}.group-monogram{width:48px;height:48px;flex:none;display:grid;place-items:center;background:#e9f4dc;color:#075438;border-radius:14px;font-size:24px;font-weight:800}.group-card>.ghost-btn{margin:0 6px 0 0}.group-card>.ghost-btn:first-of-type{background:#c6f52c;border-color:#a5cf20}.group-card>p{font-size:14px;line-height:1.45;color:#607269;margin:10px 0 14px}.group-create-game{display:flex;justify-content:center;text-align:center;align-items:center;min-height:44px;text-decoration:none}.group-invite{background:#f7faf5;padding:4px 12px}.group-members-heading{font-size:16px;margin:18px 0 4px}.group-member{padding:10px 0;gap:10px}.group-member:last-child{border-bottom:0}.group-identity{flex:1;flex-wrap:nowrap;gap:10px}.group-identity img,.group-avatar-fallback{width:48px;height:48px;flex:none;border-radius:50%;object-fit:cover}.group-avatar-fallback{display:grid;place-items:center;background:#e9f4dc;font-weight:700;font-size:20px}.group-member-name{min-width:0;display:grid;gap:3px}.groups-page .group-profile-link{min-height:0;padding:0;border:0;background:none;text-decoration:none;font-weight:700;overflow-wrap:anywhere}.group-member>.ghost-btn{font-size:13px;padding:8px 12px}.group-empty{text-align:center;padding:24px 16px}.group-empty h2{font-size:20px}.groups-page :focus-visible{outline:2px solid #075438;outline-offset:3px}.groups-page [role=status]:not(:empty){font-size:14px;background:#f1f7e9;border-radius:10px;padding:10px}
/* Keep group identity and its two actions together on mobile. */
.group-card-inline .group-card-heading{margin:0;gap:10px;justify-content:space-between}
.group-chat-identity{display:flex;align-items:center;gap:10px;flex:1;min-width:0;color:inherit;text-decoration:none}
.group-chat-identity>div{min-width:0}.group-chat-identity h2{font-size:17px;line-height:1.3;margin:0 0 4px}.group-chat-identity small{font-size:11px;display:block}
.group-card-actions{display:flex;align-items:center;gap:6px;flex:none}
.groups-page .group-card-actions .ghost-btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:7px 10px;font-size:12px;line-height:1.25;white-space:nowrap;text-decoration:none;margin:0}
.group-card-actions a{background:#c6f52c;border-color:#a5cf20}.group-card-actions button{background:#f7faf5;color:#315543;border-color:#dce6df}
@media(max-width:480px){.group-card-inline{padding:12px}.group-card-inline .group-card-heading{gap:8px}.group-chat-identity{gap:8px}.group-chat-identity .group-monogram{width:36px;height:40px;font-size:21px;border-radius:11px}.group-chat-identity h2{font-size:16px}.groups-page .group-card-actions .ghost-btn{font-size:11px;padding:7px 8px}.group-card-actions{gap:4px}}
@media(max-width:359px){.group-card-inline{padding:10px}.group-chat-identity{gap:6px}.group-chat-identity .group-monogram{width:30px;height:36px;font-size:18px}.group-chat-identity h2{font-size:14px}.group-chat-identity small{font-size:10px}.groups-page .group-card-actions .ghost-btn{padding-inline:6px;font-size:10px}}

/* Add Players: avatar + name in 3 columns (2026-11-21, user request). */
.host-add-dialog .host-add-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:40dvh;overflow:auto}
.host-add-dialog .host-add-list label{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;min-height:0;margin:0;padding:10px 4px;border:1px solid #e7ede6;border-radius:12px;text-align:center;position:relative;cursor:pointer}
.host-add-dialog .host-add-list label:has(input:checked){border-color:#075438;background:#f0f6e9}
.host-add-dialog .host-add-list input{position:absolute;top:8px;left:8px;width:20px;height:20px;margin:0}
.host-add-dialog .host-add-list img{width:56px;height:56px;margin-top:6px}
.host-add-dialog .host-add-list span{font-size:13px;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
.host-add-dialog .host-add-list label:not(:has(img))::before{content:"";display:block;width:56px;height:56px;margin-top:6px;border-radius:50%;background:#e3ebe5}
