:root{
  --bg:#eef1f6; --card:#fff; --ink:#0f1b2d; --muted:#6b7a90;
  --brand:#0b6b5b; --brand-2:#12a389; --gold:#c99a2e; --line:#e8ecf1;
  --shadow-sm:0 1px 2px rgba(16,27,45,.06);
  --shadow:0 2px 8px rgba(16,27,45,.06),0 8px 24px rgba(16,27,45,.05);
  --shadow-lg:0 12px 32px rgba(16,27,45,.12);
  --radius:18px; --radius-sm:12px; --head:58px; --side:284px;
  --ease:cubic-bezier(.4,0,.2,1);
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{font-family:'Noto Sans Myanmar','Padauk',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  background:var(--bg);color:var(--ink);font-size:15px;line-height:1.55;-webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
img{max-width:100%;display:block}
.hidden{display:none!important}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:#cdd5e0;border-radius:8px;border:2px solid var(--bg)}

/* ---- top bar ---- */
.topbar{position:fixed;top:0;left:0;right:0;height:var(--head);background:rgba(255,255,255,.85);
  backdrop-filter:saturate(180%) blur(12px);-webkit-backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;padding:0 14px;z-index:50}
.brand{font-weight:800;font-size:21px;color:var(--brand);display:inline-flex;align-items:center;gap:9px;
  letter-spacing:.2px;white-space:nowrap;flex:none}
.brand #brandName{white-space:nowrap;display:inline-block}
.brand .logo{width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#fff;display:grid;place-items:center;font-size:19px;font-weight:800;flex:none;box-shadow:0 4px 12px rgba(11,107,91,.35)}
.menu-btn,.back-btn{font-size:20px;padding:7px 11px;border-radius:12px;color:var(--ink);transition:background .15s var(--ease),transform .1s}
.menu-btn:hover,.back-btn:hover{background:var(--bg)}
.menu-btn:active,.back-btn:active{transform:scale(.92)}
.back-btn{font-size:22px;font-weight:700}
.grow{flex:1}
.top-actions{display:flex;align-items:center;gap:8px}
.lang-select{border:1px solid var(--line);border-radius:20px;padding:6px 10px;background:var(--card);font-size:13px;color:var(--ink)}
.search-box{border:1px solid var(--line);border-radius:20px;padding:8px 14px;background:var(--bg);font-family:inherit;
  font-size:14px;color:var(--ink);width:200px;transition:width .2s,box-shadow .2s}
.search-box:focus{outline:none;width:260px;background:var(--card);box-shadow:0 0 0 3px rgba(11,107,91,.12)}
@media(max-width:768px){.search-box{width:130px}.search-box:focus{width:150px}}
.avatar{width:36px;height:36px;border-radius:50%;background:var(--brand-2);color:#fff;display:grid;place-items:center;
  font-weight:700;overflow:hidden;flex:none}
.avatar img{width:100%;height:100%;object-fit:cover}
.bell{position:relative;font-size:20px;padding:6px 8px;border-radius:50%;color:var(--ink)}
.bell:hover{background:var(--bg)}
.nbadge{position:absolute;top:0;right:0;min-width:18px;height:18px;padding:0 4px;background:#e0342b;color:#fff;
  font-size:11px;font-weight:700;border-radius:9px;display:none;place-items:center;line-height:18px}
.notif-pop{position:fixed;width:320px;max-width:92vw;max-height:70vh;overflow-y:auto;background:var(--card);
  border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.2);z-index:80}
.notif-head{font-weight:700;padding:12px 14px;border-bottom:1px solid var(--line)}
.notif-empty{padding:24px;text-align:center;color:var(--muted)}
.notif-item{padding:11px 14px;border-bottom:1px solid var(--line);cursor:pointer;font-size:14px}
.notif-item:hover{background:var(--bg)}
.notif-item.unread{background:#e7f3f0}
.notif-time{font-size:12px;color:var(--muted);margin-top:2px}
#toastWrap{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:200;display:flex;flex-direction:column;gap:8px}
.toast{background:var(--ink);color:#fff;padding:11px 18px;border-radius:24px;font-size:14px;box-shadow:var(--shadow);
  opacity:0;transform:translateY(20px);transition:all .3s;max-width:90vw}
.toast.show{opacity:1;transform:translateY(0)}
.btn{background:var(--brand);color:#fff;padding:9px 18px;border-radius:24px;font-weight:600;font-size:14px;
  transition:transform .1s var(--ease),box-shadow .2s,background .2s;box-shadow:0 3px 10px rgba(11,107,91,.28)}
.btn:hover{background:var(--brand-2);box-shadow:0 5px 16px rgba(11,107,91,.34)}
.btn:active{transform:scale(.96)}
.btn.ghost{background:var(--bg);color:var(--ink);box-shadow:none}
.btn.ghost:hover{background:#e2e7ee}
.btn.gold{background:var(--gold);box-shadow:0 3px 10px rgba(201,154,46,.3)}
.btn.sm{padding:6px 13px;font-size:13px}
.btn.block{width:100%;padding:12px;border-radius:12px;margin-top:6px}

/* ---- layout ---- */
.layout{display:flex;padding-top:var(--head);min-height:100vh}
.sidebar{width:var(--side);flex:none;position:fixed;top:var(--head);bottom:0;left:0;overflow-y:auto;
  background:var(--card);border-right:1px solid var(--line);padding:14px;transition:transform .25s}
.sidebar h3{font-size:13px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);margin:8px 6px}
.cat-item{border-radius:10px;overflow:hidden;margin-bottom:2px}
.cat-big{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:10px;font-weight:600;color:var(--ink)}
.cat-big:hover{background:var(--bg)}
.cat-big .code{background:var(--brand);color:#fff;font-size:11px;padding:1px 7px;border-radius:6px;font-weight:700}
.cat-big .chev{margin-left:auto;color:var(--muted);transition:transform .2s}
.cat-big.open .chev{transform:rotate(90deg)}
.cat-subs{display:none;padding:2px 0 6px 14px}
.cat-subs.show{display:block}
.cat-sub{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:8px;font-size:14px;color:var(--muted)}
.cat-sub:hover{background:var(--bg);color:var(--ink)}
.cat-sub .code{font-size:10px;color:var(--gold);font-weight:700;min-width:24px}
.cat-sub.active,.cat-big.active{background:#e7f3f0;color:var(--brand)}

.main{margin-left:var(--side);flex:1;min-width:0}
.content{max-width:680px;margin:0 auto;padding:16px 14px 90px}

/* right rail */
.rail{width:300px;flex:none;padding:16px 14px;display:none}
@media(min-width:1180px){.rail{display:block}}

/* ---- feed tabs (segmented) ---- */
.tabs{display:flex;gap:4px;background:var(--card);border-radius:16px;padding:5px;box-shadow:var(--shadow);
  margin-bottom:16px;position:sticky;top:calc(var(--head) + 8px);z-index:20;border:1px solid var(--line)}
.tab{flex:1;text-align:center;padding:10px 6px;border-radius:12px;font-weight:600;color:var(--muted);font-size:14px;
  transition:background .2s var(--ease),color .2s,transform .1s}
.tab:active{transform:scale(.96)}
.tab.active{background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;box-shadow:0 4px 12px rgba(11,107,91,.3)}

/* ---- cards ---- */
.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:16px;border:1px solid var(--line);
  transition:box-shadow .25s var(--ease),transform .2s var(--ease)}
.card:hover{box-shadow:var(--shadow-lg)}
.card.pad{padding:18px}
.composer{display:flex;gap:10px;align-items:center;padding:14px 16px}
.composer input{flex:1;background:var(--bg);border:none;border-radius:22px;padding:11px 16px;font-size:15px;font-family:inherit}
.post-head{display:flex;align-items:center;gap:10px;padding:14px 16px 8px}
.post-head .who{font-weight:700}
.post-head .meta{font-size:12px;color:var(--muted)}
.post-menu{margin-left:auto;font-size:20px;color:var(--muted);padding:2px 10px;border-radius:8px;line-height:1}
.post-menu:hover{background:var(--bg)}
.pmenu-pop{position:fixed;background:var(--card);border:1px solid var(--line);border-radius:10px;
  box-shadow:0 8px 30px rgba(0,0,0,.18);z-index:90;overflow:hidden;min-width:140px}
.pmenu-item{padding:10px 16px;cursor:pointer;font-size:14px}
.pmenu-item:hover{background:var(--bg)}
.feed-sentinel{min-height:20px}
/* ---- premium micro-interactions ---- */
.cat-big,.cat-sub,.chip,.faq-q,.notif-item,.pmenu-item,.tab,.post-menu,.avatar[data-uid]{transition:background .18s var(--ease),transform .1s var(--ease),color .18s}
.cat-big:active,.cat-sub:active,.chip:active,.notif-item:active,.pmenu-item:active{transform:scale(.97)}
.composer input{transition:box-shadow .2s var(--ease)}
.composer:hover input{box-shadow:inset 0 0 0 1px var(--line)}
.field input:focus,.field textarea:focus,.field select:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(11,107,91,.12)}
@media(hover:hover){.post-actions button:active{transform:scale(.9)}}
.pmenu-item.danger{color:#c0392b}
.badge{font-size:10px;background:var(--gold);color:#fff;padding:1px 7px;border-radius:10px;margin-left:6px;font-weight:700}
.badge.expert{background:var(--brand)}
.post-title{font-weight:700;padding:0 16px;margin-top:2px;font-size:16px}
.post-body{padding:8px 16px 12px;white-space:pre-wrap}
.post-media img,.post-media video{width:100%;max-height:520px;object-fit:cover}
.post-cat{display:inline-block;margin:0 16px 10px;font-size:12px;color:var(--brand);background:#e7f3f0;padding:2px 10px;border-radius:12px}
.post-actions{display:flex;border-top:1px solid var(--line);padding:4px;flex-wrap:wrap}
.post-actions button{flex:1;min-width:64px;padding:9px 4px;color:var(--muted);font-weight:600;border-radius:8px;display:flex;gap:5px;justify-content:center;align-items:center;font-size:13px;transition:background .15s,color .15s}
.post-actions button:hover{background:var(--bg)}
.post-actions button.on{color:var(--brand)}
.post-actions button.on-tts{color:var(--gold);background:#fff6e0}
.comments{border-top:1px solid var(--line);padding:10px 16px}
.comment{display:flex;gap:8px;margin-bottom:8px}
.comment .bubble{background:var(--bg);border-radius:14px;padding:7px 12px;flex:1}
.comment .bubble .who{font-weight:700;font-size:13px}
.comment-box{display:flex;gap:8px;margin-top:8px}
.comment-box input{flex:1;background:var(--bg);border:none;border-radius:18px;padding:9px 14px;font-family:inherit}

/* ---- profile ---- */
.cover{height:200px;background:linear-gradient(135deg,var(--brand),var(--brand-2));border-radius:var(--radius) var(--radius) 0 0;overflow:hidden}
.cover img{width:100%;height:100%;object-fit:cover}
.profile-head{padding:0 20px 18px;display:flex;gap:16px;align-items:flex-end;margin-top:-46px}
.profile-head .avatar{width:96px;height:96px;font-size:34px;border:4px solid var(--card)}
.profile-info h2{font-size:22px}
.profile-info .sub{color:var(--muted)}
.stat{display:flex;gap:18px;margin-top:6px;font-size:14px}
.stat b{color:var(--ink)}
.field{margin-bottom:12px}
.field label{display:block;font-size:13px;color:var(--muted);margin-bottom:4px}
.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-family:inherit;font-size:15px;background:#fff}
.field textarea{min-height:70px;resize:vertical}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.section-title{font-weight:700;font-size:16px;margin:18px 0 10px;padding-bottom:6px;border-bottom:1px solid var(--line)}

/* ---- support ---- */
.support-layout{display:grid;grid-template-columns:1fr;gap:16px}
.chip{display:inline-block;padding:7px 14px;border-radius:20px;border:1px solid var(--line);margin:4px;font-size:14px;background:var(--card)}
.chip.active{background:var(--brand);color:#fff;border-color:var(--brand)}
.faq-q{font-weight:600;padding:12px 14px;cursor:pointer;display:flex;justify-content:space-between;border-bottom:1px solid var(--line)}
.faq-a{padding:0 14px 12px;color:var(--muted);display:none}
.faq-a.show{display:block}
.chat{height:420px;display:flex;flex-direction:column}
.chat-msgs{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:8px}
.msg{max-width:78%;padding:8px 12px;border-radius:14px;font-size:14px}
.msg.user{align-self:flex-end;background:var(--brand);color:#fff;border-bottom-right-radius:4px}
.msg.agent,.msg.system{align-self:flex-start;background:var(--bg);border-bottom-left-radius:4px}
.msg.system{align-self:center;background:#fff6e0;color:#8a6d1a;font-size:13px;text-align:center;border:1px solid #f0e3bd}
.chat-input{display:flex;gap:8px;padding:10px;border-top:1px solid var(--line)}
.chat-input input{flex:1;background:var(--bg);border:none;border-radius:20px;padding:10px 14px;font-family:inherit}
.call-bar{display:flex;gap:8px;padding:8px 10px;border-top:1px solid var(--line)}

/* ---- modal ---- */
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);display:grid;place-items:center;z-index:100;padding:16px}
.modal{position:relative;background:var(--card);border-radius:18px;width:100%;max-width:420px;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,.3);max-height:92vh;overflow:auto}
.modal-close{position:sticky;top:0;z-index:3;float:right;width:34px;height:34px;margin:-10px -10px 4px 10px;border:1px solid var(--border);border-radius:50%;background:var(--card);color:var(--text);font:700 22px/1 system-ui;cursor:pointer;box-shadow:var(--shadow-sm)}
.modal-close:hover{background:var(--surface-2);border-color:var(--brand)}
.modal h2{text-align:center;margin-bottom:4px}
.modal .sub{text-align:center;color:var(--muted);margin-bottom:16px;font-size:14px}
.modal .switch{text-align:center;margin-top:14px;font-size:14px;color:var(--muted)}
.modal .switch a{color:var(--brand);font-weight:600;cursor:pointer}
.err{background:#fdecec;color:#c0392b;padding:9px 12px;border-radius:8px;font-size:13px;margin-bottom:10px}
.ok{background:#e7f6ef;color:#1e7a52;padding:9px 12px;border-radius:8px;font-size:13px;margin-bottom:10px}

/* mobile bottom nav */
.bottomnav{display:none;position:fixed;bottom:0;left:0;right:0;height:60px;background:var(--card);
  border-top:1px solid var(--line);z-index:40}
.bottomnav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  font-size:11px;color:var(--muted)}
.bottomnav a.active{color:var(--brand)}
.bottomnav .ic{font-size:20px}
.scrim{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:45;display:none}

/* ---- responsive: tablet ---- */
@media(max-width:1024px){
  :root{--side:240px}
  .content{padding-bottom:90px}
}
/* ---- responsive: mobile ---- */
@media(max-width:768px){
  .sidebar{transform:translateX(-100%);width:80%;max-width:320px;z-index:60;box-shadow:var(--shadow)}
  .sidebar.open{transform:translateX(0)}
  .scrim.open{display:block}
  .main{margin-left:0}
  .bottomnav{display:flex}
  .content{padding:12px 10px 80px}
  .row2{grid-template-columns:1fr}
  .top-actions .btn:not(.icon){display:none}
  .profile-head{flex-direction:column;align-items:flex-start;gap:8px}
}
@media(min-width:769px){.menu-btn{display:none}}
/* ---- desktop / computer: center the whole app, sticky columns, wider feed ---- */
@media(min-width:1025px){
  .layout{max-width:1440px;margin:0 auto;position:relative}
  .sidebar{position:sticky;top:var(--head);left:auto;bottom:auto;height:calc(100vh - var(--head));transform:none!important;border-right:1px solid var(--line)}
  .main{margin-left:0}
  .content{max-width:760px;padding:22px 22px 90px}
  .rail{position:sticky;top:var(--head);height:calc(100vh - var(--head));overflow-y:auto}
}
@media(min-width:1440px){
  .content{max-width:820px}
}

/* ═══════════════ PREMIUM DESIGN LAYER (business-app grade) ═══════════════ */
:root{
  --bg:#eef1f4; --card:#ffffff; --ink:#111826; --muted:#6b7684;
  --brand:#0b6b5b; --brand-2:#12a086; --gold:#c99a2e; --line:#e7ebef;
  --radius:16px;
  --shadow-sm:0 1px 2px rgba(16,24,40,.05),0 1px 3px rgba(16,24,40,.06);
  --shadow-md:0 2px 4px rgba(16,24,40,.05),0 6px 16px rgba(16,24,40,.08);
  --shadow-lg:0 12px 32px rgba(16,24,40,.14);
  --ease:cubic-bezier(.34,1.56,.64,1);
}
body{background:linear-gradient(180deg,#eef1f4 0%,#e9edf1 100%);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}

/* Topbar — frosted glass */
.topbar{background:rgba(255,255,255,.82);backdrop-filter:saturate(180%) blur(14px);-webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid rgba(16,24,40,.06);box-shadow:0 1px 0 rgba(16,24,40,.02),0 2px 12px rgba(16,24,40,.04)}
.brand{font-size:22px;letter-spacing:.2px;background:linear-gradient(135deg,var(--brand),var(--brand-2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.brand .logo{-webkit-text-fill-color:#fff;box-shadow:0 4px 12px rgba(11,107,91,.32);border-radius:12px}
.back-btn,.menu-btn{transition:transform .18s var(--ease),background .18s}
.back-btn:active,.menu-btn:active{transform:scale(.86)}

/* Cards — layered elevation + hover lift */
.card{border:1px solid rgba(16,24,40,.06);border-radius:var(--radius);box-shadow:var(--shadow-sm);
  transition:box-shadow .25s ease,transform .25s var(--ease)}
.content .card:hover{box-shadow:var(--shadow-md)}
.card.pad{padding:18px}

/* Buttons — gradient + squish */
.btn{background:linear-gradient(135deg,var(--brand),var(--brand-2));box-shadow:0 2px 8px rgba(11,107,91,.24);
  transition:transform .16s var(--ease),box-shadow .2s,filter .2s;letter-spacing:.2px}
.btn:hover{filter:brightness(1.05);box-shadow:0 4px 14px rgba(11,107,91,.32)}
.btn:active{transform:scale(.94)}
.btn.ghost{background:#f2f5f7;color:var(--ink);box-shadow:none;border:1px solid var(--line)}
.btn.ghost:hover{background:#e9eef1;filter:none}
.btn.gold{background:linear-gradient(135deg,#d4a52f,#b8891f);box-shadow:0 2px 8px rgba(201,154,46,.3)}

/* Segmented tabs (Notion-like) */
.tabs{background:#e9edf1;border:1px solid rgba(16,24,40,.05);border-radius:14px;padding:5px;box-shadow:inset 0 1px 2px rgba(16,24,40,.04)}
.tab{border-radius:10px;transition:all .22s var(--ease);color:var(--muted)}
.tab.active{background:var(--card);color:var(--brand);box-shadow:var(--shadow-sm);font-weight:700}
.tab:active{transform:scale(.95)}

/* Avatars — ring + shadow */
.avatar{background:linear-gradient(135deg,var(--brand-2),var(--brand));box-shadow:0 2px 6px rgba(16,24,40,.14);
  border:2px solid #fff}

/* Inputs — refined focus */
.field input,.field select,.field textarea,.composer input,.comment-box input,.chat-input input{
  border-radius:12px;transition:border-color .2s,box-shadow .2s;border:1px solid var(--line)}
.field input:focus,.field textarea:focus,.field select:focus{outline:none;border-color:var(--brand-2);
  box-shadow:0 0 0 4px rgba(18,160,134,.12)}

/* Sidebar items */
.cat-big,.cat-sub{transition:background .18s,transform .12s var(--ease)}
.cat-big:hover{background:#f2f5f7}
.cat-sub.active,.cat-big.active{background:linear-gradient(135deg,rgba(11,107,91,.1),rgba(18,160,134,.08));
  color:var(--brand);font-weight:600}
.sidebar{background:rgba(255,255,255,.96);border-right:1px solid rgba(16,24,40,.05)}

/* Post — premium spacing + media radius */
.post-head .who{letter-spacing:.1px}
.badge{border-radius:20px;letter-spacing:.3px;box-shadow:0 1px 3px rgba(16,24,40,.14)}
.post-media img,.post-media video{border-radius:0}
.post-cat{background:linear-gradient(135deg,rgba(11,107,91,.1),rgba(18,160,134,.08));font-weight:600}
.chip{transition:all .2s var(--ease);border-radius:20px}
.chip.active{background:linear-gradient(135deg,var(--brand),var(--brand-2));box-shadow:0 2px 8px rgba(11,107,91,.26)}
.chip:active{transform:scale(.95)}

/* Section title accent */
.section-title{border-bottom:none;position:relative;padding-left:12px}
.section-title:before{content:'';position:absolute;left:0;top:2px;bottom:2px;width:4px;border-radius:3px;
  background:linear-gradient(180deg,var(--brand),var(--brand-2))}

/* Modal — deeper elevation + entrance */
.overlay{background:rgba(16,24,40,.5);backdrop-filter:blur(3px)}
.modal{border-radius:20px;box-shadow:var(--shadow-lg);animation:modalIn .28s var(--ease)}
@keyframes modalIn{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}

/* Bottom nav — frosted + active pill */
.bottomnav{background:rgba(255,255,255,.9);backdrop-filter:blur(14px);border-top:1px solid rgba(16,24,40,.06)}
.bottomnav a{transition:color .2s,transform .12s var(--ease)}
.bottomnav a{min-width:68px}
@media(max-width:768px){.bottomnav{overflow-x:auto;justify-content:flex-start}.bottomnav a{flex:0 0 82px;font-size:11px}.bottomnav .ic{font-size:18px}}
.bottomnav a.active .ic{transform:translateY(-1px) scale(1.08)}
.bottomnav a:active{transform:scale(.9)}

/* Skeleton shimmer */
.skeleton{background:linear-gradient(90deg,#eceff2 25%,#f5f7f9 50%,#eceff2 75%);background-size:200% 100%;
  animation:shimmer 1.3s infinite;border-radius:8px}
@keyframes shimmer{to{background-position:-200% 0}}

/* Comment bubble depth */
.comment .bubble{box-shadow:var(--shadow-sm);border:1px solid rgba(16,24,40,.04)}
.msg{box-shadow:var(--shadow-sm)}
.msg.user{background:linear-gradient(135deg,var(--brand),var(--brand-2))}

/* Global tap highlight off + smoother */
*{-webkit-tap-highlight-color:transparent}
a,button,.cat-big,.cat-sub,.tab,.chip,.card{ -webkit-touch-callout:none }

/* card corner clipping + desktop hover lift (embossed feel) */
.card{overflow:hidden}
@media(hover:hover){ .content .card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)} }

/* ═══════════════ DARK MODE ═══════════════ */
html[data-theme="dark"]{
  --bg:#0f1620; --card:#182029; --ink:#e8edf2; --muted:#93a1b0; --line:#26313d;
  --brand:#16b899; --brand-2:#12a086;
  --shadow-sm:0 1px 2px rgba(0,0,0,.4);
  --shadow-md:0 2px 8px rgba(0,0,0,.45);
  --shadow-lg:0 16px 40px rgba(0,0,0,.6);
}
html[data-theme="dark"] body{background:linear-gradient(180deg,#0f1620,#0c1119)}
html[data-theme="dark"] .topbar{background:rgba(24,32,41,.85);border-bottom-color:#26313d}
html[data-theme="dark"] .btn.ghost{background:#222c37;color:var(--ink);border-color:#2f3b48}
html[data-theme="dark"] .tabs{background:#0f1620}
html[data-theme="dark"] .composer input,html[data-theme="dark"] .comment-box input,
html[data-theme="dark"] .chat-input input,html[data-theme="dark"] .search-box{background:#0f1620;color:var(--ink)}
html[data-theme="dark"] .msg.agent,html[data-theme="dark"] .msg.system{background:#222c37;color:var(--ink)}
html[data-theme="dark"] .comment .bubble{background:#222c37}
html[data-theme="dark"] .sidebar{background:rgba(24,32,41,.98)}
html[data-theme="dark"] .cat-big:hover{background:#222c37}
html[data-theme="dark"] .skeleton{background:linear-gradient(90deg,#1c2530 25%,#26313d 50%,#1c2530 75%);background-size:200% 100%}
html[data-theme="dark"] .bottomnav{background:rgba(24,32,41,.92)}
.theme-btn{font-size:18px;padding:6px 9px;border-radius:50%;color:var(--ink);transition:transform .3s var(--ease),background .2s}
.theme-btn:hover{background:var(--bg)} .theme-btn:active{transform:scale(.85) rotate(30deg)}

/* scroll-to-top FAB */
.fab-top{position:fixed;right:18px;bottom:78px;width:46px;height:46px;border-radius:50%;z-index:44;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;font-size:22px;font-weight:700;
  box-shadow:0 6px 18px rgba(11,107,91,.4);opacity:0;pointer-events:none;transform:translateY(12px) scale(.8);
  transition:opacity .25s,transform .25s var(--ease)}
.fab-top.show{opacity:1;pointer-events:auto;transform:none}
.fab-top:active{transform:scale(.88)}
@media(min-width:769px){.fab-top{bottom:24px;right:28px}}

/* premium composer with quick actions */
.composer-card{overflow:hidden}
.composer-card .composer{padding-bottom:10px}
.composer-acts{display:flex;border-top:1px solid var(--line)}
.composer-acts button{flex:1;padding:10px 4px;display:flex;align-items:center;justify-content:center;gap:6px;
  color:var(--muted);font-weight:600;font-size:13px;transition:background .15s,transform .12s var(--ease)}
.composer-acts button:hover{background:var(--bg)}
.composer-acts button:active{transform:scale(.94)}
@media(max-width:420px){.composer-acts button span{display:none}.composer-acts button{font-size:18px}}

/* premium empty states */
.empty-state{text-align:center;padding:44px 20px;color:var(--muted)}
.empty-state .empty-ic{font-size:44px;margin-bottom:10px;opacity:.7}

/* township autocomplete */
.tship-wrap{margin-bottom:12px}
.tship-drop{display:none;position:absolute;left:0;right:0;top:100%;z-index:30;background:var(--card);
  border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-md);max-height:240px;overflow-y:auto;margin-top:4px}
.tship-opt{padding:10px 14px;cursor:pointer;font-size:14px;display:flex;justify-content:space-between;align-items:center}
.tship-opt:hover{background:var(--bg)}
.tship-chip{display:inline-flex;align-items:center;gap:6px;background:#e7f3f0;color:var(--brand);
  padding:5px 10px;border-radius:16px;font-size:13px;margin:3px}
html[data-theme="dark"] .tship-chip{background:#12303a}
.tship-chip button{color:inherit;font-weight:700;font-size:15px;line-height:1}
.post-township{display:inline-block;margin:0 16px 8px;font-size:12px;color:var(--brand);background:#e7f3f0;padding:2px 10px;border-radius:12px}
html[data-theme="dark"] .post-township{background:#12303a}

/* active filter banner */
.filter-bar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.filter-chip{display:inline-flex;align-items:center;gap:8px;background:var(--card);border:1px solid var(--line);
  border-radius:20px;padding:6px 12px;font-size:13px;font-weight:600;color:var(--brand);box-shadow:var(--shadow-sm)}
.filter-chip button{color:var(--muted);font-size:16px;font-weight:700;line-height:1}
.filter-chip button:active{transform:scale(.85)}

/* tap ripple (premium tactile) */
.btn,.tab,.chip,.cat-big,.cat-sub,.pmenu-item,.notif-item,.composer-acts button,.post-actions button{position:relative;overflow:hidden}
.ripple-ink{position:absolute;border-radius:50%;transform:scale(0);background:currentColor;opacity:.22;pointer-events:none;animation:rippleGo .55s ease-out}
@keyframes rippleGo{to{transform:scale(2.6);opacity:0}}

/* ---- sidebar top-nav (App / Ministries / admin) above sectors ---- */
#topNav{margin-bottom:6px;padding-bottom:8px;border-bottom:1px solid var(--line)}
#topNav .nav-link{background:var(--bg);margin-bottom:4px;border:1px solid var(--line);text-decoration:none}
#topNav .nav-link:hover{background:var(--card);transform:translateY(-1px);box-shadow:0 2px 8px rgba(0,0,0,.06)}
#topNav .nav-link:active{transform:scale(.97)}
/* multi-select checkboxes in sidebar */
.cat-big .chk,.cat-sub .chk{font-size:15px;color:var(--brand);min-width:18px;text-align:center;cursor:pointer}
.cat-sub .chk{font-size:14px}
/* feed toolbar: date sort + expert filter */
.feed-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 10px}
.toolbar-select{padding:7px 12px;border-radius:20px;border:1px solid var(--line);background:var(--card);color:var(--ink);font-weight:600;font-size:13px;cursor:pointer}
.toolbar-select:focus{outline:2px solid var(--brand);outline-offset:1px}
.filter-chip.clear-all{background:#fdecea;color:#c0392b;cursor:pointer;border-color:#f5c6c0}
.filter-chip.clear-all:active{transform:scale(.95)}

/* ---- date divider (Myanmar-time day grouping) ---- */
.date-divider{display:flex;align-items:center;justify-content:center;margin:14px 0 10px;position:relative}
.date-divider::before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:var(--line)}
.date-divider span{position:relative;background:var(--brand);color:#fff;font-weight:700;font-size:12.5px;
  padding:5px 16px;border-radius:20px;box-shadow:0 2px 8px rgba(11,107,91,.25);letter-spacing:.3px}

/* ═══════════════ DESKTOP PUBLIC EXPERIENCE ═══════════════ */
.public-hero{position:relative;overflow:hidden;display:flex;align-items:flex-end;justify-content:space-between;gap:28px;
  padding:30px 32px;margin:2px 0 18px;border-radius:22px;color:#f7fffc;
  background:radial-gradient(circle at 92% 12%,rgba(142,229,200,.38),transparent 26%),linear-gradient(122deg,#063f39 0%,#087462 54%,#10a68b 100%);
  box-shadow:0 14px 30px rgba(6,74,64,.24)}
.public-hero:after{content:'';position:absolute;width:230px;height:230px;right:-74px;bottom:-132px;border:1px solid rgba(255,255,255,.2);border-radius:50%;box-shadow:0 0 0 28px rgba(255,255,255,.05),0 0 0 58px rgba(255,255,255,.04)}
.eyebrow{display:inline-flex;align-items:center;gap:7px;color:inherit;font-size:10px;font-weight:800;letter-spacing:1.1px;opacity:.76}
.eyebrow:before{content:'';width:7px;height:7px;background:#e4bd66;border-radius:50%;box-shadow:0 0 0 4px rgba(228,189,102,.16)}
.public-hero h1{position:relative;z-index:1;margin:9px 0 8px;font-size:29px;line-height:1.35;letter-spacing:-.4px}.public-hero h1 em{font-style:normal;color:#bdf2df}
.public-hero p{position:relative;z-index:1;max-width:480px;font-size:13.5px;line-height:1.8;color:rgba(255,255,255,.8)}
.hero-actions{position:relative;z-index:2;display:flex;align-items:center;gap:13px;flex:none}.public-hero .btn{background:#fff;color:#075c50;box-shadow:0 5px 14px rgba(0,0,0,.14);white-space:nowrap}.public-hero .btn:hover{background:#effff8}
.hero-login{color:#fff;font-weight:700;font-size:13px;white-space:nowrap}.hero-login span{font-size:17px;margin-left:5px;transition:transform .2s}.hero-login:hover span{display:inline-block;transform:translateX(4px)}
.rail{padding:22px 18px 40px}.rail-card{border:1px solid rgba(16,24,40,.06);background:rgba(255,255,255,.82);border-radius:18px;box-shadow:0 8px 20px rgba(20,42,50,.045);margin-bottom:14px}
.rail-welcome{position:relative;overflow:hidden;padding:22px;background:linear-gradient(148deg,#103e39,#126757);color:#fff}.rail-welcome:after{content:'';position:absolute;width:124px;height:124px;border:1px solid rgba(255,255,255,.16);border-radius:50%;right:-45px;top:-48px;box-shadow:0 0 0 18px rgba(255,255,255,.045)}
.rail-welcome h2{position:relative;z-index:1;font-size:19px;line-height:1.45;margin:9px 0}.rail-welcome p{position:relative;z-index:1;font-size:12px;line-height:1.75;color:rgba(255,255,255,.72)}.rail-cta{position:relative;z-index:1;width:100%;margin-top:16px;background:#fff;color:#075c50;box-shadow:none}.rail-cta:hover{background:#ecfff7}
.rail-shortcuts{padding:10px}.rail-heading{display:flex;align-items:center;justify-content:space-between;padding:6px 8px 9px;color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.4px}.rail-dot{width:6px;height:6px;border-radius:50%;background:var(--gold)}
.rail-link{width:100%;display:grid;grid-template-columns:27px 1fr 13px;align-items:center;gap:7px;text-align:left;padding:10px 8px;border-radius:11px;color:var(--ink);font-size:13px;font-weight:600;transition:background .18s,color .18s,transform .18s}.rail-link b{color:var(--muted);font-size:18px;font-weight:400}.rail-link:hover{background:#eff8f5;color:var(--brand);transform:translateX(2px)}
.rail-note{display:flex;gap:9px;padding:12px 5px;color:var(--muted)}.rail-note>span{width:26px;height:26px;display:grid;place-items:center;border-radius:9px;background:#fff2d2;color:#b27b12;font-size:13px}.rail-note strong{font-size:12px;color:var(--ink)}.rail-note p{margin-top:2px;font-size:11px;line-height:1.55}
@media(min-width:1025px){
  :root{--side:296px}.layout{max-width:1580px;align-items:stretch}.sidebar{padding:18px 14px}.main{padding:0 16px}.content{max-width:820px;padding:26px 12px 90px}.rail{width:322px}.topbar{padding:0 max(26px,calc((100vw - 1528px)/2));height:64px}.layout{padding-top:64px}.sidebar{top:64px;height:calc(100vh - 64px)}.rail{top:64px;height:calc(100vh - 64px)}.tabs{margin-bottom:13px}.post-head{padding:17px 18px 9px}.post-title{padding:0 18px;font-size:17px}.post-body{padding:8px 18px 15px;font-size:15px;line-height:1.78}.post-actions{padding:6px}.feed-toolbar{margin:8px 0 12px}.sidebar h3{margin-top:16px}.topbar .brand{font-size:23px}.search-box{width:260px}.search-box:focus{width:320px}}
@media(max-width:1180px){.public-hero{padding:25px}.hero-actions{flex-direction:column;align-items:flex-end;gap:10px}}
@media(max-width:768px){.public-hero{padding:22px 20px;display:block;border-radius:18px}.public-hero h1{font-size:24px}.public-hero p{font-size:12.5px}.hero-actions{flex-direction:row;align-items:center;margin-top:17px}.rail{display:none}}
html[data-theme="dark"] .rail-card{background:#182029;border-color:#26313d}html[data-theme="dark"] .rail-shortcuts .rail-link:hover{background:#17353a}html[data-theme="dark"] .rail-note strong{color:var(--ink)}

/* ═══════════════ CLEAN FEED OVERRIDES ═══════════════
   One navigation hierarchy only: segmented tabs → filters → posts. */
.advice-action{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:-2px 0 12px;
  padding:11px 14px;background:var(--card);border:1px solid var(--line);border-radius:13px;
  color:var(--muted);font-size:13px;box-shadow:var(--shadow-sm)}
.feed-toolbar{justify-content:flex-end;margin-top:0}
.tabs{position:relative;top:auto}
@media(min-width:1025px){
  .public-hero{padding:25px 28px;margin-bottom:14px}
  .public-hero h1{font-size:26px}
}
@media(max-width:768px){
  .advice-action{align-items:flex-start;flex-direction:column}
  .advice-action .btn{width:100%}
  .tabs{position:sticky;top:calc(var(--head) + 6px)}
}

/* ═══════════════ EXECUTIVE BUSINESS SYSTEM · 2026 ═══════════════ */
:root{
  --bg:#f3f5f3;--card:#fff;--ink:#12201d;--muted:#70807b;--line:#e2e8e5;
  --brand:#0a5b4d;--brand-2:#118c76;--gold:#b89243;--head:72px;--side:286px;
  --radius:14px;--shadow-sm:0 1px 2px rgba(14,38,32,.04);--shadow-md:0 12px 30px rgba(16,52,44,.08);
}
body{background:#f3f5f3;color:var(--ink);letter-spacing:-.08px}
body:before{content:'';position:fixed;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(9,86,72,.018) 1px,transparent 1px),linear-gradient(rgba(9,86,72,.018) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,#000,transparent 58%)}
.topbar{height:var(--head);background:rgba(255,255,255,.94);border-bottom:1px solid #e1e8e4;box-shadow:none;padding:0 28px}
.brand{gap:11px;background:none;-webkit-text-fill-color:initial;color:var(--ink)}
.brand .logo{width:40px;height:40px;border-radius:10px;background:#092f29;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);font-size:20px}
.brand-copy{display:flex;flex-direction:column;line-height:1.05}.brand-copy b{font-size:19px;color:#0b392f}.brand-copy small{margin-top:5px;font-family:system-ui,sans-serif;font-size:8px;letter-spacing:1.8px;color:#8a9894;font-weight:700}
.top-context{margin-left:28px;padding-left:28px;border-left:1px solid var(--line);font-family:system-ui,sans-serif;font-size:11px;color:#72817d;display:flex;align-items:center;gap:8px}.status-dot{width:6px;height:6px;border-radius:50%;background:#2aa681;box-shadow:0 0 0 4px rgba(42,166,129,.1)}
.menu-btn{width:38px;height:38px;padding:10px;display:flex;flex-direction:column;justify-content:center;gap:4px}.menu-btn span{display:block;height:1.5px;background:currentColor;border-radius:2px}.menu-btn span:nth-child(2){width:70%}
.search-box{height:38px;border-radius:9px;background:#f4f6f5;border-color:#e3e8e6;font-size:12px;width:220px}.search-box:focus{width:270px;box-shadow:0 0 0 3px rgba(17,140,118,.09)}
.lang-select{height:38px;border-radius:9px;font-size:11px}.theme-btn,.bell{width:38px;height:38px;border:1px solid var(--line);border-radius:9px;font-size:16px;padding:0}
.btn{border-radius:9px;background:#0a5b4d;box-shadow:none;font-size:12.5px;font-weight:700}.btn:hover{background:#07483d;box-shadow:0 4px 12px rgba(10,91,77,.18)}.btn.ghost{background:#fff;border:1px solid var(--line)}
.layout{padding-top:var(--head);max-width:1600px!important}
.sidebar{top:var(--head)!important;height:calc(100vh - var(--head))!important;width:var(--side);padding:24px 16px 20px;background:#fbfcfb;border-color:#e1e7e4}
.sidebar-label{font-family:system-ui,sans-serif;font-size:9px;letter-spacing:1.7px;font-weight:800;color:#9aa6a2;margin:0 10px 10px}
.primary-nav{display:flex;flex-direction:column;gap:3px}.workspace-link{width:100%;display:grid;grid-template-columns:34px 1fr 14px;align-items:center;gap:9px;text-align:left;padding:9px 10px;border-radius:10px;color:#53625e;transition:.18s ease}.workspace-link:hover{background:#f0f5f2;color:#153d34}.workspace-link.active{background:#e7f1ed;color:#075b4b}.workspace-icon{width:31px;height:31px;border:1px solid #dfe7e3;border-radius:8px;display:grid;place-items:center;background:#fff;font-family:Georgia,serif;font-size:15px}.workspace-link.active .workspace-icon{background:#0a5b4d;color:#fff;border-color:#0a5b4d}.workspace-link b{display:block;font-size:13px}.workspace-link small{display:block;font-family:system-ui,sans-serif;font-size:9px;color:#9aa5a1;margin-top:2px;letter-spacing:.1px}.workspace-link i{font-style:normal;color:#a7b2ae}.sidebar-rule{height:1px;background:var(--line);margin:18px 8px}
.filter-heading{display:flex;align-items:end;justify-content:space-between;padding:0 2px}.filter-heading .sidebar-label{margin-bottom:3px}.sidebar h3{margin:0 8px 9px;font-size:13px;text-transform:none;letter-spacing:0;color:#31423e}.filter-heading button{opacity:0;pointer-events:none;font-size:9px;color:#a14a44;padding:4px 6px}.filter-heading button.visible{opacity:1;pointer-events:auto}
.filter-list{max-height:258px;overflow-y:auto;padding-right:2px}.cat-item{margin-bottom:1px}.cat-big{min-height:36px;padding:7px 9px;border-radius:8px;color:#5b6b66;font-size:12px;font-weight:600}.cat-big .code{width:27px;padding:2px 0;text-align:center;background:#eaf0ed;color:#55706a;border-radius:5px;font-family:system-ui,sans-serif;font-size:8px;letter-spacing:.5px}.cat-big.active{background:#e8f1ee;color:#075b4b}.cat-big.active .code{background:#0a5b4d;color:#fff}.cat-subs{padding-left:12px}.cat-sub{font-size:11.5px;padding:7px 9px}.cat-sub .chk{font-size:11px}.cat-sub .code{background:none!important}
.town-filter{border-top:1px solid var(--line);margin:15px 8px 0;padding-top:15px}.town-filter label{display:block;font-size:10px;font-weight:800;color:#788681;margin-bottom:7px}.town-filter select{width:100%;height:38px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#42534f;padding:0 10px;font-family:inherit;font-size:11.5px}
.sidebar-footer{margin:22px 8px 0;padding-top:15px;border-top:1px solid var(--line);display:flex;flex-direction:column}.sidebar-footer span{font-family:system-ui,sans-serif;font-size:9px;letter-spacing:2px;font-weight:800;color:#667670}.sidebar-footer small{font-size:8px;color:#a2ada9;margin-top:4px}
.main{min-width:0}.content{max-width:790px;padding:30px 20px 100px}.rail{width:314px;padding-top:30px}
.view-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:2px 0 22px;padding:0 2px}.view-header .eyebrow{color:#8e7744;font-size:8px;font-family:system-ui,sans-serif;letter-spacing:1.8px}.view-header h1{font-size:27px;line-height:1.25;margin:7px 0 5px;letter-spacing:-.5px}.view-header p{color:var(--muted);font-size:12px;line-height:1.7}.view-header .eyebrow:before{width:18px;height:1px;border-radius:0;background:#b89243;box-shadow:none}
.public-hero{border-radius:16px;background:radial-gradient(circle at 90% 0,rgba(190,153,75,.22),transparent 30%),linear-gradient(125deg,#061f1b,#0a5145);box-shadow:0 18px 40px rgba(7,53,45,.18);padding:30px}.public-hero h1{font-size:27px}.public-hero h1 em{color:#d9c086}
.tabs{padding:4px;border-radius:11px;background:#e8ecea;border:0;box-shadow:none;margin-bottom:14px}.tab{min-height:41px;border-radius:8px;font-size:12.5px}.tab.active{color:#084f43;background:#fff;box-shadow:0 2px 8px rgba(21,48,41,.08)}
.feed-toolbar{margin:0 0 12px}.toolbar-select,.chip{border-radius:8px;font-size:11px}.card{border-radius:12px;border:1px solid #e2e7e5;box-shadow:0 2px 5px rgba(13,43,36,.025);margin-bottom:13px}.content .card:hover{transform:none;box-shadow:0 10px 28px rgba(13,43,36,.07)}
.post-head{padding:16px 17px 9px}.avatar{border:0;box-shadow:none;background:#0a5b4d}.post-head .avatar{width:42px;height:42px;border-radius:10px}.post-head .who{font-size:13.5px}.post-head .meta{font-size:10.5px;margin-top:2px}.post-title{font-size:16px;padding:0 17px}.post-body{font-size:13.5px;line-height:1.85;padding:8px 17px 15px}.post-cat{margin-left:17px;border-radius:6px;font-size:10px;background:#edf4f1}.post-actions{padding:4px 8px}.post-actions button{font-size:11px;font-weight:600}.date-divider span{background:#fff;border:1px solid var(--line);color:#65736f;box-shadow:none;border-radius:7px;font-size:9.5px;padding:5px 12px}.date-divider::before{background:#e4e9e7}
.composer-card{border-left:3px solid #0a5b4d}.composer input{font-size:12px}.composer-acts button{font-size:11px}
.rail-card{border-radius:12px;box-shadow:none;background:#fff}.rail-welcome{padding:22px;background:linear-gradient(145deg,#082b25,#0a5749)}.rail-welcome h2{font-size:17px}.rail-link{font-size:11.5px}.rail-link>span:first-child{font-family:Georgia,serif;color:#94783b}
.conversation-tabs{position:relative!important;top:auto!important;overflow-x:auto}.conversation-tabs .tab{white-space:nowrap}.conversation-list{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}.conversation-list>.card{border:0}.conversation-row{display:grid;grid-template-columns:46px 1fr 26px;align-items:center;gap:13px;padding:15px 17px;border-bottom:1px solid #edf0ef;transition:background .18s}.conversation-row:last-child{border-bottom:0}.conversation-row:hover{background:#f7faf8}.conversation-avatar{width:44px;height:44px;border-radius:11px;display:grid;place-items:center;background:#e6f0ec;color:#075c4c;font-weight:800}.conversation-copy>div{display:flex;align-items:center;gap:8px}.conversation-copy h3{font-size:13.5px}.conversation-copy p{font-size:11px;color:var(--muted);margin-top:3px}.unread-pill{min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#0a5b4d;color:#fff;font-size:9px;display:grid;place-items:center}.row-arrow{color:#9eaaa6}
.directory-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.township-types{display:flex;flex-wrap:wrap;gap:7px;margin-top:4px}.township-types button{padding:7px 12px;border-radius:999px;border:1px solid var(--line);font-size:11px;color:var(--muted);background:var(--card)}.township-types button.active{background:#0a5b4d;border-color:#0a5b4d;color:#fff}.directory-actions{display:flex;gap:8px;margin-top:14px}.member-results{display:grid;gap:10px}.member-card{display:flex;align-items:center;gap:13px;margin:0}.member-actions{display:flex;gap:7px;margin-left:auto}.production-chat{height:min(65vh,560px);display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#f6f9f7;margin-top:14px}.production-chat .chat-msgs{padding:18px}.production-chat .msg{display:flex;flex-direction:column;gap:3px}.production-chat .msg small,.group-message small{font-family:system-ui,sans-serif;font-size:8px;opacity:.65;align-self:flex-end}.chat-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.chat-head h2{margin-top:5px}.group-message{max-width:78%;align-self:flex-start;padding:9px 12px;border-radius:4px 14px 14px 14px;background:#fff;border:1px solid var(--line);font-size:13px}.group-message.mine{align-self:flex-end;border-radius:14px 4px 14px 14px;background:#dff1e9;border-color:#c7e6d9}.group-message-meta{font-size:9px;font-weight:800;color:var(--brand);margin-bottom:3px}
.chat-message{cursor:pointer;min-width:120px}.message-body{white-space:pre-wrap;overflow-wrap:anywhere}.chat-date-divider{align-self:stretch;display:flex;align-items:center;gap:10px;color:var(--muted);font:9px system-ui,sans-serif;margin:6px 0}.chat-date-divider:before,.chat-date-divider:after{content:"";height:1px;background:var(--line);flex:1}.chat-date-divider span{padding:3px 8px;background:#f6f9f7}.message-reply-quote{display:flex;flex-direction:column;text-align:left;width:100%;border:0;border-left:3px solid #2f8e77;background:rgba(4,80,66,.07);padding:6px 8px;margin-bottom:6px;color:inherit}.message-reply-quote b{font-size:9px;color:var(--brand)}.message-reply-quote span{font-size:10px;opacity:.72;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}.message-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:3px;min-height:18px}.message-heart{border:0;background:transparent;color:#87938f;font:14px system-ui,sans-serif;padding:0;line-height:1}.message-heart b{font-size:9px}.message-heart.on{color:#c7334d}.chat-reply-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;border-top:1px solid var(--line);background:#eef5f2}.chat-reply-bar>div{display:flex;flex-direction:column;min-width:0}.chat-reply-bar b{font-size:9px;color:var(--brand)}.chat-reply-bar span{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-reply-bar button{border:0;background:transparent;font-size:20px;color:var(--muted)}.chat-upload-status{padding:6px 12px;border-top:1px solid var(--line);font:10px system-ui,sans-serif;color:var(--brand);background:#fff}.chat-tool{width:36px;height:36px;flex:0 0 36px;border:1px solid var(--line);border-radius:50%;background:var(--card);font-size:20px;color:var(--brand)}.chat-attachment{display:block;margin-top:5px}.chat-attachment.image img,.chat-attachment.video{display:block;width:min(280px,100%);max-height:240px;object-fit:cover;border-radius:8px}.chat-attachment.file{display:flex;align-items:center;gap:9px;padding:8px;border:1px solid rgba(0,0,0,.1);border-radius:7px;color:inherit;text-decoration:none;background:rgba(255,255,255,.5)}.chat-attachment.file>span{font-size:19px;color:var(--brand)}.chat-attachment.file div{display:flex;flex-direction:column;min-width:0}.chat-attachment.file b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.chat-attachment.file small{align-self:flex-start!important}.hidden{display:none!important}
.member-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));text-align:center;margin-bottom:14px;padding:10px 8px}.member-summary>div{padding:2px 6px;border-right:1px solid var(--line)}.member-summary>div:last-child{border-right:0}.member-summary-label{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.member-summary-count{font-size:19px;font-weight:800;color:var(--brand);line-height:1.25;margin-top:2px}.support-chat-large{height:min(65vh,560px);display:flex;flex-direction:column}.support-chat-large .chat-msgs{flex:1;max-height:none;min-height:300px}
.service-status{font-family:system-ui,sans-serif;font-size:10px;color:#52736b;padding:8px 11px;border:1px solid #dce7e3;background:#fff;border-radius:8px;white-space:nowrap}.service-status i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#23a67f;margin-right:6px}.advisory-intro{display:flex;gap:17px;align-items:center;padding:21px 23px;margin-bottom:16px;border-radius:13px;background:linear-gradient(120deg,#082d27,#0b5b4d);color:#fff}.advisory-mark{width:48px;height:48px;display:grid;place-items:center;border:1px solid rgba(217,192,134,.4);border-radius:11px;color:#d9c086;font-size:20px}.advisory-intro span{font-family:system-ui,sans-serif;font-size:8px;letter-spacing:1.5px;color:#d6c28e}.advisory-intro h2{font-size:17px;margin:5px 0 3px}.advisory-intro p{font-size:11px;color:rgba(255,255,255,.68)}
.event-filter-grid{display:grid;grid-template-columns:.8fr 1.25fr 1.25fr;gap:12px}.event-access-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;margin-bottom:14px;border:1px solid #d9e8e2;border-radius:12px;background:#eef7f3}.event-access-banner.locked{background:#faf6ec;border-color:#eadfbd}.event-access-banner div{display:flex;flex-direction:column}.event-access-banner b{font-size:12px}.event-access-banner span{font-size:10px;color:var(--muted);margin-top:3px}.event-lock-note{margin:12px 0;padding:10px 12px;border-radius:9px;background:#faf3df;color:#765c1f;font-size:12px}.wallet-loading{padding:35px;text-align:center;color:var(--muted)}.wallet-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:-24px -24px 18px;padding:25px 28px;color:#fff;background:radial-gradient(circle at 90% 0,rgba(210,178,102,.32),transparent 35%),linear-gradient(125deg,#071f1b,#0a5b4d);border-radius:14px 14px 0 0}.wallet-hero h2{margin:6px 0 4px}.wallet-hero p{font-size:11px;color:rgba(255,255,255,.72)}.coin-balance{min-width:130px;padding:12px 16px;border:1px solid rgba(255,255,255,.18);border-radius:11px;background:rgba(255,255,255,.08);text-align:right}.coin-balance span{display:block;font:8px system-ui;letter-spacing:1.4px;opacity:.65}.coin-balance strong{font-size:27px;color:#e3c77f}.coin-balance small{margin-left:4px}.payment-pending{padding:10px 12px;margin-bottom:12px;border-radius:8px;background:#fff6d9;color:#70591f;font-size:11px}.wallet-tabs{display:flex;gap:4px;padding:4px;margin-bottom:15px;border-radius:9px;background:var(--bg)}.wallet-tabs button{flex:1;padding:9px;border-radius:7px;font-size:11px;font-weight:700;color:var(--muted)}.wallet-tabs button.active{background:var(--card);color:var(--brand);box-shadow:var(--shadow-sm)}.plan-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.plan-card{position:relative;text-align:left;padding:15px 13px;border:1px solid var(--line);border-radius:11px;background:var(--card);color:var(--ink)}.plan-card.featured{border-color:#b99a52;background:linear-gradient(145deg,#fffdf7,#f8f1df)}.plan-card.current{box-shadow:inset 0 0 0 2px var(--brand)}.plan-card>span{font-size:18px}.plan-card h3{margin:7px 0 5px;font-size:14px}.plan-card strong{display:block;font-size:14px;color:var(--brand)}.plan-card small{font-size:8px;color:var(--muted)}.plan-card p{min-height:42px;margin-top:8px;font-size:9px;line-height:1.5;color:var(--muted)}.plan-card i{font-size:8px;color:var(--brand);font-style:normal}.wallet-checkout,.coin-shop{margin-top:15px;padding:16px;border:1px solid var(--line);border-radius:11px;background:var(--bg)}.wallet-checkout{display:grid;grid-template-columns:1fr 1fr;gap:10px}.payment-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;grid-column:1/-1}.bank-list{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.bank-list div{display:flex;flex-direction:column;padding:8px 10px;border:1px dashed var(--line);border-radius:7px;background:var(--card)}.bank-list b{font-size:10px}.bank-list span{font-size:9px;color:var(--muted)}.wallet-note{grid-column:1/-1;font-size:10px;color:var(--muted)}.checkout-total{grid-column:1/-1;text-align:right;font-size:15px;font-weight:800;color:var(--brand)}.wallet-checkout>.btn{grid-column:1/-1}.coin-shop-copy{display:flex;gap:14px;align-items:center;margin-bottom:13px}.coin-shop-copy>span{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:#ddbd6e;color:#fff;font-size:24px}.coin-shop-copy h3{font-size:15px}.coin-shop-copy p{font-size:10px;color:var(--muted)}.coin-presets{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}.coin-presets button{padding:7px 11px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--brand);font-size:10px;font-weight:700}
html[data-theme="dark"]{--bg:#0d1513;--card:#141f1c;--ink:#e7efec;--muted:#8c9d98;--line:#26342f}html[data-theme="dark"] body{background:#0d1513}html[data-theme="dark"] .sidebar{background:#111b18}html[data-theme="dark"] .workspace-link.active,html[data-theme="dark"] .cat-big.active{background:#183029}html[data-theme="dark"] .workspace-icon,html[data-theme="dark"] .town-filter select,html[data-theme="dark"] .conversation-list,html[data-theme="dark"] .date-divider span{background:#141f1c;color:var(--ink)}html[data-theme="dark"] .topbar{background:rgba(17,27,24,.95)}
@media(min-width:769px){.menu-btn{display:none}}
@media(max-width:1180px){.top-context{display:none}.rail{display:none}}
@media(max-width:768px){
  :root{--head:62px}.topbar{padding:0 10px;gap:6px}.menu-btn{display:flex}.brand .logo{width:34px;height:34px}.brand-copy small{display:none}.brand-copy b{font-size:16px}.top-actions{gap:4px}.top-actions .search-box{display:none}.lang-select{width:66px;padding:4px;font-size:9px}.theme-btn,.bell{width:33px;height:33px}.sidebar{top:0!important;height:100vh!important;width:86%;padding-top:22px;z-index:60}.content{padding:18px 11px 86px}.view-header{margin-bottom:16px;align-items:flex-start}.view-header h1{font-size:22px}.view-header p{font-size:10.5px}.view-header .btn{white-space:nowrap}.feed-view-header{display:none}.public-hero{padding:23px 20px}.public-hero h1{font-size:22px}.tabs{top:calc(var(--head) + 5px);z-index:20}.tab{font-size:11px;padding:8px 3px}.card{border-radius:11px}.post-body{font-size:13px}.bottomnav{height:66px;padding:4px 6px env(safe-area-inset-bottom);justify-content:space-around;overflow:hidden}.bottomnav a{flex:1 1 25%;min-width:0;font-size:9px}.bottomnav .ic{font-family:Georgia,serif;font-size:17px}.conversation-row{padding:13px 12px;grid-template-columns:42px 1fr 18px}.conversation-avatar{width:40px;height:40px}.advisory-intro{padding:18px 16px}.advisory-mark{display:none}.service-status{display:none}.advisory-header{display:block}.date-filter{width:100%;margin-left:0}.date-filter select{flex:1;min-width:0}.directory-filter-grid,.event-filter-grid{grid-template-columns:1fr}.member-card{align-items:flex-start;flex-wrap:wrap}.member-card>div:nth-child(2){min-width:calc(100% - 62px)}.member-actions{width:100%;margin-left:58px}.production-chat{height:70vh}.wallet-hero{margin:-20px -20px 15px;padding:20px;align-items:flex-start}.coin-balance{min-width:95px}.plan-grid{grid-template-columns:repeat(2,1fr)}.wallet-checkout,.payment-fields,.bank-list{grid-template-columns:1fr}.payment-fields,.bank-list,.checkout-total,.wallet-checkout>.btn{grid-column:1}.event-access-banner{align-items:flex-start;flex-direction:column}}

/* 2026-07-15 compact feed, premium events and selection states */
.feed-view-header{margin-bottom:10px}.feed-view-header h1{font-size:23px;margin:4px 0 2px}.feed-view-header p{line-height:1.35}.feed-toolbar{justify-content:flex-start!important;flex-wrap:nowrap!important;gap:6px;overflow:visible;margin-bottom:8px!important;position:relative;z-index:12}.feed-toolbar>.chip,.feed-toolbar>.toolbar-select{flex:0 0 auto;white-space:nowrap}.date-filter{display:flex;flex:0 0 auto;gap:5px}.expert-picker{position:relative;flex:0 0 auto}.expert-menu{position:absolute;z-index:80;top:calc(100% + 7px);left:0;width:min(380px,82vw);max-height:390px;overflow:auto;padding:10px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 45px rgba(4,38,31,.2)}.expert-menu-head{display:flex;justify-content:space-between;align-items:center;padding:3px 4px 9px;border-bottom:1px solid var(--line);font-size:11px}.expert-menu-head button{color:var(--brand);font-size:10px}.expert-menu-list label{display:grid;grid-template-columns:18px 34px 1fr;align-items:center;gap:8px;padding:8px 4px;border-bottom:1px solid var(--line);cursor:pointer}.expert-menu-list label:last-child{border:0}.expert-menu-list label>span:last-child{display:flex;flex-direction:column;min-width:0}.expert-menu-list small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mini-avatar{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;background:var(--brand);color:#fff;font-size:10px;overflow:hidden}.mini-avatar img{width:100%;height:100%;object-fit:cover}.conversation-member-count{padding:0;border:0;background:transparent;color:var(--brand);font:inherit;font-weight:800;text-decoration:underline;text-underline-offset:2px}.group-member-list{display:grid;gap:7px;margin-top:14px}.group-member-list>button{display:flex;align-items:center;gap:11px;width:100%;padding:10px;border:1px solid var(--line);border-radius:10px;text-align:left;background:var(--card);color:var(--ink)}.group-member-list>button>span:last-child{display:flex;flex-direction:column}.group-member-list small{font-size:10px;color:var(--muted)}
.event-grid{display:grid;gap:16px}.event-card{display:grid;grid-template-columns:190px minmax(0,1fr);overflow:hidden;border:1px solid #d8e2de!important;box-shadow:0 8px 25px rgba(10,55,46,.07)!important}.event-card>img,.event-cover{width:100%;height:100%;min-height:235px;object-fit:cover}.event-cover{display:grid;place-content:center;text-align:center;gap:7px;background:linear-gradient(145deg,#082d27,#0a6655);color:#dcc47f}.event-copy{padding:22px 24px;display:flex;flex-direction:column;gap:11px}.event-copy h3{font-size:18px;line-height:1.55}.event-copy>p{font-size:12px;line-height:1.9;color:var(--muted)}.event-card-top{display:flex;justify-content:space-between;gap:12px;font-size:9px;color:var(--muted)}.event-card-facts{display:grid;gap:8px;padding:11px 0;border-top:1px solid var(--line);font-size:11px;line-height:1.65}.event-copy>.btn{align-self:flex-start;margin-top:auto}.event-detail{padding:4px}.event-detail h2{margin:9px 0 15px;font-size:24px;line-height:1.55}.event-detail-desc{padding:16px 18px;margin-bottom:18px;border-left:3px solid #b99a52;background:#faf8f1;border-radius:0 10px 10px 0;line-height:2;color:var(--muted)}.event-detail-cover{width:100%;max-height:300px;object-fit:cover;border-radius:12px;margin-bottom:20px}.event-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0 20px}.event-facts>div{display:flex;flex-direction:column;gap:7px;padding:15px 16px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}.event-facts b{font-size:10px;color:#8a7139}.event-facts span{font-size:12px;line-height:1.75}.plan-card.selected{color:#fff!important;border-color:#0a5b4d!important;background:linear-gradient(145deg,#073d34,#0a6b59)!important;box-shadow:0 9px 25px rgba(7,86,70,.25),inset 0 0 0 2px #d8bf78!important}.plan-card.selected strong,.plan-card.selected small,.plan-card.selected p,.plan-card.selected i{color:#fff!important}.settings-town-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.settings-town-grid>div>label{display:block;margin-bottom:5px;font-size:10px;font-weight:700;color:var(--muted)}.settings-town-grid .tship-wrap{margin-bottom:7px}.settings-town-grid input{min-width:0}
@media(max-width:768px){.feed-toolbar{overflow-x:auto!important;overflow-y:hidden;padding-bottom:5px}.feed-toolbar::-webkit-scrollbar{height:3px}.expert-menu{position:fixed;top:115px;left:12px;right:12px;width:auto}.event-card{grid-template-columns:1fr}.event-card>img,.event-cover{height:155px;min-height:155px}.event-copy{padding:18px}.event-facts{grid-template-columns:1fr}.settings-town-grid{grid-template-columns:1fr;overflow:visible}.settings-town-grid>div:last-child{grid-column:auto}}

/* Spacious account township editor (final cascade override). */
.settings-town-grid{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:14px}.settings-town-grid>div{padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}.settings-town-grid>div:last-child{grid-column:1/-1}.settings-town-grid>div>label{display:block;margin-bottom:8px;font-size:12px;font-weight:800;color:var(--brand)}.settings-town-grid .tship-wrap{margin-bottom:0}.settings-town-grid input{width:100%;min-width:0;height:46px;background:var(--card);font-size:13px}.settings-town-grid .tship-drop{max-height:300px}.support-message-time{display:block;margin-top:4px;font:9px system-ui,sans-serif;opacity:.7;text-align:right}
@media(max-width:768px){.settings-town-grid{grid-template-columns:1fr;overflow:visible}.settings-town-grid>div:last-child{grid-column:auto}}

/* 2026-07-16 — one shared business/township filter, reused by every view. */
.workspace-link>span:nth-child(2){min-width:0}
.workspace-link small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:174px}
.rail-link.active{background:#e7f1ed;color:var(--brand)}
.rail-link.active b{color:var(--brand)}

/* 2026-07-16 — user-level filter and verified agency project portfolios. */
.level-filter{margin-top:15px;padding-top:15px;border-top:1px solid var(--line)}
.level-filter h4{margin:0 0 8px;color:var(--muted);font-size:10px;letter-spacing:.8px;text-transform:uppercase}
.level-filter-row{display:grid;grid-template-columns:18px 1fr auto;align-items:center;gap:8px;width:100%;padding:8px 10px;border-radius:8px;color:var(--muted);font-size:11px;text-align:left}
.level-filter-row:hover,.level-filter-row.active{background:#e8f2ee;color:var(--brand)}
.level-filter-row small{font-size:8px;font-weight:800;letter-spacing:.7px}.level-check{font-family:system-ui,sans-serif}
.view-actions,.profile-portfolio-head{display:flex;align-items:center;justify-content:space-between;gap:9px}.profile-portfolio-head .section-title{margin-bottom:10px}
.account-level{display:inline-flex;align-items:center;margin-left:6px;padding:2px 5px;border:1px solid #d9e1de;border-radius:4px;color:#6b7874;font:700 7px/1.2 system-ui,sans-serif;letter-spacing:.45px;vertical-align:middle}
.account-level.level-plus{color:#486e9a;border-color:#bfcfe0;background:#f3f7fb}.account-level.level-pro{color:#876a24;border-color:#ddcd9e;background:#fffaf0}.account-level.level-promax{color:#fff;border-color:#0a5b4d;background:#0a5b4d}
.project-view-header{align-items:flex-end}.project-directory-note{display:flex;gap:12px;align-items:flex-start;margin-bottom:16px;padding:13px 16px;border:1px solid #dbe7e2;border-radius:11px;background:linear-gradient(110deg,#f2f8f5,#fff)}
.project-directory-note>span{width:27px;height:27px;display:grid;place-items:center;flex:0 0 27px;border-radius:50%;background:var(--brand);color:#fff}.project-directory-note b{font-size:12px}.project-directory-note p{margin-top:3px;color:var(--muted);font-size:10px;line-height:1.65}
.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-bottom:20px}.project-grid>.empty{grid-column:1/-1}
.project-card{overflow:hidden;margin:0!important;transition:transform .2s,box-shadow .2s}.project-card:hover{transform:translateY(-2px);box-shadow:0 14px 35px rgba(7,68,56,.11)}
.project-cover{position:relative;height:178px;background:linear-gradient(145deg,#082f28,#0b6655);overflow:hidden}.project-cover>img{width:100%;height:100%;object-fit:cover}.project-cover:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(2,27,23,.6));pointer-events:none}
.project-cover-empty{height:100%;display:grid;place-content:center;gap:8px;text-align:center;color:#d8c27e}.project-cover-empty span{font:38px Georgia,serif}.project-cover-empty small{font:700 8px system-ui,sans-serif;letter-spacing:1.6px}
.project-cover-badges{position:absolute;z-index:2;left:12px;right:12px;top:12px;display:flex;justify-content:space-between;gap:8px}.project-status,.project-plan{padding:5px 8px;border-radius:5px;background:rgba(8,37,32,.82);color:#fff;font:700 8px system-ui,sans-serif;letter-spacing:.35px;backdrop-filter:blur(7px)}.project-status.completed{background:#08745f}.project-status.in_progress{background:#9a7223}.project-status.paused{background:#80514c}
.project-card-copy{padding:16px 17px 17px}.project-trust{display:flex;align-items:center;justify-content:space-between;color:#367665;font-size:9px}.project-trust b{font-size:10px;color:var(--brand)}.project-card h2{margin:7px 0 3px;font-size:17px;line-height:1.55}.project-agency{font-size:10px;font-weight:700;color:#8a7139}.project-meta{display:grid;gap:5px;margin:12px 0 8px;color:var(--muted);font-size:9px}.project-progress{height:4px;border-radius:4px;background:#e6ece9;overflow:hidden}.project-progress i{display:block;height:100%;background:linear-gradient(90deg,#0a5b4d,#d2b35e)}.project-summary{min-height:42px;margin:10px 0;color:var(--muted);font-size:10.5px;line-height:1.8}
.project-detail{padding:2px}.project-detail-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.project-detail-head h2{margin:6px 0 4px;font-size:24px;line-height:1.5}.project-detail-head p{color:#8a7139;font-weight:700}.project-score{text-align:right;min-width:90px}.project-score strong{display:block;color:var(--brand);font-size:28px}.project-score span{font-size:9px;color:var(--muted)}
.project-trust-banner{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:11px;margin:18px 0;padding:13px 15px;border:1px solid #eadfbd;border-radius:10px;background:#fcf8ed}.project-trust-banner>span{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#9b7a2b;color:#fff}.project-trust-banner b{font-size:11px}.project-trust-banner p{margin-top:3px;color:var(--muted);font-size:9px}.project-trust-banner em{font:800 8px system-ui;color:#806421}.project-trust-banner.verified{background:#edf7f3;border-color:#c9e4da}.project-trust-banner.verified>span{background:#08745f}
.project-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:20px}.project-facts>div{display:flex;flex-direction:column;gap:5px;padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}.project-facts small{font-size:8px;color:var(--muted)}.project-facts b{font-size:10px;line-height:1.55}.project-detail section{margin:15px 0;padding-top:15px;border-top:1px solid var(--line)}.project-detail section h3{margin-bottom:7px;font-size:13px}.project-detail section p{white-space:pre-wrap;color:var(--muted);font-size:11px;line-height:1.9}.project-achievement>div{margin-top:10px;padding:12px;border-left:3px solid #b99a52;background:#faf7ee}.project-evidence{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.project-evidence img,.project-evidence video{width:100%;height:130px;object-fit:cover;border-radius:8px;background:#111}.project-file{display:flex;align-items:center;gap:8px;min-height:65px;padding:10px;border:1px solid var(--line);border-radius:8px;color:var(--brand);text-decoration:none}.project-detail-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.project-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.project-form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.project-consent{display:flex;align-items:center;gap:8px;margin:-1px 0 13px;color:var(--muted);font-size:10px}.project-consent input{width:auto}.project-form-note{padding:10px 12px;margin:10px 0;border-radius:8px;background:#faf5e8;color:#76612c;font-size:10px}.project-evidence-edit{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.project-evidence-edit-item{position:relative;height:78px;border:1px solid var(--line);border-radius:7px;overflow:hidden;background:var(--bg)}.project-evidence-edit-item img,.project-evidence-edit-item video{width:100%;height:100%;object-fit:cover}.project-evidence-edit-item>div{height:100%;display:grid;place-content:center;text-align:center;color:var(--brand)}.project-evidence-edit-item small{display:block;max-width:80px;overflow:hidden;text-overflow:ellipsis}.project-evidence-edit-item .media-remove{position:absolute;right:3px;top:3px}.profile-project-grid{margin-top:0}
html[data-theme="dark"] .level-filter-row.active,html[data-theme="dark"] .project-directory-note{background:#172d27}html[data-theme="dark"] .project-achievement>div,html[data-theme="dark"] .project-form-note,html[data-theme="dark"] .project-trust-banner{background:#25261d}
@media(max-width:768px){.view-actions{flex-wrap:wrap}.project-grid{grid-template-columns:1fr}.project-cover{height:165px}.project-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.project-form-grid,.project-form-grid.four{grid-template-columns:1fr}.project-evidence{grid-template-columns:repeat(2,1fr)}.project-evidence-edit{grid-template-columns:repeat(3,1fr)}.project-detail-head{flex-direction:column}.project-score{text-align:left}.project-trust-banner{grid-template-columns:34px 1fr}.project-trust-banner em{grid-column:2}.bottomnav a{flex-basis:20%}}

/* 2026-07-16 — parent category selection, conversation modes, business reviews. */
.cat-parent-toggle{display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding:0;border:0;background:transparent;color:inherit;text-align:left;font:inherit}.cat-parent-toggle:hover .cat-parent-name{color:var(--brand)}.cat-parent-check{flex:0 0 18px;width:18px;color:var(--brand);font:12px system-ui,sans-serif}.cat-parent-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cat-big .code{flex:0 0 23px}.cat-expand{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;margin-left:auto;border:0;border-radius:6px;background:transparent;color:var(--muted)}.cat-expand:hover{background:rgba(10,91,77,.08);color:var(--brand)}.cat-big .chev{margin:0}.cat-big.open .cat-expand .chev{transform:rotate(90deg)}.cat-sub{width:100%;border:0;background:transparent;text-align:left;font-family:inherit;cursor:pointer}
.active-global-filter{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-2px 0 14px;padding:10px 12px;border:1px solid #cfe3db;border-radius:10px;background:#edf7f3;color:var(--brand)}.active-global-filter>div{display:flex;flex-direction:column;gap:2px;min-width:0}.active-global-filter span{font:800 7px system-ui,sans-serif;letter-spacing:1.1px}.active-global-filter b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.active-global-filter button{flex:none;padding:5px 8px;border:1px solid #bcd7cc;border-radius:7px;background:#fff;color:var(--brand);font-size:9px;font-weight:700}
.conversation-avatar img{width:100%;height:100%;object-fit:cover}.conversation-copy h3{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.conversation-copy .review-score{margin-left:1px}
.review-score{display:inline-flex;align-items:center;gap:3px;margin-left:7px;padding:3px 6px;border:1px solid #e0d4ac;border-radius:6px;background:#fffaf0;color:#7f6423;font:800 9px/1 system-ui,sans-serif;vertical-align:middle}.review-score span{color:#c39a39}.review-score small{font-size:7px;color:#8e8060}.review-score:hover{border-color:#a88635;background:#f9f0d8}
.review-summary-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.review-summary-head h2{margin-top:6px}.review-total{text-align:right}.review-total strong{display:block;font-size:35px;color:var(--brand)}.review-total span{display:block;color:#c49a35;letter-spacing:2px}.review-total small{font-size:9px;color:var(--muted)}
.review-aspect-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:17px 0}.review-aspect-summary>div{display:flex;justify-content:space-between;gap:8px;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:var(--bg);font-size:9px}.review-aspect-summary b{color:#8a6d25}
.review-list{display:grid;gap:10px;margin-top:14px}.review-item{padding:14px 15px;border:1px solid var(--line);border-radius:10px;background:var(--card)}.review-item-head{display:flex;justify-content:space-between;gap:15px}.review-item-head>div{display:flex;flex-direction:column;gap:3px}.review-item-head b{font-size:12px}.review-item-head small{font-size:9px;color:var(--muted)}.review-item-head>strong{color:#8a6d25;font-size:12px}.review-verified{display:inline-block;margin-left:7px;padding:2px 5px;border-radius:4px;background:#e8f5f0;color:#08745f;font-size:7px}.review-service{margin:9px 0 5px;color:#8a6d25;font-size:9px;font-weight:700}.review-item p{white-space:pre-wrap;font-size:11px;line-height:1.8;color:var(--muted)}.review-aspect-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}.review-aspect-tags span{padding:4px 7px;border-radius:5px;background:var(--bg);font-size:8px;color:var(--brand)}.review-delete{margin-top:9px;color:#a34d4d;font-size:8px;text-decoration:underline}
.review-form-intro{margin:7px 0 14px;color:var(--muted);font-size:10px}.review-stars{display:flex;gap:7px}.review-stars button{padding:3px;border:0;background:transparent;color:#d9d5c8;font-size:28px;line-height:1}.review-stars button.active{color:#c59a33}.review-aspect-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:3px 0 13px}.review-aspect-form label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:9px}.review-aspect-form select{height:38px}
html[data-theme="dark"] .review-score{background:#28251d;border-color:#5c5031}html[data-theme="dark"] .review-item{background:var(--card)}
@media(max-width:768px){.review-aspect-summary,.review-aspect-form{grid-template-columns:repeat(2,minmax(0,1fr))}.review-summary-head{align-items:center}.conversation-tabs{display:grid;grid-template-columns:repeat(4,max-content);overflow-x:auto}.conversation-tabs .tab{padding-left:10px;padding-right:10px}}

/* 2026-07-16 — Control Center published layout and managed pages. */
.sidebar{display:flex;flex-direction:column}
.sidebar>.sidebar-label,.sidebar>.primary-nav,.sidebar>.sidebar-rule{order:0;flex:none}
#categoryMenu,#townMenu,#levelMenu{flex:none}
.sidebar-footer{order:100;margin-top:auto}
.content{max-width:var(--content,790px)!important}
.rail{width:var(--rail,314px)!important}
.public-hero h1 em{color:var(--gold);font-style:normal}
.managed-hero{position:relative;overflow:hidden;margin-bottom:20px;padding:42px;border-radius:22px;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;box-shadow:0 18px 45px rgba(4,75,62,.2)}
.managed-hero:after{content:"";position:absolute;width:240px;height:240px;right:-80px;top:-100px;border:1px solid rgba(255,255,255,.18);border-radius:50%;box-shadow:0 0 0 45px rgba(255,255,255,.05)}
.managed-hero>div{position:relative;z-index:1;max-width:620px}.managed-hero .eyebrow{color:#d7c17c}.managed-hero h2{margin:8px 0 10px;font-size:31px;line-height:1.45}.managed-hero p{max-width:570px;color:rgba(255,255,255,.8);font-size:13px;line-height:1.9}.managed-hero .btn{margin-top:20px;background:#d5b968;color:#173b33;box-shadow:none}
.managed-section{margin:24px 0}.managed-section>.section-title{margin-bottom:12px;font-size:18px;font-weight:800;color:var(--ink)}.managed-text h2{margin-bottom:10px}.managed-text p{white-space:pre-wrap;color:var(--muted);line-height:1.9}
.managed-filter-bar{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap;margin-bottom:14px;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--card)}.managed-filter-bar label{display:flex;flex:1 1 150px;flex-direction:column;gap:5px;color:var(--muted);font-size:9px;font-weight:700}.managed-filter-bar input,.managed-filter-bar select{height:38px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink)}
.managed-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.managed-data-grid.list{grid-template-columns:1fr}.managed-data-card{padding:17px;border:1px solid var(--line);border-radius:13px;background:var(--card);box-shadow:0 7px 22px rgba(16,50,43,.05)}.managed-data-card h3{margin:6px 0 10px;font-size:15px;line-height:1.55}.managed-data-card p{display:flex;justify-content:space-between;gap:14px;padding:7px 0;border-top:1px solid var(--line);color:var(--ink);font-size:10px;line-height:1.55}.managed-data-card p small{color:var(--muted)}
.managed-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--card)}.managed-table-wrap table{width:100%;border-collapse:collapse;font-size:10px}.managed-table-wrap th,.managed-table-wrap td{padding:11px 12px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}.managed-table-wrap th{background:var(--bg);color:var(--muted);font-size:8px;text-transform:uppercase;letter-spacing:.5px}
.managed-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.managed-stats>div{display:flex;flex-direction:column;gap:5px;padding:17px;border:1px solid var(--line);border-radius:12px;background:var(--card)}.managed-stats b{color:var(--brand);font-size:25px}.managed-stats span{color:var(--muted);font-size:9px}
html[data-theme="dark"] .managed-filter-bar,html[data-theme="dark"] .managed-data-card,html[data-theme="dark"] .managed-table-wrap,html[data-theme="dark"] .managed-stats>div{background:var(--card)}
@media(max-width:768px){.managed-hero{padding:26px 21px}.managed-hero h2{font-size:23px}.managed-data-grid{grid-template-columns:1fr}.managed-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
