/* Phone layout (28 Nov 2026). Every rule is scoped to html[data-amx-phone], set by site-settings.js only when the
   window is 768 px wide or less (or a landscape touch screen up to 500 px high). Desktop and laptop never match. */
html[data-amx-phone] .sf-head { position: relative !important; top: auto !important; }
html[data-amx-phone] .sf-head-in { flex-wrap: wrap; gap: 6px 10px; min-height: 0; padding: 6px 0; }
html[data-amx-phone] .sf-brand-text { display: none; }
html[data-amx-phone] .sf-platform-switch { flex: 1 1 0; min-width: 0; }
html[data-amx-phone] .sf-platform-switch select { min-height: 44px; text-overflow: ellipsis; }
html[data-amx-phone] .sf-menu-btn { display: inline-flex !important; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; font-size: 0 !important; line-height: 0; overflow: hidden; }
html[data-amx-phone] .sf-menu-btn::before { content: ""; width: 20px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
html[data-amx-phone] .sf-nav, html[data-amx-phone] .sf-tools, html[data-amx-phone] .sf-head-slot, html[data-amx-phone] .sf-head [data-pa-start] { display: none !important; }
html[data-amx-phone] .sf-head[data-sf-menu-open] :is(.sf-nav, .sf-tools, .sf-head-slot, [data-pa-start]) { display: flex !important; flex: 1 1 100%; position: static !important; }
html[data-amx-phone] .sf-head[data-sf-menu-open] .sf-nav { flex-direction: column; align-items: stretch; margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
html[data-amx-phone] .sf-head[data-sf-menu-open] .sf-nav :is(a, .sf-nav-off) { padding: 12px; min-height: 44px; box-sizing: border-box; }
html[data-amx-phone] .sf-head[data-sf-menu-open] .sf-tools { flex-wrap: wrap; gap: 8px; }
html[data-amx-phone] .sf-head[data-sf-menu-open] .sf-tools :is(button, .am-btn, .ct-btn) { min-height: 44px; }
html[data-amx-phone] .sf-zoom { display: none !important; }
/* nothing sticks over the page */
html[data-amx-phone] [data-sf-pagebar], html[data-amx-phone] .sf-trail { position: static !important; }
/* panels the visitor opens fill the screen and scroll inside */
html[data-amx-phone] .am-panel { z-index: 2147483645 !important; top: 8px !important; left: 8px !important; right: 8px !important; width: auto !important; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); overflow: auto; }
html[data-amx-phone] .st-panel { top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: auto !important; height: auto !important; max-height: none !important; }
/* buttons wrap their text and stay inside the screen */
html[data-amx-phone] :is(button, .ec-btn, .ec-copy, [class*="btn"]) { max-width: 100%; white-space: normal; overflow-wrap: break-word; box-sizing: border-box; }
html[data-amx-phone] :is(.es, .ec-act, .ec-cmd-h) { flex-wrap: wrap; }
html[data-amx-phone] :is(pre, table, img, video, canvas, iframe) { max-width: 100%; }
html[data-amx-phone] pre { overflow-x: auto; }
html[data-amx-phone] body { overflow-x: hidden; }
/* notes under the header, in the page flow */
.amx-phone-note, .amx-phone-cloud { display: none; }
html[data-amx-phone] :is(.amx-phone-note, .amx-phone-cloud) { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 8px 12px; box-sizing: border-box; font: 400 14px/1.4 var(--t-font, system-ui); background: var(--t-surface-2, #f3f3f3); color: var(--t-text-2, #333); border-bottom: 1px solid var(--t-border-soft, #ddd); }
html[data-amx-phone] .amx-phone-cloud { font-weight: 600; background: var(--t-cyan-soft, #eef6ff); }
.amx-phone-note span, .amx-phone-cloud span { flex: 1 1 auto; min-width: 0; }
.amx-phone-note button { flex: none; width: 36px; height: 36px; margin: -6px -8px -6px 0; padding: 0; border: 0; background: transparent; color: inherit; font: 400 22px/1 system-ui, sans-serif; cursor: pointer; }
/* cloud pages: the emulators need a computer */
html[data-amx-phone][data-platform-id^="cloud-automation"] :is([data-emu-card], [data-emu-strip], .es, .ec, .ec-cmd, .es-copy, .es-check, [data-ec-copy], [data-es-copy], .ws-grid, .ws-cmd, [id*="emulator-windows"], #cd-admin-demo) { display: none !important; }
html[data-amx-phone][data-platform-id^="cloud-automation"] .tour-page-btn { background: var(--t-on, #c2410c) !important; color: var(--t-on-accent, #fff) !important; font-weight: 700; padding: 10px 18px; border-radius: 999px; min-height: 44px; }
