:root {
    --sidebar-width: 260px;
    --sidebar-rail-width: 76px;
    --shell-header-height: 64px;
    --shell-navy-950: #10233a;
    --shell-navy-900: #17304d;
    --shell-navy-850: #1b3859;
    --shell-navy-800: #214263;
    --shell-blue: #4b9cff;
    --shell-blue-soft: rgba(75, 156, 255, 0.16);
    --shell-sidebar-text: #344f6b;
    --shell-sidebar-muted: #7e96ad;
    --shell-surface: rgba(255, 255, 255, 0.94);
    --shell-border: #dce6f1;
    --shell-text: #172033;
    --shell-muted: #687d96;
    --shell-radius: 12px;
    --shell-transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
    --current-sidebar-width: var(--sidebar-width);
}

html.sidebar-rail-preload {
    --current-sidebar-width: var(--sidebar-rail-width);
}

html.sidebar-rail-preload .sidebar {
    width: var(--sidebar-rail-width);
}

html.sidebar-rail-preload #main {
    margin-left: var(--sidebar-rail-width);
}

html:not(.app-shell-ready) .sidebar,
html:not(.app-shell-ready) #main,
html:not(.app-shell-ready) .dropdown-content,
html:not(.app-shell-ready) .nested-dropdown-content {
    transition: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--shell-text);
}

.sidebar {
    position: fixed;
    z-index: 1000;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    height: 100dvh;
    padding: 0;
    overflow: hidden;
    color: var(--shell-sidebar-text);
    background:
        radial-gradient(circle at 8% 0, rgba(58, 137, 213, 0.11), transparent 280px),
        linear-gradient(180deg, #edf4f9 0%, #e5eef5 54%, #dce8f1 100%);
    border-right: 1px solid #c4d4e2;
    box-shadow: 6px 0 20px rgba(39, 72, 108, 0.085);
    transition: width var(--shell-transition), transform var(--shell-transition);
}

.sidebar::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: rgba(255, 255, 255, 0.82);
    pointer-events: none;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 var(--shell-header-height);
    min-height: var(--shell-header-height);
    margin: 0;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid #cfdee9;
}

.sidebar .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 10px;
    color: #1d3d61;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: 0.01em;
    overflow: hidden;
}

.sidebar .sidebar-brand:hover,
.sidebar .sidebar-brand:focus-visible {
    color: #155fa8;
    background: rgba(75, 156, 255, 0.08);
    transform: none;
}

.sidebar .sidebar-brand::before {
    display: none;
}

.sidebar .sidebar-brand > i {
    display: inline-grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin: 0;
    color: #2878cc;
    background: #e8f3ff;
    border: 1px solid #cfe5fa;
    border-radius: 9px;
    font-size: 18px;
}

.sidebar-brand__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-header .closebtn,
.sidebar-collapse-button {
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    color: var(--shell-sidebar-muted);
    background: transparent;
    border: 0;
    border-radius: 9px;
    font-size: 14px;
    cursor: pointer;
    transition: color var(--shell-transition), background var(--shell-transition);
}

.sidebar-header .closebtn:hover,
.sidebar-header .closebtn:focus-visible {
    color: #276aa9;
    background: #e8f2fc;
    outline: none;
    transform: none;
}

.sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px 10px 18px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(145, 167, 193, 0.35) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(145, 167, 193, 0.35);
    border-radius: 99px;
}

.sidebar-divider {
    height: 0;
    margin: 6px 12px;
    background: transparent;
}

.sidebar-footer {
    flex: 0 0 auto;
    padding: 8px;
    background: rgba(229, 238, 246, 0.72);
    border-top: 1px solid #cbdbe7;
}

.sidebar a,
.sidebar .sidebar-theme-toggle,
.sidebar .dropdown-header,
.sidebar .nested-dropdown-header {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 42px;
    box-sizing: border-box;
    margin: 2px 0;
    padding: 0 12px;
    color: var(--shell-sidebar-text);
    background: transparent;
    border: 0;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    transition:
        color var(--shell-transition),
        background var(--shell-transition),
        transform var(--shell-transition);
}

.sidebar .sidebar-theme-toggle {
    width: 100%;
    font-family: inherit;
    text-align: left;
}

.sidebar a::before {
    display: none;
}

.sidebar a:hover,
.sidebar a:focus-visible,
.sidebar .sidebar-theme-toggle:hover,
.sidebar .sidebar-theme-toggle:focus-visible,
.sidebar .dropdown-header:hover,
.sidebar .dropdown-header:focus-visible,
.sidebar .nested-dropdown-header:hover,
.sidebar .nested-dropdown-header:focus-visible {
    color: #1e5f9d;
    background: #e5eef6;
    box-shadow: none;
    outline: none;
    transform: none;
}

.sidebar a > i,
.sidebar .sidebar-theme-toggle > i,
.sidebar .dropdown-header > i:first-child,
.sidebar .nested-dropdown-header > i:first-child {
    display: inline-grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin: 0 9px 0 -6px;
    color: var(--shell-sidebar-muted);
    background: transparent;
    border-radius: 0;
    font-size: 14.5px;
    text-align: center;
    transition:
        color var(--shell-transition),
        background var(--shell-transition),
        transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sidebar a:hover > i,
.sidebar a:focus-visible > i,
.sidebar .sidebar-theme-toggle:hover > i,
.sidebar .sidebar-theme-toggle:focus-visible > i,
.sidebar .dropdown-header:hover > i:first-child,
.sidebar .dropdown-header:focus-visible > i:first-child,
.sidebar .nested-dropdown-header:hover > i:first-child,
.sidebar .nested-dropdown-header:focus-visible > i:first-child {
    color: #3983c9;
    background: transparent;
    transform: scale(1.06);
}

.sidebar a:active > i,
.sidebar .sidebar-theme-toggle:active > i,
.sidebar .dropdown-header:active > i:first-child,
.sidebar .nested-dropdown-header:active > i:first-child {
    transform: scale(1.08);
}

.sidebar a.active-item {
    color: #165d9f;
    background: #dcebf8;
    box-shadow:
        inset 3px 0 0 #3e8edf,
        inset 0 0 0 1px rgba(93, 156, 216, 0.12);
    font-weight: 600;
}

.sidebar .dropdown-header.active,
.sidebar .nested-dropdown-header.active {
    color: #315f8a;
    background: rgba(218, 232, 244, 0.62);
    box-shadow: none;
    font-weight: 600;
}

.sidebar a.active-item > i {
    color: #287dcc;
    background: transparent;
    transform: none;
}

.sidebar .dropdown-header.active > i:first-child,
.sidebar .nested-dropdown-header.active > i:first-child {
    color: #527fa8;
    background: transparent;
    transform: none;
}

.dropdown-navigation-menu {
    position: relative;
}

.sidebar .dropdown-header .fa-chevron-down,
.sidebar .nested-dropdown-header .fa-chevron-right {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    margin: 0 0 0 auto;
    color: var(--shell-sidebar-muted);
    background: transparent;
    border-radius: 0;
    font-size: 10px;
    transition: transform var(--shell-transition);
}

.sidebar .dropdown-header.active .fa-chevron-down {
    transform: rotate(180deg);
}

.sidebar .nested-dropdown-header.active .fa-chevron-right {
    transform: rotate(90deg);
}

.sidebar .dropdown-content,
.sidebar .nested-dropdown-content {
    max-height: 0;
    margin: 0 0 4px;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    opacity: 0;
    transition: max-height 280ms ease, opacity 180ms ease;
}

.sidebar .dropdown-content.open {
    max-height: 720px;
    opacity: 1;
}

.sidebar .nested-dropdown-content.open {
    max-height: 260px;
    opacity: 1;
}

html:not(.app-shell-ready) .dropdown-navigation-menu:has(a.active-item) > .dropdown-content {
    max-height: 720px;
    opacity: 1;
}

html:not(.app-shell-ready) .nested-dropdown:has(a.active-item) > .nested-dropdown-content {
    max-height: 260px;
    opacity: 1;
}

.sidebar .dropdown-content a {
    min-height: 38px;
    margin: 1px 2px;
    padding: 0 10px 0 25px;
    border-radius: 7px;
    font-size: 12.5px;
}

.sidebar .nested-dropdown-header {
    min-height: 38px;
    margin: 1px 2px;
    padding: 0 10px 0 25px;
    border-radius: 7px;
    font-size: 12.5px;
}

.sidebar .nested-dropdown-content {
    margin: 0 4px 4px 24px;
    border-left: 1px solid #d4e3f1;
    border-radius: 0;
}

.sidebar .nested-dropdown-content a {
    min-height: 38px;
    margin: 1px 3px !important;
    padding: 0 8px 0 16px !important;
    border-radius: 7px !important;
    font-size: 12.5px !important;
}

.sidebar .support-admin-nav-badge,
.sidebar #notification-count {
    color: #fff;
    background: #e5484d;
    box-shadow: 0 0 0 2px #f5f9fd;
}

.sidebar .support-admin-nav-badge {
    margin-left: auto;
}

.sidebar .accounting-invoice-badge {
    margin-left: 7px;
    background: #ff6b6f;
    box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.13);
}

.sidebar .notification-container {
    margin-left: auto;
}

.sidebar #notification-icon {
    color: #d69018;
    font-size: 16px;
}

.sidebar .balance-container {
    min-height: 60px;
    margin: 4px 0 0;
    padding: 7px;
    gap: 9px;
    color: var(--shell-sidebar-text);
    background: #f8fbfd;
    border: 1px solid #d5e1eb;
    border-radius: 10px;
    box-shadow: none;
}

.sidebar .balance-container::before {
    display: none;
}

.sidebar .balance-container:hover,
.sidebar .balance-container:focus-visible {
    background: #fff;
    border-color: #c5daee;
    box-shadow: none;
    transform: none;
}

.sidebar .balance-container img {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 1px solid #dbe6f1;
    border-radius: 8px;
    box-shadow: none;
}

.sidebar .balance-info .organization {
    max-width: 160px;
    overflow: hidden;
    color: #294866;
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar .balance-info .balance-amount,
.sidebar .balance-info .balance-minutes {
    color: var(--shell-sidebar-muted);
    font-size: 11px;
    line-height: 1.3;
}

.sidebar .money-glow {
    color: #73d7a4;
    animation: none;
}

.sidebar .balance-action-arrow {
    color: var(--shell-sidebar-muted);
    font-size: 11px;
}

html.sidebar-theme-dark-preload .sidebar,
body.sidebar-theme-dark .sidebar {
    color: #dbe8f7;
    background:
        radial-gradient(circle at 12% 0, rgba(75, 156, 255, 0.16), transparent 34%),
        linear-gradient(180deg, #10213a, #0b1628);
    border-right-color: rgba(255, 255, 255, 0.08);
    box-shadow: 12px 0 30px rgba(10, 26, 47, 0.12);
}

html.sidebar-theme-dark-preload .sidebar::after,
body.sidebar-theme-dark .sidebar::after {
    background: rgba(255, 255, 255, 0.1);
}

body.sidebar-theme-dark {
    --shell-sidebar-text: #dbe8f7;
    --shell-sidebar-muted: #91a7c1;
}

body.sidebar-theme-dark .sidebar-header {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.sidebar-theme-dark .sidebar-footer {
    background: rgba(6, 15, 29, 0.2);
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.sidebar-theme-dark .sidebar .sidebar-brand {
    color: #fff;
}

body.sidebar-theme-dark .sidebar .sidebar-brand:hover,
body.sidebar-theme-dark .sidebar .sidebar-brand:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

body.sidebar-theme-dark .sidebar .sidebar-brand > i {
    color: #7db7ff;
    background: rgba(75, 156, 255, 0.14);
    border-color: rgba(125, 183, 255, 0.2);
}

body.sidebar-theme-dark .sidebar-header .closebtn:hover,
body.sidebar-theme-dark .sidebar-header .closebtn:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

body.sidebar-theme-dark .sidebar a:hover,
body.sidebar-theme-dark .sidebar a:focus-visible,
body.sidebar-theme-dark .sidebar .sidebar-theme-toggle:hover,
body.sidebar-theme-dark .sidebar .sidebar-theme-toggle:focus-visible,
body.sidebar-theme-dark .sidebar .dropdown-header:hover,
body.sidebar-theme-dark .sidebar .dropdown-header:focus-visible,
body.sidebar-theme-dark .sidebar .nested-dropdown-header:hover,
body.sidebar-theme-dark .sidebar .nested-dropdown-header:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

body.sidebar-theme-dark .sidebar a:hover > i,
body.sidebar-theme-dark .sidebar a:focus-visible > i,
body.sidebar-theme-dark .sidebar .sidebar-theme-toggle:hover > i,
body.sidebar-theme-dark .sidebar .sidebar-theme-toggle:focus-visible > i,
body.sidebar-theme-dark .sidebar .dropdown-header:hover > i:first-child,
body.sidebar-theme-dark .sidebar .dropdown-header:focus-visible > i:first-child,
body.sidebar-theme-dark .sidebar .nested-dropdown-header:hover > i:first-child,
body.sidebar-theme-dark .sidebar .nested-dropdown-header:focus-visible > i:first-child {
    color: #b8d7ff;
}

body.sidebar-theme-dark .sidebar a.active-item {
    color: #fff;
    background: rgba(75, 156, 255, 0.16);
    box-shadow: inset 3px 0 0 #4b9cff;
}

body.sidebar-theme-dark .sidebar .dropdown-header.active,
body.sidebar-theme-dark .sidebar .nested-dropdown-header.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.065);
}

body.sidebar-theme-dark .sidebar a.active-item > i,
body.sidebar-theme-dark .sidebar .dropdown-header.active > i:first-child,
body.sidebar-theme-dark .sidebar .nested-dropdown-header.active > i:first-child {
    color: #7db7ff;
}

body.sidebar-theme-dark .sidebar .nested-dropdown-content {
    border-left-color: rgba(125, 183, 255, 0.18);
}

body.sidebar-theme-dark .sidebar .support-admin-nav-badge,
body.sidebar-theme-dark .sidebar #notification-count {
    box-shadow: 0 0 0 2px #10213a;
}

body.sidebar-theme-dark .sidebar #notification-icon {
    color: #ffce66;
}

body.sidebar-theme-dark .sidebar .balance-container {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

body.sidebar-theme-dark .sidebar .balance-container:hover,
body.sidebar-theme-dark .sidebar .balance-container:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(125, 183, 255, 0.28);
}

body.sidebar-theme-dark .sidebar .balance-container img {
    border-color: rgba(255, 255, 255, 0.18);
}

body.sidebar-theme-dark .sidebar .balance-info .organization {
    color: #fff;
}

body.sidebar-theme-dark .sidebar .guide-attention {
    color: #fff2a8;
    background: rgba(255, 212, 59, 0.16);
    box-shadow: inset 3px 0 0 #ffd43b, 0 0 0 1px rgba(255, 212, 59, 0.28);
    animation: sidebarGuidePulseDark 2.2s ease-in-out infinite;
}

body.sidebar-theme-dark .sidebar .guide-attention i {
    color: #ffe066;
}

body.sidebar-theme-dark .sidebar .g-character-target-highlight {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: inset 0 0 0 2px #7ee787, inset 0 0 0 999px rgba(126, 231, 135, 0.08);
}

body.sidebar-theme-dark .sidebar .g-character-target-highlight i,
body.sidebar-theme-dark .sidebar .g-character-target-highlight span,
body.sidebar-theme-dark .sidebar .g-character-target-highlight .fas {
    color: #ffec99 !important;
}

@keyframes sidebarGuidePulseDark {
    0%, 100% {
        background: rgba(255, 212, 59, 0.14);
        box-shadow: inset 3px 0 0 #ffd43b, 0 0 0 1px rgba(255, 212, 59, 0.24);
    }
    50% {
        background: rgba(255, 212, 59, 0.26);
        box-shadow: inset 3px 0 0 #ffd43b, 0 0 18px rgba(255, 212, 59, 0.36);
    }
}

#main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    box-sizing: border-box;
    margin-left: var(--current-sidebar-width);
    padding: 20px;
    transition: margin-left var(--shell-transition);
}

#main > main.container {
    flex: 1 0 auto;
    min-width: 0;
    min-height: calc(100dvh - 96px);
}

.site-header {
    position: sticky;
    z-index: 900;
    top: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--shell-header-height);
    margin: -20px -20px 18px;
    padding: 0 20px;
    background: var(--shell-surface);
    border-bottom: 1px solid var(--shell-border);
    box-shadow: 0 8px 24px rgba(27, 52, 85, 0.05);
    backdrop-filter: blur(14px);
}

.site-header__brand,
.site-header__context {
    margin-right: auto;
}

.site-header__context {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.site-header__context-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    color: #2878d0;
    background: #edf6ff;
    border: 1px solid #d7eaff;
    border-radius: 11px;
    font-size: 15px;
}

.site-header__context-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.site-header__breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--shell-muted);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
}

.site-header__breadcrumbs i {
    color: #a4b3c4;
    font-size: 7px;
}

.site-header__page-title {
    max-width: min(360px, 34vw);
    overflow: hidden;
    color: var(--shell-text);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-header__brand-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #2878d0;
    background: #edf6ff;
    border: 1px solid #d7eaff;
    border-radius: 10px;
    font-size: 18px;
}

.site-header__brand-icon--collect {
    color: #16835a;
    background: #edf9f4;
    border-color: #d6efe4;
}

.app-shell-toggle,
.openbtn {
    position: static;
    display: inline-grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    color: #48637f;
    background: #f5f8fc;
    border: 1px solid #dce6f1;
    border-radius: 10px;
    box-shadow: none;
    font-size: 15px;
    cursor: pointer;
    transition: color var(--shell-transition), background var(--shell-transition), border-color var(--shell-transition);
}

.app-shell-toggle:hover,
.app-shell-toggle:focus-visible,
.openbtn:hover,
.openbtn:focus-visible {
    color: #155da8;
    background: #edf6ff;
    border-color: #bdd9f7;
    box-shadow: none;
    outline: none;
    transform: none;
}

.site-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    flex-shrink: 0;
}

body.guide-hints-step-active .site-header {
    z-index: 1203;
}

.site-header .robot-activity-summary,
.site-header .site-hints-toggle {
    height: 40px;
    background: #f8fafc;
    border-color: var(--shell-border);
    border-radius: 10px;
}

.site-header .robot-activity-summary {
    min-width: 238px;
    justify-content: center;
    padding-inline: 12px;
}

.site-header .robot-activity-summary__updated {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding-left: 2px;
}

.site-header .robot-activity-summary__updated i {
    color: #8ca0b6;
    font-size: 10px;
}

.robot-activity-summary__label--compact {
    display: none;
}

.sidebar-flyout {
    position: fixed;
    z-index: 1100;
    width: 248px;
    max-height: min(520px, calc(100vh - 16px));
    padding: 8px;
    overflow-y: auto;
    color: var(--shell-sidebar-text);
    background: #f8fbfd;
    border: 1px solid #d6e4f1;
    border-radius: 13px;
    box-shadow: 0 18px 42px rgba(42, 77, 115, 0.18);
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity 140ms ease, transform 140ms ease;
}

.sidebar-flyout[hidden] {
    display: none;
}

.sidebar-flyout.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-flyout__title {
    padding: 8px 10px 9px;
    color: #6684a2;
    border-bottom: 1px solid #e2ebf3;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-flyout__links {
    display: grid;
    gap: 2px;
    padding-top: 5px;
}

.sidebar-flyout__link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 10px;
    color: var(--shell-sidebar-text);
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.25;
    text-decoration: none;
}

.sidebar-flyout__link i {
    display: inline-grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    color: var(--shell-sidebar-muted);
    background: transparent;
    border-radius: 0;
}

.sidebar-flyout__link:hover,
.sidebar-flyout__link:focus-visible,
.sidebar-flyout__link.is-active {
    color: #185f9f;
    background: #eaf4fe;
    border-color: #d2e6f8;
    outline: none;
}

.sidebar-flyout__link.is-active i {
    color: #287dcc;
    background: transparent;
}

.sidebar-flyout--tooltip {
    width: auto;
    max-width: 240px;
    padding: 9px 12px;
    pointer-events: none;
}

.sidebar-flyout__tooltip {
    display: block;
    color: #294866;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

body.sidebar-theme-dark .sidebar-flyout {
    color: #dbe8f7;
    background: rgba(16, 33, 58, 0.98);
    border-color: rgba(125, 183, 255, 0.18);
    box-shadow: 0 18px 42px rgba(7, 17, 31, 0.3);
}

body.sidebar-theme-dark .sidebar-flyout__title {
    color: #8fb0d5;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.sidebar-theme-dark .sidebar-flyout__link {
    color: #dbe8f7;
}

body.sidebar-theme-dark .sidebar-flyout__link:hover,
body.sidebar-theme-dark .sidebar-flyout__link:focus-visible,
body.sidebar-theme-dark .sidebar-flyout__link.is-active {
    color: #fff;
    background: rgba(75, 156, 255, 0.16);
    border-color: rgba(75, 156, 255, 0.18);
}

body.sidebar-theme-dark .sidebar-flyout__link.is-active i {
    color: #7db7ff;
}

body.sidebar-theme-dark .sidebar-flyout__tooltip {
    color: #fff;
}

.sidebar-backdrop {
    position: fixed;
    z-index: 990;
    inset: 0;
    display: block;
    padding: 0;
    background: rgba(7, 17, 31, 0.52);
    border: 0;
    opacity: 0;
    visibility: hidden;
    cursor: default;
    transition: opacity var(--shell-transition), visibility var(--shell-transition);
}

body.sidebar-rail {
    --current-sidebar-width: var(--sidebar-rail-width);
}

body.sidebar-rail .sidebar {
    width: var(--sidebar-rail-width);
}

body.sidebar-rail #main.main-shifted {
    margin-left: var(--sidebar-rail-width) !important;
}

body.sidebar-rail .sidebar-header {
    justify-content: center;
    padding-inline: 10px;
}

body.sidebar-rail .sidebar .sidebar-brand {
    flex: 0 0 52px;
    justify-content: center;
    width: 52px;
    padding: 0;
}

body.sidebar-rail .sidebar-brand__name,
body.sidebar-rail .sidebar-collapse-button,
body.sidebar-rail .sidebar .dropdown-header .fa-chevron-down,
body.sidebar-rail .sidebar .nested-dropdown-header .fa-chevron-right,
body.sidebar-rail .sidebar .dropdown-content,
body.sidebar-rail .sidebar .nested-dropdown-content,
body.sidebar-rail .sidebar .balance-info,
body.sidebar-rail .sidebar .balance-action-arrow,
body.sidebar-rail .sidebar .notification-container {
    display: none !important;
}

body.sidebar-rail .sidebar a:not(.sidebar-brand),
body.sidebar-rail .sidebar .sidebar-theme-toggle,
body.sidebar-rail .sidebar .dropdown-header {
    justify-content: center;
    width: 52px;
    min-height: 44px;
    margin: 2px auto;
    padding: 0;
    font-size: 0;
}

body.sidebar-rail .sidebar a:not(.sidebar-brand) > i,
body.sidebar-rail .sidebar .sidebar-theme-toggle > i,
body.sidebar-rail .sidebar .dropdown-header > i:first-child {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    margin: 0;
    font-size: 16px;
}

body.sidebar-rail .sidebar-footer {
    padding: 8px 10px;
}

body.sidebar-rail .sidebar .balance-container {
    justify-content: center;
    min-height: 52px;
    padding: 6px;
}

body.sidebar-rail .sidebar .balance-container img {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
}

body.sidebar-rail .sidebar .support-admin-nav-badge,
body.sidebar-rail .sidebar .accounting-invoice-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 8px;
    width: 8px;
    height: 8px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 50%;
    color: transparent;
    font-size: 0;
    line-height: 0;
}

body.auth-page {
    --current-sidebar-width: 0px;
}

body.auth-page #main {
    margin-left: 0;
}

body.auth-page .site-header {
    justify-content: center;
}

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

    .sidebar {
        width: min(280px, calc(100vw - 44px));
        transform: translateX(-104%);
        box-shadow: 22px 0 50px rgba(7, 17, 31, 0.24);
    }

    #main,
    #main.main-shifted,
    body.sidebar-rail #main.main-shifted {
        margin-left: 0 !important;
    }

    body.sidebar-rail .sidebar {
        width: min(280px, calc(100vw - 44px));
    }

    body.sidebar-rail .sidebar-header {
        justify-content: initial;
        padding-inline: 12px;
    }

    body.sidebar-rail .sidebar .sidebar-brand {
        flex: 1 1 auto;
        justify-content: flex-start;
        width: auto;
        padding: 0 10px;
    }

    body.sidebar-rail .sidebar-brand__name,
    body.sidebar-rail .sidebar .dropdown-header .fa-chevron-down,
    body.sidebar-rail .sidebar .nested-dropdown-header .fa-chevron-right {
        display: inline-block !important;
    }

    body.sidebar-rail .sidebar-brand__name {
        display: inline !important;
    }

    body.sidebar-rail .sidebar-collapse-button {
        display: inline-grid !important;
    }

    body.sidebar-rail .sidebar .balance-info {
        display: flex !important;
    }

    body.sidebar-rail .sidebar .balance-action-arrow {
        display: inline-block !important;
    }

    body.sidebar-rail .sidebar .notification-container {
        display: block !important;
    }

    body.sidebar-rail .sidebar .dropdown-content,
    body.sidebar-rail .sidebar .nested-dropdown-content {
        display: block !important;
    }

    body.sidebar-rail .sidebar a:not(.sidebar-brand),
    body.sidebar-rail .sidebar .sidebar-theme-toggle,
    body.sidebar-rail .sidebar .dropdown-header {
        justify-content: flex-start;
        width: auto;
        margin: 2px 0;
        padding: 0 12px;
        font-size: 14px;
    }

    body.sidebar-rail .sidebar a:not(.sidebar-brand) > i,
    body.sidebar-rail .sidebar .sidebar-theme-toggle > i,
    body.sidebar-rail .sidebar .dropdown-header > i:first-child {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        margin: 0 10px 0 -8px;
    }

    body.sidebar-rail .sidebar-footer {
        padding: 8px;
    }

    body.sidebar-rail .sidebar .balance-container {
        justify-content: flex-start;
        min-height: 62px;
        padding: 9px;
    }

    body.sidebar-rail .sidebar .support-admin-nav-badge,
    body.sidebar-rail .sidebar .accounting-invoice-badge {
        position: static;
        width: auto;
        height: auto;
        min-width: 8px;
        margin-left: auto;
        color: #fff;
        font-size: 0.72rem;
        line-height: 20px;
    }

    body.sidebar-mobile-open {
        overflow: hidden;
    }

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

    body.sidebar-mobile-open .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .site-header {
        min-height: 58px;
    }

    .site-header .robot-activity-summary {
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .site-header__breadcrumbs {
        display: none;
    }

    .site-header__page-title {
        max-width: 160px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    #main {
        padding: 12px;
    }

    #main > main.container {
        min-height: calc(100dvh - 84px);
    }

    .site-header {
        flex-wrap: nowrap;
        min-height: 56px;
        margin: -12px -12px 14px;
        padding: 0 12px;
        gap: 8px;
    }

    .site-header__brand-name,
    .site-header__breadcrumbs {
        display: none;
    }

    .site-header__brand {
        gap: 0;
    }

    .site-header__context {
        gap: 6px;
    }

    .site-header__context-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        border-radius: 9px;
        font-size: 14px;
    }

    .site-header__page-title {
        max-width: 88px;
        font-size: 12px;
    }

    .site-header__actions {
        gap: 6px;
    }

    .site-header .robot-activity-summary {
        padding-inline: 8px;
    }

    .site-header .robot-activity-summary__updated,
    .site-header .robot-activity-summary__separator {
        display: none;
    }

    .robot-activity-summary__label--wide {
        display: none;
    }

    .robot-activity-summary__label--compact {
        display: inline;
    }

    .site-header .site-hints-toggle {
        padding-inline: 8px;
    }

    .site-header .site-hints-toggle__caption {
        display: none;
    }

    .site-header .site-hints-toggle__label {
        gap: 6px;
    }

    .site-header .site-hints-toggle__slider {
        width: 36px;
        height: 20px;
    }

    .site-header .site-hints-toggle__slider::after {
        top: 3px;
        left: 3px;
        width: 14px;
        height: 14px;
    }

    .site-header .site-hints-toggle__label input:checked + .site-hints-toggle__slider::after {
        transform: translateX(16px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar,
    #main,
    .sidebar-backdrop,
    .sidebar a,
    .sidebar a > i,
    .sidebar .sidebar-theme-toggle,
    .sidebar .sidebar-theme-toggle > i,
    .sidebar .dropdown-header,
    .sidebar .dropdown-header > i:first-child,
    .sidebar .nested-dropdown-header,
    .sidebar .nested-dropdown-header > i:first-child {
        transition: none;
    }

    body.sidebar-theme-dark .sidebar .guide-attention {
        animation: none;
    }
}
