/* Easy English - mobile UX layer (loaded after the app CSS) */
html{-webkit-text-size-adjust:100%}
*{-webkit-tap-highlight-color:transparent}
@media (max-width:639.98px){
  /* inputs: 16px stops iPhone auto-zoom, 44px = easy to tap */
  input[type=text],input:not([type]),input[type=email],input[type=password],input[type=number],select,textarea{font-size:16px!important}
  /* ---- practice player ---- */
  html.ee-player .sticky.top-0.z-30>div{height:56px!important;padding-left:12px!important;padding-right:12px!important;gap:10px!important}
  html.ee-player .sticky.top-0.z-30 .uppercase.tracking-wide{font-size:.65rem!important;line-height:1.1}
  html.ee-player .sticky.top-0.z-30 .display.text-lg{font-size:1.02rem!important}
  html.ee-player .sticky.top-0.z-30 .ml-auto{display:none!important}
  html.ee-player .max-w-\[1500px\].py-6{padding:12px 10px 0!important;gap:12px!important}
  html.ee-player .max-w-\[1500px\].py-5{padding:12px!important;gap:10px 16px!important}
  html.ee-player .rounded-card.p-5{padding:14px!important}
  html.ee-player .rounded-card.p-5>.mb-4:first-child{margin-bottom:10px!important}
  html.ee-player .ee-html.leading-\[1\.85\]{line-height:1.6!important}
  html.ee-player .ee-html.mb-4.bg-bg-2{padding:12px!important;font-size:.9rem!important}
  /* audio card stays on screen while answering */
  html.ee-player .ee-audio-sticky{position:sticky!important;top:60px;z-index:20}
  html.ee-player .ee-audio-sticky .rounded-card{box-shadow:0 8px 24px rgba(29,27,46,.14)!important}
  html.ee-player .ee-audio-sticky .display.text-lg{font-size:.95rem!important;margin-bottom:8px!important}
  html.ee-player audio{width:100%!important;height:44px}
  /* gap-fill answers: one clear row each */
  html.ee-player .inline-flex.items-baseline.align-baseline{display:flex!important;align-items:center!important;width:100%;gap:8px!important;margin:6px 0 10px!important}
  html.ee-player .inline-flex.items-baseline.align-baseline>span:first-child{flex:0 0 26px;height:26px;border-radius:999px;display:grid;place-items:center;background:var(--accent,#f25c5c);color:#fff!important;font-size:.75rem!important}
  html.ee-player .inline-flex.items-baseline.align-baseline>input,
  html.ee-player .inline-flex.items-baseline.align-baseline>select{flex:1 1 auto;width:auto!important;min-width:0;max-width:none!important;min-height:46px!important;padding:8px 12px!important;border-radius:12px!important}
  html.ee-player .inline-flex.items-baseline.align-baseline .text-good,
  html.ee-player .inline-flex.items-baseline.align-baseline .text-warn{flex:0 0 auto}
  html.ee-player label.inline-grid input[type=radio],html.ee-player label.inline-grid input[type=checkbox]{width:24px!important;height:24px!important}
  html.ee-player label.inline-grid{min-width:40px;min-height:40px}
  /* bottom action bar */
  html.ee-player body{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  #ee-bar{position:fixed;left:0;right:0;bottom:0;z-index:9990;display:flex;align-items:center;gap:12px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid rgba(29,27,46,.1);box-shadow:0 -6px 20px rgba(29,27,46,.08);font-family:inherit}
  #ee-bar .ee-info{flex:1;min-width:0}
  #ee-bar .ee-count{font:700 .95rem/1.2 inherit;color:#1d1b2e}
  #ee-bar .ee-time{font:600 .78rem/1.2 inherit;color:#6b6880;margin-left:8px;font-variant-numeric:tabular-nums}
  #ee-bar .ee-track{height:6px;border-radius:9px;background:rgba(29,27,46,.08);margin-top:6px;overflow:hidden}
  #ee-bar .ee-fill{height:100%;width:0;background:var(--accent,#f25c5c);border-radius:9px;transition:width .3s}
  #ee-bar button{flex:0 0 auto;border:0;border-radius:999px;padding:13px 22px;font:700 1rem/1 inherit;background:var(--accent,#f25c5c);color:var(--accent-ink,#fff)}
  #ee-bar button:active{transform:scale(.97)}
  #ee-bar button[disabled]{opacity:.5}
  /* student chip: hidden while practising, compact elsewhere */
  html.ee-player .ee-chip{display:none!important}
  .ee-chip{left:12px!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;padding:0!important;gap:0!important;overflow:hidden}
  .ee-chip>span{width:40px;height:40px;display:grid;place-items:center;font-size:0}
  .ee-chip>span::before{content:attr(data-i);font-size:15px;text-transform:uppercase}
  .ee-chip>a{display:none}
  .ee-chip.open{padding:0 14px 0 0!important;gap:12px!important}
  .ee-chip.open>a{display:inline;padding:12px 0}
}
@media (min-width:640px){#ee-bar{display:none!important}}
