:root{--green:#35664e;--ink:#263f32;--muted:#788579;--line:#dee6dd;--bg:#f6f8f3;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}header{max-width:960px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:24px 22px}a{color:var(--green);text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{border:1px solid var(--line);border-radius:12px;padding:12px 18px;background:white;color:var(--green);cursor:pointer;min-height:44px}button:disabled{opacity:.5;cursor:wait}button.primary{color:white;background:var(--green);border-color:var(--green)}button.danger{color:#ac4949}button.small{font-size:13px;padding:8px 12px;min-height:36px}.brand{display:flex;gap:12px;align-items:center;font-size:20px;font-weight:650}.brand small{display:block;font-size:11px;font-weight:400;letter-spacing:2px;margin-top:5px;color:var(--muted)}.mark{display:grid;place-items:center;width:44px;height:48px;border-radius:12px;background:#e4ecdb;font-size:28px}.edition{font-size:11px;color:var(--muted)}main{max-width:960px;margin:0 auto;padding:0 20px 130px}.card{background:white;border:1px solid var(--line);border-radius:18px;padding:24px;margin:18px 0;box-shadow:0 4px 24px #31442f03}.notice{background:linear-gradient(135deg,#f0f5e8,#fcfdf9);border-top:4px solid #7a9d72}.slogan{color:#607851;line-height:1.8;font-size:19px;margin:12px 0 26px}.notice h1{text-align:center;white-space:pre-line;font-size:25px;line-height:1.7;margin:24px 0}.paragraph{text-indent:2em;white-space:pre-wrap;line-height:1.95;text-align:justify;font-size:15px;color:#52634b}.eyebrow{font-size:12px;letter-spacing:1px;color:#789070}h1{font-size:26px;line-height:1.5;margin:10px 0}h2{font-size:19px;margin:0 0 20px}h3{font-size:16px;margin:15px 0}.muted,small{color:var(--muted);font-size:13px;line-height:1.7}.signature{text-align:right;white-space:pre-line;font-size:14px;color:#60755b;margin-top:25px;line-height:1.9}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px;margin:22px 0;background:#fff}th,td{border:1px solid #d8e2d2;padding:14px 9px;text-align:center;line-height:1.7}th{background:#e2ebda}th:first-child{width:25%}th:last-child{width:18%}.full{width:100%}.center{text-align:center}.row{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.actions>*{flex:1}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:24px 0}.steps button{border:0;background:none;font-size:12px;padding:8px 0;color:var(--muted)}.steps b{display:grid;place-items:center;margin:0 auto 9px;background:#e9eee3;border-radius:50%;width:33px;height:33px;font-weight:500}.steps .active{color:var(--green);font-weight:600}.steps .active b{background:var(--green);color:white}.field{margin:0 0 20px;scroll-margin-top:20px}.field label{display:block;font-size:15px;font-weight:500;margin-bottom:10px}.required{color:#aa5148;margin-left:4px}.optional{font-size:12px;color:#98a396;font-weight:400;margin-left:5px}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:11px;min-height:48px;padding:13px 12px;background:#fbfcf9;color:var(--ink);font-size:16px}textarea{resize:vertical;min-height:100px}input:focus,select:focus,textarea:focus{outline:2px solid #8bad93;outline-offset:1px}input[type=checkbox]{width:20px;min-height:20px;margin:0;accent-color:var(--green)}.check{display:flex;align-items:flex-start;gap:12px;font-size:14px;line-height:1.8}.error{color:#a83e3e;font-size:13px;margin-top:7px}.errorbox{border-color:#c76761}.plans{display:grid;grid-template-columns:1fr 1fr;gap:10px}.plans button{text-align:left;line-height:1.6;min-height:72px}.plans .selected{border-color:#59836a;background:#edf4ea}.total{background:#eef4e9;border-radius:12px;padding:15px 18px;display:flex;justify-content:space-between;margin-top:16px}.amount{font-size:23px;color:var(--green);font-weight:600;font-variant-numeric:tabular-nums}.add{display:block;margin:22px auto;background:#f0f5ec;border:1px dashed #b4c6ad;font-size:14px}.add small{display:block;white-space:nowrap}.proof-label{font-size:15px;font-weight:500;cursor:pointer}.proof-label small{font-size:12px}.proof{border-top:1px solid var(--line);padding-top:20px}.proof details{margin-bottom:12px}.proof details p{font-size:12px;color:var(--muted);line-height:1.7}.file{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;font-size:13px;word-break:break-all}.file a{flex:1}.sticky{position:fixed;bottom:66px;left:0;right:0;border-top:1px solid var(--line);background:#fffffff5;padding:10px max(20px,calc((100vw - 920px)/2));backdrop-filter:blur(12px);z-index:10}.sticky .actions{margin-top:8px}.sticky .save{font-size:12px;color:var(--muted)}#nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);padding:15px 0 calc(15px + env(safe-area-inset-bottom));display:flex;justify-content:center;gap:0;z-index:11}#nav a{width:32%;max-width:300px;text-align:center;color:#8a9689;font-size:13px}#nav a.active{color:var(--green);font-weight:600}.sticky{bottom:calc(52px + env(safe-area-inset-bottom))}.review-row{margin:0 0 17px;word-break:break-word}.review-row small{display:block;margin-bottom:5px}.badge{display:inline-block;background:#edf3e8;padding:4px 9px;border-radius:8px;font-size:12px;color:#62805e}.badge.withdrawn{background:#f7eee7;color:#a37c54}.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stats .card{margin:0}.wide{grid-column:span 2}.filters{display:grid;grid-template-columns:1fr 1fr;gap:12px}.filters .field{margin:0}.tabs{display:flex;gap:8px;overflow:auto;margin:16px 0}.tabs button{white-space:nowrap;font-size:13px;padding:8px 12px}.tabs .active{background:#e9f1e4}.hint{background:#f0f5eb;color:#60705a;border-radius:12px;padding:15px;font-size:13px;line-height:1.8}.code{font-family:monospace;overflow-wrap:anywhere;font-size:16px}.hidden{display:none!important}dialog{border:1px solid var(--line);border-radius:20px;padding:24px;max-width:540px;width:calc(100% - 32px);max-height:85vh;overflow:auto;color:var(--ink)}dialog::backdrop{background:#152a2266}#close-modal{margin-top:20px;width:100%}#toast{position:fixed;top:20px;left:50%;transform:translateX(-50%);background:#263f32;color:#fff;padding:12px 18px;border-radius:12px;z-index:100;max-width:90%;display:none;font-size:14px}.downloads a{display:block;padding:14px;border:1px solid var(--line);border-radius:12px;margin-top:12px}.notice-preview{max-height:60vh;overflow:auto}.record-title{font-size:18px;font-weight:600}.section-gap{margin-top:24px}@media(min-width:720px){main{padding-bottom:150px}.card{padding:30px}.notice{padding:44px 60px}.notice h1{font-size:30px}.paragraph{font-size:16px}.form-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.field.long{grid-column:span 2}.plans{grid-template-columns:repeat(4,1fr)}.sticky{max-width:960px;margin:auto;padding:12px 22px;border-radius:18px 18px 0 0}.filters{grid-template-columns:repeat(3,1fr)}}@media(max-width:380px){main{padding-left:12px;padding-right:12px}.card{padding:18px}.edition{display:none}.notice h1{font-size:22px}}

/* Phone layout: keep all form content clear of the two fixed bottom bars. */
main.apply-page{padding-bottom:calc(240px + env(safe-area-inset-bottom))}
.notice-table{table-layout:fixed;font-size:12px}
.notice-table th:first-child{width:9%}.notice-table th:nth-child(2){width:22%}.notice-table th:nth-child(3){width:35%}.notice-table th:nth-child(4){width:14%}.notice-table th:last-child{width:20%}
.notice-table th,.notice-table td{padding:10px 4px;overflow-wrap:anywhere}
.funding-note{text-align:center;white-space:normal;font-size:15px;font-weight:500;padding:12px 8px;line-height:1.8}
.grand-total{margin-bottom:24px}.add{padding:9px 14px;min-height:40px}.add small{display:inline;font-size:12px;margin-left:4px}
@media(max-width:420px){.notice.card{padding:18px 12px}.notice-table{font-size:11px}.card{padding:20px}main{padding-left:16px;padding-right:16px}.row>input{min-width:0;flex:1}.plans button{padding:10px 12px}}
@media(max-width:350px){main{padding-left:12px;padding-right:12px}.card{padding:16px}.funding-note{padding-left:4px;padding-right:4px}}

.notice-table th:first-child{white-space:nowrap}

.brand-lockup{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.brand-logo{display:block;width:180px;height:auto;max-width:100%}.brand-lockup small{margin-top:2px;letter-spacing:2px}@media(max-width:380px){.brand-logo{width:158px}}

.application-overview{padding:22px 18px}.application-table{width:max-content;min-width:100%;margin:12px 0;font-size:13px;table-layout:auto}.application-table th,.application-table td{text-align:left;padding:14px 12px;vertical-align:top;overflow-wrap:anywhere;min-width:160px;max-width:260px}.application-table th:first-child,.application-table th:last-child{width:auto}.application-table th:last-child,.application-table .table-actions{position:sticky;right:0;min-width:120px;border-left:1px solid var(--line);background:#fff;box-shadow:-4px 0 8px #263f3209}.application-table th:last-child{background:#e2ebda}.table-actions a{display:block;margin-bottom:10px}.table-actions button{white-space:nowrap}.management-link{display:inline-block;padding:12px 0;font-weight:600}

.month-picker{width:100%;text-align:left;min-height:48px;padding:13px 12px;background:#fbfcf9;color:var(--ink);font-size:16px;border-radius:11px}.entry-month-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}

.contact-info h2{font-size:16px;font-weight:700;margin-bottom:12px}.contact-info p{font-size:14px;line-height:1.8;margin:8px 0}.contact-info a{font-size:inherit;overflow-wrap:anywhere}

.attachment-links{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:6px 0 12px;overflow-wrap:anywhere}.attachment-download{display:inline-block;border:1px solid var(--line);border-radius:8px;padding:7px 12px;font-size:13px;background:#f0f5ec}
