﻿
:root {
    --app-max-width-desktop: 1280px;
    --app-min-width: 280px;
    --app-bg: #f1f3f7;
    --app-surface: #ffffff;
    --app-text: #172033;
    --app-text-muted: #6b7280;
    --app-border: #e5e7eb;
    --app-radius: 18px;
    --app-radius-lg: 24px;
    --app-radius-sm: 12px;
    --app-gap: 16px;
    --app-pad: clamp(12px, 3vw, 28px);
    --app-green: #00a86b;
    --app-green-dark: #059669;
    --app-blue: #3b82f6;
    --app-red: #ef4444;
    --app-amber: #f59e0b;
    --app-purple: #7c3aed;
    --app-indigo: #6366f1;
    --idle-grad: linear-gradient(to bottom right, #4f46e5, #9333ea, #3730a3);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-width: var(--app-min-width);
    height: 100%;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    width: 100%;
    min-width: var(--app-min-width);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', 'Noto Sans', sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    font-size: 14px;
    line-height: 1.45;
    color: var(--app-text);
    background: var(--app-bg);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

    body:is([data-state="connecting"], [data-state="connected"], [data-state="ended"]):not([data-call-presentation="minimized"]) {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

img, svg, video, canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    min-width: var(--app-min-width);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 0;
    background: var(--app-bg);
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

body:is([data-state="connecting"], [data-state="connected"], [data-state="ended"]):not([data-call-presentation="minimized"]) .app-wrapper {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    transform: none;
}

@media (min-width: 481px) {
    body {
        padding: 0;
        align-items: stretch;
        background: var(--app-bg);
    }

    .app-wrapper {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
        overflow-y: visible;
    }
}

@media (min-width: 1200px) {
    body {
        padding: 16px 0;
        align-items: center;
        background: #e8ecf1;
    }

    .app-wrapper {
        max-width: var(--app-max-width-desktop);
        height: calc(100vh - 32px);
        height: calc(100dvh - 32px);
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        border-radius: 20px;
        box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
        overflow-y: hidden;
    }

    body:is([data-state="connecting"], [data-state="connected"], [data-state="ended"]):not([data-call-presentation="minimized"]) {
        padding: 0;
        align-items: flex-start;
        background: var(--app-bg);
    }

        body:is([data-state="connecting"], [data-state="connected"], [data-state="ended"]):not([data-call-presentation="minimized"]) .app-wrapper {
            height: 100vh;
            height: 100dvh;
            max-height: 100vh;
            max-height: 100dvh;
            border-radius: 0;
            box-shadow: none;
        }
}

.app-header {
    position: relative;
    z-index: 102;
    flex-shrink: 0;
    width: 100%;
    padding: env(safe-area-inset-top) 0 0;
    margin: 0;
    background: var(--app-surface);
    border-bottom: 1px solid #eef2f6;
    box-sizing: border-box;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: clamp(52px, 8vw, 68px);
    padding: 8px clamp(6px, 2vw, 20px) 8px 4px;
    box-sizing: border-box;
}

    .header-flex .logo {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

        .header-flex .logo img {
            height: clamp(28px, 5vw, 42px);
            width: auto;
            margin: 0 0 0 clamp(10px, 2vw, 18px);
            display: block;
            object-fit: contain;
        }

.header-right-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 0;
    min-width: 0;
    gap: 4px;
}

.header-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    text-align: left;
}

    .header-user-info .welcome {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: clamp(11px, 1.8vw, 15px);
        font-weight: 600;
        line-height: 1.2;
        color: #1a1a2e;
    }

    .header-user-info .room {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-top: 2px;
        font-size: clamp(10px, 1.6vw, 13px);
        font-weight: 700;
        line-height: 1.2;
        color: #9ca3af;
    }

.lang-switcher, .notification-mobile-wrapper, .logout-btn {
    flex: 0 0 auto;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(32px, 5vw, 42px);
    height: clamp(32px, 5vw, 42px);
    padding: 0;
    margin: 0;
    background: var(--app-surface);
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .logout-btn:hover {
        background: #f1f5f9;
        transform: scale(1.05);
    }

    .logout-btn:active {
        background: #e5e7eb;
        transform: scale(0.95);
    }

.logout-icon {
    position: relative;
    width: 16px;
    height: 16px;
    border: 2px solid #6c7a89;
    border-right: none;
    border-radius: 3px;
}

    .logout-icon::before {
        content: "";
        position: absolute;
        top: 4px;
        right: -6px;
        width: 10px;
        height: 2px;
        background: #6c7a89;
    }

    .logout-icon::after {
        content: "";
        position: absolute;
        top: 0;
        right: -6px;
        width: 6px;
        height: 6px;
        border-top: 2px solid #6c7a89;
        border-right: 2px solid #6c7a89;
        transform: rotate(45deg);
    }

.lang-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    height: clamp(32px, 5vw, 42px);
    padding: 0 clamp(6px, 1.2vw, 12px);
    background: var(--app-surface);
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: clamp(11px, 1.6vw, 13px);
    line-height: 1;
    color: var(--app-text);
}

    .lang-btn svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    .lang-btn .chev {
        width: 10px;
        height: 10px;
        transition: transform 0.2s ease;
    }

.lang-switcher.open .chev {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-start: 0;
    inset-inline-end: auto;
    z-index: 2000;
    display: none;
    min-width: 190px;
    max-width: calc(100vw - 24px);
    max-height: 70vh;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--app-surface);
    border: 1px solid #e5e9f0;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lang-switcher.open .lang-menu {
    display: block;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
}

    .lang-item:hover {
        background: #f1f5f9;
    }

    .lang-item .code {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        flex-shrink: 0;
        border-radius: 8px;
        background: #eef2f7;
        font-size: 11px;
        font-weight: 700;
        color: #475569;
    }

    .lang-item .names {
        flex: 1;
        min-width: 0;
        line-height: 1.2;
    }

        .lang-item .names b {
            display: block;
            font-size: 13px;
            color: var(--app-text);
        }

        .lang-item .names small {
            font-size: 11px;
            color: #94a3b8;
        }

    .lang-item .tick {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        color: var(--app-green-dark);
        visibility: hidden;
    }

    .lang-item.active .names b {
        color: var(--app-green-dark);
    }

    .lang-item.active .tick {
        visibility: visible;
    }

.notification-mobile-wrapper {
    position: relative;
    overflow: visible;
}

.notification-mobile-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(32px, 5vw, 42px);
    min-width: clamp(32px, 5vw, 42px);
    height: clamp(32px, 5vw, 42px);
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    overflow: visible;
}

    .notification-mobile-trigger:hover {
        background: #f1f5f9;
    }

    .notification-mobile-trigger:active {
        transform: scale(0.95);
    }

    .notification-mobile-trigger .bell-icon {
        width: 20px;
        height: 20px;
        object-fit: contain;
        opacity: 0.75;
    }

.notification-mobile-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border: 2px solid var(--app-surface);
    border-radius: 999px;
    background: var(--app-red);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    z-index: 1001;
}

    .notification-mobile-badge.show {
        display: flex;
    }

.assistant-titlebar {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
    min-height: clamp(48px, 7vw, 64px);
    padding: 10px 16px;
    background: var(--app-surface);
    border-bottom: 1px solid var(--app-border);
    box-sizing: border-box;
}

.assistant-back-btn {
    position: absolute;
    top: 50%;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: #2f8f7e;
    transform: translateY(-50%);
    cursor: pointer;
}

.back-arrow-icon {
    width: 16px;
    height: auto;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

.assistant-title {
    margin: 0;
    padding: 0 40px;
    font-size: clamp(15px, 2.4vw, 20px);
    font-weight: 700;
    line-height: 1;
    text-align: center;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    width: 100%;
    min-height: clamp(48px, 7vw, 64px);
    padding: 8px 16px;
    background: var(--app-surface);
    border-bottom: 1px solid var(--app-border);
    color: #293341;
    box-sizing: border-box;
}

    .mobile-header .back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: none;
        border-radius: 10px;
        background: #589a8b;
        color: #ffffff;
        font-size: 18px;
        font-weight: 600;
        cursor: pointer;
    }

    .mobile-header .title {
        flex: 1;
        margin: 0 8px;
        font-size: clamp(15px, 2.4vw, 20px);
        font-weight: 700;
        text-align: center;
        color: var(--app-text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .mobile-header .title h1, .mobile-header .title h4 {
            margin: 0;
            font-size: inherit;
            font-weight: inherit;
            color: inherit;
        }

.parent-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    margin-top: 12px !important;
    background: var(--app-surface);
    border-bottom: 1px solid #eef2f6;
    box-sizing: border-box;
    flex-wrap: wrap;
    overflow: visible;
}

.navBtn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 calc(33.333% - 8px);
    min-width: 80px;
    gap: 6px;
    padding: 8px 4px;
    margin: 0;
    border: 0;
    outline: 0;
    border-radius: 14px;
    background: var(--pill, #8c7df3);
    cursor: pointer;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    color: #ffffff;
}

    .navBtn .circle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        margin: 0 auto;
        padding: 0;
        border-radius: 50%;
        flex-shrink: 0;
        box-sizing: border-box;
        background: transparent;
    }

        .navBtn .circle img {
            width: 18px;
            height: 18px;
            max-width: none;
            max-height: none;
            margin: 0;
            padding: 0;
            object-fit: contain;
            display: block;
            filter: brightness(0) invert(1);
        }

    .navBtn span {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
        color: #ffffff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
    }

    .navBtn:has(.circle.purple) {
        --pill: #8c7df3;
    }

    .navBtn:has(.circle.teal) {
        --pill: #6bbbb5;
    }

    .navBtn:has(.circle.blue) {
        --pill: #76b5d8;
    }

    .navBtn:has(.circle.orange) {
        --pill: #b84e0d;
    }

    .navBtn:has(.circle.violet) {
        --pill: #a686e8;
    }

    .navBtn:has(.circle.pink) {
        --pill: #d15c77;
    }

    .navBtn.active {
        filter: none;
        box-shadow: none;
        transform: none;
    }

.content {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

    .content::-webkit-scrollbar {
        width: 4px;
    }

    .content::-webkit-scrollbar-track {
        background: transparent;
    }

    .content::-webkit-scrollbar-thumb {
        background: #d4dbe0;
        border-radius: 10px;
    }

main {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: var(--app-pad);
    gap: var(--app-gap);
    box-sizing: border-box;
    overflow-x: hidden;
}

    main:has(> .card), main:has(> .food-card) {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        align-content: start !important;
        align-items: start !important;
    }

        main:has(> .card) > h1, main:has(> .card) > h2, main:has(> .card) > h3,
        main:has(> .food-card) > h1, main:has(> .food-card) > h2, main:has(> .food-card) > h3 {
            grid-column: 1 / -1 !important;
        }

.grid, .cards-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--app-gap);
    width: 100%;
    align-content: start;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 140px;
    padding: 20px 16px;
    background: var(--app-surface);
    border: 1px solid #eef1f5;
    border-radius: var(--app-radius);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card:active {
        transform: scale(0.98);
    }

    .card .icon-box {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 64px;
        height: 64px;
        margin: 0 auto 12px;
        border-radius: 16px;
        background: linear-gradient(135deg, #4b7bec, #3867d6);
        flex-shrink: 0;
    }

        .card .icon-box img {
            width: 32px;
            height: 32px;
            object-fit: contain;
            filter: brightness(0) invert(1);
        }

    .card h3 {
        margin: 0 0 6px;
        font-size: 15px;
        font-weight: 600;
        color: #333;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .card p {
        margin: 0;
        font-size: 13px;
        line-height: 1.4;
        color: #666;
        overflow-wrap: anywhere;
    }

    .card.focused {
        opacity: 1;
        filter: none;
        cursor: pointer;
        border-color: rgba(120, 180, 255, 0.3);
        box-shadow: 0 16px 28px rgba(0, 60, 100, 0.12), 0 4px 10px rgba(0, 0, 0, 0.05);
    }

        .card.focused .icon-box {
            background: linear-gradient(135deg, #08b8a5, #009f78);
        }

    .card.faded {
        opacity: 0.65;
        filter: grayscale(0.3);
        pointer-events: none;
        cursor: not-allowed;
    }

.food-card, .patfeedback-card, .bottom-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: clamp(96px, 14vw, 140px);
    margin: 0;
    padding: clamp(14px, 2.4vw, 26px) clamp(16px, 3vw, 30px);
    border-radius: var(--app-radius);
    color: #ffffff;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-sizing: border-box;
}

    .food-card:active, .patfeedback-card:active, .bottom-card:active {
        transform: translateY(-1px);
    }

    .food-card h3, .patfeedback-card h3, .bottom-card h3 {
        margin: 0 0 4px;
        font-size: clamp(15px, 2.2vw, 20px);
        font-weight: 800;
        line-height: 1.2;
        color: #ffffff;
    }

    .food-card p, .patfeedback-card p {
        margin: 0 0 8px;
        max-width: 85%;
        font-size: clamp(11px, 1.6vw, 14px);
        line-height: 1.35;
        color: rgba(255, 255, 255, 0.9);
    }

    .food-card.food-ordering, .patfeedback-card {
        background: linear-gradient(135deg, #10b981, #059669);
    }

    .food-card.my-orders {
        background: linear-gradient(135deg, #814bf6, #6366f1);
    }

    .food-card.other-services {
        background: linear-gradient(135deg, #f97316, #ea580c);
    }

.bottom-card {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    min-height: clamp(52px, 8vw, 72px);
    padding: 12px 16px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.card-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    width: fit-content;
    margin-bottom: 8px;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-link-row {
    margin-top: auto;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
}

.bg-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: clamp(46px, 7vw, 70px);
    color: rgba(255, 255, 255, 0.15);
    transform: rotate(-15deg);
    pointer-events: none;
}

@media (min-width: 768px) {
    main:has(> .card), main:has(> .food-card) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .grid, .cards-grid, .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .parent-nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        width: calc(100% - 32px) !important;
        margin: 16px auto !important;
        padding: 10px 14px !important;
        background: #ffffff !important;
        border: 1px solid #edf1f5 !important;
        border-radius: 99px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
        box-sizing: border-box !important;
        flex-wrap: nowrap !important;
    }

        .parent-nav .navBtn {
            flex: 1 1 0 !important;
            flex-direction: row !important;
            justify-content: center !important;
            align-items: center !important;
            gap: 8px !important;
            height: 44px !important;
            max-width: none !important;
            min-width: 0 !important;
            padding: 0 16px !important;
            border-radius: 99px !important;
            background-color: var(--pill, #8c7df3) !important;
            color: #ffffff !important;
            box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
        }

            .parent-nav .navBtn .circle {
                background: transparent !important;
                width: 20px !important;
                height: 20px !important;
                min-width: 20px !important;
                min-height: 20px !important;
            }

                .parent-nav .navBtn .circle img {
                    width: 16px !important;
                    height: 16px !important;
                    filter: brightness(0) invert(1) !important;
                }

            .parent-nav .navBtn span {
                font-size: 14px !important;
                font-weight: 700 !important;
                color: #ffffff !important;
                white-space: nowrap !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
            }

            .parent-nav .navBtn:has(.circle.purple) {
                --pill-active: #6d28d9;
            }

            .parent-nav .navBtn:has(.circle.teal) {
                --pill-active: #0d9488;
            }

            .parent-nav .navBtn:has(.circle.blue) {
                --pill-active: #2563eb;
            }

            .parent-nav .navBtn:has(.circle.orange) {
                --pill-active: #c2410c;
            }

            .parent-nav .navBtn:has(.circle.violet) {
                --pill-active: #7c3aed;
            }

            .parent-nav .navBtn:has(.circle.pink) {
                --pill-active: #c91f42;
            }

            .parent-nav .navBtn.active {
                background: var(--pill-active) !important;
                filter: none !important;
                box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16) !important;
                transform: translateY(-1px) !important;
                outline: none !important;
            }

}

.modal-overlay, .gf-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

    .modal-overlay.show, .gf-modal-overlay:not(.gf-hidden) {
        display: flex;
    }

@media (max-height: 640px) {
    .modal-overlay, .gf-modal-overlay {
        align-items: flex-start;
        padding-top: 24px;
        padding-bottom: 24px;
    }
}

.request-modal, .gf-summary-card, .gf-classic-card, .request-loading-modal {
    position: relative;
    width: 100%;
    max-width: clamp(300px, 90vw, 480px);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 24px 20px 0;
    background: var(--app-surface);
    border-radius: var(--app-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close-btn, .gf-summary-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    color: #64748b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .modal-close-btn:hover, .gf-summary-close:hover {
        background: #e2e8f0;
    }

.request-loading-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: clamp(320px, 50vh, 380px);
    padding: 40px 25px;
    text-align: center;
    overflow: hidden;
}

    .request-loading-modal::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: 0.38;
        pointer-events: none;
        background-image: linear-gradient(30deg, #edf1f4 12%, transparent 12.5%, transparent 87%, #edf1f4 87.5%, #edf1f4), linear-gradient(150deg, #edf1f4 12%, transparent 12.5%, transparent 87%, #edf1f4 87.5%, #edf1f4), linear-gradient(30deg, #edf1f4 12%, transparent 12.5%, transparent 87%, #edf1f4 87.5%, #edf1f4), linear-gradient(150deg, #edf1f4 12%, transparent 12.5%, transparent 87%, #edf1f4 87.5%, #edf1f4), linear-gradient(60deg, #f5f7f8 25%, transparent 25.5%, transparent 75%, #f5f7f8 75%);
        background-size: 80px 140px;
        background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0;
    }

.loading-icon-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(110px, 16vw, 130px);
    height: clamp(110px, 16vw, 130px);
    margin-bottom: 26px;
}

.loading-icon-circle {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(92px, 14vw, 108px);
    height: clamp(92px, 14vw, 108px);
    border-radius: 50%;
    background: #f0f5f9;
}

    .loading-icon-circle i {
        font-size: clamp(36px, 5vw, 42px);
        color: #009f94;
    }

.loading-ring {
    position: absolute;
    z-index: 3;
    width: clamp(106px, 15vw, 124px);
    height: clamp(106px, 15vw, 124px);
    border: 4px solid transparent;
    border-radius: 50%;
    pointer-events: none;
}

    .loading-ring.ring-1 {
        border-top-color: #00b8a9;
        border-right-color: #00b8a9;
        animation: loadingSpin 1.3s linear infinite;
    }

    .loading-ring.ring-2 {
        border-bottom-color: #00b8a9;
        border-left-color: #00b8a9;
        animation: loadingSpinReverse 1.3s linear infinite;
    }

.loading-title {
    position: relative;
    z-index: 2;
    margin-bottom: 8px;
    font-size: clamp(20px, 3vw, 22px);
    line-height: 1.35;
    font-weight: 700;
    color: #10233d;
}

.loading-subtitle {
    position: relative;
    z-index: 2;
    font-size: 14px;
    line-height: 1.4;
    color: #55708f;
}

@keyframes loadingSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes loadingSpinReverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.btn, .btn-primary, .btn-secondary, .btn-success, .btn-danger, .success-track-btn, .review-btn, .confirm-btn, .confirm-btn-green, .submit-feedback-btn, .browse-menu-btn, .cancel-ticket-btn, .vp-done-btn, .request-pass-btn, .gf-btn-primary, .gf-btn-ghost, .gf-btn-text, .success-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: clamp(44px, 6vw, 52px);
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

    .btn:active, .btn-primary:active, .btn-success:active, .success-track-btn:active, .review-btn:active, .confirm-btn:active, .submit-feedback-btn:active, .gf-btn-primary:active, .gf-btn-ghost:active {
        transform: scale(0.98);
    }

.btn-primary, .success-track-btn, .confirm-btn-green, .review-btn, .gf-btn-primary {
    background: var(--app-green);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.25);
}

    .btn-primary:hover, .success-track-btn:hover, .gf-btn-primary:hover {
        background: var(--app-green-dark);
    }

.btn-secondary, .gf-btn-ghost {
    background: var(--app-surface);
    color: #162633;
    border: 1px solid var(--app-border);
}

    .btn-secondary:hover, .gf-btn-ghost:hover {
        background: #f8fafc;
    }

.btn-danger {
    background: var(--app-red);
    color: #ffffff;
}

.btn-text, .gf-btn-text {
    background: transparent;
    color: #4b5563;
    box-shadow: none;
}

.btn-sm {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 20px;
}

.btn-lg {
    min-height: 54px;
    font-size: 16px;
    border-radius: 30px;
}

.pill, .badge, .status-pill, .status-badge, .info-pill, .badge-type-pill, .badge-patient-visitor, .badge-selected, .badge-today-default, .badge-lavender-solid, .badge-green-solid, .badge-visitor-outline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    box-sizing: border-box;
}

    .pill-green, .badge-green-solid, .status-pill.pill-completed {
        background: #ecfdf5;
        color: #059669;
        border: 1px solid #a7f3d0;
    }

    .pill-red, .badge-red, .status-pill.pill-cancelled {
        background: #fef2f2;
        color: #b91c1c;
        border: 1px solid #fecaca;
    }

    .pill-amber, .status-pill.pill-pending {
        background: #fffbeb;
        color: #92400e;
        border: 1px solid #fde68a;
    }

    .pill-blue, .status-pill.pill-assigned {
        background: #eff6ff;
        color: #1e40af;
        border: 1px solid #bfdbfe;
    }

    .status-pill.pill-inprogress {
        background: #ede9fe;
        color: #5b21b6;
        border: 1px solid #ddd6fe;
    }

.input, input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="password"], textarea, select {
    display: block;
    width: 100%;
    min-height: clamp(42px, 6vw, 48px);
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #dbe3ed;
    border-radius: var(--app-radius-sm);
    font-family: inherit;
    font-size: clamp(13px, 1.9vw, 15px);
    line-height: 1.4;
    color: #263c57;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

    .input::placeholder, input::placeholder, textarea::placeholder {
        color: #8ca0bb;
        opacity: 1;
    }

    .input:focus, input:focus, textarea:focus, select:focus {
        background: var(--app-surface);
        border-color: #9ab9da;
        box-shadow: 0 0 0 3px rgba(57, 116, 170, 0.08);
    }

textarea {
    min-height: 80px;
    padding: 12px 14px;
    resize: vertical;
}

.app-wrapper > footer, footer {
    flex: 0 0 auto;
    width: 100%;
    margin-top: auto;
    padding: 8px var(--app-pad);
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    background: var(--app-surface);
    border-top: 1px solid var(--app-border);
    box-sizing: border-box;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    font-size: clamp(10px, 1.5vw, 13px);
    color: #64748b;
}

    .footer > * {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.hidden, [hidden], .gf-hidden {
    display: none !important;
}

html, html body {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

    html body .app-wrapper, html body .app-wrapper.app-container, html body .app-container, html body .mobile-container, html body .page-wrapper {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    html body .app-header, html body .parent-nav, html body .content, html body main, html body footer, html body .assistant-titlebar, html body .mobile-header {
        width: 100% !important;
        max-width: none !important;
    }

@media (min-width: 1200px) {
    html body .app-wrapper {
        max-width: 1280px !important;
    }
}

html body .app-wrapper {
    overflow-x: hidden;
    overflow-y: auto;
}

html body .lang-switcher {
    position: relative;
    flex: 0 0 auto;
}

    html body .lang-switcher .lang-btn {
        height: clamp(32px, 5vw, 42px);
        padding: 0 clamp(8px, 1.4vw, 12px);
        gap: 5px;
        background: #ffffff;
        border: 1px solid #e5e9f0;
        border-radius: 999px;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
        font-size: clamp(11px, 1.6vw, 13px);
        font-weight: 700;
        color: #1a1a2e;
        transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    }

        html body .lang-switcher .lang-btn:hover {
            background: #f8fafc;
            border-color: #d5dbe6;
        }

    html body .lang-switcher.open .lang-btn {
        border-color: var(--app-green);
        box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.14);
    }

    html body .lang-switcher .lang-btn svg {
        width: 16px;
        height: 16px;
    }

    html body .lang-switcher .lang-btn .chev {
        width: 12px;
        height: 12px;
    }

    html body .lang-switcher .lang-menu {
        position: fixed;
        inset: auto 0 0 0;
        width: 100%;
        min-width: 0;
        max-width: none;
        max-height: min(75vh, 560px);
        max-height: min(75dvh, 560px);
        margin: 0;
        padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
        background: #ffffff;
        border: 0;
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.25), 0 0 0 100vmax rgba(15, 23, 42, 0.45);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

        html body .lang-switcher .lang-menu::before {
            content: "";
            display: block;
            width: 40px;
            height: 4px;
            margin: 4px auto 10px;
            border-radius: 4px;
            background: #d5dbe6;
        }

        html body .lang-switcher .lang-menu::-webkit-scrollbar {
            width: 6px;
        }

        html body .lang-switcher .lang-menu::-webkit-scrollbar-thumb {
            background: #d4dbe0;
            border-radius: 10px;
        }

    html body .lang-switcher .lang-item {
        min-height: 48px;
        padding: 8px 12px;
        gap: 12px;
        border-radius: 12px;
    }

        html body .lang-switcher .lang-item .code {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            font-size: 12px;
        }

        html body .lang-switcher .lang-item .names b {
            font-size: 15px;
        }

        html body .lang-switcher .lang-item.active {
            background: #ecfdf5;
        }

@media (min-width: 768px) {
    html body .lang-switcher .lang-menu {
        position: absolute;
        inset: auto;
        top: calc(100% + 8px);
        inset-inline-start: 0;
        inset-inline-end: auto;
        width: 300px;
        max-width: calc(100vw - 24px);
        max-height: min(70vh, 460px);
        max-height: min(70dvh, 460px);
        padding: 8px;
        border: 1px solid #e5e9f0;
        border-radius: 16px;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    }

        html body .lang-switcher .lang-menu::before {
            display: none;
        }

    html body .lang-switcher .lang-item {
        min-height: 44px;
    }
}

@media print {
    .app-header, .parent-nav, .assistant-titlebar, .mobile-header, footer, .fab-wrap {
        display: none !important;
    }

    body, .app-wrapper {
        background: #ffffff !important;
        box-shadow: none !important;
        max-width: 100% !important;
    }

    .modal-overlay, .video-overlay {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ===== Desktop navigation bar — corrected ===== */
@media (min-width: 768px) {

    html body .parent-nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: calc(100% - 8px) !important;
        margin: 8px auto !important;
        padding: 4px !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 20px !important;
        box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08) !important;
        box-sizing: border-box !important;
    }

        html body .parent-nav .navBtn {
            display: flex !important;
            flex: 1 1 0 !important;
            flex-direction: row !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 7px !important;
            min-width: 0 !important;
            height: 44px !important;
            padding: 0 8px !important;
            margin: 0 !important;
            border: none !important;
            border-radius: 14px !important;
            background: var(--pill, #8c7df3) !important;
            box-shadow: none !important;
            transform: none !important;
            filter: none !important;
            outline: none !important;
            color: #ffffff !important;
            cursor: pointer;
            transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, filter 0.18s ease;
        }

            html body .parent-nav .navBtn .circle {
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                flex: 0 0 18px !important;
                width: 18px !important;
                height: 18px !important;
                min-width: 18px !important;
                min-height: 18px !important;
                margin: 0 !important;
                padding: 0 !important;
                background: transparent !important;
            }

                /* White navigation icons */
                html body .parent-nav .navBtn .circle img {
                    display: block !important;
                    width: 16px !important;
                    height: 16px !important;
                    max-width: 16px !important;
                    max-height: 16px !important;
                    object-fit: contain !important;
                    filter: brightness(0) invert(1) !important;
                }

            /* Navigation labels */
            html body .parent-nav .navBtn span {
                display: block !important;
                flex: 0 1 auto !important;
                width: auto !important;
                min-height: 0 !important;
                max-width: 100% !important;
                margin: 0 !important;
                padding: 0 !important;
                font-size: 13px !important;
                font-weight: 700 !important;
                line-height: 1.2 !important;
                text-align: center !important;
                color: #ffffff !important;
                white-space: nowrap !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
            }

            /* Slight hover feedback for inactive tabs */
            html body .parent-nav .navBtn:not(.active):hover {
                filter: brightness(0.96) !important;
            }

            /* Active tab: deeper version of its own color */
            html body .parent-nav .navBtn.active {
                filter: brightness(0.90) saturate(1.08) !important;
                box-shadow: 0 3px 7px rgba(15, 23, 42, 0.18) !important;
                transform: translateY(-1px) !important;
                outline: none !important;
            }

                html body .parent-nav .navBtn.active:hover {
                    filter: brightness(0.90) saturate(1.08) !important;
                }

            /* Remove browser focus outlines without adding a yellow ring */
            html body .parent-nav .navBtn:focus,
            html body .parent-nav .navBtn:focus-visible {
                outline: none !important;
            }
}




@media (min-width: 768px) {
    html body .parent-nav {
        padding: 4px !important;
        gap: 8px !important;
        align-items: center !important;
    }

        html body .parent-nav .navBtn {
            height: 48px !important;
            padding: 0 10px !important;
            border-radius: 14px !important;
            border: 1px solid transparent !important;
            box-shadow: none !important;
            transform: none !important;
            transition: filter 0.2s ease, box-shadow 0.2s ease;
        }

            html body .parent-nav .navBtn:hover {
                filter: brightness(0.95) !important;
            }

            html body .parent-nav .navBtn.active,
            html body .parent-nav .navBtn.active:hover {
                filter: brightness(0.92) !important;
                box-shadow: 0 3px 7px rgba(15, 23, 42, 0.16) !important;
                transform: none !important;
                outline: none !important;
            }
}

@media (max-width: 767px) {
    html body #servicesContainer {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        align-items: stretch !important;
    }
}

@media (min-width: 768px) {
    html body #servicesContainer {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 16px !important;
        align-items: stretch !important;
    }
}

@media (min-width: 768px) {
    /* 1. Body = full-screen flex column */
    html, body {
        height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body {
        display: flex !important;
        flex-direction: column !important;
    }

    .app-wrapper {
        display: flex !important;
        flex-direction: column !important;
        height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important;
    }

    /* 2. Content = fills remaining space after header + nav + footer */
    html body #pageContent.content {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        display: grid !important;
        grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr) !important;
        grid-template-rows: 1fr 1fr !important;
        gap: 16px !important;
        align-items: stretch !important;
        align-content: stretch !important;
        width: 100% !important;
        max-width: 1400px !important;
        margin: 0 auto !important;
        padding: 16px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

        /* 3. Interactive card = spans both rows */
        html body #pageContent.content > #interactiveCard {
            grid-column: 1 !important;
            grid-row: 1 / 3 !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            width: 100% !important;
            height: 100% !important;
            min-height: 0 !important;
            max-height: none !important;
            overflow: hidden !important;
            margin: 0 !important;
            padding: 16px !important;
            box-sizing: border-box !important;
            border-radius: 24px !important;
            background: linear-gradient(135deg, #6366f1, #7c3aed) !important;
        }

        /* 4. Request status = top-right */
        html body #pageContent.content > .patient-status-card {
            grid-column: 2 !important;
            grid-row: 1 !important;
            width: 100% !important;
            height: 100% !important;
            min-height: 0 !important;
            max-height: none !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: space-between !important;
            margin: 0 !important;
            padding: 20px !important;
            box-sizing: border-box !important;
            border-radius: 24px !important;
            overflow: hidden !important;
        }

        /* 5. Feedback = bottom-right */
        html body #pageContent.content > .patfeedback-card {
            grid-column: 2 !important;
            grid-row: 2 !important;
            width: 100% !important;
            height: 100% !important;
            min-height: 0 !important;
            max-height: none !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: space-between !important;
            margin: 0 !important;
            padding: 20px !important;
            box-sizing: border-box !important;
            border-radius: 24px !important;
            overflow: hidden !important;
        }

            /* 6. Typography */
            html body #pageContent.content > .patfeedback-card h3,
            html body #pageContent.content > .patient-status-card h3 {
                font-size: 17px !important;
                line-height: 1.3 !important;
                margin: 0 0 8px !important;
            }

            html body #pageContent.content > .patfeedback-card p,
            html body #pageContent.content > .patient-status-card p {
                font-size: 13px !important;
                line-height: 1.4 !important;
                margin: 0 0 12px !important;
            }
}

/* Call mode - fullscreen */
@media (min-width: 768px) {
    html body:is( [data-state="connecting"], [data-state="connected"], [data-state="ended"] ):not([data-call-presentation="minimized"]) #pageContent.content {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        flex: 1 1 auto !important;
        height: 100% !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        overflow: hidden !important;
        background: #0f172a !important;
    }

        html body:is( [data-state="connecting"], [data-state="connected"], [data-state="ended"] ):not([data-call-presentation="minimized"]) #pageContent.content > #interactiveCard {
            position: relative !important;
            display: flex !important;
            flex: 1 1 auto !important;
            flex-direction: column !important;
            grid-column: auto !important;
            grid-row: auto !important;
            width: 100% !important;
            height: 100% !important;
            min-height: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
            border-radius: 0 !important;
            background: #0f172a !important;
            overflow: hidden !important;
        }

        html body:is( [data-state="connecting"], [data-state="connected"], [data-state="ended"] ):not([data-call-presentation="minimized"]) #pageContent.content > .patfeedback-card,
        html body:is( [data-state="connecting"], [data-state="connected"], [data-state="ended"] ):not([data-call-presentation="minimized"]) #pageContent.content > .patient-status-card {
            display: none !important;
        }
}


/* =========================================================
   PAGE-SPECIFIC RESPONSIVE OVERRIDES
   ========================================================= */

/* --- AI FEEDBACK PAGE (gf-feedback-page) --- */
@media (max-width: 1199px) {
    html body .app-wrapper.gf-feedback-page {
        width: 100% !important;
        max-width: none !important;
    }
}

@media (min-width: 768px) {
    html body .app-wrapper.gf-feedback-page #pageContent.content {
        display: block !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
}

.app-wrapper.gf-feedback-page > footer {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.gf-feedback-page #pageContent {
    -webkit-overflow-scrolling: touch;
}

.app-wrapper.gf-feedback-page #pageContent main {
    width: 100%;
    max-width: 640px !important;
    min-height: 100%;
    margin: 0 auto;
    justify-content: center;
}

.gf-feedback-page .gf-headline,
.gf-feedback-page .gf-lede,
.gf-feedback-page .gf-ack-title,
.gf-feedback-page .gf-ack-sub,
.gf-feedback-page .gf-summary-quote,
.gf-feedback-page .gf-caption {
    overflow-wrap: anywhere;
}

.gf-feedback-page .gf-headline {
    max-width: 100%;
}

.gf-feedback-page .gf-avatar-img,
.gf-feedback-page .gf-call-avatar-img {
    max-width: none;
}

.gf-feedback-page .gf-classic-card {
    max-height: calc(100% - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .gf-feedback-page .gf-classic-card::-webkit-scrollbar {
        display: none;
    }

.gf-feedback-page .gf-modal-overlay {
    padding: 12px;
}

.gf-feedback-page .gf-mood-row {
    flex-wrap: wrap;
}

.gf-feedback-page .gf-mood-btn {
    min-width: 88px;
}

@media (max-width: 360px) {
    .app-wrapper.gf-feedback-page #pageContent main {
        padding: 10px 10px 14px;
    }

    .gf-feedback-page .assistant-title {
        font-size: 15px;
    }

    .gf-feedback-page #screenIntro .gf-headline {
        font-size: 18px;
    }

    .gf-feedback-page #screenIntro .gf-grace-card {
        padding: 16px 12px;
        border-radius: 22px;
    }

    .gf-feedback-page .gf-btn-primary {
        font-size: 14px;
        padding: 11px 14px;
    }

    .gf-feedback-page .gf-classic-link {
        font-size: 12px;
        padding: 8px 12px;
    }

    .app-wrapper.gf-feedback-page > footer {
        font-size: 10px;
        padding: 10px 10px;
    }

    .gf-feedback-page #callOverlay .gf-call-card {
        padding: 16px 12px 12px !important;
    }

    .gf-feedback-page #callOverlay .gf-call-avatar-wrap {
        width: 110px;
        height: 110px;
    }

    .gf-feedback-page #summaryOverlay .gf-summary-card {
        padding: 18px 12px 12px;
    }

    .gf-feedback-page .gf-mood-btn {
        min-width: 72px;
        padding: 12px 6px;
        font-size: 12px;
    }
}

@media (min-width: 600px) {
    .gf-feedback-page .assistant-titlebar {
        min-height: 64px;
        padding: 12px 24px;
    }

    .gf-feedback-page .assistant-back-btn {
        left: 24px;
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .gf-feedback-page .back-arrow-icon {
        width: 20px;
    }

    .gf-feedback-page .assistant-title {
        font-size: 22px;
    }

    .app-wrapper.gf-feedback-page #pageContent main {
        max-width: 720px !important;
        padding: 32px 32px 40px;
    }

    .gf-feedback-page #screenIntro .gf-headline {
        font-size: 30px;
        line-height: 1.3;
        margin-bottom: 14px;
    }

    .gf-feedback-page #screenIntro .gf-lede {
        display: block;
        font-size: 17px;
        line-height: 1.6;
        max-width: 520px;
        margin-bottom: 30px;
    }

    .gf-feedback-page #screenIntro .gf-grace-card {
        width: 100%;
        max-width: 560px;
        min-height: 340px;
        padding: 36px 32px;
        border-radius: 32px;
    }

    .gf-feedback-page #screenIntro .gf-avatar-wrap {
        width: 140px;
        height: 140px;
        margin-bottom: 16px;
    }

    .gf-feedback-page .gf-online-dot {
        width: 20px;
        height: 20px;
        right: 6px;
        bottom: 6px;
    }

    .gf-feedback-page .gf-grace-name {
        font-size: 20px;
    }

    .gf-feedback-page .gf-grace-role {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .gf-feedback-page #screenIntro .gf-grace-card .gf-btn-primary {
        max-width: 380px;
        padding: 15px 24px;
        font-size: 17px;
    }

    .gf-feedback-page .gf-btn-icon-circle {
        width: 32px;
        height: 32px;
    }

    .gf-feedback-page .gf-classic-link {
        margin-top: 22px;
        font-size: 15px;
        padding: 12px 22px;
    }

    .gf-feedback-page .gf-thanks-screen {
        max-width: 560px;
        margin: 0 auto;
    }

    .gf-feedback-page .gf-thanks-check {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }

    .gf-feedback-page .gf-ack-list {
        max-width: 560px;
        margin: 8px 0 18px;
    }

    .gf-feedback-page .gf-ack-item {
        gap: 14px;
        padding: 14px 6px;
    }

    .gf-feedback-page .gf-ack-icon {
        width: 46px;
        height: 46px;
    }

    .gf-feedback-page .gf-ack-title {
        font-size: 16px;
    }

    .gf-feedback-page .gf-ack-sub {
        font-size: 14px;
    }

    .gf-feedback-page .gf-recovery-box {
        padding: 20px 24px;
        margin-bottom: 16px;
    }

    .gf-feedback-page .gf-recovery-title {
        font-size: 17px;
    }

    .gf-feedback-page .gf-recovery-sub {
        font-size: 14px;
    }

    .gf-feedback-page #doneBtn {
        max-width: 320px;
        margin: 0 auto;
        font-size: 15px;
        padding: 13px 24px;
    }

    .app-wrapper.gf-feedback-page > footer {
        font-size: 13px;
        padding: 14px 28px;
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
    }

    html body .gf-feedback-page #callOverlay .gf-call-card {
        max-width: 560px !important;
        padding: 32px 32px 28px !important;
    }

    .gf-feedback-page #callOverlay .gf-call-top {
        margin-bottom: 40px !important;
    }

    .gf-feedback-page #callOverlay .gf-live-badge {
        font-size: 14px;
        padding: 8px 16px;
    }

    .gf-feedback-page #callOverlay .gf-call-avatar-wrap {
        width: 200px;
        height: 200px;
        margin-bottom: 24px;
    }

    .gf-feedback-page #callOverlay .gf-call-grace-name {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .gf-feedback-page #callOverlay .gf-sparkle {
        width: 18px;
        height: 18px;
    }

    .gf-feedback-page #callOverlay .gf-wave-bars {
        height: 22px;
        gap: 4px;
    }

        .gf-feedback-page #callOverlay .gf-wave-bars span {
            width: 4px;
        }

    .gf-feedback-page #callOverlay .gf-caption {
        max-width: 480px;
        min-height: 90px;
        font-size: 19px;
        line-height: 1.6;
    }

    .gf-feedback-page #callOverlay .gf-call-controls {
        gap: 48px;
        padding-top: 24px !important;
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
    }

    .gf-feedback-page .gf-circle-btn {
        width: 64px;
        height: 64px;
    }

    .gf-feedback-page #callOverlay #endCallBtn {
        width: 68px !important;
        height: 68px !important;
    }

    .gf-feedback-page #micToggleBtn img {
        width: 24px;
        height: 24px;
    }

    .gf-feedback-page #callOverlay #endCallBtn img {
        width: 26px !important;
        height: 26px !important;
    }

    .gf-feedback-page .gf-ctrl-label {
        font-size: 14px;
    }

    .gf-feedback-page #summaryOverlay {
        padding: 24px;
    }

        .gf-feedback-page #summaryOverlay .gf-summary-card {
            max-width: 560px;
            height: auto;
            max-height: min(760px, calc(100% - 48px));
            padding: 30px 26px 22px;
        }

        .gf-feedback-page #summaryOverlay .gf-summary-title {
            font-size: 24px;
            margin: 0 56px 6px 8px;
        }

        .gf-feedback-page #summaryOverlay .gf-summary-sub {
            font-size: 14px;
            margin-bottom: 20px;
        }

        .gf-feedback-page #summaryOverlay .gf-summary-item {
            padding: 18px 20px;
        }

        .gf-feedback-page #summaryOverlay .gf-summary-item-header strong {
            font-size: 16px;
        }

        .gf-feedback-page #summaryOverlay .gf-summary-answer {
            font-size: 14px;
        }

        .gf-feedback-page #summaryOverlay .gf-satisfaction-icon {
            width: 20px;
            height: 20px;
        }

        .gf-feedback-page #summaryOverlay .gf-summary-quote {
            font-size: 14px;
        }

        .gf-feedback-page #summaryOverlay .gf-summary-close {
            top: 22px;
            right: 22px;
        }

    .gf-feedback-page .gf-classic-card {
        max-width: 560px;
        padding: 30px 28px 26px;
        margin: auto;
    }

    .gf-feedback-page .gf-summary-title {
        font-size: 24px;
    }

    .gf-feedback-page .gf-summary-sub {
        font-size: 14.5px;
    }

    .gf-feedback-page .gf-classic-label {
        font-size: 16px;
    }

    .gf-feedback-page .gf-mood-btn {
        font-size: 14px;
        padding: 20px 10px;
    }

    .gf-feedback-page .gf-mood-img {
        width: 26px;
        height: 26px;
    }

    .gf-feedback-page .gf-classic-textarea {
        min-height: 120px;
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    .app-wrapper.gf-feedback-page #pageContent main {
        max-width: 820px !important;
        padding-top: 48px;
    }

    .gf-feedback-page #screenIntro .gf-headline {
        font-size: 34px;
    }

    .gf-feedback-page #screenIntro .gf-grace-card {
        max-width: 620px;
        min-height: 380px;
    }

    html body .gf-feedback-page #callOverlay .gf-call-card {
        max-width: 620px !important;
    }

    .gf-feedback-page #callOverlay .gf-call-avatar-wrap {
        width: 220px;
        height: 220px;
    }
}

@media (min-width: 600px) and (max-height: 760px) {
    .app-wrapper.gf-feedback-page #pageContent main {
        padding-top: 20px;
        padding-bottom: 24px;
        justify-content: flex-start;
    }

    .gf-feedback-page #screenIntro .gf-headline {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .gf-feedback-page #screenIntro .gf-lede {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .gf-feedback-page #screenIntro .gf-grace-card {
        min-height: 0;
        padding: 22px 24px;
    }

    .gf-feedback-page #screenIntro .gf-avatar-wrap {
        width: 96px;
        height: 96px;
        margin-bottom: 10px;
    }

    .gf-feedback-page .gf-grace-role {
        margin-bottom: 14px;
    }

    .gf-feedback-page .gf-classic-link {
        margin-top: 14px;
    }

    .gf-feedback-page #callOverlay .gf-call-top {
        margin-bottom: 16px !important;
    }

    .gf-feedback-page #callOverlay .gf-call-avatar-wrap {
        width: 130px;
        height: 130px;
        margin-bottom: 14px;
    }

    .gf-feedback-page #callOverlay .gf-caption {
        min-height: 60px;
        font-size: 17px;
    }
}

@media (max-height: 500px) {
    .gf-feedback-page .assistant-titlebar {
        min-height: 44px;
        padding: 6px 12px;
    }

    .gf-feedback-page .assistant-back-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .app-wrapper.gf-feedback-page #pageContent main {
        padding: 10px 14px 14px;
        justify-content: flex-start;
    }

    .gf-feedback-page #screenIntro .gf-headline {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .gf-feedback-page #screenIntro .gf-lede {
        display: none;
    }

    .gf-feedback-page #screenIntro .gf-grace-card {
        min-height: 0;
        padding: 12px 14px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px 14px;
        justify-content: center;
    }

    .gf-feedback-page #screenIntro .gf-avatar-wrap {
        width: 56px;
        height: 56px;
        margin-bottom: 0;
    }

    .gf-feedback-page #screenIntro .gf-grace-card .gf-btn-primary {
        width: auto;
        min-width: 180px;
    }

    .app-wrapper.gf-feedback-page > footer {
        padding-top: 6px;
        padding-bottom: calc(6px + env(safe-area-inset-bottom));
    }

    html body .gf-feedback-page #callOverlay .gf-call-card {
        padding: 10px 16px 8px !important;
        overflow-y: auto !important;
    }

    .gf-feedback-page #callOverlay .gf-call-top {
        margin-bottom: 6px !important;
    }

    .gf-feedback-page #callOverlay .gf-call-avatar-wrap {
        width: 64px;
        height: 64px;
        margin-bottom: 6px;
    }

    .gf-feedback-page #callOverlay .gf-call-grace-name {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .gf-feedback-page #callOverlay .gf-wave-bars {
        margin-bottom: 4px;
    }

    .gf-feedback-page #connectingSpinner {
        margin: 4px 0 !important;
        width: 22px !important;
        height: 22px !important;
    }

    .gf-feedback-page #callOverlay .gf-caption {
        min-height: 0;
        margin-bottom: 4px;
        font-size: 12.5px;
        line-height: 1.4;
    }

    .gf-feedback-page #callOverlay .gf-call-controls {
        padding-top: 6px !important;
        padding-bottom: 4px;
        gap: 28px;
    }

    .gf-feedback-page #callOverlay .gf-circle-btn,
    .gf-feedback-page #callOverlay #endCallBtn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    .gf-feedback-page #callOverlay .gf-ctrl-label {
        font-size: 11px;
    }

    .gf-feedback-page #summaryOverlay .gf-summary-card {
        height: calc(100% - 16px);
        max-height: none;
        padding: 14px 14px 10px;
    }

    .gf-feedback-page #summaryOverlay {
        padding: 8px;
    }

    .gf-feedback-page .gf-classic-card {
        padding: 16px 16px 14px;
    }

    .gf-feedback-page .gf-classic-section {
        margin-bottom: 12px;
    }
}

@supports (padding: env(safe-area-inset-top)) {
    .gf-feedback-page #callOverlay .gf-call-card {
        padding-top: max(20px, env(safe-area-inset-top)) !important;
        padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gf-feedback-page .gf-call-avatar-ring,
    .gf-feedback-page .gf-live-dot,
    .gf-feedback-page .gf-wave-bars span,
    .gf-feedback-page #connectingSpinner {
        animation: none !important;
    }
}

/* --- DISCHARGE FEEDBACK PAGE (gf-discharge-page) --- */
.app-wrapper.gf-discharge-page #pageContent {
    -webkit-overflow-scrolling: touch;
}

    .app-wrapper.gf-discharge-page #pageContent main {
        width: 100%;
        max-width: 640px !important;
        margin: 0 auto;
        padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
        gap: 10px;
        justify-content: flex-start !important;
        align-content: flex-start !important;
    }

.gf-discharge-page .feedback-header h2,
.gf-discharge-page .feedback-header p,
.gf-discharge-page .cta-title,
.gf-discharge-page .cta-sub {
    overflow-wrap: anywhere;
}

.gf-discharge-page .feedback-cta-row {
    width: 100%;
}

.gf-discharge-page .feedback-cta {
    min-width: 0;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 360px) {
    .app-wrapper.gf-discharge-page #pageContent main {
        padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
    }

    .gf-discharge-page .feedback-header h2 {
        font-size: 16px;
    }

    .gf-discharge-page .feedback-header p {
        font-size: 12.5px;
    }

    .gf-discharge-page .feedback-cta-row {
        flex-direction: column;
        gap: 10px;
    }

    .gf-discharge-page .feedback-cta {
        min-height: 104px;
        padding: 14px 12px;
    }

        .gf-discharge-page .feedback-cta .cta-icon {
            font-size: 26px;
            margin-bottom: 6px;
        }
}

@media (min-width: 600px) {
    .app-wrapper.gf-discharge-page #pageContent main {
        max-width: 720px !important;
        padding: 28px 32px 32px;
        gap: 14px;
    }

    .gf-discharge-page .feedback-header h2 {
        margin: 6px 0 8px;
        font-size: 26px;
    }

    .gf-discharge-page .feedback-header p {
        margin-bottom: 20px;
        font-size: 16.5px;
        line-height: 1.55;
        max-width: 560px;
    }

    .gf-discharge-page .feedback-cta-row {
        gap: 20px;
        margin-bottom: 20px;
    }

    .gf-discharge-page .feedback-cta {
        min-height: 190px;
        padding: 26px 20px;
        border-radius: 22px;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
    }

        .gf-discharge-page .feedback-cta .cta-icon {
            font-size: 44px;
            margin-bottom: 16px;
        }

        .gf-discharge-page .feedback-cta .cta-title {
            font-size: 19px;
            margin-bottom: 6px;
        }

        .gf-discharge-page .feedback-cta .cta-sub {
            font-size: 14.5px;
        }

        .gf-discharge-page .feedback-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
        }

        .gf-discharge-page .feedback-cta:active {
            transform: scale(0.98);
        }
}

@media (min-width: 768px) {
    html body .app-wrapper.gf-discharge-page #pageContent.content {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .app-wrapper.gf-discharge-page #pageContent main {
        height: auto;
        min-height: 100%;
    }
}

@media (min-width: 1024px) {
    .app-wrapper.gf-discharge-page #pageContent main {
        max-width: 860px !important;
        padding: 40px 40px 44px;
    }

    .gf-discharge-page .feedback-header h2 {
        font-size: 30px;
    }

    .gf-discharge-page .feedback-header p {
        font-size: 18px;
        max-width: 640px;
    }

    .gf-discharge-page .feedback-cta {
        min-height: 230px;
        padding: 32px 24px;
    }

        .gf-discharge-page .feedback-cta .cta-icon {
            font-size: 52px;
        }

        .gf-discharge-page .feedback-cta .cta-title {
            font-size: 22px;
        }

        .gf-discharge-page .feedback-cta .cta-sub {
            font-size: 16px;
        }
}

@media (max-height: 500px) {
    .app-wrapper.gf-discharge-page #pageContent main {
        justify-content: flex-start;
        padding: 8px 14px 10px;
        gap: 6px;
    }

    .gf-discharge-page .feedback-header h2 {
        margin: 2px 0 2px;
        font-size: 16px;
    }

    .gf-discharge-page .feedback-header p {
        margin-bottom: 8px;
        font-size: 12.5px;
    }

    .gf-discharge-page .feedback-cta-row {
        flex-direction: row;
        gap: 12px;
        margin-bottom: 6px;
    }

    .gf-discharge-page .feedback-cta {
        min-height: 84px;
        padding: 10px 12px;
        border-radius: 14px;
    }

        .gf-discharge-page .feedback-cta .cta-icon {
            font-size: 22px;
            margin-bottom: 4px;
        }

        .gf-discharge-page .feedback-cta .cta-title {
            font-size: 13px;
        }

        .gf-discharge-page .feedback-cta .cta-sub {
            font-size: 11px;
        }
}

@media (min-width: 600px) and (max-height: 760px) {
    .gf-discharge-page .feedback-cta {
        min-height: 140px;
        padding: 18px 16px;
    }

        .gf-discharge-page .feedback-cta .cta-icon {
            font-size: 34px;
            margin-bottom: 10px;
        }
}

@media (prefers-reduced-motion: reduce) {
    .gf-discharge-page .feedback-cta {
        transition: none;
    }
}

/* =========================================================
   TRACKING PAGE - FULL RESPONSIVE CSS
   ========================================================= */

#TracKContainer {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #f1f3f7 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100vh !important;
}

    #TracKContainer .top-bar {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 12px 16px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e5e7eb !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-shrink: 0 !important;
    }

    #TracKContainer .map-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 12px 16px 0 16px !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }

    #TracKContainer .map-card {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1496 / 1036 !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        background: #ffffff !important;
        margin: 0 !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

        #TracKContainer .map-card img {
            width: 100% !important;
            height: 100% !important;
            object-fit: contain !important;
            display: block !important;
        }

    #TracKContainer .info-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 12px 16px 16px 16px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        flex-shrink: 0 !important;
    }

    #TracKContainer .info-card,
    #TracKContainer #trackingCard,
    #TracKContainer #feedbackPrompt {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        border-radius: 20px !important;
        padding: 16px !important;
        background: #ffffff !important;
    }

    #TracKContainer #trackingCard {
        padding-bottom: 20px !important;
    }

    #TracKContainer #feedbackPrompt {
        margin-top: 0 !important;
    }

@media (min-width: 768px) {
    #TracKContainer {
        max-width: 100% !important;
    }

        #TracKContainer .top-bar {
            max-width: 100% !important;
            padding: 16px 32px !important;
        }

        #TracKContainer .map-wrapper {
            max-width: 100% !important;
            padding: 16px 32px 0 32px !important;
        }

        #TracKContainer .info-wrapper {
            max-width: 100% !important;
            padding: 16px 32px 32px 32px !important;
            gap: 14px !important;
        }

        #TracKContainer .info-card,
        #TracKContainer #trackingCard,
        #TracKContainer #feedbackPrompt {
            padding: 24px !important;
        }
}

.app-header .header-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.app-header .logo {
    flex-shrink: 0 !important;
}

.app-header .header-right-group {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: clamp(4px, 1.5vw, 8px) !important;
}

.app-header .header-user-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

    .app-header .header-user-info .welcome,
    .app-header .header-user-info .room {
        width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

.app-header .lang-switcher,
.app-header .logout-btn {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
}

.app-header .logout-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: clamp(32px, 8vw, 38px) !important;
    height: clamp(32px, 8vw, 38px) !important;
    min-width: clamp(32px, 8vw, 38px) !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.app-header .logout-icon {
    width: clamp(14px, 4vw, 16px) !important;
    height: clamp(14px, 4vw, 16px) !important;
}

    .app-header .logout-icon::before {
        right: -6px !important;
        top: 4px !important;
        width: 10px !important;
        height: 2px !important;
    }

    .app-header .logout-icon::after {
        right: -6px !important;
        top: 0 !important;
        width: 6px !important;
        height: 6px !important;
    }

.app-header .lang-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: clamp(32px, 8vw, 38px) !important;
    padding: 0 clamp(6px, 2vw, 10px) !important;
    gap: clamp(2px, 1vw, 4px) !important;
    box-sizing: border-box !important;
}

@media (max-width: 360px) {
    .app-header .header-flex {
        padding: 6px 8px !important;
        gap: 2px !important;
    }

        .app-header .header-flex .logo img {
            height: 28px !important;
            margin-left: 6px !important;
            margin-right: 0 !important;
        }

    .app-header .header-user-info .welcome {
        font-size: 11px !important;
    }

    .app-header .header-user-info .room {
        font-size: 10px !important;
    }
}

html, body {
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #f1f3f7 !important;
}

body {
    display: flex !important;
    flex-direction: column !important;
}

.app-wrapper {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding-top: env(safe-area-inset-top) !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

    .app-wrapper > header,
    .app-wrapper > .header,
    .app-wrapper > .app-header,
    .app-wrapper > .mobile-header,
    .app-wrapper > .assistant-titlebar,
    .app-wrapper > .bed-context,
    .app-wrapper > #bedContext,
    .app-wrapper > #pageNav,
    .app-wrapper > nav,
    .app-wrapper > .nav,
    .app-wrapper > footer,
    .app-wrapper > .footer {
        flex: 0 0 auto !important;
        margin-top: 0 !important;
    }

    .app-wrapper > .content,
    .app-wrapper > #pageContent,
    .app-wrapper > #servicesContainer,
    .app-wrapper > #servicesMenuContainer,
    .app-wrapper > #appointmentsContainer,
    .app-wrapper > #medicationList,
    .app-wrapper > #materials-container,
    .app-wrapper > .tasks-scroll-container,
    .app-wrapper > #TracKContainer {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .app-wrapper > footer,
    .app-wrapper > .footer {
        width: 100% !important;
        position: relative !important;
        z-index: 20 !important;
    }


