@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
:root{font-family:"DM Sans",system-ui,sans-serif;color:#172a31;background:#f2f5f4;--green:#12634e;--line:#dde6e2;--muted:#536963;--head:#e9f2ee;--red:#ba4c3e}
*{box-sizing:border-box}
body{margin:0}
.mast{display:flex;align-items:center;gap:11px;background:#102c29;color:white;padding:14px max(20px,4vw);letter-spacing:.12em}
.mast span:last-child{font-size:10px;color:#b6d0c8}
.logo{display:grid;place-items:center;width:29px;height:29px;background:#dcf279;color:#18332b;font-weight:800;border-radius:7px}
main{margin:0 auto;padding:30px max(16px,4vw);max-width:1900px}
.heading,.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
h1{font-size:clamp(38px,6vw,62px);letter-spacing:-.065em;line-height:1;margin:7px 0}
h2{margin:0;font-size:21px;letter-spacing:-.035em}
p{margin:5px 0;color:var(--muted)}
.eyebrow,.metric small{font-size:11px;font-weight:700;letter-spacing:.1em;color:var(--green)}
.actions,.legend{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
button{font:inherit;font-size:13px;font-weight:700;color:#244239;background:white;border:1px solid #bfcfc8;padding:8px 12px;border-radius:8px;cursor:pointer}
button:hover{background:#eaf3ee}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #287a63;outline-offset:2px}
.primary{background:var(--green);border-color:var(--green);color:white}
.primary:hover{background:#104f40}
.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:12px;margin:22px 0}
.metric,.panel{background:white;border:1px solid var(--line);border-radius:13px}
.metric{padding:14px 16px}
.metric strong{display:block;margin-top:6px;font-size:21px}
.metric small{display:block}
.toolbar,.legend,.foot{padding:13px 16px}
#status,.legend,.foot{font-size:12px;color:var(--muted)}
.legend{gap:16px;border-top:1px solid var(--line)}
.legend span{display:flex;align-items:center;gap:5px}
.legend i{width:18px;height:7px;border-radius:4px}
.table-scroll{position:relative;overflow:auto;max-height:66vh;border-block:1px solid var(--line)}
table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px}
th,td{padding:6px;text-align:center;border-bottom:1px solid var(--line)}
#gantt thead{position:sticky;top:0;z-index:2}
thead th{background:var(--head)}
thead .month{background:#dcebe4;color:#254c40;border-left:1px solid #c4d9cf;text-transform:capitalize;padding:4px 2px;line-height:1.15}
.name{position:sticky;left:0;text-align:left;background:white;min-width:235px;max-width:270px;z-index:1}
thead .name{background:var(--head);z-index:3}
.name button{border:0;background:transparent;text-align:left;padding:2px;color:inherit;font-size:inherit}
.estimate{display:inline-block;margin-inline:4px;padding:1px 4px;border-radius:3px;background:#fbefd1;color:#684f14;font-size:.8em;font-weight:600}
.confirm-estimate{display:flex;align-items:center;gap:6px}
.name button:hover{text-decoration:underline}
.group th{background:#edf5f0;text-align:left;color:#255749;font-weight:800;padding:7px 9px}
.data{white-space:nowrap}
.week{min-width:39px;border-left:1px solid #e7eeea;padding:0}
td.week,th.today-cell{position:relative}
.today-cell::after{content:"";position:absolute;left:var(--today-offset);top:0;bottom:-1px;width:2px;background:#1266a5;transform:translateX(-50%);pointer-events:none;z-index:1}
.legend .today-swatch{width:2px;height:14px;background:#1266a5;border-radius:0}
.group td{background:#edf5f0;padding:0}
#gantt{overflow-anchor:none}
#dependencies{position:absolute;top:0;left:0;pointer-events:none}
.dependency-toggle{display:flex;align-items:center;gap:5px;margin:0;font-weight:600}
.dependency-toggle input{margin:0;accent-color:var(--green)}
.week small{display:block;font-size:9px;font-weight:400;white-space:nowrap;padding-inline:2px}
.deadline{border-right:2px solid #876700}
.bar{display:block;height:12px;margin:0 0 3px;position:relative;overflow:hidden}
[data-bar]{cursor:grab;touch-action:none}
.dragging [data-bar]{cursor:grabbing}
.resize-bar{position:absolute;inset:0 0 0 auto;width:min(7px,50%);background:#213b375e;border-left:1px solid #fff9;cursor:ew-resize}
.drag-preview{padding:8px 16px;color:#254c40;background:var(--head);font-size:12px;font-weight:700}
.drag-changes{max-height:32vh;overflow:auto;margin:12px 0}
.drag-changes th{text-align:left}
.drag-changes td{white-space:nowrap}
.planned{background:#85b9aa}.critical{background:#df8b7e}.draft{background:#d6e2dd}.base{background:#485d66}.progress{background:#12634e}
.bar .progress{display:block;height:100%}
.baseline-bar{height:3px;position:absolute;bottom:4px;left:0;right:0}
dialog{width:min(600px,calc(100vw - 26px));border:1px solid var(--line);border-radius:15px;color:inherit;padding:22px;max-height:90vh}
dialog::backdrop{background:#112c29a0}
.field-help{font-size:12px;margin:0}
.activity-preview{background:var(--head);border-radius:6px;padding:9px 10px;font-size:13px;font-weight:700}
form .fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
label{display:grid;gap:4px;font-size:12px;font-weight:700}
input,textarea,select{min-width:0;font:inherit;padding:8px;border:1px solid #bfcfc8;border-radius:6px;background:white}
.wide{grid-column:1/-1}
.error{color:#9b352c}
.preview{max-height:240px;overflow:auto;padding-left:25px}
.report-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:8px;margin:14px 0}
.report-facts div{background:var(--head);padding:8px;border-radius:6px}
.report-facts dt{font-size:.83em;color:var(--muted)}
.report-facts dd{margin:2px 0 0;font-weight:700}
dialog details{border-top:1px solid var(--line);padding:8px 0}
dialog summary{cursor:pointer;font-weight:700}
dialog li{margin:4px 0}
.report-actions{margin-top:12px}
#report{display:none}
@media(max-width:540px){main{padding-top:20px}.mast span:last-child{display:none}.name{min-width:165px}}
@media print{
*{print-color-adjust:exact;-webkit-print-color-adjust:exact}
body{background:white}
body>header,main,dialog{display:none!important}
#report{display:block}
#report[data-paper="A0"]{position:relative;overflow:hidden}
#report[data-paper="A0"] article{position:absolute;inset:0 auto auto 0;transform-origin:top left}
}
#report{font-size:9pt}
#report h1{font-size:23pt;margin:0 0 4px}
#report p{margin:3px 0 5px;color:#22352e}
#report table{font-size:7pt;table-layout:fixed}
#report thead{display:table-header-group}
#report tr{break-inside:avoid}
#report .group{break-after:avoid}
#report th,#report td{position:static;padding:2px 1px}
#report .name{width:23%;min-width:0;padding-left:4px;overflow-wrap:anywhere}
#report .data{width:5.5%;white-space:normal}
#report .week{min-width:0;position:relative}
#report thead .week{font-size:var(--print-week-font);padding-inline:0}
#report .week small{display:block;font-size:.8em;padding:0;white-space:nowrap}
#report .legend{padding:5px 0 7px;gap:10px;font-size:7.5pt}
#report .month{overflow-wrap:anywhere;font-size:.9em}
#report[data-paper="A3"] table{font-size:8.5pt}
#report .print-summary{break-inside:avoid}
#report .report-facts{grid-template-columns:repeat(6,minmax(0,1fr));margin:5px 0}
#report .report-facts div{padding:4px}
#report .print-summary h3,#report .print-summary ul{margin:4px 0}
#report .bar{height:8px;margin-bottom:2px}
#report .baseline-bar{height:2px;bottom:1px}
#report[data-paper="A0"]{font-size:18pt}
#report[data-paper="A0"] h1{font-size:42pt}
#report[data-paper="A0"] table{font-size:14pt}
#report[data-paper="A0"] th,#report[data-paper="A0"] td{padding:5px 2px}
#report[data-paper="A0"] .name{width:22%;padding-left:8px}
#report[data-paper="A0"] .data{width:5%}
#report[data-paper="A0"] .legend{font-size:15pt}
#report[data-paper="A0"] .legend i{width:32px;height:12px}
#report[data-paper="A0"] .legend .today-swatch{width:3px;height:21px}
#report[data-paper="A0"] .bar{height:16px;margin-bottom:3px}
#report[data-paper="A0"] .baseline-bar{height:4px}
#report[data-paper="A0"]{font-family:system-ui,sans-serif}
#report[data-paper="A0"] article{overflow-wrap:anywhere}
#report.measuring{display:block;position:fixed;left:-100000px;top:0;visibility:hidden;pointer-events:none}


.link-ribbon{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 16px;background:var(--head);border-top:1px solid var(--line)}
.link-ribbon label{display:flex;align-items:center;gap:5px;min-width:0}
.link-ribbon select{max-width:min(230px,65vw)}
.link-ribbon button[aria-pressed="true"]{background:var(--green);color:white}
.link-ribbon button:disabled{opacity:.5;cursor:default}
#gantt .selected-activity :is(th,td){background:#e3f0e9}

.group .group-duration{font-weight:800;color:#255749;padding-inline:4px}

.activity-details>label{margin-top:8px}
.activity-details>.fields{margin-bottom:0}

.works-bar{margin-bottom:16px}
.works-bar label{display:flex;align-items:center;gap:8px}
.works-bar select{max-width:min(350px,65vw)}
.group-edit{border:0;background:transparent;color:inherit;padding:0;text-align:left}

.row-grip{display:inline-block;cursor:grab;color:var(--muted);padding:1px 5px 1px 0;user-select:none}
.row-grip:active{cursor:grabbing}
#gantt .drop-before :is(th,td){box-shadow:inset 0 2px var(--green)}
#gantt .drop-after :is(th,td){box-shadow:inset 0 -2px var(--green)}
#gantt .drop-into :is(th,td){background:#c9e9dd}
