/* v5.90 – Phones: read-and-small-edits mode for the editor (assets/mobile.js). Only below 760 px. */
.mob-controls, .mob-ai-close { display: none; }
@media (max-width: 760px) {
  body.oce-phone .mob-controls { display: inline-flex; gap: 6px; margin-right: auto; order: -1; }
  body.oce-phone .code-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
  body.oce-phone .code-toolbar #active-file { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.oce-phone .mob-controls button { width: auto; min-height: 30px; padding: 0 10px; font-size: 12.5px; }
  body.oce-phone #mob-files.active { border-color: var(--accent); color: var(--accent); }

  /* the file list folds away; "Files" shows it above the code */
  body.oce-phone .workspace { grid-template-columns: minmax(0, 1fr) !important; }
  body.oce-phone:not(.oce-files-open) .files-panel { display: none; }
  body.oce-phone.oce-files-open .files-panel { max-height: 46vh; overflow: auto; }

  /* the code fills the screen down to the tab bar */
  body.oce-phone .editor-stack { height: var(--oce-phone-code-h, 62vh); min-height: 240px; flex: none; }
  body.oce-phone #editor-stack .monaco-editor-host { height: 100%; }

  /* ✦ AI opens as a sheet above the tab bar */
  body.oce-phone .ai-dock:not(.hidden) {
    position: fixed; left: 8px; right: 8px; bottom: 72px; z-index: 160; max-height: 58vh; overflow: auto;
    border-radius: 14px; box-shadow: 0 -18px 50px -20px rgba(0, 0, 0, 0.7);
  }
  body.oce-phone.mob-ai-folded .ai-dock { display: none; }
  body.oce-phone .mob-ai-close { display: grid; place-items: center; position: sticky; top: 0; margin: 0 0 -32px auto; width: 32px; height: 32px; min-height: 0; z-index: 10; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 18px; }
  /* while typing, the tab bar would sit on top of the keyboard – hide it */
  body.oce-phone.oce-phone-editing .sidebar { display: none; }
}
