.na-workspace-content {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: .65rem;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: calc(100dvh - var(--na-effective-topbar-height, 0px));
    padding: 12px clamp(12px, 2vw, 28px) 18px;
    overflow: visible;
}

.na-workspace-tabs {
    position: relative;
    z-index: 12;
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    gap: .5rem;
    min-width: 0;
    min-height: 54px;
    padding: .35rem .4rem;
    border: 1px solid rgba(154, 128, 255, .2);
    border-radius: 17px;
    background:
        linear-gradient(115deg, rgba(32, 20, 58, .86), rgba(9, 16, 35, .94) 52%, rgba(50, 13, 51, .78)),
        rgba(9, 12, 22, .94);
    box-shadow: 0 12px 30px rgba(3, 5, 14, .2), inset 0 1px rgba(255, 255, 255, .05);
}

.na-workspace-tabs-scroll {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    touch-action: pan-x;
}

.na-workspace-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.na-workspace-tab {
    position: relative;
    display: flex;
    flex: 0 1 13.5rem;
    align-items: center;
    min-width: 8.75rem;
    max-width: 15rem;
    min-height: 42px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
    color: #c3c8d8;
    transition: background .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}

.na-workspace-tab:hover {
    border-color: rgba(163, 120, 255, .25);
    background: rgba(129, 88, 255, .12);
    color: #fff;
}

.na-workspace-tab.is-active {
    border-color: rgba(97, 178, 255, .42);
    background: linear-gradient(112deg, rgba(18, 111, 214, .32), rgba(122, 56, 229, .24) 60%, rgba(231, 36, 160, .24));
    box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 3px 14px rgba(66, 60, 202, .15);
    color: #fff;
    transform: translateY(-1px);
}

.na-workspace-tab.is-active::after {
    position: absolute;
    right: 15%;
    bottom: -1px;
    left: 15%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #24a9ff, #9a50ff 52%, #ff3aad);
    box-shadow: 0 0 12px rgba(190, 68, 255, .7);
    content: "";
}

.na-workspace-tab-select {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    min-height: 42px;
    padding: 0 .65rem;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.na-workspace-tab-mark {
    flex: 0 0 auto;
    color: #7ccaff;
    font-size: .9rem;
    text-shadow: 0 0 12px rgba(52, 159, 255, .65);
}

.na-workspace-tab-title {
    overflow: hidden;
    color: inherit;
    font-size: .82rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.na-workspace-tab-close {
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-right: 3px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: rgba(223, 226, 239, .65);
    cursor: pointer;
    font-size: 1.15rem;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.na-workspace-tab-close:hover:not(:disabled) {
    background: rgba(255, 71, 150, .16);
    color: #ff88bf;
    transform: scale(1.05);
}

.na-workspace-tab-close:disabled {
    opacity: .3;
    cursor: not-allowed;
}

.na-workspace-tab-select:focus-visible,
.na-workspace-tab-close:focus-visible,
.na-workspace-tab-add:focus-visible,
.na-workspace-open-option:focus-visible {
    outline: 3px solid #7ccaff;
    outline-offset: 2px;
}

.na-workspace-tabs-tools {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .45rem;
    padding-left: .2rem;
}

.na-workspace-tab-count {
    color: #aeb5cb;
    font-variant-numeric: tabular-nums;
    font-size: .68rem;
    font-weight: 900;
}

.na-workspace-tab-count span {
    color: #75819b;
}

.na-workspace-tab-add {
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    width: 38px;
    min-height: 38px;
    padding: 0;
    border: 1px solid rgba(140, 142, 255, .34);
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(21, 119, 224, .18), rgba(158, 63, 240, .24), rgba(235, 43, 155, .18));
    color: #fff;
    cursor: pointer;
    font-size: 1.35rem;
    font-weight: 500;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.na-workspace-tab-add:hover {
    border-color: rgba(255, 95, 200, .7);
    box-shadow: 0 0 20px rgba(151, 68, 248, .27);
    transform: rotate(90deg);
}

.na-workspace-open-menu {
    position: absolute;
    top: 72px;
    right: 28px;
    z-index: 40;
    width: min(25rem, calc(100% - 24px));
    max-height: min(70dvh, 36rem);
    overflow: hidden;
    border: 1px solid rgba(151, 112, 255, .35);
    border-radius: 17px;
    background: rgba(13, 15, 29, .98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .48), 0 0 28px rgba(119, 69, 255, .13);
    color: #f5f6ff;
    animation: na-workspace-menu-enter .18s ease-out both;
    backdrop-filter: blur(22px);
}

.na-workspace-open-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem .72rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.na-workspace-open-header > div {
    display: grid;
    gap: .14rem;
}

.na-workspace-open-eyebrow {
    color: #b58cff;
    font-size: .58rem;
    font-weight: 950;
    letter-spacing: .15em;
}

.na-workspace-open-header strong {
    font-size: .92rem;
}

.na-workspace-open-header-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.na-workspace-open-capacity {
    flex: 0 0 auto;
    padding: .32rem .5rem;
    border: 1px solid rgba(121, 180, 255, .2);
    border-radius: 999px;
    background: rgba(47, 118, 221, .12);
    color: #9bd3ff;
    font-size: .68rem;
    font-weight: 900;
}

.na-workspace-open-close {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #c4c8d7;
    cursor: pointer;
    font-size: 1.25rem;
}

.na-workspace-open-close:hover {
    background: rgba(255, 255, 255, .08);
}

.na-workspace-open-close:focus-visible {
    outline: 3px solid #7ccaff;
    outline-offset: 2px;
}

.na-workspace-open-options {
    display: grid;
    gap: .25rem;
    max-height: min(56dvh, 28rem);
    padding: .45rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.na-workspace-open-option {
    display: flex;
    align-items: center;
    gap: .7rem;
    width: 100%;
    min-height: 54px;
    padding: .6rem .7rem;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #e7e9f3;
    cursor: pointer;
    text-align: left;
    transition: background .15s ease, border-color .15s ease;
}

.na-workspace-open-option:hover:not(:disabled) {
    border-color: rgba(141, 105, 255, .3);
    background: linear-gradient(100deg, rgba(46, 131, 239, .13), rgba(174, 71, 231, .15), rgba(239, 60, 165, .1));
}

.na-workspace-open-option:disabled {
    opacity: .42;
    cursor: not-allowed;
}

.na-workspace-open-icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(122, 173, 255, .19);
    border-radius: 10px;
    background: rgba(99, 92, 250, .11);
    color: #b8a4ff;
    font-weight: 900;
}

.na-workspace-open-copy {
    display: grid;
    flex: 1 1 auto;
    gap: .1rem;
    min-width: 0;
}

.na-workspace-open-copy strong {
    overflow: hidden;
    font-size: .79rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.na-workspace-open-copy small {
    overflow: hidden;
    color: #a9b1c6;
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.na-workspace-open-state {
    flex: 0 0 auto;
    color: #69ceff;
    font-size: .58rem;
    font-weight: 950;
    letter-spacing: .08em;
}

.na-workspace-open-arrow {
    color: #f17acd;
    font-size: 1rem;
}

.na-workspace-open-empty,
.na-workspace-open-status {
    margin: 0;
    padding: .75rem .85rem;
    color: #d1d5e3;
    font-size: .75rem;
    line-height: 1.5;
}

.na-workspace-open-status {
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #ffd18b;
}

.na-workspace-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.na-workspace-panels {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: min(68dvh, 40rem);
    overflow: hidden;
    border: 1px solid rgba(118, 136, 170, .2);
    border-radius: 19px;
    background: rgba(9, 11, 20, .76);
    box-shadow: 0 16px 46px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .035);
    isolation: isolate;
}

.na-workspace-panel {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #090c16;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
    transition: opacity .19s ease, transform .19s ease, visibility 0s linear .19s;
    visibility: hidden;
}

.na-workspace-panel.is-active {
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
    visibility: visible;
}

.na-workspace-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 20rem;
    border: 0;
    background: #0b0e17;
}

.na-workspace-frame-main {
    width: 100%;
    min-height: 100vh;
    padding-top: 0 !important;
}

.na-workspace-frame-content {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: clamp(12px, 2vw, 26px);
}

.na-workspace-frame-content > * {
    min-width: 0;
    max-width: 100%;
}

.na-workspace-open-option:focus-visible,
.na-workspace-tabs button:focus-visible {
    outline-offset: 2px;
}

@keyframes na-workspace-menu-enter {
    from { opacity: 0; transform: translateY(-5px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
    .na-workspace-content {
        position: relative;
        min-height: 0;
        padding: 8px 10px max(12px, env(safe-area-inset-bottom));
        gap: .5rem;
    }

    .na-workspace-tabs {
        min-height: 52px;
        padding: .25rem;
        gap: .25rem;
        border-radius: 14px;
    }

    .na-workspace-tabs-scroll {
        gap: .25rem;
    }

    .na-workspace-tab {
        flex: 0 0 min(52vw, 12rem);
        min-width: 8.25rem;
        max-width: 12rem;
        min-height: 44px;
    }

    .na-workspace-tab-select {
        gap: .4rem;
        min-height: 44px;
        padding: 0 .5rem;
    }

    .na-workspace-tab-title {
        font-size: .76rem;
    }

    .na-workspace-tab-close {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        margin-right: 2px;
    }

    .na-workspace-tab-count {
        display: none;
    }

    .na-workspace-tab-add {
        flex-basis: 44px;
        width: 44px;
        min-height: 44px;
        border-radius: 11px;
    }

    .na-workspace-open-menu {
        position: fixed;
        top: auto;
        right: 8px;
        bottom: max(8px, env(safe-area-inset-bottom));
        left: 8px;
        width: auto;
        max-height: min(78dvh, 38rem);
        border-radius: 18px;
    }

    .na-workspace-open-close {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

.na-workspace-open-options {
        max-height: min(64dvh, 30rem);
    }

    .na-workspace-panels {
        min-height: min(65dvh, 36rem);
        border-radius: 15px;
    }

    .na-workspace-frame {
        min-height: 18rem;
    }

    .na-workspace-frame-content {
        padding: 12px;
    }
}

@media (max-width: 359px) {
    .na-workspace-tab {
        flex-basis: 50vw;
        min-width: 7.5rem;
    }

    .na-workspace-tabs {
        gap: .15rem;
    }

    .na-workspace-tab-add {
        flex-basis: 44px;
        width: 44px;
    }
}

:root[data-theme="light"] .na-workspace-tabs {
    border-color: rgba(104, 82, 202, .19);
    background: linear-gradient(110deg, rgba(244, 241, 255, .98), rgba(241, 247, 255, .97) 56%, rgba(255, 239, 249, .96));
    box-shadow: 0 12px 28px rgba(62, 52, 112, .08), inset 0 1px #fff;
}

:root[data-theme="light"] .na-workspace-tab {
    background: rgba(29, 38, 67, .035);
    color: #3d4560;
}

:root[data-theme="light"] .na-workspace-tab:hover,
:root[data-theme="light"] .na-workspace-tab.is-active {
    color: #1c2440;
}

:root[data-theme="light"] .na-workspace-tab-close {
    color: #68718b;
}

:root[data-theme="light"] .na-workspace-open-menu {
    border-color: rgba(114, 91, 203, .24);
    background: rgba(250, 249, 255, .99);
    color: #252943;
}

:root[data-theme="light"] .na-workspace-open-option {
    color: #2f3551;
}

:root[data-theme="light"] .na-workspace-open-option:hover:not(:disabled) {
    background: linear-gradient(100deg, rgba(44, 132, 231, .1), rgba(150, 83, 220, .11), rgba(231, 61, 153, .07));
}

:root[data-theme="light"] .na-workspace-open-copy small,
:root[data-theme="light"] .na-workspace-open-empty,
:root[data-theme="light"] .na-workspace-sr-only {
    color: #626a80;
}

:root[data-theme="light"] .na-workspace-panels {
    border-color: rgba(58, 73, 107, .16);
    background: #f2f5fb;
    box-shadow: 0 12px 36px rgba(41, 53, 81, .08);
}

@media (prefers-reduced-motion: reduce) {
    .na-workspace-tab,
    .na-workspace-tab-close,
    .na-workspace-tab-add,
    .na-workspace-panel,
    .na-workspace-open-menu {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
.na-workspace-preview {
    width: min(100%, 1260px);
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(16px, 3vw, 42px);
    color: #f7f8ff;
}

.na-workspace-preview-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 auto 1.1rem;
}

.na-workspace-preview-heading > div {
    min-width: 0;
}

.na-workspace-preview-kicker,
.na-workspace-demo-kicker {
    color: #b985ff;
    font-size: .62rem;
    font-weight: 950;
    letter-spacing: .17em;
}

.na-workspace-preview-heading h1 {
    margin: .3rem 0;
    color: #fff;
    font-size: clamp(1.65rem, 4vw, 2.7rem);
    letter-spacing: -.04em;
}

.na-workspace-preview-heading p {
    max-width: 48rem;
    margin: 0;
    color: #aeb7cb;
    font-size: .88rem;
    line-height: 1.6;
}

.na-workspace-preview-cap {
    flex: 0 0 auto;
    padding: .55rem .7rem;
    border: 1px solid rgba(232, 72, 186, .35);
    border-radius: 999px;
    background: linear-gradient(110deg, rgba(30, 136, 240, .15), rgba(158, 69, 241, .18), rgba(239, 56, 163, .15));
    color: #f2c5ff;
    font-size: .64rem;
    font-weight: 950;
    letter-spacing: .08em;
}

.na-workspace-preview-dock {
    position: relative;
}

.na-workspace-demo-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 22rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 82% 22%, rgba(201, 35, 170, .22), transparent 35%),
        radial-gradient(ellipse at 18% 88%, rgba(32, 128, 239, .19), transparent 42%),
        linear-gradient(145deg, #11172a, #0a0d17 64%, #151023);
}

.na-workspace-demo-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-width: 0;
    padding: .85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    color: #8c98b1;
    font-size: .63rem;
    font-weight: 850;
    letter-spacing: .08em;
}

.na-workspace-demo-topline span:last-child {
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.na-workspace-demo-body {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: clamp(1rem, 4vw, 3.5rem);
    min-height: 0;
    padding: clamp(1.25rem, 5vw, 4.25rem);
    overflow: hidden;
}

.na-workspace-demo-body > div:last-child {
    position: relative;
    z-index: 1;
    max-width: 38rem;
}

.na-workspace-demo-body h2 {
    margin: .2rem 0 .5rem;
    color: #fff;
    font-size: clamp(2rem, 7vw, 4.8rem);
    letter-spacing: -.055em;
}

.na-workspace-demo-body p {
    max-width: 34rem;
    margin: 0;
    color: #bec6d8;
    font-size: clamp(.9rem, 2vw, 1.1rem);
    line-height: 1.6;
}

.na-workspace-demo-orbit {
    display: grid;
    flex: 0 0 clamp(4rem, 12vw, 9rem);
    width: clamp(4rem, 12vw, 9rem);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(142, 124, 255, .45);
    border-radius: 35% 65% 62% 38% / 44% 38% 62% 56%;
    background: linear-gradient(145deg, rgba(32, 155, 255, .2), rgba(144, 74, 244, .2), rgba(247, 56, 167, .2));
    box-shadow: 0 0 55px rgba(115, 80, 255, .22), inset 0 1px rgba(255, 255, 255, .1);
    color: white;
    font-size: clamp(2rem, 7vw, 4.5rem);
    font-weight: 950;
    animation: na-workspace-orbit 8s ease-in-out infinite alternate;
}

.na-workspace-demo-status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 1.4rem;
    padding: .52rem .7rem;
    border: 1px solid rgba(83, 171, 255, .24);
    border-radius: 999px;
    background: rgba(46, 124, 239, .1);
    color: #bddbff;
    font-size: .72rem;
    font-weight: 800;
}

.na-workspace-demo-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #56b7ff;
    box-shadow: 0 0 10px rgba(64, 164, 255, .8);
}

.na-workspace-preview-note {
    margin: .7rem .2rem 0;
    color: #8792a9;
    font-size: .68rem;
    line-height: 1.5;
}

:root[data-theme="light"] .na-workspace-preview {
    color: #252943;
}

:root[data-theme="light"] .na-workspace-preview-heading h1,
:root[data-theme="light"] .na-workspace-demo-body h2 {
    color: #20263d;
}

:root[data-theme="light"] .na-workspace-preview-heading p,
:root[data-theme="light"] .na-workspace-demo-body p {
    color: #59637b;
}

:root[data-theme="light"] .na-workspace-demo-page {
    background:
        radial-gradient(ellipse at 82% 22%, rgba(220, 67, 183, .13), transparent 35%),
        radial-gradient(ellipse at 18% 88%, rgba(32, 128, 239, .12), transparent 42%),
        linear-gradient(145deg, #fff, #f6f7ff 64%, #fff4fb);
}

@keyframes na-workspace-orbit {
    from { transform: rotate(-5deg) translateY(0); }
    to { transform: rotate(5deg) translateY(-5px); }
}

@media (max-width: 520px) {
    .na-workspace-preview {
        padding: 14px 10px max(18px, env(safe-area-inset-bottom));
    }

    .na-workspace-preview-heading {
        align-items: start;
        flex-direction: column;
        gap: .55rem;
    }

    .na-workspace-demo-topline {
        align-items: start;
        flex-direction: column;
        gap: .25rem;
        padding: .65rem .75rem;
    }

    .na-workspace-demo-body {
        flex-direction: column;
        align-items: start;
        justify-content: center;
        gap: 1rem;
        padding: 1.25rem;
    }

    .na-workspace-demo-orbit {
        flex-basis: 3.6rem;
        width: 3.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .na-workspace-demo-orbit {
        animation: none !important;
    }
}
.na-workspace-frame-loading {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: .8rem;
    padding: 1.5rem;
    background:
        radial-gradient(ellipse at 50% 44%, rgba(56, 72, 132, .2), transparent 45%),
        linear-gradient(145deg, #0b0e18, #101327 58%, #160f25);
    color: #f5f7ff;
    text-align: center;
    opacity: 1;
    visibility: visible;
    transition: opacity .22s ease, visibility 0s linear .22s;
}

.na-workspace-frame-loading.is-ready {
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.na-workspace-frame-loading strong {
    font-size: clamp(.95rem, 2vw, 1.15rem);
    font-weight: 850;
}

.na-workspace-frame-loading small {
    max-width: 26rem;
    color: #adb6d0;
    font-size: .8rem;
}

.na-workspace-frame-loading__spinner {
    width: 2.25rem;
    height: 2.25rem;
    border: 2px solid rgba(255, 255, 255, .14);
    border-top-color: #64c7ff;
    border-right-color: #c379ff;
    border-radius: 50%;
    animation: na-workspace-frame-spin .85s linear infinite;
    box-shadow: 0 0 22px rgba(130, 106, 255, .18);
}

@keyframes na-workspace-frame-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .na-workspace-frame-loading,
    .na-workspace-frame-loading__spinner {
        animation: none !important;
        transition: none !important;
    }
}
/* A stalled circuit must still offer a native navigation escape, without JS. */
.na-workspace-frame-recovery {
    visibility: hidden;
    display: grid;
    justify-items: center;
    gap: .8rem;
    animation: na-workspace-recovery-show 0s linear 15s forwards;
}
.na-workspace-frame-recovery a {
    color: #b6e7ff;
    border: 1px solid currentColor;
    border-radius: .75rem;
    padding: .75rem 1rem;
}
@keyframes na-workspace-recovery-show { to { visibility: visible; } }
