@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@700;800&display=swap');
:root{--bg:#f6f7f9;--panel:#fff;--ink:#18202a;--muted:#737c88;--line:#e8ebef;--accent:#2457ff;--accent2:#eaf0ff;--green:#18a76b;--red:#e45454;--amber:#d98c18;--shadow:0 10px 30px rgba(22,31,45,.06)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif}.sidebar{position:fixed;left:0;top:0;bottom:0;width:250px;background:#10151d;color:#cbd2db;padding:22px 14px;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;padding:0 10px 25px;color:#fff}.brandmark{width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,#2d63ff,#7048ff);display:grid;place-items:center;font-family:Manrope;font-size:19px}.brand b{display:block;font-size:12px;letter-spacing:.08em}.brand span{font-size:10px;color:#7f8996}.workspace{border-top:1px solid #242b34;padding:18px 8px 12px}.workspace>span{font-size:9px;color:#727c88;letter-spacing:.12em}.workspace-btn{width:100%;margin-top:8px;background:#1b222c;border:1px solid #2a333e;color:#e8edf3;border-radius:9px;padding:10px;text-align:left;display:flex;justify-content:space-between}.nav-item{border:0;background:none;color:#aeb7c3;width:100%;display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:9px;cursor:pointer;text-align:left;font:inherit;font-size:13px;margin:2px 0}.nav-item:hover,.nav-item.active{background:#202936;color:#fff}.nav-icon{width:19px;text-align:center;color:#8995a4}.side-bottom{margin-top:auto;display:flex;gap:6px}.side-bottom button{background:none;border:0;color:#8995a4;padding:10px;cursor:pointer}.side-bottom button:first-child{flex:1;text-align:left}main{margin-left:250px;min-height:100vh}header{height:92px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px}.crumb{font-size:11px;color:#8a929d;margin-bottom:5px}.crumb b{color:#56606c}h1{font:800 24px Manrope;margin:0;letter-spacing:-.03em}.top-actions{display:flex;gap:10px;align-items:center}.icon-btn{width:38px;height:38px;border:1px solid var(--line);background:#fff;border-radius:10px;font-size:20px;position:relative}.icon-btn i{position:absolute;width:7px;height:7px;border-radius:50%;background:#ef5350;top:8px;right:8px}.avatar{width:38px;height:38px;border-radius:50%;background:#e7edff;color:#3157c8;display:grid;place-items:center;font-weight:700}#content{padding:30px 34px}.grid{display:grid;gap:18px}.stats{grid-template-columns:repeat(5,1fr)}.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.stat{padding:18px}.stat .label{font-size:11px;color:var(--muted);display:flex;justify-content:space-between}.stat .value{font:800 25px Manrope;margin:8px 0 4px}.delta{font-size:11px;color:var(--green)}.section{padding:20px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.section-head h2{font:700 15px Manrope;margin:0}.section-head span{font-size:11px;color:var(--muted)}.two{grid-template-columns:1.45fr 1fr;margin-top:18px}.three{grid-template-columns:repeat(3,1fr);margin-top:18px}.table{width:100%;border-collapse:collapse}.table th{font-size:10px;color:#8a929d;text-align:left;text-transform:uppercase;letter-spacing:.06em;padding:9px;border-bottom:1px solid var(--line)}.table td{padding:12px 9px;border-bottom:1px solid #f0f1f3;font-size:12px}.person{display:flex;gap:9px;align-items:center}.mini{width:28px;height:28px;border-radius:8px;background:#edf1f7;display:grid;place-items:center;font-weight:700;font-size:10px}.badge{font-size:10px;padding:4px 8px;border-radius:20px;background:#f1f3f6;color:#66707c}.badge.hot{background:#fff0f0;color:#d44d4d}.badge.warm{background:#fff6e6;color:#b57416}.badge.green{background:#eaf8f2;color:#16835a}.badge.blue{background:#eaf0ff;color:#315bd3}.toolbar{display:flex;gap:8px;margin-bottom:16px}.btn{border:1px solid var(--line);background:#fff;border-radius:9px;padding:9px 13px;font:600 12px 'DM Sans';cursor:pointer}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.input{border:1px solid var(--line);border-radius:9px;padding:9px 11px;outline:none;font:inherit;font-size:12px}.pipeline{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.column{background:#eef1f5;border-radius:12px;padding:10px}.column h3{font-size:11px;margin:3px 4px 10px}.task{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px;margin:8px 0;box-shadow:0 4px 10px rgba(0,0,0,.03)}.task b{font-size:12px}.task small{display:block;color:var(--muted);font-size:10px;margin-top:8px}.chart{height:210px;display:flex;align-items:end;gap:9px;padding:10px 4px 5px}.bar{flex:1;background:linear-gradient(180deg,#4c72ff,#b6c5ff);border-radius:7px 7px 2px 2px;min-height:20px}.kpi{font-size:10px;color:var(--muted)}.module-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.module-title h2{font:800 18px Manrope;margin:0}.module-title p{font-size:11px;color:var(--muted);margin:4px 0}.empty{padding:60px;text-align:center;color:var(--muted)}@media(max-width:1000px){.sidebar{width:76px}.brand div:not(.brandmark),.workspace,.nav-item span:last-child,.side-bottom button:first-child{display:none}.nav-item{justify-content:center}.sidebar+.main,main{margin-left:76px}.stats{grid-template-columns:repeat(2,1fr)}.two,.three,.pipeline{grid-template-columns:1fr}header{padding:0 20px}#content{padding:20px}}

/* Team invite modal */
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.45);
  backdrop-filter:blur(4px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:24px;
}

.modal-card{
  width:min(560px,100%);
  background:#fff;
  border:1px solid #e7eaf0;
  border-radius:18px;
  box-shadow:0 24px 70px rgba(15,23,42,.18);
  padding:28px;
}

.modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  margin-bottom:24px;
}

.modal-head h2{
  margin:0;
  font-size:21px;
  color:#111827;
}

.modal-head p{
  margin:6px 0 0;
  color:#6b7280;
  font-size:13px;
}

.modal-close{
  border:0;
  background:#f3f4f6;
  width:34px;
  height:34px;
  border-radius:9px;
  font-size:22px;
  cursor:pointer;
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.form-grid label{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:12px;
  font-weight:600;
  color:#374151;
}

.form-grid input,
.form-grid select{
  width:100%;
  box-sizing:border-box;
  height:44px;
  padding:0 13px;
  border:1px solid #dfe3ea;
  border-radius:10px;
  background:#fff;
  color:#111827;
  outline:none;
}

.form-grid input:focus,
.form-grid select:focus{
  border-color:#6475ff;
  box-shadow:0 0 0 3px rgba(100,117,255,.12);
}

.form-error{
  min-height:20px;
  margin-top:14px;
  color:#dc2626;
  font-size:12px;
}

.modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:8px;
}

.btn.primary{
  background:#4f46e5;
  color:#fff;
  border-color:#4f46e5;
}

.btn.secondary{
  background:#fff;
  color:#374151;
  border:1px solid #dfe3ea;
}

@media(max-width:600px){
  .form-grid{grid-template-columns:1fr}
}

/* =========================================================
   THEDESKHELP — PREMIUM SAAS DESIGN SYSTEM
   ========================================================= */

:root{
  --tdh-bg:#f7f8fc;
  --tdh-surface:#ffffff;
  --tdh-sidebar:#111827;
  --tdh-sidebar-soft:#1a2232;
  --tdh-text:#111827;
  --tdh-muted:#6b7280;
  --tdh-border:#e8ebf1;
  --tdh-primary:#635bff;
  --tdh-primary-dark:#5148e5;
  --tdh-success:#16a36a;
  --tdh-warning:#d99012;
  --tdh-danger:#dc4c64;
  --tdh-radius:14px;
  --tdh-shadow:0 4px 18px rgba(17,24,39,.045);
}

/* Base */
*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  background:var(--tdh-bg);
  color:var(--tdh-text);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}

body{
  font-size:14px;
}

/* App shell */
#app{
  background:var(--tdh-bg);
  min-height:100vh;
}

/* Sidebar */
.sidebar{
  background:linear-gradient(180deg,#111827 0%,#0d1420 100%) !important;
  border-right:1px solid rgba(255,255,255,.06) !important;
  box-shadow:8px 0 30px rgba(15,23,42,.06);
}

.sidebar .brand,
.sidebar-brand{
  padding:24px 22px !important;
  color:#fff !important;
  letter-spacing:-.03em;
}

.sidebar .brand b,
.sidebar-brand b{
  font-size:17px !important;
  font-weight:750 !important;
}

.nav-item{
  margin:3px 10px !important;
  padding:11px 13px !important;
  border-radius:10px !important;
  color:#9ca8bb !important;
  transition:.18s ease !important;
  font-weight:500 !important;
}

.nav-item:hover{
  color:#fff !important;
  background:rgba(255,255,255,.055) !important;
  transform:none !important;
}

.nav-item.active{
  color:#fff !important;
  background:linear-gradient(90deg,rgba(99,91,255,.22),rgba(99,91,255,.08)) !important;
  box-shadow:inset 3px 0 0 var(--tdh-primary);
}

.nav-item .icon{
  opacity:.8;
}

/* Main content */
.main,
.content,
main{
  background:var(--tdh-bg) !important;
}

/* Top header */
.topbar,
.header{
  background:rgba(255,255,255,.88) !important;
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--tdh-border) !important;
  box-shadow:0 1px 10px rgba(15,23,42,.025) !important;
}

#title{
  color:#111827 !important;
  font-weight:750 !important;
  letter-spacing:-.025em;
}

/* Cards */
.card{
  background:var(--tdh-surface) !important;
  border:1px solid var(--tdh-border) !important;
  border-radius:var(--tdh-radius) !important;
  box-shadow:var(--tdh-shadow) !important;
  transition:box-shadow .18s ease,transform .18s ease,border-color .18s ease;
}

.card:hover{
  border-color:#dde2eb !important;
  box-shadow:0 8px 28px rgba(17,24,39,.065) !important;
}

/* Section headers */
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.section-head h2{
  margin:0;
  font-size:15px !important;
  font-weight:700 !important;
  letter-spacing:-.015em;
  color:#171b26 !important;
}

.section-head span{
  color:var(--tdh-muted);
  font-size:12px;
}

/* Stat cards */
.stat{
  position:relative;
  overflow:hidden;
}

.stat .label{
  color:#6b7280 !important;
  font-size:12px !important;
  font-weight:600 !important;
}

.stat .value{
  margin-top:9px;
  color:#111827 !important;
  font-size:28px !important;
  font-weight:750 !important;
  letter-spacing:-.04em;
}

.stat .delta{
  margin-top:7px;
  color:var(--tdh-success) !important;
  font-size:12px !important;
  font-weight:650;
}

/* Buttons */
.btn{
  border:1px solid var(--tdh-border);
  border-radius:9px !important;
  background:#fff;
  color:#374151;
  font-weight:600 !important;
  transition:.16s ease;
  cursor:pointer;
}

.btn:hover{
  transform:translateY(-1px);
  border-color:#cfd5df;
  box-shadow:0 4px 12px rgba(15,23,42,.07);
}

.btn.primary{
  background:var(--tdh-primary) !important;
  border-color:var(--tdh-primary) !important;
  color:#fff !important;
}

.btn.primary:hover{
  background:var(--tdh-primary-dark) !important;
  border-color:var(--tdh-primary-dark) !important;
}

/* Tables */
.table{
  border:1px solid var(--tdh-border);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

.tr{
  min-height:62px;
  padding:12px 18px !important;
  border-bottom:1px solid #eef0f4 !important;
  transition:.15s ease;
}

.tr:last-child{
  border-bottom:0 !important;
}

.tr:not(.th):hover{
  background:#fafbfe;
}

.tr.th{
  min-height:44px;
  background:#fafbfc !important;
  color:#737b8a !important;
  font-size:11px !important;
  font-weight:700 !important;
  text-transform:uppercase;
  letter-spacing:.055em;
}

/* Badges */
.badge{
  display:inline-flex;
  align-items:center;
  padding:5px 9px;
  border-radius:999px;
  background:#f1f2ff;
  color:#5148d8;
  font-size:11px;
  font-weight:650;
}

/* Status */
.status{
  display:inline-flex !important;
  align-items:center;
  gap:6px;
  padding:5px 9px !important;
  border-radius:999px;
  background:#f3f4f6;
  color:#6b7280;
  font-size:11px !important;
  font-weight:650;
}

.status::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:#9ca3af;
}

.status.online{
  background:#ecfdf5 !important;
  color:#087443 !important;
}

.status.online::before{
  background:#16a36a;
}

.status.away{
  background:#fff8e7 !important;
  color:#9a6500 !important;
}

.status.away::before{
  background:#e3a21a;
}

.status.offline{
  background:#f3f4f6 !important;
  color:#6b7280 !important;
}

/* Inputs */
input,
select,
textarea{
  border:1px solid #dfe3ea !important;
  border-radius:9px !important;
  background:#fff !important;
  color:#111827 !important;
  transition:.15s ease;
}

input:focus,
select:focus,
textarea:focus{
  outline:none !important;
  border-color:#817aff !important;
  box-shadow:0 0 0 3px rgba(99,91,255,.11) !important;
}

/* Empty states */
.empty{
  min-height:240px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  color:#8a92a0;
}

.empty b{
  color:#242938;
  font-size:15px;
  margin-bottom:5px;
}

/* Charts */
.chart{
  border-radius:10px;
  overflow:hidden;
}

/* Login */
#loginScreen{
  background:
    radial-gradient(circle at 15% 15%,rgba(99,91,255,.14),transparent 28%),
    radial-gradient(circle at 85% 85%,rgba(79,70,229,.10),transparent 30%),
    #f7f8fc !important;
}

#loginScreen .card{
  border-radius:20px !important;
  box-shadow:0 24px 70px rgba(15,23,42,.10) !important;
}

#loginScreen h1,
#loginScreen h2{
  letter-spacing:-.035em;
  font-weight:780;
}

/* Modal */
.modal-backdrop{
  background:rgba(15,23,42,.52) !important;
  backdrop-filter:blur(7px) !important;
}

.modal-card{
  border:1px solid rgba(255,255,255,.7) !important;
  border-radius:20px !important;
  box-shadow:0 30px 90px rgba(15,23,42,.22) !important;
}

/* Scrollbars */
::-webkit-scrollbar{
  width:7px;
  height:7px;
}

::-webkit-scrollbar-track{
  background:transparent;
}

::-webkit-scrollbar-thumb{
  background:#d5d9e1;
  border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
  background:#b9bec9;
}

/* Responsive */
@media(max-width:900px){
  .sidebar{
    width:220px;
  }
}

@media(max-width:700px){
  .sidebar{
    display:none;
  }

  .main,
  .content,
  main{
    margin-left:0 !important;
    width:100% !important;
  }
}
/* THEDESKHELP PRODUCT UI OVERHAUL */
:root{--dh-bg:#f4f6fa;--dh-border:#e6e9f0;--dh-text:#172033;--dh-primary:#5b5cf0;--dh-sidebar:#0c1220;--dh-shadow:0 8px 30px rgba(21,31,52,.06);--dh-shadow-lg:0 16px 45px rgba(21,31,52,.08)}
html,body{min-height:100%;background:var(--dh-bg)}body{font-family:'DM Sans',sans-serif;color:var(--dh-text);overflow-x:hidden}
.sidebar{width:236px!important;padding:20px 12px!important;background:radial-gradient(circle at 20% 0%,rgba(91,92,240,.13),transparent 30%),linear-gradient(180deg,var(--dh-sidebar),#0a101b)!important;border-right:1px solid rgba(255,255,255,.045);box-shadow:8px 0 30px rgba(5,10,20,.08)}
.brand{padding:3px 10px 22px!important;margin-bottom:6px;border-bottom:1px solid rgba(255,255,255,.08)}.brandmark{width:38px!important;height:38px!important;border-radius:12px!important;box-shadow:0 8px 20px rgba(91,92,240,.28)}.brand b{font-size:12px!important;letter-spacing:.12em!important}.brand span{font-size:9px!important;margin-top:3px;display:block}
.workspace{border:0!important;padding:18px 7px 13px!important}.workspace>span{font-size:9px!important;font-weight:700;letter-spacing:.14em!important}.workspace-btn{height:40px;margin-top:8px!important;border-radius:10px!important;background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.09)!important;color:#e8edf6!important}
.nav-item{min-height:40px;padding:9px 11px!important;margin:2px 0!important;border-radius:10px!important;color:#a9b2c4!important;font-size:12px!important;transition:all .18s ease}.nav-item:hover{background:rgba(255,255,255,.055)!important;color:#fff!important;transform:translateX(2px)}.nav-item.active{background:linear-gradient(90deg,rgba(91,92,240,.24),rgba(91,92,240,.10))!important;color:#fff!important;box-shadow:inset 3px 0 #6869ff}.nav-item.active .nav-icon{color:#9fa0ff!important}.nav-icon{font-size:13px!important;color:#78849a!important}.side-bottom{padding:8px 4px 0;border-top:1px solid rgba(255,255,255,.07)}.side-bottom button{font-size:11px!important}
main{margin-left:236px!important;min-height:100vh;width:calc(100vw - 236px);max-width:none!important}header{height:82px!important;width:100%!important;padding:0 34px!important;background:rgba(255,255,255,.94)!important;backdrop-filter:blur(14px);border-bottom:1px solid var(--dh-border)!important;position:sticky;top:0;z-index:10}.crumb{font-size:10px!important;color:#9aa3b3!important;margin-bottom:6px!important}h1{font-size:21px!important;color:#151d2d}.top-actions{gap:8px!important}.icon-btn{width:36px!important;height:36px!important;border-radius:10px!important;color:#526078;box-shadow:none!important;background:#fff!important}.avatar{width:36px!important;height:36px!important;background:#eef0ff!important;color:#5759df!important}#content{width:100%!important;max-width:none!important;padding:28px 34px 42px!important}
.module-title{margin-bottom:22px!important;min-height:42px}.module-title h2{font-size:20px!important;letter-spacing:-.025em;color:#182033}.module-title p{font-size:11px!important;color:#8791a4!important}.card{border:1px solid var(--dh-border)!important;border-radius:14px!important;box-shadow:var(--dh-shadow)!important}.card:hover{box-shadow:var(--dh-shadow-lg)!important}.stats{gap:14px!important;grid-template-columns:repeat(5,minmax(150px,1fr))!important}.stat{padding:19px!important;min-height:112px}.stat .label{font-size:10px!important;color:#8791a4!important}.stat .value{font-size:24px!important;color:#172033!important}.delta{font-size:10px!important}.two{grid-template-columns:minmax(0,1.65fr) minmax(320px,.85fr)!important;gap:14px!important}.three{gap:14px!important}.section{padding:20px!important}.section-head{margin-bottom:15px!important}.section-head h2{font-size:14px!important}.section-head span{font-size:10px!important}
.table th{background:#fafbfc;color:#9099aa!important;font-size:9px!important;padding:11px 10px!important}.table td{padding:13px 10px!important;color:#364055;font-size:11px!important}.table tbody tr{transition:background .15s ease}.table tbody tr:hover{background:#fafbff}.toolbar{align-items:center;margin-bottom:14px!important}.input{min-height:38px;border-color:#dfe3eb!important;background:#fff!important;border-radius:10px!important;color:#273149}.input:focus{border-color:#8a8cf5!important;box-shadow:0 0 0 3px rgba(91,92,240,.10)}.btn{min-height:38px;padding:9px 14px!important;border-radius:10px!important;color:#4e596d}.btn:hover{background:#f7f8fb!important}.btn.primary{background:linear-gradient(135deg,#5b5cf0,#6e70ff)!important;border-color:#5b5cf0!important;box-shadow:0 6px 16px rgba(91,92,240,.18)}.btn.primary:hover{background:#4849d9!important}
#content .dh-inbox{display:grid;grid-template-columns:300px minmax(420px,1fr) 310px;min-height:calc(100vh - 180px);height:calc(100vh - 180px);overflow:hidden;background:#fff}.dh-inbox-list{border-right:1px solid var(--dh-border);background:#fff;min-width:0;overflow:auto}.dh-inbox-list-head{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--dh-border)}.dh-inbox-list-head strong{font-size:12px}.dh-inbox-list-head span{font-size:10px;color:#929bad}.dh-conversation{padding:14px 15px;border-bottom:1px solid #edf0f4;cursor:pointer;transition:background .15s ease,box-shadow .15s ease}.dh-conversation:hover{background:#fafbff}.dh-conversation.active{background:#f4f5ff;box-shadow:inset 3px 0 #6263ef}.dh-conversation .person{gap:10px}.dh-conversation .mini{width:34px;height:34px;border-radius:10px;background:#edf0f7;color:#59657b}.dh-conversation.active .mini{background:#e1e3ff;color:#5557df}.dh-conversation-name{font-size:11px;color:#20283a}.dh-conversation-meta{font-size:9px;color:#929bad;margin-top:2px}.dh-conversation-preview{font-size:10px;color:#778196;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:9px 0 0 44px}
.dh-chat{min-width:0;display:flex;flex-direction:column;background:#fff}.dh-chat-head{height:58px;flex:none;padding:0 20px;border-bottom:1px solid var(--dh-border);display:flex;align-items:center;justify-content:space-between}.dh-chat-title{display:flex;align-items:center;gap:10px}.dh-chat-title strong{font-size:12px}.dh-chat-title span{display:block;font-size:9px;color:#8a94a6;margin-top:2px}.dh-chat-body{flex:1;min-height:0;padding:24px 26px;overflow:auto;background:radial-gradient(circle at 50% 0%,rgba(95,97,240,.035),transparent 35%),#fff}.dh-msg{max-width:min(68%,560px);padding:12px 14px;border-radius:13px;margin-bottom:12px;font-size:11px;line-height:1.55;color:#30394b}.dh-msg.in{background:#f3f5f8;border:1px solid #edf0f4;border-top-left-radius:5px}.dh-msg.out{margin-left:auto;background:#eef0ff;border:1px solid #e1e3ff;border-top-right-radius:5px;color:#303568}.dh-msg-time{display:block;margin-top:6px;font-size:8px;color:#9aa3b3}.dh-composer{flex:none;display:flex;gap:9px;padding:14px 18px;border-top:1px solid var(--dh-border);background:#fff}.dh-composer input{flex:1;min-width:0;height:40px;border:1px solid #dfe3eb;border-radius:10px;padding:0 13px;outline:0;font:inherit;font-size:11px}.dh-composer input:focus{border-color:#8a8cf5;box-shadow:0 0 0 3px rgba(91,92,240,.09)}.dh-send{height:40px;padding:0 17px;border:0;border-radius:10px;color:#fff;background:#5b5cf0;font-weight:700;font-size:11px;cursor:pointer}
.dh-customer{border-left:1px solid var(--dh-border);background:#fbfcfe;min-width:0;overflow:auto}.dh-customer-head{height:58px;padding:0 18px;border-bottom:1px solid var(--dh-border);display:flex;align-items:center;justify-content:space-between}.dh-customer-head strong{font-size:11px}.dh-customer-head span{font-size:9px;color:#929bad}.dh-profile{padding:22px 18px;border-bottom:1px solid var(--dh-border);text-align:center}.dh-profile-avatar{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;margin:0 auto 10px;background:#e9ebff;color:#5759df;font-weight:800;font-size:16px}.dh-profile strong{font-size:13px}.dh-profile p{margin:4px 0 0;font-size:9px;color:#8b95a7}.dh-info{padding:18px;border-bottom:1px solid var(--dh-border)}.dh-info h4{margin:0 0 12px;font-size:9px;text-transform:uppercase;letter-spacing:.09em;color:#929bad}.dh-info-row{display:flex;justify-content:space-between;gap:12px;padding:7px 0;font-size:10px}.dh-info-row span:first-child{color:#8b95a7}.dh-info-row span:last-child{color:#30394b;font-weight:600;text-align:right}.dh-activity{padding:18px}.dh-activity-item{position:relative;padding:0 0 15px 17px;font-size:9px;color:#69758a}.dh-activity-item:before{content:"";position:absolute;left:1px;top:4px;width:7px;height:7px;border-radius:50%;background:#6768ef}.dh-activity-item:after{content:"";position:absolute;left:4px;top:12px;bottom:0;width:1px;background:#e0e3ea}.dh-activity-item:last-child:after{display:none}
@media(max-width:1250px){#content .dh-inbox{grid-template-columns:270px minmax(360px,1fr)}.dh-customer{display:none}}@media(max-width:1050px){.stats{grid-template-columns:repeat(3,minmax(150px,1fr))!important}#content .dh-inbox{grid-template-columns:260px minmax(0,1fr)}}@media(max-width:800px){.sidebar{width:72px!important}main{margin-left:72px!important;width:calc(100vw - 72px)}.brand div:not(.brandmark),.workspace,.nav-item span:last-child,.side-bottom button:first-child{display:none}.nav-item{justify-content:center}#content{padding:20px!important}header{padding:0 20px!important}.stats{grid-template-columns:repeat(2,minmax(130px,1fr))!important}#content .dh-inbox{grid-template-columns:1fr;height:calc(100vh - 150px)}.dh-inbox-list{display:none}}

/* =========================================================
   THEDESKHELP — PREMIUM APP SHELL V2
   ========================================================= */

:root{
  --dh-bg:#f5f7fb;
  --dh-surface:#ffffff;
  --dh-border:#e7ebf2;
  --dh-text:#172033;
  --dh-muted:#7b8495;
  --dh-primary:#635bff;
  --dh-primary-dark:#5148e8;
  --dh-sidebar:#111827;
  --dh-sidebar-2:#182235;
  --dh-shadow:0 8px 30px rgba(20,30,55,.06);
}

/* Main application */
#app{
  min-height:100vh !important;
  background:var(--dh-bg) !important;
}

.app,
.app-shell,
.dashboard,
.layout{
  width:100% !important;
  max-width:none !important;
}

/* Sidebar */
.sidebar{
  width:248px !important;
  min-width:248px !important;
  background:linear-gradient(180deg,#111827 0%,#151d2d 100%) !important;
  border-right:1px solid rgba(255,255,255,.06) !important;
  box-shadow:8px 0 30px rgba(15,23,42,.08) !important;
}

.sidebar .brand,
.sidebar-brand{
  padding:25px 22px !important;
}

.sidebar nav,
.sidebar .nav{
  padding:8px 12px !important;
}

.sidebar nav a,
.sidebar .nav a,
.sidebar button{
  border-radius:10px !important;
  margin:3px 0 !important;
  padding:11px 13px !important;
  color:#aeb8ca !important;
  transition:all .18s ease !important;
}

.sidebar nav a:hover,
.sidebar .nav a:hover{
  background:rgba(255,255,255,.07) !important;
  color:#fff !important;
  transform:translateX(2px);
}

.sidebar nav a.active,
.sidebar .nav a.active{
  background:linear-gradient(90deg,rgba(99,91,255,.24),rgba(99,91,255,.10)) !important;
  color:#fff !important;
  box-shadow:inset 3px 0 0 #7169ff !important;
}

/* Main workspace */
.main,
.main-content,
.workspace{
  min-width:0 !important;
  width:calc(100% - 248px) !important;
  max-width:none !important;
  flex:1 !important;
}

/* Top bar */
.topbar{
  width:100% !important;
  height:72px !important;
  min-height:72px !important;
  padding:0 30px !important;
  background:rgba(255,255,255,.92) !important;
  border-bottom:1px solid var(--dh-border) !important;
  backdrop-filter:blur(18px) !important;
  box-shadow:0 1px 0 rgba(20,30,55,.02) !important;
}

.topbar h1,
.topbar .title{
  font-size:21px !important;
  font-weight:700 !important;
  color:var(--dh-text) !important;
}

/* Page content */
.content,
.page-content,
.main-inner{
  width:100% !important;
  max-width:none !important;
  padding:30px !important;
}

/* Prevent the old narrow 900px layout */
.content > *,
.page-content > *,
.main-inner > *{
  max-width:none !important;
}

/* Page headers */
.section-head{
  margin-bottom:22px !important;
}

.section-head h2{
  color:var(--dh-text) !important;
  font-size:18px !important;
  font-weight:700 !important;
  letter-spacing:-.2px !important;
}

.section-head span{
  color:var(--dh-muted) !important;
}

/* Cards */
.card{
  background:var(--dh-surface) !important;
  border:1px solid var(--dh-border) !important;
  border-radius:16px !important;
  box-shadow:var(--dh-shadow) !important;
}

.card:hover{
  box-shadow:0 12px 38px rgba(20,30,55,.08) !important;
}

/* Stats */
.stats{
  gap:18px !important;
}

.stat{
  min-height:130px !important;
  padding:22px !important;
  position:relative !important;
  overflow:hidden !important;
}

.stat:after{
  content:"";
  position:absolute;
  width:90px;
  height:90px;
  right:-30px;
  top:-30px;
  border-radius:50%;
  background:rgba(99,91,255,.06);
}

.stat .label{
  color:var(--dh-muted) !important;
  font-size:12px !important;
  font-weight:600 !important;
}

.stat .value{
  color:var(--dh-text) !important;
  font-size:29px !important;
  font-weight:750 !important;
  margin-top:9px !important;
}

.stat .delta{
  color:#16a36a !important;
  font-weight:600 !important;
  margin-top:7px !important;
}

/* Buttons */
.btn{
  border:1px solid var(--dh-border) !important;
  border-radius:9px !important;
  background:#fff !important;
  color:#354052 !important;
  font-weight:600 !important;
  padding:10px 15px !important;
  transition:.18s ease !important;
}

.btn:hover{
  border-color:#cfd5e1 !important;
  transform:translateY(-1px) !important;
  box-shadow:0 5px 15px rgba(20,30,55,.07) !important;
}

.btn.primary{
  background:linear-gradient(135deg,var(--dh-primary),var(--dh-primary-dark)) !important;
  border-color:transparent !important;
  color:#fff !important;
  box-shadow:0 5px 14px rgba(99,91,255,.22) !important;
}

/* Inputs */
.input,
input,
select,
textarea{
  border:1px solid #dfe4ec !important;
  border-radius:9px !important;
  background:#fff !important;
  color:var(--dh-text) !important;
  outline:none !important;
}

.input:focus,
input:focus,
select:focus,
textarea:focus{
  border-color:#918bff !important;
  box-shadow:0 0 0 3px rgba(99,91,255,.10) !important;
}

/* Tables */
table{
  width:100% !important;
  border-collapse:separate !important;
  border-spacing:0 !important;
}

th{
  background:#f8f9fc !important;
  color:#7a8495 !important;
  font-size:11px !important;
  text-transform:uppercase !important;
  letter-spacing:.06em !important;
  font-weight:700 !important;
}

td,th{
  padding:14px 16px !important;
  border-bottom:1px solid #edf0f4 !important;
}

tr:hover td{
  background:#fafbfe !important;
}

/* Pipeline */
.pipeline{
  width:100% !important;
  display:grid !important;
  grid-template-columns:repeat(4,minmax(220px,1fr)) !important;
  gap:16px !important;
}

.column{
  background:#f8f9fc !important;
  border:1px solid var(--dh-border) !important;
  border-radius:14px !important;
  padding:14px !important;
  min-height:420px !important;
}

.task{
  background:#fff !important;
  border:1px solid #e6eaf0 !important;
  border-radius:11px !important;
  padding:15px !important;
  margin:10px 0 !important;
  box-shadow:0 3px 12px rgba(20,30,55,.04) !important;
}

/* Inbox — use available screen */
.card.section{
  width:100% !important;
}

/* Large inbox conversation container */
.card.section > div{
  max-width:none;
}

/* Toolbar */
.toolbar{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  flex-wrap:wrap !important;
}

/* Badges */
.badge{
  border-radius:999px !important;
  padding:5px 9px !important;
  font-size:10px !important;
  font-weight:700 !important;
}

.badge.hot{
  background:#fff0f0 !important;
  color:#e24d4d !important;
}

/* Empty states */
.empty{
  min-height:300px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  color:var(--dh-muted) !important;
}

/* Responsive */
@media(max-width:1100px){
  .sidebar{
    width:220px !important;
    min-width:220px !important;
  }

  .main,
  .main-content,
  .workspace{
    width:calc(100% - 220px) !important;
  }

  .content,
  .page-content,
  .main-inner{
    padding:22px !important;
  }

  .pipeline{
    grid-template-columns:repeat(2,minmax(220px,1fr)) !important;
  }
}

@media(max-width:760px){
  .sidebar{
    width:70px !important;
    min-width:70px !important;
  }

  .main,
  .main-content,
  .workspace{
    width:calc(100% - 70px) !important;
  }

  .content,
  .page-content,
  .main-inner{
    padding:16px !important;
  }

  .pipeline{
    grid-template-columns:1fr !important;
  }
}


/* =========================================================
   THEDESKHELP — PREMIUM MODALS
   ========================================================= */

.dh-modal-overlay{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(15,23,42,.58);
  backdrop-filter:blur(8px);
  animation:dhFadeIn .16s ease;
}

.dh-modal{
  width:min(520px,100%);
  background:#fff;
  border:1px solid rgba(255,255,255,.8);
  border-radius:18px;
  box-shadow:0 28px 90px rgba(15,23,42,.25);
  overflow:hidden;
  animation:dhModalIn .2s ease;
}

.dh-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  padding:24px 26px 20px;
  border-bottom:1px solid #edf0f5;
}

.dh-modal-eyebrow{
  font-size:10px;
  font-weight:800;
  letter-spacing:.12em;
  color:#635bff;
  margin-bottom:7px;
}

.dh-modal-head h2{
  margin:0;
  font-size:20px;
  line-height:1.2;
  color:#172033;
  font-weight:750;
}

.dh-modal-close{
  width:34px;
  height:34px;
  border:0;
  border-radius:9px;
  background:#f4f5f8;
  color:#697386;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  transition:.15s ease;
}

.dh-modal-close:hover{
  background:#eceef4;
  color:#172033;
}

.dh-modal-body{
  padding:22px 26px 8px;
}

.dh-field{
  display:block;
  margin-bottom:17px;
}

.dh-field span{
  display:block;
  margin-bottom:7px;
  font-size:12px;
  font-weight:700;
  color:#3b4558;
}

.dh-field input,
.dh-field select{
  width:100%;
  box-sizing:border-box;
  height:44px;
  padding:0 13px;
  border:1px solid #dfe4ec !important;
  border-radius:10px !important;
  background:#fff !important;
  color:#172033 !important;
  font-size:13px;
  transition:.15s ease;
}

.dh-field input::placeholder{
  color:#a3aaba;
}

.dh-field input:focus,
.dh-field select:focus{
  border-color:#8a83ff !important;
  box-shadow:0 0 0 4px rgba(99,91,255,.10) !important;
}

.dh-modal-foot{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  padding:18px 26px 22px;
  border-top:1px solid #edf0f5;
  background:#fbfcfe;
}

.dh-modal-cancel,
.dh-modal-submit{
  height:40px;
  padding:0 17px;
  border-radius:9px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:.15s ease;
}

.dh-modal-cancel{
  border:1px solid #dfe4ec;
  background:#fff;
  color:#4b5567;
}

.dh-modal-cancel:hover{
  background:#f5f6f9;
}

.dh-modal-submit{
  border:0;
  color:#fff;
  background:linear-gradient(135deg,#635bff,#5148e8);
  box-shadow:0 5px 14px rgba(99,91,255,.22);
}

.dh-modal-submit:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(99,91,255,.28);
}

@keyframes dhFadeIn{
  from{opacity:0}
  to{opacity:1}
}

@keyframes dhModalIn{
  from{opacity:0;transform:translateY(8px) scale(.98)}
  to{opacity:1;transform:translateY(0) scale(1)}
}


/* =========================================================
   THEDESKHELP — LEADS CRM UI
   ========================================================= */

.lead-kpis{
  display:grid;
  grid-template-columns:1.5fr repeat(4,1fr);
  gap:14px;
  margin-bottom:20px;
}

.lead-kpi-main,
.lead-stage-card{
  background:#fff;
  border:1px solid #e5e9f0;
  border-radius:15px;
  padding:18px 20px;
  box-shadow:0 5px 20px rgba(20,30,55,.04);
}

.lead-kpi-main{
  background:linear-gradient(135deg,#6259f5,#5149df);
  color:#fff;
  border-color:transparent;
}

.lead-kpi-label{
  font-size:11px;
  font-weight:700;
  opacity:.78;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.lead-kpi-value{
  font-size:27px;
  font-weight:800;
  margin-top:7px;
}

.lead-kpi-sub{
  font-size:11px;
  margin-top:4px;
  opacity:.75;
}

.lead-stage-top{
  display:flex;
  justify-content:space-between;
  color:#7d8798;
  font-size:11px;
  font-weight:700;
}

.lead-stage-card strong{
  display:block;
  font-size:25px;
  color:#172033;
  margin-top:9px;
}

.lead-stage-card small{
  color:#9aa2b1;
  font-size:10px;
}

.lead-toolbar{
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:17px;
}

.lead-search{
  flex:1;
  min-width:250px;
  height:42px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 12px;
  background:#fff;
  border:1px solid #dfe4ec;
  border-radius:10px;
}

.lead-search span{
  font-size:18px;
  color:#8b94a5;
}

.lead-search input{
  width:100%;
  height:100%;
  border:0 !important;
  box-shadow:none !important;
  outline:none !important;
  padding:0 !important;
}

.lead-toolbar select{
  height:42px;
  padding:0 12px;
  min-width:130px;
  font-size:12px;
}

.lead-table-card{
  background:#fff;
  border:1px solid #e4e8ef;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 8px 30px rgba(20,30,55,.05);
}

.lead-table-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:19px 21px;
  border-bottom:1px solid #edf0f4;
}

.lead-table-head h3{
  margin:0;
  font-size:15px;
  color:#172033;
}

.lead-table-head span{
  color:#8992a2;
  font-size:11px;
}

.lead-count{
  padding:6px 9px;
  background:#f4f5f9;
  border-radius:7px;
  font-weight:700;
}

.lead-table-wrap{
  overflow-x:auto;
}

.lead-table{
  width:100%;
  border-collapse:collapse;
}

.lead-table th{
  padding:12px 17px !important;
  font-size:9px !important;
  color:#929baa !important;
  background:#fafbfc !important;
  text-align:left;
}

.lead-table td{
  padding:15px 17px !important;
  border-bottom:1px solid #eef1f5 !important;
  font-size:12px;
  color:#4b5567;
}

.lead-row{
  cursor:pointer;
  transition:background .15s ease;
}

.lead-row:hover td{
  background:#f8f9ff !important;
}

.lead-row:last-child td{
  border-bottom:0 !important;
}

.lead-person{
  display:flex;
  align-items:center;
  gap:11px;
}

.lead-avatar{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:#eef0ff;
  color:#5b55e9;
  font-size:11px;
  font-weight:800;
}

.lead-person strong{
  display:block;
  color:#1c2638;
  font-size:12px;
}

.lead-person span{
  display:block;
  color:#929aaa;
  font-size:10px;
  margin-top:3px;
}

.lead-company{
  color:#4b5567;
  font-weight:600;
}

.lead-value{
  color:#1d2739;
  font-weight:750;
}

.lead-status{
  display:inline-flex;
  align-items:center;
  padding:5px 9px;
  border-radius:999px;
  background:#eef2ff;
  color:#5664dc;
  font-size:10px;
  font-weight:750;
}

.lead-status.new{
  background:#f0f2f5;
  color:#697386;
}

.lead-status.contacted{
  background:#eef4ff;
  color:#3f72c9;
}

.lead-status.qualified{
  background:#eaf8f1;
  color:#17845b;
}

.lead-status.proposal{
  background:#fff4e5;
  color:#bd7418;
}

.lead-status.won{
  background:#e8f8ef;
  color:#168653;
}

.lead-owner{
  display:flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
}

.owner-dot{
  width:25px;
  height:25px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#f0f2f7;
  color:#687286;
  font-size:9px;
  font-weight:800;
}

.lead-source{
  color:#7b8494;
}

.lead-arrow{
  color:#a5adba;
  font-size:20px;
  opacity:0;
  transition:.15s;
}

.lead-row:hover .lead-arrow{
  opacity:1;
}

/* Lead detail modal */

.dh-lead-modal{
  width:min(600px,100%);
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 30px 100px rgba(15,23,42,.28);
  animation:dhModalIn .2s ease;
}

.dh-lead-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  padding:25px 27px;
  border-bottom:1px solid #edf0f5;
}

.dh-lead-profile{
  display:flex;
  align-items:center;
  gap:13px;
}

.dh-lead-big-avatar{
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:13px;
  background:linear-gradient(135deg,#6259f5,#7b73ff);
  color:#fff;
  font-size:16px;
  font-weight:800;
}

.dh-lead-profile h2{
  margin:2px 0 3px;
  font-size:19px;
  color:#172033;
}

.dh-lead-profile span{
  color:#8b94a4;
  font-size:11px;
}

.dh-lead-modal-body{
  padding:22px 27px;
}

.dh-lead-highlight{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:22px;
}

.dh-lead-highlight > div{
  padding:16px;
  border-radius:12px;
  background:#f8f9fc;
  border:1px solid #edf0f4;
}

.dh-lead-highlight span,
.dh-detail-grid span{
  display:block;
  color:#929baa;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  margin-bottom:7px;
}

.dh-lead-highlight strong{
  font-size:22px;
  color:#172033;
}

.dh-detail-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px 25px;
  padding-bottom:22px;
  border-bottom:1px solid #edf0f4;
}

.dh-detail-grid strong{
  font-size:12px;
  color:#354052;
}

.dh-activity-box{
  padding-top:20px;
}

.dh-activity-title{
  font-size:13px;
  font-weight:750;
  color:#172033;
  margin-bottom:14px;
}

.dh-activity-item{
  display:flex;
  gap:10px;
  margin-bottom:13px;
}

.activity-dot{
  width:8px;
  height:8px;
  margin-top:5px;
  border-radius:50%;
  background:#635bff;
  box-shadow:0 0 0 4px #eeecff;
}

.dh-activity-item strong{
  display:block;
  color:#3b4558;
  font-size:11px;
}

.dh-activity-item span{
  display:block;
  color:#969ead;
  font-size:10px;
  margin-top:3px;
}

@media(max-width:1100px){
  .lead-kpis{
    grid-template-columns:1fr 1fr;
  }

  .lead-kpi-main{
    grid-column:span 2;
  }
}

@media(max-width:760px){
  .lead-kpis{
    grid-template-columns:1fr;
  }

  .lead-kpi-main{
    grid-column:auto;
  }

  .lead-toolbar{
    flex-wrap:wrap;
  }

  .lead-search{
    width:100%;
    flex-basis:100%;
  }
}


/* =========================================================
   LEAD ACTION BUTTONS
   ========================================================= */

.lead-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  white-space:nowrap;
}

.lead-action-btn{
  border:1px solid #e1e5ec;
  background:#fff;
  color:#687286;
  border-radius:7px;
  padding:6px 8px;
  font-size:10px;
  font-weight:700;
  cursor:pointer;
  transition:.15s ease;
}

.lead-action-btn:hover{
  background:#f5f6fb;
  border-color:#cfd5e0;
  color:#3f49c7;
}

.lead-action-btn.danger:hover{
  background:#fff1f1;
  border-color:#ffd0d0;
  color:#d94848;
}

.dh-delete-modal{
  width:min(400px,100%);
  background:#fff;
  border-radius:18px;
  padding:28px;
  text-align:center;
  box-shadow:0 30px 100px rgba(15,23,42,.28);
  animation:dhModalIn .2s ease;
}

.dh-delete-icon{
  width:48px;
  height:48px;
  margin:0 auto 15px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:#fff0f0;
  color:#e04d4d;
  font-size:22px;
  font-weight:800;
}

.dh-delete-modal h2{
  margin:0;
  color:#172033;
  font-size:19px;
}

.dh-delete-modal p{
  margin:10px auto 22px;
  max-width:320px;
  color:#7c8595;
  font-size:12px;
  line-height:1.6;
}

.dh-delete-actions{
  display:flex;
  justify-content:center;
  gap:9px;
}

.dh-delete-confirm{
  height:40px;
  padding:0 17px;
  border:0;
  border-radius:9px;
  background:#e04d4d;
  color:#fff;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:.15s ease;
}

.dh-delete-confirm:hover{
  background:#cc3f3f;
  transform:translateY(-1px);
}

