:root{--ink:#17213a;--ink2:#24304d;--paper:#f4f5f7;--line:#dde1e8;--text:#1a2130;--muted:#5f6879;--action:#0e6b67;--action-dark:#0a5450;--hot:#c23b23;--warm:#e59d36;--cold:#3a69c2;--none:#c9ced8;--ok:#23703c;--bad:#a82e2e;--display:'Bricolage Grotesque','Segoe UI',system-ui,sans-serif;--body:'Instrument Sans','Segoe UI',system-ui,sans-serif}
*{box-sizing:border-box}html,body{margin:0}body{background:var(--paper);color:var(--text);font:15px/1.5 var(--body)}
a{color:var(--action)}:focus-visible{outline:3px solid #f0c24b;outline-offset:2px}
.shell{display:flex;flex-wrap:wrap;min-height:100vh}
.side{flex:1 1 230px;max-width:100%;background:var(--ink);color:#dfe5f2;padding:22px 14px;display:flex;flex-direction:column;gap:4px}
.brand{padding:0 10px 18px}.brand .logo{max-width:150px;max-height:56px;display:block;margin-bottom:10px;background:#fff;border-radius:6px;padding:6px}
.brand-name{font:700 24px/1.1 var(--display);color:#fff}.brand-sub{font-size:12px;color:#aab4ca}
.side a{color:#dfe5f2;text-decoration:none;padding:11px 12px;border-radius:6px;font-weight:500}.side a:hover{background:var(--ink2)}.side a.on{background:#fff;color:var(--ink);font-weight:600}
.side .grow{flex:1}.side .me{padding:10px 12px;font-weight:600;color:#fff}.side .me span{display:block;font-weight:400;font-size:12px;color:#aab4ca}.side a.out{border:1px solid #3a4769;text-align:center;color:#c3ccde}
.main{flex:999 1 560px;min-width:0;padding:28px 34px 60px;max-width:1280px}
h1{font:700 30px/1.15 var(--display);margin:0 0 4px;letter-spacing:-.015em}h2{font:600 19px/1.3 var(--display);margin:0 0 12px}h3{font-size:15px;margin:14px 0 6px}
.sub{color:var(--muted);margin:0 0 20px;max-width:75ch}.dim{color:var(--muted);font-size:13px}.hint{font-size:13px;color:var(--muted);margin:3px 0 0}
.panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px;margin-bottom:18px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.spread{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
label{display:block;font-weight:600;font-size:13px;margin-bottom:12px}label input,label select,label textarea{margin-top:4px}
input,select,textarea{width:100%;font:inherit;font-weight:400;color:var(--text);background:#fff;border:1px solid #c9ced8;border-radius:6px;padding:9px 11px}
textarea{min-height:100px;resize:vertical;line-height:1.55}input[type=checkbox],input[type=radio]{width:auto;margin:0 6px 0 0}label.inline{display:flex;align-items:center;font-weight:500}
.btn{display:inline-block;font:inherit;font-weight:600;border:1px solid var(--action);background:var(--action);color:#fff;padding:9px 15px;border-radius:6px;cursor:pointer;text-decoration:none;white-space:nowrap}
.btn:hover{background:var(--action-dark)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.ghost{background:#fff;color:var(--action)}.btn.ghost:hover{background:#eef6f5}
.btn.danger{background:#fff;color:var(--bad);border-color:#e3b4b4}.btn.small{padding:6px 11px;font-size:13px}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:16px;flex-wrap:wrap}.tabs a,.tabs button{font:inherit;font-weight:600;background:none;border:0;padding:10px 14px;cursor:pointer;color:var(--muted);border-bottom:3px solid transparent;text-decoration:none}
.tabs .on{color:var(--text);border-bottom-color:var(--action)}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:#fff}
table{width:100%;border-collapse:collapse;font-size:14px}th{text-align:left;font-size:12px;color:var(--muted);font-weight:600;padding:10px 12px;border-bottom:1px solid var(--line);background:#fafbfc;white-space:nowrap}
td{padding:10px 12px;border-bottom:1px solid #eef0f4;vertical-align:top}tr:last-child td{border-bottom:0}tr.pick td{background:#f0f8f7}td a.name{font-weight:600;color:var(--text);text-decoration:none}
.temp{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:13px}.temp i{width:10px;height:10px;border-radius:50%;background:var(--none)}
.temp.hot i{background:var(--hot);box-shadow:0 0 0 3px #f6d6cf}.temp.warm i{background:var(--warm)}.temp.cold i{background:var(--cold)}
.heat{display:flex;height:56px;border-radius:10px;overflow:hidden;background:#e9ebef}.heat div{display:flex;align-items:flex-end;padding:8px 10px;font-weight:600;font-size:13px;white-space:nowrap;overflow:hidden}
.heat .h{background:var(--hot);color:#fff}.heat .w{background:var(--warm);color:#2b1d05}.heat .c{background:var(--cold);color:#fff}.heat .u{background:var(--none);color:#2b3142}
.badge{display:inline-block;font-size:12px;font-weight:600;padding:2px 8px;border-radius:99px;background:#edf0f4;color:#3d4556;white-space:nowrap}
.badge.valid,.badge.call_booked,.badge.won,.badge.ok{background:#e2f3e7;color:var(--ok)}.badge.invalid,.badge.bad{background:#fbe4e4;color:var(--bad)}.badge.risky{background:#fdf0d9;color:#7a4e0b}
.badge.replied{background:#e4ecfb;color:#2c56a8}.badge.unsubscribed,.badge.lost{background:#f1f1f1;color:#666}
.stages{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.stage{display:block;border-top:3px solid var(--line);padding:8px 2px 0;text-decoration:none;color:inherit}.stage b{display:block;font:700 24px var(--display)}.stage span{font-size:12px;color:var(--muted)}
.progress{height:8px;background:#e4e7ec;border-radius:99px;overflow:hidden;margin:8px 0}.progress div{height:100%;background:var(--action);width:0;transition:width .3s}
.log{font-size:13px;max-height:170px;overflow:auto;background:#fafbfc;border:1px solid var(--line);border-radius:6px;padding:8px 10px}.log .err{color:var(--bad)}
.notice{padding:12px 14px;border-radius:6px;background:#eef6f5;border:1px solid #c5e0dd;margin-bottom:14px;font-size:14px}.notice.warn{background:#fdf5e6;border-color:#efd9ad}.notice.err{background:#fbe9e9;border-color:#efc1c1;color:#7e2222}
.code{font-family:Consolas,Menlo,monospace;font-size:12.5px;background:#f1f3f6;border:1px solid var(--line);padding:8px 10px;border-radius:6px;word-break:break-all}
.list{list-style:none;margin:0;padding:0}.list li{padding:9px 0;border-bottom:1px solid #eef0f4;font-size:14px}
.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{background:#eef6f5;border:1px solid #c5e0dd;border-radius:99px;padding:3px 10px;font-size:13px}
.checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:6px}
details{border:1px solid var(--line);border-radius:8px;padding:10px 14px;margin-bottom:10px;background:#fff}summary{cursor:pointer;font-weight:600}
body.auth{min-height:100vh;display:grid;place-items:center;background:var(--ink);padding:20px}.auth-box{width:100%;max-width:400px;background:#fff;border-radius:10px;padding:28px}.auth-box .logo{max-height:60px;max-width:180px;margin-bottom:14px}
@media (max-width:900px){.main{padding:20px 16px 50px}.grid2,.grid3{grid-template-columns:1fr}.stages{grid-template-columns:repeat(2,1fr)}.side{flex-direction:row;flex-wrap:wrap;align-items:center}.side .grow,.brand-sub{display:none}.brand{padding:0 10px 0 0}}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
