﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

:root {
  --ge-font-sans: "Commissioner", "Segoe UI", Arial, sans-serif;
  --ge-page-bg: #f4f0fb;
  --ge-page-bg-alt: #fbf9ff;
  --ge-surface: #ffffff;
  --ge-surface-soft: #f7f4ff;
  --ge-border: #e6def7;
  --ge-border-strong: #d7caef;
  --ge-primary: #8d5ae8;
  --ge-primary-dark: #7b49df;
  --ge-primary-soft: #efe7ff;
  --ge-primary-soft-strong: #e3d5ff;
  --ge-text: #2b2340;
  --ge-text-muted: #6e6790;
  --ge-text-strong: #1f1634;
  --ge-success: #2ea06a;
  --ge-success-soft: #edf9f1;
  --ge-warning: #f2b84b;
  --ge-warning-soft: #fff5da;
  --ge-danger: #ef7c8e;
  --ge-danger-soft: #fdebef;
  --ge-shadow: 0 18px 42px rgba(59, 35, 114, 0.08);
}

html {
  font-family: var(--ge-font-sans);
}

body {
  font-family: var(--ge-font-sans);
  color: var(--ge-text);
}

.ge-app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  background:
    radial-gradient(circle at top left, rgba(141, 90, 232, 0.13), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.9), transparent 26%),
    linear-gradient(180deg, #f7f3ff 0%, var(--ge-page-bg) 38%, #f9f6ff 100%);
}

.ge-app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 22%);
  z-index: 0;
}

.ge-app-shell .container,
.ge-app-shell .navbar,
.ge-app-shell .footer {
  position: relative;
  z-index: 1;
}

.ge-app-shell .btn,
.ge-app-shell .form-control,
.ge-app-shell .custom-select,
.ge-app-shell .page-link,
.ge-app-shell .badge {
  font-family: var(--ge-font-sans);
}

.ge-app-shell .btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--ge-primary) 0%, var(--ge-primary-dark) 100%);
  border-color: var(--ge-primary-dark);
  box-shadow: 0 10px 22px rgba(141, 90, 232, 0.18);
}

.ge-app-shell .btn-primary:hover,
.ge-app-shell .btn-primary:focus {
  background: linear-gradient(180deg, #9665ef 0%, #8552e3 100%);
  border-color: #8552e3;
}

.ge-app-shell .btn-outline-primary {
  color: var(--ge-text);
  background: var(--ge-primary-soft);
  border-color: transparent;
  box-shadow: none;
}

.ge-app-shell .btn-outline-primary:hover,
.ge-app-shell .btn-outline-primary:focus {
  color: var(--ge-text-strong);
  background: var(--ge-primary-soft-strong);
  border-color: transparent;
}

.ge-app-shell .btn-outline-secondary {
  color: var(--ge-text-muted);
  background: #f5f2fd;
  border-color: #e4daf8;
}

.ge-app-shell .btn-outline-secondary:hover,
.ge-app-shell .btn-outline-secondary:focus {
  color: var(--ge-text);
  background: #ede5fb;
  border-color: #d6c4f4;
}

.ge-app-shell .btn-outline-success {
  color: var(--ge-text);
  background: #f4f7ff;
  border-color: #e6eaf7;
}

.ge-app-shell .btn-outline-success:hover,
.ge-app-shell .btn-outline-success:focus {
  color: var(--ge-text-strong);
  background: #e9eeff;
  border-color: #d6ddfb;
}

.ge-app-shell .btn-outline-danger {
  color: var(--ge-danger);
  background: var(--ge-danger-soft);
  border-color: transparent;
}

.ge-app-shell .btn-outline-danger:hover,
.ge-app-shell .btn-outline-danger:focus {
  color: #d85f72;
  background: #f9dde4;
  border-color: transparent;
}

.ge-app-shell .form-control {
  border-radius: 12px;
  border-color: var(--ge-border);
  color: var(--ge-text);
  background-color: #fff;
  box-shadow: none;
}

.ge-app-shell .form-control:focus {
  border-color: rgba(141, 90, 232, 0.42);
  box-shadow: 0 0 0 0.2rem rgba(141, 90, 232, 0.1);
}

.ge-app-shell .badge {
  border-radius: 999px;
}

.ge-navbar {
  height: 64px;
  min-height: 64px;
  padding: 4px 64px;
  overflow: visible;
  z-index: 1030;
  background: #956de5;
  border-bottom: 1px solid #e4d7f5;
  box-shadow: none;
}

.ge-navbar__inner {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
}

.ge-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 16px;
  padding-right: 3px;
  color: #fff !important;
  text-decoration: none;
  white-space: nowrap;
}

.ge-brand:hover {
  color: #fff !important;
  text-decoration: none;
}

.ge-brand__identity {
  display: flex;
  height: 56px;
  align-items: center;
  gap: 4px;
}

.ge-brand__logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: contain;
}

.ge-brand__name {
  width: 80px;
  padding-bottom: 2px;
  font-size: 17px;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ge-brand__divider {
  width: 1px;
  height: 40px;
  flex: 0 0 1px;
  background: rgba(252, 250, 255, 0.72);
}

.ge-brand__tagline {
  max-width: 270px;
  padding-bottom: 4px;
  font-size: 15px;
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.15px;
  color: #fcfaff;
}

.ge-navbar .navbar-nav {
  align-items: center;
  gap: 0;
}

.ge-navbar.navbar-expand-lg .navbar-nav .nav-link {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px 12px;
  border-radius: 0;
  color: #fcfaff !important;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.36px;
}

.ge-navbar .nav-link:hover,
.ge-navbar .nav-link:focus,
.ge-navbar .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.ge-navbar .navbar-collapse {
  flex-grow: 0;
}

.ge-navbar .navbar-toggler {
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 1px solid rgba(252, 250, 255, 0.55);
  border-radius: 8px;
}

.ge-navbar .navbar-toggler-icon {
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3e%3cpath stroke='%23fcfaff' stroke-linecap='round' stroke-width='2' d='M3 6h18M3 12h18M3 18h18'/%3e%3c/svg%3e");
}

.ge-navbar .dropdown-menu {
  border: 1px solid rgba(141, 90, 232, 0.12);
  border-radius: 14px;
  box-shadow: var(--ge-shadow);
  padding: 0.45rem;
}

.ge-navbar .dropdown-item {
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
}

.ge-navbar .dropdown-item:hover,
.ge-navbar .dropdown-item:focus {
  background: var(--ge-primary-soft);
}

@media (max-width: 991.98px) {
  .ge-navbar {
    height: auto;
    padding-right: 16px;
    padding-left: 16px;
    overflow: visible;
  }

  .ge-navbar__inner {
    flex-wrap: wrap;
  }

  .ge-navbar .navbar-collapse {
    width: 100%;
    flex-basis: 100%;
  }

  .ge-navbar .navbar-nav {
    align-items: stretch;
    padding: 8px 0;
  }

  .ge-navbar .nav-link {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .ge-brand {
    gap: 8px;
  }

  .ge-brand__identity {
    gap: 2px;
  }

  .ge-brand__logo {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .ge-brand__name {
    width: 68px;
    font-size: 14px;
  }

  .ge-brand__divider,
  .ge-brand__tagline {
    display: none;
  }
}

.ge-page {
  position: relative;
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
  flex: 1 0 auto;
}

.ge-page--compact {
  padding-top: 1rem;
}

.ge-page-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ge-text-strong);
}

.ge-page-subtitle {
  color: var(--ge-text-muted);
}

.ge-surface-card,
.tests-top-info,
.tests-list-card,
.result-top-info,
.result-card,
.start-test-card {
  border: 1px solid var(--ge-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--ge-shadow);
}

.ge-toolbar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: radial-gradient(circle at 35% 35%, #fff7d8 0%, #f8c98b 34%, #f0a75f 62%, #db7f3e 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35), 0 6px 14px rgba(219, 127, 62, 0.22);
}

.btn-shadow {
    border: none;
    border-radius: 14px;
    box-shadow: 0 12px 22px rgba(92, 57, 166, 0.16);
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: var(--ge-primary-dark);
}

/*.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}*/

.top-margin {
    margin-top: 8px;
}

.btn-run-success {
  background-color: #d7f0df;
    margin-right: 40px;
    width: 70px;
}

.btn-run-wrong {
  background-color: #f1edf9;
    width: 70px;
}

.btn-shadow {
    border: none;
    border-radius: 12px;
    box-shadow: 5px 5px 10px 2px rgba(80,80,80,0.90);
}

.control-radio {
    margin: 5px 5px 5px 5px;
    padding: 0 5px 0 5px;
}

.align-right {
    text-align: right;
    padding-right: 0;
}

.align-center {
    text-align: center;
}

.legacy-align-middle {
    height: calc(100vh - 150px);
    text-align: center;
    vertical-align: middle;
    display: table-cell;
}

.bordered {
    border-color: darkgray;
    border-radius: 20px;
    background-color: white;
    height: 100%;
    min-height: 55vh;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background: linear-gradient(180deg, var(--ge-primary) 0%, var(--ge-primary-dark) 100%);
  border-color: transparent;
}

/* Working class */

.login-button {
  height: 25px;
  width: 200px;
}

.img-task {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.img-container {
    height: calc(100vh - 140px);
}

.icon {
    width: 20px;
    height: 20px;
}

.taskdesc {
    color: grey;
}

.background {
  background-color: #d7c6ff;
}


/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 0;
  
}

.margin-top {
    margin-top: 20px;
}

.body-static {
    margin: 0;
    height: 100%;
    overflow: hidden;
}

.grad {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.45), transparent 26%),
    linear-gradient(180deg, #f6f1ff 0%, #f3effc 46%, #f7f4ff 100%);
}

.footer {
  position: static;
  margin-top: auto;
  width: 100%;
  white-space: nowrap;
  text-align: center; /* Center align the text horizontally */
  padding: 10px 0; /* Add some padding for better spacing */
  background-color: rgba(255, 255, 255, 0.82); /* Optional: Add a background color */
  border-top: 1px solid rgba(141, 90, 232, 0.12); /* Optional: Add a top border for separation */
}

.progress {
  height: 1rem;
}

.task-text {
  color: dimgray;
  font-size: 2rem;
  line-height: 2;
}

.limited-content-box {
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.logo {
  width: 64px;
  height: 64px;
}

.nopadding
{
    padding: 0; 
}

.text-small {
    font-size: 0.8rem;
}

/* Mobile responsive overrides (max-width: xl breakpoint) */
@media (max-width: 1199.98px) {
    .body-static {
        overflow: auto;
        height: auto;
    }

    .bordered {
        height: auto;
        min-height: 200px;
    }
}

    /* TestsList page */
    .tests-top-info {
      width: 100%;
      max-width: none;
      margin: 0 auto 1.25rem;
      padding: 24px 32px;
    }

    .tests-top-info__primary {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 32px;
    }

    .tests-filter-form {
      display: flex;
      flex: 1 1 auto;
      min-width: 0;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 24px;
    }

    .tests-search-group {
      display: flex;
      width: 100%;
      min-width: 0;
      align-items: center;
      gap: 24px;
      margin-top: 20px;
    }

    .tests-search-group label {
      flex: 0 0 auto;
      margin: 0;
      color: #28252e;
      font-size: 20px;
      font-weight: 700;
      line-height: 1.2;
      letter-spacing: -0.2px;
      white-space: nowrap;
    }

    .tests-search-group .form-control {
      height: 56px;
      min-width: 0;
      flex: 1 1 auto;
      padding: 4px 20px;
      border: 1px solid #e4d7f5;
      border-radius: 12px;
      color: #28252e;
      font-size: 18px;
      line-height: 1.2;
    }

    .tests-search-group .form-control:focus {
      border: 2px solid #8f39ff;
      box-shadow: none;
    }

    .tests-new-test-form {
      flex: 0 0 auto;
      margin: 20px 0 0;
    }

    .tests-new-test-button {
      display: flex;
      min-width: 224px;
      min-height: 56px;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 16px 16px 16px 24px;
      border: 0;
      border-radius: 12px;
      background: #f2f0fa;
      color: #6e687a;
      font-size: 18px;
      font-weight: 500;
      line-height: 1.2;
    }

    .tests-new-test-button:hover,
    .tests-new-test-button:focus {
      background: #eae9f7;
      color: #28252e;
    }

    .tests-list-card {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px 6px 12px;
      overflow: hidden;
      border: 1px solid #e4d7f5;
      border-radius: 24px;
      background: #fdfcff;
      box-shadow: none;
    }

    .tests-list-card__scroll {
      width: 100%;
      max-width: 100%;
      overflow-x: auto;
      overflow-y: hidden;
      contain: layout paint;
    }

    .tests-list-card__header {
      display: grid;
      grid-template-columns: minmax(130px, 1fr) auto minmax(130px, 1fr);
      min-width: 788px;
      height: 44px;
      align-items: center;
      gap: 18px;
      margin-bottom: 28px;
      padding: 0 18px;
    }

    .tests-list-card__header h2 {
      margin: 0;
      color: #28252e;
      font-size: 18px;
      font-weight: 500;
      line-height: 1.2;
      letter-spacing: -0.36px;
    }

    .tests-status-filter {
      justify-self: center;
    }

    .tests-status-tabs {
      display: flex;
      height: 40px;
      margin: 0;
      padding: 0;
      overflow: hidden;
      border: 1px solid #e4d7f5;
      border-radius: 12px;
      list-style: none;
    }

    .tests-status-tabs li {
      display: flex;
    }

    .tests-status-tabs .nav-link {
      display: flex;
      min-width: 144px;
      height: 40px;
      align-items: center;
      justify-content: center;
      padding: 4px 16px 6px;
      border: 0;
      border-right: 1px solid #e4d7f5;
      border-radius: 0;
      background: #eae9f7;
      color: #9c96a3;
      font-size: 18px;
      font-weight: 500;
      line-height: 1.2;
      letter-spacing: -0.36px;
    }

    .tests-status-tabs li:last-child .nav-link {
      border-right: 0;
    }

    .tests-status-tabs .nav-link.active {
      background: #eae9f7;
      color: #6e687a;
    }

    .tests-period-form {
      display: flex;
      align-items: center;
      justify-self: end;
      margin: 0;
    }

    .tests-period-form .form-control {
      width: auto;
      min-width: 118px;
      height: 44px;
      padding: 4px 36px 6px 18px;
      border: 1px solid #e4d7f5;
      border-radius: 12px;
      background-color: #fdfcff;
      background-image: url("../images/chevron-down.svg");
      background-repeat: no-repeat;
      background-position: right 14px center;
      background-size: 12px 7px;
      color: #28252e;
      appearance: none;
      font-size: 18px;
      font-weight: 500;
      line-height: 1.2;
      letter-spacing: -0.36px;
    }

    .tests-list-card .table {
      width: 100%;
      min-width: 788px;
      margin-bottom: 0;
      table-layout: fixed;
    }

    .tests-list-card .table thead th {
      height: 40px;
      border-top: 0;
      border-bottom: 1px solid #e4d7f5;
      background: transparent;
      color: #28252e;
      font-size: 16px;
      font-weight: 600;
      line-height: 1.25;
      letter-spacing: -0.16px;
      padding: 8px 18px 10px;
    }

    .tests-list-card .table td {
      height: 56px;
      border-top: 0;
      border-bottom: 1px solid #e4d7f5;
      vertical-align: middle;
      padding: 5px 18px 7px;
      color: #6e687a;
      font-size: 16px;
      font-weight: 400;
      line-height: 1.25;
      letter-spacing: -0.16px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .tests-list-card .table th:nth-child(1),
    .tests-list-card .table td:nth-child(1) {
      width: 19%;
    }

    .tests-list-card .table th:nth-child(2),
    .tests-list-card .table td:nth-child(2),
    .tests-list-card .table th:nth-child(3),
    .tests-list-card .table td:nth-child(3),
    .tests-list-card .table th:nth-child(4),
    .tests-list-card .table td:nth-child(4) {
      width: 19%;
    }

    .tests-list-card .table th:nth-child(5),
    .tests-list-card .table td:nth-child(5) {
      width: 24%;
    }

    .tests-row-test {
      font-size: 0.95rem;
      font-weight: 400;
      color: #2f2a36;
      line-height: 1.2;
    }

    .tests-row-empty {
      color: #7c7892;
    }

    .tests-row-period {
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
      font-size: 0.95rem;
      color: #2f2a36;
      line-height: 1.25;
    }

    .tests-row-period__item {
      display: flex;
      flex-direction: column;
      gap: 0.08rem;
    }

    .tests-row-period__label {
      font-size: 0.74rem;
      letter-spacing: 0.02em;
      color: #7c7892;
      text-transform: none;
    }

    .tests-result-panel {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      width: 100%;
      min-width: 0;
      background: transparent;
    }

    .tests-result-summary {
      display: flex;
      align-items: center;
      justify-content: flex-start;
    }

    .tests-result-summary__value {
      font-size: 0.96rem;
      font-weight: 400;
      color: #2f2a36;
      line-height: 1.1;
      font-variant-numeric: tabular-nums;
    }

    .tests-result-summary__value--muted {
      color: #7c7892;
    }

    .tests-rubrics-list {
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
      min-width: 0;
      width: 100%;
    }

    .tests-rubric-item {
      display: flex;
      align-items: center;
      gap: 0.7rem;
      min-height: 22px;
      padding: 0.08rem 0;
      color: #2f2a36;
      font-size: 0.94rem;
      line-height: 1.35;
      font-weight: 400;
      white-space: nowrap;
      overflow: visible;
    }

    .tests-rubric-dot {
      width: 0.7rem;
      height: 0.7rem;
      border-radius: 50%;
      flex: 0 0 auto;
      background: currentColor;
      box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
    }

    .tests-rubric-item__name {
      min-width: 0;
      overflow: visible;
      text-overflow: clip;
      white-space: nowrap;
      flex: 1 1 auto;
      max-width: 100%;
    }

    .tests-rubric-item__value {
      flex: 0 0 auto;
      color: #2f2a36;
      font-variant-numeric: tabular-nums;
      margin-left: auto;
      font-weight: 400;
    }

    .tests-rubric-item--good {
      color: #5ea58f;
    }

    .tests-rubric-item--attention {
      color: #d4a34d;
    }

    .tests-rubric-item--critical {
      color: #d98d9a;
    }

    .tests-rubric-item--more {
      justify-content: center;
      color: #6d6782;
      font-weight: 700;
      padding-top: 0.1rem;
    }

    .tests-actions {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 4px;
      min-width: 0;
      margin-left: auto;
    }

    .tests-actions form {
      margin-bottom: 0;
      width: auto;
      display: flex;
      justify-content: flex-end;
    }

    .tests-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      min-width: 32px;
      height: 32px;
      border-radius: 8px;
      padding: 0;
      font-weight: 400;
      line-height: 1.1;
      border: 1px solid transparent;
      transition: all 0.15s ease;
      min-height: 32px;
      font-size: 14px;
    }

    .tests-btn-view {
      color: #2f2a36;
      background: #eceaf4;
      border-color: #e3dff0;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    }

    .tests-btn-continue {
      color: #2f2a36;
      background: #f4f1fb;
      border-color: #e7ddff;
    }

    .tests-btn-delete {
      color: #c75d72;
      background: #f9ebef;
      border-color: #f0d3db;
    }

    .tests-actions .tests-btn {
      padding: 0;
      border-radius: 8px;
    }

    .tests-row-level {
      font-size: 0.8rem;
      color: var(--ge-text-muted);
    }

    .tests-chip-wrap {
      display: flex;
      flex-wrap: wrap;
      gap: 0.28rem;
      margin-top: 0.45rem;
    }

    .tests-chip-wrap .badge {
      border: 1px solid rgba(141, 90, 232, 0.08);
      background: #f5f1ff;
      color: var(--ge-text);
      font-weight: 600;
      white-space: normal;
    }

    .tests-chip-wrap .badge-success {
      background: var(--ge-success-soft);
      color: var(--ge-success);
    }

    .tests-chip-wrap .badge-warning {
      background: var(--ge-warning-soft);
      color: #c68918;
    }

    .tests-chip-wrap .badge-danger {
      background: var(--ge-danger-soft);
      color: #cb6075;
    }

    .tests-empty-card {
      max-width: 1200px;
      margin: 0 auto;
    }

    .tests-empty-card,
    .tests-list-card .table td,
    .result-card,
    .start-test-card {
      color: var(--ge-text);
    }

    /* TestRun page */
    .run-shell {
      /* The shell is pinned to exactly the viewport height (not min-height) so it never
         grows taller than what's on screen - it is the outer bound everything else fits
         inside, not something the page scrolls past. 100vh first as a fallback for browsers
         without dvh support (the dvh line is simply ignored by them, leaving the vh one). */
      height: 100vh;
      height: 100dvh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px 64px;
      background: #f8f7fc;
      overflow: hidden;
    }

    .run-card {
      display: flex;
      width: min(1440px, 100%);
      min-width: min(1200px, 100%);
      /* Same idea as .run-shell: a fixed height (capped by the viewport), not a min/max
         range. That guarantees .run-head (task number + close) and .run-footer (answer
         buttons) - both fixed-size flex children below - are always fully on screen; only
         .run-body is allowed to flex and internally scroll if its content can't shrink
         enough to fit. vh fallback first for browsers without dvh support. */
      height: min(960px, calc(100vh - 48px));
      height: min(960px, calc(100dvh - 48px));
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      padding: 24px 0 32px;
      overflow: hidden;
      border: 1px solid #e4d7f5;
      border-radius: 24px;
      background: #fdfcff;
      box-shadow: none;
    }

    .run-head {
      display: flex;
      width: 100%;
      height: 48px;
      flex: 0 0 48px;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px 0 40px;
    }

    .run-id {
      margin: 0;
      padding-bottom: 2px;
      color: #9c96a3;
      font-size: 18px;
      font-weight: 500;
      line-height: 1.2;
      letter-spacing: -0.36px;
    }

    .run-close {
      display: flex;
      width: 48px;
      height: 48px;
      flex: 0 0 48px;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      border-radius: 12px;
      text-decoration: none;
    }

    .run-close img {
      width: 32px;
      height: 32px;
    }

    .run-close:hover,
    .run-close:focus {
      background: #f2f0fa;
    }

    .run-body {
      display: flex;
      width: min(1200px, 100%);
      min-height: 0;
      flex: 1 1 auto;
    }

    .run-stage {
      display: flex;
      width: 100%;
      min-height: 0;
      align-items: center;
      justify-content: center;
      overflow: auto;
      padding: 48px 96px;
    }

    .run-content {
      display: flex;
      width: 100%;
      height: 100%;
      min-height: 0;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 36px;
      text-align: center;
    }

    .run-image-wrap {
      display: flex;
      width: 100%;
      min-height: 0;
      flex: 1 1 auto;
      align-items: center;
      justify-content: center;
    }

    .run-image-wrap .img-task {
      /* width/height are set inline per subtask from ImageSize, as a percentage of this
         already-viewport-safe wrapper - see TestRun.cshtml. max-width/max-height stay as a
         plain 100% safety cap so the image can never exceed its wrapper even if that ever
         gets out of sync. */
      max-width: 100%;
      max-height: 100%;
      border-radius: 12px;
      object-fit: contain;
      mix-blend-mode: multiply;
    }

    .run-task-copy {
      width: 100%;
      flex: 0 0 auto;
      padding-top: 4px;
      padding-bottom: 4px;
      text-align: center;
      white-space: pre-line;
    }

    .run-task-copy--only {
      display: flex;
      height: 100%;
      align-items: center;
      justify-content: center;
    }

    .run-task-copy .task-text {
      color: #6e687a;
      font-size: clamp(24px, 2.6vw, 30px);
      font-weight: 500;
      line-height: 1.4;
      letter-spacing: -0.26px;
      overflow-wrap: anywhere;
    }

    .run-stage--картинка .run-content:not(:has(.run-task-copy)) {
      gap: 0;
    }

    .run-stage--звук .run-content {
      gap: 0;
    }

    .run-audio-player {
      display: flex;
      width: min(440px, 100%);
      align-items: flex-start;
      justify-content: center;
      padding-right: 24px;
    }

    .run-audio-toggle {
      display: flex;
      width: 72px;
      height: 72px;
      flex: 0 0 72px;
      align-items: center;
      justify-content: center;
      padding: 0;
      border: 0;
      background: transparent;
    }

    .run-audio-toggle img {
      width: 28px;
      height: 28px;
    }

    .run-audio-toggle--paused img {
      display: none;
    }

    .run-audio-toggle--paused::before {
      content: "";
      width: 0;
      height: 0;
      margin-left: 4px;
      border-top: 12px solid transparent;
      border-bottom: 12px solid transparent;
      border-left: 18px solid #8f39ff;
    }

    .run-audio-track {
      display: flex;
      min-width: 200px;
      height: 72px;
      flex: 1 1 auto;
      flex-direction: column;
      justify-content: center;
      gap: 18px;
      padding: 8px 0 12px 10px;
    }

    .run-audio-times {
      display: flex;
      justify-content: space-between;
      color: #766d85;
      font-size: 14px;
      line-height: 1.3;
      letter-spacing: -0.28px;
    }

    .run-audio-progress {
      width: 100%;
      height: 2px;
      margin: 0;
      accent-color: #8f39ff;
    }

    .run-audio-player audio,
    .run-stage--все audio {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
    }

    .run-footer {
      width: min(1200px, 100%);
      flex: 0 0 auto;
    }

    .run-footer form {
      display: flex;
      width: 100%;
      min-height: 64px;
      align-items: center;
      justify-content: space-between;
      padding: 0 64px;
      gap: 32px;
    }

    .run-instruction {
      max-width: 600px;
      flex: 1 1 auto;
      padding: 0 40px 4px 0;
      color: #9c96a3;
      font-size: 18px;
      font-weight: 400;
      line-height: 1.2;
      letter-spacing: -0.36px;
    }

    .run-instruction p {
      margin: 0;
      white-space: pre-line;
    }

    .run-actions {
      display: flex;
      justify-content: flex-end;
      gap: 6px;
      flex: 0 0 auto;
    }

    .run-actions input {
      width: 200px;
      min-width: 0;
      min-height: 54px;
      padding: 16px 24px;
      border-radius: 72px;
      font-size: 0;
      box-shadow: none;
    }

    .run-actions #button-correct {
      order: 2;
      border: 1px solid #e4d7f5;
      background: #eae9f7;
    }

    .run-actions #button-incorrect {
      order: 1;
      border: 1px solid #ffccd6;
      background: #fff2f5;
    }

    .run-actions input:disabled {
      cursor: wait;
      opacity: 0.58;
    }

    /* TestResult page */
    .result-shell {
      max-width: 1180px;
      margin: 0 auto;
      padding: 0.4rem 0.5rem 1.2rem;
    }

    .result-top-info {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 1rem;
      margin-bottom: 0.65rem;
      background: transparent;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      padding: 0;
    }

    .result-top-title {
      margin: 0;
      text-align: center;
      font-size: 1.35rem;
      font-weight: 600;
      color: #3a3450;
    }

    .result-back-btn,
    .result-new-test-btn {
      border-radius: 10px;
      min-height: 40px;
      min-width: 162px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      padding: 0.55rem 1rem;
      white-space: nowrap;
    }

    .result-back-btn {
      background: rgba(255, 255, 255, 0.65);
      border: 1px solid rgba(141, 90, 232, 0.12);
      color: #4a4462;
    }

    .result-new-test-btn {
      box-shadow: 0 10px 20px rgba(121, 84, 204, 0.18);
    }

    .result-tabs-strip {
      display: flex;
      justify-content: center;
      margin-bottom: 0.9rem;
    }

    .result-pills {
      margin-bottom: 0;
      justify-content: center;
      background: rgba(143, 116, 198, 0.09);
      border-radius: 10px;
      padding: 0.17rem;
      gap: 0.1rem;
    }

    .result-pills .nav-link {
      border-radius: 8px;
      color: #6e6790;
      font-weight: 600;
      padding: 0.48rem 1.05rem;
      min-width: 128px;
      text-align: center;
    }

    .result-pills .nav-link.active {
      background: #fff;
      color: #3d3559;
      box-shadow: 0 5px 14px rgba(117, 87, 181, 0.14);
    }

    .result-layout {
      display: grid;
      grid-template-columns: minmax(160px, 185px) minmax(0, 1fr) minmax(170px, 210px);
      gap: 1rem;
      align-items: start;
    }

    .result-left-panel {
      color: #4f496a;
      font-size: 0.95rem;
      padding-top: 1.2rem;
    }

    .result-child-code {
      font-size: 1.1rem;
      font-weight: 600;
      color: #4f496a;
      margin-bottom: 0.15rem;
      word-break: break-word;
    }

    .result-child-code-label {
      color: #8f89aa;
      font-size: 0.84rem;
      margin-bottom: 0.8rem;
      text-transform: lowercase;
    }

    .result-chip-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
      margin-bottom: 0.45rem;
    }

    .result-chip {
      display: inline-flex;
      align-items: center;
      min-height: 36px;
      padding: 0.45rem 0.75rem;
      border-radius: 8px;
      background: rgba(140, 101, 214, 0.11);
      color: #5b5477;
      font-size: 0.9rem;
      font-weight: 500;
    }

    .result-chip--full {
      width: 100%;
      margin-bottom: 0.95rem;
    }

    .result-level-title {
      margin-bottom: 0.2rem;
      font-size: 0.9rem;
      color: #4a4365;
    }

    .result-level-value {
      font-size: 1.4rem;
      font-weight: 700;
      color: #2f2847;
      line-height: 1.2;
      margin-bottom: 0.6rem;
    }

    .result-level-description {
      color: #6f698a;
      font-size: 0.92rem;
      line-height: 1.55;
      margin: 0;
    }

    .result-main-card {
      min-width: 0;
    }

    .result-chart-card {
      border: 1px solid rgba(141, 90, 232, 0.13);
      border-radius: 16px;
      background: #fff;
      box-shadow: 0 8px 24px rgba(87, 62, 148, 0.07);
      padding: 0.8rem 1rem 1rem;
      min-height: 485px;
    }

    .result-chart-card__header {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.55rem;
      padding-bottom: 0.55rem;
      margin-bottom: 0.4rem;
      border-bottom: 1px solid rgba(141, 90, 232, 0.12);
      color: #4e4667;
      font-weight: 600;
    }

    .result-chart-card__icon {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      border: 1px solid rgba(70, 53, 114, 0.26);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #4f446b;
      background: #fff;
      flex: 0 0 auto;
    }

    .result-chart-card__title {
      font-size: 1.03rem;
    }

    .result-chart-wrap {
      position: relative;
      width: 100%;
      height: 430px;
      margin: 0;
      overflow: visible;
    }

    #skills-chart {
      display: block;
      width: 100%;
      height: 100% !important;
      max-width: none;
      max-height: none;
    }

    .result-protocol-pane,
    .result-characteristics-pane {
      border: 1px solid rgba(141, 90, 232, 0.13);
      border-radius: 16px;
      background: #fff;
      box-shadow: 0 8px 24px rgba(87, 62, 148, 0.07);
      padding: 1rem 1.1rem;
      min-height: 485px;
    }

    .result-characteristics-pane h4,
    .result-protocol-pane h4 {
      color: #3a3450;
      font-size: 1.05rem;
      margin-bottom: 0.8rem;
    }

    .result-protocol-pane {
      padding-top: 1.15rem;
      padding-bottom: 1.15rem;
    }

    .result-protocol-block {
      margin-bottom: 1rem;
    }

    .result-protocol-block:last-child {
      margin-bottom: 0;
    }

    .result-protocol-block__title {
      margin-bottom: 0.45rem !important;
      color: #5a5577 !important;
      font-size: 1rem !important;
      font-weight: 600;
    }

    .result-protocol-sequence {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      column-gap: 0.28rem;
      row-gap: 0.18rem;
      padding-bottom: 0.2rem;
      border-bottom: 1px solid rgba(141, 90, 232, 0.08);
    }

    .result-protocol-token {
      width: 20px;
      display: inline-flex;
      justify-content: center;
      align-items: center;
      font-size: 2rem;
      line-height: 1;
      font-weight: 400;
      user-select: none;
      font-family: "Commissioner", "Segoe UI", Arial, sans-serif;
    }

    .result-protocol-token--ok {
      color: #1cc5d1;
    }

    .result-protocol-token--bad {
      color: #ff6f96;
    }

    .result-characteristics-pane p {
      color: #5d5578;
      line-height: 1.55;
      margin-bottom: 0;
    }

    .result-characteristics-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.8rem;
      margin-bottom: 0.8rem;
      padding-bottom: 0.55rem;
      border-bottom: 1px solid rgba(141, 90, 232, 0.12);
    }

    .result-characteristics-head h4 {
      margin: 0 !important;
      color: #4b4568;
      font-size: 1.02rem;
      font-weight: 600;
    }

    .result-characteristics-toggle-all {
      border: 1px solid rgba(141, 90, 232, 0.16);
      background: #fff;
      color: #7a7399;
      border-radius: 8px;
      font-size: 0.82rem;
      font-weight: 600;
      padding: 0.2rem 0.48rem;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      cursor: pointer;
    }

    .result-characteristics-list {
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
      overflow-y: auto;
      max-height: 430px;
      padding-right: 0.2rem;
    }

    .result-characteristics-list::-webkit-scrollbar {
      width: 6px;
    }

    .result-characteristics-list::-webkit-scrollbar-thumb {
      background: rgba(140, 112, 200, 0.4);
      border-radius: 999px;
    }

    .result-characteristic-item {
      border-top: 1px solid rgba(141, 90, 232, 0.2);
      padding-top: 0.1rem;
      --rubric-color: #a8a2c4;
      --rubric-soft: rgba(168, 162, 196, 0.28);
      --rubric-text: #5f587c;
    }

    .result-characteristic-item__top {
      width: 100%;
      border: none;
      background: transparent;
      padding: 0;
      display: grid;
      grid-template-columns: 3px minmax(0, 1fr) auto auto auto 12px;
      align-items: center;
      column-gap: 0.5rem;
      row-gap: 0.3rem;
      text-align: left;
      cursor: pointer;
    }

    .result-characteristic-item__bar {
      width: 3px;
      height: 24px;
      border-radius: 999px;
      background: var(--rubric-color);
      align-self: center;
    }

    .result-characteristic-item__top h5 {
      margin: 0;
      font-size: 1.12rem;
      line-height: 1.18;
      color: #2f2c3a;
      font-weight: 700;
      letter-spacing: -0.01em;
      min-width: 0;
    }

    .result-characteristic-item__level {
      font-size: 0.98rem;
      color: #5f5a76;
      white-space: nowrap;
    }

    .result-characteristic-item__level strong {
      color: #4b4568;
      font-weight: 700;
    }

    .result-characteristic-item__score,
    .result-characteristic-item__value,
    .result-characteristic-subcategory__score,
    .result-characteristic-subcategory__value {
      font-variant-numeric: tabular-nums;
      border-radius: 4px;
      padding: 0.11rem 0.42rem;
      white-space: nowrap;
      font-weight: 700;
      border: 1px solid transparent;
    }

    .result-characteristic-item__score,
    .result-characteristic-subcategory__score {
      font-size: 0.95rem;
    }

    .result-characteristic-item__value,
    .result-characteristic-subcategory__value {
      font-size: 0.95rem;
      min-width: 52px;
      text-align: right;
    }

    .result-characteristic-score {
      color: var(--rubric-text);
      background: var(--rubric-soft);
      border-color: var(--rubric-soft);
    }

    .result-characteristic-item__chevron {
      font-size: 0.74rem;
      color: #9d96b5;
      justify-self: end;
      transition: transform 0.18s ease;
    }

    .result-characteristic-item.is-expanded .result-characteristic-item__chevron {
      transform: rotate(180deg);
    }

    .result-characteristic-item__statement {
      margin: 0.22rem 0 0;
      font-size: 0.84rem;
      line-height: 1.4;
      color: #3f3d4b;
    }

    .result-characteristic-subcategories {
      margin: 0.5rem 0 0;
      padding: 0.2rem 0 0;
      border-top: 1px solid rgba(141, 90, 232, 0.12);
    }

    .result-characteristic-subcategory {
      margin-top: 0.42rem;
      padding-top: 0.38rem;
      border-top: 1px dashed rgba(141, 90, 232, 0.12);
    }

    .result-characteristic-subcategory:first-child {
      margin-top: 0;
      padding-top: 0;
      border-top: none;
    }

    .result-characteristic-subcategory__top {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto auto 11px;
      align-items: center;
      gap: 0.4rem;
    }

    .result-characteristic-subcategory__top h6 {
      margin: 0;
      font-size: 0.86rem;
      line-height: 1.25;
      color: #2f2c3a;
      font-weight: 700;
    }

    .result-characteristic-subcategory__top i {
      font-size: 0.7rem;
      color: #9d96b5;
      justify-self: end;
    }

    .result-characteristic-subcategory p {
      margin: 0.2rem 0 0;
      font-size: 0.82rem;
      line-height: 1.34;
      color: #3f3d4b;
    }

    .result-actions-row {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0.8rem;
      margin-top: 0.95rem;
      flex-wrap: wrap;
    }

    .result-actions-row form {
      margin: 0;
    }

    .result-actions-row .btn {
      min-width: 165px;
      border-radius: 10px;
      padding: 0.62rem 1rem;
      background: rgba(255, 255, 255, 0.66);
      border: 1px solid rgba(141, 90, 232, 0.14);
      color: #4a4462;
      font-weight: 600;
    }

    .result-side-panel {
      padding-top: 1.4rem;
    }

    .result-side-panel__title {
      font-size: 1rem;
      margin: 0 0 0.5rem;
      color: #4f496a;
      font-weight: 600;
    }

    .result-metrics-list {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .result-metrics-list li {
      display: flex;
      align-items: baseline;
      gap: 0.35rem;
      border-bottom: 1px solid rgba(141, 90, 232, 0.12);
      padding: 0.28rem 0;
      font-size: 0.95rem;
      color: #5c5678;
    }

    .result-metrics-list__empty {
      font-size: 0.9rem;
      color: #7d7697;
      border-bottom: none !important;
    }

    .result-metric-dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      margin-top: 0.28rem;
      flex: 0 0 auto;
      border: 1px solid rgba(0, 0, 0, 0.08);
    }

    .result-metric-name {
      flex: 0 0 auto;
    }

    .result-metric-value {
      margin-left: auto;
      color: #3f3958;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
    }

    .result-total-pill {
      margin-top: 1rem;
      border-radius: 8px;
      background: rgba(140, 101, 214, 0.11);
      padding: 0.58rem 0.75rem;
      font-size: 0.95rem;
      color: #4f496a;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.4rem;
    }

    .result-total-pill strong {
      color: #2e2747;
      font-weight: 800;
      font-variant-numeric: tabular-nums;
    }

    .result-answer-icon {
      font-size: 1.2em;
      margin-right: 0.25rem;
    }

    .start-test-shell {
      max-width: 1024px;
      margin: 0 auto;
    }

    .start-test-card {
      overflow: hidden;
    }

    .start-test-head {
      border-bottom: 1px solid rgba(141, 90, 232, 0.08);
      background: linear-gradient(180deg, rgba(141, 90, 232, 0.06) 0%, rgba(141, 90, 232, 0.02) 100%);
    }

    .start-test-field-label {
      font-weight: 700;
      color: var(--ge-text-strong);
    }

    .start-test-note {
      border-color: var(--ge-border);
      background: var(--ge-page-bg-alt);
    }

    .start-test-option {
      border-color: var(--ge-border);
      background: #fff;
    }

    .start-test-option .custom-control-label {
      color: var(--ge-text);
      font-weight: 600;
    }

    .start-test-actions .btn,
    .start-test-actions input[type='submit'] {
      border-radius: 14px;
    }

    .tests-filter-form label,
    .start-test-note h3,
    .result-side-panel h3,
    .result-left-panel,
    .result-top-title {
      font-family: var(--ge-font-sans);
    }

    @media (max-width: 1200px) {
      .result-layout {
        grid-template-columns: 1fr;
      }

      .result-left-panel,
      .result-side-panel {
        padding-top: 0;
      }

      .result-chart-wrap {
        height: 380px;
      }
    }

    @media (max-width: 991px) {
      .tests-top-info {
        padding: 24px;
      }

      .tests-top-info__primary {
        flex-wrap: wrap;
      }

      .tests-filter-form {
        order: 3;
        flex-basis: 100%;
      }

      .tests-search-group,
      .tests-new-test-form {
        margin-top: 0;
      }

    }

    @media (max-width: 575.98px) {
      .tests-top-info {
        padding: 20px 16px;
      }

      .tests-new-test-button {
        min-width: 0;
        min-height: 48px;
        padding: 12px 14px;
        font-size: 16px;
      }

      .tests-search-group {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
      }

      .tests-search-group label {
        font-size: 18px;
      }

    }

    @media (max-width: 768px) {
      .run-shell {
        height: 100vh;
        height: 100dvh;
        padding: 8px;
      }

      .run-card {
        min-width: 0;
        height: calc(100vh - 16px);
        height: calc(100dvh - 16px);
        padding: 12px 0 20px;
        border-radius: 16px;
      }

      .run-head {
        height: 44px;
        flex-basis: 44px;
        padding: 0 8px 0 20px;
      }

      .run-id,
      .run-instruction {
        font-size: 14px;
      }

      .run-close {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
      }

      .run-close img {
        width: 28px;
        height: 28px;
      }

      .run-stage {
        padding: 20px 16px;
      }

      .run-content {
        gap: 16px;
      }

      .run-task-copy .task-text {
        font-size: clamp(22px, 5.6vw, 26px);
        line-height: 1.35;
      }

      .run-footer form {
        align-items: stretch;
        flex-direction: column;
        padding: 0 20px;
        gap: 16px;
      }

      .run-instruction {
        max-width: none;
        padding: 0;
      }

      .run-actions {
        width: 100%;
        justify-content: center;
      }

      .run-actions input {
        width: min(200px, 50%);
      }

      .run-audio-player {
        padding-right: 0;
      }

      .run-audio-toggle {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
      }

      .run-audio-track {
        height: 56px;
      }
    }

    @media (max-width: 575.98px) {
      .run-stage {
        padding: 16px 12px;
      }

      .run-content {
        gap: 10px;
      }
    }

    @media (max-width: 767px) {
      .tests-actions {
        justify-content: flex-start;
      }

      .tests-list-card .table,
      .result-left-panel,
      .result-side-panel,
      .result-top-info {
        font-size: 0.95rem;
      }

      .result-top-info {
        grid-template-columns: 1fr;
        justify-items: center;
      }

      .result-back-btn,
      .result-new-test-btn {
        width: 100%;
        max-width: 320px;
      }

      .result-pills .nav-link {
        min-width: 98px;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
      }

      .result-chart-wrap {
        height: 340px;
      }
    }
