:root{--bg:#f7f7f9;--panel:#fff;--text:#202124;--muted:#777982;--line:#e6e6ea;--dark:#171719;--dark2:#222225;--accent:#5f5bd7;--accent-soft:#efefff;--good:#1f8f5f;--warn:#b87915;--bad:#bf4545;--radius:12px;--shadow:0 8px 30px rgba(20,20,30,.08);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}.app{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:var(--dark);color:#fff;padding:18px 12px 14px;display:flex;flex-direction:column;gap:14px}.brand{display:flex;align-items:center;gap:11px;padding:0 8px 8px}.brandmark{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:#fff;color:#111;font-weight:800;font-size:18px}.brand strong,.brand span{display:block}.brand strong{font-size:15px}.brand span{font-size:11px;color:#9f9fa6;margin-top:2px}.workspace{width:100%;background:var(--dark2);border:1px solid #343438;color:#fff;border-radius:10px;padding:9px 10px;display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:8px;text-align:left}.workspace-dot{width:8px;height:8px;border-radius:50%;background:#65c891}.workspace b,.workspace small{display:block}.workspace b{font-size:12px}.workspace small{font-size:10px;color:#999aa2;margin-top:2px}.chev{color:#999}.nav{display:flex;flex-direction:column;gap:2px}.nav a{text-decoration:none;color:#babac0;display:grid;grid-template-columns:24px 1fr;align-items:center;min-height:39px;padding:0 10px;border-radius:8px;font-size:13px;font-weight:600}.nav a>span{font-size:14px;color:#8e8e96}.nav a:hover{background:#222225;color:#fff}.nav a.active{background:#303036;color:#fff}.nav a.active>span{color:#fff}.sidebar-bottom{margin-top:auto;display:flex;flex-direction:column;gap:9px}.invites{background:#202024;border:1px solid #34343a;color:#777780;border-radius:9px;padding:9px 11px;text-align:left;font-weight:700}.invites small{display:block;font-size:9px;font-weight:500;margin-top:3px}.userchip{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:8px;padding:8px;border-top:1px solid #2a2a2e}.avatar{width:30px;height:30px;border-radius:50%;background:#ddd;color:#222;display:grid;place-items:center;font-weight:800}.userchip b,.userchip small{display:block;font-size:11px}.userchip small{color:#8f8f96;margin-top:2px}.main{min-width:0;padding:26px 30px 40px;position:relative}.topbar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:800;color:#92939a}.topbar h1{font-size:27px;margin:3px 0 0;letter-spacing:-.03em}.top-actions{display:flex;align-items:center;gap:8px}.search{height:38px;width:330px;background:#fff;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;gap:8px;padding:0 11px}.search span{color:#888}.search input{border:0;outline:0;width:100%;font-size:12px;background:transparent}.primary,.ghost,.plain,.iconbtn{border:0;cursor:pointer}.primary{background:var(--accent);color:#fff;border-radius:8px;padding:10px 15px;font-weight:750;font-size:12px}.ghost{background:#fff;color:#3d3d42;border:1px solid var(--line);border-radius:8px;padding:9px 13px;font-weight:700;font-size:12px}.plain{background:transparent;color:#6d6d75;padding:8px;font-size:11px}.crm-tabs,.hr-tabs{display:flex;align-items:center;border-bottom:1px solid var(--line);margin:0 -30px;padding:0 30px}.tab{border:0;background:transparent;padding:12px 16px 11px;color:#777982;font-weight:700;font-size:12px;border-bottom:2px solid transparent;cursor:pointer}.tab.active{color:#222;border-color:var(--accent)}.spacer{flex:1}.summary-strip{display:grid;grid-template-columns:repeat(4,minmax(100px,1fr)) 2.2fr;background:#fff;border:1px solid var(--line);border-radius:10px;margin:18px 0 16px;overflow:hidden}.summary-strip>div{padding:13px 15px;border-right:1px solid var(--line)}.summary-strip>div:last-child{border-right:0}.summary-strip span,.summary-strip strong{display:block}.summary-strip span{font-size:10px;color:#85858d}.summary-strip strong{font-size:18px;margin-top:3px}.summary-strip .summary-julia{background:#fafaff}.summary-strip .summary-julia span{color:var(--accent);font-weight:800}.summary-strip .summary-julia b{font-size:11px;line-height:1.35;display:block;margin-top:5px}.pipeline-wrap{display:grid;grid-template-columns:repeat(4,minmax(230px,1fr));gap:10px;overflow:auto;padding-bottom:16px}.stage{min-width:230px}.stage-head{display:flex;align-items:center;justify-content:space-between;padding:4px 3px 9px}.stage-title{display:flex;align-items:center;gap:7px}.stage-dot{width:8px;height:8px;border-radius:50%;background:#b7b6df}.stage h3{margin:0;font-size:12px}.stage-count{font-size:10px;color:#8a8b91}.stage-cards{display:flex;flex-direction:column;gap:8px}.deal{background:#fff;border:1px solid #e3e3e8;border-radius:8px;padding:12px;box-shadow:0 1px 2px rgba(0,0,0,.02)}.deal:hover{border-color:#cfcfda;box-shadow:0 3px 10px rgba(0,0,0,.05)}.deal h4{font-size:12px;margin:0 0 4px}.deal .org{font-size:10px;color:#85858d}.deal-foot{display:flex;justify-content:space-between;align-items:center;margin-top:13px;padding-top:9px;border-top:1px solid #f0f0f2;font-size:9px;color:#8a8b91}.badge{padding:3px 6px;border-radius:20px;background:#f3f3f5}.badge.due{background:#fff3d9;color:#956116}.loading-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px;color:#888;font-size:12px}.hidden{display:none!important}.table-card,.panel{background:#fff;border:1px solid var(--line);border-radius:10px}.table-head,.panel-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--line)}.table-head span{font-size:10px;color:#888}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:11px}th{text-align:left;color:#85858d;font-size:9px;text-transform:uppercase;letter-spacing:.05em;padding:10px 14px;background:#fafafa}td{padding:12px 14px;border-top:1px solid #f0f0f2}td strong{font-size:11px}.drawer{position:fixed;right:0;top:0;width:390px;max-width:94vw;height:100vh;background:#fff;z-index:30;box-shadow:-20px 0 50px rgba(0,0,0,.12);padding:22px;transform:translateX(105%);transition:transform .2s ease}.drawer.open{transform:translateX(0)}.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:22px}.drawer-head h2{margin:4px 0 0;font-size:21px}.iconbtn{width:32px;height:32px;border-radius:50%;background:#f0f0f2;font-size:20px}.drawer form{display:flex;flex-direction:column;gap:13px}.drawer label{font-size:10px;font-weight:700;color:#6c6d73}.drawer input,.drawer select,.drawer textarea{width:100%;margin-top:5px;border:1px solid #dcdce2;border-radius:8px;padding:10px;outline:0;background:#fff;font-size:12px}.drawer input:focus,.drawer select:focus,.drawer textarea:focus{border-color:#aaa8e7;box-shadow:0 0 0 3px var(--accent-soft)}.drawer-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.scrim{position:fixed;inset:0;background:rgba(0,0,0,.25);z-index:20}.form-status{font-size:10px;min-height:14px;color:#777}.form-status.error{color:var(--bad)}.form-status.good{color:var(--good)}.julia-fab{position:fixed;right:24px;bottom:22px;z-index:10;border:1px solid #d8d7f0;background:#fff;box-shadow:var(--shadow);border-radius:14px;padding:10px 14px;display:grid;grid-template-columns:22px auto;column-gap:7px;text-align:left;cursor:pointer}.julia-fab>span{grid-row:1/3;color:var(--accent);font-size:16px}.julia-fab b{font-size:11px}.julia-fab small{font-size:9px;color:#85858d}.hr-hero{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px 24px;margin:18px 0 14px}.hero-copy h2{font-size:20px;margin:5px 0}.hero-copy p{font-size:11px;color:#777982;margin:0}.hero-stats{display:flex;gap:28px}.hero-stats>div{text-align:center;min-width:70px}.hero-stats strong,.hero-stats span{display:block}.hero-stats strong{font-size:23px}.hero-stats span{font-size:9px;color:#85858d;margin-top:3px}.hr-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(250px,.8fr);gap:14px}.panel-head h3{margin:3px 0 0;font-size:14px}.employee-list{display:flex;flex-direction:column}.employee{display:grid;grid-template-columns:42px minmax(130px,1.3fr) minmax(100px,1fr) minmax(100px,1fr) 90px;align-items:center;gap:10px;padding:11px 16px;border-top:1px solid #f0f0f2}.employee:first-child{border-top:0}.employee-avatar{width:34px;height:34px;border-radius:50%;background:#ececf5;display:grid;place-items:center;font-size:11px;font-weight:800;color:#55516f}.employee b,.employee small{display:block}.employee b{font-size:11px}.employee small{font-size:9px;color:#85858d;margin-top:3px}.status-pill{justify-self:start;border-radius:20px;background:#eaf7f0;color:#2c7e59;font-size:9px;padding:4px 7px}.department-list{padding:7px 15px 12px}.department{display:flex;align-items:center;justify-content:space-between;padding:9px 2px;border-bottom:1px solid #f1f1f3;font-size:11px}.department:last-child{border-bottom:0}.department span{font-size:9px;color:#888}.divider{border-top:1px solid var(--line);margin:0 15px}.julia-note{margin:14px 15px 16px;padding:13px;background:#f8f8ff;border:1px solid #e8e7fb;border-radius:9px}.julia-note span,.julia-note b{display:block}.julia-note span{font-size:9px;color:var(--accent);font-weight:800}.julia-note b{font-size:11px;margin-top:3px}.julia-note p{font-size:10px;line-height:1.45;color:#686872;margin:7px 0 0}.two{display:grid;grid-template-columns:1fr 1fr;gap:9px}
@media(max-width:1050px){.app{grid-template-columns:200px minmax(0,1fr)}.main{padding:22px 20px}.crm-tabs,.hr-tabs{margin:0 -20px;padding:0 20px}.summary-strip{grid-template-columns:repeat(4,1fr)}.summary-julia{grid-column:1/-1}.search{width:240px}.hr-grid{grid-template-columns:1fr}.side-panel{order:-1}.employee{grid-template-columns:42px 1fr 1fr 80px}.employee .employee-email{display:none}}
@media(max-width:760px){.app{display:block}.sidebar{position:fixed;left:0;bottom:0;top:auto;width:100%;height:64px;z-index:50;padding:6px;background:#171719}.brand,.workspace,.sidebar-bottom{display:none}.nav{display:grid;grid-template-columns:repeat(6,1fr);gap:1px}.nav a{display:none;min-height:50px;padding:3px;text-align:center;font-size:8px;grid-template-columns:1fr}.nav a:nth-child(1),.nav a:nth-child(2),.nav a:nth-child(3),.nav a:nth-child(6),.nav a:nth-child(10),.nav a:nth-child(11){display:grid}.nav a>span{font-size:15px}.main{padding:18px 14px 86px}.topbar{align-items:flex-start}.top-actions{flex-wrap:wrap;justify-content:flex-end}.search{order:3;width:100%}.crm-tabs,.hr-tabs{margin:0 -14px;padding:0 14px;overflow:auto}.summary-strip{grid-template-columns:1fr 1fr}.summary-julia{grid-column:1/-1}.pipeline-wrap{grid-template-columns:repeat(4,82vw)}.hr-hero{display:block}.hero-stats{margin-top:18px;justify-content:space-between}.employee{grid-template-columns:38px 1fr 80px}.employee .employee-email,.employee .employee-department{display:none}.julia-fab{bottom:75px;right:12px}.drawer{padding:18px}}
.deal[draggable="true"]{cursor:grab}.deal.dragging{opacity:.4}.stage-cards{min-height:24px;border-radius:8px;transition:background .1s}.stage-cards.drop-target{background:#f2f1ff;outline:2px dashed var(--accent)}
.drop-zone{border:2px dashed #dcdce2;border-radius:12px;padding:20px;text-align:center;cursor:pointer;transition:border-color .15s,background .15s}
.drop-zone:hover,.drop-zone:focus{border-color:var(--accent);outline:none}
.drop-zone.dragover{border-color:var(--accent);background:var(--accent-soft)}
.drop-zone .icon{font-size:20px;margin-bottom:6px}
.drop-zone p{font-size:11px;color:#777d86;margin:0}
.drop-zone-link{color:var(--accent);text-decoration:underline}
.upload-status{font-size:10px;margin-top:8px;min-height:12px;color:#777d86}
.upload-status.success{color:var(--good)}
.upload-status.error{color:var(--bad)}
.doc-row{display:flex;justify-content:space-between;align-items:center;padding:7px 0;border-top:1px solid #f0f0f2;font-size:11px}
.doc-row:first-child{border-top:0}
.doc-row button{border:0;background:transparent;color:var(--accent);font-size:10px;cursor:pointer}
