/* Scoped first-run styles; existing appearance system is unchanged. */
#mm-first-run.fr-welcome-screen{justify-content:safe center}
#mm-first-run.fr-welcome-screen .fr-welcome{display:flex;flex:0 0 auto;flex-direction:column;justify-content:center;padding-block:0 24px}
#mm-first-run .fr-brand{font-weight:600;letter-spacing:.08em;margin:0 0 24px;color:var(--amber)}
#mm-first-run .fr-welcome-note{color:var(--text-2);font-size:var(--type-14);margin-top:10px}
#mm-first-run .fr-text-action{min-height:44px;border:0;background:transparent;color:var(--text-2);font:inherit;padding:10px 4px;cursor:pointer;text-align:center}
#mm-first-run .fr-paywall-back{align-self:flex-start;text-align:left;margin-bottom:12px}
#mm-first-run .fr-route-progress{color:var(--text-2);font-size:var(--type-14);margin:0 0 16px}
#mm-first-run[data-route=quick] .top{margin-bottom:10px}
#mm-first-run{--ink:var(--color-ink);--surface:var(--color-surface-dark);--hair:var(--color-hairline-dark);--hair-2:var(--color-source-424244);--text:var(--color-text-dark);--text-2:var(--color-secondary-dark);--text-3:var(--color-source-aaa9a4);--amber:var(--color-amber-text-dark);--fill:var(--color-amber-fill-dark);position:fixed;inset:0;z-index:7000;background:var(--ink);color:var(--text);overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;padding:max(24px,env(safe-area-inset-top)) max(24px,calc((100vw - 440px)/2)) max(24px,env(safe-area-inset-bottom));font:var(--type-16)/1.5 var(--sans,Arial,sans-serif);box-sizing:border-box}
.mm-first-run-open{overflow:hidden}.mm-first-run-open>#gate{visibility:hidden}
#mm-first-run h1{font-family:inherit;font-size:var(--type-28);font-weight:600;letter-spacing:-.035em;line-height:1.12;margin:0 0 16px;color:var(--text)}
#mm-first-run .sub{color:var(--text-2);margin:0 0 14px;font-size:var(--type-14)}
#mm-first-run .fill{flex:1}
#mm-first-run .btn{background:var(--fill);color:var(--ink);border:0;border-radius:12px;height:48px;font-size:var(--type-16);font-weight:600;width:100%;margin-top:8px;font-family:inherit}
#mm-first-run .btn.sec{background:transparent;color:var(--text);border:1px solid var(--hair-2)}
#mm-first-run .q{text-align:center;color:var(--text-3);font-size:var(--type-14);margin-top:12px}
#mm-first-run .top{display:flex;align-items:center;gap:10px;margin-bottom:20px;height:18px}
#mm-first-run .top .bk{color:var(--text-3);font-size:var(--type-20);line-height:1}
#mm-first-run .bar{flex:1;height:3px;background:var(--hair);border-radius:2px}#mm-first-run .bar i{display:block;height:100%;background:var(--amber);border-radius:2px}
#mm-first-run .tile{border:1px solid var(--hair);background:var(--surface);border-radius:12px;padding:13px 15px;display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
#mm-first-run .tile.on{border-color:var(--amber)}#mm-first-run .tile em{font-style:normal;color:var(--text-3);font-size:var(--type-14)}
#mm-first-run .tiles2{display:grid;grid-template-columns:1fr 1fr;gap:8px}#mm-first-run .tiles2 .tile{flex-direction:column;align-items:flex-start;height:84px;justify-content:flex-end}
#mm-first-run .chips{display:flex;flex-wrap:wrap;gap:8px}#mm-first-run .chip{border:1px solid var(--hair-2);border-radius:999px;padding:7px 13px;font-size:var(--type-14);color:var(--text-2)}#mm-first-run .chip.on{border-color:var(--amber);color:var(--text)}
#mm-first-run .row{display:flex;justify-content:space-between;padding:10px 12px;border:1px solid var(--hair);border-radius:8px;background:var(--surface);margin-bottom:6px;font-size:var(--type-14)}
#mm-first-run .row.on{border-color:var(--amber)}#mm-first-run .row.rest{border:0;background:none;color:var(--text-3);padding:6px 12px}
#mm-first-run .card{border:1px solid var(--hair);background:var(--surface);border-radius:12px;padding:12px 14px;margin-bottom:9px}
#mm-first-run .card b{display:block;font-weight:600;margin-bottom:2px;font-size:var(--type-14)}#mm-first-run .card span{color:var(--text-2);font-size:var(--type-14)}
#mm-first-run .price{border:1px solid var(--hair);border-radius:12px;padding:12px 14px;margin-bottom:8px}
#mm-first-run .price.on{border-color:var(--amber);background:var(--surface)}
#mm-first-run .price b{display:block;font-weight:600}#mm-first-run .price span{color:var(--text-3);font-size:var(--type-14)}
#mm-first-run .pill{background:var(--amber);color:var(--ink);font-size:var(--type-14);font-weight:600;border-radius:999px;padding:2px 8px;margin-left:6px}
#mm-first-run .due{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--hair)}
#mm-first-run .due i{width:22px;height:22px;border-radius:11px;border:1.5px solid var(--hair-2);flex:none;display:flex;align-items:center;justify-content:center;font-size:var(--type-14);font-style:normal}
#mm-first-run .due i.d{background:var(--amber);border-color:var(--amber);color:var(--ink)}
#mm-first-run .plan{border:1px solid var(--hair);background:var(--surface);border-radius:14px;padding:14px;margin:14px 0}
#mm-first-run .plan .day{border:1px solid var(--hair-2);border-radius:999px;padding:2px 9px;font-size:var(--type-14);color:var(--text-2)}
#mm-first-run .plan .nm{font-size:var(--type-28);font-weight:600;letter-spacing:-.02em;margin:8px 0 2px}#mm-first-run .plan .mt{color:var(--text-3);font-size:var(--type-14);margin-bottom:12px}
#mm-first-run .stats{display:flex;gap:16px;margin:10px 0 12px}#mm-first-run .stats div{flex:1}#mm-first-run .stats b{display:block;font-size:var(--type-28);font-weight:600;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums}#mm-first-run .stats small{color:var(--text-3);font-size:var(--type-14)}
#mm-first-run .nav{display:flex;justify-content:space-between;border-top:1px solid var(--hair);padding-top:10px;font-size:var(--type-14);color:var(--text-3)}#mm-first-run .nav span{flex:1;text-align:center}#mm-first-run .nav span.on{color:var(--amber)}
#mm-first-run .amber{background:var(--fill);color:var(--ink);margin:-18px -16px -14px;padding:18px 16px 14px;flex:1;display:flex;flex-direction:column}
#mm-first-run .amber h5{color:var(--ink)}#mm-first-run .amber .sub{color:var(--color-source-3c3a33)}#mm-first-run .amber .btn{background:var(--ink);color:var(--text)}
#mm-first-run .amber .dots i{background:var(--ink)}
#mm-first-run .dots{display:flex;gap:6px;margin-bottom:16px}#mm-first-run .dots i{width:6px;height:6px;border-radius:3px;background:var(--hair-2);opacity:.45}#mm-first-run .dots i.on{width:18px;opacity:1;background:var(--amber)}
#mm-first-run .art{flex:1;display:flex;align-items:center;justify-content:center;padding:6px 0}
#mm-first-run .bubble{background:var(--surface);border:1px solid var(--hair);border-radius:18px;padding:18px;font-size:var(--type-16);line-height:1.4;margin:22px 0}
#mm-first-run .yn{display:grid;grid-template-columns:1fr 1fr;gap:8px}#mm-first-run .yn div{border:1px solid var(--hair-2);border-radius:12px;height:64px;display:flex;align-items:center;justify-content:center;font-size:var(--type-16)}
#mm-first-run .mock{border:1px solid var(--hair);background:var(--surface);border-radius:12px;padding:12px;margin:6px 0 16px;font-size:var(--type-14)}
#mm-first-run .mock div{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid var(--hair)}#mm-first-run .mock div:last-child{border:0}
#mm-first-run .mock .am{color:var(--amber)}#mm-first-run .mock .gh{color:var(--text-3)}
#mm-first-run .field{height:44px;border:1px solid var(--hair-2);border-radius:10px;background:var(--surface);display:flex;align-items:center;justify-content:space-between;padding:0 12px;font-size:var(--type-14);margin-bottom:8px}#mm-first-run .field span{color:var(--text-3);font-size:var(--type-14)}
#mm-first-run .seg{display:inline-flex;border:1px solid var(--hair-2);border-radius:8px;overflow:hidden;font-size:var(--type-14)}#mm-first-run .seg span{padding:5px 10px}#mm-first-run .seg span.on{background:var(--amber);color:var(--ink);font-weight:600}
#mm-first-run .body{display:grid;grid-template-columns:1fr 1fr;gap:8px}#mm-first-run .body div{border:1px solid var(--hair);background:var(--surface);border-radius:10px;height:56px;display:flex;align-items:center;padding:0 12px;font-size:var(--type-14)}#mm-first-run .body div.on{border-color:var(--amber)}
#mm-first-run .setrow{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--hair)}#mm-first-run .setrow b{display:block;font-size:var(--type-14);font-weight:600}#mm-first-run .setrow small{color:var(--text-2);font-size:var(--type-14);display:block;line-height:1.4}
#mm-first-run .wk{display:flex;gap:4px;margin:10px 0 6px}#mm-first-run .wk span{flex:1;height:34px;border-radius:6px;background:var(--surface);border:1px solid var(--hair);display:flex;align-items:center;justify-content:center;font-size:var(--type-14);color:var(--text-3)}#mm-first-run .wk span.on{border-color:var(--amber);color:var(--text)}
#mm-first-run .fp{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px;font-size:var(--type-14);line-height:1.5}#mm-first-run .fp b{display:block;font-size:var(--type-14);font-weight:600;margin-bottom:2px}#mm-first-run .fp span{display:block;color:var(--text-2)}#mm-first-run .fp div:last-child b{color:var(--amber)}
#mm-first-run .artslot{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;margin:0 0 12px}
#mm-first-run .artslot img{width:100%;max-height:300px;object-fit:cover;border-radius:14px;display:block}
#mm-first-run .artfb{display:none;align-items:center;justify-content:center;width:100%;min-height:150px;border:1px solid var(--hair);border-radius:14px;background:var(--surface)}
#mm-first-run .amberhead{background:var(--fill);color:var(--ink);margin:0 -16px;padding:14px 16px 10px}
#mm-first-run .amberhead h5{color:var(--ink)}#mm-first-run .amberhead .sub{color:var(--color-source-3c3a33);margin-bottom:0}

#mm-first-run *{box-sizing:border-box}#mm-first-run button{cursor:pointer;font-family:inherit;color:inherit}#mm-first-run button:focus-visible,#mm-first-run input:focus-visible,#mm-first-run select:focus-visible{outline:2px solid var(--amber);outline-offset:3px}#mm-first-run .btn{flex-shrink:0;min-height:52px;color:var(--ink);font-size:var(--type-16);box-shadow:none}#mm-first-run .sec{color:var(--text)}#mm-first-run .q,#mm-first-run .bk{border:0;background:none;min-height:44px;padding:10px}#mm-first-run .tile{width:100%;text-align:left;font-size:var(--type-16)}#mm-first-run .chip{background:var(--surface);min-height:44px}#mm-first-run .yn button{background:var(--surface);border:1px solid var(--hair-2);border-radius:12px;min-height:64px;font-size:var(--type-20)}#mm-first-run .body button{background:var(--surface);border:1px solid var(--hair);border-radius:12px;min-height:64px;text-align:left;padding:16px}#mm-first-run .body button.on{border-color:var(--amber)}#mm-first-run .field{min-height:58px;height:auto}#mm-first-run .field span{font-size:var(--type-16);color:var(--text-2)}#mm-first-run input,#mm-first-run select{font-family:inherit;font-size:var(--type-20);font-weight:600;line-height:1.3;background:transparent;border:0;color:var(--text);width:52%;min-width:0;text-align:right;padding:12px 4px}#mm-first-run select option{background:var(--ink)}#mm-first-run .seg button{background:transparent;border:0;color:var(--text);padding:12px}#mm-first-run .seg button.on{background:var(--surface)}#mm-first-run .card,#mm-first-run .price{width:100%;text-align:left;background:var(--surface)}#mm-first-run .card span,#mm-first-run .price span{font-size:var(--type-14)}#mm-first-run .card{min-height:76px}#mm-first-run .artslot{min-height:220px;flex:1 0 220px}#mm-first-run .artslot img{object-fit:contain;max-height:40dvh;width:100%;border:0}#mm-first-run .amberhead h1{color:var(--ink)}#mm-first-run .amberhead{margin-inline:0;border-radius:12px}#mm-first-run .mock{font-size:var(--type-16)}#mm-first-run .mock div{gap:16px}#mm-first-run .art{background:none;border:0;min-height:210px}#mm-first-run .fr-ring{stroke-dasharray:358.142;stroke-dashoffset:358.142}#mm-first-run [data-fr-action=hold]{touch-action:none;user-select:none;-webkit-user-select:none}#mm-first-run .fr-error:empty{display:none}#mm-first-run .fr-error{color:var(--text);font-size:var(--type-14)}#mm-first-run [data-fr-action=install]{margin-top:6px}
@media(min-width:768px){#mm-first-run{padding-top:40px;padding-bottom:40px}#mm-first-run .artslot img{max-height:35dvh}}

.mm-late-account #mm-first-run{visibility:hidden}.fr-handoff{position:absolute;inset:0;background:var(--ink);padding:48px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}.fr-handoff [data-qr]{width:240px;height:240px;margin:24px}.fr-handoff img{width:100%;height:100%}

body:has(.mm-cloud-modal:not([hidden])) #mm-first-run{visibility:hidden}

#mm-first-run [data-fr-action=hold] svg text{fill:var(--text)}#mm-first-run [data-fr-action=hold] circle:first-of-type{stroke:var(--hair-2)}

/* v1.7.0-b: scoped layout polish. */

#mm-first-run.fr-pain .artslot{margin:calc(-1 * max(24px,env(safe-area-inset-top))) -24px 0;flex:0 0 auto;min-height:0}
#mm-first-run.fr-pain .artslot img{height:42dvh;max-height:none;object-fit:cover;border-radius:0 0 16px 16px}
#mm-first-run.fr-pain .amberhead{margin:0 -24px;padding:24px;border-radius:0}
#mm-first-run.fr-pain .amberhead .sub{color:var(--ink);opacity:.8}
#mm-first-run.fr-pain .dots{margin-top:auto;padding-top:24px}
#mm-first-run.fr-commitment .fr-hold-space{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
#mm-first-run.fr-commitment [data-fr-action=hold]{flex:0!important;min-height:160px;padding:0;width:160px;height:160px}
#mm-first-run.fr-commitment [data-fr-action=hold] svg{width:160px;height:160px;flex:none}
#mm-first-run.fr-commitment .fr-ring{stroke:var(--amber)}
#mm-first-run.fr-commitment [data-hold-status]{margin:0;min-height:44px}
#mm-first-run.fr-week-ready .row{min-height:44px;align-items:center;font-size:var(--type-16);font-weight:600;gap:12px}
#mm-first-run.fr-week-ready .row span:first-child{min-width:0}
#mm-first-run.fr-week-ready .card{margin-top:0!important;margin-bottom:12px}
#mm-first-run.fr-week-ready .card b{color:var(--text-2)}
@media(min-width:768px){#mm-first-run.fr-pain .artslot{margin-top:-40px}#mm-first-run.fr-pain .artslot img{height:42dvh}}

/* Keyboard and pointer targets remain usable on larger touch screens too. */
#mm-first-run .bk{min-width:44px;flex-shrink:0}
#mm-first-run .mm-switch{min-height:44px;height:44px}
#mm-first-run[role=dialog] .mm-pro-paywall .mm-pro-close{min-height:44px;height:44px}


/* v1.15.2: complete illustration stages and a stable, scrollable setup column. */
#mm-first-run{--fr-bg:var(--color-ink);background:var(--fr-bg);scroll-padding-block:24px}
html[data-theme=light] #mm-first-run{--fr-bg:var(--color-paper);--surface:var(--color-source-fffcf7);--hair:var(--color-source-ded9cd);--hair-2:var(--color-source-86898c);--text:var(--color-ink);--text-2:var(--color-source-5b5f63);--text-3:var(--color-source-5b5f63);--amber:var(--color-amber-text-light)}
#mm-first-run> :not(.fill):not(.artslot):not(.fr-hold-space){flex-shrink:0}
#mm-first-run h1:focus{outline:none}
#mm-first-run .top{height:auto;min-height:44px;flex-shrink:0;margin-bottom:16px}
#mm-first-run .mock div>span{min-width:0;overflow-wrap:anywhere}
#mm-first-run .mock div>span:last-child{text-align:right}
#mm-first-run .tile{gap:12px;min-height:54px}
#mm-first-run .tile em{flex-shrink:0}
#mm-first-run .tiles2{min-width:0}
#mm-first-run .tiles2 .tile{height:auto;min-height:96px;gap:4px;margin-bottom:0}
#mm-first-run .field{gap:12px}
#mm-first-run select option{background:var(--fr-bg)}
#mm-first-run .artslot{flex:1 0 auto;min-height:0;margin:0 0 24px;padding-block:12px}
#mm-first-run .artslot img{display:block;flex:none;width:auto;height:auto;max-width:100%;max-height:min(44dvh,420px);object-fit:contain;object-position:center;border-radius:16px}
#mm-first-run.fr-pain .artslot{flex:0 0 auto;min-height:0;margin:0 0 20px;padding:0}
#mm-first-run.fr-pain .artslot img{width:auto;height:auto;max-width:100%;max-height:min(46dvh,420px);object-fit:contain;border-radius:16px}
#mm-first-run.fr-pain .amberhead{margin:0;padding:20px;border-radius:16px}
#mm-first-run.fr-pain .amberhead h1{margin-bottom:10px}
#mm-first-run.fr-pain .dots{padding-top:24px;margin-bottom:16px}
#mm-first-run :is(.mm-fr-style-2,.mm-fr-style-26,.mm-fr-style-28){color:var(--text-2)}
#mm-first-run.fr-week-ready .row>span:last-child{flex-shrink:0;white-space:nowrap}
#mm-first-run.fr-week-ready .card{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:14px 16px}
#mm-first-run.fr-week-ready .card b{color:var(--text);margin:0}
#mm-first-run.fr-commitment .fr-hold-space{min-height:244px;padding-block:20px}
#mm-first-run .fr-handoff{position:fixed;background:var(--fr-bg);overflow:auto;justify-content:safe center;gap:8px}
#mm-first-run .fr-handoff>*{flex-shrink:0;max-width:440px;width:100%;margin-block:0}
#mm-first-run .fr-handoff [data-qr]{width:min(240px,100%);height:auto;aspect-ratio:1;margin-block:16px}
#mm-first-run .fr-handoff .btn{margin-top:16px}
@media(max-height:700px){
 #mm-first-run{padding-top:max(20px,env(safe-area-inset-top));padding-bottom:max(20px,env(safe-area-inset-bottom))}
 #mm-first-run .artslot{margin-bottom:18px;padding-block:0}
 #mm-first-run .artslot img,#mm-first-run.fr-pain .artslot img{max-height:36dvh}
 #mm-first-run.fr-pain .amberhead{padding:16px}
 #mm-first-run.fr-pain .dots{padding-top:16px;margin-bottom:12px}
}
#mm-first-run.fr-week-ready .row{display:flex;justify-content:space-between}
#mm-first-run[role=dialog] .mm-pro-paywall{min-width:0;color:var(--text);margin-block:auto}
#mm-first-run[role=dialog] .mm-pro-price{background:var(--surface);border-color:var(--hair);color:var(--text);min-width:0;overflow-wrap:anywhere}
#mm-first-run[role=dialog] .mm-pro-price.on{border-color:var(--amber)}
#mm-first-run[role=dialog] .mm-pro-paywall>.btn.ghost{color:var(--text);border-color:var(--hair-2)}
#mm-first-run[role=dialog] .mm-pro-compare{grid-template-columns:repeat(2,minmax(0,1fr))}
#mm-first-run[role=dialog] .mm-pro-compare>div{min-width:0}
#mm-first-run.fr-week-ready .row>span:last-child{flex:0 0 auto;text-align:right}
