:root {
  color-scheme:light;
  --page:#f9fbfa; --white:#fff; --ink:#183230; --deep:#103a37;
  --body:#344e4a; --muted:#4e6561; --border:#d5e2de; --soft:#edf5f2;
  --accent:#12695f; --focus:#08786b; --green:#1b5f56;
  font-family:"Inter","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  color:var(--ink); background:var(--page); font-size:16px;
  line-height:1.58; font-weight:400; 
}
*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:24px; }
body { margin:0; min-width:320px; }
a { color:inherit; text-decoration:none; }
button,input,textarea,select { font:inherit; color:inherit; }
button { cursor:pointer; }
button:disabled { cursor:default; opacity:.52; }
button,a,input,select,textarea,summary { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
[hidden] { display:none!important; }
.icon { width:19px; height:19px; display:inline-block; vertical-align:middle; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.shell { width:min(100% - 72px,1240px); margin-inline:auto; }
.skip { position:fixed; z-index:30; left:12px; top:-120px; color:var(--white); background:var(--deep); border-radius:6px; padding:9px 14px; }
.skip:focus { top:10px; }
.topbar { background:#fff; border-bottom:1px solid #e1ebe7; }
.top-inner { min-height:72px; display:flex; align-items:center; gap:36px; }
.brand { display:flex; align-items:center; gap:11px; white-space:nowrap; min-width:178px; }
.brand img { display:block; border-radius:11px; }
.brand strong { display:block; font-weight:760; line-height:1.25; font-size:1.03rem; letter-spacing:.07em; }
.brand small { display:block; color:var(--muted); font-size:.75rem; margin-top:2px; letter-spacing:.03em; }
.top-inner nav { display:flex; gap:22px; align-items:center; margin-left:auto; }
.top-inner nav a { color:#334e49; font-size:.93rem; white-space:nowrap; padding:7px 0; font-weight:560; }
.top-inner nav a:hover { color:#0b5c50; text-decoration:underline; text-underline-offset:4px; }
.nav-count { display:inline-grid; place-items:center; min-width:20px; min-height:20px; margin-left:4px; line-height:1; padding:2px 5px; color:#1a5b50; background:#dcece6; border-radius:20px; font-size:.73rem; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:8px 15px; border-radius:7px; border:1px solid transparent; text-align:center; font-size:.93rem; font-weight:650; line-height:1.3; }
.button-primary { background:#153f3a; color:#fff; border-color:#153f3a; }
.button-primary:hover:not(:disabled) { background:#235950; border-color:#235950; }
.button-soft { background:#f5f9f7; border-color:#cbddd6; color:#244f48; }
.button-soft:hover:not(:disabled) { background:#e6f1ec; border-color:#9fbeb2; }
.button-small { min-height:37px; padding:7px 11px; font-size:.85rem; }
.install-button { min-height:38px; font-size:.88rem; padding-inline:12px; white-space:nowrap; }
.hero { background:linear-gradient(116deg,#ebf5ef 0%,#f1f8f3 59%,#edf6f1 100%); border-bottom:1px solid #e0ebe5; }
.hero-grid { display:grid; grid-template-columns:minmax(340px,.83fr) minmax(0,1.17fr); gap:40px; align-items:center; min-height:480px; padding-block:41px; }
.section-tag { display:inline-flex; align-items:center; gap:8px; font-size:.84rem; font-weight:670; letter-spacing:.06em; color:#316861; }
.section-tag i { width:7px; height:7px; border-radius:50%; background:#398573; }
.hero h1 { margin:15px 0 16px; font-size:clamp(2.55rem,4.35vw,4.55rem); line-height:1.12; font-weight:810; letter-spacing:-.031em; color:#113b36; }
.hero-copy > p { margin:0; color:#3c5751; max-width:32rem; font-size:clamp(1rem,1.45vw,1.13rem); line-height:1.82; }
.hero-actions { display:flex; gap:10px; flex-wrap:wrap; margin:23px 0 15px; }
.hero-actions .button { min-height:45px; padding-inline:17px; }
.hero-note { color:#4d6861; font-size:.85rem; display:flex; gap:7px; align-items:flex-start; max-width:31rem; }
.hero-note .icon { color:#43746b; width:16px; height:16px; margin-top:3px; }
.hero-figure { position:relative; margin:0; min-width:0; height:382px; border:1px solid #d2e0d8; border-radius:15px; background:#c4dfd2; overflow:hidden; isolation:isolate; box-shadow:0 12px 34px #2d5a4a17; }
.hero-figure img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 56%; }
.hero-figure figcaption { position:absolute; right:12px; bottom:12px; color:#254a43; background:#f0fcf6ed; border:1px solid #d7e8dd; font-size:.78rem; font-weight:640; padding:4px 8px; border-radius:5px; }
.section { padding-block:52px; }
.section-heading { margin-bottom:19px; }
.section-heading h2,.bottom-notes h2 { color:var(--deep); margin:0; letter-spacing:-.02em; font-size:clamp(1.66rem,2.8vw,2.3rem); line-height:1.26; font-weight:760; }
.section-heading p { color:var(--muted); margin:7px 0 0; font-size:.99rem; }
.chain-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.chain-card { border:1px solid var(--border); border-radius:11px; background:var(--white); min-width:0; padding:17px; --chain-color:#1f6e62; --chain-bg:#e7f3ee; }
.chain-drainage { --chain-color:#385f7c; --chain-bg:#eaf0f6; }
.chain-reserve { --chain-color:#805627; --chain-bg:#f6eee2; }
.chain-icon { display:grid; place-items:center; width:38px; height:38px; border-radius:8px; color:var(--chain-color); background:var(--chain-bg); }
.chain-icon .icon { width:21px;height:21px; }
.chain-card h3 { margin:8px 0 5px; font-size:1.16rem; }
.chain-card > p { color:#48615c; margin:0 0 13px; font-size:.93rem; }
.chain-steps { display:flex; list-style:none; padding:0; margin:0; flex-wrap:wrap; gap:5px; color:var(--chain-color); font-size:.78rem; font-weight:630; }
.chain-steps li { display:inline-flex; align-items:center; }
.chain-steps li:not(:last-child)::after { content:""; width:5px; height:5px; border-top:1px solid currentColor; border-right:1px solid currentColor; transform:rotate(45deg); margin:0 4px 1px 8px; opacity:.8; }
.scope-details { background:#f3f8f5; border:1px solid var(--border); padding:7px 14px; border-radius:9px; margin-top:14px; }
summary { cursor:pointer; }
.scope-details summary,.optional-fields summary { font-weight:660; color:#27554d; padding:4px 0; font-size:.93rem; }
.scope-content { display:grid; grid-template-columns:1fr 1fr .9fr; gap:22px; border-top:1px solid var(--border); margin-top:8px; padding-block:9px 5px; }
.scope-content h3 { margin:3px 0 4px; font-size:1.01rem; }
.scope-content p,.scope-content li { color:var(--body); margin:0; font-size:.89rem; }
.milestones,.evidence-links { list-style:none; padding:0; margin:0; }
.milestones li + li,.evidence-links li + li { margin-top:4px; }
.evidence-links a,.text-link { color:#175c53; text-decoration:underline; text-underline-offset:3px; }
.role-band { background:#eaf3ee; border-block:1px solid #dce8e1; }
.role-layout { display:grid; grid-template-columns:minmax(205px,.32fr) minmax(0,1fr); gap:16px; align-items:start; }
.role-rail,.role-detail,.form-card,.draft-card { background:#fff; border:1px solid var(--border); border-radius:12px; min-width:0; }
.role-rail { padding:13px; }
.role-rail h3 { margin:0 5px 8px; color:#4a635e; font-size:.91rem; }
#role-list { display:grid; gap:4px; }
.role-option { border:1px solid transparent; background:transparent; text-align:left; display:flex; align-items:center; gap:9px; padding:8px; min-height:41px; border-radius:7px; width:100%; font-size:.94rem; }
.role-option:hover { border-color:#cfdfd7; background:#f1f7f3; }
.role-option[aria-pressed=true] { background:#e2f0e9; color:#1b6155; border-color:#c7ded2; font-weight:700; }
.role-option .icon { width:17px;height:17px;color:#477471; }
.role-detail { padding:21px 23px; }
.role-category { display:inline-block; color:#376c63; font-size:.80rem; padding:2px 8px; border-radius:4px; background:#e8f3ee; }
.role-detail h3 { margin:7px 0 4px; font-size:clamp(1.26rem,2.2vw,1.79rem); line-height:1.28; }
.role-intro { color:var(--body); margin:0 0 14px; }
.role-body { display:grid; grid-template-columns:1fr 1fr; column-gap:24px; row-gap:12px; }
.role-body section { border-top:1px solid var(--border); padding-top:9px; min-width:0; }
.role-body h4 { color:#28564e; font-size:.95rem; margin:0 0 4px; display:flex; align-items:center; gap:7px; }
.role-body h4 .icon { width:16px; height:16px; }
.role-body ul { margin:0; padding-left:1.1rem; color:#405952; font-size:.91rem; }
.role-body li + li { margin-top:3px; }
.role-actions { border-top:1px solid #e1ebe5; margin-top:15px; padding-top:12px; display:flex; flex-wrap:wrap; gap:9px; }
.request-layout { display:grid; grid-template-columns:minmax(0,1.48fr) minmax(290px,1fr); gap:16px; align-items:start; }
.form-card,.draft-card { padding:19px; }
.card-header { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; margin-bottom:11px; }
.card-header h3 { margin:0; font-size:1.15rem; font-weight:725; }
#request-form,.optional-body { display:grid; gap:10px; }
#request-form label { display:grid; gap:3px; color:#2c4a44; font-size:.89rem; font-weight:620; min-width:0; }
.fields-two { display:grid; grid-template-columns:1fr 1fr; gap:9px; min-width:0; }
input,textarea,select { background:#fbfdfc; border:1px solid #c2d7cf; border-radius:6px; padding:7px 8px; min-width:0; width:100%; font-size:.94rem; font-weight:400; }
input,select { min-height:39px; }
select { appearance:none; padding-right:27px; background-image:linear-gradient(45deg,transparent 50%,#356b60 50%),linear-gradient(135deg,#356b60 50%,transparent 50%); background-position:calc(100% - 14px) 55%,calc(100% - 9px) 55%; background-size:5px 5px,5px 5px; background-repeat:no-repeat; }
textarea { resize:vertical; }
input::placeholder,textarea::placeholder { color:#657b75; opacity:1; }
.optional-fields { padding:4px 0; }
.optional-body { padding-top:5px; }
.form-note,.form-status { margin:0; font-size:.85rem; color:var(--muted); }
.form-status:empty { display:none; }
.form-status.is-error,.storage-warning { color:#8d362b; }
.form-actions,.export-actions { display:flex; gap:7px; align-items:center; flex-wrap:wrap; }
.draft-card > p { margin:0 0 12px; color:var(--muted); font-size:.91rem; }
.draft-count { color:#316158; background:#eaf3ef; border:1px solid #d1e3d9; border-radius:5px; padding:2px 7px; font-size:.8rem; }
.draft-list { list-style:none; padding:0; margin:0; max-height:630px; overflow:auto; }
.draft-list li { padding:9px 0; border-top:1px solid var(--border); }
.draft-list h4 { margin:0 0 3px; font-size:.98rem; font-weight:700; overflow-wrap:anywhere; }
.draft-list p { margin:0 0 6px; color:var(--muted); font-size:.83rem; }
.draft-list button { min-height:32px; }
.draft-list .row-actions { display:flex; gap:6px; flex-wrap:wrap; }
.draft-list .delete-draft { color:#874236; }
.empty-note { border:1px dashed #c5d8cf; padding:12px; margin:0; border-radius:7px; color:var(--muted); font-size:.89rem; }
.export-actions { margin-top:11px; padding-top:11px; border-top:1px solid var(--border); }
.storage-warning { margin-top:9px; font-size:.85rem; }
.requests-section { padding-bottom:25px; }
.bottom-notes { padding-top:16px; }
.bottom-notes h2 { font-size:1.3rem; margin-bottom:10px; }
.notes-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:13px; }
.notes-grid details { border:1px solid var(--border); border-radius:8px; padding:8px 11px; background:#fff; }
.notes-grid summary { font-size:.93rem; color:#28564e; font-weight:660; }
.notes-grid p { color:var(--muted); font-size:.88rem; margin:6px 0 0; }
.footer { border-top:1px solid var(--border); background:#f0f5f1; }
.footer-inner { min-height:69px; padding-block:12px; display:flex; justify-content:space-between; gap:11px; flex-wrap:wrap; align-items:center; color:#4c665f; font-size:.82rem; }
.footer strong { color:#28554a; }
#main:focus { outline:none; }
#app-dialog { width:min(100% - 34px,460px); border:1px solid #a8c5b9; border-radius:12px; padding:0; color:var(--ink); background:#fff; box-shadow:0 14px 45px #112e2752; }
#app-dialog::backdrop { background:#13312b66; }
.dialog-body { padding:19px; }
.dialog-body h2 { font-size:1.3rem; margin:0 0 7px; }
.dialog-body p { color:var(--body); margin:0 0 14px; white-space:pre-line; }
.toast-region { position:fixed; z-index:10; right:16px; bottom:16px; max-width:calc(100% - 32px); }
.toast { color:#fff; background:#17483e; border-radius:8px; padding:9px 12px; box-shadow:0 6px 18px #173a3235; font-size:.93rem; }
.toast.is-error { background:#813e32; }
@media(max-width:1050px) {
  .shell { width:min(100% - 46px,1240px); }.top-inner{gap:20px;}.top-inner nav{gap:15px;}
  .hero-grid{gap:24px; min-height:0;}.hero-figure{height:340px;}
  .chain-card{padding:13px;}.chain-steps{font-size:.75rem;}
}
@media(max-width:760px) {
  html { scroll-padding-top:12px; }
  .shell{width:min(100% - 32px,1240px);}.top-inner{flex-wrap:wrap; gap:5px 14px; padding-top:7px;}
  .top-inner nav{order:2; width:100%; margin-left:0; justify-content:flex-start; gap:20px; }
  .top-inner nav a{padding:6px 0 8px; font-size:.88rem;}.install-button{margin-left:auto; min-height:36px;}
  .brand img{width:37px;height:37px;}.brand strong{font-size:.95rem;}
  .hero-grid{display:grid; grid-template-columns:1fr; gap:18px; padding-block:27px 22px;}
  .hero-figure{height:clamp(210px,54vw,330px);}.hero h1{margin:11px 0 9px;}
  .hero-copy>p{line-height:1.67;}.hero-actions{margin-top:15px;}
  .section{padding-block:31px;}.chain-grid{grid-template-columns:1fr;gap:8px;}.chain-card{display:grid;grid-template-columns:34px 1fr;column-gap:9px;align-items:start;}
  .chain-icon{width:34px;height:34px;grid-row:1/4;}.chain-card h3{margin:0 0 4px;}.chain-card>p{margin:0 0 5px;}.chain-steps{grid-column:2;}
  .scope-content{grid-template-columns:1fr;gap:10px;}.role-layout,.request-layout{grid-template-columns:1fr;}
  .role-rail{padding:9px;}.role-rail h3{margin-bottom:6px;}#role-list{grid-template-columns:1fr 1fr;gap:3px;}
  .role-option{font-size:.86rem;padding:5px;min-height:36px;gap:5px;}.role-option .icon{width:15px;height:15px;}
  .role-detail,.form-card,.draft-card{padding:14px;}.role-body{gap:9px;}
  .notes-grid{grid-template-columns:1fr;gap:6px;}
  .bottom-notes{padding-top:8px;}.footer-inner{justify-content:flex-start;gap:4px 14px;}
}
@media(max-width:440px) { 
  .role-body,.fields-two{grid-template-columns:1fr;}
  .hero h1{font-size:2.5rem;}
  .role-actions .button{padding-inline:9px;font-size:.83rem;}
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
