*{box-sizing:border-box}
body{margin:0;background:#F5F7F8;color:#1C2326;font-family:'Nunito Sans',system-ui,sans-serif}
a{color:#0F7B77}a:hover{color:#0B5F5C}
h1,h2,h3,p{margin:0}
.top{height:60px;background:#fff;border-bottom:1px solid #E3E7EA;display:flex;align-items:center;gap:14px;padding:0 24px;flex-shrink:0}
.logo{display:flex;align-items:center;gap:8px;font-size:21px;font-weight:600}
.mod{display:inline-flex;align-items:center;gap:8px;height:36px;background:#E4F2F1;border:0;border-radius:8px;padding:0 14px;font:inherit;font-size:14px;color:#1C2326}
.nav{display:flex;align-self:stretch}
.nav a{display:flex;align-items:center;padding:0 10px;color:#4A555D;text-decoration:none;font-size:14px;border-bottom:2px solid transparent}
.nav a.on{color:#1C2326;border-bottom-color:#0F7B77;font-weight:600}
.search{width:170px;height:36px;border:1px solid #E3E7EA;border-radius:8px;background:#F5F7F8;padding:0 12px;font:inherit;font-size:13px}
.btn{height:40px;padding:0 16px;border-radius:8px;border:1px solid #D5DBDF;background:#fff;font:inherit;font-size:14px;font-weight:600;color:#1C2326;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;text-decoration:none;transition:transform .15s,box-shadow .15s}
.btn:hover{box-shadow:0 2px 8px rgba(11,95,92,.14)}
.btn:active{transform:scale(.98)}
.btn.p{background:#0F7B77;border-color:#0F7B77;color:#fff}
.btn.dk{background:#0B5F5C;border-color:#0B5F5C;color:#fff}
.btn.sm{height:32px;padding:0 12px;font-size:13px}
.btn.rd{color:#A5231B;border-color:#F1C4BF}
.ic{width:40px;padding:0;position:relative}
.badge{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;border-radius:9px;background:#B42318;color:#fff;font-size:11px;display:grid;place-items:center;padding:0 4px}
.av{width:36px;height:36px;border-radius:50%;background:#0B5F5C;color:#fff;display:grid;place-items:center;font-size:13px;font-weight:600;flex-shrink:0}
.av.lt{background:#EEF1F3;color:#4A555D;width:32px;height:32px;font-size:12px}
.card{background:#fff;border:1px solid #E3E7EA;border-radius:14px}
.eb{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#0F7B77;font-weight:600}
.lbl{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#5B6770;font-weight:600}
.mu{color:#5B6770}
.sm{font-size:13px}
.xs{font-size:12px}
.chip{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:12px;font-size:12px;font-weight:600;background:#E4F2F1;color:#0B5F5C;white-space:nowrap}
.chip.r{background:#FDECEA;color:#A5231B}.chip.a{background:#FFF1DC;color:#8A4B00}.chip.g{background:#E6F4EC;color:#1B6B3E}.chip.n{background:#EEF1F3;color:#4A555D}.chip.s{background:#0B5F5C;color:#fff}.chip.b{background:#E7EEF9;color:#28508F}
.cp{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:16px;border:1px solid #D5DBDF;font-size:13px;background:#fff;font-family:inherit;color:#1C2326;cursor:pointer}
.cp.on{background:#0B5F5C;border-color:#0B5F5C;color:#fff}
.pill{height:34px;padding:0 14px;border-radius:8px;border:1px solid #D5DBDF;background:#fff;font:inherit;font-size:13px;color:#1C2326;display:inline-flex;align-items:center;gap:6px}
.inp{height:40px;border:1px solid #D5DBDF;border-radius:8px;padding:0 12px;font:inherit;font-size:14px;background:#fff;width:100%;color:#1C2326;display:flex;align-items:center;justify-content:space-between}
.inp:focus{outline:2px solid #0F7B77;outline-offset:1px;border-color:#0F7B77}
.fl{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#4A555D;font-weight:600}
.tbl{width:100%;border-collapse:collapse;font-size:14px}
.tbl th{text-align:left;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#5B6770;font-weight:600;padding:10px 12px;border-bottom:1px solid #E3E7EA}
.tbl td{padding:11px 12px;border-bottom:1px solid #EEF1F3;font-variant-numeric:tabular-nums}
.tbl .n{text-align:right}
.tbl tbody tr{transition:background .15s}.tbl tbody tr:hover{background:#F0F7F6}
.bar{height:8px;background:#EEF1F3;border-radius:4px;overflow:hidden}
.bar i{display:block;height:100%;background:#0F7B77;border-radius:4px;animation:grow 1s cubic-bezier(.2,.7,.2,1) both}
.side{display:flex;flex-direction:column;gap:2px}
.side a{display:block;padding:9px 14px;border-radius:8px;color:#1C2326;text-decoration:none;font-size:14px}
.side a.on{background:#fff;box-shadow:inset 3px 0 0 #0F7B77,0 1px 3px rgba(0,0,0,.06);font-weight:600}
.tog{width:40px;height:24px;border-radius:12px;background:#0F7B77;border:0;position:relative;flex-shrink:0;cursor:pointer}
.tog::after{content:"";position:absolute;top:3px;left:19px;width:18px;height:18px;border-radius:50%;background:#fff;transition:left .2s}
.tog.off{background:#C9D1D6}.tog.off::after{left:3px}
.row{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #EEF1F3;font-size:14px}
.ck{width:18px;height:18px;accent-color:#0F7B77;flex-shrink:0}
.live{width:8px;height:8px;border-radius:50%;background:#12A085;animation:pulse 1.6s infinite;flex-shrink:0}
.hov{transition:background .15s,transform .2s,box-shadow .2s}.hov:hover{background:#F0F7F6}
.lift{transition:transform .2s,box-shadow .2s}.lift:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(11,95,92,.12)}
.rise{animation:rise .55s cubic-bezier(.2,.7,.2,1) both}
.d1{animation-delay:.06s}.d2{animation-delay:.12s}.d3{animation-delay:.18s}.d4{animation-delay:.24s}.d5{animation-delay:.3s}
.fade{animation:fade .5s both}
.pop{animation:pop .6s cubic-bezier(.2,.7,.2,1) both}
.draw{stroke-dasharray:1200;animation:draw 1.6s cubic-bezier(.2,.7,.2,1) both}
.drop{animation:drop .35s cubic-bezier(.2,.7,.2,1) both;transform-origin:top right}
.sheet{animation:sheet .45s cubic-bezier(.2,.7,.2,1) both}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes fade{from{opacity:0}}
@keyframes pop{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:none}}
@keyframes grow{from{width:0}}
@keyframes draw{from{stroke-dashoffset:1200}to{stroke-dashoffset:0}}
@keyframes drop{from{opacity:0;transform:translateY(-6px) scale(.97)}to{opacity:1;transform:none}}
@keyframes sheet{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(18,160,133,.5)}100%{box-shadow:0 0 0 9px rgba(18,160,133,0)}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---------- App layer ---------- */
:focus-visible{outline:2px solid #0F7B77;outline-offset:2px}
button{font-family:inherit}
.hidden{display:none!important}
.page{padding:24px 28px;display:flex;flex-direction:column;gap:18px;max-width:1440px;margin:0 auto}
.ph{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.ph h1{font-size:28px;font-weight:400}
.grid{display:grid;gap:14px}
.g2{grid-template-columns:repeat(2,minmax(0,1fr))}.g3{grid-template-columns:repeat(3,minmax(0,1fr))}.g4{grid-template-columns:repeat(4,minmax(0,1fr))}.g5{grid-template-columns:repeat(5,minmax(0,1fr))}
.kpi{padding:16px 18px}.kpi .v{font-size:30px;margin-top:4px}.kpi .s{font-size:13px;color:#5B6770}
.split{display:flex;gap:18px;align-items:flex-start}.split>.main{flex:1;min-width:0}.split>.side-col{width:380px;flex-shrink:0}
.top .nav a{cursor:pointer}
.status-toggle{display:flex;border:1px solid #D5DBDF;border-radius:8px;overflow:hidden}
.status-toggle button{border:0;background:#fff;padding:0 12px;height:34px;font-size:13px;cursor:pointer;color:#4A555D}
.status-toggle button.on{background:#E6F4EC;color:#1B6B3E;font-weight:700}
.status-toggle button.on.brk{background:#FFF1DC;color:#8A4B00}
.menu{position:absolute;right:20px;top:58px;background:#fff;border:1px solid #E3E7EA;border-radius:12px;box-shadow:0 16px 40px rgba(20,32,34,.16);width:240px;padding:8px;z-index:50}
.menu button{display:block;width:100%;text-align:left;background:none;border:0;padding:10px 12px;border-radius:8px;font-size:14px;cursor:pointer;color:#1C2326}
.menu button:hover{background:#F0F7F6}
.q-item{display:flex;align-items:center;gap:14px;padding:12px 14px;border-bottom:1px solid #EEF1F3;cursor:pointer;transition:background .15s}
.q-item:hover,.q-item.sel{background:#F0F7F6}
.tag{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:6px;font-size:12px;font-weight:600;white-space:nowrap;min-width:120px;justify-content:center}
.tag.new,.tag.idle{background:#FDECEA;color:#A5231B}.tag.overdue{background:#B42318;color:#fff}.tag.hot{background:#E4F2F1;color:#0B5F5C}.tag.followup{background:#EEF1F3;color:#4A555D}
.score{min-width:36px;height:28px;border-radius:7px;display:inline-grid;place-items:center;font-size:13px;font-weight:700;background:#EEF1F3;color:#4A555D}
.score.hot{background:#E4F2F1;color:#0B5F5C}
.callcard{background:#0B5F5C;color:#fff;border-radius:14px;padding:18px 20px;display:flex;flex-direction:column;gap:10px}
.callcard .mu{color:#CDE9E6}
.opts{display:flex;flex-wrap:wrap;gap:8px}
.opts button{height:34px;padding:0 14px;border-radius:17px;border:1px solid #D5DBDF;background:#fff;font-size:13px;cursor:pointer;color:#1C2326}
.opts button.on{background:#0B5F5C;border-color:#0B5F5C;color:#fff}
select.inp,input.inp,textarea.inp{display:block}
textarea.inp{height:auto;min-height:72px;padding:10px 12px;resize:vertical}
.tabs{display:flex;gap:22px;border-bottom:1px solid #E3E7EA;flex-wrap:wrap}
.tabs a{padding:10px 0;color:#4A555D;text-decoration:none;font-size:14px;border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer}
.tabs a.on{color:#1C2326;border-bottom-color:#0F7B77;font-weight:600}
.tabs a .c{color:#5B6770;margin-left:4px}.tabs a .c.r{color:#A5231B}
.filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.filters select,.filters input{height:36px;border:1px solid #D5DBDF;border-radius:8px;padding:0 10px;font:inherit;font-size:13px;background:#fff}
.bulk{background:#0B5F5C;color:#fff;border-radius:12px 12px 0 0;padding:10px 16px;display:flex;gap:10px;align-items:center}
.bulk select{height:32px;border-radius:6px;border:0;padding:0 8px;font:inherit;font-size:13px}
.tbl td a.name{color:#1C2326;font-weight:600;text-decoration:none}.tbl td a.name:hover{color:#0F7B77}
.pager{display:flex;justify-content:space-between;align-items:center;padding:12px 4px;font-size:13px;color:#5B6770}
.drawer-bg{position:fixed;inset:0;background:rgba(20,32,34,.4);z-index:60;animation:fade .2s both}
.drawer{position:fixed;top:0;right:0;bottom:0;width:440px;max-width:100%;background:#fff;z-index:61;padding:24px;display:flex;flex-direction:column;gap:14px;overflow:auto;animation:slidein .3s cubic-bezier(.2,.7,.2,1) both}
@keyframes slidein{from{transform:translateX(30px);opacity:0}}
.modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:460px;max-width:calc(100% - 32px);background:#fff;border-radius:16px;z-index:61;padding:22px;display:flex;flex-direction:column;gap:12px;box-shadow:0 30px 70px rgba(0,0,0,.25)}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#1C2326;color:#fff;padding:12px 18px;border-radius:10px;font-size:14px;z-index:90;animation:sheet .3s both;max-width:90vw}
.toast.err{background:#B42318}
.stepper{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:relative}
.stepper .st{display:flex;flex-direction:column;gap:6px;position:relative}
.stepper .dot{width:20px;height:20px;border-radius:50%;background:#E3E7EA;position:relative;z-index:1}
.stepper .done .dot{background:#0F7B77}.stepper .now .dot{background:#fff;border:4px solid #0F7B77}
.stepper .st:not(:last-child)::after{content:"";position:absolute;left:20px;right:0;top:9px;height:3px;background:#E3E7EA}
.stepper .done:not(:last-child)::after{background:#0F7B77}
.stepper .lb{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#5B6770;font-weight:600}.stepper .now .lb{color:#0F7B77}
.tl{display:flex;flex-direction:column}
.tl .it{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid #EEF1F3}
.tl .ic2{width:34px;height:34px;border-radius:10px;background:#EEF1F3;display:grid;place-items:center;flex-shrink:0;font-size:13px;font-weight:700;color:#4A555D}
.tl .ic2.call{background:#E4F2F1;color:#0B5F5C}.tl .ic2.sms{background:#E7EEF9;color:#28508F}.tl .ic2.stage_change{background:#FFF1DC;color:#8A4B00}
.nba{border:2px solid #0F7B77;background:#F0F7F6;border-radius:14px;padding:16px}
.board{display:grid;grid-template-columns:repeat(4,minmax(240px,1fr));gap:14px;overflow-x:auto;align-items:start}
.col{background:#EEF1F3;border-radius:14px;padding:12px;min-height:420px;transition:background .15s,box-shadow .15s}
.col.over{background:#E4F2F1;box-shadow:inset 0 0 0 2px #0F7B77}
.col h3{font-size:13px;letter-spacing:.12em;text-transform:uppercase;font-weight:600;display:flex;justify-content:space-between;margin-bottom:10px}
.kcard{background:#fff;border:1px solid #E3E7EA;border-radius:12px;padding:12px;margin-bottom:10px;cursor:grab;transition:transform .15s,box-shadow .15s}
.kcard:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(11,95,92,.12)}
.kcard.dragging{opacity:.5}
.dropclose{border:1.5px dashed #C9D1D6;border-radius:12px;padding:14px;text-align:center;color:#5B6770;font-size:14px}
.dropclose.over{border-color:#B42318;color:#A5231B;background:#FFF7F6}
.bars{display:flex;align-items:flex-end;gap:10px;height:180px;border-bottom:1px solid #E3E7EA;padding:0 4px}
.bars .b{flex:1;background:#A8D8D4;border-radius:4px 4px 0 0;position:relative;transform-origin:bottom;animation:pop .6s both}
.bars .b.today{background:#0F7B77}
.arc-labels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.login-wrap{min-height:100vh;display:flex}
.login-art{width:44%;background:#0B5F5C;color:#fff;padding:48px 56px;display:flex;flex-direction:column;justify-content:space-between}
.login-main{flex:1;display:flex;align-items:center;justify-content:center;padding:40px 24px}
.login-box{width:100%;max-width:420px;display:flex;flex-direction:column;gap:16px}
.otp-row{display:flex;gap:10px}
.otp-row input{width:52px;height:58px;border:1px solid #D5DBDF;border-radius:10px;text-align:center;font:inherit;font-size:22px}
.empty{padding:36px;text-align:center;color:#5B6770}
.err-box{background:#FDECEA;color:#A5231B;border-radius:10px;padding:10px 12px;font-size:14px}
.link{background:none;border:0;padding:0;color:#0F7B77;text-decoration:underline;cursor:pointer;font-size:14px}
@media (max-width: 1000px){
  .top{overflow-x:auto}.top .search{display:none}
  .g4,.g5{grid-template-columns:repeat(2,minmax(0,1fr))}.g3{grid-template-columns:1fr}
  .split{flex-direction:column}.split>.side-col{width:100%}
  .login-art{display:none}
  .page{padding:16px}
  .tbl-wrap{overflow-x:auto}
}
