/* Shared interface. Test-specific stimuli and state classes are intentionally untouched. */
@font-face {
    font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url('../fonts/inter-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
body.ui-page {
    --ui-ink: #101a30;
    --ui-text: #50627e;
    --ui-muted: #6c7f99;
    --ui-blue: #086ac5;
    --ui-blue-hover: #07549b;
    --ui-bg: #f0f8ff;
    --ui-pale: #e4f2ff;
    --ui-line: #dcebf8;
    margin: 0; min-height: 100vh; height: auto;
    display: flex; flex-direction: column;
    background: var(--ui-bg); color: var(--ui-text);
    font: 14px/1.55 Inter, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.ui-page *, .ui-page *::before, .ui-page *::after { box-sizing: border-box; }
.ui-page [hidden] { display: none !important; }
.ui-page :is(h1,h2,h3,h4,h5,h6,p,span,li,a,label,input,textarea,select,button) { font-family: inherit; }
.ui-page :is(h1,h2,h3,h4,h5,h6) { color: var(--ui-ink); font-weight: 650; line-height: 1.25; }
.ui-page h1 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 40px); letter-spacing: -1.1px; }
.ui-page h2 { margin: 0 0 12px; font-size: 24px; letter-spacing: -.6px; }
.ui-page h3 { font-size: 18px; }
.ui-page a { color: var(--ui-blue); text-decoration: none; }
.ui-page a:hover { color: var(--ui-blue-hover); }
.ui-page :is(a,button,input,textarea,select,summary):focus-visible { outline: 3px solid #82bdf0; outline-offset: 3px; }
.ui-page button { cursor: pointer; }
.ui-page .ui-icon {
    display: inline-block; flex: 0 0 auto; width: 21px; height: 21px;
    background: currentColor; vertical-align: middle;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}
.ui-page .ui-icon-circle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: #eaf6ff; color: var(--ui-blue); }
.ui-page .ui-icon-circle .ui-icon { width: 25px; height: 25px; }
.ui-page .ui-skip { position: absolute; left: 16px; top: -100px; padding: 12px 18px; z-index: 1100; border-radius: 8px; background: #fff; }
.ui-page .ui-skip:focus { top: 12px; }
.ui-page header.app-header { display: block; width: 100%; padding: 0; background: #fff; border-bottom: 1px solid var(--ui-line); position: relative; z-index: 20; }
.ui-page .app-header-inner { min-height: 70px; max-width: 1536px; padding: 0 44px; margin: auto; display: flex; align-items: center; gap: 40px; }
.ui-page .ui-brand { display: inline-flex; align-items: center; gap: 12px; color: #0c172c; font-size: 29px; font-weight: 700; line-height: 1; letter-spacing: -.6px; white-space: nowrap; }
.ui-page .ui-brand > span { color: #086dc2; font: 44px/1 Georgia, 'Times New Roman', serif; }
.ui-page .app-top-nav { display: flex; gap: 32px; align-self: stretch; margin-left: 64px; }
.ui-page .app-top-nav > a { display: flex; align-items: center; position: relative; font-size: 15px; color: var(--ui-text); }
.ui-page .app-top-nav > a:hover, .ui-page .app-top-nav > a.is-active { color: var(--ui-blue); }
.ui-page .app-top-nav > .is-active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--ui-blue); }
.ui-page .app-header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.ui-page .ui-account { position: relative; }
.ui-page .ui-account summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; color: #314866; padding: 8px 0; }
.ui-page .ui-account summary::-webkit-details-marker { display: none; }
.ui-page .ui-avatar-initials { display: flex; justify-content: center; align-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ui-pale); font-size: 14px; }
.ui-page .ui-account-menu { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; min-width: 240px; padding: 8px; border: 1px solid var(--ui-line); background: #fff; border-radius: 12px; box-shadow: 0 12px 40px #143c6324; }
.ui-page .ui-account-menu :is(a,button) { display: flex; align-items: center; gap: 12px; color: var(--ui-text); padding: 11px 12px; background: transparent; border: 0; width: 100%; text-align: left; border-radius: 7px; font-size: 14px; }
.ui-page .ui-account-menu :is(a,button):hover { background: var(--ui-bg); color: var(--ui-blue); }
.ui-page .ui-icon-button { border: 0; background: transparent; color: var(--ui-text); display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 8px; border-radius: 7px; }
.ui-page .app-menu-toggle, .ui-page .ui-chat-menu { display: none; }
.ui-page .ui-chat-menu { width: 36px; height: 40px; align-items: center; justify-content: center; }
.ui-page .ui-chat-menu .hamburger-box { width: 22px; height: 20px; }
.ui-page .ui-chat-menu .hamburger-inner, .ui-page .ui-chat-menu .hamburger-inner::before, .ui-page .ui-chat-menu .hamburger-inner::after { width: 22px; height: 2px; background: var(--ui-text); }
.ui-page .ui-chat-menu .hamburger-inner::before { top: -7px; }
.ui-page .ui-chat-menu .hamburger-inner::after { bottom: -7px; }
.ui-page .ui-chat-menu.is-active .hamburger-inner::after { bottom: 0; }
.ui-page .wrap.app-workspace { flex: 1; margin: 0; padding: 0; min-height: 0; width: 100%; display: grid; }
.ui-page .app-workspace.has-sidebar { grid-template-columns: 248px minmax(0,1fr); }
.ui-page .app-content { min-width: 0; padding: 22px 44px 32px; }
.ui-page .container.ui-content { width: 100%; max-width: 1250px; margin: auto; padding: 0; min-width: 0; }
.ui-page .container.ui-content::before, .ui-page .container.ui-content::after { display: none; }
.ui-page .ui-content > .container { width: 100%; max-width: 100%; }
.ui-page .app-sidebar { display: flex; flex-direction: column; min-width: 0; padding: 25px 12px 24px; background: #fff; border-right: 1px solid var(--ui-line); }
.ui-page .ui-sidebar-label { text-transform: uppercase; letter-spacing: .8px; color: var(--ui-muted); font-size: 11px; margin: 3px 20px 18px; }
.ui-page .ui-side-nav { display: flex; flex-direction: column; gap: 7px; }
.ui-page .ui-side-nav a, .ui-page .ui-logout { display: flex; align-items: center; gap: 20px; padding: 13px 21px; line-height: 1.5; min-height: 48px; color: var(--ui-text); border-radius: 8px; font-size: 14px; }
.ui-page .ui-side-nav .ui-icon, .ui-page .ui-logout .ui-icon { width: 23px; height: 23px; }
.ui-page .ui-side-nav a:hover, .ui-page .ui-side-nav a.is-active { background: var(--ui-pale); color: var(--ui-blue); }
.ui-page .ui-side-nav a.is-active { font-weight: 500; }
.ui-page .ui-sidebar-divider { margin: 14px 18px 4px; border-top: 1px solid var(--ui-line); }
.ui-page .ui-sidebar-bottom { margin-top: auto; padding-top: 36px; }
.ui-page .ui-logout { background: transparent; border: 0; width: 100%; text-align: left; }
.ui-page .ui-logout:hover { background: var(--ui-bg); color: var(--ui-blue); }
.ui-page .breadcrumb.ui-breadcrumbs { display: flex; flex-wrap: wrap; gap: 0; padding: 0; margin: 0 0 14px; background: transparent; font-size: 12px; color: var(--ui-muted); }
.ui-page .ui-breadcrumbs > .active { color: var(--ui-muted); }
.ui-page .ui-breadcrumbs > li + li::before { padding: 0 10px; color: #8da1b9; }
.ui-page .ui-page-heading { margin-bottom: 22px; }
.ui-page .ui-page-heading p { margin: 0; font-size: 18px; color: var(--ui-text); }
.ui-page .ui-card { background: #fff; border: 1px solid var(--ui-line); border-radius: 11px; padding: 24px; box-shadow: 0 3px 12px #224e7803; }
.ui-page .ui-notice { display: flex; align-items: center; gap: 18px; background: var(--ui-pale); color: var(--ui-blue); padding: 14px 20px; border-radius: 8px; margin-bottom: 20px; }
.ui-page .ui-notice p { margin: 0; font-size: 13px; }
.ui-page .ui-empty { text-align: center; padding: 50px 24px; }
.ui-page .ui-empty h2 { margin-top: 18px; font-size: 22px; }
.ui-page .ui-empty p { margin: 0 0 20px; color: var(--ui-muted); }
.ui-page .ui-empty .ui-icon-circle { width: 60px; height: 60px; }
.ui-page .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 20px; border-radius: 7px; font: 500 14px/1.45 Inter, Arial, sans-serif; text-shadow: none; box-shadow: none; white-space: normal; transition: background .15s, border-color .15s; }
.ui-page :is(.btn-primary,.btn-success,.btn-info) { background: var(--ui-blue); border: 1px solid var(--ui-blue); color: #fff; }
.ui-page :is(.btn-primary,.btn-success,.btn-info):hover { background: var(--ui-blue-hover); border-color: var(--ui-blue-hover); color: #fff; }
.ui-page :is(.btn-outline,.btn-default) { border: 1px solid #3d8ed9; background: #fff; color: var(--ui-blue); }
.ui-page :is(.btn-outline,.btn-default):hover { background: #edf7ff; }
.ui-page .btn-danger { background: #b23e50; border-color: #b23e50; color: #fff; }
.ui-page :is(.btn-sm,.btn-xs) { min-height: 32px; padding: 5px 11px; font-size: 12px; }
.ui-page .btn[disabled], .ui-page .btn.disabled { opacity: .55; cursor: not-allowed; }
.ui-page .form-group { margin-bottom: 20px; }
.ui-page label { font-size: 14px; font-weight: 500; color: var(--ui-ink); }
.ui-page .form-control { min-height: 43px; height: auto; padding: 10px 13px; border: 1px solid #d1dfed; border-radius: 7px; box-shadow: none; background: #fff; color: var(--ui-ink); font-size: 14px; }
.ui-page .form-control:focus { border-color: #4899df; box-shadow: 0 0 0 3px #086ac512; }
.ui-page .has-error .form-control { border-color: #c15763; }
.ui-page .help-block { font-size: 12px; }
.ui-page :is(input[type=checkbox],input[type=radio]) { accent-color: var(--ui-blue); }
.ui-page .alert { border-radius: 9px; border: 1px solid; padding: 14px 18px; }
.ui-page .result-share-link { overflow-wrap: anywhere; }
.ui-page .alert-info { background: var(--ui-pale); border-color: #c9e2fa; color: #165b93; }
.ui-page .alert-success { background: #eef9f4; border-color: #cde8dc; color: #216a4d; }
.ui-page .alert-danger { background: #fff2f3; border-color: #efced3; color: #963346; }
.ui-page .alert-warning { background: #fff9eb; border-color: #efe0b8; color: #805e1e; }
.ui-page .pagination > li > a, .ui-page .pagination > li > span { border-color: var(--ui-line); color: var(--ui-blue); border-radius: 5px; margin: 0 2px; }
.ui-page .pagination > .active > :is(a,span) { background: var(--ui-blue); border-color: var(--ui-blue); color: #fff; }
.ui-page .panel { border: 1px solid var(--ui-line); border-radius: 10px; overflow: hidden; box-shadow: none; }
.ui-page .panel-heading { color: var(--ui-ink); background: #f5faff; border-color: var(--ui-line); padding: 15px 18px; }
.ui-page .table { background: #fff; color: var(--ui-text); }
.ui-page .table > :is(thead,tbody,tfoot) > tr > :is(th,td) { padding: 13px 15px; border-color: var(--ui-line); vertical-align: middle; }
.ui-page .table > thead > tr > th { background: #f7fbff; font-size: 12px; font-weight: 600; color: var(--ui-ink); }
.ui-page .table-striped > tbody > tr:nth-of-type(odd) { background: #f9fcff; }
.ui-page .table-hover > tbody > tr:hover { background: #edf6ff; }
.ui-page .grid-view { overflow-x: auto; margin-bottom: 20px; }
.ui-page .summary { color: var(--ui-muted); font-size: 12px; margin-bottom: 12px; }
.ui-page .fancybox-content, .ui-page .modal-content { border-radius: 12px; border: 1px solid var(--ui-line); box-shadow: 0 12px 60px #143c6324; }
.ui-page .fancybox-content { max-width: min(95vw, 900px); }
.ui-page .profile-modal { width: 520px; max-width: 100%; padding: 32px; }
.ui-page .fancybox-content > .profile-modal { width: 100%; padding: 0; }
.ui-page .profile-modal > p { color: var(--ui-muted); }
.ui-page .profile-modal input[type=file] { width: 100%; padding: 16px 12px; border: 1px dashed #b5d2ed; border-radius: 8px; background: #f5faff; font-size: 13px; }
.ui-page .app-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding: 15px 44px; border-top: 1px solid var(--ui-line); background: #fff; color: var(--ui-muted); font-size: 12px; }
.ui-page .ui-brand-small { font-size: 18px; gap: 7px; }
.ui-page .ui-brand-small > span { font-size: 29px; }
.ui-page .ui-copyright { border-left: 1px solid #b5c6d8; padding-left: 16px; }
.ui-page .app-footer nav { display: flex; flex-wrap: wrap; gap: 26px; margin-left: auto; }
.ui-page .app-footer nav a { color: var(--ui-text); }
.ui-page .ui-socials { display: flex; align-items: center; gap: 17px; margin-left: 14px; }
.ui-page .ui-socials a { font-size: 20px; }
.ui-page .ui-socials .fa { font-family: FontAwesome; }
/* Catalog: the original routes, grouped in a searchable directory. */
.ui-page.section-tests .ui-side-nav .ui-icon { color: var(--ui-blue); width: 22px; height: 22px; }
.ui-page .catalog-search { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #caddeb; border-radius: 7px; padding: 0 16px; margin: 0 0 20px; min-height: 45px; }
.ui-page .catalog-search:focus-within { border-color: #4899df; box-shadow: 0 0 0 3px #086ac510; }
.ui-page .catalog-search input { border: 0; outline: 0; background: transparent; color: var(--ui-ink); font-size: 14px; min-width: 0; flex: 1; height: 44px; }
.ui-page .catalog-search input::placeholder { color: #8498b1; }
.ui-page .catalog-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ui-page .catalog-search input:focus-visible { outline: 0; }
.ui-page .catalog-groups { display: grid; gap: 22px; }
.ui-page .catalog-card { padding: 12px 22px 12px 16px; scroll-margin-top: 20px; }
.ui-page .catalog-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 3px; }
.ui-page .catalog-heading h2 { font-size: 20px; margin: 0; letter-spacing: -.5px; }
.ui-page .catalog-tests { padding: 0; margin: 0 0 0 43px; list-style: none; }
.ui-page .catalog-tests li + li { border-top: 1px solid var(--ui-line); }
.ui-page .catalog-tests a { display: flex; align-items: center; gap: 20px; padding: 8px 0; color: #455d7e; line-height: 1.45; font-size: 13px; }
.ui-page .catalog-tests a:hover { color: var(--ui-blue); background: #f6fbff; }
.ui-page .catalog-tests a > .ui-icon { width: 17px; height: 19px; color: #0879d9; }
.ui-page .catalog-tests a .catalog-chevron { margin-left: auto; color: #829abc; width: 16px; height: 16px; }
.ui-page .catalog-tests a > span:not(.ui-icon) { flex: 1; }
/* Dashboard */
.ui-page .dashboard-welcome { position: relative; overflow: hidden; display: flex; align-items: center; gap: 28px; padding: 22px 26px; margin-bottom: 20px; border-radius: 11px; background: linear-gradient(110deg,#e3f3ff,#dff0ff); }
.ui-page .dashboard-welcome::after { content: ''; position: absolute; width: 450px; height: 300px; border: 65px solid #b5dfff55; border-radius: 50%; right: -80px; top: 15px; transform: rotate(-30deg); pointer-events: none; }
.ui-page .dashboard-welcome > * { position: relative; z-index: 1; }
.ui-page .dashboard-emblem { display: flex; align-items: center; justify-content: center; width: 82px; height: 82px; flex-shrink: 0; background: #ffffffaa; color: var(--ui-blue); font: 50px/1 Georgia,serif; border-radius: 50%; }
.ui-page .dashboard-welcome h2 { font-size: 23px; margin: 0 0 5px; }
.ui-page .dashboard-welcome p { margin: 0; max-width: 510px; color: #607996; font-size: 15px; }
.ui-page .dashboard-grid { display: grid; grid-template-columns: minmax(0,2.05fr) minmax(260px,1fr); gap: 20px; margin-bottom: 20px; }
.ui-page .profile-steps { padding: 20px 24px; }
.ui-page .profile-steps-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 15px; }
.ui-page .profile-steps-heading h2 { margin: 0; }
.ui-page .profile-progress { min-width: 150px; max-width: 200px; text-align: right; font-size: 13px; }
.ui-page .profile-progress progress { display: block; width: 100%; height: 12px; margin-top: 6px; border: none; border-radius: 10px; overflow: hidden; background: #e8edf3; color: var(--ui-blue); }
.ui-page .profile-progress progress::-webkit-progress-bar { background: #e8edf3; border-radius: 10px; }
.ui-page .profile-progress progress::-webkit-progress-value { background: var(--ui-blue); border-radius: 10px; }
.ui-page .profile-progress progress::-moz-progress-bar { background: var(--ui-blue); border-radius: 10px; }
.ui-page .profile-checklist { list-style: none; margin: 0; padding: 0; }
.ui-page .profile-step { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 24px; border-top: 1px solid var(--ui-line); padding: 17px 0; scroll-margin-top: 20px; }
.ui-page .step-number { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; font-size: 21px; font-weight: 500; color: var(--ui-blue); background: #eaf6ff; }
.ui-page .profile-step.is-complete .step-number { background: #e9f7f0; color: #247657; }
.ui-page .profile-step h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.25px; }
.ui-page .profile-step p { margin: 0; color: var(--ui-muted); font-size: 13px; }
.ui-page .profile-step .btn { min-width: 125px; }
.ui-page .profile-step .step-delete { display: inline-block; font-size: 12px; margin-top: 4px; color: #a34858; }
.ui-page .profile-preview-link { display: inline-flex; gap: 9px; align-items: center; padding-top: 12px; font-size: 15px; }
.ui-page .dashboard-aside { display: grid; align-content: start; gap: 18px; }
.ui-page .profile-summary { padding: 20px 22px 24px; text-align: center; }
.ui-page .profile-summary h2 { text-align: left; font-size: 23px; }
.ui-page .profile-picture { display: flex; align-items: center; justify-content: center; width: 110px; height: 110px; margin: 18px auto 8px; border-radius: 50%; background: #e9edf3; color: #647a95; overflow: hidden; }
.ui-page .profile-picture img { width: 100%; height: 100%; object-fit: cover; }
.ui-page .profile-picture .ui-icon { width: 58px; height: 58px; }
.ui-page .profile-status { display: inline-block; padding: 3px 17px; margin: 0 0 12px; border-radius: 20px; background: #e9eef4; font-size: 12px; color: #536b87; }
.ui-page .profile-summary > p { margin-bottom: 3px; color: var(--ui-muted); font-size: 15px; }
.ui-page .profile-summary .profile-display-name { font-size: 15px; font-weight: 600; color: var(--ui-ink); margin: 10px 0; overflow-wrap: anywhere; }
.ui-page .profile-diploma { display: flex; align-items: flex-start; gap: 22px; padding: 22px; background: #e0f0fe; border-radius: 11px; }
.ui-page .profile-diploma .ui-icon-circle { background: #f4fbff; width: 58px; height: 58px; }
.ui-page .profile-diploma .ui-icon { width: 34px; height: 34px; }
.ui-page .profile-diploma h3 { margin: 1px 0 6px; font-size: 16px; }
.ui-page .profile-diploma p { margin: 0; font-size: 13px; color: #5c7490; }
.ui-page .dashboard-requirements { margin-bottom: 20px; padding: 18px 24px; }
.ui-page .dashboard-requirements h2 { margin-bottom: 2px; }
.ui-page .dashboard-requirements > p { margin-bottom: 16px; max-width: 850px; line-height: 1.4; color: var(--ui-muted); }
.ui-page .requirements-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 23px; }
.ui-page .requirement { display: flex; align-items: flex-start; gap: 23px; }
.ui-page .requirement + .requirement { border-left: 1px solid var(--ui-line); padding-left: 23px; }
.ui-page .requirement .ui-icon-circle { width: 62px; height: 62px; }
.ui-page .requirement .ui-icon { width: 32px; height: 32px; }
.ui-page .requirement h3 { margin: 2px 0 4px; font-size: 14px; }
.ui-page .requirement p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ui-muted); }
.ui-page .dashboard-extra { margin-bottom: 20px; }
.ui-page .dashboard-results { list-style: none; margin: 0; padding: 0; }
.ui-page .dashboard-results li { padding: 12px 0; border-top: 1px solid var(--ui-line); }
.ui-page .dashboard-results .result-actions { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 5px; font-size: 12px; }
.ui-page #profile-edit { background: #fff; border: 1px solid var(--ui-line); border-radius: 11px; padding: 26px 14px 10px; display: flow-root; }
.ui-page .info-wrapper, .ui-page .moder-wrapper { background: #fff; border: 1px solid var(--ui-line); padding: 24px; border-radius: 11px; }
.ui-page .info-wrapper .info-row { gap: 8px; padding: 8px 0; border-bottom: 1px solid #eef4fa; font-size: 14px; }
.ui-page .info-wrapper .info-name h4 { color: var(--ui-ink); }
.ui-page .personal { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 32px; margin-bottom: 24px; }
.ui-page .personal .avatar { width: auto; padding: 0; min-width: 0; }
.ui-page .personal .avatar > img { width: 100%; max-width: 220px; max-height: 280px; object-fit: cover; border-radius: 10px; }
.ui-page .personal .avatar .btns { display: grid; gap: 10px; margin-top: 20px; }
.ui-page .personal .avatar .btns .btn { margin: 0; }
.ui-page .personal .info { padding: 0; margin: 0; min-width: 0; }
.ui-page .personal .info .text { overflow-wrap: anywhere; }
.ui-page .personal .info .texts { flex-wrap: wrap; gap: 20px; }
.ui-page .certificates { margin-bottom: 20px; }
/* Existing secondary screens retain their widgets, data and form handlers. */
.ui-page.section-site :is(.site-register,.site-reset,.site-password-reset,.site-contact,.site-error,.site-about,.site-request-password-reset,.site-reset-password) { padding: 30px; border: 1px solid var(--ui-line); border-radius: 12px; background: #fff; }
.ui-page.section-site .ui-content > form { max-width: 680px; background: #fff; border: 1px solid var(--ui-line); border-radius: 12px; padding: 28px; margin-top: 22px; }
.ui-page.section-site .ui-content .col-lg-5 { width: 100%; max-width: 620px; }
.ui-page .forum .table { margin-bottom: 0; }
.ui-page .forum .grid-view { border-radius: 11px; border: 1px solid var(--ui-line); background: #fff; }
.ui-page .forum .table thead tr:first-child td { background: #e6f3ff; padding: 18px 20px; text-align: left; font-weight: 600; }
.ui-page .forum .table thead a { color: var(--ui-blue); }
.ui-page .forum .trigger { float: right; cursor: pointer; color: #6496c2; font-size: 20px; }
.ui-page .forum :is(.post,.post-block,.topic) { border-color: var(--ui-line); border-radius: 9px; }
.ui-page .admin-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.ui-page .admin-link { display: flex; align-items: center; gap: 20px; padding: 24px; background: #fff; border: 1px solid var(--ui-line); border-radius: 11px; }
.ui-page .admin-link:hover { border-color: #91bee7; box-shadow: 0 6px 20px #164e7c0a; }
.ui-page .admin-link h2 { font-size: 18px; margin: 0 0 5px; }
.ui-page .admin-link p { color: var(--ui-muted); margin: 0; font-size: 13px; }
.ui-page .admin-link > .ui-icon { margin-left: auto; }
.ui-page.section-admin .OnSip-default-index { padding-left: 0; }
.ui-page.section-admin #sidebar { position: static; width: auto; margin-bottom: 22px; }
.ui-page.section-admin #sidebar .nav { display: flex; flex-wrap: wrap; gap: 8px; }
.ui-page.section-admin #sidebar .nav a { border-radius: 7px; }
.ui-page :is(.fc-toolbar,.fc-head) { color: var(--ui-ink); }
.ui-page .fc-unthemed td, .ui-page .fc-unthemed th { border-color: var(--ui-line); }
.ui-page .fc-view-container { background: #fff; border-radius: 10px; overflow: hidden; }
.ui-page .fc-button { background: #fff; border: 1px solid #c2d8ec; color: var(--ui-blue); box-shadow: none; text-shadow: none; border-radius: 6px; }
.ui-page .fc-state-active { background: var(--ui-pale); }
.ui-page.section-tests .ui-content > :is(.bek,.test-wrapper,.tests-index,.test-container) { border-radius: 10px; }
/* Chat: preserve the React root and mobile panel selectors. */
.ui-page.section-conversation .app-sidebar .main-menu-window { display: block; width: 100%; padding: 0; }
.ui-page.section-conversation .app-sidebar .menu { max-height: none; height: auto; overflow: visible; margin: 0; }
.ui-page.section-conversation #left-menu { padding: 0; border: 0; background: transparent; }
.ui-page.section-conversation .conversation-workspace { min-width: 0; }
.ui-page.section-conversation .app-sidebar .logout-menu { display: flex; align-items: center; gap: 20px; width: 100%; padding: 13px 21px; background: transparent; border: 0; color: var(--ui-text); text-align: left; border-radius: 8px; }
.ui-page.section-conversation .app-sidebar .logout-menu:hover { background: var(--ui-pale); color: var(--ui-blue); }
.ui-page.section-conversation #left-menu li { list-style: none; border: 0; }
.ui-page.section-conversation #left-menu li a { display: flex; align-items: center; gap: 20px; min-height: 48px; padding: 13px 21px; border-radius: 8px; color: var(--ui-text); font-size: 14px; }
.ui-page.section-conversation #left-menu li a:hover, .ui-page.section-conversation #left-menu li a.is-active { background: var(--ui-pale); color: var(--ui-blue); }
.ui-page.section-conversation #left-menu .icon { color: var(--ui-blue); }
.ui-page.section-conversation #left-menu .icon .ui-icon { width: 23px; height: 23px; }
.ui-page.section-conversation .profile-settings-menu { padding: 0 10px 18px; }
.ui-page.section-conversation .profile-settings-back { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 10px; border-radius: 8px; color: var(--ui-blue); font-size: 13px; }
.ui-page.section-conversation .profile-settings-title { margin: 18px 10px 12px; font-size: 17px; font-weight: 600; color: var(--ui-ink); }
.ui-page.section-conversation .profile-settings-link { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 10px; border-radius: 8px; font-size: 13px; line-height: 1.5; color: var(--ui-text); text-align: left; }
.ui-page.section-conversation .profile-settings-link:hover, .ui-page.section-conversation .profile-settings-back:hover { color: var(--ui-blue); background: var(--ui-pale); }
.ui-page.section-conversation .profile-settings-link .ui-icon { flex-shrink: 0; width: 19px; height: 19px; color: var(--ui-blue); }
.ui-page.section-conversation .profile-settings-card { margin-top: 15px; padding: 12px 4px 4px; border: 1px solid var(--ui-line); border-radius: 10px; background: #f8fbff; }
.ui-page.section-conversation .profile-settings-card h3 { display: flex; align-items: center; gap: 9px; margin: 0 8px 10px; font-size: 13px; font-weight: 600; color: var(--ui-ink); }
.ui-page.section-conversation .profile-settings-status { display: flex; align-items: flex-start; gap: 7px; margin: 0 8px 6px; font-size: 12px; line-height: 1.5; color: var(--ui-muted); }
.ui-page.section-conversation .profile-settings-status .ui-icon { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; }
.ui-page.section-conversation .profile-settings-status.is-complete { color: #207a5d; }
.ui-page.section-conversation .profile-settings-link.is-danger { color: #a74444; }
.ui-page.section-conversation .conversation-diagnostics { margin: 14px 0 20px; padding: 12px 16px; border: 1px solid var(--ui-line); border-radius: 10px; background: #fff; font-size: 12px; }
.ui-page.section-conversation .conversation-diagnostics summary { cursor: pointer; color: var(--ui-muted); }
.ui-page.section-conversation .conversation-diagnostics p { font-size: 12px; margin: 12px 0; }
.ui-page.section-conversation .conversation-diagnostics-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ui-page.section-conversation .conversation-diagnostics .btn { font-size: 12px; padding: 8px 12px; }
.ui-page.section-conversation .dialog-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--ui-line); }
.ui-page.section-conversation .dialog-heading h2 { margin: 0; font-size: 17px; }
.ui-page.section-conversation .dialog-feedback { padding: 10px 20px; font-size: 13px; color: #9a3d3d; background: #fff4f4; }
.ui-page.section-conversation .dialog-feedback:empty { display: none; }
.ui-page.section-conversation .messages .dialog-empty { padding: 24px; text-align: center; color: var(--ui-muted); }
.ui-page.section-conversation .window { gap: 18px; }
.ui-page.section-conversation .window .convo-block { min-width: 0; border: 1px solid var(--ui-line); border-radius: 12px; background: #fff; overflow: hidden; }
.ui-page.section-conversation #users-list { min-width: 0; }
.ui-page.section-conversation .users-wrapper { border: 1px solid var(--ui-line); border-radius: 11px; background: #fff; margin-bottom: 16px; overflow: hidden; }
.ui-page.section-conversation .users-wrapper .header { background: #e9f5ff; color: var(--ui-ink); border-color: var(--ui-line); padding: 14px; }
.ui-page.section-conversation .users-wrapper .content { padding: 10px; }
.ui-page.section-conversation #doctor-wrapper { border: 1px solid var(--ui-line); border-radius: 10px; background: #fff; }
.ui-page.section-conversation #doctor-wrapper .doc-card { border-radius: 9px; border-color: var(--ui-line); }
.ui-page.section-conversation #doctor-wrapper .doc-select { border-color: var(--ui-line); border-radius: 9px; background: #fff; }
.ui-page.section-conversation .requests .item { border: 1px solid var(--ui-line); border-radius: 10px; background: #fff; }
.ui-page.section-conversation .mobile-controls button { border: 1px solid #b9d7f0; border-radius: 7px; background: #fff; color: var(--ui-blue); padding: 10px; }
.ui-page.section-conversation .panel-content { background: #f6fbff; max-width: 360px; overflow-y: auto; }
.ui-page.section-conversation .panel-content .panel-header { background: #fff; border-color: var(--ui-line); }
.ui-page.section-conversation .panel-content .panel-body .menu ul li { border-color: var(--ui-line); }
.ui-page.section-conversation .panel-content .panel-body { height: auto; }
.ui-page.section-conversation .panel-content .panel-body .menu { max-height: none; min-height: 0; height: auto; overflow: visible; }
.ui-page .wrap .container.ui-content .catalog-tests li { list-style: none; }
.ui-page .wrap .container.ui-content .ui-page-heading h1 { font-size: clamp(26px,3vw,40px); color: var(--ui-ink); }
.ui-page.test-runner .test-content { background: #fff; padding: 28px; border: 1px solid var(--ui-line); border-radius: 11px; min-width: 0; }
.ui-page.test-runner .wrap .container.ui-content h1 { font-size: 30px; text-align: left; margin-bottom: 20px; color: var(--ui-ink); }
.ui-page.test-runner .wrap .container.ui-content h2 { font-size: 22px; }
.ui-page.test-runner .ui-content > .summary { font-size: 14px; line-height: 1.7; color: var(--ui-text); }
.ui-page.test-runner .wrap .container .actions .action a,
.ui-page.test-runner .wrap .container .test .intro .start-test { color: var(--ui-blue); border-color: #80b4e3; background: #f5faff; border-radius: 8px; padding: 13px 20px; font-size: 14px; }
.ui-page.test-runner .wrap .container .actions .action a:hover { background: #e6f3ff; }
.ui-page.test-runner .wrap .container .test .main-test .disclaimer { border-color: var(--ui-line); background: #f5faff; padding: 18px; border-radius: 9px; font-size: 13px; text-align: left; }
.ui-page .ui-form-card { display: flow-root; }
.ui-page .ui-table-scroll { width: 100%; overflow-x: auto; margin-bottom: 20px; border-radius: 8px; }
.ui-page .ui-page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.ui-page .ui-auth-card { width: 100%; max-width: 510px; background: #fff; border: 1px solid var(--ui-line); border-radius: 13px; padding: 32px 38px; margin: 22px auto 0; box-shadow: 0 8px 30px #204c7505; }
.ui-page .ui-auth-card > .ui-icon-circle { width: 52px; height: 52px; margin-bottom: 18px; }
.ui-page .ui-auth-card h1 { font-size: 28px; letter-spacing: -.6px; margin-bottom: 10px; }
.ui-page .ui-auth-intro { font-size: 14px; color: var(--ui-muted); margin-bottom: 25px; }
.ui-page .ui-auth-card .btn { width: 100%; }
.ui-page .ui-auth-card button[name='register-button'] { max-width: none; }
.ui-page .ui-auth-card .form-group { margin-bottom: 18px; }
.ui-page .ui-auth-card .checkbox label { font-size: 13px; font-weight: 400; }
.ui-page .ui-auth-card .ui-auth-legal { font-size: 11px; line-height: 1.7; color: var(--ui-muted); margin: 18px 0 0; }
.ui-page .ui-auth-bottom { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--ui-line); text-align: center; font-size: 13px; }
.ui-page .ui-auth-bottom .ui-icon { margin-right: 8px; width: 17px; }
.ui-page .ui-role-options { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 5px; }
.ui-page .ui-role-options label { display: flex; gap: 8px; align-items: center; border: 1px solid var(--ui-line); padding: 11px 14px; border-radius: 7px; flex: 1; min-width: 145px; cursor: pointer; font-size: 13px; }
.ui-page .ui-role-options label:has(input:checked) { border-color: #4b98db; background: #f0f8ff; color: var(--ui-blue); }
.ui-page .ui-role-options input { margin: 0; }
.ui-page #registerform-user_group.ui-role-options { align-items: stretch; justify-content: flex-start; }
.ui-page #registerform-user_group.ui-role-options > .radio { flex: 1; min-width: 145px; margin: 0; }
.ui-page #registerform-user_group.ui-role-options label { margin: 0; padding: 11px 14px; border-radius: 7px; }
.ui-page #registerform-user_group.ui-role-options input { position: static; margin: 0; width: 16px; height: 16px; flex-shrink: 0; }
.ui-page .ui-captcha { display: flex; align-items: center; gap: 15px; }
.ui-page .ui-captcha img { max-width: 120px; cursor: pointer; }
.ui-page .ui-captcha input { min-width: 0; }
.ui-page .consultation-list { list-style: none; padding: 0; margin: 0; }
.ui-page .consultation-list li { display: flex; align-items: center; gap: 20px; padding: 18px 0; }
.ui-page .consultation-list li + li { border-top: 1px solid var(--ui-line); }
.ui-page .consultation-list h2 { font-size: 18px; margin: 0 0 5px; }
.ui-page .consultation-list p { margin: 0; }
.ui-page .consultation-list .btn { margin-left: auto; }
.ui-page #calendar_widget { min-width: 0; display: flow-root; }
.ui-page #calendar_widget > .col-md-12 { padding: 0; float: none; }
.ui-page #calendar_widget .calendar { background: #fff; border: 1px solid var(--ui-line); padding: 20px; border-radius: 11px; }
.ui-page #calendar_widget .calendar .navigation { display: flex; justify-content: space-between; align-items: center; padding: 0 0 20px; }
.ui-page #calendar_widget .calendar .navigation span { color: var(--ui-ink); font-size: 20px; font-weight: 600; }
.ui-page #calendar_widget .switch_month { padding: 10px 15px; border: 1px solid var(--ui-line); border-radius: 7px; }
.ui-page #calendar_widget .calendar .days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 6px; }
.ui-page #calendar_widget .calendar .days > :is(div,a) { min-width: 0; border: 1px solid var(--ui-line); padding: 23px 2px; border-radius: 6px; font-size: 14px; color: var(--ui-text); }
.ui-page #calendar_widget .calendar .days > .weekday { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #f5faff; padding: 12px 5px; }
.ui-page #calendar_widget .calendar .days > .past { background: #fafcfe; color: #8193a9; }
.ui-page #calendar_widget .calendar .days > .today { background: var(--ui-pale); color: var(--ui-blue); border-color: #7ab4e5; font-weight: 600; }
.ui-page #calendar_widget .calendar .days > .empty { border: 0; }
.ui-page #calendar_widget .calendar .days > a:hover { background: #e7f3ff; border-color: #96bee1; }
.ui-page #calendar_widget .calendar .days .count { background: var(--ui-blue); font-size: 11px; line-height: 20px; }
.ui-page .set-timing { min-width: 1080px; }
.ui-page .set-timing > :is(thead,tbody) > tr > :is(td,th) { padding: 10px 6px; }
.ui-page .set-timing input { min-width: 16px; min-height: 16px; }
.ui-page.section-requests .ui-content > form { background: #fff; padding: 28px; border: 1px solid var(--ui-line); border-radius: 11px; }
.ui-page.section-requests #list-wrapper { height: auto; }
.ui-page.section-requests .requests { padding: 0; height: auto; }
.ui-page.section-requests .requests > .item { background: #fff; border: 1px solid var(--ui-line); border-radius: 9px; padding: 15px; margin-bottom: 14px; display: flex; gap: 14px; }
.ui-page.section-requests .requests > .item > .img img { width: 55px; height: 55px; object-fit: cover; border-radius: 10px; }
.ui-page.section-requests .requests .item .avatar img { width: 36px; height: 36px; border-radius: 50%; }
.ui-page.section-requests .requests .item .content { min-width: 0; flex: 1; }
.ui-page.section-requests .requests .item .title { display: flex; align-items: center; gap: 12px; }
.ui-page.section-requests .requests .item .description { margin: 12px 0; color: var(--ui-muted); }
.ui-page.section-requests .requests .item .bottom { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.ui-page .cke_chrome { border-color: #d2e1ed; border-radius: 7px; overflow: hidden; box-shadow: none; }
.ui-page .cke_top, .ui-page .cke_bottom { background: #f3f8fc; background-image: none; border-color: #dae6ef; box-shadow: none; }
.ui-page .cke_toolgroup, .ui-page .cke_combo_button { background: #fff; background-image: none; border-color: #d4e1eb; box-shadow: none; }
.ui-page.section-conversation .window #root { flex: 1 1 68%; }
.ui-page.section-conversation .window #users-list { flex: 0 0 30%; }
.ui-page.section-conversation .window #users-list .users-wrapper { border: 1px solid var(--ui-line); height: 100%; }
.ui-page.section-conversation .window #users-list .users-wrapper .content { padding: 14px; }
.ui-page.section-conversation .window #users-list .users-wrapper .content + .content { border-top: 1px solid var(--ui-line); }
.ui-page.section-conversation .window #users-list .users-wrapper .content .heading { padding: 0 0 12px; border: 0; color: var(--ui-ink); font-weight: 600; }
.ui-page.section-conversation .window #users-list .users-wrapper .content .list-users { padding: 12px 0 0; }
.ui-page.section-conversation .window #users-list .users-wrapper .content .list-users > .red { color: var(--ui-muted); font-weight: 400; font-size: 13px; }
.ui-page.section-conversation .main-window-handler .chat-main { border: 0; background: #fff; }
.ui-page.section-conversation .main-window-handler .chat-main .chat-main-messages { border-right: 0; padding: 22px; margin-bottom: 58px; height: calc(100% - 64px); align-self: flex-start; font-size: 14px; }
.ui-page.section-conversation .chat-main-messages:empty::after { content: 'Здесь начнётся ваш разговор'; display: block; padding-top: 60px; color: #8094ad; text-align: center; font-size: 14px; }
.ui-page.section-conversation .main-window-handler .chat-send-message { padding: 12px 64px 12px 14px; border-top: 1px solid var(--ui-line); background: #fff; }
.ui-page.section-conversation .main-window-handler .chat-send-message .input-text { min-height: 40px; padding: 10px 12px; border: 1px solid var(--ui-line); border-radius: 7px; background: #f7fbff; color: var(--ui-ink); }
.ui-page.section-conversation .main-window-handler .chat-send-message button { width: 40px; height: 40px; right: 13px; bottom: 12px; border: 0; border-radius: 7px; background: var(--ui-blue); color: #fff; font-size: 17px; }
.ui-page.section-conversation .requests-handler .empty { text-align: center; padding: 70px 20px; color: var(--ui-muted); }
.ui-page.section-conversation :is(#moderation-menu,#tests-menu,#dialogs-menu,#profile-setting) { padding: 0 12px; border: 0; background: transparent; }
.ui-page.section-conversation :is(#moderation-menu,#tests-menu,#dialogs-menu,#profile-setting) ul { padding: 0; }
.ui-page.section-conversation :is(#moderation-menu,#tests-menu,#dialogs-menu,#profile-setting) li { list-style: none; }
@media (min-width: 1600px) {
    .ui-page .app-content { padding-inline: 60px; }
}
@media (max-width: 1199px) {
    .ui-page .app-workspace.has-sidebar { grid-template-columns: 220px minmax(0,1fr); }
    .ui-page .app-content { padding: 24px; }
    .ui-page .app-header-inner { padding-inline: 30px; gap: 24px; }
    .ui-page .app-top-nav { margin-left: 30px; }
    .ui-page .profile-step { gap: 16px; grid-template-columns: 42px minmax(0,1fr) auto; }
    .ui-page .step-number { width: 42px; height: 42px; }
    .ui-page .profile-step .btn { min-width: 100px; padding-inline: 12px; }
    .ui-page .profile-steps { padding-inline: 20px; }
    .ui-page .profile-steps-heading { flex-wrap: wrap; gap: 10px; }
    .ui-page .profile-progress { width: 100%; max-width: none; text-align: left; }
    .ui-page .profile-steps-heading h2 { font-size: 22px; }
    .ui-page .dashboard-grid { grid-template-columns: minmax(0,1fr) 265px; }
    .ui-page .requirements-grid { gap: 16px; }
    .ui-page .requirement { gap: 12px; }
    .ui-page .requirement + .requirement { padding-left: 16px; }
    .ui-page .requirement .ui-icon-circle { width: 44px; height: 44px; }
    .ui-page .requirement .ui-icon { width: 25px; height: 25px; }
}
@media (max-width: 991px) {
    .ui-page .app-workspace.has-sidebar { grid-template-columns: 195px minmax(0,1fr); }
    .ui-page .ui-side-nav a { padding: 12px; gap: 12px; font-size: 13px; }
    .ui-page .ui-sidebar-label { margin-left: 12px; }
    .ui-page .dashboard-grid { grid-template-columns: 1fr; }
    .ui-page .dashboard-aside { grid-template-columns: 1fr 1fr; }
    .ui-page .profile-diploma { gap: 14px; flex-direction: column; }
    .ui-page .profile-summary h2 { font-size: 20px; }
    .ui-page .profile-steps-heading { flex-wrap: nowrap; }
    .ui-page .profile-progress { max-width: 150px; text-align: right; }
    .ui-page .requirements-grid { grid-template-columns: 1fr; }
    .ui-page .requirement + .requirement { border-left: 0; border-top: 1px solid var(--ui-line); padding: 16px 0 0; }
    .ui-page .requirement { gap: 20px; }
    .ui-page .app-top-nav { margin-left: 10px; gap: 22px; }
    .ui-page .app-header-inner { gap: 20px; padding-inline: 24px; }
    .ui-page .ui-brand { font-size: 24px; gap: 8px; }
    .ui-page .ui-brand > span { font-size: 38px; }
    .ui-page .account-label { display: none; }
    .ui-page .app-footer { padding-inline: 24px; gap: 12px; }
    .ui-page .app-footer nav { gap: 16px; }
    .ui-page .catalog-heading { gap: 12px; }
    .ui-page .catalog-heading h2 { font-size: 18px; }
    .ui-page .catalog-tests { margin-left: 20px; }
    .ui-page .admin-links { grid-template-columns: 1fr; }
    .ui-page .ui-chat-menu { display: inline-flex; padding: 8px 0; }
    .ui-page.section-conversation .app-workspace { display: block; }
    .ui-page.section-conversation .app-sidebar { display: none; }
}
@media (max-width: 767px) {
    .ui-page .personal { grid-template-columns: 1fr; gap: 20px; }
    .ui-page .personal .avatar { text-align: center; }
    .ui-page .ui-auth-card { padding: 26px 22px; margin-top: 18px; }
    .ui-page.test-runner .test-content { padding: 20px 16px; }
    .ui-page.test-runner .wrap .container.ui-content h1 { font-size: 24px; }
    .ui-page .consultation-list li { flex-wrap: wrap; gap: 14px; }
    .ui-page .consultation-list .btn { margin-left: 0; }
    .ui-page #calendar_widget .calendar { padding: 12px; }
    .ui-page #calendar_widget .calendar .days { gap: 3px; }
    .ui-page #calendar_widget .calendar .days > :is(div,a) { padding: 16px 1px; font-size: 12px; }
    .ui-page #calendar_widget .calendar .days > .weekday { font-size: 9px; padding: 12px 2px; }
    .ui-page #calendar_widget .calendar .navigation span { font-size: 16px; }
    .ui-page.section-conversation .window #users-list { flex-basis: 100%; }
    .ui-page .app-header-inner { min-height: 66px; padding-inline: 18px; gap: 12px; flex-wrap: wrap; }
    .ui-page .app-header-actions { gap: 10px; }
    .ui-page .ui-account summary { gap: 6px; }
    .ui-page .ui-avatar-initials { width: 35px; height: 35px; font-size: 12px; }
    .ui-page .app-top-nav { margin: 0; width: 100%; order: 3; justify-content: center; min-height: 48px; gap: 30px; border-top: 1px solid var(--ui-line); }
    .ui-page.ui-ready .app-top-nav { display: none; }
    .ui-page.ui-ready .app-menu-toggle { display: inline-flex; }
    .ui-page.ui-menu-open .app-top-nav { display: flex; }
    .ui-page .app-workspace.has-sidebar, .ui-page.section-tests .app-workspace { display: block; padding: 0; }
    .ui-page .app-sidebar { border: 0; border-bottom: 1px solid var(--ui-line); padding: 16px 18px; }
    .ui-page.ui-ready .app-sidebar { display: none; }
    .ui-page.ui-menu-open .app-sidebar { display: flex; }
    .ui-page .ui-sidebar-label, .ui-page .ui-sidebar-bottom { display: none; }
    .ui-page .ui-side-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
    .ui-page .ui-sidebar-divider { display: none; }
    .ui-page .ui-side-nav a, .ui-page.section-tests .ui-side-nav a { padding: 10px; font-size: 12px; min-height: 44px; }
    .ui-page .ui-side-nav .ui-icon { width: 20px; height: 20px; }
    .ui-page .app-content, .ui-page.section-tests .app-content, .ui-page.section-site .app-content { padding: 22px 18px 28px; }
    .ui-page .ui-page-heading { margin-bottom: 20px; }
    .ui-page h1 { font-size: 28px; letter-spacing: -.8px; }
    .ui-page .ui-page-heading p { font-size: 15px; }
    .ui-page .ui-breadcrumbs { font-size: 11px; }
    .ui-page .catalog-search { min-height: 46px; margin-bottom: 16px; gap: 12px; }
    .ui-page .ui-notice { align-items: flex-start; gap: 12px; padding: 14px; }
    .ui-page .ui-notice p { font-size: 12px; }
    .ui-page .catalog-groups { gap: 16px; }
    .ui-page .catalog-card { padding: 14px; }
    .ui-page .catalog-heading { margin-bottom: 8px; gap: 12px; }
    .ui-page .catalog-heading h2 { font-size: 18px; }
    .ui-page .catalog-heading .ui-icon-circle { width: 40px; height: 40px; }
    .ui-page .catalog-tests { margin-left: 0; }
    .ui-page .catalog-tests a { font-size: 13px; gap: 12px; padding: 12px 1px; }
    .ui-page .dashboard-welcome { padding: 20px; gap: 16px; }
    .ui-page .dashboard-emblem { width: 56px; height: 56px; font-size: 38px; }
    .ui-page .dashboard-welcome h2 { font-size: 19px; }
    .ui-page .dashboard-welcome p { font-size: 13px; }
    .ui-page .dashboard-grid { gap: 16px; }
    .ui-page .profile-steps { padding: 18px; }
    .ui-page .profile-steps-heading { flex-wrap: wrap; gap: 12px; }
    .ui-page .profile-progress { max-width: none; text-align: left; }
    .ui-page .profile-step { grid-template-columns: 38px minmax(0,1fr); gap: 10px 14px; padding: 17px 0; }
    .ui-page .step-number { width: 38px; height: 38px; font-size: 17px; }
    .ui-page .profile-step > .btn { grid-column: 2; justify-self: start; min-width: 120px; min-height: 38px; }
    .ui-page .profile-step h3 { font-size: 15px; }
    .ui-page .dashboard-aside { grid-template-columns: 1fr 1fr; gap: 16px; }
    .ui-page .profile-summary, .ui-page .profile-diploma { padding: 18px; }
    .ui-page .profile-summary h2 { font-size: 19px; }
    .ui-page .profile-picture { width: 80px; height: 80px; margin: 16px auto 10px; }
    .ui-page .profile-picture .ui-icon { width: 43px; height: 43px; }
    .ui-page .profile-summary > p { font-size: 13px; }
    .ui-page .profile-diploma .ui-icon-circle { width: 48px; height: 48px; }
    .ui-page .dashboard-requirements { padding: 20px; }
    .ui-page .dashboard-requirements h2 { font-size: 22px; }
    .ui-page .app-footer { padding: 22px 18px; gap: 16px; }
    .ui-page .app-footer nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; gap: 12px; }
    .ui-page .ui-brand-small { font-size: 18px; }
    .ui-page .ui-brand-small > span { font-size: 28px; }
    .ui-page .ui-socials { margin-left: auto; gap: 14px; }
    .ui-page .ui-copyright { font-size: 11px; padding-left: 12px; }
    .ui-page .profile-modal { padding: 28px 20px; }
    .ui-page .fancybox-slide--html .fancybox-content { padding: 28px 20px; }
    .ui-page .fancybox-content > .profile-modal { padding: 0; }
    .ui-page #profile-edit { padding: 20px 4px 2px; }
    .ui-page.section-site :is(.site-register,.site-reset,.site-contact,.site-error,.site-about,.site-request-password-reset,.site-reset-password) { padding: 22px 18px; }
    .ui-page .info-wrapper { padding: 18px; }
    .ui-page .info-wrapper .info-row { display: flex; flex-direction: column; }
    .ui-page.section-conversation .window { gap: 0; }
    .ui-page.section-conversation .window #root { border-radius: 10px; }
    .ui-page.section-conversation .app-content .col-md-10 { padding-inline: 0; }
    .ui-page.section-conversation .mobile-controls { gap: 6px; }
    .ui-page.section-conversation .mobile-controls button { font-size: 12px; }
    .ui-page .fc-toolbar .fc-left, .ui-page .fc-toolbar .fc-right { float: none; margin: 0 0 10px; }
    .ui-page .fc-toolbar h2 { font-size: 20px; }
}
@media (max-width: 440px) {
    .ui-page .dashboard-aside { grid-template-columns: 1fr; }
    .ui-page .profile-diploma { flex-direction: row; }
    .ui-page .dashboard-welcome { align-items: flex-start; padding: 18px 16px; gap: 12px; }
    .ui-page .dashboard-emblem { width: 44px; height: 44px; font-size: 32px; }
    .ui-page .ui-brand { font-size: 23px; }
    .ui-page .ui-copyright { border: 0; padding-left: 0; }
    .ui-page .app-footer .ui-brand-small { display: none; }
    .ui-page .account-label { display: none; }
    .ui-page .app-header-actions { gap: 4px; }
    .ui-page .app-header-actions > .btn { min-height: 36px; padding: 7px 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .ui-page *, .ui-page *::before, .ui-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
