/* AIrene (assets/guide/algo_guide.js + algo_guide.css) on a phone, 360-430 px: only the guide's own classes
   (.ag-*), only on narrow screens, so the desktop guides are untouched.
   * the bubble spans the screen (12 px margins); the engine places it above or below the target on narrow
     screens ("stacked" layout: no side, so no arrow) and puts the wisp on its edge;
   * the menu choices, Next / Back and the header icons get touch-sized targets;
   * Explain mode: the bar wraps on two lines, sits right of the wisp (which rests at its left), above the
     safe area; the parts list opens above it. */
@media (max-width: 600px) {
    .ag-bubble { width: calc(100vw - 24px); padding: 12px 14px 12px; border-radius: 16px; }
    .ag-bubble:not(.ag-side-right):not(.ag-side-left)::before { display: none; }
    .ag-text { font-size: .94rem; line-height: 1.55; }
    .ag-bh { align-items: center; }
    .ag-icon { min-width: 36px; min-height: 36px; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; }
    .ag-bf { margin-top: 10px; gap: 8px; }
    .ag-btn { min-height: 40px; padding: 6px 14px; font-size: .84rem; border-radius: 10px; }
    .ag-choice { min-height: 56px; padding: 10px 12px; }
    .ag-choice b { font-size: .92rem; }
    .ag-choice small { font-size: .76rem; }

    .ag-ex-bar { left: 70px; right: 8px; bottom: calc(10px + env(safe-area-inset-bottom)); transform: none; max-width: none;
                 flex-wrap: wrap; gap: 6px 8px; padding: 8px 10px; }
    .ag-ex-mark { display: none; }
    .ag-ex-txt { flex: 1 1 100%; white-space: normal; font-size: .8rem; line-height: 1.35; }
    .ag-ex-bar .ag-btn { flex: 1 1 auto; min-height: 40px; padding: 4px 10px; }
    .ag-ex-list { left: 8px; right: 8px; width: auto; transform: none; bottom: calc(118px + env(safe-area-inset-bottom));
                  max-height: calc(100vh - 150px); }
    .ag-ex-item { min-height: 42px; font-size: .9rem; padding: 8px 10px; }
    .ag-ex-g { margin: 10px 6px 4px; }
    .ag-hs-l { font-size: .7rem; max-width: calc(100% - 12px); }
}
