/* FriendHub V14 - silly but accessible, scoped to staging */
.fh14-board-open,#fh14-open-wardrobe {border:1px solid #7999dd;background:#234879;color:#e9f4ff;border-radius:12px;padding:9px 14px;cursor:pointer;font:inherit}
.fh14-board-open:hover,#fh14-open-wardrobe:hover {background:#3c63a1;transform:translateY(-1px)}
.fh14-board-open:disabled {opacity:.45;cursor:not-allowed;transform:none}
.fh14-dialog {width:min(700px,calc(100vw - 30px));max-height:calc(100dvh - 40px);overflow:auto;box-sizing:border-box;background:linear-gradient(145deg,#1b2d4c,#101b2e);color:#f0f5ff;border:1px solid #6387b7;border-radius:24px;padding:23px;box-shadow:0 24px 80px #000a;}
.fh14-dialog::backdrop {background:#020712aa;backdrop-filter:blur(5px)}
.fh14-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px}
.fh14-dialog-head h2 {font-size:23px;margin:0}
.fh14-dialog-head button {flex:none;background:#314c70;color:white;border:1px solid #6489b7;border-radius:10px;padding:7px 12px;cursor:pointer}
.fh14-dialog>p {color:#c1d0e9;font-size:13px;line-height:1.5}
.fh14-board-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:18px 0}
.fh14-board-tile {min-width:0;display:flex;flex-direction:column;gap:10px;align-items:center;text-align:center;border:2px solid #496b9b;border-radius:17px;padding:10px;background:#172845;color:#e9f5ff;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}
.fh14-board-tile img {width:100%;height:130px;object-fit:cover;border-radius:11px;display:block}
.fh14-board-tile span{font-size:12px;font-weight:700;overflow-wrap:anywhere}
.fh14-board-tile:hover{transform:translateY(-7px) rotate(-2deg);border-color:#8fbbff;box-shadow:0 13px 22px #0a102a99}
.fh14-board-tile:active{transform:translateY(3px) scale(.96)}
.fh14-checkbox{display:flex;align-items:center;gap:10px;color:#c6d7f2;font-size:13px}
.fh14-checkbox input{width:18px;height:18px;accent-color:#85b5ff}
/* Scale the silly voice avatars according to live audio RMS; retain V9 lift-then-wiggle / smooth landing. */
body:not(.fh29-v9-no-silly) .fh29-v6-person.fh29-v7-speaking .fh29-v8-pfp-wrap,
body:not(.fh29-v9-no-silly) .fh29-v7-call-person.fh29-v7-speaking .fh29-v8-pfp-wrap{
  animation:fh14-voice-rise .85s cubic-bezier(.16,.85,.3,1.3) both,
            fh14-voice-wiggle .17s ease-in-out .85s infinite alternate!important;
  filter:drop-shadow(0 0 var(--fh14-glow,20px) rgba(94,240,176,.7));
}
@keyframes fh14-voice-rise {from{transform:translateY(0) scale(1)}to{transform:translateY(calc(-1 * var(--fh14-bounce,16px))) scale(1.07)}}
@keyframes fh14-voice-wiggle {from{transform:translateY(calc(-1 * var(--fh14-bounce,16px))) translateX(-2px) rotate(calc(-1 * var(--fh14-rotate,3deg))) scale(1.07)}to{transform:translateY(calc(-1 * var(--fh14-bounce,16px))) translateX(2px) rotate(var(--fh14-rotate,3deg)) scale(1.07)}}
body:not(.fh29-v9-no-silly) .fh29-v6-person.fh29-v9-settling .fh29-v8-pfp-wrap,
body:not(.fh29-v9-no-silly) .fh29-v7-call-person.fh29-v9-settling .fh29-v8-pfp-wrap{
  animation:fh14-voice-land .78s cubic-bezier(.22,.81,.24,1) both!important;
}
@keyframes fh14-voice-land {from{transform:translateY(calc(-1 * var(--fh14-bounce,16px))) rotate(1deg) scale(1.07)}to{transform:translateY(0) rotate(0) scale(1)}}
#fh29-v7-call-overlay.fh14-ringing .fh29-v7-call-person .fh29-v8-pfp-wrap {animation:fh14-phone-hop 1.25s ease-in-out infinite!important}
@keyframes fh14-phone-hop {0%,100%{transform:translateY(0) rotate(0)}24%{transform:translateY(-12px) rotate(-4deg)}47%{transform:translateY(-4px) rotate(5deg)}70%{transform:translateY(-10px) rotate(-3deg)}}
#fh29-v7-call-overlay.fh14-ringing .fh29-v9-call-bar {border-bottom:2px solid #7db2ff}
.fh29-v9-volume-menu:after{content:'Boosts above 100% may distort. Protect your ears.';font-size:11px;line-height:1.4;color:#ffd1a0}
.fh14-censor-settings{border:1px solid var(--line,#426287);border-radius:15px;background:var(--panel,#16233a);padding:17px;margin:20px 0;display:grid;gap:9px}
.fh14-censor-settings h3,.fh14-censor-settings p{margin:0}
.fh14-censor-settings textarea{width:100%;min-width:0;max-width:100%;box-sizing:border-box;padding:11px;background:var(--panel2,#0e1b30);border:1px solid var(--line,#456389);color:var(--text,#eef6ff);border-radius:10px}
.fh14-censor-settings button{justify-self:start;border-radius:10px;padding:9px 13px;border:1px solid #6a9ade;background:#3468ac;color:#fff}
.fh14-profile-menu{position:fixed;z-index:2147483500;background:#1a2e4f;border:1px solid #749ed5;border-radius:12px;padding:5px;box-shadow:0 15px 30px #0009;max-width:235px}
.fh14-profile-menu.hidden{display:none!important}
.fh14-profile-menu button{width:100%;text-align:left;padding:10px;border:0;background:transparent;color:#ecf5ff;font:inherit;border-radius:8px;cursor:pointer}
.fh14-profile-menu button:hover{background:#365582}
#profile-card .banner,#profile-card .profile-top img.avatar{cursor:context-menu}
.fh14-wardrobe-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px;margin-top:16px}
.fh14-wardrobe-tile{min-width:0;display:flex;flex-direction:column;gap:7px;padding:10px;background:#172947;border:1px solid #456998;border-radius:14px}
.fh14-wardrobe-tile.is-worn{outline:2px solid #6fe1aa;outline-offset:-2px}
.fh14-wardrobe-tile img{width:100%;height:110px;object-fit:contain;border-radius:9px;background:#0d1b30}
.fh14-wardrobe-tile strong{font-size:14px}
.fh14-wardrobe-tile small{font-size:12px;color:#adc2e4}
.fh14-wardrobe-tile button{margin-top:auto;padding:9px;background:#315c9b;border:1px solid #5581b6;color:#fff;border-radius:9px;cursor:pointer}
.fh14-wardrobe-tile.is-worn button{background:#63374b;border-color:#a16c83}
@media (max-width:700px){.fh14-board-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fh14-dialog{padding:14px}.fh14-board-tile img{height:120px}}
@media (prefers-reduced-motion:reduce){.fh14-board-tile,.fh29-v8-pfp-wrap,.fh14-board-open{animation:none!important;transition:none!important;transform:none!important}}
/* Cleaner, sillier incoming/outgoing call screen without changing V9 call control behavior. */
#fh29-v7-call-overlay .fh29-v7-call-panel.fh29-v9-call-redesign {
  background:linear-gradient(150deg,#1d3458 0%,#0f1c31 60%,#101b30 100%);
  border:1px solid #608bd0;box-shadow:0 25px 90px #02050dcc;
}
#fh29-v7-call-overlay .fh29-v9-call-bar {
  background:linear-gradient(95deg,#234974,#162944);
}
#fh29-v7-call-overlay .fh29-v9-call-layout .fh29-v9-stage {
  background:radial-gradient(circle at 50% 24%,#304f8799 0%,#172944 52%,#101e33 100%);
}
#fh29-v7-call-overlay .fh29-v7-call-status,
#fh29-v7-call-overlay #fh29-v7-call-status {
  padding:8px 15px;border-radius:999px;border:1px solid #648bbf;background:#1c3e65;color:#e6f4ff;
  font-weight:700;text-align:center;
}
#fh29-v7-call-overlay.fh14-ringing #fh29-v7-call-status {
  background:linear-gradient(100deg,#2e659c,#3d65a3);color:#fff;
  box-shadow:0 0 0 0 #6aa9ff55;animation:fh14-ring-pulse 1.5s ease-out infinite;
}
@keyframes fh14-ring-pulse {0%{box-shadow:0 0 0 0 #6aa9ff80}70%{box-shadow:0 0 0 15px #6aa9ff00}100%{box-shadow:0 0 0 0 #6aa9ff00}}
#fh29-v7-call-overlay .fh29-v9-call-top-actions button:hover {background:#385c8d;border-color:#98c1ff}
@media (prefers-reduced-motion:reduce){#fh29-v7-call-overlay.fh14-ringing #fh29-v7-call-status{animation:none!important}}


/* V15 replaces every older wiggling/hopping animation with one smooth lift. */
.fh29-v6-person .fh29-v8-pfp-wrap,
.fh29-v7-call-person .fh29-v8-pfp-wrap,
.fh29-v8-mini-person{
 animation:none!important;
 transform:translate3d(0,calc(-1 * var(--fh15-lift,0px)),0)!important;
 transition:transform .14s linear!important;
}
.fh15-file-row{display:grid;gap:7px;margin:13px 0}
.fh15-file-row input{max-width:100%}
@media(prefers-reduced-motion:reduce){
.fh29-v6-person .fh29-v8-pfp-wrap,.fh29-v7-call-person .fh29-v8-pfp-wrap,.fh29-v8-mini-person{transform:none!important;transition:none!important}}


.fh15-call-setting button{background:#365d87;color:#fff;border:1px solid #7e9fc5;border-radius:9px;padding:8px}#fh29-v7-call-overlay .fh29-v9-stage:before{content:'☎ EXTREMELY IMPORTANT PHONE CALL';font-size:11px;letter-spacing:.12em;font-weight:bold;color:#a5cdfc}

/* V16: single smooth, composited vertical offset. */
.fh29-v6-person .fh29-v8-pfp-wrap,.fh29-v7-call-person .fh29-v8-pfp-wrap,.fh29-v8-mini-person{
 animation:none!important;transition:none!important;filter:none!important;
 transform:translate3d(0,calc(-1 * var(--fh15-lift,0px)),0)!important;backface-visibility:hidden;
}
.fh16-trimmer{display:grid;gap:12px;margin:14px 0}
.fh16-trimmer label{display:grid;grid-template-columns:50px minmax(70px,1fr) 55px;align-items:center;gap:10px}
.fh16-trimmer input[type=range]{width:100%}.fh16-trim-buttons{display:flex;gap:9px;flex-wrap:wrap}
.fh16-trim-buttons button{border-radius:10px;padding:9px;background:#355d91;color:white;border:1px solid #7c9bc1}
.fh16-trim-buttons button:disabled{opacity:.5}
/* V16 high-specificity removal of V8/V9/V14 speaking and settling keyframes. */
html body:not(.fh29-v9-no-silly) .fh29-v6-person.fh29-v7-speaking .fh29-v8-pfp-wrap,
html body:not(.fh29-v9-no-silly) .fh29-v7-call-person.fh29-v7-speaking .fh29-v8-pfp-wrap,
html body:not(.fh29-v9-no-silly) .fh29-v6-person.fh29-v9-settling .fh29-v8-pfp-wrap,
html body:not(.fh29-v9-no-silly) .fh29-v7-call-person.fh29-v9-settling .fh29-v8-pfp-wrap,
html body #fh29-v7-call-overlay.fh14-ringing .fh29-v7-call-person .fh29-v8-pfp-wrap,
html body .fh29-v8-mini-person.fh29-v8-talking{
  animation:none!important;filter:none!important;transition:none!important;
  transform:translate3d(0,calc(-1 * var(--fh15-lift,0px)),0)!important;
}

/* V18: voice settings must truly disable avatar movement. */
html body.fh29-v9-no-silly .fh29-v6-person .fh29-v8-pfp-wrap,
html body.fh29-v9-no-silly .fh29-v7-call-person .fh29-v8-pfp-wrap,
html body.fh29-v9-no-silly .fh29-v8-mini-person,
html body.fh29-v9-no-silly .fh29-v6-person.fh29-v7-speaking .fh29-v8-pfp-wrap,
html body.fh29-v9-no-silly .fh29-v7-call-person.fh29-v7-speaking .fh29-v8-pfp-wrap{transform:none!important;animation:none!important;transition:none!important;}


/* V19 live subtitles: modest motion; anchored below the respective member. */
.fh19-caption{display:block;width:100%;max-width:290px;min-height:0;text-align:center;
 font-size:12px;line-height:1.45;font-weight:600;letter-spacing:.01em;
 color:#eaf7ff;background:rgba(15,30,52,.88);
 border-radius:9px;padding:0 9px;box-sizing:border-box;
 opacity:0;transform:translateY(4px);transition:opacity .2s ease,transform .22s ease,padding .2s ease;
 overflow-wrap:anywhere;pointer-events:none;}
.fh19-caption-active{opacity:1;transform:translateY(0);padding:6px 9px;border:1px solid rgba(113,181,236,.42);}
.fh19-caption-control{display:flex!important;align-items:center;flex-wrap:wrap;gap:6px;
 padding:8px 10px;border-radius:9px;border:1px solid #436f94;background:#163149;
 color:#e4f1ff;font-size:12px;}
.fh19-caption-control input{accent-color:#78c0ff;}
.fh19-caption-control small{display:block;width:100%;font-size:10px;color:#a8c9e6;}
.fh12-person .fh19-caption{flex-basis:100%;width:100%;max-width:100%;}
.fh12-person:has(> .fh19-caption-active){flex-wrap:wrap;}
@media(prefers-reduced-motion:reduce){.fh19-caption{transition:none!important;transform:none!important;}}


/* V20: stateful voice avatar picture sets */
.fh20-editor{border-top:1px solid #496988;margin:18px 0;padding-top:14px}
.fh20-editor h3{font-size:16px;margin:0 0 8px}
.fh20-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.fh20-state{border:1px solid #40638a;border-radius:13px;background:#122743;padding:12px;min-width:0}
.fh20-state h4{margin:0 0 9px;font-size:13px}
.fh20-state input[type=file]{width:100%;max-width:100%;font-size:11px}
.fh20-thumbnails{display:flex;gap:7px;flex-wrap:wrap;min-height:49px;margin-bottom:9px}
.fh20-tile{position:relative;width:45px;height:45px;flex:none}
.fh20-tile img{width:100%;height:100%;object-fit:cover;border-radius:8px;border:1px solid #52759b}
.fh20-tile button{position:absolute;right:-6px;top:-7px;background:#8b334c;color:white;border:1px solid #b25e70;border-radius:50%;width:20px;height:20px;font-weight:bold;cursor:pointer;padding:0}
.fh20-thumbnails small{align-self:center;color:#adc7e6;font-size:10px}
.fh29-v8-pfp-wrap,.fh12-avatar{position:relative}
.fh20-avatar{position:absolute;inset:0;z-index:3;width:100%;height:100%;border-radius:inherit;object-fit:cover;pointer-events:none}
.fh20-avatar[hidden]{display:none!important}
#fh20-avatar-message{font-size:12px;line-height:1.45;color:#c3dcf7}
@media(max-width:520px){.fh20-editor-grid{grid-template-columns:1fr}}

/* V21: new spoken words pop gently into live caption bubbles */
.fh21-word{display:inline;white-space:pre-wrap;transform-origin:50% 85%}
.fh21-word-pop{display:inline-block;animation:fh21-word-plop .27s cubic-bezier(.2,1.5,.4,1) both}
.fh19-caption.fh21-interim{border-color:rgba(139,190,236,.3);color:#dceeff}
@keyframes fh21-word-plop{
  0%{opacity:0;transform:translateY(7px) scale(.72)}
  60%{opacity:1;transform:translateY(-2px) scale(1.1)}
  100%{opacity:1;transform:translateY(0) scale(1)}
}
@media(prefers-reduced-motion:reduce){
  .fh21-word-pop{animation:none!important;display:inline}
}

/* V24: contextual, selective subtitle emphasis. Never style entire lines as shouting. */
.fh19-caption{max-width:min(360px,95%);overflow-wrap:anywhere;line-height:1.65}
.fh24-word{display:inline;overflow-wrap:anywhere;color:inherit;font-weight:inherit}
.fh24-impact,.fh24-shock{color:#fff1be;font-weight:850}
.fh24-question{color:#afd6ff;font-weight:750}
.fh24-fear{color:#ffd1bb;font-weight:850}
.fh24-soft{font-size:.92em;font-style:italic;opacity:.78;letter-spacing:.025em}
.fh24-warm{color:#ffd4ec;font-weight:750}
.fh24-swear{color:#35202a!important;background:#ffc983;border-radius:4px;padding:1px 3px;
  font-weight:900;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.fh24-strong{font-size:1.2em;font-weight:950;letter-spacing:.025em}
.fh24-intense{border-color:rgba(235,165,92,.55)!important}
.fh24-impact.fh21-word-pop,.fh24-shock.fh21-word-pop,.fh24-fear.fh21-word-pop,
.fh24-swear.fh21-word-pop{display:inline-block;animation:fh24-focus-pop .29s cubic-bezier(.18,1.4,.35,1) both}
@keyframes fh24-focus-pop{
  0%{opacity:.2;transform:translateY(6px) scale(.8)}
  65%{opacity:1;transform:translateY(-2px) scale(1.09)}
  100%{opacity:1;transform:translateY(0) scale(1)}
}
@media(prefers-reduced-motion:reduce){
  .fh24-word.fh21-word-pop{animation:none!important;display:inline}
}

/* V25: six-word rolling captions and gentle sound-effect labels. */
.fh19-caption .fh24-swear{color:inherit!important;background:transparent;font-weight:inherit;padding:0;letter-spacing:inherit}
.fh19-caption.fh24-intense .fh24-swear{color:#35202a!important;background:#ffc983;font-weight:900;padding:1px 3px}
.fh19-caption .fh24-sound{color:#b8d9f0;font-size:.95em;font-style:italic;font-weight:650;letter-spacing:.018em}
.fh25-sound-picker{max-width:100%;min-width:120px;border:1px solid #527ba0;border-radius:9px;background:#183452;color:#eff7ff;padding:7px;margin:6px 0}
@media(prefers-reduced-motion:reduce){.fh19-caption .fh24-sound.fh21-word-pop{animation:none!important}}

/* Highlight swears only when the speaker is audibly loud, not for normal speech. */
.fh19-caption.fh25-loud .fh24-swear{color:#35202a!important;background:#ffc983;font-weight:900;padding:1px 3px}

/* V26: stable subtitle viewport; individual words shift smoothly to the left. */
.fh19-caption.fh26-caption{
  width:min(350px,100%);
  max-width:100%;
  overflow:hidden;
  box-sizing:border-box;
  text-align:left;
  contain:layout;
}
.fh26-track{
  display:flex;
  flex-direction:row;
  align-items:baseline;
  justify-content:flex-end;
  gap:5px;
  white-space:nowrap;
  width:100%;
  min-width:0;
  min-height:1.5em;
  overflow:hidden;
}
.fh26-track .fh26-word{
  flex:0 0 auto;
  white-space:nowrap;
  will-change:transform;
}
.fh26-track .fh21-word-pop{animation-duration:.27s}
@media(prefers-reduced-motion:reduce){
  .fh26-track .fh26-word{will-change:auto}
  .fh26-track .fh21-word-pop{animation:none!important;transform:none!important}
}

/* V27: one clean groups directory and single navigation rail */
#view-groups>.section-head{margin-bottom:12px}
#view-groups .fh27-explorer{border-radius:21px;padding:clamp(18px,3vw,30px);
 background:linear-gradient(115deg,color-mix(in srgb,var(--accent) 17%,var(--panel)),var(--panel));
 border:1px solid var(--line);margin-bottom:18px}
#view-groups .fh27-explorer-top{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}
#view-groups .fh27-eyebrow{letter-spacing:.16em;font-size:10px;font-weight:800;color:var(--accent)}
#view-groups .fh27-explorer h2{font-size:clamp(23px,3.6vw,36px);margin:6px 0}
#view-groups .fh27-explorer p{margin:4px 0;color:var(--muted);line-height:1.55}
#view-groups .fh27-overview-metrics{display:flex;gap:12px;flex-wrap:wrap}
#view-groups .fh27-metric{display:grid;gap:3px;min-width:70px;padding:12px 15px;border:1px solid var(--line);border-radius:13px;background:var(--panel2)}
#view-groups .fh27-metric strong{font-size:24px}
#view-groups .fh27-metric span{font-size:11px;color:var(--muted)}
#view-groups .groups-layout{display:flex!important;flex-direction:column!important;gap:18px!important}
#view-groups .groups-layout>aside.panel{width:100%!important;max-width:none!important;flex:none!important;border-radius:20px!important;padding:clamp(13px,2.3vw,23px)!important}
#view-groups .fh27-browser-controls{display:grid;gap:12px;margin-bottom:18px}
#view-groups .fh27-search{min-height:46px;width:100%;border:1px solid var(--line);background:var(--panel2);border-radius:13px;padding:12px 15px;color:var(--text)}
#view-groups .fh27-filters{display:flex;flex-wrap:wrap;gap:8px}
#view-groups .fh27-filter{padding:9px 15px;border-radius:999px;min-height:39px}
#view-groups .fh27-filter.active{border-color:var(--accent)!important;background:color-mix(in srgb,var(--accent) 20%,var(--panel2));font-weight:750}
#view-groups #group-list{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,255px),1fr))!important;gap:14px!important}
#view-groups #group-list>.group-choice{min-width:0;min-height:205px;position:relative;display:flex!important;flex-direction:column;text-align:left;border:1px solid var(--line);
 border-radius:16px;padding:12px!important;background:var(--panel2);overflow:hidden;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}
#view-groups #group-list>.group-choice[hidden]{display:none!important}
#view-groups #group-list>.group-choice:hover{transform:translateY(-2px);border-color:var(--accent);box-shadow:0 10px 26px #0002}
#view-groups #group-list>.group-choice.selected{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
#view-groups .group-choice .fh29-v3-cover{height:100px!important;width:100%;border-radius:11px;overflow:hidden;margin:0 0 11px!important}
#view-groups .group-choice strong{font-size:17px!important}
#view-groups .group-choice small{line-height:1.4}
#view-groups .fh27-card-status{display:inline-flex;margin-top:auto;align-self:flex-start;font-size:11px;border-radius:999px;border:1px solid var(--line);padding:4px 9px;color:var(--muted)}
#view-groups .fh27-owned .fh27-card-status{color:var(--accent)}
#view-groups .fh27-browser-empty{padding:20px;color:var(--muted);text-align:center;border:1px dashed var(--line);border-radius:12px}
#view-groups .fh27-browser-empty[hidden]{display:none}
#view-groups .fh27-detail-nav{display:flex;justify-content:flex-start;margin-bottom:16px}
#view-groups .fh27-back{border:1px solid var(--line);border-radius:10px;padding:8px 12px;background:var(--panel2)}
#view-groups .fh27-navigation{display:flex!important;gap:7px!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:thin;padding:10px 0!important;position:sticky;top:0;z-index:5;
 background:var(--panel);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
#view-groups .fh27-navigation>button{white-space:nowrap;flex:none;min-height:41px;border-radius:10px!important;padding:9px 14px!important}
#view-groups #fh27-manage-tab{margin-left:auto}
#view-groups #fh27-manage-tab[hidden]{display:none!important}
#view-groups.fh27-manage-active #group-posts-area,#view-groups.fh27-manage-active #group-chat-area,
#view-groups.fh27-manage-active #fh81-polls,#view-groups.fh27-manage-active #fh29-v6-panel,
#view-groups.fh27-manage-active #fh29-g5-panel,#view-groups.fh27-manage-active #fh29-g4-panel,
#view-groups.fh27-manage-active #fh29-v12-stage{display:none!important}
#view-groups .fh27-manage-page[hidden]{display:none!important}
#view-groups .fh27-manage-page{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:12px}
#view-groups .fh27-manage-heading{grid-column:1/-1}
#view-groups .fh27-manage-heading h2{margin:0 0 4px}
#view-groups .fh27-manage-heading p{margin:0;color:var(--muted);font-size:13px}
#view-groups .fh27-manage-card{padding:20px;border:1px solid var(--line);border-radius:17px;background:var(--panel);display:flex;flex-direction:column;gap:12px;min-width:0}
#view-groups .fh27-manage-card h3{margin:0;font-size:18px}
#view-groups .fh27-card-desc{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
#view-groups .fh27-field{display:grid;gap:7px;font-size:13px;font-weight:600}
#view-groups .fh27-field :is(input,textarea,select){max-width:100%;box-sizing:border-box;min-width:0}
#view-groups .fh27-manage-card>button{align-self:flex-start}
#view-groups .fh27-status{grid-column:1/-1;min-height:24px;color:var(--accent)}
#view-groups .fh27-error{color:#f7a6a6}
#view-groups .fh27-search-replaced #fh267-group-search,.fh27-legacy-search{display:none!important}
@media(max-width:760px){
 #view-groups .fh27-manage-page{grid-template-columns:1fr}
 #view-groups .fh27-explorer-top{align-items:flex-start}
 #view-groups #group-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr))!important}
 #view-groups .fh27-navigation{top:0}
}
@media(max-width:490px){
 #view-groups #group-list{grid-template-columns:1fr!important}
 #view-groups .fh27-overview-metrics{gap:6px}
 #view-groups .fh27-metric{min-width:60px;padding:9px}
}
@media(prefers-reduced-motion:reduce){#view-groups .group-choice{transition:none!important;transform:none!important}}

/* Always respect owner-only hidden states, overriding legacy flex rules. */
#view-groups #group-owner-settings[hidden],#view-groups #fh8-group-tools[hidden],#view-groups .group-tabs>button[hidden]{display:none!important}
/* V27: clear browser-to-community transition instead of displaying two full screens at once. */
#view-groups.fh27-in-group .fh27-explorer,
#view-groups.fh27-in-group .groups-layout > aside.panel,
#view-groups.fh27-in-group #group-empty{display:none!important}
#view-groups.fh27-manage-active #group-detail > :not(:first-child):not(#fh27-manage-page){display:none!important}

/* V28: owner-selected, persisted group gradients. Respect existing banners and their opacity. */
#view-groups .group-choice.fh28-gradient{
  background:linear-gradient(var(--fh28-direction,125deg),
    color-mix(in srgb,var(--fh28-color-a) 23%,var(--panel2)),
    color-mix(in srgb,var(--fh28-color-b) 23%,var(--panel2)))!important;
  border-color:color-mix(in srgb,var(--fh28-color-a) 45%,var(--line))!important;
}
#view-groups .group-choice.fh28-gradient>.fh29-v3-cover{
  background:linear-gradient(var(--fh28-direction,125deg),var(--fh28-color-a),var(--fh28-color-b))!important;
}
#view-groups .group-choice.fh28-gradient>.fh29-v3-cover::after{
  background:linear-gradient(var(--fh28-direction,125deg),
    color-mix(in srgb,var(--fh28-color-a) 65%,transparent),
    color-mix(in srgb,var(--fh28-color-b) 68%,transparent))!important;
}
#view-groups #group-detail>.panel:first-child.fh28-gradient{
  background:linear-gradient(var(--fh28-direction,125deg),
    color-mix(in srgb,var(--fh28-color-a) 18%,var(--panel)),
    color-mix(in srgb,var(--fh28-color-b) 20%,var(--panel)))!important;
  border-color:color-mix(in srgb,var(--fh28-color-a) 45%,var(--line))!important;
}
#view-groups .fh28-gradient-preview{
  display:flex;flex-direction:column;justify-content:center;gap:5px;
  min-height:95px;padding:15px;border-radius:12px;color:white;
  text-shadow:0 1px 5px #000a;transition:background-image .2s ease,opacity .2s ease;
  border:1px solid #fff4;
}
#view-groups .fh28-gradient-preview strong{font-size:19px}
#view-groups .fh28-gradient-preview small{font-size:12px;color:#fff}
#view-groups .fh28-enabled{display:flex;gap:9px;align-items:center;font-size:13px}
#view-groups .fh28-enabled input{width:auto}
#view-groups .fh28-color-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#view-groups .fh28-color-grid input[type=color]{height:45px;padding:3px;width:100%}
#view-groups .fh28-presets{display:flex;flex-wrap:wrap;gap:7px}
#view-groups .fh28-preset{border-radius:999px;padding:7px 11px;font-size:12px}
#view-groups .fh28-preset:hover{border-color:var(--accent)}
#view-groups .fh27-manage-card input[type=range]{width:100%;accent-color:var(--accent)}

/* V29 group tags, readable full-width posts and discussion modal */
#view-groups #group-posts-area,#view-groups #fh81-polls,#view-groups #group-chat-area{
  max-width:1320px!important;width:100%!important;
}
#view-groups #group-post-list{display:grid;gap:16px;min-width:0}
#view-groups #group-post-list .group-post{
  width:100%;box-sizing:border-box;margin:0!important;padding:clamp(20px,2.5vw,34px)!important;
  border-radius:18px!important;transition:border-color .18s ease,background .18s ease;
}
#view-groups .group-post h2{font-size:clamp(20px,2.2vw,26px);cursor:pointer}
#view-groups .group-post .fh29-expand-summary{display:-webkit-box;-webkit-box-orient:vertical;
  -webkit-line-clamp:3;overflow:hidden;white-space:pre-wrap;line-height:1.65}
#view-groups .group-post .fh29-expand-post{margin:8px 0 13px;padding:8px 14px;border-radius:9px;
  border:1px solid var(--line);background:var(--panel2);font-weight:700;cursor:pointer}
#view-groups .group-post:hover{border-color:color-mix(in srgb,var(--accent) 60%,var(--line))!important}
#view-groups .fh81-poll{padding:clamp(20px,2.5vw,32px)!important}
#view-groups .fh81-poll h3{font-size:22px;line-height:1.35}
#view-groups .fh29-tag-studio{grid-column:1/-1}
#view-groups .fh29-tag-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px}
#view-groups .fh29-tag-entry{display:grid;align-content:start;gap:10px;padding:13px;background:var(--panel2);
 border:1px solid var(--line);border-radius:12px;min-width:0}
#view-groups .fh29-tag-entry small{color:var(--muted)}
#view-groups .fh29-tag-actions{display:flex;flex-wrap:wrap;gap:6px}
#view-groups .fh29-tag-actions button,#view-groups .fh29-tag-actions select{min-width:0;padding:8px;border-radius:9px}
#view-groups .fh29-tag-actions select{max-width:210px}
#view-groups .fh29-tag-form{display:grid;gap:14px;border-top:1px solid var(--line);padding-top:17px}
#view-groups .fh29-tag-colors{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
#view-groups .fh29-tag-colors input{height:46px;min-width:0;width:100%;padding:4px}
#view-groups .fh29-tag-permission{display:flex;gap:10px;align-items:center;font-size:13px}
#view-groups .fh29-tag-permission input{width:auto}
#view-groups .fh29-tag-preview{display:flex;align-items:center;padding:20px;min-height:85px;
  background:var(--panel2);border-radius:11px;border:1px solid var(--line)}
.fh29-custom-tag{display:inline-flex;max-width:100%;align-items:center;padding:6px 13px;line-height:1.2;
 font-weight:850;font-size:12px;color:#fff;overflow-wrap:anywhere;text-shadow:0 1px 3px #0008;
 background:linear-gradient(var(--tag-angle,125deg),var(--tag-a,#9270ed),var(--tag-b,#39b5cc))}
.fh29-custom-tag[data-shape="pill"]{border-radius:999px}
.fh29-custom-tag[data-shape="rounded"]{border-radius:9px}
.fh29-custom-tag[data-shape="square"]{border-radius:2px}
.fh29-custom-tag[data-shape="ticket"]{border-radius:5px;clip-path:polygon(0 0,100% 0,100% 36%,94% 50%,100% 64%,100% 100%,0 100%,0 64%,6% 50%,0 36%)}
.fh29-discussion-modal{border:1px solid var(--line);color:var(--text);background:var(--panel);padding:0;
 border-radius:20px;width:min(1000px,96vw);max-height:92dvh;overflow:auto;box-shadow:0 22px 90px #000a}
.fh29-discussion-modal::backdrop{background:rgba(5,10,22,.78);backdrop-filter:blur(3px)}
.fh29-discussion-head{display:flex;gap:12px;align-items:center;justify-content:space-between;
 position:sticky;top:0;z-index:3;padding:14px 22px;background:var(--panel);border-bottom:1px solid var(--line)}
.fh29-discussion-body{padding:clamp(18px,3vw,36px);display:grid;gap:18px}
.fh29-discussion-body h2{font-size:clamp(22px,3vw,32px);margin:0;line-height:1.28}
.fh29-discussion-full{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:15px;
 padding-bottom:18px;border-bottom:1px solid var(--line)}
.fh29-discussion-comments{display:grid;gap:12px}
.fh29-discussion-comment{padding:13px 15px;border:1px solid var(--line);border-radius:13px;
 background:var(--panel2);display:grid;gap:7px;overflow-wrap:anywhere}
.fh29-discussion-comment p{margin:0;white-space:pre-wrap}
.fh29-discussion-comment small{color:var(--muted)}
.fh29-discussion-form{display:grid;gap:10px}
.fh29-discussion-form textarea{min-height:90px;resize:vertical}
.fh29-discussion-form button{justify-self:end}
.fh29-poll-discuss{margin-top:13px}
@media(max-width:600px){.fh29-discussion-modal{width:100vw;max-height:100dvh;border-radius:0}}

/* V29: legacy duplicate is intentionally gone; owner Manage owns rule editing */
#view-groups #fh81-group-style{display:none!important}
#view-groups .fh13-group-comments[hidden]{display:none!important}
#view-groups .fh29-member-tags{border-top:1px solid var(--line);margin-top:14px;padding-top:12px;display:grid;gap:10px}
#view-groups .fh29-member-tags-heading{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
#view-groups .fh29-member-tags-list{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#view-groups .fh29-member-claim{border:1px solid var(--line);border-radius:999px;font-size:12px;padding:6px 12px}
#view-groups .fh29-poll-result{display:flex;justify-content:space-between;gap:15px;padding:10px 14px;border:1px solid var(--line);border-radius:10px}
#view-groups .fh29-poll-discuss{padding:10px 15px;border:1px solid var(--line);border-radius:10px;background:var(--panel2)}
#view-groups .fh29-comment-top{display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap}

/* V29: current combined feed, not just legacy post cards */
#view-groups #fh9-group-ui{display:none!important}
#view-groups #group-posts-area.fh9-group-posts-layout{
  display:grid;grid-template-columns:minmax(0,1fr)!important;gap:16px!important
}
#view-groups .fh9-group-posts-layout #group-post-list{grid-column:1;min-width:0}
#view-groups .fh9-group-posts-layout .fh9-group-composers{grid-column:1;grid-row:auto;
  position:static!important;width:100%!important;max-width:none!important;display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));gap:15px}
#view-groups .fh9-timeline-item{border-radius:18px!important;padding:clamp(20px,2.5vw,34px)!important;
 width:100%;box-sizing:border-box;margin:0 0 15px!important}
#view-groups .fh9-timeline-item.fh9-group-post .fh9-post-text{
 display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;
 line-height:1.7;white-space:pre-wrap
}
#view-groups .fh9-timeline-item.fh9-group-post h2{font-size:clamp(20px,2.2vw,27px);
 cursor:pointer;line-height:1.3}
#view-groups .fh9-timeline-item .fh29-expand-post,#view-groups .fh9-timeline-item .fh29-poll-discuss{
 padding:9px 15px;border-radius:10px;border:1px solid var(--line);background:var(--panel2);
 margin:12px 0;display:inline-flex
}

/* V29: visible assigned tags next to authors in the community timeline. */
#view-groups .fh29-author-tags{display:inline-flex;gap:5px;flex-wrap:wrap;align-items:center;margin-left:8px}
#view-groups .fh29-author-tags .fh29-custom-tag{font-size:10px;padding:4px 9px}

/* V30 stabilization: attachments in expanded post, responsive and accessible discussion */
.fh29-discussion-modal .fh30-discussion-image{
  display:block;width:100%;height:auto;max-height:65vh;object-fit:contain;
  border-radius:12px;background:var(--panel2);
  border:1px solid var(--line);
}
.fh29-discussion-modal .fh29-discussion-comment{contain:content}
.fh29-discussion-modal .fh29-discussion-head button:focus-visible,
.fh29-discussion-modal .fh29-discussion-form button:focus-visible,
#view-groups .fh27-navigation button:focus-visible{
  outline:3px solid var(--accent);outline-offset:3px;
}
@media(max-width:600px){
  .fh29-discussion-modal .fh29-discussion-head{padding:12px 15px}
  .fh29-discussion-modal .fh29-discussion-body{padding:17px}
}


/* FRIENDHUB_V31_MOBILE_CSS — phone-first Discord-inspired native site chrome */
.fh31-topbar,.fh31-bottomnav,.fh31-scrim,.fh31-drawer-top,.fh31-drawer-section{display:none}
@media (max-width:800px){
  html{scroll-padding-top:75px}
  body.fh31-scroll-locked{overflow:hidden!important}
  #app.fh31-ready:not(.hidden){display:block!important;width:100%;min-height:100dvh;min-width:0}
  #app.fh31-ready .fh31-topbar{
    position:sticky;top:0;z-index:210;
    display:flex;align-items:center;gap:12px;
    width:100%;height:calc(61px + env(safe-area-inset-top,0px));
    padding:env(safe-area-inset-top,0px) 15px 0;
    border-bottom:1px solid color-mix(in srgb,var(--line) 80%,transparent);
    background:color-mix(in srgb,var(--panel) 95%,#0b1425);
    box-shadow:0 5px 19px #0003;backdrop-filter:blur(16px);
  }
  #app.fh31-ready .fh31-top-title{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.2;gap:3px}
  #app.fh31-ready .fh31-top-title strong{font-size:17px;letter-spacing:-.025em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #app.fh31-ready .fh31-top-title small{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #app.fh31-ready .fh31-top-actions{display:flex;gap:6px;align-items:center;flex:none}
  #app.fh31-ready .fh31-icon-btn{
    width:43px;height:43px;display:grid;place-items:center;flex:none;
    background:transparent;border:1px solid transparent;border-radius:13px;padding:0;color:var(--text);
    position:relative
  }
  #app.fh31-ready .fh31-icon-btn svg{width:23px;height:23px}
  #app.fh31-ready .fh31-icon-btn:active{background:var(--panel2)}
  #app.fh31-ready .fh31-unread-dot:not([hidden]){
    position:absolute;display:grid;place-items:center;top:2px;right:1px;
    min-width:18px;height:18px;padding:0 3px;background:#ed536a;color:white;
    font-weight:800;font-size:10px;border-radius:999px;border:2px solid var(--panel)
  }
  #app.fh31-ready .fh31-channels-btn:not([hidden]){
    display:inline-flex;align-items:center;justify-content:center;
    padding:7px 12px;border-radius:12px;min-height:40px;
    background:var(--panel2);border:1px solid var(--line);font-size:12px;font-weight:750
  }
  #app.fh31-ready .side{
    display:flex!important;flex-direction:column;gap:10px;
    position:fixed!important;top:0!important;bottom:0!important;left:0!important;
    width:min(322px,86vw)!important;max-width:86vw!important;height:100dvh!important;
    padding:calc(10px + env(safe-area-inset-top,0px)) 12px calc(16px + env(safe-area-inset-bottom,0px))!important;
    background:var(--panel)!important;border-right:1px solid var(--line)!important;border-bottom:0!important;
    box-shadow:16px 0 60px #0008!important;
    z-index:300!important;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
    transform:translateX(-104%);opacity:0;visibility:hidden;pointer-events:none;
    transition:transform .24s cubic-bezier(.2,.8,.2,1),opacity .18s ease,visibility .18s;
  }
  #app.fh31-ready .side.fh31-open{transform:translateX(0);visibility:visible;opacity:1;pointer-events:auto}
  #app.fh31-ready .side .brand{display:none!important}
  #app.fh31-ready .fh31-drawer-top{display:flex;justify-content:space-between;align-items:center;padding:7px 7px 8px}
  #app.fh31-ready .fh31-drawer-top strong{font-size:21px;letter-spacing:-.04em}
  #app.fh31-ready .side .nav{
    display:flex!important;flex-direction:column!important;gap:5px!important;
    max-height:none!important;overflow:visible!important;padding:0!important;
  }
  #app.fh31-ready .side .nav button:not([hidden]){
    display:flex!important;align-items:center!important;justify-content:flex-start;
    text-align:left!important;width:100%;white-space:normal!important;min-height:46px;
    padding:11px 15px!important;border-radius:12px!important;flex:none;
    font-size:14px!important;font-weight:660;
  }
  #app.fh31-ready .side .nav button.active{
    background:color-mix(in srgb,var(--accent) 19%,var(--panel2))!important;
    color:var(--text)!important;border-color:color-mix(in srgb,var(--accent) 45%,var(--line))!important;
  }
  #app.fh31-ready .side>div[style*="padding"]{margin-top:auto;padding:12px!important;border-top:1px solid var(--line)}
  #app.fh31-ready .fh31-drawer-section{display:grid;gap:10px;border-top:1px solid var(--line);padding:14px 5px 4px}
  #app.fh31-ready .fh31-drawer-section[hidden]{display:none!important}
  #app.fh31-ready .fh31-drawer-section h3{margin:0;font-size:10px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:var(--muted)}
  #app.fh31-ready .fh31-channel-list,#app.fh31-ready .fh31-community-shortcuts{display:grid;gap:5px}
  #app.fh31-ready .fh31-channel,#app.fh31-ready .fh31-community-shortcut{
    display:flex;align-items:center;gap:12px;min-height:43px;width:100%;text-align:left;
    padding:9px 12px;background:transparent;border:0;border-radius:12px;
    color:var(--text);font-size:13px;font-weight:650
  }
  #app.fh31-ready .fh31-channel.active{background:color-mix(in srgb,var(--accent) 22%,var(--panel2))}
  #app.fh31-ready .fh31-channel svg{width:18px;height:18px;color:var(--muted)}
  #app.fh31-ready .fh31-community-avatar{flex:none;display:grid;place-items:center;width:35px;height:35px;border-radius:12px;background:var(--panel2);
    border:1px solid var(--line);font-size:12px;font-weight:800;color:var(--accent)}
  #app.fh31-ready .fh31-community-shortcut>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #app.fh31-ready .fh31-muted{margin:0;color:var(--muted);font-size:12px}
  #app.fh31-ready .fh31-scrim:not([hidden]){
    display:block;position:fixed!important;inset:0;z-index:290!important;
    background:#020713a8;backdrop-filter:blur(2px);border:0;border-radius:0;cursor:default
  }
  #app.fh31-ready .fh31-bottomnav{
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));
    gap:2px;align-items:center;
    position:fixed;bottom:0;left:0;right:0;z-index:200;
    min-height:calc(65px + env(safe-area-inset-bottom,0px));
    padding:7px 6px calc(8px + env(safe-area-inset-bottom,0px));
    background:color-mix(in srgb,var(--panel) 96%,#081222);
    border-top:1px solid var(--line);box-shadow:0 -5px 20px #0004;
    backdrop-filter:blur(18px)
  }
  #app.fh31-ready .fh31-bottom-item{
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
    width:100%;height:53px;min-width:0;min-height:53px;
    background:transparent!important;border:0!important;
    color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.005em;
    padding:4px!important;border-radius:13px!important
  }
  #app.fh31-ready .fh31-bottom-item svg{width:23px;height:23px;flex:none}
  #app.fh31-ready .fh31-bottom-item.active{color:var(--accent)!important;background:color-mix(in srgb,var(--accent) 13%,transparent)!important}
  #app.fh31-ready .fh31-bottom-item>span:last-child{white-space:nowrap}
  #app.fh31-ready .fh31-profile-avatar{height:24px;width:24px;object-fit:cover;border-radius:50%;border:2px solid currentColor;flex:none}
  #app.fh31-ready .main{
    width:100%!important;max-width:100%!important;min-width:0;
    padding:13px 12px calc(91px + env(safe-area-inset-bottom,0px))!important;
    margin:0!important;overflow:visible;
  }
  #app.fh31-ready .main>section:not([hidden]){max-width:100%;min-width:0}
  #app.fh31-ready .panel{border-radius:15px!important}
  #app.fh31-ready .section-head{gap:8px;margin-bottom:14px}
  #app.fh31-ready .section-head h1{font-size:21px!important;letter-spacing:-.035em}
  #app.fh31-ready button{touch-action:manipulation}
  #app.fh31-ready :is(button,a,input,textarea,select):focus-visible{
    outline:2px solid var(--accent)!important;outline-offset:2px
  }
  /* Direct messages are now an inbox view and a dedicated conversation view. */
  #app.fh31-ready #view-chat .chat-layout{
    display:block!important;width:100%!important;max-width:100%;min-width:0;overflow:visible
  }
  #app.fh31-ready #view-chat .chat-layout>.panel{
    width:100%!important;max-width:100%!important;margin:0!important;min-width:0!important
  }
  #app.fh31-ready.fh31-chat-inbox #view-chat .chat-layout>.panel:nth-child(2){display:none!important}
  #app.fh31-ready.fh31-chat-thread #view-chat .chat-layout>.panel:first-child{display:none!important}
  #app.fh31-ready.fh31-chat-thread #view-chat .chat-layout>.panel:nth-child(2){
    display:flex!important;flex-direction:column;min-height:calc(100dvh - 188px - env(safe-area-inset-bottom,0px));
    padding:11px!important;gap:8px
  }
  #app.fh31-ready.fh31-chat-thread #view-chat .section-head{display:none}
  #app.fh31-ready.fh31-chat-inbox #view-chat .section-head .muted{display:none}
  #app.fh31-ready #conversations{
    display:flex!important;flex-direction:column!important;gap:5px!important;
    overflow:visible!important;max-height:none!important;min-height:0;
    width:100%!important;padding:0!important
  }
  #app.fh31-ready #conversations>button{
    display:flex!important;align-items:center;gap:12px;
    width:100%!important;min-height:68px;flex:none;
    padding:10px 12px!important;border-radius:13px!important;
    text-align:left!important;white-space:normal!important;
    font-size:14px!important;background:var(--panel2)
  }
  #app.fh31-ready #conversations>button .avatar{width:43px;height:43px;flex:none}
  #app.fh31-ready #conversations>button span{min-width:0;overflow:hidden;text-overflow:ellipsis}
  #app.fh31-ready #chat-title{font-size:17px;margin:2px 4px 4px!important}
  #app.fh31-ready #view-chat .messages{
    flex:1 1 auto;min-height:220px;max-height:none!important;
    height:calc(100dvh - 340px - env(safe-area-inset-bottom,0px))!important;
    overflow-y:auto!important;overscroll-behavior:contain;
    padding:10px 8px!important;
  }
  #app.fh31-ready #view-chat .bubble{max-width:min(89%,550px)!important;overflow-wrap:anywhere}
  #app.fh31-ready #view-chat .chat-input{
    flex:none!important;display:flex!important;flex-wrap:wrap!important;gap:6px!important;
    align-items:center;margin-top:2px!important;padding:10px 5px 3px!important;
    border-top:1px solid var(--line);
  }
  #app.fh31-ready #message-text{
    flex:1 1 100%!important;width:100%!important;min-width:0!important;
    min-height:46px!important;max-height:135px!important;resize:vertical;
    background:var(--panel2);border-radius:13px;padding:10px 12px!important
  }
  #app.fh31-ready #view-chat .chat-input button,
  #app.fh31-ready #view-chat .chat-input label{min-height:41px;display:inline-flex;align-items:center}
  #app.fh31-ready #view-chat .chat-input #send-message{margin-left:auto;order:2}
  /* Community and voice screens: no double-wide panels or clipped action buttons */
  #app.fh31-ready .fh27-navigation{max-width:100%;scroll-snap-type:x proximity}
  #app.fh31-ready .fh27-navigation>button{scroll-snap-align:start;min-height:44px}
  #app.fh31-ready .fh27-explorer{padding:16px!important}
  #app.fh31-ready #group-posts-area,#app.fh31-ready #group-chat-area,
  #app.fh31-ready #group-detail,#app.fh31-ready #group-post-list{min-width:0!important;max-width:100%!important}
  #app.fh31-ready .fh12-actions{gap:7px;flex-wrap:wrap}
  #app.fh31-ready #fh29-v6-panel{max-width:100%}
  /* Keep the voice dock and toast clear of the new bottom bar. */
  #fh29-v8-dock:not([hidden]){
    bottom:calc(78px + env(safe-area-inset-bottom,0px))!important;
    max-width:calc(100vw - 24px)
  }
  #fh844-tray,#fh85-notices{bottom:calc(77px + env(safe-area-inset-bottom,0px))!important}
}
@media (max-width:360px){
  #app.fh31-ready .fh31-bottomnav{padding-left:2px;padding-right:2px}
  #app.fh31-ready .fh31-bottom-item{font-size:9px}
  #app.fh31-ready .fh31-channels-btn{padding:7px 8px!important}
  #app.fh31-ready .main{padding-left:8px!important;padding-right:8px!important}
}
@media (min-width:801px){
  #app.fh31-ready .fh31-topbar,#app.fh31-ready .fh31-bottomnav,
  #app.fh31-ready .fh31-scrim,#app.fh31-ready .fh31-drawer-top,
  #app.fh31-ready .fh31-drawer-section{display:none!important}
}
@media (prefers-reduced-motion:reduce){
  #app.fh31-ready .side{transition:none!important}
  #app.fh31-ready .fh31-bottom-item{transition:none!important}
}

/* V31 phone keyboard: give the typing area the full available viewport. */
@media(max-width:800px){
  #app.fh31-ready.fh31-composing .fh31-bottomnav{display:none!important}
  #app.fh31-ready.fh31-composing .main{padding-bottom:12px!important}
  #app.fh31-ready.fh31-composing #fh29-v8-dock:not([hidden]){bottom:12px!important}
  #app.fh31-ready .fh31-icon-btn:focus-visible,#app.fh31-ready .fh31-bottom-item:focus-visible{outline:2px solid var(--accent)!important;outline-offset:2px}
}

/* V31 mobile page chrome sits above the sticky channel tabs. */
@media(max-width:800px){
 #app.fh31-ready #view-groups .fh27-navigation{top:calc(61px + env(safe-area-inset-top,0px))!important;z-index:170!important}
 #app.fh31-ready #view-groups .fh27-navigation button{min-width:max-content}
 #app.fh31-ready .fh31-topbar{padding-left:max(10px,env(safe-area-inset-left,0px));padding-right:max(10px,env(safe-area-inset-right,0px))}
}


/* FriendHub V32: Developer Tag Studio and cosmetic profile/post badges.
 * Separate from Group Tags and available on staging only.
 */
#view-developer #fh32-studio{
  display:grid;gap:15px;margin-bottom:18px;
  border:1px solid var(--line);border-radius:20px;
  background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 9%,var(--panel)),var(--panel));
}
#fh32-studio .fh32-studio-header{
  display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap
}
#fh32-studio .fh32-studio-header h2{font-size:23px;letter-spacing:-.02em;margin:0 0 6px}
#fh32-studio .fh32-studio-header p{margin:0;font-size:13px;line-height:1.5}
#fh32-studio .fh32-studio-layout{
  display:grid;grid-template-columns:minmax(220px,.95fr) minmax(300px,1.25fr);
  gap:16px;align-items:start
}
#fh32-studio :is(.fh32-studio-list,.fh32-studio-editor){
  display:grid;gap:11px;min-width:0;padding:16px;
  background:var(--panel);border:1px solid var(--line);border-radius:15px
}
#fh32-studio :is(h3,h4){margin:0;font-size:16px}
#fh32-studio .fh32-tag-item{
  display:grid;gap:10px;border:1px solid var(--line);
  background:var(--panel2);border-radius:13px;padding:12px
}
#fh32-studio .fh32-tag-item.selected{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
#fh32-studio .fh32-tag-item-top{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#fh32-studio .fh32-tag-item-top small{font-size:11px;line-height:1.5}
#fh32-studio .fh32-tag-actions{display:flex;gap:6px;flex-wrap:wrap}
#fh32-studio .fh32-tag-actions button{padding:7px 11px;font-size:12px}
#fh32-studio .fh32-tag-form{display:grid;gap:12px}
#fh32-studio .fh32-field{display:grid;gap:6px;font-size:12px;font-weight:680}
#fh32-studio .fh32-field :is(input,select){width:100%;min-width:0;max-width:100%;box-sizing:border-box}
#fh32-studio .fh32-color-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#fh32-studio .fh32-color-grid input[type=color]{height:44px;padding:3px;border-radius:10px}
#fh32-studio .fh32-preview{
  display:grid;place-items:center;min-height:110px;padding:12px;
  border:1px solid var(--line);border-radius:14px;
  background:linear-gradient(150deg,var(--panel2),color-mix(in srgb,var(--accent) 10%,var(--panel2)))
}
.fh32-tag-badge{
  --fh32-a:#836bff;--fh32-b:#e17fc1;--fh32-angle:125deg;
  display:inline-flex;align-items:center;justify-content:center;
  padding:4px 10px;max-width:100%;
  font-size:11px;line-height:1.4;font-weight:850;
  color:#fff;text-shadow:0 1px 3px #0009;
  background:linear-gradient(var(--fh32-angle),var(--fh32-a),var(--fh32-b));
  border:1px solid #ffffff48;vertical-align:middle;overflow-wrap:anywhere;
  box-shadow:inset 0 1px #ffffff24
}
.fh32-tag-badge[data-shape=pill]{border-radius:999px}
.fh32-tag-badge[data-shape=rounded]{border-radius:8px}
.fh32-tag-badge[data-shape=square]{border-radius:2px}
.fh32-tag-badge[data-shape=ticket]{
  border-radius:3px;
  clip-path:polygon(0 0,100% 0,100% 36%,94% 50%,100% 64%,100% 100%,0 100%,0 64%,6% 50%,0 36%);
  padding:4px 15px
}
#fh32-studio .fh32-preview .fh32-tag-badge{font-size:15px;padding:9px 23px}
#fh32-studio .fh32-checkbox{display:flex;gap:8px;align-items:flex-start;font-size:13px;line-height:1.4}
#fh32-studio .fh32-checkbox input{width:17px;height:17px;flex:none;margin-top:1px;accent-color:var(--accent)}
#fh32-studio .fh32-form-actions{display:flex;gap:9px;flex-wrap:wrap}
#fh32-studio .fh32-form-actions button{min-height:42px}
#fh32-studio .fh32-assignments{display:grid;gap:12px;border-top:1px solid var(--line);padding-top:16px}
#fh32-studio .fh32-assign-search{display:flex;gap:8px;flex-wrap:wrap}
#fh32-studio .fh32-assign-search input{min-width:165px;flex:1}
#fh32-studio .fh32-assign-search button{flex:none}
#fh32-studio :is(.fh32-account-results,.fh32-tag-holders){display:grid;gap:7px}
#fh32-studio :is(.fh32-search-result,.fh32-holder){
  display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;align-items:center;
  border:1px solid var(--line);background:var(--panel2);padding:9px 11px;border-radius:10px;
  font-size:12px
}
#fh32-studio :is(.fh32-search-result,.fh32-holder) button{padding:7px 10px;font-size:12px}
#fh32-studio .fh32-status{font-size:12px;min-height:16px;margin:0}
#fh32-studio .fh32-error,#view-profile .fh32-error{color:var(--danger);font-size:12px}
.fh32-profile-tags,.fh32-feed-tags{
  display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin-top:8px
}
.fh32-profile-tags[hidden],.fh32-feed-tags[hidden]{display:none!important}
.fh32-profile-tags .fh32-tag-badge{font-size:11px}
.fh32-feed-tags .fh32-tag-badge{font-size:10px;padding:2px 8px}
#view-profile .fh32-self-tags{margin-top:16px;padding:16px}
#view-profile .fh32-self-tags summary{font-weight:760;cursor:pointer}
#view-profile .fh32-self-list{display:grid;gap:8px;margin-top:12px}
#view-profile .fh32-self-row{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;
  background:var(--panel2);border-radius:10px;padding:9px 11px
}
#view-profile .fh32-self-row button{padding:8px 12px}
@media(max-width:850px){
  #fh32-studio .fh32-studio-layout{grid-template-columns:1fr}
  #fh32-studio :is(.fh32-studio-list,.fh32-studio-editor){padding:12px}
}
@media(max-width:450px){
  #fh32-studio .fh32-assign-search{display:grid}
  #fh32-studio .fh32-assign-search input{width:100%;min-width:0}
}
@media(prefers-reduced-motion:reduce){
 .fh32-tag-badge{transition:none!important}
}


/* V32.1 — readable profile badges under username; safe with custom profile decor. */
#profile-card .profile-top .details,
#user-card .profile-top .details,
#visitor-dialog .profile-top .details{
  min-width:0;flex:1 1 180px;overflow:visible!important;
}
#profile-card .profile-top .details .fh32-profile-tags,
#user-card .profile-top .details .fh32-profile-tags,
#visitor-dialog .profile-top .details .fh32-profile-tags{
  position:relative;z-index:7;
  display:flex!important;flex-flow:row wrap;align-items:center;
  gap:6px 7px;max-width:100%;margin:7px 0 3px;
  padding:0;min-height:0;overflow:visible;
}
#profile-card .profile-top .details .fh32-profile-tags[hidden],
#user-card .profile-top .details .fh32-profile-tags[hidden],
#visitor-dialog .profile-top .details .fh32-profile-tags[hidden]{
  display:none!important;
}
#profile-card .fh32-profile-tags .fh32-tag-badge,
#user-card .fh32-profile-tags .fh32-tag-badge,
#visitor-dialog .fh32-profile-tags .fh32-tag-badge{
  position:relative;flex:0 1 auto;min-width:0;
  padding:5px 10px;font-size:11px;line-height:1.35;
  white-space:normal;overflow-wrap:anywhere;text-align:center;
  box-shadow:0 2px 9px #0003,inset 0 1px #ffffff26;
}
@media(max-width:800px){
  #profile-card .profile-top .details,
  #user-card .profile-top .details{flex:1 1 135px;}
  #profile-card .fh32-profile-tags .fh32-tag-badge,
  #user-card .fh32-profile-tags .fh32-tag-badge{padding:4px 8px;font-size:10px;}
}

/* FRIENDHUB_V34_CLUBHOUSE_CSS
 * FriendHub is a personal social clubhouse, not a server dashboard.
 * This stylesheet is strictly for PC. V31 mobile stays unchanged.
 */
@media(min-width:801px){
  html:has(#app.fh34-ready:not(.hidden)){scrollbar-gutter:stable}
  body:has(#app.fh34-ready:not(.hidden)){overflow-y:auto!important;overflow-x:hidden}
  #app.fh34-ready:not(.hidden){
    --fh34-ink:var(--text);
    --fh34-border:color-mix(in srgb,var(--line) 78%,transparent);
    --fh34-shell:color-mix(in srgb,var(--panel) 92%,var(--bg));
    --fh34-card:color-mix(in srgb,var(--panel) 96%,#252338);
    --fh34-soft:color-mix(in srgb,var(--accent) 12%,var(--panel));
    display:block!important;min-height:100dvh!important;width:100%!important;
    background:
      radial-gradient(ellipse 600px 460px at 95% 0%,color-mix(in srgb,var(--accent) 7%,transparent),transparent),
      radial-gradient(ellipse 500px 390px at -10% 45%,#e29e5f07,transparent),
      var(--bg);
  }
  #app.fh34-ready.hidden{display:none!important}
  #app.fh34-ready .fh31-topbar,#app.fh34-ready .fh31-bottomnav,
  #app.fh34-ready .fh31-scrim{display:none!important}
  #app.fh34-ready > .side{
    position:sticky!important;top:0!important;left:auto!important;
    transform:none!important;visibility:visible!important;opacity:1!important;
    pointer-events:auto!important;z-index:115!important;
    display:flex!important;align-items:center!important;flex-direction:row!important;
    gap:clamp(12px,2vw,27px)!important;flex-wrap:nowrap!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    height:81px!important;max-height:none!important;
    padding:10px clamp(20px,4vw,70px)!important;
    margin:0!important;border:0!important;border-bottom:1px solid var(--fh34-border)!important;
    background:color-mix(in srgb,var(--panel) 92%,var(--bg))!important;
    box-shadow:0 6px 32px #00000017!important;
    backdrop-filter:blur(21px);
    overflow:visible!important;
  }
  #app.fh34-ready .side>.brand{
    display:block!important;flex:none;padding:0!important;
    margin:0!important;white-space:nowrap;
    font-size:26px!important;letter-spacing:-.065em;
    font-weight:900;line-height:1.2;
    text-shadow:0 2px 11px #00000016;
  }
  #app.fh34-ready .side>.brand:before{
    content:'✳';display:inline-grid;place-items:center;
    width:36px;height:36px;margin-right:10px;
    font-size:25px;vertical-align:middle;
    background:linear-gradient(140deg,var(--accent),color-mix(in srgb,var(--accent) 58%,#e6a8a3));
    border-radius:12px;color:#182338;
    box-shadow:0 3px 14px color-mix(in srgb,var(--accent) 24%,transparent);
  }
  #app.fh34-ready .side>.nav{
    display:flex!important;align-items:center!important;flex-wrap:nowrap!important;
    flex-direction:row!important;justify-content:flex-start!important;
    gap:4px!important;overflow-x:auto!important;overflow-y:hidden!important;
    scrollbar-width:none;max-height:none!important;min-width:0!important;
    flex:1 1 auto!important;padding:4px 1px!important;margin:0!important;
  }
  #app.fh34-ready .side>.nav::-webkit-scrollbar{display:none}
  #app.fh34-ready .side>.nav>button:not([hidden]){
    position:relative;display:flex!important;align-items:center;justify-content:center;
    min-height:43px;min-width:max-content;white-space:nowrap;
    flex:none;padding:10px 14px!important;
    color:var(--muted);font-size:12px;font-weight:730;
    letter-spacing:-.015em;
    border:1px solid transparent!important;border-radius:999px!important;
    background:transparent!important;
    transition:background .16s ease,transform .16s ease,color .16s ease;
  }
  #app.fh34-ready .side>.nav>button:not([hidden]):hover{
    background:var(--fh34-soft)!important;color:var(--text)!important;
    transform:translateY(-1px);
  }
  #app.fh34-ready .side>.nav>button.active:not([hidden]){
    color:var(--text)!important;
    background:color-mix(in srgb,var(--accent) 21%,var(--panel2))!important;
    border-color:color-mix(in srgb,var(--accent) 24%,var(--line))!important;
  }
  #app.fh34-ready .side>.nav>button.active:not([hidden]):after{
    content:"";position:absolute;bottom:-3px;left:34%;right:34%;
    height:3px;border-radius:5px;background:var(--accent);
  }
  #app.fh34-ready .side>.nav>button[hidden]{display:none!important}
  #app.fh34-ready .side>.fh34-top-search{
    display:flex;align-items:center;justify-content:center;flex:none;
    padding:10px 15px!important;min-height:42px;
    color:var(--text)!important;font-size:12px;font-weight:750;
    border:1px solid var(--fh34-border)!important;
    border-radius:999px!important;background:var(--panel2)!important;
  }
  #app.fh34-ready .side>.fh34-top-search:before{
    content:'⌕';font-size:20px;margin-right:7px;line-height:.7;color:var(--accent);
  }
  #app.fh34-ready .side>div[style]{
    display:flex!important;align-items:center!important;flex:none!important;
    gap:8px!important;margin:0!important;padding:0!important;
    border:0!important;width:auto!important;
  }
  #app.fh34-ready .side>div[style] #connection{
    display:inline-flex;align-items:center;gap:8px;
    max-width:150px;min-width:0;
    font-size:10px!important;color:var(--muted);
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    background:transparent!important;
  }
  #app.fh34-ready .side>div[style] #connection:before{
    content:'';width:8px;height:8px;flex:none;
    background:#77cda4;border-radius:50%;box-shadow:0 0 0 3px #77cda422;
  }
  #app.fh34-ready .side>div[style] button{
    display:inline-flex;align-items:center;min-height:40px;
    white-space:nowrap;padding:8px 10px!important;
    margin:0!important;border-radius:999px!important;
    font-size:11px;font-weight:750;
    background:transparent!important;border:1px solid transparent!important;
  }
  #app.fh34-ready .side>div[style] button:hover{
    background:var(--fh34-soft)!important;border-color:var(--fh34-border)!important;
  }
  #app.fh34-ready >main.main{
    width:100%!important;min-width:0!important;
    max-width:1600px!important;margin:0 auto!important;
    padding:34px clamp(22px,4vw,67px) 90px!important;
    height:auto!important;min-height:calc(100dvh - 82px)!important;
    overflow:visible!important;display:block!important;
  }
  #app.fh34-ready main.main>section{max-width:100%!important;min-width:0!important}
  #app.fh34-ready main.main>section[hidden]{display:none!important}
  #app.fh34-ready .section-head{
    display:flex;align-items:center;justify-content:space-between;
    padding:0 4px;margin:0 0 22px;min-height:46px;
    flex-wrap:wrap;gap:12px;
  }
  #app.fh34-ready .section-head h1{
    display:block!important;font-size:clamp(25px,2.5vw,38px);
    font-weight:850;letter-spacing:-.055em;line-height:1.14;
    margin:0;
  }
  #app.fh34-ready .section-head p{margin:6px 0 0;color:var(--muted)}
  #app.fh34-ready .panel{
    background:var(--fh34-card)!important;border:1px solid var(--fh34-border)!important;
    box-shadow:0 7px 27px #0000000b!important;
    border-radius:21px!important;overflow-wrap:anywhere;
  }
  #app.fh34-ready input:not([type='color']),#app.fh34-ready select,
  #app.fh34-ready textarea{
    border-color:var(--fh34-border);border-radius:13px;
    background:var(--panel2);color:var(--text);
  }
  #app.fh34-ready button{touch-action:manipulation}
  #app.fh34-ready :is(button,input,textarea,select,a):focus-visible{
    outline:2px solid var(--accent)!important;outline-offset:3px!important;
  }
  #app.fh34-ready button.primary{
    background:var(--accent)!important;color:#17243a!important;
    border-color:var(--accent)!important;font-weight:800;
  }
  /* A personal clubhouse hero: editorial, playful, not Discord-like */
  #app.fh34-ready #view-feed>.fh34-hero{
    display:grid;grid-template-columns:minmax(0,1.5fr) minmax(150px,.65fr);
    position:relative;align-items:center;isolation:isolate;overflow:hidden;
    min-height:290px;padding:clamp(25px,4vw,52px) clamp(25px,5vw,69px);
    margin:0 0 16px;
    border:1px solid color-mix(in srgb,var(--accent) 29%,var(--line));
    border-radius:32px 32px 36px 14px;
    background:linear-gradient(113deg,
      color-mix(in srgb,var(--accent) 23%,var(--panel)),
      color-mix(in srgb,var(--accent) 8%,var(--panel)) 58%,
      color-mix(in srgb,#dc967c 15%,var(--panel)) 100%);
    box-shadow:0 17px 57px #00000013;
  }
  #app.fh34-ready .fh34-hero-decor{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
  #app.fh34-ready .fh34-orbit{position:absolute;display:block;border-radius:50%;border:1px solid #ffffff20}
  #app.fh34-ready .fh34-orbit-1{
    width:430px;height:430px;right:-170px;top:-183px;
    background:radial-gradient(circle at 40% 50%,color-mix(in srgb,#ffbc86 20%,transparent),transparent 70%);
  }
  #app.fh34-ready .fh34-orbit-2{height:250px;width:250px;right:16%;top:30%;border-width:2px}
  #app.fh34-ready .fh34-orbit-3{height:130px;width:130px;right:23%;bottom:-80px;border-style:dashed}
  #app.fh34-ready .fh34-hero-content{min-width:0;z-index:1}
  #app.fh34-ready .fh34-hero-kicker{
    display:flex;align-items:center;gap:10px;font-size:11px;letter-spacing:.17em;
    font-weight:850;color:var(--accent);margin-bottom:14px;
  }
  #app.fh34-ready .fh34-hero-kicker .fh34-spark{font-size:20px}
  #app.fh34-ready .fh34-hero-title{
    margin:0 0 13px;max-width:17ch;line-height:1.08;
    font-size:clamp(36px,4.1vw,61px);letter-spacing:-.072em;font-weight:875;
  }
  #app.fh34-ready .fh34-hero-username{
    color:var(--accent);display:inline;overflow-wrap:anywhere;
  }
  #app.fh34-ready .fh34-hero-intro{
    max-width:48ch;font-size:14px;line-height:1.7;color:var(--muted);margin:0 0 22px;
  }
  #app.fh34-ready .fh34-hero-actions{display:flex;flex-wrap:wrap;gap:10px}
  #app.fh34-ready .fh34-hero-actions button{
    min-height:44px;border-radius:999px!important;
    padding:11px 20px!important;font-weight:790;font-size:12px;letter-spacing:.01em;
  }
  #app.fh34-ready .fh34-hero-primary{
    background:var(--accent)!important;color:#162333!important;border:1px solid var(--accent)!important;
  }
  #app.fh34-ready .fh34-hero-secondary{
    background:var(--panel)!important;color:var(--text)!important;
    border:1px solid color-mix(in srgb,var(--accent) 30%,var(--line))!important;
  }
  #app.fh34-ready .fh34-hero-graphic{
    display:block;position:relative;height:235px;min-width:155px;
  }
  #app.fh34-ready .fh34-graphic-card{
    position:absolute;display:grid;place-items:center;
    color:#1d2141;box-shadow:0 10px 30px #00000021;
    border:1px solid #ffffff50;
    font-weight:950;letter-spacing:-.05em;
  }
  #app.fh34-ready .fh34-graphic-card-a{
    top:20px;left:4%;width:170px;height:165px;
    border-radius:24px 24px 66px 24px;
    background:linear-gradient(140deg,#f2c77d,#e99b79);
    transform:rotate(-10deg);font-size:29px;
  }
  #app.fh34-ready .fh34-graphic-card-b{
    top:57px;right:1%;width:120px;height:115px;
    border-radius:60px 60px 28px 60px;
    background:linear-gradient(125deg,#bea9f5,#9189d6);
    color:#352665;transform:rotate(12deg);font-size:55px;
  }
  #app.fh34-ready .fh34-graphic-card-c{
    bottom:-1px;right:8%;width:175px;height:56px;
    border-radius:17px;background:#f1eddc;
    color:#3d3d57;transform:rotate(7deg);font-size:12px;letter-spacing:.1em;
  }
  #app.fh34-ready .fh34-launchpad{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;
    margin:0 0 34px;
  }
  #app.fh34-ready .fh34-launch-tile{
    display:flex;gap:15px;align-items:center;min-width:0;
    padding:19px 19px!important;min-height:95px;
    background:var(--fh34-card)!important;
    border:1px solid var(--fh34-border)!important;border-radius:19px!important;
    text-align:left;color:var(--text)!important;box-shadow:0 5px 17px #0000000a;
    transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
  }
  #app.fh34-ready .fh34-launch-tile:hover{
    transform:translateY(-3px);
    border-color:color-mix(in srgb,var(--accent) 60%,var(--line))!important;
    box-shadow:0 10px 28px #00000020;
  }
  #app.fh34-ready .fh34-launch-emblem{
    display:grid;place-items:center;flex:none;
    width:50px;height:50px;border-radius:17px;
    font-size:28px;line-height:1;background:color-mix(in srgb,var(--accent) 19%,var(--panel2));
    color:var(--accent);
  }
  #app.fh34-ready .fh34-launch-groups .fh34-launch-emblem{background:#e5b07c24;color:#e5b07c}
  #app.fh34-ready .fh34-launch-profile .fh34-launch-emblem{background:#be8bed2a;color:#ba95eb}
  #app.fh34-ready .fh34-launch-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:4px}
  #app.fh34-ready .fh34-launch-copy strong{font-size:15px;letter-spacing:-.025em}
  #app.fh34-ready .fh34-launch-copy small{font-size:11px;color:var(--muted);line-height:1.4}
  #app.fh34-ready .fh34-launch-arrow{align-self:flex-start;font-size:21px;color:var(--muted)}
  #app.fh34-ready #view-feed>.section-head{margin-top:0;margin-bottom:17px}
  /* Community stream gets a magazine-like social feed */
  #app.fh34-ready #view-feed>.community-shell{
    display:grid;grid-template-columns:minmax(0,1.95fr) minmax(240px,.75fr)!important;
    gap:23px;align-items:start;
  }
  #app.fh34-ready #view-feed .community-main{min-width:0}
  #app.fh34-ready #view-feed .community-main>.composer{
    padding:24px!important;margin-bottom:18px!important;
    border-radius:22px!important;
  }
  #app.fh34-ready #view-feed .composer textarea{min-height:98px!important;padding:14px!important}
  #app.fh34-ready #view-feed .feed-switch{
    width:max-content;max-width:100%;display:flex;align-items:center;gap:6px;
    padding:5px!important;border:1px solid var(--fh34-border);
    border-radius:999px!important;background:var(--panel)!important;margin-bottom:19px;
  }
  #app.fh34-ready #view-feed .feed-switch button{
    border-radius:999px!important;padding:10px 20px!important;
    background:transparent!important;border:1px solid transparent!important;
    color:var(--muted)!important;font-size:12px;font-weight:750;
  }
  #app.fh34-ready #view-feed .feed-switch button.active{
    background:var(--fh34-soft)!important;color:var(--text)!important;
    border-color:var(--fh34-border)!important;
  }
  #app.fh34-ready #feed .post{
    border-radius:23px!important;padding:25px!important;margin-bottom:16px!important;
  }
  #app.fh34-ready #feed .post h2{font-size:21px;letter-spacing:-.025em}
  #app.fh34-ready #feed .post p{line-height:1.75}
  #app.fh34-ready #feed .post-image{border:1px solid var(--fh34-border);border-radius:17px}
  #app.fh34-ready #view-feed .community-aside{
    position:sticky;top:103px;padding:25px!important;
    background:linear-gradient(160deg,var(--fh34-card),color-mix(in srgb,#d19ba3 7%,var(--panel)))!important;
  }
  /* All other pages remain native, full-width web pages, not server panes. */
  #app.fh34-ready #view-chat .chat-layout{
    display:grid!important;grid-template-columns:minmax(230px,310px) minmax(0,1fr)!important;
    gap:18px!important;min-height:620px;
    width:100%!important;max-width:100%!important;
  }
  #app.fh34-ready #view-chat .chat-layout>.panel:first-child{
    display:block!important;padding:20px!important;min-width:0;
  }
  #app.fh34-ready #view-chat .chat-layout>.panel:nth-child(2){
    display:flex!important;flex-direction:column;padding:23px!important;
    min-width:0;min-height:630px;
  }
  #app.fh34-ready #view-chat #conversations{max-height:min(67vh,740px);overflow-y:auto}
  #app.fh34-ready #view-chat #conversations>button{
    display:flex;align-items:center;min-height:59px;
    padding:10px 13px!important;text-align:left!important;
    border-radius:13px!important;width:100%!important;
  }
  #app.fh34-ready #view-chat #conversations>button.active{
    background:var(--fh34-soft)!important;border:1px solid var(--fh34-border)!important
  }
  #app.fh34-ready #view-chat .messages{
    height:clamp(350px,53vh,800px)!important;max-height:none!important;
    overflow-y:auto;flex:1 1 auto;
    padding:15px 9px!important;gap:13px;scrollbar-width:thin;
    background:color-mix(in srgb,var(--panel2) 19%,transparent);
    border-radius:16px;
  }
  #app.fh34-ready #view-chat .bubble{max-width:min(77%,730px)!important;line-height:1.6}
  #app.fh34-ready #view-chat .chat-input{
    gap:8px;padding-top:15px!important;flex-wrap:wrap;
    border-top:1px solid var(--fh34-border);margin-top:15px!important;
  }
  #app.fh34-ready #view-chat #message-text{min-height:55px}
  #app.fh34-ready #view-social>.grid{gap:21px}
  #app.fh34-ready #view-social>.grid>.panel{padding:24px!important}
  #app.fh34-ready #view-groups .fh27-explorer{
    background:linear-gradient(125deg,color-mix(in srgb,var(--accent) 15%,var(--panel)),
      color-mix(in srgb,#ebaf8c 9%,var(--panel)))!important;
    border-radius:30px!important;padding:32px 35px!important;
  }
  #app.fh34-ready #view-groups .fh27-explorer h2{font-size:clamp(30px,3vw,43px)}
  #app.fh34-ready #view-groups #group-list{
    display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,275px),1fr))!important;
    gap:18px!important;
  }
  #app.fh34-ready #view-groups .group-choice{min-height:220px;border-radius:20px!important}
  #app.fh34-ready #view-groups #group-detail>.panel:first-child{padding:26px!important;border-radius:23px!important}
  #app.fh34-ready #view-groups .fh27-navigation{
    position:sticky;top:81px!important;z-index:10;border-radius:0;
    background:color-mix(in srgb,var(--panel) 97%,var(--bg));
  }
  #app.fh34-ready #view-groups .fh27-navigation>button{border-radius:999px!important}
  #app.fh34-ready #view-groups .fh27-manage-card{border-radius:20px;padding:23px}
  #app.fh34-ready #view-settings>.panel{max-width:900px!important;padding:26px!important}
  #app.fh34-ready #view-profile,#app.fh34-ready #view-user{max-width:1270px!important;margin:auto}
  #app.fh34-ready :is(#profile-card,#user-card){border-radius:25px!important;overflow:visible}
  #app.fh34-ready :is(#profile-card,#user-card)>.banner{height:clamp(180px,19vw,270px)}
  #app.fh34-ready #view-profile .profile-board{gap:19px}
  #app.fh34-ready #view-developer .panel{padding:25px!important}
  #app.fh34-ready #view-notifications #notifications-list{max-width:970px}
}
@media(min-width:801px) and (max-width:1320px){
  #app.fh34-ready>.side{padding-left:20px!important;padding-right:20px!important;gap:12px!important}
  #app.fh34-ready>.side>.brand{font-size:22px!important}
  #app.fh34-ready>.side>.brand:before{width:29px;height:29px;font-size:20px;margin-right:6px}
  #app.fh34-ready .side>.nav>button:not([hidden]){font-size:11px;padding:8px 10px!important}
  #app.fh34-ready>.side>div[style] #connection{display:none!important}
  /* Keep the global emoji picker available even on narrower desktops. */
  #app.fh34-ready>.side>div[style] #emoji-palette-button{
    display:inline-flex!important;font-size:0!important;min-width:36px;
    min-height:38px;justify-content:center;padding:6px!important
  }
  #app.fh34-ready>.side>div[style] #emoji-palette-button:before{
    content:'☺';font-size:19px!important;line-height:1
  }
  #app.fh34-ready #view-feed>.community-shell{grid-template-columns:minmax(0,1fr) minmax(205px,.65fr)!important}
}
@media(min-width:801px) and (max-width:1060px){
  #app.fh34-ready>.side>.brand{font-size:0!important}
  #app.fh34-ready>.side>.brand:before{font-size:20px!important}
  #app.fh34-ready>.side>.fh34-top-search{font-size:0!important;padding:10px 14px!important}
  #app.fh34-ready>.side>.fh34-top-search:before{font-size:22px!important;margin:0}
  #app.fh34-ready #view-feed>.fh34-hero{grid-template-columns:1fr;min-height:240px}
  #app.fh34-ready .fh34-hero-graphic{display:none}
  #app.fh34-ready .fh34-launch-tile{padding:14px!important}
  #app.fh34-ready .fh34-launch-emblem{width:39px;height:39px;font-size:21px}
  #app.fh34-ready #view-feed>.community-shell{grid-template-columns:1fr!important}
  #app.fh34-ready #view-feed .community-aside{position:static}
  #app.fh34-ready #view-chat .chat-layout{grid-template-columns:245px minmax(0,1fr)!important}
}
@media(max-width:800px){
  #app.fh34-ready .fh34-hero,#app.fh34-ready .fh34-launchpad,
  #app.fh34-ready .fh34-top-search{display:none!important}
}
@media(prefers-reduced-motion:reduce){
  #app.fh34-ready .fh34-launch-tile,
  #app.fh34-ready .side>.nav>button{transition:none!important;transform:none!important}
}
/* Public search dialog, opened only on a desktop. */
.fh34-finder{
  padding:0;width:min(610px,calc(100vw - 35px));
  max-height:80dvh;overflow:hidden;
  border:1px solid var(--line);border-radius:23px;
  background:var(--panel);color:var(--text);
  box-shadow:0 30px 110px #0009;
}
.fh34-finder[open]{display:flex;flex-direction:column}
.fh34-finder::backdrop{background:#050912a8;backdrop-filter:blur(5px)}
.fh34-find-input-row{
  display:flex;align-items:center;gap:13px;min-height:75px;
  border-bottom:1px solid var(--line);padding:15px 18px;
}
.fh34-find-icon{font-size:28px;color:var(--accent);line-height:1}
.fh34-find-input{
  flex:1;min-width:0;
  font-size:17px!important;background:transparent!important;
  color:var(--text)!important;border:0!important;outline:0!important;padding:8px 0!important
}
.fh34-find-close{
  font-size:11px!important;padding:8px 12px!important;
  border-radius:11px!important;background:var(--panel2)!important;color:var(--text)!important
}
.fh34-find-results{
  display:flex;flex-direction:column;gap:6px;padding:12px 15px;
  overflow-y:auto;min-height:90px;
}
.fh34-find-item{
  display:flex;align-items:center;gap:16px;min-height:51px;
  border-radius:12px!important;padding:12px 15px!important;
  background:transparent!important;border:1px solid transparent!important;
  color:var(--text)!important;text-align:left;
}
.fh34-find-item:hover,.fh34-find-item[aria-selected=true]{
  background:color-mix(in srgb,var(--accent) 15%,var(--panel2))!important;
  border-color:color-mix(in srgb,var(--accent) 30%,var(--line))!important
}
.fh34-find-type{min-width:85px;color:var(--accent);font-size:10px;font-weight:820;letter-spacing:.08em;text-transform:uppercase}
.fh34-find-item strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.fh34-find-go{color:var(--muted);font-size:21px}
.fh34-find-hint{margin:0;border-top:1px solid var(--line);padding:12px 18px;color:var(--muted);font-size:11px}
.fh34-no-result{color:var(--muted);font-size:13px;padding:15px}



/* FRIENDHUB_V35_HOME_STUDIO_CSS
 * Published visual blocks + safe Developer Home Studio editor.
 * Styling is scoped to the homepage module, no global app theme mutation.
 */
#app.fh35-home-active #view-feed>.fh34-hero,
#app.fh35-home-active #view-feed>.fh34-launchpad{display:none!important}
#app.fh35-home-active #view-feed>.fh35-home:not([hidden]){display:grid!important}
#app #view-feed>.fh35-home[hidden]{display:none!important}
.fh35-home{
  --fh35-primary:#a995f5;--fh35-secondary:#f5ab87;
  --fh35-surface:#171b2c;--fh35-text:#f8f7fb;
  --fh35-radius:26px;--fh35-gap:20px;--fh35-width:1330px;
  display:grid;grid-template-columns:minmax(0,1fr);gap:var(--fh35-gap);
  width:100%;max-width:var(--fh35-width);min-width:0;
  margin:0 auto clamp(20px,4vw,48px);
  color:var(--fh35-text);
}
.fh35-home[data-fh35-font="rounded"]{font-family:ui-rounded,"Trebuchet MS","Segoe UI",system-ui,sans-serif}
.fh35-home[data-fh35-font="serif"]{font-family:Georgia,"Times New Roman",serif}
.fh35-home[data-fh35-font="mono"]{font-family:"Cascadia Code",Consolas,monospace}
.fh35-home[data-fh35-font="system"]{font-family:system-ui,"Segoe UI",Arial,sans-serif}
.fh35-home[data-fh35-background="gradient"]{
  background:radial-gradient(ellipse 380px 240px at 12% 20%,
    color-mix(in srgb,var(--fh35-primary) 10%,transparent),transparent 90%);
}
.fh35-home[data-fh35-background="solid"]{background:var(--fh35-surface);padding:clamp(9px,1.7vw,25px);border-radius:calc(var(--fh35-radius) + 7px)}
.fh35-home[data-fh35-background="pattern"]{
  background-image:radial-gradient(color-mix(in srgb,var(--fh35-primary) 25%,transparent) 1px,transparent 1px);
  background-size:22px 22px;padding:clamp(6px,1vw,14px);border-radius:var(--fh35-radius);
}
.fh35-block{
  --fh35-block-bg:linear-gradient(125deg,
    color-mix(in srgb,var(--fh35-primary) 21%,var(--fh35-surface)),
    color-mix(in srgb,var(--fh35-secondary) 12%,var(--fh35-surface)));
  color:var(--fh35-text);position:relative;min-width:0;
  border-radius:var(--fh35-radius);overflow:hidden;
  border:1px solid color-mix(in srgb,var(--fh35-primary) 22%,var(--line));
  background:var(--fh35-block-bg);
}
.fh35-block[data-fh35-style="solid"]{background:var(--fh35-surface)}
.fh35-block[data-fh35-style="outline"]{background:transparent;border:2px solid var(--fh35-primary)}
.fh35-block[data-fh35-style="glass"]{
  background:color-mix(in srgb,var(--fh35-surface) 55%,transparent);
  backdrop-filter:blur(19px);border:1px solid #ffffff36
}
.fh35-block[data-fh35-style="transparent"]{background:transparent;border-color:transparent}
.fh35-block[data-fh35-align="center"] .fh35-section-copy{text-align:center}
.fh35-block[data-fh35-align="center"] .fh35-section-actions{justify-content:center}
.fh35-section-copy{min-width:0}
.fh35-eyebrow{
  display:block;margin:0 0 12px;color:var(--fh35-primary);
  font-size:11px;line-height:1.5;font-weight:900;letter-spacing:.16em;text-transform:uppercase;
}
.fh35-section-title{
  margin:0 0 12px;line-height:1.15;letter-spacing:-.055em;
  font-size:clamp(24px,3vw,44px);font-weight:860;color:var(--fh35-text);
  overflow-wrap:anywhere;
}
.fh35-section-body{
  margin:0;color:color-mix(in srgb,var(--fh35-text) 74%,var(--fh35-surface));
  font-size:clamp(13px,1.25vw,16px);line-height:1.75;
  max-width:68ch;white-space:pre-wrap;overflow-wrap:anywhere;
}
.fh35-section-actions{display:flex;align-items:center;flex-wrap:wrap;gap:11px;margin-top:23px}
.fh35-section-actions:empty{display:none}
.fh35-action{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:43px;padding:11px 21px!important;
  background:color-mix(in srgb,var(--fh35-surface) 85%,var(--fh35-primary))!important;
  border:1px solid color-mix(in srgb,var(--fh35-primary) 38%,transparent)!important;
  border-radius:999px!important;
  color:var(--fh35-text)!important;font-size:12px;font-weight:830;
  box-shadow:0 7px 17px #00000010;
}
.fh35-action:hover{transform:translateY(-1px);filter:brightness(1.12)}
.fh35-action-primary{
  background:var(--fh35-primary)!important;border-color:var(--fh35-primary)!important;
  color:var(--fh35-surface)!important
}
.fh35-badge{
  display:inline-flex;align-items:center;padding:7px 13px;
  font-size:11px;line-height:1.4;font-weight:880;letter-spacing:.06em;
  border-radius:999px;margin-bottom:13px;
  color:var(--fh35-text);
  background:color-mix(in srgb,var(--fh35-primary) 23%,transparent);
  border:1px solid color-mix(in srgb,var(--fh35-primary) 38%,transparent);
}
.fh35-hero{
  display:grid;grid-template-columns:minmax(0,1.4fr) minmax(150px,.8fr);
  gap:clamp(12px,3vw,44px);align-items:center;
  min-height:var(--fh35-hero-height,340px);
  padding:clamp(25px,4vw,57px);
  isolation:isolate;
}
.fh35-hero .fh35-section-title{
  max-width:15ch;font-size:clamp(32px,4.1vw,64px);letter-spacing:-.065em;
}
.fh35-hero .fh35-section-body{max-width:56ch}
.fh35-hero .fh35-section-copy{position:relative;z-index:3}
.fh35-image-frame{
  display:grid;place-items:center;position:relative;min-width:0;
  width:100%;height:100%;min-height:150px;
  border-radius:calc(var(--fh35-radius) * .66);
  overflow:hidden;background:color-mix(in srgb,var(--fh35-secondary) 14%,transparent);
  box-shadow:0 13px 41px #0000001d;
}
.fh35-hero-picture,.fh35-feature-img{
  display:block;width:100%;height:100%;max-height:520px;
  object-fit:cover;object-position:center;border-radius:inherit;
}
.fh35-hero-art{position:relative;min-height:230px;height:100%}
.fh35-hero-art>span{display:grid;place-items:center;position:absolute;box-shadow:0 12px 31px #00000021}
.fh35-art-smile{
  width:155px;height:155px;left:11%;top:16%;border-radius:46px 46px 60px 24px;
  transform:rotate(-12deg);font-size:91px;
  background:linear-gradient(120deg,var(--fh35-secondary),color-mix(in srgb,var(--fh35-primary) 35%,#f9d9b9));
  color:var(--fh35-surface)
}
.fh35-art-star{
  width:110px;height:110px;right:7%;top:5%;
  border-radius:50% 33% 46% 28%;transform:rotate(15deg);font-size:70px;
  color:var(--fh35-surface);background:var(--fh35-primary)
}
.fh35-art-tag{
  width:min(80%,190px);height:57px;right:8%;bottom:4%;
  font-size:11px;letter-spacing:.09em;font-weight:900;
  color:var(--fh35-surface);background:color-mix(in srgb,var(--fh35-text) 90%,var(--fh35-secondary));
  transform:rotate(8deg);border-radius:16px
}
.fh35-hero[data-fh35-image-position="left"],.fh35-feature[data-fh35-image-position="left"]{
  grid-template-columns:minmax(150px,.75fr) minmax(0,1.4fr)
}
.fh35-hero[data-fh35-image-position="left"]>.fh35-section-copy,
.fh35-feature[data-fh35-image-position="left"]>.fh35-section-copy{grid-column:2;grid-row:1}
.fh35-hero[data-fh35-image-position="left"]>.fh35-image-frame,
.fh35-hero[data-fh35-image-position="left"]>.fh35-hero-art,
.fh35-feature[data-fh35-image-position="left"]>.fh35-feature-media{grid-column:1;grid-row:1}
.fh35-hero[data-fh35-image-position="background"]{display:flex;align-items:center}
.fh35-hero[data-fh35-image-position="background"] .fh35-image-frame{
  position:absolute;inset:0;min-height:0;height:100%;border-radius:0;
  filter:brightness(.41) saturate(.86);z-index:0;
}
.fh35-hero[data-fh35-image-position="background"] .fh35-section-title{max-width:24ch}
.fh35-home[data-fh35-hero-style="center"] .fh35-hero{
  display:flex;flex-direction:column;justify-content:center;text-align:center
}
.fh35-home[data-fh35-hero-style="center"] .fh35-hero .fh35-section-title{max-width:21ch}
.fh35-home[data-fh35-hero-style="center"] .fh35-hero .fh35-section-body{margin:auto}
.fh35-home[data-fh35-hero-style="center"] .fh35-hero .fh35-section-actions{justify-content:center}
.fh35-home[data-fh35-hero-style="center"] .fh35-hero .fh35-image-frame,
.fh35-home[data-fh35-hero-style="center"] .fh35-hero .fh35-hero-art{display:none}
.fh35-home[data-fh35-hero-style="poster"] .fh35-hero{
  display:flex;align-items:end;min-height:max(370px,var(--fh35-hero-height));
}
.fh35-home[data-fh35-hero-style="poster"] .fh35-hero .fh35-image-frame{
  position:absolute;inset:0;min-height:0;height:100%;border-radius:0;
  filter:brightness(.45);z-index:0;
}
.fh35-home[data-fh35-hero-style="poster"] .fh35-hero .fh35-hero-art{display:none}
.fh35-home[data-fh35-hero-style="poster"] .fh35-hero .fh35-section-title{max-width:22ch}
.fh35-links,.fh35-highlights{padding:clamp(20px,3vw,35px);display:grid;gap:21px}
.fh35-links .fh35-section-title,.fh35-highlights .fh35-section-title{font-size:clamp(23px,2.4vw,35px)}
.fh35-tile-grid{
  display:grid;grid-template-columns:repeat(var(--fh35-columns,3),minmax(0,1fr));gap:13px;
}
.fh35-tile{
  display:flex;gap:13px;align-items:center;text-align:left;min-width:0;
  min-height:94px;padding:17px!important;border-radius:calc(var(--fh35-radius) * .7)!important;
  background:color-mix(in srgb,var(--fh35-surface) 75%,var(--fh35-primary))!important;
  border:1px solid color-mix(in srgb,var(--fh35-primary) 18%,transparent)!important;
  color:var(--fh35-text)!important;
  transition:transform .16s ease,border-color .16s ease;
}
button.fh35-tile:hover{
  transform:translateY(-3px);
  border-color:var(--fh35-primary)!important;
}
.fh35-tile-icon{
  display:grid;place-items:center;flex:none;
  width:50px;height:50px;border-radius:17px;
  background:color-mix(in srgb,var(--fh35-tile-accent) 23%,var(--fh35-surface));
  color:var(--fh35-tile-accent);font-size:27px;
}
.fh35-tile-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px;overflow-wrap:anywhere}
.fh35-tile-copy strong{font-size:15px;line-height:1.25}
.fh35-tile-copy small{font-size:12px;line-height:1.45;opacity:.75}
.fh35-tile-arrow{font-size:21px;opacity:.6;align-self:flex-start}
.fh35-notice{
  display:flex;align-items:center;gap:17px;
  padding:23px clamp(20px,3vw,37px);min-height:107px;
}
.fh35-notice-icon{font-size:30px;color:var(--fh35-secondary);flex:none}
.fh35-notice .fh35-section-copy{flex:1}
.fh35-notice .fh35-section-title{font-size:clamp(18px,1.7vw,25px);margin-bottom:3px}
.fh35-notice .fh35-section-body{font-size:12px}
.fh35-notice .fh35-section-actions{margin:0;flex:none}
.fh35-feature{
  display:grid;grid-template-columns:minmax(0,1.2fr) minmax(180px,1fr);
  gap:clamp(18px,4vw,45px);align-items:center;
  padding:clamp(20px,3vw,38px);min-height:240px
}
.fh35-feature-media{
  display:grid;place-items:center;height:280px;min-width:0;
  background:color-mix(in srgb,var(--fh35-primary) 15%,var(--fh35-surface));
  border-radius:calc(var(--fh35-radius) * .7);overflow:hidden;
}
.fh35-feature-symbol{font-size:125px;line-height:1;color:var(--fh35-primary)}
.fh35-quote{text-align:center;padding:clamp(28px,4vw,60px);display:grid;gap:12px}
.fh35-quote .fh35-eyebrow{margin:0}
.fh35-quote-line{
  max-width:46ch;margin:0 auto;font-size:clamp(22px,3vw,44px);
  font-weight:650;line-height:1.27;letter-spacing:-.045em;
}
.fh35-quote-credit{color:var(--fh35-secondary);font-weight:800;font-size:12px}
.fh35-text{padding:clamp(20px,3vw,38px)}
.fh35-text .fh35-section-body{max-width:93ch}
.fh35-spacer{
  height:var(--fh35-spacer,44px);border:none;background:transparent!important;
}
/* Optional floating decoration motion; respects reduced-motion settings */
@keyframes fh35Float{0%,100%{translate:0 0}50%{translate:0 -8px}}
.fh35-home:not(.fh35-no-motion) .fh35-art-smile{animation:fh35Float 5s ease-in-out infinite}
.fh35-home:not(.fh35-no-motion) .fh35-art-star{animation:fh35Float 6s ease-in-out .6s infinite}
@media(prefers-reduced-motion:reduce){
  .fh35-home .fh35-art-smile,.fh35-home .fh35-art-star{animation:none!important}
  .fh35-home .fh35-tile{transition:none!important;transform:none!important}
}
/* Small screens show published sections if each block is mobile-enabled. */
@media(max-width:800px){
  #app #view-feed>.fh35-home{padding:4px 0 0;margin:0 0 23px;gap:13px}
  .fh35-home .fh35-hero,.fh35-home .fh35-feature{grid-template-columns:minmax(0,1fr);padding:24px 19px;min-height:185px}
  .fh35-home .fh35-hero .fh35-image-frame,
  .fh35-home .fh35-hero .fh35-hero-art{display:none}
  .fh35-home .fh35-section-title{font-size:clamp(22px,6vw,33px)}
  .fh35-home .fh35-hero .fh35-section-title{font-size:clamp(26px,7vw,39px)}
  .fh35-home .fh35-notice{padding:19px;display:grid;grid-template-columns:24px minmax(0,1fr)}
  .fh35-home .fh35-notice .fh35-section-actions{grid-column:1/-1}
  .fh35-home .fh35-tile-grid{grid-template-columns:1fr 1fr}
  .fh35-home .fh35-links,.fh35-home .fh35-highlights{padding:18px;gap:15px}
  .fh35-home .fh35-tile{padding:12px!important;gap:8px;min-height:90px;flex-direction:column;align-items:flex-start}
  .fh35-home .fh35-tile-icon{width:36px;height:36px;font-size:20px;border-radius:12px}
  .fh35-home .fh35-tile-copy strong{font-size:12px}
  .fh35-home .fh35-tile-copy small{font-size:10px}
  .fh35-home .fh35-tile-arrow{display:none}
  .fh35-home .fh35-feature-media{height:150px}
  .fh35-home .fh35-quote{padding:26px}
}
@media(max-width:390px){
  .fh35-home .fh35-tile-grid{grid-template-columns:1fr}
  .fh35-home .fh35-tile{flex-direction:row;align-items:center}
}
/* Developer editor begins here. */
#fh35-studio{
  display:grid;gap:18px;margin:0 0 19px;
  padding:clamp(17px,2.6vw,29px)!important;border-radius:23px!important;
  background:linear-gradient(145deg,
    color-mix(in srgb,var(--accent) 9%,var(--panel)),var(--panel))!important;
  border:1px solid var(--line)!important;
}
#fh35-studio .fh35-studio-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap}
#fh35-studio .fh35-heading-copy{max-width:720px}
#fh35-studio .fh35-overline{display:block;font-size:10px;font-weight:880;color:var(--accent);letter-spacing:.14em;margin-bottom:9px}
#fh35-studio .fh35-heading-copy h2{font-size:clamp(25px,2.5vw,35px);margin:0 0 7px;letter-spacing:-.04em}
#fh35-studio .fh35-heading-copy p{line-height:1.6;margin:0}
#fh35-studio .fh35-studio-state{
  display:flex;align-items:flex-end;flex-direction:column;gap:4px;
  padding:12px 17px;background:var(--panel2);border:1px solid var(--line);border-radius:14px;
}
#fh35-studio .fh35-studio-state strong{font-size:13px}
#fh35-studio .fh35-dirty{font-size:11px;color:var(--muted)}
#fh35-studio .fh35-is-dirty{color:#f0ba7d}
#fh35-studio .fh35-studio-actions{display:flex;gap:9px;flex-wrap:wrap}
#fh35-studio .fh35-studio-actions button{font-size:12px;font-weight:780;min-height:42px;padding:10px 15px}
#fh35-studio .fh35-publish-btn{
  background:var(--accent)!important;color:#15213c!important;
  border:1px solid var(--accent)!important;font-weight:900!important;
}
#fh35-studio .fh35-studio-tabs{display:flex;align-items:center;gap:7px;overflow-x:auto;padding-bottom:10px;border-bottom:1px solid var(--line)}
#fh35-studio .fh35-studio-tab{
  min-width:max-content;border-radius:999px!important;border:1px solid transparent!important;
  font-size:12px;font-weight:800;padding:10px 14px!important;
  background:var(--panel2)!important;
}
#fh35-studio .fh35-studio-tab.active{
  background:color-mix(in srgb,var(--accent) 20%,var(--panel2))!important;
  border-color:var(--accent)!important;color:var(--text)
}
#fh35-studio .fh35-studio-layout{
  display:grid;grid-template-columns:minmax(300px,.9fr) minmax(320px,1.1fr);gap:17px;align-items:start;min-width:0
}
#fh35-studio :is(.fh35-editor-pane,.fh35-preview-pane){
  display:grid;gap:14px;min-width:0;
  border:1px solid var(--line);border-radius:17px;
  padding:15px;background:var(--panel)
}
#fh35-studio .fh35-editor-pane{max-height:770px;overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain}
#fh35-studio .fh35-editor-inner{display:grid;gap:17px}
#fh35-studio .fh35-panel-section{display:grid;gap:12px;padding:0 0 16px;border-bottom:1px solid var(--line)}
#fh35-studio .fh35-panel-section:last-child{border:0}
#fh35-studio .fh35-panel-section h3{font-size:16px;letter-spacing:-.015em;margin:0}
#fh35-studio .fh35-helper{
  margin:0;color:var(--muted);font-size:12px;line-height:1.6
}
#fh35-studio .fh35-add-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#fh35-studio .fh35-add-bar select{flex:1;min-width:150px}
#fh35-studio .fh35-accent-button{
  background:var(--accent)!important;color:#1b2636!important;
  border-color:var(--accent)!important;font-weight:850
}
#fh35-studio .fh35-block-list{display:grid;gap:7px}
#fh35-studio .fh35-block-row{
  display:flex;gap:6px;align-items:center;
  border:1px solid var(--line);border-radius:12px;
  background:var(--panel2);padding:7px;min-width:0
}
#fh35-studio .fh35-block-row.selected{
  border-color:var(--accent);background:color-mix(in srgb,var(--accent) 13%,var(--panel2))
}
#fh35-studio .fh35-block-row.disabled{opacity:.6}
#fh35-studio .fh35-block-row.dragover{outline:2px dashed var(--accent)}
#fh35-studio .fh35-block-face{
  display:flex;flex:1;align-items:center;gap:10px;
  min-width:0;text-align:left;border:0!important;background:transparent!important;padding:7px!important
}
#fh35-studio .fh35-drag-handle{font-size:18px;color:var(--muted);cursor:grab}
#fh35-studio .fh35-block-description{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
#fh35-studio .fh35-block-description strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#fh35-studio .fh35-block-description small{font-size:10px;color:var(--muted)}
#fh35-studio .fh35-block-tools{display:flex;gap:3px}
#fh35-studio .fh35-block-tools button{
  padding:5px 7px!important;min-height:31px;min-width:27px;border-radius:7px!important;
}
#fh35-studio .fh35-inspector-top{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
#fh35-studio .fh35-danger-btn{color:#e6a1a1!important;font-size:11px}
#fh35-studio .fh35-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px;font-weight:710}
#fh35-studio .fh35-field-title{line-height:1.45}
#fh35-studio .fh35-field :is(input,textarea,select){min-width:0;width:100%;max-width:100%;font-size:12px;padding:10px 11px;border-radius:10px}
#fh35-studio .fh35-field input[type=color]{height:45px;padding:4px}
#fh35-studio .fh35-field input[type=range]{padding:0;accent-color:var(--accent)}
#fh35-studio .fh35-field textarea{min-height:67px;resize:vertical}
#fh35-studio .fh35-field-hint{font-weight:400;color:var(--muted);font-size:11px;line-height:1.5}
#fh35-studio .fh35-range-value{color:var(--accent);font-weight:790}
#fh35-studio .fh35-checkbox-field{display:flex;flex-direction:row-reverse;justify-content:flex-end;align-items:center;gap:8px}
#fh35-studio .fh35-checkbox-field input{width:17px;max-width:17px;height:17px;accent-color:var(--accent)}
#fh35-studio .fh35-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#fh35-studio .fh35-link-row,#fh35-studio .fh35-tile-editor{
  display:grid;gap:9px;padding:12px;
  border:1px solid var(--line);border-radius:12px;background:var(--panel2)
}
#fh35-studio .fh35-link-row .fh35-danger-btn{justify-self:end}
#fh35-studio .fh35-editor-item-head{display:flex;justify-content:space-between;align-items:center}
#fh35-studio .fh35-editor-item-head strong{font-size:12px}
#fh35-studio .fh35-small-add{font-size:12px;border-style:dashed!important;justify-self:start}
#fh35-studio .fh35-image-controls{display:grid;gap:10px}
#fh35-studio .fh35-image-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#fh35-studio .fh35-image-row select{max-width:100%;min-width:0}
#fh35-studio .fh35-image-row input{max-width:100%;min-width:0;font-size:11px}
#fh35-studio .fh35-preset-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#fh35-studio .fh35-preset{
  display:flex;align-items:center;gap:9px;min-height:55px;min-width:0;
  padding:9px!important;border-radius:11px!important;text-align:left;
  background:var(--panel2)!important;border:1px solid var(--line)!important
}
#fh35-studio .fh35-preset.selected{border-color:var(--accent)!important}
#fh35-studio .fh35-preset strong{font-size:11px;min-width:0}
#fh35-studio .fh35-preset-chips{display:flex;gap:0;align-items:center;flex:none}
#fh35-studio .fh35-preset-chip{width:16px;height:27px;display:block;border:1px solid #ffffff22}
#fh35-studio .fh35-preset-chip:first-child{border-radius:7px 0 0 7px}
#fh35-studio .fh35-preset-chip:last-child{border-radius:0 7px 7px 0}
#fh35-studio .fh35-preview-pane{position:sticky;top:15px;max-height:770px}
#fh35-studio .fh35-preview-top{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:space-between}
#fh35-studio .fh35-preview-top strong{font-size:14px}
#fh35-studio .fh35-preview-modes{display:flex;gap:4px}
#fh35-studio .fh35-preview-modes button{
  border-radius:999px!important;padding:7px 13px!important;font-size:11px;font-weight:770
}
#fh35-studio .fh35-preview-modes button.active{
  background:var(--accent)!important;color:#16233a!important;border-color:var(--accent)!important
}
#fh35-studio .fh35-preview-viewport{
  background:color-mix(in srgb,var(--bg) 86%,var(--panel2));
  border-radius:14px;border:1px solid var(--line);
  min-height:420px;max-height:610px;padding:14px;
  overflow:auto;display:flex;justify-content:center;align-items:flex-start;
  overscroll-behavior:contain;scrollbar-width:thin
}
#fh35-studio .fh35-preview-viewport.phone{
  background:repeating-linear-gradient(45deg,var(--panel2),var(--panel2) 8px,var(--bg) 8px,var(--bg) 16px);
}
#fh35-studio .fh35-preview-screen{
  display:grid;gap:10px;align-content:start;
  max-width:100%;width:100%;min-width:0;
}
#fh35-studio .fh35-preview-viewport.phone .fh35-preview-screen{
  max-width:365px;width:100%;margin:auto;border:6px solid #26283b;border-radius:31px;
  padding:17px 10px;background:var(--bg);box-shadow:0 22px 40px #0006;
}
#fh35-studio .fh35-preview-screen .fh35-block{border-radius:calc(var(--fh35-radius) * .56);min-height:0}
#fh35-studio .fh35-preview-screen .fh35-hero{min-height:190px;padding:23px;grid-template-columns:1fr 130px}
#fh35-studio .fh35-preview-screen .fh35-hero .fh35-section-title{font-size:clamp(21px,2vw,31px)}
#fh35-studio .fh35-preview-screen .fh35-section-title{font-size:clamp(18px,1.8vw,26px)}
#fh35-studio .fh35-preview-screen .fh35-section-body{font-size:11px;line-height:1.55}
#fh35-studio .fh35-preview-screen .fh35-eyebrow{font-size:9px}
#fh35-studio .fh35-preview-screen .fh35-action{font-size:10px;padding:8px 12px!important;min-height:33px}
#fh35-studio .fh35-preview-screen .fh35-tile-grid{gap:6px}
#fh35-studio .fh35-preview-screen .fh35-tile{padding:9px!important;min-height:70px;gap:7px}
#fh35-studio .fh35-preview-screen .fh35-tile-icon{height:30px;width:30px;font-size:16px;border-radius:9px}
#fh35-studio .fh35-preview-screen .fh35-tile-copy strong{font-size:10px}
#fh35-studio .fh35-preview-screen .fh35-tile-copy small{font-size:9px}
#fh35-studio .fh35-preview-viewport.phone .fh35-hero{grid-template-columns:1fr;min-height:150px}
#fh35-studio .fh35-preview-viewport.phone :is(.fh35-hero-art,.fh35-image-frame){display:none}
#fh35-studio .fh35-preview-viewport.phone .fh35-tile-grid{grid-template-columns:1fr 1fr}
#fh35-studio .fh35-preview-viewport.phone .fh35-tile{flex-direction:column;align-items:flex-start}
#fh35-studio .fh35-preview-viewport.phone .fh35-hero .fh35-section-title{font-size:23px}
#fh35-studio .fh35-preview-note{color:var(--muted);font-size:10px;line-height:1.5;margin:0}
#fh35-studio .fh35-studio-status{
  min-height:22px;margin:0;padding:9px 11px;color:var(--accent);
  font-size:12px;line-height:1.5;border-radius:9px
}
#fh35-studio .fh35-error{color:#ec9d9d!important}
#fh35-studio .fh35-upload-zone{
  display:grid;gap:10px;place-items:start;padding:22px;
  border:2px dashed var(--line);border-radius:14px;background:var(--panel2)
}
#fh35-studio .fh35-upload-zone strong{font-size:15px}
#fh35-studio .fh35-upload-zone p{font-size:12px;margin:0}
#fh35-studio .fh35-asset-gallery{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px
}
#fh35-studio .fh35-asset-card{
  display:grid;gap:7px;min-width:0;padding:10px;
  border:1px solid var(--line);border-radius:12px;background:var(--panel2)
}
#fh35-studio .fh35-asset-thumbnail{
  display:block;height:115px;width:100%;object-fit:cover;border-radius:9px
}
#fh35-studio .fh35-asset-card strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#fh35-studio .fh35-asset-card small{font-size:10px;color:var(--muted)}
#fh35-studio .fh35-history-actions{display:flex;gap:9px;flex-wrap:wrap}
#fh35-studio .fh35-version-list{display:grid;gap:8px}
#fh35-studio .fh35-version-row{
  display:flex;align-items:center;justify-content:space-between;
  gap:9px;flex-wrap:wrap;padding:12px;
  border:1px solid var(--line);border-radius:12px;background:var(--panel2)
}
#fh35-studio .fh35-version-row strong{font-size:13px}
#fh35-studio .fh35-version-row span{font-size:11px}
#fh35-studio .fh35-version-row button{font-size:11px}
#fh35-studio.fh35-studio-expanded{
  position:fixed!important;inset:1.5dvh 1.5vw;z-index:1100!important;
  overflow:auto;max-width:97vw!important;max-height:97dvh;
  box-shadow:0 0 0 110vw #0009,0 24px 100px #000a;
}
body.fh35-studio-open{overflow:hidden!important}
#fh35-studio.fh35-studio-expanded .fh35-studio-layout{grid-template-columns:minmax(290px,.6fr) minmax(350px,1.4fr)}
#fh35-studio.fh35-studio-expanded .fh35-preview-pane,
#fh35-studio.fh35-studio-expanded .fh35-editor-pane{max-height:80dvh}
#fh35-studio.fh35-studio-expanded .fh35-preview-viewport{max-height:72dvh}
@media(max-width:1190px){
  #fh35-studio .fh35-studio-layout{grid-template-columns:1fr}
  #fh35-studio .fh35-preview-pane{position:static}
  #fh35-studio .fh35-editor-pane{max-height:none}
}
@media(max-width:800px){
  #fh35-studio .fh35-studio-heading{flex-direction:column}
  #fh35-studio .fh35-studio-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  #fh35-studio .fh35-studio-actions button{font-size:11px;padding:9px!important}
  #fh35-studio .fh35-field-grid{grid-template-columns:1fr 1fr}
  #fh35-studio .fh35-preview-viewport{max-height:410px}
  #fh35-studio.fh35-studio-expanded{inset:0;max-width:none!important;max-height:100dvh;border-radius:0!important}
}



/* FRIENDHUB_V36_STAFF_CSS
 * Organized, compact moderation console. Theme-aware, desktop + mobile.
 */
#view-developer .fh36-hidden-original-heading,
#view-developer #fh36-embedded-staff>h1,
#view-developer #fh36-embedded-staff>p.muted,
#view-fh8-staff>h1,
#view-fh8-staff>p.muted,
#fh8-staff-buttons{display:none!important}
#view-developer .fh36-head,#view-fh8-staff .fh36-head{
  display:flex;align-items:center;justify-content:space-between;gap:17px;
  padding:25px 30px;margin:0 0 20px;
  border:1px solid var(--line);border-radius:22px;
  background:linear-gradient(120deg,
    color-mix(in srgb,var(--accent) 22%,var(--panel)),
    color-mix(in srgb,#7797c7 10%,var(--panel)));
  overflow:hidden;
}
#view-developer .fh36-kicker,#view-fh8-staff .fh36-kicker{
  display:block;font-size:10px;font-weight:850;letter-spacing:.15em;
  color:var(--accent);margin-bottom:8px
}
#view-developer .fh36-head h1,#view-fh8-staff .fh36-head h1{
  font-size:clamp(25px,3vw,39px);letter-spacing:-.055em;
  line-height:1.13;margin:0 0 8px
}
#view-developer .fh36-head p,#view-fh8-staff .fh36-head p{
  margin:0;color:var(--muted);line-height:1.6;font-size:13px;max-width:66ch
}
#view-developer .fh36-role,#view-fh8-staff .fh36-role{
  flex:none;padding:9px 13px;border-radius:999px;
  background:color-mix(in srgb,var(--accent) 19%,var(--panel2));
  border:1px solid color-mix(in srgb,var(--accent) 39%,var(--line));
  font-weight:800;font-size:11px;color:var(--text);
}
#view-developer .fh36-tabs,#view-fh8-staff .fh36-tabs{
  display:flex;gap:7px;align-items:center;flex-wrap:wrap;
  padding:9px;margin:0 0 20px;
  border:1px solid var(--line);background:var(--panel);
  border-radius:16px;
}
#view-developer .fh36-tab,#view-fh8-staff .fh36-tab{
  padding:10px 15px!important;min-height:40px;
  border:1px solid transparent!important;
  border-radius:11px!important;background:transparent!important;
  color:var(--muted)!important;font-size:12px;font-weight:770;
}
#view-developer .fh36-tab:hover,#view-fh8-staff .fh36-tab:hover{
  color:var(--text)!important;background:var(--panel2)!important
}
#view-developer .fh36-tab.active,#view-fh8-staff .fh36-tab.active{
  color:var(--text)!important;border-color:var(--line)!important;
  background:color-mix(in srgb,var(--accent) 19%,var(--panel2))!important;
}
#view-developer .fh36-pane,#view-fh8-staff .fh36-pane{
  display:grid;gap:16px;min-width:0;align-content:start
}
#view-developer .fh36-pane[hidden],#view-fh8-staff .fh36-pane[hidden]{
  display:none!important
}
#view-developer .fh36-pane>h2,#view-fh8-staff .fh36-pane>h2{
  margin:5px 2px 0;letter-spacing:-.035em;font-size:23px
}
.fh36-muted{font-size:12px;color:var(--muted);line-height:1.6;margin:0}
.fh36-dashboard{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr));gap:13px
}
.fh36-dashboard-card{
  display:flex;align-items:center;text-align:left;gap:15px;
  min-height:102px;padding:19px!important;
  background:var(--panel)!important;
  border:1px solid var(--line)!important;
  border-radius:17px!important;color:var(--text)!important;
  box-shadow:0 5px 20px #0000000b;
}
.fh36-dashboard-card:hover{
  border-color:var(--accent)!important;
  background:color-mix(in srgb,var(--accent) 8%,var(--panel))!important;
}
.fh36-dashboard-icon{
  display:grid;place-items:center;flex:none;
  width:48px;height:48px;font-size:25px;
  border-radius:15px;background:color-mix(in srgb,var(--accent) 18%,var(--panel2));
  color:var(--accent);
}
.fh36-dashboard-text{
  display:flex;flex-direction:column;gap:5px;flex:1;min-width:0
}
.fh36-dashboard-text strong{font-size:14px;font-weight:820;letter-spacing:-.015em}
.fh36-dashboard-text small{font-size:11px;color:var(--muted);line-height:1.5}
.fh36-dashboard-arrow{font-size:20px;color:var(--muted)}
#view-developer .fh36-pane>.panel,#view-fh8-staff .fh36-pane>.panel{
  border-radius:18px!important;padding:22px!important;margin:0!important
}
#view-developer #fh32-studio,#view-developer #fh35-studio{
  width:100%;max-width:none;margin:0!important
}
#view-developer #fh36-embedded-staff{display:grid;gap:17px}
#view-developer #fh36-embedded-staff>#fh8-staff-screen{
  display:grid;gap:12px;min-width:0
}
#view-fh8-staff #fh8-staff-screen[hidden]{display:none!important}
#view-developer #fh8-staff-screen .panel,
#view-fh8-staff #fh8-staff-screen .panel{padding:22px;border-radius:17px}
.fh36-team-options{
  display:flex;flex-wrap:wrap;gap:8px;margin-bottom:4px
}
.fh36-team-options button{
  background:var(--panel2)!important;border:1px solid var(--line)!important;
  min-height:40px;padding:9px 14px!important;border-radius:11px!important;
  font-size:12px;font-weight:760;
}
.fh36-team-options button.active{
  background:color-mix(in srgb,var(--accent) 21%,var(--panel2))!important;
  border-color:var(--accent)!important;
}
.fh36-panel-intro{
  display:grid;gap:8px;padding:23px 25px;
  border:1px solid var(--line);border-radius:18px;
  background:linear-gradient(130deg,var(--panel),
    color-mix(in srgb,var(--accent) 8%,var(--panel)));
}
.fh36-panel-intro h2{font-size:24px;letter-spacing:-.035em;margin:0}
.fh36-search-form{display:flex;gap:10px;align-items:center}
.fh36-search-form input{
  flex:1;min-width:0;padding:12px 15px!important;min-height:47px;
  border-radius:12px!important;background:var(--panel2);
}
.fh36-search-form button{min-height:47px;padding:11px 19px!important}
.fh36-primary{
  background:var(--accent)!important;color:#172239!important;
  border-color:var(--accent)!important;font-weight:800!important
}
.fh36-contact-results,.fh36-contact-threads{display:grid;gap:9px}
.fh36-person-row{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  background:var(--panel);border:1px solid var(--line);
  border-radius:14px;padding:15px 18px
}
.fh36-person-identity{display:grid;gap:4px}
.fh36-person-identity strong{font-size:14px}
.fh36-person-identity span{font-size:12px;color:var(--muted)}
.fh36-person-row button{font-size:12px;min-height:38px;padding:9px 13px!important}
.fh36-error{font-size:12px;color:#e99c9c}
.fh36-contact-action{
  display:inline-flex;align-items:center;justify-content:center;gap:4px;
  max-width:100%;width:max-content;min-height:29px;
  padding:5px 9px!important;margin:7px 0 0!important;
  font-size:10px!important;font-weight:760!important;
  background:color-mix(in srgb,var(--accent) 14%,var(--panel2))!important;
  border:1px solid color-mix(in srgb,var(--accent) 34%,var(--line))!important;
  border-radius:9px!important;color:var(--text)!important;
  position:relative;z-index:4;
}
.fh36-contact-action:hover{border-color:var(--accent)!important}
.fh36-handle{
  display:block;font-size:11px!important;font-weight:570!important;
  color:var(--muted)!important;margin:1px 0 0;
  overflow:hidden;text-overflow:ellipsis;max-width:100%
}
.fh29-v6-person .fh36-contact-action,
.fh29-v7-call-person .fh36-contact-action,
.fh12-person .fh36-contact-action{
  margin-top:8px!important;align-self:center;flex:none;
}
.fh29-v8-mini-person .fh36-contact-action{
  font-size:0!important;min-height:27px;width:27px;padding:4px!important
}
.fh29-v8-mini-person .fh36-contact-action:before{
  content:'+';font-size:17px;line-height:1
}
.fh29-v8-mini-person .fh36-handle{display:none}
.fh36-profile-dialog{
  width:min(510px,calc(100vw - 30px));padding:24px;
  color:var(--text);background:var(--panel);
  border:1px solid var(--line);border-radius:21px;
  box-shadow:0 25px 100px #0009;
}
.fh36-profile-dialog::backdrop{background:#020813ac;backdrop-filter:blur(3px)}
.fh36-contact-head{display:flex;align-items:center;gap:17px;min-width:0;margin-bottom:21px}
.fh36-contact-avatar{
  display:grid;place-items:center;flex:none;
  width:70px;height:70px;border-radius:19px;overflow:hidden;
  background:color-mix(in srgb,var(--accent) 22%,var(--panel2));
  font-size:32px;color:var(--accent)
}
.fh36-contact-avatar img{display:block;object-fit:cover;height:70px;width:70px;border-radius:19px}
.fh36-contact-about{min-width:0}
.fh36-contact-about h2{font-size:21px;margin:0 0 5px;letter-spacing:-.035em;overflow-wrap:anywhere}
.fh36-contact-about p{font-size:13px;color:var(--muted);margin:0}
.fh36-contact-message{min-height:18px;font-size:12px;color:var(--accent);margin:0 0 13px}
.fh36-contact-controls{display:flex;gap:9px;flex-wrap:wrap}
.fh36-contact-controls button{
  font-size:12px;min-height:40px;padding:10px 14px!important;border-radius:11px!important
}
.fh36-contact-controls button[hidden]{display:none!important}
@media(max-width:800px){
  #view-developer .fh36-head,#view-fh8-staff .fh36-head{
    padding:19px;align-items:flex-start;flex-direction:column;
  }
  #view-developer .fh36-role,#view-fh8-staff .fh36-role{align-self:flex-start}
  #view-developer .fh36-tabs,#view-fh8-staff .fh36-tabs{
    flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding:6px;
  }
  #view-developer .fh36-tab,#view-fh8-staff .fh36-tab{flex:none}
  .fh36-dashboard{grid-template-columns:1fr}
  .fh36-search-form{flex-wrap:wrap}
  .fh36-search-form input{flex:1 1 100%}
  .fh36-contact-controls{display:grid;grid-template-columns:1fr 1fr}
  .fh36-profile-dialog{padding:18px}
}


/* FRIENDHUB_V37_VOICE_RECOVERY_STYLE */
#fh37-recovery-status:not([hidden]){position:fixed;z-index:1900;bottom:18px;left:18px;
  max-width:min(370px,calc(100vw - 36px));padding:12px 17px;border:1px solid var(--line);
  color:var(--text);background:var(--panel);border-radius:14px;box-shadow:0 8px 32px #0007;
  font-size:12px;font-weight:720;line-height:1.5;pointer-events:auto;
  display:flex;align-items:center;gap:13px;justify-content:space-between}
#fh37-recovery-status button:not([hidden]){
  background:var(--panel2)!important;color:var(--text)!important;
  border:1px solid var(--line)!important;border-radius:9px!important;
  font-size:11px!important;font-weight:820;padding:7px 10px!important;
  white-space:nowrap} 
@media(max-width:800px){#fh37-recovery-status:not([hidden]){bottom:80px;left:12px}}


/* FRIENDHUB_V38_GROUP_CSS
   Group theme colors in actual navigation, owner privacy studio, visible live voice badges.
*/
#view-groups #group-detail>.panel:first-child{
  --fh38-accent:var(--accent);
}
#view-groups #group-detail .group-tabs{
  border:1px solid color-mix(in srgb,var(--fh38-accent) 36%,var(--line))!important;
  background:linear-gradient(115deg,
    color-mix(in srgb,var(--fh38-accent) 24%,var(--panel2)),
    color-mix(in srgb,var(--fh38-accent) 11%,var(--panel)))!important;
  border-radius:17px!important;
  padding:12px!important;margin-top:18px!important;
  box-shadow:inset 0 1px 0 #ffffff0a,0 6px 21px #0002;
}
#view-groups #group-detail>.panel:first-child.fh28-gradient .group-tabs{
  background:linear-gradient(var(--fh28-direction,125deg),
    color-mix(in srgb,var(--fh28-color-a) 40%,var(--panel2)),
    color-mix(in srgb,var(--fh28-color-b) 38%,var(--panel2)))!important;
  border-color:color-mix(in srgb,var(--fh28-color-a) 52%,var(--line))!important;
}
#view-groups #group-detail .group-tabs>button{
  color:var(--text)!important;
  background:color-mix(in srgb,var(--fh38-accent) 11%,var(--panel2))!important;
  border:1px solid color-mix(in srgb,var(--fh38-accent) 24%,var(--line))!important;
  transition:background .15s ease,border-color .15s ease;
}
#view-groups #group-detail .group-tabs>button.active{
  color:var(--text)!important;
  background:color-mix(in srgb,var(--fh38-accent) 36%,var(--panel2))!important;
  border-color:var(--fh38-accent)!important;
  box-shadow:inset 0 -2px 0 var(--fh38-accent);
}
#view-groups #group-detail>.panel:first-child.fh28-gradient .group-tabs>button{
  background:color-mix(in srgb,var(--fh28-color-b) 20%,var(--panel2))!important;
  border-color:color-mix(in srgb,var(--fh28-color-a) 27%,var(--line))!important;
}
#view-groups #group-detail>.panel:first-child.fh28-gradient .group-tabs>button.active{
  background:linear-gradient(var(--fh28-direction,125deg),
    color-mix(in srgb,var(--fh28-color-a) 44%,var(--panel2)),
    color-mix(in srgb,var(--fh28-color-b) 40%,var(--panel2)))!important;
  border-color:var(--fh28-color-a)!important;
  box-shadow:inset 0 -2px 0 var(--fh28-color-b);
}
#view-groups .fh38-voice-live:not([hidden]),#view-groups .fh38-card-voice:not([hidden]){
  display:inline-flex;align-items:center;gap:5px;
  font-size:10px;font-weight:850;letter-spacing:.01em;
  border:1px solid #68d7a570;background:#20553f;color:#c3ffe0;
  padding:4px 8px;border-radius:999px;white-space:nowrap;
}
#view-groups .group-tabs .fh38-voice-live:not([hidden]){margin-left:8px}
#view-groups .group-choice .fh38-card-voice:not([hidden]){
  margin:9px 14px 0;align-self:start;max-width:calc(100% - 28px);
  white-space:normal;line-height:1.3;
}
#view-groups .fh38-card-privacy:not([hidden]){
  display:inline-flex;align-self:start;margin:5px 14px 1px;
  font-size:10px;font-weight:800;color:#eddbff;
  background:#563c7d;border:1px solid #a18fd688;border-radius:999px;
  padding:5px 9px;
}
#view-groups .fh38-privacy-editor{
  display:grid;gap:14px;
  border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line));
  background:linear-gradient(130deg,var(--panel),
    color-mix(in srgb,var(--accent) 10%,var(--panel)));
}
#view-groups .fh38-privacy-editor h3{margin:0;font-size:19px}
#view-groups .fh38-privacy-editor h4{font-size:14px;margin:3px 0}
#view-groups .fh38-info{
  font-size:12px;color:var(--muted);line-height:1.65;
  margin:0;max-width:80ch;
}
#view-groups .fh38-field{display:grid;gap:9px;font-size:13px;font-weight:780}
#view-groups .fh38-select{
  width:min(460px,100%);min-height:47px;
  padding:10px 13px;background:var(--panel2);border:1px solid var(--line);
  color:var(--text);border-radius:11px;font:inherit;
}
#view-groups .fh38-invites{
  padding:20px;margin-top:5px;
  border:1px solid var(--line);border-radius:15px;
  background:color-mix(in srgb,var(--accent) 5%,var(--panel2));
  display:grid;gap:12px;
}
#view-groups .fh38-invite-form{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
#view-groups .fh38-invite-form input{flex:1 1 180px;max-width:470px;min-width:0}
#view-groups .fh38-invite-list{display:grid;gap:7px}
#view-groups .fh38-invite-row{
  display:flex;align-items:center;justify-content:space-between;gap:9px;
  background:var(--panel2);padding:11px 13px;border:1px solid var(--line);
  border-radius:10px;font-size:12px;font-weight:760;
}
#view-groups .fh38-invite-row button{
  font-size:11px;min-height:34px;padding:6px 12px;
}
#view-groups .fh38-dev-tab{
  margin:8px 0 0;padding:10px 15px!important;
  background:color-mix(in srgb,var(--accent) 11%,var(--panel))!important;
  border:1px dashed color-mix(in srgb,var(--accent) 52%,var(--line))!important;
  border-radius:11px!important;
  color:var(--text)!important;font-size:12px;font-weight:810;
}
#view-groups .fh38-dev-tab.active{
  border-style:solid!important;border-color:var(--accent)!important;
  background:color-mix(in srgb,var(--accent) 25%,var(--panel))!important;
}
#view-groups .fh38-dev-directory{
  display:grid;gap:13px;padding:20px;margin-top:10px;
  border:1px solid var(--line);border-radius:15px;
  background:var(--panel);
}
#view-groups .fh38-dev-directory[hidden]{display:none!important}
#view-groups .fh38-dev-directory h3{margin:0;font-size:19px}
#view-groups .fh38-dev-grid{
  display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));
}
#view-groups .fh38-dev-card{
  display:grid;gap:11px;padding:19px;
  border:1px solid var(--line);border-radius:15px;
  background:var(--panel2);min-width:0;overflow-wrap:anywhere;
}
#view-groups .fh38-dev-card-head{
  display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;
}
#view-groups .fh38-dev-card strong{font-size:15px}
#view-groups .fh38-dev-card small{font-size:11px;color:var(--muted)}
#view-groups .fh38-policy{
  font-size:10px;color:#e8d5ff;font-weight:820;
  padding:6px 9px;background:#534477;
  border:1px solid #a79ad16b;border-radius:999px;
}
#view-groups .fh38-restricted-hint{line-height:1.6}
#view-groups.fh38-dev-discovery #group-list,
#view-groups.fh38-dev-discovery #group-detail,
#view-groups.fh38-dev-discovery #group-empty,
#app.fh34-ready #view-groups.fh38-dev-discovery #group-list,
#app.fh34-ready #view-groups.fh38-dev-discovery #group-detail,
#app.fh34-ready #view-groups.fh38-dev-discovery #group-empty{
  display:none!important;
}
@media(max-width:800px){
  #view-groups #group-detail .group-tabs{flex-wrap:nowrap!important;overflow-x:auto!important}
  #view-groups .fh38-privacy-editor{padding:17px}
  #view-groups .fh38-invites{padding:13px}
  #view-groups .fh38-dev-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  #view-groups #group-detail .group-tabs>button{transition:none}
}



/* FRIENDHUB_V39_DM_RATIO_AND_PICTURE_ACTIONS
 * Fixed usable conversation/message proportions across desktop, tablet, phone.
 * Scoped to private messages; group chat and voice layouts are unchanged.
 */
@media(min-width:801px){
  #view-chat .chat-layout{
    display:grid!important;
    grid-template-columns:clamp(235px,24vw,322px) minmax(0,1fr)!important;
    align-items:stretch;
    gap:clamp(12px,1.5vw,24px)!important;
    width:100%;min-width:0;
    height:clamp(520px,calc(100dvh - 215px),870px);
    min-height:520px!important;
  }
  #view-chat .chat-layout>.panel{
    min-width:0;min-height:0;
    display:flex;flex-direction:column;
    overflow:hidden;
    border-radius:18px;
  }
  #view-chat .chat-layout>.panel:first-child{min-width:0}
  #view-chat #conversations{
    flex:1 1 auto;
    max-height:none!important;min-height:0!important;
    overflow-y:auto!important;overflow-x:hidden;
    padding-right:5px;
  }
  #view-chat .chat-layout>.panel:nth-child(2){min-height:0}
  #view-chat #chat-title{
    flex:none;max-width:100%;
    overflow:hidden;text-overflow:ellipsis;
    white-space:nowrap;
    line-height:1.35;
    margin:0 0 12px;
  }
  #view-chat #messages{
    flex:1 1 0!important;
    min-height:0!important;max-height:none!important;
    height:auto!important;
    overflow-y:auto!important;overflow-x:hidden;
    padding:14px 8px!important;
    scrollbar-gutter:stable;
  }
  #view-chat #message-form{
    flex:none;min-width:0;
    padding-top:11px;
    margin-top:7px;
    border-top:1px solid var(--line);
  }
  #view-chat #message-form textarea{
    flex:1 1 170px;
    min-width:0;
    width:auto;
    max-height:170px;
    resize:vertical;
  }
}
@media(min-width:801px) and (max-width:1080px){
  #view-chat .chat-layout{grid-template-columns:230px minmax(0,1fr)!important}
  #view-chat #message-form{flex-wrap:wrap}
  #view-chat #message-form textarea{flex:1 1 100%;width:100%}
}
@media(max-width:800px){
  /* Respect V31's separate inbox/thread design; avoid a massive empty panel. */
  #view-chat .chat-layout{width:100%;min-width:0;max-width:100%;gap:9px!important}
  #view-chat .chat-layout>.panel{min-width:0;max-width:100%;overflow-wrap:anywhere}
  #app.fh31-ready.fh31-chat-thread #view-chat .chat-layout>.panel:nth-child(2){
    min-height:0!important;
    height:calc(100dvh - 150px - env(safe-area-inset-bottom,0px));
    max-height:calc(100dvh - 125px);
    display:flex!important;flex-direction:column;
    overflow:hidden;
  }
  #app.fh31-ready.fh31-chat-thread #view-chat #messages{
    flex:1 1 auto!important;
    min-height:140px!important;
    height:auto!important;max-height:none!important;
    overflow-y:auto!important;
  }
  #app.fh31-ready.fh31-chat-thread #view-chat #message-form{
    flex:none;max-width:100%;
    margin-top:auto!important;
  }
  #app.fh31-ready.fh31-chat-inbox #view-chat .chat-layout{
    height:auto!important;min-height:0!important;
  }
  #view-chat #message-form textarea{max-width:100%;min-width:0}
}
@media(max-width:800px) and (max-height:600px){
  #app.fh31-ready.fh31-chat-thread #view-chat .chat-layout>.panel:nth-child(2){
    height:calc(100dvh - 85px);
  }
  #app.fh31-ready.fh31-chat-thread #view-chat #messages{min-height:85px!important}
}
#view-chat .bubble{max-width:min(84%,650px);overflow-wrap:anywhere}
@media(max-width:800px){#view-chat .bubble{max-width:93%!important}}
#view-chat img.avatar[role=button],#friends img.avatar[role=button],
#feed img.avatar[role=button],#requests img.avatar[role=button],
#view-groups .fh29-v8-pfp-wrap img[role=button],
#view-groups .fh12-avatar img[role=button]{
  cursor:pointer;
  transition:filter .14s ease;
}
#view-chat img.avatar[role=button]:hover,#friends img.avatar[role=button]:hover,
#feed img.avatar[role=button]:hover,#requests img.avatar[role=button]:hover{
  filter:brightness(1.12);
}
img.avatar[role=button]:focus-visible,#view-groups .fh12-avatar img[role=button]:focus-visible{
  outline:2px solid var(--accent);outline-offset:3px;
}
#user-card .fh39-add-friend{
  background:color-mix(in srgb,var(--accent) 25%,var(--panel2));
  color:var(--text);
  border:1px solid var(--accent);border-radius:11px;
  padding:10px 16px;font-weight:750;
}
#user-card .fh39-add-friend:disabled{opacity:.7;cursor:default}
@media(prefers-reduced-motion:reduce){
  #view-chat img.avatar[role=button],#friends img.avatar[role=button],
  #feed img.avatar[role=button],#requests img.avatar[role=button]{transition:none}
}

/* V39 developer-only Stage controls must remain hidden regardless of legacy tab themes */
#view-groups #fh29-v12-stage-tab[hidden],#view-groups .fh12-stage-entry[hidden]{display:none!important}


