:root{--paper:#f7f8f5;--white:#fff;--ink:#263c36;--muted:#718078;--green:#24584b;--green-dark:#184136;--light-green:#e9f1e9;--line:#e1e7df;--sand:#f4efdf;--accent:#e1eab0;--sidebar:239px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;line-height:1.4}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #aab965;outline-offset:4px}input:focus,select:focus,textarea:focus{outline:2px solid #a7b99c;outline-offset:1px}a{color:inherit;text-decoration:none}p{line-height:1.65;margin:0 0 16px}h1,h2,h3,h4{font-weight:550;margin:0;letter-spacing:-.035em}h1{font-size:39px;line-height:1.2}h1 em{font-family:inherit;font-weight:400}h2{font-size:23px}h3{font-size:20px;line-height:1.35}h4{font-size:10px;letter-spacing:.09em;font-weight:650;color:var(--muted);margin-bottom:9px}small,.small{font-size:12px;line-height:1.6}.micro{font-size:9px;letter-spacing:.08em;line-height:1.7;color:var(--muted)}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:.12em;font-weight:650;color:#678076;line-height:1.7}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);border-right:1px solid var(--line);background:#fbfcf9;padding:36px 20px 24px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;font-size:26px;font-weight:650;letter-spacing:-1.2px;padding-left:9px;gap:10px}.brand-mark{width:36px;height:36px;flex:none;display:block;color:var(--green)}.domain{margin:9px 0 46px 53px;font-size:11px;color:var(--muted)}.domain span{font-size:8px;border:1px solid var(--line);border-radius:3px;padding:2px 3px;margin-left:5px}.nav-label{font-size:9px;letter-spacing:.13em;color:#85918a;margin:0 16px 14px}.nav-item{width:100%;display:flex;align-items:center;gap:13px;text-align:left;padding:13px 15px;border-radius:7px;margin-bottom:7px;font-size:12px;color:#65736c}.nav-item>span{font-size:21px;line-height:1;width:22px;text-align:center;font-weight:400}.nav-item:hover{background:#eef2eb}.nav-item.active{background:#e7eee2;color:#294b3c;font-weight:600}.nav-dot{margin-left:auto;width:5px;height:5px;border-radius:50%;background:#c2ccbc}.sidebar-note{margin-top:60px;padding:22px 16px;border-top:1px solid var(--line)}.small-spark{font-size:29px;color:#769477;display:block;margin-bottom:20px}.sidebar-note strong{font-family:inherit;font-weight:400;font-size:20px;line-height:1.4}.sidebar-note p{font-size:11px;color:#829084;margin-top:15px}.sidebar-bottom{margin-top:auto;font-size:9px;color:#6e8376;padding:20px 12px 0}.sidebar-bottom p{font-size:9px;color:#909b93;margin:14px 0 0}.live-dot{display:inline-block;width:5px;height:5px;background:#82a477;border-radius:50%;margin-right:4px}.workspace{margin-left:var(--sidebar)}.topbar{height:83px;border-bottom:1px solid var(--line);padding:0 42px;display:flex;align-items:center;justify-content:space-between;background:#fbfcf9;gap:20px}.breadcrumb{font-size:11px;color:#6f7f76}.breadcrumb span{padding:0 14px;color:#b4beb7}.demo-switch{display:flex;align-items:center;gap:12px}.demo-switch label{font-size:10px;color:#7c8980;white-space:nowrap}.demo-pill{font-size:8px;letter-spacing:.06em;background:#f0ecdf;border:1px solid #e7e0cc;border-radius:4px;padding:3px 5px;color:#8b7950;margin-right:5px}.demo-switch select{font-size:11px;border:0;background:transparent;max-width:190px;padding:7px}.avatar{width:49px;height:49px;background:#e8eee3;color:#55705b;border:1px solid #e0e7d9;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:none;font-size:16px;font-family:inherit}.avatar.mini{width:32px;height:32px;font-size:11px}.avatar.big{width:64px;height:64px;font-size:23px;margin-bottom:20px}.fiction-banner{display:flex;align-items:center;gap:8px;padding:10px 42px;background:#f1f3eb;color:#7a8169;font-size:10px;line-height:1.5;border-bottom:1px solid #e7ebdf}.fiction-banner>span{color:#859474}.fiction-banner button{margin-left:auto;white-space:nowrap;color:#557447;font-size:10px}main{max-width:1510px;padding:38px 42px 26px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 28px}.page-heading .eyebrow{margin-bottom:10px}.page-heading p{font-size:12px;color:var(--muted);margin:12px 0 0}.hero{border:1px solid #e1e6d8;border-radius:13px;background:#edf1e5;display:flex;min-height:278px;overflow:hidden;position:relative;padding:32px 35px;margin-bottom:34px}.hero-copy{z-index:1;flex:1}.hero-copy h2{font-family:inherit;font-size:30px;font-weight:400;line-height:1.22;letter-spacing:-.03em;margin:12px 0 15px}.hero-copy p{font-size:12px;color:#75836a;margin-bottom:23px}.primary,.secondary,.subtle,.danger{padding:11px 17px;border-radius:6px;font-size:12px;font-weight:550;display:inline-flex;align-items:center;justify-content:center;gap:10px}.primary{background:var(--green);color:white;border:1px solid var(--green)}.primary:hover{background:var(--green-dark)}.secondary{border:1px solid #d6ded3;background:#fff}.secondary:hover{background:#f0f4ec}.subtle{color:#78847c;background:#f3f5f0}.danger{border:1px solid #d8b2a8;background:#fff5f1;color:#984c3e}.wide{width:100%}.text-button{font-size:11px;color:#496c58;padding:8px 0;text-align:left}.text-button:hover{text-decoration:underline}.small-button{font-size:11px;padding:9px 13px}.orbit-art{width:380px;min-width:310px;position:relative;align-self:stretch;margin-right:0;color:#577350}.orbit{position:absolute;border:1px solid #cbd7bc;border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%)}.o1{width:210px;height:210px}.o2{width:280px;height:280px}.o3{width:350px;height:350px;border-style:dashed;opacity:.7}.orbit-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:157px;height:157px;border-radius:50%;border:1px solid #cad6bb;background:radial-gradient(circle at 25% 20%,#e5edce,#dbe6be);display:flex;flex-direction:column;align-items:center;justify-content:center;font:23px/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;text-align:center;box-shadow:0 8px 25px #87926912}.orbit-center em{font-weight:400}.orbit-tag{position:absolute;background:#fbfcf6e8;border:1px solid #dce3d1;border-radius:7px;padding:10px 13px;font-size:10px;box-shadow:0 3px 10px #6c88600a;z-index:2;white-space:nowrap}.ot1{top:5px;left:14px;transform:rotate(-6deg)}.ot2{right:-5px;top:92px;transform:rotate(5deg)}.ot3{left:28px;bottom:0;transform:rotate(-3deg)}.orbit-point{width:8px;height:8px;border-radius:50%;background:#94ac75;border:2px solid #eef2e5;position:absolute}.op1{top:45px;right:69px}.op2{bottom:35px;left:101px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:25px 0 20px}.section-title h2{font-size:21px}.section-title h2>span{display:inline-flex;background:#e9eee4;border-radius:5px;padding:3px 6px;font-size:10px;margin-left:8px;vertical-align:middle}.section-title p{margin:7px 0 0}.filters{display:flex;gap:11px;margin-bottom:21px}input,select,textarea{border:1px solid #dfe5da;background:#fff;border-radius:6px;padding:11px 12px;font-size:12px;min-width:0}select{padding-right:25px;cursor:pointer}.filters select{max-width:235px}.search{flex:1;display:flex;align-items:center;background:white;border:1px solid #dfe5da;border-radius:6px;padding-left:12px;gap:10px}.search>span{font-size:22px;color:#879486}.search input{border:0;width:100%;background:none;padding-left:0;font-size:11px}.search input:focus{outline:0}.search:focus-within{outline:2px solid #a7b99c}.grant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:21px}.grant-card{background:white;border:1px solid var(--line);border-radius:10px;padding:24px;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}.grant-card:hover{box-shadow:0 8px 25px #263c3609;transform:translateY(-2px)}.card-top{display:flex;align-items:center;gap:12px;margin-bottom:20px}.card-top .eyebrow{font-size:9px}.card-top .micro{font-size:8px;margin-top:4px}.area-icon{height:43px;width:43px;border-radius:10px;background:#eaf0e7;color:#698363;display:inline-flex;align-items:center;justify-content:center;font-size:24px;flex-shrink:0}.area-1{background:#f1ecd9;color:#a2945f}.area-2{background:#e7ebf0;color:#7b8d9c}.area-3{background:#f2e7e0;color:#b28b70}.area-4{background:#ece9f2;color:#9482a8}.open-label{margin-left:auto;font-size:9px;color:#6b8564}.open-label:before{content:'•';margin-right:5px}.grant-card h3{font-family:inherit;font-size:23px;font-weight:400;margin-bottom:12px}.scope{color:#7c877f;font-size:11px;line-height:1.8;margin-bottom:17px;min-height:59px}.tag-row{display:flex;flex-wrap:wrap;gap:6px}.tag{display:inline-flex;background:#f0f3ed;border:1px solid #e9ede4;color:#6d7c66;border-radius:4px;padding:4px 7px;font-size:9px;line-height:1.35}.tag.green{background:#e7f0e7;color:#466e4e;border-color:#dce8dc}.tag.sand{background:#f4efdF;color:#978659;border-color:#eae2cd}.grant-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:9px;font-size:10px;color:#8c9287;margin:22px 0 0;padding-bottom:19px;border-bottom:1px solid #ecf0e7}.fit-row{display:flex;gap:10px;margin:17px 0 13px}.fit-icon{font-size:19px;color:#789964}.fit-row strong{font-size:10px;font-weight:500;color:#617856;display:block}.fit-row small{font-size:9px;color:#97a18e;margin-top:4px;display:block}.eligibility-row{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#7e8b7f;margin:0 0 19px}.status{display:inline-flex;font-size:9px;border-radius:4px;padding:4px 7px;white-space:nowrap;gap:3px;text-transform:capitalize}.status.good{background:#edf3e8;color:#68805b}.status.bad{background:#f7eeea;color:#9c7265}.status.unknown{background:#f7f3e5;color:#98824e}.card-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;padding-top:17px;border-top:1px solid #ecf0e7}.principle{display:flex;align-items:center;gap:17px;padding:29px 5px 10px;color:#85907f}.principle>span{font-size:28px;color:#90a080}.principle p{font-size:11px;margin:0;line-height:1.8}.principle strong{font-weight:500;color:#6c7e64}footer{max-width:1510px;margin:0 auto;padding:20px 42px 28px;border-top:1px solid var(--line);display:flex;gap:20px;font-size:10px;color:#83917f}footer>span:last-child{margin-left:auto;font-size:9px;color:#a1aa99}.context-bar{display:flex;align-items:center;gap:17px;border:1px solid #dce4d5;background:#edf2e8;border-radius:10px;padding:20px 23px;margin:0 0 28px}.context-bar>div{flex:1;min-width:0}.context-bar select{display:block;background:transparent;border:0;font-size:18px;font-family:inherit;padding:5px 25px 5px 0;max-width:100%}.context-bar label{font-size:8px}.context-bar .text-button{white-space:nowrap}.people-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.person-card{border:1px solid var(--line);border-radius:10px;background:#fff;padding:25px;align-self:start}.person-heading{display:flex;align-items:center;gap:12px}.person-heading h3{font-size:22px;font-family:inherit;margin:2px 0}.person-heading p{font-size:11px;color:#879081;margin:0}.score{margin-left:auto;font-size:27px;letter-spacing:-1px;color:#688158;align-self:flex-start}.score small{display:block;font-size:9px;letter-spacing:0;text-align:right}.affiliation{font-size:10px;color:#91a08e;margin:15px 0 12px}.person-status{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:18px}.person-status .micro{margin-left:auto;font-size:7px}.reason-box{background:#f0f4eb;border:1px solid #e4ebdc;border-radius:7px;padding:14px;display:flex;gap:10px;margin-bottom:20px}.reason-box>span{font-size:19px;color:#7d9463}.reason-box p{font-size:11px;line-height:1.7;margin:0;color:#6e8063}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:18px}.two-cols.compact{gap:20px;margin-top:22px}.compact p{font-size:11px;color:#7b8b74;margin-bottom:16px}.eligibility{border-top:1px solid var(--line);padding:10px 0}.eligibility summary{font-size:10px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:10px}.eligibility summary:before{content:'›';color:#8c9b83}.eligibility summary .status{margin-left:auto}.eligibility[open] summary:before{transform:rotate(90deg)}.eligibility>div{font-size:11px;padding:12px 5px}.eligibility p{font-size:11px}.eligibility small{font-size:10px;color:#8c9786}.eligibility strong{font-weight:500}.score-detail,.starter{border-top:1px solid var(--line);padding:13px 0;color:#74846a}.score-detail summary,.starter summary{font-size:10px;cursor:pointer}.score-detail summary span{float:right;font-size:9px;color:#96a08e}.component{padding:13px 0;border-bottom:1px solid #edf1e7}.component strong{display:block;font-size:11px;text-transform:capitalize}.component strong span{float:right}.component p{font-size:10px;margin:8px 0}.component small{font-size:9px}.starter>p{font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;margin:15px 0}.reaction-actions{display:flex;gap:8px;padding-top:11px}.reaction-actions .primary{flex:1}.reaction-actions button{font-size:11px;padding:10px 12px}.reaction-actions [aria-pressed=true]{box-shadow:0 0 0 2px #91a87d}.private-note{text-align:center;font-size:9px;color:#8b9784;margin-top:10px}.private-note button{font-size:9px;margin-left:6px;padding:0}.form-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:27px;margin-bottom:23px}.panel p{color:#7e8c77;font-size:12px;margin-top:12px}.panel h2{font-size:22px}.panel-heading{display:flex;gap:14px;margin-bottom:25px}.panel-heading p{font-size:11px;margin:8px 0 0}.step{font-size:11px;border:1px solid #dce5d4;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;color:#8a9b7e;flex:none}.field{display:flex;flex-direction:column;gap:9px;font-size:11px;font-weight:550;color:#617258;margin-bottom:19px}.field input,.field select,.field textarea{width:100%;font-weight:400;color:#50624a;background:#fcfdf9}.field small{font-size:9px;font-weight:400;color:#98a28f;line-height:1.5}.field textarea{resize:vertical;line-height:1.6;min-height:80px}.profile-aside{position:sticky;top:24px}.profile-aside h3{font-family:inherit;font-weight:400;font-size:22px}.profile-aside p{font-size:11px}.profile-aside .micro{font-size:8px}.profile-aside .soft{background:#eff3e9}.toggle-label{display:flex;gap:9px;align-items:center;font-size:12px;margin-top:20px}.toggle-label input{width:17px;height:17px;accent-color:var(--green)}hr{border:0;border-top:1px solid var(--line);margin:24px 0}.empty{grid-column:1/-1;background:#fff;border:1px dashed #d7e0cf;border-radius:10px;text-align:center;padding:65px 25px;min-width:0}.empty>span{font-size:43px;color:#9aaf87;display:block;margin-bottom:18px}.empty h3{font-family:inherit;font-weight:400;font-size:24px}.empty p{font-size:12px;color:#8b997f;max-width:530px;margin:15px auto 0}.conversation-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:22px;align-items:start}.conversation-item{display:block;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:8px;padding:20px;margin-bottom:12px}.conversation-item.selected{border-color:#9bb18a;background:#eef3e7}.conversation-item strong{display:block;margin:8px 0;font-size:14px}.conversation-item p{font-size:11px;margin-bottom:10px;color:#7f8f74}.conversation-item small{font-size:9px;color:#95a389}.chat-pane{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.chat-header{padding:24px;border-bottom:1px solid var(--line)}.chat-header h2{margin:10px 0;font-family:inherit;font-weight:400}.chat-header p{font-size:12px;color:#87937b;margin:0}.chat-context{margin:18px 22px;padding:15px 17px;background:#f1f4ec;border-radius:6px;font-size:11px}.chat-context summary{cursor:pointer;color:#698356;font-weight:550}.chat-context p{font-size:11px;margin:13px 0;color:#7b8c6c}.chat-context small{display:block;font-size:9px;color:#8b987d;margin-top:12px}.messages{padding:12px 22px;min-height:220px;max-height:430px;overflow-y:auto;display:flex;flex-direction:column;gap:14px}.message{max-width:90%;align-self:flex-start;background:#f3f5ef;border-radius:8px 8px 8px 0;padding:12px 15px;overflow-wrap:anywhere}.message.mine{align-self:flex-end;background:#e8f0e1;border-radius:8px 8px 0 8px}.message-meta{font-size:9px;color:#728665;font-weight:600}.message-meta span{font-weight:400;font-size:8px;color:#9baa91;margin-left:10px}.message p{font-size:12px;white-space:pre-wrap;margin:7px 0 0}.chat-welcome{padding:32px 20px;text-align:center;color:#849978}.chat-welcome>span{font-size:32px}.chat-welcome h3{font:23px -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;margin:17px 0}.chat-welcome p{font-size:11px}.composer{border-top:1px solid var(--line);padding:16px 22px;display:flex;align-items:flex-end;gap:10px}.composer textarea{flex:1;resize:vertical;line-height:1.5}.group-controls{border-top:1px solid var(--line);padding:20px 22px;font-size:11px}.group-controls summary{cursor:pointer}.group-controls summary span{float:right;font-size:9px;color:#95a087}.group-controls p{margin:15px 0;color:#88977b}.group-controls form{display:flex;gap:10px}.group-controls select{flex:1;max-width:100%}.invite-row{display:flex;align-items:center;gap:15px;border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.invite-row>div{flex:1}.invite-row p{margin:5px 0;font-size:11px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:23px}.metrics>div{background:#eef3e7;border:1px solid #e1e8d7;border-radius:8px;padding:22px}.metrics span{display:block;font-size:9px;letter-spacing:.07em;color:#8d9d7d}.metrics strong{display:block;font-size:22px;line-height:1.4;margin:11px 0 7px;font-weight:500}.metrics small{font-size:9px;color:#98a68c;overflow-wrap:anywhere}.admin-grant{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:18px 0}.admin-grant:last-child{padding-bottom:0}.admin-grant strong{font-size:13px;font-weight:500}.admin-grant small{display:block;font-size:10px;margin-top:6px;color:#92a082}.weight-fields{display:grid;grid-template-columns:repeat(5,1fr);gap:15px;margin-top:25px}.weight-fields label{text-transform:capitalize}.form-footer{display:flex;align-items:center;gap:22px;margin-top:22px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;margin-top:20px;font-size:11px}th{font-weight:500;font-size:10px;color:#8fa17e;background:#f4f7ef}th,td{padding:13px 12px;border-bottom:1px solid var(--line)}td small{display:block;font-size:9px;color:#8d9b82}.danger-zone{background:#fcf9f3}.danger-zone h2{color:#8f7766}.guide{background:#fdfbf2;border:1px solid #e4dec9;border-radius:9px;padding:23px;margin-bottom:30px}.guide h3{font-family:inherit;margin-top:5px}.guide ol{list-style:none;display:flex;flex-wrap:wrap;gap:14px;padding:0;margin:20px 0}.guide li{font-size:11px;flex:1;min-width:125px;line-height:1.7;color:#898469}.guide button{font-size:11px;padding:0;text-align:left;text-decoration:underline}.guide small{color:#aaa086;font-size:10px}.modal{width:700px;max-width:calc(100% - 30px);max-height:90vh;padding:36px;border:1px solid #d6e0cb;border-radius:13px;background:#fcfdf9;color:var(--ink);box-shadow:0 24px 80px #18342626;overflow-y:auto}.modal::backdrop{background:#24382ccc;backdrop-filter:blur(3px)}.modal h2{font:32px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;margin:12px 25px 18px 0}.modal h3{font-size:16px;margin:25px 0 12px}.modal p{font-size:12px;color:#7a8b6c}.modal li{font-size:12px;line-height:1.8;color:#7c8c6f}.modal .eyebrow{font-size:9px}.close-modal{position:absolute;right:18px;top:15px;font-size:26px;color:#809372;width:35px;height:35px}.info-strip{padding:15px;background:#edf2e5;border-radius:6px;font-size:11px;display:flex;justify-content:space-between;gap:10px}.notice{padding:13px 15px;background:#f5f0df;border:1px solid #e9e0c5;border-radius:6px;color:#93865e!important;font-size:11px!important;margin:15px 0}.requirement-row{padding:20px 18px;background:#f0f4e9;border:1px solid #e1e8d7;border-radius:7px;margin-bottom:15px}.requirement-row .field{margin-bottom:0}.match-celebration{color:#a3b878;font-size:65px;margin-bottom:20px}.sr-only{position:absolute;clip:rect(0,0,0,0);height:1px;width:1px;overflow:hidden}.loading{text-align:center;margin:15vh auto;padding:20px}.loading h1{font-size:30px}#toast{position:fixed;bottom:28px;left:calc(50% + 100px);transform:translateX(-50%) translateY(20px);background:#284d3f;color:#fff;padding:15px 22px;border-radius:8px;max-width:min(600px,90vw);font-size:12px;line-height:1.6;box-shadow:0 10px 30px #284d3f33;z-index:100;opacity:0;pointer-events:none;transition:all .2s}#toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}
@media(min-width:1550px){.grant-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.orbit-art{margin-right:70px}.hero-copy{padding-left:10px}}@media(max-width:1200px){:root{--sidebar:205px}.sidebar{padding-left:12px;padding-right:12px}.topbar{padding:0 28px}.fiction-banner{padding-left:28px;padding-right:28px}main{padding:32px 28px}.hero{padding:28px}.orbit-art{width:310px;min-width:260px}.hero-copy h2{font-size:27px}.ot2{right:-20px}.filters{flex-wrap:wrap}.search{min-width:260px}.filters select{flex:1;max-width:none}.form-layout{grid-template-columns:minmax(0,1fr) 230px}.two-cols{gap:13px}.panel{padding:23px}.conversation-layout{grid-template-columns:220px minmax(0,1fr)}.metrics{grid-template-columns:repeat(2,1fr)}.person-card,.grant-card{padding:21px}.person-heading h3{font-size:20px}.person-status .micro{display:none}}@media(max-width:960px){:root{--sidebar:180px}.brand{font-size:23px;padding-left:3px;gap:6px}.brand-dot{margin-left:-5px}.domain{margin-left:40px}.nav-item{font-size:11px;padding:12px 10px;gap:9px}.sidebar-note{padding:20px 10px}.sidebar-note strong{font-size:18px}.breadcrumb{display:none}.topbar{justify-content:flex-end;height:70px}.fiction-banner{font-size:9px;flex-wrap:wrap}.hero{min-height:270px}.orbit-art{min-width:200px;width:230px;transform:scale(.85);transform-origin:center}.orbit-tag{font-size:9px}.ot1{left:-30px}.ot2{right:-45px}.ot3{left:-15px}.hero-copy h2{font-size:24px}.hero-copy p{font-size:11px}.grant-grid,.people-grid{grid-template-columns:1fr}.form-layout{grid-template-columns:1fr}.profile-aside{position:static;display:grid;grid-template-columns:1fr 1fr;gap:20px}.profile-aside .panel{margin-bottom:0}.conversation-layout{grid-template-columns:1fr}.conversation-list{display:flex;overflow-x:auto;gap:12px}.conversation-item{min-width:230px;width:230px}.weight-fields{grid-template-columns:repeat(3,1fr)}h1{font-size:33px}.section-title .muted{font-size:10px}footer>span:last-child{display:none}.chat-pane{min-width:0}.context-bar{padding:18px}.context-bar select{font-size:16px}}@media(max-width:680px){:root{--sidebar:0px}.sidebar{position:relative;inset:auto;width:100%;height:auto;padding:19px 17px 0;border-right:0;border-bottom:1px solid var(--line);display:block}.brand{font-size:25px;width:max-content}.brand-mark{font-size:29px;height:30px}.domain{position:absolute;right:19px;top:21px;margin:0;font-size:10px}.sidebar nav{display:flex;overflow-x:auto;gap:4px;margin:19px -8px 0;padding:0 8px 8px}.nav-item{display:flex;flex-direction:column;gap:6px;min-width:70px;text-align:center;font-size:9px;padding:10px 6px;margin:0;border-radius:6px;flex:1;white-space:nowrap}.nav-item>span{font-size:18px}.nav-label,.sidebar-note,.sidebar-bottom,.nav-dot{display:none}.topbar{height:59px;padding:0 19px}.demo-switch{width:100%;gap:8px;justify-content:space-between}.demo-switch select{font-size:11px;max-width:180px}.demo-switch label{font-size:9px}.fiction-banner{padding:10px 19px;align-items:flex-start;font-size:9px;gap:6px}.fiction-banner button{font-size:9px;padding:2px 0}.fiction-banner>span{display:none}main{padding:28px 19px 22px}.page-heading{margin-bottom:24px}.page-heading .eyebrow{font-size:8px;margin-bottom:10px}h1{font-size:31px;line-height:1.2}.page-heading p{font-size:11px;line-height:1.8}.hero{padding:25px;min-height:0;display:block}.hero-copy h2{font-size:29px}.hero-copy p{font-size:11px}.hero-copy .eyebrow{font-size:8px}.orbit-art{display:none}.hero-copy .primary{padding:10px 13px;font-size:11px}.section-title{align-items:flex-start;gap:10px}.section-title h2{font-size:20px}.section-title>.muted{max-width:120px;text-align:right;font-size:9px}.filters{gap:9px}.search{min-width:100%;height:43px}.filters select{width:calc(50% - 5px);font-size:10px;padding:11px 8px}.grant-card{padding:22px}.grant-card h3{font-size:24px}.scope{min-height:auto;font-size:11px}.grant-meta{font-size:9px}.grant-grid,.people-grid{gap:17px}.person-card{padding:21px}.person-heading h3{font-size:23px}.reaction-actions .primary{flex:1}.context-bar{flex-wrap:wrap;gap:11px}.context-bar>.text-button{margin-left:53px;padding:0}.context-bar .area-icon{width:36px;height:36px}.context-bar select{font-size:15px;width:100%}.context-bar label{font-size:7px}.section-title select{max-width:165px;font-size:10px;padding:8px}.two-cols{grid-template-columns:1fr}.two-cols.compact{grid-template-columns:1fr 1fr}.profile-aside{display:block}.profile-aside .panel{margin-bottom:20px}.panel{padding:22px}.panel h2{font-size:20px}.field{font-size:11px}.field input,.field select,.field textarea{font-size:13px}.panel-heading{gap:11px}.step{width:26px;height:26px}.metrics{gap:10px}.metrics>div{padding:16px}.metrics strong{font-size:20px}.metrics span{font-size:8px}.admin-grant strong{font-size:12px}.admin-grant small{font-size:9px}.admin-grant button{padding:8px 11px;font-size:10px;white-space:nowrap}.weight-fields{grid-template-columns:1fr 1fr;gap:12px}.form-footer{gap:16px;align-items:flex-start}.panel .section-title{flex-wrap:wrap}.chat-header{padding:21px}.chat-context{margin:16px}.messages{padding:12px 16px}.composer{padding:15px;gap:8px}.composer textarea{font-size:12px;min-width:0}.composer button{padding:11px 12px;font-size:11px}.group-controls{padding:18px}.group-controls summary span{float:none;display:block;margin-top:6px}.group-controls form{flex-wrap:wrap}.invite-row{flex-wrap:wrap;gap:10px}.invite-row>div{min-width:100%}.invite-row button{font-size:11px}.modal{padding:29px 23px;max-height:90vh}.modal h2{font-size:28px}.modal .two-cols{grid-template-columns:1fr}.info-strip{flex-wrap:wrap}.guide{padding:20px}.guide li{min-width:40%}.guide .eyebrow{font-size:8px}.guide h3{font-size:21px}.guide small{font-size:9px}footer{padding:20px;font-size:9px;gap:15px}.principle{align-items:flex-start;padding:25px 2px 3px}.principle p{font-size:10px}#toast{left:50%;bottom:20px;width:90vw;font-size:11px}.empty{padding:45px 22px}.empty h3{font-size:24px}.empty p{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Keep substantive text readable on both desktop and compact screens. */
.scope,.reason-box p,.compact p,.fit-row strong{font-size:12px;color:#64735e}.tag{font-size:10px}.grant-meta,.eligibility-row{font-size:11px}.micro{color:#6e7d67}.person-heading p,.affiliation{color:#697c61}.field small{color:#758568}.eligibility small{color:#74836b}.chat-context p{font-size:12px;color:#687b5d}.chat-context small,.message-meta span{color:#718462}.message p{font-size:13px}.profile-aside p{font-size:12px}.open-label{color:#5c7653}
.import-banner{display:flex;gap:24px;justify-content:space-between;align-items:center;background:#edf2e7;border:1px solid #dbe4d3;border-radius:12px;padding:27px 30px;margin-bottom:26px}.import-banner h2{font-family:inherit;font-weight:400;font-size:27px;margin:8px 0 12px}.import-banner p{max-width:600px;font-size:13px;color:#687c5d;margin:0}.import-buttons{display:flex;flex-direction:column;gap:10px;flex:none}.import-source{border:1px solid var(--line);border-radius:8px;padding:18px 20px;background:#f5f7f0;margin:18px 0}.import-source h3{margin:0 0 15px}.file-picker{display:flex;flex-direction:column;gap:10px;font-size:12px;color:#637956}.file-picker input{max-width:100%;background:#fff}.file-picker small{font-size:11px}.import-source .field{margin:15px 0 0}.import-suggestion{border:1px solid var(--line);border-radius:8px;padding:15px 18px;margin:12px 0;background:#fff}.import-suggestion .toggle-label{margin:0 0 12px}.import-suggestion>input{width:100%;font-size:13px}.import-suggestion details{margin-top:12px;font-size:11px;color:#728466}.import-suggestion summary,.publication-preview summary{cursor:pointer}.import-suggestion blockquote{border-left:2px solid #cfdbbf;padding-left:12px;margin:15px 0;overflow-wrap:anywhere;font-size:12px;white-space:pre-wrap}.import-suggestion p{font-size:11px}.publication-preview{padding:17px;border:1px solid var(--line);border-radius:8px;margin:17px 0;font-size:12px}.publication-preview p{margin:15px 0;overflow-wrap:anywhere}#import-save-note:not(:empty){background:#edf3e5;padding:15px;border-radius:6px}#import-review .notice{line-height:1.7}
@media(max-width:680px){.import-banner{display:block;padding:23px}.import-banner h2{font-size:26px}.import-buttons{margin-top:20px}.import-source{padding:17px 14px}.import-suggestion{padding:16px 13px}.import-suggestion .toggle-label{align-items:flex-start}.import-banner p{font-size:12px}}
.participation-summary{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px 28px;border:1px solid #dbe5d3;border-radius:10px;background:#edf3e6;margin-bottom:25px}.participation-summary h2{font:25px -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;margin:9px 0}.participation-summary p{font-size:12px;color:#6b7e5e;margin:0}.participation-summary button{flex:none}.directory-group{margin:28px 0 35px}.directory-group .section-title h2{font-size:21px}.directory-group .section-title p{max-width:720px}.group-empty{grid-column:1/-1;margin:0;border:1px dashed #d6dfcf;padding:18px 22px;border-radius:8px;font-size:12px;color:#7d8e70}.grant-intent-detail{margin:20px 0;font-size:11px;border-top:1px solid var(--line);padding-top:15px}.grant-intent-detail summary{cursor:pointer;color:#526e44}.grant-intent-detail p{font-size:12px;margin:13px 0;overflow-wrap:anywhere}.grant-intent-detail small{color:#7d8d71}.grant-invite-action{margin:10px 0 18px}.role-choices{margin:20px 0;border:1px solid #dce5d4;border-radius:8px;padding:16px}.role-choices legend{font-size:12px;font-weight:550;padding:0 8px}.role-choices>label{display:flex;align-items:flex-start;gap:10px;padding:14px 0;border-bottom:1px solid #e5ebde}.role-choices>label:last-child{border:0}.role-choices input{margin:4px 0;accent-color:var(--green)}.role-choices label>span:not(.status){flex:1;min-width:0}.role-choices strong{display:block;font-size:12px}.role-choices small{display:block;font-size:11px;color:#7c8b71;line-height:1.6;margin-top:6px}.role-choices .status{flex:none}.grant-inbox blockquote{font-size:12px;line-height:1.7;border-left:2px solid #b7c8a6;padding-left:12px;margin:12px 0;overflow-wrap:anywhere}.grant-inbox .invite-row{flex-wrap:wrap}.grant-inbox .invite-row>div{flex-basis:100%}.person-status .tag{max-width:100%;white-space:normal}.participation-summary .notice{margin-top:15px}
@media(max-width:680px){.participation-summary{display:block;padding:22px}.participation-summary button{margin-top:20px;width:100%}.role-choices{padding:12px}.role-choices label{flex-wrap:wrap}.role-choices .status{margin-left:24px}.role-choices label>span:not(.status){flex-basis:80%}.directory-group .section-title h2{font-size:20px}}

/* Source-backed grant catalogue */
.open-label {max-width:145px;white-space:normal;text-align:right;line-height:1.4}
.open-label.closed {color:#a24335;background:#fff0ea}.open-label.today {color:#875a10;background:#fff7df}
.source-review {margin:20px 0;padding:16px;background:#f3f6f3;border-radius:12px;overflow-wrap:anywhere}
.source-review summary {cursor:pointer;font-weight:650}.source-review li {margin:16px 0}.source-review small {font-size:10px}
.filters {flex-wrap:wrap}.filters select {max-width:100%}

.selected-work-editor {border:1px solid var(--border,#dfe6df);border-radius:12px;padding:20px;margin:18px 0;min-width:0}.selected-work-editor legend {padding:0 8px;font-weight:600}.selected-works-display {margin:16px 0;overflow-wrap:anywhere}.selected-works-display summary {cursor:pointer}.selected-works-display section {border-top:1px solid #dfe6df;margin-top:12px}.selected-works-display p {white-space:pre-wrap}

.classification-filters{margin:16px 0 24px;padding:16px;border:1px solid #dfe6df;border-radius:12px}.classification-filters summary{cursor:pointer}.classification-filters .two-cols{margin-top:16px}.publication-record{border-top:1px solid #dfe6df;padding:16px 0;overflow-wrap:anywhere}dt{font-weight:600;margin-top:10px}dd{margin:2px 0 12px}fieldset{min-width:0}

.draft-profile-card {padding:22px 0;border-top:1px solid #dfe6df;overflow-wrap:anywhere}.draft-profile-card .card-actions {margin-top:16px}.draft-profile-card h3 {margin:12px 0}.draft-profile-card .tag-row {margin:12px 0}

.auth-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fbfcf8}.auth-story{padding:48px 8%;background:#edf2e7;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}.auth-story-copy h1{font:clamp(36px,4vw,64px)/1.15 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;letter-spacing:-1.5px;color:#294f41;margin:28px 0}.auth-story-copy h1 em{font-weight:400;color:#678266}.auth-story-copy>p{font-size:17px;line-height:1.9;color:#65775e}.auth-themes{display:flex;flex-wrap:wrap;gap:12px;margin-top:38px}.auth-themes span{border:1px solid #cedac6;padding:11px 14px;border-radius:24px;font-size:12px;color:#516c49}.auth-story>small{font-size:11px;color:#74856b}.auth-entry{display:flex;align-items:center;justify-content:center;padding:60px 40px}.auth-card{width:100%;max-width:410px}.auth-card h2{font:36px -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#294f41;margin:16px 0}.auth-card>p{font-size:14px;color:#6c7c65;line-height:1.65}.auth-card .field{margin:20px 0;font-size:13px}.auth-card .field input{width:100%;font-size:15px;padding:14px;background:white}.auth-card .primary{padding:16px;margin-top:6px;font-size:14px}.google-button{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;background:white;border:1px solid #cad5c4;border-radius:8px;padding:14px;font-size:14px;color:#32473b;margin-top:28px}.google-button span{font:bold 20px Arial;color:#4285f4}.google-button[aria-disabled=true]{color:#74836b;background:#f5f7f2}.auth-divider{display:flex;align-items:center;gap:16px;margin:24px 0;color:#7b8872;font-size:11px}.auth-divider:before,.auth-divider:after{content:'';height:1px;flex:1;background:#dde4d7}.auth-switch{text-align:center}.auth-card .auth-note{font-size:11px;line-height:1.65}.auth-demo{margin-top:30px;padding-top:25px;border-top:1px solid #dde4d7}.auth-demo p{font-size:12px;line-height:1.65;color:#728369}.demo-switch{overflow-wrap:anywhere}.demo-switch>span{max-width:240px}
@media(max-width:760px){.auth-shell{grid-template-columns:1fr}.auth-story{min-height:auto;padding:25px}.auth-story-copy{margin:24px 0 8px}.auth-story-copy h1{font-size:36px;margin:16px 0}.auth-story-copy>p{font-size:14px}.auth-themes{margin-top:18px;gap:7px}.auth-themes span{font-size:10px;padding:8px}.auth-story>small{margin-top:24px}.auth-entry{padding:35px 24px}.auth-card h2{font-size:31px}.demo-switch>span{max-width:155px;font-size:10px}}

/* Claim consent uses compact checkboxes, not full-width text-field styling. */
.claim-dialog{display:flex;flex-direction:column;gap:20px;min-width:0}
.modal .claim-dialog h2{font-size:30px;margin:0 24px 0 0;line-height:1.2}
.claim-dialog>.eyebrow{margin-bottom:-10px}
.claim-profile{padding:20px;border:1px solid var(--line);border-radius:10px;background:#f3f6ef}
.claim-profile h3{font-size:21px;margin-bottom:6px}
.modal .claim-profile p{font-size:13px;line-height:1.65;margin:0 0 16px;color:#586b57;overflow-wrap:anywhere}
.modal .claim-profile .claim-affiliation{font-size:12px;color:var(--muted);margin-bottom:16px}
.claim-topics{margin-top:18px}.claim-topics .tag-row{margin:0;gap:6px}
.claim-contributions{margin-top:18px}.modal .claim-contributions p{margin-bottom:0}
.modal .claim-note{margin:0;font-size:12px;line-height:1.65;color:#65735f}
.claim-choices{display:flex;flex-direction:column;gap:12px}
.claim-choice{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:12px;padding:16px;border:1px solid var(--line);border-radius:8px;cursor:pointer;background:white}
.claim-choice input[type=checkbox]{appearance:auto;width:18px;height:18px;min-width:18px;margin:2px 0 0;padding:0;accent-color:var(--green);cursor:pointer}
.claim-choice>span{display:flex;flex-direction:column;gap:5px;min-width:0}
.claim-choice strong{font-size:13px;line-height:1.5;font-weight:600}
.claim-choice strong small{font-size:10px;font-weight:400;color:var(--muted);margin-left:6px}
.claim-choice>span>span{font-size:12px;line-height:1.6;color:#667561}
.claim-choice:focus-within{outline:2px solid #a7b99c;outline-offset:2px}
.claim-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.claim-actions button{min-height:44px}
@media(max-width:600px){.modal .claim-dialog h2{font-size:26px}.claim-profile{padding:16px}.claim-choice{padding:14px;gap:10px}.claim-actions{flex-direction:column}.claim-actions button{width:100%}}

.evidence-panel{border:1px solid var(--line);border-radius:8px;padding:12px;margin:14px 0;background:var(--paper)}.evidence-panel summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;font-size:12px}.evidence-panel p{font-size:12px;margin:12px 0}.evidence-panel .tag{text-transform:capitalize}.score.exploratory{font-size:15px;max-width:100px}.score small{white-space:normal}.score.exploratory small{font-size:10px;line-height:1.4}

.match-summary{margin-left:auto;flex:0 0 116px;display:flex;flex-direction:column;align-items:flex-end;gap:5px;text-align:right}.match-summary .score{margin:0}.match-scope{font-size:10px;font-weight:600;color:var(--green);line-height:1.4}.evidence-rating{display:flex;flex-direction:column;gap:3px;font-size:10px;line-height:1.4;color:var(--muted)}.evidence-rating strong{font-size:11px;font-weight:550;text-transform:capitalize;color:var(--ink)}.person-heading>div:not(.match-summary){min-width:0}.person-heading .match-summary{align-self:flex-start}.hero-copy{min-width:0}.hero-copy p{max-width:470px}@media(max-width:600px){.match-summary{flex-basis:94px}.person-heading{flex-wrap:wrap}.person-heading>div:not(.match-summary){flex:1}.person-heading .match-summary{flex:0 0 94px}.match-scope{font-size:9px}}
.match-summary .score{align-self:flex-end;text-align:right}

.profile-choices{border:1px solid var(--line);border-radius:8px;padding:12px;min-width:0}.profile-choices legend{font-size:12px;font-weight:600}.profile-choices>div{display:flex;flex-wrap:wrap;gap:10px}.profile-choices label{display:flex;align-items:center;gap:7px;font-size:12px}.profile-choices input[type=checkbox]{width:16px;height:16px;margin:0}.profile-choices small{display:block;margin-top:10px;color:var(--muted)}img.avatar{object-fit:cover}.profile-aside input[type=file]{max-width:100%;font-size:11px}

.field-origin{display:flex;align-items:center;gap:8px;font-size:10px;line-height:1.5;font-weight:400;letter-spacing:0;color:var(--muted);margin-top:6px}.field-origin.source{color:#806634}.field-origin.user,.field-origin.reviewed{color:var(--green)}.field-origin .text-button{font-size:10px;padding:1px 4px}.profile-choices legend .field-origin{margin-bottom:6px}

.official-grant-link{display:inline-block;color:var(--green,#24584b);font-size:13px;margin-top:12px;text-decoration:underline;text-underline-offset:3px}.grant-resources{margin:24px 0;padding:20px;background:#f1f4ee;border-radius:12px}.grant-resources h3{margin-top:0}.grant-resources .official-grant-link{margin-top:0}.grant-file-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.grant-file{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border:1px solid #dce4d7;border-radius:8px;background:white;color:#24584b;text-decoration:none}.grant-file span{min-width:0;overflow-wrap:anywhere}.grant-file small{white-space:nowrap}.grant-file:hover{border-color:#24584b}.grant-file:focus-visible{outline:2px solid #24584b;outline-offset:3px}@media(max-width:600px){.grant-file-list{grid-template-columns:1fr}.grant-resources{padding:16px}}

.grant-back{margin-bottom:24px}.grant-page-hero{padding:30px 34px;background:#eaf0e5;border:1px solid var(--line);border-radius:14px;margin-bottom:28px}.grant-page-hero h1{max-width:850px;margin:12px 0 18px}.grant-intro{max-width:760px;font-size:16px}.grant-page-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:26px;align-items:start}.grant-page-main,.grant-page-aside{min-width:0}.grant-page-main .panel{margin-bottom:24px}.grant-page-main h2{margin-bottom:18px}.grant-page-main h3{margin:24px 0 12px;font-size:17px}.grant-page-main li{line-height:1.7;margin-bottom:9px}.grant-page-main small,.grant-page-aside small{overflow-wrap:anywhere}.grant-page-aside .grant-resources{margin-top:22px}.grant-page-aside .grant-file-list{grid-template-columns:1fr}.grant-apply h3{margin:22px 0 16px}.grant-page-actions{display:flex;flex-direction:column;gap:12px;margin-top:24px}.grant-page .source-review{margin-bottom:24px}.grant-page-hero .small{margin-top:12px}@media(max-width:1050px){.grant-page-layout{grid-template-columns:1fr}.grant-page-aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}.grant-page-aside .grant-resources{margin-top:0}}@media(max-width:650px){.grant-page-hero{padding:24px 20px}.grant-page-hero h1{font-size:29px}.grant-page-aside{display:block}.grant-page-aside .grant-resources{margin-top:20px}.grant-page-layout{gap:16px}}

.grant-card .card-actions{gap:12px;flex-wrap:wrap}.grant-card .card-actions .secondary{border:1px solid var(--green);background:#fff;padding:10px 15px;border-radius:6px;font-weight:600}.selected-grant{margin-bottom:24px}.selected-grant-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:12px}.selected-grant .grant-card{padding:24px;max-width:none}.selected-grant .grant-card h3{font-size:24px;white-space:normal;overflow:visible;overflow-wrap:anywhere;max-width:none}.selected-grant .scope{font-size:14px;max-width:850px;min-height:0;margin-bottom:16px}.selected-grant .grant-meta{display:flex;flex-wrap:wrap;gap:12px 24px}.selected-grant .card-actions{justify-content:flex-start}.grant-switcher{position:relative;flex-shrink:0}.grant-switcher summary{cursor:pointer;padding:7px 12px;border:1px solid var(--line);border-radius:6px;background:white}.grant-switcher>div{position:absolute;right:0;top:100%;z-index:4;width:min(360px,75vw);padding:8px;background:white;border:1px solid var(--line);border-radius:8px;box-shadow:0 10px 25px #263c3618}.grant-choice{display:block;width:100%;text-align:left;padding:12px;border-radius:5px;white-space:normal;overflow-wrap:anywhere}.grant-choice:hover,.grant-choice[aria-current=true]{background:var(--light-green)}@media(max-width:650px){.selected-grant .grant-card{padding:20px}.selected-grant .grant-card h3{font-size:21px}.selected-grant .card-top{flex-wrap:wrap}.selected-grant .scope{font-size:13px}}

.admin-tabs{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 24px}.managed-profile{padding:22px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px}.managed-profile>div{min-width:0}.managed-profile li{overflow-wrap:anywhere;margin:8px 0}.managed-profile h3{margin-bottom:10px}.managed-profile .card-actions{flex-wrap:wrap;align-self:start}.managed-profile details{margin-top:12px}#create-profile-form{max-width:740px}#create-profile-form .field,#manage-profile-form .field{margin:20px 0}@media(max-width:650px){.managed-profile{display:block}.managed-profile .card-actions{margin-top:16px}}

.account-identity{display:flex;align-items:center;gap:10px;min-width:0}.account-identity .avatar{flex-shrink:0}.account-email{font-size:12px;overflow-wrap:anywhere;min-width:0}.account-bar>[data-action="sign-out"]{flex-shrink:0;margin-left:16px;white-space:nowrap}@media(max-width:700px){.account-bar{justify-content:space-between;gap:12px}.account-bar>[data-action="sign-out"]{margin-left:auto}.account-email{font-size:11px}.account-identity{gap:8px}}

.open-label.upcoming{background:#e4f2e5;color:#246339}.open-label.ongoing{background:#fff1bb;color:#735300}.open-label.closed{background:#fbe4e1;color:#a1372c}.open-label.upcoming,.open-label.ongoing,.open-label.closed{padding:6px 9px;border-radius:6px;font-weight:600;white-space:normal;line-height:1.5}.grant-card .card-top{flex-wrap:wrap}.grant-card [data-call-date]{line-height:1.6}

.eligibility-filters{padding:20px 0;border-bottom:1px solid var(--line);margin-bottom:20px}.eligibility-filters h3{margin-bottom:10px}.eligibility-check{padding:14px 0;border-bottom:1px solid var(--line)}.eligibility-next-step{padding:14px;background:#f4efdf;border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.eligibility-next-step .secondary{flex-shrink:0}.eligibility summary{flex-wrap:wrap;gap:8px}.eligibility .status{white-space:normal}

.eligibility-role{padding:18px 0;border-top:1px solid var(--line)}.eligibility-role-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.eligibility-role-heading>strong{font-size:13px;font-weight:600}.eligibility-role .eligibility{border:0;margin-top:8px;padding-bottom:0}.eligibility-role .eligibility summary{justify-content:flex-start;font-size:12px;text-decoration:underline;text-underline-offset:3px}.eligibility-update{border:1px solid #ac8430;background:#fff3c8;color:#654b12;padding:8px 12px;border-radius:7px;font-size:12px;font-weight:600;text-align:left;line-height:1.5}.eligibility-update:hover{background:#ffe9a1}.participation-role{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid var(--line)}.participation-role:last-child{border-bottom:0}.participation-role>label{display:flex;align-items:flex-start;gap:10px;flex:1;min-width:220px}.participation-role>.eligibility-update{max-width:250px}.participation-role>.status{white-space:normal}@media(max-width:650px){.participation-role>label{flex-basis:100%}.participation-role>.eligibility-update{margin-left:24px}.eligibility-role-heading .eligibility-update{max-width:100%}}

.processing-notice{margin:0 0 22px}.processing-notice>strong{display:block;font-size:14px;margin-bottom:8px}.processing-notice p{margin-bottom:8px}.processing-notice small{display:block}

.matching-controls{padding:20px;border:1px solid var(--line,#dce3dc);border-radius:12px;margin:20px 0;background:#f3f6ef}.matching-controls label{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.matching-controls p{margin:12px 0 8px}.matching-controls select{max-width:100%}.ai-band{font-size:17px;line-height:1.25;max-width:160px}.ai-summary{gap:8px}.ai-summary>small{font-size:11px;color:#617567}
.matching-sort{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.matching-sort button{padding:9px 14px}.personal-weights{margin-top:18px}.personal-weights summary{cursor:pointer;font-weight:600}.weight-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin:16px 0}.matching-controls .weight-grid label{display:flex;flex-direction:column;align-items:stretch;gap:6px}.personal-rule-score{font-size:20px}.ai-summary .personal-rule-score{max-width:150px}
.suitability-legend{margin-top:20px;padding-top:16px;border-top:1px solid #d7dfd5}.suitability-scale{display:grid;grid-template-columns:repeat(4,1fr);list-style:none;margin:9px 0 14px;padding:0;gap:4px}.suitability-scale li{padding:10px 8px;font-size:11px;font-weight:650;border-radius:5px;line-height:1.4}.suitability-badge{display:inline-block;border-radius:6px;padding:5px 7px;line-height:1.4}.suitability-strong{background:#d9eee1;color:#174b33;border-bottom:3px solid #267347}.suitability-promising{background:#e0eeea;color:#255b53;border-bottom:3px solid #4b8980}.suitability-exploratory{background:#fff0d0;color:#715014;border-bottom:3px solid #b58730}.suitability-limited{background:#f5e4df;color:#803e33;border-bottom:3px solid #ac6958}.suitability-neutral{background:#edf0f0;color:#4e5d61;border-bottom:3px solid #8b989b}.suitability-legend details summary{cursor:pointer;font-size:12px}.suitability-legend dt{margin-top:12px}.suitability-legend dd{margin:6px 0 0;font-size:13px}.publication-bonus{border:1px solid #d7dfd5;border-radius:8px;padding:16px;margin:12px 0 18px}.publication-bonus legend{font-size:12px;font-weight:600}.ai-summary .ai-band{font-size:14px}#weight-total{font-weight:600;font-size:13px}@media(max-width:600px){.suitability-scale{grid-template-columns:repeat(2,1fr)}.suitability-scale li{font-size:10px}.publication-bonus{padding:12px}}


.about-links{display:flex;gap:24px;font-size:13px}.about-links a{padding:8px 0}.about-links a:hover{text-decoration:underline;text-underline-offset:5px}.auth-story>.about-links{margin:22px 0 0 9px}.workspace>footer{flex-wrap:wrap;gap:16px}.workspace>footer .about-links{font-size:11px}
/* Keep the login identity and public links together, as on the public pages. */
.auth-header{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%}
.auth-header .brand{padding-left:0;white-space:nowrap;flex:none}
.auth-header .about-links{margin:0;flex:none;gap:24px}
.auth-header .about-links a{padding:12px 0}
@media(max-width:680px){.auth-header{gap:14px}.auth-header .brand{font-size:23px;gap:5px;letter-spacing:-1.1px}.auth-header .brand-mark{width:29px;height:31px}.auth-header .about-links{font-size:12px;gap:18px}}
@media(max-width:360px){.auth-header{gap:10px}.auth-header .brand{font-size:21px;gap:3px}.auth-header .brand-mark{width:26px}.auth-header .about-links{font-size:11px;gap:12px}}

/* Sign-in shares the public pages' quiet, full-width navigation and cream palette. */
.auth-shell{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;background:#f5f3ed;color:#234c41}
.auth-shell .auth-header{padding:27px 48px;border-bottom:1px solid #234c411a;gap:30px;background:#f5f3ed}
.auth-header .brand{font-size:28px;letter-spacing:-1.5px;gap:8px;color:#234c41}
.auth-header .brand-mark{width:39px;height:39px}
.auth-header .about-links{gap:38px;font-size:14px;align-items:center}
.auth-header .about-links .auth-current{border:1px solid #234c4150;border-radius:30px;padding:12px 20px;text-decoration:none}
.auth-entry{padding:64px 24px 80px;align-items:flex-start;flex:1}
.auth-card{max-width:420px}
.auth-card h1{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:52px;line-height:1.08;font-weight:550;letter-spacing:-.055em;margin:0 0 20px;color:#234c41}
.auth-card h1 em{font-family:inherit;font-weight:400}
.auth-card>p{font-size:16px;line-height:1.75;color:#52675b;margin-bottom:28px}
.auth-card .field{font-size:14px;margin:22px 0}
.auth-card .field input{font-size:16px;padding:15px;border-radius:8px}
.auth-card .primary,.auth-card .google-button{min-height:50px;border-radius:8px;font-size:15px}
.auth-card .auth-note{font-size:12px;margin:10px 0 20px}
.auth-card .auth-switch{font-size:14px;margin-top:24px}
.auth-header a:focus-visible{outline:3px solid #a57428;outline-offset:5px}
@media(max-width:1000px){.auth-shell .auth-header{padding:22px 30px}}
@media(max-width:680px){
 .auth-shell .auth-header{position:sticky;top:0;z-index:30;padding:14px 16px;padding-top:max(14px,env(safe-area-inset-top));gap:12px;box-shadow:0 3px 12px #234c4108}
 .auth-header .brand{font-size:23px;letter-spacing:-1.2px;gap:3px}
 .auth-header .brand-mark{width:27px;height:30px}
 .auth-header .about-links{gap:16px;font-size:12px;margin-left:auto}
 .auth-header .about-links .auth-current{padding:8px 10px}
 .auth-entry{padding:40px 24px 56px}
 .auth-card h1{font-size:44px}
}
@media(max-width:360px){
 .auth-shell .auth-header{padding:12px;gap:8px}
 .auth-header .brand{font-size:21px}
 .auth-header .brand-mark{width:24px}
 .auth-header .about-links{gap:10px;font-size:11px}
 .auth-header .about-links .auth-current{padding:8px}
 .auth-entry{padding:32px 20px 48px}
 .auth-card h1{font-size:40px}
}

/* A shared public-style header and three clear workspace destinations. */
.app-shell{background:#f5f3ed;min-height:100vh;--sidebar:0px}
.app-shell .workspace{margin-left:0;max-width:1480px;margin-right:auto;margin-left:auto}
.app-header{background:#f5f3ed;color:#234c41;border-bottom:1px solid #234c4120}
.app-topline{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:27px 48px;border-bottom:1px solid #234c411a}
.app-topline .brand{padding:0;font-size:28px;letter-spacing:-1.5px;gap:8px;white-space:nowrap}
.app-topline .brand-mark{width:39px;height:39px}
.app-header-actions,.app-public-links{display:flex;align-items:center;gap:28px;font-size:14px}
.app-header-actions button{font-size:14px;white-space:nowrap;min-height:44px}
.app-public-links{gap:28px}
.app-profile-link{padding:10px 0}
.app-profile-link.active{text-decoration:underline;text-underline-offset:6px;font-weight:600}
.app-logout{border:1px solid #234c4150;border-radius:30px;padding:10px 20px}
.app-admin-label{font-size:14px}
.app-tabs{display:flex;justify-content:center;gap:28px;padding:0 24px}
.app-tab{padding:20px 22px;font-size:17px;color:#52675b;border-bottom:3px solid transparent;border-radius:0;min-height:60px}
.app-tab.active{color:#234c41;border-bottom-color:#234c41;font-weight:650}
.app-tab:hover,.app-profile-link:hover{color:#234c41;background:#e9ede3}
.app-header a:focus-visible,.app-header button:focus-visible{outline:3px solid #a57428;outline-offset:3px}
.app-demo-controls{padding:12px 42px;border-bottom:1px solid var(--line);justify-content:flex-end}
.app-demo-controls select{max-width:320px}
@media(max-width:1000px){.app-topline{padding:22px 30px}.app-header-actions,.app-public-links{gap:20px}}
@media(max-width:680px){
 .app-header{position:sticky;top:0;z-index:30;box-shadow:0 3px 12px #234c4108}
 .app-topline{padding:14px 16px;padding-top:max(14px,env(safe-area-inset-top));gap:12px}
 .app-topline .brand{font-size:23px;letter-spacing:-1.2px;gap:3px}
 .app-topline .brand-mark{width:27px;height:30px}
 .app-header-actions{gap:14px}
 .app-header-actions button,.app-admin-label{font-size:12px;min-height:40px}
 .app-logout{padding:8px 12px}
 .app-public-links{display:none}
 .app-tabs{gap:0;padding:0 12px;justify-content:stretch}
 .app-tab{flex:1;min-width:0;font-size:13px;line-height:1.35;padding:15px 6px;min-height:53px}
 .app-demo-controls{padding:10px 16px;justify-content:space-between}
 .app-demo-controls select{max-width:190px}
 html:has(.app-shell){scroll-padding-top:145px}
}
@media(max-width:360px){
 .app-topline{padding:12px;gap:8px}
 .app-topline .brand{font-size:21px}
 .app-topline .brand-mark{width:24px}
 .app-header-actions{gap:10px}
 .app-header-actions button{font-size:11px}
 .app-logout{padding:8px 10px}
 .app-tabs{padding:0 8px}
 .app-tab{font-size:12px;padding-left:4px;padding-right:4px}
}
/* Task-first workspace: concise headings, optional explanations and accessible saving. */
.app-shell .page-heading{margin-bottom:22px}
.app-shell .page-heading h1{font-family:inherit;font-size:32px;line-height:1.15;letter-spacing:-.035em;font-weight:600}
.app-shell .page-heading p{max-width:760px;margin-top:10px}
.matching-help{margin:12px 0}
.matching-help>summary,.match-expanded>summary{cursor:pointer;color:#24584b;padding:12px 0;font-weight:600}
.matching-controls{padding:18px;margin-bottom:22px}
.matching-controls .suitability-legend{margin-bottom:18px}
.match-expanded{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:16px 0}
.compact-contributions{margin:16px 0}
.person-card>.reason-box p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.person-card .reaction-actions{flex-wrap:wrap}
.profile-save-bar{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:35;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:12px 16px;width:min(460px,calc(100% - 32px));border:1px solid #bac9bd;border-radius:12px;box-shadow:0 8px 32px #183a3020;background:#fbfcf8}
.profile-save-bar[hidden]{display:none}
.profile-save-bar [role=status]{font-size:14px;color:#234c41}
.app-shell:has(#profile-save-bar:not([hidden])) #main{padding-bottom:100px}
.app-header-actions .app-help-link{padding:8px 0}
.app-help-link[aria-current]{text-decoration:underline;text-underline-offset:5px}
.app-shell .workspace>footer>span:last-child{display:block}
@media(max-width:680px){
 .app-shell .page-heading h1{font-size:27px}
 .app-shell .page-heading p{font-size:13px;line-height:1.6}
 .app-header-actions{gap:10px}
 .app-header-actions button{font-size:11px}
 .app-tabs .app-tab{min-height:58px}
 .app-shell .matching-controls{padding:14px}
 .profile-save-bar{bottom:max(12px,env(safe-area-inset-bottom))}
 .app-shell:has(#profile-save-bar:not([hidden])) #toast{bottom:95px}
}
@media(max-width:360px){.app-topline .brand{font-size:19px}.app-topline .brand-mark{width:22px}.app-header-actions{gap:8px}.app-logout{padding:8px}.app-topline{gap:6px}}
/* Paired scores use one shared evidence line; the AI-specific caveat lives in details. */
.person-card>.score-pair{display:grid;grid-template-columns:1fr 1fr;width:100%;max-width:none;min-width:0;margin:16px 0;padding:14px;background:#f3f5ef;border-radius:8px;gap:12px;text-align:left}
.score-pair>div{display:flex;flex-direction:column;gap:7px;min-width:0}
.score-pair .match-scope{font-size:11px;letter-spacing:.02em}
.score-pair .ai-band{font-size:14px;line-height:1.4;align-self:flex-start}
.score-pair .personal-rule-score{font-size:22px;line-height:1.4}
.shared-evidence{grid-column:1/-1;border-top:1px solid #dce3d7;padding-top:10px;font-size:12px;color:#5b6c5f;display:flex;justify-content:space-between;gap:12px}
.profile-section{margin-bottom:20px}
.profile-section>summary{cursor:pointer;font-size:16px;font-weight:600;padding:10px 0;color:#234c41}
.profile-section>.panel{margin:16px 0 0}
.profile-section .panel-heading{margin-top:18px}
.profile-import-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin:22px 0}
.profile-import-actions details{font-size:12px;flex-basis:100%}
.profile-import-actions details p{max-width:680px;font-size:13px;margin-top:10px}
.profile-overview{grid-column:1/-1;display:grid;grid-template-columns:90px 1fr 1fr;gap:12px 24px;align-items:center;margin-bottom:0}
.profile-overview #photo-preview{grid-row:1/4;align-self:start}
.profile-overview .field{margin:0;grid-column:2}
.profile-overview>[data-action=remove-photo]{grid-column:2;justify-self:start}
.profile-overview .toggle-label{grid-column:3;grid-row:1}
.profile-overview>p{grid-column:3;grid-row:2/4}
.compact-grant-context{padding:20px;border:1px solid var(--line);border-radius:12px;background:#eef2e7;margin-bottom:22px}
.compact-grant-context h2{font-size:23px;line-height:1.3;margin:12px 0}
.compact-grant-context>p{font-size:13px;margin:12px 0}
.compact-grant-context .card-actions{justify-content:flex-start;flex-wrap:wrap;gap:10px}
.compact-grant-context .grant-switcher>div{left:0;right:auto}
.active-filters{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 20px;align-items:center}
.filter-chip{background:#e8eee1;border:1px solid #cbd8c2;border-radius:20px;padding:8px 12px;font-size:12px;overflow-wrap:anywhere;text-align:left}
.chat-back{display:none}
.unread-count{display:inline-block;padding:3px 8px;background:#dceadb;color:#23503d;border-radius:12px;font-size:11px;margin:8px 0}
.unread-count[hidden]{display:none}
@media(max-width:680px){
 .app-tabs .app-tab{height:62px;min-height:62px}
 .profile-overview{grid-template-columns:64px 1fr;gap:12px}
 .profile-overview .avatar.big{width:60px;height:60px}
 .profile-overview .toggle-label,.profile-overview>p{grid-column:1/-1;grid-row:auto}
 .profile-overview .field{min-width:0}
 .profile-overview input[type=file]{max-width:100%}
 .conversation-layout .conversation-list{display:flex;flex-direction:column;overflow:visible}
 .conversation-list .conversation-item{min-width:0;width:100%}
 .conversation-layout:not(.chat-open) .chat-pane,.conversation-layout.chat-open .conversation-list{display:none}
 .chat-open .chat-back{display:block;margin:12px}
 #main:has(.chat-open)>.page-heading{display:none}
 .chat-pane .composer{position:sticky;bottom:0;background:#fbfcf8;z-index:4;padding-bottom:max(15px,env(safe-area-inset-bottom))}
 .chat-pane .composer textarea{font-size:16px}
 .person-heading>div:not(.match-summary){flex:1}
 .score-pair .match-scope{font-size:11px}
 .compact-grant-context .card-actions button{font-size:12px}
}

/* Align admin actions on a single baseline, with no redundant second navigation row. */
.app-header-actions .app-admin-link{display:inline-flex;align-items:center;justify-content:center;padding:8px 0;line-height:1.2}
.app-admin-link[aria-current]{font-weight:650;text-decoration:underline;text-underline-offset:5px}
.app-header:not(:has(.app-tabs)) .app-topline{border-bottom:0}
@media(max-width:680px){html:has(.app-admin-link){scroll-padding-top:86px}}
/* Desktop and mobile share persistent workspace and sign-in navigation. */
.app-header,.auth-shell .auth-header{position:sticky;top:0;z-index:30;background:#f5f3ed;box-shadow:0 3px 12px #234c4108}
html:has(.app-shell){scroll-padding-top:180px}
html:has(.app-admin-link),html:has(.auth-shell){scroll-padding-top:110px}
@media(max-width:680px){html:has(.app-shell){scroll-padding-top:145px}html:has(.app-admin-link),html:has(.auth-shell){scroll-padding-top:86px}}
/* Shared active-state convention: regular inactive links, semibold current page. */
.app-header-actions button,.app-public-links a,.auth-header .about-links a,.app-tab,.admin-tabs button{font-weight:400}
.app-header-actions [aria-current="page"],.auth-header .about-links [aria-current="page"]{font-weight:650;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
.app-tabs [aria-current="page"],.admin-tabs [aria-current="page"]{font-weight:650}
/* Text-only rule statuses are badges, not oversized numerical scores. */
.score-pair .personal-rule-score.rule-score-unresolved{font-size:14px;font-weight:600;line-height:1.4;align-self:flex-start;max-width:100%;padding:5px 8px;border-radius:5px;background:#e9eded;color:#52645e;border-bottom:2px solid #93a09c}
.ai-update-pending{align-self:flex-start;font-size:10px;line-height:1.4;font-weight:500;color:#746345;background:#f2ecde;border-radius:4px;padding:3px 6px}
.rule-provisional{align-self:flex-start;font-size:10px;font-weight:500;line-height:1.4;color:#746345;background:#f2ecde;padding:3px 6px;border-radius:4px}
.score-pair .rule-score-basis{font-size:11px;line-height:1.4;color:#617268}

.importance-scale{display:flex;justify-content:space-between;gap:4px;font-size:10px;color:#617368;line-height:1.5}.importance-scale span{flex:1;text-align:center}.importance-scale span:first-child{text-align:left}.importance-scale span:last-child{text-align:right}
.personal-weights .weight-grid{display:grid;grid-template-columns:minmax(0,1fr);max-width:680px;gap:26px;margin:24px 0}.priority-field{display:flex;flex-direction:column;gap:8px}.priority-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.importance-label{font-size:13px;font-weight:600;white-space:nowrap;color:#24574b}.priority-field input[type=range]{width:100%;padding:0;min-height:32px;accent-color:#24574b;cursor:pointer}.priority-description{font-size:13px;font-weight:400}.effective-weight{font-size:12px;color:#617368}.weight-explanation{margin-top:20px;max-width:680px}.weight-explanation summary{font-size:13px}.personal-weights button[type=submit]:disabled{opacity:.5;cursor:not-allowed}
.priority-field{min-width:0;max-width:100%}.priority-field input[type=range]{margin:0;min-width:0}.priority-heading{min-width:0}.priority-heading strong{min-width:0}.priority-field .importance-scale{min-width:0}

#weight-feedback:empty{display:none}.weight-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.weight-actions button{min-height:44px}

.matching-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.matching-preferences-trigger{display:inline-flex;align-items:center;gap:8px}.custom-preferences{font-size:10px;background:var(--light-green);padding:3px 6px;border-radius:4px;color:var(--green)}.modal.preferences-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:540px;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0;padding:32px;overscroll-behavior:contain}.preferences-dialog .personal-weights{margin-top:0}.preferences-dialog .weight-grid{margin-top:26px}.preferences-dialog h2{font-family:inherit;font-size:24px;overflow-wrap:anywhere;line-height:1.35}.preferences-dialog .weight-actions{position:sticky;bottom:-32px;background:#fcfdf9;padding:16px 0;margin-bottom:18px;border-top:1px solid var(--line)}.preferences-help{display:inline-block;font-size:13px;text-decoration:underline;text-underline-offset:4px;margin:8px 0 18px}.preferences-dialog .priority-field{gap:6px}#matching{scroll-margin-top:160px}@media(max-width:600px){.modal.preferences-dialog{width:100%;padding:24px}.preferences-dialog .weight-actions{bottom:-24px}.matching-toolbar{gap:10px}.matching-preferences-trigger{font-size:12px}.preferences-dialog h2{font-size:22px}#matching{scroll-margin-top:145px}}

.eligibility-progress{font-size:12px;color:var(--muted);margin:10px 0}.eligibility-context{font-size:13px;line-height:1.6;margin:10px 0 14px}.eligibility-group{margin:18px 0}.eligibility-group h4{font-size:12px;letter-spacing:0;text-transform:none;color:var(--ink);margin-bottom:10px}.eligibility-group .eligibility-check{padding:12px 14px;border:0;border-left:3px solid var(--line);margin:10px 0;background:#f5f6f1}.eligibility-group.met .eligibility-check{border-color:#598775}.eligibility-group.not-met .eligibility-check{border-color:#ad6659}.eligibility-group.confirmation .eligibility-check,.eligibility-group.missing .eligibility-check{border-color:#c4ad70}.eligibility-check p{margin:0 0 8px;font-size:13px;line-height:1.6}.eligibility-check .eligibility-action-text{color:var(--ink)}.eligibility-source summary{font-size:11px!important;font-weight:400!important}.eligibility-source p{font-size:11px;color:var(--muted);margin-top:8px}.eligibility-role>.eligibility-update{font-size:12px;padding:8px 12px;margin:4px 0 10px}

/* Account entry follows the public pages without changing workspace styles. */
.auth-shell{color:#243d34;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.auth-shell .auth-header{padding:22px max(32px,calc((100vw - 1152px)/2));border-bottom:1px solid #cfd5cb;box-shadow:none;gap:24px}
.auth-shell .auth-header .brand{font-size:28px;gap:8px;letter-spacing:-1.5px;color:#243d34}
.auth-shell .auth-header .brand-mark{width:39px;height:39px;color:#204f45}
.auth-shell .auth-header .about-links .auth-current{border-radius:5px;padding:10px 17px;font-weight:500;text-decoration:none}
.auth-shell .auth-entry{width:100%;padding:48px 24px 56px;align-items:flex-start;justify-content:center}
.auth-shell .auth-card{max-width:460px;padding:28px 32px 24px;background:#fffefa;border:1px solid #cbd3c9;border-top:3px solid #204f45}
.auth-shell .auth-card .auth-eyebrow{font-size:12px;color:#607268;line-height:1.5;letter-spacing:.01em;margin:0 0 14px}
.auth-shell .auth-card h1{font-size:38px;font-weight:600;letter-spacing:-.035em;line-height:1.15;color:#243d34;margin:0 0 18px;text-wrap:balance}
.auth-shell .auth-card>p{font-size:15px;line-height:1.7;color:#52675a;margin-bottom:24px}
.auth-shell .auth-card .field{display:flex;flex-direction:column;gap:8px;font-size:13px;margin:20px 0;color:#243d34}
.auth-shell .auth-card .field input{font-size:16px;line-height:1.5;padding:11px 12px;min-height:46px;border:1px solid #bfcabe;border-radius:4px;background:#fffefa;color:#243d34}
.auth-shell .auth-card .field small{font-size:11px;line-height:1.6;color:#607268}
.auth-shell .auth-card .primary{background:#204f45;color:#fff;border-radius:5px;min-height:48px;padding:13px 18px;font-size:15px;font-weight:550;margin-top:6px}
.auth-shell .auth-card .primary:hover{background:#173d35}
.auth-shell .google-button{border:1px solid #bfcabe;background:#fffefa;color:#243d34;border-radius:5px;min-height:48px;padding:12px 16px;font-size:14px;margin-top:24px;gap:12px}
.auth-shell .google-button:hover{background:#f1f4eb}
.auth-shell .google-button[aria-disabled="true"]{color:#68766c;background:#f1f3ec}
.auth-shell .auth-divider{margin:22px 0;color:#607268;gap:14px}
.auth-shell .auth-divider:before,.auth-shell .auth-divider:after{background:#d3dacd}
.auth-shell .auth-card .auth-note{font-size:12px;line-height:1.7;color:#607268;margin:12px 0 18px}
.auth-shell .auth-note a{text-decoration:underline;text-underline-offset:3px;text-decoration-color:#96a89a}
.auth-shell .auth-note a:hover{text-decoration-color:currentColor}
.auth-shell .auth-card .auth-switch{border-top:1px solid #d3dacd;padding-top:20px;margin:24px 0 16px;text-align:left;font-size:14px}
.auth-shell .auth-switch .text-button{font-size:14px;padding:4px 0;text-decoration:underline;text-underline-offset:4px}
.auth-shell .auth-demo{border-color:#d3dacd;margin-top:24px;padding-top:20px}
.auth-shell .auth-demo .secondary{border-radius:5px}
.auth-shell .auth-card .notice{font-size:13px;border:1px solid #d0d6c6;border-radius:4px;padding:14px;overflow-wrap:anywhere;line-height:1.65}
.auth-shell .auth-footer{padding:26px max(32px,calc((100vw - 1152px)/2));border-top:1px solid #cfd5cb;display:flex;justify-content:space-between;align-items:center;gap:24px}
.auth-shell .auth-footer p{font-size:12px;line-height:1.6;color:#607268;margin:0}
.auth-shell .auth-footer nav{display:flex;flex-wrap:wrap;gap:25px;font-size:14px}
.auth-shell .auth-footer a:hover{text-decoration:underline;text-underline-offset:5px}
.auth-shell .auth-skip{position:absolute;left:12px;top:-90px;background:#fffefa;padding:14px;z-index:40}
.auth-shell .auth-skip:focus{top:12px}
.auth-shell a:focus-visible,.auth-shell button:focus-visible{outline:3px solid #a57428;outline-offset:4px}
.auth-shell input:focus{outline:2px solid #718c71;outline-offset:2px}
@media(max-width:700px){
 .auth-shell .auth-header{padding:16px 20px;gap:12px}
 .auth-shell .auth-header .brand{font-size:24px;gap:4px;letter-spacing:-1.2px}
 .auth-shell .auth-header .brand-mark{width:29px;height:31px}
 .auth-shell .auth-header .about-links{gap:16px;font-size:12px;margin-left:auto}
 .auth-shell .auth-header .about-links .auth-current{padding:8px 11px}
 .auth-shell .auth-entry{padding:30px 22px 36px}
 .auth-shell .auth-card{padding:24px 22px 20px}
 .auth-shell .auth-card h1{font-size:33px}
 .auth-shell .auth-footer{padding:26px 22px;align-items:flex-start;flex-direction:column;gap:18px}
 .auth-shell .auth-footer nav{gap:22px;font-size:13px}
}
@media(max-width:380px){
 .auth-shell .auth-header{padding:13px 14px;gap:8px}
 .auth-shell .auth-header .brand{font-size:21px;gap:3px}
 .auth-shell .auth-header .brand-mark{width:24px}
 .auth-shell .auth-header .about-links{font-size:11px;gap:10px}
 .auth-shell .auth-header .about-links .auth-current{padding:7px 9px}
 .auth-shell .auth-entry{padding-inline:18px}
 .auth-shell .auth-card{padding:22px 18px 18px}
 .auth-shell .auth-card h1{font-size:30px}
}

/* Research discovery: people and contributions lead; assessments stay inspectable. */
#main:is([data-workspace-page="people"],[data-workspace-page="grant-people"],[data-workspace-page="profile"]){color:#243d34}
#main:is([data-workspace-page="people"],[data-workspace-page="grant-people"],[data-workspace-page="profile"]) .page-heading p{font-size:15px;line-height:1.7;color:#52675a;max-width:780px}
#main:is([data-workspace-page="people"],[data-workspace-page="grant-people"]) .filters input,
#main:is([data-workspace-page="people"],[data-workspace-page="grant-people"]) select{font-size:14px;min-height:44px;border-radius:4px}
#main:is([data-workspace-page="people"],[data-workspace-page="grant-people"]) .section-title h2{font-size:22px;font-weight:600}
#main:is([data-workspace-page="people"],[data-workspace-page="grant-people"]) .section-title .small{font-size:13px;line-height:1.65}
#main:is([data-workspace-page="people"],[data-workspace-page="grant-people"]) .matching-toolbar{background:none;border:0;border-top:1px solid #cbd3c9;border-bottom:1px solid #cbd3c9;border-radius:0;padding:16px 0;margin:20px 0 24px;gap:12px}
#main:is([data-workspace-page="people"],[data-workspace-page="grant-people"]) .matching-sort{gap:7px}
#main:is([data-workspace-page="people"],[data-workspace-page="grant-people"]) .matching-sort strong{font-size:12px;margin-right:8px}
#main:is([data-workspace-page="people"],[data-workspace-page="grant-people"]) .matching-toolbar button{font-size:13px;min-height:42px;border-radius:4px;padding:10px 13px}
#main:is([data-workspace-page="people"],[data-workspace-page="grant-people"]) .people-grid{gap:24px}
.person-card.discovery-card{padding:26px;background:#fffefa;border:1px solid #cbd3c9;border-radius:4px;min-width:0;overflow-wrap:anywhere}
.discovery-card .person-heading{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:start;gap:14px;margin-bottom:22px}
.discovery-card .person-heading .avatar{height:48px;width:48px;font-size:19px;background:#e7ecdf;color:#496852}
.discovery-card .person-identity{min-width:0}
.discovery-card .person-heading h3{font-family:inherit;font-size:23px;font-weight:600;line-height:1.25;letter-spacing:-.03em;margin:0}
.discovery-card .person-heading .person-role{font-size:14px;color:#52675a;margin:6px 0 4px;line-height:1.5}
.discovery-card .person-heading .affiliation{font-size:12px;color:#607268;margin:0;line-height:1.6}
.discovery-card .ownership-label{font-size:11px;color:#607268;line-height:1.6;padding-top:4px;white-space:nowrap}
.discovery-card>.reason-box{display:block;background:none;border:0;border-left:2px solid #8ba28b;border-radius:0;padding:0 0 0 16px;margin:0 0 22px}
.discovery-card>.reason-box h4,.discovery-card .compact-contributions h4{font-family:inherit;font-size:12px;font-weight:600;letter-spacing:0;color:#496852;margin:0 0 9px;line-height:1.5;text-transform:none}
.discovery-card>.reason-box p{font-size:15px;line-height:1.7;color:#243d34;-webkit-line-clamp:4;margin:0}
.discovery-card .compact-contributions{margin:0 0 20px}
.discovery-card .compact-contributions .tag-row{gap:7px}
.discovery-card .tag{font-size:12px;line-height:1.5;padding:5px 8px;border-radius:3px;max-width:100%;white-space:normal}
.discovery-card .compact-contributions .tag{background:#f0f3e9;color:#435e49}
.person-card.discovery-card>.score-pair{background:none;border-top:1px solid #d3dacd;border-bottom:1px solid #d3dacd;border-radius:0;margin:0;padding:16px 0;gap:12px 20px;grid-template-columns:1fr 1fr;text-align:left;align-items:start}
.discovery-card .score-pair .match-scope{font-size:11px;font-weight:500;letter-spacing:0;color:#607268}
.discovery-card .score-pair .ai-band{font-size:13px;border-radius:3px;padding:4px 6px;border-bottom-width:2px}
.discovery-card .score-pair .personal-rule-score{font-size:20px;font-weight:600;letter-spacing:-.02em;line-height:1.4}
.discovery-card .score-pair .personal-rule-score.rule-score-unresolved{font-size:13px;letter-spacing:0}
.discovery-card .shared-evidence{font-size:12px;line-height:1.5;padding-top:10px;border-top:0;color:#607268}
.discovery-card .shared-evidence strong{font-weight:500;color:#496852}
.discovery-card .match-expanded{margin:0 0 18px;border:0;border-bottom:1px solid #d3dacd}
.discovery-card .match-expanded>summary{font-size:13px;padding:15px 0;line-height:1.6;font-weight:500;text-decoration:underline;text-underline-offset:4px}
.discovery-card .match-expanded[open]{padding-bottom:18px}
.discovery-card .match-expanded>p,.discovery-card .match-expanded .compact p,.discovery-card .starter p,.discovery-card .evidence-panel p,.discovery-card .component p{font-size:14px;line-height:1.75;color:#52675a}
.discovery-card .match-expanded .person-status{margin:0 0 20px;gap:7px;align-items:flex-start}
.discovery-card .match-expanded .person-status .micro{display:none}
.discovery-card .match-expanded h4{font-size:12px;letter-spacing:0;color:#496852;line-height:1.5}
.discovery-card .score-detail>summary,.discovery-card .starter>summary,.discovery-card .evidence-panel>summary{font-size:13px;line-height:1.65}
.match-evidence-list{list-style:none;padding:0;margin:8px 0 18px}
.match-evidence-list>li{border-top:1px solid var(--line);padding:10px 0;overflow-wrap:anywhere}
.match-evidence-list>li:last-child{border-bottom:1px solid var(--line)}
.match-evidence-source{display:flex;flex-wrap:wrap;gap:2px 8px;align-items:baseline;font-size:13px;line-height:1.5;color:#52675a}
.match-evidence-source strong{color:var(--ink)}
.match-evidence-list p{margin:4px 0 0;white-space:pre-wrap}
.starter .match-evidence-full>summary{width:fit-content;min-height:32px;padding:5px 0;font-size:13px;line-height:22px;color:var(--green);text-decoration:underline;text-underline-offset:3px}
.match-evidence-full:not([open])>summary>span:last-child,.match-evidence-full[open]>summary>span:first-child,.match-evidence-list>li:has(>.match-evidence-full[open])>.match-evidence-preview{display:none}
.match-evidence-questions{margin:8px 0 14px;padding-inline-start:20px;font-size:14px;line-height:1.65;overflow-wrap:anywhere}
.match-evidence-questions>li+li{margin-top:6px}
.discovery-card .private-interest-label{font-size:12px;letter-spacing:0;color:#607268;font-weight:500;margin:18px 0 8px;line-height:1.5}
.discovery-card .reaction-actions{padding:0;gap:8px}
.discovery-card .reaction-actions button,.discovery-card .grant-invite-action button{font-size:13px;border-radius:4px;min-height:44px;padding:11px 13px}
.discovery-card .reaction-actions .primary{background:#204f45}
.discovery-card .private-note{font-size:12px;line-height:1.6;padding-top:12px}
.discovery-card .card-context-note{font-size:12px;color:#607268;line-height:1.6;margin:0 0 14px}
.discovery-card .grant-invite-action{margin:0 0 18px}
.discovery-card .grant-invite-action>p{font-size:12px;line-height:1.65}
#main[data-workspace-page="grant-people"] .compact-grant-context{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 24px;align-items:center;border-radius:4px;border-color:#cbd3c9;padding:22px 24px;background:#fffefa;margin:0 0 14px}
.grant-context-heading{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;min-width:0}
#main[data-workspace-page="grant-people"] .grant-context-heading .open-label{font-size:11px;white-space:nowrap;max-width:none;border-radius:3px}
#main[data-workspace-page="grant-people"] .grant-context-heading h2{font-size:21px;line-height:1.35;font-weight:600;margin:0;flex-basis:100%;order:-1}
#main[data-workspace-page="grant-people"] .grant-context-heading>p{font-size:12px;line-height:1.6;margin:0;color:#607268}
#main[data-workspace-page="grant-people"] .compact-grant-context .card-actions{margin:0;gap:8px;justify-content:flex-end}
#main[data-workspace-page="grant-people"] .compact-grant-context .card-actions button,#main[data-workspace-page="grant-people"] .grant-switcher>summary{font-size:12px;min-height:42px;padding:10px 12px;border-radius:4px}
#main[data-workspace-page="grant-people"] .compact-grant-context>p{grid-column:1/-1;margin:0;font-size:12px;line-height:1.6}
.grant-matching-explanation{font-size:13px;line-height:1.7;margin:0 0 18px;color:#52675a}
.grant-matching-explanation summary{cursor:pointer;text-decoration:underline;text-underline-offset:4px;width:fit-content}
.grant-matching-explanation p{max-width:760px;margin:12px 0 0}
#main[data-workspace-page="grant-people"] .directory-group{margin:28px 0 36px}
#main[data-workspace-page="grant-people"] .directory-group .section-title p{font-size:13px;line-height:1.65;max-width:740px}
#main[data-workspace-page="grant-people"] .group-empty{border:0;border-top:1px solid #d3dacd;border-radius:0;padding:16px 0;font-size:13px}
/* Profile sections remain in one form, with the existing explicit save action. */
#main[data-workspace-page="profile"] .processing-notice{padding:14px 18px;border-radius:4px;background:#f3f1e5;border-color:#d5d7c8}
#main[data-workspace-page="profile"] .processing-notice strong{font-size:14px}
#main[data-workspace-page="profile"] .processing-notice p,#main[data-workspace-page="profile"] .processing-notice small{font-size:13px;line-height:1.65}
#main[data-workspace-page="profile"] .profile-import-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:22px 0}
#main[data-workspace-page="profile"] .profile-import-actions button{font-size:13px;min-height:42px;border-radius:4px}
#main[data-workspace-page="profile"] .profile-import-actions details{flex-basis:100%;font-size:12px;color:#607268}
.profile-section-nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;padding:16px 0;border-top:1px solid #cbd3c9;border-bottom:1px solid #cbd3c9;margin-top:22px}
.profile-section-nav>span{font-size:12px;color:#607268;margin-right:4px}
.profile-section-nav button{font-size:13px;padding:8px 0;min-height:36px;text-decoration:underline;text-underline-offset:4px;line-height:1.5}
.profile-save-hint{font-size:12px;color:#607268;margin:14px 0 24px;line-height:1.65}
#main[data-workspace-page="profile"] .form-layout{grid-template-columns:minmax(0,1fr) 250px;gap:24px}
#main[data-workspace-page="profile"] .panel{background:#fffefa;border:1px solid #cbd3c9;border-radius:4px;padding:26px}
#main[data-workspace-page="profile"] .profile-overview{grid-template-columns:72px minmax(0,1fr) minmax(0,1fr);gap:12px 22px;padding:22px 26px}
#main[data-workspace-page="profile"] .profile-overview .avatar.big{width:64px;height:64px;font-size:23px}
#main[data-workspace-page="profile"] .profile-overview .field{font-size:13px}
#main[data-workspace-page="profile"] .profile-overview .toggle-label{font-size:14px;line-height:1.6;align-self:start}
#main[data-workspace-page="profile"] .profile-overview>p{font-size:13px;line-height:1.7;color:#607268}
.profile-main-sections{min-width:0}
#main[data-workspace-page="profile"] .panel-heading{margin-bottom:24px;gap:15px}
#main[data-workspace-page="profile"] .panel-heading h2{font-family:inherit;font-size:24px;font-weight:600;letter-spacing:-.03em;line-height:1.3}
#main[data-workspace-page="profile"] .panel-heading p{font-size:14px;line-height:1.7;color:#52675a;margin-top:10px}
#main[data-workspace-page="profile"] .step{border:0;background:none;padding:0;color:#7d8b7f;font-size:12px;line-height:31px;min-width:20px;height:auto;border-radius:0}
#main[data-workspace-page="profile"] .field{font-size:14px;line-height:1.6;gap:8px;margin:18px 0}
#main[data-workspace-page="profile"] .field input:not([type="checkbox"]),#main[data-workspace-page="profile"] .field select,#main[data-workspace-page="profile"] .field textarea{font-size:16px;line-height:1.5;padding:11px 12px;border-radius:4px;border-color:#bfcabe;background:#fffefa;min-height:46px;max-width:100%}
#main[data-workspace-page="profile"] .field input[type="file"]{font-size:12px;padding:8px;min-height:40px}
#main[data-workspace-page="profile"] .field small,#main[data-workspace-page="profile"] .small{font-size:12px;line-height:1.7;color:#607268}
#main[data-workspace-page="profile"] .profile-block,#main[data-workspace-page="profile"] .profile-section{scroll-margin-top:20px}
#main[data-workspace-page="profile"] .profile-section>summary{font-size:16px;line-height:1.6;font-weight:600;padding:0}
#main[data-workspace-page="profile"] .profile-section[open]>summary{padding-bottom:18px;border-bottom:1px solid #d3dacd}
#main[data-workspace-page="profile"] .profile-section>p,#main[data-workspace-page="profile"] .profile-section>h3+p{font-size:14px;line-height:1.75;color:#52675a}
#main[data-workspace-page="profile"] .profile-section h3{font-size:19px}
#main[data-workspace-page="profile"] .profile-choices{padding:16px;border-radius:4px;border-color:#cbd3c9}
#main[data-workspace-page="profile"] .profile-choices legend{font-size:13px;padding:0 6px}
#main[data-workspace-page="profile"] .profile-choices label{font-size:14px;line-height:1.65}
#main[data-workspace-page="profile"] .profile-choices>div{gap:14px 20px}
#main[data-workspace-page="profile"] .profile-choices small{font-size:12px;margin-top:14px}
#main[data-workspace-page="profile"] .profile-aside{top:190px}
#main[data-workspace-page="profile"] .profile-assistance>summary{font-size:15px;font-weight:600;line-height:1.6;cursor:pointer}
#main[data-workspace-page="profile"] .profile-assistance p{font-size:13px;line-height:1.7;margin:16px 0}
#main[data-workspace-page="profile"] .profile-assistance .secondary{font-size:13px;border-radius:4px;min-height:44px}
#main[data-workspace-page="profile"] .profile-assistance .micro{font-size:10px;line-height:1.6}
#main[data-workspace-page="profile"] .field-origin{font-size:11px;line-height:1.6}
#main[data-workspace-page="profile"] .field-origin .text-button{min-height:32px}
#main[data-workspace-page="profile"] .profile-save-bar{border-radius:5px;border-color:#bfcabe;background:#fffefa;box-shadow:0 4px 18px #183a3014}
#main[data-workspace-page="profile"] .profile-save-bar .primary{font-size:14px;border-radius:4px;min-height:44px;background:#204f45}
@media(max-width:1000px){
 #main[data-workspace-page="profile"] .form-layout{grid-template-columns:minmax(0,1fr)}
 #main[data-workspace-page="profile"] .profile-aside{position:static;display:block}
 #main[data-workspace-page="profile"] .profile-assistance{max-width:680px}
 .discovery-card .person-heading{grid-template-columns:44px minmax(0,1fr);gap:10px 13px}
 .discovery-card .person-heading .avatar{width:44px;height:44px}
 .discovery-card .ownership-label{grid-column:2;padding:0}
 #main[data-workspace-page="grant-people"] .compact-grant-context{grid-template-columns:1fr;gap:16px}
 #main[data-workspace-page="grant-people"] .compact-grant-context .card-actions{justify-content:flex-start}
}
@media(max-width:680px){
 #main:is([data-workspace-page="people"],[data-workspace-page="grant-people"],[data-workspace-page="profile"]) .page-heading p{font-size:14px}
 .person-card.discovery-card{padding:22px}
 .discovery-card .person-heading{margin-bottom:20px;grid-template-columns:44px minmax(0,1fr)}
 .discovery-card .person-heading h3{font-size:22px}
 .discovery-card .person-heading .person-role{font-size:14px}
 .discovery-card>.reason-box p{font-size:14px;line-height:1.75;-webkit-line-clamp:4}
 .discovery-card .reaction-actions button{padding:10px 12px}
 #main:is([data-workspace-page="people"],[data-workspace-page="grant-people"]) .matching-toolbar{padding:14px 0;gap:12px}
 #main:is([data-workspace-page="people"],[data-workspace-page="grant-people"]) .matching-sort{gap:6px;width:100%;flex-wrap:wrap}
 #main:is([data-workspace-page="people"],[data-workspace-page="grant-people"]) .matching-sort strong{flex-basis:100%;margin:0 0 2px}
 #main:is([data-workspace-page="people"],[data-workspace-page="grant-people"]) .matching-toolbar button{font-size:12px;padding:10px 12px}
 #main[data-workspace-page="grant-people"] .compact-grant-context{padding:20px;margin-bottom:16px}
 #main[data-workspace-page="grant-people"] .grant-context-heading h2{font-size:20px}
 #main[data-workspace-page="grant-people"] .directory-group .section-title p{font-size:13px}
 #main[data-workspace-page="profile"] .panel{padding:22px}
 #main[data-workspace-page="profile"] .profile-overview{grid-template-columns:56px minmax(0,1fr);padding:20px;gap:12px}
 #main[data-workspace-page="profile"] .profile-overview .avatar.big{height:52px;width:52px;font-size:20px}
 #main[data-workspace-page="profile"] .profile-overview #photo-preview{grid-row:1/3}
 #main[data-workspace-page="profile"] .profile-overview .toggle-label,#main[data-workspace-page="profile"] .profile-overview>p{grid-column:1/-1;grid-row:auto}
 #main[data-workspace-page="profile"] .profile-overview .field{margin:0}
 #main[data-workspace-page="profile"] .panel-heading h2{font-size:22px}
 #main[data-workspace-page="profile"] .panel-heading p{font-size:13px}
 #main[data-workspace-page="profile"] .two-cols{grid-template-columns:1fr}
 .profile-section-nav{gap:4px 18px;padding:12px 0}
 .profile-section-nav>span{flex-basis:100%}
 .profile-section-nav button{font-size:13px;min-height:40px}
 #main[data-workspace-page="profile"] .profile-import-actions{gap:10px 14px}
 #main[data-workspace-page="profile"] .profile-choices>div{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
}
@media(max-width:360px){
 .person-card.discovery-card{padding:18px}
 .discovery-card .reaction-actions{gap:6px}
 .discovery-card .reaction-actions button{font-size:12px;padding:10px}
 .person-card.discovery-card>.score-pair{gap:10px}
 #main[data-workspace-page="profile"] .panel{padding:18px}
 #main[data-workspace-page="profile"] .profile-overview{padding:18px;gap:10px;grid-template-columns:46px minmax(0,1fr)}
 #main[data-workspace-page="profile"] .profile-overview .avatar.big{height:44px;width:44px;font-size:18px}
 #main[data-workspace-page="profile"] .panel-heading{gap:10px}
}
#main[data-workspace-page="profile"] .processing-notice>summary{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;cursor:pointer;list-style:disclosure-closed}
#main[data-workspace-page="profile"] .processing-notice>summary strong{margin:0;display:inline}
#main[data-workspace-page="profile"] .processing-notice>summary span{font-size:12px;color:#607268;line-height:1.6}
#main[data-workspace-page="profile"] .processing-notice[open]>summary{margin-bottom:14px}
#main[data-workspace-page="profile"] .profile-block:focus-visible,#main[data-workspace-page="profile"] .profile-section:focus-visible{outline:2px solid #8ba28b;outline-offset:4px}
#main[data-workspace-page="grant-people"] .grant-context-heading .open-label{margin-left:0}
#main[data-workspace-page="grant-people"] .compact-grant-context .card-actions{border:0;padding:0}
@media(max-width:680px){#main[data-workspace-page="people"]>.section-title>.small{display:none}}

/* Catalogue and grant reading pages share the research directory's quieter layout. */
#main:is([data-workspace-page="grants"],[data-workspace-page="grant-detail"],[data-workspace-page="help"],[data-workspace-page="conversations"]){color:#243d34}
#main:is([data-workspace-page="grants"],[data-workspace-page="help"],[data-workspace-page="conversations"]) .page-heading p{font-size:15px;line-height:1.7;color:#52675a}
#main[data-workspace-page="grants"] .section-title h2{font-size:22px;font-weight:600}
#main[data-workspace-page="grants"] .filters input,#main[data-workspace-page="grants"] select{font-size:14px;min-height:44px;border-radius:4px}
#main[data-workspace-page="grants"] .classification-filters{border-radius:4px;border-color:#cbd3c9;padding:16px 18px}
#main[data-workspace-page="grants"] .classification-filters summary{font-size:13px;line-height:1.6}
#main[data-workspace-page="grants"] .classification-filters p,#main[data-workspace-page="grants"] .classification-filters label{font-size:13px;line-height:1.7}
#main[data-workspace-page="grants"] .grant-grid{gap:24px}
.grant-card.catalogue-card{border-radius:4px;border-color:#cbd3c9;background:#fffefa;padding:26px;min-width:0}
.catalogue-card .card-top{align-items:start;gap:18px;margin-bottom:18px}
.catalogue-card .eyebrow{font-size:12px;letter-spacing:0;font-weight:500;color:#607268}
.catalogue-card .micro{font-size:10px;margin-top:5px;letter-spacing:.02em}
.catalogue-card .open-label{font-size:11px;border-radius:3px;max-width:145px;line-height:1.5;margin-left:auto}
.catalogue-card h3{font-family:inherit;font-size:24px;font-weight:600;letter-spacing:-.03em;line-height:1.3;margin-bottom:16px}
.catalogue-card .scope{font-size:14px;color:#52675a;line-height:1.75;margin-bottom:20px}
.catalogue-card .grant-meta{display:grid;grid-template-columns:1fr 1fr;gap:18px;border-top:1px solid #d3dacd;padding-top:18px;margin:0 0 18px}
.catalogue-card .grant-meta>div{min-width:0}
.catalogue-card .grant-meta-label{display:block;font-size:11px;font-weight:500;color:#607268;line-height:1.5;margin-bottom:7px}
.catalogue-card .grant-meta strong{font-size:14px;font-weight:500;line-height:1.65;color:#243d34;display:block}
.grant-card-topics{border-top:1px solid #d3dacd;font-size:13px;line-height:1.6;margin:0 0 18px;padding-top:14px}
.grant-card-topics>summary{cursor:pointer;color:#52675a;text-decoration:underline;text-underline-offset:4px}
.grant-card-topics .tag-row{margin-top:14px}
.catalogue-card .tag{font-size:12px;line-height:1.5;border-radius:3px;padding:5px 8px;white-space:normal}
.catalogue-card .card-actions{border:0;margin:0;padding:0;gap:10px;flex-wrap:wrap}
.catalogue-card .card-actions button{font-size:13px;border-radius:4px;min-height:44px;padding:11px 14px}
.grant-card.catalogue-card[data-call-status="closed"]{background:#f0f2f1;border-color:#cbd0cd;color:#535b57}
.catalogue-card[data-call-status="closed"] :is(.eyebrow,.scope,.grant-meta-label,.grant-meta strong,.grant-card-topics>summary){color:#606863}
.catalogue-card[data-call-status="closed"] .open-label.closed{background:#dfe4e1;color:#515955}
.catalogue-card[data-call-status="closed"] .tag{background:#e5e9e6;border-color:#cbd0cd;color:#535b57}
.grant-card.catalogue-card[data-call-status="closed"] .card-actions :is(.primary,.secondary){background:#fafbfa;border-color:#b7bfba;color:#535b57}
.grant-card.catalogue-card[data-call-status="closed"] .card-actions :is(.primary,.secondary):hover{background:#e2e7e3;border-color:#929d96}
#main[data-workspace-page="grants"] .principle{border-top:1px solid #cbd3c9;padding:22px 0;margin-top:28px}
#main[data-workspace-page="grants"] .principle>span{display:none}
#main[data-workspace-page="grants"] .principle p{font-size:13px;line-height:1.7}
#main[data-workspace-page="grant-detail"] .grant-back{font-size:13px;min-height:40px;margin-bottom:16px}
#main[data-workspace-page="grant-detail"] .grant-page-hero{padding:0 0 28px;border:0;border-bottom:1px solid #bfcabe;border-radius:0;background:none;margin-bottom:0}
#main[data-workspace-page="grant-detail"] .grant-page-hero .eyebrow{font-size:12px;letter-spacing:0;color:#607268}
#main[data-workspace-page="grant-detail"] .grant-page-hero h1{font-size:36px;line-height:1.2;font-weight:600;max-width:900px;margin:15px 0 20px}
#main[data-workspace-page="grant-detail"] .grant-intro{max-width:760px;font-size:17px;line-height:1.75;color:#52675a}
#main[data-workspace-page="grant-detail"] .grant-page-hero .small{font-size:12px}
#main[data-workspace-page="grant-detail"] .tag{font-size:12px;line-height:1.5;border-radius:3px;padding:5px 8px;white-space:normal}
.grant-reading-nav{display:flex;gap:24px;flex-wrap:wrap;border-bottom:1px solid #cbd3c9;padding:14px 0;margin-bottom:28px}
.grant-reading-nav button{font-size:13px;line-height:1.6;min-height:36px;padding:6px 0;text-decoration:underline;text-underline-offset:4px}
#main[data-workspace-page="grant-detail"] .grant-page-layout{grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:28px}
#main[data-workspace-page="grant-detail"] .panel,#main[data-workspace-page="grant-detail"] .grant-resources{background:#fffefa;border:1px solid #cbd3c9;border-radius:4px;padding:25px}
#main[data-workspace-page="grant-detail"] .grant-page-main h2{font-size:24px;font-weight:600;line-height:1.35;margin-bottom:18px}
#main[data-workspace-page="grant-detail"] .grant-page-main h3{font-size:18px;margin-top:25px}
#main[data-workspace-page="grant-detail"] .grant-page-main p,#main[data-workspace-page="grant-detail"] .grant-page-main li{font-size:15px;line-height:1.8;color:#52675a}
#main[data-workspace-page="grant-detail"] .grant-page-main small,#main[data-workspace-page="grant-detail"] .grant-page-aside small{font-size:12px;line-height:1.7;color:#607268}
#main[data-workspace-page="grant-detail"] .grant-page-aside{position:sticky;top:190px}
#main[data-workspace-page="grant-detail"] .grant-apply h3,#main[data-workspace-page="grant-detail"] .grant-resources h3{font-size:20px;margin:18px 0}
#main[data-workspace-page="grant-detail"] .grant-apply>p{font-size:14px;line-height:1.75}
#main[data-workspace-page="grant-detail"] .grant-apply>p>strong{font-size:18px;font-weight:600}
#main[data-workspace-page="grant-detail"] .grant-apply .open-label{margin:0;font-size:11px;max-width:none;border-radius:3px}
#main[data-workspace-page="grant-detail"] .grant-page-actions button{font-size:14px;min-height:44px;border-radius:4px}
#main[data-workspace-page="grant-detail"] .grant-file-list a,#main[data-workspace-page="grant-detail"] .official-grant-link{font-size:13px;line-height:1.7}
#main[data-workspace-page="grant-detail"] .source-review{background:#fffefa;border:1px solid #cbd3c9;border-radius:4px;padding:20px 25px}
#main[data-workspace-page="grant-detail"] .source-review summary{font-size:13px;line-height:1.65}
#main[data-workspace-page="grant-detail"] .grant-page-main section{scroll-margin-top:20px}
/* Help is a reading guide, with the original explanations preserved by topic. */
#main[data-workspace-page="help"] .guide{background:#fffefa;border:1px solid #cbd3c9;border-radius:4px;padding:24px;margin-bottom:30px}
#main[data-workspace-page="help"] .guide h3{font-family:inherit;font-size:22px;line-height:1.35;font-weight:600;letter-spacing:-.03em;margin-bottom:18px}
#main[data-workspace-page="help"] .guide ol{gap:20px;padding-left:20px}
#main[data-workspace-page="help"] .guide li{font-size:14px;line-height:1.75}
#main[data-workspace-page="help"] .guide small{font-size:12px;line-height:1.75}
.help-layout{display:grid;grid-template-columns:225px minmax(0,1fr);gap:40px;align-items:start}
.help-contents{position:sticky;top:190px;border-left:2px solid #cbd3c9;padding-left:18px;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.help-contents>p{font-size:12px;font-weight:600;color:#607268;margin:0 0 5px}
.help-contents button{font-size:13px;line-height:1.65;min-height:36px;text-align:left;padding:4px 0;text-decoration:none;color:#52675a}
.help-contents button:hover{text-decoration:underline;text-underline-offset:4px}
#main[data-workspace-page="help"] .help-topic{border:0;border-top:1px solid #cbd3c9;border-radius:0;padding:26px 0;background:none;margin:0;scroll-margin-top:20px}
#main[data-workspace-page="help"] .help-topic:first-child{padding-top:0;border-top:0}
#main[data-workspace-page="help"] .help-topic h2{font-size:24px;font-weight:600;line-height:1.35;margin-bottom:18px}
#main[data-workspace-page="help"] .help-topic h3{font-size:18px;margin:24px 0 14px}
#main[data-workspace-page="help"] .help-topic p{font-size:15px;line-height:1.85;color:#52675a}
#main[data-workspace-page="help"] .suitability-legend{margin-bottom:22px}
#main[data-workspace-page="help"] .suitability-legend summary{font-size:13px;line-height:1.7}
/* Conversation layout stays familiar; only the page and inline chat are styled. */
#main[data-workspace-page="conversations"] .page-heading button{font-size:13px;min-height:42px;border-radius:4px}
.conversation-empty{border:1px solid #cbd3c9;background:#fffefa;border-radius:4px;padding:40px;max-width:850px}
.conversation-empty .conversation-empty-label{font-size:12px;color:#607268;margin-bottom:18px}
.conversation-empty h2{font-size:28px;font-weight:600;line-height:1.3;margin-bottom:20px}
.conversation-empty>p:not(.conversation-empty-label){font-size:16px;line-height:1.8;color:#52675a;max-width:650px}
.conversation-empty-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.conversation-empty-actions button{font-size:14px;border-radius:4px;padding:12px 18px;min-height:44px}
#main[data-workspace-page="conversations"] .conversation-layout{grid-template-columns:280px minmax(0,1fr);gap:24px}
#main[data-workspace-page="conversations"] .conversation-list{display:flex;flex-direction:column;gap:12px;min-width:0}
#main[data-workspace-page="conversations"] .conversation-item{border:1px solid #cbd3c9;border-radius:4px;background:#fffefa;padding:20px;text-align:left;width:100%;margin:0}
#main[data-workspace-page="conversations"] .conversation-item.selected{border-color:#718c71;background:#f0f3e9}
#main[data-workspace-page="conversations"] .conversation-item strong{font-family:inherit;font-size:17px;font-weight:600;line-height:1.4;display:block;margin:10px 0}
#main[data-workspace-page="conversations"] .conversation-item p{font-size:13px;line-height:1.7;color:#52675a}
#main[data-workspace-page="conversations"] .conversation-item small{font-size:12px;line-height:1.6}
#main[data-workspace-page="conversations"] .chat-pane{background:#fffefa;border-color:#cbd3c9;border-radius:4px}
#main[data-workspace-page="conversations"] .chat-header{padding:24px;border-bottom:1px solid #d3dacd}
#main[data-workspace-page="conversations"] .chat-header h2{font-family:inherit;font-size:25px;font-weight:600;line-height:1.35;margin:12px 0}
#main[data-workspace-page="conversations"] .chat-header p{font-size:14px;line-height:1.7;color:#52675a}
#main[data-workspace-page="conversations"] .chat-context{margin:0;padding:18px 24px;border-bottom:1px solid #d3dacd;background:none}
#main[data-workspace-page="conversations"] .chat-context summary{font-size:13px;line-height:1.65}
#main[data-workspace-page="conversations"] .chat-context p{font-size:14px;line-height:1.75}
#main[data-workspace-page="conversations"] .chat-context small{font-size:12px;line-height:1.7}
#main[data-workspace-page="conversations"] .messages{padding:24px;min-height:220px;max-height:480px}
#main[data-workspace-page="conversations"] .message{border-radius:5px;padding:14px 16px;background:#f0f3e9;margin-bottom:18px;max-width:90%}
#main[data-workspace-page="conversations"] .message.mine{background:#e2ecdf}
#main[data-workspace-page="conversations"] .message p{font-size:15px;line-height:1.75}
#main[data-workspace-page="conversations"] .message-meta{font-size:12px;line-height:1.6}
#main[data-workspace-page="conversations"] .message-meta span{font-size:11px;display:block;margin-top:3px}
#main[data-workspace-page="conversations"] .composer{border-top:1px solid #d3dacd;background:#fffefa;padding:18px 24px;gap:12px;align-items:flex-end}
#main[data-workspace-page="conversations"] .composer textarea{font-size:16px;line-height:1.6;border-radius:4px;border-color:#bfcabe;padding:12px;min-width:0}
#main[data-workspace-page="conversations"] .composer button{font-size:14px;border-radius:4px;min-height:44px}
#main[data-workspace-page="conversations"] .chat-welcome h3{font-family:inherit;font-size:23px;font-weight:600}
#main[data-workspace-page="conversations"] .chat-welcome p{font-size:14px;line-height:1.75}
#main[data-workspace-page="conversations"] .grant-inbox,#main[data-workspace-page="conversations"]>.panel{border-radius:4px;background:#fffefa;border-color:#cbd3c9;padding:24px}
#main[data-workspace-page="conversations"] .invite-row p,#main[data-workspace-page="conversations"] .invite-row blockquote{font-size:14px;line-height:1.75}
#main[data-workspace-page="conversations"] .invite-row button{font-size:13px;min-height:44px;border-radius:4px}
#main[data-workspace-page="conversations"] .group-controls{padding:18px 24px;font-size:13px;line-height:1.75}
/* Account settings are inline; Google linking dialogs are deliberately unchanged. */
#main[data-workspace-page="profile"] .account-panel h2{font-size:24px;font-weight:600;margin-bottom:24px}
#main[data-workspace-page="profile"] .account-method{border-top:1px solid #d3dacd;padding-top:20px;margin-bottom:24px}
#main[data-workspace-page="profile"] .account-method h3{font-family:inherit;font-size:17px;font-weight:600;margin-bottom:12px}
#main[data-workspace-page="profile"] .account-method p{font-size:14px;line-height:1.75;overflow-wrap:anywhere;color:#52675a}
#main[data-workspace-page="profile"] .account-method .account-email{font-size:16px;color:#243d34}
#main[data-workspace-page="profile"] .account-method button{font-size:14px;min-height:44px;border-radius:4px;margin-bottom:14px}
#main[data-workspace-page="profile"] .account-explanation{padding-top:20px;border-top:1px solid #d3dacd;margin:0;font-size:13px;line-height:1.75}
@media(max-width:1000px){
 #main[data-workspace-page="grant-detail"] .grant-page-layout{grid-template-columns:1fr}
 #main[data-workspace-page="grant-detail"] .grant-page-aside{position:static;display:grid;grid-template-columns:1fr 1fr;gap:20px}
 #main[data-workspace-page="grant-detail"] .grant-page-aside .grant-resources{margin:0}
 .help-layout{grid-template-columns:190px minmax(0,1fr);gap:28px}
 #main[data-workspace-page="conversations"] .conversation-layout{grid-template-columns:220px minmax(0,1fr)}
}
@media(max-width:680px){
 #main:is([data-workspace-page="grants"],[data-workspace-page="help"],[data-workspace-page="conversations"]) .page-heading p{font-size:14px}
 .grant-card.catalogue-card{padding:22px}
 .catalogue-card h3{font-size:22px}
 .catalogue-card .grant-meta{gap:16px;grid-template-columns:1fr}
 .catalogue-card .grant-meta strong{font-size:14px}
 #main[data-workspace-page="grant-detail"] .grant-page-hero h1{font-size:29px}
 #main[data-workspace-page="grant-detail"] .grant-intro{font-size:16px}
 .grant-reading-nav{gap:18px;margin-bottom:22px}
 #main[data-workspace-page="grant-detail"] .panel,#main[data-workspace-page="grant-detail"] .grant-resources{padding:22px}
 #main[data-workspace-page="grant-detail"] .grant-page-main h2{font-size:22px}
 #main[data-workspace-page="grant-detail"] .grant-page-main p,#main[data-workspace-page="grant-detail"] .grant-page-main li{font-size:14px}
 #main[data-workspace-page="grant-detail"] .grant-page-aside{display:block}
 #main[data-workspace-page="grant-detail"] .grant-page-aside .grant-resources{margin-top:20px}
 #main[data-workspace-page="help"] .guide{padding:22px}
 #main[data-workspace-page="help"] .guide ol{display:block}
 #main[data-workspace-page="help"] .guide li{margin-bottom:14px}
 .help-layout{display:block}
 .help-contents{position:static;gap:8px;margin-bottom:28px}
 .help-contents button{min-height:40px}
 #main[data-workspace-page="help"] .help-topic h2{font-size:22px}
 #main[data-workspace-page="help"] .help-topic p{font-size:14px}
 .conversation-empty{padding:26px}
 .conversation-empty h2{font-size:25px}
 .conversation-empty>p:not(.conversation-empty-label){font-size:15px}
 #main[data-workspace-page="conversations"] .conversation-layout{grid-template-columns:1fr;gap:18px}
 #main[data-workspace-page="conversations"] .chat-header{padding:22px}
 #main[data-workspace-page="conversations"] .chat-context{padding:16px 22px}
 #main[data-workspace-page="conversations"] .messages{padding:20px;max-height:440px}
 #main[data-workspace-page="conversations"] .message{max-width:95%;padding:12px 14px}
 #main[data-workspace-page="conversations"] .message p{font-size:14px}
 #main[data-workspace-page="conversations"] .composer{padding:16px 20px;gap:10px}
 #main[data-workspace-page="conversations"] .composer button{padding:12px;font-size:13px}
 #main[data-workspace-page="conversations"] .group-controls{padding:18px 22px}
}
@media(max-width:360px){
 .grant-card.catalogue-card{padding:18px}
 .catalogue-card .card-actions button{font-size:12px;padding:10px 12px}
 #main[data-workspace-page="grant-detail"] .panel,#main[data-workspace-page="grant-detail"] .grant-resources{padding:18px}
 .conversation-empty{padding:22px}
 #main[data-workspace-page="conversations"] .chat-header,#main[data-workspace-page="conversations"] .chat-context,#main[data-workspace-page="conversations"] .group-controls{padding-inline:18px}
 #main[data-workspace-page="conversations"] .messages{padding:18px}
 #main[data-workspace-page="conversations"] .composer{padding:14px 18px;flex-wrap:wrap}
 #main[data-workspace-page="conversations"] .composer textarea{width:100%}
}
.catalogue-card .grant-meta{border-bottom:0;padding-bottom:0}
.help-articles{max-width:780px;min-width:0}
#main[data-workspace-page="help"] .guide li{list-style:decimal}
#main[data-workspace-page="help"] .guide li::marker{color:#7d8b7f}
@media(max-width:1000px){
 #main[data-workspace-page="grant-detail"] .grant-page-main{grid-row:2}
 #main[data-workspace-page="grant-detail"] .grant-page-aside{grid-row:1}
}
@media(max-width:680px){
 #main[data-workspace-page="conversations"] .conversation-layout.chat-open .conversation-list{display:none}
 #main[data-workspace-page="conversations"] .conversation-layout:not(.chat-open) .chat-pane{display:none}
}

/* Shared overlay language: readable forms, clear actions and a reachable close control. */
.modal{width:720px;max-width:calc(100% - 40px);max-height:calc(100dvh - 48px);padding:32px;border:1px solid #bfcabe;border-radius:5px;background:#fffefa;color:#243d34;box-shadow:0 18px 65px #183a3026;overscroll-behavior:contain;scroll-padding-block:72px 24px;overflow-wrap:anywhere}
.modal::backdrop{background:#203c32a8;backdrop-filter:blur(2px)}
.dialog-close-row{position:sticky;top:12px;height:0;display:flex;justify-content:flex-end;z-index:5;pointer-events:none}
.modal .dialog-close-row .close-modal{position:relative;inset:auto;margin:0;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;display:grid;place-items:center;line-height:1;font-size:26px;font-weight:400;border:1px solid #cbd3c9;border-radius:4px;background:#fffefa;color:#52675a;pointer-events:auto;box-shadow:0 2px 8px #183a300a}
.modal .dialog-close-row .close-modal:hover{background:#f0f3e9;color:#243d34}
.modal h2,.modal .claim-dialog h2{font-family:inherit;font-size:28px;font-weight:600;line-height:1.3;letter-spacing:-.035em;margin:0 58px 20px 0;overflow-wrap:anywhere}
.modal h3,.modal .claim-profile h3{font-family:inherit;font-size:20px;font-weight:600;line-height:1.4;letter-spacing:-.025em;margin:25px 0 14px}
.modal h4{font-size:12px;line-height:1.6;letter-spacing:.01em;color:#496852;margin:20px 0 10px}
.modal p,.modal li,.modal .claim-profile p{font-size:14px;line-height:1.8;color:#52675a}
.modal p{margin-bottom:18px}
.modal small,.modal .small,.modal .auth-note,.modal .claim-note{font-size:12px;line-height:1.75;color:#607268}
.modal .eyebrow{font-size:11px;line-height:1.6;letter-spacing:.02em;color:#607268;display:block;margin:0 58px 12px 0}
.modal .field{font-size:14px;line-height:1.65;gap:8px;margin:20px 0;min-width:0}
.modal .field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),.modal .field select,.modal .field textarea,.modal .import-suggestion>input{font-size:16px;line-height:1.5;padding:11px 12px;min-height:46px;border:1px solid #bfcabe;border-radius:4px;background:#fffefa;color:#243d34;max-width:100%;min-width:0}
.modal .field input[type="file"],.modal .file-picker input{font-size:13px;padding:10px;max-width:100%;border-radius:4px}
.modal .field small,.modal .file-picker small{font-size:12px;line-height:1.7;color:#607268}
.modal .two-cols{gap:0 22px;min-width:0}
.modal input[type="checkbox"],.modal input[type="radio"]{accent-color:#204f45;flex-shrink:0}
.modal .toggle-label{font-size:14px;line-height:1.7;gap:12px;align-items:flex-start}
.modal .toggle-label input[type="checkbox"]{width:18px;height:18px;min-width:18px;margin-top:3px}
.modal button:not(.close-modal){border-radius:4px;font-size:14px;min-height:44px;line-height:1.5;padding:11px 15px}
.modal .primary{background:#204f45;color:#fff}
.modal .primary:hover:not(:disabled){background:#173d35}
.modal .secondary{background:#fffefa;border-color:#bfcabe;color:#243d34}
.modal .text-button{font-size:13px;text-underline-offset:4px}
.modal button:disabled{opacity:.55;cursor:not-allowed}
.modal .danger{background:#963f35;color:#fff}
.modal button:focus-visible,.modal a:focus-visible,.modal summary:focus-visible{outline:3px solid #a57428;outline-offset:4px}
.modal input:focus,.modal select:focus,.modal textarea:focus{outline:2px solid #718c71;outline-offset:2px}
.modal .form-footer,.modal .claim-actions,.modal .weight-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;border-top:1px solid #cbd3c9;padding-top:18px;margin-top:24px}
.modal form>button[type="submit"]{margin-top:16px}
.modal .form-footer button[type="submit"],.modal .claim-actions button[type="submit"],.modal .weight-actions button[type="submit"]{margin-top:0}
.modal details{font-size:13px;line-height:1.75}
.modal summary{cursor:pointer;line-height:1.7}
.modal .notice{font-size:13px;line-height:1.75;border-radius:4px;border-color:#d5d7c8;background:#f3f1e5;padding:15px}
.modal .tag{font-size:12px;line-height:1.5;padding:5px 8px;border-radius:3px;white-space:normal;max-width:100%}
.modal .role-choices,.modal .profile-choices,.modal .selected-work-editor,.modal .publication-bonus{border-color:#cbd3c9;border-radius:4px;padding:18px;margin-block:22px}
.modal .role-choices legend,.modal .profile-choices legend,.modal .selected-work-editor legend,.modal .publication-bonus legend{font-size:13px;line-height:1.6;font-weight:600;padding:0 7px}
.modal .role-choices strong,.modal .participation-role strong{font-size:14px;line-height:1.65}
.modal .role-choices small,.modal .participation-role small{font-size:12px;line-height:1.75;color:#607268}
.modal .participation-role{gap:14px;padding-block:18px}
.modal .participation-role>label{min-width:180px;line-height:1.7;gap:12px}
.modal .participation-role input[type="checkbox"]{width:18px;height:18px;margin-top:4px}
.modal .participation-role>.eligibility-update{font-size:12px;min-height:40px;padding:9px 12px}
.modal .eligibility-check p{font-size:13px;line-height:1.75}
.modal .eligibility-source summary,.modal .eligibility-source p{font-size:12px!important;line-height:1.7}
/* Profile import and claim details use the same paper and border treatment. */
.modal .import-source,.modal .import-suggestion,.modal .publication-preview,.modal .claim-profile{border:1px solid #cbd3c9;border-radius:4px;padding:20px;background:#f5f6ef}
.modal .import-suggestion{background:#fffefa}
.modal .import-source h3{margin-top:0}
.modal .file-picker{font-size:13px;line-height:1.7;gap:10px}
.modal .import-suggestion p,.modal .import-suggestion blockquote{font-size:13px;line-height:1.8;color:#52675a}
.modal .import-suggestion details{font-size:12px;line-height:1.7}
.modal .import-suggestion blockquote{border-color:#8ba28b;margin:16px 0;padding-left:14px}
.modal .claim-dialog{gap:20px}
.modal .claim-dialog>.eyebrow{margin-bottom:-10px}
.modal .claim-dialog h2{margin-bottom:0}
.modal .claim-profile h3{margin:0 0 10px;font-size:22px}
.modal .claim-profile .claim-affiliation{font-size:13px;line-height:1.7}
.modal .claim-note{margin:0}
.modal .claim-choice{border-color:#cbd3c9;border-radius:4px;background:#fffefa;gap:12px;padding:18px}
.modal .claim-choice strong{font-size:14px;line-height:1.6}
.modal .claim-choice>span>span{font-size:13px;line-height:1.7;color:#52675a}
.modal .claim-choice strong small{font-size:11px}
.modal .claim-choice:focus-within{outline:2px solid #718c71;outline-offset:3px}
/* Matching preferences retain their drawer position and independent sliders. */
.modal.preferences-dialog{width:560px;max-width:100%;height:100dvh;max-height:100dvh;padding:32px;border-radius:0;border-width:0 0 0 1px}
.modal.preferences-dialog h2{font-size:26px;line-height:1.35;margin-right:58px}
.preferences-dialog .priority-heading strong{font-size:14px;line-height:1.65}
.preferences-dialog .importance-label{font-size:13px}
.preferences-dialog .priority-description{font-size:14px;line-height:1.7;color:#52675a}
.preferences-dialog .importance-scale{font-size:11px;line-height:1.6}
.preferences-dialog .effective-weight{font-size:12px;line-height:1.7}
.preferences-dialog .priority-field input[type="range"]{min-height:36px}
.modal.preferences-dialog .weight-actions{position:sticky;bottom:-32px;background:#fffefa;padding:18px 0;margin-bottom:0;z-index:2}
.preferences-dialog .preferences-help{font-size:13px;margin-top:20px;line-height:1.7}
@media(max-width:600px){
 .modal{max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:24px;border-radius:4px}
 .modal h2,.modal .claim-dialog h2{font-size:25px;margin-right:54px;line-height:1.35}
 .modal h3{font-size:19px}
 .modal .two-cols{grid-template-columns:minmax(0,1fr)}
 .modal .dialog-close-row .close-modal{width:44px;height:44px}
 .modal .field{margin-block:18px}
 .modal .form-footer,.modal .claim-actions,.modal .weight-actions{gap:10px}
 .modal .claim-actions{flex-direction:column;align-items:stretch}
 .modal .form-footer button,.modal .weight-actions button{flex:1 1 auto}
 .modal .import-source,.modal .import-suggestion,.modal .claim-profile{padding:17px}
 .modal .claim-choice{padding:16px;gap:12px}
 .modal .participation-role>label{min-width:0;flex-basis:100%}
 .modal .participation-role>.eligibility-update{margin-left:30px;max-width:calc(100% - 30px)}
 .modal.preferences-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;padding:24px;border-width:0}
 .modal.preferences-dialog h2{font-size:24px}
 .modal.preferences-dialog .weight-actions{bottom:-24px;padding:16px 0 max(16px,env(safe-area-inset-bottom))}
 .preferences-dialog .weight-grid{gap:24px}
}
@media(max-width:360px){
 .modal{padding:20px;max-width:calc(100% - 20px)}
 .modal h2,.modal .claim-dialog h2{font-size:23px}
 .modal button:not(.close-modal){font-size:13px;padding:10px 12px}
 .modal .claim-profile,.modal .import-source,.modal .import-suggestion{padding:15px}
 .modal.preferences-dialog{padding:20px;max-width:100%}
 .modal.preferences-dialog .weight-actions{bottom:-20px}
 .modal.preferences-dialog h2{font-size:23px}
}
.modal .toggle-label small{display:block;margin-top:4px}

/* A compact directory header keeps identity and matching scores together. */
.person-card.discovery-card{container-type:inline-size;container-name:profile-card}
.discovery-card .person-heading{grid-template-columns:minmax(0,1fr) minmax(180px,210px);gap:24px;align-items:start;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #d3dacd}
.discovery-card .person-name-row{display:flex;align-items:center;gap:13px;min-width:0}
.discovery-card .person-name-row .avatar{flex:none}
.discovery-card .person-heading h3{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;font-size:22px;min-width:0}
.discovery-card .person-heading .ownership-label{display:inline-block;grid-column:auto;padding:2px 7px;background:#f0f3e9;border-radius:3px;font-size:11px;font-weight:400;letter-spacing:0;white-space:nowrap}
.discovery-card .profile-claimed{color:#204f45;font-size:19px;font-weight:600;line-height:1;letter-spacing:0;flex:none}
.discovery-card .person-titles{margin-top:13px}
.discovery-card .person-heading .person-role{margin:0 0 4px;line-height:1.6}
.discovery-card .person-heading .score-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 18px;width:100%;min-width:0;margin:0;padding:4px 0 0;align-items:start;text-align:right;flex:none}
.discovery-card .person-heading .score-pair>div{align-items:flex-end;gap:7px}
.discovery-card .person-heading .ai-band,.discovery-card .person-heading .rule-score-unresolved{align-self:flex-end}
.discovery-card .person-heading .rule-score-basis{max-width:120px}
@container profile-card (max-width:480px){
 .discovery-card .person-heading{grid-template-columns:minmax(0,1fr) 100px;gap:14px}
 .discovery-card .person-name-row{gap:9px;align-items:flex-start}
 .discovery-card .person-name-row .avatar{width:36px;height:36px;font-size:16px}
 .discovery-card .person-heading h3{display:block;font-size:18px;line-height:1.35;letter-spacing:-.025em}
 .discovery-card .person-heading .ownership-label{vertical-align:middle;font-size:10px;margin-left:3px;padding:2px 5px}
 .discovery-card .profile-claimed{font-size:17px;white-space:nowrap}
 .discovery-card .person-titles{max-width:28ch;margin-top:12px}
 .discovery-card .person-heading .person-role,.discovery-card .person-heading .affiliation{display:block;overflow:visible;overflow-wrap:anywhere}
 .discovery-card .person-heading .person-role{font-size:13px;line-height:1.55;margin-bottom:6px}
 .discovery-card .person-heading .affiliation{font-size:12px;line-height:1.55}
 .discovery-card .person-heading .score-pair{grid-template-columns:minmax(0,1fr);justify-self:end;max-width:100px;padding-top:0;gap:18px;text-align:right}
 .discovery-card .person-heading .score-pair>div{gap:5px}
 .discovery-card .person-heading .score-pair .match-scope{font-size:11px}
 .discovery-card .person-heading .score-pair .personal-rule-score{font-size:20px}
 .discovery-card .person-heading .score-pair .rule-score-unresolved{font-size:12px}
 .discovery-card .person-heading .rule-score-basis{max-width:100%}
}
@media(max-width:680px){
 .discovery-card .person-heading{grid-template-columns:minmax(0,1fr) 100px;gap:14px}
 .discovery-card .person-name-row{gap:9px;align-items:flex-start}
 .discovery-card .person-name-row .avatar{width:36px;height:36px;font-size:16px}
 .discovery-card .person-heading h3{display:block;font-size:18px;line-height:1.35;letter-spacing:-.025em}
 .discovery-card .person-heading .ownership-label{vertical-align:middle;font-size:10px;margin-left:3px;padding:2px 5px}
 .discovery-card .profile-claimed{font-size:17px;white-space:nowrap}
 .discovery-card .person-titles{max-width:28ch;margin-top:12px}
 .discovery-card .person-heading .person-role,.discovery-card .person-heading .affiliation{display:block;overflow:visible;overflow-wrap:anywhere}
 .discovery-card .person-heading .person-role{font-size:13px;line-height:1.55;margin-bottom:6px}
 .discovery-card .person-heading .affiliation{font-size:12px;line-height:1.55}
 .discovery-card .person-heading .score-pair{grid-template-columns:minmax(0,1fr);justify-self:end;max-width:100px;padding-top:0;gap:18px;text-align:right}
 .discovery-card .person-heading .score-pair>div{gap:5px}
 .discovery-card .person-heading .score-pair .match-scope{font-size:11px}
 .discovery-card .person-heading .score-pair .personal-rule-score{font-size:20px}
 .discovery-card .person-heading .score-pair .rule-score-unresolved{font-size:12px}
 .discovery-card .person-heading .rule-score-basis{max-width:100%}
}

.discovery-card .profile-title-details{margin-bottom:20px}
.discovery-card .profile-title-details p{overflow-wrap:anywhere}
@container profile-card (max-width:260px){
 .discovery-card .person-heading{grid-template-columns:minmax(0,1fr) 88px;gap:12px}
 .discovery-card .person-name-row{gap:7px}
 .discovery-card .person-name-row .avatar{width:28px;height:28px;font-size:13px}
 .discovery-card .person-heading h3{font-size:17px}
 .discovery-card .person-heading .score-pair{max-width:88px;gap:16px}
 .discovery-card .person-heading .score-pair .personal-rule-score{font-size:18px}
 .discovery-card .person-heading .score-pair .rule-score-unresolved{font-size:12px}
}
.discovery-card .person-heading .score-pair .ai-band{max-width:100%}
.discovery-card .person-heading .score-pair .ai-update-pending{align-self:flex-end;max-width:100%}
@container profile-card (max-width:260px){
 .discovery-card .person-heading .score-pair .ai-band{font-size:12px;padding:3px 4px}
}

/* Score qualifiers follow the same right edge as the value they describe. */
.discovery-card .person-heading .score-pair>div>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
.discovery-card .person-heading .score-pair .rule-provisional{align-self:flex-end}
.discovery-card .person-heading .score-pair .rule-score-basis{align-self:flex-end;text-align:right}

/* Profile review has one editing flow and an in-page public preview. */
#main[data-workspace-page="profile"] .processing-notice.processing-reviewed{background:#e4efe5;border-color:#a8c2ac;color:#204f3d}
#main[data-workspace-page="profile"] .processing-reviewed>summary span{color:#3f6450}
#main[data-workspace-page="profile"] .form-layout{grid-template-columns:minmax(0,1fr)}
#main[data-workspace-page="profile"] .profile-assistance{border-top:1px solid #d3dacd;margin-top:24px;padding-top:18px}
#main[data-workspace-page="profile"] .profile-assistance>summary{font-size:14px}
#main[data-workspace-page="profile"] .profile-assistance p{max-width:760px}
#main[data-workspace-page="profile"] .profile-public-preview{margin:0 0 24px}
#main[data-workspace-page="profile"] .profile-public-preview>summary{font-size:16px;font-weight:600;line-height:1.6;cursor:pointer}
#main[data-workspace-page="profile"] .profile-public-preview[open]>summary{margin-bottom:16px}
.profile-preview-note{font-size:13px;line-height:1.7;color:#52675a;max-width:740px}
.preview-visibility{font-size:12px;line-height:1.7;color:#52675a;margin:0 0 14px}
.profile-preview-card{max-width:800px;margin:0 0 18px}
.discovery-card.profile-preview-card .person-heading{grid-template-columns:minmax(0,1fr)}
.profile-preview-card h4{font-size:12px;letter-spacing:0;line-height:1.6;color:#496852;margin:22px 0 10px}
.profile-preview-card p{font-size:14px;line-height:1.75;color:#52675a;overflow-wrap:anywhere}
.profile-preview-card .preview-category{font-size:12px;margin:14px 0 6px}
.profile-preview-card .selected-works-display{margin-top:22px}
.profile-preview-card .selected-works-display>summary{font-size:14px;line-height:1.7}
@media(max-width:680px){#main[data-workspace-page="profile"] .profile-public-preview{padding:20px}.profile-preview-card{padding:18px}}

/* Compact claimed-profile mark; its accessible label remains Profile claimed. */
.discovery-card .profile-claimed{display:inline-grid;place-items:center;width:15px;height:15px;min-width:15px;border-radius:50%;background:#204f45;color:#fff;font-size:11px;font-weight:700;line-height:1;letter-spacing:0;vertical-align:middle;transform:translateY(-1px)}

.review-evidence-json{white-space:pre-wrap;overflow-wrap:anywhere;}

/* UI audit: readable supporting copy and compact, navigable workspaces. */
#main .muted,#main .small.muted,#main .field small,#main .micro,
#main .principle p,#main .chat-context small,#main .message-meta span,
#main .field-origin,#main .profile-preview-note,#main .preview-visibility{color:#52675a}
#main .panel p,#main .panel small{color:#52675a}
#main[data-workspace-page="profile"] .processing-notice p,
#main[data-workspace-page="profile"] .processing-notice small{color:#665a35}
#main[data-workspace-page="profile"] .processing-reviewed p,
#main[data-workspace-page="profile"] .processing-reviewed small{color:#28523d}
#main .micro,#main .catalogue-card .micro,#main .metrics span{font-size:12px;line-height:1.5;letter-spacing:.02em}
#main .profile-public-preview .profile-preview-note,#main .profile-public-preview .preview-visibility{font-size:13px;color:#52675a}
#main[data-workspace-page="profile"] .profile-block .field{margin-block:12px}
#main[data-workspace-page="profile"] .field-origin{display:inline-flex;margin:3px 0 0 8px;font-size:12px;line-height:1.5;vertical-align:baseline}
#main[data-workspace-page="profile"] .field-origin.source{color:#755b25}
#main[data-workspace-page="profile"] .field-origin.user,#main[data-workspace-page="profile"] .field-origin.reviewed{color:#204f45}
#main[data-workspace-page="profile"] .field small{font-size:12px;line-height:1.5;margin-top:5px}
.claimed-legend{display:flex;align-items:baseline;gap:8px;font-size:13px;line-height:1.6;color:#52675a;margin:0 0 14px}
.claimed-key{display:inline-grid;place-items:center;flex:none;background:#204f45;color:white;border-radius:50%;width:15px;height:15px;font-size:11px;font-weight:700}
.admin-shortcuts{position:sticky;top:95px;z-index:5;display:flex;flex-wrap:wrap;gap:4px 16px;padding:10px 14px;margin-bottom:22px;background:#f5f3ed;border:1px solid #cbd3c9;border-radius:4px}
.admin-shortcuts button,.grant-editor-nav button{min-height:44px;font-size:13px}
#main[data-workspace-page="admin"] section[id]{scroll-margin-top:95px}
.grant-editor-nav{position:sticky;top:0;z-index:3;display:flex;flex-wrap:wrap;gap:4px 14px;padding:8px 0;background:#fffefa;border-bottom:1px solid #cbd3c9}
#grant-form h3[id]{padding-top:22px;scroll-margin-top:110px;border-top:1px solid #cbd3c9;margin-top:25px}
.dialog-help{font-size:13px;margin:16px 0}
.dialog-help summary{min-height:36px;cursor:pointer;color:#204f45}
#main[data-workspace-page="conversations"] .unread-count{display:inline-block;margin:4px 10px 4px 0;font-size:12px}
#main[data-workspace-page="conversations"] .unread-count[hidden]{display:none}
#main[data-workspace-page="conversations"] .message-meta time{color:#52675a;font-size:12px;white-space:normal}
.chat-timezone{font-size:12px!important;color:#52675a;margin:4px 0 0!important}
@media(max-width:680px){
 .admin-shortcuts{top:87px;gap:2px 12px;padding:5px 12px}
 #main[data-workspace-page="admin"] section[id]{scroll-margin-top:115px}
 #main[data-workspace-page="conversations"] .conversation-layout.chat-open{height:calc(100svh - 132px);min-height:420px;display:block}
 #main[data-workspace-page="conversations"] .chat-open .chat-pane{height:100%;display:flex;flex-direction:column;overflow:auto;overscroll-behavior:contain}
 #main[data-workspace-page="conversations"] .chat-header{padding:12px 18px}
 #main[data-workspace-page="conversations"] .chat-header h2{font-size:21px;margin:5px 0}
 #main[data-workspace-page="conversations"] .chat-header p{margin:4px 0;font-size:13px;line-height:1.5}
 #main[data-workspace-page="conversations"] .chat-context{padding:10px 18px}
 #main[data-workspace-page="conversations"] .messages{flex:1 0 130px;min-height:130px;padding:12px 18px;overflow:visible}
 #main[data-workspace-page="conversations"] .composer{position:sticky;bottom:0;flex-shrink:0;padding:10px 14px max(10px,env(safe-area-inset-bottom));background:#fffefa;z-index:4}
 #main[data-workspace-page="conversations"] .chat-back{margin:3px 12px;min-height:40px;flex-shrink:0}
 #main[data-workspace-page="conversations"] .chat-header,#main[data-workspace-page="conversations"] .chat-context,#main[data-workspace-page="conversations"] .group-controls{flex-shrink:0}
 .app-header-actions button{min-height:44px}
}
.timestamp-button{border:0;background:none;padding:4px 0;color:#52675a;font:inherit;text-align:left;cursor:pointer;min-height:28px}
.timestamp-button:focus-visible{outline:2px solid #204f45;outline-offset:2px}
@media(max-width:680px){
 #main[data-workspace-page="conversations"] .conversation-layout.chat-open{height:calc(100dvh - 176px)}
 .workspace:has(.app-demo-controls) #main[data-workspace-page="conversations"] .conversation-layout.chat-open{height:calc(100dvh - 224px)}
}
#main[data-workspace-page="conversations"] .message-meta{color:#52675a}
@media(max-width:680px){
 #main[data-workspace-page="conversations"] .chat-open .messages{flex:1 1 auto;min-height:120px;overflow:auto;overscroll-behavior:contain}
 #main[data-workspace-page="conversations"] .chat-open .group-controls{padding:10px 18px}
 #main[data-workspace-page="conversations"] .chat-open .group-controls summary span{display:inline;margin-left:8px;font-size:12px;color:#52675a}
}
#main .notice,.modal .notice{color:#665a35}
#main[data-workspace-page="profile"] .processing-reviewed{color:#204f3d}
#main .metrics small{color:#52675a;font-size:12px;line-height:1.5}
#main .discovery-card .score-pair .match-scope,#main .discovery-card .ai-update-pending,
#main .discovery-card .rule-provisional,#main .discovery-card .rule-score-basis,
#main .catalogue-card .grant-meta-label{font-size:12px;line-height:1.5;color:#52675a}
/* Lifecycle badges stay on a single line; the header may wrap as a unit. */
.grant-card .card-top .open-label{white-space:nowrap;max-width:none;flex-shrink:0}

#create-grant-form{max-width:740px}#create-grant-form .field{margin:20px 0}.grant-submission{padding:22px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.grant-submission h3{margin-bottom:10px}.grant-submission li{margin:8px 0}

.match-review-status{margin:20px 0 28px}.match-review-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.match-review-counts>div{padding:20px;border:1px solid var(--line);border-radius:6px;overflow-wrap:anywhere}.match-review-counts span,.match-review-counts strong,.match-review-counts small{display:block}.match-review-counts span{font-size:13px}.match-review-counts strong{font-size:34px;margin:8px 0;line-height:1.2}.match-review-counts small{font-size:12px;color:var(--muted)}.outdated-match-reviews{margin:16px 0}.outdated-match-reviews .admin-grant{gap:16px}.outdated-match-reviews .admin-grant>div{min-width:0;overflow-wrap:anywhere}@media(max-width:650px){.match-review-counts{grid-template-columns:1fr}.outdated-match-reviews .admin-grant{align-items:flex-start;flex-wrap:wrap}}
.match-review-counts>.review-stat{padding:20px;border:1px solid var(--line);border-radius:8px;text-align:left;background:var(--white);overflow-wrap:anywhere;transition:border-color .15s,background .15s}.match-review-counts>.review-stat:hover{border-color:#a7bba1;background:#f5f8ef}.match-review-counts .review-stat-link{margin-top:16px;font-size:12px;color:var(--green);text-decoration:underline;text-underline-offset:3px}.review-breakdown-dialog{width:840px}.review-breakdown-filters{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0 8px}.review-breakdown-filters select,.review-breakdown-filters input{width:100%;min-width:0}.review-person{border:1px solid var(--line);border-radius:8px;margin:10px 0;background:#fff}.review-person>summary{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:17px 18px;cursor:pointer;font-weight:600;list-style:none}.review-person>summary::before{content:'+';color:var(--green)}.review-person[open]>summary::before{content:'−'}.review-person>summary span:first-of-type{flex:1;overflow-wrap:anywhere}.review-person>summary span:last-child{font-size:12px;font-weight:400;color:var(--muted);white-space:nowrap}.review-person>div{padding:0 18px}.review-breakdown-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid var(--line)}.review-breakdown-row>div{min-width:0;overflow-wrap:anywhere}.review-breakdown-row strong{display:block;font-size:13px;line-height:1.6;font-weight:500}.review-breakdown-row small{display:block;font-size:11px;line-height:1.6;color:var(--muted);margin-top:4px}.review-breakdown-row button{flex-shrink:0}.review-breakdown-row .review-source-issues{color:#8a6741}.review-breakdown-empty{padding:24px 0}.review-call-group{margin-top:24px}@media(max-width:600px){.review-breakdown-filters{grid-template-columns:1fr;gap:0}.review-breakdown-row{align-items:flex-start;flex-direction:column}.review-person>summary{padding:15px 13px;gap:10px}.review-person>div{padding:0 13px}}

/* Invitation status beside sign-in and account creation. */
.auth-shell .auth-invitation{border:1px solid #cbd3c9;border-left:3px solid #204f45;border-radius:4px;background:#f1f4eb;padding:14px 16px;margin:0 0 24px;font-size:13px;line-height:1.65}
.auth-shell .auth-invitation strong{font-weight:600;color:#243d34}
.auth-shell .auth-invitation p{margin:6px 0 0;color:#52675a}
.auth-shell .auth-invitation a{font-weight:550;text-decoration:underline;text-underline-offset:3px}


.auth-shell .auth-card .auth-link-button{display:block;text-align:center;text-decoration:none}
.auth-shell .auth-card input[readonly]{background:#f1f4eb;color:#52675a}

/* Quick discovery control in the Admin researcher directory. */
.admin-discovery-switch{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:9px 13px;border:1px solid #bfcabe;border-radius:5px;background:#fffefa;color:#243d34;font-size:13px;line-height:1.5;cursor:pointer}
.admin-discovery-switch strong{font-weight:600}
.discovery-switch-track{position:relative;flex:none;width:36px;height:22px;border-radius:12px;background:#c5cfc3;transition:background .15s}
.discovery-switch-track:after{content:'';position:absolute;width:16px;height:16px;top:3px;left:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #243d3426;transition:transform .15s}
.admin-discovery-switch[aria-checked="true"] .discovery-switch-track{background:#204f45}
.admin-discovery-switch[aria-checked="true"] .discovery-switch-track:after{transform:translateX(14px)}
.admin-discovery-switch:hover{background:#f1f4eb}
.admin-discovery-switch:focus-visible{outline:3px solid #a57428;outline-offset:4px}
.admin-discovery-switch:disabled{opacity:.6;cursor:wait}
@media(prefers-reduced-motion:reduce){.discovery-switch-track,.discovery-switch-track:after{transition:none}}
/* Persistent validation feedback spans both columns of the profile editor. */
.form-error-summary{grid-column:1 / -1;min-width:0;width:100%;box-sizing:border-box;border:2px solid #a52b26;border-radius:12px;background:#fff4f2;color:#70201c;padding:18px 20px;margin:0 0 20px;overflow-wrap:anywhere}
.form-error-summary:focus{outline:3px solid #70201c;outline-offset:3px}
.form-error-summary h2{font-size:1.125rem;line-height:1.4;margin:0 0 8px;color:#70201c;letter-spacing:normal}
.form-error-summary ul{margin:0;padding-left:1.3em;display:block}
.form-error-summary li{margin:6px 0;line-height:1.5;color:#70201c}
.form-error-summary a{color:#70201c;font-weight:650;text-decoration:underline;text-underline-offset:3px}
.form-error-summary a:focus-visible{outline:3px solid #70201c;outline-offset:3px}
.form-field-error{display:block;color:#a52b26;font-size:.875rem;font-weight:600;line-height:1.5;margin-top:4px;overflow-wrap:anywhere}
.field [aria-invalid="true"]{border-color:#a52b26;border-width:2px}
.composer:has(>.form-error-summary){display:grid;grid-template-columns:minmax(0,1fr) auto}
.composer:has(>.form-error-summary)>button{grid-column:2;grid-row:2}
.composer>.form-error-summary{margin-bottom:4px}
.composer>.form-field-error{grid-column:1 / -1}
.group-controls form:has(>.form-error-summary){flex-wrap:wrap}
.group-controls form>.form-error-summary{flex-basis:100%}

.auth-card form>.claim-choice{margin:16px 0}

/* Invitation onboarding and private source uploads. */
.auth-shell .auth-card.signup-card{max-width:680px}
.signup-card .two-cols{gap:0 20px;grid-template-columns:repeat(2,minmax(0,1fr))}
.signup-eligibility{margin:24px 0;padding:18px 0;border-block:1px solid var(--line,#d3dacd)}
.signup-eligibility summary{cursor:pointer;font-size:14px;font-weight:600}
.signup-eligibility .profile-choices{margin-top:20px;min-width:0}
.signup-eligibility .profile-choices input{min-height:0!important;width:auto}
.signup-group-fields{margin:12px 0;padding:18px;border:1px solid var(--line)}
.signup-group-fields[hidden]{display:none}
.signup-invite-panel{max-width:850px}
.signup-invite-list .admin-grant{gap:20px;align-items:flex-start}
.signup-invite-list .admin-grant>div{min-width:0;overflow-wrap:anywhere}
.source-file-list{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.source-file-list ul{list-style:none;padding:0}
.source-file-list li{padding:10px 0;overflow-wrap:anywhere}
.source-file-list li small{display:block;color:var(--muted)}
.owner-source-panel input[type=file]{max-width:100%;min-width:0}
.onboarding-actions{margin-top:24px;border-top:1px solid var(--line);padding-top:24px}
.profile-source-documents>summary{cursor:pointer;font-weight:600}
@media(max-width:650px){.signup-card .two-cols{grid-template-columns:minmax(0,1fr)}.signup-invite-list .admin-grant{flex-wrap:wrap}.signup-group-fields{padding:14px}.auth-shell .auth-card.signup-card{padding-inline:18px}}

/* Keep registration focused on four essentials; documents can wait. */
.auth-shell .signup-card>p{margin-bottom:18px}
.auth-shell .signup-card .field{margin:14px 0;gap:6px}
.auth-shell .signup-card .field input{min-height:44px;padding:10px 11px}
.signup-invite-accepted{padding:10px 12px;border:1px solid #d4dfd4;border-radius:4px;background:#f1f5ed;font-size:13px!important;color:#285346!important;line-height:1.5!important}
.signup-invite-accepted small{display:block;margin-left:19px;color:#607268;font-size:11px}
.signup-invite-accepted>span{margin-right:5px;font-weight:700}
.signup-password-field>label{font-size:13px}
.signup-password-control{display:flex;min-width:0;align-items:stretch}
.auth-shell .signup-card .signup-password-control>input{flex:1;min-width:0;width:100%;border-radius:4px 0 0 4px}
.signup-password-toggle{flex:none;min-width:54px;min-height:44px;padding:6px 10px;border:1px solid #bfcabe;border-left:0;border-radius:0 4px 4px 0;background:#f3f6ef;color:#204f45;font-size:12px;font-weight:600;cursor:pointer}
.signup-password-toggle:focus-visible{outline:3px solid #204f45;outline-offset:2px;z-index:1}
.signup-card .signup-eligibility{margin:18px 0;padding:15px 0}
.auth-shell .signup-card .signup-privacy-note{margin:14px 0;font-size:12px}
.auth-shell .signup-card .signup-terms{margin-top:12px;font-size:11px}
.owner-source-panel .eyebrow{font-size:12px;letter-spacing:.04em;color:var(--muted)}
.source-selected-files{padding:12px 14px;margin:14px 0;border:1px solid var(--line);border-radius:4px;background:#f5f7f1;overflow-wrap:anywhere}
.source-selected-files[hidden],[data-skip-upload][hidden]{display:none}
.source-selected-files p{font-size:13px;margin:0 0 6px;font-weight:600}
.source-selected-files ul{margin:0;padding-left:18px;font-size:12px;color:var(--muted)}
.source-selected-files button{margin-top:6px}
.owner-source-panel .onboarding-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:18px;padding-top:18px}
.onboarding-later-note{margin-top:12px!important}
.onboarding-verification{max-width:780px;margin:18px 0;padding:14px 0;color:var(--muted);font-size:13px;line-height:1.6}
@media(max-width:650px){.signup-card .signup-invite-accepted{padding:9px 10px}.auth-shell .signup-card .auth-switch{margin:18px 0 12px;padding-top:16px}.owner-source-panel .onboarding-actions{align-items:stretch;flex-direction:column}.owner-source-panel .onboarding-actions>button{width:100%;min-height:44px}}

/* Status badges keep their words together without squeezing the identity column. */
.discovery-card .person-heading{grid-template-columns:minmax(0,1fr) minmax(210px,230px)}
.discovery-card .person-heading .score-pair{grid-template-columns:minmax(max-content,1fr) minmax(0,1fr)}
.discovery-card .person-heading .score-pair .ai-update-pending{white-space:nowrap;overflow-wrap:normal;max-width:none;flex-shrink:0}
@container profile-card (max-width:480px){
 .discovery-card .person-heading{grid-template-columns:minmax(0,1fr) 112px}
 .discovery-card .person-heading .score-pair{grid-template-columns:minmax(0,1fr);max-width:112px}
}
@media(max-width:680px){
 .discovery-card .person-heading{grid-template-columns:minmax(0,1fr) 112px}
 .discovery-card .person-heading .score-pair{grid-template-columns:minmax(0,1fr);max-width:112px}
}

/* Invitation recovery controls remain usable on narrow screens. */
#admin-claim-invitations .section-title,#admin-claim-invitations .admin-grant{flex-wrap:wrap;gap:12px}
#admin-claim-invitations .admin-grant>div{min-width:0;overflow-wrap:anywhere}
#admin-claim-invitations .card-actions,.signup-invite-list .card-actions{flex-wrap:wrap;justify-content:flex-start;gap:10px}

/* Collaborator cards arrive in small batches without moving existing cards. */
.collaborator-loading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:16px 0;padding:14px 0;min-height:66px;border-top:1px solid var(--line);color:var(--muted)}
.collaborator-loading>span{min-width:0;display:grid;gap:5px;overflow-wrap:anywhere}
.collaborator-loading strong{font-size:13px;color:var(--ink);font-weight:600}
.collaborator-loading small{font-size:12px;line-height:1.5}
.collaborator-loading-button{display:inline-flex;align-items:center;gap:9px;opacity:.8!important;cursor:default!important}
.collaborator-spinner{display:inline-block;flex:none;width:14px;height:14px;border:2px solid #bbcbbf;border-top-color:var(--green);border-radius:50%;animation:collaborator-spin .8s linear infinite}
.collaborator-detail-feedback{font-size:13px;line-height:1.6;margin:16px 0;overflow-wrap:anywhere}
.collaborator-detail-feedback .collaborator-spinner{margin-right:6px;vertical-align:middle}
[data-collaborator-detail-body]{min-width:0;overflow-wrap:anywhere}
@keyframes collaborator-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.collaborator-spinner{animation:none}}
@media(max-width:650px){.collaborator-loading{align-items:flex-start;gap:12px}.collaborator-loading button{min-height:44px;max-width:100%;white-space:normal}}
