/* Guide content follows the existing SABSUS shell; every selector is scoped. */
.mg-content{--paper:#f3f6fc;--white:#fff;--ink:var(--sb27-ink,#101d3c);--muted:var(--sb27-muted,#53627c);--line:#e0e8f6;--purple:var(--sb27-blue,#234aff);--lavender:#edf2ff;--lime:#e7efff;--radius:28px;width:min(1240px,calc(100% - 64px));margin:36px auto 0;font-family:Manrope,Arial,sans-serif;font-size:16px;line-height:1.75;color:var(--ink);font-synthesis:none;min-width:0}
.mg-content *{box-sizing:border-box}
.mg-content button,.mg-content input,.mg-content select,.mg-content textarea{font:inherit}
.mg-content button,.mg-content a,.mg-content input,.mg-content select,.mg-content textarea,.mg-content summary{-webkit-tap-highlight-color:transparent}
.mg-content button,.mg-content a{touch-action:manipulation}
.mg-content a{color:var(--purple);text-underline-offset:4px;overflow-wrap:anywhere}
.mg-content button{cursor:pointer}
.mg-content button:disabled{opacity:.5;cursor:wait}
.mg-content a:focus-visible,.mg-content button:focus-visible,.mg-content input:focus-visible,.mg-content select:focus-visible,.mg-content textarea:focus-visible,.mg-content summary:focus-visible{outline:3px solid #6987ff;outline-offset:4px}
.mg-content img,.mg-content video,.mg-content canvas,.mg-content svg{max-width:100%}
.mg-content img,.mg-content video{display:block;height:auto}
.mg-content button{color:inherit}
.mg-content h1,.mg-content h2,.mg-content h3,.mg-content h4{overflow-wrap:anywhere;hyphens:auto;line-height:1.13;letter-spacing:-.045em;margin:0 0 .65em;font-weight:650}
.mg-content h1{font-size:clamp(2.6rem,5.3vw,5.6rem);max-width:1050px}
.mg-content h2{font-size:clamp(1.8rem,3.1vw,3rem)}
.mg-content h3{font-size:1.35rem;letter-spacing:-.025em}
.mg-content h4{font-size:1.1rem;letter-spacing:-.015em}
.mg-content p{margin:0 0 1.1em}
.mg-content ul,.mg-content ol{padding-left:1.35em}
.mg-content li{margin:.35em 0}
.mg-content code{font-size:.86em;font-family:"SFMono-Regular",Consolas,monospace;background:#edf2ff;border-radius:5px;padding:.15em .35em;overflow-wrap:anywhere}
.mg-content pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#122344;color:#eef4ff;padding:24px;border-radius:16px;line-height:1.6;font-size:14px;max-width:100%;overflow:auto}
.mg-content pre code{color:inherit;background:none;padding:0;font-size:inherit}
.mg-content blockquote{margin:25px 0;border-left:3px solid var(--purple);padding:20px 24px;background:var(--lavender);border-radius:0 14px 14px 0}
.mg-content blockquote p:last-child{margin:0}
.mg-content hr{border:0;border-top:1px solid var(--line);margin:50px 0}
.mg-content table{border-collapse:collapse;width:100%;font-size:15px;line-height:1.55}
.mg-content td,.mg-content th{border-bottom:1px solid var(--line);padding:16px 14px;text-align:left;vertical-align:top}
.mg-content th{font-weight:650;background:var(--lavender)}
.mg-content .table-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px;margin:26px 0}
.mg-content .table-wrap table{min-width:620px}
.mg-content .skip{position:fixed;top:-100px;left:24px;z-index:100;background:var(--ink);color:#fff;padding:10px 18px}
.mg-content .skip:focus{top:10px}
.mg-content .read-progress{height:3px;position:absolute;bottom:-1px;left:0;background:var(--purple);width:0;transition:width .1s linear}
.mg-content .page-inner{max-width:1120px;margin:auto}
.mg-content .eyebrow{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:650;letter-spacing:.13em;text-transform:uppercase;color:var(--purple);margin-bottom:22px}
.mg-content .eyebrow:before{content:"";width:26px;height:2px;background:currentColor}
.mg-content .lead{font-size:clamp(1.12rem,1.6vw,1.35rem);color:var(--muted);line-height:1.65;max-width:800px}
.mg-content .intro{margin-bottom:55px}
.mg-content .hero{display:grid;grid-template-columns:1fr .92fr;gap:42px;align-items:center;margin:0 0 65px}
.mg-content .hero h1{font-size:clamp(3rem,4.65vw,5.1rem);margin-bottom:.38em}
.mg-content .hero h1 em{font-weight:650;font-style:normal;color:var(--purple)}
.mg-content .hero .lead{font-size:18px}
.mg-content .hero-visual{min-width:0;position:relative;padding:25px 0 35px}
.mg-content .hero-visual:before{content:"";position:absolute;inset:-25px -15px;background:radial-gradient(ellipse,#dce9ff,transparent 68%);z-index:-1}
.mg-content .hero-caption{display:flex;justify-content:space-between;gap:15px;margin-top:15px;font-size:13px;color:var(--muted)}
.mg-content .hero-caption span:last-child{color:var(--purple)}
.mg-content .button-row{display:flex;flex-wrap:wrap;gap:12px;margin:25px 0}
.mg-content .btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:1px solid var(--purple);border-radius:100px;padding:12px 22px;background:var(--purple);color:white;text-decoration:none;line-height:1.45;font-size:15px;font-weight:600;transition:background .2s,transform .2s}
.mg-content .btn:hover{background:#163bdc;transform:translateY(-2px)}
.mg-content .btn.secondary{background:transparent;color:var(--ink);border-color:var(--line)}
.mg-content .btn.secondary:hover{background:var(--lavender);border-color:#cbd9ff}
.mg-content .btn.small{font-size:14px;padding:8px 15px}
.mg-content .text-link{font-size:15px;font-weight:600}
.mg-content .hero-note{font-size:13px;color:var(--muted);max-width:400px}
.mg-content .browser-frame{border:1px solid #dbe5f5;border-radius:22px;overflow:hidden;background:var(--white);box-shadow:0 30px 80px #2353a71c;transform:rotate(-2deg);transition:transform .4s}
.mg-content .browser-frame:hover{transform:rotate(0)}
.mg-content .browser-chrome{height:40px;display:flex;gap:5px;align-items:center;padding:0 14px;border-bottom:1px solid var(--line);background:#f8faff}
.mg-content .browser-chrome i{width:6px;height:6px;border-radius:50%;background:#94a8ca}
.mg-content .browser-chrome small{font-size:11px;margin-left:12px;color:var(--muted);letter-spacing:.03em}
.mg-content .browser-frame img{width:100%;aspect-ratio:1.45;object-fit:cover;object-position:top}
.mg-content .float-label{display:inline-block;background:var(--lime);padding:8px 14px;border:1px solid #cad9f7;border-radius:10px;font-size:13px;font-weight:650;position:absolute;right:-12px;bottom:20px;transform:rotate(4deg)}
.mg-content .hero-flow{position:absolute;left:-18px;top:3px;background:var(--white);border:1px solid var(--line);border-radius:100px;padding:9px 15px;font-size:13px;box-shadow:0 6px 20px #244d8f12}
.mg-content .feature-strip{display:flex;flex-wrap:wrap;gap:12px 32px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0;margin-bottom:68px;font-size:14px;color:var(--muted)}
.mg-content .feature-strip b{color:var(--ink);font-weight:600;margin-right:6px}
.mg-content .section{margin:70px 0}
.mg-content .section-head{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:28px}
.mg-content .section-head h2{margin:0;max-width:700px}
.mg-content .section-head p{font-size:15px;max-width:320px;color:var(--muted);margin:0}
.mg-content .split{display:grid;grid-template-columns:1fr 1fr;gap:35px;align-items:start}
.mg-content .wide-copy{max-width:850px}
.mg-content .muted{color:var(--muted)}
.mg-content .note{padding:22px 25px;border-radius:16px;background:var(--lavender);border:1px solid #dce5f9;font-size:16px;margin:26px 0}
.mg-content .note strong{color:#234ac6}
.mg-content .note p:last-child{margin-bottom:0}
.mg-content .note.green{background:#edf3ff;border-color:#dce5f9}
.mg-content .note.neutral{background:var(--white);border-color:var(--line)}
.mg-content .diagram{padding:28px;border:1px solid var(--line);border-radius:var(--radius);background:var(--white);margin:30px 0}
.mg-content .diagram-label{font-size:13px;color:var(--muted);margin-bottom:20px}
.mg-content .pipeline{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;counter-reset:steps}
.mg-content .pipeline>div{position:relative;padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:14px;min-height:145px}
.mg-content .pipeline>div:before{counter-increment:steps;content:counter(steps,decimal-leading-zero);display:block;color:var(--purple);font-size:13px;font-weight:650;margin-bottom:12px}
.mg-content .pipeline b{display:block;margin-bottom:7px;line-height:1.3}
.mg-content .pipeline p{font-size:14px;line-height:1.6;color:var(--muted);margin:0}
.mg-content .pipeline>div:last-child{background:var(--lime);border-color:#d1def5}
.mg-content .route-list{border-top:1px solid var(--line)}
.mg-content .route-row{display:grid;grid-template-columns:.55fr 1fr auto;gap:28px;align-items:center;padding:25px 0;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink)}
.mg-content .route-row:hover h3{color:var(--purple)}
.mg-content .route-row h3{margin:0;font-size:1.25rem}
.mg-content .route-row p{margin:0;color:var(--muted);font-size:15px}
.mg-content .pill{display:inline-block;border:1px solid var(--line);border-radius:100px;padding:4px 11px;font-size:12px;line-height:1.5;color:var(--muted);white-space:nowrap}
.mg-content .pill.purple{border-color:#cad9f7;color:var(--purple);background:var(--lavender)}
.mg-content .demo{border:1px solid var(--line);border-radius:var(--radius);background:var(--white);overflow:hidden;margin:35px 0}
.mg-content .demo-top{padding:18px 23px;display:flex;gap:20px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.mg-content .demo-top span{font-size:14px;color:var(--muted)}
.mg-content .demo canvas{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#e7edf7}
.mg-content .demo-controls{padding:22px 25px}
.mg-content .range-header{display:flex;justify-content:space-between;gap:20px;font-size:14px;margin-bottom:10px}
.mg-content .range-header output{font-variant-numeric:tabular-nums;color:var(--purple);font-weight:650}
.mg-content input[type=range]{width:100%;accent-color:var(--purple);height:28px;cursor:ew-resize}
.mg-content label{display:block;font-size:14px;font-weight:600;margin-bottom:7px}
.mg-content input[type=text],.mg-content input[type=number],.mg-content input[type=search],.mg-content textarea,.mg-content select{width:100%;background:var(--white);border:1px solid #ccd8eb;border-radius:10px;padding:12px 14px;color:var(--ink);font-size:16px;min-height:48px}
.mg-content textarea{resize:vertical;line-height:1.55;min-height:115px}
.mg-content select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23606278' stroke-width='1.5' d='m1 1 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;padding-right:40px}
.mg-content .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.mg-content .form-grid .full{grid-column:1/-1}
.mg-content .builder{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:30px;margin:30px 0}
.mg-content .field-note{font-size:13px;color:var(--muted);margin-top:6px;line-height:1.5}
.mg-content .prompt-output{width:100%;height:460px;background:#122344;color:#eef4ff;border:none;padding:24px;font-size:14px;font-family:Consolas,monospace}
.mg-content .builder details{margin-top:20px}
.mg-content .copy-status{font-size:14px;color:var(--purple);min-height:24px;display:block}
.mg-content .calc-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:35px;align-items:center}
.mg-content .calc-result{border-radius:18px;background:var(--lavender);padding:32px}
.mg-content .calc-result output{font-size:3.2rem;line-height:1.2;letter-spacing:-.055em;color:var(--purple);font-weight:650}
.mg-content .calc-result p{font-size:14px;color:var(--muted);margin-top:10px}
.mg-content .calc-result .secondary-value{font-size:1.3rem;margin-top:24px;font-weight:650;color:var(--ink)}
.mg-content .memory-bar{height:16px;border-radius:20px;background:#d8e4ff;margin:20px 0 10px;overflow:hidden}
.mg-content .memory-bar i{display:block;width:20%;height:100%;background:var(--purple);border-radius:20px}
.mg-content .chapter-nav{display:flex;gap:15px;flex-wrap:wrap;margin:25px 0}
.mg-content .chapter-nav a{font-size:14px;padding:7px 12px;border:1px solid var(--line);border-radius:100px;color:var(--muted);text-decoration:none}
.mg-content .chapter-nav a:hover{background:var(--lavender);color:var(--purple)}
.mg-content .prose{max-width:900px}
.mg-content .prose>h1{font-size:2.3rem}
.mg-content .prose h2{font-size:2rem;margin-top:65px;padding-top:20px;border-top:1px solid var(--line);scroll-margin-top:100px}
.mg-content .prose h3{margin-top:35px}
.mg-content .prose h4{margin-top:26px}
.mg-content .prose p,.mg-content .prose li{color:#53627c}
.mg-content .prose strong{color:var(--ink)}
.mg-content .prose img{border-radius:16px;margin:22px 0;box-shadow:0 8px 30px #244d8f0c}
.mg-content .prose .toc{border:1px solid var(--line);border-radius:16px;padding:20px;margin-bottom:35px;background:white}
.mg-content .prose .toc ul{margin:0;list-style:none;padding-left:0}
.mg-content .prose .toc li{font-size:14px}
.mg-content .prose .toc li li{padding-left:15px;font-size:13px}
.mg-content .prose .toc a{color:var(--muted);text-decoration:none}
.mg-content .prose .toc a:hover{color:var(--purple)}
.mg-content .prose .toc li li li{display:none}
.mg-content details{border:1px solid var(--line);border-radius:14px;background:var(--white);padding:17px 21px;margin:15px 0}
.mg-content summary{cursor:pointer;font-weight:600;line-height:1.45}
.mg-content details[open]>summary{margin-bottom:20px}
.mg-content .prompt-tools{display:flex;gap:15px;margin:30px 0 18px}
.mg-content .prompt-tools input{flex:1}
.mg-content .prompt-tools select{width:240px}
.mg-content .prompt-card{border-bottom:1px solid var(--line);padding:25px 0}
.mg-content .prompt-card[hidden]{display:none}
.mg-content .prompt-card-head{display:flex;gap:20px;align-items:start;justify-content:space-between}
.mg-content .prompt-card-head h2{font-size:1.5rem;letter-spacing:-.025em;margin:7px 0 12px}
.mg-content .prompt-card-head .btn{flex-shrink:0}
.mg-content .prompt-card p{font-size:15px;color:var(--muted)}
.mg-content .prompt-card details{background:#f3f6fc}
.mg-content .prompt-card pre{margin:0;max-height:600px}
.mg-content .empty-state{border:1px dashed var(--line);padding:30px;text-align:center;color:var(--muted)}
.mg-content .screenshot{margin:35px 0}
.mg-content .screenshot img{border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 50px #244d8f12;width:100%;cursor:zoom-in}
.mg-content .screenshot figcaption{margin-top:13px;font-size:14px;line-height:1.6;color:var(--muted)}
.mg-content .case-number{color:var(--purple);font-weight:650}
.mg-content .video-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px}
.mg-content .video-card{padding:20px;border:1px solid var(--line);background:var(--white);border-radius:20px}
.mg-content .video-card video{width:100%;aspect-ratio:16/9;object-fit:contain;background:#edf2f9;border-radius:12px;margin-bottom:18px}
.mg-content .video-card h3{font-size:1.15rem}
.mg-content .video-card p{font-size:14px;color:var(--muted);margin-bottom:0}
.mg-content .video-card.portrait video{height:280px;aspect-ratio:auto}
.mg-content .case-panel{padding:28px;border-top:1px solid var(--line);display:grid;grid-template-columns:.65fr 1fr;gap:35px}
.mg-content .case-panel h3{font-size:1.4rem}
.mg-content .case-panel p{font-size:16px;color:var(--muted);margin:0}
.mg-content .timeline{position:relative;padding:28px;background:var(--white);border:1px solid var(--line);border-radius:20px;margin:30px 0}
.mg-content .timeline-track{display:flex;height:46px;border-radius:10px;overflow:hidden;margin:14px 0}
.mg-content .timeline-track div{display:flex;align-items:center;justify-content:center;font-size:13px;line-height:1.25;border-right:2px solid white;text-align:center;padding:5px}
.mg-content .timeline-voice{width:52%;height:14px;border-radius:20px;background:var(--purple);margin:14px 0}
.mg-content .timeline-legend{display:flex;justify-content:space-between;gap:18px;color:var(--muted);font-size:13px}
.mg-content .timeline p{font-size:14px;color:var(--muted);margin-top:18px}
.mg-content .checklist-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 25px;border:1px solid var(--line);border-radius:18px;background:var(--lavender);margin:30px 0}
.mg-content .checklist-toolbar output{font-size:1.5rem;font-weight:650;color:var(--purple)}
.mg-content .check-group{margin:35px 0}
.mg-content .check-item{display:flex;align-items:flex-start;gap:15px;border-bottom:1px solid var(--line);padding:17px 2px;font-size:16px;font-weight:400;cursor:pointer}
.mg-content .check-item input{accent-color:var(--purple);width:21px;height:21px;flex-shrink:0;margin:4px 0}
.mg-content .check-item:has(input:checked) span{color:var(--muted);text-decoration:line-through;text-decoration-color:#9aafd5}
.mg-content .download-block{border:1px solid #dce5f9;border-radius:24px;background:linear-gradient(130deg,#edf3ff,#f8faff);padding:35px;display:grid;grid-template-columns:1fr auto;gap:25px;align-items:center;margin:40px 0}
.mg-content .download-block h2{font-size:2rem}
.mg-content .download-block p{color:var(--muted);font-size:16px;margin:0}
.mg-content .download-icon{width:65px;height:80px;border:2px solid #6f91db;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;color:var(--purple);background:white;transform:rotate(5deg);margin-bottom:22px}
.mg-content .source-list{list-style:none;padding:0}
.mg-content .source-list li{padding:17px 0;border-bottom:1px solid var(--line)}
.mg-content .source-list a{font-weight:600}
.mg-content .source-list p{font-size:14px;color:var(--muted);margin:.4em 0 0}
.mg-content .toast{position:fixed;bottom:25px;left:24px;padding:12px 20px;background:var(--ink);color:white;border-radius:12px;z-index:100;font-size:14px;max-width:calc(100vw - 40px);box-shadow:0 10px 30px #10224a33;opacity:0;transform:translateY(10px);transition:.2s;pointer-events:none}
.mg-content .toast.show{opacity:1;transform:translateY(0)}
.mg-content .lightbox{border:0;background:#101d3c;padding:15px;max-width:94vw;max-height:95vh;border-radius:18px;color:#fff;box-shadow:0 30px 120px #0009}
.mg-content .lightbox::backdrop{background:#101d3ccc}
.mg-content .lightbox img{max-height:83vh;max-width:90vw;object-fit:contain}
.mg-content .lightbox button{display:block;margin:0 0 10px auto;padding:8px 16px;color:#fff;border:1px solid #777;background:none;border-radius:50px;font-size:14px}
.mg-content .diagram-svg text{font-family:inherit;fill:var(--ink)}
.mg-content .diagram-svg .muted-text{fill:var(--muted)}
.mg-content .diagram-svg{width:100%;height:auto;display:block}
.mg-content .architecture-mobile{display:none}
.mg-content .source-meta{font-size:13px;color:var(--muted)}
.mg-content .audio-example{padding:24px;background:var(--white);border:1px solid var(--line);border-radius:18px;margin:25px 0}
.mg-content .audio-example audio{width:100%;margin-top:15px}
.mg-content .audio-example p{font-size:14px;color:var(--muted);margin:0}
.mg-content .mobile-only{display:none}
.mg-content .read-time{font-size:13px;color:var(--muted);margin-top:16px}
.mg-content .kbd{display:inline-block;font-family:Consolas,monospace;border:1px solid var(--line);border-radius:5px;padding:0 6px;background:#fff;font-size:13px}
@media(max-width:1200px){
.mg-content .hero{grid-template-columns:1fr;gap:10px}
.mg-content .hero h1{max-width:800px;font-size:4.8rem}
.mg-content .hero-visual{max-width:650px;margin:10px auto 0;width:100%}
.mg-content .hero .lead{max-width:650px}
.mg-content .browser-frame img{aspect-ratio:1.85}
.mg-content .float-label{right:0}
.mg-content .hero-flow{left:0}
.mg-content .hero{margin-bottom:35px}
.mg-content .section-head{align-items:start;flex-direction:column}
.mg-content .route-row{grid-template-columns:.7fr 1fr}
.mg-content .route-row .pill{display:none}
}
@media(max-width:900px){
.mg-content .hero{grid-template-columns:1fr 1fr;gap:26px}
.mg-content .hero h1{font-size:3.3rem}
.mg-content .hero .lead{font-size:16px}
.mg-content .hero-visual{margin:0}
.mg-content .browser-frame img{aspect-ratio:1.25}
.mg-content .hero-note{font-size:12px}
.mg-content .hero-flow{font-size:11px;padding:8px 12px}
.mg-content .float-label{font-size:11px}
.mg-content .hero .btn{font-size:14px;padding:10px 18px}
.mg-content .toast{left:20px}
.mg-content .feature-strip{margin-bottom:45px}
.mg-content .calc-grid{gap:25px}
}
@media(max-width:680px){
.mg-content .hero{display:block}
.mg-content .hero h1{font-size:3.35rem}
.mg-content .hero .lead{font-size:17px}
.mg-content .hero-visual{margin:25px 0 0;padding:22px 7px 30px}
.mg-content .browser-frame img{aspect-ratio:1.5}
.mg-content .hero-flow{font-size:12px}
.mg-content .float-label{font-size:12px;right:-2px}
.mg-content .intro{margin-bottom:30px}
.mg-content h1{font-size:2.8rem}
.mg-content .eyebrow{font-size:12px;margin-bottom:20px}
.mg-content .hero h1{letter-spacing:-.052em}
.mg-content .hero-caption{font-size:12px}
.mg-content .feature-strip{gap:10px 18px;font-size:13px;padding:18px 0}
.mg-content .section{margin:48px 0}
.mg-content .section-head{gap:15px}
.mg-content .split,.mg-content .calc-grid,.mg-content .form-grid,.mg-content .video-grid,.mg-content .case-panel{grid-template-columns:1fr}
.mg-content .pipeline{grid-template-columns:1fr 1fr;gap:10px}
.mg-content .pipeline>div{padding:17px 14px;min-height:170px}
.mg-content .pipeline p{font-size:13px}
.mg-content .pipeline b{font-size:15px}
.mg-content .diagram{padding:17px}
.mg-content .route-row{display:block;padding:23px 0}
.mg-content .route-row p{margin:9px 0 0}
.mg-content .builder{padding:22px 18px}
.mg-content .form-grid{gap:15px}
.mg-content .form-grid .full{grid-column:auto}
.mg-content .prompt-tools{flex-direction:column}
.mg-content .prompt-tools select{width:100%}
.mg-content .prompt-card-head h2{font-size:1.3rem}
.mg-content .prompt-card-head{gap:10px}
.mg-content .prompt-card-head .btn{font-size:12px;padding:7px 10px}
.mg-content .prompt-output{height:420px;font-size:13px;padding:15px}
.mg-content .demo-top{padding:14px 18px;align-items:start;flex-direction:column;gap:8px}
.mg-content .demo-controls{padding:17px}
.mg-content .range-header{font-size:13px;gap:10px}
.mg-content .calc-result{padding:24px}
.mg-content .calc-result output{font-size:2.7rem}
.mg-content .download-block{display:block;padding:25px}
.mg-content .download-block h2{font-size:1.8rem}
.mg-content .download-block .btn{margin-top:20px;width:100%}
.mg-content .note{padding:20px;font-size:15px}
.mg-content .case-panel{padding:25px 0;gap:8px}
.mg-content .case-panel p{font-size:15px}
.mg-content .screenshot{margin:27px 0}
.mg-content .screenshot img{border-radius:12px}
.mg-content .screenshot figcaption{font-size:13px}
.mg-content .prose h2{font-size:1.8rem;margin-top:45px}
.mg-content .prose>h1{font-size:2rem}
.mg-content .prose .toc{padding:16px}
.mg-content .table-wrap{margin:23px -2px}
.mg-content th,.mg-content td{padding:13px 12px;font-size:14px}
.mg-content pre{padding:17px;font-size:12px;border-radius:12px}
.mg-content .prompt-card pre{max-height:500px}
.mg-content details{padding:16px}
.mg-content .timeline{padding:18px}
.mg-content .timeline-track{height:70px}
.mg-content .timeline-track div{font-size:11px;overflow-wrap:anywhere}
.mg-content .timeline-legend{font-size:12px;gap:12px}
.mg-content .timeline p{font-size:13px}
.mg-content .checklist-toolbar{padding:18px;align-items:start;gap:10px}
.mg-content .checklist-toolbar output{font-size:1.25rem}
.mg-content .checklist-toolbar .btn{font-size:12px;padding:8px 11px}
.mg-content .check-item{font-size:15px}
.mg-content .architecture-desktop{display:none}
.mg-content .architecture-mobile{display:block}
.mg-content .mobile-only{display:block}
.mg-content .lightbox{padding:10px}
.mg-content .lightbox img{max-width:86vw}
.mg-content .diagram-svg{min-height:160px}
}
@media(prefers-reduced-motion:reduce){
.mg-content *,.mg-content *:before,.mg-content *:after{animation-duration:.01ms!important;transition-duration:.01ms!important;animation-iteration-count:1!important}
.mg-content .browser-frame{transform:none}
.mg-content .float-label{transform:none}
}
@media print{
.mg-content .btn,.mg-content .toast,.mg-content .prompt-tools{display:none!important}
.mg-content .prose{max-width:none}
.mg-content .section,.mg-content .intro{margin:20px 0}
.mg-content details>*{display:block}
.mg-content details>summary{list-style:none}
.mg-content pre{color:black;background:#eee;white-space:pre-wrap}
.mg-content h1{font-size:30pt}
.mg-content h2{font-size:22pt}
.mg-content a{color:inherit}
.mg-content img,.mg-content video,.mg-content .demo{break-inside:avoid}
.mg-content .table-wrap{overflow:visible}
.mg-content table{min-width:0!important}
}
.mg-content .demo-stage{position:relative;aspect-ratio:16/9;background:#e7edf7;overflow:hidden}
.mg-content .demo-stage>img{width:100%;height:100%;object-fit:cover}
.mg-content .demo-stage canvas{position:absolute;inset:0;width:100%;height:100%;opacity:0}
.mg-content .demo-stage.is-ready canvas{opacity:1}
@media(max-width:520px){
.mg-content .prompt-card-head{flex-direction:column;align-items:flex-start}
.mg-content .prompt-card-head>div{min-width:0;max-width:100%}
.mg-content .prompt-card-head h2{overflow-wrap:anywhere}
.mg-content .prompt-card-head .btn{max-width:100%;white-space:normal}
}

/* Host-compatible navigation and presentation. */
.mg-content .mg-main{display:block;min-width:0;width:100%;max-width:none;min-height:0;margin:0;padding:38px 0 64px}
.mg-content .page-inner{max-width:none;min-width:0;margin:0}
.mg-content .mg-breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;color:var(--muted);font-size:13px;line-height:1.6;margin:0 0 20px}
.mg-content .mg-breadcrumbs a{color:var(--muted);text-decoration:none}
.mg-content .mg-breadcrumbs a:hover{color:var(--purple);text-decoration:underline}
.mg-content .mg-breadcrumbs [aria-current]{color:var(--ink)}
.mg-content .mg-chapter-bar{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:0 0 18px;margin:0 0 16px;min-width:0}
.mg-content .mg-chapter-bar #menu-button{display:none;align-items:center;justify-content:center;gap:9px;border:0;background:#edf2ff;color:#2444bf;border-radius:16px;min-height:46px;padding:11px 16px;font-size:14px;font-weight:800;line-height:1.4}
.mg-content .mg-chapter-bar #menu-button svg{width:20px;height:20px;flex-shrink:0}
.mg-content .mg-chapter-bar>.btn{min-height:44px;font-size:13px;padding:10px 16px;border-radius:15px;margin:0}
.mg-content .mg-chapter-bar .read-progress{height:2px;position:absolute;left:0;bottom:0;width:0;background:var(--purple);border-radius:2px;transition:width .1s linear}
.mg-content .mg-chapters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:12px;background:var(--paper);border-radius:24px;position:static;min-width:0}
.mg-content .mg-chapters a{display:flex;align-items:center;min-width:0;min-height:48px;padding:12px 14px;border-radius:16px;text-decoration:none;font-size:13px;font-weight:700;line-height:1.45;color:var(--muted);overflow-wrap:anywhere;transition:background .2s,color .2s}
.mg-content .mg-chapters a:hover{background:#e6edfb;color:var(--purple)}
.mg-content .mg-chapters a[aria-current=page]{background:#fff;color:var(--purple);box-shadow:0 4px 15px #244d8f09}
.mg-content h1,.mg-content .hero h1{font-size:clamp(36px,4vw,56px);font-weight:750;line-height:1.14;letter-spacing:-.05em;max-width:960px}
.mg-content h2{font-size:clamp(28px,3vw,42px);font-weight:750;line-height:1.22;letter-spacing:-.035em}
.mg-content h3{font-size:22px;line-height:1.4;font-weight:750;letter-spacing:-.025em}
.mg-content h4{font-size:18px;line-height:1.45;font-weight:750}
.mg-content .hero{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:48px;align-items:center;margin:0 0 48px}
.mg-content .hero>div{min-width:0}
.mg-content .hero .lead{font-size:18px;line-height:1.8;max-width:650px}
.mg-content .hero-visual{max-width:none;width:100%;margin:0;padding:25px 0 28px}
.mg-content .hero-visual:before{background:radial-gradient(ellipse,#e5eeff,transparent 68%)}
.mg-content .hero h1 em{font-weight:750}
.mg-content .browser-frame{border:0;border-radius:28px;box-shadow:0 18px 55px #2353a715;transform:none}
.mg-content .browser-frame img{aspect-ratio:1.5}
.mg-content .hero-flow{left:0;border:0;border-radius:16px;box-shadow:0 6px 20px #244d8f0d}
.mg-content .float-label{right:0;border:0;background:#e7efff;color:#2444bf;transform:none;border-radius:14px}
.mg-content .eyebrow{color:#3b5eb8;font-weight:800;font-size:13px;letter-spacing:.035em}
.mg-content .eyebrow:before{display:none}
.mg-content .lead{font-size:18px;line-height:1.8}
.mg-content .btn{min-height:48px;padding:12px 21px;gap:10px;border:0;border-radius:18px;font-size:14px;font-weight:800;line-height:1.5;box-shadow:0 7px 22px #234aff18}
.mg-content .btn.secondary{background:#edf2ff;color:#2444bf;border:0;box-shadow:none}
.mg-content .btn.secondary:hover{background:#dfe8ff}
.mg-content .btn.small{min-height:40px;font-size:13px;padding:9px 14px;border-radius:14px}
.mg-content .intro{margin-bottom:44px}
.mg-content .section{margin:64px 0}
.mg-content .section-head{align-items:flex-end}
.mg-content .section-head h2{max-width:790px}
.mg-content .feature-strip{margin-bottom:54px;padding:22px 0;font-size:14px;gap:12px 28px}
.mg-content .note{border:0;background:#edf2ff;border-radius:24px;padding:26px}
.mg-content .note.green{background:#edf3ff;border:0}
.mg-content .note.neutral{background:#f3f6fc;border:0}
.mg-content .diagram,.mg-content .demo,.mg-content .builder,.mg-content .video-card,.mg-content .timeline{border:0;border-radius:28px;background:#f3f6fc}
.mg-content .builder{padding:32px}
.mg-content .pipeline>div{border:0;border-radius:20px;background:#fff}
.mg-content .pipeline>div:last-child{background:#e7efff;border:0}
.mg-content .calc-result{border-radius:24px;background:#e7efff}
.mg-content .form-grid>div,.mg-content .calc-grid>div,.mg-content .split>div{min-width:0}
.mg-content input[type=text],.mg-content input[type=number],.mg-content input[type=search],.mg-content textarea,.mg-content select{border-color:#dce5f4;border-radius:14px;font-family:inherit}
.mg-content .prompt-output{font-family:Consolas,monospace}
.mg-content .prompt-card-head>div{min-width:0}
.mg-content .prompt-card-head h2{font-size:24px;line-height:1.4;overflow-wrap:anywhere}
.mg-content .prompt-card details{background:#f3f6fc}
.mg-content details{border:0;border-radius:20px;background:#f3f6fc;padding:20px 24px}
.mg-content .download-block{border:0;border-radius:28px;background:#edf3ff;padding:32px}
.mg-content .download-icon{transform:none;border:0;border-radius:18px;background:#fff;box-shadow:0 6px 18px #244d8f09}
.mg-content .checklist-toolbar{border:0;border-radius:24px}
.mg-content .prose{max-width:960px}
.mg-content .prose .toc{border:0;border-radius:24px;background:#f3f6fc;padding:26px}
.mg-content .prose h2{font-size:32px;line-height:1.3}
.mg-content .prose h3{font-size:23px;line-height:1.4}
.mg-content .prose h4{font-size:19px;line-height:1.45}
.mg-content .prose p,.mg-content .prose li{color:var(--muted)}
.mg-content .toast{left:24px;max-width:calc(100vw - 48px);border-radius:18px}
.mg-content .mg-mcp{padding:32px;border-radius:28px;background:#edf3ff;margin:48px 0}
.mg-content .mg-mcp>h2{max-width:850px}
.mg-content .mg-mcp>p{max-width:900px;color:var(--muted)}
.mg-content .mg-mcp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:26px 0}
.mg-content .mg-mcp-grid>article,.mg-content .mg-mcp-grid>div{min-width:0;padding:26px;border-radius:24px;background:#fff}
.mg-content .mg-mcp-grid h3{font-size:22px;margin:0 0 14px}
.mg-content .mg-mcp-grid p{font-size:15px;line-height:1.8;color:var(--muted)}
.mg-content .mg-mcp-grid p:last-child{margin-bottom:0}
@media(max-width:1100px){
.mg-content .hero{gap:30px}
.mg-content .hero h1{font-size:clamp(36px,4.5vw,50px)}
.mg-content .hero .lead{font-size:17px}
.mg-content .hero .btn{font-size:13px;padding:12px 17px}
.mg-content .mg-chapters a{font-size:12px;padding:12px 10px}
}
@media(max-width:900px){
.mg-content .mg-chapter-bar{justify-content:space-between;align-items:center}
.mg-content .mg-chapter-bar #menu-button{display:inline-flex}
.mg-content .mg-chapters{display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.mg-content .mg-chapters.open{display:grid}
.mg-content .mg-chapters a{font-size:14px;padding:12px 14px}
.mg-content .hero{grid-template-columns:1fr;gap:16px}
.mg-content .hero h1{font-size:clamp(36px,6vw,52px)}
.mg-content .hero-visual{max-width:650px;margin:0 auto;padding-top:22px}
.mg-content .hero .lead{font-size:18px;max-width:720px}
.mg-content .browser-frame img{aspect-ratio:1.65}
.mg-content .section-head{align-items:flex-start;flex-direction:column}
}
@media(max-width:680px){
.mg-content{width:calc(100% - 36px);margin-top:26px;font-size:16px;line-height:1.75}
.mg-content .mg-main{padding:28px 0 44px}
.mg-content .mg-breadcrumbs{font-size:12px;gap:6px 9px;margin-bottom:16px}
.mg-content .mg-chapter-bar{gap:8px;padding-bottom:14px;margin-bottom:12px}
.mg-content .mg-chapter-bar #menu-button{font-size:13px;min-height:44px;padding:10px 13px;border-radius:14px}
.mg-content .mg-chapter-bar>.btn{font-size:12px;padding:10px 13px;min-height:44px;border-radius:14px}
.mg-content .mg-chapters{padding:9px;border-radius:20px}
.mg-content .mg-chapters a{font-size:13px;padding:11px 10px;border-radius:14px}
.mg-content h1,.mg-content .hero h1{font-size:clamp(32px,8vw,42px);line-height:1.17;letter-spacing:-.045em}
.mg-content h2{font-size:clamp(27px,7vw,34px);line-height:1.25}
.mg-content h3{font-size:21px;line-height:1.4}
.mg-content .hero{display:block;margin-bottom:32px}
.mg-content .hero .lead,.mg-content .lead{font-size:17px;line-height:1.8}
.mg-content .hero-visual{padding:25px 0;margin-top:20px}
.mg-content .hero-flow{font-size:11px;padding:8px 11px;left:0}
.mg-content .browser-frame{border-radius:22px}
.mg-content .browser-frame img{aspect-ratio:1.5}
.mg-content .float-label{right:0;bottom:15px;font-size:11px}
.mg-content .hero .btn{font-size:14px;padding:12px 18px}
.mg-content .btn{font-size:14px;max-width:100%;white-space:normal}
.mg-content .intro{margin-bottom:30px}
.mg-content .section{margin:44px 0}
.mg-content .section-head{gap:16px}
.mg-content .feature-strip{gap:10px 18px;margin-bottom:38px;font-size:13px;padding:18px 0}
.mg-content .note,.mg-content .diagram,.mg-content .builder,.mg-content .video-card,.mg-content .timeline{padding:22px 18px;border-radius:24px}
.mg-content .demo{border-radius:24px}
.mg-content .calc-result{padding:24px;border-radius:20px}
.mg-content .download-block{padding:26px 20px;border-radius:24px}
.mg-content .download-block h2{font-size:28px;line-height:1.3}
.mg-content details{padding:18px;border-radius:18px}
.mg-content .prompt-card-head h2{font-size:22px;line-height:1.35}
.mg-content .prompt-card-head .btn{font-size:12px;padding:9px 12px;min-height:40px}
.mg-content .prose>h1{font-size:30px}
.mg-content .prose h2{font-size:28px;line-height:1.3}
.mg-content .prose h3{font-size:22px;line-height:1.4}
.mg-content .prose .toc{padding:20px;border-radius:22px}
.mg-content .mg-mcp{padding:26px 20px;border-radius:24px;margin:36px 0}
.mg-content .mg-mcp-grid{grid-template-columns:1fr;gap:14px;margin:22px 0}
.mg-content .mg-mcp-grid>article,.mg-content .mg-mcp-grid>div{padding:22px 18px;border-radius:20px}
.mg-content .mg-mcp-grid h3{font-size:21px}
.mg-content .toast{left:18px;max-width:calc(100vw - 36px);font-size:13px}
}
@media(max-width:520px){
.mg-content .prompt-card-head{flex-direction:column;align-items:flex-start}
.mg-content .prompt-card-head>div{min-width:0;max-width:100%}
.mg-content .prompt-card-head h2{overflow-wrap:anywhere}
.mg-content .prompt-card-head .btn{max-width:100%;white-space:normal}
.mg-content .mg-chapter-bar{flex-wrap:wrap}
.mg-content .mg-chapter-bar #menu-button{flex:1 1 auto}
.mg-content .mg-chapter-bar>.btn{flex:1 1 auto}
}
@media(prefers-reduced-motion:reduce){
.mg-content *,.mg-content *:before,.mg-content *:after{animation-duration:.01ms!important;transition-duration:.01ms!important;animation-iteration-count:1!important}
}
@media print{
.mg-content{width:100%;margin:0;background:#fff;color:#000;font-size:11pt}
.mg-content .mg-breadcrumbs,.mg-content .mg-chapter-bar,.mg-content .mg-chapters{display:none!important}
.mg-content .mg-main{margin:0;padding:0}
.mg-content h1,.mg-content .hero h1{font-size:30pt}
.mg-content h2{font-size:22pt}
.mg-content .hero{display:block}
.mg-content .hero-visual{max-width:600px}
}

/* Isolated shell accommodations for this guide only. */
body.sabsus-motion-guide > .mg-skip{position:fixed;top:-100px;left:20px;z-index:100;padding:12px 18px;border-radius:14px;background:#101d3c;color:#fff;font:700 14px/1.5 Manrope,Arial,sans-serif;text-decoration:none}
body.sabsus-motion-guide > .mg-skip:focus{top:10px;outline:3px solid #6987ff;outline-offset:3px}
body.sabsus-motion-guide > .sb27-header{top:calc(14px + var(--preview-offset,0px))}

/* Chapter label shares the same compact toolbar as the download action. */
.mg-content .mg-chapter-bar{justify-content:space-between}
.mg-content .mg-chapter-bar>div:not(.read-progress){display:flex;align-items:center;gap:12px;min-width:0}
.mg-content .mg-chapter-label{font-size:13px;font-weight:800;color:var(--muted);line-height:1.5}
@media(max-width:900px){.mg-content .mg-chapter-label{display:none}}
@media(max-width:520px){.mg-content .mg-chapter-bar>div:not(.read-progress){flex:1 1 auto}}
