/* ==========================================================================
   GoVerse — тема «Гофер» для студенческого фронтенда
   Подключается после pico.min.css. Не влияет на админку (/admin).
   ========================================================================== */

/* ---- Шрифты: Rubik (display, self-hosted, без CDN) ---------------------- */

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/rubik-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/rubik-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/rubik-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/rubik-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Токены палитры «Гофер» --------------------------------------------- */

:root[data-theme="light"] {
  --gv-font-display: 'Rubik', 'Segoe UI', system-ui, sans-serif;

  /* пастельно-голубой фон и поверхности */
  --pico-background-color: #eaf3f7;
  --pico-card-background-color: #fbfdfe;
  --pico-form-element-background-color: #fbfdfe;
  --pico-mark-background-color: #eaf5fa;
  --pico-mark-color: #007d9c;

  /* холодные чернила и сине-серые границы */
  --pico-color: #1f2e38;
  --pico-muted-color: #21282e;
  --pico-muted-border-color: #d3e0e9;
  --pico-form-element-border-color: #c3d5e0;

  /* акцент цвета гофера */
  --pico-primary: #007d9c;
  --pico-primary-background: #007d9c;
  --pico-primary-border: #007d9c;
  --pico-primary-hover: #006580;
  --pico-primary-hover-background: #006580;
  --pico-primary-hover-border: #006580;
  --pico-primary-focus: rgba(0, 125, 156, 0.35);
  --pico-text-selection-color: rgba(0, 125, 156, 0.2);
}

/* ---- Базовые оверрайды ------------------------------------------------ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--gv-font-display), Georgia, serif;
}

/* заголовки страниц чуть спокойнее по начертанию */
h1 { font-weight: 600; }
h2 { font-weight: 600; }

/* ---- Футер ------------------------------------------------------------ */

.gv-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--pico-muted-border-color, #d3e0e9);
  color: var(--pico-muted-color, #5c6b77);
  font-size: 0.85rem;
}
.gv-footer a {
  color: var(--pico-primary, #007d9c);
  text-decoration: none;
}
.gv-footer a:hover { text-decoration: underline; }
.gv-footer .gv-footer-col {
  text-align: center;
  margin-bottom: 0.5rem;
}

.gv-footer-description {
  font-size: 0.7rem;
  line-height: 1.4;
  margin: 0;
}

/* ---- Каталог курсов (/courses) -------------------------------------------- */

.gv-page-title { font-size: 1.35rem; }

/* ---- Политики (/privacy, /offer) — компактный шрифт --------------------- */

.gv-policy-page > h1 {
  padding: 1rem 1.25rem 0;
  margin-bottom: 0;
}
.gv-privacy-body {
  font-size: 0.85rem;
  line-height: 1.6;
  padding: 1rem 1.25rem 1.25rem;
}
.gv-privacy-withdraw {
  padding: 0 1.25rem 1.25rem;
}
.gv-privacy-body p {
  margin: 0.6em 0;
}
.gv-privacy-body h2 { font-size: 1.1rem; margin: 1.2em 0 0.5em; }
.gv-privacy-body h3 { font-size: 1rem; margin: 1em 0 0.4em; }
.gv-privacy-body h4 { font-size: 0.9rem; margin: 0.9em 0 0.35em; }
.gv-privacy-body ul,
.gv-privacy-body ol {
  padding-left: 1.5rem;
  margin: 0.6em 0;
}
.gv-privacy-body li { font-size: 0.85rem; margin: 0.3em 0; }
.gv-privacy-body table th,
.gv-privacy-body table td {
  font-size: 0.8rem;
  padding: 0.25rem 0.4rem;
}

/* ---- Общие компоненты темы -------------------------------------------- */

/* Золотая пилюля XP */
.gv-xp {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #fbf3e2;
  border: 1px solid #e8d9b0;
  color: #7a5816;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.gv-xp svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Подпись звания */
.gv-rank {
  color: #7a5816;
  font-family: var(--gv-font-display), Georgia, serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Прогресс «пути»: индиго → золото */
progress.gv-progress {
  height: 0.6rem;
  border-radius: 999px;
  background: #dce7ee;
}
progress.gv-progress::-webkit-progress-bar { background: #dce7ee; border-radius: 999px; }
progress.gv-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #007d9c, #2e7d5b);
  border-radius: 999px;
}
progress.gv-progress::-moz-progress-bar { background: #007d9c; border-radius: 999px; }

/* Тост-уведомления */
.gv-toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.gv-toast {
  pointer-events: auto;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: #1f2e38;
  color: #fbfdfe;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  font-size: 0.9rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.gv-toast.gv-toast--xp {
  background: #fbf3e2;
  border: 1px solid #e8d9b0;
  color: #7a5816;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  font-weight: 600;
}
.gv-toast--hide { opacity: 0; }

/* Статус-иконки шагов/уроков */
.gv-status { display: inline-flex; align-items: center; width: 15px; height: 15px; }
.gv-status--done { color: #0b9c5e; }
.gv-status[data-status="completed"] { stroke-width: 5; }
.gv-status--current { color: #007d9c; }
.gv-status--todo { color: #a9b7c6; }

/* Глифы типов шагов */
.gv-glyph { display: inline-flex; align-items: center; color: #3f9fbd; width: 20px; height: 20px; }

.bg-card-link:hover .gv-glyph,
.bg-card-link:focus .gv-glyph {
    color: var(--pico-primary, #007d9c);
}

/* Карточка «квеста» (курс) */
.gv-card-quest {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--pico-muted-border-color, #d3e0e9);
  border-radius: 12px;
  background: var(--pico-card-background-color, #fbfdfe);
}
.gv-card-quest img {
  width: 160px;
  height: 160px;
  display: block;
  border-radius: 12px;
  margin: 12px auto 0;
}
.gv-card-quest .gv-card-body { padding: 0.75rem 1rem 1rem; }
.gv-card-quest h3 { margin: 0.3rem 0 0.45rem 0; font-size: 0.85rem; }
.gv-card-quest h3 a { font-size: 0.8rem; text-decoration: none; }
.gv-card-quest h3 a:hover { text-decoration: underline; }
.gv-card-quest .gv-card-desc { font-size: 0.75rem; line-height: 1.4; color: var(--pico-muted-color, #5c6b77); }
.gv-card-quest a[role="button"],
.gv-card-quest button {
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  margin-bottom: 0.05rem;
  margin-top: 0.6rem;
}
.gv-card-quest { text-align: center; }

/* Карточка бестиария (баг) */
.gv-card-bestiary {
  border: 1px solid var(--pico-muted-border-color, #d3e0e9);
  border-radius: 10px;
  background: var(--pico-card-background-color, #fbfdfe);
  overflow: hidden;
}
.gv-card-bestiary img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.gv-card-bestiary .gv-card-body { padding: 0.5rem 0.75rem 0.75rem; }
/* На главной (.bug-grid): компактный превью-квадрат и мелкий заголовок */
.bug-grid .gv-card-bestiary {
  justify-self: center;
  width: 10rem;
}
.bug-grid .gv-card-bestiary img {
  width: 10rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.bug-grid .gv-card-bestiary .gv-card-body { padding: 0.5rem 0 0.75rem; text-align: center; }
.bug-grid .gv-card-bestiary .gv-card-body a { font-size: 0.7rem; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.bug-grid .gv-card-bestiary .gv-card-body a:hover { color: var(--pico-primary); text-decoration: underline; }

/* Аватар-инициал */
.gv-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--pico-primary, #007d9c);
  color: #fbfdfe;
  font-weight: 600;
  text-transform: uppercase;
}

/* Круглая кнопка-подсказка «?» около поля отображаемого имени.
   Фон и цвет заданы явно: summary (в отличие от button) не красится Pico,
   а цвет текста перебивает правило аккордеона — поэтому селектор с весом. */
.gv-hint-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.3rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--pico-muted-border-color, #e2e5ea);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
}
.gv-hint summary.gv-hint-btn {
  color: #000;
}

/* Маленькая всплывашка с текстом подсказки рядом со знаком вопроса.
   Открывается кликом (details), без JS, ничего не перекрывает. */
.gv-hint {
  position: relative;
  display: inline-block;
}
.gv-hint details {
  display: inline-block;
  margin-bottom: 0;
}
.gv-hint summary {
  list-style: none;
  cursor: pointer;
}
/* Pico добавляет открытому summary margin-bottom (аккордеон) — он толкал
   поле ввода вниз при каждом клике. В попапке ему не место. */
.gv-hint details[open] > summary {
  margin-bottom: 0;
}
/* Pico красит summary внутри details.dropdown как поле формы (белый фон,
   рамка, отступы слева/справа) — для триггера в шапке всё сносим.
   Селектор нарочно жирный: правило Pico перебивает только вес. */
nav details.gv-nav-profile-menu.dropdown > summary:not([role]) {
  height: auto;
  padding: 0;
  border: none;
  background: none;
  background-color: transparent;
  box-shadow: none;
}
nav details.gv-nav-profile-menu.dropdown > summary::after {
  display: none;
}
/* Тот же шеврон Pico у всплывашки-подсказки около полей (там веса хватает). */
.gv-hint summary::after {
  display: none;
}
.gv-hint summary::-webkit-details-marker {
  display: none;
}
/* Клик мимо подсказки закрывает её: прозрачный слой на весь экран
   ловит клик и отдаёт его summary (переключение details), попап выше слоя. */
.gv-hint details[open] > summary::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  cursor: default;
}
.gv-hint-pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.5rem);
  transform: translateX(-50%);
  width: max-content;
  max-width: 17rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--pico-muted-border-color, #d0d7de);
  border-radius: 0.5rem;
  background: var(--pico-card-background-color, #fff);
  color: var(--pico-color, inherit);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
  text-transform: none;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
  z-index: 10;
}

/* Баннер тестового режима — над шапкой, static, на всю ширину */
.gv-top-banner {
  background: #fff8e1;
  border-bottom: 1px solid #e8d9b0;
  color: #7a5816;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 0.35rem 1rem;
  overflow-wrap: anywhere;
}
.gv-top-banner a {
  color: var(--pico-primary, #007d9c);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  white-space: nowrap;
}
.gv-top-banner a:hover {
  color: var(--pico-primary-hover, #006580);
}

/* Cookie banner — fixed bottom, над всем кроме админки */
.gv-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff8e1;
  border-top: 1px solid #e8d9b0;
  color: #7a5816;
  padding: 0.75rem 1rem;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
  overflow-wrap: anywhere;
}
.gv-cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}
.gv-cookie-banner-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  flex: 1 1 280px;
}
.gv-cookie-banner-text a {
  color: var(--pico-primary, #007d9c);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.gv-cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.gv-cookie-btn {
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 0.4rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.gv-cookie-accept {
  background: var(--pico-primary, #007d9c);
  color: #fff;
  border-color: var(--pico-primary, #007d9c);
}
.gv-cookie-accept:hover {
  background: var(--pico-primary-hover, #006580);
}
.gv-cookie-decline {
  background: #fff;
  color: #7a5816;
  border-color: #e8d9b0;
}

/* Логотип в шапке: на всю высоту навбара */
.gv-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pico-background-color, #ffffff);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  --pico-block-spacing-vertical: 0;
  padding: 0.5rem 0;
}
.gv-header nav {
  height: 2.0rem;
  --pico-nav-element-spacing-vertical: 0;
}
.gv-header nav a {
  font-size: 0.85rem;
}
body {
  scroll-padding-top: 5rem;
}
.gv-logo {
  display: flex;
  align-items: center;
  padding: 0;
  text-decoration: none;
}
.gv-logo img {
  height: 2.25rem;
  width: auto;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.gv-logo:hover img {
  transform: scale(1.8);
}
.gv-logo-text {
  margin-left: 1.00rem;
  font-family: var(--gv-font-display), Georgia, serif;
  font-size: 1.0rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.gv-logo:hover .gv-logo-text {
  transform: scale(1.00);
}

/* Ссылка профиля в шапке */
.gv-nav-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}
.gv-nav-profile-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 12rem;
  font-size: 0.85rem;
}
.gv-nav-profile .gv-avatar {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.7rem;
}

/* Выпадающее меню профиля в шапке (Pico details.dropdown).
   Триггер — голый, без рамки/фона/отступов: только аватар и имя. */
.gv-nav-profile-menu {
  margin-bottom: 0;
  background: none;
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.gv-nav-profile-menu summary {
  list-style: none;
  cursor: pointer;
  background: none;
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.gv-nav-profile-menu summary::-webkit-details-marker {
  display: none;
}

/* Профиль студента */
.gv-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.gv-profile-card .gv-avatar {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.4rem;
}
.gv-profile-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.gv-profile-identity h2 { margin: 0; }
.gv-profile-identity .gv-rank { margin: 0; }

.gv-achievements {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}
.gv-achievement { margin: 0; }
.gv-achievement-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.gv-achievement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.gv-achievement-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #e2f2e8;
  color: #2e7d5b;
  white-space: nowrap;
}
.gv-achievement-status--locked {
  background: #eef2f5;
  color: #7c8b96;
}
.gv-achievement-threshold {
  margin: 0;
  font-size: 0.8rem;
  color: #7a5816;
}

/* Баннеры вердиктов (успех/ошибка) */
.gv-banner {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  margin: 0.5rem 0 0.25rem;
}
.gv-banner--success { background: #e7f3ec; color: #1e6b49; }
.gv-banner--danger { background: #f9e9e6; color: #a0382b; }
.gv-banner--gold { background: #fbf3e2; color: #7a5816; }

/* ==========================================================================
   Плеер и шаги (перенесено из course_player.templ playerStyles)
   ========================================================================== */

.player-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.player-layout > main {
  min-width: 0;
}
.player-layout aside {
  border-right: 1px solid var(--pico-muted-border-color, #ddd);
  padding-right: 1rem;
  font-size: 0.8rem;
  line-height: 1.0;
}
.player-layout aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.player-layout aside li {
  margin-bottom: 0.01rem;
  padding: 5px;
}
.player-layout aside h4 {
  font-size: 1rem;
  margin: 0.4rem 0 0.2rem;
}
.step-nav {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.2rem;
  box-sizing: border-box;
  width: 100%;
}
#step-content {
  box-sizing: border-box;
  width: 100%;
}
.step-nav .step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--pico-muted-border-color, #ddd);
  border-radius: 4px;
  text-decoration: none;
}
.step-nav .step-btn.completed {
  background-color: #e6f4ea;
  border-color: #b7e4c7;
  color: #1e7e34;
}
.step-nav .step-btn.completed:hover {
  background-color: #dcefd2;
}
.step-nav .step-btn.in_progress {
  background-color: #fff8e1;
  border-color: #e8d9b0;
  color: #7a5816;
}
.step-nav .step-btn.in_progress:hover {
  background-color: #fff3cd;
}
.step-nav .step-btn.active {
  border-width: 2px;
  border-color: var(--pico-primary, #007d9c);
  color: var(--pico-primary, #007d9c);
  font-weight: 600;
}
.step-nav .step-btn:hover {
  border-color: var(--pico-primary, #007d9c);
}
.step-nav .step-btn .gv-glyph {
  width: 24px;
  height: 24px;
}
.step-nav .step-btn .gv-status {
  width: 16px;
  height: 16px;
}
.step-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.solution-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  background: #e6f4ea;
  color: #1e7e34;
  font-size: 0.85rem;
}
.quiz-result {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin: 0.5rem 0 0.25rem;
}
.quiz-result.solved {
  background: #e6f4ea;
  color: #1e7e34;
}
.quiz-result.wrong {
  background: #fdecea;
  color: #b3261e;
}
.quiz-result.attempts {
  background: #fff3cd;
  color: #8a6d1d;
}
.quiz-result-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}
.quiz-result-row .quiz-result { margin: 0; }
.quiz-bug-error {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  border: 1px solid #f5c2c0;
  background: #fdecea;
  color: #b3261e;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}
.quiz-form {
  font-size: 0.85rem;
  padding-left: 0.6rem;
}
.quiz-form fieldset[disabled] {
  opacity: 0.6;
  border: none;
  padding: 0;
  margin: 0;
}
.quiz-form fieldset[disabled] input,
.quiz-form fieldset[disabled] textarea,
.quiz-form fieldset[disabled] select {
  cursor: not-allowed;
}
.quiz-cta-in-form {
  margin-top: 1rem;
  padding-right: 1rem;
}
.quiz-cta-in-form a[role="button"],
.quiz-cta-in-form button {
  display: block;
  width: 100%;
  text-align: center;
}
.quiz-form p {
    font-weight: bold;
}
.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.5rem 0;
}
.quiz-option:last-of-type {
  margin-bottom: 1rem;
}
.quiz-option label {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.quiz-option input[type="radio"] {
  margin: 0;
}
.quiz-option code {
  background: var(--pico-code-background-color, #f3f3f5);
  padding: 0.15em 0.35em;
  border-radius: 3px;
  font-size: 0.9em;
}
code {
  color: #d16a15;
}
.quiz-option.correct {
  background: #e6f4ea;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
}
.quiz-correct-mark {
  color: #1e7e34;
  font-weight: bold;
}
.quiz-solved-answer {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  background: #f8fff9;
  font-size: 0.85rem;
}
.quiz-solved-answer p {
  margin: 0.25rem 0;
}
.quiz-correct-text {
  font-weight: bold;
  color: #1e7e34;
}
.gv-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.gv-step-head .gv-step-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.gv-step-head .xp-line {
  margin: 0;
  flex-shrink: 0;
  text-align: right;
}
.gv-step-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}
.xp-line {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-align: right;
}
.xp-line strong {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: #fff3cd;
  color: #8a6d1d;
}
.solution-code {
  background: var(--pico-muted-border-color, #eee);
  padding: 1rem;
  border-radius: 4px;
  white-space: pre-wrap;
  font-size: 0.75rem;
}
.verdict-line code.verdict-code {
  font-size: 0.75rem;
  color: var(--pico-muted-color, #666);
}
.verdict-line code.attempt-number {
  font-size: 0.75rem;
  color: var(--pico-primary, #007d9c);
  margin-right: 0.5rem;
}
.test-run-output {
  background: var(--pico-muted-border-color, #eee);
  padding: 0.75rem;
  border-radius: 4px;
  white-space: pre-wrap;
}
.code-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.code-limits {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--pico-muted-border-color, #eee);
  border-radius: var(--pico-border-radius, 4px);
  font-size: 0.85rem;
  color: var(--pico-muted-color, #666);
}
.attempts-line {
  margin-bottom: 0.25rem;
}
.editor-heading {
  font-size: 1rem;
  margin: 0 0 0.25rem 0;
}
.code-limits .code-limits-sep {
  opacity: 0.5;
}
.code-editor {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 0.65rem;
  line-height: 1.5;
  letter-spacing: normal;
  tab-size: 4;
  padding: 0.5rem;
  border: 1px solid var(--pico-form-element-border-color, #cfd5e2);
  border-radius: var(--pico-border-radius, 4px);
  box-sizing: border-box;
  margin: 0;
  width: 100%;
  height: calc(var(--ce-rows, 12) * 1.2rem + 1.125rem);
  resize: vertical;
  caret-color: #a9b7c6;
}
.code-editor:focus {
  border-color: var(--pico-form-element-active-border-color, #007d9c);
  box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-form-element-focus-color);
}

/* ==========================================================================
   Страница квиза (перенесено из quiz_page.templ)
   ========================================================================== */

.quiz-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--pico-muted-border-color, #d3e0e9);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0, rgba(201, 151, 60, 0.1), transparent 35%),
    var(--pico-card-background-color, #fbfdfe);
}
.quiz-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  margin-bottom: 1rem;
}
.quiz-page-header h3 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.15rem;
}
.quiz-page-header .xp-line {
  margin: 0;
  flex-shrink: 0;
  text-align: right;
}
.quiz-page-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
.quiz-page-main { min-width: 0; }
.quiz-page-infobox {
  min-width: 0;
  container-type: inline-size;
  container-name: quiz-infobox;
  background: #eaf5fa;
  border: 1px solid #d3e0e9;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
@media (min-width: 900px) {
  .quiz-page-body { grid-template-columns: 1fr clamp(160px, calc(50vw - 290px), 280px); }
}

.quiz-infobox-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #eaf5fa;
  border: 1px solid #d3e0e9;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.quiz-page-infobox .quiz-infobox-head {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}
.quiz-infobox-title {
  margin: 0;
  font-size: 0.95rem;
  color: #7a5816;
}


.quiz-step-link {
  margin-top: 0.4rem;
  font-size: 0.65rem;
}
.quiz-step-link a {
  color: var(--pico-primary, #007d9c);
  text-decoration: none;
}
.quiz-step-link a:hover {
  text-decoration: underline;
}
.quiz-step-note {
  font-size: 0.6rem;
  color: var(--pico-muted-color, #5c6b77);
}

/* ==========================================================================
   Инфобокс бага в квизе (перенесено из quiz_fragment.templ)
   ========================================================================== */

.quiz-bug-head {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  /*gap: 1rem;*/
  align-items: center;
  background: #f5f9fb;
  /*border: 1px solid #d3e0e9;*/
  border-radius: 8px;
  /*padding: 0.2rem 0.3rem;*/
  margin-bottom: 0.8rem;
  min-width: 0;
}
.quiz-page-infobox .quiz-bug-head {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.quiz-bug-source { display: flex; gap: 0.75rem; align-items: center; min-width: 0; }
.quiz-bug-source a { text-decoration: none; }
.quiz-bug-source a:hover { text-decoration: underline; }
.quiz-bug-text { /*display: flex;*/ flex-direction: column; gap: 0.25rem; min-width: 0; }
.quiz-bug-head figure { margin: 0; flex-shrink: 0; }
.quiz-bug-head img {
  width: clamp(32px, 5vw, 64px);
  height: clamp(32px, 5vw, 64px);
  object-fit: cover;
  cursor: zoom-in;
  border-radius: 6px;
}
.quiz-bug-chain { font-size: 0.75rem; color: #555; margin: 0; min-width: 0; overflow-wrap: break-word; }
.quiz-bug-chain.quiz-step-link {
  font-size: 0.65rem;
  background: #eef7fb;
  /*border: 1px solid #d3e0e9;
  border-radius: 6px;
  padding: 0.35rem 0.6rem;*/
}
.quiz-bug-sep { margin: 0 0.25rem; }

/* Поимка бага на кнопке шага: крупное превью вместо глифа, уползание в нору */
.step-btn.has-bug {
  padding: 0.0rem 0.0rem;
  align-self: center;
}
.step-btn-bug {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 48px;
}
.step-btn-bug-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  position: relative;
  z-index: 2;
}
.step-btn-bug .bug-hole {
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  width: 10px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #0b141d 0%, #0b141d 60%, #1e3448 80%, transparent 81%);
  opacity: 0.35;
  z-index: 1;
  transition: opacity 0.3s ease;
}
.step-btn-bug .bug-hole-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #7a5816;
  background: rgba(251, 243, 226, 0.92);
  border: 1px solid #c9973c;
  border-radius: 999px;
  padding: 0 0.25rem;
  white-space: nowrap;
  line-height: 1.4;
  z-index: 3;
}
.step-btn-bug.is-catching .bug-hole { opacity: 1; animation: gv-hole-out 1.5s ease-in forwards; }
.step-btn-bug.is-caught .bug-hole { display: none; }
.step-btn-bug.is-caught .step-btn-bug-img { visibility: hidden; }
.step-btn-bug.is-catching .step-btn-bug-img { animation: gv-step-bug-catch 1.5s ease-in forwards; }
.step-btn-bug.is-catching .bug-hole-label { animation: gv-stamp-in 1.5s ease-in forwards; }
.step-btn-bug.is-emerging .step-btn-bug-img { animation: gv-step-bug-emerge 1s ease-out forwards; }
.step-btn-bug.is-emerging .bug-hole { opacity: 1; }
@keyframes gv-step-bug-catch {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
  25% { transform: translate(-2px, 1px) scale(1.05) rotate(-8deg); opacity: 1; }
  35% { transform: translate(2px, -1px) scale(1.05) rotate(8deg); opacity: 1; }
  80% { transform: translate(5px, 13px) scale(0.2) rotate(30deg); opacity: 1; }
  100% { transform: translate(6px, 16px) scale(0) rotate(40deg); opacity: 0; }
}
@keyframes gv-step-bug-emerge {
  0% { transform: translate(6px, 16px) scale(0) rotate(40deg); opacity: 0; }
  40% { transform: translate(3px, 8px) scale(0.6) rotate(15deg); opacity: 1; }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
}
@keyframes gv-stamp-in {
  0%, 75% { opacity: 0; transform: translate(-50%, -50%) rotate(-18deg) scale(1.6); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(-18deg) scale(1); }
}
@keyframes gv-hole-out {
  0%, 80% { opacity: 1; }
  100% { opacity: 0; }
}
@media (min-width: 900px) {
  @container quiz-infobox (max-width: 400px) {
    .quiz-bug-head {
      flex-direction: column;
      align-items: stretch;
    }
    .quiz-bug-source {
      flex-direction: column;
      align-items: stretch;
      margin-left: 0;
      gap: 0.5rem;
    }
    .quiz-bug-head figure { align-self: stretch; }
    .quiz-bug-head img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  }
}
.quiz-bg-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.quiz-bg-lightbox.open { display: flex; }
.quiz-bg-lightbox img { max-width: 90vw; max-height: 90vh; }
@media (prefers-reduced-motion: reduce) {
  .step-btn-bug.is-catching .step-btn-bug-img,
  .step-btn-bug.is-emerging .step-btn-bug-img,
  .step-btn-bug.is-catching .bug-hole,
  .step-btn-bug.is-catching .bug-hole-label { animation-duration: 0.01ms; animation-iteration-count: 1; }
  .step-btn-bug.is-catching .step-btn-bug-img { opacity: 0; transform: scale(0); }
  .step-btn-bug.is-catching .bug-hole { opacity: 0; }
  .step-btn-bug.is-catching .bug-hole-label { opacity: 1; }
}

/* ==========================================================================
   Список багариума (перенесено из buggarium_list.templ)
   ========================================================================== */

.bg-page-title { font-size: 1.5rem; margin-bottom: 0.75rem; }
.bg-filter { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.bg-filter label { margin-bottom: 0; font-size: 0.85rem; line-height: 2rem; }
.bg-filter select {
  font-size: 0.8rem;
  padding: 0 1.5rem 0 0.5rem;
  width: auto;
  max-width: 26rem;
  height: 2rem;
  line-height: 2rem;
  margin-bottom: 0;
}
.bg-filter button { width: auto; height: 2rem; line-height: 2rem; padding: 0 0.75rem; font-size: 0.8rem; margin-bottom: 0; }
.bg-filter button.bg-view { display: inline-flex; align-items: center; justify-content: center; width: 2rem; padding: 0; }
.bg-filter button.bg-view svg { width: 18px; height: 18px; }
.bg-filter button.bg-view-active { border-color: #14532d; color: #14532d; }
.bg-filter select option.bg-bold { font-weight: bold; }
.bg-list { font-size: 0.9rem; }
.bg-card { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.bg-card.gv-card-bestiary {
  padding: 0.45rem;
  background:
    linear-gradient(0deg, rgba(201, 151, 60, 0.06), transparent 60%),
    var(--pico-card-background-color, #fbfdfe);
}
.bg-card img { width: 100px; height: 100px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.bg-card-main { flex: 1 1 auto; min-width: 0; }
.bg-card-chain { font-size: 0.8rem; color: #555; margin-top: 0.15rem; }
.bg-card-links { font-size: 0.8rem; margin-top: 0.15rem; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.bg-card-main > a { text-decoration: none; }
.bg-card-main > a:hover { text-decoration: underline; }
.bg-card-link { display: inline-flex; align-items: center; text-decoration: none; }
.bg-card-link:hover { text-decoration: underline; }
.bg-card-link.bg-card-link-muted { opacity: 0.4; }
.bg-list.bg-grid .bg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.75rem; }
.bg-list.bg-grid .bg-card { flex-direction: column; align-items: center; text-align: center; }
.bg-list.bg-grid .bg-card img { width: 150px; height: 150px; }
.bg-list.bg-grid .bg-card-chain { display: none; }
.bg-list.bg-grid .bg-card-main > a { font-size: 0.75rem; }
.bg-list.bg-grid .bg-card-links { font-size: 0.7rem; display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: right; }
.bg-list.bg-grid .bg-card-link { color: #6c757d; }
.bg-pagination { display: flex; align-items: center; gap: 1rem; font-size: 0.85rem; margin-top: 1rem; flex-wrap: wrap; }
.bg-pagination-top { margin-top: 0; margin-bottom: 1rem; }
.bg-page { text-decoration: none; padding: 0 0.25rem; }
.bg-page:hover { text-decoration: underline; }
.bg-page-current { font-weight: bold; }
.bg-empty { font-size: 0.9rem; }

/* ==========================================================================
   Деталь багариума (перенесено из buggarium_detail.templ)
   ========================================================================== */

.bg-crumbs { font-size: 0.85rem; margin-bottom: 0.5rem; }
.bg-title { font-size: 1.1rem; margin: 0 0 0.75rem 0; }
.bg-detail-row { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.bg-images { flex: 0 0 25vw; min-width: 220px; }
.bg-images figure { margin: 0.3rem 0 1rem 0.3rem; }
.bg-images img { width: 100%; cursor: zoom-in; border-radius: 6px; }
.bg-frame-wrap { position: relative; padding: 30px;}
.bg-frame-wrap .bg-video { width: 100%; cursor: zoom-in; border-radius: 6px; }
.bg-video-hidden { display: none; }
.bg-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 16px);
    height: auto;
    pointer-events: none;
}

/* Compact frame for profile caught bugs grid */
.gv-caught-bugs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.35rem;
}

.gv-caught-bug-frame {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gv-caught-bugs .bg-frame-wrap {
    width: 100px;
    padding: 8px;
    margin: 0 auto;
}
.gv-caught-bugs .bg-frame {
    width: calc(100% + 4px);
}
.gv-caught-bugs .bg-zoom {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Home page bestiary: крупнее профиля, чтобы было видно */
.gv-home-bugs {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}
.gv-home-bugs .bg-frame-wrap {
    width: 160px;
    padding: 14px;
}
.gv-home-bugs .bg-frame {
    width: calc(100% + 10px);
}

.gv-caught-bug {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.gv-caught-bug-date {
    font-size: 0.65rem;
    color: #8a8a8a;
    line-height: 1;
    text-align: center;
    margin-top: 0;
}

.bg-images figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.0rem;
    padding-top: 0.5rem;

}
.bg-latin-name {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    padding-left: 1rem
}
.bg-latin-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pico-muted-color, #5c6b77);
    font-weight: 600;
    white-space: nowrap;
}
.bg-latin-value {
    font-family: var(--gv-font-display), Georgia, serif;
    font-style: italic;
    font-size: 0.7rem;
    color: var(--pico-muted-color, #5c6b77);
}
.bg-classifier-chain {
    font-size: 0.8rem;
    color: var(--pico-muted-color, #5c6b77);
    line-height: 1.5;
    padding-left: 1rem;
}
.bg-classifier-chain .bg-crumb-sep {
    opacity: 0.5;
}
.bg-crumb-link {
    color: var(--pico-primary);
    text-decoration: none;
}
.bg-crumb-link:hover {
    text-decoration: underline;
}
.bg-description { flex: 1 1 50%; min-width: 0; font-size: 0.8rem; padding-top: 0.8rem;}
.bg-links-block { background: #f3f4f6; border-radius: 6px; padding: 0.75rem 1rem; margin-top: 1rem; }
.bg-links-block h2 { font-size: 0.85rem; margin: 0 0 0.5rem 0; }
.bg-links-block ul { margin: 0; padding-left: 1.25rem; font-size: 0.8rem; }
.bg-links-block li { margin-bottom: 0.2rem; }
#bg-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#bg-lightbox.open { display: flex; }
#bg-lightbox img { max-width: 90vw; max-height: 90vh; }

/* ==========================================================================
   Список квизов (перенесено из quizzes_list.templ)
   ========================================================================== */

.qz-page-title { font-size: 1.5rem; margin-bottom: 0.75rem; }
.qz-list {
  font-size: 0.9rem;
  padding-left: 0;
  margin-left: 0;
  line-height: 1.2;
}
.qz-card {
  list-style: none;
  border-radius: 8px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 0;
}
.qz-card-main { display: flex; align-items: center; gap: 0.75rem; }
.qz-card-main a { text-decoration: none; font-weight: 600; }
.qz-card-main a:hover { text-decoration: underline; }
.qz-card-course-required { font-size: 0.8rem; color: #6c757d; }
.qz-pagination { display: flex; align-items: center; gap: 1rem; font-size: 0.85rem; margin-top: 1rem; flex-wrap: wrap; }
.qz-pagination-top { margin-top: 0; margin-bottom: 1rem; }
.qz-page { text-decoration: none; padding: 0 0.25rem; }
.qz-page:hover { text-decoration: underline; }
.qz-page-current { font-weight: bold; }
.qz-empty { font-size: 0.9rem; }
/* Адаптивность шапки и футера: без горизонтального скролла */
@media (max-width: 640px) {
  .gv-header {
    position: static;
    padding: 0.5rem 0;
  }
  .gv-header nav {
    height: auto;
    --pico-nav-element-spacing-vertical: 1rem;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
  }
  .gv-logo img {
    height: 2.5rem;
  }
  .gv-header nav ul {
    flex-wrap: wrap;
  }
  .gv-nav-profile-name {
    max-width: 6rem;
  }
  .gv-footer .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Сетки карточек */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.bug-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 10rem);
  gap: 1.25rem;
}
.gv-card-cover {
  display: block;
}

.gv-card-cover img {
  width: 160px;
  height: 160px;
  display: block;
  border-radius: 12px;
  margin: 0px auto 0;
}

/* Hero-баннер «Лаборатория гофера» — редизайн 2026: завлекающий */
.gv-hero {
  position: relative;
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--pico-muted-border-color, #d3e0e9);
  border-radius: 14px;
  background:
    radial-gradient(circle at 85% 15%, rgba(201, 151, 60, 0.18), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(0, 125, 156, 0.14), transparent 45%),
    linear-gradient(160deg, #fbfdfe, #eaf3f7);
  overflow: hidden;
}
.gv-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}
.gv-hero-copy { min-width: 0; }
.gv-hero-badge {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.2rem 0.75rem;
  border: 1px solid #c9973c;
  border-radius: 999px;
  color: #7a5816;
  background: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gv-hero-title {
  font-family: var(--gv-font-display), Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.25;
  margin: 0 0 0.45rem;
  letter-spacing: -0.005em;
  font-weight: 600;
}
.gv-hero-subtitle {
  margin: 0 0 1rem;
  max-width: 34rem;
  color: var(--pico-muted-color, #5c6b77);
  font-size: 0.85rem;
  line-height: 1.4;
}
.gv-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.gv-hero-features li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid #dbe7ef;
  border-radius: 999px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  color: #1f2e38;
  white-space: nowrap;
}
.gv-hero-features li::before {
  content: "✓";
  color: #0b9c5e;
  font-weight: 700;
  font-size: 0.75rem;
}
.gv-hero-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.gv-hero-actions a[role="button"] {
  font-size: 0.78rem;
  padding: 0.4rem 0.8rem;
}
.gv-hero-cta {
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(0,125,156,0.25);
}
.gv-hero-secondary { background: #fff; }
.gv-hero-login-hint {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--pico-muted-color, #5c6b77);
}
.gv-hero-login-hint a { font-weight: 600; }
.gv-hero-trust {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  color: #6b7d8d;
  letter-spacing: 0.02em;
}
.gv-hero-visual { min-width: 0; }
.gv-hero-terminal {
  background: #0f1e2e;
  border: 1px solid #1e3448;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15,30,46,0.35), 0 2px 8px rgba(0,0,0,0.15);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.gv-hero-terminal-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: #132638;
  border-bottom: 1px solid #1e3448;
}
.gv-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.gv-dot-red { background: #ff5f56; }
.gv-dot-yellow { background: #ffbd2e; }
.gv-dot-green { background: #27c93f; }
.gv-hero-terminal-title {
  margin-left: 0.5rem;
  font-size: 0.65rem;
  color: #8ea8bf;
  flex: 1;
}
.gv-hero-terminal-status {
  font-size: 0.65rem;
  font-weight: 700;
  color: #27c93f;
  background: rgba(39,201,63,0.12);
  border: 1px solid rgba(39,201,63,0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.gv-hero-terminal-body {
  margin: 0;
  padding: 1rem 1.1rem 0.9rem;
  font-size: 0.65rem;
  line-height: 1.5;
  color: #c8d7e6;
  overflow-x: auto;
}
.gv-hero-terminal-body code { color: inherit; font-size: inherit; }
.gv-t-kw { color: #ff7ab2; }
.gv-t-str { color: #a5e075; }
.gv-t-fn { color: #82aaff; }
.gv-t-comment { color: #6b7d8d; }
.gv-t-success { color: #27c93f; font-weight: 700; }
.gv-hero-terminal-output {
  display: block;
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px solid #1e3448;
  font-size: 0.74rem;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .gv-hero { padding: 1.5rem 1.25rem; }
  .gv-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .gv-hero-visual { order: -1; }
  .gv-hero-terminal-body { font-size: 0.72rem; }
}
@media (max-width: 640px) {
  .gv-hero-actions { flex-direction: column; align-items: stretch; }
  .gv-hero-actions a[role="button"] { text-align: center; justify-content: center; }
}

/* Мини-дашборд на главной */
.gv-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.gv-dashboard-card {
  padding: 1rem 1.25rem;
  border: 1px solid var(--pico-muted-border-color, #d3e0e9);
  border-radius: 10px;
  background: var(--pico-card-background-color, #fbfdfe);
}
.gv-dashboard-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pico-muted-color, #5c6b77);
}
.gv-dashboard-value {
  display: block;
  font-family: var(--gv-font-display), Georgia, serif;
  font-size: 1.5rem;
  margin-top: 0.25rem;
}
.gv-dashboard-xp { color: #7a5816; }

/* Секции на главной */
.gv-section { margin-bottom: 1.0rem; }
.gv-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.gv-section-head h2 {
  font-family: var(--gv-font-display), Georgia, serif;
  font-size: 1.15rem;
  margin: 0;
}

.gv-section-head a {
    font-size: 0.85rem;
}
/* Плеер: «карта путешествия» */
.gv-player-sidebar {
  border-right: 1px solid var(--pico-muted-border-color, #d3e0e9);
  background: linear-gradient(180deg, rgba(201, 151, 60, 0.06), transparent 40%);
  padding: 1rem;
}
.gv-player-sidebar ul { list-style: none; margin: 0 0 1.25rem; }
.gv-player-sidebar li { margin-bottom: 0.35rem; }
.gv-player-sidebar h4 {
  font-family: var(--gv-font-display), Georgia, serif;
  color: #7a5816;
  margin: 0.75rem 0 0.4rem;
  font-size: 1rem;
}
.gv-player-sidebar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}
.gv-player-sidebar a:hover { text-decoration: underline; }
.gv-player-sidebar li.active {
  background: rgba(0, 125, 156, 0.08);
  border-left: 3px solid var(--pico-primary, #007d9c);
  margin-left: -0.5rem;
  padding-left: 0.5rem;
  border-radius: 4px;
}
.gv-player-sidebar li.active a {
  font-weight: 600;
  color: var(--pico-primary, #007d9c);
}

/* Плеер: sticky сайдбар и step-nav — десктоп фиксированы, мобилка — одна колонка */
@media (min-width: 769px) {
  .gv-player-sidebar {
    position: sticky;
    top: 3rem;
    height: calc(100dvh - 3rem);
    max-height: calc(100dvh - 3rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    align-self: start;
  }
  .step-nav {
    position: sticky;
    top: 3rem;
    z-index: 5;
    background: var(--pico-card-background-color, #fbfdfe);
    border: 1px solid var(--pico-muted-border-color, #d3e0e9);
    border-radius: 10px;
    padding: 0.5rem;
    margin: -1rem -0.5rem 0.2rem;
  }
  #step-content {
    margin: 0 -0.5rem 1rem;
  }
}
@media (max-width: 768px) {
  .player-layout {
    grid-template-columns: 1fr;
  }
  .gv-player-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .step-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--pico-card-background-color, #fbfdfe);
    border: 1px solid var(--pico-muted-border-color, #d3e0e9);
    border-radius: 10px;
  }
}

/* Свиток контента шага */
.gv-step-scroll {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--pico-muted-border-color, #d3e0e9);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0, rgba(201, 151, 60, 0.1), transparent 35%),
    var(--pico-card-background-color, #fbfdfe);
}

/* Пергаментная подложка блока задания (квиз / код-задача): #fefdf8 (еще светлее), вне — форма/редактор */
.gv-task-card {
  background: #fefdf8;
  border: 1px solid #e8d9b0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0.0rem 0 0.75rem;
  font-size: 0.80rem;
}
.gv-task-card p { margin-bottom: 0; }
.gv-task-card pre { background: #fff; }

/* Тестовые данные код-задачи: компактнее */
.open-tests-title {
  font-size: 0.85rem;
  margin: 0.6rem 0 0.35rem;
  font-weight: 600;
}
.open-tests-table {
  font-size: 0.7rem;
}
.open-tests-table th,
.open-tests-table td {
  padding: 0.3rem 0.4rem;
}
.open-tests-table pre {
  margin: 0;
  padding: 0.15rem 0.25rem;
  font-size: 0.70rem;
}
.hidden-tests-count {
  font-size: 0.8rem;
  margin: 0.35rem 0 0;
}

/* Блоки кода в контентных блоках: скролл по горизонтали вместо выхода за границы */
.theory-content pre,
.bg-description pre,
.gv-teaser pre,
.quiz-page-body pre,
#step-content pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
}

/* Компактный размер шрифта кода в контентных блоках */
.theory-content pre code,
.bg-description pre code,
.gv-teaser pre code,
.quiz-page-body pre code,
#step-content pre code {
  font-size: 0.65rem;
}

/* Пустые параграфы как видимые пустые строки (Enter между блоками) */
.theory-content p:empty,
.problem-statement p:empty,
.gv-step-scroll p:empty,
.theory-content p:has(> br:only-child),
.problem-statement p:has(> br:only-child),
.gv-step-scroll p:has(> br:only-child) {
  min-height: 1.2em;
}
.theory-content p:empty::before,
.problem-statement p:empty::before,
.gv-step-scroll p:empty::before {
  content: "\00A0";
}

/* Теория — компактнее */
.theory-content {
  font-size: 0.85rem;
  line-height: 1.6;
}
.theory-content p,
.problem-statement p,
.gv-step-scroll p {
  margin: 0.4em 0;
}
.theory-content h3,
.problem-statement h3,
.gv-step-scroll h3 {
  font-size: 1.05rem;
}
.theory-content h4,
.problem-statement h4,
.gv-step-scroll h4 {
  font-size: 0.9rem;
}

/* Таблицы в шагах — фон только у шапки, компактные ячейки */
.theory-content table th,
.problem-statement table th,
.gv-step-scroll table th,
.theory-content table thead th,
.problem-statement table thead th {
  background: #edf2f7;
}
.theory-content table td,
.problem-statement table td,
.gv-step-scroll table td {
  background: transparent;
}
.theory-content table,
.problem-statement table,
.gv-step-scroll table {
  border-collapse: collapse;
  border: 1px solid var(--pico-muted-border-color, #d3e0e9);
}
.theory-content table th,
.theory-content table td,
.problem-statement table th,
.problem-statement table td,
.gv-step-scroll table th,
.gv-step-scroll table td {
  padding: 0.25rem 0.4rem;
  font-size: 0.85rem;
  border: 1px solid var(--pico-muted-border-color, #d3e0e9);
}

/* Вердикты код-задач */
.gv-verdict {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.95rem;
}
.gv-verdict--success { background: rgba(46, 125, 91, 0.1); border-color: rgba(46, 125, 91, 0.4); color: #245f46; }
.gv-verdict--fail { background: rgba(180, 73, 58, 0.1); border-color: rgba(180, 73, 58, 0.4); color: #8f3a2c; }
.gv-verdict--pending { background: rgba(0, 125, 156, 0.08); border-color: rgba(0, 125, 156, 0.3); color: #006580; }

/* Фолиант бага (деталь) */
.gv-folio {
  border: 1px solid var(--pico-muted-border-color, #d3e0e9);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0 0, rgba(201, 151, 60, 0.1), transparent 40%),
    var(--pico-card-background-color, #fbfdfe);
  padding: 0.3rem 1.25rem 1rem 0.3rem;
  margin-bottom: 1.5rem;
}

/* Auth-карточки на пергаменте */
.gv-auth-card {
  max-width: 420px;
  margin: 2rem auto;
  border: 1px solid var(--pico-muted-border-color, #d3e0e9);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0, rgba(201, 151, 60, 0.12), transparent 40%),
    radial-gradient(circle at 0 100%, rgba(0, 125, 156, 0.08), transparent 45%),
    var(--pico-card-background-color, #fbfdfe);
  font-size: 0.875rem;
}
.gv-auth-card hgroup h2 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.gv-auth-card hgroup p { font-size: 0.85rem; }
.gv-auth-card label { font-size: 0.875rem; }
.gv-auth-card input { font-size: 0.875rem; }
.gv-auth-card button { font-size: 0.875rem; }
.gv-auth-card p, .gv-auth-card a { font-size: 0.85rem; }
.gv-auth-oauth-title { text-align: center; }
.gv-auth-providers {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.gv-auth-login-link { text-align: center; margin-top: 1rem; }
/* Chrome перекрашивает автозаполненные поля менеджера паролей своими
   стилями (жёлтый фон, чужой кегль) — возвращаем шрифт и цвет формы. */
.gv-auth-card input:-webkit-autofill {
  font-size: 0.875rem;
  font-family: inherit;
  -webkit-text-fill-color: var(--pico-form-element-color, #23262c);
  caret-color: auto;
  transition: background-color 9999s ease-in-out 0s;
}

/* Тизир-превью */
.gv-teaser {
  border: 1px solid var(--pico-muted-border-color, #d3e0e9);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0 0, rgba(201, 151, 60, 0.1), transparent 40%),
    var(--pico-card-background-color, #fbfdfe);
  padding: 1.5rem;
  min-width: 0;
  overflow: hidden;
}
.gv-teaser-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--pico-spacing, 1rem);
  margin: 0 0 0.75rem;
  padding: 0;
  border: none;
}
.gv-teaser-header h2 {
  margin: 0;
}
.gv-teaser-header button {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Страница курса: hero и структура */
.gv-course-hero {
  position: relative;
  border: 1px solid var(--pico-muted-border-color, #d3e0e9);
  border-radius: 12px;
  background:
    radial-gradient(circle at 85% 10%, rgba(201, 151, 60, 0.14), transparent 45%),
    linear-gradient(160deg, #fbfdfe, #eaf3f7);
  padding: 1.5rem 1.5rem 0.1rem;
  margin-bottom: 0.7rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.gv-course-hero hgroup { flex: 1; min-width: 0; }
.gv-course-cover { flex-shrink: 0; width: 150px; }
.gv-course-cover img {
  width: 100%;
  max-height: 150px;
  object-fit: scale-down;
  border-radius: 10px;
  display: block;
}
.gv-course-price { color: #7a5816; font-size: 1.5rem; font-weight: 600; }

@media (max-width: 768px) {
  .gv-course-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .gv-course-cover { width: 100%; }
}

/* Секция содержания курса */
.gv-course-structure {
  border: 1px solid var(--pico-muted-border-color, #d3e0e9);
  border-radius: 12px;
  background: var(--pico-card-background-color, #fbfdfe);
  padding: 1rem 1.25rem 1.0rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.gv-course-promo {
  line-height: 1.6;
}
.gv-course-hero h1 { font-size: 1.3rem; margin-bottom: 1rem;}
.gv-course-hero hgroup p:not(:first-child) { font-size: 0.85rem; margin: 0 0 0.6rem 0; }
.gv-course-content h2 { font-size: 1.15rem; }
.gv-course-content h3 { font-size: 1rem; margin-bottom: 0.5rem; margin-top: 0.5rem;}
.gv-course-promo { font-size: 0.85rem; }
.gv-course-promo p { margin: 0 0 0.5rem 0; }
.gv-lesson-list { font-size: 0.8rem; }
.gv-course-content {
  flex: 1;
  min-width: 0;
}
.gv-course-aside {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 4rem;
}
.gv-course-aside .gv-course-price {
  margin-top: 0;
}
.gv-enroll-stats {
  margin-top: 0.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--pico-muted-border-color, #d3e0e9);
  border-radius: 8px;
  background: var(--pico-muted-background-color, #f4f7fa);
  font-size: 0.8rem;
  line-height: 1.70;
  color: var(--pico-muted-color, #5c6b7a);
}
.gv-enroll-stats ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Единая сетка для всех строк: фиксированная колонка под глиф даёт одну
   линию выравнивания текста независимо от содержимого строки. */
.gv-enroll-stats li,
.gv-enroll-stats small {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 0.45rem;
  align-items: center;
}
.gv-enroll-stats li {
  margin: 0;
  padding: 0;
}
.gv-enroll-stats .gv-glyph {
  width: 18px;
  height: 18px;
  justify-self: start;
}
/* У пилюли XP нет глифа: она занимает всю строку, иначе nowrap-текст
   вылезает за узкую 18px колонку сетки. */
.gv-enroll-stats li .gv-xp {
  grid-column: 1 / -1;
  justify-self: start;
}
.gv-enroll-stats small {
  margin-top: 0.35rem;
  font-size: 0.75rem;
}
.gv-course-structure p {
  margin-top: 0.25rem;
}
.gv-course-promo img {
  max-width: 100%;
  border-radius: 8px;
}
@media (max-width: 768px) {
  .gv-course-structure {
    flex-direction: column;
  }
  .gv-course-aside {
    width: 100%;
    position: static;
  }
}
.gv-lesson-list {
  list-style: decimal;
  list-style-position: outside;
  padding-left: 1.5rem;
  margin: 0;
}
.gv-lesson-list li {
  list-style: decimal outside;
  margin: 0.2rem 0;
}
.gv-lesson-list .gv-lesson-teaser {
  font-size: 0.8em;
  margin-left: 0.4rem;
}
.gv-demo-btn {
  font-size: 0.75rem;
  padding: 0.1rem 0.6rem;
  margin-left: 0.4rem;
}

.gv-lesson-list a {
  text-decoration: none;
}
.gv-lesson-list a:hover {
  text-decoration: underline;
}

/* ---- Комментарии (universal-comments) ----------------------------------- */

.comments {
  margin-top: 2rem;
  border-top: 1px solid var(--pico-muted-border-color);
  padding-top: 1rem;
  font-size: 0.8rem;
}

.comments h3 {
  font-size: 1rem;
}

.comments > form,
.comment-reply form,
.comment-edit form,
.comment-reply-panel form,
.comment-edit-panel form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.comment-reply-panel {
  margin-top: 0.4rem;
}

.comment-reply-panel form,
.comment-edit-panel form {
  width: 100%;
}

.comment-edit-panel {
  margin-bottom: 0.5rem;
}

.comment-edit-panel form textarea {
  margin-bottom: 0;
}

.comment-edit-actions {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
}

.comment-edit-error,
.comment-reply-error {
  color: var(--pico-del-color, #c62828);
  font-size: 0.78rem;
  margin: 0.3rem 0;
}

.comments textarea {
  width: 100%;
  font-size: 0.8rem;
  align-self: stretch;
  margin-bottom: 0;
}

.comments > form button,
.comment-reply form button,
.comment-edit form button,
.comment-reply-panel form button,
.comment-edit-panel form button {
  width: auto;
  align-self: flex-start;
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
}

.comment {
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem 0.0rem 1rem;
  margin-bottom: 0.25rem;
}

.comment-head {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.4rem;
}

.c-avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.c-avatar-ph {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.65rem;
  color: #fff;
  flex-shrink: 0;
}

.av-0 { background: #4e79a7; }
.av-1 { background: #f28e2b; }
.av-2 { background: #e15759; }
.av-3 { background: #76b7b2; }
.av-4 { background: #59a14f; }
.av-5 { background: #edc948; }
.av-6 { background: #b07aa1; }
.av-7 { background: #9c755f; }

.comment-meta {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.comment-time,
.comment-edited {
  font-size: 0.68rem;
  color: var(--pico-muted-color);
}

.comment-reply-quote {
  display: block;
  padding: 0.3rem 0.5rem;
  border-radius: 0.4rem;
  margin-bottom: 0.4rem;
  text-decoration: none;
  overflow: hidden;
}

.comment-reply-quote:hover {
  text-decoration: none;
  opacity: 0.8;
}

.comment-reply-name {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.comment-reply-text {
  display: block;
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rq-0 { background: rgba(78, 121, 167, 0.12); }
.rq-1 { background: rgba(242, 142, 43, 0.12); }
.rq-2 { background: rgba(225, 87, 89, 0.12); }
.rq-3 { background: rgba(118, 183, 178, 0.12); }
.rq-4 { background: rgba(89, 161, 79, 0.12); }
.rq-5 { background: rgba(237, 201, 72, 0.12); }
.rq-6 { background: rgba(176, 122, 161, 0.12); }
.rq-7 { background: rgba(156, 117, 95, 0.12); }

.rq-0 .comment-reply-name { color: #4e79a7; }
.rq-1 .comment-reply-name { color: #d97a1f; }
.rq-2 .comment-reply-name { color: #c04648; }
.rq-3 .comment-reply-name { color: #4a8e89; }
.rq-4 .comment-reply-name { color: #3d8a34; }
.rq-5 .comment-reply-name { color: #b89a1f; }
.rq-6 .comment-reply-name { color: #9c5e8b; }
.rq-7 .comment-reply-name { color: #7a5950; }

.comment-reply-quote .comment-reply-text {
  color: var(--pico-muted-color);
}

.comment-body {
  white-space: pre-line;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.comment-deleted {
  color: var(--pico-muted-color);
  font-size: 0.8rem;
}

.comment-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.comment-flagged {
  color: var(--pico-del-color);
}

.comment-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.comment-actions form {
  margin: 0;
  display: inline;
}

.comment-actions form button {
  border: none;
  background: transparent;
  box-shadow: none;
  color: #000;
  font-size: 0.80rem;
  padding: 0.15rem 0.1rem;
  margin-bottom: 0;
}

.comment-actions form button:focus,
.comment-actions form button:active,
.comment-actions form button:hover {
  border: none;
  background: transparent;
  box-shadow: none;
  color: #000;
}

.comment-actions button,
.comment-actions summary {
  font-size: 0.72rem;
  padding: 0.15rem 0.4rem;
  cursor: pointer;
}

.comment-actions .comment-reply-btn,
.comment-actions .comment-edit-btn,
.comment-actions .comment-delete-btn {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 0;
  color: var(--pico-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.comment-actions .comment-reply-btn:hover,
.comment-actions .comment-reply-btn:focus,
.comment-actions .comment-reply-btn:active,
.comment-actions .comment-edit-btn:hover,
.comment-actions .comment-edit-btn:focus,
.comment-actions .comment-edit-btn:active,
.comment-actions .comment-delete-btn:hover,
.comment-actions .comment-delete-btn:focus,
.comment-actions .comment-delete-btn:active {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--pico-primary-hover, var(--pico-primary));
  text-decoration: underline;
}

.comment-hint,
.comment-empty {
  color: var(--pico-muted-color);
  font-size: 0.78rem;
}
