/* t3750: scoped to .flow-onboard so the New job flow keeps its live #304 look. */
/* First-run: selected onboarding choices, a bright welcome button, placeholders that do not look filled. */
html:is(#fr0,html):is(#fr1,html):is(#fr2,html):is(#fr3,html):is(#fr4,html):is(#fr5,html):is(#fr6,html):is(#fr7,html) body:is(#fr8,body) .flow-layer.flow-onboard :is(.flow-bubble,.flow-chip,.flow-yn button).on{
  background-color:#5cc23c!important;background-image:none!important;border-color:#5cc23c!important;color:#03140a!important;-webkit-text-fill-color:#03140a!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 6px 16px -8px rgba(92,194,60,.65)!important}
/* Midnight felt, first-run only. Let’s go, Next, and a selected Yes use the same felt green as the rest of the app. */
html:is(#fr0,html):is(#fr1,html):is(#fr2,html):is(#fr3,html):is(#fr4,html):is(#fr5,html):is(#fr6,html):is(#fr7,html):is(#fr8,html):is(#fr9,html):is(#fra,html):is(#frb,html) body:is(#frc,body):is(#frd,body):is(#fre,body) .flow-layer.flow-midnight .flow-btn.mf-felt,.flow-layer.flow-midnight .flow-yn button.on.mf-felt{
  background-color:#324E28!important;background-image:url("/assets/felt3/felt-mottle.png"),url("/assets/felt3/felt-green.png"),linear-gradient(#324E28,#324E28)!important;background-size:173px 173px,64px 64px,auto!important;background-position:37px 23px,0 0,0 0!important;background-repeat:repeat!important;color:#d9efc9!important;-webkit-text-fill-color:#d9efc9!important;opacity:1!important;filter:none!important;text-shadow:none!important;font-weight:750!important;
  box-shadow:inset 0 7px 9px -6px rgba(200,240,170,.22),inset 0 -14px 14px -8px rgba(0,0,0,.42),0 8px 16px rgba(0,0,0,.35)!important}
/* The tab-bar fade is a fixed veil (html::after, z-index above the page). Onboarding has no tab bar, so that veil lands on Let's go and washes #d9efc9 out. Keep only the short top status fade while a first-run screen is open. */
html:has(body.flow-open #flow-layer.flow-onboard)::after{background-image:linear-gradient(to bottom,#000 0,#000 calc(100% - 24px),rgba(0,0,0,0) 100%)!important;background-size:100% calc(var(--b81-sat,env(safe-area-inset-top,0px)) + 24px)!important}
html:is(#fr0,html):is(#fr1,html):is(#fr2,html):is(#fr3,html):is(#fr4,html):is(#fr5,html):is(#fr6,html):is(#fr7,html) body:is(#fr8,body) .flow-layer.flow-onboard.flow-midnight :is(.flow-bubble,.flow-chip).on{
  background:#161816!important;background-image:none!important;color:#f4f6f1!important;-webkit-text-fill-color:#f4f6f1!important;border-color:#324E28!important;box-shadow:inset 0 0 0 1px #324E28!important}
html body .flow-layer.flow-onboard .flow-field input::placeholder{color:#8d948c!important;font-weight:500!important;font-style:italic!important;opacity:1!important}
html body .flow-layer.flow-onboard .flow-pos{position:relative}
html body .flow-layer .flow-ph{position:absolute;right:20px;top:50%;transform:translateY(-50%);max-width:62%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;color:rgba(255,255,255,.27)!important;-webkit-text-fill-color:rgba(255,255,255,.27)!important;font:500 18px/1 Figtree,Manrope,sans-serif!important;font-style:normal!important;opacity:1;transition:opacity .5s ease}
html body .flow-layer.flow-midnight .flow-field input::placeholder{color:rgba(255,255,255,.27)!important;-webkit-text-fill-color:rgba(255,255,255,.27)!important;font-style:normal!important;font-weight:500!important;opacity:1!important}
html body .flow-layer .flow-ph.out{opacity:0}
html body .flow-layer .flow-ph[hidden]{display:none!important}
html body .flow-layer .flow-change{display:inline;margin:0;padding:0;border:0;background:none!important;background-image:none!important;box-shadow:none!important;color:#9aa394!important;-webkit-text-fill-color:#9aa394!important;font:600 13px Figtree,Manrope,sans-serif!important;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
html body .flow-layer .flow-screen.flow-rate{overflow-x:hidden!important;overflow-y:auto!important}
html body .flow-layer .flow-rate .flow-step-art{min-height:0;padding-top:0}
html body .flow-layer .flow-rate .flow-step-art svg{width:88px;height:64px}
html body .flow-layer .flow-more-hats{margin:8px 20px 0}
html body .flow-layer .flow-hat-ask{margin:0 2px 8px;color:#9aa394;font:600 14px Figtree,Manrope,sans-serif}
html body .flow-layer .flow-hat{margin:0 0 10px;padding:10px 10px 8px;border-radius:22px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06)}
html body .flow-layer .flow-hat-top{display:flex;align-items:center;justify-content:space-between;margin:0 6px 6px;color:#9aa394;font:600 12px Figtree,Manrope,sans-serif}
html body .flow-layer .flow-hat-x{width:28px;height:28px;border-radius:14px;border:0;background:transparent!important;background-image:none!important;box-shadow:none!important;color:#c5ccc2!important;-webkit-text-fill-color:#c5ccc2!important;font:600 18px/1 Figtree,Manrope,sans-serif!important;cursor:pointer}
html body .flow-layer .flow-hat .flow-field{min-height:48px;margin-top:6px}
html body .flow-layer .flow-hat-method{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 4px 0;color:#9aa394;font:600 13px Figtree,Manrope,sans-serif}
html body .flow-layer .flow-hat-method select{max-width:58%;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:#1c1c1c;color:#e7ece4;font:600 14px Figtree,Manrope,sans-serif;padding:6px 8px}
html body .flow-layer .flow-hat-err{margin:6px 6px 0;color:#ffb4a8;font:600 13px Figtree,Manrope,sans-serif}
html body .flow-layer .flow-hat-add{display:inline-flex;margin:2px 0 8px;padding:0;border:0;background:none!important;background-image:none!important;box-shadow:none!important;color:#8fbf78!important;-webkit-text-fill-color:#8fbf78!important;font:600 14px Figtree,Manrope,sans-serif!important;cursor:pointer}
html body .flow-layer .flow-hat-tip{margin:8px 20px 0;color:#c5ccc2;font:500 14px/1.35 Figtree,Manrope,sans-serif}
@media (prefers-reduced-motion:reduce){html body .flow-layer .flow-ph{transition:none}}
/* Welcome CTA stays inside the screen, including the home-indicator inset. The screen scrolls
   instead of clipping the button when the headline and art are taller than the phone. */
/* t3750: never wider than the 480px onboarding column on iPad / Mac / web (live #304 width); still never wider than the screen on a phone. */
html body .flow-layer .flow-screen.flow-welcome{overflow-x:hidden!important;overflow-y:auto!important;max-width:min(100%,480px)!important;box-sizing:border-box!important}
html body .flow-layer .flow-welcome .flow-foot{width:100%;max-width:100%;box-sizing:border-box;flex:0 0 auto;padding-left:20px;padding-right:20px;padding-bottom:calc(22px + env(safe-area-inset-bottom,0px))}
html body .flow-layer .flow-welcome .flow-btn.flow-go{display:flex;align-items:center;justify-content:center;width:100%;max-width:100%;box-sizing:border-box;margin:0;overflow:visible;white-space:nowrap}
@media (max-height:780px){
  html body .flow-layer .flow-welcome-art{padding-top:8px}
  html body .flow-layer .flow-welcome-art img{width:96px!important;height:96px!important}
  html body .flow-layer .flow-welcome .flow-h1{font-size:32px!important}
}
/* Midnight · felt. Scoped to the first-run layer so Home, jobs, and settings keep their current look. */
html body .flow-layer.flow-midnight{background:#070908}
html body .flow-layer.flow-midnight .flow-screen{background:radial-gradient(120% 70% at 50% 115%,rgba(50,78,40,.42),transparent 58%),radial-gradient(70% 36% at 50% -8%,rgba(50,78,40,.28),transparent 52%),#0c0e0c;color:#f4f6f1}
html body .flow-layer.flow-midnight .mf-mark{position:absolute;left:50%;top:50%;width:78%;height:auto;max-height:70%;transform:translate(-50%,-50%);object-fit:contain;object-position:center;opacity:.07;filter:none;pointer-events:none;z-index:0}
html body .flow-layer.flow-midnight .mf-copy,html body .flow-layer.flow-midnight .flow-bubbles,html body .flow-layer.flow-midnight .flow-yn,html body .flow-layer.flow-midnight .flow-top,html body .flow-layer.flow-midnight .flow-dots,html body .flow-layer.flow-midnight .flow-foot,html body .flow-layer.flow-midnight .flow-tt-more,html body .flow-layer.flow-midnight .flow-md{position:relative;z-index:1}
html body .flow-layer.flow-midnight .flow-h1,html body .flow-layer.flow-midnight .flow-sub{color:#f4f6f1}
html body .flow-layer.flow-midnight .flow-sub{color:#c5ccc2}
html body .flow-layer.flow-midnight .word{letter-spacing:.22em;font-weight:750;color:#e7ece4}
html body .flow-layer.flow-midnight .word sup{font-size:.55em;letter-spacing:0}
html body .flow-layer.flow-midnight .mf-kicker{margin:18px 0 0;text-align:center;color:#9aa394;font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase}
html body .flow-layer.flow-midnight .mf-kicker:before{content:"";display:inline-block;width:18px;height:1px;margin:0 8px 3px 0;background:#324E28;vertical-align:middle}
html body .flow-layer.flow-midnight .mf-step{margin:0;text-align:center;color:#9aa394;font-size:11px;font-weight:750;letter-spacing:.14em;text-transform:uppercase}
html body .flow-layer.flow-midnight .mf-step i{display:inline-block;width:16px;height:1px;margin:0 8px 3px 0;background:#324E28;vertical-align:middle}
html body .flow-layer.flow-midnight .mf-check{width:18px;height:18px;margin-left:auto;border-radius:9px;border:1.5px solid #324E28;position:relative;flex:none}
html body .flow-layer.flow-midnight .mf-check:after{content:"";position:absolute;left:5px;top:2px;width:4px;height:8px;border:solid #d9efc9;border-width:0 2px 2px 0;transform:rotate(45deg)}
html body .flow-layer.flow-midnight .flow-bubble{display:flex;align-items:center;gap:8px}
html body .flow-layer.flow-midnight .flow-welcome .mf-mark{animation:mf-mark-in .6s ease both}
html body .flow-layer.flow-midnight .flow-welcome .mf-copy{animation:mf-rise .4s ease .72s both}
@keyframes mf-mark-in{from{opacity:0}to{opacity:.07}}
@keyframes mf-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  html body .flow-layer.flow-midnight .mf-mark,html body .flow-layer.flow-midnight .mf-copy{animation:none}
  html body .flow-layer .flow-ph{transition:none}
}
/* First Home card only. The rest of Home is unchanged. */
html body .home-dash .mf-ready{position:relative;margin:0 0 14px;padding:16px 16px 14px;border-radius:22px;background:#141614;border:1px solid rgba(50,78,40,.65);box-shadow:inset 3px 0 0 #324E28;color:#f4f6f1}
html body .home-dash .mf-ready-k{margin:0;color:#9aa394;font-size:12px;font-weight:750;letter-spacing:.14em;text-transform:uppercase}
html body .home-dash .mf-ready h2{margin:4px 0 0;font-size:28px;letter-spacing:-.3px}
html body .home-dash .mf-ready p{margin:6px 0 0;color:#c5ccc2;font-size:14px}
html body .home-dash .mf-ready-rates{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}
html body .home-dash .mf-ready-rates li{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:14px;background:#101210}
html body .home-dash .mf-ready-rates b{color:#d9efc9;font-weight:650}
html body .home-dash .mf-ready-x{position:absolute;top:10px;right:10px;width:28px;height:28px;border:0;border-radius:14px;background:transparent;color:#c5ccc2;font-size:18px}
