/* MATCHSIK v32.11 — mobile plan/quote/student Kakao production polish */
:root{--v3211-navy:#071b36;--v3211-blue:#1769ff;--v3211-orange:#ff6f2c;--v3211-kakao:#FEE500;--v3211-kakao-ink:#191919}

/* STEP 3 — keep discount and selected state fully inside the plan card. */
body.apply-standalone[data-v325-phase='plan'] #appPage .billing-mode-card{overflow:hidden!important}
body.apply-standalone[data-v325-phase='plan'] #appPage .billing-mode-card .mode-rate{min-width:0!important;max-width:100%!important}
body.apply-standalone[data-v325-phase='plan'] #appPage .discount-preview-badge.v3210-discount-pill{position:static!important;width:auto!important;max-width:100%!important;margin:4px 0 0!important;padding:4px 9px!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;font-size:9px!important;line-height:1!important}

/* STEP 7 — prevent dates, prices and benefit copy from escaping their cards. */
body.apply-standalone #appPage .quote-card,
body.apply-standalone #appPage .quote-grid,
body.apply-standalone #appPage .quote-breakdown,
body.apply-standalone #appPage .quote-total{min-width:0!important;max-width:100%!important}
body.apply-standalone #appPage .quote-grid>div,
body.apply-standalone #appPage .quote-breakdown>div{min-width:0!important;max-width:100%!important;overflow:hidden!important}
body.apply-standalone #appPage .quote-grid b,
body.apply-standalone #appPage .quote-grid strong,
body.apply-standalone #appPage .quote-breakdown b,
body.apply-standalone #appPage .quote-breakdown strong{display:block!important;max-width:100%!important;white-space:normal!important;word-break:keep-all!important;overflow-wrap:break-word!important}
body.apply-standalone #appPage .quote-total{overflow:hidden!important}
body.apply-standalone #appPage .quote-total strong,
body.apply-standalone #appPage .final-fee strong{display:block!important;max-width:100%!important;white-space:nowrap!important;line-height:1!important;font-variant-numeric:tabular-nums!important}

/* Student dashboard — unmistakable KakaoTalk treatment. */
body[data-portal-page='student'] .m2817-student-kakao{border-color:#ead600!important;background:linear-gradient(145deg,#fffef3,#fff)!important}
body[data-portal-page='student'] .m2817-student-kakao .eyebrow{color:#7a6800!important}
body[data-portal-page='student'] .m2817-student-kakao [data-student-kakao-state]{background:#fff7b8!important;color:#5e5100!important;border:1px solid #eadb4b!important}
body[data-portal-page='student'] [data-student-kakao-connect],
body[data-portal-page='student'] [data-student-kakao-connect-now]{background:var(--v3211-kakao)!important;color:var(--v3211-kakao-ink)!important;border:1px solid #ead600!important;box-shadow:0 10px 24px rgba(80,68,0,.14)!important}
body[data-portal-page='student'] [data-student-kakao-connect]::before,
body[data-portal-page='student'] [data-student-kakao-connect-now]::before{content:""!important;width:20px!important;height:18px!important;display:inline-block!important;flex:0 0 20px!important;background:url('/icons/kakao-talk.svg') center/contain no-repeat!important}
body[data-portal-page='student'] [data-student-kakao-connect]:hover,
body[data-portal-page='student'] [data-student-kakao-connect-now]:hover{filter:brightness(.985)!important;transform:translateY(-1px)}

@media(max-width:760px){
  /* Target-round navigation must never cover the round cards, including the brief frame before phase sync completes. */
  body.apply-standalone[data-v325-phase='target'] #appPage .smart-nav,
  body.apply-standalone:has(#stepContent .smart-round-picker) #appPage .smart-nav{
    position:static!important;inset:auto!important;left:auto!important;right:auto!important;bottom:auto!important;top:auto!important;transform:none!important;
    width:100%!important;margin:10px 0 0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;
  }
  body.apply-standalone[data-v325-phase='plan'] #appPage .billing-mode-card{grid-template-columns:42px minmax(0,1fr) minmax(82px,auto)!important;column-gap:9px!important;padding:12px 11px!important}
  body.apply-standalone[data-v325-phase='plan'] #appPage .mode-rate{width:100%!important;justify-items:end!important;overflow:visible!important}
  body.apply-standalone[data-v325-phase='plan'] #appPage .discount-preview-badge.v3210-discount-pill{font-size:8px!important;padding:4px 8px!important}
  body.apply-standalone #appPage .quote-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.apply-standalone #appPage .quote-grid>div{padding:12px!important;min-height:92px!important}
  body.apply-standalone #appPage .quote-grid b,body.apply-standalone #appPage .quote-grid strong{font-size:12px!important;line-height:1.45!important;letter-spacing:-.035em!important}
  body.apply-standalone #appPage .quote-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.apply-standalone #appPage .quote-breakdown>div{padding:12px!important}
  body.apply-standalone #appPage .quote-total{grid-template-columns:minmax(0,1fr) minmax(128px,.9fr)!important;gap:10px!important;padding:16px!important;margin-bottom:calc(82px + env(safe-area-inset-bottom))!important}
  body.apply-standalone #appPage .quote-total strong,body.apply-standalone #appPage .final-fee strong{font-size:clamp(27px,8.5vw,38px)!important;text-align:right!important;letter-spacing:-.05em!important}
  body[data-portal-page='student'] .m2817-student-kakao [data-student-kakao-connect]{width:100%!important;min-height:50px!important;font-weight:900!important}
}

@media(max-width:380px){
  body.apply-standalone[data-v325-phase='plan'] #appPage .billing-mode-card{grid-template-columns:38px minmax(0,1fr) 78px!important;padding:11px 9px!important;column-gap:7px!important}
  body.apply-standalone[data-v325-phase='plan'] #appPage .discount-preview-badge.v3210-discount-pill{font-size:7.5px!important;padding:3px 6px!important}
  body.apply-standalone #appPage .quote-total{grid-template-columns:1fr!important}
  body.apply-standalone #appPage .quote-total strong,body.apply-standalone #appPage .final-fee strong{text-align:left!important;font-size:32px!important}
}
