/* Geometry pass using Unslop by Damir Sokolovsky (@heydamir), CC BY 4.0.
   Existing palette and original in-app renderers are intentionally preserved. */
:root{--mira-gap-xs:8px;--mira-gap-sm:12px;--mira-gap:16px;--mira-gap-lg:24px;--mira-gap-xl:32px;--mira-control:44px;--mira-radius-tag:6px;--mira-radius-control:8px;--mira-radius-card:12px;--mira-radius-panel:16px}

/* Shared website controls; never target the contents of app previews. */
body :is(.mp-button,.mp-submit,.mp-bonus-signup,.ms-button,.help-button,.mc-primary){min-height:48px;box-sizing:border-box;padding:12px 20px;gap:8px;border-radius:8px!important;font-size:14px;line-height:20px}
body :is(.mp-store-button){min-height:56px;padding:8px 16px;gap:12px;border-radius:8px}
body :is(.mp-store-button strong){font-size:16px;line-height:20px}
body :is(.mp-store-button small){font-size:12px;line-height:16px}
body :is(.mp-language,.mp-mode-tabs,.mp-effect-tabs,.mp-power-tabs,.mp-social-tabs,.mp-gallery-filters,.mp-wallpaper-tabs,.ml-options,.ml-island-states,.mf-winter-choices,.mf-deko-choices,.mf-model-choices,.msx-options,.ticket-tabs){gap:8px}
body :is(.mp-mode-tabs,.mp-effect-tabs,.mp-power-tabs,.mp-social-tabs,.mp-gallery-filters,.mp-wallpaper-tabs,.ml-options,.ml-island-states,.mf-winter-choices,.mf-deko-choices,.mf-model-choices,.msx-section,.ticket-tabs) button{min-height:44px;box-sizing:border-box;padding:10px 16px;border-radius:8px!important;font-size:13px;line-height:20px}
body .mp-language button,body .mp-language a{min-height:32px;padding:4px 8px;border-radius:6px;font-size:12px;line-height:20px}
body :is(.mp-bonus-details,.mw-enlarge,.mf-all-functions,.mp-game-toggle,.mp-look-action){min-height:44px;padding:10px 16px;border-radius:8px!important;font-size:13px;line-height:20px;gap:8px}
body :is(.mp-side-nav){padding:8px!important;border-radius:12px!important;gap:4px}
body .mp-side-nav a{min-height:36px;padding:8px 12px;font-size:12px;line-height:20px;border-radius:6px}
body :is(.mf-feature-tabs){gap:8px!important;margin-bottom:24px!important}
body .mf-feature-tabs>button,body .mf-feature-tabs>button:nth-child(n){padding:12px!important;gap:8px!important;min-height:88px!important;border-radius:8px!important;font-size:14px!important;line-height:20px}
body .mf-feature-tabs>button :is(svg,canvas){width:28px;height:28px;object-fit:contain;flex-shrink:0}
body :is(.mf-gallery-real .mf-card,.mp-live-visual,.mp-game-scene,.mp-desktop-choice,.mp-power-preview,.msx-power-scene,.msx-fps-scene,.msx-day-scene>img){border-radius:16px}
body :is(.mw-screen,.ms-code-card,.ms-receipt,.ms-creator-tease,.ms-legal,.idea-row,.empty-board,.mc-redeem,.mc-checkout,.mc-code-card){border-radius:12px}
body :is(.mw-wallpaper,.mw-wallpaper img,.mf-decor-cell){border-radius:6px}
body .mw-wallpaper span{padding:8px 0 0;line-height:16px}
body :is(.mw-layout,.msx-two-col){gap:32px}
body .mw-wallpapers{gap:16px 12px;padding-right:8px}
body .mw-filters{gap:16px;margin-bottom:16px}
body .mw-filters button{padding-bottom:12px;min-height:44px}
body .mf-gallery-real .mf-card-copy{padding:32px}
body .mf-detail>p{margin-top:16px;margin-bottom:16px}
body :is(.mf-model-choices,.mf-winter-choices,.mf-deko-groups){margin-top:24px}
body .mf-deko-groups{gap:20px}
body .mf-deko-groups legend{margin-bottom:8px;font-size:12px;line-height:16px}

/* Predictable rhythm between content groups, without changing section order. */
body :is(.mp-section:not(.mp-hero),.mw-showcase,.msx-section){padding-top:96px;padding-bottom:96px}
body :is(.mp-section>.mp-wrap,.mw-showcase>.mp-wrap){width:min(1200px,calc(100% - 64px))}
body :is(.mp-section-header,.mw-heading,.mp-pricing-head){margin-bottom:32px;gap:24px}
body :is(.mp-section-header h2,.mw-heading h2,.msx-section h2,.mp-pricing-head h2){font-size:clamp(32px,3.6vw,48px);line-height:1.12;letter-spacing:-.02em}
body :is(.mx-hero,.help-hero,.ms-creator-hero){padding-top:128px}
body .mx-hero h1{font-size:48px;line-height:1.12}
body .ms-footer{padding-top:64px;padding-bottom:32px}
body .ms-footer-links{gap:16px 24px}
body :is(.ms-discover,.ms-creator-hero,.ms-home-creator-lead,.ms-home-creator .ms-calculator,.ms-kit-intro,.msx-windows-glass,.form-section,.mp-detail-grid){gap:48px}
body .ms-annual-label,body .mp-look.is-chosen::after{padding:4px 8px;border-radius:6px;font-size:12px;line-height:16px}
body .vote{min-width:44px;min-height:44px;padding:8px;border-radius:8px}
body .mc-page button{min-height:48px;padding:12px 20px;border-radius:8px;font-size:14px;line-height:20px}
body :is(.mc-heading h1,.ms-creator-hero h1){font-size:48px;line-height:1.12}

/* Launch form: equal input/button heights and readable supporting text. */
body.mira-product-page .mp-launch-section{padding:96px 0;min-height:auto}
body.mira-product-page .mp-launch-section .mp-signup-panel{max-width:720px}
body.mira-product-page .mp-launch-section h2{font-size:clamp(36px,4.4vw,56px);line-height:1.12;margin:0 0 16px;letter-spacing:-.03em}
body .mp-launch-eyebrow{font-size:12px;line-height:16px;letter-spacing:.04em;margin:0 0 12px}
body .mp-launch-intro{font-size:16px;line-height:24px;margin:0 auto 24px}
body .mp-launch-reward{gap:16px;margin-bottom:24px}
body.mira-product-page .mp-launch-section .mp-launch{gap:16px;margin:0 auto 24px}
body .mp-launch-section .mp-countdown{max-width:560px}
body .mp-launch-section .mp-countdown>div{padding:0 16px}
body .mp-launch-section .mp-countdown b{font-size:56px;line-height:1.12;letter-spacing:-.02em}
body .mp-launch-section .mp-countdown small{margin-top:8px;font-size:12px;line-height:16px;letter-spacing:0}
body .mp-launch-copy time{font-size:13px;line-height:20px}
body.mira-product-page .mp-launch-section .mp-form-row{gap:12px}
body :is(.mp-form-row,.ms-apply,.help-form,.idea-comment-form,.mc-input-row,.mc-invite) :is(input:not([type=checkbox]):not([type=radio]),textarea,select){box-sizing:border-box;min-height:48px;padding:12px 16px;border-radius:8px!important;font-size:14px;line-height:22px}
body .mp-launch-section #mira-email,body.mira-product-page .mp-launch-section .mp-submit{height:48px;min-height:48px;padding:12px 20px;font-size:14px;line-height:22px}
body.mira-product-page .mp-launch-section .mp-consent{gap:12px;margin-top:16px;font-size:12px;line-height:20px}
body .mp-consent input{width:16px;height:16px;flex-shrink:0;margin-top:2px}
body .mp-launch-assurance{margin-top:16px;font-size:12px;line-height:20px}
body .ms-apply{gap:48px}
body .ms-apply form{gap:24px}
body .ms-apply label:not(.ms-check){gap:8px}
body .ms-calculator{gap:48px}
body :is(.mp-price,.ms-receipt,.mc-redeem,.mc-checkout){padding:24px}
body .mp-price h3{font-size:24px;line-height:32px;margin-bottom:24px}
body .mp-price-number{font-size:56px;line-height:1.12;margin:16px 0}
body .mp-price ul{font-size:14px;line-height:28px}
body .mp-price-note{margin-top:24px;font-size:12px;line-height:20px}

/* Dialogs share spacing, safe viewport bounds and one control radius. */
body dialog:not(.mw-viewer){box-sizing:border-box;max-width:calc(100vw - 32px);max-height:calc(100svh - 32px);padding:32px;border-radius:16px;overflow:auto;overscroll-behavior:contain}
body :is(.mp-bonus-dialog,.mp-mail-dialog){width:min(520px,calc(100vw - 32px))}
body :is(.mp-bonus-close,.mp-mail-close){top:16px;right:16px;width:44px;height:44px;min-height:44px;border-radius:8px}
body .mp-bonus-dialog-art{height:80px;margin-bottom:24px}
body .mp-bonus-dialog h2{font-size:28px!important;line-height:1.2!important;margin:0 0 16px!important;padding-right:32px}
body .mp-mail-dialog h3{font-size:24px;line-height:32px;margin-bottom:16px;padding-right:40px}
body :is(.mp-bonus-dialog,.mp-mail-dialog) p{font-size:14px;line-height:22px;margin-bottom:16px}
body .mp-bonus-dialog ol{margin:24px 0;padding-left:24px}
body .mp-bonus-dialog li{padding:12px 0 12px 8px;font-size:14px;line-height:22px}
body .mp-bonus-dialog .mp-bonus-fine{font-size:12px;line-height:20px}
body .mp-bonus-dialog .mp-bonus-signup{margin-top:24px;min-height:48px;padding:12px 20px;border-radius:8px}
body .mw-viewer{max-width:calc(100vw - 32px);max-height:calc(100svh - 32px);border-radius:12px}
body .mw-viewer-close{min-width:44px;min-height:44px;border-radius:8px}
body #consentPanel{border-radius:16px;max-height:calc(100svh - 32px);max-width:calc(100vw - 32px)}

/* Keep the explicitly requested glass pill, with consistent nested radii. */
body .ms-nav{padding:4px 12px;gap:16px;border-radius:20px;min-height:56px}
body .ms-nav .ms-links a{padding:8px 12px;min-height:36px;border-radius:12px;line-height:20px}
body .ms-nav .ms-join{min-height:40px;padding:8px 16px;border-radius:8px!important;line-height:20px}
body #ms-mobile{padding:12px;border-radius:16px}
body #ms-mobile a{padding:12px;min-height:44px;border-radius:8px}

@media(max-width:1000px){body .ms-nav{padding:4px 12px}body :is(.ms-calculator,.ms-apply){gap:32px}}
@media(max-width:760px){
 body :is(.mp-section:not(.mp-hero),.mw-showcase,.msx-section){padding-top:64px;padding-bottom:64px}
 body.mira-product-page .mp-launch-section{padding:64px 0}
 body :is(.mp-section>.mp-wrap,.mw-showcase>.mp-wrap){width:calc(100% - 32px)}
 body :is(.mp-section-header,.mw-heading,.mp-pricing-head){gap:16px;margin-bottom:24px}
 body :is(.mp-section-header h2,.mw-heading h2,.msx-section h2,.mp-pricing-head h2){font-size:32px;line-height:1.15}
 body :is(.mx-hero,.help-hero,.ms-creator-hero){padding-top:112px}
 body .mx-hero h1{font-size:36px}
 body .mf-feature-tabs>button,body .mf-feature-tabs>button:nth-child(n){min-height:72px!important;padding:12px!important;font-size:13px!important}
 body .mf-feature-tabs>button :is(svg,canvas){width:24px;height:24px}
 body .mf-gallery-real .mf-card-copy{padding:24px}
 body .mp-launch-section .mp-countdown b{font-size:40px}
 body .mp-launch-section .mp-countdown>div{padding:0 8px}
 body .mp-launch-section .mp-countdown small{font-size:12px}
 body.mira-product-page .mp-launch-section .mp-form-row{flex-direction:column;gap:12px}
 body .mp-launch-section .mp-submit{width:100%}
 body .mp-price{padding:24px 16px}
 body .mp-price-number{font-size:40px}
 body dialog:not(.mw-viewer){padding:24px}
 body :is(.mp-bonus-close,.mp-mail-close){top:12px;right:12px}
 body .mp-bonus-dialog h2{font-size:24px!important}
 body .mp-bonus-dialog-art{height:72px;margin-bottom:20px}
 body :is(.mp-bonus-dialog,.mp-mail-dialog) p{font-size:14px}
 body .ms-footer{padding-top:48px;padding-bottom:24px}
 body :is(.ms-discover,.ms-creator-hero,.ms-home-creator-lead,.ms-home-creator .ms-calculator,.ms-kit-intro,.msx-windows-glass,.form-section,.mp-detail-grid){gap:24px}
 body :is(.mc-heading h1,.ms-creator-hero h1){font-size:36px}
}

/* Authorized CTA exception: reuse the existing Microsoft Store button colors. */
body.mira-product-page :is(.mp-submit,.mp-button,.mp-bonus-signup,.ms-button),body.mira-help-page .help-button{min-height:48px;padding:12px 20px!important;border-radius:8px!important;font-size:14px;line-height:22px}
body.mira-product-page :is(.mp-submit,.mp-button,.mp-bonus-signup,.ms-button,.ms-join){background:#101015e8!important;color:#fff!important;border:1px solid #eee9f24d!important;box-shadow:inset 0 1px 0 #ffffff0c!important;border-radius:8px!important}
body.mira-product-page :is(.mp-submit,.mp-button,.mp-bonus-signup,.ms-button,.ms-join):hover,body.mira-product-page :is(.mp-submit,.mp-button,.mp-bonus-signup,.ms-button,.ms-join):focus-visible{background:#23202b!important;border-color:#eee9f280!important}
body :is(.mp-submit,.mp-button,.mp-bonus-signup,.ms-button)>.gradient-band{display:none!important}

/* Pricing overview: both full plans fit a desktop viewport, including 120% zoom. */
.ms-subpage.ms-pricing-page{padding-top:104px}
body .ms-pricing-page .ms-heading{width:min(1120px,calc(100% - 48px));margin:0 auto;padding:0;text-align:center}
body .ms-pricing-page .ms-heading h1{font-size:36px;line-height:44px;letter-spacing:-.02em;margin:0 0 8px}
body .ms-pricing-page .ms-heading>p{font-size:14px;line-height:20px;margin:0}
body .ms-pricing-page .ms-eyebrow{display:none}
body .ms-pricing-page .mp-price-chapter{margin-top:24px;padding-top:0;padding-bottom:32px}
body .ms-pricing-page .mp-wrap{width:min(1120px,calc(100% - 48px))}
body .ms-pricing-page .mp-pricing{gap:24px}
body .ms-pricing-page .mp-price{padding:16px 20px}
body .ms-pricing-page .mp-price h3{font-size:20px;line-height:28px;margin:0 0 8px}
body .ms-pricing-page .mp-price-number{font-size:40px;line-height:44px;margin:0 0 8px;letter-spacing:-.02em}
body .ms-pricing-page .mp-price-number small{font-size:12px}
body .ms-pricing-page .mp-price .mp-price-option{font-size:13px;line-height:20px;margin:0 0 12px}
body .ms-pricing-page .mp-plan-includes{font-size:13px;line-height:20px;margin:0 0 8px}
body .ms-pricing-page .mp-price ul{margin:0;font-size:14px;line-height:20px}
body .ms-pricing-page .mp-price li{padding:4px 0;line-height:20px}
body .ms-pricing-page .ms-price-details{margin-top:24px;padding-top:0}
@media(max-width:760px){
 .ms-subpage.ms-pricing-page{padding-top:96px}
 body .ms-pricing-page .ms-heading,body .ms-pricing-page .mp-wrap{width:calc(100% - 32px)}
 body .ms-pricing-page .ms-heading h1{font-size:28px;line-height:34px}
 body .ms-pricing-page .mp-pricing{gap:24px}
 body .ms-pricing-page .mp-price{padding:20px 16px}
 body .ms-pricing-page .mp-price li{padding:8px 0;line-height:22px}
}
