/* Phones: the designs are rearranged by canvas-width.js into one column. */
@media (max-width: 760px) {
    body .viewport { overflow: visible; }
    body.is-phone .stage { width: 100% !important; height: auto !important; overflow: visible; transform: none !important; background: #eef1fb; }
    body.is-phone .stage > :not(.m-root):not(dialog):not([role="dialog"]) { display: none !important; }
    .m-root { display: flex; flex-direction: column; gap: 9px; padding-bottom: 20px; }
    .m-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 4px; padding: 7px 8px; background: #061440; color: #fff; }
    .m-toggle, .m-icon, .m-account > summary { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 11px; background: none; color: #fff; font-size: 19px; cursor: pointer; list-style: none; }
    .m-logo { margin-right: auto; }
    .m-logo img { display: block; height: 34px; width: auto; }
    .m-account { position: static !important; width: auto !important; height: auto !important; margin: 0; }
    .m-account summary > :not(.fa-circle-user, .account-mobile-avatar) { display: none; }
    .m-account .account-mobile-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
    .m-account summary { position: static !important; }
    .m-account > :not(summary) { position: absolute !important; top: 54px !important; right: 8px !important; left: auto !important; z-index: 70; width: 220px; max-width: 86vw; }
    .m-account:not([open]) > :not(summary) { display: none !important; }
    .m-menu { position: fixed; inset: 54px 0 0 0; z-index: 55; overflow-y: auto; padding: 10px 14px 40px; background: linear-gradient(180deg, #04123a, #07286c); color: #fff; }
    .m-menu[hidden] { display: none; }
    .m-menu ul { margin: 0 0 6px; padding: 0; list-style: none; }
    .m-menu .sidenav-heading { margin: 12px 0 4px; font: 800 12px XVF, "XChirp VF", TwitterChirp, -apple-system, system-ui, "Segoe UI", Roboto, "Geeza Pro", "Arial Hebrew", Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #9fb4ff; }
    .m-menu a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 8px; border-radius: 10px; color: #fff; font: 700 15px XVF, "XChirp VF", TwitterChirp, -apple-system, system-ui, "Segoe UI", Roboto, "Geeza Pro", "Arial Hebrew", Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif; text-decoration: none; }
    .m-menu a.active { background: linear-gradient(90deg, #0a7bf0, #6a2cf0); }
    .m-menu .sidenav-icon { display: flex; align-items: center; justify-content: center; width: 28px; color: var(--tone); }
    .m-menu .sidenav-count { margin-left: auto; }
    .m-menu .sidenav-create { justify-content: center; margin-top: 12px; border-radius: 24px; background: linear-gradient(90deg, #0a5cf5, #d020e8); }
    .m-banner { margin: -9px 0 0; padding: 22px 16px; background-position: right center; background-size: cover; color: #fff; }
    .m-banner .m-title { margin: 0 0 5px; font: 800 24px/1.15 XVF, "XChirp VF", TwitterChirp, -apple-system, system-ui, "Segoe UI", Roboto, "Geeza Pro", "Arial Hebrew", Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif; }
    .m-banner p { margin: 0; font: 600 13px/1.45 XVF, "XChirp VF", TwitterChirp, -apple-system, system-ui, "Segoe UI", Roboto, "Geeza Pro", "Arial Hebrew", Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif; }
    .m-strip { display: flex; gap: 8px; overflow-x: auto; padding: 0 8px 3px; scrollbar-width: none; }
    .m-strip a { flex: 0 0 auto; padding: 10px 14px; border: 1px solid #dbe0f2; border-radius: 20px; background: #fff; color: #0a1238; font: 800 12.5px XVF, "XChirp VF", TwitterChirp, -apple-system, system-ui, "Segoe UI", Roboto, "Geeza Pro", "Arial Hebrew", Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif; text-decoration: none; }
    .m-pieces { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 8px; padding: 0 8px; }
    .m-pieces:empty { display: none; }
    body.is-phone .m-pieces > a.start-journey.m-flow { flex: 0 0 auto !important; width: auto !important; height: auto !important; margin: 2px 8px !important; padding: 15px 22px; border-radius: 28px; font-size: 14px; white-space: normal; text-align: center; zoom: 1; }
    body.is-phone .m-pieces > .m-flow { flex: 0 0 100%; box-sizing: border-box; margin: 0 !important; }
    .m-piece { position: relative; overflow: visible; }
    .m-canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
    .m-canvas > a:not(.box), .m-canvas > form, .m-canvas > label { position: static; }

    /* Pages made of ordinary boxes simply run down the screen. */
    body.is-phone .m-root .m-flow { position: static !important; width: auto !important; height: auto !important; margin: 0 8px; overflow: visible !important; }
    body.is-phone .m-flow .sell-top, body.is-phone .m-flow .privacy-columns, body.is-phone .m-flow .create-grid { display: flex !important; flex-direction: column; gap: 9px; }
    body.is-phone .m-flow .sell-col { width: 100%; }
    body.is-phone .m-flow .sell-col > .scene, body.is-phone .m-flow > .scene { display: none; }
    body.is-phone .m-flow [class*="center-"][class*="focus"], body.is-phone .m-flow .center-groups, body.is-phone .m-flow .study-courses, body.is-phone .m-flow .course-services, body.is-phone .m-flow .inst-kinds, body.is-phone .m-flow .inst-cards, body.is-phone .m-flow .inst-places, body.is-phone .m-flow .privacy-photos, body.is-phone .m-flow .privacy-nav, body.is-phone .m-flow .center-photos { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    body.is-phone .m-flow .center-ways, body.is-phone .m-flow .course-exams, body.is-phone .m-flow .privacy-last, body.is-phone .m-flow .help-form, body.is-phone .m-flow .center-groups.one { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; }
    body.is-phone .m-flow .inst-stats { grid-template-columns: repeat(3, 1fr); }
    body.is-phone .m-flow .study-tabs, body.is-phone .m-flow .composer-modes { display: flex; flex-wrap: wrap; }
    body.is-phone .m-flow .composer-mode { flex: 1 0 30%; }
    body.is-phone .m-flow .center-hero { min-height: 0; }
    body.is-phone .m-flow .center-hero::after { background: rgb(6 20 64 / .82); }
    body.is-phone .m-flow img.center-cover { width: 100% !important; }
    body.is-phone .m-flow .center-hero > div { max-width: none; padding: 18px 15px; }
    body.is-phone .m-flow .center-questions li, body.is-phone .m-flow .saved-hero, body.is-phone .m-flow .set-hero, body.is-phone .m-flow .profile-hero, body.is-phone .m-flow .inst-add, body.is-phone .m-flow .search-form { flex-wrap: wrap; }
    body.is-phone .m-flow .center-questions .grow { flex-basis: 70%; }
    body.is-phone .m-flow input, body.is-phone .m-flow select, body.is-phone .m-flow textarea { max-width: 100%; font-size: 16px !important; }
    body.is-phone .m-flow img { max-width: 100%; }
    body.is-phone .m-flow { font-size: 14px; zoom: 1.12; }
    .m-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 18px 10px; background: #061440; }
    .m-footer a { padding: 8px 12px; color: #fff; font: 700 13px XVF, "XChirp VF", TwitterChirp, -apple-system, system-ui, "Segoe UI", Roboto, "Geeza Pro", "Arial Hebrew", Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif; text-decoration: none; }
    body.is-phone .m-flow * { min-width: 0; }
    body.is-phone .m-flow .create-types, body.is-phone .m-flow .help-topics, body.is-phone .m-flow .sell-steps { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    body.is-phone .m-flow .ai-areas { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    body.is-phone .m-flow .shop-tools { display: flex !important; flex-direction: column; }
    body.is-phone .m-flow .shop-tools .chips, body.is-phone .m-flow .goods-actions { flex-wrap: wrap; }
    body.is-phone .m-flow .create-types a, body.is-phone .m-flow .help-topics button, body.is-phone .m-flow .sell-steps li { overflow-wrap: anywhere; }
}
