:root{
  --bg:#f6f7fb;--surface:#fff;--surface-2:#f0f2f7;--text:#151823;--muted:#687085;--border:#e4e7ef;--primary:#5b5cf0;--primary-2:#7c7cf7;--success:#1f9d69;--warning:#bf7b13;--danger:#c44949;--shadow:0 12px 40px rgba(31,35,50,.08);--radius:18px;--radius-sm:12px;--sidebar:246px;--header:72px;--max:1380px;
  color-scheme:light;
}
:root[data-theme="dark"]{--bg:#0b0e14;--surface:#11151e;--surface-2:#171c26;--text:#f5f7fb;--muted:#98a0b3;--border:#232a37;--shadow:0 18px 50px rgba(0,0,0,.28);color-scheme:dark}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0}.hidden{display:none!important}.muted{color:var(--muted)}.small{font-size:.86rem}.container{width:min(100% - 32px,var(--max));margin:0 auto}.page{min-height:100vh}.surface{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:var(--radius)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;border-radius:12px;font-weight:700;transition:.18s ease;background:var(--surface-2);color:var(--text);border:1px solid var(--border)}.btn:hover{transform:translateY(-1px)}.btn.primary{background:var(--primary);color:white;border-color:var(--primary)}.btn.ghost{background:transparent}.btn.danger{background:var(--danger);color:#fff;border-color:var(--danger)}.btn.sm{padding:8px 11px;font-size:.9rem}.btn.icon{width:42px;height:42px;padding:0}.icon{width:18px;height:18px}
.topbar{position:sticky;top:0;z-index:30;height:var(--header);background:color-mix(in srgb,var(--bg) 84%,transparent);backdrop-filter:blur(18px);border-bottom:1px solid var(--border)}.topbar-inner{height:100%;display:flex;align-items:center;gap:14px;padding:0 18px}.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:-.03em}.brand-mark{width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,var(--primary),var(--primary-2));display:grid;place-items:center;color:#fff;box-shadow:0 10px 22px rgba(91,92,240,.25)}.brand-name{font-size:1.05rem}.top-search{flex:1;max-width:640px;margin:0 auto;display:flex;align-items:center;gap:9px;background:var(--surface);border:1px solid var(--border);height:44px;border-radius:14px;padding:0 14px}.top-search input{border:0;outline:0;flex:1;background:transparent;color:var(--text)}.top-actions{display:flex;align-items:center;gap:8px}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:var(--surface-2);color:var(--primary);font-weight:800;border:1px solid var(--border)}.avatar img{width:100%;height:100%;object-fit:cover}
.app-shell{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:calc(100vh - var(--header))}.sidebar{position:sticky;top:var(--header);height:calc(100vh - var(--header));padding:20px 14px;border-right:1px solid var(--border);background:var(--surface)}.side-nav{display:flex;flex-direction:column;gap:5px}.nav-item{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:12px;color:var(--muted);font-weight:700}.nav-item:hover,.nav-item.active{background:var(--surface-2);color:var(--text)}.main{padding:26px;min-width:0}.content-grid{width:min(100%,var(--max));margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px}.content-grid.no-aside{grid-template-columns:minmax(0,1fr)}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:20px}.page-head h1{margin:0;font-size:clamp(1.6rem,2vw,2.2rem);letter-spacing:-.04em}.section-title{display:flex;align-items:center;justify-content:space-between;margin:26px 0 12px}.section-title h2{margin:0;font-size:1.05rem;letter-spacing:-.02em}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px}.stack{display:grid;gap:14px}.grid{display:grid;gap:14px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.chips{display:flex;gap:8px;overflow:auto;padding-bottom:3px}.chip{white-space:nowrap;padding:8px 12px;border-radius:999px;background:var(--surface);border:1px solid var(--border);font-weight:700;color:var(--muted)}.chip.active,.chip:hover{background:var(--primary);color:#fff;border-color:var(--primary)}
.form{display:grid;gap:16px}
.field{display:grid;gap:7px}
.field label{display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:.84rem;color:var(--text);letter-spacing:-.01em}
.field label .hint{font-weight:500;font-size:.76rem;color:var(--muted)}
.field input,.field textarea,.field select,.form input,.form textarea,.form select{
  width:100%;
  min-height:48px;
  padding:12px 16px;
  border-radius:14px;
  border:1.5px solid var(--border);
  background:color-mix(in srgb,var(--surface) 65%,var(--surface-2));
  color:var(--text);
  font-size:.95rem;
  line-height:1.4;
  outline:none;
  transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease,transform .1s ease;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.03);
}
.field input:hover,.field textarea:hover,.field select:hover,.form input:hover,.form textarea:hover,.form select:hover{
  border-color:color-mix(in srgb,var(--primary) 40%,var(--border));
}
.field input:focus,.field textarea:focus,.field select:focus,.form input:focus,.form textarea:focus,.form select:focus{
  border-color:var(--primary);
  background:var(--surface);
  box-shadow:0 0 0 3.5px rgba(91,92,240,.18), 0 4px 12px rgba(91,92,240,.08);
}
.field textarea,.form textarea{
  min-height:110px;
  resize:vertical;
  padding:14px 16px;
  font-family:inherit;
}
.field select,.form select{
  appearance:none;
  -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238892a4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  padding-right:38px;
  cursor:pointer;
}
.password-field{position:relative;display:flex;align-items:center;width:100%}
.password-field input{padding-right:48px}
.password-field button{position:absolute;right:8px;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:transparent;color:var(--muted);border:0;cursor:pointer;transition:background-color .15s ease,color .15s ease}
.password-field button:hover{background:var(--surface-2);color:var(--text)}
.toast-wrap{position:fixed;right:18px;bottom:18px;z-index:80;display:grid;gap:10px}
.toast{min-width:260px;padding:13px 15px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:14px;animation:slideUp .25s ease}
.toast.success{border-color:color-mix(in srgb,var(--success) 45%,var(--border))}
.toast.error{border-color:color-mix(in srgb,var(--danger) 45%,var(--border))}
.modal-backdrop{position:fixed;inset:0;background:rgba(5,8,15,.62);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);display:grid;place-items:center;padding:18px;z-index:70}
.modal{width:min(100%,620px);max-height:90vh;overflow:auto;background:var(--surface);border:1.5px solid var(--border);border-radius:24px;box-shadow:0 28px 80px rgba(0,0,0,.32);padding:24px}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;padding-bottom:12px;border-bottom:1px solid var(--border)}
.modal-head h3{margin:0;font-size:1.2rem;letter-spacing:-.02em}
.stat{padding:16px;border-radius:16px;background:var(--surface-2);border:1px solid var(--border)}.stat strong{display:block;font-size:1.5rem}.list-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid var(--border)}.list-row:last-child{border-bottom:0}.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:.76rem;font-weight:800}.badge.primary{color:var(--primary)}.badge.success{color:var(--success)}.badge.warning{color:var(--warning)}.badge.danger{color:var(--danger)}
.skeleton{background:linear-gradient(90deg,var(--surface-2),color-mix(in srgb,var(--surface-2) 70%,white),var(--surface-2));background-size:200% 100%;animation:shimmer 1.4s infinite;border-radius:12px}.empty{text-align:center;padding:38px 20px;color:var(--muted)}.empty h3{color:var(--text);margin:.6rem 0 .3rem}.notice{padding:13px 14px;border-radius:14px;background:color-mix(in srgb,var(--primary) 9%,var(--surface));border:1px solid color-mix(in srgb,var(--primary) 25%,var(--border))}.danger-box{padding:13px 14px;border-radius:14px;background:color-mix(in srgb,var(--danger) 8%,var(--surface));border:1px solid color-mix(in srgb,var(--danger) 25%,var(--border))}
.hero{padding:42px 0 24px}.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:30px}.eyebrow{font-size:.78rem;font-weight:900;letter-spacing:.15em;color:var(--primary)}.hero h1{font-size:clamp(2.6rem,7vw,5.9rem);line-height:.98;letter-spacing:-.065em;margin:13px 0 18px;max-width:850px}.hero p{font-size:1.1rem;color:var(--muted);max-width:650px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.hero-preview{padding:18px}.preview-window{border-radius:20px;border:1px solid var(--border);overflow:hidden;background:var(--surface);box-shadow:var(--shadow)}.preview-bar{height:46px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 14px}.preview-body{padding:14px;display:grid;gap:11px}.preview-post{padding:14px;border:1px solid var(--border);border-radius:16px}.preview-post .row{display:flex;gap:10px;align-items:center}.preview-image{height:150px;margin-top:11px;border-radius:13px;background:linear-gradient(135deg,#22263b,#7a79de)}
.feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.feature{padding:18px}.feature h3{margin:12px 0 7px}.feature p{margin:0;color:var(--muted);font-size:.93rem}.section{padding:28px 0}.showcase{display:grid;grid-template-columns:1fr 1fr;gap:18px}.showcase-card{padding:26px;min-height:260px}.footer{padding:34px 0 50px;border-top:1px solid var(--border);margin-top:28px}.footer-row{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;flex-wrap:wrap}
.auth-page{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr}.auth-side{padding:46px;display:flex;align-items:center;background:linear-gradient(145deg,color-mix(in srgb,var(--primary) 18%,var(--bg)),var(--bg))}.auth-side h1{font-size:clamp(2.4rem,5vw,4.8rem);line-height:.97;letter-spacing:-.05em;max-width:630px}.auth-side p{font-size:1.05rem;color:var(--muted);max-width:560px}.auth-panel{display:grid;place-items:center;padding:28px;background:var(--surface)}.auth-card{width:min(100%,440px)}.auth-toggle{display:grid;grid-template-columns:1fr 1fr;background:var(--surface-2);border-radius:12px;padding:4px;margin:20px 0}.auth-toggle button{padding:10px;border-radius:9px;background:transparent;color:var(--muted);font-weight:800}.auth-toggle button.active{background:var(--surface);color:var(--text);box-shadow:0 3px 10px rgba(0,0,0,.06)}
.post-card{padding:17px}.post-head{display:flex;align-items:center;gap:11px}.post-meta{flex:1;min-width:0}.post-meta strong{display:block}.post-meta span{font-size:.8rem;color:var(--muted)}.post-text{margin:14px 0 12px;white-space:pre-wrap}.post-media{width:100%;max-height:560px;object-fit:cover;border-radius:15px;border:1px solid var(--border)}.post-actions{display:flex;align-items:center;gap:4px;border-top:1px solid var(--border);padding-top:9px;margin-top:12px}.action{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border-radius:10px;color:var(--muted);background:transparent;font-weight:700}.action:hover,.action.active{background:var(--surface-2);color:var(--text)}
.group-card,.event-card,.issue-card{overflow:hidden}.group-cover{height:120px;background:linear-gradient(135deg,#1a2040,#7375e8)}.group-body{padding:16px}.group-avatar{width:64px;height:64px;margin-top:-34px;border-radius:18px;background:var(--surface);border:4px solid var(--surface);display:grid;place-items:center;font-weight:900;font-size:1.25rem;color:var(--primary)}.event-date{width:52px;height:56px;border-radius:13px;background:var(--surface-2);display:grid;place-items:center;text-align:center}.event-date strong{font-size:1.2rem}.issue-card{padding:18px}.issue-status{display:flex;align-items:center;justify-content:space-between;gap:10px}.timeline{display:grid;gap:14px;margin:16px 0}.timeline-item{display:grid;grid-template-columns:18px 1fr;gap:10px}.dot{width:12px;height:12px;border-radius:50%;background:var(--primary);margin-top:4px}.timeline-item.muted .dot{background:var(--border)}
.admin-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px}.admin-nav{display:grid;gap:5px;height:max-content;position:sticky;top:92px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:11px 10px;border-bottom:1px solid var(--border);text-align:left;white-space:nowrap}.table th{color:var(--muted);font-size:.8rem;text-transform:uppercase;letter-spacing:.04em}
.mobile-only{display:none}@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}@keyframes slideUp{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}
@media (max-width:1080px){.content-grid{grid-template-columns:minmax(0,1fr)}.desktop-aside{display:none}.feature-grid{grid-template-columns:repeat(2,1fr)}.hero-grid{grid-template-columns:1fr}.showcase{grid-template-columns:1fr}.app-shell{grid-template-columns:88px minmax(0,1fr)}.sidebar{padding:16px 10px}.nav-item span{display:none}.nav-item{justify-content:center}.brand-name{display:none}}
@media (max-width:720px){:root{--header:64px}.container{width:min(100% - 22px,var(--max))}.topbar-inner{padding:0 10px}.top-search{display:none}.brand{margin-right:auto}.sidebar{display:none}.app-shell{display:block}.main{padding:17px 11px 82px}.mobile-only{display:inline-flex}.bottom-nav{position:fixed;left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));z-index:45;padding:7px;display:grid;grid-template-columns:repeat(5,1fr);background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(18px);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);transform:translateZ(0);will-change:transform}.bottom-nav a{display:grid;place-items:center;gap:3px;font-size:.68rem;color:var(--muted);padding:6px 3px;border-radius:11px}.bottom-nav a.active{background:var(--surface-2);color:var(--text)}.hero{padding:24px 0}.hero h1{font-size:clamp(2.4rem,14vw,4rem)}.feature-grid,.grid-2,.grid-3{grid-template-columns:1fr}.page-head{align-items:flex-start;flex-direction:column}.auth-page{grid-template-columns:1fr}.auth-side{display:none}.auth-panel{min-height:100vh;padding:18px}.admin-layout{grid-template-columns:1fr}.admin-nav{position:static;display:flex;overflow:auto}.admin-nav .nav-item{white-space:nowrap}.admin-nav .nav-item span{display:inline}.top-actions .hide-mobile{display:none}.brand-name{display:block}.group-cover{height:108px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* v0.2 product polish */
.kicker{letter-spacing:.12em}.stat{padding:18px;background:var(--surface);border:1px solid var(--border);border-radius:16px;display:grid;gap:5px}.stat strong{font-size:1.7rem;letter-spacing:-.05em}.feature-icon{width:42px;height:42px;border-radius:13px;background:color-mix(in srgb,var(--primary) 10%,var(--surface));color:var(--primary);display:grid;place-items:center}.feature-link{display:grid;gap:8px;transition:transform .18s ease,border-color .18s ease}.feature-link:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--primary) 35%,var(--border))}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.quick-action{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid var(--border);background:var(--surface);border-radius:16px;transition:.18s ease}.quick-action:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.quick-action i{width:21px;height:21px;color:var(--primary)}.quick-action span{display:grid;gap:1px}.quick-action small{color:var(--muted)}.quick-action.primary{background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 12%,var(--surface)),var(--surface))}.search-card,.issue-search{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:0 14px;min-height:46px}.search-card input,.issue-search input{border:0;outline:0;background:transparent;color:var(--text);width:100%;min-width:0}.cover-label{padding:12px;display:flex;justify-content:flex-end}.group-card-enhanced{transition:transform .2s ease,box-shadow .2s ease}.group-card-enhanced:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.group-avatar.large{width:82px;height:82px;border-radius:22px;font-size:1.5rem}.group-hero{padding:0;overflow:hidden}.group-hero-cover{height:185px;background:linear-gradient(135deg,#151a32,#6264dc);position:relative}.group-hero-body{padding:0 22px 22px}.card-tabs{display:flex;gap:8px;overflow:auto;margin:14px 0;padding:5px;border:1px solid var(--border);background:var(--surface);border-radius:14px}.tab{padding:9px 12px;border-radius:10px;background:transparent;color:var(--muted);font-weight:800;white-space:nowrap}.tab.active,.tab:hover{background:var(--surface-2);color:var(--text)}.issue-hero-layout{display:grid;grid-template-columns:1fr 260px;gap:22px;align-items:center}.privacy-card{display:grid;gap:7px;padding:18px;border-radius:18px;background:var(--surface);border:1px solid var(--border);box-shadow:0 10px 30px rgba(31,35,50,.05)}.privacy-card i{color:var(--success);width:25px;height:25px}.privacy-card span{font-size:.88rem;color:var(--muted)}.issue-filter-row{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center}.issue-search{min-width:240px}.issue-filter.active{background:var(--primary);color:#fff;border-color:var(--primary)}.event-highlight{display:flex;justify-content:space-between;align-items:center;min-height:180px;background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 12%,var(--surface)),var(--surface));overflow:hidden}.hero-line-icon{width:90px;height:90px;color:var(--primary);opacity:.8}.event-enhanced{display:grid;grid-template-columns:82px minmax(0,1fr) auto;align-items:center;gap:18px}.event-date-large{width:74px;height:82px;border-radius:18px;background:var(--surface-2);display:grid;place-items:center;align-content:center}.event-date-large span{font-size:.76rem;font-weight:900;color:var(--primary)}.event-date-large strong{font-size:2rem;line-height:1}.event-main{min-width:0}.event-main h3{margin:7px 0 5px;font-size:1.2rem}.notification-list{display:grid;gap:8px;margin-top:14px}.notification-item{position:relative;width:100%;display:flex;gap:13px;align-items:center;text-align:left;padding:15px;border:1px solid var(--border);border-radius:15px;background:var(--surface);color:var(--text)}.notification-item:not(.read){background:color-mix(in srgb,var(--primary) 4%,var(--surface))}.notif-icon{width:42px;height:42px;border-radius:13px;background:var(--surface-2);display:grid;place-items:center;color:var(--primary);flex:0 0 auto}.notification-copy{display:grid;gap:2px;min-width:0}.notification-copy span,.notification-copy small{color:var(--muted)}.notification-copy span{white-space:normal}.unread-dot{margin-left:auto;width:8px;height:8px;border-radius:50%;background:var(--primary)}.settings-list{display:grid;gap:5px}.settings-list button{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:11px;background:transparent;color:var(--text);font-weight:700;text-align:left}.settings-list button:hover{background:var(--surface-2)}.profile-avatar-lg{width:88px;height:88px;font-size:1.5rem}.profile-avatar-lg img{width:100%;height:100%;object-fit:cover}.profile-stat-grid,.admin-metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:14px 0}.admin-section{margin-top:22px}.moderation-item{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:14px 0;border-bottom:1px solid var(--border)}.moderation-item:last-child{border-bottom:0}.check-row{display:flex;gap:10px;align-items:flex-start;font-size:.9rem}.upload-box{display:flex;gap:9px;align-items:center;padding:13px;border:1px dashed var(--border);border-radius:14px;color:var(--muted);cursor:pointer}.comment{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid var(--border)}.avatar.sm{width:32px;height:32px;font-size:.72rem}.narrow-content{width:min(100%,800px);margin:0 auto}.search-overlay{position:fixed;inset:0;z-index:100;background:rgba(5,8,15,.55);backdrop-filter:blur(10px);display:grid;place-items:start center;padding:14vh 16px}.search-dialog{width:min(680px,100%);background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:20px;box-shadow:var(--shadow);display:grid;gap:14px}.search-dialog input{padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2);color:var(--text);outline:0}.mobile-search-btn{display:none}
@media(max-width:980px){.quick-grid{grid-template-columns:repeat(2,1fr)}.issue-hero-layout{grid-template-columns:1fr}.issue-filter-row{grid-template-columns:1fr}.issue-search{min-width:0}.event-enhanced{grid-template-columns:66px minmax(0,1fr)}.event-action{grid-column:2}.profile-stat-grid,.admin-metric-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.quick-grid{grid-template-columns:1fr 1fr}.mobile-search-btn{display:inline-flex}.event-highlight{min-height:150px}.hero-line-icon{width:62px;height:62px}.event-enhanced{grid-template-columns:58px 1fr;gap:12px}.event-date-large{width:58px;height:66px}.event-date-large strong{font-size:1.6rem}.profile-avatar-lg{width:72px;height:72px}.profile-stat-grid,.admin-metric-grid{grid-template-columns:1fr 1fr}.group-hero-cover{height:135px}.group-hero-body{padding:0 15px 18px}.group-avatar.large{width:70px;height:70px}.card-tabs{margin-left:0;margin-right:0}}
/* v1.9.1 premium polish pass -- additive only, nothing above this line touched */
.empty{display:grid;justify-items:center;gap:2px}.empty i{width:38px;height:38px;color:var(--muted);opacity:.55;margin-bottom:8px}.empty p{margin:0;max-width:320px}
:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.btn{transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease,border-color .16s ease}
.btn.primary:hover{box-shadow:0 10px 26px color-mix(in srgb,var(--primary) 35%,transparent)}
.btn:active{transform:translateY(0) scale(.98)}
.card{transition:box-shadow .2s ease,border-color .2s ease}
.post-card{transition:box-shadow .2s ease}
.post-card:hover{box-shadow:var(--shadow)}
.avatar{transition:box-shadow .16s ease}
.action{transition:background-color .15s ease,color .15s ease,transform .1s ease}
.action:active{transform:scale(.94)}
.modal{animation:modalIn .18s cubic-bezier(.2,.9,.3,1)}
@keyframes modalIn{from{transform:translateY(10px) scale(.98);opacity:0}to{transform:none;opacity:1}}
.tab{transition:background-color .15s ease,color .15s ease}
.stat{transition:transform .18s ease,box-shadow .18s ease}
.stat:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
h1,h2,h3{font-weight:800;letter-spacing:-.02em}
.page-head p{max-width:60ch}
.notice.warning{background:color-mix(in srgb,var(--warning) 12%,var(--surface));border-color:color-mix(in srgb,var(--warning) 30%,var(--border))}
::selection{background:color-mix(in srgb,var(--primary) 30%,transparent)}
@media (prefers-reduced-motion:reduce){.card,.post-card,.btn,.stat,.action,.modal{transition:none!important;animation:none!important}}
/* v2.2 search results dropdown */
.search-results{display:none}
.search-results:not([hidden]){display:block}
.search-results-floating{position:absolute;top:calc(100% + 6px);left:0;right:0;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);max-height:340px;overflow:auto;z-index:60}
.search-result-row{display:flex;align-items:center;gap:10px;padding:10px 14px;color:var(--text);text-decoration:none;border-bottom:1px solid var(--border)}
.search-result-row:last-child{border-bottom:0}
.search-result-row:hover{background:var(--surface-2)}
.search-result-row i{width:16px;height:16px;color:var(--muted);flex:0 0 auto}
#mobileSearchResults{margin-top:10px;max-height:50vh;overflow:auto;border-radius:12px}
#mobileSearchResults .search-result-row{border-radius:10px;border-bottom:0;margin-bottom:4px;background:var(--surface-2)}
/* v2.5 home composer prompt -- Facebook/LinkedIn-style "what's on your mind" entry point */
.composer-prompt{display:flex;align-items:center;gap:12px;padding:14px 16px;margin:14px 0;text-decoration:none;color:var(--text)}
.composer-prompt-text{flex:1;color:var(--muted);font-size:.94rem}
.composer-prompt-icon{width:20px;height:20px;color:var(--primary);flex:0 0 auto}
.composer-prompt:hover{border-color:var(--primary)}
/* v2.7 WhatsApp-style group chat */
.chat-window{display:flex;flex-direction:column;gap:2px;height:420px;overflow-y:auto;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:16px}
.chat-row{display:flex;align-items:flex-end;gap:8px;margin-bottom:8px;max-width:82%}
.chat-row.mine{margin-left:auto;flex-direction:row-reverse}
.chat-bubble{position:relative;background:var(--surface-2);border-radius:14px 14px 14px 4px;padding:8px 12px;max-width:100%}
.chat-row.mine .chat-bubble{background:color-mix(in srgb,var(--primary) 22%,var(--surface-2));border-radius:14px 14px 4px 14px}
.chat-bubble-broadcast{background:color-mix(in srgb,var(--warning) 18%,var(--surface-2));border:1px solid color-mix(in srgb,var(--warning) 40%,var(--border))}
.chat-author{font-size:.78rem;font-weight:700;color:var(--primary);margin-bottom:2px}
.chat-text{font-size:.92rem;word-break:break-word;white-space:pre-wrap}
.chat-text img{max-width:220px;border-radius:10px;margin-top:6px}
.chat-time{font-size:.68rem;color:var(--muted);margin-top:4px;text-align:right}
.chat-pin-btn{width:22px;height:22px;border-radius:50%;background:var(--surface);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;cursor:pointer}
.chat-pin-btn i{width:12px;height:12px;color:var(--muted)}
.chat-bubble-actions{position:absolute;top:-10px;right:-10px;display:none;gap:3px}
.chat-bubble:hover .chat-bubble-actions{display:flex}
.chat-pinned-tag,.chat-broadcast-tag{display:flex;align-items:center;gap:4px;font-size:.68rem;font-weight:700;color:var(--warning);margin-bottom:4px;text-transform:uppercase;letter-spacing:.03em}
.chat-pinned-tag i,.chat-broadcast-tag i{width:11px;height:11px}
.chat-pinned-bar{display:flex;align-items:center;gap:8px;padding:8px 14px;background:color-mix(in srgb,var(--warning) 12%,var(--surface));border:1px solid color-mix(in srgb,var(--warning) 30%,var(--border));border-radius:10px;margin-bottom:8px;font-size:.85rem}
.chat-pinned-bar i{width:14px;height:14px;color:var(--warning);flex:0 0 auto}
.chat-composer{display:flex;gap:8px;margin-top:10px}
.chat-composer input{flex:1;border-radius:99px;border:1px solid var(--border);background:var(--surface);padding:10px 16px;color:var(--text)}
.chat-composer button{border-radius:50%;width:42px;height:42px;flex:0 0 auto}
.cover-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;cursor:pointer}

/* ========== Native App Form & Composer Elevation ========== */
.post-composer{
  background:var(--surface);
  border:1.5px solid var(--border);
  border-radius:20px;
  padding:16px;
  box-shadow:var(--shadow);
  transition:border-color .2s ease, box-shadow .2s ease;
}
.post-composer:focus-within{
  border-color:color-mix(in srgb,var(--primary) 50%,var(--border));
  box-shadow:0 16px 36px -12px rgba(91,92,240,.18);
}
.composer-row{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.composer-row textarea{
  flex:1;
  min-height:140px;
  padding:14px 16px;
  border-radius:16px;
  border:1.5px solid var(--border);
  background:color-mix(in srgb,var(--surface) 60%,var(--surface-2));
  color:var(--text);
  outline:none;
  font-family:inherit;
  font-size:.95rem;
  resize:vertical;
  transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}
.composer-row textarea:focus{
  border-color:var(--primary);
  background:var(--surface);
  box-shadow:0 0 0 3.5px rgba(91,92,240,.18), 0 4px 12px rgba(91,92,240,.08);
}
.composer-placeholder{
  flex:1;
  text-align:left;
  padding:14px 18px;
  border-radius:16px;
  background:color-mix(in srgb,var(--surface) 60%,var(--surface-2));
  color:var(--muted);
  border:1.5px solid var(--border);
  font-size:.95rem;
  font-weight:500;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
  transition:all .18s ease;
}
.composer-placeholder:hover{
  background:var(--surface);
  border-color:var(--primary);
  color:var(--text);
  box-shadow:0 0 0 3px rgba(91,92,240,.12);
}
.composer-placeholder i{
  width:18px;
  height:18px;
  color:var(--primary);
  opacity:.75;
}
.upload-box{
  display:flex;
  gap:12px;
  align-items:center;
  padding:14px 18px;
  border:1.5px dashed color-mix(in srgb,var(--primary) 40%,var(--border));
  border-radius:16px;
  background:color-mix(in srgb,var(--primary) 4%,var(--surface));
  color:var(--text);
  font-weight:600;
  font-size:.92rem;
  cursor:pointer;
  transition:all .18s ease;
}
.upload-box:hover{
  border-color:var(--primary);
  background:color-mix(in srgb,var(--primary) 8%,var(--surface));
  transform:translateY(-1px);
}
.upload-box i{
  color:var(--primary);
  width:20px;
  height:20px;
}

/* ========== Smooth Native App Page Navigation ========== */
@view-transition{
  navigation:auto;
}
::view-transition-old(root){
  animation:120ms ease-out both ccPageFadeOut;
}
::view-transition-new(root){
  animation:160ms ease-in both ccPageFadeIn;
}
@keyframes ccPageFadeOut{
  from{opacity:1}
  to{opacity:0}
}
@keyframes ccPageFadeIn{
  from{opacity:0}
  to{opacity:1}
}

body.cc-navigating{
  opacity:.85;
  transition:opacity .15s ease;
}
@media (prefers-reduced-motion:reduce){
  body,body.cc-navigating{
    animation:none!important;
    transition:none!important;
    transform:none!important;
  }
}


