/* A social neighborhood in OurBlock's own plum, cream and gold. */
:root{--block-paper:#fffdfa;--block-ink:#372628;--block-wash:#f1f1f1;--block-border:#e5e4e4}
body{background:var(--block-wash);color:var(--block-ink)}[hidden]{display:none!important}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #b78628;outline-offset:4px}button{touch-action:manipulation}
header{background:var(--block-paper);height:78px;padding:0 26px;gap:20px;border-bottom:1px solid var(--block-border);box-shadow:0 2px 15px #30222305}.header-wordmark small{color:#ca4956;font-size:8px;letter-spacing:1.4px}.logo{color:#3e2b2d!important;font-family:Outfit,sans-serif;font-size:31px!important;font-weight:700;gap:8px}.logo .brand-dot{color:#b4842d}.topright{gap:12px}.topright .header-live,#install-ourblock{display:none}.block-icon-button{display:grid;place-items:center;flex-shrink:0;width:39px;height:39px;border-radius:50%;background:transparent;color:#3e2b2d;border:0}.block-icon-button:hover{background:#eeeeee}.block-icon-button svg{width:24px;height:24px}.block-search-button{display:none}.topright .circle{background:transparent;color:#3e2b2d;display:grid!important}.notification-light{width:7px;height:7px}.layout{grid-template-columns:220px minmax(360px,700px) 270px;gap:25px;max-width:1320px;padding:0 22px;margin:auto}.sidebar{top:103px;height:calc(100vh - 125px);border-radius:18px;background:#312224;margin-top:25px;padding:22px 12px;border:0;overflow-y:auto}.sidebar:after,.side-bottom{display:none}.sidebar .nav{font-size:13px;padding:12px 13px}.sidebar .nav svg{width:21px;height:21px}.right{padding-top:25px}main{padding-top:24px}.card{border:1px solid var(--block-border);border-radius:16px;box-shadow:0 3px 10px #3e2b2d03;background:var(--block-paper)}.block-feed-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.block-feed-title .eyebrow{color:#c73d4b;font-size:9px}.block-feed-title h1{font:650 30px Outfit;margin:2px 0 0;color:#372628;letter-spacing:-.8px}.block-composer{margin:0 0 20px;padding:18px}.block-avatar-button{background:transparent;padding:0}.block-composer .avatar{width:46px;height:46px}.block-composer .compose{background:#f0f0f0;border-radius:25px;color:#a9313d;font-size:14px;padding:14px 18px;line-height:1.4}.block-create-options{display:flex;border-top:1px solid var(--block-border);margin-top:16px;padding-top:12px;gap:8px}.block-create-options button{flex:1;background:none;color:#992c37;display:flex;gap:8px;align-items:center;justify-content:center;font-size:12px;font-weight:600;min-height:30px}.block-create-options button+button{border-left:1px solid var(--block-border)}.block-create-options svg{width:20px;height:20px;color:#c63b49}.block-create-options button:last-child svg{color:#a15b35}.block-story-rail{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding:3px 0 10px}.block-story{position:relative;flex:0 0 126px;height:198px;overflow:hidden;border-radius:15px;background:linear-gradient(150deg,#d36873,#3c292b);color:white;padding:0;scroll-snap-align:start;text-align:left;border:1px solid #85273018}.block-story:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 40%,#291c1edd)}.block-story-photo{width:100%;height:100%;object-fit:cover;display:block}.block-story strong{position:absolute;bottom:14px;left:12px;right:9px;z-index:2;font-size:12px;line-height:1.3;color:white}.block-story-initial{position:absolute;left:10px;top:10px;width:32px;height:32px;border-radius:50%;background:#8b2832;border:2px solid #e4c280;display:grid;place-items:center;font-size:11px;z-index:2;color:#fff}.block-story-pattern{height:100%;display:grid;place-items:center;font-size:65px;color:#e5c489;background:radial-gradient(circle at 20% 25%,#ce566255,transparent 50%)}.block-story-pattern svg{width:40px;height:40px}.block-story-type{position:absolute;top:55px;left:12px;z-index:2;font-size:8px;letter-spacing:1.4px}.block-story-add{position:absolute;bottom:42px;left:12px;z-index:3;border:3px solid #fff8ef;background:#b23440;color:white;width:35px;height:35px;display:grid;place-items:center;border-radius:50%}.block-add-story .block-story-pattern{background:linear-gradient(140deg,#b23440,#312224)}.block-add-story strong{bottom:15px}#feed-stories>.section-head{margin:0 0 10px}#feed-stories h2{font-size:15px}.block-discover{display:flex;align-items:center;gap:13px;background:#e6e4e4;border:1px solid #ecbdc2;border-radius:12px;padding:14px;margin:17px 0 12px}.block-discover-symbol{color:#bd3744;font-size:30px}.block-discover b{font:600 15px Outfit;display:block}.block-discover div>span{font-size:11px;color:#b93643;display:block;margin-top:3px}.block-discover>button{margin-left:auto;background:transparent;color:#942b35}.block-quick-links{display:flex;gap:8px;overflow:auto;margin:14px 0 10px;padding-bottom:5px}.block-quick-links button{display:flex;align-items:center;gap:6px;white-space:nowrap;background:#fffaf2;border:1px solid #e7dbbd;border-radius:22px;padding:9px 12px;font-size:11px;color:#725c35}.block-quick-links svg{width:17px;height:17px}.tabs{margin-top:8px;gap:22px}.tabs .tab{font-size:13px}.post{padding:19px;margin-bottom:18px}.post-head .avatar{width:44px;height:44px}.post-head b{font-size:14px}.post p{font-size:15px;line-height:1.6}.post-photo,.post-video{width:calc(100% + 38px);max-width:none;margin:14px -19px 0;border-radius:0;max-height:640px;object-fit:contain}.post-photo{background:#edecec}.reaction-bar{gap:6px;flex-wrap:wrap}.reaction-button{font-size:11px}.actions{gap:8px;flex-wrap:wrap}.actions button{min-height:32px}.block-profile-hero{background:var(--block-paper)!important;color:var(--block-ink)!important;overflow:visible;padding:0 24px 24px!important;min-height:0;border-radius:0 0 18px 18px;box-shadow:none;border:1px solid var(--block-border);border-top:0}.block-profile-hero .profile-photo-button{width:120px;height:120px;border:5px solid var(--block-paper);margin:0 0 0;transform:translateY(-40px);font-size:34px;overflow:visible;background:#e7e5e6;color:#a4303b;box-shadow:0 1px 3px #30222318}.block-profile-hero .profile-photo-button img{border-radius:50%;overflow:hidden}.block-profile-hero h1{font:650 30px Outfit!important;color:#39282a!important;letter-spacing:-.6px;margin:-25px 0 8px!important;max-width:100%}.block-profile-hero .bio-text{color:#b13440!important;max-width:100%;font-size:14px;line-height:1.6}.block-profile-hero .connection-counts{color:#a9313d;margin:15px 0;font-size:13px}.block-profile-hero .pill{background:#ececec;color:#922a35;border:1px solid #efc7cb;padding:10px 13px;font-size:12px}.block-profile-hero .profile-public-links a{color:#b13340}.block-camera-badge{position:absolute;bottom:0;right:-4px;width:33px;height:33px;border-radius:50%;background:#b33441;color:white;border:3px solid #fff;display:grid;place-items:center}.block-camera-badge svg{width:17px;height:17px}.cover-photo{height:235px;border-radius:18px 18px 0 0}.cover-photo .cover-edit{font-size:11px;bottom:13px;right:13px;background:#ffffffdf}.block-profile-tabs{display:flex;gap:7px;overflow:auto;padding:17px 0;margin-bottom:5px;border-bottom:1px solid var(--block-border)}.block-profile-tabs button{white-space:nowrap;padding:10px 17px;background:transparent;color:#bd3744;border-radius:22px;font-weight:600}.block-profile-tabs button.active{background:#e4e3e3;color:#952b36}.profile-info-grid .profile-info{padding:18px!important;margin:10px 0!important}.profile-info-grid .profile-info p{font-size:14px;margin:13px 0}.profile-info-grid .profile-info h2{font-size:17px}.block-create-menu{display:grid;gap:9px}.block-create-menu button{display:flex;align-items:center;gap:15px;padding:16px;border-radius:10px;background:#f0f0f0;color:#7b242d;text-align:left}.block-menu-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}#block-menu{position:fixed;inset:0 auto 0 0;height:100dvh;max-height:100dvh;max-width:92vw;width:390px;margin:0;border:0;border-radius:0 24px 24px 0;padding:25px;background:#fffdfa;overflow:auto;color:#422e30}#block-menu::backdrop{background:#25191b90}.block-menu-profile{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:16px;background:#f1f1f1;border:1px solid #e4e3e3;border-radius:14px}.block-menu-profile .avatar{width:49px;height:49px}.block-menu-profile b{font-size:15px;display:block}.block-menu-profile small{color:#c73d4b;display:block;margin-top:4px}.block-menu-profile>svg{margin-left:auto;width:18px}#block-menu h2{font:600 17px Outfit;margin:25px 0 15px}.block-shortcuts{display:flex;gap:10px;margin-bottom:22px}.block-shortcuts button{flex:1;min-width:0;padding:17px 5px;background:#edecec;border-radius:13px;color:#a12f3a;display:grid;justify-items:center;gap:12px}.block-shortcuts button:nth-child(2){background:#f5ecd9;color:#836735}.block-shortcuts b{font-size:10px}.block-menu-link{display:flex;width:100%;align-items:center;gap:14px;padding:15px 6px;background:transparent;text-align:left;color:#82262f;font-weight:600}.block-menu-link>svg:last-child{margin-left:auto;width:15px;color:#d36671}.block-menu-link:hover{background:#f3f2f2}.block-menu-details{border-top:1px solid var(--block-border);padding:17px 0;margin-top:7px}.block-menu-details summary{display:flex;align-items:center;gap:14px;cursor:pointer;font-weight:600}.block-menu-details summary:after{content:'+';margin-left:auto;font-size:20px;color:#d2636e}.block-menu-details[open] summary:after{content:'−'}.block-menu-details .block-menu-link{padding-left:20px;font-size:12px}.block-menu-signature{color:#d2636e;font-size:11px;margin-top:25px}
@media(max-width:1150px){.layout{grid-template-columns:205px minmax(350px,1fr);max-width:1000px;gap:23px}.right{display:none}.topright{gap:6px}}
@media(max-width:720px){header{height:68px;padding:0 12px;gap:9px}.logo{font-size:25px!important;letter-spacing:-1px}.header-wordmark small,.mark,header>.search,.topright>#header-avatar{display:none}.topright{margin-left:auto;gap:1px}.block-icon-button,.topright .circle{width:33px;height:36px}.block-icon-button svg{width:22px;height:22px}.block-search-button{display:grid}.notification-trigger #notification-count:not([hidden]){top:-2px;right:-2px}.layout{display:block;padding:0;margin:0;width:100%}.sidebar,.right{display:none}main{padding:18px 0 105px;min-height:calc(100dvh - 68px)}.block-feed-title{padding:0 17px;margin-bottom:16px}.block-feed-title h1{font-size:27px}.block-feed-title .eyebrow{font-size:8px;letter-spacing:1.8px}.card{border-radius:0;border-width:1px 0;box-shadow:none;margin-bottom:12px}.block-composer{padding:16px;margin-bottom:18px;background:#fffdfa}.block-composer .compose{font-size:13px;padding:11px 13px}.block-composer .avatar{width:42px;height:42px}.block-create-options{margin-top:13px;padding-top:11px}.block-create-options button{font-size:11px;gap:6px}#feed-stories{padding-left:16px}#feed-stories>.section-head{padding-right:16px}.block-story{flex-basis:122px;height:190px;border-radius:14px}.block-story-rail{padding-right:16px;scrollbar-width:none}.block-discover{margin:16px 14px 10px;padding:12px}.block-discover b{font-size:14px}.block-discover div>span{font-size:10px}.block-quick-links{padding-left:15px;padding-right:15px}.tabs{margin:7px 16px 13px}.post{padding:16px;margin-bottom:13px;border-radius:0}.post p{font-size:15px;margin:15px 0}.post-head .avatar{width:43px;height:43px}.post-photo,.post-video{width:calc(100% + 32px);margin-left:-16px;margin-right:-16px;max-height:570px}.stats{padding:13px 0}.reaction-button{padding:7px 9px}.actions button{font-size:11px}.mobile-nav{display:flex!important;position:fixed;left:12px;right:12px;bottom:max(10px,env(safe-area-inset-bottom));width:auto;background:#fffdfaf5;backdrop-filter:blur(18px);border:1px solid #efc8cc;box-shadow:0 7px 30px #3d2a2c24;border-radius:25px;padding:6px 4px;justify-content:space-around;z-index:35}.mobile-nav .block-tab{position:relative;flex:1;min-width:0;padding:7px 2px;background:transparent;color:#cc4e5b;border-radius:20px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;font-size:9px}.block-tab.active{color:#9e2e39;background:#ecebeb}.block-tab svg{width:22px;height:22px}.block-tab .avatar{width:24px;height:24px;font-size:9px}.block-tab i{position:absolute;top:4px;left:calc(50% + 6px);height:7px;width:7px;background:#c33249;border:1px solid white;border-radius:50%}.toast{bottom:95px;max-width:90vw}.cover-photo{height:195px;border-radius:0}.block-profile-hero{padding:0 20px 22px!important;border-radius:0}.block-profile-hero .profile-photo-button{width:118px;height:118px}.block-profile-hero h1{font-size:28px!important}.block-profile-tabs{padding:12px;margin:0;background:#fffdfa;gap:2px}.block-profile-tabs button{padding:10px 14px;font-size:12px}.profile-info-grid .profile-info{margin:0 0 9px!important;padding:19px!important}.profile-info-grid .profile-info p{font-size:14px}.view-title,.view-title+.helper{margin-left:16px;margin-right:16px}.grid{padding:0 12px}.grid .card{border-radius:13px;border-width:1px}.page-actions{padding-left:4px;padding-right:4px}.block-profile-hero .profile-menu{gap:8px}.block-profile-hero .pill{font-size:11px;padding:10px 12px}#block-menu{width:350px;padding:22px}.onboard{margin:10px!important;border-radius:18px!important}.pulse-radio-dock{bottom:91px!important}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(max-width:720px){#header-radio{display:none}.header-wordmark{min-width:0}.header-wordmark .logo{white-space:nowrap}.topright{flex-shrink:0}}
body>header{background:var(--block-paper);border-bottom:1px solid var(--block-border);box-shadow:0 2px 15px #30222305}header .header-wordmark small{color:#ca4956}header .text-btn{color:#ad323e}header .avatar,header .circle{background:#ededed;color:#962c36}header .search{background:#f2f2f2;border-color:transparent}header .notification-trigger{background:transparent}
.block-profile-hero .profile-menu .pill{display:inline-flex;align-items:center}.cover-photo+.block-profile-hero .profile-photo-button{margin-top:0}.block-quick-links{scrollbar-width:none}.block-quick-links::-webkit-scrollbar{display:none}.block-profile-hero .bio-text{margin-bottom:12px}.block-profile-hero .connection-counts{margin:12px 0}

/* Prevent long payment headings, URLs and form controls from widening mobile pages. */
.layout>main{min-width:0}#main .view-title{overflow-wrap:anywhere;white-space:normal}#main .card{min-width:0;overflow-wrap:break-word}#main .card input,#main .card textarea,#main .card select{max-width:100%;box-sizing:border-box}.stripe-verification{margin:16px 0;padding:14px;background:#f1f0f0;border-radius:12px}.stripe-verification ul{padding-left:20px}.stripe-verification li{margin:8px 0}
@media(max-width:720px){#main .view-title{font-size:clamp(24px,7vw,32px);line-height:1.2}#main .page-actions{display:flex;flex-wrap:wrap;gap:10px}#main .page-actions>*{max-width:100%;white-space:normal}#main .card select{width:100%;min-height:44px}#main{padding-bottom:110px}#main h2{overflow-wrap:anywhere}}

/* OurBlock: red accents, black outlines, silver-gray page edges. */
:root{--purple:#bc2035;--plum:#211b1d;--block-paper:#fff;--block-ink:#252326;--block-wash:#e4e5e7;--block-border:#242124;--line:#d6d6d8;--muted:#69666a}
html{background:#d6d7da}body{background:linear-gradient(90deg,#d2d3d6 0%,#ededee 12%,#ededee 88%,#d2d3d6 100%);color:var(--block-ink)}
body>header{border-bottom:2px solid #151515;background:#fff}.logo{color:#231f20!important}.logo .brand-dot,.brand-dot{color:#bc2035}.mark i{background:#bc2035;border:1px solid #111}.mark i:last-child{background:#252326}
.sidebar{background:#971c2c;border:2px solid #171717}.sidebar .nav.active{background:#fff;color:#a5182b;border:1px solid #111}.sidebar .nav:hover{box-shadow:inset 0 0 0 1px #171717}
.primary,.person.member-row .member-actions .primary{background:#bc2035;border:1px solid #111;color:#fff}.primary:hover{background:#9d182a}.card:not(.onboard),.hero,.owner-about-hero,.cover-photo,.station-page-hero{border:1px solid #242124}.feature{background:#f8e9ec}.spotlight{background:#241c1e!important}.onboard{background:linear-gradient(135deg,#291c20,#9f1c2e);border:2px solid #111}.onboard .primary{background:#bc2035;color:#fff;border:1px solid #111}.owner-intro{background:#f5e7ea!important}.mobile-nav{border-top:2px solid #111;background:#fff}.site-menu summary{border-color:#171717}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #bc2035;outline-offset:3px}

.helper,.sub,.feature p,.leader-card p,.owner-mission p,.post p,.tile p{color:#656166}.sidebar .sub{color:#f1dce0}.sidebar .nav{color:#fff1f3}.sidebar h5{color:#f1dce0}

/* Approved glossy OurBlock brand asset. */
.logo .ourblock-brand-image{display:block;width:84px;height:auto;max-width:100%;object-fit:contain}.header-wordmark{min-width:0;flex-shrink:0}.header-wordmark small{margin-left:0;text-align:center;font-size:7px;letter-spacing:1px}.block-menu-head .logo{max-width:245px}.block-menu-head .ourblock-brand-image{width:96px}@media(max-width:720px){.logo .ourblock-brand-image{width:64px}.header-wordmark small{font-size:5px;letter-spacing:.5px}header{gap:9px}.header-wordmark{max-width:155px}}@media(max-width:380px){.logo .ourblock-brand-image{width:54px}.header-wordmark{max-width:130px}}

.block-identity-switcher { padding: 10px; border: 1px solid #eadfe2; border-radius: 18px; background: #faf6f7; }
.block-identity-switcher .block-menu-profile { margin: 0; }
.block-identity-bubbles { display: flex; gap: 8px; overflow-x: auto; padding: 10px 3px 3px; }
.block-identity-bubble { flex: 0 0 83px; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 6px 3px; border: 0; border-radius: 12px; background: transparent; color: #362027; font-size: .85rem; line-height: 1.25; }
.block-identity-bubble .avatar { width: 45px; height: 45px; border-radius: 50%; }
.block-identity-bubble[aria-pressed="true"] .avatar { outline: 2px solid #a91e36; outline-offset: 2px; }
.block-identity-bubble span { max-width: 100%; overflow-wrap: anywhere; }

.member-profile { --member-accent:#a51e36; --member-ink:#2d1b22; color:var(--member-ink); }
.member-profile [hidden] { display:none !important; }
.member-profile-header { background:#fff; border:1px solid #eadfe2; border-radius:20px; }
.member-profile-cover-wrap { position:relative; }
.member-profile-back {
  position:absolute;
  inset:12px auto auto 12px;
  z-index:2;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  color:#fff;
  background:#21141cee;
  border:1px solid #ffffffad;
  border-radius:50%;
  cursor:pointer;
}
.member-profile-back:hover { background:#8c1630; }
.member-profile-back:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.member-cover,.member-portrait { display:block; position:relative; padding:0; border:0; }
.member-cover { width:100%; aspect-ratio:3 / 1; min-height:155px; max-height:300px; background:linear-gradient(125deg,#271922,#92243f 58%,#d56b78); border-radius:19px 19px 0 0; }
.member-cover img,.member-portrait img { display:block; width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.member-cover .member-photo-camera { right:13px; bottom:13px; }
.member-profile-identity { position:relative; display:grid; justify-items:center; text-align:center; padding:0 clamp(14px,4vw,32px) 20px; }
.member-portrait { display:grid; place-items:center; margin-top:clamp(-79px,-10vw,-49px); width:clamp(112px,21vw,170px); aspect-ratio:1; background:#682838; color:white; font-size:2.2rem; border:5px solid #fff; border-radius:50%; }
.member-photo-camera { position:absolute; right:-3px; bottom:0; display:grid; place-items:center; width:44px; height:44px; border:2px solid #fff; border-radius:13px; background:#fff1f4; color:#71243b; box-shadow:0 2px 7px #21151a25; }
.member-profile-identity h1 { font-size:clamp(1.7rem,5vw,2.65rem); margin:9px 0 4px; line-height:1.12; overflow-wrap:anywhere; }
.member-connection-counts,.member-profile-actions,.member-compose-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:8px 14px; }
.member-connection-counts { margin:4px 0; font-weight:650; font-size:.95rem; }
.member-bio,.member-profile-summary { margin:10px 0 0; white-space:pre-line; overflow-wrap:anywhere; font-size:1rem; }
.member-profile-summary { color:#634e56; }
.member-profile-actions { margin-top:16px; align-items:center; }
.member-profile-options { margin-top:10px; }
.member-profile-options summary { cursor:pointer; padding:8px; }
.member-profile-tabs { display:flex; gap:6px; overflow-x:auto; margin:12px 0; padding:6px; background:#fff; border:1px solid #eadfe2; border-radius:15px; }
.member-profile-tabs button { min-height:44px; padding:0 14px; border:0; background:transparent; color:var(--member-ink); border-radius:11px; font-weight:700; }
.member-profile-tabs button[aria-pressed=true] { background:#f9e6eb; color:var(--member-accent); }
.member-profile-feed > .section-head { padding:10px 6px; }
.member-profile .member-profile-feed .post-comments details:not([open]) + form { display:none; }
.member-compose-actions { justify-content:flex-start; margin-top:10px; }
.member-photo-sheet { display:grid; gap:10px; }
.member-photo-sheet h2 { margin:0 0 4px; }
.member-expanded-photo { display:block; width:100%; max-height:70dvh; object-fit:contain; }
@media(max-width:720px) {
 .member-profile-header,.member-profile-tabs { border-radius:0; border-inline:0; }
 .member-cover { border-radius:0; }
 .member-profile-tabs,.member-profile-feed > .section-head { padding-inline:12px; }
 .member-profile-identity { padding-bottom:14px; }
 #dialog:has(.member-photo-sheet) { position:fixed; inset:auto 0 0; width:100%; max-width:none; margin:0; border-radius:22px 22px 0 0; padding-bottom:max(18px,env(safe-area-inset-bottom)); }
}

.community-directory { color:#2d1b22; background:#fff; border:1px solid #eadfe2; border-radius:18px; padding:clamp(15px,4vw,25px); }
.community-directory h1 { margin:0; font-size:clamp(1.7rem,5vw,2.45rem); }
.community-directory-section + .community-directory-section { margin-top:24px; }
.community-directory-section h2 { margin:14px 0 4px; font-size:1.25rem; }
.community-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; align-items:center; border-bottom:1px solid #eedfe4; padding:11px 0; }
.community-row:last-child { border-bottom:0; }
.community-row-title { display:flex; align-items:center; gap:12px; text-align:left; color:inherit; background:none; border:0; padding:0; min-width:0; }
.community-row-title small { display:block; font-size:.85rem; color:#67535b; margin-top:3px; }
.community-row-title strong { font-size:1rem; overflow-wrap:anywhere; }
.community-row p { grid-row:2; margin:0 0 0 60px; font-size:.9rem; color:#59464e; line-height:1.45; }
.community-row > button:last-child { grid-column:2; grid-row:1; min-height:44px; }
.community-mark { display:grid; place-items:center; flex:0 0 48px; height:48px; border-radius:16px 16px 16px 5px; font-size:1.4rem; background:#f9e8ed; color:#96263e; }
.community-cover { display:flex; justify-content:flex-end; align-items:flex-start; padding:12px; min-height:clamp(140px,25vw,240px); border-radius:19px 19px 0 0; background:repeating-linear-gradient(135deg,#fff0 0 24px,#fff1 24px 26px),linear-gradient(120deg,#30212a,#971d39 72%,#b74a66); }
.community-profile .member-portrait { font-size:clamp(2.5rem,8vw,4rem); }
.post-community-link { padding:0; font-size:inherit; }
@media(max-width:720px) {
 .community-directory { border-inline:0; border-radius:0; }
 .community-cover { border-radius:0; }
 .community-row { gap:5px 8px; }
}

.community-mark img,.community-profile .member-portrait img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.live-panel-videos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:9px}
.live-panel-videos:empty{display:none}
.live-panel-tile{background:#30212a;color:#fff;border-radius:12px;min-height:92px;position:relative;display:grid;place-items:center;overflow:hidden;text-align:center}
.live-panel-tile video{width:100%;aspect-ratio:4/3;object-fit:cover}
.live-panel-tile strong{position:absolute;bottom:5px;left:8px;background:#24141bdb;border-radius:4px;padding:2px 6px}
.live-panel-empty button{display:grid;place-items:center;min-width:44px;min-height:44px;font-size:1.45rem}
.live-panel-request,.live-room-identity,.live-reactions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}
.live-stage[data-seats]:not([data-seats="1"]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.live-stage[data-seats]:not([data-seats="1"]) .live-panel-videos{display:contents}
.live-stage[data-seats]:not([data-seats="1"]) > :not(#broadcast-video, .live-panel-videos),
.live-stage[data-seats]:not([data-seats="1"]) .live-room-controls > *{grid-column:1/-1}
.live-stage[data-seats]:not([data-seats="1"]) #audio-room-art{grid-column:1;grid-row:1;min-height:92px}
.live-stage[data-seats]:not([data-seats="1"]) #broadcast-video{aspect-ratio:4/3;object-fit:cover;border-radius:12px}
.live-panel-tile:not(.live-panel-empty){aspect-ratio:4/3}
.live-panel-tile video{grid-area:1/1;height:100%;visibility:hidden}
.live-panel-tile.live-panel-has-video video{visibility:visible}
.live-panel-fallback{grid-area:1/1;display:grid;gap:6px;justify-items:center;align-content:center;padding-bottom:24px;color:#fff;font-size:.85rem}
.live-panel-has-video .live-panel-fallback{display:none}
.live-host-controls{margin:10px 0}
.live-host-controls button[aria-pressed="true"]{background:#9d213b;color:#fff}
.live-stage #broadcast-video.host-camera-preview-off{display:none}
.host-camera-off:not([hidden]){display:grid;justify-items:center;align-content:center;gap:10px;min-height:120px;aspect-ratio:16/9;border-radius:12px;background:#34252e;color:#fff}
.live-stage[data-seats]:not([data-seats="1"]) > .host-camera-off{grid-column:1;grid-row:1;aspect-ratio:4/3;min-height:0}

.block-feed-composer{margin-block:0 12px}
.block-feed-composer .composer-row{gap:10px}
.block-feed-composer .compose{min-width:0;text-align:left;font-size:1rem}
#feed-stories .block-story{height:clamp(155px,48vw,225px);flex-basis:clamp(96px,29vw,142px)}
#feed-stories .block-add-story strong{color:#491c2b;background:#fff7f8;padding:10px 5px;text-align:center;border-radius:8px}
.block-feed-filters{display:flex;gap:8px;padding:5px 12px 12px}
.block-feed-filters button{min-height:44px}
.block-feed-shelf{background:#fff;border-block:1px solid #e2cccc;padding:12px;margin-block:0 12px}
.block-feed-shelf h2{margin:0 0 8px;font-size:1.13rem}
.block-feed-rail{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity}
.block-feed-reel{position:relative;flex:0 0 clamp(105px,36vw,168px);aspect-ratio:9/15;padding:0;overflow:hidden;border:0;border-radius:12px;background:#2e2021;color:#fff;scroll-snap-align:start}
.block-feed-reel video{width:100%;height:100%;object-fit:cover}
.block-feed-reel span{position:absolute;inset:auto 0 0;padding:14px 7px 7px;background:linear-gradient(transparent,#21151b);font-weight:700}
body[data-block-view="feed"] #posts>.post :is(.post-photo,.post-video){border-radius:4px}
body[data-block-view="feed"] #posts>.post .post-comments details:not([open])+form{display:none}
.block-feed-person{display:grid;place-items:center;align-content:center;gap:8px;text-align:center;min-height:110px;flex:0 0 115px;padding:10px;border:1px solid #eadfe2;border-radius:12px;background:#fbf6f7;color:#3a2028;scroll-snap-align:start}
.post-audience-picker{margin-top:14px}
.post-audience-picker summary{width:fit-content;cursor:pointer;border-radius:999px;padding:12px 16px;background:#f7e8ed;color:#672238;font-weight:700}
.post-audience-picker fieldset{max-height:180px;overflow:auto;border:1px solid #eadfe2;border-radius:10px}
.post-audience-picker fieldset[hidden]{display:none}
.post-audience-picker fieldset input{width:auto}
.account-settings{--settings-bg:#fff;--settings-ink:#322129;--settings-muted:#695660;--settings-line:#eadde2;color:var(--settings-ink);padding:0 clamp(12px,3vw,28px) 24px}
.account-settings h1{font-size:clamp(1.65rem,4vw,2.25rem);margin:0 0 16px}
.account-settings-search{display:grid;gap:5px}
.account-settings-search input{width:100%;min-height:46px;padding:10px 14px;border-radius:12px;border:1px solid var(--settings-line);background:var(--settings-bg);color:var(--settings-ink);font-size:1rem}
.account-settings-group{background:var(--settings-bg);border:1px solid var(--settings-line);border-radius:16px;margin-top:14px;padding:6px 14px}
.account-settings-group h2{font-size:1rem;margin:8px 0;color:var(--settings-ink)}
.account-setting-row{display:block;width:100%;min-height:44px;padding:10px 0;text-align:left;background:none;color:var(--settings-ink);border:0;border-top:1px solid var(--settings-line);text-decoration:none;font-size:1rem}
.account-setting-row small{display:block;color:var(--settings-muted);margin-top:4px}
.account-settings [hidden]{display:none!important}
.account-composer-identity{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.account-post-composer textarea{min-height:130px}
html[data-account-theme="dark"] .account-settings{--settings-bg:#30232b;--settings-ink:#fff3f7;--settings-muted:#e3c7d1;--settings-line:#604550;background:#231a21}
@media(prefers-color-scheme:dark){html[data-account-theme="system"] .account-settings{--settings-bg:#30232b;--settings-ink:#fff3f7;--settings-muted:#e3c7d1;--settings-line:#604550;background:#231a21}}

.alert-settings h3 { margin: 1.6rem 0 .4rem; }
.alert-setting {
  margin: .55rem 0;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 18%, transparent);
  border-radius: .75rem;
}
.alert-setting summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem 1rem;
  cursor: pointer;
  list-style: none;
}
.alert-setting summary::-webkit-details-marker { display: none; }
.alert-setting small { display: block; margin-top: .2rem; }
.alert-setting[open] summary > span:last-child { transform: rotate(180deg); }
.alert-options, .alert-delivery { padding: .75rem 1rem; }
.alert-options button, .alert-delivery button { margin: .35rem .35rem .15rem 0; }
.alert-delivery small { margin-bottom: .35rem; }

/* Stories on The Block and in Messages */
.story-glow { outline: 2px solid #f3bf66; outline-offset: 2px; box-shadow: 0 0 12px #f1a74eaa; }
.story-avatar { border: 0; padding: 0; border-radius: 50%; background: transparent; flex: none; position: relative; }
.story-avatar .avatar { width: 46px; height: 46px; margin: 0; }
.block-stories { gap: 12px; padding: 8px 5px 14px; scroll-snap-type: x proximity; }
.block-story-card { position: relative; flex: 0 0 clamp(108px, 30vw, 150px); aspect-ratio: 3 / 5; overflow: hidden; border: 1px solid var(--block-border); border-radius: 18px; background: #352125; color: #fff; padding: 0; scroll-snap-align: start; text-align: left; }
.block-story-card:focus-visible { outline: 3px solid #d48730; outline-offset: 2px; }
.block-story-card > img, .block-story-card > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.block-story-card > b { position: absolute; inset: auto 0 0; padding: 30px 10px 10px; background: linear-gradient(transparent,#221619eb); overflow-wrap: anywhere; }
.block-story-create > b { text-align: center; background: #57262e; padding: 20px 6px 10px; }
.block-story-create > .avatar { width: 100%; height: 75%; border-radius: 0; font-size: 2rem; }
.block-story-add, .chat-create-story > span { display: grid; place-items: center; background: #a93141; color: white; border-radius: 50%; border: 2px solid white; }
.block-story-add { position: absolute; z-index: 1; inset: auto auto 35px 50%; transform: translateX(-50%); width: 31px; height: 31px; font-size: 22px; }
.block-story-badge { position: absolute; top: 12px; left: 12px; border-radius: 50%; }
.block-story-badge .avatar { width: 30px; height: 30px; margin: 0; font-size: .7rem; }
.block-story-play { position: absolute; inset: 42% 0 auto; text-align: center; text-shadow: 0 1px 6px #111; }
.chat-inbox-tools input { flex: 1; min-width: 140px; }
.chat-story-rail { display: flex; gap: 14px; overflow-x: auto; padding: 12px 6px; }
.chat-story-rail > div { flex: 0 0 70px; text-align: center; }
.chat-story-rail small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 6px; }
.chat-create-story > span { position: absolute; width: 20px; height: 20px; bottom: -2px; right: -2px; }
.chat-inbox-row { display: flex; align-items: center; gap: 12px; margin-block: 8px; }
.chat-inbox-row[hidden] { display: none; }
.chat-preview { flex: 1; min-width: 0; display: grid; gap: 3px; text-align: left; background: none; padding: 2px; border: 0; color: inherit; }
.chat-preview > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-new { margin-left: 6px; color: var(--purple); font-size: .8rem; }
[data-action="chat-filter"][aria-pressed="true"] { box-shadow: inset 0 -2px var(--purple); font-weight: bold; }

/* Reserve the Solo stage's first row for the entire camera frame. */
#main .live-stage[data-mode="video"][data-seats="1"] {
  display: grid;
  grid-template: minmax(0, 1fr) auto / minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: #100d0e;
}
#main .live-stage[data-mode="video"][data-seats="1"] > :is(#broadcast-video, .host-camera-off) {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
}
#main .live-stage[data-mode="video"][data-seats="1"] > .live-room-controls {
  grid-area: 2 / 1;
  display: grid;
  gap: 4px;
  padding: 4px 8px;
}
.live-stage[data-mode="video"][data-seats="1"] > .live-panel-videos {
  display: none;
}
.solo-camera-framing:not([hidden]) {
  position: relative;
  justify-self: start;
  max-width: 100%;
  z-index: 3;
  color: #fff;
}
.solo-camera-framing summary {
  width: fit-content;
  padding: 6px 10px;
  cursor: pointer;
}
.solo-framing-options {
  position: absolute;
  inset: auto auto 100% 0;
  display: grid;
  gap: 4px;
  width: min(12rem, calc(100vw - 32px));
  padding: 6px;
  background: #20181a;
  border: 1px solid #665259;
  border-radius: 10px;
}
.solo-framing-options .soft-btn { margin: 0; }
.solo-framing-options .soft-btn[aria-pressed="true"] { outline: 1px solid #ed98a4; }
@media (min-width: 721px) {
  #main .live-stage[data-mode="video"][data-seats="1"] {
    height: max(20rem, calc(100dvh - 12rem));
  }
}

.live-room-frame,
.live-room-controls {
  display: contents;
}
.live-room-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.solo-live-exit {
  display: none;
}

@media (max-width: 720px) {
  #main:has(> .live-room-frame > .live-stage[data-mode="video"][data-seats="1"]) {
    padding-top: 0;
  }
  body:has(.live-stage[data-mode="video"][data-seats="1"]) #ob-help-launcher {
    display: none;
  }
  .live-room-frame:has(> .live-stage[data-mode="video"][data-seats="1"]) {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: calc(100vh - 68px - 4.5rem - max(10px, env(safe-area-inset-bottom)));
    height: calc(100dvh - 68px - 4.5rem - max(10px, env(safe-area-inset-bottom)));
    margin-bottom: 4.5rem;
    background: #20181a;
    color: #fff;
  }
  .live-room-frame:has(> .live-stage[data-mode="video"][data-seats="1"]) > .live-room-heading {
    margin: 0;
    padding: 8px 12px;
  }
  .live-room-frame:has(> .live-stage[data-mode="video"][data-seats="1"]) .live-room-heading > div:first-child {
    min-width: 0;
  }
  .live-room-frame:has(> .live-stage[data-mode="video"][data-seats="1"]) .live-room-heading h1 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    font-size: clamp(16px, 5vw, 22px);
    line-height: 1.15;
  }
  .live-room-frame:has(> .live-stage[data-mode="video"][data-seats="1"]) .live-room-heading p {
    margin-top: 3px;
    color: #f3c5cb;
    font-size: .75rem;
  }
  .live-room-frame:has(> .live-stage[data-mode="video"][data-seats="1"]) .live-room-header-actions {
    flex-shrink: 0;
  }
  .live-room-frame:has(> .live-stage[data-mode="video"][data-seats="1"]) .live-room-identity {
    margin: 4px 0 0;
  }
  .live-room-frame:has(> .live-stage[data-mode="video"][data-seats="1"]) .live-room-identity .avatar {
    width: 26px;
    height: 26px;
  }
  .live-room-frame:has(> .live-stage[data-mode="video"][data-seats="1"]) .soft-btn {
    background: #392c30;
    border: 1px solid #665259;
    color: #fff;
  }
  .live-room-frame:has(> .live-stage[data-mode="video"][data-seats="1"]) .soft-btn[aria-pressed="true"] {
    background: #9d213b;
  }
  .live-room-frame:has(> .live-stage[data-mode="video"][data-seats="1"]) .solo-live-exit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 5px 8px;
    background: #a51c2e;
    color: #fff;
    white-space: nowrap;
  }
  .live-room-frame:has(> .live-stage[data-mode="video"][data-seats="1"]) ~ .live-room-footer {
    display: none !important;
  }
  #main .live-stage[data-mode="video"][data-seats="1"] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
    margin: 0;
    border: 0;
    background: #20181a;
  }
  #main .live-stage[data-mode="video"][data-seats="1"] > :is(#broadcast-video, .host-camera-off) {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    background: #100d0e;
  }
  #main .live-stage[data-mode="video"][data-seats="1"] > #broadcast-video {
    object-fit: cover;
    object-position: center;
  }
  .live-stage[data-mode="video"][data-seats="1"] > .live-panel-videos {
    display: none;
  }
  .live-stage[data-mode="video"][data-seats="1"] > .live-room-controls {
    grid-area: 2 / 1;
    display: grid;
    gap: 6px;
    max-height: 34vh;
    max-height: 34dvh;
    overflow: auto;
    padding: 8px 12px;
    border-top: 1px solid #60434a;
  }
  .live-stage[data-mode="video"][data-seats="1"] > .live-room-controls:has(.live-host-controls) {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }
  .live-stage[data-mode="video"][data-seats="1"] .live-room-controls > :not(.live-room-effects, .live-host-controls) {
    grid-column: 1 / -1;
  }
  .live-stage[data-mode="video"][data-seats="1"] .live-room-controls:not(:has(.live-room-effects)) > .live-host-controls {
    grid-column: 1 / -1;
  }
  .live-stage[data-mode="video"][data-seats="1"] .live-room-controls :is(p, .page-actions, .live-effects-trigger, .primary) {
    margin: 0;
  }
  .live-stage[data-mode="video"][data-seats="1"] .live-room-controls :is(.soft-btn, .primary) {
    min-height: 34px;
    padding: 5px 9px;
    line-height: 1.2;
  }
  .live-stage[data-mode="video"][data-seats="1"] .live-room-controls :is(p:empty, #live-panel-controls:empty) {
    display: none;
  }
}

/* Keep the host prominent and the controls in their own row in video panels. */
.live-panel-host {
  display: none;
}

.live-room-frame:has(> .live-stage[data-mode="video"][data-seats]:not([data-seats="1"])) {
  display: block;
  container-type: inline-size;
}
#main .live-stage[data-mode="video"][data-seats]:not([data-seats="1"]) {
  --panel-height: min(78cqw, 42dvh, 28rem);
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: var(--panel-height) auto;
  gap: 2px;
  padding: 0;
  overflow: hidden;
  background: #412b32;
  color: #fff;
}
#main .live-stage[data-mode="video"][data-seats="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.live-stage[data-mode="video"][data-seats]:not([data-seats="1"])
  > :is(#broadcast-video, .host-camera-off, .live-panel-host) {
  grid-area: 1 / 1;
  min-width: 0;
}
.live-stage[data-mode="video"][data-seats]:not([data-seats="1"]) > .live-panel-videos {
  display: grid;
  grid-area: 1 / 2;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  gap: 2px;
  margin: 0;
  min-height: 0;
}
.live-stage[data-mode="video"][data-seats]:not([data-seats="1"])
  > :is(#broadcast-video, .host-camera-off) {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
  background: #140e11;
  object-fit: contain;
}
.live-stage[data-mode="video"][data-seats]:not([data-seats="1"]) > .live-panel-host {
  display: flex;
  align-self: start;
  justify-self: start;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  max-width: calc(100% - 12px);
  margin: 6px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #171013e8;
  color: #fff;
  font-size: .85rem;
  z-index: 1;
  pointer-events: none;
}
.live-panel-host b {
  color: #ffb2bd;
}
.live-panel-host span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-stage[data-mode="video"][data-seats]:not([data-seats="1"]) .live-panel-tile {
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 0;
  background: linear-gradient(145deg, #3a242d, #281e23);
}
.live-stage[data-mode="video"][data-seats]:not([data-seats="1"]) .live-panel-tile video {
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  background: #140e11;
}
.live-stage[data-mode="video"][data-seats="2"] > #broadcast-video,
.live-stage[data-mode="video"][data-seats="2"] .live-panel-tile video {
  object-fit: cover;
}
.live-stage[data-mode="video"][data-seats]:not([data-seats="1"]) .live-panel-tile strong {
  left: 5px;
  max-width: calc(100% - 10px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .75rem;
}
.live-stage[data-mode="video"][data-seats]:not([data-seats="1"]) .live-panel-fallback {
  gap: 3px;
  font-size: .75rem;
}
.live-stage[data-mode="video"][data-seats]:not([data-seats="1"]) .live-panel-fallback .avatar {
  width: 30px;
  height: 30px;
}
#main .live-stage[data-mode="video"][data-seats]:not([data-seats="1"]) > .live-room-controls {
  grid-row: -2 / -1;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 12px;
  background: #20181a;
}
.live-stage[data-mode="video"][data-seats]:not([data-seats="1"]) .live-room-controls
  :is(p, .page-actions, .live-effects-trigger, .primary) {
  margin: 0;
}
.live-stage[data-mode="video"][data-seats]:not([data-seats="1"])
  :is(.live-room-controls, .live-panel-empty) .soft-btn {
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid #71525d;
  background: #37282e;
  color: #fff;
}
.live-stage[data-mode="video"][data-seats]:not([data-seats="1"])
  .live-room-controls .soft-btn[aria-pressed="true"] {
  background: #9d213b;
}
.live-stage[data-mode="video"][data-seats]:not([data-seats="1"])
  .live-room-controls > :is(#live-panel-controls, .live-status) {
  flex-basis: 100%;
}
.live-stage[data-mode="video"][data-seats]:not([data-seats="1"])
  .live-room-controls > :is(p, #live-panel-controls):empty {
  display: none;
}

@media (max-width: 720px) {
  .live-room-frame:has(> .live-stage[data-mode="video"][data-seats]:not([data-seats="1"]))
    > .live-room-heading {
    margin-bottom: 6px;
    padding-inline: 12px;
  }
  .live-room-frame:has(> .live-stage[data-mode="video"][data-seats]:not([data-seats="1"]))
    .live-room-heading h1 {
    overflow-wrap: anywhere;
    font-size: clamp(17px, 5vw, 23px);
  }
  body:has(.live-stage[data-mode="video"][data-seats]:not([data-seats="1"])) #ob-help-launcher {
    display: none;
  }
}

@media (max-width: 720px) {
  .live-stage[data-mode="video"][data-seats]:not([data-seats="1"])
    .live-room-controls .page-actions {
    gap: 6px;
  }
  .live-stage[data-mode="video"][data-seats]:not([data-seats="1"])
    .live-room-controls .soft-btn {
    padding-inline: 7px;
  }
}

.solo-live-tools,
.solo-live-tools-heading {
  display: none;
}

@media (max-width: 720px) {
  html:has(.live-stage[data-locked="true"]),
  body:has(.live-stage[data-locked="true"]) {
    overflow: hidden;
    overscroll-behavior: none;
  }
  body:has(.live-stage[data-locked="true"]) {
    position: fixed;
    inset: 0;
    height: 100dvh;
  }
  #main:has(.live-stage[data-locked="true"]) {
    min-height: 0;
    padding-bottom: 0;
  }
  .live-room-frame:has(> .live-stage[data-locked="true"]) {
    margin-bottom: 0;
  }
  #main .live-stage[data-mode="video"][data-seats="1"][data-locked="true"] {
    isolation: isolate;
    background: linear-gradient(125deg, #51333f, #251c27 60%, #422834);
  }
  #main .live-stage[data-mode="video"][data-seats="1"][data-locked="true"] > .host-camera-off {
    z-index: 1;
    background: #20181a;
  }
  .live-stage[data-mode="video"][data-seats="1"][data-locked="true"] > .live-room-controls {
    position: relative;
    z-index: 2;
    max-height: 46dvh;
    gap: 4px;
    padding-block: 6px;
    background: #20181a;
    overscroll-behavior: contain;
  }
  #main .live-stage[data-locked="true"] .live-room-controls .page-actions {
    gap: 4px;
  }
  .live-stage[data-locked="true"] .live-room-controls .soft-btn {
    padding-inline: 6px;
  }
  #main .live-stage[data-locked="true"] .live-room-controls .solo-live-tools {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
  }
  #main:has(.live-stage[data-locked="true"]) > #live-room-tools {
    display: none;
  }
  #main:has(.live-stage[data-locked="true"]) > #live-room-tools.solo-live-tools-open {
    position: fixed;
    display: block;
    inset: auto 0 0;
    z-index: 50;
    max-height: min(78dvh, 42rem);
    box-sizing: border-box;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    overflow: auto;
    overscroll-behavior: contain;
    background: #fff9f9;
    color: #271b1f;
    border: 1px solid #71525d;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 26px #0005;
  }
  #main:has(.live-stage[data-locked="true"]) .solo-live-tools-heading {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: #fff9f9;
    border-bottom: 1px solid #dec5cb;
  }
  .solo-live-tools-heading h2 {
    margin: 0;
    font-size: 1rem;
  }
}

.live-room-social-controls {
  flex-basis: 100%;
}

.live-member-search,
.live-member-list {
  margin-block: 12px;
}

.live-member-list {
  max-height: min(48dvh, 24rem);
  overflow: auto;
}

.live-member-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--block-border);
  overflow-wrap: anywhere;
}

.live-member-row button {
  flex-shrink: 0;
  margin-inline-start: auto;
}

@media (max-width: 720px) {
  #main .live-stage[data-locked="true"] .live-room-controls > .live-room-social-controls {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  #mobile.mobile-nav {
    transition: transform 180ms ease, opacity 180ms ease;
  }

  body[data-block-view="feed"] #mobile.mobile-nav.block-tabbar-hidden {
    transform: translateY(calc(100% + max(10px, env(safe-area-inset-bottom)) + 8px));
    opacity: 0;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #mobile.mobile-nav {
    transition: none;
  }
}

.live-stage[data-mode="video"] {
  position: relative;
}

#main .live-video-chat {
  height: clamp(7rem, 24dvh, 16rem);
  min-height: 0;
  margin: 8px 0 0;
  padding: 8px 12px;
  box-sizing: border-box;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid #eed7db;
  border-radius: 12px;
  color: #271719;
}

.live-video-chat :is(.live-chat-line, .live-chat-reaction) {
  padding: 6px 0;
  color: #271719;
  font-size: .875rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.live-video-chat b { color: #90243b; }
.live-video-chat .live-chat-gift { color: #84274d; }
.live-video-chat .live-comment-actions { display: inline; }
.live-video-chat .live-comment-actions summary {
  display: inline;
  padding: 6px;
  cursor: pointer;
  color: #90243b;
}
.live-video-chat [data-live-comment-reactions] {
  display: inline-flex;
  flex-wrap: wrap;
}

#main .live-stage .live-room-controls > [data-form="live-chat"] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  flex-basis: 100%;
  grid-column: 1 / -1;
  margin: 0;
}

.live-stage [data-form="live-chat"] input {
  flex: 1;
  width: 1px;
  min-width: 0;
  min-height: 36px;
  padding: 5px 11px;
  border: 1px solid #71525d;
  border-radius: 20px;
  font-size: 16px;
}

.live-stage [data-form="live-chat"] :is(#live-reply-target, .edit-status) {
  flex-basis: 100%;
  margin: 0;
}
.live-stage [data-form="live-chat"] .edit-status:empty { display: none; }
.live-stage [data-form="live-chat"] .live-gift-button { font-size: 1.15rem; }

@media (max-width: 720px) {
  .live-stage[data-locked="true"] .live-room-controls > [data-form="live-chat"] .primary {
    margin: 0;
  }
}

@media (min-width: 721px) {
  #main .live-stage[data-mode="video"][data-seats="1"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }
  #main .live-stage[data-mode="video"][data-seats="1"] > :is(#broadcast-video, .host-camera-off) {
    grid-area: 1 / 1;
  }
  #main .live-stage[data-mode="video"][data-seats="1"] > .live-room-controls {
    display: block;
    grid-row: 2;
    padding: 8px 12px 0;
  }
}

#main .live-stage .live-room-controls > .live-video-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid #a7748480;
  border-radius: 24px;
  background: #21161df2;
  color: #fff;
}
#main .live-stage .live-room-controls > .live-video-composer:has(.live-gift-button) {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}
#main .live-video-composer > input[name="message"] {
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  border: 1px solid #a7748470;
  background: #fff4f6;
  color: #271820;
}
#main .live-video-composer > :is(.primary, .live-gift-button) {
  min-height: 40px;
  margin: 0;
  padding: 4px 9px;
  border-radius: 18px;
}
.live-video-composer > :is(#live-reply-target, .edit-status) {
  grid-column: 1 / -1;
}
.live-reaction-picker {
  position: relative;
}
.live-reaction-picker > summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  border-radius: 50%;
  background: linear-gradient(#bd6486 0%, #893755 49%, #6b2442 50%, #962f59 100%);
  border: 1px solid #f3a8c180;
  box-shadow: inset 0 1px 1px #fff6, 0 2px 5px #0006;
  color: #fff5f8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  list-style: none;
}
.live-reaction-picker > summary::-webkit-details-marker { display: none; }
.live-reaction-picker .live-reactions {
  position: absolute;
  inset: auto 0 calc(100% + 8px) auto;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin: 0;
  padding: 6px;
  border: 1px solid #a77484;
  border-radius: 28px;
  background: #251721f7;
  box-shadow: 0 5px 18px #0008;
}
.live-reaction-orb {
  --shine: #fff0a5;
  --middle: #d78725;
  --base: #9b4e1b;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #fff7;
  border-radius: 50%;
  background: radial-gradient(ellipse at 38% 10%, #fffc, transparent 40%),
    linear-gradient(var(--shine), var(--middle) 53%, var(--base) 54%, var(--middle));
  box-shadow: inset 0 1px 2px #fff7, inset 0 -2px 3px #0004, 0 2px 4px #0008;
  font-size: 23px;
  line-height: 1;
  text-shadow: 0 2px 3px #3515257a;
}
.live-reaction-orb[data-tone="berry"] { --shine: #e9b7ff; --middle: #a057ce; --base: #602b97; }
.live-reaction-orb[data-tone="peach"] { --shine: #ffc4af; --middle: #ce6e66; --base: #a04359; }
.live-reaction-orb[data-tone="blue"] { --shine: #bcefff; --middle: #5b93cf; --base: #395baf; }
.live-reaction-orb[data-tone="lime"] { --shine: #edffa7; --middle: #a9b445; --base: #6e832a; }
.live-reaction-orb:active { filter: brightness(1.2); }

@media (max-width: 720px) {
  #main .live-stage .live-room-controls > .live-video-composer {
    position: fixed;
    inset: auto 8px max(calc(4.5rem + max(10px, env(safe-area-inset-bottom))), var(--live-keyboard-inset, 0px)) 8px;
    z-index: 39;
  }
  #main .live-stage[data-locked="true"] .live-room-controls {
    padding-bottom: 55px;
    max-height: max(220px, 55dvh);
  }
  #main:has(.live-stage[data-mode="video"]:not([data-locked="true"])) {
    padding-bottom: 165px;
  }
}

.live-setup, .live-room-frame, #live-room-tools {
  font-family: "Avenir Next", "Avenir", system-ui, sans-serif;
}
.live-setup-seats {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 14px 0;
  min-width: 0;
  color: #a12b46;
}
.live-setup-seats legend {
  color: #50232f;
  font-weight: 650;
  padding: 0 0 4px;
}
.live-seat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.live-seat-options label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  cursor: pointer;
}
.live-seat-options input {
  position: absolute;
  opacity: 0;
  width: 1px;
}
.live-seat-options span {
  padding: 3px 0;
  border-bottom: 2px solid transparent;
  font-size: .875rem;
}
.live-seat-options input:checked + span {
  border-color: #a51c2e;
  color: #8e1a34;
  font-weight: 750;
}
.live-seat-options input:focus-visible + span { outline: 2px solid #a51c2e; }
.live-setup-controls {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 10px;
}
.live-setup-controls > label {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin: 0;
  font-size: .85rem;
}
.live-setup-controls > label input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #a51c2e;
}
.live-setup-controls > label select {
  width: auto;
  font: inherit;
  margin: 0;
  padding: 4px 6px;
}
.live-setup footer .primary { border-radius: 24px; }

#main:has(.live-video-composer) > #live-room-tools {
  display: none;
}
#main:has(.live-video-composer) > #live-room-tools.solo-live-tools-open {
  display: block;
  position: fixed;
  inset: auto max(12px, calc((100vw - 42rem) / 2)) 0;
  z-index: 50;
  max-height: 76dvh;
  overflow: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  border: 1px solid #71525d;
  background: #fff9f9;
  color: #271b1f;
  box-shadow: 0 -8px 26px #0005;
}
#main:has(.live-video-composer) .solo-live-tools-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #dec5cb;
  background: #fff9f9;
}
.live-private-controls {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 12px;
}
.live-private-controls .solo-live-exit { display: inline-flex; }
.live-private-controls :is(.page-actions, .live-effects-trigger, p) { margin: 0; }
.live-private-controls :is(.soft-btn, .text-btn) {
  background: transparent;
  border: 0;
  box-shadow: none;
  font-weight: 650;
}
#main .live-private-controls .solo-live-exit {
  color: #fff;
  background: #a51c2e;
  border-radius: 18px;
}
.live-room-header-actions > [data-action="play-live"] {
  padding: 5px 8px;
  border-radius: 18px;
  min-height: 34px;
}
.live-tools-trigger {
  display: grid;
  place-items: center;
  width: 38px;
  height: 40px;
  padding: 0;
  color: #fff4f8;
  background: transparent;
}
#main .live-stage .live-room-controls > .live-video-composer {
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
}
#main .live-stage .live-room-controls > .live-video-composer:has(.live-gift-button) {
  grid-template-columns: minmax(0, 1fr) repeat(4, auto);
}

@media (max-width: 720px) {
  body:has(.live-video-composer input:focus) #mobile.mobile-nav {
    visibility: hidden;
    pointer-events: none;
    transform: translateY(120%);
  }
  #main .live-stage .live-room-controls > .live-video-composer:has(input:focus) {
    bottom: max(8px, calc(var(--live-keyboard-inset, 0px) + 6px));
  }
  #main .live-stage[data-locked="true"] > .live-room-controls {
    overflow: visible;
    padding: 0 0 52px;
  }
}

:is(.live-setup, .live-room-frame, #live-room-tools) :is(button, select, input) {
  font-family: inherit;
}

.avatar:has(> .member-presence-dot),
.member-portrait:has(> .member-presence-dot) {
  position: relative;
  overflow: visible;
}
.avatar:has(> .member-presence-dot) > img,
.member-portrait:has(> .member-presence-dot) > img {
  border-radius: inherit;
}
.member-presence-dot {
  position: absolute;
  z-index: 1;
  inset: auto 0 0 auto;
  box-sizing: border-box;
  width: clamp(9px, 29%, 15px);
  aspect-ratio: 1;
  border: 1px solid #76090d;
  border-radius: 50%;
  background: radial-gradient(ellipse at 36% 27%, #ffd0ca 0%, #ff8077 17%, #ff2828 43%, #d50009 72%, #8c0006 100%);
  box-shadow: 0 0 0 1px #fff9, 0 0 6px 2px #ff101958;
  pointer-events: none;
}
.member-portrait > .member-presence-dot {
  inset: auto 4% 4% auto;
}
.member-portrait:has(> .member-presence-dot:not([hidden])) > .member-photo-camera {
  right: auto;
  left: -3px;
}
.presence-setting {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.presence-setting input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #be111b;
}

#page-back {
  order:-1;
  flex:none;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid #b64855;
  border-radius:50%;
  color:#fff;
  background:#271719;
  cursor:pointer;
}
#page-back[hidden] { display:none; }
#page-back:hover { background:#8c1630; }
#page-back:focus-visible { outline:2px solid #a51e36; outline-offset:2px; }
@media (max-width:720px) {
  header:has(> #page-back:not([hidden])) { gap:4px; }
  #page-back { width:40px; }
}


@media (max-width: 720px) {
  .live-room-frame:has(> .live-stage[data-locked="true"]) > .live-video-chat {
    height: clamp(3rem, 17dvh, 8rem);
    margin: 0 8px calc(3.5rem + env(safe-area-inset-bottom));
  }
}

.live-room-header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.live-room-header-actions .live-join-alert[hidden] {
  display: none;
}
.live-join-alert > span {
  display: inline-block;
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 24%, #ffb6ba, #f31837 52%, #a50b23);
  box-shadow: 0 0 7px #ed1b42;
}
.live-join-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.live-member-photo {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  min-width: 36px;
  min-height: 36px;
  padding: 2px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.live-member-photo:focus-visible {
  outline: 2px solid #ec4760;
  outline-offset: 1px;
}
.live-chat .avatar,
.live-room-identity .live-member-photo .avatar,
.live-panel-photo-overlay .avatar {
  width: 30px;
  height: 30px;
}
.live-panel-photo-overlay {
  display: none;
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
  background: #24141bdb;
  border-radius: 50%;
}
.live-panel-has-video .live-panel-photo-overlay {
  display: block;
}
@media (max-width: 720px) {
  .live-room-header-actions > .status-pill {
    display: none;
  }
}


#main .live-layout-options button {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #c88e99;
  border-radius: 18px;
}
#main .live-layout-options button[aria-pressed="true"] {
  background: #a51c2e;
  border-color: #a51c2e;
  color: #fff;
}
.live-stage[data-mode="video"] .live-panel-empty {
  color: #f4c6ce;
}

.live-stage > .live-gift-popup {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  width: max-content;
  max-width: min(56%, 15rem);
  padding: .55rem .75rem;
  border: 1px solid #e9a4af;
  border-radius: .8rem;
  background: #301920f2;
  color: #fff;
  box-shadow: 0 3px 14px #16091070;
  font-size: .875rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  pointer-events: none;
  animation: live-gift-appear 180ms ease-out;
}
.live-stage > .live-gift-popup[hidden] { display: none; }
.live-stage[data-mode="video"][data-seats]:not([data-seats="1"]) > .live-gift-popup {
  grid-area: 1 / 1;
  max-width: min(76%, 15rem);
}
.live-chat .live-chat-arrival { color: #73505b; font-size: .82rem; }
.live-chat .live-chat-gift { color: #84274d; overflow-wrap: anywhere; }
@keyframes live-gift-appear {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

#main [data-form="live-chat"] > .live-gift-button {
  justify-self: end;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #e3768c;
  border-radius: 14px;
  background: linear-gradient(145deg, #a3203c, #5d1327);
  color: #fff;
}
#dialog:has(.live-gift-sheet) {
  position: fixed;
  inset: auto 0 0;
  width: min(100%, 38rem);
  max-width: none;
  max-height: min(52dvh, 31rem);
  box-sizing: border-box;
  margin: 0 auto;
  padding: 16px 16px max(16px, env(safe-area-inset-bottom));
  border: 1px solid #9a5464;
  border-radius: 22px 22px 0 0;
  background: #25171d;
  color: #fff4f6;
}
#dialog:has(.live-gift-sheet)::backdrop { background: #140b1040; }
.live-gift-sheet-heading {
  position: static;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: auto;
  padding: 0 0 12px;
  border: 0;
  background: transparent;
}
.live-gift-sheet-heading h2 { margin: 0; color: inherit; }
.live-gift-sheet .helper { color: #f3d6dd; }
.live-gift-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.live-gift-tile {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 96px;
  padding: 8px;
  border: 1px solid #875264;
  border-radius: 14px;
  background: #3a232d;
  color: #fff4f6;
  cursor: pointer;
  text-align: center;
}
.live-gift-tile:disabled { opacity: .65; cursor: default; }
.live-gift-tile:focus-visible,
.live-gift-tile:hover:not(:disabled) { border-color: #ff9db1; }
.live-gift-icon { font-size: 1.75rem; line-height: 1.15; }

.profile-post-toolbar {
  margin-block: 14px;
  border: 1px solid #e6cbd2;
  border-top: 3px solid #9e243e;
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
}
.profile-post-heading,
.profile-write-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}
.profile-post-heading h2 { margin: 0 auto 0 0; font-size: 1.25rem; }
.profile-post-heading button,
.profile-create-row button,
.profile-manage-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
}
.profile-post-heading button[hidden],
.profile-post-composer[hidden] { display: none; }
.profile-post-filter { color: #831932; }
.profile-write-row { padding-block: 6px 14px; }
.profile-write-row .avatar { flex-shrink: 0; width: 42px; height: 42px; }
.profile-write,
.profile-add-photo {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #3d2530;
}
.profile-write { flex: 1; text-align: left; font-size: 1rem; }
.profile-add-photo { display: grid; place-items: center; min-width: 44px; color: #91243d; }
.profile-create-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 14px;
  background: #f9edf0;
}
.profile-create-row button { background: #fff; color: #861f37; border: 1px solid #e9cbd3; }
.profile-create-row svg, .profile-post-heading svg { width: 18px; height: 18px; }
.profile-manage-button {
  width: calc(100% - 28px);
  margin: 12px 14px;
  border: 1px solid #d8a5b3;
  border-radius: 9px;
  background: #f5e0e6;
  color: #741b32;
  font-weight: 700;
}
.profile-post-manager { display: grid; gap: 8px; max-height: 55vh; overflow: auto; }
.profile-post-manager > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e8d6dd; }
.profile-post-manager small { display: block; margin-top: 4px; }
#profile-post-pagination:not(:empty) { display: flex; justify-content: center; padding: 8px; }

.post-photo-preview-heading { display: flex; align-items: flex-start; gap: 12px; }
.post-photo-preview-heading h2 { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.post-photo-preview-heading button {
  flex: 0 0 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #d8a5b3;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
}
dialog footer.share-post-actions { flex-wrap: wrap; }

.groups-directory-heading,.groups-section-heading {
 display:flex; justify-content:space-between; align-items:center; gap:8px;
}
.groups-directory-actions { display:flex; align-items:center; gap:8px; }
.groups-create-button { display:grid; place-items:center; width:44px; height:44px; padding:0; border-radius:12px; }
.groups-create-button svg { width:22px; height:22px; }
.groups-directory-tabs {
 display:flex; gap:6px; overflow-x:auto; margin:12px 0 6px; padding:5px 0 9px;
 border-bottom:1px solid #eadfe2; scrollbar-width:thin;
}
.groups-directory-tabs button {
 flex:0 0 auto; min-height:44px; padding:0 12px; border:0; border-radius:14px;
 background:transparent; color:inherit; font-size:.9rem; font-weight:650; white-space:nowrap;
}
.groups-directory-tabs button[aria-pressed="true"] { background:#f8e6eb; color:#8e233b; }
.groups-section-heading .text-btn { min-height:44px; }
.community-row:has(p) > button:last-child { grid-row:1 / 3; }

/* Keep the chat field usable with the gift box visible on narrow screens. */
#main .live-video-composer > .live-gift-button {
  width: 44px;
  font-size: 1.15rem;
}
#main .live-panel-empty button[data-op="start"] {
  font-size: .875rem;
  padding: 6px 10px;
}

.live-stage[data-mode="video"][data-seats="6"] > .live-panel-videos {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.live-gift-celebration {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin-bottom: .2rem;
}
.live-gift-symbol {
  font-size: 1.75rem;
  animation: live-gift-bounce 680ms ease-out both;
}
.live-gift-sparkle {
  color: #ffd579;
  animation: live-gift-sparkle 900ms ease-out both;
}
.live-gift-sparkle:last-child {
  animation-delay: 120ms;
}
@keyframes live-gift-bounce {
  0% { opacity: 0; transform: translateY(12px) scale(.45); }
  55% { opacity: 1; transform: translateY(-3px) scale(1.2); }
  100% { transform: scale(1); }
}
@keyframes live-gift-sparkle {
  0%, 100% { opacity: 0; transform: scale(.5); }
  45% { opacity: 1; transform: scale(1.35); }
}
@media (prefers-reduced-motion: reduce) {
  .live-stage > .live-gift-popup, .live-gift-symbol, .live-gift-sparkle {
    animation: none;
  }
}

.live-seat-controls:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  grid-column: 1 / -1;
}
.live-seat-controls > .soft-btn {
  min-height: 44px;
  padding: 4px 10px;
  border: 1px solid #9e5767;
  border-radius: 14px;
  background: #38212a;
  color: #fff4f6;
  font-size: .875rem;
}
.live-seat-controls > .soft-btn[aria-pressed="true"] {
  background: #781d36;
}
.live-seat-controls > [data-op="step-down"] {
  border-color: #e3768c;
}
:is(.live-room-frame, .live-video-composer) > .live-seat-controls {
  padding: 4px;
  border-radius: 18px;
  background: #21161d;
}
.live-room-frame > .live-seat-controls {
  position: fixed;
  z-index: 39;
  inset: auto 8px max(8px, env(safe-area-inset-bottom)) 8px;
  width: fit-content;
  max-width: calc(100% - 16px);
  margin-inline: auto;
}
@media (width > 720px) {
  .live-video-composer > .live-seat-controls {
    position: fixed;
    z-index: 39;
    right: 16px;
    bottom: 16px;
  }
  #main:has(.live-video-composer > .live-seat-controls:not([hidden])) {
    padding-bottom: 68px;
  }
}
@media (max-width: 720px) {
  .live-room-frame > .live-seat-controls {
    bottom: calc(4.5rem + max(10px, env(safe-area-inset-bottom)));
  }
  #main:has(.live-video-composer > .live-seat-controls:not([hidden])) {
    padding-bottom: 210px;
  }
}

@media (max-width: 720px) {
  body:has(.live-stage[data-locked="true"]) > :is(header, #mobile) {
    visibility: hidden;
  }
  #main .live-room-frame:has(> .live-stage[data-locked="true"]) {
    position: fixed;
    inset: 0;
    z-index: 40;
    height: 100%;
    height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr);
    padding-top: env(safe-area-inset-top);
    background: #100d0e;
  }
  #main .live-room-frame:has(> .live-stage[data-locked="true"]) > .live-room-heading {
    padding: 4px 8px;
    background: #20181a;
  }
  #main .live-room-frame:has(> .live-stage[data-locked="true"]) .live-room-heading p,
  #main .live-room-frame:has(> .live-stage[data-locked="true"]) .live-room-identity:has(> #live-room-picture:empty) {
    display: none;
  }
  #main .live-stage[data-mode="video"][data-seats="1"][data-locked="true"] > .live-room-controls {
    max-height: none;
    padding: 4px 8px max(4px, env(safe-area-inset-bottom));
  }
  #main .live-stage[data-locked="true"] .live-room-controls > .live-video-composer:not(:has(input:focus)) {
    position: relative;
    inset: auto;
    margin: 0;
  }
  #main .live-stage[data-locked="true"] .live-room-controls > .live-video-composer:has(input:focus) {
    position: fixed;
    inset: auto 8px max(8px, calc(var(--live-keyboard-inset, 0px) + 6px)) 8px;
  }
  #main .live-stage[data-locked="true"] .live-room-controls:has(.live-video-composer input:focus) {
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
  }
  #live-room-tools > .live-video-chat {
    margin: 8px;
  }
}

#dialog:has(.live-setup) {
  box-sizing: border-box;
  width: min(480px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  padding: clamp(12px, 4vw, 24px);
  overflow-wrap: anywhere;
}
#dialog .live-setup :is(fieldset, label, footer, input, select) {
  min-width: 0;
  max-width: 100%;
}
#dialog .live-setup :is(input[name="title"], select) {
  font-size: 16px;
}
#dialog .live-setup > label > select {
  display: block;
  width: 100%;
}
#dialog .live-setup footer { flex-wrap: wrap; }
#dialog .live-setup-seats > .live-seat-options { min-width: 0; }
#dialog .live-setup-controls > [hidden] { display: none; }
#dialog .live-setup-seats[hidden] { display: none; }
