/* Primary reference: user-supplied DESIGN.md. Last layer for all product screens. */
:root,[data-theme=light]{--green:#1d9bf0;--green-dark:#1a8cd8;--mint:#eff3f4;--ink:#0f1419;--muted:#536471;--line:#cfd9de;--bg:#fff;--white:#fff;--font:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--heading:var(--font);--soft:#eff3f4;--faint:#829aab;--hairline:#eff3f4}
[data-theme=dark]{--green:#1d9bf0;--green-dark:#1a8cd8;--mint:#202327;--ink:#e7e9ea;--muted:#a0aab2;--line:#333639;--bg:#0f1419;--white:#0f1419;--soft:#161b22;--faint:#829aab;--hairline:#252b32}
html body{background:var(--bg);color:var(--ink);font:15px/1.4 var(--font);font-feature-settings:'ss01' on}
h1{font-size:23px;letter-spacing:-.5px}h2{font-size:20px;letter-spacing:-.3px}h3{font-size:16px;letter-spacing:0}
button{border-radius:9999px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--green);outline-offset:3px}
html .primary{background:var(--green);color:#fff;border-radius:9999px;box-shadow:none;font-size:15px;font-weight:700;min-height:36px;padding:8px 16px}html .primary:hover{background:var(--green-dark);transform:none}
html .secondary,html .follow-small{border:1px solid var(--line);background:var(--white);color:var(--ink);border-radius:9999px;box-shadow:none;font-weight:700}html .follow-small{background:var(--green);color:white;border-color:var(--green);font-size:12px;padding:6px 12px}html .follow-small.following{background:var(--white);color:var(--muted);border-color:var(--line)}
html .secondary:hover,html .icon-btn:hover{background:var(--soft);color:var(--ink)}.icon-btn{color:var(--muted);border-radius:9999px}
html .card{background:var(--white);border-color:var(--line);border-radius:16px;box-shadow:none}
html .topbar{height:64px;gap:20px;padding:0 16px;background:var(--white);border-color:var(--hairline)}
.brand{width:190px;font-size:25px;letter-spacing:-1px}.brand-dot{display:none}.brand img{width:32px;height:32px}.community-tag{display:none}.top-actions{gap:12px}
html .global-search{background:var(--soft);border:0;border-radius:4px;max-width:460px;height:40px;color:var(--muted)}.global-search input{font-size:15px}.global-search kbd{display:none}
html .layout{max-width:none;grid-template-columns:68px minmax(0,1fr) 360px;gap:24px;padding:0 16px}
html .wide-page .layout{max-width:none;grid-template-columns:68px minmax(0,1fr);gap:24px;padding:0 16px}
html main{padding:0 0 80px;border-inline:1px solid var(--hairline)}
.page-heading{padding:16px;margin:0;min-height:76px}.page-heading p{color:var(--muted);font-size:13px;line-height:1.4;margin-top:4px}.live-pill{color:var(--muted)}
html .sidebar{top:64px;height:calc(100dvh - 64px);padding:12px 6px;align-items:center}.sidebar nav{width:100%;gap:4px}
html .nav-item{border-radius:9999px;color:var(--ink);min-height:48px;padding:12px;justify-content:center}.nav-item .icon{width:25px;height:25px}html .nav-item.active{background:transparent;color:var(--green)}.nav-item.active:before{display:none}html .nav-item:hover{background:var(--soft)}
.sidebar .nav-item>span,.sidebar .nav-item>.new-label{display:none}.sidebar .nav-count{position:absolute;top:2px;right:2px;margin:0;font-size:10px}.sidebar .compose-nav{width:48px;height:48px;margin-top:16px;padding:12px;font-size:0}.sidebar .compose-nav>.icon{width:24px;height:24px}.sidebar-bottom{width:100%;padding-top:16px}.sidebar .seller-invite{display:none}.sidebar .account-card{padding:12px 0;justify-content:center;border:0}.sidebar .account-card>span:not(.avatar),.sidebar .account-card>.icon{display:none}
html .avatar{background:var(--line);color:var(--ink);font-weight:700;letter-spacing:0}.avatar.medium{width:40px;height:40px}.verified{background:var(--green);width:16px;height:16px}
.feed-tabs{height:52px;gap:0;margin:0;border-color:var(--hairline)}.feed-tabs>button{flex:1;justify-content:center;padding:16px 8px;font-size:15px;font-weight:500;border-radius:0;color:var(--muted)}.feed-tabs>button:hover{background:var(--soft)}.feed-tabs>button.selected{color:var(--ink);font-weight:700}.feed-tabs>button.selected:after{height:3px;left:24%;right:24%;border-radius:9999px}.feed-tabs>.feed-options{flex:0 0 44px;margin:0}
html .composer{border:0;border-bottom:1px solid var(--hairline);border-radius:0;padding:16px}.compose-input>button{color:var(--muted);font-size:15px}.compose-toolbar{border:0;margin-top:12px;padding-top:0}.compose-toolbar>div>button,.compose-toolbar>div>button .icon{color:var(--green)}.compose-toolbar>div>button{font-size:12px;min-height:36px}.compose-toolbar .small-btn{font-size:13px}
.categories{padding:12px 16px;margin:0;border-bottom:1px solid var(--hairline);gap:8px}.categories>button,html .categories>button{border-radius:9999px;background:var(--white);color:var(--muted);border-color:var(--line);font-size:12px;padding:6px 12px}html .categories>button.selected{background:var(--soft);color:var(--ink);border-color:var(--line)}
html .post{padding:12px 16px 0;margin:0;border:0;border-bottom:1px solid var(--hairline);border-radius:0;box-shadow:none}.post:hover{background:color-mix(in srgb,var(--soft) 22%,var(--white))}.user-link b{font-size:15px;font-weight:700}.user-link small{font-size:13px;color:var(--muted)}.user-link small>span{color:var(--muted)}.post-body{font-size:15px;line-height:1.5;color:var(--ink);margin:12px 0}.hashtag,.text-link{color:var(--green)}.post-footer{border:0;padding:8px 0 12px;margin-top:8px}.post-footer>div{gap:40px}.reaction{font-size:13px;color:var(--muted);min-height:32px}.reaction .icon{width:19px;height:19px}.reaction.liked,.reaction.saved{color:var(--green)}.reaction.liked .icon,.reaction.saved .icon{fill:color-mix(in srgb,var(--green) 15%,transparent)}.post-media{border-radius:0;background:var(--soft)}.team-label{background:var(--soft);color:var(--muted);border-radius:9999px}.end-feed{font-size:12px;color:var(--muted);padding:24px 16px}
.rightbar{padding-top:16px}.community-card,html .community-card{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:16px}.community-card h2,html .community-card h2{font-size:20px;line-height:1.2;color:var(--ink);margin:0}.community-card h2>span,.community-card>.eyebrow{display:none}.community-card>p,html .community-card>p{color:var(--muted);font-size:14px;line-height:1.4;margin-top:8px}.member-stack{margin:16px 0}.member-stack>span:last-child{color:var(--muted);font-size:12px}.member-stack>.avatar{border-color:var(--white)}html .community-numbers{margin:0;background:var(--white);border-color:var(--hairline)}.community-numbers>span{color:var(--muted);font-size:11px;padding:12px 0 0;text-align:left}.community-numbers>span+span{border:0}.community-numbers b,html .community-numbers b{color:var(--ink);font-size:18px}
.side-section{border:1px solid var(--line);border-radius:16px;padding:16px;margin-top:16px}.section-head{margin-bottom:16px}.section-head h3{font-size:18px}.section-head>.subtle{font-size:11px}.trend{gap:8px;padding-bottom:16px;border-radius:0}.trend-no{display:none}.trend small{font-size:12px;color:var(--muted)}.trend b{font-size:14px}.seller-row{margin-bottom:16px}.seller-row .user-link b{font-size:13px}.seller-row .user-link small{font-size:12px}.security-note,.security-note b,.security-note>.icon{color:var(--muted);font-size:12px}.security-note{margin:16px 8px}.rightbar footer{font-size:11px;margin:16px 8px;color:var(--muted)}footer button{color:var(--muted);font-size:11px}.demo-chip{border-color:var(--line);color:var(--muted)}
html .seller-invite,html .discovery-banner,html .market-banner,html .live-discovery-banner{background:var(--white);border-color:var(--line);border-radius:16px;box-shadow:none}html .market-banner h2,html .discovery-banner h2{color:var(--ink)}html .market-banner p,.discovery-banner p{color:var(--muted)}.market-art,.profile-cover>span,.cinema-art,.setup-art{display:none}.market-banner,.discovery-banner,.live-discovery-banner{margin:16px;padding:20px}.market-banner h2{font-size:20px}.eyebrow{color:var(--muted)}
.listing-grid,.seller-grid,.live-grid{padding:16px;gap:16px}.listing-visual{height:auto;min-height:60px;padding:16px;background:var(--soft)}.listing-visual>.icon{width:28px;height:28px}.listing-visual>span,.listing-visual>.icon{color:var(--muted);font-size:15px}.listing-visual>b{color:var(--muted);background:var(--white);border-radius:9999px}.listing-content>p{color:var(--muted)}.listing-bottom>span>b{color:var(--ink)}
html .profile-card{border:0;border-bottom:1px solid var(--hairline);border-radius:0;margin:0}.profile-cover{background:var(--soft);height:180px}.profile-info{padding:0 16px 20px}.profile-avatar{width:133px;height:133px;margin-top:-33px;border-color:var(--white)}.profile-info h1{font-size:20px}.bio{font-size:15px;color:var(--ink)}.profile-meta,.profile-stats{font-size:13px;color:var(--muted)}.profile-meta a{color:var(--green)}
html .modal{background:var(--white);border-radius:16px;color:var(--ink)}.modal-head{border-color:var(--hairline)}.modal-backdrop{background:#0f141966}.field input,.field textarea,.field select,html .field input,html .field textarea,html .field select{border-radius:4px;background:var(--white);border-color:var(--line);color:var(--ink)}input::placeholder,textarea::placeholder{color:var(--muted)}.menu-options button{border-radius:0}.menu-options button:hover{background:var(--soft)}.compose-text{color:var(--ink);background:var(--white)}
.settings-card,.admin-section,.application-card{margin:16px;padding:20px}.stats-grid{padding:0 16px}.stat{box-shadow:none}.stat>b{color:var(--ink)}.theme-options button{border-radius:9999px}.theme-options button.selected{box-shadow:none}.status-tag,.role-pill,.upload-label,.notice{border-radius:9999px}.status-tag,html .status-tag.green,html .status-tag.red{color:var(--muted);background:var(--soft)}.empty{text-align:left;padding:40px 24px}.empty p{color:var(--muted)}.empty>.icon{color:var(--muted)}.empty .primary{margin-top:16px}.push-welcome{text-align:left}.push-welcome>.text-link{margin-left:0}.subtle{color:var(--muted)}
html .messages-layout{border:0;border-top:1px solid var(--hairline);border-radius:0}html .chat-scroll{background:var(--white)}html .chat-panel,html .message-form,html .conversation-list{background:var(--white)}.chat-head,.conversation-list{border-color:var(--hairline)}html .conversation.selected,html .conversation:hover{background:var(--soft);color:var(--ink)}html .bubble{background:var(--soft);color:var(--ink);border-radius:16px}html .bubble.mine{background:var(--green);color:white}.bubble.mine small{color:#fff}.bubble p{color:inherit}html .chat-call-actions .icon-btn,html .chat-attach-btn,html .chat-attachment-preview{background:var(--soft);color:var(--green);border-color:var(--line);border-radius:9999px}html .message-compose-row>input{border-radius:4px;background:var(--soft);border-color:var(--line);color:var(--ink)}.chat-file-hint,.chat-file-hint span,.chat-attachment-preview b{color:var(--muted)}
.call-overlay{background:#0f1419dd}.call-window{background:#161b22;border-radius:16px;box-shadow:none}.call-brand,.call-person p,.call-person small,.call-control,.call-type{color:#cfd9de}.remote-call-video,.local-call-video,.call-controls{background:#0f1419}.call-control.answer>.icon{background:var(--green)}.call-control.answer{color:#fff}.call-control.off>.icon{background:#536471}.call-control.hangup>.icon{background:#536471}.call-control.hangup{color:#fff}.has-remote-video .call-person{background:linear-gradient(transparent,#0f1419dd)}
.live-now{background:#536471;border-radius:9999px}.live-cover{background:#161b22}.live-cover>.icon{color:#cfd9de}.live-stage{border-radius:16px;background:#0f1419;color:#e7e9ea}.live-picture{background:#0f1419}.live-chat{background:#161b22}.live-tool,.live-player-status{background:#0f1419d9;color:#e7e9ea;border-radius:9999px}.live-tool:hover{background:#536471}.live-event b{color:#fff}.chat-activity{color:#cfd9de}.live-pinned{background:#282e36}.live-pinned b{color:#cfd9de}.live-message-menu{color:#cfd9de}#live-message-form{background:#161b22}#live-message-form input{background:#202732;color:#fff;border-radius:9999px}#live-message-form button{background:var(--green);color:white}.live-under{padding:16px}.live-stage{margin:0 16px}.live-stage:fullscreen{margin:0}.live-discovery-banner h2{font-size:23px}.live-viewers{border-radius:9999px}
@media(min-width:761px) and (max-width:1030px){html .layout{grid-template-columns:68px minmax(0,600px);max-width:700px;padding:0 8px;gap:16px}.rightbar{display:none}html .wide-page .layout{grid-template-columns:68px minmax(0,1fr);padding:0 8px}.topbar .brand{width:160px}}
@media(max-width:760px){html .layout,html .wide-page .layout{display:block;padding:0;max-width:100%}html main{padding-bottom:100px;border:0}html .topbar{padding:0 12px;gap:8px}.brand{width:auto;flex:1;max-width:190px;font-size:23px}.brand img{width:28px;height:28px}.rightbar{display:none}html .sidebar{position:fixed;top:0;inset:0 auto 0 0;height:100dvh;width:min(310px,86vw);padding:16px;align-items:stretch;background:var(--white)}.sidebar .nav-item{justify-content:flex-start;font-size:15px}.sidebar .nav-item>span{display:inline}.sidebar .nav-item>.new-label{display:none}.sidebar .nav-count{position:static;margin-left:auto}.sidebar .compose-nav{width:100%;font-size:15px;height:44px}.sidebar .account-card{justify-content:flex-start}.sidebar .account-card>span:not(.avatar){display:block}.sidebar .seller-invite{display:block;background:var(--white)}.sidebar .sidebar-bottom{padding-top:16px}.drawer-open .drawer-backdrop{background:#0f141966}.sidebar .seller-invite p{color:var(--muted)}.page-heading h1{font-size:20px}.page-heading{padding:16px;min-height:72px}.feed-tabs{margin:0}.categories{padding:12px 16px;margin:0}.post-header .avatar{width:40px;height:40px}.post-body{font-size:15px}.user-link b{font-size:15px}.user-link small{font-size:12px}.post-footer>div{gap:36px}.composer{border-radius:0}.profile-avatar{width:96px;height:96px}.profile-cover{height:140px}.live-pill{display:none}.settings-card,.admin-section,.application-card{margin:12px}.live-stage{margin:0 12px;border-radius:16px}.live-chat{background:linear-gradient(transparent,#0f1419a8)}.live-chat>header .live-tool{background:#0f1419b0}.live-chat .live-pinned{background:#282e36bb}#live-message-form{background:transparent}#live-message-form input{background:#0f1419b8}.live-under{padding:16px}.live-page-heading h1{font-size:20px}.live-stage:fullscreen{margin:0;border-radius:0}.mobile-nav,html .mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:40;background:var(--white);border-top:1px solid var(--hairline);height:calc(68px + env(safe-area-inset-bottom));padding:10px 8px calc(9px + env(safe-area-inset-bottom));justify-content:space-around}.mobile-nav>button{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10px;color:var(--muted);min-width:48px}.mobile-nav>button.active{color:var(--green)}.mobile-nav>button.active>.icon{fill:none}.mobile-compose{border-radius:9999px;box-shadow:none}.global-search{max-width:200px}.call-window{border-radius:16px}}
@media(max-width:560px){html .global-search{width:32px;height:36px;flex:none;max-width:none;background:transparent;padding:4px}.global-search.searching input{background:var(--white);border-radius:0;box-shadow:none!important}.top-actions{gap:4px}.topbar .brand{max-width:none;font-size:22px;min-width:0}.page-heading>.primary{font-size:12px}.post-footer>div{gap:32px}.field input,.field textarea,.field select{font-size:16px}.seller-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.discover-seller b{font-size:12px}.discover-seller small{font-size:11px}.application-steps li{font-size:11px}.profile-info h1{font-size:20px}.profile-stats{font-size:12px}.modal{border-radius:16px}.notification p{font-size:14px}.message-compose-row>input{font-size:16px}.live-discovery-banner{margin:12px;padding:16px}}

/* Focus: X-style crisp ring hugging the control, no offset box. Big composer = caret only. */
html input:focus-visible,html textarea:focus-visible,html select:focus-visible,html .field input:focus-visible,html .field textarea:focus-visible,html .field select:focus-visible,html .message-compose-row>input:focus-visible{outline:none;border-color:var(--green);box-shadow:0 0 0 1px var(--green)}
html .compose-text:focus-visible,html .compose-text:focus{outline:none;box-shadow:none;border-color:transparent}
html .global-search input:focus-visible{outline:none;box-shadow:none}
html .global-search:focus-within{box-shadow:0 0 0 1px var(--green)}

/* --- Media framing + custom feed video player (X-style) --- */
html img.post-media{border-radius:16px;border:1px solid var(--hairline);max-height:600px;object-fit:cover;background:var(--soft)}
.media-player{position:relative;margin-top:12px;border-radius:16px;overflow:hidden;background:#000;border:1px solid var(--hairline);isolation:isolate}
.media-player video.post-media{display:block;width:100%;max-height:640px;object-fit:contain;background:#000;border:0;border-radius:0;margin:0}
.media-player .mp-overlay{position:absolute;inset:0;z-index:1;display:grid;place-items:center;background:transparent;border:0;cursor:pointer;color:#fff}
.media-player .mp-big{width:62px;height:62px;filter:drop-shadow(0 2px 12px rgba(0,0,0,.55));transition:transform .15s,opacity .15s}
.media-player .mp-overlay:hover .mp-big{transform:scale(1.06)}
.media-player.playing .mp-big{opacity:0}
.media-player .mp-controls{position:absolute;left:0;right:0;bottom:0;z-index:2;display:flex;align-items:center;gap:10px;padding:24px 12px 10px;background:linear-gradient(transparent,rgba(0,0,0,.6));color:#fff;opacity:0;transition:opacity .2s}
.media-player:hover .mp-controls,.media-player:not(.playing) .mp-controls,.media-player:focus-within .mp-controls{opacity:1}
.media-player .mp-btn{background:transparent;border:0;color:#fff;padding:4px;display:inline-flex;align-items:center;cursor:pointer;position:relative}
.media-player .mp-btn .icon{width:22px;height:22px}
.media-player .mp-i-pause{display:none}
.media-player.playing .mp-i-play{display:none}
.media-player.playing .mp-i-pause{display:inline-flex}
.media-player.muted .mp-mute::after{content:'';position:absolute;left:2px;right:2px;top:50%;height:2px;background:currentColor;transform:rotate(-18deg);border-radius:2px}
.media-player .mp-time{font-size:12px;color:#fff;font-variant-numeric:tabular-nums;min-width:34px;text-align:center}
.media-player .mp-track{flex:1;height:16px;display:flex;align-items:center;background:transparent;border:0;padding:0;cursor:pointer;position:relative}
.media-player .mp-track::before{content:'';position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);height:4px;background:rgba(255,255,255,.32);border-radius:9999px}
.media-player .mp-progress{position:absolute;left:0;top:50%;transform:translateY(-50%);height:4px;width:0;background:var(--green);border-radius:9999px;z-index:1;pointer-events:none}
.media-player:fullscreen{background:#000;display:flex;align-items:center;justify-content:center;border:0;border-radius:0}
.media-player:fullscreen video.post-media{max-height:100vh;height:100vh}

.media-player .mp-big,.media-player .mp-i-play{fill:currentColor}

@media(max-width:760px){html .sidebar{box-shadow:none}}

/* Collapsible desktop sidebar */
@media(max-width:760px){html .sidebar .nav-toggle{display:none}}
@media(min-width:761px){
html.sidebar-expanded .layout{grid-template-columns:250px minmax(0,1fr) 360px}
html.sidebar-expanded .wide-page .layout{grid-template-columns:250px minmax(0,1fr)}
html.sidebar-expanded .sidebar{align-items:stretch;padding:12px 8px}
html.sidebar-expanded .sidebar nav{gap:4px}
html.sidebar-expanded .sidebar .nav-item{justify-content:flex-start;padding:12px;gap:18px}
html.sidebar-expanded .sidebar .nav-item>span,html.sidebar-expanded .sidebar .nav-item>.new-label{display:inline}
html.sidebar-expanded .sidebar .nav-count{position:static;margin-left:auto}
html.sidebar-expanded .sidebar .compose-nav{width:100%;height:auto;font-size:15px;padding:12px 16px;gap:10px}
html.sidebar-expanded .sidebar .compose-nav>.icon{width:20px;height:20px}
html.sidebar-expanded .sidebar .account-card{justify-content:flex-start;padding:12px 8px;border:0;gap:10px}
html.sidebar-expanded .sidebar .account-card>span:not(.avatar),html.sidebar-expanded .sidebar .account-card>.icon{display:block}
}
.nav-toggle .icon{transition:transform .2s}
html.sidebar-expanded .nav-toggle .icon{transform:rotate(90deg)}

/* Link preview card */
.link-card{display:block;margin-top:12px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--white);color:inherit}
.link-card:hover{background:var(--soft)}
.link-card-media{background:var(--soft);max-height:280px;overflow:hidden;display:flex;justify-content:center;border-bottom:1px solid var(--line)}
.link-card-media img{width:100%;object-fit:cover;max-height:280px;display:block}
.link-card-body{padding:12px 16px;display:flex;flex-direction:column;gap:3px;min-width:0}
.link-card-host{font-size:13px;color:var(--muted)}
.link-card-title{font-size:15px;color:var(--ink);font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.link-card-desc{font-size:14px;color:var(--muted);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

html .drawer-open .drawer-backdrop{border-radius:0;-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(15,20,25,.35)}

/* X-style comments / replies */
html .modal .comment-list{max-height:none;overflow:visible;margin:0}
.comment{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--hairline)}
.comment:last-child{border-bottom:0}
.comment-av{padding:0;border:0;background:none;flex-shrink:0;align-self:flex-start;border-radius:9999px}
.comment-av:hover{opacity:.9}
.comment-body{min-width:0;flex:1}
.comment-meta{display:flex;align-items:center;gap:4px;flex-wrap:wrap;line-height:1.2}
.comment-meta b{font-size:15px;font-weight:700;color:var(--ink)}
.comment-meta .verified{width:15px;height:15px}
.comment-handle,.comment-sep,.comment-when{font-size:14px;color:var(--muted);font-weight:400}
.comment-text{font-size:15px;line-height:1.4;color:var(--ink);margin-top:2px;white-space:pre-wrap;overflow-wrap:anywhere}
.comment-text a.text-link,.comment-text .hashtag{color:var(--green)}
html .reply-box{display:flex;gap:12px;align-items:flex-start;padding:8px 0 4px;border:0;margin:0}
.reply-col{flex:1;min-width:0;display:flex;flex-direction:column}
html .reply-box textarea{width:100%;border:0;background:transparent;resize:none;font:inherit;font-size:17px;line-height:1.4;color:var(--ink);padding:8px 0;min-height:46px;outline:none;box-shadow:none}
html .reply-box textarea:focus-visible{outline:none;box-shadow:none;border:0}
.reply-box textarea::placeholder{color:var(--muted)}
.reply-bar{display:flex;align-items:center;justify-content:flex-end;gap:12px;border-top:1px solid var(--hairline);padding-top:10px;margin-top:2px}
.reply-bar .form-error{flex:1;margin:0;text-align:left}
.reply-bar .primary{min-height:34px;padding:6px 18px}

/* Comment & listing owner actions */
.comment-more{flex-shrink:0;align-self:flex-start;color:var(--muted);width:30px;height:30px;margin:-2px -6px 0 0}
.comment-more:hover{color:var(--green);background:var(--soft)}
.listing-actions{display:flex;gap:8px;flex-shrink:0}
html .listing-actions .small-btn{padding:6px 14px;min-height:32px}
html .listing-actions .danger{color:#f4212e;border-color:var(--line)}

/* Profile cover, media grid, lightbox */
html .profile-cover{background-size:cover;background-position:center}
.cover-edit{display:block;height:140px;border-radius:12px;background:var(--soft) center/cover no-repeat;position:relative;cursor:pointer;margin-bottom:16px;border:1px solid var(--line);overflow:hidden}
.cover-edit>span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:8px;background:#0f1419b3;color:#fff;padding:8px 14px;border-radius:9999px;font-size:13px;white-space:nowrap}
.cover-edit>span .icon{width:16px;height:16px}
.media-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;padding:3px 0}
.media-tile{position:relative;aspect-ratio:1;overflow:hidden;padding:0;border:0;background:var(--soft);cursor:pointer;border-radius:0}
.media-tile img,.media-tile video{width:100%;height:100%;object-fit:cover;display:block}
.media-tile:hover img,.media-tile:hover video{opacity:.9}
.media-badge{position:absolute;top:6px;right:6px;color:#fff;filter:drop-shadow(0 1px 3px rgba(0,0,0,.6))}
.media-badge .icon{width:18px;height:18px}
.lightbox{display:flex;align-items:center;justify-content:center;background:#000;border-radius:12px;overflow:hidden}
.lightbox img,.lightbox video{max-width:100%;max-height:78vh;display:block}
@media(max-width:560px){.media-grid{gap:2px}}

/* People search results */
.people-card{padding:4px 16px 8px}
.people-head{font-size:20px;font-weight:800;padding:12px 0 4px}
.people-card .seller-row{margin:0;padding:12px 0;border-bottom:1px solid var(--hairline)}
.people-card .seller-row:last-child{border-bottom:0}

/* Live host / participant profile links */
.live-host-link{color:inherit;font-weight:600;padding:0;display:inline;vertical-align:baseline}
.live-host-link:hover{color:var(--green);text-decoration:underline}
.live-participant{padding:0;text-align:left}
.live-participant:hover b{color:var(--green)}
