
/* --- 0neEmoji mini-app components --- */

:root {
    --oem-disabled-button: #d1d1d6;
    --oem-disabled-text: #8e8e93;
    --oem-tile-surface: #ededf0;
    --oem-glass-tint: 255,255,255;
    --oem-glass-tint-opacity: .12;
    --oem-glass-inset-blur: 22px;
    --oem-glass-inset-spread: -4px;
    --oem-glass-inset-color: rgba(255,255,255,.48);
    --oem-glass-border: rgba(255,255,255,.28);
    --oem-glass-depth: 0 8px 28px rgba(0,0,0,.12);
    --ui-accent: #48484a;
    --ui-accent-strong: #3a3a3c;
    --ui-accent-fill: #48484a;
    --ui-accent-fill-strong: #636366;
    --ui-accent-text: #ffffff;
    --ui-accent-soft: rgba(120,120,128,.18);
    --ui-accent-grad: linear-gradient(180deg,#636366 0%,#48484a 48%,#3a3a3c 100%);
    --ui-accent-sheen-1: #8e8e93;
    --ui-accent-sheen-2: #636366;
    --ui-accent-glass: rgba(255, 255, 255, 0.42);
    --ui-badge-bg: #636366;
    --ui-badge-border: none;
    --ui-badge-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
}

[data-theme=dark] {
    --oem-disabled-button: #1c1c1e;
    --oem-disabled-text: #636366;
    --oem-tile-surface: #1c1c1e;
    --oem-glass-tint: 255,255,255;
    --oem-glass-tint-opacity: .08;
    --oem-glass-inset-color: rgba(255,255,255,.36);
    --oem-glass-border: rgba(255,255,255,.22);
    --oem-glass-depth: 0 10px 32px rgba(0,0,0,.36);
    --ui-accent: #ebebf5;
    --ui-accent-strong: #ffffff;
    --ui-accent-fill: #636366;
    --ui-accent-fill-strong: #8e8e93;
    --ui-accent-text: #ffffff;
    --ui-accent-soft: rgba(120,120,128,.28);
    --ui-accent-grad: linear-gradient(180deg,#8e8e93 0%,#636366 46%,#48484a 100%);
    --ui-accent-sheen-1: #aeaeb2;
    --ui-accent-sheen-2: #8e8e93;
    --ui-accent-glass: rgba(255, 255, 255, 0.48);
    --ui-badge-bg: #8e8e93;
    --ui-badge-border: none;
    --ui-badge-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
}

.oem-lgs-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    border-radius: inherit
}

.oem-lgs > *:not(.oem-lgs-canvas) {
    position: relative;
    z-index: 3
}

.oem-page {
    padding-top: calc(12px + var(--ui-safe-top)) !important;
    padding-bottom: calc(32px + var(--ui-safe-bottom)) !important
}

.oem-section-first {
    margin-top: 2px
}

.oem-titlebar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 46px;
    margin: 0 12px 14px;
    padding: 0 10px
}

.oem-titlebar--packs {
    position: relative;
    display: flex;
    justify-content: center
}

.oem-titlebar-title {
    margin: 0;
    color: var(--ui-text);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.05
}

.oem-titlebar-title--center {
    max-width: 170px;
    overflow: hidden;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -.012em;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap
}

.oem-titlebar-action,
.oem-titlebar-back {
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ui-text);
    cursor: pointer;
    font-family: var(--ui-font);
    font-size: 16px;
    font-weight: 550;
    -webkit-tap-highlight-color: transparent
}

.oem-titlebar-action {
    position: relative;
    isolation: isolate;
    overflow: clip;
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 4px;
    padding: 0 11px 0 13px;
    border: .5px solid rgba(255,255,255,.14);
    border-radius: var(--ui-radius-pill);
    background: rgba(255,255,255,.085);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 7px 24px rgba(0,0,0,.16);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    backdrop-filter: blur(16px) saturate(135%);
    transition:
        opacity .18s var(--ui-ease),
        transform .24s cubic-bezier(.22,1,.36,1)
}

#packsTab .oem-lgs-canvas {
    display: none !important
}

.oem-titlebar-action:before {
    content: none
}

.oem-titlebar-action > svg {
    width: 17px;
    height: 17px
}

.oem-titlebar-action:active,
.oem-titlebar-back:active {
    opacity: .45;
}

.oem-titlebar-action:active {
    transform: scale(.98)
}

.oem-titlebar-back:active {
    transform: translateY(-50%) scale(.98)
}

.oem-titlebar-back {
    position: absolute;
    left: 0;
    top: 50%;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    transform: translateY(-50%)
}

.oem-titlebar-back > svg {
    width: 20px;
    height: 20px
}

.oem-titlebar-balance {
    display: none
}

.oem-emoji {
    display: inline-flex !important;
    flex: 0 0 auto;
    width: 30px !important;
    height: 30px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    background: transparent;
    box-shadow: inset 0 0.5px 0 rgba(255,255,255,.28) !important;
    border: 0 !important;
    overflow: hidden;
    flex-shrink: 0;
}

.oem-emoji--lg {
    width: 44px !important;
    height: 44px !important;
    border-radius: 11px !important;
}

.oem-emoji svg {
    width: 18px !important;
    height: 18px !important;
    fill: currentColor !important;
    stroke: none !important;
    color: #ffffff !important;
}

.oem-emoji--lg svg {
    width: 24px !important;
    height: 24px !important;
    fill: currentColor !important;
    stroke: none !important;
    color: #ffffff !important;
}

/* Color mapping for Apple squircles */
/* Monochrome squircles — iOS 27 gray only */
.oem-icon-text { --oem-icon-bg: #636366 !important; background: var(--oem-icon-bg) !important; }
.oem-icon-upload { --oem-icon-bg: #48484a !important; background: var(--oem-icon-bg) !important; }
.oem-icon-fill { --oem-icon-bg: #636366 !important; background: var(--oem-icon-bg) !important; }
.oem-icon-stroke { --oem-icon-bg: #48484a !important; background: var(--oem-icon-bg) !important; }
.oem-icon-layers { --oem-icon-bg: #636366 !important; background: var(--oem-icon-bg) !important; }
.oem-icon-content { --oem-icon-bg: #48484a !important; background: var(--oem-icon-bg) !important; }
.oem-icon-palette { background: linear-gradient(135deg, #636366, #48484a, #3a3a3c) !important; }
.oem-icon-folder { --oem-icon-bg: #636366 !important; background: var(--oem-icon-bg) !important; }
.oem-icon-back { --oem-icon-bg: #636366 !important; background: var(--oem-icon-bg) !important; }
.oem-icon-external { --oem-icon-bg: #636366 !important; background: var(--oem-icon-bg) !important; }
.oem-icon-delete { --oem-icon-bg: #ff453a !important; background: var(--oem-icon-bg) !important; }

/* Separator starts after the icon column, matching iOS */
.ui-row+.ui-row:before {
    left: 60px !important;
}

.oem-trailing {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    color: var(--ui-hint)
}

.oem-trailing svg {
    width: 18px;
    height: 18px
}

.oem-nav-btn {
    width: 40px;
    height: 40px;
    color: var(--ui-text-2)
}

.oem-nav-btn svg {
    width: 22px;
    height: 22px
}

.oem-emoji-media-wrap,
.oem-emoji-lottie,
.oem-emoji-media {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    background: transparent
}

.oem-emoji-lottie svg {
    width: 100% !important;
    height: 100% !important
}

.oem-line-wrap {
    display: block;
    padding: 0 12px 12px
}

/* Telegram iOS folder-tabs segmented control */
.oem-line-segmented {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 32px;
    padding: 2px;
    border-radius: 999px;
    border: 0;
    background: rgba(118, 118, 128, 0.24);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.oem-line-segmented:after {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 2px;
    width: calc(50% - 2px);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
    box-shadow:
        0 0.5px 1px rgba(0, 0, 0, 0.24),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.14);
    transform: translateX(0);
    transition: transform 0.28s cubic-bezier(0.25, 1, 0.38, 1);
    will-change: transform;
    z-index: 1;
    pointer-events: none;
}

[data-theme=light] .oem-line-segmented {
    background: rgba(120, 120, 128, 0.16);
}

[data-theme=light] .oem-line-segmented:after {
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 0.5px 0 rgba(0, 0, 0, 0.04);
}

.oem-line-segmented[data-active-tab="1"]:after {
    transform: translateX(calc(100%));
}

.oem-line-segmented .ui-segment {
    height: 100%;
    width: 100%;
    font-size: 14px;
    border-radius: 999px;
    background: transparent !important;
    border: 0;
    box-shadow: none !important;
    z-index: 2;
    color: rgba(235, 235, 245, 0.55);
    font-weight: 590;
    letter-spacing: -.01em;
    transition: color 0.2s ease;
}

[data-theme=light] .oem-line-segmented .ui-segment {
    color: rgba(60, 60, 67, 0.55);
}

.oem-line-segmented .ui-segment--active {
    color: #ffffff;
    font-weight: 610;
}

[data-theme=light] .oem-line-segmented .ui-segment--active {
    color: #000000;
}

.oem-catalog-count {
    margin-top: 0;
    margin-bottom: 10px
}

.oem-color-presets {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 8px 12px 14px;
    padding: 4px;
    border-radius: 13px;
    background: var(--ui-fill-2)
}

.oem-color-preset {
    position: relative;
    width: auto;
    height: 30px;
    flex: 1 1 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    outline: 0;
    background: linear-gradient(135deg,var(--preset) 0 58%,var(--preset-stroke) 59% 100%);
    cursor: pointer;
    box-shadow:
        inset 0 0 0 .5px rgba(255,255,255,.16),
        inset 0 0 0 1px rgba(0,0,0,.14);
    transition:
        transform .3s cubic-bezier(.22,1,.36,1),
        outline-color .18s var(--ui-ease),
        box-shadow .18s var(--ui-ease)
}

.oem-color-preset:active {
    transform: scale(.94)
}

.oem-color-preset.is-active {
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.72),
        inset 0 0 0 3px rgba(0,0,0,.3)
}

.oem-template-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px;
    padding: 0 12px 8px
}

.oem-template-tile {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    animation: oem-tile-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.oem-template-preview {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    isolation: isolate;
    border-radius: 18px;
    background: var(--oem-tile-surface);
    transition:
        box-shadow .4s cubic-bezier(0.16, 1, 0.3, 1),
        transform .45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.oem-template-preview:after {
    content: "";
    position: absolute;
    z-index: 4;
    inset: 0;
    border: 1.5px solid transparent;
    border-radius: inherit;
    pointer-events: none;
    transition: border-color .15s cubic-bezier(0.25, 0.8, 0.25, 1)
}

.oem-template-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    opacity: 0;
    transition: opacity .12s cubic-bezier(0.25, 0.8, 0.25, 1)
}

.oem-template-img.is-loaded {
    opacity: 1
}

.oem-template-live {
    position: absolute;
    z-index: 5;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    background: transparent;
    pointer-events: none;
}

.oem-template-live svg {
    display: block;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden
}

.oem-template-tile--live .oem-template-img {
    display: none !important;
}

.oem-template-tile:active .oem-template-preview {
    transform: scale(.91);
    transition: transform .08s cubic-bezier(0.25, 1, 0.5, 1);
}

.oem-template-tile--selected .oem-template-preview {
    transform: scale(0.95);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.oem-template-tile--selected .oem-template-preview:after {
    border: 2.8px solid rgba(255, 255, 255, 0.72);
}

/* Beautiful iOS 27 style checkmark badge */
.oem-template-tile--selected:before {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    width: 20px;
    height: 20px;
    background-color: var(--ui-badge-bg);
    background-image: var(--ui-badge-svg);
    background-size: 10px;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    z-index: 10;
    pointer-events: none;
    animation: oem-badge-pop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes oem-badge-pop {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes oem-tile-fade-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.oem-template-tile:focus {
    outline: none
}

.oem-template-tile:focus-visible:not(.oem-template-tile--selected) .oem-template-preview:after {
    border-color: rgba(255, 255, 255, 0.35);
}

.oem-pager {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 12px 8px;
    padding: 8px 10px;
    border-radius: var(--ui-radius-card);
    background: var(--ui-card)
}

.oem-pager-body {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center
}

.oem-color-row {
    cursor: pointer
}

.ui-field:disabled {
    color: var(--ui-hint);
    cursor: default;
    opacity: .62
}

#textRow[hidden],
#textInput[hidden] {
    display: none !important
}

/* Apple iOS Settings style input row */
.oem-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.oem-input-label {
    font-size: 17px;
    font-weight: 400;
    color: var(--ui-text);
    flex: 0 0 auto !important;
    margin-right: 8px;
}

.oem-input-value {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.oem-row-input {
    flex: 0 1 auto;
    width: 7ch;
    max-width: 100%;
    min-width: 3ch;
    text-align: left !important;
    direction: ltr !important;
    padding: 0 !important;
    min-height: 0 !important;
    font-size: 17px !important;
    letter-spacing: -.01em;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: var(--ui-hint) !important;
    caret-color: #ebebf5;
    field-sizing: content;
}

.oem-row-input:not(:placeholder-shown) {
    color: var(--ui-text) !important;
}

.oem-row-input::placeholder {
    color: var(--ui-hint) !important;
    text-align: left !important;
}

#textStatus {
    display: none !important;
}

.oem-logo-remove,
.oem-logo-remove .ui-row-title,
.oem-logo-remove .oem-trailing {
    color: var(--ui-destructive)
}

.oem-color-after {
    display: inline-flex;
    align-items: center;
    gap: 10px
}

.oem-color-swatch {
    display: inline-block;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ui-accent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb,#000 10%,transparent)
}

.oem-color-swatch--ring {
    background: transparent;
    box-shadow: inset 0 0 0 3px var(--oem-stroke-color,var(--ui-text))
}

.oem-color-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none
}

.oem-color-hex {
    min-width: 74px;
    color: var(--ui-text-2);
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em
}

.oem-draft-card .ui-row-after {
    color: var(--ui-text)
}

.oem-draft-colors {
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.oem-pack-row .ui-row-body,
.oem-sticker-row .ui-row-body {
    min-width: 0
}

.oem-sticker-row + .oem-sticker-row:before,
.oem-pack-row + .oem-pack-row:before {
    left: 66px
}

.oem-draft-card {
    background: var(--ui-card)
}

.oem-destructive-row,
.oem-destructive-row .ui-row-title {
    color: var(--ui-destructive)
}

.ui-cta-bar.oem-cta-bar {
    bottom: 0;
    z-index: 50;
    padding: 14px 12px calc(14px + var(--ui-safe-bottom));
    background: transparent;
    transform: translate3d(0,0,0) !important;
    transition: none !important;
    will-change: auto
}

.ui-cta-bar.oem-cta-bar:before {
    content: "";
    position: absolute !important;
    left: 0;
    right: 0;
    top: -88px !important;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent 0%,
        color-mix(in srgb,var(--ui-bg) 18%,transparent) 22%,
        color-mix(in srgb,var(--ui-bg) 58%,transparent) 48%,
        color-mix(in srgb,var(--ui-bg) 88%,transparent) 70%,
        var(--ui-bg) 86%
    ) !important
}

.ui-cta-bar.oem-cta-bar .ui-cta-bar-inner {
    position: relative;
    z-index: 1
}

.ui-cta-bar .ui-button {
    opacity: 1 !important;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: 
        background 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.ui-cta-bar .ui-button:disabled {
    opacity: 1 !important;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: 
        background 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.ui-cta-bar .ui-button:active:not(:disabled) {
    transform: scale(0.97) translateZ(0) !important;
    transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.ui-cta--off > .ui-button:disabled {
    cursor: default;
    background: var(--oem-disabled-button);
    color: var(--oem-disabled-text);
    border: 0.5px solid transparent !important;
    box-shadow: none !important;
    filter: none
}

.ui-cta:not(.ui-cta--off) {
    padding: 0;
    border-radius: var(--ui-radius-pill);
    background: transparent;
    border: 0;
    box-shadow: none;
    animation: none;
    transition:
        transform .45s cubic-bezier(.22,1,.36,1),
        opacity .35s ease
}

.ui-cta--off {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    animation: none !important;
    transition:
        transform .45s cubic-bezier(.22,1,.36,1),
        opacity .35s ease
}

.ui-cta.ui-cta--ignite {
    animation: oem-cta-ignite .62s cubic-bezier(.22,1,.36,1)
}

.ui-cta:not(.ui-cta--off) > .ui-button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--ui-text);
    background: rgba(255, 255, 255, 0.14) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.2) !important;
    -webkit-backdrop-filter: blur(25px) saturate(190%) !important;
    backdrop-filter: blur(25px) saturate(190%) !important;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.25), 
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    transition:
        color .4s cubic-bezier(.22,1,.36,1),
        transform .45s cubic-bezier(.22,1,.36,1),
        opacity .35s ease
}

[data-theme=light] .ui-cta:not(.ui-cta--off) > .ui-button {
    background: rgba(0, 0, 0, 0.08) !important;
    border: 0.5px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.08), 
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.ui-cta--off > .ui-button:disabled {
    cursor: default;
    background: var(--oem-disabled-button);
    color: var(--oem-disabled-text);
    filter: none;
    transition:
        background .4s cubic-bezier(.22,1,.36,1),
        color .4s cubic-bezier(.22,1,.36,1),
        transform .35s cubic-bezier(.22,1,.36,1)
}

@keyframes oem-cta-ignite {
    0% {
        transform: scale(.97);
        opacity: .82
    }

    42% {
        transform: scale(1.02)
    }

    100% {
        transform: scale(1);
        opacity: 1
    }
}

body.oem-scrolling .ui-cta {
    animation: none !important
}

.oem-bottom-spacer {
    height: calc(112px + var(--ui-safe-bottom)) !important
}

body.oem-packs-active #createBar {
    display: none !important
}

@keyframes oem-live-in {
    from {
        opacity: 0
    }
}

@keyframes oem-screen-in {
    from {
        opacity: 0;
        transform: translateX(8px)
    }
}

.ui-screen:not([hidden]) {
    animation: oem-screen-in .28s cubic-bezier(.22,1,.36,1) both
}

@media (prefers-reduced-motion:reduce) {
    .oem-template-preview,
    .oem-template-img,
    .oem-titlebar-action,
    .oem-titlebar-back,
    .oem-color-preset {
        transition: none
    }

    .ui-cta:not(.ui-cta--off),
    .ui-screen:not([hidden]),
    .oem-template-live {
        animation: none
    }
}


/* Boot splash */
.oem-boot-splash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    margin: 0;
    padding: 0;
    background: #000;
    color-scheme: dark;
    transition: opacity .28s ease, visibility .28s ease;
}
.oem-boot-splash[hidden] {
    display: none !important;
}
.oem-boot-splash.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.oem-boot-lottie {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(72vw, 300px);
    height: min(72vw, 300px);
    margin: 0;
    transform: translate(-50%, -50%);
}
.oem-boot-lottie svg,
.oem-boot-lottie canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}
.oem-boot-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    margin: 0;
    padding: 0 24px;
    text-align: center;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(235, 235, 245, 0.62);
    pointer-events: none;
}

.oem-template-live-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: inherit;
}
