:root{--ink:#17211c;--muted:#768079;--line:#e5e8e5;--paper:#f4f5f2;--white:#fff;--green:#1e5c43;--green2:#34795d;--mint:#dcebe3;--orange:#e8863a;--red:#c95745;--blue:#4d7399;--shadow:0 12px 30px rgba(28,45,36,.08)}
*{box-sizing:border-box}body{margin:0;font-family:"Microsoft YaHei",Inter,system-ui,sans-serif;color:var(--ink);background:var(--paper);font-size:14px}.sidebar{position:fixed;inset:0 auto 0 0;width:230px;background:#123b2d;color:#e9f2ed;padding:28px 18px 20px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:12px;padding:0 10px 34px}.brand-mark{width:40px;height:40px;border:1px solid #74a38d;border-radius:12px;display:grid;place-items:center;font-size:20px;font-weight:800;background:#1b513d}.brand b{font-size:20px;letter-spacing:2px}.brand span,.side-bottom span{display:block;font-size:9px;letter-spacing:1.7px;color:#a8c4b7;margin-top:2px}nav{display:flex;flex-direction:column;gap:7px}.nav-item{border:0;background:transparent;color:#b8cec4;border-radius:10px;padding:13px 14px;text-align:left;font-size:14px;cursor:pointer;display:flex;gap:13px;align-items:center}.nav-item i{font-style:normal;width:20px;text-align:center;font-size:17px}.nav-item:hover,.nav-item.active{background:#fff;color:#174331;font-weight:700}.side-bottom{margin-top:auto;border-top:1px solid #386452;padding:20px 5px 0;display:flex;gap:10px;align-items:center}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#d3e4db;color:#174331;font-weight:700}.side-bottom b{font-size:13px}.side-bottom button{margin-left:auto;border:0;background:transparent;color:#a8c4b7;font-size:18px;cursor:pointer}main{margin-left:230px;min-height:100vh}header{height:96px;padding:22px 34px;background:rgba(255,255,255,.88);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:4;backdrop-filter:blur(10px)}h1{font-family:Georgia,"Microsoft YaHei",serif;font-size:25px;margin:0 0 5px}header p{margin:0;color:var(--muted);font-size:12px}.header-actions{display:flex;align-items:center;gap:10px}.search{height:40px;width:245px;border:1px solid var(--line);border-radius:9px;background:#f8f9f7;display:flex;align-items:center;gap:8px;padding:0 12px;color:#849087}.search input{border:0;outline:0;background:transparent;width:100%;font:inherit}.primary,.secondary,.icon-btn{border:0;border-radius:9px;height:40px;padding:0 16px;cursor:pointer;font-weight:700}.primary{background:var(--green);color:#fff}.primary:hover{background:var(--green2)}.secondary{background:#eef1ee;color:#34433b}.icon-btn{width:40px;padding:0;background:#eef1ee;color:var(--orange);font-size:10px}#content{padding:28px 34px 45px}.hero{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.hero h2{font-family:Georgia,"Microsoft YaHei",serif;font-size:24px;margin:0 0 6px}.hero p{color:var(--muted);margin:0}.date-chip{color:var(--green);background:var(--mint);border-radius:20px;padding:8px 14px;font-size:12px;font-weight:700}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.stat-card,.card{background:var(--white);border:1px solid var(--line);border-radius:14px;box-shadow:0 2px 3px rgba(0,0,0,.015)}.stat-card{padding:18px 20px;position:relative;overflow:hidden}.stat-card:after{content:"";position:absolute;width:55px;height:55px;border-radius:50%;right:-16px;top:-17px;background:var(--tint,#e5eee8)}.stat-top{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.stat-icon{font-size:18px;color:var(--accent,var(--green))}.stat-value{font:700 29px Georgia,serif;margin:12px 0 7px}.stat-foot{font-size:11px;color:var(--muted)}.stat-foot strong{color:var(--accent,var(--green))}.dashboard-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:20px}.card{padding:20px}.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.card-head h3{font-size:15px;margin:0}.link-btn{border:0;background:transparent;color:var(--green);font-weight:700;cursor:pointer}.project-list{display:flex;flex-direction:column;gap:11px}.project-row{padding:13px;border:1px solid var(--line);border-radius:10px;display:grid;grid-template-columns:42px 1fr 120px 70px;align-items:center;gap:12px}.project-code{width:40px;height:40px;border-radius:9px;background:#e5efe9;color:var(--green);display:grid;place-items:center;font-weight:800}.project-row h4{margin:0 0 5px;font-size:13px}.project-row p{margin:0;color:var(--muted);font-size:11px}.progress{height:5px;background:#e8ece9;border-radius:8px;overflow:hidden}.progress span{display:block;height:100%;background:var(--green);border-radius:8px}.progress-label{display:flex;justify-content:space-between;margin-bottom:5px;font-size:10px;color:var(--muted)}.badge{display:inline-flex;align-items:center;justify-content:center;border-radius:14px;padding:5px 9px;font-size:10px;font-weight:700}.badge.green{color:#24634b;background:#e0eee6}.badge.orange{color:#a95b22;background:#fce8d9}.badge.red{color:#a33d31;background:#f8ded9}.badge.blue{color:#3e6589;background:#e1eaf3}.timeline{position:relative;padding-left:18px}.timeline:before{content:"";position:absolute;left:4px;top:8px;bottom:10px;width:1px;background:#d9dfda}.event{position:relative;padding:0 0 17px 10px}.event:before{content:"";position:absolute;left:-18px;top:5px;width:7px;height:7px;border-radius:50%;background:var(--dot,var(--green));box-shadow:0 0 0 4px #fff}.event h4{font-size:12px;margin:0 0 4px}.event p{font-size:11px;color:var(--muted);margin:0;line-height:1.55}.event time{font-size:10px;color:#a3aaa5}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.filter-group{display:flex;gap:8px}.filter{border:1px solid var(--line);background:#fff;padding:8px 13px;border-radius:8px;color:#647068;cursor:pointer}.filter.active{background:var(--green);color:white;border-color:var(--green)}table{width:100%;border-collapse:collapse;background:#fff;border-radius:13px;overflow:hidden;border:1px solid var(--line)}th{text-align:left;color:#8a938d;font-size:11px;font-weight:600;padding:14px;border-bottom:1px solid var(--line);background:#fafbf9}td{padding:15px 14px;border-bottom:1px solid #edf0ed;font-size:12px}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcfb}.strong{font-weight:700}.sub{display:block;color:var(--muted);font-size:10px;margin-top:4px}.row-actions button{border:0;background:#edf1ee;color:#496055;border-radius:6px;padding:5px 8px;cursor:pointer}.empty{text-align:center;color:var(--muted);padding:50px}.report-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:20px}.chart{height:230px;display:flex;align-items:end;gap:22px;padding:25px 15px 5px;border-bottom:1px solid var(--line)}.bar-wrap{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px}.bar{width:70%;min-width:25px;background:linear-gradient(#39785d,#1d5841);border-radius:7px 7px 2px 2px;position:relative;transition:.4s}.bar:before{content:attr(data-value);position:absolute;top:-22px;width:100%;text-align:center;font-size:10px;font-weight:700}.bar-label{font-size:10px;color:var(--muted)}.donut-wrap{display:flex;align-items:center;justify-content:center;gap:28px;height:230px}.donut{width:145px;height:145px;border-radius:50%;background:conic-gradient(var(--green) 0 42%,var(--orange) 42% 68%,var(--red) 68% 84%,var(--blue) 84%);position:relative}.donut:after{content:"";position:absolute;inset:30px;border-radius:50%;background:white}.legend{display:flex;flex-direction:column;gap:13px}.legend-item{display:flex;align-items:center;gap:8px;font-size:11px}.legend-item i{width:9px;height:9px;border-radius:50%}.insight{margin-top:20px;background:#173f31;color:white;border:0;display:flex;align-items:center;justify-content:space-between}.insight p{color:#bed1c8;margin:6px 0 0;font-size:12px}.insight strong{color:#ffd5b2}.modal-backdrop{position:fixed;inset:0;background:rgba(14,31,23,.46);z-index:20;display:none;place-items:center;padding:20px}.modal-backdrop.open{display:grid}.modal{width:min(680px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:25px;box-shadow:var(--shadow)}.modal-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:22px}.modal h2{margin:4px 0 0;font:700 22px Georgia,"Microsoft YaHei",serif}.eyebrow{color:var(--green);font-size:10px;letter-spacing:1px;font-weight:800}.close-btn{border:0;background:#eff2ef;width:32px;height:32px;border-radius:50%;font-size:20px;cursor:pointer}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:7px}.field.full{grid-column:1/-1}.field label{font-size:11px;color:#5d6962;font-weight:700}.field input,.field select,.field textarea{border:1px solid #dfe4df;border-radius:8px;padding:11px;font:inherit;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--green)}.field textarea{min-height:75px;resize:vertical}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}#toast{position:fixed;right:28px;bottom:28px;background:#173f31;color:#fff;padding:13px 18px;border-radius:9px;box-shadow:var(--shadow);opacity:0;transform:translateY(12px);pointer-events:none;transition:.25s;z-index:30}#toast.show{opacity:1;transform:none}@media(max-width:1000px){.stats{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.report-grid{grid-template-columns:1fr}.search{display:none}}@media(max-width:720px){.sidebar{width:68px;padding:22px 9px}.brand{padding:0 4px 28px}.brand>div:last-child,.nav-item:not(.active){font-size:0}.brand-mark{width:40px}.nav-item{justify-content:center;padding:13px 8px}.nav-item i{font-size:18px}.side-bottom>div:not(.avatar),.side-bottom button{display:none}main{margin-left:68px}header{padding:18px;height:82px}#content{padding:20px 16px}.header-actions .icon-btn{display:none}.primary{padding:0 11px}.stats{grid-template-columns:1fr 1fr;gap:10px}.project-row{grid-template-columns:40px 1fr}.project-row>.progress,.project-row>.badge{display:none}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.toolbar{align-items:start;gap:10px;flex-direction:column}.table-wrap{overflow-x:auto}}
.row-actions{white-space:nowrap}.row-actions button{margin-right:6px}.row-actions .edit-btn{background:#dfece5;color:#1e5c43}.row-actions button:hover{filter:brightness(.96)}
.project-link{border:0;background:transparent;text-align:left;padding:0;color:var(--ink);cursor:pointer}.project-link:hover b{color:var(--green);text-decoration:underline}.back-btn{border:0;background:transparent;color:var(--green);font-weight:700;cursor:pointer;margin:0 0 14px;padding:0}.project-hero{display:flex;align-items:center;justify-content:space-between;padding:26px 28px;background:linear-gradient(120deg,#fff 65%,#e1eee7)}.project-hero h2{font:700 25px Georgia,serif;margin:5px 0}.project-hero p{margin:0;color:var(--muted)}.project-progress{text-align:center;border-left:1px solid #cadbd1;padding-left:34px}.project-progress b{font:700 34px Georgia,serif;color:var(--green);display:block}.project-progress span{font-size:10px;color:var(--muted)}.detail-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:16px 0}.detail-stats .card{padding:17px 19px}.detail-stats span{font-size:10px;color:var(--muted);display:block;margin-bottom:8px}.detail-stats b{font-size:14px}.workflow-card{padding:24px}.workflow{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;margin-top:22px}.workflow-step{position:relative}.workflow-step:not(:last-child):after{content:"";position:absolute;top:16px;left:35px;right:-12px;height:2px;background:#dfe5e1}.step-marker{width:33px;height:33px;border-radius:50%;display:grid;place-items:center;background:#edf0ee;color:#879089;font-weight:800;position:relative;z-index:1}.workflow-step.done .step-marker{background:var(--green);color:white}.workflow-step.active .step-marker{background:var(--orange);color:white;box-shadow:0 0 0 5px #fce8d9}.step-body{margin-top:13px}.step-body h4{font-size:11px;margin:0 0 4px}.step-body span{font-size:9px;color:var(--muted)}.step-body p{font-size:10px;margin:10px 0 4px;line-height:1.5}.step-body small{font-size:9px;color:#929a95}@media(max-width:1100px){.workflow{grid-template-columns:1fr}.workflow-step{display:grid;grid-template-columns:40px 1fr}.workflow-step:not(:last-child):after{top:34px;bottom:-12px;left:16px;width:2px;height:auto;right:auto}.step-body{margin:0}.detail-stats{grid-template-columns:1fr 1fr}}
.auth-backdrop{position:fixed;inset:0;background:rgba(13,38,29,.72);z-index:50;display:none;place-items:center;padding:20px;backdrop-filter:blur(8px)}.auth-backdrop.open{display:grid}.auth-card{width:min(410px,95vw);background:#fff;border-radius:18px;padding:34px;box-shadow:0 24px 60px rgba(0,0,0,.25)}.auth-card .brand-mark{margin-bottom:18px;color:#fff}.auth-card h2{font:700 28px Georgia,serif;margin:7px 0}.auth-card>p{color:var(--muted);line-height:1.55;margin:0 0 22px}.auth-card form,.auth-card label{display:flex;flex-direction:column}.auth-card form{gap:14px}.auth-card label{gap:7px;font-size:11px;font-weight:700;color:#56635c}.auth-card input{border:1px solid var(--line);border-radius:9px;padding:12px;font:inherit}.auth-card .primary,.auth-card .secondary{width:100%}.auth-switch{margin-top:-5px}.local-link{display:block;margin:17px auto 0;border:0;background:transparent;color:var(--muted);font-size:11px;cursor:pointer;text-decoration:underline}#authError{color:var(--red);font-size:11px;min-height:4px}.sync-status{position:fixed;right:18px;bottom:17px;z-index:10;background:#e9ecea;color:#68736d;padding:7px 11px;border-radius:16px;font-size:10px;box-shadow:0 3px 10px rgba(0,0,0,.06)}.sync-status.online{background:#dcebe3;color:var(--green)}.sync-status.error{background:#f8ded9;color:var(--red)}

/* Modern responsive dashboard */
:root{--paper:#f3f6f4;--ink:#10231b;--line:#e1e8e4;--green:#175f45;--green2:#217658;--mint:#e3f2ea;--shadow:0 14px 40px rgba(20,62,46,.08)}
body{background:radial-gradient(circle at 75% 0,#e8f1ec 0,transparent 28%),var(--paper)}
.sidebar{width:248px;padding:25px 18px 20px;background:linear-gradient(180deg,#0b3427,#102c23);box-shadow:8px 0 28px rgba(9,39,29,.08)}
.brand{padding-bottom:27px}.brand-mark{border:0;background:linear-gradient(145deg,#3f9a72,#1d674b);box-shadow:0 8px 22px rgba(0,0,0,.18)}
.nav-item{min-height:46px;border-radius:12px;transition:.2s}.nav-item:hover,.nav-item.active{background:rgba(255,255,255,.95);box-shadow:0 8px 20px rgba(0,0,0,.1)}
main{margin-left:248px}header{height:88px;padding:18px clamp(24px,3vw,44px);background:rgba(250,252,251,.78);border-color:rgba(222,230,225,.8)}
h1{font-family:inherit;font-size:22px;letter-spacing:-.5px}.search{width:min(280px,22vw);border-radius:12px;background:#fff;box-shadow:0 4px 16px rgba(25,58,45,.04)}
.primary,.secondary,.icon-btn{border-radius:11px}.primary{box-shadow:0 7px 18px rgba(23,95,69,.18)}
#content{padding:32px clamp(24px,3vw,44px) 54px;max-width:1500px;margin:auto}
.welcome{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:30px;padding:30px 34px;margin-bottom:18px;border-radius:22px;color:white;background:linear-gradient(115deg,#0e4936 0%,#1c684e 58%,#358666 100%);box-shadow:0 18px 42px rgba(20,77,57,.18)}
.welcome:after{content:"";position:absolute;z-index:-1;width:330px;height:330px;right:-80px;top:-180px;border:55px solid rgba(255,255,255,.07);border-radius:50%}.welcome h2{font-size:30px;letter-spacing:-.8px;margin:6px 0 8px}.welcome h2 span{font-size:24px}.welcome p{margin:0;color:#cfe3da;line-height:1.5}.welcome-kicker,.section-kicker{font-size:10px;text-transform:uppercase;letter-spacing:1.3px;font-weight:800}.welcome-kicker{color:#a9d5c2}.welcome-side{display:flex;align-items:flex-end;flex-direction:column;gap:15px}.date-chip{color:#eaf7f1;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.17);text-transform:capitalize}.welcome-action{border:0;background:transparent;color:white;font-weight:700;cursor:pointer}.welcome-action b{margin-left:7px}
.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.quick-actions button{border:1px solid var(--line);background:rgba(255,255,255,.8);border-radius:15px;padding:13px 16px;display:flex;align-items:center;gap:12px;text-align:left;color:var(--ink);cursor:pointer;transition:.2s}.quick-actions button:hover{background:white;transform:translateY(-2px);box-shadow:var(--shadow)}.quick-actions i{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--mint);color:var(--green);font-style:normal;font-size:16px}.quick-actions span{display:flex;flex-direction:column;gap:2px}.quick-actions b{font-size:12px}.quick-actions small{font-size:10px;color:var(--muted)}
.stats{gap:14px}.stat-card,.card{border-color:rgba(222,230,225,.9);border-radius:17px;box-shadow:0 5px 24px rgba(28,68,52,.045)}.stat-card{padding:20px 21px}.stat-card:after{width:70px;height:70px;right:-25px;top:-25px;opacity:.7}.stat-value{font-family:inherit;font-size:31px;letter-spacing:-1px}.dashboard-grid{grid-template-columns:minmax(0,1.65fr) minmax(300px,.8fr);gap:18px}.card{padding:22px}.card-head h3{font-size:16px;margin-top:4px}.section-kicker{color:#8b9891}.project-row{width:100%;border:0;border-top:1px solid #edf1ee;border-radius:0;background:transparent;padding:15px 4px;grid-template-columns:44px minmax(130px,1fr) 130px 82px 14px;text-align:left;color:inherit;cursor:pointer}.project-row:first-child{border-top:0}.project-row:hover{background:#f8fbf9}.project-code{width:42px;height:42px;border-radius:12px}.project-row h4{font-size:12px}.row-arrow{color:#a6b0aa;font-size:22px}.live-dot{font-size:10px;color:var(--green);background:var(--mint);padding:6px 9px;border-radius:20px}.live-dot:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#2a9b70;margin-right:5px}.timeline{margin-top:5px}.event{padding-bottom:19px}
@media(max-width:900px){.sidebar{width:84px}.brand>div:last-child,.nav-item{font-size:0}.nav-item{justify-content:center}.nav-item i{font-size:19px}.side-bottom>div:not(.avatar),.side-bottom button{display:none}main{margin-left:84px}.dashboard-grid{grid-template-columns:1fr}.quick-actions small{display:none}}
@media(max-width:640px){body{padding-bottom:74px}.sidebar{position:fixed;inset:auto 0 0;width:auto;height:68px;padding:7px 10px;background:rgba(11,47,36,.97);backdrop-filter:blur(14px);display:block}.sidebar .brand,.side-bottom{display:none}.sidebar nav{height:100%;display:grid;grid-template-columns:repeat(6,1fr);gap:2px}.nav-item,.nav-item:not(.active){min-height:54px;padding:5px 2px;display:flex;flex-direction:column;justify-content:center;gap:3px;font-size:8px;text-align:center;color:#aac7ba;border-radius:10px}.nav-item i,.nav-item:not(.active) i{font-size:17px}.nav-item:hover,.nav-item.active{background:rgba(255,255,255,.12);color:white;box-shadow:none}main{margin-left:0}header{height:auto;min-height:72px;padding:13px 16px}header p{display:none}h1{font-size:19px;margin:0}.header-actions{gap:7px}.header-actions .search,.header-actions .icon-btn{display:none}.header-actions .primary{height:38px;max-width:150px;font-size:11px;padding:0 12px}#content{padding:16px 14px 30px}.welcome{padding:23px 20px;border-radius:18px;display:block;margin-bottom:12px}.welcome h2{font-size:25px}.welcome p{font-size:12px;max-width:90%}.welcome-side{align-items:flex-start;margin-top:17px}.welcome-action{display:none}.date-chip{font-size:10px;padding:6px 10px}.quick-actions{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:9px;margin:0 -14px 13px;padding:0 14px 3px;scrollbar-width:none}.quick-actions::-webkit-scrollbar{display:none}.quick-actions button{min-width:188px;scroll-snap-align:start;padding:11px 13px}.quick-actions small{display:block}.stats{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;margin:0 -14px 13px;padding:0 14px 5px;scrollbar-width:none}.stats::-webkit-scrollbar{display:none}.stat-card{min-width:158px;scroll-snap-align:start;padding:16px}.stat-value{font-size:26px;margin:9px 0 5px}.dashboard-grid{gap:13px}.card{padding:17px;border-radius:16px}.project-row{grid-template-columns:40px 1fr 14px;padding:13px 0}.project-row>div:nth-child(3),.project-row>.badge{display:none}.project-code{width:38px;height:38px}.activity-card .event:nth-last-child(-n+2){display:none}.sync-status{bottom:78px;right:10px}.modal{padding:20px}.auth-card{padding:26px 22px}}
.quick-actions button,.project-row{font-family:inherit}
.workflow-step.parallel .step-marker{box-shadow:0 0 0 5px #e6f1eb}.workflow-step.parallel.active .step-marker{box-shadow:0 0 0 5px #fce8d9}.step-body em{display:inline-block;margin-top:6px;padding:3px 7px;border-radius:10px;background:#e6f1eb;color:var(--green);font-size:8px;font-style:normal;font-weight:800;text-transform:uppercase;letter-spacing:.5px}
.workflow-six{grid-template-columns:repeat(6,1fr)}.workflow-step{border:0;background:transparent;text-align:left;color:inherit;font:inherit;cursor:pointer;border-radius:12px;padding:8px;transition:.2s}.workflow-step:hover{background:#f3f8f5;transform:translateY(-2px)}.status-select{min-width:150px;border:1px solid var(--line);border-radius:9px;padding:7px 28px 7px 9px;background:#fff;color:var(--green);font:600 11px inherit;cursor:pointer}.project-link.depth-1{padding-left:20px}.project-link.depth-2{padding-left:40px}.project-link[class*="depth-"]:not(.depth-0){border-left:2px solid #b7d5c6}.child-row{background:#f8fbf9}.child-row td:first-child{box-shadow:inset 3px 0 var(--mint)}
@media(max-width:720px){.filter-group{max-width:100%;overflow-x:auto;padding-bottom:4px}.filter{white-space:nowrap}.status-select{min-width:135px}.workflow-six{grid-template-columns:1fr}}
.status-select{font-family:inherit;font-size:11px;font-weight:600}
.field:has(input[name="duration"]){display:none}
@media(max-width:640px){.sidebar nav{grid-template-columns:repeat(7,1fr)}.nav-item,.nav-item:not(.active){font-size:7px}}
.component-line{display:grid;grid-template-columns:90px 1.3fr 80px 1fr 145px 125px 78px;align-items:center;gap:9px;padding:11px 0;border-bottom:1px solid var(--line)}.component-line:last-child{border-bottom:0}.component-line input,.component-line select{min-width:0}.heat-check{display:flex!important;flex-direction:row!important;align-items:center;gap:6px!important;font-size:10px!important}.heat-check input{width:auto}
@media(max-width:720px){.component-line{grid-template-columns:1fr 1fr}.component-line b,.heat-check,.component-line .remove-component{grid-column:1/-1}}
.purchase-component-line{display:grid;grid-template-columns:90px 1.2fr 80px 1fr 145px 110px 78px;align-items:center;gap:9px;padding:11px 0;border-bottom:1px solid var(--line)}.purchase-component-line:last-child{border-bottom:0}.purchase-component-line input{min-width:0}.purchase-tools{display:flex;justify-content:flex-end;margin-top:12px}.add-component,.remove-component{border:0;border-radius:7px;padding:8px 10px;font:inherit;font-size:10px;font-weight:700;cursor:pointer}.add-component{background:#e3f0e9;color:var(--green)}.remove-component{background:#f9e7e3;color:#a33d31}
@media(max-width:720px){.purchase-component-line{grid-template-columns:1fr 1fr}.purchase-component-line b,.purchase-component-line .heat-check{grid-column:1/-1}.purchase-component-line .remove-component{grid-column:1/-1}}
.log-btn{background:#fff2df!important;color:#9b5d16!important}.work-summary{min-width:190px;max-width:260px;line-height:1.45}.blocker-cell{min-width:170px;color:var(--green)}.blocker-cell.has-blocker{color:#a33d31;background:#fff7f5;font-weight:700}.muted-dash{color:var(--muted);font-style:italic}.project-log-card{margin-top:18px}.log-list{display:flex;flex-direction:column}.log-entry{display:grid;grid-template-columns:155px minmax(240px,1.4fr) minmax(220px,1fr);gap:20px;padding:17px 4px;border-top:1px solid var(--line)}.log-entry:first-child{border-top:0}.log-entry span{display:block;margin-bottom:6px;color:var(--muted);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.log-entry p{margin:0;line-height:1.55}.log-date{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.log-blocker{padding:10px 12px;border-radius:10px;background:#f3f7f4}.log-blocker.active{background:#fff0ed;color:#9f3f33}.log-blocker.active span{color:#b36155}
@media(max-width:720px){.project-log-card .card-head{align-items:flex-start;gap:12px}.project-log-card .primary{font-size:10px}.log-entry{grid-template-columns:1fr;gap:12px}.work-summary{min-width:170px}}
.delete-log{border:0;background:transparent;color:var(--red);padding:2px 0;font:600 10px inherit;cursor:pointer;text-decoration:underline}.delete-log:hover{color:#8f3025}
.field select[multiple]{min-height:110px;padding:6px}.field select[multiple] option{padding:7px 9px;border-radius:6px}.field select[multiple] option:checked{background:var(--green);color:white}.multi-help{font-size:9px;color:var(--muted)}.relation-link{border:0;background:transparent;color:var(--green);font:inherit;font-weight:700;cursor:pointer;padding:0}.relation-link:hover{text-decoration:underline}.relation-chip{border:0;border-radius:12px;background:var(--mint);color:var(--green);font:700 9px inherit;padding:5px 8px;margin:2px;cursor:pointer}.relation-chip:hover{background:#cce5d8}.relation-card{margin-top:18px}.relation-summary{display:grid;grid-template-columns:240px 1fr;gap:20px}.relation-summary>div{padding:15px;border-radius:12px;background:#f7faf8}.relation-summary span{display:block;color:var(--muted);font-size:10px;margin-bottom:8px}.relation-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.relation-tile{border:1px solid var(--line);border-radius:13px;background:#fff;padding:16px;text-align:left;color:var(--ink);cursor:pointer;display:flex;flex-direction:column;gap:5px}.relation-tile:hover{border-color:#9fc6b3;box-shadow:var(--shadow);transform:translateY(-2px)}.relation-tile b{color:var(--green)}.relation-tile small{color:var(--muted)}
@media(max-width:720px){.relation-summary,.relation-grid{grid-template-columns:1fr}}
.log-actions{display:flex;gap:9px}.edit-log{border:0;background:transparent;color:var(--green);padding:2px 0;font-size:10px;font-weight:700;cursor:pointer;text-decoration:underline}
.log-blocker.resolved{background:#e5f3eb;color:#1f6b4c}.log-blocker.resolved span{color:#3d8063}.blocker-cell.resolved{color:#1f6b4c;background:#eff8f3;font-weight:700}.blocker-state{display:block;margin-top:6px;font-size:9px;text-transform:uppercase;letter-spacing:.4px}
.software-intro{margin-bottom:16px;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:28px;background:linear-gradient(120deg,#fff,#eef7f2)}.software-intro h3{margin:5px 0 7px;font:700 19px Georgia,serif}.software-intro p{margin:0;color:var(--muted);line-height:1.6}.software-contact{min-width:220px;padding-left:24px;border-left:1px solid var(--line);display:flex;flex-direction:column;gap:3px}.software-contact span,.software-contact small{color:var(--muted);font-size:10px}.software-contact b{font-size:14px}.software-contact a{margin-top:4px;color:var(--green);font-weight:700;text-decoration:none}.brand b{font-size:15px;letter-spacing:.4px}.brand-mark{font-size:14px}@media(max-width:640px){.software-intro{display:block;padding:18px}.software-contact{margin-top:15px;padding:14px 0 0;border-left:0;border-top:1px solid var(--line)}}
.modal{width:min(980px,96vw)}.purchase-component-line{grid-template-columns:90px minmax(150px,1.35fr) 85px minmax(120px,1fr) 145px 115px 82px;gap:10px;padding:13px 0}.purchase-component-line input{width:100%}@media(max-width:900px){.purchase-component-line,.component-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:14px;background:#fafcfb;border:1px solid var(--line);border-radius:10px;margin-bottom:10px}.purchase-component-line b,.purchase-component-line .heat-check,.purchase-component-line .remove-component,.component-line b,.component-line .heat-check,.component-line .remove-component{grid-column:1/-1}.purchase-component-line .remove-component,.component-line .remove-component{justify-self:end}.purchase-component-line:last-child,.component-line:last-child{border-bottom:1px solid var(--line)}}
.urgency{display:inline-flex;padding:5px 9px;border-radius:14px;font-size:10px;font-weight:800}.urgency-normal{color:#35634f;background:#e3efe8}.urgency-eleve{color:#96561e;background:#fbe8d5}.urgency-urgent{color:#a23830;background:#f8deda}.report-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.report-kpi{display:flex;flex-direction:column;gap:7px;position:relative;overflow:hidden}.report-kpi:after{content:"";position:absolute;right:-18px;top:-22px;width:72px;height:72px;border-radius:50%;background:#e8f1ec}.report-kpi span,.report-kpi small{color:var(--muted);font-size:11px}.report-kpi b{font:700 27px Georgia,serif;color:var(--green);z-index:1}.gantt-card{overflow:hidden}.gantt-head,.gantt-row{display:grid;grid-template-columns:minmax(190px,28%) 1fr;gap:18px;align-items:center}.gantt-head{padding:0 12px 10px;color:var(--muted);font-size:10px;text-transform:uppercase}.gantt-row{padding:13px 12px;border-top:1px solid var(--line)}.gantt-row>div:first-child{display:flex;flex-direction:column;gap:3px}.gantt-row>div:first-child span{color:var(--muted);font-size:10px}.gantt-track{height:30px;border-radius:7px;position:relative;background:repeating-linear-gradient(90deg,#f0f3f1 0,#f0f3f1 1px,transparent 1px,transparent 10%)}.gantt-bar{position:absolute;top:4px;height:22px;min-width:42px;border-radius:6px;background:linear-gradient(90deg,#d85b45,#ec8b4b);box-shadow:0 4px 10px rgba(190,75,47,.18)}.gantt-bar small{position:absolute;left:8px;top:4px;color:#fff;font-size:9px;white-space:nowrap}.gantt-reparation{background:linear-gradient(90deg,#bc493f,#da6954)}.gantt-achat{background:linear-gradient(90deg,#d57b2f,#eaa154)}@media(max-width:800px){.report-kpis{grid-template-columns:1fr 1fr}.gantt-head,.gantt-row{grid-template-columns:1fr}.gantt-head span:last-child{display:none}}@media(max-width:520px){.report-kpis{grid-template-columns:1fr}}
.gantt-mould{display:block!important;margin-top:2px;color:var(--green)!important;font-size:9px!important;font-weight:700}
.multi-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.multi-actions button{border:0;background:transparent;color:var(--green);font-size:10px;font-weight:700;cursor:pointer;text-decoration:underline}
.invoice-paid{color:#1f6b4c;font-weight:800}.invoice-unpaid{color:#b44738;font-weight:800}
.stats.stats-three{grid-template-columns:repeat(3,1fr)}.watch-list{display:flex;flex-direction:column;gap:8px}.watch-row{width:100%;border:1px solid var(--line);background:#fff;border-radius:10px;padding:12px;display:grid;grid-template-columns:82px 1fr 18px;gap:12px;align-items:center;text-align:left;cursor:pointer}.watch-row:hover{border-color:#9fc4b2;background:#f8fcfa}.watch-kind{display:inline-flex;justify-content:center;padding:6px 8px;border-radius:7px;background:#f8ded9;color:#a33d31;font-size:10px;font-weight:800}.watch-row div{display:flex;flex-direction:column;gap:4px}.watch-row small{color:var(--muted)}.activity-event{display:block;width:100%;border:0;background:transparent;text-align:left;cursor:pointer}.activity-event:hover h4{color:var(--green)}@media(max-width:720px){.stats.stats-three{grid-template-columns:1fr}.watch-row{grid-template-columns:72px 1fr 14px}}
.technical-card{margin:18px 0}.technical-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.technical-grid>div{padding:15px;border:1px solid var(--line);border-radius:10px;background:#fafcfb;display:flex;flex-direction:column;gap:7px}.technical-grid span{color:var(--muted);font-size:10px}.technical-grid b{font-size:16px;color:var(--green)}@media(max-width:900px){.technical-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:520px){.technical-grid{grid-template-columns:1fr}}
.report-projects{margin-bottom:18px}.report-projects .progress{min-width:130px}.report-projects td{vertical-align:top}
.report-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.report-detail-list{display:flex;flex-direction:column}.report-detail-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid var(--line)}.report-detail-row:first-child{border-top:0}.report-detail-row .relation-link{display:flex;flex-direction:column;align-items:flex-start;gap:3px}.report-detail-row .relation-link span,.report-detail-row small{color:var(--muted);font-size:10px}.report-detail-row>div{display:flex;align-items:flex-end;flex-direction:column;gap:5px}@media(max-width:800px){.report-detail-grid{grid-template-columns:1fr}}
@media print{@page{size:A4 landscape;margin:10mm}*{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.sidebar,header,.sync-status,#toast,.modal-backdrop{display:none!important}body{background:#fff!important;font-size:10px}main{margin:0!important;min-height:auto}#content{padding:0!important}.report-kpis{grid-template-columns:repeat(3,1fr)!important;gap:8px;margin-bottom:10px}.report-kpi,.card{box-shadow:none!important;border-color:#ccd6d0!important;padding:12px}.report-detail-grid{grid-template-columns:1fr 1fr!important;gap:10px;margin-bottom:10px}.report-projects{margin-bottom:10px}.report-projects table{font-size:8px}.report-projects th,.report-projects td{padding:7px}.gantt-card{break-before:auto;break-inside:avoid}.gantt-row{padding:8px}.gantt-track{height:25px}.gantt-bar{top:3px;height:19px}.relation-link,.relation-chip{color:#173f31!important;text-decoration:none!important}.row-actions,button.secondary{display:none!important}}
.role-badge{position:fixed;right:18px;bottom:49px;z-index:11;padding:7px 11px;border-radius:16px;font-size:9px;font-weight:800;letter-spacing:.6px;box-shadow:0 3px 10px rgba(0,0,0,.06)}.role-badge.admin{background:#dcebe3;color:var(--green)}.role-badge.readonly{background:#e5eaf0;color:#45627a}.read-only .row-actions,.read-only .project-log-card .primary,.read-only .log-actions,.read-only [data-edit-project],.read-only .project-hero .secondary,.read-only .technical-card .secondary{display:none!important}.read-only .status-select:disabled{opacity:1;color:inherit;background:#f2f4f2;cursor:not-allowed}.read-only [data-stage]{cursor:default}.sync-status.readonly{background:#e5eaf0;color:#45627a}@media(max-width:640px){.role-badge{right:10px;bottom:110px}}
