:root{
  --bg:#05070a;
  --panel:#0f141b;
  --panel-2:#111823;
  --line:rgba(255,255,255,.10);
  --line-soft:rgba(255,255,255,.06);
  --txt:#f4f7fb;
  --muted:#98a5b8;
  --ok:#33cc66;
  --blue:#119cff;
  --gold:#f4c94d;
  --shadow:0 16px 42px rgba(0,0,0,.42);
}

*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--txt);
  background:#000;
}

.brand-bg{
  background:
    radial-gradient(1100px 500px at 0% 0%, rgba(51,204,102,.10), transparent 55%),
    radial-gradient(900px 460px at 100% 0%, rgba(0,102,204,.12), transparent 48%),
    linear-gradient(180deg, #020406 0%, #05080d 100%);
}

.logo-background{
  position:fixed;
  inset:0;
  background:url('/assets/imagenes/imagotipo.png') no-repeat center center;
  background-size:12%;
  opacity:.04;
  pointer-events:none;
  z-index:0;
  filter:drop-shadow(0 0 6px rgba(244,201,77,.22));
}

.top-bar{
  position:relative;
  z-index:40;
  width:min(1480px, calc(100% - 20px));
  margin:10px auto 0;
  padding:0 12px;
  min-height:58px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:rgba(12,16,22,.95);
  border:1px solid rgba(51,204,102,.18);
  box-shadow:0 12px 30px rgba(0,0,0,.45), 0 0 18px rgba(51,204,102,.12);
  backdrop-filter:blur(10px);
}

.logo-container,
.top-bar-actions{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.brand-logo{height:32px;width:auto;display:block;object-fit:contain;max-width:140px}

.menu-btn,
.btn-primary,
.chip,
.action-btn,
.modal-close,
.composer-launch__input{
  appearance:none;
  border:none;
  cursor:pointer;
  font:inherit;
}

.menu-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 14px;
  border-radius:12px;
  text-decoration:none;
  color:#fff;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.04);
}

.top-icon-btn{
  appearance:none;
  border:none;
  background:transparent;
  color:transparent;
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  padding:0;
  cursor:pointer;
  text-decoration:none;
  transition:transform .18s ease, opacity .18s ease, filter .18s ease;
}

.top-icon-badge{
  position:absolute;
  top:-2px;
  right:-4px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, rgba(35,213,171,.98), rgba(37,123,255,.92));
  color:#fff;
  font-size:.68rem;
  font-weight:800;
  line-height:1;
  box-shadow:0 8px 18px rgba(0,0,0,.28);
}

.top-icon-btn svg{
  width:22px;
  height:22px;
  display:block;
}

.top-icon-btn svg path{
  fill:url(#communityIconGradient);
}

.top-icon-btn:hover{
  transform:translateY(-1px) scale(1.04);
  opacity:.96;
  filter:drop-shadow(0 0 8px rgba(35,213,171,.18)) drop-shadow(0 0 10px rgba(37,123,255,.14));
}

.top-icon-btn:focus-visible{
  outline:none;
  filter:drop-shadow(0 0 0 2px rgba(35,213,171,.28)) drop-shadow(0 0 10px rgba(37,123,255,.18));
}

.live-logo{
  font-size:12px;
  font-weight:800;
  background:#000;
  color:var(--ok);
  padding:4px 8px;
  border-radius:10px;
  border:2px solid #03882f;
}

.mini-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:800;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  color:#fff;
}

.mini-pill--policy{
  color:#dfe8f7;
  background:rgba(17,156,255,.12);
  border-color:rgba(17,156,255,.20);
}

.community-shell{
  position:relative;
  z-index:1;
  width:min(760px, calc(100% - 24px));
  margin:14px auto 28px;
  display:grid;
  gap:14px;
}

.community-shell--post{
  width:min(1380px, calc(100% - 24px));
}

.community-shell--profile{
  width:min(760px, calc(100% - 24px));
}

.community-shell--feed{
  width:min(760px, calc(100% - 24px));
}

.access-dock{
  position:absolute;
  top:0;
  right:calc(100% + 18px);
  width:220px;
  border-radius:20px;
  padding:16px 14px;
  display:grid;
  gap:14px;
  height:auto;
  max-height:none;
  overflow:visible;
  border:none;
  box-shadow:none;
  background:transparent;
}

.access-dock.panel-glow{
  border:none !important;
  box-shadow:none !important;
  background:transparent !important;
}

.access-dock--right{
  position:fixed;
  top:92px;
  left:calc(50% + min(380px, calc((100vw - 24px) / 2)) + 18px);
  right:auto;
  margin-left:0;
}

.access-dock__head{
  display:grid;
  gap:2px;
}

.access-dock__head h2{
  margin:0;
  font-size:1.04rem;
  line-height:1.1;
}

.access-dock__list{
  display:grid;
  gap:6px;
}

.access-link{
  display:grid;
  grid-template-columns:42px minmax(0, 1fr);
  gap:10px;
  align-items:center;
  padding:8px 6px;
  border-radius:16px;
  text-decoration:none;
  color:#fff;
  transition:background .18s ease, transform .18s ease;
}

.access-link:hover{
  background:rgba(255,255,255,.045);
  transform:translateX(2px);
}

.access-link__icon{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:radial-gradient(circle at 30% 30%, rgba(35,213,171,.34), rgba(37,123,255,.18) 70%, rgba(255,255,255,.02) 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05), 0 10px 22px rgba(0,0,0,.18);
}

.access-link__icon svg{
  width:20px;
  height:20px;
  display:block;
}

.access-link__icon svg path{
  fill:url(#communityIconGradient);
}

.access-link__copy{
  min-width:0;
  display:grid;
  gap:3px;
}

.access-link__copy strong{
  font-size:.97rem;
  line-height:1.15;
}

.access-link__copy small{
  color:var(--muted);
  font-size:.76rem;
  line-height:1.35;
}

.panel-glow,
.composer-modal,
.modal-overlay{
  box-shadow:var(--shadow), 0 0 18px rgba(17,156,255,.06);
}

.panel-glow,
.composer-modal{
  background:linear-gradient(180deg, rgba(14,19,26,.95), rgba(10,14,20,.94));
  border:1px solid rgba(51,204,102,.12);
}

.community-hero,
.composer-launch,
.feed-toolbar,
.post-card{
  border-radius:20px;
}

.community-hero{
  padding:18px 20px;
  display:block;
}

.eyebrow{
  margin:0 0 6px;
  color:var(--ok);
  font-weight:800;
  font-size:.88rem;
  letter-spacing:.02em;
}

.community-hero h1{
  margin:0 0 10px;
  font-size:clamp(1.35rem,3vw,2rem);
  line-height:1.12;
}

.hero-copy{
  margin:0;
  color:var(--muted);
  line-height:1.55;
  max-width:640px;
  font-size:.96rem;
}

.composer-launch{
  padding:12px 14px;
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  gap:12px;
  align-items:center;
}

.composer-launch:hover{
  border-color:rgba(17,156,255,.32);
  box-shadow:var(--shadow), 0 0 0 1px rgba(17,156,255,.10);
}

.composer-launch__avatar,
.composer-user__avatar{
  width:48px;
  height:48px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-weight:800;
  color:#fff;
  background:linear-gradient(135deg, rgba(23,166,115,.95), rgba(15,113,210,.55));
  box-shadow:0 8px 20px rgba(0,0,0,.32);
}

.composer-launch__input{
  width:100%;
  min-height:46px;
  border-radius:999px;
  background:rgba(255,255,255,.045);
  color:#d5deea;
  text-align:left;
  padding:0 18px;
  font-size:.98rem;
}

.composer-launch__input:hover{
  background:rgba(255,255,255,.065);
}

.feed-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:10px 12px;
}

.chip{
  min-height:34px;
  padding:0 14px;
  border-radius:12px;
  color:#fff;
  background:rgba(255,255,255,.035);
  font-weight:700;
}

.chip.is-active{
  background:linear-gradient(135deg, rgba(23,166,115,.95), rgba(15,113,210,.42));
}

.feed-list{
  display:grid;
  gap:14px;
}

.post-card{
  overflow:hidden;
  background:linear-gradient(180deg, rgba(14,19,26,.97), rgba(10,14,20,.95));
  border:1px solid rgba(255,255,255,.05);
}

.post-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  padding:14px 16px 0;
}

.post-author{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.post-author__avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, rgba(23,166,115,.95), rgba(15,113,210,.55));
  color:#fff;
  font-weight:800;
  font-size:.92rem;
}

.post-author__meta{
  min-width:0;
}

.post-head strong{
  display:block;
  font-size:.98rem;
}

.post-head span,
.post-meta{
  color:var(--muted);
  font-size:.84rem;
}

.post-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  padding-top:4px;
}

.post-body{
  padding:10px 16px 0;
}

.post-text{
  margin:0;
  line-height:1.62;
  color:#edf3fb;
  white-space:pre-wrap;
  font-size:.97rem;
}

.post-media-grid{
  display:grid;
  gap:2px;
  margin-top:14px;
}

.post-media-link{
  display:block;
  text-decoration:none;
  color:inherit;
}

.post-media-grid.single{
  grid-template-columns:1fr;
}

.post-media-grid.double{
  grid-template-columns:repeat(2, minmax(0,1fr));
}

.post-media-grid img,
.post-media-grid video{
  width:100%;
  aspect-ratio:4 / 4.4;
  display:block;
  object-fit:cover;
  background:#0b0f15;
}

.post-reaction-bar{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 16px 8px;
  color:var(--muted);
  font-size:.84rem;
}

.post-footer{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(96px,1fr));
  gap:4px;
  padding:4px 10px 10px;
}

.post-footer--detail{
  grid-template-columns:repeat(auto-fit, minmax(96px,1fr));
}

.action-btn{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 12px;
  border-radius:10px;
  background:transparent;
  color:#cfd8e5;
  font-weight:700;
  justify-content:center;
  white-space:nowrap;
  transition:background .18s ease, transform .18s ease, color .18s ease, box-shadow .18s ease;
}

.action-btn:hover{
  background:rgba(255,255,255,.06);
}

.action-btn__label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  white-space:nowrap;
}

.action-btn.is-active{
  background:rgba(255,255,255,.05);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
}

.action-btn.is-active .action-btn__label,
.action-btn.is-active{
  font-weight:800;
  background-image:linear-gradient(135deg, rgba(35,213,171,1), rgba(37,123,255,1));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.empty-state{
  padding:26px;
  text-align:center;
  color:var(--muted);
  border-radius:24px;
  background:linear-gradient(180deg, rgba(14,19,26,.95), rgba(10,14,20,.94));
  border:1px solid rgba(255,255,255,.08);
}

.action-btn--link{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.action-btn--link-text{
  color:#fff;
  text-decoration:none;
}

.action-btn--link-text:hover{
  color:#8fd4ff;
}

.action-btn--static{
  cursor:default;
}

.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.section-head h1,
.section-head h2{
  margin:0;
}

.section-head--comments{
  margin-top:4px;
  padding-top:6px;
}

.post-viewer-layout{
  display:grid;
  grid-template-columns:minmax(0, 2.15fr) minmax(360px, .85fr);
  gap:18px;
  align-items:start;
}

.post-viewer-media{
  border-radius:20px;
  padding:10px;
  min-height:calc(100vh - 96px);
  position:sticky;
  top:70px;
}

.post-media-stage{
  min-height:100%;
}

.media-viewer-shell{
  display:grid;
  gap:10px;
  height:100%;
}

.media-viewer-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:4px 2px;
}

.media-viewer-counter{
  color:var(--muted);
  font-size:.84rem;
}

.media-viewer-nav{
  display:flex;
  gap:8px;
}

.media-nav-btn{
  appearance:none;
  border:none;
  width:38px;
  height:38px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:1.5rem;
  line-height:1;
  cursor:pointer;
}

.media-nav-btn:disabled{
  opacity:.35;
  cursor:default;
}

.media-viewer-main{
  background:#050607;
  border-radius:18px;
  overflow:hidden;
  display:grid;
  place-items:center;
  min-height:700px;
}

.media-viewer-main img,
.media-viewer-main video{
  display:block;
  width:100%;
  height:100%;
  max-height:calc(100vh - 170px);
  object-fit:contain;
  background:#000;
}

.media-viewer-thumbs{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}

.media-thumb{
  appearance:none;
  border:none;
  padding:0;
  border-radius:16px;
  overflow:hidden;
  cursor:pointer;
  background:transparent;
  opacity:.75;
  transition:opacity .18s ease, transform .18s ease, box-shadow .18s ease;
}

.media-thumb img,
.media-thumb video{
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:cover;
  display:block;
}

.media-thumb:hover{
  opacity:1;
  transform:translateY(-1px);
}

.media-thumb.is-active{
  opacity:1;
  box-shadow:0 0 0 2px rgba(17,156,255,.65);
}

.empty-state--media{
  min-height:540px;
  display:grid;
  place-items:center;
  text-align:center;
}

.post-detail-head{
  display:grid;
  gap:8px;
}

.post-author__avatar--link{
  text-decoration:none;
}

.post-comments-card,
.composer-page,
.profile-hero{
  border-radius:20px;
  padding:16px;
}

.post-comments-card{
  min-height:calc(100vh - 96px);
  max-width:100%;
}

.comment-form{
  display:grid;
  gap:10px;
  margin-bottom:18px;
}

.composer-submit--inline{
  padding-left:52px;
}

.comment-compose{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:10px;
  align-items:flex-start;
}

.comment-compose__avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, rgba(23,166,115,.95), rgba(15,113,210,.55));
  color:#fff;
  font-weight:800;
  font-size:.9rem;
}

.comment-form textarea{
  width:100%;
  min-height:88px;
  border-radius:18px;
  background:rgba(255,255,255,.045);
  color:#fff;
  padding:14px 16px;
  font:inherit;
  outline:none;
  resize:vertical;
}

.comment-form textarea:focus{
  background:rgba(255,255,255,.06);
}

.comments-list{
  display:grid;
  gap:14px;
}

.thread-card{
  display:grid;
  gap:8px;
}

.comment-card{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:10px;
  align-items:flex-start;
}

.comment-card__avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, rgba(23,166,115,.95), rgba(15,113,210,.55));
  color:#fff;
  font-weight:800;
  font-size:.9rem;
}

.comment-card__avatar--link{
  text-decoration:none;
}

.comment-card__content{
  min-width:0;
}

.comment-bubble{
  padding:12px 14px;
  border-radius:18px;
  background:rgba(255,255,255,.055);
}

.comment-bubble strong{
  display:block;
  font-size:.94rem;
}

.comment-bubble span{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:.82rem;
}

.comment-bubble p{
  margin:8px 0 0;
  color:#edf3fb;
  line-height:1.52;
  font-size:.95rem;
}

.comment-actions{
  display:flex;
  gap:12px;
  padding:6px 8px 0;
  color:var(--muted);
  font-size:.8rem;
  flex-wrap:wrap;
}

.comment-actions__btn{
  appearance:none;
  border:none;
  background:transparent;
  color:#d5deea;
  padding:0;
  font:inherit;
  cursor:pointer;
}

.comment-actions__btn.is-active{
  font-weight:800;
  background-image:linear-gradient(135deg, rgba(35,213,171,1), rgba(37,123,255,1));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.thread-toggle{
  appearance:none;
  border:none;
  background:transparent;
  color:#dfe8f7;
  padding:2px 8px 0;
  font:inherit;
  font-size:.9rem;
  font-weight:700;
  cursor:pointer;
  text-align:left;
}

.thread-replies{
  margin-top:12px;
  margin-left:20px;
  padding-left:14px;
  border-left:1px solid rgba(255,255,255,.10);
  display:grid;
  gap:12px;
}

.comment-card--reply{
  position:relative;
}

.reply-composer{
  margin-top:8px;
  margin-left:18px;
  display:grid;
  grid-template-columns:14px minmax(0,1fr);
  gap:10px;
}

.reply-composer__line{
  border-left:1px solid rgba(255,255,255,.10);
}

.reply-composer__body{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:10px;
}

.reply-composer__input-wrap{
  display:grid;
  gap:8px;
}

.reply-composer__input-wrap textarea{
  width:100%;
  min-height:74px;
  border-radius:18px;
  background:rgba(255,255,255,.05);
  color:#fff;
  padding:12px 14px;
  font:inherit;
  outline:none;
  resize:vertical;
}

.reply-composer__actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

.btn-primary--small{
  min-height:36px;
  padding:0 14px;
  border-radius:12px;
  font-size:.92rem;
}

.profile-hero{
  display:grid;
  grid-template-columns:96px minmax(0,1fr) auto;
  gap:24px;
  align-items:start;
}

.profile-avatar-wrap{
  position:relative;
  width:92px;
  height:92px;
}

.profile-avatar{
  width:92px;
  height:92px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, rgba(23,166,115,.95), rgba(15,113,210,.55));
  font-weight:900;
  font-size:1.45rem;
  overflow:hidden;
}

.profile-avatar img,
.post-author__avatar img,
.composer-launch__avatar img,
.composer-user__avatar img,
.comment-card__avatar img,
.comment-compose__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.profile-avatar-edit{
  position:absolute;
  right:-4px;
  bottom:-4px;
  width:34px;
  height:34px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  background:rgba(12,16,22,.95);
  box-shadow:0 10px 24px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.08);
}

.profile-avatar-edit svg{
  width:18px;
  height:18px;
}

.profile-avatar-edit svg path{
  fill:url(#communityIconGradient);
}

.profile-copy{
  padding-top:8px;
}

.profile-side{
  display:grid;
  justify-items:end;
  align-content:start;
  gap:24px;
  padding-top:10px;
}

.inline-editable{
  display:flex;
  align-items:flex-start;
  gap:10px;
}

.inline-editable__content{
  min-width:0;
  flex:1;
}

.inline-editable__trigger{
  appearance:none;
  border:none;
  background:transparent;
  width:28px;
  height:28px;
  padding:0;
  margin-top:6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:.62;
  transition:opacity .18s ease, transform .18s ease;
}

.inline-editable__trigger svg{
  width:16px;
  height:16px;
}

.inline-editable__trigger svg path{
  fill:url(#communityIconGradient);
}

.inline-editable:hover .inline-editable__trigger,
.inline-editable__trigger:focus-visible{
  opacity:1;
  transform:translateY(-1px);
  outline:none;
}

.inline-editor{
  display:grid;
  gap:10px;
  max-width:58ch;
}

.inline-editor input,
.inline-editor textarea{
  width:100%;
  border:none;
  border-radius:16px;
  background:rgba(255,255,255,.055);
  color:#fff;
  padding:12px 14px;
  font:inherit;
  outline:none;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}

.inline-editor input{
  font-size:1.65rem;
  font-weight:800;
  line-height:1.1;
}

.inline-editor textarea{
  min-height:92px;
  line-height:1.6;
  resize:vertical;
}

.inline-editor__actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

.profile-copy h1{
  margin:0 0 6px;
  font-size:2rem;
  line-height:1.05;
}

.profile-bio{
  margin:14px 0 0;
  color:#edf3fb;
  line-height:1.62;
  max-width:58ch;
}

.profile-bio--empty,
.inline-editable.is-empty .profile-bio{
  color:var(--muted);
}

.profile-stats{
  display:flex;
  align-items:flex-start;
  gap:28px;
}

.profile-actions{
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  width:100%;
}

.profile-follow-btn{
  appearance:none;
  border:1px solid rgba(0, 102, 204, .42);
  min-width:118px;
  min-height:40px;
  padding:0 20px;
  border-radius:14px;
  background:linear-gradient(90deg, rgba(51, 204, 102, .45), rgba(0, 102, 204, .32)), rgba(0, 0, 0, .35);
  color:#fff;
  font-weight:800;
  box-shadow:0 10px 24px rgba(0,0,0,.32), 0 0 14px rgba(51,204,102,.12);
  transition:transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.profile-follow-btn:hover{
  filter:brightness(1.06);
  transform:translateY(-1px);
}

.profile-follow-btn.is-active{
  background:linear-gradient(90deg, rgba(51, 204, 102, .58), rgba(0, 102, 204, .42)), rgba(0, 0, 0, .4);
  border-color:rgba(51, 204, 102, .46);
}

.profile-composer-launch{
  margin-top:16px;
}

.profile-stat{
  min-width:88px;
}

.profile-stat--button{
  appearance:none;
  border:none;
  background:transparent;
  padding:0;
  text-align:left;
  cursor:pointer;
  color:#fff;
}

.profile-stat strong{
  display:block;
  font-size:1.5rem;
  line-height:1;
}

.profile-stat span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:.9rem;
}

.connections-modal{
  position:fixed;
  z-index:90;
  inset:58px 24px auto 24px;
  width:min(560px, calc(100% - 48px));
  left:50%;
  transform:translateX(-50%);
  border-radius:26px;
  overflow:hidden;
  max-height:calc(100vh - 84px);
  display:flex;
  flex-direction:column;
  background:linear-gradient(180deg, rgba(14,19,26,.995), rgba(10,14,20,.99));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 24px 70px rgba(0,0,0,.48);
}

.notifications-modal{
  position:fixed;
  z-index:90;
  inset:58px 24px auto 24px;
  width:min(560px, calc(100% - 48px));
  left:50%;
  transform:translateX(-50%);
  border-radius:26px;
  overflow:hidden;
  max-height:calc(100vh - 84px);
  display:flex;
  flex-direction:column;
  background:linear-gradient(180deg, rgba(14,19,26,.995), rgba(10,14,20,.99));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 24px 70px rgba(0,0,0,.48);
}

.notifications-modal__body{
  padding:16px 18px 18px;
  overflow:hidden;
}

.notifications-list{
  display:grid;
  gap:10px;
  max-height:60vh;
  overflow:auto;
  padding-right:4px;
}

.notification-item{
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding:12px;
  border-radius:18px;
  text-decoration:none;
  color:inherit;
  background:rgba(255,255,255,.03);
  transition:background .18s ease, transform .18s ease;
}

.notification-item:hover{
  background:rgba(255,255,255,.05);
  transform:translateY(-1px);
}

.notification-item.is-unread{
  background:linear-gradient(135deg, rgba(35,213,171,.08), rgba(37,123,255,.07));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);
}

.notification-item__avatar{
  width:52px;
  height:52px;
  border-radius:50%;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, rgba(23,166,115,.95), rgba(15,113,210,.55));
  color:#fff;
  font-weight:800;
}

.notification-item__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.notification-item__copy{
  min-width:0;
  display:grid;
  gap:5px;
}

.notification-item__copy strong{
  color:#f4f7fb;
  line-height:1.4;
  font-size:.95rem;
}

.notification-item__copy span{
  color:var(--muted);
  font-size:.83rem;
}

.connections-modal__body{
  display:grid;
  gap:14px;
  padding:16px 18px 18px;
  overflow:hidden;
}

.connections-dock{
  position:absolute;
  top:0;
  left:calc(100% + 18px);
  width:280px;
  border-radius:20px;
  padding:16px;
  display:grid;
  gap:14px;
  min-height:220px;
  max-height:70vh;
  overflow:hidden;
  border:none;
  box-shadow:none;
  background:transparent;
}

.connections-dock.panel-glow{
  border:none !important;
  box-shadow:none !important;
  background:transparent !important;
}

.connections-dock.hidden{
  display:none !important;
}

.connections-dock__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.connections-dock__head h2{
  margin:0;
  font-size:1.1rem;
}

.connections-dock__close{
  appearance:none;
  border:none;
  background:transparent;
  color:#dce7f5;
  font-size:1.5rem;
  line-height:1;
  cursor:pointer;
}

.connections-dock__list{
  display:grid;
  gap:10px;
  overflow:auto;
}

.connections-modal__tabs{
  display:flex;
  gap:8px;
}

.connections-list{
  display:grid;
  gap:10px;
  overflow:auto;
  max-height:52vh;
  padding-right:4px;
}

.connection-item{
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding:12px;
  border-radius:18px;
  text-decoration:none;
  color:inherit;
  background:rgba(255,255,255,.03);
}

.connection-item:hover{
  background:rgba(255,255,255,.05);
}

.connection-item__avatar{
  width:52px;
  height:52px;
  border-radius:50%;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, rgba(23,166,115,.95), rgba(15,113,210,.55));
  color:#fff;
  font-weight:800;
}

.connection-item__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.connection-item__copy{
  min-width:0;
}

.connection-item__copy strong{
  display:block;
  font-size:1rem;
}

.connection-item__copy span{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:.88rem;
}

.connection-item__copy p{
  margin:8px 0 0;
  color:#dce7f5;
  line-height:1.45;
  font-size:.92rem;
}

.composer-form--page{
  padding:0;
}

.modal-overlay{
  position:fixed;
  inset:0;
  z-index:80;
  background:rgba(2,4,6,.70);
  backdrop-filter:blur(6px);
}

.composer-modal{
  position:fixed;
  z-index:90;
  inset:40px 24px auto 24px;
  width:min(760px, calc(100% - 48px));
  left:50%;
  transform:translateX(-50%);
  border-radius:28px;
  overflow:hidden;
  max-height:calc(100vh - 52px);
  display:flex;
  flex-direction:column;
  background:rgba(12,16,22,.995);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 24px 70px rgba(0,0,0,.48);
  isolation:isolate;
}

.composer-modal::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(14,19,26,.998), rgba(10,14,20,.995));
  z-index:0;
}

.composer-modal > *{
  position:relative;
  z-index:1;
}

.composer-modal__head{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:12px 20px;
  border-bottom:1px solid rgba(255,255,255,.08);
  position:relative;
}

.composer-modal__head h2{
  margin:0;
  font-size:1.8rem;
}

.modal-close{
  position:absolute;
  right:14px;
  top:10px;
  width:40px;
  height:40px;
  border-radius:50%;
  color:#fff;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  font-size:1.6rem;
  line-height:1;
}

.composer-form{
  display:grid;
  gap:12px;
  padding:14px 18px 16px;
  overflow:auto;
  min-height:0;
  flex:1 1 auto;
  background:transparent;
}

.composer-user{
  display:flex;
  align-items:center;
  gap:12px;
}

.composer-user__avatar{
  width:44px;
  height:44px;
  border-radius:50%;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, rgba(23,166,115,.95), rgba(15,113,210,.55));
  color:#fff;
  font-weight:800;
  font-size:.9rem;
}

.composer-user strong{
  display:block;
  font-size:.98rem;
}

.composer-user p{
  margin:2px 0 0;
  color:var(--muted);
  font-size:.88rem;
}

.composer-form textarea,
.composer-form input,
.composer-form select{
  width:100%;
  border-radius:16px;
  background:rgba(255,255,255,.045);
  color:#fff;
  padding:12px 14px;
  font:inherit;
  outline:none;
  border:none;
  box-sizing:border-box;
}

.composer-form input,
.composer-form select{
  min-height:48px;
  height:48px;
  line-height:24px;
  padding-top:0;
  padding-bottom:0;
}

.composer-form select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  color-scheme:dark;
  background-color:#1a1f27;
}

.composer-form select option,
.composer-form select optgroup{
  background-color:#131922;
  color:#eef4ff;
}

.composer-form textarea{
  min-height:104px;
  max-height:104px;
  resize:none;
  font-size:1rem;
  line-height:1.38;
}

.composer-form textarea:focus,
.composer-form input:focus,
.composer-form select:focus{
  background:rgba(255,255,255,.06);
}

.composer-row{
  display:grid;
  grid-template-columns:1fr 220px;
  gap:10px;
}

.upload-box{
  display:grid;
  gap:8px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(17,156,255,.06);
  color:#dfe8f7;
  font-weight:700;
}

.upload-box input[type="file"]{
  display:flex;
  align-items:center;
  width:100%;
  min-height:46px;
  padding:8px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.045);
  color:#eef4ff;
  box-sizing:border-box;
}

.upload-box input[type="file"]::file-selector-button{
  height:32px;
  margin-right:10px;
  padding:0 12px;
  border:none;
  border-radius:10px;
  background:rgba(255,255,255,.92);
  color:#111827;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}

.media-preview{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}

.preview-card{
  margin:0;
  border-radius:14px;
  overflow:hidden;
  background:rgba(255,255,255,.04);
}

.preview-card img,
.preview-card video{
  display:block;
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:cover;
}

.composer-submit{
  display:flex;
  justify-content:flex-end;
}

.btn-primary{
  min-height:42px;
  padding:0 18px;
  border-radius:14px;
  color:#fff;
  font-weight:800;
  background:linear-gradient(135deg, rgba(23,166,115,.95), rgba(15,113,210,.60));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.24);
}

.hidden{display:none!important}

@media (max-width: 880px){
  .top-bar{
    width:calc(100% - 14px);
    margin-top:7px;
    padding:8px 10px;
    min-height:56px;
    flex-wrap:wrap;
    justify-content:center;
  }

  .logo-container,
  .top-bar-actions{
    justify-content:center;
    flex-wrap:wrap;
  }

  .community-shell{
    width:calc(100% - 14px);
    margin-top:14px;
  }

  .community-shell--profile{
    width:calc(100% - 14px);
  }

  .community-shell--feed{
    width:calc(100% - 14px);
  }

  .community-shell--profile > #accessDock,
  .community-shell--feed > #feedAccessDock,
  .community-shell--profile > #connectionsDock{
    display:none;
  }

  .community-shell--post{
    width:calc(100% - 14px);
  }

  .post-viewer-layout{
    grid-template-columns:1fr;
  }

  .post-viewer-media{
    position:relative;
    top:auto;
    min-height:auto;
  }

  .media-viewer-main{
    min-height:420px;
  }

  .media-viewer-main img{
    max-height:70vh;
  }

  .composer-submit--inline{
    padding-left:0;
  }

  .community-hero{padding:18px;}

  .composer-launch{
    grid-template-columns:48px minmax(0,1fr);
    padding:14px;
  }

  .composer-launch__avatar{
    width:48px;
    height:48px;
  }

  .composer-modal{
    inset:24px 10px auto 10px;
    width:calc(100% - 20px);
    max-height:calc(100vh - 32px);
  }

  .composer-modal__head h2{
    font-size:1.35rem;
  }

  .composer-form{
    padding:12px 12px 14px;
  }

  .composer-row{
    grid-template-columns:1fr;
  }

  .post-head,
  .post-footer{
    flex-direction:column;
  }

  .post-footer{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }

  .profile-hero{
    grid-template-columns:1fr;
  }

  .profile-side{
    gap:16px;
    padding-top:0;
  }
}
