/* InfluenceOS — same visual language as the provided reference design */
:root{
  --bg:#f5f5f5;--surface:#fff;--surface2:#fafafa;--text:#111;--muted:#737373;
  --border:#e5e5e5;--soft:#f0f0f0;--success:#16803c;--warning:#b76e00;--danger:#c62828;
  --sidebar:#111;--sidebarText:#d8d8d8;--sidebarMuted:#858585;
}
*{box-sizing:border-box} body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
button,input,select,textarea{font:inherit} button{cursor:pointer}
a{color:inherit;text-decoration:none}
.muted{color:#888}.right{text-align:right}

/* ---------- APP SHELL ---------- */
.app{display:flex;min-height:100vh}
.sidebar{width:245px;background:var(--sidebar);color:white;padding:22px 14px;position:fixed;left:0;top:0;bottom:0;display:flex;flex-direction:column}
.logo{font-size:20px;font-weight:800;padding:8px 12px 25px;letter-spacing:-.5px}.logo span{color:#aaa}
.logo small{display:block;font-size:10px;font-weight:500;color:#777;letter-spacing:.3px;margin-top:4px}
.nav-label{font-size:10px;text-transform:uppercase;color:#666;padding:15px 12px 7px;letter-spacing:1px}
.nav button{display:flex;align-items:center;gap:11px;width:100%;border:0;background:none;color:var(--sidebarText);padding:10px 12px;border-radius:8px;text-align:left;margin:2px 0}
.nav button:hover,.nav button.active{background:#252525;color:#fff}.nav .icon{width:20px;text-align:center;color:#aaa}.nav button.active .icon{color:#fff}
.nav button:disabled{opacity:.45;cursor:not-allowed}
.sidebottom{margin-top:auto;padding:12px}
.sidebottom button{width:100%;border:1px solid #333;background:#1c1c1c;color:#ddd;padding:10px 12px;border-radius:8px;text-align:left}
.sidebottom button:hover{background:#252525;color:#fff}
.main{margin-left:245px;width:calc(100% - 245px);padding:25px 30px}
.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}
.title h1{margin:0;font-size:26px;letter-spacing:-.7px}.title p{margin:5px 0 0;color:var(--muted);font-size:13px}
.actions{display:flex;gap:9px}
.btn{border:1px solid var(--border);background:#fff;padding:9px 14px;border-radius:8px;font-weight:600;font-size:13px}
.btn.dark{background:#111;color:#fff;border-color:#111}.btn:hover{opacity:.85}
.btn.small{padding:6px 9px;font-size:11px}
.btn.danger{color:var(--danger);border-color:#f2c8c8}

/* ---------- CARDS / KPIs ---------- */
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:18px}
.stat{display:flex;justify-content:space-between;align-items:flex-start}
.stat .label{font-size:12px;color:var(--muted)}
.stat .value{font-size:25px;font-weight:750;margin-top:8px}
.stat .change{font-size:11px;color:var(--success);margin-top:7px}
.stat-icon{width:38px;height:38px;border-radius:9px;background:var(--soft);display:grid;place-items:center;font-size:18px}
.section{margin-top:20px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}
.section-head h2{font-size:16px;margin:0}.section-head span{font-size:12px;color:var(--muted)}
.two{display:grid;grid-template-columns:1.35fr 1fr;gap:15px}
.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}

/* ---------- TABLES ---------- */
.table-card{padding:0;overflow:hidden}
.table-top{padding:17px 18px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}
.search{border:1px solid var(--border);background:#fff;border-radius:7px;padding:8px 10px;width:190px;font-size:12px;outline:none}
.table{width:100%;border-collapse:collapse}.table th{font-size:10px;text-transform:uppercase;color:#888;letter-spacing:.5px;text-align:left;background:var(--surface2);padding:11px 16px}
.table td{padding:13px 16px;border-top:1px solid var(--border);font-size:12px}
.partner{display:flex;align-items:center;gap:10px}
.avatar{width:31px;height:31px;border-radius:50%;background:#ddd;display:grid;place-items:center;font-weight:700;font-size:11px;flex-shrink:0}
.partner b{font-size:12px}.partner small{display:block;color:#888;margin-top:2px}
.pill{display:inline-block;padding:4px 8px;border-radius:99px;font-size:10px;font-weight:700;background:#eee;color:#555;white-space:nowrap}
.pill.green{background:#e8f6ed;color:var(--success)}.pill.yellow{background:#fff4df;color:var(--warning)}
.pill.red{background:#fdeaea;color:var(--danger)}.pill.blue{background:#eaf1ff;color:#315da8}.pill.gray{background:#eee;color:#777}
.row{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-top:1px solid var(--border)}
.row:first-child{border-top:0}.row .left{display:flex;gap:11px;align-items:center}
.mini{width:34px;height:34px;border-radius:8px;background:#f0f0f0;display:grid;place-items:center;font-size:14px;font-weight:700}
.row b{font-size:12px}.row small{display:block;color:#888;font-size:10px;margin-top:3px}
.money{text-align:right}.money b{font-size:13px}.money small{color:#999}
.progress{height:6px;background:#eee;border-radius:99px;overflow:hidden;margin-top:8px}
.progress i{display:block;height:100%;background:#111;border-radius:99px}
.progress-lg{height:8px;background:#eee;border-radius:99px;overflow:hidden;margin:12px 0 5px}
.progress-lg i{display:block;height:100%;background:#111;border-radius:99px}

/* ---------- PROJECT CARDS / SECTION BOXES ---------- */
.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}
.project-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:17px}
.project-card h3{margin:0;font-size:15px}.project-card p{font-size:11px;color:#777;line-height:1.45;margin:7px 0 12px}
.meta{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#777;margin-top:9px}
.meta b{color:#111}
.target-row{display:grid;grid-template-columns:1.3fr .8fr .8fr .8fr;gap:10px;align-items:center;border-top:1px solid var(--border);padding:11px 0;font-size:11px}
.target-row:first-child{border-top:0}
.section-box{background:#fff;border:1px solid var(--border);border-radius:12px;padding:16px;margin-top:15px}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px;flex-wrap:wrap}
.toolbar h2{margin:0;font-size:16px}
.filters{display:flex;gap:7px;flex-wrap:wrap}
.filters select,.filters input{border:1px solid var(--border);background:#fff;border-radius:7px;padding:8px 10px;font-size:12px}
.view-table{width:100%;border-collapse:collapse}
.view-table th{font-size:10px;text-transform:uppercase;color:#888;background:var(--surface2);padding:10px;text-align:left}
.view-table td{padding:11px 10px;border-top:1px solid var(--border);font-size:12px}
.view-table td.actions-cell{white-space:nowrap}
.view-table td.actions-cell .btn{margin-right:4px}
.empty{padding:35px;text-align:center;color:#888;font-size:12px}
.project-chip{display:inline-flex;align-items:center;gap:5px;background:#f3f3f3;border-radius:99px;padding:4px 8px;margin:2px;font-size:10px}
.detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}
.detail-head h2{margin:0;font-size:20px}.detail-head p{margin:5px 0;color:#777;font-size:12px}

/* ---------- MODALS ---------- */
.overlay{position:fixed;inset:0;background:rgba(17,17,17,.55);display:grid;place-items:center;z-index:60;padding:18px}
.modal{background:#fff;border-radius:14px;width:100%;max-width:560px;max-height:92vh;overflow:auto;padding:24px}
.modal h2{margin:0;font-size:18px;letter-spacing:-.4px}.modal>p{margin:6px 0 18px;color:#777;font-size:12px}
.field{display:flex;flex-direction:column;gap:5px;margin-bottom:12px}
.field label{font-size:12px;font-weight:600}
.field label small{font-weight:400;color:#999}
.field input,.field select,.field textarea{border:1px solid var(--border);border-radius:8px;padding:9px 11px;font-size:13px;background:#fafafa;outline:none;width:100%}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#111;background:#fff}
.field input[readonly],.field input:disabled{background:#f0f0f0;color:#888}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.acct-row{display:grid;grid-template-columns:1fr 2fr auto;gap:8px;margin-bottom:8px;align-items:center}
.acct-row input{border:1px solid var(--border);border-radius:8px;padding:8px 10px;font-size:12px}
.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}
.form-note{font-size:11px;color:#999;margin:-6px 0 12px}
.kv{display:grid;grid-template-columns:160px 1fr;gap:8px 14px;font-size:13px;padding:4px 0}
.kv span{color:#888}.kv b{font-weight:600;word-break:break-word}

/* ---------- LANDING PAGE ---------- */
.land-head{position:sticky;top:0;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--border);z-index:50}
.land-head .in{max-width:1120px;margin:0 auto;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.land-nav{display:flex;gap:22px;font-size:13px;color:#555;align-items:center}
.land-nav a:hover{color:#111}
.hero{max-width:1120px;margin:0 auto;padding:84px 24px 60px;display:grid;grid-template-columns:1.15fr .85fr;gap:40px;align-items:center}
.hero h1{font-size:44px;line-height:1.08;letter-spacing:-1.6px;margin:14px 0 16px}
.hero h1 span{background:#111;color:#fff;padding:0 10px;border-radius:8px}
.hero p.lead{color:#666;font-size:15px;line-height:1.65;max-width:480px}
.hero .cta{display:flex;gap:10px;margin-top:26px;flex-wrap:wrap}
.btn.big{padding:13px 22px;font-size:14px;border-radius:10px}
.hero .stats{display:flex;gap:34px;margin-top:34px;flex-wrap:wrap}
.hero .stats b{font-size:22px;display:block;letter-spacing:-.5px}
.hero .stats span{font-size:11px;color:#888}
.hero-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:20px;box-shadow:0 24px 60px -30px rgba(0,0,0,.25)}
.land-section{max-width:1120px;margin:0 auto;padding:56px 24px}
.land-section h2{font-size:26px;letter-spacing:-.8px;margin:0 0 6px}
.land-section .sub{color:#777;font-size:13px;margin-bottom:26px}
.feat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}
.feat{background:#fff;border:1px solid var(--border);border-radius:12px;padding:20px}
.feat .fi{width:38px;height:38px;border-radius:9px;background:var(--soft);display:grid;place-items:center;font-size:18px;margin-bottom:12px}
.feat h3{margin:0 0 7px;font-size:14px}.feat p{margin:0;color:#777;font-size:12px;line-height:1.6}
.land-foot{border-top:1px solid var(--border);background:#fff}
.land-foot .in{max-width:1120px;margin:0 auto;padding:26px 24px;display:flex;justify-content:space-between;gap:14px;font-size:12px;color:#888;flex-wrap:wrap}
.powered{font-size:11px;color:#aaa}
.powered b{color:#111}

/* ---------- TOAST ---------- */
#toast{position:fixed;bottom:24px;right:24px;background:#111;color:#fff;padding:13px 20px;border-radius:10px;font-size:13px;display:none;z-index:99;box-shadow:0 16px 40px rgba(0,0,0,.3);max-width:340px}
#toast.show{display:block}

/* ---------- RESPONSIVE ---------- */
@media(max-width:1050px){.grid,.kpi-grid{grid-template-columns:repeat(2,1fr)}.two{grid-template-columns:1fr}.project-grid{grid-template-columns:repeat(2,1fr)}.sidebar{width:210px}.main{margin-left:210px;width:calc(100% - 210px)}.hero{grid-template-columns:1fr;padding-top:56px}.feat-grid{grid-template-columns:1fr 1fr}}

/* ---------- MOBILE NAV DRAWER + FULL RESPONSIVENESS ---------- */
/* 3-line toggle (hidden on desktop) */
.navtoggle{display:none}
.navbackdrop{display:none}
@media(max-width:900px){
  .navtoggle{display:inline-flex;flex-direction:column;justify-content:center;gap:5px;width:42px;height:42px;padding:10px;position:fixed;top:12px;left:12px;z-index:40;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 2px 10px rgba(0,0,0,.08);cursor:pointer}
  .navtoggle span{display:block;height:2px;width:100%;background:#111;border-radius:2px;transition:transform .18s ease,opacity .18s ease}
  body.nav-open .navtoggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  body.nav-open .navtoggle span:nth-child(2){opacity:0}
  body.nav-open .navtoggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  /* drawer: slides in from the left, never wider than 50% of the screen */
  .sidebar{width:min(50vw,300px);transform:translateX(-105%);transition:transform .22s ease;z-index:42;padding-top:74px;overflow-y:auto}
  body.nav-open .sidebar{transform:none;box-shadow:14px 0 40px rgba(0,0,0,.25)}
  .navbackdrop{display:block;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:41;opacity:0;pointer-events:none;transition:opacity .2s ease}
  body.nav-open .navbackdrop{opacity:1;pointer-events:auto}
  body.nav-open{overflow:hidden}
  /* page: full width, clears the floating toggle */
  .main{margin-left:0;width:100%;padding:66px 16px 22px}
  .kpi-grid{grid-template-columns:repeat(2,1fr)}
  .two{grid-template-columns:1fr}
  .top{align-items:flex-start;gap:12px;flex-direction:column}
  .table-card{overflow:auto}
  .table,.view-table{min-width:640px}
  .modal{width:94vw}
  .modal.wide{max-width:94vw}
  /* admin helpdesk 3-column → stacked */
  .helpdesk2.hd3{grid-template-columns:1fr}
  .hd3 .hdlist{max-height:250px;border-right:0;border-bottom:1px solid var(--border)}
  .section-box.hdpage{height:min(84dvh,720px)}
}
@media(max-width:700px){
  .grid,.kpi-grid,.project-grid,.feat-grid{grid-template-columns:1fr}
  .main{padding:64px 12px 18px}
  .hero{padding:60px 16px 40px}
  .hero h1{font-size:30px}
  .hero .stats{gap:20px}
  .field-row{grid-template-columns:1fr}
  .acct-row{grid-template-columns:1fr}
  .land-head .in{padding:12px 14px}
  .land-foot .in{padding:20px 14px}
  .toolbar h2{font-size:15px}
  .modal{padding:16px}
  .actions-cell{white-space:nowrap}
}

/* ---------- HELPDESK CHAT + NAV BADGE ---------- */
.navbadge{display:inline-block;min-width:17px;padding:1px 5px;margin-left:5px;border-radius:99px;background:#c62828;color:#fff;font-size:10px;font-weight:700;text-align:center;vertical-align:middle}
.chat{max-height:380px;overflow-y:auto;padding:16px 18px;display:flex;flex-direction:column;gap:10px;background:var(--surface2)}
.chat.big{max-height:520px}
.msg{max-width:75%;background:#fff;border:1px solid var(--border);border-radius:14px 14px 14px 4px;padding:9px 13px;align-self:flex-start}
.msg.me{background:#111;color:#fff;border-color:#111;border-radius:14px 14px 4px 14px;align-self:flex-end}
.msg p{margin:0;font-size:13px;line-height:1.5;word-break:break-word}
.msg time{display:block;font-size:10px;opacity:.6;margin-top:4px}
.chatbar{display:flex;gap:9px;padding:12px 14px;border-top:1px solid var(--border);background:#fff}
.chatbar input{flex:1;border:1px solid var(--border);border-radius:9px;padding:10px 13px;font-size:13px;outline:none;background:#fafafa}
.chatbar input:focus{border-color:#111;background:#fff}
.btn:disabled{opacity:.55;cursor:not-allowed}

/* ---------- ADD-PAYMENT PICKER ---------- */
.modal.wide{max-width:940px}
.pickwrap{display:grid;grid-template-columns:250px 1fr;gap:16px;margin-top:6px}
.pickside{display:flex;flex-direction:column;gap:9px;border:1px solid var(--border);border-radius:12px;padding:11px;background:var(--surface2);min-height:340px;max-height:560px}
.picklist{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:4px}
.pickitem{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:10px;border:1px solid transparent;cursor:pointer}
.pickitem:hover{background:#fff}
.pickitem.active{background:#fff;border-color:#111}
.pickitem b{font-size:12px;display:block}
.pickitem small{color:#888;font-size:10px}
.pickmain{border:1px solid var(--border);border-radius:12px;padding:14px;max-height:560px;overflow-y:auto}
.payform{border-top:2px solid var(--surface2);margin-top:14px;padding-top:12px}
@media(max-width:700px){.pickwrap{grid-template-columns:1fr}.pickside{max-height:200px}}

/* ---------- ADD-PAYMENT PICKER ---------- */
.modal.wide{max-width:940px}
.pickwrap{display:grid;grid-template-columns:250px 1fr;gap:16px;margin-top:6px}
.pickside{display:flex;flex-direction:column;gap:9px;border:1px solid var(--border);border-radius:12px;padding:11px;background:var(--surface2);min-height:340px;max-height:560px}
.picklist{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:4px}
.pickitem{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:10px;border:1px solid transparent;cursor:pointer}
.pickitem:hover{background:#fff}
.pickitem.active{background:#fff;border-color:#111}
.pickitem b{font-size:12px;display:block}
.pickitem small{color:#888;font-size:10px}
.pickmain{border:1px solid var(--border);border-radius:12px;padding:14px;max-height:560px;overflow-y:auto}
.payform{border-top:2px solid var(--surface2);margin-top:14px;padding-top:12px}
@media(max-width:700px){.pickwrap{grid-template-columns:1fr}.pickside{max-height:200px}}

/* ---------- B&W NEUMORPHISM LANDING THEME ---------- */
body.landing-mode{
  --neo-bg:#f1f1f1;
  --neo-surface:#f1f1f1;
  --neo-text:#111111;
  --neo-muted:#666666;
  --neo-soft:#e7e7e7;
  --neo-line:#dddddd;
  --neo-dark-shadow:#c9c9c9;
  --neo-light-shadow:#ffffff;
  background:#f1f1f1;
  color:#111111;
}
body.landing-mode::before,
body.landing-mode::after{
  content:"";
  position:fixed;
  z-index:-1;
  border-radius:999px;
  pointer-events:none;
  background:#eeeeee;
  box-shadow:18px 18px 42px rgba(0,0,0,.10),-18px -18px 42px rgba(255,255,255,.95);
}
body.landing-mode::before{width:260px;height:260px;right:8%;top:120px}
body.landing-mode::after{width:170px;height:170px;left:6%;bottom:90px}
body.landing-mode .land-head{
  background:#f1f1f1;
  border-bottom:0;
  box-shadow:8px 8px 22px rgba(0,0,0,.10),-8px -8px 22px rgba(255,255,255,.95);
}
body.landing-mode .land-head .in{padding-top:18px;padding-bottom:18px}
body.landing-mode .logo{color:#111;text-shadow:1px 1px 0 #fff}
body.landing-mode .logo span{color:#777}
body.landing-mode .logo small{color:#777}
body.landing-mode .land-nav{color:#555;gap:12px}
body.landing-mode .land-nav a{
  padding:10px 14px;
  border-radius:999px;
  color:#555;
  background:#f1f1f1;
  box-shadow:inset 5px 5px 10px rgba(0,0,0,.10),inset -5px -5px 10px rgba(255,255,255,.95);
  transition:.2s ease;
}
body.landing-mode .land-nav a:hover{
  color:#111;
  box-shadow:6px 6px 14px rgba(0,0,0,.12),-6px -6px 14px rgba(255,255,255,.95);
}
body.landing-mode .btn{
  background:#f1f1f1;
  border:0;
  color:#111;
  border-radius:14px;
  box-shadow:7px 7px 16px rgba(0,0,0,.13),-7px -7px 16px rgba(255,255,255,.95);
  transition:transform .18s ease,box-shadow .18s ease,color .18s ease,background .18s ease;
}
body.landing-mode .btn:hover{
  opacity:1;
  transform:translateY(-1px);
  background:#f4f4f4;
  box-shadow:10px 10px 22px rgba(0,0,0,.14),-10px -10px 22px rgba(255,255,255,1);
}
body.landing-mode .btn:active{
  transform:translateY(0);
  box-shadow:inset 6px 6px 12px rgba(0,0,0,.13),inset -6px -6px 12px rgba(255,255,255,.95);
}
body.landing-mode .btn.dark{
  background:#111;
  color:#fff;
  box-shadow:8px 8px 18px rgba(0,0,0,.22),-8px -8px 18px rgba(255,255,255,.95);
}
body.landing-mode .btn.dark:hover{background:#000;color:#fff}
body.landing-mode .hero{padding-top:92px;gap:52px}
body.landing-mode .hero h1{color:#111;text-shadow:2px 2px 0 #fff}
body.landing-mode .hero h1 span{
  background:#f1f1f1;
  color:#111;
  border-radius:16px;
  padding:0 14px;
  box-shadow:inset 5px 5px 10px rgba(0,0,0,.13),inset -5px -5px 10px rgba(255,255,255,.98);
}
body.landing-mode .hero p.lead,
body.landing-mode .land-section .sub{color:#666}
body.landing-mode .pill{
  border:0;
  background:#f1f1f1;
  color:#111;
  box-shadow:inset 4px 4px 8px rgba(0,0,0,.11),inset -4px -4px 8px rgba(255,255,255,.95);
}
body.landing-mode .pill.blue,
body.landing-mode .pill.green,
body.landing-mode .pill.yellow,
body.landing-mode .pill.red,
body.landing-mode .pill.gray{
  color:#111;
  background:#f1f1f1;
}
body.landing-mode .hero .stats{gap:18px}
body.landing-mode .hero .stats div{
  min-width:126px;
  padding:16px 18px;
  border-radius:20px;
  background:#f1f1f1;
  box-shadow:8px 8px 18px rgba(0,0,0,.12),-8px -8px 18px rgba(255,255,255,.95);
}
body.landing-mode .hero .stats b{color:#111}
body.landing-mode .hero .stats span{color:#777}
body.landing-mode .hero-card{
  background:#f1f1f1;
  border:0;
  border-radius:28px;
  padding:26px;
  box-shadow:22px 22px 48px rgba(0,0,0,.14),-22px -22px 48px rgba(255,255,255,.98);
}
body.landing-mode .hero-card .target-row,
body.landing-mode .land-section .card .target-row{border-top:1px solid #e1e1e1}
body.landing-mode .progress,
body.landing-mode .progress-lg{
  background:#e7e7e7;
  box-shadow:inset 4px 4px 8px rgba(0,0,0,.14),inset -4px -4px 8px rgba(255,255,255,.95);
}
body.landing-mode .progress i,
body.landing-mode .progress-lg i{
  background:#111;
  box-shadow:2px 2px 6px rgba(0,0,0,.20);
}
body.landing-mode .land-section h2{color:#111;text-shadow:1px 1px 0 #fff}
body.landing-mode .feat-grid{gap:22px}
body.landing-mode .feat,
body.landing-mode .land-section .card{
  background:#f1f1f1;
  border:0;
  border-radius:24px;
  padding:24px;
  box-shadow:14px 14px 30px rgba(0,0,0,.12),-14px -14px 30px rgba(255,255,255,.98);
  transition:transform .18s ease,box-shadow .18s ease;
}
body.landing-mode .feat:hover{
  transform:translateY(-3px);
  box-shadow:18px 18px 38px rgba(0,0,0,.14),-18px -18px 38px rgba(255,255,255,1);
}
body.landing-mode .feat .fi,
body.landing-mode .card .fi{
  background:#f1f1f1!important;
  color:#111;
  border-radius:16px;
  box-shadow:inset 5px 5px 10px rgba(0,0,0,.13),inset -5px -5px 10px rgba(255,255,255,.95);
}
body.landing-mode .feat h3,
body.landing-mode .land-section .card h3{color:#111}
body.landing-mode .feat p,
body.landing-mode .land-section .card p{color:#666}
body.landing-mode .land-foot{border-top:0;background:transparent}
body.landing-mode .land-foot .in{
  color:#666;
  margin-bottom:24px;
  border-radius:22px;
  background:#f1f1f1;
  box-shadow:10px 10px 24px rgba(0,0,0,.12),-10px -10px 24px rgba(255,255,255,.95);
}
@media(max-width:700px){body.landing-mode .land-nav{gap:8px}body.landing-mode .land-nav a{display:none}body.landing-mode .hero{padding-top:52px}body.landing-mode .hero .stats div{width:100%}}

/* ---------- CUSTOM LOADER ---------- */
.loader-wrap{
  min-height:120px;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  color:#777;
  font-size:12px;
}
.loader {
  display: flex;
  align-items: center;
}

.bar {
  display: inline-block;
  width: 3px;
  height: 20px;
  background-color: rgba(180, 25, 25, 0.5);
  border-radius: 10px;
  animation: scale-up4 1s linear infinite;
}

.bar:nth-child(2) {
  height: 35px;
  margin: 0 5px;
  animation-delay: .25s;
}

.bar:nth-child(3) {
  animation-delay: .5s;
}

@keyframes scale-up4 {
  20% {
    background-color: #ffff;
    transform: scaleY(1.5);
  }

  40% {
    transform: scaleY(1);
  }
}
.loader-text{font-size:12px;color:#777;font-weight:600;letter-spacing:.1px}
body.dashboard-mode .loader-wrap{
  min-height:160px;
  border-radius:22px;
  background:#f5f5f5;
  box-shadow:inset 8px 8px 18px rgba(0,0,0,.08),inset -8px -8px 18px rgba(255,255,255,.9);
}
body.dashboard-mode .main>.loader-wrap{margin-top:8px}
body.dashboard-mode .chat .loader-wrap{min-height:120px;background:transparent;box-shadow:none}

/* ---------- CONNECTX CENTRAL MAIL WORKSPACE ---------- */
.connectx{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:600px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;overflow:hidden;box-shadow:0 4px 15px #0f172a0b}
.connectxnav{background:#f8fafc;padding:16px 12px;border-right:1px solid #e2e8f0;display:grid;align-content:start;gap:6px}
.connectxbrand{padding:8px 10px 18px;color:#111;font-size:18px;font-weight:800}
.connectxbrand small{display:block;font-size:10px;color:#64748b;margin-left:25px;font-weight:500}
.connectxnav button{border:0;background:transparent;color:#475569;text-align:left;border-radius:999px;padding:10px 13px;font-weight:700}
.connectxnav button:hover,.connectxnav button.on{background:#111;color:#fff}
.connectxnav button small{float:right;opacity:.75}
.connectxmain{padding:24px;min-width:0;background:#fff}
.cxhead{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e2e8f0;padding-bottom:15px;margin-bottom:18px;gap:12px}
.cxhead h2{margin:0;font-size:20px}.cxhead span{font-size:12px;color:#64748b}
.cxcompose{display:grid;grid-template-columns:300px minmax(0,1fr);gap:22px}
.cxrecipient{border-right:1px solid #e2e8f0;padding-right:20px;min-width:0}
.cxrecipient label,.cxfields label{display:block;margin-bottom:12px;font-size:12px;font-weight:700;color:#111}
.cxrecipient select,.cxfields input,.cxfields textarea{width:100%;border:1px solid var(--border);border-radius:8px;padding:9px 11px;font-size:13px;background:#fafafa;outline:none;margin-top:5px}
.cxfields input:focus,.cxfields textarea:focus,.cxrecipient select:focus{border-color:#111;background:#fff}
.cxlist{display:grid;gap:7px;max-height:410px;overflow:auto;padding-right:4px}
.cxcontact{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:12px;color:#64748b;font-size:12px;display:grid;gap:4px;cursor:pointer}
.cxcontact:hover,.cxcontact.on{background:#fff;border-color:#111;box-shadow:0 8px 22px rgba(15,23,42,.08)}
.cxcontact b{color:#0f172a;font-size:14px}.cxcontact span{word-break:break-word}.cxcontact small{color:#888}
.cxfields{max-width:760px}.cxfields button{border-radius:8px;margin-top:4px}.cxsearch{margin-bottom:14px}.cxsearch input{max-width:360px}
.cxstatus{font-size:11px;font-weight:800;border-radius:999px;padding:4px 8px;display:inline-block;text-transform:capitalize}
.cxstatus.sent{background:#dcfce7;color:#15803d}.cxstatus.failed{background:#ffe4e6;color:#be123c}.cxstatus.sending,.cxstatus.queued{background:#fef3c7;color:#92400e}
@media(max-width:760px){.connectx{grid-template-columns:1fr;border-radius:12px}.connectxnav{border-right:0;border-bottom:1px solid #e2e8f0;display:flex;overflow:auto;white-space:nowrap;padding:10px}.connectxbrand{display:none}.connectxnav button{flex:0 0 auto}.connectxmain{padding:15px}.cxcompose{grid-template-columns:1fr}.cxrecipient{border-right:0;border-bottom:1px solid #e2e8f0;padding:0 0 15px}.cxhead{margin-bottom:14px;align-items:flex-start;flex-direction:column}}

/* ---------- SIDEBAR SCROLL FIX ---------- */
.sidebar{overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#444 transparent}
.sidebar::-webkit-scrollbar{width:6px}.sidebar::-webkit-scrollbar-thumb{background:#444;border-radius:999px}.sidebar::-webkit-scrollbar-track{background:transparent}
.sidebottom{flex-shrink:0}

/* ---------- CONNECTX CC/BCC + SETTINGS ADDITIONS ---------- */
.cx-mini-actions{display:flex;gap:8px;margin:2px 0 12px;flex-wrap:wrap}
.cxfields select{width:100%;border:1px solid var(--border);border-radius:8px;padding:9px 11px;font-size:13px;background:#fafafa;outline:none;margin-top:5px}
.cxfields select:focus{border-color:#111;background:#fff}
.cx-optional{animation:cxFade .16s ease-out}
@keyframes cxFade{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.cxattachbox{align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;font-size:12px;color:#475569}
.cxattachbox b{text-transform:capitalize;color:#111}
.cx-template{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:1.45;min-height:150px}
.cxmailpreview{width:100%;height:620px;border:1px solid var(--border);border-radius:12px;background:#fff}

/* ---------- HELPDESK TWO-PANE ADMIN/USER CHAT ---------- */
.helpdesk2{display:grid;grid-template-columns:320px minmax(0,1fr);min-height:620px;background:#fff;border:1px solid var(--border);border-radius:14px;overflow:hidden}
.hdlist{border-right:1px solid var(--border);background:var(--surface2);padding:12px;overflow:auto;display:flex;flex-direction:column;gap:8px}
.hditem{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:11px;border-radius:12px;cursor:pointer;color:#555}
.hditem:hover,.hditem.on{background:#fff;color:#111;box-shadow:0 6px 18px rgba(0,0,0,.06)}
.hditem b{font-size:12px;color:#111}.hditem small{display:block;font-size:10px;color:#888;margin-top:3px}.hditem .pill{align-self:start}
.hdconversation{display:flex;flex-direction:column;min-width:0;background:#fff}
.hdconvhead{padding:17px 18px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}
.hdconvhead h2{margin:0;font-size:16px}.hdconvhead p{margin:4px 0 0;color:#888;font-size:11px}
.hdconversation .chat.big{flex:1;max-height:none;min-height:420px}
@media(max-width:800px){.helpdesk2{grid-template-columns:1fr}.hdlist{border-right:0;border-bottom:1px solid var(--border);max-height:260px}.hdconversation .chat.big{min-height:340px}}

/* ---------- SILENT SYNC CHIP (background reconnect indicator — never blocks the UI) ---------- */
#syncchip{
  position:fixed;right:18px;bottom:18px;z-index:80;
  display:flex;align-items:center;gap:8px;
  background:#1f2937;color:#fff;font-size:12px;font-weight:600;
  padding:8px 14px;border-radius:999px;box-shadow:0 8px 22px rgba(0,0,0,.25);
  opacity:0;pointer-events:none;transform:translateY(8px);
  transition:opacity .25s ease,transform .25s ease;
}
#syncchip.show{opacity:1;transform:translateY(0)}
.syncdot{width:8px;height:8px;border-radius:50%;background:#f59e0b;animation:syncpulse 1.1s ease-in-out infinite}
@keyframes syncpulse{0%,100%{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)}}

/* ═══════════ ONE-PAGE FIT — HelpDesk & ConnectX (EMS hdwrap pattern) ═══════════
   Card height ≈10% larger, still guaranteed to fit the screen: only the message
   log scrolls inside the card — the Send bar is always visible, no page scroll. */
.helpdesk2{height:min(792px,calc(100dvh - 172px));min-height:480px}
.hdlist{min-height:0}
.hdconversation{min-height:0}
.hdconversation .chat.big{flex:1 1 auto;min-height:0;max-height:none}
.hdconversation .chatbar{flex:0 0 auto}
.section-box.hdpage{height:min(792px,calc(100dvh - 172px));min-height:480px;display:flex;flex-direction:column;padding:0;overflow:hidden}
.hdpage .chat.big{flex:1 1 auto;min-height:0;max-height:none}
.hdpage .chatbar{flex:0 0 auto}
/* ConnectX fits one screen; panes have natural (normal) sizes and scroll internally */
.connectx{height:min(858px,calc(100dvh - 172px));min-height:540px}
.connectxmain{min-height:0;overflow-y:auto;display:flex;flex-direction:column}
.cxhead{flex:0 0 auto}
.cxcompose{flex:0 1 auto;align-items:start}
.cxrecipient{min-height:0}
.cxrecipient .cxlist{max-height:300px}
.cxcompose .cxfields{display:flex;flex-direction:column}
.cxcompose .cxfields textarea{min-height:140px}
.cxcompose .cxfields #cxSend{flex:0 0 auto;margin-top:10px}
/* normal-size ConnectX sidebar buttons */
.connectxnav{padding:12px 10px;gap:4px}
.connectxnav button{padding:8px 12px;font-size:12.5px;font-weight:600;border-radius:8px}
.connectxnav button small{font-size:10px}
@media(max-width:760px){
  .helpdesk2,.section-box.hdpage{height:min(770px,calc(100dvh - 160px));min-height:440px}
  .connectx{height:auto;min-height:0}
  .hdlist{max-height:220px}
  .cxrecipient .cxlist{max-height:240px}
}

/* ═══════════ PERMISSION BOX (Add/Edit user modal) ═══════════ */
.permbox{border:1px solid var(--border);border-radius:12px;padding:12px 14px;background:#fafbfc}
.permnote{font-size:11px;color:#8a94a6;margin-bottom:10px;line-height:1.5}
.permbox.locked{opacity:.65}
.permgrid{display:flex;flex-direction:column;gap:6px}
.permrow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 10px;background:#fff;border:1px solid #eef1f5;border-radius:9px}
.permrow>b{font-size:12px;color:#334155;white-space:nowrap}
.permacts{display:flex;flex-wrap:wrap;gap:4px 12px;justify-content:flex-end}
.permchk{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;color:#475569;cursor:pointer;white-space:nowrap}
.permchk input{width:14px;height:14px;accent-color:#111;margin:0;cursor:pointer}
@media(max-width:600px){.permrow{flex-direction:column;align-items:flex-start}.permacts{justify-content:flex-start}}

/* ═══════════ NOTIFICATIONS ═══════════ */
.notifbtn{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:9px 12px;margin:6px 0 10px;border:1px solid var(--border);border-radius:10px;background:#fff;color:#334155;font-weight:700;font-size:13px;cursor:pointer}
.notifbtn:hover{background:#f5f7fb}
.notifbtn .navbadge{position:absolute;top:-6px;right:10px}
.notifitem{padding:11px 12px;border:1px solid #eef1f5;border-radius:10px;margin-bottom:8px;background:#fff}
.notifitem.unread{background:#f4f8ff;border-color:#dbe7ff}
.notifitem b{font-size:13px;color:#1e293b}
.notifitem p{margin:4px 0 0;font-size:12px;color:#64748b;line-height:1.5}
.notifitem time{display:block;margin-top:5px;font-size:10.5px;color:#a3aec0}
.notifrow{display:flex;align-items:center;justify-content:space-between;gap:8px}
.notifdot{width:9px;height:9px;border-radius:50%;background:#2563eb;flex:0 0 auto}
#notifList{max-height:52vh;overflow:auto;margin:10px 0}

/* ---------- LANDING: BRANDS ↔ DOXTOX ↔ INFLUENCERS NETWORK ---------- */
.net-stage{position:relative;display:flex;align-items:center;gap:20px;min-height:470px;margin-top:6px}
.net-svg{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.net-svg path{fill:none;stroke:rgba(0,0,0,.15);stroke-width:2;stroke-linecap:round;stroke-dasharray:8 6;animation:net-flow 2s linear infinite}
.net-svg path.glow{stroke:rgba(0,0,0,.32);stroke-width:2.6;stroke-dasharray:4 8;animation:net-flow 1.8s linear infinite reverse}
.net-svg path.cross{stroke:rgba(0,0,0,.07);stroke-width:1;stroke-dasharray:3 9}
@keyframes net-flow{to{stroke-dashoffset:-14}}
.net-col{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:center;gap:18px;flex:1;min-width:0}
.net-brands{align-items:flex-end}
.net-socials{align-items:flex-start}
.net-card{display:flex;align-items:center;gap:13px;padding:13px 18px;border-radius:16px;background:#f1f1f1;box-shadow:8px 8px 18px rgba(0,0,0,.12),-8px -8px 18px rgba(255,255,255,.95);transition:transform .2s ease,box-shadow .2s ease}
.net-card:hover{box-shadow:11px 11px 24px rgba(0,0,0,.15),-11px -11px 24px rgba(255,255,255,1)}
.net-brands .net-card:hover{transform:translateX(-4px)}
.net-socials .net-card:hover{transform:translateX(4px)}
.net-ico{width:40px;height:40px;flex:0 0 auto;border-radius:13px;display:grid;place-items:center;font-size:16px;font-weight:800;color:#111;background:#ececec;box-shadow:inset 4px 4px 8px rgba(0,0,0,.12),inset -4px -4px 8px rgba(255,255,255,.95)}
.net-ico svg{display:block}
.net-name{font-size:13.5px;font-weight:700;color:#111;letter-spacing:-.2px}
.net-sub{font-size:9.5px;color:#999;letter-spacing:.1em;text-transform:uppercase;margin-top:2px}
.net-stat{font-size:10.5px;color:#777;margin-top:2px;font-weight:600}
.net-center{position:relative;z-index:1;flex:0 0 230px;display:flex;flex-direction:column;align-items:center;text-align:center}
.net-orb{position:relative;width:212px;height:212px;border-radius:50%;background:#f1f1f1;display:grid;place-content:center;justify-items:center;box-shadow:16px 16px 40px rgba(0,0,0,.15),-16px -16px 40px rgba(255,255,255,.98)}
.net-orb::before{content:"";position:absolute;inset:13px;border-radius:50%;box-shadow:inset 4px 4px 10px rgba(0,0,0,.08),inset -4px -4px 10px rgba(255,255,255,.9)}
.net-orb b{font-size:33px;font-weight:800;letter-spacing:-1.2px;color:#111}
.net-orb b span{color:#8a8a8a}
.net-orb i{font-style:normal;font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:#888;margin-top:7px}
.net-badge{position:absolute;top:-11px;left:50%;transform:translateX(-50%);z-index:2;font-size:9px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:#111;padding:5px 13px;border-radius:999px;background:#f1f1f1;box-shadow:inset 3px 3px 6px rgba(0,0,0,.10),inset -3px -3px 6px rgba(255,255,255,.95)}
.net-under{margin-top:14px;font-size:11px;color:#999}
.net-tagline{margin-top:10px;text-align:center;font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:#999}
.net-stats{display:flex;justify-content:center;gap:13px;margin-top:18px;flex-wrap:wrap}
.net-stats span{font-size:11px;color:#555;font-weight:600;padding:9px 16px;border-radius:999px;background:#f1f1f1;box-shadow:inset 4px 4px 9px rgba(0,0,0,.10),inset -4px -4px 9px rgba(255,255,255,.95)}
@media(max-width:1020px){.net-stage{flex-direction:column;min-height:0;gap:28px}.net-svg{display:none}.net-col{flex:1 1 100%;flex-direction:row!important;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:10px}.net-card{min-width:150px}}

/* ---------- FILE VIEWER MODAL ---------- */
.modal.fileview{max-width:880px;width:92vw}
.fv-body{min-height:220px;max-height:calc(100dvh - 265px);overflow:auto;border:1px solid var(--border);border-radius:10px;background:#fafafa;margin-top:6px}
.fv-imgbox{display:grid;place-items:center;min-height:220px;padding:14px;background:repeating-conic-gradient(#f2f2f2 0% 25%,#fff 0% 50%) 50%/22px 22px}
.fv-imgbox img{max-width:100%;max-height:calc(100dvh - 320px);display:block;border-radius:4px;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.fv-pdf{width:100%;height:calc(100dvh - 320px);min-height:320px;border:0;background:#fff}
.fv-pre{margin:0;padding:14px;font:12px/1.65 ui-monospace,Menlo,Consolas,monospace;white-space:pre-wrap;word-break:break-word;color:#24292f;background:#fff;min-height:220px}
.fv-doc{padding:20px;background:#fff;min-height:220px;font-size:13px;line-height:1.6;max-width:100%;overflow-wrap:break-word}
.fv-doc img{max-width:100%}
.fv-sheet{padding:12px;background:#fff;min-height:220px}
.fv-sheet>b{display:block;font-size:12px;color:#777;margin-bottom:8px}
.fv-sheet table{border-collapse:collapse;font-size:12px}
.fv-sheet td,.fv-sheet th{border:1px solid #e3e3e3;padding:4px 9px;white-space:nowrap}
.fv-fallback{display:grid;place-items:center;gap:4px;padding:52px 20px;text-align:center;color:#888;font-size:13px;line-height:1.6}
.fv-ico{font-size:36px;margin-bottom:8px}
body.partner-mode .fv-body{border-color:var(--color-edge);border-radius:8px;background:var(--color-cloud)}
body.partner-mode .fv-pre,body.partner-mode .fv-doc,body.partner-mode .fv-sheet{color:var(--color-ink)}

/* ---------- ADMIN HELPDESK 3-COLUMN (list · chat · details) ---------- */
.helpdesk2.hd3{grid-template-columns:233px minmax(0,1fr) 356px}
/* left list — compact, no wasted space */
.hd3 .hdlist{padding:0;gap:0}
.hd3 .hdlist .hditem{margin:4px 7px}
.hd3 .hdlist .hditem:first-of-type{margin-top:7px}
.hd3 .hdlist .hditem:last-child{margin-bottom:7px}
.hd3 .hdlist>.empty{margin:8px 10px}
.hd3 .hditem{grid-template-columns:auto 1fr auto;gap:7px;padding:6px 8px;border-radius:8px}
.hd3 .hditem .mini{width:26px;height:26px;font-size:10px;border-radius:7px}
.hd3 .hditem .mini.m-ag{background:#ff7a3d;color:#fff}
.hd3 .hditem .mini.m-usr{background:#111;color:#fff}
.hd3 .hditem b{font-size:11.5px}
.hd3 .hditem small{font-size:9px;margin-top:2px}
.hd3 .hditem .pill{font-size:9px;padding:2px 5px}
/* middle — conversation, tighter */
.hd3 .hdconvhead{flex:0 0 54px;height:54px;padding:0 12px;display:flex;align-items:center}
.hdlisthead{flex:0 0 auto;height:54px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 11px;border-bottom:1px solid var(--border);background:#fff;position:sticky;top:0;z-index:1}
.hdlisthead b{font-size:12.5px;letter-spacing:-.2px}
.hdlisthead span{font-size:9.5px;color:#888;font-weight:600}
.hd3 .hdconvhead h2{font-size:13.5px}
.hd3 .hdconvhead p{margin:2px 0 0;font-size:10px}
.hd3 .chat.big{padding:9px 11px;gap:7px}
.hd3 .chat .msg{padding:6px 10px;font-size:12px;border-radius:9px 9px 9px 3px}
.hd3 .chat .msg.me{border-radius:9px 9px 3px 9px}
.hd3 .chat .msg p{font-size:12px;line-height:1.45}
.hd3 .chat .msg time{font-size:9px;margin-top:3px}
.hd3 .chatbar{padding:7px 9px;gap:7px}
.hd3 .chatbar input{padding:8px 11px;font-size:12.5px;border-radius:8px}
.hd3 .chatbar .btn{padding:8px 13px;font-size:12.5px}
/* right — details panel */
.hddet{border-left:1px solid var(--border);background:#fbfbfc;overflow-y:auto;min-height:0}
.hddet-head{height:54px;display:flex;align-items:center;gap:9px;padding:0 11px;border-bottom:1px solid var(--border);background:#fff;position:sticky;top:0;z-index:1;box-sizing:border-box}
.hddet-head .mini{width:34px;height:34px;font-size:12px;border-radius:9px}
.hddet-head b{font-size:12.5px;display:block}
.hddet-head small{font-size:9.5px;color:#888;display:block;margin-top:1px}
.hddet-head .pill{margin-left:auto;font-size:9px;padding:2px 6px}
.hdmini{padding:9px 11px;border-bottom:1px solid var(--border)}
.hdmini h3{margin:0 0 6px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#98a2b3}
.hdmini h3 i{font-style:normal;color:#c3cad4}
.hdkv{gap:0}
.hdkv span{font-size:10px;color:#888;padding:3px 0}
.hdkv b{font-size:11px;padding:3px 0;text-align:right}
.hdmini-t{width:100%;border-collapse:collapse;font-size:10.5px}
.hdmini-t th{text-align:left;font-size:8.5px;text-transform:uppercase;letter-spacing:.05em;color:#aab3c0;padding:2px 4px;border-bottom:1px solid var(--border);white-space:nowrap}
.hdmini-t td{padding:4px;border-bottom:1px solid #f0f2f5;white-space:nowrap;color:#333}
.hdmini-t .pill{font-size:8.5px;padding:1px 5px}
.hdmini-t td.empty,.hdmini .muted{white-space:normal}
@media(max-width:1100px){
  .helpdesk2.hd3{grid-template-columns:1fr;height:auto;min-height:0}
  .hd3 .hdlist{max-height:180px;border-right:0;border-bottom:1px solid var(--border)}
  .hd3 .hdconversation .chat.big{min-height:300px}
  .hddet{border-left:0;border-top:1px solid var(--border);max-height:380px}
  .hddet-head{position:static}
}

/* ---------- HELPDESK REALTIME LIVE PILL ---------- */
.rtlive{display:inline-flex;align-items:center;font-style:normal;font-size:9px;font-weight:700;color:#1e9e6a;background:#e6f7ef;padding:3px 9px;border-radius:999px;letter-spacing:.05em}
.rtlive.conn{color:#b07a00;background:#fff6df}
.rtlive.off{color:#c0392b;background:#fdecea}
.rtlive.dis{color:#8a94a3;background:#eef1f4;cursor:help}
.section-box.hdpage{position:relative}
.rtlive{cursor:pointer}

/* ---------- MESSAGE STATUS META ---------- */
.msg time{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.mst{font-weight:700;font-size:9px;letter-spacing:.03em}
.mst.seen{color:#1e9e6a}
.mst.dlv,.mst.sent{color:#9aa4b2}
.msg.me .mst.seen{color:#7de2a8}
.msg.me .mst.dlv,.msg.me .mst.sent{color:rgba(255,255,255,.7)}

/* ---------- TASK MANAGER ---------- */
.tposts{display:flex;flex-direction:column;gap:8px;max-height:260px;overflow-y:auto;margin-top:6px}
.tpost{border:1px solid var(--border);border-radius:10px;padding:9px 11px;background:#fafafa}
.tpost.ok{background:#f2fbf6;border-color:#d7eede}
.tp-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tp-head b{font-size:12px}
.tp-head time{font-size:9.5px;color:#999;margin-left:auto}
.tpost p{margin:6px 0 0;font-size:12px;line-height:1.55;color:#333;white-space:pre-wrap;word-break:break-word}
.tp-act{display:flex;gap:7px;margin-top:8px}
.tp-act input{width:110px;padding:6px 9px;font-size:12px}
.tpost.rej{background:#fdf3f2;border-color:#f3d0cb}
.tp-fb{margin:5px 0 0;font-size:11.5px;color:#c0392b;font-style:italic}
