/* ALYSSIUN OS — Mobile interface. A sibling of public/desktop/, sharing no
   layout code with it. Tokens below are the exact values from the mobile
   interface spec; they intentionally do not reuse --desktop-* variables. */

:root[data-alyssiun-atmosphere="lux"] {
  --aos-m-bg: linear-gradient(180deg, #ffffff, #eceef3 52%, #dfe3ea);
  --aos-m-text: #0e1018;
  --aos-m-muted: #5c6273;
  --aos-m-faint: #949aab;
  --aos-m-glass: rgba(255, 255, 255, .66);
  --aos-m-glass-2: rgba(255, 255, 255, .86);
  --aos-m-app-surface: rgba(248, 249, 252, .93);
  --aos-m-solid: rgba(250, 251, 253, .97);
  --aos-m-edge: rgba(255, 255, 255, .9);
  --aos-m-hair: rgba(14, 18, 34, .09);
  --aos-m-ink: #0e1018;
  --aos-m-ink-on: #fff;
  --aos-m-shadow-s: 0 2px 10px rgba(20, 26, 50, .06);
  --aos-m-shadow: 0 14px 40px rgba(20, 26, 50, .10);
  --aos-m-shadow-l: 0 30px 80px rgba(20, 26, 50, .16);
  --aos-m-dim: rgba(14, 18, 34, .28);
}

:root[data-alyssiun-atmosphere="neo"] {
  --aos-m-bg: linear-gradient(180deg, #04050c, #020308 52%, #000000);
  --aos-m-text: #f2f4fb;
  --aos-m-muted: #9aa2b8;
  --aos-m-faint: #616a80;
  --aos-m-glass: rgba(255, 255, 255, .055);
  --aos-m-glass-2: rgba(255, 255, 255, .1);
  --aos-m-app-surface: rgba(6, 8, 15, .93);
  --aos-m-solid: rgba(7, 9, 16, .96);
  --aos-m-edge: rgba(255, 255, 255, .14);
  --aos-m-hair: rgba(255, 255, 255, .08);
  --aos-m-ink: #ffffff;
  --aos-m-ink-on: #05070e;
  --aos-m-shadow-s: 0 2px 10px rgba(0, 0, 0, .4);
  --aos-m-shadow: 0 16px 44px rgba(0, 0, 0, .55);
  --aos-m-shadow-l: 0 34px 90px rgba(0, 0, 0, .7);
  --aos-m-dim: rgba(0, 0, 0, .55);
}

.aos-mobile-shell {
  position: fixed;
  inset: 0;
  z-index: 500;
  /* An interface switch remounts the shell in place; this soft entrance is the
     switch's whole transition — same quiet fade language as the transfer moment. */
  animation: aos-mobile-shell-in .3s ease;
  /* clip, not hidden: hidden makes the shell a scroll container, and a focus()
     inside a card the switcher has parked off-screen would scroll the whole
     shell sideways to reveal it. clip cannot scroll. */
  overflow: clip;
  background: var(--aos-m-bg);
  color: var(--aos-m-text);
  font-family: var(--brand-font, -apple-system, system-ui, sans-serif);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

@keyframes aos-mobile-shell-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .aos-mobile-shell { animation: none; }
}

.aos-mobile-wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  pointer-events: none;
}

/* LUX: soft glow at the top. NEO: a horizon line + glow near the bottom. */
:root[data-alyssiun-atmosphere="lux"] .aos-mobile-wallpaper::before {
  content: "";
  position: absolute;
  inset: -20% -20% auto -20%;
  height: 60%;
  background: radial-gradient(ellipse at top, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%);
}

:root[data-alyssiun-atmosphere="neo"] .aos-mobile-wallpaper::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24%;
  height: 1px;
  background: rgba(150, 185, 235, .5);
  box-shadow: 0 0 60px 20px rgba(150, 185, 235, .5);
}

:root[data-alyssiun-atmosphere="neo"] .aos-mobile-wallpaper::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 30%;
  background: radial-gradient(ellipse at bottom, rgba(90, 120, 200, .28), rgba(0, 0, 0, 0) 70%);
}

.aos-mobile-home {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  /* 62px top clearance keeps the header below the interface pill
     (which sits ~10-50px under the shell's own safe-area padding-top). */
  padding: 62px 20px calc(140px + env(safe-area-inset-bottom));
  transition: opacity .34s ease, transform .48s cubic-bezier(.2, .86, .26, 1);
}

/* Centred column so the phone layout reads correctly on a wide desktop
   browser: the scroll container (.aos-mobile-home) stays full width, its
   content stops growing past a comfortable line length and centres itself. */
.aos-mobile-home-inner {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  background: none;
  border: 0;
  box-shadow: none;
}

.aos-mobile-shell[data-app-open="true"] .aos-mobile-home {
  opacity: 0;
  pointer-events: none;
  transform: scale(.96);
}

/* Behind the switcher the home stays on screen for context: dimmed by the
   backdrop below, blurred here. */
.aos-mobile-shell[data-switcher="true"] .aos-mobile-home {
  opacity: 1;
  transform: scale(.98);
  filter: blur(12px) saturate(.9);
  pointer-events: none;
  overflow: hidden;
}

/* --- The living header ------------------------------------------------------ */
.aos-mobile-avatar[hidden], .aos-mobile-signin[hidden], .aos-mobile-live-line[hidden] { display: none; }

/* The avatar, the greeting and the live line sit directly on the atmosphere:
   no surface, no edge, no shadow behind them. */
.aos-mobile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  min-width: 0;
  padding: 0;
  gap: 8px;
  background: none;
  border: 0;
  box-shadow: none;
}

.aos-mobile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid var(--aos-m-edge);
  outline: 1px solid var(--aos-m-hair);
  outline-offset: -1px;
  background: var(--aos-m-glass-2) center / cover no-repeat;
  box-shadow: var(--aos-m-shadow);
  color: var(--aos-m-text);
  font: inherit;
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: .04em;
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  transition: transform .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.aos-mobile-avatar:active { transform: translateY(-3px); }
@media (hover: hover) { .aos-mobile-avatar:hover { transform: translateY(-3px); } }
.aos-mobile-avatar:focus-visible { outline: 2px solid var(--aos-m-ink); outline-offset: 3px; }

.aos-mobile-signin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--aos-m-edge);
  outline: 1px solid var(--aos-m-hair);
  outline-offset: -1px;
  background: var(--aos-m-ink);
  color: var(--aos-m-ink-on);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--aos-m-shadow);
  transition: transform .25s ease;
}
.aos-mobile-signin svg { width: 16px; height: 16px; }
@media (hover: hover) { .aos-mobile-signin:hover { transform: translateY(-3px); } }
.aos-mobile-signin:focus-visible { outline: 2px solid var(--aos-m-ink); outline-offset: 3px; }

.aos-mobile-greeting {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: clamp(1.5rem, 6.4vw, 2.1rem);
  font-weight: 200;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.aos-mobile-live-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--aos-m-edge);
  outline: 1px solid var(--aos-m-hair);
  outline-offset: -1px;
  background: var(--aos-m-glass);
  color: var(--aos-m-muted);
  font: inherit;
  font-size: .84rem;
  font-weight: 400;
  cursor: pointer;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  transition: transform .25s ease;
}
.aos-mobile-live-line > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aos-mobile-live-line:active { transform: translateY(-3px); }
@media (hover: hover) { .aos-mobile-live-line:hover { transform: translateY(-3px); } }
.aos-mobile-live-line:focus-visible { outline: 2px solid var(--aos-m-ink); outline-offset: 2px; }
.aos-mobile-live-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--aos-m-faint);
}
.aos-mobile-live-line[data-live-kind="space"] .aos-mobile-live-dot { background: var(--alyssiun-app-here-icon-start, var(--aos-m-faint)); }
.aos-mobile-live-line[data-live-kind="project"] .aos-mobile-live-dot,
.aos-mobile-live-line[data-live-kind="build"] .aos-mobile-live-dot,
.aos-mobile-live-line[data-live-kind="aly"] .aos-mobile-live-dot { background: var(--alyssiun-app-aly-icon-start, var(--aos-m-faint)); }

.aos-mobile-ask {
  margin: 14px 0 12px;
}

.aos-mobile-ask-input {
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--aos-m-edge);
  outline: 1px solid var(--aos-m-hair);
  outline-offset: -1px;
  background: var(--aos-m-glass);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: var(--aos-m-shadow-s);
  color: var(--aos-m-text);
  font: inherit;
  font-size: .95rem;
  font-weight: 400;
}

.aos-mobile-ask-input::placeholder { color: var(--aos-m-faint); }
.aos-mobile-ask-input:focus { outline-color: var(--aos-m-ink); }

.aos-mobile-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.aos-mobile-chip {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--aos-m-edge);
  outline: 1px solid var(--aos-m-hair);
  outline-offset: -1px;
  background: var(--aos-m-glass-2);
  color: var(--aos-m-text);
  font: inherit;
  font-size: .78rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  transition: transform .25s ease;
}

.aos-mobile-chip:active { transform: translateY(-3px); }
@media (hover: hover) {
  .aos-mobile-chip:hover { transform: translateY(-3px); }
}
.aos-mobile-chip:focus-visible { outline: 2px solid var(--aos-m-ink); outline-offset: 2px; }

/* The interface pill belongs to the home screen only: gone behind an open app
   (interface-pill.js isAppOpen) and while the open-apps view is showing. */
.aos-mobile-shell[data-switcher="true"] .aos-interface-pill { display: none; }

/* "Apps" on the left, the view toggle on the right: the desktop panel's head. */
.aos-mobile-grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}
.aos-mobile-grid-head .aos-mobile-section-label { margin: 0; }
.aos-mobile-view-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--aos-m-hair);
  border-radius: 10px;
  background: var(--aos-m-glass);
  color: var(--aos-m-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.aos-mobile-view-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.aos-mobile-view-toggle:active { color: var(--aos-m-text); }
.aos-mobile-view-toggle:focus-visible { outline: 2px solid var(--aos-m-ink); outline-offset: 2px; }

.aos-mobile-section-label {
  margin: 0 0 10px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--aos-m-muted);
}

.aos-mobile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 18px 12px;
  padding-bottom: 24px;
}

/* The app list could not be resolved: an honest failed state in place of the
   grid (Settings alone stays, it is OS chrome and not part of the list). */
.aos-mobile-apps-error {
  grid-column: 1 / -1;
  margin: 4px 0 8px;
  color: var(--aos-m-muted);
  font-size: .86rem;
}

.aos-mobile-apps-retry {
  padding: 0;
  border: 0;
  background: none;
  color: var(--aos-m-text);
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  cursor: pointer;
}

/* Help & Support: below the apps grid, centred. Support, not a product — a
   quiet pill in the home screen's own glass, never a tile (help-support.js). */
.aos-mobile-support {
  display: flex;
  justify-content: center;
  padding: 4px 0 28px;
}

.aos-mobile-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px 0 15px;
  border: 1px solid var(--aos-m-hair);
  border-radius: 999px;
  background: var(--aos-m-glass);
  color: var(--aos-m-text);
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: var(--aos-m-shadow-s);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.aos-mobile-support-btn svg { color: var(--aos-m-muted); }
.aos-mobile-support-btn:active { background: var(--aos-m-glass-2); }
.aos-mobile-support-btn:focus-visible { outline: 2px solid var(--aos-m-text); outline-offset: 2px; }

.aos-mobile-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-touch-callout: none;
  user-select: none;
}

.aos-mobile-tile:focus-visible {
  outline: 2px solid var(--aos-m-ink);
  outline-offset: 3px;
  border-radius: 26px;
}

/* One icon style on mobile: the OS colour-icon contract (/os/icons/v1.css),
   the same gradient tile + white glyph the launcher and desktop draw. The
   wrapper only sets the size; the icon itself fills it. */
.aos-mobile-tile-icon {
  width: 56px;
  height: 56px;
  border-radius: 26px;
  display: block;
  transition: transform .25s ease;
}

.aos-mobile-tile-icon .desktop-app-icon {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
}

@media (hover: hover) {
  .aos-mobile-tile:hover .aos-mobile-tile-icon { transform: translateY(-3px); }
}

.aos-mobile-tile-icon svg,
.aos-mobile-tile-icon .desktop-app-icon svg { width: 50%; height: 50%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.aos-mobile-tile-body { display: contents; }
.aos-mobile-tile-detail { display: none; }

/* List view: one row per app, icon + name + what it is. */
.aos-mobile-grid[data-view="list"] {
  grid-template-columns: 1fr;
  gap: 8px;
}
.aos-mobile-grid[data-view="list"] .aos-mobile-tile {
  flex-direction: row;
  gap: 14px;
  min-height: 60px;
  padding: 8px 12px;
  border: 1px solid var(--aos-m-hair);
  border-radius: 16px;
  background: var(--aos-m-glass);
  text-align: left;
}
.aos-mobile-grid[data-view="list"] .aos-mobile-tile-icon { width: 44px; height: 44px; border-radius: 14px; flex: none; }
.aos-mobile-grid[data-view="list"] .aos-mobile-tile-body { display: grid; gap: 2px; min-width: 0; }
.aos-mobile-grid[data-view="list"] .aos-mobile-tile-label {
  max-width: none; text-align: left; font-size: .92rem; font-weight: 600;
}
.aos-mobile-grid[data-view="list"] .aos-mobile-tile-detail {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--aos-m-muted); font-size: .76rem;
}
.aos-mobile-grid[data-view="list"] .aos-mobile-tile:focus-visible { border-radius: 16px; }
@media (hover: hover) {
  .aos-mobile-grid[data-view="list"] .aos-mobile-tile:hover .aos-mobile-tile-icon { transform: none; }
}

.aos-mobile-tile-label {
  font-size: .68rem;
  font-weight: 400;
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Full-screen apps ------------------------------------------------------ */
.aos-mobile-apps { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.aos-mobile-app {
  position: absolute;
  inset: 0;
  display: none;
  opacity: 0;
  /* Hidden from hit-testing too: an app that was left stays mounted (its
     frame keeps running) but must never catch a tap meant for the home
     underneath it — a Settings pane sets its own pointer-events, so
     pointer-events: none on this container alone is not enough. */
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity .34s ease, transform .48s cubic-bezier(.2, .86, .26, 1), visibility 0s linear .34s;
}

.aos-mobile-app.is-mounted { display: block; }
.aos-mobile-app.is-active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }

/* In the switcher every open app is on screen, live, scaled into its card by
   an inline transform (mobile-switcher.js) and clipped to the card's corners. */
.aos-mobile-app.is-switching {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
  pointer-events: none;
  overflow: clip;
  will-change: transform;
  transition: opacity .34s ease, transform .3s cubic-bezier(.2, .86, .26, 1);
}
.aos-mobile-switcher-stage.is-dragging ~ * .aos-mobile-app.is-switching,
.aos-mobile-shell:has(.aos-mobile-switcher-stage.is-dragging) .aos-mobile-app.is-switching { transition: opacity .34s ease; }

/* Safe areas reach inside the apps from HERE, not from each app: the app's
   frame starts below the status bar / notch (and clear of a landscape notch),
   but runs all the way down to the bottom edge — a band left above the home
   indicator read as dead space under every app. Only the app's CONTENT is
   inset there: a cross-origin frame cannot be relied on to see
   env(safe-area-inset-*) — iOS hands every iframe 0 — so the OS sends the
   bottom inset over the embed handshake and the app's launcher publishes it
   as --alyssiun-safe-bottom for the app's bottom bars. Sized with calc(), not
   top+bottom: an absolutely positioned iframe is a replaced element and
   ignores `bottom` for its height. */
.aos-mobile-app { --aos-app-inset-top: env(safe-area-inset-top, 0px); --aos-app-inset-bottom: env(safe-area-inset-bottom, 0px);
  --aos-app-inset-left: env(safe-area-inset-left, 0px); --aos-app-inset-right: env(safe-area-inset-right, 0px);
  background: var(--aos-m-solid); }
.aos-mobile-app iframe, .aos-mobile-app .mobile-settings-window {
  position: absolute;
  top: var(--aos-app-inset-top);
  left: var(--aos-app-inset-left);
  width: calc(100% - var(--aos-app-inset-left) - var(--aos-app-inset-right));
  height: calc(100% - var(--aos-app-inset-top));
}
/* Help & Support is CRM's page, which knows nothing of the OS's insets: its
   composer sits on the very bottom edge, where Λ floats. So the frame ends
   above Λ's strip instead, and the send button can never sit under Λ. */
.aos-mobile-app[data-mobile-app-id="support"] iframe {
  height: calc(100% - var(--aos-app-inset-top) - var(--aos-app-inset-bottom) - 92px);
}
/* Settings is the OS's own page, not a frame: it keeps the bottom inset. */
.aos-mobile-app .mobile-settings-window { height: calc(100% - var(--aos-app-inset-top) - var(--aos-app-inset-bottom)); }
.aos-mobile-app iframe {
  display: block;
  border: 0;
  background: var(--aos-m-solid);
}

/* Settings hosts the shared desktop settings window full-screen, chrome-free
   (inset like an app frame, above). */
.aos-mobile-app .mobile-settings-window {
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--desktop-surface, var(--aos-m-solid));
}

.aos-mobile-app .mobile-settings-window .window-content {
  height: 100%;
}

/* --- Switcher ---------------------------------------------------------------- */
/* Layers: home (1) -> backdrop dim (2) -> live apps (3) -> switcher frames + gestures (4). */
.aos-mobile-switcher-backdrop {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--aos-m-dim);
}
.aos-mobile-switcher-backdrop[hidden] { display: none; }
.aos-mobile-apps { z-index: 3; }

.aos-mobile-switcher {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: transparent;
}

.aos-mobile-switcher[hidden] { display: none; }

.aos-mobile-switcher-stage {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* The frame around a live card: the app itself renders underneath it. */
.aos-mobile-switcher-card {
  position: absolute;
  border-radius: 30px;
  border: 1px solid var(--aos-m-edge);
  outline: 1px solid var(--aos-m-hair);
  outline-offset: -1px;
  background: transparent;
  box-shadow: var(--aos-m-shadow-l);
  transform-origin: center;
  transition: transform .3s cubic-bezier(.2, .86, .26, 1), left .3s cubic-bezier(.2, .86, .26, 1), opacity .2s ease;
  will-change: transform, left;
  cursor: pointer;
}
.aos-mobile-switcher-stage.is-dragging .aos-mobile-switcher-card { transition: opacity .2s ease; }

.aos-mobile-switcher-head {
  position: absolute;
  left: 0;
  right: 0;
  top: -36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--aos-m-text);
  white-space: nowrap;
  text-shadow: 0 1px 8px var(--aos-m-glass-2);
}
.aos-mobile-switcher-head-icon { width: 24px; height: 24px; flex: none; }
.aos-mobile-switcher-head-icon .desktop-app-icon {
  width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; border: 1px solid transparent;
}
.aos-mobile-switcher-head-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.aos-mobile-switcher-head-name { overflow: hidden; text-overflow: ellipsis; }

/* Before the app has loaded: an opaque surface with the app icon centred. */
.aos-mobile-switcher-placeholder { display: none; }
.aos-mobile-switcher-card.is-placeholder .aos-mobile-switcher-placeholder {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--aos-m-app-surface);
}
.aos-mobile-switcher-placeholder .desktop-app-icon {
  width: 64px; height: 64px; border-radius: 26px; display: grid; place-items: center; border: 1px solid transparent;
}
.aos-mobile-switcher-placeholder svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.aos-mobile-switcher-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--aos-m-edge);
  outline: 1px solid var(--aos-m-hair);
  outline-offset: -1px;
  /* The solid surface, not glass: the card behind it is the app itself, which
     is usually light, so in NEO a glass button would vanish against it. */
  background: var(--aos-m-solid);
  color: var(--aos-m-text);
  box-shadow: var(--aos-m-shadow-s);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.aos-mobile-switcher-card:focus-visible,
.aos-mobile-switcher-close:focus-visible {
  outline: 2px solid var(--aos-m-ink);
  outline-offset: 2px;
}

/* --- Motion preference ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .aos-mobile-home, .aos-mobile-app, .aos-mobile-switcher-card, .aos-mobile-avatar, .aos-mobile-live-line {
    transition: none;
  }
}

/* Atmosphere change: colours cross over one second instead of snapping.
   theme-shell.js / the launcher set data-atmosphere-fading for that second. */
html[data-atmosphere-fading] *,
html[data-atmosphere-fading] *::before,
html[data-atmosphere-fading] *::after {
  transition: background-color 1s ease, color 1s ease, border-color 1s ease, fill 1s ease,
    stroke 1s ease, box-shadow 1s ease, outline-color 1s ease;
}
[data-wallpaper-ghost] { transition: opacity 1s ease; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  html[data-atmosphere-fading] *, html[data-atmosphere-fading] *::before, html[data-atmosphere-fading] *::after,
  [data-wallpaper-ghost] { transition: none; }
}
