body.fabrication-3d-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: hidden;
    background:
        radial-gradient(circle at top left, rgba(74, 152, 255, 0.12), transparent 36%),
        radial-gradient(circle at bottom right, rgba(210, 143, 76, 0.12), transparent 28%),
        linear-gradient(180deg, #0d1218 0%, #101820 100%);
    color: #e7f0f8;
}

body.fabrication-3d-page.fabrication-3d-page--public {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background-image:
        linear-gradient(rgba(20, 20, 20, 0.60), rgba(20, 20, 20, 0.60)),
        url('/images/background-brushed-metal.jpg');
    background-position: center top;
    background-repeat: repeat-y;
    background-size: 1700px 1200px;
}

body.fabrication-3d-page > .wrapper-header {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.fabrication-3d-site-header,
.fabrication-3d-site-footer {
    position: relative;
    z-index: 220;
    flex: 0 0 auto;
    border-color: rgba(126, 154, 184, 0.18);
    background: rgba(9, 14, 20, 0.84);
    backdrop-filter: blur(14px);
}

.fabrication-3d-site-header {
    border-bottom: 1px solid rgba(126, 154, 184, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.fabrication-3d-site-footer {
    border-top: 1px solid rgba(126, 154, 184, 0.14);
}

.fabrication-3d-site-header__inner,
.fabrication-3d-site-footer__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 12px 20px;
}

.fabrication-3d-site-header__inner {
    min-height: 72px;
}

.fabrication-3d-site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.fabrication-3d-site-header__logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.24));
}

.fabrication-3d-site-header__brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fabrication-3d-site-header__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9eb2c5;
}

.fabrication-3d-site-header__title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #f2f7fc;
}

.fabrication-3d-site-header__summary {
    flex: 1 1 auto;
    min-width: 220px;
    margin: 0;
    color: #aabccc;
    font-size: 14px;
    line-height: 1.45;
}

.fabrication-3d-site-nav,
.fabrication-3d-site-footer__links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fabrication-3d-site-nav {
    justify-content: flex-end;
}

.fabrication-3d-site-nav a,
.fabrication-3d-site-footer__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(121, 183, 255, 0.16);
    border-radius: 999px;
    background: rgba(26, 39, 53, 0.66);
    color: #d9e7f4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.fabrication-3d-site-nav__sale-items {
    gap: 10px;
    padding-right: 10px;
    background: linear-gradient(180deg, rgba(210, 143, 76, 0.22), rgba(210, 143, 76, 0.08));
    border-color: rgba(210, 143, 76, 0.28);
    color: #ffe0bb;
}

.fabrication-3d-site-nav__sale-items.is-active {
    border-color: rgba(255, 214, 168, 0.48);
    background: linear-gradient(180deg, rgba(214, 159, 84, 0.36), rgba(150, 92, 29, 0.18));
    color: #fff3e1;
}

.fabrication-3d-site-nav__dashboard.is-active {
    border-color: rgba(151, 200, 255, 0.44);
    background: linear-gradient(180deg, rgba(94, 145, 208, 0.34), rgba(49, 85, 133, 0.18));
    color: #eef7ff;
}

.fabrication-3d-site-nav__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f5c98e, #d78635);
    color: #1b140d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.fabrication-3d-site-nav__employee-status {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(144, 160, 176, 0.22);
    border-radius: 999px;
    background: rgba(21, 30, 40, 0.78);
    color: #aebfd0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fabrication-3d-site-nav__employee-menu {
    position: relative;
    padding: 0;
    overflow: visible;
}

.fabrication-3d-site-nav__employee-summary {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.fabrication-3d-site-nav__employee-summary::-webkit-details-marker {
    display: none;
}

.fabrication-3d-site-nav__employee-summary::after {
    content: '';
    width: 8px;
    height: 8px;
    margin-left: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.8;
}

.fabrication-3d-site-nav__employee-menu[open] .fabrication-3d-site-nav__employee-summary::after {
    transform: rotate(-135deg) translate(-1px, -1px);
}

.fabrication-3d-site-nav__employee-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    gap: 10px;
    min-width: 220px;
    padding: 14px;
    border: 1px solid rgba(121, 196, 154, 0.24);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(18, 30, 38, 0.98), rgba(14, 24, 33, 0.98));
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    z-index: 30;
}

.fabrication-3d-site-nav__employee-name {
    color: #dff7e8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.fabrication-3d-site-nav__logout-btn {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(210, 143, 76, 0.28);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(210, 143, 76, 0.22), rgba(210, 143, 76, 0.08));
    color: #ffe0bb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
}

.fabrication-3d-site-nav__logout-btn:hover,
.fabrication-3d-site-nav__logout-btn:focus-visible {
    color: #0f141b;
    background: linear-gradient(180deg, #97c8ff, #6aa9ee);
    border-color: transparent;
    outline: none;
}

.fabrication-3d-site-nav__logout-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.fabrication-3d-site-nav__employee-status.is-authenticated {
    border-color: rgba(121, 196, 154, 0.26);
    background: linear-gradient(180deg, rgba(63, 130, 101, 0.24), rgba(30, 69, 57, 0.2));
    color: #dff7e8;
}

.fabrication-3d-site-nav a:hover,
.fabrication-3d-site-footer__links a:hover,
.fabrication-3d-site-nav a:focus-visible,
.fabrication-3d-site-footer__links a:focus-visible {
    color: #0f141b;
    background: linear-gradient(180deg, #97c8ff, #6aa9ee);
    border-color: transparent;
    transform: translateY(-1px);
    outline: none;
}

.fabrication-3d-site-nav__phone {
    background: linear-gradient(180deg, rgba(210, 143, 76, 0.22), rgba(210, 143, 76, 0.1));
    border-color: rgba(210, 143, 76, 0.28);
    color: #ffd9b2;
}

.fabrication-3d-main {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    display: flex;
    overflow: hidden;
    width: 100%;
    max-width: none;
}

body.fabrication-3d-page.fabrication-3d-page--public .web-fabrication-3d-shell {
    min-width: 0;
}

body.fabrication-3d-page.fabrication-3d-page--public .web-page-shell--fabrication-3d-full {
    grid-template-columns: minmax(0, 1fr);
}

body.fabrication-3d-page.fabrication-3d-page--public .fabrication-3d-main {
    min-width: 0;
    min-height: clamp(720px, calc(100vh - 210px), 980px);
    border-radius: 24px;
    border: 1px solid rgba(121, 183, 255, 0.16);
    background: rgba(10, 16, 23, 0.92);
    box-shadow: 0 24px 48px rgba(4, 10, 16, 0.28);
}

body.fabrication-3d-page .fabrication-3d-main #container {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-height: 0;
    height: auto;
}

body.fabrication-3d-page.fabrication-3d-page--public .fabrication-3d-main #container {
    min-height: clamp(720px, calc(100vh - 210px), 980px);
    height: clamp(720px, calc(100vh - 210px), 980px);
    border-radius: 24px;
}

body.fabrication-3d-page #controls {
    min-height: 0;
}

body.fabrication-3d-page .sidebar-body-3d {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 900px) {
    body.fabrication-3d-page .fabrication-3d-main {
        position: relative;
    }

    body.fabrication-3d-page .fabrication-3d-main #container {
        position: relative;
    }

    body.fabrication-3d-page #controls {
        max-height: 100%;
    }

    body.fabrication-3d-page.fabrication-3d-page--public .fabrication-3d-main {
        min-height: calc(100vh - 160px);
        border-radius: 20px;
    }

    body.fabrication-3d-page.fabrication-3d-page--public .fabrication-3d-main #container {
        min-height: calc(100vh - 160px);
        height: calc(100vh - 160px);
        border-radius: 20px;
    }
}

.fabrication-3d-site-footer__inner {
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
}

.fabrication-3d-site-footer__copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.fabrication-3d-site-footer__copy strong {
    font-size: 13px;
    font-weight: 700;
    color: #eef5fb;
}

.fabrication-3d-site-footer__copy span {
    color: #93a9bc;
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 980px) {
    .fabrication-3d-site-header__inner,
    .fabrication-3d-site-footer__inner {
        flex-wrap: wrap;
    }

    .fabrication-3d-site-header__summary {
        order: 3;
        flex-basis: 100%;
        min-width: 0;
    }

    .fabrication-3d-site-nav {
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    .fabrication-3d-site-header__inner,
    .fabrication-3d-site-footer__inner {
        padding: 12px 14px;
        gap: 12px;
    }

    .fabrication-3d-site-header__logo {
        width: 38px;
        height: 38px;
    }

    .fabrication-3d-site-header__title {
        font-size: 20px;
    }

    .fabrication-3d-site-header__summary {
        font-size: 13px;
    }

    .fabrication-3d-site-nav,
    .fabrication-3d-site-footer__links {
        width: 100%;
    }

    .fabrication-3d-site-nav a,
    .fabrication-3d-site-footer__links a {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
        padding: 0 10px;
        font-size: 11px;
        letter-spacing: 0.05em;
    }

    .fabrication-3d-site-nav__sale-items {
        justify-content: space-between;
    }

    .fabrication-3d-site-footer__copy,
    .fabrication-3d-site-footer__links {
        width: 100%;
    }
}