body {
    font-family: Arial;
    padding: 20px;
    background: #e7e7d0;
  }

  /* Временно: серые неактивные элементы на первой странице тестов */
  .index-limited .nav-grey,
  .index-limited .nav-grey .btn {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
  }
  .index-limited .testItem--grey {
    opacity: 0.5;
    pointer-events: none;
  }
  .index-limited .testItem--grey .test-link {
    cursor: not-allowed;
    color: #666;
  }

  .top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #9ee65b;
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    gap: 10px;
    
    font-weight: bold;
    font-size: 16px;
  }

  .top-nav__brand {
    font-weight: bold;
    font-size: 16px;
  }

  .top-nav__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .btn {
    display: inline-block;
    padding: 6px 15px;
    margin: 0 3px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
  }

  .lang-select {
    display: inline-block;
    padding: 6px 15px;
    margin: 0 3px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
  }

  .lang-select option {
    background: #333;
    color: white;
  }

  .btn:disabled {
    background: #999;
    cursor: not-allowed;
    opacity: 0.6;
  }
  
  .question {
    background: white;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
  }

  .qtext {
    margin-bottom: 20px;
    font-size: 16px;
  }

  .slider-block {
    margin: 15px 0;
    padding: 10px 0;
  }

  .slider-block label {
    display: block;
    margin-bottom: 8px;
  }

  .levels2-pair {
    margin-bottom: 30px;
  }

  .levels2-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
  }

  .levels2-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
  }

  .levels2-option:hover {
    border-color: #4a6cff;
    background: #f0f4ff;
  }

  .levels2-option input[type="radio"],
  .levels2-option input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
  }

  .levels2-option input[type="radio"]:checked + span,
  .levels2-option input[type="checkbox"]:checked + span {
    font-weight: bold;
    color: #4a6cff;
  }

  .levels2-option.checked {
    border-color: #4a6cff;
    background: #e8f0ff;
  }
  
  .testLink {
    font-size: 20px;
    text-decoration: none;
    color: #0057ff;
  }
  
  .testLink:hover {
    text-decoration: underline;
  }
  .test-link {
    font-size: 18px;
    color: #4a6cff;
    text-decoration: none;
    padding: 4px 0;
  }
  
  .test-link:hover {
    text-decoration: underline;
  }
  .test-link.disabled {
    color: #aaa;
    cursor: default;
    text-decoration: none;
    pointer-events: none;
  }
  .testItem--taken {
    opacity: 0.8;
  }
  .test-note {
    display: block;
    color: #777;
    font-size: 12px;
    margin-top: 4px;
  }
  .scale {
    margin-top: 10px;
    padding: 5px 0;
  }
  
  .scaleItem {
    display: inline-block;
    padding: 6px 10px;
    margin: 2px;
    border-radius: 5px;
    background: #eee;
    cursor: pointer;
    transition: 0.2s;
  }
  
  .scaleItem:hover {
    background: #ddd;
  }
  
  .scaleItem.selected {
    background: #4287f5;
    color: white;
    font-weight: bold;
  }
  

  div.sliderBlock {
    margin:5px;
  }
  .charts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: flex-start;
}

.chart-with-hint {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.result-block {
  background: #f1f5f9;
  padding: 22px 24px;
  border-radius: 12px;
  border-left: 6px solid #2563eb;
  transition: box-shadow 0.2s ease, transform 0.05s ease;
}

.result-block:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.result-dominant {
  font-size: 1.72rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #0f172a;
  margin-bottom: 6px;
}

.result-dominant .label {
  color: #2563eb;
}

.result-dominant .percent {
  color: #475569;
  font-weight: 600;
}

.result-subdominant {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 6px;
}

.result-profile {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 10px;
}

.result-levels-table {
  border-collapse: collapse;
  font-size: 13px;
  width: auto;
  color: #718096;
}
.result-levels-table td {
  padding: 2px 8px 2px 0;
  vertical-align: baseline;
}
.result-levels-table td:first-child {
  text-align: center;
  width: 1.5em;
}
.result-levels-table td:nth-child(2) {
  padding-right: 12px;
  text-align: left;
  max-width: 140px;
}
.result-levels-table td:last-child {
  text-align: right;
}

.levels-list {
  opacity: 0.82;
}

.levels-list .percent {
  color: #64748b;
}

.levels-list .zero {
  opacity: 0.25;
}

.home-button {
  opacity: 0.8;
}

.result-chart {
  min-height: 420px;
  position: relative;
}

.hint-panel {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
  padding: 16px;
  background: #f8f8f8;
  border-radius: 8px;
  border: 1px solid #ddd;
  min-height: 120px;
}

.hint-placeholder {
  color: #888;
  font-style: italic;
}

.hint-content {
  color: #333;
}

.radar-node {
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.radar-node:hover {
  transform: scale(1.12);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.radar-node.active {
  border-width: 3px !important;
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: white !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.level-details-title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #333;
}

.level-details {
  animation: fadeIn 0.18s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.chart-card {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fafafa;
    flex: 0 0 auto;
    min-width: 450px;
}

.chart-title {
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.professions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.prof-option {
    display: inline-block;
    padding: 8px 15px;
    background: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.prof-option:hover {
    background: #e0e0e0;
}

.prof-option input[type="radio"] {
    margin-right: 8px;
}

.prof-editor-layout {
    display: block;
    margin-top: 20px;
}

.prof-list-panel {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    background: #fff;
    margin-bottom: 20px;
}

.prof-form-panel {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
}

.prof-toolbar {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.prof-select-btn {
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    margin: 5px;
}

.prof-select-btn.active {
    background: #4a6cff;
    color: #fff;
    border-color: #4a6cff;
}

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

.prof-name-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.prof-name-input {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}

.prof-tests {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.prof-test-card {
    flex: 1 1 320px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    background: #fff;
}

.prof-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.prof-slider-row label {
    flex: 1 1 50%;
}

.prof-slider {
    flex: 1 1 40%;
}

.prof-value {
    width: 30px;
    text-align: center;
    font-weight: bold;
}

.dict-editor-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dict-controls-panel {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.dict-lang-selector {
    margin-bottom: 15px;
}

.dict-lang-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.dict-lang-selector select {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.dict-content-panel {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.dict-section {
    margin-bottom: 30px;
}

.dict-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.dict-item-card {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.dict-item-card label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #666;
}

.dict-base-text {
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-bottom: 8px;
    color: #333;
}

.dict-translation-input {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}
