/* Megletters Inbox v3 — receive-only portal and interaction fixes. */
html{--mg-muted:#717b90;--mg-brand:#7057df;--mg-selected:#eee9fc;--mg-focus:#856bea;}
html.dark-mode{--mg-muted:#a0abc2;--mg-brand:#bba8ff;--mg-selected:#302947;--mg-focus:#b69bff;}
html body.task-login #login-form input{
 color:#302b3f!important;-webkit-text-fill-color:#302b3f!important;caret-color:#7057df!important;opacity:1!important;
 background:#fcfbfe!important;font-size:14px!important;font-weight:500!important;
}
html body.task-login #login-form input::placeholder{color:#81788f!important;-webkit-text-fill-color:#81788f!important;opacity:1;}
html body.task-login #login-form input:-webkit-autofill{box-shadow:0 0 0 100px #f5f1ff inset!important;-webkit-text-fill-color:#302b3f!important;caret-color:#7057df!important;}
html body.task-login #login-form input:focus{background:#fff!important;border-color:#8262e4!important;box-shadow:0 0 0 4px #8262e425!important;outline:1px solid #8262e4!important;outline-offset:0;}
html body.task-login #login-form .form-group{margin-bottom:13px!important;}
html body.task-login .mg-field-label{font-size:12px!important;color:#655b76!important;}
html body.task-login .mg-login-intro{color:#766c84!important;}
html body.task-login #rcmloginsubmit{font-size:13px!important;text-transform:none!important;}
html body.task-login .mg-welcome-mark{background:transparent;border:0;}
html body.task-login .mg-welcome-mark img{width:43px;height:43px;opacity:1;}
html body.task-login .mg-login-card{max-width:370px;}
html body.task-login .mg-login-bottom{margin-top:15px;}
html body :is(a,button,input,select,textarea){-webkit-tap-highlight-color:#8262e42b;}
html body :is(a,button){cursor:pointer;}
html body :is(button,a.button,.toolbar a,#taskmenu a):active:not(:disabled){transform:translateY(1px);filter:brightness(.94);}
html body :is(a,button,input,select,textarea):focus-visible{outline:2px solid var(--mg-focus)!important;outline-offset:3px!important;}
html body :is(input,select,textarea):focus{border-color:var(--mg-focus)!important;box-shadow:0 0 0 3px #8262e425!important;}
html body #taskmenu a{transition:background-color .15s,color .15s,box-shadow .15s;}
html body #taskmenu a:hover{box-shadow:inset 0 0 0 1px #846de523;}
html body #taskmenu a.selected{box-shadow:inset 3px 0 0 var(--mg-brand)!important;}
html body #taskmenu a.logout{color:#ce6379!important;}
html body #taskmenu a.logout:hover{background:#ce637915!important;}
html body #taskmenu :is(a.mg-password,a.mg-shop)::before{content:""!important;display:inline-block!important;flex:0 0 20px;width:20px;height:20px;background:currentColor;mask:center/contain no-repeat;-webkit-mask:center/contain no-repeat;}
html body #taskmenu a.mg-password::before{mask-image:url("../images/icons/lock.svg");-webkit-mask-image:url("../images/icons/lock.svg");}
html body #taskmenu a.mg-shop::before{mask-image:url("../images/icons/bag.svg");-webkit-mask-image:url("../images/icons/bag.svg");}
.mg-soon{font-size:8px;letter-spacing:.5px;border:1px solid var(--mg-line);border-radius:5px;padding:2px 4px;margin-left:auto;color:var(--mg-muted);line-height:1.3;}
.mg-account{margin:2px 6px 15px;padding:13px 10px 10px;border:1px solid var(--mg-line);border-radius:13px;background:var(--mg-panel);}
.mg-account-caption{display:block;font-size:8px;letter-spacing:1.1px;font-weight:650;color:var(--mg-muted);margin-bottom:6px;}
html body #mg-copy-address{display:flex;width:100%;padding:4px 0;align-items:center;gap:8px;border:0;background:transparent;color:var(--mg-ink);text-align:left;box-shadow:none;font-size:12px;font-weight:550;border-radius:5px;}
#mg-current-address{overflow-wrap:anywhere;white-space:normal;min-width:0;flex:1;line-height:1.65;}
.mg-copy-icon{width:16px;height:16px;flex:none;background:var(--mg-muted);mask:url("../images/icons/copy.svg") center/contain no-repeat;-webkit-mask:url("../images/icons/copy.svg") center/contain no-repeat;}
#mg-copy-address:hover{color:var(--mg-brand)!important;}
.mg-copy-status{display:block;font-size:8px;line-height:1.5;color:var(--mg-muted);min-height:12px;margin-top:4px;}
#mg-copy-address.mg-copied .mg-copy-icon{background:#43a98a;mask-image:url("../images/icons/check.svg");-webkit-mask-image:url("../images/icons/check.svg");}
#mg-copy-address.mg-copied+.mg-copy-status{color:#43a98a;}
html body #layout-menu .mg-wordmark{font-size:21px;}
html body #layout-menu .mg-wordmark>span{font-size:7px;letter-spacing:1.15px;}
html body #layout-sidebar .mg-folders-title{display:block!important;font-size:10px;font-weight:650;letter-spacing:1.1px;text-align:left;margin:0!important;color:var(--mg-muted);text-transform:uppercase;}
html body #layout-sidebar .username,html body #quotadisplay{display:none!important;}
html body #mailboxlist li.selected>a{background:var(--mg-selected)!important;color:var(--mg-brand)!important;box-shadow:inset 3px 0 0 var(--mg-brand);}
html body #mailboxlist li>a:hover{background:var(--mg-hover)!important;}
html body #layout-content>.header .toolbar a{min-width:52px;padding:7px 9px!important;text-align:center;}
html body .header .toolbar a::before{width:20px!important;height:20px!important;font-size:20px!important;line-height:20px!important;margin:0 auto 5px!important;float:none!important;}
html body #messagelist-header :is(a.select,a.threads,a.options)::before{height:20px!important;width:20px!important;font-size:18px!important;line-height:20px!important;}
html body .messagelist td.selection{width:36px!important;min-width:36px!important;padding:0!important;vertical-align:middle!important;text-align:center!important;line-height:normal!important;}
html body .messagelist td.selection .custom-control{display:inline-flex!important;align-items:center;justify-content:center;min-height:22px;min-width:22px;padding:0!important;margin:0!important;vertical-align:middle;}
html body .messagelist td.selection .custom-control-label{display:block;width:18px;height:18px;padding:0;margin:0;line-height:18px;}
html body .messagelist td.selection .custom-control-label::before,html body .messagelist td.selection .custom-control-label::after{top:0!important;left:0!important;width:18px!important;height:18px!important;border-radius:5px;}
html body .messagelist td.selection .custom-control-input{top:0;left:0;width:22px;height:22px;margin:0;}
html body .messagelist td.selection>input[type=checkbox]{appearance:none;-webkit-appearance:none;display:inline-block;position:relative;vertical-align:middle;width:18px;height:18px;margin:0!important;border:1.5px solid var(--mg-muted);border-radius:5px;background:var(--mg-panel);cursor:pointer;box-sizing:border-box;}
html body .messagelist td.selection>input[type=checkbox]:checked{background:var(--mg-brand) url("../images/icons/check-white.svg") center/14px no-repeat;border-color:var(--mg-brand);}
html body .messagelist.withselection td.subject{padding-left:54px!important;}
html body .messagelist.withselection .mg-sender-avatar{left:10px;width:30px;height:30px;}
html body .messagelist tr.selected td{background:var(--mg-selected)!important;}
html body .messagelist tr.selected td.subject :is(span.subject,a){color:var(--mg-ink)!important;}
html body .messagelist tr.focused td{border-left-color:var(--mg-brand)!important;}
html body .messagelist tr.selected .mg-sender-avatar{box-shadow:0 0 0 2px var(--mg-brand);}
html body .listing-hover-menu{display:none!important;}
html body .popupmenu :is(a.addcontact,a.compose){display:none!important;}
html body .mg-portal-content .header-title{display:block!important;text-align:left;margin:0!important;font-size:21px;font-weight:650;}
html body #password-form{max-width:640px;}
html body #password-form .form-group{display:block!important;margin:0 0 22px!important;}
html body #password-form .form-group>label,html body #password-form .form-group>.title{max-width:none!important;flex:none;width:100%;padding:0 0 8px!important;font-size:12px;color:var(--mg-muted);}
html body #password-form .form-group>.col-sm-8,html body #password-form .form-group>.col-sm-6{max-width:none;flex:none;width:100%;padding:0!important;}
html body #password-form input{height:46px;font-size:14px;color:var(--mg-ink)!important;-webkit-text-fill-color:var(--mg-ink)!important;caret-color:var(--mg-brand)!important;background:var(--mg-field)!important;}
html body #password-form{width:100%!important;max-width:600px!important;}
html body #password-form :is(table,tbody,tr,td){display:block!important;width:100%!important;max-width:none!important;box-sizing:border-box;float:none!important;}
html body #password-form input:not([type=hidden]){width:100%!important;max-width:none!important;min-width:0!important;}
html body #password-form td.title{padding:0 0 6px!important;}
html body #password-form td.title label{padding:0!important;font-size:12px!important;}
html body .btn-primary,html.dark-mode body .btn-primary{background:#7057df!important;border-color:#7057df!important;color:#fff!important;}
html body #logo{filter:none!important;opacity:1!important;}
html body #password-form+.formbuttons,html body #password-form .formbuttons{padding-top:3px;}
html body #password-form .ruleslist,html body #password-form+#ruleslist{font-size:12px;color:var(--mg-muted);}
.mg-shop-page{padding:36px;overflow:auto;flex:1;min-height:0;}
.mg-kicker{font-size:9px;letter-spacing:1.8px;color:var(--mg-brand);font-weight:650;}
.mg-shop-heading h1{font-size:32px;line-height:1.2;letter-spacing:-1.1px;color:var(--mg-ink);font-weight:650;margin:12px 0 14px;}
.mg-shop-heading p{font-size:13px;color:var(--mg-muted);margin:0 0 30px;}
.mg-price-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.mg-price-card{display:flex;flex-direction:column;padding:25px 22px;border:1px solid var(--mg-line);border-radius:17px;background:var(--mg-field);}
.mg-tier-icon{display:flex;width:39px;height:39px;border-radius:12px;align-items:center;justify-content:center;background:#e6defc;color:#8060d6;margin-bottom:18px;}
.mg-tier-icon::before{content:"";height:21px;width:21px;background:currentColor;mask:center/contain no-repeat;-webkit-mask:center/contain no-repeat;}
.mg-icon-infinity::before{mask-image:url("../images/icons/infinity.svg");-webkit-mask-image:url("../images/icons/infinity.svg");}
.mg-icon-clock::before{mask-image:url("../images/icons/clock.svg");-webkit-mask-image:url("../images/icons/clock.svg");}
.mg-icon-spark::before{mask-image:url("../images/icons/spark.svg");-webkit-mask-image:url("../images/icons/spark.svg");}
.mg-tier-1 .mg-tier-icon{background:#ddf0e9;color:#548d78;}.mg-tier-2 .mg-tier-icon{background:#fbedd9;color:#b38c47;}
.mg-price-card h2{font-size:18px;font-weight:650;letter-spacing:-.3px;color:var(--mg-ink);margin:0 0 19px;}
.mg-price strong{display:block;font-size:30px;letter-spacing:-.9px;color:var(--mg-ink);line-height:1.1;}
.mg-price>span,.mg-card-caption{font-size:11px;color:var(--mg-muted);}
.mg-card-caption{margin:26px 0 10px;}
.mg-price-card dl{margin:0 0 25px;font-size:11px;}
.mg-price-card dl>div{display:flex;justify-content:space-between;gap:6px;padding:9px 0;border-bottom:1px solid var(--mg-line);}
.mg-price-card dt{font-weight:400;color:var(--mg-muted);}
.mg-price-card dd{margin:0;font-weight:600;white-space:nowrap;color:var(--mg-ink);}
.mg-buy-soon{width:100%;border:1px solid var(--mg-line);border-radius:9px;padding:11px;color:var(--mg-muted);background:var(--mg-panel);font-size:11px;font-weight:600;cursor:default!important;margin-top:auto;opacity:1;}
html body button.mg-buy-soon{background:var(--mg-selected)!important;color:var(--mg-brand)!important;border:1px solid var(--mg-line)!important;opacity:1!important;font-size:12px!important;box-shadow:none!important;}
.mg-shop-note{color:var(--mg-muted);font-size:10px;line-height:1.7;max-width:680px;margin:23px 0 0;}
@media(min-width:1100px){
 html body:not(.task-login) #layout{grid-template-columns:252px minmax(330px,385px) minmax(300px,1fr);grid-template-rows:318px minmax(0,1fr);gap:16px;padding:18px;}
 html body:not(.task-login) #layout-menu{z-index:20;}
 html body:not(.task-login) #layout #layout-menu .popover-header{padding:0 8px 10px!important;}
 html body #layout-menu .mg-brand{height:55px!important;gap:11px;}
 html body #taskmenu{height:auto!important;padding:0 5px!important;}
 html body #taskmenu>a{height:42px!important;margin-bottom:5px;gap:11px;}
 html body #taskmenu a .inner{font-size:12px!important;}
 html body #taskmenu .special-buttons{position:fixed!important;left:23px!important;bottom:19px!important;width:242px!important;padding:12px 0 0!important;background:var(--mg-bg)!important;z-index:50;border-top:1px solid var(--mg-line);box-sizing:border-box;}
 html body #layout #taskmenu .special-buttons a{display:flex!important;align-items:center;justify-content:flex-start;gap:11px;width:100%!important;height:38px!important;padding:8px 14px!important;position:relative;z-index:1;pointer-events:auto;}
 html body #taskmenu .special-buttons a::before{margin:0!important;}
 html body:not(.task-login) #layout #layout-sidebar{padding:0 5px 100px!important;}
 html body #layout-sidebar>.header{padding:0 12px!important;height:35px;min-height:35px;}
 html body #layout-sidebar>.header .mg-folders-title{flex:1;text-align:left!important;line-height:35px!important;}
 html body #layout-sidebar .listing li>a{min-height:37px;height:37px;padding:8px 12px;font-size:12px;}
 html body.mg-portal-page #layout{grid-template-columns:252px minmax(0,1fr)!important;grid-template-rows:1fr!important;grid-template-areas:"menu content"!important;}
 html body.mg-portal-page #layout-content>.header{height:68px!important;min-height:68px!important;padding:0 30px!important;}
 html body.mg-portal-page #layout-content>.scroller{padding:35px 38px!important;}
}
@media(max-width:1190px) and (min-width:1100px){.mg-price-grid{gap:10px;}.mg-price-card{padding:20px 15px;}.mg-price strong{font-size:27px;}.mg-shop-page{padding:28px;}}
@media(max-width:1099px){
 #layout-menu .mg-account{display:none;}
 #taskmenu .mg-soon{display:none;}
 html body #layout-menu .mg-brand{justify-content:center;}
 html body #taskmenu a.mg-password,html body #taskmenu a.mg-shop{display:flex;align-items:center;justify-content:center;}
 .mg-shop-page{padding:25px;}
 .mg-price-grid{grid-template-columns:1fr;}
 .mg-price-card{max-width:600px;width:100%;}
 .mg-shop-heading h1{font-size:28px;}
 html body.mg-portal-page #layout-content>.header .header-title{margin:0 12px!important;}
}
@media(max-width:760px){
 html body #layout-menu .mg-account{display:block;margin:10px;}
 html body #layout-menu .mg-account-caption{font-size:8px;}
 html body #taskmenu a.mg-password,html body #taskmenu a.mg-shop{justify-content:flex-start;gap:12px;}
 html body #layout-menu .popover-header .mg-brand{justify-content:flex-start;height:58px;}
 html body #layout-menu .mg-brand #logo{position:static!important;transform:none!important;inset:auto!important;width:35px;height:35px;}
 html body #layout-menu .mg-wordmark{display:block;font-size:20px;}
 html body #taskmenu .special-buttons{z-index:20;}
 html body .mg-portal-content .header-title{font-size:18px;}
 html body.mg-portal-page #layout-content>.scroller{padding:24px!important;}
 .mg-shop-page{padding:23px;}
 .mg-price-card{padding:24px;}
 .mg-price-grid{gap:14px;}
 html body .messagelist td.selection{min-width:33px!important;width:33px!important;}
 html body #layout-menu .popover-header{height:76px!important;min-height:76px!important;padding:14px 12px!important;line-height:normal!important;box-sizing:border-box;}
 html body #layout-menu .popover-header .mg-brand{height:48px!important;}
 html body #layout-menu .mg-wordmark{line-height:1.2!important;font-size:19px;}
 html body #layout-menu .mg-wordmark>span{line-height:1.4!important;margin-top:5px;}
 html body #layout-menu .popover-header>a.cancel{position:absolute;right:7px;top:19px;width:32px;height:32px;line-height:32px;}
 html body #layout-menu #taskmenu>a,html body #layout-menu #taskmenu .special-buttons>a{display:flex!important;align-items:center;justify-content:flex-start;gap:12px;min-height:48px;padding:12px 16px!important;line-height:20px;font-size:14px!important;}
 html body #layout-menu #taskmenu a .inner{display:block!important;line-height:20px!important;padding:0!important;font-size:14px!important;}
 html body #layout-menu #taskmenu a::before{display:block!important;float:none!important;margin:0!important;flex:0 0 20px!important;width:20px!important;height:20px!important;line-height:20px!important;}
 html body.mg-portal-page #layout-content>.header{display:flex!important;align-items:center!important;justify-content:flex-start;height:58px!important;min-height:58px!important;padding:0 12px!important;}
 html body.mg-portal-page #layout-content>.header>.task-menu-button{display:flex!important;align-items:center;justify-content:center;position:static!important;width:32px;height:38px!important;min-width:32px;line-height:38px!important;margin-right:10px;}
 html body.mg-portal-page #layout-content>.header>.header-title{font-size:18px!important;line-height:1.3!important;margin:0!important;flex:1;min-width:0;text-align:left!important;}
}
@media(min-width:761px) and (max-width:1099px){
 html body #layout-menu .mg-account{display:block;margin:0;padding:10px 0;border:0;background:transparent;}
 html body #layout-menu .mg-account :is(.mg-account-caption,.mg-copy-status,#mg-current-address){display:none;}
 html body #layout-menu #mg-copy-address{justify-content:center;min-height:35px;}
 html body #layout-menu .mg-copy-icon{height:20px;width:20px;}
}
@media(prefers-reduced-motion:reduce){html body *{transition:none!important;}}

/* One notification system for login, mailbox, password and dialogs. */
html body #messagestack{position:fixed!important;right:24px!important;bottom:24px!important;left:auto!important;top:auto!important;width:370px!important;max-width:calc(100vw - 32px)!important;max-height:calc(100vh - 48px)!important;z-index:10050!important;pointer-events:none;}
html body #messagestack>div:not(.voice){--toast-accent:#8265d8;display:flex!important;align-items:flex-start;gap:12px;position:relative!important;box-sizing:border-box;min-height:68px!important;margin:10px 0 0!important;padding:19px 44px 19px 18px!important;border:1px solid var(--mg-line)!important;border-left:3px solid var(--toast-accent)!important;border-radius:15px!important;background:var(--mg-panel)!important;color:var(--mg-ink)!important;box-shadow:0 12px 42px #19162d1a!important;line-height:1.55!important;font-size:13px!important;font-weight:500;pointer-events:auto;overflow-wrap:anywhere;text-align:left;}
html body.task-login #messagestack>div:not(.voice){background:#fff!important;color:#3b344b!important;border-color:#e9e2f2!important;border-left-color:var(--toast-accent)!important;}
html body #messagestack>div>.content{margin:0!important;padding:0!important;min-width:0;flex:1;line-height:1.55!important;background:transparent!important;color:inherit!important;}
html body #messagestack>div:is(.warning,.alert-warning){--toast-accent:#b98642;}
html body #messagestack>div:is(.error,.alert-danger){--toast-accent:#cb6c80;}
html body #messagestack>div:is(.confirmation,.alert-success){--toast-accent:#4f9c82;}
html body #messagestack>div>i.icon{display:block!important;position:static!important;flex:0 0 22px!important;width:22px!important;height:22px!important;padding:0!important;margin:1px 0 0!important;color:var(--toast-accent)!important;float:none!important;line-height:22px!important;opacity:1!important;}
html body #messagestack>div>i.icon::before{content:""!important;display:block!important;background:currentColor!important;color:var(--toast-accent)!important;mask:url("../images/icons/info.svg") center/contain no-repeat;-webkit-mask:url("../images/icons/info.svg") center/contain no-repeat;width:22px!important;height:22px!important;margin:0!important;animation:none!important;}
html body #messagestack>div:is(.warning,.alert-warning)>i.icon::before{mask-image:url("../images/icons/toast-warning.svg");-webkit-mask-image:url("../images/icons/toast-warning.svg");}
html body #messagestack>div:is(.error,.alert-danger)>i.icon::before{mask-image:url("../images/icons/toast-error.svg");-webkit-mask-image:url("../images/icons/toast-error.svg");}
html body #messagestack>div:is(.confirmation,.alert-success)>i.icon::before{mask-image:url("../images/icons/toast-success.svg");-webkit-mask-image:url("../images/icons/toast-success.svg");}
html body #messagestack .mg-toast-close{position:absolute!important;right:10px;top:11px;width:26px;height:26px;min-width:26px;display:flex;align-items:center;justify-content:center;padding:0!important;margin:0!important;border:0!important;border-radius:7px!important;background:transparent!important;color:var(--mg-muted)!important;box-shadow:none!important;opacity:.8;}
html body #messagestack .mg-toast-close::before{content:"";width:12px;height:12px;background:currentColor;mask:url("../images/icons/close.svg") center/contain no-repeat;-webkit-mask:url("../images/icons/close.svg") center/contain no-repeat;}
html body #messagestack .mg-toast-close:hover{background:var(--mg-hover)!important;color:var(--mg-brand)!important;opacity:1;}
html body #messagestack>div.loading>i.icon::before{mask:none;-webkit-mask:none;background:transparent!important;border:2px solid #a997dd45;border-top-color:var(--toast-accent);border-radius:50%;width:20px!important;height:20px!important;box-sizing:border-box;animation:mg-notice-spin .7s linear infinite!important;}
html body .iframe-loader .spinner-border{color:var(--mg-brand)!important;}
html body .ui.alert:is(.boxwarning,.boxerror,.boxinformation,.boxconfirmation){border:1px solid var(--mg-line);border-radius:14px;padding:16px 20px;background:var(--mg-panel)!important;color:var(--mg-ink)!important;box-shadow:0 7px 25px #19162d09;}
html body .tooltip .tooltip-inner{background:var(--mg-panel);color:var(--mg-ink);border:1px solid var(--mg-line);border-radius:8px;box-shadow:0 5px 20px #19162d18;padding:7px 10px;font-size:11px;}
html body .ui-widget-overlay{background:#111426!important;opacity:.45!important;backdrop-filter:blur(3px);}
html body .ui-dialog{box-sizing:border-box;border:1px solid var(--mg-line)!important;border-radius:20px!important;background:var(--mg-panel)!important;color:var(--mg-ink)!important;box-shadow:0 24px 90px #17112933!important;padding:0!important;max-width:calc(100vw - 32px)!important;overflow:hidden;}
html body .ui-dialog .ui-dialog-titlebar{display:flex;align-items:center;gap:12px;position:relative;box-sizing:border-box;margin:0!important;padding:22px 60px 16px 24px!important;min-height:68px;background:var(--mg-panel)!important;border:0!important;color:var(--mg-ink)!important;border-radius:0!important;}
html body .ui-dialog .ui-dialog-titlebar::before{content:"";display:block;flex:0 0 24px;width:24px;height:24px;background:var(--mg-brand);mask:url("../images/icons/info.svg") center/contain no-repeat;-webkit-mask:url("../images/icons/info.svg") center/contain no-repeat;}
html body .ui-dialog .ui-dialog-title{font-size:17px!important;line-height:1.4;font-weight:650!important;margin:0!important;color:var(--mg-ink)!important;float:none!important;width:auto!important;}
html body .ui-dialog .ui-dialog-titlebar-close{display:flex!important;align-items:center;justify-content:center;position:absolute!important;right:17px!important;top:19px!important;margin:0!important;width:30px!important;height:30px!important;padding:0!important;border:0!important;border-radius:8px!important;background:transparent!important;color:var(--mg-muted)!important;box-shadow:none!important;font-size:0!important;}
html body .ui-dialog .ui-dialog-titlebar-close span{display:none!important;}
html body .ui-dialog .ui-dialog-titlebar-close::before{content:""!important;display:block;width:14px;height:14px;margin:auto!important;background:currentColor;mask:url("../images/icons/close.svg") center/contain no-repeat;-webkit-mask:url("../images/icons/close.svg") center/contain no-repeat;}
html body .ui-dialog .ui-dialog-titlebar-close:hover{background:var(--mg-hover)!important;color:var(--mg-brand)!important;}
html body .ui-dialog .ui-dialog-content{background:var(--mg-panel)!important;color:var(--mg-ink)!important;border:0!important;padding:4px 24px 12px!important;font-size:13px!important;line-height:1.7!important;}
html body .ui-dialog .ui-dialog-buttonpane{height:auto!important;min-height:0!important;margin:0!important;padding:10px 24px 22px!important;border:0!important;background:var(--mg-panel)!important;color:var(--mg-ink)!important;}
html body .ui-dialog .ui-dialog-buttonpane button{height:auto!important;margin:0 0 0 8px!important;border-radius:10px!important;min-height:40px!important;min-width:90px;padding:9px 17px!important;font-size:12px!important;font-weight:600!important;box-shadow:none!important;}
html body .ui-dialog .ui-dialog-buttonpane button:is(.save,.cancel)::before{content:""!important;display:inline-block!important;float:none!important;width:15px!important;height:15px!important;margin:0 7px 0 0!important;vertical-align:-3px;background:currentColor;mask:url("../images/icons/check.svg") center/contain no-repeat;-webkit-mask:url("../images/icons/check.svg") center/contain no-repeat;}
html body .ui-dialog .ui-dialog-buttonpane button.cancel::before{mask-image:url("../images/icons/close.svg");-webkit-mask-image:url("../images/icons/close.svg");}
html body .ui-dialog.no-titlebar .ui-dialog-titlebar{display:none!important;}
html body .ui-dialog.mg-compact-dialog{position:fixed!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%);height:auto!important;width:500px!important;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;}
html body .ui-dialog.mg-compact-dialog .ui-dialog-content{height:auto!important;min-height:0!important;max-height:60vh;flex:0 1 auto;overflow:auto;}
html body .ui-dialog.mg-compact-dialog :is(.ui-dialog-titlebar,.ui-dialog-buttonpane){flex:0 0 auto;}
html body .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{justify-content:flex-end!important;}
html body .ui-dialog .ui-resizable-se{display:none!important;}
html body :is(.popupmenu,.popover,.dropdown-menu){border:1px solid var(--mg-line)!important;border-radius:14px!important;background:var(--mg-panel)!important;color:var(--mg-ink)!important;box-shadow:0 15px 50px #1e24351a!important;}
html[lang=en] body.task-login .mg-story-copy h2{font-size:clamp(34px,3.7vw,53px);letter-spacing:-2.2px;}
@keyframes mg-notice-spin{to{transform:rotate(360deg);}}
@media(max-width:760px){html body #messagestack{right:16px!important;bottom:16px!important;width:calc(100vw - 32px)!important;max-width:none!important;}html body #messagestack>div:not(.voice){font-size:12px!important;padding:17px 40px 17px 16px!important;min-height:62px!important;gap:10px;}html[lang=en] body.task-login .mg-story-copy h2{font-size:36px;}}
@media(prefers-reduced-motion:reduce){html body #messagestack>div.loading>i.icon::before{animation:none!important;}}

/* Keep the field focus inside the space reserved below its label. */
html body.task-login #login-form .mg-field-label{display:block!important;margin:16px 0 9px!important;line-height:1.5!important;}
html body.task-login #login-form input{transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease;}
html body.task-login #login-form input:is(:focus,:focus-visible){outline:none!important;outline-offset:0!important;border-color:#967bd3!important;box-shadow:0 0 0 2px #8262e417!important;background:#fff!important;}
@media(prefers-reduced-motion:reduce){html body.task-login #login-form input{transition:none;}}

/* Public catalog and a quieter signed-in navigation. */
html body.task-login .mg-login-brand{gap:12px;flex-wrap:wrap;}
html body.task-login .mg-catalog-badge{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:8px 12px;margin-left:8px;border:1px solid #cfc4eb;border-radius:10px;background:#ffffffa8;color:#66519f;font:600 11px/1.2 inherit;font-size:11px;font-weight:600;box-shadow:0 3px 12px #5e44920a;white-space:nowrap;}
.mg-catalog-badge>span{width:14px;height:14px;background:currentColor;mask:url("../images/icons/bag.svg") center/contain no-repeat;-webkit-mask:url("../images/icons/bag.svg") center/contain no-repeat;}
html body.task-login .mg-catalog-badge:hover{background:#fff;border-color:#a58bdf;}
html body.task-login .mg-catalog-badge:active{background:#f1eafa;}
html body .mg-public-catalog:not([open]){display:none!important;}
html body .mg-public-catalog[open]{display:block;box-sizing:border-box;width:min(1060px,calc(100vw - 48px));max-width:none;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);padding:0;margin:auto;border:1px solid #e6e0ee;border-radius:24px;background:#fff;color:#302b3f;box-shadow:0 28px 100px #17112940;overflow:auto;--mg-panel:#fff;--mg-field:#f9f8fc;--mg-ink:#302b3f;--mg-muted:#81768e;--mg-line:#e9e2f1;--mg-brand:#7057df;--mg-selected:#eee9fc;}
.mg-public-catalog::backdrop{background:#19142b66;backdrop-filter:blur(5px);}
html body .mg-catalog-close{display:flex;align-items:center;justify-content:center;position:absolute;top:17px;right:17px;z-index:3;width:32px;height:32px;min-width:32px;border:1px solid #e8e1ef!important;border-radius:10px;padding:0;background:#f9f7fc!important;color:#81748f!important;box-shadow:none!important;}
.mg-catalog-close::before{content:"";width:13px;height:13px;background:currentColor;mask:url("../images/icons/close.svg") center/contain no-repeat;-webkit-mask:url("../images/icons/close.svg") center/contain no-repeat;}
html body .mg-catalog-close:hover{background:#eee8fc;color:#7057df;}
.mg-public-catalog .mg-shop-page{padding:40px;overflow:visible;}
.mg-public-catalog .mg-shop-heading{padding-right:30px;}
.mg-public-catalog .mg-shop-heading h1{margin-top:11px;}
body.mg-catalog-open{overflow:hidden!important;}
html body #layout-menu .mg-account{margin:3px 0 14px!important;padding:8px 12px!important;border:0!important;border-radius:0;background:transparent!important;box-shadow:none;}
html body #layout-menu #mg-copy-address{display:block!important;padding:5px 0!important;color:var(--mg-ink);font-size:14px!important;font-weight:650!important;line-height:1.6;text-align:left;}
html body #layout-menu #mg-current-address{display:block;line-height:1.6;overflow-wrap:anywhere;}
html body #layout-menu #mg-copy-address.mg-copied{color:#4a9d81!important;}
html body #taskmenu a.mg-password::before{mask-image:url("../images/icons/shield.svg");-webkit-mask-image:url("../images/icons/shield.svg");}
.mg-security-shell{flex:1;min-height:0;overflow:auto;padding:26px 26px 32px;}
.mg-security-card{width:100%;max-width:560px;margin:0 auto;padding:28px;border:1px solid var(--mg-line);border-radius:20px;background:var(--mg-panel);box-shadow:0 7px 32px #251d4c05;}
.mg-security-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin-bottom:14px;border-radius:13px;background:var(--mg-selected);color:var(--mg-brand);}
.mg-security-icon::before{content:"";width:24px;height:24px;background:currentColor;mask:url("../images/icons/shield.svg") center/contain no-repeat;-webkit-mask:url("../images/icons/shield.svg") center/contain no-repeat;}
.mg-security-heading h1{font-size:25px;font-weight:650;letter-spacing:-.65px;color:var(--mg-ink);margin:0 0 10px;}
.mg-security-heading p{font-size:13px;line-height:1.65;color:var(--mg-muted);margin:0 0 20px;}
html body .mg-security-card #prefs-title{display:none!important;}
html body .mg-security-card .formcontainer.scroller{position:static!important;display:block!important;overflow:visible!important;height:auto!important;max-height:none!important;padding:0!important;border:0!important;background:transparent!important;}
html body .mg-security-card .formcontent{padding:0!important;}
html body .mg-security-card #password-form{width:100%;max-width:none!important;margin:0!important;padding:0!important;}
html body .mg-security-card #password-form td.title{padding:0 0 8px!important;}
html body .mg-security-card #password-form td.title label{font-size:13px!important;color:var(--mg-muted);line-height:1.5!important;}
html body .mg-security-card #password-form td:not(.title){padding:0!important;}
html body .mg-security-card #password-form .form-group{margin:0 0 14px!important;padding:0!important;}
html body .mg-security-card #password-form .input-group{margin:0!important;}
html body .mg-security-card #password-form input{height:46px!important;font-size:14px!important;padding:11px 13px!important;color:var(--mg-ink)!important;background:var(--mg-field)!important;border:1px solid var(--mg-line)!important;border-radius:10px!important;}
html body .mg-security-card #password-form input:is(:focus,:focus-visible){outline:none!important;border-color:var(--mg-focus)!important;box-shadow:0 0 0 2px #8262e417!important;}
html body .mg-security-card #ruleslist{font-size:11px;line-height:1.6;font-style:normal;color:var(--mg-muted);padding:0;margin:0!important;}
html body .mg-security-card .formbuttons{display:block!important;position:static!important;margin:0!important;padding:24px 0 0!important;background:transparent!important;border:0!important;}
html body .mg-security-card .formbuttons .button{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;margin:0!important;padding:12px 16px!important;border-radius:10px!important;font-size:13px!important;font-weight:600;line-height:1.3;}
html body .mg-security-card .formbuttons .button::before{content:""!important;float:none!important;margin:0!important;width:17px;height:17px;background:currentColor;mask:url("../images/icons/check.svg") center/contain no-repeat;-webkit-mask:url("../images/icons/check.svg") center/contain no-repeat;}
@media(min-width:1100px){html body:not(.task-login):not(.mg-portal-page) #layout{grid-template-rows:252px minmax(0,1fr)!important;}}
@media(min-width:761px) and (max-width:1099px){html body #layout-menu .mg-account{display:none!important;}}
@media(max-width:760px){html body.task-login .mg-catalog-badge{margin-left:auto;padding:8px 10px;min-height:33px;font-size:10px;}html body.task-login .mg-login-brand{gap:9px;flex-wrap:nowrap;}html body.task-login .mg-login-brand>span{font-size:20px;}.mg-public-catalog[open]{width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;border-radius:19px!important;}.mg-public-catalog .mg-shop-page{padding:30px 23px;}.mg-public-catalog .mg-price-grid{grid-template-columns:1fr;}.mg-security-shell{padding:22px 16px 32px;}.mg-security-card{padding:25px 21px;border-radius:17px;}.mg-security-heading h1{font-size:23px;}html body #layout-menu #mg-copy-address{font-size:15px!important;}html body .mg-security-card .formbuttons{display:block!important;}html body.mg-portal-page #layout-content>.footer{display:none!important;}}

/* Folder navigation: an aligned utility button and independent rounded rows. */
html body #layout-sidebar>.header{display:flex!important;align-items:center!important;justify-content:space-between;gap:8px;height:42px!important;min-height:42px!important;margin:0 0 8px!important;padding:0 12px!important;border:0!important;background:transparent!important;box-sizing:border-box;}
html body #layout-sidebar>.header .mg-folders-title{flex:1;margin:0!important;padding:0!important;font-size:10px!important;letter-spacing:1.5px;line-height:1.4!important;color:var(--mg-muted);}
html body #layout-sidebar>.header a.sidebar-menu{position:static!important;display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 28px;width:28px!important;min-width:28px;height:28px!important;min-height:28px;padding:0!important;margin:0!important;line-height:1!important;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--mg-muted);float:none!important;}
html body #layout-sidebar>.header a.sidebar-menu::before{content:""!important;display:block!important;float:none!important;width:18px!important;height:18px!important;margin:0!important;padding:0!important;background:currentColor;mask:url("../images/icons/dots-horizontal.svg") center/contain no-repeat;-webkit-mask:url("../images/icons/dots-horizontal.svg") center/contain no-repeat;}
html body #layout-sidebar>.header a.sidebar-menu:hover{background:var(--mg-selected);border-color:var(--mg-line);color:var(--mg-brand);}
html body #mailboxlist{padding:0 4px!important;}
html body #mailboxlist li,html body #mailboxlist li.selected{border:0!important;box-shadow:none!important;background:transparent!important;}
html body #mailboxlist li>a{display:flex!important;align-items:center;gap:11px;min-height:40px;height:auto!important;margin:3px 0!important;padding:10px 12px!important;border:0!important;border-radius:11px!important;line-height:1.45!important;font-size:12px!important;background:transparent!important;color:var(--mg-ink);}
html body #mailboxlist li>a::before{width:18px!important;min-width:18px!important;height:18px!important;float:none!important;margin:0!important;opacity:.8;}
html body #mailboxlist li>a:hover{background:var(--mg-hover)!important;}
html body #mailboxlist li.selected>a{background:var(--mg-selected)!important;color:var(--mg-brand)!important;box-shadow:inset 3px 0 0 var(--mg-brand)!important;font-weight:650;}
html body #mailboxlist li .unreadcount{margin-left:auto;flex:none;}
/* One compact row of controls in the message-list header. */
html body #messagelist-header{display:flex!important;align-items:center!important;gap:8px;min-height:66px!important;height:66px!important;padding:0 16px!important;background:var(--mg-panel)!important;border-bottom:1px solid var(--mg-line)!important;}
html body #messagelist-header>.header-title{position:static!important;flex:1;min-width:0;width:auto!important;margin:0!important;padding:0!important;font-size:18px!important;font-weight:650;line-height:1.3!important;text-align:left!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html body #messagelist-header>.toolbar{position:static!important;display:flex!important;align-items:center;flex:none;gap:4px;height:auto!important;margin:0!important;padding:0!important;float:none!important;}
html body #messagelist-header .toolbar ul,html body #messagelist-header .toolbar li{display:flex;align-items:center;gap:4px;margin:0!important;padding:0!important;border:0!important;}
html body #messagelist-header .toolbar :is(a.select,a.threads,a.options){display:flex!important;align-items:center;justify-content:center;min-width:29px!important;width:29px!important;height:32px!important;margin:0!important;padding:0!important;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;color:var(--mg-muted)!important;box-shadow:none!important;line-height:1!important;}
html body #messagelist-header .toolbar :is(a.select,a.threads,a.options)::before{content:""!important;display:block!important;float:none!important;width:17px!important;height:17px!important;margin:0!important;background:currentColor;mask:center/contain no-repeat;-webkit-mask:center/contain no-repeat;}
html body #messagelist-header a.select::before{mask-image:url("../images/icons/select.svg")!important;-webkit-mask-image:url("../images/icons/select.svg")!important;}
html body #messagelist-header a.threads::before{mask-image:url("../images/icons/threads.svg")!important;-webkit-mask-image:url("../images/icons/threads.svg")!important;}
html body #messagelist-header a.options::before{mask-image:url("../images/icons/filter.svg")!important;-webkit-mask-image:url("../images/icons/filter.svg")!important;}
html body #messagelist-header .toolbar :is(a.select,a.threads,a.options):hover{color:var(--mg-brand)!important;background:var(--mg-selected)!important;}
html body #messagelist-header .toolbar :is(a.select,a.threads,a.options)>.inner{display:none!important;}
html body #messagelist-header a.refresh{position:static!important;display:flex!important;align-items:center;justify-content:center;gap:6px;flex:none;min-width:0;width:auto!important;height:34px!important;padding:7px 9px!important;margin:0!important;border:1px solid var(--mg-line)!important;border-radius:10px!important;background:var(--mg-field)!important;color:var(--mg-ink)!important;font-size:10px!important;line-height:1!important;}
html body #messagelist-header a.refresh::before{width:16px!important;height:16px!important;margin:0!important;float:none!important;}
html body #messagelist-header a.refresh>.inner{display:block!important;font-size:10px!important;line-height:1.2!important;padding:0!important;}
html body #messagelist-header a.refresh:hover{background:var(--mg-selected)!important;color:var(--mg-brand)!important;border-color:var(--mg-brand)!important;}
/* Message actions are inline pills, with matching line icons. */
html body #layout-content>.header[role=toolbar]{display:flex!important;align-items:center;justify-content:center;gap:8px;min-height:66px!important;height:66px!important;padding:0 16px!important;background:var(--mg-panel)!important;border-bottom:1px solid var(--mg-line)!important;}
html body #layout-content>.header>#toolbar-menu,html body #layout-content>.header>#toolbar-menu{position:static!important;display:flex!important;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;width:auto!important;margin:0!important;padding:0!important;}
html body #layout-content>.header>#toolbar-menu>li{margin:0!important;padding:0!important;border:0!important;}
html body #layout-content>.header>#toolbar-menu>li>a{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-width:0!important;width:auto!important;min-height:36px;height:36px!important;margin:0!important;padding:9px 12px!important;border:1px solid var(--mg-line)!important;border-radius:10px!important;background:var(--mg-field)!important;color:var(--mg-ink)!important;font-size:11px!important;line-height:1.2!important;box-shadow:none!important;}
html body #layout-content>.header>#toolbar-menu>li>a::before{display:block!important;float:none!important;width:17px!important;height:17px!important;line-height:1!important;margin:0!important;}
html body #layout-content>.header>#toolbar-menu>li>a.markmessage::before{content:""!important;background:currentColor;mask:url("../images/icons/mark.svg") center/contain no-repeat;-webkit-mask:url("../images/icons/mark.svg") center/contain no-repeat;}
html body #layout-content>.header>#toolbar-menu>li>a>.inner{display:block!important;margin:0!important;padding:0!important;line-height:1.2!important;font-size:11px!important;}
html body #layout-content>.header>#toolbar-menu>li>a:hover:not(.disabled){background:var(--mg-selected)!important;border-color:var(--mg-brand)!important;color:var(--mg-brand)!important;}
html body #layout-content>.header>#toolbar-menu>li>a.delete:hover:not(.disabled){background:#d7677c12!important;color:#d0677d!important;border-color:#d0677d66!important;}
html body #layout-content>.header>#toolbar-menu>li>a.disabled{opacity:.42!important;cursor:default;}
html body #messagemenulink{display:none!important;}
html body #layout-content>.header #toolbar-menu>li:has(>a[id$="-clone"]){display:none!important;}
html body #layout-content>.header #toolbar-menu{height:auto!important;min-height:0!important;}
html body #layout-content>.header #toolbar-menu>li{display:flex!important;align-items:center!important;width:auto!important;height:auto!important;flex:0 0 auto!important;}
html body #layout-content>.header #toolbar-menu>li:has(>a[id$="-clone"]){display:none!important;}
html body #layout-content>.header #toolbar-menu a{flex:0 0 auto!important;}
html body #layout-content>.header #toolbar-menu a::before{flex:0 0 17px!important;}
html body #layout-content>.header #toolbar-menu>li:is([style*="display: none"],[style*="display:none"]){display:none!important;}
html body #markmessage-menu a::before{content:""!important;display:inline-block!important;width:17px;height:17px;margin:0 9px 0 0!important;vertical-align:-3px;background:currentColor;mask:center/contain no-repeat;-webkit-mask:center/contain no-repeat;}
html body #markmessage-menu a.read::before{mask-image:url("../images/icons/check.svg");-webkit-mask-image:url("../images/icons/check.svg");}
html body #markmessage-menu a.unread::before{mask-image:url("../images/icons/unread.svg");-webkit-mask-image:url("../images/icons/unread.svg");}
html body #markmessage-menu :is(a.flag,a.unflag)::before{mask-image:url("../images/icons/flag.svg");-webkit-mask-image:url("../images/icons/flag.svg");}
html body #layout-list>.searchbar form{position:relative;}
html body #layout-list>.searchbar form::before{content:""!important;position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;margin:0!important;background:var(--mg-muted);mask:url("../images/icons/search.svg") center/contain no-repeat;-webkit-mask:url("../images/icons/search.svg") center/contain no-repeat;}
html body #layout-list>.searchbar input{padding-left:36px!important;}
html body #layout-list>.searchbar a.unread::before{content:""!important;display:block;width:17px;height:17px;margin:auto;background:currentColor;mask:url("../images/icons/unread.svg") center/contain no-repeat;-webkit-mask:url("../images/icons/unread.svg") center/contain no-repeat;}
/* The search panel has proper labels, soft inputs and accessible switches. */
html body #layout-list>.searchbar{padding:14px 16px!important;margin:0!important;border:0!important;background:var(--mg-panel)!important;min-height:64px;box-sizing:border-box;}
html body #layout-list>.searchbar form{height:40px!important;border:1px solid var(--mg-line)!important;border-radius:11px!important;background:var(--mg-field)!important;box-shadow:none!important;}
html body #layout-list>.searchbar input{height:38px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:var(--mg-ink)!important;font-size:12px!important;outline:0!important;box-shadow:none!important;}
html body #layout-list>.searchbar :is(a,button){border-radius:9px!important;background:transparent!important;color:var(--mg-muted)!important;box-shadow:none!important;}
html body #layout-list>.searchbar :is(a,button):hover,html body #layout-list>.searchbar :is(a,button).active{background:var(--mg-selected)!important;color:var(--mg-brand)!important;}
html body #layout-list>.searchbar a.options::before{content:""!important;display:block;width:17px;height:17px;background:currentColor;mask:url("../images/icons/filter.svg") center/contain no-repeat;-webkit-mask:url("../images/icons/filter.svg") center/contain no-repeat;}
html body #searchmenu{position:relative!important;box-sizing:border-box;width:100%!important;padding:2px 16px 18px!important;margin:0!important;border:0!important;border-bottom:1px solid var(--mg-line)!important;background:var(--mg-panel)!important;color:var(--mg-ink)!important;box-shadow:none!important;}
html body #searchmenu .mg-search-heading{font-size:10px;font-weight:650;text-transform:uppercase;letter-spacing:1.1px;color:var(--mg-muted);line-height:1.5;margin:0 0 13px;padding:0;}
html body #searchmenu .formcontent{padding:0!important;margin:0!important;}
html body #searchmenu .proplist{padding:0!important;margin:0 0 18px!important;}
html body #searchmenu .proplist>li{border:0!important;min-height:34px;line-height:1.5;padding:0!important;margin:0 0 3px!important;}
html body #searchmenu .proplist>li>label,html body #searchmenu .custom-control-label{font-size:12px!important;color:var(--mg-ink)!important;font-weight:500!important;line-height:1.6!important;}
html body #searchmenu .with-sublist>a.dropdown{height:28px;width:28px;line-height:28px;padding:0;right:0;border-radius:8px;background:transparent;color:var(--mg-muted);}
html body #searchmenu .with-sublist>a.dropdown::before{content:""!important;display:block;width:14px;height:14px;margin:auto;background:currentColor;mask:url("../images/icons/chevron-down.svg") center/contain no-repeat;-webkit-mask:url("../images/icons/chevron-down.svg") center/contain no-repeat;}
html body #searchmenu .with-sublist>ul.proplist{margin:7px 0 12px 14px!important;padding-left:14px!important;border-left:1px solid var(--mg-line);}
html body #searchmenu .custom-switch{padding-left:0!important;min-height:30px;}
html body #searchmenu .custom-switch .custom-control-label{display:block;min-height:30px;padding:5px 32px 5px 44px!important;cursor:pointer;}
html body #searchmenu .custom-switch .custom-control-label::before{left:0!important;top:50%!important;width:30px!important;height:18px!important;transform:translateY(-50%)!important;border:0!important;border-radius:9px!important;background:var(--mg-line)!important;box-shadow:none!important;}
html body #searchmenu .custom-switch .custom-control-label::after{left:3px!important;top:50%!important;width:12px!important;height:12px!important;transform:translateY(-50%)!important;border-radius:50%!important;background:#fff!important;box-shadow:0 1px 3px #10152220!important;}
html body #searchmenu .custom-switch .custom-control-input:checked~.custom-control-label::before{background:#8266da!important;}
html body #searchmenu .custom-switch .custom-control-input:checked~.custom-control-label::after{transform:translate(12px,-50%)!important;}
html body #searchmenu .custom-switch .custom-control-input:focus-visible~.custom-control-label::before{outline:2px solid var(--mg-focus);outline-offset:3px;}
html body #searchmenu .custom-switch .custom-control-input{width:34px;height:30px;left:0;top:0;margin:0;cursor:pointer;}
html body #searchmenu .input-group{display:block!important;margin:0 0 14px!important;padding:0!important;border:0!important;}
html body #searchmenu .input-group-prepend{display:block!important;margin:0 0 6px!important;padding:0!important;width:100%!important;}
html body #searchmenu .input-group-text{display:block!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;color:var(--mg-muted)!important;font-size:11px!important;font-weight:500;line-height:1.5;}
html body #searchmenu .input-group-text{text-align:left!important;justify-content:flex-start!important;float:none!important;}
html body #searchmenu .proplist>li{min-height:30px;margin-bottom:2px!important;}
html body #searchmenu .custom-switch{min-height:26px;}
html body #searchmenu .custom-switch .custom-control-label{min-height:26px;padding-top:3px!important;padding-bottom:3px!important;}
html body #searchmenu select{appearance:none!important;width:100%!important;min-width:0!important;height:40px!important;padding:9px 36px 9px 12px!important;border:1px solid var(--mg-line)!important;border-radius:10px!important;background:var(--mg-field) url("../images/icons/chevron-down.svg") right 12px center/14px no-repeat!important;color:var(--mg-ink)!important;font:inherit;font-size:12px!important;box-shadow:none!important;}
html body #searchmenu select:focus{outline:none!important;border-color:var(--mg-focus)!important;box-shadow:0 0 0 2px #8262e417!important;}
html body #searchmenu .formbuttons{margin:0!important;padding:3px 0 0!important;border:0!important;background:transparent!important;}
html body #searchmenu .formbuttons button{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%;height:40px!important;min-height:40px;padding:10px 14px!important;border-radius:11px!important;font-size:12px!important;font-weight:600;line-height:1.3!important;box-shadow:none!important;}
html body #searchmenu .formbuttons button::before{content:""!important;display:block!important;width:16px;height:16px;margin:0!important;background:currentColor;mask:url("../images/icons/search.svg") center/contain no-repeat;-webkit-mask:url("../images/icons/search.svg") center/contain no-repeat;}
html body .popupmenu .listing li>a{min-height:37px;padding:10px 13px!important;line-height:1.4;font-size:12px;border:0!important;}
html body .popupmenu .listing li>a:hover{background:var(--mg-selected)!important;color:var(--mg-brand)!important;}
@media(max-width:760px){html body #messagelist-header{height:58px!important;min-height:58px!important;gap:5px;padding:0 10px!important;}html body #messagelist-header>.header-title{font-size:17px!important;}html body #messagelist-header a.refresh>.inner{display:none!important;}html body #messagelist-header a.refresh{width:32px!important;padding:7px!important;}html body #layout-content>.header>#toolbar-menu,html body #layout-content>.header>#toolbar-menu{gap:5px;}html body #layout-content>.header[role=toolbar]{padding:0 10px!important;gap:6px;justify-content:flex-start;}html body #layout-content>.header>#toolbar-menu>li>a{height:34px!important;min-height:34px;padding:8px!important;gap:5px;font-size:10px!important;}html body #layout-content>.header>#toolbar-menu>li>a>.inner{font-size:10px!important;}html body #layout-list>.searchbar{padding:12px!important;}html body #searchmenu{padding:2px 12px 16px!important;}}
@media(max-width:760px){html body #layout-content>.header #toolbar-menu>li.hidden-small{display:none!important;}}

/* Public theme switch and footer. */
html body.task-login .mg-login-shell{position:relative;}
html body.task-login .mg-login-top{justify-content:flex-end!important;}
html body.task-login #mg-login-theme{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;margin:0;padding:8px 12px;border:1px solid #e8e1ef!important;border-radius:10px;background:#f9f7fc!important;color:#80728e!important;font-size:11px;font-weight:500;line-height:1.3;box-shadow:none!important;}
.mg-theme-symbol{display:block;width:15px;height:15px;background:currentColor;mask:url("../images/icons/moon.svg") center/contain no-repeat;-webkit-mask:url("../images/icons/moon.svg") center/contain no-repeat;}
.is-dark .mg-theme-symbol{mask-image:url("../images/icons/sun.svg");-webkit-mask-image:url("../images/icons/sun.svg");}
html body.task-login #mg-login-theme:hover{background:#efe9fa!important;color:#7057df!important;}
.mg-public-copyright{position:absolute;left:46px;bottom:28px;color:#93889f;font-size:10px;line-height:1.5;letter-spacing:.15px;z-index:2;}
/* Stock availability and exact volume totals. */
.mg-public-catalog .mg-shop-heading>p:not(.mg-volume-note){margin-bottom:12px;}
.mg-public-catalog .mg-shop-heading .mg-volume-note{margin:0 0 26px;padding:10px 13px;border-radius:10px;border:1px solid var(--mg-line);background:var(--mg-field);color:var(--mg-muted);font-size:11px;line-height:1.6;}
.mg-price-card h2{margin-bottom:9px;}
.mg-plan-purpose{min-height:33px;margin-bottom:13px;}
.mg-plan-purpose>span{display:inline-block;border-radius:6px;padding:4px 7px;background:#e0efe9;color:#4c806c;font-size:10px;font-weight:550;line-height:1.4;}
.mg-tier-2 .mg-plan-purpose>span{background:#f6ead8;color:#987a4a;}
.mg-price-card dl>div{align-items:center;min-height:48px;}
.mg-price-card dt{display:flex;align-items:center;flex-wrap:wrap;gap:5px;}
.mg-volume-discount{display:inline-block;font-size:9px;font-weight:650;color:var(--mg-brand);padding:2px 4px;border-radius:4px;background:var(--mg-selected);}
.mg-price-card dd{display:flex;flex-direction:column;align-items:flex-end;gap:2px;}
.mg-price-card dd del{font-size:9px;font-weight:400;color:var(--mg-muted);opacity:.8;}
.mg-price-card dd strong{font-size:11px;font-weight:650;color:var(--mg-ink);}
html body .mg-public-catalog .mg-sold-out{color:var(--mg-muted)!important;background:var(--mg-field)!important;border-color:var(--mg-line)!important;opacity:1!important;cursor:default!important;}
/* A real dark login page, using the same color-mode preference as the inbox. */
html.dark-mode body.task-login{background:#0e111c!important;}
html.dark-mode body.task-login #layout{background:#0e111c!important;}
html.dark-mode body.task-login .mg-login-shell{background:#151a26!important;border-color:#2f3045;box-shadow:0 10px 40px #00000018;}
html.dark-mode body.task-login .mg-login-story{background:#211e37!important;}
html.dark-mode body.task-login .mg-login-panel{background:#151a26!important;}
html.dark-mode body.task-login .mg-login-brand{color:#eeeaf8!important;}
html.dark-mode body.task-login .mg-login-brand>span{color:#eeeaf8!important;}
html.dark-mode body.task-login .mg-story-copy h2,html.dark-mode body.task-login .mg-login-card h2{color:#eeeaf8!important;}
html.dark-mode body.task-login .mg-story-copy p,html.dark-mode body.task-login .mg-login-intro{color:#aaa1b9!important;}
html.dark-mode body.task-login .mg-eyebrow{color:#a89cbc!important;}
html.dark-mode body.task-login .mg-catalog-badge{background:#2b2540!important;border-color:#4b3e65!important;color:#c0aceb!important;}
html.dark-mode body.task-login #mg-login-theme{background:#242739!important;border-color:#38364c!important;color:#c7bddb!important;}
html.dark-mode body.task-login #mg-login-theme:hover{background:#302945!important;color:#ddcffb!important;}
html.dark-mode body.task-login #login-form .mg-field-label{color:#b9afc8!important;}
html.dark-mode body.task-login #login-form input{color:#eee9f7!important;-webkit-text-fill-color:#eee9f7!important;background:#1c2130!important;border-color:#38364c!important;caret-color:#c3adfa!important;}
html.dark-mode body.task-login #login-form input::placeholder{color:#92899f!important;-webkit-text-fill-color:#92899f!important;}
html.dark-mode body.task-login #login-form input:is(:focus,:focus-visible){background:#1e2333!important;border-color:#a78bdf!important;box-shadow:0 0 0 2px #aa87f415!important;}
html.dark-mode body.task-login #login-form input:-webkit-autofill{box-shadow:0 0 0 100px #242139 inset!important;-webkit-text-fill-color:#eee9f7!important;}
html.dark-mode body.task-login .mg-public-copyright{color:#968ba9;}
html.dark-mode body.task-login #messagestack>div:not(.voice){background:#1c2231!important;color:#e6e0f0!important;border-color:#373349!important;}
html.dark-mode body .mg-public-catalog[open]{background:#1c2231!important;border-color:#373349!important;--mg-panel:#1c2231;--mg-field:#171d2c;--mg-ink:#e7e2f1;--mg-muted:#a99ebc;--mg-line:#34364a;--mg-brand:#bba8ff;--mg-selected:#302947;}
html.dark-mode body .mg-public-catalog .mg-catalog-close{background:#27283b!important;border-color:#3c3850!important;color:#b6a9ca!important;}
html.dark-mode body .mg-public-catalog .mg-plan-purpose>span{background:#233d38;color:#91c4b2;}
html.dark-mode body .mg-public-catalog .mg-tier-2 .mg-plan-purpose>span{background:#443725;color:#d8b985;}
/* Keep the full catalog readable within a typical desktop window. */
.mg-public-catalog .mg-shop-page{padding:32px;}
.mg-public-catalog .mg-shop-heading .mg-volume-note{margin-bottom:20px;}
.mg-public-catalog .mg-price-card{padding:20px;}
.mg-public-catalog .mg-tier-icon{width:34px;height:34px;margin-bottom:14px;}
.mg-public-catalog .mg-plan-purpose{min-height:24px;margin-bottom:8px;}
.mg-public-catalog .mg-card-caption{margin:16px 0 8px;}
.mg-public-catalog .mg-price-card dl{margin-bottom:18px;}
.mg-public-catalog .mg-price-card dl>div{min-height:43px;}
@media(max-width:760px){html body.task-login .mg-login-top{display:flex!important;position:absolute!important;top:24px;right:28px;left:auto;width:auto;z-index:2;}html body.task-login #mg-login-theme{min-height:32px;padding:7px 9px;font-size:10px;}.mg-public-copyright{left:28px;bottom:20px;font-size:9px;}}
@media(max-width:760px){.mg-public-catalog .mg-shop-page{padding:32px 22px 24px;}}

/* Public sign-in: calm surfaces and balanced proportions at any desktop size. */
html body.task-login #layout{display:flex!important;align-items:center;justify-content:center;padding:32px!important;min-height:100vh;min-height:100dvh;box-sizing:border-box;}
html body.task-login #layout #layout-content.mg-login-shell{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);width:100%;max-width:1180px;height:min(760px,calc(100dvh - 64px));min-height:620px;margin:auto!important;border:1px solid #e9e5f0!important;border-radius:24px;box-shadow:0 24px 80px #36304f0b;}
html body.task-login .mg-login-story{padding:40px 44px 58px;min-height:0;background:linear-gradient(155deg,#f1edf9 0%,#eae7f3 100%);}
html body.task-login .mg-story-copy{margin-top:54px;}
html body.task-login .mg-story-copy h2{font-size:clamp(36px,3.6vw,50px);line-height:1.13;letter-spacing:-1.8px;font-weight:650;margin:18px 0 20px;}
html body.task-login .mg-story-copy p{max-width:360px;font-size:13px;line-height:1.85;}
html body.task-login .mg-login-art{width:78%;max-width:350px;flex:1;min-height:0;margin:22px auto 0;align-self:center;}
html body.task-login .mg-login-art img{width:100%;height:auto;max-height:290px;object-fit:contain;}
html body.task-login .mg-login-panel{padding:28px 38px 28px;overflow:visible;}
html body.task-login .mg-login-card{width:100%;max-width:350px;margin:auto;padding:26px 0;}
html body.task-login .mg-login-card h2{font-size:30px;letter-spacing:-1px;}
html body.task-login .mg-login-intro{font-size:12px;line-height:1.75;}
html body.task-login .mg-public-copyright{left:44px;bottom:24px;}
/* Dark mode stays neutral; violet is reserved for the brand and active controls. */
html.dark-mode body.task-login,html.dark-mode body.task-login #layout{background:#11151c!important;}
html.dark-mode body.task-login #layout #layout-content.mg-login-shell{background:#1b212b!important;border-color:#ffffff0d!important;box-shadow:0 26px 90px #00000028;}
html.dark-mode body.task-login .mg-login-story{background:radial-gradient(ellipse at 30% 25%,#65618b18,transparent 75%),linear-gradient(150deg,#242936,#202631)!important;}
html.dark-mode body.task-login .mg-login-panel{background:#1b212b!important;}
html.dark-mode body.task-login .mg-login-brand>span,html.dark-mode body.task-login .mg-story-copy h2,html.dark-mode body.task-login .mg-login-card h2{color:#eef0f6!important;}
html.dark-mode body.task-login .mg-story-copy p,html.dark-mode body.task-login .mg-login-intro{color:#a9b0c0!important;}
html.dark-mode body.task-login .mg-eyebrow{color:#969eb2!important;}
html.dark-mode body.task-login .mg-login-art img{opacity:.88;filter:saturate(.72);}
html.dark-mode body.task-login .mg-catalog-badge{background:#ffffff06!important;border-color:#ffffff13!important;color:#c1bed5!important;}
html.dark-mode body.task-login .mg-catalog-badge:hover{background:#ffffff0c!important;color:#f1edff!important;}
html.dark-mode body.task-login #mg-login-theme{background:#ffffff04!important;border-color:#ffffff12!important;color:#b9c0cf!important;}
html.dark-mode body.task-login #mg-login-theme:hover{background:#ffffff0b!important;color:#eef0f6!important;}
html.dark-mode body.task-login #login-form .mg-field-label{color:#b8c0d0!important;}
html.dark-mode body.task-login #login-form input{background:#232b38!important;border-color:#353f50!important;color:#f0f2f8!important;-webkit-text-fill-color:#f0f2f8!important;}
html.dark-mode body.task-login #login-form input::placeholder{color:#8f9aad!important;-webkit-text-fill-color:#8f9aad!important;}
html.dark-mode body.task-login #login-form input:is(:focus,:focus-visible){background:#252e3c!important;border-color:#a292df!important;box-shadow:0 0 0 3px #a292df12!important;outline:0!important;}
html.dark-mode body.task-login #rcmloginsubmit{background:#8270dd!important;box-shadow:0 5px 18px #00000012!important;}
html.dark-mode body.task-login #rcmloginsubmit:hover{background:#9180e8!important;}
html.dark-mode body.task-login .mg-public-copyright{color:#8d97a9!important;}
@media(min-width:761px) and (max-width:1000px){html body.task-login #layout{padding:24px!important;}html body.task-login #layout #layout-content.mg-login-shell{height:min(740px,calc(100dvh - 48px));}html body.task-login .mg-login-story{padding:32px 30px 55px;}html body.task-login .mg-login-brand{gap:8px;}html body.task-login .mg-login-brand>span{font-size:22px;}html body.task-login .mg-catalog-badge{margin-left:6px!important;padding:8px!important;}html body.task-login .mg-login-panel{padding:26px 28px;}html body.task-login .mg-story-copy h2{font-size:38px;}html body.task-login .mg-public-copyright{left:30px;}}
@media(max-width:760px){html body.task-login #layout{display:block!important;padding:0!important;}html body.task-login #layout #layout-content.mg-login-shell{display:block;height:auto;min-height:100vh;min-height:100dvh;border:0!important;border-radius:0;}html body.task-login .mg-login-story{padding:24px 27px;min-height:0;}html body.task-login .mg-story-copy,html body.task-login .mg-login-art{display:none;}html body.task-login .mg-login-panel{padding:25px 28px 64px;min-height:calc(100dvh - 84px);box-sizing:border-box;}html body.task-login .mg-login-card{padding:70px 0 24px;max-width:370px;}html body.task-login .mg-login-card h2{font-size:31px;}html body.task-login .mg-public-copyright{left:28px;bottom:20px;}}
@media(min-width:761px) and (max-height:700px){html body.task-login #layout{padding:20px!important;}html body.task-login #layout #layout-content.mg-login-shell{height:640px;min-height:640px;}html body.task-login .mg-story-copy{margin-top:40px;}html body.task-login .mg-login-story{padding-top:30px;}html body.task-login .mg-login-art img{max-height:235px;}}

/* Restore the spacious login frame, keeping the revised colors and copy. */
@media(min-width:761px){
 html body.task-login #layout{display:block!important;padding:22px!important;}
 html body.task-login #layout #layout-content.mg-login-shell{width:100%;max-width:1600px;height:calc(100dvh - 44px);min-height:660px;margin:0 auto!important;}
 html body.task-login .mg-login-card{max-width:370px;}
 html body.task-login .mg-login-art{width:95%;max-width:600px;}
 html body.task-login .mg-login-art img{max-height:350px;}
}
@media(min-width:1500px){
 html body.task-login #layout{padding:35px!important;}
 html body.task-login #layout #layout-content.mg-login-shell{height:calc(100dvh - 70px);}
 html body.task-login .mg-login-card{max-width:380px;}
 html body.task-login .mg-login-art img{max-height:430px;}
}
