body {
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
}

img, video, canvas {
    max-width: 100%;
    height: auto;
}

.nx-mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    display: none;
    align-items: stretch;
    height: calc(54px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--bg-card, #fff);
    border-top: 1px solid var(--border-light, #e2e8f0);
    box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.06);
}

.nx-tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--text-tertiary, #64748b);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease;
}

.nx-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.nx-tab-label {
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.nx-tab-item.active {
    color: var(--color-primary, #0891b2);
}

@media (max-width: 768px) {
    .show-mobile { display: block !important; }
    .nx-mobile-tabbar { display: flex; }
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .chat-input,
    .jd-body textarea,
    .jd-body input {
        font-size: 16px !important;
    }
    .jo-search-row {
        align-items: stretch;
    }
    .jo-search-row input#jo-search-keyword {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    .jo-search-row > .form-control,
    .jo-search-row select.form-control {
        width: auto !important;
        min-width: 0 !important;
        flex: 1 1 48% !important;
    }
    .jo-search-row .btn {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
    .send-btn {
        width: 44px !important;
        height: 44px !important;
    }
    .btn-icon {
        width: 44px;
        height: 44px;
    }
    .scroll-to-bottom-btn {
        bottom: calc(80px + var(--safe-bottom));
    }
    .chat-sidebar {
        max-height: 35vh;
        padding-bottom: var(--safe-bottom);
    }
    .interview-info-drawer {
        z-index: var(--z-modal);
    }
    .modal {
        max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom)) !important;
    }
}

@media (min-width: 769px) {
    .show-mobile { display: none !important; }
}