/* Easy Aluminium Community — mobile-first, clean and minimal */
.cm{background:#f8fafc;font-family:'DM Sans',system-ui,sans-serif;color:#111827;margin:0}
.cm-wrap{max-width:560px;margin:0 auto;padding:16px 14px 40px}
.cm-topnav{display:flex;gap:12px;font-size:13px;margin-left:auto}
.cm-topnav a{color:#374151;text-decoration:none;font-weight:500;white-space:nowrap}
.cm-hero{text-align:center;padding:28px 6px}
.cm-hero h1,.cm-card h1{font-size:1.6rem;margin:0 0 6px;line-height:1.2}
.cm-count{color:#1a6fdf;font-weight:600;margin:4px 0 12px}
.cm-desc,.cm-muted{color:#6b7280;line-height:1.55;font-size:15px}
.cm-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:18px}
.cm-btn{display:inline-block;background:#1a6fdf;color:#fff;border:0;border-radius:10px;padding:12px 22px;
  font:600 15px 'DM Sans',sans-serif;text-decoration:none;cursor:pointer;margin-top:10px}
.cm-btn:hover{background:#155cb8}
.cm-btn-ghost{background:#fff;color:#1a6fdf;border:1px solid #1a6fdf}
.cm-btn-ghost:hover{background:#eff6ff}
.cm-btn-ghost:disabled{opacity:.55;cursor:not-allowed}
.cm-alt{font-size:14px;color:#6b7280;margin-top:14px}
.cm-alt a,.cm-card a{color:#1a6fdf}
.cm-card a.cm-btn{color:#fff}
.cm-card a.cm-btn-ghost{color:#1a6fdf}
.cm-form{display:flex;flex-direction:column;gap:14px;margin-top:14px}
.cm-form label{display:flex;flex-direction:column;gap:5px;font-size:14px;font-weight:500;color:#374151}
.cm-form input,.cm-form select,.cm-form textarea{font:16px 'DM Sans',sans-serif;padding:11px 12px;border:1px solid #d1d5db;
  border-radius:10px;background:#fff;width:100%;box-sizing:border-box}
.cm-form input:focus,.cm-form select:focus,.cm-form textarea:focus{outline:2px solid #bfdbfe;border-color:#1a6fdf}
.cm-form .cm-check{flex-direction:row;align-items:center;gap:8px;font-weight:400}
.cm-form .cm-check input{width:auto}
.cm-opt{color:#9ca3af;font-weight:400}
.cm-err{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;border-radius:10px;padding:10px 12px;margin:10px 0;font-size:14px}
.cm-profile{text-align:center}
.cm-avatar{width:76px;height:76px;border-radius:50%;background:#e8f0fc;color:#1a6fdf;font-size:30px;font-weight:600;
  display:flex;align-items:center;justify-content:center;margin:0 auto 10px}
.cm-role{font-weight:600;margin:4px 0 0}.cm-area{color:#1a6fdf;margin:2px 0}.cm-meta{color:#6b7280;font-size:14px}
.cm-bio{text-align:left;line-height:1.55;color:#374151}
.cm-stats{display:flex;justify-content:center;gap:36px;margin:16px 0 4px}
.cm-stats strong{display:block;font-size:1.3rem}.cm-stats span{font-size:13px;color:#6b7280}
.cm-foot{text-align:center;font-size:13px;color:#9ca3af;padding:18px}
@media(max-width:480px){
  .cm-topnav a:first-child{display:none}
  .header .logo-wrap span{font-size:16px!important;white-space:nowrap}
  .header .logo-wrap img{height:32px!important}
}
@media(min-width:768px){.cm-wrap{padding-top:32px}}

/* ---- Phase 2: WhatsApp-style app screens ---- */
.cm-app{background:#f0f2f5}
.cm-bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:12px;background:#1a6fdf;color:#fff;padding:10px 14px;padding-top:calc(10px + env(safe-area-inset-top,0px))}
.cm-bar a{color:#fff;text-decoration:none}
.cm-bar-back{font-size:22px;line-height:1}
.cm-bar-title{font-weight:600;font-size:17px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.cm-bar-sub{font-size:12px;opacity:.85}
.cm-appwrap{max-width:640px;padding:0 0 84px;background:#fff;min-height:calc(100vh - 56px)}
.cm-appwrap .cm-card{border-radius:0;border-left:0;border-right:0}
.cm-chips{display:flex;gap:8px;overflow-x:auto;padding:10px 14px;background:#fff;border-bottom:1px solid #eef0f2;scrollbar-width:none}
.cm-chips::-webkit-scrollbar{display:none}
.cm-chips a{white-space:nowrap;padding:6px 14px;border-radius:999px;background:#f0f2f5;color:#374151;font-size:13.5px;text-decoration:none}
.cm-chips a.on{background:#d9e8ff;color:#1a6fdf;font-weight:600}
.cm-av{flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:17px}
.cm-row{display:flex;gap:12px;padding:12px 14px;border-bottom:1px solid #eef0f2}
.cm-rmain{min-width:0;flex:1}
.cm-rtop{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.cm-pname{font-weight:600;color:#111827;text-decoration:none}
.cm-rtime{font-size:12px;color:#6b7280;white-space:nowrap}
.cm-rsub{font-size:12.5px;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cm-ptitle{display:block;font-weight:600;color:#111827;text-decoration:none;margin:6px 0 2px;line-height:1.35}
.cm-pex{color:#4b5563;font-size:14px;line-height:1.45;margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cm-pfoot{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:14px}
.cm-pfoot a{color:#4b5563;text-decoration:none}
.cm-tag{background:#e8f0fc;color:#1a6fdf;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:500}
.cm-like{margin:0}
.cm-like button,.cm-linkbtn{background:none;border:0;padding:0;font:14px 'DM Sans',sans-serif;color:#4b5563;cursor:pointer}
.cm-like button.on{color:#1a6fdf;font-weight:600}
.cm-empty{text-align:center;color:#6b7280;padding:40px 20px}
.cm-fab{position:fixed;right:16px;bottom:calc(76px + env(safe-area-inset-bottom,0px));z-index:30}
.cm-fab summary{list-style:none;width:56px;height:56px;border-radius:16px;background:#1a6fdf;color:#fff;font-size:30px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,.25);cursor:pointer}
.cm-fab summary::-webkit-details-marker{display:none}
.cm-fabmenu{position:absolute;right:0;bottom:66px;background:#fff;border-radius:12px;box-shadow:0 4px 18px rgba(0,0,0,.2);overflow:hidden;min-width:220px}
.cm-fabmenu a{display:block;padding:13px 16px;color:#111827;text-decoration:none;font-size:15px;border-bottom:1px solid #f0f2f5}
.cm-bnav{position:fixed;left:0;right:0;bottom:0;z-index:25;display:flex;background:#fff;border-top:1px solid #e5e7eb;padding-bottom:env(safe-area-inset-bottom,0px)}
.cm-bnav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 0;font-size:11px;color:#6b7280;text-decoration:none}
.cm-bnav a b{font-size:20px;font-weight:400}
.cm-bnav a.on{color:#1a6fdf;font-weight:600}
/* chat / discussion */
.cm-chat .cm-appwrap{background:#e9eef4;padding-bottom:0}
.cm-thread{display:flex;flex-direction:column;gap:8px;padding:12px 10px 96px}
.cm-bub{background:#fff;border-radius:12px;padding:8px 12px;box-shadow:0 1px 1px rgba(0,0,0,.08)}
.cm-op{padding:12px 14px}
.cm-op h1{font-size:1.15rem;margin:10px 0 6px;line-height:1.3}
.cm-bhead{display:flex;gap:10px;align-items:center}
.cm-msg{display:flex}.cm-msg .cm-bub{max-width:88%}
.cm-msg.me{justify-content:flex-end}.cm-msg.me .cm-bub{background:#d9e8ff}
.cm-bname{font-weight:600;font-size:14px;color:#1a6fdf;text-decoration:none}
.cm-brole{font-size:11.5px;color:#6b7280;margin-bottom:3px}
.cm-btime{font-size:11px;color:#6b7280;margin-left:auto;text-align:right}
.cm-body p{margin:0 0 8px;line-height:1.55;color:#1f2937;overflow-wrap:anywhere}
.cm-body ul{margin:0 0 8px;padding-left:20px;line-height:1.55}
.cm-composer{position:fixed;left:0;right:0;bottom:0;z-index:25;display:flex;gap:8px;align-items:flex-end;background:#f0f2f5;padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px));max-width:640px;margin:0 auto;box-sizing:border-box}
.cm-composer textarea{flex:1;font:16px 'DM Sans',sans-serif;border:0;border-radius:22px;padding:11px 16px;resize:none;max-height:120px;background:#fff;outline:none}
.cm-composer button{width:44px;height:44px;border:0;border-radius:50%;background:#1a6fdf;color:#fff;font-size:18px;cursor:pointer;flex:none}
.cm-locked{justify-content:center;color:#6b7280;padding:14px}

/* ---- Phase 3: search, notifications, quoted replies ---- */
.cm-searchbox{display:flex;gap:8px;padding:10px 14px;background:#fff;border-bottom:1px solid #eef0f2}
.cm-searchbox input{flex:1;font:16px 'DM Sans',sans-serif;border:0;border-radius:22px;padding:10px 16px;background:#f0f2f5;outline:none}
.cm-searchbox button{border:0;background:#1a6fdf;color:#fff;border-radius:50%;width:42px;height:42px;font-size:16px;cursor:pointer}
.cm-sec{padding:12px 14px 4px;font-size:12px;color:#6b7280;font-weight:600;text-transform:uppercase;letter-spacing:.03em}
a.cm-row{color:inherit;text-decoration:none}
.cm-notif.unread{background:#eef5ff}
.cm-bnav a b{position:relative}
.cm-badge{position:absolute;top:-4px;right:-10px;background:#dc2626;color:#fff;font:600 10px 'DM Sans',sans-serif;border-radius:999px;min-width:16px;height:16px;line-height:16px;text-align:center;padding:0 4px;font-style:normal}
.cm-quote{border-left:3px solid #1a6fdf;background:rgba(26,111,223,.08);border-radius:6px;padding:4px 8px;margin:4px 0 6px;font-size:12.5px;display:flex;flex-direction:column}
.cm-quote b{color:#1a6fdf;font-size:12px}.cm-quote span{color:#4b5563}
.cm-composer{flex-wrap:wrap}
.cm-replying{flex:0 0 100%;display:flex;justify-content:space-between;align-items:center;background:#fff;border-left:3px solid #1a6fdf;border-radius:8px;padding:5px 10px;font-size:13px;color:#374151}
.cm-replying[hidden]{display:none}
.cm-replying button{border:0;background:none;color:#6b7280;font-size:15px;cursor:pointer;width:auto;height:auto}
.cm-thread{padding-bottom:120px}

/* ---- Edit/delete controls, cross-promotion card ---- */
.cm-pfoot form{margin:0}
a.cm-linkbtn{color:#4b5563;text-decoration:none;font-size:14px;cursor:pointer;background:none;border:0}
.cm-btime form{display:inline}
.cm-promo{margin-top:14px}
.cm-promo h2{font-size:1.05rem;margin:0 0 2px}
.cm-promogrid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:12px}
.cm-promogrid a{display:flex;align-items:center;gap:8px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:12px;color:#111827;text-decoration:none;font-size:14px;font-weight:500}
.cm-promogrid a span{font-size:18px}
@media(min-width:420px){.cm-promogrid{grid-template-columns:repeat(3,1fr)}}

/* ---- Phase 3b: menu/logout, blog search & recommendations, PWA install bar ---- */
.cm-bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:12px;background:#1a6fdf;color:#fff;padding:10px 14px;padding-top:calc(10px + env(safe-area-inset-top,0px))}
.cm-bar-titles{flex:1;min-width:0}
.cm-bar-menu{position:relative;flex:none}
.cm-bar-menu summary{list-style:none;cursor:pointer;font-size:20px;line-height:1;padding:4px 8px;color:#fff}
.cm-bar-menu summary::-webkit-details-marker{display:none}
.cm-bar-menudrop{position:absolute;right:0;top:36px;background:#fff;border-radius:10px;box-shadow:0 4px 16px rgba(0,0,0,.22);overflow:hidden;min-width:170px;z-index:30}
.cm-bar-menudrop a{display:block;padding:12px 16px;color:#111827;text-decoration:none;font-size:14.5px;border-bottom:1px solid #f0f2f5}
.cm-bar-menudrop a:last-child{border-bottom:0;color:#b91c1c}
.cm-blogrow{align-items:center}
.cm-blogicon{font-size:22px;flex:none}
.cm-picks{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.cm-picks a{display:flex;flex-direction:column;gap:4px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px;text-decoration:none;color:#111827;font-size:14px}
.cm-picks .cm-tag{align-self:flex-start}
.cm-installbar{position:fixed;left:0;right:0;z-index:40;background:#111827;color:#fff;display:flex;align-items:center;gap:10px;
  padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));font-size:13.5px;max-width:640px;margin:0 auto;left:0;right:0}
.cm-installbar span{flex:1;line-height:1.4}
.cm-installbar button{background:#1a6fdf;color:#fff;border:0;border-radius:8px;padding:7px 12px;font-size:13px;cursor:pointer;flex:none}
.cm-installbar #eaDismiss{background:transparent;color:#9ca3af;padding:4px 8px}

/* ---- NALCO/LME price banner (admin-editable, shown on every profile page) -- kept compact on purpose ---- */
.cm-nalco{background:linear-gradient(135deg,#eef5ff,#f8fafc);border-color:#dbeafe;padding:10px 14px;display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px}
.cm-nalco-top{display:flex;flex-direction:column;line-height:1.3;order:1}
.cm-nalco-label{font-size:10.5px;font-weight:600;color:#1a6fdf;text-transform:uppercase;letter-spacing:.02em;white-space:nowrap}
.cm-nalco-date{font-size:10.5px;color:#9ca3af;white-space:nowrap}
.cm-nalco-price{order:2;font-size:1.15rem;font-weight:700;color:#111827;white-space:nowrap}
.cm-nalco-price span{font-size:11px;font-weight:400;color:#6b7280}
.cm-nalco-actions{order:3;display:flex;gap:6px;flex-wrap:wrap;margin-left:auto}
.cm-nalco-actions a{font-size:11.5px;font-weight:600;color:#1a6fdf;text-decoration:none;background:#fff;border:1px solid #dbeafe;border-radius:7px;padding:4px 9px;white-space:nowrap}
@media(max-width:380px){.cm-nalco-actions{margin-left:0;width:100%}}

/* ---- Search: "see all" links under each section's preview ---- */
.cm-more-link{display:block;padding:10px 14px;color:#1a6fdf;text-decoration:none;font-size:13.5px;font-weight:600}

/* ---- Photo attachments (posts, replies, feed thumbnails) ---- */
.cm-img{display:block;max-width:100%;max-height:360px;border-radius:12px;margin-top:10px;object-fit:cover;cursor:zoom-in}
.cm-rthumb{display:block;width:100%;max-height:200px;object-fit:cover;border-radius:10px;margin:8px 0}
.cm-composerrow{display:flex;align-items:flex-end;gap:8px;width:100%}
.cm-composer button.cm-attachbtn{flex:none;width:40px;height:40px;border:0;border-radius:50%;background:#fff;color:#4b5563;font-size:19px;
  display:flex;align-items:center;justify-content:center;cursor:pointer}
.cm-composer button.cm-attachbtn:hover{background:#eef2f7}
.cm-imgpreview{flex:0 0 100%;display:flex;justify-content:space-between;align-items:center;background:#fff;
  border-left:3px solid #1a6fdf;border-radius:8px;padding:6px 10px;font-size:13px;color:#374151;margin-bottom:6px}
.cm-imgpreview[hidden]{display:none}
.cm-imgpreview button{border:0;background:none;color:#6b7280;font-size:15px;cursor:pointer;width:auto;height:auto}

/* ---- Feed composer: sits above the bottom nav (unlike the discussion-page reply box, the
   feed still needs Chats/Search/Create/Alerts/Profile visible, so this isn't flush to bottom(0)) ---- */
.cm-feed .cm-appwrap{padding-bottom:180px}
.cm-feedcomposer{bottom:calc(68px + env(safe-area-inset-bottom,0px));border-top:1px solid #e5e7eb;box-shadow:0 -2px 8px rgba(0,0,0,.05)}

/* ---- Invite card at the bottom of your own profile ---- */
.cm-invite{background:linear-gradient(135deg,#eef5ff,#f5f3ff);border-color:#dbeafe;text-align:center;padding:26px 20px;margin-top:14px}
.cm-invite-icon{font-size:34px;margin-bottom:4px}
.cm-invite h2{font-size:1.15rem;margin:0 0 6px}
.cm-invite .cm-muted{font-size:14px;margin:0 0 16px}
.cm-invite-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.cm-invite-actions .cm-btn{margin-top:0}