/* Social hub · uses HUP charcoal and the selected --accent. */
.hub-space,.hub-admin{display:grid;gap:14px;max-width:1100px;margin:0 auto}
.hub-heading h1{margin:0 0 6px;color:var(--accent-heading)}
.hub-heading p{margin:0;font-size:13px}
.hub-feedback:empty{display:none}
.hub-error{border-color:#ac626d;color:#f3dcdf}
.hub-empty{padding:24px;border:1px dashed #51525c;border-radius:13px;text-align:center}
.hub-list{display:grid;gap:9px}
.hub-alert{display:flex;gap:12px;align-items:center;padding:14px;border:1px solid #464750;
 border-radius:14px;background:#2a2b32}
.hub-alert.hub-unread{border-color:color-mix(in srgb,var(--accent) 65%,#494a51);
 background:color-mix(in srgb,var(--accent) 8%,#292a30)}
.hub-alert-symbol{font-size:24px;min-width:34px;text-align:center}
.hub-alert-copy{flex:1;min-width:0;display:grid;gap:5px}
.hub-alert-copy strong{font-size:14px;color:#f0eeeb}
.hub-alert-copy p{font-size:13px;line-height:1.4;margin:0;overflow-wrap:anywhere}
.hub-alert-copy small{font-size:11px}
.hub-alert-actions{display:flex;gap:6px;flex-wrap:wrap}
.hub-alert-actions button{font-size:12px;padding:9px 11px;white-space:nowrap}
.hub-counter{min-width:21px;height:21px;background:var(--accent);color:var(--accent-contrast);border-radius:999px;
 display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:11px;padding:0 5px}
/* Minimal notification affordance: thin icon, visually neutral until hover/focus. */
.hub-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;
 width:40px;height:40px;min-width:40px;min-height:40px;flex:0 0 40px;
 padding:7px!important;margin:0;background:transparent!important;
 border:0!important;border-radius:50%!important;box-shadow:none!important;
 color:#d6d4d6!important;font-weight:400!important}
.hub-bell .hub-bell-icon{width:21px;height:21px;display:block;pointer-events:none}
.hub-bell:hover{color:var(--accent-heading,#f0efec)!important;
 background:rgba(255,255,255,.055)!important}
.hub-bell:focus-visible{outline:2px solid var(--accent)!important;outline-offset:2px}
.hub-bell .hub-counter{position:absolute;right:1px;top:0;min-width:16px;height:16px;
 padding:0 3px;font-size:9px;font-weight:750;line-height:1;
 border:2px solid #191a1f;border-radius:999px;box-shadow:none}
.hub-bell .hub-counter[hidden]{display:none!important}
.hub-messaging{display:grid;grid-template-columns:minmax(225px,33%) minmax(0,1fr);
 gap:12px;min-height:450px}
.hub-contacts,.hub-chat{border:1px solid #494a53;background:#2a2b32;border-radius:15px;
 padding:13px;min-width:0}
.hub-contacts{display:flex;flex-direction:column;gap:7px}
.hub-contacts h2{font-size:17px;margin:2px 0 11px;color:var(--accent-heading)}
.hub-contact{display:flex;gap:8px;align-items:center;justify-content:space-between;
 background:#33343b!important;color:#f1eeeb!important;border:1px solid #4b4c55!important;
 border-radius:12px!important;padding:9px!important;text-align:left!important;min-width:0}
.hub-contact-active{border-color:var(--accent)!important;background:#3c3c45!important}
.hub-peer{display:flex;align-items:center;gap:9px;min-width:0}
.hub-peer .social-portrait{width:43px;height:43px;border-radius:11px}
.hub-peer-name{display:grid;gap:2px;min-width:0}
.hub-peer-name strong,.hub-peer-name small{overflow-wrap:anywhere}
.hub-peer-name small{font-size:11px;color:#bdbac1}
.hub-preview{font-size:11px;max-width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hub-chat{display:flex;flex-direction:column;gap:12px}
.hub-chat-head{border-bottom:1px solid #484a52;padding-bottom:10px}
.hub-messages{display:flex;flex-direction:column;gap:10px;overflow-y:auto;max-height:530px;min-height:170px;padding:3px}
.hub-bubble{border:1px solid #52535c;border-radius:14px;padding:10px 12px;max-width:min(85%,560px);
 background:#3a3b42;display:grid;gap:5px}
.hub-bubble p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45;font-size:14px}
.hub-bubble small{font-size:10px}
.hub-self{align-self:flex-end;background:color-mix(in srgb,var(--accent) 18%,#33343b);
 border-color:color-mix(in srgb,var(--accent) 36%,#45464d)}
.hub-other{align-self:flex-start}
.hub-report-button{background:transparent!important;border:0!important;color:#c9bcbf!important;
 padding:3px 0!important;font-size:11px!important;justify-self:start}
.hub-compose{display:grid;gap:9px;margin-top:auto}
.hub-compose textarea{width:100%;resize:vertical;background:#202127;border:1px solid #585962;
 border-radius:10px;color:#f4f0ed;padding:12px}
.hub-compose button{justify-self:end}
.hub-report-form{display:grid;gap:7px;margin-top:8px;background:#25262d;border:1px solid #64616b;padding:10px;border-radius:9px}
.hub-report-form input,.hub-report-form select,.hub-report-form textarea{width:100%;min-width:0}
.hub-report-form button{font-size:12px}
.hub-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.hub-metric{display:grid;gap:8px;padding:16px;border:1px solid #4a4b54;border-radius:14px;background:#2b2c33}
.hub-metric strong{font-size:30px;font-weight:800;color:var(--accent-heading)}
.hub-metric span{font-size:12px;color:#c7c3c7}
.hub-account-rows{display:grid;gap:7px}
.hub-account{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:11px;
 border:1px solid #4a4b53;border-radius:10px;background:#2b2c32;font-size:13px}
.hub-account .muted{font-size:11px}
.hub-report-card{display:grid;gap:8px;border:1px solid #59535d;border-radius:13px;padding:15px;background:#2b2b33}
.hub-report-card p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}
.hub-report-card button{justify-self:start}
.hub-announce-form{display:grid;gap:10px;padding:16px;border:1px solid #4d4e58;border-radius:13px}
.hub-announce-form input,.hub-announce-form textarea{width:100%;background:#202127;border:1px solid #585962;
 border-radius:10px;padding:11px;color:#f5f0ec}
.hub-announce-form button{justify-self:start}
.hub-pref-form{display:grid;gap:10px}
.hub-pref-item{display:flex;align-items:center;gap:10px;margin:0;padding:9px 0;font-size:14px}
.hub-pref-item input{width:auto;accent-color:var(--accent)}
.hub-pref-form button{justify-self:start}
@media(max-width:780px){.hub-messaging{grid-template-columns:1fr;gap:10px}
 .hub-contacts{max-height:260px;overflow-y:auto}.hub-chat{min-height:300px}
 .hub-alert{flex-wrap:wrap}.hub-alert-actions{width:100%;justify-content:flex-end}
 .hub-preview{max-width:150px}
}
@media(max-width:700px){.hub-bell{width:38px;height:40px;min-width:38px;flex-basis:38px;padding:6px!important}.hub-bubble{max-width:92%}}

/* Two-person beta usability: clear manual refresh, full announcement text. */
.hub-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:9px;flex-wrap:wrap}
.hub-toolbar button{font-size:12px;padding:8px 12px;min-height:38px}
.hub-toolbar button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.hub-alert-copy .hub-alert-actor{color:#c5c1c9;font-size:12px}
.hub-alert-copy p{white-space:pre-wrap;overflow-wrap:anywhere}

/* Reactions: one common set for conversations in all future scenes. */
.hub-message-reactions{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin-top:5px}
.hub-reaction{background:#32343c!important;border:1px solid #5d5d66!important;
 border-radius:999px!important;padding:4px 7px!important;font-size:12px!important;
 line-height:1.2!important;min-height:27px!important;color:#f0eae5!important}
.hub-reaction.is-mine{background:color-mix(in srgb,var(--accent) 25%,#35353d)!important;border-color:var(--accent)!important}
.hub-reaction-chooser{position:relative}
.hub-reaction-chooser summary{list-style:none;cursor:pointer;color:#c7c3c7;padding:4px 7px;font-size:12px}
.hub-reaction-chooser summary::-webkit-details-marker{display:none}
.hub-reaction-options{display:flex;flex-wrap:wrap;gap:3px;position:absolute;z-index:15;min-width:205px;
 left:0;top:100%;padding:6px;border-radius:11px;border:1px solid #656671;background:#292a32;box-shadow:0 9px 22px #0009}
.hub-chat-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.hub-peer-menu{position:relative}
.hub-peer-menu summary{cursor:pointer;list-style:none;border:1px solid #60616b;background:#35363f;
 color:#ece9e5;border-radius:9px;padding:7px 10px}
.hub-peer-menu summary::-webkit-details-marker{display:none}
.hub-peer-menu-options{display:grid;gap:4px;position:absolute;right:0;top:100%;z-index:10;
 background:#282932;border:1px solid #666771;border-radius:10px;padding:7px;min-width:190px;box-shadow:0 8px 23px #0008}
.hub-peer-menu-options button{white-space:nowrap;text-align:left!important;background:transparent!important;font-size:12px!important}
.hub-warning-notices{display:grid;gap:8px;border:1px solid #907969;padding:14px;border-radius:12px}
.hub-warning-notices h2{font-size:17px;margin:0;color:var(--accent-heading)}
.hub-resident-card{display:grid;gap:9px;background:#2b2c33;border:1px solid #4b4b54;
 border-radius:12px;padding:13px}
.hub-resident-meta{display:grid;gap:4px}
.hub-resident-actions{display:flex;flex-wrap:wrap;gap:6px}
.hub-resident-actions button{min-height:36px!important;font-size:12px!important;padding:7px 11px!important}
.hub-resident-search{width:100%;border:1px solid #595b65;border-radius:10px;background:#202127;color:#eee;padding:10px}
.hub-resident-card[hidden]{display:none}
.hub-moderation-form{display:grid;gap:9px;padding:12px;background:#202127;border-radius:11px}
.hub-moderation-form textarea,.hub-moderation-form select{width:100%;min-width:0;background:#252730;
 border:1px solid #575962;border-radius:8px;padding:9px;color:#f3eeea}
.hub-moderation-form button{justify-self:start}
.hub-warning-history{padding:11px;border-radius:10px;border:1px solid #595862}
.hub-warning-history p{font-size:12px;white-space:pre-wrap;margin:7px 0}
/* Small dock can live over the portal shell without unmounting games or the music player. */
.hub-dock{position:fixed;
 right:var(--hup-floating-right,max(14px,env(safe-area-inset-right)));
 bottom:calc(var(--hup-floating-bottom,max(14px,env(safe-area-inset-bottom))) +
             var(--hup-floating-size,48px) + var(--hup-floating-gap,12px));
 z-index:75;display:grid;justify-items:end;gap:8px;pointer-events:none}
.hub-dock-no-music .hub-dock{
 bottom:var(--hup-floating-bottom,max(14px,env(safe-area-inset-bottom)));
}
.hub-dock>*{pointer-events:auto}
.hub-dock button.hub-dock-toggle{
 display:grid!important;place-items:center!important;
 width:var(--hup-floating-size,48px)!important;height:var(--hup-floating-size,48px)!important;
 min-width:var(--hup-floating-size,48px)!important;min-height:var(--hup-floating-size,48px)!important;
 padding:0!important;border-radius:50%!important;
 border:1px solid color-mix(in srgb,var(--accent) 36%,#54565d)!important;
 background:rgba(38,39,47,.75)!important;
 backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
 color:var(--accent)!important;
 box-shadow:0 8px 26px #0007,inset 0 1px #ffffff10!important;
 transition:border-color .18s,background .18s,transform .18s;
}
.hub-dock button.hub-dock-toggle:hover{border-color:var(--accent)!important;
 background:color-mix(in srgb,var(--accent) 11%,#292a31)!important}
.hub-dock button.hub-dock-toggle:focus-visible{outline:2px solid var(--accent)!important;outline-offset:3px}
.hub-dock-envelope{display:block;width:25px;height:25px;color:var(--accent);pointer-events:none}
.hub-dock-panel{width:min(420px,calc(100vw - 20px));max-height:75vh;overflow:auto;
 border:1px solid #5b5d66;border-radius:17px;background:#25262d;padding:10px;box-shadow:0 15px 40px #000c}
.hub-dock-panel[hidden]{display:none}
.hub-dock-head{display:flex;gap:6px;align-items:center;justify-content:space-between;padding:5px 5px 11px}
.hub-dock-head strong{color:var(--accent-heading);flex:1}
.hub-dock-head button{font-size:11px!important;padding:6px!important;min-height:30px!important}
.hub-dock-content .hub-space{gap:8px}
.hub-dock-content .hub-heading{display:none}
.hub-dock-content .hub-messaging{grid-template-columns:1fr;gap:8px;min-height:0}
.hub-dock-content .hub-toolbar{display:none}
.hub-dock-content .hub-contacts{max-height:132px;overflow-y:auto}
.hub-dock-content .hub-contacts h2{font-size:13px;margin:0}
.hub-dock-content .hub-chat{min-height:0;padding:9px}
.hub-dock-content .hub-messages{max-height:230px;min-height:115px}
.hub-dock-content .hub-bubble{max-width:95%}
.hub-dock-content .hub-compose textarea{min-height:53px;rows:2}
@media(max-width:600px){.hub-dock-panel{max-height:70vh}}
