:root {
    --ui-user: #0f857c;
    --ui-user-dark: #096b65;
    --ui-user-soft: #e9f7f5;
    --ui-admin: #5548d9;
    --ui-admin-dark: #4438bc;
    --ui-admin-soft: #efedff;
    --ui-primary: #3578e5;
    --ui-primary-dark: #2864c7;
    --ui-primary-soft: #edf4ff;
    --ui-success: #2a9d75;
    --ui-warning: #e99a28;
    --ui-danger: #e3505f;
    --ui-bg: #f5f7fb;
    --ui-surface: #fff;
    --ui-surface-soft: #f8fafc;
    --ui-border: #dce4ed;
    --ui-border-soft: #e9eef4;
    --ui-text: #1f2d3d;
    --ui-text-muted: #627287;
    --ui-text-faint: #8a98a9;
    --ui-radius-sm: 9px;
    --ui-radius: 13px;
    --ui-radius-lg: 17px;
    --ui-shadow-sm: 0 4px 14px rgba(38, 56, 80, .055);
    --ui-shadow: 0 14px 38px rgba(38, 56, 80, .11);
    --ui-header-height: 64px;
    --ui-sidebar-width: 248px;
    --ui-gutter: 20px;
    --ui-transition: 180ms ease;
}

.app-shell,
.app-shell button,
.app-shell input,
.app-shell select,
.app-shell textarea,
.app-shell-auth {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.app-shell {
    min-height: 100vh;
    color: var(--ui-text);
    background: var(--ui-bg);
    -webkit-font-smoothing: antialiased;
}

.app-shell-user {
    --ui-accent: var(--ui-user);
    --ui-accent-dark: var(--ui-user-dark);
    --ui-accent-soft: var(--ui-user-soft);
}

.app-shell-admin {
    --ui-accent: var(--ui-admin);
    --ui-accent-dark: var(--ui-admin-dark);
    --ui-accent-soft: var(--ui-admin-soft);
}

.app-shell *,
.app-shell *::before,
.app-shell *::after {
    box-sizing: border-box;
}

.app-shell a {
    color: var(--ui-primary);
    transition: color var(--ui-transition), background-color var(--ui-transition),
        border-color var(--ui-transition), box-shadow var(--ui-transition);
}

.app-shell img {
    max-width: 100%;
}

.app-shell p {
    color: var(--ui-text-muted);
    line-height: 1.65;
}

.app-shell code {
    max-width: 100%;
    padding: 2px 7px;
    color: #45617d;
    background: #eef3f8;
    border-radius: 6px;
    overflow-wrap: anywhere;
}

.app-shell pre {
    max-width: 100%;
    padding: 16px;
    color: #e4edf6;
    background: #1d2937;
    border: 0;
    border-radius: var(--ui-radius);
    overflow: auto;
    white-space: pre-wrap;
}

.app-shell .container {
    width: calc(100% - 40px);
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}

/* Application frame */
.app-shell-user,
.app-shell-admin {
    padding-top: var(--ui-header-height);
}

.app-shell .app-header {
    position: fixed;
    z-index: 31;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--ui-header-height);
    padding: 0 22px;
    color: var(--ui-text);
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--ui-border);
    box-shadow: 0 2px 12px rgba(32, 47, 68, .045);
    backdrop-filter: blur(14px);
}

.app-header-left,
.app-header-right,
.app-brand {
    display: flex;
    align-items: center;
}

.app-header-left {
    min-width: 0;
    gap: 10px;
}

.app-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #506276;
    border-radius: 10px;
}

.app-menu-trigger:hover,
.app-menu-trigger:focus {
    color: var(--ui-accent-dark);
    background: var(--ui-accent-soft);
    text-decoration: none;
}

.app-brand {
    min-width: 0;
    color: var(--ui-text) !important;
    font-size: 16px;
    font-weight: 680;
    gap: 10px;
}

.app-brand:hover,
.app-brand:focus {
    color: var(--ui-accent-dark) !important;
    text-decoration: none;
}

.app-brand-mark,
.app-drawer-mark,
.static-brand-mark,
.static-hero-mark {
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

.app-brand-mark {
    width: 38px;
    height: 38px;
}

.app-drawer-mark {
    width: 40px;
    height: 40px;
}

.app-header .avatar {
    width: 38px;
    height: 38px;
    border: 2px solid #fff;
    box-shadow: 0 3px 12px rgba(38, 56, 80, .14);
}

.app-header .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    cursor: pointer;
}

.app-header .dropdown-menu {
    margin-top: 8px;
}

/* Navigation drawer */
.app-shell .app-drawer {
    width: var(--ui-sidebar-width);
    color: var(--ui-text);
    background: #fff;
    border-right: 1px solid var(--ui-border);
    box-shadow: 12px 0 36px rgba(38, 56, 80, .08);
}

.app-shell .app-drawer .menu-scroll {
    padding: 14px 12px 28px;
}

.app-shell .app-drawer .menu-content {
    padding: 0;
}

.app-shell .app-drawer .menu-logo {
    display: flex;
    align-items: center;
    min-height: 54px;
    margin: 0 0 14px;
    padding: 7px 10px;
    color: var(--ui-text);
    font-size: 17px;
    font-weight: 680;
    gap: 10px;
    border-radius: 12px;
}

.app-shell .app-drawer .menu-logo:hover,
.app-shell .app-drawer .menu-logo:focus {
    color: var(--ui-accent-dark);
    background: var(--ui-accent-soft);
    text-decoration: none;
}

.app-nav-section + .app-nav-section {
    margin-top: 17px;
}

.app-nav-label {
    display: block;
    margin: 0 11px 6px;
    color: var(--ui-text-faint);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .11em;
}

.app-shell .app-drawer .nav {
    margin: 0;
}

.app-shell .app-drawer .nav > li > a {
    display: flex;
    align-items: center;
    min-height: 42px;
    margin: 2px 0;
    padding: 8px 11px;
    color: #53667a;
    font-size: 14px;
    font-weight: 520;
    gap: 10px;
    border-radius: 10px;
}

.app-shell .app-drawer .nav > li > a:hover,
.app-shell .app-drawer .nav > li > a:focus,
.app-shell .app-drawer .nav > li.active > a {
    color: var(--ui-accent-dark);
    background: var(--ui-accent-soft);
    text-decoration: none;
}

.app-shell .app-drawer .nav .icon {
    width: 22px;
    margin: 0;
    color: #75889b;
    font-size: 20px;
    text-align: center;
}

.app-shell .app-drawer .nav a:hover .icon,
.app-shell .app-drawer .nav li.active .icon {
    color: var(--ui-accent);
}

/* Page frame */
.app-shell-user main.content,
.app-shell-admin main.content {
    min-height: calc(100vh - var(--ui-header-height) - 57px);
    padding-bottom: 32px;
}

.app-shell .ui-content-header {
    min-height: 82px;
    margin: 0 0 24px;
    padding: 24px 0 22px;
    background-color: var(--ui-user);
    background-image: linear-gradient(105deg, rgba(7, 95, 88, .87), rgba(15, 133, 124, .7)),
        url(/theme/material/css/images/bg/teal.jpg);
    background-position: center 42%;
    background-repeat: repeat-x;
    background-size: auto 180px;
    border-bottom: 1px solid rgba(3, 75, 70, .2);
}

.app-shell-admin .ui-content-header {
    background-color: var(--ui-admin);
    background-image: linear-gradient(105deg, rgba(54, 43, 153, .9), rgba(85, 72, 217, .72)),
        url(/theme/material/css/images/bg/purple.jpg);
    border-bottom-color: rgba(47, 36, 139, .2);
}

.app-shell-nodeinfo .ui-content-header {
    background-color: #326da8;
    background-image: linear-gradient(105deg, rgba(37, 88, 138, .88), rgba(53, 120, 229, .65)),
        url(/theme/material/css/images/bg/brand_backup.jpg);
}

.app-shell .content-heading {
    margin: 0;
    color: #fff;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.app-shell .content-inner {
    padding-top: 0;
}

.app-shell .row,
.app-shell .ui-card-wrap {
    margin-right: -8px;
    margin-left: -8px;
}

.app-shell [class^="col-"],
.app-shell [class*=" col-"] {
    padding-right: 8px;
    padding-left: 8px;
}

.ui-page-intro {
    margin: 0 0 18px;
    padding: 3px 2px;
}

.ui-page-intro p {
    margin: 0;
    font-size: 15px;
}

.ui-page-intro-note {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #eef5ff;
    border: 1px solid #d9e8fb;
    border-radius: var(--ui-radius);
    gap: 12px;
}

.ui-page-intro-note > .icon {
    color: var(--ui-primary);
    font-size: 24px;
}

.ui-page-intro-note strong {
    color: #314b67;
}

.ui-page-intro-note p {
    margin: 2px 0 0;
    font-size: 13px;
}

/* Cards */
.app-shell .card {
    min-width: 0;
    min-height: 0;
    height: auto;
    margin-bottom: 16px;
    color: var(--ui-text);
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    box-shadow: var(--ui-shadow-sm);
    overflow: hidden;
    transition: border-color var(--ui-transition), box-shadow var(--ui-transition);
}

.app-shell .card:hover {
    border-color: #ced9e4;
    box-shadow: 0 8px 24px rgba(38, 56, 80, .08);
}

.app-shell .card-main {
    min-width: 0;
}

.app-shell .card-inner {
    min-width: 0;
    padding: 20px 22px;
}

.app-shell .card-heading {
    display: flex;
    align-items: center;
    margin: 0 0 14px;
    color: #283b50;
    font-size: 17px;
    font-weight: 680;
    line-height: 1.4;
    gap: 7px;
}

.app-shell .card-heading .icon,
.app-shell .card-heading .material-icons {
    position: static;
    flex: 0 0 auto;
    margin: 0;
    color: var(--ui-accent);
}

.app-shell .card-tag {
    color: #587086;
    background: #eff4f8;
    border: 0;
    border-radius: 6px;
}

.app-shell .tile {
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    box-shadow: none;
    overflow: hidden;
}

.app-shell .tile-inner {
    padding: 13px 15px;
}

.app-shell .tile:hover {
    border-color: #cbd7e2;
    box-shadow: var(--ui-shadow-sm);
}

/* Forms */
.app-shell .form-group,
.app-shell .form-group-label {
    margin-bottom: 18px;
}

.app-shell .floating-label,
.app-shell .form-group-label > label:not(.checkbox) {
    position: static;
    display: block;
    margin: 0 0 7px;
    color: #3e5369;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    transform: none;
}

.app-shell .form-control,
.app-shell input.form-control,
.app-shell textarea.form-control,
.app-shell button.form-control {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 9px 13px;
    color: var(--ui-text);
    font-size: 15px;
    line-height: 1.45;
    background: var(--ui-surface-soft);
    border: 1px solid #cfd9e4;
    border-radius: 10px;
    box-shadow: none;
    outline: none;
    transition: background-color var(--ui-transition), border-color var(--ui-transition),
        box-shadow var(--ui-transition);
}

.app-shell textarea.form-control {
    min-height: 108px;
    resize: vertical;
}

.app-shell .form-control:hover {
    border-color: #b9c7d5;
}

.app-shell .form-control:focus,
.app-shell .form-control.focus {
    background: #fff;
    border-color: var(--ui-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-accent) 14%, transparent);
}

@supports not (color: color-mix(in srgb, black, white)) {
    .app-shell .form-control:focus,
    .app-shell .form-control.focus {
        box-shadow: 0 0 0 3px rgba(53, 120, 229, .13);
    }
}

.app-shell .form-control:disabled,
.app-shell .form-control[readonly] {
    color: #8493a3;
    background: #edf2f6;
    cursor: not-allowed;
}

.app-shell .form-control:-webkit-autofill,
.app-shell .form-control:-webkit-autofill:hover,
.app-shell .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ui-text);
    -webkit-box-shadow: 0 0 0 1000px var(--ui-surface-soft) inset;
    transition: background-color 9999s ease-out 0s;
}

.app-shell .control-highlight::after,
.app-shell .control-highlight-custom::after {
    display: none;
}

.app-shell .help-block,
.app-shell .form-help {
    margin-top: 7px;
    color: var(--ui-text-muted);
    font-size: 12px;
}

/* Buttons */
.app-shell .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 16px;
    color: #425a72;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
    background: #f5f8fb;
    border: 1px solid var(--ui-border);
    border-radius: 9px;
    box-shadow: none;
    text-transform: none;
    gap: 5px;
    transition: transform var(--ui-transition), background-color var(--ui-transition),
        border-color var(--ui-transition), box-shadow var(--ui-transition), color var(--ui-transition);
}

.app-shell .btn:hover,
.app-shell .btn:focus {
    color: var(--ui-accent-dark);
    background: var(--ui-accent-soft);
    border-color: color-mix(in srgb, var(--ui-accent) 30%, var(--ui-border));
    transform: translateY(-1px);
    text-decoration: none;
}

.app-shell .btn-brand,
.app-shell .btn-brand-accent,
.app-shell .btn-primary {
    color: #fff;
    background: var(--ui-accent);
    border-color: var(--ui-accent);
    box-shadow: 0 7px 17px rgba(38, 56, 80, .14);
}

.app-shell .btn-brand:hover,
.app-shell .btn-brand:focus,
.app-shell .btn-brand-accent:hover,
.app-shell .btn-brand-accent:focus,
.app-shell .btn-primary:hover,
.app-shell .btn-primary:focus {
    color: #fff;
    background: var(--ui-accent-dark);
    border-color: var(--ui-accent-dark);
}

.app-shell .btn-flat {
    color: #425a72;
    background: #f5f8fb;
    border-color: var(--ui-border);
}

.app-shell .btn:disabled,
.app-shell .btn.disabled {
    opacity: .54;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.app-shell .btn-dl {
    position: static;
    display: inline-flex;
    align-items: center;
    min-height: 37px;
    margin: 4px 7px 4px 0;
    padding: 7px 11px;
    color: #435d76;
    font-size: 13px;
    background: #f6f8fb;
    border: 1px solid var(--ui-border);
    border-radius: 9px;
    box-shadow: none;
    gap: 6px;
    vertical-align: middle;
}

.app-shell .btn-dl:hover,
.app-shell .btn-dl:focus {
    color: var(--ui-accent-dark);
    background: var(--ui-accent-soft);
    border-color: #cbd9e5;
    text-decoration: none;
}

.app-shell .btn-dl i,
.app-shell .btn-dl i.icon-sm,
.app-shell .btn-dl .material-icons {
    position: static;
    flex: 0 0 auto;
    margin: 0;
    font-size: 18px;
}

/* Tables */
.app-shell .table-responsive {
    width: 100%;
    background: #fff;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.app-shell table,
.app-shell .table {
    width: 100%;
    margin: 0;
    color: var(--ui-text);
    background: transparent;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: none;
}

.app-shell .table > thead > tr > th,
.app-shell table > thead > tr > th,
.app-shell table > tbody > tr:first-child > th {
    padding: 12px 14px;
    color: #5b7086;
    font-size: 12px;
    font-weight: 720;
    letter-spacing: .02em;
    background: #f3f6fa;
    border-bottom: 1px solid var(--ui-border);
    white-space: nowrap;
}

.app-shell .table > tbody > tr > td,
.app-shell table > tbody > tr > td {
    padding: 12px 14px;
    border-top: 1px solid var(--ui-border-soft);
    vertical-align: middle;
}

.app-shell .table > tbody > tr:first-child > td,
.app-shell table > tbody > tr:first-child > td {
    border-top: 0;
}

.app-shell .table > tbody > tr:hover,
.app-shell table > tbody > tr:hover {
    background: #f8fafc;
}

.app-shell .dataTables_wrapper .dataTables_filter input,
.app-shell .dataTables_wrapper .dataTables_length select {
    min-height: 38px;
    padding: 7px 10px;
    background: #fff;
    border: 1px solid #cfd9e4;
    border-radius: 9px;
}

/* Modals and menus */
.app-shell .modal {
    padding: 16px;
}

.app-shell .modal-dialog {
    width: min(540px, calc(100vw - 32px));
    max-width: 100%;
    margin: 48px auto;
}

.app-shell .modal-xs {
    width: min(420px, calc(100vw - 32px));
}

.app-shell .modal-content {
    color: var(--ui-text);
    background: #fff;
    border: 1px solid var(--ui-border);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(24, 38, 58, .23);
    overflow: hidden;
}

.app-shell .modal-heading {
    position: relative;
    padding: 18px 20px;
    background: #f7f9fc;
    border-bottom: 1px solid var(--ui-border);
}

.app-shell .modal-title {
    margin: 0;
    color: var(--ui-text);
    font-size: 18px;
    font-weight: 680;
}

.app-shell .modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #7d8c9d;
    font-size: 23px;
    border-radius: 8px;
    cursor: pointer;
}

.app-shell .modal-close:hover {
    color: var(--ui-text);
    background: #e9eef4;
    text-decoration: none;
}

.app-shell .modal-inner {
    padding: 20px;
}

.app-shell .modal-footer {
    padding: 13px 20px 16px;
    background: #fff;
    border-top: 1px solid var(--ui-border);
}

.app-shell .modal-footer p {
    margin: 0;
}

.app-shell .dropdown-menu {
    padding: 6px;
    background: #fff;
    border: 1px solid var(--ui-border);
    border-radius: 11px;
    box-shadow: 0 14px 38px rgba(38, 56, 80, .16);
}

.app-shell .dropdown-menu > li > a {
    padding: 9px 10px;
    color: #4d6278;
    border-radius: 7px;
}

.app-shell .dropdown-menu > li > a:hover,
.app-shell .dropdown-menu > li > a:focus {
    color: var(--ui-accent-dark);
    background: var(--ui-accent-soft);
}

.app-shell .tab-nav {
    display: flex;
    padding: 4px;
    background: #edf2f7;
    border-radius: 11px;
    gap: 4px;
}

.app-shell .tab-nav > ul {
    display: flex;
    width: 100%;
}

.app-shell .tab-nav li,
.app-shell .tab-nav > li {
    flex: 1 1 auto;
}

.app-shell .tab-nav a,
.app-shell .tab-nav > li > a {
    display: block;
    padding: 8px 11px;
    color: #627589;
    text-align: center;
    border-radius: 8px;
}

.app-shell .tab-nav li.active > a,
.app-shell .tab-nav a:hover {
    color: var(--ui-accent-dark);
    background: #fff;
    box-shadow: 0 3px 10px rgba(38, 56, 80, .07);
    text-decoration: none;
}

.app-shell .pagination > li > a,
.app-shell .pagination > li > span {
    min-width: 34px;
    margin: 2px;
    padding: 7px 9px;
    color: #587086;
    background: #fff;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
}

.app-shell .pagination > .active > a,
.app-shell .pagination > .active > span {
    color: #fff;
    background: var(--ui-accent);
    border-color: var(--ui-accent);
}

/* Status */
.app-shell .progress {
    height: 8px;
    background: #e7edf3;
    border-radius: 999px;
    box-shadow: none;
    overflow: hidden;
}

.app-shell .progress-bar {
    background: var(--ui-accent);
    border-radius: 999px;
    box-shadow: none;
}

.app-shell .label,
.app-shell .badge {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 650;
    border-radius: 999px;
}

.app-shell .alert,
.app-shell .snackbar {
    color: #476078;
    background: #f1f7fc;
    border: 1px solid #d6e8f7;
    border-radius: 11px;
    box-shadow: var(--ui-shadow-sm);
}

/* Dashboard charts */
.ui-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ui-chart-grid .card {
    margin: 0;
}

.ui-chart-card .card-inner {
    padding: 22px 24px;
}

.ui-chart-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    margin: 0 0 18px;
    gap: 6px 10px;
}

.ui-chart-heading h2 {
    margin: 0;
    color: #24364b;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.ui-chart-heading span {
    color: var(--ui-text-muted);
    font-size: 13px;
}

.ui-chart [data-chart-item],
.ui-chart [data-chart-point] {
    display: none;
}

.ui-ring-layout {
    display: grid;
    grid-template-columns: minmax(138px, 44%) minmax(0, 1fr);
    align-items: center;
    min-height: 210px;
    gap: 22px;
}

.ui-ring-visual {
    position: relative;
    width: min(100%, 210px);
    margin: 0 auto;
    aspect-ratio: 1;
}

.ui-ring-visual svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: rotate(-90deg);
}

.ui-ring-track,
.ui-ring-segment {
    fill: none;
    stroke-width: 16;
}

.ui-ring-track {
    stroke: #e9eef4;
}

.ui-ring-segment {
    stroke-linecap: butt;
    transition: opacity var(--ui-transition);
}

.ui-ring-center {
    position: absolute;
    inset: 24%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-width: 0;
    text-align: center;
}

.ui-ring-center strong {
    display: block;
    max-width: 100%;
    color: #17253a;
    font-size: clamp(17px, 2.1vw, 27px);
    font-weight: 760;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.ui-ring-center span {
    display: block;
    margin-top: 5px;
    color: #52667b;
    font-size: 12px;
    line-height: 1.3;
}

.ui-chart-legend {
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ui-chart-legend-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 36px;
    padding: 6px 0;
    gap: 10px;
    border-bottom: 1px solid var(--ui-border-soft);
}

.ui-chart-legend-item:last-child {
    border-bottom: 0;
}

.ui-chart-legend-key {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

.ui-chart-legend-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
}

.ui-chart-legend-label {
    min-width: 0;
    color: #40566c;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.ui-chart-legend-value {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    min-width: 0;
    color: #25384c;
    font-size: 12px;
    gap: 5px;
    white-space: nowrap;
}

.ui-chart-legend-value strong {
    font-size: 13px;
    font-weight: 680;
}

.ui-chart-legend-value small {
    color: var(--ui-text-faint);
    font-size: 11px;
}

.ui-line-card .card-inner {
    padding: 22px 24px 18px;
}

.ui-line-wrap {
    position: relative;
    width: 100%;
}

.ui-line-svg {
    display: block;
    width: 100%;
    min-height: 230px;
    aspect-ratio: 18 / 7;
    overflow: visible;
}

.ui-line-grid {
    stroke: #e6ecf2;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.ui-line-axis-label {
    fill: #7a8a9b;
    font-size: 11px;
}

.ui-line-area {
    fill: rgba(53, 120, 229, .1);
}

.ui-line-stroke {
    fill: none;
    stroke: var(--ui-accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.ui-line-marker {
    fill: #fff;
    stroke: var(--ui-accent);
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.ui-line-hit {
    fill: transparent;
    cursor: crosshair;
}

.ui-line-tooltip {
    position: absolute;
    z-index: 2;
    max-width: min(300px, calc(100% - 16px));
    padding: 7px 10px;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    background: rgba(24, 38, 58, .92);
    border-radius: 7px;
    pointer-events: none;
}

.ui-chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    color: var(--ui-text-faint);
    background: var(--ui-surface-soft);
    border: 1px dashed var(--ui-border);
    border-radius: var(--ui-radius);
}

.ui-node-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ui-node-chart {
    min-width: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
}

.ui-node-chart-wide {
    grid-column: 1 / -1;
}

/* User home */
.page-user-home .ui-card-wrap {
    display: flex;
    flex-wrap: wrap;
}

.page-user-home .ui-card-wrap > [class*="col-"] {
    float: none;
}

.page-user-home .card p:last-child {
    margin-bottom: 0;
}

.page-user-home .usage-steps {
    padding: 0;
}

.usage-steps .ustep {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin: 16px 0;
}

.usage-steps .unum {
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    margin-right: 13px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    background: var(--ui-user);
    border-radius: 50%;
}

.usage-steps .ustep:not(:last-of-type)::before {
    position: absolute;
    top: 32px;
    bottom: -15px;
    left: 15px;
    width: 1px;
    content: "";
    background: var(--ui-border);
}

.usage-steps .ubody {
    min-width: 0;
    flex: 1 1 auto;
}

.usage-steps .utitle {
    margin-bottom: 5px;
    color: #2d4054;
    font-weight: 700;
}

.usage-steps .usage-inline-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 4px;
}

.usage-more {
    margin-top: 0;
    border-top: 1px solid var(--ui-border-soft);
}

.usage-more > summary {
    position: relative;
    padding: 11px 24px 11px 0;
    color: var(--ui-primary);
    font-size: 13px;
    line-height: 1.45;
    list-style: none;
    cursor: pointer;
    outline: none;
}

.usage-more > summary::-webkit-details-marker {
    display: none;
}

.usage-more > summary::after {
    position: absolute;
    top: 10px;
    right: 3px;
    color: #8fa0b0;
    font-family: "Material Icons";
    font-size: 18px;
    content: "chevron_right";
    transition: transform var(--ui-transition);
}

.usage-more[open] > summary::after {
    transform: rotate(90deg);
}

.usage-more > p {
    margin: 0 0 12px;
}

.client-update-date {
    margin: 1px 0 7px;
    color: var(--ui-text-muted);
    font-size: 12px;
}

.ui-card-wrap-info {
    align-items: stretch;
}

.ui-card-wrap-info > [class*="col-"] {
    display: flex;
}

.ui-card-wrap-info .user-info {
    display: flex;
    width: 100%;
    flex-direction: column;
    margin-bottom: 16px;
}

.ui-card-wrap-info .user-info-main {
    flex: 1 1 auto;
}

.ui-card-wrap-info .nodemain {
    padding: 17px 18px 14px;
}

.ui-card-wrap-info .nodehead,
.ui-card-wrap-info .nodemiddle {
    display: block;
    min-height: 0;
    margin: 0;
}

.ui-card-wrap-info .nodename {
    color: var(--ui-text-muted);
    font-size: 12px;
    font-weight: 650;
}

.ui-card-wrap-info .nodetype {
    margin: 5px 0 3px;
    color: var(--ui-text);
    font-size: 19px;
    font-weight: 720;
}

.ui-card-wrap-info .nodetype dd {
    margin: 0;
}

.ui-card-wrap-info .nodemiddle > div {
    color: var(--ui-text-muted);
    line-height: 1.45;
}

.ui-card-wrap-info .user-info-bottom {
    margin-top: auto;
    background: #fbfcfe;
    border-top: 1px solid var(--ui-border-soft);
}

.ui-card-wrap-info .nodeinfo {
    min-height: 39px;
    padding: 9px 14px;
}

.ui-card-wrap-info .nodeinfo span {
    display: inline-flex;
    align-items: center;
    color: #62768a;
    font-size: 12px;
    gap: 5px;
}

.ui-card-wrap-info .nodeinfo .icon {
    position: static;
    margin: 0;
    color: var(--ui-accent);
    font-size: 17px;
}

.page-user-home .progressbar {
    position: relative;
    display: block;
    width: 100%;
    height: 10px;
    margin: 41px 0 29px;
    border: 0;
    border-radius: 999px;
}

.page-user-home .progressbar:first-of-type {
    margin-top: 41px;
}

.page-user-home .progressbar .before {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 10px;
    background: #edf1f5;
    border: 0;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px #dfe6ed;
}

.page-user-home .progressbar > .bar {
    position: absolute;
    top: 1px;
    left: 1px;
    display: block;
    max-width: calc(100% - 2px);
    height: 8px;
    background: #72d92f;
    border-radius: 999px;
    box-shadow: none;
    overflow: hidden;
}

.page-user-home .progressbar > .bar.color2 {
    background: #f0c22e;
}

.page-user-home .progressbar > .bar.color3 {
    background: #f26186;
}

.page-user-home .progressbar .bar::before,
.page-user-home .progressbar .bar::after,
.page-user-home .progressbar .bar span {
    display: none;
}

.page-user-home .progressbar .label {
    position: absolute;
    right: 0;
    bottom: 16px;
    left: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 22px;
    color: #53677b;
    font-family: inherit;
    font-size: 12px;
    font-weight: 650;
    line-height: 22px;
    background: transparent;
}

.page-user-home .progressbar .label .bar {
    position: static;
    display: inline-block;
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    margin-right: 7px;
    background: #72d92f;
    border-radius: 50%;
    box-shadow: none;
}

.page-user-home .progressbar .label .bar.color2 {
    background: #f0c22e;
}

.page-user-home .progressbar .label .bar.color3 {
    background: #f26186;
}

.page-user-home .progressbar .traffic-info {
    margin: 0;
}

.page-user-home .progressbar .label code {
    position: static;
    margin-left: auto;
}

.page-user-home .card-action {
    min-height: 0;
}

.page-user-home .usercheck .btn {
    width: auto;
}

/* Settings */
.page-user-settings .content-inner {
    display: flex;
    width: min(100%, 920px);
    margin: 0 auto;
    padding: 4px 24px;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    box-shadow: var(--ui-shadow-sm);
}

.page-user-settings .content-inner > [class*="col-"] {
    float: none;
    width: 100%;
    padding: 0;
}

.page-user-settings .card {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--ui-border);
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.page-user-settings .card:hover {
    border-color: var(--ui-border);
    box-shadow: none;
}

.page-user-settings .card-main > .card-inner {
    min-height: 0;
    padding: 0;
}

.page-user-settings .card-inner > .card-inner {
    padding: 24px 2px;
}

.page-user-settings .card-inner > .card-inner + .card-inner {
    border-top: 1px solid var(--ui-border-soft);
}

.page-user-settings .cardbtn-edit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    margin-bottom: 8px;
    gap: 16px;
}

.page-user-settings .cardbtn-edit .card-heading {
    margin: 0;
}

.page-user-settings .maxwidth-edit {
    max-width: 520px;
}

.page-user-settings .form-group {
    max-width: 100%;
}

.page-user-settings .card-action {
    padding: 0 2px 22px;
}

.page-user-settings .card-action::after {
    display: table;
    clear: both;
    content: "";
}

/* Profile */
.page-user-profile .row {
    display: flex;
    flex-wrap: wrap;
}

.page-user-profile .row > [class*="col-"] {
    float: none;
}

.page-user-profile .card {
    height: auto;
}

.page-user-profile .card-inner .card-inner,
.page-user-profile .card-doubleinner {
    padding: 0;
}

.page-user-profile .cardbtn-edit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 14px;
}

.page-user-profile .cardbtn-edit .card-heading {
    margin: 0;
}

.page-user-profile .account-flex {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.page-user-profile .dl-horizontal {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    margin: 0;
    gap: 7px 12px;
}

.page-user-profile .dl-horizontal dt,
.page-user-profile .dl-horizontal dd {
    width: auto;
    margin: 0;
    line-height: 1.5;
}

.page-user-profile .dl-horizontal dt {
    color: var(--ui-text-muted);
    text-align: left;
}

.page-user-profile .dl-horizontal dd {
    color: var(--ui-text);
    overflow-wrap: anywhere;
}

.page-user-profile .card-doubleinner {
    margin-bottom: 14px;
}

.page-user-profile .card-doubleinner p {
    margin-bottom: 4px;
}

/* Nodes and commerce */
.app-shell .pay-choice,
.app-shell .list-shop,
.app-shell .user-config {
    background: #fff;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    box-shadow: none;
}

.app-shell .pay-choice:hover,
.app-shell .pay-choice.is-selected,
.app-shell .pay-choice.active {
    border-color: var(--ui-accent);
    box-shadow: 0 8px 22px rgba(38, 56, 80, .11);
}

.app-shell .pay-choice-main {
    color: var(--ui-text);
    font-weight: 680;
}

.app-shell .pay-choice-sub {
    color: var(--ui-text-muted);
}

.page-user-nodes .ui-switch .card-inner {
    display: flex;
    justify-content: flex-end;
    padding: 8px;
    gap: 5px;
}

.page-user-nodes .switch-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--ui-text-muted);
    border-radius: 9px;
}

.page-user-nodes .switch-btn a:hover {
    color: var(--ui-accent);
    background: var(--ui-accent-soft);
}

/* Security dialog */
.app-shell #security_modal .security-dialog {
    width: min(480px, calc(100vw - 32px));
    max-width: 100%;
}

.app-shell #security_modal .security-shell {
    display: flex;
    max-height: calc(100vh - 96px);
    max-height: calc(100dvh - 96px);
    flex-direction: column;
    overflow: hidden;
}

.app-shell #security_modal .modal-heading,
.app-shell #security_modal .modal-footer {
    flex: 0 0 auto;
}

.app-shell #security_modal .modal-inner {
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.app-shell #security_modal .modal-inner > p:first-child {
    margin-top: 0;
}

.app-shell #security_modal .modal-footer > p {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.app-shell #security_modal .modal-footer .btn + .btn {
    margin: 0;
}

.app-shell #security_modal #security-qr {
    text-align: center;
}

.app-shell #security_modal #security-qr canvas,
.app-shell #security_modal #security-qr img {
    width: 100% !important;
    max-width: min(210px, 60vw);
    height: auto !important;
}

.app-shell #security_modal #security-secret {
    overflow-wrap: anywhere;
}

.app-shell #security_modal .security-step {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--ui-transition), transform var(--ui-transition);
}

.app-shell #security_modal .security-step.is-leaving {
    opacity: 0;
    transform: translateY(-8px);
}

.app-shell #security_modal .security-step.is-entering {
    opacity: 0;
    transform: translateY(8px);
}

/* Authentication */
.app-shell-auth {
    min-height: 100vh;
    padding-bottom: 60px;
    color: var(--ui-text);
    background-color: #f4f7fb;
    background-image: linear-gradient(180deg, rgba(238, 246, 251, .22), #f5f7fb 360px),
        url(/theme/material/css/images/bg/brand_backup.jpg);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 100% 380px;
}

.app-shell-auth .auth-login-page {
    min-height: calc(100vh - 60px);
    padding-top: 44px;
    padding-bottom: 72px;
}

.app-shell-auth .auth-login-card {
    border: 1px solid var(--ui-border);
    border-radius: 20px;
    box-shadow: var(--ui-shadow);
}

.app-shell-auth .auth-login-head {
    padding: 22px 28px 24px;
    background: rgba(255, 255, 255, .86);
    border-bottom: 1px solid var(--ui-border-soft);
}

.app-shell-auth .auth-login-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 10px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
}

.app-shell-auth .auth-login-head h1 {
    color: var(--ui-text);
}

.app-shell-auth .auth-login-head p {
    color: var(--ui-text-muted);
}

.app-shell-auth .auth-login-nav a {
    color: var(--ui-user-dark);
}

.app-shell-auth .auth-login-body {
    padding: 26px 30px 28px;
}

.app-shell-auth .auth-login-input.form-control {
    height: 46px;
    line-height: 46px;
    background: var(--ui-surface-soft);
    border-color: #cfd9e4;
}

.app-shell-auth .auth-login-body #login {
    height: 46px;
    line-height: 46px;
    background: var(--ui-user);
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(15, 133, 124, .2);
}

.app-shell-auth .auth-login-body #login:hover,
.app-shell-auth .auth-login-body #login:focus {
    background: var(--ui-user-dark);
}

.app-shell-auth .authpage:not(.auth-login-page) > .container {
    width: 100%;
    max-width: none;
    padding: 0;
}

.app-shell-auth .authpage:not(.auth-login-page) {
    margin: 0;
    padding: 44px 16px 88px;
}

.app-shell-auth .authpage:not(.auth-login-page) .auth-main {
    width: min(100%, 860px);
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--ui-border);
    border-radius: 18px;
    box-shadow: var(--ui-shadow);
    overflow: hidden;
}

.app-shell-auth .authpage:not(.auth-login-page):not(.auth-reg) .auth-main,
.app-shell-auth .auth-col-one.auth-main {
    width: min(100%, 460px);
}

.app-shell-auth .authpage:not(.auth-login-page) .auth-top {
    min-height: 116px;
    margin: 0 0 8px;
    padding: 16px 18px;
    align-items: flex-end;
    background-image: linear-gradient(105deg, rgba(32, 87, 141, .76), rgba(15, 133, 124, .58)),
        url(/theme/material/css/images/bg/brand_backup.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 0;
}

.app-shell-auth .authpage:not(.auth-login-page) .auth-brand-title {
    align-self: center;
    max-width: 50%;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.app-shell-auth .authpage:not(.auth-login-page) a.boardtop-left,
.app-shell-auth .authpage:not(.auth-login-page) a.boardtop-right {
    padding: 7px 11px;
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 9px;
    box-shadow: none;
}

.app-shell-auth .authpage:not(.auth-login-page) .rowtocol {
    flex: 0 0 50%;
    padding: 0 10px;
}

.app-shell-auth .authpage:not(.auth-login-page) .form-group-label {
    flex-basis: 100%;
    margin: 17px 22px 0;
}

.app-shell-auth .authpage:not(.auth-login-page) .rowtocol .form-group-label {
    margin-right: 0;
    margin-left: 0;
}

.app-shell-auth .authpage:not(.auth-login-page) .btn-auth,
.app-shell-auth .authpage:not(.auth-login-page) .auth-help {
    box-sizing: border-box;
    flex-basis: 100%;
    margin: 21px 22px 0;
}

.app-shell-auth .authpage:not(.auth-login-page) .auth-help {
    padding-bottom: 20px;
}

.app-shell-auth .authpage:not(.auth-login-page) .auth-bottom {
    margin-top: 17px;
    color: #61778c;
    background: #f4f7fa;
    border-top: 1px solid var(--ui-border);
    border-radius: 0;
}

.app-shell-auth .authpage:not(.auth-login-page) .auth-bottom p,
.app-shell-auth .authpage:not(.auth-login-page) .tgauth span {
    color: #61778c;
    text-shadow: none;
}

.app-shell-auth .auth-register-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-shell-auth .auth-register-main > .auth-top,
.app-shell-auth .auth-register-main > .auth-bottom,
.app-shell-auth .auth-register-main > .auth-register-verification,
.app-shell-auth .auth-register-main > .auth-register-submit {
    grid-column: 1 / -1;
}

.app-shell-auth .authpage .auth-register-main > .rowtocol {
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0 20px;
    flex-basis: auto;
}

.app-shell-auth .auth-register-main .form-group-label {
    display: block;
    min-width: 0;
    margin: 17px 0 0;
}

.app-shell-auth .auth-register-main .form-control {
    width: 100%;
}

.app-shell-auth .auth-register-verification {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.app-shell-auth .authpage .auth-register-verification > .rowtocol {
    width: auto;
    min-width: 0;
    max-width: none;
    flex-basis: auto;
}

.app-shell-auth .authpage .auth-register-verification > .rowtocol:first-child {
    padding-right: 9px;
    padding-left: 0;
}

.app-shell-auth .authpage .auth-register-verification > .rowtocol:last-child {
    padding-right: 0;
    padding-left: 9px;
}

.app-shell-auth .auth-register-main .auth-help-reg {
    position: static;
    display: block;
    width: auto;
    margin-top: 7px;
    text-align: center;
}

.app-shell-auth .authpage .auth-register-submit .btn-auth {
    width: 100%;
    margin: 23px 0 0;
}

.app-shell-auth .auth-register-submit .btn {
    width: 100%;
    height: 42px;
    margin-top: 0;
}

/* Standalone pages */
.static-shell {
    display: flex;
    min-height: 100vh;
    padding: 0;
    flex-direction: column;
    background-color: #f4f7fb;
    background-image: linear-gradient(180deg, rgba(245, 249, 252, .15), #f4f7fb 360px),
        url(/theme/material/css/images/bg/brand_backup.jpg);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 100% 380px;
}

.static-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 9px max(20px, calc((100vw - 1080px) / 2));
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--ui-border);
    backdrop-filter: blur(14px);
}

.static-brand {
    display: inline-flex;
    align-items: center;
    color: var(--ui-text);
    font-weight: 680;
    gap: 9px;
}

.static-brand:hover {
    color: var(--ui-user-dark);
    text-decoration: none;
}

.static-brand-mark {
    width: 39px;
    height: 39px;
}

.static-nav {
    display: flex;
    gap: 5px;
}

.static-nav a {
    padding: 8px 10px;
    color: #587087;
    font-size: 14px;
    border-radius: 8px;
}

.static-nav a:hover,
.static-nav a:focus {
    color: var(--ui-user-dark);
    background: var(--ui-user-soft);
    text-decoration: none;
}

.static-main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(880px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 58px;
    flex: 1 0 auto;
}

.static-card {
    width: 100%;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--ui-border);
    border-radius: 19px;
    box-shadow: var(--ui-shadow);
}

.static-card-narrow {
    max-width: 520px;
    text-align: center;
}

.static-error-code {
    margin: 0;
    color: var(--ui-primary);
    font-size: clamp(64px, 14vw, 112px);
    font-weight: 760;
    line-height: 1;
    letter-spacing: -.06em;
}

.static-hero-mark {
    width: 96px;
    height: 96px;
    margin: 0 auto;
}

.static-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
    gap: 9px;
}

.static-account-grid > div {
    display: flex;
    min-width: 0;
    padding: 13px;
    flex-direction: column;
    text-align: left;
    background: #f6f8fb;
    border: 1px solid var(--ui-border);
    border-radius: 11px;
}

.static-account-grid span {
    margin-bottom: 4px;
    color: var(--ui-text-muted);
    font-size: 12px;
}

.static-account-grid strong {
    color: var(--ui-text);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.static-card h1 {
    margin: 11px 0 9px;
    color: var(--ui-text);
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
}

.static-card h2 {
    margin: 28px 0 11px;
    color: #30485f;
    font-size: 20px;
}

.static-card p,
.static-card li {
    color: #5e7388;
    line-height: 1.72;
}

.static-card ul {
    padding-left: 21px;
}

.static-card table {
    width: 100%;
    margin: 15px 0;
    border: 1px solid var(--ui-border);
    border-radius: 11px;
    border-spacing: 0;
    overflow: hidden;
}

.static-card td,
.static-card th {
    padding: 12px 14px;
    color: #526a80;
    border-top: 1px solid var(--ui-border);
    text-align: left;
    vertical-align: top;
}

.static-card tr:first-child td,
.static-card tr:first-child th {
    border-top: 0;
}

.static-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 22px;
    gap: 9px;
}

.static-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    background: var(--ui-user);
    border: 1px solid var(--ui-user);
    border-radius: 9px;
}

.static-button:hover,
.static-button:focus {
    color: #fff;
    background: var(--ui-user-dark);
    text-decoration: none;
}

.static-button-secondary {
    color: #526a80;
    background: #f5f8fb;
    border-color: var(--ui-border);
}

.static-button-secondary:hover,
.static-button-secondary:focus {
    color: var(--ui-user-dark);
    background: var(--ui-user-soft);
}

.static-footer {
    flex: 0 0 auto;
    padding: 17px 16px;
    color: #8493a3;
    font-size: 13px;
    text-align: center;
    background: rgba(255, 255, 255, .7);
    border-top: 1px solid var(--ui-border);
}

.static-footer a {
    color: #5a89ae;
}

/* Documentation */
.docs-shell {
    color: var(--ui-text);
    background: var(--ui-bg);
}

.docs-shell .docs-top-nav {
    position: fixed;
    z-index: 20;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 58px;
    padding: 8px 24px;
    background: rgba(255, 255, 255, .95);
    border-bottom: 1px solid var(--ui-border);
    gap: 6px;
}

.docs-shell .docs-top-nav a {
    padding: 8px 10px;
    color: #5a7085;
    font-size: 14px;
    border-radius: 8px;
}

.docs-shell .docs-top-nav a:hover {
    color: var(--ui-user-dark);
    background: var(--ui-user-soft);
}

.docs-shell .sidebar {
    top: 58px;
    background: #fff;
    border-right: 1px solid var(--ui-border);
}

.docs-shell .content {
    top: 58px;
}

.docs-shell .markdown-section {
    max-width: 900px;
    color: var(--ui-text);
}

.docs-shell .markdown-section h1,
.docs-shell .markdown-section h2,
.docs-shell .markdown-section h3 {
    color: #2e455b;
    font-weight: 680;
}

.docs-shell .markdown-section code {
    color: #47627b;
    background: #edf3f8;
    border-radius: 6px;
}

.docs-shell .markdown-section pre {
    background: #1d2937;
    border-radius: 11px;
}

/* Footer */
.app-shell .ui-footer {
    min-height: 56px;
    height: auto;
    padding: 17px 16px;
    color: #8291a1;
    font-size: 13px;
    text-align: center;
    background: rgba(255, 255, 255, .74);
    border-top: 1px solid var(--ui-border);
}

.app-shell .ui-footer a {
    color: #5a89ae;
}

@media screen and (min-width: 1200px) {
    .app-shell-user .app-drawer,
    .app-shell-admin .app-drawer {
        position: fixed;
        z-index: 20;
        top: var(--ui-header-height);
        bottom: 0;
        left: 0;
        display: block !important;
        width: var(--ui-sidebar-width);
        visibility: visible !important;
        transform: translateX(0) !important;
    }

    .app-shell-user .app-drawer .menu-logo,
    .app-shell-admin .app-drawer .menu-logo {
        display: none;
    }

    .app-shell-user .app-drawer .menu-scroll,
    .app-shell-admin .app-drawer .menu-scroll {
        height: 100%;
        padding-top: 20px;
        overflow-y: auto;
    }

    .app-shell-user .app-menu-trigger,
    .app-shell-admin .app-menu-trigger {
        visibility: hidden;
        width: 0;
        margin: 0;
    }

    .app-shell-user main.content,
    .app-shell-admin main.content,
    .app-shell-user > .ui-footer,
    .app-shell-admin > .ui-footer {
        margin-left: var(--ui-sidebar-width);
    }

    .app-shell-user .ui-content-header,
    .app-shell-admin .ui-content-header {
        min-height: 0;
        margin-bottom: 18px;
        padding: 28px 0 8px;
        background: transparent;
        border: 0;
    }

    .app-shell-user .content-heading,
    .app-shell-admin .content-heading {
        color: var(--ui-text);
        font-size: 29px;
    }
}

@media screen and (max-width: 1099px) {
    .ui-chart-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ui-ring-layout {
        grid-template-columns: minmax(150px, 38%) minmax(0, 1fr);
    }
}

@media screen and (max-width: 991px) {
    .app-shell .app-drawer {
        width: 100vw;
        max-width: none;
        background: transparent;
        border-right: 0;
        box-shadow: none;
    }

    .app-shell .app-drawer .menu-scroll {
        width: min(var(--ui-sidebar-width), calc(100vw - 54px));
        height: 100%;
        color: var(--ui-text);
        background: #fff;
        border-right: 1px solid var(--ui-border);
        box-shadow: 12px 0 36px rgba(38, 56, 80, .16);
    }

    .page-user-settings .content-inner {
        width: 100%;
    }
}

@media screen and (max-width: 767px) {
    :root {
        --ui-header-height: 58px;
        --ui-gutter: 14px;
    }

    .app-shell .container {
        width: calc(100% - 28px);
    }

    .app-shell .app-header {
        padding: 0 11px;
    }

    .app-brand {
        font-size: 15px;
    }

    .app-brand-mark {
        width: 35px;
        height: 35px;
    }

    .app-shell .ui-content-header {
        min-height: 68px;
        margin-bottom: 14px;
        padding: 19px 0 17px;
        background-size: auto 150px;
    }

    .app-shell .content-heading {
        font-size: 23px;
    }

    .app-shell-user main.content,
    .app-shell-admin main.content {
        padding-bottom: 24px;
    }

    .app-shell .row,
    .app-shell .ui-card-wrap {
        margin-right: -5px;
        margin-left: -5px;
    }

    .app-shell [class^="col-"],
    .app-shell [class*=" col-"] {
        padding-right: 5px;
        padding-left: 5px;
    }

    .app-shell .card {
        margin-bottom: 12px;
        border-radius: 14px;
    }

    .app-shell .card-inner {
        padding: 17px 15px;
    }

    .ui-page-intro {
        margin-bottom: 13px;
    }

    .ui-chart-card .card-inner,
    .ui-line-card .card-inner {
        padding: 18px 16px 14px;
    }

    .ui-chart-heading {
        margin-bottom: 14px;
    }

    .ui-chart-heading h2 {
        font-size: 16px;
    }

    .ui-ring-layout {
        grid-template-columns: minmax(112px, 38%) minmax(0, 1fr);
        min-height: 168px;
        gap: 12px;
    }

    .ui-ring-visual {
        max-width: 150px;
    }

    .ui-ring-track,
    .ui-ring-segment {
        stroke-width: 15;
    }

    .ui-ring-center strong {
        font-size: 17px;
    }

    .ui-ring-center span {
        font-size: 10px;
    }

    .ui-chart-legend-item {
        min-height: 31px;
        padding: 4px 0;
        gap: 6px;
    }

    .ui-chart-legend-label,
    .ui-chart-legend-value strong {
        font-size: 12px;
    }

    .ui-chart-legend-value small {
        display: none;
    }

    .ui-line-svg {
        min-height: 190px;
        aspect-ratio: 16 / 8;
    }

    .ui-node-chart-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ui-node-chart-wide {
        grid-column: auto;
    }

    .ui-card-wrap-info > [class*="col-"] {
        width: 50%;
    }

    .ui-card-wrap-info .nodemain {
        padding: 14px 14px 12px;
    }

    .ui-card-wrap-info .nodetype {
        font-size: 17px;
    }

    .ui-card-wrap-info .nodeinfo {
        min-height: 36px;
        padding: 8px 11px;
    }

    .usage-steps .ustep {
        margin: 14px 0;
    }

    .usage-steps .unum {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        margin-right: 11px;
        font-size: 13px;
    }

    .usage-steps .ustep:not(:last-of-type)::before {
        top: 29px;
        left: 13px;
    }

    .page-user-settings .content-inner {
        padding: 2px 15px;
        border-radius: 14px;
    }

    .page-user-settings .card-inner > .card-inner {
        padding: 20px 0;
    }

    .page-user-profile .row > [class*="col-"] {
        width: 100%;
    }

    .page-user-profile .dl-horizontal {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .app-shell .table-responsive {
        border-radius: 11px;
    }

    .app-shell .table > thead > tr > th,
    .app-shell table > thead > tr > th,
    .app-shell table > tbody > tr:first-child > th,
    .app-shell .table > tbody > tr > td,
    .app-shell table > tbody > tr > td {
        padding: 10px 11px;
    }

    .app-shell .modal {
        padding: 10px;
    }

    .app-shell .modal-dialog,
    .app-shell .modal-xs {
        width: calc(100vw - 20px);
        margin: 18px auto;
    }

    .app-shell .modal-heading,
    .app-shell .modal-inner,
    .app-shell .modal-footer {
        padding-right: 16px;
        padding-left: 16px;
    }

    .app-shell #security_modal .security-dialog {
        width: calc(100vw - 20px);
    }

    .app-shell #security_modal .security-shell {
        max-height: calc(100vh - 36px);
        max-height: calc(100dvh - 36px);
    }

    .app-shell-auth .auth-login-page {
        align-items: flex-start;
        padding: 22px 13px 78px;
    }

    .app-shell-auth .auth-login-card {
        border-radius: 17px;
    }

    .app-shell-auth .auth-login-head {
        padding: 18px 20px 20px;
    }

    .app-shell-auth .auth-login-logo {
        width: 62px;
        height: 62px;
        margin-bottom: 8px;
    }

    .app-shell-auth .auth-login-head h1 {
        font-size: 21px;
    }

    .app-shell-auth .auth-login-body {
        padding: 22px 20px 24px;
    }

    .app-shell-auth .authpage:not(.auth-login-page) {
        padding: 23px 12px 78px;
    }

    .app-shell-auth .authpage:not(.auth-login-page) .auth-main {
        border-radius: 16px;
    }

    .app-shell-auth .authpage:not(.auth-login-page) .auth-top {
        min-height: 108px;
        padding: 14px;
    }

    .app-shell-auth .authpage:not(.auth-login-page) .rowtocol {
        flex-basis: 100%;
        padding: 0;
    }

    .app-shell-auth .auth-register-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-shell-auth .authpage .auth-register-main > .rowtocol,
    .app-shell-auth .authpage .auth-register-main > .auth-register-verification,
    .app-shell-auth .authpage .auth-register-main > .auth-register-submit {
        grid-column: 1;
        padding-right: 17px;
        padding-left: 17px;
    }

    .app-shell-auth .auth-register-verification {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .app-shell-auth .authpage .auth-register-verification > .rowtocol:first-child,
    .app-shell-auth .authpage .auth-register-verification > .rowtocol:last-child {
        padding-right: 0;
        padding-left: 0;
    }

    .static-topbar {
        min-height: 58px;
        padding: 7px 13px;
    }

    .static-brand span {
        display: none;
    }

    .static-main {
        width: calc(100% - 24px);
        padding: 26px 0 40px;
    }

    .static-card {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .static-account-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 420px) {
    .app-brand span {
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ui-ring-layout {
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 9px;
    }

    .ui-card-wrap-info .nodeinfo span {
        font-size: 11px;
    }

    .page-user-settings .cardbtn-edit {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 9px;
    }

    .app-shell .btn {
        min-height: 42px;
    }

    .app-shell .form-control,
    .app-shell input.form-control,
    .app-shell textarea.form-control,
    .app-shell button.form-control {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-shell *,
    .app-shell *::before,
    .app-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
