/* ChatGPT-style phone layout. Phone media query only; desktop is unchanged. */
.mtop,.mdr{display:none}
@media(min-width:0px){
  .mnav,.hfab{display:none!important}
  body.app{padding:64px 0 0}
  body.app .nav{display:none}
  body.mdr-open{overflow:hidden}
  /* top bar */
  .mtop{display:flex;align-items:center;justify-content:space-between;gap:10px;position:fixed;top:0;left:0;right:0;z-index:55;height:60px;padding:0 14px;background:var(--bg,#0a0a0d)}
  .mmenu{width:44px;height:44px;border-radius:50%;border:0;background:#26262c;color:var(--ink);display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
  .mmenu svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  .mtitle{flex:1;text-align:center;font-weight:700;font-size:18px;color:var(--ink);text-decoration:none;white-space:nowrap}
  .mlogin{flex:none;max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;background:#f1f1f3;color:#111;font:inherit;font-size:15px;font-weight:600;border-radius:999px;padding:11px 18px;cursor:pointer}
  /* start screen: one centered ask */
  body.app #home .wrap{padding-left:16px;padding-right:16px}
  body[data-m=study] #home .wrap{min-height:calc(100dvh - 76px);display:flex;flex-direction:column;justify-content:center;padding-bottom:40px}
  body.app .hero{padding:0;text-align:center}
  body.app .hero h1{font-size:13px;font-weight:600;color:var(--mute);letter-spacing:.02em;margin:0}
  body.app .hero h1 .grad{color:inherit;background:none;-webkit-text-fill-color:currentColor}
  body.app .hero .altline{display:none}
  body[data-m=study] .greet{display:block;text-align:center;font-size:27px;line-height:1.2;margin:10px 0 18px}
  body.app .hist{display:none!important}
  body.app #tabs{margin-bottom:10px}
  body.app .tool{background:transparent;border:0;box-shadow:none;padding:0;margin-top:0}
  body.app #text{background:#1d1d22;border:1px solid var(--line);border-radius:22px;padding:16px;min-height:120px}
  body.app .drop{border-radius:22px;background:#1d1d22}
  /* other screens */
  body:not([data-m=study]) .greet{display:none}
  body[data-m=guide] .hero,body[data-m=about] .hero,body[data-m=guide] #tool,body[data-m=about] #tool,body[data-m=guide] #resume,body[data-m=about] #resume{display:none}
  body[data-m=guide] #guide,body[data-m=about] #about-seo,body[data-m=about] #foot{display:block}
  body[data-m=price] #pricing{margin-top:4px}
  /* lesson page without the bottom bar */
  #lesson .rail{bottom:0}
  #lesson .shell{padding-bottom:110px}
  /* slide-out menu */
  .mdr:not([hidden]){display:flex;position:fixed;inset:0;z-index:80}
  .mdrback{flex:1;background:#0009;order:2}
  .mdrpanel{order:1;width:min(330px,86vw);background:#212126;display:flex;flex-direction:column;padding:16px 12px 14px;min-height:0;overflow-y:auto}
  .mdrlist{flex:none}
  .mdritem{display:flex;align-items:center;gap:16px;width:100%;border:0;background:transparent;color:var(--ink);font:inherit;font-size:18px;font-weight:600;text-align:left;padding:13px 10px;border-radius:12px;cursor:pointer}
  .mdritem:active{background:#2c2c33}
  .mdritem svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
  .mdrsub{padding:0 0 6px 52px}
  .mdrsubitem{display:block;width:100%;border:0;background:transparent;color:var(--mute);font:inherit;font-size:16px;text-align:left;padding:9px 6px;text-decoration:none;cursor:pointer}
  .mdrhist{flex:1;min-height:180px;overflow:auto;margin-top:8px;border-top:1px solid #34343b;display:flex;flex-direction:column}
  .mdrhist .hside{margin:0;border:0;padding-top:8px;flex:1;min-height:0}
  .mdrhist .hact{display:block}
  .mdrhist .hrow2:hover,.mdrhist .hrow2.on{background:#2c2c33}
  .mdrhist .hsearch{background:#1a1a1f}
  .mdrfoot{flex:none;padding-top:10px}
  .mdrnew{display:flex;align-items:center;gap:10px;border:0;background:#3b6cf6;color:#fff;font:inherit;font-size:18px;font-weight:700;border-radius:999px;padding:14px 24px;cursor:pointer}
  .mdrnew svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
}
