:root {
    --p: #7c5cff;
    --s: #00d9a3;
    --ink: #f5f5f7;
    --bg: #0a0a0f;
    --surface: #14141c;
    --elevated: #1d1d28;
    --line: #30303d;
    --dim: #a0a0b3;
    --bs-body-color: #f5f5f7;
    --bs-body-bg: #0a0a0f
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Plus Jakarta Sans', 'Manrope', system-ui, sans-serif;
    background: radial-gradient(ellipse 60% 28% at 85% -10%, color-mix(in srgb, var(--p) 20%, transparent), transparent), var(--bg);
    color: var(--ink);
    min-height: 100vh
}

body:before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(#0008, transparent 55%);
    pointer-events: none;
    z-index: -1
}

.shell-width {
    max-width: 1520px;
    padding-left: clamp(16px, 3vw, 48px);
    padding-right: clamp(16px, 3vw, 48px)
}

.top {
    background: #0d0d15e8;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px);
    padding: 17px 0;
    position: sticky;
    top: 0;
    z-index: 20
}

.brand {
    font-weight: 800;
    letter-spacing: -.04em;
    font-size: 1.17rem;
    min-width: 0
}

.brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.brand-icon {
    display: grid;
    place-items: center;
    /* background: var(--p); */
    width: 34px;
    height: 34px;
    border-radius: 11px;
    flex: none
}

.brand img {
    height: 34px;
    width: 34px;
    border-radius: 10px;
    object-fit: cover;
    /* background: #fff */
}

.top select {
    max-width: 260px;
    min-width: 155px
}

.workspace-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin: 30px 0 28px
}

.workspace-heading h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 800;
    letter-spacing: -.065em;
    margin: 5px 0
}

.workspace-heading p {
    color: var(--dim);
    margin: 0
}

.eyebrow {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .19em;
    color: var(--s)
}

.workspace-date {
    color: var(--dim);
    font-size: .8rem;
    padding-bottom: 8px
}

.nav-pills {
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
    overflow-x: auto;
    flex-wrap: nowrap
}

.nav-pills .nav-link {
    white-space: nowrap;
    color: var(--dim);
    border-radius: 10px;
    padding: .65rem 1rem;
    font-size: .85rem;
    font-weight: 700
}

.nav-pills .nav-link:hover {
    color: var(--ink);
    background: #ffffff0b
}

.nav-pills .nav-link.active {
    background: var(--p);
    color: #fff
}

.card,
.modal-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 14px 42px #0002;
    color: var(--ink)
}

.modal-header {
    border-color: var(--line)
}

.btn-close {
    filter: invert(1)
}

.stat {
    padding: 22px;
    min-height: 154px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden
}

.stat:before {
    content: '';
    position: absolute;
    width: 115px;
    height: 115px;
    border-radius: 50%;
    top: -65px;
    right: -45px;
    background: var(--p);
    opacity: .1;
    filter: blur(14px)
}

.stat small {
    color: var(--dim);
    font-weight: 650;
    font-size: .74rem
}

.stat b {
    font-size: clamp(1.12rem, 2vw, 1.65rem);
    letter-spacing: -.04em;
    overflow-wrap: anywhere
}

.stat.hero {
    background: linear-gradient(135deg, var(--p), color-mix(in srgb, var(--p) 64%, #0a0a0f));
    border-color: var(--p)
}

.stat.hero small {
    color: #fffC
}

.stat.alt:before {
    background: var(--s)
}

.card h6,
.card h5 {
    font-weight: 800;
    letter-spacing: -.02em
}

.table-responsive {
    border-radius: 12px
}

.table {
    --bs-table-color: var(--ink);
    --bs-table-bg: transparent;
    --bs-table-hover-color: var(--ink);
    --bs-table-hover-bg: #ffffff0b;
    --bs-table-border-color: var(--line);
    font-size: .83rem
}

.table thead {
    background: #ffffff08
}

.table th {
    font-size: .69rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--dim);
    white-space: nowrap;
    font-weight: 800;
    padding: 14px
}

.table td {
    padding: 14px;
    vertical-align: middle;
    min-width: 70px
}

.table td:first-child {
    white-space: nowrap
}

.ch {
    position: relative;
    height: 290px
}

.form-control,
.form-select,
.input-group-text {
    background: var(--elevated);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px
}

.form-control:focus,
.form-select:focus {
    background: var(--elevated);
    color: var(--ink);
    border-color: var(--p);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--p) 20%, transparent)
}

.form-control::placeholder {
    color: #77778a
}

.form-select {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23a0a0b3' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E")
}

.form-label {
    font-size: .8rem;
    font-weight: 700;
    color: #c9c9d7
}

.form-check-input {
    background-color: var(--elevated);
    border-color: var(--line)
}

.form-check-input:checked {
    background-color: var(--p);
    border-color: var(--p)
}

.btn {
    border-radius: 10px;
    font-weight: 700
}

.btn-primary {
    --bs-btn-bg: var(--p);
    --bs-btn-border-color: var(--p);
    --bs-btn-hover-bg: var(--p);
    --bs-btn-hover-border-color: var(--p);
    --bs-btn-active-bg: var(--p);
    --bs-btn-active-border-color: var(--p);
    --bs-btn-disabled-bg: var(--p);
    --bs-btn-disabled-border-color: var(--p)
}

.btn-light {
    --bs-btn-bg: var(--elevated);
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: var(--line);
    --bs-btn-hover-bg: #30303d;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-border-color: var(--line)
}

.btn-outline-secondary {
    --bs-btn-color: var(--dim);
    --bs-btn-border-color: var(--line);
    --bs-btn-hover-bg: var(--elevated);
    --bs-btn-hover-border-color: var(--p);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-active-bg: var(--p);
    --bs-btn-active-border-color: var(--p)
}

.btn-group>.btn {
    border-radius: 0
}

.btn-group>.btn:first-child {
    border-radius: 10px 0 0 10px
}

.btn-group>.btn:last-child {
    border-radius: 0 10px 10px 0
}

.text-muted {
    color: var(--dim) !important
}

.input-group-text {
    color: var(--dim);
    font-size: .76rem
}

.sw {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #fff5;
    flex: none
}

.badge {
    font-size: .68rem;
    padding: .5em .7em;
    text-transform: capitalize
}

.skel {
    height: 22px;
    border-radius: 8px;
    margin: .6rem 0;
    background: linear-gradient(90deg, #252531 25%, #393948 50%, #252531 75%);
    background-size: 200% 100%;
    animation: sh 1.2s infinite
}

.skel.big {
    height: 90px;
    margin: 0
}

@keyframes sh {
    to {
        background-position: -200% 0
    }
}

.toast {
    box-shadow: 0 8px 24px #0008;
    border-radius: 12px
}

.login {
    display: grid;
    place-items: center;
    padding: 24px
}

.login-shell {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: clamp(32px, 7vw, 100px)
}

.login-intro h1 {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -.075em;
    line-height: 1.07;
    margin: 18px 0
}

.login-intro h1 em {
    color: var(--p);
    font-style: normal
}

.login-intro p {
    max-width: 470px;
    color: var(--dim);
    line-height: 1.8
}

.login-line {
    border-top: 1px solid var(--line);
    padding-top: 26px;
    margin-top: 44px;
    color: var(--dim);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .75rem
}

.login-line span {
    color: var(--s);
    font-weight: 800
}

.login-card {
    padding: 32px !important
}

.login-card .btn {
    padding: 12px
}

.login-card .form-control {
    padding: 11px
}

.public-page .workspace-heading {
    padding: 20px 0
}

.public-page .brand-icon {
    background: var(--p)
}

a {
    color: var(--s)
}

a:hover {
    color: var(--p)
}

@media(max-width:900px) {
    .row>.col-lg {
        flex: 0 0 33.333%;
        max-width: 33.333%
    }

    .login-shell {
        grid-template-columns: 1fr
    }

    .login-intro {
        display: none
    }
}

@media(max-width:600px) {
    .workspace-heading {
        margin: 24px 0;
        align-items: start
    }

    .workspace-date {
        display: none
    }

    .top .brand {
        font-size: 1rem
    }

    .top select {
        min-width: 115px;
        max-width: 145px
    }

    .logout-label {
        display: none
    }

    .row>.col-lg {
        flex: 0 0 50%;
        max-width: 50%
    }

    .stat {
        min-height: 130px;
        padding: 15px
    }

    .stat b {
        font-size: 1.13rem
    }

    .card {
        border-radius: 16px
    }

    .ch {
        height: 240px
    }

    .login-card {
        padding: 22px !important
    }

    .nav-pills .nav-link {
        padding: .55rem .7rem;
        font-size: .75rem
    }

    .table td,
    .table th {
        padding: 11px
    }

    .workspace-heading h1 {
        font-size: 2.2rem
    }
}

@media(prefers-reduced-motion:reduce) {
    .skel {
        animation: none
    }
}