/* R288 site-wide product identity. Intentionally scoped: no app widget resets. */
.mtg-site-header,.mtg-site-footer{--mtg-ink:#eaf4ff;--mtg-muted:#a5b8cb;--mtg-aqua:#9febd2;--mtg-line:#274156;box-sizing:border-box;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--mtg-ink);letter-spacing:normal}
.mtg-site-header *, .mtg-site-footer *{box-sizing:border-box}
.mtg-site-header a,.mtg-site-footer a{color:inherit;text-decoration:none;cursor:pointer}
.mtg-site-header a:hover,.mtg-site-footer a:hover{color:#d5fff0}
.mtg-site-header a:focus-visible,.mtg-site-footer a:focus-visible,.mtg-site-header summary:focus-visible{outline:3px solid #8aebd4;outline-offset:4px}
.mtg-site-header{position:relative;z-index:100;background:#0c1a2b;border-bottom:1px solid #20364b;width:100%;box-shadow:0 2px 20px #0813201a}
.mtg-header-inner{width:min(100%,1480px);margin:auto;padding:0 clamp(16px,2.3vw,36px);height:70px;display:flex;align-items:center;gap:clamp(16px,2.7vw,44px)}
.mtg-brand{display:inline-flex;align-items:center;gap:10px;flex-shrink:0;font-size:22px;line-height:1;font-weight:850;letter-spacing:-1.4px;white-space:nowrap}
.mtg-brand-mark{display:grid;place-items:center;position:relative;width:37px;height:37px;border-radius:12px;background:linear-gradient(145deg,#c0ffe1 0%,#7bdcce 60%,#62b9f2 100%);color:#0b2934;font-size:22px;font-weight:950;box-shadow:inset 0 1px 0 #ffffff99,0 6px 20px #49b9c425}
.mtg-brand-mark span{position:absolute;font-size:22px;right:4px;bottom:2px;line-height:.5;color:#11696f}
.mtg-brand-dot{color:var(--mtg-aqua)}
.mtg-nav{display:flex;align-items:center;gap:clamp(13px,1.8vw,29px);height:100%;font-size:13px;font-weight:650;color:#afc2d2}
.mtg-nav>a,.mtg-nav summary{display:flex;align-items:center;gap:6px;min-height:44px;white-space:nowrap}
.mtg-nav a[aria-current="page"]{color:#a8f3dc}
.mtg-products{position:relative;align-self:center}.mtg-products summary{cursor:pointer;list-style:none}.mtg-products summary::-webkit-details-marker{display:none}
.mtg-products summary span{font-size:14px}.mtg-products-menu{position:absolute;top:calc(100% + 7px);left:-12px;display:grid;grid-template-columns:repeat(2,minmax(210px,1fr));min-width:470px;gap:6px;padding:12px;border:1px solid #345269;border-radius:16px;background:#10243a;box-shadow:0 20px 56px #0008}
.mtg-products-menu a{display:grid;gap:5px;padding:13px 14px;border-radius:10px;color:#eaf4ff}.mtg-products-menu a:hover{background:#1b3b4d}.mtg-products-menu strong{font-size:13px;font-weight:750}.mtg-products-menu small{color:#a4b7c8;font-size:11px;font-weight:500;line-height:1.3}
.mtg-header-right{margin-left:auto;display:flex;align-items:center;gap:15px;white-space:nowrap;font-size:13px;font-weight:750}
.mtg-quick-link{color:#c7d9e6!important}.mtg-cta{display:inline-flex;align-items:center;gap:9px;border-radius:11px;padding:12px 16px;min-height:43px;background:#b1f1d7;color:#0c2c2a!important;font-weight:800;transition:background .15s}.mtg-cta:hover{background:#d5ffe9;color:#0c2c2a!important}
.mtg-mobile-menu{display:none;margin-left:auto;position:relative;font-size:13px;font-weight:750}.mtg-mobile-menu>summary{list-style:none;cursor:pointer;border:1px solid #486073;border-radius:10px;min-height:42px;padding:10px 13px;display:flex;align-items:center;gap:7px}.mtg-mobile-menu>summary::-webkit-details-marker{display:none}.mtg-burger{font-size:18px;line-height:1}
.mtg-mobile-menu>nav{position:absolute;right:0;top:calc(100% + 11px);width:min(310px,calc(100vw - 24px));padding:9px;background:#10243a;border:1px solid #335168;border-radius:14px;box-shadow:0 16px 56px #0009;display:grid;z-index:110}
.mtg-mobile-menu>nav a{padding:12px 13px;border-radius:9px}.mtg-mobile-menu>nav a:hover{background:#244658}
.mtg-site-footer{display:block;position:relative;z-index:2;background:#081726;border-top:1px solid #254057;padding:64px clamp(16px,2.3vw,36px) 26px;width:100%;font-size:13px;line-height:1.5}
.mtg-footer-inner{max-width:1440px;margin:0 auto}.mtg-footer-top{display:grid;grid-template-columns:minmax(220px,1.85fr) repeat(4,minmax(120px,1fr));gap:clamp(22px,3vw,54px)}
.mtg-footer-intro{max-width:340px}.mtg-footer-intro p{margin:20px 0;max-width:310px;color:#afc2d2;font-size:13px;line-height:1.8}.mtg-footer-note{font-size:12px;color:#a4ead2;border:1px solid #2c544f;background:#14352e;padding:11px 14px;border-radius:11px;display:inline-flex;gap:9px}
.mtg-footer-col{display:flex;flex-direction:column;gap:12px;min-width:0}.mtg-footer-col h2{margin:5px 0 12px;color:#ecf8ff;font-size:13px;line-height:1.4;font-weight:800;letter-spacing:.15px}
.mtg-footer-col a{color:#afc0d1;font-size:12.5px;line-height:1.5;overflow-wrap:anywhere}.mtg-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-top:56px;padding-top:22px;border-top:1px solid #263f52;color:#93aabb;font-size:11.5px}
.mtg-footer-bottom p{margin:0;color:#93aabb;font-size:11.5px;line-height:1.6}.mtg-footer-bottom>div{display:flex;align-items:center;flex-wrap:wrap;gap:23px}
.mtg-footer-bottom a{color:#a6bdcd;font-size:11.5px}
@media(max-width:1100px){.mtg-header-inner{gap:24px}.mtg-nav{gap:15px}.mtg-footer-top{grid-template-columns:minmax(220px,2fr) repeat(2,minmax(145px,1fr));row-gap:38px}}
@media(max-width:825px){.mtg-nav,.mtg-header-right{display:none}.mtg-mobile-menu{display:block}.mtg-header-inner{height:62px}.mtg-site-footer{padding-top:46px}.mtg-footer-top{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px}.mtg-footer-intro{grid-column:1/-1;max-width:none}.mtg-footer-intro p{max-width:520px}}
@media(max-width:450px){.mtg-brand{font-size:20px}.mtg-brand-mark{width:34px;height:34px}.mtg-site-footer{padding:38px 20px 25px}.mtg-footer-top{column-gap:16px}.mtg-footer-col{gap:11px}.mtg-footer-bottom{margin-top:38px}}
@media(prefers-reduced-motion:reduce){.mtg-site-header *, .mtg-site-footer *{scroll-behavior:auto;transition:none!important}}
/* R612: one shared balance control, with usable touch navigation. */
.mtg-header-inner{gap:clamp(12px,1.7vw,26px)}
.mtg-nav{gap:clamp(11px,1.3vw,20px)}
.mtg-balance-menu{position:relative;margin-left:auto;flex:none;font-size:12px}
.mtg-header-right{margin-left:0;order:3}
.mtg-balance-menu{order:2}
.mtg-mobile-menu{order:4}
.mtg-balance-menu>summary{list-style:none;display:flex;align-items:center;gap:6px;min-height:41px;padding:8px 12px;border:1px solid #3a6070;border-radius:999px;background:#143648;color:#d6fff1;font-weight:750;cursor:pointer;white-space:nowrap}
.mtg-balance-menu>summary::-webkit-details-marker{display:none}
.mtg-balance-menu[open]>summary{border-color:#80d6bc;background:#204d54}
.mtg-balance-panel{position:absolute;right:0;top:calc(100% + 9px);z-index:120;width:min(330px,calc(100vw - 24px));max-height:min(520px,calc(100dvh - 84px));overflow:auto;padding:10px;border:1px solid #426278;border-radius:16px;background:#10243a;box-shadow:0 20px 56px #0009;white-space:normal}
.mtg-balance-panel>a,.mtg-balance-panel>.mtg-purchase-unavailable{display:grid;gap:4px;padding:11px 12px;border-radius:11px;border:1px solid transparent}
.mtg-balance-panel>a:hover{background:#1b3b4d;border-color:#3b6772}
.mtg-balance-panel strong{font-size:12px}.mtg-balance-panel small{display:block;color:#acc1d0;font-size:11px;font-weight:450;line-height:1.4}
.mtg-balance-title{padding:8px 12px;color:#93e7d1;font-weight:800;font-size:11px;letter-spacing:.04em}
.mtg-balance-amount{padding:0 12px 8px;font-size:21px;font-weight:820;color:#f2fffa;font-variant-numeric:tabular-nums}
.mtg-purchase-unavailable{opacity:.78;background:#193044}
.mtg-site-header .mtg-balance-menu summary:focus-visible{outline:3px solid #8aebd4;outline-offset:3px}
@media(max-width:825px){
 .mtg-header-inner{gap:8px;padding:0 12px}
 .mtg-balance-menu{margin-left:auto}
 .mtg-mobile-menu{margin-left:0}
 .mtg-mobile-menu>nav{position:fixed;top:62px;left:0;right:0;width:100%;max-height:calc(100dvh - 62px);overflow:auto;padding:10px 14px 18px;border-radius:0 0 16px 16px;box-shadow:0 20px 32px #0009}
 .mtg-mobile-menu>nav a{min-height:47px;display:flex;align-items:center;border-bottom:1px solid #234056;font-size:14px}
}
@media(max-width:500px){
 .mtg-brand{font-size:18px;gap:5px}.mtg-brand-mark{width:31px;height:31px;font-size:19px}
 .mtg-balance-menu>summary{max-width:126px;min-height:38px;padding:7px 9px;font-size:11px}
 .mtg-balance-menu>summary span{overflow:hidden;text-overflow:ellipsis}
 .mtg-mobile-menu>summary{min-height:38px;padding:7px 9px}.mtg-mobile-menu>summary span:last-child{display:none}
}
/* Legal and informational public pages use the same shell and visual language. */
.mtg-info-page{min-height:65vh;background:#f5f8fb;color:#192d40;padding:64px 24px 90px;font:15px/1.75 Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.mtg-info-page .mtg-info-wrap{width:min(100%,890px);margin:0 auto}.mtg-info-page .mtg-eyebrow{display:block;font-size:12px;font-weight:850;letter-spacing:2px;text-transform:uppercase;color:#197e79;margin-bottom:14px}
.mtg-info-page h1{font-size:clamp(32px,5vw,52px);line-height:1.14;letter-spacing:-1.8px;margin:0 0 18px;color:#112a3b}.mtg-info-page .mtg-intro{font-size:17px;color:#577087;line-height:1.7;max-width:740px;margin-bottom:34px}
.mtg-info-page h2{font-size:22px;line-height:1.3;margin:35px 0 13px;color:#17354b}.mtg-info-page p,.mtg-info-page li{color:#395269}.mtg-info-page a{color:#157c86;text-decoration:underline;text-underline-offset:3px}.mtg-info-page .mtg-info-card{background:#fff;border:1px solid #dfeaf0;box-shadow:0 8px 30px #17364b0b;border-radius:18px;padding:clamp(22px,4vw,40px)}.mtg-info-page ul{padding-left:23px}.mtg-info-page .mtg-meta{color:#667f92;font-size:13px}

/* Shield shared corporate footer against old landing-page rules targeting footer>div. */
.mtg-site-footer{max-width:none!important;margin:0!important;align-items:initial!important;gap:0!important}
.mtg-site-footer>.mtg-footer-inner{display:block!important;gap:0!important;color:var(--mtg-ink)!important;font-size:13px!important;max-width:1440px!important;margin:0 auto!important;padding:0!important}
/* R613: account usage lives in a vertical panel, with Premium and extra USD distinct. */
.mtg-balance-menu>summary{gap:8px}
.mtg-business-workspace{display:flex;align-items:center;gap:6px;min-width:0}
.mtg-business-workspace[hidden]{display:none}
.mtg-business-workspace select{max-width:160px;min-width:0;height:34px;border:1px solid #496477;border-radius:9px;padding:4px 7px;background:#172e42;color:#e7f9f4;font-size:11px}
.mtg-business-workspace button{height:34px;white-space:nowrap;padding:5px 8px;border:1px solid #496477;border-radius:9px;background:#1a3b4a;color:#e7f9f4;font-size:11px;cursor:pointer}
.mtg-business-workspace :is(select,button):focus-visible{outline:2px solid #8aebd4;outline-offset:2px}
.mtg-business-workspace button[hidden]{display:none}
.mtg-workspace-list{display:none;position:relative;min-width:0}
.mtg-workspace-list>summary{list-style:none;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px 10px;border:1px solid #496477;border-radius:9px;background:#172e42;color:#e7f9f4;font-size:12px;font-weight:750}
.mtg-workspace-list>summary::-webkit-details-marker{display:none}
.mtg-workspace-options{position:absolute;top:calc(100% + 7px);left:0;display:grid;min-width:190px;max-width:min(300px,calc(100vw - 20px));max-height:60dvh;overflow:auto;padding:6px;border:1px solid #496477;border-radius:12px;background:#10243a;box-shadow:0 12px 30px #0008;z-index:130}
.mtg-workspace-options button{width:100%;height:auto;min-height:37px;text-align:left;overflow-wrap:anywhere;border:0;border-radius:7px;background:transparent;color:#e7f9f4;font-size:12px;padding:8px 10px;cursor:pointer}
.mtg-workspace-options button:hover,.mtg-workspace-options button[aria-current="true"]{background:#254655}
.mtg-workspace-options .mtg-workspace-add{border-top:1px solid #496477;margin-top:5px;border-radius:0;color:#a8f3dc}
.mtg-profile-link{display:block;margin:8px 10px;width:calc(100% - 20px);padding:9px;text-align:left;border:1px solid #466579;border-radius:8px;background:#1a3b4a;color:#e7f9f4;cursor:pointer}
.mtg-account-avatar{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:#a9f3d9;color:#103a3e;font-size:11px;font-weight:850}
.mtg-account-label{font-size:12px}
.mtg-balance-panel{width:min(365px,calc(100vw - 20px));display:block;text-align:left}
.mtg-account-identity{padding:8px 12px 12px;border-bottom:1px solid #365166;font-size:12px;font-weight:750;overflow-wrap:anywhere}
.mtg-allowance-title{padding:14px 12px 7px;color:#ddfff2;font-size:13px;font-weight:800}
.mtg-workspace-select{display:grid;gap:5px;padding:3px 12px 8px;color:#acc1d0;font-size:10px}
.mtg-workspace-select select{width:100%;min-height:35px;border:1px solid #456477;border-radius:8px;background:#172e42;color:#e7f9f4;padding:5px 8px}
.mtg-pool{display:grid;gap:6px;margin:8px 10px;padding:11px 12px;border-radius:11px;background:#19364a;border:1px solid #315368}
.mtg-pool-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.mtg-pool-head strong{font-size:12px}.mtg-pool-head b{color:#9af1d2;font-size:13px;white-space:nowrap}
.mtg-pool progress{display:block;width:100%;height:9px;accent-color:#78dbb6;border:0;border-radius:99px;overflow:hidden}
.mtg-pool progress::-webkit-progress-bar{background:#315268}.mtg-pool progress::-webkit-progress-value{background:#78dbb6;border-radius:99px}
.mtg-pool small{line-height:1.4}
.mtg-allowance-note,.mtg-allowance-empty{display:block;margin:7px 12px 12px;color:#acc1d0;font-size:10px;line-height:1.45}
.mtg-balance-divider{margin:12px 10px 2px;border-top:1px solid #3b586b}
.mtg-account-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:11px 10px 5px;border-top:1px solid #365166}
.mtg-account-actions button{min-height:38px;padding:8px;border:1px solid #466579;border-radius:9px;background:#1a3b4a;color:#edfff7;font-size:11px;font-weight:700;cursor:pointer}
.mtg-account-actions button:hover{background:#245266}.mtg-account-actions button:focus-visible,.mtg-workspace-select select:focus-visible{outline:2px solid #8aebd4;outline-offset:2px}
.mtg-mobile-section{padding:12px 13px 5px;color:#8be2c7;font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
@media(max-width:1100px){.mtg-header-right{display:none}}
@media(max-width:825px){
 .mtg-header-inner{justify-content:space-between}
 .mtg-mobile-menu{order:-3;display:block!important;margin:0!important}
 .mtg-brand{order:0}
 .mtg-business-workspace{order:-2;flex:0 1 140px;min-width:78px}
 .mtg-business-workspace>select,.mtg-business-workspace>button{display:none}
 .mtg-workspace-list{display:block;width:100%}
 .mtg-balance-menu{order:5;margin-left:auto}
 .mtg-mobile-menu>nav{left:0;right:auto;width:min(330px,calc(100vw - 20px));max-height:calc(100dvh - 62px);border-radius:0 0 16px 0}
 .mtg-balance-panel{right:0;max-height:calc(100dvh - 76px)}
 .mtg-balance-menu>summary{min-width:38px;max-width:44px;padding:3px;border-radius:50%;border:0;background:transparent}
 .mtg-balance-menu>summary .mtg-account-avatar{width:36px;height:36px}
 .mtg-balance-menu>summary .mtg-account-label{display:none}
 .mtg-balance-menu>summary>span:not(.mtg-account-avatar){display:none}
 .mtg-balance-menu>summary:not(:has(.mtg-account-avatar)){max-width:none;border:1px solid #3a6070;border-radius:99px;padding:7px 9px}
 .mtg-balance-menu>summary:not(:has(.mtg-account-avatar))>span{display:inline;font-size:10px}
}
@media(max-width:390px){.mtg-brand{font-size:16px}.mtg-brand-mark{width:29px;height:29px}}
@media(max-width:500px){.mtg-header-inner:has(.mtg-business-workspace:not([hidden])) .mtg-brand>span:last-child{display:none}.mtg-business-workspace{flex-basis:130px}}
/* R615: workspace, AI credits, and account each have one control. */
.mtg-header-inner>.mtg-brand{order:0}
.mtg-header-inner>.mtg-nav{order:1}
.mtg-header-inner>.mtg-header-right{order:2;margin-left:auto;gap:12px}
.mtg-header-inner>.mtg-business-workspace{order:3;margin-left:0;flex:none;max-width:158px}
.mtg-workspace-list{display:block;width:100%}
.mtg-workspace-list>summary{max-width:158px;min-height:39px;line-height:21px;border-radius:999px;padding:8px 12px}
.mtg-workspace-options{left:auto;right:0}
.mtg-header-inner>.mtg-balance-menu{order:4;margin-left:0}
.mtg-header-inner>.mtg-account-menu{order:5}
.mtg-header-inner>.mtg-mobile-menu{order:6}
.mtg-business-link{color:#caeadf!important}
.mtg-account-menu{position:relative;flex:none;font-size:12px}
.mtg-account-menu>summary{list-style:none;display:flex;align-items:center;gap:7px;min-height:41px;padding:5px 9px;border:1px solid #3a6070;border-radius:999px;background:#143648;color:#e9fff7;font-weight:750;cursor:pointer;white-space:nowrap}
.mtg-account-menu>summary::-webkit-details-marker{display:none}
.mtg-account-menu[open]>summary{background:#204d54;border-color:#80d6bc}
.mtg-account-panel{position:absolute;right:0;top:calc(100% + 9px);z-index:120;width:min(280px,calc(100vw - 20px));padding:10px;border:1px solid #426278;border-radius:14px;background:#10243a;box-shadow:0 20px 56px #0009;white-space:normal;text-align:left}
.mtg-account-panel>a,.mtg-account-panel>.mtg-signout{display:block;width:100%;min-height:40px;padding:10px 12px;text-align:left;border:1px solid transparent;border-radius:9px;background:transparent;color:#e9fff7;font:inherit;cursor:pointer}
.mtg-account-panel>a:hover,.mtg-account-panel>.mtg-signout:hover{background:#1b3b4d}
.mtg-account-panel small{color:#acc1d0}
.mtg-header-inner .mtg-balance-menu>summary{min-width:41px}
@media(max-width:1100px){.mtg-header-inner>.mtg-header-right{display:none}}
@media(max-width:1100px){
 .mtg-header-inner{height:62px;justify-content:initial;gap:7px;padding:0 10px}
 .mtg-header-inner>.mtg-nav{display:none}
 .mtg-header-inner>.mtg-mobile-menu{order:0;display:block;margin:0}
 .mtg-header-inner>.mtg-brand{order:1}
 .mtg-header-inner>.mtg-business-workspace{order:2;margin-left:auto;flex:0 1 112px;min-width:70px}
 .mtg-header-inner:not(:has(.mtg-business-workspace:not([hidden])))>.mtg-balance-menu{margin-left:auto}
 .mtg-workspace-list>summary{max-width:112px;padding:8px 9px}
 .mtg-header-inner>.mtg-balance-menu{order:3;flex:none}
 .mtg-header-inner>.mtg-account-menu{order:4;flex:none}
 .mtg-balance-menu>summary:not(:has(.mtg-account-avatar)){width:38px;min-width:38px;min-height:38px;max-width:38px;display:grid;place-items:center;padding:0;border:1px solid #3a6070;border-radius:50%;font-size:20px}
 .mtg-balance-menu>summary:not(:has(.mtg-account-avatar))>span{display:none}
 .mtg-account-menu>summary{width:38px;min-height:38px;padding:2px;border:0;background:transparent}
 .mtg-account-menu>summary .mtg-account-avatar{width:34px;height:34px}
 .mtg-account-menu>summary .mtg-account-label{display:none}
 .mtg-mobile-menu>nav{position:fixed;top:62px;left:0;right:auto;width:min(330px,calc(100vw - 20px));max-height:calc(100dvh - 62px);overflow:auto;border-radius:0 0 16px 0}
 .mtg-balance-panel,.mtg-account-panel,.mtg-workspace-options{position:fixed;right:10px;left:auto;top:62px;max-height:calc(100dvh - 72px);overflow:auto}
 .mtg-workspace-options{width:min(250px,calc(100vw - 20px))}
}
@media(max-width:500px){.mtg-header-inner>.mtg-brand>span:last-child{display:none}}
@media(max-width:360px){.mtg-header-inner{gap:4px;padding:0 6px}.mtg-workspace-list>summary{max-width:83px}.mtg-header-inner>.mtg-business-workspace{flex-basis:83px}}
