/* One compact summary belongs to the results section: sticky containment handles entry/exit without layout jumps. */
#results .contextSummary.exploreSummary{position:sticky;top:var(--sticky-header,0px);left:auto;right:auto;z-index:30;display:grid;grid-template-columns:minmax(190px,240px) minmax(0,1fr) auto;align-items:center;gap:14px;min-height:80px;width:100%;padding:12px 16px;margin:0 0 18px;border:1px solid #9cbba8;border-radius:15px;background:#f3faf5f5;box-shadow:0 6px 22px #163c2820;backdrop-filter:blur(18px);color:#315e43;transition:none}
#results .homePriorityControl{display:grid;gap:5px;font-size:11px;color:#456d54;min-width:0}#results .homePriorityControl>span{font-weight:500}#results .homePriorityControl select{font-size:14px;min-height:44px;padding:10px 12px;border:1px solid #94b29f;background:#fff;color:#234d34;border-radius:10px;width:100%}#results .homePrioritySummary{display:grid;gap:4px;min-width:0}#results .homePrioritySummary strong{font-size:14px;line-height:1.5;color:#315e43}#results .homePrioritySummary small{font-size:11px;line-height:1.6;white-space:normal;overflow:visible;text-overflow:clip;color:#50755e}#results .homeRequirementsButton{min-height:44px;gap:7px;padding:11px 14px;font-size:12px;color:#315e43;border:1px solid #a9c5b2;background:#e2efe6;white-space:nowrap}#results .homeRequirementsButton>.icon{width:17px;height:17px}.homePriorityNotice{font-size:13px;line-height:1.8;color:#4d7058;background:#e9f3eceb;border-left:3px solid #5e9b75;border-radius:0 8px 8px 0;padding:12px 15px;margin:0 0 17px}#homeResultContent{scroll-margin-top:calc(var(--sticky-header,0px) + var(--home-summary-height,100px) + 12px)}
/* Compact tile footprint by removing repeated winner copy and excess decoration, not touch-target size. */
#homePriorityTiles .discoveryGrid{gap:10px}#homePriorityTiles .discoveryCard{display:grid;grid-template-columns:32px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;row-gap:5px;padding:14px 12px;min-height:126px;align-content:center;transform:none}#homePriorityTiles .discoveryIcon{grid-row:1/3;grid-column:1;width:32px;height:32px;border-radius:10px;margin:0;align-self:center}#homePriorityTiles .discoveryIcon .icon{width:18px;height:18px}#homePriorityTiles .discoveryCard>strong{grid-column:2;font-size:12px;line-height:1.5;white-space:normal;margin:0;letter-spacing:0}#homePriorityTiles .discoveryCard>small{grid-column:2;font-size:11px;line-height:1.5;min-height:0;margin:0;max-width:none}#homePriorityTiles .discoveryArrow{position:absolute;top:5px;right:6px;font-size:12px}#homePriorityTiles .discoveryCard.selected .discoveryArrow{width:18px;height:18px}#homePriorityTiles .discoveryCard.selected .discoveryArrow>.icon{width:12px;height:12px}#homePriorityTiles .discoverySelection{grid-column:1/-1;margin:4px 0 0;font-size:10px;line-height:1.5}#homePriorityTiles .discoveryWinner{display:none}#homePriorityTiles .discoveryCard.selected{border-width:1px;box-shadow:inset 0 0 0 1px #3e7854}
html[data-theme=dark] #results .contextSummary.exploreSummary{background:#193527f5;border-color:#5d8a70;color:#e0f1e5}html[data-theme=dark] #results .homePriorityControl{color:#c7dece}html[data-theme=dark] #results .homePriorityControl select{background:#183325;color:#e6f5eb;border-color:#719981}html[data-theme=dark] #results .homePrioritySummary strong{color:#ddf1e4}html[data-theme=dark] #results .homePrioritySummary small{color:#c0d9ca}html[data-theme=dark] #results .homeRequirementsButton{color:#def0e4;border-color:#70967e;background:#294e37}html[data-theme=dark] .homePriorityNotice{background:#203b2cec;color:#d1e5d8;border-color:#82be98}
@media(max-width:1100px){#results .contextSummary.exploreSummary{grid-template-columns:minmax(170px,210px) minmax(0,1fr) auto;gap:10px;padding:10px 12px}#homePriorityTiles .discoveryCard{min-height:112px;padding:12px}#homePriorityTiles .discoveryCard>strong{font-size:13px}}
@media(max-width:600px){#results .contextSummary.exploreSummary{grid-template-columns:minmax(0,1fr) auto;gap:8px 11px;padding:10px 12px;margin-bottom:15px;min-height:0;border-radius:12px;top:var(--sticky-header,112px)}#results .homePriorityControl{grid-row:1;grid-column:1;font-size:10px;gap:3px}#results .homePriorityControl select{font-size:16px;padding:8px 10px}#results .homeRequirementsButton{grid-row:1;grid-column:2;font-size:11px;padding:10px;align-self:end}#results .homeRequirementsButton>.icon{width:16px;height:16px}#results .homePrioritySummary{grid-row:2;grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 12px}#results .homePrioritySummary strong{font-size:12px}#results .homePrioritySummary small{font-size:11px}#results .homeScopeNote{flex-basis:100%}.homePriorityNotice{font-size:12px;padding:10px 12px}#homePriorityTiles .discoveryGrid{gap:9px}#homePriorityTiles .discoveryCard{min-height:132px;padding:12px 11px;grid-template-columns:27px minmax(0,1fr);gap:4px 8px;align-content:start}#homePriorityTiles .discoveryIcon{width:27px;height:27px;margin-top:4px;align-self:start}#homePriorityTiles .discoveryIcon .icon{width:16px;height:16px}#homePriorityTiles .discoveryCard>strong{font-size:12px;line-height:1.45}#homePriorityTiles .discoveryCard>small{font-size:11px;line-height:1.5}#homePriorityTiles .discoverySelection{font-size:10px;margin-top:3px}}
@media(max-width:360px){#homePriorityTiles .discoveryCard{grid-template-columns:1fr;min-height:140px}#homePriorityTiles .discoveryIcon{display:none}#homePriorityTiles .discoveryCard>strong,#homePriorityTiles .discoveryCard>small,#homePriorityTiles .discoverySelection{grid-column:1}#results .homeRequirementsButton{font-size:10px;padding:10px 8px}}
@media(max-height:520px) and (orientation:landscape){#results .contextSummary.exploreSummary{grid-template-columns:minmax(170px,1fr) minmax(130px,1fr) auto;gap:9px;padding:6px 10px}#results .homePriorityControl{grid-column:1;grid-row:1}#results .homePriorityControl>span{display:none}#results .homePrioritySummary{grid-column:2;grid-row:1;display:block}#results .homeRequirementsButton{grid-column:3;grid-row:1;align-self:center}#results .homeScopeNote{display:none}}
@media(prefers-reduced-motion:reduce){#homePriorityTiles .discoveryCard,#results .contextSummary{transition:none;scroll-behavior:auto}}

body.dialogOpen #results .contextSummary.exploreSummary{display:grid!important;visibility:hidden;pointer-events:none}

/* A continuous three-step workspace: explicit direction without another fixed panel. */
.fitFlowNav{margin:0 0 22px;color:var(--text,#315e43)}.fitFlowNav>p{font-size:14px;margin:0 0 12px;line-height:1.6}.fitFlowNav>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.fitFlowNav button{display:flex;align-items:center;text-align:left;gap:10px;padding:13px;border:1px solid #a2bdaa;border-radius:14px;background:#eaf3ed;color:#315e43;min-height:72px}.fitFlowNav button>b{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:50%;background:#376f4e;color:#fff;font-size:15px}.fitFlowNav button>span{display:grid;gap:4px;flex:1;min-width:0}.fitFlowNav strong{font-size:14px;line-height:1.4}.fitFlowNav small{font-size:12px;line-height:1.5}.fitFlowNav button>.icon{width:16px;flex-shrink:0}.fitFlowNav button:focus-visible,.homePriorityReset button:focus-visible{outline:3px solid #5d9e76;outline-offset:3px}
#fitRequirements,#preferenceWorkbench{scroll-margin-top:calc(var(--sticky-header,112px) + 18px)}.fitRequirements .panelHeading{margin-bottom:16px}.fitStepFooter{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #8ba99570;padding-top:18px;margin-top:18px}.fitStepFooter p{margin:0;display:grid;gap:6px;font-size:14px;line-height:1.6}.fitStepFooter p>span{font-size:13px;max-width:570px}.fitStepFooter .button{flex-shrink:0;min-height:48px}.preferenceWorkbench .workbenchHeading p,.matchResultsPanel>p{font-size:14px;line-height:1.7;margin:10px 0}.fitQuickActions{flex-wrap:wrap}.fitRequirements h2:focus,.preferenceWorkbench h2:focus,.matchResultsPanel h2:focus{outline:2px solid #6eaa84;outline-offset:6px;border-radius:4px}
.homePriorityReset{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px}.homePriorityReset .button{min-height:44px;padding:10px 18px;border:1px solid #8bae98;border-radius:12px;background:#f1f7f3;color:#315e43}.homePriorityReset .button[aria-pressed=true]{background:#376f4e;color:#fff;border-color:#376f4e;box-shadow:inset 0 0 0 1px #d1ebdb}.homePriorityReset>span{font-size:12px;line-height:1.7;color:#456a52}
html[data-theme=dark] .fitFlowNav{color:#dae9df}html[data-theme=dark] .fitFlowNav button{background:#203b2c;color:#e2efe7;border-color:#62846d}html[data-theme=dark] .fitFlowNav button>b{background:#3f7653}html[data-theme=dark] .homePriorityReset>span{color:#c3d9cb}html[data-theme=dark] .homePriorityReset .button{background:#243d2d;color:#e1efe5;border-color:#749581}html[data-theme=dark] .homePriorityReset .button[aria-pressed=true]{background:#477e59;color:#fff}
@media(max-width:600px){.fitFlowNav>div{gap:6px}.fitFlowNav button{padding:10px 7px;gap:7px;flex-direction:column;text-align:center;justify-content:flex-start;min-height:103px}.fitFlowNav button>b{flex-basis:27px;width:27px;height:27px}.fitFlowNav strong{font-size:12px}.fitFlowNav small{font-size:11px}.fitFlowNav button>.icon{display:none}.fitFlowNav>p{font-size:13px}.fitStepFooter{flex-direction:column;align-items:stretch;gap:14px}.fitStepFooter .button{width:100%;justify-content:center;white-space:normal}.fitRequirements{padding:20px 16px}.fitStepFooter p{font-size:14px}.homePriorityReset{gap:8px}.homePriorityReset>span{flex:1;min-width:170px}.fitQuickActions>.button,.fitQuickActions>.textLink{min-height:44px}}

/* Reserve the existing compact mix summary above the result heading. */
#fitResultSection{scroll-margin-top:calc(var(--sticky-header,112px) + 85px)}
