:root{color:#16352d;--muted:#44635a;--line:#d7e5df;--surface:#fff;--surface-muted:#edf4f0;--accent:#14654e;background:#f4f7f6;font-family:system-ui,sans-serif;line-height:1.5}*{box-sizing:border-box}body{margin:0}main{max-width:66rem;margin-inline:auto;padding:3rem 1.5rem 4rem}.page-header{margin-bottom:2rem}h1{letter-spacing:-.03em;margin:0;font-size:2.25rem;line-height:1.14}.page-header p{color:var(--muted);margin:.5rem 0 0}.catalog-toolbar{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.75rem;display:flex}.catalog-toolbar span{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.875rem}.source-import-monitor{background:var(--surface);border:1px solid var(--line);border-radius:.875rem;margin-bottom:1.25rem;padding:.875rem 1rem}.source-import-heading{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.25rem .75rem;display:flex}.source-import-heading h2{margin:0;font-size:1rem;font-weight:700}.source-import-heading span,.source-import-monitor p{color:var(--muted);font-size:.875rem}.source-import-monitor p{overflow-wrap:anywhere;margin:.225rem 0 0}.source-import-list{grid-template-columns:repeat(2,minmax(0,1fr));margin:.625rem 0 0;padding:0;list-style:none;display:grid}.source-import-list li{border-top:1px solid var(--line);padding-top:.5rem}.source-import-list li+li{margin-left:.875rem}.source-import-counts{font-variant-numeric:tabular-nums;display:block}.source-import-status[data-status=succeeded]{color:var(--accent)}.source-import-status[data-status=failed],.source-import-monitor .source-import-error{color:#84301d}@media (width<=42rem){.source-import-list{grid-template-columns:minmax(0,1fr);gap:.625rem}.source-import-list li+li{margin-left:0}}button{background:var(--surface);color:#174b3d;font:inherit;white-space:nowrap;cursor:pointer;border:1px solid #a9c6ba;border-radius:.5rem;padding:.5rem .875rem;font-size:.875rem;font-weight:650}button:hover:not(:disabled){background:var(--surface-muted)}button:active:not(:disabled){background:#d9ebe2}button:disabled{color:var(--muted);border-color:var(--line);cursor:wait}:focus-visible{outline:2px solid var(--accent);outline-offset:4px}::selection{color:#16352d;background:#cbe9db}.catalog{background:var(--surface);border:1px solid var(--line);border-radius:.875rem;overflow:hidden}.catalog-head,.grant-row{grid-template-columns:minmax(0,1fr) 19rem;align-items:start;gap:1.5rem;padding-inline:1.375rem;display:grid}.catalog-head{background:var(--surface-muted);color:var(--muted);padding-block:.75rem;font-size:.8125rem;font-weight:650}.catalog-columns,.grant-meta{grid-template-columns:8.5rem minmax(0,1fr);gap:1rem;display:grid}.grants{margin:0;padding:0;list-style:none}.grant-row{border-top:1px solid var(--line);padding-block:1rem}.grant-row:hover{background:#f8fbf9}.grant-links{justify-items:start;gap:.5rem;min-width:0;display:grid}.grant-select{padding:.25rem .625rem}.grant-row-actions{flex-wrap:wrap;align-items:center;gap:.35rem .625rem;display:flex}.grant-source{color:var(--muted);font-size:.875rem}.grant-title{color:#16352d;overflow-wrap:anywhere;text-underline-offset:.2em;width:fit-content;font-weight:650;text-decoration-line:underline;text-decoration-color:#a9c6ba}.grant-title:hover{color:var(--accent);text-decoration-color:currentColor}.grant-meta{color:var(--muted);align-items:start;margin:0;font-size:.875rem}.grant-meta dd{font-variant-numeric:tabular-nums;margin:0}.grant-meta dt{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.grant-status{background:var(--surface-muted);color:#355a4c;border-radius:.3rem;max-width:100%;padding:.125rem .5rem;line-height:1.4;display:inline-block}.grant-status[data-open=true]{color:#1d5a42;background:#dcefe3}.catalog-message,.catalog-placeholder{padding:1.5rem 1.375rem}.catalog-message p{color:var(--muted);margin:.375rem 0 0}.catalog-placeholder{gap:1.5rem;display:grid}.catalog-placeholder span{background:var(--surface-muted);border-radius:.125rem;width:72%;height:.875rem}.catalog-placeholder span:nth-child(2){width:48%}.grant-details .page-header{margin-top:1.5rem}.grant-details h1{overflow-wrap:anywhere;max-width:42ch;font-size:1.875rem}.grant-details a{color:var(--accent);text-underline-offset:.2em}.analysis-panel{background:var(--surface);border:1px solid var(--line);border-radius:.875rem;padding:1.375rem}.fit-panel{margin-top:1.25rem}.fit-panel p{overflow-wrap:anywhere;max-width:68ch}.fit-panel .analysis-fact dt{overflow-wrap:anywhere}.analysis-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;display:flex}.analysis-heading h2{letter-spacing:-.02em;margin:0;font-size:1.25rem}.analysis-action:not(:disabled){background:var(--accent);border-color:var(--accent);color:var(--surface)}.analysis-action:hover:not(:disabled){background:#104f3d}.analysis-status{color:var(--muted);margin:.75rem 0}.analysis-meta{color:var(--muted);overflow-wrap:anywhere;margin:.75rem 0 1rem;font-size:.875rem}.analysis-facts{margin:0}.analysis-fact{border-top:1px solid var(--line);grid-template-columns:10rem minmax(0,1fr);gap:1rem;padding-block:.875rem;display:grid}.analysis-fact dt,.analysis-fact dd{margin:0}.analysis-fact dt{color:var(--muted);font-weight:650}.analysis-fact blockquote{max-width:68ch;color:var(--muted);overflow-wrap:anywhere;margin:.625rem 0 .375rem}.analysis-error{color:#84301d}.app-nav{flex-wrap:wrap;gap:.375rem;max-width:66rem;margin:1.25rem auto 0;padding:0 1.5rem;display:flex}.app-nav button{background:0 0;border-color:#0000;padding-inline:.75rem}.app-nav button[aria-current]{background:var(--surface-muted);border-color:var(--line);color:var(--accent)}.workspace-page{padding-top:2rem}.profile-page{max-width:54rem;margin-inline:max(0px,50% - 33rem)}.profile-block{background:var(--surface);border:1px solid var(--line);border-radius:.875rem;min-width:0;margin:0 0 1.5rem;padding:1.25rem}.profile-block legend,.match-empty h2{color:#16352d;padding-inline:.375rem;font-size:1.125rem;font-weight:700}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.875rem 1rem;display:grid}.form-field{align-content:start;gap:.375rem;min-width:0;font-size:.875rem;font-weight:650;display:grid}.form-field :is(input,select,textarea){background:var(--surface);color:#16352d;border:1px solid #a9c6ba;border-radius:.5rem;width:100%;min-width:0;min-height:2.625rem;padding:.5rem .625rem;font:400 1rem/1.45 system-ui,sans-serif}.form-field textarea{resize:vertical}.form-check{color:#174b3d;align-self:end;align-items:center;gap:.5rem;min-height:2.625rem;font-size:.875rem;display:flex}.form-check input{width:1rem;height:1rem;accent-color:var(--accent);flex:none}.form-wide{grid-column:1/-1}.field-hint,.profile-hint,.match-note{color:var(--muted);font-weight:400}.profile-hint{max-width:70ch;margin:0 0 1rem}.criteria-editors,.match-list,.match-checks{margin:0;padding:0;list-style:none}.criterion-editor{border-top:1px solid var(--line);padding-block:.75rem 1.125rem}.criterion-editor-top,.match-row-top,.match-check-top,.match-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.5rem 1rem;display:flex}.criterion-editor-top{margin-bottom:.625rem}.criterion-origin{color:var(--muted);font-size:.8125rem;font-weight:650}.quiet-button{white-space:normal;border-color:#0000;padding:.25rem .5rem}.profile-actions,.match-controls{flex-wrap:wrap;align-items:center;gap:.625rem;display:flex}.profile-actions [role=status]{color:var(--accent)}.primary-button:not(:disabled){background:var(--accent);color:var(--surface);border-color:var(--accent)}.primary-button:hover:not(:disabled){background:#104f3d}.form-alert,.match-empty,.match-list{background:var(--surface);border:1px solid var(--line);border-radius:.875rem;padding:1.125rem 1.375rem}.form-alert{color:#84301d;margin-bottom:1rem}.form-alert p{margin-top:0}.match-empty h2{margin:0;padding:0}.match-note{max-width:68ch;margin:.75rem 0 1.25rem}.match-list{padding-block:0}.match-row{padding-block:1rem}.match-row+.match-row{border-top:1px solid var(--line)}.match-row-top .grant-title{flex:28rem}.match-label{background:var(--surface-muted);color:#355a4c;border-radius:.3rem;flex:none;padding:.125rem .5rem;font-size:.875rem}.match-label[data-match-status=potential]{color:#1d5a42;background:#dcefe3}.match-label[data-match-status=review]{color:#6b4d23;background:#f4efe3}.match-row-actions{margin-top:.5rem}.match-explanation{margin-top:.75rem}.match-explanation summary{width:fit-content;color:var(--accent);cursor:pointer;font-weight:650}.match-checks,.match-applicants{margin-top:.75rem}.match-checks li{border-top:1px solid var(--line);overflow-wrap:anywhere;padding-block:.75rem}.match-check-top span{color:var(--muted);flex:none;font-size:.875rem}.match-check-top [data-check-status=unmet]{color:#84301d}.match-explanation p,.match-evidence blockquote{max-width:68ch;color:var(--muted);margin:.25rem 0}.match-evidence a{color:var(--accent);text-underline-offset:.2em}@media (width<=42rem){main{padding:2rem 1rem 3rem}h1{font-size:1.75rem}.app-nav{padding-inline:1rem}.app-nav button{padding-inline:.5rem}.form-grid{grid-template-columns:minmax(0,1fr)}.profile-block,.match-empty,.match-list{padding-inline:1rem}.catalog-head{display:none}.grant-row{grid-template-columns:1fr;gap:.875rem;padding-inline:1rem}.grant-row:first-child{border-top:0}.grant-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.grant-meta dt{clip-path:none;white-space:normal;width:auto;height:auto;margin-bottom:.25rem;font-size:.75rem;position:static;overflow:visible}.grant-details h1{font-size:1.5rem}.analysis-fact{grid-template-columns:1fr;gap:.375rem}}.publication-filters{flex-wrap:wrap;gap:.75rem 1rem;margin-bottom:1.25rem;display:flex}.publication-row{background:var(--surface);border-bottom:1px solid var(--line);overflow-wrap:anywhere;padding:1rem 1.25rem}.publication-row p{margin:.35rem 0}.publication-row a,.login-link{color:var(--accent);text-underline-offset:.2em}.publication-links{margin:.5rem 0 0;padding-left:1.25rem}.suggestion-samples{border:1px solid var(--line);border-radius:.5rem;max-height:16rem;margin:.75rem 0;padding:0 .5rem;list-style:none;overflow:auto}.suggestion-samples li{padding:.35rem 0}.suggestion-row{border-top:1px solid var(--line);margin-top:1rem;padding-top:.875rem}.suggestion-row h3{margin:0;font-size:1rem}.suggestion-row details{margin-bottom:.625rem}.logout-button{margin-left:auto}.session-error{max-width:64rem;margin:1rem auto;padding-inline:1rem}.feedback-trigger{z-index:5;background:var(--surface);position:fixed;bottom:1rem;right:1rem;box-shadow:0 .35rem 1rem #16352d20}.feedback-target{z-index:10;cursor:crosshair;background:0 0;border:0;width:100%;position:fixed;inset:0}.feedback-target:hover:not(:disabled){background:0 0}.feedback-instruction,.feedback-context{z-index:11;background:var(--surface);border:1px solid var(--line);border-radius:.75rem;flex-wrap:wrap;justify-content:center;align-items:center;gap:.5rem;width:max-content;max-width:calc(100vw - 2rem);padding:.5rem .75rem;display:flex;position:fixed;bottom:1rem;left:50%;transform:translate(-50%);box-shadow:0 .4rem 1.25rem #16352d24}.feedback-context{bottom:4.5rem}.feedback-marker{z-index:9;pointer-events:none;background:var(--accent);border:2px solid #fff;border-radius:50%;width:1rem;height:1rem;position:absolute;transform:translate(-50%,-50%);box-shadow:0 .15rem .4rem #16352d50}.feedback-marker.is-fixed{position:fixed}.feedback-dialog{width:min(34rem,100% - 2rem);max-height:calc(100dvh - 2rem);color:inherit;background:var(--surface);border:1px solid var(--line);border-radius:.875rem;padding:1.25rem;overflow:auto;box-shadow:0 .75rem 2.25rem #16352d32}.feedback-dialog::backdrop{background:#16352d50}.feedback-dialog .form-field{margin-bottom:.875rem}.feedback-dialog input[type=file]{max-width:100%}.feedback-images{flex-wrap:wrap;gap:.75rem;margin:.75rem 0;padding:0;list-style:none;display:flex}.feedback-images li{flex-direction:column;gap:.25rem;display:flex}.feedback-images img{object-fit:contain;background:var(--surface-muted);border-radius:.4rem;width:7rem;height:5rem;display:block}.feedback-description{white-space:pre-wrap}
