:root {
    --app-shell-topbar: rgba(255, 255, 255, 0.82);
    --app-shell-topbar-text: #0f172a;
    --app-shell-sidebar-bg: linear-gradient(170deg, rgba(255, 255, 255, 0.86) 0%, rgba(241, 245, 249, 0.82) 100%);
    --app-shell-sidebar-text: #1e293b;
    --app-shell-sidebar-muted: #64748b;
    --app-shell-border: rgba(148, 163, 184, 0.35);
    --app-shell-accent: #0284c7;
    --app-shell-accent-soft: rgba(2, 132, 199, 0.14);
    --app-page-border: rgba(148, 163, 184, 0.3);
    --app-page-surface: rgba(255, 255, 255, 0.88);
    --app-page-subtitle: #475569;
}

body.auth-bootstrap-hidden {
    display: none;
}

body[data-page-gate="pending"] #app,
body[data-page-gate="denied"] #app {
    display: none;
}

body[data-page-gate="pending"] #app-shell-topbar,
body[data-page-gate="pending"] #app-shell-sidebar,
body[data-page-gate="pending"] #app-shell-backdrop,
body[data-page-gate="denied"] #app-shell-topbar,
body[data-page-gate="denied"] #app-shell-sidebar,
body[data-page-gate="denied"] #app-shell-backdrop {
    display: none !important;
}

[v-cloak] {
    display: none;
}

@keyframes app-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

.animate-slide-up {
    animation: app-slide-up 0.3s ease-out;
}

body.app-shell-enabled {
    padding-top: 64px;
    padding-left: 280px;
    background: #f1f5f9;
}

#app-shell-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    height: 64px;
    background: var(--app-shell-topbar);
    color: var(--app-shell-topbar-text);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

#app-shell-topbar .brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-width: 140px;
    max-width: 320px;
}

#app-shell-topbar .mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    cursor: pointer;
    flex: none;
}

#app-shell-topbar .mobile-menu-toggle svg {
    width: 18px;
    height: 18px;
}

#app-shell-topbar .user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #334155;
    margin-left: auto;
}

@media (min-width: 1025px) {
    #app-shell-topbar .mobile-menu-toggle {
        display: none !important;
    }
}

#app-shell-topbar .auth-company-switch {
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    min-width: 180px;
    max-width: 260px;
}

.app-page select,
#app-shell-topbar .auth-company-switch {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2rem;
}

#app-shell-topbar .auth-company-box {
    display: inline-flex;
    align-items: center;
    max-width: 300px;
}

#app-shell-topbar .auth-welcome-inline {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

#app-shell-topbar .auth-company-logo {
    width: auto;
    height: 45px;
    max-width: 220px;
    object-fit: contain;
    background: transparent;
    overflow: hidden;
}

#app-shell-topbar .auth-company-logo-placeholder {
    min-width: 120px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

#app-shell-topbar .logout-btn {
    border: 0;
    background: #dc2626;
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 700;
}

#app-shell-topbar .logout-btn:hover {
    background: #b91c1c;
}

#app-shell-sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 55;
    background: var(--app-shell-sidebar-bg);
    color: var(--app-shell-sidebar-text);
    overflow-y: auto;
    border-right: 1px solid var(--app-shell-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 10px 0 26px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#app-shell-backdrop {
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 54;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

#app-shell-sidebar .sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 6px;
}

#app-shell-sidebar .sidebar-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    padding: 8px 0 10px;
    background: transparent;
}

#app-shell-sidebar .sidebar-footer-link {
    width: 100%;
    justify-content: flex-start;
}

#app-shell-sidebar .sidebar-footer-link+.sidebar-footer-link {
    margin-top: 2px;
}

#app-shell-sidebar .sidebar-footer-logout {
    color: #991b1b;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

#app-shell-sidebar .sidebar-footer-logout:hover {
    background: rgba(220, 38, 38, 0.1);
    border-left-color: rgba(220, 38, 38, 0.5);
}

#app-shell-sidebar .sidebar-version {
    margin: 8px 14px 0;
    padding: 8px 10px 4px;
    border-top: 1px dashed rgba(148, 163, 184, 0.35);
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

#app-shell-sidebar .group {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 10px 0 8px;
    margin-bottom: 6px;
}

#app-shell-sidebar .group-title-static {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 10px;
    color: #334155;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#app-shell-sidebar .group-body {
    padding: 0 0 8px;
}

#app-shell-sidebar .menu-category+.menu-category {
    margin-top: 8px;
}

#app-shell-sidebar .menu-category-title {
    padding: 4px 14px 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

#app-shell-sidebar .menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--app-shell-sidebar-text);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 0;
    border-left: 3px solid transparent;
}

#app-shell-sidebar .menu-link:hover {
    background: rgba(255, 255, 255, 0.75);
    color: #0f172a;
    border-left-color: rgba(2, 132, 199, 0.35);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

#app-shell-sidebar .menu-link.active {
    background: var(--app-shell-accent-soft);
    border-left-color: var(--app-shell-accent);
    color: #0c4a6e;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.12);
}

#app-shell-sidebar .menu-link .menu-page-icon {
    width: 18px;
    text-align: center;
    flex: none;
    font-size: 14px;
    line-height: 1;
}

#app-shell-sidebar .menu-link.active .menu-page-icon {
    transform: scale(1.06);
}

.app-page {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 20px 16px 32px;
}

/* Sistem sayfalarında kart yüzeylerini tutarlı kırık-beyaz tona çek */
body[data-auth-required="true"] .app-page .bg-white.rounded-lg.border.border-slate-200 {
    background: var(--app-page-surface) !important;
    border-color: var(--app-page-border) !important;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.app-header-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--app-page-surface);
    border: 1px solid var(--app-page-border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.app-header-main {
    min-width: 0;
}

.app-header-title {
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
}

.app-header-subtitle {
    margin-top: 6px;
    color: var(--app-page-subtitle);
    font-size: 0.95rem;
}

.app-header-tools {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.access-denied-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.access-denied-card {
    width: 100%;
    max-width: 42rem;
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #fecaca;
    box-shadow: 0 20px 30px -12px rgba(15, 23, 42, 0.28);
    padding: 2.5rem;
    text-align: center;
}

.access-denied-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 0.75rem;
}

.access-denied-message {
    color: #4b5563;
    margin-bottom: 2rem;
}

.access-denied-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.access-denied-link:hover {
    background: #000000;
}

.app-header-tabs {
    display: inline-flex;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    padding: 4px;
    flex-wrap: wrap;
}

.app-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.app-switch-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.app-switch-track {
    position: relative;
    width: 44px;
    height: 24px;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    background: #e2e8f0;
    transition: background-color 160ms ease, border-color 160ms ease;
    flex: none;
}

.app-switch-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.22);
    transform: translateX(0);
    transition: transform 160ms ease;
}

.app-switch-input:checked+.app-switch-track {
    background: #10b981;
    border-color: #10b981;
}

.app-switch-input:checked+.app-switch-track::after {
    transform: translateX(20px);
}

.app-switch-input:focus-visible+.app-switch-track {
    outline: 2px solid rgba(2, 132, 199, 0.45);
    outline-offset: 2px;
}

.app-switch-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.login-grid-pattern {
    background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
}

@media (max-width: 1024px) {
    body.app-shell-enabled {
        padding-left: 0;
        padding-top: 64px;
    }

    #app-shell-topbar .mobile-menu-toggle {
        display: inline-flex;
    }

    #app-shell-sidebar {
        width: 280px;
        height: auto;
        top: 64px;
        bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        z-index: 56;
    }

    body.app-shell-enabled.app-sidebar-open #app-shell-sidebar {
        transform: translateX(0);
    }

    body.app-shell-enabled.app-sidebar-open #app-shell-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    #app-shell-sidebar .sidebar-footer {
        display: block;
    }

    #app-shell-sidebar .menu-link {
        margin: 0 8px;
        border-left-width: 3px;
    }

    .app-page {
        padding: 14px 10px 22px;
    }

    .app-header-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-header-tools {
        width: 100%;
        justify-content: flex-start;
    }

    #app-shell-topbar .auth-welcome-inline {
        display: none;
    }

    #app-shell-topbar {
        padding: 0 10px;
        gap: 8px;
    }

    #app-shell-topbar .brand {
        min-width: 0;
        max-width: 40vw;
        overflow: hidden;
    }

    #app-shell-topbar .auth-company-logo {
        height: 31px;
        max-width: 40vw;
    }

    #app-shell-topbar .auth-company-logo-placeholder {
        min-width: 84px;
        height: 31px;
        padding: 0 8px;
    }

    #app-shell-topbar .auth-company-switch {
        min-width: 132px;
        max-width: 170px;
    }
}

/* =========================================================
   PREMIUM AESTHETICS - Injected by AntiGravity
   ========================================================= */
:root {
    --app-shell-topbar: rgba(255, 255, 255, 0.5);
    --app-shell-topbar-text: #0f172a;
    --app-shell-sidebar-bg: rgba(255, 255, 255, 0.4);
    --app-shell-sidebar-text: #1e293b;
    --app-shell-sidebar-muted: #64748b;
    --app-shell-border: rgba(255, 255, 255, 0.4);
    --app-shell-accent: #4f46e5;
    --app-shell-accent-soft: rgba(79, 70, 229, 0.12);
    --app-page-surface: rgba(255, 255, 255, 0.45);
    --app-page-border: rgba(255, 255, 255, 0.3);
}

body.app-shell-enabled {
    background: linear-gradient(135deg, #f6f8fd 0%, #f1f5f9 100%) !important;
    background-attachment: fixed !important;
    position: relative;
}

body.app-shell-enabled::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 40% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 18s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(2%, 3%);
    }
}

#app-shell-topbar,
#app-shell-sidebar {
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.app-page section>div {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.03);
    border-radius: 20px !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.app-page section>div:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(255, 255, 255, 1) !important;
}

.app-page section:nth-child(1)>div:nth-child(1) {
    animation-delay: 0.1s;
}

.app-page section:nth-child(1)>div:nth-child(2) {
    animation-delay: 0.15s;
}

.app-page section:nth-child(1)>div:nth-child(3) {
    animation-delay: 0.2s;
}

.app-page section:nth-child(1)>div:nth-child(4) {
    animation-delay: 0.25s;
}

.app-page section:nth-child(1)>div:nth-child(5) {
    animation-delay: 0.3s;
}

.app-page section:nth-child(1)>div:nth-child(6) {
    animation-delay: 0.35s;
}

.app-page section:nth-child(2)>div:nth-child(1) {
    animation-delay: 0.4s;
}

.app-page section:nth-child(2)>div:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

#app-shell-sidebar .menu-link {
    transition: all 0.3s ease;
    border-radius: 12px;
    margin: 4px 10px;
}

#app-shell-sidebar .menu-link:hover {
    transform: translateX(6px);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.app-switch-input:checked+.app-switch-track {
    background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
    border-color: transparent;
}

body.connections-page .app-page {
    min-height: calc(100vh - 64px);
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.connections-page .connections-main-shell {
    border: 1px solid rgb(226 232 240);
    background: var(--app-page-surface);
    border-radius: 0.9rem;
    padding: 1.15rem 1.35rem 1.25rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

body.connections-page .connections-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    margin-bottom: 1rem;
    align-items: center;
}

body.connections-page .connections-toolbar>input,
body.connections-page .connections-toolbar-filters select {
    min-height: 2.5rem;
}

body.connections-page .connections-toolbar-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

body.connections-page .connections-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

body.connections-page .connection-list-card {
    --company-accent: rgb(99 102 241);
    --company-accent-rgb: 99, 102, 241;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.95rem;
    background: linear-gradient(180deg, rgb(255 255 255), rgb(248 250 252));
    padding: 1.05rem;
    transition: transform 180ms ease, box-shadow 220ms ease, border-color 180ms ease;
    min-height: 164px;
    animation: connection-card-in 420ms cubic-bezier(0.2, 0.6, 0.2, 1) both;
    animation-delay: calc(var(--card-index, 0) * 42ms);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

body.connections-page .connection-list-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: var(--company-accent);
    opacity: 0.95;
    pointer-events: none;
}

body.connections-page .connection-list-card> :nth-last-child(2) {
    margin-top: 0.25rem;
}

body.connections-page .connection-list-card:hover {
    border-color: color-mix(in srgb, var(--company-accent) 45%, rgb(226 232 240));
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(var(--company-accent-rgb), 0.12), 0 0 0 1px rgba(var(--company-accent-rgb), 0.28);
}

body.connections-page .connection-list-card.is-selected {
    border-color: color-mix(in srgb, var(--company-accent) 55%, white);
    background: linear-gradient(180deg, rgba(var(--company-accent-rgb), 0.08), rgba(var(--company-accent-rgb), 0.04));
    box-shadow: 0 0 0 1px rgba(var(--company-accent-rgb), 0.35), 0 6px 14px rgba(var(--company-accent-rgb), 0.12);
}

body.connections-page .connection-list-skeleton {
    border: 1px solid rgb(226 232 240);
    border-radius: 0.75rem;
    background: rgb(255 255 255);
    padding: 0.75rem;
    min-height: 88px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
}

body.connections-page .connection-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.9rem;
    align-items: center;
}

body.connections-page #connections-card-grid-section {
    overflow: auto;
    padding: 1rem 1rem 0.2rem;
    flex: 1;
    min-height: 0;
}

body.connections-page .connections-toolbar-count {
    min-height: 2.5rem;
    line-height: 1;
    padding: 0.52rem 0.8rem;
    border: 1px solid rgb(203 213 225);
    border-radius: 0.65rem;
    background: rgb(248 250 252);
    color: rgb(71 85 105);
    white-space: nowrap;
}

body.connections-page .skeleton-line {
    height: 0.6rem;
    border-radius: 9999px;
    background: linear-gradient(90deg, rgb(226 232 240) 0%, rgb(241 245 249) 50%, rgb(226 232 240) 100%);
    background-size: 220% 100%;
    animation: loading-wave 1.25s ease-in-out infinite;
}

@keyframes loading-wave {
    0% {
        background-position: 120% 0;
    }

    100% {
        background-position: -120% 0;
    }
}

@keyframes connection-card-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@media (min-width: 768px) {
    body.connections-page .connections-toolbar {
        grid-template-columns: minmax(280px, 1.4fr) minmax(0, 1fr) auto;
        align-items: center;
    }

    body.connections-page .connections-toolbar-filters {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    body.connections-page .connections-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.connections-page .connections-main-shell {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1200px) {
    body.connections-page .connections-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.connections-page .connections-main-shell {
        padding-left: 1.65rem;
        padding-right: 1.65rem;
    }
}

body.connections-page .connection-modal-backdrop,
body.dataset-page .connection-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2100;
}

body.connections-page .connection-modal-shell,
body.dataset-page .connection-modal-shell {
    width: min(1080px, 100%);
    max-height: calc(100vh - 1.5rem);
    overflow: auto;
    border-radius: 1rem;
    border: 1px solid rgb(226 232 240);
    background: rgb(255 255 255);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

body.dataset-page .dataset-modal-shell {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    border: 0;
}

body.dataset-page .dataset-modal-layout {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.dataset-page .dataset-modal-layout .connection-modal-body {
    flex: 1 1 auto;
    overflow: auto;
    padding-bottom: 5.2rem;
}

body.dataset-page .dataset-step1-grid {
    align-items: stretch;
}

body.dataset-page .dataset-table-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 72px;
    border: 1px solid rgb(203 213 225);
    border-radius: 0.9rem;
    padding: 0.8rem 0.95rem;
    background: linear-gradient(180deg, rgb(255 255 255), rgb(248 250 252));
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

body.dataset-page .dataset-table-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(320px 80px at -10% -30%, rgba(99, 102, 241, 0.14), transparent 70%);
    opacity: 0;
    transition: opacity 180ms ease;
}

body.dataset-page .dataset-table-card:hover {
    transform: translateY(-1px);
    border-color: rgb(165 180 252);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.14);
}

body.dataset-page .dataset-table-card:hover::after {
    opacity: 1;
}

body.dataset-page .dataset-table-card.is-selected {
    border-color: rgb(99 102 241);
    background: linear-gradient(180deg, rgb(238 242 255), rgb(224 231 255));
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px) scale(1.01);
}

body.dataset-page .dataset-table-card.is-selected::after {
    opacity: 1;
}

body.dataset-page .dataset-table-card-checkbox {
    width: 17px;
    height: 17px;
    accent-color: rgb(79 70 229);
    flex: none;
}

body.dataset-page .dataset-table-card-title {
    font-size: 15px;
    font-weight: 700;
    color: rgb(15 23 42);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.dataset-page .dataset-table-card-subtitle {
    margin-top: 2px;
    font-size: 11px;
    color: rgb(100 116 139);
}

body.dataset-page .dataset-table-card-badge {
    flex: none;
    border: 1px solid rgb(226 232 240);
    background: rgb(255 255 255);
    color: rgb(71 85 105);
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    font-size: 11px;
    font-weight: 700;
}

body.dataset-page .dataset-table-card.is-selected .dataset-table-card-badge {
    border-color: rgb(165 180 252);
    background: rgb(238 242 255);
    color: rgb(55 48 163);
}

body.dataset-page .dataset-step2-shell {
    min-height: calc(100vh - 250px);
    display: flex;
    flex-direction: column;
}

body.dataset-page .dataset-step2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 0.85rem;
    flex: 1;
    align-content: start;
}

body.dataset-page .dataset-step2-table-card {
    border: 1px solid rgb(203 213 225);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgb(255 255 255), rgb(248 250 252));
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    padding: 0.75rem;
    min-height: clamp(340px, 58vh, 640px);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

body.dataset-page .dataset-step2-columns-list {
    flex: 1;
    overflow: auto;
    max-height: none;
    align-content: start;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 0.55rem;
    padding: 0.3rem 0.35rem 0.35rem 0.15rem;
}

body.dataset-page .dataset-step2-column-card {
    border: 1px solid rgb(203 213 225);
    border-radius: 0.8rem;
    padding: 0.55rem 0.65rem;
    font-size: 13px;
    font-weight: 600;
    color: rgb(30 41 59);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgb(255 255 255);
    cursor: pointer;
    transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease, background-color 170ms ease;
    margin: 0;
}

body.dataset-page .dataset-step2-column-card:hover {
    transform: none;
    border-color: rgb(165 180 252);
    background: rgb(248 250 255);
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.12);
}

body.dataset-page .dataset-step2-column-card.is-selected {
    border-color: rgb(99 102 241);
    background: linear-gradient(180deg, rgb(238 242 255), rgb(224 231 255));
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.16);
}

body.dataset-page .dataset-step2-column-card input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: rgb(79 70 229);
    flex: none;
}

body.dataset-page .dataset-step3-shell {
    min-height: calc(100vh - 250px);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

body.dataset-page .dataset-step3-builder-card {
    background: linear-gradient(180deg, rgb(255 255 255), rgb(248 250 252));
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

body.dataset-page .dataset-step3-column-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.65rem;
    max-height: clamp(260px, 42vh, 560px);
    overflow: auto;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.85rem;
    padding: 0.55rem;
    background: rgb(248 250 252);
    align-content: start;
}

body.dataset-page .dataset-step3-column-group-card {
    border: 1px solid rgb(203 213 225);
    border-radius: 0.8rem;
    background: rgb(255 255 255);
    padding: 0.5rem;
    min-width: 0;
}

body.dataset-page .dataset-step3-column-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 0.55rem;
    max-height: 170px;
    overflow: auto;
    padding: 0.35rem 0.35rem 0.35rem 0.15rem;
    align-content: start;
    scroll-padding-top: 0.35rem;
}

body.dataset-page .dataset-step3-column-item {
    border: 1px solid rgb(203 213 225);
    border-radius: 0.8rem;
    padding: 0.55rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    font-weight: 600;
    color: rgb(30 41 59);
    cursor: pointer;
    background: rgb(255 255 255);
    transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease, background-color 170ms ease;
    margin: 0;
    min-width: 0;
    box-sizing: border-box;
}

body.dataset-page .dataset-step3-column-item:hover {
    transform: none;
    border-color: rgb(165 180 252);
    background: rgb(248 250 255);
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.12);
}

body.dataset-page .dataset-step3-column-item.is-selected {
    border-color: rgb(99 102 241);
    background: linear-gradient(180deg, rgb(238 242 255), rgb(224 231 255));
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.16);
}

body.dataset-page .dataset-step3-column-item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: rgb(79 70 229);
    flex: none;
}

body.dataset-page .dataset-col-label,
body.dataset-page .dataset-group-title {
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    word-break: break-word;
}

body.dataset-page .dataset-step3-editor-head {
    margin-top: 0.4rem;
}

body.dataset-page .dataset-step3-editor-dock {
    position: relative;
    bottom: auto;
    z-index: 1;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.88), rgba(255, 255, 255, 0.96));
    border: 1px solid rgb(226 232 240);
    border-radius: 0.95rem;
    padding: 0.7rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    pointer-events: auto;
}

body.dataset-page .dataset-step3-editor-toolbar {
    row-gap: 0.35rem;
}

body.dataset-page .dataset-native-sql-editor {
    border: 0;
    border-radius: 0.85rem;
    font-size: 14px;
    line-height: 1.6;
    background: transparent;
    box-shadow: none;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    width: 100%;
    min-height: 180px;
    max-height: 52vh;
    resize: vertical;
    outline: none;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    caret-color: rgb(226 232 240);
    text-shadow: none;
}

body.dataset-page .dataset-native-sql-editor:focus {
    box-shadow: none;
}

body.dataset-page .dataset-native-sql-editor::placeholder {
    color: transparent;
}

body.dataset-page .dataset-sql-editor-wrap {
    position: relative;
    border: 1px solid rgb(51 65 85);
    border-radius: 0.85rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgb(15 23 42), rgb(2 6 23));
}

body.dataset-page .dataset-sql-editor-wrap:focus-within {
    border-color: rgb(99 102 241);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

body.dataset-page .dataset-sql-editor-highlight {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: rgb(226 232 240);
    overflow: auto;
    pointer-events: none;
    white-space: pre-wrap;
    word-break: break-word;
}

body.dataset-page .dataset-sql-token-placeholder {
    color: rgb(100 116 139);
}

body.dataset-page .dataset-sql-token-kw {
    color: rgb(56 189 248);
    font-weight: 700;
}

body.dataset-page .dataset-sql-token-str {
    color: rgb(134 239 172);
}

body.dataset-page .dataset-sql-token-num {
    color: rgb(251 191 36);
}

body.dataset-page .dataset-sql-token-op {
    color: rgb(148 163 184);
}

body.dataset-page .dataset-step4-shell {
    min-height: calc(100vh - 250px);
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(380px, 1.35fr);
    gap: 0.85rem;
    align-items: stretch;
}

body.dataset-page .dataset-step5-shell {
    min-height: calc(100vh - 250px);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

body.dataset-page .dataset-step5-map-shell {
    min-height: calc(100vh - 250px);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

body.dataset-page .dataset-step5-map-table-wrap {
    flex: 1 1 auto;
    min-height: 280px;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.75rem;
    background: rgb(255 255 255);
    overflow: auto;
}

body.dataset-page .dataset-step5-controls {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

body.dataset-page .dataset-step5-table-wrap {
    flex: 1 1 auto;
    min-height: 220px;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.75rem;
    background: rgb(255 255 255);
    overflow: auto;
}

body.dataset-page .dataset-step4-panel {
    border: 1px solid rgb(226 232 240);
    border-radius: 0.95rem;
    background: linear-gradient(180deg, rgb(255 255 255), rgb(248 250 252));
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    padding: 0.75rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

body.dataset-page .dataset-step4-source-list {
    border: 1px solid rgb(226 232 240);
    border-radius: 0.75rem;
    background: rgb(255 255 255);
    padding: 0.45rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    max-height: clamp(220px, 40vh, 520px);
    overflow: auto;
}

body.dataset-page .dataset-step4-source-item {
    border: 1px solid rgb(203 213 225);
    border-radius: 0.7rem;
    background: rgb(255 255 255);
    padding: 0.45rem 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    text-align: left;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

body.dataset-page .dataset-step4-source-item:hover {
    border-color: rgb(165 180 252);
    background: rgb(248 250 255);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.1);
}

body.dataset-page .dataset-step4-fx-badge {
    border: 1px solid rgb(165 180 252);
    background: rgb(238 242 255);
    color: rgb(55 48 163);
    border-radius: 999px;
    padding: 0.1rem 0.38rem;
    font-size: 10px;
    font-weight: 700;
    flex: none;
}

body.dataset-page .dataset-step4-source-label {
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    color: rgb(30 41 59);
    white-space: normal;
    word-break: break-word;
}

body.dataset-page .dataset-step4-formula-row {
    border: 1px solid rgb(226 232 240);
    border-radius: 0.75rem;
    background: rgb(255 255 255);
    padding: 0.55rem;
}

body.dataset-page .dataset-step4-formula-row.is-valid {
    border-color: rgb(167 243 208);
    background: linear-gradient(180deg, rgb(236 253 245), rgb(255 255 255));
}

body.dataset-page .dataset-step4-formula-row.is-error {
    border-color: rgb(254 205 211);
    background: linear-gradient(180deg, rgb(255 241 242), rgb(255 255 255));
}

body.dataset-page .dataset-step4-template-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

body.dataset-page .dataset-step4-template-chip {
    border: 1px solid rgb(199 210 254);
    background: rgb(238 242 255);
    color: rgb(67 56 202);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 11px;
    font-weight: 700;
    transition: background-color 160ms ease, border-color 160ms ease;
}

body.dataset-page .dataset-step4-template-chip:hover {
    background: rgb(224 231 255);
    border-color: rgb(165 180 252);
}

body.dataset-page .dataset-step4-expression-editor {
    position: relative;
    z-index: 2;
    min-height: 170px;
    max-height: 42vh;
    resize: vertical;
    background: transparent;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    caret-color: rgb(226 232 240);
    white-space: pre-wrap;
    border: 0 !important;
    box-shadow: none !important;
}

body.dataset-page .dataset-step4-expression-editor::placeholder {
    color: transparent;
}

body.dataset-page .dataset-step4-expression-wrap {
    position: relative;
    border: 1px solid rgb(51 65 85);
    border-radius: 0.75rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgb(15 23 42), rgb(2 6 23));
}

body.dataset-page .dataset-step4-expression-wrap:focus-within {
    border-color: rgb(99 102 241);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

body.dataset-page .dataset-step4-expression-highlight {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: rgb(226 232 240);
    overflow: auto;
    pointer-events: none;
    white-space: pre-wrap;
    word-break: break-word;
}

body.dataset-page .dataset-step4-token-placeholder {
    color: rgb(100 116 139);
}

body.dataset-page .dataset-step4-token-fn {
    color: rgb(56 189 248);
    font-weight: 700;
}

body.dataset-page .dataset-step4-token-col {
    color: rgb(196 181 253);
    font-weight: 600;
}

body.dataset-page .dataset-step4-token-kw {
    color: rgb(244 114 182);
    font-weight: 700;
}

body.dataset-page .dataset-step4-token-num {
    color: rgb(251 191 36);
}

body.dataset-page .dataset-step4-token-op {
    color: rgb(148 163 184);
}

body.dataset-page .dataset-wizard-footer {
    position: sticky;
    bottom: 0;
    z-index: 28;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    margin-top: auto;
}

@media (max-width: 1024px) {
    body.dataset-page .dataset-step2-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 767px) {
    body.dataset-page .dataset-step2-grid {
        grid-template-columns: 1fr;
    }

    body.dataset-page .dataset-step4-shell {
        grid-template-columns: 1fr;
    }

    body.dataset-page .dataset-step2-columns-list,
    body.dataset-page .dataset-step3-column-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.dataset-page .dataset-step3-column-groups {
        grid-template-columns: 1fr;
    }

    body.dataset-page .dataset-step3-editor-dock {
        padding: 0.55rem;
    }
}

@media (max-width: 1279px) {
    body.dataset-page .dataset-step2-table-card {
        min-height: clamp(320px, 52vh, 540px);
    }

    body.dataset-page .dataset-step4-shell {
        grid-template-columns: 1fr;
    }

    body.dataset-page .dataset-step3-column-groups {
        max-height: clamp(240px, 34vh, 360px);
    }
}

body.connections-page .connection-modal-header,
body.dataset-page .connection-modal-header {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
}

body.connections-page .connection-modal-body,
body.dataset-page .connection-modal-body {
    padding: 1.35rem;
    gap: 0.9rem;
}

body.connections-page .connection-table-refresh-btn {
    border: 1px solid rgb(203 213 225);
    background: rgb(248 250 252);
    color: rgb(51 65 85);
    border-radius: 0.55rem;
    padding: 0.35rem 0.65rem;
    font-size: 11px;
    font-weight: 700;
    transition: background-color 140ms ease, border-color 140ms ease;
}

body.connections-page .connection-table-refresh-btn:hover {
    background: rgb(241 245 249);
    border-color: rgb(148 163 184);
}

body.connections-page .connection-table-refresh-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

body.connections-page .connection-table-list {
    border: 1px solid rgb(226 232 240);
    border-radius: 0.75rem;
    background: rgb(255 255 255);
    min-height: 120px;
    max-height: 260px;
    overflow: auto;
    padding: 0.35rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
}

body.connections-page .connection-table-list.is-disabled {
    background: rgb(248 250 252);
}

body.connections-page .connection-table-state {
    font-size: 12px;
    color: rgb(71 85 105);
    padding: 0.55rem 0.6rem;
    border-radius: 0.5rem;
    background: rgb(248 250 252);
    grid-column: 1 / -1;
}

body.connections-page .connection-table-state.is-error {
    color: rgb(190 24 93);
    background: rgb(255 241 242);
}

body.connections-page .connection-table-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.6rem;
    padding: 0.45rem 0.55rem;
    font-size: 12px;
    color: rgb(15 23 42);
    cursor: pointer;
    transition: border-color 120ms ease, background-color 120ms ease;
}

body.connections-page .connection-table-item:hover {
    border-color: rgb(165 180 252);
    background: rgb(245 243 255);
}

body.connections-page .connection-table-item.is-selected {
    border-color: rgb(129 140 248);
    background: rgb(238 242 255);
}

body.connections-page .connection-table-item.is-disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

body.connections-page .connection-table-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: rgb(79 70 229);
    flex: none;
}

@media (max-width: 767px) {

    body.connections-page .connection-modal-shell,
    body.dataset-page .connection-modal-shell {
        width: 100%;
        max-height: calc(100vh - 1rem);
    }

    body.dataset-page .dataset-modal-shell {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    body.connections-page .connection-modal-header,
    body.connections-page .connection-modal-body,
    body.dataset-page .connection-modal-header,
    body.dataset-page .connection-modal-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    body.connections-page .connection-table-list {
        max-height: 220px;
    }
}

@media (min-width: 768px) {
    body.connections-page .connection-table-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

body.connections-page .connection-card-action-btn {
    --company-accent: rgb(99 102 241);
    --company-accent-rgb: 99, 102, 241;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 700;
    border-radius: 0.45rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid rgba(var(--company-accent-rgb), 0.24);
    background: rgba(var(--company-accent-rgb), 0.08);
    color: color-mix(in srgb, var(--company-accent) 55%, rgb(30 41 59));
    transition: transform 120ms ease, box-shadow 140ms ease, background-color 120ms ease, border-color 120ms ease;
}

body.connections-page .connection-card-action-btn:hover {
    background: rgba(var(--company-accent-rgb), 0.14);
    border-color: rgba(var(--company-accent-rgb), 0.42);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(var(--company-accent-rgb), 0.16);
}

body.connections-page .connection-card-action-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: none;
}

body.connections-page .connection-card-action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

body.connections-page .connection-modal-fade-enter-active,
body.connections-page .connection-modal-fade-leave-active,
body.dataset-page .connection-modal-fade-enter-active,
body.dataset-page .connection-modal-fade-leave-active {
    transition: opacity 220ms ease;
}

body.connections-page .connection-modal-fade-enter-from,
body.connections-page .connection-modal-fade-leave-to,
body.dataset-page .connection-modal-fade-enter-from,
body.dataset-page .connection-modal-fade-leave-to {
    opacity: 0;
}

body.connections-page .connection-modal-fade-enter-active .connection-modal-shell,
body.connections-page .connection-modal-fade-leave-active .connection-modal-shell,
body.dataset-page .connection-modal-fade-enter-active .connection-modal-shell,
body.dataset-page .connection-modal-fade-leave-active .connection-modal-shell {
    transition: transform 220ms ease, opacity 220ms ease;
}

body.connections-page .connection-modal-fade-enter-from .connection-modal-shell,
body.connections-page .connection-modal-fade-leave-to .connection-modal-shell,
body.dataset-page .connection-modal-fade-enter-from .connection-modal-shell,
body.dataset-page .connection-modal-fade-leave-to .connection-modal-shell {
    transform: translateY(12px) scale(0.985);
    opacity: 0;
}

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

    body.connections-page .connection-list-card,
    body.connections-page .connection-card-action-btn,
    body.connections-page .connection-modal-fade-enter-active,
    body.connections-page .connection-modal-fade-leave-active,
    body.connections-page .connection-modal-fade-enter-active .connection-modal-shell,
    body.connections-page .connection-modal-fade-leave-active .connection-modal-shell,
    body.connections-page .skeleton-line {
        animation: none !important;
        transition: none !important;
    }
}

body.connections-page .sync-drawer-shell {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    justify-content: flex-end;
    background: rgba(15, 23, 42, 0.4);
}

body.connections-page .sync-drawer-panel {
    width: min(460px, 100%);
    height: 100%;
    overflow: auto;
    background: rgb(255 255 255);
    border-left: 1px solid rgb(226 232 240);
    box-shadow: -8px 0 28px rgba(15, 23, 42, 0.2);
}

body.connection-sync-settings-page .app-page {
    min-height: calc(100vh - 64px);
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.connection-sync-settings-page .sync-settings-main-shell {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-height: 0;
}

body.connection-sync-settings-page .sync-settings-surface {
    margin: 0;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.95rem;
    background: rgb(255 255 255);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

body.connection-sync-settings-page .sync-settings-overview {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgb(226 232 240);
    padding: 0.85rem 1rem;
}

body.connection-sync-settings-page .sync-settings-overview-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

body.connection-sync-settings-page .sync-settings-overview-label {
    font-size: 12px;
    color: rgb(100 116 139);
    font-weight: 700;
}

body.connection-sync-settings-page .sync-settings-overview-value {
    font-size: 18px;
    line-height: 1.1;
    color: rgb(15 23 42);
    font-weight: 800;
}

body.connection-sync-settings-page .sync-settings-overview-divider {
    width: 1px;
    align-self: stretch;
    background: rgb(226 232 240);
}

body.connection-sync-settings-page .sync-settings-permission-note {
    margin-bottom: 0.8rem;
    border: 1px solid rgb(254 205 211);
    border-radius: 0.75rem;
    background: rgb(255 241 242);
    color: rgb(159 18 57);
    font-size: 12px;
    font-weight: 700;
    padding: 0.6rem 0.7rem;
}

body.connection-sync-settings-page .sync-config-list-shell {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 1rem;
}

body.connection-sync-settings-page .sync-config-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

@media (min-width: 900px) {
    body.connection-sync-settings-page .sync-config-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    body.connection-sync-settings-page .sync-config-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

body.connection-sync-settings-page .sync-config-card {
    border: 1px solid rgb(226 232 240);
    border-radius: 0.95rem;
    background: linear-gradient(180deg, rgb(255 255 255), rgb(248 250 252));
    padding: 1rem;
    display: flex;
    flex-direction: column;
    transition: border-color 180ms ease, box-shadow 220ms ease, transform 160ms ease;
}

body.connection-sync-settings-page .sync-config-card:hover {
    border-color: rgb(165 180 252);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

body.connection-sync-settings-page .sync-config-card-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
}

body.connection-sync-settings-page .sync-config-card-content {
    min-width: 0;
    flex: 1 1 auto;
}

body.connection-sync-settings-page .sync-config-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

body.connection-sync-settings-page .sync-config-name {
    font-size: 15px;
    line-height: 1.35;
    color: rgb(15 23 42);
    font-weight: 800;
}

body.connection-sync-settings-page .sync-config-badges {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

body.connection-sync-settings-page .sync-config-badge {
    border: 1px solid rgb(226 232 240);
    border-radius: 9999px;
    padding: 0.24rem 0.55rem;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 700;
    color: rgb(71 85 105);
    background: rgb(248 250 252);
    white-space: nowrap;
}

body.connection-sync-settings-page .sync-config-badge.is-enabled {
    border-color: rgb(167 243 208);
    color: rgb(6 95 70);
    background: rgb(240 253 250);
}

body.connection-sync-settings-page .sync-config-badge.is-disabled {
    border-color: rgb(226 232 240);
    color: rgb(71 85 105);
    background: rgb(248 250 252);
}

body.connection-sync-settings-page .sync-config-badge.is-table-ready {
    border-color: rgb(196 181 253);
    color: rgb(91 33 182);
    background: rgb(245 243 255);
}

body.connection-sync-settings-page .sync-config-badge.is-table-missing {
    border-color: rgb(254 215 170);
    color: rgb(154 52 18);
    background: rgb(255 247 237);
}

body.connection-sync-settings-page .sync-config-route-row {
    margin-top: 0.55rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.75rem;
    background: rgb(255 255 255);
    padding: 0.5rem 0.6rem;
}

body.connection-sync-settings-page .sync-config-route-item {
    font-size: 12px;
    color: rgb(51 65 85);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.connection-sync-settings-page .sync-config-route-arrow {
    font-size: 12px;
    color: rgb(100 116 139);
    font-weight: 700;
}

body.connection-sync-settings-page .sync-config-metrics-grid {
    margin-top: 0.65rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

body.connection-sync-settings-page .sync-config-metric-item {
    border: 1px solid rgb(226 232 240);
    border-radius: 0.7rem;
    background: rgb(255 255 255);
    padding: 0.4rem 0.5rem;
}

body.connection-sync-settings-page .sync-config-metric-label {
    font-size: 11px;
    line-height: 1.2;
    color: rgb(100 116 139);
    font-weight: 700;
}

body.connection-sync-settings-page .sync-config-metric-value {
    margin-top: 0.18rem;
    font-size: 11px;
    line-height: 1.3;
    color: rgb(15 23 42);
    font-weight: 700;
    word-break: break-word;
}

body.connection-sync-settings-page .sync-config-card-actions {
    margin-top: 0.1rem;
    border-top: 1px solid rgb(226 232 240);
    padding-top: 0.7rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: stretch;
}

body.connection-sync-settings-page .sync-config-action-btn {
    border: 1px solid rgb(226 232 240);
    border-radius: 0.55rem;
    background: rgb(255 255 255);
    color: rgb(51 65 85);
    font-size: 12px;
    font-weight: 700;
    padding: 0.46rem 0.68rem;
    width: 100%;
    text-align: center;
    transition: transform 120ms ease, box-shadow 150ms ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.connection-sync-settings-page .sync-config-card-actions>.sync-config-action-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

body.connection-sync-settings-page .sync-config-action-btn:hover {
    background: rgb(241 245 249);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

body.connection-sync-settings-page .sync-config-action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

body.connection-sync-settings-page .sync-config-action-btn-delete {
    border-color: rgb(254 202 202);
    color: rgb(190 18 60);
}

body.connection-sync-settings-page .sync-config-action-btn-delete:hover {
    background: rgb(255 241 242);
}

body.connection-sync-settings-page .sync-config-action-btn-create-table {
    border-color: rgb(167 243 208);
    color: rgb(6 95 70);
    background: rgb(240 253 250);
}

body.connection-sync-settings-page .sync-config-action-btn-create-table:hover {
    background: rgb(209 250 229);
}

body.connection-sync-settings-page .sync-config-action-btn-update-table {
    border-color: rgb(196 181 253);
    color: rgb(91 33 182);
    background: rgb(245 243 255);
}

body.connection-sync-settings-page .sync-config-action-btn-update-table:hover {
    background: rgb(237 233 254);
}

body.connection-sync-settings-page .sync-wizard-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
}

body.connection-sync-settings-page .sync-wizard-modal {
    width: min(1080px, 100%);
    max-height: calc(100vh - 1.5rem);
    overflow: auto;
    border-radius: 1rem;
    border: 1px solid rgb(226 232 240);
    background: rgb(255 255 255);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

body.connection-sync-settings-page .sync-wizard-body {
    max-height: calc(100vh - 240px);
    overflow: auto;
}

body.connection-sync-settings-page .sync-wizard-steps {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.4rem;
}

body.connection-sync-settings-page .sync-wizard-step {
    border: 1px solid rgb(226 232 240);
    background: rgb(248 250 252);
    color: rgb(71 85 105);
    border-radius: 0.55rem;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0.35rem 0.4rem;
}

body.connection-sync-settings-page .sync-wizard-step.is-active {
    border-color: rgb(129 140 248);
    background: rgb(238 242 255);
    color: rgb(67 56 202);
}

body.connection-sync-settings-page .sync-columns-grid {
    border: 1px solid rgb(226 232 240);
    border-radius: 0.75rem;
    padding: 0.5rem;
    max-height: 290px;
    overflow: auto;
    display: grid;
    gap: 0.45rem;
}

body.connection-sync-settings-page .sync-columns-row,
body.connection-sync-settings-page .sync-map-row {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 0.5rem;
    align-items: center;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.6rem;
    padding: 0.4rem 0.5rem;
    background: rgb(255 255 255);
}

body.connection-sync-settings-page .sync-map-row {
    grid-template-columns: 200px 1fr 1fr;
}

body.connection-sync-settings-page .sync-sql-preview {
    border: 1px solid rgb(226 232 240);
    border-radius: 0.75rem;
    background: rgb(248 250 252);
    padding: 0.75rem;
    font-size: 12px;
    max-height: 280px;
    overflow: auto;
    white-space: pre-wrap;
}

body.connection-sync-settings-page .sync-index-grid {
    border: 1px solid rgb(226 232 240);
    border-radius: 0.75rem;
    padding: 0.5rem;
    max-height: 220px;
    overflow: auto;
    display: grid;
    gap: 0.45rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.connection-sync-settings-page .sync-index-row {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.55rem;
    padding: 0.35rem 0.5rem;
    background: rgb(255 255 255);
    font-size: 12px;
    color: rgb(51 65 85);
}

body.connection-sync-settings-page .sync-config-partition-row {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 12px;
    color: rgb(51 65 85);
}

body.connection-sync-settings-page .sync-table-update-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.56);
}

body.connection-sync-settings-page .sync-table-update-confirm-modal {
    width: min(420px, 100%);
    border-radius: 0.9rem;
    border: 1px solid rgb(226 232 240);
    background: rgb(255 255 255);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
    padding: 1rem;
}

body.connection-sync-settings-page .sync-table-update-confirm-title {
    font-size: 15px;
    font-weight: 800;
    color: rgb(15 23 42);
}

body.connection-sync-settings-page .sync-table-update-confirm-text {
    margin-top: 0.45rem;
    font-size: 13px;
    color: rgb(71 85 105);
}

body.connection-sync-settings-page .sync-table-update-confirm-actions {
    margin-top: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

body.logs-page .logs-stats-grid>div {
    min-width: 0;
}

body.logs-page .logs-stats-grid>div p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (min-width: 1280px) {
    body.logs-page .app-header-tools {
        max-width: 100%;
    }
}

@media (max-width: 860px) {
    body.connection-sync-settings-page .sync-config-card-layout {
        gap: 0.75rem;
    }

    body.connection-sync-settings-page .sync-config-head-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }

    body.connection-sync-settings-page .sync-config-metrics-grid {
        grid-template-columns: 1fr;
    }

    body.connection-sync-settings-page .sync-config-card-actions {
        grid-template-columns: 1fr;
    }

    body.connection-sync-settings-page .sync-settings-overview {
        flex-wrap: wrap;
    }

    body.connection-sync-settings-page .sync-settings-overview-divider {
        display: none;
    }

    body.connection-sync-settings-page .sync-index-grid {
        grid-template-columns: 1fr;
    }
}

body.report-builder-page .rbx-shell {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

body.report-builder-page .rbx-topbar-card,
body.report-builder-page .rbx-panel-card,
body.report-builder-page .rbx-preview-strip {
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 0.95rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

body.report-builder-page .rbx-topbar-card,
body.report-builder-page .rbx-panel-card {
    padding: 0.72rem;
}

body.report-builder-page .rbx-topbar-grid {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: minmax(180px, 1.2fr) minmax(180px, 1fr) minmax(220px, 1.4fr);
}

body.report-builder-page .rbx-workspace-grid {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(280px, 340px);
    gap: 0.75rem;
    min-height: calc(100vh - 240px);
}

body.report-builder-page .rbx-left-panel,
body.report-builder-page .rbx-right-panel,
body.report-builder-page .rbx-canvas-panel {
    min-width: 0;
}

body.report-builder-page .rbx-left-panel,
body.report-builder-page .rbx-right-panel {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

body.report-builder-page .rbx-canvas-panel {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

body.report-builder-page .rbx-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    margin-bottom: 0.48rem;
}

body.report-builder-page .rbx-panel-head h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    color: rgb(15 23 42);
}

body.report-builder-page .rbx-panel-head p {
    margin: 0.1rem 0 0;
    color: rgb(100 116 139);
    font-size: 11px;
}

body.report-builder-page .rbx-panel-head-tight {
    margin-top: 0.65rem;
}

body.report-builder-page .rbx-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 11px;
    color: rgb(71 85 105);
    font-weight: 700;
}

body.report-builder-page .rbx-input {
    width: 100%;
    border: 1px solid rgb(203 213 225);
    border-radius: 0.67rem;
    background: rgb(255 255 255);
    padding: 0.44rem 0.56rem;
    font-size: 12px;
    color: rgb(30 41 59);
}

body.report-builder-page .rbx-input:focus {
    outline: none;
    border-color: rgb(99 102 241);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.13);
}

body.report-builder-page .rbx-input-sm {
    padding-top: 0.27rem;
    padding-bottom: 0.27rem;
    font-size: 11px;
}

body.report-builder-page .rbx-select-row {
    display: grid;
    gap: 0.4rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
}

body.report-builder-page .rbx-btn-secondary,
body.report-builder-page .rbx-btn-primary,
body.report-builder-page .rbx-btn-danger,
body.report-builder-page .rbx-btn-danger-soft {
    border-radius: 0.62rem;
    font-size: 11px;
    font-weight: 700;
    padding: 0.38rem 0.6rem;
    line-height: 1;
    border: 1px solid transparent;
    transition: all 140ms ease;
}

body.report-builder-page .rbx-btn-secondary {
    border-color: rgb(203 213 225);
    background: rgb(248 250 252);
    color: rgb(51 65 85);
}

body.report-builder-page .rbx-btn-primary {
    border-color: rgb(79 70 229);
    background: rgb(79 70 229);
    color: #fff;
}

body.report-builder-page .rbx-btn-danger {
    border-color: rgb(251 191 191);
    background: rgb(255 241 242);
    color: rgb(190 18 60);
}

body.report-builder-page .rbx-btn-danger-soft {
    border-color: rgb(254 205 211);
    background: rgb(255 241 242);
    color: rgb(190 18 60);
    width: 30px;
    min-width: 30px;
    padding: 0;
}

body.report-builder-page .rbx-btn-danger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

body.report-builder-page .rbx-widget-library,
body.report-builder-page .rbx-fields-list,
body.report-builder-page .rbx-param-list {
    display: grid;
    gap: 0.4rem;
}

body.report-builder-page .rbx-widget-library,
body.report-builder-page .rbx-fields-list {
    max-height: 300px;
    overflow: auto;
}

body.report-builder-page .rbx-widget-preset {
    width: 100%;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.72rem;
    background: rgb(248 250 252);
    text-align: left;
    padding: 0.5rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
    transition: all 160ms ease;
}

body.report-builder-page .rbx-widget-preset:hover {
    border-color: rgb(129 140 248);
    background: rgb(238 242 255);
    transform: translateY(-1px);
}

body.report-builder-page .rbx-widget-preset-icon {
    font-size: 16px;
}

body.report-builder-page .rbx-widget-preset-title {
    font-size: 12px;
    font-weight: 800;
    color: rgb(15 23 42);
}

body.report-builder-page .rbx-widget-preset-desc {
    font-size: 10px;
    color: rgb(100 116 139);
}

body.report-builder-page .rbx-field-chip {
    width: 100%;
    text-align: left;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.62rem;
    background: rgb(248 250 252);
    color: rgb(51 65 85);
    font-size: 11px;
    font-weight: 700;
    padding: 0.4rem 0.52rem;
}

body.report-builder-page .rbx-field-chip:hover {
    border-color: rgb(79 70 229);
    background: rgb(238 242 255);
}

body.report-builder-page .rbx-param-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 0.35rem;
    align-items: center;
}

body.report-builder-page .rbx-muted {
    color: rgb(100 116 139);
    font-size: 11px;
    font-weight: 600;
}

body.report-builder-page .rbx-empty-state-title {
    font-size: 14px;
    font-weight: 800;
    color: rgb(30 41 59);
    margin-bottom: 0.3rem;
}

body.report-builder-page .rbx-canvas-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.62rem;
    border: 1px dashed rgb(203 213 225);
    border-radius: 0.82rem;
    padding: 0.5rem 0.62rem;
    background: rgba(248, 250, 252, 0.86);
}

body.report-builder-page .rbx-canvas-hint {
    font-size: 11px;
    color: rgb(71 85 105);
    font-weight: 700;
}

body.report-builder-page .rbx-canvas-actions {
    display: flex;
    align-items: center;
    gap: 0.42rem;
}

body.report-builder-page .rbx-inline-control {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 11px;
    color: rgb(71 85 105);
    font-weight: 700;
}

body.report-builder-page .rbx-grid-shell {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 1rem;
    background:
        radial-gradient(circle at 18% 0%, rgba(99, 102, 241, 0.1), transparent 44%),
        radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.1), transparent 48%),
        rgb(247 250 255);
    min-height: calc(100vh - 320px);
    overflow: hidden;
}

body.report-builder-page .rbx-grid {
    min-height: calc(100vh - 320px);
    padding: 0.2rem;
}

body.report-builder-page .rbx-grid-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-size: 12px;
    font-weight: 800;
    color: rgb(100 116 139);
}

body.report-builder-page .rbx-widget-card {
    height: 100%;
    border-radius: 0.78rem;
    border: 1px solid rgba(203, 213, 225, 0.95);
    background: linear-gradient(180deg, rgb(255 255 255), rgb(248 250 252));
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    padding: 0.56rem;
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    transition: transform 160ms ease, box-shadow 180ms ease, border-color 160ms ease;
}

body.report-builder-page .rbx-widget-card:hover {
    border-color: rgba(129, 140, 248, 0.9);
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.14);
    transform: translateY(-1px);
}

body.report-builder-page .rbx-widget-card.is-focused {
    border-color: rgba(79, 70, 229, 0.9);
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.45), 0 14px 30px rgba(79, 70, 229, 0.16);
}

body.report-builder-page .rbx-widget-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.35rem;
}

body.report-builder-page .rbx-widget-card-title {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    color: rgb(15 23 42);
}

body.report-builder-page .rbx-widget-card-type {
    border: 1px solid rgb(199 210 254);
    background: rgb(238 242 255);
    color: rgb(67 56 202);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    white-space: nowrap;
}

body.report-builder-page .rbx-widget-card-subtitle {
    font-size: 10px;
    color: rgb(100 116 139);
}

body.report-builder-page .rbx-widget-card-meta {
    font-size: 10px;
    color: rgb(100 116 139);
    font-weight: 700;
}

body.report-builder-page .rbx-widget-card-preview {
    margin-top: auto;
    font-size: 11px;
    color: rgb(51 65 85);
    border: 1px dashed rgb(203 213 225);
    border-radius: 0.58rem;
    background: rgba(255, 255, 255, 0.82);
    padding: 0.34rem 0.44rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.report-builder-page .rbx-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

body.report-builder-page .rbx-three-col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

body.report-builder-page .rbx-inspector-actions {
    margin-top: 0.6rem;
}

body.report-builder-page .rbx-error-box {
    border: 1px solid rgb(254 205 211);
    background: rgb(255 241 242);
    color: rgb(190 18 60);
    border-radius: 0.65rem;
    padding: 0.45rem 0.55rem;
    font-size: 11px;
    font-weight: 700;
    margin-top: 0.45rem;
}

body.report-builder-page .rbx-sql-preview {
    margin: 0.5rem 0 0;
    border: 1px solid rgb(51 65 85);
    border-radius: 0.76rem;
    background: linear-gradient(180deg, rgb(15 23 42), rgb(2 6 23));
    color: rgb(226 232 240);
    font-size: 10px;
    line-height: 1.45;
    padding: 0.46rem 0.56rem;
    max-height: 230px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

body.report-builder-page .rbx-preview-strip {
    padding: 0.7rem;
}

body.report-builder-page .rbx-preview-strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
}

body.report-builder-page .rbx-preview-strip-head h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    color: rgb(15 23 42);
}

body.report-builder-page .rbx-preview-strip-head div {
    font-size: 11px;
    color: rgb(100 116 139);
    font-weight: 700;
}

body.report-builder-page .rbx-preview-table-wrap {
    overflow: auto;
}

body.report-builder-page .rbx-preview-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 540px;
}

body.report-builder-page .rbx-preview-table th,
body.report-builder-page .rbx-preview-table td {
    border: 1px solid rgb(226 232 240);
    font-size: 11px;
    text-align: left;
    padding: 0.35rem 0.46rem;
    vertical-align: top;
}

body.report-builder-page .rbx-preview-table thead th {
    background: rgb(248 250 252);
    color: rgb(51 65 85);
    font-weight: 800;
}

body.report-builder-page .grid-stack-item-content {
    background: transparent;
    border: 0;
    overflow: hidden;
}

@keyframes rb-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

@media (max-width: 1280px) {
    body.report-builder-page .rbx-topbar-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    body.report-builder-page .rbx-workspace-grid {
        grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    }

    body.report-builder-page .rbx-right-panel {
        grid-column: 1 / span 2;
    }

    body.report-builder-page .rbx-grid,
    body.report-builder-page .rbx-grid-shell {
        min-height: 60vh;
    }
}

@media (max-width: 860px) {

    body.report-builder-page .rbx-topbar-grid,
    body.report-builder-page .rbx-workspace-grid,
    body.report-builder-page .rbx-two-col,
    body.report-builder-page .rbx-three-col,
    body.report-builder-page .rbx-param-row {
        grid-template-columns: 1fr;
    }

    body.report-builder-page .rbx-grid,
    body.report-builder-page .rbx-grid-shell {
        min-height: 58vh;
    }

    body.report-builder-page .rbx-canvas-toolbar,
    body.report-builder-page .rbx-canvas-actions,
    body.report-builder-page .rbx-select-row {
        flex-direction: column;
        align-items: flex-start;
    }

    body.report-builder-page .rbx-preview-table {
        min-width: 100%;
    }
}