/* Groups only: owner-selected HarborLink palette and existing font families. */
.hl-groups-page{--group-navy:var(--navy,#182640);--group-blue:var(--blue,#104976);--group-light:var(--surface,#faf9ec);max-width:1000px;margin:0 auto 24px;border:1px solid var(--border);border-radius:24px;overflow:hidden;background:var(--surface);box-shadow:0 8px 30px #18264008}
.hl-groups-hero{position:relative;isolation:isolate;padding:32px 30px 26px;background:var(--group-navy);color:var(--cream,#fff);overflow:hidden}
.hl-groups-hero:before,.hl-group-details-hero:before{content:'';position:absolute;z-index:-1;inset:0;opacity:.15;background:repeating-radial-gradient(ellipse at 100% 10%,transparent 0 24px,currentColor 25px,transparent 26px 49px);transform:rotate(-12deg) scale(1.3);pointer-events:none}
.hl-groups-eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;opacity:.7}.hl-groups-hero h1{font-size:36px;letter-spacing:-1px;margin:12px 0 8px;color:inherit}.hl-groups-hero p{font-size:16px;line-height:1.6;margin:0 0 24px;max-width:480px;opacity:.85}
.hl-groups-page .hl-groups-create{display:flex;gap:9px;align-items:center;justify-content:center;width:100%;background:var(--group-blue);border:1px solid #ffffff26;color:var(--cream,#fff);box-shadow:0 5px 18px #0002;border-radius:13px;min-height:50px;font-size:16px;font-weight:700}.hl-groups-create>span{font-size:24px;font-weight:400}
.hl-groups-body{padding:22px 24px 26px}.hl-groups-search{display:flex;align-items:center;gap:10px;padding:0 15px;background:color-mix(in srgb,var(--text) 4%,var(--surface));border:1px solid color-mix(in srgb,var(--border) 65%,transparent);border-radius:14px;color:var(--muted)}.hl-groups-search svg{width:21px;height:21px;flex:none}.hl-groups-search input{background:none!important;border:0!important;box-shadow:none;font-size:16px;min-height:50px;padding:12px 0;color:var(--text)}
.hl-groups-tabs{display:flex;gap:5px;margin:16px 0 22px;padding:4px;border-radius:30px;background:color-mix(in srgb,var(--text) 5%,var(--surface))}.hl-groups-tabs>button{flex:1;border:0;border-radius:24px;min-height:43px;font-size:14px;background:transparent;color:var(--text);padding:8px 6px;white-space:nowrap}.hl-groups-tabs>button[aria-selected=true]{background:var(--group-navy);color:var(--cream,#fff);box-shadow:0 2px 6px #18264020}.hl-groups-pending,.hl-group-unread{display:inline-grid;place-items:center;border-radius:20px;background:var(--group-blue);color:var(--cream,#fff);min-width:21px;height:21px;font-size:11px;font-weight:700;margin-left:5px;padding:0 5px}.hl-groups-tabs [aria-selected=true] .hl-groups-pending{background:var(--cream);color:var(--group-navy)}
.hl-groups-list-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.hl-groups-list-heading h2{font-size:16px;margin:0;letter-spacing:-.3px}.hl-groups-list-heading>span{font-size:12px;color:var(--muted);white-space:nowrap}#hl-groups-list{display:grid;gap:12px}
.hl-group-card{border:1px solid color-mix(in srgb,var(--border) 65%,transparent);border-radius:17px;background:var(--surface);overflow:hidden;transition:box-shadow .18s,border-color .18s}.hl-group-card:hover{border-color:var(--group-blue);box-shadow:0 5px 20px #1826400a}.hl-group-card-main{width:100%;display:flex;align-items:center;gap:15px;text-align:left;border:0;padding:15px;background:none;color:var(--text);min-width:0;position:relative}.hl-group-art{display:grid;place-items:center;flex:none;width:80px;height:84px;border-radius:13px;overflow:hidden;background:var(--group-navy,#182640);color:var(--cream,#faf9ec)}.hl-group-art svg{width:100%;height:100%}.hl-group-chartline{stroke:currentColor;stroke-width:.8;opacity:.25}.hl-group-art img{width:100%;height:100%;object-fit:cover}
.hl-group-card-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}.hl-group-card-top{display:flex;align-items:baseline;gap:8px}.hl-group-card-top strong{font:700 17px/1.35 Manrope,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.hl-group-card-top time{font-size:11px;color:var(--muted);flex:none}.hl-group-card-meta{font-size:11px;color:var(--muted)}.hl-group-preview{font-size:13px;line-height:1.5;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:var(--muted)}.hl-group-card-bottom{display:flex;align-items:center;gap:10px;margin-top:3px}.hl-group-faces{display:flex;padding-left:4px}.hl-group-face{display:inline-grid;place-items:center;width:26px;height:26px;border:2px solid var(--surface);border-radius:50%;background:var(--group-blue,#104976);color:var(--cream,#fff);font-size:9px;font-weight:700;overflow:hidden;flex:none}.hl-group-faces .hl-group-face{margin-left:-4px}.hl-group-face img{width:100%;height:100%;object-fit:cover}.hl-group-card-hint{font-size:10px;color:var(--muted)}.hl-group-unread{flex:none;margin:0;min-width:24px;height:24px}.hl-group-chevron{font-size:24px;color:var(--muted);width:14px;flex:none}.hl-group-card-actions{display:flex;justify-content:flex-end;padding:0 16px 12px}.hl-group-action{border:1px solid var(--border);border-radius:9px;min-height:36px;font-size:12px;font-weight:700;padding:6px 13px;background:var(--group-blue,var(--blue,#104976));color:var(--cream,#fff)}.hl-group-action:disabled{background:transparent;color:var(--muted);cursor:default}.hl-groups-empty{text-align:center;padding:30px 10px 40px}.hl-groups-empty .hl-group-art{margin:0 auto 18px;width:76px;height:76px}.hl-groups-empty h2{font-size:21px}.hl-groups-empty p{font-size:14px;color:var(--muted);max-width:350px;margin:10px auto 20px}
#modal:has(.hl-group-chat),#modal:has(.hl-group-details){--group-navy:var(--navy,#182640);--group-blue:var(--blue,#104976);background:var(--surface);color:var(--text)}
.hl-group-chat>header{background:var(--group-navy)!important;color:var(--cream,#fff)!important;gap:10px;padding-bottom:13px;border:0;box-shadow:0 3px 14px #18264012;z-index:3}.hl-group-chat>header .hl-group-art{width:42px;height:42px;border-radius:12px;border:1px solid #ffffff30}.hl-group-chat>header .hl-group-back{color:inherit;width:34px}.hl-group-chat .hl-group-title{background:none;border:0;padding:0;text-align:left;color:inherit}.hl-group-chat .hl-group-title h2{font-size:17px;line-height:1.4;color:inherit}.hl-group-chat .hl-group-title>span{font-size:11px;color:inherit;opacity:.7}.hl-group-menu{background:none;border:0;color:inherit;letter-spacing:2px;width:40px;min-height:44px;padding:0;font-size:16px}
#hl-group-messages{background:color-mix(in srgb,var(--surface) 96%,var(--text));gap:12px;padding:16px;scrollbar-width:thin;overflow-anchor:none}.hl-group-message{display:flex;gap:8px;align-items:flex-end;align-self:flex-start;max-width:88%;flex:none;min-width:0}.hl-group-message.mine{align-self:flex-end;justify-content:flex-end}.hl-group-message-avatar{flex:none;width:28px}.hl-group-message-avatar .avatar{width:28px;height:28px;font-size:9px;border:0;padding:0}.hl-group-message .hl-group-bubble{max-width:100%;min-width:65px;background:color-mix(in srgb,var(--text) 8%,var(--surface));border-radius:17px 17px 17px 4px;padding:10px 13px;box-shadow:0 1px 1px #18264006;color:var(--text)}.hl-group-message.mine .hl-group-bubble{background:var(--group-blue)!important;color:var(--cream,#fff)!important;border-radius:17px 17px 4px 17px}.hl-group-bubble strong{font-size:11px;line-height:1.5;color:inherit}.hl-group-bubble p{font-size:15px;line-height:1.5;margin:3px 0 4px}.hl-group-bubble time{font-size:10px;opacity:.7;text-align:right;white-space:nowrap;margin-top:4px}.hl-group-bubble .photo-gallery{margin:6px 0}.hl-group-bubble .photo-gallery img{max-height:280px;border-radius:10px}.hl-group-day{text-align:center;flex:none;padding:5px 0 8px}.hl-group-day span{font-size:10px;background:color-mix(in srgb,var(--text) 5%,var(--surface));border-radius:14px;padding:5px 12px;color:var(--muted)}.hl-group-unread-divider{display:flex;align-items:center;gap:12px;color:var(--group-blue);font-size:11px;flex:none;margin:8px 0}.hl-group-unread-divider:before,.hl-group-unread-divider:after{content:'';height:1px;background:currentColor;opacity:.25;flex:1}.hl-group-chat-empty{margin:auto;text-align:center;padding:30px;color:var(--muted)}.hl-group-chat-empty h3{color:var(--text)}.hl-group-chat-empty p{font-size:14px}
#hl-group-form{background:var(--surface);flex:none;border-top:1px solid color-mix(in srgb,var(--border) 50%,transparent);padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));max-height:45%;overflow-y:auto}#hl-group-form textarea{background:color-mix(in srgb,var(--text) 4%,var(--surface));border-color:color-mix(in srgb,var(--border) 65%,transparent)}#hl-group-form .hl-group-send{background:var(--group-blue);color:var(--cream,#fff)}#hl-group-form .hl-group-add{background:color-mix(in srgb,var(--text) 6%,var(--surface));color:var(--group-blue)}
#modal:has(.hl-group-details){padding:0;max-width:600px;width:calc(100% - 24px);overflow-y:auto}#modal:has(.hl-group-details)>form{display:none}.hl-group-details-hero{position:relative;isolation:isolate;background:var(--group-navy);color:var(--cream,#fff);padding:24px;overflow:hidden}.hl-group-details-hero>.hl-group-back{position:absolute;top:12px;left:10px;color:inherit}.hl-group-details-hero>.hl-group-art{width:80px;height:80px;margin:0 auto 16px;border:1px solid #ffffff26}.hl-group-details-hero h2{font-size:24px;color:inherit;margin:0 0 5px}.hl-group-details-hero p{font-size:12px;margin:0;opacity:.8}.hl-group-details-body{padding:20px 24px}.hl-group-details-body>p:first-child{white-space:pre-wrap;font-size:15px}.hl-group-details-body h3{font-size:15px;border-top:1px solid var(--border);padding-top:20px;margin-top:20px}.hl-group-member-list>div{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid color-mix(in srgb,var(--border) 50%,transparent)}.hl-group-member-list .hl-group-face{width:38px;height:38px;font-size:12px}.hl-group-member-list strong{font-size:14px}.hl-group-member-list small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.hl-group-member-menu{margin-left:auto;min-width:44px;min-height:44px;background:none;color:var(--text);border:0;letter-spacing:2px}
@media(min-width:800px){#hl-groups-list{grid-template-columns:repeat(2,minmax(0,1fr))}.hl-groups-empty{grid-column:1/-1}.hl-groups-hero{padding:36px}.hl-groups-body{padding:24px 30px}.hl-group-card-main{gap:11px}.hl-group-card-top{flex-wrap:wrap;gap:2px}.hl-group-card-top strong{flex-basis:100%}.hl-group-card-top time{position:absolute;right:15px;bottom:18px}.hl-group-card-hint{display:none}.hl-group-chat>header{padding-top:16px;padding-bottom:16px}}
@media(max-width:600px){.hl-groups-page{border-radius:20px;margin-top:4px}.hl-groups-hero{padding:25px 20px 21px}.hl-groups-hero h1{font-size:31px}.hl-groups-hero p{font-size:14px;margin-bottom:20px}.hl-groups-body{padding:18px 13px 22px}.hl-groups-list-heading h2{font-size:14px}.hl-group-card-main{padding:13px 11px;gap:11px}.hl-group-art{width:66px;height:80px}.hl-group-card-top strong{font-size:15px}.hl-group-card-top time{font-size:10px}.hl-group-preview{font-size:12px}.hl-group-card-meta{font-size:10px}.hl-group-card-hint{font-size:9px}.hl-group-card-bottom{gap:5px}.hl-group-chevron{width:9px}.hl-group-message{max-width:92%}.hl-group-chat>header{padding-left:7px;padding-right:10px}.hl-groups-tabs>button{font-size:13px}}
/* Keep the group list comfortably wide on phones, without changing other pages. */
@media(max-width:600px){.workspace:has(.hl-groups-page){padding-left:0;padding-right:0}main:has(.hl-groups-page){padding:12px 10px 24px}.hl-group-card-top{align-items:flex-start}.hl-group-card-top strong{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.hl-groups-hero{padding-top:22px}.hl-groups-hero h1{margin-top:9px}.hl-groups-hero p{margin-bottom:16px}.hl-groups-tabs{margin-bottom:18px}}
.hl-group-manage #hl-invite{padding:18px;border:1px solid var(--border);border-radius:16px;margin:20px 0 24px;background:color-mix(in srgb,var(--surface) 96%,var(--text))}.hl-group-manage #hl-invite h3{margin:0;font-size:17px}.hl-group-manage #hl-invite .field{margin:14px 0 8px}.hl-group-manage input[type=search]{background:var(--surface);font-size:16px;min-height:46px}.hl-group-invite-result{display:flex;gap:10px;align-items:center;width:100%;text-align:left;padding:10px 4px;min-height:60px;border:0;border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent);background:none;color:var(--text)}.hl-group-invite-result .hl-group-face{width:36px;height:36px;font-size:11px}.hl-group-invite-result>span:nth-child(2){flex:1;min-width:0}.hl-group-invite-result strong{font-size:14px;overflow-wrap:anywhere}.hl-group-invite-result small{display:block;font-size:11px;margin-top:3px;color:var(--muted)}.hl-group-invite-result>span:last-child{font-size:23px;color:var(--blue,var(--accent))}#hl-group-invite-status{font-size:13px;line-height:1.5;color:var(--muted);margin:12px 0 16px}.hl-group-current-members{font-size:16px}
.hl-group-card-actions{gap:8px;flex-wrap:wrap}
.hl-group-icon-picker{border:0;padding:0;margin:20px 0}.hl-group-icon-picker legend{font-size:14px;font-weight:700;margin-bottom:12px}.hl-group-icon-picker>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.hl-group-icon-picker label{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;min-width:0;text-align:center;padding:5px;border-radius:12px;border:2px solid transparent}.hl-group-icon-picker input{position:absolute;opacity:0;width:1px;height:1px}.hl-group-icon-picker label:has(input:checked){border-color:var(--blue,var(--accent));background:color-mix(in srgb,var(--text) 5%,var(--surface))}.hl-group-icon-picker label:has(input:focus-visible){outline:2px solid var(--blue,var(--accent));outline-offset:2px}.hl-group-icon-picker .hl-group-art{width:48px;height:48px;border-radius:10px}.hl-group-icon-picker small{font-size:10px;line-height:1.3;color:var(--text)}.hl-group-host-actions{border-top:1px solid var(--border);margin-top:24px;padding-top:20px;display:grid;gap:12px}.hl-group-host-actions h3{font-size:17px;margin:0 0 5px}.hl-group-host-actions button{width:100%;text-align:left}.hl-group-host-actions button:last-child{border-style:dashed}
.hl-group-icon-picker .hl-group-art{width:min(48px,100%);height:auto;aspect-ratio:1}@media(max-width:420px){.hl-group-icon-picker>div{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.hl-group-icon-picker label{padding:4px}}
