@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;600;700;800&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#192c35;background:#f4f6f8;--accent:#007f73;--muted:#71828b}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;border-radius:8px;padding:11px 17px;background:var(--accent);color:white;font-weight:600}button:hover{filter:brightness(.94)}button.secondary{background:#fff;color:#30464f;border:1px solid #dce3e6}button.danger{background:#fff1ef;color:#ad382f}button.link{background:none;color:var(--accent);padding:8px}input,textarea,select{border:1px solid #d7dfe3;border-radius:7px;padding:11px;width:100%;background:white;color:#243a44}label{display:block;margin:14px 0 7px;font-size:13px;font-weight:600}textarea{min-height:85px}h1,h2,h3,.brand{font-family:Manrope,sans-serif}h1{font-size:30px;letter-spacing:-1px;margin:9px 0}h2{font-size:21px}h3{font-size:17px}p{line-height:1.6}small,.muted{color:var(--muted)}.shell{display:grid;grid-template-columns:238px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid #e2e8eb;padding:32px 22px;display:flex;flex-direction:column;gap:28px;position:sticky;top:0;height:100vh}.brand{font-size:25px;letter-spacing:3px;font-weight:800;display:flex;gap:10px;align-items:center}.brand img{width:36px;height:36px;object-fit:contain}.mark{color:var(--accent)}.nav{display:grid;gap:7px}.nav button{text-align:left;background:none;color:#637781;font-weight:500}.nav button.active{background:#e7f3ef;color:#007768}.side-bottom{margin-top:auto;border-top:1px solid #e9eef0;padding-top:20px;font-size:13px}.avatar{display:inline-grid;place-items:center;background:#e4eee9;color:#397a67;width:36px;height:36px;border-radius:50%;margin-right:8px}.main{padding:0 42px 50px;min-width:0}.topbar{height:80px;border-bottom:1px solid #e1e7ea;display:flex;align-items:center;justify-content:space-between;color:#71828b;font-size:13px;margin-bottom:35px}.header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:28px}.eyebrow{font-size:11px;color:var(--accent);font-weight:700;letter-spacing:2px;text-transform:uppercase}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:25px 0 34px}.stat,.card,.panel{background:#fff;border:1px solid #e2e8eb;border-radius:12px;padding:23px}.stat strong{display:block;font-size:31px;margin:12px 0 5px;letter-spacing:-1px}.stat small{font-size:12px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:24px 0 16px;gap:12px}.projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.project{cursor:pointer;transition:transform .15s,box-shadow .15s}.project:hover{transform:translateY(-3px);box-shadow:0 10px 30px #183d4310}.project-head{display:flex;justify-content:space-between;align-items:start}.project-logo{width:46px;height:46px;object-fit:contain;border-radius:11px;background:#e9f2ef;padding:8px;display:grid;place-items:center;color:var(--accent);font-size:21px}.badge{background:#eef3f6;color:#647985;font-size:11px;padding:6px 9px;border-radius:5px}.badge.complete{background:#e7f5ee;color:#198257}.project p{font-size:13px;min-height:42px;color:var(--muted)}.bar{height:7px;background:#eaf0f0;border-radius:8px;overflow:hidden}.bar span{display:block;height:100%;background:var(--accent);border-radius:8px}.row{display:flex;justify-content:space-between;align-items:center;gap:10px}.project .row{font-size:12px;margin:16px 0 10px}.project footer{border-top:1px solid #edf0f2;margin-top:23px;padding-top:16px;display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.empty{text-align:center;padding:60px 20px;background:white;border:1px dashed #ccd9dc;border-radius:12px}.filters{display:flex;gap:10px}.filters input{max-width:240px}.filters select{max-width:160px}.overview{display:grid;grid-template-columns:1.7fr 1fr;gap:20px;margin-top:26px}.chartrow{display:grid;grid-template-columns:140px 1fr 40px;gap:14px;align-items:center;font-size:12px;margin:20px 0}.ring{width:144px;height:144px;border-radius:50%;display:grid;place-items:center;margin:18px auto;background:conic-gradient(var(--accent) calc(var(--p)*1%),#edf2f3 0)}.ring div{width:117px;height:117px;border-radius:50%;background:#fff;display:grid;place-content:center;text-align:center}.ring strong{font-size:28px}.ring small{font-size:10px}.breadcrumbs{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin-bottom:20px}.timeline-list{display:grid;gap:18px}.milestone{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:17px;align-items:start}.milestone-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.milestone-label{min-width:0}.milestone-title{overflow-wrap:anywhere}.milestone-percentage{display:block;margin-top:6px;color:var(--accent);font-size:20px}.milestone-heading .milestone-icon{flex-shrink:0;position:relative}.milestone-heading .milestone-icon:after{content:"";position:absolute;top:100%;left:50%;height:18px;border-left:1px dashed #a6c9be}.milestone-icon{width:48px;height:48px;border-radius:12px;background:#e8f4ef;display:grid;place-items:center;font-size:23px}.track{position:relative;height:10px;background:#e7edef;border-radius:10px;margin:18px 24px 12px 0}.track .fill{height:100%;background:var(--accent);border-radius:10px}.endpoint{position:absolute;right:-12px;top:-7px;border:3px solid white;background:#d8e3e5;border-radius:50%;width:24px;height:24px}.track.complete .endpoint{background:var(--accent)}.milestone-content{min-width:0}.milestone-content[role=button]{cursor:pointer;border-radius:8px}.milestone-content[role=button]:focus-visible{outline:2px solid var(--accent);outline-offset:7px}.milestone-title{font-weight:700}.milestone small{font-size:11px}.actions{display:flex;gap:9px;flex-wrap:wrap}.detail-intro{display:flex;align-items:center;gap:20px}.detail-intro .project-logo{width:66px;height:66px}.report-only{display:none}dialog{border:0;border-radius:14px;padding:28px;width:min(520px,94vw);box-shadow:0 20px 90px #122a4040;max-height:92vh;overflow:auto}dialog::backdrop{background:#142a3c75;backdrop-filter:blur(3px)}dialog h2{margin-top:0}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-art{background:#073e39;color:#fff;padding:80px;display:flex;flex-direction:column;justify-content:center}.auth-art h1{font-size:50px;line-height:1.15;max-width:500px}.auth-art p{color:#a7c7c1;max-width:430px}.auth-form{display:flex;align-items:center;justify-content:center;padding:30px}.auth-form form{width:360px}.auth-form button[type=submit]{width:100%;margin-top:24px}.error{color:#bc4137;font-size:13px}.settings{max-width:720px}.settings .panel{margin:20px 0}.settings img{height:60px;max-width:180px;object-fit:contain}.user-row{padding:14px 0;border-bottom:1px solid #e8edef}#toast{position:fixed;bottom:25px;right:25px;background:#163c36;color:white;padding:14px 20px;border-radius:10px;display:none;z-index:10}.report-section{break-inside:avoid;margin:30px 0}.cover{padding:80px 30px;text-align:center}.cover h1{font-size:42px}.cover img{max-height:100px;max-width:200px;margin:20px}.search-label{font-size:12px;color:var(--muted)}@media(max-width:1100px){.projects{grid-template-columns:repeat(2,1fr)}.main{padding:0 24px 40px}.shell{grid-template-columns:200px 1fr}.stats{gap:10px}.stat{padding:16px}}@media(max-width:760px){.shell{display:block}.sidebar{height:auto;position:static;padding:16px;gap:12px}.nav{display:flex}.side-bottom{display:none}.main{padding:0 16px 30px}.topbar{height:50px;margin-bottom:20px}.stats{grid-template-columns:repeat(2,1fr)}.projects,.overview{grid-template-columns:1fr}.header,.section-title{align-items:start;flex-direction:column}.auth{display:block}.auth-art{padding:35px}.auth-art h1{font-size:32px}.auth-form{padding:30px 20px}.milestone{gap:10px}.milestone>.actions{grid-column:auto}.milestone .row{align-items:start}.milestone .row small:last-child{white-space:nowrap}.filters{flex-wrap:wrap}.chartrow{grid-template-columns:100px 1fr 35px}}@media print{body{background:white;color:#192c35}.sidebar,.topbar,.no-print,dialog,#toast{display:none!important}.shell{display:block}.main{padding:0}.report-only{display:block}.screen-only{display:none!important}.cover{break-after:page}.panel,.card{box-shadow:none;break-inside:avoid}.projects{grid-template-columns:repeat(2,1fr)}.track,.bar,.ring,.fill{print-color-adjust:exact;-webkit-print-color-adjust:exact}button{display:none!important}@page{size:A4;margin:18mm}}
.checklist-section{margin:25px 0}.check-row{padding:16px 0;border-bottom:1px solid #e7ecef;break-inside:avoid}.check-row:last-child{border-bottom:0}.check-title{display:flex;align-items:center;gap:12px;font-size:14px;margin:0}.check-title input{width:19px;height:19px;flex-shrink:0;accent-color:var(--accent)}.check-row p{font-size:13px;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}.observations{color:#4b626d}.type-tags{display:flex;flex-wrap:wrap;gap:7px}.template-node{border-left:3px solid #c4e1d7;padding:10px 0 10px 20px;margin:20px 0}.template-node .template-node{margin-left:8px}.template-node>.row{flex-wrap:wrap}.report-checklist{margin:15px 0}.report-checklist h4{margin-bottom:5px}@media(max-width:760px){.template-node{padding-left:10px}.template-node .actions button{font-size:11px;padding:8px}.check-row.row{align-items:start;flex-wrap:wrap}}
.json-editor{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.55;min-height:280px;resize:vertical;tab-size:2;white-space:pre}dialog:has(.json-editor){width:min(860px,94vw)}.import-preview{background:#f4f8f6;border:1px solid #c9dfd5;border-radius:9px;padding:20px;margin:20px 0;max-height:350px;overflow:auto}.import-preview ul{padding-left:22px}.import-preview li{margin:12px 0}.import-preview p{font-size:12px;margin:5px 0;white-space:pre-wrap}.template-node h3 small{font-family:'DM Sans',sans-serif;font-size:11px;font-weight:400}
.report-project-list{margin:30px 0}.report-project-card{break-inside:avoid}.report-project-list h2{margin-bottom:18px}
@media print{body.printing-report>#app{display:none!important}body.printing-report>.report-only{display:block!important}}
/* Fixed project cards keep progress and footers aligned across every row. */
.project-summary{height:440px;min-width:0;display:flex;flex-direction:column;overflow:hidden}.project-summary .project-head{height:46px;flex-shrink:0}.project-summary h3{height:48px;min-height:48px;line-height:24px;margin:16px 0 8px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.project-summary .project-type{display:block;height:18px;min-height:18px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-summary p{height:63px;min-height:63px;line-height:21px;margin:12px 0 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere}.project-summary .row{margin:auto 0 10px;flex-shrink:0}.project-summary .bar{flex-shrink:0}.project-summary footer{margin-top:20px;flex-shrink:0;gap:8px}.project-summary footer span{white-space:nowrap}.project-summary .badge{white-space:nowrap}@media print{.project-summary{height:440px;break-inside:avoid}}
/* Shared project timeline: milestone icons sit above a single progress line. */
.timeline-overview{overflow-x:auto;padding:12px 3px 8px;overscroll-behavior-x:contain}.timeline-overview-rail{display:grid;grid-template-columns:repeat(var(--steps),minmax(0,1fr));min-width:calc(var(--steps)*160px);position:relative;padding-bottom:8px}.timeline-overview-track{position:absolute;top:72px;left:calc(50% / var(--steps));right:calc(50% / var(--steps));height:8px;background:#dfe8e7;border-radius:8px}.timeline-overview-track>span{display:block;height:100%;background:var(--accent);border-radius:8px}.timeline-overview-stop{display:grid;grid-template-rows:48px 24px 48px 20px;justify-items:center;gap:12px;text-align:center;position:relative;padding:0 10px;border-radius:8px;min-width:0}.timeline-overview-stop[role=button]{cursor:pointer}.timeline-overview-stop[role=button]:hover .timeline-overview-icon{background:#cce9df;transform:translateY(-3px)}.timeline-overview-stop[role=button]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.timeline-overview-icon{width:48px;height:48px;border-radius:12px;display:grid;place-items:center;font-size:26px;background:#e8f4ef;transition:transform .15s,background .15s;position:relative}.timeline-overview-icon:after{content:"";position:absolute;top:100%;left:50%;height:23px;border-left:1px dashed #9fbfb4}.timeline-overview-dot{width:20px;height:20px;margin-top:6px;border-radius:50%;background:#d1ddda;border:3px solid white;z-index:1}.is-complete .timeline-overview-dot{background:var(--accent)}.timeline-overview-title{font-weight:600;font-size:12px;line-height:16px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere;align-self:start}.timeline-overview-stop strong{font-size:13px;color:var(--accent)}.timeline-overview-labels{min-width:280px;margin-top:10px}.timeline-overview-labels small{font-size:11px}@media print{.timeline-overview{overflow:visible;break-inside:avoid}.timeline-overview-rail{min-width:0}.timeline-overview-icon,.timeline-overview-track,.timeline-overview-dot{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
.timeline-overview-rail.is-single .timeline-overview-stop{width:160px;justify-self:end}.timeline-overview-rail.is-single .timeline-overview-track{left:0;right:80px}
.dashboard-project-timeline{padding:18px 0;border-top:1px solid #e5ece9;min-width:0}.dashboard-project-title{text-align:left;white-space:normal;overflow-wrap:anywhere;font-size:13px;padding-left:0!important}.dashboard-project-timeline>.row>b{font-size:15px;color:var(--accent);white-space:nowrap}.overview>.panel{min-width:0}.dashboard-project-timeline .timeline-overview-rail{min-width:calc(var(--steps)*140px)}.dashboard-project-timeline .timeline-overview-rail.is-single .timeline-overview-stop{width:140px}.dashboard-project-timeline .timeline-overview-rail.is-single .timeline-overview-track{right:70px}
.dependency-panel{margin:24px 0}.dependency-panel>p{font-size:12px}.dependency-relation{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr) auto;gap:12px;align-items:center;padding:18px 0;border-bottom:1px solid #e8eeeb}.dependency-relation small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.dependency-name{text-align:left;padding:0!important;white-space:normal;overflow-wrap:anywhere}.dependency-arrow{font-size:23px;color:#b17b20;text-align:center}.dependency-state,.dependency-summary{font-size:11px;border-radius:6px;background:#fff3d9;color:#8b5e12;padding:7px 9px}.dependency-summary{margin-top:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}.dependency-state{white-space:nowrap}.is-ready .dependency-state,.dependency-summary.is-ready{background:#e6f5ed;color:#177348}.is-ready .dependency-arrow{color:#177348}.dependency-icon-flag{position:absolute;right:-5px;top:-7px;background:#fff0cd;color:#8b5e12;border:2px solid white;border-radius:50%;font-size:14px;width:23px;height:23px;display:grid;place-items:center}.badge.waiting{background:#fff3d9;color:#8b5e12}.dependency-manage-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #e6ece9}.dependency-manage-row span{overflow-wrap:anywhere;min-width:0}@media(max-width:760px){.dependency-relation{grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr)}.dependency-state{grid-column:1/-1;justify-self:start}}@media print{.dependency-relation{break-inside:avoid}.dependency-state{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
.timeline-overview-stop[draggable=true]{cursor:grab}.timeline-overview-stop[draggable=true]:active{cursor:grabbing}.timeline-overview-stop.is-dragging{opacity:.35}.timeline-overview-stop.drop-before{box-shadow:inset 4px 0 var(--accent)}.timeline-overview-stop.drop-after{box-shadow:inset -4px 0 var(--accent)}.timeline-order-hint{font-size:11px;color:var(--muted);margin:12px 0 0}.milestone>.actions{max-width:150px}button:disabled{opacity:.4;cursor:default}
/* The dashboard devotes the full content width to compact milestone timelines. */
.overview.overview-full{grid-template-columns:minmax(0,1fr)}.team-progress-summary{display:flex;align-items:center;gap:22px;padding:18px 24px}.team-progress-summary h3{margin:0 0 6px}.team-progress-summary p{margin:0;font-size:13px}.team-progress-summary .ring{width:82px;height:82px;margin:0;flex-shrink:0}.team-progress-summary .ring>div{width:66px;height:66px}.team-progress-summary .ring strong{font-size:21px}.team-progress-summary .ring small{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.dashboard-project-timeline .timeline-compact{overflow:visible}.dashboard-project-timeline .timeline-compact .timeline-overview-rail{min-width:0}.timeline-compact .timeline-overview-stop{grid-template-rows:36px 20px 18px;gap:8px;padding:0 2px}.timeline-compact .timeline-overview-icon{width:min(36px,100%);height:36px;font-size:clamp(12px,calc(700px / var(--steps)),23px);border-radius:8px}.timeline-compact .timeline-overview-icon:after{height:24px}.timeline-compact .timeline-overview-track{top:56px}.timeline-compact .timeline-overview-dot{width:14px;height:14px;border-width:2px;margin-top:9px}.timeline-compact .timeline-overview-stop strong{font-size:clamp(9px,calc(400px / var(--steps)),12px)}.dashboard-project-timeline .timeline-compact .timeline-overview-rail.is-single .timeline-overview-stop{width:80px}.dashboard-project-timeline .timeline-compact .timeline-overview-rail.is-single .timeline-overview-track{right:40px}.timeline-compact .dependency-icon-flag{font-size:10px;width:18px;height:18px;right:-3px}.timeline-compact .timeline-order-hint{margin-top:8px}@media(max-width:760px){.team-progress-summary{gap:14px;padding:16px}.team-progress-summary h3{font-size:15px}.team-progress-summary p{font-size:12px}}
@media(max-width:760px){.dashboard-project-timeline .timeline-compact{overflow-x:auto}.dashboard-project-timeline .timeline-compact .timeline-overview-rail{min-width:calc(var(--steps)*28px)}}
/* Equal-length stages: each stage is filled by its own milestone percentage. */
.timeline-overview-rail.timeline-segmented{margin-left:4px;margin-right:28px}.timeline-segmented .timeline-overview-stop{justify-items:end;padding-left:0;padding-right:0}.timeline-stage-track{position:absolute;top:72px;left:0;right:0;height:8px;background:#dfe8e7;pointer-events:none}.timeline-stage-track>span{display:block;height:100%;background:var(--accent);print-color-adjust:exact;-webkit-print-color-adjust:exact}.timeline-segmented .timeline-overview-icon{transform:translateX(50%);z-index:1}.timeline-segmented .timeline-overview-stop[role=button]:hover .timeline-overview-icon{transform:translate(50%,-3px)}.timeline-segmented .timeline-overview-dot{transform:translateX(50%)}.timeline-segmented .timeline-overview-title{width:100%;max-width:150px;transform:translateX(50%)}.timeline-segmented .timeline-overview-stop strong{transform:translateX(50%)}.timeline-segmented .timeline-overview-stop:last-child .timeline-overview-title{transform:none;text-align:right}.timeline-compact .timeline-stage-track{top:56px}.timeline-progress-hint{font-size:11px;color:var(--muted);margin:8px 0 0}.timeline-segmented .timeline-stage-track,.timeline-segmented .timeline-stage-track>span{border-radius:0}.timeline-segmented .timeline-overview-stop:first-child .timeline-stage-track,.timeline-segmented .timeline-overview-stop:first-child .timeline-stage-track>span{border-radius:8px 0 0 8px}.timeline-segmented .timeline-overview-stop:last-child .timeline-stage-track{border-radius:0 8px 8px 0}@media print{.timeline-stage-track{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
.user-access-row{display:grid;grid-template-columns:minmax(0,1fr) 150px auto;gap:14px;align-items:center;padding:17px 0;border-bottom:1px solid #e5ece9}.user-access-row label{margin:0;font-size:11px}.user-access-row label select{margin-top:5px;font-size:13px}.user-access-row small{overflow-wrap:anywhere}.permission-owner{padding:18px;background:#f0f7f3;border-radius:9px;margin:18px 0}.permission-owner p{font-size:12px;color:var(--muted)}@media(max-width:760px){.user-access-row{grid-template-columns:minmax(0,1fr) auto}.user-access-row>div{grid-column:1/-1}}
