:root {
    --app-header-height: 56px;
    --app-sidebar-width: 260px;
    --app-sidebar-width-icon: 68px;
    --portal-content-max-width: 1440px;
    --shell-sidebar-current: var(--app-sidebar-width);
    --shell-bg: oklch(0.974 0.008 84);
    --shell-card: #ffffff;
    --shell-ink: oklch(0.205 0.012 62);
    --shell-muted: oklch(0.505 0.016 64);
    --shell-border: oklch(0.888 0.008 78);
    --shell-sidebar: oklch(21.78% 0 0);
    --shell-sidebar-accent: oklch(0.269 0 0);
    --shell-sidebar-border: oklch(0.3 0 0);
    --shell-sidebar-foreground: oklch(0.985 0 0);
    --shell-success: #168d3a;
}

body.genesis-shell-active {
    min-width: 320px;
    padding-top: var(--app-header-height) !important;
    background: var(--shell-bg);
}

body.genesis-shell-collapsed {
    --shell-sidebar-current: var(--app-sidebar-width-icon);
}

.genesis-header,
.genesis-sidebar,
.genesis-command {
    font-family: Inter, Rubik, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.genesis-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--app-header-height);
    padding: 0 16px;
    color: var(--shell-sidebar-foreground);
    background: var(--shell-sidebar);
    border-bottom: 1px solid var(--shell-sidebar-border);
}

.genesis-home {
    display: flex;
    align-items: center;
    width: 232px;
    flex: 0 0 232px;
}

.genesis-home img {
    display: block;
    width: 149px;
    height: 32px;
}

.genesis-search {
    display: flex;
    align-items: center;
    gap: 9px;
    width: min(384px, 34vw);
    height: 36px;
    padding: 0 11px;
    color: rgb(250 250 250 / 60%);
    background: var(--shell-sidebar-accent);
    border: 1px solid var(--shell-sidebar-border);
    border-radius: 10px;
    font-size: 13px;
    text-align: left;
}

.genesis-search:hover {
    color: var(--shell-sidebar-foreground);
    background: #303030;
}

.genesis-search svg,
.genesis-header-action svg,
.genesis-menu-icon svg {
    width: 17px;
    height: 17px;
    stroke-width: 1.9;
}

.genesis-search span {
    overflow: hidden;
    flex: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.genesis-search kbd {
    padding: 2px 6px;
    color: rgb(250 250 250 / 55%);
    background: var(--shell-sidebar);
    border: 1px solid var(--shell-sidebar-border);
    border-radius: 5px;
    font: 600 10px/16px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.genesis-header-spacer {
    flex: 1;
}

.genesis-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.genesis-header-action,
.genesis-user {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    color: rgb(250 250 250 / 74%);
    background: var(--shell-sidebar-accent);
    border: 1px solid transparent;
    border-radius: 9px;
}

.genesis-header-action {
    width: 34px;
}

.genesis-header-action:hover,
.genesis-user:hover {
    color: #fff;
    border-color: var(--shell-sidebar-border);
}

.genesis-product {
    width: auto;
    gap: 6px;
    padding: 0 9px;
    font-size: 11px;
    font-weight: 700;
}

.genesis-product b {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: #fff;
    background: #34768a;
    border-radius: 50%;
    font-size: 9px;
}

.genesis-user {
    gap: 8px;
    padding: 0 6px 0 10px;
    font-size: 11px;
    font-weight: 700;
}

.genesis-user b,
.genesis-avatar {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: #fff;
    background: var(--shell-success);
    border-radius: 50%;
    font-size: 10px;
}

.genesis-sidebar {
    position: fixed;
    top: var(--app-header-height);
    bottom: 0;
    left: 0;
    z-index: 900;
    display: flex;
    width: var(--shell-sidebar-current);
    flex-direction: column;
    overflow: hidden;
    color: var(--shell-sidebar-foreground);
    background: var(--shell-sidebar);
    border-right: 1px solid var(--shell-sidebar-border);
    transition: width 180ms ease;
}

.genesis-sidebar-scroll {
    flex: 1;
    overflow: hidden auto;
    padding: 12px;
}

.genesis-sidebar-label {
    padding: 8px 10px 7px;
    color: rgb(250 250 250 / 38%);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.genesis-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.genesis-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    height: 40px;
    gap: 16px;
    padding: 0 12px;
    color: rgb(250 250 250 / 70%);
    background: transparent;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
}

.genesis-menu-item:hover {
    color: #fff;
    background: var(--shell-sidebar-accent);
}

.genesis-menu-item.is-active {
    color: var(--shell-ink);
    background: var(--shell-card);
    box-shadow: 0 1px 2px rgb(0 0 0 / 10%);
    font-weight: 650;
}

.genesis-menu-icon {
    display: grid;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    place-items: center;
    font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.genesis-menu-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.genesis-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 0 12px 12px;
}

.genesis-sidebar-separator {
    height: 1px;
    margin-bottom: 2px;
    background: var(--shell-sidebar-border);
}

.genesis-profile {
    display: flex;
    align-items: center;
    min-height: 36px;
    gap: 9px;
    padding: 4px 8px;
    color: rgb(250 250 250 / 64%);
    font-size: 11px;
    white-space: nowrap;
}

.genesis-collapse {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    gap: 9px;
    padding: 7px 10px;
    color: rgb(250 250 250 / 48%);
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
}

.genesis-collapse:hover {
    color: #fff;
    background: var(--shell-sidebar-accent);
}

.genesis-collapse svg {
    width: 15px;
    height: 15px;
    transition: transform 180ms ease;
}

body:not(.genesis-shell-collapsed) .genesis-collapse svg {
    transform: rotate(180deg);
}

body.genesis-shell-collapsed :is(.genesis-sidebar-label, .genesis-menu-text, .genesis-profile span, .genesis-collapse span) {
    display: none;
}

body.genesis-shell-collapsed .genesis-sidebar-scroll,
body.genesis-shell-collapsed .genesis-sidebar-footer {
    padding-right: 13px;
    padding-left: 13px;
}

body.genesis-shell-collapsed .genesis-menu-item,
body.genesis-shell-collapsed .genesis-collapse {
    width: 40px;
    padding-right: 12px;
    padding-left: 12px;
}

body.genesis-shell-collapsed .genesis-profile {
    padding-right: 7px;
    padding-left: 7px;
}

.genesis-content {
    width: auto !important;
    margin-left: var(--shell-sidebar-current) !important;
    transition: margin-left 180ms ease;
}

body.genesis-shell-active > .global-header,
body.genesis-shell-active .app-rail,
body.genesis-shell-active .section-menu {
    display: none !important;
}

body.genesis-shell-active .app-frame {
    display: block !important;
    min-height: calc(100vh - var(--app-header-height)) !important;
}

body.genesis-shell-active .page-toolbar {
    top: var(--app-header-height) !important;
}

body.genesis-shell-active .menu-toggle,
body.genesis-shell-active .module-tabs {
    display: none !important;
}

.genesis-command[hidden] {
    display: none;
}

.genesis-command {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: start center;
    padding-top: min(18vh, 160px);
    background: rgb(15 15 15 / 52%);
    backdrop-filter: blur(3px);
}

.genesis-command-panel {
    width: min(560px, calc(100vw - 32px));
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--shell-border);
    border-radius: 15px;
    box-shadow: 0 24px 70px rgb(0 0 0 / 24%);
}

.genesis-command-input {
    width: 100%;
    height: 54px;
    padding: 0 17px;
    color: var(--shell-ink);
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--shell-border);
    outline: 0;
    font: inherit;
    font-size: 14px;
}

.genesis-command-results {
    max-height: 320px;
    overflow: auto;
    padding: 8px;
}

.genesis-command-result {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    color: var(--shell-ink);
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    text-align: left;
}

.genesis-command-result:hover,
.genesis-command-result:focus {
    background: #f2eee8;
    outline: 0;
}

.genesis-command-result[hidden] {
    display: none;
}

@media (max-width: 820px) {
    :root {
        --shell-sidebar-current: var(--app-sidebar-width-icon);
    }

    .genesis-home {
        width: 164px;
        flex-basis: 164px;
    }

    .genesis-search {
        width: 38px;
        padding: 0 10px;
    }

    .genesis-search span,
    .genesis-search kbd,
    .genesis-product span,
    .genesis-user span {
        display: none;
    }

    .genesis-product {
        width: 34px;
        padding: 0 6px;
    }

    .genesis-sidebar-label,
    .genesis-menu-text,
    .genesis-profile span,
    .genesis-collapse span {
        display: none;
    }

    .genesis-sidebar-scroll,
    .genesis-sidebar-footer {
        padding-right: 13px;
        padding-left: 13px;
    }

    .genesis-menu-item,
    .genesis-collapse {
        width: 40px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .genesis-profile {
        padding-right: 7px;
        padding-left: 7px;
    }
}

@media (max-width: 560px) {
    :root {
        --shell-sidebar-current: 0px;
    }

    .genesis-sidebar {
        display: none;
    }

    .genesis-home {
        width: auto;
        flex: 1;
    }

    .genesis-home img {
        width: 130px;
    }

    .genesis-search,
    .genesis-notifications {
        display: none;
    }

    .genesis-content {
        margin-left: 0 !important;
    }
}