/* XiaoMingCloud 1.0.18: Gemini-inspired surfaces, soft navigation and color accents.
   Galaxy adaptations: vendor/galaxy-sources.json (MIT). */
:root{
 --background:#f0f4f9;--surface:#fff;--surface-hover:#e9eef6;--input:#f0f4f9;--heading:#1f1f1f;--text:#30363d;--secondary:#5f6368;--tertiary:#6e747d;--outline:#dde3ea;
 --primary:#0b57d0;--primary-hover:#0842a0;--xm-mint:#d3e3fd;--xm-yellow:#c9c0ee;--xm-rail:#f0f4f9;--art-bg:#eaf1fb;--radius:16px;
 --gx-raised:none;--gx-inset:none;--gx-control:none;--gx-primary-face:var(--primary);--gx-primary-ink:#fff;--gx-primary-shadow:none;--gx-edge:var(--outline);--gx-featured:#eaf1fb;
}
:root[data-theme="dark"]{
 --background:#131314;--surface:#1e1f20;--surface-hover:#303336;--input:#282a2c;--heading:#e3e3e3;--text:#d1d5db;--secondary:#b7bec8;--tertiary:#a0a9b5;--outline:#3c4043;
 --primary:#a8c7fa;--primary-hover:#c2d7fb;--xm-mint:#253653;--xm-yellow:#c9b9ec;--xm-rail:#131314;--art-bg:#222b39;--gx-primary-ink:#062e6f;--gx-featured:#222b39;
}
.member-app,.m-dialog{--xm-soft:var(--input);--xm-ink:#262626;--xm-sun:#b8c6ff;--xm-white:#f3f4f6;--xm-radius:10px;--xm-shadow:none}
.xm-shell .m-main{margin-left:0;width:100%;min-height:100vh}
.xm-shell .m-app-header{position:sticky;top:0;z-index:30;padding:0;border:0;border-bottom:1px solid var(--outline);background:var(--surface)}
.xm-shell .m-topbar{max-width:1240px;height:68px;margin:0 auto;padding:0 32px;gap:20px;border:0;border-radius:0;background:transparent;box-shadow:none}
.xm-shell .m-topbar-title{max-width:none;gap:12px;min-width:0}
.xm-shell .m-topbar-title>.m-brand{display:flex;gap:10px;color:var(--heading)}
.xm-shell .m-topbar-title>.m-brand .m-brand-symbol,.xm-shell .m-topbar-title>.m-brand img{width:34px;height:34px}
.xm-shell .m-topbar-title>.m-brand .m-brand-name{font-size:19px;letter-spacing:0;font-weight:600}
.xm-shell .xm-breadcrumb{display:none}
.xm-shell .m-topbar .m-local-mark{border-color:var(--outline);border-radius:4px;background:transparent;color:var(--secondary)}
.xm-shell .m-topbar-tools{gap:8px}
.xm-shell .m-topbar .m-icon-button{width:44px;min-width:44px;height:44px;padding:11px;border:1px solid var(--outline);border-radius:7px;background:transparent;color:var(--secondary);box-shadow:none}
.xm-shell .m-topbar .m-icon-button:hover,.xm-shell .m-topbar .m-icon-button[aria-expanded="true"]{border-color:var(--primary);color:var(--primary);background:var(--input)}
.xm-shell .m-topbar .m-account-button{min-height:44px;max-width:200px;padding:5px 10px 5px 6px;margin:0;gap:9px;border:1px solid var(--outline);border-radius:7px;background:transparent;box-shadow:none;color:var(--heading)}
.xm-shell .m-topbar .m-account-button .m-avatar{width:30px;height:30px;flex:none;border-radius:5px;background:var(--xm-mint);color:var(--primary)}
.xm-shell .m-topbar .m-account-label{font-size:12px;max-width:108px}
.xm-shell .m-topbar .m-dropdown{top:calc(100% + 8px);border-color:var(--outline);border-radius:8px;background:var(--surface);box-shadow:0 10px 24px #26262614}
.xm-shell .xm-horizontal-navigation{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--outline) transparent}
.xm-shell .xm-horizontal-navigation .m-nav{display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch;gap:6px;width:max-content;min-width:min(100%,1240px);max-width:none;margin:0 auto;padding:0 32px;overflow:visible}
.xm-shell .xm-horizontal-navigation .m-nav-link{display:flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:48px;margin:0;padding:0 17px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--secondary)!important;font-size:12px;font-weight:500;white-space:nowrap;box-shadow:none}
.xm-shell .xm-horizontal-navigation .m-nav-link>.m-icon{display:none}
.xm-shell .xm-horizontal-navigation .m-nav-link:hover{border-color:var(--outline);color:var(--heading)!important;background:var(--input)}
.xm-shell .xm-horizontal-navigation .m-nav-link.is-active{border-color:var(--primary);color:var(--primary)!important;background:transparent;font-weight:650;box-shadow:none}
.xm-shell .xm-horizontal-navigation .m-nav-link.is-active::before{content:none}
.xm-shell .m-content{max-width:1240px;padding:30px 32px 40px}
.xm-shell .m-footer{max-width:1240px;padding:0 32px 26px;margin:auto;color:var(--secondary)}
.xm-shell .xm-page-heading{margin-bottom:20px}
.xm-shell .xm-page-heading h1{font-size:18px;font-weight:600;letter-spacing:0}
.xm-shell .xm-heading-guide{border-radius:6px;background:transparent}
.xm-shell .m-announcement-bar{padding-inline:14px;border-color:var(--outline);border-radius:7px;background:var(--surface);box-shadow:none}
.xm-shell .m-announcements{margin-bottom:20px}
/* Overview: one continuous summary followed by two working columns. */
.xm-overview-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);min-width:0;border:1px solid var(--outline);border-radius:10px;overflow:hidden;background:var(--surface)}
.xm-shell .xm-overview-summary .n-subscription-summary{min-height:226px;padding:26px 28px;border:0;border-radius:0;background:#262626;color:#f3f4f6;box-shadow:none}
.xm-shell .xm-overview-summary .n-subscription-summary h2{max-width:100%;margin:19px 0 6px;font-size:20px;color:#f3f4f6;font-weight:600}
.xm-shell .xm-plan-sun{display:none}
.xm-shell .n-plan-top{font-size:11px;color:#c9cace}
.xm-shell .n-plan-status,.xm-shell .n-plan-status.is-active{border:1px solid #a0a2aa44;background:#ffffff0c;color:#dddfe4}
.xm-shell .n-plan-expiry dt{color:#babbbf}
.xm-shell .n-plan-expiry dd{color:#f3f4f6;font-size:14px}
.xm-shell .xm-subscription-bottom{padding-top:24px}
.xm-shell .xm-overview-summary .n-meter-strip{min-height:226px;padding:26px 28px;border:0;border-radius:0;background:transparent;box-shadow:none}
.xm-shell .xm-traffic-remaining{gap:14px;margin:20px 0 16px}
.xm-shell .xm-traffic-remaining>strong{font-size:30px;letter-spacing:-.5px}
.xm-shell .xm-usage-progress{height:7px;background:var(--xm-mint);box-shadow:none}
.xm-shell .xm-usage-progress::-webkit-progress-bar{background:var(--xm-mint)}
.xm-shell .xm-usage-progress::-webkit-progress-value{background:var(--primary)}
.xm-shell .xm-usage-progress::-moz-progress-bar{background:var(--primary)}
.xm-overview-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);align-items:start;gap:24px;margin-top:24px}
.xm-overview-columns>*{min-width:0}
.xm-shell .xm-overview-columns .n-import-panel{grid-column:auto;min-width:0;padding:24px;border:1px solid var(--outline);border-radius:10px;background:var(--surface);box-shadow:none}
.xm-shell .n-connect-heading{margin-bottom:20px;gap:16px}
.xm-shell .n-connect-heading h2{font-size:15px}
.xm-shell .n-connect-hint{font-size:11px}
.xm-shell .n-import-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px}
.xm-shell .n-import-client{flex-direction:row;justify-content:flex-start;gap:10px;min-height:70px;padding:13px 5px;border:0;border-bottom:1px solid var(--outline);border-radius:0;background:transparent;color:var(--text);font-size:11px;box-shadow:none}
.xm-shell .n-import-client:hover:not(:disabled){background:var(--input);border-color:var(--primary)}
.xm-shell .xm-client-image{width:28px;height:28px}
.xm-shell .n-client-logo{width:25px;height:25px}
.xm-shell .xm-overview-aside .n-devices{padding:22px 24px;border:1px solid var(--outline);border-radius:10px;background:var(--surface)}
.xm-shell .n-module-heading{margin-bottom:10px}
.xm-shell .n-module-heading h2{font-size:14px}
.xm-shell .xm-overview-aside .n-device-grid{display:grid;grid-template-columns:1fr;border:0;border-radius:0;background:transparent;box-shadow:none}
.xm-shell .xm-overview-aside .n-device-column{padding:12px 0;border:0;border-bottom:1px solid var(--outline);gap:12px}
.xm-shell .xm-overview-aside .n-device-column:last-child{border-bottom:0}
.xm-shell .n-device-symbol{color:var(--primary)}
.xm-shell .n-device-copy h3{font-size:12px}
.xm-shell .n-device-copy p{font-size:10px}
.xm-shell .xm-overview-aside .n-referral-line{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0 0;padding:20px 22px;border:1px solid var(--outline);border-radius:10px;background:var(--xm-mint);color:var(--text);box-shadow:none}
.xm-shell .xm-overview-aside .n-referral-line h2{font-size:13px;color:var(--heading)}
.xm-shell .xm-overview-aside .n-referral-line p{font-size:10px;color:var(--secondary)}
.xm-shell .xm-overview-aside .n-referral-line>a{min-height:44px;margin-left:auto;padding:8px 12px;border-color:var(--primary);border-radius:6px;background:transparent;color:var(--primary);font-size:11px}
.xm-shell .xm-referral-icon{display:none}
/* Plans: reading and purchase columns in full-width rows. */
.xm-shell .m-plan-grid{display:flex;flex-direction:column;gap:16px}
.xm-shell .m-plan-card,.xm-shell .m-plan-card.is-recommended{display:grid;grid-template-columns:minmax(160px,.85fr) minmax(0,1.65fr) 190px;grid-template-areas:"title description price" "facts description controls";gap:14px 30px;align-items:start;padding:25px 26px;border:1px solid var(--outline);border-radius:9px;background:var(--surface);box-shadow:none;transform:none}
.xm-shell .m-plan-card.is-recommended{border-left:3px solid var(--primary);padding-left:24px}
.xm-shell .n-plan-heading{grid-area:title;align-items:flex-start;flex-wrap:wrap;gap:8px}
.xm-shell .m-plan-card h2{font-size:18px;font-weight:600;line-height:1.5}
.xm-shell .n-plan-popular{border-radius:4px;background:var(--xm-mint);color:var(--primary)}
.xm-shell .xm-plan-facts{grid-area:facts;display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin:0;padding:0;border:0;color:var(--secondary);font-size:11px}
.xm-shell .xm-plan-description{grid-area:description;min-width:0;max-height:none;margin:0;padding:0 26px;border:0;border-left:1px solid var(--outline);line-height:1.9}
.xm-shell .m-plan-price{grid-area:price;align-self:start;margin:0;gap:4px}
.xm-shell .m-plan-price strong{font-size:30px;letter-spacing:-.6px}
.xm-shell .m-plan-price small{font-size:16px}
.xm-shell .m-plan-price>span{font-size:11px}
.xm-shell .n-plan-controls{grid-area:controls;display:flex;flex-direction:column;align-self:end;gap:10px;margin:0}
.xm-shell .m-plan-cycle{width:100%;flex:0 0 auto}
.xm-shell .m-plan-cycle select{height:44px}
.xm-shell .m-button.m-plan-purchase{width:100%;min-height:44px;flex:0 0 auto}
/* From Uiverse.io by gharsh11032000 - Tags: button, border, hover effect.
   Adapted from Buttons/gharsh11032000_black-dodo-44.html. */
.member-app :is(.m-button,.n-inner-button,.n-board-action),.m-dialog .m-button{min-height:44px;border:1px solid var(--outline);border-radius:6px;background:var(--surface);color:var(--text);box-shadow:none;transform:none;transition:border-color .16s,background .16s,color .16s}
.member-app :is(.m-button,.n-inner-button,.n-board-action):hover:not(:disabled),.m-dialog .m-button:hover:not(:disabled){border-color:var(--primary);background:var(--input);transform:none}
.xm-shell .n-plan-manage{min-height:44px;border:1px solid transparent;border-radius:6px}
.xm-shell .m-button.m-plan-purchase,.xm-shell .m-plan-card.is-recommended .m-button.m-plan-purchase,.member-app .n-inner-button.n-inner-primary,.member-app .m-button-primary,.m-dialog .m-button.m-button-primary,.xm-shell .n-plan-manage{border-color:var(--primary);background:var(--primary);color:var(--gx-primary-ink)!important;box-shadow:none}
:root[data-theme="dark"] .xm-shell .n-plan-manage{background:var(--primary);color:var(--gx-primary-ink);border-color:var(--primary)}
.xm-shell .m-button.m-plan-purchase:hover:not(:disabled),.xm-shell .m-plan-card.is-recommended .m-button.m-plan-purchase:hover:not(:disabled),.member-app .n-inner-button.n-inner-primary:hover:not(:disabled),.member-app .m-button-primary:hover:not(:disabled),.m-dialog .m-button.m-button-primary:hover:not(:disabled),.xm-shell .n-plan-manage:hover{border-color:var(--primary-hover);background:var(--primary-hover);transform:none;box-shadow:none}
.member-app :is(.m-panel,.n-inner-surface,.xm-table-wrap,.xm-node-list,.n-device-grid){border-color:var(--outline);border-radius:9px;background:var(--surface);box-shadow:none}
.member-app .n-wallet-actions>.n-inner-button,.member-app .n-account-imports>button,.member-app .xm-record-table .n-inner-button{min-height:44px;border-radius:6px;box-shadow:none}
.member-app .n-account-settings{grid-template-columns:1fr}
.member-app .n-identity-icon{width:48px;height:48px;flex-basis:48px;border-radius:8px;transform:none;background:var(--xm-mint);color:var(--primary)}
.member-app .n-identity-icon>.m-icon{transform:none;width:25px;height:25px}
.member-app .n-account-identity strong{font-size:18px}
.member-app .n-wallet-values dd{white-space:nowrap}
.member-app .n-referral-balance{border-radius:9px;background:#262626;box-shadow:none}
.member-app .n-referral-balance::after{content:none}
.member-app .n-referral-balance>span{color:#c9cace}
.member-app .n-referral-balance>strong{color:#f3f4f6}
.member-app .n-referral-balance small{color:#90a7ff}
.member-app .n-account-progress{accent-color:var(--primary)}
.member-app .n-account-progress::-webkit-progress-value{background:var(--primary)}
.member-app .n-account-progress::-moz-progress-bar{background:var(--primary)}
/* From Uiverse.io by Lucaasbre - Tags: simple, red, minimalist, input.
   Adapted from Inputs/Lucaasbre_blue-ape-11.html; native labels retained. */
.member-app .m-form-field :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea),.member-app .m-plan-cycle select,.m-dialog :is(.m-form-field input,.m-form-field textarea,.m-form-field select,.m-input){border:1px solid var(--outline);border-radius:6px;background:var(--input);color:var(--text);box-shadow:none}
.member-app .m-form-field :is(input,select,textarea):focus,.member-app .m-plan-cycle select:focus,.m-dialog :is(.m-form-field input,.m-form-field textarea,.m-form-field select,.m-input):focus{border-color:var(--primary);outline:2px solid var(--primary);outline-offset:2px}
.m-dialog{border-color:var(--outline);border-radius:12px;background:var(--surface);box-shadow:0 20px 70px #21232740}
.m-dialog::backdrop{background:#21232766;backdrop-filter:blur(4px)}
.m-dialog .n-checkout-summary{border-radius:8px;background:var(--input)}
.m-dialog .m-choice.m-payment.is-selected{border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary);background:var(--xm-mint)}
.m-dialog .m-choice.m-payment.is-selected::after{background:var(--primary)}
.member-app .xm-record-table th{background:var(--input);box-shadow:none}
.member-app .xm-record-table tbody tr:hover,.member-app .xm-node-item:hover{background:var(--surface-hover)}
/* From Uiverse.io by Yaya12085 - Tags: radio, select, tab. */
.xm-shell .m-plan-filters,.member-app .n-password-methods{gap:0;padding:0;border:0;border-bottom:1px solid var(--outline);border-radius:0;background:transparent;box-shadow:none}
.xm-shell .m-plan-filters{width:100%;margin-bottom:22px}
.xm-shell .m-plan-filters button,.member-app .n-password-methods>button{min-height:44px;padding:10px 20px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--secondary);box-shadow:none}
.xm-shell .m-plan-filters button.is-active,.member-app .n-password-methods>button.is-active{border-color:var(--primary);background:transparent;color:var(--primary);box-shadow:none}
.member-app .n-knowledge-tabs{border-radius:8px;background:var(--surface);box-shadow:none}
.member-app .n-knowledge-tabs>button.is-active{background:var(--xm-mint);color:var(--primary)}
.member-app .n-knowledge-tabs>button.is-active>small{background:var(--surface);color:var(--primary)}
@media(min-width:768px) and (max-width:1023px){
 .xm-shell .m-topbar{padding-inline:28px}.xm-shell .xm-horizontal-navigation .m-nav{padding-inline:28px}.xm-shell .m-content{padding-inline:28px}
 .xm-overview-columns{grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr);gap:18px}.xm-shell .n-import-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .xm-shell .m-plan-card,.xm-shell .m-plan-card.is-recommended{grid-template-columns:150px minmax(0,1fr) 160px;gap:12px 20px;padding:22px}.xm-shell .xm-plan-description{padding-inline:20px 0}
}
@media(max-width:767px){
 .xm-shell .m-topbar{height:64px;padding:0 16px;gap:10px}.xm-shell .m-topbar-title>.m-brand{gap:8px}.xm-shell .m-topbar-title>.m-brand .m-brand-name{font-size:18px}
 .xm-shell .m-topbar-title>.m-brand .m-brand-symbol,.xm-shell .m-topbar-title>.m-brand img{width:30px;height:30px}.xm-shell .m-topbar-tools{gap:5px}
 .xm-shell .m-topbar .m-account-button{width:44px;min-width:44px;max-width:44px;justify-content:center;padding:0}.xm-shell .m-topbar .m-account-label,.xm-shell .m-local-mark{display:none}
 .xm-shell .xm-horizontal-navigation .m-nav{padding:0 16px;gap:4px}.xm-shell .xm-horizontal-navigation .m-nav-link{min-height:44px;padding:0 14px;font-size:12px}
 .xm-shell .m-content{padding:24px 16px 30px}.xm-shell .m-footer{padding:0 16px 24px}.xm-shell .xm-page-heading{margin-bottom:16px}.xm-shell .xm-heading-guide{padding:6px 0;min-height:44px}
 .xm-overview-summary{grid-template-columns:minmax(0,1fr)}.xm-shell .xm-overview-summary .n-subscription-summary{min-height:210px;padding:23px}.xm-shell .xm-overview-summary .n-meter-strip{min-height:220px;padding:23px}
 .xm-overview-columns{grid-template-columns:minmax(0,1fr);gap:18px;margin-top:18px}.xm-shell .xm-overview-columns .n-import-panel{padding:21px}
 .xm-shell .n-import-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.xm-shell .n-import-client{min-height:64px;font-size:10px}.xm-shell .xm-overview-aside .n-devices{padding:20px 22px}
 .xm-shell .m-plan-card,.xm-shell .m-plan-card.is-recommended{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"title price" "facts facts" "description description" "controls controls";gap:18px 12px;padding:22px}
 .xm-shell .m-plan-card h2{font-size:16px}.xm-shell .m-plan-price{justify-content:flex-end;gap:2px;text-align:right}.xm-shell .m-plan-price strong{font-size:26px}.xm-shell .m-plan-price>span{font-size:10px;margin-left:0}
 .xm-shell .xm-plan-facts{flex-direction:row;gap:14px}.xm-shell .xm-plan-description{padding:16px 0 0;border:0;border-top:1px solid var(--outline)}
 .xm-shell .n-plan-controls{flex-direction:row;gap:10px}.xm-shell .m-plan-cycle{width:auto;flex:0 0 102px}.xm-shell .m-button.m-plan-purchase{width:auto;flex:1}
 .xm-shell .m-plan-filters{display:flex;gap:0;padding:0}.xm-shell .m-plan-filters button{flex:1;padding-inline:8px;font-size:11px}
 .member-app .n-account-overview,.member-app .n-account-settings{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){.member-app :is(button,a),.m-dialog button{transition:none;scroll-behavior:auto}}
@media(max-width:374px){
 .member-app .n-wallet-values{grid-template-columns:minmax(0,1fr);gap:16px}
 .member-app .n-wallet-commission{padding:14px 0 0;border-left:0;border-top:1px solid var(--outline)}
 .member-app .n-wallet-values dd{font-size:24px}
}

/* One aligned, full-width layout for every screen. */
body,.member-app{font-family:Arial,"PingFang SC","Microsoft YaHei",system-ui,sans-serif}
.member-app,.m-dialog{--xm-soft:var(--input);--xm-ink:var(--heading);--xm-sun:#c9c0ee;--xm-radius:16px;--xm-shadow:none}
.xm-shell .m-main{margin-left:0;width:100%;background:var(--background)}
.xm-shell .m-content>*{animation:none}
.xm-shell .m-app-header{padding:0;border:0;border-bottom:1px solid var(--outline);background:var(--surface);overflow:visible}
.xm-shell .m-topbar{height:66px;max-width:1200px;padding:0 32px;border:0;border-radius:0;background:transparent}
.xm-shell .m-topbar-title{max-width:none;min-width:0;gap:12px}
.xm-shell .m-topbar-title>.m-brand{position:static;display:flex;gap:10px;color:var(--heading)}
.xm-shell .m-topbar-title>.m-brand .m-brand-name{font-size:19px;font-weight:550;letter-spacing:0}
.xm-shell .m-topbar-title>.m-brand .m-brand-symbol,.xm-shell .m-topbar-title>.m-brand img{width:46px;height:46px}
.xm-shell .m-topbar-title>.m-brand img{display:block;object-fit:contain;border-radius:0}
.xm-shell .xm-breadcrumb,.xm-shell .m-topbar .m-local-mark{display:none}
.xm-shell .m-topbar-tools{gap:5px}
.xm-shell .m-topbar .m-icon-button{width:44px;min-width:44px;height:44px;border-color:transparent;border-radius:50%;background:transparent;color:var(--secondary)}
.xm-shell .m-topbar .m-icon-button:hover,.xm-shell .m-topbar .m-icon-button[aria-expanded="true"]{border-color:transparent;background:var(--input);color:var(--heading)}
.xm-shell .m-topbar .m-account-button{min-height:44px;padding:4px 10px 4px 5px;border-color:transparent;border-radius:24px;background:transparent}
.xm-shell .m-topbar .m-account-button:hover,.xm-shell .m-topbar .m-account-button[aria-expanded="true"]{border-color:transparent;background:var(--input)}
.xm-shell .m-topbar .m-account-button .m-avatar{width:32px;height:32px;border-radius:50%;background:var(--xm-mint);color:var(--primary)}
.xm-shell .m-topbar .m-dropdown{padding:7px;border-color:var(--outline);border-radius:14px;background:var(--surface);box-shadow:0 8px 28px #3c404322}
.xm-shell .m-topbar .m-dropdown :is(button,a){min-height:44px;border-radius:9px}
.xm-shell .xm-horizontal-navigation{position:static;inset:auto;width:100%;max-width:100%;padding:0;overflow-x:auto;overflow-y:hidden;background:var(--surface);scrollbar-width:thin;scrollbar-color:var(--outline) transparent}
.xm-shell .xm-horizontal-navigation::before{content:none}
.xm-shell .xm-horizontal-navigation .m-nav{display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch;gap:6px;width:max-content;min-width:min(100%,1200px);max-width:none;margin:0 auto;padding:0 32px 10px;overflow:visible}
.xm-shell .xm-horizontal-navigation .m-nav-link{justify-content:center;flex:0 0 auto;gap:0;min-height:44px;margin:0;padding:0 17px;border:0;border-radius:10px;background:transparent;color:var(--secondary)!important;font-size:13px;font-weight:450;white-space:nowrap}
.xm-shell .xm-horizontal-navigation .m-nav-link>.m-icon{display:none}
.xm-shell .xm-horizontal-navigation .m-nav-link:hover{background:var(--input);color:var(--heading)!important}
.xm-shell .xm-horizontal-navigation .m-nav-link.is-active{background:var(--xm-mint);color:var(--primary)!important;font-weight:550}
.xm-shell .xm-horizontal-navigation .m-nav-link.is-active::before{content:none}
.xm-shell .m-content{width:100%;max-width:1200px;margin:0 auto;padding:28px 32px 36px;border:0;border-radius:0;background:transparent;box-shadow:none}
.xm-shell .m-footer{width:100%;max-width:1200px;margin:0 auto;padding:0 32px 24px;color:var(--tertiary);background:transparent}
.xm-shell .xm-page-heading{margin-bottom:20px}
.xm-shell .xm-page-heading h1{font-size:18px;font-weight:550}
.xm-shell .xm-heading-guide{min-height:44px;padding:8px 13px;border:1px solid var(--outline);border-radius:12px;background:var(--surface);color:var(--primary);font-size:11px}
.xm-shell .m-announcements{margin-bottom:24px}
.xm-shell .m-announcement-bar{padding-inline:16px;border:1px solid var(--outline);border-radius:12px;background:var(--surface)}
/* Two account panels, a full-width connection row and an aligned resource row. */
.xm-shell .xm-overview-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);align-items:stretch;gap:24px;border:0;border-radius:0;overflow:visible;background:transparent}
.xm-shell .xm-overview-summary .n-subscription-summary,.xm-shell .xm-overview-summary .n-meter-strip{min-height:0;padding:22px 24px;border:1px solid var(--outline);border-radius:16px;background:var(--surface);color:var(--text)}
.xm-shell .xm-overview-summary .n-subscription-summary h2{margin:16px 0 4px;font-size:19px;font-weight:550;color:var(--heading)}
.xm-shell .n-plan-top{color:var(--secondary)}
.xm-shell .n-plan-status,.xm-shell .n-plan-status.is-active{border:0;background:var(--xm-mint);color:var(--primary)}
.xm-shell .n-plan-expiry dt{color:var(--secondary)}
.xm-shell .n-plan-expiry dd{font-size:14px;color:var(--heading)}
.xm-shell .xm-subscription-bottom{padding-top:25px}
.xm-shell .xm-traffic-remaining{margin:14px 0 16px;gap:12px}
.xm-shell .xm-traffic-remaining>strong{font-size:28px;font-weight:550;letter-spacing:-.6px}
.xm-shell .xm-traffic-legend{margin-bottom:12px}
.xm-shell .xm-traffic-reset{padding-top:14px;gap:12px;flex-wrap:wrap;align-items:center}
.xm-shell .xm-reset-traffic{flex:0 0 auto;min-width:116px;min-height:44px;padding:10px 16px;font-size:13px;font-weight:600}
.xm-shell .xm-usage-progress{height:6px;background:var(--input)}
.xm-shell .xm-usage-progress::-webkit-progress-bar{background:var(--input)}
.xm-shell .xm-usage-progress::-webkit-progress-value{background:linear-gradient(90deg,#4285f4,#9b72cb)}
.xm-shell .xm-usage-progress::-moz-progress-bar{background:linear-gradient(90deg,#4285f4,#9b72cb)}
:root[data-theme="dark"] .xm-shell .xm-usage-progress::-webkit-progress-value{background:linear-gradient(90deg,#a8c7fa,#d0bcff)}
:root[data-theme="dark"] .xm-shell .xm-usage-progress::-moz-progress-bar{background:linear-gradient(90deg,#a8c7fa,#d0bcff)}
.xm-shell .n-overview>.n-import-panel{margin-top:24px;padding:22px 24px;border:1px solid var(--outline);border-radius:16px;background:var(--surface)}
.xm-shell .n-connect-heading{align-items:center;gap:16px;margin-bottom:18px}
.xm-shell .n-connect-heading h2{font-size:15px;font-weight:550}
.xm-shell .n-import-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.xm-shell .n-import-client{flex-direction:row;justify-content:center;gap:9px;min-height:58px;padding:10px 7px;border:1px solid var(--outline);border-radius:12px;background:var(--surface);font-size:11px}
.xm-shell .n-import-client:hover:not(:disabled){border-color:var(--primary);background:var(--input)}
.xm-shell .xm-client-image,.xm-shell .n-client-logo{width:24px;height:24px}
.xm-shell .xm-overview-resources{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:24px;margin-top:24px;align-items:stretch}
.xm-shell .xm-overview-resources>*{min-width:0}
.xm-shell .xm-overview-resources .n-devices{padding:22px 24px;border:1px solid var(--outline);border-radius:16px;background:var(--surface)}
.xm-shell .n-module-heading{margin-bottom:16px}
.xm-shell .n-module-heading h2{font-size:15px;font-weight:550}
.xm-shell .xm-overview-resources .n-device-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;border:0;border-radius:0;background:transparent;box-shadow:none}
.xm-shell .xm-overview-resources .n-device-column{min-width:0;min-height:64px;gap:9px;padding:5px 0;border:0;background:transparent}
.xm-shell .n-device-symbol{display:flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;border-radius:8px;background:var(--input);color:var(--secondary)}
.xm-shell .n-device-symbol .m-icon{width:20px;height:20px}
.xm-shell .n-device-copy h3{font-size:12px}
.xm-shell .n-device-copy p{font-size:10px}
.xm-shell .xm-overview-resources .n-referral-line{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:18px;margin:0;padding:22px 24px;border:1px solid var(--outline);border-radius:16px;background:var(--surface);box-shadow:none}
.xm-shell .xm-overview-resources .n-referral-line h2{font-size:15px;color:var(--heading)}
.xm-shell .xm-overview-resources .n-referral-line p{font-size:11px;color:var(--secondary)}
.xm-shell .xm-overview-resources .n-referral-line>a{display:inline-flex;align-items:center;min-height:44px;margin:0;padding:8px 14px;border:1px solid var(--outline);border-radius:12px;background:var(--input);color:var(--primary);font-size:11px}
/* Every plan has the same reading columns and naturally growing description. */
.xm-shell .m-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:24px}
.xm-shell .m-plan-card,.xm-shell .m-plan-card.is-recommended{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto 1fr auto;grid-template-areas:"title price" "facts facts" "description description" "controls controls";align-items:start;gap:18px 16px;min-width:0;padding:24px;border:1px solid var(--outline);border-radius:16px;background:var(--surface);box-shadow:none;transform:none}
.xm-shell .m-plan-card.is-recommended{border-color:var(--primary)}
.xm-shell .m-plan-card h2{font-size:18px;font-weight:550}
.xm-shell .n-plan-heading{min-width:0;gap:8px}
.xm-shell .n-plan-popular{border-radius:6px;background:var(--xm-mint);color:var(--primary)}
.xm-shell .m-plan-price{justify-content:flex-end;align-items:baseline;flex-wrap:wrap;max-width:170px;gap:3px;margin:0;text-align:right}
.xm-shell .m-plan-price strong{font-size:28px;font-weight:550;letter-spacing:-.5px}
.xm-shell .m-plan-price>span{font-size:11px}
.xm-shell .xm-plan-facts{flex-direction:row;gap:16px;margin:0;padding:0;border:0}
.xm-shell .xm-plan-description{align-self:stretch;min-width:0;margin:0;padding:18px 0 0;border:0;border-top:1px solid var(--outline);max-height:none;line-height:1.9}
.xm-shell .n-plan-controls{display:grid;grid-template-columns:120px minmax(0,1fr);align-self:end;gap:12px;margin:0}
.xm-shell .m-plan-cycle{width:100%;min-width:0;flex:none}
.xm-shell .m-plan-cycle select{height:46px;background:var(--input)}
.xm-shell .m-button.m-plan-purchase{width:100%;min-width:0;min-height:46px;flex:none}
.member-app :is(.m-button,.n-inner-button,.n-board-action),.m-dialog .m-button{min-height:44px;border-radius:12px;background:var(--surface);font-weight:500}
.xm-shell .n-plan-manage{min-height:44px;border-radius:12px}
.xm-shell .m-button.m-plan-purchase,.xm-shell .m-plan-card.is-recommended .m-button.m-plan-purchase,.member-app .n-inner-button.n-inner-primary,.member-app .m-button-primary,.m-dialog .m-button.m-button-primary,.xm-shell .n-plan-manage{background:var(--primary);color:var(--gx-primary-ink)!important}
.member-app :is(.m-panel,.n-inner-surface,.xm-table-wrap,.xm-node-list,.n-device-grid){border-radius:16px}
.member-app .n-wallet-actions>.n-inner-button,.member-app .n-account-imports>button,.member-app .xm-record-table .n-inner-button{min-height:44px;border-radius:12px}
.member-app .n-identity-icon{border-radius:12px;background:var(--input);color:var(--primary)}
.member-app .n-account-identity strong{font-size:18px;font-weight:550}
.member-app .n-referral-balance{border:1px solid var(--outline);border-radius:16px;background:var(--surface)}
.member-app .n-referral-balance>span{color:var(--secondary)}
.member-app .n-referral-balance>strong{color:var(--heading);font-weight:550}
.member-app .n-referral-balance small{color:var(--primary)}
.member-app .n-account-plan-heading h3{font-size:18px}
.member-app .m-form-field :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea),.member-app .m-plan-cycle select,.m-dialog :is(.m-form-field input,.m-form-field textarea,.m-form-field select,.m-input){min-height:46px;border-color:var(--outline);border-radius:12px;background:var(--input)}
.member-app .xm-record-table th{background:var(--input);color:var(--secondary)}
.member-app .xm-record-table :is(th,td){padding-block:16px}
.m-dialog{border-color:var(--outline);border-radius:18px;background:var(--surface);box-shadow:0 12px 56px #0003}
.m-dialog::backdrop{background:#10141966;backdrop-filter:blur(4px)}
.m-dialog .n-checkout-summary{border-radius:12px;background:var(--input)}
.m-dialog .m-dialog-heading>.m-icon-button{width:44px;height:44px}
.m-dialog .xm-reset-summary{display:grid;gap:14px;margin:0 0 20px;padding:18px;border:1px solid var(--outline);border-radius:12px;background:var(--input)}
.m-dialog .xm-reset-summary>div{display:flex;justify-content:space-between;align-items:baseline;gap:18px;min-width:0}
.m-dialog .xm-reset-summary dt{flex:0 0 auto;color:var(--secondary);font-size:12px}
.m-dialog .xm-reset-summary dd{min-width:0;margin:0;text-align:right;color:var(--heading);overflow-wrap:anywhere}
.m-dialog .xm-reset-summary .xm-reset-price{padding-top:12px;border-top:1px solid var(--outline)}
.m-dialog .xm-reset-price dd{font-size:24px;font-weight:600;line-height:1.3;color:var(--primary)}
.m-dialog .xm-reset-explanation{display:grid;gap:12px;margin:0;padding-left:19px;color:var(--text);line-height:1.85}
.m-dialog .xm-reset-next{margin:18px 0 0;color:var(--secondary);font-size:12px;line-height:1.8}
.m-dialog .xm-reset-change{margin:0 0 16px;padding:12px 14px;border-radius:10px;background:var(--xm-mint);color:var(--heading);font-size:12px}
.xm-shell .m-plan-filters,.member-app .n-password-methods{gap:8px;padding:0;border:0;background:transparent}
.xm-shell .m-plan-filters button,.member-app .n-password-methods>button{min-height:44px;padding:8px 18px;border:1px solid var(--outline);border-radius:12px;background:var(--surface);color:var(--secondary)}
.xm-shell .m-plan-filters button.is-active,.member-app .n-password-methods>button.is-active{border-color:transparent;background:var(--xm-mint);color:var(--primary)}
.member-app .n-knowledge-tabs{border:0;border-radius:12px;background:var(--input)}
.member-app .n-knowledge-tabs>button{min-height:44px;border-radius:9px}
.member-app .n-knowledge-tabs>button.is-active{background:var(--xm-mint);color:var(--primary)}
@media(min-width:1024px){
 .xm-shell .m-plan-card,.xm-shell .m-plan-card.is-recommended{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto 1fr auto;grid-template-areas:"title" "price" "facts" "description" "controls"}
 .xm-shell .m-plan-price{justify-content:flex-start;max-width:100%;text-align:left}
}
@media(max-width:1199px){
 .xm-shell .n-import-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .xm-shell .xm-overview-resources .n-device-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1023px){
 .xm-shell .m-topbar{padding-inline:28px}
 .xm-shell .xm-horizontal-navigation .m-nav{padding-inline:28px}
 .xm-shell .m-content{padding:26px 28px 34px}
 .xm-shell .xm-overview-summary{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
 .xm-shell .xm-overview-summary .n-subscription-summary,.xm-shell .xm-overview-summary .n-meter-strip{padding:22px}
 .xm-shell .xm-overview-resources{gap:20px}
 .xm-shell .m-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 .xm-shell .m-plan-card,.xm-shell .m-plan-card.is-recommended{padding:22px;gap:18px 12px}
 .xm-shell .m-plan-price{max-width:145px}
 .xm-shell .m-plan-price strong{font-size:26px}
 .member-app .m-form-field :is(input,select,textarea),.member-app .m-plan-cycle select,.m-dialog :is(input,select,textarea){font-size:16px}
}
@media(max-width:767px){
 .xm-shell .m-topbar{height:64px;padding:0 16px;gap:8px}
 .xm-shell .m-topbar-title>.m-brand .m-brand-name{font-size:18px}
 .xm-shell .m-topbar-title>.m-brand .m-brand-symbol,.xm-shell .m-topbar-title>.m-brand img{width:42px;height:42px}
 .xm-shell .m-topbar .m-account-button{width:44px;min-width:44px;max-width:44px;padding:0;justify-content:center}
 .xm-shell .m-topbar .m-account-label{display:none}
 .xm-shell .xm-horizontal-navigation .m-nav{padding:0 16px 10px;gap:4px}
 .xm-shell .xm-horizontal-navigation .m-nav-link{padding-inline:15px;font-size:12px}
 .xm-shell .m-content{padding:22px 16px 28px}
 .xm-shell .m-footer{padding:0 16px 22px}
 .xm-shell .xm-page-heading{margin-bottom:16px}
 .xm-shell .m-announcements{margin-bottom:16px}
 .xm-shell .xm-overview-summary{grid-template-columns:minmax(0,1fr);gap:16px}
 .xm-shell .xm-overview-summary .n-subscription-summary,.xm-shell .xm-overview-summary .n-meter-strip{padding:20px;border-radius:16px}
 .xm-shell .xm-subscription-bottom{flex-direction:row;align-items:center;padding-top:24px}
 .xm-shell .n-overview>.n-import-panel{margin-top:16px;padding:20px 18px}
 .xm-shell .n-connect-heading{gap:12px;margin-bottom:16px}
 .xm-shell .n-import-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .xm-shell .n-import-client{flex-direction:column;min-height:76px;gap:8px;padding:10px 4px;font-size:10px}
 .xm-shell .xm-overview-resources{grid-template-columns:minmax(0,1fr);gap:16px;margin-top:16px}
 .xm-shell .xm-overview-resources .n-devices{padding:20px 18px}
 .xm-shell .xm-overview-resources .n-device-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}
 .xm-shell .xm-overview-resources .n-referral-line{padding:20px;gap:16px}
 .xm-shell .m-plan-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 .xm-shell .m-plan-card,.xm-shell .m-plan-card.is-recommended{padding:20px;gap:18px 12px}
 .xm-shell .m-plan-card h2{font-size:17px}
 .xm-shell .m-plan-price{max-width:145px}
 .xm-shell .m-plan-price strong{font-size:26px}
 .xm-shell .m-plan-filters{display:flex;gap:5px}
 .xm-shell .m-plan-filters button{padding-inline:8px;font-size:11px}
 .xm-shell .n-plan-controls{grid-template-columns:106px minmax(0,1fr);gap:10px}
 .member-app .n-account-overview,.member-app .n-account-settings{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:374px){.xm-shell .n-import-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(hover:none) and (pointer:coarse){.member-app .m-form-field :is(input,select,textarea),.member-app .m-plan-cycle select,.m-dialog :is(input,select,textarea){font-size:16px}}

/* Subscription warnings: the two ends rise and fall around a stationary center. */
.xm-shell{--xm-warning-face:#f59e0b;--xm-warning-hover:#e58d06;--xm-warning-ink:#3b1d00;--xm-warning-edge:#b66008;--xm-warning-halo:#f59e0b26;--xm-attention-duration:1.6s;--xm-attention-ease:ease-in-out}
:root[data-theme="dark"] .xm-shell{--xm-warning-face:#ffb86b;--xm-warning-hover:#ffc88a;--xm-warning-edge:#e99739;--xm-warning-halo:#ffb86b26}
.member-app.xm-shell .xm-attention-warning{--primary:var(--xm-warning-face);--primary-hover:var(--xm-warning-hover);--gx-primary-ink:var(--xm-warning-ink);border-color:var(--xm-warning-edge);background:var(--primary);color:var(--xm-warning-ink)!important;outline:1px solid var(--xm-warning-edge);outline-offset:2px;box-shadow:0 0 0 3px var(--xm-warning-halo);transform-origin:50% 50%;animation:xm-attention-rock var(--xm-attention-duration) var(--xm-attention-ease) infinite}
.member-app.xm-shell .xm-attention-warning:is(:hover,:focus-visible,:active){animation:none;transform:none;background:var(--primary-hover)}
.member-app.xm-shell .xm-attention-warning:focus-visible{outline:2px solid var(--xm-warning-edge);outline-offset:4px}
.member-app.xm-shell .xm-attention-warning:is(:disabled,[disabled],[aria-disabled="true"],[aria-busy="true"],.is-busy,.is-loading,[data-busy="true"]),.xm-shell [aria-busy="true"] .xm-attention-warning{animation:none;transform:none}
.xm-shell button.xm-attention-warning:active{transform:none}
@keyframes xm-attention-rock{
 0%,50%,100%{transform:rotate(0deg)}
 25%{transform:rotate(-2.5deg)}
 75%{transform:rotate(2.5deg)}
}
.m-dialog .xm-subscription-alert{display:grid;gap:16px;min-width:0}
.m-dialog .xm-alert-item{min-width:0;padding:16px;border:1px solid var(--outline);border-radius:12px;background:var(--input);overflow-wrap:anywhere}
.m-dialog .xm-subscription-alert h3,.m-dialog .xm-alert-item .xm-alert-label{display:block;margin:0 0 8px;color:var(--heading);font-size:16px;font-weight:550;line-height:1.5}
.m-dialog .xm-alert-item p{margin:0;color:var(--text);line-height:1.8;overflow-wrap:anywhere}
.m-dialog .xm-alert-next{margin:0;color:var(--secondary);font-size:12px;line-height:1.8;overflow-wrap:anywhere}
@media(prefers-reduced-motion:reduce){
 .member-app.xm-shell .xm-attention-warning{animation:none!important;transform:none!important;transition:none!important}
}

.m-dialog .xm-alert-actions{display:flex;flex-wrap:wrap;gap:8px;width:100%}
.m-dialog .xm-alert-actions>.m-button{flex:1 1 110px;min-height:44px;white-space:normal}

/* The reminder's wrapped actions stay visible while its explanation scrolls. */
.m-dialog.xm-subscription-reminder-dialog[open]{display:flex;flex-direction:column;max-height:calc(100vh - 24px);max-height:calc(100svh - 24px);max-height:calc(100dvh - 24px);overflow:hidden}
.m-dialog.xm-subscription-reminder-dialog>.m-dialog-heading,.m-dialog.xm-subscription-reminder-dialog>.m-dialog-footer{flex:0 0 auto}
.m-dialog.xm-subscription-reminder-dialog>.m-dialog-content{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto}

/* Keep subscription address actions together, in their reading and tab order. */
.xm-shell .xm-subscription-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px;min-width:0}
.xm-shell .xm-subscription-actions>button{min-width:0;min-height:44px}
.xm-shell .n-account-address>.xm-subscription-actions{flex:0 0 auto;margin-left:auto}
.xm-shell .n-account-address .xm-subscription-actions>.n-inner-button{padding:7px 10px}
.xm-shell .xm-subscription-actions>button[data-member-action="copy-subscription"]{border-color:var(--primary);background:var(--primary);color:var(--gx-primary-ink)}
.xm-shell .xm-subscription-actions>button[data-member-action="copy-subscription"]:hover:not(:disabled){border-color:var(--primary-hover);background:var(--primary-hover)}
.xm-shell .xm-subscription-actions>button[data-member-action="reset-subscription"]{border-color:var(--xm-mint);background:var(--xm-mint);color:var(--primary)}
.xm-shell .xm-subscription-actions>button[data-member-action="reset-subscription"]:hover:not(:disabled){border-color:var(--primary);background:var(--gx-featured)}
@media(max-width:767px){
 .xm-shell .n-connect-heading{flex-direction:column;align-items:stretch}
 .xm-shell .xm-subscription-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .xm-shell .xm-subscription-actions>button{white-space:normal}
 .xm-shell .n-account-address{flex-wrap:wrap}
 .xm-shell .n-account-address>code{flex-basis:100%}
}

/* Keep the mascot and all header controls visible on narrow phones. */
@media(max-width:374px){.xm-shell .m-topbar-title>.m-brand .m-brand-symbol,.xm-shell .m-topbar-title>.m-brand img{width:32px;height:32px}}

/* Final responsive boundaries for backend content and short-screen dialogs. */
body{min-width:0}
.xm-shell .xm-plan-description{min-width:0;max-width:100%;overflow-x:auto}
.member-app.xm-shell .n-wallet-values dd{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.member-app #auth-captcha{min-width:0;max-width:100%;overflow-x:auto}
.m-dialog[open]{display:flex;flex-direction:column}
.m-dialog .m-dialog-heading,.m-dialog .m-dialog-footer{flex:0 0 auto;min-width:0}
.m-dialog .m-dialog-content{flex:1 1 auto;min-width:0;min-height:0;max-height:none;overflow-y:auto}
.m-dialog .m-dialog-heading h2{max-height:30vh;max-height:30svh;overflow-y:auto}

/* Mobile navigation floats above the safe area; desktop keeps its full row. */
.xm-shell .xm-mobile-navigation{display:none}
@media(max-width:767px){
 .xm-shell .xm-horizontal-navigation{display:none}
 .xm-shell .m-main{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}
 .xm-shell .xm-mobile-navigation{position:fixed;z-index:55;display:block;left:12px;right:12px;bottom:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));max-width:460px;margin-inline:auto}
 .xm-shell .xm-mobile-dock{position:relative;z-index:2;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:7px;border:1px solid var(--outline);border-radius:23px;background:var(--surface);box-shadow:0 8px 30px #1a254b1c}
 .xm-shell .xm-mobile-dock-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:54px;padding:6px 2px;border:0;border-radius:16px;background:transparent;color:var(--secondary);font:inherit;font-size:10px;line-height:1.4;text-align:center;text-decoration:none;cursor:pointer}
 .xm-shell .xm-mobile-dock-item>.m-icon{display:block;width:22px;height:22px;flex-shrink:0}
 .xm-shell .xm-mobile-dock-item>span{max-width:100%;overflow-wrap:anywhere}
 .xm-shell .xm-mobile-dock-item.is-active{background:var(--xm-mint);color:var(--primary);font-weight:600}
 .xm-shell .xm-mobile-dock-item:hover{background:var(--input);color:var(--primary)}
 .xm-shell .xm-mobile-nav-scrim{position:fixed;inset:0;z-index:0;width:100%;height:100%;padding:0;border:0;background:#151b2b26;cursor:default}
 .xm-shell .xm-mobile-nav-panel{position:absolute;inset:auto 0 calc(100% + 10px);z-index:2;max-height:calc(100vh - 170px);max-height:calc(100svh - 170px);overflow-y:auto;overscroll-behavior:contain;padding:12px;border:1px solid var(--outline);border-radius:23px;background:var(--surface);box-shadow:0 10px 34px #1a254b24}
 .xm-shell .xm-mobile-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px 7px;color:var(--heading)}
 .xm-shell .xm-mobile-panel-heading>strong{font-size:13px;font-weight:550}
 .xm-shell .xm-mobile-panel-heading>button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;border-radius:50%;background:var(--input);color:var(--secondary);cursor:pointer}
 .xm-shell .xm-mobile-more-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .xm-shell .xm-mobile-more-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:76px;padding:10px 5px;border:1px solid var(--outline);border-radius:14px;background:var(--surface);color:var(--text);font-size:11px;line-height:1.5;text-align:center;text-decoration:none;overflow-wrap:anywhere}
 .xm-shell .xm-mobile-more-link>.m-icon{width:22px;height:22px;flex-shrink:0;color:var(--secondary)}
 .xm-shell .xm-mobile-more-link:hover,.xm-shell .xm-mobile-more-link.is-active{border-color:var(--primary);color:var(--primary);background:var(--xm-mint)}
 .xm-shell .xm-mobile-more-link.is-active>.m-icon{color:var(--primary)}
 .xm-shell .xm-mobile-dock-item:focus-visible,.xm-shell .xm-mobile-more-link:focus-visible{outline:2px solid var(--primary);outline-offset:1px}
}

@media(max-width:767px){.toast{bottom:calc(100px + env(safe-area-inset-bottom,0px))}}

/* Plan descriptions are a disclosure on phones and remain open on larger screens. */
.xm-shell .xm-plan-information{grid-area:description;min-width:0;max-width:100%;align-self:stretch;margin:0;padding:0;border:0}
.xm-shell .xm-plan-information>summary{display:none}
@media(max-width:767px){
 .xm-shell .xm-plan-information>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 0;border-top:1px solid var(--outline);list-style:none;color:var(--secondary);font-size:12px;cursor:pointer}
 .xm-shell .xm-plan-information>summary::-webkit-details-marker{display:none}
 .xm-shell .xm-plan-information>summary::marker{content:''}
 .xm-shell .xm-plan-information>summary>:not(:first-child){color:var(--primary)}
 .xm-shell .xm-plan-information:not([open]) .xm-plan-info-hide,.xm-shell .xm-plan-information[open] .xm-plan-info-show{display:none}
 .xm-shell .xm-plan-information>.xm-plan-description{border:0;padding-top:10px}
 .xm-shell .xm-plan-information>summary:focus-visible{outline:2px solid var(--primary);outline-offset:2px;border-radius:6px}
}

/* Readable navigation labels share the larger announcement typography. */
.xm-shell .xm-horizontal-navigation .m-nav { gap:8px; }
.xm-shell .xm-horizontal-navigation .m-nav-link { min-height:48px; padding-inline:18px; font-size:16px; line-height:24px; font-weight:500; }
.xm-shell .xm-horizontal-navigation .m-nav-link.is-active { font-weight:600; }
@media(max-width:767px) {
 .xm-shell .xm-mobile-dock-item { min-height:58px; font-size:12px; line-height:1.4; font-weight:500; }
 .xm-shell .xm-mobile-dock-item>.m-icon { width:24px; height:24px; }
 .xm-shell .xm-mobile-panel-heading>strong { font-size:15px; }
 .xm-shell .xm-mobile-more-link { min-height:84px; font-size:14px; gap:8px; }
}

/* A borderless period selector keeps its native menu and keyboard focus. */
.xm-shell .m-plan-card .m-plan-cycle select { border:0; box-shadow:none; }
.xm-shell .m-plan-card .m-plan-cycle select:focus:not(:focus-visible) { outline:none; }
.xm-shell .m-plan-card .m-plan-cycle select:focus-visible { outline:2px solid var(--primary); outline-offset:2px; }
