/* =========================================================
   UTP Responsive Policy V1
   ---------------------------------------------------------
   Main UTP workspace:
   - Desktop + tablet: supported
   - Below 768px: workspace is intentionally unavailable
   - Purpose-built mobile surfaces are separate applications/views

   This file owns the global breakpoint policy only.
   Product/workspace CSS must not create a phone version of the
   main UTP workspace.
   ========================================================= */

/* Tablet / small laptop */
@media (min-width: 768px) and (max-width: 1180px) {
    .ids-utp {
        width: 100%;
        max-width: none;
        min-width: 0;

        display: grid;
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 18px;

        padding: 18px;
        margin: 0;

        box-sizing: border-box;
        overflow: visible;
    }

    .ids-utp > .utp-sidebar {
        position: sticky;
        top: 18px;
        min-width: 0;
    }

    .ids-utp .ids-workspace,
    .ids-utp .ids-workspace-backoffice,
    .ids-utp .ids-staff-wrap,
    .ids-utp .utp-workspace-shell {
        width: 100%;
        max-width: none;
        min-width: 0;
        overflow: visible;
    }

    .utp-sidebar {
        padding: 12px;
        border-radius: 20px;
    }

    .utp-sidebar-brand-text,
    .utp-sidebar-label,
    .utp-sidebar-section-label,
    .utp-sidebar-product {
        display: none;
    }

    .utp-sidebar-logo-img {
        width: 44px;
        max-width: 44px;
        margin: 0 auto;
    }

    .utp-sidebar-item {
        justify-content: center;
        padding: 10px;
    }
}

/*
 * Main-platform mobile gate.
 * 767px and below is intentionally NOT a responsive UTP workspace.
 */
@media (max-width: 767px) {
    body.utp-platform {
        overflow: hidden !important;
        background: #020817;
    }

    body.utp-platform .utp-platform-shell {
        visibility: hidden;
        pointer-events: none;
        user-select: none;
    }

    body.utp-platform::before {
        content: "UTP";
        position: fixed;
        left: 50%;
        top: calc(50% - 92px);
        z-index: var(--utp-z-mobile-gate);
        transform: translateX(-50%);

        color: #f5793b;
        font-family: var(--utp-font-family);
        font-size: 30px;
        line-height: 1;
        font-weight: 800;
        letter-spacing: .08em;
    }

    body.utp-platform::after {
        content: "This platform is designed for desktop and tablet.\A Open UTP on a screen 768px or wider.";
        white-space: pre-line;

        position: fixed;
        left: 50%;
        top: 50%;
        z-index: var(--utp-z-mobile-gate);
        transform: translate(-50%, -50%);

        width: min(82vw, 360px);
        padding: 26px 24px;

        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 22px;

        background:
            radial-gradient(circle at 50% -20%, rgba(245, 121, 59, .16), transparent 44%),
            rgba(7, 14, 28, .94);

        box-shadow: 0 24px 80px rgba(0, 0, 0, .34);

        color: #f8fafc;
        font-family: var(--utp-font-family);
        font-size: 14px;
        line-height: 1.65;
        font-weight: 600;
        text-align: center;
    }
}
