:root {
    --growstar-shell-bar-height: 54px;
    --growstar-shell-drawer-width: 318px;
    --growstar-shell-bg: #0b1220;
    --growstar-shell-panel: #111c2e;
    --growstar-shell-panel-2: #172033;
    --growstar-shell-border: rgba(148, 163, 184, .16);
    --growstar-shell-text: #e5e7eb;
    --growstar-shell-muted: #94a3b8;
    --growstar-shell-accent: #22c55e;
    --growstar-shell-blue: #38bdf8;
}

.growstar-appbar,
.growstar-nav-drawer,
.growstar-nav-overlay {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.growstar-appbar,
.growstar-nav-drawer {
    font-size: 16px;
    line-height: 1.25;
}

.growstar-appbar *,
.growstar-nav-drawer * {
    box-sizing: border-box;
}

.growstar-appbar {
    position: fixed;
    z-index: 10020;
    top: 0;
    left: 0;
    right: 0;
    height: var(--growstar-shell-bar-height);
    display: grid;
    grid-template-columns: 44px auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 6px 11px;
    border-bottom: 1px solid var(--growstar-shell-border);
    background: rgba(8, 15, 28, .94);
    color: var(--growstar-shell-text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .20);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.growstar-menu-toggle,
.growstar-nav-close,
.growstar-nav-group-toggle {
    appearance: none;
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(30, 41, 59, .86);
    color: var(--growstar-shell-text);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.growstar-menu-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    padding: 0;
    border-radius: 11px;
}

.growstar-menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
}

.growstar-menu-toggle:hover,
.growstar-menu-toggle:focus-visible,
.growstar-nav-close:hover,
.growstar-nav-close:focus-visible,
.growstar-nav-group-toggle:focus-visible {
    border-color: rgba(56, 189, 248, .55);
    outline: none;
}

.growstar-appbar-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--growstar-shell-text);
    text-decoration: none;
    font-weight: 820;
    letter-spacing: -.02em;
}

.growstar-appbar-logo {
    font-size: 18.4px;
}

.growstar-appbar-title {
    font-size: 15.68px;
}

.growstar-appbar-context {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--growstar-shell-muted);
    font-size: 12.48px;
    font-weight: 650;
}

.growstar-appbar-context::before {
    content: "/";
    margin-right: 9px;
    color: rgba(148, 163, 184, .45);
}

.growstar-appbar-version {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(34, 197, 94, .20);
    border-radius: 999px;
    background: rgba(34, 197, 94, .07);
    color: #86efac;
    text-decoration: none;
    font-size: 10.88px;
    font-weight: 750;
}

.growstar-app-content {
    min-height: 100vh;
    padding-top: var(--growstar-shell-bar-height);
}

.growstar-nav-overlay {
    position: fixed;
    z-index: 10030;
    inset: 0;
    background: rgba(2, 6, 23, .62);
    opacity: 0;
    transition: opacity .20s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.growstar-nav-overlay[hidden] {
    display: block;
    visibility: hidden;
    pointer-events: none;
}

.growstar-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.growstar-nav-drawer {
    position: fixed;
    z-index: 10040;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(var(--growstar-shell-drawer-width), calc(100vw - 34px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border-right: 1px solid rgba(56, 189, 248, .16);
    background:
        radial-gradient(circle at 15% 0%, rgba(34, 197, 94, .075), transparent 272px),
        linear-gradient(180deg, #0b1220 0%, #0a1120 100%);
    color: var(--growstar-shell-text);
    box-shadow: 22px 0 52px rgba(0, 0, 0, .38);
    transform: translate3d(-104%, 0, 0);
    transition: transform .22s cubic-bezier(.2, .7, .25, 1);
    will-change: transform;
}

.growstar-nav-drawer.is-open {
    transform: translate3d(0, 0, 0);
}

.growstar-nav-head {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px 10px 17px;
    border-bottom: 1px solid var(--growstar-shell-border);
}

.growstar-nav-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.growstar-nav-logo {
    font-size: 23.2px;
}

.growstar-nav-brand strong {
    display: block;
    font-size: 17.28px;
    letter-spacing: -.02em;
}

.growstar-nav-brand small {
    display: block;
    margin-top: 1px;
    color: var(--growstar-shell-muted);
    font-size: 10.24px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.growstar-nav-close {
    width: 39px;
    height: 39px;
    border-radius: 10px;
    font-size: 24.8px;
    line-height: 1;
}

.growstar-nav-scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
    padding: 11px 10px 18px;
}

.growstar-nav-section + .growstar-nav-section {
    margin-top: 17px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, .09);
}

.growstar-nav-section-title {
    padding: 0 11px 7px;
    color: #64748b;
    font-size: 10.24px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.growstar-nav-item {
    position: relative;
    min-height: 50px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: 2px 0;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #cbd5e1;
    text-decoration: none;
    transition: background .14s ease, border-color .14s ease, color .14s ease;
}

.growstar-nav-item:hover,
.growstar-nav-item:focus-visible {
    border-color: rgba(148, 163, 184, .15);
    background: rgba(30, 41, 59, .72);
    color: #f8fafc;
    outline: none;
}

.growstar-nav-item.active {
    border-color: rgba(34, 197, 94, .22);
    background: linear-gradient(90deg, rgba(34, 197, 94, .16), rgba(30, 41, 59, .48));
    color: #f0fdf4;
}

.growstar-nav-item.active::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--growstar-shell-accent);
    box-shadow: 0 0 14px rgba(34, 197, 94, .32);
}

.growstar-nav-icon {
    width: 31px;
    height: 31px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, .13);
    border-radius: 8px;
    background: rgba(15, 23, 42, .78);
    color: #bae6fd;
    font-size: 12.48px;
    font-weight: 850;
}

.growstar-nav-copy {
    min-width: 0;
}

.growstar-nav-copy strong,
.growstar-nav-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.growstar-nav-copy strong {
    font-size: 13.44px;
    font-weight: 760;
}

.growstar-nav-copy small {
    margin-top: 2px;
    color: #7f8da2;
    font-size: 10.56px;
    font-weight: 570;
}

/* SHELL.4: linkshändige Modulschalter für die mobile Navigation. */
.growstar-nav-group { margin: 2px 0; }
.growstar-nav-group-row {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: stretch;
    border: 1px solid transparent;
    border-radius: 11px;
    overflow: hidden;
    transition: background .14s ease, border-color .14s ease;
}
.growstar-nav-group-row.active {
    border-color: rgba(34, 197, 94, .22);
    background: linear-gradient(90deg, rgba(34, 197, 94, .16), rgba(30, 41, 59, .48));
    color: #f0fdf4;
}
.growstar-nav-group-row.active::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--growstar-shell-accent);
    box-shadow: 0 0 14px rgba(34, 197, 94, .32);
}
.growstar-nav-group-main {
    min-height: 50px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 7px 8px 7px 2px;
    color: #cbd5e1;
    text-decoration: none;
}
.growstar-nav-group-main:hover,
.growstar-nav-group-main:focus-visible { color: #f8fafc; outline: none; }
.growstar-nav-group-toggle {
    appearance: none;
    width: 42px;
    min-height: 44px;
    align-self: center;
    justify-self: center;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font: inherit;
    font-size: 17px;
    touch-action: manipulation;
    z-index: 1;
}
.growstar-nav-group-toggle:hover,
.growstar-nav-group-toggle:focus-visible { border-color: rgba(56,189,248,.35); outline: none; }
.growstar-nav-group-toggle span { display: inline-block; transition: transform .16s ease; }
.growstar-nav-group.is-expanded .growstar-nav-group-toggle span { transform: rotate(180deg); }
.growstar-nav-submenu {
    margin: 5px 0 7px 17px;
    padding: 3px 0 3px 13px;
    border-left: 1px solid rgba(56, 189, 248, .18);
}
.growstar-nav-submenu[hidden] { display: none; }
.growstar-nav-submenu a {
    min-height: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    margin: 1px 0;
    border-radius: 8px;
    color: #9aa8ba;
    text-decoration: none;
    font-size: 12px;
    font-weight: 650;
}
.growstar-nav-submenu a small { color: #56657a; font-size: 9px; font-weight: 650; }
.growstar-nav-submenu a:hover,
.growstar-nav-submenu a:focus-visible { background: rgba(30,41,59,.62); color:#e2e8f0; outline:none; }
.growstar-nav-submenu a.active { background: rgba(34,197,94,.10); color:#bbf7d0; }
.growstar-nav-submenu a.active small { color:#6ee7a3; }

.growstar-nav-footer {
    padding: 10px;
    border-top: 1px solid var(--growstar-shell-border);
    background: rgba(5, 10, 20, .72);
}

.growstar-nav-version {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    padding: 7px 9px 9px;
    color: inherit;
    text-decoration: none;
}

.growstar-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--growstar-shell-accent);
    box-shadow: 0 0 10px rgba(34, 197, 94, .55);
}

.growstar-nav-version strong,
.growstar-nav-version small {
    display: block;
}

.growstar-nav-version strong {
    color: #bbf7d0;
    font-size: 11.52px;
}

.growstar-nav-version small {
    margin-top: 1px;
    color: var(--growstar-shell-muted);
    font-size: 10.08px;
}

.growstar-nav-user {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
    gap: 7px;
    padding: 9px;
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 10px;
    background: rgba(30, 41, 59, .42);
}

.growstar-nav-user-copy {
    min-width: 0;
}

.growstar-nav-user-copy span,
.growstar-nav-user-copy strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.growstar-nav-user-copy span {
    color: #64748b;
    font-size: 9.76px;
}

.growstar-nav-user-copy strong {
    margin-top: 1px;
    font-size: 11.68px;
}

.growstar-nav-user form {
    margin: 0;
}

.growstar-nav-user button {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(148, 163, 184, .17);
    border-radius: 9px;
    background: rgba(15, 23, 42, .88);
    color: #cbd5e1;
    cursor: pointer;
    font-size: 16px;
}

body.growstar-menu-open {
    overflow: hidden !important;
}

@media (max-width: 600px) {
    :root {
        --growstar-shell-bar-height: 52px;
    }

    .growstar-appbar {
        grid-template-columns: 42px auto minmax(0, 1fr);
        gap: 8px;
        padding: 5px 8px;
    }

    .growstar-appbar-version {
        display: none;
    }

    .growstar-appbar-context {
        text-align: right;
        font-size: 11.2px;
    }

    .growstar-appbar-title {
        font-size: 14.56px;
    }

    .growstar-nav-drawer {
        width: min(306px, calc(100vw - 24px));
    }
}

@media (max-width: 380px) {
    .growstar-appbar-context {
        display: none;
    }

    .growstar-appbar {
        grid-template-columns: 42px minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .growstar-nav-drawer,
    .growstar-nav-overlay,
    .growstar-menu-toggle span,
    .growstar-nav-group-toggle span {
        transition: none !important;
    }
}


/* Growstar 3.13.2 / SHELL.3 — module hierarchy */
.growstar-nav-module + .growstar-nav-module {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid rgba(148, 163, 184, .11);
}

.growstar-nav-submenu-label {
    margin: 8px 8px 4px;
    padding: 8px 1px 4px;
    border-top: 1px solid rgba(148, 163, 184, .09);
    color: #607086;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.growstar-nav-admin .growstar-nav-item {
    min-height: 46px;
}

.growstar-nav-admin .growstar-nav-section-title {
    color: #9aa8ba;
}
