/* The tutor on its own page, inside the iPhone and Mac apps' web view.
   The web app on a phone or iPad (body.tutor-web-phone, set by app.js at
   1024 px and under) uses these same rules. The iPhone's own layout is in
   tutor-phone.css. */
html.tutor-embed-root,body:is(.tutor-embed,.tutor-web-phone){margin:0;padding:0;height:100%;background:#fbfaf7;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",Inter,"Segoe UI",sans-serif;-webkit-text-size-adjust:100%;}
body:is(.tutor-embed,.tutor-web-phone){--u:1px;overflow:hidden;}
body#elthosApp:is(.tutor-embed,.tutor-web-phone) .tutor-shell{display:flex !important;height:100vh !important;height:100dvh !important;min-height:0 !important;padding:10px 12px calc(10px + env(safe-area-inset-bottom)) !important;box-sizing:border-box;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-header{margin:0 0 10px;padding-top:env(safe-area-inset-top);}
body:is(.tutor-embed,.tutor-web-phone) .tutor-header h2{display:none;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-status{flex:1;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-body{gap:12px;}
body:is(.tutor-embed,.tutor-web-phone) .tutor-side-panel{border-radius:14px;}
@media (max-width:1100px){
  body:is(.tutor-embed,.tutor-web-phone) .tutor-body{grid-template-rows:minmax(0,1.25fr) minmax(0,1fr);}
  body:is(.tutor-embed,.tutor-web-phone) .tutor-side-panel{min-height:0;}
  body:is(.tutor-embed,.tutor-web-phone) .tutor-board-wrap{min-height:0;}
}
/* Mac app: a native window, a little tighter than the web page. */
@media (pointer:fine){
  body:is(.tutor-embed,.tutor-web-phone) .tutor-composer{border-radius:20px;padding:4px;}
  body:is(.tutor-embed,.tutor-web-phone) .tutor-file-button,body:is(.tutor-embed,.tutor-web-phone) .tutor-voice,body:is(.tutor-embed,.tutor-web-phone) .tutor-send{width:32px;height:32px;}
  body:is(.tutor-embed,.tutor-web-phone) .tutor-file-button svg,body:is(.tutor-embed,.tutor-web-phone) .tutor-voice svg,body:is(.tutor-embed,.tutor-web-phone) .tutor-send svg{width:18px;height:18px;}
  body:is(.tutor-embed,.tutor-web-phone) .tutor-form textarea{height:32px;min-height:32px;padding:6px 6px;font-size:14px;}
  body:is(.tutor-embed,.tutor-web-phone) .tutor-compose-row > .tutor-voice{width:42px;height:42px;}
}
/* iPhone: thumb-sized buttons, 16 pt text (no zoom); the orb's phone size is in tutor.css. */
@media (pointer:coarse){
  body:is(.tutor-embed,.tutor-web-phone) .tutor-form{padding:6px 8px 8px;}
  body:is(.tutor-embed,.tutor-web-phone) .tutor-composer{border-radius:26px;padding:4px;}
  body:is(.tutor-embed,.tutor-web-phone) .tutor-form textarea{font-size:16px;height:40px;min-height:40px;padding:10px 6px;}
  body:is(.tutor-embed,.tutor-web-phone) .tutor-file-button,body:is(.tutor-embed,.tutor-web-phone) .tutor-voice,body:is(.tutor-embed,.tutor-web-phone) .tutor-send{width:40px;height:40px;}
  body:is(.tutor-embed,.tutor-web-phone) .tutor-compose-row > .tutor-voice{width:50px;height:50px;}
}

