:root{--fuma-help:#32b9ff;--fuma-help2:#7bdcff;--fuma-help-bg:#071522;--fuma-help-line:rgba(64,190,255,.42)}
.fuma-help-trigger{position:fixed;right:18px;top:92px;z-index:35;display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border-radius:9px;border:1px solid #2faef2;background:rgba(5,25,39,.92);color:#91dcff;font-weight:900;font-size:12px;box-shadow:0 8px 28px rgba(0,0,0,.28),0 0 18px rgba(34,174,242,.08);cursor:pointer;backdrop-filter:blur(8px)}
.fuma-help-trigger:hover{background:#0b2940;border-color:#6bd2ff;color:#dff6ff}.fuma-help-trigger svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2}
.fuma-help-backdrop{position:fixed;inset:0;z-index:90;background:rgba(0,0,0,.58);backdrop-filter:blur(4px);display:none}.fuma-help-backdrop.open{display:block}
.fuma-help-panel{position:absolute;right:24px;top:24px;width:min(470px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow:auto;border:1px solid #1e9edf;border-radius:18px;background:linear-gradient(180deg,rgba(7,23,36,.985),rgba(5,14,24,.99));color:#edf9ff;box-shadow:0 28px 90px rgba(0,0,0,.55),0 0 26px rgba(21,164,239,.18)}
.fuma-help-head{display:flex;align-items:center;gap:10px;padding:18px 20px 8px;color:#79d4ff;text-transform:uppercase;letter-spacing:.16em;font-size:11px;font-weight:900}.fuma-help-close{margin-left:auto;border:0;background:transparent;color:#b9cbd5;font-size:26px;line-height:1;cursor:pointer}.fuma-help-body{padding:2px 20px 20px}.fuma-help-body h2{margin:4px 0 8px;font-size:28px;line-height:1.05;color:white}.fuma-help-lead{color:#c0cfda;font-size:14px;line-height:1.55;margin:0 0 16px}.fuma-help-steps{display:grid;gap:9px}.fuma-help-step{display:grid;grid-template-columns:42px 1fr;gap:11px;align-items:start;padding:11px;border:1px solid rgba(82,178,224,.14);background:rgba(13,36,52,.58);border-radius:11px}.fuma-help-num{width:42px;height:42px;border-radius:10px;border:1px solid #418bb0;display:grid;place-items:center;color:#9ce3ff;font-weight:900;font-size:16px}.fuma-help-step strong{display:block;color:#72d0ff;margin:1px 0 3px}.fuma-help-step span{display:block;color:#c8d5dc;font-size:12px;line-height:1.45}.fuma-help-section{margin-top:15px;padding-top:14px;border-top:1px solid rgba(121,212,255,.22)}.fuma-help-section h3{margin:0 0 8px;color:#7cd7ff;font-size:14px}.fuma-help-list{display:grid;gap:7px;font-size:12px;color:#d5e0e6}.fuma-help-list div:before{content:'✓';color:#78dcff;font-weight:900;margin-right:8px}.fuma-help-tip{margin-top:15px;padding:12px 13px;border:1px solid #28a9ec;border-radius:11px;background:linear-gradient(180deg,rgba(18,76,106,.55),rgba(8,35,52,.72));font-size:12px;line-height:1.5;color:#d5edf8}.fuma-help-tip strong{display:block;color:#82dcff;margin-bottom:3px}.fuma-help-miniintro{margin:8px auto 12px;width:min(1320px,calc(100% - 30px));color:#aab6c0;font-size:12px;line-height:1.45;max-width:1320px}.fuma-help-miniintro strong{color:#d9f4ff}
body.engineer-page .page{padding-top:12px;padding-bottom:28px}body.engineer-page .v2-hero{min-height:82px!important;padding:10px 16px!important;margin-bottom:8px!important}body.engineer-page .v2-hero h1{font-size:clamp(27px,2.35vw,39px)!important;margin:2px 0 4px!important}body.engineer-page .v2-hero p{font-size:12px!important;line-height:1.35!important}body.engineer-page .workflow{margin-bottom:8px!important}body.engineer-page .grid{gap:12px!important}
@media(max-width:900px){.fuma-help-trigger{top:auto;bottom:18px;right:14px}.fuma-help-panel{right:10px;top:10px;max-height:calc(100vh - 20px);width:calc(100vw - 20px)}.fuma-help-body h2{font-size:24px}.fuma-help-miniintro{width:calc(100% - 24px)}}


/* --- BETA 0.4.8.1 · WIDE UI / HELP FIX --------------------------------- */
.fuma-help-trigger{top:92px!important;right:18px!important;z-index:9000!important}
.fuma-help-backdrop{position:fixed!important;inset:0!important;z-index:100000!important;background:rgba(0,0,0,.72)!important;backdrop-filter:blur(6px)!important}
.fuma-help-panel{position:fixed!important;right:18px!important;top:14px!important;width:min(500px,calc(100vw - 36px))!important;max-height:calc(100vh - 28px)!important;overflow:hidden auto!important;border-radius:16px!important}
.fuma-help-cover{position:relative;height:132px;border-bottom:1px solid rgba(121,212,255,.22);background:#081521;overflow:hidden}
.fuma-help-cover img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(1.08) contrast(1.02)}
.fuma-help-cover:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,12,18,.08),rgba(6,12,18,.74))}
.fuma-help-head{position:relative!important;top:auto!important;left:auto!important;right:auto!important;padding:12px 18px 0!important;display:flex!important;align-items:center!important;color:#8edcff!important}
.fuma-help-head svg{display:none!important}
.fuma-help-head span{font-size:11px;letter-spacing:.17em;font-weight:900}
.fuma-help-close{margin-left:auto!important;display:grid!important;place-items:center!important;width:32px!important;height:32px!important;border-radius:8px!important;border:1px solid rgba(111,211,255,.24)!important;background:rgba(15,42,58,.5)!important;color:#d8f4ff!important;font-size:22px!important}
.fuma-help-body{padding:10px 20px 20px!important}
.fuma-help-body h2{font-size:28px!important;margin:3px 0 8px!important}
.fuma-help-lead{font-size:13px!important;line-height:1.48!important}
.fuma-help-step{padding:10px!important;background:rgba(10,32,48,.72)!important}
.fuma-help-num{width:38px!important;height:38px!important}
.fuma-help-miniintro{width:calc(100% - 36px)!important;max-width:none!important}

/* Whole site: use the available desktop width instead of a narrow centered column */
@media(min-width:981px){
 body.home-page .wrap,body.catalog-page .wrap,body.garage-page .wrap,body.engineer-page .wrap,
 body:not(.home-page):not(.catalog-page):not(.engineer-page):not(.garage-page) .wrap{
   width:calc(100% - 36px)!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important;
 }
 body.home-page .hero-inner{width:calc(100% - 36px)!important;max-width:none!important}
}

/* Homepage: spread content and reduce vertical stacking */
@media(min-width:1180px){
 body.home-page .hero{min-height:430px!important}
 body.home-page .hero-inner{min-height:430px!important;padding:30px 0 86px!important}
 body.home-page .hero-text{max-width:860px!important}
 body.home-page .landing-section{padding:24px 0 10px!important}
 body.home-page .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
 body.home-page .tool-card-img{height:170px!important}
 body.home-page .tool-card-body{padding:16px 18px 18px!important}
 body.home-page .tool-card h3{font-size:25px!important}
 body.home-page .tool-card p{font-size:13px!important;line-height:1.45!important;margin-bottom:10px!important}
 body.home-page .tool-card ul{gap:5px!important;margin-bottom:12px!important}
 body.home-page .tool-card li{font-size:12px!important}
 body.home-page .home045-duo-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:16px!important;width:calc(100% - 36px)!important;margin:14px auto 24px!important}
 body.home-page .home045-duo-row .catalogue-callout,body.home-page .home045-duo-row .feedback-callout{width:100%!important;margin:0!important;min-height:250px!important}
}

/* Engineer 0.4.8.1: true three-column workspace */
@media(min-width:1180px){
 body.engineer-page main#app{width:calc(100vw - 24px)!important;max-width:none!important;margin:0 12px!important;padding:10px 0 28px!important}
 body.engineer-page .v2-hero{padding:10px 14px!important;margin-bottom:7px!important;min-height:0!important}
 body.engineer-page .v2-hero h1{font-size:clamp(25px,2vw,36px)!important}
 body.engineer-page .v2-hero p{font-size:11px!important;line-height:1.32!important;max-width:1000px!important}
 body.engineer-page .workflow{margin-bottom:8px!important;gap:6px!important}
 body.engineer-page .workflow-step{min-height:44px!important;padding:6px 8px!important}
 body.engineer-page .v2-grid{display:grid!important;grid-template-columns:minmax(390px,31%) minmax(390px,31%) minmax(520px,38%)!important;gap:10px!important;align-items:start!important;width:100%!important}
 body.engineer-page .v0481-setup,body.engineer-page .v0481-context,body.engineer-page .engineer-console{min-width:0!important;width:100%!important}
 body.engineer-page .v2-panel{padding:12px!important;border-radius:10px!important}
 body.engineer-page .divider{margin:14px 0!important}
 body.engineer-page .section-lead{font-size:10px!important;line-height:1.35!important;margin-bottom:8px!important}
 body.engineer-page h2{margin-top:2px!important;margin-bottom:5px!important}
 body.engineer-page .dropzone{padding:10px!important;gap:9px!important}
 body.engineer-page .drop-icon{width:42px!important;height:42px!important}
 body.engineer-page .v047-media{grid-template-columns:104px 1fr!important;min-height:68px!important}
 body.engineer-page .v047-media img{width:104px!important;height:64px!important}
 body.engineer-page .track-v047{grid-template-columns:96px 1fr!important}
 body.engineer-page .track-v047 img{width:96px!important;height:58px!important}
 body.engineer-page .context-grid{gap:5px!important}
 body.engineer-page input,body.engineer-page select,body.engineer-page textarea{min-height:34px!important;padding:6px 8px!important;font-size:11px!important}
 body.engineer-page textarea{min-height:52px!important;max-height:66px!important}
 body.engineer-page .rain-conversion-card{padding:8px 10px!important;margin-top:6px!important}
 body.engineer-page .v047-actions{margin-top:6px!important;gap:5px!important}
 body.engineer-page .v047-actions .btn{min-height:36px!important;padding:6px 8px!important;font-size:10px!important}
 body.engineer-page .v2-beta-note{font-size:8px!important;line-height:1.35!important;padding:6px 7px!important;margin-top:6px!important}
 body.engineer-page .engineer-console{min-height:560px!important;padding:12px!important}
 body.engineer-page .engineer-empty{min-height:470px!important;padding:40px 18px!important}
}
@media(min-width:981px) and (max-width:1179px){
 body.engineer-page main#app{width:calc(100% - 18px)!important;margin:auto!important}
 body.engineer-page .v2-grid{grid-template-columns:1fr 1fr!important}
 body.engineer-page .engineer-console{grid-column:1/-1!important}
}
@media(max-width:900px){
 .fuma-help-trigger{top:auto!important;bottom:16px!important;right:12px!important}
 .fuma-help-panel{left:10px!important;right:10px!important;top:10px!important;width:auto!important;max-height:calc(100vh - 20px)!important}
 .fuma-help-cover{height:105px!important}
}


/* =======================================================================
   FUMA SETUP BETA 0.4.8.3 — ENGINEER / TEAM / GUIDE UX
   ======================================================================= */

/* ENGINEER: clear 50/50 workspace, builder left and analysis right */
@media(min-width:1180px){
 body.engineer-page main#app{width:calc(100vw - 28px)!important;max-width:none!important;margin:0 14px!important;padding:10px 0 28px!important}
 body.engineer-page .v2-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:14px!important;align-items:start!important;width:100%!important}
 body.engineer-page .engineer-build-zone{min-width:0;display:grid;gap:10px}
 body.engineer-page .engineer-step-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
 body.engineer-page .engineer-step-card{min-width:0;width:100%!important;margin:0!important;padding:15px!important;border-radius:12px!important;background:linear-gradient(180deg,rgba(9,17,25,.98),rgba(8,14,21,.98))!important;border:1px solid rgba(255,47,165,.48)!important;box-shadow:0 10px 32px rgba(0,0,0,.18)}
 body.engineer-page .engineer-step-card h2{font-size:18px!important;margin:2px 0 6px!important;color:#fff!important}
 body.engineer-page .engineer-step-card .section-kicker{font-size:10px!important;color:#ff5ab8!important}
 body.engineer-page .engineer-step-card .section-lead{font-size:11px!important;line-height:1.4!important;color:#9ca8b1!important;min-height:30px}
 body.engineer-page .engineer-step-1 .dropzone{min-height:82px!important;padding:12px!important}
 body.engineer-page .engineer-step-1 .v047-media{grid-template-columns:180px 1fr!important;gap:12px!important;min-height:112px!important;padding:10px!important}
 body.engineer-page .engineer-step-1 .v047-media img{width:180px!important;height:102px!important;object-fit:cover!important;border-radius:8px!important}
 body.engineer-page .engineer-step-2 .track-intel{padding:10px!important;margin-top:8px!important}
 body.engineer-page .engineer-step-2 .track-v047{grid-template-columns:180px 1fr!important;gap:12px!important;align-items:center!important}
 body.engineer-page .engineer-step-2 .track-v047 img{width:180px!important;height:102px!important;object-fit:cover!important;border-radius:8px!important}
 body.engineer-page .engineer-step-2 .track-bars{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.engineer-page .engineer-step-3 .context-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
 body.engineer-page .engineer-step-3 .context-grid .span2{grid-column:1/-1!important}
 body.engineer-page .engineer-step-3 .condition-tabs button{min-height:37px!important;font-size:11px!important}
 body.engineer-page .engineer-step-4 .field-stack{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
 body.engineer-page .engineer-step-4 .field-stack>div:last-child{grid-column:1/-1!important}
 body.engineer-page .engineer-step-4 textarea{min-height:64px!important;max-height:78px!important}
 body.engineer-page .engineer-build-actions{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.45fr) minmax(150px,.55fr);gap:8px;align-items:stretch}
 body.engineer-page .engineer-build-actions .v047-actions{display:contents!important}
 body.engineer-page .engineer-build-actions .actions-row{display:contents!important}
 body.engineer-page .engineer-build-actions .btn{min-height:46px!important;border-radius:8px!important;font-size:11px!important}
 body.engineer-page .engineer-build-actions .v2-beta-note{grid-column:1/-1!important;margin:0!important}
 body.engineer-page .engineer-console{width:100%!important;min-width:0!important;min-height:700px!important;border:1px solid rgba(38,198,255,.38)!important;border-radius:12px!important;background:linear-gradient(180deg,rgba(5,18,27,.985),rgba(6,14,21,.985))!important;box-shadow:0 0 26px rgba(27,185,255,.07)!important;padding:16px!important;position:sticky!important;top:82px!important}
 body.engineer-page .engineer-head{padding-bottom:12px!important}
 body.engineer-page .engineer-head h2{font-size:22px!important}
 body.engineer-page .engineer-empty{min-height:580px!important;padding:60px 24px!important}
 body.engineer-page #result{font-size:11px!important}
 body.engineer-page .proposal-card,body.engineer-page .card,body.engineer-page .analysis-mini{border-color:rgba(52,187,238,.24)!important}
}
@media(min-width:1180px) and (max-width:1500px){
 body.engineer-page .engineer-step-grid{grid-template-columns:1fr!important}
 body.engineer-page .engineer-console{position:static!important}
}
@media(max-width:1179px){
 body.engineer-page .engineer-build-zone{display:grid;gap:10px}
 body.engineer-page .engineer-step-grid{display:grid;grid-template-columns:1fr;gap:10px}
 body.engineer-page .engineer-build-actions{display:grid;gap:8px}
}

/* TEAM: upcoming races compact and readable instead of full-width cards */
@media(min-width:1050px){
 body.team-page #tab-races .race-section{max-width:1220px;margin-left:auto!important;margin-right:auto!important}
 body.team-page #tab-races .race-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
 body.team-page #tab-races .race-card{min-height:210px!important}
 body.team-page #tab-races .race-card-body{padding:14px!important}
 body.team-page #tab-races .race-title{font-size:22px!important;margin:9px 0 7px!important}
 body.team-page #tab-races .race-meta{gap:9px!important;font-size:11px!important}
 body.team-page #tab-races .race-carline img{width:64px!important;height:36px!important}
}
@media(min-width:760px) and (max-width:1049px){body.team-page #tab-races .race-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* GUIDE: deliberately narrower reading column after the global wide-layout pass */
body.guide-page .wrap{width:min(1260px,calc(100% - 36px))!important;max-width:1260px!important;margin-left:auto!important;margin-right:auto!important}
body.guide-page .hero .wrap{width:min(1320px,calc(100% - 36px))!important;max-width:1320px!important}
body.guide-page main section{padding:38px 0!important}
body.guide-page .cards{gap:14px!important}
body.guide-page .card{padding:18px!important}
body.guide-page .section-head{margin-bottom:18px!important}
@media(max-width:860px){body.guide-page .wrap,body.guide-page .hero .wrap{width:calc(100% - 24px)!important}}
