:root{--ink:#20364a;--muted:#667787;--line:#dce5ec;--soft:#f4f7fa;--paper:#fff;--side:#f2f5f7;--blue:#557fae;--green:#4b967d;--amber:#c99035;--red:#c85f59;--shadow:0 12px 32px rgba(31,55,75,.08)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%}body{font-family:"Segoe UI",Arial,sans-serif;color:var(--ink);background:#f6f8fa}button,input,select{font:inherit;color:inherit}.shell{min-height:100vh;display:grid;grid-template-columns:226px minmax(0,1fr)}.side{position:sticky;top:0;height:100vh;background:var(--side);border-right:1px solid var(--line);padding:20px 14px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;padding:2px 10px 22px;color:inherit;text-decoration:none}.brand-mark{width:34px;height:34px;border-radius:10px;background:#2b4a64;display:grid;place-items:center;color:white;font-weight:900}.brand strong,.brand small{display:block}.brand strong{font-size:17px}.brand small{font-size:9px;color:#82909a;text-transform:uppercase;letter-spacing:.7px;margin-top:2px}.side nav{display:grid;gap:3px}.side a{display:grid;grid-template-columns:24px 1fr auto;gap:8px;align-items:center;padding:10px 11px;border-radius:9px;color:#536779;text-decoration:none;font-size:13px}.side a:hover{background:#fff}.side a.active{background:#dfe8ef;color:#213b51;font-weight:700}.side a b{font-size:10px;background:#d8e2ea;padding:2px 6px;border-radius:10px}.nav-label{font-size:9px;color:#8b99a4;text-transform:uppercase;letter-spacing:1px;font-weight:700;margin:22px 10px 8px}.side-user{margin-top:auto;border-top:1px solid var(--line);padding:14px 8px 0;display:flex;gap:9px;align-items:center}.avatar{width:34px;height:34px;border-radius:10px;background:#334f66;color:#fff;display:grid;place-items:center;font-size:10px;font-weight:700}.side-user strong,.side-user small{display:block}.side-user strong{font-size:11px}.side-user small{font-size:9px;color:#84919b;margin-top:2px}.main{min-width:0}.topbar{height:78px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px}.topbar h1{margin:0;font-size:22px}.topbar p{margin:5px 0 0;color:var(--muted);font-size:11px}.top-actions{display:flex;gap:8px;align-items:center}.search{height:38px;width:260px;border:1px solid var(--line);border-radius:9px;background:#f8fafb;padding:0 11px;display:flex;align-items:center;gap:7px}.search input{border:0;outline:0;background:transparent;width:100%;font-size:12px}.button{height:37px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 13px;font-size:12px;font-weight:650;cursor:pointer}.button:hover{background:#f2f6f9}.button.primary{background:#315c7e;color:#fff;border-color:#315c7e}.content{padding:24px 28px 46px;max-width:1500px;margin:0 auto}.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.section-head h2{font-size:18px;margin:0}.section-head p{font-size:11px;color:var(--muted);margin:5px 0 0}.cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px;margin-bottom:20px}.metric{background:#fff;border:1px solid var(--line);border-radius:12px;padding:15px;box-shadow:0 3px 12px rgba(35,58,75,.03)}.metric span{font-size:11px;color:#748491}.metric strong{display:block;font-size:25px;margin:9px 0 4px}.metric small{font-size:9px;color:#8b98a2}.metric.danger strong{color:var(--red)}.metric.warn strong{color:var(--amber)}.grid-2{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.7fr);gap:16px}.panel{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:0 4px 18px rgba(35,58,75,.035);overflow:hidden}.panel-head{padding:16px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.panel-head h3{font-size:14px;margin:0}.panel-head span{font-size:10px;color:#7d8d98}.chart{height:250px;padding:20px 20px 24px;display:flex;align-items:flex-end;gap:9px;position:relative;background:linear-gradient(#fff,#fafcfd)}.bar{flex:1;min-width:12px;border-radius:5px 5px 0 0;background:#b8ccdc;position:relative}.bar.today{background:#557fae}.bar:hover:after{content:attr(data-value);position:absolute;left:50%;top:-26px;transform:translateX(-50%);background:#20364a;color:#fff;font-size:9px;padding:4px 6px;border-radius:5px}.legend{padding:0 18px 16px;font-size:10px;color:#71828f}.legend i{display:inline-block;width:8px;height:8px;border-radius:2px;background:#557fae;margin-right:5px}.todo{padding:14px}.todo-input{display:flex;gap:7px}.todo-input input{height:38px;border:1px solid var(--line);border-radius:8px;padding:0 10px;width:100%;font-size:12px}.todo-list{list-style:none;padding:0;margin:13px 0 0}.todo-list li{padding:11px 5px;border-top:1px solid #edf1f4;font-size:11px;display:flex;align-items:center;gap:8px}.todo-list input{accent-color:#557fae}.table-card{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:auto}.table-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 15px;border-bottom:1px solid var(--line)}.table-toolbar .search{width:330px}.pager{font-size:11px;color:#687b89;display:flex;align-items:center;gap:7px}.pager button{width:31px;height:31px;border:1px solid var(--line);background:#fff;border-radius:7px}.data-table{width:100%;border-collapse:collapse;min-width:900px}.data-table th{text-align:left;background:#f5f7f9;color:#758491;font-size:10px;text-transform:uppercase;letter-spacing:.55px;padding:12px 14px}.data-table td{padding:14px;border-top:1px solid var(--line);font-size:12px}.person{display:flex;align-items:center;gap:9px}.person .avatar{background:#e2ebf3;color:#355f83}.person strong,.person small{display:block}.person small{font-size:10px;color:#83919b;margin-top:3px}.badge{display:inline-flex;padding:4px 7px;border-radius:8px;background:#eef3f7;color:#486a83;font-size:10px}.kb-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.kb-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}.kb-card>span{width:36px;height:36px;border-radius:10px;background:#e8eff5;display:grid;place-items:center;color:#3e6687}.kb-card h3{font-size:15px;margin:13px 0 6px}.kb-card p{font-size:11px;color:#74838e;line-height:1.5}.kb-card ul{list-style:none;margin:14px 0 0;padding:0;border-top:1px solid var(--line)}.kb-card li{padding:10px 0;border-bottom:1px solid #eef1f3;font-size:11px}.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.report-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:18px}.report-card h3{font-size:14px;margin:0 0 16px}.progress-row{margin:13px 0}.progress-row div{display:flex;justify-content:space-between;font-size:11px;margin-bottom:6px}.track{height:8px;border-radius:5px;background:#eaf0f4;overflow:hidden}.fill{height:100%;background:#557fae;border-radius:5px}.fill.green{background:#4b967d}.fill.amber{background:#c99035}.notice{background:#fff8e9;border:1px solid #efdcae;border-radius:10px;padding:12px 14px;font-size:11px;color:#715f36;margin-bottom:16px}.toast{position:fixed;right:22px;bottom:22px;background:#20364a;color:#fff;border-radius:10px;padding:12px 15px;font-size:11px;transform:translateY(90px);opacity:0;transition:.25s}.toast.show{transform:none;opacity:1}@media(max-width:1100px){.shell{grid-template-columns:74px 1fr}.side{padding:18px 10px}.brand>span:last-child,.side a span:nth-child(2),.side a b,.nav-label,.side-user div{display:none}.side a{grid-template-columns:1fr;justify-items:center}.cards{grid-template-columns:repeat(3,1fr)}.grid-2{grid-template-columns:1fr}}@media(max-width:720px){.shell{display:block}.side{position:static;width:100%;height:auto;flex-direction:row;overflow:auto}.side nav{display:flex}.brand,.side-user,.nav-label{display:none}.topbar{height:auto;padding:16px}.top-actions .search{display:none}.content{padding:16px}.cards{grid-template-columns:repeat(2,1fr)}.kb-grid,.report-grid{grid-template-columns:1fr}}
/* Language selector shared by all workspace pages. */
.language-select{height:37px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 9px;font-size:12px;outline:0}.language-select:focus{border-color:#6d9bd4}

/* Freshdesk uses a narrow global navigation rail on desktop. */
@media(min-width:721px){.shell{grid-template-columns:66px minmax(0,1fr)}.side{padding:18px 8px}.brand{justify-content:center;padding:0 8px 20px}.brand>span:last-child,.side a span:nth-child(2),.side a b,.nav-label,.side-user div{display:none}.side a{grid-template-columns:1fr;justify-items:center;padding:11px 7px}.side-user{justify-content:center;padding-left:0;padding-right:0}}

/* Freshdesk density for data and knowledge pages. */
@media(min-width:721px){
  .contacts-page .topbar,.knowledge-page .topbar{height:64px;padding:0 24px}
  .contacts-page .topbar h1,.knowledge-page .topbar h1{font-size:16px;font-weight:600}
  .contacts-page .topbar p,.knowledge-page .topbar p{display:none}
  .contacts-page .content,.knowledge-page .content{max-width:none;margin:0;padding:14px 10px 36px}
}
.contacts-page .table-card{border-radius:10px}
.contacts-page .table-toolbar{min-height:56px;padding:9px 14px;justify-content:flex-start}
.contacts-page .select-contacts{display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap}
.contacts-page .table-toolbar .search{width:300px;margin-right:auto;background:#fff}
.contacts-page .pager .button{height:34px;padding:0 11px}
.contacts-page .data-table{min-width:1120px;table-layout:fixed}
.contacts-page .data-table th{height:43px;padding:10px 12px;font-size:11px;text-transform:none;letter-spacing:0;background:#f5f7f9;color:#40576a}
.contacts-page .data-table td{height:56px;padding:8px 12px;font-size:12px;color:#3e5364}
.contacts-page .data-table th:first-child,.contacts-page .data-table td:first-child{width:46px;text-align:center}
.contacts-page .data-table th:nth-child(2){width:190px}.contacts-page .data-table th:nth-child(3){width:105px}.contacts-page .data-table th:nth-child(4){width:145px}.contacts-page .data-table th:nth-child(5){width:220px}
.contacts-page .person .avatar{width:34px;height:34px;border-radius:50%}
.contacts-page .person strong{font-size:12px}.contacts-page .person small{font-size:9px}
.knowledge-page .content{background:#fff}
.knowledge-page .draft-section,.knowledge-page .categories-head,.knowledge-page .kb-grid{max-width:1500px;margin-left:auto;margin-right:auto}
.draft-section{padding:28px 0 24px}.draft-section .section-head{margin-bottom:14px}.draft-section .section-head h2,.categories-head h2{font-size:16px}.draft-section .section-head a{font-size:12px;color:#0865cf;text-decoration:none}
.draft-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}.draft-grid article{min-height:86px;border:1px solid #ccd9e3;border-radius:8px;background:#f7fbff;padding:16px}.draft-grid strong,.draft-grid small{display:block}.draft-grid strong{font-size:13px;line-height:1.45}.draft-grid small{font-size:11px;color:#718493;margin-top:6px}
.categories-head{margin-top:0;margin-bottom:14px}.knowledge-page .kb-grid{gap:28px;align-items:start}.knowledge-page .kb-card{min-height:244px;border-radius:8px;padding:20px 22px;box-shadow:0 2px 5px rgba(23,54,77,.08)}.knowledge-page .kb-card>span{display:inline;width:auto;height:auto;background:transparent;color:#31566f;font-size:20px}.knowledge-page .kb-card h3{font-size:16px;margin:0 0 18px;display:inline-block;margin-left:9px}.knowledge-page .kb-card p{display:none}.knowledge-page .kb-card ul{margin-top:0}.knowledge-page .kb-card li{padding:13px 8px;font-size:12px}.knowledge-page .kb-card li::after{content:"00";float:right;font-weight:700;color:#294b63}.knowledge-page .kb-card:last-child{display:none}
@media(max-width:980px){.draft-grid,.knowledge-page .kb-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.contacts-page .table-toolbar{flex-wrap:wrap}.contacts-page .select-contacts{display:none}}
@media(max-width:720px){.draft-grid{grid-template-columns:1fr}.knowledge-page .content{background:#fff}.contacts-page .table-toolbar .search{width:100%;order:-1}.contacts-page .pager .button{display:none}}
