/* Shared input-file and result affordances; topic identity remains separate from risk. */
.workspace-shelf{position:sticky;top:84px;z-index:8;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 18px;padding:14px 16px;margin:0 0 22px;background:#fff;color:#20392c;border:1px solid #afc0b5;border-radius:14px;box-shadow:0 4px 18px #19372d0d;isolation:isolate}
.workspace-state{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:650;line-height:1.5}.workspace-state>[data-workspace-dot]{width:9px;height:9px;border-radius:50%;background:#456454;flex:none}.workspace-shelf[data-dirty=true] [data-workspace-dot]{background:#94600a}
.workspace-actions{display:flex;flex-wrap:wrap;gap:8px}.workspace-shelf .btn{min-height:44px;margin:0;padding:9px 13px;line-height:1.3;font-size:14px}.workspace-shelf .btn:disabled{opacity:1;background:#e8ece9;color:#4a5b51;border-color:#8e9f95;cursor:wait}
.workspace-notice{flex-basis:100%;font-size:14px;line-height:1.55;margin:0;color:#3e594b}.workspace-notice:empty{display:none}.workspace-notice.is-error{color:#862d27}
.workspace-help{flex-basis:100%;font-size:14px;margin:0;border:0;padding:0;background:transparent;color:#3e594b}.workspace-help>summary{cursor:pointer;min-height:28px;line-height:28px;width:fit-content}.workspace-help p{font-size:14px;max-width:80ch;line-height:1.6;margin:4px 0}
.tool-page input:not([type=checkbox]):not([type=radio]),.tool-page select,.tool-page textarea{font-size:16px;line-height:1.5;min-height:44px}.tool-page textarea{resize:vertical}.tool-page input[aria-invalid=true],.tool-page select[aria-invalid=true]{outline:2px solid #9b3129;border-color:#9b3129;outline-offset:2px}
.tool-page :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #195982;outline-offset:3px}.tool-page :is(.tool-output,.tool-feedback,.tool-panel,.tool-guide,[id^=guide-section]){scroll-margin-top:220px}
.document-filters,.finder-categories{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 8px}.document-filters .btn,.finder-categories button{min-height:44px}.document-filters [aria-pressed=true],.finder-categories [aria-pressed=true]{color:#fff;background:#254e3b;border-color:#254e3b}.document-filters+p{font-size:14px;line-height:1.55;color:#405b4b;margin:8px 0 20px}
.tool-finder-controls{border:1px solid #b3c5b7;border-radius:16px;background:#f3f8f4;color:#20392c;padding:20px}.tool-finder-controls label{font-size:16px;font-weight:650}.tool-finder-controls input{display:block;margin-top:8px;width:100%;max-width:42rem}.tool-finder-controls [role=status]{font-size:14px;color:#3e594b}.finder-empty{padding:24px;background:#f4f7f5;border:1px dashed #9ab5a4;border-radius:12px;color:#274133}
.tool-route-nav{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:thin;max-width:100%;padding:5px 3px 12px;scroll-snap-type:x proximity}.tool-route-nav>a{flex:none;scroll-snap-align:start}.tool-route-nav>a[aria-current=page]{box-shadow:inset 0 -3px var(--tool-color,#254e3b)}
.guide-contents{padding:14px 18px;background:#f4f8f5;color:#253e30;border:1px solid #bbccbf;border-radius:12px;margin:20px 0}.guide-contents summary{font-size:16px;font-weight:700;min-height:32px;line-height:32px;cursor:pointer}.guide-contents ol{columns:2;column-gap:32px;padding-left:20px;margin-bottom:4px}.guide-contents li{break-inside:avoid;margin:0 0 8px}.guide-contents a{display:inline-block;font-size:15px;line-height:1.5;color:#20543d;min-height:32px;padding:4px 0}
.tool-page .tool-output table th:first-child,.tool-page .budget-board table th:first-child{position:sticky;left:0;z-index:1;background:#f2f7f3;color:#243e31;box-shadow:1px 0 0 #bdcec2}.tool-page .tool-output table th:first-child{min-width:125px;max-width:215px;overflow-wrap:anywhere}
[hidden]{display:none!important}
@media(max-width:680px){.workspace-shelf{position:relative;top:auto;padding:12px;margin-bottom:16px;gap:7px}.workspace-state{flex-basis:100%}.workspace-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-actions [data-workspace-result]{grid-column:1/-1}.workspace-help{margin-top:2px}.tool-page :is(.tool-output,.tool-feedback,.tool-panel,.tool-guide,[id^=guide-section]){scroll-margin-top:24px}.guide-contents ol{columns:1}.tool-finder-controls{padding:15px}.tool-page .tool-output table th:first-child{max-width:150px;min-width:110px}}
@media(prefers-reduced-motion:reduce){.tool-route-nav{scroll-behavior:auto}}
@media print{.workspace-shelf,.document-filters,[data-doc-filter-status],.guide-contents,.tool-finder-controls{display:none!important}.tool-page .tool-output table th:first-child,.tool-page .budget-board table th:first-child{position:static;box-shadow:none}.tool-page [data-document][hidden]{display:block!important}}

.workspace-return{margin:18px 0 6px;min-height:44px;font-size:15px}
@media print{.workspace-return{display:none!important}}
@media(max-height:620px){.workspace-shelf{position:relative;top:auto}}
