/* R2 task surfaces retain the R1 system and useful mobile density. */
.local-notice{padding:.8rem 1rem;border-left:3px solid var(--primary,#005a91);background:#edf4f8;margin:0 0 1.4rem;max-width:75ch;font-size:.95rem}
.tool-toolbar{display:flex;align-items:flex-end;gap:1rem;justify-content:space-between}.tool-toolbar .field{flex:1;max-width:38rem}.tool-toolbar input{width:100%}
.field{display:flex;flex-direction:column;gap:.4rem}.field label{font-weight:650}.field input,.field select,.field textarea{width:100%;min-height:46px;border:1px solid #8b9eaa;border-radius:6px;background:#fff;color:#162d3b;padding:.65rem .75rem;font:inherit}.field textarea{resize:vertical}
.wallet-summary{display:flex;align-items:center;justify-content:space-between;gap:.7rem;border-bottom:1px solid #d4e0e8;padding:.6rem 0}.wallet-summary p{margin:0}.tool-actions{display:flex;gap:.4rem;flex-wrap:wrap}
.reference-card{padding:1.4rem 0;border-bottom:1px solid #d4e0e8;overflow-wrap:anywhere}.reference-card h2{font-size:1.5rem;margin:.3rem 0 .5rem;line-height:1.25}.reference-location{margin:.3rem 0}.reference-notes{white-space:pre-wrap;max-width:70ch;color:#354d5e}.reference-actions{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;margin-top:.7rem}.reference-actions .text-link{min-height:44px;display:inline-flex;align-items:center;margin-right:auto}
.tool-footnote{max-width:75ch;color:#4b6272;font-size:.9rem;margin-top:1.4rem}.tool-footnote p{margin-bottom:.25rem}
dialog{border:1px solid #b8c9d3;border-radius:12px;max-width:35rem;width:calc(100% - 2rem);max-height:calc(100dvh - 2rem);padding:1.5rem;overflow:auto;color:#162d3b;background:#fff;box-shadow:0 16px 60px #162d3b33}dialog::backdrop{background:#102c4266}.dialog-heading{display:flex;align-items:center;gap:1rem;justify-content:space-between;margin-bottom:1rem}.dialog-heading h2{font-size:1.5rem;margin:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.field.full{grid-column:1/-1}.form-footer{display:flex;gap:.65rem;flex-wrap:wrap;margin-top:1.2rem}.form-alert{border-left:3px solid #986000;background:#fff6df;padding:.8rem 1rem;margin:.7rem 0;color:#573b00}.field-error{font-size:.88rem;color:#a32626}.field-error:empty{display:none}[aria-invalid=true]{border-color:#aa2626!important}.danger-text{color:#962222!important}.danger-button{background:#9b2424!important;border-color:#9b2424!important;color:white!important}.optional{font-weight:400;color:#526674;font-size:.85rem}
.task-tabs{display:flex;gap:.4rem;border-bottom:1px solid #cbd9e2;flex-wrap:wrap;margin:0 0 1.5rem}.task-tabs a{padding:.75rem .8rem;min-height:44px;text-decoration:none;font-weight:600}.task-tabs [aria-current]{border-bottom:3px solid #005a91;color:#004674}
.service-unavailable{max-width:50rem;background:#edf4f8;padding:1.4rem;border-radius:8px;margin:1rem 0 1.6rem}.service-unavailable h2{font-size:1.55rem;margin:.7rem 0}.service-unavailable p{max-width:65ch}.preparation-panel{max-width:70ch;margin:1.3rem 0 2rem}.preparation-panel h2{font-size:1.4rem}#chosen-reference{border:1px solid #cbd9e2;padding:1rem;margin:1rem 0;border-radius:6px}#chosen-reference textarea{width:100%;font:inherit}
.r2-home-link{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0;border-bottom:1px solid #d4e0e8;margin-bottom:1rem}.r2-home-link p{margin:.2rem 0}.r2-home-link h2{font-size:1.3rem;margin:0}.r2-report-actions{display:flex;gap:.7rem;flex-wrap:wrap;margin:.8rem 0 1.2rem}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:960px){.wallet{max-width:62rem}.reference-card{position:relative;padding-right:17rem}.reference-actions{position:absolute;right:0;top:1.3rem;width:15rem}.reference-actions .text-link{flex-basis:100%}}
@media(max-width:600px){.tool-toolbar{display:grid;grid-template-columns:1fr;gap:.75rem}.tool-toolbar .button{width:100%}.wallet-summary{display:block}.wallet-summary>p{padding:.65rem 0}.tool-actions{justify-content:space-between}.tool-actions button{padding:.55rem .2rem;font-size:.9rem}.reference-card{padding:1.1rem 0}.reference-card h2{font-size:1.3rem}.reference-actions{gap:.35rem}.reference-actions .text-link{margin-right:.5rem}.task-tabs{gap:0}.task-tabs a{font-size:.88rem;padding:.7rem .5rem}.service-unavailable{padding:1rem}.r2-home-link{display:block}.r2-home-link .text-link{margin-top:.6rem}dialog{padding:1rem;width:calc(100% - 1rem);max-height:calc(100dvh - 1rem)}.dialog-heading h2{font-size:1.3rem}.form-footer .button{flex:1}.form-grid{gap:.8rem}.page-heading{padding-top:1.4rem!important;padding-bottom:1.2rem!important}.page-heading h1{font-size:clamp(1.9rem,8vw,2.7rem)!important}}
@media(prefers-reduced-motion:reduce){dialog{scroll-behavior:auto}}

.input-with-icon input{padding-left:42px}

#reference-empty{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center;align-items:center}#reference-empty h2,#reference-empty p{flex-basis:100%;margin:0}#reference-empty[hidden]{display:none}
