:root{--bg:#f3f5f1;--paper:#fff;--ink:#182820;--muted:#52635b;--line:#dfe7df;--deep:#142820;--green:#246346;--lime:#d5ef98;--soft:#e8f3e9;--amber:#855417;--font:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-family:var(--font);font-size:14px;background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:var(--green);text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #348c64;outline-offset:3px}svg{vertical-align:middle}button svg{flex:none}.skip{position:absolute;left:-999px}.skip:focus{left:12px;top:12px;z-index:9;background:white;padding:14px}
#sidebar{position:fixed;left:0;top:0;bottom:0;width:224px;background:var(--deep);color:#f1f5ed;display:flex;flex-direction:column;padding:23px 16px;z-index:3}.brand{display:flex;align-items:center;gap:11px;margin:1px 6px 37px;font-weight:750;font-size:17px;color:#f6f8f1}.brand small{display:block;color:#b1c2b8;font-weight:500;font-size:11px;margin-top:4px;letter-spacing:.12em}.mark{display:grid;place-items:center;width:37px;height:37px;background:var(--lime);color:var(--deep);border-radius:10px}.nav-title{font-size:11px;color:#a5b8ab;margin:0 10px 11px;letter-spacing:.1em}.menu{display:grid;gap:5px}.menu a{display:flex;align-items:center;gap:11px;padding:11px 12px;color:#cfdbd1;border:1px solid transparent;border-radius:8px;font-weight:600;min-height:42px}.menu a[aria-current=page]{background:#2c4436;color:#e0f6ab;border-color:#3a5544}.menu a:hover{background:#263e32}.sidefoot{margin-top:auto;border-top:1px solid #405347;padding:17px 5px 1px;display:flex;gap:9px;align-items:center;color:#e5eee4}.sidefoot small{display:block;color:#a9bcb0;margin-top:4px}.dot{width:8px;height:8px;border-radius:50%;background:#89bd76;display:inline-block;flex:none}.workspace{margin-left:224px;min-height:100vh}.workspace>header{height:62px;background:var(--paper);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px}.topright,.crumb,.actions,.row{display:flex;align-items:center;gap:10px}.crumb{color:var(--muted);font-size:13px}.crumb strong{color:var(--ink)}.avatar{border-radius:50%;background:#e7eee0;display:inline-grid;place-items:center;width:32px;height:32px;flex:none;color:#355340;font-weight:700;font-size:12px}.identity{display:flex;align-items:center;gap:8px;font-weight:650}.mob-brand{display:none}
main{max-width:1590px;margin:auto;padding:27px 32px 16px;outline:none}footer{max-width:1590px;margin:auto;padding:4px 32px 18px;color:var(--muted);font-size:11px}.page-title{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:4px 0 23px}.page-title p,.sub{color:var(--muted);margin:7px 0 0;line-height:1.55}h1,h2,h3,p{margin:0}h1{font-size:31px;letter-spacing:-.035em}h2{font-size:17px;letter-spacing:-.02em}h3{font-size:14px}.caption,.eyebrow{font-size:11px;letter-spacing:.09em;color:var(--green);font-weight:750}.btn{border:1px solid #d6e3d8;background:#fff;padding:9px 13px;border-radius:8px;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;font-weight:650;white-space:nowrap}.btn:hover{background:#eef4ec}.btn.primary{background:#225b40;color:white;border-color:#225b40}.btn.primary:hover{background:#17452f}.btn.light{background:var(--lime);border-color:var(--lime);color:#1b3523}.btn[disabled]{cursor:not-allowed;opacity:.45}.linkbtn{background:none;border:0;color:var(--green);font-weight:700;padding:6px 0;cursor:pointer}.iconbtn{padding:6px 9px}.hero{display:grid;grid-template-columns:1.13fr 1fr;gap:20px;align-items:center;position:relative;background:#1b3528;border:1px solid #304e3c;color:#fff;border-radius:14px;padding:24px 26px;min-height:211px;overflow:hidden}.hero .eyebrow{color:#ccdfb2}.hero h1{font-size:34px;margin:7px 0 7px}.hero p{color:#d4dfd4;font-size:13px}.hero .actions{margin-top:19px}.hero .btn:not(.light){background:#2d4839;color:#f0f7e9;border-color:#526957}.hero-graph{position:relative;padding:0 3%;align-self:stretch;display:flex;flex-direction:column;justify-content:center;isolation:isolate}.hero-graph:before{position:absolute;inset:-50px -35px;content:"";z-index:-1;background:repeating-linear-gradient(90deg,transparent 0 31px,#b8d1a916 32px 33px),repeating-linear-gradient(0deg,transparent 0 31px,#b8d1a916 32px 33px);mask-image:radial-gradient(ellipse,#000 25%,transparent 74%)}.graph-label{color:#b9cbbd;font-size:11px;margin-bottom:13px}.hero-flow{display:flex;gap:7px;align-items:center}.node{background:#294739;border:1px solid #4b6956;padding:11px 13px;border-radius:9px;flex:1;min-width:0}.node small{display:block;color:#c5d3c5;font-size:10px;margin-top:5px}.node em{font-style:normal;color:#dcf5ab}.hero-arrow{color:#bbd69e}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:16px 0}.stat,.card{background:var(--paper);border:1px solid var(--line);border-radius:12px}.stat{padding:15px 16px}.stat-top{color:var(--muted);display:flex;justify-content:space-between;align-items:center;gap:4px;font-size:12px}.tileicon{color:var(--green);background:#ecf3e9;border-radius:8px;width:30px;height:30px;display:grid;place-items:center;flex:none}.stat strong{display:block;font-size:29px;letter-spacing:-.05em;margin:5px 0 2px;font-variant-numeric:tabular-nums}.stat small,.muted{color:var(--muted)}.grid{display:grid;grid-template-columns:minmax(0,1.43fr) minmax(0,1fr);gap:16px;margin:16px 0}.card{min-width:0;padding:17px 18px}.card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}.card-head p{color:var(--muted);font-size:12px;margin-top:4px}.bars{display:grid;gap:11px}.bar{display:grid;grid-template-columns:57px 1fr 24px;gap:10px;align-items:center;font-size:12px}.track{display:block;height:12px;background:#eff3ed;border-radius:3px;overflow:hidden}.fill{height:100%;display:block;background:var(--bar,#357151);border-radius:3px}.todo{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid #edf0eb}.todo:first-of-type{border-top:0}.todo>div:nth-child(2){flex:1}.todo p{font-size:11px;color:var(--muted);margin-top:4px}.badge{display:inline-flex;white-space:nowrap;border-radius:5px;padding:4px 7px;background:#edf1ed;color:#42594a;font-size:11px;font-weight:700}.badge.green{background:#e6f2e5;color:#285e42}.badge.amber{background:#fbefd9;color:#7e4e10}.badge.blue{background:#e9f0fa;color:#315586}.badge.gray{background:#edf0ec;color:#536456}.badge.red{background:#f9eae7;color:#903f36}
.table-card{padding:0;overflow:hidden}.table-card .card-head{padding:15px 17px;margin:0}.table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.table th,.table td{padding:12px 16px;border-top:1px solid #ebefea;vertical-align:middle}.table th{font-size:11px;color:var(--muted);background:#f8faf7}.table td:first-child{font-weight:700}.table .small{display:block;color:var(--muted);font-weight:450;font-size:11px;margin-top:4px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:13px}.filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.field{border:1px solid #d6e3d8;border-radius:7px;min-height:40px;padding:8px 10px;color:var(--ink);background:#fff}.search{min-width:222px}.tabs{display:flex;flex-wrap:wrap;gap:5px;border-bottom:1px solid var(--line);margin-bottom:16px}.tabs button{padding:12px;border:0;background:none;font-weight:650;color:var(--muted);border-bottom:2px solid transparent}.tabs button[aria-selected=true]{color:var(--green);border-bottom-color:var(--green)}.project-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:10px}.steps{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-top:9px}.step{border-top:4px solid #dce6dc;padding:8px 0;color:#526459;font-size:12px}.step.past{border-color:#9bc5a5}.step.active{border-color:#286749;color:#235940;font-weight:750}.timeline{border-left:1px solid #cddfd0;margin-left:6px;padding-left:17px}.event{margin:0 0 17px;position:relative}.event:last-child{margin-bottom:0}.event:before{content:"";position:absolute;width:8px;height:8px;left:-22px;top:4px;border:2px solid white;border-radius:50%;background:#6a9d78}.event p{line-height:1.6;color:var(--muted);font-size:12px;margin-top:4px}.assist{background:#edf5e9;border-color:#d6e6d6}.assist p{color:#40574a;line-height:1.7;margin:8px 0 11px}.review-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:16px}.review-row{border:1px solid var(--line);border-radius:8px;padding:13px;margin-top:10px;display:grid;gap:8px}.review-row.selected{border-color:#83ae91;background:#f6faf5}.review-row p{color:var(--muted);font-size:12px}.review-row .field{width:100%}.spread{justify-content:space-between}.source{background:#fdfcf8;border:1px solid #e8e6dd;border-radius:8px;padding:20px;margin-top:13px;min-height:252px}.source h3{margin-bottom:14px}.source p{line-height:1.85;margin-bottom:12px}.source mark{background:#e0edbb;color:var(--ink);padding:3px}.foot-actions{display:flex;justify-content:end;gap:9px;margin-top:15px}.empty{padding:29px 16px;text-align:center;color:var(--muted)}.dual{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.fund-bar{display:flex;height:14px;border-radius:4px;overflow:hidden;margin:13px 0}.fund-bar span{display:block}.kv{display:grid;grid-template-columns:auto 1fr;gap:10px 18px;margin-top:13px}.kv dt{color:var(--muted)}.kv dd{margin:0;text-align:right}.int-row{padding:13px 0;border-top:1px solid var(--line)}.int-row p{margin:4px 0 0;color:var(--muted);font-size:12px}.long{white-space:normal}.notice{background:#f1f6e9;border:1px solid #dbe7d2;border-radius:8px;padding:11px 13px;color:#39533c;margin:10px 0;line-height:1.6}#notifications{position:fixed;right:20px;bottom:20px;z-index:5;background:#1b3528;color:#f1f7ef;border-radius:9px;box-shadow:0 8px 30px #162b2340;padding:11px 15px}#notifications:empty{display:none}dialog{border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 48px #18282030;padding:22px;width:min(510px,calc(100% - 28px));color:var(--ink)}dialog::backdrop{background:#11271e69}dialog p{line-height:1.6;color:var(--muted);margin:8px 0 14px}dialog label{display:grid;gap:5px;margin-bottom:11px}dialog .check{display:flex;align-items:center;gap:7px}.upload{border:1px dashed #8fab96;border-radius:8px;background:#f5faf4;padding:15px;margin:12px 0}.upload input{max-width:100%}
@media(max-width:1120px){#sidebar{width:175px}.workspace{margin-left:175px}main,.workspace>header,footer{padding-left:21px;padding-right:21px}.hero{grid-template-columns:1fr .9fr}.node{padding:9px 7px}.hero h1{font-size:29px}.hide-mid{display:none}}
@media(max-width:760px){#sidebar{width:100%;height:auto;top:auto;padding:4px 5px max(5px,env(safe-area-inset-bottom));border-top:1px solid #47604f}.brand,.nav-title,.sidefoot,.hide-mobile{display:none!important}.menu{display:grid;grid-template-columns:repeat(5,1fr);gap:2px}.menu a{display:grid;justify-items:center;gap:3px;padding:4px 0;min-height:47px;font-size:11px}.workspace{margin-left:0;padding-bottom:61px}.workspace>header{height:53px;padding:0 14px}.topright{gap:6px}.mob-brand{display:inline;font-weight:750}.crumb{gap:6px}.crumb .desktop{display:none}main{padding:15px 13px}.hero{display:block;min-height:0;padding:17px}.hero h1{font-size:27px}.hero-graph{display:none}.stats{grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.stat{padding:10px}.stat strong{font-size:24px}.grid,.review-grid,.dual{grid-template-columns:1fr;gap:10px;margin:10px 0}.card{padding:13px}.table-card{padding:0}.page-title{align-items:start;flex-wrap:wrap;margin-bottom:13px}.page-title h1{font-size:26px}.table th,.table td{padding:11px 9px}.table th{font-size:11px}.steps{gap:3px}.step{font-size:11px}.search{min-width:0;width:150px}.btn{min-height:42px}.actions{flex-wrap:wrap}footer{padding-left:13px}#notifications{bottom:68px;right:9px;left:9px}.source{min-height:0}.foot-actions{flex-wrap:wrap}.badge{font-size:10px}}
.base-banner{display:flex;align-items:center;gap:12px;margin-bottom:15px;padding:15px;background:#edf5e9;border:1px solid #d6e6d6;border-radius:8px;color:var(--green)}.base-banner p{color:var(--muted);margin-top:4px}#base-form{display:grid;gap:12px}#base-form label{display:grid;gap:5px;font-weight:650}#base-form label span{display:none}#base-form .btn{justify-self:start}#base-form textarea{resize:vertical}
@media(max-width:760px){.menu{grid-template-columns:repeat(4,1fr)}.menu a{align-content:center}.topright .identity{font-size:0}.hero .actions a{white-space:normal}}
dialog #ledger .dual{gap:8px 14px;max-height:60vh;overflow:auto;padding:3px}dialog #ledger label{min-width:0}dialog #ledger select{width:100%}
@media(max-width:760px){.menu{grid-template-columns:repeat(5,1fr)}.menu a{font-size:10px}}
.menu{overflow-y:auto;min-height:0}.sheet-toolbar{display:flex;align-items:center;gap:14px;margin:0 0 10px;color:var(--muted);font-size:12px}.sheet-toolbar input{width:min(300px,100%)}.sheet-wrap{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:auto;max-height:65vh}.sheet{border-collapse:separate;border-spacing:0;min-width:100%;font-size:13px}.sheet th,.sheet td{min-width:160px;max-width:300px;padding:10px 12px;border-right:1px solid #e6ece6;border-bottom:1px solid #e6ece6;text-align:left;vertical-align:middle;overflow-wrap:anywhere}.sheet th{position:sticky;top:0;z-index:1;background:#f5f8f5;color:#53665b;font-size:12px;white-space:nowrap}.sheet td:first-child,.sheet th:first-child{position:sticky;left:0;min-width:105px;background:#fff;z-index:1}.sheet th:first-child{z-index:2;background:#f5f8f5}.sheet tr:hover td{background:#f4f9f4}.sheet tr.selected-row td{background:#e9f5e9}.sheet .btn{min-height:32px;padding:4px 10px}.sheet tr[hidden]{display:none}

.project-workspace {
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  min-height:70vh;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--paper);
}
.project-views {
  padding:22px 12px;
  background:#f6f9f5;
  border-right:1px solid var(--line);
  border-radius:14px 0 0 14px;
}
.project-views h1 {font-size:22px;margin:0 10px 20px}
.project-views nav {display:grid;gap:4px}
.project-views nav button {
  display:flex;
  align-items:center;
  justify-content:space-between;
  text-align:left;
  gap:8px;
  padding:11px 10px;
  color:var(--ink);
  border:0;
  border-radius:8px;
  background:transparent;
}
.project-views nav button:hover,.project-views nav button[aria-pressed=true] {background:#e4efe4;color:#235b40}
.project-views small,.project-view-title span {color:var(--muted);font-size:12px}
.project-views>a {display:block;margin:16px 10px 0;padding-top:16px;border-top:1px solid var(--line)}
.project-pane {min-width:0;padding:18px}
.project-toolbar,.project-view-title {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.project-toolbar {margin-bottom:20px;align-items:end}
.project-toolbar label {display:grid;gap:5px;color:var(--muted);font-size:12px}
.project-toolbar input:not([type=checkbox]),.project-toolbar select,.project-fields summary {
  min-height:38px;padding:8px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink)
}
.project-toolbar .actions {margin-left:auto}
.project-fields {position:relative}
.project-fields summary {cursor:pointer}
.project-fields>div {
  position:absolute;z-index:4;right:0;top:100%;padding:12px;min-width:150px;
  background:white;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 20px #14282016
}
.project-fields label {display:flex;align-items:center;padding:4px}
.project-view-title {margin-bottom:12px}
.project-sheet .sheet td:first-child,.project-sheet .sheet th:first-child {min-width:190px}
.project-sheet .sheet th {height:42px}
.project-index {display:inline-block;min-width:28px;color:var(--muted);font-variant-numeric:tabular-nums}
.project-sheet a,.project-board a {font-weight:700}
.project-follow-cell {display:flex;align-items:center;gap:8px;justify-content:space-between;min-width:210px}
.project-follow-cell span {max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-board {display:flex;gap:12px;overflow:auto;padding-bottom:10px}
.project-board section {flex:0 0 210px;background:#f3f6f1;padding:12px;border-radius:9px;min-height:220px}
.project-board article {margin-top:10px;padding:12px;background:white;border:1px solid var(--line);border-radius:8px;overflow-wrap:anywhere}
.project-board article p,.project-history p {margin:6px 0 8px}
.project-history {padding:10px 0;border-top:1px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere}
#domain-record .dual {max-height:58vh;overflow:auto;padding:4px}
#domain-record label,#domain-record .field {min-width:0}
@media(max-width:760px){
  .project-workspace {display:block}
  .project-views {border-right:0;border-radius:14px 14px 0 0;padding:12px}
  .project-views h1 {margin:0 0 8px}
  .project-views nav {display:flex;overflow:auto;white-space:nowrap}
  .project-views nav button {gap:6px}
  .project-views>a {margin-top:8px;padding-top:8px}
  .project-pane {padding:12px}
  .project-toolbar .actions {margin-left:0}
}

dialog:has(#project-wizard){width:min(700px,calc(100% - 28px))}
.wizard-body{min-height:280px;margin-top:20px;max-height:56vh;overflow:auto;padding:3px}
.wizard-company{padding:9px 12px;background:var(--soft);border-radius:7px}
.wizard-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;border-top:1px solid var(--line);padding-top:12px}
.wizard-footer ol{list-style:none;display:flex;gap:12px;margin:0;padding:0;color:var(--muted)}
.wizard-footer li{display:flex;align-items:center;gap:5px;font-size:12px}
.wizard-footer li span{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--soft)}
.wizard-footer li[aria-current=step] span{background:var(--green);color:white}
.wizard-footer .foot-actions{margin-top:0}
.wizard-companies{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}
.wizard-companies button{display:grid;text-align:left;white-space:normal;min-width:0;overflow-wrap:anywhere;justify-content:start}
.wizard-companies small{color:var(--muted)}
.wizard-owner{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}
.wizard-owner span:last-child{margin-left:auto;color:var(--muted)}
.base-workspace{display:grid;gap:12px}
.base-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.base-toolbar h1{font-size:24px;margin-right:auto}
.base-toolbar .actions{flex-wrap:wrap}
.base-frame{display:block;width:100%;height:max(420px,calc(100dvh - 178px));border:1px solid var(--line);border-radius:10px;background:var(--paper)}
.base-home-links{flex-wrap:wrap}
