@import url("/template/shared/status-controls.css?v=20261109-1");

/* Shared presentation layer for public pages. Admin pages never load this file. */
html.frontend-theme {
    --front-page: #d8e2f7;
    --front-surface: #f5f8ff;
    --front-surface-strong: #ffffff;
    --front-soft: #e9f0fc;
    --front-text: #20386d;
    --front-muted: #667da8;
    --front-blue: #304b98;
    --front-blue-dark: #243d83;
    --front-border: #b8c9e6;
    --front-gold: #d7a234;
    --front-danger: #b94353;
    --front-shadow: 0 14px 28px rgba(67, 94, 149, .12);
    min-width: 320px;
    background: var(--front-page);
}

html.frontend-theme *,
html.frontend-theme *::before,
html.frontend-theme *::after {
    box-sizing: border-box;
}

html.frontend-theme:not(.scenario-theme) body {
    min-width: 320px;
    min-height: 100vh;
    padding-top: 60px;
    overflow-x: hidden;
    color: var(--front-text);
    background: var(--front-page) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

html.frontend-theme #wrap {
    display: flex;
    min-height: 100vh;
    height: auto;
    flex-direction: column;
}

html.frontend-theme #main {
    min-height: 0;
    height: auto;
    flex: 1 0 auto;
    overflow: visible;
}

html.frontend-theme .stui-foot {
    position: relative;
    width: 100%;
    flex: 0 0 auto;
    clear: both;
}

html.frontend-theme .stui-foot .masked p {
    overflow-wrap: anywhere;
    line-height: 1.6;
}

html.frontend-theme button,
html.frontend-theme input,
html.frontend-theme textarea,
html.frontend-theme select {
    font-family: inherit;
}

html.frontend-theme a:focus-visible,
html.frontend-theme button:focus-visible,
html.frontend-theme input:focus-visible,
html.frontend-theme textarea:focus-visible,
html.frontend-theme select:focus-visible {
    outline: 3px solid rgba(48, 75, 152, .35);
    outline-offset: 2px;
}

/* Public header */
html.frontend-theme .stui-header__top {
    min-height: 60px;
    background: rgba(224, 233, 250, .97);
    border-bottom: 1px solid rgba(255, 255, 255, .82);
    box-shadow: 0 4px 18px rgba(67, 94, 149, .07);
}

html.frontend-theme .stui-header__top > .container {
    width: calc(100% - 48px);
    max-width: 1920px;
    padding: 0;
}

html.frontend-theme .stui-header__top > .container > .row { margin: 0; }

html.frontend-theme .stui-header__menu > li {
    padding-top: 15px;
    padding-bottom: 10px;
}

html.frontend-theme .stui-header__logo .logo {
    background-position: left center !important;
    background-size: 42px 42px !important;
}

html.frontend-theme .stui-header__menu > li > a {
    position: relative;
    color: var(--front-text);
    font-size: 15px;
    font-weight: 600;
}

html.frontend-theme .stui-header__menu > li > a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -11px;
    left: 0;
    height: 2px;
    background: transparent;
}

html.frontend-theme .stui-header__menu > li:hover > a,
html.frontend-theme .stui-header__menu > li.active > a {
    color: var(--front-blue);
}

html.frontend-theme .stui-header__menu > li:hover > a::after,
html.frontend-theme .stui-header__menu > li.active > a::after {
    background: var(--front-gold);
}

html.frontend-theme .stui-header_bd {
    display: flex;
    min-height: 70px;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding: 8px 0;
}

html.frontend-theme .stui-header_bd::before,
html.frontend-theme .stui-header_bd::after { display: none; }

html.frontend-theme .stui-header__logo,
html.frontend-theme .stui-header__menu,
html.frontend-theme .stui-header__user { float: none; margin: 0; }

html.frontend-theme .stui-header__user { margin-left: auto; padding: 0; }

html.frontend-theme .stui-header__user > li {
    float: none;
    margin: 0;
    padding: 0;
}

html.frontend-theme .stui-header__user > li.frontend-theme-control,
html.frontend-theme .stui-header__user > li.frontend-points-control {
    padding: 0;
}

/* Standalone public pages, such as industry.php, use the same header contract. */
html.frontend-theme .frontend-global-header {
    position: relative;
    z-index: 20;
    width: 100%;
    min-height: 62px;
    border-bottom: 1px solid rgba(184, 201, 230, .72);
    background: rgba(224, 233, 250, .97);
    box-shadow: 0 4px 18px rgba(67, 94, 149, .1);
}

html.frontend-theme .frontend-global-header-inner {
    display: flex;
    width: min(1240px, calc(100% - 36px));
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
}

html.frontend-theme .frontend-global-brand {
    color: var(--front-text);
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

html.frontend-theme .frontend-global-nav,
html.frontend-theme .frontend-global-actions {
    display: flex;
    align-items: center;
    gap: var(--status-gap);
}

html.frontend-theme .frontend-global-nav a {
    padding: 8px 10px;
    color: var(--front-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

html.frontend-theme .frontend-global-nav a:hover {
    color: var(--front-blue);
}

@media (max-width: 1100px) {
    html.frontend-theme .frontend-global-header-inner { flex-wrap: wrap; padding: 12px 0; }
    html.frontend-theme .frontend-global-nav { margin-left: auto; }
    html.frontend-theme .frontend-global-actions { width: 100%; justify-content: flex-end; }
}

html.frontend-theme .stui-header__user > li .userdown {
    width: 130px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 8px;
    background: var(--front-surface);
    color: var(--front-muted);
    box-shadow: var(--front-shadow);
}

html.frontend-theme .stui-header__user > li .userdown::before {
    background: var(--front-surface);
}

html.frontend-theme .stui-header__user .userdown .history li {
    padding: 0;
    border-color: var(--front-border);
}

html.frontend-theme .stui-header__user .userdown .history a {
    display: block;
    padding: 9px 10px;
    border-radius: 6px;
    color: var(--front-text);
    white-space: nowrap;
}

html.frontend-theme .stui-header__user .userdown .history a:hover {
    background: var(--front-soft);
    color: var(--front-blue);
}

/* Public footer */
html.frontend-theme .stui-foot,
html.frontend-theme .stui-foot.clearfix {
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .7);
    background: rgba(214, 225, 246, .74);
    color: #526b9c;
}

html.frontend-theme .stui-foot p {
    margin: 4px 0;
    color: #526b9c;
    font-size: 13px;
}

html.frontend-theme .stui-foot .masked,
html.frontend-theme .stui-foot .masked * {
    animation: none !important;
    background: none !important;
    color: #526b9c !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: #526b9c !important;
}

html.frontend-theme #footer {
    border-color: rgba(184, 201, 230, .75);
    background: rgba(238, 244, 255, .96);
}

html.frontend-theme #footer a,
html.frontend-theme .stui-extra a,
html.frontend-theme .stui-extra span {
    color: var(--front-blue);
    background: var(--front-surface);
    border-color: var(--front-border);
}

/* Account and authentication pages */
html.frontend-theme body.frontend-user-page {
    color: var(--front-text);
    background: var(--front-page) !important;
}

html.frontend-theme body.frontend-user-page #content-container {
    width: calc(100% - 32px);
    max-width: 1140px;
    min-height: 430px;
    margin: 34px auto 42px;
}

html.frontend-theme body.frontend-user-page .sidenav {
    padding: 18px 10px 12px;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 8px;
    background: rgba(247, 250, 255, .78);
    box-shadow: 0 12px 24px rgba(67, 94, 149, .1);
}

html.frontend-theme body.frontend-user-page .sidenav .list-group {
    margin: 0;
}

html.frontend-theme body.frontend-user-page .sidenav .list-group-heading {
    margin: 0 8px 10px !important;
    padding: 0 9px 13px;
    border-bottom: 1px solid rgba(184, 201, 230, .72);
    color: var(--front-text);
    font-size: 16px;
    font-weight: 700;
    text-align: left;
}

html.frontend-theme body.frontend-user-page .sidenav .list-group-item {
    margin: 4px 0;
    overflow: hidden;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 6px;
    background: transparent;
}

html.frontend-theme body.frontend-user-page .sidenav .list-group-item > a {
    display: flex;
    height: 42px;
    min-height: 42px;
    align-items: center;
    flex-wrap: nowrap;
    gap: 9px;
    padding: 0 12px;
    color: var(--front-muted);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
}

html.frontend-theme body.frontend-user-page .sidenav .list-group-item > a > i {
    flex: 0 0 18px;
}

html.frontend-theme body.frontend-user-page .sidenav .list-group-item > a > span {
    min-width: 0;
    overflow: hidden;
    flex: 1 1 auto;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.frontend-theme body.frontend-user-page .sidenav .list-group-item i {
    width: 18px;
    color: #7d92ba;
    text-align: center;
}

html.frontend-theme body.frontend-user-page .sidenav .list-group-item:hover {
    background: rgba(233, 240, 252, .8);
}

html.frontend-theme body.frontend-user-page .sidenav .list-group-item.active {
    border-left-color: var(--front-gold);
    background: var(--front-soft);
}

html.frontend-theme body.frontend-user-page .sidenav .list-group-item.active > a,
html.frontend-theme body.frontend-user-page .sidenav .list-group-item.active i {
    color: var(--front-blue);
}

html.frontend-theme body.frontend-user-page .panel.panel-default,
html.frontend-theme body.frontend-user-page .panel-col {
    min-height: 410px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 8px;
    background: rgba(247, 250, 255, .78);
    box-shadow: var(--front-shadow);
}

html.frontend-theme body.frontend-user-page .panel-default > .panel-heading,
html.frontend-theme body.frontend-user-page .panel-heading {
    min-height: 56px;
    padding: 17px 22px;
    border: 0;
    border-bottom: 1px solid rgba(184, 201, 230, .65);
    background: rgba(233, 240, 252, .7);
    color: var(--front-text);
    font-size: 18px;
    font-weight: 700;
}

html.frontend-theme body.frontend-user-page .panel-default > .panel-body,
html.frontend-theme body.frontend-user-page .panel-body,
html.frontend-theme body.frontend-user-page .panel-col > .es-section {
    padding: 26px 24px;
    color: var(--front-text);
}

html.frontend-theme body.frontend-user-page .es-section {
    border: 0;
    background: transparent;
    box-shadow: none;
}

html.frontend-theme body.frontend-user-page .label-primary,
html.frontend-theme body.frontend-user-page .badge-primary {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    margin: 0 6px 6px 0;
    padding: 0 11px;
    border: 1px solid rgba(215, 162, 52, .35);
    border-radius: 14px;
    background: rgba(215, 162, 52, .12);
    color: #916719;
    font-weight: 700;
}

html.frontend-theme body.frontend-user-page .coin-block {
    display: flex;
    min-height: 118px;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
}

html.frontend-theme body.frontend-user-page .coin-block .coin-text,
html.frontend-theme body.frontend-user-page .coin-block .coin-btn {
    float: none;
    margin: 0;
}

html.frontend-theme body.frontend-user-page .coin-block .coin-text strong,
html.frontend-theme body.frontend-user-page .coin-text {
    color: var(--front-blue);
    font-size: 30px;
    font-weight: 800;
}

html.frontend-theme body.frontend-user-page .well,
html.frontend-theme body.frontend-user-page #user-search-form {
    padding: 12px 14px;
    border: 1px solid rgba(184, 201, 230, .62);
    border-radius: 8px;
    background: rgba(233, 240, 252, .56);
    box-shadow: none;
}

html.frontend-theme body.frontend-user-page #user-search-form .control-label {
    color: var(--front-muted);
}

html.frontend-theme body.frontend-user-page #user-search-form .control-label span {
    color: var(--front-blue) !important;
}

html.frontend-theme body.frontend-user-page .form-horizontal .control-label,
html.frontend-theme body.frontend-user-page label {
    color: #344d83;
    font-weight: 600;
}

html.frontend-theme body.frontend-user-page .form-control {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #b5c6e4;
    border-radius: 6px;
    background: rgba(255, 255, 255, .82);
    color: var(--front-text);
    box-shadow: none;
}

html.frontend-theme body.frontend-user-page .form-control::placeholder {
    color: #8497ba;
    opacity: 1;
}

html.frontend-theme body.frontend-user-page .form-control:focus {
    border-color: var(--front-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(48, 75, 152, .1);
}

html.frontend-theme body.frontend-user-page .btn {
    min-height: 40px;
    padding: 9px 17px;
    border-radius: 6px;
    font-weight: 700;
}

html.frontend-theme body.frontend-user-page .btn-primary,
html.frontend-theme body.frontend-user-page .nav-pills > li.active > a,
html.frontend-theme body.frontend-user-page .nav-pills > li.active > a:hover,
html.frontend-theme body.frontend-user-page .nav-pills > li.active > a:focus {
    border-color: var(--front-blue);
    background: var(--front-blue);
    color: #fff;
    box-shadow: 0 7px 15px rgba(48, 75, 152, .16);
}

html.frontend-theme body.frontend-user-page .btn-primary:hover,
html.frontend-theme body.frontend-user-page .btn-primary:focus {
    border-color: var(--front-blue-dark);
    background: var(--front-blue-dark);
}

html.frontend-theme body.frontend-user-page .btn-default {
    border-color: var(--front-border);
    background: rgba(255, 255, 255, .76);
    color: var(--front-blue);
}

html.frontend-theme body.frontend-user-page .table {
    min-width: 640px;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--front-text);
}

html.frontend-theme body.frontend-user-page .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

html.frontend-theme body.frontend-user-page .invitation-table-wrap {
    margin: 0;
}

html.frontend-theme body.frontend-user-page .invitation-purchase {
    clear: both;
    margin: 18px 0 0;
    line-height: 1.8;
}

html.frontend-theme body.frontend-user-page .invitation-purchase .btn {
    margin-left: 8px;
    vertical-align: middle;
}

html.frontend-theme body.frontend-user-page .table th,
html.frontend-theme body.frontend-user-page .table td {
    overflow-wrap: anywhere;
    line-height: 1.5;
}

html.frontend-theme body.frontend-user-page .table > tbody > tr > th,
html.frontend-theme body.frontend-user-page .table > tbody > tr > td,
html.frontend-theme body.frontend-user-page .table > thead > tr > th,
html.frontend-theme body.frontend-user-page .table > thead > tr > td {
    padding: 12px 14px;
    border-color: rgba(184, 201, 230, .68);
    vertical-align: middle;
}

html.frontend-theme body.frontend-user-page .table th {
    background: var(--front-soft);
    color: var(--front-blue);
    font-weight: 700;
}

html.frontend-theme body.frontend-user-page .table td {
    background: rgba(255, 255, 255, .58);
}

html.frontend-theme body.frontend-user-page a {
    color: var(--front-blue);
}

html.frontend-theme body.frontend-user-page a.text-red,
html.frontend-theme body.frontend-user-page .text-red {
    color: var(--front-danger);
}

/* Login, registration and password recovery */
html.frontend-theme body.frontend-auth-page #wrapper {
    min-height: calc(100vh - 60px);
}

html.frontend-theme body.frontend-auth-page #content-container {
    display: flex;
    min-height: 600px;
    align-items: flex-start;
    justify-content: center;
    padding-top: 28px;
}

html.frontend-theme body.frontend-auth-page .login-section {
    width: min(100%, 480px);
    min-height: 0;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 8px;
    background: rgba(247, 250, 255, .84);
    box-shadow: var(--front-shadow);
}

html.frontend-theme body.frontend-auth-page .login-section .logon-tab {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-bottom: 1px solid rgba(184, 201, 230, .66);
}

html.frontend-theme body.frontend-auth-page .login-section .logon-tab > a {
    width: auto;
    min-height: 60px;
    padding: 18px 12px;
    background: rgba(233, 240, 252, .66);
    color: var(--front-muted);
    font-size: 16px;
    font-weight: 700;
}

html.frontend-theme body.frontend-auth-page .login-section .logon-tab > a:first-child {
    grid-column: 1;
    grid-row: 1;
}

html.frontend-theme body.frontend-auth-page .login-section .logon-tab > a:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

html.frontend-theme body.frontend-auth-page .login-section .logon-tab > a:hover {
    background: var(--front-soft);
    color: var(--front-blue);
}

html.frontend-theme body.frontend-auth-page .login-section .logon-tab > a.active {
    position: relative;
    background: rgba(255, 255, 255, .84);
    color: var(--front-text);
}

html.frontend-theme body.frontend-auth-page .login-section .logon-tab > a.active::after {
    content: "";
    position: absolute;
    right: 34%;
    bottom: 0;
    left: 34%;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--front-gold);
}

html.frontend-theme body.frontend-auth-page .login-section .login-main {
    padding: 34px 44px 28px;
}

html.frontend-theme body.frontend-auth-page .login-main .control-label {
    display: block;
    margin: 0 0 6px;
}

html.frontend-theme body.frontend-auth-page .login-main .controls,
html.frontend-theme body.frontend-auth-page .login-main .control-group {
    margin-bottom: 14px !important;
}

html.frontend-theme body.frontend-auth-page .login-main .btn-block {
    width: 100%;
    min-height: 46px;
    margin-top: 24px !important;
}

html.frontend-theme body.frontend-auth-page .login-main .mbl {
    margin-top: 13px;
    color: var(--front-muted);
    text-align: center;
}

html.frontend-theme body.frontend-auth-page .social-login .line {
    margin-top: 24px;
    border-color: rgba(184, 201, 230, .5);
}

/* Message board */
html.frontend-theme body.frontend-book-page > .container {
    width: calc(100% - 32px);
    max-width: 1180px;
    margin: 0 auto 42px;
}

html.frontend-theme body.frontend-book-page .stui-pannel-x {
    background: transparent;
}

html.frontend-theme body.frontend-book-page .stui-pannel-bg {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 8px;
    background: rgba(247, 250, 255, .8);
    color: var(--front-text);
    box-shadow: var(--front-shadow);
}

html.frontend-theme body.frontend-book-page .stui-pannel__head {
    height: auto;
    min-height: 42px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(184, 201, 230, .62);
}

html.frontend-theme body.frontend-book-page .stui-pannel__head .title {
    color: var(--front-text);
    font-size: 18px;
    font-weight: 700;
}

html.frontend-theme body.frontend-book-page .form-control {
    min-height: 42px;
    border: 1px solid var(--front-border);
    border-radius: 6px;
    background: rgba(255, 255, 255, .84);
    color: var(--front-text);
    box-shadow: none;
}

html.frontend-theme body.frontend-book-page textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

html.frontend-theme body.frontend-book-page .form-control:focus {
    border-color: var(--front-blue);
    box-shadow: 0 0 0 3px rgba(48, 75, 152, .1);
}

html.frontend-theme body.frontend-book-page .btn {
    min-height: 40px;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
}

html.frontend-theme body.frontend-book-page .btn-primary {
    border-color: var(--front-blue);
    background: var(--front-blue);
    color: #fff;
}

html.frontend-theme body.frontend-book-page .btn-default {
    border-color: var(--front-border);
    background: #fff;
    color: var(--front-blue);
}

html.frontend-theme body.frontend-book-page .topwords,
html.frontend-theme body.frontend-book-page .top-line,
html.frontend-theme body.frontend-book-page .text-muted {
    color: var(--front-muted);
    border-color: rgba(184, 201, 230, .62);
}

html.frontend-theme body.frontend-book-page .topwords strong {
    color: var(--front-text);
}

html.frontend-theme body.frontend-book-page font[color="red"],
html.frontend-theme body.frontend-book-page .text-red {
    color: #9b6d18 !important;
}

html.frontend-theme body.frontend-book-page .stui-page li a,
html.frontend-theme body.frontend-book-page .stui-page li span {
    border: 1px solid var(--front-border);
    border-radius: 6px;
    background: rgba(255, 255, 255, .8);
    color: var(--front-blue);
}

/* App download shell */
html.frontend-theme body.frontend-app-page > .container {
    width: calc(100% - 32px);
    max-width: 1080px;
    margin: 26px auto 42px;
}

html.frontend-theme body.frontend-app-page .stui-pannel-bg {
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
}

html.frontend-theme body.frontend-app-page .stui-vodlist {
    margin: 0;
    padding: 0;
}

html.frontend-theme body.frontend-app-page .app-download-frame {
    display: block;
    width: 100%;
    height: min(700px, calc(100vh - 190px));
    min-height: 560px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
}

@media (max-width: 767px) {
    html.frontend-theme .stui-header__top > .container { width: calc(100% - 24px); }
    html.frontend-theme:not(.scenario-theme) body {
        padding-top: 50px;
    }

    html.frontend-theme .stui-header__top {
        min-height: 50px;
    }

    html.frontend-theme .stui-header__menu > li {
        padding-top: 15px;
        padding-bottom: 10px;
    }

    html.frontend-theme .stui-header__menu > li > a::after {
        bottom: -10px;
    }

    html.frontend-theme .stui-header__user > li {
        margin: 0;
        padding: 0;
    }

    html.frontend-theme .stui-header__user > li.frontend-theme-control,
    html.frontend-theme .stui-header__user > li.frontend-points-control,
    html.frontend-theme .stui-header__user > li.frontend-workbench-control {
        margin: 0;
        padding: 0;
    }

    html.frontend-theme .frontend-global-header-inner {
        width: calc(100% - 24px);
        min-height: 56px;
        gap: 8px;
    }

    html.frontend-theme .frontend-global-header {
        min-height: 56px;
    }

    html.frontend-theme .frontend-global-brand {
        max-width: 32vw;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 16px;
    }

    html.frontend-theme .frontend-global-nav {
        display: none;
    }

    html.frontend-theme .frontend-global-actions {
        gap: var(--status-gap);
    }

    html.frontend-theme body.frontend-user-page #content-container {
        width: calc(100% - 24px);
        margin-top: 22px;
    }

    html.frontend-theme body.frontend-user-page .sidenav {
        margin-bottom: 18px;
        padding: 14px 9px 9px;
    }

    html.frontend-theme body.frontend-user-page .sidenav .list-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    html.frontend-theme body.frontend-user-page .sidenav .list-group-heading {
        grid-column: 1 / -1;
    }

    html.frontend-theme body.frontend-user-page .sidenav .list-group-item {
        float: none;
        width: auto;
        margin: 0;
    }

    html.frontend-theme body.frontend-user-page .sidenav .list-group-item > a {
        min-height: 40px;
        padding: 0 9px;
        font-size: 13px;
    }

    html.frontend-theme body.frontend-user-page .panel.panel-default,
    html.frontend-theme body.frontend-user-page .panel-col {
        min-height: 0;
    }

    html.frontend-theme body.frontend-user-page .panel-default > .panel-heading,
    html.frontend-theme body.frontend-user-page .panel-heading {
        padding: 15px 17px;
        font-size: 17px;
    }

    html.frontend-theme body.frontend-user-page .panel-default > .panel-body,
    html.frontend-theme body.frontend-user-page .panel-body,
    html.frontend-theme body.frontend-user-page .panel-col > .es-section {
        padding: 20px 16px;
    }

    html.frontend-theme body.frontend-user-page .coin-block {
        min-height: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    html.frontend-theme body.frontend-user-page #user-search-form .pull-right {
        width: 100%;
        margin-top: 10px;
        float: none !important;
        line-height: 1.8;
    }

    html.frontend-theme body.frontend-auth-page #content-container {
        min-height: 530px;
        padding-top: 8px;
    }

    html.frontend-theme body.frontend-auth-page .login-section .login-main {
        padding: 24px 20px 22px;
    }

    html.frontend-theme body.frontend-auth-page .login-section .logon-tab > a {
        min-height: 54px;
        padding: 15px 8px;
    }

    html.frontend-theme body.frontend-book-page > .container,
    html.frontend-theme body.frontend-app-page > .container {
        width: calc(100% - 20px);
    }

    html.frontend-theme body.frontend-book-page .stui-pannel-bg {
        border-radius: 8px;
    }

    html.frontend-theme body.frontend-app-page .app-download-frame {
        height: 620px;
        min-height: 620px;
    }
}

/* Account pages follow the platform theme without adding a local toggle. */
html.theme-dark.frontend-theme {
    --front-page: #111827;
    --front-surface: #1b2639;
    --front-surface-strong: #202d42;
    --front-soft: #243149;
    --front-text: #e5ebf6;
    --front-muted: #a9b7ce;
    --front-blue: #a1b5f4;
    --front-blue-dark: #bdc9f6;
    --front-border: #374761;
    --front-gold: #e0b24b;
    --front-danger: #f08b98;
    --front-shadow: 0 16px 34px rgba(0, 0, 0, .22);
    color-scheme: dark;
    background: var(--front-page);
}

html.theme-dark.frontend-theme body.frontend-user-page {
    color: var(--front-text);
    background: var(--front-page) !important;
}

html.theme-dark.frontend-theme .stui-header__top {
    border-color: var(--front-border);
    background: rgba(23, 34, 53, .98);
}

html.theme-dark.frontend-theme .stui-header__menu > li > a {
    color: var(--front-text);
}

html.theme-dark.frontend-theme .frontend-global-brand {
    color: var(--front-text);
}

html.theme-dark.frontend-theme .frontend-global-header {
    border-color: var(--front-border);
    background: rgba(23, 34, 53, .98);
}

html.theme-dark.frontend-theme .frontend-global-nav a {
    color: var(--front-muted);
}

html.theme-dark.frontend-theme .frontend-global-nav a:hover {
    color: var(--front-blue);
}

html.theme-dark.frontend-theme .stui-header__user > li .userdown,
html.theme-dark.frontend-theme .stui-header__user > li .userdown::before {
    border-color: var(--front-border);
    background: var(--front-surface);
}

html.theme-dark.frontend-theme .stui-header__user .userdown .history a {
    color: var(--front-text);
}

html.theme-dark.frontend-theme .stui-header__user .userdown .history a:hover {
    background: var(--front-soft);
    color: var(--front-blue);
}

html.theme-dark.frontend-theme .stui-foot,
html.theme-dark.frontend-theme .stui-foot.clearfix {
    border-color: var(--front-border);
    background: #172235;
}

html.theme-dark.frontend-theme .stui-foot p,
html.theme-dark.frontend-theme .stui-foot .masked,
html.theme-dark.frontend-theme .stui-foot .masked * {
    color: var(--front-muted) !important;
    -webkit-text-fill-color: var(--front-muted) !important;
}

html.theme-dark.frontend-theme #footer {
    border-color: var(--front-border);
    background: #172235;
    color: var(--front-muted);
}

html.theme-dark.frontend-theme body.frontend-user-page .sidenav,
html.theme-dark.frontend-theme body.frontend-user-page .panel.panel-default,
html.theme-dark.frontend-theme body.frontend-user-page .panel-col,
html.theme-dark.frontend-theme body.frontend-user-page .login-section {
    border-color: var(--front-border);
    background: var(--front-surface);
    color: var(--front-text);
    box-shadow: var(--front-shadow);
}

html.theme-dark.frontend-theme body.frontend-user-page .sidenav .list-group-heading,
html.theme-dark.frontend-theme body.frontend-user-page .panel-default > .panel-heading,
html.theme-dark.frontend-theme body.frontend-user-page .panel-heading,
html.theme-dark.frontend-theme body.frontend-user-page .login-section .logon-tab {
    border-color: var(--front-border);
    background: var(--front-soft);
    color: var(--front-text);
}

html.theme-dark.frontend-theme body.frontend-user-page .sidenav .list-group-item > a,
html.theme-dark.frontend-theme body.frontend-user-page .form-horizontal .control-label,
html.theme-dark.frontend-theme body.frontend-user-page label,
html.theme-dark.frontend-theme body.frontend-user-page .help-block,
html.theme-dark.frontend-theme body.frontend-user-page .text-muted {
    color: var(--front-muted);
}

html.theme-dark.frontend-theme body.frontend-user-page .sidenav .list-group-item:hover,
html.theme-dark.frontend-theme body.frontend-user-page .sidenav .list-group-item.active {
    background: var(--front-soft);
}

html.theme-dark.frontend-theme body.frontend-user-page .sidenav .list-group-item.active > a,
html.theme-dark.frontend-theme body.frontend-user-page .sidenav .list-group-item.active i {
    color: var(--front-blue);
}

html.theme-dark.frontend-theme body.frontend-user-page .panel-body,
html.theme-dark.frontend-theme body.frontend-user-page .panel-col > .es-section,
html.theme-dark.frontend-theme body.frontend-user-page .es-section {
    color: var(--front-text);
}

html.theme-dark.frontend-theme body.frontend-user-page .well,
html.theme-dark.frontend-theme body.frontend-user-page #user-search-form {
    border-color: var(--front-border);
    background: rgba(36, 49, 73, .72);
    color: var(--front-text);
}

html.theme-dark.frontend-theme body.frontend-user-page .form-control {
    border-color: #465774;
    background: #172235;
    color: var(--front-text);
}

html.theme-dark.frontend-theme body.frontend-user-page .form-control::placeholder {
    color: #a9b7ce;
}

html.theme-dark.frontend-theme body.frontend-user-page .form-control:focus {
    border-color: var(--front-blue);
    background: #172235;
    box-shadow: 0 0 0 3px rgba(161, 181, 244, .14);
}

html.theme-dark.frontend-theme body.frontend-user-page .btn-default,
html.theme-dark.frontend-theme body.frontend-user-page .nav-pills > li > a {
    border-color: var(--front-border);
    background: var(--front-surface);
    color: var(--front-text);
}

html.theme-dark.frontend-theme body.frontend-user-page .table {
    color: var(--front-text);
}

html.theme-dark.frontend-theme body.frontend-user-page .table > tbody > tr > th,
html.theme-dark.frontend-theme body.frontend-user-page .table > tbody > tr > td,
html.theme-dark.frontend-theme body.frontend-user-page .table > thead > tr > th,
html.theme-dark.frontend-theme body.frontend-user-page .table > thead > tr > td {
    border-color: var(--front-border);
}

html.theme-dark.frontend-theme body.frontend-user-page .table th {
    background: var(--front-soft);
    color: var(--front-text);
}

html.theme-dark.frontend-theme body.frontend-user-page .table td {
    background: var(--front-surface);
    color: var(--front-text);
}

html.theme-dark.frontend-theme body.frontend-user-page .points-summary {
    border: 1px solid var(--front-border);
    background: linear-gradient(120deg, #1b2639, #202d42);
    color: var(--front-text);
}

html.theme-dark.frontend-theme body.frontend-user-page .points-summary strong {
    color: #9fc1ff;
}

html.theme-dark.frontend-theme body.frontend-user-page .points-package {
    border-color: var(--front-border);
    background: var(--front-surface);
    color: var(--front-text);
}

html.theme-dark.frontend-theme body.frontend-user-page .points-package > span,
html.theme-dark.frontend-theme body.frontend-user-page .points-package small {
    color: var(--front-muted);
}

html.theme-dark.frontend-theme body.frontend-user-page .points-package strong {
    color: var(--front-text);
}

html.theme-dark.frontend-theme body.frontend-user-page .points-package:hover,
html.theme-dark.frontend-theme body.frontend-user-page .points-package:has(input:checked) {
    border-color: #7197e8;
    background: #202d42;
    box-shadow: 0 0 0 1px rgba(113, 151, 232, .35), 0 8px 20px rgba(0, 0, 0, .18);
}

html.theme-dark.frontend-theme body.frontend-user-page .points-package input {
    accent-color: #9fc1ff;
}

html.theme-dark.frontend-theme body.frontend-user-page .dropdown-menu,
html.theme-dark.frontend-theme body.frontend-user-page .modal-content,
html.theme-dark.frontend-theme body.frontend-user-page .popover {
    border-color: var(--front-border);
    background: var(--front-surface);
    color: var(--front-text);
}

html.theme-dark.frontend-theme body.frontend-auth-page .login-section .logon-tab > a {
    background: var(--front-soft);
    color: var(--front-muted);
}

html.theme-dark.frontend-theme body.frontend-auth-page .login-main,
html.theme-dark.frontend-theme body.frontend-auth-page .login-main p {
    color: var(--front-text);
}
