:root {
    color-scheme: light;

    --accent: #635bff;
    --accent-strong: #5147f3;
    --accent-soft: #eeedff;

    --surface: #ffffff;
    --surface-soft: #f6f7fb;
    --surface-muted: #eef0f6;
    --surface-elevated: rgba(255, 255, 255, .92);

    --text: #171821;
    --text-soft: #686b78;
    --text-faint: #9497a5;

    --border: rgba(26, 29, 42, .09);
    --shadow: 0 12px 38px rgba(31, 36, 58, .08);

    --danger: #d94155;

    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;

    --topbar-height: 64px;
    --bottom-nav-height: 76px;
    --desktop-nav-width: 248px;

    --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);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--surface-soft);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html {
    overscroll-behavior: none;
}

body {
    min-width: 320px;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
}

button,
[data-nav-route],
[data-tool] {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
    outline: 3px solid rgba(99, 91, 255, .24);
    outline-offset: 2px;
}

svg {
    display: block;
}

.app-shell {
    min-height: 100vh;
    min-height: 100dvh;
}

.app-topbar {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    right: 0;

    height: calc(var(--topbar-height) + var(--safe-top));
    padding:
        var(--safe-top)
        max(16px, var(--safe-right))
        0
        max(16px, var(--safe-left));

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(246, 247, 251, .88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;

    display: grid;
    place-items: center;

    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            #736cff,
            #5147e8
        );

    box-shadow:
        0 8px 22px rgba(99, 91, 255, .26);
}

.brand__mark::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 5px;
    border: 2px solid currentColor;
    transform: rotate(9deg);
}

.brand__text {
    min-width: 0;
}

.brand__text strong,
.brand__text span {
    display: block;
}

.brand__text strong {
    font-size: 15px;
    letter-spacing: -.02em;
}

.brand__text span {
    margin-top: 1px;
    color: var(--text-faint);
    font-size: 11px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button {
    width: 40px;
    height: 40px;
    border-radius: 14px;

    display: grid;
    place-items: center;

    color: var(--text);
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--border);

    cursor: pointer;
}

.avatar-button {
    width: 40px;
    height: 40px;
    border-radius: 14px;

    display: grid;
    place-items: center;

    font-size: 13px;
    font-weight: 750;

    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            #262936,
            #494e61
        );

    cursor: pointer;
}

.app-sidebar {
    display: none;
}

.app-content {
    min-height: 100vh;
    min-height: 100dvh;

    padding:
        calc(var(--topbar-height) + var(--safe-top) + 18px)
        max(16px, var(--safe-right))
        calc(var(--bottom-nav-height) + var(--safe-bottom) + 24px)
        max(16px, var(--safe-left));

    overflow-x: hidden;
}

.app-view {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.app-bottom-nav {
    position: fixed;
    z-index: 35;

    left: 0;
    right: 0;
    bottom: 0;

    min-height:
        calc(var(--bottom-nav-height) + var(--safe-bottom));

    padding:
        7px
        max(8px, var(--safe-right))
        var(--safe-bottom)
        max(8px, var(--safe-left));

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;

    background: rgba(255, 255, 255, .92);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    border-top: 1px solid var(--border);

    box-shadow:
        0 -12px 35px rgba(30, 34, 52, .06);
}

.bottom-nav-item {
    min-width: 0;
    min-height: 57px;
    border-radius: 18px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    color: var(--text-faint);
    background: transparent;

    font-size: 10px;
    font-weight: 650;

    cursor: pointer;

    transition:
        color .2s ease,
        background .2s ease,
        transform .15s ease;
}

.bottom-nav-item svg {
    width: 21px;
    height: 21px;
}

.bottom-nav-item.is-active {
    color: var(--accent);
    background: var(--accent-soft);
}

.bottom-nav-item:active {
    transform: scale(.94);
}

.page {
    animation: page-in .24s ease both;
}

@keyframes page-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-heading {
    margin: 4px 0 20px;
}

.home-heading h1,
.page-heading h1 {
    margin: 7px 0 7px;

    font-size:
        clamp(27px, 7vw, 42px);

    line-height: 1.08;
    letter-spacing: -.045em;
}

.home-heading p,
.page-heading p {
    max-width: 620px;
    margin: 0;

    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.55;
}

.eyebrow {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-create {
    position: relative;
    overflow: hidden;

    min-height: 235px;
    padding: 25px;

    border-radius: var(--radius-lg);

    display: flex;
    align-items: center;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 83% 20%,
            rgba(255, 255, 255, .22),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #5147e8,
            #756eff 56%,
            #9074ff
        );

    box-shadow:
        0 24px 50px rgba(81, 71, 232, .20);
}

.hero-create__content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.hero-create__badge {
    display: inline-flex;

    padding: 7px 10px;
    border-radius: 999px;

    color: rgba(255, 255, 255, .88);
    background: rgba(255, 255, 255, .14);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.hero-create h2 {
    max-width: 410px;

    margin: 16px 0 8px;

    font-size:
        clamp(25px, 7vw, 40px);

    line-height: 1.05;
    letter-spacing: -.045em;
}

.hero-create p {
    max-width: 480px;

    margin: 0;

    color: rgba(255, 255, 255, .78);

    font-size: 13px;
    line-height: 1.55;
}

.hero-create__actions {
    margin-top: 21px;

    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.primary-button,
.secondary-button {
    min-height: 46px;
    padding: 0 17px;
    border-radius: 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    font-weight: 750;
    font-size: 13px;

    cursor: pointer;

    transition:
        transform .16s ease,
        box-shadow .2s ease;
}

.primary-button {
    color: var(--accent);
    background: #ffffff;

    box-shadow:
        0 8px 22px rgba(17, 20, 35, .11);
}

.secondary-button {
    color: #ffffff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
}

.primary-button:active,
.secondary-button:active {
    transform: scale(.97);
}

.hero-create__visual {
    position: absolute;
    right: -12px;
    bottom: -10px;

    width: 160px;
    height: 175px;

    opacity: .8;
}

.visual-card {
    position: absolute;
    width: 78px;
    height: 102px;

    border-radius: 19px;

    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .20);

    backdrop-filter: blur(8px);
}

.visual-card--one {
    right: 67px;
    bottom: 4px;
    transform: rotate(-13deg);
}

.visual-card--two {
    right: 10px;
    bottom: 18px;
    transform: rotate(11deg);
}

.visual-card--three {
    right: 44px;
    bottom: 51px;

    display: grid;
    place-items: center;

    transform: rotate(-1deg);

    color: #ffffff;
    background: rgba(255, 255, 255, .20);
}

.section-heading {
    margin: 29px 0 13px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
}

.section-heading h2 {
    margin: 0;

    font-size: 18px;
    letter-spacing: -.025em;
}

.section-heading p {
    margin: 4px 0 0;

    color: var(--text-faint);

    font-size: 12px;
}

.section-heading--inside {
    margin-top: 0;
}

.text-button {
    padding: 8px 4px;

    color: var(--accent);
    background: transparent;

    font-size: 12px;
    font-weight: 750;

    cursor: pointer;
}

.tool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.tool-card {
    width: 100%;
    min-width: 0;

    padding: 14px;
    border-radius: 19px;

    display: flex;
    align-items: center;
    gap: 13px;

    color: var(--text);
    text-align: left;

    background: var(--surface);
    border: 1px solid var(--border);

    box-shadow:
        0 8px 24px rgba(30, 34, 52, .035);

    cursor: pointer;

    transition:
        transform .16s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.tool-card:hover {
    border-color: rgba(99, 91, 255, .22);

    box-shadow:
        0 13px 30px rgba(30, 34, 52, .07);
}

.tool-card:active {
    transform: scale(.985);
}

.tool-card__icon {
    flex: 0 0 auto;

    width: 47px;
    height: 47px;

    border-radius: 16px;

    display: grid;
    place-items: center;

    color: var(--accent);
    background: var(--accent-soft);
}

.tool-card__body {
    min-width: 0;
    flex: 1;
}

.tool-card__body strong,
.tool-card__body span {
    display: block;
}

.tool-card__body strong {
    margin-bottom: 4px;

    font-size: 14px;
    font-weight: 770;
    letter-spacing: -.015em;
}

.tool-card__body span {
    color: var(--text-soft);

    font-size: 11px;
    line-height: 1.45;
}

.tool-card__arrow {
    color: var(--text-faint);
}

.horizontal-tools {
    margin-left: calc(max(16px, var(--safe-left)) * -1);
    margin-right: calc(max(16px, var(--safe-right)) * -1);

    padding:
        0
        max(16px, var(--safe-right))
        5px
        max(16px, var(--safe-left));

    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(135px, 42vw);
    gap: 9px;

    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;

    scroll-snap-type: x proximity;
}

.horizontal-tools::-webkit-scrollbar {
    display: none;
}

.tool-card--compact {
    min-height: 100px;

    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;

    scroll-snap-align: start;
}

.tool-card--compact .tool-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
}

.tool-card--compact .tool-card__body strong {
    margin: 0;
    font-size: 12px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.quick-grid .tool-card--compact {
    min-height: 105px;
}

.recent-panel {
    margin-top: 30px;
    padding: 19px;

    border-radius: var(--radius-md);

    background: var(--surface);
    border: 1px solid var(--border);
}

.empty-project {
    padding: 17px;

    border-radius: 16px;

    display: flex;
    align-items: center;
    gap: 13px;

    background: var(--surface-soft);
}

.empty-project__icon {
    flex: 0 0 auto;

    width: 43px;
    height: 43px;

    border-radius: 14px;

    display: grid;
    place-items: center;

    color: var(--text-soft);
    background: var(--surface);
}

.empty-project strong,
.empty-project span {
    display: block;
}

.empty-project strong {
    font-size: 13px;
}

.empty-project span {
    margin-top: 4px;

    color: var(--text-faint);

    font-size: 11px;
    line-height: 1.4;
}

.page-heading {
    margin: 5px 0 23px;
}

.state-card,
.tool-placeholder {
    max-width: 720px;

    padding: 28px;

    border-radius: var(--radius-lg);

    background: var(--surface);
    border: 1px solid var(--border);

    box-shadow: var(--shadow);
}

.state-card__icon,
.tool-placeholder__icon {
    width: 58px;
    height: 58px;

    margin-bottom: 19px;

    border-radius: 19px;

    display: grid;
    place-items: center;

    color: var(--accent);
    background: var(--accent-soft);
}

.state-card h1,
.state-card h2,
.tool-placeholder h1 {
    margin: 0 0 9px;
    letter-spacing: -.035em;
}

.state-card h2 {
    font-size: 21px;
}

.state-card p,
.tool-placeholder p {
    margin: 0;

    color: var(--text-soft);

    font-size: 13px;
    line-height: 1.6;
}

.phase-chip {
    display: inline-flex;

    margin-top: 18px;
    padding: 7px 10px;

    border-radius: 999px;

    color: var(--accent);
    background: var(--accent-soft);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
}

.status-row {
    margin-top: 12px;
    padding: 12px 0 0;

    display: flex;
    justify-content: space-between;
    gap: 20px;

    border-top: 1px solid var(--border);

    color: var(--text-soft);

    font-size: 12px;
}

.status-row strong {
    color: var(--text);
}

.back-button {
    margin-bottom: 16px;
    padding: 8px 3px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--text-soft);
    background: transparent;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.back-button > span {
    font-size: 25px;
    line-height: 1;
}

.tool-placeholder {
    max-width: 800px;
}

.tool-placeholder h1 {
    margin-top: 7px;

    font-size:
        clamp(28px, 8vw, 44px);
}

.tool-meta {
    margin-top: 24px;

    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.tool-meta > div {
    padding: 13px 14px;

    border-radius: 15px;

    background: var(--surface-soft);
}

.tool-meta span,
.tool-meta strong {
    display: block;
}

.tool-meta span {
    color: var(--text-faint);

    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.tool-meta strong {
    margin-top: 3px;
    font-size: 12px;
}

.development-notice {
    margin-top: 19px;
    padding: 15px 16px;

    border-radius: 15px;

    color: var(--text-soft);
    background: var(--accent-soft);

    font-size: 12px;
    line-height: 1.55;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (min-width: 768px) {

    :root {
        --topbar-height: 68px;
    }

    .app-topbar {
        left: 88px;

        padding-left: 24px;
        padding-right: 24px;
    }

    .app-sidebar {
        position: fixed;
        z-index: 40;

        inset:
            0
            auto
            0
            0;

        width: 88px;

        padding:
            calc(16px + var(--safe-top))
            10px
            calc(14px + var(--safe-bottom));

        display: flex;
        flex-direction: column;

        background: var(--surface);

        border-right: 1px solid var(--border);
    }

    .sidebar-brand {
        height: 45px;

        display: grid;
        place-items: center;

        margin-bottom: 24px;
    }

    .sidebar-brand .brand__mark {
        width: 39px;
        height: 39px;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .sidebar-nav-item {
        min-height: 61px;

        border-radius: 18px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;

        color: var(--text-faint);
        background: transparent;

        font-size: 9px;
        font-weight: 700;

        cursor: pointer;

        transition:
            color .2s ease,
            background .2s ease;
    }

    .sidebar-nav-item.is-active {
        color: var(--accent);
        background: var(--accent-soft);
    }

    .app-content {
        margin-left: 88px;

        padding:
            calc(var(--topbar-height) + var(--safe-top) + 25px)
            25px
            38px;
    }

    .app-bottom-nav {
        display: none;
    }

    .hero-create {
        min-height: 275px;
        padding: 34px;
    }

    .hero-create__visual {
        width: 260px;
        height: 220px;
        right: 25px;
    }

    .visual-card {
        width: 105px;
        height: 137px;
    }

    .visual-card--one {
        right: 105px;
    }

    .visual-card--two {
        right: 15px;
    }

    .visual-card--three {
        right: 60px;
        bottom: 62px;
    }

    .tool-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .quick-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .horizontal-tools {
        margin: 0;
        padding: 0 0 5px;

        grid-auto-columns: minmax(150px, 190px);
    }

    .tool-meta {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ==========================================================
   DESKTOP
   ========================================================== */

@media (min-width: 1200px) {

    :root {
        --desktop-nav-width: 248px;
    }

    .app-topbar {
        left: var(--desktop-nav-width);

        padding-left: 34px;
        padding-right: 34px;
    }

    .app-topbar .brand {
        display: none;
    }

    .app-topbar::before {
        content: "Workspace";

        color: var(--text-soft);

        font-size: 13px;
        font-weight: 700;
    }

    .app-sidebar {
        width: var(--desktop-nav-width);

        padding:
            calc(22px + var(--safe-top))
            15px
            calc(18px + var(--safe-bottom));
    }

    .sidebar-brand {
        height: auto;

        margin: 0 9px 29px;

        display: flex;
        justify-content: flex-start;
    }

    .sidebar-brand .brand {
        display: flex;
    }

    .sidebar-nav {
        gap: 5px;
    }

    .sidebar-nav-item {
        min-height: 49px;

        padding: 0 13px;

        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;

        border-radius: 14px;

        font-size: 13px;
    }

    .sidebar-nav-item svg {
        width: 20px;
        height: 20px;
    }

    .app-content {
        margin-left: var(--desktop-nav-width);

        padding:
            calc(var(--topbar-height) + 32px)
            36px
            54px;
    }

    .app-view {
        max-width: 1320px;
    }

    .home-heading {
        margin-bottom: 24px;
    }

    .hero-create {
        min-height: 295px;
        padding: 42px;
    }

    .tool-grid--featured {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .tool-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .quick-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .horizontal-tools {
        grid-auto-columns: minmax(170px, 205px);
    }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}


/* ==========================================================
   PHASE1A_FIX1_TABLET_NAV_RAIL
   Tablet-specific Navigation Rail refinement.
   Mobile dan Desktop tidak diubah.
   ========================================================== */

@media (min-width: 768px) and (max-width: 1199.98px) {

    /*
     * Tablet rail hanya menampilkan brand mark.
     * Nama aplikasi sudah tersedia pada top app bar.
     */
    .sidebar-brand {
        margin-bottom: 22px;
    }

    .sidebar-brand .brand {
        width: 100%;
        justify-content: center;
        gap: 0;
    }

    .sidebar-brand .brand__text {
        display: none;
    }

    /*
     * Pastikan SVG tidak memakai intrinsic/default browser size.
     */
    .sidebar-nav-item svg {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
    }

    .sidebar-nav-item {
        width: 100%;
        min-height: 61px;
        padding: 7px 3px;

        gap: 5px;

        overflow: hidden;

        font-size: 9px;
        line-height: 1.15;
        text-align: center;
    }

    .sidebar-nav-item span {
        display: block;

        width: 100%;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sidebar-nav-item.is-active {
        background: var(--accent-soft);
    }
}

/* UAPIK_ACCOUNT_HEADER_AVATAR_V1 */
.avatar-button[data-account-avatar] { overflow:hidden; padding:0; }
.avatar-button[data-account-avatar] img { width:100%; height:100%; display:block; object-fit:cover; border-radius:inherit; }
.avatar-button[data-account-avatar].has-user-avatar { background:#eef0f6; }

/* UAPIK_TOOL_COST_BADGES_V1 */
.tool-card__cost{flex:0 0 auto;align-self:center;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:900;line-height:1;white-space:nowrap;border:1px solid transparent}
.tool-card__cost.is-free{background:#ecfdf5;border-color:#bbf7d0;color:#047857}
.tool-card__cost.is-credit{background:#eef2ff;border-color:#c7d2fe;color:#4338ca}
.tool-card--compact .tool-card__cost,.tool-card--quick-home .tool-card__cost{align-self:flex-start;margin-top:2px}
@media(max-width:520px){.tool-card__cost{font-size:8px;padding:4px 7px}.tool-card:not(.tool-card--compact):not(.tool-card--quick-home) .tool-card__cost{margin-left:auto}}

/* UAPIK_MOBILE_ACTION_DENSITY_V1 */
@media (max-width: 767px) {
    /* Three short result actions: cancel / download / apply. */
    .true-upscale-compare__actions,
    .studio-bg-actions,
    .object-remover-compare__actions {
        grid-template-columns: repeat(3, 54px) !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .true-upscale-compare__actions > .ui-button,
    .studio-bg-actions > .ui-button,
    .object-remover-compare__actions > .ui-button {
        width: 54px !important;
        min-width: 54px !important;
        height: 54px !important;
        min-height: 54px !important;
        padding: 0 !important;
        border-radius: 15px !important;
        font-size: 0 !important;
        display: inline-grid !important;
        place-items: center !important;
    }

    .true-upscale-compare__actions > .ui-button::before,
    .studio-bg-actions > .ui-button::before,
    .object-remover-compare__actions > .ui-button::before {
        display: block;
        font-size: 24px;
        line-height: 1;
        font-weight: 800;
        transform: translateY(1px);
    }

    .true-upscale-compare__actions > .ui-button:nth-child(1)::before,
    .studio-bg-actions > .ui-button:nth-child(1)::before,
    .object-remover-compare__actions > .ui-button:nth-child(1)::before { content: '×'; }
    .true-upscale-compare__actions > .ui-button:nth-child(2)::before,
    .studio-bg-actions > .ui-button:nth-child(2)::before,
    .object-remover-compare__actions > .ui-button:nth-child(2)::before { content: '↓'; }
    .true-upscale-compare__actions > .ui-button:nth-child(3)::before,
    .studio-bg-actions > .ui-button:nth-child(3)::before,
    .object-remover-compare__actions > .ui-button:nth-child(3)::before { content: '✓'; }

    /* Two short actions should stay side-by-side on phones. */
    .restore-photo-result-actions,
    .true-upscale-result-actions,
    .studio-bg-page-result-actions,
    .relight-page-actions,
    .ai-image-element-actions,
    .uapik-pf__actions,
    .uapik-sps__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }

    .restore-photo-result-actions > .ui-button,
    .true-upscale-result-actions > .ui-button,
    .studio-bg-page-result-actions > .ui-button,
    .relight-page-actions > .ui-button,
    .ai-image-element-actions > .ui-button,
    .uapik-pf__actions > .ui-button,
    .uapik-sps__actions > .ui-button {
        min-height: 44px !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
    }
}
