:root{--bg:#f6f5f0;--panel:#fff;--panel-2:#f9faf7;--ink:#242423;--muted:#69706d;--line:#dfe4dc;--line-strong:#c8d1c6;--brand:#146b5d;--brand-2:#0f513f;--gold:#b98520;--blue:#2c5f93;--red:#b44735;--green:#2f7a55;--shadow:0 12px 30px #27332e17;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,Arial,sans-serif}*{box-sizing:border-box}body{background:var(--bg);min-width:1180px;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{grid-template-columns:260px 1fr;min-height:100vh;display:grid}.sidebar{color:#f7fbf4;background:#17362f;flex-direction:column;gap:22px;padding:24px 18px;display:flex}.brand{border-bottom:1px solid #ffffff29;flex-direction:column;gap:6px;padding:0 6px 18px;display:flex}.brand-title{font-size:20px;font-weight:760}.brand-subtitle{color:#f7fbf4ad;font-size:13px}.nav{flex-direction:column;gap:8px;display:flex}.nav button{color:#f7fbf4c7;text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;min-height:42px;padding:0 12px;display:flex}.nav button.active{color:#fff;background:#ffffff1f}.side-block{background:#ffffff14;border:1px solid #ffffff24;border-radius:8px;margin-top:auto;padding:14px}.side-block strong{margin-bottom:8px;display:block}.side-block p{color:#f7fbf4bd;margin:0;font-size:13px;line-height:1.55}.main{padding:22px 28px 32px}.topbar{justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px;display:flex}.title-block h1{margin:0 0 6px;font-size:24px}.title-block p{color:var(--muted);margin:0}.actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.btn{border:1px solid var(--line-strong);background:var(--panel);color:var(--ink);white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;gap:8px;height:38px;padding:0 14px;display:inline-flex}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn.ghost{color:#f7fbf4e6;background:0 0;border-color:#ffffff38}.btn.full{width:100%;margin-top:12px}.btn.danger{color:var(--red);border-color:#b4473552}.btn.icon{width:38px;padding:0}.toolbar{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:8px;grid-template-columns:1.4fr 160px 160px 160px 150px;gap:10px;margin-bottom:16px;padding:12px;display:grid}.field,.small-field{flex-direction:column;gap:6px;display:flex}label{color:var(--muted);font-size:12px}input,select,textarea{border:1px solid var(--line-strong);color:var(--ink);background:#fff;border-radius:8px;outline:none;min-height:38px;padding:8px 10px}textarea{resize:vertical;min-height:84px}input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px #146b5d1f}.stats-grid{grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:16px;display:grid}.stat{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:8px;padding:14px}.stat span{color:var(--muted);font-size:13px}.stat strong{margin-top:8px;font-size:25px;display:block}.content-grid{grid-template-columns:minmax(0,1fr) 390px;align-items:start;gap:16px;display:grid}.panel{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:8px}.panel-header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.panel-header h2{margin:0;font-size:17px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}th,td{border-bottom:1px solid var(--line);text-align:left;vertical-align:top;padding:12px 14px}th{color:var(--muted);background:var(--panel-2);font-size:12px;position:sticky;top:0}tr{transition:background .15s}tbody tr:hover,tbody tr.selected{background:#eef5ef}.project-name{flex-direction:column;gap:5px;min-width:220px;display:flex}.project-name strong{font-size:15px}.muted{color:var(--muted)}.tag-row{flex-wrap:wrap;gap:6px;display:flex}.pill{color:#42504a;white-space:nowrap;background:#eef2ef;border-radius:999px;justify-content:center;align-items:center;min-height:24px;padding:3px 8px;font-size:12px;display:inline-flex}.pill.stage{color:var(--brand-2);background:#e8f2ee}.pill.hot{color:#8a5913;background:#fff0df}.pill.risk-low{color:var(--green);background:#e8f5ec}.pill.risk-mid{color:#9b6813;background:#fff5dd}.pill.risk-high{color:var(--red);background:#fae8e4}.progress{min-width:140px}.progress-track{background:#e6ebe5;border-radius:999px;height:8px;margin-top:7px;overflow:hidden}.progress-fill{background:var(--brand);height:100%}.detail{position:sticky;top:16px}.detail-body{padding:16px}.detail-title{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.detail-title h3{margin:0 0 8px;font-size:20px}.detail-section{border-top:1px solid var(--line);margin-top:14px;padding-top:14px}.detail-section h4{margin:0 0 10px;font-size:14px}.section-title-row{justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;display:flex}.section-title-row h4{margin:0}.kv{grid-template-columns:92px 1fr;gap:8px 10px;font-size:13px;display:grid}.kv.compact{grid-template-columns:64px 1fr;margin:10px 0}.kv span:nth-child(odd){color:var(--muted)}.timeline{flex-direction:column;gap:10px;display:flex}.timeline-item{border-left:3px solid #d0ddd2;padding-left:12px}.timeline-item strong{font-size:13px}.timeline-item p{color:var(--muted);margin:4px 0 0;font-size:13px;line-height:1.45}.log-images{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.log-image-summary{margin-top:8px}.log-images a{border:1px solid var(--line);background:#fff;border-radius:8px;width:82px;height:64px;display:block;overflow:hidden}.log-images img{object-fit:cover;width:100%;height:100%;display:block}.paste-zone{border:1px dashed var(--line-strong);background:var(--panel-2);min-height:78px;color:var(--muted);text-align:center;border-radius:8px;justify-content:center;align-items:center;padding:12px;display:flex}.paste-zone:focus{border-color:var(--brand);box-shadow:0 0 0 3px #146b5d1f}.pasted-preview{flex-wrap:wrap;gap:8px;display:flex}.pasted-thumb{border:1px solid var(--line);background:#fff;border-radius:8px;width:96px;height:72px;position:relative;overflow:hidden}.pasted-thumb img{object-fit:cover;width:100%;height:100%;display:block}.pasted-thumb button{background:#ffffffeb;width:26px;height:26px;position:absolute;top:4px;right:4px}.log-history{flex-direction:column;gap:10px;display:flex}.log-card{border:1px solid var(--line);background:#fff;border-radius:8px;padding:12px}.log-card-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.log-card p{color:var(--muted);margin:8px 0 0;font-size:13px;line-height:1.5}.risk-grid{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.risk-item{background:var(--panel-2);border:1px solid var(--line);border-radius:8px;padding:8px}.risk-item span{color:var(--muted);margin-bottom:4px;font-size:12px;display:block}.risk-item strong{font-size:17px}.board{grid-template-columns:repeat(6,minmax(180px,1fr));gap:12px;display:grid;overflow-x:auto}.lane{background:var(--panel);border:1px solid var(--line);border-radius:8px;min-height:360px}.lane h3{border-bottom:1px solid var(--line);justify-content:space-between;margin:0;padding:12px;font-size:14px;display:flex}.deal-card{border:1px solid var(--line);background:#fff;border-radius:8px;margin:10px;padding:10px}.deal-card strong{margin-bottom:8px;display:block}.deal-card p{color:var(--muted);margin:6px 0;font-size:12px}.form-grid{grid-template-columns:repeat(4,1fr);gap:12px;display:grid}.form-grid .wide{grid-column:span 2}.form-grid .full{grid-column:1/-1}.modal-backdrop{z-index:10;background:#101a187a;justify-content:center;align-items:flex-start;padding:28px;display:none;position:fixed;inset:0;overflow:auto}.modal-backdrop.show{display:flex}.modal{background:var(--panel);border-radius:8px;width:min(1120px,100%);overflow:hidden;box-shadow:0 30px 90px #00000040}.modal-head,.modal-foot{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.modal-foot{border-top:1px solid var(--line);border-bottom:0;justify-content:flex-end}.modal-head h2{margin:0;font-size:18px}.modal-body{padding:16px}.tabs{border-bottom:1px solid var(--line);gap:8px;margin-bottom:14px;display:flex}.tabs button{color:var(--muted);background:0 0;border:0;border-bottom:3px solid #0000;padding:10px 10px 12px}.tabs button.active{color:var(--brand);border-bottom-color:var(--brand)}.empty{text-align:center;color:var(--muted);padding:32px}.check-list{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.check-item{border:1px solid var(--line);background:#fff;border-radius:8px;align-items:center;gap:8px;min-height:38px;padding:8px;display:flex}.check-item input{min-height:auto}.resource-list{grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.resource-card{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:14px}.resource-card h3{margin:0 0 6px;font-size:16px}.resource-card p{color:var(--muted);margin:5px 0;font-size:13px}.template-layout{grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:16px;display:grid}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px;display:grid}.template-card{border:1px solid var(--line);background:#fff;border-radius:8px;padding:14px}.template-card-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.template-card h3{margin:0 0 6px;font-size:16px}.template-card p,.template-tips p{color:var(--muted);margin:6px 0;font-size:13px;line-height:1.5}.template-tips{padding:16px}.material-summary{flex-wrap:wrap;gap:6px;margin-bottom:10px;display:flex}.mini-file-list{flex-direction:column;gap:8px;display:flex}.file-link{border:1px solid var(--line);text-align:left;background:#fff;border-radius:8px;flex-direction:column;gap:3px;min-height:44px;padding:8px 10px;display:flex}.file-link span{color:var(--muted);font-size:12px}.upload-strip{border:1px solid var(--line);background:var(--panel-2);border-radius:8px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;padding:12px;display:flex}.upload-strip p{color:var(--muted);margin:5px 0 0;font-size:13px}.two-col{grid-template-columns:1fr 1fr;gap:16px;display:grid}.chart-row{grid-template-columns:repeat(3,1fr);gap:16px;display:grid}.bar-list{flex-direction:column;gap:10px;padding:16px;display:flex}.bar-item{grid-template-columns:82px 1fr 36px;align-items:center;gap:10px;font-size:13px;display:grid}.bar{background:#e7ece6;border-radius:999px;height:10px;overflow:hidden}.bar i{background:var(--brand);height:100%;display:block}.hidden{display:none!important}.auth-page{background:linear-gradient(135deg, #146b5d1a, #b9852014), var(--bg);place-items:center;min-height:100vh;padding:24px;display:grid}.auth-card{border:1px solid var(--line);background:var(--panel);width:min(420px,100%);box-shadow:var(--shadow);border-radius:8px;flex-direction:column;gap:16px;padding:28px;display:flex}.auth-card p{color:var(--muted);margin:8px 0 0;line-height:1.65}.auth-card label{flex-direction:column;gap:8px;display:flex}.auth-card .btn{height:44px}.auth-error{color:var(--red);background:#b4473514;border:1px solid #b4473547;border-radius:8px;padding:10px 12px;font-size:13px}@media (max-width:900px){body{min-width:0;overflow-x:hidden}.app-shell{grid-template-columns:1fr}.sidebar{gap:12px;padding:14px 12px;position:static}.brand{padding:0 4px 12px}.brand-title{font-size:18px}.side-block{display:none}.nav{scrollbar-width:none;flex-direction:row;padding-bottom:4px;overflow-x:auto}.nav::-webkit-scrollbar{display:none}.nav button{flex:none;min-height:38px;padding:0 10px;font-size:13px}.main{padding:14px 12px 24px}.topbar{grid-template-columns:1fr;align-items:start;gap:12px;display:grid}.title-block h1{font-size:21px}.title-block p{font-size:13px;line-height:1.45}.actions{justify-content:stretch;gap:8px}.actions .btn{flex:calc(50% - 8px)}.btn{height:auto;min-height:40px;padding:8px 11px}input,select,textarea{min-height:42px;font-size:16px}textarea{min-height:96px}.toolbar,.content-grid,.form-grid,.resource-list,.chart-row,.two-col,.template-layout,.template-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat{padding:11px}.stat strong{font-size:20px}.toolbar{gap:8px;padding:10px}.panel-header{align-items:flex-start}.table-wrap{overflow:visible}table,thead,tbody,tr,td{width:100%;display:block}thead{display:none}tr{border-bottom:1px solid var(--line);padding:10px 12px}td{border-bottom:0;grid-template-columns:76px minmax(0,1fr);gap:10px;padding:7px 0;display:grid}td:before{content:attr(data-label);color:var(--muted);padding-top:2px;font-size:12px}td:empty{display:none}.project-name,.progress{min-width:0}.detail-title h3{font-size:18px}.kv,.kv.compact{grid-template-columns:78px 1fr}.risk-grid,.check-list{grid-template-columns:repeat(2,minmax(0,1fr))}.board{grid-template-columns:repeat(8,minmax(210px,78vw))}.lane{min-height:260px}.modal-backdrop{align-items:stretch;padding:0}.modal{border-radius:0;width:100%;min-height:100vh}.modal-head,.modal-foot{background:var(--panel);z-index:2;position:sticky}.modal-head{top:0}.modal-foot{flex-wrap:wrap;bottom:0}.modal-foot .btn{flex:auto}.modal-body{padding:12px}.tabs{scrollbar-width:none;overflow-x:auto}.tabs::-webkit-scrollbar{display:none}.tabs button{white-space:nowrap;flex:none}.upload-strip,.template-card-head,.log-card-head,.section-title-row{flex-direction:column;align-items:stretch}.log-images a{width:88px;height:68px}.form-grid .wide,.form-grid .full{grid-column:auto}.detail{position:static}}
