/* Mobile container. Only under html.mobile-layout — desktop styles.css stays as-is. */

html.mobile-layout,
html.mobile-layout body {
  margin: 0 !important;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

html.mobile-layout.suite-launching,
html.mobile-layout.suite-launching body {
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}

html.mobile-layout .portal {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

html.mobile-layout {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --apps-gap: 0.45rem;
}
html.mobile-layout.suite-app-open.island-left:not(.login-html) {
  --safe-left: max(54px, env(safe-area-inset-left, 0px));
  --safe-right: 24px;
}
html.mobile-layout.suite-app-open.island-right:not(.login-html) {
  --safe-right: max(54px, env(safe-area-inset-right, 0px));
  --safe-left: 20px;
}

html.mobile-layout.suite-app-open #suite-app-host,
html.mobile-layout.suite-app-open #suite-app-clip,
html.mobile-layout.suite-app-open #suite-app-scaler,
html.mobile-layout.suite-app-open #suite-app-frame,
html.mobile-layout.suite-app-open #suite-app-host.suite-app-blue,
html.mobile-layout.suite-app-blue #suite-app-host,
html.mobile-layout.suite-app-blue #suite-app-clip {
  background: transparent !important;
}

html.mobile-layout.suite-app-open .atmosphere {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0;
}

html.mobile-layout #suite-app-clip {
  z-index: 1;
}

html.mobile-layout.suite-desktop-shell,
html.mobile-layout.suite-desktop-shell body {
  overflow: hidden !important;
  background: transparent !important;
}

html.mobile-layout.suite-desktop-shell #suite-app-host {
  inset: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: none;
  background: transparent !important;
}

html.mobile-layout.suite-desktop-shell #suite-app-clip {
  top: var(--safe-top, 0px);
  right: var(--safe-right, 0px);
  bottom: var(--safe-bottom, 0px);
  left: var(--safe-left, 0px);
  overflow: hidden;
  background: transparent;
}

html.mobile-layout.suite-app-open:not(.suite-desktop-shell) {
  --safe-top: 0px;
}

html.mobile-layout.suite-app-open:not(.suite-desktop-shell) #suite-app-clip,
html.mobile-layout.suite-app-open:not(.suite-desktop-shell) #suite-app-scaler,
html.mobile-layout.suite-app-open:not(.suite-desktop-shell) #suite-app-frame {
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

html.mobile-layout.suite-desktop-shell.suite-desktop-zoomed #suite-app-clip {
  overflow: auto;
}

html.mobile-layout.suite-desktop-shell #suite-app-scaler {
  inset: auto;
  top: 0;
  left: 0;
  width: var(--desk-w, 1180px);
  height: var(--desk-h, 100%);
  transform: scale(var(--desk-scale, 1));
  transform-origin: top left;
  zoom: 1;
}

html.mobile-layout.suite-desktop-shell #suite-app-frame {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  transform: none !important;
  zoom: 1 !important;
  pointer-events: auto !important;
  background: transparent !important;
}

.suite-hold-hit {
  position: absolute;
  z-index: 3;
  background: transparent;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  caret-color: transparent;
  touch-action: none;
}

html.mobile-layout.suite-gutter-holding,
html.mobile-layout.suite-gutter-holding body,
html.mobile-layout.suite-gutter-holding #suite-app-host,
html.mobile-layout.suite-gutter-holding #suite-app-clip,
html.mobile-layout.suite-gutter-holding #suite-app-scaler,
html.mobile-layout.suite-gutter-holding #suite-app-frame,
html.mobile-layout.suite-gutter-holding .suite-hold-hit {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-user-drag: none !important;
  caret-color: transparent !important;
  touch-action: none !important;
}

html.mobile-layout.suite-gutter-holding #suite-app-frame {
  pointer-events: none !important;
}
.suite-hold-hit-top {
  top: 0;
  left: 0;
  right: 0;
  height: var(--safe-top, 0px);
}
html.mobile-layout.suite-top-hold .suite-hold-hit-top {
  top: 0;
  height: calc(max(var(--ops-hold-top, 47px), env(safe-area-inset-top, 0px), 47px) + 44px);
  z-index: 20;
  pointer-events: auto !important;
}
html.mobile-layout.suite-top-hold .suite-hold-hit-left,
html.mobile-layout.suite-top-hold .suite-hold-hit-right,
html.mobile-layout.suite-top-hold .suite-hold-hit-bottom {
  display: none !important;
}
.suite-hold-hit-bottom {
  bottom: 0;
  left: 0;
  right: 0;
  height: max(var(--safe-bottom, 0px), env(safe-area-inset-bottom, 0px), 20px);
}
.suite-hold-hit-left {
  top: 0;
  bottom: 0;
  left: 0;
  width: max(var(--safe-left, 0px), 20px);
}
.suite-hold-hit-right {
  top: 0;
  bottom: 0;
  right: 0;
  width: max(var(--safe-right, 0px), 24px);
}
.suite-hold-hit.holding {
  background: rgba(96, 165, 250, 0.28);
}

html.mobile-layout.login-html,
html.mobile-layout.login-html.island-left,
html.mobile-layout.login-html.island-right,
html.mobile-layout.login-html body.login-body {
  --safe-left: 0px !important;
  --safe-right: 0px !important;
  --safe-bottom: 0px !important;
}

html.mobile-layout.login-html,
html.mobile-layout.login-html body.login-body {
  position: fixed !important;
  inset: auto !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: var(--login-h, 100%) !important;
  min-height: var(--login-h, 100%) !important;
  max-height: var(--login-h, 100%) !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  box-sizing: border-box !important;
  touch-action: manipulation;
}

html.mobile-layout button,
html.mobile-layout a,
html.mobile-layout .login-pin-key,
html.mobile-layout .login-pin-pad {
  touch-action: manipulation;
}

/* 85% content column — same containerisation as Fleet / Formulare */
html.mobile-layout .shell {
  width: 85%;
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
  padding: 5rem 0 3.5rem;
}

html.mobile-layout:not(.login-html),
html.mobile-layout:not(.login-html) body {
  position: relative !important;
  inset: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: var(--suite-h, 100lvh) !important;
  min-height: var(--suite-h, 100lvh) !important;
  max-height: var(--suite-h, 100lvh) !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  background: #020617 !important;
}

html.mobile-layout:not(.login-html) .atmosphere {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
}

html.mobile-layout .users-shell {
  height: var(--app-h, 100dvh);
  min-height: 0;
  overflow: auto;
  padding: 5rem 0 1.5rem;
}

html.mobile-layout .top,
html.mobile-layout .foot {
  left: 0;
  right: 0;
}

html.mobile-layout .brand-mark {
  width: 34px;
  height: 34px;
  transform: translateY(3px);
}

html.mobile-layout .brand h1 {
  font-size: 0.95rem;
}

html.mobile-layout .foot #clock {
  font-size: 0.72rem;
}

html.mobile-layout .user-slot {
  gap: 0.4rem;
  min-height: 28px;
  padding: 0 0.3rem 0 0.4rem;
}

html.mobile-layout .user-name {
  max-width: 7.5rem;
  font-size: 0.72rem;
}

html.mobile-layout .suite-main,
html.mobile-layout .users-main {
  width: 100%;
  min-width: 0;
}

html.mobile-layout #view-app:not([hidden]) {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
}

html.mobile-layout .shell:not(.users-shell) {
  --apps-w: 85%;
  --apps-side: 7.5%;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html.mobile-layout .shell:not(.users-shell) .suite-main {
  flex: 0 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
}

html.mobile-layout .apps {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: none;
  gap: var(--apps-gap, 0.45rem) !important;
  column-gap: var(--apps-gap, 0.45rem) !important;
  row-gap: var(--apps-gap, 0.45rem) !important;
  justify-items: stretch;
  align-items: stretch;
  width: var(--apps-w, 85%);
  max-width: var(--apps-w, 85%);
  height: auto;
  min-height: 0;
  flex: none;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

html.mobile-layout .card {
  min-height: 0 !important;
  height: auto;
  max-width: 100%;
  aspect-ratio: 422 / 232;
  padding: 0.55rem 0.6rem 0.48rem;
  gap: 0.28rem;
  transform: none;
  animation: none;
  transition: none;
}

html.mobile-layout .icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

html.mobile-layout .icon svg {
  width: 16px;
  height: 16px;
}

html.mobile-layout h1,
html.mobile-layout h2,
html.mobile-layout .card-name,
html.mobile-layout .login-brand h1 {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  caret-color: transparent !important;
}

html.mobile-layout .card-name {
  font-size: 0.86rem;
}

html.mobile-layout .card-domain {
  font-size: 0.58rem;
}

html.mobile-layout .card-blurb {
  font-size: 0.68rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

html.mobile-layout .card::after {
  inset: auto 0.55rem 0;
}

html.mobile-layout .card:hover,
html.mobile-layout .card:focus-visible {
  transform: none;
}

html.mobile-layout .top {
  top: calc(0.7rem + var(--safe-top, 0px));
}

html.mobile-layout .foot {
  bottom: calc(0.55rem + var(--safe-bottom, 0px));
}

html.mobile-layout .shell:not(.users-shell) .top,
html.mobile-layout .shell:not(.users-shell) .foot {
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
  width: var(--apps-w, 85%);
  max-width: var(--apps-w, 85%);
  margin-left: auto;
  margin-right: auto;
  flex: 1 1 0;
  min-height: 0;
  align-self: center;
  box-sizing: border-box;
}

@container suite-main (max-width: 720px) {
  .card {
    min-height: 0;
    padding: 0.45rem 0.5rem 0.4rem;
    gap: 0.22rem;
  }
  .icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .icon svg {
    width: 14px;
    height: 14px;
  }
  .card-name {
    font-size: 0.78rem;
  }
  .card-domain {
    font-size: 0.54rem;
  }
  .card-blurb {
    font-size: 0.62rem;
  }
}

html.mobile-layout .users-table {
  font-size: 0.78rem;
}

html.mobile-layout .user-grid {
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

html.mobile-layout.login-html .atmosphere {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  height: var(--login-cover-h, 100lvh) !important;
  min-height: var(--login-cover-h, 100lvh) !important;
  max-height: none !important;
  overflow: hidden !important;
}

html.mobile-layout.login-html .login-page,
html.mobile-layout.standalone-display.login-html .login-page,
html.mobile-layout.login-html:not(.standalone-display) .login-page {
  position: fixed !important;
  inset: auto !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: var(--login-h, 100%) !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: var(--safe-top, env(safe-area-inset-top, 0px)) 0 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: manipulation;
}

/* Portrait: fill the large viewport (home indicator included).
   Do not keep html position:fixed — that clips paint to the short visual viewport.
   Landscape login keeps the rules above. */
@media (orientation: portrait) {
  html.mobile-layout.login-html,
  html.mobile-layout.login-html body.login-body {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 100lvh !important;
    min-height: 100lvh !important;
    max-height: 100lvh !important;
    overflow: hidden !important;
    background: #020617 !important;
  }

  html.mobile-layout.login-html .atmosphere {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
  }

  html.mobile-layout.login-html .login-page,
  html.mobile-layout.standalone-display.login-html .login-page,
  html.mobile-layout.login-html:not(.standalone-display) .login-page {
    position: absolute !important;
    inset: auto !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}

html.mobile-layout.login-html input,
html.mobile-layout.login-html textarea,
html.mobile-layout.login-html select,
html.mobile-layout.login-html .login-pin-key,
html.mobile-layout.login-html .login-pin-pad {
  touch-action: manipulation;
}

html.mobile-layout .login-page[hidden] {
  display: none !important;
}

html.mobile-layout .login-page-inner {
  width: 85%;
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  max-height: 100%;
}

html.mobile-layout .login-brand img {
  height: 180px !important;
  width: auto !important;
}

html.mobile-layout .login-card h1 {
  margin: 0 !important;
  font-size: 1.75rem !important;
}

html.mobile-layout .login-card {
  width: 100%;
  max-width: none;
  margin: 0;
  height: auto;
}

html.mobile-layout .login-card form {
  gap: 0;
  margin: 0;
}

html.mobile-layout .login-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

html.mobile-layout .login-card form button[type="submit"] {
  margin-top: 1.5rem;
  width: 100%;
}

html.mobile-layout .login-link {
  margin-top: 0.75rem;
}

html.mobile-layout .login-keep {
  display: none !important;
}

html.mobile-layout .login-card .login-error {
  margin-top: 1rem;
}

html.mobile-layout .login-card input {
  width: 100% !important;
  max-width: 100% !important;
  font-size: 16px !important;
}

html.mobile-layout .login-card [hidden] {
  display: none !important;
}

@media (orientation: landscape) {
  html.mobile-layout { --safe-bottom: 0px; }
  html.mobile-layout.login-html .login-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 0 !important;
    position: relative !important;
  }
  html.mobile-layout.login-html .login-card::after {
    content: "";
    position: absolute;
    top: 1.25rem;
    bottom: 1.25rem;
    left: 50%;
    width: 1px;
    background: #475569;
    opacity: 0.65;
    transform: translateX(-50%);
    pointer-events: none;
  }
  html.mobile-layout.login-html .login-brand {
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding-right: 1.1rem !important;
    transform: translateY(-0.95rem);
  }
  html.mobile-layout.login-html .login-card form:not([hidden]) {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding-left: 1.1rem !important;
  }
  html.mobile-layout.login-html .login-card form > *,
  html.mobile-layout.login-html .login-card .login-pin-panel > * {
    width: 78% !important;
    max-width: 16.5rem !important;
  }
  html.mobile-layout.login-html .login-card .login-pin-panel:not([hidden]) {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding-left: 1.1rem !important;
  }
  html.mobile-layout.login-html .login-card.login-card-pin {
    padding: 1rem 1.25rem !important;
  }
  html.mobile-layout.login-html .login-card-pin .login-pin-subtitle {
    margin-bottom: 0.15rem;
    font-size: 0.85rem;
  }
  html.mobile-layout.login-html .login-card-pin .login-pin-prompt {
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
  }
  html.mobile-layout.login-html .login-card-pin .login-pin-dots,
  html.mobile-layout.login-html .login-card-pin .login-pin-error {
    margin-bottom: 0.25rem;
  }
  html.mobile-layout.login-html .login-card-pin .login-pin-pad {
    gap: 0.35rem;
  }
  html.mobile-layout.login-html .login-card-pin .login-pin-key {
    min-height: 36px !important;
    font-size: 1.1rem !important;
  }
  html.mobile-layout.login-html .login-card-pin .login-pin-footer {
    margin-top: 0.45rem;
  }
  html.mobile-layout.login-html .login-card-pin .login-pin-link-slot {
    margin-top: 0.25rem;
    min-height: 1.35rem;
  }
}

@media (orientation: portrait) {
  html.mobile-layout .login-card-pin .login-brand {
    margin-bottom: 0.5rem !important;
  }
  html.mobile-layout .login-card-pin .login-brand img {
    height: 96px !important;
  }
  html.mobile-layout .login-card-pin h1 {
    font-size: 1.25rem !important;
  }
}

html.mobile-layout .login-pin-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

html.mobile-layout .login-pin-subtitle {
  min-height: 1.4rem;
  margin: 0 0 0.35rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  text-align: center;
}

html.mobile-layout .login-pin-prompt {
  margin: 0 0 0.75rem;
  color: #94a3b8;
  font-size: 0.85rem;
  text-align: center;
}

html.mobile-layout .login-pin-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  min-height: 1.25rem;
  margin-bottom: 0.35rem;
}

html.mobile-layout .login-pin-dots.shaking {
  animation: login-pin-shake 0.45s ease;
}

html.mobile-layout .login-pin-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 2px solid #64748b;
  background: transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

html.mobile-layout .login-pin-dot.filled {
  background: #60a5fa;
  border-color: #60a5fa;
  transform: scale(1.12);
}

html.mobile-layout .login-pin-error {
  min-height: 1.25rem;
  margin-bottom: 0.55rem;
  color: #fca5a5;
  font-size: 0.8rem;
  text-align: center;
}

html.mobile-layout .login-pin-pad {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.5rem;
  width: 100%;
  max-width: 16.5rem;
}

html.mobile-layout .login-pin-key {
  min-height: 44px !important;
  border: 1px solid #475569 !important;
  border-radius: 12px !important;
  background: #0f172a !important;
  color: #e2e8f0 !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html.mobile-layout .login-pin-key:active:not(:disabled) {
  background: #1d4ed8 !important;
  border-color: #60a5fa !important;
}

html.mobile-layout .login-pin-key:disabled {
  opacity: 0.4;
}

html.mobile-layout .login-pin-key-action {
  font-size: 1.1rem !important;
  color: #cbd5e1 !important;
}

html.mobile-layout .login-pin-key-spacer { min-height: 44px; }

html.mobile-layout .login-pin-footer {
  width: 100%;
  max-width: 16.5rem;
  margin-top: 0.75rem;
}

html.mobile-layout .login-pin-continue-slot,
html.mobile-layout .login-pin-continue-placeholder {
  min-height: 40px;
}

html.mobile-layout .login-pin-continue {
  width: 100%;
}

html.mobile-layout .login-pin-continue:disabled,
html.mobile-layout .login-pin-continue[disabled] {
  background: #334155 !important;
  color: #64748b !important;
  opacity: 1 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-shadow: none;
}

html.mobile-layout .login-pin-link-slot {
  min-height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.45rem;
}

html.mobile-layout .login-pin-link {
  display: block;
  margin: 0;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  box-shadow: none;
}

html.mobile-layout.m-rotate-lock,
html.mobile-layout.m-rotate-lock body {
  overflow: hidden !important;
  height: 100% !important;
  max-height: 100% !important;
  padding-bottom: 0 !important;
  --safe-bottom: 0px !important;
  background: #020617 !important;
}

html.mobile-layout.m-rotate-lock .top,
html.mobile-layout.m-rotate-lock .foot {
  visibility: hidden !important;
}

.m-rotate-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  margin: 0;
  box-sizing: border-box;
  background: #020617;
  width: auto;
  height: auto;
  min-height: 0;
  max-height: none;
}

.m-rotate-overlay:not([hidden]) {
  display: flex !important;
}

.m-rotate-card {
  text-align: center;
  max-width: 20rem;
  margin: 0;
  transform: none;
}

.m-rotate-card h2 {
  margin: 1.25rem 0 0;
  font-size: 1.45rem !important;
  font-family: "Poppins", system-ui, sans-serif;
  color: #e2e8f0;
}

.m-rotate-card p {
  display: none !important;
}

.m-rotate-phone {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto;
}

.m-rotate-phone-body {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 60px;
  margin: -30px 0 0 -18px;
  border: 3px solid #60a5fa;
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.25);
  animation: m-rotate-phone 1.6s ease-in-out infinite;
}

.m-rotate-phone-body::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 8px;
  height: 3px;
  margin-left: -4px;
  border-radius: 2px;
  background: #60a5fa;
}

.m-rotate-arrow {
  position: absolute;
  right: 4px;
  top: 8px;
  color: #93c5fd;
  font-size: 1.4rem;
  animation: m-rotate-arrow 1.6s ease-in-out infinite;
}

@keyframes m-rotate-phone {
  0%, 18% { transform: rotate(0deg); }
  45%, 100% { transform: rotate(90deg); }
}

@keyframes m-rotate-arrow {
  0%, 18% { opacity: 1; transform: rotate(0deg); }
  45%, 100% { opacity: 0.35; transform: rotate(90deg); }
}

/* Portrait framed apps (OPS): fill the large viewport (home indicator included).
   Do not keep host position:fixed — that clips paint to the short visual viewport. */
@media (orientation: portrait) {
  html.mobile-layout.suite-app-open,
  html.mobile-layout.suite-app-open body {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 100lvh !important;
    min-height: 100lvh !important;
    max-height: 100lvh !important;
    overflow: hidden !important;
    background: #020617 !important;
  }

  html.mobile-layout.suite-app-open .atmosphere {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
  }

  html.mobile-layout.suite-app-open #suite-app-host,
  html.mobile-layout.suite-app-open #suite-app-clip,
  html.mobile-layout.suite-app-open:not(.suite-desktop-shell) #suite-app-scaler,
  html.mobile-layout.suite-app-open:not(.suite-desktop-shell) #suite-app-frame {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
  }
}
@media (orientation: portrait) {
  html.mobile-layout.m-rotate-lock,
  html.mobile-layout.m-rotate-lock body {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 100lvh !important;
    min-height: 100lvh !important;
    max-height: 100lvh !important;
    overflow: hidden !important;
    background: #020617 !important;
  }

  html.mobile-layout.m-rotate-lock .atmosphere {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
  }

  html.mobile-layout.m-rotate-lock .m-rotate-overlay {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    background: #020617 !important;
  }
}

@keyframes login-pin-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .m-rotate-phone-body,
  .m-rotate-arrow,
  html.mobile-layout .login-pin-dots.shaking {
    animation: none !important;
  }
}
