.mtg{--blue:#0755ef;--navy:#10264a;--line:#dbe4f2;color:var(--navy);max-width:1500px;margin:auto;padding:20px 24px;font:15px/1.55 system-ui,sans-serif}.mtg *{box-sizing:border-box}.mtg [hidden]{display:none!important}.mtg h1,.mtg h2,.mtg h3{color:inherit;margin:0 0 12px;line-height:1.25}.mtg h1{font-size:clamp(27px,3vw,38px)}.mtg h2{font-size:21px}.mtg h3{font-size:17px;margin-top:18px}.mtg header{padding:22px 26px;margin:14px 0 18px;background:linear-gradient(115deg,#10264a,#164c98);color:white;border-radius:18px}.mtg header p{margin:0}.mtg header small{color:#b9d7ff;letter-spacing:1px}.mtg-work{display:grid;grid-template-columns:1fr 1.15fr;gap:18px;align-items:start}.mtg section,.mtg article,.mtg aside{min-width:0;border:1px solid var(--line);border-radius:18px;padding:22px;background:white;box-shadow:0 8px 28px #10264a08}.mtg-head,.mtg-tabs,.mtg-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.mtg-head{justify-content:space-between}.mtg-tabs{background:#eef3fa;padding:5px;border-radius:12px;margin-bottom:14px}.mtg button{border:0;border-radius:9px;padding:9px 13px;background:#eaf0fc;color:#1246a0;font:600 13px system-ui;cursor:pointer}.mtg button[aria-pressed=true],.mtg [data-copy]{background:var(--blue);color:white}.mtg label{display:block;font-weight:600;margin:12px 0}.mtg input:not([type=checkbox]),.mtg textarea,.mtg select{display:block;width:100%;border:1px solid var(--line);border-radius:10px;padding:11px;background:#f7f9fd;color:#10264a;font:inherit;margin-top:5px}.mtg small{font-size:12px;color:#536783;font-weight:400}.mtg-preview{border:1px solid var(--line);padding:20px;border-radius:14px;max-width:100%;overflow-wrap:anywhere}.mtg-preview.mobile{max-width:360px}.mtg [data-preview-title]{color:#1a0dab;font-size:21px;margin:6px 0}.mtg-preview p,.mtg-social p{margin:5px 0}.mtg-social{border:1px solid var(--line);border-radius:12px;padding:12px;overflow-wrap:anywhere}.mtg [data-image-note]{background:#eef3fa;padding:20px;text-align:center;margin-bottom:10px;border-radius:8px}.mtg [data-checks] div{padding:7px 10px;margin:5px 0;background:#f1f5fa;border-radius:7px}.mtg pre{background:#10264a;color:#dbeafe;padding:16px;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:300px;overflow:auto}.mtg-bottom{display:grid;grid-template-columns:3fr 1fr;gap:18px;margin-top:24px}.mtg aside a{display:block;padding:10px 0;border-bottom:1px solid var(--line)}.mtg details{border-top:1px solid var(--line);padding:12px 0}.mtg summary{cursor:pointer;font-weight:600}.mtg button:focus-visible,.mtg input:focus-visible,.mtg textarea:focus-visible{outline:2px solid var(--blue)}@media(max-width:800px){.mtg{padding:12px}.mtg-work,.mtg-bottom{grid-template-columns:1fr}.mtg section{padding:16px}}
.mtg{max-width:1600px;padding:18px 28px 40px;color:#14243d}.mtg header{position:relative;overflow:hidden;padding:20px 26px;background:linear-gradient(110deg,#10264a,#124aab);border-radius:14px}.mtg header h1{font-size:clamp(26px,3vw,34px);margin:5px 0}.mtg-hero-mark{position:absolute;right:35px;top:50%;transform:translateY(-50%);font-size:76px;font-weight:800;color:#ffffff20;pointer-events:none}.mtg-strip{display:flex;flex-wrap:wrap;gap:12px 28px;padding:12px 16px;margin-bottom:16px;background:#edf3ff;border-radius:10px;font-size:13px;font-weight:650;color:#244b86}.mtg-strip span:last-child{margin-left:auto;color:#526780;font-weight:400}.mtg-work,.mtg-output{grid-template-columns:1fr 1fr;align-items:stretch;gap:16px}.mtg-output{display:grid;margin-top:16px}.mtg section,.mtg article,.mtg aside{border-radius:14px;padding:20px;box-shadow:0 5px 20px #10264a0b}.mtg-work section:first-child{display:flex;flex-direction:column}.mtg-work section:first-child .mtg-actions{margin-top:auto;padding-top:14px}.mtg label{font-size:13px;margin:10px 0}.mtg input:not([type=checkbox]),.mtg textarea,.mtg select{background:#fff;border-color:#cbd7e8;padding:10px}.mtg-tabs{gap:4px}.mtg-tabs button{flex:1}.mtg-browser{background:#edf2fa;padding:10px;border-radius:12px;border:1px solid #dbe4f2}.mtg-browserbar{color:#71829b;font-size:11px;letter-spacing:2px;padding:0 4px 9px;display:flex;justify-content:space-between}.mtg-browserbar span{letter-spacing:0}.mtg-preview{background:white;padding:16px}.mtg-social{background:#f8faff}.mtg [data-image-note]{padding:22px;background:repeating-linear-gradient(135deg,#e8eef8,#e8eef8 10px,#edf2fa 10px,#edf2fa 20px);color:#536783}.mtg [data-checks] .mtg-ok{background:#eaf7f1;color:#146548}.mtg [data-checks] .mtg-review{background:#fff5e5;color:#85500b}.mtg pre{min-height:150px;max-height:250px;margin:8px 0}.mtg-features{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:24px}.mtg-features>div{background:#f5f8fd;border:1px solid #dbe4f2;border-radius:12px;padding:18px}.mtg-features b{font-size:12px;color:#0755ef}.mtg-features h3{margin:8px 0}.mtg-features p{margin:0;color:#526780}.mtg-bottom{align-items:start}.mtg aside a{border:1px solid #dbe4f2;border-radius:8px;padding:10px;margin:8px 0;text-decoration:none;font-weight:600}.mtg button:hover{filter:brightness(.95)}.mtg [data-status]{min-height:1.5em;margin:4px 0;font-size:12px;color:#365a85}@media(max-width:800px){.mtg{padding:12px}.mtg-work,.mtg-output,.mtg-features{grid-template-columns:1fr}.mtg-hero-mark{display:none}.mtg-strip span:last-child{margin-left:0}.mtg section{padding:14px}}

.mtg .mtg-output{grid-template-columns:1fr}.mtg [data-checks]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.mtg [data-checks] div{margin:0}.mtg .mtg-code-panel{margin-top:16px}.mtg-code-panel .mtg-head h2{margin:0}.mtg-code-panel pre{min-height:100px;max-height:420px;margin:14px 0 8px}.mtg-code-panel [data-status]:empty{display:none}.mtg-work section:first-child .mtg-actions{margin-top:0}.mtg-code-panel .mtg-actions button{padding:11px 16px}@media(max-width:800px){.mtg [data-checks]{grid-template-columns:1fr}.mtg-code-panel .mtg-actions{width:100%}.mtg-code-panel .mtg-actions button{flex:1}}
/* Studio 3.0: compact, cohesive application shell */
.mtg{max-width:1440px;background:#f3f6fb;padding:24px clamp(14px,2.5vw,36px) 36px;border-radius:24px;color:#18243a;font-size:14px;line-height:1.55}.mtg nav{font-size:12px;color:#64748b}.mtg header{background:radial-gradient(ellipse at 85% 10%,#2864dc 0,transparent 45%),linear-gradient(110deg,#101c38,#173d80);padding:24px 28px;margin:12px 0 0;border-radius:18px 18px 0 0}.mtg header h1{font-weight:750;letter-spacing:-1.2px;font-size:32px}.mtg header p{color:#dce8ff;font-size:14px}.mtg-hero-mark{font-size:96px;right:48px;color:#ffffff26}.mtg-strip{border:1px solid #dce5f2;border-top:0;border-radius:0 0 16px 16px;background:#fff;padding:12px 20px;margin-bottom:20px}.mtg-strip span:not(:last-child){color:#365b94}.mtg-work{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.mtg section,.mtg article,.mtg aside{border:1px solid #e0e7f1;border-radius:16px;padding:20px;box-shadow:0 4px 12px #142d5010}.mtg h2{font-size:18px;font-weight:720;letter-spacing:-.35px}.mtg h3{font-size:15px;font-weight:700}.mtg-step{display:inline-grid;place-items:center;width:29px;height:29px;border-radius:9px;background:#e8efff;color:#1556d8;font-size:12px;margin-right:6px;vertical-align:middle}.mtg-head{margin-bottom:12px}.mtg-head h2{margin:0}.mtg-tabs{background:#f0f3f9;border:1px solid #e5ebf5;padding:4px;margin-bottom:14px}.mtg button{border-radius:8px;font-size:12px;padding:9px 12px;box-shadow:none}.mtg button[aria-pressed=true],.mtg [data-copy]{background:#1557e8;box-shadow:0 3px 8px #1557e825}.mtg label{margin:9px 0;font-size:12px;font-weight:650}.mtg input:not([type=checkbox]),.mtg textarea,.mtg select{font-size:13px;font-weight:400;padding:9px 12px;min-height:40px;background:#f8fafd;border-color:#dce4ef;border-radius:8px;box-shadow:none}.mtg textarea{min-height:76px;resize:vertical}.mtg-work section:first-child .mtg-actions{padding-top:5px}.mtg-browser{background:#f1f4f9;padding:12px;border-radius:12px}.mtg-preview{border:0;box-shadow:0 2px 8px #142d500b;padding:17px;border-radius:9px}.mtg-globe{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#edf1f7;color:#526783;margin-right:7px}.mtg [data-preview-title]{font:400 20px/1.3 Arial,sans-serif;margin:8px 0}.mtg-preview p{font:14px/1.5 Arial,sans-serif;color:#4b5563}.mtg-social-heading{display:flex;justify-content:space-between;align-items:center}.mtg-social-heading span{font-size:10px;font-weight:500;color:#64748b}.mtg-social{padding:0;overflow:hidden;background:#fff}.mtg [data-image-note]{border-radius:0;margin:0;padding:22px 12px;background:linear-gradient(120deg,#e9eff9,#f3f6fc);font-size:12px}.mtg-social strong,.mtg-social p{display:block;margin:10px 14px;font-size:13px}.mtg-social p{color:#526174;margin-top:0}.mtg [data-checks] div{font-size:12px;padding:10px 12px;border:1px solid #e4eaf2}.mtg-code-panel pre{background:#101b31;border:1px solid #253955;border-radius:10px;color:#c8e1ff;font:12px/1.8 ui-monospace,Consolas,monospace;padding:18px;max-height:280px}.mtg-code-panel .mtg-actions button{padding:10px 14px}.mtg-features{gap:12px;margin-top:20px}.mtg-features>div{background:white;border:1px solid #e0e7f1;border-radius:12px;padding:16px;border-top:3px solid #2463eb}.mtg-features>div:nth-child(2){border-top-color:#7856dc}.mtg-features>div:nth-child(3){border-top-color:#0d9488}.mtg-features p{font-size:13px}.mtg-bottom{grid-template-columns:minmax(0,2.5fr) minmax(0,1fr);gap:14px;margin-top:16px}.mtg article p,.mtg article li,.mtg aside p{color:#475569;font-size:14px}.mtg article h3{margin-top:22px}.mtg-example{padding:14px;border-left:3px solid #2563eb;background:#f1f5ff;border-radius:0 8px 8px 0}.mtg aside a{background:#f7f9fd;font-size:13px;border-color:#e5ebf4}.mtg details{border:1px solid #e2e8f0;border-radius:9px;padding:12px;margin:8px 0}.mtg summary{font-size:13px}.mtg-faq-heading{padding-top:12px;border-top:1px solid #e2e8f0}@media(max-width:800px){.mtg{padding:12px;border-radius:0}.mtg-work,.mtg-bottom,.mtg-features{grid-template-columns:1fr}.mtg header{padding:18px}.mtg header h1{font-size:26px}.mtg section,.mtg article,.mtg aside{padding:15px}.mtg-strip{gap:8px;font-size:11px}.mtg [data-checks]{grid-template-columns:1fr}}
