:root {
    --canvas: #071426;
    --canvas-strong: #0b1b33;
    --line: rgba(148, 163, 184, 0.22);
    --ink: #0f172a;
    --muted: #64748b;
    --brand: #2563eb;
    --brand-strong: #1d4ed8;
}

html,
body {
    width: 100%;
    max-width: 100%;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 10%, rgba(56, 189, 248, 0.16), transparent 25%),
        radial-gradient(circle at 84% 8%, rgba(251, 146, 60, 0.1), transparent 24%),
        radial-gradient(circle at 72% 78%, rgba(45, 212, 191, 0.1), transparent 26%),
        linear-gradient(135deg, #030817 0%, var(--canvas-strong) 42%, var(--canvas) 100%) !important;
    color: var(--ink);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.13), transparent 28rem),
        radial-gradient(circle at 84% 14%, rgba(99, 102, 241, 0.12), transparent 24rem),
        radial-gradient(circle at 70% 84%, rgba(45, 212, 191, 0.08), transparent 26rem);
    opacity: 0.76;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.42), rgba(0,0,0,0.1) 78%, transparent);
    pointer-events: none;
}

.app-shell {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 100vh;
}

.dashboard-content-frame,
.app-content-frame {
    width: 100%;
    min-width: 0;
    max-width: 112rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.brand-nav {
    position: relative !important;
    z-index: 2 !important;
    padding: 1.15rem 1.5rem 0.55rem !important;
    border-bottom: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.brand-nav::before {
    content: none !important;
}

.brand-nav::after {
    content: none !important;
}

.app-header-shell {
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.app-header-shell::before,
.app-header-shell::after {
    content: none !important;
}

.brand-lockup {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    min-width: 0;
    position: relative;
    z-index: 1;
    padding: 0.48rem 1rem 0.48rem 0.52rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 1.55rem;
    color: inherit;
    text-decoration: none;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.065)),
        radial-gradient(circle at 18% 0%, rgba(255,255,255,0.28), transparent 38%),
        linear-gradient(115deg, rgba(56,189,248,0.12), rgba(255,255,255,0.04), rgba(251,146,60,0.1));
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(18px) saturate(165%) brightness(1.08);
    backdrop-filter: blur(18px) saturate(165%) brightness(1.08);
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.brand-lockup:hover {
    border-color: rgba(255,255,255,0.28);
    box-shadow: none !important;
}

.brand-mark {
    display: block;
    width: auto;
    height: 2.9rem;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.brand-copy > p:first-child {
    color: rgba(224, 242, 254, 0.9) !important;
}

.brand-copy h1 {
    color: #ffffff !important;
}

.brand-subtitle {
    color: rgba(226, 232, 240, 0.78) !important;
}

.brand-release-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.42rem;
}

.release-version-badge {
    display: inline-flex;
    min-height: 1.2rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(125, 211, 252, 0.28);
    border-radius: 999px;
    padding: 0.12rem 0.42rem;
    background: rgba(14, 165, 233, 0.12);
    color: #bae6fd;
    font-size: 0.58rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

:root[data-theme="light"] .release-version-badge {
    border-color: rgba(37, 99, 235, 0.2);
    background: rgba(239, 246, 255, 0.9);
    color: #1d4ed8;
}

.app-nav-cluster {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.32rem !important;
    padding: 0.34rem 0 !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.app-nav-cluster::before {
    content: none;
}

.top-nav-link,
.global-nav-link,
.tab-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.68rem 0.92rem !important;
    font-size: 0.78rem;
    font-weight: 700 !important;
    color: rgba(226, 232, 240, 0.82) !important;
    border-radius: 999px;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
    transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.top-nav-brand-icon,
.global-nav-brand-icon {
    display: block;
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(2, 6, 23, 0.16));
}

.top-nav-brand-icon--etsy,
.global-nav-brand-icon--etsy {
    transform: scale(1.18);
    transform-origin: center;
}

.top-nav-brand-icon--amazon,
.global-nav-brand-icon--amazon {
    transform: scale(1.02);
    transform-origin: center;
}

.top-nav-brand-icon--shopify,
.global-nav-brand-icon--shopify {
    transform: scale(1.12);
    transform-origin: center;
}

.top-nav-link.active .top-nav-brand-icon,
.global-nav-link.active .global-nav-brand-icon {
    filter: drop-shadow(0 4px 8px rgba(2, 6, 23, 0.18));
}

.top-nav-link:hover,
.global-nav-link:hover {
    color: #ffffff !important;
    background: transparent !important;
}

.top-nav-link.active,
.global-nav-link.active {
    color: #ffffff !important;
    background: transparent !important;
    box-shadow: none !important;
}

.top-nav-link.active::after,
.global-nav-link.active::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.18rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #f97316);
    opacity: 0.82;
}

.top-nav-link.logout-link,
.global-nav-link.logout-link {
    color: #fed7aa !important;
    background: transparent !important;
    box-shadow: none !important;
}

.top-nav-link.logout-link:hover,
.global-nav-link.logout-link:hover {
    color: #fff7ed !important;
    background: transparent !important;
}

.app-subnav-shell {
    margin-top: 0.75rem;
    border: 1px solid rgba(255,255,255,0.16) !important;
    border-radius: 1.15rem !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06)),
        linear-gradient(100deg, rgba(125,211,252,0.08), rgba(255,255,255,0.04), rgba(251,146,60,0.08)) !important;
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
}

.liquid-glass-filter-defs {
    position: fixed;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* A 13-inch laptop cannot fit the brand, every navigation item, and page tools
   in one row. Keep the full navigation visible in a stable second row. */
@media (max-width: 1535px) {
    .app-header-shell {
        width: 100% !important;
        min-width: 0 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0.55rem !important;
    }

    .app-header-shell > *,
    .app-header-shell > :last-child,
    .app-nav-cluster {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .app-header-shell > :last-child {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .app-nav-cluster {
        width: 100% !important;
        min-height: auto !important;
        justify-content: flex-start !important;
        padding-left: 0 !important;
    }
}

@media (max-width: 767px) {
    .brand-lockup {
        max-width: 100%;
    }

    .app-nav-cluster {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .top-nav-link,
    .global-nav-link,
    .tab-link {
        flex: 0 0 auto;
    }
}

@media (max-width: 640px) {
    .dashboard-content-frame,
    .app-content-frame {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .brand-nav {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Enterprise sidebar experiment. The shell is shared across every authenticated page. */
:root {
    --enterprise-sidebar-width: 16.25rem;
    --enterprise-topbar-height: 4.75rem;
    --enterprise-shell-line: rgba(148, 163, 184, 0.2);
    --enterprise-shell-surface: rgba(5, 15, 31, 0.94);
    --enterprise-shell-surface-soft: rgba(12, 27, 50, 0.86);
    --enterprise-shell-text: #f8fafc;
    --enterprise-shell-muted: #94a3b8;
}

:root[data-theme="light"] {
    --enterprise-shell-line: rgba(100, 116, 139, 0.2);
    --enterprise-shell-surface: rgba(248, 250, 252, 0.96);
    --enterprise-shell-surface-soft: rgba(255, 255, 255, 0.9);
    --enterprise-shell-text: #0f172a;
    --enterprise-shell-muted: #64748b;
}

body {
    overflow-x: hidden;
}

.app-shell,
.dashboard-shell,
.search-shell {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh;
    margin: 0 !important;
    padding-left: var(--enterprise-sidebar-width) !important;
    padding-top: var(--enterprise-topbar-height) !important;
    transition: padding-left 0.2s ease;
}

.enterprise-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    display: flex;
    width: var(--enterprise-sidebar-width);
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--enterprise-shell-line);
    background:
        linear-gradient(180deg, rgba(56, 189, 248, 0.07), transparent 22%),
        var(--enterprise-shell-surface);
    color: var(--enterprise-shell-text);
    box-shadow: 18px 0 50px rgba(2, 6, 23, 0.16);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    backdrop-filter: blur(24px) saturate(145%);
    transition: width 0.2s ease, transform 0.22s ease;
}

.enterprise-sidebar__brand {
    position: relative;
    flex: 0 0 auto;
    padding: 1.05rem 1rem 0.85rem;
}

.enterprise-sidebar__collapse {
    display: flex;
    width: 100%;
    min-height: 2.05rem;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    margin-top: 0.42rem;
    border: 1px solid var(--enterprise-shell-line);
    border-radius: 0.5rem;
    background: rgba(148, 163, 184, 0.055);
    color: var(--enterprise-shell-muted);
    cursor: pointer;
    font-size: 0.64rem;
    font-weight: 760;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.enterprise-sidebar__collapse:hover,
.enterprise-sidebar__collapse:focus-visible {
    border-color: rgba(56, 189, 248, 0.36);
    background: rgba(56, 189, 248, 0.1);
    color: var(--enterprise-shell-text);
    outline: none;
}

.enterprise-sidebar__collapse svg {
    width: 0.92rem;
    height: 0.92rem;
    transition: transform 0.2s ease;
}

.enterprise-sidebar__brand-link {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 0.8rem;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.11), rgba(255, 255, 255, 0.045));
    color: inherit;
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.enterprise-sidebar__brand-link:hover {
    border-color: rgba(125, 211, 252, 0.34);
}

.enterprise-sidebar__logo {
    width: 3.1rem;
    height: 3.1rem;
    flex: 0 0 auto;
    border-radius: 0.65rem;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.92);
}

.enterprise-sidebar__brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.08;
}

.enterprise-sidebar__brand-copy strong {
    overflow: hidden;
    color: var(--enterprise-shell-text);
    font-size: 1.08rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enterprise-sidebar__brand-copy > span:last-child {
    overflow: hidden;
    margin-top: 0.3rem;
    color: var(--enterprise-shell-muted);
    font-size: 0.67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enterprise-sidebar__company {
    margin-bottom: 0.25rem;
    color: #7dd3fc !important;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.enterprise-sidebar .app-nav-cluster.enterprise-sidebar__nav {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0.18rem !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 0.2rem 0.78rem 1rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    scrollbar-color: rgba(125, 211, 252, 0.38) transparent;
    scrollbar-width: thin;
    overscroll-behavior: contain;
}

.enterprise-sidebar__nav::-webkit-scrollbar {
    width: 6px;
}

.enterprise-sidebar__nav::-webkit-scrollbar-track {
    background: transparent;
}

.enterprise-sidebar__nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(#38bdf8, #f97316);
}

.enterprise-sidebar__group-label {
    display: block;
    margin: 0.82rem 0.65rem 0.34rem;
    color: var(--enterprise-shell-muted);
    font-size: 0.57rem;
    font-weight: 850;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
}

.enterprise-sidebar .enterprise-sidebar__link,
.enterprise-sidebar .theme-toggle {
    position: relative;
    display: flex !important;
    width: 100% !important;
    min-width: 0;
    min-height: 2.7rem;
    flex: 0 0 auto !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 0.7rem;
    padding: 0.56rem 0.7rem !important;
    border: 1px solid transparent !important;
    border-radius: 0.68rem !important;
    background: transparent !important;
    color: color-mix(in srgb, var(--enterprise-shell-text) 78%, transparent) !important;
    font-size: 0.76rem;
    font-weight: 720 !important;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.enterprise-sidebar .enterprise-sidebar__link::after {
    content: none !important;
}

.enterprise-sidebar .enterprise-sidebar__link:hover,
.enterprise-sidebar .theme-toggle:hover {
    transform: translateX(2px);
    border-color: rgba(125, 211, 252, 0.14) !important;
    background: rgba(125, 211, 252, 0.08) !important;
    color: var(--enterprise-shell-text) !important;
}

.enterprise-sidebar .enterprise-sidebar__link.active {
    border-color: rgba(56, 189, 248, 0.24) !important;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.22), rgba(14, 165, 233, 0.08)) !important;
    color: #ffffff !important;
    box-shadow: inset 3px 0 0 #38bdf8 !important;
}

:root[data-theme="light"] .enterprise-sidebar .enterprise-sidebar__link.active {
    color: #0f172a !important;
}

.enterprise-sidebar__icon,
.enterprise-sidebar .theme-toggle__icon {
    display: inline-flex;
    width: 1.65rem;
    height: 1.65rem;
    flex: 0 0 1.65rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(148, 163, 184, 0.09);
    color: #7dd3fc;
}

.enterprise-sidebar__icon svg,
.enterprise-sidebar .theme-toggle__icon svg {
    width: 0.98rem;
    height: 0.98rem;
}

.enterprise-sidebar__icon--brand {
    background: rgba(255, 255, 255, 0.95);
}

.enterprise-sidebar__icon--brand img {
    width: 1.05rem;
    height: 1.05rem;
    object-fit: contain;
}

.enterprise-sidebar__active-mark {
    width: 0.34rem;
    height: 0.34rem;
    margin-left: auto;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.enterprise-sidebar__theme-host {
    display: block;
    width: 100%;
}

.enterprise-sidebar .theme-toggle__label {
    font-size: 0.76rem;
    font-weight: 720;
}

.enterprise-sidebar .logout-link {
    color: #fdba74 !important;
}

.enterprise-sidebar__release {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    margin: 0 0.78rem 0.8rem;
    padding: 0.64rem 0.72rem;
    border: 1px solid var(--enterprise-shell-line);
    border-radius: 0.68rem;
    background: rgba(148, 163, 184, 0.06);
    color: var(--enterprise-shell-muted);
    font-size: 0.63rem;
    font-weight: 750;
    text-decoration: none;
}

.enterprise-sidebar__release-icon {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    align-items: center;
    justify-content: center;
    color: #7dd3fc;
}

.enterprise-sidebar__release-icon svg {
    width: 0.9rem;
    height: 0.9rem;
}

.enterprise-sidebar__release-label {
    margin-right: auto;
}

.enterprise-sidebar__release strong {
    color: var(--enterprise-shell-text);
    font-variant-numeric: tabular-nums;
}

.enterprise-topbar {
    position: fixed;
    inset: 0 0 auto var(--enterprise-sidebar-width);
    z-index: 90;
    display: grid;
    height: var(--enterprise-topbar-height);
    grid-template-columns: minmax(11rem, 0.55fr) minmax(20rem, 1.45fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 0.68rem 1.35rem;
    border-bottom: 1px solid var(--enterprise-shell-line);
    background: var(--enterprise-shell-surface);
    color: var(--enterprise-shell-text);
    box-shadow: 0 12px 36px rgba(2, 6, 23, 0.12);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    backdrop-filter: blur(22px) saturate(145%);
    transition: left 0.2s ease;
}

.enterprise-topbar__menu {
    display: none;
    width: 2.55rem;
    height: 2.55rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--enterprise-shell-line);
    border-radius: 0.65rem;
    background: rgba(148, 163, 184, 0.08);
    color: inherit;
}

.enterprise-topbar__menu svg {
    width: 1.15rem;
    height: 1.15rem;
}

.enterprise-topbar__title {
    min-width: 0;
}

.enterprise-topbar__title > span {
    display: block;
    color: #7dd3fc;
    font-size: 0.57rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.enterprise-topbar__title h1 {
    overflow: hidden;
    margin: 0.16rem 0 0;
    color: var(--enterprise-shell-text);
    font-size: clamp(1rem, 1.55vw, 1.35rem);
    font-weight: 850;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enterprise-topbar__search {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 52rem;
    height: 2.9rem;
    align-items: center;
    justify-self: center;
    gap: 0.65rem;
    padding: 0.3rem 0.34rem 0.3rem 0.9rem;
    border: 1px solid var(--enterprise-shell-line);
    border-radius: 0.72rem;
    background: rgba(148, 163, 184, 0.08);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.enterprise-topbar__search:focus-within {
    border-color: rgba(56, 189, 248, 0.54);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.enterprise-topbar__search > svg {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    color: #7dd3fc;
}

.enterprise-topbar__search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--enterprise-shell-text);
    font-size: 0.8rem;
    font-weight: 680;
}

.enterprise-topbar__search input::placeholder {
    color: var(--enterprise-shell-muted);
}

.enterprise-topbar__search button {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0.55rem;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    color: #fff;
    cursor: pointer;
}

.enterprise-topbar__search button svg {
    width: 0.95rem;
    height: 0.95rem;
}

.enterprise-topbar__clocks {
    display: grid;
    grid-template-columns: repeat(2, minmax(6.4rem, 1fr));
    gap: 0.45rem;
}

.enterprise-topbar__tools {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
}

.enterprise-clock {
    display: grid;
    min-width: 0;
    padding: 0.42rem 0.62rem;
    border-left: 1px solid var(--enterprise-shell-line);
    color: var(--enterprise-shell-muted);
    line-height: 1.06;
}

.enterprise-clock > span {
    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.enterprise-clock > span small {
    font-size: inherit;
    font-weight: 650;
}

.enterprise-clock time {
    margin-top: 0.2rem;
    color: var(--enterprise-shell-text);
    font-size: 0.86rem;
    font-weight: 820;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.enterprise-clock > small {
    margin-top: 0.12rem;
    font-size: 0.55rem;
    white-space: nowrap;
}

.enterprise-token-age {
    display: grid;
    min-width: 4.65rem;
    min-height: 3.25rem;
    flex: 0 0 auto;
    align-content: center;
    justify-items: start;
    padding: 0.4rem 0.65rem;
    border: 1px solid rgba(56, 189, 248, 0.26);
    border-radius: 0.6rem;
    background: rgba(14, 165, 233, 0.08);
    color: var(--enterprise-shell-text);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.enterprise-token-age:hover,
.enterprise-token-age:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.52);
    background: rgba(14, 165, 233, 0.14);
    outline: none;
}

.enterprise-token-age > span {
    color: var(--enterprise-shell-muted);
    font-size: 0.52rem;
    font-weight: 820;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.enterprise-token-age > strong {
    margin-top: 0.18rem;
    color: #7dd3fc;
    font-size: 0.92rem;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.enterprise-token-age--warning {
    border-color: rgba(251, 191, 36, 0.34);
    background: rgba(245, 158, 11, 0.1);
}

.enterprise-token-age--warning > strong {
    color: #fcd34d;
}

.enterprise-token-age--due {
    border-color: rgba(248, 113, 113, 0.38);
    background: rgba(239, 68, 68, 0.11);
}

.enterprise-token-age--due > strong {
    color: #fca5a5;
}

.enterprise-token-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.enterprise-token-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.enterprise-token-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(2, 6, 23, 0.7);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.enterprise-token-modal__panel {
    position: relative;
    width: min(100%, 28rem);
    overflow: hidden;
    border: 1px solid var(--enterprise-shell-line);
    border-radius: 0.75rem;
    background: var(--enterprise-shell-surface);
    color: var(--enterprise-shell-text);
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.42);
    transform: translateY(0.6rem) scale(0.985);
    transition: transform 0.18s ease;
}

.enterprise-token-modal.is-open .enterprise-token-modal__panel {
    transform: translateY(0) scale(1);
}

.enterprise-token-modal__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem 0.8rem;
    border-bottom: 1px solid var(--enterprise-shell-line);
}

.enterprise-token-modal__icon {
    display: inline-flex;
    width: 2.35rem;
    height: 2.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    background: rgba(14, 165, 233, 0.12);
    color: #7dd3fc;
}

.enterprise-token-modal__icon svg,
.enterprise-token-modal__close svg {
    width: 1rem;
    height: 1rem;
}

.enterprise-token-modal__header span:not(.enterprise-token-modal__icon) {
    color: var(--enterprise-shell-muted);
    font-size: 0.58rem;
    font-weight: 820;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.enterprise-token-modal__header h2 {
    margin: 0.16rem 0 0;
    color: var(--enterprise-shell-text);
    font-size: 1rem;
    font-weight: 850;
}

.enterprise-token-modal__close {
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid var(--enterprise-shell-line);
    border-radius: 0.5rem;
    background: rgba(148, 163, 184, 0.06);
    color: var(--enterprise-shell-muted);
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
}

.enterprise-token-modal__summary {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    padding: 1rem;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.11), transparent);
}

.enterprise-token-modal__summary strong {
    color: #7dd3fc;
    font-size: 1.65rem;
    font-weight: 880;
}

.enterprise-token-modal__summary span {
    color: var(--enterprise-shell-muted);
    font-size: 0.72rem;
    font-weight: 650;
}

.enterprise-token-modal__details {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0 1rem;
}

.enterprise-token-modal__details > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--enterprise-shell-line);
}

.enterprise-token-modal__details dt {
    color: var(--enterprise-shell-muted);
    font-size: 0.67rem;
    font-weight: 700;
}

.enterprise-token-modal__details dd {
    margin: 0;
    color: var(--enterprise-shell-text);
    font-size: 0.7rem;
    font-weight: 800;
    text-align: right;
}

.enterprise-token-modal__note {
    margin: 0;
    padding: 0.9rem 1rem 1rem;
    color: var(--enterprise-shell-muted);
    font-size: 0.65rem;
    line-height: 1.55;
}

.enterprise-token-modal-open {
    overflow: hidden;
}

.enterprise-sidebar-hover-label {
    position: fixed;
    z-index: 140;
    visibility: hidden;
    max-width: min(18rem, calc(100vw - 7rem));
    padding: 0.5rem 0.68rem;
    border: 1px solid var(--enterprise-shell-line);
    border-radius: 0.45rem;
    background: rgba(5, 15, 31, 0.97);
    color: #f8fafc;
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.32);
    font-size: 0.7rem;
    font-weight: 760;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(-0.25rem);
    transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
    white-space: nowrap;
}

.enterprise-sidebar-hover-label.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (min-width: 1101px) {
    body.enterprise-sidebar-collapsed {
        --enterprise-sidebar-width: 5.25rem;
    }

    body.enterprise-sidebar-collapsed .enterprise-sidebar__brand {
        padding-inline: 0.65rem;
    }

    body.enterprise-sidebar-collapsed .enterprise-sidebar__brand-link {
        justify-content: center;
        padding: 0.55rem;
    }

    body.enterprise-sidebar-collapsed .enterprise-sidebar__logo {
        width: 2.8rem;
        height: 2.8rem;
    }

    body.enterprise-sidebar-collapsed .enterprise-sidebar__brand-copy,
    body.enterprise-sidebar-collapsed .enterprise-sidebar__collapse span,
    body.enterprise-sidebar-collapsed .enterprise-sidebar__link > span:not(.enterprise-sidebar__icon):not(.enterprise-sidebar__active-mark),
    body.enterprise-sidebar-collapsed .enterprise-sidebar__active-mark,
    body.enterprise-sidebar-collapsed .enterprise-sidebar .theme-toggle__label {
        display: none !important;
    }

    body.enterprise-sidebar-collapsed .enterprise-sidebar__collapse svg {
        transform: rotate(180deg);
    }

    body.enterprise-sidebar-collapsed .enterprise-sidebar__nav {
        padding-inline: 0.62rem !important;
    }

    body.enterprise-sidebar-collapsed .enterprise-sidebar__group-label {
        height: 1px;
        margin: 0.78rem 0.35rem 0.36rem;
        overflow: hidden;
        background: var(--enterprise-shell-line);
        color: transparent;
        font-size: 0;
    }

    body.enterprise-sidebar-collapsed .enterprise-sidebar .enterprise-sidebar__link,
    body.enterprise-sidebar-collapsed .enterprise-sidebar .theme-toggle {
        justify-content: center !important;
        padding-inline: 0.5rem !important;
    }

    body.enterprise-sidebar-collapsed .enterprise-sidebar .enterprise-sidebar__link:hover,
    body.enterprise-sidebar-collapsed .enterprise-sidebar .theme-toggle:hover {
        transform: none;
    }

    body.enterprise-sidebar-collapsed .enterprise-sidebar__release {
        justify-content: center;
        padding-inline: 0.45rem;
    }

    body.enterprise-sidebar-collapsed .enterprise-sidebar__release-label,
    body.enterprise-sidebar-collapsed .enterprise-sidebar__release strong {
        display: none;
    }
}

.enterprise-footer {
    display: flex;
    width: calc(100% - 3rem);
    max-width: 112rem;
    min-height: 3.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem auto 0;
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--enterprise-shell-line);
    color: rgba(203, 213, 225, 0.68);
    font-size: 0.68rem;
    font-weight: 650;
}

:root[data-theme="light"] .enterprise-footer {
    color: #64748b;
}

.enterprise-footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: #7dd3fc;
    text-decoration: none;
}

.enterprise-footer a svg {
    width: 0.9rem;
    height: 0.9rem;
}

.enterprise-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: none;
    border: 0;
    background: rgba(2, 6, 23, 0.62);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

@media (min-width: 1500px) {
    .dashboard-shell main.dashboard-content-frame {
        padding-right: 1.5rem !important;
        padding-left: 1.5rem !important;
    }
}

@media (min-width: 1101px) and (max-width: 1499px) {
    .dashboard-shell main.dashboard-content-frame {
        padding-right: 1.25rem !important;
        padding-left: 1.25rem !important;
    }
}

@media (max-width: 1280px) {
    :root {
        --enterprise-sidebar-width: 14.5rem;
    }

    .enterprise-topbar {
        grid-template-columns: minmax(9rem, 0.45fr) minmax(16rem, 1fr) auto;
        gap: 0.7rem;
        padding-inline: 1rem;
    }

    .enterprise-topbar__clocks {
        grid-template-columns: repeat(2, minmax(5.7rem, 1fr));
    }
}

@media (max-width: 1100px) {
    :root {
        --enterprise-sidebar-width: 16.25rem;
    }

    .app-shell,
    .dashboard-shell,
    .search-shell {
        padding-left: 0 !important;
    }

    .enterprise-sidebar {
        transform: translateX(-104%);
        transition: transform 0.22s ease;
    }

    .enterprise-sidebar-open .enterprise-sidebar {
        transform: translateX(0);
    }

    .enterprise-sidebar-open .enterprise-sidebar-overlay {
        display: block;
    }

    .enterprise-topbar {
        left: 0;
        grid-template-columns: auto minmax(8rem, 0.4fr) minmax(15rem, 1fr) auto;
    }

    .enterprise-topbar__menu {
        display: inline-flex;
    }

    .enterprise-sidebar__collapse {
        display: none;
    }
}

@media (max-width: 820px) {
    :root {
        --enterprise-topbar-height: 7.75rem;
    }

    .enterprise-topbar {
        height: var(--enterprise-topbar-height);
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        gap: 0.45rem 0.65rem;
        padding: 0.55rem 0.8rem;
    }

    .enterprise-topbar__search {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: none;
    }

    .enterprise-topbar__clocks {
        grid-template-columns: repeat(2, minmax(5.5rem, 1fr));
    }

    .enterprise-topbar__tools {
        gap: 0.3rem;
    }

    .enterprise-clock {
        padding-block: 0.25rem;
    }

    .enterprise-clock > small,
    .enterprise-clock > span small {
        display: none;
    }

    .enterprise-footer {
        width: calc(100% - 2rem);
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {
    .enterprise-topbar__title > span,
    .enterprise-clock > span {
        display: none;
    }

    .enterprise-topbar__title h1 {
        font-size: 0.96rem;
    }

    .enterprise-topbar__clocks {
        gap: 0.15rem;
    }

    .enterprise-token-age {
        min-width: 3.15rem;
        padding-inline: 0.45rem;
    }

    .enterprise-token-age > span {
        display: none;
    }

    .enterprise-clock {
        min-width: 4.6rem;
        padding-inline: 0.35rem;
    }

    .enterprise-clock time {
        font-size: 0.68rem;
    }

    .enterprise-footer__message {
        display: none;
    }
}
