/* Quiet Editorial Beauty-Tech — account, purchase and authentication material pass. */

body.qe-account-page,
body.qe-auth-page{
  min-width:0;
  color:var(--qe-ink);
  font-size:15px;
}

body.qe-account-page :where(button,input),
body.qe-auth-page :where(button,input){box-sizing:border-box}

/* Account: one balance tableau, not a ledger. */

body.qe-account-page .mc-account{
  width:100%;
  max-width:1800px;
  margin-inline:auto;
  overflow:clip;
  background:transparent;
}

body.qe-account-page .mc-account-overview{
  min-height:clamp(650px,53vw,760px);
  display:grid;
  grid-template-columns:minmax(0,61%) minmax(360px,39%);
  grid-template-rows:auto 1fr;
  border:0;
  border-bottom:1px solid var(--qe-rule);
  background:transparent;
}

body.qe-account-page .mc-account-head{
  grid-column:1;
  grid-row:1;
  padding:clamp(78px,8vw,116px) clamp(52px,7vw,104px) 34px;
  border:0;
  justify-content:flex-start;
}

body.qe-account-page .mc-account-head h1{
  max-width:650px;
  font:400 clamp(38px,3.6vw,54px)/1.58 var(--qe-display);
  letter-spacing:.012em;
}

body.qe-account-page .mc-account-head h1>span{display:block}

body.qe-account-page .mc-account-head>p:not(.mc-kicker){
  max-width:520px;
  margin:30px 0 18px;
  font-size:15px;
  line-height:1.95;
}

body.qe-account-page .mc-account-head .qe-text-action{font-size:13px}

body.qe-account-page .mc-balance-block{
  grid-column:1;
  grid-row:2;
  min-width:0;
  padding:8px clamp(52px,7vw,104px) clamp(82px,8vw,118px);
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(210px,.56fr);
  grid-template-areas:"credit identity";
  align-items:end;
  gap:clamp(32px,5vw,76px);
  border:0;
}

body.qe-account-page .mc-account-ledger-row{
  min-width:0;
  padding:0;
  border:0!important;
}

body.qe-account-page .mc-account-ledger-row:first-child{grid-area:identity;padding-bottom:15px}
body.qe-account-page .mc-credit-row{grid-area:credit}

body.qe-account-page .mc-account-ledger-row>p:first-child{
  margin:0 0 12px;
  color:var(--qe-ink-muted);
  font-size:13px;
  font-weight:500;
  letter-spacing:.06em;
}

body.qe-account-page .mc-account-identity{
  max-width:300px;
  font:400 clamp(18px,1.65vw,24px)/1.55 var(--qe-display);
}

body.qe-account-page .mc-balance{
  gap:16px;
  margin:0;
  align-items:flex-end;
}

body.qe-account-page .mc-balance strong{
  font:400 clamp(92px,10vw,146px)/.78 var(--qe-display);
  letter-spacing:-.055em;
}

body.qe-account-page .mc-balance span{
  padding-bottom:5px;
  color:var(--qe-ink-muted);
  font-size:13px;
  letter-spacing:.09em;
}

body.qe-account-page .mc-wallet-status{
  max-width:470px;
  margin:22px 0 0;
  font-size:13px;
  line-height:1.8;
}

body.qe-account-page .mc-account-art{
  grid-column:2;
  grid-row:1/3;
  min-height:0;
  margin:0;
  border:0;
  background:var(--qe-paper-muted);
}

body.qe-account-page .mc-account-art img{object-position:center 50%}

/* Usage is a quiet typographic band, not a rate table. */

body.qe-account-page .mc-rates{
  width:calc(100% - 2 * var(--qe-gutter));
  max-width:1500px;
  margin:0 auto;
  padding:46px 0 48px;
  display:grid;
  grid-template-columns:minmax(190px,.55fr) minmax(0,2.45fr);
  gap:clamp(36px,6vw,92px);
  align-items:start;
  border:0;
  border-bottom:1px solid var(--qe-rule);
  background:transparent;
}

body.qe-account-page .mc-rates h2{
  padding:6px 0 0;
  display:block;
  font:400 clamp(22px,2vw,30px)/1.55 var(--qe-display);
}

body.qe-account-page .mc-rates article,
body.qe-account-page .mc-rates article+article{
  padding:0;
  border:0;
}

body.qe-account-page .mc-rates article{display:contents}
body.qe-account-page .mc-rates dl,
body.qe-account-page .mc-rates article:last-child dl{
  grid-column:2;
  height:auto;
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:20px clamp(30px,5vw,78px);
}

body.qe-account-page .mc-rates article:last-child dl{margin-top:22px}
body.qe-account-page .mc-rates dl>div,
body.qe-account-page .mc-rates dl>div+div{
  min-height:44px;
  padding:0;
  display:flex;
  justify-content:flex-start;
  gap:15px;
  border:0;
}

body.qe-account-page .mc-rates dt{font-size:13px}
body.qe-account-page .mc-rates dd strong{font-size:32px;font-weight:400}
body.qe-account-page .mc-rates dd small{font-size:12px}

/* Purchase: a full-width selection stage with three editorial rows. */

body.qe-account-page .mc-shop{
  padding:clamp(82px,9vw,132px) var(--qe-gutter) clamp(90px,9vw,136px);
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:0;
  border:0;
  border-bottom:1px solid var(--qe-rule);
  background:transparent;
}

body.qe-account-page .mc-purchase-intro{
  max-width:none;
  padding:0 0 54px;
  display:grid;
  grid-template-columns:minmax(360px,.9fr) minmax(280px,.65fr) auto;
  gap:clamp(38px,6vw,96px);
  align-items:end;
}

body.qe-account-page .mc-purchase-intro .mc-section-head h2{
  max-width:760px;
  font:400 clamp(42px,4.7vw,68px)/1.45 var(--qe-display);
}

body.qe-account-page .mc-purchase-intro .mc-section-head>p:last-child{
  margin-top:26px;
  font-size:14px;
}

body.qe-account-page .mc-purchase-facts{
  gap:10px;
  margin:0;
  font-size:13px;
  line-height:1.75;
}

body.qe-account-page .mc-purchase-facts li::before{content:"—";margin-right:12px}
body.qe-account-page .mc-purchase-intro>.qe-text-action{font-size:13px}

body.qe-account-page .mc-purchase-ledger{
  width:100%;
  padding:0;
  border:0;
}

body.qe-account-page .mc-pack-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  padding:16px 0;
  border:0;
  border-top:1px solid var(--qe-rule);
  border-bottom:1px solid var(--qe-rule);
}

body.qe-account-page .mc-pack-card{
  min-height:150px;
  padding:24px clamp(22px,2.8vw,42px);
  display:grid;
  grid-template-columns:minmax(130px,.55fr) minmax(260px,1.15fr) minmax(180px,.8fr) minmax(130px,.52fr) minmax(118px,.44fr);
  grid-template-areas:"over credit bonus price action";
  align-items:center;
  gap:clamp(20px,3.2vw,54px);
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--qe-ink);
  box-shadow:none;
  transition:background-color var(--qe-fast) ease,color var(--qe-fast) ease;
}

body.qe-account-page .mc-pack-card.is-featured::before{content:none}
body.qe-account-page .mc-pack-card:hover,
body.qe-account-page .mc-pack-card:focus-visible{background:color-mix(in srgb,var(--qe-wine) 2.5%,transparent);color:var(--qe-ink)}
body.qe-account-page .mc-pack-card.is-selected,
body.qe-account-page .mc-pack-card.is-featured.is-selected{
  color:var(--qe-wine);
  background:color-mix(in srgb,var(--qe-wine) 4%,var(--qe-paper));
  box-shadow:none;
}

body.qe-account-page .mc-pack-overline{
  grid-area:over;
  font:500 13px/1.5 var(--qe-reading);
  letter-spacing:.16em;
}

body.qe-account-page .mc-pack-overline small{
  display:block;
  margin-top:7px;
  font:400 12px/1.4 var(--qe-ui);
  letter-spacing:.06em;
}

body.qe-account-page .mc-pack-credit{
  grid-area:credit;
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) 78px;
  align-items:baseline;
  column-gap:14px;
}
body.qe-account-page .mc-pack-card .mc-pack-credit strong{
  grid-area:auto;
  width:100%;
  justify-self:end;
  text-align:right;
  font:400 clamp(64px,6.8vw,102px)/.85 var(--qe-display);
  font-variant-numeric:lining-nums tabular-nums;
  letter-spacing:-.055em;
}

body.qe-account-page .mc-pack-unit{
  grid-area:auto;
  align-self:baseline;
  justify-self:start;
  margin:0;
  font-size:12px;
  white-space:nowrap;
}
body.qe-account-page .mc-pack-bonus{
  grid-area:bonus;
  width:100%;
  justify-self:stretch;
  text-align:right;
  font-variant-numeric:lining-nums tabular-nums;
  font-size:13px;
  line-height:1.75;
}

body.qe-account-page .mc-pack-card>b{
  grid-area:price;
  width:100%;
  justify-self:stretch;
  text-align:right;
  font-variant-numeric:lining-nums tabular-nums;
  font:400 clamp(25px,2.35vw,36px)/1.2 var(--qe-display);
}

body.qe-account-page .mc-pack-action{
  grid-area:action;
  justify-self:end;
  padding:0;
  display:inline-flex;
  align-items:center;
  gap:13px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.06em;
}

body.qe-account-page .mc-pack-action::before{
  content:"";
  width:22px;
  height:22px;
  flex:0 0 22px;
  border:1px solid var(--qe-rule-strong);
  border-radius:50%;
  background:transparent;
  box-sizing:border-box;
}

body.qe-account-page .mc-pack-card.is-selected .mc-pack-action::before{
  border:6px solid var(--qe-wine);
  background:var(--qe-paper);
}

body.qe-account-page .mc-pack-action::after{content:none}

body.qe-account-page .mc-pack-confirmation{
  margin-top:38px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,420px);
  gap:clamp(32px,5vw,78px);
  align-items:end;
}

body.qe-account-page .mc-selected-pack{
  min-height:44px;
  margin:0;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:12px 24px;
  align-items:baseline;
  font-size:13px;
}

body.qe-account-page .mc-selected-pack>span{font-size:12px}
body.qe-account-page .mc-selected-pack>strong{font:500 14px/1.5 var(--qe-reading);letter-spacing:.12em}
body.qe-account-page .mc-selected-pack>strong small{font-size:12px}
body.qe-account-page .mc-selected-pack>b{font-size:14px}

body.qe-account-page .mc-pack-checkout{
  min-height:72px;
  padding:17px 24px;
  border:0;
  border-radius:0;
  background:var(--qe-wine);
  box-shadow:none;
  font:500 17px/1.45 var(--qe-display);
}

body.qe-account-page .mc-pack-checkout:hover,
body.qe-account-page .mc-pack-checkout:focus-visible{background:var(--qe-wine-hover);box-shadow:none;transform:none}
body.qe-account-page .mc-pack-checkout>b{font-size:22px}
body.qe-account-page .mc-shop-note{margin-top:16px;font-size:12px}
body.qe-account-page .mc-stripe-note{justify-content:flex-start;margin-top:16px;font-size:12px}

body.qe-account-page .mc-purchase-support{
  margin-top:62px;
  padding:42px 0 0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(52px,9vw,150px);
  border-top:1px solid var(--qe-rule);
}

body.qe-account-page .mc-purchase-support section,
body.qe-account-page .mc-purchase-support section+section{padding:0;border:0}
body.qe-account-page .mc-purchase-support h3{font-size:22px;font-weight:400}
body.qe-account-page .mc-purchase-support p{max-width:420px;font-size:13px}
body.qe-account-page .mc-purchase-support .qe-text-action{font-size:13px}

/* Supporting account sections stay typographic and breathable. */

body.qe-account-page .mc-how,
body.qe-account-page .mc-account-settings{
  padding:clamp(76px,8vw,118px) 0;
}

body.qe-account-page .mc-how .mc-section-head,
body.qe-account-page .mc-account-settings .mc-section-head{
  grid-template-columns:190px 1fr;
  margin-bottom:46px;
}

body.qe-account-page .mc-kicker{font-size:12px}
body.qe-account-page .mc-how li p{font-size:13px}
body.qe-account-page .mc-danger-details summary,
body.qe-account-page .mc-danger-details p,
body.qe-account-page .mc-danger-details label{font-size:13px}
body.qe-account-page .mc-danger-details input{font-size:16px}
body.qe-account-page .mc-danger-button{min-height:48px;font-size:12px}
body.qe-account-page .mc-legal-links{font-size:12px}

/* Authentication: an editorial image/paper split with a calm form field. */

body.qe-auth-page .qe-product-header{background:transparent}

body.qe-auth-page .mm-auth{
  min-height:100svh;
  display:grid;
  grid-template-columns:minmax(0,49%) minmax(520px,51%);
  overflow:clip;
  background:transparent;
}

body.qe-auth-page .mm-auth-visual{
  min-height:760px;
  background:var(--qe-paper-muted);
}

body.qe-auth-page .mm-auth-visual>img{
  object-position:58% center;
  filter:saturate(.9) contrast(.98);
}

body.qe-auth-page .mm-auth-visual::after{
  inset:0 48% 0 0;
  background:var(--qe-canvas);
}

body.qe-auth-page .mm-auth-visual-content{
  min-height:760px;
  padding:136px clamp(36px,4.8vw,72px) 62px;
}

body.qe-auth-page .qe-auth-story{width:min(48%,390px)}
body.qe-auth-page .mm-auth-visual h1{
  max-width:360px;
  font:400 clamp(39px,3.7vw,56px)/1.56 var(--qe-display);
  letter-spacing:.012em;
  overflow-wrap:anywhere;
  word-break:normal;
  line-break:auto;
}

body.qe-auth-page .mm-auth-visual #auth-context-copy{
  max-width:330px;
  margin-top:28px;
  font-size:14px;
  line-height:1.9;
}

body.qe-auth-page .qe-auth-credit-note{
  max-width:340px;
  margin-top:38px!important;
  padding:0;
  border:0;
  color:var(--qe-wine)!important;
  font-size:13px!important;
  font-weight:500!important;
  line-height:1.85!important;
}

body.qe-auth-page .mm-auth-visual-content>small{
  max-width:340px;
  font-size:13px;
  line-height:1.75;
}

body.qe-auth-page .mm-auth-panel{
  padding:132px clamp(60px,7vw,108px) 82px;
  place-items:center;
  background:transparent;
}

body.qe-auth-page .mm-auth-card{
  width:min(100%,600px);
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

body.qe-auth-page .qe-auth-state-rail{
  position:relative;
  margin:0 0 56px;
  padding:18px 0 0;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(12px,2vw,28px);
  border-top:1px solid var(--qe-rule);
}

body.qe-auth-page .qe-auth-state-rail li{
  position:relative;
  min-height:44px;
  padding:9px 0 7px;
  border:0;
  color:var(--qe-ink-muted);
  font-size:12px;
  font-weight:500;
  text-align:left;
  white-space:normal;
}

body.qe-auth-page .qe-auth-state-rail li::before{
  content:"";
  width:5px;
  height:5px;
  position:absolute;
  top:-21px;
  left:0;
  border-radius:50%;
  background:var(--qe-rule-strong);
}

body.qe-auth-page .qe-auth-state-rail li[aria-current="step"]{
  border:0;
  color:var(--qe-wine);
  font-weight:650;
}

body.qe-auth-page .qe-auth-state-rail li[aria-current="step"]::before{
  width:9px;
  height:9px;
  top:-23px;
  background:var(--qe-wine);
}

body.qe-auth-page .mm-auth-card h2{
  font:400 clamp(36px,3.4vw,50px)/1.5 var(--qe-display);
}

body.qe-auth-page .mm-auth-card .lead{
  margin:14px 0 34px;
  font-size:14px;
  line-height:1.85;
}

body.qe-auth-page .mm-auth-form{gap:22px}
body.qe-auth-page .mm-auth-form label>span{
  margin-bottom:9px;
  font-size:13px;
  line-height:1.55;
}

body.qe-auth-page .mm-auth-form input{
  height:62px;
  padding:0 18px;
  border:1px solid var(--qe-rule-strong);
  border-radius:0;
  background:var(--qe-paper);
  font-size:16px;
  box-shadow:none;
}

body.qe-auth-page .mm-auth-form input::placeholder{font-size:14px}
body.qe-auth-page .mm-auth-form input:focus{border-color:var(--qe-wine);box-shadow:none}

body.qe-auth-page .mm-auth-form .qe-auth-primary{
  min-height:70px;
  margin-top:4px;
  padding:17px 68px 17px 24px;
  border:0;
  border-radius:0;
  background:var(--qe-wine);
  box-shadow:none;
  font:500 17px/1.5 var(--qe-display);
}

body.qe-auth-page .mm-auth-form .qe-auth-primary:hover,
body.qe-auth-page .mm-auth-form .qe-auth-primary:focus-visible{background:var(--qe-wine-hover);box-shadow:none;transform:none}
body.qe-auth-page .qe-auth-switches{justify-content:flex-start;gap:4px 28px}
body.qe-auth-page .mm-auth-form .mm-auth-secondary{font-size:13px}
body.qe-auth-page .mm-status{font-size:13px}
body.qe-auth-page .mm-fineprint{font-size:13px;line-height:1.75}

@media(min-width:768px) and (max-width:1100px){
  body.qe-account-page .mc-account-overview{
    min-height:0;
    grid-template-columns:1fr;
    grid-template-rows:auto auto 260px;
  }
  body.qe-account-page .mc-account-head{grid-column:1;grid-row:1;padding:72px 48px 28px}
  body.qe-account-page .mc-account-head h1{font-size:42px}
  body.qe-account-page .mc-balance-block{grid-column:1;grid-row:2;padding:16px 48px 72px}
  body.qe-account-page .mc-account-art{display:block;grid-column:1;grid-row:3;min-height:260px;height:260px;max-height:none}
  body.qe-account-page .mc-account-art img{object-position:center 48%}
  body.qe-account-page .mc-rates{grid-template-columns:170px 1fr;padding:40px 0}
  body.qe-account-page .mc-shop{padding:82px 38px 94px}
  body.qe-account-page .mc-purchase-intro{grid-template-columns:minmax(0,1fr) minmax(240px,.72fr);gap:46px}
  body.qe-account-page .mc-purchase-intro>.qe-text-action{grid-column:2}
  body.qe-account-page .mc-pack-card{
    min-height:142px;
    grid-template-columns:110px minmax(210px,1fr) minmax(140px,.8fr) 100px;
    grid-template-areas:"over credit bonus price" "over credit action action";
    gap:12px 24px;
  }
  body.qe-account-page .mc-pack-action{justify-self:start}
  body.qe-account-page .mc-pack-confirmation{grid-template-columns:1fr 320px}

  body.qe-auth-page .qe-product-header{position:relative}
  body.qe-auth-page .mm-auth{grid-template-columns:1fr;min-height:0}
  body.qe-auth-page .mm-auth-visual{min-height:430px}
  body.qe-auth-page .mm-auth-visual::after{inset:0 56% 0 0}
  body.qe-auth-page .mm-auth-visual-content{min-height:430px;padding:54px 42px 38px}
  body.qe-auth-page .qe-auth-story{width:43%}
  body.qe-auth-page .mm-auth-visual h1{font-size:38px}
  body.qe-auth-page .mm-auth-visual-content>small{display:none}
  body.qe-auth-page .mm-auth-panel{padding:72px 68px 90px;place-items:start center}
}

@media(max-width:767px){
  body.qe-account-page .mc-account-overview{
    min-height:0;
    display:grid;
    grid-template-columns:1fr;
    grid-template-rows:auto auto 220px;
  }
  body.qe-account-page .mc-account-head{grid-column:1;grid-row:1;padding:48px 20px 24px}
  body.qe-account-page .mc-account-head h1{
    width:100%;
    max-width:100%;
    min-width:0;
    font-size:clamp(30px,8.5vw,34px);
    line-height:1.55;
    text-wrap:wrap;
    line-break:strict;
    overflow-wrap:anywhere;
  }
  body.qe-account-page .mc-account-head>p:not(.mc-kicker){margin:20px 0 12px;font-size:13px}
  body.qe-account-page .mc-balance-block{
    grid-column:1;
    grid-row:2;
    padding:18px 20px 52px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:34px;
  }
  body.qe-account-page .mc-credit-row{order:1}
  body.qe-account-page .mc-account-ledger-row:first-child{order:2;padding:0}
  body.qe-account-page .mc-balance strong{font-size:clamp(82px,24vw,100px)}
  body.qe-account-page .mc-balance span{font-size:12px}
  body.qe-account-page .mc-account-art{display:block;grid-column:1;grid-row:3;height:220px;min-height:220px}
  body.qe-account-page .mc-account-art img{object-position:center 47%}

  body.qe-account-page .mc-rates{
    width:calc(100% - 40px);
    padding:44px 0;
    display:block;
  }
  body.qe-account-page .mc-rates h2{margin-bottom:26px;font-size:24px}
  body.qe-account-page .mc-rates article{display:block}
  body.qe-account-page .mc-rates dl,
  body.qe-account-page .mc-rates article:last-child dl{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px 24px;
    margin:0;
  }
  body.qe-account-page .mc-rates article:last-child dl{margin-top:20px}
  body.qe-account-page .mc-rates dl>div,
  body.qe-account-page .mc-rates dl>div+div{min-height:54px;display:block}
  body.qe-account-page .mc-rates dt{font-size:13px}
  body.qe-account-page .mc-rates dd{margin-top:6px}
  body.qe-account-page .mc-rates dd strong{font-size:28px}
  body.qe-account-page .mc-rates dd small{font-size:12px}

  body.qe-account-page .mc-shop{padding:66px 20px 78px}
  body.qe-account-page .mc-purchase-intro{padding-bottom:42px;display:block}
  body.qe-account-page .mc-purchase-intro .mc-section-head h2{font-size:clamp(32px,9.5vw,38px);line-height:1.52}
  body.qe-account-page .mc-purchase-intro .mc-section-head>p:last-child{margin-top:18px;font-size:13px}
  body.qe-account-page .mc-purchase-facts{display:grid;margin:28px 0 18px;font-size:13px}
  body.qe-account-page .mc-purchase-intro>.qe-text-action{display:inline-flex;font-size:13px}
  body.qe-account-page .mc-pack-grid{gap:6px;padding:12px 0}
  body.qe-account-page .mc-pack-card{
    min-height:136px;
    padding:20px 4px;
    grid-template-columns:minmax(0,1fr) auto 32px;
    grid-template-areas:
      "over price action"
      "credit price action"
      "bonus price action";
    gap:6px 12px;
  }
  body.qe-account-page .mc-pack-overline{font-size:12px}
  body.qe-account-page .mc-pack-overline small{display:inline;margin:0 0 0 8px;font-size:12px}
  body.qe-account-page .mc-pack-card .mc-pack-credit strong{font-size:clamp(45px,14vw,56px)}
  body.qe-account-page .mc-pack-unit{font-size:12px}
  body.qe-account-page .mc-pack-bonus{font-size:12px}
  body.qe-account-page .mc-pack-card>b{font-size:21px;align-self:center}
  body.qe-account-page .mc-pack-action{font-size:0;justify-self:end}
  body.qe-account-page .mc-pack-action::before{width:22px;height:22px}
  body.qe-account-page .mc-pack-confirmation{margin-top:30px;display:block}
  body.qe-account-page .mc-selected-pack{min-height:0;margin-bottom:16px;grid-template-columns:auto 1fr;gap:4px 12px}
  body.qe-account-page .mc-selected-pack>span,
  body.qe-account-page .mc-selected-pack>strong,
  body.qe-account-page .mc-selected-pack>strong small,
  body.qe-account-page .mc-selected-pack>b{font-size:12px}
  body.qe-account-page .mc-selected-pack>b{grid-column:2;margin:0}
  body.qe-account-page .mc-pack-checkout{min-height:66px;font-size:16px}
  body.qe-account-page .mc-shop-note,
  body.qe-account-page .mc-stripe-note{font-size:12px}
  body.qe-account-page .mc-purchase-support{margin-top:48px;padding-top:36px;display:block}
  body.qe-account-page .mc-purchase-support section+section{margin-top:34px}
  body.qe-account-page .mc-purchase-support p{font-size:13px}
  body.qe-account-page .mc-how,
  body.qe-account-page .mc-account-settings{width:calc(100% - 40px);padding:66px 0}
  body.qe-account-page .mc-how .mc-section-head,
  body.qe-account-page .mc-account-settings .mc-section-head{display:block;margin-bottom:30px}
  body.qe-account-page .mc-how li p{font-size:13px}
  body.qe-account-page .mc-account-actions{gap:18px}

  body.qe-auth-page .qe-product-header{position:relative}
  body.qe-auth-page .mm-auth{grid-template-columns:1fr;min-height:0;overflow:visible}
  body.qe-auth-page .mm-auth-visual{min-height:500px;background:var(--qe-canvas)}
  body.qe-auth-page .mm-auth-visual>img{inset:0 0 auto;height:270px;object-position:center 35%;filter:saturate(.9)}
  body.qe-auth-page .mm-auth-visual::after{content:none}
  body.qe-auth-page .mm-auth-visual-content{min-height:500px;padding:300px 20px 34px;justify-content:flex-start}
  body.qe-auth-page .qe-auth-story{width:100%}
  body.qe-auth-page .mm-auth-visual h1{max-width:none;font-size:clamp(30px,8.5vw,34px);line-height:1.52}
  body.qe-auth-page .mm-auth-visual #auth-context-copy{max-width:none;margin-top:18px;font-size:13px}
  body.qe-auth-page .qe-auth-credit-note{max-width:none;margin-top:20px!important;font-size:13px!important}
  body.qe-auth-page .mm-auth-visual-content>small{display:none}
  body.qe-auth-page .mm-auth-panel{padding:54px 20px 76px;place-items:start stretch}
  body.qe-auth-page .qe-auth-state-rail{margin-bottom:38px;gap:10px}
  body.qe-auth-page .qe-auth-state-rail li{min-height:44px;font-size:12px}
  body.qe-auth-page .mm-auth-card h2{font-size:32px}
  body.qe-auth-page .mm-auth-card .lead{margin:10px 0 26px;font-size:13px}
  body.qe-auth-page .mm-auth-form{gap:18px}
  body.qe-auth-page .mm-auth-form label>span{font-size:13px}
  body.qe-auth-page .mm-auth-form input{height:60px;font-size:16px}
  body.qe-auth-page .mm-auth-form .qe-auth-primary{
    min-height:66px;
    padding:16px 54px 16px 18px;
    font-size:15px;
    white-space:nowrap;
  }
  body.qe-auth-page .qe-auth-switches{gap:4px 22px}
  body.qe-auth-page .mm-auth-form .mm-auth-secondary,
  body.qe-auth-page .mm-status,
  body.qe-auth-page .mm-fineprint{font-size:13px}
}

@media(max-width:370px){
  body.qe-account-page .mc-pack-card{grid-template-columns:minmax(0,1fr) auto 26px;gap-inline:8px}
  body.qe-account-page .mc-pack-card .mc-pack-credit strong{font-size:44px}
  body.qe-account-page .mc-pack-card>b{font-size:19px}
  body.qe-auth-page .qe-auth-state-rail{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(prefers-reduced-motion:reduce){
  body.qe-account-page .mc-pack-card,
  body.qe-auth-page .mm-auth-form button{transition:none}
}

/* Core-flow P1: keep the first action in the first reading viewport. */

@media(min-width:1101px){
  body.qe-auth-page .mm-auth{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  body.qe-auth-page .mm-auth-visual-content{padding:104px clamp(34px,3.5vw,62px) 58px}
  body.qe-auth-page .qe-auth-story{width:min(46%,360px)}
  body.qe-auth-page .mm-auth-visual h1{max-width:100%;font-size:clamp(34px,2.65vw,46px);line-height:1.5}
  body.qe-auth-page .mm-auth-panel{padding:104px clamp(48px,5vw,88px) 72px}
  body.qe-account-page .mc-account{display:flex;flex-direction:column}
  body.qe-account-page .mc-account-overview{
    min-height:512px;
    height:auto;
    grid-template-columns:minmax(0,62%) minmax(360px,38%);
  }
  body.qe-account-page .mc-account-head{
    padding:52px clamp(52px,6vw,88px) 12px;
  }
  body.qe-account-page .mc-account-head h1{
    font-size:clamp(34px,3vw,46px);
    line-height:1.46;
  }
  body.qe-account-page .mc-account-head>p:not(.mc-kicker){margin:14px 0 6px;line-height:1.72}
  body.qe-account-page .mc-balance-block{
    padding:0 clamp(52px,6vw,88px) 46px;
    grid-template-columns:minmax(0,1fr) minmax(210px,.5fr);
  }
  body.qe-account-page .mc-balance strong{font-size:clamp(72px,7vw,102px)}
  body.qe-account-page .mc-wallet-status{margin-top:12px}
  body.qe-account-page .mc-rates{
    order:2;
    min-height:96px;
    padding:22px 0;
    grid-template-columns:180px minmax(0,1fr);
    gap:36px;
    align-items:center;
  }
  body.qe-account-page .mc-rates h2{font-size:22px;padding:0}
  body.qe-account-page .mc-rates dl,
  body.qe-account-page .mc-rates article:last-child dl{
    flex-wrap:nowrap;
    gap:22px clamp(26px,3.4vw,58px);
    margin:0;
  }
  body.qe-account-page .mc-rates article:last-child dl{margin-top:14px}
  body.qe-account-page .mc-rates dl>div,
  body.qe-account-page .mc-rates dl>div+div{min-height:32px;gap:10px;align-items:baseline}
  body.qe-account-page .mc-rates dd strong{font-size:25px}
  body.qe-account-page .mc-shop{
    order:3;
    min-height:0;
    padding:28px var(--qe-gutter) 72px;
  }
  body.qe-account-page .mc-purchase-intro{
    min-height:96px;
    padding:0 0 18px;
    grid-template-columns:minmax(270px,.8fr) minmax(250px,.72fr) auto;
    gap:clamp(28px,4vw,64px);
  }
  body.qe-account-page .mc-purchase-intro .mc-section-head h2{
    font-size:clamp(27px,2.5vw,38px);
    line-height:1.42;
  }
  body.qe-account-page .mc-purchase-intro .mc-section-head>p:last-child{display:none}
  body.qe-account-page .mc-pack-grid{gap:0;padding:0}
  body.qe-account-page .mc-pack-card{
    min-height:76px;
    padding:10px clamp(16px,2vw,30px);
    grid-template-columns:minmax(110px,.48fr) minmax(210px,1fr) minmax(160px,.72fr) minmax(110px,.46fr) minmax(106px,.42fr);
    gap:clamp(16px,2.5vw,40px);
    border-bottom:1px solid var(--qe-rule);
  }
  body.qe-account-page .mc-pack-card:last-child{border-bottom:0}
  body.qe-account-page .mc-pack-card .mc-pack-credit strong{font-size:clamp(44px,4.6vw,66px)}
  body.qe-account-page .mc-pack-card>b{font-size:clamp(22px,1.9vw,29px)}
  body.qe-account-page .mc-pack-confirmation{margin-top:18px;grid-template-columns:minmax(0,1fr) minmax(300px,390px)}
  body.qe-account-page .mc-pack-checkout{min-height:60px}
}

@media(min-width:1101px) and (max-width:1279px){
  body.qe-auth-page .mm-auth{grid-template-columns:1fr;min-height:0}
  body.qe-auth-page .mm-auth-visual{min-height:430px}
  body.qe-auth-page .mm-auth-visual::after{inset:0 56% 0 0}
  body.qe-auth-page .mm-auth-visual-content{min-height:430px;padding:54px 42px 38px}
  body.qe-auth-page .qe-auth-story{width:43%}
  body.qe-auth-page .mm-auth-panel{padding:72px 68px 90px;place-items:start center}
}

@media(min-width:768px) and (max-width:1100px){
  body.qe-account-page .mc-account{display:flex;flex-direction:column}
  body.qe-account-page .mc-account-overview{height:auto;grid-template-rows:auto auto 150px}
  body.qe-account-page .mc-account-head{padding:42px 42px 14px}
  body.qe-account-page .mc-account-head h1{font-size:36px;line-height:1.48}
  body.qe-account-page .mc-account-head>p:not(.mc-kicker){margin:14px 0 8px}
  body.qe-account-page .mc-balance-block{padding:4px 42px 34px}
  body.qe-account-page .mc-balance strong{font-size:78px}
  body.qe-account-page .mc-account-art{height:150px;min-height:150px}
  body.qe-account-page .mc-rates{order:2;padding:24px 0;min-height:108px}
  body.qe-account-page .mc-shop{order:3;padding:32px 38px 72px}
  body.qe-account-page .mc-purchase-intro{padding-bottom:24px}
  body.qe-account-page .mc-purchase-intro .mc-section-head h2{font-size:32px}
  body.qe-account-page .mc-pack-grid{gap:0;padding:0}
  body.qe-account-page .mc-pack-card{min-height:88px;padding:12px 18px;border-bottom:1px solid var(--qe-rule)}
  body.qe-account-page .mc-pack-card:last-child{border-bottom:0}
  body.qe-account-page .mc-pack-card .mc-pack-credit strong{font-size:48px}
  body.qe-account-page .mc-pack-confirmation{margin-top:20px}
}

@media(max-width:767px){
  body.qe-account-page .mc-account{display:flex;flex-direction:column}
  body.qe-account-page .mc-account-overview{
    min-height:0;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto;
  }
  body.qe-account-page .mc-account-art{
    display:none;
  }
  body.qe-account-page .mc-account-head{
    grid-column:1;
    grid-row:1;
    padding:26px 20px 10px;
  }
  body.qe-account-page .mc-account-head h1{font-size:clamp(21px,6.4vw,25px);line-height:1.52}
  body.qe-account-page .mc-account-head h1>span{white-space:nowrap}
  body.qe-account-page .mc-account-head>p:not(.mc-kicker){margin:10px 0 4px;font-size:12px;line-height:1.65}
  body.qe-account-page .mc-account-head .qe-text-action{min-height:44px;font-size:12px}
  body.qe-account-page .mc-balance-block{
    grid-column:1;
    grid-row:2;
    padding:4px 20px 24px;
    gap:12px;
  }
  body.qe-account-page .mc-credit-row{order:2}
  body.qe-account-page .mc-account-ledger-row:first-child{order:1}
  body.qe-account-page .mc-account-ledger-row>p:first-child{margin-bottom:4px;font-size:11px}
  body.qe-account-page .mc-account-identity{font-size:14px}
  body.qe-account-page .mc-balance{gap:10px}
  body.qe-account-page .mc-balance strong{font-size:62px}
  body.qe-account-page .mc-wallet-status{margin-top:8px;font-size:12px;line-height:1.55}
  body.qe-account-page .mc-rates{
    order:2;
    width:calc(100% - 40px);
    min-height:0;
    padding:18px 0;
  }
  body.qe-account-page .mc-rates h2{margin:0 0 12px;font-size:19px}
  body.qe-account-page .mc-rates dl,
  body.qe-account-page .mc-rates article:last-child dl{
    display:flex;
    flex-wrap:wrap;
    gap:8px 20px;
    margin:0;
  }
  body.qe-account-page .mc-rates article:last-child dl{margin-top:8px}
  body.qe-account-page .mc-rates dl>div,
  body.qe-account-page .mc-rates dl>div+div{min-height:28px;display:flex;gap:8px;align-items:baseline}
  body.qe-account-page .mc-rates dt{font-size:11px}
  body.qe-account-page .mc-rates dd{margin:0}
  body.qe-account-page .mc-rates dd strong{font-size:20px}
  body.qe-account-page .mc-rates dd small{font-size:10px}
  body.qe-account-page .mc-shop{order:3;padding:22px 20px 54px}
  body.qe-account-page .mc-purchase-intro{padding-bottom:14px}
  body.qe-account-page .mc-purchase-intro .mc-section-head h2{font-size:24px;line-height:1.42}
  body.qe-account-page .mc-purchase-intro .mc-section-head>p:last-child{display:none}
  body.qe-account-page .mc-purchase-facts,
  body.qe-account-page .mc-purchase-intro>.qe-text-action{display:none}
  body.qe-account-page .mc-pack-grid{gap:0;padding:0}
  body.qe-account-page .mc-pack-card{
    min-height:58px;
    padding:7px 2px;
    grid-template-columns:58px minmax(112px,1fr) 52px 20px;
    grid-template-areas:"over credit price action";
    gap:5px;
    border-bottom:1px solid var(--qe-rule);
  }
  body.qe-account-page .mc-pack-card:last-child{border-bottom:0}
  body.qe-account-page .mc-pack-overline{font-size:10px;letter-spacing:.11em;white-space:nowrap}
  body.qe-account-page .mc-pack-overline small{display:block;margin:2px 0 0;font-size:10px;white-space:nowrap}
  body.qe-account-page .mc-pack-card .mc-pack-credit{
    grid-template-columns:minmax(62px,1fr) 45px;
    column-gap:5px;
  }
  body.qe-account-page .mc-pack-card .mc-pack-credit strong{font-size:30px}
  body.qe-account-page .mc-pack-unit{font-size:9px}
  body.qe-account-page .mc-pack-bonus{display:none}
  body.qe-account-page .mc-pack-card>b{width:52px;font-size:17px;text-align:right}
  body.qe-account-page .mc-pack-action{font-size:0;gap:0}
  body.qe-account-page .mc-pack-action::before{width:18px;height:18px;flex-basis:18px}
  body.qe-account-page .mc-pack-card.is-selected .mc-pack-action::before{border-width:5px}
  body.qe-account-page .mc-pack-confirmation{margin-top:12px}
  body.qe-account-page .mc-selected-pack{display:none}
  body.qe-account-page .mc-pack-checkout{min-height:56px;font-size:15px}
  body.qe-account-page .mc-shop-note{margin-top:10px}

  body.qe-auth-page .mm-auth-visual{min-height:300px}
  body.qe-auth-page .mm-auth-visual>img{height:146px;object-position:center 34%}
  body.qe-auth-page .mm-auth-visual-content{min-height:300px;padding:164px 20px 18px}
  body.qe-auth-page .mm-auth-visual h1{font-size:26px;line-height:1.4}
  body.qe-auth-page .mm-auth-visual #auth-context-copy{margin-top:8px;font-size:12px;line-height:1.65}
  body.qe-auth-page .qe-auth-credit-note{margin-top:8px!important;font-size:12px!important;line-height:1.55!important}
  body.qe-auth-page .mm-auth-panel{padding:20px 20px 50px}
  body.qe-auth-page .qe-auth-state-rail{margin-bottom:14px;padding-top:14px;gap:8px}
  body.qe-auth-page .qe-auth-state-rail li{min-height:36px;padding:5px 0;font-size:11px}
  body.qe-auth-page .qe-auth-state-rail li::before{top:-17px}
  body.qe-auth-page .qe-auth-state-rail li[aria-current="step"]::before{top:-19px}
  body.qe-auth-page .mm-auth-card h2{font-size:26px;line-height:1.35}
  body.qe-auth-page .mm-auth-card .lead{margin:4px 0 12px;font-size:12px;line-height:1.6}
  body.qe-auth-page .mm-auth-form{gap:10px}
  body.qe-auth-page .mm-auth-form label>span{margin-bottom:4px;font-size:12px}
  body.qe-auth-page .mm-auth-form input{height:48px}
  body.qe-auth-page .mm-auth-form .qe-auth-primary{min-height:52px;margin-top:0;padding:12px 48px 12px 16px;font-size:14px}
  body.qe-auth-page .qe-auth-switches{margin-top:0}
}

/* Purchase follows the wallet immediately; usage detail remains below it. */
body.qe-account-page .mc-account{display:flex;flex-direction:column}
body.qe-account-page .mc-account-overview{order:0}
body.qe-account-page .mc-shop{order:1}
body.qe-account-page .mc-rates{order:2}
body.qe-account-page :is(.mc-how,.mc-account-settings){order:3}

/* Auth hero: keep the source photograph intact and place the editorial copy
   on the photograph.  Tablet is still a two-column flow; only phones stack. */
body.qe-auth-page .mm-auth{
  min-height:calc(100svh - 112px);
  grid-template-columns:min(50%,calc((100svh - 112px)*.75)) minmax(0,1fr);
  align-items:stretch;
}
body.qe-auth-page .mm-auth-visual{
  min-height:calc(100svh - 112px);
  background:#d7d0cb;
}
body.qe-auth-page .mm-auth-visual>img{
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 38%;
  filter:saturate(.9) contrast(.98);
}
body.qe-auth-page .mm-auth-visual::after{
  content:"";
  inset:0;
  background:linear-gradient(180deg,rgba(17,13,12,.03) 25%,rgba(17,13,12,.18) 55%,rgba(17,13,12,.86) 100%);
}
body.qe-auth-page .mm-auth-visual-content{
  min-height:calc(100svh - 112px);
  padding:52px clamp(34px,4vw,64px);
  justify-content:flex-end;
}
body.qe-auth-page .qe-auth-story{
  width:min(100%,440px);
  padding:20px 22px;
  background:rgba(22,17,15,.32);
  backdrop-filter:blur(3px);
}
body.qe-auth-page .mm-auth-visual h1{
  max-width:100%;
  color:#fff;
  font-size:clamp(30px,2vw,34px);
  line-height:1.42;
  overflow-wrap:normal;
  text-shadow:0 2px 18px rgba(0,0,0,.42);
}
body.qe-auth-page .mm-auth-visual h1 em{color:#f7d8df}
body.qe-auth-page .mm-auth-visual #auth-context-copy,
body.qe-auth-page .qe-auth-credit-note,
body.qe-auth-page .mm-auth-visual-content>small{
  max-width:100%;
  color:rgba(255,255,255,.92);
  text-shadow:0 1px 8px rgba(0,0,0,.5);
}
body.qe-auth-page .mm-auth-visual-content>small{display:none}
body.qe-auth-page .qe-auth-credit-note{color:#ffdbe2!important}
body.qe-auth-page .mm-auth-panel{
  min-height:calc(100svh - 112px);
  padding:64px clamp(42px,5vw,88px) 72px;
}

@media(min-width:768px) and (max-width:1279px){
  body.qe-auth-page .mm-auth{
    min-height:calc(100svh - 76px);
    grid-template-columns:minmax(320px,44%) minmax(0,56%);
  }
  body.qe-auth-page .mm-auth-visual,
  body.qe-auth-page .mm-auth-visual-content,
  body.qe-auth-page .mm-auth-panel{min-height:calc(100svh - 76px)}
  body.qe-auth-page .mm-auth-visual-content{padding:34px 26px}
  body.qe-auth-page .qe-auth-story{width:100%;padding:20px}
  body.qe-auth-page .mm-auth-visual h1{font-size:clamp(27px,3.1vw,38px);line-height:1.44}
  body.qe-auth-page .mm-auth-visual #auth-context-copy{margin-top:14px;font-size:12px;line-height:1.7}
  body.qe-auth-page .qe-auth-credit-note{margin-top:14px!important;font-size:12px!important;line-height:1.65!important}
  body.qe-auth-page .mm-auth-visual-content>small{display:none}
  body.qe-auth-page .mm-auth-panel{padding:48px clamp(30px,4vw,58px) 60px;place-items:center}
  body.qe-auth-page .mm-auth-card{width:min(100%,560px)}
}

@media(max-width:767px){
  body.qe-auth-page .mm-auth{min-height:0;grid-template-columns:1fr;overflow:visible}
  body.qe-auth-page .mm-auth-visual{
    order:2;
    display:none;
  }
  body.qe-auth-page .mm-auth-visual>img{inset:0;width:100%;height:100%;object-fit:cover;object-position:center 34%}
  body.qe-auth-page .mm-auth-visual::after{
    content:"";
    background:linear-gradient(180deg,rgba(17,13,12,0) 30%,rgba(17,13,12,.16) 53%,rgba(17,13,12,.88) 100%);
  }
  body.qe-auth-page .mm-auth-visual-content{
    min-height:100%;
    padding:20px;
    justify-content:flex-end;
  }
  body.qe-auth-page .qe-auth-story{width:100%;padding:16px 18px;background:rgba(22,17,15,.42)}
  body.qe-auth-page .mm-auth-visual h1{max-width:100%;font-size:clamp(27px,8vw,32px);line-height:1.42}
  body.qe-auth-page .mm-auth-visual #auth-context-copy{margin-top:10px;font-size:12px;line-height:1.6}
  body.qe-auth-page .qe-auth-credit-note{margin-top:10px!important;font-size:11px!important;line-height:1.55!important}
  body.qe-auth-page .mm-auth-visual-content>small{display:none}
  body.qe-auth-page .mm-auth-panel{order:1;min-height:0;padding:24px 20px 48px;place-items:start stretch}
}

@media(min-width:1101px){
  body.qe-account-page .mc-shop{padding-top:18px}
  body.qe-account-page .mc-purchase-intro{
    min-height:140px;
    height:auto;
    padding:10px 0 18px;
    align-items:center;
  }
  body.qe-account-page .mc-purchase-intro .mc-section-head h2{font-size:30px;line-height:1.34}
  body.qe-account-page .mc-purchase-facts{grid-auto-flow:column;gap:20px}
  body.qe-account-page .mc-pack-card{min-height:64px;height:64px}
  body.qe-account-page .mc-pack-card .mc-pack-credit strong{font-size:50px}
  body.qe-account-page .mc-pack-confirmation{margin-top:12px}
  body.qe-account-page .mc-pack-checkout{height:66px;min-height:66px;padding-block:12px}
}

@media(min-width:768px) and (max-width:1100px){
  body.qe-account-page .mc-account-overview{grid-template-rows:auto auto 100px}
  body.qe-account-page .mc-account-head{padding-top:30px}
  body.qe-account-page .mc-balance-block{padding-bottom:24px}
  body.qe-account-page .mc-account-art{height:100px;min-height:100px}
  body.qe-account-page .mc-shop{padding-top:20px}
  body.qe-account-page .mc-purchase-intro{
    min-height:136px;
    height:auto;
    padding:8px 0 18px;
    grid-template-columns:minmax(0,1fr) minmax(220px,.72fr);
    align-items:center;
  }
  body.qe-account-page .mc-purchase-intro .mc-section-head h2{font-size:28px;line-height:1.4}
  body.qe-account-page .mc-purchase-intro .mc-section-head>p:last-child{display:none}
  body.qe-account-page .mc-purchase-intro>.qe-text-action{display:none}
  body.qe-account-page .mc-pack-card{min-height:64px;height:64px;padding:8px 18px}
  body.qe-account-page .mc-pack-card .mc-pack-credit strong{font-size:40px}
  body.qe-account-page .mc-pack-confirmation{margin-top:12px}
}

@media(max-width:767px){
  body.qe-account-page .mc-wallet-status{display:none}
  body.qe-account-page .mc-balance strong{font-size:54px}
  body.qe-account-page .mc-balance-block{padding-bottom:16px}
  body.qe-account-page .mc-shop{padding-top:14px}
  body.qe-account-page .mc-purchase-intro{
    min-height:108px;
    height:auto;
    padding:8px 0 16px;
    display:flex;
    align-items:center;
  }
  body.qe-account-page .mc-purchase-intro .mc-section-head h2{font-size:22px;line-height:1.38}
}
