:root {
    --tivka-navy: #071f3d;
    --tivka-green: #0da56a;
    --tivka-ink: #091d3a;
    --tivka-muted: #66738a;
    --tivka-bg: #fff;
    --tivka-surface: #fff;
    --tivka-line: #e5e9ef;
    --tivka-radius-xl: 22px;
    --tivka-radius-lg: 18px;
    --tivka-radius-md: 14px;
    --tivka-shadow: 0 4px 12px rgba(7, 31, 61, .11);
    --service-market: #028a36;
    --service-restaurant: #fe6637;
    --service-pickup: #6f52dc;
    --service-taxi: #2b79f5;
    --service-services: #1f9e95;
}

*, *::before, *::after { box-sizing: border-box; }

.tivka-page {
    min-width: 320px;
    overflow-x: clip;
    color: var(--tivka-ink);
    background: var(--tivka-bg);
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
}

.tivka-page-content { min-height: 100dvh; }
.tivka-icon { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.superapp-shell {
    --superapp-bottom-nav-height: 68px;
    width: min(100%, 680px);
    min-height: 100dvh;
    margin: 0 auto;
    padding: 0 clamp(14px, 4vw, 18px) calc(var(--superapp-bottom-nav-height) + env(safe-area-inset-bottom));
    background: var(--tivka-bg);
}

.superapp-portal-header {
    position: relative;
    display: grid;
    min-height: clamp(104px, 28vw, 116px);
    margin: 0 calc(clamp(14px, 4vw, 18px) * -1);
    padding: max(14px, env(safe-area-inset-top)) 16px 32px;
    place-items: center;
    border-radius: 0 0 20px 20px;
    background: var(--tivka-navy);
}

.superapp-wordmark {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.superapp-wordmark img {
    display: block;
    width: min(153px, 42vw);
    height: auto;
    object-fit: contain;
}

.superapp-header-actions {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    right: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.superapp-icon-action, .superapp-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    text-decoration: none;
}

.superapp-icon-action-dark { color: #fff; }

.superapp-avatar-light {
    border: 2px solid #fff;
    color: #fff;
    background: #143960;
    font-size: .72rem;
    font-weight: 800;
    box-shadow: 0 2px 7px rgba(0,0,0,.18);
}

.superapp-location-pill {
    position: relative;
    z-index: 3;
    display: flex;
    width: fit-content;
    max-width: min(91vw, 320px);
    min-height: 43px;
    align-items: center;
    gap: 7px;
    margin: -21px auto 0;
    padding: 0 13px;
    border: 1px solid #e9edf1;
    border-radius: 999px;
    color: var(--tivka-ink);
    background: #fff;
    box-shadow: 0 3px 11px rgba(7,31,61,.13);
    text-decoration: none;
}

.superapp-location-pill > .tivka-icon:first-child { color: var(--tivka-green); }
.superapp-location-pill strong { overflow: hidden; font-size: .78rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.superapp-location-chevron { width: 1rem; height: 1rem; color: var(--tivka-ink); }

.superapp-welcome { margin: clamp(13px, 3vw, 17px) 5px clamp(10px, 3vw, 14px); }

.superapp-greeting {
    display: flex;
    gap: 5px;
    margin: 0 0 4px;
    color: var(--tivka-ink);
    font-size: .96rem;
    font-weight: 650;
}

.superapp-greeting strong { color: var(--tivka-green); font-weight: 800; }

.superapp-welcome h1 {
    max-width: 350px;
    margin: 0;
    color: var(--tivka-navy);
    font-size: clamp(1.75rem, 8.5vw, 2.18rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.02;
}

.superapp-welcome-lead {
    margin: 6px 0 0;
    color: var(--tivka-muted);
    font-size: clamp(.76rem, 3.6vw, .88rem);
    font-weight: 550;
    line-height: 1.28;
}

.superapp-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.superapp-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "market restaurant"
        "pickup pickup"
        "taxi services";
    gap: clamp(8px, 2.5vw, 11px);
}

.superapp-service-card {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    color: #fff;
    background: var(--service-color);
    box-shadow: 0 3px 9px rgba(7,31,61,.11);
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease;
}

.superapp-service-card::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(255,255,255,.035), transparent 60%);
    pointer-events: none;
}

.superapp-service-card:hover { transform: translateY(-2px); box-shadow: 0 8px 17px rgba(7,31,61,.17); }
.superapp-service-card:active { transform: translateY(0); }

/* A service card is deliberately composed of colour, copy, a transparent object, and an icon. */
.superapp-card-cutout {
    position: absolute;
    z-index: 2;
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: right bottom;
    pointer-events: none;
    user-select: none;
}

.superapp-card-copy {
    position: relative;
    z-index: 4;
    display: grid;
    gap: 2px;
    width: auto;
    max-width: 62%;
    margin-inline-end: auto;
    padding: clamp(12px, 3.5vw, 15px) clamp(12px, 3.7vw, 14px) 0;
    text-align: start;
    text-shadow: 0 1px 1px rgba(0,0,0,.11);
}

.superapp-card-copy strong {
    color: #fff;
    font-size: clamp(1.04rem, 5vw, 1.28rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.03;
}

.superapp-card-copy small {
    color: rgba(255,255,255,.97);
    font-size: clamp(.66rem, 3.1vw, .74rem);
    font-weight: 620;
    line-height: 1.2;
}

.superapp-pickup-badge {
    width: fit-content;
    margin-top: 1px;
    padding: 2px 7px;
    border-radius: 999px;
    color: #fff;
    background: var(--tivka-green);
    font-size: .62rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.15;
}

.superapp-card-icon {
    position: absolute;
    z-index: 5;
    bottom: 13px;
    inset-inline-start: 13px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: var(--service-color);
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,.08);
}

.superapp-card-icon .tivka-icon { width: 20px; height: 20px; stroke-width: 1.9; }
.superapp-service-market { grid-area: market; min-height: clamp(145px, 40vw, 164px); --service-color: var(--service-market); }
.superapp-service-restaurant { grid-area: restaurant; min-height: clamp(145px, 40vw, 164px); --service-color: var(--service-restaurant); }
.superapp-service-pickup { grid-area: pickup; min-height: clamp(112px, 30vw, 128px); --service-color: var(--service-pickup); background: linear-gradient(135deg, #765eda 0%, #614cd5 100%); }
.superapp-service-taxi { grid-area: taxi; min-height: clamp(103px, 28vw, 117px); --service-color: var(--service-taxi); }
.superapp-service-services { grid-area: services; min-height: clamp(103px, 28vw, 117px); --service-color: var(--service-services); }

.superapp-card-cutout-market {
    width: 100%;
    height: 78%;
    inset-inline-end: 1%;
    bottom: -2%;
    object-position: right bottom;
    transform: scaleX(1.18);
    transform-origin: right bottom;
}

/* Marchés: reserve a clean copy zone above the lower grocery composition. */
.superapp-service-market .superapp-card-copy { max-width: 90%; padding-top: 14px; }
.superapp-service-market .superapp-card-icon { bottom: 13px; }
.superapp-service-market .superapp-card-copy small { white-space: nowrap; }

.superapp-card-cutout-restaurant {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(1.15) saturate(.88);
    transform: none;
}

.superapp-service-restaurant::after { z-index: 3; background: rgba(255, 99, 55, .08); mix-blend-mode: screen; }

.superapp-service-restaurant .superapp-card-copy { max-width: 84%; padding-top: 14px; }

.superapp-service-pickup .superapp-card-copy { max-width: 49%; }
.superapp-service-pickup .superapp-card-copy strong { white-space: nowrap; }
.superapp-service-pickup .superapp-card-icon { width: 38px; height: 38px; bottom: 8px; }
.superapp-card-cutout-pickup {
    z-index: 2;
    width: 27%;
    height: 74%;
    inset-inline-start: 42%;
    bottom: 3%;
    object-position: center;
}

.superapp-pickup-skyline {
    position: absolute;
    z-index: 0;
    inset-inline-end: -2%;
    bottom: 0;
    width: 58%;
    height: 60%;
    color: #4224a2;
    opacity: .12;
    pointer-events: none;
}

.superapp-pickup-route {
    position: absolute;
    z-index: 1;
    inset-inline-end: 7%;
    bottom: 7%;
    width: 30%;
    height: 35%;
    pointer-events: none;
}

.superapp-pickup-route svg { display: block; width: 100%; height: 100%; overflow: visible; }
.superapp-pickup-route path, .superapp-pickup-route ellipse { fill: none; stroke: rgba(255,255,255,.68); stroke-width: 1.75; stroke-dasharray: 4 4; stroke-linecap: round; }

.superapp-pickup-pin {
    position: absolute;
    z-index: 3;
    top: 13px;
    inset-inline-end: 12px;
    width: 14%;
    height: 42%;
    min-width: 30px;
    min-height: 38px;
    color: #fff;
    pointer-events: none;
}

.superapp-pickup-pin .tivka-icon { width: 100%; height: 100%; stroke-width: 1.9; }

.superapp-service-taxi .superapp-card-copy { max-width: 64%; }
.superapp-service-taxi .superapp-card-icon { bottom: 8px; }
.superapp-service-services .superapp-card-copy { max-width: 64%; }
.superapp-service-services .superapp-card-icon { bottom: 8px; }
.superapp-card-cutout-taxi {
    width: 62%;
    height: 62%;
    inset-inline-end: 1%;
    bottom: 1%;
    object-position: right bottom;
}

.superapp-taxi-pin {
    position: absolute;
    z-index: 1;
    top: 9%;
    inset-inline-end: 14%;
    width: 23%;
    height: 50%;
    color: rgba(255,255,255,.94);
    pointer-events: none;
}

.superapp-taxi-pin .tivka-icon { width: 100%; height: 100%; stroke-width: 1.85; }

.superapp-card-cutout-services {
    width: 62%;
    height: 88%;
    inset-inline-end: -4%;
    bottom: -4%;
    object-position: right bottom;
    transform: scaleX(1.1);
    transform-origin: right bottom;
}

.superapp-service-services .superapp-card-copy small { max-width: 98px; font-size: .72rem; line-height: 1.16; }
.superapp-service-card:focus-visible, .superapp-location-pill:focus-visible, .superapp-icon-action:focus-visible, .superapp-avatar:focus-visible, .superapp-bottom-item:focus-visible {
    outline: 3px solid #ffca5e;
    outline-offset: 3px;
}

.superapp-current-activity { margin: clamp(10px, 3vw, 14px) 1px 0; }
.superapp-current-activity h2 { margin: 0 0 6px; color: var(--tivka-navy); font-size: .82rem; font-weight: 800; letter-spacing: -.02em; }

.superapp-activity-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    min-height: 48px;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    border: 1px solid var(--tivka-line);
    border-radius: 13px;
    color: var(--tivka-ink);
    background: #fff;
    box-shadow: 0 2px 7px rgba(7,31,61,.045);
    text-decoration: none;
}

.superapp-activity-empty { grid-template-columns: auto minmax(0, 1fr); }

.superapp-activity-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: var(--service-pickup);
    background: #f1edff;
}

.superapp-activity-icon .tivka-icon { width: 1.05rem; height: 1.05rem; }
.superapp-activity-copy { min-width: 0; display: grid; gap: 1px; }
.superapp-activity-copy strong { overflow: hidden; color: #20344d; font-size: .72rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.superapp-activity-copy small { overflow: hidden; color: var(--tivka-muted); font-size: .63rem; text-overflow: ellipsis; white-space: nowrap; }
.superapp-activity-status { max-width: 74px; overflow: hidden; padding: 3px 8px; border-radius: 999px; color: #7454bb; background: #f4f1fc; font-size: .64rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.superapp-activity-chevron { width: 1rem; height: 1rem; color: var(--tivka-navy); }
.superapp-bottom-nav {
    position: fixed;
    z-index: 100;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    min-height: var(--superapp-bottom-nav-height, 68px);
    padding: 6px 5px max(6px, env(safe-area-inset-bottom));
    border-top: 1px solid #e7ebef;
    border-radius: 0;
    background: rgba(255,255,255,.99);
    box-shadow: 0 -3px 10px rgba(7,31,61,.055);
    direction: ltr;
}

.superapp-bottom-item {
    position: relative;
    display: grid;
    min-height: 44px;
    place-items: center;
    align-content: center;
    gap: 2px;
    border-radius: 9px;
    color: #223248;
    font-size: .58rem;
    font-weight: 680;
    line-height: 1;
    text-decoration: none;
}

.superapp-bottom-item .tivka-icon { width: 1.25rem; height: 1.25rem; }
.superapp-bottom-item.is-active { color: var(--tivka-green); }
.superapp-bottom-item.is-active::after {
    position: absolute;
    right: 50%;
    bottom: 0;
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: var(--tivka-green);
    content: "";
    transform: translateX(50%);
}
.superapp-bottom-item.is-disabled { color: #98a2b3; cursor: not-allowed; user-select: none; }
html[dir="rtl"] .superapp-bottom-item > span { direction: rtl; unicode-bidi: isolate; }

.superapp-account-header {
    position: relative;
    display: flex;
    min-height: max(78px, calc(64px + env(safe-area-inset-top)));
    align-items: center;
    justify-content: space-between;
    margin: 0 calc(clamp(14px, 4vw, 18px) * -1);
    padding: max(8px, env(safe-area-inset-top)) 12px 8px;
    color: #fff;
    background: var(--tivka-navy);
    direction: ltr;
}

.superapp-account-back {
    position: relative;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
}

.superapp-account-back .tivka-icon { width: 28px; height: 28px; stroke-width: 2.15; }
.superapp-account-brand { position: absolute; top: max(8px, env(safe-area-inset-top)); bottom: 8px; left: 50%; display: grid; min-height: 44px; place-items: center; transform: translateX(-50%); }
.superapp-account-brand img { display: block; width: min(118px, 30vw); max-height: 42px; object-fit: contain; }
.superapp-account-languages { position: relative; z-index: 2; display: flex; min-height: 44px; align-items: center; color: rgba(255,255,255,.72); direction: ltr; }
.superapp-account-languages button { display: inline-grid; min-width: 36px; min-height: 44px; padding: 0 5px; place-items: center; border: 0; border-radius: 10px; color: inherit; background: transparent; font-size: .72rem; font-weight: 700; line-height: 1; }
.superapp-account-languages button:last-child { min-width: 54px; }
.superapp-account-languages button.is-active { color: #fff; }
.superapp-account-languages > span { width: 1px; height: 18px; background: rgba(255,255,255,.38); }
.superapp-account-back:hover, .superapp-account-back:focus-visible, .superapp-account-languages button:hover, .superapp-account-languages button:focus-visible { color: #fff; background: rgba(255,255,255,.1); }
html[dir="rtl"] .superapp-account-back .tivka-icon { transform: scaleX(-1); }

/* Service module shells remain intentionally separate from the portal. */
.superapp-module-shell { width: min(100%, 760px); min-height: calc(100dvh - 76px); margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 16px 94px; background: #fff; --service-color: var(--service-services); --service-bg: #e5f7f7; }
.superapp-module-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.superapp-back-link { display: inline-flex; min-height: 44px; align-items: center; gap: 5px; color: var(--tivka-navy); font-size: .79rem; font-weight: 780; text-decoration: none; }
.superapp-back-link .tivka-icon { width: 1.05rem; }
.superapp-module-language { display: flex; padding: 3px; border: 1px solid var(--tivka-line); border-radius: 12px; background: #fff; }
.superapp-module-language button { min-width: 38px; min-height: 34px; border: 0; border-radius: 9px; color: var(--tivka-muted); background: transparent; font-size: .72rem; font-weight: 800; }
.superapp-module-language button.is-active { color: var(--service-color); background: var(--service-bg); }
.superapp-module-card { display: grid; justify-items: center; max-width: 470px; margin: clamp(68px, 16vh, 130px) auto 0; padding: 30px 24px; border: 1px solid rgba(13,165,106,.25); border-radius: var(--tivka-radius-xl); text-align: center; background: var(--service-bg); }
.superapp-module-icon { display: grid; width: 62px; height: 62px; place-items: center; border-radius: 19px; color: #fff; background: var(--service-color); }
.superapp-module-icon .tivka-icon { width: 2rem; height: 2rem; }
.superapp-module-card > p:first-of-type { margin: 18px 0 5px; color: var(--service-color); font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.superapp-module-card h1 { margin: 0; color: var(--tivka-navy); font-size: clamp(1.6rem, 7vw, 2.2rem); font-weight: 850; }
.superapp-module-lead { margin: 13px 0 22px; color: #456072; font-size: .92rem; line-height: 1.6; }
.superapp-module-home { display: inline-grid; min-height: 44px; place-items: center; padding: 0 16px; border-radius: 12px; color: #fff; background: var(--service-color); font-size: .82rem; font-weight: 800; text-decoration: none; }

html[dir="rtl"] .superapp-portal-header, html[dir="rtl"] .superapp-location-pill, html[dir="rtl"] .superapp-welcome, html[dir="rtl"] .superapp-current-activity, html[dir="rtl"] .superapp-module-header { direction: rtl; }
html[dir="rtl"] .superapp-card-copy strong { line-height: 1.45; }
html[dir="rtl"] .superapp-card-copy small { line-height: 1.55; }
html[dir="rtl"] .superapp-header-actions { right: auto; left: 14px; }
html[dir="rtl"] .superapp-service-grid { grid-template-areas: "restaurant market" "pickup pickup" "services taxi"; }
html[dir="rtl"] .superapp-card-cutout { object-position: left bottom; }
html[dir="rtl"] .superapp-card-cutout-market, html[dir="rtl"] .superapp-card-cutout-restaurant, html[dir="rtl"] .superapp-card-cutout-services { transform-origin: left bottom; }
html[dir="rtl"] .superapp-card-cutout-restaurant { object-position: center; transform: scaleX(-1); transform-origin: center; }
html[dir="rtl"] .superapp-activity-card { grid-template-columns: auto minmax(0, 1fr) auto auto; }
html[dir="rtl"] .superapp-activity-chevron, html[dir="rtl"] .superapp-back-link .tivka-icon { transform: scaleX(-1); }

@media (max-height: 820px) and (min-height: 700px) {
    .superapp-shell { --superapp-bottom-nav-height: 64px; display: flex; flex-direction: column; min-height: calc(100dvh - env(safe-area-inset-bottom)); padding-right: 14px; padding-bottom: calc(var(--superapp-bottom-nav-height) + env(safe-area-inset-bottom)); padding-left: 14px; }
    .superapp-portal-header { min-height: 104px; margin-right: -14px; margin-left: -14px; padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 22px; }
    .superapp-wordmark img { width: min(151px, 40vw); }
    .superapp-header-actions { top: max(9px, env(safe-area-inset-top)); }
    .superapp-location-pill { min-height: 37px; margin-top: -18px; padding-inline: 11px; }
    .superapp-location-pill strong { font-size: .71rem; }
    .superapp-welcome { margin-top: 4px; margin-bottom: 2px; }
    .superapp-greeting { margin-bottom: 2px; font-size: .88rem; line-height: 1.08; }
    .superapp-welcome h1 { max-width: 345px; font-size: clamp(1.84rem, 7.8vw, 1.93rem); letter-spacing: -.015em; line-height: .95; }
    .superapp-welcome-lead { margin-top: 2px; font-size: .75rem; line-height: 1.1; }
    .superapp-service-grid { gap: 8px; }
    .superapp-service-market, .superapp-service-restaurant { min-height: 0; height: 160px; }
    .superapp-service-pickup { min-height: 0; height: 121px; }
    .superapp-service-taxi, .superapp-service-services { min-height: 0; height: 111px; }
    .superapp-card-copy { gap: 2px; padding: 12px 12px 0; }
    .superapp-card-copy strong { font-size: 1.12rem; line-height: 1.01; }
    .superapp-card-copy small { font-size: .69rem; line-height: 1.14; }
    .superapp-pickup-badge { margin-top: 0; padding: 1px 6px; font-size: .56rem; }
    .superapp-card-icon { bottom: 11px; inset-inline-start: 12px; width: 38px; height: 38px; }
    .superapp-card-icon .tivka-icon { width: 20px; height: 20px; }
    .superapp-service-market .superapp-card-copy { max-width: 90%; padding-top: 14px; }
    .superapp-service-market .superapp-card-icon { bottom: 12px; }
    .superapp-service-restaurant .superapp-card-copy { max-width: 86%; padding-top: 14px; }
    .superapp-service-pickup .superapp-card-icon { width: 38px; height: 38px; bottom: 10px; }
    .superapp-service-taxi .superapp-card-copy { max-width: 64%; padding-top: 10px; }
    .superapp-service-services .superapp-card-copy { max-width: 64%; padding-top: 10px; }
    .superapp-service-taxi .superapp-card-copy strong { font-size: 1.08rem; }
    .superapp-service-taxi .superapp-card-copy small { max-width: 100px; font-size: .66rem; line-height: 1.1; }
    .superapp-service-services .superapp-card-copy small { max-width: 94px; font-size: .69rem; line-height: 1.1; }
    .superapp-service-pickup .superapp-card-copy { padding-top: 11px; }
    .superapp-pickup-pin { top: 15px; inset-inline-end: 13px; min-width: 31px; min-height: 39px; }
    .superapp-current-activity { margin-top: auto; padding-top: 6px; padding-bottom: 8px; }
    .superapp-current-activity h2 { margin-bottom: 3px; font-size: .76rem; line-height: 1; }
    .superapp-activity-card { min-height: 44px; gap: 7px; padding: 4px 8px; }
    .superapp-activity-icon { width: 27px; height: 27px; }
    .superapp-activity-copy strong { font-size: .66rem; }
    .superapp-activity-copy small, .superapp-activity-status { font-size: .57rem; }
    .superapp-bottom-nav { min-height: var(--superapp-bottom-nav-height, 64px); padding-top: 4px; padding-bottom: max(4px, env(safe-area-inset-bottom)); }
    .superapp-bottom-item { min-height: 44px; font-size: .58rem; }
}
@media (max-height: 699px) {
    .superapp-shell {
        --superapp-bottom-nav-height: 62px;
        display: flex;
        flex-direction: column;
        min-height: calc(100dvh - env(safe-area-inset-bottom));
        padding-bottom: calc(var(--superapp-bottom-nav-height) + env(safe-area-inset-bottom));
    }
    .superapp-portal-header { min-height: 82px; padding-top: max(7px, env(safe-area-inset-top)); padding-bottom: 13px; }
    .superapp-wordmark img { width: min(122px, 37vw); }
    .superapp-header-actions { top: max(5px, env(safe-area-inset-top)); right: 9px; gap: 3px; }
    .superapp-icon-action, .superapp-avatar { width: 38px; height: 38px; }
    .superapp-location-pill { min-height: 35px; margin-top: -16px; padding-inline: 10px; }
    .superapp-location-pill strong { font-size: .68rem; }
    .superapp-welcome { margin: 3px 4px 2px; }
    .superapp-greeting { margin-bottom: 0; font-size: .74rem; line-height: 1; }
    .superapp-welcome h1 { font-size: clamp(1.53rem, 7.7vw, 1.66rem); line-height: .96; }
    .superapp-welcome-lead { margin-top: 1px; font-size: .64rem; line-height: 1.08; }
    .superapp-service-grid { gap: 7px; }
    .superapp-service-market, .superapp-service-restaurant { min-height: 0; height: 140px; }
    .superapp-service-pickup { min-height: 0; height: 102px; }
    .superapp-service-taxi, .superapp-service-services { min-height: 0; height: 91px; }
    .superapp-card-copy { gap: 1px; padding: 8px 9px 0; }
    .superapp-card-copy strong { font-size: 1rem; line-height: 1.01; }
    .superapp-card-copy small { font-size: .63rem; line-height: 1.16; }
    .superapp-card-cutout-restaurant { width: 78%; height: 64%; inset-inline-end: -4%; bottom: -4%; }
    .superapp-service-pickup .superapp-card-copy { max-width: 46%; padding-top: 6px; }
    .superapp-pickup-badge { padding: 1px 5px; font-size: .51rem; }
    .superapp-card-icon { bottom: 6px; inset-inline-start: 10px; width: 34px; height: 34px; }
    .superapp-card-icon .tivka-icon { width: 19px; height: 19px; }
    .superapp-service-pickup .superapp-card-icon { width: 36px; height: 36px; bottom: 6px; }
    .superapp-pickup-pin { top: 11px; inset-inline-end: 11px; min-width: 27px; min-height: 33px; }
    .superapp-service-taxi .superapp-card-copy { max-width: 66%; padding-top: 4px; }
    .superapp-service-taxi .superapp-card-copy strong { font-size: .91rem; }
    .superapp-service-taxi .superapp-card-copy small { max-width: 108px; font-size: .70rem; line-height: 1.18; }
    .superapp-service-taxi .superapp-card-icon { bottom: 3px; }
    .superapp-service-services .superapp-card-copy { max-width: 61%; padding-top: 4px; }
    .superapp-service-services .superapp-card-copy small { max-width: 103px; font-size: .70rem; line-height: 1.18; }
    .superapp-service-services .superapp-card-icon { bottom: 3px; }
    .superapp-current-activity { margin-top: auto; padding-top: 6px; padding-bottom: 6px; }
    .superapp-current-activity h2 { margin-bottom: 3px; font-size: .73rem; line-height: 1; }
    .superapp-activity-card { min-height: 40px; gap: 6px; padding: 3px 7px; }
    .superapp-activity-icon { width: 26px; height: 26px; }
    .superapp-activity-copy strong { font-size: .64rem; }
    .superapp-activity-copy small, .superapp-activity-status { font-size: .55rem; }
    .superapp-bottom-nav { min-height: var(--superapp-bottom-nav-height, 62px); padding-top: 3px; padding-bottom: max(3px, env(safe-area-inset-bottom)); }
    .superapp-bottom-item { min-height: 44px; font-size: .51rem; }
}

@media (min-width: 700px) {
    .superapp-shell { width: min(100%, 680px); min-height: 100dvh; padding-right: 18px; padding-left: 18px; }
    .superapp-portal-header { min-height: 120px; margin-right: -18px; margin-left: -18px; padding-bottom: 35px; border-radius: 0 0 26px 26px; }
    .superapp-wordmark img { width: 178px; }
    .superapp-welcome { margin-top: 17px; margin-bottom: 12px; }
    .superapp-welcome h1 { max-width: 430px; font-size: 2.25rem; }
    .superapp-service-grid { gap: 10px; }
    .superapp-service-market, .superapp-service-restaurant { min-height: 165px; }
    .superapp-service-pickup { min-height: 118px; }
    .superapp-service-taxi, .superapp-service-services { min-height: 105px; }
    .superapp-card-copy strong { font-size: 1.28rem; }
    .superapp-current-activity { margin-top: 12px; }
    .superapp-bottom-nav { min-height: 72px; }
}
@media (prefers-reduced-motion: reduce) { .superapp-service-card { transition: none; } }
