.live-status{padding:14px 20px;margin:12px 0;border-radius:14px;background:#f5edfc;color:#633485;line-height:1.5}.live-status:empty{display:none}.live-error{background:#fff0ef;color:#942d37}.live-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:22px;margin:24px 0}.live-card{border:1px solid #eee5f1;border-radius:22px;overflow:hidden;background:white;display:flex;flex-direction:column}.live-card>a:not(.live-user)>img{width:100%;height:230px;object-fit:cover}.live-card .challenge-body{padding:18px}.live-card h3{margin:0 0 12px}.live-card p{line-height:1.6}.live-card a{text-decoration:none;color:inherit}.live-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.live-actions button,.live-button{border:1px solid #decce9;border-radius:12px;padding:10px 16px;background:#fff;color:#693b83;cursor:pointer}.live-actions button[aria-pressed=true]{background:#eedbfa}.live-media{width:100%;max-height:560px;object-fit:contain;background:#f6f0f8}.live-form{display:grid;gap:16px;max-width:680px;margin:20px 0}.live-form label{display:grid;gap:8px}.live-form input,.live-form textarea,.live-form select{width:100%;padding:12px;border:1px solid #daccdf;border-radius:12px;font:inherit}.live-form input[type=checkbox]{width:auto}.live-panel{padding:24px;border:1px solid #eee5f1;border-radius:22px;background:white;margin:16px 0}.live-user{display:flex;align-items:center;gap:12px}.live-user img{width:42px;height:42px;border-radius:50%;object-fit:cover}.live-header{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-bottom:24px}.live-header a{text-decoration:none;color:inherit}.live-dialog{border:0;border-radius:24px;padding:24px;max-width:min(680px,94vw);width:100%;max-height:90vh;overflow:auto}.live-dialog::backdrop{background:#25133088}.live-dialog>button{float:right}.live-message{white-space:pre-wrap;overflow-wrap:anywhere}.live-pagination{display:block;margin:20px auto}.live-empty{padding:24px;color:#735f7c}.live-consents label{display:flex;gap:8px;align-items:flex-start;font-size:13px}.live-consents input{width:auto}.live-card .live-user{padding:14px}.live-form button:disabled,.live-actions button:disabled{opacity:.5;cursor:wait}.chat-compose textarea{width:100%}.live-detail-description{white-space:pre-wrap}.live-profile-avatar{width:80px;height:80px;border-radius:50%;object-fit:cover}.live-content{max-width:1160px;margin:auto}.live-toolbar{display:flex;gap:12px;flex-wrap:wrap}.live-toolbar input,.live-toolbar select{padding:12px;border:1px solid #decce9;border-radius:12px;font:inherit}.live-toolbar input{flex:1;min-width:180px}.live-auth-required{padding:40px;text-align:center}.live-placeholder{height:180px;background:linear-gradient(135deg,#f0dcfa,#eceffd);display:grid;place-items:center;font-size:34px;color:#9b50bd}@media(max-width:700px){.live-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}.live-card>a:not(.live-user)>img{height:180px}.chat-layout{display:block!important}.live-panel{padding:16px}.live-header{flex-wrap:wrap}.live-form{max-width:100%}}

.live-home-catalog{grid-column:1/-1;min-width:0}.live-pagination[hidden]{display:none}.live-form [hidden]{display:none}.live-card button:disabled{opacity:.5;cursor:default}

.live-toolbar[hidden]{display:none}

/* Keep author avatars separate from contest covers and story media. */
.live-card{min-width:0}
.live-card>.live-user{min-width:0;min-height:64px;gap:10px;flex:none}
.live-card>.live-user>img,.live-card>.live-user>.social-avatar{width:36px;height:36px;min-width:36px;max-width:36px;flex:0 0 36px;border-radius:50%;object-fit:cover}
.live-card>.live-user>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.live-grid:has(>.live-story){align-items:start;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:20px}
.live-story{box-shadow:0 4px 18px #40204c08}
.live-story>.live-media{display:block;flex:none;width:100%;height:auto;aspect-ratio:9/16;max-height:none;object-fit:contain;background:#18131d}
.live-story>.challenge-body{flex:none;padding:14px 16px}
.live-story .live-message{margin:0 0 12px;font-size:14px;line-height:1.55;overflow-wrap:anywhere}
.live-story .live-message:empty{display:none}
.live-story .live-actions{gap:8px;margin:0;align-items:center}
.live-story .live-actions button{min-height:38px;padding:8px 10px;font-size:12px;line-height:20px;border-radius:10px}
.live-story .live-actions [data-save]{margin-left:auto}
.browse-main>.live-actions{margin:0 0 16px}
.browse-main>.live-toolbar{margin-bottom:24px}
@media(max-width:600px){.live-grid:has(>.live-story){grid-template-columns:minmax(0,1fr)}.live-story>.live-media{max-height:none}.live-story .live-actions button{font-size:13px}}

/* Compact, consistent story controls below the 9:16 media. */
.live-story .live-actions{display:flex;flex-wrap:nowrap;gap:4px;width:100%;min-width:0}
.live-story .live-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-width:44px;height:44px;min-height:44px;padding:8px;border:0;background:transparent;color:#72627d;font-size:12px;line-height:20px;white-space:nowrap}
.live-story .live-actions button svg{display:block;width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.live-story .live-actions button:hover{background:#f5eafa;color:#9227ca}
.live-story .live-actions button:focus-visible{outline:2px solid #9227ca;outline-offset:1px}
.live-story .live-actions button[aria-pressed=true]{color:#9227ca;background:#f5eafa}
.live-story .live-actions button[aria-pressed=true] svg{fill:currentColor}
.live-story .live-actions [data-save]{margin-left:auto}
.live-story .live-actions [data-like-count]{font-variant-numeric:tabular-nums;max-width:48px;overflow:hidden;text-overflow:ellipsis}
.live-story .live-actions [data-comment]{flex:0 1 auto;min-width:44px}
.live-story .story-comment-label{overflow:hidden;text-overflow:ellipsis}

.live-contest-status{align-self:flex-start;border-radius:8px;background:#f4e9fa;color:#8736af;padding:5px 9px;font-size:12px;font-weight:600;margin-bottom:12px}.live-contest-link{display:block;margin-top:16px;color:#9227ca;font-size:14px;font-weight:700}.live-card.challenge-card>.live-user{margin-top:auto}.live-card.challenge-card .challenge-body>small{color:#82738c}

/* Consistent contest cards and responsive contest details. */
.live-grid:has(>.live-contest){grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));align-items:stretch;gap:24px}
.live-contest>a:not(.live-user){display:flex;flex-direction:column;flex:1;min-width:0}
.live-contest>a:not(.live-user)>img,.live-contest>a:not(.live-user)>.live-placeholder{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;flex:none;background:#f2ebf7}
.live-contest>a:not(.live-user)>.live-placeholder{display:grid}
.live-contest .challenge-body{display:flex;flex-direction:column;gap:12px;padding:20px;flex:1;min-width:0}
.live-contest .live-contest-status{margin:0;min-height:28px;line-height:18px}
.live-contest .challenge-body h3{font-size:18px;line-height:1.4;letter-spacing:-.2px;margin:0;min-height:2.8em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.live-contest .challenge-body p{font-size:14px;line-height:1.6;margin:0;min-height:4.8em;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.live-contest .challenge-body small{display:block;font-size:12px;line-height:20px;margin-top:auto}
.live-contest .live-contest-link{display:flex;justify-content:center;align-items:center;min-height:44px;padding:10px 12px;margin:0;border-radius:12px;background:#f4e9fa;font-size:13px}
.live-contest>.live-user{border-top:1px solid #eee5f1;min-height:65px;padding:14px 20px}
.live-catalog>.browse-head{gap:16px;flex-wrap:wrap}
.live-catalog>.live-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,230px) auto;gap:12px;margin:0 0 24px}
.live-catalog>.live-toolbar :is(input,select,button){height:44px;min-width:0;margin:0;font-size:14px}
.community-challenge .hero{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:stretch}
.community-challenge .hero-copy{min-width:0;padding:28px}
.community-challenge .hero-copy :is(h1,p){overflow-wrap:anywhere}
.community-challenge .hero-photo{min-height:260px;background:#f2ebf7}
.community-challenge .hero-photo>img{display:block;object-fit:cover}
.community-challenge .author{min-width:0}
.community-challenge .author>div{min-width:0;overflow-wrap:anywhere}
.community-challenge .author .avatar{flex:0 0 38px;overflow:hidden}
.community-challenge .author .avatar img{width:38px;height:38px;object-fit:cover;border-radius:50%}
.community-challenge #facts{display:block;margin:20px 0;padding:16px 20px;border:1px solid #e9dfef;border-radius:14px;background:#fff;font-size:13px;line-height:1.7}
.community-challenge #facts:empty{display:none}
.community-challenge #sidebar .live-panel{margin:0}
.community-challenge #sidebar .primary{width:100%;min-height:44px;white-space:normal}
.community-challenge .page-grid{grid-template-columns:minmax(0,1fr) minmax(220px,280px);gap:24px}
@media(max-width:1100px){.community-challenge .hero{grid-template-columns:1fr}.community-challenge .hero-photo{aspect-ratio:16/9;min-height:0}.community-challenge .page-grid{grid-template-columns:1fr}.community-challenge #sidebar{grid-row:1}}
@media(max-width:600px){.live-grid:has(>.live-contest){grid-template-columns:minmax(0,1fr)}.live-catalog>.live-toolbar{grid-template-columns:minmax(0,1fr) auto}.live-catalog>.live-toolbar input{grid-column:1/-1}.live-contest .challenge-body{padding:16px}.community-challenge .hero-copy{padding:20px}}

.live-contest>a:not(.live-user)>.live-placeholder{font-size:14px;color:#82738c}

.chat-detail .chat-messages{min-height:220px;max-height:55vh;overflow-y:auto;overscroll-behavior:contain}.chat-detail .chat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;max-width:none;margin:0}.chat-compose [data-send-status]{grid-column:1/-1;overflow-wrap:anywhere}.chat-detail [data-chat-status]{padding:0 20px}.chat-row[aria-pressed=true]{background:#f2e6fa}.chat-row span{min-width:0}.chat-row p{overflow-wrap:anywhere}.chat-list [data-list-status]{padding:0 12px}.chat-detail button:disabled{opacity:.55;cursor:default}

/* Compact chat avatars: about two text lines, regardless of source image size. */
.chat-row>img,.chat-row>.social-avatar,.chat-head .live-user>img,.chat-head .live-user>.social-avatar{width:40px;height:40px;min-width:40px;max-width:40px;min-height:40px;max-height:40px;flex:0 0 40px;border-radius:50%;object-fit:cover;overflow:hidden}

/* Shared account bar and live interface sizing. */
.live-header{box-sizing:border-box;min-width:0;gap:12px;font:600 14px/20px Manrope,Arial,sans-serif}
.live-header>a,.live-header>button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;box-sizing:border-box;white-space:nowrap;border-radius:10px}
.live-header>.live-user{justify-content:flex-start;gap:8px;min-width:0;max-width:240px;margin-right:auto}
.live-header .live-user>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.live-header .live-user>img,.live-header .live-user>.social-avatar{width:34px;height:34px;min-width:34px;max-width:34px;flex:0 0 34px;border-radius:50%;object-fit:cover}
.live-header>.live-button{padding:8px 12px;font:inherit;background:#fff}
.live-header>a:not(.live-user){padding:8px 12px}
body:has(>.sidebar) main>.live-header{position:fixed;top:0;left:244px;right:0;z-index:40;height:64px;margin:0;padding:10px 32px;background:#fdfbfe;border-bottom:1px solid #e9dfef;flex-wrap:nowrap}
body.ui-scale:has(>.sidebar)>main{box-sizing:border-box;width:calc(100% - 244px);padding-left:32px;padding-right:32px}
.live-form :is(input,select,textarea),.live-toolbar :is(input,select){box-sizing:border-box;min-width:0;font-size:14px;line-height:22px}
.live-form :is(input:not([type=checkbox]):not([type=radio]),select),.live-toolbar :is(input,select){min-height:42px;padding:9px 12px}
.live-actions :is(button,a.live-button){display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:42px;padding:9px 14px;font:600 14px/22px Manrope,Arial,sans-serif;text-decoration:none}
.profile-content .identity{padding:0 0 16px;min-width:0}
.profile-content .identity-person{gap:16px;min-width:0}
.profile-content .identity-person>div{min-width:0;overflow-wrap:anywhere}
.profile-content .live-profile-avatar{width:72px;height:72px;min-width:72px;max-width:72px;flex:0 0 72px;object-fit:cover}
.profile-content .identity p{margin:4px 0;font-size:14px;line-height:22px}
.profile-content .identity p:empty{display:none}
.chat-row p{margin:4px 0 0;font-size:13px;line-height:19px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(min-width:801px) and (max-width:1150px){body:has(>.sidebar) main>.live-header{left:210px}body.ui-scale:has(>.sidebar)>main{width:calc(100% - 210px)}}
@media(max-width:800px){body:has(>.sidebar) main>.live-header{left:0;padding:10px 20px}body.ui-scale:has(>.sidebar)>main{width:100%;padding-left:20px;padding-right:20px}.live-header{gap:8px}.live-header>.live-user{max-width:180px}.live-header>.live-button{padding:8px 10px}.profile-content .live-profile-avatar{width:64px;height:64px;min-width:64px;max-width:64px;flex-basis:64px}}
@media(max-width:480px){body:has(>.sidebar) main>.live-header{height:auto;min-height:64px;display:flex;flex-wrap:wrap;gap:4px 8px;padding:8px 16px}body:has(>.sidebar) main>.live-header:has([data-logout]){height:104px}.live-header>.live-user{max-width:none;flex:1 1 calc(100% - 100px)}.live-header>[data-notifications]{margin-right:auto}body:has(main>.live-header [data-logout])>.sidebar{padding-top:116px}.live-header>.live-button{font-size:13px}.profile-content .live-actions{gap:8px}.profile-content .live-actions>*{flex:1 1 auto}}

/* Align account text and actions on the same horizontal center. */
.live-header{margin:0;align-items:center}
.live-header>a,.live-header>button{height:40px;min-height:40px;align-self:center;margin-top:0;margin-bottom:0;font:600 14px/20px Manrope,Arial,sans-serif;letter-spacing:normal}
.live-header>.live-user{padding-top:0;padding-bottom:0}
.live-header>.live-user>strong{display:block;margin:0;padding:0;font:inherit;line-height:20px}
.live-header>.live-user>img,.live-header>.live-user>.social-avatar{display:block;margin-top:0;margin-bottom:0;align-self:center}
.live-header>.live-user>.social-avatar{display:grid;place-items:center}
.header-actions{align-items:center}
.header-actions>.live-header{align-self:center;margin:0;padding-top:0;padding-bottom:0}

/* Personal navigation is available only after the session is confirmed. */
body:not(.live-signed-in)>.sidebar{display:none}
body.live-guest:has(>.sidebar)>main{margin-left:0!important;width:100%!important}
body.live-guest:has(>.sidebar) main>.live-header{left:0}
.live-account-layout{padding-left:244px}
.live-account-sidebar{position:fixed;inset:0 auto 0 0;z-index:35;width:244px;box-sizing:border-box;padding:24px 20px;background:linear-gradient(160deg,#fff 55%,#f8f3ff);border-right:1px solid #e9dfef;font:600 15px/22px Manrope,Arial,sans-serif}
.live-account-logo{display:block;margin:0 16px 32px;color:#292331;font-size:34px;font-weight:800;line-height:42px;letter-spacing:-2px;text-decoration:none}
.live-account-logo span{color:#9227ca}
.live-account-sidebar nav{display:grid;gap:8px}
.live-account-sidebar nav a{display:flex;align-items:center;min-height:46px;box-sizing:border-box;padding:12px 16px;border-radius:12px;color:#777180;text-decoration:none}
.live-account-sidebar nav a:hover{background:#f5e9fc;color:#9227ca}
.live-account-sidebar nav a[aria-current=page]{background:#eeddf7;color:#9227ca;box-shadow:inset 3px 0 #9227ca}
.live-account-layout .header-inner{gap:12px}.live-account-layout .desktop-nav{display:none}
@media(max-width:800px){.live-account-layout{padding-left:0}.live-account-sidebar{position:relative;width:100%;padding:12px 16px;border-right:0;border-bottom:1px solid #e9dfef}.live-account-logo{display:none}.live-account-sidebar nav{display:flex;overflow-x:auto;gap:6px}.live-account-sidebar nav a{flex:none;padding:10px 12px;min-height:42px;font-size:14px}.live-account-layout .header-inner{height:auto;min-height:64px;padding-top:8px;padding-bottom:8px;flex-wrap:wrap}.live-account-layout .header-actions{min-width:0;max-width:100%}.live-account-layout .live-header{flex-wrap:wrap}.live-account-layout .header-inner>.logo{display:none}}

body.live-guest.ui-scale:has(>.sidebar)>main{padding-top:80px!important}

/* Reels proportions: a bounded portrait frame, including sparse feeds. */
.live-grid:has(>.live-story){grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),360px));justify-content:start;align-items:start;gap:20px}
.live-story{width:100%;max-width:360px;justify-self:start}
.live-story>.live-media{width:100%;height:auto;aspect-ratio:9 / 16;max-height:none;object-fit:contain;background:#18131d}
@media(max-width:600px){.live-grid:has(>.live-story){grid-template-columns:minmax(0,360px);justify-content:center}.live-story{justify-self:center}}

/* Responsive corrections shared by live pages. */
.live-panel,.live-form,.live-toolbar,.chat-list,.chat-detail,.profile-content{min-width:0;box-sizing:border-box}
.live-form label{min-width:0}.live-form input[type=file]{max-width:100%}
.live-dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:680px;padding:24px}
.live-toolbar>*,.live-form>*,.chat-compose>*{min-width:0}
.live-status,.live-empty,.live-message{overflow-wrap:anywhere}
@media(min-width:801px) and (max-width:1150px){body.ui-scale>.sidebar{width:244px}body.ui-scale:has(>.sidebar)>main{margin-left:244px;width:calc(100% - 244px)}body.ui-scale:has(>.sidebar) main>.live-header{left:244px}body.live-guest.ui-scale:has(>.sidebar)>main{margin-left:0;width:100%}body.live-guest.ui-scale:has(>.sidebar) main>.live-header{left:0}}
@media(max-width:1000px){.chat-layout{grid-template-columns:minmax(0,1fr)}.chat-list{border-right:0;border-bottom:1px solid #e9dfef;padding:0 0 16px}.chat-detail{min-height:0}.chat-detail .chat-head{padding:16px 0}.chat-detail .chat-compose{padding-left:0}}
@media(max-width:800px){.live-form :is(input,textarea,select),.live-toolbar :is(input,select){font-size:16px}.live-dialog{padding:16px}.live-form{max-width:100%}.live-auth-required{padding:24px 16px}.live-header .live-user{overflow:hidden}}
@media(max-width:480px){.chat-detail .chat-compose{grid-template-columns:minmax(0,1fr)}.chat-compose>button{width:100%;min-height:44px}.chat-bubble{min-width:0;max-width:92%;padding:12px}.chat-messages{padding:16px 0}.live-toolbar{gap:8px}.live-toolbar>input{flex-basis:100%;min-width:0}.profile-content .identity-person{align-items:flex-start}.live-account-layout .header-actions{width:100%;margin-left:0}.live-account-layout .live-header>.live-user{flex-basis:calc(100% - 90px)}}

/* Four story cards per desktop row; fewer columns on smaller screens. */
.live-grid:has(>.live-story){grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;justify-content:stretch}
.live-grid>.live-story{max-width:none;min-width:0;justify-self:stretch}
.live-story .story-comment-label{display:none}
@media(max-width:1100px){.live-grid:has(>.live-story){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.live-grid:has(>.live-story){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.live-grid:has(>.live-story){grid-template-columns:minmax(0,1fr);max-width:360px;margin-left:auto;margin-right:auto}}

/* Always-visible route navigation, independent of login and API state. */
.live-page-navigation{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.live-page-navigation>a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:8px 14px;box-sizing:border-box;border:1px solid #e9dfef;border-radius:12px;background:#fff;color:#693b83;font:600 14px/22px Manrope,Arial,sans-serif;text-decoration:none}
.live-page-navigation svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.live-page-navigation>a:hover{background:#f5e9fc;border-color:#cfa9e4}
.live-page-navigation>a:focus-visible{outline:2px solid #9227ca;outline-offset:3px}
.auth-card>.live-page-navigation{margin-bottom:20px}
@media(max-width:480px){.live-page-navigation{gap:8px;margin-bottom:16px}.live-page-navigation>a{padding:8px 12px;min-height:44px}.auth-card>.live-page-navigation>a{padding:8px;font-size:13px}}

/* Equal-sized status controls for the challenge catalog. */
.live-catalog>.live-status-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;box-sizing:border-box;padding:6px;margin:0 0 24px;border:1px solid #e5d9ec;border-radius:16px;background:#f8f4fa}
.live-status-tabs>button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;margin:0;padding:10px 12px;border:1px solid transparent;border-radius:10px;background:transparent;color:#735f7c;font:inherit;font-size:14px;font-weight:600;line-height:20px;text-align:center;cursor:pointer}
.live-status-tabs>button[aria-pressed=true]{border-color:#d8bce9;background:#fff;color:#693b83;box-shadow:0 2px 6px #45245c0a}
.live-status-tabs>button:hover:not(:disabled){background:#eee2f5;color:#693b83}
.live-status-tabs>button:focus-visible{outline:2px solid #8a49b0;outline-offset:2px}
.live-status-tabs>button:disabled{cursor:wait}
@media(max-width:480px){.live-catalog>.live-status-tabs{gap:4px;padding:4px;border-radius:13px}.live-status-tabs>button{padding:8px 4px;font-size:12px;line-height:18px;border-radius:8px}}

.live-media-feedback{padding:12px 16px;background:#fff5ec;font-size:13px;line-height:1.5}.live-media-feedback[hidden]{display:none}.live-media-feedback p{margin:0 0 8px}
