/* Общие переменные темы */
:root {
  --bg-main: #02030a;
  --bg-card: #050713;
  --bg-card-soft: #0b0f1f;
  --accent-gold: #ffcc66;
  --accent-gold-soft: #f0c87a;
  --accent-red: #ff5c5c;
  --accent-green: #69d28c;
  --text-main: #f5f5f7;
  --text-muted: #a7b0c8;
  --border-gold: rgba(255, 204, 102, 0.9);
  --border-gold-soft: rgba(255, 204, 102, 0.4);
  --shadow-gold: 0 0 30px rgba(255, 204, 102, 0.35);
  --radius-xl: 32px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --transition-fast: 0.18s ease-out;
  --transition-normal: 0.24s ease-out;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Roboto", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background:
    radial-gradient(circle at top, #1b2945 0, rgba(2, 3, 10, 0.95) 55%),
    radial-gradient(circle at bottom, #3b2b16 0, rgba(2, 3, 10, 1) 65%),
    #02030a;
  background-attachment: fixed;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* Фоновое изображение */
.page-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url("deltabg.jpg") center/cover no-repeat fixed;
  z-index: -1;
}

.page-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 30%, transparent 0%, rgba(2, 3, 10, 0.4) 45%, rgba(2, 3, 10, 0.75) 100%),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      transparent 25%,
      transparent 70%,
      rgba(2, 3, 10, 0.5) 100%
    );
  pointer-events: none;
  z-index: -1;
}

.site-root {
  width: 100%;
  max-width: 1180px;
  padding: 24px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ----- Skeleton при загрузке ----- */
@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-wrap {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: inherit;
  pointer-events: none;
}

body.page-loading .test-shell-inner,
body.page-loading .sidebar-card {
  position: relative;
}

body.page-loading .test-shell-skeleton,
body.page-loading .landing-skeleton,
body.page-loading .sidebar-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.page-loading .test-shell-content,
body.page-loading .sidebar-content {
  opacity: 0;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

body.page-ready .test-shell-skeleton,
body.page-ready .landing-skeleton,
body.page-ready .sidebar-skeleton {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-line,
  .skeleton-answer,
  .skeleton-mode {
    animation: none;
  }
  .reveal-block,
  .reveal-item {
    transform: none;
    filter: none;
  }
  body.page-ready .reveal-block,
  body.page-ready .reveal-item {
    animation: none;
    opacity: 1;
  }
  .test-question-card.question-enter .question-enter-item,
  .answer-option.answer-option--enter {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.skeleton-line {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

.skeleton-status {
  width: 140px;
  height: 12px;
  margin-bottom: 4px;
}

.skeleton-title {
  height: 18px;
  width: 45%;
  margin-bottom: 8px;
}

.skeleton-text {
  height: 14px;
}
.skeleton-text.w90 { width: 90%; }
.skeleton-text.w70 { width: 70%; }
.skeleton-text.w85 { width: 85%; }
.skeleton-text.w100 { width: 100%; }
.skeleton-text.w80 { width: 80%; }

.skeleton-answer {
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

.skeleton-highlight {
  height: 52px;
  border-radius: 16px;
  animation-delay: 0.1s;
}

.skeleton-mode {
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

.skeleton-btn {
  height: 48px;
  border-radius: 999px;
  width: 100%;
  max-width: 280px;
  margin-top: 8px;
}

/* ----- Анимация появления блоков ----- */
@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes reveal-item-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-block {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  filter: blur(6px);
}

body.page-ready .test-shell.reveal-block {
  animation: reveal-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.page-ready .sidebar-card.reveal-block {
  animation: reveal-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards;
}

body.page-ready .site-header.reveal-block {
  animation: reveal-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Каскадное появление элементов внутри блоков */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
}

body.page-ready .test-shell-content .reveal-item {
  animation: reveal-item-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
body.page-ready .test-shell-content .test-status-bar.reveal-item { animation-delay: 0.1s; }
body.page-ready .test-shell-content .test-question-card.reveal-item { animation-delay: 0.18s; }
body.page-ready .test-shell-content .test-footer.reveal-item { animation-delay: 0.26s; }

body.page-ready .sidebar-content .reveal-item {
  animation: reveal-item-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
body.page-ready .sidebar-content .sidebar-title.reveal-item { animation-delay: 0.2s; }
body.page-ready .sidebar-content .sidebar-subtitle.reveal-item { animation-delay: 0.28s; }
body.page-ready .sidebar-content .sidebar-highlight.reveal-item { animation-delay: 0.36s; }
body.page-ready .sidebar-content .mode-list.reveal-item { animation-delay: 0.44s; }
body.page-ready .sidebar-content .sidebar-footer.reveal-item { animation-delay: 0.52s; }

body.page-ready .landing-page .reveal-item {
  animation: reveal-item-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
body.page-ready .landing-page > .reveal-item:nth-child(1) { animation-delay: 0.1s; }
body.page-ready .landing-page > .reveal-item:nth-child(2) { animation-delay: 0.18s; }
body.page-ready .landing-page > .reveal-item:nth-child(3) { animation-delay: 0.26s; }
body.page-ready .landing-page > .reveal-item:nth-child(4) { animation-delay: 0.34s; }
body.page-ready .landing-page > .reveal-item:nth-child(5) { animation-delay: 0.42s; }

/* Хедер */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #161927 0, #050713 75%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(18px);
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  border-radius: 12px;
}

.logo-mark-link:focus-visible {
  outline: 2px solid var(--border-gold-soft);
  outline-offset: 2px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 14px;
  border: 1px solid var(--border-gold-soft);
  background: radial-gradient(circle at 30% 0, #ffe9aa 0, #f6b84b 30%, #b86a1f 75%);
  box-shadow: var(--shadow-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #120b02;
  font-weight: 700;
  font-size: 16px;
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.logo-text-main {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 27px;
}

.logo-text-sub {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-gold-soft);
}

/* Кнопка «гамбургер» — только на мобильных */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 102;
}
.nav-toggle:hover {
  background: rgba(255, 204, 102, 0.15);
  border-color: var(--border-gold-soft);
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent-gold-soft);
  border-radius: 1px;
  transition: var(--transition-fast);
}
.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  /* Шапка и выезжающее меню выше контента страницы (иначе main перекрывает drawer) */
  .site-header {
    position: relative;
    z-index: 100050;
  }
  .site-main {
    position: relative;
    z-index: 0;
  }
  .nav-mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100048;
    background: rgba(2, 3, 10, 0.55);
    pointer-events: auto;
  }
  body.site-nav-open .nav-mobile-backdrop {
    display: block;
  }
  .logo-text-main {
    font-size: 25px;
  }
  .nav-toggle {
    display: flex;
    z-index: 100053;
    position: relative;
  }
  .header-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(280px, 85vw);
    height: 100%;
    min-height: 100dvh;
    min-height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 70px 16px 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    background: radial-gradient(circle at top, #161927 0, #050713 95%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
    z-index: 100052;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .header-nav::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    pointer-events: none;
  }
  .site-header.nav-open .header-nav::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-header.nav-open .header-nav {
    transform: translateX(0);
    visibility: visible;
  }
  .header-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 15px;
    border: 1px solid transparent;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
      background 0.2s ease, border-color 0.2s ease;
  }
  .site-header.nav-open .header-nav .nav-link {
    opacity: 1;
    transform: translateX(0);
  }
  .site-header.nav-open .header-nav .nav-link:nth-child(1) { transition-delay: 0.05s; }
  .site-header.nav-open .header-nav .nav-link:nth-child(2) { transition-delay: 0.08s; }
  .site-header.nav-open .header-nav .nav-link:nth-child(3) { transition-delay: 0.11s; }
  .site-header.nav-open .header-nav .nav-link:nth-child(4) { transition-delay: 0.14s; }
  .site-header.nav-open .header-nav .nav-link:nth-child(5) { transition-delay: 0.17s; }
  .site-header.nav-open .header-nav .nav-link:nth-child(6) { transition-delay: 0.2s; }
  .site-header.nav-open .header-nav .nav-link:nth-child(7) { transition-delay: 0.23s; }
  .site-header.nav-open .header-nav .nav-link:nth-child(8) { transition-delay: 0.26s; }
  .site-header.nav-open .header-nav .nav-link:nth-child(9) { transition-delay: 0.29s; }
  .site-header.nav-open .header-nav .nav-link:nth-child(10) { transition-delay: 0.32s; }
  .site-header.nav-open .header-nav .nav-link:nth-child(11) { transition-delay: 0.35s; }
  .header-nav .nav-link:hover {
    background: rgba(255, 204, 102, 0.12);
  }
  .header-nav .nav-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--accent-gold-soft);
  }
  .header-nav .nav-link--primary .nav-link-icon {
    color: #120b02;
  }
  .header-nav .nav-link-icon svg {
    width: 20px;
    height: 20px;
  }
  .header-nav .nav-user-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .header-nav .nav-user-block .nav-link {
    margin: 0;
    transition-delay: 0.2s;
  }
  @media (prefers-reduced-motion: reduce) {
    .header-nav .nav-link {
      opacity: 1;
      transform: none;
      transition-delay: 0s;
    }
  }
  .site-root {
    padding: 16px 12px 24px;
  }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.nav-link-icon {
  display: none;
}

@media (min-width: 769px) {
  .nav-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--accent-gold-soft);
  }
  .nav-link--primary .nav-link-icon {
    color: #120b02;
  }
  .nav-link-icon svg {
    width: 16px;
    height: 16px;
  }
}

.nav-link:hover {
  color: var(--accent-gold);
  border-color: rgba(255, 204, 102, 0.3);
  background: rgba(12, 12, 16, 0.7);
}

.nav-link--primary {
  background: radial-gradient(circle at top, #ffe9aa 0, #f6b84b 35%, #b86a1f 100%);
  color: #120b02;
  font-weight: 600;
  box-shadow: var(--shadow-gold);
}

.nav-link--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(255, 204, 102, 0.45);
}

.nav-link--muted {
  font-size: 11px;
  color: var(--text-muted);
  cursor: default;
}

/* Основной макет: панель теста + боковая колонка */
.site-main {
  display: grid;
  grid-template-columns: minmax(0, 3.4fr) minmax(0, 2.1fr);
  gap: 22px;
  align-items: stretch;
}

@media (max-width: 980px) {
  .site-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Главная: лендинг в левой колонке */
.landing-shell .test-shell-inner {
  overflow: visible;
}

.landing-page {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 8px;
}

.landing-h1 {
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 14px;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.landing-lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.landing-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-gold-soft);
  color: var(--accent-gold-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(5, 7, 19, 0.5);
  transition: var(--transition-normal);
}

.landing-cta-secondary:hover {
  border-color: var(--border-gold);
  color: var(--accent-gold);
  box-shadow: 0 8px 24px rgba(255, 204, 102, 0.15);
}

.landing-section {
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-h2 {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--accent-gold-soft);
  letter-spacing: 0.04em;
}

.landing-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.landing-list li {
  margin-bottom: 10px;
}

.landing-list li:last-child {
  margin-bottom: 0;
}

.landing-list strong {
  color: var(--text-main);
  font-weight: 600;
}

.landing-list--icons {
  list-style: none;
  padding-left: 0;
}

.landing-list--icons li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 12px;
}

.landing-list--icons li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-gold-soft);
  box-shadow: 0 0 8px rgba(255, 204, 102, 0.45);
}

.landing-steps {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.landing-steps li {
  margin-bottom: 8px;
}

.landing-faq .faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 19, 0.65);
  padding: 0 12px;
}

.faq-item[open] {
  border-color: rgba(255, 204, 102, 0.25);
}

.faq-q {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  padding: 12px 0;
  list-style: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-item .faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item .faq-q::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent-gold-soft);
  border-bottom: 2px solid var(--accent-gold-soft);
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: 0.8;
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-q::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-a {
  margin: 0 0 12px;
  padding-top: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-a a {
  color: var(--accent-gold-soft);
}

/* Карточка теста — в стиле мобильного скриншота */
.test-shell {
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(255, 204, 102, 0.12);
  padding: 18px 18px 20px;
  position: relative;
  overflow: hidden;
}

.test-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255, 204, 102, 0.8), transparent 35%, rgba(255, 204, 102, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.8;
  pointer-events: none;
}

.test-shell-inner {
  position: relative;
  z-index: 1;
  border-radius: calc(var(--radius-xl) - 10px);
  padding: 16px 16px 14px;
  background: radial-gradient(
    circle at top,
    rgba(18, 22, 41, 0.6) 0,
    rgba(5, 7, 19, 0.5) 78%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.test-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.test-status-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2ecc71;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.8);
}

.test-status-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.test-timer {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-variant-numeric: tabular-nums;
}

.test-stats-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.test-question-card {
  margin-top: 8px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0f1c2a 0, #0a1522 50%, #071018 100%);
  border: 1px solid rgba(70, 130, 180, 0.4);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(70, 130, 180, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 14px 14px 10px;
  position: relative;
  overflow: hidden;
}

.test-question-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255, 204, 102, 0.12), transparent 40%, rgba(70, 130, 180, 0.08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.test-question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
}

.test-question-index {
  color: var(--accent-gold);
  font-weight: 600;
}

.test-question-counter {
  color: rgba(255, 255, 255, 0.78);
}

.test-question-text {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
}

.test-question-image-wrap {
  margin-top: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
}

.test-question-image {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
}

.test-runner-main {
  max-width: 720px;
  display: block;
}

.test-feedback {
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
  background: rgba(40, 0, 0, 0.8);
  border: 1px solid rgba(255, 128, 128, 0.8);
  color: #ffd3d3;
}

.test-explanation {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
  background: rgba(15, 28, 42, 0.6);
  border: 1px solid rgba(70, 130, 180, 0.25);
  border-left: 3px solid var(--accent-gold-soft);
}

.test-answers {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.answer-option {
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #0f1422 0, #070a13 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
}

.answer-option:hover {
  border-color: rgba(255, 204, 102, 0.4);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.8);
  transform: translateY(-1px);
}

.answer-option--correct {
  background: linear-gradient(180deg, #163523 0, #081710 100%);
  border-color: rgba(105, 210, 140, 0.9);
  box-shadow:
    0 0 18px rgba(105, 210, 140, 0.75),
    0 14px 35px rgba(0, 0, 0, 0.9);
}

.answer-option--wrong {
  background: linear-gradient(180deg, #3d1414 0, #190606 100%);
  border-color: rgba(255, 107, 107, 0.9);
  box-shadow:
    0 0 18px rgba(255, 107, 107, 0.75),
    0 14px 35px rgba(0, 0, 0, 0.9);
}

/* Появление контента при смене вопроса */
@keyframes question-item-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes answer-option-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.test-question-card.question-enter .test-question-header {
  opacity: 0;
  animation: question-item-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards;
}
.test-question-card.question-enter .test-question-text {
  opacity: 0;
  animation: question-item-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.06s forwards;
}
.test-question-card.question-enter .test-feedback {
  opacity: 0;
  animation: question-item-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.04s forwards;
}
.test-question-card.question-enter .answer-meta {
  opacity: 0;
  animation: question-item-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.answer-option.answer-option--enter {
  opacity: 0;
  animation: answer-option-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.answer-option.answer-option--enter:nth-child(1) { animation-delay: 0.08s; }
.answer-option.answer-option--enter:nth-child(2) { animation-delay: 0.13s; }
.answer-option.answer-option--enter:nth-child(3) { animation-delay: 0.18s; }
.answer-option.answer-option--enter:nth-child(4) { animation-delay: 0.23s; }
.answer-option.answer-option--enter:nth-child(5) { animation-delay: 0.28s; }
.answer-option.answer-option--enter:nth-child(6) { animation-delay: 0.33s; }
.answer-option.answer-option--enter:nth-child(7) { animation-delay: 0.38s; }
.answer-option.answer-option--enter:nth-child(8) { animation-delay: 0.43s; }

.answer-badge {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.answer-text {
  font-size: 14px;
}

.answer-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.test-footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.ghost-button,
.primary-button {
  flex: 1;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-normal);
}

.ghost-button {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-muted);
}

.ghost-button:hover {
  border-color: rgba(255, 204, 102, 0.4);
  color: var(--accent-gold);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.85);
}

.primary-button {
  background: radial-gradient(circle at top, #ffe9aa 0, #f6b84b 35%, #b86a1f 100%);
  color: #120b02;
  font-weight: 600;
  box-shadow: var(--shadow-gold);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(255, 204, 102, 0.55);
}

.primary-button:disabled,
.ghost-button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* Боковая колонка (описание, список режимов и CTA) */
.sidebar-card {
  border-radius: var(--radius-xl);
  padding: 20px 20px 18px;
  background: radial-gradient(circle at top left, #181b2c 0, #050713 78%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px);
}

.sidebar-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.sidebar-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.sidebar-highlight {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 204, 102, 0.2), transparent 60%);
  border: 1px solid rgba(255, 204, 102, 0.35);
  font-size: 13px;
}

.mode-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.mode-item {
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(5, 7, 19, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.mode-item span:first-child {
  color: var(--text-main);
}

.mode-item span:last-child {
  color: var(--accent-gold-soft);
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.small-muted {
  font-size: 12px;
  color: var(--text-muted);
}

.admin-link {
  font-size: 13px;
  color: var(--accent-gold-soft);
  text-decoration: none;
}

.admin-link:hover {
  text-decoration: underline;
}

.site-footer-copy {
  margin: 0;
  color: var(--text-muted);
  white-space: nowrap;
  font-size: clamp(10px, 2.2vw, 12px);
  text-align: center;
}

@media (max-width: 480px) {
  .site-footer-copy {
    font-size: 10px;
  }
}

/* Кнопки скачивания приложений (полукруглые, анимация) */
.app-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  justify-content: center;
}

.app-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 30% 20%, rgba(30, 35, 55, 0.95) 0%, rgba(10, 12, 22, 0.98) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-fast);
  animation: app-btn-float 3s ease-in-out infinite;
}

.app-download-btn:nth-child(2) {
  animation-delay: 0.5s;
}

.app-download-btn:hover {
  animation: none;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(255, 204, 102, 0.25);
  border-color: var(--border-gold-soft);
}

.app-download-icon {
  font-size: 18px;
  opacity: 0.95;
}

.app-download-label {
  letter-spacing: 0.02em;
}

@keyframes app-btn-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* Страница админки */
.admin-layout {
  max-width: 1180px;
  width: 100%;
  padding: 24px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 2.4fr);
  gap: 20px;
}

@media (max-width: 980px) {
  .admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.admin-card {
  border-radius: var(--radius-xl);
  padding: 18px 18px 16px;
  background: radial-gradient(circle at top left, #181b2c 0, #050713 78%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.9);
  z-index:1;
}

.admin-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.admin-card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-row label {
  font-size: 13px;
  color: var(--text-muted);
}

.text-input,
.file-input {
  width: 100%;
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(7, 10, 20, 0.95);
  color: var(--text-main);
  font-size: 13px;
}

.text-input::placeholder {
  color: rgba(167, 176, 200, 0.8);
}

.file-input {
  border-radius: 14px;
  padding: 8px 10px;
}

.primary-pill {
  border-radius: 999px;
  padding: 9px 18px;
  border: none;
  background: radial-gradient(circle at top, #ffe9aa 0, #f6b84b 35%, #b86a1f 100%);
  color: #120b02;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: var(--transition-normal);
}

.primary-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(255, 204, 102, 0.55);
}

.primary-pill:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
  transform: none;
}

a.primary-pill,
a.primary-pill.primary-pill--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

a.primary-pill:focus-visible {
  outline: 2px solid var(--border-gold);
  outline-offset: 2px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table thead {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table th,
.admin-table td {
  padding: 8px 10px;
  text-align: left;
}

.admin-table th {
  font-weight: 500;
  color: var(--text-muted);
}

.admin-table tbody tr:nth-child(odd) {
  background: rgba(7, 10, 20, 0.9);
}

.admin-table tbody tr:nth-child(even) {
  background: rgba(3, 5, 12, 0.95);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
}

.badge--green {
  background: rgba(105, 210, 140, 0.18);
  color: var(--accent-green);
}

.badge--yellow {
  background: rgba(255, 204, 102, 0.18);
  color: var(--accent-gold);
}

.badge--red {
  background: rgba(255, 107, 107, 0.18);
  color: var(--accent-red);
}

.table-actions {
  display: flex;
  gap: 6px;
}

.link-button {
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
}

.link-button--danger {
  border-color: rgba(255, 107, 107, 0.6);
  color: var(--accent-red);
}

.link-button:hover {
  border-color: rgba(255, 204, 102, 0.6);
  color: var(--accent-gold);
}

.link-button--danger:hover {
  border-color: rgba(255, 107, 107, 0.9);
  color: #ff9494;
}

.alert {
  margin-top: 10px;
  border-radius: 14px;
  padding: 8px 10px;
  font-size: 12px;
}

.alert--success {
  background: rgba(105, 210, 140, 0.12);
  border: 1px solid rgba(105, 210, 140, 0.8);
  color: var(--accent-green);
}

.alert--error {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.8);
  color: var(--accent-red);
}

.nav-user-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-user-block .nav-link--muted {
  pointer-events: none;
}

.nav-user-block button.nav-user-trigger.nav-link--muted {
  pointer-events: auto;
}

/* Страницы входа и регистрации */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, #161927 0, #050713 75%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.auth-title {
  margin: 0 0 20px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-label {
  font-size: 13px;
  color: var(--text-muted);
}

.auth-input {
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  outline: none;
}

.auth-input:focus {
  border-color: var(--border-gold-soft);
  box-shadow: 0 0 0 2px rgba(255, 204, 102, 0.15);
}

.auth-error {
  margin: 0;
  font-size: 13px;
  color: var(--accent-red);
}

.auth-submit {
  margin-top: 6px;
}

.auth-footer {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-link {
  color: var(--accent-gold);
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

/* Страница каталога тестов */
.tests-page {
  padding: 24px 0;
}

.tests-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, #161927 0, #050713 75%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.tests-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
}

.tests-subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.tests-list {
  min-height: 80px;
}

.tests-loading,
.tests-empty {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.tests-empty a {
  color: var(--accent-gold);
}

.tests-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tests-li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.tests-li-main {
  flex: 1;
  min-width: 0;
}

.tests-li-name {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.tests-li-desc {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.tests-li-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.tests-breadcrumb {
  margin: 0 0 16px;
}

.tests-breadcrumb-link {
  font-size: 14px;
  color: var(--accent-gold);
  text-decoration: none;
}

.tests-breadcrumb-link:hover {
  text-decoration: underline;
}

.tests-hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.tests-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.tests-category-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tests-category-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 184, 77, 0.35);
}

.tests-category-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.tests-category-card-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.tests-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-main);
}

.tests-li-desc.small-muted {
  font-size: 12px;
  opacity: 0.9;
}

.badge-api,
.badge-delta,
.badge-custom {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.badge-api {
  background: rgba(44, 116, 179, 0.25);
}

.badge-delta {
  background: rgba(255, 184, 77, 0.2);
}

.badge-custom {
  background: rgba(105, 210, 140, 0.18);
}

.tests-li-btn {
  flex-shrink: 0;
  text-decoration: none;
}

/* Плавные переходы между страницами (page-transitions.js) */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%, rgba(2, 3, 10, 0) 0%, rgba(2, 3, 10, 0.55) 55%, rgba(2, 3, 10, 0.92) 100%),
    linear-gradient(180deg, rgba(255, 204, 102, 0.06) 0%, transparent 35%, rgba(2, 3, 10, 0.4) 100%);
  transition: opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.page-transition-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

@keyframes pageTransitionEnter {
  from {
    opacity: 0;
    transform: translateY(0.65rem) scale(0.992);
    filter: blur(1px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

body.page-transition--ready .site-root,
body.page-transition--ready .admin-layout {
  animation: pageTransitionEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .page-transition-overlay {
    transition-duration: 0.01ms;
  }

  body.page-transition--ready .site-root,
  body.page-transition--ready .admin-layout {
    animation: none;
  }
}

/* Клик по имени в шапке → модальное окно профиля (auth.js) */
button.nav-user-trigger {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: inherit;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

button.nav-user-trigger:hover,
button.nav-user-trigger:focus-visible {
  color: var(--accent-gold-soft);
  text-decoration: underline;
  outline: none;
}

.profile-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 3, 10, 0.72);
  backdrop-filter: blur(6px);
}

.profile-modal-backdrop[hidden] {
  display: none !important;
}

.profile-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  padding: 22px 22px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold-soft);
  background: var(--bg-card-soft);
  box-shadow: var(--shadow-gold);
}

.profile-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.profile-modal-close:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.profile-modal h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-gold-soft);
  padding-right: 36px;
}

.profile-modal-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-gold-soft);
}

.profile-modal-section h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.profile-modal-dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 0.9rem;
}

.profile-modal-dl dt {
  margin: 0;
  color: var(--text-muted);
}

.profile-modal-dl dd {
  margin: 0;
  word-break: break-word;
}

.profile-modal .auth-form label {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.profile-modal .auth-input {
  width: 100%;
  margin-top: 4px;
}

.profile-modal .primary-button {
  margin-top: 12px;
  width: 100%;
}

