:root{font-family:Arial,Helvetica,sans-serif;font-size:16px;color:#203b50;background:#f5f7f9;--navy:#17456c;--orange:#a74414;--muted:#52697a;--line:#d9e2e8;--radius:14px;--focus:#ac4616}*{box-sizing:border-box}body{margin:0;line-height:1.55}body.larger-text{font-size:1.15rem}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button,a,summary{touch-action:manipulation}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:44px;padding:.65rem 1rem;border:1px solid #bacbd7;border-radius:8px;background:#fff;color:var(--navy);font-size:.875em;font-weight:700;text-decoration:none;cursor:pointer;line-height:1.4}button:hover,.button:hover{background:#edf3f7;border-color:#7598b2}button:disabled{cursor:not-allowed;opacity:.55}.primary,.button.primary{background:var(--orange);border-color:var(--orange);color:#fff}.primary:hover,.button.primary:hover{background:#873710;color:#fff}.text-button{background:transparent}a{color:#175e8b;text-underline-offset:3px}a:hover{text-decoration-thickness:2px}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex="-1"]:focus-visible{outline:3px solid var(--focus);outline-offset:4px}h1,h2,h3,h4{line-height:1.2;color:var(--navy);margin:0 0 1rem;font-weight:700;overflow-wrap:break-word}h1{font-size:clamp(1.9rem,4vw,2.8rem);letter-spacing:-.035em}h2{font-size:1.8em;letter-spacing:-.025em}h3{font-size:1.15em}h4{font-size:1em}p{margin:0 0 1rem}p:last-child{margin-bottom:0}label{display:block;font-size:.875em;font-weight:700}input,select,textarea{width:100%;min-height:46px;padding:.7rem .8rem;border:1px solid #aabecb;border-radius:7px;background:white;color:#203b50;line-height:1.4;margin-top:.4rem;font-size:1rem}textarea{resize:vertical;min-height:150px;max-width:100%}select{padding-right:2rem}input[type=search]{margin:0}input:disabled,select:disabled{background:#edf1f4}summary{cursor:pointer;min-height:44px;padding:.6rem 0;font-weight:700;line-height:1.5}details>p:first-of-type{margin-top:.8rem}.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link:focus{position:fixed;z-index:200;top:12px;left:12px;padding:12px;background:white}.site-header{background:var(--navy);border-bottom:4px solid #f3a064;color:white}.header-inner{max-width:1240px;margin:auto;padding:20px 28px;display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{display:flex;gap:12px;align-items:center;color:white;text-decoration:none}.brand-mark{background:#f3a064;width:44px;height:44px;border-radius:10px;display:grid;place-items:center;flex-shrink:0}.brand-mark svg{width:30px;fill:none;stroke:#173e5b;stroke-width:1.8}.brand strong{display:block;font-size:.94rem;letter-spacing:.09em}.brand>span>span{display:block;font-size:.65rem;letter-spacing:.12em;margin-top:4px;color:#dce9f2}.workspace-badge{font-size:.75rem;color:#e1edf6}.wrap{max-width:1240px;margin:auto;padding:0 28px}.hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:36px 0}.hero h1{margin:.6rem 0}.hero p{color:var(--muted)}.eyebrow{font-size:.7em;font-weight:700;letter-spacing:.12em;color:#9c4217}.review-stamp{font-size:.75rem;text-align:right;color:var(--muted);flex-shrink:0}.main-menu{position:sticky;top:8px;z-index:30;border:1px solid #c7d5df;border-radius:12px;background:#fff;box-shadow:0 5px 20px #173f6510;margin-bottom:28px}.main-menu>summary{list-style:none;display:flex;gap:10px;align-items:center;padding:16px 20px}.main-menu>summary::-webkit-details-marker{display:none}.menu-caption{margin-left:auto;font-weight:400;color:var(--muted);font-size:.8em}.main-menu nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line);gap:6px;padding:12px;max-height:65vh;overflow:auto}.main-menu nav a{padding:12px;border-radius:7px;text-decoration:none;font-size:.9em;min-height:46px;display:flex;align-items:center}.main-menu nav a:hover{background:#edf3f7}.main-menu nav a[aria-current=page]{background:#ffecdd;color:#8f3c13;font-weight:700}.section-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:12px}.section-bar span{font-size:.85em;color:var(--muted)}.view,#content{scroll-margin-top:100px}.view{min-width:0}.dashboard-banner{display:grid;grid-template-columns:1.5fr 1fr;gap:32px;border-radius:20px;background:var(--navy);padding:40px;margin-bottom:24px}.dashboard-banner h2{font-size:clamp(2rem,4vw,3.1rem);color:white;margin:16px 0 20px}.dashboard-banner p{color:#e1edf5;max-width:540px}.dashboard-banner .eyebrow{color:#ffc496}.button-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.dashboard-banner .button-row{margin-top:24px}.dashboard-banner .button:not(.primary){background:transparent;border-color:#b4ccdc;color:white}.dashboard-banner .button.primary{background:#ffb77d;border-color:#ffb77d;color:#173b55}.banner-art{display:flex;align-self:center;flex-direction:column;gap:10px;border-left:3px solid #f3a064;padding:26px}.banner-art span{font-weight:700;font-size:2.1rem;line-height:1.1;color:#ffb77d}.banner-art span:first-child{color:#dbe9f3;font-size:.75rem;letter-spacing:.13em}.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.quick-grid a{display:flex;flex-direction:column;gap:14px;padding:24px;background:white;border:1px solid var(--line);border-radius:var(--radius);text-decoration:none}.quick-grid a:hover{border-color:#d4783d}.quick-grid strong{font-size:1.05em}.quick-grid span:last-child{font-size:.875em;color:var(--muted)}.quick-icon{color:#984014;background:#ffecdd;font-size:1.5rem;border-radius:10px;padding:4px 12px;align-self:flex-start}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.section-heading h2{margin:.4rem 0 .7rem}.section-heading p{color:var(--muted);font-size:.94em}.section-heading>button{flex-shrink:0}.panel,.filter-panel{padding:24px;background:white;border:1px solid var(--line);border-radius:var(--radius)}.filter-row{display:grid;grid-template-columns:1fr 1fr auto;gap:16px;align-items:end;margin-top:16px}.filter-row button{min-height:46px}.result-bar{font-size:.9em;font-weight:700;margin:20px 0 12px}.scope-note{font-size:.85em;line-height:1.7;color:var(--muted);margin-bottom:24px;max-width:960px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:20px}.card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-top:4px solid #ed995c;border-radius:var(--radius);background:white;overflow:hidden}.card-main{padding:24px}.card-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:20px}.tag{font-size:.75em;background:#eaf2f8;color:#34566e;border-radius:6px;padding:6px 8px}.star{width:44px;height:44px;padding:0;font-size:1.5rem}.star[aria-pressed=true]{background:#ffecdd;color:#934016;border-color:#db9f76}.funder{font-size:.78em;color:var(--muted);font-weight:700;line-height:1.5;margin-bottom:12px}.card h3{font-size:1.4em;letter-spacing:-.025em;margin-bottom:16px}.grant-summary{font-size:.94em;line-height:1.7}.cycle-badge{display:inline-flex;font-size:.75em;font-weight:700;background:#edf1f4;color:#455e70;padding:6px 9px;border-radius:6px;margin-bottom:10px}.cycle-badge.open{background:#e5f3e9;color:#245d39}.meta{font-size:.8em;line-height:1.65;color:var(--muted)}.amount{font-size:.9em;font-weight:700;margin:16px 0}.grant-requirements{font-size:.85em;border-top:1px solid var(--line);padding-top:8px}.grant-requirements summary{color:var(--navy)}.grant-requirements p{line-height:1.75;overflow-wrap:anywhere}.grant-actions{display:flex;flex-direction:column;gap:10px;padding:0 24px 14px}.stage-caption{font-size:.8em;color:var(--muted);text-align:center;margin:0 24px 20px!important}.pipeline-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:start}.pipeline-column{background:#eaf0f5;border-top:3px solid #ed995c;border-radius:12px;padding:16px;min-width:0}.pipeline-column>h3{display:flex;justify-content:space-between;gap:8px;font-size:1em}.pipeline-column>h3 span{color:#52697a}.pipeline-card{padding:16px;background:white;border:1px solid var(--line);border-radius:10px;margin-top:14px}.pipeline-card h4{line-height:1.4}.pipeline-card button{margin-top:16px;width:100%}.pipeline-card select{font-size:.9em}.column-empty{font-size:.85em;color:var(--muted)}.segmented{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}.segmented [aria-pressed=true]{color:white;background:var(--navy);border-color:var(--navy)}.record-list{display:grid;gap:14px}.record-row{display:flex;align-items:center;justify-content:space-between;gap:20px;background:white;padding:24px;border:1px solid var(--line);border-radius:12px}.record-row h3{margin:.5rem 0}.record-row p{font-size:.85em;color:var(--muted)}.record-row button{flex-shrink:0}.empty{grid-column:1/-1;text-align:center;padding:40px 24px;border:1px dashed #b2c6d3;border-radius:12px}.empty strong{display:block;font-size:1.2em;margin-bottom:10px}.empty p{color:var(--muted)}.simple-guide{padding-left:22px;margin:0 0 20px}.simple-guide li{padding:8px 0;line-height:1.8}.notice{padding:18px 20px;border-radius:10px;margin-bottom:20px;font-size:.9em;line-height:1.7}.notice.danger{border:1px solid #e1b79d;background:#fff0e6;color:#813512}.notice.subtle{background:#eaf1f6;color:#3a5b70}.tool-icon{font-size:1.5rem;color:var(--orange);margin-bottom:14px}footer{padding:32px 0;margin-top:42px;border-top:1px solid var(--line);color:var(--muted);font-size:.8em}footer strong{color:var(--navy);font-size:1.1em}footer p{margin:8px 0}.save-status{font-size:1em}.local-note{display:block}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.full{grid-column:1/-1}dialog{width:min(650px,calc(100% - 28px));max-height:90dvh;padding:0;border:1px solid #a9bdcb;border-radius:16px;box-shadow:0 20px 80px #102e5540;color:#203b50}dialog::backdrop{background:#102b47aa}dialog form{display:flex;flex-direction:column;max-height:88dvh}.dialog-header{padding:24px;border-bottom:1px solid var(--line);display:flex;align-items:start;justify-content:space-between;gap:16px}.dialog-header h2{font-size:1.5em;margin:.5rem 0 0}.icon-button{width:44px;min-width:44px;font-size:1.4rem;padding:0}.dialog-body{padding:24px;overflow:auto;overscroll-behavior:contain}.dialog-footer{display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid var(--line);background:#f7fafc}.dialog-footer button{min-width:160px}.form-hint{font-size:.85em;color:var(--muted);line-height:1.7;margin:16px 0 24px}.form-error{color:#96381d;background:#fff0e6;padding:12px;margin-top:20px}.form-grid details{font-size:.85em}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:100;max-width:min(560px,calc(100% - 32px));padding:14px 22px;background:#173e5c;color:white;border-radius:10px;box-shadow:0 8px 28px #173f6530;font-size:.9rem}.larger-text input,.larger-text select,.larger-text textarea{font-size:1.1rem}#recoverData{margin-bottom:20px}#copyFallback{margin-top:20px}#shareStatus{margin-top:20px}#grantInfo>.meta{margin-bottom:14px}#grantInfo .form-hint{margin-bottom:24px}
@media(min-width:1100px){.cards{align-items:stretch}.card-main{flex:1}}
@media(max-width:1000px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.pipeline-board{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-banner{grid-template-columns:1fr}.banner-art{display:none}.quick-grid a{padding:20px}}
@media(max-width:640px){.wrap{padding:0 16px}.header-inner{padding:18px 16px}.brand strong{font-size:.75rem}.brand>span>span{font-size:.6rem}.workspace-badge,.review-stamp,.menu-caption{display:none}.hero{padding:26px 0}.hero h1{font-size:2rem}.hero p{font-size:.9em}.main-menu{top:4px;margin-bottom:22px}.main-menu nav{grid-template-columns:1fr 1fr;padding:8px}.main-menu nav a{font-size:.85em}.main-menu>summary{padding:13px 16px}.dashboard-banner{padding:28px 22px;border-radius:16px}.dashboard-banner h2{font-size:2.1em}.dashboard-banner .button-row{align-items:stretch;flex-direction:column}.cards,.quick-grid,.pipeline-board,.filter-row,.form-grid{grid-template-columns:1fr}.section-heading{align-items:stretch;flex-direction:column}.filter-panel,.panel,.card-main{padding:20px}.grant-actions{padding-left:20px;padding-right:20px}.full{grid-column:auto}.section-bar{margin-bottom:20px}.section-bar span{display:none}.record-row{align-items:stretch;flex-direction:column;padding:20px}.dialog-header,.dialog-body{padding:20px}.dialog-footer{padding:16px 20px}.dialog-footer button{width:100%}h2{font-size:1.6em}.quick-grid a{padding:22px}.toast{bottom:12px}.view,#content{scroll-margin-top:80px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{.site-header,.hero,.main-menu,.section-bar,footer,.filter-panel,.grant-actions,button,.toast{display:none!important}.wrap{max-width:none;padding:0}.cards,.pipeline-board{display:block}.card,.pipeline-card,.record-row{break-inside:avoid;margin-bottom:20px}.view[hidden]{display:none!important}body{background:white;color:black}.card{border:1px solid #777}details:not([open]){display:none}.dashboard-banner{background:white}.dashboard-banner h2,.dashboard-banner p{color:black}}

.dashboard-search{margin:24px 0;padding:22px;background:#fff;border:1px solid var(--line);border-radius:14px}.dashboard-search>label{display:block;font-size:1.15rem;font-weight:700;margin-bottom:10px}.search-controls{display:flex;gap:10px}.search-controls input{flex:1;min-width:0;width:100%;padding:14px;border:1px solid #7598b2;border-radius:8px}.filter-panel .search>span{display:block;font-weight:700;margin-bottom:6px}@media(max-width:600px){.search-controls{flex-direction:column}.search-controls button{width:100%}}

.quick-grid.backup-shortcut{grid-template-columns:1fr}

#teamLogin,#teamNewPassword{max-width:520px}#teamLogin label,#teamNewPassword label{display:grid;gap:6px;margin:16px 0;font-weight:700}#teamLogin input,#teamNewPassword input{width:100%;padding:12px;border:1px solid #7598b2;border-radius:8px}#teamMessage{white-space:pre-wrap}#teamStatus{font-weight:700}

#team{max-width:760px;margin-inline:auto}#teamPanel{border-top:4px solid #ed995c}#teamPanel #teamLogin,#teamPanel #teamNewPassword{max-width:none}.admin-link{display:inline-flex;align-items:center;min-height:44px;margin-top:12px;font-weight:700;font-size:.875rem}#authLoading{color:var(--muted)}
