/* Labor planner guide: "What to expect" sheet and the guided walkthrough that runs on the real page.
   FranWallet palette from DESIGN.md: evergreen #164f43, ink #173b32, muted #566b63, burnt orange #a94425, line #dce5df. */
.lg-dialog{position:fixed;inset:0;margin:auto;height:fit-content;width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:16px;background:#fff;color:#173b32;box-shadow:0 30px 80px rgba(16,40,32,.28);font-family:"DM Sans",system-ui,sans-serif;overflow:auto}
.lg-dialog::backdrop{background:rgba(14,34,28,.55);backdrop-filter:blur(2px)}
.lg-dialog h2,.lg-dialog h3,.lg-pop h3{font-family:"DM Sans",system-ui,sans-serif;font-weight:700;letter-spacing:-.015em;text-wrap:balance;outline:none}
.lg-shell{display:grid;gap:18px;padding:26px 28px 24px}
.lg-shell>header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.lg-kicker{font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#a94425}
.lg-shell h2{margin:4px 0 6px;font-size:26px;line-height:1.2}
.lg-lede{margin:0;font-size:15px;line-height:1.6;color:#566b63;max-width:56ch}
.lg-shell h3{margin:4px 0 0;font-size:16px}
.lg-x{width:44px;height:44px;flex:0 0 44px;border:1px solid #dce5df;border-radius:10px;background:#fff;font-size:22px;color:#566b63;cursor:pointer}
.lg-x:hover{background:#edf3ef}
.lg-expect{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.lg-expect div{padding:14px;border:1px solid #dce5df;border-radius:12px;background:#f5f7f4;display:grid;gap:3px;align-content:start;min-width:0}
.lg-expect small{font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#566b63}
.lg-expect b{font-size:16px}.lg-expect span{font-size:13.5px;color:#566b63;line-height:1.5}
.lg-flow{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));counter-reset:f;border:1px solid #dce5df;border-radius:12px;overflow:hidden}
.lg-flow li{counter-increment:f;padding:14px;display:grid;gap:4px;align-content:start;border-left:1px solid #dce5df;min-width:0}
.lg-flow li:first-child{border-left:0}
.lg-flow li::before{content:counter(f);width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#164f43;color:#fff;font-size:12px;font-weight:700;margin-bottom:4px}
.lg-flow b{font-size:14px}.lg-flow span{font-size:13px;line-height:1.5;color:#566b63}
.lg-success{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.lg-success li{position:relative;padding:10px 12px 10px 40px;border-radius:10px;background:#edf3ef;font-size:14px;line-height:1.5}
.lg-success li::before{content:"✓";position:absolute;left:12px;top:10px;width:20px;height:20px;border-radius:50%;background:#164f43;color:#fff;font-size:12px;display:grid;place-items:center}
.lg-final-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding-top:4px}
.lg-final-actions .btn{min-height:46px}
.lg-final-actions small{color:#566b63;font-size:13px}

/* Guided walkthrough */
.lg-spot{position:fixed;z-index:9998;border-radius:14px;box-shadow:0 0 0 9999px rgba(14,34,28,.5);pointer-events:none;transition:top .35s cubic-bezier(.2,.8,.2,1),left .35s cubic-bezier(.2,.8,.2,1),width .35s cubic-bezier(.2,.8,.2,1),height .35s cubic-bezier(.2,.8,.2,1);outline:2px solid #fff}
.lg-spot.lg-pulse{animation:lg-ring 1.2s ease 1}
@keyframes lg-ring{0%{outline-color:#fff;outline-offset:0}45%{outline-color:#f0b9a0;outline-offset:6px}100%{outline-color:#fff;outline-offset:0}}
.lg-tag{position:fixed;z-index:10000;padding:6px 11px;border-radius:999px;background:#a94425;color:#fff;font:600 12.5px/1.2 "DM Sans",system-ui,sans-serif;box-shadow:0 8px 20px rgba(169,68,37,.35);white-space:nowrap;pointer-events:none}
.lg-tag b{font-weight:800}
.lg-tag.lg-in{animation:lg-drop .5s cubic-bezier(.2,.9,.3,1.3) .25s both}
@keyframes lg-drop{from{opacity:0;transform:translateY(-10px) scale(.9)}to{opacity:1;transform:none}}
.lg-pop{position:fixed;z-index:9999;width:min(400px,calc(100vw - 16px));padding:16px 18px;border-radius:14px;background:#fff;color:#173b32;box-shadow:0 20px 50px rgba(16,40,32,.32);font-family:"DM Sans",system-ui,sans-serif;display:grid;gap:9px}
.lg-pop-head{display:flex;align-items:center;gap:10px}
.lg-pop-step{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#a94425;white-space:nowrap}
.lg-pop-progress{flex:1;height:4px;border-radius:4px;background:#e4ebe7;overflow:hidden}
.lg-pop-progress i{display:block;height:100%;width:0;background:#164f43}
@keyframes lg-fill{from{width:0}to{width:100%}}
.lg-pop h3{margin:0;font-size:18px;line-height:1.3}
.lg-pop p{margin:0;font-size:14px;line-height:1.55;color:#3f544c}
.lg-pop .lg-try{padding:8px 10px;border-radius:8px;background:#fff4ee;color:#8a3a1f;font-weight:600;font-size:13px}
.lg-action{justify-self:start;min-height:42px}
.lg-pop-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:2px;flex-wrap:wrap}
.lg-pop-actions span{display:flex;gap:6px}.lg-pop .btn{min-height:40px}
.lg-link{border:0;background:none;padding:8px 0;color:#566b63;font:600 13px "DM Sans",sans-serif;text-decoration:underline;cursor:pointer;min-height:40px}
.lg-counting{color:#a94425!important;transition:color .4s ease}

@media (max-width:760px){
  .lg-shell{padding:18px}
  .lg-expect{grid-template-columns:1fr}
  .lg-flow{grid-template-columns:1fr 1fr}
  .lg-flow li:nth-child(3){border-left:0}
  .lg-flow li:nth-child(n+3){border-top:1px solid #dce5df}
  .lg-shell h2{font-size:22px}
  .lg-tag{white-space:normal;max-width:calc(100vw - 16px)}
}
@media (prefers-reduced-motion:reduce){.lg-spot,.lg-tag,.lg-dialog *{animation:none!important;transition:none!important}}

/* v4: compact walkthrough card, math chips, slimmer source tag */
.lg-pop{width:min(370px,calc(100vw - 16px));padding:16px 16px 14px;border-radius:18px;gap:8px;box-shadow:0 24px 60px -20px rgba(16,40,32,.45),0 0 0 1px rgba(16,40,32,.06)}
.lg-pop-head{gap:10px}
.lg-pop-step{font-size:12px;letter-spacing:0;text-transform:none;color:#66766f;font-variant-numeric:tabular-nums}
.lg-x-sm{width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:#66766f;font-size:20px;cursor:pointer}
.lg-x-sm:hover{background:#f1f6f3}
.lg-pop h3{font-size:19px;letter-spacing:-.015em;color:#11241d}
.lg-pop p{font-size:14px;color:#4a5b54}
.lg-math{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.lg-math span{padding:5px 9px;border-radius:8px;background:#f1f6f3;color:#164f43;font-size:13px;font-weight:650;font-variant-numeric:tabular-nums;opacity:0;transform:translateY(4px);animation:lg-chip .35s ease forwards;animation-delay:calc(var(--k)*140ms + 200ms)}
.lg-math span:last-child{background:#164f43;color:#fff}
@keyframes lg-chip{to{opacity:1;transform:none}}
.lg-pop .lg-try{font-size:13px;padding:7px 10px}
.lg-pop-actions{justify-content:flex-end;gap:6px;margin-top:6px}
.lg-icon{width:40px;height:40px;border:1px solid #e4eae6;border-radius:10px;background:#fff;color:#24584a;font-size:14px;cursor:pointer}
.lg-icon:disabled{opacity:.35;cursor:default}
.lg-icon:hover:not(:disabled){background:#f1f6f3}
.lg-next{min-height:40px;border-radius:10px;padding-inline:16px}
.lg-tag{display:flex;align-items:center;gap:6px;padding:6px 12px 6px 10px;background:#fff;color:#11241d;font-weight:600;box-shadow:0 10px 24px -10px rgba(16,40,32,.45),0 0 0 1px rgba(16,40,32,.08)}
.lg-tag i{width:8px;height:8px;border-radius:50%;background:#a94425;box-shadow:0 0 0 4px rgba(169,68,37,.15)}
.lg-tag b{font-weight:750}
.lg-tag span{color:#66766f;font-weight:500}
@media (prefers-reduced-motion:reduce){.lg-math span{opacity:1;transform:none;animation:none}}
