/* Two live traces, one warning, and one savings result. */
:where([data-section="mechanic"]) .mon{--rec:0;position:absolute;right:clamp(18px,3.2vw,52px);top:50%;transform:translateY(-50%);z-index:3;pointer-events:none;width:clamp(280px,27vw,370px);display:grid;gap:12px;opacity:0;transition:opacity .3s ease;font-family:'Instrument Sans',sans-serif}
:where([data-section="mechanic"]) .mon__bar{display:flex;align-items:center;gap:8px;padding:0 3px;font-size:.78rem;color:#d1dcd6;text-shadow:0 1px 5px #000}
:where([data-section="mechanic"]) .mcaps{position:absolute;left:50%;bottom:clamp(84px,10vh,124px);transform:translateX(-50%);z-index:3;pointer-events:none;text-align:center;max-width:min(1040px,86vw);opacity:0;transition:opacity .6s ease;display:grid;gap:clamp(5px,1vh,9px);font-family:'Instrument Sans',sans-serif}
:where([data-section="mechanic"]) .mcaps p{margin:0;font-size:clamp(1.05rem,1.6vw,1.5rem);font-weight:500;letter-spacing:-.015em;color:var(--muted2);transition:color .55s ease,opacity .55s ease,transform .55s cubic-bezier(.2,.7,.2,1);opacity:0;transform:translateY(9px);max-width:none}
:where([data-section="mechanic"]) .mcaps p.is-past{opacity:.5;transform:none}
:where([data-section="mechanic"]) .mcaps p.is-on{color:var(--text);opacity:1;transform:none}
:where([data-section="mechanic"]) .mon__rec{width:7px;height:7px;border-radius:50%;background:#80dda7;opacity:calc(.4 + .6 * var(--rec));flex:none}
:where([data-section="mechanic"]) .mon__box{position:relative;border:1px solid #505955;border-radius:9px;background:rgba(12,18,18,.95);overflow:hidden;box-shadow:0 12px 32px #0003;transition:border-color .25s ease}
:where([data-section="mechanic"]) .mon__head{display:flex;align-items:center;gap:10px;margin:0;padding:13px 15px;border-bottom:1px solid #ffffff1c;font-size:1.06rem;font-weight:600;line-height:1.2;color:#e0e7e3}
:where([data-section="mechanic"]) .mon__wave{position:static;inset:auto;display:block;width:100%;height:auto;opacity:1;transition:none}
:where([data-section="mechanic"]) .mon__ico{width:24px;height:24px;flex:none;color:#ff885b;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
:where([data-section="mechanic"]) .mon__hardware{fill:#182120;stroke:#8a9b93}
:where([data-section="mechanic"]) .mon__grille{stroke:#c8d4ce}
:where([data-section="mechanic"]) .mon__led{fill:currentColor;stroke:none}
:where([data-section="mechanic"]) .mon__box--scent .mon__ico{color:#f0a1ff}
:where([data-section="mechanic"]) .mon.is-alert .mon__ico{color:#ffbd58}
:where([data-section="mechanic"]) .mon.is-repaired .mon__ico{color:#80dda7}
:where([data-section="mechanic"]) .mon__flash{position:absolute;inset:0;z-index:2;background:#f9c66c;opacity:0;pointer-events:none;border-radius:inherit}
:where([data-section="mechanic"]) .mon.is-alert .mon__box{border-color:#dba24b;box-shadow:0 0 0 1px #f9c66c33,0 12px 32px #0004}
:where([data-section="mechanic"]) .mon.is-alert .mon__head{color:#fff0d5}
:where([data-section="mechanic"]) .mon.is-alert .mon__rec{background:#f9c66c}
:where([data-section="mechanic"]) .mon__result{--enter:0;position:absolute;left:clamp(22px,4vw,64px);top:clamp(116px,18vh,180px);width:min(450px,48vw);z-index:5;pointer-events:none;opacity:0;transform:translateY(calc((1 - var(--enter)) * -18px)) scale(calc(.96 + .04 * var(--enter)));transform-origin:50% 0;font-family:'Instrument Sans',sans-serif;filter:drop-shadow(0 18px 28px #0006)}
:where([data-section="mechanic"]) .mon__toast{display:grid;grid-template-columns:44px 1fr;align-items:center;gap:16px;padding:23px 25px;border:1px solid #ffe4a9;border-radius:12px;background:#f9c66c;color:#302314}
:where([data-section="mechanic"]) .mon__toasti{width:44px;height:44px;color:#392815}
:where([data-section="mechanic"]) .mon__toastt{min-width:0}
:where([data-section="mechanic"]) .mon__toast h2{margin:0;font-size:clamp(1.6rem,2.4vw,2.25rem);font-weight:700;line-height:1.1;letter-spacing:-.035em;color:#302314}
:where([data-section="mechanic"]) .mon__toastt p{margin:9px 0 0;font-size:1rem;line-height:1.35;font-weight:500}
:where([data-section="mechanic"]) .mon__check{display:none}
:where([data-section="mechanic"]) .is-repaired .mon__toast{background:#a9dfbd;border-color:#d2f3d9;color:#193c29}
:where([data-section="mechanic"]) .is-repaired .mon__toast h2,:where([data-section="mechanic"]) .is-repaired .mon__toasti{color:#193c29}
:where([data-section="mechanic"]) .is-repaired .mon__toastt p{display:none}
:where([data-section="mechanic"]) .is-repaired .mon__toasti>path:not(.mon__check),:where([data-section="mechanic"]) .is-repaired .mon__toasti>circle{display:none}
:where([data-section="mechanic"]) .is-repaired .mon__toasti .mon__check{display:block;stroke:#193c29}
:where([data-section="mechanic"]) .mon__costs{display:none;padding:17px 25px 13px;border:1px solid #66766b;border-top:0;border-radius:0 0 12px 12px;background:rgba(18,29,25,.97);color:#e4ede7}
:where([data-section="mechanic"]) .has-costs .mon__toast{border-radius:12px 12px 0 0}
:where([data-section="mechanic"]) .has-costs .mon__costs{display:block}
:where([data-section="mechanic"]) .mon__cost-grid{display:grid;grid-template-columns:1fr 1fr;margin:0;gap:20px}
:where([data-section="mechanic"]) .mon__cost-grid>div+div{padding-left:20px;border-left:1px solid #859e8e42}
:where([data-section="mechanic"]) .mon__cost-grid dt{font-size:.82rem;line-height:1.25;color:#d3ddd5}
:where([data-section="mechanic"]) .mon__cost-grid dd{margin:5px 0 0;font-size:1.75rem;font-weight:600;line-height:1.1;letter-spacing:-.025em;font-variant-numeric:tabular-nums;color:#a9dfbd}
:where([data-section="mechanic"]) .mon__cost-grid>div+div dd{color:#f1c394}
:where([data-section="mechanic"]) .mon__costs small{display:block;margin-top:11px;font-size:.66rem;color:#aabbaf}
@media(max-width:1050px){
:where([data-section="mechanic"]) .mon{right:20px;width:280px;gap:10px}
:where([data-section="mechanic"]) .mon__head{font-size:1rem;padding:12px}
:where([data-section="mechanic"]) .mon__result{left:22px;width:min(450px,calc(100vw - 345px));top:115px}
:where([data-section="mechanic"]) .mon__toast{padding:19px;grid-template-columns:37px 1fr;gap:13px}
:where([data-section="mechanic"]) .mon__toasti{width:37px;height:37px}
}
@media(max-width:700px){
:where([data-section="mechanic"]) .mon{top:auto;bottom:116px;left:12px;right:12px;transform:none;width:auto;grid-template-columns:1fr 1fr;gap:7px}
:where([data-section="mechanic"]) .mon__bar{grid-column:1/-1;font-size:.7rem}
:where([data-section="mechanic"]) .mcaps{bottom:auto;top:206px;left:16px;right:16px;transform:none;max-width:none}
:where([data-section="mechanic"]) .mcaps p{font-size:.95rem;line-height:1.3}
:where([data-section="mechanic"]) .mon__head{padding:10px 8px;font-size:.88rem;gap:7px}
:where([data-section="mechanic"]) .mon__ico{width:19px;height:19px}
:where([data-section="mechanic"]) .mon__wave{height:61px}
:where([data-section="mechanic"]) .mon__result{left:12px;right:12px;top:166px;width:auto}
:where([data-section="mechanic"]) .mon__toast{grid-template-columns:37px 1fr;padding:17px 18px;gap:12px}
:where([data-section="mechanic"]) .mon__toast h2{font-size:1.7rem}
:where([data-section="mechanic"]) .mon__toastt p{font-size:.93rem}
:where([data-section="mechanic"]) .mon__costs{padding:14px 18px 11px}
:where([data-section="mechanic"]) .mon__cost-grid{gap:14px}
:where([data-section="mechanic"]) .mon__cost-grid>div+div{padding-left:14px}
:where([data-section="mechanic"]) .mon__cost-grid dt{font-size:.78rem}
:where([data-section="mechanic"]) .mon__cost-grid dd{font-size:1.6rem}
}
@media(max-width:380px){
:where([data-section="mechanic"]) .mon__head{font-size:.8rem;gap:5px}
:where([data-section="mechanic"]) .mon__ico{width:17px;height:17px}
}
@media(max-height:650px) and (min-width:701px){
:where([data-section="mechanic"]) .mon{top:50%;width:270px;gap:8px}
:where([data-section="mechanic"]) .mon__wave{max-height:56px}
:where([data-section="mechanic"]) .mon__head{padding:9px 12px;font-size:.95rem}
:where([data-section="mechanic"]) .mon__result{top:105px}
:where([data-section="mechanic"]) .mon__toast{padding:17px;grid-template-columns:34px 1fr;gap:12px}
:where([data-section="mechanic"]) .mon__toasti{width:34px;height:34px}
:where([data-section="mechanic"]) .mon__toast h2{font-size:1.55rem}
:where([data-section="mechanic"]) .mon__toastt p{font-size:.9rem}
}
@media(prefers-reduced-motion:reduce){
:where([data-section="mechanic"]) .mon,:where([data-section="mechanic"]) .mon__box{transition:none}
:where([data-section="mechanic"]) .mcaps{transition:none}
:where([data-section="mechanic"]) .mon__result{transform:none}
}
html:not(.js) :where([data-section="mechanic"]) .mon,html:not(.js) :where([data-section="mechanic"]) .mon__result{display:none}

/* the shared module title is three lines tall now: keep the alert clear of it */
@media(min-height:601px){
:where([data-section="mechanic"]) .mon__result{top:clamp(196px,24vh,236px)}
}
