.plan-tour-invite{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;padding:14px 18px;margin:0 0 16px;border:1px solid #d9e5dc;border-radius:12px;background:#f3f7f0;color:#3e6052;font-size:14px;line-height:1.5}
.plan-tour-invite p{margin:0;flex:1}
.tour-invite-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;flex-shrink:0}
.plan-tour-invite .btn{font:inherit;font-weight:600;min-height:44px;padding:10px 16px;white-space:nowrap}
.plan-tour-invite .textbtn{font:inherit;color:#587267;padding:8px 0;min-height:44px;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.help-orientation{display:flex;flex-wrap:wrap;gap:8px;padding:0 20px 12px;flex-shrink:0}
.help-orientation .help-action{font-size:12px}
#planTour{position:fixed;inset:auto;margin:0;padding:0;border:0;width:var(--tour-width,100vw);height:var(--tour-height,100dvh);max-width:none;max-height:none;background:transparent;overflow:hidden;color:#263f36;box-shadow:none}
#planTour::backdrop{background:transparent}
.tour-spotlight{position:absolute;border-radius:10px;border:2px solid #a0c987;box-sizing:border-box;pointer-events:none}
.tour-coachmark{position:absolute;box-sizing:border-box;width:min(380px,calc(100% - 32px));max-height:calc(100% - 32px);overflow:auto;overscroll-behavior:contain;padding:20px;border:1px solid #d5e3d9;background:#fffefb;border-radius:16px;box-shadow:0 12px 35px #102f3433}
.tour-coachmark header{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#5d746a;margin-bottom:12px}
.tour-coachmark .textbtn{font:inherit;color:#315e4c;min-height:36px;text-decoration:underline;text-underline-offset:3px;padding:4px 0}
.tour-coachmark h2{font-size:21px;line-height:1.25;letter-spacing:-.4px;margin:0 0 10px;color:#174d42}
.tour-coachmark h2:focus{outline:none}
.tour-coachmark p{font-size:14px;line-height:1.55;margin:0 0 18px;color:#526c60}
.tour-coachmark footer{display:flex;align-items:center;justify-content:space-between;gap:16px}
.tour-coachmark footer .btn{margin-left:auto;font:inherit;font-size:14px;min-height:44px;padding:10px 18px}
.tour-coachmark [hidden]{display:none!important}
.plan-tour-invite button:focus-visible,.tour-coachmark button:focus-visible{outline:3px solid #80ac91;outline-offset:3px}
@media(max-width:700px){.plan-tour-invite{flex-direction:column;align-items:flex-start;font-size:14px;padding:14px;gap:10px}.tour-invite-actions{max-width:100%}.tour-coachmark{padding:18px}.tour-coachmark header .textbtn{min-height:40px}.tour-coachmark footer .textbtn{min-height:44px}}
@media(prefers-reduced-motion:reduce){#planTour *{scroll-behavior:auto!important}}
/* The tour explains this navigation; other dialogs continue to hide it. */
@media(max-width:800px), (max-width:1400px) and (pointer:coarse){
 body:has(#planTour[open]):not(.settings-open) #mobileResultNav:not([hidden]){display:grid}
}
#planTour .tour-coachmark footer{flex-direction:row;font-size:14px;margin:0;padding:0;border:0;background:transparent}

.tour-shade,.tour-highlights{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}

/* First-run orientation floats beneath the answer without a modal backdrop. */
#planTourWelcome{position:fixed;z-index:75;box-sizing:border-box;margin:0;padding:18px 22px;border:1px solid #b9d1c3;border-radius:20px;background:#fffefb;color:#263f36;box-shadow:0 12px 36px #102f3433;text-align:center;max-height:calc(100dvh - 100px);overflow:auto}
#planTourWelcome[hidden]{display:none!important}
#planTourWelcome .tour-welcome-eyebrow{margin:0 0 10px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#637b6e}
#planTourWelcome h2{margin:0 0 12px;font-size:22px;line-height:1.2;letter-spacing:-.4px;color:#174d42}
#planTourWelcomeText{margin:0;color:#526c60;font-size:15px;line-height:1.55}
#planTourWelcome .tour-welcome-actions{display:flex;align-items:center;justify-content:center;gap:8px 16px;margin-top:12px;flex-wrap:wrap}
#planTourWelcome .btn{min-height:44px;padding:11px 20px;font-size:14px;white-space:nowrap}
#planTourWelcome .textbtn{min-height:44px;padding:8px;font-size:13px;color:#526c60;text-decoration:underline;text-underline-offset:3px}
#planTourWelcome button:focus-visible{outline:3px solid #80ac91;outline-offset:3px}
#planTourWelcome .tour-welcome-compact,#planTourWelcome .tour-welcome-short{display:none}
#planTourWelcome .tour-welcome-close{position:absolute;top:8px;left:8px;width:44px;height:44px;min-width:44px;padding:0;font-size:24px;text-decoration:none;border-radius:8px}
#planTourWelcome .tour-welcome-full{padding:0 30px}
#planTourWelcome .tour-welcome-close:hover{background:#edf3ee}
#planTourWelcome.is-compact{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:10px;text-align:left;padding:10px 12px;border-radius:12px;overflow:visible}
#planTourWelcome.is-compact .tour-welcome-full{display:none}
#planTourWelcome.is-compact .tour-welcome-close{position:static}
#planTourWelcome.is-compact .tour-welcome-compact{display:block;font-size:13px;line-height:1.4;font-weight:600;margin:0;color:#345e4e}
#planTourWelcome.is-compact .tour-welcome-actions{display:flex;flex-wrap:nowrap;margin:0}
#planTourWelcome.is-compact .btn{padding:9px 10px;font-size:12px}
@media(max-width:600px){#planTourWelcome{padding:18px}#planTourWelcome h2{font-size:21px}#planTourWelcome.is-compact{padding:10px 8px;gap:8px}}

/* Keep the reading position and navigation steady throughout the starting tour. */
.tour-coachmark{display:flex;flex-direction:column;overflow:hidden}
.tour-coachmark>header,.tour-coachmark>footer{flex:0 0 auto}
.tour-coachmark-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin-bottom:12px}
.tour-spotlight{border:3px solid #a0c987;box-shadow:0 0 0 2px #fff}

#planTour [data-tour-next]{min-width:90px}

@media(max-width:380px){#planTourWelcome.is-compact .tour-welcome-long{display:none}#planTourWelcome.is-compact .tour-welcome-short{display:inline}}
