:root{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#15191f;background:#f3f5f7;
  --blue:#2f72e8;--green:#1baa78;--red:#eb5a46;--amber:#c77b1f;--purple:#7f56d9;--teal:#17a7b4;
  --text:#171b22;--muted:#697382;--border:#dfe4ea;--panel:#fff;
}
*{box-sizing:border-box}
body{margin:0;background:#f3f5f7;color:var(--text)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.muted{color:var(--muted)}.small{font-size:13px}.strong{font-weight:800}.wide{width:100%}.danger{color:#b42318}
.login{min-height:100vh;display:grid;place-items:center;background:linear-gradient(145deg,#0f2f5c,#194e87)}
.login-card{width:min(440px,92vw);background:#fff;border-radius:24px;padding:32px;box-shadow:0 28px 80px #001b3a59}
.login-card h1{margin:28px 0 6px;font-size:28px}
.brand{display:flex;align-items:center;gap:12px}.brand img{width:54px;height:54px;border-radius:14px}.brand strong{display:block;font-size:19px;color:#13233c}.brand span{display:block;font-size:12px;color:#8490a1;margin-top:2px}
.field{display:grid;gap:7px;margin:16px 0;font-weight:700;color:#374151}
.field input,.field select,.field textarea{padding:12px 13px;border:1px solid #d7dee8;border-radius:11px;background:#fff;outline:none}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#78a5f5;box-shadow:0 0 0 3px #2f72e817}
.primary{border:0;border-radius:11px;background:var(--blue);color:#fff;padding:11px 16px;font-weight:800;box-shadow:0 4px 10px #2f72e82a}
.primary:disabled{opacity:.6}.ghost,.today-btn,.icon-btn{border:1px solid #dbe1e8;background:#fff;border-radius:11px;padding:9px 12px;font-weight:800;color:#2c3440}
.shell{display:grid;grid-template-columns:230px 1fr;min-height:100vh}
.side{background:#fff;border-right:1px solid var(--border);padding:22px 14px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}
.side .brand{padding:0 8px 20px;border-bottom:1px solid #edf1f5}.side .brand img{width:46px;height:46px}
.nav{padding-top:14px;display:grid;gap:4px}
.nav button{display:flex;align-items:center;gap:11px;width:100%;border:0;background:transparent;color:#5a6573;padding:11px 12px;border-radius:11px;text-align:left;font-weight:750}
.nav button:hover{background:#f2f6fb;color:#183b68}.nav button.active{background:#eaf2ff;color:#1769dc}
.nav-icon{width:24px;height:24px;display:grid;place-items:center;font-size:17px}
.side-foot{margin-top:auto;padding:14px 10px 4px;border-top:1px solid #edf1f5}.side-foot span{display:block;font-weight:800}.side-foot small{display:block;color:#8b96a7;text-transform:capitalize}.side-foot button{margin-top:10px;border:0;background:none;color:#6b7280;padding:0}
.main{padding:25px 30px 44px;min-width:0}
.top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px;gap:18px}
.top h1{margin:0 0 3px;font-size:31px;letter-spacing:-.025em}.top-actions{display:flex;gap:9px;align-items:center}
.card{background:#fff;border:1px solid var(--border);border-radius:18px;padding:18px;box-shadow:0 2px 7px #0d31510c}
.section{margin-top:22px}.section h2,.section-title{font-size:20px;margin:0 0 12px}.section-title{margin-top:20px}.subhead{margin:24px 0 12px;font-size:17px}
.stack{display:grid;gap:12px}.empty{color:#7b8796;text-align:center;padding:30px}.empty-inline{padding:16px;color:#7b8796;text-align:center}.center-note{text-align:center;color:#6f7986;margin:22px 0}
.hero{border-radius:26px;padding:28px 30px 22px;background:linear-gradient(110deg,#2f70eb 0%,#2c8fc3 52%,#1bad79 100%);color:#fff;box-shadow:0 8px 18px #1f4a7825}
.hero-title{display:flex;align-items:center;gap:11px;font-weight:850;letter-spacing:.02em}.hero-icon{width:42px;height:42px;border-radius:12px;background:#ffffff24;display:grid;place-items:center;font-size:21px}
.hero-money{font-size:48px;line-height:1;font-weight:900;margin-top:26px;letter-spacing:-.04em}.hero-sub{font-size:18px;font-weight:750;margin-top:12px;color:#eef8ff}
.hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;border-top:1px solid #ffffff44;margin-top:26px;padding-top:20px}
.hero-stats div{display:grid;gap:3px}.hero-stats b{font-size:28px}.hero-stats span{font-weight:750;color:#f2fbff}
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}
.kpi{background:#fff;border:1px solid var(--border);border-radius:18px;padding:18px 20px;box-shadow:0 2px 5px #102f4d0d;min-height:128px;display:grid;align-content:center;justify-items:start}
.kpi-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-size:21px;font-weight:900;margin-bottom:10px}
.kpi-icon.green{background:#e6f7f1;color:#11a26e}.kpi-icon.red{background:#fff0ed;color:#e65b48}.kpi-icon.blue{background:#edf4ff;color:#2f72e8}.kpi-icon.amber{background:#fff5e8;color:#c77b1f}.kpi-icon.purple{background:#f2ecff;color:#7f56d9}.kpi-icon.teal{background:#e7fbfd;color:#149aa8}
.kpi b{font-size:30px;line-height:1}.kpi>span:last-child{margin-top:6px;color:#657183;font-weight:750}
.lookahead{padding:18px 22px}.bars{height:180px;display:grid;grid-template-columns:repeat(7,1fr);align-items:end;gap:12px;margin-top:18px;border-bottom:1px solid #dbe3ec}
.bar-col{height:150px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px}.bar-count{font-size:12px;font-weight:800;color:#667085}
.bar-v{width:min(48px,75%);min-height:8px;border-radius:8px 8px 0 0;background:linear-gradient(#3c83ee,#2f72e8)}.bar-col span{font-size:12px;font-weight:800}.bar-col small{font-size:11px;color:#9aa4b1;margin-bottom:-26px}
.task-card{width:100%;text-align:left;background:#fff;border:1px solid var(--border);border-left:5px solid var(--accent,#2f72e8);border-radius:17px;padding:16px 18px;box-shadow:0 2px 8px #13263a0d;color:inherit}
.task-main{display:flex;gap:12px;align-items:flex-start}.task-main>div{display:grid;gap:3px;flex:1}.task-main b{font-size:16px}.task-main small,.task-meta,.task-submeta{color:#6d7785}.task-state{font-size:23px;color:#2f72e8}
.type-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-weight:900}.type-icon.crew{background:#fff4e7;color:#c67a17}.type-icon.sub{background:#fff0ed;color:#e65b48}
.task-meta,.task-submeta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;margin-top:11px}.task-submeta{border-top:1px solid #edf1f4;padding-top:10px}.job-dot{color:var(--accent)}
.status{display:inline-block;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800}.status.blue{background:#edf4ff;color:#2f72e8}.status.green{background:#e8f8f1;color:#17a36f}.status.red{background:#fff0ed;color:#e65b48}.status.amber{background:#fff5e8;color:#b8751d}
.simple-list{padding:0 18px}.simple-row{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid #edf1f5}.simple-row:last-child{border-bottom:0}.simple-row>div{display:grid;gap:2px;flex:1}.simple-row small{color:#7b8796}.simple-row strong{font-size:12px;color:#2f72e8}
.job-progress>div:first-child{display:flex;justify-content:space-between}.job-progress small{color:#75808e}.progress{height:8px;background:#eaf0f6;border-radius:999px;overflow:hidden;margin:10px 0}.progress span{display:block;height:100%;background:#2f72e8;border-radius:999px}
.chip-row{display:flex;gap:9px;flex-wrap:wrap;margin:10px 0 14px}.chip{border:1px solid #d6dde6;background:#fff;border-radius:999px;padding:10px 15px;font-weight:800;color:#2d343d}.chip.active{background:#2f72e8;color:#fff;border-color:#2f72e8}.role-row .chip.active{background:#eb5a46;border-color:#eb5a46}.job-chips .chip:first-child.active{background:#1baa78;border-color:#1baa78}.sort-row{margin-top:0}
.project-card{width:100%;border:1px solid var(--border);background:#fff;border-radius:20px;padding:20px;text-align:left;color:inherit;box-shadow:0 2px 8px #13263a10}
.project-head{display:flex;align-items:center;gap:14px}.project-head>div{flex:1}.project-head h3{margin:0;font-size:20px}.project-head p{margin:3px 0 0;color:#6f7986}.project-icon{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent,#2f72e8) 12%,white);color:var(--accent,#2f72e8);font-size:21px;font-weight:900}
.chev{font-size:34px;color:#6f7986}.project-progress{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center}.project-stats{display:flex;gap:22px;flex-wrap:wrap;padding:5px 0 14px;border-bottom:1px solid #edf1f5}.project-foot{display:flex;justify-content:space-between;gap:12px;color:#697382;font-weight:650;padding-top:14px}
.view-tabs,.calendar-tabs,.todo-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:13px}.view-tabs button,.calendar-tabs button,.todo-tabs button{border:0;background:#fff;border-radius:13px;padding:13px 16px;font-weight:850}.view-tabs button.active{background:#2f72e8;color:#fff}.calendar-tabs button.active,.todo-tabs button.active{background:#fff;color:#111;box-shadow:0 1px 3px #0001}.todo-tabs{grid-template-columns:1fr 1fr;background:#edf0f4;padding:3px;border-radius:14px;margin:0}.todo-tabs button{background:transparent}.todo-tabs button.active{background:#2f72e8;color:#fff}
.date-rail{display:flex;gap:7px;overflow:auto;margin-bottom:10px;padding-bottom:2px}.date-rail button{min-width:62px;border:0;background:#fff;border-radius:12px;padding:8px 9px;display:grid;gap:1px}.date-rail button small{color:#6c7685}.date-rail button b{font-size:17px}.date-rail button.active{background:#2f72e8;color:#fff}.date-rail button.active small{color:#fff}
.schedule-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;background:#fff;border:1px solid var(--border);border-radius:17px;padding:15px 12px;margin-top:8px}.mini-metric{display:grid;justify-items:center;text-align:center}.mini-metric .kpi-icon{margin-bottom:3px;width:34px;height:34px;font-size:16px}.mini-metric b{font-size:20px}.mini-metric small{color:#6e7885}
.calendar-panel{padding:15px}.calendar-title,.date-nav{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;text-align:center;gap:8px}.calendar-title button,.date-nav>button{border:0;background:#fff;border-radius:12px;height:45px;font-size:34px}.calendar-title h2,.date-nav h2{margin:0}.weekday-row{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;color:#67717f;padding:12px 0}.month-grid{display:grid;grid-template-columns:repeat(7,1fr);border-left:1px solid #e4e8ed;border-top:1px solid #e4e8ed}.month-cell{min-height:105px;border:0;border-right:1px solid #e4e8ed;border-bottom:1px solid #e4e8ed;background:#fff;padding:8px;text-align:left;display:flex;flex-direction:column;gap:4px}.month-cell.outside{color:#b1b7bf;background:#fafbfc}.month-cell>span{font-weight:800}.month-cell small{display:block;border-radius:5px;padding:3px 5px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.month-cell em{font-size:11px;font-style:normal;color:#586474}
.gantt-wrap{overflow:auto;background:#fff;border:1px solid var(--border);border-radius:16px}.gantt-head,.gantt-row{display:grid;grid-template-columns:230px calc(var(--days)*var(--px));min-width:max-content}.gantt-head{position:sticky;top:0;background:#fff;z-index:2;border-bottom:1px solid #e5e9ee}.gantt-head>div:first-child{padding:12px;font-weight:850}.gantt-scale{display:grid;grid-template-columns:repeat(var(--days),var(--px))}.gantt-scale span{display:grid;place-items:center;border-left:1px solid #edf1f4;font-size:11px;color:#707b88}.gantt-scale b{font-size:13px}.gantt-label{padding:11px 12px;border-bottom:1px solid #edf1f4}.gantt-label small{display:block;color:#7b8796;margin-top:2px}.gantt-track{height:49px;position:relative;border-bottom:1px solid #edf1f4;background:repeating-linear-gradient(90deg,#fff 0,#fff calc(var(--px) - 1px),#edf1f4 var(--px))}.gantt-bar{position:absolute;top:10px;height:28px;border-radius:7px;color:#fff;padding:6px 8px;font-size:11px;white-space:nowrap;overflow:hidden}
.date-nav{margin:10px 0 16px}.date-nav>div{display:grid;gap:2px}.date-nav small{font-weight:700}.calendar-entries,.week-list{display:grid;gap:13px}.calendar-entry{border:0;background:#fff;border-radius:18px;padding:16px 18px;display:grid;grid-template-columns:104px 1fr auto;gap:16px;align-items:center;text-align:left;color:inherit}.time-block{background:#fff0ed;color:#e65b48;border-radius:15px;padding:18px 10px;text-align:center;font-weight:850}.calendar-entry>div{display:grid;gap:4px}.calendar-entry b{font-size:18px}.calendar-entry small{color:#697382}.busy{background:#fff0ed;color:#e65b48;border-radius:999px;padding:7px 10px;font-weight:850;font-size:12px}.week-list section{margin-bottom:14px}.week-day-head{display:flex;justify-content:space-between;align-items:center}.week-day-head h3{margin:0 0 10px}.week-day-head span{color:#697382}.no-entries{padding:7px 0 12px}.personal-month .month-cell{min-height:84px;align-items:center;text-align:center}.personal-month .month-cell em{margin-top:auto;margin-bottom:8px}.personal-month{background:#fff;border-radius:18px;overflow:hidden;border:1px solid var(--border)}
.todo-toolbar{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}.todo-nav{display:flex;gap:8px}.todo-nav button{border:0;background:#fff;border-radius:12px;padding:12px 15px;font-weight:850}.todo-groups section>h3{display:flex;justify-content:space-between;margin:20px 0 10px}.todo-card{width:100%;border:0;background:#fff;border-radius:18px;padding:15px 18px;display:grid;grid-template-columns:42px 1fr 28px;gap:12px;align-items:center;text-align:left;color:inherit;margin-bottom:10px}.todo-card input{width:30px;height:30px}.todo-card>div{display:grid;gap:4px}.todo-card b{font-size:16px}.todo-card small{color:#697382}
.person-card{padding:0 18px}.person-head{display:flex;align-items:center;gap:13px;padding:16px 0}.avatar{width:48px;height:48px;border-radius:50%;background:#2f72e8;color:#fff;display:grid;place-items:center;font-weight:900}.person-head>div:nth-child(2){display:grid;gap:3px;flex:1}.person-head small{color:#6f7986}.person-actions{display:flex;gap:7px}.person-actions button{border:0;border-radius:10px;background:#f2f4f7;padding:8px}.person-actions .trash{background:#fff0ed;color:#e65b48}.person-stats{border-top:1px solid #edf1f5;padding:12px 0;display:flex;gap:18px;flex-wrap:wrap;font-size:13px}.purple-text{color:#7f56d9}
.document-kpis,.contract-kpis,.team-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
.documents-empty{text-align:center;padding:70px 20px;color:#67717f}.documents-empty h3{color:#161a20}.documents-empty p{max-width:800px;margin:10px auto 55px}.documents-empty small{display:block}.folder-big{width:70px;height:70px;border-radius:18px;background:#f1f3f6;display:grid;place-items:center;margin:auto;font-size:34px}
.file-card{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:12px}.file-icon{width:44px;height:44px;border-radius:12px;background:#edf4ff;color:#2f72e8;display:grid;place-items:center;font-size:22px}.file-card>div{display:grid;gap:4px}.file-card small,.file-card>span:last-child{color:#6f7986}
.contract-hero{margin-bottom:18px}.status-breakdown{padding:0 18px}.status-breakdown>div{display:grid;grid-template-columns:1fr 50px 90px 50px;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #edf1f5}.status-breakdown>div:last-child{border-bottom:0}.status-breakdown span{display:flex;align-items:center;gap:8px}.status-breakdown strong,.status-breakdown em{text-align:right;font-style:normal}.status-dot{width:9px;height:9px;border-radius:50%}.status-dot.purple{background:#7f56d9}.status-dot.green{background:#1baa78}.status-dot.amber{background:#c77b1f}.status-dot.blue{background:#2f72e8}
.agreement{width:100%;text-align:left;color:inherit}.agreement-head{display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center}.agreement-head>div{display:grid;gap:4px}.agreement-head small{color:#6f7986}.agreement-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:17px 0 8px}.agreement-grid div{display:grid;gap:4px}.agreement-grid small{font-size:11px;color:#6f7986}.agreement-grid b{font-size:19px}.agreement-foot{display:flex;justify-content:space-between;color:#697382;font-size:12px}.blue-text{color:#2f72e8}
.fab{position:fixed;right:28px;bottom:28px;width:62px;height:62px;border-radius:50%;border:0;background:#2f72e8;color:#fff;font-size:34px;box-shadow:0 8px 22px #1e57b85c;z-index:8}.person-fab{font-size:20px}
.modal-bg{position:fixed;inset:0;background:#0018338c;display:grid;place-items:center;padding:20px;z-index:30}.modal{position:relative;background:#fff;border-radius:18px;padding:24px;width:min(590px,96vw);max-height:90vh;overflow:auto;box-shadow:0 30px 90px #0005}.modal h3{margin-top:0;font-size:22px}.modal-close{position:absolute;right:16px;top:14px;border:0;background:#f3f5f8;border-radius:9px;width:34px;height:34px}.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}

@media(max-width:1100px){
  .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .shell{grid-template-columns:78px 1fr}.side{padding:15px 9px}.side .brand>div,.nav button>span:last-child,.side-foot{display:none}.side .brand{justify-content:center;padding:0 0 15px}.nav button{justify-content:center}.main{padding:20px}
}
@media(max-width:700px){
  .shell{display:block;padding-bottom:82px}.side{position:fixed;z-index:20;left:0;right:0;bottom:0;top:auto;height:78px;border-right:0;border-top:1px solid var(--border);padding:5px 6px;background:#fff}.side .brand,.side-foot{display:none}
  .nav{display:flex;justify-content:space-around;gap:0;padding:0;overflow-x:auto}.nav button{min-width:67px;display:grid;justify-items:center;gap:1px;padding:6px 4px;font-size:10px;background:transparent!important;color:#687385}.nav button>span:last-child{display:block}.nav button.active{color:#1684e8}.nav-icon{height:24px}
  .main{padding:16px 14px 104px}.top{margin-bottom:16px}.top h1{font-size:28px}.top-actions .ghost{display:none}
  .hero{padding:22px 20px 18px;border-radius:22px}.hero-money{font-size:41px}.hero-sub{font-size:15px}.hero-stats{gap:12px}.hero-stats b{font-size:23px}.hero-stats span{font-size:12px}
  .kpi-grid{grid-template-columns:repeat(2,1fr);gap:10px}.kpi{min-height:112px;padding:14px}
  .bars{gap:5px}.bar-v{width:70%}
  .project-card{padding:16px}.project-stats{gap:12px}.project-foot{font-size:12px}
  .view-tabs,.calendar-tabs{gap:8px}.view-tabs button,.calendar-tabs button{padding:11px 8px}
  .chip-row{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}.chip{white-space:nowrap}
  .schedule-summary{grid-template-columns:repeat(4,1fr);gap:4px;padding:10px 5px}.mini-metric small{font-size:10px}
  .month-cell{min-height:90px;padding:5px}.month-cell small{font-size:9px}.month-cell em{font-size:9px}
  .calendar-entry{grid-template-columns:100px 1fr auto;padding:13px}.calendar-entry b{font-size:16px}
  .todo-toolbar{grid-template-columns:1fr}.todo-nav{justify-content:flex-end}.todo-card{grid-template-columns:38px 1fr 22px;padding:14px}
  .agreement-grid{gap:8px}.agreement-grid b{font-size:15px}.agreement-foot{font-size:10px}
  .status-breakdown>div{grid-template-columns:1fr 30px 70px 35px;font-size:12px}
  .fab{right:20px;bottom:92px;width:58px;height:58px}
  .row2{grid-template-columns:1fr}
}
